Files
weiyu/deploy/server/agenticflow/assets/index-DCrJ9EPX.js
jack ning b5f7f89724 update
2025-05-14 21:38:01 +08:00

1811 lines
5.8 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var Qmt=Object.defineProperty;var Q_e=e=>{throw TypeError(e)};var Zmt=(e,n,r)=>n in e?Qmt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r;var $t=(e,n,r)=>Zmt(e,typeof n!="symbol"?n+"":n,r),_W=(e,n,r)=>n.has(e)||Q_e("Cannot "+r);var He=(e,n,r)=>(_W(e,n,"read from private field"),r?r.call(e):n.get(e)),Xn=(e,n,r)=>n.has(e)?Q_e("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,r),xn=(e,n,r,i)=>(_W(e,n,"write to private field"),i?i.call(e,r):n.set(e,r),r),ir=(e,n,r)=>(_W(e,n,"access private method"),r);var sE=(e,n,r,i)=>({set _(o){xn(e,n,o,r)},get _(){return He(e,n,i)}});function o7(e,n){for(var r=0;r<n.length;r++){const i=n[r];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(i,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();var oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function UD(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var r=function i(){return this instanceof i?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var o=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,o.get?o:{enumerable:!0,get:function(){return e[i]}})}),r}var i4e={exports:{}},a7={},o4e={exports:{}},Hi={};/**
* @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 HD=Symbol.for("react.element"),Jmt=Symbol.for("react.portal"),evt=Symbol.for("react.fragment"),tvt=Symbol.for("react.strict_mode"),nvt=Symbol.for("react.profiler"),rvt=Symbol.for("react.provider"),ivt=Symbol.for("react.context"),ovt=Symbol.for("react.forward_ref"),avt=Symbol.for("react.suspense"),svt=Symbol.for("react.memo"),lvt=Symbol.for("react.lazy"),Z_e=Symbol.iterator;function cvt(e){return e===null||typeof e!="object"?null:(e=Z_e&&e[Z_e]||e["@@iterator"],typeof e=="function"?e:null)}var a4e={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},s4e=Object.assign,l4e={};function VR(e,n,r){this.props=e,this.context=n,this.refs=l4e,this.updater=r||a4e}VR.prototype.isReactComponent={};VR.prototype.setState=function(e,n){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,n,"setState")};VR.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function c4e(){}c4e.prototype=VR.prototype;function gle(e,n,r){this.props=e,this.context=n,this.refs=l4e,this.updater=r||a4e}var mle=gle.prototype=new c4e;mle.constructor=gle;s4e(mle,VR.prototype);mle.isPureReactComponent=!0;var J_e=Array.isArray,u4e=Object.prototype.hasOwnProperty,vle={current:null},d4e={key:!0,ref:!0,__self:!0,__source:!0};function f4e(e,n,r){var i,o={},a=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(a=""+n.key),n)u4e.call(n,i)&&!d4e.hasOwnProperty(i)&&(o[i]=n[i]);var l=arguments.length-2;if(l===1)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps,l)o[i]===void 0&&(o[i]=l[i]);return{$$typeof:HD,type:e,key:a,ref:s,props:o,_owner:vle.current}}function uvt(e,n){return{$$typeof:HD,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function yle(e){return typeof e=="object"&&e!==null&&e.$$typeof===HD}function dvt(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return n[r]})}var ebe=/\/+/g;function bW(e,n){return typeof e=="object"&&e!==null&&e.key!=null?dvt(""+e.key):n.toString(36)}function w5(e,n,r,i,o){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case HD:case Jmt:s=!0}}if(s)return s=e,o=o(s),e=i===""?"."+bW(s,0):i,J_e(o)?(r="",e!=null&&(r=e.replace(ebe,"$&/")+"/"),w5(o,n,r,"",function(u){return u})):o!=null&&(yle(o)&&(o=uvt(o,r+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(ebe,"$&/")+"/")+e)),n.push(o)),1;if(s=0,i=i===""?".":i+":",J_e(e))for(var l=0;l<e.length;l++){a=e[l];var c=i+bW(a,l);s+=w5(a,n,r,c,o)}else if(c=cvt(e),typeof c=="function")for(e=c.call(e),l=0;!(a=e.next()).done;)a=a.value,c=i+bW(a,l++),s+=w5(a,n,r,c,o);else if(a==="object")throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return s}function s3(e,n,r){if(e==null)return e;var i=[],o=0;return w5(e,i,"","",function(a){return n.call(r,a,o++)}),i}function fvt(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var Ou={current:null},x5={transition:null},pvt={ReactCurrentDispatcher:Ou,ReactCurrentBatchConfig:x5,ReactCurrentOwner:vle};function p4e(){throw Error("act(...) is not supported in production builds of React.")}Hi.Children={map:s3,forEach:function(e,n,r){s3(e,function(){n.apply(this,arguments)},r)},count:function(e){var n=0;return s3(e,function(){n++}),n},toArray:function(e){return s3(e,function(n){return n})||[]},only:function(e){if(!yle(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Hi.Component=VR;Hi.Fragment=evt;Hi.Profiler=nvt;Hi.PureComponent=gle;Hi.StrictMode=tvt;Hi.Suspense=avt;Hi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pvt;Hi.act=p4e;Hi.cloneElement=function(e,n,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=s4e({},e.props),o=e.key,a=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(a=n.ref,s=vle.current),n.key!==void 0&&(o=""+n.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in n)u4e.call(n,c)&&!d4e.hasOwnProperty(c)&&(i[c]=n[c]===void 0&&l!==void 0?l[c]:n[c])}var c=arguments.length-2;if(c===1)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:HD,type:e.type,key:o,ref:a,props:i,_owner:s}};Hi.createContext=function(e){return e={$$typeof:ivt,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:rvt,_context:e},e.Consumer=e};Hi.createElement=f4e;Hi.createFactory=function(e){var n=f4e.bind(null,e);return n.type=e,n};Hi.createRef=function(){return{current:null}};Hi.forwardRef=function(e){return{$$typeof:ovt,render:e}};Hi.isValidElement=yle;Hi.lazy=function(e){return{$$typeof:lvt,_payload:{_status:-1,_result:e},_init:fvt}};Hi.memo=function(e,n){return{$$typeof:svt,type:e,compare:n===void 0?null:n}};Hi.startTransition=function(e){var n=x5.transition;x5.transition={};try{e()}finally{x5.transition=n}};Hi.unstable_act=p4e;Hi.useCallback=function(e,n){return Ou.current.useCallback(e,n)};Hi.useContext=function(e){return Ou.current.useContext(e)};Hi.useDebugValue=function(){};Hi.useDeferredValue=function(e){return Ou.current.useDeferredValue(e)};Hi.useEffect=function(e,n){return Ou.current.useEffect(e,n)};Hi.useId=function(){return Ou.current.useId()};Hi.useImperativeHandle=function(e,n,r){return Ou.current.useImperativeHandle(e,n,r)};Hi.useInsertionEffect=function(e,n){return Ou.current.useInsertionEffect(e,n)};Hi.useLayoutEffect=function(e,n){return Ou.current.useLayoutEffect(e,n)};Hi.useMemo=function(e,n){return Ou.current.useMemo(e,n)};Hi.useReducer=function(e,n,r){return Ou.current.useReducer(e,n,r)};Hi.useRef=function(e){return Ou.current.useRef(e)};Hi.useState=function(e){return Ou.current.useState(e)};Hi.useSyncExternalStore=function(e,n,r){return Ou.current.useSyncExternalStore(e,n,r)};Hi.useTransition=function(){return Ou.current.useTransition()};Hi.version="18.3.1";o4e.exports=Hi;var m=o4e.exports;const V=Or(m),zD=o7({__proto__:null,default:V},[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 hvt=m,gvt=Symbol.for("react.element"),mvt=Symbol.for("react.fragment"),vvt=Object.prototype.hasOwnProperty,yvt=hvt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_vt={key:!0,ref:!0,__self:!0,__source:!0};function h4e(e,n,r){var i,o={},a=null,s=null;r!==void 0&&(a=""+r),n.key!==void 0&&(a=""+n.key),n.ref!==void 0&&(s=n.ref);for(i in n)vvt.call(n,i)&&!_vt.hasOwnProperty(i)&&(o[i]=n[i]);if(e&&e.defaultProps)for(i in n=e.defaultProps,n)o[i]===void 0&&(o[i]=n[i]);return{$$typeof:gvt,type:e,key:a,ref:s,props:o,_owner:yvt.current}}a7.Fragment=mvt;a7.jsx=h4e;a7.jsxs=h4e;i4e.exports=a7;var N=i4e.exports;const bvt={BASE_URL:"/agenticflow",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},tbe=e=>{let n;const r=new Set,i=(d,f)=>{const p=typeof d=="function"?d(n):d;if(!Object.is(p,n)){const h=n;n=f??(typeof p!="object"||p===null)?p:Object.assign({},n,p),r.forEach(g=>g(n,h))}},o=()=>n,c={setState:i,getState:o,getInitialState:()=>u,subscribe:d=>(r.add(d),()=>r.delete(d)),destroy:()=>{(bvt?"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."),r.clear()}},u=n=e(i,o,c);return c},g4e=e=>e?tbe(e):tbe;var m4e={exports:{}},v4e={},y4e={exports:{}},_4e={};/**
* @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 gO=m;function Svt(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Evt=typeof Object.is=="function"?Object.is:Svt,Cvt=gO.useState,wvt=gO.useEffect,xvt=gO.useLayoutEffect,Tvt=gO.useDebugValue;function Ovt(e,n){var r=n(),i=Cvt({inst:{value:r,getSnapshot:n}}),o=i[0].inst,a=i[1];return xvt(function(){o.value=r,o.getSnapshot=n,SW(o)&&a({inst:o})},[e,r,n]),wvt(function(){return SW(o)&&a({inst:o}),e(function(){SW(o)&&a({inst:o})})},[e]),Tvt(r),r}function SW(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!Evt(e,r)}catch{return!0}}function Rvt(e,n){return n()}var Ivt=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Rvt:Ovt;_4e.useSyncExternalStore=gO.useSyncExternalStore!==void 0?gO.useSyncExternalStore:Ivt;y4e.exports=_4e;var b4e=y4e.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 s7=m,Nvt=b4e;function Mvt(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Pvt=typeof Object.is=="function"?Object.is:Mvt,Avt=Nvt.useSyncExternalStore,Dvt=s7.useRef,kvt=s7.useEffect,Lvt=s7.useMemo,$vt=s7.useDebugValue;v4e.useSyncExternalStoreWithSelector=function(e,n,r,i,o){var a=Dvt(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=Lvt(function(){function c(h){if(!u){if(u=!0,d=h,h=i(h),o!==void 0&&s.hasValue){var g=s.value;if(o(g,h))return f=g}return f=h}if(g=f,Pvt(d,h))return g;var v=i(h);return o!==void 0&&o(g,v)?g:(d=h,f=v)}var u=!1,d,f,p=r===void 0?null:r;return[function(){return c(n())},p===null?void 0:function(){return c(p())}]},[n,r,i,o]);var l=Avt(e,a[0],a[1]);return kvt(function(){s.hasValue=!0,s.value=l},[l]),$vt(l),l};m4e.exports=v4e;var Fvt=m4e.exports;const S4e=Or(Fvt),E4e={BASE_URL:"/agenticflow",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},{useDebugValue:Bvt}=V,{useSyncExternalStoreWithSelector:jvt}=S4e;let nbe=!1;const Uvt=e=>e;function Hvt(e,n=Uvt,r){(E4e?"open":void 0)!=="production"&&r&&!nbe&&(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"),nbe=!0);const i=jvt(e.subscribe,e.getState,e.getServerState||e.getInitialState,n,r);return Bvt(i),i}const rbe=e=>{(E4e?"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 n=typeof e=="function"?g4e(e):e,r=(i,o)=>Hvt(n,i,o);return Object.assign(r,n),r},Ru=e=>e?rbe(e):rbe,T5={BASE_URL:"/agenticflow",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},See=new Map,l3=e=>{const n=See.get(e);return n?Object.fromEntries(Object.entries(n.stores).map(([r,i])=>[r,i.getState()])):{}},zvt=(e,n,r)=>{if(e===void 0)return{type:"untracked",connection:n.connect(r)};const i=See.get(r.name);if(i)return{type:"tracked",store:e,...i};const o={connection:n.connect(r),stores:{}};return See.set(r.name,o),{type:"tracked",store:e,...o}},Vvt=(e,n={})=>(r,i,o)=>{const{enabled:a,anonymousActionType:s,store:l,...c}=n;let u;try{u=(a??(T5?"open":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return(T5?"open":void 0)!=="production"&&a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(r,i,o);const{connection:d,...f}=zvt(l,u,c);let p=!0;o.setState=(v,y,_)=>{const S=r(v,y);if(!p)return S;const b=_===void 0?{type:s||"anonymous"}:typeof _=="string"?{type:_}:_;return l===void 0?(d==null||d.send(b,i()),S):(d==null||d.send({...b,type:`${l}/${b.type}`},{...l3(c.name),[l]:o.getState()}),S)};const h=(...v)=>{const y=p;p=!1,r(...v),p=y},g=e(o.setState,i,o);if(f.type==="untracked"?d==null||d.init(g):(f.stores[f.store]=o,d==null||d.init(Object.fromEntries(Object.entries(f.stores).map(([v,y])=>[v,v===f.store?g:y.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let v=!1;const y=o.dispatch;o.dispatch=(..._)=>{(T5?"open":void 0)!=="production"&&_[0].type==="__setState"&&!v&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),v=!0),y(..._)}}return d.subscribe(v=>{var y;switch(v.type){case"ACTION":if(typeof v.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return EW(v.payload,_=>{if(_.type==="__setState"){if(l===void 0){h(_.state);return}Object.keys(_.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 S=_.state[l];if(S==null)return;JSON.stringify(o.getState())!==JSON.stringify(S)&&h(S);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(_)});case"DISPATCH":switch(v.payload.type){case"RESET":return h(g),l===void 0?d==null?void 0:d.init(o.getState()):d==null?void 0:d.init(l3(c.name));case"COMMIT":if(l===void 0){d==null||d.init(o.getState());return}return d==null?void 0:d.init(l3(c.name));case"ROLLBACK":return EW(v.state,_=>{if(l===void 0){h(_),d==null||d.init(o.getState());return}h(_[l]),d==null||d.init(l3(c.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return EW(v.state,_=>{if(l===void 0){h(_);return}JSON.stringify(o.getState())!==JSON.stringify(_[l])&&h(_[l])});case"IMPORT_STATE":{const{nextLiftedState:_}=v.payload,S=(y=_.computedStates.slice(-1)[0])==null?void 0:y.state;if(!S)return;h(l===void 0?S:S[l]),d==null||d.send(null,_);return}case"PAUSE_RECORDING":return p=!p}return}}),g},Lp=Vvt,EW=(e,n)=>{let r;try{r=JSON.parse(e)}catch(i){console.error("[zustand devtools middleware] Could not parse the received json",i)}r!==void 0&&n(r)};function Gvt(e,n){let r;try{r=e()}catch{return}return{getItem:o=>{var a;const s=c=>c===null?null:JSON.parse(c,void 0),l=(a=r.getItem(o))!=null?a:null;return l instanceof Promise?l.then(s):s(l)},setItem:(o,a)=>r.setItem(o,JSON.stringify(a,void 0)),removeItem:o=>r.removeItem(o)}}const NP=e=>n=>{try{const r=e(n);return r instanceof Promise?r:{then(i){return NP(i)(r)},catch(i){return this}}}catch(r){return{then(i){return this},catch(i){return NP(i)(r)}}}},Wvt=(e,n)=>(r,i,o)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:y=>y,version:0,merge:(y,_)=>({..._,...y}),...n},s=!1;const l=new Set,c=new Set;let u;try{u=a.getStorage()}catch{}if(!u)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...y)},i,o);const d=NP(a.serialize),f=()=>{const y=a.partialize({...i()});let _;const S=d({state:y,version:a.version}).then(b=>u.setItem(a.name,b)).catch(b=>{_=b});if(_)throw _;return S},p=o.setState;o.setState=(y,_)=>{p(y,_),f()};const h=e((...y)=>{r(...y),f()},i,o);let g;const v=()=>{var y;if(!u)return;s=!1,l.forEach(S=>S(i()));const _=((y=a.onRehydrateStorage)==null?void 0:y.call(a,i()))||void 0;return NP(u.getItem.bind(u))(a.name).then(S=>{if(S)return a.deserialize(S)}).then(S=>{if(S)if(typeof S.version=="number"&&S.version!==a.version){if(a.migrate)return a.migrate(S.state,S.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return S.state}).then(S=>{var b;return g=a.merge(S,(b=i())!=null?b:h),r(g,!0),f()}).then(()=>{_==null||_(g,void 0),s=!0,c.forEach(S=>S(g))}).catch(S=>{_==null||_(void 0,S)})};return o.persist={setOptions:y=>{a={...a,...y},y.getStorage&&(u=y.getStorage())},clearStorage:()=>{u==null||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>v(),hasHydrated:()=>s,onHydrate:y=>(l.add(y),()=>{l.delete(y)}),onFinishHydration:y=>(c.add(y),()=>{c.delete(y)})},v(),g||h},Yvt=(e,n)=>(r,i,o)=>{let a={storage:Gvt(()=>localStorage),partialize:v=>v,version:0,merge:(v,y)=>({...y,...v}),...n},s=!1;const l=new Set,c=new Set;let u=a.storage;if(!u)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...v)},i,o);const d=()=>{const v=a.partialize({...i()});return u.setItem(a.name,{state:v,version:a.version})},f=o.setState;o.setState=(v,y)=>{f(v,y),d()};const p=e((...v)=>{r(...v),d()},i,o);o.getInitialState=()=>p;let h;const g=()=>{var v,y;if(!u)return;s=!1,l.forEach(S=>{var b;return S((b=i())!=null?b:p)});const _=((y=a.onRehydrateStorage)==null?void 0:y.call(a,(v=i())!=null?v:p))||void 0;return NP(u.getItem.bind(u))(a.name).then(S=>{if(S)if(typeof S.version=="number"&&S.version!==a.version){if(a.migrate)return[!0,a.migrate(S.state,S.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,S.state];return[!1,void 0]}).then(S=>{var b;const[E,w]=S;if(h=a.merge(w,(b=i())!=null?b:p),r(h,!0),E)return d()}).then(()=>{_==null||_(h,void 0),h=i(),s=!0,c.forEach(S=>S(h))}).catch(S=>{_==null||_(void 0,S)})};return o.persist={setOptions:v=>{a={...a,...v},v.storage&&(u=v.storage)},clearStorage:()=>{u==null||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>g(),hasHydrated:()=>s,onHydrate:v=>(l.add(v),()=>{l.delete(v)}),onFinishHydration:v=>(c.add(v),()=>{c.delete(v)})},a.skipHydration||g(),h||p},qvt=(e,n)=>"getStorage"in n||"serialize"in n||"deserialize"in n?((T5?"open":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Wvt(e,n)):Yvt(e,n),Ed=qvt;var C4e=Symbol.for("immer-nothing"),ibe=Symbol.for("immer-draftable"),vf=Symbol.for("immer-state");function Ih(e,...n){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var mO=Object.getPrototypeOf;function vO(e){return!!e&&!!e[vf]}function H1(e){var n;return e?w4e(e)||Array.isArray(e)||!!e[ibe]||!!((n=e.constructor)!=null&&n[ibe])||c7(e)||u7(e):!1}var Kvt=Object.prototype.constructor.toString();function w4e(e){if(!e||typeof e!="object")return!1;const n=mO(e);if(n===null)return!0;const r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===Kvt}function bF(e,n){l7(e)===0?Reflect.ownKeys(e).forEach(r=>{n(r,e[r],e)}):e.forEach((r,i)=>n(i,r,e))}function l7(e){const n=e[vf];return n?n.type_:Array.isArray(e)?1:c7(e)?2:u7(e)?3:0}function Eee(e,n){return l7(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function x4e(e,n,r){const i=l7(e);i===2?e.set(n,r):i===3?e.add(r):e[n]=r}function Xvt(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function c7(e){return e instanceof Map}function u7(e){return e instanceof Set}function RE(e){return e.copy_||e.base_}function Cee(e,n){if(c7(e))return new Map(e);if(u7(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=w4e(e);if(n===!0||n==="class_only"&&!r){const i=Object.getOwnPropertyDescriptors(e);delete i[vf];let o=Reflect.ownKeys(i);for(let a=0;a<o.length;a++){const s=o[a],l=i[s];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(i[s]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[s]})}return Object.create(mO(e),i)}else{const i=mO(e);if(i!==null&&r)return{...e};const o=Object.create(i);return Object.assign(o,e)}}function _le(e,n=!1){return d7(e)||vO(e)||!H1(e)||(l7(e)>1&&(e.set=e.add=e.clear=e.delete=Qvt),Object.freeze(e),n&&Object.entries(e).forEach(([r,i])=>_le(i,!0))),e}function Qvt(){Ih(2)}function d7(e){return Object.isFrozen(e)}var Zvt={};function z1(e){const n=Zvt[e];return n||Ih(0,e),n}var MP;function T4e(){return MP}function Jvt(e,n){return{drafts_:[],parent_:e,immer_:n,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function obe(e,n){n&&(z1("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=n)}function wee(e){xee(e),e.drafts_.forEach(eyt),e.drafts_=null}function xee(e){e===MP&&(MP=e.parent_)}function abe(e){return MP=Jvt(MP,e)}function eyt(e){const n=e[vf];n.type_===0||n.type_===1?n.revoke_():n.revoked_=!0}function sbe(e,n){n.unfinalizedDrafts_=n.drafts_.length;const r=n.drafts_[0];return e!==void 0&&e!==r?(r[vf].modified_&&(wee(n),Ih(4)),H1(e)&&(e=SF(n,e),n.parent_||EF(n,e)),n.patches_&&z1("Patches").generateReplacementPatches_(r[vf].base_,e,n.patches_,n.inversePatches_)):e=SF(n,r,[]),wee(n),n.patches_&&n.patchListener_(n.patches_,n.inversePatches_),e!==C4e?e:void 0}function SF(e,n,r){if(d7(n))return n;const i=n[vf];if(!i)return bF(n,(o,a)=>lbe(e,i,n,o,a,r)),n;if(i.scope_!==e)return n;if(!i.modified_)return EF(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const o=i.copy_;let a=o,s=!1;i.type_===3&&(a=new Set(o),o.clear(),s=!0),bF(a,(l,c)=>lbe(e,i,o,l,c,r,s)),EF(e,o,!1),r&&e.patches_&&z1("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function lbe(e,n,r,i,o,a,s){if(vO(o)){const l=a&&n&&n.type_!==3&&!Eee(n.assigned_,i)?a.concat(i):void 0,c=SF(e,o,l);if(x4e(r,i,c),vO(c))e.canAutoFreeze_=!1;else return}else s&&r.add(o);if(H1(o)&&!d7(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;SF(e,o),(!n||!n.scope_.parent_)&&typeof i!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,i)&&EF(e,o)}}function EF(e,n,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&_le(n,r)}function tyt(e,n){const r=Array.isArray(e),i={type_:r?1:0,scope_:n?n.scope_:T4e(),modified_:!1,finalized_:!1,assigned_:{},parent_:n,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=i,a=ble;r&&(o=[i],a=PP);const{revoke:s,proxy:l}=Proxy.revocable(o,a);return i.draft_=l,i.revoke_=s,l}var ble={get(e,n){if(n===vf)return e;const r=RE(e);if(!Eee(r,n))return nyt(e,r,n);const i=r[n];return e.finalized_||!H1(i)?i:i===CW(e.base_,n)?(wW(e),e.copy_[n]=Oee(i,e)):i},has(e,n){return n in RE(e)},ownKeys(e){return Reflect.ownKeys(RE(e))},set(e,n,r){const i=O4e(RE(e),n);if(i!=null&&i.set)return i.set.call(e.draft_,r),!0;if(!e.modified_){const o=CW(RE(e),n),a=o==null?void 0:o[vf];if(a&&a.base_===r)return e.copy_[n]=r,e.assigned_[n]=!1,!0;if(Xvt(r,o)&&(r!==void 0||Eee(e.base_,n)))return!0;wW(e),Tee(e)}return e.copy_[n]===r&&(r!==void 0||n in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[n])||(e.copy_[n]=r,e.assigned_[n]=!0),!0},deleteProperty(e,n){return CW(e.base_,n)!==void 0||n in e.base_?(e.assigned_[n]=!1,wW(e),Tee(e)):delete e.assigned_[n],e.copy_&&delete e.copy_[n],!0},getOwnPropertyDescriptor(e,n){const r=RE(e),i=Reflect.getOwnPropertyDescriptor(r,n);return i&&{writable:!0,configurable:e.type_!==1||n!=="length",enumerable:i.enumerable,value:r[n]}},defineProperty(){Ih(11)},getPrototypeOf(e){return mO(e.base_)},setPrototypeOf(){Ih(12)}},PP={};bF(ble,(e,n)=>{PP[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}});PP.deleteProperty=function(e,n){return PP.set.call(this,e,n,void 0)};PP.set=function(e,n,r){return ble.set.call(this,e[0],n,r,e[0])};function CW(e,n){const r=e[vf];return(r?RE(r):e)[n]}function nyt(e,n,r){var o;const i=O4e(n,r);return i?"value"in i?i.value:(o=i.get)==null?void 0:o.call(e.draft_):void 0}function O4e(e,n){if(!(n in e))return;let r=mO(e);for(;r;){const i=Object.getOwnPropertyDescriptor(r,n);if(i)return i;r=mO(r)}}function Tee(e){e.modified_||(e.modified_=!0,e.parent_&&Tee(e.parent_))}function wW(e){e.copy_||(e.copy_=Cee(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ryt=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(n,r,i)=>{if(typeof n=="function"&&typeof r!="function"){const a=r;r=n;const s=this;return function(c=a,...u){return s.produce(c,d=>r.call(this,d,...u))}}typeof r!="function"&&Ih(6),i!==void 0&&typeof i!="function"&&Ih(7);let o;if(H1(n)){const a=abe(this),s=Oee(n,void 0);let l=!0;try{o=r(s),l=!1}finally{l?wee(a):xee(a)}return obe(a,i),sbe(o,a)}else if(!n||typeof n!="object"){if(o=r(n),o===void 0&&(o=n),o===C4e&&(o=void 0),this.autoFreeze_&&_le(o,!0),i){const a=[],s=[];z1("Patches").generateReplacementPatches_(n,o,a,s),i(a,s)}return o}else Ih(1,n)},this.produceWithPatches=(n,r)=>{if(typeof n=="function")return(s,...l)=>this.produceWithPatches(s,c=>n(c,...l));let i,o;return[this.produce(n,r,(s,l)=>{i=s,o=l}),i,o]},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){H1(e)||Ih(8),vO(e)&&(e=iyt(e));const n=abe(this),r=Oee(e,void 0);return r[vf].isManual_=!0,xee(n),r}finishDraft(e,n){const r=e&&e[vf];(!r||!r.isManual_)&&Ih(9);const{scope_:i}=r;return obe(i,n),sbe(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,n){let r;for(r=n.length-1;r>=0;r--){const o=n[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(n=n.slice(r+1));const i=z1("Patches").applyPatches_;return vO(e)?i(e,n):this.produce(e,o=>i(o,n))}};function Oee(e,n){const r=c7(e)?z1("MapSet").proxyMap_(e,n):u7(e)?z1("MapSet").proxySet_(e,n):tyt(e,n);return(n?n.scope_:T4e()).drafts_.push(r),r}function iyt(e){return vO(e)||Ih(10,e),R4e(e)}function R4e(e){if(!H1(e)||d7(e))return e;const n=e[vf];let r;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=Cee(e,n.scope_.immer_.useStrictShallowCopy_)}else r=Cee(e,!0);return bF(r,(i,o)=>{x4e(r,i,R4e(o))}),n&&(n.finalized_=!1),r}var yf=new ryt,oyt=yf.produce;yf.produceWithPatches.bind(yf);yf.setAutoFreeze.bind(yf);yf.setUseStrictShallowCopy.bind(yf);yf.applyPatches.bind(yf);yf.createDraft.bind(yf);yf.finishDraft.bind(yf);const ayt=e=>(n,r,i)=>(i.setState=(o,a,...s)=>{const l=typeof o=="function"?oyt(o):o;return n(l,a,...s)},e(i.setState,r,i)),$p=ayt,syt="dev",I4e="open",cbe="prod",lyt="quanjing",N4e="prod-open";console.log("Current VITE_CONFIG_ENV:","prod-open");let bs;switch(N4e){case"dev":bs={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:syt,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,SHOW_TRIAL_TIP:!1};break;case"prod-open":bs={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:I4e,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,SHOW_TRIAL_TIP:!1};break;case"prod-quanjing":bs={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:lyt,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,SHOW_TRIAL_TIP:!1};break;case"prod-web":bs={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:cbe,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,SHOW_TRIAL_TIP:!1};break;default:bs={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:cbe,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,SHOW_TRIAL_TIP:!1}}console.log("config.API_BASE_URL: ",N4e,bs);const Yl=navigator.userAgent.toLowerCase().indexOf("electron")>-1,xW=bs.API_URL,ube=bs.MQTT_URL;bs.HTML_URL;const yO=bs.IS_DEBUG,cyt=bs.SERVER_MODE,xo=bs.CLIENT,uyt=bs.USER_PRIVACY_URL,dyt=bs.SHOW_SWITCH_SERVER,fyt=bs.SHOW_SCAN_LOGIN,pyt=bs.LOGO_URL,hyt=bs.LOGO_NAME;bs.SHOW_CREATE_GROUP;bs.SHOW_CREATE_LLM;bs.SHOW_CONTACTS;bs.SHOW_FAVORITE;bs.SHOW_TRIAL_TIP;const Cp="BYTEDESK",dbe="locale",fbe="mode",PT="team",V1="agent",CF="personal",pbe="i18n.",c3="i18n.new.message",M4e="ANONYMOUS",Xd="bytedesk_login_credentials",hbe="THEME_MODE_TYPE",gbe="THEME_NAME_TYPE",O5="PLAY_AUDIO",P2="NETWORK_STATUS_NOTIFICATION",A2="CONFIG_ENABLED_AGENT",R5="CONFIG_API_URL_AGENT",I5="CONFIG_WEBSOCKET_URL_AGENT",TW="CONFIG_HTML_URL_AGENT",gyt="false",eT="CONFIG_CUSTOM_ENABLED_AGENT",KM="CONFIG_CUSTOM_API_URL_AGENT",XM="CONFIG_CUSTOM_WEBSOCKET_URL_AGENT",myt="CONFIG_PROPERTIES",vyt="SCREENSHOT_OK",yyt="EVENT_BUS_SERVER_ERROR_500",Jb="EVENT_BUS_TOKEN_INVALID",AP="EVENT_BUS_MQTT_MESSAGE",Ree="EVENT_BUS_MQTT_CONNECTED",Iee="EVENT_BUS_MQTT_OFFLINE",Nee="EVENT_BUS_MQTT_CLOSE",Mee="EVENT_BUS_MQTT_DISCONNECTED",Pee="EVENT_BUS_MQTT_ERROR",Aee="EVENT_BUS_MQTT_END",P4e="EVENT_BUS_MESSAGE_TYPE_STATUS",_yt="EVENT_BUS_MESSAGE_TYPE_TYPING",byt="EVENT_BUS_MESSAGE_TYPE_PROCESSING",Syt="EVENT_BUS_MESSAGE_TYPE_STREAM",Eyt="EVENT_BUS_MESSAGE_TYPE_PREVIEW",Dee="EVENT_BUS_MESSAGE_TYPE_TRANSFER",kee="EVENT_BUS_MESSAGE_TYPE_TRANSFER_ACCEPT",Lee="EVENT_BUS_MESSAGE_TYPE_TRANSFER_REJECT",Cyt="EVENT_BUS_SCREEN_CAPTURE_IMAGE",wyt="AUTH_STORE",G1="ACCESS_TOKEN",xyt="ORGANIZATION_STORE",Tyt="MEMBER_STORE",Oyt="MESSAGE_STORE",Ryt="CONTACT_STORE",Iyt="USER_STORE",Nyt="SETTINGS_STORE",Myt="THREAD_STORE",Pyt="DEVICE_STORE",Ayt="AGENT_STORE",Dyt="WORKGROUP_STORE",kyt="PROCESS_STORE",Lyt="member",A4e="device",$yt="MOBILE_LOGIN",Fyt="MOBILE_RESET",Byt="MOBILE_VERIFY",jyt="EMAIL_RESET",Uyt="EMAIL_VERIFY",Hyt="PENDING",zyt="SCANNED",Vyt="CONFIRMED",Gyt="EXPIRED",Wyt="https://cdn.weiyuai.cn/agent/assets/sound/dingdong.wav",Yyt="https://cdn.weiyuai.cn/agent/assets/css/scrollbar.css",qyt="https://www.weiyuai.cn/download.html",mbe="AGENT",vbe="USER",ybe="AGENT",_be="WORKGROUP",bbe="QUEUING",Sbe="CLOSED",Ebe="SENDING",$ee="SUCCESS",Kyt="TRANSFER_ACCEPT",Xyt="TRANSFER_REJECT",Fee="CONTINUE",D4e="SYSTEM",Qyt="QUEUE",Zyt="TEXT",Jyt="IMAGE",e_t="FILE",t_t="AUDIO",n_t="VIDEO",Bee="TYPING",jee="PROCESSING",DP="STREAM",Cbe="PREVIEW",wbe="RECALL",Uee="DELIVERED",Hee="READ",r_t="FAQ_UP",i_t="FAQ_DOWN",o_t="ROBOT_UP",a_t="ROBOT_DOWN",s_t="RATE_SUBMIT",l_t="RATE_CANCEL",kP="AUTO_CLOSED",LP="AGENT_CLOSED",xbe="TRANSFER",Tbe="TRANSFER_ACCEPT",Obe="TRANSFER_REJECT",Rbe="AVAILABLE",OW="OFFLINE",Ibe="REST",c_t="org/group/",u_t="TICKET",d_t="FLOWGRAM",f_t="CHAT",zee="lastPath",wF="TICKET",RW="FLOWGRAM",p_t="ROLE_SUPER",h_t="ROLE_ADMIN",g_t="ROLE_MEMBER",m_t="ROLE_AGENT",VD=Ru()(Lp(Ed($p((e,n)=>({accessToken:"",setAccessToken(r){localStorage.setItem(G1,r),e({accessToken:r})},getAccessToken(){return n().accessToken},removeAccessToken(){localStorage.removeItem(G1),e({accessToken:""})}})),{name:wyt}))),v_t=Ru()(Lp(Ed($p(e=>({settings:{playSound:!0,showNotifications:!0,openAtStartup:!1,colors:!1,proLayoutCollapsed:!0},currentMenu:"chat",setCurrentMenu(n){e({currentMenu:n})},setProLayoutCollapsed(n){e(r=>({settings:{...r.settings,proLayoutCollapsed:n}}))}})),{name:Nyt})));var HC={},k4e={exports:{}};(function(e){function n(r){return r&&r.__esModule?r:{default:r}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(k4e);var di=k4e.exports,f7={};Object.defineProperty(f7,"__esModule",{value:!0});f7.default=void 0;var y_t={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"};f7.default=y_t;var p7={},GD={},h7={},L4e={exports:{}},$4e={exports:{}},F4e={exports:{}},B4e={exports:{}};(function(e){function n(r){"@babel/helpers - typeof";return e.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},e.exports.__esModule=!0,e.exports.default=e.exports,n(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(B4e);var zC=B4e.exports,j4e={exports:{}};(function(e){var n=zC.default;function r(i,o){if(n(i)!="object"||!i)return i;var a=i[Symbol.toPrimitive];if(a!==void 0){var s=a.call(i,o||"default");if(n(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(j4e);var __t=j4e.exports;(function(e){var n=zC.default,r=__t;function i(o){var a=r(o,"string");return n(a)=="symbol"?a:a+""}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(F4e);var b_t=F4e.exports;(function(e){var n=b_t;function r(i,o,a){return(o=n(o))in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})($4e);var U4e=$4e.exports;(function(e){var n=U4e;function r(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);a&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),s.push.apply(s,l)}return s}function i(o){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?r(Object(s),!0).forEach(function(l){n(o,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(s,l))})}return o}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(L4e);var VC=L4e.exports,GR={};Object.defineProperty(GR,"__esModule",{value:!0});GR.commonLocale=void 0;GR.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var S_t=di.default;Object.defineProperty(h7,"__esModule",{value:!0});h7.default=void 0;var Nbe=S_t(VC),E_t=GR,C_t=(0,Nbe.default)((0,Nbe.default)({},E_t.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"});h7.default=C_t;var WD={};Object.defineProperty(WD,"__esModule",{value:!0});WD.default=void 0;const w_t={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};WD.default=w_t;var H4e=di.default;Object.defineProperty(GD,"__esModule",{value:!0});GD.default=void 0;var x_t=H4e(h7),T_t=H4e(WD);const O_t={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"]},x_t.default),timePickerLocale:Object.assign({},T_t.default)};GD.default=O_t;var R_t=di.default;Object.defineProperty(p7,"__esModule",{value:!0});p7.default=void 0;var I_t=R_t(GD);p7.default=I_t.default;var g7=di.default;Object.defineProperty(HC,"__esModule",{value:!0});HC.default=void 0;var N_t=g7(f7),M_t=g7(p7),P_t=g7(GD),A_t=g7(WD);const Ad="${label} is not a valid ${type}",D_t={locale:"en",Pagination:N_t.default,DatePicker:P_t.default,TimePicker:A_t.default,Calendar:M_t.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:Ad,method:Ad,array:Ad,object:Ad,number:Ad,date:Ad,boolean:Ad,integer:Ad,float:Ad,regexp:Ad,email:Ad,url:Ad,hex:Ad},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"}};HC.default=D_t;var k_t=HC;const Mbe=Or(k_t);var m7={},v7={};Object.defineProperty(v7,"__esModule",{value:!0});v7.default=void 0;var L_t={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:"页码"};v7.default=L_t;var y7={},YD={},_7={},$_t=di.default;Object.defineProperty(_7,"__esModule",{value:!0});_7.default=void 0;var Pbe=$_t(VC),F_t=GR,B_t=(0,Pbe.default)((0,Pbe.default)({},F_t.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});_7.default=B_t;var qD={};Object.defineProperty(qD,"__esModule",{value:!0});qD.default=void 0;const j_t={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};qD.default=j_t;var z4e=di.default;Object.defineProperty(YD,"__esModule",{value:!0});YD.default=void 0;var U_t=z4e(_7),H_t=z4e(qD);const V4e={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},U_t.default),timePickerLocale:Object.assign({},H_t.default)};V4e.lang.ok="确定";YD.default=V4e;var z_t=di.default;Object.defineProperty(y7,"__esModule",{value:!0});y7.default=void 0;var V_t=z_t(YD);y7.default=V_t.default;var b7=di.default;Object.defineProperty(m7,"__esModule",{value:!0});m7.default=void 0;var G_t=b7(v7),W_t=b7(y7),Y_t=b7(YD),q_t=b7(qD);const Dd="${label}不是一个有效的${type}",K_t={locale:"zh-cn",Pagination:G_t.default,DatePicker:Y_t.default,TimePicker:q_t.default,Calendar:W_t.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:Dd,method:Dd,array:Dd,object:Dd,number:Dd,date:Dd,boolean:Dd,integer:Dd,float:Dd,regexp:Dd,email:Dd,url:Dd,hex:Dd},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:"渐变色"}};m7.default=K_t;var X_t=m7;const tT=Or(X_t);var S7={},E7={};Object.defineProperty(E7,"__esModule",{value:!0});E7.default=void 0;var Q_t={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:"頁碼"};E7.default=Q_t;var C7={},KD={},w7={},Z_t=di.default;Object.defineProperty(w7,"__esModule",{value:!0});w7.default=void 0;var Abe=Z_t(VC),J_t=GR,ebt=(0,Abe.default)((0,Abe.default)({},J_t.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});w7.default=ebt;var XD={};Object.defineProperty(XD,"__esModule",{value:!0});XD.default=void 0;const tbt={placeholder:"請選擇時間"};XD.default=tbt;var G4e=di.default;Object.defineProperty(KD,"__esModule",{value:!0});KD.default=void 0;var nbt=G4e(w7),rbt=G4e(XD);const W4e={lang:Object.assign({placeholder:"請選擇日期",yearPlaceholder:"請選擇年份",quarterPlaceholder:"請選擇季度",monthPlaceholder:"請選擇月份",weekPlaceholder:"請選擇周",rangePlaceholder:["開始日期","結束日期"],rangeYearPlaceholder:["開始年份","結束年份"],rangeMonthPlaceholder:["開始月份","結束月份"],rangeQuarterPlaceholder:["開始季度","結束季度"],rangeWeekPlaceholder:["開始周","結束周"]},nbt.default),timePickerLocale:Object.assign({},rbt.default)};W4e.lang.ok="確 定";KD.default=W4e;var ibt=di.default;Object.defineProperty(C7,"__esModule",{value:!0});C7.default=void 0;var obt=ibt(KD);C7.default=obt.default;var x7=di.default;Object.defineProperty(S7,"__esModule",{value:!0});S7.default=void 0;var abt=x7(E7),sbt=x7(C7),lbt=x7(KD),cbt=x7(XD);const kd="${label}不是一個有效的${type}",ubt={locale:"zh-tw",Pagination:abt.default,DatePicker:lbt.default,TimePicker:cbt.default,Calendar:sbt.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:kd,method:kd,array:kd,object:kd,number:kd,date:kd,boolean:kd,integer:kd,float:kd,regexp:kd,email:kd,url:kd,hex:kd},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:"已掃描"}};S7.default=ubt;var dbt=S7;const fbt=Or(dbt);function Y4e(){const e=localStorage.getItem(gbe)||"light",[n,r]=m.useState(e),i=localStorage.getItem(hbe)||"system",[o,a]=m.useState(i);return m.useEffect(()=>{i==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?r("dark"):r("light"),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",s=>{s.matches?r("dark"):r("light")}))},[]),m.useEffect(()=>{localStorage.setItem(hbe,o),o==="light"?r("light"):o==="dark"?r("dark"):o==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?r("dark"):r("light"))},[o]),m.useEffect(()=>{localStorage.setItem(gbe,n)},[n]),{themeName:n,setThemeName:r,themeMode:o,setThemeMode:a,isDarkMode:n==="dark",isLightMode:n==="light"}}function q4e(e,n){return function(){return e.apply(n,arguments)}}const{toString:pbt}=Object.prototype,{getPrototypeOf:Sle}=Object,T7=(e=>n=>{const r=pbt.call(n);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),mg=e=>(e=e.toLowerCase(),n=>T7(n)===e),O7=e=>n=>typeof n===e,{isArray:WR}=Array,$P=O7("undefined");function hbt(e){return e!==null&&!$P(e)&&e.constructor!==null&&!$P(e.constructor)&&pf(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const K4e=mg("ArrayBuffer");function gbt(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&K4e(e.buffer),n}const mbt=O7("string"),pf=O7("function"),X4e=O7("number"),R7=e=>e!==null&&typeof e=="object",vbt=e=>e===!0||e===!1,N5=e=>{if(T7(e)!=="object")return!1;const n=Sle(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ybt=mg("Date"),_bt=mg("File"),bbt=mg("Blob"),Sbt=mg("FileList"),Ebt=e=>R7(e)&&pf(e.pipe),Cbt=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||pf(e.append)&&((n=T7(e))==="formdata"||n==="object"&&pf(e.toString)&&e.toString()==="[object FormData]"))},wbt=mg("URLSearchParams"),[xbt,Tbt,Obt,Rbt]=["ReadableStream","Request","Response","Headers"].map(mg),Ibt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function QD(e,n,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),WR(e))for(i=0,o=e.length;i<o;i++)n.call(null,e[i],i,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length;let l;for(i=0;i<s;i++)l=a[i],n.call(null,e[l],l,e)}}function Q4e(e,n){n=n.toLowerCase();const r=Object.keys(e);let i=r.length,o;for(;i-- >0;)if(o=r[i],n===o.toLowerCase())return o;return null}const KE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Z4e=e=>!$P(e)&&e!==KE;function Vee(){const{caseless:e}=Z4e(this)&&this||{},n={},r=(i,o)=>{const a=e&&Q4e(n,o)||o;N5(n[a])&&N5(i)?n[a]=Vee(n[a],i):N5(i)?n[a]=Vee({},i):WR(i)?n[a]=i.slice():n[a]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&QD(arguments[i],r);return n}const Nbt=(e,n,r,{allOwnKeys:i}={})=>(QD(n,(o,a)=>{r&&pf(o)?e[a]=q4e(o,r):e[a]=o},{allOwnKeys:i}),e),Mbt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Pbt=(e,n,r,i)=>{e.prototype=Object.create(n.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),r&&Object.assign(e.prototype,r)},Abt=(e,n,r,i)=>{let o,a,s;const l={};if(n=n||{},e==null)return n;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],(!i||i(s,e,n))&&!l[s]&&(n[s]=e[s],l[s]=!0);e=r!==!1&&Sle(e)}while(e&&(!r||r(e,n))&&e!==Object.prototype);return n},Dbt=(e,n,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=n.length;const i=e.indexOf(n,r);return i!==-1&&i===r},kbt=e=>{if(!e)return null;if(WR(e))return e;let n=e.length;if(!X4e(n))return null;const r=new Array(n);for(;n-- >0;)r[n]=e[n];return r},Lbt=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&Sle(Uint8Array)),$bt=(e,n)=>{const i=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=i.next())&&!o.done;){const a=o.value;n.call(e,a[0],a[1])}},Fbt=(e,n)=>{let r;const i=[];for(;(r=e.exec(n))!==null;)i.push(r);return i},Bbt=mg("HTMLFormElement"),jbt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,o){return i.toUpperCase()+o}),Dbe=(({hasOwnProperty:e})=>(n,r)=>e.call(n,r))(Object.prototype),Ubt=mg("RegExp"),J4e=(e,n)=>{const r=Object.getOwnPropertyDescriptors(e),i={};QD(r,(o,a)=>{let s;(s=n(o,a,e))!==!1&&(i[a]=s||o)}),Object.defineProperties(e,i)},Hbt=e=>{J4e(e,(n,r)=>{if(pf(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=e[r];if(pf(i)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},zbt=(e,n)=>{const r={},i=o=>{o.forEach(a=>{r[a]=!0})};return WR(e)?i(e):i(String(e).split(n)),r},Vbt=()=>{},Gbt=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n,IW="abcdefghijklmnopqrstuvwxyz",kbe="0123456789",e5e={DIGIT:kbe,ALPHA:IW,ALPHA_DIGIT:IW+IW.toUpperCase()+kbe},Wbt=(e=16,n=e5e.ALPHA_DIGIT)=>{let r="";const{length:i}=n;for(;e--;)r+=n[Math.random()*i|0];return r};function Ybt(e){return!!(e&&pf(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const qbt=e=>{const n=new Array(10),r=(i,o)=>{if(R7(i)){if(n.indexOf(i)>=0)return;if(!("toJSON"in i)){n[o]=i;const a=WR(i)?[]:{};return QD(i,(s,l)=>{const c=r(s,o+1);!$P(c)&&(a[l]=c)}),n[o]=void 0,a}}return i};return r(e,0)},Kbt=mg("AsyncFunction"),Xbt=e=>e&&(R7(e)||pf(e))&&pf(e.then)&&pf(e.catch),t5e=((e,n)=>e?setImmediate:n?((r,i)=>(KE.addEventListener("message",({source:o,data:a})=>{o===KE&&a===r&&i.length&&i.shift()()},!1),o=>{i.push(o),KE.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",pf(KE.postMessage)),Qbt=typeof queueMicrotask<"u"?queueMicrotask.bind(KE):typeof process<"u"&&process.nextTick||t5e,nn={isArray:WR,isArrayBuffer:K4e,isBuffer:hbt,isFormData:Cbt,isArrayBufferView:gbt,isString:mbt,isNumber:X4e,isBoolean:vbt,isObject:R7,isPlainObject:N5,isReadableStream:xbt,isRequest:Tbt,isResponse:Obt,isHeaders:Rbt,isUndefined:$P,isDate:ybt,isFile:_bt,isBlob:bbt,isRegExp:Ubt,isFunction:pf,isStream:Ebt,isURLSearchParams:wbt,isTypedArray:Lbt,isFileList:Sbt,forEach:QD,merge:Vee,extend:Nbt,trim:Ibt,stripBOM:Mbt,inherits:Pbt,toFlatObject:Abt,kindOf:T7,kindOfTest:mg,endsWith:Dbt,toArray:kbt,forEachEntry:$bt,matchAll:Fbt,isHTMLForm:Bbt,hasOwnProperty:Dbe,hasOwnProp:Dbe,reduceDescriptors:J4e,freezeMethods:Hbt,toObjectSet:zbt,toCamelCase:jbt,noop:Vbt,toFiniteNumber:Gbt,findKey:Q4e,global:KE,isContextDefined:Z4e,ALPHABET:e5e,generateString:Wbt,isSpecCompliantForm:Ybt,toJSONObject:qbt,isAsyncFn:Kbt,isThenable:Xbt,setImmediate:t5e,asap:Qbt};function fi(e,n,r,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),o&&(this.response=o,this.status=o.status?o.status:null)}nn.inherits(fi,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:nn.toJSONObject(this.config),code:this.code,status:this.status}}});const n5e=fi.prototype,r5e={};["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=>{r5e[e]={value:e}});Object.defineProperties(fi,r5e);Object.defineProperty(n5e,"isAxiosError",{value:!0});fi.from=(e,n,r,i,o,a)=>{const s=Object.create(n5e);return nn.toFlatObject(e,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),fi.call(s,e.message,n,r,i,o),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const Zbt=null;function Gee(e){return nn.isPlainObject(e)||nn.isArray(e)}function i5e(e){return nn.endsWith(e,"[]")?e.slice(0,-2):e}function Lbe(e,n,r){return e?e.concat(n).map(function(o,a){return o=i5e(o),!r&&a?"["+o+"]":o}).join(r?".":""):n}function Jbt(e){return nn.isArray(e)&&!e.some(Gee)}const e0t=nn.toFlatObject(nn,{},null,function(n){return/^is[A-Z]/.test(n)});function I7(e,n,r){if(!nn.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,r=nn.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,y){return!nn.isUndefined(y[v])});const i=r.metaTokens,o=r.visitor||d,a=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&nn.isSpecCompliantForm(n);if(!nn.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(nn.isDate(g))return g.toISOString();if(!c&&nn.isBlob(g))throw new fi("Blob is not supported. Use a Buffer instead.");return nn.isArrayBuffer(g)||nn.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,v,y){let _=g;if(g&&!y&&typeof g=="object"){if(nn.endsWith(v,"{}"))v=i?v:v.slice(0,-2),g=JSON.stringify(g);else if(nn.isArray(g)&&Jbt(g)||(nn.isFileList(g)||nn.endsWith(v,"[]"))&&(_=nn.toArray(g)))return v=i5e(v),_.forEach(function(b,E){!(nn.isUndefined(b)||b===null)&&n.append(s===!0?Lbe([v],E,a):s===null?v:v+"[]",u(b))}),!1}return Gee(g)?!0:(n.append(Lbe(y,v,a),u(g)),!1)}const f=[],p=Object.assign(e0t,{defaultVisitor:d,convertValue:u,isVisitable:Gee});function h(g,v){if(!nn.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(g),nn.forEach(g,function(_,S){(!(nn.isUndefined(_)||_===null)&&o.call(n,_,nn.isString(S)?S.trim():S,v,p))===!0&&h(_,v?v.concat(S):[S])}),f.pop()}}if(!nn.isObject(e))throw new TypeError("data must be an object");return h(e),n}function $be(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return n[i]})}function Ele(e,n){this._pairs=[],e&&I7(e,this,n)}const o5e=Ele.prototype;o5e.append=function(n,r){this._pairs.push([n,r])};o5e.toString=function(n){const r=n?function(i){return n.call(this,i,$be)}:$be;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function t0t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function a5e(e,n,r){if(!n)return e;const i=r&&r.encode||t0t;nn.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let a;if(o?a=o(n,r):a=nn.isURLSearchParams(n)?n.toString():new Ele(n,r).toString(i),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Fbe{constructor(){this.handlers=[]}use(n,r,i){return this.handlers.push({fulfilled:n,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){nn.forEach(this.handlers,function(i){i!==null&&n(i)})}}const s5e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},n0t=typeof URLSearchParams<"u"?URLSearchParams:Ele,r0t=typeof FormData<"u"?FormData:null,i0t=typeof Blob<"u"?Blob:null,o0t={isBrowser:!0,classes:{URLSearchParams:n0t,FormData:r0t,Blob:i0t},protocols:["http","https","file","blob","url","data"]},Cle=typeof window<"u"&&typeof document<"u",Wee=typeof navigator=="object"&&navigator||void 0,a0t=Cle&&(!Wee||["ReactNative","NativeScript","NS"].indexOf(Wee.product)<0),s0t=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",l0t=Cle&&window.location.href||"http://localhost",c0t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Cle,hasStandardBrowserEnv:a0t,hasStandardBrowserWebWorkerEnv:s0t,navigator:Wee,origin:l0t},Symbol.toStringTag,{value:"Module"})),Fc={...c0t,...o0t};function u0t(e,n){return I7(e,new Fc.classes.URLSearchParams,Object.assign({visitor:function(r,i,o,a){return Fc.isNode&&nn.isBuffer(r)?(this.append(i,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},n))}function d0t(e){return nn.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function f0t(e){const n={},r=Object.keys(e);let i;const o=r.length;let a;for(i=0;i<o;i++)a=r[i],n[a]=e[a];return n}function l5e(e){function n(r,i,o,a){let s=r[a++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=a>=r.length;return s=!s&&nn.isArray(o)?o.length:s,c?(nn.hasOwnProp(o,s)?o[s]=[o[s],i]:o[s]=i,!l):((!o[s]||!nn.isObject(o[s]))&&(o[s]=[]),n(r,i,o[s],a)&&nn.isArray(o[s])&&(o[s]=f0t(o[s])),!l)}if(nn.isFormData(e)&&nn.isFunction(e.entries)){const r={};return nn.forEachEntry(e,(i,o)=>{n(d0t(i),o,r,0)}),r}return null}function p0t(e,n,r){if(nn.isString(e))try{return(n||JSON.parse)(e),nn.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(e)}const ZD={transitional:s5e,adapter:["xhr","http","fetch"],transformRequest:[function(n,r){const i=r.getContentType()||"",o=i.indexOf("application/json")>-1,a=nn.isObject(n);if(a&&nn.isHTMLForm(n)&&(n=new FormData(n)),nn.isFormData(n))return o?JSON.stringify(l5e(n)):n;if(nn.isArrayBuffer(n)||nn.isBuffer(n)||nn.isStream(n)||nn.isFile(n)||nn.isBlob(n)||nn.isReadableStream(n))return n;if(nn.isArrayBufferView(n))return n.buffer;if(nn.isURLSearchParams(n))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let l;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return u0t(n,this.formSerializer).toString();if((l=nn.isFileList(n))||i.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return I7(l?{"files[]":n}:n,c&&new c,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),p0t(n)):n}],transformResponse:[function(n){const r=this.transitional||ZD.transitional,i=r&&r.forcedJSONParsing,o=this.responseType==="json";if(nn.isResponse(n)||nn.isReadableStream(n))return n;if(n&&nn.isString(n)&&(i&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(n)}catch(l){if(s)throw l.name==="SyntaxError"?fi.from(l,fi.ERR_BAD_RESPONSE,this,null,this.response):l}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fc.classes.FormData,Blob:Fc.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};nn.forEach(["delete","get","head","post","put","patch"],e=>{ZD.headers[e]={}});const h0t=nn.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"]),g0t=e=>{const n={};let r,i,o;return e&&e.split(`
`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),i=s.substring(o+1).trim(),!(!r||n[r]&&h0t[r])&&(r==="set-cookie"?n[r]?n[r].push(i):n[r]=[i]:n[r]=n[r]?n[r]+", "+i:i)}),n},Bbe=Symbol("internals");function UN(e){return e&&String(e).trim().toLowerCase()}function M5(e){return e===!1||e==null?e:nn.isArray(e)?e.map(M5):String(e)}function m0t(e){const n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(e);)n[i[1]]=i[2];return n}const v0t=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function NW(e,n,r,i,o){if(nn.isFunction(i))return i.call(this,n,r);if(o&&(n=r),!!nn.isString(n)){if(nn.isString(i))return n.indexOf(i)!==-1;if(nn.isRegExp(i))return i.test(n)}}function y0t(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,r,i)=>r.toUpperCase()+i)}function _0t(e,n){const r=nn.toCamelCase(" "+n);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+r,{value:function(o,a,s){return this[i].call(this,n,o,a,s)},configurable:!0})})}class dd{constructor(n){n&&this.set(n)}set(n,r,i){const o=this;function a(l,c,u){const d=UN(c);if(!d)throw new Error("header name must be a non-empty string");const f=nn.findKey(o,d);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||c]=M5(l))}const s=(l,c)=>nn.forEach(l,(u,d)=>a(u,d,c));if(nn.isPlainObject(n)||n instanceof this.constructor)s(n,r);else if(nn.isString(n)&&(n=n.trim())&&!v0t(n))s(g0t(n),r);else if(nn.isHeaders(n))for(const[l,c]of n.entries())a(c,l,i);else n!=null&&a(r,n,i);return this}get(n,r){if(n=UN(n),n){const i=nn.findKey(this,n);if(i){const o=this[i];if(!r)return o;if(r===!0)return m0t(o);if(nn.isFunction(r))return r.call(this,o,i);if(nn.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,r){if(n=UN(n),n){const i=nn.findKey(this,n);return!!(i&&this[i]!==void 0&&(!r||NW(this,this[i],i,r)))}return!1}delete(n,r){const i=this;let o=!1;function a(s){if(s=UN(s),s){const l=nn.findKey(i,s);l&&(!r||NW(i,i[l],l,r))&&(delete i[l],o=!0)}}return nn.isArray(n)?n.forEach(a):a(n),o}clear(n){const r=Object.keys(this);let i=r.length,o=!1;for(;i--;){const a=r[i];(!n||NW(this,this[a],a,n,!0))&&(delete this[a],o=!0)}return o}normalize(n){const r=this,i={};return nn.forEach(this,(o,a)=>{const s=nn.findKey(i,a);if(s){r[s]=M5(o),delete r[a];return}const l=n?y0t(a):String(a).trim();l!==a&&delete r[a],r[l]=M5(o),i[l]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const r=Object.create(null);return nn.forEach(this,(i,o)=>{i!=null&&i!==!1&&(r[o]=n&&nn.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,r])=>n+": "+r).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...r){const i=new this(n);return r.forEach(o=>i.set(o)),i}static accessor(n){const i=(this[Bbe]=this[Bbe]={accessors:{}}).accessors,o=this.prototype;function a(s){const l=UN(s);i[l]||(_0t(o,s),i[l]=!0)}return nn.isArray(n)?n.forEach(a):a(n),this}}dd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);nn.reduceDescriptors(dd.prototype,({value:e},n)=>{let r=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(i){this[r]=i}}});nn.freezeMethods(dd);function MW(e,n){const r=this||ZD,i=n||r,o=dd.from(i.headers);let a=i.data;return nn.forEach(e,function(l){a=l.call(r,a,o.normalize(),n?n.status:void 0)}),o.normalize(),a}function c5e(e){return!!(e&&e.__CANCEL__)}function YR(e,n,r){fi.call(this,e??"canceled",fi.ERR_CANCELED,n,r),this.name="CanceledError"}nn.inherits(YR,fi,{__CANCEL__:!0});function u5e(e,n,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):n(new fi("Request failed with status code "+r.status,[fi.ERR_BAD_REQUEST,fi.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function b0t(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function S0t(e,n){e=e||10;const r=new Array(e),i=new Array(e);let o=0,a=0,s;return n=n!==void 0?n:1e3,function(c){const u=Date.now(),d=i[a];s||(s=u),r[o]=c,i[o]=u;let f=a,p=0;for(;f!==o;)p+=r[f++],f=f%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-s<n)return;const h=d&&u-d;return h?Math.round(p*1e3/h):void 0}}function E0t(e,n){let r=0,i=1e3/n,o,a;const s=(u,d=Date.now())=>{r=d,o=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),f=d-r;f>=i?s(u,d):(o=u,a||(a=setTimeout(()=>{a=null,s(o)},i-f)))},()=>o&&s(o)]}const xF=(e,n,r=3)=>{let i=0;const o=S0t(50,250);return E0t(a=>{const s=a.loaded,l=a.lengthComputable?a.total:void 0,c=s-i,u=o(c),d=s<=l;i=s;const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-s)/u:void 0,event:a,lengthComputable:l!=null,[n?"download":"upload"]:!0};e(f)},r)},jbe=(e,n)=>{const r=e!=null;return[i=>n[0]({lengthComputable:r,total:e,loaded:i}),n[1]]},Ube=e=>(...n)=>nn.asap(()=>e(...n)),C0t=Fc.hasStandardBrowserEnv?((e,n)=>r=>(r=new URL(r,Fc.origin),e.protocol===r.protocol&&e.host===r.host&&(n||e.port===r.port)))(new URL(Fc.origin),Fc.navigator&&/(msie|trident)/i.test(Fc.navigator.userAgent)):()=>!0,w0t=Fc.hasStandardBrowserEnv?{write(e,n,r,i,o,a){const s=[e+"="+encodeURIComponent(n)];nn.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),nn.isString(i)&&s.push("path="+i),nn.isString(o)&&s.push("domain="+o),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function x0t(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function T0t(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function d5e(e,n){return e&&!x0t(n)?T0t(e,n):n}const Hbe=e=>e instanceof dd?{...e}:e;function W1(e,n){n=n||{};const r={};function i(u,d,f,p){return nn.isPlainObject(u)&&nn.isPlainObject(d)?nn.merge.call({caseless:p},u,d):nn.isPlainObject(d)?nn.merge({},d):nn.isArray(d)?d.slice():d}function o(u,d,f,p){if(nn.isUndefined(d)){if(!nn.isUndefined(u))return i(void 0,u,f,p)}else return i(u,d,f,p)}function a(u,d){if(!nn.isUndefined(d))return i(void 0,d)}function s(u,d){if(nn.isUndefined(d)){if(!nn.isUndefined(u))return i(void 0,u)}else return i(void 0,d)}function l(u,d,f){if(f in n)return i(u,d);if(f in e)return i(void 0,u)}const c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,d,f)=>o(Hbe(u),Hbe(d),f,!0)};return nn.forEach(Object.keys(Object.assign({},e,n)),function(d){const f=c[d]||o,p=f(e[d],n[d],d);nn.isUndefined(p)&&f!==l||(r[d]=p)}),r}const f5e=e=>{const n=W1({},e);let{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=n;n.headers=s=dd.from(s),n.url=a5e(d5e(n.baseURL,n.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(nn.isFormData(r)){if(Fc.hasStandardBrowserEnv||Fc.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...d]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Fc.hasStandardBrowserEnv&&(i&&nn.isFunction(i)&&(i=i(n)),i||i!==!1&&C0t(n.url))){const u=o&&a&&w0t.read(a);u&&s.set(o,u)}return n},O0t=typeof XMLHttpRequest<"u",R0t=O0t&&function(e){return new Promise(function(r,i){const o=f5e(e);let a=o.data;const s=dd.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=o,d,f,p,h,g;function v(){h&&h(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function _(){if(!y)return;const b=dd.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:b,config:e,request:y};u5e(function(x){r(x),v()},function(x){i(x),v()},w),y=null}"onloadend"in y?y.onloadend=_:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(_)},y.onabort=function(){y&&(i(new fi("Request aborted",fi.ECONNABORTED,e,y)),y=null)},y.onerror=function(){i(new fi("Network Error",fi.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||s5e;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),i(new fi(E,w.clarifyTimeoutError?fi.ETIMEDOUT:fi.ECONNABORTED,e,y)),y=null},a===void 0&&s.setContentType(null),"setRequestHeader"in y&&nn.forEach(s.toJSON(),function(E,w){y.setRequestHeader(w,E)}),nn.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),l&&l!=="json"&&(y.responseType=o.responseType),u&&([p,g]=xF(u,!0),y.addEventListener("progress",p)),c&&y.upload&&([f,h]=xF(c),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(d=b=>{y&&(i(!b||b.type?new YR(null,e,y):b),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const S=b0t(o.url);if(S&&Fc.protocols.indexOf(S)===-1){i(new fi("Unsupported protocol "+S+":",fi.ERR_BAD_REQUEST,e));return}y.send(a||null)})},I0t=(e,n)=>{const{length:r}=e=e?e.filter(Boolean):[];if(n||r){let i=new AbortController,o;const a=function(u){if(!o){o=!0,l();const d=u instanceof Error?u:this.reason;i.abort(d instanceof fi?d:new YR(d instanceof Error?d.message:d))}};let s=n&&setTimeout(()=>{s=null,a(new fi(`timeout ${n} of ms exceeded`,fi.ETIMEDOUT))},n);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:c}=i;return c.unsubscribe=()=>nn.asap(l),c}},N0t=function*(e,n){let r=e.byteLength;if(r<n){yield e;return}let i=0,o;for(;i<r;)o=i+n,yield e.slice(i,o),i=o},M0t=async function*(e,n){for await(const r of P0t(e))yield*N0t(r,n)},P0t=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const n=e.getReader();try{for(;;){const{done:r,value:i}=await n.read();if(r)break;yield i}}finally{await n.cancel()}},zbe=(e,n,r,i)=>{const o=M0t(e,n);let a=0,s,l=c=>{s||(s=!0,i&&i(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await o.next();if(u){l(),c.close();return}let f=d.byteLength;if(r){let p=a+=f;r(p)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},N7=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",p5e=N7&&typeof ReadableStream=="function",A0t=N7&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),h5e=(e,...n)=>{try{return!!e(...n)}catch{return!1}},D0t=p5e&&h5e(()=>{let e=!1;const n=new Request(Fc.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),Vbe=64*1024,Yee=p5e&&h5e(()=>nn.isReadableStream(new Response("").body)),TF={stream:Yee&&(e=>e.body)};N7&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!TF[n]&&(TF[n]=nn.isFunction(e[n])?r=>r[n]():(r,i)=>{throw new fi(`Response type '${n}' is not supported`,fi.ERR_NOT_SUPPORT,i)})})})(new Response);const k0t=async e=>{if(e==null)return 0;if(nn.isBlob(e))return e.size;if(nn.isSpecCompliantForm(e))return(await new Request(Fc.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(nn.isArrayBufferView(e)||nn.isArrayBuffer(e))return e.byteLength;if(nn.isURLSearchParams(e)&&(e=e+""),nn.isString(e))return(await A0t(e)).byteLength},L0t=async(e,n)=>{const r=nn.toFiniteNumber(e.getContentLength());return r??k0t(n)},$0t=N7&&(async e=>{let{url:n,method:r,data:i,signal:o,cancelToken:a,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:p}=f5e(e);u=u?(u+"").toLowerCase():"text";let h=I0t([o,a&&a.toAbortSignal()],s),g;const v=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let y;try{if(c&&D0t&&r!=="get"&&r!=="head"&&(y=await L0t(d,i))!==0){let w=new Request(n,{method:"POST",body:i,duplex:"half"}),C;if(nn.isFormData(i)&&(C=w.headers.get("content-type"))&&d.setContentType(C),w.body){const[x,T]=jbe(y,xF(Ube(c)));i=zbe(w.body,Vbe,x,T)}}nn.isString(f)||(f=f?"include":"omit");const _="credentials"in Request.prototype;g=new Request(n,{...p,signal:h,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:i,duplex:"half",credentials:_?f:void 0});let S=await fetch(g);const b=Yee&&(u==="stream"||u==="response");if(Yee&&(l||b&&v)){const w={};["status","statusText","headers"].forEach(R=>{w[R]=S[R]});const C=nn.toFiniteNumber(S.headers.get("content-length")),[x,T]=l&&jbe(C,xF(Ube(l),!0))||[];S=new Response(zbe(S.body,Vbe,x,()=>{T&&T(),v&&v()}),w)}u=u||"text";let E=await TF[nn.findKey(TF,u)||"text"](S,e);return!b&&v&&v(),await new Promise((w,C)=>{u5e(w,C,{data:E,headers:dd.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:g})})}catch(_){throw v&&v(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new fi("Network Error",fi.ERR_NETWORK,e,g),{cause:_.cause||_}):fi.from(_,_&&_.code,e,g)}}),qee={http:Zbt,xhr:R0t,fetch:$0t};nn.forEach(qee,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const Gbe=e=>`- ${e}`,F0t=e=>nn.isFunction(e)||e===null||e===!1,g5e={getAdapter:e=>{e=nn.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let a=0;a<n;a++){r=e[a];let s;if(i=r,!F0t(r)&&(i=qee[(s=String(r)).toLowerCase()],i===void 0))throw new fi(`Unknown adapter '${s}'`);if(i)break;o[s||"#"+a]=i}if(!i){const a=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?a.length>1?`since :
`+a.map(Gbe).join(`
`):" "+Gbe(a[0]):"as no adapter specified";throw new fi("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i},adapters:qee};function PW(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new YR(null,e)}function Wbe(e){return PW(e),e.headers=dd.from(e.headers),e.data=MW.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),g5e.getAdapter(e.adapter||ZD.adapter)(e).then(function(i){return PW(e),i.data=MW.call(e,e.transformResponse,i),i.headers=dd.from(i.headers),i},function(i){return c5e(i)||(PW(e),i&&i.response&&(i.response.data=MW.call(e,e.transformResponse,i.response),i.response.headers=dd.from(i.response.headers))),Promise.reject(i)})}const m5e="1.7.9",M7={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{M7[e]=function(i){return typeof i===e||"a"+(n<1?"n ":" ")+e}});const Ybe={};M7.transitional=function(n,r,i){function o(a,s){return"[Axios v"+m5e+"] Transitional option '"+a+"'"+s+(i?". "+i:"")}return(a,s,l)=>{if(n===!1)throw new fi(o(s," has been removed"+(r?" in "+r:"")),fi.ERR_DEPRECATED);return r&&!Ybe[s]&&(Ybe[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),n?n(a,s,l):!0}};M7.spelling=function(n){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${n}`),!0)};function B0t(e,n,r){if(typeof e!="object")throw new fi("options must be an object",fi.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const a=i[o],s=n[a];if(s){const l=e[a],c=l===void 0||s(l,a,e);if(c!==!0)throw new fi("option "+a+" must be "+c,fi.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new fi("Unknown option "+a,fi.ERR_BAD_OPTION)}}const P5={assertOptions:B0t,validators:M7},Fg=P5.validators;class b1{constructor(n){this.defaults=n,this.interceptors={request:new Fbe,response:new Fbe}}async request(n,r){try{return await this._request(n,r)}catch(i){if(i instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
`+a):i.stack=a}catch{}}throw i}}_request(n,r){typeof n=="string"?(r=r||{},r.url=n):r=n||{},r=W1(this.defaults,r);const{transitional:i,paramsSerializer:o,headers:a}=r;i!==void 0&&P5.assertOptions(i,{silentJSONParsing:Fg.transitional(Fg.boolean),forcedJSONParsing:Fg.transitional(Fg.boolean),clarifyTimeoutError:Fg.transitional(Fg.boolean)},!1),o!=null&&(nn.isFunction(o)?r.paramsSerializer={serialize:o}:P5.assertOptions(o,{encode:Fg.function,serialize:Fg.function},!0)),P5.assertOptions(r,{baseUrl:Fg.spelling("baseURL"),withXsrfToken:Fg.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=a&&nn.merge(a.common,a[r.method]);a&&nn.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),r.headers=dd.concat(s,a);const l=[];let c=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(c=c&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let d,f=0,p;if(!c){const g=[Wbe.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,u),p=g.length,d=Promise.resolve(r);f<p;)d=d.then(g[f++],g[f++]);return d}p=l.length;let h=r;for(f=0;f<p;){const g=l[f++],v=l[f++];try{h=g(h)}catch(y){v.call(this,y);break}}try{d=Wbe.call(this,h)}catch(g){return Promise.reject(g)}for(f=0,p=u.length;f<p;)d=d.then(u[f++],u[f++]);return d}getUri(n){n=W1(this.defaults,n);const r=d5e(n.baseURL,n.url);return a5e(r,n.params,n.paramsSerializer)}}nn.forEach(["delete","get","head","options"],function(n){b1.prototype[n]=function(r,i){return this.request(W1(i||{},{method:n,url:r,data:(i||{}).data}))}});nn.forEach(["post","put","patch"],function(n){function r(i){return function(a,s,l){return this.request(W1(l||{},{method:n,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}b1.prototype[n]=r(),b1.prototype[n+"Form"]=r(!0)});class wle{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const i=this;this.promise.then(o=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](o);i._listeners=null}),this.promise.then=o=>{let a;const s=new Promise(l=>{i.subscribe(l),a=l}).then(o);return s.cancel=function(){i.unsubscribe(a)},s},n(function(a,s,l){i.reason||(i.reason=new YR(a,s,l),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const r=this._listeners.indexOf(n);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const n=new AbortController,r=i=>{n.abort(i)};return this.subscribe(r),n.signal.unsubscribe=()=>this.unsubscribe(r),n.signal}static source(){let n;return{token:new wle(function(o){n=o}),cancel:n}}}function j0t(e){return function(r){return e.apply(null,r)}}function U0t(e){return nn.isObject(e)&&e.isAxiosError===!0}const Kee={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(Kee).forEach(([e,n])=>{Kee[n]=e});function v5e(e){const n=new b1(e),r=q4e(b1.prototype.request,n);return nn.extend(r,b1.prototype,n,{allOwnKeys:!0}),nn.extend(r,n,null,{allOwnKeys:!0}),r.create=function(o){return v5e(W1(e,o))},r}const Gs=v5e(ZD);Gs.Axios=b1;Gs.CanceledError=YR;Gs.CancelToken=wle;Gs.isCancel=c5e;Gs.VERSION=m5e;Gs.toFormData=I7;Gs.AxiosError=fi;Gs.Cancel=Gs.CanceledError;Gs.all=function(n){return Promise.all(n)};Gs.spread=j0t;Gs.isAxiosError=U0t;Gs.mergeConfig=W1;Gs.AxiosHeaders=dd;Gs.formToJSON=e=>l5e(nn.isHTMLForm(e)?new FormData(e):e);Gs.getAdapter=g5e.getAdapter;Gs.HttpStatusCode=Kee;Gs.default=Gs;function H0t(e){return{all:e=e||new Map,on:function(n,r){var i=e.get(n);i?i.push(r):e.set(n,[r])},off:function(n,r){var i=e.get(n);i&&(r?i.splice(i.indexOf(r)>>>0,1):e.set(n,[]))},emit:function(n,r){var i=e.get(n);i&&i.slice().map(function(o){o(r)}),(i=e.get("*"))&&i.slice().map(function(o){o(n,r)})}}}const Qr=H0t();async function z0t(){return so("/config/bytedesk/properties",{method:"GET",params:{client:xo}})}async function y5e(){try{const n=(await Gs.get("/agenticflow/config.json")).data;if(n.enabled)console.log("config enabled: ",n),localStorage.setItem(A2,"true"),localStorage.setItem(R5,n.apiUrl),localStorage.setItem(I5,n.websocketUrl),localStorage.setItem(TW,n.htmlUrl);else if(cyt===I4e){console.log("config opensource");const r=window.location.port,i=window.location.protocol+"//"+window.location.hostname+":"+r,o="ws://"+window.location.hostname+":9885/websocket";console.log("apiUrl: ",i," port:",r," websocketUrl:",o),localStorage.setItem(A2,"true"),localStorage.setItem(R5,i),localStorage.setItem(I5,o),localStorage.setItem(TW,i)}else console.log("config disabled"),localStorage.setItem(A2,gyt),localStorage.removeItem(R5),localStorage.removeItem(I5),localStorage.removeItem(TW)}catch(e){console.log("loadConfig error: ",e)}}function P7(){const e=localStorage.getItem(eT);if(console.log("custom_enabled: ",e),e==="true"){const r=localStorage.getItem(KM);return r===null?xW:r}if(localStorage.getItem(A2)==="true"){const r=localStorage.getItem(R5);return r===null?xW:r}return xW}function OF(){return P7()+"/api/v1/upload/file"}function V0t(){const e=localStorage.getItem(eT);if(console.log("custom_enabled: ",e),e==="true"){const i=localStorage.getItem(XM);return i===null?ube:i}const n=localStorage.getItem(A2),r=localStorage.getItem(I5);return n==="true"?r:ube}async function _5e(){const e=await z0t();return console.log("getConfigProperties response: ",e.data.data),e.data.code===200?(localStorage.setItem(myt,JSON.stringify(e.data.data)),e.data.data):null}const so=Gs.create({timeout:2e4,baseURL:P7(),paramsSerializer:{indexes:null}});so.interceptors.request.use(e=>{e.baseURL=P7();const n=localStorage.getItem(G1);return n&&n.length>10&&e.url.startsWith("/api")&&(e.headers.Authorization=`Bearer ${n}`),!n&&e.url.startsWith("/api")?Promise.reject(G0t):e},e=>(console.debug("request error",e),e.response.status===403&&Qr.emit(Jb,"403"),e.response.status===401&&Qr.emit(Jb,"401"),Promise.reject(e)));so.interceptors.response.use(e=>e,e=>{var n,r,i;if(console.debug("response error",e),e!=null&&e.response)switch((n=e==null?void 0:e.response)==null?void 0:n.status){case 400:console.log("axios interception error 400"),Qr.emit(Jb,"400");break;case 401:console.log("axios interception error 401"),Qr.emit(Jb,"401");break;case 403:console.log("axios interception error 403"),Qr.emit(Jb,"403");break;case 500:console.log("axios interception error 500"),Qr.emit(yyt,"500");break;case 601:console.log("axios interception error 601",e.message);break}return Promise.resolve({message:e==null?void 0:e.message,code:(r=e==null?void 0:e.response)==null?void 0:r.status,data:{message:e==null?void 0:e.message,code:(i=e==null?void 0:e.response)==null?void 0:i.status,data:!1}})});const AW={data:null,status:601,statusText:M4e,headers:{},config:{headers:void 0},request:null},G0t={message:"匿名用户,无需访问服务器接口",name:M4e,code:"601",config:AW.config,request:AW.request,response:AW,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 W0t(e){return so("/api/v1/agent/query",{method:"GET",params:{orgUid:e,client:xo}})}async function Y0t(e){return so("/api/v1/agent/update",{method:"POST",data:{...e,client:xo}})}async function q0t(e){return so("/api/v1/agent/update/status",{method:"POST",data:{...e,client:xo}})}async function K0t(e){return so("/api/v1/message/unread/query",{method:"GET",params:{userUid:e,client:xo}})}async function X0t(e){return so("/api/v1/message/rest/send",{method:"POST",data:{json:e,client:xo}})}var xle=Object.defineProperty,Q0t=Object.getOwnPropertyDescriptor,Z0t=Object.getOwnPropertyNames,J0t=Object.prototype.hasOwnProperty,bc=(e,n)=>()=>(e&&(n=e(e=0)),n),On=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),GC=(e,n)=>{for(var r in n)xle(e,r,{get:n[r],enumerable:!0})},eSt=(e,n,r,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Z0t(n))!J0t.call(e,o)&&o!==r&&xle(e,o,{get:()=>n[o],enumerable:!(i=Q0t(n,o))||i.enumerable});return e},na=e=>eSt(xle({},"__esModule",{value:!0}),e),fn=bc(()=>{}),Ao={};GC(Ao,{_debugEnd:()=>Rte,_debugProcess:()=>Ote,_events:()=>zte,_eventsCount:()=>Vte,_exiting:()=>pte,_fatalExceptions:()=>wte,_getActiveHandles:()=>T5e,_getActiveRequests:()=>x5e,_kill:()=>mte,_linkedBinding:()=>C5e,_maxListeners:()=>Hte,_preload_modules:()=>jte,_rawDebug:()=>ute,_startProfilerIdleNotifier:()=>Ite,_stopProfilerIdleNotifier:()=>Nte,_tickCallback:()=>Tte,abort:()=>Dte,addListener:()=>Gte,allowedNodeEnvironmentFlags:()=>Ete,arch:()=>Qee,argv:()=>ete,argv0:()=>Bte,assert:()=>O5e,binding:()=>ote,chdir:()=>lte,config:()=>hte,cpuUsage:()=>QM,cwd:()=>ste,debugPort:()=>Fte,default:()=>Ole,dlopen:()=>w5e,domain:()=>fte,emit:()=>Xte,emitWarning:()=>ite,env:()=>Jee,execArgv:()=>tte,execPath:()=>$te,exit:()=>bte,features:()=>Cte,hasUncaughtExceptionCaptureCallback:()=>R5e,hrtime:()=>A5,kill:()=>_te,listeners:()=>N5e,memoryUsage:()=>yte,moduleLoadList:()=>dte,nextTick:()=>S5e,off:()=>Yte,on:()=>Mv,once:()=>Wte,openStdin:()=>Ste,pid:()=>kte,platform:()=>Zee,ppid:()=>Lte,prependListener:()=>Qte,prependOnceListener:()=>Zte,reallyExit:()=>gte,release:()=>cte,removeAllListeners:()=>Kte,removeListener:()=>qte,resourceUsage:()=>vte,setSourceMapsEnabled:()=>Ute,setUncaughtExceptionCaptureCallback:()=>xte,stderr:()=>Pte,stdin:()=>Ate,stdout:()=>Mte,title:()=>Xee,umask:()=>ate,uptime:()=>I5e,version:()=>nte,versions:()=>rte});function Tle(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function tSt(){!S1||!XE||(S1=!1,XE.length?sm=XE.concat(sm):D2=-1,sm.length&&b5e())}function b5e(){if(!S1){var e=setTimeout(tSt,0);S1=!0;for(var n=sm.length;n;){for(XE=sm,sm=[];++D2<n;)XE&&XE[D2].run();D2=-1,n=sm.length}XE=null,S1=!1,clearTimeout(e)}}function S5e(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];sm.push(new E5e(e,n)),sm.length===1&&!S1&&setTimeout(b5e,0)}function E5e(e,n){this.fun=e,this.array=n}function Ic(){}function C5e(e){Tle("_linkedBinding")}function w5e(e){Tle("dlopen")}function x5e(){return[]}function T5e(){return[]}function O5e(e,n){if(!e)throw new Error(n||"assertion error")}function R5e(){return!1}function I5e(){return Hv.now()/1e3}function A5(e){var n=Math.floor((Date.now()-Hv.now())*.001),r=Hv.now()*.001,i=Math.floor(r)+n,o=Math.floor(r%1*1e9);return e&&(i=i-e[0],o=o-e[1],o<0&&(i--,o+=D5)),[i,o]}function Mv(){return Ole}function N5e(e){return[]}var sm,S1,XE,D2,Xee,Qee,Zee,Jee,ete,tte,nte,rte,ite,ote,ate,ste,lte,cte,ute,dte,fte,pte,hte,gte,mte,QM,vte,yte,_te,bte,Ste,Ete,Cte,wte,xte,Tte,Ote,Rte,Ite,Nte,Mte,Pte,Ate,Dte,kte,Lte,$te,Fte,Bte,jte,Ute,Hv,DW,D5,Hte,zte,Vte,Gte,Wte,Yte,qte,Kte,Xte,Qte,Zte,Ole,nSt=bc(()=>{fn(),hn(),pn(),sm=[],S1=!1,D2=-1,E5e.prototype.run=function(){this.fun.apply(null,this.array)},Xee="browser",Qee="x64",Zee="browser",Jee={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},ete=["/usr/bin/node"],tte=[],nte="v16.8.0",rte={},ite=function(e,n){console.warn((n?n+": ":"")+e)},ote=function(e){Tle("binding")},ate=function(e){return 0},ste=function(){return"/"},lte=function(e){},cte={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},ute=Ic,dte=[],fte={},pte=!1,hte={},gte=Ic,mte=Ic,QM=function(){return{}},vte=QM,yte=QM,_te=Ic,bte=Ic,Ste=Ic,Ete={},Cte={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},wte=Ic,xte=Ic,Tte=Ic,Ote=Ic,Rte=Ic,Ite=Ic,Nte=Ic,Mte=void 0,Pte=void 0,Ate=void 0,Dte=Ic,kte=2,Lte=1,$te="/bin/usr/node",Fte=9229,Bte="node",jte=[],Ute=Ic,Hv={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},Hv.now===void 0&&(DW=Date.now(),Hv.timing&&Hv.timing.navigationStart&&(DW=Hv.timing.navigationStart),Hv.now=()=>Date.now()-DW),D5=1e9,A5.bigint=function(e){var n=A5(e);return typeof BigInt>"u"?n[0]*D5+n[1]:BigInt(n[0]*D5)+BigInt(n[1])},Hte=10,zte={},Vte=0,Gte=Mv,Wte=Mv,Yte=Mv,qte=Mv,Kte=Mv,Xte=Ic,Qte=Mv,Zte=Mv,Ole={version:nte,versions:rte,arch:Qee,platform:Zee,release:cte,_rawDebug:ute,moduleLoadList:dte,binding:ote,_linkedBinding:C5e,_events:zte,_eventsCount:Vte,_maxListeners:Hte,on:Mv,addListener:Gte,once:Wte,off:Yte,removeListener:qte,removeAllListeners:Kte,emit:Xte,prependListener:Qte,prependOnceListener:Zte,listeners:N5e,domain:fte,_exiting:pte,config:hte,dlopen:w5e,uptime:I5e,_getActiveRequests:x5e,_getActiveHandles:T5e,reallyExit:gte,_kill:mte,cpuUsage:QM,resourceUsage:vte,memoryUsage:yte,kill:_te,exit:bte,openStdin:Ste,allowedNodeEnvironmentFlags:Ete,assert:O5e,features:Cte,_fatalExceptions:wte,setUncaughtExceptionCaptureCallback:xte,hasUncaughtExceptionCaptureCallback:R5e,emitWarning:ite,nextTick:S5e,_tickCallback:Tte,_debugProcess:Ote,_debugEnd:Rte,_startProfilerIdleNotifier:Ite,_stopProfilerIdleNotifier:Nte,stdout:Mte,stdin:Ate,stderr:Pte,abort:Dte,umask:ate,chdir:lte,cwd:ste,env:Jee,title:Xee,argv:ete,execArgv:tte,pid:kte,ppid:Lte,execPath:$te,debugPort:Fte,hrtime:A5,argv0:Bte,_preload_modules:jte,setSourceMapsEnabled:Ute}}),pn=bc(()=>{nSt()}),Sc={};GC(Sc,{Buffer:()=>RF,INSPECT_MAX_BYTES:()=>M5e,default:()=>Pv,kMaxLength:()=>P5e});function rSt(){if(Jte)return Kx;Jte=!0,Kx.byteLength=l,Kx.toByteArray=u,Kx.fromByteArray=p;for(var e=[],n=[],r=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=i.length;o<a;++o)e[o]=i[o],n[i.charCodeAt(o)]=o;n[45]=62,n[95]=63;function s(h){var g=h.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=h.indexOf("=");v===-1&&(v=g);var y=v===g?0:4-v%4;return[v,y]}function l(h){var g=s(h),v=g[0],y=g[1];return(v+y)*3/4-y}function c(h,g,v){return(g+v)*3/4-v}function u(h){var g,v=s(h),y=v[0],_=v[1],S=new r(c(h,y,_)),b=0,E=_>0?y-4:y,w;for(w=0;w<E;w+=4)g=n[h.charCodeAt(w)]<<18|n[h.charCodeAt(w+1)]<<12|n[h.charCodeAt(w+2)]<<6|n[h.charCodeAt(w+3)],S[b++]=g>>16&255,S[b++]=g>>8&255,S[b++]=g&255;return _===2&&(g=n[h.charCodeAt(w)]<<2|n[h.charCodeAt(w+1)]>>4,S[b++]=g&255),_===1&&(g=n[h.charCodeAt(w)]<<10|n[h.charCodeAt(w+1)]<<4|n[h.charCodeAt(w+2)]>>2,S[b++]=g>>8&255,S[b++]=g&255),S}function d(h){return e[h>>18&63]+e[h>>12&63]+e[h>>6&63]+e[h&63]}function f(h,g,v){for(var y,_=[],S=g;S<v;S+=3)y=(h[S]<<16&16711680)+(h[S+1]<<8&65280)+(h[S+2]&255),_.push(d(y));return _.join("")}function p(h){for(var g,v=h.length,y=v%3,_=[],S=16383,b=0,E=v-y;b<E;b+=S)_.push(f(h,b,b+S>E?E:b+S));return y===1?(g=h[v-1],_.push(e[g>>2]+e[g<<4&63]+"==")):y===2&&(g=(h[v-2]<<8)+h[v-1],_.push(e[g>>10]+e[g>>4&63]+e[g<<2&63]+"=")),_.join("")}return Kx}function iSt(){return ene?ZM:(ene=!0,ZM.read=function(e,n,r,i,o){var a,s,l=o*8-i-1,c=(1<<l)-1,u=c>>1,d=-7,f=r?o-1:0,p=r?-1:1,h=e[n+f];for(f+=p,a=h&(1<<-d)-1,h>>=-d,d+=l;d>0;a=a*256+e[n+f],f+=p,d-=8);for(s=a&(1<<-d)-1,a>>=-d,d+=i;d>0;s=s*256+e[n+f],f+=p,d-=8);if(a===0)a=1-u;else{if(a===c)return s?NaN:(h?-1:1)*(1/0);s=s+Math.pow(2,i),a=a-u}return(h?-1:1)*s*Math.pow(2,a-i)},ZM.write=function(e,n,r,i,o,a){var s,l,c,u=a*8-o-1,d=(1<<u)-1,f=d>>1,p=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:a-1,g=i?1:-1,v=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(l=isNaN(n)?1:0,s=d):(s=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+f>=1?n+=p/c:n+=p*Math.pow(2,1-f),n*c>=2&&(s++,c/=2),s+f>=d?(l=0,s=d):s+f>=1?(l=(n*c-1)*Math.pow(2,o),s=s+f):(l=n*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+h]=l&255,h+=g,l/=256,o-=8);for(s=s<<o|l,u+=o;u>0;e[r+h]=s&255,h+=g,s/=256,u-=8);e[r+h-g]|=v*128},ZM)}function oSt(){if(tne)return rb;tne=!0;let e=rSt(),n=iSt(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;rb.Buffer=s,rb.SlowBuffer=_,rb.INSPECT_MAX_BYTES=50;let i=2147483647;rb.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=o(),!s.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 o(){try{let ne=new Uint8Array(1),J={foo:function(){return 42}};return Object.setPrototypeOf(J,Uint8Array.prototype),Object.setPrototypeOf(ne,J),ne.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(ne){if(ne>i)throw new RangeError('The value "'+ne+'" is invalid for option "size"');let J=new Uint8Array(ne);return Object.setPrototypeOf(J,s.prototype),J}function s(ne,J,ae){if(typeof ne=="number"){if(typeof J=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(ne)}return l(ne,J,ae)}s.poolSize=8192;function l(ne,J,ae){if(typeof ne=="string")return f(ne,J);if(ArrayBuffer.isView(ne))return h(ne);if(ne==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ne);if(Re(ne,ArrayBuffer)||ne&&Re(ne.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Re(ne,SharedArrayBuffer)||ne&&Re(ne.buffer,SharedArrayBuffer)))return g(ne,J,ae);if(typeof ne=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let Se=ne.valueOf&&ne.valueOf();if(Se!=null&&Se!==ne)return s.from(Se,J,ae);let xe=v(ne);if(xe)return xe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof ne[Symbol.toPrimitive]=="function")return s.from(ne[Symbol.toPrimitive]("string"),J,ae);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ne)}s.from=function(ne,J,ae){return l(ne,J,ae)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(ne){if(typeof ne!="number")throw new TypeError('"size" argument must be of type number');if(ne<0)throw new RangeError('The value "'+ne+'" is invalid for option "size"')}function u(ne,J,ae){return c(ne),ne<=0?a(ne):J!==void 0?typeof ae=="string"?a(ne).fill(J,ae):a(ne).fill(J):a(ne)}s.alloc=function(ne,J,ae){return u(ne,J,ae)};function d(ne){return c(ne),a(ne<0?0:y(ne)|0)}s.allocUnsafe=function(ne){return d(ne)},s.allocUnsafeSlow=function(ne){return d(ne)};function f(ne,J){if((typeof J!="string"||J==="")&&(J="utf8"),!s.isEncoding(J))throw new TypeError("Unknown encoding: "+J);let ae=S(ne,J)|0,Se=a(ae),xe=Se.write(ne,J);return xe!==ae&&(Se=Se.slice(0,xe)),Se}function p(ne){let J=ne.length<0?0:y(ne.length)|0,ae=a(J);for(let Se=0;Se<J;Se+=1)ae[Se]=ne[Se]&255;return ae}function h(ne){if(Re(ne,Uint8Array)){let J=new Uint8Array(ne);return g(J.buffer,J.byteOffset,J.byteLength)}return p(ne)}function g(ne,J,ae){if(J<0||ne.byteLength<J)throw new RangeError('"offset" is outside of buffer bounds');if(ne.byteLength<J+(ae||0))throw new RangeError('"length" is outside of buffer bounds');let Se;return J===void 0&&ae===void 0?Se=new Uint8Array(ne):ae===void 0?Se=new Uint8Array(ne,J):Se=new Uint8Array(ne,J,ae),Object.setPrototypeOf(Se,s.prototype),Se}function v(ne){if(s.isBuffer(ne)){let J=y(ne.length)|0,ae=a(J);return ae.length===0||ne.copy(ae,0,0,J),ae}if(ne.length!==void 0)return typeof ne.length!="number"||Te(ne.length)?a(0):p(ne);if(ne.type==="Buffer"&&Array.isArray(ne.data))return p(ne.data)}function y(ne){if(ne>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return ne|0}function _(ne){return+ne!=ne&&(ne=0),s.alloc(+ne)}s.isBuffer=function(ne){return ne!=null&&ne._isBuffer===!0&&ne!==s.prototype},s.compare=function(ne,J){if(Re(ne,Uint8Array)&&(ne=s.from(ne,ne.offset,ne.byteLength)),Re(J,Uint8Array)&&(J=s.from(J,J.offset,J.byteLength)),!s.isBuffer(ne)||!s.isBuffer(J))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ne===J)return 0;let ae=ne.length,Se=J.length;for(let xe=0,ue=Math.min(ae,Se);xe<ue;++xe)if(ne[xe]!==J[xe]){ae=ne[xe],Se=J[xe];break}return ae<Se?-1:Se<ae?1:0},s.isEncoding=function(ne){switch(String(ne).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}},s.concat=function(ne,J){if(!Array.isArray(ne))throw new TypeError('"list" argument must be an Array of Buffers');if(ne.length===0)return s.alloc(0);let ae;if(J===void 0)for(J=0,ae=0;ae<ne.length;++ae)J+=ne[ae].length;let Se=s.allocUnsafe(J),xe=0;for(ae=0;ae<ne.length;++ae){let ue=ne[ae];if(Re(ue,Uint8Array))xe+ue.length>Se.length?(s.isBuffer(ue)||(ue=s.from(ue)),ue.copy(Se,xe)):Uint8Array.prototype.set.call(Se,ue,xe);else if(s.isBuffer(ue))ue.copy(Se,xe);else throw new TypeError('"list" argument must be an Array of Buffers');xe+=ue.length}return Se};function S(ne,J){if(s.isBuffer(ne))return ne.length;if(ArrayBuffer.isView(ne)||Re(ne,ArrayBuffer))return ne.byteLength;if(typeof ne!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ne);let ae=ne.length,Se=arguments.length>2&&arguments[2]===!0;if(!Se&&ae===0)return 0;let xe=!1;for(;;)switch(J){case"ascii":case"latin1":case"binary":return ae;case"utf8":case"utf-8":return be(ne).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae*2;case"hex":return ae>>>1;case"base64":return Ae(ne).length;default:if(xe)return Se?-1:be(ne).length;J=(""+J).toLowerCase(),xe=!0}}s.byteLength=S;function b(ne,J,ae){let Se=!1;if((J===void 0||J<0)&&(J=0),J>this.length||((ae===void 0||ae>this.length)&&(ae=this.length),ae<=0)||(ae>>>=0,J>>>=0,ae<=J))return"";for(ne||(ne="utf8");;)switch(ne){case"hex":return B(this,J,ae);case"utf8":case"utf-8":return k(this,J,ae);case"ascii":return z(this,J,ae);case"latin1":case"binary":return D(this,J,ae);case"base64":return P(this,J,ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,J,ae);default:if(Se)throw new TypeError("Unknown encoding: "+ne);ne=(ne+"").toLowerCase(),Se=!0}}s.prototype._isBuffer=!0;function E(ne,J,ae){let Se=ne[J];ne[J]=ne[ae],ne[ae]=Se}s.prototype.swap16=function(){let ne=this.length;if(ne%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let J=0;J<ne;J+=2)E(this,J,J+1);return this},s.prototype.swap32=function(){let ne=this.length;if(ne%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let J=0;J<ne;J+=4)E(this,J,J+3),E(this,J+1,J+2);return this},s.prototype.swap64=function(){let ne=this.length;if(ne%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let J=0;J<ne;J+=8)E(this,J,J+7),E(this,J+1,J+6),E(this,J+2,J+5),E(this,J+3,J+4);return this},s.prototype.toString=function(){let ne=this.length;return ne===0?"":arguments.length===0?k(this,0,ne):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(ne){if(!s.isBuffer(ne))throw new TypeError("Argument must be a Buffer");return this===ne?!0:s.compare(this,ne)===0},s.prototype.inspect=function(){let ne="",J=rb.INSPECT_MAX_BYTES;return ne=this.toString("hex",0,J).replace(/(.{2})/g,"$1 ").trim(),this.length>J&&(ne+=" ... "),"<Buffer "+ne+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(ne,J,ae,Se,xe){if(Re(ne,Uint8Array)&&(ne=s.from(ne,ne.offset,ne.byteLength)),!s.isBuffer(ne))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ne);if(J===void 0&&(J=0),ae===void 0&&(ae=ne?ne.length:0),Se===void 0&&(Se=0),xe===void 0&&(xe=this.length),J<0||ae>ne.length||Se<0||xe>this.length)throw new RangeError("out of range index");if(Se>=xe&&J>=ae)return 0;if(Se>=xe)return-1;if(J>=ae)return 1;if(J>>>=0,ae>>>=0,Se>>>=0,xe>>>=0,this===ne)return 0;let ue=xe-Se,Me=ae-J,$e=Math.min(ue,Me),ge=this.slice(Se,xe),Ve=ne.slice(J,ae);for(let st=0;st<$e;++st)if(ge[st]!==Ve[st]){ue=ge[st],Me=Ve[st];break}return ue<Me?-1:Me<ue?1:0};function w(ne,J,ae,Se,xe){if(ne.length===0)return-1;if(typeof ae=="string"?(Se=ae,ae=0):ae>2147483647?ae=2147483647:ae<-2147483648&&(ae=-2147483648),ae=+ae,Te(ae)&&(ae=xe?0:ne.length-1),ae<0&&(ae=ne.length+ae),ae>=ne.length){if(xe)return-1;ae=ne.length-1}else if(ae<0)if(xe)ae=0;else return-1;if(typeof J=="string"&&(J=s.from(J,Se)),s.isBuffer(J))return J.length===0?-1:C(ne,J,ae,Se,xe);if(typeof J=="number")return J=J&255,typeof Uint8Array.prototype.indexOf=="function"?xe?Uint8Array.prototype.indexOf.call(ne,J,ae):Uint8Array.prototype.lastIndexOf.call(ne,J,ae):C(ne,[J],ae,Se,xe);throw new TypeError("val must be string, number or Buffer")}function C(ne,J,ae,Se,xe){let ue=1,Me=ne.length,$e=J.length;if(Se!==void 0&&(Se=String(Se).toLowerCase(),Se==="ucs2"||Se==="ucs-2"||Se==="utf16le"||Se==="utf-16le")){if(ne.length<2||J.length<2)return-1;ue=2,Me/=2,$e/=2,ae/=2}function ge(st,Je){return ue===1?st[Je]:st.readUInt16BE(Je*ue)}let Ve;if(xe){let st=-1;for(Ve=ae;Ve<Me;Ve++)if(ge(ne,Ve)===ge(J,st===-1?0:Ve-st)){if(st===-1&&(st=Ve),Ve-st+1===$e)return st*ue}else st!==-1&&(Ve-=Ve-st),st=-1}else for(ae+$e>Me&&(ae=Me-$e),Ve=ae;Ve>=0;Ve--){let st=!0;for(let Je=0;Je<$e;Je++)if(ge(ne,Ve+Je)!==ge(J,Je)){st=!1;break}if(st)return Ve}return-1}s.prototype.includes=function(ne,J,ae){return this.indexOf(ne,J,ae)!==-1},s.prototype.indexOf=function(ne,J,ae){return w(this,ne,J,ae,!0)},s.prototype.lastIndexOf=function(ne,J,ae){return w(this,ne,J,ae,!1)};function x(ne,J,ae,Se){ae=Number(ae)||0;let xe=ne.length-ae;Se?(Se=Number(Se),Se>xe&&(Se=xe)):Se=xe;let ue=J.length;Se>ue/2&&(Se=ue/2);let Me;for(Me=0;Me<Se;++Me){let $e=parseInt(J.substr(Me*2,2),16);if(Te($e))return Me;ne[ae+Me]=$e}return Me}function T(ne,J,ae,Se){return Ee(be(J,ne.length-ae),ne,ae,Se)}function R(ne,J,ae,Se){return Ee(we(J),ne,ae,Se)}function O(ne,J,ae,Se){return Ee(Ae(J),ne,ae,Se)}function M(ne,J,ae,Se){return Ee(De(J,ne.length-ae),ne,ae,Se)}s.prototype.write=function(ne,J,ae,Se){if(J===void 0)Se="utf8",ae=this.length,J=0;else if(ae===void 0&&typeof J=="string")Se=J,ae=this.length,J=0;else if(isFinite(J))J=J>>>0,isFinite(ae)?(ae=ae>>>0,Se===void 0&&(Se="utf8")):(Se=ae,ae=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let xe=this.length-J;if((ae===void 0||ae>xe)&&(ae=xe),ne.length>0&&(ae<0||J<0)||J>this.length)throw new RangeError("Attempt to write outside buffer bounds");Se||(Se="utf8");let ue=!1;for(;;)switch(Se){case"hex":return x(this,ne,J,ae);case"utf8":case"utf-8":return T(this,ne,J,ae);case"ascii":case"latin1":case"binary":return R(this,ne,J,ae);case"base64":return O(this,ne,J,ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,ne,J,ae);default:if(ue)throw new TypeError("Unknown encoding: "+Se);Se=(""+Se).toLowerCase(),ue=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(ne,J,ae){return J===0&&ae===ne.length?e.fromByteArray(ne):e.fromByteArray(ne.slice(J,ae))}function k(ne,J,ae){ae=Math.min(ne.length,ae);let Se=[],xe=J;for(;xe<ae;){let ue=ne[xe],Me=null,$e=ue>239?4:ue>223?3:ue>191?2:1;if(xe+$e<=ae){let ge,Ve,st,Je;switch($e){case 1:ue<128&&(Me=ue);break;case 2:ge=ne[xe+1],(ge&192)===128&&(Je=(ue&31)<<6|ge&63,Je>127&&(Me=Je));break;case 3:ge=ne[xe+1],Ve=ne[xe+2],(ge&192)===128&&(Ve&192)===128&&(Je=(ue&15)<<12|(ge&63)<<6|Ve&63,Je>2047&&(Je<55296||Je>57343)&&(Me=Je));break;case 4:ge=ne[xe+1],Ve=ne[xe+2],st=ne[xe+3],(ge&192)===128&&(Ve&192)===128&&(st&192)===128&&(Je=(ue&15)<<18|(ge&63)<<12|(Ve&63)<<6|st&63,Je>65535&&Je<1114112&&(Me=Je))}}Me===null?(Me=65533,$e=1):Me>65535&&(Me-=65536,Se.push(Me>>>10&1023|55296),Me=56320|Me&1023),Se.push(Me),xe+=$e}return U(Se)}let $=4096;function U(ne){let J=ne.length;if(J<=$)return String.fromCharCode.apply(String,ne);let ae="",Se=0;for(;Se<J;)ae+=String.fromCharCode.apply(String,ne.slice(Se,Se+=$));return ae}function z(ne,J,ae){let Se="";ae=Math.min(ne.length,ae);for(let xe=J;xe<ae;++xe)Se+=String.fromCharCode(ne[xe]&127);return Se}function D(ne,J,ae){let Se="";ae=Math.min(ne.length,ae);for(let xe=J;xe<ae;++xe)Se+=String.fromCharCode(ne[xe]);return Se}function B(ne,J,ae){let Se=ne.length;(!J||J<0)&&(J=0),(!ae||ae<0||ae>Se)&&(ae=Se);let xe="";for(let ue=J;ue<ae;++ue)xe+=Oe[ne[ue]];return xe}function Y(ne,J,ae){let Se=ne.slice(J,ae),xe="";for(let ue=0;ue<Se.length-1;ue+=2)xe+=String.fromCharCode(Se[ue]+Se[ue+1]*256);return xe}s.prototype.slice=function(ne,J){let ae=this.length;ne=~~ne,J=J===void 0?ae:~~J,ne<0?(ne+=ae,ne<0&&(ne=0)):ne>ae&&(ne=ae),J<0?(J+=ae,J<0&&(J=0)):J>ae&&(J=ae),J<ne&&(J=ne);let Se=this.subarray(ne,J);return Object.setPrototypeOf(Se,s.prototype),Se};function q(ne,J,ae){if(ne%1!==0||ne<0)throw new RangeError("offset is not uint");if(ne+J>ae)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(ne,J,ae){ne=ne>>>0,J=J>>>0,ae||q(ne,J,this.length);let Se=this[ne],xe=1,ue=0;for(;++ue<J&&(xe*=256);)Se+=this[ne+ue]*xe;return Se},s.prototype.readUintBE=s.prototype.readUIntBE=function(ne,J,ae){ne=ne>>>0,J=J>>>0,ae||q(ne,J,this.length);let Se=this[ne+--J],xe=1;for(;J>0&&(xe*=256);)Se+=this[ne+--J]*xe;return Se},s.prototype.readUint8=s.prototype.readUInt8=function(ne,J){return ne=ne>>>0,J||q(ne,1,this.length),this[ne]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(ne,J){return ne=ne>>>0,J||q(ne,2,this.length),this[ne]|this[ne+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(ne,J){return ne=ne>>>0,J||q(ne,2,this.length),this[ne]<<8|this[ne+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(ne,J){return ne=ne>>>0,J||q(ne,4,this.length),(this[ne]|this[ne+1]<<8|this[ne+2]<<16)+this[ne+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(ne,J){return ne=ne>>>0,J||q(ne,4,this.length),this[ne]*16777216+(this[ne+1]<<16|this[ne+2]<<8|this[ne+3])},s.prototype.readBigUInt64LE=Ne(function(ne){ne=ne>>>0,pe(ne,"offset");let J=this[ne],ae=this[ne+7];(J===void 0||ae===void 0)&&me(ne,this.length-8);let Se=J+this[++ne]*2**8+this[++ne]*2**16+this[++ne]*2**24,xe=this[++ne]+this[++ne]*2**8+this[++ne]*2**16+ae*2**24;return BigInt(Se)+(BigInt(xe)<<BigInt(32))}),s.prototype.readBigUInt64BE=Ne(function(ne){ne=ne>>>0,pe(ne,"offset");let J=this[ne],ae=this[ne+7];(J===void 0||ae===void 0)&&me(ne,this.length-8);let Se=J*2**24+this[++ne]*2**16+this[++ne]*2**8+this[++ne],xe=this[++ne]*2**24+this[++ne]*2**16+this[++ne]*2**8+ae;return(BigInt(Se)<<BigInt(32))+BigInt(xe)}),s.prototype.readIntLE=function(ne,J,ae){ne=ne>>>0,J=J>>>0,ae||q(ne,J,this.length);let Se=this[ne],xe=1,ue=0;for(;++ue<J&&(xe*=256);)Se+=this[ne+ue]*xe;return xe*=128,Se>=xe&&(Se-=Math.pow(2,8*J)),Se},s.prototype.readIntBE=function(ne,J,ae){ne=ne>>>0,J=J>>>0,ae||q(ne,J,this.length);let Se=J,xe=1,ue=this[ne+--Se];for(;Se>0&&(xe*=256);)ue+=this[ne+--Se]*xe;return xe*=128,ue>=xe&&(ue-=Math.pow(2,8*J)),ue},s.prototype.readInt8=function(ne,J){return ne=ne>>>0,J||q(ne,1,this.length),this[ne]&128?(255-this[ne]+1)*-1:this[ne]},s.prototype.readInt16LE=function(ne,J){ne=ne>>>0,J||q(ne,2,this.length);let ae=this[ne]|this[ne+1]<<8;return ae&32768?ae|4294901760:ae},s.prototype.readInt16BE=function(ne,J){ne=ne>>>0,J||q(ne,2,this.length);let ae=this[ne+1]|this[ne]<<8;return ae&32768?ae|4294901760:ae},s.prototype.readInt32LE=function(ne,J){return ne=ne>>>0,J||q(ne,4,this.length),this[ne]|this[ne+1]<<8|this[ne+2]<<16|this[ne+3]<<24},s.prototype.readInt32BE=function(ne,J){return ne=ne>>>0,J||q(ne,4,this.length),this[ne]<<24|this[ne+1]<<16|this[ne+2]<<8|this[ne+3]},s.prototype.readBigInt64LE=Ne(function(ne){ne=ne>>>0,pe(ne,"offset");let J=this[ne],ae=this[ne+7];(J===void 0||ae===void 0)&&me(ne,this.length-8);let Se=this[ne+4]+this[ne+5]*2**8+this[ne+6]*2**16+(ae<<24);return(BigInt(Se)<<BigInt(32))+BigInt(J+this[++ne]*2**8+this[++ne]*2**16+this[++ne]*2**24)}),s.prototype.readBigInt64BE=Ne(function(ne){ne=ne>>>0,pe(ne,"offset");let J=this[ne],ae=this[ne+7];(J===void 0||ae===void 0)&&me(ne,this.length-8);let Se=(J<<24)+this[++ne]*2**16+this[++ne]*2**8+this[++ne];return(BigInt(Se)<<BigInt(32))+BigInt(this[++ne]*2**24+this[++ne]*2**16+this[++ne]*2**8+ae)}),s.prototype.readFloatLE=function(ne,J){return ne=ne>>>0,J||q(ne,4,this.length),n.read(this,ne,!0,23,4)},s.prototype.readFloatBE=function(ne,J){return ne=ne>>>0,J||q(ne,4,this.length),n.read(this,ne,!1,23,4)},s.prototype.readDoubleLE=function(ne,J){return ne=ne>>>0,J||q(ne,8,this.length),n.read(this,ne,!0,52,8)},s.prototype.readDoubleBE=function(ne,J){return ne=ne>>>0,J||q(ne,8,this.length),n.read(this,ne,!1,52,8)};function K(ne,J,ae,Se,xe,ue){if(!s.isBuffer(ne))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>xe||J<ue)throw new RangeError('"value" argument is out of bounds');if(ae+Se>ne.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(ne,J,ae,Se){if(ne=+ne,J=J>>>0,ae=ae>>>0,!Se){let Me=Math.pow(2,8*ae)-1;K(this,ne,J,ae,Me,0)}let xe=1,ue=0;for(this[J]=ne&255;++ue<ae&&(xe*=256);)this[J+ue]=ne/xe&255;return J+ae},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(ne,J,ae,Se){if(ne=+ne,J=J>>>0,ae=ae>>>0,!Se){let Me=Math.pow(2,8*ae)-1;K(this,ne,J,ae,Me,0)}let xe=ae-1,ue=1;for(this[J+xe]=ne&255;--xe>=0&&(ue*=256);)this[J+xe]=ne/ue&255;return J+ae},s.prototype.writeUint8=s.prototype.writeUInt8=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,1,255,0),this[J]=ne&255,J+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,2,65535,0),this[J]=ne&255,this[J+1]=ne>>>8,J+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,2,65535,0),this[J]=ne>>>8,this[J+1]=ne&255,J+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,4,4294967295,0),this[J+3]=ne>>>24,this[J+2]=ne>>>16,this[J+1]=ne>>>8,this[J]=ne&255,J+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,4,4294967295,0),this[J]=ne>>>24,this[J+1]=ne>>>16,this[J+2]=ne>>>8,this[J+3]=ne&255,J+4};function H(ne,J,ae,Se,xe){de(J,Se,xe,ne,ae,7);let ue=Number(J&BigInt(4294967295));ne[ae++]=ue,ue=ue>>8,ne[ae++]=ue,ue=ue>>8,ne[ae++]=ue,ue=ue>>8,ne[ae++]=ue;let Me=Number(J>>BigInt(32)&BigInt(4294967295));return ne[ae++]=Me,Me=Me>>8,ne[ae++]=Me,Me=Me>>8,ne[ae++]=Me,Me=Me>>8,ne[ae++]=Me,ae}function G(ne,J,ae,Se,xe){de(J,Se,xe,ne,ae,7);let ue=Number(J&BigInt(4294967295));ne[ae+7]=ue,ue=ue>>8,ne[ae+6]=ue,ue=ue>>8,ne[ae+5]=ue,ue=ue>>8,ne[ae+4]=ue;let Me=Number(J>>BigInt(32)&BigInt(4294967295));return ne[ae+3]=Me,Me=Me>>8,ne[ae+2]=Me,Me=Me>>8,ne[ae+1]=Me,Me=Me>>8,ne[ae]=Me,ae+8}s.prototype.writeBigUInt64LE=Ne(function(ne,J=0){return H(this,ne,J,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Ne(function(ne,J=0){return G(this,ne,J,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(ne,J,ae,Se){if(ne=+ne,J=J>>>0,!Se){let $e=Math.pow(2,8*ae-1);K(this,ne,J,ae,$e-1,-$e)}let xe=0,ue=1,Me=0;for(this[J]=ne&255;++xe<ae&&(ue*=256);)ne<0&&Me===0&&this[J+xe-1]!==0&&(Me=1),this[J+xe]=(ne/ue>>0)-Me&255;return J+ae},s.prototype.writeIntBE=function(ne,J,ae,Se){if(ne=+ne,J=J>>>0,!Se){let $e=Math.pow(2,8*ae-1);K(this,ne,J,ae,$e-1,-$e)}let xe=ae-1,ue=1,Me=0;for(this[J+xe]=ne&255;--xe>=0&&(ue*=256);)ne<0&&Me===0&&this[J+xe+1]!==0&&(Me=1),this[J+xe]=(ne/ue>>0)-Me&255;return J+ae},s.prototype.writeInt8=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,1,127,-128),ne<0&&(ne=255+ne+1),this[J]=ne&255,J+1},s.prototype.writeInt16LE=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,2,32767,-32768),this[J]=ne&255,this[J+1]=ne>>>8,J+2},s.prototype.writeInt16BE=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,2,32767,-32768),this[J]=ne>>>8,this[J+1]=ne&255,J+2},s.prototype.writeInt32LE=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,4,2147483647,-2147483648),this[J]=ne&255,this[J+1]=ne>>>8,this[J+2]=ne>>>16,this[J+3]=ne>>>24,J+4},s.prototype.writeInt32BE=function(ne,J,ae){return ne=+ne,J=J>>>0,ae||K(this,ne,J,4,2147483647,-2147483648),ne<0&&(ne=4294967295+ne+1),this[J]=ne>>>24,this[J+1]=ne>>>16,this[J+2]=ne>>>8,this[J+3]=ne&255,J+4},s.prototype.writeBigInt64LE=Ne(function(ne,J=0){return H(this,ne,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Ne(function(ne,J=0){return G(this,ne,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Q(ne,J,ae,Se,xe,ue){if(ae+Se>ne.length)throw new RangeError("Index out of range");if(ae<0)throw new RangeError("Index out of range")}function le(ne,J,ae,Se,xe){return J=+J,ae=ae>>>0,xe||Q(ne,J,ae,4),n.write(ne,J,ae,Se,23,4),ae+4}s.prototype.writeFloatLE=function(ne,J,ae){return le(this,ne,J,!0,ae)},s.prototype.writeFloatBE=function(ne,J,ae){return le(this,ne,J,!1,ae)};function Z(ne,J,ae,Se,xe){return J=+J,ae=ae>>>0,xe||Q(ne,J,ae,8),n.write(ne,J,ae,Se,52,8),ae+8}s.prototype.writeDoubleLE=function(ne,J,ae){return Z(this,ne,J,!0,ae)},s.prototype.writeDoubleBE=function(ne,J,ae){return Z(this,ne,J,!1,ae)},s.prototype.copy=function(ne,J,ae,Se){if(!s.isBuffer(ne))throw new TypeError("argument should be a Buffer");if(ae||(ae=0),!Se&&Se!==0&&(Se=this.length),J>=ne.length&&(J=ne.length),J||(J=0),Se>0&&Se<ae&&(Se=ae),Se===ae||ne.length===0||this.length===0)return 0;if(J<0)throw new RangeError("targetStart out of bounds");if(ae<0||ae>=this.length)throw new RangeError("Index out of range");if(Se<0)throw new RangeError("sourceEnd out of bounds");Se>this.length&&(Se=this.length),ne.length-J<Se-ae&&(Se=ne.length-J+ae);let xe=Se-ae;return this===ne&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(J,ae,Se):Uint8Array.prototype.set.call(ne,this.subarray(ae,Se),J),xe},s.prototype.fill=function(ne,J,ae,Se){if(typeof ne=="string"){if(typeof J=="string"?(Se=J,J=0,ae=this.length):typeof ae=="string"&&(Se=ae,ae=this.length),Se!==void 0&&typeof Se!="string")throw new TypeError("encoding must be a string");if(typeof Se=="string"&&!s.isEncoding(Se))throw new TypeError("Unknown encoding: "+Se);if(ne.length===1){let ue=ne.charCodeAt(0);(Se==="utf8"&&ue<128||Se==="latin1")&&(ne=ue)}}else typeof ne=="number"?ne=ne&255:typeof ne=="boolean"&&(ne=Number(ne));if(J<0||this.length<J||this.length<ae)throw new RangeError("Out of range index");if(ae<=J)return this;J=J>>>0,ae=ae===void 0?this.length:ae>>>0,ne||(ne=0);let xe;if(typeof ne=="number")for(xe=J;xe<ae;++xe)this[xe]=ne;else{let ue=s.isBuffer(ne)?ne:s.from(ne,Se),Me=ue.length;if(Me===0)throw new TypeError('The value "'+ne+'" is invalid for argument "value"');for(xe=0;xe<ae-J;++xe)this[xe+J]=ue[xe%Me]}return this};let j={};function F(ne,J,ae){j[ne]=class extends ae{constructor(){super(),Object.defineProperty(this,"message",{value:J.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${ne}]`,this.stack,delete this.name}get code(){return ne}set code(Se){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Se,writable:!0})}toString(){return`${this.name} [${ne}]: ${this.message}`}}}F("ERR_BUFFER_OUT_OF_BOUNDS",function(ne){return ne?`${ne} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(ne,J){return`The "${ne}" argument must be of type number. Received type ${typeof J}`},TypeError),F("ERR_OUT_OF_RANGE",function(ne,J,ae){let Se=`The value of "${ne}" is out of range.`,xe=ae;return Number.isInteger(ae)&&Math.abs(ae)>2**32?xe=te(String(ae)):typeof ae=="bigint"&&(xe=String(ae),(ae>BigInt(2)**BigInt(32)||ae<-(BigInt(2)**BigInt(32)))&&(xe=te(xe)),xe+="n"),Se+=` It must be ${J}. Received ${xe}`,Se},RangeError);function te(ne){let J="",ae=ne.length,Se=ne[0]==="-"?1:0;for(;ae>=Se+4;ae-=3)J=`_${ne.slice(ae-3,ae)}${J}`;return`${ne.slice(0,ae)}${J}`}function oe(ne,J,ae){pe(J,"offset"),(ne[J]===void 0||ne[J+ae]===void 0)&&me(J,ne.length-(ae+1))}function de(ne,J,ae,Se,xe,ue){if(ne>ae||ne<J){let Me=typeof J=="bigint"?"n":"",$e;throw J===0||J===BigInt(0)?$e=`>= 0${Me} and < 2${Me} ** ${(ue+1)*8}${Me}`:$e=`>= -(2${Me} ** ${(ue+1)*8-1}${Me}) and < 2 ** ${(ue+1)*8-1}${Me}`,new j.ERR_OUT_OF_RANGE("value",$e,ne)}oe(Se,xe,ue)}function pe(ne,J){if(typeof ne!="number")throw new j.ERR_INVALID_ARG_TYPE(J,"number",ne)}function me(ne,J,ae){throw Math.floor(ne)!==ne?(pe(ne,ae),new j.ERR_OUT_OF_RANGE("offset","an integer",ne)):J<0?new j.ERR_BUFFER_OUT_OF_BOUNDS:new j.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${J}`,ne)}let ve=/[^+/0-9A-Za-z-_]/g;function he(ne){if(ne=ne.split("=")[0],ne=ne.trim().replace(ve,""),ne.length<2)return"";for(;ne.length%4!==0;)ne=ne+"=";return ne}function be(ne,J){J=J||1/0;let ae,Se=ne.length,xe=null,ue=[];for(let Me=0;Me<Se;++Me){if(ae=ne.charCodeAt(Me),ae>55295&&ae<57344){if(!xe){if(ae>56319){(J-=3)>-1&&ue.push(239,191,189);continue}else if(Me+1===Se){(J-=3)>-1&&ue.push(239,191,189);continue}xe=ae;continue}if(ae<56320){(J-=3)>-1&&ue.push(239,191,189),xe=ae;continue}ae=(xe-55296<<10|ae-56320)+65536}else xe&&(J-=3)>-1&&ue.push(239,191,189);if(xe=null,ae<128){if((J-=1)<0)break;ue.push(ae)}else if(ae<2048){if((J-=2)<0)break;ue.push(ae>>6|192,ae&63|128)}else if(ae<65536){if((J-=3)<0)break;ue.push(ae>>12|224,ae>>6&63|128,ae&63|128)}else if(ae<1114112){if((J-=4)<0)break;ue.push(ae>>18|240,ae>>12&63|128,ae>>6&63|128,ae&63|128)}else throw new Error("Invalid code point")}return ue}function we(ne){let J=[];for(let ae=0;ae<ne.length;++ae)J.push(ne.charCodeAt(ae)&255);return J}function De(ne,J){let ae,Se,xe,ue=[];for(let Me=0;Me<ne.length&&!((J-=2)<0);++Me)ae=ne.charCodeAt(Me),Se=ae>>8,xe=ae%256,ue.push(xe),ue.push(Se);return ue}function Ae(ne){return e.toByteArray(he(ne))}function Ee(ne,J,ae,Se){let xe;for(xe=0;xe<Se&&!(xe+ae>=J.length||xe>=ne.length);++xe)J[xe+ae]=ne[xe];return xe}function Re(ne,J){return ne instanceof J||ne!=null&&ne.constructor!=null&&ne.constructor.name!=null&&ne.constructor.name===J.name}function Te(ne){return ne!==ne}let Oe=function(){let ne="0123456789abcdef",J=new Array(256);for(let ae=0;ae<16;++ae){let Se=ae*16;for(let xe=0;xe<16;++xe)J[Se+xe]=ne[ae]+ne[xe]}return J}();function Ne(ne){return typeof BigInt>"u"?je:ne}function je(){throw new Error("BigInt not supported")}return rb}var Kx,Jte,ZM,ene,rb,tne,Pv,RF,M5e,P5e,Ec=bc(()=>{fn(),hn(),pn(),Kx={},Jte=!1,ZM={},ene=!1,rb={},tne=!1,Pv=oSt(),Pv.Buffer,Pv.SlowBuffer,Pv.INSPECT_MAX_BYTES,Pv.kMaxLength,RF=Pv.Buffer,M5e=Pv.INSPECT_MAX_BYTES,P5e=Pv.kMaxLength}),hn=bc(()=>{Ec()}),aSt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=class{constructor(r){this.aliasToTopic={},this.max=r}put(r,i){return i===0||i>this.max?!1:(this.aliasToTopic[i]=r,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(r){return this.aliasToTopic[r]}clear(){this.aliasToTopic={}}};e.default=n}),xl=On((e,n)=>{fn(),hn(),pn(),n.exports={ArrayIsArray(r){return Array.isArray(r)},ArrayPrototypeIncludes(r,i){return r.includes(i)},ArrayPrototypeIndexOf(r,i){return r.indexOf(i)},ArrayPrototypeJoin(r,i){return r.join(i)},ArrayPrototypeMap(r,i){return r.map(i)},ArrayPrototypePop(r,i){return r.pop(i)},ArrayPrototypePush(r,i){return r.push(i)},ArrayPrototypeSlice(r,i,o){return r.slice(i,o)},Error,FunctionPrototypeCall(r,i,...o){return r.call(i,...o)},FunctionPrototypeSymbolHasInstance(r,i){return Function.prototype[Symbol.hasInstance].call(r,i)},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(r,i){return Object.defineProperties(r,i)},ObjectDefineProperty(r,i,o){return Object.defineProperty(r,i,o)},ObjectGetOwnPropertyDescriptor(r,i){return Object.getOwnPropertyDescriptor(r,i)},ObjectKeys(r){return Object.keys(r)},ObjectSetPrototypeOf(r,i){return Object.setPrototypeOf(r,i)},Promise,PromisePrototypeCatch(r,i){return r.catch(i)},PromisePrototypeThen(r,i,o){return r.then(i,o)},PromiseReject(r){return Promise.reject(r)},ReflectApply:Reflect.apply,RegExpPrototypeTest(r,i){return r.test(i)},SafeSet:Set,String,StringPrototypeSlice(r,i,o){return r.slice(i,o)},StringPrototypeToLowerCase(r){return r.toLowerCase()},StringPrototypeToUpperCase(r){return r.toUpperCase()},StringPrototypeTrim(r){return r.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(r,i,o){return r.set(i,o)},Uint8Array}}),Ey=On((e,n)=>{fn(),hn(),pn();var r=(Ec(),na(Sc)),i=Object.getPrototypeOf(async function(){}).constructor,o=globalThis.Blob||r.Blob,a=typeof o<"u"?function(l){return l instanceof o}:function(l){return!1},s=class extends Error{constructor(l){if(!Array.isArray(l))throw new TypeError(`Expected input to be an Array, got ${typeof l}`);let c="";for(let u=0;u<l.length;u++)c+=` ${l[u].stack}
`;super(c),this.name="AggregateError",this.errors=l}};n.exports={AggregateError:s,kEmptyObject:Object.freeze({}),once(l){let c=!1;return function(...u){c||(c=!0,l.apply(this,u))}},createDeferredPromise:function(){let l,c;return{promise:new Promise((u,d)=>{l=u,c=d}),resolve:l,reject:c}},promisify(l){return new Promise((c,u)=>{l((d,...f)=>d?u(d):c(...f))})},debuglog(){return function(){}},format(l,...c){return l.replace(/%([sdifj])/g,function(...[u,d]){let f=c.shift();return d==="f"?f.toFixed(6):d==="j"?JSON.stringify(f):d==="s"&&typeof f=="object"?`${f.constructor!==Object?f.constructor.name:""} {}`.trim():f.toString()})},inspect(l){switch(typeof l){case"string":if(l.includes("'"))if(l.includes('"')){if(!l.includes("`")&&!l.includes("${"))return`\`${l}\``}else return`"${l}"`;return`'${l}'`;case"number":return isNaN(l)?"NaN":Object.is(l,-0)?String(l):l;case"bigint":return`${String(l)}n`;case"boolean":case"undefined":return String(l);case"object":return"{}"}},types:{isAsyncFunction(l){return l instanceof i},isArrayBufferView(l){return ArrayBuffer.isView(l)}},isBlob:a},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),Rle=On((e,n)=>{fn(),hn(),pn();var{AbortController:r,AbortSignal:i}=typeof self<"u"?self:typeof window<"u"?window:void 0;n.exports=r,n.exports.AbortSignal=i,n.exports.default=r}),Cd=On((e,n)=>{fn(),hn(),pn();var{format:r,inspect:i,AggregateError:o}=Ey(),a=globalThis.AggregateError||o,s=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],c=/^([A-Z][a-z0-9]*)+$/,u="__node_internal_",d={};function f(S,b){if(!S)throw new d.ERR_INTERNAL_ASSERTION(b)}function p(S){let b="",E=S.length,w=S[0]==="-"?1:0;for(;E>=w+4;E-=3)b=`_${S.slice(E-3,E)}${b}`;return`${S.slice(0,E)}${b}`}function h(S,b,E){if(typeof b=="function")return f(b.length<=E.length,`Code: ${S}; The provided arguments length (${E.length}) does not match the required ones (${b.length}).`),b(...E);let w=(b.match(/%[dfijoOs]/g)||[]).length;return f(w===E.length,`Code: ${S}; The provided arguments length (${E.length}) does not match the required ones (${w}).`),E.length===0?b:r(b,...E)}function g(S,b,E){E||(E=Error);class w extends E{constructor(...x){super(h(S,b,x))}toString(){return`${this.name} [${S}]: ${this.message}`}}Object.defineProperties(w.prototype,{name:{value:E.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${S}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),w.prototype.code=S,w.prototype[s]=!0,d[S]=w}function v(S){let b=u+S.name;return Object.defineProperty(S,"name",{value:b}),S}function y(S,b){if(S&&b&&S!==b){if(Array.isArray(b.errors))return b.errors.push(S),b;let E=new a([b,S],b.message);return E.code=b.code,E}return S||b}var _=class extends Error{constructor(S="The operation was aborted",b=void 0){if(b!==void 0&&typeof b!="object")throw new d.ERR_INVALID_ARG_TYPE("options","Object",b);super(S,b),this.code="ABORT_ERR",this.name="AbortError"}};g("ERR_ASSERTION","%s",Error),g("ERR_INVALID_ARG_TYPE",(S,b,E)=>{f(typeof S=="string","'name' must be a string"),Array.isArray(b)||(b=[b]);let w="The ";S.endsWith(" argument")?w+=`${S} `:w+=`"${S}" ${S.includes(".")?"property":"argument"} `,w+="must be ";let C=[],x=[],T=[];for(let O of b)f(typeof O=="string","All expected entries have to be of type string"),l.includes(O)?C.push(O.toLowerCase()):c.test(O)?x.push(O):(f(O!=="object",'The value "object" should be written as "Object"'),T.push(O));if(x.length>0){let O=C.indexOf("object");O!==-1&&(C.splice(C,O,1),x.push("Object"))}if(C.length>0){switch(C.length){case 1:w+=`of type ${C[0]}`;break;case 2:w+=`one of type ${C[0]} or ${C[1]}`;break;default:{let O=C.pop();w+=`one of type ${C.join(", ")}, or ${O}`}}(x.length>0||T.length>0)&&(w+=" or ")}if(x.length>0){switch(x.length){case 1:w+=`an instance of ${x[0]}`;break;case 2:w+=`an instance of ${x[0]} or ${x[1]}`;break;default:{let O=x.pop();w+=`an instance of ${x.join(", ")}, or ${O}`}}T.length>0&&(w+=" or ")}switch(T.length){case 0:break;case 1:T[0].toLowerCase()!==T[0]&&(w+="an "),w+=`${T[0]}`;break;case 2:w+=`one of ${T[0]} or ${T[1]}`;break;default:{let O=T.pop();w+=`one of ${T.join(", ")}, or ${O}`}}if(E==null)w+=`. Received ${E}`;else if(typeof E=="function"&&E.name)w+=`. Received function ${E.name}`;else if(typeof E=="object"){var R;if((R=E.constructor)!==null&&R!==void 0&&R.name)w+=`. Received an instance of ${E.constructor.name}`;else{let O=i(E,{depth:-1});w+=`. Received ${O}`}}else{let O=i(E,{colors:!1});O.length>25&&(O=`${O.slice(0,25)}...`),w+=`. Received type ${typeof E} (${O})`}return w},TypeError),g("ERR_INVALID_ARG_VALUE",(S,b,E="is invalid")=>{let w=i(b);return w.length>128&&(w=w.slice(0,128)+"..."),`The ${S.includes(".")?"property":"argument"} '${S}' ${E}. Received ${w}`},TypeError),g("ERR_INVALID_RETURN_VALUE",(S,b,E)=>{var w;let C=E!=null&&(w=E.constructor)!==null&&w!==void 0&&w.name?`instance of ${E.constructor.name}`:`type ${typeof E}`;return`Expected ${S} to be returned from the "${b}" function but got ${C}.`},TypeError),g("ERR_MISSING_ARGS",(...S)=>{f(S.length>0,"At least one arg needs to be specified");let b,E=S.length;switch(S=(Array.isArray(S)?S:[S]).map(w=>`"${w}"`).join(" or "),E){case 1:b+=`The ${S[0]} argument`;break;case 2:b+=`The ${S[0]} and ${S[1]} arguments`;break;default:{let w=S.pop();b+=`The ${S.join(", ")}, and ${w} arguments`}break}return`${b} must be specified`},TypeError),g("ERR_OUT_OF_RANGE",(S,b,E)=>{f(b,'Missing "range" argument');let w;return Number.isInteger(E)&&Math.abs(E)>2**32?w=p(String(E)):typeof E=="bigint"?(w=String(E),(E>2n**32n||E<-(2n**32n))&&(w=p(w)),w+="n"):w=i(E),`The value of "${S}" is out of range. It must be ${b}. Received ${w}`},RangeError),g("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),g("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),g("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),g("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),g("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),g("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),g("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),g("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),g("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),g("ERR_STREAM_WRITE_AFTER_END","write after end",Error),g("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),n.exports={AbortError:_,aggregateTwoErrors:v(y),hideStackFrames:v,codes:d}}),A7=On((e,n)=>{fn(),hn(),pn();var{ArrayIsArray:r,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:o,ArrayPrototypeMap:a,NumberIsInteger:s,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:c,NumberMIN_SAFE_INTEGER:u,NumberParseInt:d,ObjectPrototypeHasOwnProperty:f,RegExpPrototypeExec:p,String:h,StringPrototypeToUpperCase:g,StringPrototypeTrim:v}=xl(),{hideStackFrames:y,codes:{ERR_SOCKET_BAD_PORT:_,ERR_INVALID_ARG_TYPE:S,ERR_INVALID_ARG_VALUE:b,ERR_OUT_OF_RANGE:E,ERR_UNKNOWN_SIGNAL:w}}=Cd(),{normalizeEncoding:C}=Ey(),{isAsyncFunction:x,isArrayBufferView:T}=Ey().types,R={};function O(Ee){return Ee===(Ee|0)}function M(Ee){return Ee===Ee>>>0}var P=/^[0-7]+$/,k="must be a 32-bit unsigned integer or an octal string";function $(Ee,Re,Te){if(typeof Ee>"u"&&(Ee=Te),typeof Ee=="string"){if(p(P,Ee)===null)throw new b(Re,Ee,k);Ee=d(Ee,8)}return D(Ee,Re),Ee}var U=y((Ee,Re,Te=u,Oe=c)=>{if(typeof Ee!="number")throw new S(Re,"number",Ee);if(!s(Ee))throw new E(Re,"an integer",Ee);if(Ee<Te||Ee>Oe)throw new E(Re,`>= ${Te} && <= ${Oe}`,Ee)}),z=y((Ee,Re,Te=-2147483648,Oe=2147483647)=>{if(typeof Ee!="number")throw new S(Re,"number",Ee);if(!s(Ee))throw new E(Re,"an integer",Ee);if(Ee<Te||Ee>Oe)throw new E(Re,`>= ${Te} && <= ${Oe}`,Ee)}),D=y((Ee,Re,Te=!1)=>{if(typeof Ee!="number")throw new S(Re,"number",Ee);if(!s(Ee))throw new E(Re,"an integer",Ee);let Oe=Te?1:0,Ne=4294967295;if(Ee<Oe||Ee>Ne)throw new E(Re,`>= ${Oe} && <= ${Ne}`,Ee)});function B(Ee,Re){if(typeof Ee!="string")throw new S(Re,"string",Ee)}function Y(Ee,Re,Te=void 0,Oe){if(typeof Ee!="number")throw new S(Re,"number",Ee);if(Te!=null&&Ee<Te||Oe!=null&&Ee>Oe||(Te!=null||Oe!=null)&&l(Ee))throw new E(Re,`${Te!=null?`>= ${Te}`:""}${Te!=null&&Oe!=null?" && ":""}${Oe!=null?`<= ${Oe}`:""}`,Ee)}var q=y((Ee,Re,Te)=>{if(!i(Te,Ee)){let Oe="must be one of: "+o(a(Te,Ne=>typeof Ne=="string"?`'${Ne}'`:h(Ne)),", ");throw new b(Re,Ee,Oe)}});function K(Ee,Re){if(typeof Ee!="boolean")throw new S(Re,"boolean",Ee)}function H(Ee,Re,Te){return Ee==null||!f(Ee,Re)?Te:Ee[Re]}var G=y((Ee,Re,Te=null)=>{let Oe=H(Te,"allowArray",!1),Ne=H(Te,"allowFunction",!1);if(!H(Te,"nullable",!1)&&Ee===null||!Oe&&r(Ee)||typeof Ee!="object"&&(!Ne||typeof Ee!="function"))throw new S(Re,"Object",Ee)}),Q=y((Ee,Re)=>{if(Ee!=null&&typeof Ee!="object"&&typeof Ee!="function")throw new S(Re,"a dictionary",Ee)}),le=y((Ee,Re,Te=0)=>{if(!r(Ee))throw new S(Re,"Array",Ee);if(Ee.length<Te){let Oe=`must be longer than ${Te}`;throw new b(Re,Ee,Oe)}});function Z(Ee,Re){le(Ee,Re);for(let Te=0;Te<Ee.length;Te++)B(Ee[Te],`${Re}[${Te}]`)}function j(Ee,Re){le(Ee,Re);for(let Te=0;Te<Ee.length;Te++)K(Ee[Te],`${Re}[${Te}]`)}function F(Ee,Re="signal"){if(B(Ee,Re),R[Ee]===void 0)throw R[g(Ee)]!==void 0?new w(Ee+" (signals must use all capital letters)"):new w(Ee)}var te=y((Ee,Re="buffer")=>{if(!T(Ee))throw new S(Re,["Buffer","TypedArray","DataView"],Ee)});function oe(Ee,Re){let Te=C(Re),Oe=Ee.length;if(Te==="hex"&&Oe%2!==0)throw new b("encoding",Re,`is invalid for data of length ${Oe}`)}function de(Ee,Re="Port",Te=!0){if(typeof Ee!="number"&&typeof Ee!="string"||typeof Ee=="string"&&v(Ee).length===0||+Ee!==+Ee>>>0||Ee>65535||Ee===0&&!Te)throw new _(Re,Ee,Te);return Ee|0}var pe=y((Ee,Re)=>{if(Ee!==void 0&&(Ee===null||typeof Ee!="object"||!("aborted"in Ee)))throw new S(Re,"AbortSignal",Ee)}),me=y((Ee,Re)=>{if(typeof Ee!="function")throw new S(Re,"Function",Ee)}),ve=y((Ee,Re)=>{if(typeof Ee!="function"||x(Ee))throw new S(Re,"Function",Ee)}),he=y((Ee,Re)=>{if(Ee!==void 0)throw new S(Re,"undefined",Ee)});function be(Ee,Re,Te){if(!i(Te,Ee))throw new S(Re,`('${o(Te,"|")}')`,Ee)}var we=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function De(Ee,Re){if(typeof Ee>"u"||!p(we,Ee))throw new b(Re,Ee,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function Ae(Ee){if(typeof Ee=="string")return De(Ee,"hints"),Ee;if(r(Ee)){let Re=Ee.length,Te="";if(Re===0)return Te;for(let Oe=0;Oe<Re;Oe++){let Ne=Ee[Oe];De(Ne,"hints"),Te+=Ne,Oe!==Re-1&&(Te+=", ")}return Te}throw new b("hints",Ee,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}n.exports={isInt32:O,isUint32:M,parseFileMode:$,validateArray:le,validateStringArray:Z,validateBooleanArray:j,validateBoolean:K,validateBuffer:te,validateDictionary:Q,validateEncoding:oe,validateFunction:me,validateInt32:z,validateInteger:U,validateNumber:Y,validateObject:G,validateOneOf:q,validatePlainFunction:ve,validatePort:de,validateSignalName:F,validateString:B,validateUint32:D,validateUndefined:he,validateUnion:be,validateAbortSignal:pe,validateLinkHeaderValue:Ae}}),WC=On((e,n)=>{fn(),hn(),pn();var r=n.exports={},i,o;function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?i=setTimeout:i=a}catch{i=a}try{typeof clearTimeout=="function"?o=clearTimeout:o=s}catch{o=s}})();function l(_){if(i===setTimeout)return setTimeout(_,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(_,0);try{return i(_,0)}catch{try{return i.call(null,_,0)}catch{return i.call(this,_,0)}}}function c(_){if(o===clearTimeout)return clearTimeout(_);if((o===s||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(_);try{return o(_)}catch{try{return o.call(null,_)}catch{return o.call(this,_)}}}var u=[],d=!1,f,p=-1;function h(){!d||!f||(d=!1,f.length?u=f.concat(u):p=-1,u.length&&g())}function g(){if(!d){var _=l(h);d=!0;for(var S=u.length;S;){for(f=u,u=[];++p<S;)f&&f[p].run();p=-1,S=u.length}f=null,d=!1,c(_)}}r.nextTick=function(_){var S=new Array(arguments.length-1);if(arguments.length>1)for(var b=1;b<arguments.length;b++)S[b-1]=arguments[b];u.push(new v(_,S)),u.length===1&&!d&&l(g)};function v(_,S){this.fun=_,this.array=S}v.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={};function y(){}r.on=y,r.addListener=y,r.once=y,r.off=y,r.removeListener=y,r.removeAllListeners=y,r.emit=y,r.prependListener=y,r.prependOnceListener=y,r.listeners=function(_){return[]},r.binding=function(_){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(_){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}}),zy=On((e,n)=>{fn(),hn(),pn();var{Symbol:r,SymbolAsyncIterator:i,SymbolIterator:o,SymbolFor:a}=xl(),s=r("kDestroyed"),l=r("kIsErrored"),c=r("kIsReadable"),u=r("kIsDisturbed"),d=a("nodejs.webstream.isClosedPromise"),f=a("nodejs.webstream.controllerErrorFunction");function p(H,G=!1){var Q;return!!(H&&typeof H.pipe=="function"&&typeof H.on=="function"&&(!G||typeof H.pause=="function"&&typeof H.resume=="function")&&(!H._writableState||((Q=H._readableState)===null||Q===void 0?void 0:Q.readable)!==!1)&&(!H._writableState||H._readableState))}function h(H){var G;return!!(H&&typeof H.write=="function"&&typeof H.on=="function"&&(!H._readableState||((G=H._writableState)===null||G===void 0?void 0:G.writable)!==!1))}function g(H){return!!(H&&typeof H.pipe=="function"&&H._readableState&&typeof H.on=="function"&&typeof H.write=="function")}function v(H){return H&&(H._readableState||H._writableState||typeof H.write=="function"&&typeof H.on=="function"||typeof H.pipe=="function"&&typeof H.on=="function")}function y(H){return!!(H&&!v(H)&&typeof H.pipeThrough=="function"&&typeof H.getReader=="function"&&typeof H.cancel=="function")}function _(H){return!!(H&&!v(H)&&typeof H.getWriter=="function"&&typeof H.abort=="function")}function S(H){return!!(H&&!v(H)&&typeof H.readable=="object"&&typeof H.writable=="object")}function b(H){return y(H)||_(H)||S(H)}function E(H,G){return H==null?!1:G===!0?typeof H[i]=="function":G===!1?typeof H[o]=="function":typeof H[i]=="function"||typeof H[o]=="function"}function w(H){if(!v(H))return null;let G=H._writableState,Q=H._readableState,le=G||Q;return!!(H.destroyed||H[s]||le!=null&&le.destroyed)}function C(H){if(!h(H))return null;if(H.writableEnded===!0)return!0;let G=H._writableState;return G!=null&&G.errored?!1:typeof(G==null?void 0:G.ended)!="boolean"?null:G.ended}function x(H,G){if(!h(H))return null;if(H.writableFinished===!0)return!0;let Q=H._writableState;return Q!=null&&Q.errored?!1:typeof(Q==null?void 0:Q.finished)!="boolean"?null:!!(Q.finished||G===!1&&Q.ended===!0&&Q.length===0)}function T(H){if(!p(H))return null;if(H.readableEnded===!0)return!0;let G=H._readableState;return!G||G.errored?!1:typeof(G==null?void 0:G.ended)!="boolean"?null:G.ended}function R(H,G){if(!p(H))return null;let Q=H._readableState;return Q!=null&&Q.errored?!1:typeof(Q==null?void 0:Q.endEmitted)!="boolean"?null:!!(Q.endEmitted||G===!1&&Q.ended===!0&&Q.length===0)}function O(H){return H&&H[c]!=null?H[c]:typeof(H==null?void 0:H.readable)!="boolean"?null:w(H)?!1:p(H)&&H.readable&&!R(H)}function M(H){return typeof(H==null?void 0:H.writable)!="boolean"?null:w(H)?!1:h(H)&&H.writable&&!C(H)}function P(H,G){return v(H)?w(H)?!0:!((G==null?void 0:G.readable)!==!1&&O(H)||(G==null?void 0:G.writable)!==!1&&M(H)):null}function k(H){var G,Q;return v(H)?H.writableErrored?H.writableErrored:(G=(Q=H._writableState)===null||Q===void 0?void 0:Q.errored)!==null&&G!==void 0?G:null:null}function $(H){var G,Q;return v(H)?H.readableErrored?H.readableErrored:(G=(Q=H._readableState)===null||Q===void 0?void 0:Q.errored)!==null&&G!==void 0?G:null:null}function U(H){if(!v(H))return null;if(typeof H.closed=="boolean")return H.closed;let G=H._writableState,Q=H._readableState;return typeof(G==null?void 0:G.closed)=="boolean"||typeof(Q==null?void 0:Q.closed)=="boolean"?(G==null?void 0:G.closed)||(Q==null?void 0:Q.closed):typeof H._closed=="boolean"&&z(H)?H._closed:null}function z(H){return typeof H._closed=="boolean"&&typeof H._defaultKeepAlive=="boolean"&&typeof H._removedConnection=="boolean"&&typeof H._removedContLen=="boolean"}function D(H){return typeof H._sent100=="boolean"&&z(H)}function B(H){var G;return typeof H._consuming=="boolean"&&typeof H._dumped=="boolean"&&((G=H.req)===null||G===void 0?void 0:G.upgradeOrConnect)===void 0}function Y(H){if(!v(H))return null;let G=H._writableState,Q=H._readableState,le=G||Q;return!le&&D(H)||!!(le&&le.autoDestroy&&le.emitClose&&le.closed===!1)}function q(H){var G;return!!(H&&((G=H[u])!==null&&G!==void 0?G:H.readableDidRead||H.readableAborted))}function K(H){var G,Q,le,Z,j,F,te,oe,de,pe;return!!(H&&((G=(Q=(le=(Z=(j=(F=H[l])!==null&&F!==void 0?F:H.readableErrored)!==null&&j!==void 0?j:H.writableErrored)!==null&&Z!==void 0?Z:(te=H._readableState)===null||te===void 0?void 0:te.errorEmitted)!==null&&le!==void 0?le:(oe=H._writableState)===null||oe===void 0?void 0:oe.errorEmitted)!==null&&Q!==void 0?Q:(de=H._readableState)===null||de===void 0?void 0:de.errored)!==null&&G!==void 0?G:!((pe=H._writableState)===null||pe===void 0)&&pe.errored))}n.exports={kDestroyed:s,isDisturbed:q,kIsDisturbed:u,isErrored:K,kIsErrored:l,isReadable:O,kIsReadable:c,kIsClosedPromise:d,kControllerErrorFunction:f,isClosed:U,isDestroyed:w,isDuplexNodeStream:g,isFinished:P,isIterable:E,isReadableNodeStream:p,isReadableStream:y,isReadableEnded:T,isReadableFinished:R,isReadableErrored:$,isNodeStream:v,isWebStream:b,isWritable:M,isWritableNodeStream:h,isWritableStream:_,isWritableEnded:C,isWritableFinished:x,isWritableErrored:k,isServerRequest:B,isServerResponse:D,willEmitClose:Y,isTransformStream:S}}),K0=On((e,n)=>{fn(),hn(),pn();var r=WC(),{AbortError:i,codes:o}=Cd(),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:s}=o,{kEmptyObject:l,once:c}=Ey(),{validateAbortSignal:u,validateFunction:d,validateObject:f,validateBoolean:p}=A7(),{Promise:h,PromisePrototypeThen:g}=xl(),{isClosed:v,isReadable:y,isReadableNodeStream:_,isReadableStream:S,isReadableFinished:b,isReadableErrored:E,isWritable:w,isWritableNodeStream:C,isWritableStream:x,isWritableFinished:T,isWritableErrored:R,isNodeStream:O,willEmitClose:M,kIsClosedPromise:P}=zy();function k(B){return B.setHeader&&typeof B.abort=="function"}var $=()=>{};function U(B,Y,q){var K,H;if(arguments.length===2?(q=Y,Y=l):Y==null?Y=l:f(Y,"options"),d(q,"callback"),u(Y.signal,"options.signal"),q=c(q),S(B)||x(B))return z(B,Y,q);if(!O(B))throw new a("stream",["ReadableStream","WritableStream","Stream"],B);let G=(K=Y.readable)!==null&&K!==void 0?K:_(B),Q=(H=Y.writable)!==null&&H!==void 0?H:C(B),le=B._writableState,Z=B._readableState,j=()=>{B.writable||oe()},F=M(B)&&_(B)===G&&C(B)===Q,te=T(B,!1),oe=()=>{te=!0,B.destroyed&&(F=!1),!(F&&(!B.readable||G))&&(!G||de)&&q.call(B)},de=b(B,!1),pe=()=>{de=!0,B.destroyed&&(F=!1),!(F&&(!B.writable||Q))&&(!Q||te)&&q.call(B)},me=Ae=>{q.call(B,Ae)},ve=v(B),he=()=>{ve=!0;let Ae=R(B)||E(B);if(Ae&&typeof Ae!="boolean")return q.call(B,Ae);if(G&&!de&&_(B,!0)&&!b(B,!1))return q.call(B,new s);if(Q&&!te&&!T(B,!1))return q.call(B,new s);q.call(B)},be=()=>{ve=!0;let Ae=R(B)||E(B);if(Ae&&typeof Ae!="boolean")return q.call(B,Ae);q.call(B)},we=()=>{B.req.on("finish",oe)};k(B)?(B.on("complete",oe),F||B.on("abort",he),B.req?we():B.on("request",we)):Q&&!le&&(B.on("end",j),B.on("close",j)),!F&&typeof B.aborted=="boolean"&&B.on("aborted",he),B.on("end",pe),B.on("finish",oe),Y.error!==!1&&B.on("error",me),B.on("close",he),ve?r.nextTick(he):le!=null&&le.errorEmitted||Z!=null&&Z.errorEmitted?F||r.nextTick(be):(!G&&(!F||y(B))&&(te||w(B)===!1)||!Q&&(!F||w(B))&&(de||y(B)===!1)||Z&&B.req&&B.aborted)&&r.nextTick(be);let De=()=>{q=$,B.removeListener("aborted",he),B.removeListener("complete",oe),B.removeListener("abort",he),B.removeListener("request",we),B.req&&B.req.removeListener("finish",oe),B.removeListener("end",j),B.removeListener("close",j),B.removeListener("finish",oe),B.removeListener("end",pe),B.removeListener("error",me),B.removeListener("close",he)};if(Y.signal&&!ve){let Ae=()=>{let Ee=q;De(),Ee.call(B,new i(void 0,{cause:Y.signal.reason}))};if(Y.signal.aborted)r.nextTick(Ae);else{let Ee=q;q=c((...Re)=>{Y.signal.removeEventListener("abort",Ae),Ee.apply(B,Re)}),Y.signal.addEventListener("abort",Ae)}}return De}function z(B,Y,q){let K=!1,H=$;if(Y.signal)if(H=()=>{K=!0,q.call(B,new i(void 0,{cause:Y.signal.reason}))},Y.signal.aborted)r.nextTick(H);else{let Q=q;q=c((...le)=>{Y.signal.removeEventListener("abort",H),Q.apply(B,le)}),Y.signal.addEventListener("abort",H)}let G=(...Q)=>{K||r.nextTick(()=>q.apply(B,Q))};return g(B[P].promise,G,G),$}function D(B,Y){var q;let K=!1;return Y===null&&(Y=l),(q=Y)!==null&&q!==void 0&&q.cleanup&&(p(Y.cleanup,"cleanup"),K=Y.cleanup),new h((H,G)=>{let Q=U(B,Y,le=>{K&&Q(),le?G(le):H()})})}n.exports=U,n.exports.finished=D}),qR=On((e,n)=>{fn(),hn(),pn();var r=WC(),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:o},AbortError:a}=Cd(),{Symbol:s}=xl(),{kDestroyed:l,isDestroyed:c,isFinished:u,isServerRequest:d}=zy(),f=s("kDestroy"),p=s("kConstruct");function h(P,k,$){P&&(P.stack,k&&!k.errored&&(k.errored=P),$&&!$.errored&&($.errored=P))}function g(P,k){let $=this._readableState,U=this._writableState,z=U||$;return U!=null&&U.destroyed||$!=null&&$.destroyed?(typeof k=="function"&&k(),this):(h(P,U,$),U&&(U.destroyed=!0),$&&($.destroyed=!0),z.constructed?v(this,P,k):this.once(f,function(D){v(this,i(D,P),k)}),this)}function v(P,k,$){let U=!1;function z(D){if(U)return;U=!0;let B=P._readableState,Y=P._writableState;h(D,Y,B),Y&&(Y.closed=!0),B&&(B.closed=!0),typeof $=="function"&&$(D),D?r.nextTick(y,P,D):r.nextTick(_,P)}try{P._destroy(k||null,z)}catch(D){z(D)}}function y(P,k){S(P,k),_(P)}function _(P){let k=P._readableState,$=P._writableState;$&&($.closeEmitted=!0),k&&(k.closeEmitted=!0),($!=null&&$.emitClose||k!=null&&k.emitClose)&&P.emit("close")}function S(P,k){let $=P._readableState,U=P._writableState;U!=null&&U.errorEmitted||$!=null&&$.errorEmitted||(U&&(U.errorEmitted=!0),$&&($.errorEmitted=!0),P.emit("error",k))}function b(){let P=this._readableState,k=this._writableState;P&&(P.constructed=!0,P.closed=!1,P.closeEmitted=!1,P.destroyed=!1,P.errored=null,P.errorEmitted=!1,P.reading=!1,P.ended=P.readable===!1,P.endEmitted=P.readable===!1),k&&(k.constructed=!0,k.destroyed=!1,k.closed=!1,k.closeEmitted=!1,k.errored=null,k.errorEmitted=!1,k.finalCalled=!1,k.prefinished=!1,k.ended=k.writable===!1,k.ending=k.writable===!1,k.finished=k.writable===!1)}function E(P,k,$){let U=P._readableState,z=P._writableState;if(z!=null&&z.destroyed||U!=null&&U.destroyed)return this;U!=null&&U.autoDestroy||z!=null&&z.autoDestroy?P.destroy(k):k&&(k.stack,z&&!z.errored&&(z.errored=k),U&&!U.errored&&(U.errored=k),$?r.nextTick(S,P,k):S(P,k))}function w(P,k){if(typeof P._construct!="function")return;let $=P._readableState,U=P._writableState;$&&($.constructed=!1),U&&(U.constructed=!1),P.once(p,k),!(P.listenerCount(p)>1)&&r.nextTick(C,P)}function C(P){let k=!1;function $(U){if(k){E(P,U??new o);return}k=!0;let z=P._readableState,D=P._writableState,B=D||z;z&&(z.constructed=!0),D&&(D.constructed=!0),B.destroyed?P.emit(f,U):U?E(P,U,!0):r.nextTick(x,P)}try{P._construct(U=>{r.nextTick($,U)})}catch(U){r.nextTick($,U)}}function x(P){P.emit(p)}function T(P){return(P==null?void 0:P.setHeader)&&typeof P.abort=="function"}function R(P){P.emit("close")}function O(P,k){P.emit("error",k),r.nextTick(R,P)}function M(P,k){!P||c(P)||(!k&&!u(P)&&(k=new a),d(P)?(P.socket=null,P.destroy(k)):T(P)?P.abort():T(P.req)?P.req.abort():typeof P.destroy=="function"?P.destroy(k):typeof P.close=="function"?P.close():k?r.nextTick(O,P,k):r.nextTick(R,P),P.destroyed||(P[l]=!0))}n.exports={construct:w,destroyer:M,destroy:g,undestroy:b,errorOrDestroy:E}});function Wo(){Wo.init.call(this)}function k5(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function A5e(e){return e._maxListeners===void 0?Wo.defaultMaxListeners:e._maxListeners}function qbe(e,n,r,i){var o,a,s,l;if(k5(r),(a=e._events)===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",n,r.listener?r.listener:r),a=e._events),s=a[n]),s===void 0)s=a[n]=r,++e._eventsCount;else if(typeof s=="function"?s=a[n]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),(o=A5e(e))>0&&s.length>o&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=n,c.count=s.length,l=c,console&&console.warn&&console.warn(l)}return e}function sSt(){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 Kbe(e,n,r){var i={fired:!1,wrapFn:void 0,target:e,type:n,listener:r},o=sSt.bind(i);return o.listener=r,i.wrapFn=o,o}function Xbe(e,n,r){var i=e._events;if(i===void 0)return[];var o=i[n];return o===void 0?[]:typeof o=="function"?r?[o.listener||o]:[o]:r?function(a){for(var s=new Array(a.length),l=0;l<s.length;++l)s[l]=a[l].listener||a[l];return s}(o):D5e(o,o.length)}function Qbe(e){var n=this._events;if(n!==void 0){var r=n[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}function D5e(e,n){for(var r=new Array(n),i=0;i<n;++i)r[i]=e[i];return r}var Zbe,Jbe,lE,kW,LW,$W,qd,e0e=bc(()=>{fn(),hn(),pn(),lE=typeof Reflect=="object"?Reflect:null,kW=lE&&typeof lE.apply=="function"?lE.apply:function(e,n,r){return Function.prototype.apply.call(e,n,r)},Jbe=lE&&typeof lE.ownKeys=="function"?lE.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},LW=Number.isNaN||function(e){return e!=e},Zbe=Wo,Wo.EventEmitter=Wo,Wo.prototype._events=void 0,Wo.prototype._eventsCount=0,Wo.prototype._maxListeners=void 0,$W=10,Object.defineProperty(Wo,"defaultMaxListeners",{enumerable:!0,get:function(){return $W},set:function(e){if(typeof e!="number"||e<0||LW(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");$W=e}}),Wo.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},Wo.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||LW(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},Wo.prototype.getMaxListeners=function(){return A5e(this)},Wo.prototype.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var i=e==="error",o=this._events;if(o!==void 0)i=i&&o.error===void 0;else if(!i)return!1;if(i){var a;if(n.length>0&&(a=n[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(l===void 0)return!1;if(typeof l=="function")kW(l,this,n);else{var c=l.length,u=D5e(l,c);for(r=0;r<c;++r)kW(u[r],this,n)}return!0},Wo.prototype.addListener=function(e,n){return qbe(this,e,n,!1)},Wo.prototype.on=Wo.prototype.addListener,Wo.prototype.prependListener=function(e,n){return qbe(this,e,n,!0)},Wo.prototype.once=function(e,n){return k5(n),this.on(e,Kbe(this,e,n)),this},Wo.prototype.prependOnceListener=function(e,n){return k5(n),this.prependListener(e,Kbe(this,e,n)),this},Wo.prototype.removeListener=function(e,n){var r,i,o,a,s;if(k5(n),(i=this._events)===void 0)return this;if((r=i[e])===void 0)return this;if(r===n||r.listener===n)--this._eventsCount==0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||n));else if(typeof r!="function"){for(o=-1,a=r.length-1;a>=0;a--)if(r[a]===n||r[a].listener===n){s=r[a].listener,o=a;break}if(o<0)return this;o===0?r.shift():function(l,c){for(;c+1<l.length;c++)l[c]=l[c+1];l.pop()}(r,o),r.length===1&&(i[e]=r[0]),i.removeListener!==void 0&&this.emit("removeListener",e,s||n)}return this},Wo.prototype.off=Wo.prototype.removeListener,Wo.prototype.removeAllListeners=function(e){var n,r,i;if((r=this._events)===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var o,a=Object.keys(r);for(i=0;i<a.length;++i)(o=a[i])!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(n=r[e])=="function")this.removeListener(e,n);else if(n!==void 0)for(i=n.length-1;i>=0;i--)this.removeListener(e,n[i]);return this},Wo.prototype.listeners=function(e){return Xbe(this,e,!0)},Wo.prototype.rawListeners=function(e){return Xbe(this,e,!1)},Wo.listenerCount=function(e,n){return typeof e.listenerCount=="function"?e.listenerCount(n):Qbe.call(e,n)},Wo.prototype.listenerCount=Qbe,Wo.prototype.eventNames=function(){return this._eventsCount>0?Jbe(this._events):[]},qd=Zbe,qd.EventEmitter,qd.defaultMaxListeners,qd.init,qd.listenerCount,qd.EventEmitter,qd.defaultMaxListeners,qd.init,qd.listenerCount}),YC={};GC(YC,{EventEmitter:()=>k5e,default:()=>qd,defaultMaxListeners:()=>L5e,init:()=>$5e,listenerCount:()=>F5e,on:()=>B5e,once:()=>j5e});var k5e,L5e,$5e,F5e,B5e,j5e,KR=bc(()=>{fn(),hn(),pn(),e0e(),e0e(),qd.once=function(e,n){return new Promise((r,i)=>{function o(...s){a!==void 0&&e.removeListener("error",a),r(s)}let a;n!=="error"&&(a=s=>{e.removeListener(name,o),i(s)},e.once("error",a)),e.once(n,o)})},qd.on=function(e,n){let r=[],i=[],o=null,a=!1,s={async next(){let u=r.shift();if(u)return createIterResult(u,!1);if(o){let d=Promise.reject(o);return o=null,d}return a?createIterResult(void 0,!0):new Promise((d,f)=>i.push({resolve:d,reject:f}))},async return(){e.removeListener(n,l),e.removeListener("error",c),a=!0;for(let u of i)u.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(u){o=u,e.removeListener(n,l),e.removeListener("error",c)},[Symbol.asyncIterator](){return this}};return e.on(n,l),e.on("error",c),s;function l(...u){let d=i.shift();d?d.resolve(createIterResult(u,!1)):r.push(u)}function c(u){a=!0;let d=i.shift();d?d.reject(u):o=u,s.return()}},{EventEmitter:k5e,defaultMaxListeners:L5e,init:$5e,listenerCount:F5e,on:B5e,once:j5e}=qd}),Ile=On((e,n)=>{fn(),hn(),pn();var{ArrayIsArray:r,ObjectSetPrototypeOf:i}=xl(),{EventEmitter:o}=(KR(),na(YC));function a(l){o.call(this,l)}i(a.prototype,o.prototype),i(a,o),a.prototype.pipe=function(l,c){let u=this;function d(_){l.writable&&l.write(_)===!1&&u.pause&&u.pause()}u.on("data",d);function f(){u.readable&&u.resume&&u.resume()}l.on("drain",f),!l._isStdio&&(!c||c.end!==!1)&&(u.on("end",h),u.on("close",g));let p=!1;function h(){p||(p=!0,l.end())}function g(){p||(p=!0,typeof l.destroy=="function"&&l.destroy())}function v(_){y(),o.listenerCount(this,"error")===0&&this.emit("error",_)}s(u,"error",v),s(l,"error",v);function y(){u.removeListener("data",d),l.removeListener("drain",f),u.removeListener("end",h),u.removeListener("close",g),u.removeListener("error",v),l.removeListener("error",v),u.removeListener("end",y),u.removeListener("close",y),l.removeListener("close",y)}return u.on("end",y),u.on("close",y),l.on("close",y),l.emit("pipe",u),l};function s(l,c,u){if(typeof l.prependListener=="function")return l.prependListener(c,u);!l._events||!l._events[c]?l.on(c,u):r(l._events[c])?l._events[c].unshift(u):l._events[c]=[u,l._events[c]]}n.exports={Stream:a,prependListener:s}}),D7=On((e,n)=>{fn(),hn(),pn();var{AbortError:r,codes:i}=Cd(),{isNodeStream:o,isWebStream:a,kControllerErrorFunction:s}=zy(),l=K0(),{ERR_INVALID_ARG_TYPE:c}=i,u=(d,f)=>{if(typeof d!="object"||!("aborted"in d))throw new c(f,"AbortSignal",d)};n.exports.addAbortSignal=function(d,f){if(u(d,"signal"),!o(f)&&!a(f))throw new c("stream",["ReadableStream","WritableStream","Stream"],f);return n.exports.addAbortSignalNoValidate(d,f)},n.exports.addAbortSignalNoValidate=function(d,f){if(typeof d!="object"||!("aborted"in d))return f;let p=o(f)?()=>{f.destroy(new r(void 0,{cause:d.reason}))}:()=>{f[s](new r(void 0,{cause:d.reason}))};return d.aborted?p():(d.addEventListener("abort",p),l(f,()=>d.removeEventListener("abort",p))),f}}),lSt=On((e,n)=>{fn(),hn(),pn();var{StringPrototypeSlice:r,SymbolIterator:i,TypedArrayPrototypeSet:o,Uint8Array:a}=xl(),{Buffer:s}=(Ec(),na(Sc)),{inspect:l}=Ey();n.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(c){let u={data:c,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length}unshift(c){let u={data:c,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length}shift(){if(this.length===0)return;let c=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,c}clear(){this.head=this.tail=null,this.length=0}join(c){if(this.length===0)return"";let u=this.head,d=""+u.data;for(;(u=u.next)!==null;)d+=c+u.data;return d}concat(c){if(this.length===0)return s.alloc(0);let u=s.allocUnsafe(c>>>0),d=this.head,f=0;for(;d;)o(u,d.data,f),f+=d.data.length,d=d.next;return u}consume(c,u){let d=this.head.data;if(c<d.length){let f=d.slice(0,c);return this.head.data=d.slice(c),f}return c===d.length?this.shift():u?this._getString(c):this._getBuffer(c)}first(){return this.head.data}*[i](){for(let c=this.head;c;c=c.next)yield c.data}_getString(c){let u="",d=this.head,f=0;do{let p=d.data;if(c>p.length)u+=p,c-=p.length;else{c===p.length?(u+=p,++f,d.next?this.head=d.next:this.head=this.tail=null):(u+=r(p,0,c),this.head=d,d.data=r(p,c));break}++f}while((d=d.next)!==null);return this.length-=f,u}_getBuffer(c){let u=s.allocUnsafe(c),d=c,f=this.head,p=0;do{let h=f.data;if(c>h.length)o(u,h,d-c),c-=h.length;else{c===h.length?(o(u,h,d-c),++p,f.next?this.head=f.next:this.head=this.tail=null):(o(u,new a(h.buffer,h.byteOffset,c),d-c),this.head=f,f.data=h.slice(c));break}++p}while((f=f.next)!==null);return this.length-=p,u}[Symbol.for("nodejs.util.inspect.custom")](c,u){return l(this,{...u,depth:0,customInspect:!1})}}}),Nle=On((e,n)=>{fn(),hn(),pn();var{MathFloor:r,NumberIsInteger:i}=xl(),{ERR_INVALID_ARG_VALUE:o}=Cd().codes;function a(c,u,d){return c.highWaterMark!=null?c.highWaterMark:u?c[d]:null}function s(c){return c?16:16*1024}function l(c,u,d,f){let p=a(u,f,d);if(p!=null){if(!i(p)||p<0){let h=f?`options.${d}`:"options.highWaterMark";throw new o(h,p)}return r(p)}return s(c.objectMode)}n.exports={getHighWaterMark:l,getDefaultHighWaterMark:s}});function t0e(e){var n=e.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return r===-1&&(r=n),[r,r===n?0:4-r%4]}function cSt(e,n,r){for(var i,o,a=[],s=n;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(Eh[(o=i)>>18&63]+Eh[o>>12&63]+Eh[o>>6&63]+Eh[63&o]);return a.join("")}function Kv(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=new Uint8Array(e);return Object.setPrototypeOf(n,_n.prototype),n}function _n(e,n,r){if(typeof e=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return nne(e)}return U5e(e,n,r)}function U5e(e,n,r){if(typeof e=="string")return function(a,s){if(typeof s=="string"&&s!==""||(s="utf8"),!_n.isEncoding(s))throw new TypeError("Unknown encoding: "+s);var l=0|z5e(a,s),c=Kv(l),u=c.write(a,s);return u!==l&&(c=c.slice(0,u)),c}(e,n);if(ArrayBuffer.isView(e))return FW(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(Xv(e,ArrayBuffer)||e&&Xv(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Xv(e,SharedArrayBuffer)||e&&Xv(e.buffer,SharedArrayBuffer)))return uSt(e,n,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return _n.from(i,n,r);var o=function(a){if(_n.isBuffer(a)){var s=0|Mle(a.length),l=Kv(s);return l.length===0||a.copy(l,0,0,s),l}if(a.length!==void 0)return typeof a.length!="number"||Ple(a.length)?Kv(0):FW(a);if(a.type==="Buffer"&&Array.isArray(a.data))return FW(a.data)}(e);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return _n.from(e[Symbol.toPrimitive]("string"),n,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function H5e(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 nne(e){return H5e(e),Kv(e<0?0:0|Mle(e))}function FW(e){for(var n=e.length<0?0:0|Mle(e.length),r=Kv(n),i=0;i<n;i+=1)r[i]=255&e[i];return r}function uSt(e,n,r){if(n<0||e.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<n+(r||0))throw new RangeError('"length" is outside of buffer bounds');var i;return i=n===void 0&&r===void 0?new Uint8Array(e):r===void 0?new Uint8Array(e,n):new Uint8Array(e,n,r),Object.setPrototypeOf(i,_n.prototype),i}function Mle(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function z5e(e,n){if(_n.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Xv(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 r=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;for(var o=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return rne(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y5e(e).length;default:if(o)return i?-1:rne(e).length;n=(""+n).toLowerCase(),o=!0}}function dSt(e,n,r){var i=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(n>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return bSt(this,n,r);case"utf8":case"utf-8":return G5e(this,n,r);case"ascii":return ySt(this,n,r);case"latin1":case"binary":return _St(this,n,r);case"base64":return vSt(this,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return SSt(this,n,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function cE(e,n,r){var i=e[n];e[n]=e[r],e[r]=i}function n0e(e,n,r,i,o){if(e.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Ple(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if(typeof n=="string"&&(n=_n.from(n,i)),_n.isBuffer(n))return n.length===0?-1:r0e(e,n,r,i,o);if(typeof n=="number")return n&=255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,n,r):Uint8Array.prototype.lastIndexOf.call(e,n,r):r0e(e,[n],r,i,o);throw new TypeError("val must be string, number or Buffer")}function r0e(e,n,r,i,o){var a,s=1,l=e.length,c=n.length;if(i!==void 0&&((i=String(i).toLowerCase())==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||n.length<2)return-1;s=2,l/=2,c/=2,r/=2}function u(h,g){return s===1?h[g]:h.readUInt16BE(g*s)}if(o){var d=-1;for(a=r;a<l;a++)if(u(e,a)===u(n,d===-1?0:a-d)){if(d===-1&&(d=a),a-d+1===c)return d*s}else d!==-1&&(a-=a-d),d=-1}else for(r+c>l&&(r=l-c),a=r;a>=0;a--){for(var f=!0,p=0;p<c;p++)if(u(e,a+p)!==u(n,p)){f=!1;break}if(f)return a}return-1}function fSt(e,n,r,i){r=Number(r)||0;var o=e.length-r;i?(i=Number(i))>o&&(i=o):i=o;var a=n.length;i>a/2&&(i=a/2);for(var s=0;s<i;++s){var l=parseInt(n.substr(2*s,2),16);if(Ple(l))return s;e[r+s]=l}return s}function pSt(e,n,r,i){return k7(rne(n,e.length-r),e,r,i)}function V5e(e,n,r,i){return k7(function(o){for(var a=[],s=0;s<o.length;++s)a.push(255&o.charCodeAt(s));return a}(n),e,r,i)}function hSt(e,n,r,i){return V5e(e,n,r,i)}function gSt(e,n,r,i){return k7(Y5e(n),e,r,i)}function mSt(e,n,r,i){return k7(function(o,a){for(var s,l,c,u=[],d=0;d<o.length&&!((a-=2)<0);++d)s=o.charCodeAt(d),l=s>>8,c=s%256,u.push(c),u.push(l);return u}(n,e.length-r),e,r,i)}function vSt(e,n,r){return n===0&&r===e.length?IF.fromByteArray(e):IF.fromByteArray(e.slice(n,r))}function G5e(e,n,r){r=Math.min(e.length,r);for(var i=[],o=n;o<r;){var a,s,l,c,u=e[o],d=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=r)switch(f){case 1:u<128&&(d=u);break;case 2:(192&(a=e[o+1]))==128&&(c=(31&u)<<6|63&a)>127&&(d=c);break;case 3:a=e[o+1],s=e[o+2],(192&a)==128&&(192&s)==128&&(c=(15&u)<<12|(63&a)<<6|63&s)>2047&&(c<55296||c>57343)&&(d=c);break;case 4:a=e[o+1],s=e[o+2],l=e[o+3],(192&a)==128&&(192&s)==128&&(192&l)==128&&(c=(15&u)<<18|(63&a)<<12|(63&s)<<6|63&l)>65535&&c<1114112&&(d=c)}d===null?(d=65533,f=1):d>65535&&(d-=65536,i.push(d>>>10&1023|55296),d=56320|1023&d),i.push(d),o+=f}return function(p){var h=p.length;if(h<=4096)return String.fromCharCode.apply(String,p);for(var g="",v=0;v<h;)g+=String.fromCharCode.apply(String,p.slice(v,v+=4096));return g}(i)}function ySt(e,n,r){var i="";r=Math.min(e.length,r);for(var o=n;o<r;++o)i+=String.fromCharCode(127&e[o]);return i}function _St(e,n,r){var i="";r=Math.min(e.length,r);for(var o=n;o<r;++o)i+=String.fromCharCode(e[o]);return i}function bSt(e,n,r){var i=e.length;(!n||n<0)&&(n=0),(!r||r<0||r>i)&&(r=i);for(var o="",a=n;a<r;++a)o+=K5e[e[a]];return o}function SSt(e,n,r){for(var i=e.slice(n,r),o="",a=0;a<i.length;a+=2)o+=String.fromCharCode(i[a]+256*i[a+1]);return o}function Fl(e,n,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+n>r)throw new RangeError("Trying to access beyond buffer length")}function zu(e,n,r,i,o,a){if(!_n.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>o||n<a)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}function W5e(e,n,r,i,o,a){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function i0e(e,n,r,i,o){return n=+n,r>>>=0,o||W5e(e,0,r,4),BE.write(e,n,r,i,23,4),r+4}function o0e(e,n,r,i,o){return n=+n,r>>>=0,o||W5e(e,0,r,8),BE.write(e,n,r,i,52,8),r+8}function rne(e,n){var r;n=n||1/0;for(var i=e.length,o=null,a=[],s=0;s<i;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319){(n-=3)>-1&&a.push(239,191,189);continue}if(s+1===i){(n-=3)>-1&&a.push(239,191,189);continue}o=r;continue}if(r<56320){(n-=3)>-1&&a.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(n-=3)>-1&&a.push(239,191,189);if(o=null,r<128){if((n-=1)<0)break;a.push(r)}else if(r<2048){if((n-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((n-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function Y5e(e){return IF.toByteArray(function(n){if((n=(n=n.split("=")[0]).trim().replace(q5e,"")).length<2)return"";for(;n.length%4!=0;)n+="=";return n}(e))}function k7(e,n,r,i){for(var o=0;o<i&&!(o+r>=n.length||o>=e.length);++o)n[o+r]=e[o];return o}function Xv(e,n){return e instanceof n||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===n.name}function Ple(e){return e!=e}function a0e(e,n){for(var r in e)n[r]=e[r]}function uE(e,n,r){return ph(e,n,r)}function HN(e){var n;switch(this.encoding=function(r){var i=function(o){if(!o)return"utf8";for(var a;;)switch(o){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 o;default:if(a)return;o=(""+o).toLowerCase(),a=!0}}(r);if(typeof i!="string"&&(NF.isEncoding===ine||!ine(r)))throw new Error("Unknown encoding: "+r);return i||r}(e),this.encoding){case"utf16le":this.text=CSt,this.end=wSt,n=4;break;case"utf8":this.fillLast=ESt,n=4;break;case"base64":this.text=xSt,this.end=TSt,n=3;break;default:return this.write=OSt,this.end=RSt,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=NF.allocUnsafe(n)}function BW(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function ESt(e){var n=this.lastTotal-this.lastNeed,r=function(i,o,a){if((192&o[0])!=128)return i.lastNeed=0,"<22>";if(i.lastNeed>1&&o.length>1){if((192&o[1])!=128)return i.lastNeed=1,"<22>";if(i.lastNeed>2&&o.length>2&&(192&o[2])!=128)return i.lastNeed=2,"<22>"}}(this,e);return r!==void 0?r:this.lastNeed<=e.length?(e.copy(this.lastChar,n,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,n,0,e.length),this.lastNeed-=e.length,void 0)}function CSt(e,n){if((e.length-n)%2==0){var r=e.toString("utf16le",n);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",n,e.length-1)}function wSt(e){var n=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return n+this.lastChar.toString("utf16le",0,r)}return n}function xSt(e,n){var r=(e.length-n)%3;return r===0?e.toString("base64",n):(this.lastNeed=3-r,this.lastTotal=3,r===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",n,e.length-r))}function TSt(e){var n=e&&e.length?this.write(e):"";return this.lastNeed?n+this.lastChar.toString("base64",0,3-this.lastNeed):n}function OSt(e){return e.toString(this.encoding)}function RSt(e){return e&&e.length?this.write(e):""}var s0e,Eh,Ld,l0e,u3,dE,c0e,u0e,Bg,IF,BE,jW,q5e,K5e,zN,VN,ph,d0e,nT,NF,ine,f0e=bc(()=>{for(fn(),hn(),pn(),s0e={byteLength:function(e){var n=t0e(e),r=n[0],i=n[1];return 3*(r+i)/4-i},toByteArray:function(e){var n,r,i=t0e(e),o=i[0],a=i[1],s=new l0e(function(u,d,f){return 3*(d+f)/4-f}(0,o,a)),l=0,c=a>0?o-4:o;for(r=0;r<c;r+=4)n=Ld[e.charCodeAt(r)]<<18|Ld[e.charCodeAt(r+1)]<<12|Ld[e.charCodeAt(r+2)]<<6|Ld[e.charCodeAt(r+3)],s[l++]=n>>16&255,s[l++]=n>>8&255,s[l++]=255&n;return a===2&&(n=Ld[e.charCodeAt(r)]<<2|Ld[e.charCodeAt(r+1)]>>4,s[l++]=255&n),a===1&&(n=Ld[e.charCodeAt(r)]<<10|Ld[e.charCodeAt(r+1)]<<4|Ld[e.charCodeAt(r+2)]>>2,s[l++]=n>>8&255,s[l++]=255&n),s},fromByteArray:function(e){for(var n,r=e.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(cSt(e,a,a+16383>s?s:a+16383));return i===1?(n=e[r-1],o.push(Eh[n>>2]+Eh[n<<4&63]+"==")):i===2&&(n=(e[r-2]<<8)+e[r-1],o.push(Eh[n>>10]+Eh[n>>4&63]+Eh[n<<2&63]+"=")),o.join("")}},Eh=[],Ld=[],l0e=typeof Uint8Array<"u"?Uint8Array:Array,u3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dE=0,c0e=u3.length;dE<c0e;++dE)Eh[dE]=u3[dE],Ld[u3.charCodeAt(dE)]=dE;Ld[45]=62,Ld[95]=63,u0e={read:function(e,n,r,i,o){var a,s,l=8*o-i-1,c=(1<<l)-1,u=c>>1,d=-7,f=r?o-1:0,p=r?-1:1,h=e[n+f];for(f+=p,a=h&(1<<-d)-1,h>>=-d,d+=l;d>0;a=256*a+e[n+f],f+=p,d-=8);for(s=a&(1<<-d)-1,a>>=-d,d+=i;d>0;s=256*s+e[n+f],f+=p,d-=8);if(a===0)a=1-u;else{if(a===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,i),a-=u}return(h?-1:1)*s*Math.pow(2,a-i)},write:function(e,n,r,i,o,a){var s,l,c,u=8*a-o-1,d=(1<<u)-1,f=d>>1,p=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:a-1,g=i?1:-1,v=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(l=isNaN(n)?1:0,s=d):(s=Math.floor(Math.log(n)/Math.LN2),n*(c=Math.pow(2,-s))<1&&(s--,c*=2),(n+=s+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=d?(l=0,s=d):s+f>=1?(l=(n*c-1)*Math.pow(2,o),s+=f):(l=n*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+h]=255&l,h+=g,l/=256,o-=8);for(s=s<<o|l,u+=o;u>0;e[r+h]=255&s,h+=g,s/=256,u-=8);e[r+h-g]|=128*v}},Bg={},IF=s0e,BE=u0e,jW=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,Bg.Buffer=_n,Bg.SlowBuffer=function(e){return+e!=e&&(e=0),_n.alloc(+e)},Bg.INSPECT_MAX_BYTES=50,Bg.kMaxLength=2147483647,_n.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(e,n),e.foo()===42}catch{return!1}}(),_n.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(_n.prototype,"parent",{enumerable:!0,get:function(){if(_n.isBuffer(this))return this.buffer}}),Object.defineProperty(_n.prototype,"offset",{enumerable:!0,get:function(){if(_n.isBuffer(this))return this.byteOffset}}),_n.poolSize=8192,_n.from=function(e,n,r){return U5e(e,n,r)},Object.setPrototypeOf(_n.prototype,Uint8Array.prototype),Object.setPrototypeOf(_n,Uint8Array),_n.alloc=function(e,n,r){return function(i,o,a){return H5e(i),i<=0?Kv(i):o!==void 0?typeof a=="string"?Kv(i).fill(o,a):Kv(i).fill(o):Kv(i)}(e,n,r)},_n.allocUnsafe=function(e){return nne(e)},_n.allocUnsafeSlow=function(e){return nne(e)},_n.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==_n.prototype},_n.compare=function(e,n){if(Xv(e,Uint8Array)&&(e=_n.from(e,e.offset,e.byteLength)),Xv(n,Uint8Array)&&(n=_n.from(n,n.offset,n.byteLength)),!_n.isBuffer(e)||!_n.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===n)return 0;for(var r=e.length,i=n.length,o=0,a=Math.min(r,i);o<a;++o)if(e[o]!==n[o]){r=e[o],i=n[o];break}return r<i?-1:i<r?1:0},_n.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}},_n.concat=function(e,n){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return _n.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<e.length;++r)n+=e[r].length;var i=_n.allocUnsafe(n),o=0;for(r=0;r<e.length;++r){var a=e[r];if(Xv(a,Uint8Array)&&(a=_n.from(a)),!_n.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,o),o+=a.length}return i},_n.byteLength=z5e,_n.prototype._isBuffer=!0,_n.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 n=0;n<e;n+=2)cE(this,n,n+1);return this},_n.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 n=0;n<e;n+=4)cE(this,n,n+3),cE(this,n+1,n+2);return this},_n.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 n=0;n<e;n+=8)cE(this,n,n+7),cE(this,n+1,n+6),cE(this,n+2,n+5),cE(this,n+3,n+4);return this},_n.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?G5e(this,0,e):dSt.apply(this,arguments)},_n.prototype.toLocaleString=_n.prototype.toString,_n.prototype.equals=function(e){if(!_n.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||_n.compare(this,e)===0},_n.prototype.inspect=function(){var e="",n=Bg.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},jW&&(_n.prototype[jW]=_n.prototype.inspect),_n.prototype.compare=function(e,n,r,i,o){if(Xv(e,Uint8Array)&&(e=_n.from(e,e.offset,e.byteLength)),!_n.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(n===void 0&&(n=0),r===void 0&&(r=e?e.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),n<0||r>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&n>=r)return 0;if(i>=o)return-1;if(n>=r)return 1;if(this===e)return 0;for(var a=(o>>>=0)-(i>>>=0),s=(r>>>=0)-(n>>>=0),l=Math.min(a,s),c=this.slice(i,o),u=e.slice(n,r),d=0;d<l;++d)if(c[d]!==u[d]){a=c[d],s=u[d];break}return a<s?-1:s<a?1:0},_n.prototype.includes=function(e,n,r){return this.indexOf(e,n,r)!==-1},_n.prototype.indexOf=function(e,n,r){return n0e(this,e,n,r,!0)},_n.prototype.lastIndexOf=function(e,n,r){return n0e(this,e,n,r,!1)},_n.prototype.write=function(e,n,r,i){if(n===void 0)i="utf8",r=this.length,n=0;else if(r===void 0&&typeof n=="string")i=n,r=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n>>>=0,isFinite(r)?(r>>>=0,i===void 0&&(i="utf8")):(i=r,r=void 0)}var o=this.length-n;if((r===void 0||r>o)&&(r=o),e.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return fSt(this,e,n,r);case"utf8":case"utf-8":return pSt(this,e,n,r);case"ascii":return V5e(this,e,n,r);case"latin1":case"binary":return hSt(this,e,n,r);case"base64":return gSt(this,e,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mSt(this,e,n,r);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},_n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},_n.prototype.slice=function(e,n){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(n=n===void 0?r:~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),n<e&&(n=e);var i=this.subarray(e,n);return Object.setPrototypeOf(i,_n.prototype),i},_n.prototype.readUIntLE=function(e,n,r){e>>>=0,n>>>=0,r||Fl(e,n,this.length);for(var i=this[e],o=1,a=0;++a<n&&(o*=256);)i+=this[e+a]*o;return i},_n.prototype.readUIntBE=function(e,n,r){e>>>=0,n>>>=0,r||Fl(e,n,this.length);for(var i=this[e+--n],o=1;n>0&&(o*=256);)i+=this[e+--n]*o;return i},_n.prototype.readUInt8=function(e,n){return e>>>=0,n||Fl(e,1,this.length),this[e]},_n.prototype.readUInt16LE=function(e,n){return e>>>=0,n||Fl(e,2,this.length),this[e]|this[e+1]<<8},_n.prototype.readUInt16BE=function(e,n){return e>>>=0,n||Fl(e,2,this.length),this[e]<<8|this[e+1]},_n.prototype.readUInt32LE=function(e,n){return e>>>=0,n||Fl(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},_n.prototype.readUInt32BE=function(e,n){return e>>>=0,n||Fl(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},_n.prototype.readIntLE=function(e,n,r){e>>>=0,n>>>=0,r||Fl(e,n,this.length);for(var i=this[e],o=1,a=0;++a<n&&(o*=256);)i+=this[e+a]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*n)),i},_n.prototype.readIntBE=function(e,n,r){e>>>=0,n>>>=0,r||Fl(e,n,this.length);for(var i=n,o=1,a=this[e+--i];i>0&&(o*=256);)a+=this[e+--i]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*n)),a},_n.prototype.readInt8=function(e,n){return e>>>=0,n||Fl(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},_n.prototype.readInt16LE=function(e,n){e>>>=0,n||Fl(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},_n.prototype.readInt16BE=function(e,n){e>>>=0,n||Fl(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},_n.prototype.readInt32LE=function(e,n){return e>>>=0,n||Fl(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},_n.prototype.readInt32BE=function(e,n){return e>>>=0,n||Fl(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},_n.prototype.readFloatLE=function(e,n){return e>>>=0,n||Fl(e,4,this.length),BE.read(this,e,!0,23,4)},_n.prototype.readFloatBE=function(e,n){return e>>>=0,n||Fl(e,4,this.length),BE.read(this,e,!1,23,4)},_n.prototype.readDoubleLE=function(e,n){return e>>>=0,n||Fl(e,8,this.length),BE.read(this,e,!0,52,8)},_n.prototype.readDoubleBE=function(e,n){return e>>>=0,n||Fl(e,8,this.length),BE.read(this,e,!1,52,8)},_n.prototype.writeUIntLE=function(e,n,r,i){e=+e,n>>>=0,r>>>=0,i||zu(this,e,n,r,Math.pow(2,8*r)-1,0);var o=1,a=0;for(this[n]=255&e;++a<r&&(o*=256);)this[n+a]=e/o&255;return n+r},_n.prototype.writeUIntBE=function(e,n,r,i){e=+e,n>>>=0,r>>>=0,i||zu(this,e,n,r,Math.pow(2,8*r)-1,0);var o=r-1,a=1;for(this[n+o]=255&e;--o>=0&&(a*=256);)this[n+o]=e/a&255;return n+r},_n.prototype.writeUInt8=function(e,n,r){return e=+e,n>>>=0,r||zu(this,e,n,1,255,0),this[n]=255&e,n+1},_n.prototype.writeUInt16LE=function(e,n,r){return e=+e,n>>>=0,r||zu(this,e,n,2,65535,0),this[n]=255&e,this[n+1]=e>>>8,n+2},_n.prototype.writeUInt16BE=function(e,n,r){return e=+e,n>>>=0,r||zu(this,e,n,2,65535,0),this[n]=e>>>8,this[n+1]=255&e,n+2},_n.prototype.writeUInt32LE=function(e,n,r){return e=+e,n>>>=0,r||zu(this,e,n,4,4294967295,0),this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e,n+4},_n.prototype.writeUInt32BE=function(e,n,r){return e=+e,n>>>=0,r||zu(this,e,n,4,4294967295,0),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e,n+4},_n.prototype.writeIntLE=function(e,n,r,i){if(e=+e,n>>>=0,!i){var o=Math.pow(2,8*r-1);zu(this,e,n,r,o-1,-o)}var a=0,s=1,l=0;for(this[n]=255&e;++a<r&&(s*=256);)e<0&&l===0&&this[n+a-1]!==0&&(l=1),this[n+a]=(e/s>>0)-l&255;return n+r},_n.prototype.writeIntBE=function(e,n,r,i){if(e=+e,n>>>=0,!i){var o=Math.pow(2,8*r-1);zu(this,e,n,r,o-1,-o)}var a=r-1,s=1,l=0;for(this[n+a]=255&e;--a>=0&&(s*=256);)e<0&&l===0&&this[n+a+1]!==0&&(l=1),this[n+a]=(e/s>>0)-l&255;return n+r},_n.prototype.writeInt8=function(e,n,r){return e=+e,n>>>=0,r||zu(this,e,n,1,127,-128),e<0&&(e=255+e+1),this[n]=255&e,n+1},_n.prototype.writeInt16LE=function(e,n,r){return e=+e,n>>>=0,r||zu(this,e,n,2,32767,-32768),this[n]=255&e,this[n+1]=e>>>8,n+2},_n.prototype.writeInt16BE=function(e,n,r){return e=+e,n>>>=0,r||zu(this,e,n,2,32767,-32768),this[n]=e>>>8,this[n+1]=255&e,n+2},_n.prototype.writeInt32LE=function(e,n,r){return e=+e,n>>>=0,r||zu(this,e,n,4,2147483647,-2147483648),this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24,n+4},_n.prototype.writeInt32BE=function(e,n,r){return e=+e,n>>>=0,r||zu(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e,n+4},_n.prototype.writeFloatLE=function(e,n,r){return i0e(this,e,n,!0,r)},_n.prototype.writeFloatBE=function(e,n,r){return i0e(this,e,n,!1,r)},_n.prototype.writeDoubleLE=function(e,n,r){return o0e(this,e,n,!0,r)},_n.prototype.writeDoubleBE=function(e,n,r){return o0e(this,e,n,!1,r)},_n.prototype.copy=function(e,n,r,i){if(!_n.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),i||i===0||(i=this.length),n>=e.length&&(n=e.length),n||(n=0),i>0&&i<r&&(i=r),i===r||e.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-n<i-r&&(i=e.length-n+r);var o=i-r;if(this===e&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(n,r,i);else if(this===e&&r<n&&n<i)for(var a=o-1;a>=0;--a)e[a+n]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),n);return o},_n.prototype.fill=function(e,n,r,i){if(typeof e=="string"){if(typeof n=="string"?(i=n,n=0,r=this.length):typeof r=="string"&&(i=r,r=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!_n.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){var o=e.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(e=o)}}else typeof e=="number"?e&=255:typeof e=="boolean"&&(e=Number(e));if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;var a;if(n>>>=0,r=r===void 0?this.length:r>>>0,e||(e=0),typeof e=="number")for(a=n;a<r;++a)this[a]=e;else{var s=_n.isBuffer(e)?e:_n.from(e,i),l=s.length;if(l===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-n;++a)this[a+n]=s[a%l]}return this},q5e=/[^+/0-9A-Za-z-_]/g,K5e=function(){for(var e=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)e[r+i]="0123456789abcdef"[n]+"0123456789abcdef"[i];return e}(),Bg.Buffer,Bg.INSPECT_MAX_BYTES,Bg.kMaxLength,zN={},VN=Bg,ph=VN.Buffer,ph.from&&ph.alloc&&ph.allocUnsafe&&ph.allocUnsafeSlow?zN=VN:(a0e(VN,zN),zN.Buffer=uE),uE.prototype=Object.create(ph.prototype),a0e(ph,uE),uE.from=function(e,n,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ph(e,n,r)},uE.alloc=function(e,n,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=ph(e);return n!==void 0?typeof r=="string"?i.fill(n,r):i.fill(n):i.fill(0),i},uE.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ph(e)},uE.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return VN.SlowBuffer(e)},d0e=zN,nT={},NF=d0e.Buffer,ine=NF.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}},nT.StringDecoder=HN,HN.prototype.write=function(e){if(e.length===0)return"";var n,r;if(this.lastNeed){if((n=this.fillLast(e))===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?n?n+this.text(e,r):this.text(e,r):n||""},HN.prototype.end=function(e){var n=e&&e.length?this.write(e):"";return this.lastNeed?n+"<22>":n},HN.prototype.text=function(e,n){var r=function(o,a,s){var l=a.length-1;if(l<s)return 0;var c=BW(a[l]);return c>=0?(c>0&&(o.lastNeed=c-1),c):--l<s||c===-2?0:(c=BW(a[l]))>=0?(c>0&&(o.lastNeed=c-2),c):--l<s||c===-2?0:(c=BW(a[l]))>=0?(c>0&&(c===2?c=0:o.lastNeed=c-3),c):0}(this,e,n);if(!this.lastNeed)return e.toString("utf8",n);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",n,i)},HN.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},nT.StringDecoder,nT.StringDecoder}),X5e={};GC(X5e,{StringDecoder:()=>Q5e,default:()=>nT});var Q5e,ISt=bc(()=>{fn(),hn(),pn(),f0e(),f0e(),Q5e=nT.StringDecoder}),Z5e=On((e,n)=>{fn(),hn(),pn();var r=WC(),{PromisePrototypeThen:i,SymbolAsyncIterator:o,SymbolIterator:a}=xl(),{Buffer:s}=(Ec(),na(Sc)),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:c}=Cd().codes;function u(d,f,p){let h;if(typeof f=="string"||f instanceof s)return new d({objectMode:!0,...p,read(){this.push(f),this.push(null)}});let g;if(f&&f[o])g=!0,h=f[o]();else if(f&&f[a])g=!1,h=f[a]();else throw new l("iterable",["Iterable"],f);let v=new d({objectMode:!0,highWaterMark:1,...p}),y=!1;v._read=function(){y||(y=!0,S())},v._destroy=function(b,E){i(_(b),()=>r.nextTick(E,b),w=>r.nextTick(E,w||b))};async function _(b){let E=b!=null,w=typeof h.throw=="function";if(E&&w){let{value:C,done:x}=await h.throw(b);if(await C,x)return}if(typeof h.return=="function"){let{value:C}=await h.return();await C}}async function S(){for(;;){try{let{value:b,done:E}=g?await h.next():h.next();if(E)v.push(null);else{let w=b&&typeof b.then=="function"?await b:b;if(w===null)throw y=!1,new c;if(v.push(w))continue;y=!1}}catch(b){v.destroy(b)}break}}return v}n.exports=u}),L7=On((e,n)=>{fn(),hn(),pn();var r=WC(),{ArrayPrototypeIndexOf:i,NumberIsInteger:o,NumberIsNaN:a,NumberParseInt:s,ObjectDefineProperties:l,ObjectKeys:c,ObjectSetPrototypeOf:u,Promise:d,SafeSet:f,SymbolAsyncIterator:p,Symbol:h}=xl();n.exports=H,H.ReadableState=K;var{EventEmitter:g}=(KR(),na(YC)),{Stream:v,prependListener:y}=Ile(),{Buffer:_}=(Ec(),na(Sc)),{addAbortSignal:S}=D7(),b=K0(),E=Ey().debuglog("stream",J=>{E=J}),w=lSt(),C=qR(),{getHighWaterMark:x,getDefaultHighWaterMark:T}=Nle(),{aggregateTwoErrors:R,codes:{ERR_INVALID_ARG_TYPE:O,ERR_METHOD_NOT_IMPLEMENTED:M,ERR_OUT_OF_RANGE:P,ERR_STREAM_PUSH_AFTER_EOF:k,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:$}}=Cd(),{validateObject:U}=A7(),z=h("kPaused"),{StringDecoder:D}=(ISt(),na(X5e)),B=Z5e();u(H.prototype,v.prototype),u(H,v);var Y=()=>{},{errorOrDestroy:q}=C;function K(J,ae,Se){typeof Se!="boolean"&&(Se=ae instanceof Cy()),this.objectMode=!!(J&&J.objectMode),Se&&(this.objectMode=this.objectMode||!!(J&&J.readableObjectMode)),this.highWaterMark=J?x(this,J,"readableHighWaterMark",Se):T(!1),this.buffer=new w,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[z]=null,this.errorEmitted=!1,this.emitClose=!J||J.emitClose!==!1,this.autoDestroy=!J||J.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=J&&J.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,J&&J.encoding&&(this.decoder=new D(J.encoding),this.encoding=J.encoding)}function H(J){if(!(this instanceof H))return new H(J);let ae=this instanceof Cy();this._readableState=new K(J,this,ae),J&&(typeof J.read=="function"&&(this._read=J.read),typeof J.destroy=="function"&&(this._destroy=J.destroy),typeof J.construct=="function"&&(this._construct=J.construct),J.signal&&!ae&&S(J.signal,this)),v.call(this,J),C.construct(this,()=>{this._readableState.needReadable&&de(this,this._readableState)})}H.prototype.destroy=C.destroy,H.prototype._undestroy=C.undestroy,H.prototype._destroy=function(J,ae){ae(J)},H.prototype[g.captureRejectionSymbol]=function(J){this.destroy(J)},H.prototype.push=function(J,ae){return G(this,J,ae,!1)},H.prototype.unshift=function(J,ae){return G(this,J,ae,!0)};function G(J,ae,Se,xe){E("readableAddChunk",ae);let ue=J._readableState,Me;if(ue.objectMode||(typeof ae=="string"?(Se=Se||ue.defaultEncoding,ue.encoding!==Se&&(xe&&ue.encoding?ae=_.from(ae,Se).toString(ue.encoding):(ae=_.from(ae,Se),Se=""))):ae instanceof _?Se="":v._isUint8Array(ae)?(ae=v._uint8ArrayToBuffer(ae),Se=""):ae!=null&&(Me=new O("chunk",["string","Buffer","Uint8Array"],ae))),Me)q(J,Me);else if(ae===null)ue.reading=!1,F(J,ue);else if(ue.objectMode||ae&&ae.length>0)if(xe)if(ue.endEmitted)q(J,new $);else{if(ue.destroyed||ue.errored)return!1;Q(J,ue,ae,!0)}else if(ue.ended)q(J,new k);else{if(ue.destroyed||ue.errored)return!1;ue.reading=!1,ue.decoder&&!Se?(ae=ue.decoder.write(ae),ue.objectMode||ae.length!==0?Q(J,ue,ae,!1):de(J,ue)):Q(J,ue,ae,!1)}else xe||(ue.reading=!1,de(J,ue));return!ue.ended&&(ue.length<ue.highWaterMark||ue.length===0)}function Q(J,ae,Se,xe){ae.flowing&&ae.length===0&&!ae.sync&&J.listenerCount("data")>0?(ae.multiAwaitDrain?ae.awaitDrainWriters.clear():ae.awaitDrainWriters=null,ae.dataEmitted=!0,J.emit("data",Se)):(ae.length+=ae.objectMode?1:Se.length,xe?ae.buffer.unshift(Se):ae.buffer.push(Se),ae.needReadable&&te(J)),de(J,ae)}H.prototype.isPaused=function(){let J=this._readableState;return J[z]===!0||J.flowing===!1},H.prototype.setEncoding=function(J){let ae=new D(J);this._readableState.decoder=ae,this._readableState.encoding=this._readableState.decoder.encoding;let Se=this._readableState.buffer,xe="";for(let ue of Se)xe+=ae.write(ue);return Se.clear(),xe!==""&&Se.push(xe),this._readableState.length=xe.length,this};var le=1073741824;function Z(J){if(J>le)throw new P("size","<= 1GiB",J);return J--,J|=J>>>1,J|=J>>>2,J|=J>>>4,J|=J>>>8,J|=J>>>16,J++,J}function j(J,ae){return J<=0||ae.length===0&&ae.ended?0:ae.objectMode?1:a(J)?ae.flowing&&ae.length?ae.buffer.first().length:ae.length:J<=ae.length?J:ae.ended?ae.length:0}H.prototype.read=function(J){E("read",J),J===void 0?J=NaN:o(J)||(J=s(J,10));let ae=this._readableState,Se=J;if(J>ae.highWaterMark&&(ae.highWaterMark=Z(J)),J!==0&&(ae.emittedReadable=!1),J===0&&ae.needReadable&&((ae.highWaterMark!==0?ae.length>=ae.highWaterMark:ae.length>0)||ae.ended))return E("read: emitReadable",ae.length,ae.ended),ae.length===0&&ae.ended?Te(this):te(this),null;if(J=j(J,ae),J===0&&ae.ended)return ae.length===0&&Te(this),null;let xe=ae.needReadable;if(E("need readable",xe),(ae.length===0||ae.length-J<ae.highWaterMark)&&(xe=!0,E("length less than watermark",xe)),ae.ended||ae.reading||ae.destroyed||ae.errored||!ae.constructed)xe=!1,E("reading, ended or constructing",xe);else if(xe){E("do read"),ae.reading=!0,ae.sync=!0,ae.length===0&&(ae.needReadable=!0);try{this._read(ae.highWaterMark)}catch(Me){q(this,Me)}ae.sync=!1,ae.reading||(J=j(Se,ae))}let ue;return J>0?ue=Re(J,ae):ue=null,ue===null?(ae.needReadable=ae.length<=ae.highWaterMark,J=0):(ae.length-=J,ae.multiAwaitDrain?ae.awaitDrainWriters.clear():ae.awaitDrainWriters=null),ae.length===0&&(ae.ended||(ae.needReadable=!0),Se!==J&&ae.ended&&Te(this)),ue!==null&&!ae.errorEmitted&&!ae.closeEmitted&&(ae.dataEmitted=!0,this.emit("data",ue)),ue};function F(J,ae){if(E("onEofChunk"),!ae.ended){if(ae.decoder){let Se=ae.decoder.end();Se&&Se.length&&(ae.buffer.push(Se),ae.length+=ae.objectMode?1:Se.length)}ae.ended=!0,ae.sync?te(J):(ae.needReadable=!1,ae.emittedReadable=!0,oe(J))}}function te(J){let ae=J._readableState;E("emitReadable",ae.needReadable,ae.emittedReadable),ae.needReadable=!1,ae.emittedReadable||(E("emitReadable",ae.flowing),ae.emittedReadable=!0,r.nextTick(oe,J))}function oe(J){let ae=J._readableState;E("emitReadable_",ae.destroyed,ae.length,ae.ended),!ae.destroyed&&!ae.errored&&(ae.length||ae.ended)&&(J.emit("readable"),ae.emittedReadable=!1),ae.needReadable=!ae.flowing&&!ae.ended&&ae.length<=ae.highWaterMark,De(J)}function de(J,ae){!ae.readingMore&&ae.constructed&&(ae.readingMore=!0,r.nextTick(pe,J,ae))}function pe(J,ae){for(;!ae.reading&&!ae.ended&&(ae.length<ae.highWaterMark||ae.flowing&&ae.length===0);){let Se=ae.length;if(E("maybeReadMore read 0"),J.read(0),Se===ae.length)break}ae.readingMore=!1}H.prototype._read=function(J){throw new M("_read()")},H.prototype.pipe=function(J,ae){let Se=this,xe=this._readableState;xe.pipes.length===1&&(xe.multiAwaitDrain||(xe.multiAwaitDrain=!0,xe.awaitDrainWriters=new f(xe.awaitDrainWriters?[xe.awaitDrainWriters]:[]))),xe.pipes.push(J),E("pipe count=%d opts=%j",xe.pipes.length,ae);let ue=(!ae||ae.end!==!1)&&J!==r.stdout&&J!==r.stderr?$e:at;xe.endEmitted?r.nextTick(ue):Se.once("end",ue),J.on("unpipe",Me);function Me(pt,Ct){E("onunpipe"),pt===Se&&Ct&&Ct.hasUnpiped===!1&&(Ct.hasUnpiped=!0,st())}function $e(){E("onend"),J.end()}let ge,Ve=!1;function st(){E("cleanup"),J.removeListener("close",Ze),J.removeListener("finish",bt),ge&&J.removeListener("drain",ge),J.removeListener("error",Xe),J.removeListener("unpipe",Me),Se.removeListener("end",$e),Se.removeListener("end",at),Se.removeListener("data",ot),Ve=!0,ge&&xe.awaitDrainWriters&&(!J._writableState||J._writableState.needDrain)&&ge()}function Je(){Ve||(xe.pipes.length===1&&xe.pipes[0]===J?(E("false write response, pause",0),xe.awaitDrainWriters=J,xe.multiAwaitDrain=!1):xe.pipes.length>1&&xe.pipes.includes(J)&&(E("false write response, pause",xe.awaitDrainWriters.size),xe.awaitDrainWriters.add(J)),Se.pause()),ge||(ge=me(Se,J),J.on("drain",ge))}Se.on("data",ot);function ot(pt){E("ondata");let Ct=J.write(pt);E("dest.write",Ct),Ct===!1&&Je()}function Xe(pt){if(E("onerror",pt),at(),J.removeListener("error",Xe),J.listenerCount("error")===0){let Ct=J._writableState||J._readableState;Ct&&!Ct.errorEmitted?q(J,pt):J.emit("error",pt)}}y(J,"error",Xe);function Ze(){J.removeListener("finish",bt),at()}J.once("close",Ze);function bt(){E("onfinish"),J.removeListener("close",Ze),at()}J.once("finish",bt);function at(){E("unpipe"),Se.unpipe(J)}return J.emit("pipe",Se),J.writableNeedDrain===!0?xe.flowing&&Je():xe.flowing||(E("pipe resume"),Se.resume()),J};function me(J,ae){return function(){let Se=J._readableState;Se.awaitDrainWriters===ae?(E("pipeOnDrain",1),Se.awaitDrainWriters=null):Se.multiAwaitDrain&&(E("pipeOnDrain",Se.awaitDrainWriters.size),Se.awaitDrainWriters.delete(ae)),(!Se.awaitDrainWriters||Se.awaitDrainWriters.size===0)&&J.listenerCount("data")&&J.resume()}}H.prototype.unpipe=function(J){let ae=this._readableState,Se={hasUnpiped:!1};if(ae.pipes.length===0)return this;if(!J){let ue=ae.pipes;ae.pipes=[],this.pause();for(let Me=0;Me<ue.length;Me++)ue[Me].emit("unpipe",this,{hasUnpiped:!1});return this}let xe=i(ae.pipes,J);return xe===-1?this:(ae.pipes.splice(xe,1),ae.pipes.length===0&&this.pause(),J.emit("unpipe",this,Se),this)},H.prototype.on=function(J,ae){let Se=v.prototype.on.call(this,J,ae),xe=this._readableState;return J==="data"?(xe.readableListening=this.listenerCount("readable")>0,xe.flowing!==!1&&this.resume()):J==="readable"&&!xe.endEmitted&&!xe.readableListening&&(xe.readableListening=xe.needReadable=!0,xe.flowing=!1,xe.emittedReadable=!1,E("on readable",xe.length,xe.reading),xe.length?te(this):xe.reading||r.nextTick(he,this)),Se},H.prototype.addListener=H.prototype.on,H.prototype.removeListener=function(J,ae){let Se=v.prototype.removeListener.call(this,J,ae);return J==="readable"&&r.nextTick(ve,this),Se},H.prototype.off=H.prototype.removeListener,H.prototype.removeAllListeners=function(J){let ae=v.prototype.removeAllListeners.apply(this,arguments);return(J==="readable"||J===void 0)&&r.nextTick(ve,this),ae};function ve(J){let ae=J._readableState;ae.readableListening=J.listenerCount("readable")>0,ae.resumeScheduled&&ae[z]===!1?ae.flowing=!0:J.listenerCount("data")>0?J.resume():ae.readableListening||(ae.flowing=null)}function he(J){E("readable nexttick read 0"),J.read(0)}H.prototype.resume=function(){let J=this._readableState;return J.flowing||(E("resume"),J.flowing=!J.readableListening,be(this,J)),J[z]=!1,this};function be(J,ae){ae.resumeScheduled||(ae.resumeScheduled=!0,r.nextTick(we,J,ae))}function we(J,ae){E("resume",ae.reading),ae.reading||J.read(0),ae.resumeScheduled=!1,J.emit("resume"),De(J),ae.flowing&&!ae.reading&&J.read(0)}H.prototype.pause=function(){return E("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(E("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[z]=!0,this};function De(J){let ae=J._readableState;for(E("flow",ae.flowing);ae.flowing&&J.read()!==null;);}H.prototype.wrap=function(J){let ae=!1;J.on("data",xe=>{!this.push(xe)&&J.pause&&(ae=!0,J.pause())}),J.on("end",()=>{this.push(null)}),J.on("error",xe=>{q(this,xe)}),J.on("close",()=>{this.destroy()}),J.on("destroy",()=>{this.destroy()}),this._read=()=>{ae&&J.resume&&(ae=!1,J.resume())};let Se=c(J);for(let xe=1;xe<Se.length;xe++){let ue=Se[xe];this[ue]===void 0&&typeof J[ue]=="function"&&(this[ue]=J[ue].bind(J))}return this},H.prototype[p]=function(){return Ae(this)},H.prototype.iterator=function(J){return J!==void 0&&U(J,"options"),Ae(this,J)};function Ae(J,ae){typeof J.read!="function"&&(J=H.wrap(J,{objectMode:!0}));let Se=Ee(J,ae);return Se.stream=J,Se}async function*Ee(J,ae){let Se=Y;function xe($e){this===J?(Se(),Se=Y):Se=$e}J.on("readable",xe);let ue,Me=b(J,{writable:!1},$e=>{ue=$e?R(ue,$e):null,Se(),Se=Y});try{for(;;){let $e=J.destroyed?null:J.read();if($e!==null)yield $e;else{if(ue)throw ue;if(ue===null)return;await new d(xe)}}}catch($e){throw ue=R(ue,$e),ue}finally{(ue||(ae==null?void 0:ae.destroyOnReturn)!==!1)&&(ue===void 0||J._readableState.autoDestroy)?C.destroyer(J,null):(J.off("readable",xe),Me())}}l(H.prototype,{readable:{__proto__:null,get(){let J=this._readableState;return!!J&&J.readable!==!1&&!J.destroyed&&!J.errorEmitted&&!J.endEmitted},set(J){this._readableState&&(this._readableState.readable=!!J)}},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(J){this._readableState&&(this._readableState.flowing=J)}},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(J){this._readableState&&(this._readableState.destroyed=J)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),l(K.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[z]!==!1},set(J){this[z]=!!J}}}),H._fromList=Re;function Re(J,ae){if(ae.length===0)return null;let Se;return ae.objectMode?Se=ae.buffer.shift():!J||J>=ae.length?(ae.decoder?Se=ae.buffer.join(""):ae.buffer.length===1?Se=ae.buffer.first():Se=ae.buffer.concat(ae.length),ae.buffer.clear()):Se=ae.buffer.consume(J,ae.decoder),Se}function Te(J){let ae=J._readableState;E("endReadable",ae.endEmitted),ae.endEmitted||(ae.ended=!0,r.nextTick(Oe,ae,J))}function Oe(J,ae){if(E("endReadableNT",J.endEmitted,J.length),!J.errored&&!J.closeEmitted&&!J.endEmitted&&J.length===0){if(J.endEmitted=!0,ae.emit("end"),ae.writable&&ae.allowHalfOpen===!1)r.nextTick(Ne,ae);else if(J.autoDestroy){let Se=ae._writableState;(!Se||Se.autoDestroy&&(Se.finished||Se.writable===!1))&&ae.destroy()}}}function Ne(J){J.writable&&!J.writableEnded&&!J.destroyed&&J.end()}H.from=function(J,ae){return B(H,J,ae)};var je;function ne(){return je===void 0&&(je={}),je}H.fromWeb=function(J,ae){return ne().newStreamReadableFromReadableStream(J,ae)},H.toWeb=function(J,ae){return ne().newReadableStreamFromStreamReadable(J,ae)},H.wrap=function(J,ae){var Se,xe;return new H({objectMode:(Se=(xe=J.readableObjectMode)!==null&&xe!==void 0?xe:J.objectMode)!==null&&Se!==void 0?Se:!0,...ae,destroy(ue,Me){C.destroyer(J,ue),Me(ue)}}).wrap(J)}}),J5e=On((e,n)=>{fn(),hn(),pn();var r=WC(),{ArrayPrototypeSlice:i,Error:o,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:s,ObjectDefineProperties:l,ObjectSetPrototypeOf:c,StringPrototypeToLowerCase:u,Symbol:d,SymbolHasInstance:f}=xl();n.exports=D,D.WritableState=U;var{EventEmitter:p}=(KR(),na(YC)),h=Ile().Stream,{Buffer:g}=(Ec(),na(Sc)),v=qR(),{addAbortSignal:y}=D7(),{getHighWaterMark:_,getDefaultHighWaterMark:S}=Nle(),{ERR_INVALID_ARG_TYPE:b,ERR_METHOD_NOT_IMPLEMENTED:E,ERR_MULTIPLE_CALLBACK:w,ERR_STREAM_CANNOT_PIPE:C,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:T,ERR_STREAM_NULL_VALUES:R,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:M}=Cd().codes,{errorOrDestroy:P}=v;c(D.prototype,h.prototype),c(D,h);function k(){}var $=d("kOnFinished");function U(he,be,we){typeof we!="boolean"&&(we=be instanceof Cy()),this.objectMode=!!(he&&he.objectMode),we&&(this.objectMode=this.objectMode||!!(he&&he.writableObjectMode)),this.highWaterMark=he?_(this,he,"writableHighWaterMark",we):S(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let De=!!(he&&he.decodeStrings===!1);this.decodeStrings=!De,this.defaultEncoding=he&&he.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=H.bind(void 0,be),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,z(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!he||he.emitClose!==!1,this.autoDestroy=!he||he.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[$]=[]}function z(he){he.buffered=[],he.bufferedIndex=0,he.allBuffers=!0,he.allNoop=!0}U.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},s(U.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function D(he){let be=this instanceof Cy();if(!be&&!a(D,this))return new D(he);this._writableState=new U(he,this,be),he&&(typeof he.write=="function"&&(this._write=he.write),typeof he.writev=="function"&&(this._writev=he.writev),typeof he.destroy=="function"&&(this._destroy=he.destroy),typeof he.final=="function"&&(this._final=he.final),typeof he.construct=="function"&&(this._construct=he.construct),he.signal&&y(he.signal,this)),h.call(this,he),v.construct(this,()=>{let we=this._writableState;we.writing||Z(this,we),oe(this,we)})}s(D,f,{__proto__:null,value:function(he){return a(this,he)?!0:this!==D?!1:he&&he._writableState instanceof U}}),D.prototype.pipe=function(){P(this,new C)};function B(he,be,we,De){let Ae=he._writableState;if(typeof we=="function")De=we,we=Ae.defaultEncoding;else{if(!we)we=Ae.defaultEncoding;else if(we!=="buffer"&&!g.isEncoding(we))throw new M(we);typeof De!="function"&&(De=k)}if(be===null)throw new R;if(!Ae.objectMode)if(typeof be=="string")Ae.decodeStrings!==!1&&(be=g.from(be,we),we="buffer");else if(be instanceof g)we="buffer";else if(h._isUint8Array(be))be=h._uint8ArrayToBuffer(be),we="buffer";else throw new b("chunk",["string","Buffer","Uint8Array"],be);let Ee;return Ae.ending?Ee=new O:Ae.destroyed&&(Ee=new x("write")),Ee?(r.nextTick(De,Ee),P(he,Ee,!0),Ee):(Ae.pendingcb++,Y(he,Ae,be,we,De))}D.prototype.write=function(he,be,we){return B(this,he,be,we)===!0},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){let he=this._writableState;he.corked&&(he.corked--,he.writing||Z(this,he))},D.prototype.setDefaultEncoding=function(he){if(typeof he=="string"&&(he=u(he)),!g.isEncoding(he))throw new M(he);return this._writableState.defaultEncoding=he,this};function Y(he,be,we,De,Ae){let Ee=be.objectMode?1:we.length;be.length+=Ee;let Re=be.length<be.highWaterMark;return Re||(be.needDrain=!0),be.writing||be.corked||be.errored||!be.constructed?(be.buffered.push({chunk:we,encoding:De,callback:Ae}),be.allBuffers&&De!=="buffer"&&(be.allBuffers=!1),be.allNoop&&Ae!==k&&(be.allNoop=!1)):(be.writelen=Ee,be.writecb=Ae,be.writing=!0,be.sync=!0,he._write(we,De,be.onwrite),be.sync=!1),Re&&!be.errored&&!be.destroyed}function q(he,be,we,De,Ae,Ee,Re){be.writelen=De,be.writecb=Re,be.writing=!0,be.sync=!0,be.destroyed?be.onwrite(new x("write")):we?he._writev(Ae,be.onwrite):he._write(Ae,Ee,be.onwrite),be.sync=!1}function K(he,be,we,De){--be.pendingcb,De(we),le(be),P(he,we)}function H(he,be){let we=he._writableState,De=we.sync,Ae=we.writecb;if(typeof Ae!="function"){P(he,new w);return}we.writing=!1,we.writecb=null,we.length-=we.writelen,we.writelen=0,be?(be.stack,we.errored||(we.errored=be),he._readableState&&!he._readableState.errored&&(he._readableState.errored=be),De?r.nextTick(K,he,we,be,Ae):K(he,we,be,Ae)):(we.buffered.length>we.bufferedIndex&&Z(he,we),De?we.afterWriteTickInfo!==null&&we.afterWriteTickInfo.cb===Ae?we.afterWriteTickInfo.count++:(we.afterWriteTickInfo={count:1,cb:Ae,stream:he,state:we},r.nextTick(G,we.afterWriteTickInfo)):Q(he,we,1,Ae))}function G({stream:he,state:be,count:we,cb:De}){return be.afterWriteTickInfo=null,Q(he,be,we,De)}function Q(he,be,we,De){for(!be.ending&&!he.destroyed&&be.length===0&&be.needDrain&&(be.needDrain=!1,he.emit("drain"));we-- >0;)be.pendingcb--,De();be.destroyed&&le(be),oe(he,be)}function le(he){if(he.writing)return;for(let Ae=he.bufferedIndex;Ae<he.buffered.length;++Ae){var be;let{chunk:Ee,callback:Re}=he.buffered[Ae],Te=he.objectMode?1:Ee.length;he.length-=Te,Re((be=he.errored)!==null&&be!==void 0?be:new x("write"))}let we=he[$].splice(0);for(let Ae=0;Ae<we.length;Ae++){var De;we[Ae]((De=he.errored)!==null&&De!==void 0?De:new x("end"))}z(he)}function Z(he,be){if(be.corked||be.bufferProcessing||be.destroyed||!be.constructed)return;let{buffered:we,bufferedIndex:De,objectMode:Ae}=be,Ee=we.length-De;if(!Ee)return;let Re=De;if(be.bufferProcessing=!0,Ee>1&&he._writev){be.pendingcb-=Ee-1;let Te=be.allNoop?k:Ne=>{for(let je=Re;je<we.length;++je)we[je].callback(Ne)},Oe=be.allNoop&&Re===0?we:i(we,Re);Oe.allBuffers=be.allBuffers,q(he,be,!0,be.length,Oe,"",Te),z(be)}else{do{let{chunk:Te,encoding:Oe,callback:Ne}=we[Re];we[Re++]=null;let je=Ae?1:Te.length;q(he,be,!1,je,Te,Oe,Ne)}while(Re<we.length&&!be.writing);Re===we.length?z(be):Re>256?(we.splice(0,Re),be.bufferedIndex=0):be.bufferedIndex=Re}be.bufferProcessing=!1}D.prototype._write=function(he,be,we){if(this._writev)this._writev([{chunk:he,encoding:be}],we);else throw new E("_write()")},D.prototype._writev=null,D.prototype.end=function(he,be,we){let De=this._writableState;typeof he=="function"?(we=he,he=null,be=null):typeof be=="function"&&(we=be,be=null);let Ae;if(he!=null){let Ee=B(this,he,be);Ee instanceof o&&(Ae=Ee)}return De.corked&&(De.corked=1,this.uncork()),Ae||(!De.errored&&!De.ending?(De.ending=!0,oe(this,De,!0),De.ended=!0):De.finished?Ae=new T("end"):De.destroyed&&(Ae=new x("end"))),typeof we=="function"&&(Ae||De.finished?r.nextTick(we,Ae):De[$].push(we)),this};function j(he){return he.ending&&!he.destroyed&&he.constructed&&he.length===0&&!he.errored&&he.buffered.length===0&&!he.finished&&!he.writing&&!he.errorEmitted&&!he.closeEmitted}function F(he,be){let we=!1;function De(Ae){if(we){P(he,Ae??w());return}if(we=!0,be.pendingcb--,Ae){let Ee=be[$].splice(0);for(let Re=0;Re<Ee.length;Re++)Ee[Re](Ae);P(he,Ae,be.sync)}else j(be)&&(be.prefinished=!0,he.emit("prefinish"),be.pendingcb++,r.nextTick(de,he,be))}be.sync=!0,be.pendingcb++;try{he._final(De)}catch(Ae){De(Ae)}be.sync=!1}function te(he,be){!be.prefinished&&!be.finalCalled&&(typeof he._final=="function"&&!be.destroyed?(be.finalCalled=!0,F(he,be)):(be.prefinished=!0,he.emit("prefinish")))}function oe(he,be,we){j(be)&&(te(he,be),be.pendingcb===0&&(we?(be.pendingcb++,r.nextTick((De,Ae)=>{j(Ae)?de(De,Ae):Ae.pendingcb--},he,be)):j(be)&&(be.pendingcb++,de(he,be))))}function de(he,be){be.pendingcb--,be.finished=!0;let we=be[$].splice(0);for(let De=0;De<we.length;De++)we[De]();if(he.emit("finish"),be.autoDestroy){let De=he._readableState;(!De||De.autoDestroy&&(De.endEmitted||De.readable===!1))&&he.destroy()}}l(D.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(he){this._writableState&&(this._writableState.destroyed=he)}},writable:{__proto__:null,get(){let he=this._writableState;return!!he&&he.writable!==!1&&!he.destroyed&&!he.errored&&!he.ending&&!he.ended},set(he){this._writableState&&(this._writableState.writable=!!he)}},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 he=this._writableState;return he?!he.destroyed&&!he.ending&&he.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 pe=v.destroy;D.prototype.destroy=function(he,be){let we=this._writableState;return!we.destroyed&&(we.bufferedIndex<we.buffered.length||we[$].length)&&r.nextTick(le,we),pe.call(this,he,be),this},D.prototype._undestroy=v.undestroy,D.prototype._destroy=function(he,be){be(he)},D.prototype[p.captureRejectionSymbol]=function(he){this.destroy(he)};var me;function ve(){return me===void 0&&(me={}),me}D.fromWeb=function(he,be){return ve().newStreamWritableFromWritableStream(he,be)},D.toWeb=function(he){return ve().newWritableStreamFromStreamWritable(he)}}),NSt=On((e,n)=>{fn(),hn(),pn();var r=WC(),i=(Ec(),na(Sc)),{isReadable:o,isWritable:a,isIterable:s,isNodeStream:l,isReadableNodeStream:c,isWritableNodeStream:u,isDuplexNodeStream:d}=zy(),f=K0(),{AbortError:p,codes:{ERR_INVALID_ARG_TYPE:h,ERR_INVALID_RETURN_VALUE:g}}=Cd(),{destroyer:v}=qR(),y=Cy(),_=L7(),{createDeferredPromise:S}=Ey(),b=Z5e(),E=globalThis.Blob||i.Blob,w=typeof E<"u"?function(M){return M instanceof E}:function(M){return!1},C=globalThis.AbortController||Rle().AbortController,{FunctionPrototypeCall:x}=xl(),T=class extends y{constructor(M){super(M),(M==null?void 0:M.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(M==null?void 0:M.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};n.exports=function M(P,k){if(d(P))return P;if(c(P))return O({readable:P});if(u(P))return O({writable:P});if(l(P))return O({writable:!1,readable:!1});if(typeof P=="function"){let{value:U,write:z,final:D,destroy:B}=R(P);if(s(U))return b(T,U,{objectMode:!0,write:z,final:D,destroy:B});let Y=U==null?void 0:U.then;if(typeof Y=="function"){let q,K=x(Y,U,H=>{if(H!=null)throw new g("nully","body",H)},H=>{v(q,H)});return q=new T({objectMode:!0,readable:!1,write:z,final(H){D(async()=>{try{await K,r.nextTick(H,null)}catch(G){r.nextTick(H,G)}})},destroy:B})}throw new g("Iterable, AsyncIterable or AsyncFunction",k,U)}if(w(P))return M(P.arrayBuffer());if(s(P))return b(T,P,{objectMode:!0,writable:!1});if(typeof(P==null?void 0:P.writable)=="object"||typeof(P==null?void 0:P.readable)=="object"){let U=P!=null&&P.readable?c(P==null?void 0:P.readable)?P==null?void 0:P.readable:M(P.readable):void 0,z=P!=null&&P.writable?u(P==null?void 0:P.writable)?P==null?void 0:P.writable:M(P.writable):void 0;return O({readable:U,writable:z})}let $=P==null?void 0:P.then;if(typeof $=="function"){let U;return x($,P,z=>{z!=null&&U.push(z),U.push(null)},z=>{v(U,z)}),U=new T({objectMode:!0,writable:!1,read(){}})}throw new h(k,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],P)};function R(M){let{promise:P,resolve:k}=S(),$=new C,U=$.signal;return{value:M(async function*(){for(;;){let z=P;P=null;let{chunk:D,done:B,cb:Y}=await z;if(r.nextTick(Y),B)return;if(U.aborted)throw new p(void 0,{cause:U.reason});({promise:P,resolve:k}=S()),yield D}}(),{signal:U}),write(z,D,B){let Y=k;k=null,Y({chunk:z,done:!1,cb:B})},final(z){let D=k;k=null,D({done:!0,cb:z})},destroy(z,D){$.abort(),D(z)}}}function O(M){let P=M.readable&&typeof M.readable.read!="function"?_.wrap(M.readable):M.readable,k=M.writable,$=!!o(P),U=!!a(k),z,D,B,Y,q;function K(H){let G=Y;Y=null,G?G(H):H&&q.destroy(H)}return q=new T({readableObjectMode:!!(P!=null&&P.readableObjectMode),writableObjectMode:!!(k!=null&&k.writableObjectMode),readable:$,writable:U}),U&&(f(k,H=>{U=!1,H&&v(P,H),K(H)}),q._write=function(H,G,Q){k.write(H,G)?Q():z=Q},q._final=function(H){k.end(),D=H},k.on("drain",function(){if(z){let H=z;z=null,H()}}),k.on("finish",function(){if(D){let H=D;D=null,H()}})),$&&(f(P,H=>{$=!1,H&&v(P,H),K(H)}),P.on("readable",function(){if(B){let H=B;B=null,H()}}),P.on("end",function(){q.push(null)}),q._read=function(){for(;;){let H=P.read();if(H===null){B=q._read;return}if(!q.push(H))return}}),q._destroy=function(H,G){!H&&Y!==null&&(H=new p),B=null,z=null,D=null,Y===null?G(H):(Y=G,v(k,H),v(P,H))},q}}),Cy=On((e,n)=>{fn(),hn(),pn();var{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:o,ObjectSetPrototypeOf:a}=xl();n.exports=c;var s=L7(),l=J5e();a(c.prototype,s.prototype),a(c,s);{let p=o(l.prototype);for(let h=0;h<p.length;h++){let g=p[h];c.prototype[g]||(c.prototype[g]=l.prototype[g])}}function c(p){if(!(this instanceof c))return new c(p);s.call(this,p),l.call(this,p),p?(this.allowHalfOpen=p.allowHalfOpen!==!1,p.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),p.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}r(c.prototype,{writable:{__proto__:null,...i(l.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(l.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(l.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(l.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(l.prototype,"writableLength")},writableFinished:{__proto__:null,...i(l.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(l.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(l.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(l.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(p){this._readableState&&this._writableState&&(this._readableState.destroyed=p,this._writableState.destroyed=p)}}});var u;function d(){return u===void 0&&(u={}),u}c.fromWeb=function(p,h){return d().newStreamDuplexFromReadableWritablePair(p,h)},c.toWeb=function(p){return d().newReadableWritablePairFromDuplex(p)};var f;c.from=function(p){return f||(f=NSt()),f(p,"body")}}),e6e=On((e,n)=>{fn(),hn(),pn();var{ObjectSetPrototypeOf:r,Symbol:i}=xl();n.exports=c;var{ERR_METHOD_NOT_IMPLEMENTED:o}=Cd().codes,a=Cy(),{getHighWaterMark:s}=Nle();r(c.prototype,a.prototype),r(c,a);var l=i("kCallback");function c(f){if(!(this instanceof c))return new c(f);let p=f?s(this,f,"readableHighWaterMark",!0):null;p===0&&(f={...f,highWaterMark:null,readableHighWaterMark:p,writableHighWaterMark:f.writableHighWaterMark||0}),a.call(this,f),this._readableState.sync=!1,this[l]=null,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",d)}function u(f){typeof this._flush=="function"&&!this.destroyed?this._flush((p,h)=>{if(p){f?f(p):this.destroy(p);return}h!=null&&this.push(h),this.push(null),f&&f()}):(this.push(null),f&&f())}function d(){this._final!==u&&u.call(this)}c.prototype._final=u,c.prototype._transform=function(f,p,h){throw new o("_transform()")},c.prototype._write=function(f,p,h){let g=this._readableState,v=this._writableState,y=g.length;this._transform(f,p,(_,S)=>{if(_){h(_);return}S!=null&&this.push(S),v.ended||y===g.length||g.length<g.highWaterMark?h():this[l]=h})},c.prototype._read=function(){if(this[l]){let f=this[l];this[l]=null,f()}}}),t6e=On((e,n)=>{fn(),hn(),pn();var{ObjectSetPrototypeOf:r}=xl();n.exports=o;var i=e6e();r(o.prototype,i.prototype),r(o,i);function o(a){if(!(this instanceof o))return new o(a);i.call(this,a)}o.prototype._transform=function(a,s,l){l(null,a)}}),Ale=On((e,n)=>{fn(),hn(),pn();var r=WC(),{ArrayIsArray:i,Promise:o,SymbolAsyncIterator:a}=xl(),s=K0(),{once:l}=Ey(),c=qR(),u=Cy(),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:p,ERR_MISSING_ARGS:h,ERR_STREAM_DESTROYED:g,ERR_STREAM_PREMATURE_CLOSE:v},AbortError:y}=Cd(),{validateFunction:_,validateAbortSignal:S}=A7(),{isIterable:b,isReadable:E,isReadableNodeStream:w,isNodeStream:C,isTransformStream:x,isWebStream:T,isReadableStream:R,isReadableEnded:O}=zy(),M=globalThis.AbortController||Rle().AbortController,P,k;function $(G,Q,le){let Z=!1;G.on("close",()=>{Z=!0});let j=s(G,{readable:Q,writable:le},F=>{Z=!F});return{destroy:F=>{Z||(Z=!0,c.destroyer(G,F||new g("pipe")))},cleanup:j}}function U(G){return _(G[G.length-1],"streams[stream.length - 1]"),G.pop()}function z(G){if(b(G))return G;if(w(G))return D(G);throw new f("val",["Readable","Iterable","AsyncIterable"],G)}async function*D(G){k||(k=L7()),yield*k.prototype[a].call(G)}async function B(G,Q,le,{end:Z}){let j,F=null,te=pe=>{if(pe&&(j=pe),F){let me=F;F=null,me()}},oe=()=>new o((pe,me)=>{j?me(j):F=()=>{j?me(j):pe()}});Q.on("drain",te);let de=s(Q,{readable:!1},te);try{Q.writableNeedDrain&&await oe();for await(let pe of G)Q.write(pe)||await oe();Z&&Q.end(),await oe(),le()}catch(pe){le(j!==pe?d(j,pe):pe)}finally{de(),Q.off("drain",te)}}async function Y(G,Q,le,{end:Z}){x(Q)&&(Q=Q.writable);let j=Q.getWriter();try{for await(let F of G)await j.ready,j.write(F).catch(()=>{});await j.ready,Z&&await j.close(),le()}catch(F){try{await j.abort(F),le(F)}catch(te){le(te)}}}function q(...G){return K(G,l(U(G)))}function K(G,Q,le){if(G.length===1&&i(G[0])&&(G=G[0]),G.length<2)throw new h("streams");let Z=new M,j=Z.signal,F=le==null?void 0:le.signal,te=[];S(F,"options.signal");function oe(){be(new y)}F==null||F.addEventListener("abort",oe);let de,pe,me=[],ve=0;function he(Ee){be(Ee,--ve===0)}function be(Ee,Re){if(Ee&&(!de||de.code==="ERR_STREAM_PREMATURE_CLOSE")&&(de=Ee),!(!de&&!Re)){for(;me.length;)me.shift()(de);F==null||F.removeEventListener("abort",oe),Z.abort(),Re&&(de||te.forEach(Te=>Te()),r.nextTick(Q,de,pe))}}let we;for(let Ee=0;Ee<G.length;Ee++){let Re=G[Ee],Te=Ee<G.length-1,Oe=Ee>0,Ne=Te||(le==null?void 0:le.end)!==!1,je=Ee===G.length-1;if(C(Re)){let ne=function(J){J&&J.name!=="AbortError"&&J.code!=="ERR_STREAM_PREMATURE_CLOSE"&&he(J)};if(Ne){let{destroy:J,cleanup:ae}=$(Re,Te,Oe);me.push(J),E(Re)&&je&&te.push(ae)}Re.on("error",ne),E(Re)&&je&&te.push(()=>{Re.removeListener("error",ne)})}if(Ee===0)if(typeof Re=="function"){if(we=Re({signal:j}),!b(we))throw new p("Iterable, AsyncIterable or Stream","source",we)}else b(Re)||w(Re)||x(Re)?we=Re:we=u.from(Re);else if(typeof Re=="function"){if(x(we)){var De;we=z((De=we)===null||De===void 0?void 0:De.readable)}else we=z(we);if(we=Re(we,{signal:j}),Te){if(!b(we,!0))throw new p("AsyncIterable",`transform[${Ee-1}]`,we)}else{var Ae;P||(P=t6e());let ne=new P({objectMode:!0}),J=(Ae=we)===null||Ae===void 0?void 0:Ae.then;if(typeof J=="function")ve++,J.call(we,xe=>{pe=xe,xe!=null&&ne.write(xe),Ne&&ne.end(),r.nextTick(he)},xe=>{ne.destroy(xe),r.nextTick(he,xe)});else if(b(we,!0))ve++,B(we,ne,he,{end:Ne});else if(R(we)||x(we)){let xe=we.readable||we;ve++,B(xe,ne,he,{end:Ne})}else throw new p("AsyncIterable or Promise","destination",we);we=ne;let{destroy:ae,cleanup:Se}=$(we,!1,!0);me.push(ae),je&&te.push(Se)}}else if(C(Re)){if(w(we)){ve+=2;let ne=H(we,Re,he,{end:Ne});E(Re)&&je&&te.push(ne)}else if(x(we)||R(we)){let ne=we.readable||we;ve++,B(ne,Re,he,{end:Ne})}else if(b(we))ve++,B(we,Re,he,{end:Ne});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],we);we=Re}else if(T(Re)){if(w(we))ve++,Y(z(we),Re,he,{end:Ne});else if(R(we)||b(we))ve++,Y(we,Re,he,{end:Ne});else if(x(we))ve++,Y(we.readable,Re,he,{end:Ne});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],we);we=Re}else we=u.from(Re)}return(j!=null&&j.aborted||F!=null&&F.aborted)&&r.nextTick(oe),we}function H(G,Q,le,{end:Z}){let j=!1;if(Q.on("close",()=>{j||le(new v)}),G.pipe(Q,{end:!1}),Z){let F=function(){j=!0,Q.end()};O(G)?r.nextTick(F):G.once("end",F)}else le();return s(G,{readable:!0,writable:!1},F=>{let te=G._readableState;F&&F.code==="ERR_STREAM_PREMATURE_CLOSE"&&te&&te.ended&&!te.errored&&!te.errorEmitted?G.once("end",le).once("error",le):le(F)}),s(Q,{readable:!1,writable:!0},le)}n.exports={pipelineImpl:K,pipeline:q}}),n6e=On((e,n)=>{fn(),hn(),pn();var{pipeline:r}=Ale(),i=Cy(),{destroyer:o}=qR(),{isNodeStream:a,isReadable:s,isWritable:l,isWebStream:c,isTransformStream:u,isWritableStream:d,isReadableStream:f}=zy(),{AbortError:p,codes:{ERR_INVALID_ARG_VALUE:h,ERR_MISSING_ARGS:g}}=Cd(),v=K0();n.exports=function(...y){if(y.length===0)throw new g("streams");if(y.length===1)return i.from(y[0]);let _=[...y];if(typeof y[0]=="function"&&(y[0]=i.from(y[0])),typeof y[y.length-1]=="function"){let P=y.length-1;y[P]=i.from(y[P])}for(let P=0;P<y.length;++P)if(!(!a(y[P])&&!c(y[P]))){if(P<y.length-1&&!(s(y[P])||f(y[P])||u(y[P])))throw new h(`streams[${P}]`,_[P],"must be readable");if(P>0&&!(l(y[P])||d(y[P])||u(y[P])))throw new h(`streams[${P}]`,_[P],"must be writable")}let S,b,E,w,C;function x(P){let k=w;w=null,k?k(P):P?C.destroy(P):!M&&!O&&C.destroy()}let T=y[0],R=r(y,x),O=!!(l(T)||d(T)||u(T)),M=!!(s(R)||f(R)||u(R));if(C=new i({writableObjectMode:!!(T!=null&&T.writableObjectMode),readableObjectMode:!!(R!=null&&R.writableObjectMode),writable:O,readable:M}),O){if(a(T))C._write=function(k,$,U){T.write(k,$)?U():S=U},C._final=function(k){T.end(),b=k},T.on("drain",function(){if(S){let k=S;S=null,k()}});else if(c(T)){let k=(u(T)?T.writable:T).getWriter();C._write=async function($,U,z){try{await k.ready,k.write($).catch(()=>{}),z()}catch(D){z(D)}},C._final=async function($){try{await k.ready,k.close().catch(()=>{}),b=$}catch(U){$(U)}}}let P=u(R)?R.readable:R;v(P,()=>{if(b){let k=b;b=null,k()}})}if(M){if(a(R))R.on("readable",function(){if(E){let P=E;E=null,P()}}),R.on("end",function(){C.push(null)}),C._read=function(){for(;;){let P=R.read();if(P===null){E=C._read;return}if(!C.push(P))return}};else if(c(R)){let P=(u(R)?R.readable:R).getReader();C._read=async function(){for(;;)try{let{value:k,done:$}=await P.read();if(!C.push(k))return;if($){C.push(null);return}}catch{return}}}}return C._destroy=function(P,k){!P&&w!==null&&(P=new p),E=null,S=null,b=null,w===null?k(P):(w=k,a(R)&&o(R,P))},C}}),MSt=On((e,n)=>{fn(),hn(),pn();var r=globalThis.AbortController||Rle().AbortController,{codes:{ERR_INVALID_ARG_VALUE:i,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:a,ERR_OUT_OF_RANGE:s},AbortError:l}=Cd(),{validateAbortSignal:c,validateInteger:u,validateObject:d}=A7(),f=xl().Symbol("kWeak"),{finished:p}=K0(),h=n6e(),{addAbortSignalNoValidate:g}=D7(),{isWritable:v,isNodeStream:y}=zy(),{ArrayPrototypePush:_,MathFloor:S,Number:b,NumberIsNaN:E,Promise:w,PromiseReject:C,PromisePrototypeThen:x,Symbol:T}=xl(),R=T("kEmpty"),O=T("kEof");function M(Z,j){if(j!=null&&d(j,"options"),(j==null?void 0:j.signal)!=null&&c(j.signal,"options.signal"),y(Z)&&!v(Z))throw new i("stream",Z,"must be writable");let F=h(this,Z);return j!=null&&j.signal&&g(j.signal,F),F}function P(Z,j){if(typeof Z!="function")throw new o("fn",["Function","AsyncFunction"],Z);j!=null&&d(j,"options"),(j==null?void 0:j.signal)!=null&&c(j.signal,"options.signal");let F=1;return(j==null?void 0:j.concurrency)!=null&&(F=S(j.concurrency)),u(F,"concurrency",1),(async function*(){var te,oe;let de=new r,pe=this,me=[],ve=de.signal,he={signal:ve},be=()=>de.abort();j!=null&&(te=j.signal)!==null&&te!==void 0&&te.aborted&&be(),j==null||(oe=j.signal)===null||oe===void 0||oe.addEventListener("abort",be);let we,De,Ae=!1;function Ee(){Ae=!0}async function Re(){try{for await(let Ne of pe){var Te;if(Ae)return;if(ve.aborted)throw new l;try{Ne=Z(Ne,he)}catch(je){Ne=C(je)}Ne!==R&&(typeof((Te=Ne)===null||Te===void 0?void 0:Te.catch)=="function"&&Ne.catch(Ee),me.push(Ne),we&&(we(),we=null),!Ae&&me.length&&me.length>=F&&await new w(je=>{De=je}))}me.push(O)}catch(Ne){let je=C(Ne);x(je,void 0,Ee),me.push(je)}finally{var Oe;Ae=!0,we&&(we(),we=null),j==null||(Oe=j.signal)===null||Oe===void 0||Oe.removeEventListener("abort",be)}}Re();try{for(;;){for(;me.length>0;){let Te=await me[0];if(Te===O)return;if(ve.aborted)throw new l;Te!==R&&(yield Te),me.shift(),De&&(De(),De=null)}await new w(Te=>{we=Te})}}finally{de.abort(),Ae=!0,De&&(De(),De=null)}}).call(this)}function k(Z=void 0){return Z!=null&&d(Z,"options"),(Z==null?void 0:Z.signal)!=null&&c(Z.signal,"options.signal"),(async function*(){let j=0;for await(let te of this){var F;if(Z!=null&&(F=Z.signal)!==null&&F!==void 0&&F.aborted)throw new l({cause:Z.signal.reason});yield[j++,te]}}).call(this)}async function $(Z,j=void 0){for await(let F of B.call(this,Z,j))return!0;return!1}async function U(Z,j=void 0){if(typeof Z!="function")throw new o("fn",["Function","AsyncFunction"],Z);return!await $.call(this,async(...F)=>!await Z(...F),j)}async function z(Z,j){for await(let F of B.call(this,Z,j))return F}async function D(Z,j){if(typeof Z!="function")throw new o("fn",["Function","AsyncFunction"],Z);async function F(te,oe){return await Z(te,oe),R}for await(let te of P.call(this,F,j));}function B(Z,j){if(typeof Z!="function")throw new o("fn",["Function","AsyncFunction"],Z);async function F(te,oe){return await Z(te,oe)?te:R}return P.call(this,F,j)}var Y=class extends a{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function q(Z,j,F){var te;if(typeof Z!="function")throw new o("reducer",["Function","AsyncFunction"],Z);F!=null&&d(F,"options"),(F==null?void 0:F.signal)!=null&&c(F.signal,"options.signal");let oe=arguments.length>1;if(F!=null&&(te=F.signal)!==null&&te!==void 0&&te.aborted){let he=new l(void 0,{cause:F.signal.reason});throw this.once("error",()=>{}),await p(this.destroy(he)),he}let de=new r,pe=de.signal;if(F!=null&&F.signal){let he={once:!0,[f]:this};F.signal.addEventListener("abort",()=>de.abort(),he)}let me=!1;try{for await(let he of this){var ve;if(me=!0,F!=null&&(ve=F.signal)!==null&&ve!==void 0&&ve.aborted)throw new l;oe?j=await Z(j,he,{signal:pe}):(j=he,oe=!0)}if(!me&&!oe)throw new Y}finally{de.abort()}return j}async function K(Z){Z!=null&&d(Z,"options"),(Z==null?void 0:Z.signal)!=null&&c(Z.signal,"options.signal");let j=[];for await(let te of this){var F;if(Z!=null&&(F=Z.signal)!==null&&F!==void 0&&F.aborted)throw new l(void 0,{cause:Z.signal.reason});_(j,te)}return j}function H(Z,j){let F=P.call(this,Z,j);return(async function*(){for await(let te of F)yield*te}).call(this)}function G(Z){if(Z=b(Z),E(Z))return 0;if(Z<0)throw new s("number",">= 0",Z);return Z}function Q(Z,j=void 0){return j!=null&&d(j,"options"),(j==null?void 0:j.signal)!=null&&c(j.signal,"options.signal"),Z=G(Z),(async function*(){var F;if(j!=null&&(F=j.signal)!==null&&F!==void 0&&F.aborted)throw new l;for await(let oe of this){var te;if(j!=null&&(te=j.signal)!==null&&te!==void 0&&te.aborted)throw new l;Z--<=0&&(yield oe)}}).call(this)}function le(Z,j=void 0){return j!=null&&d(j,"options"),(j==null?void 0:j.signal)!=null&&c(j.signal,"options.signal"),Z=G(Z),(async function*(){var F;if(j!=null&&(F=j.signal)!==null&&F!==void 0&&F.aborted)throw new l;for await(let oe of this){var te;if(j!=null&&(te=j.signal)!==null&&te!==void 0&&te.aborted)throw new l;if(Z-- >0)yield oe;else return}}).call(this)}n.exports.streamReturningOperators={asIndexedPairs:k,drop:Q,filter:B,flatMap:H,map:P,take:le,compose:M},n.exports.promiseReturningOperators={every:U,forEach:D,reduce:q,toArray:K,some:$,find:z}}),r6e=On((e,n)=>{fn(),hn(),pn();var{ArrayPrototypePop:r,Promise:i}=xl(),{isIterable:o,isNodeStream:a,isWebStream:s}=zy(),{pipelineImpl:l}=Ale(),{finished:c}=K0();i6e();function u(...d){return new i((f,p)=>{let h,g,v=d[d.length-1];if(v&&typeof v=="object"&&!a(v)&&!o(v)&&!s(v)){let y=r(d);h=y.signal,g=y.end}l(d,(y,_)=>{y?p(y):f(_)},{signal:h,end:g})})}n.exports={finished:c,pipeline:u}}),i6e=On((e,n)=>{fn(),hn(),pn();var{Buffer:r}=(Ec(),na(Sc)),{ObjectDefineProperty:i,ObjectKeys:o,ReflectApply:a}=xl(),{promisify:{custom:s}}=Ey(),{streamReturningOperators:l,promiseReturningOperators:c}=MSt(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=Cd(),d=n6e(),{pipeline:f}=Ale(),{destroyer:p}=qR(),h=K0(),g=r6e(),v=zy(),y=n.exports=Ile().Stream;y.isDisturbed=v.isDisturbed,y.isErrored=v.isErrored,y.isReadable=v.isReadable,y.Readable=L7();for(let S of o(l)){let b=function(...w){if(new.target)throw u();return y.Readable.from(a(E,this,w))},E=l[S];i(b,"name",{__proto__:null,value:E.name}),i(b,"length",{__proto__:null,value:E.length}),i(y.Readable.prototype,S,{__proto__:null,value:b,enumerable:!1,configurable:!0,writable:!0})}for(let S of o(c)){let b=function(...w){if(new.target)throw u();return a(E,this,w)},E=c[S];i(b,"name",{__proto__:null,value:E.name}),i(b,"length",{__proto__:null,value:E.length}),i(y.Readable.prototype,S,{__proto__:null,value:b,enumerable:!1,configurable:!0,writable:!0})}y.Writable=J5e(),y.Duplex=Cy(),y.Transform=e6e(),y.PassThrough=t6e(),y.pipeline=f;var{addAbortSignal:_}=D7();y.addAbortSignal=_,y.finished=h,y.destroy=p,y.compose=d,i(y,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return g}}),i(f,s,{__proto__:null,enumerable:!0,get(){return g.pipeline}}),i(h,s,{__proto__:null,enumerable:!0,get(){return g.finished}}),y.Stream=y,y._isUint8Array=function(S){return S instanceof Uint8Array},y._uint8ArrayToBuffer=function(S){return r.from(S.buffer,S.byteOffset,S.byteLength)}}),qC=On((e,n)=>{fn(),hn(),pn();var r=i6e(),i=r6e(),o=r.Readable.destroy;n.exports=r.Readable,n.exports._uint8ArrayToBuffer=r._uint8ArrayToBuffer,n.exports._isUint8Array=r._isUint8Array,n.exports.isDisturbed=r.isDisturbed,n.exports.isErrored=r.isErrored,n.exports.isReadable=r.isReadable,n.exports.Readable=r.Readable,n.exports.Writable=r.Writable,n.exports.Duplex=r.Duplex,n.exports.Transform=r.Transform,n.exports.PassThrough=r.PassThrough,n.exports.addAbortSignal=r.addAbortSignal,n.exports.finished=r.finished,n.exports.destroy=r.destroy,n.exports.destroy=o,n.exports.pipeline=r.pipeline,n.exports.compose=r.compose,Object.defineProperty(r,"promises",{configurable:!0,enumerable:!0,get(){return i}}),n.exports.Stream=r.Stream,n.exports.default=n.exports}),PSt=On((e,n)=>{fn(),hn(),pn(),typeof Object.create=="function"?n.exports=function(r,i){i&&(r.super_=i,r.prototype=Object.create(i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:n.exports=function(r,i){if(i){r.super_=i;var o=function(){};o.prototype=i.prototype,r.prototype=new o,r.prototype.constructor=r}}}),ASt=On((e,n)=>{fn(),hn(),pn();var{Buffer:r}=(Ec(),na(Sc)),i=Symbol.for("BufferList");function o(a){if(!(this instanceof o))return new o(a);o._init.call(this,a)}o._init=function(a){Object.defineProperty(this,i,{value:!0}),this._bufs=[],this.length=0,a&&this.append(a)},o.prototype._new=function(a){return new o(a)},o.prototype._offset=function(a){if(a===0)return[0,0];let s=0;for(let l=0;l<this._bufs.length;l++){let c=s+this._bufs[l].length;if(a<c||l===this._bufs.length-1)return[l,a-s];s=c}},o.prototype._reverseOffset=function(a){let s=a[0],l=a[1];for(let c=0;c<s;c++)l+=this._bufs[c].length;return l},o.prototype.get=function(a){if(a>this.length||a<0)return;let s=this._offset(a);return this._bufs[s[0]][s[1]]},o.prototype.slice=function(a,s){return typeof a=="number"&&a<0&&(a+=this.length),typeof s=="number"&&s<0&&(s+=this.length),this.copy(null,0,a,s)},o.prototype.copy=function(a,s,l,c){if((typeof l!="number"||l<0)&&(l=0),(typeof c!="number"||c>this.length)&&(c=this.length),l>=this.length||c<=0)return a||r.alloc(0);let u=!!a,d=this._offset(l),f=c-l,p=f,h=u&&s||0,g=d[1];if(l===0&&c===this.length){if(!u)return this._bufs.length===1?this._bufs[0]:r.concat(this._bufs,this.length);for(let v=0;v<this._bufs.length;v++)this._bufs[v].copy(a,h),h+=this._bufs[v].length;return a}if(p<=this._bufs[d[0]].length-g)return u?this._bufs[d[0]].copy(a,s,g,g+p):this._bufs[d[0]].slice(g,g+p);u||(a=r.allocUnsafe(f));for(let v=d[0];v<this._bufs.length;v++){let y=this._bufs[v].length-g;if(p>y)this._bufs[v].copy(a,h,g),h+=y;else{this._bufs[v].copy(a,h,g,g+p),h+=y;break}p-=y,g&&(g=0)}return a.length>h?a.slice(0,h):a},o.prototype.shallowSlice=function(a,s){if(a=a||0,s=typeof s!="number"?this.length:s,a<0&&(a+=this.length),s<0&&(s+=this.length),a===s)return this._new();let l=this._offset(a),c=this._offset(s),u=this._bufs.slice(l[0],c[0]+1);return c[1]===0?u.pop():u[u.length-1]=u[u.length-1].slice(0,c[1]),l[1]!==0&&(u[0]=u[0].slice(l[1])),this._new(u)},o.prototype.toString=function(a,s,l){return this.slice(s,l).toString(a)},o.prototype.consume=function(a){if(a=Math.trunc(a),Number.isNaN(a)||a<=0)return this;for(;this._bufs.length;)if(a>=this._bufs[0].length)a-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(a),this.length-=a;break}return this},o.prototype.duplicate=function(){let a=this._new();for(let s=0;s<this._bufs.length;s++)a.append(this._bufs[s]);return a},o.prototype.append=function(a){if(a==null)return this;if(a.buffer)this._appendBuffer(r.from(a.buffer,a.byteOffset,a.byteLength));else if(Array.isArray(a))for(let s=0;s<a.length;s++)this.append(a[s]);else if(this._isBufferList(a))for(let s=0;s<a._bufs.length;s++)this.append(a._bufs[s]);else typeof a=="number"&&(a=a.toString()),this._appendBuffer(r.from(a));return this},o.prototype._appendBuffer=function(a){this._bufs.push(a),this.length+=a.length},o.prototype.indexOf=function(a,s,l){if(l===void 0&&typeof s=="string"&&(l=s,s=void 0),typeof a=="function"||Array.isArray(a))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof a=="number"?a=r.from([a]):typeof a=="string"?a=r.from(a,l):this._isBufferList(a)?a=a.slice():Array.isArray(a.buffer)?a=r.from(a.buffer,a.byteOffset,a.byteLength):r.isBuffer(a)||(a=r.from(a)),s=Number(s||0),isNaN(s)&&(s=0),s<0&&(s=this.length+s),s<0&&(s=0),a.length===0)return s>this.length?this.length:s;let c=this._offset(s),u=c[0],d=c[1];for(;u<this._bufs.length;u++){let f=this._bufs[u];for(;d<f.length;)if(f.length-d>=a.length){let p=f.indexOf(a,d);if(p!==-1)return this._reverseOffset([u,p]);d=f.length-a.length+1}else{let p=this._reverseOffset([u,d]);if(this._match(p,a))return p;d++}d=0}return-1},o.prototype._match=function(a,s){if(this.length-a<s.length)return!1;for(let l=0;l<s.length;l++)if(this.get(a+l)!==s[l])return!1;return!0},function(){let a={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 s in a)(function(l){a[l]===null?o.prototype[l]=function(c,u){return this.slice(c,c+u)[l](0,u)}:o.prototype[l]=function(c=0){return this.slice(c,c+a[l])[l](0)}})(s)}(),o.prototype._isBufferList=function(a){return a instanceof o||o.isBufferList(a)},o.isBufferList=function(a){return a!=null&&a[i]},n.exports=o}),DSt=On((e,n)=>{fn(),hn(),pn();var r=qC().Duplex,i=PSt(),o=ASt();function a(s){if(!(this instanceof a))return new a(s);if(typeof s=="function"){this._callback=s;let l=(function(c){this._callback&&(this._callback(c),this._callback=null)}).bind(this);this.on("pipe",function(c){c.on("error",l)}),this.on("unpipe",function(c){c.removeListener("error",l)}),s=null}o._init.call(this,s),r.call(this)}i(a,r),Object.assign(a.prototype,o.prototype),a.prototype._new=function(s){return new a(s)},a.prototype._write=function(s,l,c){this._appendBuffer(s),typeof c=="function"&&c()},a.prototype._read=function(s){if(!this.length)return this.push(null);s=Math.min(s,this.length),this.push(this.slice(0,s)),this.consume(s)},a.prototype.end=function(s){r.prototype.end.call(this,s),this._callback&&(this._callback(null,this.slice()),this._callback=null)},a.prototype._destroy=function(s,l){this._bufs.length=0,this.length=0,l(s)},a.prototype._isBufferList=function(s){return s instanceof a||s instanceof o||a.isBufferList(s)},a.isBufferList=o.isBufferList,n.exports=a,n.exports.BufferListStream=a,n.exports.BufferList=o}),kSt=On((e,n)=>{fn(),hn(),pn();var r=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};n.exports=r}),o6e=On((e,n)=>{fn(),hn(),pn();var r=n.exports,{Buffer:i}=(Ec(),na(Sc));r.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"},r.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},r.requiredHeaderFlagsErrors={};for(let a in r.requiredHeaderFlags){let s=r.requiredHeaderFlags[a];r.requiredHeaderFlagsErrors[a]="Invalid header flag bits, must be 0x"+s.toString(16)+" for "+r.types[a]+" packet"}r.codes={};for(let a in r.types){let s=r.types[a];r.codes[s]=a}r.CMD_SHIFT=4,r.CMD_MASK=240,r.DUP_MASK=8,r.QOS_MASK=3,r.QOS_SHIFT=1,r.RETAIN_MASK=1,r.VARBYTEINT_MASK=127,r.VARBYTEINT_FIN_MASK=128,r.VARBYTEINT_MAX=268435455,r.SESSIONPRESENT_MASK=1,r.SESSIONPRESENT_HEADER=i.from([r.SESSIONPRESENT_MASK]),r.CONNACK_HEADER=i.from([r.codes.connack<<r.CMD_SHIFT]),r.USERNAME_MASK=128,r.PASSWORD_MASK=64,r.WILL_RETAIN_MASK=32,r.WILL_QOS_MASK=24,r.WILL_QOS_SHIFT=3,r.WILL_FLAG_MASK=4,r.CLEAN_SESSION_MASK=2,r.CONNECT_HEADER=i.from([r.codes.connect<<r.CMD_SHIFT]),r.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},r.propertiesCodes={};for(let a in r.properties){let s=r.properties[a];r.propertiesCodes[s]=a}r.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 o(a){return[0,1,2].map(s=>[0,1].map(l=>[0,1].map(c=>{let u=i.alloc(1);return u.writeUInt8(r.codes[a]<<r.CMD_SHIFT|(l?r.DUP_MASK:0)|s<<r.QOS_SHIFT|c,0,!0),u})))}r.PUBLISH_HEADER=o("publish"),r.SUBSCRIBE_HEADER=o("subscribe"),r.SUBSCRIBE_OPTIONS_QOS_MASK=3,r.SUBSCRIBE_OPTIONS_NL_MASK=1,r.SUBSCRIBE_OPTIONS_NL_SHIFT=2,r.SUBSCRIBE_OPTIONS_RAP_MASK=1,r.SUBSCRIBE_OPTIONS_RAP_SHIFT=3,r.SUBSCRIBE_OPTIONS_RH_MASK=3,r.SUBSCRIBE_OPTIONS_RH_SHIFT=4,r.SUBSCRIBE_OPTIONS_RH=[0,16,32],r.SUBSCRIBE_OPTIONS_NL=4,r.SUBSCRIBE_OPTIONS_RAP=8,r.SUBSCRIBE_OPTIONS_QOS=[0,1,2],r.UNSUBSCRIBE_HEADER=o("unsubscribe"),r.ACKS={unsuback:o("unsuback"),puback:o("puback"),pubcomp:o("pubcomp"),pubrel:o("pubrel"),pubrec:o("pubrec")},r.SUBACK_HEADER=i.from([r.codes.suback<<r.CMD_SHIFT]),r.VERSION3=i.from([3]),r.VERSION4=i.from([4]),r.VERSION5=i.from([5]),r.VERSION131=i.from([131]),r.VERSION132=i.from([132]),r.QOS=[0,1,2].map(a=>i.from([a])),r.EMPTY={pingreq:i.from([r.codes.pingreq<<4,0]),pingresp:i.from([r.codes.pingresp<<4,0]),disconnect:i.from([r.codes.disconnect<<4,0])},r.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"},r.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},r.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"},r.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"},r.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"},r.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),LSt=On((e,n)=>{fn(),hn(),pn();var r=1e3,i=r*60,o=i*60,a=o*24,s=a*7,l=a*365.25;n.exports=function(p,h){h=h||{};var g=typeof p;if(g==="string"&&p.length>0)return c(p);if(g==="number"&&isFinite(p))return h.long?d(p):u(p);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(p))};function c(p){if(p=String(p),!(p.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(p);if(h){var g=parseFloat(h[1]),v=(h[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return g*l;case"weeks":case"week":case"w":return g*s;case"days":case"day":case"d":return g*a;case"hours":case"hour":case"hrs":case"hr":case"h":return g*o;case"minutes":case"minute":case"mins":case"min":case"m":return g*i;case"seconds":case"second":case"secs":case"sec":case"s":return g*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return g;default:return}}}}function u(p){var h=Math.abs(p);return h>=a?Math.round(p/a)+"d":h>=o?Math.round(p/o)+"h":h>=i?Math.round(p/i)+"m":h>=r?Math.round(p/r)+"s":p+"ms"}function d(p){var h=Math.abs(p);return h>=a?f(p,h,a,"day"):h>=o?f(p,h,o,"hour"):h>=i?f(p,h,i,"minute"):h>=r?f(p,h,r,"second"):p+" ms"}function f(p,h,g,v){var y=h>=g*1.5;return Math.round(p/g)+" "+v+(y?"s":"")}}),$St=On((e,n)=>{fn(),hn(),pn();function r(i){a.debug=a,a.default=a,a.coerce=f,a.disable=c,a.enable=l,a.enabled=u,a.humanize=LSt(),a.destroy=p,Object.keys(i).forEach(h=>{a[h]=i[h]}),a.names=[],a.skips=[],a.formatters={};function o(h){let g=0;for(let v=0;v<h.length;v++)g=(g<<5)-g+h.charCodeAt(v),g|=0;return a.colors[Math.abs(g)%a.colors.length]}a.selectColor=o;function a(h){let g,v=null,y,_;function S(...b){if(!S.enabled)return;let E=S,w=Number(new Date),C=w-(g||w);E.diff=C,E.prev=g,E.curr=w,g=w,b[0]=a.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let x=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(T,R)=>{if(T==="%%")return"%";x++;let O=a.formatters[R];if(typeof O=="function"){let M=b[x];T=O.call(E,M),b.splice(x,1),x--}return T}),a.formatArgs.call(E,b),(E.log||a.log).apply(E,b)}return S.namespace=h,S.useColors=a.useColors(),S.color=a.selectColor(h),S.extend=s,S.destroy=a.destroy,Object.defineProperty(S,"enabled",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(y!==a.namespaces&&(y=a.namespaces,_=a.enabled(h)),_),set:b=>{v=b}}),typeof a.init=="function"&&a.init(S),S}function s(h,g){let v=a(this.namespace+(typeof g>"u"?":":g)+h);return v.log=this.log,v}function l(h){a.save(h),a.namespaces=h,a.names=[],a.skips=[];let g,v=(typeof h=="string"?h:"").split(/[\s,]+/),y=v.length;for(g=0;g<y;g++)v[g]&&(h=v[g].replace(/\*/g,".*?"),h[0]==="-"?a.skips.push(new RegExp("^"+h.slice(1)+"$")):a.names.push(new RegExp("^"+h+"$")))}function c(){let h=[...a.names.map(d),...a.skips.map(d).map(g=>"-"+g)].join(",");return a.enable(""),h}function u(h){if(h[h.length-1]==="*")return!0;let g,v;for(g=0,v=a.skips.length;g<v;g++)if(a.skips[g].test(h))return!1;for(g=0,v=a.names.length;g<v;g++)if(a.names[g].test(h))return!0;return!1}function d(h){return h.toString().substring(2,h.toString().length-2).replace(/\.\*\?$/,"*")}function f(h){return h instanceof Error?h.stack||h.message:h}function p(){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 a.enable(a.load()),a}n.exports=r}),wy=On((e,n)=>{fn(),hn(),pn(),e.formatArgs=i,e.save=o,e.load=a,e.useColors=r,e.storage=s(),e.destroy=(()=>{let c=!1;return()=>{c||(c=!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 r(){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 i(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;let u="color: "+this.color;c.splice(1,0,u,"color: inherit");let d=0,f=0;c[0].replace(/%[a-zA-Z%]/g,p=>{p!=="%%"&&(d++,p==="%c"&&(f=d))}),c.splice(f,0,u)}e.log=console.debug||console.log||(()=>{});function o(c){try{c?e.storage.setItem("debug",c):e.storage.removeItem("debug")}catch{}}function a(){let c;try{c=e.storage.getItem("debug")}catch{}return!c&&typeof Ao<"u"&&"env"in Ao&&(c=Ao.env.DEBUG),c}function s(){try{return localStorage}catch{}}n.exports=$St()(e);var{formatters:l}=n.exports;l.j=function(c){try{return JSON.stringify(c)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}}),FSt=On((e,n)=>{fn(),hn(),pn();var r=DSt(),{EventEmitter:i}=(KR(),na(YC)),o=kSt(),a=o6e(),s=wy()("mqtt-packet:parser"),l=class one extends i{constructor(){super(),this.parser=this.constructor.parser}static parser(u){return this instanceof one?(this.settings=u||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new one().parser(u)}_resetState(){s("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new o,this.error=null,this._list=r(),this._stateCounter=0}parse(u){for(this.error&&this._resetState(),this._list.append(u),s("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++,s("parse: state complete. _stateCounter is now: %d",this._stateCounter),s("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return s("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let u=this._list.readUInt8(0),d=u>>a.CMD_SHIFT;this.packet.cmd=a.types[d];let f=u&15,p=a.requiredHeaderFlags[d];return p!=null&&f!==p?this._emitError(new Error(a.requiredHeaderFlagsErrors[d])):(this.packet.retain=(u&a.RETAIN_MASK)!==0,this.packet.qos=u>>a.QOS_SHIFT&a.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(u&a.DUP_MASK)!==0,s("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let u=this._parseVarByteNum(!0);return u&&(this.packet.length=u.value,this._list.consume(u.bytes)),s("_parseLength %d",u.value),!!u}_parsePayload(){s("_parsePayload: payload %O",this._list);let u=!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"))}u=!0}return s("_parsePayload complete result: %s",u),u}_parseConnect(){s("_parseConnect");let u,d,f,p,h={},g=this.packet,v=this._parseString();if(v===null)return this._emitError(new Error("Cannot parse protocolId"));if(v!=="MQTT"&&v!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(g.protocolId=v,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(g.protocolVersion=this._list.readUInt8(this._pos),g.protocolVersion>=128&&(g.bridgeMode=!0,g.protocolVersion=g.protocolVersion-128),g.protocolVersion!==3&&g.protocolVersion!==4&&g.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"));h.username=this._list.readUInt8(this._pos)&a.USERNAME_MASK,h.password=this._list.readUInt8(this._pos)&a.PASSWORD_MASK,h.will=this._list.readUInt8(this._pos)&a.WILL_FLAG_MASK;let y=!!(this._list.readUInt8(this._pos)&a.WILL_RETAIN_MASK),_=(this._list.readUInt8(this._pos)&a.WILL_QOS_MASK)>>a.WILL_QOS_SHIFT;if(h.will)g.will={},g.will.retain=y,g.will.qos=_;else{if(y)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(_)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(g.clean=(this._list.readUInt8(this._pos)&a.CLEAN_SESSION_MASK)!==0,this._pos++,g.keepalive=this._parseNum(),g.keepalive===-1)return this._emitError(new Error("Packet too short"));if(g.protocolVersion===5){let b=this._parseProperties();Object.getOwnPropertyNames(b).length&&(g.properties=b)}let S=this._parseString();if(S===null)return this._emitError(new Error("Packet too short"));if(g.clientId=S,s("_parseConnect: packet.clientId: %s",g.clientId),h.will){if(g.protocolVersion===5){let b=this._parseProperties();Object.getOwnPropertyNames(b).length&&(g.will.properties=b)}if(u=this._parseString(),u===null)return this._emitError(new Error("Cannot parse will topic"));if(g.will.topic=u,s("_parseConnect: packet.will.topic: %s",g.will.topic),d=this._parseBuffer(),d===null)return this._emitError(new Error("Cannot parse will payload"));g.will.payload=d,s("_parseConnect: packet.will.paylaod: %s",g.will.payload)}if(h.username){if(p=this._parseString(),p===null)return this._emitError(new Error("Cannot parse username"));g.username=p,s("_parseConnect: packet.username: %s",g.username)}if(h.password){if(f=this._parseBuffer(),f===null)return this._emitError(new Error("Cannot parse password"));g.password=f}return this.settings=g,s("_parseConnect: complete"),g}_parseConnack(){s("_parseConnack");let u=this.packet;if(this._list.length<1)return null;let d=this._list.readUInt8(this._pos++);if(d>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(u.sessionPresent=!!(d&a.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?u.reasonCode=this._list.readUInt8(this._pos++):u.reasonCode=0;else{if(this._list.length<2)return null;u.returnCode=this._list.readUInt8(this._pos++)}if(u.returnCode===-1||u.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(u.properties=f)}s("_parseConnack: complete")}_parsePublish(){s("_parsePublish");let u=this.packet;if(u.topic=this._parseString(),u.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(u.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(u.properties=d)}u.payload=this._list.slice(this._pos,u.length),s("_parsePublish: payload from buffer list: %o",u.payload)}}_parseSubscribe(){s("_parseSubscribe");let u=this.packet,d,f,p,h,g,v,y;if(u.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let _=this._parseProperties();Object.getOwnPropertyNames(_).length&&(u.properties=_)}if(u.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos<u.length;){if(d=this._parseString(),d===null)return this._emitError(new Error("Cannot parse topic"));if(this._pos>=u.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(f=this._parseByte(),this.settings.protocolVersion===5){if(f&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(f&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(p=f&a.SUBSCRIBE_OPTIONS_QOS_MASK,p>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(v=(f>>a.SUBSCRIBE_OPTIONS_NL_SHIFT&a.SUBSCRIBE_OPTIONS_NL_MASK)!==0,g=(f>>a.SUBSCRIBE_OPTIONS_RAP_SHIFT&a.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,h=f>>a.SUBSCRIBE_OPTIONS_RH_SHIFT&a.SUBSCRIBE_OPTIONS_RH_MASK,h>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));y={topic:d,qos:p},this.settings.protocolVersion===5?(y.nl=v,y.rap=g,y.rh=h):this.settings.bridgeMode&&(y.rh=0,y.rap=!0,y.nl=!0),s("_parseSubscribe: push subscription `%s` to subscription",y),u.subscriptions.push(y)}}}_parseSuback(){s("_parseSuback");let u=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(u.properties=d)}if(u.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos<this.packet.length;){let d=this._list.readUInt8(this._pos++);if(this.settings.protocolVersion===5){if(!a.MQTT5_SUBACK_CODES[d])return this._emitError(new Error("Invalid suback code"))}else if(d>2&&d!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(d)}}}_parseUnsubscribe(){s("_parseUnsubscribe");let u=this.packet;if(u.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(u.properties=d)}if(u.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos<u.length;){let d=this._parseString();if(d===null)return this._emitError(new Error("Cannot parse topic"));s("_parseUnsubscribe: push topic `%s` to unsubscriptions",d),u.unsubscriptions.push(d)}}}_parseUnsuback(){s("_parseUnsuback");let u=this.packet;if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"));if((this.settings.protocolVersion===3||this.settings.protocolVersion===4)&&u.length!==2)return this._emitError(new Error("Malformed unsuback, payload length must be 2"));if(u.length<=0)return this._emitError(new Error("Malformed unsuback, no payload specified"));if(this.settings.protocolVersion===5){let d=this._parseProperties();for(Object.getOwnPropertyNames(d).length&&(u.properties=d),u.granted=[];this._pos<this.packet.length;){let f=this._list.readUInt8(this._pos++);if(!a.MQTT5_UNSUBACK_CODES[f])return this._emitError(new Error("Invalid unsuback code"));this.packet.granted.push(f)}}}_parseConfirmation(){s("_parseConfirmation: packet.cmd: `%s`",this.packet.cmd);let u=this.packet;if(this._parseMessageId(),this.settings.protocolVersion===5){if(u.length>2){switch(u.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!a.MQTT5_PUBACK_PUBREC_CODES[u.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!a.MQTT5_PUBREL_PUBCOMP_CODES[u.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}s("_parseConfirmation: packet.reasonCode `%d`",u.reasonCode)}else u.reasonCode=0;if(u.length>3){let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(u.properties=d)}}return!0}_parseDisconnect(){let u=this.packet;if(s("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(u.reasonCode=this._parseByte(),a.MQTT5_DISCONNECT_CODES[u.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):u.reasonCode=0;let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(u.properties=d)}return s("_parseDisconnect result: true"),!0}_parseAuth(){s("_parseAuth");let u=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(u.reasonCode=this._parseByte(),!a.MQTT5_AUTH_CODES[u.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let d=this._parseProperties();return Object.getOwnPropertyNames(d).length&&(u.properties=d),s("_parseAuth: result: true"),!0}_parseMessageId(){let u=this.packet;return u.messageId=this._parseNum(),u.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(s("_parseMessageId: packet.messageId %d",u.messageId),!0)}_parseString(u){let d=this._parseNum(),f=d+this._pos;if(d===-1||f>this._list.length||f>this.packet.length)return null;let p=this._list.toString("utf8",this._pos,f);return this._pos+=d,s("_parseString: result: %s",p),p}_parseStringPair(){return s("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){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.slice(this._pos,d);return this._pos+=u,s("_parseBuffer: result: %o",f),f}_parseNum(){if(this._list.length-this._pos<2)return-1;let u=this._list.readUInt16BE(this._pos);return this._pos+=2,s("_parseNum: result: %s",u),u}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let u=this._list.readUInt32BE(this._pos);return this._pos+=4,s("_parse4ByteNum: result: %s",u),u}_parseVarByteNum(u){s("_parseVarByteNum");let d=4,f=0,p=1,h=0,g=!1,v,y=this._pos?this._pos:0;for(;f<d&&y+f<this._list.length;){if(v=this._list.readUInt8(y+f++),h+=p*(v&a.VARBYTEINT_MASK),p*=128,!(v&a.VARBYTEINT_FIN_MASK)){g=!0;break}if(this._list.length<=f)break}return!g&&f===d&&this._list.length>=f&&this._emitError(new Error("Invalid variable byte integer")),y&&(this._pos+=f),g?u?g={bytes:f,value:h}:g=h:g=!1,s("_parseVarByteNum: result: %o",g),g}_parseByte(){let u;return this._pos<this._list.length&&(u=this._list.readUInt8(this._pos),this._pos++),s("_parseByte: result: %o",u),u}_parseByType(u){switch(s("_parseByType: type: %s",u),u){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(){s("_parseProperties");let u=this._parseVarByteNum(),d=this._pos+u,f={};for(;this._pos<d;){let p=this._parseByte();if(!p)return this._emitError(new Error("Cannot parse property code type")),!1;let h=a.propertiesCodes[p];if(!h)return this._emitError(new Error("Unknown property")),!1;if(h==="userProperties"){f[h]||(f[h]=Object.create(null));let g=this._parseByType(a.propertiesTypes[h]);if(f[h][g.name])if(Array.isArray(f[h][g.name]))f[h][g.name].push(g.value);else{let v=f[h][g.name];f[h][g.name]=[v],f[h][g.name].push(g.value)}else f[h][g.name]=g.value;continue}f[h]?Array.isArray(f[h])?f[h].push(this._parseByType(a.propertiesTypes[h])):(f[h]=[f[h]],f[h].push(this._parseByType(a.propertiesTypes[h]))):f[h]=this._parseByType(a.propertiesTypes[h])}return f}_newPacket(){return s("_newPacket"),this.packet&&(this._list.consume(this.packet.length),s("_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)),s("_newPacket: new packet"),this.packet=new o,this._pos=0,!0}_emitError(u){s("_emitError",u),this.error=u,this.emit("error",u)}};n.exports=l}),BSt=On((e,n)=>{fn(),hn(),pn();var{Buffer:r}=(Ec(),na(Sc)),i=65536,o={},a=r.isBuffer(r.from([1,2]).subarray(0,1));function s(d){let f=r.allocUnsafe(2);return f.writeUInt8(d>>8,0),f.writeUInt8(d&255,1),f}function l(){for(let d=0;d<i;d++)o[d]=s(d)}function c(d){let f=0,p=0,h=r.allocUnsafe(4);do f=d%128|0,d=d/128|0,d>0&&(f=f|128),h.writeUInt8(f,p++);while(d>0&&p<4);return d>0&&(p=0),a?h.subarray(0,p):h.slice(0,p)}function u(d){let f=r.allocUnsafe(4);return f.writeUInt32BE(d,0),f}n.exports={cache:o,generateCache:l,generateNumber:s,genBufVariableByteInt:c,generate4ByteBuffer:u}}),jSt=On((e,n)=>{fn(),hn(),pn(),typeof Ao>"u"||!Ao.version||Ao.version.indexOf("v0.")===0||Ao.version.indexOf("v1.")===0&&Ao.version.indexOf("v1.8.")!==0?n.exports={nextTick:r}:n.exports=Ao;function r(i,o,a,s){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var l=arguments.length,c,u;switch(l){case 0:case 1:return Ao.nextTick(i);case 2:return Ao.nextTick(function(){i.call(null,o)});case 3:return Ao.nextTick(function(){i.call(null,o,a)});case 4:return Ao.nextTick(function(){i.call(null,o,a,s)});default:for(c=new Array(l-1),u=0;u<c.length;)c[u++]=arguments[u];return Ao.nextTick(function(){i.apply(null,c)})}}}),a6e=On((e,n)=>{fn(),hn(),pn();var r=o6e(),{Buffer:i}=(Ec(),na(Sc)),o=i.allocUnsafe(0),a=i.from([0]),s=BSt(),l=jSt().nextTick,c=wy()("mqtt-packet:writeToStream"),u=s.cache,d=s.generateNumber,f=s.generateCache,p=s.genBufVariableByteInt,h=s.generate4ByteBuffer,g=D,v=!0;function y(j,F,te){switch(c("generate called"),F.cork&&(F.cork(),l(_,F)),v&&(v=!1,f()),c("generate: packet.cmd: %s",j.cmd),j.cmd){case"connect":return S(j,F);case"connack":return b(j,F,te);case"publish":return E(j,F,te);case"puback":case"pubrec":case"pubrel":case"pubcomp":return w(j,F,te);case"subscribe":return C(j,F,te);case"suback":return x(j,F,te);case"unsubscribe":return T(j,F,te);case"unsuback":return R(j,F,te);case"pingreq":case"pingresp":return O(j,F);case"disconnect":return M(j,F,te);case"auth":return P(j,F,te);default:return F.destroy(new Error("Unknown command")),!1}}Object.defineProperty(y,"cacheNumbers",{get(){return g===D},set(j){j?((!u||Object.keys(u).length===0)&&(v=!0),g=D):(v=!1,g=B)}});function _(j){j.uncork()}function S(j,F,te){let oe=j||{},de=oe.protocolId||"MQTT",pe=oe.protocolVersion||4,me=oe.will,ve=oe.clean,he=oe.keepalive||0,be=oe.clientId||"",we=oe.username,De=oe.password,Ae=oe.properties;ve===void 0&&(ve=!0);let Ee=0;if(!de||typeof de!="string"&&!i.isBuffer(de))return F.destroy(new Error("Invalid protocolId")),!1;if(Ee+=de.length+2,pe!==3&&pe!==4&&pe!==5)return F.destroy(new Error("Invalid protocol version")),!1;if(Ee+=1,(typeof be=="string"||i.isBuffer(be))&&(be||pe>=4)&&(be||ve))Ee+=i.byteLength(be)+2;else{if(pe<4)return F.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(ve*1===0)return F.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof he!="number"||he<0||he>65535||he%1!==0)return F.destroy(new Error("Invalid keepalive")),!1;Ee+=2,Ee+=1;let Re,Te;if(pe===5){if(Re=K(F,Ae),!Re)return!1;Ee+=Re.length}if(me){if(typeof me!="object")return F.destroy(new Error("Invalid will")),!1;if(!me.topic||typeof me.topic!="string")return F.destroy(new Error("Invalid will topic")),!1;if(Ee+=i.byteLength(me.topic)+2,Ee+=2,me.payload)if(me.payload.length>=0)typeof me.payload=="string"?Ee+=i.byteLength(me.payload):Ee+=me.payload.length;else return F.destroy(new Error("Invalid will payload")),!1;if(Te={},pe===5){if(Te=K(F,me.properties),!Te)return!1;Ee+=Te.length}}let Oe=!1;if(we!=null)if(Z(we))Oe=!0,Ee+=i.byteLength(we)+2;else return F.destroy(new Error("Invalid username")),!1;if(De!=null){if(!Oe)return F.destroy(new Error("Username is required to use password")),!1;if(Z(De))Ee+=le(De)+2;else return F.destroy(new Error("Invalid password")),!1}F.write(r.CONNECT_HEADER),$(F,Ee),q(F,de),oe.bridgeMode&&(pe+=128),F.write(pe===131?r.VERSION131:pe===132?r.VERSION132:pe===4?r.VERSION4:pe===5?r.VERSION5:r.VERSION3);let Ne=0;return Ne|=we!=null?r.USERNAME_MASK:0,Ne|=De!=null?r.PASSWORD_MASK:0,Ne|=me&&me.retain?r.WILL_RETAIN_MASK:0,Ne|=me&&me.qos?me.qos<<r.WILL_QOS_SHIFT:0,Ne|=me?r.WILL_FLAG_MASK:0,Ne|=ve?r.CLEAN_SESSION_MASK:0,F.write(i.from([Ne])),g(F,he),pe===5&&Re.write(),q(F,be),me&&(pe===5&&Te.write(),U(F,me.topic),q(F,me.payload)),we!=null&&q(F,we),De!=null&&q(F,De),!0}function b(j,F,te){let oe=te?te.protocolVersion:4,de=j||{},pe=oe===5?de.reasonCode:de.returnCode,me=de.properties,ve=2;if(typeof pe!="number")return F.destroy(new Error("Invalid return code")),!1;let he=null;if(oe===5){if(he=K(F,me),!he)return!1;ve+=he.length}return F.write(r.CONNACK_HEADER),$(F,ve),F.write(de.sessionPresent?r.SESSIONPRESENT_HEADER:a),F.write(i.from([pe])),he==null||he.write(),!0}function E(j,F,te){c("publish: packet: %o",j);let oe=te?te.protocolVersion:4,de=j||{},pe=de.qos||0,me=de.retain?r.RETAIN_MASK:0,ve=de.topic,he=de.payload||o,be=de.messageId,we=de.properties,De=0;if(typeof ve=="string")De+=i.byteLength(ve)+2;else if(i.isBuffer(ve))De+=ve.length+2;else return F.destroy(new Error("Invalid topic")),!1;if(i.isBuffer(he)?De+=he.length:De+=i.byteLength(he),pe&&typeof be!="number")return F.destroy(new Error("Invalid messageId")),!1;pe&&(De+=2);let Ae=null;if(oe===5){if(Ae=K(F,we),!Ae)return!1;De+=Ae.length}return F.write(r.PUBLISH_HEADER[pe][de.dup?1:0][me?1:0]),$(F,De),g(F,le(ve)),F.write(ve),pe>0&&g(F,be),Ae==null||Ae.write(),c("publish: payload: %o",he),F.write(he)}function w(j,F,te){let oe=te?te.protocolVersion:4,de=j||{},pe=de.cmd||"puback",me=de.messageId,ve=de.dup&&pe==="pubrel"?r.DUP_MASK:0,he=0,be=de.reasonCode,we=de.properties,De=oe===5?3:2;if(pe==="pubrel"&&(he=1),typeof me!="number")return F.destroy(new Error("Invalid messageId")),!1;let Ae=null;if(oe===5&&typeof we=="object"){if(Ae=H(F,we,te,De),!Ae)return!1;De+=Ae.length}return F.write(r.ACKS[pe][he][ve][0]),De===3&&(De+=be!==0?1:-1),$(F,De),g(F,me),oe===5&&De!==2&&F.write(i.from([be])),Ae!==null?Ae.write():De===4&&F.write(i.from([0])),!0}function C(j,F,te){c("subscribe: packet: ");let oe=te?te.protocolVersion:4,de=j||{},pe=de.dup?r.DUP_MASK:0,me=de.messageId,ve=de.subscriptions,he=de.properties,be=0;if(typeof me!="number")return F.destroy(new Error("Invalid messageId")),!1;be+=2;let we=null;if(oe===5){if(we=K(F,he),!we)return!1;be+=we.length}if(typeof ve=="object"&&ve.length)for(let Ae=0;Ae<ve.length;Ae+=1){let Ee=ve[Ae].topic,Re=ve[Ae].qos;if(typeof Ee!="string")return F.destroy(new Error("Invalid subscriptions - invalid topic")),!1;if(typeof Re!="number")return F.destroy(new Error("Invalid subscriptions - invalid qos")),!1;if(oe===5){if(typeof(ve[Ae].nl||!1)!="boolean")return F.destroy(new Error("Invalid subscriptions - invalid No Local")),!1;if(typeof(ve[Ae].rap||!1)!="boolean")return F.destroy(new Error("Invalid subscriptions - invalid Retain as Published")),!1;let Te=ve[Ae].rh||0;if(typeof Te!="number"||Te>2)return F.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}be+=i.byteLength(Ee)+2+1}else return F.destroy(new Error("Invalid subscriptions")),!1;c("subscribe: writing to stream: %o",r.SUBSCRIBE_HEADER),F.write(r.SUBSCRIBE_HEADER[1][pe?1:0][0]),$(F,be),g(F,me),we!==null&&we.write();let De=!0;for(let Ae of ve){let Ee=Ae.topic,Re=Ae.qos,Te=+Ae.nl,Oe=+Ae.rap,Ne=Ae.rh,je;U(F,Ee),je=r.SUBSCRIBE_OPTIONS_QOS[Re],oe===5&&(je|=Te?r.SUBSCRIBE_OPTIONS_NL:0,je|=Oe?r.SUBSCRIBE_OPTIONS_RAP:0,je|=Ne?r.SUBSCRIBE_OPTIONS_RH[Ne]:0),De=F.write(i.from([je]))}return De}function x(j,F,te){let oe=te?te.protocolVersion:4,de=j||{},pe=de.messageId,me=de.granted,ve=de.properties,he=0;if(typeof pe!="number")return F.destroy(new Error("Invalid messageId")),!1;if(he+=2,typeof me=="object"&&me.length)for(let we=0;we<me.length;we+=1){if(typeof me[we]!="number")return F.destroy(new Error("Invalid qos vector")),!1;he+=1}else return F.destroy(new Error("Invalid qos vector")),!1;let be=null;if(oe===5){if(be=H(F,ve,te,he),!be)return!1;he+=be.length}return F.write(r.SUBACK_HEADER),$(F,he),g(F,pe),be!==null&&be.write(),F.write(i.from(me))}function T(j,F,te){let oe=te?te.protocolVersion:4,de=j||{},pe=de.messageId,me=de.dup?r.DUP_MASK:0,ve=de.unsubscriptions,he=de.properties,be=0;if(typeof pe!="number")return F.destroy(new Error("Invalid messageId")),!1;if(be+=2,typeof ve=="object"&&ve.length)for(let Ae=0;Ae<ve.length;Ae+=1){if(typeof ve[Ae]!="string")return F.destroy(new Error("Invalid unsubscriptions")),!1;be+=i.byteLength(ve[Ae])+2}else return F.destroy(new Error("Invalid unsubscriptions")),!1;let we=null;if(oe===5){if(we=K(F,he),!we)return!1;be+=we.length}F.write(r.UNSUBSCRIBE_HEADER[1][me?1:0][0]),$(F,be),g(F,pe),we!==null&&we.write();let De=!0;for(let Ae=0;Ae<ve.length;Ae++)De=U(F,ve[Ae]);return De}function R(j,F,te){let oe=te?te.protocolVersion:4,de=j||{},pe=de.messageId,me=de.dup?r.DUP_MASK:0,ve=de.granted,he=de.properties,be=de.cmd,we=0,De=2;if(typeof pe!="number")return F.destroy(new Error("Invalid messageId")),!1;if(oe===5)if(typeof ve=="object"&&ve.length)for(let Ee=0;Ee<ve.length;Ee+=1){if(typeof ve[Ee]!="number")return F.destroy(new Error("Invalid qos vector")),!1;De+=1}else return F.destroy(new Error("Invalid qos vector")),!1;let Ae=null;if(oe===5){if(Ae=H(F,he,te,De),!Ae)return!1;De+=Ae.length}return F.write(r.ACKS[be][we][me][0]),$(F,De),g(F,pe),Ae!==null&&Ae.write(),oe===5&&F.write(i.from(ve)),!0}function O(j,F,te){return F.write(r.EMPTY[j.cmd])}function M(j,F,te){let oe=te?te.protocolVersion:4,de=j||{},pe=de.reasonCode,me=de.properties,ve=oe===5?1:0,he=null;if(oe===5){if(he=H(F,me,te,ve),!he)return!1;ve+=he.length}return F.write(i.from([r.codes.disconnect<<4])),$(F,ve),oe===5&&F.write(i.from([pe])),he!==null&&he.write(),!0}function P(j,F,te){let oe=te?te.protocolVersion:4,de=j||{},pe=de.reasonCode,me=de.properties,ve=oe===5?1:0;oe!==5&&F.destroy(new Error("Invalid mqtt version for auth packet"));let he=H(F,me,te,ve);return he?(ve+=he.length,F.write(i.from([r.codes.auth<<4])),$(F,ve),F.write(i.from([pe])),he!==null&&he.write(),!0):!1}var k={};function $(j,F){if(F>r.VARBYTEINT_MAX)return j.destroy(new Error(`Invalid variable byte integer: ${F}`)),!1;let te=k[F];return te||(te=p(F),F<16384&&(k[F]=te)),c("writeVarByteInt: writing to stream: %o",te),j.write(te)}function U(j,F){let te=i.byteLength(F);return g(j,te),c("writeString: %s",F),j.write(F,"utf8")}function z(j,F,te){U(j,F),U(j,te)}function D(j,F){return c("writeNumberCached: number: %d",F),c("writeNumberCached: %o",u[F]),j.write(u[F])}function B(j,F){let te=d(F);return c("writeNumberGenerated: %o",te),j.write(te)}function Y(j,F){let te=h(F);return c("write4ByteNumber: %o",te),j.write(te)}function q(j,F){typeof F=="string"?U(j,F):F?(g(j,F.length),j.write(F)):g(j,0)}function K(j,F){if(typeof F!="object"||F.length!=null)return{length:1,write(){Q(j,{},0)}};let te=0;function oe(de,pe){let me=r.propertiesTypes[de],ve=0;switch(me){case"byte":{if(typeof pe!="boolean")return j.destroy(new Error(`Invalid ${de}: ${pe}`)),!1;ve+=2;break}case"int8":{if(typeof pe!="number"||pe<0||pe>255)return j.destroy(new Error(`Invalid ${de}: ${pe}`)),!1;ve+=2;break}case"binary":{if(pe&&pe===null)return j.destroy(new Error(`Invalid ${de}: ${pe}`)),!1;ve+=1+i.byteLength(pe)+2;break}case"int16":{if(typeof pe!="number"||pe<0||pe>65535)return j.destroy(new Error(`Invalid ${de}: ${pe}`)),!1;ve+=3;break}case"int32":{if(typeof pe!="number"||pe<0||pe>4294967295)return j.destroy(new Error(`Invalid ${de}: ${pe}`)),!1;ve+=5;break}case"var":{if(typeof pe!="number"||pe<0||pe>268435455)return j.destroy(new Error(`Invalid ${de}: ${pe}`)),!1;ve+=1+i.byteLength(p(pe));break}case"string":{if(typeof pe!="string")return j.destroy(new Error(`Invalid ${de}: ${pe}`)),!1;ve+=3+i.byteLength(pe.toString());break}case"pair":{if(typeof pe!="object")return j.destroy(new Error(`Invalid ${de}: ${pe}`)),!1;ve+=Object.getOwnPropertyNames(pe).reduce((he,be)=>{let we=pe[be];return Array.isArray(we)?he+=we.reduce((De,Ae)=>(De+=3+i.byteLength(be.toString())+2+i.byteLength(Ae.toString()),De),0):he+=3+i.byteLength(be.toString())+2+i.byteLength(pe[be].toString()),he},0);break}default:return j.destroy(new Error(`Invalid property ${de}: ${pe}`)),!1}return ve}if(F)for(let de in F){let pe=0,me=0,ve=F[de];if(Array.isArray(ve))for(let he=0;he<ve.length;he++){if(me=oe(de,ve[he]),!me)return!1;pe+=me}else{if(me=oe(de,ve),!me)return!1;pe=me}if(!pe)return!1;te+=pe}return{length:i.byteLength(p(te))+te,write(){Q(j,F,te)}}}function H(j,F,te,oe){let de=["reasonString","userProperties"],pe=te&&te.properties&&te.properties.maximumPacketSize?te.properties.maximumPacketSize:0,me=K(j,F);if(pe)for(;oe+me.length>pe;){let ve=de.shift();if(ve&&F[ve])delete F[ve],me=K(j,F);else return!1}return me}function G(j,F,te){switch(r.propertiesTypes[F]){case"byte":{j.write(i.from([r.properties[F]])),j.write(i.from([+te]));break}case"int8":{j.write(i.from([r.properties[F]])),j.write(i.from([te]));break}case"binary":{j.write(i.from([r.properties[F]])),q(j,te);break}case"int16":{j.write(i.from([r.properties[F]])),g(j,te);break}case"int32":{j.write(i.from([r.properties[F]])),Y(j,te);break}case"var":{j.write(i.from([r.properties[F]])),$(j,te);break}case"string":{j.write(i.from([r.properties[F]])),U(j,te);break}case"pair":{Object.getOwnPropertyNames(te).forEach(oe=>{let de=te[oe];Array.isArray(de)?de.forEach(pe=>{j.write(i.from([r.properties[F]])),z(j,oe.toString(),pe.toString())}):(j.write(i.from([r.properties[F]])),z(j,oe.toString(),de.toString()))});break}default:return j.destroy(new Error(`Invalid property ${F} value: ${te}`)),!1}}function Q(j,F,te){$(j,te);for(let oe in F)if(Object.prototype.hasOwnProperty.call(F,oe)&&F[oe]!==null){let de=F[oe];if(Array.isArray(de))for(let pe=0;pe<de.length;pe++)G(j,oe,de[pe]);else G(j,oe,de)}}function le(j){return j?j instanceof i?j.length:i.byteLength(j):0}function Z(j){return typeof j=="string"||j instanceof i}n.exports=y}),USt=On((e,n)=>{fn(),hn(),pn();var r=a6e(),{EventEmitter:i}=(KR(),na(YC)),{Buffer:o}=(Ec(),na(Sc));function a(l,c){let u=new s;return r(l,u,c),u.concat()}var s=class extends i{constructor(){super(),this._array=new Array(20),this._i=0}write(l){return this._array[this._i++]=l,!0}concat(){let l=0,c=new Array(this._array.length),u=this._array,d=0,f;for(f=0;f<u.length&&u[f]!==void 0;f++)typeof u[f]!="string"?c[f]=u[f].length:c[f]=o.byteLength(u[f]),l+=c[f];let p=o.allocUnsafe(l);for(f=0;f<u.length&&u[f]!==void 0;f++)typeof u[f]!="string"?(u[f].copy(p,d),d+=c[f]):(p.write(u[f],d),d+=c[f]);return p}destroy(l){l&&this.emit("error",l)}};n.exports=a}),HSt=On(e=>{fn(),hn(),pn(),e.parser=FSt().parser,e.generate=USt(),e.writeToStream=a6e()}),s6e=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=class{constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let r=this.nextId++;return this.nextId===65536&&(this.nextId=1),r}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(r){return!0}deallocate(r){}clear(){}};e.default=n}),zSt=On((e,n)=>{fn(),hn(),pn(),n.exports=i;function r(a){return a instanceof RF?RF.from(a):new a.constructor(a.buffer.slice(),a.byteOffset,a.length)}function i(a){if(a=a||{},a.circles)return o(a);return a.proto?c:l;function s(u,d){for(var f=Object.keys(u),p=new Array(f.length),h=0;h<f.length;h++){var g=f[h],v=u[g];typeof v!="object"||v===null?p[g]=v:v instanceof Date?p[g]=new Date(v):ArrayBuffer.isView(v)?p[g]=r(v):p[g]=d(v)}return p}function l(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return s(u,l);if(u instanceof Map)return new Map(s(Array.from(u),l));if(u instanceof Set)return new Set(s(Array.from(u),l));var d={};for(var f in u)if(Object.hasOwnProperty.call(u,f)!==!1){var p=u[f];typeof p!="object"||p===null?d[f]=p:p instanceof Date?d[f]=new Date(p):p instanceof Map?d[f]=new Map(s(Array.from(p),l)):p instanceof Set?d[f]=new Set(s(Array.from(p),l)):ArrayBuffer.isView(p)?d[f]=r(p):d[f]=l(p)}return d}function c(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return s(u,c);if(u instanceof Map)return new Map(s(Array.from(u),c));if(u instanceof Set)return new Set(s(Array.from(u),c));var d={};for(var f in u){var p=u[f];typeof p!="object"||p===null?d[f]=p:p instanceof Date?d[f]=new Date(p):p instanceof Map?d[f]=new Map(s(Array.from(p),c)):p instanceof Set?d[f]=new Set(s(Array.from(p),c)):ArrayBuffer.isView(p)?d[f]=r(p):d[f]=c(p)}return d}}function o(a){var s=[],l=[];return a.proto?d:u;function c(f,p){for(var h=Object.keys(f),g=new Array(h.length),v=0;v<h.length;v++){var y=h[v],_=f[y];if(typeof _!="object"||_===null)g[y]=_;else if(_ instanceof Date)g[y]=new Date(_);else if(ArrayBuffer.isView(_))g[y]=r(_);else{var S=s.indexOf(_);S!==-1?g[y]=l[S]:g[y]=p(_)}}return g}function u(f){if(typeof f!="object"||f===null)return f;if(f instanceof Date)return new Date(f);if(Array.isArray(f))return c(f,u);if(f instanceof Map)return new Map(c(Array.from(f),u));if(f instanceof Set)return new Set(c(Array.from(f),u));var p={};s.push(f),l.push(p);for(var h in f)if(Object.hasOwnProperty.call(f,h)!==!1){var g=f[h];if(typeof g!="object"||g===null)p[h]=g;else if(g instanceof Date)p[h]=new Date(g);else if(g instanceof Map)p[h]=new Map(c(Array.from(g),u));else if(g instanceof Set)p[h]=new Set(c(Array.from(g),u));else if(ArrayBuffer.isView(g))p[h]=r(g);else{var v=s.indexOf(g);v!==-1?p[h]=l[v]:p[h]=u(g)}}return s.pop(),l.pop(),p}function d(f){if(typeof f!="object"||f===null)return f;if(f instanceof Date)return new Date(f);if(Array.isArray(f))return c(f,d);if(f instanceof Map)return new Map(c(Array.from(f),d));if(f instanceof Set)return new Set(c(Array.from(f),d));var p={};s.push(f),l.push(p);for(var h in f){var g=f[h];if(typeof g!="object"||g===null)p[h]=g;else if(g instanceof Date)p[h]=new Date(g);else if(g instanceof Map)p[h]=new Map(c(Array.from(g),d));else if(g instanceof Set)p[h]=new Set(c(Array.from(g),d));else if(ArrayBuffer.isView(g))p[h]=r(g);else{var v=s.indexOf(g);v!==-1?p[h]=l[v]:p[h]=d(g)}}return s.pop(),l.pop(),p}}}),VSt=On((e,n)=>{fn(),hn(),pn(),n.exports=zSt()()}),GSt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0}),e.validateTopics=e.validateTopic=void 0;function n(i){let o=i.split("/");for(let a=0;a<o.length;a++)if(o[a]!=="+"){if(o[a]==="#")return a===o.length-1;if(o[a].indexOf("+")!==-1||o[a].indexOf("#")!==-1)return!1}return!0}e.validateTopic=n;function r(i){if(i.length===0)return"empty_topic_list";for(let o=0;o<i.length;o++)if(!n(i[o]))return i[o];return null}e.validateTopics=r}),l6e=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=qC(),r={objectMode:!0},i={clean:!0},o=class{constructor(a){this.options=a||{},this.options=Object.assign(Object.assign({},i),a),this._inflights=new Map}put(a,s){return this._inflights.set(a.messageId,a),s&&s(),this}createStream(){let a=new n.Readable(r),s=[],l=!1,c=0;return this._inflights.forEach((u,d)=>{s.push(u)}),a._read=()=>{!l&&c<s.length?a.push(s[c++]):a.push(null)},a.destroy=u=>{if(!l)return l=!0,setTimeout(()=>{a.emit("close")},0),a},a}del(a,s){let l=this._inflights.get(a.messageId);return l?(this._inflights.delete(a.messageId),s(null,l)):s&&s(new Error("missing packet")),this}get(a,s){let l=this._inflights.get(a.messageId);return l?s(null,l):s&&s(new Error("missing packet")),this}close(a){this.options.clean&&(this._inflights=null),a&&a()}};e.default=o}),WSt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=[0,16,128,131,135,144,145,151,153],r=(i,o,a)=>{i.log("handlePublish: packet %o",o),a=typeof a<"u"?a:i.noop;let s=o.topic.toString(),l=o.payload,{qos:c}=o,{messageId:u}=o,{options:d}=i;if(i.options.protocolVersion===5){let f;if(o.properties&&(f=o.properties.topicAlias),typeof f<"u")if(s.length===0)if(f>0&&f<=65535){let p=i.topicAliasRecv.getTopicByAlias(f);if(p)s=p,i.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",s,f);else{i.log("handlePublish :: unregistered topic alias. alias: %d",f),i.emit("error",new Error("Received unregistered Topic Alias"));return}}else{i.log("handlePublish :: topic alias out of range. alias: %d",f),i.emit("error",new Error("Received Topic Alias is out of range"));return}else if(i.topicAliasRecv.put(s,f))i.log("handlePublish :: registered topic: %s - alias: %d",s,f);else{i.log("handlePublish :: topic alias out of range. alias: %d",f),i.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(i.log("handlePublish: qos %d",c),c){case 2:{d.customHandleAcks(s,l,o,(f,p)=>{if(typeof f=="number"&&(p=f,f=null),f)return i.emit("error",f);if(n.indexOf(p)===-1)return i.emit("error",new Error("Wrong reason code for pubrec"));p?i._sendPacket({cmd:"pubrec",messageId:u,reasonCode:p},a):i.incomingStore.put(o,()=>{i._sendPacket({cmd:"pubrec",messageId:u},a)})});break}case 1:{d.customHandleAcks(s,l,o,(f,p)=>{if(typeof f=="number"&&(p=f,f=null),f)return i.emit("error",f);if(n.indexOf(p)===-1)return i.emit("error",new Error("Wrong reason code for puback"));p||i.emit("message",s,l,o),i.handleMessage(o,h=>{if(h)return a&&a(h);i._sendPacket({cmd:"puback",messageId:u,reasonCode:p},a)})});break}case 0:i.emit("message",s,l,o),i.handleMessage(o,a);break;default:i.log("handlePublish: unknown QoS. Doing nothing.");break}};e.default=r}),YSt=On((e,n)=>{n.exports={version:"5.10.3"}}),XR=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0}),e.MQTTJS_VERSION=e.nextTick=e.applyMixin=e.ErrorWithReasonCode=void 0;var n=class c6e extends Error{constructor(o,a){super(o),this.code=a,Object.setPrototypeOf(this,c6e.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};e.ErrorWithReasonCode=n;function r(i,o,a=!1){var s;let l=[o];for(;;){let c=l[0],u=Object.getPrototypeOf(c);if(u!=null&&u.prototype)l.unshift(u);else break}for(let c of l)for(let u of Object.getOwnPropertyNames(c.prototype))(a||u!=="constructor")&&Object.defineProperty(i.prototype,u,(s=Object.getOwnPropertyDescriptor(c.prototype,u))!==null&&s!==void 0?s:Object.create(null))}e.applyMixin=r,e.nextTick=typeof(Ao==null?void 0:Ao.nextTick)=="function"?Ao.nextTick:i=>{setTimeout(i,0)},e.MQTTJS_VERSION=YSt().version}),$7=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=void 0;var n=XR();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 r=(i,o)=>{let{messageId:a}=o,s=o.cmd,l=null,c=i.outgoing[a]?i.outgoing[a].cb:null,u=null;if(!c){i.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(i.log("_handleAck :: packet type",s),s){case"pubcomp":case"puback":{let d=o.reasonCode;d&&d>0&&d!==16?(u=new n.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[d]}`,d),i._removeOutgoingAndStoreMessage(a,()=>{c(u,o)})):i._removeOutgoingAndStoreMessage(a,c);break}case"pubrec":{l={cmd:"pubrel",qos:2,messageId:a};let d=o.reasonCode;d&&d>0&&d!==16?(u=new n.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[d]}`,d),i._removeOutgoingAndStoreMessage(a,()=>{c(u,o)})):i._sendPacket(l);break}case"suback":{delete i.outgoing[a],i.messageIdProvider.deallocate(a);let d=o.granted;for(let f=0;f<d.length;f++){let p=d[f];if(p&128){u=new Error(`Subscribe error: ${e.ReasonCodes[p]}`),u.code=p;let h=i.messageIdToTopic[a];h&&h.forEach(g=>{delete i._resubscribeTopics[g]})}}delete i.messageIdToTopic[a],i._invokeStoreProcessingQueue(),c(u,o);break}case"unsuback":{delete i.outgoing[a],i.messageIdProvider.deallocate(a),i._invokeStoreProcessingQueue(),c(null,o);break}default:i.emit("error",new Error("unrecognized packet type"))}i.disconnecting&&Object.keys(i.outgoing).length===0&&i.emit("outgoingEmpty")};e.default=r}),qSt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=XR(),r=$7(),i=(o,a)=>{let{options:s}=o,l=s.protocolVersion,c=l===5?a.reasonCode:a.returnCode;if(l!==5){let u=new n.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${l}`,c);o.emit("error",u);return}o.handleAuth(a,(u,d)=>{if(u){o.emit("error",u);return}if(c===24)o.reconnecting=!1,o._sendPacket(d);else{let f=new n.ErrorWithReasonCode(`Connection refused: ${r.ReasonCodes[c]}`,c);o.emit("error",f)}})};e.default=i}),KSt=On(e=>{var h,g,v,y,_,S,b,E,w,C,x,T,R,O,M,P,k,$,U,z,D,B,Y,q,K,H,ane,Q,le,Z,j,u6e,te,oe,de,ib,ob,sne,L5,$5,Da,lne,JM,Ee;fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;var n=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r=new Set,i=typeof Ao=="object"&&Ao?Ao:{},o=(Re,Te,Oe,Ne)=>{typeof i.emitWarning=="function"?i.emitWarning(Re,Te,Oe,Ne):console.error(`[${Oe}] ${Te}: ${Re}`)},a=globalThis.AbortController,s=globalThis.AbortSignal;if(typeof a>"u"){s=class{constructor(){$t(this,"onabort");$t(this,"_onabort",[]);$t(this,"reason");$t(this,"aborted",!1)}addEventListener(Oe,Ne){this._onabort.push(Ne)}},a=class{constructor(){$t(this,"signal",new s);Te()}abort(Oe){var Ne,je;if(!this.signal.aborted){this.signal.reason=Oe,this.signal.aborted=!0;for(let ne of this.signal._onabort)ne(Oe);(je=(Ne=this.signal).onabort)==null||je.call(Ne,Oe)}}};let Re=((h=i.env)==null?void 0:h.LRU_CACHE_IGNORE_AC_WARNING)!=="1",Te=()=>{Re&&(Re=!1,o("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",Te))}}var l=Re=>!r.has(Re),c=Re=>Re&&Re===Math.floor(Re)&&Re>0&&isFinite(Re),u=Re=>c(Re)?Re<=Math.pow(2,8)?Uint8Array:Re<=Math.pow(2,16)?Uint16Array:Re<=Math.pow(2,32)?Uint32Array:Re<=Number.MAX_SAFE_INTEGER?d:null:null,d=class extends Array{constructor(Re){super(Re),this.fill(0)}},f=(g=class{constructor(Te,Oe){$t(this,"heap");$t(this,"length");if(!He(g,v))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new Oe(Te),this.length=0}static create(Te){let Oe=u(Te);if(!Oe)return[];xn(g,v,!0);let Ne=new g(Te,Oe);return xn(g,v,!1),Ne}push(Te){this.heap[this.length++]=Te}pop(){return this.heap[--this.length]}},v=new WeakMap,Xn(g,v,!1),g),p=(Ee=class{constructor(Te){Xn(this,H);Xn(this,y);Xn(this,_);Xn(this,S);Xn(this,b);Xn(this,E);$t(this,"ttl");$t(this,"ttlResolution");$t(this,"ttlAutopurge");$t(this,"updateAgeOnGet");$t(this,"updateAgeOnHas");$t(this,"allowStale");$t(this,"noDisposeOnSet");$t(this,"noUpdateTTL");$t(this,"maxEntrySize");$t(this,"sizeCalculation");$t(this,"noDeleteOnFetchRejection");$t(this,"noDeleteOnStaleGet");$t(this,"allowStaleOnFetchAbort");$t(this,"allowStaleOnFetchRejection");$t(this,"ignoreFetchAbort");Xn(this,w);Xn(this,C);Xn(this,x);Xn(this,T);Xn(this,R);Xn(this,O);Xn(this,M);Xn(this,P);Xn(this,k);Xn(this,$);Xn(this,U);Xn(this,z);Xn(this,D);Xn(this,B);Xn(this,Y);Xn(this,q);Xn(this,K);Xn(this,Q,()=>{});Xn(this,le,()=>{});Xn(this,Z,()=>{});Xn(this,j,()=>!1);Xn(this,te,Te=>{});Xn(this,oe,(Te,Oe,Ne)=>{});Xn(this,de,(Te,Oe,Ne,je)=>{if(Ne||je)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:Oe=0,ttl:Ne,ttlResolution:je=1,ttlAutopurge:ne,updateAgeOnGet:J,updateAgeOnHas:ae,allowStale:Se,dispose:xe,disposeAfter:ue,noDisposeOnSet:Me,noUpdateTTL:$e,maxSize:ge=0,maxEntrySize:Ve=0,sizeCalculation:st,fetchMethod:Je,noDeleteOnFetchRejection:ot,noDeleteOnStaleGet:Xe,allowStaleOnFetchRejection:Ze,allowStaleOnFetchAbort:bt,ignoreFetchAbort:at}=Te;if(Oe!==0&&!c(Oe))throw new TypeError("max option must be a nonnegative integer");let pt=Oe?u(Oe):Array;if(!pt)throw new Error("invalid max value: "+Oe);if(xn(this,y,Oe),xn(this,_,ge),this.maxEntrySize=Ve||He(this,_),this.sizeCalculation=st,this.sizeCalculation){if(!He(this,_)&&!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(Je!==void 0&&typeof Je!="function")throw new TypeError("fetchMethod must be a function if specified");if(xn(this,E,Je),xn(this,q,!!Je),xn(this,x,new Map),xn(this,T,new Array(Oe).fill(void 0)),xn(this,R,new Array(Oe).fill(void 0)),xn(this,O,new pt(Oe)),xn(this,M,new pt(Oe)),xn(this,P,0),xn(this,k,0),xn(this,$,f.create(Oe)),xn(this,w,0),xn(this,C,0),typeof xe=="function"&&xn(this,S,xe),typeof ue=="function"?(xn(this,b,ue),xn(this,U,[])):(xn(this,b,void 0),xn(this,U,void 0)),xn(this,Y,!!He(this,S)),xn(this,K,!!He(this,b)),this.noDisposeOnSet=!!Me,this.noUpdateTTL=!!$e,this.noDeleteOnFetchRejection=!!ot,this.allowStaleOnFetchRejection=!!Ze,this.allowStaleOnFetchAbort=!!bt,this.ignoreFetchAbort=!!at,this.maxEntrySize!==0){if(He(this,_)!==0&&!c(He(this,_)))throw new TypeError("maxSize must be a positive integer if specified");if(!c(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");ir(this,H,u6e).call(this)}if(this.allowStale=!!Se,this.noDeleteOnStaleGet=!!Xe,this.updateAgeOnGet=!!J,this.updateAgeOnHas=!!ae,this.ttlResolution=c(je)||je===0?je:1,this.ttlAutopurge=!!ne,this.ttl=Ne||0,this.ttl){if(!c(this.ttl))throw new TypeError("ttl must be a positive integer if specified");ir(this,H,ane).call(this)}if(He(this,y)===0&&this.ttl===0&&He(this,_)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!He(this,y)&&!He(this,_)){let Ct="LRU_CACHE_UNBOUNDED";l(Ct)&&(r.add(Ct),o("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Ct,Ee))}}static unsafeExposeInternals(Te){return{starts:He(Te,D),ttls:He(Te,B),sizes:He(Te,z),keyMap:He(Te,x),keyList:He(Te,T),valList:He(Te,R),next:He(Te,O),prev:He(Te,M),get head(){return He(Te,P)},get tail(){return He(Te,k)},free:He(Te,$),isBackgroundFetch:Oe=>{var Ne;return ir(Ne=Te,H,Da).call(Ne,Oe)},backgroundFetch:(Oe,Ne,je,ne)=>{var J;return ir(J=Te,H,$5).call(J,Oe,Ne,je,ne)},moveToTail:Oe=>{var Ne;return ir(Ne=Te,H,JM).call(Ne,Oe)},indexes:Oe=>{var Ne;return ir(Ne=Te,H,ib).call(Ne,Oe)},rindexes:Oe=>{var Ne;return ir(Ne=Te,H,ob).call(Ne,Oe)},isStale:Oe=>{var Ne;return He(Ne=Te,j).call(Ne,Oe)}}}get max(){return He(this,y)}get maxSize(){return He(this,_)}get calculatedSize(){return He(this,C)}get size(){return He(this,w)}get fetchMethod(){return He(this,E)}get dispose(){return He(this,S)}get disposeAfter(){return He(this,b)}getRemainingTTL(Te){return He(this,x).has(Te)?1/0:0}*entries(){for(let Te of ir(this,H,ib).call(this))He(this,R)[Te]!==void 0&&He(this,T)[Te]!==void 0&&!ir(this,H,Da).call(this,He(this,R)[Te])&&(yield[He(this,T)[Te],He(this,R)[Te]])}*rentries(){for(let Te of ir(this,H,ob).call(this))He(this,R)[Te]!==void 0&&He(this,T)[Te]!==void 0&&!ir(this,H,Da).call(this,He(this,R)[Te])&&(yield[He(this,T)[Te],He(this,R)[Te]])}*keys(){for(let Te of ir(this,H,ib).call(this)){let Oe=He(this,T)[Te];Oe!==void 0&&!ir(this,H,Da).call(this,He(this,R)[Te])&&(yield Oe)}}*rkeys(){for(let Te of ir(this,H,ob).call(this)){let Oe=He(this,T)[Te];Oe!==void 0&&!ir(this,H,Da).call(this,He(this,R)[Te])&&(yield Oe)}}*values(){for(let Te of ir(this,H,ib).call(this))He(this,R)[Te]!==void 0&&!ir(this,H,Da).call(this,He(this,R)[Te])&&(yield He(this,R)[Te])}*rvalues(){for(let Te of ir(this,H,ob).call(this))He(this,R)[Te]!==void 0&&!ir(this,H,Da).call(this,He(this,R)[Te])&&(yield He(this,R)[Te])}[Symbol.iterator](){return this.entries()}find(Te,Oe={}){for(let Ne of ir(this,H,ib).call(this)){let je=He(this,R)[Ne],ne=ir(this,H,Da).call(this,je)?je.__staleWhileFetching:je;if(ne!==void 0&&Te(ne,He(this,T)[Ne],this))return this.get(He(this,T)[Ne],Oe)}}forEach(Te,Oe=this){for(let Ne of ir(this,H,ib).call(this)){let je=He(this,R)[Ne],ne=ir(this,H,Da).call(this,je)?je.__staleWhileFetching:je;ne!==void 0&&Te.call(Oe,ne,He(this,T)[Ne],this)}}rforEach(Te,Oe=this){for(let Ne of ir(this,H,ob).call(this)){let je=He(this,R)[Ne],ne=ir(this,H,Da).call(this,je)?je.__staleWhileFetching:je;ne!==void 0&&Te.call(Oe,ne,He(this,T)[Ne],this)}}purgeStale(){let Te=!1;for(let Oe of ir(this,H,ob).call(this,{allowStale:!0}))He(this,j).call(this,Oe)&&(this.delete(He(this,T)[Oe]),Te=!0);return Te}dump(){let Te=[];for(let Oe of ir(this,H,ib).call(this,{allowStale:!0})){let Ne=He(this,T)[Oe],je=He(this,R)[Oe],ne=ir(this,H,Da).call(this,je)?je.__staleWhileFetching:je;if(ne===void 0||Ne===void 0)continue;let J={value:ne};if(He(this,B)&&He(this,D)){J.ttl=He(this,B)[Oe];let ae=n.now()-He(this,D)[Oe];J.start=Math.floor(Date.now()-ae)}He(this,z)&&(J.size=He(this,z)[Oe]),Te.unshift([Ne,J])}return Te}load(Te){this.clear();for(let[Oe,Ne]of Te){if(Ne.start){let je=Date.now()-Ne.start;Ne.start=n.now()-je}this.set(Oe,Ne.value,Ne)}}set(Te,Oe,Ne={}){var $e,ge,Ve,st,Je;if(Oe===void 0)return this.delete(Te),this;let{ttl:je=this.ttl,start:ne,noDisposeOnSet:J=this.noDisposeOnSet,sizeCalculation:ae=this.sizeCalculation,status:Se}=Ne,{noUpdateTTL:xe=this.noUpdateTTL}=Ne,ue=He(this,de).call(this,Te,Oe,Ne.size||0,ae);if(this.maxEntrySize&&ue>this.maxEntrySize)return Se&&(Se.set="miss",Se.maxEntrySizeExceeded=!0),this.delete(Te),this;let Me=He(this,w)===0?void 0:He(this,x).get(Te);if(Me===void 0)Me=He(this,w)===0?He(this,k):He(this,$).length!==0?He(this,$).pop():He(this,w)===He(this,y)?ir(this,H,L5).call(this,!1):He(this,w),He(this,T)[Me]=Te,He(this,R)[Me]=Oe,He(this,x).set(Te,Me),He(this,O)[He(this,k)]=Me,He(this,M)[Me]=He(this,k),xn(this,k,Me),sE(this,w)._++,He(this,oe).call(this,Me,ue,Se),Se&&(Se.set="add"),xe=!1;else{ir(this,H,JM).call(this,Me);let ot=He(this,R)[Me];if(Oe!==ot){if(He(this,q)&&ir(this,H,Da).call(this,ot)){ot.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Xe}=ot;Xe!==void 0&&!J&&(He(this,Y)&&(($e=He(this,S))==null||$e.call(this,Xe,Te,"set")),He(this,K)&&((ge=He(this,U))==null||ge.push([Xe,Te,"set"])))}else J||(He(this,Y)&&((Ve=He(this,S))==null||Ve.call(this,ot,Te,"set")),He(this,K)&&((st=He(this,U))==null||st.push([ot,Te,"set"])));if(He(this,te).call(this,Me),He(this,oe).call(this,Me,ue,Se),He(this,R)[Me]=Oe,Se){Se.set="replace";let Xe=ot&&ir(this,H,Da).call(this,ot)?ot.__staleWhileFetching:ot;Xe!==void 0&&(Se.oldValue=Xe)}}else Se&&(Se.set="update")}if(je!==0&&!He(this,B)&&ir(this,H,ane).call(this),He(this,B)&&(xe||He(this,Z).call(this,Me,je,ne),Se&&He(this,le).call(this,Se,Me)),!J&&He(this,K)&&He(this,U)){let ot=He(this,U),Xe;for(;Xe=ot==null?void 0:ot.shift();)(Je=He(this,b))==null||Je.call(this,...Xe)}return this}pop(){var Te;try{for(;He(this,w);){let Oe=He(this,R)[He(this,P)];if(ir(this,H,L5).call(this,!0),ir(this,H,Da).call(this,Oe)){if(Oe.__staleWhileFetching)return Oe.__staleWhileFetching}else if(Oe!==void 0)return Oe}}finally{if(He(this,K)&&He(this,U)){let Oe=He(this,U),Ne;for(;Ne=Oe==null?void 0:Oe.shift();)(Te=He(this,b))==null||Te.call(this,...Ne)}}}has(Te,Oe={}){let{updateAgeOnHas:Ne=this.updateAgeOnHas,status:je}=Oe,ne=He(this,x).get(Te);if(ne!==void 0){let J=He(this,R)[ne];if(ir(this,H,Da).call(this,J)&&J.__staleWhileFetching===void 0)return!1;if(He(this,j).call(this,ne))je&&(je.has="stale",He(this,le).call(this,je,ne));else return Ne&&He(this,Q).call(this,ne),je&&(je.has="hit",He(this,le).call(this,je,ne)),!0}else je&&(je.has="miss");return!1}peek(Te,Oe={}){let{allowStale:Ne=this.allowStale}=Oe,je=He(this,x).get(Te);if(je!==void 0&&(Ne||!He(this,j).call(this,je))){let ne=He(this,R)[je];return ir(this,H,Da).call(this,ne)?ne.__staleWhileFetching:ne}}async fetch(Te,Oe={}){let{allowStale:Ne=this.allowStale,updateAgeOnGet:je=this.updateAgeOnGet,noDeleteOnStaleGet:ne=this.noDeleteOnStaleGet,ttl:J=this.ttl,noDisposeOnSet:ae=this.noDisposeOnSet,size:Se=0,sizeCalculation:xe=this.sizeCalculation,noUpdateTTL:ue=this.noUpdateTTL,noDeleteOnFetchRejection:Me=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:$e=this.allowStaleOnFetchRejection,ignoreFetchAbort:ge=this.ignoreFetchAbort,allowStaleOnFetchAbort:Ve=this.allowStaleOnFetchAbort,context:st,forceRefresh:Je=!1,status:ot,signal:Xe}=Oe;if(!He(this,q))return ot&&(ot.fetch="get"),this.get(Te,{allowStale:Ne,updateAgeOnGet:je,noDeleteOnStaleGet:ne,status:ot});let Ze={allowStale:Ne,updateAgeOnGet:je,noDeleteOnStaleGet:ne,ttl:J,noDisposeOnSet:ae,size:Se,sizeCalculation:xe,noUpdateTTL:ue,noDeleteOnFetchRejection:Me,allowStaleOnFetchRejection:$e,allowStaleOnFetchAbort:Ve,ignoreFetchAbort:ge,status:ot,signal:Xe},bt=He(this,x).get(Te);if(bt===void 0){ot&&(ot.fetch="miss");let at=ir(this,H,$5).call(this,Te,bt,Ze,st);return at.__returned=at}else{let at=He(this,R)[bt];if(ir(this,H,Da).call(this,at)){let Wt=Ne&&at.__staleWhileFetching!==void 0;return ot&&(ot.fetch="inflight",Wt&&(ot.returnedStale=!0)),Wt?at.__staleWhileFetching:at.__returned=at}let pt=He(this,j).call(this,bt);if(!Je&&!pt)return ot&&(ot.fetch="hit"),ir(this,H,JM).call(this,bt),je&&He(this,Q).call(this,bt),ot&&He(this,le).call(this,ot,bt),at;let Ct=ir(this,H,$5).call(this,Te,bt,Ze,st),It=Ct.__staleWhileFetching!==void 0&&Ne;return ot&&(ot.fetch=pt?"stale":"refresh",It&&pt&&(ot.returnedStale=!0)),It?Ct.__staleWhileFetching:Ct.__returned=Ct}}get(Te,Oe={}){let{allowStale:Ne=this.allowStale,updateAgeOnGet:je=this.updateAgeOnGet,noDeleteOnStaleGet:ne=this.noDeleteOnStaleGet,status:J}=Oe,ae=He(this,x).get(Te);if(ae!==void 0){let Se=He(this,R)[ae],xe=ir(this,H,Da).call(this,Se);return J&&He(this,le).call(this,J,ae),He(this,j).call(this,ae)?(J&&(J.get="stale"),xe?(J&&Ne&&Se.__staleWhileFetching!==void 0&&(J.returnedStale=!0),Ne?Se.__staleWhileFetching:void 0):(ne||this.delete(Te),J&&Ne&&(J.returnedStale=!0),Ne?Se:void 0)):(J&&(J.get="hit"),xe?Se.__staleWhileFetching:(ir(this,H,JM).call(this,ae),je&&He(this,Q).call(this,ae),Se))}else J&&(J.get="miss")}delete(Te){var Ne,je,ne,J;let Oe=!1;if(He(this,w)!==0){let ae=He(this,x).get(Te);if(ae!==void 0)if(Oe=!0,He(this,w)===1)this.clear();else{He(this,te).call(this,ae);let Se=He(this,R)[ae];ir(this,H,Da).call(this,Se)?Se.__abortController.abort(new Error("deleted")):(He(this,Y)||He(this,K))&&(He(this,Y)&&((Ne=He(this,S))==null||Ne.call(this,Se,Te,"delete")),He(this,K)&&((je=He(this,U))==null||je.push([Se,Te,"delete"]))),He(this,x).delete(Te),He(this,T)[ae]=void 0,He(this,R)[ae]=void 0,ae===He(this,k)?xn(this,k,He(this,M)[ae]):ae===He(this,P)?xn(this,P,He(this,O)[ae]):(He(this,O)[He(this,M)[ae]]=He(this,O)[ae],He(this,M)[He(this,O)[ae]]=He(this,M)[ae]),sE(this,w)._--,He(this,$).push(ae)}}if(He(this,K)&&((ne=He(this,U))!=null&&ne.length)){let ae=He(this,U),Se;for(;Se=ae==null?void 0:ae.shift();)(J=He(this,b))==null||J.call(this,...Se)}return Oe}clear(){var Te,Oe,Ne;for(let je of ir(this,H,ob).call(this,{allowStale:!0})){let ne=He(this,R)[je];if(ir(this,H,Da).call(this,ne))ne.__abortController.abort(new Error("deleted"));else{let J=He(this,T)[je];He(this,Y)&&((Te=He(this,S))==null||Te.call(this,ne,J,"delete")),He(this,K)&&((Oe=He(this,U))==null||Oe.push([ne,J,"delete"]))}}if(He(this,x).clear(),He(this,R).fill(void 0),He(this,T).fill(void 0),He(this,B)&&He(this,D)&&(He(this,B).fill(0),He(this,D).fill(0)),He(this,z)&&He(this,z).fill(0),xn(this,P,0),xn(this,k,0),He(this,$).length=0,xn(this,C,0),xn(this,w,0),He(this,K)&&He(this,U)){let je=He(this,U),ne;for(;ne=je==null?void 0:je.shift();)(Ne=He(this,b))==null||Ne.call(this,...ne)}}},y=new WeakMap,_=new WeakMap,S=new WeakMap,b=new WeakMap,E=new WeakMap,w=new WeakMap,C=new WeakMap,x=new WeakMap,T=new WeakMap,R=new WeakMap,O=new WeakMap,M=new WeakMap,P=new WeakMap,k=new WeakMap,$=new WeakMap,U=new WeakMap,z=new WeakMap,D=new WeakMap,B=new WeakMap,Y=new WeakMap,q=new WeakMap,K=new WeakMap,H=new WeakSet,ane=function(){let Te=new d(He(this,y)),Oe=new d(He(this,y));xn(this,B,Te),xn(this,D,Oe),xn(this,Z,(ne,J,ae=n.now())=>{if(Oe[ne]=J!==0?ae:0,Te[ne]=J,J!==0&&this.ttlAutopurge){let Se=setTimeout(()=>{He(this,j).call(this,ne)&&this.delete(He(this,T)[ne])},J+1);Se.unref&&Se.unref()}}),xn(this,Q,ne=>{Oe[ne]=Te[ne]!==0?n.now():0}),xn(this,le,(ne,J)=>{if(Te[J]){let ae=Te[J],Se=Oe[J];ne.ttl=ae,ne.start=Se,ne.now=Ne||je();let xe=ne.now-Se;ne.remainingTTL=ae-xe}});let Ne=0,je=()=>{let ne=n.now();if(this.ttlResolution>0){Ne=ne;let J=setTimeout(()=>Ne=0,this.ttlResolution);J.unref&&J.unref()}return ne};this.getRemainingTTL=ne=>{let J=He(this,x).get(ne);if(J===void 0)return 0;let ae=Te[J],Se=Oe[J];if(ae===0||Se===0)return 1/0;let xe=(Ne||je())-Se;return ae-xe},xn(this,j,ne=>Te[ne]!==0&&Oe[ne]!==0&&(Ne||je())-Oe[ne]>Te[ne])},Q=new WeakMap,le=new WeakMap,Z=new WeakMap,j=new WeakMap,u6e=function(){let Te=new d(He(this,y));xn(this,C,0),xn(this,z,Te),xn(this,te,Oe=>{xn(this,C,He(this,C)-Te[Oe]),Te[Oe]=0}),xn(this,de,(Oe,Ne,je,ne)=>{if(ir(this,H,Da).call(this,Ne))return 0;if(!c(je))if(ne){if(typeof ne!="function")throw new TypeError("sizeCalculation must be a function");if(je=ne(Ne,Oe),!c(je))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 je}),xn(this,oe,(Oe,Ne,je)=>{if(Te[Oe]=Ne,He(this,_)){let ne=He(this,_)-Te[Oe];for(;He(this,C)>ne;)ir(this,H,L5).call(this,!0)}xn(this,C,He(this,C)+Te[Oe]),je&&(je.entrySize=Ne,je.totalCalculatedSize=He(this,C))})},te=new WeakMap,oe=new WeakMap,de=new WeakMap,ib=function*({allowStale:Te=this.allowStale}={}){if(He(this,w))for(let Oe=He(this,k);!(!ir(this,H,sne).call(this,Oe)||((Te||!He(this,j).call(this,Oe))&&(yield Oe),Oe===He(this,P)));)Oe=He(this,M)[Oe]},ob=function*({allowStale:Te=this.allowStale}={}){if(He(this,w))for(let Oe=He(this,P);!(!ir(this,H,sne).call(this,Oe)||((Te||!He(this,j).call(this,Oe))&&(yield Oe),Oe===He(this,k)));)Oe=He(this,O)[Oe]},sne=function(Te){return Te!==void 0&&He(this,x).get(He(this,T)[Te])===Te},L5=function(Te){var ne,J;let Oe=He(this,P),Ne=He(this,T)[Oe],je=He(this,R)[Oe];return He(this,q)&&ir(this,H,Da).call(this,je)?je.__abortController.abort(new Error("evicted")):(He(this,Y)||He(this,K))&&(He(this,Y)&&((ne=He(this,S))==null||ne.call(this,je,Ne,"evict")),He(this,K)&&((J=He(this,U))==null||J.push([je,Ne,"evict"]))),He(this,te).call(this,Oe),Te&&(He(this,T)[Oe]=void 0,He(this,R)[Oe]=void 0,He(this,$).push(Oe)),He(this,w)===1?(xn(this,P,xn(this,k,0)),He(this,$).length=0):xn(this,P,He(this,O)[Oe]),He(this,x).delete(Ne),sE(this,w)._--,Oe},$5=function(Te,Oe,Ne,je){let ne=Oe===void 0?void 0:He(this,R)[Oe];if(ir(this,H,Da).call(this,ne))return ne;let J=new a,{signal:ae}=Ne;ae==null||ae.addEventListener("abort",()=>J.abort(ae.reason),{signal:J.signal});let Se={signal:J.signal,options:Ne,context:je},xe=(st,Je=!1)=>{let{aborted:ot}=J.signal,Xe=Ne.ignoreFetchAbort&&st!==void 0;if(Ne.status&&(ot&&!Je?(Ne.status.fetchAborted=!0,Ne.status.fetchError=J.signal.reason,Xe&&(Ne.status.fetchAbortIgnored=!0)):Ne.status.fetchResolved=!0),ot&&!Xe&&!Je)return Me(J.signal.reason);let Ze=ge;return He(this,R)[Oe]===ge&&(st===void 0?Ze.__staleWhileFetching?He(this,R)[Oe]=Ze.__staleWhileFetching:this.delete(Te):(Ne.status&&(Ne.status.fetchUpdated=!0),this.set(Te,st,Se.options))),st},ue=st=>(Ne.status&&(Ne.status.fetchRejected=!0,Ne.status.fetchError=st),Me(st)),Me=st=>{let{aborted:Je}=J.signal,ot=Je&&Ne.allowStaleOnFetchAbort,Xe=ot||Ne.allowStaleOnFetchRejection,Ze=Xe||Ne.noDeleteOnFetchRejection,bt=ge;if(He(this,R)[Oe]===ge&&(!Ze||bt.__staleWhileFetching===void 0?this.delete(Te):ot||(He(this,R)[Oe]=bt.__staleWhileFetching)),Xe)return Ne.status&&bt.__staleWhileFetching!==void 0&&(Ne.status.returnedStale=!0),bt.__staleWhileFetching;if(bt.__returned===bt)throw st},$e=(st,Je)=>{var Xe;let ot=(Xe=He(this,E))==null?void 0:Xe.call(this,Te,ne,Se);ot&&ot instanceof Promise&&ot.then(Ze=>st(Ze===void 0?void 0:Ze),Je),J.signal.addEventListener("abort",()=>{(!Ne.ignoreFetchAbort||Ne.allowStaleOnFetchAbort)&&(st(void 0),Ne.allowStaleOnFetchAbort&&(st=Ze=>xe(Ze,!0)))})};Ne.status&&(Ne.status.fetchDispatched=!0);let ge=new Promise($e).then(xe,ue),Ve=Object.assign(ge,{__abortController:J,__staleWhileFetching:ne,__returned:void 0});return Oe===void 0?(this.set(Te,Ve,{...Se.options,status:void 0}),Oe=He(this,x).get(Te)):He(this,R)[Oe]=Ve,Ve},Da=function(Te){if(!He(this,q))return!1;let Oe=Te;return!!Oe&&Oe instanceof Promise&&Oe.hasOwnProperty("__staleWhileFetching")&&Oe.__abortController instanceof a},lne=function(Te,Oe){He(this,M)[Oe]=Te,He(this,O)[Te]=Oe},JM=function(Te){Te!==He(this,k)&&(Te===He(this,P)?xn(this,P,He(this,O)[Te]):ir(this,H,lne).call(this,He(this,M)[Te],He(this,O)[Te]),ir(this,H,lne).call(this,He(this,k),Te),xn(this,k,Te))},Ee);e.LRUCache=p}),Vy=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.ContainerIterator=e.Container=e.Base=void 0;var n=class{constructor(o=0){this.iteratorType=o}equals(o){return this.o===o.o}};e.ContainerIterator=n;var r=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};e.Base=r;var i=class extends r{};e.Container=i}),XSt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=Vy(),r=class extends n.Base{constructor(o=[]){super(),this.S=[];let a=this;o.forEach(function(s){a.push(s)})}clear(){this.i=0,this.S=[]}push(o){return this.S.push(o),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},i=r;e.default=i}),QSt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=Vy(),r=class extends n.Base{constructor(o=[]){super(),this.j=0,this.q=[];let a=this;o.forEach(function(s){a.push(s)})}clear(){this.q=[],this.i=this.j=0}push(o){let a=this.q.length;if(this.j/a>.5&&this.j+this.i>=a&&a>4096){let s=this.i;for(let l=0;l<s;++l)this.q[l]=this.q[this.j+l];this.j=0,this.q[this.i]=o}else this.q[this.j+this.i]=o;return++this.i}pop(){if(this.i===0)return;let o=this.q[this.j++];return this.i-=1,o}front(){if(this.i!==0)return this.q[this.j]}},i=r;e.default=i}),ZSt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=Vy(),r=class extends n.Base{constructor(o=[],a=function(l,c){return l>c?-1:l<c?1:0},s=!0){if(super(),this.v=a,Array.isArray(o))this.C=s?[...o]:o;else{this.C=[];let c=this;o.forEach(function(u){c.C.push(u)})}this.i=this.C.length;let l=this.i>>1;for(let c=this.i-1>>1;c>=0;--c)this.k(c,l)}m(o){let a=this.C[o];for(;o>0;){let s=o-1>>1,l=this.C[s];if(this.v(l,a)<=0)break;this.C[o]=l,o=s}this.C[o]=a}k(o,a){let s=this.C[o];for(;o<a;){let l=o<<1|1,c=l+1,u=this.C[l];if(c<this.i&&this.v(u,this.C[c])>0&&(l=c,u=this.C[c]),this.v(u,s)>=0)break;this.C[o]=u,o=l}this.C[o]=s}clear(){this.i=0,this.C.length=0}push(o){this.C.push(o),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let o=this.C[0],a=this.C.pop();return this.i-=1,this.i&&(this.C[0]=a,this.k(0,this.i>>1)),o}top(){return this.C[0]}find(o){return this.C.indexOf(o)>=0}remove(o){let a=this.C.indexOf(o);return a<0?!1:(a===0?this.pop():a===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(a,1,this.C.pop()),this.i-=1,this.m(a),this.k(a,this.i>>1)),!0)}updateItem(o){let a=this.C.indexOf(o);return a<0?!1:(this.m(a),this.k(a,this.i>>1),!0)}toArray(){return[...this.C]}},i=r;e.default=i}),Dle=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=Vy(),r=class extends n.Container{},i=r;e.default=i}),Gy=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.throwIteratorAccessError=n;function n(){throw new RangeError("Iterator access denied!")}}),d6e=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.RandomIterator=void 0;var n=Vy(),r=Gy(),i=class extends n.ContainerIterator{constructor(o,a){super(a),this.o=o,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,r.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,r.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,r.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,r.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(o){this.container.setElementByPos(this.o,o)}};e.RandomIterator=i}),JSt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=i(Dle()),r=d6e();function i(l){return l&&l.t?l:{default:l}}var o=class f6e extends r.RandomIterator{constructor(c,u,d){super(c,d),this.container=u}copy(){return new f6e(this.o,this.container,this.iteratorType)}},a=class extends n.default{constructor(l=[],c=!0){if(super(),Array.isArray(l))this.J=c?[...l]:l,this.i=l.length;else{this.J=[];let u=this;l.forEach(function(d){u.pushBack(d)})}}clear(){this.i=0,this.J.length=0}begin(){return new o(0,this)}end(){return new o(this.i,this)}rBegin(){return new o(this.i-1,this,1)}rEnd(){return new o(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;return this.J[l]}eraseElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;return this.J.splice(l,1),this.i-=1,this.i}eraseElementByValue(l){let c=0;for(let u=0;u<this.i;++u)this.J[u]!==l&&(this.J[c++]=this.J[u]);return this.i=this.J.length=c,this.i}eraseElementByIterator(l){let c=l.o;return l=l.next(),this.eraseElementByPos(c),l}pushBack(l){return this.J.push(l),this.i+=1,this.i}popBack(){if(this.i!==0)return this.i-=1,this.J.pop()}setElementByPos(l,c){if(l<0||l>this.i-1)throw new RangeError;this.J[l]=c}insert(l,c,u=1){if(l<0||l>this.i)throw new RangeError;return this.J.splice(l,0,...new Array(u).fill(c)),this.i+=u,this.i}find(l){for(let c=0;c<this.i;++c)if(this.J[c]===l)return new o(c,this);return this.end()}reverse(){this.J.reverse()}unique(){let l=1;for(let c=1;c<this.i;++c)this.J[c]!==this.J[c-1]&&(this.J[l++]=this.J[c]);return this.i=this.J.length=l,this.i}sort(l){this.J.sort(l)}forEach(l){for(let c=0;c<this.i;++c)l(this.J[c],c,this)}[Symbol.iterator](){return(function*(){yield*this.J}).bind(this)()}},s=a;e.default=s}),eEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=o(Dle()),r=Vy(),i=Gy();function o(c){return c&&c.t?c:{default:c}}var a=class p6e extends r.ContainerIterator{constructor(u,d,f,p){super(p),this.o=u,this.h=d,this.container=f,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o.l}set pointer(u){this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o.l=u}copy(){return new p6e(this.o,this.h,this.container,this.iteratorType)}},s=class extends n.default{constructor(c=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let u=this;c.forEach(function(d){u.pushBack(d)})}V(c){let{L:u,B:d}=c;u.B=d,d.L=u,c===this.p&&(this.p=d),c===this._&&(this._=u),this.i-=1}G(c,u){let d=u.B,f={l:c,L:u,B:d};u.B=f,d.L=f,u===this.h&&(this.p=f),d===this.h&&(this._=f),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new a(this.p,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this._,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(c){if(c<0||c>this.i-1)throw new RangeError;let u=this.p;for(;c--;)u=u.B;return u.l}eraseElementByPos(c){if(c<0||c>this.i-1)throw new RangeError;let u=this.p;for(;c--;)u=u.B;return this.V(u),this.i}eraseElementByValue(c){let u=this.p;for(;u!==this.h;)u.l===c&&this.V(u),u=u.B;return this.i}eraseElementByIterator(c){let u=c.o;return u===this.h&&(0,i.throwIteratorAccessError)(),c=c.next(),this.V(u),c}pushBack(c){return this.G(c,this._),this.i}popBack(){if(this.i===0)return;let c=this._.l;return this.V(this._),c}pushFront(c){return this.G(c,this.h),this.i}popFront(){if(this.i===0)return;let c=this.p.l;return this.V(this.p),c}setElementByPos(c,u){if(c<0||c>this.i-1)throw new RangeError;let d=this.p;for(;c--;)d=d.B;d.l=u}insert(c,u,d=1){if(c<0||c>this.i)throw new RangeError;if(d<=0)return this.i;if(c===0)for(;d--;)this.pushFront(u);else if(c===this.i)for(;d--;)this.pushBack(u);else{let f=this.p;for(let h=1;h<c;++h)f=f.B;let p=f.B;for(this.i+=d;d--;)f.B={l:u,L:f},f.B.L=f,f=f.B;f.B=p,p.L=f}return this.i}find(c){let u=this.p;for(;u!==this.h;){if(u.l===c)return new a(u,this.h,this);u=u.B}return this.end()}reverse(){if(this.i<=1)return;let c=this.p,u=this._,d=0;for(;d<<1<this.i;){let f=c.l;c.l=u.l,u.l=f,c=c.B,u=u.L,d+=1}}unique(){if(this.i<=1)return this.i;let c=this.p;for(;c!==this.h;){let u=c;for(;u.B!==this.h&&u.l===u.B.l;)u=u.B,this.i-=1;c.B=u.B,c.B.L=c,c=c.B}return this.i}sort(c){if(this.i<=1)return;let u=[];this.forEach(function(f){u.push(f)}),u.sort(c);let d=this.p;u.forEach(function(f){d.l=f,d=d.B})}merge(c){let u=this;if(this.i===0)c.forEach(function(d){u.pushBack(d)});else{let d=this.p;c.forEach(function(f){for(;d!==u.h&&d.l<=f;)d=d.B;u.G(f,d.L)})}return this.i}forEach(c){let u=this.p,d=0;for(;u!==this.h;)c(u.l,d++,this),u=u.B}[Symbol.iterator](){return(function*(){if(this.i===0)return;let c=this.p;for(;c!==this.h;)yield c.l,c=c.B}).bind(this)()}},l=s;e.default=l}),tEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=i(Dle()),r=d6e();function i(l){return l&&l.t?l:{default:l}}var o=class h6e extends r.RandomIterator{constructor(c,u,d){super(c,d),this.container=u}copy(){return new h6e(this.o,this.container,this.iteratorType)}},a=class extends n.default{constructor(l=[],c=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let u=(()=>{if(typeof l.length=="number")return l.length;if(typeof l.size=="number")return l.size;if(typeof l.size=="function")return l.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=c,this.P=Math.max(Math.ceil(u/this.F),1);for(let p=0;p<this.P;++p)this.A.push(new Array(this.F));let d=Math.ceil(u/this.F);this.j=this.R=(this.P>>1)-(d>>1),this.D=this.N=this.F-u%this.F>>1;let f=this;l.forEach(function(p){f.pushBack(p)})}T(){let l=[],c=Math.max(this.P>>1,1);for(let u=0;u<c;++u)l[u]=new Array(this.F);for(let u=this.j;u<this.P;++u)l[l.length]=this.A[u];for(let u=0;u<this.R;++u)l[l.length]=this.A[u];l[l.length]=[...this.A[this.R]],this.j=c,this.R=l.length-1;for(let u=0;u<c;++u)l[l.length]=new Array(this.F);this.A=l,this.P=l.length}O(l){let c=this.D+l+1,u=c%this.F,d=u-1,f=this.j+(c-u)/this.F;return u===0&&(f-=1),f%=this.P,d<0&&(d+=this.F),{curNodeBucketIndex:f,curNodePointerIndex:d}}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 o(0,this)}end(){return new o(this.i,this)}rBegin(){return new o(this.i-1,this,1)}rEnd(){return new o(-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(l){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]=l,this.i}popBack(){if(this.i===0)return;let l=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,l}pushFront(l){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]=l,this.i}popFront(){if(this.i===0)return;let l=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,l}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let{curNodeBucketIndex:c,curNodePointerIndex:u}=this.O(l);return this.A[c][u]}setElementByPos(l,c){if(l<0||l>this.i-1)throw new RangeError;let{curNodeBucketIndex:u,curNodePointerIndex:d}=this.O(l);this.A[u][d]=c}insert(l,c,u=1){if(l<0||l>this.i)throw new RangeError;if(l===0)for(;u--;)this.pushFront(c);else if(l===this.i)for(;u--;)this.pushBack(c);else{let d=[];for(let f=l;f<this.i;++f)d.push(this.getElementByPos(f));this.cut(l-1);for(let f=0;f<u;++f)this.pushBack(c);for(let f=0;f<d.length;++f)this.pushBack(d[f])}return this.i}cut(l){if(l<0)return this.clear(),0;let{curNodeBucketIndex:c,curNodePointerIndex:u}=this.O(l);return this.R=c,this.N=u,this.i=l+1,this.i}eraseElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;if(l===0)this.popFront();else if(l===this.i-1)this.popBack();else{let c=[];for(let d=l+1;d<this.i;++d)c.push(this.getElementByPos(d));this.cut(l),this.popBack();let u=this;c.forEach(function(d){u.pushBack(d)})}return this.i}eraseElementByValue(l){if(this.i===0)return 0;let c=[];for(let d=0;d<this.i;++d){let f=this.getElementByPos(d);f!==l&&c.push(f)}let u=c.length;for(let d=0;d<u;++d)this.setElementByPos(d,c[d]);return this.cut(u-1)}eraseElementByIterator(l){let c=l.o;return this.eraseElementByPos(c),l=l.next(),l}find(l){for(let c=0;c<this.i;++c)if(this.getElementByPos(c)===l)return new o(c,this);return this.end()}reverse(){let l=0,c=this.i-1;for(;l<c;){let u=this.getElementByPos(l);this.setElementByPos(l,this.getElementByPos(c)),this.setElementByPos(c,u),l+=1,c-=1}}unique(){if(this.i<=1)return this.i;let l=1,c=this.getElementByPos(0);for(let u=1;u<this.i;++u){let d=this.getElementByPos(u);d!==c&&(c=d,this.setElementByPos(l++,d))}for(;this.i>l;)this.popBack();return this.i}sort(l){let c=[];for(let u=0;u<this.i;++u)c.push(this.getElementByPos(u));c.sort(l);for(let u=0;u<this.i;++u)this.setElementByPos(u,c[u])}shrinkToFit(){if(this.i===0)return;let l=[];this.forEach(function(c){l.push(c)}),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 c=0;c<this.P;++c)this.A.push(new Array(this.F));for(let c=0;c<l.length;++c)this.pushBack(l[c])}forEach(l){for(let c=0;c<this.i;++c)l(this.getElementByPos(c),c,this)}[Symbol.iterator](){return(function*(){for(let l=0;l<this.i;++l)yield this.getElementByPos(l)}).bind(this)()}},s=a;e.default=s}),nEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.TreeNodeEnableIndex=e.TreeNode=void 0;var n=class{constructor(i,o){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=i,this.l=o}L(){let i=this;if(i.ee===1&&i.tt.tt===i)i=i.W;else if(i.U)for(i=i.U;i.W;)i=i.W;else{let o=i.tt;for(;o.U===i;)i=o,o=i.tt;i=o}return i}B(){let i=this;if(i.W){for(i=i.W;i.U;)i=i.U;return i}else{let o=i.tt;for(;o.W===i;)i=o,o=i.tt;return i.W!==o?o:i}}te(){let i=this.tt,o=this.W,a=o.U;return i.tt===this?i.tt=o:i.U===this?i.U=o:i.W=o,o.tt=i,o.U=this,this.tt=o,this.W=a,a&&(a.tt=this),o}se(){let i=this.tt,o=this.U,a=o.W;return i.tt===this?i.tt=o:i.U===this?i.U=o:i.W=o,o.tt=i,o.W=this,this.tt=o,this.U=a,a&&(a.tt=this),o}};e.TreeNode=n;var r=class extends n{constructor(){super(...arguments),this.rt=1}te(){let i=super.te();return this.ie(),i.ie(),i}se(){let i=super.se();return this.ie(),i.ie(),i}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};e.TreeNodeEnableIndex=r}),g6e=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=nEt(),r=Vy(),i=Gy(),o=class extends r.Container{constructor(s=function(c,u){return c<u?-1:c>u?1:0},l=!1){super(),this.Y=void 0,this.v=s,l?(this.re=n.TreeNodeEnableIndex,this.M=function(c,u,d){let f=this.ne(c,u,d);if(f){let p=f.tt;for(;p!==this.h;)p.rt+=1,p=p.tt;let h=this.he(f);if(h){let{parentNode:g,grandParent:v,curNode:y}=h;g.ie(),v.ie(),y.ie()}}return this.i},this.V=function(c){let u=this.fe(c);for(;u!==this.h;)u.rt-=1,u=u.tt}):(this.re=n.TreeNode,this.M=function(c,u,d){let f=this.ne(c,u,d);return f&&this.he(f),this.i},this.V=this.fe),this.h=new this.re}X(s,l){let c=this.h;for(;s;){let u=this.v(s.u,l);if(u<0)s=s.W;else if(u>0)c=s,s=s.U;else return s}return c}Z(s,l){let c=this.h;for(;s;)this.v(s.u,l)<=0?s=s.W:(c=s,s=s.U);return c}$(s,l){let c=this.h;for(;s;){let u=this.v(s.u,l);if(u<0)c=s,s=s.W;else if(u>0)s=s.U;else return s}return c}rr(s,l){let c=this.h;for(;s;)this.v(s.u,l)<0?(c=s,s=s.W):s=s.U;return c}ue(s){for(;;){let l=s.tt;if(l===this.h)return;if(s.ee===1){s.ee=0;return}if(s===l.U){let c=l.W;if(c.ee===1)c.ee=0,l.ee=1,l===this.Y?this.Y=l.te():l.te();else if(c.W&&c.W.ee===1){c.ee=l.ee,l.ee=0,c.W.ee=0,l===this.Y?this.Y=l.te():l.te();return}else c.U&&c.U.ee===1?(c.ee=1,c.U.ee=0,c.se()):(c.ee=1,s=l)}else{let c=l.U;if(c.ee===1)c.ee=0,l.ee=1,l===this.Y?this.Y=l.se():l.se();else if(c.U&&c.U.ee===1){c.ee=l.ee,l.ee=0,c.U.ee=0,l===this.Y?this.Y=l.se():l.se();return}else c.W&&c.W.ee===1?(c.ee=1,c.W.ee=0,c.te()):(c.ee=1,s=l)}}}fe(s){if(this.i===1)return this.clear(),this.h;let l=s;for(;l.U||l.W;){if(l.W)for(l=l.W;l.U;)l=l.U;else l=l.U;[s.u,l.u]=[l.u,s.u],[s.l,l.l]=[l.l,s.l],s=l}this.h.U===l?this.h.U=l.tt:this.h.W===l&&(this.h.W=l.tt),this.ue(l);let c=l.tt;return l===c.U?c.U=void 0:c.W=void 0,this.i-=1,this.Y.ee=0,c}oe(s,l){return s===void 0?!1:this.oe(s.U,l)||l(s)?!0:this.oe(s.W,l)}he(s){for(;;){let l=s.tt;if(l.ee===0)return;let c=l.tt;if(l===c.U){let u=c.W;if(u&&u.ee===1){if(u.ee=l.ee=0,c===this.Y)return;c.ee=1,s=c;continue}else if(s===l.W){if(s.ee=0,s.U&&(s.U.tt=l),s.W&&(s.W.tt=c),l.W=s.U,c.U=s.W,s.U=l,s.W=c,c===this.Y)this.Y=s,this.h.tt=s;else{let d=c.tt;d.U===c?d.U=s:d.W=s}return s.tt=c.tt,l.tt=s,c.tt=s,c.ee=1,{parentNode:l,grandParent:c,curNode:s}}else l.ee=0,c===this.Y?this.Y=c.se():c.se(),c.ee=1}else{let u=c.U;if(u&&u.ee===1){if(u.ee=l.ee=0,c===this.Y)return;c.ee=1,s=c;continue}else if(s===l.U){if(s.ee=0,s.U&&(s.U.tt=c),s.W&&(s.W.tt=l),c.W=s.U,l.U=s.W,s.U=c,s.W=l,c===this.Y)this.Y=s,this.h.tt=s;else{let d=c.tt;d.U===c?d.U=s:d.W=s}return s.tt=c.tt,l.tt=s,c.tt=s,c.ee=1,{parentNode:l,grandParent:c,curNode:s}}else l.ee=0,c===this.Y?this.Y=c.te():c.te(),c.ee=1}return}}ne(s,l,c){if(this.Y===void 0){this.i+=1,this.Y=new this.re(s,l),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 u,d=this.h.U,f=this.v(d.u,s);if(f===0){d.l=l;return}else if(f>0)d.U=new this.re(s,l),d.U.tt=d,u=d.U,this.h.U=u;else{let p=this.h.W,h=this.v(p.u,s);if(h===0){p.l=l;return}else if(h<0)p.W=new this.re(s,l),p.W.tt=p,u=p.W,this.h.W=u;else{if(c!==void 0){let g=c.o;if(g!==this.h){let v=this.v(g.u,s);if(v===0){g.l=l;return}else if(v>0){let y=g.L(),_=this.v(y.u,s);if(_===0){y.l=l;return}else _<0&&(u=new this.re(s,l),y.W===void 0?(y.W=u,u.tt=y):(g.U=u,u.tt=g))}}}if(u===void 0)for(u=this.Y;;){let g=this.v(u.u,s);if(g>0){if(u.U===void 0){u.U=new this.re(s,l),u.U.tt=u,u=u.U;break}u=u.U}else if(g<0){if(u.W===void 0){u.W=new this.re(s,l),u.W.tt=u,u=u.W;break}u=u.W}else{u.l=l;return}}}}return this.i+=1,u}I(s,l){for(;s;){let c=this.v(s.u,l);if(c<0)s=s.W;else if(c>0)s=s.U;else return s}return s||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(s,l){let c=s.o;if(c===this.h&&(0,i.throwIteratorAccessError)(),this.i===1)return c.u=l,!0;if(c===this.h.U)return this.v(c.B().u,l)>0?(c.u=l,!0):!1;if(c===this.h.W)return this.v(c.L().u,l)<0?(c.u=l,!0):!1;let u=c.L().u;if(this.v(u,l)>=0)return!1;let d=c.B().u;return this.v(d,l)<=0?!1:(c.u=l,!0)}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let l=0,c=this;return this.oe(this.Y,function(u){return s===l?(c.V(u),!0):(l+=1,!1)}),this.i}eraseElementByKey(s){if(this.i===0)return!1;let l=this.I(this.Y,s);return l===this.h?!1:(this.V(l),!0)}eraseElementByIterator(s){let l=s.o;l===this.h&&(0,i.throwIteratorAccessError)();let c=l.W===void 0;return s.iteratorType===0?c&&s.next():(!c||l.U===void 0)&&s.next(),this.V(l),s}forEach(s){let l=0;for(let c of this)s(c,l++,this)}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let l,c=0;for(let u of this){if(c===s){l=u;break}c+=1}return l}getHeight(){if(this.i===0)return 0;let s=function(l){return l?Math.max(s(l.U),s(l.W))+1:0};return s(this.Y)}},a=o;e.default=a}),m6e=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=Vy(),r=Gy(),i=class extends n.ContainerIterator{constructor(a,s,l){super(l),this.o=a,this.h=s,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(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===this.h.W&&(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 index(){let a=this.o,s=this.h.tt;if(a===this.h)return s?s.rt-1:0;let l=0;for(a.U&&(l+=a.U.rt);a!==s;){let c=a.tt;a===c.W&&(l+=1,c.U&&(l+=c.U.rt)),a=c}return l}},o=i;e.default=o}),rEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=o(g6e()),r=o(m6e()),i=Gy();function o(c){return c&&c.t?c:{default:c}}var a=class v6e extends r.default{constructor(u,d,f,p){super(u,d,p),this.container=f}get pointer(){return this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o.u}copy(){return new v6e(this.o,this.h,this.container,this.iteratorType)}},s=class extends n.default{constructor(c=[],u,d){super(u,d);let f=this;c.forEach(function(p){f.insert(p)})}*K(c){c!==void 0&&(yield*this.K(c.U),yield c.u,yield*this.K(c.W))}begin(){return new a(this.h.U||this.h,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this.h.W||this.h,this.h,this,1)}rEnd(){return new a(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(c,u){return this.M(c,void 0,u)}find(c){let u=this.I(this.Y,c);return new a(u,this.h,this)}lowerBound(c){let u=this.X(this.Y,c);return new a(u,this.h,this)}upperBound(c){let u=this.Z(this.Y,c);return new a(u,this.h,this)}reverseLowerBound(c){let u=this.$(this.Y,c);return new a(u,this.h,this)}reverseUpperBound(c){let u=this.rr(this.Y,c);return new a(u,this.h,this)}union(c){let u=this;return c.forEach(function(d){u.insert(d)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},l=s;e.default=l}),iEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=o(g6e()),r=o(m6e()),i=Gy();function o(c){return c&&c.t?c:{default:c}}var a=class y6e extends r.default{constructor(u,d,f,p){super(u,d,p),this.container=f}get pointer(){this.o===this.h&&(0,i.throwIteratorAccessError)();let u=this;return new Proxy([],{get(d,f){if(f==="0")return u.o.u;if(f==="1")return u.o.l},set(d,f,p){if(f!=="1")throw new TypeError("props must be 1");return u.o.l=p,!0}})}copy(){return new y6e(this.o,this.h,this.container,this.iteratorType)}},s=class extends n.default{constructor(c=[],u,d){super(u,d);let f=this;c.forEach(function(p){f.setElement(p[0],p[1])})}*K(c){c!==void 0&&(yield*this.K(c.U),yield[c.u,c.l],yield*this.K(c.W))}begin(){return new a(this.h.U||this.h,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this.h.W||this.h,this.h,this,1)}rEnd(){return new a(this.h,this.h,this,1)}front(){if(this.i===0)return;let c=this.h.U;return[c.u,c.l]}back(){if(this.i===0)return;let c=this.h.W;return[c.u,c.l]}lowerBound(c){let u=this.X(this.Y,c);return new a(u,this.h,this)}upperBound(c){let u=this.Z(this.Y,c);return new a(u,this.h,this)}reverseLowerBound(c){let u=this.$(this.Y,c);return new a(u,this.h,this)}reverseUpperBound(c){let u=this.rr(this.Y,c);return new a(u,this.h,this)}setElement(c,u,d){return this.M(c,u,d)}find(c){let u=this.I(this.Y,c);return new a(u,this.h,this)}getElementByKey(c){return this.I(this.Y,c).l}union(c){let u=this;return c.forEach(function(d){u.setElement(d[0],d[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},l=s;e.default=l}),_6e=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=n;function n(r){let i=typeof r;return i==="object"&&r!==null||i==="function"}}),b6e=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var n=Vy(),r=o(_6e()),i=Gy();function o(l){return l&&l.t?l:{default:l}}var a=class extends n.ContainerIterator{constructor(l,c,u){super(u),this.o=l,this.h=c,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,i.throwIteratorAccessError)(),this.o=this.o.L,this})}};e.HashContainerIterator=a;var s=class extends n.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(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}M(l,c,u){u===void 0&&(u=(0,r.default)(l));let d;if(u){let f=l[this.HASH_TAG];if(f!==void 0)return this.H[f].l=c,this.i;Object.defineProperty(l,this.HASH_TAG,{value:this.H.length,configurable:!0}),d={u:l,l:c,L:this._,B:this.h},this.H.push(d)}else{let f=this.g[l];if(f)return f.l=c,this.i;d={u:l,l:c,L:this._,B:this.h},this.g[l]=d}return this.i===0?(this.p=d,this.h.B=d):this._.B=d,this._=d,this.h.L=d,++this.i}I(l,c){if(c===void 0&&(c=(0,r.default)(l)),c){let u=l[this.HASH_TAG];return u===void 0?this.h:this.H[u]}else return this.g[l]||this.h}clear(){let l=this.HASH_TAG;this.H.forEach(function(c){delete c.u[l]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(l,c){let u;if(c===void 0&&(c=(0,r.default)(l)),c){let d=l[this.HASH_TAG];if(d===void 0)return!1;delete l[this.HASH_TAG],u=this.H[d],delete this.H[d]}else{if(u=this.g[l],u===void 0)return!1;delete this.g[l]}return this.V(u),!0}eraseElementByIterator(l){let c=l.o;return c===this.h&&(0,i.throwIteratorAccessError)(),this.V(c),l.next()}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}};e.HashContainer=s}),oEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=b6e(),r=Gy(),i=class S6e extends n.HashContainerIterator{constructor(l,c,u,d){super(l,c,d),this.container=u}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new S6e(this.o,this.h,this.container,this.iteratorType)}},o=class extends n.HashContainer{constructor(s=[]){super();let l=this;s.forEach(function(c){l.insert(c)})}begin(){return new i(this.p,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this._,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(s,l){return this.M(s,void 0,l)}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let l=this.p;for(;s--;)l=l.B;return l.u}find(s,l){let c=this.I(s,l);return new i(c,this.h,this)}forEach(s){let l=0,c=this.p;for(;c!==this.h;)s(c.u,l++,this),c=c.B}[Symbol.iterator](){return(function*(){let s=this.p;for(;s!==this.h;)yield s.u,s=s.B}).bind(this)()}},a=o;e.default=a}),aEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var n=b6e(),r=o(_6e()),i=Gy();function o(c){return c&&c.t?c:{default:c}}var a=class E6e extends n.HashContainerIterator{constructor(u,d,f,p){super(u,d,p),this.container=f}get pointer(){this.o===this.h&&(0,i.throwIteratorAccessError)();let u=this;return new Proxy([],{get(d,f){if(f==="0")return u.o.u;if(f==="1")return u.o.l},set(d,f,p){if(f!=="1")throw new TypeError("props must be 1");return u.o.l=p,!0}})}copy(){return new E6e(this.o,this.h,this.container,this.iteratorType)}},s=class extends n.HashContainer{constructor(c=[]){super();let u=this;c.forEach(function(d){u.setElement(d[0],d[1])})}begin(){return new a(this.p,this.h,this)}end(){return new a(this.h,this.h,this)}rBegin(){return new a(this._,this.h,this,1)}rEnd(){return new a(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(c,u,d){return this.M(c,u,d)}getElementByKey(c,u){if(u===void 0&&(u=(0,r.default)(c)),u){let f=c[this.HASH_TAG];return f!==void 0?this.H[f].l:void 0}let d=this.g[c];return d?d.l:void 0}getElementByPos(c){if(c<0||c>this.i-1)throw new RangeError;let u=this.p;for(;c--;)u=u.B;return[u.u,u.l]}find(c,u){let d=this.I(c,u);return new a(d,this.h,this)}forEach(c){let u=0,d=this.p;for(;d!==this.h;)c([d.u,d.l],u++,this),d=d.B}[Symbol.iterator](){return(function*(){let c=this.p;for(;c!==this.h;)yield[c.u,c.l],c=c.B}).bind(this)()}},l=s;e.default=l}),sEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"t",{value:!0}),Object.defineProperty(e,"Deque",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"HashMap",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"HashSet",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"LinkList",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"OrderedMap",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"OrderedSet",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"PriorityQueue",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"Queue",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"Stack",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Vector",{enumerable:!0,get:function(){return o.default}});var n=f(XSt()),r=f(QSt()),i=f(ZSt()),o=f(JSt()),a=f(eEt()),s=f(tEt()),l=f(rEt()),c=f(iEt()),u=f(oEt()),d=f(aEt());function f(p){return p&&p.t?p:{default:p}}}),lEt=On((e,n)=>{fn(),hn(),pn();var r=sEt().OrderedSet,i=wy()("number-allocator:trace"),o=wy()("number-allocator:error");function a(l,c){this.low=l,this.high=c}a.prototype.equals=function(l){return this.low===l.low&&this.high===l.high},a.prototype.compare=function(l){return this.low<l.low&&this.high<l.low?-1:l.low<this.low&&l.high<this.low?1:0};function s(l,c){if(!(this instanceof s))return new s(l,c);this.min=l,this.max=c,this.ss=new r([],(u,d)=>u.compare(d)),i("Create"),this.clear()}s.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},s.prototype.alloc=function(){if(this.ss.size()===0)return i("alloc():empty"),null;let l=this.ss.begin(),c=l.pointer.low,u=l.pointer.high,d=c;return d+1<=u?this.ss.updateKeyByIterator(l,new a(c+1,u)):this.ss.eraseElementByPos(0),i("alloc():"+d),d},s.prototype.use=function(l){let c=new a(l,l),u=this.ss.lowerBound(c);if(!u.equals(this.ss.end())){let d=u.pointer.low,f=u.pointer.high;return u.pointer.equals(c)?(this.ss.eraseElementByIterator(u),i("use():"+l),!0):d>l?!1:d===l?(this.ss.updateKeyByIterator(u,new a(d+1,f)),i("use():"+l),!0):f===l?(this.ss.updateKeyByIterator(u,new a(d,f-1)),i("use():"+l),!0):(this.ss.updateKeyByIterator(u,new a(l+1,f)),this.ss.insert(new a(d,l-1)),i("use():"+l),!0)}return i("use():failed"),!1},s.prototype.free=function(l){if(l<this.min||l>this.max){o("free():"+l+" is out of range");return}let c=new a(l,l),u=this.ss.upperBound(c);if(u.equals(this.ss.end())){if(u.equals(this.ss.begin())){this.ss.insert(c);return}u.pre();let d=u.pointer.high;u.pointer.high+1===l?this.ss.updateKeyByIterator(u,new a(d,l)):this.ss.insert(c)}else if(u.equals(this.ss.begin()))if(l+1===u.pointer.low){let d=u.pointer.high;this.ss.updateKeyByIterator(u,new a(l,d))}else this.ss.insert(c);else{let d=u.pointer.low,f=u.pointer.high;u.pre();let p=u.pointer.low;u.pointer.high+1===l?l+1===d?(this.ss.eraseElementByIterator(u),this.ss.updateKeyByIterator(u,new a(p,f))):this.ss.updateKeyByIterator(u,new a(p,l)):l+1===d?(this.ss.eraseElementByIterator(u.next()),this.ss.insert(new a(l,f))):this.ss.insert(c)}i("free():"+l)},s.prototype.clear=function(){i("clear()"),this.ss.clear(),this.ss.insert(new a(this.min,this.max))},s.prototype.intervalCount=function(){return this.ss.size()},s.prototype.dump=function(){console.log("length:"+this.ss.size());for(let l of this.ss)console.log(l)},n.exports=s}),C6e=On((e,n)=>{fn(),hn(),pn();var r=lEt();n.exports.NumberAllocator=r}),cEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=KSt(),r=C6e(),i=class{constructor(o){o>0&&(this.aliasToTopic=new n.LRUCache({max:o}),this.topicToAlias={},this.numberAllocator=new r.NumberAllocator(1,o),this.max=o,this.length=0)}put(o,a){if(a===0||a>this.max)return!1;let s=this.aliasToTopic.get(a);return s&&delete this.topicToAlias[s],this.aliasToTopic.set(a,o),this.topicToAlias[o]=a,this.numberAllocator.use(a),this.length=this.aliasToTopic.size,!0}getTopicByAlias(o){return this.aliasToTopic.get(o)}getAliasByTopic(o){let a=this.topicToAlias[o];return typeof a<"u"&&this.aliasToTopic.get(a),a}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=i}),uEt=On(e=>{fn(),hn(),pn();var n=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var r=$7(),i=n(cEt()),o=XR(),a=(s,l)=>{s.log("_handleConnack");let{options:c}=s,u=c.protocolVersion===5?l.reasonCode:l.returnCode;if(clearTimeout(s.connackTimer),delete s.topicAliasSend,l.properties){if(l.properties.topicAliasMaximum){if(l.properties.topicAliasMaximum>65535){s.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}l.properties.topicAliasMaximum>0&&(s.topicAliasSend=new i.default(l.properties.topicAliasMaximum))}l.properties.serverKeepAlive&&c.keepalive&&(c.keepalive=l.properties.serverKeepAlive),l.properties.maximumPacketSize&&(c.properties||(c.properties={}),c.properties.maximumPacketSize=l.properties.maximumPacketSize)}if(u===0)s.reconnecting=!1,s._onConnect(l);else if(u>0){let d=new o.ErrorWithReasonCode(`Connection refused: ${r.ReasonCodes[u]}`,u);s.emit("error",d),s.options.reconnectOnConnackError&&s._cleanUp(!0)}};e.default=a}),dEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=(r,i,o)=>{r.log("handling pubrel packet");let a=typeof o<"u"?o:r.noop,{messageId:s}=i,l={cmd:"pubcomp",messageId:s};r.incomingStore.get(i,(c,u)=>{c?r._sendPacket(l,a):(r.emit("message",u.topic,u.payload,u),r.handleMessage(u,d=>{if(d)return a(d);r.incomingStore.del(u,r.noop),r._sendPacket(l,a)}))})};e.default=n}),fEt=On(e=>{fn(),hn(),pn();var n=e&&e.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0});var r=n(WSt()),i=n(qSt()),o=n(uEt()),a=n($7()),s=n(dEt()),l=(c,u,d)=>{let{options:f}=c;if(f.protocolVersion===5&&f.properties&&f.properties.maximumPacketSize&&f.properties.maximumPacketSize<u.length)return c.emit("error",new Error(`exceeding packets size ${u.cmd}`)),c.end({reasonCode:149,properties:{reasonString:"Maximum packet size was exceeded"}}),c;switch(c.log("_handlePacket :: emitting packetreceive"),c.emit("packetreceive",u),u.cmd){case"publish":(0,r.default)(c,u,d);break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":c.reschedulePing(),(0,a.default)(c,u),d();break;case"pubrel":c.reschedulePing(),(0,s.default)(c,u,d);break;case"connack":(0,o.default)(c,u),d();break;case"auth":c.reschedulePing(),(0,i.default)(c,u),d();break;case"pingresp":c.log("_handlePacket :: received pingresp"),c.reschedulePing(!0),d();break;case"disconnect":c.emit("disconnect",u),d();break;default:c.log("_handlePacket :: unknown command"),d();break}};e.default=l}),pEt=On(e=>{fn(),hn(),pn();var n=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypedEventEmitter=void 0;var r=n((KR(),na(YC))),i=XR(),o=class{};e.TypedEventEmitter=o,(0,i.applyMixin)(o,r.default)}),F7=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0}),e.isReactNativeBrowser=e.isWebWorker=void 0;var n=()=>{var a;return typeof window<"u"?typeof navigator<"u"&&((a=navigator.userAgent)===null||a===void 0?void 0:a.toLowerCase().indexOf(" electron/"))>-1&&Ao!=null&&Ao.versions?!Object.prototype.hasOwnProperty.call(Ao.versions,"electron"):typeof window.document<"u":!1},r=()=>{var a,s;return!!(typeof self=="object"&&!((s=(a=self==null?void 0:self.constructor)===null||a===void 0?void 0:a.name)===null||s===void 0)&&s.includes("WorkerGlobalScope"))},i=()=>typeof navigator<"u"&&navigator.product==="ReactNative",o=n()||r()||i();e.isWebWorker=r(),e.isReactNativeBrowser=i(),e.default=o}),hEt=On((e,n)=>{fn(),hn(),pn(),function(r,i){typeof e=="object"&&typeof n<"u"?i(e):typeof define=="function"&&define.amd?define(["exports"],i):(r=typeof globalThis<"u"?globalThis:r||self,i(r.fastUniqueNumbers={}))}(e,function(r){var i=function(h){return function(g){var v=h(g);return g.add(v),v}},o=function(h){return function(g,v){return h.set(g,v),v}},a=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,s=536870912,l=s*2,c=function(h,g){return function(v){var y=g.get(v),_=y===void 0?v.size:y<l?y+1:0;if(!v.has(_))return h(v,_);if(v.size<s){for(;v.has(_);)_=Math.floor(Math.random()*l);return h(v,_)}if(v.size>a)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;v.has(_);)_=Math.floor(Math.random()*a);return h(v,_)}},u=new WeakMap,d=o(u),f=c(d,u),p=i(f);r.addUniqueNumber=p,r.generateUniqueNumber=f})}),gEt=On((e,n)=>{fn(),hn(),pn(),function(r,i){typeof e=="object"&&typeof n<"u"?i(e,hEt()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers"],i):(r=typeof globalThis<"u"?globalThis:r||self,i(r.workerTimersBroker={},r.fastUniqueNumbers))}(e,function(r,i){var o=function(l){return l.method!==void 0&&l.method==="call"},a=function(l){return l.error===null&&typeof l.id=="number"},s=function(l){var c=new Map([[0,function(){}]]),u=new Map([[0,function(){}]]),d=new Map,f=new Worker(l);f.addEventListener("message",function(y){var _=y.data;if(o(_)){var S=_.params,b=S.timerId,E=S.timerType;if(E==="interval"){var w=c.get(b);if(typeof w=="number"){var C=d.get(w);if(C===void 0||C.timerId!==b||C.timerType!==E)throw new Error("The timer is in an undefined state.")}else if(typeof w<"u")w();else throw new Error("The timer is in an undefined state.")}else if(E==="timeout"){var x=u.get(b);if(typeof x=="number"){var T=d.get(x);if(T===void 0||T.timerId!==b||T.timerType!==E)throw new Error("The timer is in an undefined state.")}else if(typeof x<"u")x(),u.delete(b);else throw new Error("The timer is in an undefined state.")}}else if(a(_)){var R=_.id,O=d.get(R);if(O===void 0)throw new Error("The timer is in an undefined state.");var M=O.timerId,P=O.timerType;d.delete(R),P==="interval"?c.delete(M):u.delete(M)}else{var k=_.error.message;throw new Error(k)}});var p=function(y){var _=i.generateUniqueNumber(d);d.set(_,{timerId:y,timerType:"interval"}),c.set(y,_),f.postMessage({id:_,method:"clear",params:{timerId:y,timerType:"interval"}})},h=function(y){var _=i.generateUniqueNumber(d);d.set(_,{timerId:y,timerType:"timeout"}),u.set(y,_),f.postMessage({id:_,method:"clear",params:{timerId:y,timerType:"timeout"}})},g=function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,S=i.generateUniqueNumber(c);return c.set(S,function(){y(),typeof c.get(S)=="function"&&f.postMessage({id:null,method:"set",params:{delay:_,now:performance.now(),timerId:S,timerType:"interval"}})}),f.postMessage({id:null,method:"set",params:{delay:_,now:performance.now(),timerId:S,timerType:"interval"}}),S},v=function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,S=i.generateUniqueNumber(u);return u.set(S,y),f.postMessage({id:null,method:"set",params:{delay:_,now:performance.now(),timerId:S,timerType:"timeout"}}),S};return{clearInterval:p,clearTimeout:h,setInterval:g,setTimeout:v}};r.load=s})}),mEt=On((e,n)=>{fn(),hn(),pn(),function(r,i){typeof e=="object"&&typeof n<"u"?i(e,gEt()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],i):(r=typeof globalThis<"u"?globalThis:r||self,i(r.workerTimers={},r.workerTimersBroker))}(e,function(r,i){var o=function(f,p){var h=null;return function(){if(h!==null)return h;var g=new Blob([p],{type:"application/javascript; charset=utf-8"}),v=URL.createObjectURL(g);return h=f(v),setTimeout(function(){return URL.revokeObjectURL(v)}),h}},a=`(()=>{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)})()})();`,s=o(i.load,a),l=function(f){return s().clearInterval(f)},c=function(f){return s().clearTimeout(f)},u=function(){var f;return(f=s()).setInterval.apply(f,arguments)},d=function(){var f;return(f=s()).setTimeout.apply(f,arguments)};r.clearInterval=l,r.clearTimeout=c,r.setInterval=u,r.setTimeout=d})}),vEt=On(e=>{fn(),hn(),pn();var n=e&&e.__createBinding||(Object.create?function(u,d,f,p){p===void 0&&(p=f);var h=Object.getOwnPropertyDescriptor(d,f);(!h||("get"in h?!d.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(u,p,h)}:function(u,d,f,p){p===void 0&&(p=f),u[p]=d[f]}),r=e&&e.__setModuleDefault||(Object.create?function(u,d){Object.defineProperty(u,"default",{enumerable:!0,value:d})}:function(u,d){u.default=d}),i=e&&e.__importStar||function(u){if(u&&u.__esModule)return u;var d={};if(u!=null)for(var f in u)f!=="default"&&Object.prototype.hasOwnProperty.call(u,f)&&n(d,u,f);return r(d,u),d};Object.defineProperty(e,"__esModule",{value:!0});var o=i(F7()),a=mEt(),s={set:a.setInterval,clear:a.clearInterval},l={set:(u,d)=>setInterval(u,d),clear:u=>clearInterval(u)},c=u=>{switch(u){case"native":return l;case"worker":return s;case"auto":default:return o.default&&!o.isWebWorker&&!o.isReactNativeBrowser?s:l}};e.default=c}),w6e=On(e=>{fn(),hn(),pn();var n=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var r=n(vEt()),i=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(o,a){this.destroyed=!1,this.client=o,this.timer=typeof a=="object"&&"set"in a&&"clear"in a?a:(0,r.default)(a),this.setKeepalive(o.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(o){if(o*=1e3,isNaN(o)||o<=0||o>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${o}`);this._keepalive=o,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${o}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let o=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+o,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=i}),cne=On(e=>{fn(),hn(),pn();var n=e&&e.__createBinding||(Object.create?function(w,C,x,T){T===void 0&&(T=x);var R=Object.getOwnPropertyDescriptor(C,x);(!R||("get"in R?!C.__esModule:R.writable||R.configurable))&&(R={enumerable:!0,get:function(){return C[x]}}),Object.defineProperty(w,T,R)}:function(w,C,x,T){T===void 0&&(T=x),w[T]=C[x]}),r=e&&e.__setModuleDefault||(Object.create?function(w,C){Object.defineProperty(w,"default",{enumerable:!0,value:C})}:function(w,C){w.default=C}),i=e&&e.__importStar||function(w){if(w&&w.__esModule)return w;var C={};if(w!=null)for(var x in w)x!=="default"&&Object.prototype.hasOwnProperty.call(w,x)&&n(C,w,x);return r(C,w),C},o=e&&e.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(aSt()),s=o(HSt()),l=o(s6e()),c=qC(),u=o(VSt()),d=i(GSt()),f=o(wy()),p=o(l6e()),h=o(fEt()),g=XR(),v=pEt(),y=o(w6e()),_=i(F7()),S=globalThis.setImmediate||((...w)=>{let C=w.shift();(0,g.nextTick)(()=>{C(...w)})}),b={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},E=class une extends v.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(C,x){super(),this.options=x||{};for(let T in b)typeof this.options[T]>"u"?this.options[T]=b[T]:this.options[T]=x[T];this.log=this.options.log||(0,f.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",une.VERSION),_.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",_.default?"browser":"node"),this.log("MqttClient :: options.protocol",x.protocol),this.log("MqttClient :: options.protocolVersion",x.protocolVersion),this.log("MqttClient :: options.username",x.username),this.log("MqttClient :: options.keepalive",x.keepalive),this.log("MqttClient :: options.reconnectPeriod",x.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",x.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",x.properties?x.properties.topicAliasMaximum:void 0),this.options.clientId=typeof x.clientId=="string"?x.clientId:une.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=x.protocolVersion===5&&x.customHandleAcks?x.customHandleAcks:(...T)=>{T[3](null,0)},this.options.writeCache||(s.default.writeToStream.cacheNumbers=!1),this.streamBuilder=C,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new l.default:this.options.messageIdProvider,this.outgoingStore=x.outgoingStore||new p.default,this.incomingStore=x.incomingStore||new p.default,this.queueQoSZero=x.queueQoSZero===void 0?!0:x.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,x.properties&&x.properties.topicAliasMaximum>0&&(x.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new a.default(x.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:T}=this,R=()=>{let O=T.shift();this.log("deliver :: entry %o",O);let M=null;if(!O){this._resubscribe();return}M=O.packet,this.log("deliver :: call _sendPacket for %o",M);let P=!0;M.messageId&&M.messageId!==0&&(this.messageIdProvider.register(M.messageId)||(P=!1)),P?this._sendPacket(M,k=>{O.cb&&O.cb(k),R()}):(this.log("messageId: %d has already used. The message is skipped and removed.",M.messageId),R())};this.log("connect :: sending queued packets"),R()}),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(C,x){x()}handleMessage(C,x){x()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var C;let x=new c.Writable,T=s.default.parser(this.options),R=null,O=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new p.default,this.outgoingStore=this.options.outgoingStore||new p.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),T.on("packet",U=>{this.log("parser :: on packet push to packets array."),O.push(U)});let M=()=>{this.log("work :: getting next packet in queue");let U=O.shift();if(U)this.log("work :: packet pulled from queue"),(0,h.default)(this,U,P);else{this.log("work :: no packets in queue");let z=R;R=null,this.log("work :: done flag is %s",!!z),z&&z()}},P=()=>{if(O.length)(0,g.nextTick)(M);else{let U=R;R=null,U()}};x._write=(U,z,D)=>{R=D,this.log("writable stream :: parsing buffer"),T.parse(U),M()};let k=U=>{this.log("streamErrorHandler :: error",U.message),U.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",U)):this.noop(U)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(x),this.stream.on("error",k),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 $={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&&($.will=Object.assign(Object.assign({},this.options.will),{payload:(C=this.options.will)===null||C===void 0?void 0:C.payload})),this.topicAliasRecv&&($.properties||($.properties={}),this.topicAliasRecv&&($.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket($),T.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 U=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(U)}}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(C,x,T,R){this.log("publish :: message `%s` to topic `%s`",x,C);let{options:O}=this;typeof T=="function"&&(R=T,T=null),T=T||{},T=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),T);let{qos:M,retain:P,dup:k,properties:$,cbStorePut:U}=T;if(this._checkDisconnecting(R))return this;let z=()=>{let D=0;if((M===1||M===2)&&(D=this._nextId(),D===null))return this.log("No messageId left"),!1;let B={cmd:"publish",topic:C,payload:x,qos:M,retain:P,messageId:D,dup:k};switch(O.protocolVersion===5&&(B.properties=$),this.log("publish :: qos",M),M){case 1:case 2:this.outgoing[B.messageId]={volatile:!1,cb:R||this.noop},this.log("MqttClient:publish: packet cmd: %s",B.cmd),this._sendPacket(B,void 0,U);break;default:this.log("MqttClient:publish: packet cmd: %s",B.cmd),this._sendPacket(B,R,U);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!z())&&this._storeProcessingQueue.push({invoke:z,cbStorePut:T.cbStorePut,callback:R}),this}publishAsync(C,x,T){return new Promise((R,O)=>{this.publish(C,x,T,(M,P)=>{M?O(M):R(P)})})}subscribe(C,x,T){let R=this.options.protocolVersion;typeof x=="function"&&(T=x),T=T||this.noop;let O=!1,M=[];typeof C=="string"?(C=[C],M=C):Array.isArray(C)?M=C:typeof C=="object"&&(O=C.resubscribe,delete C.resubscribe,M=Object.keys(C));let P=d.validateTopics(M);if(P!==null)return S(T,new Error(`Invalid topic ${P}`)),this;if(this._checkDisconnecting(T))return this.log("subscribe: discconecting true"),this;let k={qos:0};R===5&&(k.nl=!1,k.rap=!1,k.rh=0),x=Object.assign(Object.assign({},k),x);let $=x.properties,U=[],z=(B,Y)=>{if(Y=Y||x,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,B)||this._resubscribeTopics[B].qos<Y.qos||O){let q={topic:B,qos:Y.qos};R===5&&(q.nl=Y.nl,q.rap=Y.rap,q.rh=Y.rh,q.properties=$),this.log("subscribe: pushing topic `%s` and qos `%s` to subs list",q.topic,q.qos),U.push(q)}};if(Array.isArray(C)?C.forEach(B=>{this.log("subscribe: array topic %s",B),z(B)}):Object.keys(C).forEach(B=>{this.log("subscribe: object topic %s, %o",B,C[B]),z(B,C[B])}),!U.length)return T(null,[]),this;let D=()=>{let B=this._nextId();if(B===null)return this.log("No messageId left"),!1;let Y={cmd:"subscribe",subscriptions:U,messageId:B};if($&&(Y.properties=$),this.options.resubscribe){this.log("subscribe :: resubscribe true");let q=[];U.forEach(K=>{if(this.options.reconnectPeriod>0){let H={qos:K.qos};R===5&&(H.nl=K.nl||!1,H.rap=K.rap||!1,H.rh=K.rh||0,H.properties=K.properties),this._resubscribeTopics[K.topic]=H,q.push(K.topic)}}),this.messageIdToTopic[Y.messageId]=q}return this.outgoing[Y.messageId]={volatile:!0,cb(q,K){if(!q){let{granted:H}=K;for(let G=0;G<H.length;G+=1)U[G].qos=H[G]}T(q,U,K)}},this.log("subscribe :: call _sendPacket"),this._sendPacket(Y),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!D())&&this._storeProcessingQueue.push({invoke:D,callback:T}),this}subscribeAsync(C,x){return new Promise((T,R)=>{this.subscribe(C,x,(O,M)=>{O?R(O):T(M)})})}unsubscribe(C,x,T){typeof C=="string"&&(C=[C]),typeof x=="function"&&(T=x),T=T||this.noop;let R=d.validateTopics(C);if(R!==null)return S(T,new Error(`Invalid topic ${R}`)),this;if(this._checkDisconnecting(T))return this;let O=()=>{let M=this._nextId();if(M===null)return this.log("No messageId left"),!1;let P={cmd:"unsubscribe",messageId:M,unsubscriptions:[]};return typeof C=="string"?P.unsubscriptions=[C]:Array.isArray(C)&&(P.unsubscriptions=C),this.options.resubscribe&&P.unsubscriptions.forEach(k=>{delete this._resubscribeTopics[k]}),typeof x=="object"&&x.properties&&(P.properties=x.properties),this.outgoing[P.messageId]={volatile:!0,cb:T},this.log("unsubscribe: call _sendPacket"),this._sendPacket(P),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!O())&&this._storeProcessingQueue.push({invoke:O,callback:T}),this}unsubscribeAsync(C,x){return new Promise((T,R)=>{this.unsubscribe(C,x,(O,M)=>{O?R(O):T(M)})})}end(C,x,T){this.log("end :: (%s)",this.options.clientId),(C==null||typeof C!="boolean")&&(T=T||x,x=C,C=!1),typeof x!="object"&&(T=T||x,x=null),this.log("end :: cb? %s",!!T),(!T||typeof T!="function")&&(T=this.noop);let R=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(M=>{this.outgoingStore.close(P=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),T){let k=M||P;this.log("end :: closeStores: invoking callback with args"),T(k)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},O=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,C),this._cleanUp(C,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,g.nextTick)(R)},x)};return this.disconnecting?(T(),this):(this._clearReconnect(),this.disconnecting=!0,!C&&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,O,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),O()),this)}endAsync(C,x){return new Promise((T,R)=>{this.end(C,x,O=>{O?R(O):T()})})}removeOutgoingMessage(C){if(this.outgoing[C]){let{cb:x}=this.outgoing[C];this._removeOutgoingAndStoreMessage(C,()=>{x(new Error("Message removed"))})}return this}reconnect(C){this.log("client reconnect");let x=()=>{C?(this.options.incomingStore=C.incomingStore,this.options.outgoingStore=C.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new p.default,this.outgoingStore=this.options.outgoingStore||new p.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=x:x(),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(C=>{this.outgoing[C].volatile&&typeof this.outgoing[C].cb=="function"&&(this.outgoing[C].cb(new Error("Connection closed")),delete this.outgoing[C])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(C=>{typeof this.outgoing[C].cb=="function"&&(this.outgoing[C].cb(new Error("Connection closed")),delete this.outgoing[C])}))}_removeTopicAliasAndRecoverTopicName(C){let x;C.properties&&(x=C.properties.topicAlias);let T=C.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",x,T),T.length===0){if(typeof x>"u")return new Error("Unregistered Topic Alias");if(T=this.topicAliasSend.getTopicByAlias(x),typeof T>"u")return new Error("Unregistered Topic Alias");C.topic=T}x&&delete C.properties.topicAlias}_checkDisconnecting(C){return this.disconnecting&&(C&&C!==this.noop?C(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(C,x,T={}){if(x&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",x)),this.log("_cleanUp :: forced? %s",C),C)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let R=Object.assign({cmd:"disconnect"},T);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(R,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),S(()=>{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(),x&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",x),x())}_storeAndSend(C,x,T){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",C.cmd);let R=C,O;if(R.cmd==="publish"&&(R=(0,u.default)(C),O=this._removeTopicAliasAndRecoverTopicName(R),O))return x&&x(O);this.outgoingStore.put(R,M=>{if(M)return x&&x(M);T(),this._writePacket(C,x)})}_applyTopicAlias(C){if(this.options.protocolVersion===5&&C.cmd==="publish"){let x;C.properties&&(x=C.properties.topicAlias);let T=C.topic.toString();if(this.topicAliasSend)if(x){if(T.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",T,x),!this.topicAliasSend.put(T,x)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",T,x),new Error("Sending Topic Alias out of range")}else T.length!==0&&(this.options.autoAssignTopicAlias?(x=this.topicAliasSend.getAliasByTopic(T),x?(C.topic="",C.properties=Object.assign(Object.assign({},C.properties),{topicAlias:x}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",T,x)):(x=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(T,x),C.properties=Object.assign(Object.assign({},C.properties),{topicAlias:x}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",T,x))):this.options.autoUseTopicAlias&&(x=this.topicAliasSend.getAliasByTopic(T),x&&(C.topic="",C.properties=Object.assign(Object.assign({},C.properties),{topicAlias:x}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",T,x))));else if(x)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",T,x),new Error("Sending Topic Alias out of range")}}_noop(C){this.log("noop ::",C)}_writePacket(C,x){this.log("_writePacket :: packet: %O",C),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",C),this.log("_writePacket :: writing to stream");let T=s.default.writeToStream(C,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",T),!T&&x&&x!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",x)):x&&(this.log("_writePacket :: invoking cb"),x())}_sendPacket(C,x,T,R){this.log("_sendPacket :: (%s) :: start",this.options.clientId),T=T||this.noop,x=x||this.noop;let O=this._applyTopicAlias(C);if(O){x(O);return}if(!this.connected){if(C.cmd==="auth"){this._writePacket(C,x);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(C,x,T);return}if(R){this._writePacket(C,x);return}switch(C.cmd){case"publish":break;case"pubrel":this._storeAndSend(C,x,T);return;default:this._writePacket(C,x);return}switch(C.qos){case 2:case 1:this._storeAndSend(C,x,T);break;case 0:default:this._writePacket(C,x);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(C,x,T){this.log("_storePacket :: packet: %o",C),this.log("_storePacket :: cb? %s",!!x),T=T||this.noop;let R=C;if(R.cmd==="publish"){R=(0,u.default)(C);let M=this._removeTopicAliasAndRecoverTopicName(R);if(M)return x&&x(M)}let O=R.qos||0;O===0&&this.queueQoSZero||R.cmd!=="publish"?this.queue.push({packet:R,cb:x}):O>0?(x=this.outgoing[R.messageId]?this.outgoing[R.messageId].cb:null,this.outgoingStore.put(R,M=>{if(M)return x&&x(M);T()})):x&&x(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new y.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(C=!1){this.keepaliveManager&&this.options.keepalive&&(C||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 C=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&C.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let x=0;x<C.length;x++){let T={};T[C[x]]=this._resubscribeTopics[C[x]],T.resubscribe=!0,this.subscribe(T,{properties:T[C[x]].properties})}}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);else this._resubscribeTopics={};this._firstConnection=!1}_onConnect(C){if(this.disconnected){this.emit("connect",C);return}this.connackPacket=C,this.messageIdProvider.clear(),this._setupKeepaliveManager(),this.connected=!0;let x=()=>{let T=this.outgoingStore.createStream(),R=()=>{T.destroy(),T=null,this._flushStoreProcessingQueue(),O()},O=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",R),T.on("error",P=>{O(),this._flushStoreProcessingQueue(),this.removeListener("close",R),this.emit("error",P)});let M=()=>{if(!T)return;let P=T.read(1),k;if(!P){T.once("readable",M);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[P.messageId]){M();return}!this.disconnecting&&!this.reconnectTimer?(k=this.outgoing[P.messageId]?this.outgoing[P.messageId].cb:null,this.outgoing[P.messageId]={volatile:!1,cb($,U){k&&k($,U),M()}},this._packetIdsDuringStoreProcessing[P.messageId]=!0,this.messageIdProvider.register(P.messageId)?this._sendPacket(P,void 0,void 0,!0):this.log("messageId: %d has already used.",P.messageId)):T.destroy&&T.destroy()};T.on("end",()=>{let P=!0;for(let k in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[k]){P=!1;break}this.removeListener("close",R),P?(O(),this._invokeAllStoreProcessingQueue(),this.emit("connect",C)):x()}),M()};x()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let C=this._storeProcessingQueue[0];if(C&&C.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let C of this._storeProcessingQueue)C.cbStorePut&&C.cbStorePut(new Error("Connection closed")),C.callback&&C.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(C,x){delete this.outgoing[C],this.outgoingStore.del({messageId:C},(T,R)=>{x(T,R),this.messageIdProvider.deallocate(C),this._invokeStoreProcessingQueue()})}};E.VERSION=g.MQTTJS_VERSION,e.default=E}),yEt=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=C6e(),r=class{constructor(){this.numberAllocator=new n.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(i){return this.numberAllocator.use(i)}deallocate(i){this.numberAllocator.free(i)}clear(){this.numberAllocator.clear()}};e.default=r});function fE(e){throw new RangeError(T6e[e])}function p0e(e,n){let r=e.split("@"),i="";r.length>1&&(i=r[0]+"@",e=r[1]);let o=function(a,s){let l=[],c=a.length;for(;c--;)l[c]=s(a[c]);return l}((e=e.replace(x6e,".")).split("."),n).join(".");return i+o}function h0e(e){let n=[],r=0,i=e.length;for(;r<i;){let o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<i){let a=e.charCodeAt(r++);(64512&a)==56320?n.push(((1023&o)<<10)+(1023&a)+65536):(n.push(o),r--)}else n.push(o)}return n}var g0e,m0e,x6e,T6e,ch,d3,UW,HW,zW,VW,ab,_Et=bc(()=>{fn(),hn(),pn(),g0e=/^xn--/,m0e=/[^\0-\x7E]/,x6e=/[\x2E\u3002\uFF0E\uFF61]/g,T6e={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ch=Math.floor,d3=String.fromCharCode,UW=function(e,n){return e+22+75*(e<26)-((n!=0)<<5)},HW=function(e,n,r){let i=0;for(e=r?ch(e/700):e>>1,e+=ch(e/n);e>455;i+=36)e=ch(e/35);return ch(i+36*e/(e+38))},zW=function(e){let n=[],r=e.length,i=0,o=128,a=72,s=e.lastIndexOf("-");s<0&&(s=0);for(let c=0;c<s;++c)e.charCodeAt(c)>=128&&fE("not-basic"),n.push(e.charCodeAt(c));for(let c=s>0?s+1:0;c<r;){let u=i;for(let f=1,p=36;;p+=36){c>=r&&fE("invalid-input");let h=(l=e.charCodeAt(c++))-48<10?l-22:l-65<26?l-65:l-97<26?l-97:36;(h>=36||h>ch((2147483647-i)/f))&&fE("overflow"),i+=h*f;let g=p<=a?1:p>=a+26?26:p-a;if(h<g)break;let v=36-g;f>ch(2147483647/v)&&fE("overflow"),f*=v}let d=n.length+1;a=HW(i-u,d,u==0),ch(i/d)>2147483647-o&&fE("overflow"),o+=ch(i/d),i%=d,n.splice(i++,0,o)}var l;return String.fromCodePoint(...n)},VW=function(e){let n=[],r=(e=h0e(e)).length,i=128,o=0,a=72;for(let c of e)c<128&&n.push(d3(c));let s=n.length,l=s;for(s&&n.push("-");l<r;){let c=2147483647;for(let d of e)d>=i&&d<c&&(c=d);let u=l+1;c-i>ch((2147483647-o)/u)&&fE("overflow"),o+=(c-i)*u,i=c;for(let d of e)if(d<i&&++o>2147483647&&fE("overflow"),d==i){let f=o;for(let p=36;;p+=36){let h=p<=a?1:p>=a+26?26:p-a;if(f<h)break;let g=f-h,v=36-h;n.push(d3(UW(h+g%v,0))),f=ch(g/v)}n.push(d3(UW(f,0))),a=HW(o,u,l==s),o=0,++l}++o,++i}return n.join("")},ab={version:"2.1.0",ucs2:{decode:h0e,encode:e=>String.fromCodePoint(...e)},decode:zW,encode:VW,toASCII:function(e){return p0e(e,function(n){return m0e.test(n)?"xn--"+VW(n):n})},toUnicode:function(e){return p0e(e,function(n){return g0e.test(n)?zW(n.slice(4).toLowerCase()):n})}},ab.decode,ab.encode,ab.toASCII,ab.toUnicode,ab.ucs2,ab.version});function bEt(e,n){return Object.prototype.hasOwnProperty.call(e,n)}var v0e,ux,y0e,Vg,SEt=bc(()=>{fn(),hn(),pn(),v0e=function(e,n,r,i){n=n||"&",r=r||"=";var o={};if(typeof e!="string"||e.length===0)return o;var a=/\+/g;e=e.split(n);var s=1e3;i&&typeof i.maxKeys=="number"&&(s=i.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var u,d,f,p,h=e[c].replace(a,"%20"),g=h.indexOf(r);g>=0?(u=h.substr(0,g),d=h.substr(g+1)):(u=h,d=""),f=decodeURIComponent(u),p=decodeURIComponent(d),bEt(o,f)?Array.isArray(o[f])?o[f].push(p):o[f]=[o[f],p]:o[f]=p}return o},ux=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},y0e=function(e,n,r,i){return n=n||"&",r=r||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(o){var a=encodeURIComponent(ux(o))+r;return Array.isArray(e[o])?e[o].map(function(s){return a+encodeURIComponent(ux(s))}).join(n):a+encodeURIComponent(ux(e[o]))}).join(n):i?encodeURIComponent(ux(i))+r+encodeURIComponent(ux(e)):""},Vg={},Vg.decode=Vg.parse=v0e,Vg.encode=Vg.stringify=y0e,Vg.decode,Vg.encode,Vg.parse,Vg.stringify});function dne(){throw new Error("setTimeout has not been defined")}function fne(){throw new Error("clearTimeout has not been defined")}function O6e(e){if($v===setTimeout)return setTimeout(e,0);if(($v===dne||!$v)&&setTimeout)return $v=setTimeout,setTimeout(e,0);try{return $v(e,0)}catch{try{return $v.call(null,e,0)}catch{return $v.call(this||E1,e,0)}}}function EEt(){C1&&QE&&(C1=!1,QE.length?lm=QE.concat(lm):k2=-1,lm.length&&R6e())}function R6e(){if(!C1){var e=O6e(EEt);C1=!0;for(var n=lm.length;n;){for(QE=lm,lm=[];++k2<n;)QE&&QE[k2].run();k2=-1,n=lm.length}QE=null,C1=!1,function(r){if(Fv===clearTimeout)return clearTimeout(r);if((Fv===fne||!Fv)&&clearTimeout)return Fv=clearTimeout,clearTimeout(r);try{Fv(r)}catch{try{return Fv.call(null,r)}catch{return Fv.call(this||E1,r)}}}(e)}}function _0e(e,n){(this||E1).fun=e,(this||E1).array=n}function Cv(){}var b0e,$v,Fv,E1,fs,QE,lm,C1,k2,es,CEt=bc(()=>{fn(),hn(),pn(),E1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,fs=b0e={},function(){try{$v=typeof setTimeout=="function"?setTimeout:dne}catch{$v=dne}try{Fv=typeof clearTimeout=="function"?clearTimeout:fne}catch{Fv=fne}}(),lm=[],C1=!1,k2=-1,fs.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];lm.push(new _0e(e,n)),lm.length!==1||C1||O6e(R6e)},_0e.prototype.run=function(){(this||E1).fun.apply(null,(this||E1).array)},fs.title="browser",fs.browser=!0,fs.env={},fs.argv=[],fs.version="",fs.versions={},fs.on=Cv,fs.addListener=Cv,fs.once=Cv,fs.off=Cv,fs.removeListener=Cv,fs.removeAllListeners=Cv,fs.emit=Cv,fs.prependListener=Cv,fs.prependOnceListener=Cv,fs.listeners=function(e){return[]},fs.binding=function(e){throw new Error("process.binding is not supported")},fs.cwd=function(){return"/"},fs.chdir=function(e){throw new Error("process.chdir is not supported")},fs.umask=function(){return 0},es=b0e,es.addListener,es.argv,es.binding,es.browser,es.chdir,es.cwd,es.emit,es.env,es.listeners,es.nextTick,es.off,es.on,es.once,es.prependListener,es.prependOnceListener,es.removeAllListeners,es.removeListener,es.title,es.umask,es.version,es.versions});function wEt(){if(pne)return F5;pne=!0;var e=F5={},n,r;function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?n=setTimeout:n=i}catch{n=i}try{typeof clearTimeout=="function"?r=clearTimeout:r=o}catch{r=o}})();function a(v){if(n===setTimeout)return setTimeout(v,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(v,0);try{return n(v,0)}catch{try{return n.call(null,v,0)}catch{return n.call(this||IE,v,0)}}}function s(v){if(r===clearTimeout)return clearTimeout(v);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(v);try{return r(v)}catch{try{return r.call(null,v)}catch{return r.call(this||IE,v)}}}var l=[],c=!1,u,d=-1;function f(){!c||!u||(c=!1,u.length?l=u.concat(l):d=-1,l.length&&p())}function p(){if(!c){var v=a(f);c=!0;for(var y=l.length;y;){for(u=l,l=[];++d<y;)u&&u[d].run();d=-1,y=l.length}u=null,c=!1,s(v)}}e.nextTick=function(v){var y=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)y[_-1]=arguments[_];l.push(new h(v,y)),l.length===1&&!c&&a(p)};function h(v,y){(this||IE).fun=v,(this||IE).array=y}h.prototype.run=function(){(this||IE).fun.apply(null,(this||IE).array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function g(){}return e.on=g,e.addListener=g,e.once=g,e.off=g,e.removeListener=g,e.removeAllListeners=g,e.emit=g,e.prependListener=g,e.prependOnceListener=g,e.listeners=function(v){return[]},e.binding=function(v){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(v){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},F5}var F5,pne,IE,ka,I6e=bc(()=>{fn(),hn(),pn(),F5={},pne=!1,IE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,ka=wEt(),ka.platform="browser",ka.addListener,ka.argv,ka.binding,ka.browser,ka.chdir,ka.cwd,ka.emit,ka.env,ka.listeners,ka.nextTick,ka.off,ka.on,ka.once,ka.prependListener,ka.prependOnceListener,ka.removeAllListeners,ka.removeListener,ka.title,ka.umask,ka.version,ka.versions});function xEt(){if(hne)return B5;hne=!0;var e=ka;function n(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function r(a,s){for(var l="",c=0,u=-1,d=0,f,p=0;p<=a.length;++p){if(p<a.length)f=a.charCodeAt(p);else{if(f===47)break;f=47}if(f===47){if(!(u===p-1||d===1))if(u!==p-1&&d===2){if(l.length<2||c!==2||l.charCodeAt(l.length-1)!==46||l.charCodeAt(l.length-2)!==46){if(l.length>2){var h=l.lastIndexOf("/");if(h!==l.length-1){h===-1?(l="",c=0):(l=l.slice(0,h),c=l.length-1-l.lastIndexOf("/")),u=p,d=0;continue}}else if(l.length===2||l.length===1){l="",c=0,u=p,d=0;continue}}s&&(l.length>0?l+="/..":l="..",c=2)}else l.length>0?l+="/"+a.slice(u+1,p):l=a.slice(u+1,p),c=p-u-1;u=p,d=0}else f===46&&d!==-1?++d:d=-1}return l}function i(a,s){var l=s.dir||s.root,c=s.base||(s.name||"")+(s.ext||"");return l?l===s.root?l+c:l+a+c:c}var o={resolve:function(){for(var a="",s=!1,l,c=arguments.length-1;c>=-1&&!s;c--){var u;c>=0?u=arguments[c]:(l===void 0&&(l=e.cwd()),u=l),n(u),u.length!==0&&(a=u+"/"+a,s=u.charCodeAt(0)===47)}return a=r(a,!s),s?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(a){if(n(a),a.length===0)return".";var s=a.charCodeAt(0)===47,l=a.charCodeAt(a.length-1)===47;return a=r(a,!s),a.length===0&&!s&&(a="."),a.length>0&&l&&(a+="/"),s?"/"+a:a},isAbsolute:function(a){return n(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,s=0;s<arguments.length;++s){var l=arguments[s];n(l),l.length>0&&(a===void 0?a=l:a+="/"+l)}return a===void 0?".":o.normalize(a)},relative:function(a,s){if(n(a),n(s),a===s||(a=o.resolve(a),s=o.resolve(s),a===s))return"";for(var l=1;l<a.length&&a.charCodeAt(l)===47;++l);for(var c=a.length,u=c-l,d=1;d<s.length&&s.charCodeAt(d)===47;++d);for(var f=s.length,p=f-d,h=u<p?u:p,g=-1,v=0;v<=h;++v){if(v===h){if(p>h){if(s.charCodeAt(d+v)===47)return s.slice(d+v+1);if(v===0)return s.slice(d+v)}else u>h&&(a.charCodeAt(l+v)===47?g=v:v===0&&(g=0));break}var y=a.charCodeAt(l+v),_=s.charCodeAt(d+v);if(y!==_)break;y===47&&(g=v)}var S="";for(v=l+g+1;v<=c;++v)(v===c||a.charCodeAt(v)===47)&&(S.length===0?S+="..":S+="/..");return S.length>0?S+s.slice(d+g):(d+=g,s.charCodeAt(d)===47&&++d,s.slice(d))},_makeLong:function(a){return a},dirname:function(a){if(n(a),a.length===0)return".";for(var s=a.charCodeAt(0),l=s===47,c=-1,u=!0,d=a.length-1;d>=1;--d)if(s=a.charCodeAt(d),s===47){if(!u){c=d;break}}else u=!1;return c===-1?l?"/":".":l&&c===1?"//":a.slice(0,c)},basename:function(a,s){if(s!==void 0&&typeof s!="string")throw new TypeError('"ext" argument must be a string');n(a);var l=0,c=-1,u=!0,d;if(s!==void 0&&s.length>0&&s.length<=a.length){if(s.length===a.length&&s===a)return"";var f=s.length-1,p=-1;for(d=a.length-1;d>=0;--d){var h=a.charCodeAt(d);if(h===47){if(!u){l=d+1;break}}else p===-1&&(u=!1,p=d+1),f>=0&&(h===s.charCodeAt(f)?--f===-1&&(c=d):(f=-1,c=p))}return l===c?c=p:c===-1&&(c=a.length),a.slice(l,c)}else{for(d=a.length-1;d>=0;--d)if(a.charCodeAt(d)===47){if(!u){l=d+1;break}}else c===-1&&(u=!1,c=d+1);return c===-1?"":a.slice(l,c)}},extname:function(a){n(a);for(var s=-1,l=0,c=-1,u=!0,d=0,f=a.length-1;f>=0;--f){var p=a.charCodeAt(f);if(p===47){if(!u){l=f+1;break}continue}c===-1&&(u=!1,c=f+1),p===46?s===-1?s=f:d!==1&&(d=1):s!==-1&&(d=-1)}return s===-1||c===-1||d===0||d===1&&s===c-1&&s===l+1?"":a.slice(s,c)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return i("/",a)},parse:function(a){n(a);var s={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return s;var l=a.charCodeAt(0),c=l===47,u;c?(s.root="/",u=1):u=0;for(var d=-1,f=0,p=-1,h=!0,g=a.length-1,v=0;g>=u;--g){if(l=a.charCodeAt(g),l===47){if(!h){f=g+1;break}continue}p===-1&&(h=!1,p=g+1),l===46?d===-1?d=g:v!==1&&(v=1):d!==-1&&(v=-1)}return d===-1||p===-1||v===0||v===1&&d===p-1&&d===f+1?p!==-1&&(f===0&&c?s.base=s.name=a.slice(1,p):s.base=s.name=a.slice(f,p)):(f===0&&c?(s.name=a.slice(1,d),s.base=a.slice(1,p)):(s.name=a.slice(f,d),s.base=a.slice(f,p)),s.ext=a.slice(d,p)),f>0?s.dir=a.slice(0,f-1):c&&(s.dir="/"),s},sep:"/",delimiter:":",win32:null,posix:null};return o.posix=o,B5=o,B5}var B5,hne,gne,TEt=bc(()=>{fn(),hn(),pn(),I6e(),B5={},hne=!1,gne=xEt()}),N6e={};GC(N6e,{URL:()=>q6e,Url:()=>z6e,default:()=>Go,fileURLToPath:()=>M6e,format:()=>V6e,parse:()=>Y6e,pathToFileURL:()=>P6e,resolve:()=>G6e,resolveObject:()=>W6e});function Qf(){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 GN(e,n,r){if(e&&hh.isObject(e)&&e instanceof Qf)return e;var i=new Qf;return i.parse(e,n,r),i}function OEt(){if(mne)return j5;mne=!0;var e=es;function n(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function r(a,s){for(var l="",c=0,u=-1,d=0,f,p=0;p<=a.length;++p){if(p<a.length)f=a.charCodeAt(p);else{if(f===47)break;f=47}if(f===47){if(!(u===p-1||d===1))if(u!==p-1&&d===2){if(l.length<2||c!==2||l.charCodeAt(l.length-1)!==46||l.charCodeAt(l.length-2)!==46){if(l.length>2){var h=l.lastIndexOf("/");if(h!==l.length-1){h===-1?(l="",c=0):(l=l.slice(0,h),c=l.length-1-l.lastIndexOf("/")),u=p,d=0;continue}}else if(l.length===2||l.length===1){l="",c=0,u=p,d=0;continue}}s&&(l.length>0?l+="/..":l="..",c=2)}else l.length>0?l+="/"+a.slice(u+1,p):l=a.slice(u+1,p),c=p-u-1;u=p,d=0}else f===46&&d!==-1?++d:d=-1}return l}function i(a,s){var l=s.dir||s.root,c=s.base||(s.name||"")+(s.ext||"");return l?l===s.root?l+c:l+a+c:c}var o={resolve:function(){for(var a="",s=!1,l,c=arguments.length-1;c>=-1&&!s;c--){var u;c>=0?u=arguments[c]:(l===void 0&&(l=e.cwd()),u=l),n(u),u.length!==0&&(a=u+"/"+a,s=u.charCodeAt(0)===47)}return a=r(a,!s),s?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(a){if(n(a),a.length===0)return".";var s=a.charCodeAt(0)===47,l=a.charCodeAt(a.length-1)===47;return a=r(a,!s),a.length===0&&!s&&(a="."),a.length>0&&l&&(a+="/"),s?"/"+a:a},isAbsolute:function(a){return n(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,s=0;s<arguments.length;++s){var l=arguments[s];n(l),l.length>0&&(a===void 0?a=l:a+="/"+l)}return a===void 0?".":o.normalize(a)},relative:function(a,s){if(n(a),n(s),a===s||(a=o.resolve(a),s=o.resolve(s),a===s))return"";for(var l=1;l<a.length&&a.charCodeAt(l)===47;++l);for(var c=a.length,u=c-l,d=1;d<s.length&&s.charCodeAt(d)===47;++d);for(var f=s.length,p=f-d,h=u<p?u:p,g=-1,v=0;v<=h;++v){if(v===h){if(p>h){if(s.charCodeAt(d+v)===47)return s.slice(d+v+1);if(v===0)return s.slice(d+v)}else u>h&&(a.charCodeAt(l+v)===47?g=v:v===0&&(g=0));break}var y=a.charCodeAt(l+v),_=s.charCodeAt(d+v);if(y!==_)break;y===47&&(g=v)}var S="";for(v=l+g+1;v<=c;++v)(v===c||a.charCodeAt(v)===47)&&(S.length===0?S+="..":S+="/..");return S.length>0?S+s.slice(d+g):(d+=g,s.charCodeAt(d)===47&&++d,s.slice(d))},_makeLong:function(a){return a},dirname:function(a){if(n(a),a.length===0)return".";for(var s=a.charCodeAt(0),l=s===47,c=-1,u=!0,d=a.length-1;d>=1;--d)if(s=a.charCodeAt(d),s===47){if(!u){c=d;break}}else u=!1;return c===-1?l?"/":".":l&&c===1?"//":a.slice(0,c)},basename:function(a,s){if(s!==void 0&&typeof s!="string")throw new TypeError('"ext" argument must be a string');n(a);var l=0,c=-1,u=!0,d;if(s!==void 0&&s.length>0&&s.length<=a.length){if(s.length===a.length&&s===a)return"";var f=s.length-1,p=-1;for(d=a.length-1;d>=0;--d){var h=a.charCodeAt(d);if(h===47){if(!u){l=d+1;break}}else p===-1&&(u=!1,p=d+1),f>=0&&(h===s.charCodeAt(f)?--f===-1&&(c=d):(f=-1,c=p))}return l===c?c=p:c===-1&&(c=a.length),a.slice(l,c)}else{for(d=a.length-1;d>=0;--d)if(a.charCodeAt(d)===47){if(!u){l=d+1;break}}else c===-1&&(u=!1,c=d+1);return c===-1?"":a.slice(l,c)}},extname:function(a){n(a);for(var s=-1,l=0,c=-1,u=!0,d=0,f=a.length-1;f>=0;--f){var p=a.charCodeAt(f);if(p===47){if(!u){l=f+1;break}continue}c===-1&&(u=!1,c=f+1),p===46?s===-1?s=f:d!==1&&(d=1):s!==-1&&(d=-1)}return s===-1||c===-1||d===0||d===1&&s===c-1&&s===l+1?"":a.slice(s,c)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return i("/",a)},parse:function(a){n(a);var s={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return s;var l=a.charCodeAt(0),c=l===47,u;c?(s.root="/",u=1):u=0;for(var d=-1,f=0,p=-1,h=!0,g=a.length-1,v=0;g>=u;--g){if(l=a.charCodeAt(g),l===47){if(!h){f=g+1;break}continue}p===-1&&(h=!1,p=g+1),l===46?d===-1?d=g:v!==1&&(v=1):d!==-1&&(v=-1)}return d===-1||p===-1||v===0||v===1&&d===p-1&&d===f+1?p!==-1&&(f===0&&c?s.base=s.name=a.slice(1,p):s.base=s.name=a.slice(f,p)):(f===0&&c?(s.name=a.slice(1,d),s.base=a.slice(1,p)):(s.name=a.slice(f,d),s.base=a.slice(f,p)),s.ext=a.slice(d,p)),f>0?s.dir=a.slice(0,f-1):c&&(s.dir="/"),s},sep:"/",delimiter:":",win32:null,posix:null};return o.posix=o,j5=o,j5}function REt(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 MF?IEt(e):NEt(e)}function IEt(e){let n=e.hostname,r=e.pathname;for(let i=0;i<r.length;i++)if(r[i]==="%"){let o=r.codePointAt(i+2)||32;if(r[i+1]==="2"&&o===102||r[i+1]==="5"&&o===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(r=r.replace($6e,"\\"),r=decodeURIComponent(r),n!=="")return`\\\\${n}${r}`;{let i=r.codePointAt(1)|32,o=r[2];if(i<k6e||i>L6e||o!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function NEt(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let 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)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(n)}function MEt(e){let n=vne.resolve(e),r=e.charCodeAt(e.length-1);(r===D6e||MF&&r===A6e)&&n[n.length-1]!==vne.sep&&(n+="/");let i=new URL("file://");return n.includes("%")&&(n=n.replace(F6e,"%25")),!MF&&n.includes("\\")&&(n=n.replace(B6e,"%5C")),n.includes(`
`)&&(n=n.replace(j6e,"%0A")),n.includes("\r")&&(n=n.replace(U6e,"%0D")),n.includes(" ")&&(n=n.replace(H6e,"%09")),i.pathname=n,i}function M6e(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 PF?PEt(e):AEt(e)}function PEt(e){let n=e.hostname,r=e.pathname;for(let i=0;i<r.length;i++)if(r[i]==="%"){let o=r.codePointAt(i+2)||32;if(r[i+1]==="2"&&o===102||r[i+1]==="5"&&o===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(r=r.replace(J6e,"\\"),r=decodeURIComponent(r),n!=="")return`\\\\${n}${r}`;{let i=r.codePointAt(1)|32,o=r[2];if(i<Q6e||i>Z6e||o!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return r.slice(1)}}function AEt(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let 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)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(n)}function P6e(e){let n=gne.resolve(e),r=e.charCodeAt(e.length-1);(r===X6e||PF&&r===K6e)&&n[n.length-1]!==gne.sep&&(n+="/");let i=new URL("file://");return n.includes("%")&&(n=n.replace(eFe,"%25")),!PF&&n.includes("\\")&&(n=n.replace(tFe,"%5C")),n.includes(`
`)&&(n=n.replace(nFe,"%0A")),n.includes("\r")&&(n=n.replace(rFe,"%0D")),n.includes(" ")&&(n=n.replace(iFe,"%09")),i.pathname=n,i}var Go,S0e,hh,E0e,C0e,w0e,x0e,f3,GW,WW,YW,T0e,O0e,p3,pE,h3,j5,mne,vne,R0e,A6e,D6e,k6e,L6e,MF,$6e,F6e,B6e,j6e,U6e,H6e,I0e,z6e,V6e,G6e,W6e,Y6e,q6e,K6e,X6e,Q6e,Z6e,PF,J6e,eFe,tFe,nFe,rFe,iFe,DEt=bc(()=>{fn(),hn(),pn(),_Et(),SEt(),CEt(),TEt(),I6e(),Go={},S0e=ab,hh={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}},Go.parse=GN,Go.resolve=function(e,n){return GN(e,!1,!0).resolve(n)},Go.resolveObject=function(e,n){return e?GN(e,!1,!0).resolveObject(n):n},Go.format=function(e){return hh.isString(e)&&(e=GN(e)),e instanceof Qf?e.format():Qf.prototype.format.call(e)},Go.Url=Qf,E0e=/^([a-z0-9.+-]+:)/i,C0e=/:[0-9]*$/,w0e=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,x0e=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
`," "]),f3=["'"].concat(x0e),GW=["%","/","?",";","#"].concat(f3),WW=["/","?","#"],YW=/^[+a-z0-9A-Z_-]{0,63}$/,T0e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,O0e={javascript:!0,"javascript:":!0},p3={javascript:!0,"javascript:":!0},pE={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},h3=Vg,Qf.prototype.parse=function(e,n,r){if(!hh.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),o=i!==-1&&i<e.indexOf("#")?"?":"#",a=e.split(o);a[0]=a[0].replace(/\\/g,"/");var s=e=a.join(o);if(s=s.trim(),!r&&e.split("#").length===1){var l=w0e.exec(s);if(l)return this.path=s,this.href=s,this.pathname=l[1],l[2]?(this.search=l[2],this.query=n?h3.parse(this.search.substr(1)):this.search.substr(1)):n&&(this.search="",this.query={}),this}var c=E0e.exec(s);if(c){var u=(c=c[0]).toLowerCase();this.protocol=u,s=s.substr(c.length)}if(r||c||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var d=s.substr(0,2)==="//";!d||c&&p3[c]||(s=s.substr(2),this.slashes=!0)}if(!p3[c]&&(d||c&&!pE[c])){for(var f,p,h=-1,g=0;g<WW.length;g++)(v=s.indexOf(WW[g]))!==-1&&(h===-1||v<h)&&(h=v);for((p=h===-1?s.lastIndexOf("@"):s.lastIndexOf("@",h))!==-1&&(f=s.slice(0,p),s=s.slice(p+1),this.auth=decodeURIComponent(f)),h=-1,g=0;g<GW.length;g++){var v;(v=s.indexOf(GW[g]))!==-1&&(h===-1||v<h)&&(h=v)}h===-1&&(h=s.length),this.host=s.slice(0,h),s=s.slice(h),this.parseHost(),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y)for(var _=this.hostname.split(/\./),S=(g=0,_.length);g<S;g++){var b=_[g];if(b&&!b.match(YW)){for(var E="",w=0,C=b.length;w<C;w++)b.charCodeAt(w)>127?E+="x":E+=b[w];if(!E.match(YW)){var x=_.slice(0,g),T=_.slice(g+1),R=b.match(T0e);R&&(x.push(R[1]),T.unshift(R[2])),T.length&&(s="/"+T.join(".")+s),this.hostname=x.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),y||(this.hostname=S0e.toASCII(this.hostname));var O=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+O,this.href+=this.host,y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!O0e[u])for(g=0,S=f3.length;g<S;g++){var P=f3[g];if(s.indexOf(P)!==-1){var k=encodeURIComponent(P);k===P&&(k=escape(P)),s=s.split(P).join(k)}}var $=s.indexOf("#");$!==-1&&(this.hash=s.substr($),s=s.slice(0,$));var U=s.indexOf("?");if(U!==-1?(this.search=s.substr(U),this.query=s.substr(U+1),n&&(this.query=h3.parse(this.query)),s=s.slice(0,U)):n&&(this.search="",this.query={}),s&&(this.pathname=s),pE[u]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){O=this.pathname||"";var z=this.search||"";this.path=O+z}return this.href=this.format(),this},Qf.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var n=this.protocol||"",r=this.pathname||"",i=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&hh.isObject(this.query)&&Object.keys(this.query).length&&(a=h3.stringify(this.query));var s=this.search||a&&"?"+a||"";return n&&n.substr(-1)!==":"&&(n+=":"),this.slashes||(!n||pE[n])&&o!==!1?(o="//"+(o||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):o||(o=""),i&&i.charAt(0)!=="#"&&(i="#"+i),s&&s.charAt(0)!=="?"&&(s="?"+s),n+o+(r=r.replace(/[?#]/g,function(l){return encodeURIComponent(l)}))+(s=s.replace("#","%23"))+i},Qf.prototype.resolve=function(e){return this.resolveObject(GN(e,!1,!0)).format()},Qf.prototype.resolveObject=function(e){if(hh.isString(e)){var n=new Qf;n.parse(e,!1,!0),e=n}for(var r=new Qf,i=Object.keys(this),o=0;o<i.length;o++){var a=i[o];r[a]=this[a]}if(r.hash=e.hash,e.href==="")return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var c=s[l];c!=="protocol"&&(r[c]=e[c])}return pE[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!pE[e.protocol]){for(var u=Object.keys(e),d=0;d<u.length;d++){var f=u[d];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||p3[e.protocol])r.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),p[0]!==""&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var h=r.pathname||"",g=r.search||"";r.path=h+g}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var v=r.pathname&&r.pathname.charAt(0)==="/",y=e.host||e.pathname&&e.pathname.charAt(0)==="/",_=y||v||r.host&&e.pathname,S=_,b=r.pathname&&r.pathname.split("/")||[],E=(p=e.pathname&&e.pathname.split("/")||[],r.protocol&&!pE[r.protocol]);if(E&&(r.hostname="",r.port=null,r.host&&(b[0]===""?b[0]=r.host:b.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(p[0]===""?p[0]=e.host:p.unshift(e.host)),e.host=null),_=_&&(p[0]===""||b[0]==="")),y)r.host=e.host||e.host===""?e.host:r.host,r.hostname=e.hostname||e.hostname===""?e.hostname:r.hostname,r.search=e.search,r.query=e.query,b=p;else if(p.length)b||(b=[]),b.pop(),b=b.concat(p),r.search=e.search,r.query=e.query;else if(!hh.isNullOrUndefined(e.search))return E&&(r.hostname=r.host=b.shift(),(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),r.search=e.search,r.query=e.query,hh.isNull(r.pathname)&&hh.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!b.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var w=b.slice(-1)[0],C=(r.host||e.host||b.length>1)&&(w==="."||w==="..")||w==="",x=0,T=b.length;T>=0;T--)(w=b[T])==="."?b.splice(T,1):w===".."?(b.splice(T,1),x++):x&&(b.splice(T,1),x--);if(!_&&!S)for(;x--;x)b.unshift("..");!_||b[0]===""||b[0]&&b[0].charAt(0)==="/"||b.unshift(""),C&&b.join("/").substr(-1)!=="/"&&b.push("");var R,O=b[0]===""||b[0]&&b[0].charAt(0)==="/";return E&&(r.hostname=r.host=O?"":b.length?b.shift():"",(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),(_=_||r.host&&b.length)&&!O&&b.unshift(""),b.length?r.pathname=b.join("/"):(r.pathname=null,r.path=null),hh.isNull(r.pathname)&&hh.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},Qf.prototype.parseHost=function(){var e=this.host,n=C0e.exec(e);n&&((n=n[0])!==":"&&(this.port=n.substr(1)),e=e.substr(0,e.length-n.length)),e&&(this.hostname=e)},Go.Url,Go.format,Go.resolve,Go.resolveObject,j5={},mne=!1,vne=OEt(),R0e=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Go.URL=typeof URL<"u"?URL:null,Go.pathToFileURL=MEt,Go.fileURLToPath=REt,Go.Url,Go.format,Go.resolve,Go.resolveObject,Go.URL,A6e=92,D6e=47,k6e=97,L6e=122,MF=R0e==="win32",$6e=/\//g,F6e=/%/g,B6e=/\\/g,j6e=/\n/g,U6e=/\r/g,H6e=/\t/g,I0e=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Go.URL=typeof URL<"u"?URL:null,Go.pathToFileURL=P6e,Go.fileURLToPath=M6e,z6e=Go.Url,V6e=Go.format,G6e=Go.resolve,W6e=Go.resolveObject,Y6e=Go.parse,q6e=Go.URL,K6e=92,X6e=47,Q6e=97,Z6e=122,PF=I0e==="win32",J6e=/\//g,eFe=/%/g,tFe=/\\/g,nFe=/\n/g,rFe=/\r/g,iFe=/\t/g}),kEt=On((e,n)=>{fn(),hn(),pn(),n.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),kle=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedDuplex=e.writev=void 0;var n=qC(),r=(Ec(),na(Sc));function i(a,s){let l=new Array(a.length);for(let c=0;c<a.length;c++)typeof a[c].chunk=="string"?l[c]=r.Buffer.from(a[c].chunk,"utf8"):l[c]=a[c].chunk;this._write(r.Buffer.concat(l),"binary",s)}e.writev=i;var o=class extends n.Duplex{constructor(a,s,l){super({objectMode:!0}),this.proxy=s,this.socket=l,this.writeQueue=[],a.objectMode||(this._writev=i.bind(this)),this.isSocketOpen=!1,this.proxy.on("data",c=>{this.destroyed||this.push(c)})}_read(a){this.proxy.read(a)}_write(a,s,l){this.isSocketOpen?this.writeToProxy(a,s,l):this.writeQueue.push({chunk:a,encoding:s,cb:l})}_final(a){this.writeQueue=[],this.proxy.end(a)}_destroy(a,s){this.writeQueue=[],this.proxy.destroy(),s(a)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(a,s,l){this.proxy.write(a,s)===!1?this.proxy.once("drain",l):l()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:a,encoding:s,cb:l}=this.writeQueue.shift();this.writeToProxy(a,s,l)}}};e.BufferedDuplex=o}),g3=On(e=>{fn(),hn(),pn();var n=e&&e.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(e,"__esModule",{value:!0}),e.streamBuilder=e.browserStreamBuilder=void 0;var r=(Ec(),na(Sc)),i=n(kEt()),o=n(wy()),a=qC(),s=n(F7()),l=kle(),c=(0,o.default)("mqttjs:ws"),u=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function d(_,S){let b=`${_.protocol}://${_.hostname}:${_.port}${_.path}`;return typeof _.transformWsUrl=="function"&&(b=_.transformWsUrl(b,_,S)),b}function f(_){let S=_;return _.port||(_.protocol==="wss"?S.port=443:S.port=80),_.path||(S.path="/"),_.wsOptions||(S.wsOptions={}),!s.default&&!_.forceNativeWebSocket&&_.protocol==="wss"&&u.forEach(b=>{Object.prototype.hasOwnProperty.call(_,b)&&!Object.prototype.hasOwnProperty.call(_.wsOptions,b)&&(S.wsOptions[b]=_[b])}),S}function p(_){let S=f(_);if(S.hostname||(S.hostname=S.host),!S.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let b=new URL(document.URL);S.hostname=b.hostname,S.port||(S.port=Number(b.port))}return S.objectMode===void 0&&(S.objectMode=!(S.binary===!0||S.binary===void 0)),S}function h(_,S,b){c("createWebSocket"),c(`protocol: ${b.protocolId} ${b.protocolVersion}`);let E=b.protocolId==="MQIsdp"&&b.protocolVersion===3?"mqttv3.1":"mqtt";c(`creating new Websocket for url: ${S} and protocol: ${E}`);let w;return b.createWebsocket?w=b.createWebsocket(S,[E],b):w=new i.default(S,[E],b.wsOptions),w}function g(_,S){let b=S.protocolId==="MQIsdp"&&S.protocolVersion===3?"mqttv3.1":"mqtt",E=d(S,_),w;return S.createWebsocket?w=S.createWebsocket(E,[b],S):w=new WebSocket(E,[b]),w.binaryType="arraybuffer",w}var v=(_,S)=>{c("streamBuilder");let b=f(S);b.hostname=b.hostname||b.host||"localhost";let E=d(b,_),w=h(_,E,b),C=i.default.createWebSocketStream(w,b.wsOptions);return C.url=E,w.on("close",()=>{C.destroy()}),C};e.streamBuilder=v;var y=(_,S)=>{c("browserStreamBuilder");let b,E=p(S).browserBufferSize||1024*512,w=S.browserBufferTimeout||1e3,C=!S.objectMode,x=g(_,S),T=O(S,U,z);S.objectMode||(T._writev=l.writev.bind(T)),T.on("close",()=>{x.close()});let R=typeof x.addEventListener<"u";x.readyState===x.OPEN?(b=T,b.socket=x):(b=new l.BufferedDuplex(S,T,x),R?x.addEventListener("open",M):x.onopen=M),R?(x.addEventListener("close",P),x.addEventListener("error",k),x.addEventListener("message",$)):(x.onclose=P,x.onerror=k,x.onmessage=$);function O(D,B,Y){let q=new a.Transform({objectMode:D.objectMode});return q._write=B,q._flush=Y,q}function M(){c("WebSocket onOpen"),b instanceof l.BufferedDuplex&&b.socketReady()}function P(D){c("WebSocket onClose",D),b.end(),b.destroy()}function k(D){c("WebSocket onError",D);let B=new Error("WebSocket error");B.event=D,b.destroy(B)}async function $(D){let{data:B}=D;B instanceof ArrayBuffer?B=r.Buffer.from(B):B instanceof Blob?B=r.Buffer.from(await new Response(B).arrayBuffer()):B=r.Buffer.from(B,"utf8"),T&&!T.destroyed&&T.push(B)}function U(D,B,Y){if(x.bufferedAmount>E){setTimeout(U,w,D,B,Y);return}C&&typeof D=="string"&&(D=r.Buffer.from(D,"utf8"));try{x.send(D)}catch(q){return Y(q)}Y()}function z(D){x.close(),D()}return b};e.browserStreamBuilder=y}),Lle={};GC(Lle,{Server:()=>Fa,Socket:()=>Fa,Stream:()=>Fa,_createServerHandle:()=>Fa,_normalizeArgs:()=>Fa,_setSimultaneousAccepts:()=>Fa,connect:()=>Fa,createConnection:()=>Fa,createServer:()=>Fa,default:()=>oFe,isIP:()=>Fa,isIPv4:()=>Fa,isIPv6:()=>Fa});function Fa(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var oFe,aFe=bc(()=>{fn(),hn(),pn(),oFe={_createServerHandle:Fa,_normalizeArgs:Fa,_setSimultaneousAccepts:Fa,connect:Fa,createConnection:Fa,createServer:Fa,isIP:Fa,isIPv4:Fa,isIPv6:Fa,Server:Fa,Socket:Fa,Stream:Fa}}),N0e=On(e=>{fn(),hn(),pn();var n=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var r=n((aFe(),na(Lle))),i=n(wy()),o=(0,i.default)("mqttjs:tcp"),a=(s,l)=>{l.port=l.port||1883,l.hostname=l.hostname||l.host||"localhost";let{port:c,path:u}=l,d=l.hostname;return o("port %d and host %s",c,d),r.default.createConnection({port:c,host:d,path:u})};e.default=a}),sFe={};GC(sFe,{default:()=>lFe});var lFe,LEt=bc(()=>{fn(),hn(),pn(),lFe={}}),M0e=On(e=>{fn(),hn(),pn();var n=e&&e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0});var r=n((LEt(),na(sFe))),i=n((aFe(),na(Lle))),o=n(wy()),a=(0,o.default)("mqttjs:tls"),s=(l,c)=>{c.port=c.port||8883,c.host=c.hostname||c.host||"localhost",i.default.isIP(c.host)===0&&(c.servername=c.host),c.rejectUnauthorized=c.rejectUnauthorized!==!1,delete c.path,a("port %d host %s rejectUnauthorized %b",c.port,c.host,c.rejectUnauthorized);let u=r.default.connect(c);u.on("secureConnect",()=>{c.rejectUnauthorized&&!u.authorized?u.emit("error",new Error("TLS not authorized")):u.removeListener("error",d)});function d(f){c.rejectUnauthorized&&l.emit("error",f),u.end()}return u.on("error",d),u};e.default=s}),P0e=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=(Ec(),na(Sc)),r=qC(),i=kle(),o,a,s;function l(){let p=new r.Transform;return p._write=(h,g,v)=>{o.send({data:h.buffer,success(){v()},fail(y){v(new Error(y))}})},p._flush=h=>{o.close({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==="wxs"?"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(){o.onOpen(()=>{s.socketReady()}),o.onMessage(p=>{let{data:h}=p;h instanceof ArrayBuffer?h=n.Buffer.from(h):h=n.Buffer.from(h,"utf8"),a.push(h)}),o.onClose(()=>{s.emit("close"),s.end(),s.destroy()}),o.onError(p=>{let h=new Error(p.errMsg);s.destroy(h)})}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);o=wx.connectSocket({url:v,protocols:[g]}),a=l(),s=new i.BufferedDuplex(h,a,o),s._destroy=(_,S)=>{o.close({success(){S&&S(_)}})};let y=s.destroy;return s.destroy=(_,S)=>(s.destroy=y,setTimeout(()=>{o.close({fail(){s._destroy(_,S)}})},0),s),d(),s};e.default=f}),A0e=On(e=>{fn(),hn(),pn(),Object.defineProperty(e,"__esModule",{value:!0});var n=(Ec(),na(Sc)),r=qC(),i=kle(),o,a,s,l=!1;function c(){let h=new r.Transform;return h._write=(g,v,y)=>{o.sendSocketMessage({data:g.buffer,success(){y()},fail(){y(new Error)}})},h._flush=g=>{o.closeSocket({success(){g()}})},h}function u(h){h.hostname||(h.hostname="localhost"),h.path||(h.path="/"),h.wsOptions||(h.wsOptions={})}function d(h,g){let v=h.protocol==="alis"?"wss":"ws",y=`${v}://${h.hostname}${h.path}`;return h.port&&h.port!==80&&h.port!==443&&(y=`${v}://${h.hostname}:${h.port}${h.path}`),typeof h.transformWsUrl=="function"&&(y=h.transformWsUrl(y,h,g)),y}function f(){l||(l=!0,o.onSocketOpen(()=>{s.socketReady()}),o.onSocketMessage(h=>{if(typeof h.data=="string"){let g=n.Buffer.from(h.data,"base64");a.push(g)}else{let g=new FileReader;g.addEventListener("load",()=>{let v=g.result;v instanceof ArrayBuffer?v=n.Buffer.from(v):v=n.Buffer.from(v,"utf8"),a.push(v)}),g.readAsArrayBuffer(h.data)}}),o.onSocketClose(()=>{s.end(),s.destroy()}),o.onSocketError(h=>{s.destroy(h)}))}var p=(h,g)=>{if(g.hostname=g.hostname||g.host,!g.hostname)throw new Error("Could not determine host. Specify host manually.");let v=g.protocolId==="MQIsdp"&&g.protocolVersion===3?"mqttv3.1":"mqtt";u(g);let y=d(g,h);return o=g.my,o.connectSocket({url:y,protocols:v}),a=c(),s=new i.BufferedDuplex(g,a,o),f(),s};e.default=p}),$Et=On(e=>{fn(),hn(),pn();var n=e&&e.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.connectAsync=void 0;var r=n(wy()),i=n((DEt(),na(N6e))),o=n(cne()),a=n(F7());typeof(Ao==null?void 0:Ao.nextTick)!="function"&&(Ao.nextTick=setImmediate);var s=(0,r.default)("mqttjs"),l=null;function c(f){let p;f.auth&&(p=f.auth.match(/^(.+):(.+)$/),p?(f.username=p[1],f.password=p[2]):f.username=f.auth)}function u(f,p){var h,g,v,y;if(s("connecting to an MQTT broker..."),typeof f=="object"&&!p&&(p=f,f=""),p=p||{},f&&typeof f=="string"){let b=i.default.parse(f,!0),E={};if(b.port!=null&&(E.port=Number(b.port)),E.host=b.hostname,E.query=b.query,E.auth=b.auth,E.protocol=b.protocol,E.path=b.path,E.protocol=(h=E.protocol)===null||h===void 0?void 0:h.replace(/:$/,""),p=Object.assign(Object.assign({},E),p),!p.protocol)throw new Error("Missing protocol")}if(p.unixSocket=p.unixSocket||((g=p.protocol)===null||g===void 0?void 0:g.includes("+unix")),p.unixSocket?p.protocol=p.protocol.replace("+unix",""):!(!((v=p.protocol)===null||v===void 0)&&v.startsWith("ws"))&&!(!((y=p.protocol)===null||y===void 0)&&y.startsWith("wx"))&&delete p.path,c(p),p.query&&typeof p.query.clientId=="string"&&(p.clientId=p.query.clientId),p.cert&&p.key)if(p.protocol){if(["mqtts","wss","wxs","alis"].indexOf(p.protocol)===-1)switch(p.protocol){case"mqtt":p.protocol="mqtts";break;case"ws":p.protocol="wss";break;case"wx":p.protocol="wxs";break;case"ali":p.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${p.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(l||(l={},!a.default&&!p.forceNativeWebSocket?(l.ws=g3().streamBuilder,l.wss=g3().streamBuilder,l.mqtt=N0e().default,l.tcp=N0e().default,l.ssl=M0e().default,l.tls=l.ssl,l.mqtts=M0e().default):(l.ws=g3().browserStreamBuilder,l.wss=g3().browserStreamBuilder,l.wx=P0e().default,l.wxs=P0e().default,l.ali=A0e().default,l.alis=A0e().default)),!l[p.protocol]){let b=["mqtts","wss"].indexOf(p.protocol)!==-1;p.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((E,w)=>b&&w%2===0?!1:typeof l[E]=="function")[0]}if(p.clean===!1&&!p.clientId)throw new Error("Missing clientId for unclean clients");p.protocol&&(p.defaultProtocol=p.protocol);function _(b){return p.servers&&((!b._reconnectCount||b._reconnectCount===p.servers.length)&&(b._reconnectCount=0),p.host=p.servers[b._reconnectCount].host,p.port=p.servers[b._reconnectCount].port,p.protocol=p.servers[b._reconnectCount].protocol?p.servers[b._reconnectCount].protocol:p.defaultProtocol,p.hostname=p.host,b._reconnectCount++),s("calling streambuilder for",p.protocol),l[p.protocol](b,p)}let S=new o.default(_,p);return S.on("error",()=>{}),S}function d(f,p,h=!0){return new Promise((g,v)=>{let y=u(f,p),_={connect:b=>{S(),g(y)},end:()=>{S(),g(y)},error:b=>{S(),y.end(),v(b)}};h===!1&&(_.close=()=>{_.error(new Error("Couldn't connect to server"))});function S(){Object.keys(_).forEach(b=>{y.off(b,_[b])})}Object.keys(_).forEach(b=>{y.on(b,_[b])})})}e.connectAsync=d,e.default=u}),D0e=On(e=>{fn(),hn(),pn();var n=e&&e.__createBinding||(Object.create?function(h,g,v,y){y===void 0&&(y=v);var _=Object.getOwnPropertyDescriptor(g,v);(!_||("get"in _?!g.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return g[v]}}),Object.defineProperty(h,y,_)}:function(h,g,v,y){y===void 0&&(y=v),h[y]=g[v]}),r=e&&e.__setModuleDefault||(Object.create?function(h,g){Object.defineProperty(h,"default",{enumerable:!0,value:g})}:function(h,g){h.default=g}),i=e&&e.__importStar||function(h){if(h&&h.__esModule)return h;var g={};if(h!=null)for(var v in h)v!=="default"&&Object.prototype.hasOwnProperty.call(h,v)&&n(g,h,v);return r(g,h),g},o=e&&e.__exportStar||function(h,g){for(var v in h)v!=="default"&&!Object.prototype.hasOwnProperty.call(g,v)&&n(g,h,v)},a=e&&e.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};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 s=a(cne());e.MqttClient=s.default;var l=a(s6e());e.DefaultMessageIdProvider=l.default;var c=a(yEt());e.UniqueMessageIdProvider=c.default;var u=a(l6e());e.Store=u.default;var d=i($Et());e.connect=d.default,Object.defineProperty(e,"connectAsync",{enumerable:!0,get:function(){return d.connectAsync}});var f=a(w6e());e.KeepaliveManager=f.default,e.Client=s.default,o(cne(),e),o(XR(),e);var p=$7();Object.defineProperty(e,"ReasonCodes",{enumerable:!0,get:function(){return p.ReasonCodes}})}),FEt=On(e=>{fn(),hn(),pn();var n=e&&e.__createBinding||(Object.create?function(s,l,c,u){u===void 0&&(u=c);var d=Object.getOwnPropertyDescriptor(l,c);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return l[c]}}),Object.defineProperty(s,u,d)}:function(s,l,c,u){u===void 0&&(u=c),s[u]=l[c]}),r=e&&e.__setModuleDefault||(Object.create?function(s,l){Object.defineProperty(s,"default",{enumerable:!0,value:l})}:function(s,l){s.default=l}),i=e&&e.__importStar||function(s){if(s&&s.__esModule)return s;var l={};if(s!=null)for(var c in s)c!=="default"&&Object.prototype.hasOwnProperty.call(s,c)&&n(l,s,c);return r(l,s),l},o=e&&e.__exportStar||function(s,l){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(l,c)&&n(l,s,c)};Object.defineProperty(e,"__esModule",{value:!0});var a=i(D0e());e.default=a,o(D0e(),e)});const BEt=FEt();/*! Bundled license information:
@jspm/core/nodelibs/browser/buffer.js:
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
*/var zn={};(function(e){var n=typeof Object.defineProperties=="function"?Object.defineProperty:function(A,W,ce){A!=Array.prototype&&A!=Object.prototype&&(A[W]=ce.value)},r=(typeof window<"u"&&window===oo||typeof oo<"u"&&oo!=null,oo);function i(A,W){if(W){var ce=r;A=A.split(".");for(var Pe=0;Pe<A.length-1;Pe++){var qe=A[Pe];qe in ce||(ce[qe]={}),ce=ce[qe]}A=A[A.length-1],Pe=ce[A],W=W(Pe),W!=Pe&&W!=null&&n(ce,A,{configurable:!0,writable:!0,value:W})}}function o(A){var W=0;return function(){return W<A.length?{done:!1,value:A[W++]}:{done:!0}}}function a(){a=function(){},r.Symbol||(r.Symbol=l)}function s(A,W){this.a=A,n(this,"description",{configurable:!0,writable:!0,value:W})}s.prototype.toString=function(){return this.a};var l=function(){function A(ce){if(this instanceof A)throw new TypeError("Symbol is not a constructor");return new s("jscomp_symbol_"+(ce||"")+"_"+W++,ce)}var W=0;return A}();function c(){a();var A=r.Symbol.iterator;A||(A=r.Symbol.iterator=r.Symbol("Symbol.iterator")),typeof Array.prototype[A]!="function"&&n(Array.prototype,A,{configurable:!0,writable:!0,value:function(){return u(o(this))}}),c=function(){}}function u(A){return c(),A={next:A},A[r.Symbol.iterator]=function(){return this},A}function d(A,W){c(),A instanceof String&&(A+="");var ce=0,Pe={next:function(){if(ce<A.length){var qe=ce++;return{value:W(qe,A[qe]),done:!1}}return Pe.next=function(){return{done:!0,value:void 0}},Pe.next()}};return Pe[Symbol.iterator]=function(){return Pe},Pe}i("Array.prototype.entries",function(A){return A||function(){return d(this,function(W,ce){return[W,ce]})}});var f=oo||self;function p(A,W,ce){A=A.split("."),ce=ce||f,A[0]in ce||typeof ce.execScript>"u"||ce.execScript("var "+A[0]);for(var Pe;A.length&&(Pe=A.shift());)A.length||W===void 0?ce[Pe]&&ce[Pe]!==Object.prototype[Pe]?ce=ce[Pe]:ce=ce[Pe]={}:ce[Pe]=W}function h(A){var W=typeof A;if(W=="object")if(A){if(A instanceof Array)return"array";if(A instanceof Object)return W;var ce=Object.prototype.toString.call(A);if(ce=="[object Window]")return"object";if(ce=="[object Array]"||typeof A.length=="number"&&typeof A.splice<"u"&&typeof A.propertyIsEnumerable<"u"&&!A.propertyIsEnumerable("splice"))return"array";if(ce=="[object Function]"||typeof A.call<"u"&&typeof A.propertyIsEnumerable<"u"&&!A.propertyIsEnumerable("call"))return"function"}else return"null";else if(W=="function"&&typeof A.call>"u")return"object";return W}function g(A){var W=typeof A;return W=="object"&&A!=null||W=="function"}function v(A,W,ce){p(A,W,ce)}function y(A,W){function ce(){}ce.prototype=W.prototype,A.prototype=new ce,A.prototype.constructor=A}var _="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function S(A,W){for(var ce,Pe,qe=1;qe<arguments.length;qe++){Pe=arguments[qe];for(ce in Pe)A[ce]=Pe[ce];for(var gt=0;gt<_.length;gt++)ce=_[gt],Object.prototype.hasOwnProperty.call(Pe,ce)&&(A[ce]=Pe[ce])}}var b=Array.prototype.forEach?function(A,W){Array.prototype.forEach.call(A,W,void 0)}:function(A,W){for(var ce=A.length,Pe=typeof A=="string"?A.split(""):A,qe=0;qe<ce;qe++)qe in Pe&&W.call(void 0,Pe[qe],qe,A)},E=Array.prototype.map?function(A,W){return Array.prototype.map.call(A,W,void 0)}:function(A,W){for(var ce=A.length,Pe=Array(ce),qe=typeof A=="string"?A.split(""):A,gt=0;gt<ce;gt++)gt in qe&&(Pe[gt]=W.call(void 0,qe[gt],gt,A));return Pe};function w(A,W,ce){return 2>=arguments.length?Array.prototype.slice.call(A,W):Array.prototype.slice.call(A,W,ce)}function C(A,W,ce,Pe){var qe="Assertion failed";if(ce){qe+=": "+ce;var gt=Pe}else A&&(qe+=": "+A,gt=W);throw Error(qe,gt||[])}function x(A,W,ce){for(var Pe=[],qe=2;qe<arguments.length;++qe)Pe[qe-2]=arguments[qe];return A||C("",null,W,Pe),A}function T(A,W,ce){for(var Pe=[],qe=2;qe<arguments.length;++qe)Pe[qe-2]=arguments[qe];typeof A!="string"&&C("Expected string but got %s: %s.",[h(A),A],W,Pe)}function R(A,W,ce){for(var Pe=[],qe=2;qe<arguments.length;++qe)Pe[qe-2]=arguments[qe];Array.isArray(A)||C("Expected array but got %s: %s.",[h(A),A],W,Pe)}function O(A,W){for(var ce=[],Pe=1;Pe<arguments.length;++Pe)ce[Pe-1]=arguments[Pe];throw Error("Failure"+(A?": "+A:""),ce)}function M(A,W,ce,Pe){for(var qe=[],gt=3;gt<arguments.length;++gt)qe[gt-3]=arguments[gt];A instanceof W||C("Expected instanceof %s but got %s.",[P(W),P(A)],ce,qe)}function P(A){return A instanceof Function?A.displayName||A.name||"unknown type name":A instanceof Object?A.constructor.displayName||A.constructor.name||Object.prototype.toString.call(A):A===null?"null":typeof A}function k(A,W){if(this.c=A,this.b=W,this.a={},this.arrClean=!0,0<this.c.length){for(A=0;A<this.c.length;A++){W=this.c[A];var ce=W[0];this.a[ce.toString()]=new D(ce,W[1])}this.arrClean=!0}}p("jspb.Map",k,void 0),k.prototype.g=function(){if(this.arrClean){if(this.b){var A=this.a,W;for(W in A)if(Object.prototype.hasOwnProperty.call(A,W)){var ce=A[W].a;ce&&ce.g()}}}else{for(this.c.length=0,A=z(this),A.sort(),W=0;W<A.length;W++){var Pe=this.a[A[W]];(ce=Pe.a)&&ce.g(),this.c.push([Pe.key,Pe.value])}this.arrClean=!0}return this.c},k.prototype.toArray=k.prototype.g,k.prototype.Mc=function(A,W){for(var ce=this.g(),Pe=[],qe=0;qe<ce.length;qe++){var gt=this.a[ce[qe][0].toString()];U(this,gt);var Yt=gt.a;Yt?(x(W),Pe.push([gt.key,W(A,Yt)])):Pe.push([gt.key,gt.value])}return Pe},k.prototype.toObject=k.prototype.Mc,k.fromObject=function(A,W,ce){W=new k([],W);for(var Pe=0;Pe<A.length;Pe++){var qe=A[Pe][0],gt=ce(A[Pe][1]);W.set(qe,gt)}return W};function $(A){this.a=0,this.b=A}$.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},typeof Symbol<"u"&&($.prototype[Symbol.iterator]=function(){return this}),k.prototype.Jb=function(){return z(this).length},k.prototype.getLength=k.prototype.Jb,k.prototype.clear=function(){this.a={},this.arrClean=!1},k.prototype.clear=k.prototype.clear,k.prototype.Cb=function(A){A=A.toString();var W=this.a.hasOwnProperty(A);return delete this.a[A],this.arrClean=!1,W},k.prototype.del=k.prototype.Cb,k.prototype.Eb=function(){var A=[],W=z(this);W.sort();for(var ce=0;ce<W.length;ce++){var Pe=this.a[W[ce]];A.push([Pe.key,Pe.value])}return A},k.prototype.getEntryList=k.prototype.Eb,k.prototype.entries=function(){var A=[],W=z(this);W.sort();for(var ce=0;ce<W.length;ce++){var Pe=this.a[W[ce]];A.push([Pe.key,U(this,Pe)])}return new $(A)},k.prototype.entries=k.prototype.entries,k.prototype.keys=function(){var A=[],W=z(this);W.sort();for(var ce=0;ce<W.length;ce++)A.push(this.a[W[ce]].key);return new $(A)},k.prototype.keys=k.prototype.keys,k.prototype.values=function(){var A=[],W=z(this);W.sort();for(var ce=0;ce<W.length;ce++)A.push(U(this,this.a[W[ce]]));return new $(A)},k.prototype.values=k.prototype.values,k.prototype.forEach=function(A,W){var ce=z(this);ce.sort();for(var Pe=0;Pe<ce.length;Pe++){var qe=this.a[ce[Pe]];A.call(W,U(this,qe),qe.key,this)}},k.prototype.forEach=k.prototype.forEach,k.prototype.set=function(A,W){var ce=new D(A);return this.b?(ce.a=W,ce.value=W.g()):ce.value=W,this.a[A.toString()]=ce,this.arrClean=!1,this},k.prototype.set=k.prototype.set;function U(A,W){return A.b?(W.a||(W.a=new A.b(W.value)),W.a):W.value}k.prototype.get=function(A){if(A=this.a[A.toString()])return U(this,A)},k.prototype.get=k.prototype.get,k.prototype.has=function(A){return A.toString()in this.a},k.prototype.has=k.prototype.has,k.prototype.Jc=function(A,W,ce,Pe,qe){var gt=z(this);gt.sort();for(var Yt=0;Yt<gt.length;Yt++){var Nn=this.a[gt[Yt]];W.Va(A),ce.call(W,1,Nn.key),this.b?Pe.call(W,2,U(this,Nn),qe):Pe.call(W,2,Nn.value),W.Ya()}},k.prototype.serializeBinary=k.prototype.Jc,k.deserializeBinary=function(A,W,ce,Pe,qe,gt,Yt){for(;W.oa()&&!W.bb();){var Nn=W.c;Nn==1?gt=ce.call(W):Nn==2&&(A.b?(x(qe),Yt||(Yt=new A.b),Pe.call(W,Yt,qe)):Yt=Pe.call(W))}x(gt!=null),x(Yt!=null),A.set(gt,Yt)};function z(A){A=A.a;var W=[],ce;for(ce in A)Object.prototype.hasOwnProperty.call(A,ce)&&W.push(ce);return W}function D(A,W){this.key=A,this.value=W,this.a=void 0}function B(A){if(8192>=A.length)return String.fromCharCode.apply(null,A);for(var W="",ce=0;ce<A.length;ce+=8192)W+=String.fromCharCode.apply(null,w(A,ce,ce+8192));return W}var Y={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},q={"'":"\\'"},K={},H=null;function G(A,W){W===void 0&&(W=0),Z(),W=K[W];for(var ce=[],Pe=0;Pe<A.length;Pe+=3){var qe=A[Pe],gt=Pe+1<A.length,Yt=gt?A[Pe+1]:0,Nn=Pe+2<A.length,Jn=Nn?A[Pe+2]:0,Ci=qe>>2;qe=(qe&3)<<4|Yt>>4,Yt=(Yt&15)<<2|Jn>>6,Jn&=63,Nn||(Jn=64,gt||(Yt=64)),ce.push(W[Ci],W[qe],W[Yt]||"",W[Jn]||"")}return ce.join("")}function Q(A){var W=A.length,ce=3*W/4;ce%3?ce=Math.floor(ce):"=.".indexOf(A[W-1])!=-1&&(ce="=.".indexOf(A[W-2])!=-1?ce-2:ce-1);var Pe=new Uint8Array(ce),qe=0;return le(A,function(gt){Pe[qe++]=gt}),Pe.subarray(0,qe)}function le(A,W){function ce(Jn){for(;Pe<A.length;){var Ci=A.charAt(Pe++),wi=H[Ci];if(wi!=null)return wi;if(!/^[\s\xa0]*$/.test(Ci))throw Error("Unknown base64 encoding at char: "+Ci)}return Jn}Z();for(var Pe=0;;){var qe=ce(-1),gt=ce(0),Yt=ce(64),Nn=ce(64);if(Nn===64&&qe===-1)break;W(qe<<2|gt>>4),Yt!=64&&(W(gt<<4&240|Yt>>2),Nn!=64&&W(Yt<<6&192|Nn))}}function Z(){if(!H){H={};for(var A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),W=["+/=","+/","-_=","-_.","-_"],ce=0;5>ce;ce++){var Pe=A.concat(W[ce].split(""));K[ce]=Pe;for(var qe=0;qe<Pe.length;qe++){var gt=Pe[qe];H[gt]===void 0&&(H[gt]=qe)}}}}p("jspb.ConstBinaryMessage",function(){},void 0),p("jspb.BinaryMessage",function(){},void 0),p("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),p("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),p("jspb.BinaryConstants.FieldTypeToWireType",function(A){switch(A){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),p("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),p("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),p("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),p("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),p("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),p("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),p("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),p("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),p("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),p("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),p("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),p("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),p("jspb.BinaryConstants.TWO_TO_63",9223372036854776e3,void 0),p("jspb.BinaryConstants.TWO_TO_64",18446744073709552e3,void 0),p("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var j=0,F=0;p("jspb.utils.getSplit64Low",function(){return j},void 0),p("jspb.utils.getSplit64High",function(){return F},void 0);function te(A){var W=A>>>0;A=Math.floor((A-W)/4294967296)>>>0,j=W,F=A}p("jspb.utils.splitUint64",te,void 0);function oe(A){var W=0>A;A=Math.abs(A);var ce=A>>>0;A=Math.floor((A-ce)/4294967296),A>>>=0,W&&(A=~A>>>0,ce=(~ce>>>0)+1,4294967295<ce&&(ce=0,A++,4294967295<A&&(A=0))),j=ce,F=A}p("jspb.utils.splitInt64",oe,void 0);function de(A){var W=0>A;A=2*Math.abs(A),te(A),A=j;var ce=F;W&&(A==0?ce==0?ce=A=4294967295:(ce--,A=4294967295):A--),j=A,F=ce}p("jspb.utils.splitZigzag64",de,void 0);function pe(A){var W=0>A?1:0;if(A=W?-A:A,A===0)0<1/A?j=F=0:(F=0,j=2147483648);else if(isNaN(A))F=0,j=2147483647;else if(34028234663852886e22<A)F=0,j=(W<<31|2139095040)>>>0;else if(11754943508222875e-54>A)A=Math.round(A/Math.pow(2,-149)),F=0,j=(W<<31|A)>>>0;else{var ce=Math.floor(Math.log(A)/Math.LN2);A*=Math.pow(2,-ce),A=Math.round(8388608*A),16777216<=A&&++ce,F=0,j=(W<<31|ce+127<<23|A&8388607)>>>0}}p("jspb.utils.splitFloat32",pe,void 0);function me(A){var W=0>A?1:0;if(A=W?-A:A,A===0)F=0<1/A?0:2147483648,j=0;else if(isNaN(A))F=2147483647,j=4294967295;else if(17976931348623157e292<A)F=(W<<31|2146435072)>>>0,j=0;else if(22250738585072014e-324>A)A/=Math.pow(2,-1074),F=(W<<31|A/4294967296)>>>0,j=A>>>0;else{var ce=A,Pe=0;if(2<=ce)for(;2<=ce&&1023>Pe;)Pe++,ce/=2;else for(;1>ce&&-1022<Pe;)ce*=2,Pe--;A*=Math.pow(2,-Pe),F=(W<<31|Pe+1023<<20|1048576*A&1048575)>>>0,j=4503599627370496*A>>>0}}p("jspb.utils.splitFloat64",me,void 0);function ve(A){var W=A.charCodeAt(4),ce=A.charCodeAt(5),Pe=A.charCodeAt(6),qe=A.charCodeAt(7);j=A.charCodeAt(0)+(A.charCodeAt(1)<<8)+(A.charCodeAt(2)<<16)+(A.charCodeAt(3)<<24)>>>0,F=W+(ce<<8)+(Pe<<16)+(qe<<24)>>>0}p("jspb.utils.splitHash64",ve,void 0);function he(A,W){return 4294967296*W+(A>>>0)}p("jspb.utils.joinUint64",he,void 0);function be(A,W){var ce=W&2147483648;return ce&&(A=~A+1>>>0,W=~W>>>0,A==0&&(W=W+1>>>0)),A=he(A,W),ce?-A:A}p("jspb.utils.joinInt64",be,void 0);function we(A,W,ce){var Pe=W>>31;return ce(A<<1^Pe,(W<<1|A>>>31)^Pe)}p("jspb.utils.toZigzag64",we,void 0);function De(A,W){return Ae(A,W,be)}p("jspb.utils.joinZigzag64",De,void 0);function Ae(A,W,ce){var Pe=-(A&1);return ce((A>>>1|W<<31)^Pe,W>>>1^Pe)}p("jspb.utils.fromZigzag64",Ae,void 0);function Ee(A){var W=2*(A>>31)+1,ce=A>>>23&255;return A&=8388607,ce==255?A?NaN:1/0*W:ce==0?W*Math.pow(2,-149)*A:W*Math.pow(2,ce-150)*(A+Math.pow(2,23))}p("jspb.utils.joinFloat32",Ee,void 0);function Re(A,W){var ce=2*(W>>31)+1,Pe=W>>>20&2047;return A=4294967296*(W&1048575)+A,Pe==2047?A?NaN:1/0*ce:Pe==0?ce*Math.pow(2,-1074)*A:ce*Math.pow(2,Pe-1075)*(A+4503599627370496)}p("jspb.utils.joinFloat64",Re,void 0);function Te(A,W){return String.fromCharCode(A>>>0&255,A>>>8&255,A>>>16&255,A>>>24&255,W>>>0&255,W>>>8&255,W>>>16&255,W>>>24&255)}p("jspb.utils.joinHash64",Te,void 0),p("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0);function Oe(A,W){function ce(qe,gt){return qe=qe?String(qe):"",gt?"0000000".slice(qe.length)+qe:qe}if(2097151>=W)return""+he(A,W);var Pe=(A>>>24|W<<8)>>>0&16777215;return W=W>>16&65535,A=(A&16777215)+6777216*Pe+6710656*W,Pe+=8147497*W,W*=2,1e7<=A&&(Pe+=Math.floor(A/1e7),A%=1e7),1e7<=Pe&&(W+=Math.floor(Pe/1e7),Pe%=1e7),ce(W,0)+ce(Pe,W)+ce(A,1)}p("jspb.utils.joinUnsignedDecimalString",Oe,void 0);function Ne(A,W){var ce=W&2147483648;return ce&&(A=~A+1>>>0,W=~W+(A==0?1:0)>>>0),A=Oe(A,W),ce?"-"+A:A}p("jspb.utils.joinSignedDecimalString",Ne,void 0);function je(A,W){ve(A),A=j;var ce=F;return W?Ne(A,ce):Oe(A,ce)}p("jspb.utils.hash64ToDecimalString",je,void 0),p("jspb.utils.hash64ArrayToDecimalStrings",function(A,W){for(var ce=Array(A.length),Pe=0;Pe<A.length;Pe++)ce[Pe]=je(A[Pe],W);return ce},void 0);function ne(A){function W(Yt,Nn){for(var Jn=0;8>Jn&&(Yt!==1||0<Nn);Jn++)Nn=Yt*qe[Jn]+Nn,qe[Jn]=Nn&255,Nn>>>=8}function ce(){for(var Yt=0;8>Yt;Yt++)qe[Yt]=~qe[Yt]&255}x(0<A.length);var Pe=!1;A[0]==="-"&&(Pe=!0,A=A.slice(1));for(var qe=[0,0,0,0,0,0,0,0],gt=0;gt<A.length;gt++)W(10,A.charCodeAt(gt)-48);return Pe&&(ce(),W(1,1)),B(qe)}p("jspb.utils.decimalStringToHash64",ne,void 0),p("jspb.utils.splitDecimalString",function(A){ve(ne(A))},void 0);function J(A){return String.fromCharCode(10>A?48+A:87+A)}function ae(A){return 97<=A?A-97+10:A-48}p("jspb.utils.hash64ToHexString",function(A){var W=Array(18);W[0]="0",W[1]="x";for(var ce=0;8>ce;ce++){var Pe=A.charCodeAt(7-ce);W[2*ce+2]=J(Pe>>4),W[2*ce+3]=J(Pe&15)}return W.join("")},void 0),p("jspb.utils.hexStringToHash64",function(A){A=A.toLowerCase(),x(A.length==18),x(A[0]=="0"),x(A[1]=="x");for(var W="",ce=0;8>ce;ce++)W=String.fromCharCode(16*ae(A.charCodeAt(2*ce+2))+ae(A.charCodeAt(2*ce+3)))+W;return W},void 0),p("jspb.utils.hash64ToNumber",function(A,W){ve(A),A=j;var ce=F;return W?be(A,ce):he(A,ce)},void 0),p("jspb.utils.numberToHash64",function(A){return oe(A),Te(j,F)},void 0),p("jspb.utils.countVarints",function(A,W,ce){for(var Pe=0,qe=W;qe<ce;qe++)Pe+=A[qe]>>7;return ce-W-Pe},void 0),p("jspb.utils.countVarintFields",function(A,W,ce,Pe){var qe=0;if(Pe*=8,128>Pe)for(;W<ce&&A[W++]==Pe;)for(qe++;;){var gt=A[W++];if(!(gt&128))break}else for(;W<ce;){for(gt=Pe;128<gt;){if(A[W]!=(gt&127|128))return qe;W++,gt>>=7}if(A[W++]!=gt)break;for(qe++;gt=A[W++],(gt&128)!=0;);}return qe},void 0);function Se(A,W,ce,Pe,qe){var gt=0;if(128>Pe)for(;W<ce&&A[W++]==Pe;)gt++,W+=qe;else for(;W<ce;){for(var Yt=Pe;128<Yt;){if(A[W++]!=(Yt&127|128))return gt;Yt>>=7}if(A[W++]!=Yt)break;gt++,W+=qe}return gt}p("jspb.utils.countFixed32Fields",function(A,W,ce,Pe){return Se(A,W,ce,8*Pe+5,4)},void 0),p("jspb.utils.countFixed64Fields",function(A,W,ce,Pe){return Se(A,W,ce,8*Pe+1,8)},void 0),p("jspb.utils.countDelimitedFields",function(A,W,ce,Pe){var qe=0;for(Pe=8*Pe+2;W<ce;){for(var gt=Pe;128<gt;){if(A[W++]!=(gt&127|128))return qe;gt>>=7}if(A[W++]!=gt)break;qe++;for(var Yt=0,Nn=1;gt=A[W++],Yt+=(gt&127)*Nn,Nn*=128,(gt&128)!=0;);W+=Yt}return qe},void 0),p("jspb.utils.debugBytesToTextFormat",function(A){var W='"';if(A){A=xe(A);for(var ce=0;ce<A.length;ce++)W+="\\x",16>A[ce]&&(W+="0"),W+=A[ce].toString(16)}return W+'"'},void 0),p("jspb.utils.debugScalarToTextFormat",function(A){if(typeof A=="string"){A=String(A);for(var W=['"'],ce=0;ce<A.length;ce++){var Pe=A.charAt(ce),qe=Pe.charCodeAt(0),gt=ce+1,Yt;(Yt=Y[Pe])||(31<qe&&127>qe||(qe=Pe,qe in q?Pe=q[qe]:qe in Y?Pe=q[qe]=Y[qe]:(Yt=qe.charCodeAt(0),31<Yt&&127>Yt?Pe=qe:(256>Yt?(Pe="\\x",(16>Yt||256<Yt)&&(Pe+="0")):(Pe="\\u",4096>Yt&&(Pe+="0")),Pe+=Yt.toString(16).toUpperCase()),Pe=q[qe]=Pe)),Yt=Pe),W[gt]=Yt}W.push('"'),A=W.join("")}else A=A.toString();return A},void 0),p("jspb.utils.stringToByteArray",function(A){for(var W=new Uint8Array(A.length),ce=0;ce<A.length;ce++){var Pe=A.charCodeAt(ce);if(255<Pe)throw Error("Conversion error: string contains codepoint outside of byte range");W[ce]=Pe}return W},void 0);function xe(A){return A.constructor===Uint8Array?A:A.constructor===ArrayBuffer?new Uint8Array(A):A.constructor===Array?new Uint8Array(A):A.constructor===String?Q(A):A instanceof Uint8Array?new Uint8Array(A.buffer,A.byteOffset,A.byteLength):(O("Type not convertible to Uint8Array."),new Uint8Array(0))}p("jspb.utils.byteSourceToUint8Array",xe,void 0);function ue(A,W,ce){this.b=null,this.a=this.c=this.h=0,this.v=!1,A&&this.H(A,W,ce)}p("jspb.BinaryDecoder",ue,void 0);var Me=[];ue.getInstanceCacheLength=function(){return Me.length};function $e(A,W,ce){if(Me.length){var Pe=Me.pop();return A&&Pe.H(A,W,ce),Pe}return new ue(A,W,ce)}ue.alloc=$e,ue.prototype.Ca=function(){this.clear(),100>Me.length&&Me.push(this)},ue.prototype.free=ue.prototype.Ca,ue.prototype.clone=function(){return $e(this.b,this.h,this.c-this.h)},ue.prototype.clone=ue.prototype.clone,ue.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},ue.prototype.clear=ue.prototype.clear,ue.prototype.Y=function(){return this.b},ue.prototype.getBuffer=ue.prototype.Y,ue.prototype.H=function(A,W,ce){this.b=xe(A),this.h=W!==void 0?W:0,this.c=ce!==void 0?this.h+ce:this.b.length,this.a=this.h},ue.prototype.setBlock=ue.prototype.H,ue.prototype.Db=function(){return this.c},ue.prototype.getEnd=ue.prototype.Db,ue.prototype.setEnd=function(A){this.c=A},ue.prototype.setEnd=ue.prototype.setEnd,ue.prototype.reset=function(){this.a=this.h},ue.prototype.reset=ue.prototype.reset,ue.prototype.B=function(){return this.a},ue.prototype.getCursor=ue.prototype.B,ue.prototype.Ma=function(A){this.a=A},ue.prototype.setCursor=ue.prototype.Ma,ue.prototype.advance=function(A){this.a+=A,x(this.a<=this.c)},ue.prototype.advance=ue.prototype.advance,ue.prototype.ya=function(){return this.a==this.c},ue.prototype.atEnd=ue.prototype.ya,ue.prototype.Qb=function(){return this.a>this.c},ue.prototype.pastEnd=ue.prototype.Qb,ue.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},ue.prototype.getError=ue.prototype.getError,ue.prototype.w=function(A){for(var W=128,ce=0,Pe=0,qe=0;4>qe&&128<=W;qe++)W=this.b[this.a++],ce|=(W&127)<<7*qe;if(128<=W&&(W=this.b[this.a++],ce|=(W&127)<<28,Pe|=(W&127)>>4),128<=W)for(qe=0;5>qe&&128<=W;qe++)W=this.b[this.a++],Pe|=(W&127)<<7*qe+3;if(128>W)return A(ce>>>0,Pe>>>0);O("Failed to read varint, encoding is invalid."),this.v=!0},ue.prototype.readSplitVarint64=ue.prototype.w,ue.prototype.ea=function(A){return this.w(function(W,ce){return Ae(W,ce,A)})},ue.prototype.readSplitZigzagVarint64=ue.prototype.ea,ue.prototype.ta=function(A){var W=this.b,ce=this.a;this.a+=8;for(var Pe=0,qe=0,gt=ce+7;gt>=ce;gt--)Pe=Pe<<8|W[gt],qe=qe<<8|W[gt+4];return A(Pe,qe)},ue.prototype.readSplitFixed64=ue.prototype.ta,ue.prototype.kb=function(){for(;this.b[this.a]&128;)this.a++;this.a++},ue.prototype.skipVarint=ue.prototype.kb,ue.prototype.mb=function(A){for(;128<A;)this.a--,A>>>=7;this.a--},ue.prototype.unskipVarint=ue.prototype.mb,ue.prototype.o=function(){var A=this.b,W=A[this.a],ce=W&127;return 128>W?(this.a+=1,x(this.a<=this.c),ce):(W=A[this.a+1],ce|=(W&127)<<7,128>W?(this.a+=2,x(this.a<=this.c),ce):(W=A[this.a+2],ce|=(W&127)<<14,128>W?(this.a+=3,x(this.a<=this.c),ce):(W=A[this.a+3],ce|=(W&127)<<21,128>W?(this.a+=4,x(this.a<=this.c),ce):(W=A[this.a+4],ce|=(W&15)<<28,128>W?(this.a+=5,x(this.a<=this.c),ce>>>0):(this.a+=5,128<=A[this.a++]&&128<=A[this.a++]&&128<=A[this.a++]&&128<=A[this.a++]&&128<=A[this.a++]&&x(!1),x(this.a<=this.c),ce)))))},ue.prototype.readUnsignedVarint32=ue.prototype.o,ue.prototype.da=function(){return~~this.o()},ue.prototype.readSignedVarint32=ue.prototype.da,ue.prototype.O=function(){return this.o().toString()},ue.prototype.Ea=function(){return this.da().toString()},ue.prototype.readSignedVarint32String=ue.prototype.Ea,ue.prototype.Ia=function(){var A=this.o();return A>>>1^-(A&1)},ue.prototype.readZigzagVarint32=ue.prototype.Ia,ue.prototype.Ga=function(){return this.w(he)},ue.prototype.readUnsignedVarint64=ue.prototype.Ga,ue.prototype.Ha=function(){return this.w(Oe)},ue.prototype.readUnsignedVarint64String=ue.prototype.Ha,ue.prototype.sa=function(){return this.w(be)},ue.prototype.readSignedVarint64=ue.prototype.sa,ue.prototype.Fa=function(){return this.w(Ne)},ue.prototype.readSignedVarint64String=ue.prototype.Fa,ue.prototype.Ja=function(){return this.w(De)},ue.prototype.readZigzagVarint64=ue.prototype.Ja,ue.prototype.fb=function(){return this.ea(Te)},ue.prototype.readZigzagVarintHash64=ue.prototype.fb,ue.prototype.Ka=function(){return this.ea(Ne)},ue.prototype.readZigzagVarint64String=ue.prototype.Ka,ue.prototype.Gc=function(){var A=this.b[this.a];return this.a+=1,x(this.a<=this.c),A},ue.prototype.readUint8=ue.prototype.Gc,ue.prototype.Ec=function(){var A=this.b[this.a],W=this.b[this.a+1];return this.a+=2,x(this.a<=this.c),A<<0|W<<8},ue.prototype.readUint16=ue.prototype.Ec,ue.prototype.m=function(){var A=this.b[this.a],W=this.b[this.a+1],ce=this.b[this.a+2],Pe=this.b[this.a+3];return this.a+=4,x(this.a<=this.c),(A<<0|W<<8|ce<<16|Pe<<24)>>>0},ue.prototype.readUint32=ue.prototype.m,ue.prototype.ga=function(){var A=this.m(),W=this.m();return he(A,W)},ue.prototype.readUint64=ue.prototype.ga,ue.prototype.ha=function(){var A=this.m(),W=this.m();return Oe(A,W)},ue.prototype.readUint64String=ue.prototype.ha,ue.prototype.Xb=function(){var A=this.b[this.a];return this.a+=1,x(this.a<=this.c),A<<24>>24},ue.prototype.readInt8=ue.prototype.Xb,ue.prototype.Vb=function(){var A=this.b[this.a],W=this.b[this.a+1];return this.a+=2,x(this.a<=this.c),(A<<0|W<<8)<<16>>16},ue.prototype.readInt16=ue.prototype.Vb,ue.prototype.P=function(){var A=this.b[this.a],W=this.b[this.a+1],ce=this.b[this.a+2],Pe=this.b[this.a+3];return this.a+=4,x(this.a<=this.c),A<<0|W<<8|ce<<16|Pe<<24},ue.prototype.readInt32=ue.prototype.P,ue.prototype.ba=function(){var A=this.m(),W=this.m();return be(A,W)},ue.prototype.readInt64=ue.prototype.ba,ue.prototype.ca=function(){var A=this.m(),W=this.m();return Ne(A,W)},ue.prototype.readInt64String=ue.prototype.ca,ue.prototype.aa=function(){var A=this.m();return Ee(A)},ue.prototype.readFloat=ue.prototype.aa,ue.prototype.Z=function(){var A=this.m(),W=this.m();return Re(A,W)},ue.prototype.readDouble=ue.prototype.Z,ue.prototype.pa=function(){return!!this.b[this.a++]},ue.prototype.readBool=ue.prototype.pa,ue.prototype.ra=function(){return this.da()},ue.prototype.readEnum=ue.prototype.ra,ue.prototype.fa=function(A){var W=this.b,ce=this.a;A=ce+A;for(var Pe=[],qe="";ce<A;){var gt=W[ce++];if(128>gt)Pe.push(gt);else{if(192>gt)continue;if(224>gt){var Yt=W[ce++];Pe.push((gt&31)<<6|Yt&63)}else if(240>gt){Yt=W[ce++];var Nn=W[ce++];Pe.push((gt&15)<<12|(Yt&63)<<6|Nn&63)}else if(248>gt){Yt=W[ce++],Nn=W[ce++];var Jn=W[ce++];gt=(gt&7)<<18|(Yt&63)<<12|(Nn&63)<<6|Jn&63,gt-=65536,Pe.push((gt>>10&1023)+55296,(gt&1023)+56320)}}8192<=Pe.length&&(qe+=String.fromCharCode.apply(null,Pe),Pe.length=0)}return qe+=B(Pe),this.a=ce,qe},ue.prototype.readString=ue.prototype.fa,ue.prototype.Dc=function(){var A=this.o();return this.fa(A)},ue.prototype.readStringWithLength=ue.prototype.Dc,ue.prototype.qa=function(A){if(0>A||this.a+A>this.b.length)return this.v=!0,O("Invalid byte length!"),new Uint8Array(0);var W=this.b.subarray(this.a,this.a+A);return this.a+=A,x(this.a<=this.c),W},ue.prototype.readBytes=ue.prototype.qa,ue.prototype.ia=function(){return this.w(Te)},ue.prototype.readVarintHash64=ue.prototype.ia,ue.prototype.$=function(){var A=this.b,W=this.a,ce=A[W],Pe=A[W+1],qe=A[W+2],gt=A[W+3],Yt=A[W+4],Nn=A[W+5],Jn=A[W+6];return A=A[W+7],this.a+=8,String.fromCharCode(ce,Pe,qe,gt,Yt,Nn,Jn,A)},ue.prototype.readFixedHash64=ue.prototype.$;function ge(A,W,ce){this.a=$e(A,W,ce),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}p("jspb.BinaryReader",ge,void 0);var Ve=[];ge.clearInstanceCache=function(){Ve=[]},ge.getInstanceCacheLength=function(){return Ve.length};function st(A,W,ce){if(Ve.length){var Pe=Ve.pop();return A&&Pe.a.H(A,W,ce),Pe}return new ge(A,W,ce)}ge.alloc=st,ge.prototype.zb=st,ge.prototype.alloc=ge.prototype.zb,ge.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>Ve.length&&Ve.push(this)},ge.prototype.free=ge.prototype.Ca,ge.prototype.Fb=function(){return this.O},ge.prototype.getFieldCursor=ge.prototype.Fb,ge.prototype.B=function(){return this.a.B()},ge.prototype.getCursor=ge.prototype.B,ge.prototype.Y=function(){return this.a.Y()},ge.prototype.getBuffer=ge.prototype.Y,ge.prototype.Hb=function(){return this.c},ge.prototype.getFieldNumber=ge.prototype.Hb,ge.prototype.Lb=function(){return this.b},ge.prototype.getWireType=ge.prototype.Lb,ge.prototype.Mb=function(){return this.b==2},ge.prototype.isDelimited=ge.prototype.Mb,ge.prototype.bb=function(){return this.b==4},ge.prototype.isEndGroup=ge.prototype.bb,ge.prototype.getError=function(){return this.h||this.a.getError()},ge.prototype.getError=ge.prototype.getError,ge.prototype.H=function(A,W,ce){this.a.H(A,W,ce),this.b=this.c=-1},ge.prototype.setBlock=ge.prototype.H,ge.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ge.prototype.reset=ge.prototype.reset,ge.prototype.advance=function(A){this.a.advance(A)},ge.prototype.advance=ge.prototype.advance,ge.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return O("Decoder hit an error"),!1;this.O=this.a.B();var A=this.a.o(),W=A>>>3;return A&=7,A!=0&&A!=5&&A!=1&&A!=2&&A!=3&&A!=4?(O("Invalid wire type: %s (at position %s)",A,this.O),this.h=!0,!1):(this.c=W,this.b=A,!0)},ge.prototype.nextField=ge.prototype.oa,ge.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ge.prototype.unskipHeader=ge.prototype.Oa,ge.prototype.Lc=function(){var A=this.c;for(this.Oa();this.oa()&&this.c==A;)this.C();this.a.ya()||this.Oa()},ge.prototype.skipMatchingFields=ge.prototype.Lc,ge.prototype.lb=function(){this.b!=0?(O("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ge.prototype.skipVarintField=ge.prototype.lb,ge.prototype.gb=function(){if(this.b!=2)O("Invalid wire type for skipDelimitedField"),this.C();else{var A=this.a.o();this.a.advance(A)}},ge.prototype.skipDelimitedField=ge.prototype.gb,ge.prototype.hb=function(){this.b!=5?(O("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ge.prototype.skipFixed32Field=ge.prototype.hb,ge.prototype.ib=function(){this.b!=1?(O("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ge.prototype.skipFixed64Field=ge.prototype.ib,ge.prototype.jb=function(){var A=this.c;do{if(!this.oa()){O("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(this.b==4){this.c!=A&&(O("Unmatched end-group tag"),this.h=!0);break}this.C()}while(!0)},ge.prototype.skipGroup=ge.prototype.jb,ge.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:O("Invalid wire encoding for field.")}},ge.prototype.skipField=ge.prototype.C,ge.prototype.Hc=function(A,W){this.v===null&&(this.v={}),x(!this.v[A]),this.v[A]=W},ge.prototype.registerReadCallback=ge.prototype.Hc,ge.prototype.Ic=function(A){return x(this.v!==null),A=this.v[A],x(A),A(this)},ge.prototype.runReadCallback=ge.prototype.Ic,ge.prototype.Yb=function(A,W){x(this.b==2);var ce=this.a.c,Pe=this.a.o();Pe=this.a.B()+Pe,this.a.setEnd(Pe),W(A,this),this.a.Ma(Pe),this.a.setEnd(ce)},ge.prototype.readMessage=ge.prototype.Yb,ge.prototype.Ub=function(A,W,ce){x(this.b==3),x(this.c==A),ce(W,this),this.h||this.b==4||(O("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ge.prototype.readGroup=ge.prototype.Ub,ge.prototype.Gb=function(){x(this.b==2);var A=this.a.o(),W=this.a.B(),ce=W+A;return A=$e(this.a.Y(),W,A),this.a.Ma(ce),A},ge.prototype.getFieldDecoder=ge.prototype.Gb,ge.prototype.P=function(){return x(this.b==0),this.a.da()},ge.prototype.readInt32=ge.prototype.P,ge.prototype.Wb=function(){return x(this.b==0),this.a.Ea()},ge.prototype.readInt32String=ge.prototype.Wb,ge.prototype.ba=function(){return x(this.b==0),this.a.sa()},ge.prototype.readInt64=ge.prototype.ba,ge.prototype.ca=function(){return x(this.b==0),this.a.Fa()},ge.prototype.readInt64String=ge.prototype.ca,ge.prototype.m=function(){return x(this.b==0),this.a.o()},ge.prototype.readUint32=ge.prototype.m,ge.prototype.Fc=function(){return x(this.b==0),this.a.O()},ge.prototype.readUint32String=ge.prototype.Fc,ge.prototype.ga=function(){return x(this.b==0),this.a.Ga()},ge.prototype.readUint64=ge.prototype.ga,ge.prototype.ha=function(){return x(this.b==0),this.a.Ha()},ge.prototype.readUint64String=ge.prototype.ha,ge.prototype.zc=function(){return x(this.b==0),this.a.Ia()},ge.prototype.readSint32=ge.prototype.zc,ge.prototype.Ac=function(){return x(this.b==0),this.a.Ja()},ge.prototype.readSint64=ge.prototype.Ac,ge.prototype.Bc=function(){return x(this.b==0),this.a.Ka()},ge.prototype.readSint64String=ge.prototype.Bc,ge.prototype.Rb=function(){return x(this.b==5),this.a.m()},ge.prototype.readFixed32=ge.prototype.Rb,ge.prototype.Sb=function(){return x(this.b==1),this.a.ga()},ge.prototype.readFixed64=ge.prototype.Sb,ge.prototype.Tb=function(){return x(this.b==1),this.a.ha()},ge.prototype.readFixed64String=ge.prototype.Tb,ge.prototype.vc=function(){return x(this.b==5),this.a.P()},ge.prototype.readSfixed32=ge.prototype.vc,ge.prototype.wc=function(){return x(this.b==5),this.a.P().toString()},ge.prototype.readSfixed32String=ge.prototype.wc,ge.prototype.xc=function(){return x(this.b==1),this.a.ba()},ge.prototype.readSfixed64=ge.prototype.xc,ge.prototype.yc=function(){return x(this.b==1),this.a.ca()},ge.prototype.readSfixed64String=ge.prototype.yc,ge.prototype.aa=function(){return x(this.b==5),this.a.aa()},ge.prototype.readFloat=ge.prototype.aa,ge.prototype.Z=function(){return x(this.b==1),this.a.Z()},ge.prototype.readDouble=ge.prototype.Z,ge.prototype.pa=function(){return x(this.b==0),!!this.a.o()},ge.prototype.readBool=ge.prototype.pa,ge.prototype.ra=function(){return x(this.b==0),this.a.sa()},ge.prototype.readEnum=ge.prototype.ra,ge.prototype.fa=function(){x(this.b==2);var A=this.a.o();return this.a.fa(A)},ge.prototype.readString=ge.prototype.fa,ge.prototype.qa=function(){x(this.b==2);var A=this.a.o();return this.a.qa(A)},ge.prototype.readBytes=ge.prototype.qa,ge.prototype.ia=function(){return x(this.b==0),this.a.ia()},ge.prototype.readVarintHash64=ge.prototype.ia,ge.prototype.Cc=function(){return x(this.b==0),this.a.fb()},ge.prototype.readSintHash64=ge.prototype.Cc,ge.prototype.w=function(A){return x(this.b==0),this.a.w(A)},ge.prototype.readSplitVarint64=ge.prototype.w,ge.prototype.ea=function(A){return x(this.b==0),this.a.w(function(W,ce){return Ae(W,ce,A)})},ge.prototype.readSplitZigzagVarint64=ge.prototype.ea,ge.prototype.$=function(){return x(this.b==1),this.a.$()},ge.prototype.readFixedHash64=ge.prototype.$,ge.prototype.ta=function(A){return x(this.b==1),this.a.ta(A)},ge.prototype.readSplitFixed64=ge.prototype.ta;function Je(A,W){x(A.b==2);var ce=A.a.o();ce=A.a.B()+ce;for(var Pe=[];A.a.B()<ce;)Pe.push(W.call(A.a));return Pe}ge.prototype.gc=function(){return Je(this,this.a.da)},ge.prototype.readPackedInt32=ge.prototype.gc,ge.prototype.hc=function(){return Je(this,this.a.Ea)},ge.prototype.readPackedInt32String=ge.prototype.hc,ge.prototype.ic=function(){return Je(this,this.a.sa)},ge.prototype.readPackedInt64=ge.prototype.ic,ge.prototype.jc=function(){return Je(this,this.a.Fa)},ge.prototype.readPackedInt64String=ge.prototype.jc,ge.prototype.qc=function(){return Je(this,this.a.o)},ge.prototype.readPackedUint32=ge.prototype.qc,ge.prototype.rc=function(){return Je(this,this.a.O)},ge.prototype.readPackedUint32String=ge.prototype.rc,ge.prototype.sc=function(){return Je(this,this.a.Ga)},ge.prototype.readPackedUint64=ge.prototype.sc,ge.prototype.tc=function(){return Je(this,this.a.Ha)},ge.prototype.readPackedUint64String=ge.prototype.tc,ge.prototype.nc=function(){return Je(this,this.a.Ia)},ge.prototype.readPackedSint32=ge.prototype.nc,ge.prototype.oc=function(){return Je(this,this.a.Ja)},ge.prototype.readPackedSint64=ge.prototype.oc,ge.prototype.pc=function(){return Je(this,this.a.Ka)},ge.prototype.readPackedSint64String=ge.prototype.pc,ge.prototype.bc=function(){return Je(this,this.a.m)},ge.prototype.readPackedFixed32=ge.prototype.bc,ge.prototype.cc=function(){return Je(this,this.a.ga)},ge.prototype.readPackedFixed64=ge.prototype.cc,ge.prototype.dc=function(){return Je(this,this.a.ha)},ge.prototype.readPackedFixed64String=ge.prototype.dc,ge.prototype.kc=function(){return Je(this,this.a.P)},ge.prototype.readPackedSfixed32=ge.prototype.kc,ge.prototype.lc=function(){return Je(this,this.a.ba)},ge.prototype.readPackedSfixed64=ge.prototype.lc,ge.prototype.mc=function(){return Je(this,this.a.ca)},ge.prototype.readPackedSfixed64String=ge.prototype.mc,ge.prototype.fc=function(){return Je(this,this.a.aa)},ge.prototype.readPackedFloat=ge.prototype.fc,ge.prototype.$b=function(){return Je(this,this.a.Z)},ge.prototype.readPackedDouble=ge.prototype.$b,ge.prototype.Zb=function(){return Je(this,this.a.pa)},ge.prototype.readPackedBool=ge.prototype.Zb,ge.prototype.ac=function(){return Je(this,this.a.ra)},ge.prototype.readPackedEnum=ge.prototype.ac,ge.prototype.uc=function(){return Je(this,this.a.ia)},ge.prototype.readPackedVarintHash64=ge.prototype.uc,ge.prototype.ec=function(){return Je(this,this.a.$)},ge.prototype.readPackedFixedHash64=ge.prototype.ec;function ot(A,W,ce,Pe,qe){this.ma=A,this.Ba=W,this.la=ce,this.Na=Pe,this.na=qe}p("jspb.ExtensionFieldInfo",ot,void 0);function Xe(A,W,ce,Pe,qe,gt){this.Za=A,this.za=W,this.Aa=ce,this.Wa=Pe,this.Ab=qe,this.Nb=gt}p("jspb.ExtensionFieldBinaryInfo",Xe,void 0),ot.prototype.F=function(){return!!this.la},ot.prototype.isMessageType=ot.prototype.F;function Ze(){}p("jspb.Message",Ze,void 0),Ze.GENERATE_TO_OBJECT=!0,Ze.GENERATE_FROM_OBJECT=!0;var bt=typeof Uint8Array=="function";Ze.prototype.Ib=function(){return this.b},Ze.prototype.getJsPbMessageId=Ze.prototype.Ib,Ze.initialize=function(A,W,ce,Pe,qe,gt){A.f=null,W||(W=ce?[ce]:[]),A.b=ce?String(ce):void 0,A.D=ce===0?-1:0,A.u=W;e:{if(ce=A.u.length,W=-1,ce&&(W=ce-1,ce=A.u[W],!(ce===null||typeof ce!="object"||Array.isArray(ce)||bt&&ce instanceof Uint8Array))){A.G=W-A.D,A.i=ce;break e}-1<Pe?(A.G=Math.max(Pe,W+1-A.D),A.i=null):A.G=Number.MAX_VALUE}if(A.a={},qe)for(Pe=0;Pe<qe.length;Pe++)W=qe[Pe],W<A.G?(W+=A.D,A.u[W]=A.u[W]||at):(pt(A),A.i[W]=A.i[W]||at);if(gt&&gt.length)for(Pe=0;Pe<gt.length;Pe++)Dt(A,gt[Pe])};var at=Object.freeze?Object.freeze([]):[];function pt(A){var W=A.G+A.D;A.u[W]||(A.i=A.u[W]={})}function Ct(A,W,ce){for(var Pe=[],qe=0;qe<A.length;qe++)Pe[qe]=W.call(A[qe],ce,A[qe]);return Pe}Ze.toObjectList=Ct,Ze.toObjectExtension=function(A,W,ce,Pe,qe){for(var gt in ce){var Yt=ce[gt],Nn=Pe.call(A,Yt);if(Nn!=null){for(var Jn in Yt.Ba)if(Yt.Ba.hasOwnProperty(Jn))break;W[Jn]=Yt.Na?Yt.na?Ct(Nn,Yt.Na,qe):Yt.Na(qe,Nn):Nn}}},Ze.serializeBinaryExtensions=function(A,W,ce,Pe){for(var qe in ce){var gt=ce[qe],Yt=gt.Za;if(!gt.Aa)throw Error("Message extension present that was generated without binary serialization support");var Nn=Pe.call(A,Yt);if(Nn!=null)if(Yt.F())if(gt.Wa)gt.Aa.call(W,Yt.ma,Nn,gt.Wa);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else gt.Aa.call(W,Yt.ma,Nn)}},Ze.readBinaryExtension=function(A,W,ce,Pe,qe){var gt=ce[W.c];if(gt){if(ce=gt.Za,!gt.za)throw Error("Deserializing extension whose generated code does not support binary format");if(ce.F()){var Yt=new ce.la;gt.za.call(W,Yt,gt.Ab)}else Yt=gt.za.call(W);ce.na&&!gt.Nb?(W=Pe.call(A,ce))?W.push(Yt):qe.call(A,ce,[Yt]):qe.call(A,ce,Yt)}else W.C()};function It(A,W){if(W<A.G){W+=A.D;var ce=A.u[W];return ce===at?A.u[W]=[]:ce}if(A.i)return ce=A.i[W],ce===at?A.i[W]=[]:ce}Ze.getField=It,Ze.getRepeatedField=function(A,W){return It(A,W)};function Wt(A,W){return A=It(A,W),A==null?A:+A}Ze.getOptionalFloatingPointField=Wt;function Bt(A,W){return A=It(A,W),A==null?A:!!A}Ze.getBooleanField=Bt,Ze.getRepeatedFloatingPointField=function(A,W){var ce=It(A,W);if(A.a||(A.a={}),!A.a[W]){for(var Pe=0;Pe<ce.length;Pe++)ce[Pe]=+ce[Pe];A.a[W]=!0}return ce},Ze.getRepeatedBooleanField=function(A,W){var ce=It(A,W);if(A.a||(A.a={}),!A.a[W]){for(var Pe=0;Pe<ce.length;Pe++)ce[Pe]=!!ce[Pe];A.a[W]=!0}return ce};function Vt(A){return A==null||typeof A=="string"?A:bt&&A instanceof Uint8Array?G(A):(O("Cannot coerce to b64 string: "+h(A)),null)}Ze.bytesAsB64=Vt;function rn(A){return A==null||A instanceof Uint8Array?A:typeof A=="string"?Q(A):(O("Cannot coerce to Uint8Array: "+h(A)),null)}Ze.bytesAsU8=rn,Ze.bytesListAsB64=function(A){return tt(A),A.length&&typeof A[0]!="string"?E(A,Vt):A},Ze.bytesListAsU8=function(A){return tt(A),!A.length||A[0]instanceof Uint8Array?A:E(A,rn)};function tt(A){if(A&&1<A.length){var W=h(A[0]);b(A,function(ce){h(ce)!=W&&O("Inconsistent type in JSPB repeated field array. Got "+h(ce)+" expected "+W)})}}function it(A,W,ce){return A=It(A,W),A??ce}Ze.getFieldWithDefault=it,Ze.getBooleanFieldWithDefault=function(A,W,ce){return A=Bt(A,W),A??ce},Ze.getFloatingPointFieldWithDefault=function(A,W,ce){return A=Wt(A,W),A??ce},Ze.getFieldProto3=it,Ze.getMapField=function(A,W,ce,Pe){if(A.f||(A.f={}),W in A.f)return A.f[W];var qe=It(A,W);if(!qe){if(ce)return;qe=[],nt(A,W,qe)}return A.f[W]=new k(qe,Pe)};function nt(A,W,ce){return M(A,Ze),W<A.G?A.u[W+A.D]=ce:(pt(A),A.i[W]=ce),A}Ze.setField=nt,Ze.setProto3IntField=function(A,W,ce){return vt(A,W,ce,0)},Ze.setProto3FloatField=function(A,W,ce){return vt(A,W,ce,0)},Ze.setProto3BooleanField=function(A,W,ce){return vt(A,W,ce,!1)},Ze.setProto3StringField=function(A,W,ce){return vt(A,W,ce,"")},Ze.setProto3BytesField=function(A,W,ce){return vt(A,W,ce,"")},Ze.setProto3EnumField=function(A,W,ce){return vt(A,W,ce,0)},Ze.setProto3StringIntField=function(A,W,ce){return vt(A,W,ce,"0")};function vt(A,W,ce,Pe){return M(A,Ze),ce!==Pe?nt(A,W,ce):W<A.G?A.u[W+A.D]=null:(pt(A),delete A.i[W]),A}Ze.addToRepeatedField=function(A,W,ce,Pe){return M(A,Ze),W=It(A,W),Pe!=null?W.splice(Pe,0,ce):W.push(ce),A};function kt(A,W,ce,Pe){return M(A,Ze),(ce=Dt(A,ce))&&ce!==W&&Pe!==void 0&&(A.f&&ce in A.f&&(A.f[ce]=void 0),nt(A,ce,void 0)),nt(A,W,Pe)}Ze.setOneofField=kt;function Dt(A,W){for(var ce,Pe,qe=0;qe<W.length;qe++){var gt=W[qe],Yt=It(A,gt);Yt!=null&&(ce=gt,Pe=Yt,nt(A,gt,void 0))}return ce?(nt(A,ce,Pe),ce):0}Ze.computeOneofCase=Dt,Ze.getWrapperField=function(A,W,ce,Pe){if(A.f||(A.f={}),!A.f[ce]){var qe=It(A,ce);(Pe||qe)&&(A.f[ce]=new W(qe))}return A.f[ce]},Ze.getRepeatedWrapperField=function(A,W,ce){return Kt(A,W,ce),W=A.f[ce],W==at&&(W=A.f[ce]=[]),W};function Kt(A,W,ce){if(A.f||(A.f={}),!A.f[ce]){for(var Pe=It(A,ce),qe=[],gt=0;gt<Pe.length;gt++)qe[gt]=new W(Pe[gt]);A.f[ce]=qe}}Ze.setWrapperField=function(A,W,ce){M(A,Ze),A.f||(A.f={});var Pe=ce&&ce.g();return A.f[W]=ce,nt(A,W,Pe)},Ze.setOneofWrapperField=function(A,W,ce,Pe){M(A,Ze),A.f||(A.f={});var qe=Pe&&Pe.g();return A.f[W]=Pe,kt(A,W,ce,qe)},Ze.setRepeatedWrapperField=function(A,W,ce){M(A,Ze),A.f||(A.f={}),ce=ce||[];for(var Pe=[],qe=0;qe<ce.length;qe++)Pe[qe]=ce[qe].g();return A.f[W]=ce,nt(A,W,Pe)},Ze.addToRepeatedWrapperField=function(A,W,ce,Pe,qe){Kt(A,Pe,W);var gt=A.f[W];return gt||(gt=A.f[W]=[]),ce=ce||new Pe,A=It(A,W),qe!=null?(gt.splice(qe,0,ce),A.splice(qe,0,ce.g())):(gt.push(ce),A.push(ce.g())),ce},Ze.toMap=function(A,W,ce,Pe){for(var qe={},gt=0;gt<A.length;gt++)qe[W.call(A[gt])]=ce?ce.call(A[gt],Pe,A[gt]):A[gt];return qe};function Ht(A){if(A.f)for(var W in A.f){var ce=A.f[W];if(Array.isArray(ce))for(var Pe=0;Pe<ce.length;Pe++)ce[Pe]&&ce[Pe].g();else ce&&ce.g()}}Ze.prototype.g=function(){return Ht(this),this.u},Ze.prototype.toArray=Ze.prototype.g,Ze.prototype.toString=function(){return Ht(this),this.u.toString()},Ze.prototype.getExtension=function(A){if(this.i){this.f||(this.f={});var W=A.ma;if(A.na){if(A.F())return this.f[W]||(this.f[W]=E(this.i[W]||[],function(ce){return new A.la(ce)})),this.f[W]}else if(A.F())return!this.f[W]&&this.i[W]&&(this.f[W]=new A.la(this.i[W])),this.f[W];return this.i[W]}},Ze.prototype.getExtension=Ze.prototype.getExtension,Ze.prototype.Kc=function(A,W){this.f||(this.f={}),pt(this);var ce=A.ma;return A.na?(W=W||[],A.F()?(this.f[ce]=W,this.i[ce]=E(W,function(Pe){return Pe.g()})):this.i[ce]=W):A.F()?(this.f[ce]=W,this.i[ce]=W&&W.g()):this.i[ce]=W,this},Ze.prototype.setExtension=Ze.prototype.Kc,Ze.difference=function(A,W){if(!(A instanceof W.constructor))throw Error("Messages have different types.");var ce=A.g();W=W.g();var Pe=[],qe=0,gt=ce.length>W.length?ce.length:W.length;for(A.b&&(Pe[0]=A.b,qe=1);qe<gt;qe++)on(ce[qe],W[qe])||(Pe[qe]=W[qe]);return new A.constructor(Pe)},Ze.equals=function(A,W){return A==W||!(!A||!W)&&A instanceof W.constructor&&on(A.g(),W.g())};function tn(A,W){A=A||{},W=W||{};var ce={},Pe;for(Pe in A)ce[Pe]=0;for(Pe in W)ce[Pe]=0;for(Pe in ce)if(!on(A[Pe],W[Pe]))return!1;return!0}Ze.compareExtensions=tn;function on(A,W){if(A==W)return!0;if(!g(A)||!g(W))return typeof A=="number"&&isNaN(A)||typeof W=="number"&&isNaN(W)?String(A)==String(W):!1;if(A.constructor!=W.constructor)return!1;if(bt&&A.constructor===Uint8Array){if(A.length!=W.length)return!1;for(var ce=0;ce<A.length;ce++)if(A[ce]!=W[ce])return!1;return!0}if(A.constructor===Array){var Pe=void 0,qe=void 0,gt=Math.max(A.length,W.length);for(ce=0;ce<gt;ce++){var Yt=A[ce],Nn=W[ce];if(Yt&&Yt.constructor==Object&&(x(Pe===void 0),x(ce===A.length-1),Pe=Yt,Yt=void 0),Nn&&Nn.constructor==Object&&(x(qe===void 0),x(ce===W.length-1),qe=Nn,Nn=void 0),!on(Yt,Nn))return!1}return Pe||qe?(Pe=Pe||{},qe=qe||{},tn(Pe,qe)):!0}if(A.constructor===Object)return tn(A,W);throw Error("Invalid type in JSPB array")}Ze.compareFields=on,Ze.prototype.Bb=function(){return sn(this)},Ze.prototype.cloneMessage=Ze.prototype.Bb,Ze.prototype.clone=function(){return sn(this)},Ze.prototype.clone=Ze.prototype.clone,Ze.clone=function(A){return sn(A)};function sn(A){return new A.constructor(Jt(A.g()))}Ze.copyInto=function(A,W){M(A,Ze),M(W,Ze),x(A.constructor==W.constructor,"Copy source and target message should have the same type."),A=sn(A);for(var ce=W.g(),Pe=A.g(),qe=ce.length=0;qe<Pe.length;qe++)ce[qe]=Pe[qe];W.f=A.f,W.i=A.i};function Jt(A){if(Array.isArray(A)){for(var W=Array(A.length),ce=0;ce<A.length;ce++){var Pe=A[ce];Pe!=null&&(W[ce]=typeof Pe=="object"?Jt(x(Pe)):Pe)}return W}if(bt&&A instanceof Uint8Array)return new Uint8Array(A);W={};for(ce in A)Pe=A[ce],Pe!=null&&(W[ce]=typeof Pe=="object"?Jt(x(Pe)):Pe);return W}Ze.registerMessageType=function(A,W){W.we=A};var En={dump:function(A){return M(A,Ze,"jspb.Message instance expected"),x(A.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),En.X(A)}};p("jspb.debug.dump",En.dump,void 0),En.X=function(A){var W=h(A);if(W=="number"||W=="string"||W=="boolean"||W=="null"||W=="undefined"||typeof Uint8Array<"u"&&A instanceof Uint8Array)return A;if(W=="array")return R(A),E(A,En.X);if(A instanceof k){var ce={};A=A.entries();for(var Pe=A.next();!Pe.done;Pe=A.next())ce[Pe.value[0]]=En.X(Pe.value[1]);return ce}M(A,Ze,"Only messages expected: "+A),W=A.constructor;var qe={$name:W.name||W.displayName};for(Nn in W.prototype){var gt=/^get([A-Z]\w*)/.exec(Nn);if(gt&&Nn!="getExtension"&&Nn!="getJsPbMessageId"){var Yt="has"+gt[1];(!A[Yt]||A[Yt]())&&(Yt=A[Nn](),qe[En.$a(gt[1])]=En.X(Yt))}}if(A.extensionObject_)return qe.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",qe;for(Pe in W.extensions)if(/^\d+$/.test(Pe)){Yt=W.extensions[Pe];var Nn=A.getExtension(Yt);gt=void 0,Yt=Yt.Ba;var Jn=[],Ci=0;for(gt in Yt)Jn[Ci++]=gt;gt=Jn[0],Nn!=null&&(ce||(ce=qe.$extensions={}),ce[En.$a(gt)]=En.X(Nn))}return qe},En.$a=function(A){return A.replace(/^[A-Z]/,function(W){return W.toLowerCase()})};function Pt(){this.a=[]}p("jspb.BinaryEncoder",Pt,void 0),Pt.prototype.length=function(){return this.a.length},Pt.prototype.length=Pt.prototype.length,Pt.prototype.end=function(){var A=this.a;return this.a=[],A},Pt.prototype.end=Pt.prototype.end,Pt.prototype.l=function(A,W){for(x(A==Math.floor(A)),x(W==Math.floor(W)),x(0<=A&&4294967296>A),x(0<=W&&4294967296>W);0<W||127<A;)this.a.push(A&127|128),A=(A>>>7|W<<25)>>>0,W>>>=7;this.a.push(A)},Pt.prototype.writeSplitVarint64=Pt.prototype.l,Pt.prototype.A=function(A,W){x(A==Math.floor(A)),x(W==Math.floor(W)),x(0<=A&&4294967296>A),x(0<=W&&4294967296>W),this.s(A),this.s(W)},Pt.prototype.writeSplitFixed64=Pt.prototype.A,Pt.prototype.j=function(A){for(x(A==Math.floor(A)),x(0<=A&&4294967296>A);127<A;)this.a.push(A&127|128),A>>>=7;this.a.push(A)},Pt.prototype.writeUnsignedVarint32=Pt.prototype.j,Pt.prototype.M=function(A){if(x(A==Math.floor(A)),x(-2147483648<=A&&2147483648>A),0<=A)this.j(A);else{for(var W=0;9>W;W++)this.a.push(A&127|128),A>>=7;this.a.push(1)}},Pt.prototype.writeSignedVarint32=Pt.prototype.M,Pt.prototype.va=function(A){x(A==Math.floor(A)),x(0<=A&&18446744073709552e3>A),oe(A),this.l(j,F)},Pt.prototype.writeUnsignedVarint64=Pt.prototype.va,Pt.prototype.ua=function(A){x(A==Math.floor(A)),x(-9223372036854776e3<=A&&9223372036854776e3>A),oe(A),this.l(j,F)},Pt.prototype.writeSignedVarint64=Pt.prototype.ua,Pt.prototype.wa=function(A){x(A==Math.floor(A)),x(-2147483648<=A&&2147483648>A),this.j((A<<1^A>>31)>>>0)},Pt.prototype.writeZigzagVarint32=Pt.prototype.wa,Pt.prototype.xa=function(A){x(A==Math.floor(A)),x(-9223372036854776e3<=A&&9223372036854776e3>A),de(A),this.l(j,F)},Pt.prototype.writeZigzagVarint64=Pt.prototype.xa,Pt.prototype.Ta=function(A){this.W(ne(A))},Pt.prototype.writeZigzagVarint64String=Pt.prototype.Ta,Pt.prototype.W=function(A){var W=this;ve(A),we(j,F,function(ce,Pe){W.l(ce>>>0,Pe>>>0)})},Pt.prototype.writeZigzagVarintHash64=Pt.prototype.W,Pt.prototype.be=function(A){x(A==Math.floor(A)),x(0<=A&&256>A),this.a.push(A>>>0&255)},Pt.prototype.writeUint8=Pt.prototype.be,Pt.prototype.ae=function(A){x(A==Math.floor(A)),x(0<=A&&65536>A),this.a.push(A>>>0&255),this.a.push(A>>>8&255)},Pt.prototype.writeUint16=Pt.prototype.ae,Pt.prototype.s=function(A){x(A==Math.floor(A)),x(0<=A&&4294967296>A),this.a.push(A>>>0&255),this.a.push(A>>>8&255),this.a.push(A>>>16&255),this.a.push(A>>>24&255)},Pt.prototype.writeUint32=Pt.prototype.s,Pt.prototype.V=function(A){x(A==Math.floor(A)),x(0<=A&&18446744073709552e3>A),te(A),this.s(j),this.s(F)},Pt.prototype.writeUint64=Pt.prototype.V,Pt.prototype.Qc=function(A){x(A==Math.floor(A)),x(-128<=A&&128>A),this.a.push(A>>>0&255)},Pt.prototype.writeInt8=Pt.prototype.Qc,Pt.prototype.Pc=function(A){x(A==Math.floor(A)),x(-32768<=A&&32768>A),this.a.push(A>>>0&255),this.a.push(A>>>8&255)},Pt.prototype.writeInt16=Pt.prototype.Pc,Pt.prototype.S=function(A){x(A==Math.floor(A)),x(-2147483648<=A&&2147483648>A),this.a.push(A>>>0&255),this.a.push(A>>>8&255),this.a.push(A>>>16&255),this.a.push(A>>>24&255)},Pt.prototype.writeInt32=Pt.prototype.S,Pt.prototype.T=function(A){x(A==Math.floor(A)),x(-9223372036854776e3<=A&&9223372036854776e3>A),oe(A),this.A(j,F)},Pt.prototype.writeInt64=Pt.prototype.T,Pt.prototype.ka=function(A){x(A==Math.floor(A)),x(-9223372036854776e3<=+A&&9223372036854776e3>+A),ve(ne(A)),this.A(j,F)},Pt.prototype.writeInt64String=Pt.prototype.ka,Pt.prototype.L=function(A){x(A===1/0||A===-1/0||isNaN(A)||-34028234663852886e22<=A&&34028234663852886e22>=A),pe(A),this.s(j)},Pt.prototype.writeFloat=Pt.prototype.L,Pt.prototype.J=function(A){x(A===1/0||A===-1/0||isNaN(A)||-17976931348623157e292<=A&&17976931348623157e292>=A),me(A),this.s(j),this.s(F)},Pt.prototype.writeDouble=Pt.prototype.J,Pt.prototype.I=function(A){x(typeof A=="boolean"||typeof A=="number"),this.a.push(A?1:0)},Pt.prototype.writeBool=Pt.prototype.I,Pt.prototype.R=function(A){x(A==Math.floor(A)),x(-2147483648<=A&&2147483648>A),this.M(A)},Pt.prototype.writeEnum=Pt.prototype.R,Pt.prototype.ja=function(A){this.a.push.apply(this.a,A)},Pt.prototype.writeBytes=Pt.prototype.ja,Pt.prototype.N=function(A){ve(A),this.l(j,F)},Pt.prototype.writeVarintHash64=Pt.prototype.N,Pt.prototype.K=function(A){ve(A),this.s(j),this.s(F)},Pt.prototype.writeFixedHash64=Pt.prototype.K,Pt.prototype.U=function(A){var W=this.a.length;T(A);for(var ce=0;ce<A.length;ce++){var Pe=A.charCodeAt(ce);if(128>Pe)this.a.push(Pe);else if(2048>Pe)this.a.push(Pe>>6|192),this.a.push(Pe&63|128);else if(65536>Pe)if(55296<=Pe&&56319>=Pe&&ce+1<A.length){var qe=A.charCodeAt(ce+1);56320<=qe&&57343>=qe&&(Pe=1024*(Pe-55296)+qe-56320+65536,this.a.push(Pe>>18|240),this.a.push(Pe>>12&63|128),this.a.push(Pe>>6&63|128),this.a.push(Pe&63|128),ce++)}else this.a.push(Pe>>12|224),this.a.push(Pe>>6&63|128),this.a.push(Pe&63|128)}return this.a.length-W},Pt.prototype.writeString=Pt.prototype.U;function Qt(A,W){this.lo=A,this.hi=W}p("jspb.arith.UInt64",Qt,void 0),Qt.prototype.cmp=function(A){return this.hi<A.hi||this.hi==A.hi&&this.lo<A.lo?-1:this.hi==A.hi&&this.lo==A.lo?0:1},Qt.prototype.cmp=Qt.prototype.cmp,Qt.prototype.La=function(){return new Qt((this.lo>>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},Qt.prototype.rightShift=Qt.prototype.La,Qt.prototype.Da=function(){return new Qt(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},Qt.prototype.leftShift=Qt.prototype.Da,Qt.prototype.cb=function(){return!!(this.hi&2147483648)},Qt.prototype.msb=Qt.prototype.cb,Qt.prototype.Ob=function(){return!!(this.lo&1)},Qt.prototype.lsb=Qt.prototype.Ob,Qt.prototype.Ua=function(){return this.lo==0&&this.hi==0},Qt.prototype.zero=Qt.prototype.Ua,Qt.prototype.add=function(A){return new Qt((this.lo+A.lo&4294967295)>>>0>>>0,((this.hi+A.hi&4294967295)>>>0)+(4294967296<=this.lo+A.lo?1:0)>>>0)},Qt.prototype.add=Qt.prototype.add,Qt.prototype.sub=function(A){return new Qt((this.lo-A.lo&4294967295)>>>0>>>0,((this.hi-A.hi&4294967295)>>>0)-(0>this.lo-A.lo?1:0)>>>0)},Qt.prototype.sub=Qt.prototype.sub;function ln(A,W){var ce=A&65535;A>>>=16;var Pe=W&65535,qe=W>>>16;for(W=ce*Pe+65536*(ce*qe&65535)+65536*(A*Pe&65535),ce=A*qe+(ce*qe>>>16)+(A*Pe>>>16);4294967296<=W;)W-=4294967296,ce+=1;return new Qt(W>>>0,ce>>>0)}Qt.mul32x32=ln,Qt.prototype.eb=function(A){var W=ln(this.lo,A);return A=ln(this.hi,A),A.hi=A.lo,A.lo=0,W.add(A)},Qt.prototype.mul=Qt.prototype.eb,Qt.prototype.Xa=function(A){if(A==0)return[];var W=new Qt(0,0),ce=new Qt(this.lo,this.hi);A=new Qt(A,0);for(var Pe=new Qt(1,0);!A.cb();)A=A.Da(),Pe=Pe.Da();for(;!Pe.Ua();)0>=A.cmp(ce)&&(W=W.add(Pe),ce=ce.sub(A)),A=A.La(),Pe=Pe.La();return[W,ce]},Qt.prototype.div=Qt.prototype.Xa,Qt.prototype.toString=function(){for(var A="",W=this;!W.Ua();){W=W.Xa(10);var ce=W[0];A=W[1].lo+A,W=ce}return A==""&&(A="0"),A},Qt.prototype.toString=Qt.prototype.toString;function jt(A){for(var W=new Qt(0,0),ce=new Qt(0,0),Pe=0;Pe<A.length;Pe++){if("0">A[Pe]||"9"<A[Pe])return null;ce.lo=parseInt(A[Pe],10),W=W.eb(10).add(ce)}return W}Qt.fromString=jt,Qt.prototype.clone=function(){return new Qt(this.lo,this.hi)},Qt.prototype.clone=Qt.prototype.clone;function Lt(A,W){this.lo=A,this.hi=W}p("jspb.arith.Int64",Lt,void 0),Lt.prototype.add=function(A){return new Lt((this.lo+A.lo&4294967295)>>>0>>>0,((this.hi+A.hi&4294967295)>>>0)+(4294967296<=this.lo+A.lo?1:0)>>>0)},Lt.prototype.add=Lt.prototype.add,Lt.prototype.sub=function(A){return new Lt((this.lo-A.lo&4294967295)>>>0>>>0,((this.hi-A.hi&4294967295)>>>0)-(0>this.lo-A.lo?1:0)>>>0)},Lt.prototype.sub=Lt.prototype.sub,Lt.prototype.clone=function(){return new Lt(this.lo,this.hi)},Lt.prototype.clone=Lt.prototype.clone,Lt.prototype.toString=function(){var A=(this.hi&2147483648)!=0,W=new Qt(this.lo,this.hi);return A&&(W=new Qt(0,0).sub(W)),(A?"-":"")+W.toString()},Lt.prototype.toString=Lt.prototype.toString;function en(A){var W=0<A.length&&A[0]=="-";return W&&(A=A.substring(1)),A=jt(A),A===null?null:(W&&(A=new Qt(0,0).sub(A)),new Lt(A.lo,A.hi))}Lt.fromString=en;function Ue(){this.c=[],this.b=0,this.a=new Pt,this.h=[]}p("jspb.BinaryWriter",Ue,void 0);function Zt(A,W){var ce=A.a.end();A.c.push(ce),A.c.push(W),A.b+=ce.length+W.length}function Et(A,W){return zt(A,W,2),W=A.a.end(),A.c.push(W),A.b+=W.length,W.push(A.b),W}function Gt(A,W){var ce=W.pop();for(ce=A.b+A.a.length()-ce,x(0<=ce);127<ce;)W.push(ce&127|128),ce>>>=7,A.b++;W.push(ce),A.b++}Ue.prototype.pb=function(A,W,ce){Zt(this,A.subarray(W,ce))},Ue.prototype.writeSerializedMessage=Ue.prototype.pb,Ue.prototype.Pb=function(A,W,ce){A!=null&&W!=null&&ce!=null&&this.pb(A,W,ce)},Ue.prototype.maybeWriteSerializedMessage=Ue.prototype.Pb,Ue.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Ue.prototype.reset=Ue.prototype.reset,Ue.prototype.ab=function(){x(this.h.length==0);for(var A=new Uint8Array(this.b+this.a.length()),W=this.c,ce=W.length,Pe=0,qe=0;qe<ce;qe++){var gt=W[qe];A.set(gt,Pe),Pe+=gt.length}return W=this.a.end(),A.set(W,Pe),Pe+=W.length,x(Pe==A.length),this.c=[A],A},Ue.prototype.getResultBuffer=Ue.prototype.ab,Ue.prototype.Kb=function(A){return G(this.ab(),A)},Ue.prototype.getResultBase64String=Ue.prototype.Kb,Ue.prototype.Va=function(A){this.h.push(Et(this,A))},Ue.prototype.beginSubMessage=Ue.prototype.Va,Ue.prototype.Ya=function(){x(0<=this.h.length),Gt(this,this.h.pop())},Ue.prototype.endSubMessage=Ue.prototype.Ya;function zt(A,W,ce){x(1<=W&&W==Math.floor(W)),A.a.j(8*W+ce)}Ue.prototype.Nc=function(A,W,ce){switch(A){case 1:this.J(W,ce);break;case 2:this.L(W,ce);break;case 3:this.T(W,ce);break;case 4:this.V(W,ce);break;case 5:this.S(W,ce);break;case 6:this.Qa(W,ce);break;case 7:this.Pa(W,ce);break;case 8:this.I(W,ce);break;case 9:this.U(W,ce);break;case 10:O("Group field type not supported in writeAny()");break;case 11:O("Message field type not supported in writeAny()");break;case 12:this.ja(W,ce);break;case 13:this.s(W,ce);break;case 14:this.R(W,ce);break;case 15:this.Ra(W,ce);break;case 16:this.Sa(W,ce);break;case 17:this.rb(W,ce);break;case 18:this.sb(W,ce);break;case 30:this.K(W,ce);break;case 31:this.N(W,ce);break;default:O("Invalid field type in writeAny()")}},Ue.prototype.writeAny=Ue.prototype.Nc;function Vn(A,W,ce){ce!=null&&(zt(A,W,0),A.a.j(ce))}function sr(A,W,ce){ce!=null&&(zt(A,W,0),A.a.M(ce))}Ue.prototype.S=function(A,W){W!=null&&(x(-2147483648<=W&&2147483648>W),sr(this,A,W))},Ue.prototype.writeInt32=Ue.prototype.S,Ue.prototype.ob=function(A,W){W!=null&&(W=parseInt(W,10),x(-2147483648<=W&&2147483648>W),sr(this,A,W))},Ue.prototype.writeInt32String=Ue.prototype.ob,Ue.prototype.T=function(A,W){W!=null&&(x(-9223372036854776e3<=W&&9223372036854776e3>W),W!=null&&(zt(this,A,0),this.a.ua(W)))},Ue.prototype.writeInt64=Ue.prototype.T,Ue.prototype.ka=function(A,W){W!=null&&(W=en(W),zt(this,A,0),this.a.l(W.lo,W.hi))},Ue.prototype.writeInt64String=Ue.prototype.ka,Ue.prototype.s=function(A,W){W!=null&&(x(0<=W&&4294967296>W),Vn(this,A,W))},Ue.prototype.writeUint32=Ue.prototype.s,Ue.prototype.ub=function(A,W){W!=null&&(W=parseInt(W,10),x(0<=W&&4294967296>W),Vn(this,A,W))},Ue.prototype.writeUint32String=Ue.prototype.ub,Ue.prototype.V=function(A,W){W!=null&&(x(0<=W&&18446744073709552e3>W),W!=null&&(zt(this,A,0),this.a.va(W)))},Ue.prototype.writeUint64=Ue.prototype.V,Ue.prototype.vb=function(A,W){W!=null&&(W=jt(W),zt(this,A,0),this.a.l(W.lo,W.hi))},Ue.prototype.writeUint64String=Ue.prototype.vb,Ue.prototype.rb=function(A,W){W!=null&&(x(-2147483648<=W&&2147483648>W),W!=null&&(zt(this,A,0),this.a.wa(W)))},Ue.prototype.writeSint32=Ue.prototype.rb,Ue.prototype.sb=function(A,W){W!=null&&(x(-9223372036854776e3<=W&&9223372036854776e3>W),W!=null&&(zt(this,A,0),this.a.xa(W)))},Ue.prototype.writeSint64=Ue.prototype.sb,Ue.prototype.$d=function(A,W){W!=null&&W!=null&&(zt(this,A,0),this.a.W(W))},Ue.prototype.writeSintHash64=Ue.prototype.$d,Ue.prototype.Zd=function(A,W){W!=null&&W!=null&&(zt(this,A,0),this.a.Ta(W))},Ue.prototype.writeSint64String=Ue.prototype.Zd,Ue.prototype.Pa=function(A,W){W!=null&&(x(0<=W&&4294967296>W),zt(this,A,5),this.a.s(W))},Ue.prototype.writeFixed32=Ue.prototype.Pa,Ue.prototype.Qa=function(A,W){W!=null&&(x(0<=W&&18446744073709552e3>W),zt(this,A,1),this.a.V(W))},Ue.prototype.writeFixed64=Ue.prototype.Qa,Ue.prototype.nb=function(A,W){W!=null&&(W=jt(W),zt(this,A,1),this.a.A(W.lo,W.hi))},Ue.prototype.writeFixed64String=Ue.prototype.nb,Ue.prototype.Ra=function(A,W){W!=null&&(x(-2147483648<=W&&2147483648>W),zt(this,A,5),this.a.S(W))},Ue.prototype.writeSfixed32=Ue.prototype.Ra,Ue.prototype.Sa=function(A,W){W!=null&&(x(-9223372036854776e3<=W&&9223372036854776e3>W),zt(this,A,1),this.a.T(W))},Ue.prototype.writeSfixed64=Ue.prototype.Sa,Ue.prototype.qb=function(A,W){W!=null&&(W=en(W),zt(this,A,1),this.a.A(W.lo,W.hi))},Ue.prototype.writeSfixed64String=Ue.prototype.qb,Ue.prototype.L=function(A,W){W!=null&&(zt(this,A,5),this.a.L(W))},Ue.prototype.writeFloat=Ue.prototype.L,Ue.prototype.J=function(A,W){W!=null&&(zt(this,A,1),this.a.J(W))},Ue.prototype.writeDouble=Ue.prototype.J,Ue.prototype.I=function(A,W){W!=null&&(x(typeof W=="boolean"||typeof W=="number"),zt(this,A,0),this.a.I(W))},Ue.prototype.writeBool=Ue.prototype.I,Ue.prototype.R=function(A,W){W!=null&&(x(-2147483648<=W&&2147483648>W),zt(this,A,0),this.a.M(W))},Ue.prototype.writeEnum=Ue.prototype.R,Ue.prototype.U=function(A,W){W!=null&&(A=Et(this,A),this.a.U(W),Gt(this,A))},Ue.prototype.writeString=Ue.prototype.U,Ue.prototype.ja=function(A,W){W!=null&&(W=xe(W),zt(this,A,2),this.a.j(W.length),Zt(this,W))},Ue.prototype.writeBytes=Ue.prototype.ja,Ue.prototype.Rc=function(A,W,ce){W!=null&&(A=Et(this,A),ce(W,this),Gt(this,A))},Ue.prototype.writeMessage=Ue.prototype.Rc,Ue.prototype.Sc=function(A,W,ce){W!=null&&(zt(this,1,3),zt(this,2,0),this.a.M(A),A=Et(this,3),ce(W,this),Gt(this,A),zt(this,1,4))},Ue.prototype.writeMessageSet=Ue.prototype.Sc,Ue.prototype.Oc=function(A,W,ce){W!=null&&(zt(this,A,3),ce(W,this),zt(this,A,4))},Ue.prototype.writeGroup=Ue.prototype.Oc,Ue.prototype.K=function(A,W){W!=null&&(x(W.length==8),zt(this,A,1),this.a.K(W))},Ue.prototype.writeFixedHash64=Ue.prototype.K,Ue.prototype.N=function(A,W){W!=null&&(x(W.length==8),zt(this,A,0),this.a.N(W))},Ue.prototype.writeVarintHash64=Ue.prototype.N,Ue.prototype.A=function(A,W,ce){zt(this,A,1),this.a.A(W,ce)},Ue.prototype.writeSplitFixed64=Ue.prototype.A,Ue.prototype.l=function(A,W,ce){zt(this,A,0),this.a.l(W,ce)},Ue.prototype.writeSplitVarint64=Ue.prototype.l,Ue.prototype.tb=function(A,W,ce){zt(this,A,0);var Pe=this.a;we(W,ce,function(qe,gt){Pe.l(qe>>>0,gt>>>0)})},Ue.prototype.writeSplitZigzagVarint64=Ue.prototype.tb,Ue.prototype.Ed=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)sr(this,A,W[ce])},Ue.prototype.writeRepeatedInt32=Ue.prototype.Ed,Ue.prototype.Fd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.ob(A,W[ce])},Ue.prototype.writeRepeatedInt32String=Ue.prototype.Fd,Ue.prototype.Gd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++){var Pe=W[ce];Pe!=null&&(zt(this,A,0),this.a.ua(Pe))}},Ue.prototype.writeRepeatedInt64=Ue.prototype.Gd,Ue.prototype.Qd=function(A,W,ce,Pe){if(W!=null)for(var qe=0;qe<W.length;qe++)this.A(A,ce(W[qe]),Pe(W[qe]))},Ue.prototype.writeRepeatedSplitFixed64=Ue.prototype.Qd,Ue.prototype.Rd=function(A,W,ce,Pe){if(W!=null)for(var qe=0;qe<W.length;qe++)this.l(A,ce(W[qe]),Pe(W[qe]))},Ue.prototype.writeRepeatedSplitVarint64=Ue.prototype.Rd,Ue.prototype.Sd=function(A,W,ce,Pe){if(W!=null)for(var qe=0;qe<W.length;qe++)this.tb(A,ce(W[qe]),Pe(W[qe]))},Ue.prototype.writeRepeatedSplitZigzagVarint64=Ue.prototype.Sd,Ue.prototype.Hd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.ka(A,W[ce])},Ue.prototype.writeRepeatedInt64String=Ue.prototype.Hd,Ue.prototype.Ud=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)Vn(this,A,W[ce])},Ue.prototype.writeRepeatedUint32=Ue.prototype.Ud,Ue.prototype.Vd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.ub(A,W[ce])},Ue.prototype.writeRepeatedUint32String=Ue.prototype.Vd,Ue.prototype.Wd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++){var Pe=W[ce];Pe!=null&&(zt(this,A,0),this.a.va(Pe))}},Ue.prototype.writeRepeatedUint64=Ue.prototype.Wd,Ue.prototype.Xd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.vb(A,W[ce])},Ue.prototype.writeRepeatedUint64String=Ue.prototype.Xd,Ue.prototype.Md=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++){var Pe=W[ce];Pe!=null&&(zt(this,A,0),this.a.wa(Pe))}},Ue.prototype.writeRepeatedSint32=Ue.prototype.Md,Ue.prototype.Nd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++){var Pe=W[ce];Pe!=null&&(zt(this,A,0),this.a.xa(Pe))}},Ue.prototype.writeRepeatedSint64=Ue.prototype.Nd,Ue.prototype.Od=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++){var Pe=W[ce];Pe!=null&&(zt(this,A,0),this.a.Ta(Pe))}},Ue.prototype.writeRepeatedSint64String=Ue.prototype.Od,Ue.prototype.Pd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++){var Pe=W[ce];Pe!=null&&(zt(this,A,0),this.a.W(Pe))}},Ue.prototype.writeRepeatedSintHash64=Ue.prototype.Pd,Ue.prototype.yd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.Pa(A,W[ce])},Ue.prototype.writeRepeatedFixed32=Ue.prototype.yd,Ue.prototype.zd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.Qa(A,W[ce])},Ue.prototype.writeRepeatedFixed64=Ue.prototype.zd,Ue.prototype.Ad=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.nb(A,W[ce])},Ue.prototype.writeRepeatedFixed64String=Ue.prototype.Ad,Ue.prototype.Jd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.Ra(A,W[ce])},Ue.prototype.writeRepeatedSfixed32=Ue.prototype.Jd,Ue.prototype.Kd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.Sa(A,W[ce])},Ue.prototype.writeRepeatedSfixed64=Ue.prototype.Kd,Ue.prototype.Ld=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.qb(A,W[ce])},Ue.prototype.writeRepeatedSfixed64String=Ue.prototype.Ld,Ue.prototype.Cd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.L(A,W[ce])},Ue.prototype.writeRepeatedFloat=Ue.prototype.Cd,Ue.prototype.wd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.J(A,W[ce])},Ue.prototype.writeRepeatedDouble=Ue.prototype.wd,Ue.prototype.ud=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.I(A,W[ce])},Ue.prototype.writeRepeatedBool=Ue.prototype.ud,Ue.prototype.xd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.R(A,W[ce])},Ue.prototype.writeRepeatedEnum=Ue.prototype.xd,Ue.prototype.Td=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.U(A,W[ce])},Ue.prototype.writeRepeatedString=Ue.prototype.Td,Ue.prototype.vd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.ja(A,W[ce])},Ue.prototype.writeRepeatedBytes=Ue.prototype.vd,Ue.prototype.Id=function(A,W,ce){if(W!=null)for(var Pe=0;Pe<W.length;Pe++){var qe=Et(this,A);ce(W[Pe],this),Gt(this,qe)}},Ue.prototype.writeRepeatedMessage=Ue.prototype.Id,Ue.prototype.Dd=function(A,W,ce){if(W!=null)for(var Pe=0;Pe<W.length;Pe++)zt(this,A,3),ce(W[Pe],this),zt(this,A,4)},Ue.prototype.writeRepeatedGroup=Ue.prototype.Dd,Ue.prototype.Bd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.K(A,W[ce])},Ue.prototype.writeRepeatedFixedHash64=Ue.prototype.Bd,Ue.prototype.Yd=function(A,W){if(W!=null)for(var ce=0;ce<W.length;ce++)this.N(A,W[ce])},Ue.prototype.writeRepeatedVarintHash64=Ue.prototype.Yd,Ue.prototype.ad=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.M(W[ce]);Gt(this,A)}},Ue.prototype.writePackedInt32=Ue.prototype.ad,Ue.prototype.bd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.M(parseInt(W[ce],10));Gt(this,A)}},Ue.prototype.writePackedInt32String=Ue.prototype.bd,Ue.prototype.cd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.ua(W[ce]);Gt(this,A)}},Ue.prototype.writePackedInt64=Ue.prototype.cd,Ue.prototype.md=function(A,W,ce,Pe){if(W!=null){A=Et(this,A);for(var qe=0;qe<W.length;qe++)this.a.A(ce(W[qe]),Pe(W[qe]));Gt(this,A)}},Ue.prototype.writePackedSplitFixed64=Ue.prototype.md,Ue.prototype.nd=function(A,W,ce,Pe){if(W!=null){A=Et(this,A);for(var qe=0;qe<W.length;qe++)this.a.l(ce(W[qe]),Pe(W[qe]));Gt(this,A)}},Ue.prototype.writePackedSplitVarint64=Ue.prototype.nd,Ue.prototype.od=function(A,W,ce,Pe){if(W!=null){A=Et(this,A);for(var qe=this.a,gt=0;gt<W.length;gt++)we(ce(W[gt]),Pe(W[gt]),function(Yt,Nn){qe.l(Yt>>>0,Nn>>>0)});Gt(this,A)}},Ue.prototype.writePackedSplitZigzagVarint64=Ue.prototype.od,Ue.prototype.dd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++){var Pe=en(W[ce]);this.a.l(Pe.lo,Pe.hi)}Gt(this,A)}},Ue.prototype.writePackedInt64String=Ue.prototype.dd,Ue.prototype.pd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.j(W[ce]);Gt(this,A)}},Ue.prototype.writePackedUint32=Ue.prototype.pd,Ue.prototype.qd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.j(parseInt(W[ce],10));Gt(this,A)}},Ue.prototype.writePackedUint32String=Ue.prototype.qd,Ue.prototype.rd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.va(W[ce]);Gt(this,A)}},Ue.prototype.writePackedUint64=Ue.prototype.rd,Ue.prototype.sd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++){var Pe=jt(W[ce]);this.a.l(Pe.lo,Pe.hi)}Gt(this,A)}},Ue.prototype.writePackedUint64String=Ue.prototype.sd,Ue.prototype.hd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.wa(W[ce]);Gt(this,A)}},Ue.prototype.writePackedSint32=Ue.prototype.hd,Ue.prototype.jd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.xa(W[ce]);Gt(this,A)}},Ue.prototype.writePackedSint64=Ue.prototype.jd,Ue.prototype.kd=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.W(ne(W[ce]));Gt(this,A)}},Ue.prototype.writePackedSint64String=Ue.prototype.kd,Ue.prototype.ld=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.W(W[ce]);Gt(this,A)}},Ue.prototype.writePackedSintHash64=Ue.prototype.ld,Ue.prototype.Wc=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(4*W.length),A=0;A<W.length;A++)this.a.s(W[A])},Ue.prototype.writePackedFixed32=Ue.prototype.Wc,Ue.prototype.Xc=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(8*W.length),A=0;A<W.length;A++)this.a.V(W[A])},Ue.prototype.writePackedFixed64=Ue.prototype.Xc,Ue.prototype.Yc=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(8*W.length),A=0;A<W.length;A++){var ce=jt(W[A]);this.a.A(ce.lo,ce.hi)}},Ue.prototype.writePackedFixed64String=Ue.prototype.Yc,Ue.prototype.ed=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(4*W.length),A=0;A<W.length;A++)this.a.S(W[A])},Ue.prototype.writePackedSfixed32=Ue.prototype.ed,Ue.prototype.fd=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(8*W.length),A=0;A<W.length;A++)this.a.T(W[A])},Ue.prototype.writePackedSfixed64=Ue.prototype.fd,Ue.prototype.gd=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(8*W.length),A=0;A<W.length;A++)this.a.ka(W[A])},Ue.prototype.writePackedSfixed64String=Ue.prototype.gd,Ue.prototype.$c=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(4*W.length),A=0;A<W.length;A++)this.a.L(W[A])},Ue.prototype.writePackedFloat=Ue.prototype.$c,Ue.prototype.Uc=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(8*W.length),A=0;A<W.length;A++)this.a.J(W[A])},Ue.prototype.writePackedDouble=Ue.prototype.Uc,Ue.prototype.Tc=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(W.length),A=0;A<W.length;A++)this.a.I(W[A])},Ue.prototype.writePackedBool=Ue.prototype.Tc,Ue.prototype.Vc=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.R(W[ce]);Gt(this,A)}},Ue.prototype.writePackedEnum=Ue.prototype.Vc,Ue.prototype.Zc=function(A,W){if(W!=null&&W.length)for(zt(this,A,2),this.a.j(8*W.length),A=0;A<W.length;A++)this.a.K(W[A])},Ue.prototype.writePackedFixedHash64=Ue.prototype.Zc,Ue.prototype.td=function(A,W){if(W!=null&&W.length){A=Et(this,A);for(var ce=0;ce<W.length;ce++)this.a.N(W[ce]);Gt(this,A)}},Ue.prototype.writePackedVarintHash64=Ue.prototype.td,e.debug=En,e.Map=k,e.Message=Ze,e.BinaryReader=ge,e.BinaryWriter=Ue,e.ExtensionFieldInfo=ot,e.ExtensionFieldBinaryInfo=Xe,e.exportSymbol=v,e.inherits=y,e.object={extend:S},e.typeOf=h})(zn);const jEt=Or(zn),$le=o7({__proto__:null,default:jEt},[zn]);var Fle=$le,yne=(function(){return this?this:typeof window<"u"?window:typeof yne<"u"?yne:typeof self<"u"?self:Function("return this")()}).call(null);Fle.exportSymbol("proto.User",null,yne);proto.User=function(e){zn.Message.initialize(this,e,0,-1,null,null)};Fle.inherits(proto.User,zn.Message);Fle.DEBUG&&!COMPILED&&(proto.User.displayName="proto.User");zn.Message.GENERATE_TO_OBJECT&&(proto.User.prototype.toObject=function(e){return proto.User.toObject(e,this)},proto.User.toObject=function(e,n){var r={uid:zn.Message.getFieldWithDefault(n,1,""),nickname:zn.Message.getFieldWithDefault(n,2,""),avatar:zn.Message.getFieldWithDefault(n,3,""),type:zn.Message.getFieldWithDefault(n,4,""),extra:zn.Message.getFieldWithDefault(n,5,"")};return e&&(r.$jspbMessageInstance=n),r});proto.User.deserializeBinary=function(e){var n=new zn.BinaryReader(e),r=new proto.User;return proto.User.deserializeBinaryFromReader(r,n)};proto.User.deserializeBinaryFromReader=function(e,n){for(;n.nextField()&&!n.isEndGroup();){var r=n.getFieldNumber();switch(r){case 1:var i=n.readString();e.setUid(i);break;case 2:var i=n.readString();e.setNickname(i);break;case 3:var i=n.readString();e.setAvatar(i);break;case 4:var i=n.readString();e.setType(i);break;case 5:var i=n.readString();e.setExtra(i);break;default:n.skipField();break}}return e};proto.User.prototype.serializeBinary=function(){var e=new zn.BinaryWriter;return proto.User.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.User.serializeBinaryToWriter=function(e,n){var r=void 0;r=e.getUid(),r.length>0&&n.writeString(1,r),r=e.getNickname(),r.length>0&&n.writeString(2,r),r=e.getAvatar(),r.length>0&&n.writeString(3,r),r=e.getType(),r.length>0&&n.writeString(4,r),r=e.getExtra(),r.length>0&&n.writeString(5,r)};proto.User.prototype.getUid=function(){return zn.Message.getFieldWithDefault(this,1,"")};proto.User.prototype.setUid=function(e){return zn.Message.setProto3StringField(this,1,e)};proto.User.prototype.getNickname=function(){return zn.Message.getFieldWithDefault(this,2,"")};proto.User.prototype.setNickname=function(e){return zn.Message.setProto3StringField(this,2,e)};proto.User.prototype.getAvatar=function(){return zn.Message.getFieldWithDefault(this,3,"")};proto.User.prototype.setAvatar=function(e){return zn.Message.setProto3StringField(this,3,e)};proto.User.prototype.getType=function(){return zn.Message.getFieldWithDefault(this,4,"")};proto.User.prototype.setType=function(e){return zn.Message.setProto3StringField(this,4,e)};proto.User.prototype.getExtra=function(){return zn.Message.getFieldWithDefault(this,5,"")};proto.User.prototype.setExtra=function(e){return zn.Message.setProto3StringField(this,5,e)};const k0e=proto;var Ble=$le,_ne=(function(){return this?this:typeof window<"u"?window:typeof _ne<"u"?_ne:typeof self<"u"?self:Function("return this")()}).call(null);Ble.exportSymbol("proto.Thread",null,_ne);proto.Thread=function(e){zn.Message.initialize(this,e,0,-1,null,null)};Ble.inherits(proto.Thread,zn.Message);Ble.DEBUG&&!COMPILED&&(proto.Thread.displayName="proto.Thread");zn.Message.GENERATE_TO_OBJECT&&(proto.Thread.prototype.toObject=function(e){return proto.Thread.toObject(e,this)},proto.Thread.toObject=function(e,n){var r,i={uid:zn.Message.getFieldWithDefault(n,1,""),topic:zn.Message.getFieldWithDefault(n,2,""),type:zn.Message.getFieldWithDefault(n,3,""),state:zn.Message.getFieldWithDefault(n,4,""),user:(r=n.getUser())&&proto.User.toObject(e,r),extra:zn.Message.getFieldWithDefault(n,6,"")};return e&&(i.$jspbMessageInstance=n),i});proto.Thread.deserializeBinary=function(e){var n=new zn.BinaryReader(e),r=new proto.Thread;return proto.Thread.deserializeBinaryFromReader(r,n)};proto.Thread.deserializeBinaryFromReader=function(e,n){for(;n.nextField()&&!n.isEndGroup();){var r=n.getFieldNumber();switch(r){case 1:var i=n.readString();e.setUid(i);break;case 2:var i=n.readString();e.setTopic(i);break;case 3:var i=n.readString();e.setType(i);break;case 4:var i=n.readString();e.setState(i);break;case 5:var i=new proto.User;n.readMessage(i,proto.User.deserializeBinaryFromReader),e.setUser(i);break;case 6:var i=n.readString();e.setExtra(i);break;default:n.skipField();break}}return e};proto.Thread.prototype.serializeBinary=function(){var e=new zn.BinaryWriter;return proto.Thread.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Thread.serializeBinaryToWriter=function(e,n){var r=void 0;r=e.getUid(),r.length>0&&n.writeString(1,r),r=e.getTopic(),r.length>0&&n.writeString(2,r),r=e.getType(),r.length>0&&n.writeString(3,r),r=e.getState(),r.length>0&&n.writeString(4,r),r=e.getUser(),r!=null&&n.writeMessage(5,r,proto.User.serializeBinaryToWriter),r=e.getExtra(),r.length>0&&n.writeString(6,r)};proto.Thread.prototype.getUid=function(){return zn.Message.getFieldWithDefault(this,1,"")};proto.Thread.prototype.setUid=function(e){return zn.Message.setProto3StringField(this,1,e)};proto.Thread.prototype.getTopic=function(){return zn.Message.getFieldWithDefault(this,2,"")};proto.Thread.prototype.setTopic=function(e){return zn.Message.setProto3StringField(this,2,e)};proto.Thread.prototype.getType=function(){return zn.Message.getFieldWithDefault(this,3,"")};proto.Thread.prototype.setType=function(e){return zn.Message.setProto3StringField(this,3,e)};proto.Thread.prototype.getState=function(){return zn.Message.getFieldWithDefault(this,4,"")};proto.Thread.prototype.setState=function(e){return zn.Message.setProto3StringField(this,4,e)};proto.Thread.prototype.getUser=function(){return zn.Message.getWrapperField(this,proto.User,5)};proto.Thread.prototype.setUser=function(e){return zn.Message.setWrapperField(this,5,e)};proto.Thread.prototype.clearUser=function(){return this.setUser(void 0)};proto.Thread.prototype.hasUser=function(){return zn.Message.getField(this,5)!=null};proto.Thread.prototype.getExtra=function(){return zn.Message.getFieldWithDefault(this,6,"")};proto.Thread.prototype.setExtra=function(e){return zn.Message.setProto3StringField(this,6,e)};const UEt=proto;var jle=$le,bne=(function(){return this?this:typeof window<"u"?window:typeof bne<"u"?bne:typeof self<"u"?self:Function("return this")()}).call(null);jle.exportSymbol("proto.Message",null,bne);proto.Message=function(e){zn.Message.initialize(this,e,0,-1,null,null)};jle.inherits(proto.Message,zn.Message);jle.DEBUG&&!COMPILED&&(proto.Message.displayName="proto.Message");zn.Message.GENERATE_TO_OBJECT&&(proto.Message.prototype.toObject=function(e){return proto.Message.toObject(e,this)},proto.Message.toObject=function(e,n){var r,i={uid:zn.Message.getFieldWithDefault(n,1,""),type:zn.Message.getFieldWithDefault(n,2,""),content:zn.Message.getFieldWithDefault(n,3,""),status:zn.Message.getFieldWithDefault(n,4,""),createdat:zn.Message.getFieldWithDefault(n,5,""),client:zn.Message.getFieldWithDefault(n,6,""),thread:(r=n.getThread())&&proto.Thread.toObject(e,r),user:(r=n.getUser())&&proto.User.toObject(e,r),extra:zn.Message.getFieldWithDefault(n,9,"")};return e&&(i.$jspbMessageInstance=n),i});proto.Message.deserializeBinary=function(e){var n=new zn.BinaryReader(e),r=new proto.Message;return proto.Message.deserializeBinaryFromReader(r,n)};proto.Message.deserializeBinaryFromReader=function(e,n){for(;n.nextField()&&!n.isEndGroup();){var r=n.getFieldNumber();switch(r){case 1:var i=n.readString();e.setUid(i);break;case 2:var i=n.readString();e.setType(i);break;case 3:var i=n.readString();e.setContent(i);break;case 4:var i=n.readString();e.setStatus(i);break;case 5:var i=n.readString();e.setCreatedat(i);break;case 6:var i=n.readString();e.setClient(i);break;case 7:var i=new proto.Thread;n.readMessage(i,proto.Thread.deserializeBinaryFromReader),e.setThread(i);break;case 8:var i=new proto.User;n.readMessage(i,proto.User.deserializeBinaryFromReader),e.setUser(i);break;case 9:var i=n.readString();e.setExtra(i);break;default:n.skipField();break}}return e};proto.Message.prototype.serializeBinary=function(){var e=new zn.BinaryWriter;return proto.Message.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Message.serializeBinaryToWriter=function(e,n){var r=void 0;r=e.getUid(),r.length>0&&n.writeString(1,r),r=e.getType(),r.length>0&&n.writeString(2,r),r=e.getContent(),r.length>0&&n.writeString(3,r),r=e.getStatus(),r.length>0&&n.writeString(4,r),r=e.getCreatedat(),r.length>0&&n.writeString(5,r),r=e.getClient(),r.length>0&&n.writeString(6,r),r=e.getThread(),r!=null&&n.writeMessage(7,r,proto.Thread.serializeBinaryToWriter),r=e.getUser(),r!=null&&n.writeMessage(8,r,proto.User.serializeBinaryToWriter),r=e.getExtra(),r.length>0&&n.writeString(9,r)};proto.Message.prototype.getUid=function(){return zn.Message.getFieldWithDefault(this,1,"")};proto.Message.prototype.setUid=function(e){return zn.Message.setProto3StringField(this,1,e)};proto.Message.prototype.getType=function(){return zn.Message.getFieldWithDefault(this,2,"")};proto.Message.prototype.setType=function(e){return zn.Message.setProto3StringField(this,2,e)};proto.Message.prototype.getContent=function(){return zn.Message.getFieldWithDefault(this,3,"")};proto.Message.prototype.setContent=function(e){return zn.Message.setProto3StringField(this,3,e)};proto.Message.prototype.getStatus=function(){return zn.Message.getFieldWithDefault(this,4,"")};proto.Message.prototype.setStatus=function(e){return zn.Message.setProto3StringField(this,4,e)};proto.Message.prototype.getCreatedat=function(){return zn.Message.getFieldWithDefault(this,5,"")};proto.Message.prototype.setCreatedat=function(e){return zn.Message.setProto3StringField(this,5,e)};proto.Message.prototype.getClient=function(){return zn.Message.getFieldWithDefault(this,6,"")};proto.Message.prototype.setClient=function(e){return zn.Message.setProto3StringField(this,6,e)};proto.Message.prototype.getThread=function(){return zn.Message.getWrapperField(this,proto.Thread,7)};proto.Message.prototype.setThread=function(e){return zn.Message.setWrapperField(this,7,e)};proto.Message.prototype.clearThread=function(){return this.setThread(void 0)};proto.Message.prototype.hasThread=function(){return zn.Message.getField(this,7)!=null};proto.Message.prototype.getUser=function(){return zn.Message.getWrapperField(this,proto.User,8)};proto.Message.prototype.setUser=function(e){return zn.Message.setWrapperField(this,8,e)};proto.Message.prototype.clearUser=function(){return this.setUser(void 0)};proto.Message.prototype.hasUser=function(){return zn.Message.getField(this,8)!=null};proto.Message.prototype.getExtra=function(){return zn.Message.getFieldWithDefault(this,9,"")};proto.Message.prototype.setExtra=function(e){return zn.Message.setProto3StringField(this,9,e)};const cFe=proto,HEt="modulepreload",zEt=function(e){return"/agenticflow/"+e},L0e={},VEt=function(n,r,i){let o=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.allSettled(r.map(c=>{if(c=zEt(c),c in L0e)return;L0e[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":HEt,u||(f.as="script"),f.crossOrigin="",f.href=c,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((p,h)=>{f.addEventListener("load",p),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return o.then(s=>{for(const l of s||[])l.status==="rejected"&&a(l.reason);return n().catch(a)})};//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var uFe;function Hn(){return uFe.apply(null,arguments)}function GEt(e){uFe=e}function Zh(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function w1(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function _o(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function Ule(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var n;for(n in e)if(_o(e,n))return!1;return!0}function Xu(e){return e===void 0}function xy(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function JD(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function dFe(e,n){var r=[],i,o=e.length;for(i=0;i<o;++i)r.push(n(e[i],i));return r}function Db(e,n){for(var r in n)_o(n,r)&&(e[r]=n[r]);return _o(n,"toString")&&(e.toString=n.toString),_o(n,"valueOf")&&(e.valueOf=n.valueOf),e}function Zm(e,n,r,i){return DFe(e,n,r,i,!0).utc()}function WEt(){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 gi(e){return e._pf==null&&(e._pf=WEt()),e._pf}var Sne;Array.prototype.some?Sne=Array.prototype.some:Sne=function(e){var n=Object(this),r=n.length>>>0,i;for(i=0;i<r;i++)if(i in n&&e.call(this,n[i],i,n))return!0;return!1};function Hle(e){var n=null,r=!1,i=e._d&&!isNaN(e._d.getTime());if(i&&(n=gi(e),r=Sne.call(n.parsedDateParts,function(o){return o!=null}),i=n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&r),e._strict&&(i=i&&n.charsLeftOver===0&&n.unusedTokens.length===0&&n.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=i;else return i;return e._isValid}function B7(e){var n=Zm(NaN);return e!=null?Db(gi(n),e):gi(n).userInvalidated=!0,n}var $0e=Hn.momentProperties=[],qW=!1;function zle(e,n){var r,i,o,a=$0e.length;if(Xu(n._isAMomentObject)||(e._isAMomentObject=n._isAMomentObject),Xu(n._i)||(e._i=n._i),Xu(n._f)||(e._f=n._f),Xu(n._l)||(e._l=n._l),Xu(n._strict)||(e._strict=n._strict),Xu(n._tzm)||(e._tzm=n._tzm),Xu(n._isUTC)||(e._isUTC=n._isUTC),Xu(n._offset)||(e._offset=n._offset),Xu(n._pf)||(e._pf=gi(n)),Xu(n._locale)||(e._locale=n._locale),a>0)for(r=0;r<a;r++)i=$0e[r],o=n[i],Xu(o)||(e[i]=o);return e}function ek(e){zle(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),qW===!1&&(qW=!0,Hn.updateOffset(this),qW=!1)}function Jh(e){return e instanceof ek||e!=null&&e._isAMomentObject!=null}function fFe(e){Hn.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Fp(e,n){var r=!0;return Db(function(){if(Hn.deprecationHandler!=null&&Hn.deprecationHandler(null,e),r){var i=[],o,a,s,l=arguments.length;for(a=0;a<l;a++){if(o="",typeof arguments[a]=="object"){o+=`
[`+a+"] ";for(s in arguments[0])_o(arguments[0],s)&&(o+=s+": "+arguments[0][s]+", ");o=o.slice(0,-2)}else o=arguments[a];i.push(o)}fFe(e+`
Arguments: `+Array.prototype.slice.call(i).join("")+`
`+new Error().stack),r=!1}return n.apply(this,arguments)},n)}var F0e={};function pFe(e,n){Hn.deprecationHandler!=null&&Hn.deprecationHandler(e,n),F0e[e]||(fFe(n),F0e[e]=!0)}Hn.suppressDeprecationWarnings=!1;Hn.deprecationHandler=null;function Jm(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function YEt(e){var n,r;for(r in e)_o(e,r)&&(n=e[r],Jm(n)?this[r]=n:this["_"+r]=n);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ene(e,n){var r=Db({},e),i;for(i in n)_o(n,i)&&(w1(e[i])&&w1(n[i])?(r[i]={},Db(r[i],e[i]),Db(r[i],n[i])):n[i]!=null?r[i]=n[i]:delete r[i]);for(i in e)_o(e,i)&&!_o(n,i)&&w1(e[i])&&(r[i]=Db({},r[i]));return r}function Vle(e){e!=null&&this.set(e)}var Cne;Object.keys?Cne=Object.keys:Cne=function(e){var n,r=[];for(n in e)_o(e,n)&&r.push(n);return r};var qEt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function KEt(e,n,r){var i=this._calendar[e]||this._calendar.sameElse;return Jm(i)?i.call(n,r):i}function Im(e,n,r){var i=""+Math.abs(e),o=n-i.length,a=e>=0;return(a?r?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}var Gle=/(\[[^\[]*\])|(\\)?([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,m3=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,KW={},AT={};function Rr(e,n,r,i){var o=i;typeof i=="string"&&(o=function(){return this[i]()}),e&&(AT[e]=o),n&&(AT[n[0]]=function(){return Im(o.apply(this,arguments),n[1],n[2])}),r&&(AT[r]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function XEt(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function QEt(e){var n=e.match(Gle),r,i;for(r=0,i=n.length;r<i;r++)AT[n[r]]?n[r]=AT[n[r]]:n[r]=XEt(n[r]);return function(o){var a="",s;for(s=0;s<i;s++)a+=Jm(n[s])?n[s].call(o,e):n[s];return a}}function U5(e,n){return e.isValid()?(n=hFe(n,e.localeData()),KW[n]=KW[n]||QEt(n),KW[n](e)):e.localeData().invalidDate()}function hFe(e,n){var r=5;function i(o){return n.longDateFormat(o)||o}for(m3.lastIndex=0;r>=0&&m3.test(e);)e=e.replace(m3,i),m3.lastIndex=0,r-=1;return e}var ZEt={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 JEt(e){var n=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return n||!r?n:(this._longDateFormat[e]=r.match(Gle).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var e1t="Invalid date";function t1t(){return this._invalidDate}var n1t="%d",r1t=/\d{1,2}/;function i1t(e){return this._ordinal.replace("%d",e)}var o1t={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 a1t(e,n,r,i){var o=this._relativeTime[r];return Jm(o)?o(e,n,r,i):o.replace(/%d/i,e)}function s1t(e,n){var r=this._relativeTime[e>0?"future":"past"];return Jm(r)?r(n):r.replace(/%s/i,n)}var B0e={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 Bp(e){return typeof e=="string"?B0e[e]||B0e[e.toLowerCase()]:void 0}function Wle(e){var n={},r,i;for(i in e)_o(e,i)&&(r=Bp(i),r&&(n[r]=e[i]));return n}var l1t={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 c1t(e){var n=[],r;for(r in e)_o(e,r)&&n.push({unit:r,priority:l1t[r]});return n.sort(function(i,o){return i.priority-o.priority}),n}var gFe=/\d/,Mf=/\d\d/,mFe=/\d{3}/,Yle=/\d{4}/,j7=/[+-]?\d{6}/,Ra=/\d\d?/,vFe=/\d\d\d\d?/,yFe=/\d\d\d\d\d\d?/,U7=/\d{1,3}/,qle=/\d{1,4}/,H7=/[+-]?\d{1,6}/,QR=/\d+/,z7=/[+-]?\d+/,u1t=/Z|[+-]\d\d:?\d\d/gi,V7=/Z|[+-]\d\d(?::?\d\d)?/gi,d1t=/[+-]?\d+(\.\d{1,3})?/,tk=/[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,ZR=/^[1-9]\d?/,Kle=/^([1-9]\d|\d)/,AF;AF={};function ar(e,n,r){AF[e]=Jm(n)?n:function(i,o){return i&&r?r:n}}function f1t(e,n){return _o(AF,e)?AF[e](n._strict,n._locale):new RegExp(p1t(e))}function p1t(e){return cy(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,r,i,o,a){return r||i||o||a}))}function cy(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function sp(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Gi(e){var n=+e,r=0;return n!==0&&isFinite(n)&&(r=sp(n)),r}var wne={};function Xo(e,n){var r,i=n,o;for(typeof e=="string"&&(e=[e]),xy(n)&&(i=function(a,s){s[n]=Gi(a)}),o=e.length,r=0;r<o;r++)wne[e[r]]=i}function nk(e,n){Xo(e,function(r,i,o,a){o._w=o._w||{},n(r,o._w,o,a)})}function h1t(e,n,r){n!=null&&_o(wne,e)&&wne[e](n,r._a,r,e)}function G7(e){return e%4===0&&e%100!==0||e%400===0}var Uc=0,Qv=1,im=2,El=3,Ph=4,Zv=5,ZE=6,g1t=7,m1t=8;Rr("Y",0,0,function(){var e=this.year();return e<=9999?Im(e,4):"+"+e});Rr(0,["YY",2],0,function(){return this.year()%100});Rr(0,["YYYY",4],0,"year");Rr(0,["YYYYY",5],0,"year");Rr(0,["YYYYYY",6,!0],0,"year");ar("Y",z7);ar("YY",Ra,Mf);ar("YYYY",qle,Yle);ar("YYYYY",H7,j7);ar("YYYYYY",H7,j7);Xo(["YYYYY","YYYYYY"],Uc);Xo("YYYY",function(e,n){n[Uc]=e.length===2?Hn.parseTwoDigitYear(e):Gi(e)});Xo("YY",function(e,n){n[Uc]=Hn.parseTwoDigitYear(e)});Xo("Y",function(e,n){n[Uc]=parseInt(e,10)});function L2(e){return G7(e)?366:365}Hn.parseTwoDigitYear=function(e){return Gi(e)+(Gi(e)>68?1900:2e3)};var _Fe=JR("FullYear",!0);function v1t(){return G7(this.year())}function JR(e,n){return function(r){return r!=null?(bFe(this,e,r),Hn.updateOffset(this,n),this):FP(this,e)}}function FP(e,n){if(!e.isValid())return NaN;var r=e._d,i=e._isUTC;switch(n){case"Milliseconds":return i?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return i?r.getUTCSeconds():r.getSeconds();case"Minutes":return i?r.getUTCMinutes():r.getMinutes();case"Hours":return i?r.getUTCHours():r.getHours();case"Date":return i?r.getUTCDate():r.getDate();case"Day":return i?r.getUTCDay():r.getDay();case"Month":return i?r.getUTCMonth():r.getMonth();case"FullYear":return i?r.getUTCFullYear():r.getFullYear();default:return NaN}}function bFe(e,n,r){var i,o,a,s,l;if(!(!e.isValid()||isNaN(r))){switch(i=e._d,o=e._isUTC,n){case"Milliseconds":return void(o?i.setUTCMilliseconds(r):i.setMilliseconds(r));case"Seconds":return void(o?i.setUTCSeconds(r):i.setSeconds(r));case"Minutes":return void(o?i.setUTCMinutes(r):i.setMinutes(r));case"Hours":return void(o?i.setUTCHours(r):i.setHours(r));case"Date":return void(o?i.setUTCDate(r):i.setDate(r));case"FullYear":break;default:return}a=r,s=e.month(),l=e.date(),l=l===29&&s===1&&!G7(a)?28:l,o?i.setUTCFullYear(a,s,l):i.setFullYear(a,s,l)}}function y1t(e){return e=Bp(e),Jm(this[e])?this[e]():this}function _1t(e,n){if(typeof e=="object"){e=Wle(e);var r=c1t(e),i,o=r.length;for(i=0;i<o;i++)this[r[i].unit](e[r[i].unit])}else if(e=Bp(e),Jm(this[e]))return this[e](n);return this}function b1t(e,n){return(e%n+n)%n}var ks;Array.prototype.indexOf?ks=Array.prototype.indexOf:ks=function(e){var n;for(n=0;n<this.length;++n)if(this[n]===e)return n;return-1};function Xle(e,n){if(isNaN(e)||isNaN(n))return NaN;var r=b1t(n,12);return e+=(n-r)/12,r===1?G7(e)?29:28:31-r%7%2}Rr("M",["MM",2],"Mo",function(){return this.month()+1});Rr("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Rr("MMMM",0,0,function(e){return this.localeData().months(this,e)});ar("M",Ra,ZR);ar("MM",Ra,Mf);ar("MMM",function(e,n){return n.monthsShortRegex(e)});ar("MMMM",function(e,n){return n.monthsRegex(e)});Xo(["M","MM"],function(e,n){n[Qv]=Gi(e)-1});Xo(["MMM","MMMM"],function(e,n,r,i){var o=r._locale.monthsParse(e,i,r._strict);o!=null?n[Qv]=o:gi(r).invalidMonth=e});var S1t="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),SFe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),EFe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,E1t=tk,C1t=tk;function w1t(e,n){return e?Zh(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||EFe).test(n)?"format":"standalone"][e.month()]:Zh(this._months)?this._months:this._months.standalone}function x1t(e,n){return e?Zh(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[EFe.test(n)?"format":"standalone"][e.month()]:Zh(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function T1t(e,n,r){var i,o,a,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)a=Zm([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(a,"").toLocaleLowerCase();return r?n==="MMM"?(o=ks.call(this._shortMonthsParse,s),o!==-1?o:null):(o=ks.call(this._longMonthsParse,s),o!==-1?o:null):n==="MMM"?(o=ks.call(this._shortMonthsParse,s),o!==-1?o:(o=ks.call(this._longMonthsParse,s),o!==-1?o:null)):(o=ks.call(this._longMonthsParse,s),o!==-1?o:(o=ks.call(this._shortMonthsParse,s),o!==-1?o:null))}function O1t(e,n,r){var i,o,a;if(this._monthsParseExact)return T1t.call(this,e,n,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=Zm([2e3,i]),r&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),!r&&!this._monthsParse[i]&&(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),r&&n==="MMMM"&&this._longMonthsParse[i].test(e))return i;if(r&&n==="MMM"&&this._shortMonthsParse[i].test(e))return i;if(!r&&this._monthsParse[i].test(e))return i}}function CFe(e,n){if(!e.isValid())return e;if(typeof n=="string"){if(/^\d+$/.test(n))n=Gi(n);else if(n=e.localeData().monthsParse(n),!xy(n))return e}var r=n,i=e.date();return i=i<29?i:Math.min(i,Xle(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,i):e._d.setMonth(r,i),e}function wFe(e){return e!=null?(CFe(this,e),Hn.updateOffset(this,!0),this):FP(this,"Month")}function R1t(){return Xle(this.year(),this.month())}function I1t(e){return this._monthsParseExact?(_o(this,"_monthsRegex")||xFe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(_o(this,"_monthsShortRegex")||(this._monthsShortRegex=E1t),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function N1t(e){return this._monthsParseExact?(_o(this,"_monthsRegex")||xFe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(_o(this,"_monthsRegex")||(this._monthsRegex=C1t),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function xFe(){function e(c,u){return u.length-c.length}var n=[],r=[],i=[],o,a,s,l;for(o=0;o<12;o++)a=Zm([2e3,o]),s=cy(this.monthsShort(a,"")),l=cy(this.months(a,"")),n.push(s),r.push(l),i.push(l),i.push(s);n.sort(e),r.sort(e),i.sort(e),this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function M1t(e,n,r,i,o,a,s){var l;return e<100&&e>=0?(l=new Date(e+400,n,r,i,o,a,s),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,n,r,i,o,a,s),l}function BP(e){var n,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,n=new Date(Date.UTC.apply(null,r)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(e)):n=new Date(Date.UTC.apply(null,arguments)),n}function DF(e,n,r){var i=7+n-r,o=(7+BP(e,0,i).getUTCDay()-n)%7;return-o+i-1}function TFe(e,n,r,i,o){var a=(7+r-i)%7,s=DF(e,i,o),l=1+7*(n-1)+a+s,c,u;return l<=0?(c=e-1,u=L2(c)+l):l>L2(e)?(c=e+1,u=l-L2(e)):(c=e,u=l),{year:c,dayOfYear:u}}function jP(e,n,r){var i=DF(e.year(),n,r),o=Math.floor((e.dayOfYear()-i-1)/7)+1,a,s;return o<1?(s=e.year()-1,a=o+uy(s,n,r)):o>uy(e.year(),n,r)?(a=o-uy(e.year(),n,r),s=e.year()+1):(s=e.year(),a=o),{week:a,year:s}}function uy(e,n,r){var i=DF(e,n,r),o=DF(e+1,n,r);return(L2(e)-i+o)/7}Rr("w",["ww",2],"wo","week");Rr("W",["WW",2],"Wo","isoWeek");ar("w",Ra,ZR);ar("ww",Ra,Mf);ar("W",Ra,ZR);ar("WW",Ra,Mf);nk(["w","ww","W","WW"],function(e,n,r,i){n[i.substr(0,1)]=Gi(e)});function P1t(e){return jP(e,this._week.dow,this._week.doy).week}var A1t={dow:0,doy:6};function D1t(){return this._week.dow}function k1t(){return this._week.doy}function L1t(e){var n=this.localeData().week(this);return e==null?n:this.add((e-n)*7,"d")}function $1t(e){var n=jP(this,1,4).week;return e==null?n:this.add((e-n)*7,"d")}Rr("d",0,"do","day");Rr("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Rr("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Rr("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Rr("e",0,0,"weekday");Rr("E",0,0,"isoWeekday");ar("d",Ra);ar("e",Ra);ar("E",Ra);ar("dd",function(e,n){return n.weekdaysMinRegex(e)});ar("ddd",function(e,n){return n.weekdaysShortRegex(e)});ar("dddd",function(e,n){return n.weekdaysRegex(e)});nk(["dd","ddd","dddd"],function(e,n,r,i){var o=r._locale.weekdaysParse(e,i,r._strict);o!=null?n.d=o:gi(r).invalidWeekday=e});nk(["d","e","E"],function(e,n,r,i){n[i]=Gi(e)});function F1t(e,n){return typeof e!="string"?e:isNaN(e)?(e=n.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function B1t(e,n){return typeof e=="string"?n.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Qle(e,n){return e.slice(n,7).concat(e.slice(0,n))}var j1t="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),OFe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),U1t="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),H1t=tk,z1t=tk,V1t=tk;function G1t(e,n){var r=Zh(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(n)?"format":"standalone"];return e===!0?Qle(r,this._week.dow):e?r[e.day()]:r}function W1t(e){return e===!0?Qle(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Y1t(e){return e===!0?Qle(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function q1t(e,n,r){var i,o,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=Zm([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return r?n==="dddd"?(o=ks.call(this._weekdaysParse,s),o!==-1?o:null):n==="ddd"?(o=ks.call(this._shortWeekdaysParse,s),o!==-1?o:null):(o=ks.call(this._minWeekdaysParse,s),o!==-1?o:null):n==="dddd"?(o=ks.call(this._weekdaysParse,s),o!==-1||(o=ks.call(this._shortWeekdaysParse,s),o!==-1)?o:(o=ks.call(this._minWeekdaysParse,s),o!==-1?o:null)):n==="ddd"?(o=ks.call(this._shortWeekdaysParse,s),o!==-1||(o=ks.call(this._weekdaysParse,s),o!==-1)?o:(o=ks.call(this._minWeekdaysParse,s),o!==-1?o:null)):(o=ks.call(this._minWeekdaysParse,s),o!==-1||(o=ks.call(this._weekdaysParse,s),o!==-1)?o:(o=ks.call(this._shortWeekdaysParse,s),o!==-1?o:null))}function K1t(e,n,r){var i,o,a;if(this._weekdaysParseExact)return q1t.call(this,e,n,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=Zm([2e3,1]).day(i),r&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),r&&n==="dddd"&&this._fullWeekdaysParse[i].test(e))return i;if(r&&n==="ddd"&&this._shortWeekdaysParse[i].test(e))return i;if(r&&n==="dd"&&this._minWeekdaysParse[i].test(e))return i;if(!r&&this._weekdaysParse[i].test(e))return i}}function X1t(e){if(!this.isValid())return e!=null?this:NaN;var n=FP(this,"Day");return e!=null?(e=F1t(e,this.localeData()),this.add(e-n,"d")):n}function Q1t(e){if(!this.isValid())return e!=null?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return e==null?n:this.add(e-n,"d")}function Z1t(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var n=B1t(e,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function J1t(e){return this._weekdaysParseExact?(_o(this,"_weekdaysRegex")||Zle.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(_o(this,"_weekdaysRegex")||(this._weekdaysRegex=H1t),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function eCt(e){return this._weekdaysParseExact?(_o(this,"_weekdaysRegex")||Zle.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(_o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=z1t),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function tCt(e){return this._weekdaysParseExact?(_o(this,"_weekdaysRegex")||Zle.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(_o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=V1t),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Zle(){function e(d,f){return f.length-d.length}var n=[],r=[],i=[],o=[],a,s,l,c,u;for(a=0;a<7;a++)s=Zm([2e3,1]).day(a),l=cy(this.weekdaysMin(s,"")),c=cy(this.weekdaysShort(s,"")),u=cy(this.weekdays(s,"")),n.push(l),r.push(c),i.push(u),o.push(l),o.push(c),o.push(u);n.sort(e),r.sort(e),i.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Jle(){return this.hours()%12||12}function nCt(){return this.hours()||24}Rr("H",["HH",2],0,"hour");Rr("h",["hh",2],0,Jle);Rr("k",["kk",2],0,nCt);Rr("hmm",0,0,function(){return""+Jle.apply(this)+Im(this.minutes(),2)});Rr("hmmss",0,0,function(){return""+Jle.apply(this)+Im(this.minutes(),2)+Im(this.seconds(),2)});Rr("Hmm",0,0,function(){return""+this.hours()+Im(this.minutes(),2)});Rr("Hmmss",0,0,function(){return""+this.hours()+Im(this.minutes(),2)+Im(this.seconds(),2)});function RFe(e,n){Rr(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}RFe("a",!0);RFe("A",!1);function IFe(e,n){return n._meridiemParse}ar("a",IFe);ar("A",IFe);ar("H",Ra,Kle);ar("h",Ra,ZR);ar("k",Ra,ZR);ar("HH",Ra,Mf);ar("hh",Ra,Mf);ar("kk",Ra,Mf);ar("hmm",vFe);ar("hmmss",yFe);ar("Hmm",vFe);ar("Hmmss",yFe);Xo(["H","HH"],El);Xo(["k","kk"],function(e,n,r){var i=Gi(e);n[El]=i===24?0:i});Xo(["a","A"],function(e,n,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Xo(["h","hh"],function(e,n,r){n[El]=Gi(e),gi(r).bigHour=!0});Xo("hmm",function(e,n,r){var i=e.length-2;n[El]=Gi(e.substr(0,i)),n[Ph]=Gi(e.substr(i)),gi(r).bigHour=!0});Xo("hmmss",function(e,n,r){var i=e.length-4,o=e.length-2;n[El]=Gi(e.substr(0,i)),n[Ph]=Gi(e.substr(i,2)),n[Zv]=Gi(e.substr(o)),gi(r).bigHour=!0});Xo("Hmm",function(e,n,r){var i=e.length-2;n[El]=Gi(e.substr(0,i)),n[Ph]=Gi(e.substr(i))});Xo("Hmmss",function(e,n,r){var i=e.length-4,o=e.length-2;n[El]=Gi(e.substr(0,i)),n[Ph]=Gi(e.substr(i,2)),n[Zv]=Gi(e.substr(o))});function rCt(e){return(e+"").toLowerCase().charAt(0)==="p"}var iCt=/[ap]\.?m?\.?/i,oCt=JR("Hours",!0);function aCt(e,n,r){return e>11?r?"pm":"PM":r?"am":"AM"}var NFe={calendar:qEt,longDateFormat:ZEt,invalidDate:e1t,ordinal:n1t,dayOfMonthOrdinalParse:r1t,relativeTime:o1t,months:S1t,monthsShort:SFe,week:A1t,weekdays:j1t,weekdaysMin:U1t,weekdaysShort:OFe,meridiemParse:iCt},$a={},WN={},UP;function sCt(e,n){var r,i=Math.min(e.length,n.length);for(r=0;r<i;r+=1)if(e[r]!==n[r])return r;return i}function j0e(e){return e&&e.toLowerCase().replace("_","-")}function lCt(e){for(var n=0,r,i,o,a;n<e.length;){for(a=j0e(e[n]).split("-"),r=a.length,i=j0e(e[n+1]),i=i?i.split("-"):null;r>0;){if(o=W7(a.slice(0,r).join("-")),o)return o;if(i&&i.length>=r&&sCt(a,i)>=r-1)break;r--}n++}return UP}function cCt(e){return!!(e&&e.match("^[^/\\\\]*$"))}function W7(e){var n=null,r;if($a[e]===void 0&&typeof module<"u"&&module&&module.exports&&cCt(e))try{n=UP._abbr,r=require,r("./locale/"+e),e0(n)}catch{$a[e]=null}return $a[e]}function e0(e,n){var r;return e&&(Xu(n)?r=Wy(e):r=ece(e,n),r?UP=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),UP._abbr}function ece(e,n){if(n!==null){var r,i=NFe;if(n.abbr=e,$a[e]!=null)pFe("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."),i=$a[e]._config;else if(n.parentLocale!=null)if($a[n.parentLocale]!=null)i=$a[n.parentLocale]._config;else if(r=W7(n.parentLocale),r!=null)i=r._config;else return WN[n.parentLocale]||(WN[n.parentLocale]=[]),WN[n.parentLocale].push({name:e,config:n}),null;return $a[e]=new Vle(Ene(i,n)),WN[e]&&WN[e].forEach(function(o){ece(o.name,o.config)}),e0(e),$a[e]}else return delete $a[e],null}function uCt(e,n){if(n!=null){var r,i,o=NFe;$a[e]!=null&&$a[e].parentLocale!=null?$a[e].set(Ene($a[e]._config,n)):(i=W7(e),i!=null&&(o=i._config),n=Ene(o,n),i==null&&(n.abbr=e),r=new Vle(n),r.parentLocale=$a[e],$a[e]=r),e0(e)}else $a[e]!=null&&($a[e].parentLocale!=null?($a[e]=$a[e].parentLocale,e===e0()&&e0(e)):$a[e]!=null&&delete $a[e]);return $a[e]}function Wy(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return UP;if(!Zh(e)){if(n=W7(e),n)return n;e=[e]}return lCt(e)}function dCt(){return Cne($a)}function tce(e){var n,r=e._a;return r&&gi(e).overflow===-2&&(n=r[Qv]<0||r[Qv]>11?Qv:r[im]<1||r[im]>Xle(r[Uc],r[Qv])?im:r[El]<0||r[El]>24||r[El]===24&&(r[Ph]!==0||r[Zv]!==0||r[ZE]!==0)?El:r[Ph]<0||r[Ph]>59?Ph:r[Zv]<0||r[Zv]>59?Zv:r[ZE]<0||r[ZE]>999?ZE:-1,gi(e)._overflowDayOfYear&&(n<Uc||n>im)&&(n=im),gi(e)._overflowWeeks&&n===-1&&(n=g1t),gi(e)._overflowWeekday&&n===-1&&(n=m1t),gi(e).overflow=n),e}var fCt=/^\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)?)?$/,pCt=/^\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)?)?$/,hCt=/Z|[+-]\d\d(?::?\d\d)?/,v3=[["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]],XW=[["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/]],gCt=/^\/?Date\((-?\d+)/i,mCt=/^(?:(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}))$/,vCt={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 MFe(e){var n,r,i=e._i,o=fCt.exec(i)||pCt.exec(i),a,s,l,c,u=v3.length,d=XW.length;if(o){for(gi(e).iso=!0,n=0,r=u;n<r;n++)if(v3[n][1].exec(o[1])){s=v3[n][0],a=v3[n][2]!==!1;break}if(s==null){e._isValid=!1;return}if(o[3]){for(n=0,r=d;n<r;n++)if(XW[n][1].exec(o[3])){l=(o[2]||" ")+XW[n][0];break}if(l==null){e._isValid=!1;return}}if(!a&&l!=null){e._isValid=!1;return}if(o[4])if(hCt.exec(o[4]))c="Z";else{e._isValid=!1;return}e._f=s+(l||"")+(c||""),rce(e)}else e._isValid=!1}function yCt(e,n,r,i,o,a){var s=[_Ct(e),SFe.indexOf(n),parseInt(r,10),parseInt(i,10),parseInt(o,10)];return a&&s.push(parseInt(a,10)),s}function _Ct(e){var n=parseInt(e,10);return n<=49?2e3+n:n<=999?1900+n:n}function bCt(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function SCt(e,n,r){if(e){var i=OFe.indexOf(e),o=new Date(n[0],n[1],n[2]).getDay();if(i!==o)return gi(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function ECt(e,n,r){if(e)return vCt[e];if(n)return 0;var i=parseInt(r,10),o=i%100,a=(i-o)/100;return a*60+o}function PFe(e){var n=mCt.exec(bCt(e._i)),r;if(n){if(r=yCt(n[4],n[3],n[2],n[5],n[6],n[7]),!SCt(n[1],r,e))return;e._a=r,e._tzm=ECt(n[8],n[9],n[10]),e._d=BP.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),gi(e).rfc2822=!0}else e._isValid=!1}function CCt(e){var n=gCt.exec(e._i);if(n!==null){e._d=new Date(+n[1]);return}if(MFe(e),e._isValid===!1)delete e._isValid;else return;if(PFe(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:Hn.createFromInputFallback(e)}Hn.createFromInputFallback=Fp("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 Xx(e,n,r){return e??n??r}function wCt(e){var n=new Date(Hn.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function nce(e){var n,r,i=[],o,a,s;if(!e._d){for(o=wCt(e),e._w&&e._a[im]==null&&e._a[Qv]==null&&xCt(e),e._dayOfYear!=null&&(s=Xx(e._a[Uc],o[Uc]),(e._dayOfYear>L2(s)||e._dayOfYear===0)&&(gi(e)._overflowDayOfYear=!0),r=BP(s,0,e._dayOfYear),e._a[Qv]=r.getUTCMonth(),e._a[im]=r.getUTCDate()),n=0;n<3&&e._a[n]==null;++n)e._a[n]=i[n]=o[n];for(;n<7;n++)e._a[n]=i[n]=e._a[n]==null?n===2?1:0:e._a[n];e._a[El]===24&&e._a[Ph]===0&&e._a[Zv]===0&&e._a[ZE]===0&&(e._nextDay=!0,e._a[El]=0),e._d=(e._useUTC?BP:M1t).apply(null,i),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[El]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(gi(e).weekdayMismatch=!0)}}function xCt(e){var n,r,i,o,a,s,l,c,u;n=e._w,n.GG!=null||n.W!=null||n.E!=null?(a=1,s=4,r=Xx(n.GG,e._a[Uc],jP(Ta(),1,4).year),i=Xx(n.W,1),o=Xx(n.E,1),(o<1||o>7)&&(c=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=jP(Ta(),a,s),r=Xx(n.gg,e._a[Uc],u.year),i=Xx(n.w,u.week),n.d!=null?(o=n.d,(o<0||o>6)&&(c=!0)):n.e!=null?(o=n.e+a,(n.e<0||n.e>6)&&(c=!0)):o=a),i<1||i>uy(r,a,s)?gi(e)._overflowWeeks=!0:c!=null?gi(e)._overflowWeekday=!0:(l=TFe(r,i,o,a,s),e._a[Uc]=l.year,e._dayOfYear=l.dayOfYear)}Hn.ISO_8601=function(){};Hn.RFC_2822=function(){};function rce(e){if(e._f===Hn.ISO_8601){MFe(e);return}if(e._f===Hn.RFC_2822){PFe(e);return}e._a=[],gi(e).empty=!0;var n=""+e._i,r,i,o,a,s,l=n.length,c=0,u,d;for(o=hFe(e._f,e._locale).match(Gle)||[],d=o.length,r=0;r<d;r++)a=o[r],i=(n.match(f1t(a,e))||[])[0],i&&(s=n.substr(0,n.indexOf(i)),s.length>0&&gi(e).unusedInput.push(s),n=n.slice(n.indexOf(i)+i.length),c+=i.length),AT[a]?(i?gi(e).empty=!1:gi(e).unusedTokens.push(a),h1t(a,i,e)):e._strict&&!i&&gi(e).unusedTokens.push(a);gi(e).charsLeftOver=l-c,n.length>0&&gi(e).unusedInput.push(n),e._a[El]<=12&&gi(e).bigHour===!0&&e._a[El]>0&&(gi(e).bigHour=void 0),gi(e).parsedDateParts=e._a.slice(0),gi(e).meridiem=e._meridiem,e._a[El]=TCt(e._locale,e._a[El],e._meridiem),u=gi(e).era,u!==null&&(e._a[Uc]=e._locale.erasConvertYear(u,e._a[Uc])),nce(e),tce(e)}function TCt(e,n,r){var i;return r==null?n:e.meridiemHour!=null?e.meridiemHour(n,r):(e.isPM!=null&&(i=e.isPM(r),i&&n<12&&(n+=12),!i&&n===12&&(n=0)),n)}function OCt(e){var n,r,i,o,a,s,l=!1,c=e._f.length;if(c===0){gi(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;o<c;o++)a=0,s=!1,n=zle({},e),e._useUTC!=null&&(n._useUTC=e._useUTC),n._f=e._f[o],rce(n),Hle(n)&&(s=!0),a+=gi(n).charsLeftOver,a+=gi(n).unusedTokens.length*10,gi(n).score=a,l?a<i&&(i=a,r=n):(i==null||a<i||s)&&(i=a,r=n,s&&(l=!0));Db(e,r||n)}function RCt(e){if(!e._d){var n=Wle(e._i),r=n.day===void 0?n.date:n.day;e._a=dFe([n.year,n.month,r,n.hour,n.minute,n.second,n.millisecond],function(i){return i&&parseInt(i,10)}),nce(e)}}function ICt(e){var n=new ek(tce(AFe(e)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function AFe(e){var n=e._i,r=e._f;return e._locale=e._locale||Wy(e._l),n===null||r===void 0&&n===""?B7({nullInput:!0}):(typeof n=="string"&&(e._i=n=e._locale.preparse(n)),Jh(n)?new ek(tce(n)):(JD(n)?e._d=n:Zh(r)?OCt(e):r?rce(e):NCt(e),Hle(e)||(e._d=null),e))}function NCt(e){var n=e._i;Xu(n)?e._d=new Date(Hn.now()):JD(n)?e._d=new Date(n.valueOf()):typeof n=="string"?CCt(e):Zh(n)?(e._a=dFe(n.slice(0),function(r){return parseInt(r,10)}),nce(e)):w1(n)?RCt(e):xy(n)?e._d=new Date(n):Hn.createFromInputFallback(e)}function DFe(e,n,r,i,o){var a={};return(n===!0||n===!1)&&(i=n,n=void 0),(r===!0||r===!1)&&(i=r,r=void 0),(w1(e)&&Ule(e)||Zh(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=o,a._l=r,a._i=e,a._f=n,a._strict=i,ICt(a)}function Ta(e,n,r,i){return DFe(e,n,r,i,!1)}var MCt=Fp("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ta.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:B7()}),PCt=Fp("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ta.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:B7()});function kFe(e,n){var r,i;if(n.length===1&&Zh(n[0])&&(n=n[0]),!n.length)return Ta();for(r=n[0],i=1;i<n.length;++i)(!n[i].isValid()||n[i][e](r))&&(r=n[i]);return r}function ACt(){var e=[].slice.call(arguments,0);return kFe("isBefore",e)}function DCt(){var e=[].slice.call(arguments,0);return kFe("isAfter",e)}var kCt=function(){return Date.now?Date.now():+new Date},YN=["year","quarter","month","week","day","hour","minute","second","millisecond"];function LCt(e){var n,r=!1,i,o=YN.length;for(n in e)if(_o(e,n)&&!(ks.call(YN,n)!==-1&&(e[n]==null||!isNaN(e[n]))))return!1;for(i=0;i<o;++i)if(e[YN[i]]){if(r)return!1;parseFloat(e[YN[i]])!==Gi(e[YN[i]])&&(r=!0)}return!0}function $Ct(){return this._isValid}function FCt(){return vg(NaN)}function Y7(e){var n=Wle(e),r=n.year||0,i=n.quarter||0,o=n.month||0,a=n.week||n.isoWeek||0,s=n.day||0,l=n.hour||0,c=n.minute||0,u=n.second||0,d=n.millisecond||0;this._isValid=LCt(n),this._milliseconds=+d+u*1e3+c*6e4+l*1e3*60*60,this._days=+s+a*7,this._months=+o+i*3+r*12,this._data={},this._locale=Wy(),this._bubble()}function H5(e){return e instanceof Y7}function xne(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function BCt(e,n,r){var i=Math.min(e.length,n.length),o=Math.abs(e.length-n.length),a=0,s;for(s=0;s<i;s++)Gi(e[s])!==Gi(n[s])&&a++;return a+o}function LFe(e,n){Rr(e,0,0,function(){var r=this.utcOffset(),i="+";return r<0&&(r=-r,i="-"),i+Im(~~(r/60),2)+n+Im(~~r%60,2)})}LFe("Z",":");LFe("ZZ","");ar("Z",V7);ar("ZZ",V7);Xo(["Z","ZZ"],function(e,n,r){r._useUTC=!0,r._tzm=ice(V7,e)});var jCt=/([\+\-]|\d\d)/gi;function ice(e,n){var r=(n||"").match(e),i,o,a;return r===null?null:(i=r[r.length-1]||[],o=(i+"").match(jCt)||["-",0,0],a=+(o[1]*60)+Gi(o[2]),a===0?0:o[0]==="+"?a:-a)}function oce(e,n){var r,i;return n._isUTC?(r=n.clone(),i=(Jh(e)||JD(e)?e.valueOf():Ta(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),Hn.updateOffset(r,!1),r):Ta(e).local()}function Tne(e){return-Math.round(e._d.getTimezoneOffset())}Hn.updateOffset=function(){};function UCt(e,n,r){var i=this._offset||0,o;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=ice(V7,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&n&&(o=Tne(this)),this._offset=e,this._isUTC=!0,o!=null&&this.add(o,"m"),i!==e&&(!n||this._changeInProgress?BFe(this,vg(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Hn.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?i:Tne(this)}function HCt(e,n){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,n),this):-this.utcOffset()}function zCt(e){return this.utcOffset(0,e)}function VCt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Tne(this),"m")),this}function GCt(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=ice(u1t,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function WCt(e){return this.isValid()?(e=e?Ta(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function YCt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qCt(){if(!Xu(this._isDSTShifted))return this._isDSTShifted;var e={},n;return zle(e,this),e=AFe(e),e._a?(n=e._isUTC?Zm(e._a):Ta(e._a),this._isDSTShifted=this.isValid()&&BCt(e._a,n.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function KCt(){return this.isValid()?!this._isUTC:!1}function XCt(){return this.isValid()?this._isUTC:!1}function $Fe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var QCt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ZCt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function vg(e,n){var r=e,i=null,o,a,s;return H5(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:xy(e)||!isNaN(+e)?(r={},n?r[n]=+e:r.milliseconds=+e):(i=QCt.exec(e))?(o=i[1]==="-"?-1:1,r={y:0,d:Gi(i[im])*o,h:Gi(i[El])*o,m:Gi(i[Ph])*o,s:Gi(i[Zv])*o,ms:Gi(xne(i[ZE]*1e3))*o}):(i=ZCt.exec(e))?(o=i[1]==="-"?-1:1,r={y:hE(i[2],o),M:hE(i[3],o),w:hE(i[4],o),d:hE(i[5],o),h:hE(i[6],o),m:hE(i[7],o),s:hE(i[8],o)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(s=JCt(Ta(r.from),Ta(r.to)),r={},r.ms=s.milliseconds,r.M=s.months),a=new Y7(r),H5(e)&&_o(e,"_locale")&&(a._locale=e._locale),H5(e)&&_o(e,"_isValid")&&(a._isValid=e._isValid),a}vg.fn=Y7.prototype;vg.invalid=FCt;function hE(e,n){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*n}function U0e(e,n){var r={};return r.months=n.month()-e.month()+(n.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(n)&&--r.months,r.milliseconds=+n-+e.clone().add(r.months,"M"),r}function JCt(e,n){var r;return e.isValid()&&n.isValid()?(n=oce(n,e),e.isBefore(n)?r=U0e(e,n):(r=U0e(n,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function FFe(e,n){return function(r,i){var o,a;return i!==null&&!isNaN(+i)&&(pFe(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=i,i=a),o=vg(r,i),BFe(this,o,e),this}}function BFe(e,n,r,i){var o=n._milliseconds,a=xne(n._days),s=xne(n._months);e.isValid()&&(i=i??!0,s&&CFe(e,FP(e,"Month")+s*r),a&&bFe(e,"Date",FP(e,"Date")+a*r),o&&e._d.setTime(e._d.valueOf()+o*r),i&&Hn.updateOffset(e,a||s))}var ewt=FFe(1,"add"),twt=FFe(-1,"subtract");function jFe(e){return typeof e=="string"||e instanceof String}function nwt(e){return Jh(e)||JD(e)||jFe(e)||xy(e)||iwt(e)||rwt(e)||e===null||e===void 0}function rwt(e){var n=w1(e)&&!Ule(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,a,s=i.length;for(o=0;o<s;o+=1)a=i[o],r=r||_o(e,a);return n&&r}function iwt(e){var n=Zh(e),r=!1;return n&&(r=e.filter(function(i){return!xy(i)&&jFe(e)}).length===0),n&&r}function owt(e){var n=w1(e)&&!Ule(e),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],o,a;for(o=0;o<i.length;o+=1)a=i[o],r=r||_o(e,a);return n&&r}function awt(e,n){var r=e.diff(n,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function swt(e,n){arguments.length===1&&(arguments[0]?nwt(arguments[0])?(e=arguments[0],n=void 0):owt(arguments[0])&&(n=arguments[0],e=void 0):(e=void 0,n=void 0));var r=e||Ta(),i=oce(r,this).startOf("day"),o=Hn.calendarFormat(this,i)||"sameElse",a=n&&(Jm(n[o])?n[o].call(this,r):n[o]);return this.format(a||this.localeData().calendar(o,this,Ta(r)))}function lwt(){return new ek(this)}function cwt(e,n){var r=Jh(e)?e:Ta(e);return this.isValid()&&r.isValid()?(n=Bp(n)||"millisecond",n==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(n).valueOf()):!1}function uwt(e,n){var r=Jh(e)?e:Ta(e);return this.isValid()&&r.isValid()?(n=Bp(n)||"millisecond",n==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(n).valueOf()<r.valueOf()):!1}function dwt(e,n,r,i){var o=Jh(e)?e:Ta(e),a=Jh(n)?n:Ta(n);return this.isValid()&&o.isValid()&&a.isValid()?(i=i||"()",(i[0]==="("?this.isAfter(o,r):!this.isBefore(o,r))&&(i[1]===")"?this.isBefore(a,r):!this.isAfter(a,r))):!1}function fwt(e,n){var r=Jh(e)?e:Ta(e),i;return this.isValid()&&r.isValid()?(n=Bp(n)||"millisecond",n==="millisecond"?this.valueOf()===r.valueOf():(i=r.valueOf(),this.clone().startOf(n).valueOf()<=i&&i<=this.clone().endOf(n).valueOf())):!1}function pwt(e,n){return this.isSame(e,n)||this.isAfter(e,n)}function hwt(e,n){return this.isSame(e,n)||this.isBefore(e,n)}function gwt(e,n,r){var i,o,a;if(!this.isValid())return NaN;if(i=oce(e,this),!i.isValid())return NaN;switch(o=(i.utcOffset()-this.utcOffset())*6e4,n=Bp(n),n){case"year":a=z5(this,i)/12;break;case"month":a=z5(this,i);break;case"quarter":a=z5(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-o)/864e5;break;case"week":a=(this-i-o)/6048e5;break;default:a=this-i}return r?a:sp(a)}function z5(e,n){if(e.date()<n.date())return-z5(n,e);var r=(n.year()-e.year())*12+(n.month()-e.month()),i=e.clone().add(r,"months"),o,a;return n-i<0?(o=e.clone().add(r-1,"months"),a=(n-i)/(i-o)):(o=e.clone().add(r+1,"months"),a=(n-i)/(o-i)),-(r+a)||0}Hn.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Hn.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function mwt(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function vwt(e){if(!this.isValid())return null;var n=e!==!0,r=n?this.clone().utc():this;return r.year()<0||r.year()>9999?U5(r,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Jm(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",U5(r,"Z")):U5(r,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ywt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",n="",r,i,o,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",n="Z"),r="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",a=n+'[")]',this.format(r+i+o+a)}function _wt(e){e||(e=this.isUtc()?Hn.defaultFormatUtc:Hn.defaultFormat);var n=U5(this,e);return this.localeData().postformat(n)}function bwt(e,n){return this.isValid()&&(Jh(e)&&e.isValid()||Ta(e).isValid())?vg({to:this,from:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function Swt(e){return this.from(Ta(),e)}function Ewt(e,n){return this.isValid()&&(Jh(e)&&e.isValid()||Ta(e).isValid())?vg({from:this,to:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function Cwt(e){return this.to(Ta(),e)}function UFe(e){var n;return e===void 0?this._locale._abbr:(n=Wy(e),n!=null&&(this._locale=n),this)}var HFe=Fp("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 zFe(){return this._locale}var kF=1e3,DT=60*kF,LF=60*DT,VFe=(365*400+97)*24*LF;function kT(e,n){return(e%n+n)%n}function GFe(e,n,r){return e<100&&e>=0?new Date(e+400,n,r)-VFe:new Date(e,n,r).valueOf()}function WFe(e,n,r){return e<100&&e>=0?Date.UTC(e+400,n,r)-VFe:Date.UTC(e,n,r)}function wwt(e){var n,r;if(e=Bp(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?WFe:GFe,e){case"year":n=r(this.year(),0,1);break;case"quarter":n=r(this.year(),this.month()-this.month()%3,1);break;case"month":n=r(this.year(),this.month(),1);break;case"week":n=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=r(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=kT(n+(this._isUTC?0:this.utcOffset()*DT),LF);break;case"minute":n=this._d.valueOf(),n-=kT(n,DT);break;case"second":n=this._d.valueOf(),n-=kT(n,kF);break}return this._d.setTime(n),Hn.updateOffset(this,!0),this}function xwt(e){var n,r;if(e=Bp(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?WFe:GFe,e){case"year":n=r(this.year()+1,0,1)-1;break;case"quarter":n=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=r(this.year(),this.month()+1,1)-1;break;case"week":n=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=LF-kT(n+(this._isUTC?0:this.utcOffset()*DT),LF)-1;break;case"minute":n=this._d.valueOf(),n+=DT-kT(n,DT)-1;break;case"second":n=this._d.valueOf(),n+=kF-kT(n,kF)-1;break}return this._d.setTime(n),Hn.updateOffset(this,!0),this}function Twt(){return this._d.valueOf()-(this._offset||0)*6e4}function Owt(){return Math.floor(this.valueOf()/1e3)}function Rwt(){return new Date(this.valueOf())}function Iwt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Nwt(){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 Mwt(){return this.isValid()?this.toISOString():null}function Pwt(){return Hle(this)}function Awt(){return Db({},gi(this))}function Dwt(){return gi(this).overflow}function kwt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Rr("N",0,0,"eraAbbr");Rr("NN",0,0,"eraAbbr");Rr("NNN",0,0,"eraAbbr");Rr("NNNN",0,0,"eraName");Rr("NNNNN",0,0,"eraNarrow");Rr("y",["y",1],"yo","eraYear");Rr("y",["yy",2],0,"eraYear");Rr("y",["yyy",3],0,"eraYear");Rr("y",["yyyy",4],0,"eraYear");ar("N",ace);ar("NN",ace);ar("NNN",ace);ar("NNNN",Wwt);ar("NNNNN",Ywt);Xo(["N","NN","NNN","NNNN","NNNNN"],function(e,n,r,i){var o=r._locale.erasParse(e,i,r._strict);o?gi(r).era=o:gi(r).invalidEra=e});ar("y",QR);ar("yy",QR);ar("yyy",QR);ar("yyyy",QR);ar("yo",qwt);Xo(["y","yy","yyy","yyyy"],Uc);Xo(["yo"],function(e,n,r,i){var o;r._locale._eraYearOrdinalRegex&&(o=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?n[Uc]=r._locale.eraYearOrdinalParse(e,o):n[Uc]=parseInt(e,10)});function Lwt(e,n){var r,i,o,a=this._eras||Wy("en")._eras;for(r=0,i=a.length;r<i;++r){switch(typeof a[r].since){case"string":o=Hn(a[r].since).startOf("day"),a[r].since=o.valueOf();break}switch(typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":o=Hn(a[r].until).startOf("day").valueOf(),a[r].until=o.valueOf();break}}return a}function $wt(e,n,r){var i,o,a=this.eras(),s,l,c;for(e=e.toUpperCase(),i=0,o=a.length;i<o;++i)if(s=a[i].name.toUpperCase(),l=a[i].abbr.toUpperCase(),c=a[i].narrow.toUpperCase(),r)switch(n){case"N":case"NN":case"NNN":if(l===e)return a[i];break;case"NNNN":if(s===e)return a[i];break;case"NNNNN":if(c===e)return a[i];break}else if([s,l,c].indexOf(e)>=0)return a[i]}function Fwt(e,n){var r=e.since<=e.until?1:-1;return n===void 0?Hn(e.since).year():Hn(e.since).year()+(n-e.offset)*r}function Bwt(){var e,n,r,i=this.localeData().eras();for(e=0,n=i.length;e<n;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].name;return""}function jwt(){var e,n,r,i=this.localeData().eras();for(e=0,n=i.length;e<n;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].narrow;return""}function Uwt(){var e,n,r,i=this.localeData().eras();for(e=0,n=i.length;e<n;++e)if(r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return i[e].abbr;return""}function Hwt(){var e,n,r,i,o=this.localeData().eras();for(e=0,n=o.length;e<n;++e)if(r=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-Hn(o[e].since).year())*r+o[e].offset;return this.year()}function zwt(e){return _o(this,"_erasNameRegex")||sce.call(this),e?this._erasNameRegex:this._erasRegex}function Vwt(e){return _o(this,"_erasAbbrRegex")||sce.call(this),e?this._erasAbbrRegex:this._erasRegex}function Gwt(e){return _o(this,"_erasNarrowRegex")||sce.call(this),e?this._erasNarrowRegex:this._erasRegex}function ace(e,n){return n.erasAbbrRegex(e)}function Wwt(e,n){return n.erasNameRegex(e)}function Ywt(e,n){return n.erasNarrowRegex(e)}function qwt(e,n){return n._eraYearOrdinalRegex||QR}function sce(){var e=[],n=[],r=[],i=[],o,a,s,l,c,u=this.eras();for(o=0,a=u.length;o<a;++o)s=cy(u[o].name),l=cy(u[o].abbr),c=cy(u[o].narrow),n.push(s),e.push(l),r.push(c),i.push(s),i.push(l),i.push(c);this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}Rr(0,["gg",2],0,function(){return this.weekYear()%100});Rr(0,["GG",2],0,function(){return this.isoWeekYear()%100});function q7(e,n){Rr(0,[e,e.length],0,n)}q7("gggg","weekYear");q7("ggggg","weekYear");q7("GGGG","isoWeekYear");q7("GGGGG","isoWeekYear");ar("G",z7);ar("g",z7);ar("GG",Ra,Mf);ar("gg",Ra,Mf);ar("GGGG",qle,Yle);ar("gggg",qle,Yle);ar("GGGGG",H7,j7);ar("ggggg",H7,j7);nk(["gggg","ggggg","GGGG","GGGGG"],function(e,n,r,i){n[i.substr(0,2)]=Gi(e)});nk(["gg","GG"],function(e,n,r,i){n[i]=Hn.parseTwoDigitYear(e)});function Kwt(e){return YFe.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Xwt(e){return YFe.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Qwt(){return uy(this.year(),1,4)}function Zwt(){return uy(this.isoWeekYear(),1,4)}function Jwt(){var e=this.localeData()._week;return uy(this.year(),e.dow,e.doy)}function ext(){var e=this.localeData()._week;return uy(this.weekYear(),e.dow,e.doy)}function YFe(e,n,r,i,o){var a;return e==null?jP(this,i,o).year:(a=uy(e,i,o),n>a&&(n=a),txt.call(this,e,n,r,i,o))}function txt(e,n,r,i,o){var a=TFe(e,n,r,i,o),s=BP(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Rr("Q",0,"Qo","quarter");ar("Q",gFe);Xo("Q",function(e,n){n[Qv]=(Gi(e)-1)*3});function nxt(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Rr("D",["DD",2],"Do","date");ar("D",Ra,ZR);ar("DD",Ra,Mf);ar("Do",function(e,n){return e?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient});Xo(["D","DD"],im);Xo("Do",function(e,n){n[im]=Gi(e.match(Ra)[0])});var qFe=JR("Date",!0);Rr("DDD",["DDDD",3],"DDDo","dayOfYear");ar("DDD",U7);ar("DDDD",mFe);Xo(["DDD","DDDD"],function(e,n,r){r._dayOfYear=Gi(e)});function rxt(e){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?n:this.add(e-n,"d")}Rr("m",["mm",2],0,"minute");ar("m",Ra,Kle);ar("mm",Ra,Mf);Xo(["m","mm"],Ph);var ixt=JR("Minutes",!1);Rr("s",["ss",2],0,"second");ar("s",Ra,Kle);ar("ss",Ra,Mf);Xo(["s","ss"],Zv);var oxt=JR("Seconds",!1);Rr("S",0,0,function(){return~~(this.millisecond()/100)});Rr(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Rr(0,["SSS",3],0,"millisecond");Rr(0,["SSSS",4],0,function(){return this.millisecond()*10});Rr(0,["SSSSS",5],0,function(){return this.millisecond()*100});Rr(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Rr(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Rr(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Rr(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ar("S",U7,gFe);ar("SS",U7,Mf);ar("SSS",U7,mFe);var kb,KFe;for(kb="SSSS";kb.length<=9;kb+="S")ar(kb,QR);function axt(e,n){n[ZE]=Gi(("0."+e)*1e3)}for(kb="S";kb.length<=9;kb+="S")Xo(kb,axt);KFe=JR("Milliseconds",!1);Rr("z",0,0,"zoneAbbr");Rr("zz",0,0,"zoneName");function sxt(){return this._isUTC?"UTC":""}function lxt(){return this._isUTC?"Coordinated Universal Time":""}var kn=ek.prototype;kn.add=ewt;kn.calendar=swt;kn.clone=lwt;kn.diff=gwt;kn.endOf=xwt;kn.format=_wt;kn.from=bwt;kn.fromNow=Swt;kn.to=Ewt;kn.toNow=Cwt;kn.get=y1t;kn.invalidAt=Dwt;kn.isAfter=cwt;kn.isBefore=uwt;kn.isBetween=dwt;kn.isSame=fwt;kn.isSameOrAfter=pwt;kn.isSameOrBefore=hwt;kn.isValid=Pwt;kn.lang=HFe;kn.locale=UFe;kn.localeData=zFe;kn.max=PCt;kn.min=MCt;kn.parsingFlags=Awt;kn.set=_1t;kn.startOf=wwt;kn.subtract=twt;kn.toArray=Iwt;kn.toObject=Nwt;kn.toDate=Rwt;kn.toISOString=vwt;kn.inspect=ywt;typeof Symbol<"u"&&Symbol.for!=null&&(kn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});kn.toJSON=Mwt;kn.toString=mwt;kn.unix=Owt;kn.valueOf=Twt;kn.creationData=kwt;kn.eraName=Bwt;kn.eraNarrow=jwt;kn.eraAbbr=Uwt;kn.eraYear=Hwt;kn.year=_Fe;kn.isLeapYear=v1t;kn.weekYear=Kwt;kn.isoWeekYear=Xwt;kn.quarter=kn.quarters=nxt;kn.month=wFe;kn.daysInMonth=R1t;kn.week=kn.weeks=L1t;kn.isoWeek=kn.isoWeeks=$1t;kn.weeksInYear=Jwt;kn.weeksInWeekYear=ext;kn.isoWeeksInYear=Qwt;kn.isoWeeksInISOWeekYear=Zwt;kn.date=qFe;kn.day=kn.days=X1t;kn.weekday=Q1t;kn.isoWeekday=Z1t;kn.dayOfYear=rxt;kn.hour=kn.hours=oCt;kn.minute=kn.minutes=ixt;kn.second=kn.seconds=oxt;kn.millisecond=kn.milliseconds=KFe;kn.utcOffset=UCt;kn.utc=zCt;kn.local=VCt;kn.parseZone=GCt;kn.hasAlignedHourOffset=WCt;kn.isDST=YCt;kn.isLocal=KCt;kn.isUtcOffset=XCt;kn.isUtc=$Fe;kn.isUTC=$Fe;kn.zoneAbbr=sxt;kn.zoneName=lxt;kn.dates=Fp("dates accessor is deprecated. Use date instead.",qFe);kn.months=Fp("months accessor is deprecated. Use month instead",wFe);kn.years=Fp("years accessor is deprecated. Use year instead",_Fe);kn.zone=Fp("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",HCt);kn.isDSTShifted=Fp("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",qCt);function cxt(e){return Ta(e*1e3)}function uxt(){return Ta.apply(null,arguments).parseZone()}function XFe(e){return e}var So=Vle.prototype;So.calendar=KEt;So.longDateFormat=JEt;So.invalidDate=t1t;So.ordinal=i1t;So.preparse=XFe;So.postformat=XFe;So.relativeTime=a1t;So.pastFuture=s1t;So.set=YEt;So.eras=Lwt;So.erasParse=$wt;So.erasConvertYear=Fwt;So.erasAbbrRegex=Vwt;So.erasNameRegex=zwt;So.erasNarrowRegex=Gwt;So.months=w1t;So.monthsShort=x1t;So.monthsParse=O1t;So.monthsRegex=N1t;So.monthsShortRegex=I1t;So.week=P1t;So.firstDayOfYear=k1t;So.firstDayOfWeek=D1t;So.weekdays=G1t;So.weekdaysMin=Y1t;So.weekdaysShort=W1t;So.weekdaysParse=K1t;So.weekdaysRegex=J1t;So.weekdaysShortRegex=eCt;So.weekdaysMinRegex=tCt;So.isPM=rCt;So.meridiem=aCt;function $F(e,n,r,i){var o=Wy(),a=Zm().set(i,n);return o[r](a,e)}function QFe(e,n,r){if(xy(e)&&(n=e,e=void 0),e=e||"",n!=null)return $F(e,n,r,"month");var i,o=[];for(i=0;i<12;i++)o[i]=$F(e,i,r,"month");return o}function lce(e,n,r,i){typeof e=="boolean"?(xy(n)&&(r=n,n=void 0),n=n||""):(n=e,r=n,e=!1,xy(n)&&(r=n,n=void 0),n=n||"");var o=Wy(),a=e?o._week.dow:0,s,l=[];if(r!=null)return $F(n,(r+a)%7,i,"day");for(s=0;s<7;s++)l[s]=$F(n,(s+a)%7,i,"day");return l}function dxt(e,n){return QFe(e,n,"months")}function fxt(e,n){return QFe(e,n,"monthsShort")}function pxt(e,n,r){return lce(e,n,r,"weekdays")}function hxt(e,n,r){return lce(e,n,r,"weekdaysShort")}function gxt(e,n,r){return lce(e,n,r,"weekdaysMin")}e0("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 n=e%10,r=Gi(e%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return e+r}});Hn.lang=Fp("moment.lang is deprecated. Use moment.locale instead.",e0);Hn.langData=Fp("moment.langData is deprecated. Use moment.localeData instead.",Wy);var wv=Math.abs;function mxt(){var e=this._data;return this._milliseconds=wv(this._milliseconds),this._days=wv(this._days),this._months=wv(this._months),e.milliseconds=wv(e.milliseconds),e.seconds=wv(e.seconds),e.minutes=wv(e.minutes),e.hours=wv(e.hours),e.months=wv(e.months),e.years=wv(e.years),this}function ZFe(e,n,r,i){var o=vg(n,r);return e._milliseconds+=i*o._milliseconds,e._days+=i*o._days,e._months+=i*o._months,e._bubble()}function vxt(e,n){return ZFe(this,e,n,1)}function yxt(e,n){return ZFe(this,e,n,-1)}function H0e(e){return e<0?Math.floor(e):Math.ceil(e)}function _xt(){var e=this._milliseconds,n=this._days,r=this._months,i=this._data,o,a,s,l,c;return e>=0&&n>=0&&r>=0||e<=0&&n<=0&&r<=0||(e+=H0e(One(r)+n)*864e5,n=0,r=0),i.milliseconds=e%1e3,o=sp(e/1e3),i.seconds=o%60,a=sp(o/60),i.minutes=a%60,s=sp(a/60),i.hours=s%24,n+=sp(s/24),c=sp(JFe(n)),r+=c,n-=H0e(One(c)),l=sp(r/12),r%=12,i.days=n,i.months=r,i.years=l,this}function JFe(e){return e*4800/146097}function One(e){return e*146097/4800}function bxt(e){if(!this.isValid())return NaN;var n,r,i=this._milliseconds;if(e=Bp(e),e==="month"||e==="quarter"||e==="year")switch(n=this._days+i/864e5,r=this._months+JFe(n),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(n=this._days+Math.round(One(this._months)),e){case"week":return n/7+i/6048e5;case"day":return n+i/864e5;case"hour":return n*24+i/36e5;case"minute":return n*1440+i/6e4;case"second":return n*86400+i/1e3;case"millisecond":return Math.floor(n*864e5)+i;default:throw new Error("Unknown unit "+e)}}function Yy(e){return function(){return this.as(e)}}var e8e=Yy("ms"),Sxt=Yy("s"),Ext=Yy("m"),Cxt=Yy("h"),wxt=Yy("d"),xxt=Yy("w"),Txt=Yy("M"),Oxt=Yy("Q"),Rxt=Yy("y"),Ixt=e8e;function Nxt(){return vg(this)}function Mxt(e){return e=Bp(e),this.isValid()?this[e+"s"]():NaN}function KC(e){return function(){return this.isValid()?this._data[e]:NaN}}var Pxt=KC("milliseconds"),Axt=KC("seconds"),Dxt=KC("minutes"),kxt=KC("hours"),Lxt=KC("days"),$xt=KC("months"),Fxt=KC("years");function Bxt(){return sp(this.days()/7)}var Bv=Math.round,rT={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function jxt(e,n,r,i,o){return o.relativeTime(n||1,!!r,e,i)}function Uxt(e,n,r,i){var o=vg(e).abs(),a=Bv(o.as("s")),s=Bv(o.as("m")),l=Bv(o.as("h")),c=Bv(o.as("d")),u=Bv(o.as("M")),d=Bv(o.as("w")),f=Bv(o.as("y")),p=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||s<=1&&["m"]||s<r.m&&["mm",s]||l<=1&&["h"]||l<r.h&&["hh",l]||c<=1&&["d"]||c<r.d&&["dd",c];return r.w!=null&&(p=p||d<=1&&["w"]||d<r.w&&["ww",d]),p=p||u<=1&&["M"]||u<r.M&&["MM",u]||f<=1&&["y"]||["yy",f],p[2]=n,p[3]=+e>0,p[4]=i,jxt.apply(null,p)}function Hxt(e){return e===void 0?Bv:typeof e=="function"?(Bv=e,!0):!1}function zxt(e,n){return rT[e]===void 0?!1:n===void 0?rT[e]:(rT[e]=n,e==="s"&&(rT.ss=n-1),!0)}function Vxt(e,n){if(!this.isValid())return this.localeData().invalidDate();var r=!1,i=rT,o,a;return typeof e=="object"&&(n=e,e=!1),typeof e=="boolean"&&(r=e),typeof n=="object"&&(i=Object.assign({},rT,n),n.s!=null&&n.ss==null&&(i.ss=n.s-1)),o=this.localeData(),a=Uxt(this,!r,i,o),r&&(a=o.pastFuture(+this,a)),o.postformat(a)}var QW=Math.abs;function dx(e){return(e>0)-(e<0)||+e}function K7(){if(!this.isValid())return this.localeData().invalidDate();var e=QW(this._milliseconds)/1e3,n=QW(this._days),r=QW(this._months),i,o,a,s,l=this.asSeconds(),c,u,d,f;return l?(i=sp(e/60),o=sp(i/60),e%=60,i%=60,a=sp(r/12),r%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",u=dx(this._months)!==dx(l)?"-":"",d=dx(this._days)!==dx(l)?"-":"",f=dx(this._milliseconds)!==dx(l)?"-":"",c+"P"+(a?u+a+"Y":"")+(r?u+r+"M":"")+(n?d+n+"D":"")+(o||i||e?"T":"")+(o?f+o+"H":"")+(i?f+i+"M":"")+(e?f+s+"S":"")):"P0D"}var lo=Y7.prototype;lo.isValid=$Ct;lo.abs=mxt;lo.add=vxt;lo.subtract=yxt;lo.as=bxt;lo.asMilliseconds=e8e;lo.asSeconds=Sxt;lo.asMinutes=Ext;lo.asHours=Cxt;lo.asDays=wxt;lo.asWeeks=xxt;lo.asMonths=Txt;lo.asQuarters=Oxt;lo.asYears=Rxt;lo.valueOf=Ixt;lo._bubble=_xt;lo.clone=Nxt;lo.get=Mxt;lo.milliseconds=Pxt;lo.seconds=Axt;lo.minutes=Dxt;lo.hours=kxt;lo.days=Lxt;lo.weeks=Bxt;lo.months=$xt;lo.years=Fxt;lo.humanize=Vxt;lo.toISOString=K7;lo.toString=K7;lo.toJSON=K7;lo.locale=UFe;lo.localeData=zFe;lo.toIsoString=Fp("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",K7);lo.lang=HFe;Rr("X",0,0,"unix");Rr("x",0,0,"valueOf");ar("x",z7);ar("X",d1t);Xo("X",function(e,n,r){r._d=new Date(parseFloat(e)*1e3)});Xo("x",function(e,n,r){r._d=new Date(Gi(e))});//! moment.js
Hn.version="2.30.1";GEt(Ta);Hn.fn=kn;Hn.min=ACt;Hn.max=DCt;Hn.now=kCt;Hn.utc=Zm;Hn.unix=cxt;Hn.months=dxt;Hn.isDate=JD;Hn.locale=e0;Hn.invalid=B7;Hn.duration=vg;Hn.isMoment=Jh;Hn.weekdays=pxt;Hn.parseZone=uxt;Hn.localeData=Wy;Hn.isDuration=H5;Hn.monthsShort=fxt;Hn.weekdaysMin=gxt;Hn.defineLocale=ece;Hn.updateLocale=uCt;Hn.locales=dCt;Hn.weekdaysShort=hxt;Hn.normalizeUnits=Bp;Hn.relativeTimeRounding=Hxt;Hn.relativeTimeThreshold=zxt;Hn.calendarFormat=awt;Hn.prototype=kn;Hn.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 y3;const Gxt=new Uint8Array(16);function Wxt(){if(!y3&&(y3=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!y3))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return y3(Gxt)}const ac=[];for(let e=0;e<256;++e)ac.push((e+256).toString(16).slice(1));function Yxt(e,n=0){return ac[e[n+0]]+ac[e[n+1]]+ac[e[n+2]]+ac[e[n+3]]+"-"+ac[e[n+4]]+ac[e[n+5]]+"-"+ac[e[n+6]]+ac[e[n+7]]+"-"+ac[e[n+8]]+ac[e[n+9]]+"-"+ac[e[n+10]]+ac[e[n+11]]+ac[e[n+12]]+ac[e[n+13]]+ac[e[n+14]]+ac[e[n+15]]}const qxt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),z0e={randomUUID:qxt};function t8e(e,n,r){if(z0e.randomUUID&&!n&&!e)return z0e.randomUUID();e=e||{};const i=e.random||(e.rng||Wxt)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Yxt(i)}const Kxt="1.1.9";function Xxt(){return Kxt}function Qxt(){const e=localStorage.getItem(O5);(e===null||e==="true")&&new Audio(Wyt).play()}function Zxt(){return Hn().format("YYYY-MM-DD HH:mm:ss")}function X7(){return t8e().replaceAll(/-/g,"")}function fx(e){return e.endsWith("/")?e.slice(0,-1):e}function V0e(e,n){return e.length>n?e.slice(0,n-3)+"...":e}function Jxt(e){if(Zyt===e||Jyt===e||e_t===e||t_t===e||n_t===e)return!0}function eTt(e){return e===kP||e===LP}function tTt(e){return e===kP||e===LP}function nTt(e){return e.startsWith(c_t)}function n8e(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHubhttps://github.com/bytedesk/bytedesk")}const ev=Ru()(Lp(Ed($p(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(n){e({currentOrg:n})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:xyt}))),Ah=Ru()(Lp(Ed($p((e,n)=>({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(r){var o,a;if(r.status===bbe)return n().addQueuingThread(r),0;if(n().threads.some(s=>s.topic===r.topic))if(((o=n().currentThread)==null?void 0:o.topic)===""||((a=n().currentThread)==null?void 0:a.topic)!==r.topic){for(let s=0;s<n().threads.length;s++){const l=n().threads[s];l.topic===r.topic&&(r.unreadCount=l.unreadCount+1,r.top=l.top,r.mute=l.mute,r.unread=l.unread,r.agent=l.agent)}return e({threads:[r,...n().threads.filter(s=>s.topic!==r.topic)]}),r.unreadCount}else{const s=n().threads.map(l=>l.topic===r.topic?(r.top=l.top,r.mute=l.mute,r.unread=l.unread,r.agent=l.agent,r):l);return e({threads:s}),0}else return r.unreadCount=1,e({threads:[r,...n().threads]}),r.unreadCount},addThreadWithMessage(r,i){var l,c;if(i.type===Qyt)return n().addQueuingThread(r),0;const o=n().threads.some(u=>u.topic===r.topic),a=!eTt(i.type);if(tTt(i.type)&&(r.status=Sbe),o)if(((l=n().currentThread)==null?void 0:l.topic)===""||((c=n().currentThread)==null?void 0:c.topic)!==r.topic){for(let u=0;u<n().threads.length;u++){const d=n().threads[u];d.topic===r.topic&&(a&&(r.unreadCount=d.unreadCount+1),r.top=d.top,r.mute=d.mute,r.unread=d.unread,r.agent=d.agent)}return e({threads:[r,...n().threads.filter(u=>u.topic!==r.topic)]}),r.unreadCount}else{const u=n().threads.map(d=>d.topic===r.topic?(r.top=d.top,r.mute=d.mute,r.unread=d.unread,r.agent=d.agent,r):d);return e({threads:u}),0}else return a&&(r.unreadCount=1),e({threads:[r,...n().threads]}),r.unreadCount},addQueuingThread(r){n().queuingThreads.some(o=>o.topic===r.topic)||e({queuingThreads:[r,...n().queuingThreads]})},updateThreadContent(r,i){let o=null;const a=n().threads.map(s=>s.topic===r?(o={...s,unreadCount:s.unreadCount+1,content:i},o):s);return e({threads:a}),o},updateThreadStatus(r,i){let o=null;const a=n().threads.map(s=>s.topic===r?(o={...s,status:i},o):s);return e({threads:a}),o},removeThread(r){e({threads:[...n().threads.filter(i=>(i==null?void 0:i.uid)!==(r==null?void 0:r.uid))]})},closeThread(r){const i=n().threads.map(o=>o.topic===r?{...o,state:Sbe}:o);e({threads:i})},addThreads(r){for(let i=0;i<r.length;i++){const o=r[i];if(o.status===bbe){n().addQueuingThread(o);continue}if(!n().threads.some(s=>s.topic===o.topic))e({threads:[...n().threads,o]});else{const s=n().threads.map(l=>l.topic===o.topic?{...o,unreadCount:l.unreadCount}:l);e({threads:s})}}},setThreads(r){e(i=>{i.threads=r})},setQueuingThreads(r){e(i=>{i.queuingThreads=r})},setCurrentThread(r){e(a=>{a.showQueueList=!1});const i={...r,unreadCount:0},o=n().threads.map(a=>a.topic===i.topic?i:a);e(a=>{a.currentThread=i,a.threads=o})},setCurrentQueuingThread(r){e(i=>{i.currentQueuingThread=r})},setThreadResult(r){e(i=>{i.threadResult=r})},getUnreadCount(){return n().threads.reduce((r,i)=>{var o;return i.unreadCount>0&&i.topic!==((o=n().currentThread)==null?void 0:o.topic)?r+i.unreadCount:r},0)},setShowQueueButton(r){e(i=>{i.showQueueButton=r})},setShowQueueList(r){e(i=>{i.showQueueList=r,i.showRightPanel=!1})},setShowRightPanel(r){e(i=>{i.showRightPanel=r})},resetThreads(){e(r=>{r.threads=[],r.queuingThreads=[],r.currentThread={uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},r.currentQueuingThread={uid:"",user:{uid:"",nickname:"",avatar:""}},r.threadResult={data:{content:[],last:!0}},r.showQueueButton=!1,r.showQueueList=!1,r.showRightPanel=!1})},setLoading:r=>e({loading:r}),setError:r=>e({error:r}),setSearchText:r=>e({searchText:r}),setFilter:(r,i)=>e(o=>{o.filters[r]=i}),clearFilters:()=>e({filters:{}}),refreshThreads:async()=>{const{currentOrg:r}=ev.getState();if(r!=null&&r.uid){const{threadService:i}=await VEt(async()=>{const{threadService:o}=await import("./threadService-DH2gIY_A.js");return{threadService:o}},[]);await i.loadThreads(r.uid)}},setPagination:r=>e({pagination:r})})),{name:Myt}))),qy=Ru()(Lp(Ed($p((e,n)=>({messageList:[],addMessage(r){if(n().messageList.some(o=>o.uid===r.uid)){if(r.type===DP){const a=n().messageList.findIndex(s=>s.type===DP&&s.uid===r.uid);if(a!==-1){const s=[...n().messageList];s[a].content+=r.content,e({messageList:s});return}}const o=n().messageList.findIndex(a=>a.uid===r.uid);if(o!==-1){const a=[...n().messageList];a[o]=r,e({messageList:a})}}else{const o=n().messageList[n().messageList.length-1];if(o&&r.type===Fee&&o.type===Fee){const a=n().messageList.findIndex(l=>l.uid===o.uid),s=[...n().messageList];s[a]=r,e({messageList:s})}else e({messageList:[...n().messageList,r]})}n().sortMessageList()},addMessageList(r){const i=[];for(let a=0;a<r.length;a++){const s=r[a];n().messageList.some(c=>c.uid===s.uid)||i.unshift(s)}const o=[...i,...n().messageList].sort((a,s)=>{const l=Hn(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),c=Hn(s.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return l-c});console.log("sortedMessageList",o),e({messageList:o})},updateMessageStatus(r,i){const o=n().messageList.findIndex(a=>a.uid===r);if(o!==-1){const a=[...n().messageList];a[o].status=i,e({messageList:a})}},updateMessage(r){const i=n().messageList.findIndex(o=>o.uid===r.uid);if(i!==-1){const o=[...n().messageList];o[i].content=r.content,e({messageList:o})}else console.log("找不到该消息")},deleteMessage(r){const i=n().messageList.findIndex(o=>o.uid===r);if(i!==-1){const o=[...n().messageList];o.splice(i,1),e({messageList:o})}},recallMessage(r){const i=n().messageList.findIndex(o=>o.uid===r);if(i!==-1){const o=[...n().messageList];o[i].type=D4e,o[i].content="该消息已被撤回",e({messageList:o})}},sortMessageList(){const r=n().messageList.sort((i,o)=>{const a=Hn(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),s=Hn(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return a-s});e({messageList:r})},resetMessageList(){e({messageList:[]})}})),{name:Oyt}))),ws=Ru()(Lp(Ed($p((e,n)=>({userInfo:{uid:"",nickname:"",avatar:""},deviceUid:"",setUserInfo:r=>{e({userInfo:r})},setDeviceUid(r){e({deviceUid:r})},resetUserInfo(){e({userInfo:{uid:n().userInfo.uid,nickname:"",avatar:""}})}})),{name:Iyt}))),XC=Ru()(Lp(Ed($p((e,n)=>({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""},insertAgent(r){e(i=>{i.agentResult.data.content.unshift(r)})},updateAgent(r){e(i=>{const o=i.agentResult.data.content,a=o.findIndex(s=>s.uid===r.uid);a!==-1?o[a]=r:console.warn(`Agent with uid ${r.uid} not found.`)})},deleteAgent(r){e(i=>{const o=i.agentResult.data.content,a=o.findIndex(s=>s.uid===r.uid);a!==-1?o.splice(a,1):console.warn(`Agent with uid ${r.uid} not found.`)})},setAgentResult:r=>{e({agentResult:r})},setAgentInfo(r){e({agentInfo:r})},deleteAgentInfo(r){const i=n().agentResult.data.content,o=i.findIndex(a=>a.uid===r);o!==-1?e({agentResult:{...n().agentResult,data:{content:[...i.slice(0,o),...i.slice(o+1)]}}}):console.warn("Agent not found in cache:",r),n().agentInfo.uid===r&&e({agentInfo:{uid:"",orgUid:""}})},resetAgentInfo(){e({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""}})}})),{name:Ayt})));var r8e={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var n={}.hasOwnProperty;function r(){for(var a="",s=0;s<arguments.length;s++){var l=arguments[s];l&&(a=o(a,i(l)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var s="";for(var l in a)n.call(a,l)&&a[l]&&(s=o(s,l));return s}function o(a,s){return s?a?a+" "+s:a+s:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(r8e);var Q7=r8e.exports;const Ce=Or(Q7);function ft(){return ft=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ft.apply(null,arguments)}function cn(e){"@babel/helpers - typeof";return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},cn(e)}var rTt=Symbol.for("react.element"),iTt=Symbol.for("react.transitional.element"),oTt=Symbol.for("react.fragment");function i8e(e){return e&&cn(e)==="object"&&(e.$$typeof===rTt||e.$$typeof===iTt)&&e.type===oTt}function Tl(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return V.Children.forEach(e,function(i){i==null&&!n.keepEmpty||(Array.isArray(i)?r=r.concat(Tl(i)):i8e(i)&&i.props?r=r.concat(Tl(i.props.children,n)):r.push(i))}),r}var Rne={},aTt=function(n){};function sTt(e,n){}function lTt(e,n){}function cTt(){Rne={}}function o8e(e,n,r){!n&&!Rne[r]&&(e(!1,r),Rne[r]=!0)}function qi(e,n){o8e(sTt,e,n)}function FF(e,n){o8e(lTt,e,n)}qi.preMessage=aTt;qi.resetWarned=cTt;qi.noteOnce=FF;function uTt(e,n){if(cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||"default");if(cn(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function a8e(e){var n=uTt(e,"string");return cn(n)=="symbol"?n:n+""}function fe(e,n,r){return(n=a8e(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function G0e(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function ee(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?G0e(Object(r),!0).forEach(function(i){fe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G0e(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}var s8e={exports:{}},Pf={},l8e={exports:{}},c8e={};/**
* @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 n(B,Y){var q=B.length;B.push(Y);e:for(;0<q;){var K=q-1>>>1,H=B[K];if(0<o(H,Y))B[K]=Y,B[q]=H,q=K;else break e}}function r(B){return B.length===0?null:B[0]}function i(B){if(B.length===0)return null;var Y=B[0],q=B.pop();if(q!==Y){B[0]=q;e:for(var K=0,H=B.length,G=H>>>1;K<G;){var Q=2*(K+1)-1,le=B[Q],Z=Q+1,j=B[Z];if(0>o(le,q))Z<H&&0>o(j,le)?(B[K]=j,B[Z]=q,K=Z):(B[K]=le,B[Q]=q,K=Q);else if(Z<H&&0>o(j,q))B[K]=j,B[Z]=q,K=Z;else break e}}return Y}function o(B,Y){var q=B.sortIndex-Y.sortIndex;return q!==0?q:B.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,g=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,S=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(B){for(var Y=r(u);Y!==null;){if(Y.callback===null)i(u);else if(Y.startTime<=B)i(u),Y.sortIndex=Y.expirationTime,n(c,Y);else break;Y=r(u)}}function E(B){if(v=!1,b(B),!g)if(r(c)!==null)g=!0,z(w);else{var Y=r(u);Y!==null&&D(E,Y.startTime-B)}}function w(B,Y){g=!1,v&&(v=!1,_(T),T=-1),h=!0;var q=p;try{for(b(Y),f=r(c);f!==null&&(!(f.expirationTime>Y)||B&&!M());){var K=f.callback;if(typeof K=="function"){f.callback=null,p=f.priorityLevel;var H=K(f.expirationTime<=Y);Y=e.unstable_now(),typeof H=="function"?f.callback=H:f===r(c)&&i(c),b(Y)}else i(c);f=r(c)}if(f!==null)var G=!0;else{var Q=r(u);Q!==null&&D(E,Q.startTime-Y),G=!1}return G}finally{f=null,p=q,h=!1}}var C=!1,x=null,T=-1,R=5,O=-1;function M(){return!(e.unstable_now()-O<R)}function P(){if(x!==null){var B=e.unstable_now();O=B;var Y=!0;try{Y=x(!0,B)}finally{Y?k():(C=!1,x=null)}}else C=!1}var k;if(typeof S=="function")k=function(){S(P)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,U=$.port2;$.port1.onmessage=P,k=function(){U.postMessage(null)}}else k=function(){y(P,0)};function z(B){x=B,C||(C=!0,k())}function D(B,Y){T=y(function(){B(e.unstable_now())},Y)}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(B){B.callback=null},e.unstable_continueExecution=function(){g||h||(g=!0,z(w))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return r(c)},e.unstable_next=function(B){switch(p){case 1:case 2:case 3:var Y=3;break;default:Y=p}var q=p;p=Y;try{return B()}finally{p=q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,Y){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var q=p;p=B;try{return Y()}finally{p=q}},e.unstable_scheduleCallback=function(B,Y,q){var K=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?K+q:K):q=K,B){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=q+H,B={id:d++,callback:Y,priorityLevel:B,startTime:q,expirationTime:H,sortIndex:-1},q>K?(B.sortIndex=q,n(u,B),r(c)===null&&B===r(u)&&(v?(_(T),T=-1):v=!0,D(E,q-K))):(B.sortIndex=H,n(c,B),g||h||(g=!0,z(w))),B},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(B){var Y=p;return function(){var q=p;p=Y;try{return B.apply(this,arguments)}finally{p=q}}}})(c8e);l8e.exports=c8e;var dTt=l8e.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 fTt=m,_f=dTt;function Dn(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var u8e=new Set,HP={};function QC(e,n){_O(e,n),_O(e+"Capture",n)}function _O(e,n){for(HP[e]=n,e=0;e<n.length;e++)u8e.add(n[e])}var Ty=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ine=Object.prototype.hasOwnProperty,pTt=/^[: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]*$/,W0e={},Y0e={};function hTt(e){return Ine.call(Y0e,e)?!0:Ine.call(W0e,e)?!1:pTt.test(e)?Y0e[e]=!0:(W0e[e]=!0,!1)}function gTt(e,n,r,i){if(r!==null&&r.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return i?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function mTt(e,n,r,i){if(n===null||typeof n>"u"||gTt(e,n,r,i))return!0;if(i)return!1;if(r!==null)switch(r.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function Iu(e,n,r,i,o,a,s){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=n,this.sanitizeURL=a,this.removeEmptyString=s}var yc={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yc[e]=new Iu(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];yc[n]=new Iu(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yc[e]=new Iu(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yc[e]=new Iu(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){yc[e]=new Iu(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yc[e]=new Iu(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yc[e]=new Iu(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yc[e]=new Iu(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yc[e]=new Iu(e,5,!1,e.toLowerCase(),null,!1,!1)});var cce=/[\-:]([a-z])/g;function uce(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 n=e.replace(cce,uce);yc[n]=new Iu(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(cce,uce);yc[n]=new Iu(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(cce,uce);yc[n]=new Iu(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yc[e]=new Iu(e,1,!1,e.toLowerCase(),null,!1,!1)});yc.xlinkHref=new Iu("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yc[e]=new Iu(e,1,!1,e.toLowerCase(),null,!0,!0)});function dce(e,n,r,i){var o=yc.hasOwnProperty(n)?yc[n]:null;(o!==null?o.type!==0:i||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(mTt(n,r,o,i)&&(r=null),i||o===null?hTt(n)&&(r===null?e.removeAttribute(n):e.setAttribute(n,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(n=o.attributeName,i=o.attributeNamespace,r===null?e.removeAttribute(n):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,i?e.setAttributeNS(i,n,r):e.setAttribute(n,r))))}var Ky=fTt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_3=Symbol.for("react.element"),iT=Symbol.for("react.portal"),oT=Symbol.for("react.fragment"),fce=Symbol.for("react.strict_mode"),Nne=Symbol.for("react.profiler"),d8e=Symbol.for("react.provider"),f8e=Symbol.for("react.context"),pce=Symbol.for("react.forward_ref"),Mne=Symbol.for("react.suspense"),Pne=Symbol.for("react.suspense_list"),hce=Symbol.for("react.memo"),hb=Symbol.for("react.lazy"),p8e=Symbol.for("react.offscreen"),q0e=Symbol.iterator;function qN(e){return e===null||typeof e!="object"?null:(e=q0e&&e[q0e]||e["@@iterator"],typeof e=="function"?e:null)}var as=Object.assign,ZW;function e2(e){if(ZW===void 0)try{throw Error()}catch(r){var n=r.stack.trim().match(/\n( *(at )?)/);ZW=n&&n[1]||""}return`
`+ZW+e}var JW=!1;function eY(e,n){if(!e||JW)return"";JW=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(u){var i=u}Reflect.construct(e,[],n)}else{try{n.call()}catch(u){i=u}e.call(n.prototype)}else{try{throw Error()}catch(u){i=u}e()}}catch(u){if(u&&i&&typeof u.stack=="string"){for(var o=u.stack.split(`
`),a=i.stack.split(`
`),s=o.length-1,l=a.length-1;1<=s&&0<=l&&o[s]!==a[l];)l--;for(;1<=s&&0<=l;s--,l--)if(o[s]!==a[l]){if(s!==1||l!==1)do if(s--,l--,0>l||o[s]!==a[l]){var c=`
`+o[s].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=s&&0<=l);break}}}finally{JW=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?e2(e):""}function vTt(e){switch(e.tag){case 5:return e2(e.type);case 16:return e2("Lazy");case 13:return e2("Suspense");case 19:return e2("SuspenseList");case 0:case 2:case 15:return e=eY(e.type,!1),e;case 11:return e=eY(e.type.render,!1),e;case 1:return e=eY(e.type,!0),e;default:return""}}function Ane(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 oT:return"Fragment";case iT:return"Portal";case Nne:return"Profiler";case fce:return"StrictMode";case Mne:return"Suspense";case Pne:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f8e:return(e.displayName||"Context")+".Consumer";case d8e:return(e._context.displayName||"Context")+".Provider";case pce:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case hce:return n=e.displayName||null,n!==null?n:Ane(e.type)||"Memo";case hb:n=e._payload,e=e._init;try{return Ane(e(n))}catch{}}return null}function yTt(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ane(n);case 8:return n===fce?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function S0(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function h8e(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function _Tt(e){var n=h8e(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),i=""+e[n];if(!e.hasOwnProperty(n)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,a=r.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return o.call(this)},set:function(s){i=""+s,a.call(this,s)}}),Object.defineProperty(e,n,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(s){i=""+s},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function b3(e){e._valueTracker||(e._valueTracker=_Tt(e))}function g8e(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var r=n.getValue(),i="";return e&&(i=h8e(e)?e.checked?"true":"false":e.value),e=i,e!==r?(n.setValue(e),!0):!1}function BF(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 Dne(e,n){var r=n.checked;return as({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function K0e(e,n){var r=n.defaultValue==null?"":n.defaultValue,i=n.checked!=null?n.checked:n.defaultChecked;r=S0(n.value!=null?n.value:r),e._wrapperState={initialChecked:i,initialValue:r,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function m8e(e,n){n=n.checked,n!=null&&dce(e,"checked",n,!1)}function kne(e,n){m8e(e,n);var r=S0(n.value),i=n.type;if(r!=null)i==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Lne(e,n.type,r):n.hasOwnProperty("defaultValue")&&Lne(e,n.type,S0(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function X0e(e,n,r){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var i=n.type;if(!(i!=="submit"&&i!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,r||n===e.value||(e.value=n),e.defaultValue=n}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Lne(e,n,r){(n!=="number"||BF(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var t2=Array.isArray;function LT(e,n,r,i){if(e=e.options,n){n={};for(var o=0;o<r.length;o++)n["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=n.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&i&&(e[r].defaultSelected=!0)}else{for(r=""+S0(r),n=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}n!==null||e[o].disabled||(n=e[o])}n!==null&&(n.selected=!0)}}function $ne(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(Dn(91));return as({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Q0e(e,n){var r=n.value;if(r==null){if(r=n.children,n=n.defaultValue,r!=null){if(n!=null)throw Error(Dn(92));if(t2(r)){if(1<r.length)throw Error(Dn(93));r=r[0]}n=r}n==null&&(n=""),r=n}e._wrapperState={initialValue:S0(r)}}function v8e(e,n){var r=S0(n.value),i=S0(n.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),n.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),i!=null&&(e.defaultValue=""+i)}function Z0e(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function y8e(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 Fne(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?y8e(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var S3,_8e=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,r,i,o){MSApp.execUnsafeLocalFunction(function(){return e(n,r,i,o)})}:e}(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(S3=S3||document.createElement("div"),S3.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=S3.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function zP(e,n){if(n){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=n;return}}e.textContent=n}var $2={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},bTt=["Webkit","ms","Moz","O"];Object.keys($2).forEach(function(e){bTt.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),$2[n]=$2[e]})});function b8e(e,n,r){return n==null||typeof n=="boolean"||n===""?"":r||typeof n!="number"||n===0||$2.hasOwnProperty(e)&&$2[e]?(""+n).trim():n+"px"}function S8e(e,n){e=e.style;for(var r in n)if(n.hasOwnProperty(r)){var i=r.indexOf("--")===0,o=b8e(r,n[r],i);r==="float"&&(r="cssFloat"),i?e.setProperty(r,o):e[r]=o}}var STt=as({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 Bne(e,n){if(n){if(STt[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(Dn(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(Dn(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(Dn(61))}if(n.style!=null&&typeof n.style!="object")throw Error(Dn(62))}}function jne(e,n){if(e.indexOf("-")===-1)return typeof n.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 Une=null;function gce(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hne=null,$T=null,FT=null;function J0e(e){if(e=ok(e)){if(typeof Hne!="function")throw Error(Dn(280));var n=e.stateNode;n&&(n=n9(n),Hne(e.stateNode,e.type,n))}}function E8e(e){$T?FT?FT.push(e):FT=[e]:$T=e}function C8e(){if($T){var e=$T,n=FT;if(FT=$T=null,J0e(e),n)for(e=0;e<n.length;e++)J0e(n[e])}}function w8e(e,n){return e(n)}function x8e(){}var tY=!1;function T8e(e,n,r){if(tY)return e(n,r);tY=!0;try{return w8e(e,n,r)}finally{tY=!1,($T!==null||FT!==null)&&(x8e(),C8e())}}function VP(e,n){var r=e.stateNode;if(r===null)return null;var i=n9(r);if(i===null)return null;r=i[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(Dn(231,n,typeof r));return r}var zne=!1;if(Ty)try{var KN={};Object.defineProperty(KN,"passive",{get:function(){zne=!0}}),window.addEventListener("test",KN,KN),window.removeEventListener("test",KN,KN)}catch{zne=!1}function ETt(e,n,r,i,o,a,s,l,c){var u=Array.prototype.slice.call(arguments,3);try{n.apply(r,u)}catch(d){this.onError(d)}}var F2=!1,jF=null,UF=!1,Vne=null,CTt={onError:function(e){F2=!0,jF=e}};function wTt(e,n,r,i,o,a,s,l,c){F2=!1,jF=null,ETt.apply(CTt,arguments)}function xTt(e,n,r,i,o,a,s,l,c){if(wTt.apply(this,arguments),F2){if(F2){var u=jF;F2=!1,jF=null}else throw Error(Dn(198));UF||(UF=!0,Vne=u)}}function ZC(e){var n=e,r=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,n.flags&4098&&(r=n.return),e=n.return;while(e)}return n.tag===3?r:null}function O8e(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function eSe(e){if(ZC(e)!==e)throw Error(Dn(188))}function TTt(e){var n=e.alternate;if(!n){if(n=ZC(e),n===null)throw Error(Dn(188));return n!==e?null:e}for(var r=e,i=n;;){var o=r.return;if(o===null)break;var a=o.alternate;if(a===null){if(i=o.return,i!==null){r=i;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return eSe(o),e;if(a===i)return eSe(o),n;a=a.sibling}throw Error(Dn(188))}if(r.return!==i.return)r=o,i=a;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,i=a;break}if(l===i){s=!0,i=o,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,i=o;break}if(l===i){s=!0,i=a,r=o;break}l=l.sibling}if(!s)throw Error(Dn(189))}}if(r.alternate!==i)throw Error(Dn(190))}if(r.tag!==3)throw Error(Dn(188));return r.stateNode.current===r?e:n}function R8e(e){return e=TTt(e),e!==null?I8e(e):null}function I8e(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=I8e(e);if(n!==null)return n;e=e.sibling}return null}var N8e=_f.unstable_scheduleCallback,tSe=_f.unstable_cancelCallback,OTt=_f.unstable_shouldYield,RTt=_f.unstable_requestPaint,Bs=_f.unstable_now,ITt=_f.unstable_getCurrentPriorityLevel,mce=_f.unstable_ImmediatePriority,M8e=_f.unstable_UserBlockingPriority,HF=_f.unstable_NormalPriority,NTt=_f.unstable_LowPriority,P8e=_f.unstable_IdlePriority,Z7=null,gm=null;function MTt(e){if(gm&&typeof gm.onCommitFiberRoot=="function")try{gm.onCommitFiberRoot(Z7,e,void 0,(e.current.flags&128)===128)}catch{}}var jh=Math.clz32?Math.clz32:DTt,PTt=Math.log,ATt=Math.LN2;function DTt(e){return e>>>=0,e===0?32:31-(PTt(e)/ATt|0)|0}var E3=64,C3=4194304;function n2(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 zF(e,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes,s=r&268435455;if(s!==0){var l=s&~o;l!==0?i=n2(l):(a&=s,a!==0&&(i=n2(a)))}else s=r&~o,s!==0?i=n2(s):a!==0&&(i=n2(a));if(i===0)return 0;if(n!==0&&n!==i&&!(n&o)&&(o=i&-i,a=n&-n,o>=a||o===16&&(a&4194240)!==0))return n;if(i&4&&(i|=r&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=i;0<n;)r=31-jh(n),o=1<<r,i|=e[r],n&=~o;return i}function kTt(e,n){switch(e){case 1:case 2:case 4:return n+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 n+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 LTt(e,n){for(var r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-jh(a),l=1<<s,c=o[s];c===-1?(!(l&r)||l&i)&&(o[s]=kTt(l,n)):c<=n&&(e.expiredLanes|=l),a&=~l}}function Gne(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function A8e(){var e=E3;return E3<<=1,!(E3&4194240)&&(E3=64),e}function nY(e){for(var n=[],r=0;31>r;r++)n.push(e);return n}function rk(e,n,r){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-jh(n),e[n]=r}function $Tt(e,n){var r=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-jh(r),a=1<<o;n[o]=0,i[o]=-1,e[o]=-1,r&=~a}}function vce(e,n){var r=e.entangledLanes|=n;for(e=e.entanglements;r;){var i=31-jh(r),o=1<<i;o&n|e[i]&n&&(e[i]|=n),r&=~o}}var Bo=0;function D8e(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var k8e,yce,L8e,$8e,F8e,Wne=!1,w3=[],t0=null,n0=null,r0=null,GP=new Map,WP=new Map,Cb=[],FTt="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 nSe(e,n){switch(e){case"focusin":case"focusout":t0=null;break;case"dragenter":case"dragleave":n0=null;break;case"mouseover":case"mouseout":r0=null;break;case"pointerover":case"pointerout":GP.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":WP.delete(n.pointerId)}}function XN(e,n,r,i,o,a){return e===null||e.nativeEvent!==a?(e={blockedOn:n,domEventName:r,eventSystemFlags:i,nativeEvent:a,targetContainers:[o]},n!==null&&(n=ok(n),n!==null&&yce(n)),e):(e.eventSystemFlags|=i,n=e.targetContainers,o!==null&&n.indexOf(o)===-1&&n.push(o),e)}function BTt(e,n,r,i,o){switch(n){case"focusin":return t0=XN(t0,e,n,r,i,o),!0;case"dragenter":return n0=XN(n0,e,n,r,i,o),!0;case"mouseover":return r0=XN(r0,e,n,r,i,o),!0;case"pointerover":var a=o.pointerId;return GP.set(a,XN(GP.get(a)||null,e,n,r,i,o)),!0;case"gotpointercapture":return a=o.pointerId,WP.set(a,XN(WP.get(a)||null,e,n,r,i,o)),!0}return!1}function B8e(e){var n=JE(e.target);if(n!==null){var r=ZC(n);if(r!==null){if(n=r.tag,n===13){if(n=O8e(r),n!==null){e.blockedOn=n,F8e(e.priority,function(){L8e(r)});return}}else if(n===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function V5(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var r=Yne(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var i=new r.constructor(r.type,r);Une=i,r.target.dispatchEvent(i),Une=null}else return n=ok(r),n!==null&&yce(n),e.blockedOn=r,!1;n.shift()}return!0}function rSe(e,n,r){V5(e)&&r.delete(n)}function jTt(){Wne=!1,t0!==null&&V5(t0)&&(t0=null),n0!==null&&V5(n0)&&(n0=null),r0!==null&&V5(r0)&&(r0=null),GP.forEach(rSe),WP.forEach(rSe)}function QN(e,n){e.blockedOn===n&&(e.blockedOn=null,Wne||(Wne=!0,_f.unstable_scheduleCallback(_f.unstable_NormalPriority,jTt)))}function YP(e){function n(o){return QN(o,e)}if(0<w3.length){QN(w3[0],e);for(var r=1;r<w3.length;r++){var i=w3[r];i.blockedOn===e&&(i.blockedOn=null)}}for(t0!==null&&QN(t0,e),n0!==null&&QN(n0,e),r0!==null&&QN(r0,e),GP.forEach(n),WP.forEach(n),r=0;r<Cb.length;r++)i=Cb[r],i.blockedOn===e&&(i.blockedOn=null);for(;0<Cb.length&&(r=Cb[0],r.blockedOn===null);)B8e(r),r.blockedOn===null&&Cb.shift()}var BT=Ky.ReactCurrentBatchConfig,VF=!0;function UTt(e,n,r,i){var o=Bo,a=BT.transition;BT.transition=null;try{Bo=1,_ce(e,n,r,i)}finally{Bo=o,BT.transition=a}}function HTt(e,n,r,i){var o=Bo,a=BT.transition;BT.transition=null;try{Bo=4,_ce(e,n,r,i)}finally{Bo=o,BT.transition=a}}function _ce(e,n,r,i){if(VF){var o=Yne(e,n,r,i);if(o===null)fY(e,n,i,GF,r),nSe(e,i);else if(BTt(o,e,n,r,i))i.stopPropagation();else if(nSe(e,i),n&4&&-1<FTt.indexOf(e)){for(;o!==null;){var a=ok(o);if(a!==null&&k8e(a),a=Yne(e,n,r,i),a===null&&fY(e,n,i,GF,r),a===o)break;o=a}o!==null&&i.stopPropagation()}else fY(e,n,i,null,r)}}var GF=null;function Yne(e,n,r,i){if(GF=null,e=gce(i),e=JE(e),e!==null)if(n=ZC(e),n===null)e=null;else if(r=n.tag,r===13){if(e=O8e(n),e!==null)return e;e=null}else if(r===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return GF=e,null}function j8e(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(ITt()){case mce:return 1;case M8e:return 4;case HF:case NTt:return 16;case P8e:return 536870912;default:return 16}default:return 16}}var Lb=null,bce=null,G5=null;function U8e(){if(G5)return G5;var e,n=bce,r=n.length,i,o="value"in Lb?Lb.value:Lb.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var s=r-e;for(i=1;i<=s&&n[r-i]===o[a-i];i++);return G5=o.slice(e,1<i?1-i:void 0)}function W5(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function x3(){return!0}function iSe(){return!1}function Af(e){function n(r,i,o,a,s){this._reactName=r,this._targetInst=o,this.type=i,this.nativeEvent=a,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?x3:iSe,this.isPropagationStopped=iSe,this}return as(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=x3)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=x3)},persist:function(){},isPersistent:x3}),n}var eI={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sce=Af(eI),ik=as({},eI,{view:0,detail:0}),zTt=Af(ik),rY,iY,ZN,J7=as({},ik,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ece,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!==ZN&&(ZN&&e.type==="mousemove"?(rY=e.screenX-ZN.screenX,iY=e.screenY-ZN.screenY):iY=rY=0,ZN=e),rY)},movementY:function(e){return"movementY"in e?e.movementY:iY}}),oSe=Af(J7),VTt=as({},J7,{dataTransfer:0}),GTt=Af(VTt),WTt=as({},ik,{relatedTarget:0}),oY=Af(WTt),YTt=as({},eI,{animationName:0,elapsedTime:0,pseudoElement:0}),qTt=Af(YTt),KTt=as({},eI,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),XTt=Af(KTt),QTt=as({},eI,{data:0}),aSe=Af(QTt),ZTt={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JTt={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"},eOt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tOt(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=eOt[e])?!!n[e]:!1}function Ece(){return tOt}var nOt=as({},ik,{key:function(e){if(e.key){var n=ZTt[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=W5(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?JTt[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ece,charCode:function(e){return e.type==="keypress"?W5(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?W5(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rOt=Af(nOt),iOt=as({},J7,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sSe=Af(iOt),oOt=as({},ik,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ece}),aOt=Af(oOt),sOt=as({},eI,{propertyName:0,elapsedTime:0,pseudoElement:0}),lOt=Af(sOt),cOt=as({},J7,{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}),uOt=Af(cOt),dOt=[9,13,27,32],Cce=Ty&&"CompositionEvent"in window,B2=null;Ty&&"documentMode"in document&&(B2=document.documentMode);var fOt=Ty&&"TextEvent"in window&&!B2,H8e=Ty&&(!Cce||B2&&8<B2&&11>=B2),lSe=" ",cSe=!1;function z8e(e,n){switch(e){case"keyup":return dOt.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function V8e(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var aT=!1;function pOt(e,n){switch(e){case"compositionend":return V8e(n);case"keypress":return n.which!==32?null:(cSe=!0,lSe);case"textInput":return e=n.data,e===lSe&&cSe?null:e;default:return null}}function hOt(e,n){if(aT)return e==="compositionend"||!Cce&&z8e(e,n)?(e=U8e(),G5=bce=Lb=null,aT=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return H8e&&n.locale!=="ko"?null:n.data;default:return null}}var gOt={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 uSe(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!gOt[e.type]:n==="textarea"}function G8e(e,n,r,i){E8e(i),n=WF(n,"onChange"),0<n.length&&(r=new Sce("onChange","change",null,r,i),e.push({event:r,listeners:n}))}var j2=null,qP=null;function mOt(e){nBe(e,0)}function e9(e){var n=cT(e);if(g8e(n))return e}function vOt(e,n){if(e==="change")return n}var W8e=!1;if(Ty){var aY;if(Ty){var sY="oninput"in document;if(!sY){var dSe=document.createElement("div");dSe.setAttribute("oninput","return;"),sY=typeof dSe.oninput=="function"}aY=sY}else aY=!1;W8e=aY&&(!document.documentMode||9<document.documentMode)}function fSe(){j2&&(j2.detachEvent("onpropertychange",Y8e),qP=j2=null)}function Y8e(e){if(e.propertyName==="value"&&e9(qP)){var n=[];G8e(n,qP,e,gce(e)),T8e(mOt,n)}}function yOt(e,n,r){e==="focusin"?(fSe(),j2=n,qP=r,j2.attachEvent("onpropertychange",Y8e)):e==="focusout"&&fSe()}function _Ot(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return e9(qP)}function bOt(e,n){if(e==="click")return e9(n)}function SOt(e,n){if(e==="input"||e==="change")return e9(n)}function EOt(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var eg=typeof Object.is=="function"?Object.is:EOt;function KP(e,n){if(eg(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var r=Object.keys(e),i=Object.keys(n);if(r.length!==i.length)return!1;for(i=0;i<r.length;i++){var o=r[i];if(!Ine.call(n,o)||!eg(e[o],n[o]))return!1}return!0}function pSe(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hSe(e,n){var r=pSe(e);e=0;for(var i;r;){if(r.nodeType===3){if(i=e+r.textContent.length,e<=n&&i>=n)return{node:r,offset:n-e};e=i}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pSe(r)}}function q8e(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?q8e(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function K8e(){for(var e=window,n=BF();n instanceof e.HTMLIFrameElement;){try{var r=typeof n.contentWindow.location.href=="string"}catch{r=!1}if(r)e=n.contentWindow;else break;n=BF(e.document)}return n}function wce(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function COt(e){var n=K8e(),r=e.focusedElem,i=e.selectionRange;if(n!==r&&r&&r.ownerDocument&&q8e(r.ownerDocument.documentElement,r)){if(i!==null&&wce(r)){if(n=i.start,e=i.end,e===void 0&&(e=n),"selectionStart"in r)r.selectionStart=n,r.selectionEnd=Math.min(e,r.value.length);else if(e=(n=r.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(i.start,o);i=i.end===void 0?a:Math.min(i.end,o),!e.extend&&a>i&&(o=i,i=a,a=o),o=hSe(r,a);var s=hSe(r,i);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(n=n.createRange(),n.setStart(o.node,o.offset),e.removeAllRanges(),a>i?(e.addRange(n),e.extend(s.node,s.offset)):(n.setEnd(s.node,s.offset),e.addRange(n)))}}for(n=[],e=r;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<n.length;r++)e=n[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var wOt=Ty&&"documentMode"in document&&11>=document.documentMode,sT=null,qne=null,U2=null,Kne=!1;function gSe(e,n,r){var i=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Kne||sT==null||sT!==BF(i)||(i=sT,"selectionStart"in i&&wce(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),U2&&KP(U2,i)||(U2=i,i=WF(qne,"onSelect"),0<i.length&&(n=new Sce("onSelect","select",null,n,r),e.push({event:n,listeners:i}),n.target=sT)))}function T3(e,n){var r={};return r[e.toLowerCase()]=n.toLowerCase(),r["Webkit"+e]="webkit"+n,r["Moz"+e]="moz"+n,r}var lT={animationend:T3("Animation","AnimationEnd"),animationiteration:T3("Animation","AnimationIteration"),animationstart:T3("Animation","AnimationStart"),transitionend:T3("Transition","TransitionEnd")},lY={},X8e={};Ty&&(X8e=document.createElement("div").style,"AnimationEvent"in window||(delete lT.animationend.animation,delete lT.animationiteration.animation,delete lT.animationstart.animation),"TransitionEvent"in window||delete lT.transitionend.transition);function t9(e){if(lY[e])return lY[e];if(!lT[e])return e;var n=lT[e],r;for(r in n)if(n.hasOwnProperty(r)&&r in X8e)return lY[e]=n[r];return e}var Q8e=t9("animationend"),Z8e=t9("animationiteration"),J8e=t9("animationstart"),eBe=t9("transitionend"),tBe=new Map,mSe="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 X0(e,n){tBe.set(e,n),QC(n,[e])}for(var cY=0;cY<mSe.length;cY++){var uY=mSe[cY],xOt=uY.toLowerCase(),TOt=uY[0].toUpperCase()+uY.slice(1);X0(xOt,"on"+TOt)}X0(Q8e,"onAnimationEnd");X0(Z8e,"onAnimationIteration");X0(J8e,"onAnimationStart");X0("dblclick","onDoubleClick");X0("focusin","onFocus");X0("focusout","onBlur");X0(eBe,"onTransitionEnd");_O("onMouseEnter",["mouseout","mouseover"]);_O("onMouseLeave",["mouseout","mouseover"]);_O("onPointerEnter",["pointerout","pointerover"]);_O("onPointerLeave",["pointerout","pointerover"]);QC("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));QC("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));QC("onBeforeInput",["compositionend","keypress","textInput","paste"]);QC("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));QC("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));QC("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var r2="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(" "),OOt=new Set("cancel close invalid load scroll toggle".split(" ").concat(r2));function vSe(e,n,r){var i=e.type||"unknown-event";e.currentTarget=r,xTt(i,n,void 0,e),e.currentTarget=null}function nBe(e,n){n=(n&4)!==0;for(var r=0;r<e.length;r++){var i=e[r],o=i.event;i=i.listeners;e:{var a=void 0;if(n)for(var s=i.length-1;0<=s;s--){var l=i[s],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==a&&o.isPropagationStopped())break e;vSe(o,l,u),a=c}else for(s=0;s<i.length;s++){if(l=i[s],c=l.instance,u=l.currentTarget,l=l.listener,c!==a&&o.isPropagationStopped())break e;vSe(o,l,u),a=c}}}if(UF)throw e=Vne,UF=!1,Vne=null,e}function ma(e,n){var r=n[ere];r===void 0&&(r=n[ere]=new Set);var i=e+"__bubble";r.has(i)||(rBe(n,e,2,!1),r.add(i))}function dY(e,n,r){var i=0;n&&(i|=4),rBe(r,e,i,n)}var O3="_reactListening"+Math.random().toString(36).slice(2);function XP(e){if(!e[O3]){e[O3]=!0,u8e.forEach(function(r){r!=="selectionchange"&&(OOt.has(r)||dY(r,!1,e),dY(r,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[O3]||(n[O3]=!0,dY("selectionchange",!1,n))}}function rBe(e,n,r,i){switch(j8e(n)){case 1:var o=UTt;break;case 4:o=HTt;break;default:o=_ce}r=o.bind(null,n,r,e),o=void 0,!zne||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(n,r,{capture:!0,passive:o}):e.addEventListener(n,r,!0):o!==void 0?e.addEventListener(n,r,{passive:o}):e.addEventListener(n,r,!1)}function fY(e,n,r,i,o){var a=i;if(!(n&1)&&!(n&2)&&i!==null)e:for(;;){if(i===null)return;var s=i.tag;if(s===3||s===4){var l=i.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(s===4)for(s=i.return;s!==null;){var c=s.tag;if((c===3||c===4)&&(c=s.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;s=s.return}for(;l!==null;){if(s=JE(l),s===null)return;if(c=s.tag,c===5||c===6){i=a=s;continue e}l=l.parentNode}}i=i.return}T8e(function(){var u=a,d=gce(r),f=[];e:{var p=tBe.get(e);if(p!==void 0){var h=Sce,g=e;switch(e){case"keypress":if(W5(r)===0)break e;case"keydown":case"keyup":h=rOt;break;case"focusin":g="focus",h=oY;break;case"focusout":g="blur",h=oY;break;case"beforeblur":case"afterblur":h=oY;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=oSe;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=GTt;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=aOt;break;case Q8e:case Z8e:case J8e:h=qTt;break;case eBe:h=lOt;break;case"scroll":h=zTt;break;case"wheel":h=uOt;break;case"copy":case"cut":case"paste":h=XTt;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=sSe}var v=(n&4)!==0,y=!v&&e==="scroll",_=v?p!==null?p+"Capture":null:p;v=[];for(var S=u,b;S!==null;){b=S;var E=b.stateNode;if(b.tag===5&&E!==null&&(b=E,_!==null&&(E=VP(S,_),E!=null&&v.push(QP(S,E,b)))),y)break;S=S.return}0<v.length&&(p=new h(p,g,null,r,d),f.push({event:p,listeners:v}))}}if(!(n&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&r!==Une&&(g=r.relatedTarget||r.fromElement)&&(JE(g)||g[Oy]))break e;if((h||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,h?(g=r.relatedTarget||r.toElement,h=u,g=g?JE(g):null,g!==null&&(y=ZC(g),g!==y||g.tag!==5&&g.tag!==6)&&(g=null)):(h=null,g=u),h!==g)){if(v=oSe,E="onMouseLeave",_="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(v=sSe,E="onPointerLeave",_="onPointerEnter",S="pointer"),y=h==null?p:cT(h),b=g==null?p:cT(g),p=new v(E,S+"leave",h,r,d),p.target=y,p.relatedTarget=b,E=null,JE(d)===u&&(v=new v(_,S+"enter",g,r,d),v.target=b,v.relatedTarget=y,E=v),y=E,h&&g)t:{for(v=h,_=g,S=0,b=v;b;b=px(b))S++;for(b=0,E=_;E;E=px(E))b++;for(;0<S-b;)v=px(v),S--;for(;0<b-S;)_=px(_),b--;for(;S--;){if(v===_||_!==null&&v===_.alternate)break t;v=px(v),_=px(_)}v=null}else v=null;h!==null&&ySe(f,p,h,v,!1),g!==null&&y!==null&&ySe(f,y,g,v,!0)}}e:{if(p=u?cT(u):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var w=vOt;else if(uSe(p))if(W8e)w=SOt;else{w=_Ot;var C=yOt}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(w=bOt);if(w&&(w=w(e,u))){G8e(f,w,r,d);break e}C&&C(e,p,u),e==="focusout"&&(C=p._wrapperState)&&C.controlled&&p.type==="number"&&Lne(p,"number",p.value)}switch(C=u?cT(u):window,e){case"focusin":(uSe(C)||C.contentEditable==="true")&&(sT=C,qne=u,U2=null);break;case"focusout":U2=qne=sT=null;break;case"mousedown":Kne=!0;break;case"contextmenu":case"mouseup":case"dragend":Kne=!1,gSe(f,r,d);break;case"selectionchange":if(wOt)break;case"keydown":case"keyup":gSe(f,r,d)}var x;if(Cce)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else aT?z8e(e,r)&&(T="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(T="onCompositionStart");T&&(H8e&&r.locale!=="ko"&&(aT||T!=="onCompositionStart"?T==="onCompositionEnd"&&aT&&(x=U8e()):(Lb=d,bce="value"in Lb?Lb.value:Lb.textContent,aT=!0)),C=WF(u,T),0<C.length&&(T=new aSe(T,e,null,r,d),f.push({event:T,listeners:C}),x?T.data=x:(x=V8e(r),x!==null&&(T.data=x)))),(x=fOt?pOt(e,r):hOt(e,r))&&(u=WF(u,"onBeforeInput"),0<u.length&&(d=new aSe("onBeforeInput","beforeinput",null,r,d),f.push({event:d,listeners:u}),d.data=x))}nBe(f,n)})}function QP(e,n,r){return{instance:e,listener:n,currentTarget:r}}function WF(e,n){for(var r=n+"Capture",i=[];e!==null;){var o=e,a=o.stateNode;o.tag===5&&a!==null&&(o=a,a=VP(e,r),a!=null&&i.unshift(QP(e,a,o)),a=VP(e,n),a!=null&&i.push(QP(e,a,o))),e=e.return}return i}function px(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ySe(e,n,r,i,o){for(var a=n._reactName,s=[];r!==null&&r!==i;){var l=r,c=l.alternate,u=l.stateNode;if(c!==null&&c===i)break;l.tag===5&&u!==null&&(l=u,o?(c=VP(r,a),c!=null&&s.unshift(QP(r,c,l))):o||(c=VP(r,a),c!=null&&s.push(QP(r,c,l)))),r=r.return}s.length!==0&&e.push({event:n,listeners:s})}var ROt=/\r\n?/g,IOt=/\u0000|\uFFFD/g;function _Se(e){return(typeof e=="string"?e:""+e).replace(ROt,`
`).replace(IOt,"")}function R3(e,n,r){if(n=_Se(n),_Se(e)!==n&&r)throw Error(Dn(425))}function YF(){}var Xne=null,Qne=null;function Zne(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Jne=typeof setTimeout=="function"?setTimeout:void 0,NOt=typeof clearTimeout=="function"?clearTimeout:void 0,bSe=typeof Promise=="function"?Promise:void 0,MOt=typeof queueMicrotask=="function"?queueMicrotask:typeof bSe<"u"?function(e){return bSe.resolve(null).then(e).catch(POt)}:Jne;function POt(e){setTimeout(function(){throw e})}function pY(e,n){var r=n,i=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(i===0){e.removeChild(o),YP(n);return}i--}else r!=="$"&&r!=="$?"&&r!=="$!"||i++;r=o}while(r);YP(n)}function i0(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function SSe(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(n===0)return e;n--}else r==="/$"&&n++}e=e.previousSibling}return null}var tI=Math.random().toString(36).slice(2),om="__reactFiber$"+tI,ZP="__reactProps$"+tI,Oy="__reactContainer$"+tI,ere="__reactEvents$"+tI,AOt="__reactListeners$"+tI,DOt="__reactHandles$"+tI;function JE(e){var n=e[om];if(n)return n;for(var r=e.parentNode;r;){if(n=r[Oy]||r[om]){if(r=n.alternate,n.child!==null||r!==null&&r.child!==null)for(e=SSe(e);e!==null;){if(r=e[om])return r;e=SSe(e)}return n}e=r,r=e.parentNode}return null}function ok(e){return e=e[om]||e[Oy],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function cT(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Dn(33))}function n9(e){return e[ZP]||null}var tre=[],uT=-1;function Q0(e){return{current:e}}function Ca(e){0>uT||(e.current=tre[uT],tre[uT]=null,uT--)}function ca(e,n){uT++,tre[uT]=e.current,e.current=n}var E0={},Vc=Q0(E0),fd=Q0(!1),Y1=E0;function bO(e,n){var r=e.type.contextTypes;if(!r)return E0;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===n)return i.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in r)o[a]=n[a];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=o),o}function pd(e){return e=e.childContextTypes,e!=null}function qF(){Ca(fd),Ca(Vc)}function ESe(e,n,r){if(Vc.current!==E0)throw Error(Dn(168));ca(Vc,n),ca(fd,r)}function iBe(e,n,r){var i=e.stateNode;if(n=n.childContextTypes,typeof i.getChildContext!="function")return r;i=i.getChildContext();for(var o in i)if(!(o in n))throw Error(Dn(108,yTt(e)||"Unknown",o));return as({},r,i)}function KF(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||E0,Y1=Vc.current,ca(Vc,e),ca(fd,fd.current),!0}function CSe(e,n,r){var i=e.stateNode;if(!i)throw Error(Dn(169));r?(e=iBe(e,n,Y1),i.__reactInternalMemoizedMergedChildContext=e,Ca(fd),Ca(Vc),ca(Vc,e)):Ca(fd),ca(fd,r)}var zv=null,r9=!1,hY=!1;function oBe(e){zv===null?zv=[e]:zv.push(e)}function kOt(e){r9=!0,oBe(e)}function Z0(){if(!hY&&zv!==null){hY=!0;var e=0,n=Bo;try{var r=zv;for(Bo=1;e<r.length;e++){var i=r[e];do i=i(!0);while(i!==null)}zv=null,r9=!1}catch(o){throw zv!==null&&(zv=zv.slice(e+1)),N8e(mce,Z0),o}finally{Bo=n,hY=!1}}return null}var dT=[],fT=0,XF=null,QF=0,lp=[],cp=0,q1=null,Jv=1,ey="";function NE(e,n){dT[fT++]=QF,dT[fT++]=XF,XF=e,QF=n}function aBe(e,n,r){lp[cp++]=Jv,lp[cp++]=ey,lp[cp++]=q1,q1=e;var i=Jv;e=ey;var o=32-jh(i)-1;i&=~(1<<o),r+=1;var a=32-jh(n)+o;if(30<a){var s=o-o%5;a=(i&(1<<s)-1).toString(32),i>>=s,o-=s,Jv=1<<32-jh(n)+o|r<<o|i,ey=a+e}else Jv=1<<a|r<<o|i,ey=e}function xce(e){e.return!==null&&(NE(e,1),aBe(e,1,0))}function Tce(e){for(;e===XF;)XF=dT[--fT],dT[fT]=null,QF=dT[--fT],dT[fT]=null;for(;e===q1;)q1=lp[--cp],lp[cp]=null,ey=lp[--cp],lp[cp]=null,Jv=lp[--cp],lp[cp]=null}var hf=null,sf=null,Ha=!1,Oh=null;function sBe(e,n){var r=gp(5,null,null,0);r.elementType="DELETED",r.stateNode=n,r.return=e,n=e.deletions,n===null?(e.deletions=[r],e.flags|=16):n.push(r)}function wSe(e,n){switch(e.tag){case 5:var r=e.type;return n=n.nodeType!==1||r.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,hf=e,sf=i0(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,hf=e,sf=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(r=q1!==null?{id:Jv,overflow:ey}:null,e.memoizedState={dehydrated:n,treeContext:r,retryLane:1073741824},r=gp(18,null,null,0),r.stateNode=n,r.return=e,e.child=r,hf=e,sf=null,!0):!1;default:return!1}}function nre(e){return(e.mode&1)!==0&&(e.flags&128)===0}function rre(e){if(Ha){var n=sf;if(n){var r=n;if(!wSe(e,n)){if(nre(e))throw Error(Dn(418));n=i0(r.nextSibling);var i=hf;n&&wSe(e,n)?sBe(i,r):(e.flags=e.flags&-4097|2,Ha=!1,hf=e)}}else{if(nre(e))throw Error(Dn(418));e.flags=e.flags&-4097|2,Ha=!1,hf=e}}}function xSe(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;hf=e}function I3(e){if(e!==hf)return!1;if(!Ha)return xSe(e),Ha=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!Zne(e.type,e.memoizedProps)),n&&(n=sf)){if(nre(e))throw lBe(),Error(Dn(418));for(;n;)sBe(e,n),n=i0(n.nextSibling)}if(xSe(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Dn(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(n===0){sf=i0(e.nextSibling);break e}n--}else r!=="$"&&r!=="$!"&&r!=="$?"||n++}e=e.nextSibling}sf=null}}else sf=hf?i0(e.stateNode.nextSibling):null;return!0}function lBe(){for(var e=sf;e;)e=i0(e.nextSibling)}function SO(){sf=hf=null,Ha=!1}function Oce(e){Oh===null?Oh=[e]:Oh.push(e)}var LOt=Ky.ReactCurrentBatchConfig;function JN(e,n,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(Dn(309));var i=r.stateNode}if(!i)throw Error(Dn(147,e));var o=i,a=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===a?n.ref:(n=function(s){var l=o.refs;s===null?delete l[a]:l[a]=s},n._stringRef=a,n)}if(typeof e!="string")throw Error(Dn(284));if(!r._owner)throw Error(Dn(290,e))}return e}function N3(e,n){throw e=Object.prototype.toString.call(n),Error(Dn(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function TSe(e){var n=e._init;return n(e._payload)}function cBe(e){function n(_,S){if(e){var b=_.deletions;b===null?(_.deletions=[S],_.flags|=16):b.push(S)}}function r(_,S){if(!e)return null;for(;S!==null;)n(_,S),S=S.sibling;return null}function i(_,S){for(_=new Map;S!==null;)S.key!==null?_.set(S.key,S):_.set(S.index,S),S=S.sibling;return _}function o(_,S){return _=l0(_,S),_.index=0,_.sibling=null,_}function a(_,S,b){return _.index=b,e?(b=_.alternate,b!==null?(b=b.index,b<S?(_.flags|=2,S):b):(_.flags|=2,S)):(_.flags|=1048576,S)}function s(_){return e&&_.alternate===null&&(_.flags|=2),_}function l(_,S,b,E){return S===null||S.tag!==6?(S=SY(b,_.mode,E),S.return=_,S):(S=o(S,b),S.return=_,S)}function c(_,S,b,E){var w=b.type;return w===oT?d(_,S,b.props.children,E,b.key):S!==null&&(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===hb&&TSe(w)===S.type)?(E=o(S,b.props),E.ref=JN(_,S,b),E.return=_,E):(E=J5(b.type,b.key,b.props,null,_.mode,E),E.ref=JN(_,S,b),E.return=_,E)}function u(_,S,b,E){return S===null||S.tag!==4||S.stateNode.containerInfo!==b.containerInfo||S.stateNode.implementation!==b.implementation?(S=EY(b,_.mode,E),S.return=_,S):(S=o(S,b.children||[]),S.return=_,S)}function d(_,S,b,E,w){return S===null||S.tag!==7?(S=T1(b,_.mode,E,w),S.return=_,S):(S=o(S,b),S.return=_,S)}function f(_,S,b){if(typeof S=="string"&&S!==""||typeof S=="number")return S=SY(""+S,_.mode,b),S.return=_,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case _3:return b=J5(S.type,S.key,S.props,null,_.mode,b),b.ref=JN(_,null,S),b.return=_,b;case iT:return S=EY(S,_.mode,b),S.return=_,S;case hb:var E=S._init;return f(_,E(S._payload),b)}if(t2(S)||qN(S))return S=T1(S,_.mode,b,null),S.return=_,S;N3(_,S)}return null}function p(_,S,b,E){var w=S!==null?S.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return w!==null?null:l(_,S,""+b,E);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case _3:return b.key===w?c(_,S,b,E):null;case iT:return b.key===w?u(_,S,b,E):null;case hb:return w=b._init,p(_,S,w(b._payload),E)}if(t2(b)||qN(b))return w!==null?null:d(_,S,b,E,null);N3(_,b)}return null}function h(_,S,b,E,w){if(typeof E=="string"&&E!==""||typeof E=="number")return _=_.get(b)||null,l(S,_,""+E,w);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case _3:return _=_.get(E.key===null?b:E.key)||null,c(S,_,E,w);case iT:return _=_.get(E.key===null?b:E.key)||null,u(S,_,E,w);case hb:var C=E._init;return h(_,S,b,C(E._payload),w)}if(t2(E)||qN(E))return _=_.get(b)||null,d(S,_,E,w,null);N3(S,E)}return null}function g(_,S,b,E){for(var w=null,C=null,x=S,T=S=0,R=null;x!==null&&T<b.length;T++){x.index>T?(R=x,x=null):R=x.sibling;var O=p(_,x,b[T],E);if(O===null){x===null&&(x=R);break}e&&x&&O.alternate===null&&n(_,x),S=a(O,S,T),C===null?w=O:C.sibling=O,C=O,x=R}if(T===b.length)return r(_,x),Ha&&NE(_,T),w;if(x===null){for(;T<b.length;T++)x=f(_,b[T],E),x!==null&&(S=a(x,S,T),C===null?w=x:C.sibling=x,C=x);return Ha&&NE(_,T),w}for(x=i(_,x);T<b.length;T++)R=h(x,_,T,b[T],E),R!==null&&(e&&R.alternate!==null&&x.delete(R.key===null?T:R.key),S=a(R,S,T),C===null?w=R:C.sibling=R,C=R);return e&&x.forEach(function(M){return n(_,M)}),Ha&&NE(_,T),w}function v(_,S,b,E){var w=qN(b);if(typeof w!="function")throw Error(Dn(150));if(b=w.call(b),b==null)throw Error(Dn(151));for(var C=w=null,x=S,T=S=0,R=null,O=b.next();x!==null&&!O.done;T++,O=b.next()){x.index>T?(R=x,x=null):R=x.sibling;var M=p(_,x,O.value,E);if(M===null){x===null&&(x=R);break}e&&x&&M.alternate===null&&n(_,x),S=a(M,S,T),C===null?w=M:C.sibling=M,C=M,x=R}if(O.done)return r(_,x),Ha&&NE(_,T),w;if(x===null){for(;!O.done;T++,O=b.next())O=f(_,O.value,E),O!==null&&(S=a(O,S,T),C===null?w=O:C.sibling=O,C=O);return Ha&&NE(_,T),w}for(x=i(_,x);!O.done;T++,O=b.next())O=h(x,_,T,O.value,E),O!==null&&(e&&O.alternate!==null&&x.delete(O.key===null?T:O.key),S=a(O,S,T),C===null?w=O:C.sibling=O,C=O);return e&&x.forEach(function(P){return n(_,P)}),Ha&&NE(_,T),w}function y(_,S,b,E){if(typeof b=="object"&&b!==null&&b.type===oT&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case _3:e:{for(var w=b.key,C=S;C!==null;){if(C.key===w){if(w=b.type,w===oT){if(C.tag===7){r(_,C.sibling),S=o(C,b.props.children),S.return=_,_=S;break e}}else if(C.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===hb&&TSe(w)===C.type){r(_,C.sibling),S=o(C,b.props),S.ref=JN(_,C,b),S.return=_,_=S;break e}r(_,C);break}else n(_,C);C=C.sibling}b.type===oT?(S=T1(b.props.children,_.mode,E,b.key),S.return=_,_=S):(E=J5(b.type,b.key,b.props,null,_.mode,E),E.ref=JN(_,S,b),E.return=_,_=E)}return s(_);case iT:e:{for(C=b.key;S!==null;){if(S.key===C)if(S.tag===4&&S.stateNode.containerInfo===b.containerInfo&&S.stateNode.implementation===b.implementation){r(_,S.sibling),S=o(S,b.children||[]),S.return=_,_=S;break e}else{r(_,S);break}else n(_,S);S=S.sibling}S=EY(b,_.mode,E),S.return=_,_=S}return s(_);case hb:return C=b._init,y(_,S,C(b._payload),E)}if(t2(b))return g(_,S,b,E);if(qN(b))return v(_,S,b,E);N3(_,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,S!==null&&S.tag===6?(r(_,S.sibling),S=o(S,b),S.return=_,_=S):(r(_,S),S=SY(b,_.mode,E),S.return=_,_=S),s(_)):r(_,S)}return y}var EO=cBe(!0),uBe=cBe(!1),ZF=Q0(null),JF=null,pT=null,Rce=null;function Ice(){Rce=pT=JF=null}function Nce(e){var n=ZF.current;Ca(ZF),e._currentValue=n}function ire(e,n,r){for(;e!==null;){var i=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,i!==null&&(i.childLanes|=n)):i!==null&&(i.childLanes&n)!==n&&(i.childLanes|=n),e===r)break;e=e.return}}function jT(e,n){JF=e,Rce=pT=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(ad=!0),e.firstContext=null)}function wp(e){var n=e._currentValue;if(Rce!==e)if(e={context:e,memoizedValue:n,next:null},pT===null){if(JF===null)throw Error(Dn(308));pT=e,JF.dependencies={lanes:0,firstContext:e}}else pT=pT.next=e;return n}var e1=null;function Mce(e){e1===null?e1=[e]:e1.push(e)}function dBe(e,n,r,i){var o=n.interleaved;return o===null?(r.next=r,Mce(n)):(r.next=o.next,o.next=r),n.interleaved=r,Ry(e,i)}function Ry(e,n){e.lanes|=n;var r=e.alternate;for(r!==null&&(r.lanes|=n),r=e,e=e.return;e!==null;)e.childLanes|=n,r=e.alternate,r!==null&&(r.childLanes|=n),r=e,e=e.return;return r.tag===3?r.stateNode:null}var gb=!1;function Pce(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fBe(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function dy(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function o0(e,n,r){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,uo&2){var o=i.pending;return o===null?n.next=n:(n.next=o.next,o.next=n),i.pending=n,Ry(e,r)}return o=i.interleaved,o===null?(n.next=n,Mce(i)):(n.next=o.next,o.next=n),i.interleaved=n,Ry(e,r)}function Y5(e,n,r){if(n=n.updateQueue,n!==null&&(n=n.shared,(r&4194240)!==0)){var i=n.lanes;i&=e.pendingLanes,r|=i,n.lanes=r,vce(e,r)}}function OSe(e,n){var r=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,r===i)){var o=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?o=a=s:a=a.next=s,r=r.next}while(r!==null);a===null?o=a=n:a=a.next=n}else o=a=n;r={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:i.shared,effects:i.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=n:e.next=n,r.lastBaseUpdate=n}function e8(e,n,r,i){var o=e.updateQueue;gb=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var c=l,u=c.next;c.next=null,s===null?a=u:s.next=u,s=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(a!==null){var f=o.baseState;s=0,d=u=c=null,l=a;do{var p=l.lane,h=l.eventTime;if((i&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,v=l;switch(p=n,h=r,v.tag){case 1:if(g=v.payload,typeof g=="function"){f=g.call(h,f,p);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,p=typeof g=="function"?g.call(h,f,p):g,p==null)break e;f=as({},f,p);break e;case 2:gb=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[l]:p.push(l))}else h={eventTime:h,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=h,c=f):d=d.next=h,s|=p;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;p=l,l=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(d===null&&(c=f),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,n=o.shared.interleaved,n!==null){o=n;do s|=o.lane,o=o.next;while(o!==n)}else a===null&&(o.shared.lanes=0);X1|=s,e.lanes=s,e.memoizedState=f}}function RSe(e,n,r){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var i=e[n],o=i.callback;if(o!==null){if(i.callback=null,i=r,typeof o!="function")throw Error(Dn(191,o));o.call(i)}}}var ak={},mm=Q0(ak),JP=Q0(ak),eA=Q0(ak);function t1(e){if(e===ak)throw Error(Dn(174));return e}function Ace(e,n){switch(ca(eA,n),ca(JP,e),ca(mm,ak),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Fne(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Fne(n,e)}Ca(mm),ca(mm,n)}function CO(){Ca(mm),Ca(JP),Ca(eA)}function pBe(e){t1(eA.current);var n=t1(mm.current),r=Fne(n,e.type);n!==r&&(ca(JP,e),ca(mm,r))}function Dce(e){JP.current===e&&(Ca(mm),Ca(JP))}var ns=Q0(0);function t8(e){for(var n=e;n!==null;){if(n.tag===13){var r=n.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var gY=[];function kce(){for(var e=0;e<gY.length;e++)gY[e]._workInProgressVersionPrimary=null;gY.length=0}var q5=Ky.ReactCurrentDispatcher,mY=Ky.ReactCurrentBatchConfig,K1=0,os=null,vl=null,Ul=null,n8=!1,H2=!1,tA=0,$Ot=0;function Nc(){throw Error(Dn(321))}function Lce(e,n){if(n===null)return!1;for(var r=0;r<n.length&&r<e.length;r++)if(!eg(e[r],n[r]))return!1;return!0}function $ce(e,n,r,i,o,a){if(K1=a,os=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,q5.current=e===null||e.memoizedState===null?UOt:HOt,e=r(i,o),H2){a=0;do{if(H2=!1,tA=0,25<=a)throw Error(Dn(301));a+=1,Ul=vl=null,n.updateQueue=null,q5.current=zOt,e=r(i,o)}while(H2)}if(q5.current=r8,n=vl!==null&&vl.next!==null,K1=0,Ul=vl=os=null,n8=!1,n)throw Error(Dn(300));return e}function Fce(){var e=tA!==0;return tA=0,e}function Gg(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ul===null?os.memoizedState=Ul=e:Ul=Ul.next=e,Ul}function xp(){if(vl===null){var e=os.alternate;e=e!==null?e.memoizedState:null}else e=vl.next;var n=Ul===null?os.memoizedState:Ul.next;if(n!==null)Ul=n,vl=e;else{if(e===null)throw Error(Dn(310));vl=e,e={memoizedState:vl.memoizedState,baseState:vl.baseState,baseQueue:vl.baseQueue,queue:vl.queue,next:null},Ul===null?os.memoizedState=Ul=e:Ul=Ul.next=e}return Ul}function nA(e,n){return typeof n=="function"?n(e):n}function vY(e){var n=xp(),r=n.queue;if(r===null)throw Error(Dn(311));r.lastRenderedReducer=e;var i=vl,o=i.baseQueue,a=r.pending;if(a!==null){if(o!==null){var s=o.next;o.next=a.next,a.next=s}i.baseQueue=o=a,r.pending=null}if(o!==null){a=o.next,i=i.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((K1&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=f,s=i):c=c.next=f,os.lanes|=d,X1|=d}u=u.next}while(u!==null&&u!==a);c===null?s=i:c.next=l,eg(i,n.memoizedState)||(ad=!0),n.memoizedState=i,n.baseState=s,n.baseQueue=c,r.lastRenderedState=i}if(e=r.interleaved,e!==null){o=e;do a=o.lane,os.lanes|=a,X1|=a,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[n.memoizedState,r.dispatch]}function yY(e){var n=xp(),r=n.queue;if(r===null)throw Error(Dn(311));r.lastRenderedReducer=e;var i=r.dispatch,o=r.pending,a=n.memoizedState;if(o!==null){r.pending=null;var s=o=o.next;do a=e(a,s.action),s=s.next;while(s!==o);eg(a,n.memoizedState)||(ad=!0),n.memoizedState=a,n.baseQueue===null&&(n.baseState=a),r.lastRenderedState=a}return[a,i]}function hBe(){}function gBe(e,n){var r=os,i=xp(),o=n(),a=!eg(i.memoizedState,o);if(a&&(i.memoizedState=o,ad=!0),i=i.queue,Bce(yBe.bind(null,r,i,e),[e]),i.getSnapshot!==n||a||Ul!==null&&Ul.memoizedState.tag&1){if(r.flags|=2048,rA(9,vBe.bind(null,r,i,o,n),void 0,null),ql===null)throw Error(Dn(349));K1&30||mBe(r,n,o)}return o}function mBe(e,n,r){e.flags|=16384,e={getSnapshot:n,value:r},n=os.updateQueue,n===null?(n={lastEffect:null,stores:null},os.updateQueue=n,n.stores=[e]):(r=n.stores,r===null?n.stores=[e]:r.push(e))}function vBe(e,n,r,i){n.value=r,n.getSnapshot=i,_Be(n)&&bBe(e)}function yBe(e,n,r){return r(function(){_Be(n)&&bBe(e)})}function _Be(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!eg(e,r)}catch{return!0}}function bBe(e){var n=Ry(e,1);n!==null&&Uh(n,e,1,-1)}function ISe(e){var n=Gg();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:nA,lastRenderedState:e},n.queue=e,e=e.dispatch=jOt.bind(null,os,e),[n.memoizedState,e]}function rA(e,n,r,i){return e={tag:e,create:n,destroy:r,deps:i,next:null},n=os.updateQueue,n===null?(n={lastEffect:null,stores:null},os.updateQueue=n,n.lastEffect=e.next=e):(r=n.lastEffect,r===null?n.lastEffect=e.next=e:(i=r.next,r.next=e,e.next=i,n.lastEffect=e)),e}function SBe(){return xp().memoizedState}function K5(e,n,r,i){var o=Gg();os.flags|=e,o.memoizedState=rA(1|n,r,void 0,i===void 0?null:i)}function i9(e,n,r,i){var o=xp();i=i===void 0?null:i;var a=void 0;if(vl!==null){var s=vl.memoizedState;if(a=s.destroy,i!==null&&Lce(i,s.deps)){o.memoizedState=rA(n,r,a,i);return}}os.flags|=e,o.memoizedState=rA(1|n,r,a,i)}function NSe(e,n){return K5(8390656,8,e,n)}function Bce(e,n){return i9(2048,8,e,n)}function EBe(e,n){return i9(4,2,e,n)}function CBe(e,n){return i9(4,4,e,n)}function wBe(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function xBe(e,n,r){return r=r!=null?r.concat([e]):null,i9(4,4,wBe.bind(null,n,e),r)}function jce(){}function TBe(e,n){var r=xp();n=n===void 0?null:n;var i=r.memoizedState;return i!==null&&n!==null&&Lce(n,i[1])?i[0]:(r.memoizedState=[e,n],e)}function OBe(e,n){var r=xp();n=n===void 0?null:n;var i=r.memoizedState;return i!==null&&n!==null&&Lce(n,i[1])?i[0]:(e=e(),r.memoizedState=[e,n],e)}function RBe(e,n,r){return K1&21?(eg(r,n)||(r=A8e(),os.lanes|=r,X1|=r,e.baseState=!0),n):(e.baseState&&(e.baseState=!1,ad=!0),e.memoizedState=r)}function FOt(e,n){var r=Bo;Bo=r!==0&&4>r?r:4,e(!0);var i=mY.transition;mY.transition={};try{e(!1),n()}finally{Bo=r,mY.transition=i}}function IBe(){return xp().memoizedState}function BOt(e,n,r){var i=s0(e);if(r={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null},NBe(e))MBe(n,r);else if(r=dBe(e,n,r,i),r!==null){var o=vu();Uh(r,e,i,o),PBe(r,n,i)}}function jOt(e,n,r){var i=s0(e),o={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null};if(NBe(e))MBe(n,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=n.lastRenderedReducer,a!==null))try{var s=n.lastRenderedState,l=a(s,r);if(o.hasEagerState=!0,o.eagerState=l,eg(l,s)){var c=n.interleaved;c===null?(o.next=o,Mce(n)):(o.next=c.next,c.next=o),n.interleaved=o;return}}catch{}finally{}r=dBe(e,n,o,i),r!==null&&(o=vu(),Uh(r,e,i,o),PBe(r,n,i))}}function NBe(e){var n=e.alternate;return e===os||n!==null&&n===os}function MBe(e,n){H2=n8=!0;var r=e.pending;r===null?n.next=n:(n.next=r.next,r.next=n),e.pending=n}function PBe(e,n,r){if(r&4194240){var i=n.lanes;i&=e.pendingLanes,r|=i,n.lanes=r,vce(e,r)}}var r8={readContext:wp,useCallback:Nc,useContext:Nc,useEffect:Nc,useImperativeHandle:Nc,useInsertionEffect:Nc,useLayoutEffect:Nc,useMemo:Nc,useReducer:Nc,useRef:Nc,useState:Nc,useDebugValue:Nc,useDeferredValue:Nc,useTransition:Nc,useMutableSource:Nc,useSyncExternalStore:Nc,useId:Nc,unstable_isNewReconciler:!1},UOt={readContext:wp,useCallback:function(e,n){return Gg().memoizedState=[e,n===void 0?null:n],e},useContext:wp,useEffect:NSe,useImperativeHandle:function(e,n,r){return r=r!=null?r.concat([e]):null,K5(4194308,4,wBe.bind(null,n,e),r)},useLayoutEffect:function(e,n){return K5(4194308,4,e,n)},useInsertionEffect:function(e,n){return K5(4,2,e,n)},useMemo:function(e,n){var r=Gg();return n=n===void 0?null:n,e=e(),r.memoizedState=[e,n],e},useReducer:function(e,n,r){var i=Gg();return n=r!==void 0?r(n):n,i.memoizedState=i.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},i.queue=e,e=e.dispatch=BOt.bind(null,os,e),[i.memoizedState,e]},useRef:function(e){var n=Gg();return e={current:e},n.memoizedState=e},useState:ISe,useDebugValue:jce,useDeferredValue:function(e){return Gg().memoizedState=e},useTransition:function(){var e=ISe(!1),n=e[0];return e=FOt.bind(null,e[1]),Gg().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,r){var i=os,o=Gg();if(Ha){if(r===void 0)throw Error(Dn(407));r=r()}else{if(r=n(),ql===null)throw Error(Dn(349));K1&30||mBe(i,n,r)}o.memoizedState=r;var a={value:r,getSnapshot:n};return o.queue=a,NSe(yBe.bind(null,i,a,e),[e]),i.flags|=2048,rA(9,vBe.bind(null,i,a,r,n),void 0,null),r},useId:function(){var e=Gg(),n=ql.identifierPrefix;if(Ha){var r=ey,i=Jv;r=(i&~(1<<32-jh(i)-1)).toString(32)+r,n=":"+n+"R"+r,r=tA++,0<r&&(n+="H"+r.toString(32)),n+=":"}else r=$Ot++,n=":"+n+"r"+r.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},HOt={readContext:wp,useCallback:TBe,useContext:wp,useEffect:Bce,useImperativeHandle:xBe,useInsertionEffect:EBe,useLayoutEffect:CBe,useMemo:OBe,useReducer:vY,useRef:SBe,useState:function(){return vY(nA)},useDebugValue:jce,useDeferredValue:function(e){var n=xp();return RBe(n,vl.memoizedState,e)},useTransition:function(){var e=vY(nA)[0],n=xp().memoizedState;return[e,n]},useMutableSource:hBe,useSyncExternalStore:gBe,useId:IBe,unstable_isNewReconciler:!1},zOt={readContext:wp,useCallback:TBe,useContext:wp,useEffect:Bce,useImperativeHandle:xBe,useInsertionEffect:EBe,useLayoutEffect:CBe,useMemo:OBe,useReducer:yY,useRef:SBe,useState:function(){return yY(nA)},useDebugValue:jce,useDeferredValue:function(e){var n=xp();return vl===null?n.memoizedState=e:RBe(n,vl.memoizedState,e)},useTransition:function(){var e=yY(nA)[0],n=xp().memoizedState;return[e,n]},useMutableSource:hBe,useSyncExternalStore:gBe,useId:IBe,unstable_isNewReconciler:!1};function _h(e,n){if(e&&e.defaultProps){n=as({},n),e=e.defaultProps;for(var r in e)n[r]===void 0&&(n[r]=e[r]);return n}return n}function ore(e,n,r,i){n=e.memoizedState,r=r(i,n),r=r==null?n:as({},n,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var o9={isMounted:function(e){return(e=e._reactInternals)?ZC(e)===e:!1},enqueueSetState:function(e,n,r){e=e._reactInternals;var i=vu(),o=s0(e),a=dy(i,o);a.payload=n,r!=null&&(a.callback=r),n=o0(e,a,o),n!==null&&(Uh(n,e,o,i),Y5(n,e,o))},enqueueReplaceState:function(e,n,r){e=e._reactInternals;var i=vu(),o=s0(e),a=dy(i,o);a.tag=1,a.payload=n,r!=null&&(a.callback=r),n=o0(e,a,o),n!==null&&(Uh(n,e,o,i),Y5(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var r=vu(),i=s0(e),o=dy(r,i);o.tag=2,n!=null&&(o.callback=n),n=o0(e,o,i),n!==null&&(Uh(n,e,i,r),Y5(n,e,i))}};function MSe(e,n,r,i,o,a,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,a,s):n.prototype&&n.prototype.isPureReactComponent?!KP(r,i)||!KP(o,a):!0}function ABe(e,n,r){var i=!1,o=E0,a=n.contextType;return typeof a=="object"&&a!==null?a=wp(a):(o=pd(n)?Y1:Vc.current,i=n.contextTypes,a=(i=i!=null)?bO(e,o):E0),n=new n(r,a),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=o9,e.stateNode=n,n._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),n}function PSe(e,n,r,i){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(r,i),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(r,i),n.state!==e&&o9.enqueueReplaceState(n,n.state,null)}function are(e,n,r,i){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},Pce(e);var a=n.contextType;typeof a=="object"&&a!==null?o.context=wp(a):(a=pd(n)?Y1:Vc.current,o.context=bO(e,a)),o.state=e.memoizedState,a=n.getDerivedStateFromProps,typeof a=="function"&&(ore(e,n,a,r),o.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(n=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),n!==o.state&&o9.enqueueReplaceState(o,o.state,null),e8(e,r,o,i),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function wO(e,n){try{var r="",i=n;do r+=vTt(i),i=i.return;while(i);var o=r}catch(a){o=`
Error generating stack: `+a.message+`
`+a.stack}return{value:e,source:n,stack:o,digest:null}}function _Y(e,n,r){return{value:e,source:null,stack:r??null,digest:n??null}}function sre(e,n){try{console.error(n.value)}catch(r){setTimeout(function(){throw r})}}var VOt=typeof WeakMap=="function"?WeakMap:Map;function DBe(e,n,r){r=dy(-1,r),r.tag=3,r.payload={element:null};var i=n.value;return r.callback=function(){o8||(o8=!0,vre=i),sre(e,n)},r}function kBe(e,n,r){r=dy(-1,r),r.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var o=n.value;r.payload=function(){return i(o)},r.callback=function(){sre(e,n)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){sre(e,n),typeof i!="function"&&(a0===null?a0=new Set([this]):a0.add(this));var s=n.stack;this.componentDidCatch(n.value,{componentStack:s!==null?s:""})}),r}function ASe(e,n,r){var i=e.pingCache;if(i===null){i=e.pingCache=new VOt;var o=new Set;i.set(n,o)}else o=i.get(n),o===void 0&&(o=new Set,i.set(n,o));o.has(r)||(o.add(r),e=iRt.bind(null,e,n,r),n.then(e,e))}function DSe(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function kSe(e,n,r,i,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===n?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(n=dy(-1,1),n.tag=2,o0(r,n,1))),r.lanes|=1),e)}var GOt=Ky.ReactCurrentOwner,ad=!1;function su(e,n,r,i){n.child=e===null?uBe(n,null,r,i):EO(n,e.child,r,i)}function LSe(e,n,r,i,o){r=r.render;var a=n.ref;return jT(n,o),i=$ce(e,n,r,i,a,o),r=Fce(),e!==null&&!ad?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~o,Iy(e,n,o)):(Ha&&r&&xce(n),n.flags|=1,su(e,n,i,o),n.child)}function $Se(e,n,r,i,o){if(e===null){var a=r.type;return typeof a=="function"&&!qce(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(n.tag=15,n.type=a,LBe(e,n,a,i,o)):(e=J5(r.type,null,i,n,n.mode,o),e.ref=n.ref,e.return=n,n.child=e)}if(a=e.child,!(e.lanes&o)){var s=a.memoizedProps;if(r=r.compare,r=r!==null?r:KP,r(s,i)&&e.ref===n.ref)return Iy(e,n,o)}return n.flags|=1,e=l0(a,i),e.ref=n.ref,e.return=n,n.child=e}function LBe(e,n,r,i,o){if(e!==null){var a=e.memoizedProps;if(KP(a,i)&&e.ref===n.ref)if(ad=!1,n.pendingProps=i=a,(e.lanes&o)!==0)e.flags&131072&&(ad=!0);else return n.lanes=e.lanes,Iy(e,n,o)}return lre(e,n,r,i,o)}function $Be(e,n,r){var i=n.pendingProps,o=i.children,a=e!==null?e.memoizedState:null;if(i.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},ca(gT,Kd),Kd|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,ca(gT,Kd),Kd|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=a!==null?a.baseLanes:r,ca(gT,Kd),Kd|=i}else a!==null?(i=a.baseLanes|r,n.memoizedState=null):i=r,ca(gT,Kd),Kd|=i;return su(e,n,o,r),n.child}function FBe(e,n){var r=n.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(n.flags|=512,n.flags|=2097152)}function lre(e,n,r,i,o){var a=pd(r)?Y1:Vc.current;return a=bO(n,a),jT(n,o),r=$ce(e,n,r,i,a,o),i=Fce(),e!==null&&!ad?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~o,Iy(e,n,o)):(Ha&&i&&xce(n),n.flags|=1,su(e,n,r,o),n.child)}function FSe(e,n,r,i,o){if(pd(r)){var a=!0;KF(n)}else a=!1;if(jT(n,o),n.stateNode===null)X5(e,n),ABe(n,r,i),are(n,r,i,o),i=!0;else if(e===null){var s=n.stateNode,l=n.memoizedProps;s.props=l;var c=s.context,u=r.contextType;typeof u=="object"&&u!==null?u=wp(u):(u=pd(r)?Y1:Vc.current,u=bO(n,u));var d=r.getDerivedStateFromProps,f=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==i||c!==u)&&PSe(n,s,i,u),gb=!1;var p=n.memoizedState;s.state=p,e8(n,i,s,o),c=n.memoizedState,l!==i||p!==c||fd.current||gb?(typeof d=="function"&&(ore(n,r,d,i),c=n.memoizedState),(l=gb||MSe(n,r,l,i,p,c,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(n.flags|=4194308)):(typeof s.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=i,n.memoizedState=c),s.props=i,s.state=c,s.context=u,i=l):(typeof s.componentDidMount=="function"&&(n.flags|=4194308),i=!1)}else{s=n.stateNode,fBe(e,n),l=n.memoizedProps,u=n.type===n.elementType?l:_h(n.type,l),s.props=u,f=n.pendingProps,p=s.context,c=r.contextType,typeof c=="object"&&c!==null?c=wp(c):(c=pd(r)?Y1:Vc.current,c=bO(n,c));var h=r.getDerivedStateFromProps;(d=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||p!==c)&&PSe(n,s,i,c),gb=!1,p=n.memoizedState,s.state=p,e8(n,i,s,o);var g=n.memoizedState;l!==f||p!==g||fd.current||gb?(typeof h=="function"&&(ore(n,r,h,i),g=n.memoizedState),(u=gb||MSe(n,r,u,i,p,g,c)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(i,g,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(i,g,c)),typeof s.componentDidUpdate=="function"&&(n.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(n.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(n.flags|=1024),n.memoizedProps=i,n.memoizedState=g),s.props=i,s.state=g,s.context=c,i=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(n.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(n.flags|=1024),i=!1)}return cre(e,n,r,i,a,o)}function cre(e,n,r,i,o,a){FBe(e,n);var s=(n.flags&128)!==0;if(!i&&!s)return o&&CSe(n,r,!1),Iy(e,n,a);i=n.stateNode,GOt.current=n;var l=s&&typeof r.getDerivedStateFromError!="function"?null:i.render();return n.flags|=1,e!==null&&s?(n.child=EO(n,e.child,null,a),n.child=EO(n,null,l,a)):su(e,n,l,a),n.memoizedState=i.state,o&&CSe(n,r,!0),n.child}function BBe(e){var n=e.stateNode;n.pendingContext?ESe(e,n.pendingContext,n.pendingContext!==n.context):n.context&&ESe(e,n.context,!1),Ace(e,n.containerInfo)}function BSe(e,n,r,i,o){return SO(),Oce(o),n.flags|=256,su(e,n,r,i),n.child}var ure={dehydrated:null,treeContext:null,retryLane:0};function dre(e){return{baseLanes:e,cachePool:null,transitions:null}}function jBe(e,n,r){var i=n.pendingProps,o=ns.current,a=!1,s=(n.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(a=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ca(ns,o&1),e===null)return rre(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(n.mode&1?e.data==="$!"?n.lanes=8:n.lanes=1073741824:n.lanes=1,null):(s=i.children,e=i.fallback,a?(i=n.mode,a=n.child,s={mode:"hidden",children:s},!(i&1)&&a!==null?(a.childLanes=0,a.pendingProps=s):a=l9(s,i,0,null),e=T1(e,i,r,null),a.return=n,e.return=n,a.sibling=e,n.child=a,n.child.memoizedState=dre(r),n.memoizedState=ure,e):Uce(n,s));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return WOt(e,n,s,i,l,o,r);if(a){a=i.fallback,s=n.mode,o=e.child,l=o.sibling;var c={mode:"hidden",children:i.children};return!(s&1)&&n.child!==o?(i=n.child,i.childLanes=0,i.pendingProps=c,n.deletions=null):(i=l0(o,c),i.subtreeFlags=o.subtreeFlags&14680064),l!==null?a=l0(l,a):(a=T1(a,s,r,null),a.flags|=2),a.return=n,i.return=n,i.sibling=a,n.child=i,i=a,a=n.child,s=e.child.memoizedState,s=s===null?dre(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~r,n.memoizedState=ure,i}return a=e.child,e=a.sibling,i=l0(a,{mode:"visible",children:i.children}),!(n.mode&1)&&(i.lanes=r),i.return=n,i.sibling=null,e!==null&&(r=n.deletions,r===null?(n.deletions=[e],n.flags|=16):r.push(e)),n.child=i,n.memoizedState=null,i}function Uce(e,n){return n=l9({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function M3(e,n,r,i){return i!==null&&Oce(i),EO(n,e.child,null,r),e=Uce(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function WOt(e,n,r,i,o,a,s){if(r)return n.flags&256?(n.flags&=-257,i=_Y(Error(Dn(422))),M3(e,n,s,i)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(a=i.fallback,o=n.mode,i=l9({mode:"visible",children:i.children},o,0,null),a=T1(a,o,s,null),a.flags|=2,i.return=n,a.return=n,i.sibling=a,n.child=i,n.mode&1&&EO(n,e.child,null,s),n.child.memoizedState=dre(s),n.memoizedState=ure,a);if(!(n.mode&1))return M3(e,n,s,null);if(o.data==="$!"){if(i=o.nextSibling&&o.nextSibling.dataset,i)var l=i.dgst;return i=l,a=Error(Dn(419)),i=_Y(a,i,void 0),M3(e,n,s,i)}if(l=(s&e.childLanes)!==0,ad||l){if(i=ql,i!==null){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(i.suspendedLanes|s)?0:o,o!==0&&o!==a.retryLane&&(a.retryLane=o,Ry(e,o),Uh(i,e,o,-1))}return Yce(),i=_Y(Error(Dn(421))),M3(e,n,s,i)}return o.data==="$?"?(n.flags|=128,n.child=e.child,n=oRt.bind(null,e),o._reactRetry=n,null):(e=a.treeContext,sf=i0(o.nextSibling),hf=n,Ha=!0,Oh=null,e!==null&&(lp[cp++]=Jv,lp[cp++]=ey,lp[cp++]=q1,Jv=e.id,ey=e.overflow,q1=n),n=Uce(n,i.children),n.flags|=4096,n)}function jSe(e,n,r){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n),ire(e.return,n,r)}function bY(e,n,r,i,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:i,tail:r,tailMode:o}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=r,a.tailMode=o)}function UBe(e,n,r){var i=n.pendingProps,o=i.revealOrder,a=i.tail;if(su(e,n,i.children,r),i=ns.current,i&2)i=i&1|2,n.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jSe(e,r,n);else if(e.tag===19)jSe(e,r,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(ca(ns,i),!(n.mode&1))n.memoizedState=null;else switch(o){case"forwards":for(r=n.child,o=null;r!==null;)e=r.alternate,e!==null&&t8(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=n.child,n.child=null):(o=r.sibling,r.sibling=null),bY(n,!1,o,r,a);break;case"backwards":for(r=null,o=n.child,n.child=null;o!==null;){if(e=o.alternate,e!==null&&t8(e)===null){n.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}bY(n,!0,r,null,a);break;case"together":bY(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function X5(e,n){!(n.mode&1)&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Iy(e,n,r){if(e!==null&&(n.dependencies=e.dependencies),X1|=n.lanes,!(r&n.childLanes))return null;if(e!==null&&n.child!==e.child)throw Error(Dn(153));if(n.child!==null){for(e=n.child,r=l0(e,e.pendingProps),n.child=r,r.return=n;e.sibling!==null;)e=e.sibling,r=r.sibling=l0(e,e.pendingProps),r.return=n;r.sibling=null}return n.child}function YOt(e,n,r){switch(n.tag){case 3:BBe(n),SO();break;case 5:pBe(n);break;case 1:pd(n.type)&&KF(n);break;case 4:Ace(n,n.stateNode.containerInfo);break;case 10:var i=n.type._context,o=n.memoizedProps.value;ca(ZF,i._currentValue),i._currentValue=o;break;case 13:if(i=n.memoizedState,i!==null)return i.dehydrated!==null?(ca(ns,ns.current&1),n.flags|=128,null):r&n.child.childLanes?jBe(e,n,r):(ca(ns,ns.current&1),e=Iy(e,n,r),e!==null?e.sibling:null);ca(ns,ns.current&1);break;case 19:if(i=(r&n.childLanes)!==0,e.flags&128){if(i)return UBe(e,n,r);n.flags|=128}if(o=n.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ca(ns,ns.current),i)break;return null;case 22:case 23:return n.lanes=0,$Be(e,n,r)}return Iy(e,n,r)}var HBe,fre,zBe,VBe;HBe=function(e,n){for(var r=n.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};fre=function(){};zBe=function(e,n,r,i){var o=e.memoizedProps;if(o!==i){e=n.stateNode,t1(mm.current);var a=null;switch(r){case"input":o=Dne(e,o),i=Dne(e,i),a=[];break;case"select":o=as({},o,{value:void 0}),i=as({},i,{value:void 0}),a=[];break;case"textarea":o=$ne(e,o),i=$ne(e,i),a=[];break;default:typeof o.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=YF)}Bne(r,i);var s;r=null;for(u in o)if(!i.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(s in l)l.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(HP.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in i){var c=i[u];if(l=o!=null?o[u]:void 0,i.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(r||(r={}),r[s]=c[s])}else r||(a||(a=[]),a.push(u,r)),r=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(a=a||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(a=a||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(HP.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&ma("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}r&&(a=a||[]).push("style",r);var u=a;(n.updateQueue=u)&&(n.flags|=4)}};VBe=function(e,n,r,i){r!==i&&(n.flags|=4)};function eM(e,n){if(!Ha)switch(e.tailMode){case"hidden":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Mc(e){var n=e.alternate!==null&&e.alternate.child===e.child,r=0,i=0;if(n)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,i|=o.subtreeFlags&14680064,i|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=r,n}function qOt(e,n,r){var i=n.pendingProps;switch(Tce(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mc(n),null;case 1:return pd(n.type)&&qF(),Mc(n),null;case 3:return i=n.stateNode,CO(),Ca(fd),Ca(Vc),kce(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(I3(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,Oh!==null&&(bre(Oh),Oh=null))),fre(e,n),Mc(n),null;case 5:Dce(n);var o=t1(eA.current);if(r=n.type,e!==null&&n.stateNode!=null)zBe(e,n,r,i,o),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!i){if(n.stateNode===null)throw Error(Dn(166));return Mc(n),null}if(e=t1(mm.current),I3(n)){i=n.stateNode,r=n.type;var a=n.memoizedProps;switch(i[om]=n,i[ZP]=a,e=(n.mode&1)!==0,r){case"dialog":ma("cancel",i),ma("close",i);break;case"iframe":case"object":case"embed":ma("load",i);break;case"video":case"audio":for(o=0;o<r2.length;o++)ma(r2[o],i);break;case"source":ma("error",i);break;case"img":case"image":case"link":ma("error",i),ma("load",i);break;case"details":ma("toggle",i);break;case"input":K0e(i,a),ma("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!a.multiple},ma("invalid",i);break;case"textarea":Q0e(i,a),ma("invalid",i)}Bne(r,a),o=null;for(var s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="children"?typeof l=="string"?i.textContent!==l&&(a.suppressHydrationWarning!==!0&&R3(i.textContent,l,e),o=["children",l]):typeof l=="number"&&i.textContent!==""+l&&(a.suppressHydrationWarning!==!0&&R3(i.textContent,l,e),o=["children",""+l]):HP.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&ma("scroll",i)}switch(r){case"input":b3(i),X0e(i,a,!0);break;case"textarea":b3(i),Z0e(i);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(i.onclick=YF)}i=o,n.updateQueue=i,i!==null&&(n.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=y8e(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=s.createElement(r,{is:i.is}):(e=s.createElement(r),r==="select"&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,r),e[om]=n,e[ZP]=i,HBe(e,n,!1,!1),n.stateNode=e;e:{switch(s=jne(r,i),r){case"dialog":ma("cancel",e),ma("close",e),o=i;break;case"iframe":case"object":case"embed":ma("load",e),o=i;break;case"video":case"audio":for(o=0;o<r2.length;o++)ma(r2[o],e);o=i;break;case"source":ma("error",e),o=i;break;case"img":case"image":case"link":ma("error",e),ma("load",e),o=i;break;case"details":ma("toggle",e),o=i;break;case"input":K0e(e,i),o=Dne(e,i),ma("invalid",e);break;case"option":o=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},o=as({},i,{value:void 0}),ma("invalid",e);break;case"textarea":Q0e(e,i),o=$ne(e,i),ma("invalid",e);break;default:o=i}Bne(r,o),l=o;for(a in l)if(l.hasOwnProperty(a)){var c=l[a];a==="style"?S8e(e,c):a==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&_8e(e,c)):a==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&zP(e,c):typeof c=="number"&&zP(e,""+c):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(HP.hasOwnProperty(a)?c!=null&&a==="onScroll"&&ma("scroll",e):c!=null&&dce(e,a,c,s))}switch(r){case"input":b3(e),X0e(e,i,!1);break;case"textarea":b3(e),Z0e(e);break;case"option":i.value!=null&&e.setAttribute("value",""+S0(i.value));break;case"select":e.multiple=!!i.multiple,a=i.value,a!=null?LT(e,!!i.multiple,a,!1):i.defaultValue!=null&&LT(e,!!i.multiple,i.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=YF)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return Mc(n),null;case 6:if(e&&n.stateNode!=null)VBe(e,n,e.memoizedProps,i);else{if(typeof i!="string"&&n.stateNode===null)throw Error(Dn(166));if(r=t1(eA.current),t1(mm.current),I3(n)){if(i=n.stateNode,r=n.memoizedProps,i[om]=n,(a=i.nodeValue!==r)&&(e=hf,e!==null))switch(e.tag){case 3:R3(i.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&R3(i.nodeValue,r,(e.mode&1)!==0)}a&&(n.flags|=4)}else i=(r.nodeType===9?r:r.ownerDocument).createTextNode(i),i[om]=n,n.stateNode=i}return Mc(n),null;case 13:if(Ca(ns),i=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ha&&sf!==null&&n.mode&1&&!(n.flags&128))lBe(),SO(),n.flags|=98560,a=!1;else if(a=I3(n),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(Dn(318));if(a=n.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(Dn(317));a[om]=n}else SO(),!(n.flags&128)&&(n.memoizedState=null),n.flags|=4;Mc(n),a=!1}else Oh!==null&&(bre(Oh),Oh=null),a=!0;if(!a)return n.flags&65536?n:null}return n.flags&128?(n.lanes=r,n):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(n.child.flags|=8192,n.mode&1&&(e===null||ns.current&1?Cl===0&&(Cl=3):Yce())),n.updateQueue!==null&&(n.flags|=4),Mc(n),null);case 4:return CO(),fre(e,n),e===null&&XP(n.stateNode.containerInfo),Mc(n),null;case 10:return Nce(n.type._context),Mc(n),null;case 17:return pd(n.type)&&qF(),Mc(n),null;case 19:if(Ca(ns),a=n.memoizedState,a===null)return Mc(n),null;if(i=(n.flags&128)!==0,s=a.rendering,s===null)if(i)eM(a,!1);else{if(Cl!==0||e!==null&&e.flags&128)for(e=n.child;e!==null;){if(s=t8(e),s!==null){for(n.flags|=128,eM(a,!1),i=s.updateQueue,i!==null&&(n.updateQueue=i,n.flags|=4),n.subtreeFlags=0,i=r,r=n.child;r!==null;)a=r,e=i,a.flags&=14680066,s=a.alternate,s===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ca(ns,ns.current&1|2),n.child}e=e.sibling}a.tail!==null&&Bs()>xO&&(n.flags|=128,i=!0,eM(a,!1),n.lanes=4194304)}else{if(!i)if(e=t8(s),e!==null){if(n.flags|=128,i=!0,r=e.updateQueue,r!==null&&(n.updateQueue=r,n.flags|=4),eM(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Ha)return Mc(n),null}else 2*Bs()-a.renderingStartTime>xO&&r!==1073741824&&(n.flags|=128,i=!0,eM(a,!1),n.lanes=4194304);a.isBackwards?(s.sibling=n.child,n.child=s):(r=a.last,r!==null?r.sibling=s:n.child=s,a.last=s)}return a.tail!==null?(n=a.tail,a.rendering=n,a.tail=n.sibling,a.renderingStartTime=Bs(),n.sibling=null,r=ns.current,ca(ns,i?r&1|2:r&1),n):(Mc(n),null);case 22:case 23:return Wce(),i=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(n.flags|=8192),i&&n.mode&1?Kd&1073741824&&(Mc(n),n.subtreeFlags&6&&(n.flags|=8192)):Mc(n),null;case 24:return null;case 25:return null}throw Error(Dn(156,n.tag))}function KOt(e,n){switch(Tce(n),n.tag){case 1:return pd(n.type)&&qF(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return CO(),Ca(fd),Ca(Vc),kce(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return Dce(n),null;case 13:if(Ca(ns),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(Dn(340));SO()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Ca(ns),null;case 4:return CO(),null;case 10:return Nce(n.type._context),null;case 22:case 23:return Wce(),null;case 24:return null;default:return null}}var P3=!1,$c=!1,XOt=typeof WeakSet=="function"?WeakSet:Set,cr=null;function hT(e,n){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(i){vs(e,n,i)}else r.current=null}function pre(e,n,r){try{r()}catch(i){vs(e,n,i)}}var USe=!1;function QOt(e,n){if(Xne=VF,e=K8e(),wce(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var o=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||o!==0&&f.nodeType!==3||(l=s+o),f!==a||i!==0&&f.nodeType!==3||(c=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++u===o&&(l=s),p===a&&++d===i&&(c=s),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}r=l===-1||c===-1?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Qne={focusedElem:e,selectionRange:r},VF=!1,cr=n;cr!==null;)if(n=cr,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,cr=e;else for(;cr!==null;){n=cr;try{var g=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,y=g.memoizedState,_=n.stateNode,S=_.getSnapshotBeforeUpdate(n.elementType===n.type?v:_h(n.type,v),y);_.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var b=n.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(Dn(163))}}catch(E){vs(n,n.return,E)}if(e=n.sibling,e!==null){e.return=n.return,cr=e;break}cr=n.return}return g=USe,USe=!1,g}function z2(e,n,r){var i=n.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var o=i=i.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&pre(n,r,a)}o=o.next}while(o!==i)}}function a9(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do{if((r.tag&e)===e){var i=r.create;r.destroy=i()}r=r.next}while(r!==n)}}function hre(e){var n=e.ref;if(n!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof n=="function"?n(e):n.current=e}}function GBe(e){var n=e.alternate;n!==null&&(e.alternate=null,GBe(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[om],delete n[ZP],delete n[ere],delete n[AOt],delete n[DOt])),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 WBe(e){return e.tag===5||e.tag===3||e.tag===4}function HSe(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||WBe(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 gre(e,n,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,n?r.nodeType===8?r.parentNode.insertBefore(e,n):r.insertBefore(e,n):(r.nodeType===8?(n=r.parentNode,n.insertBefore(e,r)):(n=r,n.appendChild(e)),r=r._reactRootContainer,r!=null||n.onclick!==null||(n.onclick=YF));else if(i!==4&&(e=e.child,e!==null))for(gre(e,n,r),e=e.sibling;e!==null;)gre(e,n,r),e=e.sibling}function mre(e,n,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,n?r.insertBefore(e,n):r.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(mre(e,n,r),e=e.sibling;e!==null;)mre(e,n,r),e=e.sibling}var cc=null,Ch=!1;function B_(e,n,r){for(r=r.child;r!==null;)YBe(e,n,r),r=r.sibling}function YBe(e,n,r){if(gm&&typeof gm.onCommitFiberUnmount=="function")try{gm.onCommitFiberUnmount(Z7,r)}catch{}switch(r.tag){case 5:$c||hT(r,n);case 6:var i=cc,o=Ch;cc=null,B_(e,n,r),cc=i,Ch=o,cc!==null&&(Ch?(e=cc,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):cc.removeChild(r.stateNode));break;case 18:cc!==null&&(Ch?(e=cc,r=r.stateNode,e.nodeType===8?pY(e.parentNode,r):e.nodeType===1&&pY(e,r),YP(e)):pY(cc,r.stateNode));break;case 4:i=cc,o=Ch,cc=r.stateNode.containerInfo,Ch=!0,B_(e,n,r),cc=i,Ch=o;break;case 0:case 11:case 14:case 15:if(!$c&&(i=r.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){o=i=i.next;do{var a=o,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&pre(r,n,s),o=o.next}while(o!==i)}B_(e,n,r);break;case 1:if(!$c&&(hT(r,n),i=r.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=r.memoizedProps,i.state=r.memoizedState,i.componentWillUnmount()}catch(l){vs(r,n,l)}B_(e,n,r);break;case 21:B_(e,n,r);break;case 22:r.mode&1?($c=(i=$c)||r.memoizedState!==null,B_(e,n,r),$c=i):B_(e,n,r);break;default:B_(e,n,r)}}function zSe(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new XOt),n.forEach(function(i){var o=aRt.bind(null,e,i);r.has(i)||(r.add(i),i.then(o,o))})}}function uh(e,n){var r=n.deletions;if(r!==null)for(var i=0;i<r.length;i++){var o=r[i];try{var a=e,s=n,l=s;e:for(;l!==null;){switch(l.tag){case 5:cc=l.stateNode,Ch=!1;break e;case 3:cc=l.stateNode.containerInfo,Ch=!0;break e;case 4:cc=l.stateNode.containerInfo,Ch=!0;break e}l=l.return}if(cc===null)throw Error(Dn(160));YBe(a,s,o),cc=null,Ch=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){vs(o,n,u)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)qBe(n,e),n=n.sibling}function qBe(e,n){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(uh(n,e),jg(e),i&4){try{z2(3,e,e.return),a9(3,e)}catch(v){vs(e,e.return,v)}try{z2(5,e,e.return)}catch(v){vs(e,e.return,v)}}break;case 1:uh(n,e),jg(e),i&512&&r!==null&&hT(r,r.return);break;case 5:if(uh(n,e),jg(e),i&512&&r!==null&&hT(r,r.return),e.flags&32){var o=e.stateNode;try{zP(o,"")}catch(v){vs(e,e.return,v)}}if(i&4&&(o=e.stateNode,o!=null)){var a=e.memoizedProps,s=r!==null?r.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&a.type==="radio"&&a.name!=null&&m8e(o,a),jne(l,s);var u=jne(l,a);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];d==="style"?S8e(o,f):d==="dangerouslySetInnerHTML"?_8e(o,f):d==="children"?zP(o,f):dce(o,d,f,u)}switch(l){case"input":kne(o,a);break;case"textarea":v8e(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?LT(o,!!a.multiple,h,!1):p!==!!a.multiple&&(a.defaultValue!=null?LT(o,!!a.multiple,a.defaultValue,!0):LT(o,!!a.multiple,a.multiple?[]:"",!1))}o[ZP]=a}catch(v){vs(e,e.return,v)}}break;case 6:if(uh(n,e),jg(e),i&4){if(e.stateNode===null)throw Error(Dn(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(v){vs(e,e.return,v)}}break;case 3:if(uh(n,e),jg(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{YP(n.containerInfo)}catch(v){vs(e,e.return,v)}break;case 4:uh(n,e),jg(e);break;case 13:uh(n,e),jg(e),o=e.child,o.flags&8192&&(a=o.memoizedState!==null,o.stateNode.isHidden=a,!a||o.alternate!==null&&o.alternate.memoizedState!==null||(Vce=Bs())),i&4&&zSe(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?($c=(u=$c)||d,uh(n,e),$c=u):uh(n,e),jg(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(cr=e,d=e.child;d!==null;){for(f=cr=d;cr!==null;){switch(p=cr,h=p.child,p.tag){case 0:case 11:case 14:case 15:z2(4,p,p.return);break;case 1:hT(p,p.return);var g=p.stateNode;if(typeof g.componentWillUnmount=="function"){i=p,r=p.return;try{n=i,g.props=n.memoizedProps,g.state=n.memoizedState,g.componentWillUnmount()}catch(v){vs(i,r,v)}}break;case 5:hT(p,p.return);break;case 22:if(p.memoizedState!==null){GSe(f);continue}}h!==null?(h.return=p,cr=h):GSe(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,u?(a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(l=f.stateNode,c=f.memoizedProps.style,s=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=b8e("display",s))}catch(v){vs(e,e.return,v)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){vs(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:uh(n,e),jg(e),i&4&&zSe(e);break;case 21:break;default:uh(n,e),jg(e)}}function jg(e){var n=e.flags;if(n&2){try{e:{for(var r=e.return;r!==null;){if(WBe(r)){var i=r;break e}r=r.return}throw Error(Dn(160))}switch(i.tag){case 5:var o=i.stateNode;i.flags&32&&(zP(o,""),i.flags&=-33);var a=HSe(e);mre(e,a,o);break;case 3:case 4:var s=i.stateNode.containerInfo,l=HSe(e);gre(e,l,s);break;default:throw Error(Dn(161))}}catch(c){vs(e,e.return,c)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function ZOt(e,n,r){cr=e,KBe(e)}function KBe(e,n,r){for(var i=(e.mode&1)!==0;cr!==null;){var o=cr,a=o.child;if(o.tag===22&&i){var s=o.memoizedState!==null||P3;if(!s){var l=o.alternate,c=l!==null&&l.memoizedState!==null||$c;l=P3;var u=$c;if(P3=s,($c=c)&&!u)for(cr=o;cr!==null;)s=cr,c=s.child,s.tag===22&&s.memoizedState!==null?WSe(o):c!==null?(c.return=s,cr=c):WSe(o);for(;a!==null;)cr=a,KBe(a),a=a.sibling;cr=o,P3=l,$c=u}VSe(e)}else o.subtreeFlags&8772&&a!==null?(a.return=o,cr=a):VSe(e)}}function VSe(e){for(;cr!==null;){var n=cr;if(n.flags&8772){var r=n.alternate;try{if(n.flags&8772)switch(n.tag){case 0:case 11:case 15:$c||a9(5,n);break;case 1:var i=n.stateNode;if(n.flags&4&&!$c)if(r===null)i.componentDidMount();else{var o=n.elementType===n.type?r.memoizedProps:_h(n.type,r.memoizedProps);i.componentDidUpdate(o,r.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var a=n.updateQueue;a!==null&&RSe(n,a,i);break;case 3:var s=n.updateQueue;if(s!==null){if(r=null,n.child!==null)switch(n.child.tag){case 5:r=n.child.stateNode;break;case 1:r=n.child.stateNode}RSe(n,s,r)}break;case 5:var l=n.stateNode;if(r===null&&n.flags&4){r=l;var c=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var u=n.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&YP(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Dn(163))}$c||n.flags&512&&hre(n)}catch(p){vs(n,n.return,p)}}if(n===e){cr=null;break}if(r=n.sibling,r!==null){r.return=n.return,cr=r;break}cr=n.return}}function GSe(e){for(;cr!==null;){var n=cr;if(n===e){cr=null;break}var r=n.sibling;if(r!==null){r.return=n.return,cr=r;break}cr=n.return}}function WSe(e){for(;cr!==null;){var n=cr;try{switch(n.tag){case 0:case 11:case 15:var r=n.return;try{a9(4,n)}catch(c){vs(n,r,c)}break;case 1:var i=n.stateNode;if(typeof i.componentDidMount=="function"){var o=n.return;try{i.componentDidMount()}catch(c){vs(n,o,c)}}var a=n.return;try{hre(n)}catch(c){vs(n,a,c)}break;case 5:var s=n.return;try{hre(n)}catch(c){vs(n,s,c)}}}catch(c){vs(n,n.return,c)}if(n===e){cr=null;break}var l=n.sibling;if(l!==null){l.return=n.return,cr=l;break}cr=n.return}}var JOt=Math.ceil,i8=Ky.ReactCurrentDispatcher,Hce=Ky.ReactCurrentOwner,bp=Ky.ReactCurrentBatchConfig,uo=0,ql=null,il=null,gc=0,Kd=0,gT=Q0(0),Cl=0,iA=null,X1=0,s9=0,zce=0,V2=null,nd=null,Vce=0,xO=1/0,jv=null,o8=!1,vre=null,a0=null,A3=!1,$b=null,a8=0,G2=0,yre=null,Q5=-1,Z5=0;function vu(){return uo&6?Bs():Q5!==-1?Q5:Q5=Bs()}function s0(e){return e.mode&1?uo&2&&gc!==0?gc&-gc:LOt.transition!==null?(Z5===0&&(Z5=A8e()),Z5):(e=Bo,e!==0||(e=window.event,e=e===void 0?16:j8e(e.type)),e):1}function Uh(e,n,r,i){if(50<G2)throw G2=0,yre=null,Error(Dn(185));rk(e,r,i),(!(uo&2)||e!==ql)&&(e===ql&&(!(uo&2)&&(s9|=r),Cl===4&&wb(e,gc)),hd(e,i),r===1&&uo===0&&!(n.mode&1)&&(xO=Bs()+500,r9&&Z0()))}function hd(e,n){var r=e.callbackNode;LTt(e,n);var i=zF(e,e===ql?gc:0);if(i===0)r!==null&&tSe(r),e.callbackNode=null,e.callbackPriority=0;else if(n=i&-i,e.callbackPriority!==n){if(r!=null&&tSe(r),n===1)e.tag===0?kOt(YSe.bind(null,e)):oBe(YSe.bind(null,e)),MOt(function(){!(uo&6)&&Z0()}),r=null;else{switch(D8e(i)){case 1:r=mce;break;case 4:r=M8e;break;case 16:r=HF;break;case 536870912:r=P8e;break;default:r=HF}r=rje(r,XBe.bind(null,e))}e.callbackPriority=n,e.callbackNode=r}}function XBe(e,n){if(Q5=-1,Z5=0,uo&6)throw Error(Dn(327));var r=e.callbackNode;if(UT()&&e.callbackNode!==r)return null;var i=zF(e,e===ql?gc:0);if(i===0)return null;if(i&30||i&e.expiredLanes||n)n=s8(e,i);else{n=i;var o=uo;uo|=2;var a=ZBe();(ql!==e||gc!==n)&&(jv=null,xO=Bs()+500,x1(e,n));do try{nRt();break}catch(l){QBe(e,l)}while(!0);Ice(),i8.current=a,uo=o,il!==null?n=0:(ql=null,gc=0,n=Cl)}if(n!==0){if(n===2&&(o=Gne(e),o!==0&&(i=o,n=_re(e,o))),n===1)throw r=iA,x1(e,0),wb(e,i),hd(e,Bs()),r;if(n===6)wb(e,i);else{if(o=e.current.alternate,!(i&30)&&!eRt(o)&&(n=s8(e,i),n===2&&(a=Gne(e),a!==0&&(i=a,n=_re(e,a))),n===1))throw r=iA,x1(e,0),wb(e,i),hd(e,Bs()),r;switch(e.finishedWork=o,e.finishedLanes=i,n){case 0:case 1:throw Error(Dn(345));case 2:ME(e,nd,jv);break;case 3:if(wb(e,i),(i&130023424)===i&&(n=Vce+500-Bs(),10<n)){if(zF(e,0)!==0)break;if(o=e.suspendedLanes,(o&i)!==i){vu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Jne(ME.bind(null,e,nd,jv),n);break}ME(e,nd,jv);break;case 4:if(wb(e,i),(i&4194240)===i)break;for(n=e.eventTimes,o=-1;0<i;){var s=31-jh(i);a=1<<s,s=n[s],s>o&&(o=s),i&=~a}if(i=o,i=Bs()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*JOt(i/1960))-i,10<i){e.timeoutHandle=Jne(ME.bind(null,e,nd,jv),i);break}ME(e,nd,jv);break;case 5:ME(e,nd,jv);break;default:throw Error(Dn(329))}}}return hd(e,Bs()),e.callbackNode===r?XBe.bind(null,e):null}function _re(e,n){var r=V2;return e.current.memoizedState.isDehydrated&&(x1(e,n).flags|=256),e=s8(e,n),e!==2&&(n=nd,nd=r,n!==null&&bre(n)),e}function bre(e){nd===null?nd=e:nd.push.apply(nd,e)}function eRt(e){for(var n=e;;){if(n.flags&16384){var r=n.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var i=0;i<r.length;i++){var o=r[i],a=o.getSnapshot;o=o.value;try{if(!eg(a(),o))return!1}catch{return!1}}}if(r=n.child,n.subtreeFlags&16384&&r!==null)r.return=n,n=r;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function wb(e,n){for(n&=~zce,n&=~s9,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var r=31-jh(n),i=1<<r;e[r]=-1,n&=~i}}function YSe(e){if(uo&6)throw Error(Dn(327));UT();var n=zF(e,0);if(!(n&1))return hd(e,Bs()),null;var r=s8(e,n);if(e.tag!==0&&r===2){var i=Gne(e);i!==0&&(n=i,r=_re(e,i))}if(r===1)throw r=iA,x1(e,0),wb(e,n),hd(e,Bs()),r;if(r===6)throw Error(Dn(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,ME(e,nd,jv),hd(e,Bs()),null}function Gce(e,n){var r=uo;uo|=1;try{return e(n)}finally{uo=r,uo===0&&(xO=Bs()+500,r9&&Z0())}}function Q1(e){$b!==null&&$b.tag===0&&!(uo&6)&&UT();var n=uo;uo|=1;var r=bp.transition,i=Bo;try{if(bp.transition=null,Bo=1,e)return e()}finally{Bo=i,bp.transition=r,uo=n,!(uo&6)&&Z0()}}function Wce(){Kd=gT.current,Ca(gT)}function x1(e,n){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,NOt(r)),il!==null)for(r=il.return;r!==null;){var i=r;switch(Tce(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&qF();break;case 3:CO(),Ca(fd),Ca(Vc),kce();break;case 5:Dce(i);break;case 4:CO();break;case 13:Ca(ns);break;case 19:Ca(ns);break;case 10:Nce(i.type._context);break;case 22:case 23:Wce()}r=r.return}if(ql=e,il=e=l0(e.current,null),gc=Kd=n,Cl=0,iA=null,zce=s9=X1=0,nd=V2=null,e1!==null){for(n=0;n<e1.length;n++)if(r=e1[n],i=r.interleaved,i!==null){r.interleaved=null;var o=i.next,a=r.pending;if(a!==null){var s=a.next;a.next=o,i.next=s}r.pending=i}e1=null}return e}function QBe(e,n){do{var r=il;try{if(Ice(),q5.current=r8,n8){for(var i=os.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}n8=!1}if(K1=0,Ul=vl=os=null,H2=!1,tA=0,Hce.current=null,r===null||r.return===null){Cl=1,iA=n,il=null;break}e:{var a=e,s=r.return,l=r,c=n;if(n=gc,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=DSe(s);if(h!==null){h.flags&=-257,kSe(h,s,l,a,n),h.mode&1&&ASe(a,u,n),n=h,c=u;var g=n.updateQueue;if(g===null){var v=new Set;v.add(c),n.updateQueue=v}else g.add(c);break e}else{if(!(n&1)){ASe(a,u,n),Yce();break e}c=Error(Dn(426))}}else if(Ha&&l.mode&1){var y=DSe(s);if(y!==null){!(y.flags&65536)&&(y.flags|=256),kSe(y,s,l,a,n),Oce(wO(c,l));break e}}a=c=wO(c,l),Cl!==4&&(Cl=2),V2===null?V2=[a]:V2.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,n&=-n,a.lanes|=n;var _=DBe(a,c,n);OSe(a,_);break e;case 1:l=c;var S=a.type,b=a.stateNode;if(!(a.flags&128)&&(typeof S.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(a0===null||!a0.has(b)))){a.flags|=65536,n&=-n,a.lanes|=n;var E=kBe(a,l,n);OSe(a,E);break e}}a=a.return}while(a!==null)}eje(r)}catch(w){n=w,il===r&&r!==null&&(il=r=r.return);continue}break}while(!0)}function ZBe(){var e=i8.current;return i8.current=r8,e===null?r8:e}function Yce(){(Cl===0||Cl===3||Cl===2)&&(Cl=4),ql===null||!(X1&268435455)&&!(s9&268435455)||wb(ql,gc)}function s8(e,n){var r=uo;uo|=2;var i=ZBe();(ql!==e||gc!==n)&&(jv=null,x1(e,n));do try{tRt();break}catch(o){QBe(e,o)}while(!0);if(Ice(),uo=r,i8.current=i,il!==null)throw Error(Dn(261));return ql=null,gc=0,Cl}function tRt(){for(;il!==null;)JBe(il)}function nRt(){for(;il!==null&&!OTt();)JBe(il)}function JBe(e){var n=nje(e.alternate,e,Kd);e.memoizedProps=e.pendingProps,n===null?eje(e):il=n,Hce.current=null}function eje(e){var n=e;do{var r=n.alternate;if(e=n.return,n.flags&32768){if(r=KOt(r,n),r!==null){r.flags&=32767,il=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Cl=6,il=null;return}}else if(r=qOt(r,n,Kd),r!==null){il=r;return}if(n=n.sibling,n!==null){il=n;return}il=n=e}while(n!==null);Cl===0&&(Cl=5)}function ME(e,n,r){var i=Bo,o=bp.transition;try{bp.transition=null,Bo=1,rRt(e,n,r,i)}finally{bp.transition=o,Bo=i}return null}function rRt(e,n,r,i){do UT();while($b!==null);if(uo&6)throw Error(Dn(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(Dn(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if($Tt(e,a),e===ql&&(il=ql=null,gc=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||A3||(A3=!0,rje(HF,function(){return UT(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=bp.transition,bp.transition=null;var s=Bo;Bo=1;var l=uo;uo|=4,Hce.current=null,QOt(e,r),qBe(r,e),COt(Qne),VF=!!Xne,Qne=Xne=null,e.current=r,ZOt(r),RTt(),uo=l,Bo=s,bp.transition=a}else e.current=r;if(A3&&(A3=!1,$b=e,a8=o),a=e.pendingLanes,a===0&&(a0=null),MTt(r.stateNode),hd(e,Bs()),n!==null)for(i=e.onRecoverableError,r=0;r<n.length;r++)o=n[r],i(o.value,{componentStack:o.stack,digest:o.digest});if(o8)throw o8=!1,e=vre,vre=null,e;return a8&1&&e.tag!==0&&UT(),a=e.pendingLanes,a&1?e===yre?G2++:(G2=0,yre=e):G2=0,Z0(),null}function UT(){if($b!==null){var e=D8e(a8),n=bp.transition,r=Bo;try{if(bp.transition=null,Bo=16>e?16:e,$b===null)var i=!1;else{if(e=$b,$b=null,a8=0,uo&6)throw Error(Dn(331));var o=uo;for(uo|=4,cr=e.current;cr!==null;){var a=cr,s=a.child;if(cr.flags&16){var l=a.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(cr=u;cr!==null;){var d=cr;switch(d.tag){case 0:case 11:case 15:z2(8,d,a)}var f=d.child;if(f!==null)f.return=d,cr=f;else for(;cr!==null;){d=cr;var p=d.sibling,h=d.return;if(GBe(d),d===u){cr=null;break}if(p!==null){p.return=h,cr=p;break}cr=h}}}var g=a.alternate;if(g!==null){var v=g.child;if(v!==null){g.child=null;do{var y=v.sibling;v.sibling=null,v=y}while(v!==null)}}cr=a}}if(a.subtreeFlags&2064&&s!==null)s.return=a,cr=s;else e:for(;cr!==null;){if(a=cr,a.flags&2048)switch(a.tag){case 0:case 11:case 15:z2(9,a,a.return)}var _=a.sibling;if(_!==null){_.return=a.return,cr=_;break e}cr=a.return}}var S=e.current;for(cr=S;cr!==null;){s=cr;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,cr=b;else e:for(s=S;cr!==null;){if(l=cr,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:a9(9,l)}}catch(w){vs(l,l.return,w)}if(l===s){cr=null;break e}var E=l.sibling;if(E!==null){E.return=l.return,cr=E;break e}cr=l.return}}if(uo=o,Z0(),gm&&typeof gm.onPostCommitFiberRoot=="function")try{gm.onPostCommitFiberRoot(Z7,e)}catch{}i=!0}return i}finally{Bo=r,bp.transition=n}}return!1}function qSe(e,n,r){n=wO(r,n),n=DBe(e,n,1),e=o0(e,n,1),n=vu(),e!==null&&(rk(e,1,n),hd(e,n))}function vs(e,n,r){if(e.tag===3)qSe(e,e,r);else for(;n!==null;){if(n.tag===3){qSe(n,e,r);break}else if(n.tag===1){var i=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(a0===null||!a0.has(i))){e=wO(r,e),e=kBe(n,e,1),n=o0(n,e,1),e=vu(),n!==null&&(rk(n,1,e),hd(n,e));break}}n=n.return}}function iRt(e,n,r){var i=e.pingCache;i!==null&&i.delete(n),n=vu(),e.pingedLanes|=e.suspendedLanes&r,ql===e&&(gc&r)===r&&(Cl===4||Cl===3&&(gc&130023424)===gc&&500>Bs()-Vce?x1(e,0):zce|=r),hd(e,n)}function tje(e,n){n===0&&(e.mode&1?(n=C3,C3<<=1,!(C3&130023424)&&(C3=4194304)):n=1);var r=vu();e=Ry(e,n),e!==null&&(rk(e,n,r),hd(e,r))}function oRt(e){var n=e.memoizedState,r=0;n!==null&&(r=n.retryLane),tje(e,r)}function aRt(e,n){var r=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(Dn(314))}i!==null&&i.delete(n),tje(e,r)}var nje;nje=function(e,n,r){if(e!==null)if(e.memoizedProps!==n.pendingProps||fd.current)ad=!0;else{if(!(e.lanes&r)&&!(n.flags&128))return ad=!1,YOt(e,n,r);ad=!!(e.flags&131072)}else ad=!1,Ha&&n.flags&1048576&&aBe(n,QF,n.index);switch(n.lanes=0,n.tag){case 2:var i=n.type;X5(e,n),e=n.pendingProps;var o=bO(n,Vc.current);jT(n,r),o=$ce(null,n,i,e,o,r);var a=Fce();return n.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,pd(i)?(a=!0,KF(n)):a=!1,n.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Pce(n),o.updater=o9,n.stateNode=o,o._reactInternals=n,are(n,i,e,r),n=cre(null,n,i,!0,a,r)):(n.tag=0,Ha&&a&&xce(n),su(null,n,o,r),n=n.child),n;case 16:i=n.elementType;e:{switch(X5(e,n),e=n.pendingProps,o=i._init,i=o(i._payload),n.type=i,o=n.tag=lRt(i),e=_h(i,e),o){case 0:n=lre(null,n,i,e,r);break e;case 1:n=FSe(null,n,i,e,r);break e;case 11:n=LSe(null,n,i,e,r);break e;case 14:n=$Se(null,n,i,_h(i.type,e),r);break e}throw Error(Dn(306,i,""))}return n;case 0:return i=n.type,o=n.pendingProps,o=n.elementType===i?o:_h(i,o),lre(e,n,i,o,r);case 1:return i=n.type,o=n.pendingProps,o=n.elementType===i?o:_h(i,o),FSe(e,n,i,o,r);case 3:e:{if(BBe(n),e===null)throw Error(Dn(387));i=n.pendingProps,a=n.memoizedState,o=a.element,fBe(e,n),e8(n,i,null,r);var s=n.memoizedState;if(i=s.element,a.isDehydrated)if(a={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},n.updateQueue.baseState=a,n.memoizedState=a,n.flags&256){o=wO(Error(Dn(423)),n),n=BSe(e,n,i,r,o);break e}else if(i!==o){o=wO(Error(Dn(424)),n),n=BSe(e,n,i,r,o);break e}else for(sf=i0(n.stateNode.containerInfo.firstChild),hf=n,Ha=!0,Oh=null,r=uBe(n,null,i,r),n.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(SO(),i===o){n=Iy(e,n,r);break e}su(e,n,i,r)}n=n.child}return n;case 5:return pBe(n),e===null&&rre(n),i=n.type,o=n.pendingProps,a=e!==null?e.memoizedProps:null,s=o.children,Zne(i,o)?s=null:a!==null&&Zne(i,a)&&(n.flags|=32),FBe(e,n),su(e,n,s,r),n.child;case 6:return e===null&&rre(n),null;case 13:return jBe(e,n,r);case 4:return Ace(n,n.stateNode.containerInfo),i=n.pendingProps,e===null?n.child=EO(n,null,i,r):su(e,n,i,r),n.child;case 11:return i=n.type,o=n.pendingProps,o=n.elementType===i?o:_h(i,o),LSe(e,n,i,o,r);case 7:return su(e,n,n.pendingProps,r),n.child;case 8:return su(e,n,n.pendingProps.children,r),n.child;case 12:return su(e,n,n.pendingProps.children,r),n.child;case 10:e:{if(i=n.type._context,o=n.pendingProps,a=n.memoizedProps,s=o.value,ca(ZF,i._currentValue),i._currentValue=s,a!==null)if(eg(a.value,s)){if(a.children===o.children&&!fd.current){n=Iy(e,n,r);break e}}else for(a=n.child,a!==null&&(a.return=n);a!==null;){var l=a.dependencies;if(l!==null){s=a.child;for(var c=l.firstContext;c!==null;){if(c.context===i){if(a.tag===1){c=dy(-1,r&-r),c.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=r,c=a.alternate,c!==null&&(c.lanes|=r),ire(a.return,r,n),l.lanes|=r;break}c=c.next}}else if(a.tag===10)s=a.type===n.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(Dn(341));s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),ire(s,r,n),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===n){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}su(e,n,o.children,r),n=n.child}return n;case 9:return o=n.type,i=n.pendingProps.children,jT(n,r),o=wp(o),i=i(o),n.flags|=1,su(e,n,i,r),n.child;case 14:return i=n.type,o=_h(i,n.pendingProps),o=_h(i.type,o),$Se(e,n,i,o,r);case 15:return LBe(e,n,n.type,n.pendingProps,r);case 17:return i=n.type,o=n.pendingProps,o=n.elementType===i?o:_h(i,o),X5(e,n),n.tag=1,pd(i)?(e=!0,KF(n)):e=!1,jT(n,r),ABe(n,i,o),are(n,i,o,r),cre(null,n,i,!0,e,r);case 19:return UBe(e,n,r);case 22:return $Be(e,n,r)}throw Error(Dn(156,n.tag))};function rje(e,n){return N8e(e,n)}function sRt(e,n,r,i){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gp(e,n,r,i){return new sRt(e,n,r,i)}function qce(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lRt(e){if(typeof e=="function")return qce(e)?1:0;if(e!=null){if(e=e.$$typeof,e===pce)return 11;if(e===hce)return 14}return 2}function l0(e,n){var r=e.alternate;return r===null?(r=gp(e.tag,n,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=n,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,n=e.dependencies,r.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function J5(e,n,r,i,o,a){var s=2;if(i=e,typeof e=="function")qce(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case oT:return T1(r.children,o,a,n);case fce:s=8,o|=8;break;case Nne:return e=gp(12,r,n,o|2),e.elementType=Nne,e.lanes=a,e;case Mne:return e=gp(13,r,n,o),e.elementType=Mne,e.lanes=a,e;case Pne:return e=gp(19,r,n,o),e.elementType=Pne,e.lanes=a,e;case p8e:return l9(r,o,a,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case d8e:s=10;break e;case f8e:s=9;break e;case pce:s=11;break e;case hce:s=14;break e;case hb:s=16,i=null;break e}throw Error(Dn(130,e==null?e:typeof e,""))}return n=gp(s,r,n,o),n.elementType=e,n.type=i,n.lanes=a,n}function T1(e,n,r,i){return e=gp(7,e,i,n),e.lanes=r,e}function l9(e,n,r,i){return e=gp(22,e,i,n),e.elementType=p8e,e.lanes=r,e.stateNode={isHidden:!1},e}function SY(e,n,r){return e=gp(6,e,null,n),e.lanes=r,e}function EY(e,n,r){return n=gp(4,e.children!==null?e.children:[],e.key,n),n.lanes=r,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function cRt(e,n,r,i,o){this.tag=n,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=nY(0),this.expirationTimes=nY(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nY(0),this.identifierPrefix=i,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Kce(e,n,r,i,o,a,s,l,c){return e=new cRt(e,n,r,l,c),n===1?(n=1,a===!0&&(n|=8)):n=0,a=gp(3,null,null,n),e.current=a,a.stateNode=e,a.memoizedState={element:i,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pce(a),e}function uRt(e,n,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:iT,key:i==null?null:""+i,children:e,containerInfo:n,implementation:r}}function ije(e){if(!e)return E0;e=e._reactInternals;e:{if(ZC(e)!==e||e.tag!==1)throw Error(Dn(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(pd(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(Dn(171))}if(e.tag===1){var r=e.type;if(pd(r))return iBe(e,r,n)}return n}function oje(e,n,r,i,o,a,s,l,c){return e=Kce(r,i,!0,e,o,a,s,l,c),e.context=ije(null),r=e.current,i=vu(),o=s0(r),a=dy(i,o),a.callback=n??null,o0(r,a,o),e.current.lanes=o,rk(e,o,i),hd(e,i),e}function c9(e,n,r,i){var o=n.current,a=vu(),s=s0(o);return r=ije(r),n.context===null?n.context=r:n.pendingContext=r,n=dy(a,s),n.payload={element:e},i=i===void 0?null:i,i!==null&&(n.callback=i),e=o0(o,n,s),e!==null&&(Uh(e,o,s,a),Y5(e,o,s)),s}function l8(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 KSe(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<n?r:n}}function Xce(e,n){KSe(e,n),(e=e.alternate)&&KSe(e,n)}function dRt(){return null}var aje=typeof reportError=="function"?reportError:function(e){console.error(e)};function Qce(e){this._internalRoot=e}u9.prototype.render=Qce.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(Dn(409));c9(e,n,null,null)};u9.prototype.unmount=Qce.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Q1(function(){c9(null,e,null,null)}),n[Oy]=null}};function u9(e){this._internalRoot=e}u9.prototype.unstable_scheduleHydration=function(e){if(e){var n=$8e();e={blockedOn:null,target:e,priority:n};for(var r=0;r<Cb.length&&n!==0&&n<Cb[r].priority;r++);Cb.splice(r,0,e),r===0&&B8e(e)}};function Zce(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d9(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function XSe(){}function fRt(e,n,r,i,o){if(o){if(typeof i=="function"){var a=i;i=function(){var u=l8(s);a.call(u)}}var s=oje(n,i,e,0,null,!1,!1,"",XSe);return e._reactRootContainer=s,e[Oy]=s.current,XP(e.nodeType===8?e.parentNode:e),Q1(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof i=="function"){var l=i;i=function(){var u=l8(c);l.call(u)}}var c=Kce(e,0,!1,null,null,!1,!1,"",XSe);return e._reactRootContainer=c,e[Oy]=c.current,XP(e.nodeType===8?e.parentNode:e),Q1(function(){c9(n,c,r,i)}),c}function f9(e,n,r,i,o){var a=r._reactRootContainer;if(a){var s=a;if(typeof o=="function"){var l=o;o=function(){var c=l8(s);l.call(c)}}c9(n,s,e,o)}else s=fRt(r,n,e,o,i);return l8(s)}k8e=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var r=n2(n.pendingLanes);r!==0&&(vce(n,r|1),hd(n,Bs()),!(uo&6)&&(xO=Bs()+500,Z0()))}break;case 13:Q1(function(){var i=Ry(e,1);if(i!==null){var o=vu();Uh(i,e,1,o)}}),Xce(e,1)}};yce=function(e){if(e.tag===13){var n=Ry(e,134217728);if(n!==null){var r=vu();Uh(n,e,134217728,r)}Xce(e,134217728)}};L8e=function(e){if(e.tag===13){var n=s0(e),r=Ry(e,n);if(r!==null){var i=vu();Uh(r,e,n,i)}Xce(e,n)}};$8e=function(){return Bo};F8e=function(e,n){var r=Bo;try{return Bo=e,n()}finally{Bo=r}};Hne=function(e,n,r){switch(n){case"input":if(kne(e,r),n=r.name,r.type==="radio"&&n!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<r.length;n++){var i=r[n];if(i!==e&&i.form===e.form){var o=n9(i);if(!o)throw Error(Dn(90));g8e(i),kne(i,o)}}}break;case"textarea":v8e(e,r);break;case"select":n=r.value,n!=null&&LT(e,!!r.multiple,n,!1)}};w8e=Gce;x8e=Q1;var pRt={usingClientEntryPoint:!1,Events:[ok,cT,n9,E8e,C8e,Gce]},tM={findFiberByHostInstance:JE,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},hRt={bundleType:tM.bundleType,version:tM.version,rendererPackageName:tM.rendererPackageName,rendererConfig:tM.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ky.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=R8e(e),e===null?null:e.stateNode},findFiberByHostInstance:tM.findFiberByHostInstance||dRt,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 D3=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!D3.isDisabled&&D3.supportsFiber)try{Z7=D3.inject(hRt),gm=D3}catch{}}Pf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pRt;Pf.createPortal=function(e,n){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Zce(n))throw Error(Dn(200));return uRt(e,n,null,r)};Pf.createRoot=function(e,n){if(!Zce(e))throw Error(Dn(299));var r=!1,i="",o=aje;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),n=Kce(e,1,!1,null,null,r,!1,i,o),e[Oy]=n.current,XP(e.nodeType===8?e.parentNode:e),new Qce(n)};Pf.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(Dn(188)):(e=Object.keys(e).join(","),Error(Dn(268,e)));return e=R8e(n),e=e===null?null:e.stateNode,e};Pf.flushSync=function(e){return Q1(e)};Pf.hydrate=function(e,n,r){if(!d9(n))throw Error(Dn(200));return f9(null,e,n,!0,r)};Pf.hydrateRoot=function(e,n,r){if(!Zce(e))throw Error(Dn(405));var i=r!=null&&r.hydratedSources||null,o=!1,a="",s=aje;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),n=oje(n,null,e,1,r??null,o,!1,a,s),e[Oy]=n.current,XP(e),i)for(e=0;e<i.length;e++)r=i[e],o=r._getVersion,o=o(r._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[r,o]:n.mutableSourceEagerHydrationData.push(r,o);return new u9(n)};Pf.render=function(e,n,r){if(!d9(n))throw Error(Dn(200));return f9(null,e,n,!1,r)};Pf.unmountComponentAtNode=function(e){if(!d9(e))throw Error(Dn(40));return e._reactRootContainer?(Q1(function(){f9(null,null,e,!1,function(){e._reactRootContainer=null,e[Oy]=null})}),!0):!1};Pf.unstable_batchedUpdates=Gce;Pf.unstable_renderSubtreeIntoContainer=function(e,n,r,i){if(!d9(r))throw Error(Dn(200));if(e==null||e._reactInternals===void 0)throw Error(Dn(38));return f9(e,n,r,!1,i)};Pf.version="18.3.1-next-f1338f8080-20240426";function sje(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sje)}catch(e){console.error(e)}}sje(),s8e.exports=Pf;var Us=s8e.exports;const Gl=Or(Us),lje=o7({__proto__:null,default:Gl},[Us]);function oA(e){return e instanceof HTMLElement||e instanceof SVGElement}function cje(e){return e&&cn(e)==="object"&&oA(e.nativeElement)?e.nativeElement:oA(e)?e:null}function W2(e){var n=cje(e);if(n)return n;if(e instanceof V.Component){var r;return(r=Gl.findDOMNode)===null||r===void 0?void 0:r.call(Gl,e)}return null}var uje={exports:{}},Uo={};/**
* @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 Jce=Symbol.for("react.element"),eue=Symbol.for("react.portal"),p9=Symbol.for("react.fragment"),h9=Symbol.for("react.strict_mode"),g9=Symbol.for("react.profiler"),m9=Symbol.for("react.provider"),v9=Symbol.for("react.context"),gRt=Symbol.for("react.server_context"),y9=Symbol.for("react.forward_ref"),_9=Symbol.for("react.suspense"),b9=Symbol.for("react.suspense_list"),S9=Symbol.for("react.memo"),E9=Symbol.for("react.lazy"),mRt=Symbol.for("react.offscreen"),dje;dje=Symbol.for("react.module.reference");function jp(e){if(typeof e=="object"&&e!==null){var n=e.$$typeof;switch(n){case Jce:switch(e=e.type,e){case p9:case g9:case h9:case _9:case b9:return e;default:switch(e=e&&e.$$typeof,e){case gRt:case v9:case y9:case E9:case S9:case m9:return e;default:return n}}case eue:return n}}}Uo.ContextConsumer=v9;Uo.ContextProvider=m9;Uo.Element=Jce;Uo.ForwardRef=y9;Uo.Fragment=p9;Uo.Lazy=E9;Uo.Memo=S9;Uo.Portal=eue;Uo.Profiler=g9;Uo.StrictMode=h9;Uo.Suspense=_9;Uo.SuspenseList=b9;Uo.isAsyncMode=function(){return!1};Uo.isConcurrentMode=function(){return!1};Uo.isContextConsumer=function(e){return jp(e)===v9};Uo.isContextProvider=function(e){return jp(e)===m9};Uo.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jce};Uo.isForwardRef=function(e){return jp(e)===y9};Uo.isFragment=function(e){return jp(e)===p9};Uo.isLazy=function(e){return jp(e)===E9};Uo.isMemo=function(e){return jp(e)===S9};Uo.isPortal=function(e){return jp(e)===eue};Uo.isProfiler=function(e){return jp(e)===g9};Uo.isStrictMode=function(e){return jp(e)===h9};Uo.isSuspense=function(e){return jp(e)===_9};Uo.isSuspenseList=function(e){return jp(e)===b9};Uo.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===p9||e===g9||e===h9||e===_9||e===b9||e===mRt||typeof e=="object"&&e!==null&&(e.$$typeof===E9||e.$$typeof===S9||e.$$typeof===m9||e.$$typeof===v9||e.$$typeof===y9||e.$$typeof===dje||e.getModuleId!==void 0)};Uo.typeOf=jp;uje.exports=Uo;var CY=uje.exports;function Z1(e,n,r){var i=m.useRef({});return(!("value"in i.current)||r(i.current.condition,n))&&(i.current.value=e(),i.current.condition=n),i.current.value}var tue=function(n,r){typeof n=="function"?n(r):cn(n)==="object"&&n&&"current"in n&&(n.current=r)},Il=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=r.filter(Boolean);return o.length<=1?o[0]:function(a){r.forEach(function(s){tue(s,a)})}},yg=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Z1(function(){return Il.apply(void 0,r)},r,function(o,a){return o.length!==a.length||o.every(function(s,l){return s!==a[l]})})},Xy=function(n){var r,i;if(!n)return!1;if(nue(n)&&n.props.propertyIsEnumerable("ref"))return!0;var o=CY.isMemo(n)?n.type.type:n.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==CY.ForwardRef||typeof n=="function"&&!((i=n.prototype)!==null&&i!==void 0&&i.render)&&n.$$typeof!==CY.ForwardRef)};function nue(e){return m.isValidElement(e)&&!i8e(e)}var vRt=function(n){return nue(n)&&Xy(n)},J0=function(n){if(n&&nue(n)){var r=n;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},Sre=m.createContext(null);function yRt(e){var n=e.children,r=e.onBatchResize,i=m.useRef(0),o=m.useRef([]),a=m.useContext(Sre),s=m.useCallback(function(l,c,u){i.current+=1;var d=i.current;o.current.push({size:l,element:c,data:u}),Promise.resolve().then(function(){d===i.current&&(r==null||r(o.current),o.current=[])}),a==null||a(l,c,u)},[r,a]);return m.createElement(Sre.Provider,{value:s},n)}var fje=function(){if(typeof Map<"u")return Map;function e(n,r){var i=-1;return n.some(function(o,a){return o[0]===r?(i=a,!0):!1}),i}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(r){var i=e(this.__entries__,r),o=this.__entries__[i];return o&&o[1]},n.prototype.set=function(r,i){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=i:this.__entries__.push([r,i])},n.prototype.delete=function(r){var i=this.__entries__,o=e(i,r);~o&&i.splice(o,1)},n.prototype.has=function(r){return!!~e(this.__entries__,r)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(r,i){i===void 0&&(i=null);for(var o=0,a=this.__entries__;o<a.length;o++){var s=a[o];r.call(i,s[1],s[0])}},n}()}(),Ere=typeof window<"u"&&typeof document<"u"&&window.document===document,c8=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")()}(),_Rt=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(c8):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),bRt=2;function SRt(e,n){var r=!1,i=!1,o=0;function a(){r&&(r=!1,e()),i&&l()}function s(){_Rt(a)}function l(){var c=Date.now();if(r){if(c-o<bRt)return;i=!0}else r=!0,i=!1,setTimeout(s,n);o=c}return l}var ERt=20,CRt=["top","right","bottom","left","width","height","size","weight"],wRt=typeof MutationObserver<"u",xRt=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=SRt(this.refresh.bind(this),ERt)}return e.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n),this.connected_||this.connect_()},e.prototype.removeObserver=function(n){var r=this.observers_,i=r.indexOf(n);~i&&r.splice(i,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var n=this.updateObservers_();n&&this.refresh()},e.prototype.updateObservers_=function(){var n=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return n.forEach(function(r){return r.broadcastActive()}),n.length>0},e.prototype.connect_=function(){!Ere||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),wRt?(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(){!Ere||!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(n){var r=n.propertyName,i=r===void 0?"":r,o=CRt.some(function(a){return!!~i.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),pje=function(e,n){for(var r=0,i=Object.keys(n);r<i.length;r++){var o=i[r];Object.defineProperty(e,o,{value:n[o],enumerable:!1,writable:!1,configurable:!0})}return e},TO=function(e){var n=e&&e.ownerDocument&&e.ownerDocument.defaultView;return n||c8},hje=C9(0,0,0,0);function u8(e){return parseFloat(e)||0}function QSe(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return n.reduce(function(i,o){var a=e["border-"+o+"-width"];return i+u8(a)},0)}function TRt(e){for(var n=["top","right","bottom","left"],r={},i=0,o=n;i<o.length;i++){var a=o[i],s=e["padding-"+a];r[a]=u8(s)}return r}function ORt(e){var n=e.getBBox();return C9(0,0,n.width,n.height)}function RRt(e){var n=e.clientWidth,r=e.clientHeight;if(!n&&!r)return hje;var i=TO(e).getComputedStyle(e),o=TRt(i),a=o.left+o.right,s=o.top+o.bottom,l=u8(i.width),c=u8(i.height);if(i.boxSizing==="border-box"&&(Math.round(l+a)!==n&&(l-=QSe(i,"left","right")+a),Math.round(c+s)!==r&&(c-=QSe(i,"top","bottom")+s)),!NRt(e)){var u=Math.round(l+a)-n,d=Math.round(c+s)-r;Math.abs(u)!==1&&(l-=u),Math.abs(d)!==1&&(c-=d)}return C9(o.left,o.top,l,c)}var IRt=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof TO(e).SVGGraphicsElement}:function(e){return e instanceof TO(e).SVGElement&&typeof e.getBBox=="function"}}();function NRt(e){return e===TO(e).document.documentElement}function MRt(e){return Ere?IRt(e)?ORt(e):RRt(e):hje}function PRt(e){var n=e.x,r=e.y,i=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(a.prototype);return pje(s,{x:n,y:r,width:i,height:o,top:r,right:n+i,bottom:o+r,left:n}),s}function C9(e,n,r,i){return{x:e,y:n,width:r,height:i}}var ARt=function(){function e(n){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=C9(0,0,0,0),this.target=n}return e.prototype.isActive=function(){var n=MRt(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n},e}(),DRt=function(){function e(n,r){var i=PRt(r);pje(this,{target:n,contentRect:i})}return e}(),kRt=function(){function e(n,r,i){if(this.activeObservations_=[],this.observations_=new fje,typeof n!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=n,this.controller_=r,this.callbackCtx_=i}return e.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof TO(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(n)||(r.set(n,new ARt(n)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof TO(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(n)&&(r.delete(n),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var n=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&n.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var n=this.callbackCtx_,r=this.activeObservations_.map(function(i){return new DRt(i.target,i.broadcastRect())});this.callback_.call(n,r,n),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),gje=typeof WeakMap<"u"?new WeakMap:new fje,mje=function(){function e(n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=xRt.getInstance(),i=new kRt(n,r,this);gje.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){mje.prototype[e]=function(){var n;return(n=gje.get(this))[e].apply(n,arguments)}});var LRt=function(){return typeof c8.ResizeObserver<"u"?c8.ResizeObserver:mje}(),Fb=new Map;function $Rt(e){e.forEach(function(n){var r,i=n.target;(r=Fb.get(i))===null||r===void 0||r.forEach(function(o){return o(i)})})}var vje=new LRt($Rt);function FRt(e,n){Fb.has(e)||(Fb.set(e,new Set),vje.observe(e)),Fb.get(e).add(n)}function BRt(e,n){Fb.has(e)&&(Fb.get(e).delete(n),Fb.get(e).size||(vje.unobserve(e),Fb.delete(e)))}function Ki(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function ZSe(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,a8e(i.key),i)}}function Xi(e,n,r){return n&&ZSe(e.prototype,n),r&&ZSe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function OO(e,n){return OO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},OO(e,n)}function Kc(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&OO(e,n)}function J1(e){return J1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},J1(e)}function w9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w9=function(){return!!e})()}function Tn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yje(e,n){if(n&&(cn(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tn(e)}function Nu(e){var n=w9();return function(){var r,i=J1(e);if(n){var o=J1(this).constructor;r=Reflect.construct(i,arguments,o)}else r=i.apply(this,arguments);return yje(this,r)}}var jRt=function(e){Kc(r,e);var n=Nu(r);function r(){return Ki(this,r),n.apply(this,arguments)}return Xi(r,[{key:"render",value:function(){return this.props.children}}]),r}(m.Component);function URt(e,n){var r=e.children,i=e.disabled,o=m.useRef(null),a=m.useRef(null),s=m.useContext(Sre),l=typeof r=="function",c=l?r(o):r,u=m.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&m.isValidElement(c)&&Xy(c),f=d?J0(c):null,p=yg(f,o),h=function(){var _;return W2(o.current)||(o.current&&cn(o.current)==="object"?W2((_=o.current)===null||_===void 0?void 0:_.nativeElement):null)||W2(a.current)};m.useImperativeHandle(n,function(){return h()});var g=m.useRef(e);g.current=e;var v=m.useCallback(function(y){var _=g.current,S=_.onResize,b=_.data,E=y.getBoundingClientRect(),w=E.width,C=E.height,x=y.offsetWidth,T=y.offsetHeight,R=Math.floor(w),O=Math.floor(C);if(u.current.width!==R||u.current.height!==O||u.current.offsetWidth!==x||u.current.offsetHeight!==T){var M={width:R,height:O,offsetWidth:x,offsetHeight:T};u.current=M;var P=x===Math.round(w)?w:x,k=T===Math.round(C)?C:T,$=ee(ee({},M),{},{offsetWidth:P,offsetHeight:k});s==null||s($,y,b),S&&Promise.resolve().then(function(){S($,y)})}},[]);return m.useEffect(function(){var y=h();return y&&!i&&FRt(y,v),function(){return BRt(y,v)}},[o.current,i]),m.createElement(jRt,{ref:a},d?m.cloneElement(c,{ref:p}):c)}var HRt=m.forwardRef(URt),zRt="rc-observer-key";function VRt(e,n){var r=e.children,i=typeof r=="function"?[r]:Tl(r);return i.map(function(o,a){var s=(o==null?void 0:o.key)||"".concat(zRt,"-").concat(a);return m.createElement(HRt,ft({},e,{key:s,ref:a===0?n:void 0}),o)})}var Hc=m.forwardRef(VRt);Hc.Collection=yRt;function Wr(e,n){var r=Object.assign({},e);return Array.isArray(n)&&n.forEach(function(i){delete r[i]}),r}function Cre(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=Array(n);r<n;r++)i[r]=e[r];return i}function GRt(e){if(Array.isArray(e))return Cre(e)}function _je(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function x9(e,n){if(e){if(typeof e=="string")return Cre(e,n);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cre(e,n):void 0}}function WRt(){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 Tt(e){return GRt(e)||_je(e)||x9(e)||WRt()}var bje=function(n){return+setTimeout(n,16)},Sje=function(n){return clearTimeout(n)};typeof window<"u"&&"requestAnimationFrame"in window&&(bje=function(n){return window.requestAnimationFrame(n)},Sje=function(n){return window.cancelAnimationFrame(n)});var JSe=0,rue=new Map;function Eje(e){rue.delete(e)}var Dr=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;JSe+=1;var i=JSe;function o(a){if(a===0)Eje(i),n();else{var s=bje(function(){o(a-1)});rue.set(i,s)}}return o(r),i};Dr.cancel=function(e){var n=rue.get(e);return Eje(e),Sje(n)};function Cje(e){if(Array.isArray(e))return e}function YRt(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,o,a,s,l=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,n===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(i=a.call(r)).done)&&(l.push(i.value),l.length!==n);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw o}}return l}}function wje(){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 ke(e,n){return Cje(e)||YRt(e,n)||x9(e,n)||wje()}function aA(e){for(var n=0,r,i=0,o=e.length;o>=4;++i,o-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,n=(r&65535)*1540483477+((r>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(e.charCodeAt(i+2)&255)<<16;case 2:n^=(e.charCodeAt(i+1)&255)<<8;case 1:n^=e.charCodeAt(i)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}function nI(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function qRt(e,n){if(!e)return!1;if(e.contains)return e.contains(n);for(var r=n;r;){if(r===e)return!0;r=r.parentNode}return!1}var eEe="data-rc-order",tEe="data-rc-priority",KRt="rc-util-key",wre=new Map;function xje(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.mark;return n?n.startsWith("data-")?n:"data-".concat(n):KRt}function T9(e){if(e.attachTo)return e.attachTo;var n=document.querySelector("head");return n||document.body}function XRt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function iue(e){return Array.from((wre.get(e)||e).children).filter(function(n){return n.tagName==="STYLE"})}function Tje(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!nI())return null;var r=n.csp,i=n.prepend,o=n.priority,a=o===void 0?0:o,s=XRt(i),l=s==="prependQueue",c=document.createElement("style");c.setAttribute(eEe,s),l&&a&&c.setAttribute(tEe,"".concat(a)),r!=null&&r.nonce&&(c.nonce=r==null?void 0:r.nonce),c.innerHTML=e;var u=T9(n),d=u.firstChild;if(i){if(l){var f=(n.styles||iue(u)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(eEe)))return!1;var h=Number(p.getAttribute(tEe)||0);return a>=h});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function Oje(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=T9(n);return(n.styles||iue(r)).find(function(i){return i.getAttribute(xje(n))===e})}function oue(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Oje(e,n);if(r){var i=T9(n);i.removeChild(r)}}function QRt(e,n){var r=wre.get(e);if(!r||!qRt(document,r)){var i=Tje("",n),o=i.parentNode;wre.set(e,o),e.removeChild(i)}}function HT(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=T9(r),o=iue(i),a=ee(ee({},r),{},{styles:o});QRt(i,a);var s=Oje(n,a);if(s){var l,c;if((l=a.csp)!==null&&l!==void 0&&l.nonce&&s.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var u;s.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var d=Tje(e,a);return d.setAttribute(xje(a),n),d}function ZRt(e,n){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(n.includes(i))continue;r[i]=e[i]}return r}function Xt(e,n){if(e==null)return{};var r,i,o=ZRt(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],n.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function JRt(e,n,r){var i=m.useRef({});return(!("value"in i.current)||r(i.current.condition,n))&&(i.current.value=e(),i.current.condition=n),i.current.value}var xre={},eIt=function(n){};function tIt(e,n){}function nIt(e,n){}function rIt(){xre={}}function Rje(e,n,r){!n&&!xre[r]&&(e(!1,r),xre[r]=!0)}function sk(e,n){Rje(tIt,e,n)}function iIt(e,n){Rje(nIt,e,n)}sk.preMessage=eIt;sk.resetWarned=rIt;sk.noteOnce=iIt;function nEe(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=new Set;function o(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=i.has(a);if(sk(!c,"Warning: There may be circular references"),c)return!1;if(a===s)return!0;if(r&&l>1)return!1;i.add(a);var u=l+1;if(Array.isArray(a)){if(!Array.isArray(s)||a.length!==s.length)return!1;for(var d=0;d<a.length;d++)if(!o(a[d],s[d],u))return!1;return!0}if(a&&s&&cn(a)==="object"&&cn(s)==="object"){var f=Object.keys(a);return f.length!==Object.keys(s).length?!1:f.every(function(p){return o(a[p],s[p],u)})}return!1}return o(e,n)}var oIt="%";function Tre(e){return e.join(oIt)}var aIt=function(){function e(n){Ki(this,e),fe(this,"instanceId",void 0),fe(this,"cache",new Map),this.instanceId=n}return Xi(e,[{key:"get",value:function(r){return this.opGet(Tre(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,i){return this.opUpdate(Tre(r),i)}},{key:"opUpdate",value:function(r,i){var o=this.cache.get(r),a=i(o);a===null?this.cache.delete(r):this.cache.set(r,a)}}]),e}(),sIt=["children"],RO="data-token-hash",Hh="data-css-hash",Bb="__cssinjs_instance__";function aue(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var n=document.body.querySelectorAll("style[".concat(Hh,"]"))||[],r=document.head.firstChild;Array.from(n).forEach(function(o){o[Bb]=o[Bb]||e,o[Bb]===e&&document.head.insertBefore(o,r)});var i={};Array.from(document.querySelectorAll("style[".concat(Hh,"]"))).forEach(function(o){var a=o.getAttribute(Hh);if(i[a]){if(o[Bb]===e){var s;(s=o.parentNode)===null||s===void 0||s.removeChild(o)}}else i[a]=!0})}return new aIt(e)}var IO=m.createContext({hashPriority:"low",cache:aue(),defaultCache:!0}),lIt=function(n){var r=n.children,i=Xt(n,sIt),o=m.useContext(IO),a=JRt(function(){var s=ee({},o);Object.keys(i).forEach(function(c){var u=i[c];i[c]!==void 0&&(s[c]=u)});var l=i.cache;return s.cache=s.cache||aue(),s.defaultCache=!l&&o.defaultCache,s},[o,i],function(s,l){return!nEe(s[0],l[0],!0)||!nEe(s[1],l[1],!0)});return m.createElement(IO.Provider,{value:a},r)},Ije=Xi(function e(){Ki(this,e)}),Nje="CALC_UNIT",cIt=new RegExp(Nje,"g");function wY(e){return typeof e=="number"?"".concat(e).concat(Nje):e}var uIt=function(e){Kc(r,e);var n=Nu(r);function r(i,o){var a;Ki(this,r),a=n.call(this),fe(Tn(a),"result",""),fe(Tn(a),"unitlessCssVar",void 0),fe(Tn(a),"lowPriority",void 0);var s=cn(i);return a.unitlessCssVar=o,i instanceof r?a.result="(".concat(i.result,")"):s==="number"?a.result=wY(i):s==="string"&&(a.result=i),a}return Xi(r,[{key:"add",value:function(o){return o instanceof r?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(wY(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof r?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(wY(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var a=this,s=o||{},l=s.unit,c=!0;return typeof l=="boolean"?c=l:Array.from(this.unitlessCssVar).some(function(u){return a.result.includes(u)})&&(c=!1),this.result=this.result.replace(cIt,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(Ije),dIt=function(e){Kc(r,e);var n=Nu(r);function r(i){var o;return Ki(this,r),o=n.call(this),fe(Tn(o),"result",0),i instanceof r?o.result=i.result:typeof i=="number"&&(o.result=i),o}return Xi(r,[{key:"add",value:function(o){return o instanceof r?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof r?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof r?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof r?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),r}(Ije),fIt=function(n,r){var i=n==="css"?uIt:dIt;return function(o){return new i(o,r)}};function pIt(e,n){if(e.length!==n.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==n[r])return!1;return!0}var sue=function(){function e(){Ki(this,e),fe(this,"cache",void 0),fe(this,"keys",void 0),fe(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Xi(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var i,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return r.forEach(function(l){if(!s)s=void 0;else{var c;s=(c=s)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(l)}}),(i=s)!==null&&i!==void 0&&i.value&&a&&(s.value[1]=this.cacheCallTimes++),(o=s)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var i;return(i=this.internalGet(r,!0))===null||i===void 0?void 0:i[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,i){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(u,d){var f=ke(u,2),p=f[1];return o.internalGet(d)[1]<p?[d,o.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),s=ke(a,1),l=s[0];this.delete(l)}this.keys.push(r)}var c=this.cache;r.forEach(function(u,d){if(d===r.length-1)c.set(u,{value:[i,o.cacheCallTimes++]});else{var f=c.get(u);f?f.map||(f.map=new Map):c.set(u,{map:new Map}),c=c.get(u).map}})}},{key:"deleteByPath",value:function(r,i){var o=r.get(i[0]);if(i.length===1){var a;return o.map?r.set(i[0],{map:o.map}):r.delete(i[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var s=this.deleteByPath(o.map,i.slice(1));return(!o.map||o.map.size===0)&&!o.value&&r.delete(i[0]),s}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(i){return!pIt(i,r)}),this.deleteByPath(this.cache,r)}}]),e}();fe(sue,"MAX_CACHE_SIZE",20);fe(sue,"MAX_CACHE_OFFSET",5);var rEe=0,lue=function(){function e(n){Ki(this,e),fe(this,"derivatives",void 0),fe(this,"id",void 0),this.derivatives=Array.isArray(n)?n:[n],this.id=rEe,n.length===0&&(n.length>0,void 0),rEe+=1}return Xi(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(i,o){return o(r,i)},void 0)}}]),e}(),xY=new sue;function eC(e){var n=Array.isArray(e)?e:[e];return xY.has(n)||xY.set(n,new lue(n)),xY.get(n)}var hIt=new WeakMap,TY={};function gIt(e,n){for(var r=hIt,i=0;i<n.length;i+=1){var o=n[i];r.has(o)||r.set(o,new WeakMap),r=r.get(o)}return r.has(TY)||r.set(TY,e()),r.get(TY)}var iEe=new WeakMap;function Y2(e){var n=iEe.get(e)||"";return n||(Object.keys(e).forEach(function(r){var i=e[r];n+=r,i instanceof lue?n+=i.id:i&&cn(i)==="object"?n+=Y2(i):n+=i}),n=aA(n),iEe.set(e,n)),n}function oEe(e,n){return aA("".concat(n,"_").concat(Y2(e)))}var NO="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Mje="_bAmBoO_";function Pje(e,n,r){if(nI()){var i,o;HT(e,NO);var a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",n==null||n(a),document.body.appendChild(a);var s=r?r(a):(i=getComputedStyle(a).content)===null||i===void 0?void 0:i.includes(Mje);return(o=a.parentNode)===null||o===void 0||o.removeChild(a),oue(NO),s}return!1}var OY=void 0;function mIt(){return OY===void 0&&(OY=Pje(":where(.".concat(NO,') { content: "').concat(Mje,'"!important; }'),function(e){e.className=NO})),OY}var RY=void 0;function vIt(){return RY===void 0&&(RY=Pje(".".concat(NO," { inset-block: 93px !important; }"),function(e){e.className=NO},function(e){return getComputedStyle(e).bottom==="93px"})),RY}var Ore=nI();function Ye(e){return typeof e=="number"?"".concat(e,"px"):e}function sA(e,n,r){var i,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var s=ee(ee({},o),{},(i={},fe(i,RO,n),fe(i,Hh,r),i)),l=Object.keys(s).map(function(c){var u=s[c];return u?"".concat(c,'="').concat(u,'"'):null}).filter(function(c){return c}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var q2=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(n).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()},yIt=function(n,r,i){return Object.keys(n).length?".".concat(r).concat(i!=null&&i.scope?".".concat(i.scope):"","{").concat(Object.entries(n).map(function(o){var a=ke(o,2),s=a[0],l=a[1];return"".concat(s,":").concat(l,";")}).join(""),"}"):""},Aje=function(n,r,i){var o={},a={};return Object.entries(n).forEach(function(s){var l,c,u=ke(s,2),d=u[0],f=u[1];if(i!=null&&(l=i.preserve)!==null&&l!==void 0&&l[d])a[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(i!=null&&(c=i.ignore)!==null&&c!==void 0&&c[d])){var p,h=q2(d,i==null?void 0:i.prefix);o[h]=typeof f=="number"&&!(i!=null&&(p=i.unitless)!==null&&p!==void 0&&p[d])?"".concat(f,"px"):String(f),a[d]="var(".concat(h,")")}}),[a,yIt(o,r,{scope:i==null?void 0:i.scope})]},aEe=nI()?m.useLayoutEffect:m.useEffect,_It=function(n,r){var i=m.useRef(!0);aEe(function(){return n(i.current)},r),aEe(function(){return i.current=!1,function(){i.current=!0}},[])},bIt=ee({},zD),sEe=bIt.useInsertionEffect,SIt=function(n,r,i){m.useMemo(n,i),_It(function(){return r(!0)},i)},EIt=sEe?function(e,n,r){return sEe(function(){return e(),n()},r)}:SIt,CIt=ee({},zD),wIt=CIt.useInsertionEffect,xIt=function(n){var r=[],i=!1;function o(a){i||r.push(a)}return m.useEffect(function(){return i=!1,function(){i=!0,r.length&&r.forEach(function(a){return a()})}},n),o},TIt=function(){return function(n){n()}},OIt=typeof wIt<"u"?xIt:TIt;function cue(e,n,r,i,o){var a=m.useContext(IO),s=a.cache,l=[e].concat(Tt(n)),c=Tre(l),u=OIt([c]),d=function(g){s.opUpdate(c,function(v){var y=v||[void 0,void 0],_=ke(y,2),S=_[0],b=S===void 0?0:S,E=_[1],w=E,C=w||r(),x=[b,C];return g?g(x):x})};m.useMemo(function(){d()},[c]);var f=s.opGet(c),p=f[1];return EIt(function(){o==null||o(p)},function(h){return d(function(g){var v=ke(g,2),y=v[0],_=v[1];return h&&y===0&&(o==null||o(p)),[y+1,_]}),function(){s.opUpdate(c,function(g){var v=g||[],y=ke(v,2),_=y[0],S=_===void 0?0:_,b=y[1],E=S-1;return E===0?(u(function(){(h||!s.opGet(c))&&(i==null||i(b,!1))}),null):[S-1,b]})}},[c]),p}var RIt={},IIt="css",jE=new Map;function NIt(e){jE.set(e,(jE.get(e)||0)+1)}function MIt(e,n){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(RO,'="').concat(e,'"]'));r.forEach(function(i){if(i[Bb]===n){var o;(o=i.parentNode)===null||o===void 0||o.removeChild(i)}})}}var PIt=0;function AIt(e,n){jE.set(e,(jE.get(e)||0)-1);var r=Array.from(jE.keys()),i=r.filter(function(o){var a=jE.get(o)||0;return a<=0});r.length-i.length>PIt&&i.forEach(function(o){MIt(o,n),jE.delete(o)})}var uue=function(n,r,i,o){var a=i.getDerivativeToken(n),s=ee(ee({},a),r);return o&&(s=o(s)),s},Dje="token";function due(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=m.useContext(IO),o=i.cache.instanceId,a=i.container,s=r.salt,l=s===void 0?"":s,c=r.override,u=c===void 0?RIt:c,d=r.formatToken,f=r.getComputedToken,p=r.cssVar,h=gIt(function(){return Object.assign.apply(Object,[{}].concat(Tt(n)))},n),g=Y2(h),v=Y2(u),y=p?Y2(p):"",_=cue(Dje,[l,e.id,g,v,y],function(){var S,b=f?f(h,u,e):uue(h,u,e,d),E=ee({},b),w="";if(p){var C=Aje(b,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),x=ke(C,2);b=x[0],w=x[1]}var T=oEe(b,l);b._tokenKey=T,E._tokenKey=oEe(E,l);var R=(S=p==null?void 0:p.key)!==null&&S!==void 0?S:T;b._themeKey=R,NIt(R);var O="".concat(IIt,"-").concat(aA(T));return b._hashId=O,[b,O,E,w,(p==null?void 0:p.key)||""]},function(S){AIt(S[0]._themeKey,o)},function(S){var b=ke(S,4),E=b[0],w=b[3];if(p&&w){var C=HT(w,aA("css-variables-".concat(E._themeKey)),{mark:Hh,prepend:"queue",attachTo:a,priority:-999});C[Bb]=o,C.setAttribute(RO,E._themeKey)}});return _}var DIt=function(n,r,i){var o=ke(n,5),a=o[2],s=o[3],l=o[4],c=i||{},u=c.plain;if(!s)return null;var d=a._tokenKey,f=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},h=sA(s,l,d,p,u);return[f,d,h]},kje={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},Lje="comm",$je="rule",Fje="decl",kIt="@import",LIt="@keyframes",$It="@layer",Bje=Math.abs,fue=String.fromCharCode;function jje(e){return e.trim()}function e6(e,n,r){return e.replace(n,r)}function FIt(e,n,r){return e.indexOf(n,r)}function lA(e,n){return e.charCodeAt(n)|0}function MO(e,n,r){return e.slice(n,r)}function qg(e){return e.length}function BIt(e){return e.length}function k3(e,n){return n.push(e),e}var O9=1,PO=1,Uje=0,Tp=0,nl=0,rI="";function pue(e,n,r,i,o,a,s,l){return{value:e,root:n,parent:r,type:i,props:o,children:a,line:O9,column:PO,length:s,return:"",siblings:l}}function jIt(){return nl}function UIt(){return nl=Tp>0?lA(rI,--Tp):0,PO--,nl===10&&(PO=1,O9--),nl}function zh(){return nl=Tp<Uje?lA(rI,Tp++):0,PO++,nl===10&&(PO=1,O9++),nl}function jb(){return lA(rI,Tp)}function t6(){return Tp}function R9(e,n){return MO(rI,e,n)}function cA(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 HIt(e){return O9=PO=1,Uje=qg(rI=e),Tp=0,[]}function zIt(e){return rI="",e}function IY(e){return jje(R9(Tp-1,Rre(e===91?e+2:e===40?e+1:e)))}function VIt(e){for(;(nl=jb())&&nl<33;)zh();return cA(e)>2||cA(nl)>3?"":" "}function GIt(e,n){for(;--n&&zh()&&!(nl<48||nl>102||nl>57&&nl<65||nl>70&&nl<97););return R9(e,t6()+(n<6&&jb()==32&&zh()==32))}function Rre(e){for(;zh();)switch(nl){case e:return Tp;case 34:case 39:e!==34&&e!==39&&Rre(nl);break;case 40:e===41&&Rre(e);break;case 92:zh();break}return Tp}function WIt(e,n){for(;zh()&&e+nl!==57;)if(e+nl===84&&jb()===47)break;return"/*"+R9(n,Tp-1)+"*"+fue(e===47?e:zh())}function YIt(e){for(;!cA(jb());)zh();return R9(e,Tp)}function qIt(e){return zIt(n6("",null,null,null,[""],e=HIt(e),0,[0],e))}function n6(e,n,r,i,o,a,s,l,c){for(var u=0,d=0,f=s,p=0,h=0,g=0,v=1,y=1,_=1,S=0,b="",E=o,w=a,C=i,x=b;y;)switch(g=S,S=zh()){case 40:if(g!=108&&lA(x,f-1)==58){FIt(x+=e6(IY(S),"&","&\f"),"&\f",Bje(u?l[u-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:x+=IY(S);break;case 9:case 10:case 13:case 32:x+=VIt(g);break;case 92:x+=GIt(t6()-1,7);continue;case 47:switch(jb()){case 42:case 47:k3(KIt(WIt(zh(),t6()),n,r,c),c),(cA(g||1)==5||cA(jb()||1)==5)&&qg(x)&&MO(x,-1,void 0)!==" "&&(x+=" ");break;default:x+="/"}break;case 123*v:l[u++]=qg(x)*_;case 125*v:case 59:case 0:switch(S){case 0:case 125:y=0;case 59+d:_==-1&&(x=e6(x,/\f/g,"")),h>0&&(qg(x)-f||v===0&&g===47)&&k3(h>32?cEe(x+";",i,r,f-1,c):cEe(e6(x," ","")+";",i,r,f-2,c),c);break;case 59:x+=";";default:if(k3(C=lEe(x,n,r,u,d,o,l,b,E=[],w=[],f,a),a),S===123)if(d===0)n6(x,n,C,C,E,a,f,l,w);else switch(p===99&&lA(x,3)===110?100:p){case 100:case 108:case 109:case 115:n6(e,C,C,i&&k3(lEe(e,C,C,0,0,o,l,b,o,E=[],f,w),w),o,w,f,l,i?E:w);break;default:n6(x,C,C,C,[""],w,0,l,w)}}u=d=h=0,v=_=1,b=x="",f=s;break;case 58:f=1+qg(x),h=g;default:if(v<1){if(S==123)--v;else if(S==125&&v++==0&&UIt()==125)continue}switch(x+=fue(S),S*v){case 38:_=d>0?1:(x+="\f",-1);break;case 44:l[u++]=(qg(x)-1)*_,_=1;break;case 64:jb()===45&&(x+=IY(zh())),p=jb(),d=f=qg(b=x+=YIt(t6())),S++;break;case 45:g===45&&qg(x)==2&&(v=0)}}return a}function lEe(e,n,r,i,o,a,s,l,c,u,d,f){for(var p=o-1,h=o===0?a:[""],g=BIt(h),v=0,y=0,_=0;v<i;++v)for(var S=0,b=MO(e,p+1,p=Bje(y=s[v])),E=e;S<g;++S)(E=jje(y>0?h[S]+" "+b:e6(b,/&\f/g,h[S])))&&(c[_++]=E);return pue(e,n,r,o===0?$je:l,c,u,d,f)}function KIt(e,n,r,i){return pue(e,n,r,Lje,fue(jIt()),MO(e,2,-2),0,i)}function cEe(e,n,r,i,o){return pue(e,n,r,Fje,MO(e,0,i),MO(e,i+1,-1),i,o)}function Ire(e,n){for(var r="",i=0;i<e.length;i++)r+=n(e[i],i,e,n)||"";return r}function XIt(e,n,r,i){switch(e.type){case $It:if(e.children.length)break;case kIt:case Fje:return e.return=e.return||e.value;case Lje:return"";case LIt:return e.return=e.value+"{"+Ire(e.children,i)+"}";case $je:if(!qg(e.value=e.props.join(",")))return""}return qg(r=Ire(e.children,i))?e.return=e.value+"{"+r+"}":""}function n1(e,n){var r=n.path,i=n.parentSelectors;sk(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(i.length?" Selector: ".concat(i.join(" | ")):""))}function QIt(e){var n,r=((n=e.match(/:not\(([^)]*)\)/))===null||n===void 0?void 0:n[1])||"",i=r.split(/(\[[^[]*])|(?=[.#])/).filter(function(o){return o});return i.length>1}function ZIt(e){return e.parentSelectors.reduce(function(n,r){return n?r.includes("&")?r.replace(/&/g,n):"".concat(n," ").concat(r):r},"")}var JIt=function(n,r,i){var o=ZIt(i),a=o.match(/:not\([^)]*\)/g)||[];a.length>0&&a.some(QIt)&&n1("Concat ':not' selector not support in legacy browsers.",i)},eNt=function(n,r,i){switch(n){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":n1("You seem to be using non-logical property '".concat(n,"' 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."),i);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof r=="string"){var o=r.split(" ").map(function(l){return l.trim()});o.length===4&&o[1]!==o[3]&&n1("You seem to be using '".concat(n,"' property with different left ").concat(n," and right ").concat(n,", 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."),i)}return;case"clear":case"textAlign":(r==="left"||r==="right")&&n1("You seem to be using non-logical value '".concat(r,"' of ").concat(n,", 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."),i);return;case"borderRadius":if(typeof r=="string"){var a=r.split("/").map(function(l){return l.trim()}),s=a.reduce(function(l,c){if(l)return l;var u=c.split(" ").map(function(d){return d.trim()});return u.length>=2&&u[0]!==u[1]||u.length===3&&u[1]!==u[2]||u.length===4&&u[2]!==u[3]?!0:l},!1);s&&n1("You seem to be using non-logical value '".concat(r,"' of ").concat(n,", 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."),i)}return}},tNt=function(n,r,i){(typeof r=="string"&&/NaN/g.test(r)||Number.isNaN(r))&&n1("Unexpected 'NaN' in property '".concat(n,": ").concat(r,"'."),i)},nNt=function(n,r,i){i.parentSelectors.some(function(o){var a=o.split(",");return a.some(function(s){return s.split("&").length>2})})&&n1("Should not use more than one `&` in a selector.",i)},K2="data-ant-cssinjs-cache-path",Hje="_FILE_STYLE__";function rNt(e){return Object.keys(e).map(function(n){var r=e[n];return"".concat(n,":").concat(r)}).join(";")}var O1,zje=!0;function iNt(){if(!O1&&(O1={},nI())){var e=document.createElement("div");e.className=K2,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var n=getComputedStyle(e).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(function(o){var a=o.split(":"),s=ke(a,2),l=s[0],c=s[1];O1[l]=c});var r=document.querySelector("style[".concat(K2,"]"));if(r){var i;zje=!1,(i=r.parentNode)===null||i===void 0||i.removeChild(r)}document.body.removeChild(e)}}function oNt(e){return iNt(),!!O1[e]}function aNt(e){var n=O1[e],r=null;if(n&&nI())if(zje)r=Hje;else{var i=document.querySelector("style[".concat(Hh,'="').concat(O1[e],'"]'));i?r=i.innerHTML:delete O1[e]}return[r,n]}var sNt="_skip_check_",Vje="_multi_value_";function r6(e){var n=Ire(qIt(e),XIt);return n.replace(/\{%%%\:[^;];}/g,";")}function lNt(e){return cn(e)==="object"&&e&&(sNt in e||Vje in e)}function uEe(e,n,r){if(!n)return e;var i=".".concat(n),o=r==="low"?":where(".concat(i,")"):i,a=e.split(",").map(function(s){var l,c=s.trim().split(/\s+/),u=c[0]||"",d=((l=u.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return u="".concat(d).concat(o).concat(u.slice(d.length)),[u].concat(Tt(c.slice(1))).join(" ")});return a.join(",")}var cNt=function e(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=i.root,a=i.injectHash,s=i.parentSelectors,l=r.hashId,c=r.layer;r.path;var u=r.hashPriority,d=r.transformers,f=d===void 0?[]:d;r.linters;var p="",h={};function g(_){var S=_.getName(l);if(!h[S]){var b=e(_.style,r,{root:!1,parentSelectors:s}),E=ke(b,1),w=E[0];h[S]="@keyframes ".concat(_.getName(l)).concat(w)}}function v(_){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return _.forEach(function(b){Array.isArray(b)?v(b,S):b&&S.push(b)}),S}var y=v(Array.isArray(n)?n:[n]);return y.forEach(function(_){var S=typeof _=="string"&&!o?{}:_;if(typeof S=="string")p+="".concat(S,`
`);else if(S._keyframe)g(S);else{var b=f.reduce(function(E,w){var C;return(w==null||(C=w.visit)===null||C===void 0?void 0:C.call(w,E))||E},S);Object.keys(b).forEach(function(E){var w=b[E];if(cn(w)==="object"&&w&&(E!=="animationName"||!w._keyframe)&&!lNt(w)){var C=!1,x=E.trim(),T=!1;(o||a)&&l?x.startsWith("@")?C=!0:x==="&"?x=uEe("",l,u):x=uEe(E,l,u):o&&!l&&(x==="&"||x==="")&&(x="",T=!0);var R=e(w,r,{root:T,injectHash:C,parentSelectors:[].concat(Tt(s),[x])}),O=ke(R,2),M=O[0],P=O[1];h=ee(ee({},h),P),p+="".concat(x).concat(M)}else{let U=function(z,D){var B=z.replace(/[A-Z]/g,function(q){return"-".concat(q.toLowerCase())}),Y=D;!kje[z]&&typeof Y=="number"&&Y!==0&&(Y="".concat(Y,"px")),z==="animationName"&&D!==null&&D!==void 0&&D._keyframe&&(g(D),Y=D.getName(l)),p+="".concat(B,":").concat(Y,";")};var k,$=(k=w==null?void 0:w.value)!==null&&k!==void 0?k:w;cn(w)==="object"&&w!==null&&w!==void 0&&w[Vje]&&Array.isArray($)?$.forEach(function(z){U(E,z)}):U(E,$)}})}}),o?c&&(p="@layer ".concat(c.name," {").concat(p,"}"),c.dependencies&&(h["@layer ".concat(c.name)]=c.dependencies.map(function(_){return"@layer ".concat(_,", ").concat(c.name,";")}).join(`
`))):p="{".concat(p,"}"),[p,h]};function Gje(e,n){return aA("".concat(e.join("%")).concat(n))}function uNt(){return null}var Wje="style";function uA(e,n){var r=e.token,i=e.path,o=e.hashId,a=e.layer,s=e.nonce,l=e.clientOnly,c=e.order,u=c===void 0?0:c,d=m.useContext(IO),f=d.autoClear;d.mock;var p=d.defaultCache,h=d.hashPriority,g=d.container,v=d.ssrInline,y=d.transformers,_=d.linters,S=d.cache,b=d.layer,E=r._tokenKey,w=[E];b&&w.push("layer"),w.push.apply(w,Tt(i));var C=Ore,x=cue(Wje,w,function(){var P=w.join("|");if(oNt(P)){var k=aNt(P),$=ke(k,2),U=$[0],z=$[1];if(U)return[U,E,z,{},l,u]}var D=n(),B=cNt(D,{hashId:o,hashPriority:h,layer:b?a:void 0,path:i.join("-"),transformers:y,linters:_}),Y=ke(B,2),q=Y[0],K=Y[1],H=r6(q),G=Gje(w,H);return[H,E,G,K,l,u]},function(P,k){var $=ke(P,3),U=$[2];(k||f)&&Ore&&oue(U,{mark:Hh})},function(P){var k=ke(P,4),$=k[0];k[1];var U=k[2],z=k[3];if(C&&$!==Hje){var D={mark:Hh,prepend:b?!1:"queue",attachTo:g,priority:u},B=typeof s=="function"?s():s;B&&(D.csp={nonce:B});var Y=[],q=[];Object.keys(z).forEach(function(H){H.startsWith("@layer")?Y.push(H):q.push(H)}),Y.forEach(function(H){HT(r6(z[H]),"_layer-".concat(H),ee(ee({},D),{},{prepend:!0}))});var K=HT($,U,D);K[Bb]=S.instanceId,K.setAttribute(RO,E),q.forEach(function(H){HT(r6(z[H]),"_effect-".concat(H),D)})}}),T=ke(x,3),R=T[0],O=T[1],M=T[2];return function(P){var k;if(!v||C||!p)k=m.createElement(uNt,null);else{var $;k=m.createElement("style",ft({},($={},fe($,RO,O),fe($,Hh,M),$),{dangerouslySetInnerHTML:{__html:R}}))}return m.createElement(m.Fragment,null,k,P)}}var dNt=function(n,r,i){var o=ke(n,6),a=o[0],s=o[1],l=o[2],c=o[3],u=o[4],d=o[5],f=i||{},p=f.plain;if(u)return null;var h=a,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return h=sA(a,s,l,g,p),c&&Object.keys(c).forEach(function(v){if(!r[v]){r[v]=!0;var y=r6(c[v]),_=sA(y,s,"_effect-".concat(v),g,p);v.startsWith("@layer")?h=_+h:h+=_}}),[d,l,h]},Yje="cssVar",qje=function(n,r){var i=n.key,o=n.prefix,a=n.unitless,s=n.ignore,l=n.token,c=n.scope,u=c===void 0?"":c,d=m.useContext(IO),f=d.cache.instanceId,p=d.container,h=l._tokenKey,g=[].concat(Tt(n.path),[i,u,h]),v=cue(Yje,g,function(){var y=r(),_=Aje(y,i,{prefix:o,unitless:a,ignore:s,scope:u}),S=ke(_,2),b=S[0],E=S[1],w=Gje(g,E);return[b,E,w,i]},function(y){var _=ke(y,3),S=_[2];Ore&&oue(S,{mark:Hh})},function(y){var _=ke(y,3),S=_[1],b=_[2];if(S){var E=HT(S,b,{mark:Hh,prepend:"queue",attachTo:p,priority:-999});E[Bb]=f,E.setAttribute(RO,i)}});return v},fNt=function(n,r,i){var o=ke(n,4),a=o[1],s=o[2],l=o[3],c=i||{},u=c.plain;if(!a)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=sA(a,l,s,f,u);return[d,s,p]},nM,pNt=(nM={},fe(nM,Wje,dNt),fe(nM,Dje,DIt),fe(nM,Yje,fNt),nM);function hNt(e){return e!==null}function gNt(e,n){var r=typeof n=="boolean"?{plain:n}:n||{},i=r.plain,o=i===void 0?!1:i,a=r.types,s=a===void 0?["style","token","cssVar"]:a,l=new RegExp("^(".concat((typeof s=="string"?[s]:s).join("|"),")%")),c=Array.from(e.cache.keys()).filter(function(p){return l.test(p)}),u={},d={},f="";return c.map(function(p){var h=p.replace(l,"").replace(/%/g,"|"),g=p.split("%"),v=ke(g,1),y=v[0],_=pNt[y],S=_(e.cache.get(p)[1],u,{plain:o});if(!S)return null;var b=ke(S,3),E=b[0],w=b[1],C=b[2];return p.startsWith("style")&&(d[h]=w),[E,C]}).filter(hNt).sort(function(p,h){var g=ke(p,1),v=g[0],y=ke(h,1),_=y[0];return v-_}).forEach(function(p){var h=ke(p,2),g=h[1];f+=g}),f+=sA(".".concat(K2,'{content:"').concat(rNt(d),'";}'),void 0,void 0,fe({},K2,K2),o),f}var kr=function(){function e(n,r){Ki(this,e),fe(this,"name",void 0),fe(this,"style",void 0),fe(this,"_keyframe",!0),this.name=n,this.style=r}return Xi(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function mNt(e){if(typeof e=="number")return[[e],!1];var n=String(e).trim(),r=n.match(/(.*)(!important)/),i=(r?r[1]:n).trim().split(/\s+/),o=[],a=0;return[i.reduce(function(s,l){if(l.includes("(")||l.includes(")")){var c=l.split("(").length-1,u=l.split(")").length-1;a+=c-u}return a>=0&&o.push(l),a===0&&(s.push(o.join(" ")),o=[]),s},[]),!!r]}function hx(e){return e.notSplit=!0,e}var vNt={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:hx(["borderTop","borderBottom"]),borderBlockStart:hx(["borderTop"]),borderBlockEnd:hx(["borderBottom"]),borderInline:hx(["borderLeft","borderRight"]),borderInlineStart:hx(["borderLeft"]),borderInlineEnd:hx(["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 L3(e,n){var r=e;return n&&(r="".concat(r," !important")),{_skip_check_:!0,value:r}}var yNt={visit:function(n){var r={};return Object.keys(n).forEach(function(i){var o=n[i],a=vNt[i];if(a&&(typeof o=="number"||typeof o=="string")){var s=mNt(o),l=ke(s,2),c=l[0],u=l[1];a.length&&a.notSplit?a.forEach(function(d){r[d]=L3(o,u)}):a.length===1?r[a[0]]=L3(c[0],u):a.length===2?a.forEach(function(d,f){var p;r[d]=L3((p=c[f])!==null&&p!==void 0?p:c[0],u)}):a.length===4?a.forEach(function(d,f){var p,h;r[d]=L3((p=(h=c[f])!==null&&h!==void 0?h:c[f-2])!==null&&p!==void 0?p:c[0],u)}):r[i]=o}else r[i]=o}),r}},NY=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function _Nt(e,n){var r=Math.pow(10,n+1),i=Math.floor(e*r);return Math.round(i/10)*10/r}var bNt=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=n.rootValue,i=r===void 0?16:r,o=n.precision,a=o===void 0?5:o,s=n.mediaQuery,l=s===void 0?!1:s,c=function(f,p){if(!p)return f;var h=parseFloat(p);if(h<=1)return f;var g=_Nt(h/i,a);return"".concat(g,"rem")},u=function(f){var p=ee({},f);return Object.entries(f).forEach(function(h){var g=ke(h,2),v=g[0],y=g[1];if(typeof y=="string"&&y.includes("px")){var _=y.replace(NY,c);p[v]=_}!kje[v]&&typeof y=="number"&&y!==0&&(p[v]="".concat(y,"px").replace(NY,c));var S=v.trim();if(S.startsWith("@")&&S.includes("px")&&l){var b=v.replace(NY,c);p[b]=p[v],delete p[v]}}),p};return{visit:u}},SNt={supportModernCSS:function(){return mIt()&&vIt()}};const ENt=Object.freeze(Object.defineProperty({__proto__:null,Keyframes:kr,NaNLinter:tNt,StyleProvider:lIt,Theme:lue,_experimental:SNt,createCache:aue,createTheme:eC,extractStyle:gNt,genCalc:fIt,getComputedToken:uue,legacyLogicalPropertiesTransformer:yNt,legacyNotSelectorLinter:JIt,logicalPropertiesLinter:eNt,parentSelectorLinter:nNt,px2remTransformer:bNt,token2CSSVar:q2,unit:Ye,useCSSVarRegister:qje,useCacheToken:due,useStyleRegister:uA},Symbol.toStringTag,{value:"Module"}));var I9=m.createContext({});function Kje(e){return Cje(e)||_je(e)||x9(e)||wje()}function al(e,n){for(var r=e,i=0;i<n.length;i+=1){if(r==null)return;r=r[n[i]]}return r}function Xje(e,n,r,i){if(!n.length)return r;var o=Kje(n),a=o[0],s=o.slice(1),l;return!e&&typeof a=="number"?l=[]:Array.isArray(e)?l=Tt(e):l=ee({},e),i&&r===void 0&&s.length===1?delete l[a][s[0]]:l[a]=Xje(l[a],s,r,i),l}function Fs(e,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return n.length&&i&&r===void 0&&!al(e,n.slice(0,-1))?e:Xje(e,n,r,i)}function CNt(e){return cn(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function dEe(e){return Array.isArray(e)?[]:{}}var wNt=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function mT(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=dEe(n[0]);return n.forEach(function(o){function a(s,l){var c=new Set(l),u=al(o,s),d=Array.isArray(u);if(d||CNt(u)){if(!c.has(u)){c.add(u);var f=al(i,s);d?i=Fs(i,s,[]):(!f||cn(f)!=="object")&&(i=Fs(i,s,dEe(u))),wNt(u).forEach(function(p){a([].concat(Tt(s),[p]),c)})}}else i=Fs(i,s,u)}a([])}),i}function xNt(){}const TNt=m.createContext({}),JC=()=>{const e=()=>{};return e.deprecated=xNt,e},Qje=m.createContext(void 0);var ONt={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"},Zje={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},RNt=ee(ee({},Zje),{},{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 Jje={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},d8={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"]},RNt),timePickerLocale:Object.assign({},Jje)},$d="${label} is not a valid ${type}",Op={locale:"en",Pagination:ONt,DatePicker:d8,TimePicker:Jje,Calendar:d8,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:$d,method:$d,array:$d,object:$d,number:$d,date:$d,boolean:$d,integer:$d,float:$d,regexp:$d,email:$d,url:$d,hex:$d},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 i6=Object.assign({},Op.Modal),o6=[];const fEe=()=>o6.reduce((e,n)=>Object.assign(Object.assign({},e),n),Op.Modal);function INt(e){if(e){const n=Object.assign({},e);return o6.push(n),i6=fEe(),()=>{o6=o6.filter(r=>r!==n),i6=fEe()}}i6=Object.assign({},Op.Modal)}function e7e(){return i6}const hue=m.createContext(void 0),Mu=(e,n)=>{const r=m.useContext(hue),i=m.useMemo(()=>{var a;const s=n||Op[e],l=(a=r==null?void 0:r[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),l||{})},[e,n,r]),o=m.useMemo(()=>{const a=r==null?void 0:r.locale;return r!=null&&r.exist&&!a?Op.locale:a},[r]);return[i,o]},NNt="internalMark",MNt=e=>{const{locale:n={},children:r,_ANT_MARK__:i}=e;m.useEffect(()=>INt(n==null?void 0:n.Modal),[n]);const o=m.useMemo(()=>Object.assign(Object.assign({},n),{exist:!0}),[n]);return m.createElement(hue.Provider,{value:o},r)},Bl=Math.round;function MY(e,n){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],i=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)i[o]=n(i[o]||0,r[o]||"",o);return r[3]?i[3]=r[3].includes("%")?i[3]/100:i[3]:i[3]=1,i}const pEe=(e,n,r)=>r===0?e:e/100;function rM(e,n){const r=n||255;return e>r?r:e<0?0:e}class Gr{constructor(n){fe(this,"isValid",!0),fe(this,"r",0),fe(this,"g",0),fe(this,"b",0),fe(this,"a",1),fe(this,"_h",void 0),fe(this,"_s",void 0),fe(this,"_l",void 0),fe(this,"_v",void 0),fe(this,"_max",void 0),fe(this,"_min",void 0),fe(this,"_brightness",void 0);function r(i){return i[0]in n&&i[1]in n&&i[2]in n}if(n)if(typeof n=="string"){let o=function(a){return i.startsWith(a)};const i=n.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):o("rgb")?this.fromRgbString(i):o("hsl")?this.fromHslString(i):(o("hsv")||o("hsb"))&&this.fromHsvString(i)}else if(n instanceof Gr)this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this._h=n._h,this._s=n._s,this._l=n._l,this._v=n._v;else if(r("rgb"))this.r=rM(n.r),this.g=rM(n.g),this.b=rM(n.b),this.a=typeof n.a=="number"?rM(n.a,1):1;else if(r("hsl"))this.fromHsl(n);else if(r("hsv"))this.fromHsv(n);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(n))}setR(n){return this._sc("r",n)}setG(n){return this._sc("g",n)}setB(n){return this._sc("b",n)}setA(n){return this._sc("a",n,1)}setHue(n){const r=this.toHsv();return r.h=n,this._c(r)}getLuminance(){function n(a){const s=a/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const r=n(this.r),i=n(this.g),o=n(this.b);return .2126*r+.7152*i+.0722*o}getHue(){if(typeof this._h>"u"){const n=this.getMax()-this.getMin();n===0?this._h=0:this._h=Bl(60*(this.r===this.getMax()?(this.g-this.b)/n+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/n+2:(this.r-this.g)/n+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const n=this.getMax()-this.getMin();n===0?this._s=0:this._s=n/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(n=10){const r=this.getHue(),i=this.getSaturation();let o=this.getLightness()-n/100;return o<0&&(o=0),this._c({h:r,s:i,l:o,a:this.a})}lighten(n=10){const r=this.getHue(),i=this.getSaturation();let o=this.getLightness()+n/100;return o>1&&(o=1),this._c({h:r,s:i,l:o,a:this.a})}mix(n,r=50){const i=this._c(n),o=r/100,a=l=>(i[l]-this[l])*o+this[l],s={r:Bl(a("r")),g:Bl(a("g")),b:Bl(a("b")),a:Bl(a("a")*100)/100};return this._c(s)}tint(n=10){return this.mix({r:255,g:255,b:255,a:1},n)}shade(n=10){return this.mix({r:0,g:0,b:0,a:1},n)}onBackground(n){const r=this._c(n),i=this.a+r.a*(1-this.a),o=a=>Bl((this[a]*this.a+r[a]*r.a*(1-this.a))/i);return this._c({r:o("r"),g:o("g"),b:o("b"),a:i})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(n){return this.r===n.r&&this.g===n.g&&this.b===n.b&&this.a===n.a}clone(){return this._c(this)}toHexString(){let n="#";const r=(this.r||0).toString(16);n+=r.length===2?r:"0"+r;const i=(this.g||0).toString(16);n+=i.length===2?i:"0"+i;const o=(this.b||0).toString(16);if(n+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=Bl(this.a*255).toString(16);n+=a.length===2?a:"0"+a}return n}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const n=this.getHue(),r=Bl(this.getSaturation()*100),i=Bl(this.getLightness()*100);return this.a!==1?`hsla(${n},${r}%,${i}%,${this.a})`:`hsl(${n},${r}%,${i}%)`}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(n,r,i){const o=this.clone();return o[n]=rM(r,i),o}_c(n){return new this.constructor(n)}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(n){const r=n.replace("#","");function i(o,a){return parseInt(r[o]+r[a||o],16)}r.length<6?(this.r=i(0),this.g=i(1),this.b=i(2),this.a=r[3]?i(3)/255:1):(this.r=i(0,1),this.g=i(2,3),this.b=i(4,5),this.a=r[6]?i(6,7)/255:1)}fromHsl({h:n,s:r,l:i,a:o}){if(this._h=n%360,this._s=r,this._l=i,this.a=typeof o=="number"?o:1,r<=0){const p=Bl(i*255);this.r=p,this.g=p,this.b=p}let a=0,s=0,l=0;const c=n/60,u=(1-Math.abs(2*i-1))*r,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(a=u,s=d):c>=1&&c<2?(a=d,s=u):c>=2&&c<3?(s=u,l=d):c>=3&&c<4?(s=d,l=u):c>=4&&c<5?(a=d,l=u):c>=5&&c<6&&(a=u,l=d);const f=i-u/2;this.r=Bl((a+f)*255),this.g=Bl((s+f)*255),this.b=Bl((l+f)*255)}fromHsv({h:n,s:r,v:i,a:o}){this._h=n%360,this._s=r,this._v=i,this.a=typeof o=="number"?o:1;const a=Bl(i*255);if(this.r=a,this.g=a,this.b=a,r<=0)return;const s=n/60,l=Math.floor(s),c=s-l,u=Bl(i*(1-r)*255),d=Bl(i*(1-r*c)*255),f=Bl(i*(1-r*(1-c))*255);switch(l){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(n){const r=MY(n,pEe);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(n){const r=MY(n,pEe);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(n){const r=MY(n,(i,o)=>o.includes("%")?Bl(i/100*255):i);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}const PNt=Object.freeze(Object.defineProperty({__proto__:null,FastColor:Gr},Symbol.toStringTag,{value:"Module"}));var $3=2,hEe=.16,ANt=.05,DNt=.05,kNt=.15,t7e=5,n7e=4,LNt=[{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 gEe(e,n,r){var i;return Math.round(e.h)>=60&&Math.round(e.h)<=240?i=r?Math.round(e.h)-$3*n:Math.round(e.h)+$3*n:i=r?Math.round(e.h)+$3*n:Math.round(e.h)-$3*n,i<0?i+=360:i>=360&&(i-=360),i}function mEe(e,n,r){if(e.h===0&&e.s===0)return e.s;var i;return r?i=e.s-hEe*n:n===n7e?i=e.s+hEe:i=e.s+ANt*n,i>1&&(i=1),r&&n===t7e&&i>.1&&(i=.1),i<.06&&(i=.06),Math.round(i*100)/100}function vEe(e,n,r){var i;return r?i=e.v+DNt*n:i=e.v-kNt*n,i=Math.max(0,Math.min(1,i)),Math.round(i*100)/100}function C0(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],i=new Gr(e),o=i.toHsv(),a=t7e;a>0;a-=1){var s=new Gr({h:gEe(o,a,!0),s:mEe(o,a,!0),v:vEe(o,a,!0)});r.push(s)}r.push(i);for(var l=1;l<=n7e;l+=1){var c=new Gr({h:gEe(o,l),s:mEe(o,l),v:vEe(o,l)});r.push(c)}return n.theme==="dark"?LNt.map(function(u){var d=u.index,f=u.amount;return new Gr(n.backgroundColor||"#141414").mix(r[d],f).toHexString()}):r.map(function(u){return u.toHexString()})}var R1={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"},f8=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];f8.primary=f8[5];var p8=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];p8.primary=p8[5];var h8=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];h8.primary=h8[5];var g8=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];g8.primary=g8[5];var m8=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];m8.primary=m8[5];var v8=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];v8.primary=v8[5];var y8=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];y8.primary=y8[5];var _8=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];_8.primary=_8[5];var tC=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];tC.primary=tC[5];var b8=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];b8.primary=b8[5];var S8=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];S8.primary=S8[5];var E8=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];E8.primary=E8[5];var dA=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];dA.primary=dA[5];var $Nt=dA,a6={red:f8,volcano:p8,orange:h8,gold:g8,yellow:m8,lime:v8,green:y8,cyan:_8,blue:tC,geekblue:b8,purple:S8,magenta:E8,grey:dA},C8=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];C8.primary=C8[5];var w8=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];w8.primary=w8[5];var x8=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];x8.primary=x8[5];var T8=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];T8.primary=T8[5];var O8=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];O8.primary=O8[5];var R8=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];R8.primary=R8[5];var I8=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];I8.primary=I8[5];var N8=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];N8.primary=N8[5];var M8=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];M8.primary=M8[5];var P8=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];P8.primary=P8[5];var A8=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];A8.primary=A8[5];var D8=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];D8.primary=D8[5];var k8=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];k8.primary=k8[5];var FNt={red:C8,volcano:w8,orange:x8,gold:T8,yellow:O8,lime:R8,green:I8,cyan:N8,blue:M8,geekblue:P8,purple:A8,magenta:D8,grey:k8};const BNt=Object.freeze(Object.defineProperty({__proto__:null,blue:tC,blueDark:M8,cyan:_8,cyanDark:N8,geekblue:b8,geekblueDark:P8,generate:C0,gold:g8,goldDark:T8,gray:$Nt,green:y8,greenDark:I8,grey:dA,greyDark:k8,lime:v8,limeDark:R8,magenta:E8,magentaDark:D8,orange:h8,orangeDark:x8,presetDarkPalettes:FNt,presetPalettes:a6,presetPrimaryColors:R1,purple:S8,purpleDark:A8,red:f8,redDark:C8,volcano:p8,volcanoDark:w8,yellow:m8,yellowDark:O8},Symbol.toStringTag,{value:"Module"})),gue={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"},AO=Object.assign(Object.assign({},gue),{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 r7e(e,n){let{generateColorPalettes:r,generateNeutralColorPalettes:i}=n;const{colorSuccess:o,colorWarning:a,colorError:s,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=r(c),p=r(o),h=r(a),g=r(s),v=r(l),y=i(u,d),_=e.colorLink||e.colorInfo,S=r(_),b=new Gr(g[1]).mix(new Gr(g[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:b,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:S[4],colorLink:S[6],colorLinkActive:S[7],colorBgMask:new Gr("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const jNt=e=>{let n=e,r=e,i=e,o=e;return e<6&&e>=5?n=e+1:e<16&&e>=6?n=e+2:e>=16&&(n=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?i=1:e>=6&&(i=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:i,borderRadiusSM:r,borderRadiusLG:n,borderRadiusOuter:o}};function UNt(e){const{motionUnit:n,motionBase:r,borderRadius:i,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+n).toFixed(1)}s`,motionDurationMid:`${(r+n*2).toFixed(1)}s`,motionDurationSlow:`${(r+n*3).toFixed(1)}s`,lineWidthBold:o+1},jNt(i))}const i7e=e=>{const{controlHeight:n}=e;return{controlHeightSM:n*.75,controlHeightXS:n*.5,controlHeightLG:n*1.25}};function s6(e){return(e+8)/e}function HNt(e){const n=new Array(10).fill(null).map((r,i)=>{const o=i-1,a=e*Math.pow(Math.E,o/5),s=i>1?Math.floor(a):Math.ceil(a);return Math.floor(s/2)*2});return n[1]=e,n.map(r=>({size:r,lineHeight:s6(r)}))}const o7e=e=>{const n=HNt(e),r=n.map(d=>d.size),i=n.map(d=>d.lineHeight),o=r[1],a=r[0],s=r[2],l=i[1],c=i[0],u=i[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:s,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:l,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*s),fontHeightSM:Math.round(c*a),lineHeightHeading1:i[6],lineHeightHeading2:i[5],lineHeightHeading3:i[4],lineHeightHeading4:i[3],lineHeightHeading5:i[2]}};function zNt(e){const{sizeUnit:n,sizeStep:r}=e;return{sizeXXL:n*(r+8),sizeXL:n*(r+4),sizeLG:n*(r+2),sizeMD:n*(r+1),sizeMS:n*r,size:n*r,sizeSM:n*(r-1),sizeXS:n*(r-2),sizeXXS:n*(r-3)}}const Vf=(e,n)=>new Gr(e).setA(n).toRgbString(),iM=(e,n)=>new Gr(e).darken(n).toHexString(),VNt=e=>{const n=C0(e);return{1:n[0],2:n[1],3:n[2],4:n[3],5:n[4],6:n[5],7:n[6],8:n[4],9:n[5],10:n[6]}},GNt=(e,n)=>{const r=e||"#fff",i=n||"#000";return{colorBgBase:r,colorTextBase:i,colorText:Vf(i,.88),colorTextSecondary:Vf(i,.65),colorTextTertiary:Vf(i,.45),colorTextQuaternary:Vf(i,.25),colorFill:Vf(i,.15),colorFillSecondary:Vf(i,.06),colorFillTertiary:Vf(i,.04),colorFillQuaternary:Vf(i,.02),colorBgSolid:Vf(i,1),colorBgSolidHover:Vf(i,.75),colorBgSolidActive:Vf(i,.95),colorBgLayout:iM(r,4),colorBgContainer:iM(r,0),colorBgElevated:iM(r,0),colorBgSpotlight:Vf(i,.85),colorBgBlur:"transparent",colorBorder:iM(r,15),colorBorderSecondary:iM(r,6)}};function lk(e){R1.pink=R1.magenta,a6.pink=a6.magenta;const n=Object.keys(gue).map(r=>{const i=e[r]===R1[r]?a6[r]:C0(e[r]);return new Array(10).fill(1).reduce((o,a,s)=>(o[`${r}-${s+1}`]=i[s],o[`${r}${s+1}`]=i[s],o),{})}).reduce((r,i)=>(r=Object.assign(Object.assign({},r),i),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),n),r7e(e,{generateColorPalettes:VNt,generateNeutralColorPalettes:GNt})),o7e(e.fontSize)),zNt(e)),i7e(e)),UNt(e))}const a7e=eC(lk),fA={token:AO,override:{override:AO},hashed:!0},mue=V.createContext(fA),pA="ant",N9="anticon",WNt=["outlined","borderless","filled"],YNt=(e,n)=>n||(e?`${pA}-${e}`:pA),Cn=m.createContext({getPrefixCls:YNt,iconPrefixCls:N9});function bf(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Nre(e,n){if(!e)return!1;if(e.contains)return e.contains(n);for(var r=n;r;){if(r===e)return!0;r=r.parentNode}return!1}var yEe="data-rc-order",_Ee="data-rc-priority",qNt="rc-util-key",Mre=new Map;function s7e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.mark;return n?n.startsWith("data-")?n:"data-".concat(n):qNt}function M9(e){if(e.attachTo)return e.attachTo;var n=document.querySelector("head");return n||document.body}function KNt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function vue(e){return Array.from((Mre.get(e)||e).children).filter(function(n){return n.tagName==="STYLE"})}function l7e(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!bf())return null;var r=n.csp,i=n.prepend,o=n.priority,a=o===void 0?0:o,s=KNt(i),l=s==="prependQueue",c=document.createElement("style");c.setAttribute(yEe,s),l&&a&&c.setAttribute(_Ee,"".concat(a)),r!=null&&r.nonce&&(c.nonce=r==null?void 0:r.nonce),c.innerHTML=e;var u=M9(n),d=u.firstChild;if(i){if(l){var f=(n.styles||vue(u)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(yEe)))return!1;var h=Number(p.getAttribute(_Ee)||0);return a>=h});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function c7e(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=M9(n);return(n.styles||vue(r)).find(function(i){return i.getAttribute(s7e(n))===e})}function Pre(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=c7e(e,n);if(r){var i=M9(n);i.removeChild(r)}}function XNt(e,n){var r=Mre.get(e);if(!r||!Nre(document,r)){var i=l7e("",n),o=i.parentNode;Mre.set(e,o),e.removeChild(i)}}function P9(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=M9(r),o=vue(i),a=ee(ee({},r),{},{styles:o});XNt(i,a);var s=c7e(n,a);if(s){var l,c;if((l=a.csp)!==null&&l!==void 0&&l.nonce&&s.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var u;s.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var d=l7e(e,a);return d.setAttribute(s7e(a),n),d}const QNt=`-ant-${Date.now()}-${Math.random()}`;function ZNt(e,n){const r={},i=(s,l)=>{let c=s.clone();return c=(l==null?void 0:l(c))||c,c.toRgbString()},o=(s,l)=>{const c=new Gr(s),u=C0(c.toRgbString());r[`${l}-color`]=i(c),r[`${l}-color-disabled`]=u[1],r[`${l}-color-hover`]=u[4],r[`${l}-color-active`]=u[6],r[`${l}-color-outline`]=c.clone().setA(.2).toRgbString(),r[`${l}-color-deprecated-bg`]=u[0],r[`${l}-color-deprecated-border`]=u[2]};if(n.primaryColor){o(n.primaryColor,"primary");const s=new Gr(n.primaryColor),l=C0(s.toRgbString());l.forEach((u,d)=>{r[`primary-${d+1}`]=u}),r["primary-color-deprecated-l-35"]=i(s,u=>u.lighten(35)),r["primary-color-deprecated-l-20"]=i(s,u=>u.lighten(20)),r["primary-color-deprecated-t-20"]=i(s,u=>u.tint(20)),r["primary-color-deprecated-t-50"]=i(s,u=>u.tint(50)),r["primary-color-deprecated-f-12"]=i(s,u=>u.setA(u.a*.12));const c=new Gr(l[0]);r["primary-color-active-deprecated-f-30"]=i(c,u=>u.setA(u.a*.3)),r["primary-color-active-deprecated-d-02"]=i(c,u=>u.darken(2))}return n.successColor&&o(n.successColor,"success"),n.warningColor&&o(n.warningColor,"warning"),n.errorColor&&o(n.errorColor,"error"),n.infoColor&&o(n.infoColor,"info"),`
:root {
${Object.keys(r).map(s=>`--${e}-${s}: ${r[s]};`).join(`
`)}
}
`.trim()}function JNt(e,n){const r=ZNt(e,n);bf()&&P9(r,`${QNt}-dynamic-theme`)}const xs=m.createContext(!1),yue=e=>{let{children:n,disabled:r}=e;const i=m.useContext(xs);return m.createElement(xs.Provider,{value:r??i},n)},nC=m.createContext(void 0),eMt=e=>{let{children:n,size:r}=e;const i=m.useContext(nC);return m.createElement(nC.Provider,{value:r||i},n)};function tMt(){const e=m.useContext(xs),n=m.useContext(nC);return{componentDisabled:e,componentSize:n}}function rC(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=new Set;function o(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=i.has(a);if(qi(!c,"Warning: There may be circular references"),c)return!1;if(a===s)return!0;if(r&&l>1)return!1;i.add(a);var u=l+1;if(Array.isArray(a)){if(!Array.isArray(s)||a.length!==s.length)return!1;for(var d=0;d<a.length;d++)if(!o(a[d],s[d],u))return!1;return!0}if(a&&s&&cn(a)==="object"&&cn(s)==="object"){var f=Object.keys(a);return f.length!==Object.keys(s).length?!1:f.every(function(p){return o(a[p],s[p],u)})}return!1}return o(e,n)}var u7e=Xi(function e(){Ki(this,e)}),d7e="CALC_UNIT",nMt=new RegExp(d7e,"g");function PY(e){return typeof e=="number"?"".concat(e).concat(d7e):e}var rMt=function(e){Kc(r,e);var n=Nu(r);function r(i,o){var a;Ki(this,r),a=n.call(this),fe(Tn(a),"result",""),fe(Tn(a),"unitlessCssVar",void 0),fe(Tn(a),"lowPriority",void 0);var s=cn(i);return a.unitlessCssVar=o,i instanceof r?a.result="(".concat(i.result,")"):s==="number"?a.result=PY(i):s==="string"&&(a.result=i),a}return Xi(r,[{key:"add",value:function(o){return o instanceof r?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(PY(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof r?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(PY(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var a=this,s=o||{},l=s.unit,c=!0;return typeof l=="boolean"?c=l:Array.from(this.unitlessCssVar).some(function(u){return a.result.includes(u)})&&(c=!1),this.result=this.result.replace(nMt,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(u7e),iMt=function(e){Kc(r,e);var n=Nu(r);function r(i){var o;return Ki(this,r),o=n.call(this),fe(Tn(o),"result",0),i instanceof r?o.result=i.result:typeof i=="number"&&(o.result=i),o}return Xi(r,[{key:"add",value:function(o){return o instanceof r?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof r?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof r?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof r?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),r}(u7e),f7e=function(n,r){var i=n==="css"?rMt:iMt;return function(o){return new i(o,r)}},bEe=function(n,r){return"".concat([r,n.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Sr(e){var n=m.useRef();n.current=e;var r=m.useCallback(function(){for(var i,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(i=n.current)===null||i===void 0?void 0:i.call.apply(i,[n].concat(a))},[]);return r}var SEe=bf()?m.useLayoutEffect:m.useEffect,ti=function(n,r){var i=m.useRef(!0);SEe(function(){return n(i.current)},r),SEe(function(){return i.current=!1,function(){i.current=!0}},[])},I1=function(n,r){ti(function(i){if(!i)return n()},r)};function iC(e){var n=m.useRef(!1),r=m.useState(e),i=ke(r,2),o=i[0],a=i[1];m.useEffect(function(){return n.current=!1,function(){n.current=!0}},[]);function s(l,c){c&&n.current||a(l)}return[o,s]}function AY(e){return e!==void 0}function dr(e,n){var r=n||{},i=r.defaultValue,o=r.value,a=r.onChange,s=r.postState,l=iC(function(){return AY(o)?o:AY(i)?typeof i=="function"?i():i:typeof e=="function"?e():e}),c=ke(l,2),u=c[0],d=c[1],f=o!==void 0?o:u,p=s?s(f):f,h=Sr(a),g=iC([f]),v=ke(g,2),y=v[0],_=v[1];I1(function(){var b=y[0];u!==b&&h(u,b)},[y]),I1(function(){AY(o)||d(o)},[o]);var S=Sr(function(b,E){d(b,E),_([f],E)});return[p,S]}function EEe(e,n,r,i){var o=ee({},n[e]);if(i!=null&&i.deprecatedTokens){var a=i.deprecatedTokens;a.forEach(function(l){var c=ke(l,2),u=c[0],d=c[1];if(o!=null&&o[u]||o!=null&&o[d]){var f;(f=o[d])!==null&&f!==void 0||(o[d]=o==null?void 0:o[u])}})}var s=ee(ee({},r),o);return Object.keys(s).forEach(function(l){s[l]===n[l]&&delete s[l]}),s}var p7e=typeof CSSINJS_STATISTIC<"u",Are=!0;function wr(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(!p7e)return Object.assign.apply(Object,[{}].concat(n));Are=!1;var i={};return n.forEach(function(o){if(cn(o)==="object"){var a=Object.keys(o);a.forEach(function(s){Object.defineProperty(i,s,{configurable:!0,enumerable:!0,get:function(){return o[s]}})})}}),Are=!0,i}var Dre={};function oMt(){}var h7e=function(n){var r,i=n,o=oMt;return p7e&&typeof Proxy<"u"&&(r=new Set,i=new Proxy(n,{get:function(s,l){if(Are){var c;(c=r)===null||c===void 0||c.add(l)}return s[l]}}),o=function(s,l){var c;Dre[s]={global:Array.from(r),component:ee(ee({},(c=Dre[s])===null||c===void 0?void 0:c.component),l)}}),{token:i,keys:r,flush:o}};function CEe(e,n,r){if(typeof r=="function"){var i;return r(wr(n,(i=n[e])!==null&&i!==void 0?i:{}))}return r??{}}function aMt(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return"max(".concat(i.map(function(a){return Ye(a)}).join(","),")")},min:function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return"min(".concat(i.map(function(a){return Ye(a)}).join(","),")")}}}var sMt=1e3*60*10,lMt=function(){function e(){Ki(this,e),fe(this,"map",new Map),fe(this,"objectIDMap",new WeakMap),fe(this,"nextID",0),fe(this,"lastAccessBeat",new Map),fe(this,"accessBeat",0)}return Xi(e,[{key:"set",value:function(r,i){this.clear();var o=this.getCompositeKey(r);this.map.set(o,i),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(r){var i=this.getCompositeKey(r),o=this.map.get(i);return this.lastAccessBeat.set(i,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(r){var i=this,o=r.map(function(a){return a&&cn(a)==="object"?"obj_".concat(i.getObjectID(a)):"".concat(cn(a),"_").concat(a)});return o.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var i=this.nextID;return this.objectIDMap.set(r,i),this.nextID+=1,i}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var i=Date.now();this.lastAccessBeat.forEach(function(o,a){i-o>sMt&&(r.map.delete(a),r.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e}(),wEe=new lMt;function cMt(e,n){return V.useMemo(function(){var r=wEe.get(n);if(r)return r;var i=e();return wEe.set(n,i),i},n)}var uMt=function(){return{}};function g7e(e){var n=e.useCSP,r=n===void 0?uMt:n,i=e.useToken,o=e.usePrefix,a=e.getResetStyles,s=e.getCommonStyle,l=e.getCompUnitless;function c(p,h,g,v){var y=Array.isArray(p)?p[0]:p;function _(T){return"".concat(String(y)).concat(T.slice(0,1).toUpperCase()).concat(T.slice(1))}var S=(v==null?void 0:v.unitless)||{},b=typeof l=="function"?l(p):{},E=ee(ee({},b),{},fe({},_("zIndexPopup"),!0));Object.keys(S).forEach(function(T){E[_(T)]=S[T]});var w=ee(ee({},v),{},{unitless:E,prefixToken:_}),C=d(p,h,g,w),x=u(y,g,w);return function(T){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,O=C(T,R),M=ke(O,2),P=M[1],k=x(R),$=ke(k,2),U=$[0],z=$[1];return[U,P,z]}}function u(p,h,g){var v=g.unitless,y=g.injectStyle,_=y===void 0?!0:y,S=g.prefixToken,b=g.ignore,E=function(x){var T=x.rootCls,R=x.cssVar,O=R===void 0?{}:R,M=i(),P=M.realToken;return qje({path:[p],prefix:O.prefix,key:O.key,unitless:v,ignore:b,token:P,scope:T},function(){var k=CEe(p,P,h),$=EEe(p,P,k,{deprecatedTokens:g==null?void 0:g.deprecatedTokens});return Object.keys(k).forEach(function(U){$[S(U)]=$[U],delete $[U]}),$}),null},w=function(x){var T=i(),R=T.cssVar;return[function(O){return _&&R?V.createElement(V.Fragment,null,V.createElement(E,{rootCls:x,cssVar:R,component:p}),O):O},R==null?void 0:R.key]};return w}function d(p,h,g){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(p)?p:[p,p],_=ke(y,1),S=_[0],b=y.join("-"),E=e.layer||{name:"antd"};return function(w){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,x=i(),T=x.theme,R=x.realToken,O=x.hashId,M=x.token,P=x.cssVar,k=o(),$=k.rootPrefixCls,U=k.iconPrefixCls,z=r(),D=P?"css":"js",B=cMt(function(){var Q=new Set;return P&&Object.keys(v.unitless||{}).forEach(function(le){Q.add(q2(le,P.prefix)),Q.add(q2(le,bEe(S,P.prefix)))}),f7e(D,Q)},[D,S,P==null?void 0:P.prefix]),Y=aMt(D),q=Y.max,K=Y.min,H={theme:T,token:M,hashId:O,nonce:function(){return z.nonce},clientOnly:v.clientOnly,layer:E,order:v.order||-999};typeof a=="function"&&uA(ee(ee({},H),{},{clientOnly:!1,path:["Shared",$]}),function(){return a(M,{prefix:{rootPrefixCls:$,iconPrefixCls:U},csp:z})});var G=uA(ee(ee({},H),{},{path:[b,w,U]}),function(){if(v.injectStyle===!1)return[];var Q=h7e(M),le=Q.token,Z=Q.flush,j=CEe(S,R,g),F=".".concat(w),te=EEe(S,R,j,{deprecatedTokens:v.deprecatedTokens});P&&j&&cn(j)==="object"&&Object.keys(j).forEach(function(me){j[me]="var(".concat(q2(me,bEe(S,P.prefix)),")")});var oe=wr(le,{componentCls:F,prefixCls:w,iconCls:".".concat(U),antCls:".".concat($),calc:B,max:q,min:K},P?j:te),de=h(oe,{hashId:O,prefixCls:w,rootPrefixCls:$,iconPrefixCls:U});Z(S,te);var pe=typeof s=="function"?s(oe,w,C,v.resetFont):null;return[v.resetStyle===!1?null:pe,de]});return[G,O]}}function f(p,h,g){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=d(p,h,g,ee({resetStyle:!1,order:-998},v)),_=function(b){var E=b.prefixCls,w=b.rootCls,C=w===void 0?E:w;return y(E,C),null};return _}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}const dMt=Object.freeze(Object.defineProperty({__proto__:null,genCalc:f7e,genStyleUtils:g7e,mergeToken:wr,statistic:Dre,statisticToken:h7e},Symbol.toStringTag,{value:"Module"})),oC=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Ny="5.23.2";function DY(e){return e>=0&&e<=255}function F3(e,n){const{r,g:i,b:o,a}=new Gr(e).toRgb();if(a<1)return e;const{r:s,g:l,b:c}=new Gr(n).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((r-s*(1-u))/u),f=Math.round((i-l*(1-u))/u),p=Math.round((o-c*(1-u))/u);if(DY(d)&&DY(f)&&DY(p))return new Gr({r:d,g:f,b:p,a:Math.round(u*100)/100}).toRgbString()}return new Gr({r,g:i,b:o,a:1}).toRgbString()}var fMt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function _ue(e){const{override:n}=e,r=fMt(e,["override"]),i=Object.assign({},n);Object.keys(AO).forEach(p=>{delete i[p]});const o=Object.assign(Object.assign({},r),i),a=480,s=576,l=768,c=992,u=1200,d=1600;if(o.motion===!1){const p="0s";o.motionDurationFast=p,o.motionDurationMid=p,o.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:F3(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:F3(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:F3(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:F3(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,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:a,screenXSMin:a,screenXSMax:s-1,screenSM:s,screenSMMin:s,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
0 1px 2px -2px ${new Gr("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new Gr("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new Gr("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)"}),i)}var xEe=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const m7e={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},pMt={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},hMt={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},v7e=(e,n,r)=>{const i=r.getDerivativeToken(e),{override:o}=n,a=xEe(n,["override"]);let s=Object.assign(Object.assign({},i),{override:o});return s=_ue(s),a&&Object.entries(a).forEach(l=>{let[c,u]=l;const{theme:d}=u,f=xEe(u,["theme"]);let p=f;d&&(p=v7e(Object.assign(Object.assign({},s),f),{override:f},d)),s[c]=p}),s};function Nl(){const{token:e,hashed:n,theme:r,override:i,cssVar:o}=V.useContext(mue),a=`${Ny}-${n||""}`,s=r||a7e,[l,c,u]=due(s,[AO,e],{salt:a,override:i,getComputedToken:v7e,formatToken:_ue,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:m7e,ignore:pMt,preserve:hMt}});return[s,u,n?c:"",l,o]}const Sf={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},li=function(e){let n=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:n?"inherit":e.fontFamily}},ew=()=>({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"}}),Nm=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),gMt=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"}}}),mMt=(e,n,r,i)=>{const o=`[class^="${n}"], [class*=" ${n}"]`,a=r?`.${r}`:o,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return i!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},l),s),{[o]:s})}},Qy=(e,n)=>({outline:`${Ye(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:n??1,transition:"outline-offset 0s, outline 0s"}),Rp=(e,n)=>({"&:focus-visible":Object.assign({},Qy(e,n))}),y7e=e=>({[`.${e}`]:Object.assign(Object.assign({},ew()),{[`.${e} .${e}-icon`]:{display:"block"}})}),{genStyleHooks:Yr,genComponentStyleHook:_7e,genSubStyleComponent:bue}=g7e({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:n}=m.useContext(Cn);return{rootPrefixCls:e(),iconPrefixCls:n}},useToken:()=>{const[e,n,r,i,o]=Nl();return{theme:e,realToken:n,hashId:r,token:i,cssVar:o}},useCSP:()=>{const{csp:e}=m.useContext(Cn);return e??{}},getResetStyles:(e,n)=>{var r;return[{"&":gMt(e)},y7e((r=n==null?void 0:n.prefix.iconPrefixCls)!==null&&r!==void 0?r:N9)]},getCommonStyle:mMt,getCompUnitless:()=>m7e});function Sue(e,n){return oC.reduce((r,i)=>{const o=e[`${i}1`],a=e[`${i}3`],s=e[`${i}6`],l=e[`${i}7`];return Object.assign(Object.assign({},r),n(i,{lightColor:o,lightBorderColor:a,darkColor:s,textColor:l}))},{})}const vMt=(e,n)=>{const[r,i]=Nl();return uA({theme:r,token:i,hashId:"",path:["ant-design-icons",e],nonce:()=>n==null?void 0:n.nonce,layer:{name:"antd"}},()=>[y7e(e)])},yMt=Object.assign({},zD),{useId:TEe}=yMt,_Mt=()=>"",bMt=typeof TEe>"u"?_Mt:TEe;function SMt(e,n,r){var i;JC();const o=e||{},a=o.inherit===!1||!n?Object.assign(Object.assign({},fA),{hashed:(i=n==null?void 0:n.hashed)!==null&&i!==void 0?i:fA.hashed,cssVar:n==null?void 0:n.cssVar}):n,s=bMt();return Z1(()=>{var l,c;if(!e)return n;const u=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{u[p]=Object.assign(Object.assign({},u[p]),e.components[p])});const d=`css-var-${s.replace(/:/g,"")}`,f=((l=o.cssVar)!==null&&l!==void 0?l:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((c=o.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:u,cssVar:f})},[o,a],(l,c)=>l.some((u,d)=>{const f=c[d];return!rC(u,f,!0)}))}var EMt=["children"],b7e=m.createContext({});function S7e(e){var n=e.children,r=Xt(e,EMt);return m.createElement(b7e.Provider,{value:r},n)}var CMt=function(e){Kc(r,e);var n=Nu(r);function r(){return Ki(this,r),n.apply(this,arguments)}return Xi(r,[{key:"render",value:function(){return this.props.children}}]),r}(m.Component);function wMt(e){var n=m.useReducer(function(l){return l+1},0),r=ke(n,2),i=r[1],o=m.useRef(e),a=Sr(function(){return o.current}),s=Sr(function(l){o.current=typeof l=="function"?l(o.current):l,i()});return[a,s]}var sb="none",B3="appear",j3="enter",U3="leave",OEe="none",wh="prepare",vT="start",yT="active",Eue="end",E7e="prepared";function REe(e,n){var r={};return r[e.toLowerCase()]=n.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(n),r["Moz".concat(e)]="moz".concat(n),r["ms".concat(e)]="MS".concat(n),r["O".concat(e)]="o".concat(n.toLowerCase()),r}function xMt(e,n){var r={animationend:REe("Animation","AnimationEnd"),transitionend:REe("Transition","TransitionEnd")};return e&&("AnimationEvent"in n||delete r.animationend.animation,"TransitionEvent"in n||delete r.transitionend.transition),r}var TMt=xMt(bf(),typeof window<"u"?window:{}),C7e={};if(bf()){var OMt=document.createElement("div");C7e=OMt.style}var H3={};function w7e(e){if(H3[e])return H3[e];var n=TMt[e];if(n)for(var r=Object.keys(n),i=r.length,o=0;o<i;o+=1){var a=r[o];if(Object.prototype.hasOwnProperty.call(n,a)&&a in C7e)return H3[e]=n[a],H3[e]}return""}var x7e=w7e("animationend"),T7e=w7e("transitionend"),O7e=!!(x7e&&T7e),IEe=x7e||"animationend",NEe=T7e||"transitionend";function MEe(e,n){if(!e)return null;if(cn(e)==="object"){var r=n.replace(/-\w/g,function(i){return i[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(n)}const RMt=function(e){var n=m.useRef();function r(o){o&&(o.removeEventListener(NEe,e),o.removeEventListener(IEe,e))}function i(o){n.current&&n.current!==o&&r(n.current),o&&o!==n.current&&(o.addEventListener(NEe,e),o.addEventListener(IEe,e),n.current=o)}return m.useEffect(function(){return function(){r(n.current)}},[]),[i,r]};var R7e=bf()?m.useLayoutEffect:m.useEffect;const IMt=function(){var e=m.useRef(null);function n(){Dr.cancel(e.current)}function r(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;n();var a=Dr(function(){o<=1?i({isCanceled:function(){return a!==e.current}}):r(i,o-1)});e.current=a}return m.useEffect(function(){return function(){n()}},[]),[r,n]};var NMt=[wh,vT,yT,Eue],MMt=[wh,E7e],I7e=!1,PMt=!0;function N7e(e){return e===yT||e===Eue}const AMt=function(e,n,r){var i=iC(OEe),o=ke(i,2),a=o[0],s=o[1],l=IMt(),c=ke(l,2),u=c[0],d=c[1];function f(){s(wh,!0)}var p=n?MMt:NMt;return R7e(function(){if(a!==OEe&&a!==Eue){var h=p.indexOf(a),g=p[h+1],v=r(a);v===I7e?s(g,!0):g&&u(function(y){function _(){y.isCanceled()||s(g,!0)}v===!0?_():Promise.resolve(v).then(_)})}},[e,a]),m.useEffect(function(){return function(){d()}},[]),[f,a]};function DMt(e,n,r,i){var o=i.motionEnter,a=o===void 0?!0:o,s=i.motionAppear,l=s===void 0?!0:s,c=i.motionLeave,u=c===void 0?!0:c,d=i.motionDeadline,f=i.motionLeaveImmediately,p=i.onAppearPrepare,h=i.onEnterPrepare,g=i.onLeavePrepare,v=i.onAppearStart,y=i.onEnterStart,_=i.onLeaveStart,S=i.onAppearActive,b=i.onEnterActive,E=i.onLeaveActive,w=i.onAppearEnd,C=i.onEnterEnd,x=i.onLeaveEnd,T=i.onVisibleChanged,R=iC(),O=ke(R,2),M=O[0],P=O[1],k=wMt(sb),$=ke(k,2),U=$[0],z=$[1],D=iC(null),B=ke(D,2),Y=B[0],q=B[1],K=U(),H=m.useRef(!1),G=m.useRef(null);function Q(){return r()}var le=m.useRef(!1);function Z(){z(sb),q(null,!0)}var j=Sr(function(Re){var Te=U();if(Te!==sb){var Oe=Q();if(!(Re&&!Re.deadline&&Re.target!==Oe)){var Ne=le.current,je;Te===B3&&Ne?je=w==null?void 0:w(Oe,Re):Te===j3&&Ne?je=C==null?void 0:C(Oe,Re):Te===U3&&Ne&&(je=x==null?void 0:x(Oe,Re)),Ne&&je!==!1&&Z()}}}),F=RMt(j),te=ke(F,1),oe=te[0],de=function(Te){switch(Te){case B3:return fe(fe(fe({},wh,p),vT,v),yT,S);case j3:return fe(fe(fe({},wh,h),vT,y),yT,b);case U3:return fe(fe(fe({},wh,g),vT,_),yT,E);default:return{}}},pe=m.useMemo(function(){return de(K)},[K]),me=AMt(K,!e,function(Re){if(Re===wh){var Te=pe[wh];return Te?Te(Q()):I7e}if(be in pe){var Oe;q(((Oe=pe[be])===null||Oe===void 0?void 0:Oe.call(pe,Q(),null))||null)}return be===yT&&K!==sb&&(oe(Q()),d>0&&(clearTimeout(G.current),G.current=setTimeout(function(){j({deadline:!0})},d))),be===E7e&&Z(),PMt}),ve=ke(me,2),he=ve[0],be=ve[1],we=N7e(be);le.current=we;var De=m.useRef(null);R7e(function(){if(!(H.current&&De.current===n)){P(n);var Re=H.current;H.current=!0;var Te;!Re&&n&&l&&(Te=B3),Re&&n&&a&&(Te=j3),(Re&&!n&&u||!Re&&f&&!n&&u)&&(Te=U3);var Oe=de(Te);Te&&(e||Oe[wh])?(z(Te),he()):z(sb),De.current=n}},[n]),m.useEffect(function(){(K===B3&&!l||K===j3&&!a||K===U3&&!u)&&z(sb)},[l,a,u]),m.useEffect(function(){return function(){H.current=!1,clearTimeout(G.current)}},[]);var Ae=m.useRef(!1);m.useEffect(function(){M&&(Ae.current=!0),M!==void 0&&K===sb&&((Ae.current||M)&&(T==null||T(M)),Ae.current=!0)},[M,K]);var Ee=Y;return pe[wh]&&be===vT&&(Ee=ee({transition:"none"},Ee)),[K,be,Ee,M??n]}function kMt(e){var n=e;cn(e)==="object"&&(n=e.transitionSupport);function r(o,a){return!!(o.motionName&&n&&a!==!1)}var i=m.forwardRef(function(o,a){var s=o.visible,l=s===void 0?!0:s,c=o.removeOnLeave,u=c===void 0?!0:c,d=o.forceRender,f=o.children,p=o.motionName,h=o.leavedClassName,g=o.eventProps,v=m.useContext(b7e),y=v.motion,_=r(o,y),S=m.useRef(),b=m.useRef();function E(){try{return S.current instanceof HTMLElement?S.current:W2(b.current)}catch{return null}}var w=DMt(_,l,E,o),C=ke(w,4),x=C[0],T=C[1],R=C[2],O=C[3],M=m.useRef(O);O&&(M.current=!0);var P=m.useCallback(function(B){S.current=B,tue(a,B)},[a]),k,$=ee(ee({},g),{},{visible:l});if(!f)k=null;else if(x===sb)O?k=f(ee({},$),P):!u&&M.current&&h?k=f(ee(ee({},$),{},{className:h}),P):d||!u&&!h?k=f(ee(ee({},$),{},{style:{display:"none"}}),P):k=null;else{var U;T===wh?U="prepare":N7e(T)?U="active":T===vT&&(U="start");var z=MEe(p,"".concat(x,"-").concat(U));k=f(ee(ee({},$),{},{className:Ce(MEe(p,x),fe(fe({},z,z&&U),p,typeof p=="string")),style:R}),P)}if(m.isValidElement(k)&&Xy(k)){var D=J0(k);D||(k=m.cloneElement(k,{ref:P}))}return m.createElement(CMt,{ref:b},k)});return i.displayName="CSSMotion",i}const Ws=kMt(O7e);var kre="add",Lre="keep",$re="remove",kY="removed";function LMt(e){var n;return e&&cn(e)==="object"&&"key"in e?n=e:n={key:e},ee(ee({},n),{},{key:String(n.key)})}function Fre(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(LMt)}function $Mt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],i=0,o=n.length,a=Fre(e),s=Fre(n);a.forEach(function(u){for(var d=!1,f=i;f<o;f+=1){var p=s[f];if(p.key===u.key){i<f&&(r=r.concat(s.slice(i,f).map(function(h){return ee(ee({},h),{},{status:kre})})),i=f),r.push(ee(ee({},p),{},{status:Lre})),i+=1,d=!0;break}}d||r.push(ee(ee({},u),{},{status:$re}))}),i<o&&(r=r.concat(s.slice(i).map(function(u){return ee(ee({},u),{},{status:kre})})));var l={};r.forEach(function(u){var d=u.key;l[d]=(l[d]||0)+1});var c=Object.keys(l).filter(function(u){return l[u]>1});return c.forEach(function(u){r=r.filter(function(d){var f=d.key,p=d.status;return f!==u||p!==$re}),r.forEach(function(d){d.key===u&&(d.status=Lre)})}),r}var FMt=["component","children","onVisibleChanged","onAllRemoved"],BMt=["status"],jMt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function UMt(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ws,r=function(i){Kc(a,i);var o=Nu(a);function a(){var s;Ki(this,a);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return s=o.call.apply(o,[this].concat(c)),fe(Tn(s),"state",{keyEntities:[]}),fe(Tn(s),"removeKey",function(d){s.setState(function(f){var p=f.keyEntities.map(function(h){return h.key!==d?h:ee(ee({},h),{},{status:kY})});return{keyEntities:p}},function(){var f=s.state.keyEntities,p=f.filter(function(h){var g=h.status;return g!==kY}).length;p===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return Xi(a,[{key:"render",value:function(){var l=this,c=this.state.keyEntities,u=this.props,d=u.component,f=u.children,p=u.onVisibleChanged;u.onAllRemoved;var h=Xt(u,FMt),g=d||m.Fragment,v={};return jMt.forEach(function(y){v[y]=h[y],delete h[y]}),delete h.keys,m.createElement(g,h,c.map(function(y,_){var S=y.status,b=Xt(y,BMt),E=S===kre||S===Lre;return m.createElement(n,ft({},v,{key:b.key,visible:E,eventProps:b,onVisibleChanged:function(C){p==null||p(C,{key:b.key}),C||l.removeKey(b.key)}}),function(w,C){return f(ee(ee({},w),{},{index:_}),C)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var u=l.keys,d=c.keyEntities,f=Fre(u),p=$Mt(d,f);return{keyEntities:p.filter(function(h){var g=d.find(function(v){var y=v.key;return h.key===y});return!(g&&g.status===kY&&h.status===$re)})}}}]),a}(m.Component);return fe(r,"defaultProps",{component:"div"}),r}const A9=UMt(O7e),HMt=Object.freeze(Object.defineProperty({__proto__:null,CSSMotionList:A9,Provider:S7e,default:Ws},Symbol.toStringTag,{value:"Module"}));function zMt(e){const{children:n}=e,[,r]=Nl(),{motion:i}=r,o=m.useRef(!1);return o.current=o.current||i===!1,o.current?m.createElement(S7e,{motion:i},n):n}const VMt=()=>null;var GMt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const WMt=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let L8,M7e,P7e,A7e;function l6(){return L8||pA}function YMt(){return M7e||N9}function qMt(e){return Object.keys(e).some(n=>n.endsWith("Color"))}const KMt=e=>{const{prefixCls:n,iconPrefixCls:r,theme:i,holderRender:o}=e;n!==void 0&&(L8=n),r!==void 0&&(M7e=r),"holderRender"in e&&(A7e=o),i&&(qMt(i)?JNt(l6(),i):P7e=i)},D7e=()=>({getPrefixCls:(e,n)=>n||(e?`${l6()}-${e}`:l6()),getIconPrefixCls:YMt,getRootPrefixCls:()=>L8||l6(),getTheme:()=>P7e,holderRender:A7e}),XMt=e=>{const{children:n,csp:r,autoInsertSpaceInButton:i,alert:o,anchor:a,form:s,locale:l,componentSize:c,direction:u,space:d,splitter:f,virtual:p,dropdownMatchSelectWidth:h,popupMatchSelectWidth:g,popupOverflow:v,legacyLocale:y,parentContext:_,iconPrefixCls:S,theme:b,componentDisabled:E,segmented:w,statistic:C,spin:x,calendar:T,carousel:R,cascader:O,collapse:M,typography:P,checkbox:k,descriptions:$,divider:U,drawer:z,skeleton:D,steps:B,image:Y,layout:q,list:K,mentions:H,modal:G,progress:Q,result:le,slider:Z,breadcrumb:j,menu:F,pagination:te,input:oe,textArea:de,empty:pe,badge:me,radio:ve,rate:he,switch:be,transfer:we,avatar:De,message:Ae,tag:Ee,table:Re,card:Te,tabs:Oe,timeline:Ne,timePicker:je,upload:ne,notification:J,tree:ae,colorPicker:Se,datePicker:xe,rangePicker:ue,flex:Me,wave:$e,dropdown:ge,warning:Ve,tour:st,tooltip:Je,popover:ot,popconfirm:Xe,floatButtonGroup:Ze,variant:bt,inputNumber:at,treeSelect:pt}=e,Ct=m.useCallback((Dt,Kt)=>{const{prefixCls:Ht}=e;if(Kt)return Kt;const tn=Ht||_.getPrefixCls("");return Dt?`${tn}-${Dt}`:tn},[_.getPrefixCls,e.prefixCls]),It=S||_.iconPrefixCls||N9,Wt=r||_.csp;vMt(It,Wt);const Bt=SMt(b,_.theme,{prefixCls:Ct("")}),Vt={csp:Wt,autoInsertSpaceInButton:i,alert:o,anchor:a,locale:l||y,direction:u,space:d,splitter:f,virtual:p,popupMatchSelectWidth:g??h,popupOverflow:v,getPrefixCls:Ct,iconPrefixCls:It,theme:Bt,segmented:w,statistic:C,spin:x,calendar:T,carousel:R,cascader:O,collapse:M,typography:P,checkbox:k,descriptions:$,divider:U,drawer:z,skeleton:D,steps:B,image:Y,input:oe,textArea:de,layout:q,list:K,mentions:H,modal:G,progress:Q,result:le,slider:Z,breadcrumb:j,menu:F,pagination:te,empty:pe,badge:me,radio:ve,rate:he,switch:be,transfer:we,avatar:De,message:Ae,tag:Ee,table:Re,card:Te,tabs:Oe,timeline:Ne,timePicker:je,upload:ne,notification:J,tree:ae,colorPicker:Se,datePicker:xe,rangePicker:ue,flex:Me,wave:$e,dropdown:ge,warning:Ve,tour:st,tooltip:Je,popover:ot,popconfirm:Xe,floatButtonGroup:Ze,variant:bt,inputNumber:at,treeSelect:pt},rn=Object.assign({},_);Object.keys(Vt).forEach(Dt=>{Vt[Dt]!==void 0&&(rn[Dt]=Vt[Dt])}),WMt.forEach(Dt=>{const Kt=e[Dt];Kt&&(rn[Dt]=Kt)}),typeof i<"u"&&(rn.button=Object.assign({autoInsertSpace:i},rn.button));const tt=Z1(()=>rn,rn,(Dt,Kt)=>{const Ht=Object.keys(Dt),tn=Object.keys(Kt);return Ht.length!==tn.length||Ht.some(on=>Dt[on]!==Kt[on])}),it=m.useMemo(()=>({prefixCls:It,csp:Wt}),[It,Wt]);let nt=m.createElement(m.Fragment,null,m.createElement(VMt,{dropdownMatchSelectWidth:h}),n);const vt=m.useMemo(()=>{var Dt,Kt,Ht,tn;return mT(((Dt=Op.Form)===null||Dt===void 0?void 0:Dt.defaultValidateMessages)||{},((Ht=(Kt=tt.locale)===null||Kt===void 0?void 0:Kt.Form)===null||Ht===void 0?void 0:Ht.defaultValidateMessages)||{},((tn=tt.form)===null||tn===void 0?void 0:tn.validateMessages)||{},(s==null?void 0:s.validateMessages)||{})},[tt,s==null?void 0:s.validateMessages]);Object.keys(vt).length>0&&(nt=m.createElement(Qje.Provider,{value:vt},nt)),l&&(nt=m.createElement(MNt,{locale:l,_ANT_MARK__:NNt},nt)),(It||Wt)&&(nt=m.createElement(I9.Provider,{value:it},nt)),c&&(nt=m.createElement(eMt,{size:c},nt)),nt=m.createElement(zMt,null,nt);const kt=m.useMemo(()=>{const Dt=Bt||{},{algorithm:Kt,token:Ht,components:tn,cssVar:on}=Dt,sn=GMt(Dt,["algorithm","token","components","cssVar"]),Jt=Kt&&(!Array.isArray(Kt)||Kt.length>0)?eC(Kt):a7e,En={};Object.entries(tn||{}).forEach(Qt=>{let[ln,jt]=Qt;const Lt=Object.assign({},jt);"algorithm"in Lt&&(Lt.algorithm===!0?Lt.theme=Jt:(Array.isArray(Lt.algorithm)||typeof Lt.algorithm=="function")&&(Lt.theme=eC(Lt.algorithm)),delete Lt.algorithm),En[ln]=Lt});const Pt=Object.assign(Object.assign({},AO),Ht);return Object.assign(Object.assign({},sn),{theme:Jt,token:Pt,components:En,override:Object.assign({override:Pt},En),cssVar:on})},[Bt]);return b&&(nt=m.createElement(mue.Provider,{value:kt},nt)),tt.warning&&(nt=m.createElement(TNt.Provider,{value:tt.warning},nt)),E!==void 0&&(nt=m.createElement(yue,{disabled:E},nt)),m.createElement(Cn.Provider,{value:tt},nt)},or=e=>{const n=m.useContext(Cn),r=m.useContext(hue);return m.createElement(XMt,Object.assign({parentContext:n,legacyLocale:r},e))};or.ConfigContext=Cn;or.SizeContext=nC;or.config=KMt;or.useConfig=tMt;Object.defineProperty(or,"SizeContext",{get:()=>nC});var QMt={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 k7e(e){var n;return e==null||(n=e.getRootNode)===null||n===void 0?void 0:n.call(e)}function ZMt(e){return k7e(e)instanceof ShadowRoot}function $8(e){return ZMt(e)?k7e(e):null}function JMt(e){return e.replace(/-(.)/g,function(n,r){return r.toUpperCase()})}function Bre(e,n){qi(e,"[@ant-design/icons] ".concat(n))}function PEe(e){return cn(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(cn(e.icon)==="object"||typeof e.icon=="function")}function AEe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(n,r){var i=e[r];switch(r){case"class":n.className=i,delete n.class;break;default:delete n[r],n[JMt(r)]=i}return n},{})}function jre(e,n,r){return r?V.createElement(e.tag,ee(ee({key:n},AEe(e.attrs)),r),(e.children||[]).map(function(i,o){return jre(i,"".concat(n,"-").concat(e.tag,"-").concat(o))})):V.createElement(e.tag,ee({key:n},AEe(e.attrs)),(e.children||[]).map(function(i,o){return jre(i,"".concat(n,"-").concat(e.tag,"-").concat(o))}))}function L7e(e){return C0(e)[0]}function $7e(e){return e?Array.isArray(e)?e:[e]:[]}var e2t={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},t2t=`
.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);
}
}
`,F7e=function(n){var r=m.useContext(I9),i=r.csp,o=r.prefixCls,a=r.layer,s=t2t;o&&(s=s.replace(/anticon/g,o)),a&&(s="@layer ".concat(a,` {
`).concat(s,`
}`)),m.useEffect(function(){var l=n.current,c=$8(l);P9(s,"@ant-design-icons",{prepend:!a,csp:i,attachTo:c})},[])},n2t=["icon","className","onClick","style","primaryColor","secondaryColor"],X2={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function r2t(e){var n=e.primaryColor,r=e.secondaryColor;X2.primaryColor=n,X2.secondaryColor=r||L7e(n),X2.calculated=!!r}function i2t(){return ee({},X2)}var iI=function(n){var r=n.icon,i=n.className,o=n.onClick,a=n.style,s=n.primaryColor,l=n.secondaryColor,c=Xt(n,n2t),u=m.useRef(),d=X2;if(s&&(d={primaryColor:s,secondaryColor:l||L7e(s)}),F7e(u),Bre(PEe(r),"icon should be icon definiton, but got ".concat(r)),!PEe(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=ee(ee({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),jre(f.icon,"svg-".concat(f.name),ee(ee({className:i,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};iI.displayName="IconReact";iI.getTwoToneColors=i2t;iI.setTwoToneColors=r2t;function B7e(e){var n=$7e(e),r=ke(n,2),i=r[0],o=r[1];return iI.setTwoToneColors({primaryColor:i,secondaryColor:o})}function o2t(){var e=iI.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var a2t=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];B7e(tC.primary);var er=m.forwardRef(function(e,n){var r=e.className,i=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Xt(e,a2t),d=m.useContext(I9),f=d.prefixCls,p=f===void 0?"anticon":f,h=d.rootClassName,g=Ce(h,p,fe(fe({},"".concat(p,"-").concat(i.name),!!i.name),"".concat(p,"-spin"),!!o||i.name==="loading"),r),v=s;v===void 0&&l&&(v=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,_=$7e(c),S=ke(_,2),b=S[0],E=S[1];return m.createElement("span",ft({role:"img","aria-label":i.name},u,{ref:n,tabIndex:v,onClick:l,className:g}),m.createElement(iI,{icon:i,primaryColor:b,secondaryColor:E,style:y}))});er.displayName="AntdIcon";er.getTwoToneColor=o2t;er.setTwoToneColor=B7e;var s2t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:QMt}))},tw=m.forwardRef(s2t),l2t={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"},c2t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:l2t}))},tv=m.forwardRef(c2t),u2t={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"},d2t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:u2t}))},Up=m.forwardRef(d2t),f2t={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"},p2t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:f2t}))},eS=m.forwardRef(p2t),h2t={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"},g2t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:h2t}))},D9=m.forwardRef(g2t),m2t=`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`,v2t=`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`,y2t="".concat(m2t," ").concat(v2t).split(/[\s\n]+/),_2t="aria-",b2t="data-";function DEe(e,n){return e.indexOf(n)===0}function Va(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;n===!1?r={aria:!0,data:!0,attr:!0}:n===!0?r={aria:!0}:r=ee({},n);var i={};return Object.keys(e).forEach(function(o){(r.aria&&(o==="role"||DEe(o,_2t))||r.data&&DEe(o,b2t)||r.attr&&y2t.includes(o))&&(i[o]=e[o])}),i}function j7e(e){return e&&V.isValidElement(e)&&e.type===V.Fragment}const U7e=(e,n,r)=>V.isValidElement(e)?V.cloneElement(e,typeof r=="function"?r(e.props||{}):r):n;function Ys(e,n){return U7e(e,e,n)}const z3=(e,n,r,i,o)=>({background:e,border:`${Ye(i.lineWidth)} ${i.lineType} ${n}`,[`${o}-icon`]:{color:r}}),S2t=e=>{const{componentCls:n,motionDurationSlow:r,marginXS:i,marginSM:o,fontSize:a,fontSizeLG:s,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:p,withDescriptionPadding:h,defaultPadding:g}=e;return{[n]:Object.assign(Object.assign({},li(e)),{position:"relative",display:"flex",alignItems:"center",padding:g,wordWrap:"break-word",borderRadius:c,[`&${n}-rtl`]:{direction:"rtl"},[`${n}-content`]:{flex:1,minWidth:0},[`${n}-icon`]:{marginInlineEnd:i,lineHeight:0},"&-description":{display:"none",fontSize:a,lineHeight:l},"&-message":{color:p},[`&${n}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${r} ${u}, opacity ${r} ${u},
padding-top ${r} ${u}, padding-bottom ${r} ${u},
margin-bottom ${r} ${u}`},[`&${n}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${n}-with-description`]:{alignItems:"flex-start",padding:h,[`${n}-icon`]:{marginInlineEnd:o,fontSize:d,lineHeight:0},[`${n}-message`]:{display:"block",marginBottom:i,color:p,fontSize:s},[`${n}-description`]:{display:"block",color:f}},[`${n}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},E2t=e=>{const{componentCls:n,colorSuccess:r,colorSuccessBorder:i,colorSuccessBg:o,colorWarning:a,colorWarningBorder:s,colorWarningBg:l,colorError:c,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:p,colorInfoBg:h}=e;return{[n]:{"&-success":z3(o,i,r,e,n),"&-info":z3(h,p,f,e,n),"&-warning":z3(l,s,a,e,n),"&-error":Object.assign(Object.assign({},z3(d,u,c,e,n)),{[`${n}-description > pre`]:{margin:0,padding:0}})}}},C2t=e=>{const{componentCls:n,iconCls:r,motionDurationMid:i,marginXS:o,fontSizeIcon:a,colorIcon:s,colorIconHover:l}=e;return{[n]:{"&-action":{marginInlineStart:o},[`${n}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:a,lineHeight:Ye(a),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${r}-close`]:{color:s,transition:`color ${i}`,"&:hover":{color:l}}},"&-close-text":{color:s,transition:`color ${i}`,"&:hover":{color:l}}}}},w2t=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),x2t=Yr("Alert",e=>[S2t(e),E2t(e),C2t(e)],w2t);var kEe=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const T2t={success:tw,info:D9,error:tv,warning:eS},O2t=e=>{const{icon:n,prefixCls:r,type:i}=e,o=T2t[i]||null;return n?U7e(n,m.createElement("span",{className:`${r}-icon`},n),()=>({className:Ce(`${r}-icon`,n.props.className)})):m.createElement(o,{className:`${r}-icon`})},R2t=e=>{const{isClosable:n,prefixCls:r,closeIcon:i,handleClose:o,ariaProps:a}=e,s=i===!0||i===void 0?m.createElement(Up,null):i;return n?m.createElement("button",Object.assign({type:"button",onClick:o,className:`${r}-close-icon`,tabIndex:0},a),s):null},H7e=m.forwardRef((e,n)=>{const{description:r,prefixCls:i,message:o,banner:a,className:s,rootClassName:l,style:c,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:p,showIcon:h,closable:g,closeText:v,closeIcon:y,action:_,id:S}=e,b=kEe(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[E,w]=m.useState(!1),C=m.useRef(null);m.useImperativeHandle(n,()=>({nativeElement:C.current}));const{getPrefixCls:x,direction:T,alert:R}=m.useContext(Cn),O=x("alert",i),[M,P,k]=x2t(O),$=H=>{var G;w(!0),(G=e.onClose)===null||G===void 0||G.call(e,H)},U=m.useMemo(()=>e.type!==void 0?e.type:a?"warning":"info",[e.type,a]),z=m.useMemo(()=>typeof g=="object"&&g.closeIcon||v?!0:typeof g=="boolean"?g:y!==!1&&y!==null&&y!==void 0?!0:!!(R!=null&&R.closable),[v,y,g,R==null?void 0:R.closable]),D=a&&h===void 0?!0:h,B=Ce(O,`${O}-${U}`,{[`${O}-with-description`]:!!r,[`${O}-no-icon`]:!D,[`${O}-banner`]:!!a,[`${O}-rtl`]:T==="rtl"},R==null?void 0:R.className,s,l,k,P),Y=Va(b,{aria:!0,data:!0}),q=m.useMemo(()=>{var H,G;return typeof g=="object"&&g.closeIcon?g.closeIcon:v||(y!==void 0?y:typeof(R==null?void 0:R.closable)=="object"&&(!((H=R==null?void 0:R.closable)===null||H===void 0)&&H.closeIcon)?(G=R==null?void 0:R.closable)===null||G===void 0?void 0:G.closeIcon:R==null?void 0:R.closeIcon)},[y,g,v,R==null?void 0:R.closeIcon]),K=m.useMemo(()=>{const H=g??(R==null?void 0:R.closable);return typeof H=="object"?kEe(H,["closeIcon"]):{}},[g,R==null?void 0:R.closable]);return M(m.createElement(Ws,{visible:!E,motionName:`${O}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:H=>({maxHeight:H.offsetHeight}),onLeaveEnd:p},(H,G)=>{let{className:Q,style:le}=H;return m.createElement("div",Object.assign({id:S,ref:Il(C,G),"data-show":!E,className:Ce(B,Q),style:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.style),c),le),onMouseEnter:u,onMouseLeave:d,onClick:f,role:"alert"},Y),D?m.createElement(O2t,{description:r,icon:e.icon,prefixCls:O,type:U}):null,m.createElement("div",{className:`${O}-content`},o?m.createElement("div",{className:`${O}-message`},o):null,r?m.createElement("div",{className:`${O}-description`},r):null),_?m.createElement("div",{className:`${O}-action`},_):null,m.createElement(R2t,{isClosable:z,prefixCls:O,closeIcon:q,handleClose:$,ariaProps:K}))}))});function I2t(e,n,r){return n=J1(n),yje(e,w9()?Reflect.construct(n,r||[],J1(e).constructor):n.apply(e,r))}let N2t=function(e){function n(){var r;return Ki(this,n),r=I2t(this,n,arguments),r.state={error:void 0,info:{componentStack:""}},r}return Kc(n,e),Xi(n,[{key:"componentDidCatch",value:function(i,o){this.setState({error:i,info:o})}},{key:"render",value:function(){const{message:i,description:o,id:a,children:s}=this.props,{error:l,info:c}=this.state,u=(c==null?void 0:c.componentStack)||null,d=typeof i>"u"?(l||"").toString():i,f=typeof o>"u"?u:o;return l?m.createElement(H7e,{id:a,type:"error",message:d,description:m.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):s}}])}(m.Component);const z7e=H7e;z7e.ErrorBoundary=N2t;const LEe=e=>typeof e=="object"&&e!=null&&e.nodeType===1,$Ee=(e,n)=>(!n||e!=="hidden")&&e!=="visible"&&e!=="clip",LY=(e,n)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return $Ee(r.overflowY,n)||$Ee(r.overflowX,n)||(i=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!o&&(o.clientHeight<i.scrollHeight||o.clientWidth<i.scrollWidth)})(e)}return!1},V3=(e,n,r,i,o,a,s,l)=>a<e&&s>n||a>e&&s<n?0:a<=e&&l<=r||s>=n&&l>=r?a-e-i:s>n&&l<r||a<e&&l>r?s-n+o:0,M2t=e=>{const n=e.parentElement;return n??(e.getRootNode().host||null)},FEe=(e,n)=>{var r,i,o,a;if(typeof document>"u")return[];const{scrollMode:s,block:l,inline:c,boundary:u,skipOverflowHiddenElements:d}=n,f=typeof u=="function"?u:z=>z!==u;if(!LEe(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let g=e;for(;LEe(g)&&f(g);){if(g=M2t(g),g===p){h.push(g);break}g!=null&&g===document.body&&LY(g)&&!LY(document.documentElement)||g!=null&&LY(g,d)&&h.push(g)}const v=(i=(r=window.visualViewport)==null?void 0:r.width)!=null?i:innerWidth,y=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:_,scrollY:S}=window,{height:b,width:E,top:w,right:C,bottom:x,left:T}=e.getBoundingClientRect(),{top:R,right:O,bottom:M,left:P}=(z=>{const D=window.getComputedStyle(z);return{top:parseFloat(D.scrollMarginTop)||0,right:parseFloat(D.scrollMarginRight)||0,bottom:parseFloat(D.scrollMarginBottom)||0,left:parseFloat(D.scrollMarginLeft)||0}})(e);let k=l==="start"||l==="nearest"?w-R:l==="end"?x+M:w+b/2-R+M,$=c==="center"?T+E/2-P+O:c==="end"?C+O:T-P;const U=[];for(let z=0;z<h.length;z++){const D=h[z],{height:B,width:Y,top:q,right:K,bottom:H,left:G}=D.getBoundingClientRect();if(s==="if-needed"&&w>=0&&T>=0&&x<=y&&C<=v&&w>=q&&x<=H&&T>=G&&C<=K)return U;const Q=getComputedStyle(D),le=parseInt(Q.borderLeftWidth,10),Z=parseInt(Q.borderTopWidth,10),j=parseInt(Q.borderRightWidth,10),F=parseInt(Q.borderBottomWidth,10);let te=0,oe=0;const de="offsetWidth"in D?D.offsetWidth-D.clientWidth-le-j:0,pe="offsetHeight"in D?D.offsetHeight-D.clientHeight-Z-F:0,me="offsetWidth"in D?D.offsetWidth===0?0:Y/D.offsetWidth:0,ve="offsetHeight"in D?D.offsetHeight===0?0:B/D.offsetHeight:0;if(p===D)te=l==="start"?k:l==="end"?k-y:l==="nearest"?V3(S,S+y,y,Z,F,S+k,S+k+b,b):k-y/2,oe=c==="start"?$:c==="center"?$-v/2:c==="end"?$-v:V3(_,_+v,v,le,j,_+$,_+$+E,E),te=Math.max(0,te+S),oe=Math.max(0,oe+_);else{te=l==="start"?k-q-Z:l==="end"?k-H+F+pe:l==="nearest"?V3(q,H,B,Z,F+pe,k,k+b,b):k-(q+B/2)+pe/2,oe=c==="start"?$-G-le:c==="center"?$-(G+Y/2)+de/2:c==="end"?$-K+j+de:V3(G,K,Y,le,j+de,$,$+E,E);const{scrollLeft:he,scrollTop:be}=D;te=ve===0?0:Math.max(0,Math.min(be+te/ve,D.scrollHeight-B/ve+pe)),oe=me===0?0:Math.max(0,Math.min(he+oe/me,D.scrollWidth-Y/me+de)),k+=be-te,$+=he-oe}U.push({el:D,top:te,left:oe})}return U},P2t=e=>e===!1?{block:"end",inline:"nearest"}:(n=>n===Object(n)&&Object.keys(n).length!==0)(e)?e:{block:"start",inline:"nearest"};function A2t(e,n){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const r=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(n))return n.behavior(FEe(e,n));const i=typeof n=="boolean"||n==null?void 0:n.behavior;for(const{el:o,top:a,left:s}of FEe(e,P2t(n))){const l=a-r.top+r.bottom,c=s-r.left+r.right;o.scroll({top:l,left:c,behavior:i})}}const po=e=>{const[,,,,n]=Nl();return n?`${e}-css-var`:""};var At={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(n){var r=n.keyCode;if(n.altKey&&!n.ctrlKey||n.metaKey||r>=At.F1&&r<=At.F12)return!1;switch(r){case At.ALT:case At.CAPS_LOCK:case At.CONTEXT_MENU:case At.CTRL:case At.DOWN:case At.END:case At.ESC:case At.HOME:case At.INSERT:case At.LEFT:case At.MAC_FF_META:case At.META:case At.NUMLOCK:case At.NUM_CENTER:case At.PAGE_DOWN:case At.PAGE_UP:case At.PAUSE:case At.PRINT_SCREEN:case At.RIGHT:case At.SHIFT:case At.UP:case At.WIN_KEY:case At.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(n){if(n>=At.ZERO&&n<=At.NINE||n>=At.NUM_ZERO&&n<=At.NUM_MULTIPLY||n>=At.A&&n<=At.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&n===0)return!0;switch(n){case At.SPACE:case At.QUESTION_MARK:case At.NUM_PLUS:case At.NUM_MINUS:case At.NUM_PERIOD:case At.NUM_DIVISION:case At.SEMICOLON:case At.DASH:case At.EQUALS:case At.COMMA:case At.PERIOD:case At.SLASH:case At.APOSTROPHE:case At.SINGLE_QUOTE:case At.OPEN_SQUARE_BRACKET:case At.BACKSLASH:case At.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},V7e=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.style,o=e.className,a=e.duration,s=a===void 0?4.5:a,l=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,f=e.content,p=e.closable,h=e.closeIcon,g=h===void 0?"x":h,v=e.props,y=e.onClick,_=e.onNoticeClose,S=e.times,b=e.hovering,E=m.useState(!1),w=ke(E,2),C=w[0],x=w[1],T=m.useState(0),R=ke(T,2),O=R[0],M=R[1],P=m.useState(0),k=ke(P,2),$=k[0],U=k[1],z=b||C,D=s>0&&l,B=function(){_(d)},Y=function(le){(le.key==="Enter"||le.code==="Enter"||le.keyCode===At.ENTER)&&B()};m.useEffect(function(){if(!z&&s>0){var Q=Date.now()-$,le=setTimeout(function(){B()},s*1e3-$);return function(){u&&clearTimeout(le),U(Date.now()-Q)}}},[s,z,S]),m.useEffect(function(){if(!z&&D&&(u||$===0)){var Q=performance.now(),le,Z=function j(){cancelAnimationFrame(le),le=requestAnimationFrame(function(F){var te=F+$-Q,oe=Math.min(te/(s*1e3),1);M(oe*100),oe<1&&j()})};return Z(),function(){u&&cancelAnimationFrame(le)}}},[s,$,z,D,S]);var q=m.useMemo(function(){return cn(p)==="object"&&p!==null?p:p?{closeIcon:g}:{}},[p,g]),K=Va(q,!0),H=100-(!O||O<0?0:O>100?100:O),G="".concat(r,"-notice");return m.createElement("div",ft({},v,{ref:n,className:Ce(G,o,fe({},"".concat(G,"-closable"),p)),style:i,onMouseEnter:function(le){var Z;x(!0),v==null||(Z=v.onMouseEnter)===null||Z===void 0||Z.call(v,le)},onMouseLeave:function(le){var Z;x(!1),v==null||(Z=v.onMouseLeave)===null||Z===void 0||Z.call(v,le)},onClick:y}),m.createElement("div",{className:"".concat(G,"-content")},f),p&&m.createElement("a",ft({tabIndex:0,className:"".concat(G,"-close"),onKeyDown:Y,"aria-label":"Close"},K,{onClick:function(le){le.preventDefault(),le.stopPropagation(),B()}}),q.closeIcon),D&&m.createElement("progress",{className:"".concat(G,"-progress"),max:"100",value:H},H+"%"))}),G7e=V.createContext({}),W7e=function(n){var r=n.children,i=n.classNames;return V.createElement(G7e.Provider,{value:{classNames:i}},r)},BEe=8,jEe=3,UEe=16,D2t=function(n){var r={offset:BEe,threshold:jEe,gap:UEe};if(n&&cn(n)==="object"){var i,o,a;r.offset=(i=n.offset)!==null&&i!==void 0?i:BEe,r.threshold=(o=n.threshold)!==null&&o!==void 0?o:jEe,r.gap=(a=n.gap)!==null&&a!==void 0?a:UEe}return[!!n,r]},k2t=["className","style","classNames","styles"],L2t=function(n){var r=n.configList,i=n.placement,o=n.prefixCls,a=n.className,s=n.style,l=n.motion,c=n.onAllNoticeRemoved,u=n.onNoticeClose,d=n.stack,f=m.useContext(G7e),p=f.classNames,h=m.useRef({}),g=m.useState(null),v=ke(g,2),y=v[0],_=v[1],S=m.useState([]),b=ke(S,2),E=b[0],w=b[1],C=r.map(function(z){return{config:z,key:String(z.key)}}),x=D2t(d),T=ke(x,2),R=T[0],O=T[1],M=O.offset,P=O.threshold,k=O.gap,$=R&&(E.length>0||C.length<=P),U=typeof l=="function"?l(i):l;return m.useEffect(function(){R&&E.length>1&&w(function(z){return z.filter(function(D){return C.some(function(B){var Y=B.key;return D===Y})})})},[E,C,R]),m.useEffect(function(){var z;if(R&&h.current[(z=C[C.length-1])===null||z===void 0?void 0:z.key]){var D;_(h.current[(D=C[C.length-1])===null||D===void 0?void 0:D.key])}},[C,R]),V.createElement(A9,ft({key:i,className:Ce(o,"".concat(o,"-").concat(i),p==null?void 0:p.list,a,fe(fe({},"".concat(o,"-stack"),!!R),"".concat(o,"-stack-expanded"),$)),style:s,keys:C,motionAppear:!0},U,{onAllRemoved:function(){c(i)}}),function(z,D){var B=z.config,Y=z.className,q=z.style,K=z.index,H=B,G=H.key,Q=H.times,le=String(G),Z=B,j=Z.className,F=Z.style,te=Z.classNames,oe=Z.styles,de=Xt(Z,k2t),pe=C.findIndex(function(Ne){return Ne.key===le}),me={};if(R){var ve=C.length-1-(pe>-1?pe:K-1),he=i==="top"||i==="bottom"?"-50%":"0";if(ve>0){var be,we,De;me.height=$?(be=h.current[le])===null||be===void 0?void 0:be.offsetHeight:y==null?void 0:y.offsetHeight;for(var Ae=0,Ee=0;Ee<ve;Ee++){var Re;Ae+=((Re=h.current[C[C.length-1-Ee].key])===null||Re===void 0?void 0:Re.offsetHeight)+k}var Te=($?Ae:ve*M)*(i.startsWith("top")?1:-1),Oe=!$&&y!==null&&y!==void 0&&y.offsetWidth&&(we=h.current[le])!==null&&we!==void 0&&we.offsetWidth?((y==null?void 0:y.offsetWidth)-M*2*(ve<3?ve:3))/((De=h.current[le])===null||De===void 0?void 0:De.offsetWidth):1;me.transform="translate3d(".concat(he,", ").concat(Te,"px, 0) scaleX(").concat(Oe,")")}else me.transform="translate3d(".concat(he,", 0, 0)")}return V.createElement("div",{ref:D,className:Ce("".concat(o,"-notice-wrapper"),Y,te==null?void 0:te.wrapper),style:ee(ee(ee({},q),me),oe==null?void 0:oe.wrapper),onMouseEnter:function(){return w(function(je){return je.includes(le)?je:[].concat(Tt(je),[le])})},onMouseLeave:function(){return w(function(je){return je.filter(function(ne){return ne!==le})})}},V.createElement(V7e,ft({},de,{ref:function(je){pe>-1?h.current[le]=je:delete h.current[le]},prefixCls:o,classNames:te,styles:oe,className:Ce(j,p==null?void 0:p.notice),style:F,times:Q,key:G,eventKey:G,onNoticeClose:u,hovering:R&&E.length>0})))})},$2t=m.forwardRef(function(e,n){var r=e.prefixCls,i=r===void 0?"rc-notification":r,o=e.container,a=e.motion,s=e.maxCount,l=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,p=m.useState([]),h=ke(p,2),g=h[0],v=h[1],y=function(R){var O,M=g.find(function(P){return P.key===R});M==null||(O=M.onClose)===null||O===void 0||O.call(M),v(function(P){return P.filter(function(k){return k.key!==R})})};m.useImperativeHandle(n,function(){return{open:function(R){v(function(O){var M=Tt(O),P=M.findIndex(function(U){return U.key===R.key}),k=ee({},R);if(P>=0){var $;k.times=((($=O[P])===null||$===void 0?void 0:$.times)||0)+1,M[P]=k}else k.times=0,M.push(k);return s>0&&M.length>s&&(M=M.slice(-s)),M})},close:function(R){y(R)},destroy:function(){v([])}}});var _=m.useState({}),S=ke(_,2),b=S[0],E=S[1];m.useEffect(function(){var T={};g.forEach(function(R){var O=R.placement,M=O===void 0?"topRight":O;M&&(T[M]=T[M]||[],T[M].push(R))}),Object.keys(b).forEach(function(R){T[R]=T[R]||[]}),E(T)},[g]);var w=function(R){E(function(O){var M=ee({},O),P=M[R]||[];return P.length||delete M[R],M})},C=m.useRef(!1);if(m.useEffect(function(){Object.keys(b).length>0?C.current=!0:C.current&&(u==null||u(),C.current=!1)},[b]),!o)return null;var x=Object.keys(b);return Us.createPortal(m.createElement(m.Fragment,null,x.map(function(T){var R=b[T],O=m.createElement(L2t,{key:T,configList:R,placement:T,prefixCls:i,className:l==null?void 0:l(T),style:c==null?void 0:c(T),motion:a,onNoticeClose:y,onAllNoticeRemoved:w,stack:d});return f?f(O,{prefixCls:i,key:T}):O})),o)}),F2t=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],B2t=function(){return document.body},HEe=0;function j2t(){for(var e={},n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return r.forEach(function(o){o&&Object.keys(o).forEach(function(a){var s=o[a];s!==void 0&&(e[a]=s)})}),e}function Y7e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.getContainer,r=n===void 0?B2t:n,i=e.motion,o=e.prefixCls,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=Xt(e,F2t),p=m.useState(),h=ke(p,2),g=h[0],v=h[1],y=m.useRef(),_=m.createElement($2t,{container:g,ref:y,prefixCls:o,motion:i,maxCount:a,className:s,style:l,onAllRemoved:c,stack:u,renderNotifications:d}),S=m.useState([]),b=ke(S,2),E=b[0],w=b[1],C=m.useMemo(function(){return{open:function(T){var R=j2t(f,T);(R.key===null||R.key===void 0)&&(R.key="rc-notification-".concat(HEe),HEe+=1),w(function(O){return[].concat(Tt(O),[{type:"open",config:R}])})},close:function(T){w(function(R){return[].concat(Tt(R),[{type:"close",key:T}])})},destroy:function(){w(function(T){return[].concat(Tt(T),[{type:"destroy"}])})}}},[]);return m.useEffect(function(){v(r())}),m.useEffect(function(){y.current&&E.length&&(E.forEach(function(x){switch(x.type){case"open":y.current.open(x.config);break;case"close":y.current.close(x.key);break;case"destroy":y.current.destroy();break}}),w(function(x){return x.filter(function(T){return!E.includes(T)})}))},[E]),[C,_]}var U2t={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"},H2t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:U2t}))},Mm=m.forwardRef(H2t);const ck=V.createContext(void 0),lb=100,z2t=10,Cue=lb*z2t,q7e={Modal:lb,Drawer:lb,Popover:lb,Popconfirm:lb,Tooltip:lb,Tour:lb,FloatButton:lb},V2t={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function G2t(e){return e in q7e}const Hp=(e,n)=>{const[,r]=Nl(),i=V.useContext(ck),o=G2t(e);let a;if(n!==void 0)a=[n,n];else{let s=i??0;o?s+=(i?0:r.zIndexPopupBase)+q7e[e]:s+=V2t[e],a=[i===void 0?n:s,s]}return a},W2t=e=>{const{componentCls:n,iconCls:r,boxShadow:i,colorText:o,colorSuccess:a,colorError:s,colorWarning:l,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:p,paddingXS:h,borderRadiusLG:g,zIndexPopup:v,contentPadding:y,contentBg:_}=e,S=`${n}-notice`,b=new kr("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),E=new kr("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:h,textAlign:"center",[`${n}-custom-content`]:{display:"flex",alignItems:"center"},[`${n}-custom-content > ${r}`]:{marginInlineEnd:p,fontSize:u},[`${S}-content`]:{display:"inline-block",padding:y,background:_,borderRadius:g,boxShadow:i,pointerEvents:"all"},[`${n}-success > ${r}`]:{color:a},[`${n}-error > ${r}`]:{color:s},[`${n}-warning > ${r}`]:{color:l},[`${n}-info > ${r},
${n}-loading > ${r}`]:{color:c}};return[{[n]:Object.assign(Object.assign({},li(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:v,[`${n}-move-up`]:{animationFillMode:"forwards"},[`
${n}-move-up-appear,
${n}-move-up-enter
`]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
${n}-move-up-appear${n}-move-up-appear-active,
${n}-move-up-enter${n}-move-up-enter-active
`]:{animationPlayState:"running"},[`${n}-move-up-leave`]:{animationName:E,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${n}-move-up-leave${n}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[n]:{[`${S}-wrapper`]:Object.assign({},w)}},{[`${n}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},Y2t=e=>({zIndexPopup:e.zIndexPopupBase+Cue+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),K7e=Yr("Message",e=>{const n=wr(e,{height:150});return[W2t(n)]},Y2t);var q2t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const K2t={info:m.createElement(D9,null),success:m.createElement(tw,null),error:m.createElement(tv,null),warning:m.createElement(eS,null),loading:m.createElement(Mm,null)},X7e=e=>{let{prefixCls:n,type:r,icon:i,children:o}=e;return m.createElement("div",{className:Ce(`${n}-custom-content`,`${n}-${r}`)},i||K2t[r],m.createElement("span",null,o))},X2t=e=>{const{prefixCls:n,className:r,type:i,icon:o,content:a}=e,s=q2t(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=m.useContext(Cn),c=n||l("message"),u=po(c),[d,f,p]=K7e(c,u);return d(m.createElement(V7e,Object.assign({},s,{prefixCls:c,className:Ce(r,f,`${c}-notice-pure-panel`,p,u),eventKey:"pure",duration:null,content:m.createElement(X7e,{prefixCls:c,type:i,icon:o},a)})))};function Q2t(e,n){return{motionName:n??`${e}-move-up`}}function wue(e){let n;const r=new Promise(o=>{n=e(()=>{o(!0)})}),i=()=>{n==null||n()};return i.then=(o,a)=>r.then(o,a),i.promise=r,i}var Z2t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const J2t=8,ePt=3,tPt=e=>{let{children:n,prefixCls:r}=e;const i=po(r),[o,a,s]=K7e(r,i);return o(m.createElement(W7e,{classNames:{list:Ce(a,s,i)}},n))},nPt=(e,n)=>{let{prefixCls:r,key:i}=n;return m.createElement(tPt,{prefixCls:r,key:i},e)},rPt=m.forwardRef((e,n)=>{const{top:r,prefixCls:i,getContainer:o,maxCount:a,duration:s=ePt,rtl:l,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:p,direction:h}=m.useContext(Cn),g=i||d("message"),v=()=>({left:"50%",transform:"translateX(-50%)",top:r??J2t}),y=()=>Ce({[`${g}-rtl`]:l??h==="rtl"}),_=()=>Q2t(g,c),S=m.createElement("span",{className:`${g}-close-x`},m.createElement(Up,{className:`${g}-close-icon`})),[b,E]=Y7e({prefixCls:g,style:v,className:y,motion:_,closable:!1,closeIcon:S,duration:s,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:nPt});return m.useImperativeHandle(n,()=>Object.assign(Object.assign({},b),{prefixCls:g,message:p})),E});let zEe=0;function Q7e(e){const n=m.useRef(null);return JC(),[m.useMemo(()=>{const i=c=>{var u;(u=n.current)===null||u===void 0||u.close(c)},o=c=>{if(!n.current){const C=()=>{};return C.then=()=>{},C}const{open:u,prefixCls:d,message:f}=n.current,p=`${d}-notice`,{content:h,icon:g,type:v,key:y,className:_,style:S,onClose:b}=c,E=Z2t(c,["content","icon","type","key","className","style","onClose"]);let w=y;return w==null&&(zEe+=1,w=`antd-message-${zEe}`),wue(C=>(u(Object.assign(Object.assign({},E),{key:w,content:m.createElement(X7e,{prefixCls:d,type:v,icon:g},h),placement:"top",className:Ce(v&&`${p}-${v}`,_,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),S),onClose:()=>{b==null||b(),C()}})),()=>{i(w)}))},s={open:o,destroy:c=>{var u;c!==void 0?i(c):(u=n.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(d,f,p)=>{let h;d&&typeof d=="object"&&"content"in d?h=d:h={content:d};let g,v;typeof f=="function"?v=f:(g=f,v=p);const y=Object.assign(Object.assign({onClose:v,duration:g},h),{type:c});return o(y)};s[c]=u}),s},[]),m.createElement(rPt,Object.assign({key:"message-holder"},e,{ref:n}))]}function Z7e(e){return Q7e(e)}function iPt(){const[e,n]=m.useState([]),r=m.useCallback(i=>(n(o=>[].concat(Tt(o),[i])),()=>{n(o=>o.filter(a=>a!==i))}),[]);return[e,r]}function ri(){ri=function(){return n};var e,n={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(z,D,B){z[D]=B.value},a=typeof Symbol=="function"?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(z,D,B){return Object.defineProperty(z,D,{value:B,enumerable:!0,configurable:!0,writable:!0}),z[D]}try{u({},"")}catch{u=function(B,Y,q){return B[Y]=q}}function d(z,D,B,Y){var q=D&&D.prototype instanceof _?D:_,K=Object.create(q.prototype),H=new $(Y||[]);return o(K,"_invoke",{value:O(z,B,H)}),K}function f(z,D,B){try{return{type:"normal",arg:z.call(D,B)}}catch(Y){return{type:"throw",arg:Y}}}n.wrap=d;var p="suspendedStart",h="suspendedYield",g="executing",v="completed",y={};function _(){}function S(){}function b(){}var E={};u(E,s,function(){return this});var w=Object.getPrototypeOf,C=w&&w(w(U([])));C&&C!==r&&i.call(C,s)&&(E=C);var x=b.prototype=_.prototype=Object.create(E);function T(z){["next","throw","return"].forEach(function(D){u(z,D,function(B){return this._invoke(D,B)})})}function R(z,D){function B(q,K,H,G){var Q=f(z[q],z,K);if(Q.type!=="throw"){var le=Q.arg,Z=le.value;return Z&&cn(Z)=="object"&&i.call(Z,"__await")?D.resolve(Z.__await).then(function(j){B("next",j,H,G)},function(j){B("throw",j,H,G)}):D.resolve(Z).then(function(j){le.value=j,H(le)},function(j){return B("throw",j,H,G)})}G(Q.arg)}var Y;o(this,"_invoke",{value:function(K,H){function G(){return new D(function(Q,le){B(K,H,Q,le)})}return Y=Y?Y.then(G,G):G()}})}function O(z,D,B){var Y=p;return function(q,K){if(Y===g)throw Error("Generator is already running");if(Y===v){if(q==="throw")throw K;return{value:e,done:!0}}for(B.method=q,B.arg=K;;){var H=B.delegate;if(H){var G=M(H,B);if(G){if(G===y)continue;return G}}if(B.method==="next")B.sent=B._sent=B.arg;else if(B.method==="throw"){if(Y===p)throw Y=v,B.arg;B.dispatchException(B.arg)}else B.method==="return"&&B.abrupt("return",B.arg);Y=g;var Q=f(z,D,B);if(Q.type==="normal"){if(Y=B.done?v:h,Q.arg===y)continue;return{value:Q.arg,done:B.done}}Q.type==="throw"&&(Y=v,B.method="throw",B.arg=Q.arg)}}}function M(z,D){var B=D.method,Y=z.iterator[B];if(Y===e)return D.delegate=null,B==="throw"&&z.iterator.return&&(D.method="return",D.arg=e,M(z,D),D.method==="throw")||B!=="return"&&(D.method="throw",D.arg=new TypeError("The iterator does not provide a '"+B+"' method")),y;var q=f(Y,z.iterator,D.arg);if(q.type==="throw")return D.method="throw",D.arg=q.arg,D.delegate=null,y;var K=q.arg;return K?K.done?(D[z.resultName]=K.value,D.next=z.nextLoc,D.method!=="return"&&(D.method="next",D.arg=e),D.delegate=null,y):K:(D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,y)}function P(z){var D={tryLoc:z[0]};1 in z&&(D.catchLoc=z[1]),2 in z&&(D.finallyLoc=z[2],D.afterLoc=z[3]),this.tryEntries.push(D)}function k(z){var D=z.completion||{};D.type="normal",delete D.arg,z.completion=D}function $(z){this.tryEntries=[{tryLoc:"root"}],z.forEach(P,this),this.reset(!0)}function U(z){if(z||z===""){var D=z[s];if(D)return D.call(z);if(typeof z.next=="function")return z;if(!isNaN(z.length)){var B=-1,Y=function q(){for(;++B<z.length;)if(i.call(z,B))return q.value=z[B],q.done=!1,q;return q.value=e,q.done=!0,q};return Y.next=Y}}throw new TypeError(cn(z)+" is not iterable")}return S.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:S,configurable:!0}),S.displayName=u(b,c,"GeneratorFunction"),n.isGeneratorFunction=function(z){var D=typeof z=="function"&&z.constructor;return!!D&&(D===S||(D.displayName||D.name)==="GeneratorFunction")},n.mark=function(z){return Object.setPrototypeOf?Object.setPrototypeOf(z,b):(z.__proto__=b,u(z,c,"GeneratorFunction")),z.prototype=Object.create(x),z},n.awrap=function(z){return{__await:z}},T(R.prototype),u(R.prototype,l,function(){return this}),n.AsyncIterator=R,n.async=function(z,D,B,Y,q){q===void 0&&(q=Promise);var K=new R(d(z,D,B,Y),q);return n.isGeneratorFunction(D)?K:K.next().then(function(H){return H.done?H.value:K.next()})},T(x),u(x,c,"Generator"),u(x,s,function(){return this}),u(x,"toString",function(){return"[object Generator]"}),n.keys=function(z){var D=Object(z),B=[];for(var Y in D)B.push(Y);return B.reverse(),function q(){for(;B.length;){var K=B.pop();if(K in D)return q.value=K,q.done=!1,q}return q.done=!0,q}},n.values=U,$.prototype={constructor:$,reset:function(D){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(k),!D)for(var B in this)B.charAt(0)==="t"&&i.call(this,B)&&!isNaN(+B.slice(1))&&(this[B]=e)},stop:function(){this.done=!0;var D=this.tryEntries[0].completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var B=this;function Y(le,Z){return H.type="throw",H.arg=D,B.next=le,Z&&(B.method="next",B.arg=e),!!Z}for(var q=this.tryEntries.length-1;q>=0;--q){var K=this.tryEntries[q],H=K.completion;if(K.tryLoc==="root")return Y("end");if(K.tryLoc<=this.prev){var G=i.call(K,"catchLoc"),Q=i.call(K,"finallyLoc");if(G&&Q){if(this.prev<K.catchLoc)return Y(K.catchLoc,!0);if(this.prev<K.finallyLoc)return Y(K.finallyLoc)}else if(G){if(this.prev<K.catchLoc)return Y(K.catchLoc,!0)}else{if(!Q)throw Error("try statement without catch or finally");if(this.prev<K.finallyLoc)return Y(K.finallyLoc)}}}},abrupt:function(D,B){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var q=this.tryEntries[Y];if(q.tryLoc<=this.prev&&i.call(q,"finallyLoc")&&this.prev<q.finallyLoc){var K=q;break}}K&&(D==="break"||D==="continue")&&K.tryLoc<=B&&B<=K.finallyLoc&&(K=null);var H=K?K.completion:{};return H.type=D,H.arg=B,K?(this.method="next",this.next=K.finallyLoc,y):this.complete(H)},complete:function(D,B){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&B&&(this.next=B),y},finish:function(D){for(var B=this.tryEntries.length-1;B>=0;--B){var Y=this.tryEntries[B];if(Y.finallyLoc===D)return this.complete(Y.completion,Y.afterLoc),k(Y),y}},catch:function(D){for(var B=this.tryEntries.length-1;B>=0;--B){var Y=this.tryEntries[B];if(Y.tryLoc===D){var q=Y.completion;if(q.type==="throw"){var K=q.arg;k(Y)}return K}}throw Error("illegal catch attempt")},delegateYield:function(D,B,Y){return this.delegate={iterator:U(D),resultName:B,nextLoc:Y},this.method==="next"&&(this.arg=e),y}},n}function VEe(e,n,r,i,o,a,s){try{var l=e[a](s),c=l.value}catch(u){return void r(u)}l.done?n(c):Promise.resolve(c).then(i,o)}function Ss(e){return function(){var n=this,r=arguments;return new Promise(function(i,o){var a=e.apply(n,r);function s(c){VEe(a,i,o,s,l,"next",c)}function l(c){VEe(a,i,o,s,l,"throw",c)}s(void 0)})}}var uk=ee({},lje),oPt=uk.version,$Y=uk.render,aPt=uk.unmountComponentAtNode,k9;try{var sPt=Number((oPt||"").split(".")[0]);sPt>=18&&(k9=uk.createRoot)}catch{}function GEe(e){var n=uk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;n&&cn(n)==="object"&&(n.usingClientEntryPoint=e)}var F8="__rc_react_root__";function lPt(e,n){GEe(!0);var r=n[F8]||k9(n);GEe(!1),r.render(e),n[F8]=r}function cPt(e,n){$Y==null||$Y(e,n)}function uPt(e,n){if(k9){lPt(e,n);return}cPt(e,n)}function dPt(e){return Ure.apply(this,arguments)}function Ure(){return Ure=Ss(ri().mark(function e(n){return ri().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Promise.resolve().then(function(){var o;(o=n[F8])===null||o===void 0||o.unmount(),delete n[F8]}));case 1:case"end":return i.stop()}},e)})),Ure.apply(this,arguments)}function fPt(e){aPt(e)}function pPt(e){return Hre.apply(this,arguments)}function Hre(){return Hre=Ss(ri().mark(function e(n){return ri().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(k9===void 0){i.next=2;break}return i.abrupt("return",dPt(n));case 2:fPt(n);case 3:case"end":return i.stop()}},e)})),Hre.apply(this,arguments)}const hPt=(e,n)=>(uPt(e,n),()=>pPt(n));let gPt=hPt;function xue(){return gPt}const FY=()=>({height:0,opacity:0}),WEe=e=>{const{scrollHeight:n}=e;return{height:n,opacity:1}},mPt=e=>({height:e?e.offsetHeight:0}),BY=(e,n)=>(n==null?void 0:n.deadline)===!0||n.propertyName==="height",hA=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:pA}-motion-collapse`,onAppearStart:FY,onEnterStart:FY,onAppearActive:WEe,onEnterActive:WEe,onLeaveStart:mPt,onLeaveActive:FY,onAppearEnd:BY,onEnterEnd:BY,onLeaveEnd:BY,motionDeadline:500}},Kl=(e,n,r)=>r!==void 0?r:`${e}-${n}`,dk=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var n=e.getBBox(),r=n.width,i=n.height;if(r||i)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,s=o.height;if(a||s)return!0}}return!1},vPt=e=>{const{componentCls:n,colorPrimary:r}=e;return{[n]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},yPt=_7e("Wave",e=>[vPt(e)]),L9=`${pA}-wave-target`;function jY(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 _Pt(e){const{borderTopColor:n,borderColor:r,backgroundColor:i}=getComputedStyle(e);return jY(n)?n:jY(r)?r:jY(i)?i:null}function UY(e){return Number.isNaN(e)?0:e}const bPt=e=>{const{className:n,target:r,component:i,registerUnmount:o}=e,a=m.useRef(null),s=m.useRef(null);m.useEffect(()=>{s.current=o()},[]);const[l,c]=m.useState(null),[u,d]=m.useState([]),[f,p]=m.useState(0),[h,g]=m.useState(0),[v,y]=m.useState(0),[_,S]=m.useState(0),[b,E]=m.useState(!1),w={left:f,top:h,width:v,height:_,borderRadius:u.map(T=>`${T}px`).join(" ")};l&&(w["--wave-color"]=l);function C(){const T=getComputedStyle(r);c(_Pt(r));const R=T.position==="static",{borderLeftWidth:O,borderTopWidth:M}=T;p(R?r.offsetLeft:UY(-parseFloat(O))),g(R?r.offsetTop:UY(-parseFloat(M))),y(r.offsetWidth),S(r.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:k,borderBottomLeftRadius:$,borderBottomRightRadius:U}=T;d([P,k,U,$].map(z=>UY(parseFloat(z))))}if(m.useEffect(()=>{if(r){const T=Dr(()=>{C(),E(!0)});let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(C),R.observe(r)),()=>{Dr.cancel(T),R==null||R.disconnect()}}},[]),!b)return null;const x=(i==="Checkbox"||i==="Radio")&&(r==null?void 0:r.classList.contains(L9));return m.createElement(Ws,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(T,R)=>{var O,M;if(R.deadline||R.propertyName==="opacity"){const P=(O=a.current)===null||O===void 0?void 0:O.parentElement;(M=s.current)===null||M===void 0||M.call(s).then(()=>{P==null||P.remove()})}return!1}},(T,R)=>{let{className:O}=T;return m.createElement("div",{ref:Il(a,R),className:Ce(n,O,{"wave-quick":x}),style:w})})},SPt=(e,n)=>{var r;const{component:i}=n;if(i==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const a=xue();let s=null;function l(){return s}s=a(m.createElement(bPt,Object.assign({},n,{target:e,registerUnmount:l})),o)},EPt=(e,n,r)=>{const{wave:i}=m.useContext(Cn),[,o,a]=Nl(),s=Sr(u=>{const d=e.current;if(i!=null&&i.disabled||!d)return;const f=d.querySelector(`.${L9}`)||d,{showEffect:p}=i||{};(p||SPt)(f,{className:n,token:o,component:r,event:u,hashId:a})}),l=m.useRef(null);return u=>{Dr.cancel(l.current),l.current=Dr(()=>{s(u)})}},$9=e=>{const{children:n,disabled:r,component:i}=e,{getPrefixCls:o}=m.useContext(Cn),a=m.useRef(null),s=o("wave"),[,l]=yPt(s),c=EPt(a,Ce(s,l),i);if(V.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==1||r)return;const f=p=>{!dk(p.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||c(p)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[r]),!V.isValidElement(n))return n??null;const u=Xy(n)?Il(J0(n),a):a;return Ys(n,{ref:u})},Xs=e=>{const n=V.useContext(nC);return V.useMemo(()=>e?typeof e=="string"?e??n:e instanceof Function?e(n):n:n,[e,n])},CPt=e=>{const{componentCls:n}=e;return{[n]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},wPt=e=>{const{componentCls:n,antCls:r}=e;return{[n]:{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"}},[`${n}-item:empty`]:{display:"none"},[`${n}-item > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},xPt=e=>{const{componentCls:n}=e;return{[n]:{"&-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}}}},J7e=Yr("Space",e=>{const n=wr(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[wPt(n),xPt(n),CPt(n)]},()=>({}),{resetStyle:!1});var e9e=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const F9=m.createContext(null),_g=(e,n)=>{const r=m.useContext(F9),i=m.useMemo(()=>{if(!r)return"";const{compactDirection:o,isFirstItem:a,isLastItem:s}=r,l=o==="vertical"?"-vertical-":"-";return Ce(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:a,[`${e}-compact${l}last-item`]:s,[`${e}-compact${l}item-rtl`]:n==="rtl"})},[e,n,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:i}},TPt=e=>{let{children:n}=e;return m.createElement(F9.Provider,{value:null},n)},OPt=e=>{var{children:n}=e,r=e9e(e,["children"]);return m.createElement(F9.Provider,{value:r},n)},RPt=e=>{const{getPrefixCls:n,direction:r}=m.useContext(Cn),{size:i,direction:o,block:a,prefixCls:s,className:l,rootClassName:c,children:u}=e,d=e9e(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Xs(b=>i??b),p=n("space-compact",s),[h,g]=J7e(p),v=Ce(p,g,{[`${p}-rtl`]:r==="rtl",[`${p}-block`]:a,[`${p}-vertical`]:o==="vertical"},l,c),y=m.useContext(F9),_=Tl(u),S=m.useMemo(()=>_.map((b,E)=>{const w=(b==null?void 0:b.key)||`${p}-item-${E}`;return m.createElement(OPt,{key:w,compactSize:f,compactDirection:o,isFirstItem:E===0&&(!y||(y==null?void 0:y.isFirstItem)),isLastItem:E===_.length-1&&(!y||(y==null?void 0:y.isLastItem))},b)}),[i,_,y]);return _.length===0?null:h(m.createElement("div",Object.assign({className:v},d),S))};var IPt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const t9e=m.createContext(void 0),NPt=e=>{const{getPrefixCls:n,direction:r}=m.useContext(Cn),{prefixCls:i,size:o,className:a}=e,s=IPt(e,["prefixCls","size","className"]),l=n("btn-group",i),[,,c]=Nl();let u="";switch(o){case"large":u="lg";break;case"small":u="sm";break}const d=Ce(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:r==="rtl"},a,c);return m.createElement(t9e.Provider,{value:o},m.createElement("div",Object.assign({},s,{className:d})))},YEe=/^[\u4E00-\u9FA5]{2}$/,zre=YEe.test.bind(YEe);function Tue(e){return e==="danger"?{danger:!0}:{type:e}}function qEe(e){return typeof e=="string"}function HY(e){return e==="text"||e==="link"}function MPt(e,n){if(e==null)return;const r=n?" ":"";return typeof e!="string"&&typeof e!="number"&&qEe(e.type)&&zre(e.props.children)?Ys(e,{children:e.props.children.split("").join(r)}):qEe(e)?zre(e)?V.createElement("span",null,e.split("").join(r)):V.createElement("span",null,e):j7e(e)?V.createElement("span",null,e):e}function PPt(e,n){let r=!1;const i=[];return V.Children.forEach(e,o=>{const a=typeof o,s=a==="string"||a==="number";if(r&&s){const l=i.length-1,c=i[l];i[l]=`${c}${o}`}else i.push(o);r=s}),V.Children.map(i,o=>MPt(o,n))}["default","primary","danger"].concat(Tt(oC));const Vre=m.forwardRef((e,n)=>{const{className:r,style:i,children:o,prefixCls:a}=e,s=Ce(`${a}-icon`,r);return V.createElement("span",{ref:n,className:s,style:i},o)}),KEe=m.forwardRef((e,n)=>{const{prefixCls:r,className:i,style:o,iconClassName:a}=e,s=Ce(`${r}-loading-icon`,i);return V.createElement(Vre,{prefixCls:r,className:s,style:o,ref:n},V.createElement(Mm,{className:a}))}),zY=()=>({width:0,opacity:0,transform:"scale(0)"}),VY=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),APt=e=>{const{prefixCls:n,loading:r,existIcon:i,className:o,style:a,mount:s}=e,l=!!r;return i?V.createElement(KEe,{prefixCls:n,className:o,style:a}):V.createElement(Ws,{visible:l,motionName:`${n}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:zY,onAppearActive:VY,onEnterStart:zY,onEnterActive:VY,onLeaveStart:VY,onLeaveActive:zY},(c,u)=>{let{className:d,style:f}=c;const p=Object.assign(Object.assign({},a),f);return V.createElement(KEe,{prefixCls:n,className:Ce(o,d),style:p,ref:u})})},XEe=(e,n)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:n}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:n}}}}}),DPt=e=>{const{componentCls:n,fontSize:r,lineWidth:i,groupBorderColor:o,colorErrorHover:a}=e;return{[`${n}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${n}`]:{"&:not(:last-child)":{[`&, & > ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(i).mul(-1).equal(),[`&, & > ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[n]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${n}-icon-only`]:{fontSize:r}},XEe(`${n}-primary`,o),XEe(`${n}-danger`,a)]}};var kPt=["b"],LPt=["v"],GY=function(n){return Math.round(Number(n||0))},$Pt=function(n){if(n instanceof Gr)return n;if(n&&cn(n)==="object"&&"h"in n&&"b"in n){var r=n,i=r.b,o=Xt(r,kPt);return ee(ee({},o),{},{v:i})}return typeof n=="string"&&/hsb/.test(n)?n.replace(/hsb/,"hsv"):n},tg=function(e){Kc(r,e);var n=Nu(r);function r(i){return Ki(this,r),n.call(this,$Pt(i))}return Xi(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=GY(o.s*100),s=GY(o.b*100),l=GY(o.h),c=o.a,u="hsb(".concat(l,", ").concat(a,"%, ").concat(s,"%)"),d="hsba(".concat(l,", ").concat(a,"%, ").concat(s,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?u:d}},{key:"toHsb",value:function(){var o=this.toHsv(),a=o.v,s=Xt(o,LPt);return ee(ee({},s),{},{b:a,a:this.a})}}]),r}(Gr),FPt="rc-color-picker",zT=function(n){return n instanceof tg?n:new tg(n)},BPt=zT("#1677ff"),n9e=function(n){var r=n.offset,i=n.targetRef,o=n.containerRef,a=n.color,s=n.type,l=o.current.getBoundingClientRect(),c=l.width,u=l.height,d=i.current.getBoundingClientRect(),f=d.width,p=d.height,h=f/2,g=p/2,v=(r.x+h)/c,y=1-(r.y+g)/u,_=a.toHsb(),S=v,b=(r.x+h)/c*360;if(s)switch(s){case"hue":return zT(ee(ee({},_),{},{h:b<=0?0:b}));case"alpha":return zT(ee(ee({},_),{},{a:S<=0?0:S}))}return zT({h:_.h,s:v<=0?0:v,b:y>=1?1:y,a:_.a})},r9e=function(n,r){var i=n.toHsb();switch(r){case"hue":return{x:i.h/360*100,y:50};case"alpha":return{x:n.a*100,y:50};default:return{x:i.s*100,y:(1-i.b)*100}}},Oue=function(n){var r=n.color,i=n.prefixCls,o=n.className,a=n.style,s=n.onClick,l="".concat(i,"-color-block");return V.createElement("div",{className:Ce(l,o),style:a,onClick:s},V.createElement("div",{className:"".concat(l,"-inner"),style:{background:r}}))};function jPt(e){var n="touches"in e?e.touches[0]:e,r=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,i=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:n.pageX-r,pageY:n.pageY-i}}function i9e(e){var n=e.targetRef,r=e.containerRef,i=e.direction,o=e.onDragChange,a=e.onDragChangeComplete,s=e.calculate,l=e.color,c=e.disabledDrag,u=m.useState({x:0,y:0}),d=ke(u,2),f=d[0],p=d[1],h=m.useRef(null),g=m.useRef(null);m.useEffect(function(){p(s())},[l]),m.useEffect(function(){return function(){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",g.current),h.current=null,g.current=null}},[]);var v=function(E){var w=jPt(E),C=w.pageX,x=w.pageY,T=r.current.getBoundingClientRect(),R=T.x,O=T.y,M=T.width,P=T.height,k=n.current.getBoundingClientRect(),$=k.width,U=k.height,z=$/2,D=U/2,B=Math.max(0,Math.min(C-R,M))-z,Y=Math.max(0,Math.min(x-O,P))-D,q={x:B,y:i==="x"?f.y:Y};if($===0&&U===0||$!==U)return!1;o==null||o(q)},y=function(E){E.preventDefault(),v(E)},_=function(E){E.preventDefault(),document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",g.current),h.current=null,g.current=null,a==null||a()},S=function(E){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",g.current),!c&&(v(E),document.addEventListener("mousemove",y),document.addEventListener("mouseup",_),document.addEventListener("touchmove",y),document.addEventListener("touchend",_),h.current=y,g.current=_)};return[f,S]}var o9e=function(n){var r=n.size,i=r===void 0?"default":r,o=n.color,a=n.prefixCls;return V.createElement("div",{className:Ce("".concat(a,"-handler"),fe({},"".concat(a,"-handler-sm"),i==="small")),style:{backgroundColor:o}})},a9e=function(n){var r=n.children,i=n.style,o=n.prefixCls;return V.createElement("div",{className:"".concat(o,"-palette"),style:ee({position:"relative"},i)},r)},s9e=m.forwardRef(function(e,n){var r=e.children,i=e.x,o=e.y;return V.createElement("div",{ref:n,style:{position:"absolute",left:"".concat(i,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},r)}),UPt=function(n){var r=n.color,i=n.onChange,o=n.prefixCls,a=n.onChangeComplete,s=n.disabled,l=m.useRef(),c=m.useRef(),u=m.useRef(r),d=Sr(function(v){var y=n9e({offset:v,targetRef:c,containerRef:l,color:r});u.current=y,i(y)}),f=i9e({color:r,containerRef:l,targetRef:c,calculate:function(){return r9e(r)},onDragChange:d,onDragChangeComplete:function(){return a==null?void 0:a(u.current)},disabledDrag:s}),p=ke(f,2),h=p[0],g=p[1];return V.createElement("div",{ref:l,className:"".concat(o,"-select"),onMouseDown:g,onTouchStart:g},V.createElement(a9e,{prefixCls:o},V.createElement(s9e,{x:h.x,y:h.y,ref:c},V.createElement(o9e,{color:r.toRgbString(),prefixCls:o})),V.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(r.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},HPt=function(n,r){var i=dr(n,{value:r}),o=ke(i,2),a=o[0],s=o[1],l=m.useMemo(function(){return zT(a)},[a]);return[l,s]},zPt=function(n){var r=n.colors,i=n.children,o=n.direction,a=o===void 0?"to right":o,s=n.type,l=n.prefixCls,c=m.useMemo(function(){return r.map(function(u,d){var f=zT(u);return s==="alpha"&&d===r.length-1&&(f=new tg(f.setA(1))),f.toRgbString()}).join(",")},[r,s]);return V.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(c,")")}},i)},VPt=function(n){var r=n.prefixCls,i=n.colors,o=n.disabled,a=n.onChange,s=n.onChangeComplete,l=n.color,c=n.type,u=m.useRef(),d=m.useRef(),f=m.useRef(l),p=function(w){return c==="hue"?w.getHue():w.a*100},h=Sr(function(E){var w=n9e({offset:E,targetRef:d,containerRef:u,color:l,type:c});f.current=w,a(p(w))}),g=i9e({color:l,targetRef:d,containerRef:u,calculate:function(){return r9e(l,c)},onDragChange:h,onDragChangeComplete:function(){s(p(f.current))},direction:"x",disabledDrag:o}),v=ke(g,2),y=v[0],_=v[1],S=V.useMemo(function(){if(c==="hue"){var E=l.toHsb();E.s=1,E.b=1,E.a=1;var w=new tg(E);return w}return l},[l,c]),b=V.useMemo(function(){return i.map(function(E){return"".concat(E.color," ").concat(E.percent,"%")})},[i]);return V.createElement("div",{ref:u,className:Ce("".concat(r,"-slider"),"".concat(r,"-slider-").concat(c)),onMouseDown:_,onTouchStart:_},V.createElement(a9e,{prefixCls:r},V.createElement(s9e,{x:y.x,y:y.y,ref:d},V.createElement(o9e,{size:"small",color:S.toHexString(),prefixCls:r})),V.createElement(zPt,{colors:b,type:c,prefixCls:r})))};function GPt(e){return m.useMemo(function(){var n=e||{},r=n.slider;return[r||VPt]},[e])}var WPt=[{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}],YPt=m.forwardRef(function(e,n){var r=e.value,i=e.defaultValue,o=e.prefixCls,a=o===void 0?FPt:o,s=e.onChange,l=e.onChangeComplete,c=e.className,u=e.style,d=e.panelRender,f=e.disabledAlpha,p=f===void 0?!1:f,h=e.disabled,g=h===void 0?!1:h,v=e.components,y=GPt(v),_=ke(y,1),S=_[0],b=HPt(i||BPt,r),E=ke(b,2),w=E[0],C=E[1],x=m.useMemo(function(){return w.setA(1).toRgbString()},[w]),T=function(Y,q){r||C(Y),s==null||s(Y,q)},R=function(Y){return new tg(w.setHue(Y))},O=function(Y){return new tg(w.setA(Y/100))},M=function(Y){T(R(Y),{type:"hue",value:Y})},P=function(Y){T(O(Y),{type:"alpha",value:Y})},k=function(Y){l&&l(R(Y))},$=function(Y){l&&l(O(Y))},U=Ce("".concat(a,"-panel"),c,fe({},"".concat(a,"-panel-disabled"),g)),z={prefixCls:a,disabled:g,color:w},D=V.createElement(V.Fragment,null,V.createElement(UPt,ft({onChange:T},z,{onChangeComplete:l})),V.createElement("div",{className:"".concat(a,"-slider-container")},V.createElement("div",{className:Ce("".concat(a,"-slider-group"),fe({},"".concat(a,"-slider-group-disabled-alpha"),p))},V.createElement(S,ft({},z,{type:"hue",colors:WPt,min:0,max:359,value:w.getHue(),onChange:M,onChangeComplete:k})),!p&&V.createElement(S,ft({},z,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:x}],min:0,max:100,value:w.a*100,onChange:P,onChangeComplete:$}))),V.createElement(Oue,{color:w.toRgbString(),prefixCls:a})));return V.createElement("div",{className:U,style:u,ref:n},typeof d=="function"?d(D):D)});const i2=(e,n)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,n?8:6))||"",qPt=(e,n)=>e?i2(e,n):"";let lf=function(){function e(n){Ki(this,e);var r;if(this.cleared=!1,n instanceof e){this.metaColor=n.metaColor.clone(),this.colors=(r=n.colors)===null||r===void 0?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=n.cleared;return}const i=Array.isArray(n);i&&n.length?(this.colors=n.map(o=>{let{color:a,percent:s}=o;return{color:new e(a),percent:s}}),this.metaColor=new tg(this.colors[0].color.metaColor)):this.metaColor=new tg(i?"":n),(!n||i&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Xi(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return qPt(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:r}=this;return r?`linear-gradient(90deg, ${r.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((i,o)=>{const a=r.colors[o];return i.percent===a.percent&&i.color.equals(a.color)}):this.toHexString()===r.toHexString()}}])}();var KPt={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"},XPt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:KPt}))},w0=m.forwardRef(XPt),l9e=V.forwardRef(function(e,n){var r=e.prefixCls,i=e.forceRender,o=e.className,a=e.style,s=e.children,l=e.isActive,c=e.role,u=e.classNames,d=e.styles,f=V.useState(l||i),p=ke(f,2),h=p[0],g=p[1];return V.useEffect(function(){(i||l)&&g(!0)},[i,l]),h?V.createElement("div",{ref:n,className:Ce("".concat(r,"-content"),fe(fe({},"".concat(r,"-content-active"),l),"".concat(r,"-content-inactive"),!l),o),style:a,role:c},V.createElement("div",{className:Ce("".concat(r,"-content-box"),u==null?void 0:u.body),style:d==null?void 0:d.body},s)):null});l9e.displayName="PanelContent";var QPt=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],c9e=V.forwardRef(function(e,n){var r=e.showArrow,i=r===void 0?!0:r,o=e.headerClass,a=e.isActive,s=e.onItemClick,l=e.forceRender,c=e.className,u=e.classNames,d=u===void 0?{}:u,f=e.styles,p=f===void 0?{}:f,h=e.prefixCls,g=e.collapsible,v=e.accordion,y=e.panelKey,_=e.extra,S=e.header,b=e.expandIcon,E=e.openMotion,w=e.destroyInactivePanel,C=e.children,x=Xt(e,QPt),T=g==="disabled",R=_!=null&&typeof _!="boolean",O=fe(fe(fe({onClick:function(){s==null||s(y)},onKeyDown:function(D){(D.key==="Enter"||D.keyCode===At.ENTER||D.which===At.ENTER)&&(s==null||s(y))},role:v?"tab":"button"},"aria-expanded",a),"aria-disabled",T),"tabIndex",T?-1:0),M=typeof b=="function"?b(e):V.createElement("i",{className:"arrow"}),P=M&&V.createElement("div",ft({className:"".concat(h,"-expand-icon")},["header","icon"].includes(g)?O:{}),M),k=Ce("".concat(h,"-item"),fe(fe({},"".concat(h,"-item-active"),a),"".concat(h,"-item-disabled"),T),c),$=Ce(o,"".concat(h,"-header"),fe({},"".concat(h,"-collapsible-").concat(g),!!g),d.header),U=ee({className:$,style:p.header},["header","icon"].includes(g)?{}:O);return V.createElement("div",ft({},x,{ref:n,className:k}),V.createElement("div",U,i&&P,V.createElement("span",ft({className:"".concat(h,"-header-text")},g==="header"?O:{}),S),R&&V.createElement("div",{className:"".concat(h,"-extra")},_)),V.createElement(Ws,ft({visible:a,leavedClassName:"".concat(h,"-content-hidden")},E,{forceRender:l,removeOnLeave:w}),function(z,D){var B=z.className,Y=z.style;return V.createElement(l9e,{ref:D,prefixCls:h,className:B,classNames:d,style:Y,styles:p,isActive:a,forceRender:l,role:v?"tabpanel":void 0},C)}))}),ZPt=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],JPt=function(n,r){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;return n.map(function(f,p){var h=f.children,g=f.label,v=f.key,y=f.collapsible,_=f.onItemClick,S=f.destroyInactivePanel,b=Xt(f,ZPt),E=String(v??p),w=y??a,C=S??s,x=function(O){w!=="disabled"&&(l(O),_==null||_(O))},T=!1;return o?T=c[0]===E:T=c.indexOf(E)>-1,V.createElement(c9e,ft({},b,{prefixCls:i,key:E,panelKey:E,isActive:T,accordion:o,openMotion:u,expandIcon:d,header:g,collapsible:w,onItemClick:x,destroyInactivePanel:C}),h)})},eAt=function(n,r,i){if(!n)return null;var o=i.prefixCls,a=i.accordion,s=i.collapsible,l=i.destroyInactivePanel,c=i.onItemClick,u=i.activeKey,d=i.openMotion,f=i.expandIcon,p=n.key||String(r),h=n.props,g=h.header,v=h.headerClass,y=h.destroyInactivePanel,_=h.collapsible,S=h.onItemClick,b=!1;a?b=u[0]===p:b=u.indexOf(p)>-1;var E=_??s,w=function(T){E!=="disabled"&&(c(T),S==null||S(T))},C={key:p,panelKey:p,header:g,headerClass:v,isActive:b,prefixCls:o,destroyInactivePanel:y??l,openMotion:d,accordion:a,children:n.props.children,onItemClick:w,expandIcon:f,collapsible:E};return typeof n.type=="string"?n:(Object.keys(C).forEach(function(x){typeof C[x]>"u"&&delete C[x]}),V.cloneElement(n,C))};function tAt(e,n,r){return Array.isArray(e)?JPt(e,r):Tl(n).map(function(i,o){return eAt(i,o,r)})}function nAt(e){var n=e;if(!Array.isArray(n)){var r=cn(n);n=r==="number"||r==="string"?[n]:[]}return n.map(function(i){return String(i)})}var rAt=V.forwardRef(function(e,n){var r=e.prefixCls,i=r===void 0?"rc-collapse":r,o=e.destroyInactivePanel,a=o===void 0?!1:o,s=e.style,l=e.accordion,c=e.className,u=e.children,d=e.collapsible,f=e.openMotion,p=e.expandIcon,h=e.activeKey,g=e.defaultActiveKey,v=e.onChange,y=e.items,_=Ce(i,c),S=dr([],{value:h,onChange:function(R){return v==null?void 0:v(R)},defaultValue:g,postState:nAt}),b=ke(S,2),E=b[0],w=b[1],C=function(R){return w(function(){if(l)return E[0]===R?[]:[R];var O=E.indexOf(R),M=O>-1;return M?E.filter(function(P){return P!==R}):[].concat(Tt(E),[R])})};qi(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var x=tAt(y,u,{prefixCls:i,accordion:l,openMotion:f,expandIcon:p,collapsible:d,destroyInactivePanel:a,onItemClick:C,activeKey:E});return V.createElement("div",ft({ref:n,className:_,style:s,role:l?"tablist":void 0},Va(e,{aria:!0,data:!0})),x)});const Rue=Object.assign(rAt,{Panel:c9e});Rue.Panel;const iAt=m.forwardRef((e,n)=>{const{getPrefixCls:r}=m.useContext(Cn),{prefixCls:i,className:o,showArrow:a=!0}=e,s=r("collapse",i),l=Ce({[`${s}-no-arrow`]:!a},o);return m.createElement(Rue.Panel,Object.assign({ref:n},e,{prefixCls:s,className:l}))}),fk=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`}}}),oAt=e=>({animationDuration:e,animationFillMode:"both"}),aAt=e=>({animationDuration:e,animationFillMode:"both"}),B9=function(e,n,r,i){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
${a}${e}-enter,
${a}${e}-appear
`]:Object.assign(Object.assign({},oAt(i)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},aAt(i)),{animationPlayState:"paused"}),[`
${a}${e}-enter${e}-enter-active,
${a}${e}-appear${e}-appear-active
`]:{animationName:n,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},sAt=new kr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),lAt=new kr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Iue=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:r}=e,i=`${r}-fade`,o=n?"&":"";return[B9(i,sAt,lAt,e.motionDurationMid,n),{[`
${o}${i}-enter,
${o}${i}-appear
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${i}-leave`]:{animationTimingFunction:"linear"}}]},cAt=new kr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),uAt=new kr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),dAt=new kr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fAt=new kr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pAt=new kr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hAt=new kr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),gAt=new kr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),mAt=new kr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),vAt={"move-up":{inKeyframes:gAt,outKeyframes:mAt},"move-down":{inKeyframes:cAt,outKeyframes:uAt},"move-left":{inKeyframes:dAt,outKeyframes:fAt},"move-right":{inKeyframes:pAt,outKeyframes:hAt}},DO=(e,n)=>{const{antCls:r}=e,i=`${r}-${n}`,{inKeyframes:o,outKeyframes:a}=vAt[n];return[B9(i,o,a,e.motionDurationMid),{[`
${i}-enter,
${i}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${i}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},j9=new kr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),U9=new kr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),H9=new kr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),z9=new kr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),yAt=new kr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),_At=new kr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),bAt=new kr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),SAt=new kr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),EAt={"slide-up":{inKeyframes:j9,outKeyframes:U9},"slide-down":{inKeyframes:H9,outKeyframes:z9},"slide-left":{inKeyframes:yAt,outKeyframes:_At},"slide-right":{inKeyframes:bAt,outKeyframes:SAt}},Pm=(e,n)=>{const{antCls:r}=e,i=`${r}-${n}`,{inKeyframes:o,outKeyframes:a}=EAt[n];return[B9(i,o,a,e.motionDurationMid),{[`
${i}-enter,
${i}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${i}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Nue=new kr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),CAt=new kr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),QEe=new kr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ZEe=new kr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),wAt=new kr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),xAt=new kr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),TAt=new kr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),OAt=new kr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),RAt=new kr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),IAt=new kr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),NAt=new kr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),MAt=new kr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),PAt={zoom:{inKeyframes:Nue,outKeyframes:CAt},"zoom-big":{inKeyframes:QEe,outKeyframes:ZEe},"zoom-big-fast":{inKeyframes:QEe,outKeyframes:ZEe},"zoom-left":{inKeyframes:TAt,outKeyframes:OAt},"zoom-right":{inKeyframes:RAt,outKeyframes:IAt},"zoom-up":{inKeyframes:wAt,outKeyframes:xAt},"zoom-down":{inKeyframes:NAt,outKeyframes:MAt}},oI=(e,n)=>{const{antCls:r}=e,i=`${r}-${n}`,{inKeyframes:o,outKeyframes:a}=PAt[n];return[B9(i,o,a,n==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
${i}-enter,
${i}-appear
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${i}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},AAt=e=>{const{componentCls:n,contentBg:r,padding:i,headerBg:o,headerPadding:a,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:f,colorText:p,colorTextHeading:h,colorTextDisabled:g,fontSizeLG:v,lineHeight:y,lineHeightLG:_,marginSM:S,paddingSM:b,paddingLG:E,paddingXS:w,motionDurationSlow:C,fontSizeIcon:x,contentPadding:T,fontHeight:R,fontHeightLG:O}=e,M=`${Ye(u)} ${d} ${f}`;return{[n]:Object.assign(Object.assign({},li(e)),{backgroundColor:o,border:M,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${n}-item`]:{borderBottom:M,"&:first-child":{[`
&,
& > ${n}-header`]:{borderRadius:`${Ye(c)} ${Ye(c)} 0 0`}},"&:last-child":{[`
&,
& > ${n}-header`]:{borderRadius:`0 0 ${Ye(c)} ${Ye(c)}`}},[`> ${n}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:h,lineHeight:y,cursor:"pointer",transition:`all ${C}, visibility 0s`},Rp(e)),{[`> ${n}-header-text`]:{flex:"auto"},[`${n}-expand-icon`]:{height:R,display:"flex",alignItems:"center",paddingInlineEnd:S},[`${n}-arrow`]:Object.assign(Object.assign({},ew()),{fontSize:x,transition:`transform ${C}`,svg:{transition:`transform ${C}`}}),[`${n}-header-text`]:{marginInlineEnd:"auto"}}),[`${n}-collapsible-header`]:{cursor:"default",[`${n}-header-text`]:{flex:"none",cursor:"pointer"}},[`${n}-collapsible-icon`]:{cursor:"unset",[`${n}-expand-icon`]:{cursor:"pointer"}}},[`${n}-content`]:{color:p,backgroundColor:r,borderTop:M,[`& > ${n}-content-box`]:{padding:T},"&-hidden":{display:"none"}},"&-small":{[`> ${n}-item`]:{[`> ${n}-header`]:{padding:s,paddingInlineStart:w,[`> ${n}-expand-icon`]:{marginInlineStart:e.calc(b).sub(w).equal()}},[`> ${n}-content > ${n}-content-box`]:{padding:b}}},"&-large":{[`> ${n}-item`]:{fontSize:v,lineHeight:_,[`> ${n}-header`]:{padding:l,paddingInlineStart:i,[`> ${n}-expand-icon`]:{height:O,marginInlineStart:e.calc(E).sub(i).equal()}},[`> ${n}-content > ${n}-content-box`]:{padding:E}}},[`${n}-item:last-child`]:{borderBottom:0,[`> ${n}-content`]:{borderRadius:`0 0 ${Ye(c)} ${Ye(c)}`}},[`& ${n}-item-disabled > ${n}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${n}-icon-position-end`]:{[`& > ${n}-item`]:{[`> ${n}-header`]:{[`${n}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:S}}}}})}},DAt=e=>{const{componentCls:n}=e,r=`> ${n}-item > ${n}-header ${n}-arrow`;return{[`${n}-rtl`]:{[r]:{transform:"rotate(180deg)"}}}},kAt=e=>{const{componentCls:n,headerBg:r,paddingXXS:i,colorBorder:o}=e;return{[`${n}-borderless`]:{backgroundColor:r,border:0,[`> ${n}-item`]:{borderBottom:`1px solid ${o}`},[`
> ${n}-item:last-child,
> ${n}-item:last-child ${n}-header
`]:{borderRadius:0},[`> ${n}-item:last-child`]:{borderBottom:0},[`> ${n}-item > ${n}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${n}-item > ${n}-content > ${n}-content-box`]:{paddingTop:i}}}},LAt=e=>{const{componentCls:n,paddingSM:r}=e;return{[`${n}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${n}-item`]:{borderBottom:0,[`> ${n}-content`]:{backgroundColor:"transparent",border:0,[`> ${n}-content-box`]:{paddingBlock:r}}}}}},$At=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),FAt=Yr("Collapse",e=>{const n=wr(e,{collapseHeaderPaddingSM:`${Ye(e.paddingXS)} ${Ye(e.paddingSM)}`,collapseHeaderPaddingLG:`${Ye(e.padding)} ${Ye(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[AAt(n),kAt(n),LAt(n),DAt(n),fk(n)]},$At),BAt=m.forwardRef((e,n)=>{const{getPrefixCls:r,direction:i,collapse:o}=m.useContext(Cn),{prefixCls:a,className:s,rootClassName:l,style:c,bordered:u=!0,ghost:d,size:f,expandIconPosition:p="start",children:h,expandIcon:g}=e,v=Xs(M=>{var P;return(P=f??M)!==null&&P!==void 0?P:"middle"}),y=r("collapse",a),_=r(),[S,b,E]=FAt(y),w=m.useMemo(()=>p==="left"?"start":p==="right"?"end":p,[p]),C=g??(o==null?void 0:o.expandIcon),x=m.useCallback(function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const P=typeof C=="function"?C(M):m.createElement(w0,{rotate:M.isActive?i==="rtl"?-90:90:void 0,"aria-label":M.isActive?"expanded":"collapsed"});return Ys(P,()=>{var k;return{className:Ce((k=P==null?void 0:P.props)===null||k===void 0?void 0:k.className,`${y}-arrow`)}})},[C,y]),T=Ce(`${y}-icon-position-${w}`,{[`${y}-borderless`]:!u,[`${y}-rtl`]:i==="rtl",[`${y}-ghost`]:!!d,[`${y}-${v}`]:v!=="middle"},o==null?void 0:o.className,s,l,b,E),R=Object.assign(Object.assign({},hA(_)),{motionAppear:!1,leavedClassName:`${y}-content-hidden`}),O=m.useMemo(()=>h?Tl(h).map((M,P)=>{var k,$;const U=M.props;if(U!=null&&U.disabled){const z=(k=M.key)!==null&&k!==void 0?k:String(P),D=Object.assign(Object.assign({},Wr(M.props,["disabled"])),{key:z,collapsible:($=U.collapsible)!==null&&$!==void 0?$:"disabled"});return Ys(M,D)}return M}):null,[h]);return S(m.createElement(Rue,Object.assign({ref:n,openMotion:R},Wr(e,["rootClassName"]),{expandIcon:x,prefixCls:y,className:T,style:Object.assign(Object.assign({},o==null?void 0:o.style),c)}),O))}),u9e=Object.assign(BAt,{Panel:iAt}),Gc=e=>e instanceof lf?e:new lf(e),c6=e=>Math.round(Number(e||0)),Mue=e=>c6(e.toHsb().a*100),u6=(e,n)=>{const r=e.toRgb();if(!r.r&&!r.g&&!r.b){const i=e.toHsb();return i.a=1,Gc(i)}return r.a=1,Gc(r)},d9e=(e,n)=>{const r=[{percent:0,color:e[0].color}].concat(Tt(e),[{percent:100,color:e[e.length-1].color}]);for(let i=0;i<r.length-1;i+=1){const o=r[i].percent,a=r[i+1].percent,s=r[i].color,l=r[i+1].color;if(o<=n&&n<=a){const c=a-o;if(c===0)return s;const u=(n-o)/c*100,d=new tg(s),f=new tg(l);return d.mix(f,u).toRgbString()}}return""},WY=e=>e.map(n=>(n.colors=n.colors.map(Gc),n)),f9e=(e,n)=>{const{r,g:i,b:o,a}=e.toRgb(),s=new tg(e.toRgbString()).onBackground(n).toHsv();return a<=.5?s.v>.5:r*.299+i*.587+o*.114>192},JEe=(e,n)=>{var r;return`panel-${(r=e.key)!==null&&r!==void 0?r:n}`},jAt=e=>{let{prefixCls:n,presets:r,value:i,onChange:o}=e;const[a]=Mu("ColorPicker"),[,s]=Nl(),[l]=dr(WY(r),{value:WY(r),postState:WY}),c=`${n}-presets`,u=m.useMemo(()=>l.reduce((p,h,g)=>{const{defaultOpen:v=!0}=h;return v&&p.push(JEe(h,g)),p},[]),[l]),d=p=>{o==null||o(p)},f=l.map((p,h)=>{var g;return{key:JEe(p,h),label:V.createElement("div",{className:`${c}-label`},p==null?void 0:p.label),children:V.createElement("div",{className:`${c}-items`},Array.isArray(p==null?void 0:p.colors)&&((g=p.colors)===null||g===void 0?void 0:g.length)>0?p.colors.map((v,y)=>V.createElement(Oue,{key:`preset-${y}-${v.toHexString()}`,color:Gc(v).toRgbString(),prefixCls:n,className:Ce(`${c}-color`,{[`${c}-color-checked`]:v.toHexString()===(i==null?void 0:i.toHexString()),[`${c}-color-bright`]:f9e(v,s.colorBgElevated)}),onClick:()=>d(v)})):V.createElement("span",{className:`${c}-empty`},a.presetEmpty))}});return V.createElement("div",{className:c},V.createElement(u9e,{defaultActiveKey:u,ghost:!0,items:f}))},p9e=e=>{const{paddingInline:n,onlyIconSize:r}=e;return wr(e,{buttonPaddingHorizontal:n,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},h9e=e=>{var n,r,i,o,a,s;const l=(n=e.contentFontSize)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,u=(i=e.contentFontSizeLG)!==null&&i!==void 0?i:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:s6(l),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:s6(c),p=(s=e.contentLineHeightLG)!==null&&s!==void 0?s:s6(u),h=f9e(new lf(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:h,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*p)/2-e.lineWidth,0)}},UAt=e=>{const{componentCls:n,iconCls:r,fontWeight:i,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:s,marginXS:l,calc:c}=e;return{[n]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:i,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Ye(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${n}-icon > svg`]:ew(),"> a":{color:"currentColor"},"&:not(:disabled)":Rp(e),[`&${n}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${n}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${n}-icon-only`]:{paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"}},[`&${n}-loading`]:{opacity:o,cursor:"default"},[`${n}-loading-icon`]:{transition:["width","opacity","margin"].map(u=>`${u} ${a} ${s}`).join(",")},[`&:not(${n}-icon-end)`]:{[`${n}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${n}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(l).mul(-1).equal()}}}}}},g9e=(e,n,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":n,"&:active":r}}),HAt=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),zAt=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),VAt=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Pue=(e,n,r,i,o,a,s,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:n,borderColor:i||void 0,boxShadow:"none"},g9e(e,Object.assign({background:n},s),Object.assign({background:n},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),GAt=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},VAt(e))}),WAt=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),V9=(e,n,r,i)=>{const a=i&&["link","text"].includes(i)?WAt:GAt;return Object.assign(Object.assign({},a(e)),g9e(e.componentCls,n,r))},G9=(e,n,r,i,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:n,background:r},V9(e,i,o))}),W9=(e,n,r,i,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:n,background:r},V9(e,i,o))}),Y9=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),q9=(e,n,r,i)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:n},V9(e,r,i))}),x0=(e,n,r,i,o)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:n,boxShadow:"none"},V9(e,i,o,r))}),YAt=e=>{const{componentCls:n}=e;return oC.reduce((r,i)=>{const o=e[`${i}6`],a=e[`${i}1`],s=e[`${i}5`],l=e[`${i}2`],c=e[`${i}3`],u=e[`${i}7`],d=`0 ${Ye(e.controlOutlineWidth)} 0 ${e[`${i}1`]}`;return Object.assign(Object.assign({},r),{[`&${n}-color-${i}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:d},G9(e,e.colorTextLightSolid,o,{background:s},{background:u})),W9(e,o,e.colorBgContainer,{color:s,borderColor:s,background:e.colorBgContainer},{color:u,borderColor:u,background:e.colorBgContainer})),Y9(e)),q9(e,a,{background:l},{background:c})),x0(e,o,"link",{color:s},{color:u})),x0(e,o,"text",{color:s,background:a},{color:u,background:c}))})},{})},qAt=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},G9(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Y9(e)),q9(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),x0(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Pue(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),KAt=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},W9(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Y9(e)),q9(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),x0(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Pue(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),XAt=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},G9(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),W9(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Y9(e)),q9(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),x0(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),x0(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Pue(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),QAt=e=>{const{componentCls:n}=e;return Object.assign({[`${n}-color-default`]:qAt(e),[`${n}-color-primary`]:KAt(e),[`${n}-color-dangerous`]:XAt(e)},YAt(e))},ZAt=e=>Object.assign(Object.assign(Object.assign(Object.assign({},W9(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),x0(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),G9(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),x0(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Aue=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,controlHeight:i,fontSize:o,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c,buttonIconOnlyFontSize:u}=e;return[{[n]:{fontSize:o,height:i,padding:`${Ye(c)} ${Ye(s)}`,borderRadius:a,[`&${r}-icon-only`]:{width:i,[l]:{fontSize:u}}}},{[`${r}${r}-circle${n}`]:HAt(e)},{[`${r}${r}-round${n}`]:zAt(e)}]},JAt=e=>{const n=wr(e,{fontSize:e.contentFontSize});return Aue(n,e.componentCls)},eDt=e=>{const n=wr(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Aue(n,`${e.componentCls}-sm`)},tDt=e=>{const n=wr(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Aue(n,`${e.componentCls}-lg`)},nDt=e=>{const{componentCls:n}=e;return{[n]:{[`&${n}-block`]:{width:"100%"}}}},rDt=Yr("Button",e=>{const n=p9e(e);return[UAt(n),JAt(n),eDt(n),tDt(n),nDt(n),QAt(n),ZAt(n),DPt(n)]},h9e,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function iDt(e,n,r){const{focusElCls:i,focus:o,borderElCls:a}=r,s=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${n}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},i?{[`&${i}`]:{zIndex:2}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function oDt(e,n,r){const{borderElCls:i}=r,o=i?`> ${i}`:"";return{[`&-item:not(${n}-first-item):not(${n}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${n}-last-item)${n}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${n}-first-item)${n}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function nw(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,i=`${r}-compact`;return{[i]:Object.assign(Object.assign({},iDt(e,i,n)),oDt(r,i,n))}}function aDt(e,n){return{[`&-item:not(${n}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function sDt(e,n){return{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function lDt(e){const n=`${e.componentCls}-compact-vertical`;return{[n]:Object.assign(Object.assign({},aDt(e,n)),sDt(e.componentCls,n))}}const cDt=e=>{const{componentCls:n,colorPrimaryHover:r,lineWidth:i,calc:o}=e,a=o(i).mul(-1).equal(),s=l=>{const c=`${n}-compact${l?"-vertical":""}-item${n}-primary:not([disabled])`;return{[`${c} + ${c}::before`]:{position:"absolute",top:l?a:0,insetInlineStart:l?0:a,backgroundColor:r,content:'""',width:l?"100%":i,height:l?i:"100%"}}};return Object.assign(Object.assign({},s()),s(!0))},uDt=bue(["Button","compact"],e=>{const n=p9e(e);return[nw(n),lDt(n),cDt(n)]},h9e);var dDt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function fDt(e){if(typeof e=="object"&&e){let n=e==null?void 0:e.delay;return n=!Number.isNaN(n)&&typeof n=="number"?n:0,{loading:n<=0,delay:n}}return{loading:!!e,delay:0}}const pDt={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},hDt=V.forwardRef((e,n)=>{var r,i,o,a;const{loading:s=!1,prefixCls:l,color:c,variant:u,type:d,danger:f=!1,shape:p="default",size:h,styles:g,disabled:v,className:y,rootClassName:_,children:S,icon:b,iconPosition:E="start",ghost:w=!1,block:C=!1,htmlType:x="button",classNames:T,style:R={},autoInsertSpace:O,autoFocus:M}=e,P=dDt(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),k=d||"default",[$,U]=m.useMemo(()=>{if(c&&u)return[c,u];const $e=pDt[k]||[];return f?["danger",$e[1]]:$e},[d,c,u,f]),D=$==="danger"?"dangerous":$,{getPrefixCls:B,direction:Y,button:q}=m.useContext(Cn),K=(r=O??(q==null?void 0:q.autoInsertSpace))!==null&&r!==void 0?r:!0,H=B("btn",l),[G,Q,le]=rDt(H),Z=m.useContext(xs),j=v??Z,F=m.useContext(t9e),te=m.useMemo(()=>fDt(s),[s]),[oe,de]=m.useState(te.loading),[pe,me]=m.useState(!1),ve=m.useRef(null),he=yg(n,ve),be=m.Children.count(S)===1&&!b&&!HY(U),we=m.useRef(!0);V.useEffect(()=>(we.current=!1,()=>{we.current=!0}),[]),m.useEffect(()=>{let $e=null;te.delay>0?$e=setTimeout(()=>{$e=null,de(!0)},te.delay):de(te.loading);function ge(){$e&&(clearTimeout($e),$e=null)}return ge},[te]),m.useEffect(()=>{if(!ve.current||!K)return;const $e=ve.current.textContent||"";be&&zre($e)?pe||me(!0):pe&&me(!1)}),m.useEffect(()=>{M&&ve.current&&ve.current.focus()},[]);const De=V.useCallback($e=>{var ge;if(oe||j){$e.preventDefault();return}(ge=e.onClick)===null||ge===void 0||ge.call(e,$e)},[e.onClick,oe,j]),{compactSize:Ae,compactItemClassnames:Ee}=_g(H,Y),Re={large:"lg",small:"sm",middle:void 0},Te=Xs($e=>{var ge,Ve;return(Ve=(ge=h??Ae)!==null&&ge!==void 0?ge:F)!==null&&Ve!==void 0?Ve:$e}),Oe=Te&&(i=Re[Te])!==null&&i!==void 0?i:"",Ne=oe?"loading":b,je=Wr(P,["navigate"]),ne=Ce(H,Q,le,{[`${H}-${p}`]:p!=="default"&&p,[`${H}-${k}`]:k,[`${H}-dangerous`]:f,[`${H}-color-${D}`]:D,[`${H}-variant-${U}`]:U,[`${H}-${Oe}`]:Oe,[`${H}-icon-only`]:!S&&S!==0&&!!Ne,[`${H}-background-ghost`]:w&&!HY(U),[`${H}-loading`]:oe,[`${H}-two-chinese-chars`]:pe&&K&&!oe,[`${H}-block`]:C,[`${H}-rtl`]:Y==="rtl",[`${H}-icon-end`]:E==="end"},Ee,y,_,q==null?void 0:q.className),J=Object.assign(Object.assign({},q==null?void 0:q.style),R),ae=Ce(T==null?void 0:T.icon,(o=q==null?void 0:q.classNames)===null||o===void 0?void 0:o.icon),Se=Object.assign(Object.assign({},(g==null?void 0:g.icon)||{}),((a=q==null?void 0:q.styles)===null||a===void 0?void 0:a.icon)||{}),xe=b&&!oe?V.createElement(Vre,{prefixCls:H,className:ae,style:Se},b):typeof s=="object"&&s.icon?V.createElement(Vre,{prefixCls:H,className:ae,style:Se},s.icon):V.createElement(APt,{existIcon:!!b,prefixCls:H,loading:oe,mount:we.current}),ue=S||S===0?PPt(S,be&&K):null;if(je.href!==void 0)return G(V.createElement("a",Object.assign({},je,{className:Ce(ne,{[`${H}-disabled`]:j}),href:j?void 0:je.href,style:J,onClick:De,ref:he,tabIndex:j?-1:0}),xe,ue));let Me=V.createElement("button",Object.assign({},P,{type:x,className:ne,style:J,onClick:De,disabled:j,ref:he}),xe,ue,Ee&&V.createElement(uDt,{prefixCls:H}));return HY(U)||(Me=V.createElement($9,{component:"Button",disabled:oe},Me)),G(Me)}),qn=hDt;qn.Group=NPt;qn.__ANT_BUTTON=!0;function YY(e){return!!(e!=null&&e.then)}const Due=e=>{const{type:n,children:r,prefixCls:i,buttonProps:o,close:a,autoFocus:s,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=m.useRef(!1),p=m.useRef(null),[h,g]=iC(!1),v=function(){a==null||a.apply(void 0,arguments)};m.useEffect(()=>{let S=null;return s&&(S=setTimeout(()=>{var b;(b=p.current)===null||b===void 0||b.focus({preventScroll:!0})})),()=>{S&&clearTimeout(S)}},[]);const y=S=>{YY(S)&&(g(!0),S.then(function(){g(!1,!0),v.apply(void 0,arguments),f.current=!1},b=>{if(g(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(b)}))},_=S=>{if(f.current)return;if(f.current=!0,!d){v();return}let b;if(l){if(b=d(S),u&&!YY(b)){f.current=!1,v(S);return}}else if(d.length)b=d(a),f.current=!1;else if(b=d(),!YY(b)){v();return}y(b)};return m.createElement(qn,Object.assign({},Tue(n),{onClick:_,loading:h,prefixCls:i},o,{ref:p}),r)},pk=V.createContext({}),{Provider:m9e}=pk,e1e=()=>{const{autoFocusButton:e,cancelButtonProps:n,cancelTextLocale:r,isSilent:i,mergedOkCancel:o,rootPrefixCls:a,close:s,onCancel:l,onConfirm:c}=m.useContext(pk);return o?V.createElement(Due,{isSilent:i,actionFn:l,close:function(){s==null||s.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:n,prefixCls:`${a}-btn`},r):null},t1e=()=>{const{autoFocusButton:e,close:n,isSilent:r,okButtonProps:i,rootPrefixCls:o,okTextLocale:a,okType:s,onConfirm:l,onOk:c}=m.useContext(pk);return V.createElement(Due,{isSilent:r,type:s||"primary",actionFn:c,close:function(){n==null||n.apply(void 0,arguments),l==null||l(!0)},autoFocus:e==="ok",buttonProps:i,prefixCls:`${o}-btn`},a)};var v9e=m.createContext(null),n1e=[];function gDt(e,n){var r=m.useState(function(){if(!bf())return null;var g=document.createElement("div");return g}),i=ke(r,1),o=i[0],a=m.useRef(!1),s=m.useContext(v9e),l=m.useState(n1e),c=ke(l,2),u=c[0],d=c[1],f=s||(a.current?void 0:function(g){d(function(v){var y=[g].concat(Tt(v));return y})});function p(){o.parentElement||document.body.appendChild(o),a.current=!0}function h(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),a.current=!1}return ti(function(){return e?s?s(p):p():h(),h},[e]),ti(function(){u.length&&(u.forEach(function(g){return g()}),d(n1e))},[u]),[o,f]}function mDt(e){var n="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=n;var i=r.style;i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll";var o,a;if(e){var s=getComputedStyle(e);i.scrollbarColor=s.scrollbarColor,i.scrollbarWidth=s.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),u=parseInt(l.height,10);try{var d=c?"width: ".concat(l.width,";"):"",f=u?"height: ".concat(l.height,";"):"";P9(`
#`.concat(n,`::-webkit-scrollbar {
`).concat(d,`
`).concat(f,`
}`),n)}catch(g){console.error(g),o=c,a=u}}document.body.appendChild(r);var p=e&&o&&!isNaN(o)?o:r.offsetWidth-r.clientWidth,h=e&&a&&!isNaN(a)?a:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Pre(n),{width:p,height:h}}function vDt(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:mDt(e)}function yDt(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var _Dt="rc-util-locker-".concat(Date.now()),r1e=0;function bDt(e){var n=!!e,r=m.useState(function(){return r1e+=1,"".concat(_Dt,"_").concat(r1e)}),i=ke(r,1),o=i[0];ti(function(){if(n){var a=vDt(document.body).width,s=yDt();P9(`
html body {
overflow-y: hidden;
`.concat(s?"width: calc(100% - ".concat(a,"px);"):"",`
}`),o)}else Pre(o);return function(){Pre(o)}},[n,o])}var SDt=!1;function EDt(e){return SDt}var i1e=function(n){return n===!1?!1:!bf()||!n?null:typeof n=="string"?document.querySelector(n):typeof n=="function"?n():n},hk=m.forwardRef(function(e,n){var r=e.open,i=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,c=m.useState(r),u=ke(c,2),d=u[0],f=u[1],p=d||r;m.useEffect(function(){(s||r)&&f(r)},[r,s]);var h=m.useState(function(){return i1e(o)}),g=ke(h,2),v=g[0],y=g[1];m.useEffect(function(){var M=i1e(o);y(M??null)});var _=gDt(p&&!v),S=ke(_,2),b=S[0],E=S[1],w=v??b;bDt(i&&r&&bf()&&(w===b||w===document.body));var C=null;if(l&&Xy(l)&&n){var x=l;C=x.ref}var T=yg(C,n);if(!p||!bf()||v===void 0)return null;var R=w===!1||EDt(),O=l;return n&&(O=m.cloneElement(l,{ref:T})),m.createElement(v9e.Provider,{value:E},R?O:Us.createPortal(O,w))}),y9e=m.createContext({});function CDt(){var e=ee({},zD);return e.useId}var o1e=0,a1e=CDt();const K9=a1e?function(n){var r=a1e();return n||r}:function(n){var r=m.useState("ssr-id"),i=ke(r,2),o=i[0],a=i[1];return m.useEffect(function(){var s=o1e;o1e+=1,a("rc_unique_".concat(s))},[]),n||o};function s1e(e,n,r){var i=n;return!i&&r&&(i="".concat(e,"-").concat(r)),i}function l1e(e,n){var r=e["page".concat(n?"Y":"X","Offset")],i="scroll".concat(n?"Top":"Left");if(typeof r!="number"){var o=e.document;r=o.documentElement[i],typeof r!="number"&&(r=o.body[i])}return r}function wDt(e){var n=e.getBoundingClientRect(),r={left:n.left,top:n.top},i=e.ownerDocument,o=i.defaultView||i.parentWindow;return r.left+=l1e(o),r.top+=l1e(o,!0),r}const xDt=m.memo(function(e){var n=e.children;return n},function(e,n){var r=n.shouldUpdate;return!r});var TDt={width:0,height:0,overflow:"hidden",outline:"none"},ODt={outline:"none"},_9e=V.forwardRef(function(e,n){var r=e.prefixCls,i=e.className,o=e.style,a=e.title,s=e.ariaId,l=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,p=e.bodyStyle,h=e.bodyProps,g=e.modalRender,v=e.onMouseDown,y=e.onMouseUp,_=e.holderRef,S=e.visible,b=e.forceRender,E=e.width,w=e.height,C=e.classNames,x=e.styles,T=V.useContext(y9e),R=T.panel,O=yg(_,R),M=m.useRef(),P=m.useRef();V.useImperativeHandle(n,function(){return{focus:function(){var H;(H=M.current)===null||H===void 0||H.focus({preventScroll:!0})},changeActive:function(H){var G=document,Q=G.activeElement;H&&Q===P.current?M.current.focus({preventScroll:!0}):!H&&Q===M.current&&P.current.focus({preventScroll:!0})}}});var k={};E!==void 0&&(k.width=E),w!==void 0&&(k.height=w);var $=l?V.createElement("div",{className:Ce("".concat(r,"-footer"),C==null?void 0:C.footer),style:ee({},x==null?void 0:x.footer)},l):null,U=a?V.createElement("div",{className:Ce("".concat(r,"-header"),C==null?void 0:C.header),style:ee({},x==null?void 0:x.header)},V.createElement("div",{className:"".concat(r,"-title"),id:s},a)):null,z=m.useMemo(function(){return cn(c)==="object"&&c!==null?c:c?{closeIcon:u??V.createElement("span",{className:"".concat(r,"-close-x")})}:{}},[c,u,r]),D=Va(z,!0),B=cn(c)==="object"&&c.disabled,Y=c?V.createElement("button",ft({type:"button",onClick:d,"aria-label":"Close"},D,{className:"".concat(r,"-close"),disabled:B}),z.closeIcon):null,q=V.createElement("div",{className:Ce("".concat(r,"-content"),C==null?void 0:C.content),style:x==null?void 0:x.content},Y,U,V.createElement("div",ft({className:Ce("".concat(r,"-body"),C==null?void 0:C.body),style:ee(ee({},p),x==null?void 0:x.body)},h),f),$);return V.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?s:null,"aria-modal":"true",ref:O,style:ee(ee({},o),k),className:Ce(r,i),onMouseDown:v,onMouseUp:y},V.createElement("div",{ref:M,tabIndex:0,style:ODt},V.createElement(xDt,{shouldUpdate:S||b},g?g(q):q)),V.createElement("div",{tabIndex:0,ref:P,style:TDt}))}),b9e=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.title,o=e.style,a=e.className,s=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,h=m.useRef(),g=m.useState(),v=ke(g,2),y=v[0],_=v[1],S={};y&&(S.transformOrigin=y);function b(){var E=wDt(h.current);_(p&&(p.x||p.y)?"".concat(p.x-E.left,"px ").concat(p.y-E.top,"px"):"")}return m.createElement(Ws,{visible:s,onVisibleChanged:f,onAppearPrepare:b,onEnterPrepare:b,forceRender:l,motionName:u,removeOnLeave:c,ref:h},function(E,w){var C=E.className,x=E.style;return m.createElement(_9e,ft({},e,{ref:n,title:i,ariaId:d,prefixCls:r,holderRef:w,style:ee(ee(ee({},x),o),S),className:Ce(a,C)}))})});b9e.displayName="Content";var RDt=function(n){var r=n.prefixCls,i=n.style,o=n.visible,a=n.maskProps,s=n.motionName,l=n.className;return m.createElement(Ws,{key:"mask",visible:o,motionName:s,leavedClassName:"".concat(r,"-mask-hidden")},function(c,u){var d=c.className,f=c.style;return m.createElement("div",ft({ref:u,style:ee(ee({},f),i),className:Ce("".concat(r,"-mask"),d,l)},a))})},IDt=function(n){var r=n.prefixCls,i=r===void 0?"rc-dialog":r,o=n.zIndex,a=n.visible,s=a===void 0?!1:a,l=n.keyboard,c=l===void 0?!0:l,u=n.focusTriggerAfterClose,d=u===void 0?!0:u,f=n.wrapStyle,p=n.wrapClassName,h=n.wrapProps,g=n.onClose,v=n.afterOpenChange,y=n.afterClose,_=n.transitionName,S=n.animation,b=n.closable,E=b===void 0?!0:b,w=n.mask,C=w===void 0?!0:w,x=n.maskTransitionName,T=n.maskAnimation,R=n.maskClosable,O=R===void 0?!0:R,M=n.maskStyle,P=n.maskProps,k=n.rootClassName,$=n.classNames,U=n.styles,z=m.useRef(),D=m.useRef(),B=m.useRef(),Y=m.useState(s),q=ke(Y,2),K=q[0],H=q[1],G=K9();function Q(){Nre(D.current,document.activeElement)||(z.current=document.activeElement)}function le(){if(!Nre(D.current,document.activeElement)){var he;(he=B.current)===null||he===void 0||he.focus()}}function Z(he){if(he)le();else{if(H(!1),C&&z.current&&d){try{z.current.focus({preventScroll:!0})}catch{}z.current=null}K&&(y==null||y())}v==null||v(he)}function j(he){g==null||g(he)}var F=m.useRef(!1),te=m.useRef(),oe=function(){clearTimeout(te.current),F.current=!0},de=function(){te.current=setTimeout(function(){F.current=!1})},pe=null;O&&(pe=function(be){F.current?F.current=!1:D.current===be.target&&j(be)});function me(he){if(c&&he.keyCode===At.ESC){he.stopPropagation(),j(he);return}s&&he.keyCode===At.TAB&&B.current.changeActive(!he.shiftKey)}m.useEffect(function(){s&&(H(!0),Q())},[s]),m.useEffect(function(){return function(){clearTimeout(te.current)}},[]);var ve=ee(ee(ee({zIndex:o},f),U==null?void 0:U.wrapper),{},{display:K?null:"none"});return m.createElement("div",ft({className:Ce("".concat(i,"-root"),k)},Va(n,{data:!0})),m.createElement(RDt,{prefixCls:i,visible:C&&s,motionName:s1e(i,x,T),style:ee(ee({zIndex:o},M),U==null?void 0:U.mask),maskProps:P,className:$==null?void 0:$.mask}),m.createElement("div",ft({tabIndex:-1,onKeyDown:me,className:Ce("".concat(i,"-wrap"),p,$==null?void 0:$.wrapper),ref:D,onClick:pe,style:ve},h),m.createElement(b9e,ft({},n,{onMouseDown:oe,onMouseUp:de,ref:B,closable:E,ariaId:G,prefixCls:i,visible:s&&K,onClose:j,onVisibleChanged:Z,motionName:s1e(i,_,S)}))))},kue=function(n){var r=n.visible,i=n.getContainer,o=n.forceRender,a=n.destroyOnClose,s=a===void 0?!1:a,l=n.afterClose,c=n.panelRef,u=m.useState(r),d=ke(u,2),f=d[0],p=d[1],h=m.useMemo(function(){return{panel:c}},[c]);return m.useEffect(function(){r&&p(!0)},[r]),!o&&s&&!f?null:m.createElement(y9e.Provider,{value:h},m.createElement(hk,{open:r||o||f,autoDestroy:!1,getContainer:i,autoLock:r||f},m.createElement(IDt,ft({},n,{destroyOnClose:s,afterClose:function(){l==null||l(),p(!1)}}))))};kue.displayName="Dialog";var r1="RC_FORM_INTERNAL_HOOKS",Vo=function(){qi(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},T0=m.createContext({getFieldValue:Vo,getFieldsValue:Vo,getFieldError:Vo,getFieldWarning:Vo,getFieldsError:Vo,isFieldsTouched:Vo,isFieldTouched:Vo,isFieldValidating:Vo,isFieldsValidating:Vo,resetFields:Vo,setFields:Vo,setFieldValue:Vo,setFieldsValue:Vo,validateFields:Vo,submit:Vo,getInternalHooks:function(){return Vo(),{dispatch:Vo,initEntityValue:Vo,registerField:Vo,useSubscribe:Vo,setInitialValues:Vo,destroyForm:Vo,setCallbacks:Vo,registerWatch:Vo,getFields:Vo,setValidateMessages:Vo,setPreserve:Vo,getInitialValue:Vo}}}),gA=m.createContext(null);function Gre(e){return e==null?[]:Array.isArray(e)?e:[e]}function NDt(e){return e&&!!e._init}function Wre(){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 n=JSON.parse(JSON.stringify(this));return n.clone=this.clone,n}}}var Yre=Wre();function MDt(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function PDt(e,n,r){if(w9())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,n);var o=new(e.bind.apply(e,i));return r&&OO(o,r.prototype),o}function qre(e){var n=typeof Map=="function"?new Map:void 0;return qre=function(i){if(i===null||!MDt(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(n!==void 0){if(n.has(i))return n.get(i);n.set(i,o)}function o(){return PDt(i,arguments,J1(this).constructor)}return o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),OO(o,i)},qre(e)}var ADt=/%[sdj%]/g,DDt=function(){};function Kre(e){if(!e||!e.length)return null;var n={};return e.forEach(function(r){var i=r.field;n[i]=n[i]||[],n[i].push(r)}),n}function cf(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=0,a=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var s=e.replace(ADt,function(l){if(l==="%%")return"%";if(o>=a)return l;switch(l){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return l}});return s}return e}function kDt(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ol(e,n){return!!(e==null||n==="array"&&Array.isArray(e)&&!e.length||kDt(n)&&typeof e=="string"&&!e)}function LDt(e,n,r){var i=[],o=0,a=e.length;function s(l){i.push.apply(i,Tt(l||[])),o++,o===a&&r(i)}e.forEach(function(l){n(l,s)})}function c1e(e,n,r){var i=0,o=e.length;function a(s){if(s&&s.length){r(s);return}var l=i;i=i+1,l<o?n(e[l],a):r([])}a([])}function $Dt(e){var n=[];return Object.keys(e).forEach(function(r){n.push.apply(n,Tt(e[r]||[]))}),n}var u1e=function(e){Kc(r,e);var n=Nu(r);function r(i,o){var a;return Ki(this,r),a=n.call(this,"Async Validation Error"),fe(Tn(a),"errors",void 0),fe(Tn(a),"fields",void 0),a.errors=i,a.fields=o,a}return Xi(r)}(qre(Error));function FDt(e,n,r,i,o){if(n.first){var a=new Promise(function(p,h){var g=function(_){return i(_),_.length?h(new u1e(_,Kre(_))):p(o)},v=$Dt(e);c1e(v,r,g)});return a.catch(function(p){return p}),a}var s=n.firstFields===!0?Object.keys(e):n.firstFields||[],l=Object.keys(e),c=l.length,u=0,d=[],f=new Promise(function(p,h){var g=function(y){if(d.push.apply(d,y),u++,u===c)return i(d),d.length?h(new u1e(d,Kre(d))):p(o)};l.length||(i(d),p(o)),l.forEach(function(v){var y=e[v];s.indexOf(v)!==-1?c1e(y,r,g):LDt(y,r,g)})});return f.catch(function(p){return p}),f}function BDt(e){return!!(e&&e.message!==void 0)}function jDt(e,n){for(var r=e,i=0;i<n.length;i++){if(r==null)return r;r=r[n[i]]}return r}function d1e(e,n){return function(r){var i;return e.fullFields?i=jDt(n,e.fullFields):i=n[r.field||e.fullField],BDt(r)?(r.field=r.field||e.fullField,r.fieldValue=i,r):{message:typeof r=="function"?r():r,fieldValue:i,field:r.field||e.fullField}}}function f1e(e,n){if(n){for(var r in n)if(n.hasOwnProperty(r)){var i=n[r];cn(i)==="object"&&cn(e[r])==="object"?e[r]=ee(ee({},e[r]),i):e[r]=i}}return e}var gx="enum",UDt=function(n,r,i,o,a){n[gx]=Array.isArray(n[gx])?n[gx]:[],n[gx].indexOf(r)===-1&&o.push(cf(a.messages[gx],n.fullField,n[gx].join(", ")))},HDt=function(n,r,i,o,a){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(r)||o.push(cf(a.messages.pattern.mismatch,n.fullField,r,n.pattern));else if(typeof n.pattern=="string"){var s=new RegExp(n.pattern);s.test(r)||o.push(cf(a.messages.pattern.mismatch,n.fullField,r,n.pattern))}}},zDt=function(n,r,i,o,a){var s=typeof n.len=="number",l=typeof n.min=="number",c=typeof n.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,f=null,p=typeof r=="number",h=typeof r=="string",g=Array.isArray(r);if(p?f="number":h?f="string":g&&(f="array"),!f)return!1;g&&(d=r.length),h&&(d=r.replace(u,"_").length),s?d!==n.len&&o.push(cf(a.messages[f].len,n.fullField,n.len)):l&&!c&&d<n.min?o.push(cf(a.messages[f].min,n.fullField,n.min)):c&&!l&&d>n.max?o.push(cf(a.messages[f].max,n.fullField,n.max)):l&&c&&(d<n.min||d>n.max)&&o.push(cf(a.messages[f].range,n.fullField,n.min,n.max))},S9e=function(n,r,i,o,a,s){n.required&&(!i.hasOwnProperty(n.field)||Ol(r,s||n.type))&&o.push(cf(a.messages.required,n.fullField))},G3;const VDt=function(){if(G3)return G3;var e="[a-fA-F\\d:]",n=function(C){return C&&C.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",i="[a-fA-F\\d]{1,4}",o=["(?:".concat(i,":){7}(?:").concat(i,"|:)"),"(?:".concat(i,":){6}(?:").concat(r,"|:").concat(i,"|:)"),"(?:".concat(i,":){5}(?::").concat(r,"|(?::").concat(i,"){1,2}|:)"),"(?:".concat(i,":){4}(?:(?::").concat(i,"){0,1}:").concat(r,"|(?::").concat(i,"){1,3}|:)"),"(?:".concat(i,":){3}(?:(?::").concat(i,"){0,2}:").concat(r,"|(?::").concat(i,"){1,4}|:)"),"(?:".concat(i,":){2}(?:(?::").concat(i,"){0,3}:").concat(r,"|(?::").concat(i,"){1,5}|:)"),"(?:".concat(i,":){1}(?:(?::").concat(i,"){0,4}:").concat(r,"|(?::").concat(i,"){1,6}|:)"),"(?::(?:(?::".concat(i,"){0,5}:").concat(r,"|(?::").concat(i,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",s="(?:".concat(o.join("|"),")").concat(a),l=new RegExp("(?:^".concat(r,"$)|(?:^").concat(s,"$)")),c=new RegExp("^".concat(r,"$")),u=new RegExp("^".concat(s,"$")),d=function(C){return C&&C.exact?l:new RegExp("(?:".concat(n(C)).concat(r).concat(n(C),")|(?:").concat(n(C)).concat(s).concat(n(C),")"),"g")};d.v4=function(w){return w&&w.exact?c:new RegExp("".concat(n(w)).concat(r).concat(n(w)),"g")},d.v6=function(w){return w&&w.exact?u:new RegExp("".concat(n(w)).concat(s).concat(n(w)),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",h=d.v4().source,g=d.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",_="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",S="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',E="(?:".concat(f,"|www\\.)").concat(p,"(?:localhost|").concat(h,"|").concat(g,"|").concat(v).concat(y).concat(_,")").concat(S).concat(b);return G3=new RegExp("(?:^".concat(E,"$)"),"i"),G3};var p1e={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},o2={integer:function(n){return o2.number(n)&&parseInt(n,10)===n},float:function(n){return o2.number(n)&&!o2.integer(n)},array:function(n){return Array.isArray(n)},regexp:function(n){if(n instanceof RegExp)return!0;try{return!!new RegExp(n)}catch{return!1}},date:function(n){return typeof n.getTime=="function"&&typeof n.getMonth=="function"&&typeof n.getYear=="function"&&!isNaN(n.getTime())},number:function(n){return isNaN(n)?!1:typeof n=="number"},object:function(n){return cn(n)==="object"&&!o2.array(n)},method:function(n){return typeof n=="function"},email:function(n){return typeof n=="string"&&n.length<=320&&!!n.match(p1e.email)},url:function(n){return typeof n=="string"&&n.length<=2048&&!!n.match(VDt())},hex:function(n){return typeof n=="string"&&!!n.match(p1e.hex)}},GDt=function(n,r,i,o,a){if(n.required&&r===void 0){S9e(n,r,i,o,a);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=n.type;s.indexOf(l)>-1?o2[l](r)||o.push(cf(a.messages.types[l],n.fullField,n.type)):l&&cn(r)!==n.type&&o.push(cf(a.messages.types[l],n.fullField,n.type))},WDt=function(n,r,i,o,a){(/^\s+$/.test(r)||r==="")&&o.push(cf(a.messages.whitespace,n.fullField))};const Wi={required:S9e,whitespace:WDt,type:GDt,range:zDt,enum:UDt,pattern:HDt};var YDt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r)&&!n.required)return i();Wi.required(n,r,o,s,a)}i(s)},qDt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(r==null&&!n.required)return i();Wi.required(n,r,o,s,a,"array"),r!=null&&(Wi.type(n,r,o,s,a),Wi.range(n,r,o,s,a))}i(s)},KDt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r)&&!n.required)return i();Wi.required(n,r,o,s,a),r!==void 0&&Wi.type(n,r,o,s,a)}i(s)},XDt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r,"date")&&!n.required)return i();if(Wi.required(n,r,o,s,a),!Ol(r,"date")){var c;r instanceof Date?c=r:c=new Date(r),Wi.type(n,c,o,s,a),c&&Wi.range(n,c.getTime(),o,s,a)}}i(s)},QDt="enum",ZDt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r)&&!n.required)return i();Wi.required(n,r,o,s,a),r!==void 0&&Wi[QDt](n,r,o,s,a)}i(s)},JDt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r)&&!n.required)return i();Wi.required(n,r,o,s,a),r!==void 0&&(Wi.type(n,r,o,s,a),Wi.range(n,r,o,s,a))}i(s)},ekt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r)&&!n.required)return i();Wi.required(n,r,o,s,a),r!==void 0&&(Wi.type(n,r,o,s,a),Wi.range(n,r,o,s,a))}i(s)},tkt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r)&&!n.required)return i();Wi.required(n,r,o,s,a),r!==void 0&&Wi.type(n,r,o,s,a)}i(s)},nkt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(r===""&&(r=void 0),Ol(r)&&!n.required)return i();Wi.required(n,r,o,s,a),r!==void 0&&(Wi.type(n,r,o,s,a),Wi.range(n,r,o,s,a))}i(s)},rkt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r)&&!n.required)return i();Wi.required(n,r,o,s,a),r!==void 0&&Wi.type(n,r,o,s,a)}i(s)},ikt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r,"string")&&!n.required)return i();Wi.required(n,r,o,s,a),Ol(r,"string")||Wi.pattern(n,r,o,s,a)}i(s)},okt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r)&&!n.required)return i();Wi.required(n,r,o,s,a),Ol(r)||Wi.type(n,r,o,s,a)}i(s)},akt=function(n,r,i,o,a){var s=[],l=Array.isArray(r)?"array":cn(r);Wi.required(n,r,o,s,a,l),i(s)},skt=function(n,r,i,o,a){var s=[],l=n.required||!n.required&&o.hasOwnProperty(n.field);if(l){if(Ol(r,"string")&&!n.required)return i();Wi.required(n,r,o,s,a,"string"),Ol(r,"string")||(Wi.type(n,r,o,s,a),Wi.range(n,r,o,s,a),Wi.pattern(n,r,o,s,a),n.whitespace===!0&&Wi.whitespace(n,r,o,s,a))}i(s)},qY=function(n,r,i,o,a){var s=n.type,l=[],c=n.required||!n.required&&o.hasOwnProperty(n.field);if(c){if(Ol(r,s)&&!n.required)return i();Wi.required(n,r,o,l,a,s),Ol(r,s)||Wi.type(n,r,o,l,a)}i(l)};const Q2={string:skt,method:tkt,number:nkt,boolean:KDt,regexp:okt,integer:ekt,float:JDt,array:qDt,object:rkt,enum:ZDt,pattern:ikt,date:XDt,url:qY,hex:qY,email:qY,required:akt,any:YDt};var gk=function(){function e(n){Ki(this,e),fe(this,"rules",null),fe(this,"_messages",Yre),this.define(n)}return Xi(e,[{key:"define",value:function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(cn(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];i.rules[o]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(r){return r&&(this._messages=f1e(Wre(),r)),this._messages}},{key:"validate",value:function(r){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},s=r,l=o,c=a;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function u(g){var v=[],y={};function _(b){if(Array.isArray(b)){var E;v=(E=v).concat.apply(E,Tt(b))}else v.push(b)}for(var S=0;S<g.length;S++)_(g[S]);v.length?(y=Kre(v),c(v,y)):c(null,s)}if(l.messages){var d=this.messages();d===Yre&&(d=Wre()),f1e(d,l.messages),l.messages=d}else l.messages=this.messages();var f={},p=l.keys||Object.keys(this.rules);p.forEach(function(g){var v=i.rules[g],y=s[g];v.forEach(function(_){var S=_;typeof S.transform=="function"&&(s===r&&(s=ee({},s)),y=s[g]=S.transform(y),y!=null&&(S.type=S.type||(Array.isArray(y)?"array":cn(y)))),typeof S=="function"?S={validator:S}:S=ee({},S),S.validator=i.getValidationMethod(S),S.validator&&(S.field=g,S.fullField=S.fullField||g,S.type=i.getType(S),f[g]=f[g]||[],f[g].push({rule:S,value:y,source:s,field:g}))})});var h={};return FDt(f,l,function(g,v){var y=g.rule,_=(y.type==="object"||y.type==="array")&&(cn(y.fields)==="object"||cn(y.defaultField)==="object");_=_&&(y.required||!y.required&&g.value),y.field=g.field;function S(x,T){return ee(ee({},T),{},{fullField:"".concat(y.fullField,".").concat(x),fullFields:y.fullFields?[].concat(Tt(y.fullFields),[x]):[x]})}function b(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],T=Array.isArray(x)?x:[x];!l.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&y.message!==void 0&&(T=[].concat(y.message));var R=T.map(d1e(y,s));if(l.first&&R.length)return h[y.field]=1,v(R);if(!_)v(R);else{if(y.required&&!g.value)return y.message!==void 0?R=[].concat(y.message).map(d1e(y,s)):l.error&&(R=[l.error(y,cf(l.messages.required,y.field))]),v(R);var O={};y.defaultField&&Object.keys(g.value).map(function(k){O[k]=y.defaultField}),O=ee(ee({},O),g.rule.fields);var M={};Object.keys(O).forEach(function(k){var $=O[k],U=Array.isArray($)?$:[$];M[k]=U.map(S.bind(null,k))});var P=new e(M);P.messages(l.messages),g.rule.options&&(g.rule.options.messages=l.messages,g.rule.options.error=l.error),P.validate(g.value,g.rule.options||l,function(k){var $=[];R&&R.length&&$.push.apply($,Tt(R)),k&&k.length&&$.push.apply($,Tt(k)),v($.length?$:null)})}}var E;if(y.asyncValidator)E=y.asyncValidator(y,g.value,b,g.source,l);else if(y.validator){try{E=y.validator(y,g.value,b,g.source,l)}catch(x){var w,C;(w=(C=console).error)===null||w===void 0||w.call(C,x),l.suppressValidatorError||setTimeout(function(){throw x},0),b(x.message)}E===!0?b():E===!1?b(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):E instanceof Array?b(E):E instanceof Error&&b(E.message)}E&&E.then&&E.then(function(){return b()},function(x){return b(x)})},function(g){u(g)},s)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Q2.hasOwnProperty(r.type))throw new Error(cf("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var i=Object.keys(r),o=i.indexOf("message");return o!==-1&&i.splice(o,1),i.length===1&&i[0]==="required"?Q2.required:Q2[this.getType(r)]||void 0}}]),e}();fe(gk,"register",function(n,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Q2[n]=r});fe(gk,"warning",DDt);fe(gk,"messages",Yre);fe(gk,"validators",Q2);var Fd="'${name}' is not a valid ${type}",E9e={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:Fd,method:Fd,array:Fd,object:Fd,number:Fd,date:Fd,boolean:Fd,integer:Fd,float:Fd,regexp:Fd,email:Fd,url:Fd,hex:Fd},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}"}},h1e=gk;function lkt(e,n){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var i=r.slice(2,-1);return n[i]})}var g1e="CODE_LOGIC_ERROR";function Xre(e,n,r,i,o){return Qre.apply(this,arguments)}function Qre(){return Qre=Ss(ri().mark(function e(n,r,i,o,a){var s,l,c,u,d,f,p,h,g;return ri().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return s=ee({},i),delete s.ruleIndex,h1e.warning=function(){},s.validator&&(l=s.validator,s.validator=function(){try{return l.apply(void 0,arguments)}catch(_){return console.error(_),Promise.reject(g1e)}}),c=null,s&&s.type==="array"&&s.defaultField&&(c=s.defaultField,delete s.defaultField),u=new h1e(fe({},n,[s])),d=mT(E9e,o.validateMessages),u.messages(d),f=[],y.prev=10,y.next=13,Promise.resolve(u.validate(fe({},n,r),ee({},o)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(f=y.t0.errors.map(function(_,S){var b=_.message,E=b===g1e?d.default:b;return m.isValidElement(E)?m.cloneElement(E,{key:"error_".concat(S)}):E}));case 18:if(!(!f.length&&c)){y.next=23;break}return y.next=21,Promise.all(r.map(function(_,S){return Xre("".concat(n,".").concat(S),_,c,o,a)}));case 21:return p=y.sent,y.abrupt("return",p.reduce(function(_,S){return[].concat(Tt(_),Tt(S))},[]));case 23:return h=ee(ee({},i),{},{name:n,enum:(i.enum||[]).join(", ")},a),g=f.map(function(_){return typeof _=="string"?lkt(_,h):_}),y.abrupt("return",g);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),Qre.apply(this,arguments)}function ckt(e,n,r,i,o,a){var s=e.join("."),l=r.map(function(d,f){var p=d.validator,h=ee(ee({},d),{},{ruleIndex:f});return p&&(h.validator=function(g,v,y){var _=!1,S=function(){for(var w=arguments.length,C=new Array(w),x=0;x<w;x++)C[x]=arguments[x];Promise.resolve().then(function(){qi(!_,"Your validator function has already return a promise. `callback` will be ignored."),_||y.apply(void 0,C)})},b=p(g,v,S);_=b&&typeof b.then=="function"&&typeof b.catch=="function",qi(_,"`callback` is deprecated. Please return a promise instead."),_&&b.then(function(){y()}).catch(function(E){y(E||" ")})}),h}).sort(function(d,f){var p=d.warningOnly,h=d.ruleIndex,g=f.warningOnly,v=f.ruleIndex;return!!p==!!g?h-v:p?1:-1}),c;if(o===!0)c=new Promise(function(){var d=Ss(ri().mark(function f(p,h){var g,v,y;return ri().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:g=0;case 1:if(!(g<l.length)){S.next=12;break}return v=l[g],S.next=5,Xre(s,n,v,i,a);case 5:if(y=S.sent,!y.length){S.next=9;break}return h([{errors:y,rule:v}]),S.abrupt("return");case 9:g+=1,S.next=1;break;case 12:p([]);case 13:case"end":return S.stop()}},f)}));return function(f,p){return d.apply(this,arguments)}}());else{var u=l.map(function(d){return Xre(s,n,d,i,a).then(function(f){return{errors:f,rule:d}})});c=(o?dkt(u):ukt(u)).then(function(d){return Promise.reject(d)})}return c.catch(function(d){return d}),c}function ukt(e){return Zre.apply(this,arguments)}function Zre(){return Zre=Ss(ri().mark(function e(n){return ri().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Promise.all(n).then(function(o){var a,s=(a=[]).concat.apply(a,Tt(o));return s}));case 1:case"end":return i.stop()}},e)})),Zre.apply(this,arguments)}function dkt(e){return Jre.apply(this,arguments)}function Jre(){return Jre=Ss(ri().mark(function e(n){var r;return ri().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return r=0,o.abrupt("return",new Promise(function(a){n.forEach(function(s){s.then(function(l){l.errors.length&&a([l]),r+=1,r===n.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),Jre.apply(this,arguments)}function Ds(e){return Gre(e)}function m1e(e,n){var r={};return n.forEach(function(i){var o=al(e,i);r=Fs(r,i,o)}),r}function VT(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(i){return C9e(n,i,r)})}function C9e(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!n||!r&&e.length!==n.length?!1:n.every(function(i,o){return e[o]===i})}function fkt(e,n){if(e===n)return!0;if(!e&&n||e&&!n||!e||!n||cn(e)!=="object"||cn(n)!=="object")return!1;var r=Object.keys(e),i=Object.keys(n),o=new Set([].concat(r,i));return Tt(o).every(function(a){var s=e[a],l=n[a];return typeof s=="function"&&typeof l=="function"?!0:s===l})}function pkt(e){var n=arguments.length<=1?void 0:arguments[1];return n&&n.target&&cn(n.target)==="object"&&e in n.target?n.target[e]:n}function v1e(e,n,r){var i=e.length;if(n<0||n>=i||r<0||r>=i)return e;var o=e[n],a=n-r;return a>0?[].concat(Tt(e.slice(0,r)),[o],Tt(e.slice(r,n)),Tt(e.slice(n+1,i))):a<0?[].concat(Tt(e.slice(0,n)),Tt(e.slice(n+1,r+1)),[o],Tt(e.slice(r+1,i))):e}var hkt=["name"],Gf=[];function KY(e,n,r,i,o,a){return typeof e=="function"?e(n,r,"source"in a?{source:a.source}:{}):i!==o}var Lue=function(e){Kc(r,e);var n=Nu(r);function r(i){var o;if(Ki(this,r),o=n.call(this,i),fe(Tn(o),"state",{resetCount:0}),fe(Tn(o),"cancelRegisterFunc",null),fe(Tn(o),"mounted",!1),fe(Tn(o),"touched",!1),fe(Tn(o),"dirty",!1),fe(Tn(o),"validatePromise",void 0),fe(Tn(o),"prevValidating",void 0),fe(Tn(o),"errors",Gf),fe(Tn(o),"warnings",Gf),fe(Tn(o),"cancelRegister",function(){var c=o.props,u=c.preserve,d=c.isListField,f=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,Ds(f)),o.cancelRegisterFunc=null}),fe(Tn(o),"getNamePath",function(){var c=o.props,u=c.name,d=c.fieldContext,f=d.prefixName,p=f===void 0?[]:f;return u!==void 0?[].concat(Tt(p),Tt(u)):[]}),fe(Tn(o),"getRules",function(){var c=o.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(p){return typeof p=="function"?p(f):p})}),fe(Tn(o),"refresh",function(){o.mounted&&o.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),fe(Tn(o),"metaCache",null),fe(Tn(o),"triggerMetaEvent",function(c){var u=o.props.onMetaChange;if(u){var d=ee(ee({},o.getMeta()),{},{destroy:c});rC(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),fe(Tn(o),"onStoreChange",function(c,u,d){var f=o.props,p=f.shouldUpdate,h=f.dependencies,g=h===void 0?[]:h,v=f.onReset,y=d.store,_=o.getNamePath(),S=o.getValue(c),b=o.getValue(y),E=u&&VT(u,_);switch(d.type==="valueUpdate"&&d.source==="external"&&!rC(S,b)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Gf,o.warnings=Gf,o.triggerMetaEvent()),d.type){case"reset":if(!u||E){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Gf,o.warnings=Gf,o.triggerMetaEvent(),v==null||v(),o.refresh();return}break;case"remove":{if(p&&KY(p,c,y,S,b,d)){o.reRender();return}break}case"setField":{var w=d.data;if(E){"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||Gf),"warnings"in w&&(o.warnings=w.warnings||Gf),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&VT(u,_,!0)){o.reRender();return}if(p&&!_.length&&KY(p,c,y,S,b,d)){o.reRender();return}break}case"dependenciesUpdate":{var C=g.map(Ds);if(C.some(function(x){return VT(d.relatedFields,x)})){o.reRender();return}break}default:if(E||(!g.length||_.length||p)&&KY(p,c,y,S,b,d)){o.reRender();return}break}p===!0&&o.reRender()}),fe(Tn(o),"validateRules",function(c){var u=o.getNamePath(),d=o.getValue(),f=c||{},p=f.triggerName,h=f.validateOnly,g=h===void 0?!1:h,v=Promise.resolve().then(Ss(ri().mark(function y(){var _,S,b,E,w,C,x;return ri().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(o.mounted){R.next=2;break}return R.abrupt("return",[]);case 2:if(_=o.props,S=_.validateFirst,b=S===void 0?!1:S,E=_.messageVariables,w=_.validateDebounce,C=o.getRules(),p&&(C=C.filter(function(O){return O}).filter(function(O){var M=O.validateTrigger;if(!M)return!0;var P=Gre(M);return P.includes(p)})),!(w&&p)){R.next=10;break}return R.next=8,new Promise(function(O){setTimeout(O,w)});case 8:if(o.validatePromise===v){R.next=10;break}return R.abrupt("return",[]);case 10:return x=ckt(u,d,C,c,b,E),x.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gf;if(o.validatePromise===v){var M;o.validatePromise=null;var P=[],k=[];(M=O.forEach)===null||M===void 0||M.call(O,function($){var U=$.rule.warningOnly,z=$.errors,D=z===void 0?Gf:z;U?k.push.apply(k,Tt(D)):P.push.apply(P,Tt(D))}),o.errors=P,o.warnings=k,o.triggerMetaEvent(),o.reRender()}}),R.abrupt("return",x);case 13:case"end":return R.stop()}},y)})));return g||(o.validatePromise=v,o.dirty=!0,o.errors=Gf,o.warnings=Gf,o.triggerMetaEvent(),o.reRender()),v}),fe(Tn(o),"isFieldValidating",function(){return!!o.validatePromise}),fe(Tn(o),"isFieldTouched",function(){return o.touched}),fe(Tn(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,u=c.getInternalHooks(r1),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),fe(Tn(o),"getErrors",function(){return o.errors}),fe(Tn(o),"getWarnings",function(){return o.warnings}),fe(Tn(o),"isListField",function(){return o.props.isListField}),fe(Tn(o),"isList",function(){return o.props.isList}),fe(Tn(o),"isPreserve",function(){return o.props.preserve}),fe(Tn(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var c={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return c}),fe(Tn(o),"getOnlyChild",function(c){if(typeof c=="function"){var u=o.getMeta();return ee(ee({},o.getOnlyChild(c(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=Tl(c);return d.length!==1||!m.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),fe(Tn(o),"getValue",function(c){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return al(c||u(!0),d)}),fe(Tn(o),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.name,f=u.trigger,p=u.validateTrigger,h=u.getValueFromEvent,g=u.normalize,v=u.valuePropName,y=u.getValueProps,_=u.fieldContext,S=p!==void 0?p:_.validateTrigger,b=o.getNamePath(),E=_.getInternalHooks,w=_.getFieldsValue,C=E(r1),x=C.dispatch,T=o.getValue(),R=y||function($){return fe({},v,$)},O=c[f],M=d!==void 0?R(T):{},P=ee(ee({},c),M);P[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var $,U=arguments.length,z=new Array(U),D=0;D<U;D++)z[D]=arguments[D];h?$=h.apply(void 0,z):$=pkt.apply(void 0,[v].concat(z)),g&&($=g($,T,w(!0))),$!==T&&x({type:"updateValue",namePath:b,value:$}),O&&O.apply(void 0,z)};var k=Gre(S||[]);return k.forEach(function($){var U=P[$];P[$]=function(){U&&U.apply(void 0,arguments);var z=o.props.rules;z&&z.length&&x({type:"validateField",namePath:b,triggerName:$})}}),P}),i.fieldContext){var a=i.fieldContext.getInternalHooks,s=a(r1),l=s.initEntityValue;l(Tn(o))}return o}return Xi(r,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,s=o.fieldContext;if(this.mounted=!0,s){var l=s.getInternalHooks,c=l(r1),u=c.registerField;this.cancelRegisterFunc=u(this)}a===!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 o=this.state.resetCount,a=this.props.children,s=this.getOnlyChild(a),l=s.child,c=s.isFunction,u;return c?u=l:m.isValidElement(l)?u=m.cloneElement(l,this.getControlled(l.props)):(qi(!l,"`children` of Field is not validate ReactElement."),u=l),m.createElement(m.Fragment,{key:o},u)}}]),r}(m.Component);fe(Lue,"contextType",T0);fe(Lue,"defaultProps",{trigger:"onChange",valuePropName:"value"});function $ue(e){var n,r=e.name,i=Xt(e,hkt),o=m.useContext(T0),a=m.useContext(gA),s=r!==void 0?Ds(r):void 0,l=(n=i.isListField)!==null&&n!==void 0?n:!!a,c="keep";return l||(c="_".concat((s||[]).join("_"))),m.createElement(Lue,ft({key:c,name:s,isListField:l},i,{fieldContext:o}))}function w9e(e){var n=e.name,r=e.initialValue,i=e.children,o=e.rules,a=e.validateTrigger,s=e.isListField,l=m.useContext(T0),c=m.useContext(gA),u=m.useRef({keys:[],id:0}),d=u.current,f=m.useMemo(function(){var v=Ds(l.prefixName)||[];return[].concat(Tt(v),Tt(Ds(n)))},[l.prefixName,n]),p=m.useMemo(function(){return ee(ee({},l),{},{prefixName:f})},[l,f]),h=m.useMemo(function(){return{getKey:function(y){var _=f.length,S=y[_];return[d.keys[S],y.slice(_+1)]}}},[f]);if(typeof i!="function")return qi(!1,"Form.List only accepts function as children."),null;var g=function(y,_,S){var b=S.source;return b==="internal"?!1:y!==_};return m.createElement(gA.Provider,{value:h},m.createElement(T0.Provider,{value:p},m.createElement($ue,{name:[],shouldUpdate:g,rules:o,validateTrigger:a,initialValue:r,isList:!0,isListField:s??!!c},function(v,y){var _=v.value,S=_===void 0?[]:_,b=v.onChange,E=l.getFieldValue,w=function(){var R=E(f||[]);return R||[]},C={add:function(R,O){var M=w();O>=0&&O<=M.length?(d.keys=[].concat(Tt(d.keys.slice(0,O)),[d.id],Tt(d.keys.slice(O))),b([].concat(Tt(M.slice(0,O)),[R],Tt(M.slice(O))))):(d.keys=[].concat(Tt(d.keys),[d.id]),b([].concat(Tt(M),[R]))),d.id+=1},remove:function(R){var O=w(),M=new Set(Array.isArray(R)?R:[R]);M.size<=0||(d.keys=d.keys.filter(function(P,k){return!M.has(k)}),b(O.filter(function(P,k){return!M.has(k)})))},move:function(R,O){if(R!==O){var M=w();R<0||R>=M.length||O<0||O>=M.length||(d.keys=v1e(d.keys,R,O),b(v1e(M,R,O)))}}},x=S||[];return Array.isArray(x)||(x=[]),i(x.map(function(T,R){var O=d.keys[R];return O===void 0&&(d.keys[R]=d.id,O=d.keys[R],d.id+=1),{name:R,key:O,isListField:!0}}),C,y)})))}function gkt(e){var n=!1,r=e.length,i=[];return e.length?new Promise(function(o,a){e.forEach(function(s,l){s.catch(function(c){return n=!0,c}).then(function(c){r-=1,i[l]=c,!(r>0)&&(n&&a(i),o(i))})})}):Promise.resolve([])}var x9e="__@field_split__";function XY(e){return e.map(function(n){return"".concat(cn(n),":").concat(n)}).join(x9e)}var mx=function(){function e(){Ki(this,e),fe(this,"kvs",new Map)}return Xi(e,[{key:"set",value:function(r,i){this.kvs.set(XY(r),i)}},{key:"get",value:function(r){return this.kvs.get(XY(r))}},{key:"update",value:function(r,i){var o=this.get(r),a=i(o);a?this.set(r,a):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(XY(r))}},{key:"map",value:function(r){return Tt(this.kvs.entries()).map(function(i){var o=ke(i,2),a=o[0],s=o[1],l=a.split(x9e);return r({key:l.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=ke(u,3),f=d[1],p=d[2];return f==="number"?Number(p):p}),value:s})})}},{key:"toJSON",value:function(){var r={};return this.map(function(i){var o=i.key,a=i.value;return r[o.join(".")]=a,null}),r}}]),e}(),mkt=["name"],vkt=Xi(function e(n){var r=this;Ki(this,e),fe(this,"formHooked",!1),fe(this,"forceRootUpdate",void 0),fe(this,"subscribable",!0),fe(this,"store",{}),fe(this,"fieldEntities",[]),fe(this,"initialValues",{}),fe(this,"callbacks",{}),fe(this,"validateMessages",null),fe(this,"preserve",null),fe(this,"lastValidatePromise",null),fe(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),fe(this,"getInternalHooks",function(i){return i===r1?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(qi(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),fe(this,"useSubscribe",function(i){r.subscribable=i}),fe(this,"prevWithoutPreserves",null),fe(this,"setInitialValues",function(i,o){if(r.initialValues=i||{},o){var a,s=mT(i,r.store);(a=r.prevWithoutPreserves)===null||a===void 0||a.map(function(l){var c=l.key;s=Fs(s,c,al(i,c))}),r.prevWithoutPreserves=null,r.updateStore(s)}}),fe(this,"destroyForm",function(i){if(i)r.updateStore({});else{var o=new mx;r.getFieldEntities(!0).forEach(function(a){r.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),r.prevWithoutPreserves=o}}),fe(this,"getInitialValue",function(i){var o=al(r.initialValues,i);return i.length?mT(o):o}),fe(this,"setCallbacks",function(i){r.callbacks=i}),fe(this,"setValidateMessages",function(i){r.validateMessages=i}),fe(this,"setPreserve",function(i){r.preserve=i}),fe(this,"watchList",[]),fe(this,"registerWatch",function(i){return r.watchList.push(i),function(){r.watchList=r.watchList.filter(function(o){return o!==i})}}),fe(this,"notifyWatch",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),a=r.getFieldsValue(!0);r.watchList.forEach(function(s){s(o,a,i)})}}),fe(this,"timeoutId",null),fe(this,"warningUnhooked",function(){}),fe(this,"updateStore",function(i){r.store=i}),fe(this,"getFieldEntities",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return i?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),fe(this,"getFieldsMap",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new mx;return r.getFieldEntities(i).forEach(function(a){var s=a.getNamePath();o.set(s,a)}),o}),fe(this,"getFieldEntitiesForNamePathList",function(i){if(!i)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return i.map(function(a){var s=Ds(a);return o.get(s)||{INVALIDATE_NAME_PATH:Ds(a)}})}),fe(this,"getFieldsValue",function(i,o){r.warningUnhooked();var a,s,l;if(i===!0||Array.isArray(i)?(a=i,s=o):i&&cn(i)==="object"&&(l=i.strict,s=i.filter),a===!0&&!s)return r.store;var c=r.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),u=[];return c.forEach(function(d){var f,p,h="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var g,v;if((g=(v=d).isList)!==null&&g!==void 0&&g.call(v))return}else if(!a&&(f=(p=d).isListField)!==null&&f!==void 0&&f.call(p))return;if(!s)u.push(h);else{var y="getMeta"in d?d.getMeta():null;s(y)&&u.push(h)}}),m1e(r.store,u.map(Ds))}),fe(this,"getFieldValue",function(i){r.warningUnhooked();var o=Ds(i);return al(r.store,o)}),fe(this,"getFieldsError",function(i){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(i);return o.map(function(a,s){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:Ds(i[s]),errors:[],warnings:[]}})}),fe(this,"getFieldError",function(i){r.warningUnhooked();var o=Ds(i),a=r.getFieldsError([o])[0];return a.errors}),fe(this,"getFieldWarning",function(i){r.warningUnhooked();var o=Ds(i),a=r.getFieldsError([o])[0];return a.warnings}),fe(this,"isFieldsTouched",function(){r.warningUnhooked();for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=o[0],l=o[1],c,u=!1;o.length===0?c=null:o.length===1?Array.isArray(s)?(c=s.map(Ds),u=!1):(c=null,u=s):(c=s.map(Ds),u=l);var d=r.getFieldEntities(!0),f=function(y){return y.isFieldTouched()};if(!c)return u?d.every(function(v){return f(v)||v.isList()}):d.some(f);var p=new mx;c.forEach(function(v){p.set(v,[])}),d.forEach(function(v){var y=v.getNamePath();c.forEach(function(_){_.every(function(S,b){return y[b]===S})&&p.update(_,function(S){return[].concat(Tt(S),[v])})})});var h=function(y){return y.some(f)},g=p.map(function(v){var y=v.value;return y});return u?g.every(h):g.some(h)}),fe(this,"isFieldTouched",function(i){return r.warningUnhooked(),r.isFieldsTouched([i])}),fe(this,"isFieldsValidating",function(i){r.warningUnhooked();var o=r.getFieldEntities();if(!i)return o.some(function(s){return s.isFieldValidating()});var a=i.map(Ds);return o.some(function(s){var l=s.getNamePath();return VT(a,l)&&s.isFieldValidating()})}),fe(this,"isFieldValidating",function(i){return r.warningUnhooked(),r.isFieldsValidating([i])}),fe(this,"resetWithFieldInitialValue",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new mx,a=r.getFieldEntities(!0);a.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:c,value:u}),o.set(d,f)}});var s=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var p=d.getNamePath(),h=r.getInitialValue(p);if(h!==void 0)qi(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var g=o.get(p);if(g&&g.size>1)qi(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var v=r.getFieldValue(p),y=d.isListField();!y&&(!i.skipExist||v===void 0)&&r.updateStore(Fs(r.store,p,Tt(g)[0].value))}}}})},l;i.entities?l=i.entities:i.namePathList?(l=[],i.namePathList.forEach(function(c){var u=o.get(c);if(u){var d;(d=l).push.apply(d,Tt(Tt(u).map(function(f){return f.entity})))}})):l=a,s(l)}),fe(this,"resetFields",function(i){r.warningUnhooked();var o=r.store;if(!i){r.updateStore(mT(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var a=i.map(Ds);a.forEach(function(s){var l=r.getInitialValue(s);r.updateStore(Fs(r.store,s,l))}),r.resetWithFieldInitialValue({namePathList:a}),r.notifyObservers(o,a,{type:"reset"}),r.notifyWatch(a)}),fe(this,"setFields",function(i){r.warningUnhooked();var o=r.store,a=[];i.forEach(function(s){var l=s.name,c=Xt(s,mkt),u=Ds(l);a.push(u),"value"in c&&r.updateStore(Fs(r.store,u,c.value)),r.notifyObservers(o,[u],{type:"setField",data:s})}),r.notifyWatch(a)}),fe(this,"getFields",function(){var i=r.getFieldEntities(!0),o=i.map(function(a){var s=a.getNamePath(),l=a.getMeta(),c=ee(ee({},l),{},{name:s,value:r.getFieldValue(s)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),fe(this,"initEntityValue",function(i){var o=i.props.initialValue;if(o!==void 0){var a=i.getNamePath(),s=al(r.store,a);s===void 0&&r.updateStore(Fs(r.store,a,o))}}),fe(this,"isMergedPreserve",function(i){var o=i!==void 0?i:r.preserve;return o??!0}),fe(this,"registerField",function(i){r.fieldEntities.push(i);var o=i.getNamePath();if(r.notifyWatch([o]),i.props.initialValue!==void 0){var a=r.store;r.resetWithFieldInitialValue({entities:[i],skipExist:!0}),r.notifyObservers(a,[i.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(s,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==i}),!r.isMergedPreserve(l)&&(!s||c.length>1)){var u=s?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==u&&r.fieldEntities.every(function(f){return!C9e(f.getNamePath(),o)})){var d=r.store;r.updateStore(Fs(d,o,u,!0)),r.notifyObservers(d,[o],{type:"remove"}),r.triggerDependenciesUpdate(d,o)}}r.notifyWatch([o])}}),fe(this,"dispatch",function(i){switch(i.type){case"updateValue":{var o=i.namePath,a=i.value;r.updateValue(o,a);break}case"validateField":{var s=i.namePath,l=i.triggerName;r.validateFields([s],{triggerName:l});break}}}),fe(this,"notifyObservers",function(i,o,a){if(r.subscribable){var s=ee(ee({},a),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(l){var c=l.onStoreChange;c(i,o,s)})}else r.forceRootUpdate()}),fe(this,"triggerDependenciesUpdate",function(i,o){var a=r.getDependencyChildrenFields(o);return a.length&&r.validateFields(a),r.notifyObservers(i,a,{type:"dependenciesUpdate",relatedFields:[o].concat(Tt(a))}),a}),fe(this,"updateValue",function(i,o){var a=Ds(i),s=r.store;r.updateStore(Fs(r.store,a,o)),r.notifyObservers(s,[a],{type:"valueUpdate",source:"internal"}),r.notifyWatch([a]);var l=r.triggerDependenciesUpdate(s,a),c=r.callbacks.onValuesChange;if(c){var u=m1e(r.store,[a]);c(u,r.getFieldsValue())}r.triggerOnFieldsChange([a].concat(Tt(l)))}),fe(this,"setFieldsValue",function(i){r.warningUnhooked();var o=r.store;if(i){var a=mT(r.store,i);r.updateStore(a)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),fe(this,"setFieldValue",function(i,o){r.setFields([{name:i,value:o,errors:[],warnings:[]}])}),fe(this,"getDependencyChildrenFields",function(i){var o=new Set,a=[],s=new mx;r.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=Ds(d);s.update(f,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(c),p})})});var l=function c(u){var d=s.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var p=f.getNamePath();f.isFieldDirty()&&p.length&&(a.push(p),c(p))}})};return l(i),a}),fe(this,"triggerOnFieldsChange",function(i,o){var a=r.callbacks.onFieldsChange;if(a){var s=r.getFields();if(o){var l=new mx;o.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),s.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var c=s.filter(function(u){var d=u.name;return VT(i,d)});c.length&&a(c,s)}}),fe(this,"validateFields",function(i,o){r.warningUnhooked();var a,s;Array.isArray(i)||typeof i=="string"||typeof o=="string"?(a=i,s=o):s=i;var l=!!a,c=l?a.map(Ds):[],u=[],d=String(Date.now()),f=new Set,p=s||{},h=p.recursive,g=p.dirty;r.getFieldEntities(!0).forEach(function(S){if(l||c.push(S.getNamePath()),!(!S.props.rules||!S.props.rules.length)&&!(g&&!S.isFieldDirty())){var b=S.getNamePath();if(f.add(b.join(d)),!l||VT(c,b,h)){var E=S.validateRules(ee({validateMessages:ee(ee({},E9e),r.validateMessages)},s));u.push(E.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function(w){var C,x=[],T=[];return(C=w.forEach)===null||C===void 0||C.call(w,function(R){var O=R.rule.warningOnly,M=R.errors;O?T.push.apply(T,Tt(M)):x.push.apply(x,Tt(M))}),x.length?Promise.reject({name:b,errors:x,warnings:T}):{name:b,errors:x,warnings:T}}))}}});var v=gkt(u);r.lastValidatePromise=v,v.catch(function(S){return S}).then(function(S){var b=S.map(function(E){var w=E.name;return w});r.notifyObservers(r.store,b,{type:"validateFinish"}),r.triggerOnFieldsChange(b,S)});var y=v.then(function(){return r.lastValidatePromise===v?Promise.resolve(r.getFieldsValue(c)):Promise.reject([])}).catch(function(S){var b=S.filter(function(E){return E&&E.errors.length});return Promise.reject({values:r.getFieldsValue(c),errorFields:b,outOfDate:r.lastValidatePromise!==v})});y.catch(function(S){return S});var _=c.filter(function(S){return f.has(S.join(d))});return r.triggerOnFieldsChange(_),y}),fe(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(i){var o=r.callbacks.onFinish;if(o)try{o(i)}catch(a){console.error(a)}}).catch(function(i){var o=r.callbacks.onFinishFailed;o&&o(i)})}),this.forceRootUpdate=n});function Fue(e){var n=m.useRef(),r=m.useState({}),i=ke(r,2),o=i[1];if(!n.current)if(e)n.current=e;else{var a=function(){o({})},s=new vkt(a);n.current=s.getForm()}return[n.current]}var eie=m.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),T9e=function(n){var r=n.validateMessages,i=n.onFormChange,o=n.onFormFinish,a=n.children,s=m.useContext(eie),l=m.useRef({});return m.createElement(eie.Provider,{value:ee(ee({},s),{},{validateMessages:ee(ee({},s.validateMessages),r),triggerFormChange:function(u,d){i&&i(u,{changedFields:d,forms:l.current}),s.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:l.current}),s.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=ee(ee({},l.current),{},fe({},u,d))),s.registerForm(u,d)},unregisterForm:function(u){var d=ee({},l.current);delete d[u],l.current=d,s.unregisterForm(u)}})},a)},ykt=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],_kt=function(n,r){var i=n.name,o=n.initialValues,a=n.fields,s=n.form,l=n.preserve,c=n.children,u=n.component,d=u===void 0?"form":u,f=n.validateMessages,p=n.validateTrigger,h=p===void 0?"onChange":p,g=n.onValuesChange,v=n.onFieldsChange,y=n.onFinish,_=n.onFinishFailed,S=n.clearOnDestroy,b=Xt(n,ykt),E=m.useRef(null),w=m.useContext(eie),C=Fue(s),x=ke(C,1),T=x[0],R=T.getInternalHooks(r1),O=R.useSubscribe,M=R.setInitialValues,P=R.setCallbacks,k=R.setValidateMessages,$=R.setPreserve,U=R.destroyForm;m.useImperativeHandle(r,function(){return ee(ee({},T),{},{nativeElement:E.current})}),m.useEffect(function(){return w.registerForm(i,T),function(){w.unregisterForm(i)}},[w,T,i]),k(ee(ee({},w.validateMessages),f)),P({onValuesChange:g,onFieldsChange:function(Q){if(w.triggerFormChange(i,Q),v){for(var le=arguments.length,Z=new Array(le>1?le-1:0),j=1;j<le;j++)Z[j-1]=arguments[j];v.apply(void 0,[Q].concat(Z))}},onFinish:function(Q){w.triggerFormFinish(i,Q),y&&y(Q)},onFinishFailed:_}),$(l);var z=m.useRef(null);M(o,!z.current),z.current||(z.current=!0),m.useEffect(function(){return function(){return U(S)}},[]);var D,B=typeof c=="function";if(B){var Y=T.getFieldsValue(!0);D=c(Y,T)}else D=c;O(!B);var q=m.useRef();m.useEffect(function(){fkt(q.current||[],a||[])||T.setFields(a||[]),q.current=a},[a,T]);var K=m.useMemo(function(){return ee(ee({},T),{},{validateTrigger:h})},[T,h]),H=m.createElement(gA.Provider,{value:null},m.createElement(T0.Provider,{value:K},D));return d===!1?H:m.createElement(d,ft({},b,{ref:E,onSubmit:function(Q){Q.preventDefault(),Q.stopPropagation(),T.submit()},onReset:function(Q){var le;Q.preventDefault(),T.resetFields(),(le=b.onReset)===null||le===void 0||le.call(b,Q)}}),H)};function y1e(e){try{return JSON.stringify(e)}catch{return Math.random()}}function O9e(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0],o=n[1],a=o===void 0?{}:o,s=NDt(a)?{form:a}:a,l=s.form,c=m.useState(),u=ke(c,2),d=u[0],f=u[1],p=m.useMemo(function(){return y1e(d)},[d]),h=m.useRef(p);h.current=p;var g=m.useContext(T0),v=l||g,y=v&&v._init,_=Ds(i),S=m.useRef(_);return S.current=_,m.useEffect(function(){if(y){var b=v.getFieldsValue,E=v.getInternalHooks,w=E(r1),C=w.registerWatch,x=function(M,P){var k=s.preserve?P:M;return typeof i=="function"?i(k):al(k,S.current)},T=C(function(O,M){var P=x(O,M),k=y1e(P);h.current!==k&&(h.current=k,f(P))}),R=x(b(),b(!0));return d!==R&&f(R),T}},[y]),d}var bkt=m.forwardRef(_kt),aI=bkt;aI.FormProvider=T9e;aI.Field=$ue;aI.List=w9e;aI.useForm=Fue;aI.useWatch=O9e;const My=m.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),R9e=m.createContext(null),I9e=e=>{const n=Wr(e,["prefixCls"]);return m.createElement(T9e,Object.assign({},n))},Bue=m.createContext({prefixCls:""}),qs=m.createContext({}),Skt=e=>{let{children:n,status:r,override:i}=e;const o=m.useContext(qs),a=m.useMemo(()=>{const s=Object.assign({},o);return i&&delete s.isFormItemInput,r&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[r,i,o]);return m.createElement(qs.Provider,{value:a},n)},N9e=m.createContext(void 0),ng=e=>{const{space:n,form:r,children:i}=e;if(i==null)return null;let o=i;return r&&(o=V.createElement(Skt,{override:!0,status:!0},o)),n&&(o=V.createElement(TPt,null,o)),o};function B8(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function _1e(e){const{closable:n,closeIcon:r}=e||{};return V.useMemo(()=>{if(!n&&(n===!1||r===!1||r===null))return!1;if(n===void 0&&r===void 0)return null;let i={closeIcon:typeof r!="boolean"&&r!==null?r:void 0};return n&&typeof n=="object"&&(i=Object.assign(Object.assign({},i),n)),i},[n,r])}function b1e(){const e={};for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return r.forEach(o=>{o&&Object.keys(o).forEach(a=>{o[a]!==void 0&&(e[a]=o[a])})}),e}const Ekt={};function M9e(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ekt;const i=_1e(e),o=_1e(n),a=typeof i!="boolean"?!!(i!=null&&i.disabled):!1,s=V.useMemo(()=>Object.assign({closeIcon:V.createElement(Up,null)},r),[r]),l=V.useMemo(()=>i===!1?!1:i?b1e(s,o,i):o===!1?!1:o?b1e(s,o):s.closable?s:!1,[i,o,s]);return V.useMemo(()=>{if(l===!1)return[!1,null,a];const{closeIconRender:c}=s,{closeIcon:u}=l;let d=u;if(d!=null){c&&(d=c(u));const f=Va(l,!0);Object.keys(f).length&&(d=V.isValidElement(d)?V.cloneElement(d,f):V.createElement("span",Object.assign({},f),d))}return[!0,d,a]},[l,s])}const Ckt=()=>bf()&&window.document.documentElement,X9=e=>{const{prefixCls:n,className:r,style:i,size:o,shape:a}=e,s=Ce({[`${n}-lg`]:o==="large",[`${n}-sm`]:o==="small"}),l=Ce({[`${n}-circle`]:a==="circle",[`${n}-square`]:a==="square",[`${n}-round`]:a==="round"}),c=m.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return m.createElement("span",{className:Ce(n,s,l,r),style:Object.assign(Object.assign({},c),i)})},wkt=new kr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Q9=e=>({height:e,lineHeight:Ye(e)}),GT=e=>Object.assign({width:e},Q9(e)),xkt=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:wkt,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),QY=(e,n)=>Object.assign({width:n(e).mul(5).equal(),minWidth:n(e).mul(5).equal()},Q9(e)),Tkt=e=>{const{skeletonAvatarCls:n,gradientFromColor:r,controlHeight:i,controlHeightLG:o,controlHeightSM:a}=e;return{[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},GT(i)),[`${n}${n}-circle`]:{borderRadius:"50%"},[`${n}${n}-lg`]:Object.assign({},GT(o)),[`${n}${n}-sm`]:Object.assign({},GT(a))}},Okt=e=>{const{controlHeight:n,borderRadiusSM:r,skeletonInputCls:i,controlHeightLG:o,controlHeightSM:a,gradientFromColor:s,calc:l}=e;return{[i]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:r},QY(n,l)),[`${i}-lg`]:Object.assign({},QY(o,l)),[`${i}-sm`]:Object.assign({},QY(a,l))}},S1e=e=>Object.assign({width:e},Q9(e)),Rkt=e=>{const{skeletonImageCls:n,imageSizeBase:r,gradientFromColor:i,borderRadiusSM:o,calc:a}=e;return{[n]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:i,borderRadius:o},S1e(a(r).mul(2).equal())),{[`${n}-path`]:{fill:"#bfbfbf"},[`${n}-svg`]:Object.assign(Object.assign({},S1e(r)),{maxWidth:a(r).mul(4).equal(),maxHeight:a(r).mul(4).equal()}),[`${n}-svg${n}-svg-circle`]:{borderRadius:"50%"}}),[`${n}${n}-circle`]:{borderRadius:"50%"}}},ZY=(e,n,r)=>{const{skeletonButtonCls:i}=e;return{[`${r}${i}-circle`]:{width:n,minWidth:n,borderRadius:"50%"},[`${r}${i}-round`]:{borderRadius:n}}},JY=(e,n)=>Object.assign({width:n(e).mul(2).equal(),minWidth:n(e).mul(2).equal()},Q9(e)),Ikt=e=>{const{borderRadiusSM:n,skeletonButtonCls:r,controlHeight:i,controlHeightLG:o,controlHeightSM:a,gradientFromColor:s,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:s,borderRadius:n,width:l(i).mul(2).equal(),minWidth:l(i).mul(2).equal()},JY(i,l))},ZY(e,i,r)),{[`${r}-lg`]:Object.assign({},JY(o,l))}),ZY(e,o,`${r}-lg`)),{[`${r}-sm`]:Object.assign({},JY(a,l))}),ZY(e,a,`${r}-sm`))},Nkt=e=>{const{componentCls:n,skeletonAvatarCls:r,skeletonTitleCls:i,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:s,skeletonImageCls:l,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:h,borderRadius:g,titleHeight:v,blockRadius:y,paragraphLiHeight:_,controlHeightXS:S,paragraphMarginTop:b}=e;return{[n]:{display:"table",width:"100%",[`${n}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},GT(c)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},GT(u)),[`${r}-sm`]:Object.assign({},GT(d))},[`${n}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[i]:{width:"100%",height:v,background:f,borderRadius:y,[`+ ${o}`]:{marginBlockStart:d}},[o]:{padding:0,"> li":{width:"100%",height:_,listStyle:"none",background:f,borderRadius:y,"+ li":{marginBlockStart:S}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${n}-content`]:{[`${i}, ${o} > li`]:{borderRadius:g}}},[`${n}-with-avatar ${n}-content`]:{[i]:{marginBlockStart:h,[`+ ${o}`]:{marginBlockStart:b}}},[`${n}${n}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ikt(e)),Tkt(e)),Okt(e)),Rkt(e)),[`${n}${n}-block`]:{width:"100%",[a]:{width:"100%"},[s]:{width:"100%"}},[`${n}${n}-active`]:{[`
${i},
${o} > li,
${r},
${a},
${s},
${l}
`]:Object.assign({},xkt(e))}}},Mkt=e=>{const{colorFillContent:n,colorFill:r}=e,i=n,o=r;return{color:i,colorGradientEnd:o,gradientFromColor:i,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},sI=Yr("Skeleton",e=>{const{componentCls:n,calc:r}=e,i=wr(e,{skeletonAvatarCls:`${n}-avatar`,skeletonTitleCls:`${n}-title`,skeletonParagraphCls:`${n}-paragraph`,skeletonButtonCls:`${n}-button`,skeletonInputCls:`${n}-input`,skeletonImageCls:`${n}-image`,imageSizeBase:r(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Nkt(i)]},Mkt,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Pkt=e=>{const{prefixCls:n,className:r,rootClassName:i,active:o,shape:a="circle",size:s="default"}=e,{getPrefixCls:l}=m.useContext(Cn),c=l("skeleton",n),[u,d,f]=sI(c),p=Wr(e,["prefixCls","className"]),h=Ce(c,`${c}-element`,{[`${c}-active`]:o},r,i,d,f);return u(m.createElement("div",{className:h},m.createElement(X9,Object.assign({prefixCls:`${c}-avatar`,shape:a,size:s},p))))},Akt=e=>{const{prefixCls:n,className:r,rootClassName:i,active:o,block:a=!1,size:s="default"}=e,{getPrefixCls:l}=m.useContext(Cn),c=l("skeleton",n),[u,d,f]=sI(c),p=Wr(e,["prefixCls"]),h=Ce(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},r,i,d,f);return u(m.createElement("div",{className:h},m.createElement(X9,Object.assign({prefixCls:`${c}-button`,size:s},p))))},Dkt="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",kkt=e=>{const{prefixCls:n,className:r,rootClassName:i,style:o,active:a}=e,{getPrefixCls:s}=m.useContext(Cn),l=s("skeleton",n),[c,u,d]=sI(l),f=Ce(l,`${l}-element`,{[`${l}-active`]:a},r,i,u,d);return c(m.createElement("div",{className:f},m.createElement("div",{className:Ce(`${l}-image`,r),style:o},m.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},m.createElement("title",null,"Image placeholder"),m.createElement("path",{d:Dkt,className:`${l}-image-path`})))))},Lkt=e=>{const{prefixCls:n,className:r,rootClassName:i,active:o,block:a,size:s="default"}=e,{getPrefixCls:l}=m.useContext(Cn),c=l("skeleton",n),[u,d,f]=sI(c),p=Wr(e,["prefixCls"]),h=Ce(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},r,i,d,f);return u(m.createElement("div",{className:h},m.createElement(X9,Object.assign({prefixCls:`${c}-input`,size:s},p))))},$kt=e=>{const{prefixCls:n,className:r,rootClassName:i,style:o,active:a,children:s}=e,{getPrefixCls:l}=m.useContext(Cn),c=l("skeleton",n),[u,d,f]=sI(c),p=Ce(c,`${c}-element`,{[`${c}-active`]:a},d,r,i,f);return u(m.createElement("div",{className:p},m.createElement("div",{className:Ce(`${c}-image`,r),style:o},s)))},Fkt=(e,n)=>{const{width:r,rows:i=2}=n;if(Array.isArray(r))return r[e];if(i-1===e)return r},Bkt=e=>{const{prefixCls:n,className:r,style:i,rows:o}=e,a=Tt(new Array(o)).map((s,l)=>m.createElement("li",{key:l,style:{width:Fkt(l,e)}}));return m.createElement("ul",{className:Ce(n,r),style:i},a)},jkt=e=>{let{prefixCls:n,className:r,width:i,style:o}=e;return m.createElement("h3",{className:Ce(n,r),style:Object.assign({width:i},o)})};function eq(e){return e&&typeof e=="object"?e:{}}function Ukt(e,n){return e&&!n?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Hkt(e,n){return!e&&n?{width:"38%"}:e&&n?{width:"50%"}:{}}function zkt(e,n){const r={};return(!e||!n)&&(r.width="61%"),!e&&n?r.rows=3:r.rows=2,r}const Zy=e=>{const{prefixCls:n,loading:r,className:i,rootClassName:o,style:a,children:s,avatar:l=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:p,direction:h,skeleton:g}=m.useContext(Cn),v=p("skeleton",n),[y,_,S]=sI(v);if(r||!("loading"in e)){const b=!!l,E=!!c,w=!!u;let C;if(b){const R=Object.assign(Object.assign({prefixCls:`${v}-avatar`},Ukt(E,w)),eq(l));C=m.createElement("div",{className:`${v}-header`},m.createElement(X9,Object.assign({},R)))}let x;if(E||w){let R;if(E){const M=Object.assign(Object.assign({prefixCls:`${v}-title`},Hkt(b,w)),eq(c));R=m.createElement(jkt,Object.assign({},M))}let O;if(w){const M=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},zkt(b,E)),eq(u));O=m.createElement(Bkt,Object.assign({},M))}x=m.createElement("div",{className:`${v}-content`},R,O)}const T=Ce(v,{[`${v}-with-avatar`]:b,[`${v}-active`]:d,[`${v}-rtl`]:h==="rtl",[`${v}-round`]:f},g==null?void 0:g.className,i,o,_,S);return y(m.createElement("div",{className:T,style:Object.assign(Object.assign({},g==null?void 0:g.style),a)},C,x))}return s??null};Zy.Button=Akt;Zy.Avatar=Pkt;Zy.Input=Lkt;Zy.Image=kkt;Zy.Node=$kt;function E1e(){}const Vkt=m.createContext({add:E1e,remove:E1e});function P9e(e){const n=m.useContext(Vkt),r=m.useRef(null);return Sr(o=>{if(o){const a=e?o.querySelector(e):o;n.add(a),r.current=a}else n.remove(r.current)})}const C1e=()=>{const{cancelButtonProps:e,cancelTextLocale:n,onCancel:r}=m.useContext(pk);return V.createElement(qn,Object.assign({onClick:r},e),n)},w1e=()=>{const{confirmLoading:e,okButtonProps:n,okType:r,okTextLocale:i,onOk:o}=m.useContext(pk);return V.createElement(qn,Object.assign({},Tue(r),{loading:e,onClick:o},n),i)};function A9e(e,n){return V.createElement("span",{className:`${e}-close-x`},n||V.createElement(Up,{className:`${e}-close-icon`}))}const D9e=e=>{const{okText:n,okType:r="primary",cancelText:i,confirmLoading:o,onOk:a,onCancel:s,okButtonProps:l,cancelButtonProps:c,footer:u}=e,[d]=Mu("Modal",e7e()),f=n||(d==null?void 0:d.okText),p=i||(d==null?void 0:d.cancelText),h={confirmLoading:o,okButtonProps:l,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:p,okType:r,onOk:a,onCancel:s},g=V.useMemo(()=>h,Tt(Object.values(h)));let v;return typeof u=="function"||typeof u>"u"?(v=V.createElement(V.Fragment,null,V.createElement(C1e,null),V.createElement(w1e,null)),typeof u=="function"&&(v=u(v,{OkBtn:w1e,CancelBtn:C1e})),v=V.createElement(m9e,{value:g},v)):v=u,V.createElement(yue,{disabled:!1},v)},Gkt=e=>{const{componentCls:n}=e;return{[n]:{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"}}}},Wkt=e=>{const{componentCls:n}=e;return{[n]:{position:"relative",maxWidth:"100%",minHeight:1}}},Ykt=(e,n)=>{const{prefixCls:r,componentCls:i,gridColumns:o}=e,a={};for(let s=o;s>=0;s--)s===0?(a[`${i}${n}-${s}`]={display:"none"},a[`${i}-push-${s}`]={insetInlineStart:"auto"},a[`${i}-pull-${s}`]={insetInlineEnd:"auto"},a[`${i}${n}-push-${s}`]={insetInlineStart:"auto"},a[`${i}${n}-pull-${s}`]={insetInlineEnd:"auto"},a[`${i}${n}-offset-${s}`]={marginInlineStart:0},a[`${i}${n}-order-${s}`]={order:0}):(a[`${i}${n}-${s}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${s/o*100}%`,maxWidth:`${s/o*100}%`}],a[`${i}${n}-push-${s}`]={insetInlineStart:`${s/o*100}%`},a[`${i}${n}-pull-${s}`]={insetInlineEnd:`${s/o*100}%`},a[`${i}${n}-offset-${s}`]={marginInlineStart:`${s/o*100}%`},a[`${i}${n}-order-${s}`]={order:s});return a[`${i}${n}-flex`]={flex:`var(--${r}${n}-flex)`},a},tie=(e,n)=>Ykt(e,n),qkt=(e,n,r)=>({[`@media (min-width: ${Ye(n)})`]:Object.assign({},tie(e,r))}),Kkt=()=>({}),Xkt=()=>({}),Qkt=Yr("Grid",Gkt,Kkt),k9e=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),Zkt=Yr("Grid",e=>{const n=wr(e,{gridColumns:24}),r=k9e(n);return delete r.xs,[Wkt(n),tie(n,""),tie(n,"-xs"),Object.keys(r).map(i=>qkt(n,r[i],`-${i}`)).reduce((i,o)=>Object.assign(Object.assign({},i),o),{})]},Xkt);function x1e(e){return{position:e,inset:0}}const L9e=e=>{const{componentCls:n,antCls:r}=e;return[{[`${n}-root`]:{[`${n}${r}-zoom-enter, ${n}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${n}${r}-zoom-leave ${n}-content`]:{pointerEvents:"none"},[`${n}-mask`]:Object.assign(Object.assign({},x1e("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${n}-hidden`]:{display:"none"}}),[`${n}-wrap`]:Object.assign(Object.assign({},x1e("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${n}-root`]:Iue(e)}]},Jkt=e=>{const{componentCls:n}=e;return[{[`${n}-root`]:{[`${n}-wrap-rtl`]:{direction:"rtl"},[`${n}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[n]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[n]:{maxWidth:"calc(100vw - 16px)",margin:`${Ye(e.marginXS)} auto`},[`${n}-centered`]:{[n]:{flex:1}}}}},{[n]:Object.assign(Object.assign({},li(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Ye(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${n}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${n}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${n}-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:Ye(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Rp(e)),[`${n}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${n}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Ye(e.margin)} auto`}},[`${n}-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}},[`${n}-open`]:{overflow:"hidden"}})},{[`${n}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${n}-content,
${n}-body,
${n}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${n}-confirm-body`]:{marginBottom:"auto"}}}]},eLt=e=>{const{componentCls:n}=e;return{[`${n}-root`]:{[`${n}-wrap-rtl`]:{direction:"rtl",[`${n}-confirm-body`]:{direction:"rtl"}}}}},tLt=e=>{const{componentCls:n}=e,r=k9e(e);delete r.xs;const i=Object.keys(r).map(o=>({[`@media (min-width: ${Ye(r[o])})`]:{width:`var(--${n.replace(".","")}-${o}-width)`}}));return{[`${n}-root`]:{[n]:[{width:`var(--${n.replace(".","")}-xs-width)`}].concat(Tt(i))}}},$9e=e=>{const n=e.padding,r=e.fontSizeHeading5,i=e.lineHeightHeading5;return wr(e,{modalHeaderHeight:e.calc(e.calc(i).mul(r).equal()).add(e.calc(n).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()})},F9e=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Ye(e.paddingMD)} ${Ye(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Ye(e.padding)} ${Ye(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Ye(e.paddingXS)} ${Ye(e.padding)}`:0,footerBorderTop:e.wireframe?`${Ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Ye(e.padding*2)} ${Ye(e.padding*2)} ${Ye(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),B9e=Yr("Modal",e=>{const n=$9e(e);return[Jkt(n),eLt(n),L9e(n),oI(n,"zoom"),tLt(n)]},F9e,{unitless:{titleLineHeight:!0}});var nLt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};let nie;const rLt=e=>{nie={x:e.pageX,y:e.pageY},setTimeout(()=>{nie=null},100)};Ckt()&&document.documentElement.addEventListener("click",rLt,!0);const j9e=e=>{var n;const{getPopupContainer:r,getPrefixCls:i,direction:o,modal:a}=m.useContext(Cn),s=Z=>{const{onCancel:j}=e;j==null||j(Z)},l=Z=>{const{onOk:j}=e;j==null||j(Z)},{prefixCls:c,className:u,rootClassName:d,open:f,wrapClassName:p,centered:h,getContainer:g,focusTriggerAfterClose:v=!0,style:y,visible:_,width:S=520,footer:b,classNames:E,styles:w,children:C,loading:x}=e,T=nLt(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),R=i("modal",c),O=i(),M=po(R),[P,k,$]=B9e(R,M),U=Ce(p,{[`${R}-centered`]:!!h,[`${R}-wrap-rtl`]:o==="rtl"}),z=b!==null&&!x?m.createElement(D9e,Object.assign({},e,{onOk:l,onCancel:s})):null,[D,B,Y]=M9e(B8(e),B8(a),{closable:!0,closeIcon:m.createElement(Up,{className:`${R}-close-icon`}),closeIconRender:Z=>A9e(R,Z)}),q=P9e(`.${R}-content`),[K,H]=Hp("Modal",T.zIndex),[G,Q]=m.useMemo(()=>S&&typeof S=="object"?[void 0,S]:[S,void 0],[S]),le=m.useMemo(()=>{const Z={};return Q&&Object.keys(Q).forEach(j=>{const F=Q[j];F!==void 0&&(Z[`--${R}-${j}-width`]=typeof F=="number"?`${F}px`:F)}),Z},[Q]);return P(m.createElement(ng,{form:!0,space:!0},m.createElement(ck.Provider,{value:H},m.createElement(kue,Object.assign({width:G},T,{zIndex:K,getContainer:g===void 0?r:g,prefixCls:R,rootClassName:Ce(k,d,$,M),footer:z,visible:f??_,mousePosition:(n=T.mousePosition)!==null&&n!==void 0?n:nie,onClose:s,closable:D&&{disabled:Y,closeIcon:B},closeIcon:B,focusTriggerAfterClose:v,transitionName:Kl(O,"zoom",e.transitionName),maskTransitionName:Kl(O,"fade",e.maskTransitionName),className:Ce(k,u,a==null?void 0:a.className),style:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.style),y),le),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),E),{wrapper:Ce(U,E==null?void 0:E.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),w),panelRef:q}),x?m.createElement(Zy,{active:!0,title:!1,paragraph:{rows:4},className:`${R}-body-skeleton`}):C))))},iLt=e=>{const{componentCls:n,titleFontSize:r,titleLineHeight:i,modalConfirmIconSize:o,fontSize:a,lineHeight:s,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:u}=e,d=`${n}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},Nm()),[`&${n} ${n}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${Ye(e.marginSM)})`},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${Ye(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:r,lineHeight:i},[`${d}-content`]:{color:e.colorText,fontSize:a,lineHeight:s},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},
${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},oLt=bue(["Modal","confirm"],e=>{const n=$9e(e);return[iLt(n)]},F9e,{order:-1e3});var aLt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function U9e(e){const{prefixCls:n,icon:r,okText:i,cancelText:o,confirmPrefixCls:a,type:s,okCancel:l,footer:c,locale:u}=e,d=aLt(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=r;if(!r&&r!==null)switch(s){case"info":f=m.createElement(D9,null);break;case"success":f=m.createElement(tw,null);break;case"error":f=m.createElement(tv,null);break;default:f=m.createElement(eS,null)}const p=l??s==="confirm",h=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[g]=Mu("Modal"),v=u||g,y=i||(p?v==null?void 0:v.okText:v==null?void 0:v.justOkText),_=o||(v==null?void 0:v.cancelText),S=Object.assign({autoFocusButton:h,cancelTextLocale:_,okTextLocale:y,mergedOkCancel:p},d),b=m.useMemo(()=>S,Tt(Object.values(S))),E=m.createElement(m.Fragment,null,m.createElement(e1e,null),m.createElement(t1e,null)),w=e.title!==void 0&&e.title!==null,C=`${a}-body`;return m.createElement("div",{className:`${a}-body-wrapper`},m.createElement("div",{className:Ce(C,{[`${C}-has-title`]:w})},f,m.createElement("div",{className:`${a}-paragraph`},w&&m.createElement("span",{className:`${a}-title`},e.title),m.createElement("div",{className:`${a}-content`},e.content))),c===void 0||typeof c=="function"?m.createElement(m9e,{value:b},m.createElement("div",{className:`${a}-btns`},typeof c=="function"?c(E,{OkBtn:t1e,CancelBtn:e1e}):E)):c,m.createElement(oLt,{prefixCls:n}))}const sLt=e=>{const{close:n,zIndex:r,maskStyle:i,direction:o,prefixCls:a,wrapClassName:s,rootPrefixCls:l,bodyStyle:c,closable:u=!1,onConfirm:d,styles:f}=e,p=`${a}-confirm`,h=e.width||416,g=e.style||{},v=e.mask===void 0?!0:e.mask,y=e.maskClosable===void 0?!1:e.maskClosable,_=Ce(p,`${p}-${e.type}`,{[`${p}-rtl`]:o==="rtl"},e.className),[,S]=Nl(),b=m.useMemo(()=>r!==void 0?r:S.zIndexPopupBase+Cue,[r,S]);return m.createElement(j9e,Object.assign({},e,{className:_,wrapClassName:Ce({[`${p}-centered`]:!!e.centered},s),onCancel:()=>{n==null||n({triggerCancel:!0}),d==null||d(!1)},title:"",footer:null,transitionName:Kl(l||"","zoom",e.transitionName),maskTransitionName:Kl(l||"","fade",e.maskTransitionName),mask:v,maskClosable:y,style:g,styles:Object.assign({body:c,mask:i},f),width:h,zIndex:b,closable:u}),m.createElement(U9e,Object.assign({},e,{confirmPrefixCls:p})))},H9e=e=>{const{rootPrefixCls:n,iconPrefixCls:r,direction:i,theme:o}=e;return m.createElement(or,{prefixCls:n,iconPrefixCls:r,direction:i,theme:o},m.createElement(sLt,Object.assign({},e)))},i1=[];let z9e="";function V9e(){return z9e}const lLt=e=>{var n,r;const{prefixCls:i,getContainer:o,direction:a}=e,s=e7e(),l=m.useContext(Cn),c=V9e()||l.getPrefixCls(),u=i||`${c}-modal`;let d=o;return d===!1&&(d=void 0),V.createElement(H9e,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:a??l.direction,locale:(r=(n=l.locale)===null||n===void 0?void 0:n.Modal)!==null&&r!==void 0?r:s,getContainer:d}))};function mk(e){const n=D7e(),r=document.createDocumentFragment();let i=Object.assign(Object.assign({},e),{close:c,open:!0}),o,a;function s(){for(var d,f=arguments.length,p=new Array(f),h=0;h<f;h++)p[h]=arguments[h];if(p.some(y=>y==null?void 0:y.triggerCancel)){var v;(d=e.onCancel)===null||d===void 0||(v=d).call.apply(v,[e,()=>{}].concat(Tt(p.slice(1))))}for(let y=0;y<i1.length;y++)if(i1[y]===c){i1.splice(y,1);break}a()}function l(d){clearTimeout(o),o=setTimeout(()=>{const f=n.getPrefixCls(void 0,V9e()),p=n.getIconPrefixCls(),h=n.getTheme(),g=V.createElement(lLt,Object.assign({},d));a=xue()(V.createElement(or,{prefixCls:f,iconPrefixCls:p,theme:h},n.holderRender?n.holderRender(g):g),r)})}function c(){for(var d=arguments.length,f=new Array(d),p=0;p<d;p++)f[p]=arguments[p];i=Object.assign(Object.assign({},i),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),s.apply(this,f)}}),i.visible&&delete i.visible,l(i)}function u(d){typeof d=="function"?i=d(i):i=Object.assign(Object.assign({},i),d),l(i)}return l(i),i1.push(c),{destroy:c,update:u}}function G9e(e){return Object.assign(Object.assign({},e),{type:"warning"})}function W9e(e){return Object.assign(Object.assign({},e),{type:"info"})}function Y9e(e){return Object.assign(Object.assign({},e),{type:"success"})}function q9e(e){return Object.assign(Object.assign({},e),{type:"error"})}function K9e(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function cLt(e){let{rootPrefixCls:n}=e;z9e=n}var uLt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const dLt=(e,n)=>{var r,{afterClose:i,config:o}=e,a=uLt(e,["afterClose","config"]);const[s,l]=m.useState(!0),[c,u]=m.useState(o),{direction:d,getPrefixCls:f}=m.useContext(Cn),p=f("modal"),h=f(),g=()=>{var S;i(),(S=c.afterClose)===null||S===void 0||S.call(c)},v=function(){var S;l(!1);for(var b=arguments.length,E=new Array(b),w=0;w<b;w++)E[w]=arguments[w];if(E.some(T=>T==null?void 0:T.triggerCancel)){var x;(S=c.onCancel)===null||S===void 0||(x=S).call.apply(x,[c,()=>{}].concat(Tt(E.slice(1))))}};m.useImperativeHandle(n,()=>({destroy:v,update:S=>{u(b=>Object.assign(Object.assign({},b),S))}}));const y=(r=c.okCancel)!==null&&r!==void 0?r:c.type==="confirm",[_]=Mu("Modal",Op.Modal);return m.createElement(H9e,Object.assign({prefixCls:p,rootPrefixCls:h},c,{close:v,open:s,afterClose:g,okText:c.okText||(y?_==null?void 0:_.okText:_==null?void 0:_.justOkText),direction:c.direction||d,cancelText:c.cancelText||(_==null?void 0:_.cancelText)},a))},fLt=m.forwardRef(dLt);let T1e=0;const pLt=m.memo(m.forwardRef((e,n)=>{const[r,i]=iPt();return m.useImperativeHandle(n,()=>({patchElement:i}),[]),m.createElement(m.Fragment,null,r)}));function X9e(){const e=m.useRef(null),[n,r]=m.useState([]);m.useEffect(()=>{n.length&&(Tt(n).forEach(s=>{s()}),r([]))},[n]);const i=m.useCallback(a=>function(l){var c;T1e+=1;const u=m.createRef();let d;const f=new Promise(y=>{d=y});let p=!1,h;const g=m.createElement(fLt,{key:`modal-${T1e}`,config:a(l),ref:u,afterClose:()=>{h==null||h()},isSilent:()=>p,onConfirm:y=>{d(y)}});return h=(c=e.current)===null||c===void 0?void 0:c.patchElement(g),h&&i1.push(h),{destroy:()=>{function y(){var _;(_=u.current)===null||_===void 0||_.destroy()}u.current?y():r(_=>[].concat(Tt(_),[y]))},update:y=>{function _(){var S;(S=u.current)===null||S===void 0||S.update(y)}u.current?_():r(S=>[].concat(Tt(S),[_]))},then:y=>(p=!0,f.then(y))}},[]);return[m.useMemo(()=>({info:i(W9e),success:i(Y9e),error:i(q9e),warning:i(G9e),confirm:i(K9e)}),[]),m.createElement(pLt,{key:"modal-holder",ref:e})]}const hLt=e=>{const{componentCls:n,notificationMarginEdge:r,animationMaxHeight:i}=e,o=`${n}-notice`,a=new kr("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),s=new kr("antNotificationTopFadeIn",{"0%":{top:-i,opacity:0},"100%":{top:0,opacity:1}}),l=new kr("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(i).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new kr("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[n]:{[`&${n}-top, &${n}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${n}-top`]:{[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:s}},[`&${n}-bottom`]:{[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:l}},[`&${n}-topRight, &${n}-bottomRight`]:{[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:a}},[`&${n}-topLeft, &${n}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:r,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:c}}}}},gLt=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],mLt={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},vLt=(e,n)=>{const{componentCls:r}=e;return{[`${r}-${n}`]:{[`&${r}-stack > ${r}-notice-wrapper`]:{[n.startsWith("top")?"top":"bottom"]:0,[mLt[n]]:{value:0,_skip_check_:!0}}}}},yLt=e=>{const n={};for(let r=1;r<e.notificationStackLayer;r++)n[`&:nth-last-child(${r+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},n)},_Lt=e=>{const n={};for(let r=1;r<e.notificationStackLayer;r++)n[`&:nth-last-child(${r+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},n)},bLt=e=>{const{componentCls:n}=e;return Object.assign({[`${n}-stack`]:{[`& > ${n}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},yLt(e))},[`${n}-stack:not(${n}-stack-expanded)`]:{[`& > ${n}-notice-wrapper`]:Object.assign({},_Lt(e))},[`${n}-stack${n}-stack-expanded`]:{[`& > ${n}-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"}}}},gLt.map(r=>vLt(e,r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{}))},SLt=e=>{const{iconCls:n,componentCls:r,boxShadow:i,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:s,colorSuccess:l,colorInfo:c,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:p,notificationPadding:h,notificationMarginEdge:g,notificationProgressBg:v,notificationProgressHeight:y,fontSize:_,lineHeight:S,width:b,notificationIconSize:E,colorText:w}=e,C=`${r}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:p,borderRadius:s,boxShadow:i,[C]:{padding:h,width:b,maxWidth:`calc(100vw - ${Ye(e.calc(g).mul(2).equal())})`,overflow:"hidden",lineHeight:S,wordWrap:"break-word"},[`${C}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${C}-description`]:{fontSize:_,color:w},[`${C}-closable ${C}-message`]:{paddingInlineEnd:e.paddingLG},[`${C}-with-icon ${C}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(E).equal(),fontSize:o},[`${C}-with-icon ${C}-description`]:{marginInlineStart:e.calc(e.marginSM).add(E).equal(),fontSize:_},[`${C}-icon`]:{position:"absolute",fontSize:E,lineHeight:1,[`&-success${n}`]:{color:l},[`&-info${n}`]:{color:c},[`&-warning${n}`]:{color:u},[`&-error${n}`]:{color:d}},[`${C}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Rp(e)),[`${C}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${Ye(s)} * 2)`,left:{_skip_check_:!0,value:s},right:{_skip_check_:!0,value:s},bottom:0,blockSize:y,border:0,"&, &::-webkit-progress-bar":{borderRadius:s,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:v},"&::-webkit-progress-value":{borderRadius:s,background:v}},[`${C}-btn`]:{float:"right",marginTop:e.marginSM}}},ELt=e=>{const{componentCls:n,notificationMarginBottom:r,notificationMarginEdge:i,motionDurationMid:o,motionEaseInOut:a}=e,s=`${n}-notice`,l=new kr("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:r},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:Object.assign(Object.assign({},li(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:i,_skip_check_:!0},[`${n}-hook-holder`]:{position:"relative"},[`${n}-fade-appear-prepare`]:{opacity:"0 !important"},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:a,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${s}-btn`]:{float:"left"}}})},{[n]:{[`${s}-wrapper`]:Object.assign({},SLt(e))}}]},CLt=e=>({zIndexPopup:e.zIndexPopupBase+Cue+50,width:384}),wLt=e=>{const n=e.paddingMD,r=e.paddingLG;return wr(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:n,notificationPaddingHorizontal:r,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Ye(e.paddingMD)} ${Ye(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},xLt=Yr("Notification",e=>{const n=wLt(e);return[ELt(n),hLt(n),bLt(n)]},CLt);function Q9e(e,n){return n===null||n===!1?null:n||m.createElement(Up,{className:`${e}-close-icon`})}const TLt={success:tw,info:D9,error:tv,warning:eS},OLt=e=>{const{prefixCls:n,icon:r,type:i,message:o,description:a,btn:s,role:l="alert"}=e;let c=null;return r?c=m.createElement("span",{className:`${n}-icon`},r):i&&(c=m.createElement(TLt[i]||null,{className:Ce(`${n}-icon`,`${n}-icon-${i}`)})),m.createElement("div",{className:Ce({[`${n}-with-icon`]:c}),role:l},c,m.createElement("div",{className:`${n}-message`},o),m.createElement("div",{className:`${n}-description`},a),s&&m.createElement("div",{className:`${n}-btn`},s))};function RLt(e,n,r){let i;switch(e){case"top":i={left:"50%",transform:"translateX(-50%)",right:"auto",top:n,bottom:"auto"};break;case"topLeft":i={left:0,top:n,bottom:"auto"};break;case"topRight":i={right:0,top:n,bottom:"auto"};break;case"bottom":i={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:r};break;case"bottomLeft":i={left:0,top:"auto",bottom:r};break;default:i={right:0,top:"auto",bottom:r};break}return i}function ILt(e){return{motionName:`${e}-fade`}}var NLt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const O1e=24,MLt=4.5,PLt="topRight",ALt=e=>{let{children:n,prefixCls:r}=e;const i=po(r),[o,a,s]=xLt(r,i);return o(V.createElement(W7e,{classNames:{list:Ce(a,s,i)}},n))},DLt=(e,n)=>{let{prefixCls:r,key:i}=n;return V.createElement(ALt,{prefixCls:r,key:i},e)},kLt=V.forwardRef((e,n)=>{const{top:r,bottom:i,prefixCls:o,getContainer:a,maxCount:s,rtl:l,onAllRemoved:c,stack:u,duration:d,pauseOnHover:f=!0,showProgress:p}=e,{getPrefixCls:h,getPopupContainer:g,notification:v,direction:y}=m.useContext(Cn),[,_]=Nl(),S=o||h("notification"),b=T=>RLt(T,r??O1e,i??O1e),E=()=>Ce({[`${S}-rtl`]:l??y==="rtl"}),w=()=>ILt(S),[C,x]=Y7e({prefixCls:S,style:b,className:E,motion:w,closable:!0,closeIcon:Q9e(S),duration:d??MLt,getContainer:()=>(a==null?void 0:a())||(g==null?void 0:g())||document.body,maxCount:s,pauseOnHover:f,showProgress:p,onAllRemoved:c,renderNotifications:DLt,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:_.margin}});return V.useImperativeHandle(n,()=>Object.assign(Object.assign({},C),{prefixCls:S,notification:v})),x});function LLt(e){const n=V.useRef(null);return JC(),[V.useMemo(()=>{const i=l=>{var c;if(!n.current)return;const{open:u,prefixCls:d,notification:f}=n.current,p=`${d}-notice`,{message:h,description:g,icon:v,type:y,btn:_,className:S,style:b,role:E="alert",closeIcon:w,closable:C}=l,x=NLt(l,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),T=Q9e(p,typeof w<"u"?w:f==null?void 0:f.closeIcon);return u(Object.assign(Object.assign({placement:(c=e==null?void 0:e.placement)!==null&&c!==void 0?c:PLt},x),{content:V.createElement(OLt,{prefixCls:p,icon:v,type:y,message:h,description:g,btn:_,role:E}),className:Ce(y&&`${p}-${y}`,S,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),b),closeIcon:T,closable:C??!!T}))},a={open:i,destroy:l=>{var c,u;l!==void 0?(c=n.current)===null||c===void 0||c.close(l):(u=n.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(l=>{a[l]=c=>i(Object.assign(Object.assign({},c),{type:l}))}),a},[]),V.createElement(kLt,Object.assign({key:"notification-holder"},e,{ref:n}))]}function $Lt(e){return LLt(e)}const rie=V.createContext({}),Z9e=V.createContext({message:{},notification:{},modal:{}}),FLt=e=>{const{componentCls:n,colorText:r,fontSize:i,lineHeight:o,fontFamily:a}=e;return{[n]:{color:r,fontSize:i,lineHeight:o,fontFamily:a,[`&${n}-rtl`]:{direction:"rtl"}}}},BLt=()=>({}),jLt=Yr("App",FLt,BLt),ULt=()=>V.useContext(Z9e),Z9=e=>{const{prefixCls:n,children:r,className:i,rootClassName:o,message:a,notification:s,style:l,component:c="div"}=e,{direction:u,getPrefixCls:d}=m.useContext(Cn),f=d("app",n),[p,h,g]=jLt(f),v=Ce(h,f,i,o,g,{[`${f}-rtl`]:u==="rtl"}),y=m.useContext(rie),_=V.useMemo(()=>({message:Object.assign(Object.assign({},y.message),a),notification:Object.assign(Object.assign({},y.notification),s)}),[a,s,y.message,y.notification]),[S,b]=Z7e(_.message),[E,w]=$Lt(_.notification),[C,x]=X9e(),T=V.useMemo(()=>({message:S,notification:E,modal:C}),[S,E,C]);JC()(!(g&&c===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const R=c===!1?V.Fragment:c,O={className:v,style:l};return p(V.createElement(Z9e.Provider,{value:T},V.createElement(rie.Provider,{value:_},V.createElement(R,Object.assign({},c===!1?void 0:O),x,b,w,r))))};Z9.useApp=ULt;function J9e(e){return n=>m.createElement(or,{theme:{token:{motion:!1,zIndexPopupBase:0}}},m.createElement(e,Object.assign({},n)))}const tS=(e,n,r,i,o)=>J9e(s=>{const{prefixCls:l,style:c}=s,u=m.useRef(null),[d,f]=m.useState(0),[p,h]=m.useState(0),[g,v]=dr(!1,{value:s.open}),{getPrefixCls:y}=m.useContext(Cn),_=y(i||"select",l);m.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const E=new ResizeObserver(C=>{const x=C[0].target;f(x.offsetHeight+8),h(x.offsetWidth)}),w=setInterval(()=>{var C;const x=o?`.${o(_)}`:`.${_}-dropdown`,T=(C=u.current)===null||C===void 0?void 0:C.querySelector(x);T&&(clearInterval(w),E.observe(T))},10);return()=>{clearInterval(w),E.disconnect()}}},[]);let S=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},c),{margin:0}),open:g,visible:g,getPopupContainer:()=>u.current});r&&(S=r(S)),n&&Object.assign(S,{[n]:{overflow:{adjustX:!1,adjustY:!1}}});const b={paddingBottom:d,position:"relative",minWidth:p};return m.createElement("div",{ref:u,style:b},m.createElement(e,Object.assign({},S)))}),J9=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 eU=function(n){var r=n.className,i=n.customizeIcon,o=n.customizeIconProps,a=n.children,s=n.onMouseDown,l=n.onClick,c=typeof i=="function"?i(o):i;return m.createElement("span",{className:r,onMouseDown:function(d){d.preventDefault(),s==null||s(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},c!==void 0?c:m.createElement("span",{className:Ce(r.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},a))},HLt=function(n,r,i,o,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=V.useMemo(function(){if(cn(o)==="object")return o.clearIcon;if(a)return a},[o,a]),d=V.useMemo(function(){return!!(!s&&o&&(i.length||l)&&!(c==="combobox"&&l===""))},[o,s,i.length,l,c]);return{allowClear:d,clearIcon:V.createElement(eU,{className:"".concat(n,"-clear"),onMouseDown:r,customizeIcon:u},"×")}},eUe=m.createContext(null);function jue(){return m.useContext(eUe)}function zLt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,n=m.useState(!1),r=ke(n,2),i=r[0],o=r[1],a=m.useRef(null),s=function(){window.clearTimeout(a.current)};m.useEffect(function(){return s},[]);var l=function(u,d){s(),a.current=window.setTimeout(function(){o(u),d&&d()},e)};return[i,l,s]}function tUe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,n=m.useRef(null),r=m.useRef(null);m.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function i(o){(o||n.current===null)&&(n.current=o),window.clearTimeout(r.current),r.current=window.setTimeout(function(){n.current=null},e)}return[function(){return n.current},i]}function VLt(e,n,r,i){var o=m.useRef(null);o.current={open:n,triggerOpen:r,customizedTrigger:i},m.useEffect(function(){function a(s){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var c=s.target;c.shadowRoot&&s.composed&&(c=s.composedPath()[0]||c),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function GLt(e){return e&&![At.ESC,At.SHIFT,At.BACKSPACE,At.TAB,At.WIN_KEY,At.ALT,At.META,At.WIN_KEY_RIGHT,At.CTRL,At.SEMICOLON,At.EQUALS,At.CAPS_LOCK,At.CONTEXT_MENU,At.F1,At.F2,At.F3,At.F4,At.F5,At.F6,At.F7,At.F8,At.F9,At.F10,At.F11,At.F12].includes(e)}var WLt=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],vx=void 0;function YLt(e,n){var r=e.prefixCls,i=e.invalidate,o=e.item,a=e.renderItem,s=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,p=e.children,h=e.display,g=e.order,v=e.component,y=v===void 0?"div":v,_=Xt(e,WLt),S=s&&!h;function b(T){c(u,T)}m.useEffect(function(){return function(){b(null)}},[]);var E=a&&o!==vx?a(o):p,w;i||(w={opacity:S?0:1,height:S?0:vx,overflowY:S?"hidden":vx,order:s?g:vx,pointerEvents:S?"none":vx,position:S?"absolute":vx});var C={};S&&(C["aria-hidden"]=!0);var x=m.createElement(y,ft({className:Ce(!i&&r,d),style:ee(ee({},w),f)},C,_,{ref:n}),E);return s&&(x=m.createElement(Hc,{onResize:function(R){var O=R.offsetWidth;b(O)},disabled:l},x)),x}var Z2=m.forwardRef(YLt);Z2.displayName="Item";function qLt(e){if(typeof MessageChannel>"u")Dr(e);else{var n=new MessageChannel;n.port1.onmessage=function(){return e()},n.port2.postMessage(void 0)}}function KLt(){var e=m.useRef(null),n=function(i){e.current||(e.current=[],qLt(function(){Us.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(i)};return n}function oM(e,n){var r=m.useState(n),i=ke(r,2),o=i[0],a=i[1],s=Sr(function(l){e(function(){a(l)})});return[o,s]}var j8=V.createContext(null),XLt=["component"],QLt=["className"],ZLt=["className"],JLt=function(n,r){var i=m.useContext(j8);if(!i){var o=n.component,a=o===void 0?"div":o,s=Xt(n,XLt);return m.createElement(a,ft({},s,{ref:r}))}var l=i.className,c=Xt(i,QLt),u=n.className,d=Xt(n,ZLt);return m.createElement(j8.Provider,{value:null},m.createElement(Z2,ft({ref:r,className:Ce(l,u)},c,d)))},nUe=m.forwardRef(JLt);nUe.displayName="RawItem";var e$t=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],rUe="responsive",iUe="invalidate";function t$t(e){return"+ ".concat(e.length," ...")}function n$t(e,n){var r=e.prefixCls,i=r===void 0?"rc-overflow":r,o=e.data,a=o===void 0?[]:o,s=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,p=e.style,h=e.className,g=e.maxCount,v=e.renderRest,y=e.renderRawRest,_=e.suffix,S=e.component,b=S===void 0?"div":S,E=e.itemComponent,w=e.onVisibleChange,C=Xt(e,e$t),x=f==="full",T=KLt(),R=oM(T,null),O=ke(R,2),M=O[0],P=O[1],k=M||0,$=oM(T,new Map),U=ke($,2),z=U[0],D=U[1],B=oM(T,0),Y=ke(B,2),q=Y[0],K=Y[1],H=oM(T,0),G=ke(H,2),Q=G[0],le=G[1],Z=oM(T,0),j=ke(Z,2),F=j[0],te=j[1],oe=m.useState(null),de=ke(oe,2),pe=de[0],me=de[1],ve=m.useState(null),he=ke(ve,2),be=he[0],we=he[1],De=m.useMemo(function(){return be===null&&x?Number.MAX_SAFE_INTEGER:be||0},[be,M]),Ae=m.useState(!1),Ee=ke(Ae,2),Re=Ee[0],Te=Ee[1],Oe="".concat(i,"-item"),Ne=Math.max(q,Q),je=g===rUe,ne=a.length&&je,J=g===iUe,ae=ne||typeof g=="number"&&a.length>g,Se=m.useMemo(function(){var Bt=a;return ne?M===null&&x?Bt=a:Bt=a.slice(0,Math.min(a.length,k/d)):typeof g=="number"&&(Bt=a.slice(0,g)),Bt},[a,d,M,g,ne]),xe=m.useMemo(function(){return ne?a.slice(De+1):a.slice(Se.length)},[a,Se,ne,De]),ue=m.useCallback(function(Bt,Vt){var rn;return typeof c=="function"?c(Bt):(rn=c&&(Bt==null?void 0:Bt[c]))!==null&&rn!==void 0?rn:Vt},[c]),Me=m.useCallback(s||function(Bt){return Bt},[s]);function $e(Bt,Vt,rn){be===Bt&&(Vt===void 0||Vt===pe)||(we(Bt),rn||(Te(Bt<a.length-1),w==null||w(Bt)),Vt!==void 0&&me(Vt))}function ge(Bt,Vt){P(Vt.clientWidth)}function Ve(Bt,Vt){D(function(rn){var tt=new Map(rn);return Vt===null?tt.delete(Bt):tt.set(Bt,Vt),tt})}function st(Bt,Vt){le(Vt),K(Q)}function Je(Bt,Vt){te(Vt)}function ot(Bt){return z.get(ue(Se[Bt],Bt))}ti(function(){if(k&&typeof Ne=="number"&&Se){var Bt=F,Vt=Se.length,rn=Vt-1;if(!Vt){$e(0,null);return}for(var tt=0;tt<Vt;tt+=1){var it=ot(tt);if(x&&(it=it||0),it===void 0){$e(tt-1,void 0,!0);break}if(Bt+=it,rn===0&&Bt<=k||tt===rn-1&&Bt+ot(rn)<=k){$e(rn,null);break}else if(Bt+Ne>k){$e(tt-1,Bt-it-F+Q);break}}_&&ot(0)+F>k&&me(null)}},[k,z,Q,F,ue,Se]);var Xe=Re&&!!xe.length,Ze={};pe!==null&&ne&&(Ze={position:"absolute",left:pe,top:0});var bt={prefixCls:Oe,responsive:ne,component:E,invalidate:J},at=l?function(Bt,Vt){var rn=ue(Bt,Vt);return m.createElement(j8.Provider,{key:rn,value:ee(ee({},bt),{},{order:Vt,item:Bt,itemKey:rn,registerSize:Ve,display:Vt<=De})},l(Bt,Vt))}:function(Bt,Vt){var rn=ue(Bt,Vt);return m.createElement(Z2,ft({},bt,{order:Vt,key:rn,item:Bt,renderItem:Me,itemKey:rn,registerSize:Ve,display:Vt<=De}))},pt,Ct={order:Xe?De:Number.MAX_SAFE_INTEGER,className:"".concat(Oe,"-rest"),registerSize:st,display:Xe};if(y)y&&(pt=m.createElement(j8.Provider,{value:ee(ee({},bt),Ct)},y(xe)));else{var It=v||t$t;pt=m.createElement(Z2,ft({},bt,Ct),typeof It=="function"?It(xe):It)}var Wt=m.createElement(b,ft({className:Ce(!J&&i,h),style:p,ref:n},C),Se.map(at),ae?pt:null,_&&m.createElement(Z2,ft({},bt,{responsive:je,responsiveDisabled:!ne,order:De,className:"".concat(Oe,"-suffix"),registerSize:Je,display:!0,style:Ze}),_));return je&&(Wt=m.createElement(Hc,{onResize:ge,disabled:!ne},Wt)),Wt}var Vh=m.forwardRef(n$t);Vh.displayName="Overflow";Vh.Item=nUe;Vh.RESPONSIVE=rUe;Vh.INVALIDATE=iUe;var r$t=function(n,r){var i,o=n.prefixCls,a=n.id,s=n.inputElement,l=n.disabled,c=n.tabIndex,u=n.autoFocus,d=n.autoComplete,f=n.editable,p=n.activeDescendantId,h=n.value,g=n.maxLength,v=n.onKeyDown,y=n.onMouseDown,_=n.onChange,S=n.onPaste,b=n.onCompositionStart,E=n.onCompositionEnd,w=n.onBlur,C=n.open,x=n.attrs,T=s||m.createElement("input",null),R=T,O=R.ref,M=R.props,P=M.onKeyDown,k=M.onChange,$=M.onMouseDown,U=M.onCompositionStart,z=M.onCompositionEnd,D=M.onBlur,B=M.style;return"maxLength"in T.props,T=m.cloneElement(T,ee(ee(ee({type:"search"},M),{},{id:a,ref:Il(r,O),disabled:l,tabIndex:c,autoComplete:d||"off",autoFocus:u,className:Ce("".concat(o,"-selection-search-input"),(i=T)===null||i===void 0||(i=i.props)===null||i===void 0?void 0:i.className),role:"combobox","aria-expanded":C||!1,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":C?p:void 0},x),{},{value:f?h:"",maxLength:g,readOnly:!f,unselectable:f?null:"on",style:ee(ee({},B),{},{opacity:f?null:0}),onKeyDown:function(q){v(q),P&&P(q)},onMouseDown:function(q){y(q),$&&$(q)},onChange:function(q){_(q),k&&k(q)},onCompositionStart:function(q){b(q),U&&U(q)},onCompositionEnd:function(q){E(q),z&&z(q)},onPaste:S,onBlur:function(q){w(q),D&&D(q)}})),T},oUe=m.forwardRef(r$t);function aUe(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var i$t=typeof window<"u"&&window.document&&window.document.documentElement,o$t=i$t;function a$t(e){return e!=null}function s$t(e){return!e&&e!==0}function R1e(e){return["string","number"].includes(cn(e))}function sUe(e){var n=void 0;return e&&(R1e(e.title)?n=e.title.toString():R1e(e.label)&&(n=e.label.toString())),n}function l$t(e,n){o$t?m.useLayoutEffect(e,n):m.useEffect(e,n)}function c$t(e){var n;return(n=e.key)!==null&&n!==void 0?n:e.value}var I1e=function(n){n.preventDefault(),n.stopPropagation()},u$t=function(n){var r=n.id,i=n.prefixCls,o=n.values,a=n.open,s=n.searchValue,l=n.autoClearSearchValue,c=n.inputRef,u=n.placeholder,d=n.disabled,f=n.mode,p=n.showSearch,h=n.autoFocus,g=n.autoComplete,v=n.activeDescendantId,y=n.tabIndex,_=n.removeIcon,S=n.maxTagCount,b=n.maxTagTextLength,E=n.maxTagPlaceholder,w=E===void 0?function(ve){return"+ ".concat(ve.length," ...")}:E,C=n.tagRender,x=n.onToggleOpen,T=n.onRemove,R=n.onInputChange,O=n.onInputPaste,M=n.onInputKeyDown,P=n.onInputMouseDown,k=n.onInputCompositionStart,$=n.onInputCompositionEnd,U=n.onInputBlur,z=m.useRef(null),D=m.useState(0),B=ke(D,2),Y=B[0],q=B[1],K=m.useState(!1),H=ke(K,2),G=H[0],Q=H[1],le="".concat(i,"-selection"),Z=a||f==="multiple"&&l===!1||f==="tags"?s:"",j=f==="tags"||f==="multiple"&&l===!1||p&&(a||G);l$t(function(){q(z.current.scrollWidth)},[Z]);var F=function(he,be,we,De,Ae){return m.createElement("span",{title:sUe(he),className:Ce("".concat(le,"-item"),fe({},"".concat(le,"-item-disabled"),we))},m.createElement("span",{className:"".concat(le,"-item-content")},be),De&&m.createElement(eU,{className:"".concat(le,"-item-remove"),onMouseDown:I1e,onClick:Ae,customizeIcon:_},"×"))},te=function(he,be,we,De,Ae,Ee){var Re=function(Oe){I1e(Oe),x(!a)};return m.createElement("span",{onMouseDown:Re},C({label:be,value:he,disabled:we,closable:De,onClose:Ae,isMaxTag:!!Ee}))},oe=function(he){var be=he.disabled,we=he.label,De=he.value,Ae=!d&&!be,Ee=we;if(typeof b=="number"&&(typeof we=="string"||typeof we=="number")){var Re=String(Ee);Re.length>b&&(Ee="".concat(Re.slice(0,b),"..."))}var Te=function(Ne){Ne&&Ne.stopPropagation(),T(he)};return typeof C=="function"?te(De,Ee,be,Ae,Te):F(he,Ee,be,Ae,Te)},de=function(he){if(!o.length)return null;var be=typeof w=="function"?w(he):w;return typeof C=="function"?te(void 0,be,!1,!1,void 0,!0):F({title:be},be,!1)},pe=m.createElement("div",{className:"".concat(le,"-search"),style:{width:Y},onFocus:function(){Q(!0)},onBlur:function(){Q(!1)}},m.createElement(oUe,{ref:c,open:a,prefixCls:i,id:r,inputElement:null,disabled:d,autoFocus:h,autoComplete:g,editable:j,activeDescendantId:v,value:Z,onKeyDown:M,onMouseDown:P,onChange:R,onPaste:O,onCompositionStart:k,onCompositionEnd:$,onBlur:U,tabIndex:y,attrs:Va(n,!0)}),m.createElement("span",{ref:z,className:"".concat(le,"-search-mirror"),"aria-hidden":!0},Z," ")),me=m.createElement(Vh,{prefixCls:"".concat(le,"-overflow"),data:o,renderItem:oe,renderRest:de,suffix:pe,itemKey:c$t,maxCount:S});return m.createElement("span",{className:"".concat(le,"-wrap")},me,!o.length&&!Z&&m.createElement("span",{className:"".concat(le,"-placeholder")},u))},d$t=function(n){var r=n.inputElement,i=n.prefixCls,o=n.id,a=n.inputRef,s=n.disabled,l=n.autoFocus,c=n.autoComplete,u=n.activeDescendantId,d=n.mode,f=n.open,p=n.values,h=n.placeholder,g=n.tabIndex,v=n.showSearch,y=n.searchValue,_=n.activeValue,S=n.maxLength,b=n.onInputKeyDown,E=n.onInputMouseDown,w=n.onInputChange,C=n.onInputPaste,x=n.onInputCompositionStart,T=n.onInputCompositionEnd,R=n.onInputBlur,O=n.title,M=m.useState(!1),P=ke(M,2),k=P[0],$=P[1],U=d==="combobox",z=U||v,D=p[0],B=y||"";U&&_&&!k&&(B=_),m.useEffect(function(){U&&$(!1)},[U,_]);var Y=d!=="combobox"&&!f&&!v?!1:!!B,q=O===void 0?sUe(D):O,K=m.useMemo(function(){return D?null:m.createElement("span",{className:"".concat(i,"-selection-placeholder"),style:Y?{visibility:"hidden"}:void 0},h)},[D,Y,h,i]);return m.createElement("span",{className:"".concat(i,"-selection-wrap")},m.createElement("span",{className:"".concat(i,"-selection-search")},m.createElement(oUe,{ref:a,prefixCls:i,id:o,open:f,inputElement:r,disabled:s,autoFocus:l,autoComplete:c,editable:z,activeDescendantId:u,value:B,onKeyDown:b,onMouseDown:E,onChange:function(G){$(!0),w(G)},onPaste:C,onCompositionStart:x,onCompositionEnd:T,onBlur:R,tabIndex:g,attrs:Va(n,!0),maxLength:U?S:void 0})),!U&&D?m.createElement("span",{className:"".concat(i,"-selection-item"),title:q,style:Y?{visibility:"hidden"}:void 0},D.label):null,K)},f$t=function(n,r){var i=m.useRef(null),o=m.useRef(!1),a=n.prefixCls,s=n.open,l=n.mode,c=n.showSearch,u=n.tokenWithEnter,d=n.disabled,f=n.prefix,p=n.autoClearSearchValue,h=n.onSearch,g=n.onSearchSubmit,v=n.onToggleOpen,y=n.onInputKeyDown,_=n.onInputBlur,S=n.domRef;m.useImperativeHandle(r,function(){return{focus:function(q){i.current.focus(q)},blur:function(){i.current.blur()}}});var b=tUe(0),E=ke(b,2),w=E[0],C=E[1],x=function(q){var K=q.which,H=i.current instanceof HTMLTextAreaElement;!H&&s&&(K===At.UP||K===At.DOWN)&&q.preventDefault(),y&&y(q),K===At.ENTER&&l==="tags"&&!o.current&&!s&&(g==null||g(q.target.value)),!(H&&!s&&~[At.UP,At.DOWN,At.LEFT,At.RIGHT].indexOf(K))&&GLt(K)&&v(!0)},T=function(){C(!0)},R=m.useRef(null),O=function(q){h(q,!0,o.current)!==!1&&v(!0)},M=function(){o.current=!0},P=function(q){o.current=!1,l!=="combobox"&&O(q.target.value)},k=function(q){var K=q.target.value;if(u&&R.current&&/[\r\n]/.test(R.current)){var H=R.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");K=K.replace(H,R.current)}R.current=null,O(K)},$=function(q){var K=q.clipboardData,H=K==null?void 0:K.getData("text");R.current=H||""},U=function(q){var K=q.target;if(K!==i.current){var H=document.body.style.msTouchAction!==void 0;H?setTimeout(function(){i.current.focus()}):i.current.focus()}},z=function(q){var K=w();q.target!==i.current&&!K&&!(l==="combobox"&&d)&&q.preventDefault(),(l!=="combobox"&&(!c||!K)||!s)&&(s&&p!==!1&&h("",!0,!1),v())},D={inputRef:i,onInputKeyDown:x,onInputMouseDown:T,onInputChange:k,onInputPaste:$,onInputCompositionStart:M,onInputCompositionEnd:P,onInputBlur:_},B=l==="multiple"||l==="tags"?m.createElement(u$t,ft({},n,D)):m.createElement(d$t,ft({},n,D));return m.createElement("div",{ref:S,className:"".concat(a,"-selector"),onClick:U,onMouseDown:z},f&&m.createElement("div",{className:"".concat(a,"-prefix")},f),B)},p$t=m.forwardRef(f$t);function h$t(e){var n=e.prefixCls,r=e.align,i=e.arrow,o=e.arrowPos,a=i||{},s=a.className,l=a.content,c=o.x,u=c===void 0?0:c,d=o.y,f=d===void 0?0:d,p=m.useRef();if(!r||!r.points)return null;var h={position:"absolute"};if(r.autoArrow!==!1){var g=r.points[0],v=r.points[1],y=g[0],_=g[1],S=v[0],b=v[1];y===S||!["t","b"].includes(y)?h.top=f:y==="t"?h.top=0:h.bottom=0,_===b||!["l","r"].includes(_)?h.left=u:_==="l"?h.left=0:h.right=0}return m.createElement("div",{ref:p,className:Ce("".concat(n,"-arrow"),s),style:h},l)}function g$t(e){var n=e.prefixCls,r=e.open,i=e.zIndex,o=e.mask,a=e.motion;return o?m.createElement(Ws,ft({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(s){var l=s.className;return m.createElement("div",{style:{zIndex:i},className:Ce("".concat(n,"-mask"),l)})}):null}var m$t=m.memo(function(e){var n=e.children;return n},function(e,n){return n.cache}),v$t=m.forwardRef(function(e,n){var r=e.popup,i=e.className,o=e.prefixCls,a=e.style,s=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,p=e.mask,h=e.arrow,g=e.arrowPos,v=e.align,y=e.motion,_=e.maskMotion,S=e.forceRender,b=e.getPopupContainer,E=e.autoDestroy,w=e.portal,C=e.zIndex,x=e.onMouseEnter,T=e.onMouseLeave,R=e.onPointerEnter,O=e.onPointerDownCapture,M=e.ready,P=e.offsetX,k=e.offsetY,$=e.offsetR,U=e.offsetB,z=e.onAlign,D=e.onPrepare,B=e.stretch,Y=e.targetWidth,q=e.targetHeight,K=typeof r=="function"?r():r,H=c||u,G=(b==null?void 0:b.length)>0,Q=m.useState(!b||!G),le=ke(Q,2),Z=le[0],j=le[1];if(ti(function(){!Z&&G&&s&&j(!0)},[Z,G,s]),!Z)return null;var F="auto",te={left:"-1000vw",top:"-1000vh",right:F,bottom:F};if(M||!c){var oe,de=v.points,pe=v.dynamicInset||((oe=v._experimental)===null||oe===void 0?void 0:oe.dynamicInset),me=pe&&de[0][1]==="r",ve=pe&&de[0][0]==="b";me?(te.right=$,te.left=F):(te.left=P,te.right=F),ve?(te.bottom=U,te.top=F):(te.top=k,te.bottom=F)}var he={};return B&&(B.includes("height")&&q?he.height=q:B.includes("minHeight")&&q&&(he.minHeight=q),B.includes("width")&&Y?he.width=Y:B.includes("minWidth")&&Y&&(he.minWidth=Y)),c||(he.pointerEvents="none"),m.createElement(w,{open:S||H,getContainer:b&&function(){return b(s)},autoDestroy:E},m.createElement(g$t,{prefixCls:o,open:c,zIndex:C,mask:p,motion:_}),m.createElement(Hc,{onResize:z,disabled:!c},function(be){return m.createElement(Ws,ft({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:"".concat(o,"-hidden")},y,{onAppearPrepare:D,onEnterPrepare:D,visible:c,onVisibleChanged:function(De){var Ae;y==null||(Ae=y.onVisibleChanged)===null||Ae===void 0||Ae.call(y,De),l(De)}}),function(we,De){var Ae=we.className,Ee=we.style,Re=Ce(o,Ae,i);return m.createElement("div",{ref:Il(be,n,De),className:Re,style:ee(ee(ee(ee({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},te),he),Ee),{},{boxSizing:"border-box",zIndex:C},a),onMouseEnter:x,onMouseLeave:T,onPointerEnter:R,onClick:f,onPointerDownCapture:O},h&&m.createElement(h$t,{prefixCls:o,arrow:h,arrowPos:g,align:v}),m.createElement(m$t,{cache:!c&&!d},K))})}))}),y$t=m.forwardRef(function(e,n){var r=e.children,i=e.getTriggerDOMNode,o=Xy(r),a=m.useCallback(function(l){tue(n,i?i(l):l)},[i]),s=yg(a,J0(r));return o?m.cloneElement(r,{ref:s}):r}),N1e=m.createContext(null);function M1e(e){return e?Array.isArray(e)?e:[e]:[]}function _$t(e,n,r,i){return m.useMemo(function(){var o=M1e(r??n),a=M1e(i??n),s=new Set(o),l=new Set(a);return e&&(s.has("hover")&&(s.delete("hover"),s.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[s,l]},[e,n,r,i])}function b$t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===n[0]:e[0]===n[0]&&e[1]===n[1]}function S$t(e,n,r,i){for(var o=r.points,a=Object.keys(e),s=0;s<a.length;s+=1){var l,c=a[s];if(b$t((l=e[c])===null||l===void 0?void 0:l.points,o,i))return"".concat(n,"-placement-").concat(c)}return""}function P1e(e,n,r,i){return n||(r?{motionName:"".concat(e,"-").concat(r)}:i?{motionName:i}:null)}function vk(e){return e.ownerDocument.defaultView}function iie(e){for(var n=[],r=e==null?void 0:e.parentElement,i=["hidden","scroll","clip","auto"];r;){var o=vk(r).getComputedStyle(r),a=o.overflowX,s=o.overflowY,l=o.overflow;[a,s,l].some(function(c){return i.includes(c)})&&n.push(r),r=r.parentElement}return n}function mA(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?n:e}function aM(e){return mA(parseFloat(e),0)}function A1e(e,n){var r=ee({},e);return(n||[]).forEach(function(i){if(!(i instanceof HTMLBodyElement||i instanceof HTMLHtmlElement)){var o=vk(i).getComputedStyle(i),a=o.overflow,s=o.overflowClipMargin,l=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=i.getBoundingClientRect(),p=i.offsetHeight,h=i.clientHeight,g=i.offsetWidth,v=i.clientWidth,y=aM(l),_=aM(c),S=aM(u),b=aM(d),E=mA(Math.round(f.width/g*1e3)/1e3),w=mA(Math.round(f.height/p*1e3)/1e3),C=(g-v-S-b)*E,x=(p-h-y-_)*w,T=y*w,R=_*w,O=S*E,M=b*E,P=0,k=0;if(a==="clip"){var $=aM(s);P=$*E,k=$*w}var U=f.x+O-P,z=f.y+T-k,D=U+f.width+2*P-O-M-C,B=z+f.height+2*k-T-R-x;r.left=Math.max(r.left,U),r.top=Math.max(r.top,z),r.right=Math.min(r.right,D),r.bottom=Math.min(r.bottom,B)}}),r}function D1e(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(n),i=r.match(/^(.*)\%$/);return i?e*(parseFloat(i[1])/100):parseFloat(r)}function k1e(e,n){var r=n||[],i=ke(r,2),o=i[0],a=i[1];return[D1e(e.width,o),D1e(e.height,a)]}function L1e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function yx(e,n){var r=n[0],i=n[1],o,a;return r==="t"?a=e.y:r==="b"?a=e.y+e.height:a=e.y+e.height/2,i==="l"?o=e.x:i==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function j_(e,n){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(i,o){return o===n?r[i]||"c":i}).join("")}function E$t(e,n,r,i,o,a,s){var l=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[i]||{}}),c=ke(l,2),u=c[0],d=c[1],f=m.useRef(0),p=m.useMemo(function(){return n?iie(n):[]},[n]),h=m.useRef({}),g=function(){h.current={}};e||g();var v=Sr(function(){if(n&&r&&e){let lr=function(Pi,Dl){var kl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ne,Ro=Q.x+Pi,Is=Q.y+Dl,ku=Ro+me,Lu=Is+pe,Mg=Math.max(Ro,kl.left),Wn=Math.max(Is,kl.top),Ir=Math.min(ku,kl.right),Li=Math.min(Lu,kl.bottom);return Math.max(0,(Ir-Mg)*(Li-Wn))},Kr=function(){En=Q.y+rn,Pt=En+pe,Qt=Q.x+Vt,ln=Qt+me};var S,b,E,w,C=n,x=C.ownerDocument,T=vk(C),R=T.getComputedStyle(C),O=R.width,M=R.height,P=R.position,k=C.style.left,$=C.style.top,U=C.style.right,z=C.style.bottom,D=C.style.overflow,B=ee(ee({},o[i]),a),Y=x.createElement("div");(S=C.parentElement)===null||S===void 0||S.appendChild(Y),Y.style.left="".concat(C.offsetLeft,"px"),Y.style.top="".concat(C.offsetTop,"px"),Y.style.position=P,Y.style.height="".concat(C.offsetHeight,"px"),Y.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var q;if(Array.isArray(r))q={x:r[0],y:r[1],width:0,height:0};else{var K,H,G=r.getBoundingClientRect();G.x=(K=G.x)!==null&&K!==void 0?K:G.left,G.y=(H=G.y)!==null&&H!==void 0?H:G.top,q={x:G.x,y:G.y,width:G.width,height:G.height}}var Q=C.getBoundingClientRect();Q.x=(b=Q.x)!==null&&b!==void 0?b:Q.left,Q.y=(E=Q.y)!==null&&E!==void 0?E:Q.top;var le=x.documentElement,Z=le.clientWidth,j=le.clientHeight,F=le.scrollWidth,te=le.scrollHeight,oe=le.scrollTop,de=le.scrollLeft,pe=Q.height,me=Q.width,ve=q.height,he=q.width,be={left:0,top:0,right:Z,bottom:j},we={left:-de,top:-oe,right:F-de,bottom:te-oe},De=B.htmlRegion,Ae="visible",Ee="visibleFirst";De!=="scroll"&&De!==Ee&&(De=Ae);var Re=De===Ee,Te=A1e(we,p),Oe=A1e(be,p),Ne=De===Ae?Oe:Te,je=Re?Oe:Ne;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var ne=C.getBoundingClientRect();C.style.left=k,C.style.top=$,C.style.right=U,C.style.bottom=z,C.style.overflow=D,(w=C.parentElement)===null||w===void 0||w.removeChild(Y);var J=mA(Math.round(me/parseFloat(O)*1e3)/1e3),ae=mA(Math.round(pe/parseFloat(M)*1e3)/1e3);if(J===0||ae===0||oA(r)&&!dk(r))return;var Se=B.offset,xe=B.targetOffset,ue=k1e(Q,Se),Me=ke(ue,2),$e=Me[0],ge=Me[1],Ve=k1e(q,xe),st=ke(Ve,2),Je=st[0],ot=st[1];q.x-=Je,q.y-=ot;var Xe=B.points||[],Ze=ke(Xe,2),bt=Ze[0],at=Ze[1],pt=L1e(at),Ct=L1e(bt),It=yx(q,pt),Wt=yx(Q,Ct),Bt=ee({},B),Vt=It.x-Wt.x+$e,rn=It.y-Wt.y+ge,tt=lr(Vt,rn),it=lr(Vt,rn,Oe),nt=yx(q,["t","l"]),vt=yx(Q,["t","l"]),kt=yx(q,["b","r"]),Dt=yx(Q,["b","r"]),Kt=B.overflow||{},Ht=Kt.adjustX,tn=Kt.adjustY,on=Kt.shiftX,sn=Kt.shiftY,Jt=function(Dl){return typeof Dl=="boolean"?Dl:Dl>=0},En,Pt,Qt,ln;Kr();var jt=Jt(tn),Lt=Ct[0]===pt[0];if(jt&&Ct[0]==="t"&&(Pt>je.bottom||h.current.bt)){var en=rn;Lt?en-=pe-ve:en=nt.y-Dt.y-ge;var Ue=lr(Vt,en),Zt=lr(Vt,en,Oe);Ue>tt||Ue===tt&&(!Re||Zt>=it)?(h.current.bt=!0,rn=en,ge=-ge,Bt.points=[j_(Ct,0),j_(pt,0)]):h.current.bt=!1}if(jt&&Ct[0]==="b"&&(En<je.top||h.current.tb)){var Et=rn;Lt?Et+=pe-ve:Et=kt.y-vt.y-ge;var Gt=lr(Vt,Et),zt=lr(Vt,Et,Oe);Gt>tt||Gt===tt&&(!Re||zt>=it)?(h.current.tb=!0,rn=Et,ge=-ge,Bt.points=[j_(Ct,0),j_(pt,0)]):h.current.tb=!1}var Vn=Jt(Ht),sr=Ct[1]===pt[1];if(Vn&&Ct[1]==="l"&&(ln>je.right||h.current.rl)){var A=Vt;sr?A-=me-he:A=nt.x-Dt.x-$e;var W=lr(A,rn),ce=lr(A,rn,Oe);W>tt||W===tt&&(!Re||ce>=it)?(h.current.rl=!0,Vt=A,$e=-$e,Bt.points=[j_(Ct,1),j_(pt,1)]):h.current.rl=!1}if(Vn&&Ct[1]==="r"&&(Qt<je.left||h.current.lr)){var Pe=Vt;sr?Pe+=me-he:Pe=kt.x-vt.x-$e;var qe=lr(Pe,rn),gt=lr(Pe,rn,Oe);qe>tt||qe===tt&&(!Re||gt>=it)?(h.current.lr=!0,Vt=Pe,$e=-$e,Bt.points=[j_(Ct,1),j_(pt,1)]):h.current.lr=!1}Kr();var Yt=on===!0?0:on;typeof Yt=="number"&&(Qt<Oe.left&&(Vt-=Qt-Oe.left-$e,q.x+he<Oe.left+Yt&&(Vt+=q.x-Oe.left+he-Yt)),ln>Oe.right&&(Vt-=ln-Oe.right-$e,q.x>Oe.right-Yt&&(Vt+=q.x-Oe.right+Yt)));var Nn=sn===!0?0:sn;typeof Nn=="number"&&(En<Oe.top&&(rn-=En-Oe.top-ge,q.y+ve<Oe.top+Nn&&(rn+=q.y-Oe.top+ve-Nn)),Pt>Oe.bottom&&(rn-=Pt-Oe.bottom-ge,q.y>Oe.bottom-Nn&&(rn+=q.y-Oe.bottom+Nn)));var Jn=Q.x+Vt,Ci=Jn+me,wi=Q.y+rn,to=wi+pe,Vr=q.x,wn=Vr+he,Bn=q.y,ni=Bn+ve,yn=Math.max(Jn,Vr),Sn=Math.min(Ci,wn),ur=(yn+Sn)/2,qr=ur-Jn,zi=Math.max(wi,Bn),Qo=Math.min(to,ni),gr=(zi+Qo)/2,Oo=gr-wi;s==null||s(n,Bt);var Pa=ne.right-Q.x-(Vt+Q.width),Er=ne.bottom-Q.y-(rn+Q.height);J===1&&(Vt=Math.round(Vt),Pa=Math.round(Pa)),ae===1&&(rn=Math.round(rn),Er=Math.round(Er));var nr={ready:!0,offsetX:Vt/J,offsetY:rn/ae,offsetR:Pa/J,offsetB:Er/ae,arrowX:qr/J,arrowY:Oo/ae,scaleX:J,scaleY:ae,align:Bt};d(nr)}}),y=function(){f.current+=1;var b=f.current;Promise.resolve().then(function(){f.current===b&&v()})},_=function(){d(function(b){return ee(ee({},b),{},{ready:!1})})};return ti(_,[i]),ti(function(){e||_()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,y]}function C$t(e,n,r,i,o){ti(function(){if(e&&n&&r){let f=function(){i(),o()};var a=n,s=r,l=iie(a),c=iie(s),u=vk(s),d=new Set([u].concat(Tt(l),Tt(c)));return d.forEach(function(p){p.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),i(),function(){d.forEach(function(p){p.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,n,r])}function w$t(e,n,r,i,o,a,s,l){var c=m.useRef(e);c.current=e;var u=m.useRef(!1);m.useEffect(function(){if(n&&i&&(!o||a)){var f=function(){u.current=!1},p=function(y){var _;c.current&&!s(((_=y.composedPath)===null||_===void 0||(_=_.call(y))===null||_===void 0?void 0:_[0])||y.target)&&!u.current&&l(!1)},h=vk(i);h.addEventListener("pointerdown",f,!0),h.addEventListener("mousedown",p,!0),h.addEventListener("contextmenu",p,!0);var g=$8(r);return g&&(g.addEventListener("mousedown",p,!0),g.addEventListener("contextmenu",p,!0)),function(){h.removeEventListener("pointerdown",f,!0),h.removeEventListener("mousedown",p,!0),h.removeEventListener("contextmenu",p,!0),g&&(g.removeEventListener("mousedown",p,!0),g.removeEventListener("contextmenu",p,!0))}}},[n,r,i,o,a]);function d(){u.current=!0}return d}var x$t=["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 T$t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hk,n=m.forwardRef(function(r,i){var o=r.prefixCls,a=o===void 0?"rc-trigger-popup":o,s=r.children,l=r.action,c=l===void 0?"hover":l,u=r.showAction,d=r.hideAction,f=r.popupVisible,p=r.defaultPopupVisible,h=r.onPopupVisibleChange,g=r.afterPopupVisibleChange,v=r.mouseEnterDelay,y=r.mouseLeaveDelay,_=y===void 0?.1:y,S=r.focusDelay,b=r.blurDelay,E=r.mask,w=r.maskClosable,C=w===void 0?!0:w,x=r.getPopupContainer,T=r.forceRender,R=r.autoDestroy,O=r.destroyPopupOnHide,M=r.popup,P=r.popupClassName,k=r.popupStyle,$=r.popupPlacement,U=r.builtinPlacements,z=U===void 0?{}:U,D=r.popupAlign,B=r.zIndex,Y=r.stretch,q=r.getPopupClassNameFromAlign,K=r.fresh,H=r.alignPoint,G=r.onPopupClick,Q=r.onPopupAlign,le=r.arrow,Z=r.popupMotion,j=r.maskMotion,F=r.popupTransitionName,te=r.popupAnimation,oe=r.maskTransitionName,de=r.maskAnimation,pe=r.className,me=r.getTriggerDOMNode,ve=Xt(r,x$t),he=R||O||!1,be=m.useState(!1),we=ke(be,2),De=we[0],Ae=we[1];ti(function(){Ae(J9())},[]);var Ee=m.useRef({}),Re=m.useContext(N1e),Te=m.useMemo(function(){return{registerSubPopup:function(Ir,Li){Ee.current[Ir]=Li,Re==null||Re.registerSubPopup(Ir,Li)}}},[Re]),Oe=K9(),Ne=m.useState(null),je=ke(Ne,2),ne=je[0],J=je[1],ae=m.useRef(null),Se=Sr(function(Wn){ae.current=Wn,oA(Wn)&&ne!==Wn&&J(Wn),Re==null||Re.registerSubPopup(Oe,Wn)}),xe=m.useState(null),ue=ke(xe,2),Me=ue[0],$e=ue[1],ge=m.useRef(null),Ve=Sr(function(Wn){oA(Wn)&&Me!==Wn&&($e(Wn),ge.current=Wn)}),st=m.Children.only(s),Je=(st==null?void 0:st.props)||{},ot={},Xe=Sr(function(Wn){var Ir,Li,ha=Me;return(ha==null?void 0:ha.contains(Wn))||((Ir=$8(ha))===null||Ir===void 0?void 0:Ir.host)===Wn||Wn===ha||(ne==null?void 0:ne.contains(Wn))||((Li=$8(ne))===null||Li===void 0?void 0:Li.host)===Wn||Wn===ne||Object.values(Ee.current).some(function(Zo){return(Zo==null?void 0:Zo.contains(Wn))||Wn===Zo})}),Ze=P1e(a,Z,te,F),bt=P1e(a,j,de,oe),at=m.useState(p||!1),pt=ke(at,2),Ct=pt[0],It=pt[1],Wt=f??Ct,Bt=Sr(function(Wn){f===void 0&&It(Wn)});ti(function(){It(f||!1)},[f]);var Vt=m.useRef(Wt);Vt.current=Wt;var rn=m.useRef([]);rn.current=[];var tt=Sr(function(Wn){var Ir;Bt(Wn),((Ir=rn.current[rn.current.length-1])!==null&&Ir!==void 0?Ir:Wt)!==Wn&&(rn.current.push(Wn),h==null||h(Wn))}),it=m.useRef(),nt=function(){clearTimeout(it.current)},vt=function(Ir){var Li=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;nt(),Li===0?tt(Ir):it.current=setTimeout(function(){tt(Ir)},Li*1e3)};m.useEffect(function(){return nt},[]);var kt=m.useState(!1),Dt=ke(kt,2),Kt=Dt[0],Ht=Dt[1];ti(function(Wn){(!Wn||Wt)&&Ht(!0)},[Wt]);var tn=m.useState(null),on=ke(tn,2),sn=on[0],Jt=on[1],En=m.useState(null),Pt=ke(En,2),Qt=Pt[0],ln=Pt[1],jt=function(Ir){ln([Ir.clientX,Ir.clientY])},Lt=E$t(Wt,ne,H&&Qt!==null?Qt:Me,$,z,D,Q),en=ke(Lt,11),Ue=en[0],Zt=en[1],Et=en[2],Gt=en[3],zt=en[4],Vn=en[5],sr=en[6],A=en[7],W=en[8],ce=en[9],Pe=en[10],qe=_$t(De,c,u,d),gt=ke(qe,2),Yt=gt[0],Nn=gt[1],Jn=Yt.has("click"),Ci=Nn.has("click")||Nn.has("contextMenu"),wi=Sr(function(){Kt||Pe()}),to=function(){Vt.current&&H&&Ci&&vt(!1)};C$t(Wt,Me,ne,wi,to),ti(function(){wi()},[Qt,$]),ti(function(){Wt&&!(z!=null&&z[$])&&wi()},[JSON.stringify(D)]);var Vr=m.useMemo(function(){var Wn=S$t(z,a,ce,H);return Ce(Wn,q==null?void 0:q(ce))},[ce,q,z,a,H]);m.useImperativeHandle(i,function(){return{nativeElement:ge.current,popupElement:ae.current,forceAlign:wi}});var wn=m.useState(0),Bn=ke(wn,2),ni=Bn[0],yn=Bn[1],Sn=m.useState(0),ur=ke(Sn,2),qr=ur[0],zi=ur[1],Qo=function(){if(Y&&Me){var Ir=Me.getBoundingClientRect();yn(Ir.width),zi(Ir.height)}},gr=function(){Qo(),wi()},Oo=function(Ir){Ht(!1),Pe(),g==null||g(Ir)},Pa=function(){return new Promise(function(Ir){Qo(),Jt(function(){return Ir})})};ti(function(){sn&&(Pe(),sn(),Jt(null))},[sn]);function Er(Wn,Ir,Li,ha){ot[Wn]=function(Zo){var Pg;ha==null||ha(Zo),vt(Ir,Li);for(var eh=arguments.length,go=new Array(eh>1?eh-1:0),no=1;no<eh;no++)go[no-1]=arguments[no];(Pg=Je[Wn])===null||Pg===void 0||Pg.call.apply(Pg,[Je,Zo].concat(go))}}(Jn||Ci)&&(ot.onClick=function(Wn){var Ir;Vt.current&&Ci?vt(!1):!Vt.current&&Jn&&(jt(Wn),vt(!0));for(var Li=arguments.length,ha=new Array(Li>1?Li-1:0),Zo=1;Zo<Li;Zo++)ha[Zo-1]=arguments[Zo];(Ir=Je.onClick)===null||Ir===void 0||Ir.call.apply(Ir,[Je,Wn].concat(ha))});var nr=w$t(Wt,Ci,Me,ne,E,C,Xe,vt),lr=Yt.has("hover"),Kr=Nn.has("hover"),Pi,Dl;lr&&(Er("onMouseEnter",!0,v,function(Wn){jt(Wn)}),Er("onPointerEnter",!0,v,function(Wn){jt(Wn)}),Pi=function(Ir){(Wt||Kt)&&ne!==null&&ne!==void 0&&ne.contains(Ir.target)&&vt(!0,v)},H&&(ot.onMouseMove=function(Wn){var Ir;(Ir=Je.onMouseMove)===null||Ir===void 0||Ir.call(Je,Wn)})),Kr&&(Er("onMouseLeave",!1,_),Er("onPointerLeave",!1,_),Dl=function(){vt(!1,_)}),Yt.has("focus")&&Er("onFocus",!0,S),Nn.has("focus")&&Er("onBlur",!1,b),Yt.has("contextMenu")&&(ot.onContextMenu=function(Wn){var Ir;Vt.current&&Nn.has("contextMenu")?vt(!1):(jt(Wn),vt(!0)),Wn.preventDefault();for(var Li=arguments.length,ha=new Array(Li>1?Li-1:0),Zo=1;Zo<Li;Zo++)ha[Zo-1]=arguments[Zo];(Ir=Je.onContextMenu)===null||Ir===void 0||Ir.call.apply(Ir,[Je,Wn].concat(ha))}),pe&&(ot.className=Ce(Je.className,pe));var kl=ee(ee({},Je),ot),Ro={},Is=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Is.forEach(function(Wn){ve[Wn]&&(Ro[Wn]=function(){for(var Ir,Li=arguments.length,ha=new Array(Li),Zo=0;Zo<Li;Zo++)ha[Zo]=arguments[Zo];(Ir=kl[Wn])===null||Ir===void 0||Ir.call.apply(Ir,[kl].concat(ha)),ve[Wn].apply(ve,ha)})});var ku=m.cloneElement(st,ee(ee({},kl),Ro)),Lu={x:Vn,y:sr},Mg=le?ee({},le!==!0?le:{}):null;return m.createElement(m.Fragment,null,m.createElement(Hc,{disabled:!Wt,ref:Ve,onResize:gr},m.createElement(y$t,{getTriggerDOMNode:me},ku)),m.createElement(N1e.Provider,{value:Te},m.createElement(v$t,{portal:e,ref:Se,prefixCls:a,popup:M,className:Ce(P,Vr),style:k,target:Me,onMouseEnter:Pi,onMouseLeave:Dl,onPointerEnter:Pi,zIndex:B,open:Wt,keepDom:Kt,fresh:K,onClick:G,onPointerDownCapture:nr,mask:E,motion:Ze,maskMotion:bt,onVisibleChanged:Oo,onPrepare:Pa,forceRender:T,autoDestroy:he,getPopupContainer:x,align:ce,arrow:Mg,arrowPos:Lu,ready:Ue,offsetX:Zt,offsetY:Et,offsetR:Gt,offsetB:zt,onAlign:wi,stretch:Y,targetWidth:ni/A,targetHeight:qr/W})))});return n}const yk=T$t(hk);var O$t=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],R$t=function(n){var r=n===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"}}},I$t=function(n,r){var i=n.prefixCls;n.disabled;var o=n.visible,a=n.children,s=n.popupElement,l=n.animation,c=n.transitionName,u=n.dropdownStyle,d=n.dropdownClassName,f=n.direction,p=f===void 0?"ltr":f,h=n.placement,g=n.builtinPlacements,v=n.dropdownMatchSelectWidth,y=n.dropdownRender,_=n.dropdownAlign,S=n.getPopupContainer,b=n.empty,E=n.getTriggerDOMNode,w=n.onPopupVisibleChange,C=n.onPopupMouseEnter,x=Xt(n,O$t),T="".concat(i,"-dropdown"),R=s;y&&(R=y(s));var O=m.useMemo(function(){return g||R$t(v)},[g,v]),M=l?"".concat(T,"-").concat(l):c,P=typeof v=="number",k=m.useMemo(function(){return P?null:v===!1?"minWidth":"width"},[v,P]),$=u;P&&($=ee(ee({},$),{},{width:v}));var U=m.useRef(null);return m.useImperativeHandle(r,function(){return{getPopupElement:function(){var D;return(D=U.current)===null||D===void 0?void 0:D.popupElement}}}),m.createElement(yk,ft({},x,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:h||(p==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:T,popupTransitionName:M,popup:m.createElement("div",{onMouseEnter:C},R),ref:U,stretch:k,popupAlign:_,popupVisible:o,getPopupContainer:S,popupClassName:Ce(d,fe({},"".concat(T,"-empty"),b)),popupStyle:$,getTriggerDOMNode:E,onPopupVisibleChange:w}),a)},N$t=m.forwardRef(I$t);function $1e(e,n){var r=e.key,i;return"value"in e&&(i=e.value),r??(i!==void 0?i:"rc-index-key-".concat(n))}function oie(e){return typeof e<"u"&&!Number.isNaN(e)}function lUe(e,n){var r=e||{},i=r.label,o=r.value,a=r.options,s=r.groupLabel,l=i||(n?"children":"label");return{label:l,value:o||"value",options:a||"options",groupLabel:s||l}}function M$t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.fieldNames,i=n.childrenAsData,o=[],a=lUe(r,!1),s=a.label,l=a.value,c=a.options,u=a.groupLabel;function d(f,p){Array.isArray(f)&&f.forEach(function(h){if(p||!(c in h)){var g=h[l];o.push({key:$1e(h,o.length),groupOption:p,data:h,label:h[s],value:g})}else{var v=h[u];v===void 0&&i&&(v=h.label),o.push({key:$1e(h,o.length),group:!0,data:h,label:v}),d(h[c],!0)}})}return d(e,!1),o}function aie(e){var n=ee({},e);return"props"in n||Object.defineProperty(n,"props",{get:function(){return qi(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),n}}),n}var P$t=function(n,r,i){if(!r||!r.length)return null;var o=!1,a=function l(c,u){var d=Kje(u),f=d[0],p=d.slice(1);if(!f)return[c];var h=c.split(f);return o=o||h.length>1,h.reduce(function(g,v){return[].concat(Tt(g),Tt(l(v,p)))},[]).filter(Boolean)},s=a(n,r);return o?typeof i<"u"?s.slice(0,i):s:null},Uue=m.createContext(null);function A$t(e){var n=e.visible,r=e.values;if(!n)return null;var i=50;return m.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,i).map(function(o){var a=o.label,s=o.value;return["number","string"].includes(cn(a))?a:s}).join(", ")),r.length>i?", ...":null)}var D$t=["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"],k$t=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],sie=function(n){return n==="tags"||n==="multiple"},Hue=m.forwardRef(function(e,n){var r,i=e.id,o=e.prefixCls,a=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,p=e.emptyOptions,h=e.notFoundContent,g=h===void 0?"Not Found":h,v=e.onClear,y=e.mode,_=e.disabled,S=e.loading,b=e.getInputElement,E=e.getRawInputElement,w=e.open,C=e.defaultOpen,x=e.onDropdownVisibleChange,T=e.activeValue,R=e.onActiveValueChange,O=e.activeDescendantId,M=e.searchValue,P=e.autoClearSearchValue,k=e.onSearch,$=e.onSearchSplit,U=e.tokenSeparators,z=e.allowClear,D=e.prefix,B=e.suffixIcon,Y=e.clearIcon,q=e.OptionList,K=e.animation,H=e.transitionName,G=e.dropdownStyle,Q=e.dropdownClassName,le=e.dropdownMatchSelectWidth,Z=e.dropdownRender,j=e.dropdownAlign,F=e.placement,te=e.builtinPlacements,oe=e.getPopupContainer,de=e.showAction,pe=de===void 0?[]:de,me=e.onFocus,ve=e.onBlur,he=e.onKeyUp,be=e.onKeyDown,we=e.onMouseDown,De=Xt(e,D$t),Ae=sie(y),Ee=(s!==void 0?s:Ae)||y==="combobox",Re=ee({},De);k$t.forEach(function(wn){delete Re[wn]}),u==null||u.forEach(function(wn){delete Re[wn]});var Te=m.useState(!1),Oe=ke(Te,2),Ne=Oe[0],je=Oe[1];m.useEffect(function(){je(J9())},[]);var ne=m.useRef(null),J=m.useRef(null),ae=m.useRef(null),Se=m.useRef(null),xe=m.useRef(null),ue=m.useRef(!1),Me=zLt(),$e=ke(Me,3),ge=$e[0],Ve=$e[1],st=$e[2];m.useImperativeHandle(n,function(){var wn,Bn;return{focus:(wn=Se.current)===null||wn===void 0?void 0:wn.focus,blur:(Bn=Se.current)===null||Bn===void 0?void 0:Bn.blur,scrollTo:function(yn){var Sn;return(Sn=xe.current)===null||Sn===void 0?void 0:Sn.scrollTo(yn)},nativeElement:ne.current||J.current}});var Je=m.useMemo(function(){var wn;if(y!=="combobox")return M;var Bn=(wn=d[0])===null||wn===void 0?void 0:wn.value;return typeof Bn=="string"||typeof Bn=="number"?String(Bn):""},[M,y,d]),ot=y==="combobox"&&typeof b=="function"&&b()||null,Xe=typeof E=="function"&&E(),Ze=yg(J,Xe==null||(r=Xe.props)===null||r===void 0?void 0:r.ref),bt=m.useState(!1),at=ke(bt,2),pt=at[0],Ct=at[1];ti(function(){Ct(!0)},[]);var It=dr(!1,{defaultValue:C,value:w}),Wt=ke(It,2),Bt=Wt[0],Vt=Wt[1],rn=pt?Bt:!1,tt=!g&&p;(_||tt&&rn&&y==="combobox")&&(rn=!1);var it=tt?!1:rn,nt=m.useCallback(function(wn){var Bn=wn!==void 0?wn:!rn;_||(Vt(Bn),rn!==Bn&&(x==null||x(Bn)))},[_,rn,Vt,x]),vt=m.useMemo(function(){return(U||[]).some(function(wn){return[`
`,`\r
`].includes(wn)})},[U]),kt=m.useContext(Uue)||{},Dt=kt.maxCount,Kt=kt.rawValues,Ht=function(Bn,ni,yn){if(!(Ae&&oie(Dt)&&(Kt==null?void 0:Kt.size)>=Dt)){var Sn=!0,ur=Bn;R==null||R(null);var qr=P$t(Bn,U,oie(Dt)?Dt-Kt.size:void 0),zi=yn?null:qr;return y!=="combobox"&&zi&&(ur="",$==null||$(zi),nt(!1),Sn=!1),k&&Je!==ur&&k(ur,{source:ni?"typing":"effect"}),Sn}},tn=function(Bn){!Bn||!Bn.trim()||k(Bn,{source:"submit"})};m.useEffect(function(){!rn&&!Ae&&y!=="combobox"&&Ht("",!1,!1)},[rn]),m.useEffect(function(){Bt&&_&&Vt(!1),_&&!ue.current&&Ve(!1)},[_]);var on=tUe(),sn=ke(on,2),Jt=sn[0],En=sn[1],Pt=m.useRef(!1),Qt=function(Bn){var ni=Jt(),yn=Bn.key,Sn=yn==="Enter";if(Sn&&(y!=="combobox"&&Bn.preventDefault(),rn||nt(!0)),En(!!Je),yn==="Backspace"&&!ni&&Ae&&!Je&&d.length){for(var ur=Tt(d),qr=null,zi=ur.length-1;zi>=0;zi-=1){var Qo=ur[zi];if(!Qo.disabled){ur.splice(zi,1),qr=Qo;break}}qr&&f(ur,{type:"remove",values:[qr]})}for(var gr=arguments.length,Oo=new Array(gr>1?gr-1:0),Pa=1;Pa<gr;Pa++)Oo[Pa-1]=arguments[Pa];if(rn&&(!Sn||!Pt.current)){var Er;Sn&&(Pt.current=!0),(Er=xe.current)===null||Er===void 0||Er.onKeyDown.apply(Er,[Bn].concat(Oo))}be==null||be.apply(void 0,[Bn].concat(Oo))},ln=function(Bn){for(var ni=arguments.length,yn=new Array(ni>1?ni-1:0),Sn=1;Sn<ni;Sn++)yn[Sn-1]=arguments[Sn];if(rn){var ur;(ur=xe.current)===null||ur===void 0||ur.onKeyUp.apply(ur,[Bn].concat(yn))}Bn.key==="Enter"&&(Pt.current=!1),he==null||he.apply(void 0,[Bn].concat(yn))},jt=function(Bn){var ni=d.filter(function(yn){return yn!==Bn});f(ni,{type:"remove",values:[Bn]})},Lt=function(){Pt.current=!1},en=m.useRef(!1),Ue=function(){Ve(!0),_||(me&&!en.current&&me.apply(void 0,arguments),pe.includes("focus")&&nt(!0)),en.current=!0},Zt=function(){ue.current=!0,Ve(!1,function(){en.current=!1,ue.current=!1,nt(!1)}),!_&&(Je&&(y==="tags"?k(Je,{source:"submit"}):y==="multiple"&&k("",{source:"blur"})),ve&&ve.apply(void 0,arguments))},Et=[];m.useEffect(function(){return function(){Et.forEach(function(wn){return clearTimeout(wn)}),Et.splice(0,Et.length)}},[]);var Gt=function(Bn){var ni,yn=Bn.target,Sn=(ni=ae.current)===null||ni===void 0?void 0:ni.getPopupElement();if(Sn&&Sn.contains(yn)){var ur=setTimeout(function(){var gr=Et.indexOf(ur);if(gr!==-1&&Et.splice(gr,1),st(),!Ne&&!Sn.contains(document.activeElement)){var Oo;(Oo=Se.current)===null||Oo===void 0||Oo.focus()}});Et.push(ur)}for(var qr=arguments.length,zi=new Array(qr>1?qr-1:0),Qo=1;Qo<qr;Qo++)zi[Qo-1]=arguments[Qo];we==null||we.apply(void 0,[Bn].concat(zi))},zt=m.useState({}),Vn=ke(zt,2),sr=Vn[1];function A(){sr({})}var W;Xe&&(W=function(Bn){nt(Bn)}),VLt(function(){var wn;return[ne.current,(wn=ae.current)===null||wn===void 0?void 0:wn.getPopupElement()]},it,nt,!!Xe);var ce=m.useMemo(function(){return ee(ee({},e),{},{notFoundContent:g,open:rn,triggerOpen:it,id:i,showSearch:Ee,multiple:Ae,toggleOpen:nt})},[e,g,it,rn,i,Ee,Ae,nt]),Pe=!!B||S,qe;Pe&&(qe=m.createElement(eU,{className:Ce("".concat(o,"-arrow"),fe({},"".concat(o,"-arrow-loading"),S)),customizeIcon:B,customizeIconProps:{loading:S,searchValue:Je,open:rn,focused:ge,showSearch:Ee}}));var gt=function(){var Bn;v==null||v(),(Bn=Se.current)===null||Bn===void 0||Bn.focus(),f([],{type:"clear",values:d}),Ht("",!1,!1)},Yt=HLt(o,gt,d,z,Y,_,Je,y),Nn=Yt.allowClear,Jn=Yt.clearIcon,Ci=m.createElement(q,{ref:xe}),wi=Ce(o,a,fe(fe(fe(fe(fe(fe(fe(fe(fe(fe({},"".concat(o,"-focused"),ge),"".concat(o,"-multiple"),Ae),"".concat(o,"-single"),!Ae),"".concat(o,"-allow-clear"),z),"".concat(o,"-show-arrow"),Pe),"".concat(o,"-disabled"),_),"".concat(o,"-loading"),S),"".concat(o,"-open"),rn),"".concat(o,"-customize-input"),ot),"".concat(o,"-show-search"),Ee)),to=m.createElement(N$t,{ref:ae,disabled:_,prefixCls:o,visible:it,popupElement:Ci,animation:K,transitionName:H,dropdownStyle:G,dropdownClassName:Q,direction:c,dropdownMatchSelectWidth:le,dropdownRender:Z,dropdownAlign:j,placement:F,builtinPlacements:te,getPopupContainer:oe,empty:p,getTriggerDOMNode:function(Bn){return J.current||Bn},onPopupVisibleChange:W,onPopupMouseEnter:A},Xe?m.cloneElement(Xe,{ref:Ze}):m.createElement(p$t,ft({},e,{domRef:J,prefixCls:o,inputElement:ot,ref:Se,id:i,prefix:D,showSearch:Ee,autoClearSearchValue:P,mode:y,activeDescendantId:O,tagRender:l,values:d,open:rn,onToggleOpen:nt,activeValue:T,searchValue:Je,onSearch:Ht,onSearchSubmit:tn,onRemove:jt,tokenWithEnter:vt,onInputBlur:Lt}))),Vr;return Xe?Vr=to:Vr=m.createElement("div",ft({className:wi},Re,{ref:ne,onMouseDown:Gt,onKeyDown:Qt,onKeyUp:ln,onFocus:Ue,onBlur:Zt}),m.createElement(A$t,{visible:ge&&!rn,values:d}),to,qe,Nn&&Jn),m.createElement(eUe.Provider,{value:ce},Vr)}),zue=function(){return null};zue.isSelectOptGroup=!0;var Vue=function(){return null};Vue.isSelectOption=!0;var cUe=m.forwardRef(function(e,n){var r=e.height,i=e.offsetY,o=e.offsetX,a=e.children,s=e.prefixCls,l=e.onInnerResize,c=e.innerProps,u=e.rtl,d=e.extra,f={},p={display:"flex",flexDirection:"column"};return i!==void 0&&(f={height:r,position:"relative",overflow:"hidden"},p=ee(ee({},p),{},fe(fe(fe(fe(fe({transform:"translateY(".concat(i,"px)")},u?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:f},m.createElement(Hc,{onResize:function(g){var v=g.offsetHeight;v&&l&&l()}},m.createElement("div",ft({style:p,className:Ce(fe({},"".concat(s,"-holder-inner"),s)),ref:n},c),a,d)))});cUe.displayName="Filler";function L$t(e){var n=e.children,r=e.setRef,i=m.useCallback(function(o){r(o)},[]);return m.cloneElement(n,{ref:i})}function $$t(e,n,r,i,o,a,s,l){var c=l.getKey;return e.slice(n,r+1).map(function(u,d){var f=n+d,p=s(u,f,{style:{width:i},offsetX:o}),h=c(u);return m.createElement(L$t,{key:h,setRef:function(v){return a(u,v)}},p)})}function F$t(e,n,r){var i=e.length,o=n.length,a,s;if(i===0&&o===0)return null;i<o?(a=e,s=n):(a=n,s=e);var l={__EMPTY_ITEM__:!0};function c(g){return g!==void 0?r(g):l}for(var u=null,d=Math.abs(i-o)!==1,f=0;f<s.length;f+=1){var p=c(a[f]),h=c(s[f]);if(p!==h){u=f,d=d||p!==c(s[f+1]);break}}return u===null?null:{index:u,multiple:d}}function B$t(e,n,r){var i=m.useState(e),o=ke(i,2),a=o[0],s=o[1],l=m.useState(null),c=ke(l,2),u=c[0],d=c[1];return m.useEffect(function(){var f=F$t(a||[],e||[],n);(f==null?void 0:f.index)!==void 0&&d(e[f.index]),s(e)},[e]),[u]}var F1e=(typeof navigator>"u"?"undefined":cn(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const uUe=function(e,n,r,i){var o=m.useRef(!1),a=m.useRef(null);function s(){clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)}var l=m.useRef({top:e,bottom:n,left:r,right:i});return l.current.top=e,l.current.bottom=n,l.current.left=r,l.current.right=i,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=c?u<0&&l.current.left||u>0&&l.current.right:u<0&&l.current.top||u>0&&l.current.bottom;return d&&f?(clearTimeout(a.current),o.current=!1):(!f||o.current)&&s(),!o.current&&f}};function j$t(e,n,r,i,o,a,s){var l=m.useRef(0),c=m.useRef(null),u=m.useRef(null),d=m.useRef(!1),f=uUe(n,r,i,o);function p(S,b){if(Dr.cancel(c.current),!f(!1,b)){var E=S;if(!E._virtualHandled)E._virtualHandled=!0;else return;l.current+=b,u.current=b,F1e||E.preventDefault(),c.current=Dr(function(){var w=d.current?10:1;s(l.current*w,!1),l.current=0})}}function h(S,b){s(b,!0),F1e||S.preventDefault()}var g=m.useRef(null),v=m.useRef(null);function y(S){if(e){Dr.cancel(v.current),v.current=Dr(function(){g.current=null},2);var b=S.deltaX,E=S.deltaY,w=S.shiftKey,C=b,x=E;(g.current==="sx"||!g.current&&w&&E&&!b)&&(C=E,x=0,g.current="sx");var T=Math.abs(C),R=Math.abs(x);g.current===null&&(g.current=a&&T>R?"x":"y"),g.current==="y"?p(S,x):h(S,C)}}function _(S){e&&(d.current=S.detail===u.current)}return[y,_]}function U$t(e,n,r,i){var o=m.useMemo(function(){return[new Map,[]]},[e,r.id,i]),a=ke(o,2),s=a[0],l=a[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,p=s.get(d),h=s.get(f);if(p===void 0||h===void 0)for(var g=e.length,v=l.length;v<g;v+=1){var y,_=e[v],S=n(_);s.set(S,v);var b=(y=r.get(S))!==null&&y!==void 0?y:i;if(l[v]=(l[v-1]||0)+b,S===d&&(p=v),S===f&&(h=v),p!==void 0&&h!==void 0)break}return{top:l[p-1]||0,bottom:l[h]}};return c}var H$t=function(){function e(){Ki(this,e),fe(this,"maps",void 0),fe(this,"id",0),this.maps=Object.create(null)}return Xi(e,[{key:"set",value:function(r,i){this.maps[r]=i,this.id+=1}},{key:"get",value:function(r){return this.maps[r]}}]),e}();function B1e(e){var n=parseFloat(e);return isNaN(n)?0:n}function z$t(e,n,r){var i=m.useState(0),o=ke(i,2),a=o[0],s=o[1],l=m.useRef(new Map),c=m.useRef(new H$t),u=m.useRef();function d(){Dr.cancel(u.current)}function f(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var g=function(){l.current.forEach(function(y,_){if(y&&y.offsetParent){var S=W2(y),b=S.offsetHeight,E=getComputedStyle(S),w=E.marginTop,C=E.marginBottom,x=B1e(w),T=B1e(C),R=b+x+T;c.current.get(_)!==R&&c.current.set(_,R)}}),s(function(y){return y+1})};h?g():u.current=Dr(g)}function p(h,g){var v=e(h);l.current.get(v),g?(l.current.set(v,g),f()):l.current.delete(v)}return m.useEffect(function(){return d},[]),[p,f,c.current,a]}var j1e=14/15;function V$t(e,n,r){var i=m.useRef(!1),o=m.useRef(0),a=m.useRef(0),s=m.useRef(null),l=m.useRef(null),c,u=function(h){if(i.current){var g=Math.ceil(h.touches[0].pageX),v=Math.ceil(h.touches[0].pageY),y=o.current-g,_=a.current-v,S=Math.abs(y)>Math.abs(_);S?o.current=g:a.current=v;var b=r(S,S?y:_,!1,h);b&&h.preventDefault(),clearInterval(l.current),b&&(l.current=setInterval(function(){S?y*=j1e:_*=j1e;var E=Math.floor(S?y:_);(!r(S,E,!0)||Math.abs(E)<=.1)&&clearInterval(l.current)},16))}},d=function(){i.current=!1,c()},f=function(h){c(),h.touches.length===1&&!i.current&&(i.current=!0,o.current=Math.ceil(h.touches[0].pageX),a.current=Math.ceil(h.touches[0].pageY),s.current=h.target,s.current.addEventListener("touchmove",u,{passive:!1}),s.current.addEventListener("touchend",d,{passive:!0}))};c=function(){s.current&&(s.current.removeEventListener("touchmove",u),s.current.removeEventListener("touchend",d))},ti(function(){return e&&n.current.addEventListener("touchstart",f,{passive:!0}),function(){var p;(p=n.current)===null||p===void 0||p.removeEventListener("touchstart",f),c(),clearInterval(l.current)}},[e])}var G$t=10;function W$t(e,n,r,i,o,a,s,l){var c=m.useRef(),u=m.useState(null),d=ke(u,2),f=d[0],p=d[1];return ti(function(){if(f&&f.times<G$t){if(!e.current){p(function(Y){return ee({},Y)});return}a();var h=f.targetAlign,g=f.originAlign,v=f.index,y=f.offset,_=e.current.clientHeight,S=!1,b=h,E=null;if(_){for(var w=h||g,C=0,x=0,T=0,R=Math.min(n.length-1,v),O=0;O<=R;O+=1){var M=o(n[O]);x=C;var P=r.get(M);T=x+(P===void 0?i:P),C=T}for(var k=w==="top"?y:_-y,$=R;$>=0;$-=1){var U=o(n[$]),z=r.get(U);if(z===void 0){S=!0;break}if(k-=z,k<=0)break}switch(w){case"top":E=x-y;break;case"bottom":E=T-_+y;break;default:{var D=e.current.scrollTop,B=D+_;x<D?b="top":T>B&&(b="bottom")}}E!==null&&s(E),E!==f.lastTop&&(S=!0)}S&&p(ee(ee({},f),{},{times:f.times+1,targetAlign:b,lastTop:E}))}},[f,e.current]),function(h){if(h==null){l();return}if(Dr.cancel(c.current),typeof h=="number")s(h);else if(h&&cn(h)==="object"){var g,v=h.align;"index"in h?g=h.index:g=n.findIndex(function(S){return o(S)===h.key});var y=h.offset,_=y===void 0?0:y;p({times:0,index:g,offset:_,originAlign:v})}}}function U1e(e,n){var r="touches"in e?e.touches[0]:e;return r[n?"pageX":"pageY"]}var H1e=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.rtl,o=e.scrollOffset,a=e.scrollRange,s=e.onStartMove,l=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,p=e.style,h=e.thumbStyle,g=m.useState(!1),v=ke(g,2),y=v[0],_=v[1],S=m.useState(null),b=ke(S,2),E=b[0],w=b[1],C=m.useState(null),x=ke(C,2),T=x[0],R=x[1],O=!i,M=m.useRef(),P=m.useRef(),k=m.useState(!1),$=ke(k,2),U=$[0],z=$[1],D=m.useRef(),B=function(){clearTimeout(D.current),z(!0),D.current=setTimeout(function(){z(!1)},3e3)},Y=a-f||0,q=f-d||0,K=m.useMemo(function(){if(o===0||Y===0)return 0;var oe=o/Y;return oe*q},[o,Y,q]),H=function(de){de.stopPropagation(),de.preventDefault()},G=m.useRef({top:K,dragging:y,pageY:E,startTop:T});G.current={top:K,dragging:y,pageY:E,startTop:T};var Q=function(de){_(!0),w(U1e(de,u)),R(G.current.top),s(),de.stopPropagation(),de.preventDefault()};m.useEffect(function(){var oe=function(ve){ve.preventDefault()},de=M.current,pe=P.current;return de.addEventListener("touchstart",oe,{passive:!1}),pe.addEventListener("touchstart",Q,{passive:!1}),function(){de.removeEventListener("touchstart",oe),pe.removeEventListener("touchstart",Q)}},[]);var le=m.useRef();le.current=Y;var Z=m.useRef();Z.current=q,m.useEffect(function(){if(y){var oe,de=function(ve){var he=G.current,be=he.dragging,we=he.pageY,De=he.startTop;Dr.cancel(oe);var Ae=M.current.getBoundingClientRect(),Ee=f/(u?Ae.width:Ae.height);if(be){var Re=(U1e(ve,u)-we)*Ee,Te=De;!O&&u?Te-=Re:Te+=Re;var Oe=le.current,Ne=Z.current,je=Ne?Te/Ne:0,ne=Math.ceil(je*Oe);ne=Math.max(ne,0),ne=Math.min(ne,Oe),oe=Dr(function(){c(ne,u)})}},pe=function(){_(!1),l()};return window.addEventListener("mousemove",de,{passive:!0}),window.addEventListener("touchmove",de,{passive:!0}),window.addEventListener("mouseup",pe,{passive:!0}),window.addEventListener("touchend",pe,{passive:!0}),function(){window.removeEventListener("mousemove",de),window.removeEventListener("touchmove",de),window.removeEventListener("mouseup",pe),window.removeEventListener("touchend",pe),Dr.cancel(oe)}}},[y]),m.useEffect(function(){return B(),function(){clearTimeout(D.current)}},[o]),m.useImperativeHandle(n,function(){return{delayHidden:B}});var j="".concat(r,"-scrollbar"),F={position:"absolute",visibility:U?null:"hidden"},te={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(F.height=8,F.left=0,F.right=0,F.bottom=0,te.height="100%",te.width=d,O?te.left=K:te.right=K):(F.width=8,F.top=0,F.bottom=0,O?F.right=0:F.left=0,te.width="100%",te.height=d,te.top=K),m.createElement("div",{ref:M,className:Ce(j,fe(fe(fe({},"".concat(j,"-horizontal"),u),"".concat(j,"-vertical"),!u),"".concat(j,"-visible"),U)),style:ee(ee({},F),p),onMouseDown:H,onMouseMove:B},m.createElement("div",{ref:P,className:Ce("".concat(j,"-thumb"),fe({},"".concat(j,"-thumb-moving"),y)),style:ee(ee({},te),h),onMouseDown:Q}))}),Y$t=20;function z1e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e/n*e;return isNaN(r)&&(r=0),r=Math.max(r,Y$t),Math.floor(r)}var q$t=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],K$t=[],X$t={overflowY:"auto",overflowAnchor:"none"};function Q$t(e,n){var r=e.prefixCls,i=r===void 0?"rc-virtual-list":r,o=e.className,a=e.height,s=e.itemHeight,l=e.fullHeight,c=l===void 0?!0:l,u=e.style,d=e.data,f=e.children,p=e.itemKey,h=e.virtual,g=e.direction,v=e.scrollWidth,y=e.component,_=y===void 0?"div":y,S=e.onScroll,b=e.onVirtualScroll,E=e.onVisibleChange,w=e.innerProps,C=e.extraRender,x=e.styles,T=Xt(e,q$t),R=m.useCallback(function(jt){return typeof p=="function"?p(jt):jt==null?void 0:jt[p]},[p]),O=z$t(R),M=ke(O,4),P=M[0],k=M[1],$=M[2],U=M[3],z=!!(h!==!1&&a&&s),D=m.useMemo(function(){return Object.values($.maps).reduce(function(jt,Lt){return jt+Lt},0)},[$.id,$.maps]),B=z&&d&&(Math.max(s*d.length,D)>a||!!v),Y=g==="rtl",q=Ce(i,fe({},"".concat(i,"-rtl"),Y),o),K=d||K$t,H=m.useRef(),G=m.useRef(),Q=m.useRef(),le=m.useState(0),Z=ke(le,2),j=Z[0],F=Z[1],te=m.useState(0),oe=ke(te,2),de=oe[0],pe=oe[1],me=m.useState(!1),ve=ke(me,2),he=ve[0],be=ve[1],we=function(){be(!0)},De=function(){be(!1)},Ae={getKey:R};function Ee(jt){F(function(Lt){var en;typeof jt=="function"?en=jt(Lt):en=jt;var Ue=at(en);return H.current.scrollTop=Ue,Ue})}var Re=m.useRef({start:0,end:K.length}),Te=m.useRef(),Oe=B$t(K,R),Ne=ke(Oe,1),je=Ne[0];Te.current=je;var ne=m.useMemo(function(){if(!z)return{scrollHeight:void 0,start:0,end:K.length-1,offset:void 0};if(!B){var jt;return{scrollHeight:((jt=G.current)===null||jt===void 0?void 0:jt.offsetHeight)||0,start:0,end:K.length-1,offset:void 0}}for(var Lt=0,en,Ue,Zt,Et=K.length,Gt=0;Gt<Et;Gt+=1){var zt=K[Gt],Vn=R(zt),sr=$.get(Vn),A=Lt+(sr===void 0?s:sr);A>=j&&en===void 0&&(en=Gt,Ue=Lt),A>j+a&&Zt===void 0&&(Zt=Gt),Lt=A}return en===void 0&&(en=0,Ue=0,Zt=Math.ceil(a/s)),Zt===void 0&&(Zt=K.length-1),Zt=Math.min(Zt+1,K.length-1),{scrollHeight:Lt,start:en,end:Zt,offset:Ue}},[B,z,j,K,U,a]),J=ne.scrollHeight,ae=ne.start,Se=ne.end,xe=ne.offset;Re.current.start=ae,Re.current.end=Se;var ue=m.useState({width:0,height:a}),Me=ke(ue,2),$e=Me[0],ge=Me[1],Ve=function(Lt){ge({width:Lt.offsetWidth,height:Lt.offsetHeight})},st=m.useRef(),Je=m.useRef(),ot=m.useMemo(function(){return z1e($e.width,v)},[$e.width,v]),Xe=m.useMemo(function(){return z1e($e.height,J)},[$e.height,J]),Ze=J-a,bt=m.useRef(Ze);bt.current=Ze;function at(jt){var Lt=jt;return Number.isNaN(bt.current)||(Lt=Math.min(Lt,bt.current)),Lt=Math.max(Lt,0),Lt}var pt=j<=0,Ct=j>=Ze,It=de<=0,Wt=de>=v,Bt=uUe(pt,Ct,It,Wt),Vt=function(){return{x:Y?-de:de,y:j}},rn=m.useRef(Vt()),tt=Sr(function(jt){if(b){var Lt=ee(ee({},Vt()),jt);(rn.current.x!==Lt.x||rn.current.y!==Lt.y)&&(b(Lt),rn.current=Lt)}});function it(jt,Lt){var en=jt;Lt?(Us.flushSync(function(){pe(en)}),tt()):Ee(en)}function nt(jt){var Lt=jt.currentTarget.scrollTop;Lt!==j&&Ee(Lt),S==null||S(jt),tt()}var vt=function(Lt){var en=Lt,Ue=v?v-$e.width:0;return en=Math.max(en,0),en=Math.min(en,Ue),en},kt=Sr(function(jt,Lt){Lt?(Us.flushSync(function(){pe(function(en){var Ue=en+(Y?-jt:jt);return vt(Ue)})}),tt()):Ee(function(en){var Ue=en+jt;return Ue})}),Dt=j$t(z,pt,Ct,It,Wt,!!v,kt),Kt=ke(Dt,2),Ht=Kt[0],tn=Kt[1];V$t(z,H,function(jt,Lt,en,Ue){var Zt=Ue;return Bt(jt,Lt,en)?!1:!Zt||!Zt._virtualHandled?(Zt&&(Zt._virtualHandled=!0),Ht({preventDefault:function(){},deltaX:jt?Lt:0,deltaY:jt?0:Lt}),!0):!1}),ti(function(){function jt(en){var Ue=pt&&en.detail<0,Zt=Ct&&en.detail>0;z&&!Ue&&!Zt&&en.preventDefault()}var Lt=H.current;return Lt.addEventListener("wheel",Ht,{passive:!1}),Lt.addEventListener("DOMMouseScroll",tn,{passive:!0}),Lt.addEventListener("MozMousePixelScroll",jt,{passive:!1}),function(){Lt.removeEventListener("wheel",Ht),Lt.removeEventListener("DOMMouseScroll",tn),Lt.removeEventListener("MozMousePixelScroll",jt)}},[z,pt,Ct]),ti(function(){if(v){var jt=vt(de);pe(jt),tt({x:jt})}},[$e.width,v]);var on=function(){var Lt,en;(Lt=st.current)===null||Lt===void 0||Lt.delayHidden(),(en=Je.current)===null||en===void 0||en.delayHidden()},sn=W$t(H,K,$,s,R,function(){return k(!0)},Ee,on);m.useImperativeHandle(n,function(){return{nativeElement:Q.current,getScrollInfo:Vt,scrollTo:function(Lt){function en(Ue){return Ue&&cn(Ue)==="object"&&("left"in Ue||"top"in Ue)}en(Lt)?(Lt.left!==void 0&&pe(vt(Lt.left)),sn(Lt.top)):sn(Lt)}}}),ti(function(){if(E){var jt=K.slice(ae,Se+1);E(jt,K)}},[ae,Se,K]);var Jt=U$t(K,R,$,s),En=C==null?void 0:C({start:ae,end:Se,virtual:B,offsetX:de,offsetY:xe,rtl:Y,getSize:Jt}),Pt=$$t(K,ae,Se,v,de,P,f,Ae),Qt=null;a&&(Qt=ee(fe({},c?"height":"maxHeight",a),X$t),z&&(Qt.overflowY="hidden",v&&(Qt.overflowX="hidden"),he&&(Qt.pointerEvents="none")));var ln={};return Y&&(ln.dir="rtl"),m.createElement("div",ft({ref:Q,style:ee(ee({},u),{},{position:"relative"}),className:q},ln,T),m.createElement(Hc,{onResize:Ve},m.createElement(_,{className:"".concat(i,"-holder"),style:Qt,ref:H,onScroll:nt,onMouseEnter:on},m.createElement(cUe,{prefixCls:i,height:J,offsetX:de,offsetY:xe,scrollWidth:v,onInnerResize:k,ref:G,innerProps:w,rtl:Y,extra:En},Pt))),B&&J>a&&m.createElement(H1e,{ref:st,prefixCls:i,scrollOffset:j,scrollRange:J,rtl:Y,onScroll:it,onStartMove:we,onStopMove:De,spinSize:Xe,containerSize:$e.height,style:x==null?void 0:x.verticalScrollBar,thumbStyle:x==null?void 0:x.verticalScrollBarThumb}),B&&v>$e.width&&m.createElement(H1e,{ref:Je,prefixCls:i,scrollOffset:de,scrollRange:v,rtl:Y,onScroll:it,onStartMove:we,onStopMove:De,spinSize:ot,containerSize:$e.width,horizontal:!0,style:x==null?void 0:x.horizontalScrollBar,thumbStyle:x==null?void 0:x.horizontalScrollBarThumb}))}var Gue=m.forwardRef(Q$t);Gue.displayName="List";function Z$t(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var J$t=["disabled","title","children","style","className"];function V1e(e){return typeof e=="string"||typeof e=="number"}var e3t=function(n,r){var i=jue(),o=i.prefixCls,a=i.id,s=i.open,l=i.multiple,c=i.mode,u=i.searchValue,d=i.toggleOpen,f=i.notFoundContent,p=i.onPopupScroll,h=m.useContext(Uue),g=h.maxCount,v=h.flattenOptions,y=h.onActiveValue,_=h.defaultActiveFirstOption,S=h.onSelect,b=h.menuItemSelectedIcon,E=h.rawValues,w=h.fieldNames,C=h.virtual,x=h.direction,T=h.listHeight,R=h.listItemHeight,O=h.optionRender,M="".concat(o,"-item"),P=Z1(function(){return v},[s,v],function(de,pe){return pe[0]&&de[1]!==pe[1]}),k=m.useRef(null),$=m.useMemo(function(){return l&&oie(g)&&(E==null?void 0:E.size)>=g},[l,g,E==null?void 0:E.size]),U=function(pe){pe.preventDefault()},z=function(pe){var me;(me=k.current)===null||me===void 0||me.scrollTo(typeof pe=="number"?{index:pe}:pe)},D=m.useCallback(function(de){return c==="combobox"?!1:E.has(de)},[c,Tt(E).toString(),E.size]),B=function(pe){for(var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ve=P.length,he=0;he<ve;he+=1){var be=(pe+he*me+ve)%ve,we=P[be]||{},De=we.group,Ae=we.data;if(!De&&!(Ae!=null&&Ae.disabled)&&(D(Ae.value)||!$))return be}return-1},Y=m.useState(function(){return B(0)}),q=ke(Y,2),K=q[0],H=q[1],G=function(pe){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;H(pe);var ve={source:me?"keyboard":"mouse"},he=P[pe];if(!he){y(null,-1,ve);return}y(he.value,pe,ve)};m.useEffect(function(){G(_!==!1?B(0):-1)},[P.length,u]);var Q=m.useCallback(function(de){return c==="combobox"?String(de).toLowerCase()===u.toLowerCase():E.has(de)},[c,u,Tt(E).toString(),E.size]);m.useEffect(function(){var de=setTimeout(function(){if(!l&&s&&E.size===1){var me=Array.from(E)[0],ve=P.findIndex(function(he){var be=he.data;return be.value===me});ve!==-1&&(G(ve),z(ve))}});if(s){var pe;(pe=k.current)===null||pe===void 0||pe.scrollTo(void 0)}return function(){return clearTimeout(de)}},[s,u]);var le=function(pe){pe!==void 0&&S(pe,{selected:!E.has(pe)}),l||d(!1)};if(m.useImperativeHandle(r,function(){return{onKeyDown:function(pe){var me=pe.which,ve=pe.ctrlKey;switch(me){case At.N:case At.P:case At.UP:case At.DOWN:{var he=0;if(me===At.UP?he=-1:me===At.DOWN?he=1:Z$t()&&ve&&(me===At.N?he=1:me===At.P&&(he=-1)),he!==0){var be=B(K+he,he);z(be),G(be,!0)}break}case At.TAB:case At.ENTER:{var we,De=P[K];De&&!(De!=null&&(we=De.data)!==null&&we!==void 0&&we.disabled)&&!$?le(De.value):le(void 0),s&&pe.preventDefault();break}case At.ESC:d(!1),s&&pe.stopPropagation()}},onKeyUp:function(){},scrollTo:function(pe){z(pe)}}}),P.length===0)return m.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(M,"-empty"),onMouseDown:U},f);var Z=Object.keys(w).map(function(de){return w[de]}),j=function(pe){return pe.label};function F(de,pe){var me=de.group;return{role:me?"presentation":"option",id:"".concat(a,"_list_").concat(pe)}}var te=function(pe){var me=P[pe];if(!me)return null;var ve=me.data||{},he=ve.value,be=me.group,we=Va(ve,!0),De=j(me);return me?m.createElement("div",ft({"aria-label":typeof De=="string"&&!be?De:null},we,{key:pe},F(me,pe),{"aria-selected":Q(he)}),he):null},oe={role:"listbox",id:"".concat(a,"_list")};return m.createElement(m.Fragment,null,C&&m.createElement("div",ft({},oe,{style:{height:0,width:0,overflow:"hidden"}}),te(K-1),te(K),te(K+1)),m.createElement(Gue,{itemKey:"key",ref:k,data:P,height:T,itemHeight:R,fullHeight:!1,onMouseDown:U,onScroll:p,virtual:C,direction:x,innerProps:C?null:oe},function(de,pe){var me=de.group,ve=de.groupOption,he=de.data,be=de.label,we=de.value,De=he.key;if(me){var Ae,Ee=(Ae=he.title)!==null&&Ae!==void 0?Ae:V1e(be)?be.toString():void 0;return m.createElement("div",{className:Ce(M,"".concat(M,"-group"),he.className),title:Ee},be!==void 0?be:De)}var Re=he.disabled,Te=he.title;he.children;var Oe=he.style,Ne=he.className,je=Xt(he,J$t),ne=Wr(je,Z),J=D(we),ae=Re||!J&&$,Se="".concat(M,"-option"),xe=Ce(M,Se,Ne,fe(fe(fe(fe({},"".concat(Se,"-grouped"),ve),"".concat(Se,"-active"),K===pe&&!ae),"".concat(Se,"-disabled"),ae),"".concat(Se,"-selected"),J)),ue=j(de),Me=!b||typeof b=="function"||J,$e=typeof ue=="number"?ue:ue||we,ge=V1e($e)?$e.toString():void 0;return Te!==void 0&&(ge=Te),m.createElement("div",ft({},Va(ne),C?{}:F(de,pe),{"aria-selected":Q(we),className:xe,title:ge,onMouseMove:function(){K===pe||ae||G(pe)},onClick:function(){ae||le(we)},style:Oe}),m.createElement("div",{className:"".concat(Se,"-content")},typeof O=="function"?O(de,{index:pe}):$e),m.isValidElement(b)||J,Me&&m.createElement(eU,{className:"".concat(M,"-option-state"),customizeIcon:b,customizeIconProps:{value:we,disabled:ae,isSelected:J}},J?"✓":null))}))},t3t=m.forwardRef(e3t);const n3t=function(e,n){var r=m.useRef({values:new Map,options:new Map}),i=m.useMemo(function(){var a=r.current,s=a.values,l=a.options,c=e.map(function(f){if(f.label===void 0){var p;return ee(ee({},f),{},{label:(p=s.get(f.value))===null||p===void 0?void 0:p.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,n.get(f.value)||l.get(f.value))}),r.current.values=u,r.current.options=d,c},[e,n]),o=m.useCallback(function(a){return n.get(a)||r.current.options.get(a)},[n]);return[i,o]};function tq(e,n){return aUe(e).join("").toUpperCase().includes(n)}const r3t=function(e,n,r,i,o){return m.useMemo(function(){if(!r||i===!1)return e;var a=n.options,s=n.label,l=n.value,c=[],u=typeof i=="function",d=r.toUpperCase(),f=u?i:function(h,g){return o?tq(g[o],d):g[a]?tq(g[s!=="children"?s:"label"],d):tq(g[l],d)},p=u?function(h){return aie(h)}:function(h){return h};return e.forEach(function(h){if(h[a]){var g=f(r,p(h));if(g)c.push(h);else{var v=h[a].filter(function(y){return f(r,p(y))});v.length&&c.push(ee(ee({},h),{},fe({},a,v)))}return}f(r,p(h))&&c.push(h)}),c},[e,i,o,r,n])};var G1e=0,i3t=bf();function o3t(){var e;return i3t?(e=G1e,G1e+=1):e="TEST_OR_SSR",e}function Wue(e){var n=m.useState(),r=ke(n,2),i=r[0],o=r[1];return m.useEffect(function(){o("rc_select_".concat(o3t()))},[]),e||i}var a3t=["children","value"],s3t=["children"];function l3t(e){var n=e,r=n.key,i=n.props,o=i.children,a=i.value,s=Xt(i,a3t);return ee({key:r,value:a!==void 0?a:r,children:o},s)}function dUe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Tl(e).map(function(r,i){if(!m.isValidElement(r)||!r.type)return null;var o=r,a=o.type.isSelectOptGroup,s=o.key,l=o.props,c=l.children,u=Xt(l,s3t);return n||!a?l3t(r):ee(ee({key:"__RC_SELECT_GRP__".concat(s===null?i:s,"__"),label:s},u),{},{options:dUe(c)})}).filter(function(r){return r})}var c3t=function(n,r,i,o,a){return m.useMemo(function(){var s=n,l=!n;l&&(s=dUe(r));var c=new Map,u=new Map,d=function(h,g,v){v&&typeof v=="string"&&h.set(g[v],g)},f=function p(h){for(var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v<h.length;v+=1){var y=h[v];!y[i.options]||g?(c.set(y[i.value],y),d(u,y,i.label),d(u,y,o),d(u,y,a)):p(y[i.options],!0)}};return f(s),{options:s,valueOptions:c,labelOptions:u}},[n,r,i,o,a])};function W1e(e){var n=m.useRef();n.current=e;var r=m.useCallback(function(){return n.current.apply(n,arguments)},[]);return r}var u3t=["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"],d3t=["inputValue"];function f3t(e){return!e||cn(e)!=="object"}var p3t=m.forwardRef(function(e,n){var r=e.id,i=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,s=e.backfill,l=e.fieldNames,c=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,p=f===void 0?!0:f,h=e.onSelect,g=e.onDeselect,v=e.dropdownMatchSelectWidth,y=v===void 0?!0:v,_=e.filterOption,S=e.filterSort,b=e.optionFilterProp,E=e.optionLabelProp,w=e.options,C=e.optionRender,x=e.children,T=e.defaultActiveFirstOption,R=e.menuItemSelectedIcon,O=e.virtual,M=e.direction,P=e.listHeight,k=P===void 0?200:P,$=e.listItemHeight,U=$===void 0?20:$,z=e.labelRender,D=e.value,B=e.defaultValue,Y=e.labelInValue,q=e.onChange,K=e.maxCount,H=Xt(e,u3t),G=Wue(r),Q=sie(i),le=!!(!w&&x),Z=m.useMemo(function(){return _===void 0&&i==="combobox"?!1:_},[_,i]),j=m.useMemo(function(){return lUe(l,le)},[JSON.stringify(l),le]),F=dr("",{value:u!==void 0?u:c,postState:function(vt){return vt||""}}),te=ke(F,2),oe=te[0],de=te[1],pe=c3t(w,x,j,b,E),me=pe.valueOptions,ve=pe.labelOptions,he=pe.options,be=m.useCallback(function(nt){var vt=aUe(nt);return vt.map(function(kt){var Dt,Kt,Ht,tn,on;if(f3t(kt))Dt=kt;else{var sn;Ht=kt.key,Kt=kt.label,Dt=(sn=kt.value)!==null&&sn!==void 0?sn:Ht}var Jt=me.get(Dt);if(Jt){var En;Kt===void 0&&(Kt=Jt==null?void 0:Jt[E||j.label]),Ht===void 0&&(Ht=(En=Jt==null?void 0:Jt.key)!==null&&En!==void 0?En:Dt),tn=Jt==null?void 0:Jt.disabled,on=Jt==null?void 0:Jt.title}return{label:Kt,value:Dt,key:Ht,disabled:tn,title:on}})},[j,E,me]),we=dr(B,{value:D}),De=ke(we,2),Ae=De[0],Ee=De[1],Re=m.useMemo(function(){var nt,vt=Q&&Ae===null?[]:Ae,kt=be(vt);return i==="combobox"&&s$t((nt=kt[0])===null||nt===void 0?void 0:nt.value)?[]:kt},[Ae,be,i,Q]),Te=n3t(Re,me),Oe=ke(Te,2),Ne=Oe[0],je=Oe[1],ne=m.useMemo(function(){if(!i&&Ne.length===1){var nt=Ne[0];if(nt.value===null&&(nt.label===null||nt.label===void 0))return[]}return Ne.map(function(vt){var kt;return ee(ee({},vt),{},{label:(kt=typeof z=="function"?z(vt):vt.label)!==null&&kt!==void 0?kt:vt.value})})},[i,Ne,z]),J=m.useMemo(function(){return new Set(Ne.map(function(nt){return nt.value}))},[Ne]);m.useEffect(function(){if(i==="combobox"){var nt,vt=(nt=Ne[0])===null||nt===void 0?void 0:nt.value;de(a$t(vt)?String(vt):"")}},[Ne]);var ae=W1e(function(nt,vt){var kt=vt??nt;return fe(fe({},j.value,nt),j.label,kt)}),Se=m.useMemo(function(){if(i!=="tags")return he;var nt=Tt(he),vt=function(Dt){return me.has(Dt)};return Tt(Ne).sort(function(kt,Dt){return kt.value<Dt.value?-1:1}).forEach(function(kt){var Dt=kt.value;vt(Dt)||nt.push(ae(Dt,kt.label))}),nt},[ae,he,me,Ne,i]),xe=r3t(Se,j,oe,Z,b),ue=m.useMemo(function(){return i!=="tags"||!oe||xe.some(function(nt){return nt[b||"value"]===oe})||xe.some(function(nt){return nt[j.value]===oe})?xe:[ae(oe)].concat(Tt(xe))},[ae,b,i,xe,oe,j]),Me=function nt(vt){var kt=Tt(vt).sort(function(Dt,Kt){return S(Dt,Kt,{searchValue:oe})});return kt.map(function(Dt){return Array.isArray(Dt.options)?ee(ee({},Dt),{},{options:Dt.options.length>0?nt(Dt.options):Dt.options}):Dt})},$e=m.useMemo(function(){return S?Me(ue):ue},[ue,S,oe]),ge=m.useMemo(function(){return M$t($e,{fieldNames:j,childrenAsData:le})},[$e,j,le]),Ve=function(vt){var kt=be(vt);if(Ee(kt),q&&(kt.length!==Ne.length||kt.some(function(Ht,tn){var on;return((on=Ne[tn])===null||on===void 0?void 0:on.value)!==(Ht==null?void 0:Ht.value)}))){var Dt=Y?kt:kt.map(function(Ht){return Ht.value}),Kt=kt.map(function(Ht){return aie(je(Ht.value))});q(Q?Dt:Dt[0],Q?Kt:Kt[0])}},st=m.useState(null),Je=ke(st,2),ot=Je[0],Xe=Je[1],Ze=m.useState(0),bt=ke(Ze,2),at=bt[0],pt=bt[1],Ct=T!==void 0?T:i!=="combobox",It=m.useCallback(function(nt,vt){var kt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Dt=kt.source,Kt=Dt===void 0?"keyboard":Dt;pt(vt),s&&i==="combobox"&&nt!==null&&Kt==="keyboard"&&Xe(String(nt))},[s,i]),Wt=function(vt,kt,Dt){var Kt=function(){var jt,Lt=je(vt);return[Y?{label:Lt==null?void 0:Lt[j.label],value:vt,key:(jt=Lt==null?void 0:Lt.key)!==null&&jt!==void 0?jt:vt}:vt,aie(Lt)]};if(kt&&h){var Ht=Kt(),tn=ke(Ht,2),on=tn[0],sn=tn[1];h(on,sn)}else if(!kt&&g&&Dt!=="clear"){var Jt=Kt(),En=ke(Jt,2),Pt=En[0],Qt=En[1];g(Pt,Qt)}},Bt=W1e(function(nt,vt){var kt,Dt=Q?vt.selected:!0;Dt?kt=Q?[].concat(Tt(Ne),[nt]):[nt]:kt=Ne.filter(function(Kt){return Kt.value!==nt}),Ve(kt),Wt(nt,Dt),i==="combobox"?Xe(""):(!sie||p)&&(de(""),Xe(""))}),Vt=function(vt,kt){Ve(vt);var Dt=kt.type,Kt=kt.values;(Dt==="remove"||Dt==="clear")&&Kt.forEach(function(Ht){Wt(Ht.value,!1,Dt)})},rn=function(vt,kt){if(de(vt),Xe(null),kt.source==="submit"){var Dt=(vt||"").trim();if(Dt){var Kt=Array.from(new Set([].concat(Tt(J),[Dt])));Ve(Kt),Wt(Dt,!0),de("")}return}kt.source!=="blur"&&(i==="combobox"&&Ve(vt),d==null||d(vt))},tt=function(vt){var kt=vt;i!=="tags"&&(kt=vt.map(function(Kt){var Ht=ve.get(Kt);return Ht==null?void 0:Ht.value}).filter(function(Kt){return Kt!==void 0}));var Dt=Array.from(new Set([].concat(Tt(J),Tt(kt))));Ve(Dt),Dt.forEach(function(Kt){Wt(Kt,!0)})},it=m.useMemo(function(){var nt=O!==!1&&y!==!1;return ee(ee({},pe),{},{flattenOptions:ge,onActiveValue:It,defaultActiveFirstOption:Ct,onSelect:Bt,menuItemSelectedIcon:R,rawValues:J,fieldNames:j,virtual:nt,direction:M,listHeight:k,listItemHeight:U,childrenAsData:le,maxCount:K,optionRender:C})},[K,pe,ge,It,Ct,Bt,R,J,j,O,y,M,k,U,le,C]);return m.createElement(Uue.Provider,{value:it},m.createElement(Hue,ft({},H,{id:G,prefixCls:a,ref:n,omitDomProps:d3t,mode:i,displayValues:ne,onDisplayValuesChange:Vt,direction:M,searchValue:oe,onSearch:rn,autoClearSearchValue:p,onSearchSplit:tt,dropdownMatchSelectWidth:y,OptionList:t3t,emptyOptions:!ge.length,activeValue:ot,activeDescendantId:"".concat(G,"_list_").concat(at)})))}),Yue=p3t;Yue.Option=Vue;Yue.OptGroup=zue;function rg(e,n,r){return Ce({[`${e}-status-success`]:n==="success",[`${e}-status-warning`]:n==="warning",[`${e}-status-error`]:n==="error",[`${e}-status-validating`]:n==="validating",[`${e}-has-feedback`]:r})}const Jy=(e,n)=>n||e,h3t=()=>{const[,e]=Nl(),[n]=Mu("Empty"),i=new Gr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return m.createElement("svg",{style:i,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},m.createElement("title",null,(n==null?void 0:n.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"}))))},g3t=()=>{const[,e]=Nl(),[n]=Mu("Empty"),{colorFill:r,colorFillTertiary:i,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:s,shadowColor:l,contentColor:c}=m.useMemo(()=>({borderColor:new Gr(r).onBackground(a).toHexString(),shadowColor:new Gr(i).onBackground(a).toHexString(),contentColor:new Gr(o).onBackground(a).toHexString()}),[r,i,o,a]);return m.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},m.createElement("title",null,(n==null?void 0:n.description)||"Empty"),m.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},m.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),m.createElement("g",{fillRule:"nonzero",stroke:s},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:c}))))},m3t=e=>{const{componentCls:n,margin:r,marginXS:i,marginXL:o,fontSize:a,lineHeight:s}=e;return{[n]:{marginInline:i,fontSize:a,lineHeight:s,textAlign:"center",[`${n}-image`]:{height:e.emptyImgHeight,marginBottom:i,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${n}-description`]:{color:e.colorTextDescription},[`${n}-footer`]:{marginTop:r},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${n}-description`]:{color:e.colorTextDescription},[`${n}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:i,color:e.colorTextDescription,[`${n}-image`]:{height:e.emptyImgHeightSM}}}}},v3t=Yr("Empty",e=>{const{componentCls:n,controlHeightLG:r,calc:i}=e,o=wr(e,{emptyImgCls:`${n}-img`,emptyImgHeight:i(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:i(r).mul(.875).equal()});return[m3t(o)]});var y3t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const fUe=m.createElement(h3t,null),pUe=m.createElement(g3t,null),xb=e=>{var n,r,i,o,a,s,l,c;const{className:u,rootClassName:d,prefixCls:f,image:p=fUe,description:h,children:g,imageStyle:v,style:y,classNames:_,styles:S}=e,b=y3t(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:E,direction:w,empty:C}=m.useContext(Cn),x=E("empty",f),[T,R,O]=v3t(x),[M]=Mu("Empty"),P=typeof h<"u"?h:M==null?void 0:M.description,k=typeof P=="string"?P:"empty";let $=null;return typeof p=="string"?$=m.createElement("img",{alt:k,src:p}):$=p,T(m.createElement("div",Object.assign({className:Ce(R,O,x,C==null?void 0:C.className,{[`${x}-normal`]:p===pUe,[`${x}-rtl`]:w==="rtl"},u,d,(n=C==null?void 0:C.classNames)===null||n===void 0?void 0:n.root,_==null?void 0:_.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(r=C==null?void 0:C.styles)===null||r===void 0?void 0:r.root),C==null?void 0:C.style),S==null?void 0:S.root),y)},b),m.createElement("div",{className:Ce(`${x}-image`,(i=C==null?void 0:C.classNames)===null||i===void 0?void 0:i.image,_==null?void 0:_.image),style:Object.assign(Object.assign(Object.assign({},v),(o=C==null?void 0:C.styles)===null||o===void 0?void 0:o.image),S==null?void 0:S.image)},$),P&&m.createElement("div",{className:Ce(`${x}-description`,(a=C==null?void 0:C.classNames)===null||a===void 0?void 0:a.description,_==null?void 0:_.description),style:Object.assign(Object.assign({},(s=C==null?void 0:C.styles)===null||s===void 0?void 0:s.description),S==null?void 0:S.description)},P),g&&m.createElement("div",{className:Ce(`${x}-footer`,(l=C==null?void 0:C.classNames)===null||l===void 0?void 0:l.footer,_==null?void 0:_.footer),style:Object.assign(Object.assign({},(c=C==null?void 0:C.styles)===null||c===void 0?void 0:c.footer),S==null?void 0:S.footer)},g)))};xb.PRESENTED_IMAGE_DEFAULT=fUe;xb.PRESENTED_IMAGE_SIMPLE=pUe;const tU=e=>{const{componentName:n}=e,{getPrefixCls:r}=m.useContext(Cn),i=r("empty");switch(n){case"Table":case"List":return V.createElement(xb,{image:xb.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return V.createElement(xb,{image:xb.PRESENTED_IMAGE_SIMPLE,className:`${i}-small`});case"Table.filter":return null;default:return V.createElement(xb,null)}},e_=function(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var i,o;const{variant:a,[e]:s}=m.useContext(Cn),l=m.useContext(N9e),c=s==null?void 0:s.variant;let u;typeof n<"u"?u=n:r===!1?u="borderless":u=(o=(i=l??c)!==null&&i!==void 0?i:a)!==null&&o!==void 0?o:"outlined";const d=WNt.includes(u);return[u,d]},_3t=e=>{const r={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},r),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},r),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},r),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},r),{points:["br","tr"],offset:[0,-4]})}};function que(e,n){return e||_3t(n)}const Y1e=e=>{const{optionHeight:n,optionFontSize:r,optionLineHeight:i,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:n,padding:o,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:i,boxSizing:"border-box"}},b3t=e=>{const{antCls:n,componentCls:r}=e,i=`${r}-item`,o=`&${n}-slide-up-enter${n}-slide-up-enter-active`,a=`&${n}-slide-up-appear${n}-slide-up-appear-active`,s=`&${n}-slide-up-leave${n}-slide-up-leave-active`,l=`${r}-dropdown-placement-`,c=`${i}-option-selected`;return[{[`${r}-dropdown`]:Object.assign(Object.assign({},li(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
${o}${l}bottomLeft,
${a}${l}bottomLeft
`]:{animationName:j9},[`
${o}${l}topLeft,
${a}${l}topLeft,
${o}${l}topRight,
${a}${l}topRight
`]:{animationName:H9},[`${s}${l}bottomLeft`]:{animationName:U9},[`
${s}${l}topLeft,
${s}${l}topRight
`]:{animationName:z9},"&-hidden":{display:"none"},[i]:Object.assign(Object.assign({},Y1e(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"},Sf),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${i}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${i}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${i}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${i}-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({},Y1e(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Pm(e,"slide-up"),Pm(e,"slide-down"),DO(e,"move-up"),DO(e,"move-down")]},hUe=e=>{const{multipleSelectItemHeight:n,paddingXXS:r,lineWidth:i,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(r).sub(i).equal(),0),s=e.max(e.calc(a).sub(o).equal(),0);return{basePadding:a,containerPadding:s,itemHeight:Ye(n),itemLineHeight:Ye(e.calc(n).sub(e.calc(e.lineWidth).mul(2)).equal())}},S3t=e=>{const{multipleSelectItemHeight:n,selectHeight:r,lineWidth:i}=e;return e.calc(r).sub(n).div(2).sub(i).equal()},gUe=e=>{const{componentCls:n,iconCls:r,borderRadiusSM:i,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${n}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:i,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${n}-disabled&`]:{color:s,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},ew()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},E3t=(e,n)=>{const{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,o=`${r}-selection-overflow`,a=e.multipleSelectItemHeight,s=S3t(e),l=n?`${r}-${n}`:"",c=hUe(e);return{[`${r}-multiple${l}`]:Object.assign(Object.assign({},gUe(e)),{[`${r}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${r}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ye(i)} 0`,lineHeight:Ye(a),visibility:"hidden",content:'"\\a0"'}},[`${r}-selection-item`]:{height:c.itemHeight,lineHeight:Ye(c.itemLineHeight)},[`${r}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Ye(a),marginBlock:i}},[`${r}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${o}-item + ${o}-item,
${r}-prefix + ${r}-selection-wrap
`]:{[`${r}-selection-search`]:{marginInlineStart:0},[`${r}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:c.itemHeight,marginBlock:i},[`${r}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:Ye(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${r}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function nq(e,n){const{componentCls:r}=e,i=n?`${r}-${n}`:"",o={[`${r}-multiple${i}`]:{fontSize:e.fontSize,[`${r}-selector`]:{[`${r}-show-search&`]:{cursor:"text"}},[`
&${r}-show-arrow ${r}-selector,
&${r}-allow-clear ${r}-selector
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[E3t(e,n),o]}const C3t=e=>{const{componentCls:n}=e,r=wr(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),i=wr(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[nq(e),nq(r,"sm"),{[`${n}-multiple${n}-sm`]:{[`${n}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${n}-selection-search`]:{marginInlineStart:2}}},nq(i,"lg")]};function rq(e,n){const{componentCls:r,inputPaddingHorizontalBase:i,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),s=n?`${r}-${n}`:"";return{[`${r}-single${s}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${r}-selector`]:Object.assign(Object.assign({},li(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${r}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${r}-selection-item,
${r}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:Ye(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${r}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${r}-selection-item:empty:after`,`${r}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${r}-show-arrow ${r}-selection-item,
&${r}-show-arrow ${r}-selection-search,
&${r}-show-arrow ${r}-selection-placeholder
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${r}-open ${r}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${r}-customize-input)`]:{[`${r}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Ye(i)}`,[`${r}-selection-search-input`]:{height:a},"&:after":{lineHeight:Ye(a)}}},[`&${r}-customize-input`]:{[`${r}-selector`]:{"&:after":{display:"none"},[`${r}-selection-search`]:{position:"static",width:"100%"},[`${r}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ye(i)}`,"&:after":{display:"none"}}}}}}}function w3t(e){const{componentCls:n}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[rq(e),rq(wr(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${n}-single${n}-sm`]:{[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{padding:`0 ${Ye(r)}`},[`&${n}-show-arrow ${n}-selection-search`]:{insetInlineEnd:e.calc(r).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
&${n}-show-arrow ${n}-selection-item,
&${n}-show-arrow ${n}-selection-placeholder
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},rq(wr(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const x3t=e=>{const{fontSize:n,lineHeight:r,lineWidth:i,controlHeight:o,controlHeightSM:a,controlHeightLG:s,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:p,controlItemBgHover:h,colorBgContainer:g,colorFillSecondary:v,colorBgContainerDisabled:y,colorTextDisabled:_,colorPrimaryHover:S,colorPrimary:b,controlOutline:E}=e,w=l*2,C=i*2,x=Math.min(o-w,o-C),T=Math.min(a-w,a-C),R=Math.min(s-w,s-C);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:p,optionActiveBg:h,optionPadding:`${(o-n*r)/2}px ${c}px`,optionFontSize:n,optionLineHeight:r,optionHeight:o,selectorBg:g,clearBg:g,singleItemHeightLG:s,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:x,multipleItemHeightSM:T,multipleItemHeightLG:R,multipleSelectorBgDisabled:y,multipleItemColorDisabled:_,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:S,activeBorderColor:b,activeOutlineColor:E,selectAffixPadding:l}},mUe=(e,n)=>{const{componentCls:r,antCls:i,controlOutlineWidth:o}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${Ye(e.lineWidth)} ${e.lineType} ${n.borderColor}`,background:e.selectorBg},[`&:not(${r}-disabled):not(${r}-customize-input):not(${i}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:n.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:n.activeBorderColor,boxShadow:`0 0 0 ${Ye(o)} ${n.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:n.color}}}},q1e=(e,n)=>({[`&${e.componentCls}-status-${n.status}`]:Object.assign({},mUe(e,n))}),T3t=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},mUe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),q1e(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),q1e(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:`${Ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),vUe=(e,n)=>{const{componentCls:r,antCls:i}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:n.bg,border:`${Ye(e.lineWidth)} ${e.lineType} transparent`,color:n.color},[`&:not(${r}-disabled):not(${r}-customize-input):not(${i}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{background:n.hoverBg},[`${r}-focused& ${r}-selector`]:{background:e.selectorBg,borderColor:n.activeBorderColor,outline:0}}}},K1e=(e,n)=>({[`&${e.componentCls}-status-${n.status}`]:Object.assign({},vUe(e,n))}),O3t=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},vUe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),K1e(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),K1e(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:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),R3t=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Ye(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:`${Ye(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}}}}),I3t=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},T3t(e)),O3t(e)),R3t(e))}),N3t=e=>{const{componentCls:n}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${n}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${n}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},M3t=e=>{const{componentCls:n}=e;return{[`${n}-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"}}}},P3t=e=>{const{antCls:n,componentCls:r,inputPaddingHorizontalBase:i,iconCls:o}=e;return{[r]:Object.assign(Object.assign({},li(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},N3t(e)),M3t(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Sf),{[`> ${n}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},Sf),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},ew()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${r}-suffix)`]:{pointerEvents:"auto"}},[`${r}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${r}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,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 ${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},A3t=e=>{const{componentCls:n}=e;return[{[n]:{[`&${n}-in-form-item`]:{width:"100%"}}},P3t(e),w3t(e),C3t(e),b3t(e),{[`${n}-rtl`]:{direction:"rtl"}},nw(e,{borderElCls:`${n}-selector`,focusElCls:`${n}-focused`})]},Kue=Yr("Select",(e,n)=>{let{rootPrefixCls:r}=n;const i=wr(e,{rootPrefixCls:r,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[A3t(i),I3t(i)]},x3t,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var D3t={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"},k3t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:D3t}))},c0=m.forwardRef(k3t),L3t={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"},$3t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:L3t}))},lI=m.forwardRef($3t),F3t={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"},B3t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:F3t}))},Xue=m.forwardRef(B3t);function nU(e){let{suffixIcon:n,clearIcon:r,menuItemSelectedIcon:i,removeIcon:o,loading:a,multiple:s,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const h=r??m.createElement(tv,null),g=S=>n===null&&!l&&!f?null:m.createElement(m.Fragment,null,u!==!1&&S,l&&d);let v=null;if(n!==void 0)v=g(n);else if(a)v=g(m.createElement(Mm,{spin:!0}));else{const S=`${c}-suffix`;v=b=>{let{open:E,showSearch:w}=b;return g(E&&w?m.createElement(Xue,{className:S}):m.createElement(lI,{className:S}))}}let y=null;i!==void 0?y=i:s?y=m.createElement(c0,null):y=null;let _=null;return o!==void 0?_=o:_=m.createElement(Up,null),{clearIcon:h,suffixIcon:v,itemIcon:y,removeIcon:_}}function Que(e,n){return n!==void 0?n:e!==null}var j3t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const yUe="SECRET_COMBOBOX_MODE_DO_NOT_USE",U3t=(e,n)=>{var r;const{prefixCls:i,bordered:o,className:a,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p,size:h,disabled:g,notFoundContent:v,status:y,builtinPlacements:_,dropdownMatchSelectWidth:S,popupMatchSelectWidth:b,direction:E,style:w,allowClear:C,variant:x,dropdownStyle:T,transitionName:R,tagRender:O,maxCount:M,prefix:P}=e,k=j3t(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:$,getPrefixCls:U,renderEmpty:z,direction:D,virtual:B,popupMatchSelectWidth:Y,popupOverflow:q,select:K}=m.useContext(Cn),[,H]=Nl(),G=p??(H==null?void 0:H.controlHeight),Q=U("select",i),le=U(),Z=E??D,{compactSize:j,compactItemClassnames:F}=_g(Q,Z),[te,oe]=e_("select",x,o),de=po(Q),[pe,me,ve]=Kue(Q,de),he=m.useMemo(()=>{const{mode:ot}=e;if(ot!=="combobox")return ot===yUe?"combobox":ot},[e.mode]),be=he==="multiple"||he==="tags",we=Que(e.suffixIcon,e.showArrow),De=(r=b??S)!==null&&r!==void 0?r:Y,{status:Ae,hasFeedback:Ee,isFormItemInput:Re,feedbackIcon:Te}=m.useContext(qs),Oe=Jy(Ae,y);let Ne;v!==void 0?Ne=v:he==="combobox"?Ne=null:Ne=(z==null?void 0:z("Select"))||m.createElement(tU,{componentName:"Select"});const{suffixIcon:je,itemIcon:ne,removeIcon:J,clearIcon:ae}=nU(Object.assign(Object.assign({},k),{multiple:be,hasFeedback:Ee,feedbackIcon:Te,showSuffixIcon:we,prefixCls:Q,componentName:"Select"})),Se=C===!0?{clearIcon:ae}:C,xe=Wr(k,["suffixIcon","itemIcon"]),ue=Ce(c||u,{[`${Q}-dropdown-${Z}`]:Z==="rtl"},s,ve,de,me),Me=Xs(ot=>{var Xe;return(Xe=h??j)!==null&&Xe!==void 0?Xe:ot}),$e=m.useContext(xs),ge=g??$e,Ve=Ce({[`${Q}-lg`]:Me==="large",[`${Q}-sm`]:Me==="small",[`${Q}-rtl`]:Z==="rtl",[`${Q}-${te}`]:oe,[`${Q}-in-form-item`]:Re},rg(Q,Oe,Ee),F,K==null?void 0:K.className,a,s,ve,de,me),st=m.useMemo(()=>f!==void 0?f:Z==="rtl"?"bottomRight":"bottomLeft",[f,Z]),[Je]=Hp("SelectLike",T==null?void 0:T.zIndex);return pe(m.createElement(Yue,Object.assign({ref:n,virtual:B,showSearch:K==null?void 0:K.showSearch},xe,{style:Object.assign(Object.assign({},K==null?void 0:K.style),w),dropdownMatchSelectWidth:De,transitionName:Kl(le,"slide-up",R),builtinPlacements:que(_,q),listHeight:d,listItemHeight:G,mode:he,prefixCls:Q,placement:st,direction:Z,prefix:P,suffixIcon:je,menuItemSelectedIcon:ne,removeIcon:J,allowClear:Se,notFoundContent:Ne,className:Ve,getPopupContainer:l||$,dropdownClassName:ue,disabled:ge,dropdownStyle:Object.assign(Object.assign({},T),{zIndex:Je}),maxCount:be?M:void 0,tagRender:be?O:void 0})))},bg=m.forwardRef(U3t),H3t=tS(bg,"dropdownAlign");bg.SECRET_COMBOBOX_MODE_DO_NOT_USE=yUe;bg.Option=Vue;bg.OptGroup=zue;bg._InternalPanelDoNotUseOrYouWillBeFired=H3t;const kO=["xxl","xl","lg","md","sm","xs"],z3t=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)`}),V3t=e=>{const n=e,r=[].concat(kO).reverse();return r.forEach((i,o)=>{const a=i.toUpperCase(),s=`screen${a}Min`,l=`screen${a}`;if(!(n[s]<=n[l]))throw new Error(`${s}<=${l} fails : !(${n[s]}<=${n[l]})`);if(o<r.length-1){const c=`screen${a}Max`;if(!(n[l]<=n[c]))throw new Error(`${l}<=${c} fails : !(${n[l]}<=${n[c]})`);const d=`screen${r[o+1].toUpperCase()}Min`;if(!(n[c]<=n[d]))throw new Error(`${c}<=${d} fails : !(${n[c]}<=${n[d]})`)}}),e};function _Ue(){const[,e]=Nl(),n=z3t(V3t(e));return V.useMemo(()=>{const r=new Map;let i=-1,o={};return{matchHandlers:{},dispatch(a){return o=a,r.forEach(s=>s(o)),r.size>=1},subscribe(a){return r.size||this.register(),i+=1,r.set(i,a),a(o),i},unsubscribe(a){r.delete(a),r.size||this.unregister()},unregister(){Object.keys(n).forEach(a=>{const s=n[a],l=this.matchHandlers[s];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),r.clear()},register(){Object.keys(n).forEach(a=>{const s=n[a],l=u=>{let{matches:d}=u;this.dispatch(Object.assign(Object.assign({},o),{[a]:d}))},c=window.matchMedia(s);c.addListener(l),this.matchHandlers[s]={mql:c,listener:l},l(c)})},responsiveMap:n}},[e])}function bUe(){const[,e]=m.useReducer(n=>n+1,0);return e}function G3t(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const n=m.useRef({}),r=bUe(),i=_Ue();return ti(()=>{const o=i.subscribe(a=>{n.current=a,e&&r()});return()=>i.unsubscribe(o)},[]),n.current}const lie=m.createContext({}),W3t=e=>{const{antCls:n,componentCls:r,iconCls:i,avatarBg:o,avatarColor:a,containerSize:s,containerSizeLG:l,containerSizeSM:c,textFontSize:u,textFontSizeLG:d,textFontSizeSM:f,borderRadius:p,borderRadiusLG:h,borderRadiusSM:g,lineWidth:v,lineType:y}=e,_=(S,b,E)=>({width:S,height:S,borderRadius:"50%",[`&${r}-square`]:{borderRadius:E},[`&${r}-icon`]:{fontSize:b,[`> ${i}`]:{margin:0}}});return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${Ye(v)} ${y} transparent`,"&-image":{background:"transparent"},[`${n}-image-img`]:{display:"block"}}),_(s,u,p)),{"&-lg":Object.assign({},_(l,d,h)),"&-sm":Object.assign({},_(c,f,g)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Y3t=e=>{const{componentCls:n,groupBorderColor:r,groupOverlapping:i,groupSpace:o}=e;return{[`${n}-group`]:{display:"inline-flex",[n]:{borderColor:r},"> *:not(:first-child)":{marginInlineStart:i}},[`${n}-group-popover`]:{[`${n} + ${n}`]:{marginInlineStart:o}}}},q3t=e=>{const{controlHeight:n,controlHeightLG:r,controlHeightSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:s,fontSizeHeading3:l,marginXS:c,marginXXS:u,colorBorderBg:d}=e;return{containerSize:n,containerSizeLG:r,containerSizeSM:i,textFontSize:Math.round((a+s)/2),textFontSizeLG:l,textFontSizeSM:o,groupSpace:u,groupOverlapping:-c,groupBorderColor:d}},SUe=Yr("Avatar",e=>{const{colorTextLightSolid:n,colorTextPlaceholder:r}=e,i=wr(e,{avatarBg:r,avatarColor:n});return[W3t(i),Y3t(i)]},q3t);var K3t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const X3t=(e,n)=>{const[r,i]=m.useState(1),[o,a]=m.useState(!1),[s,l]=m.useState(!0),c=m.useRef(null),u=m.useRef(null),d=Il(n,c),{getPrefixCls:f,avatar:p}=m.useContext(Cn),h=m.useContext(lie),g=()=>{if(!u.current||!c.current)return;const F=u.current.offsetWidth,te=c.current.offsetWidth;if(F!==0&&te!==0){const{gap:oe=4}=e;oe*2<te&&i(te-oe*2<F?(te-oe*2)/F:1)}};m.useEffect(()=>{a(!0)},[]),m.useEffect(()=>{l(!0),i(1)},[e.src]),m.useEffect(g,[e.gap]);const v=()=>{const{onError:F}=e;(F==null?void 0:F())!==!1&&l(!1)},{prefixCls:y,shape:_,size:S,src:b,srcSet:E,icon:w,className:C,rootClassName:x,alt:T,draggable:R,children:O,crossOrigin:M}=e,P=K3t(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),k=Xs(F=>{var te,oe;return(oe=(te=S??(h==null?void 0:h.size))!==null&&te!==void 0?te:F)!==null&&oe!==void 0?oe:"default"}),$=Object.keys(typeof k=="object"?k||{}:{}).some(F=>["xs","sm","md","lg","xl","xxl"].includes(F)),U=G3t($),z=m.useMemo(()=>{if(typeof k!="object")return{};const F=kO.find(oe=>U[oe]),te=k[F];return te?{width:te,height:te,fontSize:te&&(w||O)?te/2:18}:{}},[U,k]),D=f("avatar",y),B=po(D),[Y,q,K]=SUe(D,B),H=Ce({[`${D}-lg`]:k==="large",[`${D}-sm`]:k==="small"}),G=m.isValidElement(b),Q=_||(h==null?void 0:h.shape)||"circle",le=Ce(D,H,p==null?void 0:p.className,`${D}-${Q}`,{[`${D}-image`]:G||b&&s,[`${D}-icon`]:!!w},K,B,C,x,q),Z=typeof k=="number"?{width:k,height:k,fontSize:w?k/2:18}:{};let j;if(typeof b=="string"&&s)j=m.createElement("img",{src:b,draggable:R,srcSet:E,onError:v,alt:T,crossOrigin:M});else if(G)j=b;else if(w)j=w;else if(o||r!==1){const F=`scale(${r})`,te={msTransform:F,WebkitTransform:F,transform:F};j=m.createElement(Hc,{onResize:g},m.createElement("span",{className:`${D}-string`,ref:u,style:Object.assign({},te)},O))}else j=m.createElement("span",{className:`${D}-string`,style:{opacity:0},ref:u},O);return delete P.onError,delete P.gap,Y(m.createElement("span",Object.assign({},P,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Z),z),p==null?void 0:p.style),P.style),className:le,ref:d}),j))},EUe=m.forwardRef(X3t),LO=e=>e?typeof e=="function"?e():e:null;function Zue(e){var n=e.children,r=e.prefixCls,i=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,s=e.className,l=e.style;return m.createElement("div",{className:Ce("".concat(r,"-content"),s),style:l},m.createElement("div",{className:Ce("".concat(r,"-inner"),a),id:i,role:"tooltip",style:o},typeof n=="function"?n():n))}var _x={shiftX:64,adjustY:1},bx={adjustX:1,shiftY:!0},Wf=[0,0],Q3t={left:{points:["cr","cl"],overflow:bx,offset:[-4,0],targetOffset:Wf},right:{points:["cl","cr"],overflow:bx,offset:[4,0],targetOffset:Wf},top:{points:["bc","tc"],overflow:_x,offset:[0,-4],targetOffset:Wf},bottom:{points:["tc","bc"],overflow:_x,offset:[0,4],targetOffset:Wf},topLeft:{points:["bl","tl"],overflow:_x,offset:[0,-4],targetOffset:Wf},leftTop:{points:["tr","tl"],overflow:bx,offset:[-4,0],targetOffset:Wf},topRight:{points:["br","tr"],overflow:_x,offset:[0,-4],targetOffset:Wf},rightTop:{points:["tl","tr"],overflow:bx,offset:[4,0],targetOffset:Wf},bottomRight:{points:["tr","br"],overflow:_x,offset:[0,4],targetOffset:Wf},rightBottom:{points:["bl","br"],overflow:bx,offset:[4,0],targetOffset:Wf},bottomLeft:{points:["tl","bl"],overflow:_x,offset:[0,4],targetOffset:Wf},leftBottom:{points:["br","bl"],overflow:bx,offset:[-4,0],targetOffset:Wf}},Z3t=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],J3t=function(n,r){var i=n.overlayClassName,o=n.trigger,a=o===void 0?["hover"]:o,s=n.mouseEnterDelay,l=s===void 0?0:s,c=n.mouseLeaveDelay,u=c===void 0?.1:c,d=n.overlayStyle,f=n.prefixCls,p=f===void 0?"rc-tooltip":f,h=n.children,g=n.onVisibleChange,v=n.afterVisibleChange,y=n.transitionName,_=n.animation,S=n.motion,b=n.placement,E=b===void 0?"right":b,w=n.align,C=w===void 0?{}:w,x=n.destroyTooltipOnHide,T=x===void 0?!1:x,R=n.defaultVisible,O=n.getTooltipContainer,M=n.overlayInnerStyle;n.arrowContent;var P=n.overlay,k=n.id,$=n.showArrow,U=$===void 0?!0:$,z=n.classNames,D=n.styles,B=Xt(n,Z3t),Y=m.useRef(null);m.useImperativeHandle(r,function(){return Y.current});var q=ee({},B);"visible"in n&&(q.popupVisible=n.visible);var K=function(){return m.createElement(Zue,{key:"content",prefixCls:p,id:k,bodyClassName:z==null?void 0:z.body,overlayInnerStyle:ee(ee({},M),D==null?void 0:D.body)},P)};return m.createElement(yk,ft({popupClassName:Ce(i,z==null?void 0:z.root),prefixCls:p,popup:K,action:a,builtinPlacements:Q3t,popupPlacement:E,ref:Y,popupAlign:C,getPopupContainer:O,onPopupVisibleChange:g,afterPopupVisibleChange:v,popupTransitionName:y,popupAnimation:_,popupMotion:S,defaultPopupVisible:R,autoDestroy:T,mouseLeaveDelay:u,popupStyle:ee(ee({},d),D==null?void 0:D.root),mouseEnterDelay:l,arrow:U},q),h)};const e4t=m.forwardRef(J3t);function rU(e){const{sizePopupArrow:n,borderRadiusXS:r,borderRadiusOuter:i}=e,o=n/2,a=0,s=o,l=i*1/Math.sqrt(2),c=o-i*(1-1/Math.sqrt(2)),u=o-r*(1/Math.sqrt(2)),d=i*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*o-u,p=d,h=2*o-l,g=c,v=2*o-a,y=s,_=o*Math.sqrt(2)+i*(Math.sqrt(2)-2),S=i*(Math.sqrt(2)-1),b=`polygon(${S}px 100%, 50% ${S}px, ${2*o-S}px 100%, ${S}px 100%)`,E=`path('M ${a} ${s} A ${i} ${i} 0 0 0 ${l} ${c} L ${u} ${d} A ${r} ${r} 0 0 1 ${f} ${p} L ${h} ${g} A ${i} ${i} 0 0 0 ${v} ${y} Z')`;return{arrowShadowWidth:_,arrowPath:E,arrowPolygon:b}}const CUe=(e,n,r)=>{const{sizePopupArrow:i,arrowPolygon:o,arrowPath:a,arrowShadowWidth:s,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:i,height:i,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:i,height:c(i).div(2).equal(),background:n,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ye(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},wUe=8;function iU(e){const{contentRadius:n,limitVerticalRadius:r}=e,i=n>12?n+2:12;return{arrowOffsetHorizontal:i,arrowOffsetVertical:r?wUe:i}}function W3(e,n){return e?n:{}}function Jue(e,n,r){const{componentCls:i,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:s}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[i]:Object.assign(Object.assign(Object.assign(Object.assign({[`${i}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},CUe(e,n,o)),{"&:before":{background:n}})]},W3(!!c.top,{[[`&-placement-top > ${i}-arrow`,`&-placement-topLeft > ${i}-arrow`,`&-placement-topRight > ${i}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":s,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ye(s)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),W3(!!c.bottom,{[[`&-placement-bottom > ${i}-arrow`,`&-placement-bottomLeft > ${i}-arrow`,`&-placement-bottomRight > ${i}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":s,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:s}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ye(s)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:s}}}})),W3(!!c.left,{[[`&-placement-left > ${i}-arrow`,`&-placement-leftTop > ${i}-arrow`,`&-placement-leftBottom > ${i}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${i}-arrow`]:{top:a},[`&-placement-leftBottom > ${i}-arrow`]:{bottom:a}})),W3(!!c.right,{[[`&-placement-right > ${i}-arrow`,`&-placement-rightTop > ${i}-arrow`,`&-placement-rightBottom > ${i}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${i}-arrow`]:{top:a},[`&-placement-rightBottom > ${i}-arrow`]:{bottom:a}}))}}function t4t(e,n,r,i){if(i===!1)return{adjustX:!1,adjustY:!1};const o=i&&typeof i=="object"?i:{},a={};switch(e){case"top":case"bottom":a.shiftX=n.arrowOffsetHorizontal*2+r,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=n.arrowOffsetVertical*2+r,a.shiftX=!0,a.adjustX=!0;break}const s=Object.assign(Object.assign({},a),o);return s.shiftX||(s.adjustX=!0),s.shiftY||(s.adjustY=!0),s}const X1e={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"]}},n4t={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"]}},r4t=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function xUe(e){const{arrowWidth:n,autoAdjustOverflow:r,arrowPointAtCenter:i,offset:o,borderRadius:a,visibleFirst:s}=e,l=n/2,c={};return Object.keys(X1e).forEach(u=>{const d=i&&n4t[u]||X1e[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=f,r4t.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}const p=iU({contentRadius:a,limitVerticalRadius:!0});if(i)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-p.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=p.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-p.arrowOffsetHorizontal*2+l;break;case"leftBottom":case"rightBottom":f.offset[1]=p.arrowOffsetHorizontal*2-l;break}f.overflow=t4t(u,p,n,r),s&&(f.htmlRegion="visibleFirst")}),c}const i4t=e=>{const{calc:n,componentCls:r,tooltipMaxWidth:i,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:s,zIndexPopup:l,controlHeight:c,boxShadowSecondary:u,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:p,sizePopupArrow:h}=e,g=n(s).add(h).add(p).equal(),v=n(s).mul(2).add(h).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:i,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${r}-inner`]:{minWidth:v,minHeight:c,padding:`${Ye(e.calc(d).div(2).equal())} ${Ye(f)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:s,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:g},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(s,wUe)}},[`${r}-content`]:{position:"relative"}}),Sue(e,(y,_)=>{let{darkColor:S}=_;return{[`&${r}-${y}`]:{[`${r}-inner`]:{backgroundColor:S},[`${r}-arrow`]:{"--antd-arrow-background-color":S}}}})),{"&-rtl":{direction:"rtl"}})},Jue(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},o4t=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},iU({contentRadius:e.borderRadius,limitVerticalRadius:!0})),rU(wr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),TUe=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Yr("Tooltip",i=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:s}=i,l=wr(i,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:s});return[i4t(l),oI(i,"zoom-big-fast")]},o4t,{resetStyle:!1,injectStyle:n})(e)},a4t=oC.map(e=>`${e}-inverse`);function ede(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Tt(a4t),Tt(oC)).includes(e):oC.includes(e)}function OUe(e,n){const r=ede(n),i=Ce({[`${e}-${n}`]:n&&r}),o={},a={};return n&&!r&&(o.background=n,a["--antd-arrow-background-color"]=n),{className:i,overlayStyle:o,arrowStyle:a}}const s4t=e=>{const{prefixCls:n,className:r,placement:i="top",title:o,color:a,overlayInnerStyle:s}=e,{getPrefixCls:l}=m.useContext(Cn),c=l("tooltip",n),[u,d,f]=TUe(c),p=OUe(c,a),h=p.arrowStyle,g=Object.assign(Object.assign({},s),p.overlayStyle),v=Ce(d,f,c,`${c}-pure`,`${c}-placement-${i}`,r,p.className);return u(m.createElement("div",{className:v,style:h},m.createElement("div",{className:`${c}-arrow`}),m.createElement(Zue,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:g}),o)))};var l4t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const c4t=m.forwardRef((e,n)=>{var r,i,o,a,s,l;const{prefixCls:c,openClassName:u,getTooltipContainer:d,color:f,overlayInnerStyle:p,children:h,afterOpenChange:g,afterVisibleChange:v,destroyTooltipOnHide:y,arrow:_=!0,title:S,overlay:b,builtinPlacements:E,arrowPointAtCenter:w=!1,autoAdjustOverflow:C=!0}=e,x=!!_,[,T]=Nl(),{getPopupContainer:R,getPrefixCls:O,direction:M,tooltip:P}=m.useContext(Cn),k=JC(),$=m.useRef(null),U=()=>{var xe;(xe=$.current)===null||xe===void 0||xe.forceAlign()};m.useImperativeHandle(n,()=>{var xe;return{forceAlign:U,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),U()},nativeElement:(xe=$.current)===null||xe===void 0?void 0:xe.nativeElement}});const[z,D]=dr(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(i=e.defaultOpen)!==null&&i!==void 0?i:e.defaultVisible}),B=!S&&!b&&S!==0,Y=xe=>{var ue,Me;D(B?!1:xe),B||((ue=e.onOpenChange)===null||ue===void 0||ue.call(e,xe),(Me=e.onVisibleChange)===null||Me===void 0||Me.call(e,xe))},q=m.useMemo(()=>{var xe,ue;let Me=w;return typeof _=="object"&&(Me=(ue=(xe=_.pointAtCenter)!==null&&xe!==void 0?xe:_.arrowPointAtCenter)!==null&&ue!==void 0?ue:w),E||xUe({arrowPointAtCenter:Me,autoAdjustOverflow:C,arrowWidth:x?T.sizePopupArrow:0,borderRadius:T.borderRadius,offset:T.marginXXS,visibleFirst:!0})},[w,_,E,T]),K=m.useMemo(()=>S===0?S:b||S||"",[b,S]),H=m.createElement(ng,{space:!0},typeof K=="function"?K():K),{getPopupContainer:G,placement:Q="top",mouseEnterDelay:le=.1,mouseLeaveDelay:Z=.1,overlayStyle:j,rootClassName:F,overlayClassName:te,styles:oe,classNames:de}=e,pe=l4t(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),me=O("tooltip",c),ve=O(),he=e["data-popover-inject"];let be=z;!("open"in e)&&!("visible"in e)&&B&&(be=!1);const we=m.isValidElement(h)&&!j7e(h)?h:m.createElement("span",null,h),De=we.props,Ae=!De.className||typeof De.className=="string"?Ce(De.className,u||`${me}-open`):De.className,[Ee,Re,Te]=TUe(me,!he),Oe=OUe(me,f),Ne=Oe.arrowStyle,je=Ce(te,{[`${me}-rtl`]:M==="rtl"},Oe.className,F,Re,Te,P==null?void 0:P.className,(o=P==null?void 0:P.classNames)===null||o===void 0?void 0:o.root,de==null?void 0:de.root),ne=Ce((a=P==null?void 0:P.classNames)===null||a===void 0?void 0:a.body,de==null?void 0:de.body),[J,ae]=Hp("Tooltip",pe.zIndex),Se=m.createElement(e4t,Object.assign({},pe,{zIndex:J,showArrow:x,placement:Q,mouseEnterDelay:le,mouseLeaveDelay:Z,prefixCls:me,classNames:{root:je,body:ne},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ne),(s=P==null?void 0:P.styles)===null||s===void 0?void 0:s.root),P==null?void 0:P.style),j),oe==null?void 0:oe.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},(l=P==null?void 0:P.styles)===null||l===void 0?void 0:l.body),p),oe==null?void 0:oe.body),Oe.overlayStyle)},getTooltipContainer:G||d||R,ref:$,builtinPlacements:q,overlay:H,visible:be,onVisibleChange:Y,afterVisibleChange:g??v,arrowContent:m.createElement("span",{className:`${me}-arrow-content`}),motion:{motionName:Kl(ve,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!y}),be?Ys(we,{className:Ae}):we);return Ee(m.createElement(ck.Provider,{value:ae},Se))}),Ef=c4t;Ef._InternalPanelDoNotUseOrYouWillBeFired=s4t;const u4t=e=>{const{componentCls:n,popoverColor:r,titleMinWidth:i,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:s,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:p,titleBorderBottom:h,innerContentPadding:g,titlePadding:v}=e;return[{[n]:Object.assign(Object.assign({},li(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${n}-content`]:{position:"relative"},[`${n}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:c,boxShadow:s,padding:a},[`${n}-title`]:{minWidth:i,marginBottom:d,color:l,fontWeight:o,borderBottom:h,padding:v},[`${n}-inner-content`]:{color:r,padding:g}})},Jue(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${n}-content`]:{display:"inline-block"}}}]},d4t=e=>{const{componentCls:n}=e;return{[n]:oC.map(r=>{const i=e[`${r}6`];return{[`&${n}-${r}`]:{"--antd-arrow-background-color":i,[`${n}-inner`]:{backgroundColor:i},[`${n}-arrow`]:{background:"transparent"}}}})}},f4t=e=>{const{lineWidth:n,controlHeight:r,fontHeight:i,padding:o,wireframe:a,zIndexPopupBase:s,borderRadiusLG:l,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,p=r-i,h=p/2,g=p/2-n,v=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:s+30},rU(e)),iU({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${h}px ${v}px ${g}px`:0,titleBorderBottom:a?`${n}px ${u} ${d}`:"none",innerContentPadding:a?`${f}px ${v}px`:0})},RUe=Yr("Popover",e=>{const{colorBgElevated:n,colorText:r}=e,i=wr(e,{popoverBg:n,popoverColor:r});return[u4t(i),d4t(i),oI(i,"zoom-big")]},f4t,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var p4t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const IUe=e=>{let{title:n,content:r,prefixCls:i}=e;return!n&&!r?null:m.createElement(m.Fragment,null,n&&m.createElement("div",{className:`${i}-title`},n),r&&m.createElement("div",{className:`${i}-inner-content`},r))},h4t=e=>{const{hashId:n,prefixCls:r,className:i,style:o,placement:a="top",title:s,content:l,children:c}=e,u=LO(s),d=LO(l),f=Ce(n,r,`${r}-pure`,`${r}-placement-${a}`,i);return m.createElement("div",{className:f,style:o},m.createElement("div",{className:`${r}-arrow`}),m.createElement(Zue,Object.assign({},e,{className:n,prefixCls:r}),c||m.createElement(IUe,{prefixCls:r,title:u,content:d})))},NUe=e=>{const{prefixCls:n,className:r}=e,i=p4t(e,["prefixCls","className"]),{getPrefixCls:o}=m.useContext(Cn),a=o("popover",n),[s,l,c]=RUe(a);return s(m.createElement(h4t,Object.assign({},i,{prefixCls:a,hashId:l,className:Ce(r,c)})))};var g4t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const m4t=m.forwardRef((e,n)=>{var r,i,o,a,s,l;const{prefixCls:c,title:u,content:d,overlayClassName:f,placement:p="top",trigger:h="hover",children:g,mouseEnterDelay:v=.1,mouseLeaveDelay:y=.1,onOpenChange:_,overlayStyle:S={},styles:b,classNames:E}=e,w=g4t(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{popover:C,getPrefixCls:x}=m.useContext(Cn),T=x("popover",c),[R,O,M]=RUe(T),P=x(),k=Ce(f,O,M,(r=C==null?void 0:C.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root),$=Ce((i=C==null?void 0:C.classNames)===null||i===void 0?void 0:i.body,E==null?void 0:E.body),[U,z]=dr(!1,{value:(o=e.open)!==null&&o!==void 0?o:e.visible,defaultValue:(a=e.defaultOpen)!==null&&a!==void 0?a:e.defaultVisible}),D=(H,G)=>{z(H,!0),_==null||_(H,G)},B=H=>{H.keyCode===At.ESC&&D(!1,H)},Y=H=>{D(H)},q=LO(u),K=LO(d);return R(m.createElement(Ef,Object.assign({placement:p,trigger:h,mouseEnterDelay:v,mouseLeaveDelay:y},w,{prefixCls:T,classNames:{root:k,body:$},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(s=C==null?void 0:C.styles)===null||s===void 0?void 0:s.root),C==null?void 0:C.style),S),b==null?void 0:b.root),body:Object.assign(Object.assign({},(l=C==null?void 0:C.styles)===null||l===void 0?void 0:l.body),b==null?void 0:b.body)},ref:n,open:U,onOpenChange:Y,overlay:q||K?m.createElement(IUe,{prefixCls:T,title:q,content:K}):null,transitionName:Kl(P,"zoom-big",w.transitionName),"data-popover-inject":!0}),Ys(g,{onKeyDown:H=>{var G,Q;m.isValidElement(g)&&((Q=g==null?void 0:(G=g.props).onKeyDown)===null||Q===void 0||Q.call(G,H)),B(H)}})))}),Ip=m4t;Ip._InternalPanelDoNotUseOrYouWillBeFired=NUe;const Q1e=e=>{const{size:n,shape:r}=m.useContext(lie),i=m.useMemo(()=>({size:e.size||n,shape:e.shape||r}),[e.size,e.shape,n,r]);return m.createElement(lie.Provider,{value:i},e.children)},v4t=e=>{var n,r,i,o;const{getPrefixCls:a,direction:s}=m.useContext(Cn),{prefixCls:l,className:c,rootClassName:u,style:d,maxCount:f,maxStyle:p,size:h,shape:g,maxPopoverPlacement:v,maxPopoverTrigger:y,children:_,max:S}=e,b=a("avatar",l),E=`${b}-group`,w=po(b),[C,x,T]=SUe(b,w),R=Ce(E,{[`${E}-rtl`]:s==="rtl"},T,w,c,u,x),O=Tl(_).map((k,$)=>Ys(k,{key:`avatar-key-${$}`})),M=(S==null?void 0:S.count)||f,P=O.length;if(M&&M<P){const k=O.slice(0,M),$=O.slice(M,P),U=(S==null?void 0:S.style)||p,z=((n=S==null?void 0:S.popover)===null||n===void 0?void 0:n.trigger)||y||"hover",D=((r=S==null?void 0:S.popover)===null||r===void 0?void 0:r.placement)||v||"top",B=Object.assign(Object.assign({content:$},S==null?void 0:S.popover),{classNames:{root:Ce(`${E}-popover`,(o=(i=S==null?void 0:S.popover)===null||i===void 0?void 0:i.classNames)===null||o===void 0?void 0:o.root)},placement:D,trigger:z});return k.push(m.createElement(Ip,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},B),m.createElement(EUe,{style:U},`+${P-M}`))),C(m.createElement(Q1e,{shape:g,size:h},m.createElement("div",{className:R,style:d},k)))}return C(m.createElement(Q1e,{shape:g,size:h},m.createElement("div",{className:R,style:d},O)))},nS=EUe;nS.Group=v4t;const y4t=new kr("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),_4t=new kr("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),b4t=new kr("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),S4t=new kr("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),E4t=new kr("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),C4t=new kr("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),w4t=e=>{const{componentCls:n,iconCls:r,antCls:i,badgeShadowSize:o,textFontSize:a,textFontSizeSM:s,statusSize:l,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:p,calc:h}=e,g=`${i}-scroll-number`,v=Sue(e,(y,_)=>{let{darkColor:S}=_;return{[`&${n} ${n}-color-${y}`]:{background:S,[`&:not(${n}-count)`]:{color:S},"a:hover &":{background:S}}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${n}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:a,lineHeight:Ye(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(d).div(2).equal(),boxShadow:`0 0 0 ${Ye(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${n}-count-sm`]:{minWidth:f,height:f,fontSize:s,lineHeight:Ye(f),borderRadius:h(f).div(2).equal()},[`${n}-multiple-words`]:{padding:`0 ${Ye(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${n}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Ye(o)} ${e.badgeShadowColor}`},[`${n}-count, ${n}-dot, ${g}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${r}-spin`]:{animationName:C4t,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${n}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${n}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${n}-status-success`]:{backgroundColor:e.colorSuccess},[`${n}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:y4t,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${n}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${n}-status-error`]:{backgroundColor:e.colorError},[`${n}-status-warning`]:{backgroundColor:e.colorWarning},[`${n}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),v),{[`${n}-zoom-appear, ${n}-zoom-enter`]:{animationName:_4t,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${n}-zoom-leave`]:{animationName:b4t,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${n}-not-a-wrapper`]:{[`${n}-zoom-appear, ${n}-zoom-enter`]:{animationName:S4t,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${n}-zoom-leave`]:{animationName:E4t,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${n}-status)`]:{verticalAlign:"middle"},[`${g}-custom-component, ${n}-count`]:{transform:"none"},[`${g}-custom-component, ${g}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[g]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${g}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${g}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${g}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${n}-count, ${n}-dot, ${g}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},MUe=e=>{const{fontHeight:n,lineWidth:r,marginXS:i,colorBorderBg:o}=e,a=n,s=r,l=e.colorTextLightSolid,c=e.colorError,u=e.colorErrorHover;return wr(e,{badgeFontHeight:a,badgeShadowSize:s,badgeTextColor:l,badgeColor:c,badgeColorHover:u,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:i,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},PUe=e=>{const{fontSize:n,lineHeight:r,fontSizeSM:i,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(n*r)-2*o,indicatorHeightSM:n,dotSize:i/2,textFontSize:i,textFontSizeSM:i,textFontWeight:"normal",statusSize:i/2}},x4t=Yr("Badge",e=>{const n=MUe(e);return w4t(n)},PUe),T4t=e=>{const{antCls:n,badgeFontHeight:r,marginXS:i,badgeRibbonOffset:o,calc:a}=e,s=`${n}-ribbon`,l=`${n}-ribbon-wrapper`,c=Sue(e,(u,d)=>{let{darkColor:f}=d;return{[`&${s}-color-${u}`]:{background:f,color:f}}});return{[l]:{position:"relative"},[s]:Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),{position:"absolute",top:i,padding:`0 ${Ye(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Ye(r),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${s}-text`]:{color:e.badgeTextColor},[`${s}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${Ye(a(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${s}-placement-end`]:{insetInlineEnd:a(o).mul(-1).equal(),borderEndEndRadius:0,[`${s}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${s}-placement-start`]:{insetInlineStart:a(o).mul(-1).equal(),borderEndStartRadius:0,[`${s}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},O4t=Yr(["Badge","Ribbon"],e=>{const n=MUe(e);return T4t(n)},PUe),R4t=e=>{const{className:n,prefixCls:r,style:i,color:o,children:a,text:s,placement:l="end",rootClassName:c}=e,{getPrefixCls:u,direction:d}=m.useContext(Cn),f=u("ribbon",r),p=`${f}-wrapper`,[h,g,v]=O4t(f,p),y=ede(o,!1),_=Ce(f,`${f}-placement-${l}`,{[`${f}-rtl`]:d==="rtl",[`${f}-color-${o}`]:y},n),S={},b={};return o&&!y&&(S.background=o,b.color=o),h(m.createElement("div",{className:Ce(p,c,g,v)},a,m.createElement("div",{className:Ce(_,g),style:Object.assign(Object.assign({},S),i)},m.createElement("span",{className:`${f}-text`},s),m.createElement("div",{className:`${f}-corner`,style:b}))))},Z1e=e=>{const{prefixCls:n,value:r,current:i,offset:o=0}=e;let a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),m.createElement("span",{style:a,className:Ce(`${n}-only-unit`,{current:i})},r)};function I4t(e,n,r){let i=e,o=0;for(;(i+10)%10!==n;)i+=r,o+=r;return o}const N4t=e=>{const{prefixCls:n,count:r,value:i}=e,o=Number(i),a=Math.abs(r),[s,l]=m.useState(o),[c,u]=m.useState(a),d=()=>{l(o),u(a)};m.useEffect(()=>{const h=setTimeout(d,1e3);return()=>clearTimeout(h)},[o]);let f,p;if(s===o||Number.isNaN(o)||Number.isNaN(s))f=[m.createElement(Z1e,Object.assign({},e,{key:o,current:!0}))],p={transition:"none"};else{f=[];const h=o+10,g=[];for(let S=o;S<=h;S+=1)g.push(S);const v=c<a?1:-1,y=g.findIndex(S=>S%10===s);f=(v<0?g.slice(0,y+1):g.slice(y)).map((S,b)=>{const E=S%10;return m.createElement(Z1e,Object.assign({},e,{key:S,value:E,offset:v<0?b-y:b,current:b===y}))}),p={transform:`translateY(${-I4t(s,o,v)}00%)`}}return m.createElement("span",{className:`${n}-only`,style:p,onTransitionEnd:d},f)};var M4t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const P4t=m.forwardRef((e,n)=>{const{prefixCls:r,count:i,className:o,motionClassName:a,style:s,title:l,show:c,component:u="sup",children:d}=e,f=M4t(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=m.useContext(Cn),h=p("scroll-number",r),g=Object.assign(Object.assign({},f),{"data-show":c,style:s,className:Ce(h,o,a),title:l});let v=i;if(i&&Number(i)%1===0){const y=String(i).split("");v=m.createElement("bdi",null,y.map((_,S)=>m.createElement(N4t,{prefixCls:h,count:Number(i),value:_,key:y.length-S})))}return s!=null&&s.borderColor&&(g.style=Object.assign(Object.assign({},s),{boxShadow:`0 0 0 1px ${s.borderColor} inset`})),d?Ys(d,y=>({className:Ce(`${h}-custom-component`,y==null?void 0:y.className,a)})):m.createElement(u,Object.assign({},g,{ref:n}),v)});var A4t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const D4t=m.forwardRef((e,n)=>{var r,i,o,a,s;const{prefixCls:l,scrollNumberPrefixCls:c,children:u,status:d,text:f,color:p,count:h=null,overflowCount:g=99,dot:v=!1,size:y="default",title:_,offset:S,style:b,className:E,rootClassName:w,classNames:C,styles:x,showZero:T=!1}=e,R=A4t(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:O,direction:M,badge:P}=m.useContext(Cn),k=O("badge",l),[$,U,z]=x4t(k),D=h>g?`${g}+`:h,B=D==="0"||D===0,Y=h===null||B&&!T,q=(d!=null||p!=null)&&Y,K=v&&!B,H=K?"":D,G=m.useMemo(()=>(H==null||H===""||B&&!T)&&!K,[H,B,T,K]),Q=m.useRef(h);G||(Q.current=h);const le=Q.current,Z=m.useRef(H);G||(Z.current=H);const j=Z.current,F=m.useRef(K);G||(F.current=K);const te=m.useMemo(()=>{if(!S)return Object.assign(Object.assign({},P==null?void 0:P.style),b);const we={marginTop:S[1]};return M==="rtl"?we.left=parseInt(S[0],10):we.right=-parseInt(S[0],10),Object.assign(Object.assign(Object.assign({},we),P==null?void 0:P.style),b)},[M,S,b,P==null?void 0:P.style]),oe=_??(typeof le=="string"||typeof le=="number"?le:void 0),de=G||!f?null:m.createElement("span",{className:`${k}-status-text`},f),pe=!le||typeof le!="object"?void 0:Ys(le,we=>({style:Object.assign(Object.assign({},te),we.style)})),me=ede(p,!1),ve=Ce(C==null?void 0:C.indicator,(r=P==null?void 0:P.classNames)===null||r===void 0?void 0:r.indicator,{[`${k}-status-dot`]:q,[`${k}-status-${d}`]:!!d,[`${k}-color-${p}`]:me}),he={};p&&!me&&(he.color=p,he.background=p);const be=Ce(k,{[`${k}-status`]:q,[`${k}-not-a-wrapper`]:!u,[`${k}-rtl`]:M==="rtl"},E,w,P==null?void 0:P.className,(i=P==null?void 0:P.classNames)===null||i===void 0?void 0:i.root,C==null?void 0:C.root,U,z);if(!u&&q){const we=te.color;return $(m.createElement("span",Object.assign({},R,{className:be,style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.root),(o=P==null?void 0:P.styles)===null||o===void 0?void 0:o.root),te)}),m.createElement("span",{className:ve,style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.indicator),(a=P==null?void 0:P.styles)===null||a===void 0?void 0:a.indicator),he)}),f&&m.createElement("span",{style:{color:we},className:`${k}-status-text`},f)))}return $(m.createElement("span",Object.assign({ref:n},R,{className:be,style:Object.assign(Object.assign({},(s=P==null?void 0:P.styles)===null||s===void 0?void 0:s.root),x==null?void 0:x.root)}),u,m.createElement(Ws,{visible:!G,motionName:`${k}-zoom`,motionAppear:!1,motionDeadline:1e3},we=>{let{className:De}=we;var Ae,Ee;const Re=O("scroll-number",c),Te=F.current,Oe=Ce(C==null?void 0:C.indicator,(Ae=P==null?void 0:P.classNames)===null||Ae===void 0?void 0:Ae.indicator,{[`${k}-dot`]:Te,[`${k}-count`]:!Te,[`${k}-count-sm`]:y==="small",[`${k}-multiple-words`]:!Te&&j&&j.toString().length>1,[`${k}-status-${d}`]:!!d,[`${k}-color-${p}`]:me});let Ne=Object.assign(Object.assign(Object.assign({},x==null?void 0:x.indicator),(Ee=P==null?void 0:P.styles)===null||Ee===void 0?void 0:Ee.indicator),te);return p&&!me&&(Ne=Ne||{},Ne.background=p),m.createElement(P4t,{prefixCls:Re,show:!G,motionClassName:De,className:Oe,count:j,title:oe,style:Ne,key:"scrollNumber"},pe)}),de))}),Zu=D4t;Zu.Ribbon=R4t;var k4t=At.ESC,L4t=At.TAB;function $4t(e){var n=e.visible,r=e.triggerRef,i=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,s=m.useRef(!1),l=function(){if(n){var f,p;(f=r.current)===null||f===void 0||(p=f.focus)===null||p===void 0||p.call(f),i==null||i(!1)}},c=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),s.current=!0,!0):!1},u=function(f){switch(f.keyCode){case k4t:l();break;case L4t:{var p=!1;s.current||(p=c()),p?f.preventDefault():l();break}}};m.useEffect(function(){return n?(window.addEventListener("keydown",u),o&&Dr(c,3),function(){window.removeEventListener("keydown",u),s.current=!1}):function(){s.current=!1}},[n])}var F4t=m.forwardRef(function(e,n){var r=e.overlay,i=e.arrow,o=e.prefixCls,a=m.useMemo(function(){var l;return typeof r=="function"?l=r():l=r,l},[r]),s=Il(n,J0(a));return V.createElement(V.Fragment,null,i&&V.createElement("div",{className:"".concat(o,"-arrow")}),V.cloneElement(a,{ref:Xy(a)?s:void 0}))}),Sx={adjustX:1,adjustY:1},Ex=[0,0],B4t={topLeft:{points:["bl","tl"],overflow:Sx,offset:[0,-4],targetOffset:Ex},top:{points:["bc","tc"],overflow:Sx,offset:[0,-4],targetOffset:Ex},topRight:{points:["br","tr"],overflow:Sx,offset:[0,-4],targetOffset:Ex},bottomLeft:{points:["tl","bl"],overflow:Sx,offset:[0,4],targetOffset:Ex},bottom:{points:["tc","bc"],overflow:Sx,offset:[0,4],targetOffset:Ex},bottomRight:{points:["tr","br"],overflow:Sx,offset:[0,4],targetOffset:Ex}},j4t=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function U4t(e,n){var r,i=e.arrow,o=i===void 0?!1:i,a=e.prefixCls,s=a===void 0?"rc-dropdown":a,l=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,p=e.placements,h=p===void 0?B4t:p,g=e.getPopupContainer,v=e.showAction,y=e.hideAction,_=e.overlayClassName,S=e.overlayStyle,b=e.visible,E=e.trigger,w=E===void 0?["hover"]:E,C=e.autoFocus,x=e.overlay,T=e.children,R=e.onVisibleChange,O=Xt(e,j4t),M=V.useState(),P=ke(M,2),k=P[0],$=P[1],U="visible"in e?b:k,z=V.useRef(null),D=V.useRef(null),B=V.useRef(null);V.useImperativeHandle(n,function(){return z.current});var Y=function(F){$(F),R==null||R(F)};$4t({visible:U,triggerRef:B,onVisibleChange:Y,autoFocus:C,overlayRef:D});var q=function(F){var te=e.onOverlayClick;$(!1),te&&te(F)},K=function(){return V.createElement(F4t,{ref:D,overlay:x,prefixCls:s,arrow:o})},H=function(){return typeof x=="function"?K:K()},G=function(){var F=e.minOverlayWidthMatchTrigger,te=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?F:!te},Q=function(){var F=e.openClassName;return F!==void 0?F:"".concat(s,"-open")},le=V.cloneElement(T,{className:Ce((r=T.props)===null||r===void 0?void 0:r.className,U&&Q()),ref:Xy(T)?Il(B,J0(T)):void 0}),Z=y;return!Z&&w.indexOf("contextMenu")!==-1&&(Z=["click"]),V.createElement(yk,ft({builtinPlacements:h},O,{prefixCls:s,ref:z,popupClassName:Ce(_,fe({},"".concat(s,"-show-arrow"),o)),popupStyle:S,action:w,showAction:v,hideAction:Z,popupPlacement:f,popupAlign:u,popupTransitionName:l,popupAnimation:c,popupVisible:U,stretch:G()?"minWidth":"",popup:H(),onPopupVisibleChange:Y,onPopupClick:q,getPopupContainer:g}),le)}const AUe=V.forwardRef(U4t),H4t=e=>typeof e!="object"&&typeof e!="function"||e===null;var DUe=m.createContext(null);function kUe(e,n){return e===void 0?null:"".concat(e,"-").concat(n)}function LUe(e){var n=m.useContext(DUe);return kUe(n,e)}var z4t=["children","locked"],ig=m.createContext(null);function V4t(e,n){var r=ee({},e);return Object.keys(n).forEach(function(i){var o=n[i];o!==void 0&&(r[i]=o)}),r}function vA(e){var n=e.children,r=e.locked,i=Xt(e,z4t),o=m.useContext(ig),a=Z1(function(){return V4t(o,i)},[o,i],function(s,l){return!r&&(s[0]!==l[0]||!rC(s[1],l[1],!0))});return m.createElement(ig.Provider,{value:a},n)}var G4t=[],$Ue=m.createContext(null);function oU(){return m.useContext($Ue)}var FUe=m.createContext(G4t);function cI(e){var n=m.useContext(FUe);return m.useMemo(function(){return e!==void 0?[].concat(Tt(n),[e]):n},[n,e])}var BUe=m.createContext(null),tde=m.createContext({});function J1e(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(dk(e)){var r=e.nodeName.toLowerCase(),i=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),s=null;return o&&!Number.isNaN(a)?s=a:i&&s===null&&(s=0),i&&e.disabled&&(s=null),s!==null&&(s>=0||n&&s<0)}return!1}function W4t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Tt(e.querySelectorAll("*")).filter(function(i){return J1e(i,n)});return J1e(e,n)&&r.unshift(e),r}var cie=At.LEFT,uie=At.RIGHT,die=At.UP,d6=At.DOWN,f6=At.ENTER,jUe=At.ESC,sM=At.HOME,lM=At.END,eCe=[die,d6,cie,uie];function Y4t(e,n,r,i){var o,a="prev",s="next",l="children",c="parent";if(e==="inline"&&i===f6)return{inlineTrigger:!0};var u=fe(fe({},die,a),d6,s),d=fe(fe(fe(fe({},cie,r?s:a),uie,r?a:s),d6,l),f6,l),f=fe(fe(fe(fe(fe(fe({},die,a),d6,s),f6,l),jUe,c),cie,r?l:c),uie,r?c:l),p={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},h=(o=p["".concat(e).concat(n?"":"Sub")])===null||o===void 0?void 0:o[i];switch(h){case a:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}function q4t(e){for(var n=e;n;){if(n.getAttribute("data-menu-list"))return n;n=n.parentElement}return null}function K4t(e,n){for(var r=e||document.activeElement;r;){if(n.has(r))return r;r=r.parentElement}return null}function nde(e,n){var r=W4t(e,!0);return r.filter(function(i){return n.has(i)})}function tCe(e,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=nde(e,n),a=o.length,s=o.findIndex(function(l){return r===l});return i<0?s===-1?s=a-1:s-=1:i>0&&(s+=1),s=(s+a)%a,o[s]}var fie=function(n,r){var i=new Set,o=new Map,a=new Map;return n.forEach(function(s){var l=document.querySelector("[data-menu-id='".concat(kUe(r,s),"']"));l&&(i.add(l),a.set(l,s),o.set(s,l))}),{elements:i,key2element:o,element2key:a}};function X4t(e,n,r,i,o,a,s,l,c,u){var d=m.useRef(),f=m.useRef();f.current=n;var p=function(){Dr.cancel(d.current)};return m.useEffect(function(){return function(){p()}},[]),function(h){var g=h.which;if([].concat(eCe,[f6,jUe,sM,lM]).includes(g)){var v=a(),y=fie(v,i),_=y,S=_.elements,b=_.key2element,E=_.element2key,w=b.get(n),C=K4t(w,S),x=E.get(C),T=Y4t(e,s(x,!0).length===1,r,g);if(!T&&g!==sM&&g!==lM)return;(eCe.includes(g)||[sM,lM].includes(g))&&h.preventDefault();var R=function(D){if(D){var B=D,Y=D.querySelector("a");Y!=null&&Y.getAttribute("href")&&(B=Y);var q=E.get(D);l(q),p(),d.current=Dr(function(){f.current===q&&B.focus()})}};if([sM,lM].includes(g)||T.sibling||!C){var O;!C||e==="inline"?O=o.current:O=q4t(C);var M,P=nde(O,S);g===sM?M=P[0]:g===lM?M=P[P.length-1]:M=tCe(O,S,C,T.offset),R(M)}else if(T.inlineTrigger)c(x);else if(T.offset>0)c(x,!0),p(),d.current=Dr(function(){y=fie(v,i);var z=C.getAttribute("aria-controls"),D=document.getElementById(z),B=tCe(D,y.elements);R(B)},5);else if(T.offset<0){var k=s(x,!0),$=k[k.length-2],U=b.get($);c($,!1),R(U)}}u==null||u(h)}}function Q4t(e){Promise.resolve().then(e)}var rde="__RC_UTIL_PATH_SPLIT__",nCe=function(n){return n.join(rde)},Z4t=function(n){return n.split(rde)},pie="rc-menu-more";function J4t(){var e=m.useState({}),n=ke(e,2),r=n[1],i=m.useRef(new Map),o=m.useRef(new Map),a=m.useState([]),s=ke(a,2),l=s[0],c=s[1],u=m.useRef(0),d=m.useRef(!1),f=function(){d.current||r({})},p=m.useCallback(function(b,E){var w=nCe(E);o.current.set(w,b),i.current.set(b,w),u.current+=1;var C=u.current;Q4t(function(){C===u.current&&f()})},[]),h=m.useCallback(function(b,E){var w=nCe(E);o.current.delete(w),i.current.delete(b)},[]),g=m.useCallback(function(b){c(b)},[]),v=m.useCallback(function(b,E){var w=i.current.get(b)||"",C=Z4t(w);return E&&l.includes(C[0])&&C.unshift(pie),C},[l]),y=m.useCallback(function(b,E){return b.filter(function(w){return w!==void 0}).some(function(w){var C=v(w,!0);return C.includes(E)})},[v]),_=function(){var E=Tt(i.current.keys());return l.length&&E.push(pie),E},S=m.useCallback(function(b){var E="".concat(i.current.get(b)).concat(rde),w=new Set;return Tt(o.current.keys()).forEach(function(C){C.startsWith(E)&&w.add(o.current.get(C))}),w},[]);return m.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:p,unregisterPath:h,refreshOverflowKeys:g,isSubPathKey:y,getKeyPath:v,getKeys:_,getSubPathKeys:S}}function a2(e){var n=m.useRef(e);n.current=e;var r=m.useCallback(function(){for(var i,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(i=n.current)===null||i===void 0?void 0:i.call.apply(i,[n].concat(a))},[]);return e?r:void 0}var e5t=Math.random().toFixed(5).toString().slice(2),rCe=0;function t5t(e){var n=dr(e,{value:e}),r=ke(n,2),i=r[0],o=r[1];return m.useEffect(function(){rCe+=1;var a="".concat(e5t,"-").concat(rCe);o("rc-menu-uuid-".concat(a))},[]),i}function UUe(e,n,r,i){var o=m.useContext(ig),a=o.activeKey,s=o.onActive,l=o.onInactive,c={active:a===e};return n||(c.onMouseEnter=function(u){r==null||r({key:e,domEvent:u}),s(e)},c.onMouseLeave=function(u){i==null||i({key:e,domEvent:u}),l(e)}),c}function HUe(e){var n=m.useContext(ig),r=n.mode,i=n.rtl,o=n.inlineIndent;if(r!=="inline")return null;var a=e;return i?{paddingRight:a*o}:{paddingLeft:a*o}}function zUe(e){var n=e.icon,r=e.props,i=e.children,o;return n===null||n===!1?null:(typeof n=="function"?o=m.createElement(n,ee({},r)):typeof n!="boolean"&&(o=n),o||i||null)}var n5t=["item"];function U8(e){var n=e.item,r=Xt(e,n5t);return Object.defineProperty(r,"item",{get:function(){return qi(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),n}}),r}var r5t=["title","attribute","elementRef"],i5t=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],o5t=["active"],a5t=function(e){Kc(r,e);var n=Nu(r);function r(){return Ki(this,r),n.apply(this,arguments)}return Xi(r,[{key:"render",value:function(){var o=this.props,a=o.title,s=o.attribute,l=o.elementRef,c=Xt(o,r5t),u=Wr(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return qi(!s,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),m.createElement(Vh.Item,ft({},s,{title:typeof a=="string"?a:void 0},u,{ref:l}))}}]),r}(m.Component),s5t=m.forwardRef(function(e,n){var r=e.style,i=e.className,o=e.eventKey;e.warnKey;var a=e.disabled,s=e.itemIcon,l=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,p=e.onKeyDown,h=e.onFocus,g=Xt(e,i5t),v=LUe(o),y=m.useContext(ig),_=y.prefixCls,S=y.onItemClick,b=y.disabled,E=y.overflowDisabled,w=y.itemIcon,C=y.selectedKeys,x=y.onActive,T=m.useContext(tde),R=T._internalRenderMenuItem,O="".concat(_,"-item"),M=m.useRef(),P=m.useRef(),k=b||a,$=yg(n,P),U=cI(o),z=function(te){return{key:o,keyPath:Tt(U).reverse(),item:M.current,domEvent:te}},D=s||w,B=UUe(o,k,u,d),Y=B.active,q=Xt(B,o5t),K=C.includes(o),H=HUe(U.length),G=function(te){if(!k){var oe=z(te);f==null||f(U8(oe)),S(oe)}},Q=function(te){if(p==null||p(te),te.which===At.ENTER){var oe=z(te);f==null||f(U8(oe)),S(oe)}},le=function(te){x(o),h==null||h(te)},Z={};e.role==="option"&&(Z["aria-selected"]=K);var j=m.createElement(a5t,ft({ref:M,elementRef:$,role:c===null?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":E&&v?null:v},Wr(g,["extra"]),q,Z,{component:"li","aria-disabled":a,style:ee(ee({},H),r),className:Ce(O,fe(fe(fe({},"".concat(O,"-active"),Y),"".concat(O,"-selected"),K),"".concat(O,"-disabled"),k),i),onClick:G,onKeyDown:Q,onFocus:le}),l,m.createElement(zUe,{props:ee(ee({},e),{},{isSelected:K}),icon:D}));return R&&(j=R(j,e,{selected:K})),j});function l5t(e,n){var r=e.eventKey,i=oU(),o=cI(r);return m.useEffect(function(){if(i)return i.registerPath(r,o),function(){i.unregisterPath(r,o)}},[o]),i?null:m.createElement(s5t,ft({},e,{ref:n}))}const _k=m.forwardRef(l5t);var c5t=["className","children"],u5t=function(n,r){var i=n.className,o=n.children,a=Xt(n,c5t),s=m.useContext(ig),l=s.prefixCls,c=s.mode,u=s.rtl;return m.createElement("ul",ft({className:Ce(l,u&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(c==="inline"?"inline":"vertical"),i),role:"menu"},a,{"data-menu-list":!0,ref:r}),o)},ide=m.forwardRef(u5t);ide.displayName="SubMenuList";function ode(e,n){return Tl(e).map(function(r,i){if(m.isValidElement(r)){var o,a,s=r.key,l=(o=(a=r.props)===null||a===void 0?void 0:a.eventKey)!==null&&o!==void 0?o:s,c=l==null;c&&(l="tmp_key-".concat([].concat(Tt(n),[i]).join("-")));var u={key:l,eventKey:l};return m.cloneElement(r,u)}return r})}var Lc={adjustX:1,adjustY:1},d5t={topLeft:{points:["bl","tl"],overflow:Lc},topRight:{points:["br","tr"],overflow:Lc},bottomLeft:{points:["tl","bl"],overflow:Lc},bottomRight:{points:["tr","br"],overflow:Lc},leftTop:{points:["tr","tl"],overflow:Lc},leftBottom:{points:["br","bl"],overflow:Lc},rightTop:{points:["tl","tr"],overflow:Lc},rightBottom:{points:["bl","br"],overflow:Lc}},f5t={topLeft:{points:["bl","tl"],overflow:Lc},topRight:{points:["br","tr"],overflow:Lc},bottomLeft:{points:["tl","bl"],overflow:Lc},bottomRight:{points:["tr","br"],overflow:Lc},rightTop:{points:["tr","tl"],overflow:Lc},rightBottom:{points:["br","bl"],overflow:Lc},leftTop:{points:["tl","tr"],overflow:Lc},leftBottom:{points:["bl","br"],overflow:Lc}};function VUe(e,n,r){if(n)return n;if(r)return r[e]||r.other}var p5t={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function h5t(e){var n=e.prefixCls,r=e.visible,i=e.children,o=e.popup,a=e.popupStyle,s=e.popupClassName,l=e.popupOffset,c=e.disabled,u=e.mode,d=e.onVisibleChange,f=m.useContext(ig),p=f.getPopupContainer,h=f.rtl,g=f.subMenuOpenDelay,v=f.subMenuCloseDelay,y=f.builtinPlacements,_=f.triggerSubMenuAction,S=f.forceSubMenuRender,b=f.rootClassName,E=f.motion,w=f.defaultMotions,C=m.useState(!1),x=ke(C,2),T=x[0],R=x[1],O=ee(h?ee({},f5t):ee({},d5t),y),M=p5t[u],P=VUe(u,E,w),k=m.useRef(P);u!=="inline"&&(k.current=P);var $=ee(ee({},k.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),U=m.useRef();return m.useEffect(function(){return U.current=Dr(function(){R(r)}),function(){Dr.cancel(U.current)}},[r]),m.createElement(yk,{prefixCls:n,popupClassName:Ce("".concat(n,"-popup"),fe({},"".concat(n,"-rtl"),h),s,b),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:p,builtinPlacements:O,popupPlacement:M,popupVisible:T,popup:o,popupStyle:a,popupAlign:l&&{offset:l},action:c?[]:[_],mouseEnterDelay:g,mouseLeaveDelay:v,onPopupVisibleChange:d,forceRender:S,popupMotion:$,fresh:!0},i)}function g5t(e){var n=e.id,r=e.open,i=e.keyPath,o=e.children,a="inline",s=m.useContext(ig),l=s.prefixCls,c=s.forceSubMenuRender,u=s.motion,d=s.defaultMotions,f=s.mode,p=m.useRef(!1);p.current=f===a;var h=m.useState(!p.current),g=ke(h,2),v=g[0],y=g[1],_=p.current?r:!1;m.useEffect(function(){p.current&&y(!1)},[f]);var S=ee({},VUe(a,u,d));i.length>1&&(S.motionAppear=!1);var b=S.onVisibleChanged;return S.onVisibleChanged=function(E){return!p.current&&!E&&y(!0),b==null?void 0:b(E)},v?null:m.createElement(vA,{mode:a,locked:!p.current},m.createElement(Ws,ft({visible:_},S,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(E){var w=E.className,C=E.style;return m.createElement(ide,{id:n,className:w,style:C},o)}))}var m5t=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],v5t=["active"],y5t=m.forwardRef(function(e,n){var r=e.style,i=e.className,o=e.title,a=e.eventKey;e.warnKey;var s=e.disabled,l=e.internalPopupClose,c=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,p=e.popupOffset,h=e.popupStyle,g=e.onClick,v=e.onMouseEnter,y=e.onMouseLeave,_=e.onTitleClick,S=e.onTitleMouseEnter,b=e.onTitleMouseLeave,E=Xt(e,m5t),w=LUe(a),C=m.useContext(ig),x=C.prefixCls,T=C.mode,R=C.openKeys,O=C.disabled,M=C.overflowDisabled,P=C.activeKey,k=C.selectedKeys,$=C.itemIcon,U=C.expandIcon,z=C.onItemClick,D=C.onOpenChange,B=C.onActive,Y=m.useContext(tde),q=Y._internalRenderSubMenuItem,K=m.useContext(BUe),H=K.isSubPathKey,G=cI(),Q="".concat(x,"-submenu"),le=O||s,Z=m.useRef(),j=m.useRef(),F=u??$,te=d??U,oe=R.includes(a),de=!M&&oe,pe=H(k,a),me=UUe(a,le,S,b),ve=me.active,he=Xt(me,v5t),be=m.useState(!1),we=ke(be,2),De=we[0],Ae=we[1],Ee=function(Ve){le||Ae(Ve)},Re=function(Ve){Ee(!0),v==null||v({key:a,domEvent:Ve})},Te=function(Ve){Ee(!1),y==null||y({key:a,domEvent:Ve})},Oe=m.useMemo(function(){return ve||(T!=="inline"?De||H([P],a):!1)},[T,ve,P,De,a,H]),Ne=HUe(G.length),je=function(Ve){le||(_==null||_({key:a,domEvent:Ve}),T==="inline"&&D(a,!oe))},ne=a2(function(ge){g==null||g(U8(ge)),z(ge)}),J=function(Ve){T!=="inline"&&D(a,Ve)},ae=function(){B(a)},Se=w&&"".concat(w,"-popup"),xe=m.createElement("div",ft({role:"menuitem",style:Ne,className:"".concat(Q,"-title"),tabIndex:le?null:-1,ref:Z,title:typeof o=="string"?o:null,"data-menu-id":M&&w?null:w,"aria-expanded":de,"aria-haspopup":!0,"aria-controls":Se,"aria-disabled":le,onClick:je,onFocus:ae},he),o,m.createElement(zUe,{icon:T!=="horizontal"?te:void 0,props:ee(ee({},e),{},{isOpen:de,isSubMenu:!0})},m.createElement("i",{className:"".concat(Q,"-arrow")}))),ue=m.useRef(T);if(T!=="inline"&&G.length>1?ue.current="vertical":ue.current=T,!M){var Me=ue.current;xe=m.createElement(h5t,{mode:Me,prefixCls:Q,visible:!l&&de&&T!=="inline",popupClassName:f,popupOffset:p,popupStyle:h,popup:m.createElement(vA,{mode:Me==="horizontal"?"vertical":Me},m.createElement(ide,{id:Se,ref:j},c)),disabled:le,onVisibleChange:J},xe)}var $e=m.createElement(Vh.Item,ft({ref:n,role:"none"},E,{component:"li",style:r,className:Ce(Q,"".concat(Q,"-").concat(T),i,fe(fe(fe(fe({},"".concat(Q,"-open"),de),"".concat(Q,"-active"),Oe),"".concat(Q,"-selected"),pe),"".concat(Q,"-disabled"),le)),onMouseEnter:Re,onMouseLeave:Te}),xe,!M&&m.createElement(g5t,{id:Se,open:de,keyPath:G},c));return q&&($e=q($e,e,{selected:pe,active:Oe,open:de,disabled:le})),m.createElement(vA,{onItemClick:ne,mode:T==="horizontal"?"vertical":T,itemIcon:F,expandIcon:te},$e)}),aU=m.forwardRef(function(e,n){var r=e.eventKey,i=e.children,o=cI(r),a=ode(i,o),s=oU();m.useEffect(function(){if(s)return s.registerPath(r,o),function(){s.unregisterPath(r,o)}},[o]);var l;return s?l=a:l=m.createElement(y5t,ft({ref:n},e),a),m.createElement(FUe.Provider,{value:o},l)});function ade(e){var n=e.className,r=e.style,i=m.useContext(ig),o=i.prefixCls,a=oU();return a?null:m.createElement("li",{role:"separator",className:Ce("".concat(o,"-item-divider"),n),style:r})}var _5t=["className","title","eventKey","children"],b5t=m.forwardRef(function(e,n){var r=e.className,i=e.title;e.eventKey;var o=e.children,a=Xt(e,_5t),s=m.useContext(ig),l=s.prefixCls,c="".concat(l,"-item-group");return m.createElement("li",ft({ref:n,role:"presentation"},a,{onClick:function(d){return d.stopPropagation()},className:Ce(c,r)}),m.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof i=="string"?i:void 0},i),m.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}),sde=m.forwardRef(function(e,n){var r=e.eventKey,i=e.children,o=cI(r),a=ode(i,o),s=oU();return s?a:m.createElement(b5t,ft({ref:n},Wr(e,["warnKey"])),a)}),S5t=["label","children","key","type","extra"];function hie(e,n,r){var i=n.item,o=n.group,a=n.submenu,s=n.divider;return(e||[]).map(function(l,c){if(l&&cn(l)==="object"){var u=l,d=u.label,f=u.children,p=u.key,h=u.type,g=u.extra,v=Xt(u,S5t),y=p??"tmp-".concat(c);return f||h==="group"?h==="group"?m.createElement(o,ft({key:y},v,{title:d}),hie(f,n,r)):m.createElement(a,ft({key:y},v,{title:d}),hie(f,n,r)):h==="divider"?m.createElement(s,ft({key:y},v)):m.createElement(i,ft({key:y},v,{extra:g}),d,(!!g||g===0)&&m.createElement("span",{className:"".concat(r,"-item-extra")},g))}return null}).filter(function(l){return l})}function iCe(e,n,r,i,o){var a=e,s=ee({divider:ade,item:_k,group:sde,submenu:aU},i);return n&&(a=hie(n,s,o)),ode(a,r)}var E5t=["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"],gE=[],C5t=m.forwardRef(function(e,n){var r,i=e,o=i.prefixCls,a=o===void 0?"rc-menu":o,s=i.rootClassName,l=i.style,c=i.className,u=i.tabIndex,d=u===void 0?0:u,f=i.items,p=i.children,h=i.direction,g=i.id,v=i.mode,y=v===void 0?"vertical":v,_=i.inlineCollapsed,S=i.disabled,b=i.disabledOverflow,E=i.subMenuOpenDelay,w=E===void 0?.1:E,C=i.subMenuCloseDelay,x=C===void 0?.1:C,T=i.forceSubMenuRender,R=i.defaultOpenKeys,O=i.openKeys,M=i.activeKey,P=i.defaultActiveFirst,k=i.selectable,$=k===void 0?!0:k,U=i.multiple,z=U===void 0?!1:U,D=i.defaultSelectedKeys,B=i.selectedKeys,Y=i.onSelect,q=i.onDeselect,K=i.inlineIndent,H=K===void 0?24:K,G=i.motion,Q=i.defaultMotions,le=i.triggerSubMenuAction,Z=le===void 0?"hover":le,j=i.builtinPlacements,F=i.itemIcon,te=i.expandIcon,oe=i.overflowedIndicator,de=oe===void 0?"...":oe,pe=i.overflowedIndicatorPopupClassName,me=i.getPopupContainer,ve=i.onClick,he=i.onOpenChange,be=i.onKeyDown;i.openAnimation,i.openTransitionName;var we=i._internalRenderMenuItem,De=i._internalRenderSubMenuItem,Ae=i._internalComponents,Ee=Xt(i,E5t),Re=m.useMemo(function(){return[iCe(p,f,gE,Ae,a),iCe(p,f,gE,{},a)]},[p,f,Ae]),Te=ke(Re,2),Oe=Te[0],Ne=Te[1],je=m.useState(!1),ne=ke(je,2),J=ne[0],ae=ne[1],Se=m.useRef(),xe=t5t(g),ue=h==="rtl",Me=dr(R,{value:O,postState:function(wn){return wn||gE}}),$e=ke(Me,2),ge=$e[0],Ve=$e[1],st=function(wn){var Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function ni(){Ve(wn),he==null||he(wn)}Bn?Us.flushSync(ni):ni()},Je=m.useState(ge),ot=ke(Je,2),Xe=ot[0],Ze=ot[1],bt=m.useRef(!1),at=m.useMemo(function(){return(y==="inline"||y==="vertical")&&_?["vertical",_]:[y,!1]},[y,_]),pt=ke(at,2),Ct=pt[0],It=pt[1],Wt=Ct==="inline",Bt=m.useState(Ct),Vt=ke(Bt,2),rn=Vt[0],tt=Vt[1],it=m.useState(It),nt=ke(it,2),vt=nt[0],kt=nt[1];m.useEffect(function(){tt(Ct),kt(It),bt.current&&(Wt?Ve(Xe):st(gE))},[Ct,It]);var Dt=m.useState(0),Kt=ke(Dt,2),Ht=Kt[0],tn=Kt[1],on=Ht>=Oe.length-1||rn!=="horizontal"||b;m.useEffect(function(){Wt&&Ze(ge)},[ge]),m.useEffect(function(){return bt.current=!0,function(){bt.current=!1}},[]);var sn=J4t(),Jt=sn.registerPath,En=sn.unregisterPath,Pt=sn.refreshOverflowKeys,Qt=sn.isSubPathKey,ln=sn.getKeyPath,jt=sn.getKeys,Lt=sn.getSubPathKeys,en=m.useMemo(function(){return{registerPath:Jt,unregisterPath:En}},[Jt,En]),Ue=m.useMemo(function(){return{isSubPathKey:Qt}},[Qt]);m.useEffect(function(){Pt(on?gE:Oe.slice(Ht+1).map(function(Vr){return Vr.key}))},[Ht,on]);var Zt=dr(M||P&&((r=Oe[0])===null||r===void 0?void 0:r.key),{value:M}),Et=ke(Zt,2),Gt=Et[0],zt=Et[1],Vn=a2(function(Vr){zt(Vr)}),sr=a2(function(){zt(void 0)});m.useImperativeHandle(n,function(){return{list:Se.current,focus:function(wn){var Bn,ni=jt(),yn=fie(ni,xe),Sn=yn.elements,ur=yn.key2element,qr=yn.element2key,zi=nde(Se.current,Sn),Qo=Gt??(zi[0]?qr.get(zi[0]):(Bn=Oe.find(function(Pa){return!Pa.props.disabled}))===null||Bn===void 0?void 0:Bn.key),gr=ur.get(Qo);if(Qo&&gr){var Oo;gr==null||(Oo=gr.focus)===null||Oo===void 0||Oo.call(gr,wn)}}}});var A=dr(D||[],{value:B,postState:function(wn){return Array.isArray(wn)?wn:wn==null?gE:[wn]}}),W=ke(A,2),ce=W[0],Pe=W[1],qe=function(wn){if($){var Bn=wn.key,ni=ce.includes(Bn),yn;z?ni?yn=ce.filter(function(ur){return ur!==Bn}):yn=[].concat(Tt(ce),[Bn]):yn=[Bn],Pe(yn);var Sn=ee(ee({},wn),{},{selectedKeys:yn});ni?q==null||q(Sn):Y==null||Y(Sn)}!z&&ge.length&&rn!=="inline"&&st(gE)},gt=a2(function(Vr){ve==null||ve(U8(Vr)),qe(Vr)}),Yt=a2(function(Vr,wn){var Bn=ge.filter(function(yn){return yn!==Vr});if(wn)Bn.push(Vr);else if(rn!=="inline"){var ni=Lt(Vr);Bn=Bn.filter(function(yn){return!ni.has(yn)})}rC(ge,Bn,!0)||st(Bn,!0)}),Nn=function(wn,Bn){var ni=Bn??!ge.includes(wn);Yt(wn,ni)},Jn=X4t(rn,Gt,ue,xe,Se,jt,ln,zt,Nn,be);m.useEffect(function(){ae(!0)},[]);var Ci=m.useMemo(function(){return{_internalRenderMenuItem:we,_internalRenderSubMenuItem:De}},[we,De]),wi=rn!=="horizontal"||b?Oe:Oe.map(function(Vr,wn){return m.createElement(vA,{key:Vr.key,overflowDisabled:wn>Ht},Vr)}),to=m.createElement(Vh,ft({id:g,ref:Se,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:_k,className:Ce(a,"".concat(a,"-root"),"".concat(a,"-").concat(rn),c,fe(fe({},"".concat(a,"-inline-collapsed"),vt),"".concat(a,"-rtl"),ue),s),dir:h,style:l,role:"menu",tabIndex:d,data:wi,renderRawItem:function(wn){return wn},renderRawRest:function(wn){var Bn=wn.length,ni=Bn?Oe.slice(-Bn):null;return m.createElement(aU,{eventKey:pie,title:de,disabled:on,internalPopupClose:Bn===0,popupClassName:pe},ni)},maxCount:rn!=="horizontal"||b?Vh.INVALIDATE:Vh.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(wn){tn(wn)},onKeyDown:Jn},Ee));return m.createElement(tde.Provider,{value:Ci},m.createElement(DUe.Provider,{value:xe},m.createElement(vA,{prefixCls:a,rootClassName:s,mode:rn,openKeys:ge,rtl:ue,disabled:S,motion:J?G:null,defaultMotions:J?Q:null,activeKey:Gt,onActive:Vn,onInactive:sr,selectedKeys:ce,inlineIndent:H,subMenuOpenDelay:w,subMenuCloseDelay:x,forceSubMenuRender:T,builtinPlacements:j,triggerSubMenuAction:Z,getPopupContainer:me,itemIcon:F,expandIcon:te,onItemClick:gt,onOpenChange:Yt},m.createElement(BUe.Provider,{value:Ue},to),m.createElement("div",{style:{display:"none"},"aria-hidden":!0},m.createElement($Ue.Provider,{value:en},Ne)))))}),uI=C5t;uI.Item=_k;uI.SubMenu=aU;uI.ItemGroup=sde;uI.Divider=ade;var w5t={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"},x5t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:w5t}))},T5t=m.forwardRef(x5t),O5t={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"},R5t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:O5t}))},yA=m.forwardRef(R5t);const GUe=m.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),I5t=e=>{const{antCls:n,componentCls:r,colorText:i,footerBg:o,headerHeight:a,headerPadding:s,headerColor:l,footerPadding:c,fontSize:u,bodyBg:d,headerBg:f}=e;return{[r]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${r}-has-sider`]:{flexDirection:"row",[`> ${r}, > ${r}-content`]:{width:0}},[`${r}-header, &${r}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${r}-header`]:{height:a,padding:s,color:l,lineHeight:Ye(a),background:f,[`${n}-menu`]:{lineHeight:"inherit"}},[`${r}-footer`]:{padding:c,color:i,fontSize:u,background:o},[`${r}-content`]:{flex:"auto",color:i,minHeight:0}}},WUe=e=>{const{colorBgLayout:n,controlHeight:r,controlHeightLG:i,colorText:o,controlHeightSM:a,marginXXS:s,colorTextLightSolid:l,colorBgContainer:c}=e,u=i*1.25;return{colorBgHeader:"#001529",colorBgBody:n,colorBgTrigger:"#002140",bodyBg:n,headerBg:"#001529",headerHeight:r*2,headerPadding:`0 ${u}px`,headerColor:o,footerPadding:`${a}px ${u}px`,footerBg:n,siderBg:"#001529",triggerHeight:i+s*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:i,zeroTriggerHeight:i,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},YUe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],qUe=Yr("Layout",e=>[I5t(e)],WUe,{deprecatedTokens:YUe}),N5t=e=>{const{componentCls:n,siderBg:r,motionDurationMid:i,motionDurationSlow:o,antCls:a,triggerHeight:s,triggerColor:l,triggerBg:c,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:f,borderRadiusLG:p,lightSiderBg:h,lightTriggerColor:g,lightTriggerBg:v,bodyBg:y}=e;return{[n]:{position:"relative",minWidth:0,background:r,transition:`all ${i}, background 0s`,"&-has-trigger":{paddingBottom:s},"&-right":{order:1},[`${n}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`${n}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:s,color:l,lineHeight:Ye(s),textAlign:"center",background:c,cursor:"pointer",transition:`all ${i}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:u,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:f,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:r,borderRadius:`0 ${Ye(p)} ${Ye(p)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderRadius:`${Ye(p)} 0 0 ${Ye(p)}`}}},"&-light":{background:h,[`${n}-trigger`]:{color:g,background:v},[`${n}-zero-width-trigger`]:{color:g,background:v,border:`1px solid ${y}`,borderInlineStart:0}}}}},M5t=Yr(["Layout","Sider"],e=>[N5t(e)],WUe,{deprecatedTokens:YUe});var P5t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const oCe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},A5t=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),sU=m.createContext({}),D5t=(()=>{let e=0;return function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${n}${e}`}})(),KUe=m.forwardRef((e,n)=>{const{prefixCls:r,className:i,trigger:o,children:a,defaultCollapsed:s=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:h,breakpoint:g,onCollapse:v,onBreakpoint:y}=e,_=P5t(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:S}=m.useContext(GUe),[b,E]=m.useState("collapsed"in e?e.collapsed:s),[w,C]=m.useState(!1);m.useEffect(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const x=(F,te)=>{"collapsed"in e||E(F),v==null||v(F,te)},{getPrefixCls:T,direction:R}=m.useContext(Cn),O=T("layout-sider",r),[M,P,k]=M5t(O),$=m.useRef(null);$.current=F=>{C(F.matches),y==null||y(F.matches),b!==F.matches&&x(F.matches,"responsive")},m.useEffect(()=>{function F(oe){return $.current(oe)}let te;if(typeof window<"u"){const{matchMedia:oe}=window;if(oe&&g&&g in oCe){te=oe(`screen and (max-width: ${oCe[g]})`);try{te.addEventListener("change",F)}catch{te.addListener(F)}F(te)}}return()=>{try{te==null||te.removeEventListener("change",F)}catch{te==null||te.removeListener(F)}}},[g]),m.useEffect(()=>{const F=D5t("ant-sider-");return S.addSider(F),()=>S.removeSider(F)},[]);const U=()=>{x(!b,"clickTrigger")},z=Wr(_,["collapsed"]),D=b?p:f,B=A5t(D)?`${D}px`:String(D),Y=parseFloat(String(p||0))===0?m.createElement("span",{onClick:U,className:Ce(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${d?"right":"left"}`),style:h},o||m.createElement(T5t,null)):null,q=R==="rtl"==!d,G={expanded:q?m.createElement(w0,null):m.createElement(yA,null),collapsed:q?m.createElement(yA,null):m.createElement(w0,null)}[b?"collapsed":"expanded"],Q=o!==null?Y||m.createElement("div",{className:`${O}-trigger`,onClick:U,style:{width:B}},o||G):null,le=Object.assign(Object.assign({},c),{flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B}),Z=Ce(O,`${O}-${l}`,{[`${O}-collapsed`]:!!b,[`${O}-has-trigger`]:u&&o!==null&&!Y,[`${O}-below`]:!!w,[`${O}-zero-width`]:parseFloat(B)===0},i,P,k),j=m.useMemo(()=>({siderCollapsed:b}),[b]);return M(m.createElement(sU.Provider,{value:j},m.createElement("aside",Object.assign({className:Z},z,{style:le,ref:n}),m.createElement("div",{className:`${O}-children`},a),u||w&&Y?Q:null)))});var k5t={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"},L5t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:k5t}))},lde=m.forwardRef(L5t);const H8=m.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var $5t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const XUe=e=>{const{prefixCls:n,className:r,dashed:i}=e,o=$5t(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=m.useContext(Cn),s=a("menu",n),l=Ce({[`${s}-item-divider-dashed`]:!!i},r);return m.createElement(ade,Object.assign({className:l},o))},QUe=e=>{var n;const{className:r,children:i,icon:o,title:a,danger:s,extra:l}=e,{prefixCls:c,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:p}=m.useContext(H8),h=b=>{const E=i==null?void 0:i[0],w=m.createElement("span",{className:Ce(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!l||l===0})},i);return(!o||m.isValidElement(i)&&i.type==="span")&&i&&b&&u&&typeof E=="string"?m.createElement("div",{className:`${c}-inline-collapsed-noicon`},E.charAt(0)):w},{siderCollapsed:g}=m.useContext(sU);let v=a;typeof a>"u"?v=u?i:"":a===!1&&(v="");const y={title:v};!g&&!p&&(y.title=null,y.open=!1);const _=Tl(i).length;let S=m.createElement(_k,Object.assign({},Wr(e,["title","icon","danger"]),{className:Ce({[`${c}-item-danger`]:s,[`${c}-item-only-child`]:(o?_+1:_)===1},r),title:typeof a=="string"?a:void 0}),Ys(o,{className:Ce(m.isValidElement(o)?(n=o.props)===null||n===void 0?void 0:n.className:"",`${c}-item-icon`)}),h(p));return f||(S=m.createElement(Ef,Object.assign({},y,{placement:d==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),S)),S};var F5t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const z8=m.createContext(null),B5t=m.forwardRef((e,n)=>{const{children:r}=e,i=F5t(e,["children"]),o=m.useContext(z8),a=m.useMemo(()=>Object.assign(Object.assign({},o),i),[o,i.prefixCls,i.mode,i.selectable,i.rootClassName]),s=vRt(r),l=yg(n,s?J0(r):null);return m.createElement(z8.Provider,{value:a},m.createElement(ng,{space:!0},s?m.cloneElement(r,{ref:l}):r))}),j5t=e=>{const{componentCls:n,motionDurationSlow:r,horizontalLineHeight:i,colorSplit:o,lineWidth:a,lineType:s,itemPaddingInline:l}=e;return{[`${n}-horizontal`]:{lineHeight:i,border:0,borderBottom:`${Ye(a)} ${s} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${n}-item, ${n}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${n}-item:hover,
> ${n}-item-active,
> ${n}-submenu ${n}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${n}-item, ${n}-submenu-title`]:{transition:[`border-color ${r}`,`background ${r}`].join(",")},[`${n}-submenu-arrow`]:{display:"none"}}}},U5t=e=>{let{componentCls:n,menuArrowOffset:r,calc:i}=e;return{[`${n}-rtl`]:{direction:"rtl"},[`${n}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${n}-rtl${n}-vertical,
${n}-submenu-rtl ${n}-vertical`]:{[`${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Ye(i(r).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Ye(r)})`}}}}},aCe=e=>Object.assign({},Qy(e)),sCe=(e,n)=>{const{componentCls:r,itemColor:i,itemSelectedColor:o,subMenuItemSelectedColor:a,groupTitleColor:s,itemBg:l,subMenuItemBg:c,itemSelectedBg:u,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:p,motionDurationSlow:h,motionEaseInOut:g,motionEaseOut:v,itemPaddingInline:y,motionDurationMid:_,itemHoverColor:S,lineType:b,colorSplit:E,itemDisabledColor:w,dangerItemColor:C,dangerItemHoverColor:x,dangerItemSelectedColor:T,dangerItemActiveBg:R,dangerItemSelectedBg:O,popupBg:M,itemHoverBg:P,itemActiveBg:k,menuSubMenuBg:$,horizontalItemSelectedColor:U,horizontalItemSelectedBg:z,horizontalItemBorderRadius:D,horizontalItemHoverBg:B}=e;return{[`${r}-${n}, ${r}-${n} > ${r}`]:{color:i,background:l,[`&${r}-root:focus-visible`]:Object.assign({},aCe(e)),[`${r}-item`]:{"&-group-title, &-extra":{color:s}},[`${r}-submenu-selected > ${r}-submenu-title`]:{color:a},[`${r}-item, ${r}-submenu-title`]:{color:i,[`&:not(${r}-item-disabled):focus-visible`]:Object.assign({},aCe(e))},[`${r}-item-disabled, ${r}-submenu-disabled`]:{color:`${w} !important`},[`${r}-item:not(${r}-item-selected):not(${r}-submenu-selected)`]:{[`&:hover, > ${r}-submenu-title:hover`]:{color:S}},[`&:not(${r}-horizontal)`]:{[`${r}-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:k}},[`${r}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:k}}},[`${r}-item-danger`]:{color:C,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:x}},[`&${r}-item:active`]:{background:R}},[`${r}-item a`]:{"&, &:hover":{color:"inherit"}},[`${r}-item-selected`]:{color:o,[`&${r}-item-danger`]:{color:T},"a, a:hover":{color:"inherit"}},[`& ${r}-item-selected`]:{backgroundColor:u,[`&${r}-item-danger`]:{backgroundColor:O}},[`&${r}-submenu > ${r}`]:{backgroundColor:$},[`&${r}-popup > ${r}`]:{backgroundColor:M},[`&${r}-submenu-popup > ${r}`]:{backgroundColor:M},[`&${r}-horizontal`]:Object.assign(Object.assign({},n==="dark"?{borderBottom:0}:{}),{[`> ${r}-item, > ${r}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:D,"&::after":{position:"absolute",insetInline:y,bottom:0,borderBottom:`${Ye(d)} solid transparent`,transition:`border-color ${h} ${g}`,content:'""'},"&:hover, &-active, &-open":{background:B,"&::after":{borderBottomWidth:d,borderBottomColor:U}},"&-selected":{color:U,backgroundColor:z,"&:hover":{backgroundColor:z},"&::after":{borderBottomWidth:d,borderBottomColor:U}}}}),[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:`${Ye(p)} ${b} ${E}`}},[`&${r}-inline`]:{[`${r}-sub${r}-inline`]:{background:c},[`${r}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ye(f)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${_} ${v}`,`opacity ${_} ${v}`].join(","),content:'""'},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:T}}},[`${r}-selected, ${r}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${_} ${g}`,`opacity ${_} ${g}`].join(",")}}}}}},lCe=e=>{const{componentCls:n,itemHeight:r,itemMarginInline:i,padding:o,menuArrowSize:a,marginXS:s,itemMarginBlock:l,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(a).add(o).add(s).equal();return{[`${n}-item`]:{position:"relative",overflow:"hidden"},[`${n}-item, ${n}-submenu-title`]:{height:r,lineHeight:Ye(r),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:i,marginBlock:l,width:c},[`> ${n}-item,
> ${n}-submenu > ${n}-submenu-title`]:{height:r,lineHeight:Ye(r)},[`${n}-item-group-list ${n}-submenu-title,
${n}-submenu-title`]:{paddingInlineEnd:d}}},H5t=e=>{const{componentCls:n,iconCls:r,itemHeight:i,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:p,paddingXS:h,boxShadowSecondary:g,collapsedWidth:v,collapsedIconSize:y}=e,_={height:i,lineHeight:Ye(i),listStylePosition:"inside",listStyleType:"disc"};return[{[n]:{"&-inline, &-vertical":Object.assign({[`&${n}-root`]:{boxShadow:"none"}},lCe(e))},[`${n}-submenu-popup`]:{[`${n}-vertical`]:Object.assign(Object.assign({},lCe(e)),{boxShadow:g})}},{[`${n}-submenu-popup ${n}-vertical${n}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${Ye(e.calc(s).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${n}-inline`]:{width:"100%",[`&${n}-root`]:{[`${n}-item, ${n}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${f} ${l}`].join(","),[`> ${n}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${n}-sub${n}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${n}-submenu > ${n}-submenu-title`]:_,[`& ${n}-item-group-title`]:{paddingInlineStart:c}},[`${n}-item`]:_}},{[`${n}-inline-collapsed`]:{width:v,[`&${n}-root`]:{[`${n}-item, ${n}-submenu ${n}-submenu-title`]:{[`> ${n}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${n}-item,
> ${n}-item-group > ${n}-item-group-list > ${n}-item,
> ${n}-item-group > ${n}-item-group-list > ${n}-submenu > ${n}-submenu-title,
> ${n}-submenu > ${n}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ye(e.calc(y).div(2).equal())} - ${Ye(u)})`,textOverflow:"clip",[`
${n}-submenu-arrow,
${n}-submenu-expand-icon
`]:{opacity:0},[`${n}-item-icon, ${r}`]:{margin:0,fontSize:y,lineHeight:Ye(i),"+ span":{display:"inline-block",opacity:0}}},[`${n}-item-icon, ${r}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${n}-item-icon, ${r}`]:{display:"none"},"a, a:hover":{color:o}},[`${n}-item-group-title`]:Object.assign(Object.assign({},Sf),{paddingInline:h})}}]},cCe=e=>{const{componentCls:n,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:o,motionEaseOut:a,iconCls:s,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${n}-item, ${n}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding calc(${r} + 0.1s) ${o}`].join(","),[`${n}-item-icon, ${s}`]:{minWidth:l,fontSize:l,transition:[`font-size ${i} ${a}`,`margin ${r} ${o}`,`color ${r}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${r} ${o}`,`margin ${r}`,`color ${r}`].join(",")}},[`${n}-item-icon`]:Object.assign({},ew()),[`&${n}-item-only-child`]:{[`> ${s}, > ${n}-item-icon`]:{marginInlineEnd:0}}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${n}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},uCe=e=>{const{componentCls:n,motionDurationSlow:r,motionEaseInOut:i,borderRadius:o,menuArrowSize:a,menuArrowOffset:s}=e;return{[`${n}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${r} ${i}, opacity ${r}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${r} ${i}`,`transform ${r} ${i}`,`top ${r} ${i}`,`color ${r} ${i}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Ye(e.calc(s).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Ye(s)})`}}}}},z5t=e=>{const{antCls:n,componentCls:r,fontSize:i,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:s,paddingXS:l,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:p,subMenuItemBorderRadius:h,menuArrowSize:g,menuArrowOffset:v,lineType:y,groupTitleLineHeight:_,groupTitleFontSize:S}=e;return[{"":{[r]:Object.assign(Object.assign({},Nm()),{"&-hidden":{display:"none"}})},[`${r}-submenu-hidden`]:{display:"none"}},{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),Nm()),{marginBottom:0,paddingInlineStart:0,fontSize:i,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${r}-item`]:{flex:"none"}},[`${r}-item, ${r}-submenu, ${r}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${r}-item-group-title`]:{padding:`${Ye(l)} ${Ye(c)}`,fontSize:S,lineHeight:_,transition:`all ${o}`},[`&-horizontal ${r}-submenu`]:{transition:[`border-color ${o} ${s}`,`background ${o} ${s}`].join(",")},[`${r}-submenu, ${r}-submenu-inline`]:{transition:[`border-color ${o} ${s}`,`background ${o} ${s}`,`padding ${a} ${s}`].join(",")},[`${r}-submenu ${r}-sub`]:{cursor:"initial",transition:[`background ${o} ${s}`,`padding ${o} ${s}`].join(",")},[`${r}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${n}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${r}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${r}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${r}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:y,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),cCe(e)),{[`${r}-item-group`]:{[`${r}-item-group-list`]:{margin:0,padding:0,[`${r}-item, ${r}-submenu-title`]:{paddingInline:`${Ye(e.calc(i).mul(2).equal())} ${Ye(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${r}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${r}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},cCe(e)),uCe(e)),{[`${r}-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:h},[`${r}-submenu-title::after`]:{transition:`transform ${o} ${s}`}})},"\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}}}),uCe(e)),{[`&-inline-collapsed ${r}-submenu-arrow,
&-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ye(v)})`},"&::after":{transform:`rotate(45deg) translateX(${Ye(e.calc(v).mul(-1).equal())})`}},[`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(${Ye(e.calc(g).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Ye(e.calc(v).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Ye(v)})`}}})},{[`${n}-layout-header`]:{[r]:{lineHeight:"inherit"}}}]},V5t=e=>{var n,r,i;const{colorPrimary:o,colorError:a,colorTextDisabled:s,colorErrorBg:l,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:p,lineWidth:h,lineWidthBold:g,controlItemBgActive:v,colorBgTextHover:y,controlHeightLG:_,lineHeight:S,colorBgElevated:b,marginXXS:E,padding:w,fontSize:C,controlHeightSM:x,fontSizeLG:T,colorTextLightSolid:R,colorErrorHover:O}=e,M=(n=e.activeBarWidth)!==null&&n!==void 0?n:0,P=(r=e.activeBarBorderWidth)!==null&&r!==void 0?r:h,k=(i=e.itemMarginInline)!==null&&i!==void 0?i:e.marginXXS,$=new Gr(R).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:y,itemHoverBg:y,colorItemBgActive:p,itemActiveBg:v,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:M,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:h,activeBarBorderWidth:P,colorItemTextDisabled:s,itemDisabledColor:s,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:k,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:_,groupTitleLineHeight:S,collapsedWidth:_*2,popupBg:b,itemMarginBlock:E,itemPaddingInline:w,horizontalLineHeight:`${_*1.15}px`,iconSize:C,iconMarginInlineEnd:x-C,collapsedIconSize:T,groupTitleFontSize:C,darkItemDisabledColor:new Gr(R).setA(.25).toRgbString(),darkItemColor:$,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:R,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:$,darkItemHoverColor:R,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:a,itemWidth:M?`calc(100% + ${P}px)`:`calc(100% - ${k*2}px)`}},G5t=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Yr("Menu",o=>{const{colorBgElevated:a,controlHeightLG:s,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:p,darkItemSelectedBg:h,darkDangerItemSelectedBg:g,darkItemHoverBg:v,darkGroupTitleColor:y,darkItemHoverColor:_,darkItemDisabledColor:S,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:w,popupBg:C,darkPopupBg:x}=o,T=o.calc(l).div(7).mul(5).equal(),R=wr(o,{menuArrowSize:T,menuHorizontalHeight:o.calc(s).mul(1.15).equal(),menuArrowOffset:o.calc(T).mul(.25).equal(),menuSubMenuBg:a,calc:o.calc,popupBg:C}),O=wr(R,{itemColor:c,itemHoverColor:_,groupTitleColor:y,itemSelectedColor:p,itemBg:d,popupBg:x,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:v,itemDisabledColor:S,dangerItemColor:u,dangerItemHoverColor:b,dangerItemSelectedColor:E,dangerItemActiveBg:w,dangerItemSelectedBg:g,menuSubMenuBg:f,horizontalItemSelectedColor:p,horizontalItemSelectedBg:h});return[z5t(R),j5t(R),H5t(R),sCe(R,"light"),sCe(O,"dark"),U5t(R),fk(R),Pm(R,"slide-up"),Pm(R,"slide-down"),oI(R,"zoom-big")]},V5t,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:r,unitless:{groupTitleLineHeight:!0}})(e,n)},ZUe=e=>{var n;const{popupClassName:r,icon:i,title:o,theme:a}=e,s=m.useContext(H8),{prefixCls:l,inlineCollapsed:c,theme:u}=s,d=cI();let f;if(!i)f=c&&!d.length&&o&&typeof o=="string"?m.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):m.createElement("span",{className:`${l}-title-content`},o);else{const g=m.isValidElement(o)&&o.type==="span";f=m.createElement(m.Fragment,null,Ys(i,{className:Ce(m.isValidElement(i)?(n=i.props)===null||n===void 0?void 0:n.className:"",`${l}-item-icon`)}),g?o:m.createElement("span",{className:`${l}-title-content`},o))}const p=m.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]),[h]=Hp("Menu");return m.createElement(H8.Provider,{value:p},m.createElement(aU,Object.assign({},Wr(e,["icon"]),{title:f,popupClassName:Ce(l,r,`${l}-${a||u}`),popupStyle:Object.assign({zIndex:h},e.popupStyle)})))};var W5t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function iq(e){return e===null||e===!1}const Y5t={item:QUe,submenu:ZUe,divider:XUe},q5t=m.forwardRef((e,n)=>{var r;const i=m.useContext(z8),o=i||{},{getPrefixCls:a,getPopupContainer:s,direction:l,menu:c}=m.useContext(Cn),u=a(),{prefixCls:d,className:f,style:p,theme:h="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:y,siderCollapsed:_,rootClassName:S,mode:b,selectable:E,onClick:w,overflowedIndicatorPopupClassName:C}=e,x=W5t(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),T=Wr(x,["collapsedWidth"]);(r=o.validator)===null||r===void 0||r.call(o,{mode:b});const R=Sr(function(){var H;w==null||w.apply(void 0,arguments),(H=o.onClick)===null||H===void 0||H.call(o)}),O=o.mode||b,M=E??o.selectable,P=y??_,k={horizontal:{motionName:`${u}-slide-up`},inline:hA(u),other:{motionName:`${u}-zoom-big`}},$=a("menu",d||o.prefixCls),U=po($),[z,D,B]=G5t($,U,!i),Y=Ce(`${$}-${h}`,c==null?void 0:c.className,f),q=m.useMemo(()=>{var H,G;if(typeof g=="function"||iq(g))return g||null;if(typeof o.expandIcon=="function"||iq(o.expandIcon))return o.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||iq(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const Q=(H=g??(o==null?void 0:o.expandIcon))!==null&&H!==void 0?H:c==null?void 0:c.expandIcon;return Ys(Q,{className:Ce(`${$}-submenu-expand-icon`,m.isValidElement(Q)?(G=Q.props)===null||G===void 0?void 0:G.className:void 0)})},[g,o==null?void 0:o.expandIcon,c==null?void 0:c.expandIcon,$]),K=m.useMemo(()=>({prefixCls:$,inlineCollapsed:P||!1,direction:l,firstLevel:!0,theme:h,mode:O,disableMenuItemTitleTooltip:v}),[$,P,l,v,h]);return z(m.createElement(z8.Provider,{value:null},m.createElement(H8.Provider,{value:K},m.createElement(uI,Object.assign({getPopupContainer:s,overflowedIndicator:m.createElement(lde,null),overflowedIndicatorPopupClassName:Ce($,`${$}-${h}`,C),mode:O,selectable:M,onClick:R},T,{inlineCollapsed:P,style:Object.assign(Object.assign({},c==null?void 0:c.style),p),className:Y,prefixCls:$,direction:l,defaultMotions:k,expandIcon:q,ref:n,rootClassName:Ce(S,D,o.rootClassName,B,U),_internalComponents:Y5t})))))}),nv=m.forwardRef((e,n)=>{const r=m.useRef(null),i=m.useContext(sU);return m.useImperativeHandle(n,()=>({menu:r.current,focus:o=>{var a;(a=r.current)===null||a===void 0||a.focus(o)}})),m.createElement(q5t,Object.assign({ref:r},e,i))});nv.Item=QUe;nv.SubMenu=ZUe;nv.Divider=XUe;nv.ItemGroup=sde;const K5t=e=>{const{componentCls:n,menuCls:r,colorError:i,colorTextLightSolid:o}=e,a=`${r}-item`;return{[`${n}, ${n}-menu-submenu`]:{[`${r} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:i,"&:hover":{color:o,backgroundColor:i}}}}}},X5t=e=>{const{componentCls:n,menuCls:r,zIndexPopup:i,dropdownArrowDistance:o,sizePopupArrow:a,antCls:s,iconCls:l,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:p,fontSizeIcon:h,controlPaddingHorizontal:g,colorBgElevated:v}=e;return[{[n]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:i,display:"block","&::before":{position:"absolute",insetBlock:e.calc(a).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${s}-btn`]:{[`& > ${l}-down, & > ${s}-btn-icon > ${l}-down`]:{fontSize:h}},[`${n}-wrap`]:{position:"relative",[`${s}-btn > ${l}-down`]:{fontSize:h},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${n}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${s}-slide-down-enter${s}-slide-down-enter-active${n}-placement-bottomLeft,
&${s}-slide-down-appear${s}-slide-down-appear-active${n}-placement-bottomLeft,
&${s}-slide-down-enter${s}-slide-down-enter-active${n}-placement-bottom,
&${s}-slide-down-appear${s}-slide-down-appear-active${n}-placement-bottom,
&${s}-slide-down-enter${s}-slide-down-enter-active${n}-placement-bottomRight,
&${s}-slide-down-appear${s}-slide-down-appear-active${n}-placement-bottomRight`]:{animationName:j9},[`&${s}-slide-up-enter${s}-slide-up-enter-active${n}-placement-topLeft,
&${s}-slide-up-appear${s}-slide-up-appear-active${n}-placement-topLeft,
&${s}-slide-up-enter${s}-slide-up-enter-active${n}-placement-top,
&${s}-slide-up-appear${s}-slide-up-appear-active${n}-placement-top,
&${s}-slide-up-enter${s}-slide-up-enter-active${n}-placement-topRight,
&${s}-slide-up-appear${s}-slide-up-appear-active${n}-placement-topRight`]:{animationName:H9},[`&${s}-slide-down-leave${s}-slide-down-leave-active${n}-placement-bottomLeft,
&${s}-slide-down-leave${s}-slide-down-leave-active${n}-placement-bottom,
&${s}-slide-down-leave${s}-slide-down-leave-active${n}-placement-bottomRight`]:{animationName:U9},[`&${s}-slide-up-leave${s}-slide-up-leave-active${n}-placement-topLeft,
&${s}-slide-up-leave${s}-slide-up-leave-active${n}-placement-top,
&${s}-slide-up-leave${s}-slide-up-leave-active${n}-placement-topRight`]:{animationName:z9}}},Jue(e,v,{arrowPlacement:{top:!0,bottom:!0}}),{[`${n} ${r}`]:{position:"relative",margin:0},[`${r}-submenu-popup`]:{position:"absolute",zIndex:i,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${n}, ${n}-menu-submenu`]:Object.assign(Object.assign({},li(e)),{[r]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:v,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Rp(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${r}-item-group-title`]:{padding:`${Ye(u)} ${Ye(g)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${r}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${r}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${r}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${r}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${r}-item, ${r}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${Ye(u)} ${Ye(g)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Rp(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:v,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ye(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${n}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${n}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${r}-item-group-list`]:{margin:`0 ${Ye(e.marginXS)}`,padding:0,listStyle:"none"},[`${r}-submenu-title`]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},[`${r}-submenu-vertical`]:{position:"relative"},[`${r}-submenu${r}-submenu-disabled ${n}-menu-submenu-title`]:{[`&, ${n}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:v,cursor:"not-allowed"}},[`${r}-submenu-selected ${n}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Pm(e,"slide-up"),Pm(e,"slide-down"),DO(e,"move-up"),DO(e,"move-down"),oI(e,"zoom-big")]]},Q5t=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},iU({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),rU(e)),Z5t=Yr("Dropdown",e=>{const{marginXXS:n,sizePopupArrow:r,paddingXXS:i,componentCls:o}=e,a=wr(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(r).div(2).add(n).equal(),dropdownEdgeChildPadding:i});return[X5t(a),K5t(a)]},Q5t,{resetStyle:!1}),lU=e=>{var n;const{menu:r,arrow:i,prefixCls:o,children:a,trigger:s,disabled:l,dropdownRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:p,open:h,onOpenChange:g,visible:v,onVisibleChange:y,mouseEnterDelay:_=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:b=!0,placement:E="",overlay:w,transitionName:C}=e,{getPopupContainer:x,getPrefixCls:T,direction:R,dropdown:O}=m.useContext(Cn);JC();const M=m.useMemo(()=>{const me=T();return C!==void 0?C:E.includes("top")?`${me}-slide-down`:`${me}-slide-up`},[T,E,C]),P=m.useMemo(()=>E?E.includes("Center")?E.slice(0,E.indexOf("Center")):E:R==="rtl"?"bottomRight":"bottomLeft",[E,R]),k=T("dropdown",o),$=po(k),[U,z,D]=Z5t(k,$),[,B]=Nl(),Y=m.Children.only(H4t(a)?m.createElement("span",null,a):a),q=Ys(Y,{className:Ce(`${k}-trigger`,{[`${k}-rtl`]:R==="rtl"},Y.props.className),disabled:(n=Y.props.disabled)!==null&&n!==void 0?n:l}),K=l?[]:s,H=!!(K!=null&&K.includes("contextMenu")),[G,Q]=dr(!1,{value:h??v}),le=Sr(me=>{g==null||g(me,{source:"trigger"}),y==null||y(me),Q(me)}),Z=Ce(d,f,z,D,$,O==null?void 0:O.className,{[`${k}-rtl`]:R==="rtl"}),j=xUe({arrowPointAtCenter:typeof i=="object"&&i.pointAtCenter,autoAdjustOverflow:b,offset:B.marginXXS,arrowWidth:i?B.sizePopupArrow:0,borderRadius:B.borderRadius}),F=m.useCallback(()=>{r!=null&&r.selectable&&(r!=null&&r.multiple)||(g==null||g(!1,{source:"menu"}),Q(!1))},[r==null?void 0:r.selectable,r==null?void 0:r.multiple]),te=()=>{let me;return r!=null&&r.items?me=m.createElement(nv,Object.assign({},r)):typeof w=="function"?me=w():me=w,c&&(me=c(me)),me=m.Children.only(typeof me=="string"?m.createElement("span",null,me):me),m.createElement(B5t,{prefixCls:`${k}-menu`,rootClassName:Ce(D,$),expandIcon:m.createElement("span",{className:`${k}-menu-submenu-arrow`},m.createElement(w0,{className:`${k}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:F,validator:ve=>{}},me)},[oe,de]=Hp("Dropdown",p==null?void 0:p.zIndex);let pe=m.createElement(AUe,Object.assign({alignPoint:H},Wr(e,["rootClassName"]),{mouseEnterDelay:_,mouseLeaveDelay:S,visible:G,builtinPlacements:j,arrow:!!i,overlayClassName:Z,prefixCls:k,getPopupContainer:u||x,transitionName:M,trigger:K,overlay:te,placement:P,onVisibleChange:le,overlayStyle:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.style),p),{zIndex:oe})}),q);return oe&&(pe=m.createElement(ck.Provider,{value:de},pe)),U(pe)},J5t=tS(lU,"align",void 0,"dropdown",e=>e),e6t=e=>m.createElement(J5t,Object.assign({},e),m.createElement("span",null));lU._InternalPanelDoNotUseOrYouWillBeFired=e6t;var JUe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){var r=1e3,i=6e4,o=36e5,a="millisecond",s="second",l="minute",c="hour",u="day",d="week",f="month",p="quarter",h="year",g="date",v="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|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,S={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($){var U=["th","st","nd","rd"],z=$%100;return"["+$+(U[(z-20)%10]||U[z]||U[0])+"]"}},b=function($,U,z){var D=String($);return!D||D.length>=U?$:""+Array(U+1-D.length).join(z)+$},E={s:b,z:function($){var U=-$.utcOffset(),z=Math.abs(U),D=Math.floor(z/60),B=z%60;return(U<=0?"+":"-")+b(D,2,"0")+":"+b(B,2,"0")},m:function $(U,z){if(U.date()<z.date())return-$(z,U);var D=12*(z.year()-U.year())+(z.month()-U.month()),B=U.clone().add(D,f),Y=z-B<0,q=U.clone().add(D+(Y?-1:1),f);return+(-(D+(z-B)/(Y?B-q:q-B))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:f,y:h,w:d,d:u,D:g,h:c,m:l,s,ms:a,Q:p}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},w="en",C={};C[w]=S;var x="$isDayjsObject",T=function($){return $ instanceof P||!(!$||!$[x])},R=function $(U,z,D){var B;if(!U)return w;if(typeof U=="string"){var Y=U.toLowerCase();C[Y]&&(B=Y),z&&(C[Y]=z,B=Y);var q=U.split("-");if(!B&&q.length>1)return $(q[0])}else{var K=U.name;C[K]=U,B=K}return!D&&B&&(w=B),B||!D&&w},O=function($,U){if(T($))return $.clone();var z=typeof U=="object"?U:{};return z.date=$,z.args=arguments,new P(z)},M=E;M.l=R,M.i=T,M.w=function($,U){return O($,{locale:U.$L,utc:U.$u,x:U.$x,$offset:U.$offset})};var P=function(){function $(z){this.$L=R(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[x]=!0}var U=$.prototype;return U.parse=function(z){this.$d=function(D){var B=D.date,Y=D.utc;if(B===null)return new Date(NaN);if(M.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var q=B.match(y);if(q){var K=q[2]-1||0,H=(q[7]||"0").substring(0,3);return Y?new Date(Date.UTC(q[1],K,q[3]||1,q[4]||0,q[5]||0,q[6]||0,H)):new Date(q[1],K,q[3]||1,q[4]||0,q[5]||0,q[6]||0,H)}}return new Date(B)}(z),this.init()},U.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},U.$utils=function(){return M},U.isValid=function(){return this.$d.toString()!==v},U.isSame=function(z,D){var B=O(z);return this.startOf(D)<=B&&B<=this.endOf(D)},U.isAfter=function(z,D){return O(z)<this.startOf(D)},U.isBefore=function(z,D){return this.endOf(D)<O(z)},U.$g=function(z,D,B){return M.u(z)?this[D]:this.set(B,z)},U.unix=function(){return Math.floor(this.valueOf()/1e3)},U.valueOf=function(){return this.$d.getTime()},U.startOf=function(z,D){var B=this,Y=!!M.u(D)||D,q=M.p(z),K=function(te,oe){var de=M.w(B.$u?Date.UTC(B.$y,oe,te):new Date(B.$y,oe,te),B);return Y?de:de.endOf(u)},H=function(te,oe){return M.w(B.toDate()[te].apply(B.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(oe)),B)},G=this.$W,Q=this.$M,le=this.$D,Z="set"+(this.$u?"UTC":"");switch(q){case h:return Y?K(1,0):K(31,11);case f:return Y?K(1,Q):K(0,Q+1);case d:var j=this.$locale().weekStart||0,F=(G<j?G+7:G)-j;return K(Y?le-F:le+(6-F),Q);case u:case g:return H(Z+"Hours",0);case c:return H(Z+"Minutes",1);case l:return H(Z+"Seconds",2);case s:return H(Z+"Milliseconds",3);default:return this.clone()}},U.endOf=function(z){return this.startOf(z,!1)},U.$set=function(z,D){var B,Y=M.p(z),q="set"+(this.$u?"UTC":""),K=(B={},B[u]=q+"Date",B[g]=q+"Date",B[f]=q+"Month",B[h]=q+"FullYear",B[c]=q+"Hours",B[l]=q+"Minutes",B[s]=q+"Seconds",B[a]=q+"Milliseconds",B)[Y],H=Y===u?this.$D+(D-this.$W):D;if(Y===f||Y===h){var G=this.clone().set(g,1);G.$d[K](H),G.init(),this.$d=G.set(g,Math.min(this.$D,G.daysInMonth())).$d}else K&&this.$d[K](H);return this.init(),this},U.set=function(z,D){return this.clone().$set(z,D)},U.get=function(z){return this[M.p(z)]()},U.add=function(z,D){var B,Y=this;z=Number(z);var q=M.p(D),K=function(Q){var le=O(Y);return M.w(le.date(le.date()+Math.round(Q*z)),Y)};if(q===f)return this.set(f,this.$M+z);if(q===h)return this.set(h,this.$y+z);if(q===u)return K(1);if(q===d)return K(7);var H=(B={},B[l]=i,B[c]=o,B[s]=r,B)[q]||1,G=this.$d.getTime()+z*H;return M.w(G,this)},U.subtract=function(z,D){return this.add(-1*z,D)},U.format=function(z){var D=this,B=this.$locale();if(!this.isValid())return B.invalidDate||v;var Y=z||"YYYY-MM-DDTHH:mm:ssZ",q=M.z(this),K=this.$H,H=this.$m,G=this.$M,Q=B.weekdays,le=B.months,Z=B.meridiem,j=function(oe,de,pe,me){return oe&&(oe[de]||oe(D,Y))||pe[de].slice(0,me)},F=function(oe){return M.s(K%12||12,oe,"0")},te=Z||function(oe,de,pe){var me=oe<12?"AM":"PM";return pe?me.toLowerCase():me};return Y.replace(_,function(oe,de){return de||function(pe){switch(pe){case"YY":return String(D.$y).slice(-2);case"YYYY":return M.s(D.$y,4,"0");case"M":return G+1;case"MM":return M.s(G+1,2,"0");case"MMM":return j(B.monthsShort,G,le,3);case"MMMM":return j(le,G);case"D":return D.$D;case"DD":return M.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return j(B.weekdaysMin,D.$W,Q,2);case"ddd":return j(B.weekdaysShort,D.$W,Q,3);case"dddd":return Q[D.$W];case"H":return String(K);case"HH":return M.s(K,2,"0");case"h":return F(1);case"hh":return F(2);case"a":return te(K,H,!0);case"A":return te(K,H,!1);case"m":return String(H);case"mm":return M.s(H,2,"0");case"s":return String(D.$s);case"ss":return M.s(D.$s,2,"0");case"SSS":return M.s(D.$ms,3,"0");case"Z":return q}return null}(oe)||q.replace(":","")})},U.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},U.diff=function(z,D,B){var Y,q=this,K=M.p(D),H=O(z),G=(H.utcOffset()-this.utcOffset())*i,Q=this-H,le=function(){return M.m(q,H)};switch(K){case h:Y=le()/12;break;case f:Y=le();break;case p:Y=le()/3;break;case d:Y=(Q-G)/6048e5;break;case u:Y=(Q-G)/864e5;break;case c:Y=Q/o;break;case l:Y=Q/i;break;case s:Y=Q/r;break;default:Y=Q}return B?Y:M.a(Y)},U.daysInMonth=function(){return this.endOf(f).$D},U.$locale=function(){return C[this.$L]},U.locale=function(z,D){if(!z)return this.$L;var B=this.clone(),Y=R(z,D,!0);return Y&&(B.$L=Y),B},U.clone=function(){return M.w(this.$d,this)},U.toDate=function(){return new Date(this.valueOf())},U.toJSON=function(){return this.isValid()?this.toISOString():null},U.toISOString=function(){return this.$d.toISOString()},U.toString=function(){return this.$d.toUTCString()},$}(),k=P.prototype;return O.prototype=k,[["$ms",a],["$s",s],["$m",l],["$H",c],["$W",u],["$M",f],["$y",h],["$D",g]].forEach(function($){k[$[1]]=function(U){return this.$g(U,$[0],$[1])}}),O.extend=function($,U){return $.$i||($(U,P,O),$.$i=!0),O},O.locale=R,O.isDayjs=T,O.unix=function($){return O(1e3*$)},O.en=C[w],O.Ls=C,O.p={},O})})(JUe);var eHe=JUe.exports;const Zr=Or(eHe);var tHe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){return function(r,i){i.prototype.weekday=function(o){var a=this.$locale().weekStart||0,s=this.$W,l=(s<a?s+7:s)-a;return this.$utils().u(o)?l:this.subtract(l,"day").add(o,"day")}}})})(tHe);var t6t=tHe.exports;const nHe=Or(t6t);var rHe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){return function(r,i,o){var a=i.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},l=function(f,p,h,g,v){var y=f.name?f:f.$locale(),_=s(y[p]),S=s(y[h]),b=_||S.map(function(w){return w.slice(0,g)});if(!v)return b;var E=y.weekStart;return b.map(function(w,C){return b[(C+(E||0))%7]})},c=function(){return o.Ls[o.locale()]},u=function(f,p){return f.formats[p]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,v,y){return v||y.slice(1)})}(f.formats[p.toUpperCase()])},d=function(){var f=this;return{months:function(p){return p?p.format("MMMM"):l(f,"months")},monthsShort:function(p){return p?p.format("MMM"):l(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):l(f,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):l(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):l(f,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return u(f.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},o.localeData=function(){var f=c();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(p){return u(f,p)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return l(c(),"months")},o.monthsShort=function(){return l(c(),"monthsShort","months",3)},o.weekdays=function(f){return l(c(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return l(c(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return l(c(),"weekdaysMin","weekdays",2,f)}}})})(rHe);var n6t=rHe.exports;const iHe=Or(n6t);var oHe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){var r="week",i="year";return function(o,a,s){var l=a.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=s(this).startOf(i).add(1,i).date(u),f=s(this).endOf(r);if(d.isBefore(f))return 1}var p=s(this).startOf(i).date(u).startOf(r).subtract(1,"millisecond"),h=this.diff(p,r,!0);return h<0?s(this).startOf("week").week():Math.ceil(h)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(oHe);var r6t=oHe.exports;const cde=Or(r6t);var aHe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){return function(r,i){i.prototype.weekYear=function(){var o=this.month(),a=this.week(),s=this.year();return a===1&&o===11?s+1:o===0&&a>=52?s-1:s}}})})(aHe);var i6t=aHe.exports;const o6t=Or(i6t);var sHe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){return function(r,i){var o=i.prototype,a=o.format;o.format=function(s){var l=this,c=this.$locale();if(!this.isValid())return a.bind(this)(s);var u=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}});return a.bind(this)(d)}}})})(sHe);var a6t=sHe.exports;const lHe=Or(a6t);var cHe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){var r={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"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,a=/\d\d/,s=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},u=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(_){this[y]=+_}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(_){if(!_||_==="Z")return 0;var S=_.match(/([+-]|\d\d)/g),b=60*S[1]+(+S[2]||0);return b===0?0:S[0]==="+"?-b:b}(y)}],p=function(y){var _=c[y];return _&&(_.indexOf?_:_.s.concat(_.f))},h=function(y,_){var S,b=c.meridiem;if(b){for(var E=1;E<=24;E+=1)if(y.indexOf(b(E,0,_))>-1){S=E>12;break}}else S=y===(_?"pm":"PM");return S},g={A:[l,function(y){this.afternoon=h(y,!1)}],a:[l,function(y){this.afternoon=h(y,!0)}],Q:[o,function(y){this.month=3*(y-1)+1}],S:[o,function(y){this.milliseconds=100*+y}],SS:[a,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[s,d("seconds")],ss:[s,d("seconds")],m:[s,d("minutes")],mm:[s,d("minutes")],H:[s,d("hours")],h:[s,d("hours")],HH:[s,d("hours")],hh:[s,d("hours")],D:[s,d("day")],DD:[a,d("day")],Do:[l,function(y){var _=c.ordinal,S=y.match(/\d+/);if(this.day=S[0],_)for(var b=1;b<=31;b+=1)_(b).replace(/\[|\]/g,"")===y&&(this.day=b)}],w:[s,d("week")],ww:[a,d("week")],M:[s,d("month")],MM:[a,d("month")],MMM:[l,function(y){var _=p("months"),S=(p("monthsShort")||_.map(function(b){return b.slice(0,3)})).indexOf(y)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[l,function(y){var _=p("months").indexOf(y)+1;if(_<1)throw new Error;this.month=_%12||_}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function v(y){var _,S;_=y,S=c&&c.formats;for(var b=(y=_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,M,P){var k=P&&P.toUpperCase();return M||S[P]||r[P]||S[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,U,z){return U||z.slice(1)})})).match(i),E=b.length,w=0;w<E;w+=1){var C=b[w],x=g[C],T=x&&x[0],R=x&&x[1];b[w]=R?{regex:T,parser:R}:C.replace(/^\[|\]$/g,"")}return function(O){for(var M={},P=0,k=0;P<E;P+=1){var $=b[P];if(typeof $=="string")k+=$.length;else{var U=$.regex,z=$.parser,D=O.slice(k),B=U.exec(D)[0];z.call(M,B),O=O.replace(B,"")}}return function(Y){var q=Y.afternoon;if(q!==void 0){var K=Y.hours;q?K<12&&(Y.hours+=12):K===12&&(Y.hours=0),delete Y.afternoon}}(M),M}}return function(y,_,S){S.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var b=_.prototype,E=b.parse;b.parse=function(w){var C=w.date,x=w.utc,T=w.args;this.$u=x;var R=T[1];if(typeof R=="string"){var O=T[2]===!0,M=T[3]===!0,P=O||M,k=T[2];M&&(k=T[2]),c=this.$locale(),!O&&k&&(c=S.Ls[k]),this.$d=function(D,B,Y,q){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*D);var K=v(B)(D),H=K.year,G=K.month,Q=K.day,le=K.hours,Z=K.minutes,j=K.seconds,F=K.milliseconds,te=K.zone,oe=K.week,de=new Date,pe=Q||(H||G?1:de.getDate()),me=H||de.getFullYear(),ve=0;H&&!G||(ve=G>0?G-1:de.getMonth());var he,be=le||0,we=Z||0,De=j||0,Ae=F||0;return te?new Date(Date.UTC(me,ve,pe,be,we,De,Ae+60*te.offset*1e3)):Y?new Date(Date.UTC(me,ve,pe,be,we,De,Ae)):(he=new Date(me,ve,pe,be,we,De,Ae),oe&&(he=q(he).week(oe).toDate()),he)}catch{return new Date("")}}(C,R,x,S),this.init(),k&&k!==!0&&(this.$L=this.locale(k).$L),P&&C!=this.format(R)&&(this.$d=new Date("")),c={}}else if(R instanceof Array)for(var $=R.length,U=1;U<=$;U+=1){T[1]=R[U-1];var z=S.apply(this,T);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}U===$&&(this.$d=new Date(""))}else E.call(this,w)}}})})(cHe);var s6t=cHe.exports;const uHe=Or(s6t);Zr.extend(uHe);Zr.extend(lHe);Zr.extend(nHe);Zr.extend(iHe);Zr.extend(cde);Zr.extend(o6t);Zr.extend(function(e,n){var r=n.prototype,i=r.format;r.format=function(a){var s=(a||"").replace("Wo","wo");return i.bind(this)(s)}});var l6t={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"},mE=function(n){var r=l6t[n];return r||n.split("_")[0]},c6t={getNow:function(){var n=Zr();return typeof n.tz=="function"?n.tz():n},getFixedDate:function(n){return Zr(n,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(n){return n.endOf("month")},getWeekDay:function(n){var r=n.locale("en");return r.weekday()+r.localeData().firstDayOfWeek()},getYear:function(n){return n.year()},getMonth:function(n){return n.month()},getDate:function(n){return n.date()},getHour:function(n){return n.hour()},getMinute:function(n){return n.minute()},getSecond:function(n){return n.second()},getMillisecond:function(n){return n.millisecond()},addYear:function(n,r){return n.add(r,"year")},addMonth:function(n,r){return n.add(r,"month")},addDate:function(n,r){return n.add(r,"day")},setYear:function(n,r){return n.year(r)},setMonth:function(n,r){return n.month(r)},setDate:function(n,r){return n.date(r)},setHour:function(n,r){return n.hour(r)},setMinute:function(n,r){return n.minute(r)},setSecond:function(n,r){return n.second(r)},setMillisecond:function(n,r){return n.millisecond(r)},isAfter:function(n,r){return n.isAfter(r)},isValidate:function(n){return n.isValid()},locale:{getWeekFirstDay:function(n){return Zr().locale(mE(n)).localeData().firstDayOfWeek()},getWeekFirstDate:function(n,r){return r.locale(mE(n)).weekday(0)},getWeek:function(n,r){return r.locale(mE(n)).week()},getShortWeekDays:function(n){return Zr().locale(mE(n)).localeData().weekdaysMin()},getShortMonths:function(n){return Zr().locale(mE(n)).localeData().monthsShort()},format:function(n,r,i){return r.locale(mE(n)).format(i)},parse:function(n,r,i){for(var o=mE(n),a=0;a<i.length;a+=1){var s=i[a],l=r;if(s.includes("wo")||s.includes("Wo")){for(var c=l.split("-")[0],u=l.split("-")[1],d=Zr(c,"YYYY").startOf("year").locale(o),f=0;f<=52;f+=1){var p=d.add(f,"week");if(p.format("Wo")===u)return p}return null}var h=Zr(l,s,!0).locale(o);if(h.isValid())return h}return null}}};function cU(e,n){return e!==void 0?e:n?"bottomRight":"bottomLeft"}function dHe(e,n){var r=cU(e,n),i=r==null?void 0:r.toLowerCase().endsWith("right"),o=i?"insetInlineEnd":"insetInlineStart";return n&&(o=["insetInlineStart","insetInlineEnd"].find(function(a){return a!==o})),o}var Sg=m.createContext(null),u6t={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 fHe(e){var n=e.popupElement,r=e.popupStyle,i=e.popupClassName,o=e.popupAlign,a=e.transitionName,s=e.getPopupContainer,l=e.children,c=e.range,u=e.placement,d=e.builtinPlacements,f=d===void 0?u6t:d,p=e.direction,h=e.visible,g=e.onClose,v=m.useContext(Sg),y=v.prefixCls,_="".concat(y,"-dropdown"),S=cU(u,p==="rtl");return m.createElement(yk,{showAction:[],hideAction:["click"],popupPlacement:S,builtinPlacements:f,prefixCls:_,popupTransitionName:a,popup:n,popupAlign:o,popupVisible:h,popupClassName:Ce(i,fe(fe({},"".concat(_,"-range"),c),"".concat(_,"-rtl"),p==="rtl")),popupStyle:r,stretch:"minWidth",getPopupContainer:s,onPopupVisibleChange:function(E){E||g()}},l)}function ude(e,n){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",i=String(e);i.length<n;)i="".concat(r).concat(i);return i}function rw(e){return e==null?[]:Array.isArray(e)?e:[e]}function J2(e,n,r){var i=Tt(e);return i[n]=r,i}function uU(e,n){var r={},i=n||Object.keys(e);return i.forEach(function(o){e[o]!==void 0&&(r[o]=e[o])}),r}function pHe(e,n,r){if(r)return r;switch(e){case"time":return n.fieldTimeFormat;case"datetime":return n.fieldDateTimeFormat;case"month":return n.fieldMonthFormat;case"year":return n.fieldYearFormat;case"quarter":return n.fieldQuarterFormat;case"week":return n.fieldWeekFormat;default:return n.fieldDateFormat}}function hHe(e,n,r){var i=r!==void 0?r:n[n.length-1],o=n.find(function(a){return e[a]});return i!==o?e[o]:void 0}function gHe(e){return uU(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function dde(e,n,r,i){var o=m.useMemo(function(){return e||function(s,l){var c=s;return n&&l.type==="date"?n(c,l.today):r&&l.type==="month"?r(c,l.locale):l.originNode}},[e,r,n]),a=m.useCallback(function(s,l){return o(s,ee(ee({},l),{},{range:i}))},[o,i]);return a}function mHe(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=m.useState([!1,!1]),o=ke(i,2),a=o[0],s=o[1],l=function(d,f){s(function(p){return J2(p,f,d)})},c=m.useMemo(function(){return a.map(function(u,d){if(u)return!0;var f=e[d];return f?!!(!r[d]&&!f||f&&n(f,{activeIndex:d})):!1})},[e,a,n,r]);return[c,l]}function vHe(e,n,r,i,o){var a="",s=[];return e&&s.push(o?"hh":"HH"),n&&s.push("mm"),r&&s.push("ss"),a=s.join(":"),i&&(a+=".SSS"),o&&(a+=" A"),a}function d6t(e,n,r,i,o,a){var s=e.fieldDateTimeFormat,l=e.fieldDateFormat,c=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,h=e.yearFormat,g=e.cellYearFormat,v=e.cellQuarterFormat,y=e.dayFormat,_=e.cellDateFormat,S=vHe(n,r,i,o,a);return ee(ee({},e),{},{fieldDateTimeFormat:s||"YYYY-MM-DD ".concat(S),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:c||S,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:g||"YYYY",cellQuarterFormat:v||"[Q]Q",cellDateFormat:_||y||"D"})}function yHe(e,n){var r=n.showHour,i=n.showMinute,o=n.showSecond,a=n.showMillisecond,s=n.use12Hours;return V.useMemo(function(){return d6t(e,r,i,o,a,s)},[e,r,i,o,a,s])}function cM(e,n,r){return r??n.some(function(i){return e.includes(i)})}var f6t=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function p6t(e){var n=uU(e,f6t),r=e.format,i=e.picker,o=null;return r&&(o=r,Array.isArray(o)&&(o=o[0]),o=cn(o)==="object"?o.format:o),i==="time"&&(n.format=o),[n,o]}function h6t(e){return e&&typeof e=="string"}function _He(e,n,r,i){return[e,n,r,i].some(function(o){return o!==void 0})}function bHe(e,n,r,i,o){var a=n,s=r,l=i;if(!e&&!a&&!s&&!l&&!o)a=!0,s=!0,l=!0;else if(e){var c,u,d,f=[a,s,l].some(function(g){return g===!1}),p=[a,s,l].some(function(g){return g===!0}),h=f?!0:!p;a=(c=a)!==null&&c!==void 0?c:h,s=(u=s)!==null&&u!==void 0?u:h,l=(d=l)!==null&&d!==void 0?d:h}return[a,s,l,o]}function SHe(e){var n=e.showTime,r=p6t(e),i=ke(r,2),o=i[0],a=i[1],s=n&&cn(n)==="object"?n:{},l=ee(ee({defaultOpenValue:s.defaultOpenValue||s.defaultValue},o),s),c=l.showMillisecond,u=l.showHour,d=l.showMinute,f=l.showSecond,p=_He(u,d,f,c),h=bHe(p,u,d,f,c),g=ke(h,3);return u=g[0],d=g[1],f=g[2],[l,ee(ee({},l),{},{showHour:u,showMinute:d,showSecond:f,showMillisecond:c}),l.format,a]}function EHe(e,n,r,i,o){var a=e==="time";if(e==="datetime"||a){for(var s=i,l=pHe(e,o,null),c=l,u=[n,r],d=0;d<u.length;d+=1){var f=rw(u[d])[0];if(h6t(f)){c=f;break}}var p=s.showHour,h=s.showMinute,g=s.showSecond,v=s.showMillisecond,y=s.use12Hours,_=cM(c,["a","A","LT","LLL","LTS"],y),S=_He(p,h,g,v);S||(p=cM(c,["H","h","k","LT","LLL"]),h=cM(c,["m","LT","LLL"]),g=cM(c,["s","LTS"]),v=cM(c,["SSS"]));var b=bHe(S,p,h,g,v),E=ke(b,3);p=E[0],h=E[1],g=E[2];var w=n||vHe(p,h,g,v,_);return ee(ee({},s),{},{format:w,showHour:p,showMinute:h,showSecond:g,showMillisecond:v,use12Hours:_})}return null}function g6t(e,n,r){if(n===!1)return null;var i=n&&cn(n)==="object"?n:{};return i.clearIcon||r||m.createElement("span",{className:"".concat(e,"-clear-btn")})}var oq=7;function rS(e,n,r){return!e&&!n||e===n?!0:!e||!n?!1:r()}function gie(e,n,r){return rS(n,r,function(){var i=Math.floor(e.getYear(n)/10),o=Math.floor(e.getYear(r)/10);return i===o})}function aC(e,n,r){return rS(n,r,function(){return e.getYear(n)===e.getYear(r)})}function dCe(e,n){var r=Math.floor(e.getMonth(n)/3);return r+1}function m6t(e,n,r){return rS(n,r,function(){return aC(e,n,r)&&dCe(e,n)===dCe(e,r)})}function fde(e,n,r){return rS(n,r,function(){return aC(e,n,r)&&e.getMonth(n)===e.getMonth(r)})}function pde(e,n,r){return rS(n,r,function(){return aC(e,n,r)&&fde(e,n,r)&&e.getDate(n)===e.getDate(r)})}function CHe(e,n,r){return rS(n,r,function(){return e.getHour(n)===e.getHour(r)&&e.getMinute(n)===e.getMinute(r)&&e.getSecond(n)===e.getSecond(r)})}function wHe(e,n,r){return rS(n,r,function(){return pde(e,n,r)&&CHe(e,n,r)&&e.getMillisecond(n)===e.getMillisecond(r)})}function s2(e,n,r,i){return rS(r,i,function(){var o=e.locale.getWeekFirstDate(n,r),a=e.locale.getWeekFirstDate(n,i);return aC(e,o,a)&&e.locale.getWeek(n,r)===e.locale.getWeek(n,i)})}function Bc(e,n,r,i,o){switch(o){case"date":return pde(e,r,i);case"week":return s2(e,n.locale,r,i);case"month":return fde(e,r,i);case"quarter":return m6t(e,r,i);case"year":return aC(e,r,i);case"decade":return gie(e,r,i);case"time":return CHe(e,r,i);default:return wHe(e,r,i)}}function dU(e,n,r,i){return!n||!r||!i?!1:e.isAfter(i,n)&&e.isAfter(r,i)}function Y3(e,n,r,i,o){return Bc(e,n,r,i,o)?!0:e.isAfter(r,i)}function v6t(e,n,r){var i=n.locale.getWeekFirstDay(e),o=n.setDate(r,1),a=n.getWeekDay(o),s=n.addDate(o,i-a);return n.getMonth(s)===n.getMonth(r)&&n.getDate(s)>1&&(s=n.addDate(s,-7)),s}function wl(e,n){var r=n.generateConfig,i=n.locale,o=n.format;return e?typeof o=="function"?o(e):r.locale.format(i.locale,e,o):""}function V8(e,n,r){var i=n,o=["getHour","getMinute","getSecond","getMillisecond"],a=["setHour","setMinute","setSecond","setMillisecond"];return a.forEach(function(s,l){r?i=e[s](i,e[o[l]](r)):i=e[s](i,0)}),i}function y6t(e,n,r,i,o){var a=Sr(function(s,l){return!!(r&&r(s,l)||i&&e.isAfter(i,s)&&!Bc(e,n,i,s,l.type)||o&&e.isAfter(s,o)&&!Bc(e,n,o,s,l.type))});return a}function _6t(e,n,r){return m.useMemo(function(){var i=pHe(e,n,r),o=rw(i),a=o[0],s=cn(a)==="object"&&a.type==="mask"?a.format:null;return[o.map(function(l){return typeof l=="string"||typeof l=="function"?l:l.format}),s]},[e,n,r])}function b6t(e,n,r){return typeof e[0]=="function"||r?!0:n}function S6t(e,n,r,i){var o=Sr(function(a,s){var l=ee({type:n},s);if(delete l.activeIndex,!e.isValidate(a)||r&&r(a,l))return!0;if((n==="date"||n==="time")&&i){var c,u=s&&s.activeIndex===1?"end":"start",d=((c=i.disabledTime)===null||c===void 0?void 0:c.call(i,a,u,{from:l.from}))||{},f=d.disabledHours,p=d.disabledMinutes,h=d.disabledSeconds,g=d.disabledMilliseconds,v=i.disabledHours,y=i.disabledMinutes,_=i.disabledSeconds,S=f||v,b=p||y,E=h||_,w=e.getHour(a),C=e.getMinute(a),x=e.getSecond(a),T=e.getMillisecond(a);if(S&&S().includes(w)||b&&b(w).includes(C)||E&&E(w,C).includes(x)||g&&g(w,C,x).includes(T))return!0}return!1});return o}function q3(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=m.useMemo(function(){var i=e&&rw(e);return n&&i&&(i[1]=i[1]||i[0]),i},[e,n]);return r}function xHe(e,n){var r=e.generateConfig,i=e.locale,o=e.picker,a=o===void 0?"date":o,s=e.prefixCls,l=s===void 0?"rc-picker":s,c=e.styles,u=c===void 0?{}:c,d=e.classNames,f=d===void 0?{}:d,p=e.order,h=p===void 0?!0:p,g=e.components,v=g===void 0?{}:g,y=e.inputRender,_=e.allowClear,S=e.clearIcon,b=e.needConfirm,E=e.multiple,w=e.format,C=e.inputReadOnly,x=e.disabledDate,T=e.minDate,R=e.maxDate,O=e.showTime,M=e.value,P=e.defaultValue,k=e.pickerValue,$=e.defaultPickerValue,U=q3(M),z=q3(P),D=q3(k),B=q3($),Y=a==="date"&&O?"datetime":a,q=Y==="time"||Y==="datetime",K=q||E,H=b??q,G=SHe(e),Q=ke(G,4),le=Q[0],Z=Q[1],j=Q[2],F=Q[3],te=yHe(i,Z),oe=m.useMemo(function(){return EHe(Y,j,F,le,te)},[Y,j,F,le,te]),de=m.useMemo(function(){return ee(ee({},e),{},{prefixCls:l,locale:te,picker:a,styles:u,classNames:f,order:h,components:ee({input:y},v),clearIcon:g6t(l,_,S),showTime:oe,value:U,defaultValue:z,pickerValue:D,defaultPickerValue:B},n==null?void 0:n())},[e]),pe=_6t(Y,te,w),me=ke(pe,2),ve=me[0],he=me[1],be=b6t(ve,C,E),we=y6t(r,i,x,T,R),De=S6t(r,a,we,oe),Ae=m.useMemo(function(){return ee(ee({},de),{},{needConfirm:H,inputReadOnly:be,disabledDate:we})},[de,H,be,we]);return[Ae,Y,K,ve,he,De]}function E6t(e,n,r){var i=dr(n,{value:e}),o=ke(i,2),a=o[0],s=o[1],l=V.useRef(e),c=V.useRef(),u=function(){Dr.cancel(c.current)},d=Sr(function(){s(l.current),r&&a!==l.current&&r(l.current)}),f=Sr(function(p,h){u(),l.current=p,p||h?d():c.current=Dr(d)});return V.useEffect(function(){return u},[]),[a,f]}function THe(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0,o=r.every(function(d){return d})?!1:e,a=E6t(o,n||!1,i),s=ke(a,2),l=s[0],c=s[1];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||l)&&c(d,f.force)}return[l,u]}function OHe(e){var n=m.useRef();return m.useImperativeHandle(e,function(){var r;return{nativeElement:(r=n.current)===null||r===void 0?void 0:r.nativeElement,focus:function(o){var a;(a=n.current)===null||a===void 0||a.focus(o)},blur:function(){var o;(o=n.current)===null||o===void 0||o.blur()}}}),n}function RHe(e,n){return m.useMemo(function(){return e||(n?(qi(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(n).map(function(r){var i=ke(r,2),o=i[0],a=i[1];return{label:o,value:a}})):[])},[e,n])}function hde(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=m.useRef(n);i.current=n,I1(function(){if(e)i.current(e);else{var o=Dr(function(){i.current(e)},r);return function(){Dr.cancel(o)}}},[e])}function IHe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=m.useState(0),o=ke(i,2),a=o[0],s=o[1],l=m.useState(!1),c=ke(l,2),u=c[0],d=c[1],f=m.useRef([]),p=m.useRef(null),h=m.useRef(null),g=function(E){p.current=E},v=function(E){return p.current===E},y=function(E){d(E)},_=function(E){return E&&(h.current=E),h.current},S=function(E){var w=f.current,C=new Set(w.filter(function(T){return E[T]||n[T]})),x=w[w.length-1]===0?1:0;return C.size>=2||e[x]?null:x};return hde(u||r,function(){u||(f.current=[],g(null))}),m.useEffect(function(){u&&f.current.push(a)},[u,a]),[u,y,_,a,s,S,f.current,g,v]}function C6t(e,n,r,i,o,a){var s=r[r.length-1],l=function(u,d){var f=ke(e,2),p=f[0],h=f[1],g=ee(ee({},d),{},{from:hHe(e,r)});return s===1&&n[0]&&p&&!Bc(i,o,p,u,g.type)&&i.isAfter(p,u)||s===0&&n[1]&&h&&!Bc(i,o,h,u,g.type)&&i.isAfter(u,h)?!0:a==null?void 0:a(u,g)};return l}function l2(e,n,r,i){switch(n){case"date":case"week":return e.addMonth(r,i);case"month":case"quarter":return e.addYear(r,i);case"year":return e.addYear(r,i*10);case"decade":return e.addYear(r,i*100);default:return r}}var aq=[];function NHe(e,n,r,i,o,a,s,l){var c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:aq,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:aq,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:aq,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,g=s==="time",v=a||0,y=function(D){var B=e.getNow();return g&&(B=V8(e,B)),c[D]||r[D]||B},_=ke(u,2),S=_[0],b=_[1],E=dr(function(){return y(0)},{value:S}),w=ke(E,2),C=w[0],x=w[1],T=dr(function(){return y(1)},{value:b}),R=ke(T,2),O=R[0],M=R[1],P=m.useMemo(function(){var z=[C,O][v];return g?z:V8(e,z,d[v])},[g,C,O,v,e,d]),k=function(D){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",Y=[x,M][v];Y(D);var q=[C,O];q[v]=D,f&&(!Bc(e,n,C,q[0],s)||!Bc(e,n,O,q[1],s))&&f(q,{source:B,range:v===1?"end":"start",mode:i})},$=function(D,B){if(l){var Y={date:"month",week:"month",month:"year",quarter:"year"},q=Y[s];if(q&&!Bc(e,n,D,B,q))return l2(e,s,B,-1);if(s==="year"&&D){var K=Math.floor(e.getYear(D)/10),H=Math.floor(e.getYear(B)/10);if(K!==H)return l2(e,s,B,-1)}}return B},U=m.useRef(null);return ti(function(){if(o&&!c[v]){var z=g?null:e.getNow();if(U.current!==null&&U.current!==v?z=[C,O][v^1]:r[v]?z=v===0?r[0]:$(r[0],r[1]):r[v^1]&&(z=r[v^1]),z){p&&e.isAfter(p,z)&&(z=p);var D=l?l2(e,s,z,1):z;h&&e.isAfter(D,h)&&(z=l?l2(e,s,h,-1):h),k(z,"reset")}}},[o,v,r[v]]),m.useEffect(function(){o?U.current=v:U.current=null},[o,v]),ti(function(){o&&c&&c[v]&&k(c[v],"reset")},[o,v]),[P,k]}function MHe(e,n){var r=m.useRef(e),i=m.useState({}),o=ke(i,2),a=o[1],s=function(u){return u&&n!==void 0?n:r.current},l=function(u){r.current=u,a({})};return[s,l,s(!0)]}var w6t=[];function PHe(e,n,r){var i=function(s){return s.map(function(l){return wl(l,{generateConfig:e,locale:n,format:r[0]})})},o=function(s,l){for(var c=Math.max(s.length,l.length),u=-1,d=0;d<c;d+=1){var f=s[d]||null,p=l[d]||null;if(f!==p&&!wHe(e,f,p)){u=d;break}}return[u<0,u!==0]};return[i,o]}function AHe(e,n){return Tt(e).sort(function(r,i){return n.isAfter(r,i)?1:-1})}function x6t(e){var n=MHe(e),r=ke(n,2),i=r[0],o=r[1],a=Sr(function(){o(e)});return m.useEffect(function(){a()},[e]),[i,o]}function DHe(e,n,r,i,o,a,s,l,c){var u=dr(a,{value:s}),d=ke(u,2),f=d[0],p=d[1],h=f||w6t,g=x6t(h),v=ke(g,2),y=v[0],_=v[1],S=PHe(e,n,r),b=ke(S,2),E=b[0],w=b[1],C=Sr(function(T){var R=Tt(T);if(i)for(var O=0;O<2;O+=1)R[O]=R[O]||null;else o&&(R=AHe(R.filter(function(z){return z}),e));var M=w(y(),R),P=ke(M,2),k=P[0],$=P[1];if(!k&&(_(R),l)){var U=E(R);l(R,U,{range:$?"end":"start"})}}),x=function(){c&&c(y())};return[h,p,y,C,x]}function kHe(e,n,r,i,o,a,s,l,c,u){var d=e.generateConfig,f=e.locale,p=e.picker,h=e.onChange,g=e.allowEmpty,v=e.order,y=a.some(function(k){return k})?!1:v,_=PHe(d,f,s),S=ke(_,2),b=S[0],E=S[1],w=MHe(n),C=ke(w,2),x=C[0],T=C[1],R=Sr(function(){T(n)});m.useEffect(function(){R()},[n]);var O=Sr(function(k){var $=k===null,U=Tt(k||x());if($)for(var z=Math.max(a.length,U.length),D=0;D<z;D+=1)a[D]||(U[D]=null);y&&U[0]&&U[1]&&(U=AHe(U,d)),o(U);var B=U,Y=ke(B,2),q=Y[0],K=Y[1],H=!q,G=!K,Q=g?(!H||g[0])&&(!G||g[1]):!0,le=!v||H||G||Bc(d,f,q,K,p)||d.isAfter(K,q),Z=(a[0]||!q||!u(q,{activeIndex:0}))&&(a[1]||!K||!u(K,{from:q,activeIndex:1})),j=$||Q&&le&&Z;if(j){r(U);var F=E(U,n),te=ke(F,1),oe=te[0];h&&!oe&&h($&&U.every(function(de){return!de})?null:U,b(U))}return j}),M=Sr(function(k,$){var U=J2(x(),k,i()[k]);T(U),$&&O()}),P=!l&&!c;return hde(!P,function(){P&&(O(),o(n),R())},2),[M,O]}function LHe(e,n,r,i,o){return n!=="date"&&n!=="time"?!1:r!==void 0?r:i!==void 0?i:!o&&(e==="date"||e==="time")}function T6t(e,n,r,i,o,a){var s=e;function l(f,p,h){var g=a[f](s),v=h.find(function(b){return b.value===g});if(!v||v.disabled){var y=h.filter(function(b){return!b.disabled}),_=Tt(y).reverse(),S=_.find(function(b){return b.value<=g})||y[0];S&&(g=S.value,s=a[p](s,g))}return g}var c=l("getHour","setHour",n()),u=l("getMinute","setMinute",r(c)),d=l("getSecond","setSecond",i(c,u));return l("getMillisecond","setMillisecond",o(c,u,d)),s}function K3(){return[]}function X3(e,n){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,s=[],l=r>=1?r|0:1,c=e;c<=n;c+=l){var u=o.includes(c);(!u||!i)&&s.push({label:ude(c,a),value:c,disabled:u})}return s}function gde(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=n||{},o=i.use12Hours,a=i.hourStep,s=a===void 0?1:a,l=i.minuteStep,c=l===void 0?1:l,u=i.secondStep,d=u===void 0?1:u,f=i.millisecondStep,p=f===void 0?100:f,h=i.hideDisabledOptions,g=i.disabledTime,v=i.disabledHours,y=i.disabledMinutes,_=i.disabledSeconds,S=m.useMemo(function(){return r||e.getNow()},[r,e]),b=m.useCallback(function(B){var Y=(g==null?void 0:g(B))||{};return[Y.disabledHours||v||K3,Y.disabledMinutes||y||K3,Y.disabledSeconds||_||K3,Y.disabledMilliseconds||K3]},[g,v,y,_]),E=m.useMemo(function(){return b(S)},[S,b]),w=ke(E,4),C=w[0],x=w[1],T=w[2],R=w[3],O=m.useCallback(function(B,Y,q,K){var H=X3(0,23,s,h,B()),G=o?H.map(function(j){return ee(ee({},j),{},{label:ude(j.value%12||12,2)})}):H,Q=function(F){return X3(0,59,c,h,Y(F))},le=function(F,te){return X3(0,59,d,h,q(F,te))},Z=function(F,te,oe){return X3(0,999,p,h,K(F,te,oe),3)};return[G,Q,le,Z]},[h,s,o,p,c,d]),M=m.useMemo(function(){return O(C,x,T,R)},[O,C,x,T,R]),P=ke(M,4),k=P[0],$=P[1],U=P[2],z=P[3],D=function(Y,q){var K=function(){return k},H=$,G=U,Q=z;if(q){var le=b(q),Z=ke(le,4),j=Z[0],F=Z[1],te=Z[2],oe=Z[3],de=O(j,F,te,oe),pe=ke(de,4),me=pe[0],ve=pe[1],he=pe[2],be=pe[3];K=function(){return me},H=ve,G=he,Q=be}var we=T6t(Y,K,H,G,Q,e);return we};return[D,k,$,U,z]}function O6t(e){var n=e.mode,r=e.internalMode,i=e.renderExtraFooter,o=e.showNow,a=e.showTime,s=e.onSubmit,l=e.onNow,c=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,p=m.useContext(Sg),h=p.prefixCls,g=p.locale,v=p.button,y=v===void 0?"button":v,_=d.getNow(),S=gde(d,a,_),b=ke(S,1),E=b[0],w=i==null?void 0:i(n),C=f(_,{type:n}),x=function(){if(!C){var $=E(_);l($)}},T="".concat(h,"-now"),R="".concat(T,"-btn"),O=o&&m.createElement("li",{className:T},m.createElement("a",{className:Ce(R,C&&"".concat(R,"-disabled")),"aria-disabled":C,onClick:x},r==="date"?g.today:g.now)),M=u&&m.createElement("li",{className:"".concat(h,"-ok")},m.createElement(y,{disabled:c,onClick:s},g.ok)),P=(O||M)&&m.createElement("ul",{className:"".concat(h,"-ranges")},O,M);return!w&&!P?null:m.createElement("div",{className:"".concat(h,"-footer")},w&&m.createElement("div",{className:"".concat(h,"-footer-extra")},w),P)}function $He(e,n,r){function i(o,a){var s=o.findIndex(function(c){return Bc(e,n,c,a,r)});if(s===-1)return[].concat(Tt(o),[a]);var l=Tt(o);return l.splice(s,1),l}return i}var iw=m.createContext(null);function fU(){return m.useContext(iw)}function dI(e,n){var r=e.prefixCls,i=e.generateConfig,o=e.locale,a=e.disabledDate,s=e.minDate,l=e.maxDate,c=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,p=e.values,h=e.pickerValue,g=e.onSelect,v=e.prevIcon,y=e.nextIcon,_=e.superPrevIcon,S=e.superNextIcon,b=i.getNow(),E={now:b,values:p,pickerValue:h,prefixCls:r,disabledDate:a,minDate:s,maxDate:l,cellRender:c,hoverValue:u,hoverRangeValue:d,onHover:f,locale:o,generateConfig:i,onSelect:g,panelType:n,prevIcon:v,nextIcon:y,superPrevIcon:_,superNextIcon:S};return[E,b]}var u0=m.createContext({});function bk(e){for(var n=e.rowNum,r=e.colNum,i=e.baseDate,o=e.getCellDate,a=e.prefixColumn,s=e.rowClassName,l=e.titleFormat,c=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,p=f===void 0?!0:f,h=e.disabledDate,g=fU(),v=g.prefixCls,y=g.panelType,_=g.now,S=g.disabledDate,b=g.cellRender,E=g.onHover,w=g.hoverValue,C=g.hoverRangeValue,x=g.generateConfig,T=g.values,R=g.locale,O=g.onSelect,M=h||S,P="".concat(v,"-cell"),k=m.useContext(u0),$=k.onCellDblClick,U=function(G){return T.some(function(Q){return Q&&Bc(x,R,G,Q,y)})},z=[],D=0;D<n;D+=1){for(var B=[],Y=void 0,q=function(){var G=D*r+K,Q=o(i,G),le=M==null?void 0:M(Q,{type:y});K===0&&(Y=Q,a&&B.push(a(Y)));var Z=!1,j=!1,F=!1;if(p&&C){var te=ke(C,2),oe=te[0],de=te[1];Z=dU(x,oe,de,Q),j=Bc(x,R,Q,oe,y),F=Bc(x,R,Q,de,y)}var pe=l?wl(Q,{locale:R,format:l,generateConfig:x}):void 0,me=m.createElement("div",{className:"".concat(P,"-inner")},c(Q));B.push(m.createElement("td",{key:K,title:pe,className:Ce(P,ee(fe(fe(fe(fe(fe(fe({},"".concat(P,"-disabled"),le),"".concat(P,"-hover"),(w||[]).some(function(ve){return Bc(x,R,Q,ve,y)})),"".concat(P,"-in-range"),Z&&!j&&!F),"".concat(P,"-range-start"),j),"".concat(P,"-range-end"),F),"".concat(v,"-cell-selected"),!C&&y!=="week"&&U(Q)),u(Q))),onClick:function(){le||O(Q)},onDoubleClick:function(){!le&&$&&$()},onMouseEnter:function(){le||E==null||E(Q)},onMouseLeave:function(){le||E==null||E(null)}},b?b(Q,{prefixCls:v,originNode:me,today:_,type:y,locale:R}):me))},K=0;K<r;K+=1)q();z.push(m.createElement("tr",{key:D,className:s==null?void 0:s(Y)},B))}return m.createElement("div",{className:"".concat(v,"-body")},m.createElement("table",{className:"".concat(v,"-content")},d&&m.createElement("thead",null,m.createElement("tr",null,d)),m.createElement("tbody",null,z)))}var Q3={visibility:"hidden"};function fI(e){var n=e.offset,r=e.superOffset,i=e.onChange,o=e.getStart,a=e.getEnd,s=e.children,l=fU(),c=l.prefixCls,u=l.prevIcon,d=u===void 0?"":u,f=l.nextIcon,p=f===void 0?"":f,h=l.superPrevIcon,g=h===void 0?"«":h,v=l.superNextIcon,y=v===void 0?"»":v,_=l.minDate,S=l.maxDate,b=l.generateConfig,E=l.locale,w=l.pickerValue,C=l.panelType,x="".concat(c,"-header"),T=m.useContext(u0),R=T.hidePrev,O=T.hideNext,M=T.hideHeader,P=m.useMemo(function(){if(!_||!n||!a)return!1;var H=a(n(-1,w));return!Y3(b,E,H,_,C)},[_,n,w,a,b,E,C]),k=m.useMemo(function(){if(!_||!r||!a)return!1;var H=a(r(-1,w));return!Y3(b,E,H,_,C)},[_,r,w,a,b,E,C]),$=m.useMemo(function(){if(!S||!n||!o)return!1;var H=o(n(1,w));return!Y3(b,E,S,H,C)},[S,n,w,o,b,E,C]),U=m.useMemo(function(){if(!S||!r||!o)return!1;var H=o(r(1,w));return!Y3(b,E,S,H,C)},[S,r,w,o,b,E,C]),z=function(G){n&&i(n(G,w))},D=function(G){r&&i(r(G,w))};if(M)return null;var B="".concat(x,"-prev-btn"),Y="".concat(x,"-next-btn"),q="".concat(x,"-super-prev-btn"),K="".concat(x,"-super-next-btn");return m.createElement("div",{className:x},r&&m.createElement("button",{type:"button","aria-label":"super-prev-year",onClick:function(){return D(-1)},tabIndex:-1,className:Ce(q,k&&"".concat(q,"-disabled")),disabled:k,style:R?Q3:{}},g),n&&m.createElement("button",{type:"button","aria-label":"prev-year",onClick:function(){return z(-1)},tabIndex:-1,className:Ce(B,P&&"".concat(B,"-disabled")),disabled:P,style:R?Q3:{}},d),m.createElement("div",{className:"".concat(x,"-view")},s),n&&m.createElement("button",{type:"button","aria-label":"next-year",onClick:function(){return z(1)},tabIndex:-1,className:Ce(Y,$&&"".concat(Y,"-disabled")),disabled:$,style:O?Q3:{}},p),r&&m.createElement("button",{type:"button","aria-label":"super-next-year",onClick:function(){return D(1)},tabIndex:-1,className:Ce(K,U&&"".concat(K,"-disabled")),disabled:U,style:O?Q3:{}},y))}function pU(e){var n=e.prefixCls,r=e.panelName,i=r===void 0?"date":r,o=e.locale,a=e.generateConfig,s=e.pickerValue,l=e.onPickerValueChange,c=e.onModeChange,u=e.mode,d=u===void 0?"date":u,f=e.disabledDate,p=e.onSelect,h=e.onHover,g=e.showWeek,v="".concat(n,"-").concat(i,"-panel"),y="".concat(n,"-cell"),_=d==="week",S=dI(e,d),b=ke(S,2),E=b[0],w=b[1],C=a.locale.getWeekFirstDay(o.locale),x=a.setDate(s,1),T=v6t(o.locale,a,x),R=a.getMonth(s),O=g===void 0?_:g,M=O?function(H){var G=f==null?void 0:f(H,{type:"week"});return m.createElement("td",{key:"week",className:Ce(y,"".concat(y,"-week"),fe({},"".concat(y,"-disabled"),G)),onClick:function(){G||p(H)},onMouseEnter:function(){G||h==null||h(H)},onMouseLeave:function(){G||h==null||h(null)}},m.createElement("div",{className:"".concat(y,"-inner")},a.locale.getWeek(o.locale,H)))}:null,P=[],k=o.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(o.locale):[]);M&&P.push(m.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var $=0;$<oq;$+=1)P.push(m.createElement("th",{key:$},k[($+C)%oq]));var U=function(G,Q){return a.addDate(G,Q)},z=function(G){return wl(G,{locale:o,format:o.cellDateFormat,generateConfig:a})},D=function(G){var Q=fe(fe({},"".concat(n,"-cell-in-view"),fde(a,G,s)),"".concat(n,"-cell-today"),pde(a,G,w));return Q},B=o.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(o.locale):[]),Y=m.createElement("button",{type:"button","aria-label":"year panel",key:"year",onClick:function(){c("year",s)},tabIndex:-1,className:"".concat(n,"-year-btn")},wl(s,{locale:o,format:o.yearFormat,generateConfig:a})),q=m.createElement("button",{type:"button","aria-label":"month panel",key:"month",onClick:function(){c("month",s)},tabIndex:-1,className:"".concat(n,"-month-btn")},o.monthFormat?wl(s,{locale:o,format:o.monthFormat,generateConfig:a}):B[R]),K=o.monthBeforeYear?[q,Y]:[Y,q];return m.createElement(iw.Provider,{value:E},m.createElement("div",{className:Ce(v,g&&"".concat(v,"-show-week"))},m.createElement(fI,{offset:function(G){return a.addMonth(s,G)},superOffset:function(G){return a.addYear(s,G)},onChange:l,getStart:function(G){return a.setDate(G,1)},getEnd:function(G){var Q=a.setDate(G,1);return Q=a.addMonth(Q,1),a.addDate(Q,-1)}},K),m.createElement(bk,ft({titleFormat:o.fieldDateFormat},e,{colNum:oq,rowNum:6,baseDate:T,headerCells:P,getCellDate:U,getCellText:z,getCellClassName:D,prefixColumn:M,cellSelection:!_}))))}var R6t=1/3;function I6t(e,n){var r=m.useRef(!1),i=m.useRef(null),o=m.useRef(null),a=function(){return r.current},s=function(){Dr.cancel(i.current),r.current=!1},l=m.useRef(),c=function(){var f=e.current;if(o.current=null,l.current=0,f){var p=f.querySelector('[data-value="'.concat(n,'"]')),h=f.querySelector("li"),g=function v(){s(),r.current=!0,l.current+=1;var y=f.scrollTop,_=h.offsetTop,S=p.offsetTop,b=S-_;if(S===0&&p!==h||!dk(f)){l.current<=5&&(i.current=Dr(v));return}var E=y+(b-y)*R6t,w=Math.abs(b-E);if(o.current!==null&&o.current<w){s();return}if(o.current=w,w<=1){f.scrollTop=b,s();return}f.scrollTop=E,i.current=Dr(v)};p&&h&&g()}},u=Sr(c);return[u,s,a]}var N6t=300;function M6t(e){return e.map(function(n){var r=n.value,i=n.label,o=n.disabled;return[r,i,o].join(",")}).join(";")}function uM(e){var n=e.units,r=e.value,i=e.optionalValue,o=e.type,a=e.onChange,s=e.onHover,l=e.onDblClick,c=e.changeOnScroll,u=fU(),d=u.prefixCls,f=u.cellRender,p=u.now,h=u.locale,g="".concat(d,"-time-panel"),v="".concat(d,"-time-panel-cell"),y=m.useRef(null),_=m.useRef(),S=function(){clearTimeout(_.current)},b=I6t(y,r??i),E=ke(b,3),w=E[0],C=E[1],x=E[2];ti(function(){return w(),S(),function(){C(),S()}},[r,i,M6t(n)]);var T=function(M){S();var P=M.target;!x()&&c&&(_.current=setTimeout(function(){var k=y.current,$=k.querySelector("li").offsetTop,U=Array.from(k.querySelectorAll("li")),z=U.map(function(K){return K.offsetTop-$}),D=z.map(function(K,H){return n[H].disabled?Number.MAX_SAFE_INTEGER:Math.abs(K-P.scrollTop)}),B=Math.min.apply(Math,Tt(D)),Y=D.findIndex(function(K){return K===B}),q=n[Y];q&&!q.disabled&&a(q.value)},N6t))},R="".concat(g,"-column");return m.createElement("ul",{className:R,ref:y,"data-type":o,onScroll:T},n.map(function(O){var M=O.label,P=O.value,k=O.disabled,$=m.createElement("div",{className:"".concat(v,"-inner")},M);return m.createElement("li",{key:P,className:Ce(v,fe(fe({},"".concat(v,"-selected"),r===P),"".concat(v,"-disabled"),k)),onClick:function(){k||a(P)},onDoubleClick:function(){!k&&l&&l()},onMouseEnter:function(){s(P)},onMouseLeave:function(){s(null)},"data-value":P},f?f(P,{prefixCls:d,originNode:$,today:p,type:"time",subType:o,locale:h}):$)}))}function U_(e){return e<12}function P6t(e){var n=e.showHour,r=e.showMinute,i=e.showSecond,o=e.showMillisecond,a=e.use12Hours,s=e.changeOnScroll,l=fU(),c=l.prefixCls,u=l.values,d=l.generateConfig,f=l.locale,p=l.onSelect,h=l.onHover,g=h===void 0?function(){}:h,v=l.pickerValue,y=(u==null?void 0:u[0])||null,_=m.useContext(u0),S=_.onCellDblClick,b=gde(d,e,y),E=ke(b,5),w=E[0],C=E[1],x=E[2],T=E[3],R=E[4],O=function(ot){var Xe=y&&d[ot](y),Ze=v&&d[ot](v);return[Xe,Ze]},M=O("getHour"),P=ke(M,2),k=P[0],$=P[1],U=O("getMinute"),z=ke(U,2),D=z[0],B=z[1],Y=O("getSecond"),q=ke(Y,2),K=q[0],H=q[1],G=O("getMillisecond"),Q=ke(G,2),le=Q[0],Z=Q[1],j=k===null?null:U_(k)?"am":"pm",F=m.useMemo(function(){return a?U_(k)?C.filter(function(Je){return U_(Je.value)}):C.filter(function(Je){return!U_(Je.value)}):C},[k,C,a]),te=function(ot,Xe){var Ze,bt=ot.filter(function(at){return!at.disabled});return Xe??(bt==null||(Ze=bt[0])===null||Ze===void 0?void 0:Ze.value)},oe=te(C,k),de=m.useMemo(function(){return x(oe)},[x,oe]),pe=te(de,D),me=m.useMemo(function(){return T(oe,pe)},[T,oe,pe]),ve=te(me,K),he=m.useMemo(function(){return R(oe,pe,ve)},[R,oe,pe,ve]),be=te(he,le),we=m.useMemo(function(){if(!a)return[];var Je=d.getNow(),ot=d.setHour(Je,6),Xe=d.setHour(Je,18),Ze=function(at,pt){var Ct=f.cellMeridiemFormat;return Ct?wl(at,{generateConfig:d,locale:f,format:Ct}):pt};return[{label:Ze(ot,"AM"),value:"am",disabled:C.every(function(bt){return bt.disabled||!U_(bt.value)})},{label:Ze(Xe,"PM"),value:"pm",disabled:C.every(function(bt){return bt.disabled||U_(bt.value)})}]},[C,a,d,f]),De=function(ot){var Xe=w(ot);p(Xe)},Ae=m.useMemo(function(){var Je=y||v||d.getNow(),ot=function(Ze){return Ze!=null};return ot(k)?(Je=d.setHour(Je,k),Je=d.setMinute(Je,D),Je=d.setSecond(Je,K),Je=d.setMillisecond(Je,le)):ot($)?(Je=d.setHour(Je,$),Je=d.setMinute(Je,B),Je=d.setSecond(Je,H),Je=d.setMillisecond(Je,Z)):ot(oe)&&(Je=d.setHour(Je,oe),Je=d.setMinute(Je,pe),Je=d.setSecond(Je,ve),Je=d.setMillisecond(Je,be)),Je},[y,v,k,D,K,le,oe,pe,ve,be,$,B,H,Z,d]),Ee=function(ot,Xe){return ot===null?null:d[Xe](Ae,ot)},Re=function(ot){return Ee(ot,"setHour")},Te=function(ot){return Ee(ot,"setMinute")},Oe=function(ot){return Ee(ot,"setSecond")},Ne=function(ot){return Ee(ot,"setMillisecond")},je=function(ot){return ot===null?null:ot==="am"&&!U_(k)?d.setHour(Ae,k-12):ot==="pm"&&U_(k)?d.setHour(Ae,k+12):Ae},ne=function(ot){De(Re(ot))},J=function(ot){De(Te(ot))},ae=function(ot){De(Oe(ot))},Se=function(ot){De(Ne(ot))},xe=function(ot){De(je(ot))},ue=function(ot){g(Re(ot))},Me=function(ot){g(Te(ot))},$e=function(ot){g(Oe(ot))},ge=function(ot){g(Ne(ot))},Ve=function(ot){g(je(ot))},st={onDblClick:S,changeOnScroll:s};return m.createElement("div",{className:"".concat(c,"-content")},n&&m.createElement(uM,ft({units:F,value:k,optionalValue:$,type:"hour",onChange:ne,onHover:ue},st)),r&&m.createElement(uM,ft({units:de,value:D,optionalValue:B,type:"minute",onChange:J,onHover:Me},st)),i&&m.createElement(uM,ft({units:me,value:K,optionalValue:H,type:"second",onChange:ae,onHover:$e},st)),o&&m.createElement(uM,ft({units:he,value:le,optionalValue:Z,type:"millisecond",onChange:Se,onHover:ge},st)),a&&m.createElement(uM,ft({units:we,value:j,type:"meridiem",onChange:xe,onHover:Ve},st)))}function FHe(e){var n=e.prefixCls,r=e.value,i=e.locale,o=e.generateConfig,a=e.showTime,s=a||{},l=s.format,c="".concat(n,"-time-panel"),u=dI(e,"time"),d=ke(u,1),f=d[0];return m.createElement(iw.Provider,{value:f},m.createElement("div",{className:Ce(c)},m.createElement(fI,null,r?wl(r,{locale:i,format:l,generateConfig:o}):" "),m.createElement(P6t,a)))}function A6t(e){var n=e.prefixCls,r=e.generateConfig,i=e.showTime,o=e.onSelect,a=e.value,s=e.pickerValue,l=e.onHover,c="".concat(n,"-datetime-panel"),u=gde(r,i),d=ke(u,1),f=d[0],p=function(y){return a?V8(r,y,a):V8(r,y,s)},h=function(y){l==null||l(y&&p(y))},g=function(y){var _=p(y);o(f(_,_))};return m.createElement("div",{className:c},m.createElement(pU,ft({},e,{onSelect:g,onHover:h})),m.createElement(FHe,e))}function D6t(e){var n=e.prefixCls,r=e.locale,i=e.generateConfig,o=e.pickerValue,a=e.disabledDate,s=e.onPickerValueChange,l="".concat(n,"-decade-panel"),c=dI(e,"decade"),u=ke(c,1),d=u[0],f=function(C){var x=Math.floor(i.getYear(C)/100)*100;return i.setYear(C,x)},p=function(C){var x=f(C);return i.addYear(x,99)},h=f(o),g=p(o),v=i.addYear(h,-10),y=function(C,x){return i.addYear(C,x*10)},_=function(C){var x=r.cellYearFormat,T=wl(C,{locale:r,format:x,generateConfig:i}),R=wl(i.addYear(C,9),{locale:r,format:x,generateConfig:i});return"".concat(T,"-").concat(R)},S=function(C){return fe({},"".concat(n,"-cell-in-view"),gie(i,C,h)||gie(i,C,g)||dU(i,h,g,C))},b=a?function(w,C){var x=i.setDate(w,1),T=i.setMonth(x,0),R=i.setYear(T,Math.floor(i.getYear(T)/10)*10),O=i.addYear(R,10),M=i.addDate(O,-1);return a(R,C)&&a(M,C)}:null,E="".concat(wl(h,{locale:r,format:r.yearFormat,generateConfig:i}),"-").concat(wl(g,{locale:r,format:r.yearFormat,generateConfig:i}));return m.createElement(iw.Provider,{value:d},m.createElement("div",{className:l},m.createElement(fI,{superOffset:function(C){return i.addYear(o,C*100)},onChange:s,getStart:f,getEnd:p},E),m.createElement(bk,ft({},e,{disabledDate:b,colNum:3,rowNum:4,baseDate:v,getCellDate:y,getCellText:_,getCellClassName:S}))))}function k6t(e){var n=e.prefixCls,r=e.locale,i=e.generateConfig,o=e.pickerValue,a=e.disabledDate,s=e.onPickerValueChange,l=e.onModeChange,c="".concat(n,"-month-panel"),u=dI(e,"month"),d=ke(u,1),f=d[0],p=i.setMonth(o,0),h=r.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(r.locale):[]),g=function(E,w){return i.addMonth(E,w)},v=function(E){var w=i.getMonth(E);return r.monthFormat?wl(E,{locale:r,format:r.monthFormat,generateConfig:i}):h[w]},y=function(){return fe({},"".concat(n,"-cell-in-view"),!0)},_=a?function(b,E){var w=i.setDate(b,1),C=i.setMonth(w,i.getMonth(w)+1),x=i.addDate(C,-1);return a(w,E)&&a(x,E)}:null,S=m.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){l("year")},tabIndex:-1,className:"".concat(n,"-year-btn")},wl(o,{locale:r,format:r.yearFormat,generateConfig:i}));return m.createElement(iw.Provider,{value:f},m.createElement("div",{className:c},m.createElement(fI,{superOffset:function(E){return i.addYear(o,E)},onChange:s,getStart:function(E){return i.setMonth(E,0)},getEnd:function(E){return i.setMonth(E,11)}},S),m.createElement(bk,ft({},e,{disabledDate:_,titleFormat:r.fieldMonthFormat,colNum:3,rowNum:4,baseDate:p,getCellDate:g,getCellText:v,getCellClassName:y}))))}function L6t(e){var n=e.prefixCls,r=e.locale,i=e.generateConfig,o=e.pickerValue,a=e.onPickerValueChange,s=e.onModeChange,l="".concat(n,"-quarter-panel"),c=dI(e,"quarter"),u=ke(c,1),d=u[0],f=i.setMonth(o,0),p=function(_,S){return i.addMonth(_,S*3)},h=function(_){return wl(_,{locale:r,format:r.cellQuarterFormat,generateConfig:i})},g=function(){return fe({},"".concat(n,"-cell-in-view"),!0)},v=m.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){s("year")},tabIndex:-1,className:"".concat(n,"-year-btn")},wl(o,{locale:r,format:r.yearFormat,generateConfig:i}));return m.createElement(iw.Provider,{value:d},m.createElement("div",{className:l},m.createElement(fI,{superOffset:function(_){return i.addYear(o,_)},onChange:a,getStart:function(_){return i.setMonth(_,0)},getEnd:function(_){return i.setMonth(_,11)}},v),m.createElement(bk,ft({},e,{titleFormat:r.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:f,getCellDate:p,getCellText:h,getCellClassName:g}))))}function $6t(e){var n=e.prefixCls,r=e.generateConfig,i=e.locale,o=e.value,a=e.hoverValue,s=e.hoverRangeValue,l=i.locale,c="".concat(n,"-week-panel-row"),u=function(f){var p={};if(s){var h=ke(s,2),g=h[0],v=h[1],y=s2(r,l,g,f),_=s2(r,l,v,f);p["".concat(c,"-range-start")]=y,p["".concat(c,"-range-end")]=_,p["".concat(c,"-range-hover")]=!y&&!_&&dU(r,g,v,f)}return a&&(p["".concat(c,"-hover")]=a.some(function(S){return s2(r,l,f,S)})),Ce(c,fe({},"".concat(c,"-selected"),!s&&s2(r,l,o,f)),p)};return m.createElement(pU,ft({},e,{mode:"week",panelName:"week",rowClassName:u}))}function F6t(e){var n=e.prefixCls,r=e.locale,i=e.generateConfig,o=e.pickerValue,a=e.disabledDate,s=e.onPickerValueChange,l=e.onModeChange,c="".concat(n,"-year-panel"),u=dI(e,"year"),d=ke(u,1),f=d[0],p=function(x){var T=Math.floor(i.getYear(x)/10)*10;return i.setYear(x,T)},h=function(x){var T=p(x);return i.addYear(T,9)},g=p(o),v=h(o),y=i.addYear(g,-1),_=function(x,T){return i.addYear(x,T)},S=function(x){return wl(x,{locale:r,format:r.cellYearFormat,generateConfig:i})},b=function(x){return fe({},"".concat(n,"-cell-in-view"),aC(i,x,g)||aC(i,x,v)||dU(i,g,v,x))},E=a?function(C,x){var T=i.setMonth(C,0),R=i.setDate(T,1),O=i.addYear(R,1),M=i.addDate(O,-1);return a(R,x)&&a(M,x)}:null,w=m.createElement("button",{type:"button",key:"decade","aria-label":"decade panel",onClick:function(){l("decade")},tabIndex:-1,className:"".concat(n,"-decade-btn")},wl(g,{locale:r,format:r.yearFormat,generateConfig:i}),"-",wl(v,{locale:r,format:r.yearFormat,generateConfig:i}));return m.createElement(iw.Provider,{value:f},m.createElement("div",{className:c},m.createElement(fI,{superOffset:function(x){return i.addYear(o,x*10)},onChange:s,getStart:p,getEnd:h},w),m.createElement(bk,ft({},e,{disabledDate:E,titleFormat:r.fieldYearFormat,colNum:3,rowNum:4,baseDate:y,getCellDate:_,getCellText:S,getCellClassName:b}))))}var B6t={date:pU,datetime:A6t,week:$6t,month:k6t,quarter:L6t,year:F6t,decade:D6t,time:FHe};function j6t(e,n){var r,i=e.locale,o=e.generateConfig,a=e.direction,s=e.prefixCls,l=e.tabIndex,c=l===void 0?0:l,u=e.multiple,d=e.defaultValue,f=e.value,p=e.onChange,h=e.onSelect,g=e.defaultPickerValue,v=e.pickerValue,y=e.onPickerValueChange,_=e.mode,S=e.onPanelChange,b=e.picker,E=b===void 0?"date":b,w=e.showTime,C=e.hoverValue,x=e.hoverRangeValue,T=e.cellRender,R=e.dateRender,O=e.monthCellRender,M=e.components,P=M===void 0?{}:M,k=e.hideHeader,$=((r=m.useContext(Sg))===null||r===void 0?void 0:r.prefixCls)||s||"rc-picker",U=m.useRef();m.useImperativeHandle(n,function(){return{nativeElement:U.current}});var z=SHe(e),D=ke(z,4),B=D[0],Y=D[1],q=D[2],K=D[3],H=yHe(i,Y),G=E==="date"&&w?"datetime":E,Q=m.useMemo(function(){return EHe(G,q,K,B,H)},[G,q,K,B,H]),le=o.getNow(),Z=dr(E,{value:_,postState:function(Ve){return Ve||"date"}}),j=ke(Z,2),F=j[0],te=j[1],oe=F==="date"&&Q?"datetime":F,de=$He(o,i,G),pe=dr(d,{value:f}),me=ke(pe,2),ve=me[0],he=me[1],be=m.useMemo(function(){var ge=rw(ve).filter(function(Ve){return Ve});return u?ge:ge.slice(0,1)},[ve,u]),we=Sr(function(ge){he(ge),p&&(ge===null||be.length!==ge.length||be.some(function(Ve,st){return!Bc(o,i,Ve,ge[st],G)}))&&(p==null||p(u?ge:ge[0]))}),De=Sr(function(ge){if(h==null||h(ge),F===E){var Ve=u?de(be,ge):[ge];we(Ve)}}),Ae=dr(g||be[0]||le,{value:v}),Ee=ke(Ae,2),Re=Ee[0],Te=Ee[1];m.useEffect(function(){be[0]&&!v&&Te(be[0])},[be[0]]);var Oe=function(Ve,st){S==null||S(Ve||v,st||F)},Ne=function(Ve){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Te(Ve),y==null||y(Ve),st&&Oe(Ve)},je=function(Ve,st){te(Ve),st&&Ne(st),Oe(st,Ve)},ne=function(Ve){if(De(Ve),Ne(Ve),F!==E){var st=["decade","year"],Je=[].concat(st,["month"]),ot={quarter:[].concat(st,["quarter"]),week:[].concat(Tt(Je),["week"]),date:[].concat(Tt(Je),["date"])},Xe=ot[E]||Je,Ze=Xe.indexOf(F),bt=Xe[Ze+1];bt&&je(bt,Ve)}},J=m.useMemo(function(){var ge,Ve;if(Array.isArray(x)){var st=ke(x,2);ge=st[0],Ve=st[1]}else ge=x;return!ge&&!Ve?null:(ge=ge||Ve,Ve=Ve||ge,o.isAfter(ge,Ve)?[Ve,ge]:[ge,Ve])},[x,o]),ae=dde(T,R,O),Se=P[oe]||B6t[oe]||pU,xe=m.useContext(u0),ue=m.useMemo(function(){return ee(ee({},xe),{},{hideHeader:k})},[xe,k]),Me="".concat($,"-panel"),$e=uU(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return m.createElement(u0.Provider,{value:ue},m.createElement("div",{ref:U,tabIndex:c,className:Ce(Me,fe({},"".concat(Me,"-rtl"),a==="rtl"))},m.createElement(Se,ft({},$e,{showTime:Q,prefixCls:$,locale:H,generateConfig:o,onModeChange:je,pickerValue:Re,onPickerValueChange:function(Ve){Ne(Ve,!0)},value:be[0],onSelect:ne,values:be,cellRender:ae,hoverRangeValue:J,hoverValue:C}))))}var sq=m.memo(m.forwardRef(j6t));function U6t(e){var n=e.picker,r=e.multiplePanel,i=e.pickerValue,o=e.onPickerValueChange,a=e.needConfirm,s=e.onSubmit,l=e.range,c=e.hoverValue,u=m.useContext(Sg),d=u.prefixCls,f=u.generateConfig,p=m.useCallback(function(S,b){return l2(f,n,S,b)},[f,n]),h=m.useMemo(function(){return p(i,1)},[i,p]),g=function(b){o(p(b,-1))},v={onCellDblClick:function(){a&&s()}},y=n==="time",_=ee(ee({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:y});return l?_.hoverRangeValue=c:_.hoverValue=c,r?m.createElement("div",{className:"".concat(d,"-panels")},m.createElement(u0.Provider,{value:ee(ee({},v),{},{hideNext:!0})},m.createElement(sq,_)),m.createElement(u0.Provider,{value:ee(ee({},v),{},{hidePrev:!0})},m.createElement(sq,ft({},_,{pickerValue:h,onPickerValueChange:g})))):m.createElement(u0.Provider,{value:ee({},v)},m.createElement(sq,_))}function fCe(e){return typeof e=="function"?e():e}function H6t(e){var n=e.prefixCls,r=e.presets,i=e.onClick,o=e.onHover;return r.length?m.createElement("div",{className:"".concat(n,"-presets")},m.createElement("ul",null,r.map(function(a,s){var l=a.label,c=a.value;return m.createElement("li",{key:s,onClick:function(){i(fCe(c))},onMouseEnter:function(){o(fCe(c))},onMouseLeave:function(){o(null)}},l)}))):null}function BHe(e){var n=e.panelRender,r=e.internalMode,i=e.picker,o=e.showNow,a=e.range,s=e.multiple,l=e.activeOffset,c=l===void 0?0:l,u=e.placement,d=e.presets,f=e.onPresetHover,p=e.onPresetSubmit,h=e.onFocus,g=e.onBlur,v=e.onPanelMouseDown,y=e.direction,_=e.value,S=e.onSelect,b=e.isInvalid,E=e.defaultOpenValue,w=e.onOk,C=e.onSubmit,x=m.useContext(Sg),T=x.prefixCls,R="".concat(T,"-panel"),O=y==="rtl",M=m.useRef(null),P=m.useRef(null),k=m.useState(0),$=ke(k,2),U=$[0],z=$[1],D=m.useState(0),B=ke(D,2),Y=B[0],q=B[1],K=function(we){we.offsetWidth&&z(we.offsetWidth)};m.useEffect(function(){if(a){var be,we=((be=M.current)===null||be===void 0?void 0:be.offsetWidth)||0,De=U-we;c<=De?q(0):q(c+we-U)}},[U,c,a]);function H(be){return be.filter(function(we){return we})}var G=m.useMemo(function(){return H(rw(_))},[_]),Q=i==="time"&&!G.length,le=m.useMemo(function(){return Q?H([E]):G},[Q,G,E]),Z=Q?E:G,j=m.useMemo(function(){return le.length?le.some(function(be){return b(be)}):!0},[le,b]),F=function(){Q&&S(E),w(),C()},te=m.createElement("div",{className:"".concat(T,"-panel-layout")},m.createElement(H6t,{prefixCls:T,presets:d,onClick:p,onHover:f}),m.createElement("div",null,m.createElement(U6t,ft({},e,{value:Z})),m.createElement(O6t,ft({},e,{showNow:s?!1:o,invalid:j,onSubmit:F}))));n&&(te=n(te));var oe="".concat(R,"-container"),de="marginLeft",pe="marginRight",me=m.createElement("div",{onMouseDown:v,tabIndex:-1,className:Ce(oe,"".concat(T,"-").concat(r,"-panel-container")),style:fe(fe({},O?pe:de,Y),O?de:pe,"auto"),onFocus:h,onBlur:g},te);if(a){var ve=cU(u,O),he=dHe(ve,O);me=m.createElement("div",{onMouseDown:v,ref:P,className:Ce("".concat(T,"-range-wrapper"),"".concat(T,"-").concat(i,"-range-wrapper"))},m.createElement("div",{ref:M,className:"".concat(T,"-range-arrow"),style:fe({},he,c)}),m.createElement(Hc,{onResize:K},me))}return me}function jHe(e,n){var r=e.format,i=e.maskFormat,o=e.generateConfig,a=e.locale,s=e.preserveInvalidOnBlur,l=e.inputReadOnly,c=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,p=e.onBlur,h=e.onInputChange,g=e.onInvalid,v=e.open,y=e.onOpenChange,_=e.onKeyDown,S=e.onChange,b=e.activeHelp,E=e.name,w=e.autoComplete,C=e.id,x=e.value,T=e.invalid,R=e.placeholder,O=e.disabled,M=e.activeIndex,P=e.allHelp,k=e.picker,$=function(H,G){var Q=o.locale.parse(a.locale,H,[G]);return Q&&o.isValidate(Q)?Q:null},U=r[0],z=m.useCallback(function(K){return wl(K,{locale:a,format:U,generateConfig:o})},[a,o,U]),D=m.useMemo(function(){return x.map(z)},[x,z]),B=m.useMemo(function(){var K=k==="time"?8:10,H=typeof U=="function"?U(o.getNow()).length:U.length;return Math.max(K,H)+2},[U,k,o]),Y=function(H){for(var G=0;G<r.length;G+=1){var Q=r[G];if(typeof Q=="string"){var le=$(H,Q);if(le)return le}}return!1},q=function(H){function G(Z){return H!==void 0?Z[H]:Z}var Q=Va(e,{aria:!0,data:!0}),le=ee(ee({},Q),{},{format:i,validateFormat:function(j){return!!Y(j)},preserveInvalidOnBlur:s,readOnly:l,required:c,"aria-required":u,name:E,autoComplete:w,size:B,id:G(C),value:G(D)||"",invalid:G(T),placeholder:G(R),active:M===H,helped:P||b&&M===H,disabled:G(O),onFocus:function(j){f(j,H)},onBlur:function(j){p(j,H)},onSubmit:d,onChange:function(j){h();var F=Y(j);if(F){g(!1,H),S(F,H);return}g(!!j,H)},onHelp:function(){y(!0,{index:H})},onKeyDown:function(j){var F=!1;if(_==null||_(j,function(){F=!0}),!j.defaultPrevented&&!F)switch(j.key){case"Escape":y(!1,{index:H});break;case"Enter":v||y(!0);break}}},n==null?void 0:n({valueTexts:D}));return Object.keys(le).forEach(function(Z){le[Z]===void 0&&delete le[Z]}),le};return[q,z]}var z6t=["onMouseEnter","onMouseLeave"];function UHe(e){return m.useMemo(function(){return uU(e,z6t)},[e])}var V6t=["icon","type"],G6t=["onClear"];function hU(e){var n=e.icon,r=e.type,i=Xt(e,V6t),o=m.useContext(Sg),a=o.prefixCls;return n?m.createElement("span",ft({className:"".concat(a,"-").concat(r)},i),n):null}function mie(e){var n=e.onClear,r=Xt(e,G6t);return m.createElement(hU,ft({},r,{type:"clear",role:"button",onMouseDown:function(o){o.preventDefault()},onClick:function(o){o.stopPropagation(),n()}}))}var lq=["YYYY","MM","DD","HH","mm","ss","SSS"],pCe="顧",W6t=function(){function e(n){Ki(this,e),fe(this,"format",void 0),fe(this,"maskFormat",void 0),fe(this,"cells",void 0),fe(this,"maskCells",void 0),this.format=n;var r=lq.map(function(l){return"(".concat(l,")")}).join("|"),i=new RegExp(r,"g");this.maskFormat=n.replace(i,function(l){return pCe.repeat(l.length)});var o=new RegExp("(".concat(lq.join("|"),")")),a=(n.split(o)||[]).filter(function(l){return l}),s=0;this.cells=a.map(function(l){var c=lq.includes(l),u=s,d=s+l.length;return s=d,{text:l,mask:c,start:u,end:d}}),this.maskCells=this.cells.filter(function(l){return l.mask})}return Xi(e,[{key:"getSelection",value:function(r){var i=this.maskCells[r]||{},o=i.start,a=i.end;return[o||0,a||0]}},{key:"match",value:function(r){for(var i=0;i<this.maskFormat.length;i+=1){var o=this.maskFormat[i],a=r[i];if(!a||o!==pCe&&o!==a)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(r){for(var i=Number.MAX_SAFE_INTEGER,o=0,a=0;a<this.maskCells.length;a+=1){var s=this.maskCells[a],l=s.start,c=s.end;if(r>=l&&r<=c)return a;var u=Math.min(Math.abs(r-l),Math.abs(r-c));u<i&&(i=u,o=a)}return o}}]),e}();function Y6t(e){var n={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 n[e]}var q6t=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],vie=m.forwardRef(function(e,n){var r=e.active,i=e.showActiveCls,o=i===void 0?!0:i,a=e.suffixIcon,s=e.format,l=e.validateFormat,c=e.onChange;e.onInput;var u=e.helped,d=e.onHelp,f=e.onSubmit,p=e.onKeyDown,h=e.preserveInvalidOnBlur,g=h===void 0?!1:h,v=e.invalid,y=e.clearIcon,_=Xt(e,q6t),S=e.value,b=e.onFocus,E=e.onBlur,w=e.onMouseUp,C=m.useContext(Sg),x=C.prefixCls,T=C.input,R=T===void 0?"input":T,O="".concat(x,"-input"),M=m.useState(!1),P=ke(M,2),k=P[0],$=P[1],U=m.useState(S),z=ke(U,2),D=z[0],B=z[1],Y=m.useState(""),q=ke(Y,2),K=q[0],H=q[1],G=m.useState(null),Q=ke(G,2),le=Q[0],Z=Q[1],j=m.useState(null),F=ke(j,2),te=F[0],oe=F[1],de=D||"";m.useEffect(function(){B(S)},[S]);var pe=m.useRef(),me=m.useRef();m.useImperativeHandle(n,function(){return{nativeElement:pe.current,inputElement:me.current,focus:function(ge){me.current.focus(ge)},blur:function(){me.current.blur()}}});var ve=m.useMemo(function(){return new W6t(s||"")},[s]),he=m.useMemo(function(){return u?[0,0]:ve.getSelection(le)},[ve,le,u]),be=ke(he,2),we=be[0],De=be[1],Ae=function(ge){ge&&ge!==s&&ge!==S&&d()},Ee=Sr(function($e){l($e)&&c($e),B($e),Ae($e)}),Re=function(ge){if(!s){var Ve=ge.target.value;Ae(Ve),B(Ve),c(Ve)}},Te=function(ge){var Ve=ge.clipboardData.getData("text");l(Ve)&&Ee(Ve)},Oe=m.useRef(!1),Ne=function(){Oe.current=!0},je=function(ge){var Ve=ge.target,st=Ve.selectionStart,Je=ve.getMaskCellIndex(st);Z(Je),oe({}),w==null||w(ge),Oe.current=!1},ne=function(ge){$(!0),Z(0),H(""),b(ge)},J=function(ge){E(ge)},ae=function(ge){$(!1),J(ge)};hde(r,function(){!r&&!g&&B(S)});var Se=function(ge){ge.key==="Enter"&&l(de)&&f(),p==null||p(ge)},xe=function(ge){Se(ge);var Ve=ge.key,st=null,Je=null,ot=De-we,Xe=s.slice(we,De),Ze=function(Ct){Z(function(It){var Wt=It+Ct;return Wt=Math.max(Wt,0),Wt=Math.min(Wt,ve.size()-1),Wt})},bt=function(Ct){var It=Y6t(Xe),Wt=ke(It,3),Bt=Wt[0],Vt=Wt[1],rn=Wt[2],tt=de.slice(we,De),it=Number(tt);if(isNaN(it))return String(rn||(Ct>0?Bt:Vt));var nt=it+Ct,vt=Vt-Bt+1;return String(Bt+(vt+nt-Bt)%vt)};switch(Ve){case"Backspace":case"Delete":st="",Je=Xe;break;case"ArrowLeft":st="",Ze(-1);break;case"ArrowRight":st="",Ze(1);break;case"ArrowUp":st="",Je=bt(1);break;case"ArrowDown":st="",Je=bt(-1);break;default:isNaN(Number(Ve))||(st=K+Ve,Je=st);break}if(st!==null&&(H(st),st.length>=ot&&(Ze(1),H(""))),Je!==null){var at=de.slice(0,we)+ude(Je,ot)+de.slice(De);Ee(at.slice(0,s.length))}oe({})},ue=m.useRef();ti(function(){if(!(!k||!s||Oe.current)){if(!ve.match(de)){Ee(s);return}return me.current.setSelectionRange(we,De),ue.current=Dr(function(){me.current.setSelectionRange(we,De)}),function(){Dr.cancel(ue.current)}}},[ve,s,k,de,le,we,De,te,Ee]);var Me=s?{onFocus:ne,onBlur:ae,onKeyDown:xe,onMouseDown:Ne,onMouseUp:je,onPaste:Te}:{};return m.createElement("div",{ref:pe,className:Ce(O,fe(fe({},"".concat(O,"-active"),r&&o),"".concat(O,"-placeholder"),u))},m.createElement(R,ft({ref:me,"aria-invalid":v,autoComplete:"off"},_,{onKeyDown:Se,onBlur:J},Me,{value:de,onChange:Re})),m.createElement(hU,{type:"suffix",icon:a}),y)}),K6t=["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"],X6t=["index"],Q6t=["insetInlineStart","insetInlineEnd"];function Z6t(e,n){var r=e.id,i=e.prefix,o=e.clearIcon,a=e.suffixIcon,s=e.separator,l=s===void 0?"~":s,c=e.activeIndex;e.activeHelp,e.allHelp;var u=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var d=e.placeholder,f=e.className,p=e.style,h=e.onClick,g=e.onClear,v=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var y=e.disabled,_=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var b=e.onActiveOffset,E=e.placement,w=e.onMouseDown;e.required,e["aria-required"];var C=e.autoFocus,x=e.tabIndex,T=Xt(e,K6t),R=S==="rtl",O=m.useContext(Sg),M=O.prefixCls,P=m.useMemo(function(){if(typeof r=="string")return[r];var me=r||{};return[me.start,me.end]},[r]),k=m.useRef(),$=m.useRef(),U=m.useRef(),z=function(ve){var he;return(he=[$,U][ve])===null||he===void 0?void 0:he.current};m.useImperativeHandle(n,function(){return{nativeElement:k.current,focus:function(ve){if(cn(ve)==="object"){var he,be=ve||{},we=be.index,De=we===void 0?0:we,Ae=Xt(be,X6t);(he=z(De))===null||he===void 0||he.focus(Ae)}else{var Ee;(Ee=z(ve??0))===null||Ee===void 0||Ee.focus()}},blur:function(){var ve,he;(ve=z(0))===null||ve===void 0||ve.blur(),(he=z(1))===null||he===void 0||he.blur()}}});var D=UHe(T),B=m.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),Y=jHe(ee(ee({},e),{},{id:P,placeholder:B})),q=ke(Y,1),K=q[0],H=cU(E,R),G=dHe(H,R),Q=H==null?void 0:H.toLowerCase().endsWith("right"),le=m.useState({position:"absolute",width:0}),Z=ke(le,2),j=Z[0],F=Z[1],te=Sr(function(){var me=z(c);if(me){var ve=me.nativeElement,he=ve.offsetWidth,be=ve.offsetLeft,we=ve.offsetParent,De=(we==null?void 0:we.offsetWidth)||0,Ae=Q?De-he-be:be;F(function(Ee){Ee.insetInlineStart,Ee.insetInlineEnd;var Re=Xt(Ee,Q6t);return ee(ee({},Re),{},fe({width:he},G,Ae))}),b(Ae)}});m.useEffect(function(){te()},[c]);var oe=o&&(v[0]&&!y[0]||v[1]&&!y[1]),de=C&&!y[0],pe=C&&!de&&!y[1];return m.createElement(Hc,{onResize:te},m.createElement("div",ft({},D,{className:Ce(M,"".concat(M,"-range"),fe(fe(fe(fe({},"".concat(M,"-focused"),u),"".concat(M,"-disabled"),y.every(function(me){return me})),"".concat(M,"-invalid"),_.some(function(me){return me})),"".concat(M,"-rtl"),R),f),style:p,ref:k,onClick:h,onMouseDown:function(ve){var he=ve.target;he!==$.current.inputElement&&he!==U.current.inputElement&&ve.preventDefault(),w==null||w(ve)}}),i&&m.createElement("div",{className:"".concat(M,"-prefix")},i),m.createElement(vie,ft({ref:$},K(0),{autoFocus:de,tabIndex:x,"date-range":"start"})),m.createElement("div",{className:"".concat(M,"-range-separator")},l),m.createElement(vie,ft({ref:U},K(1),{autoFocus:pe,tabIndex:x,"date-range":"end"})),m.createElement("div",{className:"".concat(M,"-active-bar"),style:j}),m.createElement(hU,{type:"suffix",icon:a}),oe&&m.createElement(mie,{icon:o,onClear:g})))}var J6t=m.forwardRef(Z6t);function hCe(e,n){var r=e??n;return Array.isArray(r)?r:[r,r]}function Z3(e){return e===1?"end":"start"}function eFt(e,n){var r=xHe(e,function(){var Er=e.disabled,nr=e.allowEmpty,lr=hCe(Er,!1),Kr=hCe(nr,!1);return{disabled:lr,allowEmpty:Kr}}),i=ke(r,6),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],d=o.prefixCls,f=o.styles,p=o.classNames,h=o.placement,g=o.defaultValue,v=o.value,y=o.needConfirm,_=o.onKeyDown,S=o.disabled,b=o.allowEmpty,E=o.disabledDate,w=o.minDate,C=o.maxDate,x=o.defaultOpen,T=o.open,R=o.onOpenChange,O=o.locale,M=o.generateConfig,P=o.picker,k=o.showNow,$=o.showToday,U=o.showTime,z=o.mode,D=o.onPanelChange,B=o.onCalendarChange,Y=o.onOk,q=o.defaultPickerValue,K=o.pickerValue,H=o.onPickerValueChange,G=o.inputReadOnly,Q=o.suffixIcon,le=o.onFocus,Z=o.onBlur,j=o.presets,F=o.ranges,te=o.components,oe=o.cellRender,de=o.dateRender,pe=o.monthCellRender,me=o.onClick,ve=OHe(n),he=THe(T,x,S,R),be=ke(he,2),we=be[0],De=be[1],Ae=function(nr,lr){(S.some(function(Kr){return!Kr})||!nr)&&De(nr,lr)},Ee=DHe(M,O,l,!0,!1,g,v,B,Y),Re=ke(Ee,5),Te=Re[0],Oe=Re[1],Ne=Re[2],je=Re[3],ne=Re[4],J=Ne(),ae=IHe(S,b,we),Se=ke(ae,9),xe=Se[0],ue=Se[1],Me=Se[2],$e=Se[3],ge=Se[4],Ve=Se[5],st=Se[6],Je=Se[7],ot=Se[8],Xe=function(nr,lr){ue(!0),le==null||le(nr,{range:Z3(lr??$e)})},Ze=function(nr,lr){ue(!1),Z==null||Z(nr,{range:Z3(lr??$e)})},bt=m.useMemo(function(){if(!U)return null;var Er=U.disabledTime,nr=Er?function(lr){var Kr=Z3($e),Pi=hHe(J,st,$e);return Er(lr,Kr,{from:Pi})}:void 0;return ee(ee({},U),{},{disabledTime:nr})},[U,$e,J,st]),at=dr([P,P],{value:z}),pt=ke(at,2),Ct=pt[0],It=pt[1],Wt=Ct[$e]||P,Bt=Wt==="date"&&bt?"datetime":Wt,Vt=Bt===P&&Bt!=="time",rn=LHe(P,Wt,k,$,!0),tt=kHe(o,Te,Oe,Ne,je,S,l,xe,we,u),it=ke(tt,2),nt=it[0],vt=it[1],kt=C6t(J,S,st,M,O,E),Dt=mHe(J,u,b),Kt=ke(Dt,2),Ht=Kt[0],tn=Kt[1],on=NHe(M,O,J,Ct,we,$e,a,Vt,q,K,bt==null?void 0:bt.defaultOpenValue,H,w,C),sn=ke(on,2),Jt=sn[0],En=sn[1],Pt=Sr(function(Er,nr,lr){var Kr=J2(Ct,$e,nr);if((Kr[0]!==Ct[0]||Kr[1]!==Ct[1])&&It(Kr),D&&lr!==!1){var Pi=Tt(J);Er&&(Pi[$e]=Er),D(Pi,Kr)}}),Qt=function(nr,lr){return J2(J,lr,nr)},ln=function(nr,lr){var Kr=J;nr&&(Kr=Qt(nr,$e)),Je($e);var Pi=Ve(Kr);je(Kr),nt($e,Pi===null),Pi===null?Ae(!1,{force:!0}):lr||ve.current.focus({index:Pi})},jt=function(nr){var lr,Kr=nr.target.getRootNode();if(!ve.current.nativeElement.contains((lr=Kr.activeElement)!==null&&lr!==void 0?lr:document.activeElement)){var Pi=S.findIndex(function(Dl){return!Dl});Pi>=0&&ve.current.focus({index:Pi})}Ae(!0),me==null||me(nr)},Lt=function(){vt(null),Ae(!1,{force:!0})},en=m.useState(null),Ue=ke(en,2),Zt=Ue[0],Et=Ue[1],Gt=m.useState(null),zt=ke(Gt,2),Vn=zt[0],sr=zt[1],A=m.useMemo(function(){return Vn||J},[J,Vn]);m.useEffect(function(){we||sr(null)},[we]);var W=m.useState(0),ce=ke(W,2),Pe=ce[0],qe=ce[1],gt=RHe(j,F),Yt=function(nr){sr(nr),Et("preset")},Nn=function(nr){var lr=vt(nr);lr&&Ae(!1,{force:!0})},Jn=function(nr){ln(nr)},Ci=function(nr){sr(nr?Qt(nr,$e):null),Et("cell")},wi=function(nr){Ae(!0),Xe(nr)},to=function(){Me("panel")},Vr=function(nr){var lr=J2(J,$e,nr);je(lr),!y&&!s&&a===Bt&&ln(nr)},wn=function(){Ae(!1)},Bn=dde(oe,de,pe,Z3($e)),ni=J[$e]||null,yn=Sr(function(Er){return u(Er,{activeIndex:$e})}),Sn=m.useMemo(function(){var Er=Va(o,!1),nr=Wr(o,[].concat(Tt(Object.keys(Er)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return nr},[o]),ur=m.createElement(BHe,ft({},Sn,{showNow:rn,showTime:bt,range:!0,multiplePanel:Vt,activeOffset:Pe,placement:h,disabledDate:kt,onFocus:wi,onBlur:Ze,onPanelMouseDown:to,picker:P,mode:Wt,internalMode:Bt,onPanelChange:Pt,format:c,value:ni,isInvalid:yn,onChange:null,onSelect:Vr,pickerValue:Jt,defaultOpenValue:rw(U==null?void 0:U.defaultOpenValue)[$e],onPickerValueChange:En,hoverValue:A,onHover:Ci,needConfirm:y,onSubmit:ln,onOk:ne,presets:gt,onPresetHover:Yt,onPresetSubmit:Nn,onNow:Jn,cellRender:Bn})),qr=function(nr,lr){var Kr=Qt(nr,lr);je(Kr)},zi=function(){Me("input")},Qo=function(nr,lr){var Kr=st.length,Pi=st[Kr-1];if(Kr&&Pi!==lr&&y&&!b[Pi]&&!ot(Pi)&&J[Pi]){ve.current.focus({index:Pi});return}Me("input"),Ae(!0,{inherit:!0}),$e!==lr&&we&&!y&&s&&ln(null,!0),ge(lr),Xe(nr,lr)},gr=function(nr,lr){if(Ae(!1),!y&&Me()==="input"){var Kr=Ve(J);nt($e,Kr===null)}Ze(nr,lr)},Oo=function(nr,lr){nr.key==="Tab"&&ln(null,!0),_==null||_(nr,lr)},Pa=m.useMemo(function(){return{prefixCls:d,locale:O,generateConfig:M,button:te.button,input:te.input}},[d,O,M,te.button,te.input]);return ti(function(){we&&$e!==void 0&&Pt(null,P,!1)},[we,$e,P]),ti(function(){var Er=Me();!we&&Er==="input"&&(Ae(!1),ln(null,!0)),!we&&s&&!y&&Er==="panel"&&(Ae(!0),ln())},[we]),m.createElement(Sg.Provider,{value:Pa},m.createElement(fHe,ft({},gHe(o),{popupElement:ur,popupStyle:f.popup,popupClassName:p.popup,visible:we,onClose:wn,range:!0}),m.createElement(J6t,ft({},o,{ref:ve,suffixIcon:Q,activeIndex:xe||we?$e:null,activeHelp:!!Vn,allHelp:!!Vn&&Zt==="preset",focused:xe,onFocus:Qo,onBlur:gr,onKeyDown:Oo,onSubmit:ln,value:A,maskFormat:c,onChange:qr,onInputChange:zi,format:l,inputReadOnly:G,disabled:S,open:we,onOpenChange:Ae,onClick:jt,onClear:Lt,invalid:Ht,onInvalid:tn,onActiveOffset:qe}))))}var tFt=m.forwardRef(eFt);function nFt(e){var n=e.prefixCls,r=e.value,i=e.onRemove,o=e.removeIcon,a=o===void 0?"×":o,s=e.formatDate,l=e.disabled,c=e.maxTagCount,u=e.placeholder,d="".concat(n,"-selector"),f="".concat(n,"-selection"),p="".concat(f,"-overflow");function h(y,_){return m.createElement("span",{className:Ce("".concat(f,"-item")),title:typeof y=="string"?y:null},m.createElement("span",{className:"".concat(f,"-item-content")},y),!l&&_&&m.createElement("span",{onMouseDown:function(b){b.preventDefault()},onClick:_,className:"".concat(f,"-item-remove")},a))}function g(y){var _=s(y),S=function(E){E&&E.stopPropagation(),i(y)};return h(_,S)}function v(y){var _="+ ".concat(y.length," ...");return h(_)}return m.createElement("div",{className:d},m.createElement(Vh,{prefixCls:p,data:r,renderItem:g,renderRest:v,itemKey:function(_){return s(_)},maxCount:c}),!r.length&&m.createElement("span",{className:"".concat(n,"-selection-placeholder")},u))}var rFt=["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 iFt(e,n){e.id;var r=e.open,i=e.prefix,o=e.clearIcon,a=e.suffixIcon;e.activeHelp,e.allHelp;var s=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var l=e.locale,c=e.generateConfig,u=e.placeholder,d=e.className,f=e.style,p=e.onClick,h=e.onClear,g=e.internalPicker,v=e.value,y=e.onChange,_=e.onSubmit;e.onInputChange;var S=e.multiple,b=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var E=e.disabled,w=e.invalid;e.inputReadOnly;var C=e.direction;e.onOpenChange;var x=e.onMouseDown;e.required,e["aria-required"];var T=e.autoFocus,R=e.tabIndex,O=e.removeIcon,M=Xt(e,rFt),P=C==="rtl",k=m.useContext(Sg),$=k.prefixCls,U=m.useRef(),z=m.useRef();m.useImperativeHandle(n,function(){return{nativeElement:U.current,focus:function(j){var F;(F=z.current)===null||F===void 0||F.focus(j)},blur:function(){var j;(j=z.current)===null||j===void 0||j.blur()}}});var D=UHe(M),B=function(j){y([j])},Y=function(j){var F=v.filter(function(te){return te&&!Bc(c,l,te,j,g)});y(F),r||_()},q=jHe(ee(ee({},e),{},{onChange:B}),function(Z){var j=Z.valueTexts;return{value:j[0]||"",active:s}}),K=ke(q,2),H=K[0],G=K[1],Q=!!(o&&v.length&&!E),le=S?m.createElement(m.Fragment,null,m.createElement(nFt,{prefixCls:$,value:v,onRemove:Y,formatDate:G,maxTagCount:b,disabled:E,removeIcon:O,placeholder:u}),m.createElement("input",{className:"".concat($,"-multiple-input"),value:v.map(G).join(","),ref:z,readOnly:!0,autoFocus:T,tabIndex:R}),m.createElement(hU,{type:"suffix",icon:a}),Q&&m.createElement(mie,{icon:o,onClear:h})):m.createElement(vie,ft({ref:z},H(),{autoFocus:T,tabIndex:R,suffixIcon:a,clearIcon:Q&&m.createElement(mie,{icon:o,onClear:h}),showActiveCls:!1}));return m.createElement("div",ft({},D,{className:Ce($,fe(fe(fe(fe(fe({},"".concat($,"-multiple"),S),"".concat($,"-focused"),s),"".concat($,"-disabled"),E),"".concat($,"-invalid"),w),"".concat($,"-rtl"),P),d),style:f,ref:U,onClick:p,onMouseDown:function(j){var F,te=j.target;te!==((F=z.current)===null||F===void 0?void 0:F.inputElement)&&j.preventDefault(),x==null||x(j)}}),i&&m.createElement("div",{className:"".concat($,"-prefix")},i),le)}var oFt=m.forwardRef(iFt);function aFt(e,n){var r=xHe(e),i=ke(r,6),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],d=o,f=d.prefixCls,p=d.styles,h=d.classNames,g=d.order,v=d.defaultValue,y=d.value,_=d.needConfirm,S=d.onChange,b=d.onKeyDown,E=d.disabled,w=d.disabledDate,C=d.minDate,x=d.maxDate,T=d.defaultOpen,R=d.open,O=d.onOpenChange,M=d.locale,P=d.generateConfig,k=d.picker,$=d.showNow,U=d.showToday,z=d.showTime,D=d.mode,B=d.onPanelChange,Y=d.onCalendarChange,q=d.onOk,K=d.multiple,H=d.defaultPickerValue,G=d.pickerValue,Q=d.onPickerValueChange,le=d.inputReadOnly,Z=d.suffixIcon,j=d.removeIcon,F=d.onFocus,te=d.onBlur,oe=d.presets,de=d.components,pe=d.cellRender,me=d.dateRender,ve=d.monthCellRender,he=d.onClick,be=OHe(n);function we(yn){return yn===null?null:K?yn:yn[0]}var De=$He(P,M,a),Ae=THe(R,T,[E],O),Ee=ke(Ae,2),Re=Ee[0],Te=Ee[1],Oe=function(Sn,ur,qr){if(Y){var zi=ee({},qr);delete zi.range,Y(we(Sn),we(ur),zi)}},Ne=function(Sn){q==null||q(we(Sn))},je=DHe(P,M,l,!1,g,v,y,Oe,Ne),ne=ke(je,5),J=ne[0],ae=ne[1],Se=ne[2],xe=ne[3],ue=ne[4],Me=Se(),$e=IHe([E]),ge=ke($e,4),Ve=ge[0],st=ge[1],Je=ge[2],ot=ge[3],Xe=function(Sn){st(!0),F==null||F(Sn,{})},Ze=function(Sn){st(!1),te==null||te(Sn,{})},bt=dr(k,{value:D}),at=ke(bt,2),pt=at[0],Ct=at[1],It=pt==="date"&&z?"datetime":pt,Wt=LHe(k,pt,$,U),Bt=S&&function(yn,Sn){S(we(yn),we(Sn))},Vt=kHe(ee(ee({},o),{},{onChange:Bt}),J,ae,Se,xe,[],l,Ve,Re,u),rn=ke(Vt,2),tt=rn[1],it=mHe(Me,u),nt=ke(it,2),vt=nt[0],kt=nt[1],Dt=m.useMemo(function(){return vt.some(function(yn){return yn})},[vt]),Kt=function(Sn,ur){if(Q){var qr=ee(ee({},ur),{},{mode:ur.mode[0]});delete qr.range,Q(Sn[0],qr)}},Ht=NHe(P,M,Me,[pt],Re,ot,a,!1,H,G,rw(z==null?void 0:z.defaultOpenValue),Kt,C,x),tn=ke(Ht,2),on=tn[0],sn=tn[1],Jt=Sr(function(yn,Sn,ur){if(Ct(Sn),B&&ur!==!1){var qr=yn||Me[Me.length-1];B(qr,Sn)}}),En=function(){tt(Se()),Te(!1,{force:!0})},Pt=function(Sn){!E&&!be.current.nativeElement.contains(document.activeElement)&&be.current.focus(),Te(!0),he==null||he(Sn)},Qt=function(){tt(null),Te(!1,{force:!0})},ln=m.useState(null),jt=ke(ln,2),Lt=jt[0],en=jt[1],Ue=m.useState(null),Zt=ke(Ue,2),Et=Zt[0],Gt=Zt[1],zt=m.useMemo(function(){var yn=[Et].concat(Tt(Me)).filter(function(Sn){return Sn});return K?yn:yn.slice(0,1)},[Me,Et,K]),Vn=m.useMemo(function(){return!K&&Et?[Et]:Me.filter(function(yn){return yn})},[Me,Et,K]);m.useEffect(function(){Re||Gt(null)},[Re]);var sr=RHe(oe),A=function(Sn){Gt(Sn),en("preset")},W=function(Sn){var ur=K?De(Se(),Sn):[Sn],qr=tt(ur);qr&&!K&&Te(!1,{force:!0})},ce=function(Sn){W(Sn)},Pe=function(Sn){Gt(Sn),en("cell")},qe=function(Sn){Te(!0),Xe(Sn)},gt=function(Sn){if(Je("panel"),!(K&&It!==k)){var ur=K?De(Se(),Sn):[Sn];xe(ur),!_&&!s&&a===It&&En()}},Yt=function(){Te(!1)},Nn=dde(pe,me,ve),Jn=m.useMemo(function(){var yn=Va(o,!1),Sn=Wr(o,[].concat(Tt(Object.keys(yn)),["onChange","onCalendarChange","style","className","onPanelChange"]));return ee(ee({},Sn),{},{multiple:o.multiple})},[o]),Ci=m.createElement(BHe,ft({},Jn,{showNow:Wt,showTime:z,disabledDate:w,onFocus:qe,onBlur:Ze,picker:k,mode:pt,internalMode:It,onPanelChange:Jt,format:c,value:Me,isInvalid:u,onChange:null,onSelect:gt,pickerValue:on,defaultOpenValue:z==null?void 0:z.defaultOpenValue,onPickerValueChange:sn,hoverValue:zt,onHover:Pe,needConfirm:_,onSubmit:En,onOk:ue,presets:sr,onPresetHover:A,onPresetSubmit:W,onNow:ce,cellRender:Nn})),wi=function(Sn){xe(Sn)},to=function(){Je("input")},Vr=function(Sn){Je("input"),Te(!0,{inherit:!0}),Xe(Sn)},wn=function(Sn){Te(!1),Ze(Sn)},Bn=function(Sn,ur){Sn.key==="Tab"&&En(),b==null||b(Sn,ur)},ni=m.useMemo(function(){return{prefixCls:f,locale:M,generateConfig:P,button:de.button,input:de.input}},[f,M,P,de.button,de.input]);return ti(function(){Re&&ot!==void 0&&Jt(null,k,!1)},[Re,ot,k]),ti(function(){var yn=Je();!Re&&yn==="input"&&(Te(!1),En()),!Re&&s&&!_&&yn==="panel"&&(Te(!0),En())},[Re]),m.createElement(Sg.Provider,{value:ni},m.createElement(fHe,ft({},gHe(o),{popupElement:Ci,popupStyle:p.popup,popupClassName:h.popup,visible:Re,onClose:Yt}),m.createElement(oFt,ft({},o,{ref:be,suffixIcon:Z,removeIcon:j,activeHelp:!!Et,allHelp:!!Et&&Lt==="preset",focused:Ve,onFocus:Vr,onBlur:wn,onKeyDown:Bn,onSubmit:En,value:Vn,maskFormat:c,onChange:wi,onInputChange:to,internalPicker:a,format:l,inputReadOnly:le,disabled:E,open:Re,onOpenChange:Te,onClick:Pt,onClear:Qt,invalid:Dt,onInvalid:function(Sn){kt(Sn,0)}}))))}var sFt=m.forwardRef(aFt);const HHe=m.createContext(null),lFt=HHe.Provider,zHe=m.createContext(null),cFt=zHe.Provider;var uFt=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],VHe=m.forwardRef(function(e,n){var r=e.prefixCls,i=r===void 0?"rc-checkbox":r,o=e.className,a=e.style,s=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,p=e.title,h=e.onChange,g=Xt(e,uFt),v=m.useRef(null),y=m.useRef(null),_=dr(u,{value:s}),S=ke(_,2),b=S[0],E=S[1];m.useImperativeHandle(n,function(){return{focus:function(T){var R;(R=v.current)===null||R===void 0||R.focus(T)},blur:function(){var T;(T=v.current)===null||T===void 0||T.blur()},input:v.current,nativeElement:y.current}});var w=Ce(i,o,fe(fe({},"".concat(i,"-checked"),b),"".concat(i,"-disabled"),l)),C=function(T){l||("checked"in e||E(T.target.checked),h==null||h({target:ee(ee({},e),{},{type:f,checked:T.target.checked}),stopPropagation:function(){T.stopPropagation()},preventDefault:function(){T.preventDefault()},nativeEvent:T.nativeEvent}))};return m.createElement("span",{className:w,title:p,style:a,ref:y},m.createElement("input",ft({},g,{className:"".concat(i,"-input"),ref:v,onChange:C,disabled:l,checked:!!b,type:f})),m.createElement("span",{className:"".concat(i,"-inner")}))});function GHe(e){const n=V.useRef(null),r=()=>{Dr.cancel(n.current),n.current=null};return[()=>{r(),n.current=Dr(()=>{n.current=null})},a=>{n.current&&(a.stopPropagation(),r()),e==null||e(a)}]}const dFt=e=>{const{componentCls:n,antCls:r}=e,i=`${n}-group`;return{[i]:Object.assign(Object.assign({},li(e)),{display:"inline-block",fontSize:0,[`&${i}-rtl`]:{direction:"rtl"},[`&${i}-block`]:{display:"flex"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},fFt=e=>{const{componentCls:n,wrapperMarginInlineEnd:r,colorPrimary:i,radioSize:o,motionDurationSlow:a,motionDurationMid:s,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:h,dotColorDisabled:g,lineType:v,radioColor:y,radioBgColor:_,calc:S}=e,b=`${n}-inner`,w=S(o).sub(S(4).mul(2)),C=S(1).mul(o).equal({unit:!0});return{[`${n}-wrapper`]:Object.assign(Object.assign({},li(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${n}-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"},[`${n}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Ye(d)} ${v} ${i}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[n]:Object.assign(Object.assign({},li(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${n}-wrapper:hover &,
&:hover ${b}`]:{borderColor:i},[`${n}-input:focus-visible + ${b}`]:Object.assign({},Qy(e)),[`${n}:hover::after, ${n}-wrapper:hover &::after`]:{visibility:"visible"},[`${n}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:S(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:S(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:y,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${a} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${s}`},[`${n}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${n}-checked`]:{[b]:{borderColor:i,backgroundColor:_,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${l}`}}},[`${n}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${n}-input`]:{cursor:"not-allowed"},[`${n}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${n}-checked`]:{[b]:{"&::after":{transform:`scale(${S(w).div(o).equal()})`}}}},[`span${n} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},pFt=e=>{const{buttonColor:n,controlHeight:r,componentCls:i,lineWidth:o,lineType:a,colorBorder:s,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:p,controlHeightLG:h,controlHeightSM:g,paddingXS:v,borderRadius:y,borderRadiusSM:_,borderRadiusLG:S,buttonCheckedBg:b,buttonSolidCheckedColor:E,colorTextDisabled:w,colorBgContainerDisabled:C,buttonCheckedBgDisabled:x,buttonCheckedColorDisabled:T,colorPrimary:R,colorPrimaryHover:O,colorPrimaryActive:M,buttonSolidCheckedBg:P,buttonSolidCheckedHoverBg:k,buttonSolidCheckedActiveBg:$,calc:U}=e;return{[`${i}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:u,paddingBlock:0,color:n,fontSize:d,lineHeight:Ye(U(r).sub(U(o).mul(2)).equal()),background:f,border:`${Ye(o)} ${a} ${s}`,borderBlockStartWidth:U(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:n},[`> ${i}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:U(o).mul(-1).equal(),insetInlineStart:U(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:s,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${Ye(o)} ${a} ${s}`,borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y},"&:first-child:last-child":{borderRadius:y},[`${i}-group-large &`]:{height:h,fontSize:p,lineHeight:Ye(U(h).sub(U(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},[`${i}-group-small &`]:{height:g,paddingInline:U(v).sub(o).equal(),paddingBlock:0,lineHeight:Ye(U(g).sub(U(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},"&:hover":{position:"relative",color:R},"&:has(:focus-visible)":Object.assign({},Qy(e)),[`${i}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${i}-button-wrapper-disabled)`]:{zIndex:1,color:R,background:b,borderColor:R,"&::before":{backgroundColor:R},"&:first-child":{borderColor:R},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${i}-group-solid &-checked:not(${i}-button-wrapper-disabled)`]:{color:E,background:P,borderColor:P,"&:hover":{color:E,background:k,borderColor:k},"&:active":{color:E,background:$,borderColor:$}},"&-disabled":{color:w,backgroundColor:C,borderColor:s,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:C,borderColor:s}},[`&-disabled${i}-button-wrapper-checked`]:{color:T,backgroundColor:x,borderColor:s,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},hFt=e=>{const{wireframe:n,padding:r,marginXS:i,lineWidth:o,fontSizeLG:a,colorText:s,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:p,colorPrimaryActive:h,colorWhite:g}=e,v=4,y=a,_=n?y-v*2:y-(v+o)*2;return{radioSize:y,dotSize:_,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:h,buttonBg:l,buttonCheckedBg:l,buttonColor:s,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:r-o,wrapperMarginInlineEnd:i,radioColor:n?f:g,radioBgColor:n?l:f}},WHe=Yr("Radio",e=>{const{controlOutline:n,controlOutlineWidth:r}=e,i=`0 0 0 ${Ye(r)} ${n}`,a=wr(e,{radioFocusShadow:i,radioButtonFocusShadow:i});return[dFt(a),fFt(a),pFt(a)]},hFt,{unitless:{radioSize:!0,dotSize:!0}});var gFt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const mFt=(e,n)=>{var r,i;const o=m.useContext(HHe),a=m.useContext(zHe),{getPrefixCls:s,direction:l,radio:c}=m.useContext(Cn),u=m.useRef(null),d=Il(n,u),{isFormItemInput:f}=m.useContext(qs),p=z=>{var D,B;(D=e.onChange)===null||D===void 0||D.call(e,z),(B=o==null?void 0:o.onChange)===null||B===void 0||B.call(o,z)},{prefixCls:h,className:g,rootClassName:v,children:y,style:_,title:S}=e,b=gFt(e,["prefixCls","className","rootClassName","children","style","title"]),E=s("radio",h),w=((o==null?void 0:o.optionType)||a)==="button",C=w?`${E}-button`:E,x=po(E),[T,R,O]=WHe(E,x),M=Object.assign({},b),P=m.useContext(xs);o&&(M.name=o.name,M.onChange=p,M.checked=e.value===o.value,M.disabled=(r=M.disabled)!==null&&r!==void 0?r:o.disabled),M.disabled=(i=M.disabled)!==null&&i!==void 0?i:P;const k=Ce(`${C}-wrapper`,{[`${C}-wrapper-checked`]:M.checked,[`${C}-wrapper-disabled`]:M.disabled,[`${C}-wrapper-rtl`]:l==="rtl",[`${C}-wrapper-in-form-item`]:f,[`${C}-wrapper-block`]:!!(o!=null&&o.block)},c==null?void 0:c.className,g,v,R,O,x),[$,U]=GHe(M.onClick);return T(m.createElement($9,{component:"Radio",disabled:M.disabled},m.createElement("label",{className:k,style:Object.assign(Object.assign({},c==null?void 0:c.style),_),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:S,onClick:$},m.createElement(VHe,Object.assign({},M,{className:Ce(M.className,{[L9]:!w}),type:"radio",prefixCls:C,ref:d,onClick:U})),y!==void 0?m.createElement("span",null,y):null)))},G8=m.forwardRef(mFt),vFt=m.forwardRef((e,n)=>{const{getPrefixCls:r,direction:i}=m.useContext(Cn),o=K9(),{prefixCls:a,className:s,rootClassName:l,options:c,buttonStyle:u="outline",disabled:d,children:f,size:p,style:h,id:g,optionType:v,name:y=o,defaultValue:_,value:S,block:b=!1,onChange:E,onMouseEnter:w,onMouseLeave:C,onFocus:x,onBlur:T}=e,[R,O]=dr(_,{value:S}),M=m.useCallback(H=>{const G=R,Q=H.target.value;"value"in e||O(Q),Q!==G&&(E==null||E(H))},[R,O,E]),P=r("radio",a),k=`${P}-group`,$=po(P),[U,z,D]=WHe(P,$);let B=f;c&&c.length>0&&(B=c.map(H=>typeof H=="string"||typeof H=="number"?m.createElement(G8,{key:H.toString(),prefixCls:P,disabled:d,value:H,checked:R===H},H):m.createElement(G8,{key:`radio-group-value-options-${H.value}`,prefixCls:P,disabled:H.disabled||d,value:H.value,checked:R===H.value,title:H.title,style:H.style,id:H.id,required:H.required},H.label)));const Y=Xs(p),q=Ce(k,`${k}-${u}`,{[`${k}-${Y}`]:Y,[`${k}-rtl`]:i==="rtl",[`${k}-block`]:b},s,l,z,D,$),K=m.useMemo(()=>({onChange:M,value:R,disabled:d,name:y,optionType:v,block:b}),[M,R,d,y,v,b]);return U(m.createElement("div",Object.assign({},Va(e,{aria:!0,data:!0}),{className:q,style:h,onMouseEnter:w,onMouseLeave:C,onFocus:x,onBlur:T,id:g,ref:n}),m.createElement(lFt,{value:K},B)))}),yFt=m.memo(vFt);var _Ft=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const bFt=(e,n)=>{const{getPrefixCls:r}=m.useContext(Cn),{prefixCls:i}=e,o=_Ft(e,["prefixCls"]),a=r("radio",i);return m.createElement(cFt,{value:"button"},m.createElement(G8,Object.assign({prefixCls:a},o,{type:"radio",ref:n})))},SFt=m.forwardRef(bFt),ya=G8;ya.Button=SFt;ya.Group=yFt;ya.__ANT_RADIO=!0;function gU(e){return wr(e,{inputAffixPadding:e.paddingXXS})}const mU=e=>{const{controlHeight:n,fontSize:r,lineHeight:i,lineWidth:o,controlHeightSM:a,controlHeightLG:s,fontSizeLG:l,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:p,colorPrimaryHover:h,colorPrimary:g,controlOutlineWidth:v,controlOutline:y,colorErrorOutline:_,colorWarningOutline:S,colorBgContainer:b}=e;return{paddingBlock:Math.max(Math.round((n-r*i)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((a-r*i)/2*10)/10-o,0),paddingBlockLG:Math.ceil((s-l*c)/2*10)/10-o,paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:p,activeBorderColor:g,hoverBorderColor:h,activeShadow:`0 0 0 ${v}px ${y}`,errorActiveShadow:`0 0 0 ${v}px ${_}`,warningActiveShadow:`0 0 0 ${v}px ${S}`,hoverBg:b,activeBg:b,inputFontSize:r,inputFontSizeLG:l,inputFontSizeSM:r}},EFt=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),mde=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({},EFt(wr(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),YHe=(e,n)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:n.borderColor,"&:hover":{borderColor:n.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:n.activeBorderColor,boxShadow:n.activeShadow,outline:0,backgroundColor:e.activeBg}}),gCe=(e,n)=>({[`&${e.componentCls}-status-${n.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},YHe(e,n)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:n.affixColor}}),[`&${e.componentCls}-status-${n.status}${e.componentCls}-disabled`]:{borderColor:n.borderColor}}),vde=(e,n)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},YHe(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},mde(e))}),gCe(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),gCe(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),n)}),mCe=(e,n)=>({[`&${e.componentCls}-group-wrapper-status-${n.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:n.addonBorderColor,color:n.addonColor}}}),qHe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},mCe(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),mCe(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},mde(e))}})}),yde=(e,n)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},n)}},KHe=(e,n)=>({background:n.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:n==null?void 0:n.inputColor},"&:hover":{background:n.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:n.activeBorderColor,backgroundColor:e.activeBg}}),vCe=(e,n)=>({[`&${e.componentCls}-status-${n.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},KHe(e,n)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:n.affixColor}})}),_de=(e,n)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},KHe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},mde(e))}),vCe(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),vCe(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),n)}),yCe=(e,n)=>({[`&${e.componentCls}-group-wrapper-status-${n.status}`]:{[`${e.componentCls}-group-addon`]:{background:n.addonBg,color:n.addonColor}}}),XHe=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:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},yCe(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),yCe(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:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),bde=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),QHe=e=>{const{paddingBlockLG:n,lineHeightLG:r,borderRadiusLG:i,paddingInlineLG:o}=e;return{padding:`${Ye(n)} ${Ye(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:i}},ZHe=e=>({padding:`${Ye(e.paddingBlockSM)} ${Ye(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),vU=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ye(e.paddingBlock)} ${Ye(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},bde(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({},QHe(e)),"&-sm":Object.assign({},ZHe(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),JHe=e=>{const{componentCls:n,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${n}, &-lg > ${n}-group-addon`]:Object.assign({},QHe(e)),[`&-sm ${n}, &-sm > ${n}-group-addon`]:Object.assign({},ZHe(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${n}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${n}-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 ${Ye(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${Ye(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ye(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${Ye(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${Ye(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[n]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${n}-search-with-button &`]:{zIndex:0}}},[`> ${n}:first-child, ${n}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${n}-affix-wrapper`]:{[`&:not(:first-child) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${n}:last-child, ${n}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${n}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${n}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${n}-group-compact`]:Object.assign(Object.assign({display:"block"},Nm()),{[`${n}-group-addon, ${n}-group-wrap, > ${n}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${n}-affix-wrapper,
& > ${n}-number-affix-wrapper,
& > ${r}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[n]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,
& > ${r}-select-auto-complete ${n},
& > ${r}-cascader-picker ${n},
& > ${n}-group-wrapper ${n}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${r}-select:first-child > ${r}-select-selector,
& > ${r}-select-auto-complete:first-child ${n},
& > ${r}-cascader-picker:first-child ${n}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
& > ${r}-select:last-child > ${r}-select-selector,
& > ${r}-cascader-picker:last-child ${n},
& > ${r}-cascader-picker-focused:last-child ${n}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${n}`]:{verticalAlign:"top"},[`${n}-group-wrapper + ${n}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${n}-affix-wrapper`]:{borderRadius:0}},[`${n}-group-wrapper:not(:last-child)`]:{[`&${n}-search > ${n}-group`]:{[`& > ${n}-group-addon > ${n}-search-button`]:{borderRadius:0},[`& > ${n}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},CFt=e=>{const{componentCls:n,controlHeightSM:r,lineWidth:i,calc:o}=e,s=o(r).sub(o(i).mul(2)).sub(16).div(2).equal();return{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),vU(e)),vde(e)),_de(e)),yde(e)),{'&[type="color"]':{height:e.controlHeight,[`&${n}-lg`]:{height:e.controlHeightLG},[`&${n}-sm`]:{height:r,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},wFt=e=>{const{componentCls:n}=e;return{[`${n}-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 ${Ye(e.inputAffixPadding)}`}}}},xFt=e=>{const{componentCls:n,inputAffixPadding:r,colorTextDescription:i,motionDurationSlow:o,colorIcon:a,colorIconHover:s,iconCls:l}=e,c=`${n}-affix-wrapper`,u=`${n}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},vU(e)),{display:"inline-flex",[`&:not(${n}-disabled):hover`]:{zIndex:1,[`${n}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${n}`]:{padding:0},[`> input${n}, > textarea${n}`]:{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"'},[n]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:i},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),wFt(e)),{[`${l}${n}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:s}}}),[u]:{[`${l}${n}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},TFt=e=>{const{componentCls:n,borderRadiusLG:r,borderRadiusSM:i}=e;return{[`${n}-group`]:Object.assign(Object.assign(Object.assign({},li(e)),JHe(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${n}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${n}-group-addon`]:{borderRadius:i}}},qHe(e)),XHe(e)),{[`&:not(${n}-compact-first-item):not(${n}-compact-last-item)${n}-compact-item`]:{[`${n}, ${n}-group-addon`]:{borderRadius:0}},[`&:not(${n}-compact-last-item)${n}-compact-first-item`]:{[`${n}, ${n}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${n}-compact-first-item)${n}-compact-last-item`]:{[`${n}, ${n}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${n}-compact-last-item)${n}-compact-item`]:{[`${n}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${n}-compact-first-item)${n}-compact-item`]:{[`${n}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},OFt=e=>{const{componentCls:n,antCls:r}=e,i=`${n}-search`;return{[i]:{[n]:{"&:hover, &:focus":{[`+ ${n}-group-addon ${i}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${n}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${n}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${n}-group`]:{[`> ${n}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${i}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${i}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${i}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${n}-affix-wrapper, ${i}-button`]:{height:e.controlHeightLG}},"&-small":{[`${n}-affix-wrapper, ${i}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${n}-compact-item`]:{[`&:not(${n}-compact-last-item)`]:{[`${n}-group-addon`]:{[`${n}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${n}-compact-first-item)`]:{[`${n},${n}-affix-wrapper`]:{borderRadius:0}},[`> ${n}-group-addon ${n}-search-button,
> ${n},
${n}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${n}-affix-wrapper-focused`]:{zIndex:2}}}}},RFt=e=>{const{componentCls:n,paddingLG:r}=e,i=`${n}-textarea`;return{[i]:{position:"relative","&-show-count":{[`> ${n}`]:{height:"100%"},[`${n}-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 > ${n},
&-affix-wrapper${i}-has-feedback ${n}
`]:{paddingInlineEnd:r},[`&-affix-wrapper${n}-affix-wrapper`]:{padding:0,[`> textarea${n}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${n}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${n}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${i}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${n}-affix-wrapper-sm`]:{[`${n}-suffix`]:{[`${n}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},IFt=e=>{const{componentCls:n}=e;return{[`${n}-out-of-range`]:{[`&, & input, & textarea, ${n}-show-count-suffix, ${n}-data-count`]:{color:e.colorError}}}},Sde=Yr("Input",e=>{const n=wr(e,gU(e));return[CFt(n),RFt(n),xFt(n),TFt(n),OFt(n),IFt(n),nw(n)]},mU,{resetFont:!1}),cq=(e,n)=>{const{componentCls:r,controlHeight:i}=e,o=n?`${r}-${n}`:"",a=hUe(e);return[{[`${r}-multiple${o}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:i,[`${r}-selection-item`]:{height:a.itemHeight,lineHeight:Ye(a.itemLineHeight)}}}]},NFt=e=>{const{componentCls:n,calc:r,lineWidth:i}=e,o=wr(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=wr(e,{fontHeight:r(e.multipleItemHeightLG).sub(r(i).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[cq(o,"small"),cq(e),cq(a,"large"),{[`${n}${n}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${n}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${n}-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"}}},gUe(e)),{[`${n}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},MFt=e=>{const{pickerCellCls:n,pickerCellInnerCls:r,cellHeight:i,borderRadiusSM:o,motionDurationMid:a,cellHoverBg:s,lineWidth:l,lineType:c,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:p,cellBgDisabled:h,colorFillSecondary:g}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:i,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[r]:{position:"relative",zIndex:2,display:"inline-block",minWidth:i,height:i,lineHeight:Ye(i),borderRadius:o,transition:`background ${a}`},[`&:hover:not(${n}-in-view):not(${n}-disabled),
&:hover:not(${n}-selected):not(${n}-range-start):not(${n}-range-end):not(${n}-disabled)`]:{[r]:{background:s}},[`&-in-view${n}-today ${r}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Ye(l)} ${c} ${u}`,borderRadius:o,content:'""'}},[`&-in-view${n}-in-range,
&-in-view${n}-range-start,
&-in-view${n}-range-end`]:{position:"relative",[`&:not(${n}-disabled):before`]:{background:d}},[`&-in-view${n}-selected,
&-in-view${n}-range-start,
&-in-view${n}-range-end`]:{[`&:not(${n}-disabled) ${r}`]:{color:f,background:u},[`&${n}-disabled ${r}`]:{background:g}},[`&-in-view${n}-range-start:not(${n}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${n}-range-end:not(${n}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${n}-range-start:not(${n}-range-end) ${r}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${n}-range-end:not(${n}-range-start) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:p,cursor:"not-allowed",[r]:{background:"transparent"},"&::before":{background:h}},[`&-disabled${n}-today ${r}::before`]:{borderColor:p}}},PFt=e=>{const{componentCls:n,pickerCellCls:r,pickerCellInnerCls:i,pickerYearMonthCellWidth:o,pickerControlIconSize:a,cellWidth:s,paddingSM:l,paddingXS:c,paddingXXS:u,colorBgContainer:d,lineWidth:f,lineType:p,borderRadiusLG:h,colorPrimary:g,colorTextHeading:v,colorSplit:y,pickerControlIconBorderWidth:_,colorIcon:S,textHeight:b,motionDurationMid:E,colorIconHover:w,fontWeightStrong:C,cellHeight:x,pickerCellPaddingVertical:T,colorTextDisabled:R,colorText:O,fontSize:M,motionDurationSlow:P,withoutTimeCellHeight:k,pickerQuarterPanelContentHeight:$,borderRadiusSM:U,colorTextLightSolid:z,cellHoverBg:D,timeColumnHeight:B,timeColumnWidth:Y,timeCellHeight:q,controlItemBgActive:K,marginXXS:H,pickerDatePanelPaddingHorizontal:G,pickerControlIconMargin:Q}=e,le=e.calc(s).mul(7).add(e.calc(G).mul(2)).equal();return{[n]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:h,outline:"none","&-focused":{borderColor:g},"&-rtl":{[`${n}-prev-icon,
${n}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${n}-next-icon,
${n}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${n}-time-panel`]:{[`${n}-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:le},"&-header":{display:"flex",padding:`0 ${Ye(c)}`,color:v,borderBottom:`${Ye(f)} ${p} ${y}`,"> *":{flex:"none"},button:{padding:0,color:S,lineHeight:Ye(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${E}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:M,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:C,lineHeight:Ye(b),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:g}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${Ye(_)} 0`,borderInlineWidth:`${Ye(_)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Q,insetInlineStart:Q,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockWidth:`${Ye(_)} 0`,borderInlineWidth:`${Ye(_)} 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:x,fontWeight:"normal"},th:{height:e.calc(x).add(e.calc(T).mul(2)).equal(),color:O,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Ye(T)} 0`,color:R,cursor:"pointer","&-in-view":{color:O}},MFt(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${n}-content`]:{height:e.calc(k).mul(4).equal()},[i]:{padding:`0 ${Ye(c)}`}},"&-quarter-panel":{[`${n}-content`]:{height:$}},"&-decade-panel":{[i]:{padding:`0 ${Ye(e.calc(c).div(2).equal())}`},[`${n}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${n}-body`]:{padding:`0 ${Ye(c)}`},[i]:{width:o}},"&-date-panel":{[`${n}-body`]:{padding:`${Ye(c)} ${Ye(G)}`},[`${n}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${n}-cell`]:{[`&:hover ${i},
&-selected ${i},
${i}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${E}`},"&:first-child:before":{borderStartStartRadius:U,borderEndStartRadius:U},"&:last-child:before":{borderStartEndRadius:U,borderEndEndRadius:U}},"&:hover td:before":{background:D},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${r}`]:{"&:before":{background:g},[`&${n}-cell-week`]:{color:new Gr(z).setA(.5).toHexString()},[i]:{color:z}}},"&-range-hover td:before":{background:K}}},"&-week-panel, &-date-panel-show-week":{[`${n}-body`]:{padding:`${Ye(c)} ${Ye(l)}`},[`${n}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${n}-time-panel`]:{borderInlineStart:`${Ye(f)} ${p} ${y}`},[`${n}-date-panel,
${n}-time-panel`]:{transition:`opacity ${P}`},"&-active":{[`${n}-date-panel,
${n}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${n}-content`]:{display:"flex",flex:"auto",height:B},"&-column":{flex:"1 0 auto",width:Y,margin:`${Ye(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${E}`,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% - ${Ye(q)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Ye(f)} ${p} ${y}`},"&-active":{background:new Gr(K).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${n}-time-panel-cell`]:{marginInline:H,[`${n}-time-panel-cell-inner`]:{display:"block",width:e.calc(Y).sub(e.calc(H).mul(2)).equal(),height:q,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(Y).sub(q).div(2).equal(),color:O,lineHeight:Ye(q),borderRadius:U,cursor:"pointer",transition:`background ${E}`,"&:hover":{background:D}},"&-selected":{[`${n}-time-panel-cell-inner`]:{background:K}},"&-disabled":{[`${n}-time-panel-cell-inner`]:{color:R,background:"transparent",cursor:"not-allowed"}}}}}}}}},AFt=e=>{const{componentCls:n,textHeight:r,lineWidth:i,paddingSM:o,antCls:a,colorPrimary:s,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:u,colorSplit:d}=e;return{[`${n}-dropdown`]:{[`${n}-footer`]:{borderTop:`${Ye(i)} ${u} ${d}`,"&-extra":{padding:`0 ${Ye(o)}`,lineHeight:Ye(e.calc(r).sub(e.calc(i).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Ye(i)} ${u} ${d}`}}},[`${n}-panels + ${n}-footer ${n}-ranges`]:{justifyContent:"space-between"},[`${n}-ranges`]:{marginBlock:0,paddingInline:Ye(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Ye(e.calc(r).sub(e.calc(i).mul(2)).equal()),display:"inline-block"},[`${n}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${n}-preset > ${a}-tag-blue`]:{color:s,background:l,borderColor:c,cursor:"pointer"},[`${n}-ok`]:{paddingBlock:e.calc(i).mul(2).equal(),marginInlineStart:"auto"}}}}},DFt=e=>{const{componentCls:n,controlHeightLG:r,paddingXXS:i,padding:o}=e;return{pickerCellCls:`${n}-cell`,pickerCellInnerCls:`${n}-cell-inner`,pickerYearMonthCellWidth:e.calc(r).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(r).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(i).add(e.calc(i).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(i).div(2)).equal()}},kFt=e=>{const{colorBgContainerDisabled:n,controlHeight:r,controlHeightSM:i,controlHeightLG:o,paddingXXS:a,lineWidth:s}=e,l=a*2,c=s*2,u=Math.min(r-l,r-c),d=Math.min(i-l,i-c),f=Math.min(o-l,o-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Gr(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Gr(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:n,timeColumnWidth:o*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:i*1.5,cellHeight:i,textHeight:o,withoutTimeCellHeight:o*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:u,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:n,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},LFt=e=>Object.assign(Object.assign(Object.assign(Object.assign({},mU(e)),kFt(e)),rU(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),$Ft=e=>{const{componentCls:n}=e;return{[n]:[Object.assign(Object.assign(Object.assign({},vde(e)),_de(e)),yde(e)),{"&-outlined":{[`&${n}-multiple ${n}-selection-item`]:{background:e.multipleItemBg,border:`${Ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${n}-multiple ${n}-selection-item`]:{background:e.colorBgContainer,border:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${n}-multiple ${n}-selection-item`]:{background:e.multipleItemBg,border:`${Ye(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},uq=(e,n,r,i)=>{const o=e.calc(r).add(2).equal(),a=e.max(e.calc(n).sub(o).div(2).equal(),0),s=e.max(e.calc(n).sub(o).sub(a).equal(),0);return{padding:`${Ye(a)} ${Ye(i)} ${Ye(s)}`}},FFt=e=>{const{componentCls:n,colorError:r,colorWarning:i}=e;return{[`${n}:not(${n}-disabled):not([disabled])`]:{[`&${n}-status-error`]:{[`${n}-active-bar`]:{background:r}},[`&${n}-status-warning`]:{[`${n}-active-bar`]:{background:i}}}}},BFt=e=>{const{componentCls:n,antCls:r,controlHeight:i,paddingInline:o,lineWidth:a,lineType:s,colorBorder:l,borderRadius:c,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,controlHeightLG:p,fontSizeLG:h,controlHeightSM:g,paddingInlineSM:v,paddingXS:y,marginXS:_,colorTextDescription:S,lineWidthBold:b,colorPrimary:E,motionDurationSlow:w,zIndexPopup:C,paddingXXS:x,sizePopupArrow:T,colorBgElevated:R,borderRadiusLG:O,boxShadowSecondary:M,borderRadiusSM:P,colorSplit:k,cellHoverBg:$,presetsWidth:U,presetsMaxWidth:z,boxShadowPopoverArrow:D,fontHeight:B,fontHeightLG:Y,lineHeightLG:q}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},li(e)),uq(e,i,B,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${n}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`},bde(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},uq(e,p,Y,o)),{[`${n}-input > input`]:{fontSize:h,lineHeight:q}}),"&-small":Object.assign({},uq(e,g,B,v)),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(y).div(2).equal(),color:d,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:_}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:d,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:S}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:h,color:d,fontSize:h,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:S},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:b,background:E,opacity:0,transition:`all ${w} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${Ye(y)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:o},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:v}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},li(e)),PFt(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:C,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,
&${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
&${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft,
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:H9},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
&${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:j9},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:z9},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:U9},[`${n}-panel > ${n}-time-panel`]:{paddingTop:x},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${w} ease-out`},CUe(e,R,D)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:R,borderRadius:O,boxShadow:M,transition:`margin ${w}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:U,maxWidth:z,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:y,borderInlineEnd:`${Ye(a)} ${s} ${k}`,li:Object.assign(Object.assign({},Sf),{borderRadius:P,paddingInline:y,paddingBlock:e.calc(g).sub(B).div(2).equal(),cursor:"pointer",transition:`all ${w}`,"+ li":{marginTop:_},"&:hover":{background:$}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${Ye(e.calc(T).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"rotate(180deg)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},Pm(e,"slide-up"),Pm(e,"slide-down"),DO(e,"move-up"),DO(e,"move-down")]},eze=Yr("DatePicker",e=>{const n=wr(gU(e),DFt(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[AFt(n),BFt(n),$Ft(n),FFt(n),NFt(n),nw(e,{focusElCls:`${e.componentCls}-focused`})]},LFt);var jFt={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"},UFt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:jFt}))},_A=m.forwardRef(UFt);const yU=m.createContext(null);var HFt=function(n){var r=n.activeTabOffset,i=n.horizontal,o=n.rtl,a=n.indicator,s=a===void 0?{}:a,l=s.size,c=s.align,u=c===void 0?"center":c,d=m.useState(),f=ke(d,2),p=f[0],h=f[1],g=m.useRef(),v=V.useCallback(function(_){return typeof l=="function"?l(_):typeof l=="number"?l:_},[l]);function y(){Dr.cancel(g.current)}return m.useEffect(function(){var _={};if(r)if(i){_.width=v(r.width);var S=o?"right":"left";u==="start"&&(_[S]=r[S]),u==="center"&&(_[S]=r[S]+r.width/2,_.transform=o?"translateX(50%)":"translateX(-50%)"),u==="end"&&(_[S]=r[S]+r.width,_.transform="translateX(-100%)")}else _.height=v(r.height),u==="start"&&(_.top=r.top),u==="center"&&(_.top=r.top+r.height/2,_.transform="translateY(-50%)"),u==="end"&&(_.top=r.top+r.height,_.transform="translateY(-100%)");return y(),g.current=Dr(function(){h(_)}),y},[r,i,o,u,v]),{style:p}},_Ce={width:0,height:0,left:0,top:0};function zFt(e,n,r){return m.useMemo(function(){for(var i,o=new Map,a=n.get((i=e[0])===null||i===void 0?void 0:i.key)||_Ce,s=a.left+a.width,l=0;l<e.length;l+=1){var c=e[l].key,u=n.get(c);if(!u){var d;u=n.get((d=e[l-1])===null||d===void 0?void 0:d.key)||_Ce}var f=o.get(c)||ee({},u);f.right=s-f.left-f.width,o.set(c,f)}return o},[e.map(function(i){return i.key}).join("_"),n,r])}function bCe(e,n){var r=m.useRef(e),i=m.useState({}),o=ke(i,2),a=o[1];function s(l){var c=typeof l=="function"?l(r.current):l;c!==r.current&&n(c,r.current),r.current=c,a({})}return[r.current,s]}var VFt=.1,SCe=.01,p6=20,ECe=Math.pow(.995,p6);function GFt(e,n){var r=m.useState(),i=ke(r,2),o=i[0],a=i[1],s=m.useState(0),l=ke(s,2),c=l[0],u=l[1],d=m.useState(0),f=ke(d,2),p=f[0],h=f[1],g=m.useState(),v=ke(g,2),y=v[0],_=v[1],S=m.useRef();function b(R){var O=R.touches[0],M=O.screenX,P=O.screenY;a({x:M,y:P}),window.clearInterval(S.current)}function E(R){if(o){var O=R.touches[0],M=O.screenX,P=O.screenY;a({x:M,y:P});var k=M-o.x,$=P-o.y;n(k,$);var U=Date.now();u(U),h(U-c),_({x:k,y:$})}}function w(){if(o&&(a(null),_(null),y)){var R=y.x/p,O=y.y/p,M=Math.abs(R),P=Math.abs(O);if(Math.max(M,P)<VFt)return;var k=R,$=O;S.current=window.setInterval(function(){if(Math.abs(k)<SCe&&Math.abs($)<SCe){window.clearInterval(S.current);return}k*=ECe,$*=ECe,n(k*p6,$*p6)},p6)}}var C=m.useRef();function x(R){var O=R.deltaX,M=R.deltaY,P=0,k=Math.abs(O),$=Math.abs(M);k===$?P=C.current==="x"?O:M:k>$?(P=O,C.current="x"):(P=M,C.current="y"),n(-P,-P)&&R.preventDefault()}var T=m.useRef(null);T.current={onTouchStart:b,onTouchMove:E,onTouchEnd:w,onWheel:x},m.useEffect(function(){function R(k){T.current.onTouchStart(k)}function O(k){T.current.onTouchMove(k)}function M(k){T.current.onTouchEnd(k)}function P(k){T.current.onWheel(k)}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",M,{passive:!0}),e.current.addEventListener("touchstart",R,{passive:!0}),e.current.addEventListener("wheel",P,{passive:!1}),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",M)}},[])}function tze(e){var n=m.useState(0),r=ke(n,2),i=r[0],o=r[1],a=m.useRef(0),s=m.useRef();return s.current=e,I1(function(){var l;(l=s.current)===null||l===void 0||l.call(s)},[i]),function(){a.current===i&&(a.current+=1,o(a.current))}}function WFt(e){var n=m.useRef([]),r=m.useState({}),i=ke(r,2),o=i[1],a=m.useRef(typeof e=="function"?e():e),s=tze(function(){var c=a.current;n.current.forEach(function(u){c=u(c)}),n.current=[],a.current=c,o({})});function l(c){n.current.push(c),s()}return[a.current,l]}var CCe={width:0,height:0,left:0,top:0,right:0};function YFt(e,n,r,i,o,a,s){var l=s.tabs,c=s.tabPosition,u=s.rtl,d,f,p;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",p=Math.abs(r)):(d="height",f="top",p=-r),m.useMemo(function(){if(!l.length)return[0,0];for(var h=l.length,g=h,v=0;v<h;v+=1){var y=e.get(l[v].key)||CCe;if(Math.floor(y[f]+y[d])>Math.floor(p+n)){g=v-1;break}}for(var _=0,S=h-1;S>=0;S-=1){var b=e.get(l[S].key)||CCe;if(b[f]<p){_=S+1;break}}return _>=g?[0,0]:[_,g]},[e,n,i,o,a,p,c,l.map(function(h){return h.key}).join("_"),u])}function wCe(e){var n;return e instanceof Map?(n={},e.forEach(function(r,i){n[i]=r})):n=e,JSON.stringify(n)}var qFt="TABS_DQ";function nze(e){return String(e).replace(/"/g,qFt)}function Ede(e,n,r,i){return!(!r||i||e===!1||e===void 0&&(n===!1||n===null))}var rze=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.editable,o=e.locale,a=e.style;return!i||i.showAdd===!1?null:m.createElement("button",{ref:n,type:"button",className:"".concat(r,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){i.onEdit("add",{event:l})}},i.addIcon||"+")}),xCe=m.forwardRef(function(e,n){var r=e.position,i=e.prefixCls,o=e.extra;if(!o)return null;var a,s={};return cn(o)==="object"&&!m.isValidElement(o)?s=o:s.right=o,r==="right"&&(a=s.right),r==="left"&&(a=s.left),a?m.createElement("div",{className:"".concat(i,"-extra-content"),ref:n},a):null}),KFt=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.id,o=e.tabs,a=e.locale,s=e.mobile,l=e.more,c=l===void 0?{}:l,u=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,h=e.rtl,g=e.removeAriaLabel,v=e.onTabClick,y=e.getPopupContainer,_=e.popupClassName,S=m.useState(!1),b=ke(S,2),E=b[0],w=b[1],C=m.useState(null),x=ke(C,2),T=x[0],R=x[1],O=c.icon,M=O===void 0?"More":O,P="".concat(i,"-more-popup"),k="".concat(r,"-dropdown"),$=T!==null?"".concat(P,"-").concat(T):null,U=a==null?void 0:a.dropdownAriaLabel;function z(G,Q){G.preventDefault(),G.stopPropagation(),f.onEdit("remove",{key:Q,event:G})}var D=m.createElement(uI,{onClick:function(Q){var le=Q.key,Z=Q.domEvent;v(le,Z),w(!1)},prefixCls:"".concat(k,"-menu"),id:P,tabIndex:-1,role:"listbox","aria-activedescendant":$,selectedKeys:[T],"aria-label":U!==void 0?U:"expanded dropdown"},o.map(function(G){var Q=G.closable,le=G.disabled,Z=G.closeIcon,j=G.key,F=G.label,te=Ede(Q,Z,f,le);return m.createElement(_k,{key:j,id:"".concat(P,"-").concat(j),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(j),disabled:le},m.createElement("span",null,F),te&&m.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(k,"-menu-item-remove"),onClick:function(de){de.stopPropagation(),z(de,j)}},Z||f.removeIcon||"×"))}));function B(G){for(var Q=o.filter(function(te){return!te.disabled}),le=Q.findIndex(function(te){return te.key===T})||0,Z=Q.length,j=0;j<Z;j+=1){le=(le+G+Z)%Z;var F=Q[le];if(!F.disabled){R(F.key);return}}}function Y(G){var Q=G.which;if(!E){[At.DOWN,At.SPACE,At.ENTER].includes(Q)&&(w(!0),G.preventDefault());return}switch(Q){case At.UP:B(-1),G.preventDefault();break;case At.DOWN:B(1),G.preventDefault();break;case At.ESC:w(!1);break;case At.SPACE:case At.ENTER:T!==null&&v(T,G);break}}m.useEffect(function(){var G=document.getElementById($);G&&G.scrollIntoView&&G.scrollIntoView(!1)},[T]),m.useEffect(function(){E||R(null)},[E]);var q=fe({},h?"marginRight":"marginLeft",p);o.length||(q.visibility="hidden",q.order=1);var K=Ce(fe({},"".concat(k,"-rtl"),h)),H=s?null:m.createElement(AUe,ft({prefixCls:k,overlay:D,visible:o.length?E:!1,onVisibleChange:w,overlayClassName:Ce(K,_),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},c),m.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:q,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":P,id:"".concat(i,"-more"),"aria-expanded":E,onKeyDown:Y},M));return m.createElement("div",{className:Ce("".concat(r,"-nav-operations"),d),style:u,ref:n},H,m.createElement(rze,{prefixCls:r,locale:a,editable:f}))});const XFt=m.memo(KFt,function(e,n){return n.tabMoving});var QFt=function(n){var r=n.prefixCls,i=n.id,o=n.active,a=n.focus,s=n.tab,l=s.key,c=s.label,u=s.disabled,d=s.closeIcon,f=s.icon,p=n.closable,h=n.renderWrapper,g=n.removeAriaLabel,v=n.editable,y=n.onClick,_=n.onFocus,S=n.onBlur,b=n.onKeyDown,E=n.onMouseDown,w=n.onMouseUp,C=n.style,x=n.tabCount,T=n.currentPosition,R="".concat(r,"-tab"),O=Ede(p,d,v,u);function M(z){u||y(z)}function P(z){z.preventDefault(),z.stopPropagation(),v.onEdit("remove",{key:l,event:z})}var k=m.useMemo(function(){return f&&typeof c=="string"?m.createElement("span",null,c):c},[c,f]),$=m.useRef(null);m.useEffect(function(){a&&$.current&&$.current.focus()},[a]);var U=m.createElement("div",{key:l,"data-node-key":nze(l),className:Ce(R,fe(fe(fe(fe({},"".concat(R,"-with-remove"),O),"".concat(R,"-active"),o),"".concat(R,"-disabled"),u),"".concat(R,"-focus"),a)),style:C,onClick:M},m.createElement("div",{ref:$,role:"tab","aria-selected":o,id:i&&"".concat(i,"-tab-").concat(l),className:"".concat(R,"-btn"),"aria-controls":i&&"".concat(i,"-panel-").concat(l),"aria-disabled":u,tabIndex:u?null:o?0:-1,onClick:function(D){D.stopPropagation(),M(D)},onKeyDown:b,onMouseDown:E,onMouseUp:w,onFocus:_,onBlur:S},a&&m.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(T," of ").concat(x)),f&&m.createElement("span",{className:"".concat(R,"-icon")},f),c&&k),O&&m.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:o?0:-1,className:"".concat(R,"-remove"),onClick:function(D){D.stopPropagation(),P(D)}},d||v.removeIcon||"×"));return h?h(U):U},ZFt=function(n,r){var i=n.offsetWidth,o=n.offsetHeight,a=n.offsetTop,s=n.offsetLeft,l=n.getBoundingClientRect(),c=l.width,u=l.height,d=l.left,f=l.top;return Math.abs(c-i)<1?[c,u,d-r.left,f-r.top]:[i,o,s,a]},Cx=function(n){var r=n.current||{},i=r.offsetWidth,o=i===void 0?0:i,a=r.offsetHeight,s=a===void 0?0:a;if(n.current){var l=n.current.getBoundingClientRect(),c=l.width,u=l.height;if(Math.abs(c-o)<1)return[c,u]}return[o,s]},J3=function(n,r){return n[r?0:1]},TCe=m.forwardRef(function(e,n){var r=e.className,i=e.style,o=e.id,a=e.animated,s=e.activeKey,l=e.rtl,c=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,p=e.tabBarGutter,h=e.children,g=e.onTabClick,v=e.onTabScroll,y=e.indicator,_=m.useContext(yU),S=_.prefixCls,b=_.tabs,E=m.useRef(null),w=m.useRef(null),C=m.useRef(null),x=m.useRef(null),T=m.useRef(null),R=m.useRef(null),O=m.useRef(null),M=f==="top"||f==="bottom",P=bCe(0,function(Zt,Et){M&&v&&v({direction:Zt>Et?"left":"right"})}),k=ke(P,2),$=k[0],U=k[1],z=bCe(0,function(Zt,Et){!M&&v&&v({direction:Zt>Et?"top":"bottom"})}),D=ke(z,2),B=D[0],Y=D[1],q=m.useState([0,0]),K=ke(q,2),H=K[0],G=K[1],Q=m.useState([0,0]),le=ke(Q,2),Z=le[0],j=le[1],F=m.useState([0,0]),te=ke(F,2),oe=te[0],de=te[1],pe=m.useState([0,0]),me=ke(pe,2),ve=me[0],he=me[1],be=WFt(new Map),we=ke(be,2),De=we[0],Ae=we[1],Ee=zFt(b,De,Z[0]),Re=J3(H,M),Te=J3(Z,M),Oe=J3(oe,M),Ne=J3(ve,M),je=Math.floor(Re)<Math.floor(Te+Oe),ne=je?Re-Ne:Re-Oe,J="".concat(S,"-nav-operations-hidden"),ae=0,Se=0;M&&l?(ae=0,Se=Math.max(0,Te-ne)):(ae=Math.min(0,ne-Te),Se=0);function xe(Zt){return Zt<ae?ae:Zt>Se?Se:Zt}var ue=m.useRef(null),Me=m.useState(),$e=ke(Me,2),ge=$e[0],Ve=$e[1];function st(){Ve(Date.now())}function Je(){ue.current&&clearTimeout(ue.current)}GFt(x,function(Zt,Et){function Gt(zt,Vn){zt(function(sr){var A=xe(sr+Vn);return A})}return je?(M?Gt(U,Zt):Gt(Y,Et),Je(),st(),!0):!1}),m.useEffect(function(){return Je(),ge&&(ue.current=setTimeout(function(){Ve(0)},100)),Je},[ge]);var ot=YFt(Ee,ne,M?$:B,Te,Oe,Ne,ee(ee({},e),{},{tabs:b})),Xe=ke(ot,2),Ze=Xe[0],bt=Xe[1],at=Sr(function(){var Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s,Et=Ee.get(Zt)||{width:0,height:0,left:0,right:0,top:0};if(M){var Gt=$;l?Et.right<$?Gt=Et.right:Et.right+Et.width>$+ne&&(Gt=Et.right+Et.width-ne):Et.left<-$?Gt=-Et.left:Et.left+Et.width>-$+ne&&(Gt=-(Et.left+Et.width-ne)),Y(0),U(xe(Gt))}else{var zt=B;Et.top<-B?zt=-Et.top:Et.top+Et.height>-B+ne&&(zt=-(Et.top+Et.height-ne)),U(0),Y(xe(zt))}}),pt=m.useState(),Ct=ke(pt,2),It=Ct[0],Wt=Ct[1],Bt=m.useState(!1),Vt=ke(Bt,2),rn=Vt[0],tt=Vt[1],it=b.filter(function(Zt){return!Zt.disabled}).map(function(Zt){return Zt.key}),nt=function(Et){var Gt=it.indexOf(It||s),zt=it.length,Vn=(Gt+Et+zt)%zt,sr=it[Vn];Wt(sr)},vt=function(Et){var Gt=Et.code,zt=l&&M,Vn=it[0],sr=it[it.length-1];switch(Gt){case"ArrowLeft":{M&&nt(zt?1:-1);break}case"ArrowRight":{M&&nt(zt?-1:1);break}case"ArrowUp":{Et.preventDefault(),M||nt(-1);break}case"ArrowDown":{Et.preventDefault(),M||nt(1);break}case"Home":{Et.preventDefault(),Wt(Vn);break}case"End":{Et.preventDefault(),Wt(sr);break}case"Enter":case"Space":{Et.preventDefault(),g(It,Et);break}case"Backspace":case"Delete":{var A=it.indexOf(It),W=b.find(function(Pe){return Pe.key===It}),ce=Ede(W==null?void 0:W.closable,W==null?void 0:W.closeIcon,u,W==null?void 0:W.disabled);ce&&(Et.preventDefault(),Et.stopPropagation(),u.onEdit("remove",{key:It,event:Et}),A===it.length-1?nt(-1):nt(1));break}}},kt={};M?kt[l?"marginRight":"marginLeft"]=p:kt.marginTop=p;var Dt=b.map(function(Zt,Et){var Gt=Zt.key;return m.createElement(QFt,{id:o,prefixCls:S,key:Gt,tab:Zt,style:Et===0?void 0:kt,closable:Zt.closable,editable:u,active:Gt===s,focus:Gt===It,renderWrapper:h,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:it.length,currentPosition:Et+1,onClick:function(Vn){g(Gt,Vn)},onKeyDown:vt,onFocus:function(){rn||Wt(Gt),at(Gt),st(),x.current&&(l||(x.current.scrollLeft=0),x.current.scrollTop=0)},onBlur:function(){Wt(void 0)},onMouseDown:function(){tt(!0)},onMouseUp:function(){tt(!1)}})}),Kt=function(){return Ae(function(){var Et,Gt=new Map,zt=(Et=T.current)===null||Et===void 0?void 0:Et.getBoundingClientRect();return b.forEach(function(Vn){var sr,A=Vn.key,W=(sr=T.current)===null||sr===void 0?void 0:sr.querySelector('[data-node-key="'.concat(nze(A),'"]'));if(W){var ce=ZFt(W,zt),Pe=ke(ce,4),qe=Pe[0],gt=Pe[1],Yt=Pe[2],Nn=Pe[3];Gt.set(A,{width:qe,height:gt,left:Yt,top:Nn})}}),Gt})};m.useEffect(function(){Kt()},[b.map(function(Zt){return Zt.key}).join("_")]);var Ht=tze(function(){var Zt=Cx(E),Et=Cx(w),Gt=Cx(C);G([Zt[0]-Et[0]-Gt[0],Zt[1]-Et[1]-Gt[1]]);var zt=Cx(O);de(zt);var Vn=Cx(R);he(Vn);var sr=Cx(T);j([sr[0]-zt[0],sr[1]-zt[1]]),Kt()}),tn=b.slice(0,Ze),on=b.slice(bt+1),sn=[].concat(Tt(tn),Tt(on)),Jt=Ee.get(s),En=HFt({activeTabOffset:Jt,horizontal:M,indicator:y,rtl:l}),Pt=En.style;m.useEffect(function(){at()},[s,ae,Se,wCe(Jt),wCe(Ee),M]),m.useEffect(function(){Ht()},[l]);var Qt=!!sn.length,ln="".concat(S,"-nav-wrap"),jt,Lt,en,Ue;return M?l?(Lt=$>0,jt=$!==Se):(jt=$<0,Lt=$!==ae):(en=B<0,Ue=B!==ae),m.createElement(Hc,{onResize:Ht},m.createElement("div",{ref:yg(n,E),role:"tablist","aria-orientation":M?"horizontal":"vertical",className:Ce("".concat(S,"-nav"),r),style:i,onKeyDown:function(){st()}},m.createElement(xCe,{ref:w,position:"left",extra:c,prefixCls:S}),m.createElement(Hc,{onResize:Ht},m.createElement("div",{className:Ce(ln,fe(fe(fe(fe({},"".concat(ln,"-ping-left"),jt),"".concat(ln,"-ping-right"),Lt),"".concat(ln,"-ping-top"),en),"".concat(ln,"-ping-bottom"),Ue)),ref:x},m.createElement(Hc,{onResize:Ht},m.createElement("div",{ref:T,className:"".concat(S,"-nav-list"),style:{transform:"translate(".concat($,"px, ").concat(B,"px)"),transition:ge?"none":void 0}},Dt,m.createElement(rze,{ref:O,prefixCls:S,locale:d,editable:u,style:ee(ee({},Dt.length===0?void 0:kt),{},{visibility:Qt?"hidden":null})}),m.createElement("div",{className:Ce("".concat(S,"-ink-bar"),fe({},"".concat(S,"-ink-bar-animated"),a.inkBar)),style:Pt}))))),m.createElement(XFt,ft({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:R,prefixCls:S,tabs:sn,className:!Qt&&J,tabMoving:!!ge})),m.createElement(xCe,{ref:C,position:"right",extra:c,prefixCls:S})))}),ize=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.className,o=e.style,a=e.id,s=e.active,l=e.tabKey,c=e.children;return m.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!s,style:o,className:Ce(r,s&&"".concat(r,"-active"),i),ref:n},c)}),JFt=["renderTabBar"],e8t=["label","key"],t8t=function(n){var r=n.renderTabBar,i=Xt(n,JFt),o=m.useContext(yU),a=o.tabs;if(r){var s=ee(ee({},i),{},{panes:a.map(function(l){var c=l.label,u=l.key,d=Xt(l,e8t);return m.createElement(ize,ft({tab:c,key:u,tabKey:u},d))})});return r(s,TCe)}return m.createElement(TCe,i)},n8t=["key","forceRender","style","className","destroyInactiveTabPane"],r8t=function(n){var r=n.id,i=n.activeKey,o=n.animated,a=n.tabPosition,s=n.destroyInactiveTabPane,l=m.useContext(yU),c=l.prefixCls,u=l.tabs,d=o.tabPane,f="".concat(c,"-tabpane");return m.createElement("div",{className:Ce("".concat(c,"-content-holder"))},m.createElement("div",{className:Ce("".concat(c,"-content"),"".concat(c,"-content-").concat(a),fe({},"".concat(c,"-content-animated"),d))},u.map(function(p){var h=p.key,g=p.forceRender,v=p.style,y=p.className,_=p.destroyInactiveTabPane,S=Xt(p,n8t),b=h===i;return m.createElement(Ws,ft({key:h,visible:b,forceRender:g,removeOnLeave:!!(s||_),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(E,w){var C=E.style,x=E.className;return m.createElement(ize,ft({},S,{prefixCls:f,id:r,tabKey:h,animated:d,active:b,style:ee(ee({},v),C),className:Ce(y,x),ref:w}))})})))};function i8t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},n;return e===!1?n={inkBar:!1,tabPane:!1}:e===!0?n={inkBar:!0,tabPane:!1}:n=ee({inkBar:!0},cn(e)==="object"?e:{}),n.tabPaneMotion&&n.tabPane===void 0&&(n.tabPane=!0),!n.tabPaneMotion&&n.tabPane&&(n.tabPane=!1),n}var o8t=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],OCe=0,a8t=m.forwardRef(function(e,n){var r=e.id,i=e.prefixCls,o=i===void 0?"rc-tabs":i,a=e.className,s=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,p=e.tabPosition,h=p===void 0?"top":p,g=e.tabBarGutter,v=e.tabBarStyle,y=e.tabBarExtraContent,_=e.locale,S=e.more,b=e.destroyInactiveTabPane,E=e.renderTabBar,w=e.onChange,C=e.onTabClick,x=e.onTabScroll,T=e.getPopupContainer,R=e.popupClassName,O=e.indicator,M=Xt(e,o8t),P=m.useMemo(function(){return(s||[]).filter(function(ve){return ve&&cn(ve)==="object"&&"key"in ve})},[s]),k=l==="rtl",$=i8t(f),U=m.useState(!1),z=ke(U,2),D=z[0],B=z[1];m.useEffect(function(){B(J9())},[]);var Y=dr(function(){var ve;return(ve=P[0])===null||ve===void 0?void 0:ve.key},{value:c,defaultValue:u}),q=ke(Y,2),K=q[0],H=q[1],G=m.useState(function(){return P.findIndex(function(ve){return ve.key===K})}),Q=ke(G,2),le=Q[0],Z=Q[1];m.useEffect(function(){var ve=P.findIndex(function(be){return be.key===K});if(ve===-1){var he;ve=Math.max(0,Math.min(le,P.length-1)),H((he=P[ve])===null||he===void 0?void 0:he.key)}Z(ve)},[P.map(function(ve){return ve.key}).join("_"),K,le]);var j=dr(null,{value:r}),F=ke(j,2),te=F[0],oe=F[1];m.useEffect(function(){r||(oe("rc-tabs-".concat(OCe)),OCe+=1)},[]);function de(ve,he){C==null||C(ve,he);var be=ve!==K;H(ve),be&&(w==null||w(ve))}var pe={id:te,activeKey:K,animated:$,tabPosition:h,rtl:k,mobile:D},me=ee(ee({},pe),{},{editable:d,locale:_,more:S,tabBarGutter:g,onTabClick:de,onTabScroll:x,extra:y,style:v,panes:null,getPopupContainer:T,popupClassName:R,indicator:O});return m.createElement(yU.Provider,{value:{tabs:P,prefixCls:o}},m.createElement("div",ft({ref:n,id:r,className:Ce(o,"".concat(o,"-").concat(h),fe(fe(fe({},"".concat(o,"-mobile"),D),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),k),a)},M),m.createElement(t8t,ft({},me,{renderTabBar:E})),m.createElement(r8t,ft({destroyInactiveTabPane:b},pe,{animated:$}))))});const s8t={motionAppear:!1,motionEnter:!0,motionLeave:!0};function l8t(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return n===!1?r={inkBar:!1,tabPane:!1}:n===!0?r={inkBar:!0,tabPane:!0}:r=Object.assign({inkBar:!0},typeof n=="object"?n:{}),r.tabPane&&(r.tabPaneMotion=Object.assign(Object.assign({},s8t),{motionName:Kl(e,"switch")})),r}var c8t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function u8t(e){return e.filter(n=>n)}function d8t(e,n){if(e)return e;const r=Tl(n).map(i=>{if(m.isValidElement(i)){const{key:o,props:a}=i,s=a||{},{tab:l}=s,c=c8t(s,["tab"]);return Object.assign(Object.assign({key:String(o)},c),{label:l})}return null});return u8t(r)}const f8t=e=>{const{componentCls:n,motionDurationSlow:r}=e;return[{[n]:{[`${n}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[Pm(e,"slide-up"),Pm(e,"slide-down")]]},p8t=e=>{const{componentCls:n,tabsCardPadding:r,cardBg:i,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:s}=e;return{[`${n}-card`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-tab`]:{margin:0,padding:r,background:i,border:`${Ye(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${n}-tab-active`]:{color:s,background:e.colorBgContainer},[`${n}-tab-focus`]:Object.assign({},Qy(e,-3)),[`${n}-ink-bar`]:{visibility:"hidden"},[`& ${n}-tab${n}-tab-focus ${n}-tab-btn`]:{outline:"none"}},[`&${n}-top, &${n}-bottom`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-tab + ${n}-tab`]:{marginLeft:{_skip_check_:!0,value:Ye(o)}}}},[`&${n}-top`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-tab`]:{borderRadius:`${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)} 0 0`},[`${n}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${n}-bottom`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-tab`]:{borderRadius:`0 0 ${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)}`},[`${n}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${n}-left, &${n}-right`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-tab + ${n}-tab`]:{marginTop:Ye(o)}}},[`&${n}-left`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ye(e.borderRadiusLG)} 0 0 ${Ye(e.borderRadiusLG)}`}},[`${n}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${n}-right`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)} 0`}},[`${n}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},h8t=e=>{const{componentCls:n,itemHoverColor:r,dropdownEdgeChildVerticalPadding:i}=e;return{[`${n}-dropdown`]:Object.assign(Object.assign({},li(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${n}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Ye(i)} 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({},Sf),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Ye(e.paddingXXS)} ${Ye(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:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},g8t=e=>{const{componentCls:n,margin:r,colorBorderSecondary:i,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:s,calc:l}=e;return{[`${n}-top, ${n}-bottom`]:{flexDirection:"column",[`> ${n}-nav, > div > ${n}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Ye(e.lineWidth)} ${e.lineType} ${i}`,content:"''"},[`${n}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
right ${e.motionDurationSlow}`}},[`${n}-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},[`&${n}-nav-wrap-ping-left::before`]:{opacity:1},[`&${n}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${n}-top`]:{[`> ${n}-nav,
> div > ${n}-nav`]:{"&::before":{bottom:0},[`${n}-ink-bar`]:{bottom:0}}},[`${n}-bottom`]:{[`> ${n}-nav, > div > ${n}-nav`]:{order:1,marginTop:r,marginBottom:0,"&::before":{top:0},[`${n}-ink-bar`]:{top:0}},[`> ${n}-content-holder, > div > ${n}-content-holder`]:{order:0}},[`${n}-left, ${n}-right`]:{[`> ${n}-nav, > div > ${n}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${n}-tab`]:{padding:a,textAlign:"center"},[`${n}-tab + ${n}-tab`]:{margin:s},[`${n}-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},[`&${n}-nav-wrap-ping-top::before`]:{opacity:1},[`&${n}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${n}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${n}-nav-list, ${n}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${n}-left`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${n}-content-holder, > div > ${n}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Ye(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${n}-content > ${n}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${n}-right`]:{[`> ${n}-nav, > div > ${n}-nav`]:{order:1,[`${n}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${n}-content-holder, > div > ${n}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${n}-content > ${n}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},m8t=e=>{const{componentCls:n,cardPaddingSM:r,cardPaddingLG:i,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return{[n]:{"&-small":{[`> ${n}-nav`]:{[`${n}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${n}-nav`]:{[`${n}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${n}-card`]:{[`&${n}-small`]:{[`> ${n}-nav`]:{[`${n}-tab`]:{padding:r}},[`&${n}-bottom`]:{[`> ${n}-nav ${n}-tab`]:{borderRadius:`0 0 ${Ye(e.borderRadius)} ${Ye(e.borderRadius)}`}},[`&${n}-top`]:{[`> ${n}-nav ${n}-tab`]:{borderRadius:`${Ye(e.borderRadius)} ${Ye(e.borderRadius)} 0 0`}},[`&${n}-right`]:{[`> ${n}-nav ${n}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ye(e.borderRadius)} ${Ye(e.borderRadius)} 0`}}},[`&${n}-left`]:{[`> ${n}-nav ${n}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ye(e.borderRadius)} 0 0 ${Ye(e.borderRadius)}`}}}},[`&${n}-large`]:{[`> ${n}-nav`]:{[`${n}-tab`]:{padding:i}}}}}},v8t=e=>{const{componentCls:n,itemActiveColor:r,itemHoverColor:i,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:s,itemSelectedColor:l,itemColor:c}=e,u=`${n}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:s,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:r}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-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}},Rp(e)),"&:hover":{color:i},[`&${u}-active ${u}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${u}-focus ${u}-btn`]:Object.assign({},Qy(e)),[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${n}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:a}}}},y8t=e=>{const{componentCls:n,tabsHorizontalItemMarginRTL:r,iconCls:i,cardGutter:o,calc:a}=e;return{[`${n}-rtl`]:{direction:"rtl",[`${n}-nav`]:{[`${n}-tab`]:{margin:{_skip_check_:!0,value:r},[`${n}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[i]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Ye(e.marginSM)}},[`${n}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Ye(e.marginXS)},marginLeft:{_skip_check_:!0,value:Ye(a(e.marginXXS).mul(-1).equal())},[i]:{margin:0}}}},[`&${n}-left`]:{[`> ${n}-nav`]:{order:1},[`> ${n}-content-holder`]:{order:0}},[`&${n}-right`]:{[`> ${n}-nav`]:{order:0},[`> ${n}-content-holder`]:{order:1}},[`&${n}-card${n}-top, &${n}-card${n}-bottom`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-tab + ${n}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${n}-dropdown-rtl`]:{direction:"rtl"},[`${n}-menu-item`]:{[`${n}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},_8t=e=>{const{componentCls:n,tabsCardPadding:r,cardHeight:i,cardGutter:o,itemHoverColor:a,itemActiveColor:s,colorBorderSecondary:l}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),{display:"flex",[`> ${n}-nav, > div > ${n}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${n}-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"}},[`${n}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${n}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${n}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${n}-nav-more`]:{position:"relative",padding:r,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:"''"}},[`${n}-nav-add`]:Object.assign({minWidth:i,marginLeft:{_skip_check_:!0,value:o},padding:Ye(e.paddingXS),background:"transparent",border:`${Ye(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:s}},Rp(e,-3))},[`${n}-extra-content`]:{flex:"none"},[`${n}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),v8t(e)),{[`${n}-content`]:{position:"relative",width:"100%"},[`${n}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${n}-tabpane`]:Object.assign(Object.assign({},Rp(e)),{"&-hidden":{display:"none"}})}),[`${n}-centered`]:{[`> ${n}-nav, > div > ${n}-nav`]:{[`${n}-nav-wrap`]:{[`&:not([class*='${n}-nav-wrap-ping']) > ${n}-nav-list`]:{margin:"auto"}}}}}},b8t=e=>{const n=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:n,cardPadding:`${(n-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}},S8t=Yr("Tabs",e=>{const n=wr(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ye(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ye(e.horizontalItemGutter)}`});return[m8t(n),y8t(n),g8t(n),h8t(n),p8t(n),_8t(n),f8t(n)]},b8t),E8t=()=>null;var C8t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Sk=e=>{var n,r,i,o,a,s,l,c,u,d,f;const{type:p,className:h,rootClassName:g,size:v,onEdit:y,hideAdd:_,centered:S,addIcon:b,removeIcon:E,moreIcon:w,more:C,popupClassName:x,children:T,items:R,animated:O,style:M,indicatorSize:P,indicator:k}=e,$=C8t(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:U}=$,{direction:z,tabs:D,getPrefixCls:B,getPopupContainer:Y}=m.useContext(Cn),q=B("tabs",U),K=po(q),[H,G,Q]=S8t(q,K);let le;p==="editable-card"&&(le={onEdit:(pe,me)=>{let{key:ve,event:he}=me;y==null||y(pe==="add"?he:ve,pe)},removeIcon:(n=E??(D==null?void 0:D.removeIcon))!==null&&n!==void 0?n:m.createElement(Up,null),addIcon:(b??(D==null?void 0:D.addIcon))||m.createElement(_A,null),showAdd:_!==!0});const Z=B(),j=Xs(v),F=d8t(R,T),te=l8t(q,O),oe=Object.assign(Object.assign({},D==null?void 0:D.style),M),de={align:(r=k==null?void 0:k.align)!==null&&r!==void 0?r:(i=D==null?void 0:D.indicator)===null||i===void 0?void 0:i.align,size:(l=(a=(o=k==null?void 0:k.size)!==null&&o!==void 0?o:P)!==null&&a!==void 0?a:(s=D==null?void 0:D.indicator)===null||s===void 0?void 0:s.size)!==null&&l!==void 0?l:D==null?void 0:D.indicatorSize};return H(m.createElement(a8t,Object.assign({direction:z,getPopupContainer:Y},$,{items:F,className:Ce({[`${q}-${j}`]:j,[`${q}-card`]:["card","editable-card"].includes(p),[`${q}-editable-card`]:p==="editable-card",[`${q}-centered`]:S},D==null?void 0:D.className,h,g,G,Q,K),popupClassName:Ce(x,G,Q,K),style:oe,editable:le,more:Object.assign({icon:(f=(d=(u=(c=D==null?void 0:D.more)===null||c===void 0?void 0:c.icon)!==null&&u!==void 0?u:D==null?void 0:D.moreIcon)!==null&&d!==void 0?d:w)!==null&&f!==void 0?f:m.createElement(lde,null),transitionName:`${Z}-slide-up`},C),prefixCls:q,animated:te,indicator:de})))};Sk.TabPane=E8t;var w8t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const oze=e=>{var{prefixCls:n,className:r,hoverable:i=!0}=e,o=w8t(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=m.useContext(Cn),s=a("card",n),l=Ce(`${s}-grid`,r,{[`${s}-grid-hoverable`]:i});return m.createElement("div",Object.assign({},o,{className:l}))},x8t=e=>{const{antCls:n,componentCls:r,headerHeight:i,headerPadding:o,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:i,marginBottom:-1,padding:`0 ${Ye(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)} 0 0`},Nm()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Sf),{[`
> ${r}-typography,
> ${r}-typography-edit-content
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${n}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},T8t=e=>{const{cardPaddingBase:n,colorBorderSecondary:r,cardShadow:i,lineWidth:o}=e;return{width:"33.33%",padding:n,border:0,borderRadius:0,boxShadow:`
${Ye(o)} 0 0 0 ${r},
0 ${Ye(o)} 0 0 ${r},
${Ye(o)} ${Ye(o)} 0 0 ${r},
${Ye(o)} 0 0 0 ${r} inset,
0 ${Ye(o)} 0 0 ${r} inset;
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:i}}},O8t=e=>{const{componentCls:n,iconCls:r,actionsLiMargin:i,cardActionsIconSize:o,colorBorderSecondary:a,actionsBg:s}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:s,borderTop:`${Ye(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)}`},Nm()),{"& > li":{margin:i,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(${n}-btn), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Ye(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:o,lineHeight:Ye(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Ye(e.lineWidth)} ${e.lineType} ${a}`}}})},R8t=e=>Object.assign(Object.assign({margin:`${Ye(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Nm()),{"&-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},Sf),"&-description":{color:e.colorTextDescription}}),I8t=e=>{const{componentCls:n,colorFillAlter:r,headerPadding:i,bodyPadding:o}=e;return{[`${n}-head`]:{padding:`0 ${Ye(i)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${n}-body`]:{padding:`${Ye(e.padding)} ${Ye(o)}`}}},N8t=e=>{const{componentCls:n}=e;return{overflow:"hidden",[`${n}-body`]:{userSelect:"none"}}},M8t=e=>{const{componentCls:n,cardShadow:r,cardHeadPadding:i,colorBorderSecondary:o,boxShadowTertiary:a,bodyPadding:s,extraColor:l}=e;return{[n]:Object.assign(Object.assign({},li(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:a},[`${n}-head`]:x8t(e),[`${n}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:s,borderRadius:`0 0 ${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)}`},Nm()),[`${n}-grid`]:T8t(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:O8t(e),[`${n}-meta`]:R8t(e)}),[`${n}-bordered`]:{border:`${Ye(e.lineWidth)} ${e.lineType} ${o}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${Ye(e.borderRadiusLG)} ${Ye(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> div${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:i}}},[`${n}-type-inner`]:I8t(e),[`${n}-loading`]:N8t(e),[`${n}-rtl`]:{direction:"rtl"}}},P8t=e=>{const{componentCls:n,bodyPaddingSM:r,headerPaddingSM:i,headerHeightSM:o,headerFontSizeSM:a}=e;return{[`${n}-small`]:{[`> ${n}-head`]:{minHeight:o,padding:`0 ${Ye(i)}`,fontSize:a,[`> ${n}-head-wrapper`]:{[`> ${n}-extra`]:{fontSize:e.fontSize}}},[`> ${n}-body`]:{padding:r}},[`${n}-small${n}-contain-tabs`]:{[`> ${n}-head`]:{[`${n}-head-title, ${n}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},A8t=e=>{var n,r;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:(n=e.bodyPadding)!==null&&n!==void 0?n:e.paddingLG,headerPadding:(r=e.headerPadding)!==null&&r!==void 0?r:e.paddingLG}},D8t=Yr("Card",e=>{const n=wr(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[M8t(n),P8t(n)]},A8t);var RCe=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const k8t=e=>{const{actionClasses:n,actions:r=[],actionStyle:i}=e;return m.createElement("ul",{className:n,style:i},r.map((o,a)=>{const s=`action-${a}`;return m.createElement("li",{style:{width:`${100/r.length}%`},key:s},m.createElement("span",null,o))}))},L8t=m.forwardRef((e,n)=>{const{prefixCls:r,className:i,rootClassName:o,style:a,extra:s,headStyle:l={},bodyStyle:c={},title:u,loading:d,bordered:f=!0,size:p,type:h,cover:g,actions:v,tabList:y,children:_,activeTabKey:S,defaultActiveTabKey:b,tabBarExtraContent:E,hoverable:w,tabProps:C={},classNames:x,styles:T}=e,R=RCe(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:O,direction:M,card:P}=m.useContext(Cn),k=De=>{var Ae;(Ae=e.onTabChange)===null||Ae===void 0||Ae.call(e,De)},$=De=>{var Ae;return Ce((Ae=P==null?void 0:P.classNames)===null||Ae===void 0?void 0:Ae[De],x==null?void 0:x[De])},U=De=>{var Ae;return Object.assign(Object.assign({},(Ae=P==null?void 0:P.styles)===null||Ae===void 0?void 0:Ae[De]),T==null?void 0:T[De])},z=m.useMemo(()=>{let De=!1;return m.Children.forEach(_,Ae=>{(Ae==null?void 0:Ae.type)===oze&&(De=!0)}),De},[_]),D=O("card",r),[B,Y,q]=D8t(D),K=m.createElement(Zy,{loading:!0,active:!0,paragraph:{rows:4},title:!1},_),H=S!==void 0,G=Object.assign(Object.assign({},C),{[H?"activeKey":"defaultActiveKey"]:H?S:b,tabBarExtraContent:E});let Q;const le=Xs(p),Z=!le||le==="default"?"large":le,j=y?m.createElement(Sk,Object.assign({size:Z},G,{className:`${D}-head-tabs`,onChange:k,items:y.map(De=>{var{tab:Ae}=De,Ee=RCe(De,["tab"]);return Object.assign({label:Ae},Ee)})})):null;if(u||s||j){const De=Ce(`${D}-head`,$("header")),Ae=Ce(`${D}-head-title`,$("title")),Ee=Ce(`${D}-extra`,$("extra")),Re=Object.assign(Object.assign({},l),U("header"));Q=m.createElement("div",{className:De,style:Re},m.createElement("div",{className:`${D}-head-wrapper`},u&&m.createElement("div",{className:Ae,style:U("title")},u),s&&m.createElement("div",{className:Ee,style:U("extra")},s)),j)}const F=Ce(`${D}-cover`,$("cover")),te=g?m.createElement("div",{className:F,style:U("cover")},g):null,oe=Ce(`${D}-body`,$("body")),de=Object.assign(Object.assign({},c),U("body")),pe=m.createElement("div",{className:oe,style:de},d?K:_),me=Ce(`${D}-actions`,$("actions")),ve=v!=null&&v.length?m.createElement(k8t,{actionClasses:me,actionStyle:U("actions"),actions:v}):null,he=Wr(R,["onTabChange"]),be=Ce(D,P==null?void 0:P.className,{[`${D}-loading`]:d,[`${D}-bordered`]:f,[`${D}-hoverable`]:w,[`${D}-contain-grid`]:z,[`${D}-contain-tabs`]:y==null?void 0:y.length,[`${D}-${le}`]:le,[`${D}-type-${h}`]:!!h,[`${D}-rtl`]:M==="rtl"},i,o,Y,q),we=Object.assign(Object.assign({},P==null?void 0:P.style),a);return B(m.createElement("div",Object.assign({ref:n},he,{className:be,style:we}),Q,te,pe,ve))});var $8t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const F8t=e=>{const{prefixCls:n,className:r,avatar:i,title:o,description:a}=e,s=$8t(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=m.useContext(Cn),c=l("card",n),u=Ce(`${c}-meta`,r),d=i?m.createElement("div",{className:`${c}-meta-avatar`},i):null,f=o?m.createElement("div",{className:`${c}-meta-title`},o):null,p=a?m.createElement("div",{className:`${c}-meta-description`},a):null,h=f||p?m.createElement("div",{className:`${c}-meta-detail`},f,p):null;return m.createElement("div",Object.assign({},s,{className:u}),d,h)},bu=L8t;bu.Grid=oze;bu.Meta=F8t;function B8t(e,n,r){var i=r||{},o=i.noTrailing,a=o===void 0?!1:o,s=i.noLeading,l=s===void 0?!1:s,c=i.debounceMode,u=c===void 0?void 0:c,d,f=!1,p=0;function h(){d&&clearTimeout(d)}function g(y){var _=y||{},S=_.upcomingOnly,b=S===void 0?!1:S;h(),f=!b}function v(){for(var y=arguments.length,_=new Array(y),S=0;S<y;S++)_[S]=arguments[S];var b=this,E=Date.now()-p;if(f)return;function w(){p=Date.now(),n.apply(b,_)}function C(){d=void 0}!l&&u&&!d&&w(),h(),u===void 0&&E>e?l?(p=Date.now(),a||(d=setTimeout(u?C:w,e))):w():a!==!0&&(d=setTimeout(u?C:w,u===void 0?e-E:e))}return v.cancel=g,v}function j8t(e,n,r){var i={},o=i.atBegin,a=o===void 0?!1:o;return B8t(e,n,{debounceMode:a!==!1})}var pI=m.createContext({}),WT="__rc_cascader_search_mark__",U8t=function(n,r,i){var o=i.label,a=o===void 0?"":o;return r.some(function(s){return String(s[a]).toLowerCase().includes(n.toLowerCase())})},H8t=function(n,r,i,o){return r.map(function(a){return a[o.label]}).join(" / ")},z8t=function(n,r,i,o,a,s){var l=a.filter,c=l===void 0?U8t:l,u=a.render,d=u===void 0?H8t:u,f=a.limit,p=f===void 0?50:f,h=a.sort;return m.useMemo(function(){var g=[];if(!n)return[];function v(y,_){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;y.forEach(function(b){if(!(!h&&p!==!1&&p>0&&g.length>=p)){var E=[].concat(Tt(_),[b]),w=b[i.children],C=S||b.disabled;if((!w||w.length===0||s)&&c(n,E,{label:i.label})){var x;g.push(ee(ee({},b),{},(x={disabled:C},fe(x,i.label,d(n,E,o,i)),fe(x,WT,E),fe(x,i.children,void 0),x)))}w&&v(b[i.children],E,C)}})}return v(r,[]),h&&g.sort(function(y,_){return h(y[WT],_[WT],n,i)}),p!==!1&&p>0?g.slice(0,p):g},[n,r,i,o,d,s,c,h,p])},Cde="__RC_CASCADER_SPLIT__",aze="SHOW_PARENT",sze="SHOW_CHILD";function Gh(e){return e.join(Cde)}function $O(e){return e.map(Gh)}function V8t(e){return e.split(Cde)}function lze(e){var n=e||{},r=n.label,i=n.value,o=n.children,a=i||"value";return{label:r||"label",value:a,key:a,children:o||"children"}}function c2(e,n){var r,i;return(r=e.isLeaf)!==null&&r!==void 0?r:!((i=e[n.children])!==null&&i!==void 0&&i.length)}function G8t(e){var n=e.parentElement;if(n){var r=e.offsetTop-n.offsetTop;r-n.scrollTop<0?n.scrollTo({top:r}):r+e.offsetHeight-n.scrollTop>n.offsetHeight&&n.scrollTo({top:r+e.offsetHeight-n.offsetHeight})}}function cze(e,n){return e.map(function(r){var i;return(i=r[WT])===null||i===void 0?void 0:i.map(function(o){return o[n.value]})})}function W8t(e){return Array.isArray(e)&&Array.isArray(e[0])}function W8(e){return e?W8t(e)?e:(e.length===0?[]:[e]).map(function(n){return Array.isArray(n)?n:[n]}):[]}function uze(e,n,r){var i=new Set(e),o=n();return e.filter(function(a){var s=o[a],l=s?s.parent:null,c=s?s.children:null;return s&&s.node.disabled?!0:r===sze?!(c&&c.some(function(u){return u.key&&i.has(u.key)})):!(l&&!l.node.disabled&&i.has(l.key))})}function FO(e,n,r){for(var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=n,a=[],s=function(){var u,d,f,p=e[l],h=(u=o)===null||u===void 0?void 0:u.findIndex(function(v){var y=v[r.value];return i?String(y)===String(p):y===p}),g=h!==-1?(d=o)===null||d===void 0?void 0:d[h]:null;a.push({value:(f=g==null?void 0:g[r.value])!==null&&f!==void 0?f:p,index:h,option:g}),o=g==null?void 0:g[r.children]},l=0;l<e.length;l+=1)s();return a}const Y8t=function(e,n,r,i,o){return m.useMemo(function(){var a=o||function(s){var l=i?s.slice(-1):s,c=" / ";return l.every(function(u){return["string","number"].includes(cn(u))})?l.join(c):l.reduce(function(u,d,f){var p=m.isValidElement(d)?m.cloneElement(d,{key:f}):d;return f===0?[p]:[].concat(Tt(u),[c,p])},[])};return e.map(function(s){var l,c=FO(s,n,r),u=a(c.map(function(f){var p,h=f.option,g=f.value;return(p=h==null?void 0:h[r.label])!==null&&p!==void 0?p:g}),c.map(function(f){var p=f.option;return p})),d=Gh(s);return{label:u,value:d,key:d,valueCells:s,disabled:(l=c[c.length-1])===null||l===void 0||(l=l.option)===null||l===void 0?void 0:l.disabled}})},[e,n,r,o,i])};function dze(e,n){return m.useCallback(function(r){var i=[],o=[];return r.forEach(function(a){var s=FO(a,e,n);s.every(function(l){return l.option})?o.push(a):i.push(a)}),[o,i]},[e,n])}function rd(e,n){return e[n]}var q8t=["children"];function fze(e,n){return"".concat(e,"-").concat(n)}function K8t(e){return e&&e.type&&e.type.isTreeNode}function Ek(e,n){return e??n}function Y8(e){var n=e||{},r=n.title,i=n._title,o=n.key,a=n.children,s=r||"title";return{title:s,_title:i||[s],key:o||"key",children:a||"children"}}function X8t(e){function n(r){var i=Tl(r);return i.map(function(o){if(!K8t(o))return qi(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var a=o.key,s=o.props,l=s.children,c=Xt(s,q8t),u=ee({key:a},c),d=n(l);return d.length&&(u.children=d),u}).filter(function(o){return o})}return n(e)}function dq(e,n,r){var i=Y8(r),o=i._title,a=i.key,s=i.children,l=new Set(n===!0?[]:n),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(p,h){for(var g=fze(f?f.pos:"0",h),v=Ek(p[a],g),y,_=0;_<o.length;_+=1){var S=o[_];if(p[S]!==void 0){y=p[S];break}}var b=Object.assign(Wr(p,[].concat(Tt(o),[a,s])),{title:y,key:v,parent:f,pos:g,children:null,data:p,isStart:[].concat(Tt(f?f.isStart:[]),[h===0]),isEnd:[].concat(Tt(f?f.isEnd:[]),[h===d.length-1])});return c.push(b),n===!0||l.has(v)?b.children=u(p[s]||[],b):b.children=[],b})}return u(e),c}function Q8t(e,n,r){var i={};cn(r)==="object"?i=r:i={externalGetKey:r},i=i||{};var o=i,a=o.childrenPropName,s=o.externalGetKey,l=o.fieldNames,c=Y8(l),u=c.key,d=c.children,f=a||d,p;s?typeof s=="string"?p=function(v){return v[s]}:typeof s=="function"&&(p=function(v){return s(v)}):p=function(v,y){return Ek(v[u],y)};function h(g,v,y,_){var S=g?g[f]:e,b=g?fze(y.pos,v):"0",E=g?[].concat(Tt(_),[g]):[];if(g){var w=p(g,b),C={node:g,index:v,pos:b,key:w,parentPos:y.node?y.pos:null,level:y.level+1,nodes:E};n(C)}S&&S.forEach(function(x,T){h(x,T,{node:g,pos:b,level:y?y.level+1:-1},E)})}h(null)}function wde(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.initWrapper,i=n.processEntity,o=n.onProcessFinished,a=n.externalGetKey,s=n.childrenPropName,l=n.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=a||c,d={},f={},p={posEntities:d,keyEntities:f};return r&&(p=r(p)||p),Q8t(e,function(h){var g=h.node,v=h.index,y=h.pos,_=h.key,S=h.parentPos,b=h.level,E=h.nodes,w={node:g,nodes:E,index:v,key:_,pos:y,level:b},C=Ek(_,y);d[y]=w,f[C]=w,w.parent=d[S],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),i&&i(w,p)},{externalGetKey:u,childrenPropName:s,fieldNames:l}),o&&o(p),p}function eP(e,n){var r=n.expandedKeys,i=n.selectedKeys,o=n.loadedKeys,a=n.loadingKeys,s=n.checkedKeys,l=n.halfCheckedKeys,c=n.dragOverNodeKey,u=n.dropPosition,d=n.keyEntities,f=rd(d,e),p={eventKey:e,expanded:r.indexOf(e)!==-1,selected:i.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:s.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return p}function tl(e){var n=e.data,r=e.expanded,i=e.selected,o=e.checked,a=e.loaded,s=e.loading,l=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,p=e.active,h=e.eventKey,g=ee(ee({},n),{},{expanded:r,selected:i,checked:o,loaded:a,loading:s,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:p,key:h});return"props"in g||Object.defineProperty(g,"props",{get:function(){return qi(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}const Z8t=function(e,n){var r=m.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),i=m.useCallback(function(){return r.current.options!==e&&(r.current.options=e,r.current.info=wde(e,{fieldNames:n,initWrapper:function(a){return ee(ee({},a),{},{pathKeyEntities:{}})},processEntity:function(a,s){var l=a.nodes.map(function(c){return c[n.value]}).join(Cde);s.pathKeyEntities[l]=a,a.key=l}})),r.current.info.pathKeyEntities},[n,e]);return i};function pze(e,n){var r=m.useMemo(function(){return n||[]},[n]),i=Z8t(r,e),o=m.useCallback(function(a){var s=i();return a.map(function(l){var c=s[l].nodes;return c.map(function(u){return u[e.value]})})},[i,e]);return[r,i,o]}function J8t(e){return m.useMemo(function(){if(!e)return[!1,{}];var n={matchInputWidth:!0,limit:50};return e&&cn(e)==="object"&&(n=ee(ee({},n),e)),n.limit<=0&&(n.limit=!1),[!0,n]},[e])}function hze(e,n){var r=new Set;return e.forEach(function(i){n.has(i)||r.add(i)}),r}function eBt(e){var n=e||{},r=n.disabled,i=n.disableCheckbox,o=n.checkable;return!!(r||i)||o===!1}function tBt(e,n,r,i){for(var o=new Set(e),a=new Set,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)&&!i(h)&&v.filter(function(y){return!i(y.node)}).forEach(function(y){o.add(y.key)})})}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,S=o.has(_);g&&!S&&(g=!1),!v&&(S||a.has(_))&&(v=!0)}),g&&o.add(p.key),v&&a.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(hze(a,o))}}function nBt(e,n,r,i,o){for(var a=new Set(e),s=new Set(n),l=0;l<=i;l+=1){var c=r.get(l)||new Set;c.forEach(function(p){var h=p.key,g=p.node,v=p.children,y=v===void 0?[]:v;!a.has(h)&&!s.has(h)&&!o(g)&&y.filter(function(_){return!o(_.node)}).forEach(function(_){a.delete(_.key)})})}s=new Set;for(var u=new Set,d=i;d>=0;d-=1){var f=r.get(d)||new Set;f.forEach(function(p){var h=p.parent,g=p.node;if(!(o(g)||!p.parent||u.has(p.parent.key))){if(o(p.parent.node)){u.add(h.key);return}var v=!0,y=!1;(h.children||[]).filter(function(_){return!o(_.node)}).forEach(function(_){var S=_.key,b=a.has(S);v&&!b&&(v=!1),!y&&(b||s.has(S))&&(y=!0)}),v||a.delete(h.key),y&&s.add(h.key),u.add(h.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(hze(s,a))}}function fy(e,n,r,i){var o=[],a;a=eBt;var s=new Set(e.filter(function(d){var f=!!rd(r,d);return f||o.push(d),f})),l=new Map,c=0;Object.keys(r).forEach(function(d){var f=r[d],p=f.level,h=l.get(p);h||(h=new Set,l.set(p,h)),h.add(f),c=Math.max(c,p)}),qi(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return n===!0?u=tBt(s,l,c,a):u=nBt(s,n.halfCheckedKeys,l,c,a),u}function gze(e,n,r,i,o,a,s,l){return function(c){if(!e)n(c);else{var u=Gh(c),d=$O(r),f=$O(i),p=d.includes(u),h=o.some(function(C){return Gh(C)===u}),g=r,v=o;if(h&&!p)v=o.filter(function(C){return Gh(C)!==u});else{var y=p?d.filter(function(C){return C!==u}):[].concat(Tt(d),[u]),_=a(),S;if(p){var b=fy(y,{checked:!1,halfCheckedKeys:f},_);S=b.checkedKeys}else{var E=fy(y,!0,_);S=E.checkedKeys}var w=uze(S,a,l);g=s(w)}n([].concat(Tt(v),Tt(g)))}}}function mze(e,n,r,i,o){return m.useMemo(function(){var a=o(n),s=ke(a,2),l=s[0],c=s[1];if(!e||!n.length)return[l,[],c];var u=$O(l),d=r(),f=fy(u,!0,d),p=f.checkedKeys,h=f.halfCheckedKeys;return[i(p),i(h),c]},[e,n,r,i,o])}var rBt=m.memo(function(e){var n=e.children;return n},function(e,n){return!n.open});function iBt(e){var n,r=e.prefixCls,i=e.checked,o=e.halfChecked,a=e.disabled,s=e.onClick,l=e.disableCheckbox,c=m.useContext(pI),u=c.checkable,d=typeof u!="boolean"?u:null;return m.createElement("span",{className:Ce("".concat(r),(n={},fe(n,"".concat(r,"-checked"),i),fe(n,"".concat(r,"-indeterminate"),!i&&o),fe(n,"".concat(r,"-disabled"),a||l),n)),onClick:s},d)}var vze="__cascader_fix_label__";function oBt(e){var n=e.prefixCls,r=e.multiple,i=e.options,o=e.activeValue,a=e.prevValuePath,s=e.onToggleOpen,l=e.onSelect,c=e.onActive,u=e.checkedSet,d=e.halfCheckedSet,f=e.loadingKeys,p=e.isSelectable,h=e.disabled,g="".concat(n,"-menu"),v="".concat(n,"-menu-item"),y=m.useContext(pI),_=y.fieldNames,S=y.changeOnSelect,b=y.expandTrigger,E=y.expandIcon,w=y.loadingIcon,C=y.dropdownMenuColumnStyle,x=y.optionRender,T=b==="hover",R=function(P){return h||P},O=m.useMemo(function(){return i.map(function(M){var P,k=M.disabled,$=M.disableCheckbox,U=M[WT],z=(P=M[vze])!==null&&P!==void 0?P:M[_.label],D=M[_.value],B=c2(M,_),Y=U?U.map(function(Q){return Q[_.value]}):[].concat(Tt(a),[D]),q=Gh(Y),K=f.includes(q),H=u.has(q),G=d.has(q);return{disabled:k,label:z,value:D,isLeaf:B,isLoading:K,checked:H,halfChecked:G,option:M,disableCheckbox:$,fullPath:Y,fullPathKey:q}})},[i,u,_,d,f,a]);return m.createElement("ul",{className:g,role:"menu"},O.map(function(M){var P,k=M.disabled,$=M.label,U=M.value,z=M.isLeaf,D=M.isLoading,B=M.checked,Y=M.halfChecked,q=M.option,K=M.fullPath,H=M.fullPathKey,G=M.disableCheckbox,Q=function(){if(!R(k)){var F=Tt(K);T&&z&&F.pop(),c(F)}},le=function(){p(q)&&!R(k)&&l(K,z)},Z;return typeof q.title=="string"?Z=q.title:typeof $=="string"&&(Z=$),m.createElement("li",{key:H,className:Ce(v,(P={},fe(P,"".concat(v,"-expand"),!z),fe(P,"".concat(v,"-active"),o===U||o===H),fe(P,"".concat(v,"-disabled"),R(k)),fe(P,"".concat(v,"-loading"),D),P)),style:C,role:"menuitemcheckbox",title:Z,"aria-checked":B,"data-path-key":H,onClick:function(){Q(),!G&&(!r||z)&&le()},onDoubleClick:function(){S&&s(!1)},onMouseEnter:function(){T&&Q()},onMouseDown:function(F){F.preventDefault()}},r&&m.createElement(iBt,{prefixCls:"".concat(n,"-checkbox"),checked:B,halfChecked:Y,disabled:R(k)||G,disableCheckbox:G,onClick:function(F){G||(F.stopPropagation(),le())}}),m.createElement("div",{className:"".concat(v,"-content")},x?x(q):$),!D&&E&&!z&&m.createElement("div",{className:"".concat(v,"-expand-icon")},E),D&&w&&m.createElement("div",{className:"".concat(v,"-loading-icon")},w))}))}var aBt=function(n,r){var i=m.useContext(pI),o=i.values,a=o[0],s=m.useState([]),l=ke(s,2),c=l[0],u=l[1];return m.useEffect(function(){n||u(a||[])},[r,a]),[c,u]};const sBt=function(e,n,r,i,o,a,s){var l=s.direction,c=s.searchValue,u=s.toggleOpen,d=s.open,f=l==="rtl",p=m.useMemo(function(){for(var C=-1,x=n,T=[],R=[],O=i.length,M=cze(n,r),P=function(D){var B=x.findIndex(function(Y,q){return(M[q]?Gh(M[q]):Y[r.value])===i[D]});if(B===-1)return 1;C=B,T.push(C),R.push(i[D]),x=x[C][r.children]},k=0;k<O&&x&&!P(k);k+=1);for(var $=n,U=0;U<T.length-1;U+=1)$=$[T[U]][r.children];return[R,C,$,M]},[i,r,n]),h=ke(p,4),g=h[0],v=h[1],y=h[2],_=h[3],S=function(x){o(x)},b=function(x){var T=y.length,R=v;R===-1&&x<0&&(R=T);for(var O=0;O<T;O+=1){R=(R+x+T)%T;var M=y[R];if(M&&!M.disabled){var P=g.slice(0,-1).concat(_[R]?Gh(_[R]):M[r.value]);S(P);return}}},E=function(){if(g.length>1){var x=g.slice(0,-1);S(x)}else u(!1)},w=function(){var x,T=((x=y[v])===null||x===void 0?void 0:x[r.children])||[],R=T.find(function(M){return!M.disabled});if(R){var O=[].concat(Tt(g),[R[r.value]]);S(O)}};m.useImperativeHandle(e,function(){return{onKeyDown:function(x){var T=x.which;switch(T){case At.UP:case At.DOWN:{var R=0;T===At.UP?R=-1:T===At.DOWN&&(R=1),R!==0&&b(R);break}case At.LEFT:{if(c)break;f?w():E();break}case At.RIGHT:{if(c)break;f?E():w();break}case At.BACKSPACE:{c||E();break}case At.ENTER:{if(g.length){var O=y[v],M=(O==null?void 0:O[WT])||[];M.length?a(M.map(function(P){return P[r.value]}),M[M.length-1]):a(g,y[v])}break}case At.ESC:u(!1),d&&x.stopPropagation()}},onKeyUp:function(){}}})};var yze=m.forwardRef(function(e,n){var r,i,o,a=e.prefixCls,s=e.multiple,l=e.searchValue,c=e.toggleOpen,u=e.notFoundContent,d=e.direction,f=e.open,p=e.disabled,h=m.useRef(null),g=d==="rtl",v=m.useContext(pI),y=v.options,_=v.values,S=v.halfValues,b=v.fieldNames,E=v.changeOnSelect,w=v.onSelect,C=v.searchOptions,x=v.dropdownPrefixCls,T=v.loadData,R=v.expandTrigger,O=x||a,M=m.useState([]),P=ke(M,2),k=P[0],$=P[1],U=function(ve){if(!(!T||l)){var he=FO(ve,y,b),be=he.map(function(Ae){var Ee=Ae.option;return Ee}),we=be[be.length-1];if(we&&!c2(we,b)){var De=Gh(ve);$(function(Ae){return[].concat(Tt(Ae),[De])}),T(be)}}};m.useEffect(function(){k.length&&k.forEach(function(me){var ve=V8t(me),he=FO(ve,y,b,!0).map(function(we){var De=we.option;return De}),be=he[he.length-1];(!be||be[b.children]||c2(be,b))&&$(function(we){return we.filter(function(De){return De!==me})})})},[y,k,b]);var z=m.useMemo(function(){return new Set($O(_))},[_]),D=m.useMemo(function(){return new Set($O(S))},[S]),B=aBt(s,f),Y=ke(B,2),q=Y[0],K=Y[1],H=function(ve){K(ve),U(ve)},G=function(ve){if(p)return!1;var he=ve.disabled,be=c2(ve,b);return!he&&(be||E||s)},Q=function(ve,he){var be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;w(ve),!s&&(he||E&&(R==="hover"||be))&&c(!1)},le=m.useMemo(function(){return l?C:y},[l,C,y]),Z=m.useMemo(function(){for(var me=[{options:le}],ve=le,he=cze(ve,b),be=function(){var Ae=q[we],Ee=ve.find(function(Te,Oe){return(he[Oe]?Gh(he[Oe]):Te[b.value])===Ae}),Re=Ee==null?void 0:Ee[b.children];if(!(Re!=null&&Re.length))return 1;ve=Re,me.push({options:Re})},we=0;we<q.length&&!be();we+=1);return me},[le,q,b]),j=function(ve,he){G(he)&&Q(ve,c2(he,b),!0)};sBt(n,le,b,q,H,j,{direction:d,searchValue:l,toggleOpen:c,open:f}),m.useEffect(function(){if(!l)for(var me=0;me<q.length;me+=1){var ve,he=q.slice(0,me+1),be=Gh(he),we=(ve=h.current)===null||ve===void 0?void 0:ve.querySelector('li[data-path-key="'.concat(be.replace(/\\{0,2}"/g,'\\"'),'"]'));we&&G8t(we)}},[q,l]);var F=!((r=Z[0])!==null&&r!==void 0&&(r=r.options)!==null&&r!==void 0&&r.length),te=[(i={},fe(i,b.value,"__EMPTY__"),fe(i,vze,u),fe(i,"disabled",!0),i)],oe=ee(ee({},e),{},{multiple:!F&&s,onSelect:Q,onActive:H,onToggleOpen:c,checkedSet:z,halfCheckedSet:D,loadingKeys:k,isSelectable:G}),de=F?[{options:te}]:Z,pe=de.map(function(me,ve){var he=q.slice(0,ve),be=q[ve];return m.createElement(oBt,ft({key:ve},oe,{prefixCls:O,options:me.options,prevValuePath:he,activeValue:be}))});return m.createElement(rBt,{open:f},m.createElement("div",{className:Ce("".concat(O,"-menus"),(o={},fe(o,"".concat(O,"-menu-empty"),F),fe(o,"".concat(O,"-rtl"),g),o)),ref:h},pe))}),lBt=m.forwardRef(function(e,n){var r=jue();return m.createElement(yze,ft({},e,r,{ref:n}))});function cBt(){}function _ze(e){var n,r=e,i=r.prefixCls,o=i===void 0?"rc-cascader":i,a=r.style,s=r.className,l=r.options,c=r.checkable,u=r.defaultValue,d=r.value,f=r.fieldNames,p=r.changeOnSelect,h=r.onChange,g=r.showCheckedStrategy,v=r.loadData,y=r.expandTrigger,_=r.expandIcon,S=_===void 0?">":_,b=r.loadingIcon,E=r.direction,w=r.notFoundContent,C=w===void 0?"Not Found":w,x=r.disabled,T=!!c,R=dr(u,{value:d,postState:W8}),O=ke(R,2),M=O[0],P=O[1],k=m.useMemo(function(){return lze(f)},[JSON.stringify(f)]),$=pze(k,l),U=ke($,3),z=U[0],D=U[1],B=U[2],Y=dze(z,k),q=mze(T,M,D,B,Y),K=ke(q,3),H=K[0],G=K[1],Q=K[2],le=Sr(function(de){if(P(de),h){var pe=W8(de),me=pe.map(function(be){return FO(be,z,k).map(function(we){return we.option})}),ve=T?pe:pe[0],he=T?me:me[0];h(ve,he)}}),Z=gze(T,le,H,G,Q,D,B,g),j=Sr(function(de){Z(de)}),F=m.useMemo(function(){return{options:z,fieldNames:k,values:H,halfValues:G,changeOnSelect:p,onSelect:j,checkable:c,searchOptions:[],dropdownPrefixCls:void 0,loadData:v,expandTrigger:y,expandIcon:S,loadingIcon:b,dropdownMenuColumnStyle:void 0}},[z,k,H,G,p,j,c,v,y,S,b]),te="".concat(o,"-panel"),oe=!z.length;return m.createElement(pI.Provider,{value:F},m.createElement("div",{className:Ce(te,(n={},fe(n,"".concat(te,"-rtl"),E==="rtl"),fe(n,"".concat(te,"-empty"),oe),n),s),style:a},oe?C:m.createElement(yze,{prefixCls:o,searchValue:"",multiple:T,toggleOpen:cBt,open:!0,direction:E,disabled:x})))}var uBt=["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"],Ck=m.forwardRef(function(e,n){var r=e.id,i=e.prefixCls,o=i===void 0?"rc-cascader":i,a=e.fieldNames,s=e.defaultValue,l=e.value,c=e.changeOnSelect,u=e.onChange,d=e.displayRender,f=e.checkable,p=e.autoClearSearchValue,h=p===void 0?!0:p,g=e.searchValue,v=e.onSearch,y=e.showSearch,_=e.expandTrigger,S=e.options,b=e.dropdownPrefixCls,E=e.loadData,w=e.popupVisible,C=e.open,x=e.popupClassName,T=e.dropdownClassName,R=e.dropdownMenuColumnStyle,O=e.dropdownStyle,M=e.popupPlacement,P=e.placement,k=e.onDropdownVisibleChange,$=e.onPopupVisibleChange,U=e.expandIcon,z=U===void 0?">":U,D=e.loadingIcon,B=e.children,Y=e.dropdownMatchSelectWidth,q=Y===void 0?!1:Y,K=e.showCheckedStrategy,H=K===void 0?aze:K,G=e.optionRender,Q=Xt(e,uBt),le=Wue(r),Z=!!f,j=dr(s,{value:l,postState:W8}),F=ke(j,2),te=F[0],oe=F[1],de=m.useMemo(function(){return lze(a)},[JSON.stringify(a)]),pe=pze(de,S),me=ke(pe,3),ve=me[0],he=me[1],be=me[2],we=dr("",{value:g,postState:function(Bt){return Bt||""}}),De=ke(we,2),Ae=De[0],Ee=De[1],Re=function(Bt,Vt){Ee(Bt),Vt.source!=="blur"&&v&&v(Bt)},Te=J8t(y),Oe=ke(Te,2),Ne=Oe[0],je=Oe[1],ne=z8t(Ae,ve,de,b||o,je,c||Z),J=dze(ve,de),ae=mze(Z,te,he,be,J),Se=ke(ae,3),xe=Se[0],ue=Se[1],Me=Se[2],$e=m.useMemo(function(){var Wt=$O(xe),Bt=uze(Wt,he,H);return[].concat(Tt(Me),Tt(be(Bt)))},[xe,he,be,Me,H]),ge=Y8t($e,ve,de,Z,d),Ve=Sr(function(Wt){if(oe(Wt),u){var Bt=W8(Wt),Vt=Bt.map(function(it){return FO(it,ve,de).map(function(nt){return nt.option})}),rn=Z?Bt:Bt[0],tt=Z?Vt:Vt[0];u(rn,tt)}}),st=gze(Z,Ve,xe,ue,Me,he,be,H),Je=Sr(function(Wt){(!Z||h)&&Ee(""),st(Wt)}),ot=function(Bt,Vt){if(Vt.type==="clear"){Ve([]);return}var rn=Vt.values[0],tt=rn.valueCells;Je(tt)},Xe=C!==void 0?C:w,Ze=T||x,bt=P||M,at=function(Bt){k==null||k(Bt),$==null||$(Bt)},pt=m.useMemo(function(){return{options:ve,fieldNames:de,values:xe,halfValues:ue,changeOnSelect:c,onSelect:Je,checkable:f,searchOptions:ne,dropdownPrefixCls:b,loadData:E,expandTrigger:_,expandIcon:z,loadingIcon:D,dropdownMenuColumnStyle:R,optionRender:G}},[ve,de,xe,ue,c,Je,f,ne,b,E,_,z,D,R,G]),Ct=!(Ae?ne:ve).length,It=Ae&&je.matchInputWidth||Ct?{}:{minWidth:"auto"};return m.createElement(pI.Provider,{value:pt},m.createElement(Hue,ft({},Q,{ref:n,id:le,prefixCls:o,autoClearSearchValue:h,dropdownMatchSelectWidth:q,dropdownStyle:ee(ee({},It),O),displayValues:ge,onDisplayValuesChange:ot,mode:Z?"multiple":void 0,searchValue:Ae,onSearch:Re,showSearch:Ne,OptionList:lBt,emptyOptions:Ct,open:Xe,dropdownClassName:Ze,placement:bt,onDropdownVisibleChange:at,getRawInputElement:function(){return B}})))});Ck.SHOW_PARENT=aze;Ck.SHOW_CHILD=sze;Ck.Panel=_ze;function bze(e,n){const{getPrefixCls:r,direction:i,renderEmpty:o}=m.useContext(Cn),a=n||i,s=r("select",e),l=r("cascader",e);return[s,l,a,o]}function Sze(e,n){return m.useMemo(()=>n?m.createElement("span",{className:`${e}-checkbox-inner`}):!1,[n])}const Eze=(e,n,r)=>{let i=r;r||(i=n?m.createElement(yA,null):m.createElement(w0,null));const o=m.createElement("span",{className:`${e}-menu-item-loading-icon`},m.createElement(Mm,{spin:!0}));return m.useMemo(()=>[i,o],[i])},dBt=e=>{const{checkboxCls:n}=e,r=`${n}-wrapper`;return[{[`${n}-group`]:Object.assign(Object.assign({},li(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},li(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[n]:Object.assign(Object.assign({},li(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${n}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${n}-inner`]:Object.assign({},Qy(e))},[`${n}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Ye(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:`${Ye(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
${r}:not(${r}-disabled),
${n}:not(${n}-disabled)
`]:{[`&:hover ${n}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${n}-checked:not(${n}-disabled) ${n}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${n}-checked:not(${n}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-checked`]:{[`${n}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
${r}-checked:not(${r}-disabled),
${n}-checked:not(${n}-disabled)
`]:{[`&:hover ${n}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[n]:{"&-indeterminate":{[`${n}-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 ${n}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${n}-disabled`]:{[`&, ${n}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${n}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${n}-indeterminate ${n}-inner::after`]:{background:e.colorTextDisabled}}}]};function _U(e,n){const r=wr(n,{checkboxCls:`.${e}`,checkboxSize:n.controlInteractiveSize});return[dBt(r)]}const Cze=Yr("Checkbox",(e,n)=>{let{prefixCls:r}=n;return[_U(r,e)]}),wze=e=>{const{prefixCls:n,componentCls:r}=e,i=`${r}-menu-item`,o=`
&${i}-expand ${i}-expand-icon,
${i}-loading-icon
`;return[_U(`${n}-checkbox`,e),{[r]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${r}-menu-empty`]:{[`${r}-menu`]:{width:"100%",height:"auto",[i]:{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:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},Sf),{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"},[o]:{color:e.colorTextDisabled}},[`&-active:not(${i}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[o]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},fBt=e=>{const{componentCls:n,antCls:r}=e;return[{[n]:{width:e.controlWidth}},{[`${n}-dropdown`]:[{[`&${r}-select-dropdown`]:{padding:0}},wze(e)]},{[`${n}-dropdown-rtl`]:{direction:"rtl"}},nw(e)]},xze=e=>{const n=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${n}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},Tze=Yr("Cascader",e=>[fBt(e)],xze),pBt=e=>{const{componentCls:n}=e;return{[`${n}-panel`]:[wze(e),{display:"inline-flex",border:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${n}-menus`]:{alignItems:"stretch"},[`${n}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},hBt=_7e(["Cascader","Panel"],e=>pBt(e),xze);function gBt(e){const{prefixCls:n,className:r,multiple:i,rootClassName:o,notFoundContent:a,direction:s,expandIcon:l,disabled:c}=e,u=m.useContext(xs),d=c??u,[f,p,h,g]=bze(n,s),v=po(p),[y,_,S]=Tze(p,v);hBt(p);const b=h==="rtl",[E,w]=Eze(f,b,l),C=a||(g==null?void 0:g("Cascader"))||m.createElement(tU,{componentName:"Cascader"}),x=Sze(p,i);return y(m.createElement(_ze,Object.assign({},e,{checkable:x,prefixCls:p,className:Ce(r,_,o,S,v),notFoundContent:C,direction:h,expandIcon:E,loadingIcon:w,disabled:d})))}var mBt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const{SHOW_CHILD:vBt,SHOW_PARENT:yBt}=Ck;function _Bt(e,n,r){const i=e.toLowerCase().split(n).reduce((s,l,c)=>c===0?[l]:[].concat(Tt(s),[n,l]),[]),o=[];let a=0;return i.forEach((s,l)=>{const c=a+s.length;let u=e.slice(a,c);a=c,l%2===1&&(u=m.createElement("span",{className:`${r}-menu-item-keyword`,key:`separator-${l}`},u)),o.push(u)}),o}const bBt=(e,n,r,i)=>{const o=[],a=e.toLowerCase();return n.forEach((s,l)=>{l!==0&&o.push(" / ");let c=s[i.label];const u=typeof c;(u==="string"||u==="number")&&(c=_Bt(String(c),a,r)),o.push(c)}),o},hI=m.forwardRef((e,n)=>{var r;const{prefixCls:i,size:o,disabled:a,className:s,rootClassName:l,multiple:c,bordered:u=!0,transitionName:d,choiceTransitionName:f="",popupClassName:p,dropdownClassName:h,expandIcon:g,placement:v,showSearch:y,allowClear:_=!0,notFoundContent:S,direction:b,getPopupContainer:E,status:w,showArrow:C,builtinPlacements:x,style:T,variant:R}=e,O=mBt(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),M=Wr(O,["suffixIcon"]),{getPopupContainer:P,getPrefixCls:k,popupOverflow:$,cascader:U}=m.useContext(Cn),{status:z,hasFeedback:D,isFormItemInput:B,feedbackIcon:Y}=m.useContext(qs),q=Jy(z,w),[K,H,G,Q]=bze(i,b),le=G==="rtl",Z=k(),j=po(K),[F,te,oe]=Kue(K,j),de=po(H),[pe]=Tze(H,de),{compactSize:me,compactItemClassnames:ve}=_g(K,b),[he,be]=e_("cascader",R,u),we=S||(Q==null?void 0:Q("Cascader"))||m.createElement(tU,{componentName:"Cascader"}),De=Ce(p||h,`${H}-dropdown`,{[`${H}-dropdown-rtl`]:G==="rtl"},l,j,de,te,oe),Ae=m.useMemo(()=>{if(!y)return y;let ge={render:bBt};return typeof y=="object"&&(ge=Object.assign(Object.assign({},ge),y)),ge},[y]),Ee=Xs(ge=>{var Ve;return(Ve=o??me)!==null&&Ve!==void 0?Ve:ge}),Re=m.useContext(xs),Te=a??Re,[Oe,Ne]=Eze(K,le,g),je=Sze(H,c),ne=Que(e.suffixIcon,C),{suffixIcon:J,removeIcon:ae,clearIcon:Se}=nU(Object.assign(Object.assign({},e),{hasFeedback:D,feedbackIcon:Y,showSuffixIcon:ne,multiple:c,prefixCls:K,componentName:"Cascader"})),xe=m.useMemo(()=>v!==void 0?v:le?"bottomRight":"bottomLeft",[v,le]),ue=_===!0?{clearIcon:Se}:_,[Me]=Hp("SelectLike",(r=M.dropdownStyle)===null||r===void 0?void 0:r.zIndex),$e=m.createElement(Ck,Object.assign({prefixCls:K,className:Ce(!i&&H,{[`${K}-lg`]:Ee==="large",[`${K}-sm`]:Ee==="small",[`${K}-rtl`]:le,[`${K}-${he}`]:be,[`${K}-in-form-item`]:B},rg(K,q,D),ve,U==null?void 0:U.className,s,l,j,de,te,oe),disabled:Te,style:Object.assign(Object.assign({},U==null?void 0:U.style),T)},M,{builtinPlacements:que(x,$),direction:G,placement:xe,notFoundContent:we,allowClear:ue,showSearch:Ae,expandIcon:Oe,suffixIcon:J,removeIcon:ae,loadingIcon:Ne,checkable:je,dropdownClassName:De,dropdownPrefixCls:i||H,dropdownStyle:Object.assign(Object.assign({},M.dropdownStyle),{zIndex:Me}),choiceTransitionName:Kl(Z,"",f),transitionName:Kl(Z,"slide-up",d),getPopupContainer:E||P,ref:n}));return pe(F($e))}),SBt=tS(hI,"dropdownAlign",e=>Wr(e,["visible"]));hI.SHOW_PARENT=yBt;hI.SHOW_CHILD=vBt;hI.Panel=gBt;hI._InternalPanelDoNotUseOrYouWillBeFired=SBt;const Oze=V.createContext(null);var EBt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const CBt=(e,n)=>{var r;const{prefixCls:i,className:o,rootClassName:a,children:s,indeterminate:l=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:p}=e,h=EBt(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:g,direction:v,checkbox:y}=m.useContext(Cn),_=m.useContext(Oze),{isFormItemInput:S}=m.useContext(qs),b=m.useContext(xs),E=(r=(_==null?void 0:_.disabled)||p)!==null&&r!==void 0?r:b,w=m.useRef(h.value),C=m.useRef(null),x=Il(n,C);m.useEffect(()=>{_==null||_.registerValue(h.value)},[]),m.useEffect(()=>{if(!f)return h.value!==w.current&&(_==null||_.cancelValue(w.current),_==null||_.registerValue(h.value),w.current=h.value),()=>_==null?void 0:_.cancelValue(h.value)},[h.value]),m.useEffect(()=>{var B;!((B=C.current)===null||B===void 0)&&B.input&&(C.current.input.indeterminate=l)},[l]);const T=g("checkbox",i),R=po(T),[O,M,P]=Cze(T,R),k=Object.assign({},h);_&&!f&&(k.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),_.toggleOption&&_.toggleOption({label:s,value:h.value})},k.name=_.name,k.checked=_.value.includes(h.value));const $=Ce(`${T}-wrapper`,{[`${T}-rtl`]:v==="rtl",[`${T}-wrapper-checked`]:k.checked,[`${T}-wrapper-disabled`]:E,[`${T}-wrapper-in-form-item`]:S},y==null?void 0:y.className,o,a,P,R,M),U=Ce({[`${T}-indeterminate`]:l},L9,M),[z,D]=GHe(k.onClick);return O(m.createElement($9,{component:"Checkbox",disabled:E},m.createElement("label",{className:$,style:Object.assign(Object.assign({},y==null?void 0:y.style),c),onMouseEnter:u,onMouseLeave:d,onClick:z},m.createElement(VHe,Object.assign({},k,{onClick:D,prefixCls:T,className:U,disabled:E,ref:x})),s!==void 0&&m.createElement("span",null,s))))},Rze=m.forwardRef(CBt);var wBt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const xBt=m.forwardRef((e,n)=>{const{defaultValue:r,children:i,options:o=[],prefixCls:a,className:s,rootClassName:l,style:c,onChange:u}=e,d=wBt(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:p}=m.useContext(Cn),[h,g]=m.useState(d.value||r||[]),[v,y]=m.useState([]);m.useEffect(()=>{"value"in d&&g(d.value||[])},[d.value]);const _=m.useMemo(()=>o.map(U=>typeof U=="string"||typeof U=="number"?{label:U,value:U}:U),[o]),S=U=>{y(z=>z.filter(D=>D!==U))},b=U=>{y(z=>[].concat(Tt(z),[U]))},E=U=>{const z=h.indexOf(U.value),D=Tt(h);z===-1?D.push(U.value):D.splice(z,1),"value"in d||g(D),u==null||u(D.filter(B=>v.includes(B)).sort((B,Y)=>{const q=_.findIndex(H=>H.value===B),K=_.findIndex(H=>H.value===Y);return q-K}))},w=f("checkbox",a),C=`${w}-group`,x=po(w),[T,R,O]=Cze(w,x),M=Wr(d,["value","disabled"]),P=o.length?_.map(U=>m.createElement(Rze,{prefixCls:w,key:U.value.toString(),disabled:"disabled"in U?U.disabled:d.disabled,value:U.value,checked:h.includes(U.value),onChange:U.onChange,className:`${C}-item`,style:U.style,title:U.title,id:U.id,required:U.required},U.label)):i,k={toggleOption:E,value:h,disabled:d.disabled,name:d.name,registerValue:b,cancelValue:S},$=Ce(C,{[`${C}-rtl`]:p==="rtl"},s,l,O,x,R);return T(m.createElement("div",Object.assign({className:$,style:c},M,{ref:n}),m.createElement(Oze.Provider,{value:k},P)))}),ow=Rze;ow.Group=xBt;ow.__ANT_CHECKBOX=!0;const Ize=m.createContext({});var TBt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function ICe(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const OBt=["xs","sm","md","lg","xl","xxl"],bA=m.forwardRef((e,n)=>{const{getPrefixCls:r,direction:i}=m.useContext(Cn),{gutter:o,wrap:a}=m.useContext(Ize),{prefixCls:s,span:l,order:c,offset:u,push:d,pull:f,className:p,children:h,flex:g,style:v}=e,y=TBt(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),_=r("col",s),[S,b,E]=Zkt(_),w={};let C={};OBt.forEach(R=>{let O={};const M=e[R];typeof M=="number"?O.span=M:typeof M=="object"&&(O=M||{}),delete y[R],C=Object.assign(Object.assign({},C),{[`${_}-${R}-${O.span}`]:O.span!==void 0,[`${_}-${R}-order-${O.order}`]:O.order||O.order===0,[`${_}-${R}-offset-${O.offset}`]:O.offset||O.offset===0,[`${_}-${R}-push-${O.push}`]:O.push||O.push===0,[`${_}-${R}-pull-${O.pull}`]:O.pull||O.pull===0,[`${_}-rtl`]:i==="rtl"}),O.flex&&(C[`${_}-${R}-flex`]=!0,w[`--${_}-${R}-flex`]=ICe(O.flex))});const x=Ce(_,{[`${_}-${l}`]:l!==void 0,[`${_}-order-${c}`]:c,[`${_}-offset-${u}`]:u,[`${_}-push-${d}`]:d,[`${_}-pull-${f}`]:f},p,C,b,E),T={};if(o&&o[0]>0){const R=o[0]/2;T.paddingLeft=R,T.paddingRight=R}return g&&(T.flex=ICe(g),a===!1&&!T.minWidth&&(T.minWidth=0)),S(m.createElement("div",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign({},T),v),w),className:x,ref:n}),h))});var RBt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function NCe(e,n){const[r,i]=m.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&i(e),typeof e=="object")for(let a=0;a<kO.length;a++){const s=kO[a];if(!n[s])continue;const l=e[s];if(l!==void 0){i(l);return}}};return m.useEffect(()=>{o()},[JSON.stringify(e),n]),r}const xde=m.forwardRef((e,n)=>{const{prefixCls:r,justify:i,align:o,className:a,style:s,children:l,gutter:c=0,wrap:u}=e,d=RBt(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=m.useContext(Cn),[h,g]=m.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,y]=m.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),_=NCe(o,v),S=NCe(i,v),b=m.useRef(c),E=_Ue();m.useEffect(()=>{const D=E.subscribe(B=>{y(B);const Y=b.current||0;(!Array.isArray(Y)&&typeof Y=="object"||Array.isArray(Y)&&(typeof Y[0]=="object"||typeof Y[1]=="object"))&&g(B)});return()=>E.unsubscribe(D)},[]);const w=()=>{const D=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((Y,q)=>{if(typeof Y=="object")for(let K=0;K<kO.length;K++){const H=kO[K];if(h[H]&&Y[H]!==void 0){D[q]=Y[H];break}}else D[q]=Y}),D},C=f("row",r),[x,T,R]=Qkt(C),O=w(),M=Ce(C,{[`${C}-no-wrap`]:u===!1,[`${C}-${S}`]:S,[`${C}-${_}`]:_,[`${C}-rtl`]:p==="rtl"},a,T,R),P={},k=O[0]!=null&&O[0]>0?O[0]/-2:void 0;k&&(P.marginLeft=k,P.marginRight=k);const[$,U]=O;P.rowGap=U;const z=m.useMemo(()=>({gutter:[$,U],wrap:u}),[$,U,u]);return x(m.createElement(Ize.Provider,{value:z},m.createElement("div",Object.assign({},d,{className:M,style:Object.assign(Object.assign({},P),s),ref:n}),l)))}),IBt=e=>{const{componentCls:n,sizePaddingEdgeHorizontal:r,colorSplit:i,lineWidth:o,textPaddingInline:a,orientationMargin:s,verticalMarginInline:l}=e;return{[n]:Object.assign(Object.assign({},li(e)),{borderBlockStart:`${Ye(o)} solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Ye(o)} solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Ye(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${n}-with-text`]:{display:"flex",alignItems:"center",margin:`${Ye(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Ye(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${n}-with-text-left`]:{"&::before":{width:`calc(${s} * 100%)`},"&::after":{width:`calc(100% - ${s} * 100%)`}},[`&-horizontal${n}-with-text-right`]:{"&::before":{width:`calc(100% - ${s} * 100%)`},"&::after":{width:`calc(${s} * 100%)`}},[`${n}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${Ye(o)} 0 0`},[`&-horizontal${n}-with-text${n}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${n}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:i,borderStyle:"dotted",borderWidth:`${Ye(o)} 0 0`},[`&-horizontal${n}-with-text${n}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${n}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${n}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${n}-with-text-left${n}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${n}-inner-text`]:{paddingInlineStart:r}},[`&-horizontal${n}-with-text-right${n}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${n}-inner-text`]:{paddingInlineEnd:r}}})}},NBt=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),MBt=Yr("Divider",e=>{const n=wr(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[IBt(n)]},NBt,{unitless:{orientationMargin:!0}});var PBt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const ABt=e=>{const{getPrefixCls:n,direction:r,divider:i}=m.useContext(Cn),{prefixCls:o,type:a="horizontal",orientation:s="center",orientationMargin:l,className:c,rootClassName:u,children:d,dashed:f,variant:p="solid",plain:h,style:g}=e,v=PBt(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),y=n("divider",o),[_,S,b]=MBt(y),E=!!d,w=s==="left"&&l!=null,C=s==="right"&&l!=null,x=Ce(y,i==null?void 0:i.className,S,b,`${y}-${a}`,{[`${y}-with-text`]:E,[`${y}-with-text-${s}`]:E,[`${y}-dashed`]:!!f,[`${y}-${p}`]:p!=="solid",[`${y}-plain`]:!!h,[`${y}-rtl`]:r==="rtl",[`${y}-no-default-orientation-margin-left`]:w,[`${y}-no-default-orientation-margin-right`]:C},c,u),T=m.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),R=Object.assign(Object.assign({},w&&{marginLeft:T}),C&&{marginRight:T});return _(m.createElement("div",Object.assign({className:x,style:Object.assign(Object.assign({},i==null?void 0:i.style),g)},v,{role:"separator"}),d&&a!=="vertical"&&m.createElement("span",{className:`${y}-inner-text`,style:R},d)))};var MCe=function(n,r){if(!n)return null;var i={left:n.offsetLeft,right:n.parentElement.clientWidth-n.clientWidth-n.offsetLeft,width:n.clientWidth,top:n.offsetTop,bottom:n.parentElement.clientHeight-n.clientHeight-n.offsetTop,height:n.clientHeight};return r?{left:0,right:0,width:0,top:i.top,bottom:i.bottom,height:i.height}:{left:i.left,right:i.right,width:i.width,top:0,bottom:0,height:0}},Ug=function(n){return n!==void 0?"".concat(n,"px"):void 0};function DBt(e){var n=e.prefixCls,r=e.containerRef,i=e.value,o=e.getValueIndex,a=e.motionName,s=e.onMotionStart,l=e.onMotionEnd,c=e.direction,u=e.vertical,d=u===void 0?!1:u,f=m.useRef(null),p=m.useState(i),h=ke(p,2),g=h[0],v=h[1],y=function(U){var z,D=o(U),B=(z=r.current)===null||z===void 0?void 0:z.querySelectorAll(".".concat(n,"-item"))[D];return(B==null?void 0:B.offsetParent)&&B},_=m.useState(null),S=ke(_,2),b=S[0],E=S[1],w=m.useState(null),C=ke(w,2),x=C[0],T=C[1];ti(function(){if(g!==i){var $=y(g),U=y(i),z=MCe($,d),D=MCe(U,d);v(i),E(z),T(D),$&&U?s():l()}},[i]);var R=m.useMemo(function(){if(d){var $;return Ug(($=b==null?void 0:b.top)!==null&&$!==void 0?$:0)}return Ug(c==="rtl"?-(b==null?void 0:b.right):b==null?void 0:b.left)},[d,c,b]),O=m.useMemo(function(){if(d){var $;return Ug(($=x==null?void 0:x.top)!==null&&$!==void 0?$:0)}return Ug(c==="rtl"?-(x==null?void 0:x.right):x==null?void 0:x.left)},[d,c,x]),M=function(){return d?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},P=function(){return d?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},k=function(){E(null),T(null),l()};return!b||!x?null:m.createElement(Ws,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:M,onAppearActive:P,onVisibleChanged:k},function($,U){var z=$.className,D=$.style,B=ee(ee({},D),{},{"--thumb-start-left":R,"--thumb-start-width":Ug(b==null?void 0:b.width),"--thumb-active-left":O,"--thumb-active-width":Ug(x==null?void 0:x.width),"--thumb-start-top":R,"--thumb-start-height":Ug(b==null?void 0:b.height),"--thumb-active-top":O,"--thumb-active-height":Ug(x==null?void 0:x.height)}),Y={ref:Il(f,U),style:B,className:Ce("".concat(n,"-thumb"),z)};return m.createElement("div",Y)})}var kBt=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function LBt(e){if(typeof e.title<"u")return e.title;if(cn(e.label)!=="object"){var n;return(n=e.label)===null||n===void 0?void 0:n.toString()}}function $Bt(e){return e.map(function(n){if(cn(n)==="object"&&n!==null){var r=LBt(n);return ee(ee({},n),{},{title:r})}return{label:n==null?void 0:n.toString(),title:n==null?void 0:n.toString(),value:n}})}var FBt=function(n){var r=n.prefixCls,i=n.className,o=n.disabled,a=n.checked,s=n.label,l=n.title,c=n.value,u=n.name,d=n.onChange,f=n.onFocus,p=n.onBlur,h=n.onKeyDown,g=n.onKeyUp,v=n.onMouseDown,y=function(S){o||d(S,c)};return m.createElement("label",{className:Ce(i,fe({},"".concat(r,"-item-disabled"),o)),onMouseDown:v},m.createElement("input",{name:u,className:"".concat(r,"-item-input"),type:"radio",disabled:o,checked:a,onChange:y,onFocus:f,onBlur:p,onKeyDown:h,onKeyUp:g}),m.createElement("div",{className:"".concat(r,"-item-label"),title:l,"aria-selected":a},s))},BBt=m.forwardRef(function(e,n){var r,i,o=e.prefixCls,a=o===void 0?"rc-segmented":o,s=e.direction,l=e.vertical,c=e.options,u=c===void 0?[]:c,d=e.disabled,f=e.defaultValue,p=e.value,h=e.name,g=e.onChange,v=e.className,y=v===void 0?"":v,_=e.motionName,S=_===void 0?"thumb-motion":_,b=Xt(e,kBt),E=m.useRef(null),w=m.useMemo(function(){return Il(E,n)},[E,n]),C=m.useMemo(function(){return $Bt(u)},[u]),x=dr((r=C[0])===null||r===void 0?void 0:r.value,{value:p,defaultValue:f}),T=ke(x,2),R=T[0],O=T[1],M=m.useState(!1),P=ke(M,2),k=P[0],$=P[1],U=function(pe,me){O(me),g==null||g(me)},z=Wr(b,["children"]),D=m.useState(!1),B=ke(D,2),Y=B[0],q=B[1],K=m.useState(!1),H=ke(K,2),G=H[0],Q=H[1],le=function(){Q(!0)},Z=function(){Q(!1)},j=function(){q(!1)},F=function(pe){pe.key==="Tab"&&q(!0)},te=function(pe){var me=C.findIndex(function(we){return we.value===R}),ve=C.length,he=(me+pe+ve)%ve,be=C[he];be&&(O(be.value),g==null||g(be.value))},oe=function(pe){switch(pe.key){case"ArrowLeft":case"ArrowUp":te(-1);break;case"ArrowRight":case"ArrowDown":te(1);break}};return m.createElement("div",ft({role:"radiogroup","aria-label":"segmented control",tabIndex:d?void 0:0},z,{className:Ce(a,(i={},fe(i,"".concat(a,"-rtl"),s==="rtl"),fe(i,"".concat(a,"-disabled"),d),fe(i,"".concat(a,"-vertical"),l),i),y),ref:w}),m.createElement("div",{className:"".concat(a,"-group")},m.createElement(DBt,{vertical:l,prefixCls:a,value:R,containerRef:E,motionName:"".concat(a,"-").concat(S),direction:s,getValueIndex:function(pe){return C.findIndex(function(me){return me.value===pe})},onMotionStart:function(){$(!0)},onMotionEnd:function(){$(!1)}}),C.map(function(de){var pe;return m.createElement(FBt,ft({},de,{name:h,key:de.value,prefixCls:a,className:Ce(de.className,"".concat(a,"-item"),(pe={},fe(pe,"".concat(a,"-item-selected"),de.value===R&&!k),fe(pe,"".concat(a,"-item-focused"),G&&Y&&de.value===R),pe)),checked:de.value===R,onChange:U,onFocus:le,onBlur:Z,onKeyDown:oe,onKeyUp:F,onMouseDown:j,disabled:!!d||!!de.disabled}))})))}),jBt=BBt;function PCe(e,n){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:n.colorTextDisabled,cursor:"not-allowed"}}}function ACe(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const UBt=Object.assign({overflow:"hidden"},Sf),HBt=e=>{const{componentCls:n}=e,r=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),Rp(e)),{[`${n}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${n}-rtl`]:{direction:"rtl"},[`&${n}-vertical`]:{[`${n}-group`]:{flexDirection:"column"},[`${n}-thumb`]:{width:"100%",height:0,padding:`0 ${Ye(e.paddingXXS)}`}},[`&${n}-block`]:{display:"flex"},[`&${n}-block ${n}-item`]:{flex:1,minWidth:0},[`${n}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},ACe(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},Qy(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(${n}-item-selected):not(${n}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${n}-item-selected):not(${n}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:r,lineHeight:Ye(r),padding:`0 ${Ye(e.segmentedPaddingHorizontal)}`},UBt),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${n}-thumb`]:Object.assign(Object.assign({},ACe(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${Ye(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${n}-item:not(${n}-item-selected):not(${n}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${n}-lg`]:{borderRadius:e.borderRadiusLG,[`${n}-item-label`]:{minHeight:i,lineHeight:Ye(i),padding:`0 ${Ye(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${n}-item, ${n}-thumb`]:{borderRadius:e.borderRadius}},[`&${n}-sm`]:{borderRadius:e.borderRadiusSM,[`${n}-item-label`]:{minHeight:o,lineHeight:Ye(o),padding:`0 ${Ye(e.segmentedPaddingHorizontalSM)}`},[`${n}-item, ${n}-thumb`]:{borderRadius:e.borderRadiusXS}}}),PCe(`&-disabled ${n}-item`,e)),PCe(`${n}-item-disabled`,e)),{[`${n}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},zBt=e=>{const{colorTextLabel:n,colorText:r,colorFillSecondary:i,colorBgElevated:o,colorFill:a,lineWidthBold:s,colorBgLayout:l}=e;return{trackPadding:s,trackBg:l,itemColor:n,itemHoverColor:r,itemHoverBg:i,itemSelectedBg:o,itemActiveBg:a,itemSelectedColor:r}},VBt=Yr("Segmented",e=>{const{lineWidth:n,calc:r}=e,i=wr(e,{segmentedPaddingHorizontal:r(e.controlPaddingHorizontal).sub(n).equal(),segmentedPaddingHorizontalSM:r(e.controlPaddingHorizontalSM).sub(n).equal()});return[HBt(i)]},zBt);var DCe=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function GBt(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const WBt=m.forwardRef((e,n)=>{const r=K9(),{prefixCls:i,className:o,rootClassName:a,block:s,options:l=[],size:c="middle",style:u,vertical:d,name:f=r}=e,p=DCe(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","name"]),{getPrefixCls:h,direction:g,segmented:v}=m.useContext(Cn),y=h("segmented",i),[_,S,b]=VBt(y),E=Xs(c),w=m.useMemo(()=>l.map(T=>{if(GBt(T)){const{icon:R,label:O}=T,M=DCe(T,["icon","label"]);return Object.assign(Object.assign({},M),{label:m.createElement(m.Fragment,null,m.createElement("span",{className:`${y}-item-icon`},R),O&&m.createElement("span",null,O))})}return T}),[l,y]),C=Ce(o,a,v==null?void 0:v.className,{[`${y}-block`]:s,[`${y}-sm`]:E==="small",[`${y}-lg`]:E==="large",[`${y}-vertical`]:d},S,b),x=Object.assign(Object.assign({},v==null?void 0:v.style),u);return _(m.createElement(jBt,Object.assign({},p,{name:f,className:C,style:x,options:w,ref:n,prefixCls:y,direction:g,vertical:d})))}),Nze=WBt,Mze=V.createContext({}),Pze=V.createContext({}),Aze=e=>{let{prefixCls:n,value:r,onChange:i}=e;const o=()=>{if(i&&r&&!r.cleared){const a=r.toHsb();a.a=0;const s=Gc(a);s.cleared=!0,i(s)}};return V.createElement("div",{className:`${n}-clear`,onClick:o})};var d0;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(d0||(d0={}));var YBt={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"},qBt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:YBt}))},Dze=m.forwardRef(qBt);function yie(){return typeof BigInt=="function"}function kze(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function N1(e){var n=e.trim(),r=n.startsWith("-");r&&(n=n.slice(1)),n=n.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),n.startsWith(".")&&(n="0".concat(n));var i=n||"0",o=i.split("."),a=o[0]||"0",s=o[1]||"0";a==="0"&&s==="0"&&(r=!1);var l=r?"-":"";return{negative:r,negativeStr:l,trimStr:i,integerStr:a,decimalStr:s,fullStr:"".concat(l).concat(i)}}function Tde(e){var n=String(e);return!Number.isNaN(Number(n))&&n.includes("e")}function o1(e){var n=String(e);if(Tde(e)){var r=Number(n.slice(n.indexOf("e-")+2)),i=n.match(/\.(\d+)/);return i!=null&&i[1]&&(r+=i[1].length),r}return n.includes(".")&&Ode(n)?n.length-n.indexOf(".")-1:0}function bU(e){var n=String(e);if(Tde(e)){if(e>Number.MAX_SAFE_INTEGER)return String(yie()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(yie()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);n=e.toFixed(o1(n))}return N1(n).fullStr}function Ode(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 KBt=function(){function e(n){if(Ki(this,e),fe(this,"origin",""),fe(this,"negative",void 0),fe(this,"integer",void 0),fe(this,"decimal",void 0),fe(this,"decimalLen",void 0),fe(this,"empty",void 0),fe(this,"nan",void 0),kze(n)){this.empty=!0;return}if(this.origin=String(n),n==="-"||Number.isNaN(n)){this.nan=!0;return}var r=n;if(Tde(r)&&(r=Number(r)),r=typeof r=="string"?r:bU(r),Ode(r)){var i=N1(r);this.negative=i.negative;var o=i.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}return Xi(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(r){var i="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(r,"0"));return BigInt(i)}},{key:"negate",value:function(){var r=new e(this.toString());return r.negative=!r.negative,r}},{key:"cal",value:function(r,i,o){var a=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),s=this.alignDecimal(a),l=r.alignDecimal(a),c=i(s,l).toString(),u=o(a),d=N1(c),f=d.negativeStr,p=d.trimStr,h="".concat(f).concat(p.padStart(u+1,"0"));return new e("".concat(h.slice(0,-u),".").concat(h.slice(-u)))}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var i=new e(r);return i.isInvalidate()?this:this.cal(i,function(o,a){return o+a},function(o){return o})}},{key:"multi",value:function(r){var i=new e(r);return this.isInvalidate()||i.isInvalidate()?new e(NaN):this.cal(i,function(o,a){return o*a},function(o){return o*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(r){return this.toString()===(r==null?void 0:r.toString())}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":N1("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),XBt=function(){function e(n){if(Ki(this,e),fe(this,"origin",""),fe(this,"number",void 0),fe(this,"empty",void 0),kze(n)){this.empty=!0;return}this.origin=String(n),this.number=Number(n)}return Xi(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var i=Number(r);if(Number.isNaN(i))return this;var o=this.number+i;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(o1(this.number),o1(i));return new e(o.toFixed(a))}},{key:"multi",value:function(r){var i=Number(r);if(this.isInvalidate()||Number.isNaN(i))return new e(NaN);var o=this.number*i;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var a=Math.max(o1(this.number),o1(i));return new e(o.toFixed(a))}},{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(r){return this.toNumber()===(r==null?void 0:r.toNumber())}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":bU(this.number):this.origin}}]),e}();function yh(e){return yie()?new KBt(e):new XBt(e)}function h6(e,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=N1(e),a=o.negativeStr,s=o.integerStr,l=o.decimalStr,c="".concat(n).concat(l),u="".concat(a).concat(s);if(r>=0){var d=Number(l[r]);if(d>=5&&!i){var f=yh(e).add("".concat(a,"0.").concat("0".repeat(r)).concat(10-d));return h6(f.toString(),n,r,i)}return r===0?u:"".concat(u).concat(n).concat(l.padEnd(r,"0").slice(0,r))}return c===".0"?u:"".concat(u).concat(c)}function QBt(e){return!!(e.addonBefore||e.addonAfter)}function ZBt(e){return!!(e.prefix||e.suffix||e.allowClear)}function kCe(e,n,r){var i=n.cloneNode(!0),o=Object.create(e,{target:{value:i},currentTarget:{value:i}});return i.value=r,typeof n.selectionStart=="number"&&typeof n.selectionEnd=="number"&&(i.selectionStart=n.selectionStart,i.selectionEnd=n.selectionEnd),i.setSelectionRange=function(){n.setSelectionRange.apply(n,arguments)},o}function q8(e,n,r,i){if(r){var o=n;if(n.type==="click"){o=kCe(n,e,""),r(o);return}if(e.type!=="file"&&i!==void 0){o=kCe(n,e,i),r(o);return}r(o)}}function Rde(e,n){if(e){e.focus(n);var r=n||{},i=r.cursor;if(i){var o=e.value.length;switch(i){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Ide=V.forwardRef(function(e,n){var r,i,o,a=e.inputElement,s=e.children,l=e.prefixCls,c=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,p=e.className,h=e.style,g=e.disabled,v=e.readOnly,y=e.focused,_=e.triggerFocus,S=e.allowClear,b=e.value,E=e.handleReset,w=e.hidden,C=e.classes,x=e.classNames,T=e.dataAttrs,R=e.styles,O=e.components,M=e.onClear,P=s??a,k=(O==null?void 0:O.affixWrapper)||"span",$=(O==null?void 0:O.groupWrapper)||"span",U=(O==null?void 0:O.wrapper)||"span",z=(O==null?void 0:O.groupAddon)||"span",D=m.useRef(null),B=function(he){var be;(be=D.current)!==null&&be!==void 0&&be.contains(he.target)&&(_==null||_())},Y=ZBt(e),q=m.cloneElement(P,{value:b,className:Ce((r=P.props)===null||r===void 0?void 0:r.className,!Y&&(x==null?void 0:x.variant))||null}),K=m.useRef(null);if(V.useImperativeHandle(n,function(){return{nativeElement:K.current||D.current}}),Y){var H=null;if(S){var G=!g&&!v&&b,Q="".concat(l,"-clear-icon"),le=cn(S)==="object"&&S!==null&&S!==void 0&&S.clearIcon?S.clearIcon:"✖";H=V.createElement("button",{type:"button",onClick:function(he){E==null||E(he),M==null||M()},onMouseDown:function(he){return he.preventDefault()},className:Ce(Q,fe(fe({},"".concat(Q,"-hidden"),!G),"".concat(Q,"-has-suffix"),!!u))},le)}var Z="".concat(l,"-affix-wrapper"),j=Ce(Z,fe(fe(fe(fe(fe({},"".concat(l,"-disabled"),g),"".concat(Z,"-disabled"),g),"".concat(Z,"-focused"),y),"".concat(Z,"-readonly"),v),"".concat(Z,"-input-with-clear-btn"),u&&S&&b),C==null?void 0:C.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),F=(u||S)&&V.createElement("span",{className:Ce("".concat(l,"-suffix"),x==null?void 0:x.suffix),style:R==null?void 0:R.suffix},H,u);q=V.createElement(k,ft({className:j,style:R==null?void 0:R.affixWrapper,onClick:B},T==null?void 0:T.affixWrapper,{ref:D}),c&&V.createElement("span",{className:Ce("".concat(l,"-prefix"),x==null?void 0:x.prefix),style:R==null?void 0:R.prefix},c),q,F)}if(QBt(e)){var te="".concat(l,"-group"),oe="".concat(te,"-addon"),de="".concat(te,"-wrapper"),pe=Ce("".concat(l,"-wrapper"),te,C==null?void 0:C.wrapper,x==null?void 0:x.wrapper),me=Ce(de,fe({},"".concat(de,"-disabled"),g),C==null?void 0:C.group,x==null?void 0:x.groupWrapper);q=V.createElement($,{className:me,ref:K},V.createElement(U,{className:pe},d&&V.createElement(z,{className:oe},d),q,f&&V.createElement(z,{className:oe},f)))}return V.cloneElement(q,{className:Ce((i=q.props)===null||i===void 0?void 0:i.className,p)||null,style:ee(ee({},(o=q.props)===null||o===void 0?void 0:o.style),h),hidden:w})}),JBt=["show"];function Lze(e,n){return m.useMemo(function(){var r={};n&&(r.show=cn(n)==="object"&&n.formatter?n.formatter:!!n),r=ee(ee({},r),e);var i=r,o=i.show,a=Xt(i,JBt);return ee(ee({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(s){return s.length}})},[e,n])}var ejt=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],tjt=m.forwardRef(function(e,n){var r=e.autoComplete,i=e.onChange,o=e.onFocus,a=e.onBlur,s=e.onPressEnter,l=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,p=e.htmlSize,h=e.className,g=e.maxLength,v=e.suffix,y=e.showCount,_=e.count,S=e.type,b=S===void 0?"text":S,E=e.classes,w=e.classNames,C=e.styles,x=e.onCompositionStart,T=e.onCompositionEnd,R=Xt(e,ejt),O=m.useState(!1),M=ke(O,2),P=M[0],k=M[1],$=m.useRef(!1),U=m.useRef(!1),z=m.useRef(null),D=m.useRef(null),B=function(Ne){z.current&&Rde(z.current,Ne)},Y=dr(e.defaultValue,{value:e.value}),q=ke(Y,2),K=q[0],H=q[1],G=K==null?"":String(K),Q=m.useState(null),le=ke(Q,2),Z=le[0],j=le[1],F=Lze(_,y),te=F.max||g,oe=F.strategy(G),de=!!te&&oe>te;m.useImperativeHandle(n,function(){var Oe;return{focus:B,blur:function(){var je;(je=z.current)===null||je===void 0||je.blur()},setSelectionRange:function(je,ne,J){var ae;(ae=z.current)===null||ae===void 0||ae.setSelectionRange(je,ne,J)},select:function(){var je;(je=z.current)===null||je===void 0||je.select()},input:z.current,nativeElement:((Oe=D.current)===null||Oe===void 0?void 0:Oe.nativeElement)||z.current}}),m.useEffect(function(){U.current&&(U.current=!1),k(function(Oe){return Oe&&f?!1:Oe})},[f]);var pe=function(Ne,je,ne){var J=je;if(!$.current&&F.exceedFormatter&&F.max&&F.strategy(je)>F.max){if(J=F.exceedFormatter(je,{max:F.max}),je!==J){var ae,Se;j([((ae=z.current)===null||ae===void 0?void 0:ae.selectionStart)||0,((Se=z.current)===null||Se===void 0?void 0:Se.selectionEnd)||0])}}else if(ne.source==="compositionEnd")return;H(J),z.current&&q8(z.current,Ne,i,J)};m.useEffect(function(){if(Z){var Oe;(Oe=z.current)===null||Oe===void 0||Oe.setSelectionRange.apply(Oe,Tt(Z))}},[Z]);var me=function(Ne){pe(Ne,Ne.target.value,{source:"change"})},ve=function(Ne){$.current=!1,pe(Ne,Ne.currentTarget.value,{source:"compositionEnd"}),T==null||T(Ne)},he=function(Ne){s&&Ne.key==="Enter"&&!U.current&&(U.current=!0,s(Ne)),l==null||l(Ne)},be=function(Ne){Ne.key==="Enter"&&(U.current=!1),c==null||c(Ne)},we=function(Ne){k(!0),o==null||o(Ne)},De=function(Ne){U.current&&(U.current=!1),k(!1),a==null||a(Ne)},Ae=function(Ne){H(""),B(),z.current&&q8(z.current,Ne,i)},Ee=de&&"".concat(d,"-out-of-range"),Re=function(){var Ne=Wr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return V.createElement("input",ft({autoComplete:r},Ne,{onChange:me,onFocus:we,onBlur:De,onKeyDown:he,onKeyUp:be,className:Ce(d,fe({},"".concat(d,"-disabled"),f),w==null?void 0:w.input),style:C==null?void 0:C.input,ref:z,size:p,type:b,onCompositionStart:function(ne){$.current=!0,x==null||x(ne)},onCompositionEnd:ve}))},Te=function(){var Ne=Number(te)>0;if(v||F.show){var je=F.showFormatter?F.showFormatter({value:G,count:oe,maxLength:te}):"".concat(oe).concat(Ne?" / ".concat(te):"");return V.createElement(V.Fragment,null,F.show&&V.createElement("span",{className:Ce("".concat(d,"-show-count-suffix"),fe({},"".concat(d,"-show-count-has-suffix"),!!v),w==null?void 0:w.count),style:ee({},C==null?void 0:C.count)},je),v)}return null};return V.createElement(Ide,ft({},R,{prefixCls:d,className:Ce(h,Ee),handleReset:Ae,value:G,focused:P,triggerFocus:B,suffix:Te(),disabled:f,classes:E,classNames:w,styles:C}),Re())});function njt(e,n){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(i,o){if(n[o])return n[o];var a=i[o];return typeof a=="function"?a.bind(i):a}}):e}function rjt(e,n){var r=m.useRef(null);function i(){try{var a=e.selectionStart,s=e.selectionEnd,l=e.value,c=l.substring(0,a),u=l.substring(s);r.current={start:a,end:s,value:l,beforeTxt:c,afterTxt:u}}catch{}}function o(){if(e&&r.current&&n)try{var a=e.value,s=r.current,l=s.beforeTxt,c=s.afterTxt,u=s.start,d=a.length;if(a.startsWith(l))d=l.length;else if(a.endsWith(c))d=a.length-r.current.afterTxt.length;else{var f=l[u-1],p=a.indexOf(f,u-1);p!==-1&&(d=p+1)}e.setSelectionRange(d,d)}catch(h){qi(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[i,o]}var ijt=function(){var n=m.useState(!1),r=ke(n,2),i=r[0],o=r[1];return ti(function(){o(J9())},[]),i},ojt=200,ajt=600;function sjt(e){var n=e.prefixCls,r=e.upNode,i=e.downNode,o=e.upDisabled,a=e.downDisabled,s=e.onStep,l=m.useRef(),c=m.useRef([]),u=m.useRef();u.current=s;var d=function(){clearTimeout(l.current)},f=function(b,E){b.preventDefault(),d(),u.current(E);function w(){u.current(E),l.current=setTimeout(w,ojt)}l.current=setTimeout(w,ajt)};m.useEffect(function(){return function(){d(),c.current.forEach(function(S){return Dr.cancel(S)})}},[]);var p=ijt();if(p)return null;var h="".concat(n,"-handler"),g=Ce(h,"".concat(h,"-up"),fe({},"".concat(h,"-up-disabled"),o)),v=Ce(h,"".concat(h,"-down"),fe({},"".concat(h,"-down-disabled"),a)),y=function(){return c.current.push(Dr(d))},_={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return m.createElement("div",{className:"".concat(h,"-wrap")},m.createElement("span",ft({},_,{onMouseDown:function(b){f(b,!0)},"aria-label":"Increase Value","aria-disabled":o,className:g}),r||m.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-up-inner")})),m.createElement("span",ft({},_,{onMouseDown:function(b){f(b,!1)},"aria-label":"Decrease Value","aria-disabled":a,className:v}),i||m.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-down-inner")})))}function LCe(e){var n=typeof e=="number"?bU(e):N1(e).fullStr,r=n.includes(".");return r?N1(n.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const ljt=function(){var e=m.useRef(0),n=function(){Dr.cancel(e.current)};return m.useEffect(function(){return n},[]),function(r){n(),e.current=Dr(function(){r()})}};var cjt=["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"],ujt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],$Ce=function(n,r){return n||r.isEmpty()?r.toString():r.toNumber()},FCe=function(n){var r=yh(n);return r.isInvalidate()?null:r},djt=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.className,o=e.style,a=e.min,s=e.max,l=e.step,c=l===void 0?1:l,u=e.defaultValue,d=e.value,f=e.disabled,p=e.readOnly,h=e.upHandler,g=e.downHandler,v=e.keyboard,y=e.changeOnWheel,_=y===void 0?!1:y,S=e.controls,b=S===void 0?!0:S;e.classNames;var E=e.stringMode,w=e.parser,C=e.formatter,x=e.precision,T=e.decimalSeparator,R=e.onChange,O=e.onInput,M=e.onPressEnter,P=e.onStep,k=e.changeOnBlur,$=k===void 0?!0:k,U=e.domRef,z=Xt(e,cjt),D="".concat(r,"-input"),B=m.useRef(null),Y=m.useState(!1),q=ke(Y,2),K=q[0],H=q[1],G=m.useRef(!1),Q=m.useRef(!1),le=m.useRef(!1),Z=m.useState(function(){return yh(d??u)}),j=ke(Z,2),F=j[0],te=j[1];function oe(at){d===void 0&&te(at)}var de=m.useCallback(function(at,pt){if(!pt)return x>=0?x:Math.max(o1(at),o1(c))},[x,c]),pe=m.useCallback(function(at){var pt=String(at);if(w)return w(pt);var Ct=pt;return T&&(Ct=Ct.replace(T,".")),Ct.replace(/[^\w.-]+/g,"")},[w,T]),me=m.useRef(""),ve=m.useCallback(function(at,pt){if(C)return C(at,{userTyping:pt,input:String(me.current)});var Ct=typeof at=="number"?bU(at):at;if(!pt){var It=de(Ct,pt);if(Ode(Ct)&&(T||It>=0)){var Wt=T||".";Ct=h6(Ct,Wt,It)}}return Ct},[C,de,T]),he=m.useState(function(){var at=u??d;return F.isInvalidate()&&["string","number"].includes(cn(at))?Number.isNaN(at)?"":at:ve(F.toString(),!1)}),be=ke(he,2),we=be[0],De=be[1];me.current=we;function Ae(at,pt){De(ve(at.isInvalidate()?at.toString(!1):at.toString(!pt),pt))}var Ee=m.useMemo(function(){return FCe(s)},[s,x]),Re=m.useMemo(function(){return FCe(a)},[a,x]),Te=m.useMemo(function(){return!Ee||!F||F.isInvalidate()?!1:Ee.lessEquals(F)},[Ee,F]),Oe=m.useMemo(function(){return!Re||!F||F.isInvalidate()?!1:F.lessEquals(Re)},[Re,F]),Ne=rjt(B.current,K),je=ke(Ne,2),ne=je[0],J=je[1],ae=function(pt){return Ee&&!pt.lessEquals(Ee)?Ee:Re&&!Re.lessEquals(pt)?Re:null},Se=function(pt){return!ae(pt)},xe=function(pt,Ct){var It=pt,Wt=Se(It)||It.isEmpty();if(!It.isEmpty()&&!Ct&&(It=ae(It)||It,Wt=!0),!p&&!f&&Wt){var Bt=It.toString(),Vt=de(Bt,Ct);return Vt>=0&&(It=yh(h6(Bt,".",Vt)),Se(It)||(It=yh(h6(Bt,".",Vt,!0)))),It.equals(F)||(oe(It),R==null||R(It.isEmpty()?null:$Ce(E,It)),d===void 0&&Ae(It,Ct)),It}return F},ue=ljt(),Me=function at(pt){if(ne(),me.current=pt,De(pt),!Q.current){var Ct=pe(pt),It=yh(Ct);It.isNaN()||xe(It,!0)}O==null||O(pt),ue(function(){var Wt=pt;w||(Wt=pt.replace(/。/g,".")),Wt!==pt&&at(Wt)})},$e=function(){Q.current=!0},ge=function(){Q.current=!1,Me(B.current.value)},Ve=function(pt){Me(pt.target.value)},st=function(pt){var Ct;if(!(pt&&Te||!pt&&Oe)){G.current=!1;var It=yh(le.current?LCe(c):c);pt||(It=It.negate());var Wt=(F||yh(0)).add(It.toString()),Bt=xe(Wt,!1);P==null||P($Ce(E,Bt),{offset:le.current?LCe(c):c,type:pt?"up":"down"}),(Ct=B.current)===null||Ct===void 0||Ct.focus()}},Je=function(pt){var Ct=yh(pe(we)),It;Ct.isNaN()?It=xe(F,pt):It=xe(Ct,pt),d!==void 0?Ae(F,!1):It.isNaN()||Ae(It,!1)},ot=function(){G.current=!0},Xe=function(pt){var Ct=pt.key,It=pt.shiftKey;G.current=!0,le.current=It,Ct==="Enter"&&(Q.current||(G.current=!1),Je(!1),M==null||M(pt)),v!==!1&&!Q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ct)&&(st(Ct==="Up"||Ct==="ArrowUp"),pt.preventDefault())},Ze=function(){G.current=!1,le.current=!1};m.useEffect(function(){if(_&&K){var at=function(It){st(It.deltaY<0),It.preventDefault()},pt=B.current;if(pt)return pt.addEventListener("wheel",at,{passive:!1}),function(){return pt.removeEventListener("wheel",at)}}});var bt=function(){$&&Je(!1),H(!1),G.current=!1};return I1(function(){F.isInvalidate()||Ae(F,!1)},[x,C]),I1(function(){var at=yh(d);te(at);var pt=yh(pe(we));(!at.equals(pt)||!G.current||C)&&Ae(at,G.current)},[d]),I1(function(){C&&J()},[we]),m.createElement("div",{ref:U,className:Ce(r,i,fe(fe(fe(fe(fe({},"".concat(r,"-focused"),K),"".concat(r,"-disabled"),f),"".concat(r,"-readonly"),p),"".concat(r,"-not-a-number"),F.isNaN()),"".concat(r,"-out-of-range"),!F.isInvalidate()&&!Se(F))),style:o,onFocus:function(){H(!0)},onBlur:bt,onKeyDown:Xe,onKeyUp:Ze,onCompositionStart:$e,onCompositionEnd:ge,onBeforeInput:ot},b&&m.createElement(sjt,{prefixCls:r,upNode:h,downNode:g,upDisabled:Te,downDisabled:Oe,onStep:st}),m.createElement("div",{className:"".concat(D,"-wrap")},m.createElement("input",ft({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":s,"aria-valuenow":F.isInvalidate()?null:F.toString(),step:c},z,{ref:Il(B,n),className:D,value:we,onChange:Ve,disabled:f,readOnly:p}))))}),fjt=m.forwardRef(function(e,n){var r=e.disabled,i=e.style,o=e.prefixCls,a=o===void 0?"rc-input-number":o,s=e.value,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,p=e.classNames,h=Xt(e,ujt),g=m.useRef(null),v=m.useRef(null),y=m.useRef(null),_=function(b){y.current&&Rde(y.current,b)};return m.useImperativeHandle(n,function(){return njt(y.current,{focus:_,nativeElement:g.current.nativeElement||v.current})}),m.createElement(Ide,{className:f,triggerFocus:_,prefixCls:a,value:s,disabled:r,style:i,prefix:l,suffix:c,addonAfter:d,addonBefore:u,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:g},m.createElement(djt,ft({prefixCls:a,disabled:r,ref:y,domRef:v,className:p==null?void 0:p.input},h)))});const pjt=e=>{var n;const r=(n=e.handleVisible)!==null&&n!==void 0?n:"auto",i=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},mU(e)),{controlWidth:90,handleWidth:i,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Gr(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:r===!0?1:0,handleVisibleWidth:r===!0?i:0})},BCe=(e,n)=>{let{componentCls:r,borderRadiusSM:i,borderRadiusLG:o}=e;const a=n==="lg"?o:i;return{[`&-${n}`]:{[`${r}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${r}-handler-up`]:{borderStartEndRadius:a},[`${r}-handler-down`]:{borderEndEndRadius:a}}}},hjt=e=>{const{componentCls:n,lineWidth:r,lineType:i,borderRadius:o,inputFontSizeSM:a,inputFontSizeLG:s,controlHeightLG:l,controlHeightSM:c,colorError:u,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:p,paddingInlineLG:h,colorTextDescription:g,motionDurationMid:v,handleHoverColor:y,handleOpacity:_,paddingInline:S,paddingBlock:b,handleBg:E,handleActiveBg:w,colorTextDisabled:C,borderRadiusSM:x,borderRadiusLG:T,controlWidth:R,handleBorderColor:O,filledHandleBg:M,lineHeightLG:P,calc:k}=e;return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),vU(e)),{display:"inline-block",width:R,margin:0,padding:0,borderRadius:o}),vde(e,{[`${n}-handler-wrap`]:{background:E,[`${n}-handler-down`]:{borderBlockStart:`${Ye(r)} ${i} ${O}`}}})),_de(e,{[`${n}-handler-wrap`]:{background:M,[`${n}-handler-down`]:{borderBlockStart:`${Ye(r)} ${i} ${O}`}},"&:focus-within":{[`${n}-handler-wrap`]:{background:E}}})),yde(e)),{"&-rtl":{direction:"rtl",[`${n}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:s,lineHeight:P,borderRadius:T,[`input${n}-input`]:{height:k(l).sub(k(r).mul(2)).equal(),padding:`${Ye(p)} ${Ye(h)}`}},"&-sm":{padding:0,fontSize:a,borderRadius:x,[`input${n}-input`]:{height:k(c).sub(k(r).mul(2)).equal(),padding:`${Ye(f)} ${Ye(d)}`}},"&-out-of-range":{[`${n}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},li(e)),JHe(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${n}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${n}-group-addon`]:{borderRadius:T,fontSize:e.fontSizeLG}},"&-sm":{[`${n}-group-addon`]:{borderRadius:x}}},qHe(e)),XHe(e)),{[`&:not(${n}-compact-first-item):not(${n}-compact-last-item)${n}-compact-item`]:{[`${n}, ${n}-group-addon`]:{borderRadius:0}},[`&:not(${n}-compact-last-item)${n}-compact-first-item`]:{[`${n}, ${n}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${n}-compact-first-item)${n}-compact-last-item`]:{[`${n}, ${n}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${n}-input`]:{cursor:"not-allowed"},[n]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),{width:"100%",padding:`${Ye(b)} ${Ye(S)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),bde(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${n}-handler-wrap, &-focused ${n}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[n]:Object.assign(Object.assign(Object.assign({[`${n}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:_,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${v}`,overflow:"hidden",[`${n}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${n}-handler-up-inner,
${n}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${n}-handler`]:{height:"50%",overflow:"hidden",color:g,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Ye(r)} ${i} ${O}`,transition:`all ${v} linear`,"&:active":{background:w},"&:hover":{height:"60%",[`
${n}-handler-up-inner,
${n}-handler-down-inner
`]:{color:y}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},ew()),{color:g,transition:`all ${v} linear`,userSelect:"none"})},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}},BCe(e,"lg")),BCe(e,"sm")),{"&-disabled, &-readonly":{[`${n}-handler-wrap`]:{display:"none"},[`${n}-input`]:{color:"inherit"}},[`
${n}-handler-up-disabled,
${n}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${n}-handler-up-disabled:hover &-handler-up-inner,
${n}-handler-down-disabled:hover &-handler-down-inner
`]:{color:C}})}]},gjt=e=>{const{componentCls:n,paddingBlock:r,paddingInline:i,inputAffixPadding:o,controlWidth:a,borderRadiusLG:s,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:p}=e;return{[`${n}-affix-wrapper`]:Object.assign(Object.assign({[`input${n}-input`]:{padding:`${Ye(r)} 0`}},vU(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:a,padding:0,paddingInlineStart:i,"&-lg":{borderRadius:s,paddingInlineStart:c,[`input${n}-input`]:{padding:`${Ye(d)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:u,[`input${n}-input`]:{padding:`${Ye(f)} 0`}},[`&:not(${n}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${n}-disabled`]:{background:"transparent"},[`> div${n}`]:{width:"100%",border:"none",outline:"none",[`&${n}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${n}-handler-wrap`]:{zIndex:2},[n]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:i,marginInlineStart:o,transition:`margin ${p}`}},[`&:hover ${n}-handler-wrap, &-focused ${n}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${n}-affix-wrapper-without-controls):hover ${n}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(i).equal()}})}},mjt=Yr("InputNumber",e=>{const n=wr(e,gU(e));return[hjt(n),gjt(n),nw(n)]},pjt,{unitless:{handleOpacity:!0}});var vjt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const $ze=m.forwardRef((e,n)=>{const{getPrefixCls:r,direction:i}=m.useContext(Cn),o=m.useRef(null);m.useImperativeHandle(n,()=>o.current);const{className:a,rootClassName:s,size:l,disabled:c,prefixCls:u,addonBefore:d,addonAfter:f,prefix:p,suffix:h,bordered:g,readOnly:v,status:y,controls:_,variant:S}=e,b=vjt(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),E=r("input-number",u),w=po(E),[C,x,T]=mjt(E,w),{compactSize:R,compactItemClassnames:O}=_g(E,i);let M=m.createElement(Dze,{className:`${E}-handler-up-inner`}),P=m.createElement(lI,{className:`${E}-handler-down-inner`});const k=typeof _=="boolean"?_:void 0;typeof _=="object"&&(M=typeof _.upIcon>"u"?M:m.createElement("span",{className:`${E}-handler-up-inner`},_.upIcon),P=typeof _.downIcon>"u"?P:m.createElement("span",{className:`${E}-handler-down-inner`},_.downIcon));const{hasFeedback:$,status:U,isFormItemInput:z,feedbackIcon:D}=m.useContext(qs),B=Jy(U,y),Y=Xs(F=>{var te;return(te=l??R)!==null&&te!==void 0?te:F}),q=m.useContext(xs),K=c??q,[H,G]=e_("inputNumber",S,g),Q=$&&m.createElement(m.Fragment,null,D),le=Ce({[`${E}-lg`]:Y==="large",[`${E}-sm`]:Y==="small",[`${E}-rtl`]:i==="rtl",[`${E}-in-form-item`]:z},x),Z=`${E}-group`,j=m.createElement(fjt,Object.assign({ref:o,disabled:K,className:Ce(T,w,a,s,O),upHandler:M,downHandler:P,prefixCls:E,readOnly:v,controls:k,prefix:p,suffix:Q||h,addonBefore:d&&m.createElement(ng,{form:!0,space:!0},d),addonAfter:f&&m.createElement(ng,{form:!0,space:!0},f),classNames:{input:le,variant:Ce({[`${E}-${H}`]:G},rg(E,B,$)),affixWrapper:Ce({[`${E}-affix-wrapper-sm`]:Y==="small",[`${E}-affix-wrapper-lg`]:Y==="large",[`${E}-affix-wrapper-rtl`]:i==="rtl",[`${E}-affix-wrapper-without-controls`]:_===!1},x),wrapper:Ce({[`${Z}-rtl`]:i==="rtl"},x),groupWrapper:Ce({[`${E}-group-wrapper-sm`]:Y==="small",[`${E}-group-wrapper-lg`]:Y==="large",[`${E}-group-wrapper-rtl`]:i==="rtl",[`${E}-group-wrapper-${H}`]:G},rg(`${E}-group-wrapper`,B,$),x)}},b));return C(j)}),Py=$ze,yjt=e=>m.createElement(or,{theme:{components:{InputNumber:{handleVisible:!0}}}},m.createElement($ze,Object.assign({},e)));Py._InternalPanelDoNotUseOrYouWillBeFired=yjt;const M1=e=>{let{prefixCls:n,min:r=0,max:i=100,value:o,onChange:a,className:s,formatter:l}=e;const c=`${n}-steppers`,[u,d]=m.useState(o);return m.useEffect(()=>{Number.isNaN(o)||d(o)},[o]),V.createElement(Py,{className:Ce(c,s),min:r,max:i,value:u,formatter:l,size:"small",onChange:f=>{o||d(f||0),a==null||a(f)}})},_jt=e=>{let{prefixCls:n,value:r,onChange:i}=e;const o=`${n}-alpha-input`,[a,s]=m.useState(Gc(r||"#000"));m.useEffect(()=>{r&&s(r)},[r]);const l=c=>{const u=a.toHsb();u.a=(c||0)/100;const d=Gc(u);r||s(d),i==null||i(d)};return V.createElement(M1,{value:Mue(a),prefixCls:n,formatter:c=>`${c}%`,className:o,onChange:l})},bjt=e=>{const{getPrefixCls:n,direction:r}=m.useContext(Cn),{prefixCls:i,className:o}=e,a=n("input-group",i),s=n("input"),[l,c]=Sde(s),u=Ce(a,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:r==="rtl"},c,o),d=m.useContext(qs),f=m.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return l(m.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},m.createElement(qs.Provider,{value:f},e.children)))},Fze=e=>{let n;return typeof e=="object"&&(e!=null&&e.clearIcon)?n=e:e&&(n={clearIcon:V.createElement(tv,null)}),n};function Bze(e,n){const r=m.useRef([]),i=()=>{r.current.push(setTimeout(()=>{var o,a,s,l;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((s=e.current)===null||s===void 0)&&s.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return m.useEffect(()=>(n&&i(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),i}function Sjt(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Ejt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const SU=m.forwardRef((e,n)=>{var r;const{prefixCls:i,bordered:o=!0,status:a,size:s,disabled:l,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:p,addonBefore:h,className:g,style:v,styles:y,rootClassName:_,onChange:S,classNames:b,variant:E}=e,w=Ejt(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:C,direction:x,input:T}=V.useContext(Cn),R=C("input",i),O=m.useRef(null),M=po(R),[P,k,$]=Sde(R,M),{compactSize:U,compactItemClassnames:z}=_g(R,x),D=Xs(me=>{var ve;return(ve=s??U)!==null&&ve!==void 0?ve:me}),B=V.useContext(xs),Y=l??B,{status:q,hasFeedback:K,feedbackIcon:H}=m.useContext(qs),G=Jy(q,a),Q=Sjt(e)||!!K;m.useRef(Q);const le=Bze(O,!0),Z=me=>{le(),c==null||c(me)},j=me=>{le(),u==null||u(me)},F=me=>{le(),S==null||S(me)},te=(K||d)&&V.createElement(V.Fragment,null,d,K&&H),oe=Fze(f??(T==null?void 0:T.allowClear)),[de,pe]=e_("input",E,o);return P(V.createElement(tjt,Object.assign({ref:Il(n,O),prefixCls:R,autoComplete:T==null?void 0:T.autoComplete},w,{disabled:Y,onBlur:Z,onFocus:j,style:Object.assign(Object.assign({},T==null?void 0:T.style),v),styles:Object.assign(Object.assign({},T==null?void 0:T.styles),y),suffix:te,allowClear:oe,className:Ce(g,_,$,M,z,T==null?void 0:T.className),onChange:F,addonBefore:h&&V.createElement(ng,{form:!0,space:!0},h),addonAfter:p&&V.createElement(ng,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},b),T==null?void 0:T.classNames),{input:Ce({[`${R}-sm`]:D==="small",[`${R}-lg`]:D==="large",[`${R}-rtl`]:x==="rtl"},b==null?void 0:b.input,(r=T==null?void 0:T.classNames)===null||r===void 0?void 0:r.input,k),variant:Ce({[`${R}-${de}`]:pe},rg(R,G)),affixWrapper:Ce({[`${R}-affix-wrapper-sm`]:D==="small",[`${R}-affix-wrapper-lg`]:D==="large",[`${R}-affix-wrapper-rtl`]:x==="rtl"},k),wrapper:Ce({[`${R}-group-rtl`]:x==="rtl"},k),groupWrapper:Ce({[`${R}-group-wrapper-sm`]:D==="small",[`${R}-group-wrapper-lg`]:D==="large",[`${R}-group-wrapper-rtl`]:x==="rtl",[`${R}-group-wrapper-${de}`]:pe},rg(`${R}-group-wrapper`,G,K),k)})})))}),Cjt=e=>{const{componentCls:n,paddingXS:r}=e;return{[n]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,"&-rtl":{direction:"rtl"},[`${n}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${n}-sm ${n}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${n}-lg ${n}-input`]:{paddingInline:e.paddingXS}}}},wjt=Yr(["Input","OTP"],e=>{const n=wr(e,gU(e));return[Cjt(n)]},mU);var xjt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Tjt=m.forwardRef((e,n)=>{const{value:r,onChange:i,onActiveChange:o,index:a,mask:s}=e,l=xjt(e,["value","onChange","onActiveChange","index","mask"]),c=r&&typeof s=="string"?s:r,u=g=>{i(a,g.target.value)},d=m.useRef(null);m.useImperativeHandle(n,()=>d.current);const f=()=>{Dr(()=>{var g;const v=(g=d.current)===null||g===void 0?void 0:g.input;document.activeElement===v&&v&&v.select()})},p=g=>{const{key:v,ctrlKey:y,metaKey:_}=g;v==="ArrowLeft"?o(a-1):v==="ArrowRight"?o(a+1):v==="z"&&(y||_)&&g.preventDefault(),f()},h=g=>{g.key==="Backspace"&&!r&&o(a-1),f()};return m.createElement(SU,Object.assign({type:s===!0?"password":"text"},l,{ref:d,value:c,onInput:u,onFocus:f,onKeyDown:p,onKeyUp:h,onMouseDown:f,onMouseUp:f}))});var Ojt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function e4(e){return(e||"").split("")}const Rjt=m.forwardRef((e,n)=>{const{prefixCls:r,length:i=6,size:o,defaultValue:a,value:s,onChange:l,formatter:c,variant:u,disabled:d,status:f,autoFocus:p,mask:h,type:g,onInput:v,inputMode:y}=e,_=Ojt(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:S,direction:b}=m.useContext(Cn),E=S("otp",r),w=Va(_,{aria:!0,data:!0,attr:!0}),C=po(E),[x,T,R]=wjt(E,C),O=Xs(Q=>o??Q),M=m.useContext(qs),P=Jy(M.status,f),k=m.useMemo(()=>Object.assign(Object.assign({},M),{status:P,hasFeedback:!1,feedbackIcon:null}),[M,P]),$=m.useRef(null),U=m.useRef({});m.useImperativeHandle(n,()=>({focus:()=>{var Q;(Q=U.current[0])===null||Q===void 0||Q.focus()},blur:()=>{var Q;for(let le=0;le<i;le+=1)(Q=U.current[le])===null||Q===void 0||Q.blur()},nativeElement:$.current}));const z=Q=>c?c(Q):Q,[D,B]=m.useState(e4(z(a||"")));m.useEffect(()=>{s!==void 0&&B(e4(s))},[s]);const Y=Sr(Q=>{B(Q),v&&v(Q),l&&Q.length===i&&Q.every(le=>le)&&Q.some((le,Z)=>D[Z]!==le)&&l(Q.join(""))}),q=Sr((Q,le)=>{let Z=Tt(D);for(let F=0;F<Q;F+=1)Z[F]||(Z[F]="");le.length<=1?Z[Q]=le:Z=Z.slice(0,Q).concat(e4(le)),Z=Z.slice(0,i);for(let F=Z.length-1;F>=0&&!Z[F];F-=1)Z.pop();const j=z(Z.map(F=>F||" ").join(""));return Z=e4(j).map((F,te)=>F===" "&&!Z[te]?Z[te]:F),Z}),K=(Q,le)=>{var Z;const j=q(Q,le),F=Math.min(Q+le.length,i-1);F!==Q&&j[Q]!==void 0&&((Z=U.current[F])===null||Z===void 0||Z.focus()),Y(j)},H=Q=>{var le;(le=U.current[Q])===null||le===void 0||le.focus()},G={variant:u,disabled:d,status:P,mask:h,type:g,inputMode:y};return x(m.createElement("div",Object.assign({},w,{ref:$,className:Ce(E,{[`${E}-sm`]:O==="small",[`${E}-lg`]:O==="large",[`${E}-rtl`]:b==="rtl"},R,T)}),m.createElement(qs.Provider,{value:k},Array.from({length:i}).map((Q,le)=>{const Z=`otp-${le}`,j=D[le]||"";return m.createElement(Tjt,Object.assign({ref:F=>{U.current[le]=F},key:Z,index:le,size:O,htmlSize:1,className:`${E}-input`,onChange:K,value:j,onActiveChange:H,autoFocus:le===0&&p},G))}))))});var Ijt={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"},Njt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Ijt}))},jze=m.forwardRef(Njt),Mjt={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"},Pjt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Mjt}))},wk=m.forwardRef(Pjt),Ajt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Djt=e=>e?m.createElement(wk,null):m.createElement(jze,null),kjt={click:"onClick",hover:"onMouseOver"},Ljt=m.forwardRef((e,n)=>{const{disabled:r,action:i="click",visibilityToggle:o=!0,iconRender:a=Djt}=e,s=m.useContext(xs),l=r??s,c=typeof o=="object"&&o.visible!==void 0,[u,d]=m.useState(()=>c?o.visible:!1),f=m.useRef(null);m.useEffect(()=>{c&&d(o.visible)},[c,o]);const p=Bze(f),h=()=>{var O;if(l)return;u&&p();const M=!u;d(M),typeof o=="object"&&((O=o.onVisibleChange)===null||O===void 0||O.call(o,M))},g=O=>{const M=kjt[i]||"",P=a(u),k={[M]:h,className:`${O}-icon`,key:"passwordIcon",onMouseDown:$=>{$.preventDefault()},onMouseUp:$=>{$.preventDefault()}};return m.cloneElement(m.isValidElement(P)?P:m.createElement("span",null,P),k)},{className:v,prefixCls:y,inputPrefixCls:_,size:S}=e,b=Ajt(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:E}=m.useContext(Cn),w=E("input",_),C=E("input-password",y),x=o&&g(C),T=Ce(C,v,{[`${C}-${S}`]:!!S}),R=Object.assign(Object.assign({},Wr(b,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:T,prefixCls:w,suffix:x});return S&&(R.size=S),m.createElement(SU,Object.assign({ref:Il(n,f)},R))});var $jt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Fjt=m.forwardRef((e,n)=>{const{prefixCls:r,inputPrefixCls:i,className:o,size:a,suffix:s,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:h,onCompositionEnd:g}=e,v=$jt(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:y,direction:_}=m.useContext(Cn),S=m.useRef(!1),b=y("input-search",r),E=y("input",i),{compactSize:w}=_g(b,_),C=Xs(K=>{var H;return(H=a??w)!==null&&H!==void 0?H:K}),x=m.useRef(null),T=K=>{K!=null&&K.target&&K.type==="click"&&f&&f(K.target.value,K,{source:"clear"}),p==null||p(K)},R=K=>{var H;document.activeElement===((H=x.current)===null||H===void 0?void 0:H.input)&&K.preventDefault()},O=K=>{var H,G;f&&f((G=(H=x.current)===null||H===void 0?void 0:H.input)===null||G===void 0?void 0:G.value,K,{source:"input"})},M=K=>{S.current||u||O(K)},P=typeof l=="boolean"?m.createElement(Xue,null):null,k=`${b}-button`;let $;const U=l||{},z=U.type&&U.type.__ANT_BUTTON===!0;z||U.type==="button"?$=Ys(U,Object.assign({onMouseDown:R,onClick:K=>{var H,G;(G=(H=U==null?void 0:U.props)===null||H===void 0?void 0:H.onClick)===null||G===void 0||G.call(H,K),O(K)},key:"enterButton"},z?{className:k,size:C}:{})):$=m.createElement(qn,{className:k,type:l?"primary":void 0,size:C,disabled:d,key:"enterButton",onMouseDown:R,onClick:O,loading:u,icon:P},l),c&&($=[$,Ys(c,{key:"addonAfter"})]);const D=Ce(b,{[`${b}-rtl`]:_==="rtl",[`${b}-${C}`]:!!C,[`${b}-with-button`]:!!l},o),B=Object.assign(Object.assign({},v),{className:D,prefixCls:E,type:"search"}),Y=K=>{S.current=!0,h==null||h(K)},q=K=>{S.current=!1,g==null||g(K)};return m.createElement(SU,Object.assign({ref:Il(x,n),onPressEnter:M},B,{size:C,onCompositionStart:Y,onCompositionEnd:q,addonAfter:$,suffix:s,onChange:T,disabled:d}))});var Bjt=`
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;
`,jjt=["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"],fq={},Bd;function Ujt(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(n&&fq[r])return fq[r];var i=window.getComputedStyle(e),o=i.getPropertyValue("box-sizing")||i.getPropertyValue("-moz-box-sizing")||i.getPropertyValue("-webkit-box-sizing"),a=parseFloat(i.getPropertyValue("padding-bottom"))+parseFloat(i.getPropertyValue("padding-top")),s=parseFloat(i.getPropertyValue("border-bottom-width"))+parseFloat(i.getPropertyValue("border-top-width")),l=jjt.map(function(u){return"".concat(u,":").concat(i.getPropertyValue(u))}).join(";"),c={sizingStyle:l,paddingSize:a,borderSize:s,boxSizing:o};return n&&r&&(fq[r]=c),c}function Hjt(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Bd||(Bd=document.createElement("textarea"),Bd.setAttribute("tab-index","-1"),Bd.setAttribute("aria-hidden","true"),Bd.setAttribute("name","hiddenTextarea"),document.body.appendChild(Bd)),e.getAttribute("wrap")?Bd.setAttribute("wrap",e.getAttribute("wrap")):Bd.removeAttribute("wrap");var o=Ujt(e,n),a=o.paddingSize,s=o.borderSize,l=o.boxSizing,c=o.sizingStyle;Bd.setAttribute("style","".concat(c,";").concat(Bjt)),Bd.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,p=Bd.scrollHeight;if(l==="border-box"?p+=s:l==="content-box"&&(p-=a),r!==null||i!==null){Bd.value=" ";var h=Bd.scrollHeight-a;r!==null&&(u=h*r,l==="border-box"&&(u=u+a+s),p=Math.max(u,p)),i!==null&&(d=h*i,l==="border-box"&&(d=d+a+s),f=p>d?"":"hidden",p=Math.min(d,p))}var g={height:p,overflowY:f,resize:"none"};return u&&(g.minHeight=u),d&&(g.maxHeight=d),g}var zjt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],pq=0,hq=1,gq=2,Vjt=m.forwardRef(function(e,n){var r=e,i=r.prefixCls,o=r.defaultValue,a=r.value,s=r.autoSize,l=r.onResize,c=r.className,u=r.style,d=r.disabled,f=r.onChange;r.onInternalAutoSize;var p=Xt(r,zjt),h=dr(o,{value:a,postState:function(Q){return Q??""}}),g=ke(h,2),v=g[0],y=g[1],_=function(Q){y(Q.target.value),f==null||f(Q)},S=m.useRef();m.useImperativeHandle(n,function(){return{textArea:S.current}});var b=m.useMemo(function(){return s&&cn(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),E=ke(b,2),w=E[0],C=E[1],x=!!s,T=function(){try{if(document.activeElement===S.current){var Q=S.current,le=Q.selectionStart,Z=Q.selectionEnd,j=Q.scrollTop;S.current.setSelectionRange(le,Z),S.current.scrollTop=j}}catch{}},R=m.useState(gq),O=ke(R,2),M=O[0],P=O[1],k=m.useState(),$=ke(k,2),U=$[0],z=$[1],D=function(){P(pq)};ti(function(){x&&D()},[a,w,C,x]),ti(function(){if(M===pq)P(hq);else if(M===hq){var G=Hjt(S.current,!1,w,C);P(gq),z(G)}else T()},[M]);var B=m.useRef(),Y=function(){Dr.cancel(B.current)},q=function(Q){M===gq&&(l==null||l(Q),s&&(Y(),B.current=Dr(function(){D()})))};m.useEffect(function(){return Y},[]);var K=x?U:null,H=ee(ee({},u),K);return(M===pq||M===hq)&&(H.overflowY="hidden",H.overflowX="hidden"),m.createElement(Hc,{onResize:q,disabled:!(s||l)},m.createElement("textarea",ft({},p,{ref:S,style:H,className:Ce(i,c,fe({},"".concat(i,"-disabled"),d)),disabled:d,value:v,onChange:_})))}),Gjt=["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"],Wjt=V.forwardRef(function(e,n){var r,i=e.defaultValue,o=e.value,a=e.onFocus,s=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,g=h===void 0?"rc-textarea":h,v=e.showCount,y=e.count,_=e.className,S=e.style,b=e.disabled,E=e.hidden,w=e.classNames,C=e.styles,x=e.onResize,T=e.onClear,R=e.onPressEnter,O=e.readOnly,M=e.autoSize,P=e.onKeyDown,k=Xt(e,Gjt),$=dr(i,{value:o,defaultValue:i}),U=ke($,2),z=U[0],D=U[1],B=z==null?"":String(z),Y=V.useState(!1),q=ke(Y,2),K=q[0],H=q[1],G=V.useRef(!1),Q=V.useState(null),le=ke(Q,2),Z=le[0],j=le[1],F=m.useRef(null),te=m.useRef(null),oe=function(){var ge;return(ge=te.current)===null||ge===void 0?void 0:ge.textArea},de=function(){oe().focus()};m.useImperativeHandle(n,function(){var $e;return{resizableTextArea:te.current,focus:de,blur:function(){oe().blur()},nativeElement:(($e=F.current)===null||$e===void 0?void 0:$e.nativeElement)||oe()}}),m.useEffect(function(){H(function($e){return!b&&$e})},[b]);var pe=V.useState(null),me=ke(pe,2),ve=me[0],he=me[1];V.useEffect(function(){if(ve){var $e;($e=oe()).setSelectionRange.apply($e,Tt(ve))}},[ve]);var be=Lze(y,v),we=(r=be.max)!==null&&r!==void 0?r:u,De=Number(we)>0,Ae=be.strategy(B),Ee=!!we&&Ae>we,Re=function(ge,Ve){var st=Ve;!G.current&&be.exceedFormatter&&be.max&&be.strategy(Ve)>be.max&&(st=be.exceedFormatter(Ve,{max:be.max}),Ve!==st&&he([oe().selectionStart||0,oe().selectionEnd||0])),D(st),q8(ge.currentTarget,ge,l,st)},Te=function(ge){G.current=!0,d==null||d(ge)},Oe=function(ge){G.current=!1,Re(ge,ge.currentTarget.value),f==null||f(ge)},Ne=function(ge){Re(ge,ge.target.value)},je=function(ge){ge.key==="Enter"&&R&&R(ge),P==null||P(ge)},ne=function(ge){H(!0),a==null||a(ge)},J=function(ge){H(!1),s==null||s(ge)},ae=function(ge){D(""),de(),q8(oe(),ge,l)},Se=p,xe;be.show&&(be.showFormatter?xe=be.showFormatter({value:B,count:Ae,maxLength:we}):xe="".concat(Ae).concat(De?" / ".concat(we):""),Se=V.createElement(V.Fragment,null,Se,V.createElement("span",{className:Ce("".concat(g,"-data-count"),w==null?void 0:w.count),style:C==null?void 0:C.count},xe)));var ue=function(ge){var Ve;x==null||x(ge),(Ve=oe())!==null&&Ve!==void 0&&Ve.style.height&&j(!0)},Me=!M&&!v&&!c;return V.createElement(Ide,{ref:F,value:B,allowClear:c,handleReset:ae,suffix:Se,prefixCls:g,classNames:ee(ee({},w),{},{affixWrapper:Ce(w==null?void 0:w.affixWrapper,fe(fe({},"".concat(g,"-show-count"),v),"".concat(g,"-textarea-allow-clear"),c))}),disabled:b,focused:K,className:Ce(_,Ee&&"".concat(g,"-out-of-range")),style:ee(ee({},S),Z&&!Me?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof xe=="string"?xe:void 0}},hidden:E,readOnly:O,onClear:T},V.createElement(Vjt,ft({},k,{autoSize:M,maxLength:u,onKeyDown:je,onChange:Ne,onFocus:ne,onBlur:J,onCompositionStart:Te,onCompositionEnd:Oe,className:Ce(w==null?void 0:w.textarea),style:ee(ee({},C==null?void 0:C.textarea),{},{resize:S==null?void 0:S.resize}),disabled:b,prefixCls:g,onResize:ue,ref:te,readOnly:O})))}),Yjt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const qjt=m.forwardRef((e,n)=>{var r,i;const{prefixCls:o,bordered:a=!0,size:s,disabled:l,status:c,allowClear:u,classNames:d,rootClassName:f,className:p,style:h,styles:g,variant:v}=e,y=Yjt(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:_,direction:S,textArea:b}=m.useContext(Cn),E=Xs(s),w=m.useContext(xs),C=l??w,{status:x,hasFeedback:T,feedbackIcon:R}=m.useContext(qs),O=Jy(x,c),M=m.useRef(null);m.useImperativeHandle(n,()=>{var q;return{resizableTextArea:(q=M.current)===null||q===void 0?void 0:q.resizableTextArea,focus:K=>{var H,G;Rde((G=(H=M.current)===null||H===void 0?void 0:H.resizableTextArea)===null||G===void 0?void 0:G.textArea,K)},blur:()=>{var K;return(K=M.current)===null||K===void 0?void 0:K.blur()}}});const P=_("input",o),k=po(P),[$,U,z]=Sde(P,k),[D,B]=e_("textArea",v,a),Y=Fze(u??(b==null?void 0:b.allowClear));return $(m.createElement(Wjt,Object.assign({autoComplete:b==null?void 0:b.autoComplete},y,{style:Object.assign(Object.assign({},b==null?void 0:b.style),h),styles:Object.assign(Object.assign({},b==null?void 0:b.styles),g),disabled:C,allowClear:Y,className:Ce(z,k,p,f,b==null?void 0:b.className),classNames:Object.assign(Object.assign(Object.assign({},d),b==null?void 0:b.classNames),{textarea:Ce({[`${P}-sm`]:E==="small",[`${P}-lg`]:E==="large"},U,d==null?void 0:d.textarea,(r=b==null?void 0:b.classNames)===null||r===void 0?void 0:r.textarea),variant:Ce({[`${P}-${D}`]:B},rg(P,O)),affixWrapper:Ce(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:S==="rtl",[`${P}-affix-wrapper-sm`]:E==="small",[`${P}-affix-wrapper-lg`]:E==="large",[`${P}-textarea-show-count`]:e.showCount||((i=e.count)===null||i===void 0?void 0:i.show)},U)}),prefixCls:P,suffix:T&&m.createElement("span",{className:`${P}-textarea-suffix`},R),ref:M})))}),Oi=SU;Oi.Group=bjt;Oi.Search=Fjt;Oi.TextArea=qjt;Oi.Password=Ljt;Oi.OTP=Rjt;const Kjt=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Xjt=e=>Kjt.test(`#${e}`),Qjt=e=>{let{prefixCls:n,value:r,onChange:i}=e;const o=`${n}-hex-input`,[a,s]=m.useState(()=>r?i2(r.toHexString()):void 0);m.useEffect(()=>{r&&s(i2(r.toHexString()))},[r]);const l=c=>{const u=c.target.value;s(i2(u)),Xjt(i2(u,!0))&&(i==null||i(Gc(u)))};return V.createElement(Oi,{className:o,value:a,prefix:"#",onChange:l,size:"small"})},Zjt=e=>{let{prefixCls:n,value:r,onChange:i}=e;const o=`${n}-hsb-input`,[a,s]=m.useState(Gc(r||"#000"));m.useEffect(()=>{r&&s(r)},[r]);const l=(c,u)=>{const d=a.toHsb();d[u]=u==="h"?c:(c||0)/100;const f=Gc(d);r||s(f),i==null||i(f)};return V.createElement("div",{className:o},V.createElement(M1,{max:360,min:0,value:Number(a.toHsb().h),prefixCls:n,className:o,formatter:c=>c6(c||0).toString(),onChange:c=>l(Number(c),"h")}),V.createElement(M1,{max:100,min:0,value:Number(a.toHsb().s)*100,prefixCls:n,className:o,formatter:c=>`${c6(c||0)}%`,onChange:c=>l(Number(c),"s")}),V.createElement(M1,{max:100,min:0,value:Number(a.toHsb().b)*100,prefixCls:n,className:o,formatter:c=>`${c6(c||0)}%`,onChange:c=>l(Number(c),"b")}))},Jjt=e=>{let{prefixCls:n,value:r,onChange:i}=e;const o=`${n}-rgb-input`,[a,s]=m.useState(Gc(r||"#000"));m.useEffect(()=>{r&&s(r)},[r]);const l=(c,u)=>{const d=a.toRgb();d[u]=c||0;const f=Gc(d);r||s(f),i==null||i(f)};return V.createElement("div",{className:o},V.createElement(M1,{max:255,min:0,value:Number(a.toRgb().r),prefixCls:n,className:o,onChange:c=>l(Number(c),"r")}),V.createElement(M1,{max:255,min:0,value:Number(a.toRgb().g),prefixCls:n,className:o,onChange:c=>l(Number(c),"g")}),V.createElement(M1,{max:255,min:0,value:Number(a.toRgb().b),prefixCls:n,className:o,onChange:c=>l(Number(c),"b")}))},e7t=[d0.hex,d0.hsb,d0.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),t7t=e=>{const{prefixCls:n,format:r,value:i,disabledAlpha:o,onFormatChange:a,onChange:s,disabledFormat:l}=e,[c,u]=dr(d0.hex,{value:r,onChange:a}),d=`${n}-input`,f=h=>{u(h)},p=m.useMemo(()=>{const h={value:i,prefixCls:n,onChange:s};switch(c){case d0.hsb:return V.createElement(Zjt,Object.assign({},h));case d0.rgb:return V.createElement(Jjt,Object.assign({},h));default:return V.createElement(Qjt,Object.assign({},h))}},[c,n,i,s]);return V.createElement("div",{className:`${d}-container`},!l&&V.createElement(bg,{value:c,variant:"borderless",getPopupContainer:h=>h,popupMatchSelectWidth:68,placement:"bottomRight",onChange:f,className:`${n}-format-select`,size:"small",options:e7t}),V.createElement("div",{className:d},p),!o&&V.createElement(_jt,{prefixCls:n,value:i,onChange:s}))};function _ie(e,n,r){return(e-n)/(r-n)}function Nde(e,n,r,i){var o=_ie(n,r,i),a={};switch(e){case"rtl":a.right="".concat(o*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(o*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(o*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(o*100,"%"),a.transform="translateX(-50%)";break}return a}function UE(e,n){return Array.isArray(e)?e[n]:e}var aw=m.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),Uze=m.createContext({}),n7t=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],jCe=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.value,o=e.valueIndex,a=e.onStartMove,s=e.onDelete,l=e.style,c=e.render,u=e.dragging,d=e.draggingDelete,f=e.onOffsetChange,p=e.onChangeComplete,h=e.onFocus,g=e.onMouseEnter,v=Xt(e,n7t),y=m.useContext(aw),_=y.min,S=y.max,b=y.direction,E=y.disabled,w=y.keyboard,C=y.range,x=y.tabIndex,T=y.ariaLabelForHandle,R=y.ariaLabelledByForHandle,O=y.ariaRequired,M=y.ariaValueTextFormatterForHandle,P=y.styles,k=y.classNames,$="".concat(r,"-handle"),U=function(le){E||a(le,o)},z=function(le){h==null||h(le,o)},D=function(le){g(le,o)},B=function(le){if(!E&&w){var Z=null;switch(le.which||le.keyCode){case At.LEFT:Z=b==="ltr"||b==="btt"?-1:1;break;case At.RIGHT:Z=b==="ltr"||b==="btt"?1:-1;break;case At.UP:Z=b!=="ttb"?1:-1;break;case At.DOWN:Z=b!=="ttb"?-1:1;break;case At.HOME:Z="min";break;case At.END:Z="max";break;case At.PAGE_UP:Z=2;break;case At.PAGE_DOWN:Z=-2;break;case At.BACKSPACE:case At.DELETE:s(o);break}Z!==null&&(le.preventDefault(),f(Z,o))}},Y=function(le){switch(le.which||le.keyCode){case At.LEFT:case At.RIGHT:case At.UP:case At.DOWN:case At.HOME:case At.END:case At.PAGE_UP:case At.PAGE_DOWN:p==null||p();break}},q=Nde(b,i,_,S),K={};if(o!==null){var H;K={tabIndex:E?null:UE(x,o),role:"slider","aria-valuemin":_,"aria-valuemax":S,"aria-valuenow":i,"aria-disabled":E,"aria-label":UE(T,o),"aria-labelledby":UE(R,o),"aria-required":UE(O,o),"aria-valuetext":(H=UE(M,o))===null||H===void 0?void 0:H(i),"aria-orientation":b==="ltr"||b==="rtl"?"horizontal":"vertical",onMouseDown:U,onTouchStart:U,onFocus:z,onMouseEnter:D,onKeyDown:B,onKeyUp:Y}}var G=m.createElement("div",ft({ref:n,className:Ce($,fe(fe(fe({},"".concat($,"-").concat(o+1),o!==null&&C),"".concat($,"-dragging"),u),"".concat($,"-dragging-delete"),d),k.handle),style:ee(ee(ee({},q),l),P.handle)},K,v));return c&&(G=c(G,{index:o,prefixCls:r,value:i,dragging:u,draggingDelete:d})),G}),r7t=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],i7t=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.style,o=e.onStartMove,a=e.onOffsetChange,s=e.values,l=e.handleRender,c=e.activeHandleRender,u=e.draggingIndex,d=e.draggingDelete,f=e.onFocus,p=Xt(e,r7t),h=m.useRef({}),g=m.useState(!1),v=ke(g,2),y=v[0],_=v[1],S=m.useState(-1),b=ke(S,2),E=b[0],w=b[1],C=function(M){w(M),_(!0)},x=function(M,P){C(P),f==null||f(M)},T=function(M,P){C(P)};m.useImperativeHandle(n,function(){return{focus:function(M){var P;(P=h.current[M])===null||P===void 0||P.focus()},hideHelp:function(){Us.flushSync(function(){_(!1)})}}});var R=ee({prefixCls:r,onStartMove:o,onOffsetChange:a,render:l,onFocus:x,onMouseEnter:T},p);return m.createElement(m.Fragment,null,s.map(function(O,M){var P=u===M;return m.createElement(jCe,ft({ref:function($){$?h.current[M]=$:delete h.current[M]},dragging:P,draggingDelete:P&&d,style:UE(i,M),key:M,value:O,valueIndex:M},R))}),c&&y&&m.createElement(jCe,ft({key:"a11y"},R,{value:s[E],valueIndex:null,dragging:u!==-1,draggingDelete:d,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),o7t=function(n){var r=n.prefixCls,i=n.style,o=n.children,a=n.value,s=n.onClick,l=m.useContext(aw),c=l.min,u=l.max,d=l.direction,f=l.includedStart,p=l.includedEnd,h=l.included,g="".concat(r,"-text"),v=Nde(d,a,c,u);return m.createElement("span",{className:Ce(g,fe({},"".concat(g,"-active"),h&&f<=a&&a<=p)),style:ee(ee({},v),i),onMouseDown:function(_){_.stopPropagation()},onClick:function(){s(a)}},o)},a7t=function(n){var r=n.prefixCls,i=n.marks,o=n.onClick,a="".concat(r,"-mark");return i.length?m.createElement("div",{className:a},i.map(function(s){var l=s.value,c=s.style,u=s.label;return m.createElement(o7t,{key:l,prefixCls:a,style:c,value:l,onClick:o},u)})):null},s7t=function(n){var r=n.prefixCls,i=n.value,o=n.style,a=n.activeStyle,s=m.useContext(aw),l=s.min,c=s.max,u=s.direction,d=s.included,f=s.includedStart,p=s.includedEnd,h="".concat(r,"-dot"),g=d&&f<=i&&i<=p,v=ee(ee({},Nde(u,i,l,c)),typeof o=="function"?o(i):o);return g&&(v=ee(ee({},v),typeof a=="function"?a(i):a)),m.createElement("span",{className:Ce(h,fe({},"".concat(h,"-active"),g)),style:v})},l7t=function(n){var r=n.prefixCls,i=n.marks,o=n.dots,a=n.style,s=n.activeStyle,l=m.useContext(aw),c=l.min,u=l.max,d=l.step,f=m.useMemo(function(){var p=new Set;if(i.forEach(function(g){p.add(g.value)}),o&&d!==null)for(var h=c;h<=u;)p.add(h),h+=d;return Array.from(p)},[c,u,d,o,i]);return m.createElement("div",{className:"".concat(r,"-step")},f.map(function(p){return m.createElement(s7t,{prefixCls:r,key:p,value:p,style:a,activeStyle:s})}))},UCe=function(n){var r=n.prefixCls,i=n.style,o=n.start,a=n.end,s=n.index,l=n.onStartMove,c=n.replaceCls,u=m.useContext(aw),d=u.direction,f=u.min,p=u.max,h=u.disabled,g=u.range,v=u.classNames,y="".concat(r,"-track"),_=_ie(o,f,p),S=_ie(a,f,p),b=function(x){!h&&l&&l(x,-1)},E={};switch(d){case"rtl":E.right="".concat(_*100,"%"),E.width="".concat(S*100-_*100,"%");break;case"btt":E.bottom="".concat(_*100,"%"),E.height="".concat(S*100-_*100,"%");break;case"ttb":E.top="".concat(_*100,"%"),E.height="".concat(S*100-_*100,"%");break;default:E.left="".concat(_*100,"%"),E.width="".concat(S*100-_*100,"%")}var w=c||Ce(y,fe(fe({},"".concat(y,"-").concat(s+1),s!==null&&g),"".concat(r,"-track-draggable"),l),v.track);return m.createElement("div",{className:w,style:ee(ee({},E),i),onMouseDown:b,onTouchStart:b})},c7t=function(n){var r=n.prefixCls,i=n.style,o=n.values,a=n.startPoint,s=n.onStartMove,l=m.useContext(aw),c=l.included,u=l.range,d=l.min,f=l.styles,p=l.classNames,h=m.useMemo(function(){if(!u){if(o.length===0)return[];var v=a??d,y=o[0];return[{start:Math.min(v,y),end:Math.max(v,y)}]}for(var _=[],S=0;S<o.length-1;S+=1)_.push({start:o[S],end:o[S+1]});return _},[o,u,a,d]);if(!c)return null;var g=h!=null&&h.length&&(p.tracks||f.tracks)?m.createElement(UCe,{index:null,prefixCls:r,start:h[0].start,end:h[h.length-1].end,replaceCls:Ce(p.tracks,"".concat(r,"-tracks")),style:f.tracks}):null;return m.createElement(m.Fragment,null,g,h.map(function(v,y){var _=v.start,S=v.end;return m.createElement(UCe,{index:y,prefixCls:r,style:ee(ee({},UE(i,y)),f.track),start:_,end:S,key:y,onStartMove:s})}))},u7t=130;function HCe(e){var n="targetTouches"in e?e.targetTouches[0]:e;return{pageX:n.pageX,pageY:n.pageY}}function d7t(e,n,r,i,o,a,s,l,c,u,d){var f=m.useState(null),p=ke(f,2),h=p[0],g=p[1],v=m.useState(-1),y=ke(v,2),_=y[0],S=y[1],b=m.useState(!1),E=ke(b,2),w=E[0],C=E[1],x=m.useState(r),T=ke(x,2),R=T[0],O=T[1],M=m.useState(r),P=ke(M,2),k=P[0],$=P[1],U=m.useRef(null),z=m.useRef(null),D=m.useRef(null),B=m.useContext(Uze),Y=B.onDragStart,q=B.onDragChange;ti(function(){_===-1&&O(r)},[r,_]),m.useEffect(function(){return function(){document.removeEventListener("mousemove",U.current),document.removeEventListener("mouseup",z.current),D.current&&(D.current.removeEventListener("touchmove",U.current),D.current.removeEventListener("touchend",z.current))}},[]);var K=function(Z,j,F){j!==void 0&&g(j),O(Z);var te=Z;F&&(te=Z.filter(function(oe,de){return de!==_})),s(te),q&&q({rawValues:Z,deleteIndex:F?_:-1,draggingIndex:_,draggingValue:j})},H=Sr(function(le,Z,j){if(le===-1){var F=k[0],te=k[k.length-1],oe=i-F,de=o-te,pe=Z*(o-i);pe=Math.max(pe,oe),pe=Math.min(pe,de);var me=a(F+pe);pe=me-F;var ve=k.map(function(De){return De+pe});K(ve)}else{var he=(o-i)*Z,be=Tt(R);be[le]=k[le];var we=c(be,he,le,"dist");K(we.values,we.value,j)}}),G=function(Z,j,F){Z.stopPropagation();var te=F||r,oe=te[j];S(j),g(oe),$(te),O(te),C(!1);var de=HCe(Z),pe=de.pageX,me=de.pageY,ve=!1;Y&&Y({rawValues:te,draggingIndex:j,draggingValue:oe});var he=function(De){De.preventDefault();var Ae=HCe(De),Ee=Ae.pageX,Re=Ae.pageY,Te=Ee-pe,Oe=Re-me,Ne=e.current.getBoundingClientRect(),je=Ne.width,ne=Ne.height,J,ae;switch(n){case"btt":J=-Oe/ne,ae=Te;break;case"ttb":J=Oe/ne,ae=Te;break;case"rtl":J=-Te/je,ae=Oe;break;default:J=Te/je,ae=Oe}ve=u?Math.abs(ae)>u7t&&d<R.length:!1,C(ve),H(j,J,ve)},be=function we(De){De.preventDefault(),document.removeEventListener("mouseup",we),document.removeEventListener("mousemove",he),D.current&&(D.current.removeEventListener("touchmove",U.current),D.current.removeEventListener("touchend",z.current)),U.current=null,z.current=null,D.current=null,l(ve),S(-1),C(!1)};document.addEventListener("mouseup",be),document.addEventListener("mousemove",he),Z.currentTarget.addEventListener("touchend",be),Z.currentTarget.addEventListener("touchmove",he),U.current=he,z.current=be,D.current=Z.currentTarget},Q=m.useMemo(function(){var le=Tt(r).sort(function(oe,de){return oe-de}),Z=Tt(R).sort(function(oe,de){return oe-de}),j={};Z.forEach(function(oe){j[oe]=(j[oe]||0)+1}),le.forEach(function(oe){j[oe]=(j[oe]||0)-1});var F=u?1:0,te=Object.values(j).reduce(function(oe,de){return oe+Math.abs(de)},0);return te<=F?R:r},[r,R,u]);return[_,h,w,Q,G]}function f7t(e,n,r,i,o,a){var s=m.useCallback(function(h){return Math.max(e,Math.min(n,h))},[e,n]),l=m.useCallback(function(h){if(r!==null){var g=e+Math.round((s(h)-e)/r)*r,v=function(b){return(String(b).split(".")[1]||"").length},y=Math.max(v(r),v(n),v(e)),_=Number(g.toFixed(y));return e<=_&&_<=n?_:null}return null},[r,e,n,s]),c=m.useCallback(function(h){var g=s(h),v=i.map(function(S){return S.value});r!==null&&v.push(l(h)),v.push(e,n);var y=v[0],_=n-e;return v.forEach(function(S){var b=Math.abs(g-S);b<=_&&(y=S,_=b)}),y},[e,n,i,r,s,l]),u=function h(g,v,y){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var S,b=g[y],E=b+v,w=[];i.forEach(function(O){w.push(O.value)}),w.push(e,n),w.push(l(b));var C=v>0?1:-1;_==="unit"?w.push(l(b+C*r)):w.push(l(E)),w=w.filter(function(O){return O!==null}).filter(function(O){return v<0?O<=b:O>=b}),_==="unit"&&(w=w.filter(function(O){return O!==b}));var x=_==="unit"?b:E;S=w[0];var T=Math.abs(S-x);if(w.forEach(function(O){var M=Math.abs(O-x);M<T&&(S=O,T=M)}),S===void 0)return v<0?e:n;if(_==="dist")return S;if(Math.abs(v)>1){var R=Tt(g);return R[y]=S,h(R,v-C,y,_)}return S}else{if(v==="min")return e;if(v==="max")return n}},d=function(g,v,y){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",S=g[y],b=u(g,v,y,_);return{value:b,changed:b!==S}},f=function(g){return a===null&&g===0||typeof a=="number"&&g<a},p=function(g,v,y){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",S=g.map(c),b=S[y],E=u(S,v,y,_);if(S[y]=E,o===!1){var w=a||0;y>0&&S[y-1]!==b&&(S[y]=Math.max(S[y],S[y-1]+w)),y<S.length-1&&S[y+1]!==b&&(S[y]=Math.min(S[y],S[y+1]-w))}else if(typeof a=="number"||a===null){for(var C=y+1;C<S.length;C+=1)for(var x=!0;f(S[C]-S[C-1])&&x;){var T=d(S,1,C);S[C]=T.value,x=T.changed}for(var R=y;R>0;R-=1)for(var O=!0;f(S[R]-S[R-1])&&O;){var M=d(S,-1,R-1);S[R-1]=M.value,O=M.changed}for(var P=S.length-1;P>0;P-=1)for(var k=!0;f(S[P]-S[P-1])&&k;){var $=d(S,-1,P-1);S[P-1]=$.value,k=$.changed}for(var U=0;U<S.length-1;U+=1)for(var z=!0;f(S[U+1]-S[U])&&z;){var D=d(S,1,U+1);S[U+1]=D.value,z=D.changed}}return{value:S[y],values:S}};return[c,p]}function p7t(e){return m.useMemo(function(){if(e===!0||!e)return[!!e,!1,!1,0];var n=e.editable,r=e.draggableTrack,i=e.minCount,o=e.maxCount;return[!0,n,!n&&r,i||0,o]},[e])}var h7t=m.forwardRef(function(e,n){var r=e.prefixCls,i=r===void 0?"rc-slider":r,o=e.className,a=e.style,s=e.classNames,l=e.styles,c=e.id,u=e.disabled,d=u===void 0?!1:u,f=e.keyboard,p=f===void 0?!0:f,h=e.autoFocus,g=e.onFocus,v=e.onBlur,y=e.min,_=y===void 0?0:y,S=e.max,b=S===void 0?100:S,E=e.step,w=E===void 0?1:E,C=e.value,x=e.defaultValue,T=e.range,R=e.count,O=e.onChange,M=e.onBeforeChange,P=e.onAfterChange,k=e.onChangeComplete,$=e.allowCross,U=$===void 0?!0:$,z=e.pushable,D=z===void 0?!1:z,B=e.reverse,Y=e.vertical,q=e.included,K=q===void 0?!0:q,H=e.startPoint,G=e.trackStyle,Q=e.handleStyle,le=e.railStyle,Z=e.dotStyle,j=e.activeDotStyle,F=e.marks,te=e.dots,oe=e.handleRender,de=e.activeHandleRender,pe=e.track,me=e.tabIndex,ve=me===void 0?0:me,he=e.ariaLabelForHandle,be=e.ariaLabelledByForHandle,we=e.ariaRequired,De=e.ariaValueTextFormatterForHandle,Ae=m.useRef(null),Ee=m.useRef(null),Re=m.useMemo(function(){return Y?B?"ttb":"btt":B?"rtl":"ltr"},[B,Y]),Te=p7t(T),Oe=ke(Te,5),Ne=Oe[0],je=Oe[1],ne=Oe[2],J=Oe[3],ae=Oe[4],Se=m.useMemo(function(){return isFinite(_)?_:0},[_]),xe=m.useMemo(function(){return isFinite(b)?b:100},[b]),ue=m.useMemo(function(){return w!==null&&w<=0?1:w},[w]),Me=m.useMemo(function(){return typeof D=="boolean"?D?ue:!1:D>=0?D:!1},[D,ue]),$e=m.useMemo(function(){return Object.keys(F||{}).map(function(Zt){var Et=F[Zt],Gt={value:Number(Zt)};return Et&&cn(Et)==="object"&&!m.isValidElement(Et)&&("label"in Et||"style"in Et)?(Gt.style=Et.style,Gt.label=Et.label):Gt.label=Et,Gt}).filter(function(Zt){var Et=Zt.label;return Et||typeof Et=="number"}).sort(function(Zt,Et){return Zt.value-Et.value})},[F]),ge=f7t(Se,xe,ue,$e,U,Me),Ve=ke(ge,2),st=Ve[0],Je=Ve[1],ot=dr(x,{value:C}),Xe=ke(ot,2),Ze=Xe[0],bt=Xe[1],at=m.useMemo(function(){var Zt=Ze==null?[]:Array.isArray(Ze)?Ze:[Ze],Et=ke(Zt,1),Gt=Et[0],zt=Gt===void 0?Se:Gt,Vn=Ze===null?[]:[zt];if(Ne){if(Vn=Tt(Zt),R||Ze===void 0){var sr=R>=0?R+1:2;for(Vn=Vn.slice(0,sr);Vn.length<sr;){var A;Vn.push((A=Vn[Vn.length-1])!==null&&A!==void 0?A:Se)}}Vn.sort(function(W,ce){return W-ce})}return Vn.forEach(function(W,ce){Vn[ce]=st(W)}),Vn},[Ze,Ne,Se,R,st]),pt=function(Et){return Ne?Et:Et[0]},Ct=Sr(function(Zt){var Et=Tt(Zt).sort(function(Gt,zt){return Gt-zt});O&&!rC(Et,at,!0)&&O(pt(Et)),bt(Et)}),It=Sr(function(Zt){Zt&&Ae.current.hideHelp();var Et=pt(at);P==null||P(Et),qi(!P,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),k==null||k(Et)}),Wt=function(Et){if(!(d||!je||at.length<=J)){var Gt=Tt(at);Gt.splice(Et,1),M==null||M(pt(Gt)),Ct(Gt);var zt=Math.max(0,Et-1);Ae.current.hideHelp(),Ae.current.focus(zt)}},Bt=d7t(Ee,Re,at,Se,xe,st,Ct,It,Je,je,J),Vt=ke(Bt,5),rn=Vt[0],tt=Vt[1],it=Vt[2],nt=Vt[3],vt=Vt[4],kt=function(Et,Gt){if(!d){var zt=Tt(at),Vn=0,sr=0,A=xe-Se;at.forEach(function(gt,Yt){var Nn=Math.abs(Et-gt);Nn<=A&&(A=Nn,Vn=Yt),gt<Et&&(sr=Yt)});var W=Vn;je&&A!==0&&(!ae||at.length<ae)?(zt.splice(sr+1,0,Et),W=sr+1):zt[Vn]=Et,Ne&&!at.length&&R===void 0&&zt.push(Et);var ce=pt(zt);if(M==null||M(ce),Ct(zt),Gt){var Pe,qe;(Pe=document.activeElement)===null||Pe===void 0||(qe=Pe.blur)===null||qe===void 0||qe.call(Pe),Ae.current.focus(W),vt(Gt,W,zt)}else P==null||P(ce),qi(!P,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),k==null||k(ce)}},Dt=function(Et){Et.preventDefault();var Gt=Ee.current.getBoundingClientRect(),zt=Gt.width,Vn=Gt.height,sr=Gt.left,A=Gt.top,W=Gt.bottom,ce=Gt.right,Pe=Et.clientX,qe=Et.clientY,gt;switch(Re){case"btt":gt=(W-qe)/Vn;break;case"ttb":gt=(qe-A)/Vn;break;case"rtl":gt=(ce-Pe)/zt;break;default:gt=(Pe-sr)/zt}var Yt=Se+gt*(xe-Se);kt(st(Yt),Et)},Kt=m.useState(null),Ht=ke(Kt,2),tn=Ht[0],on=Ht[1],sn=function(Et,Gt){if(!d){var zt=Je(at,Et,Gt);M==null||M(pt(at)),Ct(zt.values),on(zt.value)}};m.useEffect(function(){if(tn!==null){var Zt=at.indexOf(tn);Zt>=0&&Ae.current.focus(Zt)}on(null)},[tn]);var Jt=m.useMemo(function(){return ne&&ue===null?!1:ne},[ne,ue]),En=Sr(function(Zt,Et){vt(Zt,Et),M==null||M(pt(at))}),Pt=rn!==-1;m.useEffect(function(){if(!Pt){var Zt=at.lastIndexOf(tt);Ae.current.focus(Zt)}},[Pt]);var Qt=m.useMemo(function(){return Tt(nt).sort(function(Zt,Et){return Zt-Et})},[nt]),ln=m.useMemo(function(){return Ne?[Qt[0],Qt[Qt.length-1]]:[Se,Qt[0]]},[Qt,Ne,Se]),jt=ke(ln,2),Lt=jt[0],en=jt[1];m.useImperativeHandle(n,function(){return{focus:function(){Ae.current.focus(0)},blur:function(){var Et,Gt=document,zt=Gt.activeElement;(Et=Ee.current)!==null&&Et!==void 0&&Et.contains(zt)&&(zt==null||zt.blur())}}}),m.useEffect(function(){h&&Ae.current.focus(0)},[]);var Ue=m.useMemo(function(){return{min:Se,max:xe,direction:Re,disabled:d,keyboard:p,step:ue,included:K,includedStart:Lt,includedEnd:en,range:Ne,tabIndex:ve,ariaLabelForHandle:he,ariaLabelledByForHandle:be,ariaRequired:we,ariaValueTextFormatterForHandle:De,styles:l||{},classNames:s||{}}},[Se,xe,Re,d,p,ue,K,Lt,en,Ne,ve,he,be,we,De,l,s]);return m.createElement(aw.Provider,{value:Ue},m.createElement("div",{ref:Ee,className:Ce(i,o,fe(fe(fe(fe({},"".concat(i,"-disabled"),d),"".concat(i,"-vertical"),Y),"".concat(i,"-horizontal"),!Y),"".concat(i,"-with-marks"),$e.length)),style:a,onMouseDown:Dt,id:c},m.createElement("div",{className:Ce("".concat(i,"-rail"),s==null?void 0:s.rail),style:ee(ee({},le),l==null?void 0:l.rail)}),pe!==!1&&m.createElement(c7t,{prefixCls:i,style:G,values:at,startPoint:H,onStartMove:Jt?En:void 0}),m.createElement(l7t,{prefixCls:i,marks:$e,dots:te,style:Z,activeStyle:j}),m.createElement(i7t,{ref:Ae,prefixCls:i,style:Q,values:nt,draggingIndex:rn,draggingDelete:it,onStartMove:En,onOffsetChange:sn,onFocus:g,onBlur:v,handleRender:oe,activeHandleRender:de,onChangeComplete:It,onDelete:je?Wt:void 0}),m.createElement(a7t,{prefixCls:i,marks:$e,onClick:kt})))});const Hze=m.createContext({}),zCe=m.forwardRef((e,n)=>{const{open:r,draggingDelete:i}=e,o=m.useRef(null),a=r&&!i,s=m.useRef(null);function l(){Dr.cancel(s.current),s.current=null}function c(){s.current=Dr(()=>{var u;(u=o.current)===null||u===void 0||u.forceAlign(),s.current=null})}return m.useEffect(()=>(a?c():l(),l),[a,e.title]),m.createElement(Ef,Object.assign({ref:Il(o,n)},e,{open:a}))}),g7t=e=>{const{componentCls:n,antCls:r,controlSize:i,dotSize:o,marginFull:a,marginPart:s,colorFillContentHover:l,handleColorDisabled:c,calc:u,handleSize:d,handleSizeHover:f,handleActiveColor:p,handleActiveOutlineColor:h,handleLineWidth:g,handleLineWidthHover:v,motionDurationMid:y}=e;return{[n]:Object.assign(Object.assign({},li(e)),{position:"relative",height:i,margin:`${Ye(s)} ${Ye(a)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Ye(a)} ${Ye(s)}`},[`${n}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${y}`},[`${n}-track,${n}-tracks`]:{position:"absolute",transition:`background-color ${y}`},[`${n}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${n}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${n}-rail`]:{backgroundColor:e.railHoverBg},[`${n}-track`]:{backgroundColor:e.trackHoverBg},[`${n}-dot`]:{borderColor:l},[`${n}-handle::after`]:{boxShadow:`0 0 0 ${Ye(g)} ${e.colorPrimaryBorderHover}`},[`${n}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${n}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:u(g).mul(-1).equal(),insetBlockStart:u(g).mul(-1).equal(),width:u(d).add(u(g).mul(2)).equal(),height:u(d).add(u(g).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Ye(g)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
inset-inline-start ${y},
inset-block-start ${y},
width ${y},
height ${y},
box-shadow ${y},
outline ${y}
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:u(f).sub(d).div(2).add(v).mul(-1).equal(),insetBlockStart:u(f).sub(d).div(2).add(v).mul(-1).equal(),width:u(f).add(u(v).mul(2)).equal(),height:u(f).add(u(v).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${Ye(v)} ${p}`,outline:`6px solid ${h}`,width:f,height:f,insetInlineStart:e.calc(d).sub(f).div(2).equal(),insetBlockStart:e.calc(d).sub(f).div(2).equal()}}},[`&-lock ${n}-handle`]:{"&::before, &::after":{transition:"none"}},[`${n}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${n}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${n}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${n}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${Ye(g)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${n}-disabled`]:{cursor:"not-allowed",[`${n}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${n}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
${n}-dot
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${n}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:d,height:d,boxShadow:`0 0 0 ${Ye(g)} ${c}`,insetInlineStart:0,insetBlockStart:0},[`
${n}-mark-text,
${n}-dot
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${r}-tooltip-inner`]:{minWidth:"unset"}})}},zze=(e,n)=>{const{componentCls:r,railSize:i,handleSize:o,dotSize:a,marginFull:s,calc:l}=e,c=n?"paddingBlock":"paddingInline",u=n?"width":"height",d=n?"height":"width",f=n?"insetBlockStart":"insetInlineStart",p=n?"top":"insetInlineStart",h=l(i).mul(3).sub(o).div(2).equal(),g=l(o).sub(i).div(2).equal(),v=n?{borderWidth:`${Ye(g)} 0`,transform:`translateY(${Ye(l(g).mul(-1).equal())})`}:{borderWidth:`0 ${Ye(g)}`,transform:`translateX(${Ye(e.calc(g).mul(-1).equal())})`};return{[c]:i,[d]:l(i).mul(3).equal(),[`${r}-rail`]:{[u]:"100%",[d]:i},[`${r}-track,${r}-tracks`]:{[d]:i},[`${r}-track-draggable`]:Object.assign({},v),[`${r}-handle`]:{[f]:h},[`${r}-mark`]:{insetInlineStart:0,top:0,[p]:l(i).mul(3).add(n?0:s).equal(),[u]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[p]:i,[u]:"100%",[d]:i},[`${r}-dot`]:{position:"absolute",[f]:l(i).sub(a).div(2).equal()}}},m7t=e=>{const{componentCls:n,marginPartWithMark:r}=e;return{[`${n}-horizontal`]:Object.assign(Object.assign({},zze(e,!0)),{[`&${n}-with-marks`]:{marginBottom:r}})}},v7t=e=>{const{componentCls:n}=e;return{[`${n}-vertical`]:Object.assign(Object.assign({},zze(e,!1)),{height:"100%"})}},y7t=e=>{const r=e.controlHeightLG/4,i=e.controlHeightSM/2,o=e.lineWidth+1,a=e.lineWidth+1*1.5,s=e.colorPrimary,l=new Gr(s).setA(.2).toRgbString();return{controlSize:r,railSize:4,handleSize:r,handleSizeHover:i,dotSize:8,handleLineWidth:o,handleLineWidthHover:a,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:s,handleActiveOutlineColor:l,handleColorDisabled:new Gr(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},_7t=Yr("Slider",e=>{const n=wr(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[g7t(n),m7t(n),v7t(n)]},y7t);function mq(){const[e,n]=m.useState(!1),r=m.useRef(null),i=()=>{Dr.cancel(r.current)},o=a=>{i(),a?n(a):r.current=Dr(()=>{n(a)})};return m.useEffect(()=>i,[]),[e,o]}var b7t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function S7t(e,n){return e||e===null?e:n||n===null?n:r=>typeof r=="number"?r.toString():""}const Vze=V.forwardRef((e,n)=>{var r,i,o,a,s,l,c,u,d,f;const{prefixCls:p,range:h,className:g,rootClassName:v,style:y,disabled:_,tooltipPrefixCls:S,tipFormatter:b,tooltipVisible:E,getTooltipPopupContainer:w,tooltipPlacement:C,tooltip:x={},onChangeComplete:T,classNames:R,styles:O}=e,M=b7t(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:P}=e,{direction:k,slider:$,getPrefixCls:U,getPopupContainer:z}=V.useContext(Cn),D=V.useContext(xs),B=_??D,{handleRender:Y,direction:q}=V.useContext(Hze),H=(q||k)==="rtl",[G,Q]=mq(),[le,Z]=mq(),j=Object.assign({},x),{open:F,placement:te,getPopupContainer:oe,prefixCls:de,formatter:pe}=j,me=F??E,ve=(G||le)&&me!==!1,he=S7t(pe,b),[be,we]=mq(),De=ue=>{T==null||T(ue),we(!1)},Ae=(ue,Me)=>ue||(Me?H?"left":"right":"top"),Ee=U("slider",p),[Re,Te,Oe]=_7t(Ee),Ne=Ce(g,$==null?void 0:$.className,(r=$==null?void 0:$.classNames)===null||r===void 0?void 0:r.root,R==null?void 0:R.root,v,{[`${Ee}-rtl`]:H,[`${Ee}-lock`]:be},Te,Oe);H&&!M.vertical&&(M.reverse=!M.reverse),V.useEffect(()=>{const ue=()=>{Dr(()=>{Z(!1)},1)};return document.addEventListener("mouseup",ue),()=>{document.removeEventListener("mouseup",ue)}},[]);const je=h&&!me,ne=Y||((ue,Me)=>{const{index:$e}=Me,ge=ue.props;function Ve(Xe,Ze,bt){var at,pt,Ct,It;bt&&((pt=(at=M)[Xe])===null||pt===void 0||pt.call(at,Ze)),(It=(Ct=ge)[Xe])===null||It===void 0||It.call(Ct,Ze)}const st=Object.assign(Object.assign({},ge),{onMouseEnter:Xe=>{Q(!0),Ve("onMouseEnter",Xe)},onMouseLeave:Xe=>{Q(!1),Ve("onMouseLeave",Xe)},onMouseDown:Xe=>{Z(!0),we(!0),Ve("onMouseDown",Xe)},onFocus:Xe=>{var Ze;Z(!0),(Ze=M.onFocus)===null||Ze===void 0||Ze.call(M,Xe),Ve("onFocus",Xe,!0)},onBlur:Xe=>{var Ze;Z(!1),(Ze=M.onBlur)===null||Ze===void 0||Ze.call(M,Xe),Ve("onBlur",Xe,!0)}}),Je=V.cloneElement(ue,st),ot=(!!me||ve)&&he!==null;return je?Je:V.createElement(zCe,Object.assign({},j,{prefixCls:U("tooltip",de??S),title:he?he(Me.value):"",open:ot,placement:Ae(te??C,P),key:$e,classNames:{root:`${Ee}-tooltip`},getPopupContainer:oe||w||z}),Je)}),J=je?(ue,Me)=>{const $e=V.cloneElement(ue,{style:Object.assign(Object.assign({},ue.props.style),{visibility:"hidden"})});return V.createElement(zCe,Object.assign({},j,{prefixCls:U("tooltip",de??S),title:he?he(Me.value):"",open:he!==null&&ve,placement:Ae(te??C,P),key:"tooltip",classNames:{root:`${Ee}-tooltip`},getPopupContainer:oe||w||z,draggingDelete:Me.draggingDelete}),$e)}:void 0,ae=Object.assign(Object.assign(Object.assign(Object.assign({},(i=$==null?void 0:$.styles)===null||i===void 0?void 0:i.root),$==null?void 0:$.style),O==null?void 0:O.root),y),Se=Object.assign(Object.assign({},(o=$==null?void 0:$.styles)===null||o===void 0?void 0:o.tracks),O==null?void 0:O.tracks),xe=Ce((a=$==null?void 0:$.classNames)===null||a===void 0?void 0:a.tracks,R==null?void 0:R.tracks);return Re(V.createElement(h7t,Object.assign({},M,{classNames:Object.assign({handle:Ce((s=$==null?void 0:$.classNames)===null||s===void 0?void 0:s.handle,R==null?void 0:R.handle),rail:Ce((l=$==null?void 0:$.classNames)===null||l===void 0?void 0:l.rail,R==null?void 0:R.rail),track:Ce((c=$==null?void 0:$.classNames)===null||c===void 0?void 0:c.track,R==null?void 0:R.track)},xe?{tracks:xe}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},(u=$==null?void 0:$.styles)===null||u===void 0?void 0:u.handle),O==null?void 0:O.handle),rail:Object.assign(Object.assign({},(d=$==null?void 0:$.styles)===null||d===void 0?void 0:d.rail),O==null?void 0:O.rail),track:Object.assign(Object.assign({},(f=$==null?void 0:$.styles)===null||f===void 0?void 0:f.track),O==null?void 0:O.track)},Object.keys(Se).length?{tracks:Se}:{}),step:M.step,range:h,className:Ne,style:ae,disabled:B,ref:n,prefixCls:Ee,handleRender:ne,activeHandleRender:J,onChangeComplete:De})))});var E7t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Gze=e=>{const{prefixCls:n,colors:r,type:i,color:o,range:a=!1,className:s,activeIndex:l,onActive:c,onDragStart:u,onDragChange:d,onKeyDelete:f}=e,p=E7t(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),h=Object.assign(Object.assign({},p),{track:!1}),g=m.useMemo(()=>`linear-gradient(90deg, ${r.map(C=>`${C.color} ${C.percent}%`).join(", ")})`,[r]),v=m.useMemo(()=>!o||!i?null:i==="alpha"?o.toRgbString():`hsl(${o.toHsb().h}, 100%, 50%)`,[o,i]),y=Sr(u),_=Sr(d),S=m.useMemo(()=>({onDragStart:y,onDragChange:_}),[]),b=Sr((w,C)=>{const{onFocus:x,style:T,className:R,onKeyDown:O}=w.props,M=Object.assign({},T);return i==="gradient"&&(M.background=d9e(r,C.value)),m.cloneElement(w,{onFocus:P=>{c==null||c(C.index),x==null||x(P)},style:M,className:Ce(R,{[`${n}-slider-handle-active`]:l===C.index}),onKeyDown:P=>{(P.key==="Delete"||P.key==="Backspace")&&f&&f(C.index),O==null||O(P)}})}),E=m.useMemo(()=>({direction:"ltr",handleRender:b}),[]);return m.createElement(Hze.Provider,{value:E},m.createElement(Uze.Provider,{value:S},m.createElement(Vze,Object.assign({},h,{className:Ce(s,`${n}-slider`),tooltip:{open:!1},range:{editable:a,minCount:2},styles:{rail:{background:g},handle:v?{background:v}:{}},classNames:{rail:`${n}-slider-rail`,handle:`${n}-slider-handle`}}))))},C7t=e=>{const{value:n,onChange:r,onChangeComplete:i}=e,o=s=>r(s[0]),a=s=>i(s[0]);return m.createElement(Gze,Object.assign({},e,{value:[n],onChange:o,onChangeComplete:a}))};function VCe(e){return Tt(e).sort((n,r)=>n.percent-r.percent)}const w7t=e=>{const{prefixCls:n,mode:r,onChange:i,onChangeComplete:o,onActive:a,activeIndex:s,onGradientDragging:l,colors:c}=e,u=r==="gradient",d=m.useMemo(()=>c.map(_=>({percent:_.percent,color:_.color.toRgbString()})),[c]),f=m.useMemo(()=>d.map(_=>_.percent),[d]),p=m.useRef(d),h=_=>{let{rawValues:S,draggingIndex:b,draggingValue:E}=_;if(S.length>d.length){const w=d9e(d,E),C=Tt(d);C.splice(b,0,{percent:E,color:w}),p.current=C}else p.current=d;l(!0),i(new lf(VCe(p.current)),!0)},g=_=>{let{deleteIndex:S,draggingIndex:b,draggingValue:E}=_,w=Tt(p.current);S!==-1?w.splice(S,1):(w[b]=Object.assign(Object.assign({},w[b]),{percent:E}),w=VCe(w)),i(new lf(w),!0)},v=_=>{const S=Tt(d);S.splice(_,1);const b=new lf(S);i(b),o(b)},y=_=>{o(new lf(d)),s>=_.length&&a(_.length-1),l(!1)};return u?m.createElement(Gze,{min:0,max:100,prefixCls:n,className:`${n}-gradient-slider`,colors:d,color:null,value:f,range:!0,onChangeComplete:y,disabled:!1,type:"gradient",activeIndex:s,onActive:a,onDragStart:h,onDragChange:g,onKeyDelete:v}):null},x7t=m.memo(w7t);var T7t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const O7t={slider:C7t},GCe=()=>{const e=m.useContext(Mze),{mode:n,onModeChange:r,modeOptions:i,prefixCls:o,allowClear:a,value:s,disabledAlpha:l,onChange:c,onClear:u,onChangeComplete:d,activeIndex:f,gradientDragging:p}=e,h=T7t(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),g=V.useMemo(()=>s.cleared?[{percent:0,color:new lf("")},{percent:100,color:new lf("")}]:s.getColors(),[s]),v=!s.isGradient(),[y,_]=V.useState(s);ti(()=>{var $;v||_(($=g[f])===null||$===void 0?void 0:$.color)},[p,f]);const S=V.useMemo(()=>{var $;return v?s:p?y:($=g[f])===null||$===void 0?void 0:$.color},[s,f,v,y,p]),[b,E]=V.useState(S),[w,C]=V.useState(0),x=b!=null&&b.equals(S)?S:b;ti(()=>{E(S)},[w,S==null?void 0:S.toHexString()]);const T=($,U)=>{let z=Gc($);if(s.cleared){const B=z.toRgb();if(!B.r&&!B.g&&!B.b&&U){const{type:Y,value:q=0}=U;z=new lf({h:Y==="hue"?q:0,s:1,b:1,a:Y==="alpha"?q/100:1})}else z=u6(z)}if(n==="single")return z;const D=Tt(g);return D[f]=Object.assign(Object.assign({},D[f]),{color:z}),new lf(D)},R=($,U,z)=>{const D=T($,z);E(D.isGradient()?D.getColors()[f].color:D),c(D,U)},O=($,U)=>{d(T($,U)),C(z=>z+1)},M=$=>{c(T($))};let P=null;const k=i.length>1;return(a||k)&&(P=V.createElement("div",{className:`${o}-operation`},k&&V.createElement(Nze,{size:"small",options:i,value:n,onChange:r}),V.createElement(Aze,Object.assign({prefixCls:o,value:s,onChange:$=>{c($),u==null||u()}},h)))),V.createElement(V.Fragment,null,P,V.createElement(x7t,Object.assign({},e,{colors:g})),V.createElement(YPt,{prefixCls:o,value:x==null?void 0:x.toHsb(),disabledAlpha:l,onChange:($,U)=>{R($,!0,U)},onChangeComplete:($,U)=>{O($,U)},components:O7t}),V.createElement(t7t,Object.assign({value:S,onChange:M,prefixCls:o,disabledAlpha:l},h)))},WCe=()=>{const{prefixCls:e,value:n,presets:r,onChange:i}=m.useContext(Pze);return Array.isArray(r)?V.createElement(jAt,{value:n,presets:r,prefixCls:e,onChange:i}):null},R7t=e=>{const{prefixCls:n,presets:r,panelRender:i,value:o,onChange:a,onClear:s,allowClear:l,disabledAlpha:c,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:p,activeIndex:h,onActive:g,format:v,onFormatChange:y,gradientDragging:_,onGradientDragging:S,disabledFormat:b}=e,E=`${n}-inner`,w=V.useMemo(()=>({prefixCls:n,value:o,onChange:a,onClear:s,allowClear:l,disabledAlpha:c,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:p,activeIndex:h,onActive:g,format:v,onFormatChange:y,gradientDragging:_,onGradientDragging:S,disabledFormat:b}),[n,o,a,s,l,c,u,d,f,p,h,g,v,y,_,S,b]),C=V.useMemo(()=>({prefixCls:n,value:o,presets:r,onChange:a}),[n,o,r,a]),x=V.createElement("div",{className:`${E}-content`},V.createElement(GCe,null),Array.isArray(r)&&V.createElement(ABt,null),V.createElement(WCe,null));return V.createElement(Mze.Provider,{value:w},V.createElement(Pze.Provider,{value:C},V.createElement("div",{className:E},typeof i=="function"?i(x,{components:{Picker:GCe,Presets:WCe}}):x)))};var I7t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const N7t=m.forwardRef((e,n)=>{const{color:r,prefixCls:i,open:o,disabled:a,format:s,className:l,showText:c,activeIndex:u}=e,d=I7t(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),f=`${i}-trigger`,p=`${f}-text`,h=`${p}-cell`,[g]=Mu("ColorPicker"),v=V.useMemo(()=>{if(!c)return"";if(typeof c=="function")return c(r);if(r.cleared)return g.transparent;if(r.isGradient())return r.getColors().map((b,E)=>{const w=u!==-1&&u!==E;return V.createElement("span",{key:E,className:Ce(h,w&&`${h}-inactive`)},b.color.toRgbString()," ",b.percent,"%")});const _=r.toHexString().toUpperCase(),S=Mue(r);switch(s){case"rgb":return r.toRgbString();case"hsb":return r.toHsbString();default:return S<100?`${_.slice(0,7)},${S}%`:_}},[r,s,c,u]),y=m.useMemo(()=>r.cleared?V.createElement(Aze,{prefixCls:i}):V.createElement(Oue,{prefixCls:i,color:r.toCssString()}),[r,i]);return V.createElement("div",Object.assign({ref:n,className:Ce(f,l,{[`${f}-active`]:o,[`${f}-disabled`]:a})},Va(d)),y,c&&V.createElement("div",{className:p},v))});function M7t(e,n,r){const[i]=Mu("ColorPicker"),[o,a]=dr(e,{value:n}),[s,l]=m.useState("single"),[c,u]=m.useMemo(()=>{const v=(Array.isArray(r)?r:[r]).filter(b=>b);v.length||v.push("single");const y=new Set(v),_=[],S=(b,E)=>{y.has(b)&&_.push({label:E,value:b})};return S("single",i.singleColor),S("gradient",i.gradientColor),[_,y]},[r]),[d,f]=m.useState(null),p=Sr(v=>{f(v),a(v)}),h=m.useMemo(()=>{const v=Gc(o||"");return v.equals(d)?d:v},[o,d]),g=m.useMemo(()=>{var v;return u.has(s)?s:(v=c[0])===null||v===void 0?void 0:v.value},[u,s,c]);return m.useEffect(()=>{l(h.isGradient()?"gradient":"single")},[h]),[h,p,g,l,c]}const Wze=(e,n)=>({backgroundImage:`conic-gradient(${n} 0 25%, transparent 0 50%, ${n} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),YCe=(e,n)=>{const{componentCls:r,borderRadiusSM:i,colorPickerInsetShadow:o,lineWidth:a,colorFillSecondary:s}=e;return{[`${r}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:i,width:n,height:n,boxShadow:o,flex:"none"},Wze("50%",e.colorFillSecondary)),{[`${r}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${Ye(a)} ${s}`,borderRadius:"inherit"}})}},P7t=e=>{const{componentCls:n,antCls:r,fontSizeSM:i,lineHeightSM:o,colorPickerAlphaInputWidth:a,marginXXS:s,paddingXXS:l,controlHeightSM:c,marginXS:u,fontSizeIcon:d,paddingXS:f,colorTextPlaceholder:p,colorPickerInputNumberHandleWidth:h,lineWidth:g}=e;return{[`${n}-input-container`]:{display:"flex",[`${n}-steppers${r}-input-number`]:{fontSize:i,lineHeight:o,[`${r}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${r}-input-number-handler-wrap`]:{width:h}},[`${n}-steppers${n}-alpha-input`]:{flex:`0 0 ${Ye(a)}`,marginInlineStart:s},[`${n}-format-select${r}-select`]:{marginInlineEnd:u,width:"auto","&-single":{[`${r}-select-selector`]:{padding:0,border:0},[`${r}-select-arrow`]:{insetInlineEnd:0},[`${r}-select-selection-item`]:{paddingInlineEnd:e.calc(d).add(s).equal(),fontSize:i,lineHeight:Ye(c)},[`${r}-select-item-option-content`]:{fontSize:i,lineHeight:o},[`${r}-select-dropdown`]:{[`${r}-select-item`]:{minHeight:"auto"}}}},[`${n}-input`]:{gap:s,alignItems:"center",flex:1,width:0,[`${n}-hsb-input,${n}-rgb-input`]:{display:"flex",gap:s,alignItems:"center"},[`${n}-steppers`]:{flex:1},[`${n}-hex-input${r}-input-affix-wrapper`]:{flex:1,padding:`0 ${Ye(f)}`,[`${r}-input`]:{fontSize:i,textTransform:"uppercase",lineHeight:Ye(e.calc(c).sub(e.calc(g).mul(2)).equal())},[`${r}-input-prefix`]:{color:p}}}}}},A7t=e=>{const{componentCls:n,controlHeightLG:r,borderRadiusSM:i,colorPickerInsetShadow:o,marginSM:a,colorBgElevated:s,colorFillSecondary:l,lineWidthBold:c,colorPickerHandlerSize:u}=e;return{userSelect:"none",[`${n}-select`]:{[`${n}-palette`]:{minHeight:e.calc(r).mul(4).equal(),overflow:"hidden",borderRadius:i},[`${n}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:a},[`${n}-handler`]:{width:u,height:u,border:`${Ye(c)} solid ${s}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${l}`}}},D7t=e=>{const{componentCls:n,antCls:r,colorTextQuaternary:i,paddingXXS:o,colorPickerPresetColorSize:a,fontSizeSM:s,colorText:l,lineHeightSM:c,lineWidth:u,borderRadius:d,colorFill:f,colorWhite:p,marginXXS:h,paddingXS:g,fontHeightSM:v}=e;return{[`${n}-presets`]:{[`${r}-collapse-item > ${r}-collapse-header`]:{padding:0,[`${r}-collapse-expand-icon`]:{height:v,color:i,paddingInlineEnd:o}},[`${r}-collapse`]:{display:"flex",flexDirection:"column",gap:h},[`${r}-collapse-item > ${r}-collapse-content > ${r}-collapse-content-box`]:{padding:`${Ye(g)} 0`},"&-label":{fontSize:s,color:l,lineHeight:c},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(h).mul(1.5).equal(),[`${n}-presets-color`]:{position:"relative",cursor:"pointer",width:a,height:a,"&::before":{content:'""',pointerEvents:"none",width:e.calc(a).add(e.calc(u).mul(4)).equal(),height:e.calc(a).add(e.calc(u).mul(4)).equal(),position:"absolute",top:e.calc(u).mul(-2).equal(),insetInlineStart:e.calc(u).mul(-2).equal(),borderRadius:d,border:`${Ye(u)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(a).div(13).mul(5).equal(),height:e.calc(a).div(13).mul(8).equal(),border:`${Ye(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}`},[`&${n}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:p,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${n}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:s,color:i}}}},k7t=e=>{const{componentCls:n,colorPickerInsetShadow:r,colorBgElevated:i,colorFillSecondary:o,lineWidthBold:a,colorPickerHandlerSizeSM:s,colorPickerSliderHeight:l,marginSM:c,marginXS:u}=e,d=e.calc(s).sub(e.calc(a).mul(2).equal()).equal(),f=e.calc(s).add(e.calc(a).mul(2).equal()).equal(),p={"&:after":{transform:"scale(1)",boxShadow:`${r}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${n}-slider`]:[Wze(Ye(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:r},[`& ${n}-slider-handle`]:{width:d,height:d,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:f,height:f,borderRadius:"100%"},"&:after":{width:s,height:s,border:`${Ye(a)} solid ${i}`,boxShadow:`${r}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":p}}],[`${n}-slider-container`]:{display:"flex",gap:c,marginBottom:c,[`${n}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${n}-gradient-slider`]:{marginBottom:u,[`& ${n}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":p}}}},bie=(e,n,r)=>({borderInlineEndWidth:e.lineWidth,borderColor:n,boxShadow:`0 0 0 ${Ye(e.controlOutlineWidth)} ${r}`,outline:0}),L7t=e=>{const{componentCls:n}=e;return{"&-rtl":{[`${n}-presets-color`]:{"&::after":{direction:"ltr"}},[`${n}-clear`]:{"&::after":{direction:"ltr"}}}}},qCe=(e,n,r)=>{const{componentCls:i,borderRadiusSM:o,lineWidth:a,colorSplit:s,colorBorder:l,red6:c}=e;return{[`${i}-clear`]:Object.assign(Object.assign({width:n,height:n,borderRadius:o,border:`${Ye(a)} solid ${s}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},r),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(a).mul(-1).equal(),top:e.calc(a).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:c},"&:hover":{borderColor:l}})}},$7t=e=>{const{componentCls:n,colorError:r,colorWarning:i,colorErrorHover:o,colorWarningHover:a,colorErrorOutline:s,colorWarningOutline:l}=e;return{[`&${n}-status-error`]:{borderColor:r,"&:hover":{borderColor:o},[`&${n}-trigger-active`]:Object.assign({},bie(e,r,s))},[`&${n}-status-warning`]:{borderColor:i,"&:hover":{borderColor:a},[`&${n}-trigger-active`]:Object.assign({},bie(e,i,l))}}},F7t=e=>{const{componentCls:n,controlHeightLG:r,controlHeightSM:i,controlHeight:o,controlHeightXS:a,borderRadius:s,borderRadiusSM:l,borderRadiusXS:c,borderRadiusLG:u,fontSizeLG:d}=e;return{[`&${n}-lg`]:{minWidth:r,minHeight:r,borderRadius:u,[`${n}-color-block, ${n}-clear`]:{width:o,height:o,borderRadius:s},[`${n}-trigger-text`]:{fontSize:d}},[`&${n}-sm`]:{minWidth:i,minHeight:i,borderRadius:l,[`${n}-color-block, ${n}-clear`]:{width:a,height:a,borderRadius:c},[`${n}-trigger-text`]:{lineHeight:Ye(a)}}}},B7t=e=>{const{antCls:n,componentCls:r,colorPickerWidth:i,colorPrimary:o,motionDurationMid:a,colorBgElevated:s,colorTextDisabled:l,colorText:c,colorBgContainerDisabled:u,borderRadius:d,marginXS:f,marginSM:p,controlHeight:h,controlHeightSM:g,colorBgTextActive:v,colorPickerPresetColorSize:y,colorPickerPreviewSize:_,lineWidth:S,colorBorder:b,paddingXXS:E,fontSize:w,colorPrimaryHover:C,controlOutline:x}=e;return[{[r]:Object.assign({[`${r}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:i,[`& > ${n}-divider`]:{margin:`${Ye(p)} 0 ${Ye(f)}`}},[`${r}-panel`]:Object.assign({},A7t(e))},k7t(e)),YCe(e,_)),P7t(e)),D7t(e)),qCe(e,y,{marginInlineStart:"auto"})),{[`${r}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:f}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:h,minHeight:h,borderRadius:d,border:`${Ye(S)} solid ${b}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${a}`,background:s,padding:e.calc(E).sub(S).equal(),[`${r}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(E).sub(S)).equal(),fontSize:w,color:c,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:C},[`&${r}-trigger-active`]:Object.assign({},bie(e,o,x)),"&-disabled":{color:l,background:u,cursor:"not-allowed","&:hover":{borderColor:v},[`${r}-trigger-text`]:{color:l}}},qCe(e,g)),YCe(e,g)),$7t(e)),F7t(e))},L7t(e))},nw(e,{focusElCls:`${r}-trigger-active`})]},j7t=Yr("ColorPicker",e=>{const{colorTextQuaternary:n,marginSM:r}=e,i=8,o=wr(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${n}`,colorPickerSliderHeight:i,colorPickerPreviewSize:e.calc(i).mul(2).add(r).equal()});return[B7t(o)]});var U7t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Mde=e=>{const{mode:n,value:r,defaultValue:i,format:o,defaultFormat:a,allowClear:s=!1,presets:l,children:c,trigger:u="click",open:d,disabled:f,placement:p="bottomLeft",arrow:h=!0,panelRender:g,showText:v,style:y,className:_,size:S,rootClassName:b,prefixCls:E,styles:w,disabledAlpha:C=!1,onFormatChange:x,onChange:T,onClear:R,onOpenChange:O,onChangeComplete:M,getPopupContainer:P,autoAdjustOverflow:k=!0,destroyTooltipOnHide:$,disabledFormat:U}=e,z=U7t(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:D,direction:B,colorPicker:Y}=m.useContext(Cn),q=m.useContext(xs),K=f??q,[H,G]=dr(!1,{value:d,postState:st=>!K&&st,onChange:O}),[Q,le]=dr(o,{value:o,defaultValue:a,onChange:x}),Z=D("color-picker",E),[j,F,te,oe,de]=M7t(i,r,n),pe=m.useMemo(()=>Mue(j)<100,[j]),[me,ve]=V.useState(null),he=st=>{if(M){let Je=Gc(st);C&&pe&&(Je=u6(st)),M(Je)}},be=(st,Je)=>{let ot=Gc(st);C&&pe&&(ot=u6(ot)),F(ot),ve(null),T&&T(ot,ot.toCssString()),Je||he(ot)},[we,De]=V.useState(0),[Ae,Ee]=V.useState(!1),Re=st=>{if(oe(st),st==="single"&&j.isGradient())De(0),be(new lf(j.getColors()[0].color)),ve(j);else if(st==="gradient"&&!j.isGradient()){const Je=pe?u6(j):j;be(new lf(me||[{percent:0,color:Je},{percent:100,color:Je}]))}},{status:Te}=V.useContext(qs),{compactSize:Oe,compactItemClassnames:Ne}=_g(Z,B),je=Xs(st=>{var Je;return(Je=S??Oe)!==null&&Je!==void 0?Je:st}),ne=po(Z),[J,ae,Se]=j7t(Z,ne),xe={[`${Z}-rtl`]:B},ue=Ce(b,Se,ne,xe),Me=Ce(rg(Z,Te),{[`${Z}-sm`]:je==="small",[`${Z}-lg`]:je==="large"},Ne,Y==null?void 0:Y.className,ue,_,ae),$e=Ce(Z,ue),ge={open:H,trigger:u,placement:p,arrow:h,rootClassName:b,getPopupContainer:P,autoAdjustOverflow:k,destroyTooltipOnHide:$},Ve=Object.assign(Object.assign({},Y==null?void 0:Y.style),y);return J(V.createElement(Ip,Object.assign({style:w==null?void 0:w.popup,styles:{body:w==null?void 0:w.popupOverlayInner},onOpenChange:st=>{(!st||!K)&&G(st)},content:V.createElement(ng,{form:!0},V.createElement(R7t,{mode:te,onModeChange:Re,modeOptions:de,prefixCls:Z,value:j,allowClear:s,disabled:K,disabledAlpha:C,presets:l,panelRender:g,format:Q,onFormatChange:le,onChange:be,onChangeComplete:he,onClear:R,activeIndex:we,onActive:De,gradientDragging:Ae,onGradientDragging:Ee,disabledFormat:U})),classNames:{root:$e}},ge),c||V.createElement(N7t,Object.assign({activeIndex:H?we:-1,open:H,className:Me,style:Ve,prefixCls:Z,disabled:K,showText:v,format:Q},z,{color:j}))))},H7t=tS(Mde,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);Mde._InternalPanelDoNotUseOrYouWillBeFired=H7t;var z7t={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"},V7t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:z7t}))},EU=m.forwardRef(V7t),G7t={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"},W7t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:G7t}))},Pde=m.forwardRef(W7t),Y7t={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"},q7t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Y7t}))},K7t=m.forwardRef(q7t);function X7t(e,n,r){return r!==void 0?r:n==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:n==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:n==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:n==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:n==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Q7t(e,n,r){return r!==void 0?r:n==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:n==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:n==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:n==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:n==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function Yze(e,n){const{allowClear:r=!0}=e,{clearIcon:i,removeIcon:o}=nU(Object.assign(Object.assign({},e),{prefixCls:n,componentName:"DatePicker"}));return[m.useMemo(()=>r===!1?!1:Object.assign({clearIcon:i},r===!0?{}:r),[r,i]),o]}const[Z7t,J7t]=["week","WeekPicker"],[e9t,t9t]=["month","MonthPicker"],[n9t,r9t]=["year","YearPicker"],[i9t,o9t]=["quarter","QuarterPicker"],[qze,KCe]=["time","TimePicker"],a9t=e=>m.createElement(qn,Object.assign({size:"small",type:"primary"},e));function Kze(e){return m.useMemo(()=>Object.assign({button:a9t},e),[e])}var s9t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const l9t=e=>m.forwardRef((r,i)=>{var o;const{prefixCls:a,getPopupContainer:s,components:l,className:c,style:u,placement:d,size:f,disabled:p,bordered:h=!0,placeholder:g,popupClassName:v,dropdownClassName:y,status:_,rootClassName:S,variant:b,picker:E}=r,w=s9t(r,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),C=m.useRef(null),{getPrefixCls:x,direction:T,getPopupContainer:R,rangePicker:O}=m.useContext(Cn),M=x("picker",a),{compactSize:P,compactItemClassnames:k}=_g(M,T),$=x(),[U,z]=e_("rangePicker",b,h),D=po(M),[B,Y,q]=eze(M,D),[K]=Yze(r,M),H=Kze(l),G=Xs(ve=>{var he;return(he=f??P)!==null&&he!==void 0?he:ve}),Q=m.useContext(xs),le=p??Q,Z=m.useContext(qs),{hasFeedback:j,status:F,feedbackIcon:te}=Z,oe=m.createElement(m.Fragment,null,E===qze?m.createElement(Pde,null):m.createElement(EU,null),j&&te);m.useImperativeHandle(i,()=>C.current);const[de]=Mu("Calendar",d8),pe=Object.assign(Object.assign({},de),r.locale),[me]=Hp("DatePicker",(o=r.popupStyle)===null||o===void 0?void 0:o.zIndex);return B(m.createElement(ng,{space:!0},m.createElement(tFt,Object.assign({separator:m.createElement("span",{"aria-label":"to",className:`${M}-separator`},m.createElement(K7t,null)),disabled:le,ref:C,placement:d,placeholder:Q7t(pe,E,g),suffixIcon:oe,prevIcon:m.createElement("span",{className:`${M}-prev-icon`}),nextIcon:m.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:m.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:m.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${$}-slide-up`,picker:E},w,{className:Ce({[`${M}-${G}`]:G,[`${M}-${U}`]:z},rg(M,Jy(F,_),j),Y,k,c,O==null?void 0:O.className,q,D,S),style:Object.assign(Object.assign({},O==null?void 0:O.style),u),locale:pe.lang,prefixCls:M,getPopupContainer:s||R,generateConfig:e,components:H,direction:T,classNames:{popup:Ce(Y,v||y,q,D,S)},styles:{popup:Object.assign(Object.assign({},r.popupStyle),{zIndex:me})},allowClear:K}))))});var c9t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const u9t=e=>{const n=(c,u)=>{const d=u===KCe?"timePicker":"datePicker";return m.forwardRef((p,h)=>{var g;const{prefixCls:v,getPopupContainer:y,components:_,style:S,className:b,rootClassName:E,size:w,bordered:C,placement:x,placeholder:T,popupClassName:R,dropdownClassName:O,disabled:M,status:P,variant:k,onCalendarChange:$}=p,U=c9t(p,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:z,direction:D,getPopupContainer:B,[d]:Y}=m.useContext(Cn),q=z("picker",v),{compactSize:K,compactItemClassnames:H}=_g(q,D),G=m.useRef(null),[Q,le]=e_("datePicker",k,C),Z=po(q),[j,F,te]=eze(q,Z);m.useImperativeHandle(h,()=>G.current);const oe={showToday:!0},de=c||p.picker,pe=z(),{onSelect:me,multiple:ve}=U,he=me&&c==="time"&&!ve,be=(ue,Me,$e)=>{$==null||$(ue,Me,$e),he&&me(ue)},[we,De]=Yze(p,q),Ae=Kze(_),Ee=Xs(ue=>{var Me;return(Me=w??K)!==null&&Me!==void 0?Me:ue}),Re=m.useContext(xs),Te=M??Re,Oe=m.useContext(qs),{hasFeedback:Ne,status:je,feedbackIcon:ne}=Oe,J=m.createElement(m.Fragment,null,de==="time"?m.createElement(Pde,null):m.createElement(EU,null),Ne&&ne),[ae]=Mu("DatePicker",d8),Se=Object.assign(Object.assign({},ae),p.locale),[xe]=Hp("DatePicker",(g=p.popupStyle)===null||g===void 0?void 0:g.zIndex);return j(m.createElement(ng,{space:!0},m.createElement(sFt,Object.assign({ref:G,placeholder:X7t(Se,de,T),suffixIcon:J,placement:x,prevIcon:m.createElement("span",{className:`${q}-prev-icon`}),nextIcon:m.createElement("span",{className:`${q}-next-icon`}),superPrevIcon:m.createElement("span",{className:`${q}-super-prev-icon`}),superNextIcon:m.createElement("span",{className:`${q}-super-next-icon`}),transitionName:`${pe}-slide-up`,picker:c,onCalendarChange:be},oe,U,{locale:Se.lang,className:Ce({[`${q}-${Ee}`]:Ee,[`${q}-${Q}`]:le},rg(q,Jy(je,P),Ne),F,H,Y==null?void 0:Y.className,b,te,Z,E),style:Object.assign(Object.assign({},Y==null?void 0:Y.style),S),prefixCls:q,getPopupContainer:y||B,generateConfig:e,components:Ae,direction:D,disabled:Te,classNames:{popup:Ce(F,te,Z,E,R||O)},styles:{popup:Object.assign(Object.assign({},p.popupStyle),{zIndex:xe})},allowClear:we,removeIcon:De}))))})},r=n(),i=n(Z7t,J7t),o=n(e9t,t9t),a=n(n9t,r9t),s=n(i9t,o9t),l=n(qze,KCe);return{DatePicker:r,WeekPicker:i,MonthPicker:o,YearPicker:a,TimePicker:l,QuarterPicker:s}},Xze=e=>{const{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:o,TimePicker:a,QuarterPicker:s}=u9t(e),l=l9t(e),c=n;return c.WeekPicker=r,c.MonthPicker=i,c.YearPicker=o,c.RangePicker=l,c.TimePicker=a,c.QuarterPicker=s,c},md=Xze(c6t),d9t=tS(md,"popupAlign",void 0,"picker");md._InternalPanelDoNotUseOrYouWillBeFired=d9t;const f9t=tS(md.RangePicker,"popupAlign",void 0,"picker");md._InternalRangePanelDoNotUseOrYouWillBeFired=f9t;md.generatePicker=Xze;var XCe=m.createContext(null),Qze=m.createContext({}),p9t=["prefixCls","className","containerRef"],h9t=function(n){var r=n.prefixCls,i=n.className,o=n.containerRef,a=Xt(n,p9t),s=m.useContext(Qze),l=s.panel,c=yg(l,o);return m.createElement("div",ft({className:Ce("".concat(r,"-content"),i),role:"dialog",ref:c},Va(n,{aria:!0}),{"aria-modal":"true"},a))};function QCe(e){return typeof e=="string"&&String(Number(e))===e?(qi(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var ZCe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function g9t(e,n){var r,i,o,a=e.prefixCls,s=e.open,l=e.placement,c=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,p=e.keyboard,h=e.classNames,g=e.rootClassName,v=e.rootStyle,y=e.zIndex,_=e.className,S=e.id,b=e.style,E=e.motion,w=e.width,C=e.height,x=e.children,T=e.mask,R=e.maskClosable,O=e.maskMotion,M=e.maskClassName,P=e.maskStyle,k=e.afterOpenChange,$=e.onClose,U=e.onMouseEnter,z=e.onMouseOver,D=e.onMouseLeave,B=e.onClick,Y=e.onKeyDown,q=e.onKeyUp,K=e.styles,H=e.drawerRender,G=m.useRef(),Q=m.useRef(),le=m.useRef();m.useImperativeHandle(n,function(){return G.current});var Z=function(Te){var Oe=Te.keyCode,Ne=Te.shiftKey;switch(Oe){case At.TAB:{if(Oe===At.TAB){if(!Ne&&document.activeElement===le.current){var je;(je=Q.current)===null||je===void 0||je.focus({preventScroll:!0})}else if(Ne&&document.activeElement===Q.current){var ne;(ne=le.current)===null||ne===void 0||ne.focus({preventScroll:!0})}}break}case At.ESC:{$&&p&&(Te.stopPropagation(),$(Te));break}}};m.useEffect(function(){if(s&&f){var Re;(Re=G.current)===null||Re===void 0||Re.focus({preventScroll:!0})}},[s]);var j=m.useState(!1),F=ke(j,2),te=F[0],oe=F[1],de=m.useContext(XCe),pe;typeof u=="boolean"?pe=u?{}:{distance:0}:pe=u||{};var me=(r=(i=(o=pe)===null||o===void 0?void 0:o.distance)!==null&&i!==void 0?i:de==null?void 0:de.pushDistance)!==null&&r!==void 0?r:180,ve=m.useMemo(function(){return{pushDistance:me,push:function(){oe(!0)},pull:function(){oe(!1)}}},[me]);m.useEffect(function(){if(s){var Re;de==null||(Re=de.push)===null||Re===void 0||Re.call(de)}else{var Te;de==null||(Te=de.pull)===null||Te===void 0||Te.call(de)}},[s]),m.useEffect(function(){return function(){var Re;de==null||(Re=de.pull)===null||Re===void 0||Re.call(de)}},[]);var he=T&&m.createElement(Ws,ft({key:"mask"},O,{visible:s}),function(Re,Te){var Oe=Re.className,Ne=Re.style;return m.createElement("div",{className:Ce("".concat(a,"-mask"),Oe,h==null?void 0:h.mask,M),style:ee(ee(ee({},Ne),P),K==null?void 0:K.mask),onClick:R&&s?$:void 0,ref:Te})}),be=typeof E=="function"?E(l):E,we={};if(te&&me)switch(l){case"top":we.transform="translateY(".concat(me,"px)");break;case"bottom":we.transform="translateY(".concat(-me,"px)");break;case"left":we.transform="translateX(".concat(me,"px)");break;default:we.transform="translateX(".concat(-me,"px)");break}l==="left"||l==="right"?we.width=QCe(w):we.height=QCe(C);var De={onMouseEnter:U,onMouseOver:z,onMouseLeave:D,onClick:B,onKeyDown:Y,onKeyUp:q},Ae=m.createElement(Ws,ft({key:"panel"},be,{visible:s,forceRender:d,onVisibleChanged:function(Te){k==null||k(Te)},removeOnLeave:!1,leavedClassName:"".concat(a,"-content-wrapper-hidden")}),function(Re,Te){var Oe=Re.className,Ne=Re.style,je=m.createElement(h9t,ft({id:S,containerRef:Te,prefixCls:a,className:Ce(_,h==null?void 0:h.content),style:ee(ee({},b),K==null?void 0:K.content)},Va(e,{aria:!0}),De),x);return m.createElement("div",ft({className:Ce("".concat(a,"-content-wrapper"),h==null?void 0:h.wrapper,Oe),style:ee(ee(ee({},we),Ne),K==null?void 0:K.wrapper)},Va(e,{data:!0})),H?H(je):je)}),Ee=ee({},v);return y&&(Ee.zIndex=y),m.createElement(XCe.Provider,{value:ve},m.createElement("div",{className:Ce(a,"".concat(a,"-").concat(l),g,fe(fe({},"".concat(a,"-open"),s),"".concat(a,"-inline"),c)),style:Ee,tabIndex:-1,ref:G,onKeyDown:Z},he,m.createElement("div",{tabIndex:0,ref:Q,style:ZCe,"aria-hidden":"true","data-sentinel":"start"}),Ae,m.createElement("div",{tabIndex:0,ref:le,style:ZCe,"aria-hidden":"true","data-sentinel":"end"})))}var m9t=m.forwardRef(g9t),v9t=function(n){var r=n.open,i=r===void 0?!1:r,o=n.prefixCls,a=o===void 0?"rc-drawer":o,s=n.placement,l=s===void 0?"right":s,c=n.autoFocus,u=c===void 0?!0:c,d=n.keyboard,f=d===void 0?!0:d,p=n.width,h=p===void 0?378:p,g=n.mask,v=g===void 0?!0:g,y=n.maskClosable,_=y===void 0?!0:y,S=n.getContainer,b=n.forceRender,E=n.afterOpenChange,w=n.destroyOnClose,C=n.onMouseEnter,x=n.onMouseOver,T=n.onMouseLeave,R=n.onClick,O=n.onKeyDown,M=n.onKeyUp,P=n.panelRef,k=m.useState(!1),$=ke(k,2),U=$[0],z=$[1],D=m.useState(!1),B=ke(D,2),Y=B[0],q=B[1];ti(function(){q(!0)},[]);var K=Y?i:!1,H=m.useRef(),G=m.useRef();ti(function(){K&&(G.current=document.activeElement)},[K]);var Q=function(te){var oe;if(z(te),E==null||E(te),!te&&G.current&&!((oe=H.current)!==null&&oe!==void 0&&oe.contains(G.current))){var de;(de=G.current)===null||de===void 0||de.focus({preventScroll:!0})}},le=m.useMemo(function(){return{panel:P}},[P]);if(!b&&!U&&!K&&w)return null;var Z={onMouseEnter:C,onMouseOver:x,onMouseLeave:T,onClick:R,onKeyDown:O,onKeyUp:M},j=ee(ee({},n),{},{open:K,prefixCls:a,placement:l,autoFocus:u,keyboard:f,width:h,mask:v,maskClosable:_,inline:S===!1,afterOpenChange:Q,ref:H},Z);return m.createElement(Qze.Provider,{value:le},m.createElement(hk,{open:K||b||U,autoDestroy:!1,getContainer:S,autoLock:v&&(K||U)},m.createElement(m9t,j)))};const Zze=e=>{var n,r;const{prefixCls:i,title:o,footer:a,extra:s,loading:l,onClose:c,headerStyle:u,bodyStyle:d,footerStyle:f,children:p,classNames:h,styles:g}=e,{drawer:v}=m.useContext(Cn),y=m.useCallback(w=>m.createElement("button",{type:"button",onClick:c,"aria-label":"Close",className:`${i}-close`},w),[c]),[_,S]=M9e(B8(e),B8(v),{closable:!0,closeIconRender:y}),b=m.useMemo(()=>{var w,C;return!o&&!_?null:m.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(w=v==null?void 0:v.styles)===null||w===void 0?void 0:w.header),u),g==null?void 0:g.header),className:Ce(`${i}-header`,{[`${i}-header-close-only`]:_&&!o&&!s},(C=v==null?void 0:v.classNames)===null||C===void 0?void 0:C.header,h==null?void 0:h.header)},m.createElement("div",{className:`${i}-header-title`},S,o&&m.createElement("div",{className:`${i}-title`},o)),s&&m.createElement("div",{className:`${i}-extra`},s))},[_,S,s,u,i,o]),E=m.useMemo(()=>{var w,C;if(!a)return null;const x=`${i}-footer`;return m.createElement("div",{className:Ce(x,(w=v==null?void 0:v.classNames)===null||w===void 0?void 0:w.footer,h==null?void 0:h.footer),style:Object.assign(Object.assign(Object.assign({},(C=v==null?void 0:v.styles)===null||C===void 0?void 0:C.footer),f),g==null?void 0:g.footer)},a)},[a,f,i]);return m.createElement(m.Fragment,null,b,m.createElement("div",{className:Ce(`${i}-body`,h==null?void 0:h.body,(n=v==null?void 0:v.classNames)===null||n===void 0?void 0:n.body),style:Object.assign(Object.assign(Object.assign({},(r=v==null?void 0:v.styles)===null||r===void 0?void 0:r.body),d),g==null?void 0:g.body)},l?m.createElement(Zy,{active:!0,title:!1,paragraph:{rows:5},className:`${i}-body-skeleton`}):p),E)},y9t=e=>{const n="100%";return{left:`translateX(-${n})`,right:`translateX(${n})`,top:`translateY(-${n})`,bottom:`translateY(${n})`}[e]},Jze=(e,n)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":n}),"&-leave":Object.assign(Object.assign({},n),{"&-active":e})}),eVe=(e,n)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}},Jze({opacity:e},{opacity:1})),_9t=(e,n)=>[eVe(.7,n),Jze({transform:y9t(e)},{transform:"none"})],b9t=e=>{const{componentCls:n,motionDurationSlow:r}=e;return{[n]:{[`${n}-mask-motion`]:eVe(0,r),[`${n}-panel-motion`]:["left","right","top","bottom"].reduce((i,o)=>Object.assign(Object.assign({},i),{[`&-${o}`]:_9t(o,r)}),{})}}},S9t=e=>{const{borderRadiusSM:n,componentCls:r,zIndexPopup:i,colorBgMask:o,colorBgElevated:a,motionDurationSlow:s,motionDurationMid:l,paddingXS:c,padding:u,paddingLG:d,fontSizeLG:f,lineHeightLG:p,lineWidth:h,lineType:g,colorSplit:v,marginXS:y,colorIcon:_,colorIconHover:S,colorBgTextHover:b,colorBgTextActive:E,colorText:w,fontWeightStrong:C,footerPaddingBlock:x,footerPaddingInline:T,calc:R}=e,O=`${r}-content-wrapper`;return{[r]:{position:"fixed",inset:0,zIndex:i,pointerEvents:"none",color:w,"&-pure":{position:"relative",background:a,display:"flex",flexDirection:"column",[`&${r}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${r}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${r}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${r}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${r}-mask`]:{position:"absolute",inset:0,zIndex:i,background:o,pointerEvents:"auto"},[O]:{position:"absolute",zIndex:i,maxWidth:"100vw",transition:`all ${s}`,"&-hidden":{display:"none"}},[`&-left > ${O}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${O}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${O}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${O}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${r}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"},[`${r}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Ye(u)} ${Ye(d)}`,fontSize:f,lineHeight:p,borderBottom:`${Ye(h)} ${g} ${v}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${r}-extra`]:{flex:"none"},[`${r}-close`]:Object.assign({display:"inline-flex",width:R(f).add(c).equal(),height:R(f).add(c).equal(),borderRadius:n,justifyContent:"center",alignItems:"center",marginInlineEnd:y,color:_,fontWeight:C,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto","&:hover":{color:S,backgroundColor:b,textDecoration:"none"},"&:active":{backgroundColor:E}},Rp(e)),[`${r}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:p},[`${r}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[`${r}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${r}-footer`]:{flexShrink:0,padding:`${Ye(x)} ${Ye(T)}`,borderTop:`${Ye(h)} ${g} ${v}`},"&-rtl":{direction:"rtl"}}}},E9t=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),tVe=Yr("Drawer",e=>{const n=wr(e,{});return[S9t(n),b9t(n)]},E9t);var nVe=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const C9t={distance:180},Ade=e=>{const{rootClassName:n,width:r,height:i,size:o="default",mask:a=!0,push:s=C9t,open:l,afterOpenChange:c,onClose:u,prefixCls:d,getContainer:f,style:p,className:h,visible:g,afterVisibleChange:v,maskStyle:y,drawerStyle:_,contentWrapperStyle:S}=e,b=nVe(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:E,getPrefixCls:w,direction:C,drawer:x}=m.useContext(Cn),T=w("drawer",d),[R,O,M]=tVe(T),P=f===void 0&&E?()=>E(document.body):f,k=Ce({"no-mask":!a,[`${T}-rtl`]:C==="rtl"},n,O,M),$=m.useMemo(()=>r??(o==="large"?736:378),[r,o]),U=m.useMemo(()=>i??(o==="large"?736:378),[i,o]),z={motionName:Kl(T,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},D=le=>({motionName:Kl(T,`panel-motion-${le}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),B=P9e(),[Y,q]=Hp("Drawer",b.zIndex),{classNames:K={},styles:H={}}=b,{classNames:G={},styles:Q={}}=x||{};return R(m.createElement(ng,{form:!0,space:!0},m.createElement(ck.Provider,{value:q},m.createElement(v9t,Object.assign({prefixCls:T,onClose:u,maskMotion:z,motion:D},b,{classNames:{mask:Ce(K.mask,G.mask),content:Ce(K.content,G.content),wrapper:Ce(K.wrapper,G.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},H.mask),y),Q.mask),content:Object.assign(Object.assign(Object.assign({},H.content),_),Q.content),wrapper:Object.assign(Object.assign(Object.assign({},H.wrapper),S),Q.wrapper)},open:l??g,mask:a,push:s,width:$,height:U,style:Object.assign(Object.assign({},x==null?void 0:x.style),p),className:Ce(x==null?void 0:x.className,h),rootClassName:k,getContainer:P,afterOpenChange:c??v,panelRef:B,zIndex:Y}),m.createElement(Zze,Object.assign({prefixCls:T},b,{onClose:u}))))))},w9t=e=>{const{prefixCls:n,style:r,className:i,placement:o="right"}=e,a=nVe(e,["prefixCls","style","className","placement"]),{getPrefixCls:s}=m.useContext(Cn),l=s("drawer",n),[c,u,d]=tVe(l),f=Ce(l,`${l}-pure`,`${l}-${o}`,u,d,i);return c(m.createElement("div",{className:f,style:r},m.createElement(Zze,Object.assign({prefixCls:l},a))))};Ade._InternalPanelDoNotUseOrYouWillBeFired=w9t;function JCe(e){return["small","middle","large"].includes(e)}function ewe(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const rVe=V.createContext({latestIndex:0}),x9t=rVe.Provider,T9t=e=>{let{className:n,index:r,children:i,split:o,style:a}=e;const{latestIndex:s}=m.useContext(rVe);return i==null?null:m.createElement(m.Fragment,null,m.createElement("div",{className:n,style:a},i),r<s&&o&&m.createElement("span",{className:`${n}-split`},o))};var O9t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const R9t=m.forwardRef((e,n)=>{var r,i,o;const{getPrefixCls:a,space:s,direction:l}=m.useContext(Cn),{size:c=(r=s==null?void 0:s.size)!==null&&r!==void 0?r:"small",align:u,className:d,rootClassName:f,children:p,direction:h="horizontal",prefixCls:g,split:v,style:y,wrap:_=!1,classNames:S,styles:b}=e,E=O9t(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,C]=Array.isArray(c)?c:[c,c],x=JCe(C),T=JCe(w),R=ewe(C),O=ewe(w),M=Tl(p,{keepEmpty:!0}),P=u===void 0&&h==="horizontal"?"center":u,k=a("space",g),[$,U,z]=J7e(k),D=Ce(k,s==null?void 0:s.className,U,`${k}-${h}`,{[`${k}-rtl`]:l==="rtl",[`${k}-align-${P}`]:P,[`${k}-gap-row-${C}`]:x,[`${k}-gap-col-${w}`]:T},d,f,z),B=Ce(`${k}-item`,(i=S==null?void 0:S.item)!==null&&i!==void 0?i:(o=s==null?void 0:s.classNames)===null||o===void 0?void 0:o.item);let Y=0;const q=M.map((G,Q)=>{var le,Z;G!=null&&(Y=Q);const j=(G==null?void 0:G.key)||`${B}-${Q}`;return m.createElement(T9t,{className:B,key:j,index:Q,split:v,style:(le=b==null?void 0:b.item)!==null&&le!==void 0?le:(Z=s==null?void 0:s.styles)===null||Z===void 0?void 0:Z.item},G)}),K=m.useMemo(()=>({latestIndex:Y}),[Y]);if(M.length===0)return null;const H={};return _&&(H.flexWrap="wrap"),!T&&O&&(H.columnGap=w),!x&&R&&(H.rowGap=C),$(m.createElement("div",Object.assign({ref:n,className:D,style:Object.assign(Object.assign(Object.assign({},H),s==null?void 0:s.style),y)},E),m.createElement(x9t,{value:K},q)))}),Cf=R9t;Cf.Compact=RPt;var I9t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const iVe=e=>{const{getPopupContainer:n,getPrefixCls:r,direction:i}=m.useContext(Cn),{prefixCls:o,type:a="default",danger:s,disabled:l,loading:c,onClick:u,htmlType:d,children:f,className:p,menu:h,arrow:g,autoFocus:v,overlay:y,trigger:_,align:S,open:b,onOpenChange:E,placement:w,getPopupContainer:C,href:x,icon:T=m.createElement(lde,null),title:R,buttonsRender:O=F=>F,mouseEnterDelay:M,mouseLeaveDelay:P,overlayClassName:k,overlayStyle:$,destroyPopupOnHide:U,dropdownRender:z}=e,D=I9t(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"]),B=r("dropdown",o),Y=`${B}-button`,q={menu:h,arrow:g,autoFocus:v,align:S,disabled:l,trigger:l?[]:_,onOpenChange:E,getPopupContainer:C||n,mouseEnterDelay:M,mouseLeaveDelay:P,overlayClassName:k,overlayStyle:$,destroyPopupOnHide:U,dropdownRender:z},{compactSize:K,compactItemClassnames:H}=_g(B,i),G=Ce(Y,H,p);"overlay"in e&&(q.overlay=y),"open"in e&&(q.open=b),"placement"in e?q.placement=w:q.placement=i==="rtl"?"bottomLeft":"bottomRight";const Q=m.createElement(qn,{type:a,danger:s,disabled:l,loading:c,onClick:u,htmlType:d,href:x,title:R},f),le=m.createElement(qn,{type:a,danger:s,icon:T}),[Z,j]=O([Q,le]);return m.createElement(Cf.Compact,Object.assign({className:G,size:K,block:!0},D),Z,m.createElement(lU,Object.assign({},q),j))};iVe.__ANT_BUTTON=!0;const Dde=lU;Dde.Button=iVe;var N9t={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"},M9t=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:N9t}))},P9t=m.forwardRef(M9t);function K8(e){const[n,r]=m.useState(e);return m.useEffect(()=>{const i=setTimeout(()=>{r(e)},e.length?0:10);return()=>{clearTimeout(i)}},[e]),n}const A9t=e=>{const{componentCls:n}=e,r=`${n}-show-help`,i=`${n}-show-help-item`;return{[r]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[i]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${i}-appear, &${i}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${i}-leave-active`]:{transform:"translateY(-5px)"}}}}},D9t=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ye(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 ${Ye(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),twe=(e,n)=>{const{formItemCls:r}=e;return{[r]:{[`${r}-label > label`]:{height:n},[`${r}-control-input`]:{minHeight:n}}}},k9t=e=>{const{componentCls:n}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},li(e)),D9t(e)),{[`${n}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},twe(e,e.controlHeightSM)),"&-large":Object.assign({},twe(e,e.controlHeightLG))})}},L9t=e=>{const{formItemCls:n,iconCls:r,componentCls:i,rootPrefixCls:o,antCls:a,labelRequiredMarkColor:s,labelColor:l,labelFontSize:c,labelHeight:u,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:f,itemMarginBottom:p}=e;return{[n]:Object.assign(Object.assign({},li(e)),{marginBottom:p,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${n}-split`]:{color:e.colorError}},"&-has-error":{[`${n}-split`]:{color:e.colorWarning}},[`${n}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:u,color:l,fontSize:c,[`> ${r}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${n}-required:not(${n}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:s,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${i}-hide-required-mark &`]:{display:"none"}},[`${n}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${i}-hide-required-mark &`]:{display:"none"}},[`${n}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:d,marginInlineEnd:f},[`&${n}-no-colon::after`]:{content:'"\\a0"'}}},[`${n}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[n]:{"&-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 ${n}-explain`]:{height:"auto",opacity:1},[`${n}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Nue,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},nwe=(e,n)=>{const{formItemCls:r}=e;return{[`${n}-horizontal`]:{[`${r}-label`]:{flexGrow:0},[`${r}-control`]:{flex:"1 1 0",minWidth:0},[`${r}-label[class$='-24'], ${r}-label[class*='-24 ']`]:{[`& + ${r}-control`]:{minWidth:"unset"}}}}},$9t=e=>{const{componentCls:n,formItemCls:r,inlineItemMarginBottom:i}=e;return{[`${n}-inline`]:{display:"flex",flexWrap:"wrap",[r]:{flex:"none",marginInlineEnd:e.margin,marginBottom:i,"&-row":{flexWrap:"nowrap"},[`> ${r}-label,
> ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[`${n}-text`]:{display:"inline-block"},[`${r}-has-feedback`]:{display:"inline-block"}}}}},Nh=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),oVe=e=>{const{componentCls:n,formItemCls:r,rootPrefixCls:i}=e;return{[`${r} ${r}-label`]:Nh(e),[`${n}:not(${n}-inline)`]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{[`&:not([class*=" ${i}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},F9t=e=>{const{componentCls:n,formItemCls:r,antCls:i}=e;return{[`${n}-vertical`]:{[`${r}:not(${r}-horizontal)`]:{[`${r}-row`]:{flexDirection:"column"},[`${r}-label > label`]:{height:"auto"},[`${r}-control`]:{width:"100%"},[`${r}-label,
${i}-col-24${r}-label,
${i}-col-xl-24${r}-label`]:Nh(e)}},[`@media (max-width: ${Ye(e.screenXSMax)})`]:[oVe(e),{[n]:{[`${r}:not(${r}-horizontal)`]:{[`${i}-col-xs-24${r}-label`]:Nh(e)}}}],[`@media (max-width: ${Ye(e.screenSMMax)})`]:{[n]:{[`${r}:not(${r}-horizontal)`]:{[`${i}-col-sm-24${r}-label`]:Nh(e)}}},[`@media (max-width: ${Ye(e.screenMDMax)})`]:{[n]:{[`${r}:not(${r}-horizontal)`]:{[`${i}-col-md-24${r}-label`]:Nh(e)}}},[`@media (max-width: ${Ye(e.screenLGMax)})`]:{[n]:{[`${r}:not(${r}-horizontal)`]:{[`${i}-col-lg-24${r}-label`]:Nh(e)}}}}},B9t=e=>{const{formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"}},[`${n}-vertical ${n}-label,
${r}-col-24${n}-label,
${r}-col-xl-24${n}-label`]:Nh(e),[`@media (max-width: ${Ye(e.screenXSMax)})`]:[oVe(e),{[n]:{[`${r}-col-xs-24${n}-label`]:Nh(e)}}],[`@media (max-width: ${Ye(e.screenSMMax)})`]:{[n]:{[`${r}-col-sm-24${n}-label`]:Nh(e)}},[`@media (max-width: ${Ye(e.screenMDMax)})`]:{[n]:{[`${r}-col-md-24${n}-label`]:Nh(e)}},[`@media (max-width: ${Ye(e.screenLGMax)})`]:{[n]:{[`${r}-col-lg-24${n}-label`]:Nh(e)}}}},j9t=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}),aVe=(e,n)=>wr(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n}),kde=Yr("Form",(e,n)=>{let{rootPrefixCls:r}=n;const i=aVe(e,r);return[k9t(i),L9t(i),A9t(i),nwe(i,i.componentCls),nwe(i,i.formItemCls),$9t(i),F9t(i),B9t(i),fk(i),Nue]},j9t,{order:-1e3}),rwe=[];function vq(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${n}-${i}`,error:e,errorStatus:r}}const sVe=e=>{let{help:n,helpStatus:r,errors:i=rwe,warnings:o=rwe,className:a,fieldId:s,onVisibleChanged:l}=e;const{prefixCls:c}=m.useContext(Bue),u=`${c}-item-explain`,d=po(c),[f,p,h]=kde(c,d),g=m.useMemo(()=>hA(c),[c]),v=K8(i),y=K8(o),_=m.useMemo(()=>n!=null?[vq(n,"help",r)]:[].concat(Tt(v.map((E,w)=>vq(E,"error","error",w))),Tt(y.map((E,w)=>vq(E,"warning","warning",w)))),[n,r,v,y]),S=m.useMemo(()=>{const E={};return _.forEach(w=>{let{key:C}=w;E[C]=(E[C]||0)+1}),_.map((w,C)=>Object.assign(Object.assign({},w),{key:E[w.key]>1?`${w.key}-fallback-${C}`:w.key}))},[_]),b={};return s&&(b.id=`${s}_help`),f(m.createElement(Ws,{motionDeadline:g.motionDeadline,motionName:`${c}-show-help`,visible:!!S.length,onVisibleChanged:l},E=>{const{className:w,style:C}=E;return m.createElement("div",Object.assign({},b,{className:Ce(u,w,h,d,a,p),style:C,role:"alert"}),m.createElement(A9,Object.assign({keys:S},hA(c),{motionName:`${c}-show-help-item`,component:!1}),x=>{const{key:T,error:R,errorStatus:O,className:M,style:P}=x;return m.createElement("div",{key:T,className:Ce(M,{[`${u}-${O}`]:O}),style:P},R)}))}))},U9t=["parentNode"],H9t="form_item";function tP(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function lVe(e,n){if(!e.length)return;const r=e.join("_");return n?`${n}_${r}`:U9t.includes(r)?`${H9t}_${r}`:r}function cVe(e,n,r,i,o,a){let s=i;return a!==void 0?s=a:r.validating?s="validating":e.length?s="error":n.length?s="warning":(r.touched||o&&r.validated)&&(s="success"),s}function iwe(e){return tP(e).join("_")}function owe(e,n){const r=n.getFieldInstance(e),i=cje(r);if(i)return i;const o=lVe(tP(e),n.__INTERNAL__.name);if(o)return document.getElementById(o)}function uVe(e){const[n]=Fue(),r=m.useRef({}),i=m.useMemo(()=>e??Object.assign(Object.assign({},n),{__INTERNAL__:{itemRef:o=>a=>{const s=iwe(o);a?r.current[s]=a:delete r.current[s]}},scrollToField:function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=owe(o,i);s&&A2t(s,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},focusField:o=>{var a;const s=owe(o,i);s&&((a=s.focus)===null||a===void 0||a.call(s))},getFieldInstance:o=>{const a=iwe(o);return r.current[a]}}),[e,n]);return[i]}var z9t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const V9t=(e,n)=>{const r=m.useContext(xs),{getPrefixCls:i,direction:o,form:a}=m.useContext(Cn),{prefixCls:s,className:l,rootClassName:c,size:u,disabled:d=r,form:f,colon:p,labelAlign:h,labelWrap:g,labelCol:v,wrapperCol:y,hideRequiredMark:_,layout:S="horizontal",scrollToFirstError:b,requiredMark:E,onFinishFailed:w,name:C,style:x,feedbackIcons:T,variant:R}=e,O=z9t(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),M=Xs(u),P=m.useContext(Qje),k=m.useMemo(()=>E!==void 0?E:_?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[_,E,a]),$=p??(a==null?void 0:a.colon),U=i("form",s),z=po(U),[D,B,Y]=kde(U,z),q=Ce(U,`${U}-${S}`,{[`${U}-hide-required-mark`]:k===!1,[`${U}-rtl`]:o==="rtl",[`${U}-${M}`]:M},Y,z,B,a==null?void 0:a.className,l,c),[K]=uVe(f),{__INTERNAL__:H}=K;H.name=C;const G=m.useMemo(()=>({name:C,labelAlign:h,labelCol:v,labelWrap:g,wrapperCol:y,vertical:S==="vertical",colon:$,requiredMark:k,itemRef:H.itemRef,form:K,feedbackIcons:T}),[C,h,v,y,S,$,k,K,T]),Q=m.useRef(null);m.useImperativeHandle(n,()=>{var j;return Object.assign(Object.assign({},K),{nativeElement:(j=Q.current)===null||j===void 0?void 0:j.nativeElement})});const le=(j,F)=>{if(j){let te={block:"nearest"};typeof j=="object"&&(te=Object.assign(Object.assign({},te),j)),K.scrollToField(F,te),te.focus&&K.focusField(F)}},Z=j=>{if(w==null||w(j),j.errorFields.length){const F=j.errorFields[0].name;if(b!==void 0){le(b,F);return}a&&a.scrollToFirstError!==void 0&&le(a.scrollToFirstError,F)}};return D(m.createElement(N9e.Provider,{value:R},m.createElement(yue,{disabled:d},m.createElement(nC.Provider,{value:M},m.createElement(I9e,{validateMessages:P},m.createElement(My.Provider,{value:G},m.createElement(aI,Object.assign({id:C},O,{name:C,onFinishFailed:Z,form:K,ref:Q,style:Object.assign(Object.assign({},a==null?void 0:a.style),x),className:q}))))))))},G9t=m.forwardRef(V9t);function W9t(e){if(typeof e=="function")return e;const n=Tl(e);return n.length<=1?n[0]:n}const dVe=()=>{const{status:e,errors:n=[],warnings:r=[]}=m.useContext(qs);return{status:e,errors:n,warnings:r}};dVe.Context=qs;function Y9t(e){const[n,r]=m.useState(e),i=m.useRef(null),o=m.useRef([]),a=m.useRef(!1);m.useEffect(()=>(a.current=!1,()=>{a.current=!0,Dr.cancel(i.current),i.current=null}),[]);function s(l){a.current||(i.current===null&&(o.current=[],i.current=Dr(()=>{i.current=null,r(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(l))}return[n,s]}function q9t(){const{itemRef:e}=m.useContext(My),n=m.useRef({});function r(i,o){const a=o&&typeof o=="object"&&J0(o),s=i.join("_");return(n.current.name!==s||n.current.originRef!==a)&&(n.current.name=s,n.current.originRef=a,n.current.ref=Il(e(i),a)),n.current.ref}return r}const K9t=e=>{const{formItemCls:n}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${n}-control`]:{display:"flex"}}}},X9t=bue(["Form","item-item"],(e,n)=>{let{rootPrefixCls:r}=n;const i=aVe(e,r);return[K9t(i)]});var Q9t=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Z9t=24,J9t=e=>{const{prefixCls:n,status:r,labelCol:i,wrapperCol:o,children:a,errors:s,warnings:l,_internalItemRender:c,extra:u,help:d,fieldId:f,marginBottom:p,onErrorVisibleChanged:h,label:g}=e,v=`${n}-item`,y=m.useContext(My),_=m.useMemo(()=>{let $=Object.assign({},o||y.wrapperCol||{});return g===null&&!i&&!o&&y.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(z=>{const D=z?[z]:[],B=al(y.labelCol,D),Y=typeof B=="object"?B:{},q=al($,D),K=typeof q=="object"?q:{};"span"in Y&&!("offset"in K)&&Y.span<Z9t&&($=Fs($,[].concat(D,["offset"]),Y.span))}),$},[o,y]),S=Ce(`${v}-control`,_.className),b=m.useMemo(()=>Q9t(y,["labelCol","wrapperCol"]),[y]),E=m.useRef(null),[w,C]=m.useState(0);ti(()=>{u&&E.current?C(E.current.clientHeight):C(0)},[u]);const x=m.createElement("div",{className:`${v}-control-input`},m.createElement("div",{className:`${v}-control-input-content`},a)),T=m.useMemo(()=>({prefixCls:n,status:r}),[n,r]),R=p!==null||s.length||l.length?m.createElement(Bue.Provider,{value:T},m.createElement(sVe,{fieldId:f,errors:s,warnings:l,help:d,helpStatus:r,className:`${v}-explain-connected`,onVisibleChanged:h})):null,O={};f&&(O.id=`${f}_extra`);const M=u?m.createElement("div",Object.assign({},O,{className:`${v}-extra`,ref:E}),u):null,P=R||M?m.createElement("div",{className:`${v}-additional`,style:p?{minHeight:p+w}:{}},R,M):null,k=c&&c.mark==="pro_table_render"&&c.render?c.render(e,{input:x,errorList:R,extra:M}):m.createElement(m.Fragment,null,x,P);return m.createElement(My.Provider,{value:b},m.createElement(bA,Object.assign({},_,{className:S}),k),m.createElement(X9t,{prefixCls:n}))};var eUt={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"},tUt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:eUt}))},nUt=m.forwardRef(tUt),rUt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function iUt(e){return e?typeof e=="object"&&!m.isValidElement(e)?e:{title:e}:null}const oUt=e=>{let{prefixCls:n,label:r,htmlFor:i,labelCol:o,labelAlign:a,colon:s,required:l,requiredMark:c,tooltip:u,vertical:d}=e;var f;const[p]=Mu("Form"),{labelAlign:h,labelCol:g,labelWrap:v,colon:y}=m.useContext(My);if(!r)return null;const _=o||g||{},S=a||h,b=`${n}-item-label`,E=Ce(b,S==="left"&&`${b}-left`,_.className,{[`${b}-wrap`]:!!v});let w=r;const C=s===!0||y!==!1&&s!==!1;C&&!d&&typeof r=="string"&&r.trim()&&(w=r.replace(/[:|]\s*$/,""));const T=iUt(u);if(T){const{icon:P=m.createElement(nUt,null)}=T,k=rUt(T,["icon"]),$=m.createElement(Ef,Object.assign({},k),m.cloneElement(P,{className:`${n}-item-tooltip`,title:"",onClick:U=>{U.preventDefault()},tabIndex:null}));w=m.createElement(m.Fragment,null,w,$)}const R=c==="optional",O=typeof c=="function";O?w=c(w,{required:!!l}):R&&!l&&(w=m.createElement(m.Fragment,null,w,m.createElement("span",{className:`${n}-item-optional`,title:""},(p==null?void 0:p.optional)||((f=Op.Form)===null||f===void 0?void 0:f.optional))));const M=Ce({[`${n}-item-required`]:l,[`${n}-item-required-mark-optional`]:R||O,[`${n}-item-no-colon`]:!C});return m.createElement(bA,Object.assign({},_,{className:E}),m.createElement("label",{htmlFor:i,className:M,title:typeof r=="string"?r:""},w))},aUt={success:tw,warning:eS,error:tv,validating:Mm};function fVe(e){let{children:n,errors:r,warnings:i,hasFeedback:o,validateStatus:a,prefixCls:s,meta:l,noStyle:c}=e;const u=`${s}-item`,{feedbackIcons:d}=m.useContext(My),f=cVe(r,i,l,null,!!o,a),{isFormItemInput:p,status:h,hasFeedback:g,feedbackIcon:v}=m.useContext(qs),y=m.useMemo(()=>{var _;let S;if(o){const E=o!==!0&&o.icons||d,w=f&&((_=E==null?void 0:E({status:f,errors:r,warnings:i}))===null||_===void 0?void 0:_[f]),C=f&&aUt[f];S=w!==!1&&C?m.createElement("span",{className:Ce(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},w||m.createElement(C,null)):null}const b={status:f||"",errors:r,warnings:i,hasFeedback:!!o,feedbackIcon:S,isFormItemInput:!0};return c&&(b.status=(f??h)||"",b.isFormItemInput=p,b.hasFeedback=!!(o??g),b.feedbackIcon=o!==void 0?b.feedbackIcon:v),b},[f,o,c,p,h]);return m.createElement(qs.Provider,{value:y},n)}var sUt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function lUt(e){const{prefixCls:n,className:r,rootClassName:i,style:o,help:a,errors:s,warnings:l,validateStatus:c,meta:u,hasFeedback:d,hidden:f,children:p,fieldId:h,required:g,isRequired:v,onSubItemMetaChange:y,layout:_}=e,S=sUt(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),b=`${n}-item`,{requiredMark:E,vertical:w}=m.useContext(My),C=w||_==="vertical",x=m.useRef(null),T=K8(s),R=K8(l),O=a!=null,M=!!(O||s.length||l.length),P=!!x.current&&dk(x.current),[k,$]=m.useState(null);ti(()=>{if(M&&x.current){const Y=getComputedStyle(x.current);$(parseInt(Y.marginBottom,10))}},[M,P]);const U=Y=>{Y||$(null)},D=function(){let Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const q=Y?T:u.errors,K=Y?R:u.warnings;return cVe(q,K,u,"",!!d,c)}(),B=Ce(b,r,i,{[`${b}-with-help`]:O||T.length||R.length,[`${b}-has-feedback`]:D&&d,[`${b}-has-success`]:D==="success",[`${b}-has-warning`]:D==="warning",[`${b}-has-error`]:D==="error",[`${b}-is-validating`]:D==="validating",[`${b}-hidden`]:f,[`${b}-${_}`]:_});return m.createElement("div",{className:B,style:o,ref:x},m.createElement(xde,Object.assign({className:`${b}-row`},Wr(S,["_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(oUt,Object.assign({htmlFor:h},e,{requiredMark:E,required:g??v,prefixCls:n,vertical:C})),m.createElement(J9t,Object.assign({},e,u,{errors:T,warnings:R,prefixCls:n,status:D,help:a,marginBottom:k,onErrorVisibleChanged:U}),m.createElement(R9e.Provider,{value:y},m.createElement(fVe,{prefixCls:n,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:D},p)))),!!k&&m.createElement("div",{className:`${b}-margin-offset`,style:{marginBottom:-k}}))}const cUt="__SPLIT__";function uUt(e,n){const r=Object.keys(e),i=Object.keys(n);return r.length===i.length&&r.every(o=>{const a=e[o],s=n[o];return a===s||typeof a=="function"||typeof s=="function"})}const dUt=m.memo(e=>{let{children:n}=e;return n},(e,n)=>uUt(e.control,n.control)&&e.update===n.update&&e.childProps.length===n.childProps.length&&e.childProps.every((r,i)=>r===n.childProps[i]));function awe(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function fUt(e){const{name:n,noStyle:r,className:i,dependencies:o,prefixCls:a,shouldUpdate:s,rules:l,children:c,required:u,label:d,messageVariables:f,trigger:p="onChange",validateTrigger:h,hidden:g,help:v,layout:y}=e,{getPrefixCls:_}=m.useContext(Cn),{name:S}=m.useContext(My),b=W9t(c),E=typeof b=="function",w=m.useContext(R9e),{validateTrigger:C}=m.useContext(T0),x=h!==void 0?h:C,T=n!=null,R=_("form",a),O=po(R),[M,P,k]=kde(R,O);JC();const $=m.useContext(gA),U=m.useRef(null),[z,D]=Y9t({}),[B,Y]=iC(()=>awe()),q=j=>{const F=$==null?void 0:$.getKey(j.name);if(Y(j.destroy?awe():j,!0),r&&v!==!1&&w){let te=j.name;if(j.destroy)te=U.current||te;else if(F!==void 0){const[oe,de]=F;te=[oe].concat(Tt(de)),U.current=te}w(j,te)}},K=(j,F)=>{D(te=>{const oe=Object.assign({},te),pe=[].concat(Tt(j.name.slice(0,-1)),Tt(F)).join(cUt);return j.destroy?delete oe[pe]:oe[pe]=j,oe})},[H,G]=m.useMemo(()=>{const j=Tt(B.errors),F=Tt(B.warnings);return Object.values(z).forEach(te=>{j.push.apply(j,Tt(te.errors||[])),F.push.apply(F,Tt(te.warnings||[]))}),[j,F]},[z,B.errors,B.warnings]),Q=q9t();function le(j,F,te){return r&&!g?m.createElement(fVe,{prefixCls:R,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:B,errors:H,warnings:G,noStyle:!0},j):m.createElement(lUt,Object.assign({key:"row"},e,{className:Ce(i,k,O,P),prefixCls:R,fieldId:F,isRequired:te,errors:H,warnings:G,meta:B,onSubItemMetaChange:K,layout:y}),j)}if(!T&&!E&&!o)return M(le(b));let Z={};return typeof d=="string"?Z.label=d:n&&(Z.label=String(n)),f&&(Z=Object.assign(Object.assign({},Z),f)),M(m.createElement($ue,Object.assign({},e,{messageVariables:Z,trigger:p,validateTrigger:x,onMetaChange:q}),(j,F,te)=>{const oe=tP(n).length&&F?F.name:[],de=lVe(oe,S),pe=u!==void 0?u:!!(l!=null&&l.some(he=>{if(he&&typeof he=="object"&&he.required&&!he.warningOnly)return!0;if(typeof he=="function"){const be=he(te);return(be==null?void 0:be.required)&&!(be!=null&&be.warningOnly)}return!1})),me=Object.assign({},j);let ve=null;if(Array.isArray(b)&&T)ve=b;else if(!(E&&(!(s||o)||T))){if(!(o&&!E&&!T))if(m.isValidElement(b)){const he=Object.assign(Object.assign({},b.props),me);if(he.id||(he.id=de),v||H.length>0||G.length>0||e.extra){const De=[];(v||H.length>0)&&De.push(`${de}_help`),e.extra&&De.push(`${de}_extra`),he["aria-describedby"]=De.join(" ")}H.length>0&&(he["aria-invalid"]="true"),pe&&(he["aria-required"]="true"),Xy(b)&&(he.ref=Q(oe,b)),new Set([].concat(Tt(tP(p)),Tt(tP(x)))).forEach(De=>{he[De]=function(){for(var Ae,Ee,Re,Te,Oe,Ne=arguments.length,je=new Array(Ne),ne=0;ne<Ne;ne++)je[ne]=arguments[ne];(Re=me[De])===null||Re===void 0||(Ae=Re).call.apply(Ae,[me].concat(je)),(Oe=(Te=b.props)[De])===null||Oe===void 0||(Ee=Oe).call.apply(Ee,[Te].concat(je))}});const we=[he["aria-required"],he["aria-invalid"],he["aria-describedby"]];ve=m.createElement(dUt,{control:me,update:b,childProps:we},Ys(b,he))}else E&&(s||o)&&!T?ve=b(te):ve=b}return le(ve,de,pe)}))}const pVe=fUt;pVe.useStatus=dVe;var pUt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const hUt=e=>{var{prefixCls:n,children:r}=e,i=pUt(e,["prefixCls","children"]);const{getPrefixCls:o}=m.useContext(Cn),a=o("form",n),s=m.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return m.createElement(w9e,Object.assign({},i),(l,c,u)=>m.createElement(Bue.Provider,{value:s},r(l.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function gUt(){const{form:e}=m.useContext(My);return e}const Hr=G9t;Hr.Item=pVe;Hr.List=hUt;Hr.ErrorList=sVe;Hr.useForm=uVe;Hr.useFormInstance=gUt;Hr.useWatch=O9e;Hr.Provider=I9e;Hr.create=()=>{};function hVe(){var e=document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:n}}function mUt(e){var n=e.getBoundingClientRect(),r=document.documentElement;return{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}function _T(e,n,r,i){var o=Gl.unstable_batchedUpdates?function(s){Gl.unstable_batchedUpdates(r,s)}:r;return e!=null&&e.addEventListener&&e.addEventListener(n,o,i),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(n,o,i)}}}var xk=m.createContext(null),vUt=function(n){var r=n.visible,i=n.maskTransitionName,o=n.getContainer,a=n.prefixCls,s=n.rootClassName,l=n.icons,c=n.countRender,u=n.showSwitch,d=n.showProgress,f=n.current,p=n.transform,h=n.count,g=n.scale,v=n.minScale,y=n.maxScale,_=n.closeIcon,S=n.onActive,b=n.onClose,E=n.onZoomIn,w=n.onZoomOut,C=n.onRotateRight,x=n.onRotateLeft,T=n.onFlipX,R=n.onFlipY,O=n.onReset,M=n.toolbarRender,P=n.zIndex,k=n.image,$=m.useContext(xk),U=l.rotateLeft,z=l.rotateRight,D=l.zoomIn,B=l.zoomOut,Y=l.close,q=l.left,K=l.right,H=l.flipX,G=l.flipY,Q="".concat(a,"-operations-operation");m.useEffect(function(){var be=function(De){De.keyCode===At.ESC&&b()};return r&&window.addEventListener("keydown",be),function(){window.removeEventListener("keydown",be)}},[r]);var le=function(we,De){we.preventDefault(),we.stopPropagation(),S(De)},Z=m.useCallback(function(be){var we=be.type,De=be.disabled,Ae=be.onClick,Ee=be.icon;return m.createElement("div",{key:we,className:Ce(Q,"".concat(a,"-operations-operation-").concat(we),fe({},"".concat(a,"-operations-operation-disabled"),!!De)),onClick:Ae},Ee)},[Q,a]),j=u?Z({icon:q,onClick:function(we){return le(we,-1)},type:"prev",disabled:f===0}):void 0,F=u?Z({icon:K,onClick:function(we){return le(we,1)},type:"next",disabled:f===h-1}):void 0,te=Z({icon:G,onClick:R,type:"flipY"}),oe=Z({icon:H,onClick:T,type:"flipX"}),de=Z({icon:U,onClick:x,type:"rotateLeft"}),pe=Z({icon:z,onClick:C,type:"rotateRight"}),me=Z({icon:B,onClick:w,type:"zoomOut",disabled:g<=v}),ve=Z({icon:D,onClick:E,type:"zoomIn",disabled:g===y}),he=m.createElement("div",{className:"".concat(a,"-operations")},te,oe,de,pe,me,ve);return m.createElement(Ws,{visible:r,motionName:i},function(be){var we=be.className,De=be.style;return m.createElement(hk,{open:!0,getContainer:o??document.body},m.createElement("div",{className:Ce("".concat(a,"-operations-wrapper"),we,s),style:ee(ee({},De),{},{zIndex:P})},_===null?null:m.createElement("button",{className:"".concat(a,"-close"),onClick:b},_||Y),u&&m.createElement(m.Fragment,null,m.createElement("div",{className:Ce("".concat(a,"-switch-left"),fe({},"".concat(a,"-switch-left-disabled"),f===0)),onClick:function(Ee){return le(Ee,-1)}},q),m.createElement("div",{className:Ce("".concat(a,"-switch-right"),fe({},"".concat(a,"-switch-right-disabled"),f===h-1)),onClick:function(Ee){return le(Ee,1)}},K)),m.createElement("div",{className:"".concat(a,"-footer")},d&&m.createElement("div",{className:"".concat(a,"-progress")},c?c(f+1,h):"".concat(f+1," / ").concat(h)),M?M(he,ee(ee({icons:{prevIcon:j,nextIcon:F,flipYIcon:te,flipXIcon:oe,rotateLeftIcon:de,rotateRightIcon:pe,zoomOutIcon:me,zoomInIcon:ve},actions:{onActive:S,onFlipY:R,onFlipX:T,onRotateLeft:x,onRotateRight:C,onZoomOut:w,onZoomIn:E,onReset:O,onClose:b},transform:p},$?{current:f,total:h}:{}),{},{image:k})):he)))})},t4={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function yUt(e,n,r,i){var o=m.useRef(null),a=m.useRef([]),s=m.useState(t4),l=ke(s,2),c=l[0],u=l[1],d=function(g){u(t4),rC(t4,c)||i==null||i({transform:t4,action:g})},f=function(g,v){o.current===null&&(a.current=[],o.current=Dr(function(){u(function(y){var _=y;return a.current.forEach(function(S){_=ee(ee({},_),S)}),o.current=null,i==null||i({transform:_,action:v}),_})})),a.current.push(ee(ee({},c),g))},p=function(g,v,y,_,S){var b=e.current,E=b.width,w=b.height,C=b.offsetWidth,x=b.offsetHeight,T=b.offsetLeft,R=b.offsetTop,O=g,M=c.scale*g;M>r?(M=r,O=r/c.scale):M<n&&(M=S?M:n,O=M/c.scale);var P=y??innerWidth/2,k=_??innerHeight/2,$=O-1,U=$*E*.5,z=$*w*.5,D=$*(P-c.x-T),B=$*(k-c.y-R),Y=c.x-(D-U),q=c.y-(B-z);if(g<1&&M===1){var K=C*M,H=x*M,G=hVe(),Q=G.width,le=G.height;K<=Q&&H<=le&&(Y=0,q=0)}f({x:Y,y:q,scale:M},v)};return{transform:c,resetTransform:d,updateTransform:f,dispatchZoomChange:p}}function swe(e,n,r,i){var o=n+r,a=(r-i)/2;if(r>i){if(n>0)return fe({},e,a);if(n<0&&o<i)return fe({},e,-a)}else if(n<0||o>i)return fe({},e,n<0?a:-a);return{}}function gVe(e,n,r,i){var o=hVe(),a=o.width,s=o.height,l=null;return e<=a&&n<=s?l={x:0,y:0}:(e>a||n>s)&&(l=ee(ee({},swe("x",r,e,a)),swe("y",i,n,s))),l}var bT=1,_Ut=1;function bUt(e,n,r,i,o,a,s){var l=o.rotate,c=o.scale,u=o.x,d=o.y,f=m.useState(!1),p=ke(f,2),h=p[0],g=p[1],v=m.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),y=function(w){!n||w.button!==0||(w.preventDefault(),w.stopPropagation(),v.current={diffX:w.pageX-u,diffY:w.pageY-d,transformX:u,transformY:d},g(!0))},_=function(w){r&&h&&a({x:w.pageX-v.current.diffX,y:w.pageY-v.current.diffY},"move")},S=function(){if(r&&h){g(!1);var w=v.current,C=w.transformX,x=w.transformY,T=u!==C&&d!==x;if(!T)return;var R=e.current.offsetWidth*c,O=e.current.offsetHeight*c,M=e.current.getBoundingClientRect(),P=M.left,k=M.top,$=l%180!==0,U=gVe($?O:R,$?R:O,P,k);U&&a(ee({},U),"dragRebound")}},b=function(w){if(!(!r||w.deltaY==0)){var C=Math.abs(w.deltaY/100),x=Math.min(C,_Ut),T=bT+x*i;w.deltaY>0&&(T=bT/T),s(T,"wheel",w.clientX,w.clientY)}};return m.useEffect(function(){var E,w,C,x;if(n){C=_T(window,"mouseup",S,!1),x=_T(window,"mousemove",_,!1);try{window.top!==window.self&&(E=_T(window.top,"mouseup",S,!1),w=_T(window.top,"mousemove",_,!1))}catch{}}return function(){var T,R,O,M;(T=C)===null||T===void 0||T.remove(),(R=x)===null||R===void 0||R.remove(),(O=E)===null||O===void 0||O.remove(),(M=w)===null||M===void 0||M.remove()}},[r,h,u,d,l,n]),{isMoving:h,onMouseDown:y,onMouseMove:_,onMouseUp:S,onWheel:b}}function SUt(e){return new Promise(function(n){var r=document.createElement("img");r.onerror=function(){return n(!1)},r.onload=function(){return n(!0)},r.src=e})}function mVe(e){var n=e.src,r=e.isCustomPlaceholder,i=e.fallback,o=m.useState(r?"loading":"normal"),a=ke(o,2),s=a[0],l=a[1],c=m.useRef(!1),u=s==="error";m.useEffect(function(){var h=!0;return SUt(n).then(function(g){!g&&h&&l("error")}),function(){h=!1}},[n]),m.useEffect(function(){r&&!c.current?l("loading"):u&&l("normal")},[n]);var d=function(){l("normal")},f=function(g){c.current=!1,s==="loading"&&g!==null&&g!==void 0&&g.complete&&(g.naturalWidth||g.naturalHeight)&&(c.current=!0,d())},p=u&&i?{src:i}:{onLoad:d,src:n};return[f,p,s]}function X8(e,n){var r=e.x-n.x,i=e.y-n.y;return Math.hypot(r,i)}function EUt(e,n,r,i){var o=X8(e,r),a=X8(n,i);if(o===0&&a===0)return[e.x,e.y];var s=o/(o+a),l=e.x+s*(n.x-e.x),c=e.y+s*(n.y-e.y);return[l,c]}function CUt(e,n,r,i,o,a,s){var l=o.rotate,c=o.scale,u=o.x,d=o.y,f=m.useState(!1),p=ke(f,2),h=p[0],g=p[1],v=m.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),y=function(w){v.current=ee(ee({},v.current),w)},_=function(w){if(n){w.stopPropagation(),g(!0);var C=w.touches,x=C===void 0?[]:C;x.length>1?y({point1:{x:x[0].clientX,y:x[0].clientY},point2:{x:x[1].clientX,y:x[1].clientY},eventType:"touchZoom"}):y({point1:{x:x[0].clientX-u,y:x[0].clientY-d},eventType:"move"})}},S=function(w){var C=w.touches,x=C===void 0?[]:C,T=v.current,R=T.point1,O=T.point2,M=T.eventType;if(x.length>1&&M==="touchZoom"){var P={x:x[0].clientX,y:x[0].clientY},k={x:x[1].clientX,y:x[1].clientY},$=EUt(R,O,P,k),U=ke($,2),z=U[0],D=U[1],B=X8(P,k)/X8(R,O);s(B,"touchZoom",z,D,!0),y({point1:P,point2:k,eventType:"touchZoom"})}else M==="move"&&(a({x:x[0].clientX-R.x,y:x[0].clientY-R.y},"move"),y({eventType:"move"}))},b=function(){if(r){if(h&&g(!1),y({eventType:"none"}),i>c)return a({x:0,y:0,scale:i},"touchZoom");var w=e.current.offsetWidth*c,C=e.current.offsetHeight*c,x=e.current.getBoundingClientRect(),T=x.left,R=x.top,O=l%180!==0,M=gVe(O?C:w,O?w:C,T,R);M&&a(ee({},M),"dragRebound")}};return m.useEffect(function(){var E;return r&&n&&(E=_T(window,"touchmove",function(w){return w.preventDefault()},{passive:!1})),function(){var w;(w=E)===null||w===void 0||w.remove()}},[r,n]),{isTouching:h,onTouchStart:_,onTouchMove:S,onTouchEnd:b}}var wUt=["fallback","src","imgRef"],xUt=["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"],TUt=function(n){var r=n.fallback,i=n.src,o=n.imgRef,a=Xt(n,wUt),s=mVe({src:i,fallback:r}),l=ke(s,2),c=l[0],u=l[1];return V.createElement("img",ft({ref:function(f){o.current=f,c(f)}},a,u))},vVe=function(n){var r=n.prefixCls,i=n.src,o=n.alt,a=n.imageInfo,s=n.fallback,l=n.movable,c=l===void 0?!0:l,u=n.onClose,d=n.visible,f=n.icons,p=f===void 0?{}:f,h=n.rootClassName,g=n.closeIcon,v=n.getContainer,y=n.current,_=y===void 0?0:y,S=n.count,b=S===void 0?1:S,E=n.countRender,w=n.scaleStep,C=w===void 0?.5:w,x=n.minScale,T=x===void 0?1:x,R=n.maxScale,O=R===void 0?50:R,M=n.transitionName,P=M===void 0?"zoom":M,k=n.maskTransitionName,$=k===void 0?"fade":k,U=n.imageRender,z=n.imgCommonProps,D=n.toolbarRender,B=n.onTransform,Y=n.onChange,q=Xt(n,xUt),K=m.useRef(),H=m.useContext(xk),G=H&&b>1,Q=H&&b>=1,le=m.useState(!0),Z=ke(le,2),j=Z[0],F=Z[1],te=yUt(K,T,O,B),oe=te.transform,de=te.resetTransform,pe=te.updateTransform,me=te.dispatchZoomChange,ve=bUt(K,c,d,C,oe,pe,me),he=ve.isMoving,be=ve.onMouseDown,we=ve.onWheel,De=CUt(K,c,d,T,oe,pe,me),Ae=De.isTouching,Ee=De.onTouchStart,Re=De.onTouchMove,Te=De.onTouchEnd,Oe=oe.rotate,Ne=oe.scale,je=Ce(fe({},"".concat(r,"-moving"),he));m.useEffect(function(){j||F(!0)},[j]);var ne=function(){de("close")},J=function(){me(bT+C,"zoomIn")},ae=function(){me(bT/(bT+C),"zoomOut")},Se=function(){pe({rotate:Oe+90},"rotateRight")},xe=function(){pe({rotate:Oe-90},"rotateLeft")},ue=function(){pe({flipX:!oe.flipX},"flipX")},Me=function(){pe({flipY:!oe.flipY},"flipY")},$e=function(){de("reset")},ge=function(Ze){var bt=_+Ze;!Number.isInteger(bt)||bt<0||bt>b-1||(F(!1),de(Ze<0?"prev":"next"),Y==null||Y(bt,_))},Ve=function(Ze){!d||!G||(Ze.keyCode===At.LEFT?ge(-1):Ze.keyCode===At.RIGHT&&ge(1))},st=function(Ze){d&&(Ne!==1?pe({x:0,y:0,scale:1},"doubleClick"):me(bT+C,"doubleClick",Ze.clientX,Ze.clientY))};m.useEffect(function(){var Xe=_T(window,"keydown",Ve,!1);return function(){Xe.remove()}},[d,G,_]);var Je=V.createElement(TUt,ft({},z,{width:n.width,height:n.height,imgRef:K,className:"".concat(r,"-img"),alt:o,style:{transform:"translate3d(".concat(oe.x,"px, ").concat(oe.y,"px, 0) scale3d(").concat(oe.flipX?"-":"").concat(Ne,", ").concat(oe.flipY?"-":"").concat(Ne,", 1) rotate(").concat(Oe,"deg)"),transitionDuration:(!j||Ae)&&"0s"},fallback:s,src:i,onWheel:we,onMouseDown:be,onDoubleClick:st,onTouchStart:Ee,onTouchMove:Re,onTouchEnd:Te,onTouchCancel:Te})),ot=ee({url:i,alt:o},a);return V.createElement(V.Fragment,null,V.createElement(kue,ft({transitionName:P,maskTransitionName:$,closable:!1,keyboard:!0,prefixCls:r,onClose:u,visible:d,classNames:{wrapper:je},rootClassName:h,getContainer:v},q,{afterClose:ne}),V.createElement("div",{className:"".concat(r,"-img-wrapper")},U?U(Je,ee({transform:oe,image:ot},H?{current:_}:{})):Je)),V.createElement(vUt,{visible:d,transform:oe,maskTransitionName:$,closeIcon:g,getContainer:v,prefixCls:r,rootClassName:h,icons:p,countRender:E,showSwitch:G,showProgress:Q,current:_,count:b,scale:Ne,minScale:T,maxScale:O,toolbarRender:D,onActive:ge,onZoomIn:J,onZoomOut:ae,onRotateRight:Se,onRotateLeft:xe,onFlipX:ue,onFlipY:Me,onClose:u,onReset:$e,zIndex:q.zIndex!==void 0?q.zIndex+1:void 0,image:ot}))},Sie=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function OUt(e){var n=m.useState({}),r=ke(n,2),i=r[0],o=r[1],a=m.useCallback(function(l,c){return o(function(u){return ee(ee({},u),{},fe({},l,c))}),function(){o(function(u){var d=ee({},u);return delete d[l],d})}},[]),s=m.useMemo(function(){return e?e.map(function(l){if(typeof l=="string")return{data:{src:l}};var c={};return Object.keys(l).forEach(function(u){["src"].concat(Tt(Sie)).includes(u)&&(c[u]=l[u])}),{data:c}}):Object.keys(i).reduce(function(l,c){var u=i[c],d=u.canPreview,f=u.data;return d&&l.push({data:f,id:c}),l},[])},[e,i]);return[s,a,!!e]}var RUt=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],IUt=["src"],NUt=function(n){var r,i=n.previewPrefixCls,o=i===void 0?"rc-image-preview":i,a=n.children,s=n.icons,l=s===void 0?{}:s,c=n.items,u=n.preview,d=n.fallback,f=cn(u)==="object"?u:{},p=f.visible,h=f.onVisibleChange,g=f.getContainer,v=f.current,y=f.movable,_=f.minScale,S=f.maxScale,b=f.countRender,E=f.closeIcon,w=f.onChange,C=f.onTransform,x=f.toolbarRender,T=f.imageRender,R=Xt(f,RUt),O=OUt(c),M=ke(O,3),P=M[0],k=M[1],$=M[2],U=dr(0,{value:v}),z=ke(U,2),D=z[0],B=z[1],Y=m.useState(!1),q=ke(Y,2),K=q[0],H=q[1],G=((r=P[D])===null||r===void 0?void 0:r.data)||{},Q=G.src,le=Xt(G,IUt),Z=dr(!!p,{value:p,onChange:function(Ae,Ee){h==null||h(Ae,Ee,D)}}),j=ke(Z,2),F=j[0],te=j[1],oe=m.useState(null),de=ke(oe,2),pe=de[0],me=de[1],ve=m.useCallback(function(De,Ae,Ee,Re){var Te=$?P.findIndex(function(Oe){return Oe.data.src===Ae}):P.findIndex(function(Oe){return Oe.id===De});B(Te<0?0:Te),te(!0),me({x:Ee,y:Re}),H(!0)},[P,$]);m.useEffect(function(){F?K||B(0):H(!1)},[F]);var he=function(Ae,Ee){B(Ae),w==null||w(Ae,Ee)},be=function(){te(!1),me(null)},we=m.useMemo(function(){return{register:k,onPreview:ve}},[k,ve]);return m.createElement(xk.Provider,{value:we},a,m.createElement(vVe,ft({"aria-hidden":!F,movable:y,visible:F,prefixCls:o,closeIcon:E,onClose:be,mousePosition:pe,imgCommonProps:le,src:Q,fallback:d,icons:l,minScale:_,maxScale:S,getContainer:g,current:D,count:P.length,countRender:b,onTransform:C,toolbarRender:x,imageRender:T,onChange:he},R)))},lwe=0;function MUt(e,n){var r=m.useState(function(){return lwe+=1,String(lwe)}),i=ke(r,1),o=i[0],a=m.useContext(xk),s={data:n,canPreview:e};return m.useEffect(function(){if(a)return a.register(o,s)},[]),m.useEffect(function(){a&&a.register(o,s)},[e,n]),o}var PUt=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],AUt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Lde=function(n){var r=n.src,i=n.alt,o=n.onPreviewClose,a=n.prefixCls,s=a===void 0?"rc-image":a,l=n.previewPrefixCls,c=l===void 0?"".concat(s,"-preview"):l,u=n.placeholder,d=n.fallback,f=n.width,p=n.height,h=n.style,g=n.preview,v=g===void 0?!0:g,y=n.className,_=n.onClick,S=n.onError,b=n.wrapperClassName,E=n.wrapperStyle,w=n.rootClassName,C=Xt(n,PUt),x=u&&u!==!0,T=cn(v)==="object"?v:{},R=T.src,O=T.visible,M=O===void 0?void 0:O,P=T.onVisibleChange,k=P===void 0?o:P,$=T.getContainer,U=$===void 0?void 0:$,z=T.mask,D=T.maskClassName,B=T.movable,Y=T.icons,q=T.scaleStep,K=T.minScale,H=T.maxScale,G=T.imageRender,Q=T.toolbarRender,le=Xt(T,AUt),Z=R??r,j=dr(!!M,{value:M,onChange:k}),F=ke(j,2),te=F[0],oe=F[1],de=mVe({src:r,isCustomPlaceholder:x,fallback:d}),pe=ke(de,3),me=pe[0],ve=pe[1],he=pe[2],be=m.useState(null),we=ke(be,2),De=we[0],Ae=we[1],Ee=m.useContext(xk),Re=!!v,Te=function(){oe(!1),Ae(null)},Oe=Ce(s,b,w,fe({},"".concat(s,"-error"),he==="error")),Ne=m.useMemo(function(){var ae={};return Sie.forEach(function(Se){n[Se]!==void 0&&(ae[Se]=n[Se])}),ae},Sie.map(function(ae){return n[ae]})),je=m.useMemo(function(){return ee(ee({},Ne),{},{src:Z})},[Z,Ne]),ne=MUt(Re,je),J=function(Se){var xe=mUt(Se.target),ue=xe.left,Me=xe.top;Ee?Ee.onPreview(ne,Z,ue,Me):(Ae({x:ue,y:Me}),oe(!0)),_==null||_(Se)};return m.createElement(m.Fragment,null,m.createElement("div",ft({},C,{className:Oe,onClick:Re?J:_,style:ee({width:f,height:p},E)}),m.createElement("img",ft({},Ne,{className:Ce("".concat(s,"-img"),fe({},"".concat(s,"-img-placeholder"),u===!0),y),style:ee({height:p},h),ref:me},ve,{width:f,height:p,onError:S})),he==="loading"&&m.createElement("div",{"aria-hidden":"true",className:"".concat(s,"-placeholder")},u),z&&Re&&m.createElement("div",{className:Ce("".concat(s,"-mask"),D),style:{display:(h==null?void 0:h.display)==="none"?"none":void 0}},z)),!Ee&&Re&&m.createElement(vVe,ft({"aria-hidden":!te,visible:te,prefixCls:c,onClose:Te,mousePosition:De,src:Z,alt:i,imageInfo:{width:f,height:p},fallback:d,getContainer:U,icons:Y,movable:B,scaleStep:q,minScale:K,maxScale:H,rootClassName:w,imageRender:G,imgCommonProps:Ne,toolbarRender:Q},le)))};Lde.PreviewGroup=NUt;var DUt={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"},kUt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:DUt}))},LUt=m.forwardRef(kUt),$Ut={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"},FUt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:$Ut}))},BUt=m.forwardRef(FUt),jUt={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"},UUt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:jUt}))},cwe=m.forwardRef(UUt),HUt={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"},zUt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:HUt}))},VUt=m.forwardRef(zUt),GUt={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"},WUt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:GUt}))},YUt=m.forwardRef(WUt);const Eie=e=>({position:e||"absolute",inset:0}),qUt=e=>{const{iconCls:n,motionDurationSlow:r,paddingXXS:i,marginXXS:o,prefixCls:a,colorTextLightSolid:s}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:s,background:new Gr("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${r}`,[`.${a}-mask-info`]:Object.assign(Object.assign({},Sf),{padding:`0 ${Ye(i)}`,[n]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},KUt=e=>{const{previewCls:n,modalMaskBg:r,paddingSM:i,marginXL:o,margin:a,paddingLG:s,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:u,iconCls:d,colorTextLightSolid:f}=e,p=new Gr(r).setA(.1),h=p.clone().setA(.2);return{[`${n}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${n}-progress`]:{marginBottom:a},[`${n}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:f,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:i,outline:0,border:0,cursor:"pointer",transition:`all ${u}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${n}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Ye(s)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:i,padding:i,cursor:"pointer",transition:`all ${u}`,userSelect:"none",[`&:not(${n}-operations-operation-disabled):hover > ${d}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},XUt=e=>{const{modalMaskBg:n,iconCls:r,previewOperationColorDisabled:i,previewCls:o,zIndexPopup:a,motionDurationSlow:s}=e,l=new Gr(n).setA(.1),c=l.clone().setA(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(a).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:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${s}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:i,background:"transparent",cursor:"not-allowed",[`> ${r}`]:{cursor:"not-allowed"}}},[`> ${r}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},QUt=e=>{const{motionEaseOut:n,previewCls:r,motionDurationSlow:i,componentCls:o}=e;return[{[`${o}-preview-root`]:{[r]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${r}-body`]:Object.assign(Object.assign({},Eie()),{overflow:"hidden"}),[`${r}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${i} ${n} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Eie()),{transition:`transform ${i} ${n} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${r}-moving`]:{[`${r}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${r}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[KUt(e),XUt(e)]}]},ZUt=e=>{const{componentCls:n}=e;return{[n]:{position:"relative",display:"inline-block",[`${n}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${n}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${n}-mask`]:Object.assign({},qUt(e)),[`${n}-mask:hover`]:{opacity:1},[`${n}-placeholder`]:Object.assign({},Eie())}}},JUt=e=>{const{previewCls:n}=e;return{[`${n}-root`]:oI(e,"zoom"),"&":Iue(e,!0)}},eHt=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Gr(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new Gr(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new Gr(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),yVe=Yr("Image",e=>{const n=`${e.componentCls}-preview`,r=wr(e,{previewCls:n,modalMaskBg:new Gr("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[ZUt(r),QUt(r),L9e(wr(r,{componentCls:n})),JUt(r)]},eHt);var tHt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const _Ve={rotateLeft:m.createElement(LUt,null),rotateRight:m.createElement(BUt,null),zoomIn:m.createElement(VUt,null),zoomOut:m.createElement(YUt,null),close:m.createElement(Up,null),left:m.createElement(yA,null),right:m.createElement(w0,null),flipX:m.createElement(cwe,null),flipY:m.createElement(cwe,{rotate:90})},nHt=e=>{var{previewPrefixCls:n,preview:r}=e,i=tHt(e,["previewPrefixCls","preview"]);const{getPrefixCls:o}=m.useContext(Cn),a=o("image",n),s=`${a}-preview`,l=o(),c=po(a),[u,d,f]=yVe(a,c),[p]=Hp("ImagePreview",typeof r=="object"?r.zIndex:void 0),h=m.useMemo(()=>{var g;if(r===!1)return r;const v=typeof r=="object"?r:{},y=Ce(d,f,c,(g=v.rootClassName)!==null&&g!==void 0?g:"");return Object.assign(Object.assign({},v),{transitionName:Kl(l,"zoom",v.transitionName),maskTransitionName:Kl(l,"fade",v.maskTransitionName),rootClassName:y,zIndex:p})},[r]);return u(m.createElement(Lde.PreviewGroup,Object.assign({preview:h,previewPrefixCls:s,icons:_Ve},i)))};var uwe=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const bVe=e=>{var n;const{prefixCls:r,preview:i,className:o,rootClassName:a,style:s}=e,l=uwe(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:c,locale:u=Op,getPopupContainer:d,image:f}=m.useContext(Cn),p=c("image",r),h=c(),g=u.Image||Op.Image,v=po(p),[y,_,S]=yVe(p,v),b=Ce(a,_,S,v),E=Ce(o,_,f==null?void 0:f.className),[w]=Hp("ImagePreview",typeof i=="object"?i.zIndex:void 0),C=m.useMemo(()=>{var T;if(i===!1)return i;const R=typeof i=="object"?i:{},{getContainer:O,closeIcon:M,rootClassName:P}=R,k=uwe(R,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:m.createElement("div",{className:`${p}-mask-info`},m.createElement(wk,null),g==null?void 0:g.preview),icons:_Ve},k),{rootClassName:Ce(b,P),getContainer:O??d,transitionName:Kl(h,"zoom",R.transitionName),maskTransitionName:Kl(h,"fade",R.maskTransitionName),zIndex:w,closeIcon:M??((T=f==null?void 0:f.preview)===null||T===void 0?void 0:T.closeIcon)})},[i,g,(n=f==null?void 0:f.preview)===null||n===void 0?void 0:n.closeIcon]),x=Object.assign(Object.assign({},f==null?void 0:f.style),s);return y(m.createElement(Lde,Object.assign({prefixCls:p,preview:C,rootClassName:b,className:E,style:x},l)))};bVe.PreviewGroup=nHt;function rHt(e,n,r){return typeof r=="boolean"?r:e.length?!0:Tl(n).some(o=>o.type===KUe)}var SVe=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function CU(e){let{suffixCls:n,tagName:r,displayName:i}=e;return o=>m.forwardRef((s,l)=>m.createElement(o,Object.assign({ref:l,suffixCls:n,tagName:r},s)))}const $de=m.forwardRef((e,n)=>{const{prefixCls:r,suffixCls:i,className:o,tagName:a}=e,s=SVe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=m.useContext(Cn),c=l("layout",r),[u,d,f]=qUe(c),p=i?`${c}-${i}`:c;return u(m.createElement(a,Object.assign({className:Ce(r||p,o,d,f),ref:n},s)))}),iHt=m.forwardRef((e,n)=>{const{direction:r}=m.useContext(Cn),[i,o]=m.useState([]),{prefixCls:a,className:s,rootClassName:l,children:c,hasSider:u,tagName:d,style:f}=e,p=SVe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=Wr(p,["suffixCls"]),{getPrefixCls:g,layout:v}=m.useContext(Cn),y=g("layout",a),_=rHt(i,c,u),[S,b,E]=qUe(y),w=Ce(y,{[`${y}-has-sider`]:_,[`${y}-rtl`]:r==="rtl"},v==null?void 0:v.className,s,l,b,E),C=m.useMemo(()=>({siderHook:{addSider:x=>{o(T=>[].concat(Tt(T),[x]))},removeSider:x=>{o(T=>T.filter(R=>R!==x))}}}),[]);return S(m.createElement(GUe.Provider,{value:C},m.createElement(d,Object.assign({ref:n,className:w,style:Object.assign(Object.assign({},v==null?void 0:v.style),f)},h),c)))}),oHt=CU({tagName:"div",displayName:"Layout"})(iHt),Q8=CU({suffixCls:"header",tagName:"header",displayName:"Header"})($de),aHt=CU({suffixCls:"footer",tagName:"footer",displayName:"Footer"})($de),sHt=CU({suffixCls:"content",tagName:"main",displayName:"Content"})($de),bo=oHt;bo.Header=Q8;bo.Footer=aHt;bo.Content=sHt;bo.Sider=KUe;bo._InternalSiderContext=sU;var lHt={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 Z8=100,EVe=Z8/5,CVe=Z8/2-EVe/2,yq=CVe*2*Math.PI,dwe=50,fwe=e=>{const{dotClassName:n,style:r,hasCircleCls:i}=e;return m.createElement("circle",{className:Ce(`${n}-circle`,{[`${n}-circle-bg`]:i}),r:CVe,cx:dwe,cy:dwe,strokeWidth:EVe,style:r})},cHt=e=>{let{percent:n,prefixCls:r}=e;const i=`${r}-dot`,o=`${i}-holder`,a=`${o}-hidden`,[s,l]=m.useState(!1);ti(()=>{n!==0&&l(!0)},[n!==0]);const c=Math.max(Math.min(n,100),0);if(!s)return null;const u={strokeDashoffset:`${yq/4}`,strokeDasharray:`${yq*c/100} ${yq*(100-c)/100}`};return m.createElement("span",{className:Ce(o,`${i}-progress`,c<=0&&a)},m.createElement("svg",{viewBox:`0 0 ${Z8} ${Z8}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},m.createElement(fwe,{dotClassName:i,hasCircleCls:!0}),m.createElement(fwe,{dotClassName:i,style:u})))};function uHt(e){const{prefixCls:n,percent:r=0}=e,i=`${n}-dot`,o=`${i}-holder`,a=`${o}-hidden`;return m.createElement(m.Fragment,null,m.createElement("span",{className:Ce(o,r>0&&a)},m.createElement("span",{className:Ce(i,`${n}-dot-spin`)},[1,2,3,4].map(s=>m.createElement("i",{className:`${n}-dot-item`,key:s})))),m.createElement(cHt,{prefixCls:n,percent:r}))}function dHt(e){const{prefixCls:n,indicator:r,percent:i}=e,o=`${n}-dot`;return r&&m.isValidElement(r)?Ys(r,{className:Ce(r.props.className,o),percent:i}):m.createElement(uHt,{prefixCls:n,percent:i})}const fHt=new kr("antSpinMove",{to:{opacity:1}}),pHt=new kr("antRotate",{to:{transform:"rotate(405deg)"}}),hHt=e=>{const{componentCls:n,calc:r}=e;return{[n]:Object.assign(Object.assign({},li(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},[`${n}-text`]:{fontSize:e.fontSize,paddingTop:r(r(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[n]:{[`${n}-dot-holder`]:{color:e.colorWhite},[`${n}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${n}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${n}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:r(e.dotSize).mul(-1).div(2).equal()},[`${n}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${n}-show-text ${n}-dot`]:{marginTop:r(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${n}-dot`]:{margin:r(e.dotSizeSM).mul(-1).div(2).equal()},[`${n}-text`]:{paddingTop:r(r(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${n}-show-text ${n}-dot`]:{marginTop:r(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${n}-dot`]:{margin:r(e.dotSizeLG).mul(-1).div(2).equal()},[`${n}-text`]:{paddingTop:r(r(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${n}-show-text ${n}-dot`]:{marginTop:r(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${n}-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"}},[`${n}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${n}-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}},[`${n}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${n}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:r(e.dotSize).sub(r(e.marginXXS).div(2)).div(2).equal(),height:r(e.dotSize).sub(r(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:fHt,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:pHt,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(i=>`${i} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${n}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${n}-dot-holder`]:{i:{width:r(r(e.dotSizeSM).sub(r(e.marginXXS).div(2))).div(2).equal(),height:r(r(e.dotSizeSM).sub(r(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${n}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${n}-dot-holder`]:{i:{width:r(r(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:r(r(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${n}-show-text ${n}-text`]:{display:"block"}})}},gHt=e=>{const{controlHeightLG:n,controlHeight:r}=e;return{contentHeight:400,dotSize:n/2,dotSizeSM:n*.35,dotSizeLG:r}},mHt=Yr("Spin",e=>{const n=wr(e,{spinDotDefault:e.colorTextDescription});return[hHt(n)]},gHt),vHt=200,pwe=[[30,.05],[70,.03],[96,.01]];function yHt(e,n){const[r,i]=m.useState(0),o=m.useRef(null),a=n==="auto";return m.useEffect(()=>(a&&e&&(i(0),o.current=setInterval(()=>{i(s=>{const l=100-s;for(let c=0;c<pwe.length;c+=1){const[u,d]=pwe[c];if(s<=u)return s+l*d}return s})},vHt)),()=>{clearInterval(o.current)}),[a,e]),a?r:n}var _Ht=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};let wVe;function bHt(e,n){return!!e&&!!n&&!Number.isNaN(Number(n))}const t_=e=>{var n;const{prefixCls:r,spinning:i=!0,delay:o=0,className:a,rootClassName:s,size:l="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:p=!1,indicator:h,percent:g}=e,v=_Ht(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:y,direction:_,spin:S}=m.useContext(Cn),b=y("spin",r),[E,w,C]=mHt(b),[x,T]=m.useState(()=>i&&!bHt(i,o)),R=yHt(x,g);m.useEffect(()=>{if(i){const z=j8t(o,()=>{T(!0)});return z(),()=>{var D;(D=z==null?void 0:z.cancel)===null||D===void 0||D.call(z)}}T(!1)},[o,i]);const O=m.useMemo(()=>typeof f<"u"&&!p,[f,p]),M=Ce(b,S==null?void 0:S.className,{[`${b}-sm`]:l==="small",[`${b}-lg`]:l==="large",[`${b}-spinning`]:x,[`${b}-show-text`]:!!c,[`${b}-rtl`]:_==="rtl"},a,!p&&s,w,C),P=Ce(`${b}-container`,{[`${b}-blur`]:x}),k=(n=h??(S==null?void 0:S.indicator))!==null&&n!==void 0?n:wVe,$=Object.assign(Object.assign({},S==null?void 0:S.style),d),U=m.createElement("div",Object.assign({},v,{style:$,className:M,"aria-live":"polite","aria-busy":x}),m.createElement(dHt,{prefixCls:b,indicator:k,percent:R}),c&&(O||p)?m.createElement("div",{className:`${b}-text`},c):null);return E(O?m.createElement("div",Object.assign({},v,{className:Ce(`${b}-nested-loading`,u,w,C)}),x&&m.createElement("div",{key:"loading"},U),m.createElement("div",{className:P,key:"container"},f)):p?m.createElement("div",{className:Ce(`${b}-fullscreen`,{[`${b}-fullscreen-show`]:x},s,w,C)},U):U)};t_.setDefaultIndicator=e=>{wVe=e};let rp=null,a1=e=>e(),SA=[],EA={};function hwe(){const{getContainer:e,duration:n,rtl:r,maxCount:i,top:o}=EA,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:n,rtl:r,maxCount:i,top:o}}const SHt=V.forwardRef((e,n)=>{const{messageConfig:r,sync:i}=e,{getPrefixCls:o}=m.useContext(Cn),a=EA.prefixCls||o("message"),s=m.useContext(rie),[l,c]=Q7e(Object.assign(Object.assign(Object.assign({},r),{prefixCls:a}),s.message));return V.useImperativeHandle(n,()=>{const u=Object.assign({},l);return Object.keys(u).forEach(d=>{u[d]=function(){return i(),l[d].apply(l,arguments)}}),{instance:u,sync:i}}),c}),EHt=V.forwardRef((e,n)=>{const[r,i]=V.useState(hwe),o=()=>{i(hwe)};V.useEffect(o,[]);const a=D7e(),s=a.getRootPrefixCls(),l=a.getIconPrefixCls(),c=a.getTheme(),u=V.createElement(SHt,{ref:n,sync:o,messageConfig:r});return V.createElement(or,{prefixCls:s,iconPrefixCls:l,theme:c},a.holderRender?a.holderRender(u):u)});function wU(){if(!rp){const e=document.createDocumentFragment(),n={fragment:e};rp=n,a1(()=>{xue()(V.createElement(EHt,{ref:i=>{const{instance:o,sync:a}=i||{};Promise.resolve().then(()=>{!n.instance&&o&&(n.instance=o,n.sync=a,wU())})}}),e)});return}rp.instance&&(SA.forEach(e=>{const{type:n,skipped:r}=e;if(!r)switch(n){case"open":{a1(()=>{const i=rp.instance.open(Object.assign(Object.assign({},EA),e.config));i==null||i.then(e.resolve),e.setCloseFn(i)});break}case"destroy":a1(()=>{rp==null||rp.instance.destroy(e.key)});break;default:a1(()=>{var i;const o=(i=rp.instance)[n].apply(i,Tt(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),SA=[])}function CHt(e){EA=Object.assign(Object.assign({},EA),e),a1(()=>{var n;(n=rp==null?void 0:rp.sync)===null||n===void 0||n.call(rp)})}function wHt(e){const n=wue(r=>{let i;const o={type:"open",config:e,resolve:r,setCloseFn:a=>{i=a}};return SA.push(o),()=>{i?a1(()=>{i()}):o.skipped=!0}});return wU(),n}function xHt(e,n){const r=wue(i=>{let o;const a={type:e,args:n,resolve:i,setCloseFn:s=>{o=s}};return SA.push(a),()=>{o?a1(()=>{o()}):a.skipped=!0}});return wU(),r}const THt=e=>{SA.push({type:"destroy",key:e}),wU()},OHt=["success","info","warning","error","loading"],RHt={open:wHt,destroy:THt,config:CHt,useMessage:Z7e,_InternalPanelDoNotUseOrYouWillBeFired:X2t},nP=RHt;OHt.forEach(e=>{nP[e]=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return xHt(e,r)}});var IHt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const NHt=e=>{const{prefixCls:n,className:r,closeIcon:i,closable:o,type:a,title:s,children:l,footer:c}=e,u=IHt(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=m.useContext(Cn),f=d(),p=n||d("modal"),h=po(f),[g,v,y]=B9e(p,h),_=`${p}-confirm`;let S={};return a?S={closable:o??!1,title:"",footer:"",children:m.createElement(U9e,Object.assign({},e,{prefixCls:p,confirmPrefixCls:_,rootPrefixCls:f,content:l}))}:S={closable:o??!0,title:s,footer:c!==null&&m.createElement(D9e,Object.assign({},e)),children:l},g(m.createElement(_9e,Object.assign({prefixCls:p,className:Ce(v,`${p}-pure-panel`,a&&_,a&&`${_}-${a}`,r,y,h)},u,{closeIcon:A9e(p,i),closable:o},S)))},MHt=J9e(NHt);function xVe(e){return mk(G9e(e))}const fa=j9e;fa.useModal=X9e;fa.info=function(n){return mk(W9e(n))};fa.success=function(n){return mk(Y9e(n))};fa.error=function(n){return mk(q9e(n))};fa.warning=xVe;fa.warn=xVe;fa.confirm=function(n){return mk(K9e(n))};fa.destroyAll=function(){for(;i1.length;){const n=i1.pop();n&&n()}};fa.config=cLt;fa._InternalPanelDoNotUseOrYouWillBeFired=MHt;const PHt=e=>{const{componentCls:n,iconCls:r,antCls:i,zIndexPopup:o,colorText:a,colorWarning:s,marginXXS:l,marginXS:c,fontSize:u,fontWeightStrong:d,colorTextHeading:f}=e;return{[n]:{zIndex:o,[`&${i}-popover`]:{fontSize:u},[`${n}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${n}-message-icon ${r}`]:{color:s,fontSize:u,lineHeight:1,marginInlineEnd:c},[`${n}-title`]:{fontWeight:d,color:f,"&:only-child":{fontWeight:"normal"}},[`${n}-description`]:{marginTop:l,color:a}},[`${n}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}},AHt=e=>{const{zIndexPopupBase:n}=e;return{zIndexPopup:n+60}},TVe=Yr("Popconfirm",e=>PHt(e),AHt,{resetStyle:!1});var DHt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const OVe=e=>{const{prefixCls:n,okButtonProps:r,cancelButtonProps:i,title:o,description:a,cancelText:s,okText:l,okType:c="primary",icon:u=m.createElement(eS,null),showCancel:d=!0,close:f,onConfirm:p,onCancel:h,onPopupClick:g}=e,{getPrefixCls:v}=m.useContext(Cn),[y]=Mu("Popconfirm",Op.Popconfirm),_=LO(o),S=LO(a);return m.createElement("div",{className:`${n}-inner-content`,onClick:g},m.createElement("div",{className:`${n}-message`},u&&m.createElement("span",{className:`${n}-message-icon`},u),m.createElement("div",{className:`${n}-message-text`},_&&m.createElement("div",{className:`${n}-title`},_),S&&m.createElement("div",{className:`${n}-description`},S))),m.createElement("div",{className:`${n}-buttons`},d&&m.createElement(qn,Object.assign({onClick:h,size:"small"},i),s||(y==null?void 0:y.cancelText)),m.createElement(Due,{buttonProps:Object.assign(Object.assign({size:"small"},Tue(c)),r),actionFn:p,close:f,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},l||(y==null?void 0:y.okText))))},kHt=e=>{const{prefixCls:n,placement:r,className:i,style:o}=e,a=DHt(e,["prefixCls","placement","className","style"]),{getPrefixCls:s}=m.useContext(Cn),l=s("popconfirm",n),[c]=TVe(l);return c(m.createElement(NUe,{placement:r,className:Ce(l,i),style:o,content:m.createElement(OVe,Object.assign({prefixCls:l},a))}))};var LHt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const $Ht=m.forwardRef((e,n)=>{var r,i,o,a,s,l;const{prefixCls:c,placement:u="top",trigger:d="click",okType:f="primary",icon:p=m.createElement(eS,null),children:h,overlayClassName:g,onOpenChange:v,onVisibleChange:y,overlayStyle:_,styles:S,classNames:b}=e,E=LHt(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:w,popconfirm:C}=m.useContext(Cn),[x,T]=dr(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(i=e.defaultOpen)!==null&&i!==void 0?i:e.defaultVisible}),R=(B,Y)=>{T(B,!0),y==null||y(B),v==null||v(B,Y)},O=B=>{R(!1,B)},M=B=>{var Y;return(Y=e.onConfirm)===null||Y===void 0?void 0:Y.call(void 0,B)},P=B=>{var Y;R(!1,B),(Y=e.onCancel)===null||Y===void 0||Y.call(void 0,B)},k=(B,Y)=>{const{disabled:q=!1}=e;q||R(B,Y)},$=w("popconfirm",c),U=Ce($,g,(o=C==null?void 0:C.classNames)===null||o===void 0?void 0:o.root,b==null?void 0:b.root),z=Ce((a=C==null?void 0:C.classNames)===null||a===void 0?void 0:a.body,b==null?void 0:b.body),[D]=TVe($);return D(m.createElement(Ip,Object.assign({},Wr(E,["title"]),{trigger:d,placement:u,onOpenChange:k,open:x,ref:n,classNames:{root:U,body:z},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(s=C==null?void 0:C.styles)===null||s===void 0?void 0:s.root),C==null?void 0:C.style),_),S==null?void 0:S.root),body:Object.assign(Object.assign({},(l=C==null?void 0:C.styles)===null||l===void 0?void 0:l.body),S==null?void 0:S.body)},content:m.createElement(OVe,Object.assign({okType:f,icon:p},e,{prefixCls:$,close:O,onConfirm:M,onCancel:P})),"data-popover-inject":!0}),h))}),RVe=$Ht;RVe._InternalPanelDoNotUseOrYouWillBeFired=kHt;var FHt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},BHt=function(){var n=m.useRef([]),r=m.useRef(null);return m.useEffect(function(){var i=Date.now(),o=!1;n.current.forEach(function(a){if(a){o=!0;var s=a.style;s.transitionDuration=".3s, .3s, .3s, .06s",r.current&&i-r.current<100&&(s.transitionDuration="0s, 0s")}}),o&&(r.current=Date.now())}),n.current},gwe=0,jHt=bf();function UHt(){var e;return jHt?(e=gwe,gwe+=1):e="TEST_OR_SSR",e}const HHt=function(e){var n=m.useState(),r=ke(n,2),i=r[0],o=r[1];return m.useEffect(function(){o("rc_progress_".concat(UHt()))},[]),e||i};var mwe=function(n){var r=n.bg,i=n.children;return m.createElement("div",{style:{width:"100%",height:"100%",background:r}},i)};function vwe(e,n){return Object.keys(e).map(function(r){var i=parseFloat(r),o="".concat(Math.floor(i*n),"%");return"".concat(e[r]," ").concat(o)})}var zHt=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.color,o=e.gradientId,a=e.radius,s=e.style,l=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,p=i&&cn(i)==="object",h=p?"#FFF":void 0,g=d/2,v=m.createElement("circle",{className:"".concat(r,"-circle-path"),r:a,cx:g,cy:g,stroke:h,strokeLinecap:c,strokeWidth:u,opacity:l===0?0:1,style:s,ref:n});if(!p)return v;var y="".concat(o,"-conic"),_=f?"".concat(180+f/2,"deg"):"0deg",S=vwe(i,(360-f)/360),b=vwe(i,1),E="conic-gradient(from ".concat(_,", ").concat(S.join(", "),")"),w="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(b.join(", "),")");return m.createElement(m.Fragment,null,m.createElement("mask",{id:y},v),m.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(y,")")},m.createElement(mwe,{bg:w},m.createElement(mwe,{bg:E}))))}),u2=100,_q=function(n,r,i,o,a,s,l,c,u,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,p=i/100*360*((360-s)/360),h=s===0?0:{bottom:0,top:180,left:90,right:-90}[l],g=(100-o)/100*r;u==="round"&&o!==100&&(g+=d/2,g>=r&&(g=r-.01));var v=u2/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(r,"px ").concat(n),strokeDashoffset:g+f,transform:"rotate(".concat(a+p+h,"deg)"),transformOrigin:"".concat(v,"px ").concat(v,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},VHt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ywe(e){var n=e??[];return Array.isArray(n)?n:[n]}var GHt=function(n){var r=ee(ee({},FHt),n),i=r.id,o=r.prefixCls,a=r.steps,s=r.strokeWidth,l=r.trailWidth,c=r.gapDegree,u=c===void 0?0:c,d=r.gapPosition,f=r.trailColor,p=r.strokeLinecap,h=r.style,g=r.className,v=r.strokeColor,y=r.percent,_=Xt(r,VHt),S=u2/2,b=HHt(i),E="".concat(b,"-gradient"),w=S-s/2,C=Math.PI*2*w,x=u>0?90+u/2:-90,T=C*((360-u)/360),R=cn(a)==="object"?a:{count:a,gap:2},O=R.count,M=R.gap,P=ywe(y),k=ywe(v),$=k.find(function(K){return K&&cn(K)==="object"}),U=$&&cn($)==="object",z=U?"butt":p,D=_q(C,T,0,100,x,u,d,f,z,s),B=BHt(),Y=function(){var H=0;return P.map(function(G,Q){var le=k[Q]||k[k.length-1],Z=_q(C,T,H,G,x,u,d,le,z,s);return H+=G,m.createElement(zHt,{key:Q,color:le,ptg:G,radius:w,prefixCls:o,gradientId:E,style:Z,strokeLinecap:z,strokeWidth:s,gapDegree:u,ref:function(F){B[Q]=F},size:u2})}).reverse()},q=function(){var H=Math.round(O*(P[0]/100)),G=100/O,Q=0;return new Array(O).fill(null).map(function(le,Z){var j=Z<=H-1?k[0]:f,F=j&&cn(j)==="object"?"url(#".concat(E,")"):void 0,te=_q(C,T,Q,G,x,u,d,j,"butt",s,M);return Q+=(T-te.strokeDashoffset+M)*100/T,m.createElement("circle",{key:Z,className:"".concat(o,"-circle-path"),r:w,cx:S,cy:S,stroke:F,strokeWidth:s,opacity:1,style:te,ref:function(de){B[Z]=de}})})};return m.createElement("svg",ft({className:Ce("".concat(o,"-circle"),g),viewBox:"0 0 ".concat(u2," ").concat(u2),style:h,id:i,role:"presentation"},_),!O&&m.createElement("circle",{className:"".concat(o,"-circle-trail"),r:w,cx:S,cy:S,stroke:f,strokeLinecap:z,strokeWidth:l||s,style:D}),O?q():Y())};function f0(e){return!e||e<0?0:e>100?100:e}function J8(e){let{success:n,successPercent:r}=e,i=r;return n&&"progress"in n&&(i=n.progress),n&&"percent"in n&&(i=n.percent),i}const WHt=e=>{let{percent:n,success:r,successPercent:i}=e;const o=f0(J8({success:r,successPercent:i}));return[o,f0(f0(n)-o)]},YHt=e=>{let{success:n={},strokeColor:r}=e;const{strokeColor:i}=n;return[i||R1.green,r||null]},xU=(e,n,r)=>{var i,o,a,s;let l=-1,c=-1;if(n==="step"){const u=r.steps,d=r.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,c=d??8):typeof e=="number"?[l,c]=[e,e]:[l=14,c=8]=Array.isArray(e)?e:[e.width,e.height],l*=u}else if(n==="line"){const u=r==null?void 0:r.strokeWidth;typeof e=="string"||typeof e>"u"?c=u||(e==="small"?6:8):typeof e=="number"?[l,c]=[e,e]:[l=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(n==="circle"||n==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,c]=[e,e]:Array.isArray(e)&&(l=(o=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&o!==void 0?o:120,c=(s=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&s!==void 0?s:120));return[l,c]},qHt=3,KHt=e=>qHt/e*100,XHt=e=>{const{prefixCls:n,trailColor:r=null,strokeLinecap:i="round",gapPosition:o,gapDegree:a,width:s=120,type:l,children:c,success:u,size:d=s,steps:f}=e,[p,h]=xU(d,"circle");let{strokeWidth:g}=e;g===void 0&&(g=Math.max(KHt(p),6));const v={width:p,height:h,fontSize:p*.15+6},y=m.useMemo(()=>{if(a||a===0)return a;if(l==="dashboard")return 75},[a,l]),_=WHt(e),S=o||l==="dashboard"&&"bottom"||void 0,b=Object.prototype.toString.call(e.strokeColor)==="[object Object]",E=YHt({success:u,strokeColor:e.strokeColor}),w=Ce(`${n}-inner`,{[`${n}-circle-gradient`]:b}),C=m.createElement(GHt,{steps:f,percent:f?_[1]:_,strokeWidth:g,trailWidth:g,strokeColor:f?E[1]:E,strokeLinecap:i,trailColor:r,prefixCls:n,gapDegree:y,gapPosition:S}),x=p<=20,T=m.createElement("div",{className:w,style:v},C,!x&&c);return x?m.createElement(Ef,{title:c},T):T},eB="--progress-line-stroke-color",IVe="--progress-percent",_we=e=>{const n=e?"100%":"-100%";return new kr(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${n}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${n}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},QHt=e=>{const{componentCls:n,iconCls:r}=e;return{[n]:Object.assign(Object.assign({},li(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${n}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${n}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${n}-inner:not(${n}-circle-gradient)`]:{[`${n}-circle-path`]:{stroke:e.defaultColor}},[`${n}-success-bg, ${n}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${n}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${n}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${n}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${eB})`]},height:"100%",width:`calc(1 / var(${IVe}) * 100%)`,display:"block"},[`&${n}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${n}-text-inner`]:{color:e.colorWhite,[`&${n}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${n}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${n}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${n}-text-outer`]:{width:"max-content"},[`&${n}-text-outer${n}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${n}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Ye(e.paddingXXS)}`,[`&${n}-text-start`]:{justifyContent:"start"},[`&${n}-text-end`]:{justifyContent:"end"}},[`&${n}-status-active`]:{[`${n}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:_we(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${n}-rtl${n}-status-active`]:{[`${n}-bg::before`]:{animationName:_we(!0)}},[`&${n}-status-exception`]:{[`${n}-bg`]:{backgroundColor:e.colorError},[`${n}-text`]:{color:e.colorError}},[`&${n}-status-exception ${n}-inner:not(${n}-circle-gradient)`]:{[`${n}-circle-path`]:{stroke:e.colorError}},[`&${n}-status-success`]:{[`${n}-bg`]:{backgroundColor:e.colorSuccess},[`${n}-text`]:{color:e.colorSuccess}},[`&${n}-status-success ${n}-inner:not(${n}-circle-gradient)`]:{[`${n}-circle-path`]:{stroke:e.colorSuccess}}})}},ZHt=e=>{const{componentCls:n,iconCls:r}=e;return{[n]:{[`${n}-circle-trail`]:{stroke:e.remainingColor},[`&${n}-circle ${n}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${n}-circle ${n}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${n}-circle&-status-exception`]:{[`${n}-text`]:{color:e.colorError}},[`${n}-circle&-status-success`]:{[`${n}-text`]:{color:e.colorSuccess}}},[`${n}-inline-circle`]:{lineHeight:1,[`${n}-inner`]:{verticalAlign:"bottom"}}}},JHt=e=>{const{componentCls:n}=e;return{[n]:{[`${n}-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}}}}}},ezt=e=>{const{componentCls:n,iconCls:r}=e;return{[n]:{[`${n}-small&-line, ${n}-small&-line ${n}-text ${r}`]:{fontSize:e.fontSizeSM}}}},tzt=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),nzt=Yr("Progress",e=>{const n=e.calc(e.marginXXS).div(2).equal(),r=wr(e,{progressStepMarginInlineEnd:n,progressStepMinWidth:n,progressActiveMotionDuration:"2.4s"});return[QHt(r),ZHt(r),JHt(r),ezt(r)]},tzt);var rzt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const izt=e=>{let n=[];return Object.keys(e).forEach(r=>{const i=parseFloat(r.replace(/%/g,""));Number.isNaN(i)||n.push({key:i,value:e[r]})}),n=n.sort((r,i)=>r.key-i.key),n.map(r=>{let{key:i,value:o}=r;return`${o} ${i}%`}).join(", ")},ozt=(e,n)=>{const{from:r=R1.blue,to:i=R1.blue,direction:o=n==="rtl"?"to left":"to right"}=e,a=rzt(e,["from","to","direction"]);if(Object.keys(a).length!==0){const l=izt(a),c=`linear-gradient(${o}, ${l})`;return{background:c,[eB]:c}}const s=`linear-gradient(${o}, ${r}, ${i})`;return{background:s,[eB]:s}},azt=e=>{const{prefixCls:n,direction:r,percent:i,size:o,strokeWidth:a,strokeColor:s,strokeLinecap:l="round",children:c,trailColor:u=null,percentPosition:d,success:f}=e,{align:p,type:h}=d,g=s&&typeof s!="string"?ozt(s,r):{[eB]:s,background:s},v=l==="square"||l==="butt"?0:void 0,y=o??[-1,a||(o==="small"?6:8)],[_,S]=xU(y,"line",{strokeWidth:a}),b={backgroundColor:u||void 0,borderRadius:v},E=Object.assign(Object.assign({width:`${f0(i)}%`,height:S,borderRadius:v},g),{[IVe]:f0(i)/100}),w=J8(e),C={width:`${f0(w)}%`,height:S,borderRadius:v,backgroundColor:f==null?void 0:f.strokeColor},x={width:_<0?"100%":_},T=m.createElement("div",{className:`${n}-inner`,style:b},m.createElement("div",{className:Ce(`${n}-bg`,`${n}-bg-${h}`),style:E},h==="inner"&&c),w!==void 0&&m.createElement("div",{className:`${n}-success-bg`,style:C})),R=h==="outer"&&p==="start",O=h==="outer"&&p==="end";return h==="outer"&&p==="center"?m.createElement("div",{className:`${n}-layout-bottom`},T,c):m.createElement("div",{className:`${n}-outer`,style:x},R&&c,T,O&&c)},szt=e=>{const{size:n,steps:r,percent:i=0,strokeWidth:o=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=e,u=Math.round(r*(i/100)),f=n??[n==="small"?2:14,o],[p,h]=xU(f,"step",{steps:r,strokeWidth:o}),g=p/r,v=new Array(r);for(let y=0;y<r;y++){const _=Array.isArray(a)?a[y]:a;v[y]=m.createElement("div",{key:y,className:Ce(`${l}-steps-item`,{[`${l}-steps-item-active`]:y<=u-1}),style:{backgroundColor:y<=u-1?_:s,width:g,height:h}})}return m.createElement("div",{className:`${l}-steps-outer`},v,c)};var lzt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const czt=["normal","exception","active","success"],NVe=m.forwardRef((e,n)=>{const{prefixCls:r,className:i,rootClassName:o,steps:a,strokeColor:s,percent:l=0,size:c="default",showInfo:u=!0,type:d="line",status:f,format:p,style:h,percentPosition:g={}}=e,v=lzt(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:_="outer"}=g,S=Array.isArray(s)?s[0]:s,b=typeof s=="string"||Array.isArray(s)?s:void 0,E=m.useMemo(()=>{if(S){const Y=typeof S=="string"?S:Object.values(S)[0];return new Gr(Y).isLight()}return!1},[s]),w=m.useMemo(()=>{var Y,q;const K=J8(e);return parseInt(K!==void 0?(Y=K??0)===null||Y===void 0?void 0:Y.toString():(q=l??0)===null||q===void 0?void 0:q.toString(),10)},[l,e.success,e.successPercent]),C=m.useMemo(()=>!czt.includes(f)&&w>=100?"success":f||"normal",[f,w]),{getPrefixCls:x,direction:T,progress:R}=m.useContext(Cn),O=x("progress",r),[M,P,k]=nzt(O),$=d==="line",U=$&&!a,z=m.useMemo(()=>{if(!u)return null;const Y=J8(e);let q;const K=p||(G=>`${G}%`),H=$&&E&&_==="inner";return _==="inner"||p||C!=="exception"&&C!=="success"?q=K(f0(l),f0(Y)):C==="exception"?q=$?m.createElement(tv,null):m.createElement(Up,null):C==="success"&&(q=$?m.createElement(tw,null):m.createElement(c0,null)),m.createElement("span",{className:Ce(`${O}-text`,{[`${O}-text-bright`]:H,[`${O}-text-${y}`]:U,[`${O}-text-${_}`]:U}),title:typeof q=="string"?q:void 0},q)},[u,l,w,C,d,O,p]);let D;d==="line"?D=a?m.createElement(szt,Object.assign({},e,{strokeColor:b,prefixCls:O,steps:typeof a=="object"?a.count:a}),z):m.createElement(azt,Object.assign({},e,{strokeColor:S,prefixCls:O,direction:T,percentPosition:{align:y,type:_}}),z):(d==="circle"||d==="dashboard")&&(D=m.createElement(XHt,Object.assign({},e,{strokeColor:S,prefixCls:O,progressStatus:C}),z));const B=Ce(O,`${O}-status-${C}`,{[`${O}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${O}-inline-circle`]:d==="circle"&&xU(c,"circle")[0]<=20,[`${O}-line`]:U,[`${O}-line-align-${y}`]:U,[`${O}-line-position-${_}`]:U,[`${O}-steps`]:a,[`${O}-show-info`]:u,[`${O}-${c}`]:typeof c=="string",[`${O}-rtl`]:T==="rtl"},R==null?void 0:R.className,i,o,P,k);return M(m.createElement("div",Object.assign({ref:n,style:Object.assign(Object.assign({},R==null?void 0:R.style),h),className:B,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},Wr(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),D))});function cm(e,n){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=x9(e))||n){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(u){throw u},f:o}}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 a,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return s=u.done,u},e:function(u){l=!0,a=u},f:function(){try{s||r.return==null||r.return()}finally{if(l)throw a}}}}var gI,Tk;function td(e,n,r){if(n<0||n>31||e>>>n)throw new RangeError("Value out of range");for(var i=n-1;i>=0;i--)r.push(e>>>i&1)}function xv(e,n){return(e>>>n&1)!=0}function jd(e){if(!e)throw new Error("Assertion error")}var um=function(){function e(n,r){Ki(this,e),fe(this,"modeBits",void 0),fe(this,"numBitsCharCount",void 0),this.modeBits=n,this.numBitsCharCount=r}return Xi(e,[{key:"numCharCountBits",value:function(r){return this.numBitsCharCount[Math.floor((r+7)/17)]}}]),e}();gI=um;fe(um,"NUMERIC",new gI(1,[10,12,14]));fe(um,"ALPHANUMERIC",new gI(2,[9,11,13]));fe(um,"BYTE",new gI(4,[8,16,16]));fe(um,"KANJI",new gI(8,[8,10,12]));fe(um,"ECI",new gI(7,[0,0,0]));var mp=Xi(function e(n,r){Ki(this,e),fe(this,"ordinal",void 0),fe(this,"formatBits",void 0),this.ordinal=n,this.formatBits=r});Tk=mp;fe(mp,"LOW",new Tk(0,1));fe(mp,"MEDIUM",new Tk(1,0));fe(mp,"QUARTILE",new Tk(2,3));fe(mp,"HIGH",new Tk(3,2));var P1=function(){function e(n,r,i){if(Ki(this,e),fe(this,"mode",void 0),fe(this,"numChars",void 0),fe(this,"bitData",void 0),this.mode=n,this.numChars=r,this.bitData=i,r<0)throw new RangeError("Invalid argument");this.bitData=i.slice()}return Xi(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(r){var i=[],o=cm(r),a;try{for(o.s();!(a=o.n()).done;){var s=a.value;td(s,8,i)}}catch(l){o.e(l)}finally{o.f()}return new e(um.BYTE,r.length,i)}},{key:"makeNumeric",value:function(r){if(!e.isNumeric(r))throw new RangeError("String contains non-numeric characters");for(var i=[],o=0;o<r.length;){var a=Math.min(r.length-o,3);td(parseInt(r.substring(o,o+a),10),a*3+1,i),o+=a}return new e(um.NUMERIC,r.length,i)}},{key:"makeAlphanumeric",value:function(r){if(!e.isAlphanumeric(r))throw new RangeError("String contains unencodable characters in alphanumeric mode");var i=[],o;for(o=0;o+2<=r.length;o+=2){var a=e.ALPHANUMERIC_CHARSET.indexOf(r.charAt(o))*45;a+=e.ALPHANUMERIC_CHARSET.indexOf(r.charAt(o+1)),td(a,11,i)}return o<r.length&&td(e.ALPHANUMERIC_CHARSET.indexOf(r.charAt(o)),6,i),new e(um.ALPHANUMERIC,r.length,i)}},{key:"makeSegments",value:function(r){return r==""?[]:e.isNumeric(r)?[e.makeNumeric(r)]:e.isAlphanumeric(r)?[e.makeAlphanumeric(r)]:[e.makeBytes(e.toUtf8ByteArray(r))]}},{key:"makeEci",value:function(r){var i=[];if(r<0)throw new RangeError("ECI assignment value out of range");if(r<128)td(r,8,i);else if(r<16384)td(2,2,i),td(r,14,i);else if(r<1e6)td(6,3,i),td(r,21,i);else throw new RangeError("ECI assignment value out of range");return new e(um.ECI,0,i)}},{key:"isNumeric",value:function(r){return e.NUMERIC_REGEX.test(r)}},{key:"isAlphanumeric",value:function(r){return e.ALPHANUMERIC_REGEX.test(r)}},{key:"getTotalBits",value:function(r,i){var o=0,a=cm(r),s;try{for(a.s();!(s=a.n()).done;){var l=s.value,c=l.mode.numCharCountBits(i);if(l.numChars>=1<<c)return 1/0;o+=4+c+l.bitData.length}}catch(u){a.e(u)}finally{a.f()}return o}},{key:"toUtf8ByteArray",value:function(r){for(var i=encodeURI(r),o=[],a=0;a<i.length;a++)i.charAt(a)!="%"?o.push(i.charCodeAt(a)):(o.push(parseInt(i.substring(a+1,a+3),16)),a+=2);return o}}]),e}();fe(P1,"NUMERIC_REGEX",/^[0-9]*$/);fe(P1,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/);fe(P1,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var n_=function(){function e(n,r,i,o){Ki(this,e),fe(this,"size",void 0),fe(this,"mask",void 0),fe(this,"modules",[]),fe(this,"isFunction",[]),fe(this,"version",void 0),fe(this,"errorCorrectionLevel",void 0);var a=o;if(this.version=n,this.errorCorrectionLevel=r,n<e.MIN_VERSION||n>e.MAX_VERSION)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=n*4+17;for(var s=[],l=0;l<this.size;l++)s.push(!1);for(var c=0;c<this.size;c++)this.modules.push(s.slice()),this.isFunction.push(s.slice());this.drawFunctionPatterns();var u=this.addEccAndInterleave(i);if(this.drawCodewords(u),a==-1)for(var d=1e9,f=0;f<8;f++){this.applyMask(f),this.drawFormatBits(f);var p=this.getPenaltyScore();p<d&&(a=f,d=p),this.applyMask(f)}jd(0<=a&&a<=7),this.mask=a,this.applyMask(a),this.drawFormatBits(a),this.isFunction=[]}return Xi(e,[{key:"getModule",value:function(r,i){return 0<=r&&r<this.size&&0<=i&&i<this.size&&this.modules[i][r]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var r=0;r<this.size;r++)this.setFunctionModule(6,r,r%2==0),this.setFunctionModule(r,6,r%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var i=this.getAlignmentPatternPositions(),o=i.length,a=0;a<o;a++)for(var s=0;s<o;s++)a==0&&s==0||a==0&&s==o-1||a==o-1&&s==0||this.drawAlignmentPattern(i[a],i[s]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(r){for(var i=this.errorCorrectionLevel.formatBits<<3|r,o=i,a=0;a<10;a++)o=o<<1^(o>>>9)*1335;var s=(i<<10|o)^21522;jd(s>>>15==0);for(var l=0;l<=5;l++)this.setFunctionModule(8,l,xv(s,l));this.setFunctionModule(8,7,xv(s,6)),this.setFunctionModule(8,8,xv(s,7)),this.setFunctionModule(7,8,xv(s,8));for(var c=9;c<15;c++)this.setFunctionModule(14-c,8,xv(s,c));for(var u=0;u<8;u++)this.setFunctionModule(this.size-1-u,8,xv(s,u));for(var d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,xv(s,d));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var r=this.version,i=0;i<12;i++)r=r<<1^(r>>>11)*7973;var o=this.version<<12|r;jd(o>>>18==0);for(var a=0;a<18;a++){var s=xv(o,a),l=this.size-11+a%3,c=Math.floor(a/3);this.setFunctionModule(l,c,s),this.setFunctionModule(c,l,s)}}}},{key:"drawFinderPattern",value:function(r,i){for(var o=-4;o<=4;o++)for(var a=-4;a<=4;a++){var s=Math.max(Math.abs(a),Math.abs(o)),l=r+a,c=i+o;0<=l&&l<this.size&&0<=c&&c<this.size&&this.setFunctionModule(l,c,s!=2&&s!=4)}}},{key:"drawAlignmentPattern",value:function(r,i){for(var o=-2;o<=2;o++)for(var a=-2;a<=2;a++)this.setFunctionModule(r+a,i+o,Math.max(Math.abs(a),Math.abs(o))!=1)}},{key:"setFunctionModule",value:function(r,i,o){this.modules[i][r]=o,this.isFunction[i][r]=!0}},{key:"addEccAndInterleave",value:function(r){var i=this.version,o=this.errorCorrectionLevel;if(r.length!=e.getNumDataCodewords(i,o))throw new RangeError("Invalid argument");for(var a=e.NUM_ERROR_CORRECTION_BLOCKS[o.ordinal][i],s=e.ECC_CODEWORDS_PER_BLOCK[o.ordinal][i],l=Math.floor(e.getNumRawDataModules(i)/8),c=a-l%a,u=Math.floor(l/a),d=[],f=e.reedSolomonComputeDivisor(s),p=0,h=0;p<a;p++){var g=r.slice(h,h+u-s+(p<c?0:1));h+=g.length;var v=e.reedSolomonComputeRemainder(g,f);p<c&&g.push(0),d.push(g.concat(v))}for(var y=[],_=function(E){d.forEach(function(w,C){(E!=u-s||C>=c)&&y.push(w[E])})},S=0;S<d[0].length;S++)_(S);return jd(y.length==l),y}},{key:"drawCodewords",value:function(r){if(r.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var i=0,o=this.size-1;o>=1;o-=2){o==6&&(o=5);for(var a=0;a<this.size;a++)for(var s=0;s<2;s++){var l=o-s,c=(o+1&2)==0,u=c?this.size-1-a:a;!this.isFunction[u][l]&&i<r.length*8&&(this.modules[u][l]=xv(r[i>>>3],7-(i&7)),i++)}}jd(i==r.length*8)}},{key:"applyMask",value:function(r){if(r<0||r>7)throw new RangeError("Mask value out of range");for(var i=0;i<this.size;i++)for(var o=0;o<this.size;o++){var a=void 0;switch(r){case 0:a=(o+i)%2==0;break;case 1:a=i%2==0;break;case 2:a=o%3==0;break;case 3:a=(o+i)%3==0;break;case 4:a=(Math.floor(o/3)+Math.floor(i/2))%2==0;break;case 5:a=o*i%2+o*i%3==0;break;case 6:a=(o*i%2+o*i%3)%2==0;break;case 7:a=((o+i)%2+o*i%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[i][o]&&a&&(this.modules[i][o]=!this.modules[i][o])}}},{key:"getPenaltyScore",value:function(){for(var r=0,i=0;i<this.size;i++){for(var o=!1,a=0,s=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[i][l]==o?(a++,a==5?r+=e.PENALTY_N1:a>5&&r++):(this.finderPenaltyAddHistory(a,s),o||(r+=this.finderPenaltyCountPatterns(s)*e.PENALTY_N3),o=this.modules[i][l],a=1);r+=this.finderPenaltyTerminateAndCount(o,a,s)*e.PENALTY_N3}for(var c=0;c<this.size;c++){for(var u=!1,d=0,f=[0,0,0,0,0,0,0],p=0;p<this.size;p++)this.modules[p][c]==u?(d++,d==5?r+=e.PENALTY_N1:d>5&&r++):(this.finderPenaltyAddHistory(d,f),u||(r+=this.finderPenaltyCountPatterns(f)*e.PENALTY_N3),u=this.modules[p][c],d=1);r+=this.finderPenaltyTerminateAndCount(u,d,f)*e.PENALTY_N3}for(var h=0;h<this.size-1;h++)for(var g=0;g<this.size-1;g++){var v=this.modules[h][g];v==this.modules[h][g+1]&&v==this.modules[h+1][g]&&v==this.modules[h+1][g+1]&&(r+=e.PENALTY_N2)}var y=0,_=cm(this.modules),S;try{for(_.s();!(S=_.n()).done;){var b=S.value;y=b.reduce(function(C,x){return C+(x?1:0)},y)}}catch(C){_.e(C)}finally{_.f()}var E=this.size*this.size,w=Math.ceil(Math.abs(y*20-E*10)/E)-1;return jd(0<=w&&w<=9),r+=w*e.PENALTY_N4,jd(0<=r&&r<=2568888),r}},{key:"getAlignmentPatternPositions",value:function(){if(this.version==1)return[];for(var r=Math.floor(this.version/7)+2,i=this.version==32?26:Math.ceil((this.version*4+4)/(r*2-2))*2,o=[6],a=this.size-7;o.length<r;a-=i)o.splice(1,0,a);return o}},{key:"finderPenaltyCountPatterns",value:function(r){var i=r[1];jd(i<=this.size*3);var o=i>0&&r[2]==i&&r[3]==i*3&&r[4]==i&&r[5]==i;return(o&&r[0]>=i*4&&r[6]>=i?1:0)+(o&&r[6]>=i*4&&r[0]>=i?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(r,i,o){var a=i;return r&&(this.finderPenaltyAddHistory(a,o),a=0),a+=this.size,this.finderPenaltyAddHistory(a,o),this.finderPenaltyCountPatterns(o)}},{key:"finderPenaltyAddHistory",value:function(r,i){var o=r;i[0]==0&&(o+=this.size),i.pop(),i.unshift(o)}}],[{key:"encodeText",value:function(r,i){var o=P1.makeSegments(r);return e.encodeSegments(o,i)}},{key:"encodeBinary",value:function(r,i){var o=P1.makeBytes(r);return e.encodeSegments([o],i)}},{key:"encodeSegments",value:function(r,i){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(e.MIN_VERSION<=o&&o<=a&&a<=e.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");var c,u;for(c=o;;c++){var d=e.getNumDataCodewords(c,i)*8,f=P1.getTotalBits(r,c);if(f<=d){u=f;break}if(c>=a)throw new RangeError("Data too long")}for(var p=i,h=0,g=[mp.MEDIUM,mp.QUARTILE,mp.HIGH];h<g.length;h++){var v=g[h];l&&u<=e.getNumDataCodewords(c,v)*8&&(p=v)}var y=[],_=cm(r),S;try{for(_.s();!(S=_.n()).done;){var b=S.value;td(b.mode.modeBits,4,y),td(b.numChars,b.mode.numCharCountBits(c),y);var E=cm(b.getData()),w;try{for(E.s();!(w=E.n()).done;){var C=w.value;y.push(C)}}catch(O){E.e(O)}finally{E.f()}}}catch(O){_.e(O)}finally{_.f()}jd(y.length==u);var x=e.getNumDataCodewords(c,p)*8;jd(y.length<=x),td(0,Math.min(4,x-y.length),y),td(0,(8-y.length%8)%8,y),jd(y.length%8==0);for(var T=236;y.length<x;T^=253)td(T,8,y);for(var R=[];R.length*8<y.length;)R.push(0);return y.forEach(function(O,M){return R[M>>>3]|=O<<7-(M&7)}),new e(c,p,R,s)}},{key:"getNumRawDataModules",value:function(r){if(r<e.MIN_VERSION||r>e.MAX_VERSION)throw new RangeError("Version number out of range");var i=(16*r+128)*r+64;if(r>=2){var o=Math.floor(r/7)+2;i-=(25*o-10)*o-55,r>=7&&(i-=36)}return jd(208<=i&&i<=29648),i}},{key:"getNumDataCodewords",value:function(r,i){return Math.floor(e.getNumRawDataModules(r)/8)-e.ECC_CODEWORDS_PER_BLOCK[i.ordinal][r]*e.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][r]}},{key:"reedSolomonComputeDivisor",value:function(r){if(r<1||r>255)throw new RangeError("Degree out of range");for(var i=[],o=0;o<r-1;o++)i.push(0);i.push(1);for(var a=1,s=0;s<r;s++){for(var l=0;l<i.length;l++)i[l]=e.reedSolomonMultiply(i[l],a),l+1<i.length&&(i[l]^=i[l+1]);a=e.reedSolomonMultiply(a,2)}return i}},{key:"reedSolomonComputeRemainder",value:function(r,i){var o=i.map(function(){return 0}),a=cm(r),s;try{var l=function(){var u=s.value,d=u^o.shift();o.push(0),i.forEach(function(f,p){return o[p]^=e.reedSolomonMultiply(f,d)})};for(a.s();!(s=a.n()).done;)l()}catch(c){a.e(c)}finally{a.f()}return o}},{key:"reedSolomonMultiply",value:function(r,i){if(r>>>8||i>>>8)throw new RangeError("Byte out of range");for(var o=0,a=7;a>=0;a--)o=o<<1^(o>>>7)*285,o^=(i>>>a&1)*r;return jd(o>>>8==0),o}}]),e}();fe(n_,"MIN_VERSION",1);fe(n_,"MAX_VERSION",40);fe(n_,"PENALTY_N1",3);fe(n_,"PENALTY_N2",3);fe(n_,"PENALTY_N3",40);fe(n_,"PENALTY_N4",10);fe(n_,"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]]);fe(n_,"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 uzt={L:mp.LOW,M:mp.MEDIUM,Q:mp.QUARTILE,H:mp.HIGH},MVe=128,PVe="L",AVe="#FFFFFF",DVe="#000000",kVe=!1,LVe=1,dzt=4,fzt=0,pzt=.1;function $Ve(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[];return e.forEach(function(i,o){var a=null;i.forEach(function(s,l){if(!s&&a!==null){r.push("M".concat(a+n," ").concat(o+n,"h").concat(l-a,"v1H").concat(a+n,"z")),a=null;return}if(l===i.length-1){if(!s)return;a===null?r.push("M".concat(l+n,",").concat(o+n," h1v1H").concat(l+n,"z")):r.push("M".concat(a+n,",").concat(o+n," h").concat(l+1-a,"v1H").concat(a+n,"z"));return}s&&a===null&&(a=l)})}),r.join("")}function FVe(e,n){return e.slice().map(function(r,i){return i<n.y||i>=n.y+n.h?r:r.map(function(o,a){return a<n.x||a>=n.x+n.w?o:!1})})}function hzt(e,n,r,i){if(i==null)return null;var o=e.length+r*2,a=Math.floor(n*pzt),s=o/n,l=(i.width||a)*s,c=(i.height||a)*s,u=i.x==null?e.length/2-l/2:i.x*s,d=i.y==null?e.length/2-c/2:i.y*s,f=i.opacity==null?1:i.opacity,p=null;if(i.excavate){var h=Math.floor(u),g=Math.floor(d),v=Math.ceil(l+u-h),y=Math.ceil(c+d-g);p={x:h,y:g,w:v,h:y}}var _=i.crossOrigin;return{x:u,y:d,h:c,w:l,excavation:p,opacity:f,crossOrigin:_}}function gzt(e,n){return n!=null?Math.floor(n):e?dzt:fzt}var mzt=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function BVe(e){var n=e.value,r=e.level,i=e.minVersion,o=e.includeMargin,a=e.marginSize,s=e.imageSettings,l=e.size,c=m.useMemo(function(){var g=P1.makeSegments(n);return n_.encodeSegments(g,uzt[r],i)},[n,r,i]),u=m.useMemo(function(){var g=c.getModules(),v=gzt(o,a),y=g.length+v*2,_=hzt(g,l,v,s);return{cells:g,margin:v,numCells:y,calculatedImageSettings:_}},[c,l,s,o,a]),d=u.cells,f=u.margin,p=u.numCells,h=u.calculatedImageSettings;return{qrcode:c,margin:f,cells:d,numCells:p,calculatedImageSettings:h}}var vzt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],jVe=V.forwardRef(function(n,r){var i=n.value,o=n.size,a=o===void 0?MVe:o,s=n.level,l=s===void 0?PVe:s,c=n.bgColor,u=c===void 0?AVe:c,d=n.fgColor,f=d===void 0?DVe:d,p=n.includeMargin,h=p===void 0?kVe:p,g=n.minVersion,v=g===void 0?LVe:g,y=n.marginSize,_=n.style,S=n.imageSettings,b=Xt(n,vzt),E=S==null?void 0:S.src,w=m.useRef(null),C=m.useRef(null),x=m.useCallback(function(B){w.current=B,typeof r=="function"?r(B):r&&(r.current=B)},[r]),T=m.useState(!1),R=ke(T,2),O=R[1],M=BVe({value:i,level:l,minVersion:v,includeMargin:h,marginSize:y,imageSettings:S,size:a}),P=M.margin,k=M.cells,$=M.numCells,U=M.calculatedImageSettings;m.useEffect(function(){if(w.current!=null){var B=w.current,Y=B.getContext("2d");if(!Y)return;var q=k,K=C.current,H=U!=null&&K!==null&&K.complete&&K.naturalHeight!==0&&K.naturalWidth!==0;H&&U.excavation!=null&&(q=FVe(k,U.excavation));var G=window.devicePixelRatio||1;B.height=B.width=a*G;var Q=a/$*G;Y.scale(Q,Q),Y.fillStyle=u,Y.fillRect(0,0,$,$),Y.fillStyle=f,mzt?Y.fill(new Path2D($Ve(q,P))):k.forEach(function(le,Z){le.forEach(function(j,F){j&&Y.fillRect(F+P,Z+P,1,1)})}),U&&(Y.globalAlpha=U.opacity),H&&Y.drawImage(K,U.x+P,U.y+P,U.w,U.h)}}),m.useEffect(function(){O(!1)},[E]);var z=ee({height:a,width:a},_),D=null;return E!=null&&(D=V.createElement("img",{src:E,key:E,style:{display:"none"},onLoad:function(){O(!0)},ref:C,crossOrigin:U==null?void 0:U.crossOrigin})),V.createElement(V.Fragment,null,V.createElement("canvas",ft({style:z,height:a,width:a,ref:x,role:"img"},b)),D)});jVe.displayName="QRCodeCanvas";var yzt=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],UVe=V.forwardRef(function(n,r){var i=n.value,o=n.size,a=o===void 0?MVe:o,s=n.level,l=s===void 0?PVe:s,c=n.bgColor,u=c===void 0?AVe:c,d=n.fgColor,f=d===void 0?DVe:d,p=n.includeMargin,h=p===void 0?kVe:p,g=n.minVersion,v=g===void 0?LVe:g,y=n.title,_=n.marginSize,S=n.imageSettings,b=Xt(n,yzt),E=BVe({value:i,level:l,minVersion:v,includeMargin:h,marginSize:_,imageSettings:S,size:a}),w=E.margin,C=E.cells,x=E.numCells,T=E.calculatedImageSettings,R=C,O=null;S!=null&&T!=null&&(T.excavation!=null&&(R=FVe(C,T.excavation)),O=V.createElement("image",{href:S.src,height:T.h,width:T.w,x:T.x+w,y:T.y+w,preserveAspectRatio:"none",opacity:T.opacity,crossOrigin:T.crossOrigin}));var M=$Ve(R,w);return V.createElement("svg",ft({height:a,width:a,viewBox:"0 0 ".concat(x," ").concat(x),ref:r,role:"img"},b),!!y&&V.createElement("title",null,y),V.createElement("path",{fill:u,d:"M0,0 h".concat(x,"v").concat(x,"H0z"),shapeRendering:"crispEdges"}),V.createElement("path",{fill:f,d:M,shapeRendering:"crispEdges"}),O)});UVe.displayName="QRCodeSVG";var _zt={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"},bzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:_zt}))},Szt=m.forwardRef(bzt),Ezt={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"},Czt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Ezt}))},HVe=m.forwardRef(Czt),wzt={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"},xzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:wzt}))},Tzt=m.forwardRef(xzt),Ozt={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"},Rzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Ozt}))},zVe=m.forwardRef(Rzt),Izt={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"},Nzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Izt}))},Mzt=m.forwardRef(Nzt),Pzt={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"},Azt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Pzt}))},Cie=m.forwardRef(Azt),Dzt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"},kzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Dzt}))},Lzt=m.forwardRef(kzt),$zt={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"},Fzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:$zt}))},Bzt=m.forwardRef(Fzt),jzt={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"},Uzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:jzt}))},Hzt=m.forwardRef(Uzt),zzt={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"},Vzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:zzt}))},sw=m.forwardRef(Vzt),Gzt={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"},Wzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Gzt}))},Ok=m.forwardRef(Wzt),Yzt={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"},qzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Yzt}))},Kzt=m.forwardRef(qzt),Xzt={icon:function(n,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:n}}]}},name:"file",theme:"twotone"},Qzt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Xzt}))},Zzt=m.forwardRef(Qzt),Jzt={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"},eVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:Jzt}))},VVe=m.forwardRef(eVt),tVt={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"},nVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:tVt}))},rVt=m.forwardRef(nVt),iVt={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"},oVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:iVt}))},aVt=m.forwardRef(oVt),sVt={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"},lVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:sVt}))},cVt=m.forwardRef(lVt),uVt={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"},dVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:uVt}))},fVt=m.forwardRef(dVt),pVt={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"},hVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:pVt}))},lw=m.forwardRef(hVt),gVt={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"},mVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:gVt}))},GVe=m.forwardRef(mVt),vVt={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"},yVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:vVt}))},ST=m.forwardRef(yVt),_Vt={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"},bVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:_Vt}))},SVt=m.forwardRef(bVt),EVt={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"},CVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:EVt}))},wVt=m.forwardRef(CVt),xVt={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"},TVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:xVt}))},Rk=m.forwardRef(TVt),OVt={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"},RVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:OVt}))},IVt=m.forwardRef(RVt),NVt={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"},MVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:NVt}))},PVt=m.forwardRef(MVt),AVt={icon:function(n,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:n}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:n}}]}},name:"picture",theme:"twotone"},DVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:AVt}))},kVt=m.forwardRef(DVt),LVt={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"},$Vt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:LVt}))},Fde=m.forwardRef($Vt),FVt={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"},BVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:FVt}))},jVt=m.forwardRef(BVt),UVt={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"},HVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:UVt}))},zVt=m.forwardRef(HVt),VVt={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"},GVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:VVt}))},WVt=m.forwardRef(GVt),YVt={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"},qVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:YVt}))},KVt=m.forwardRef(qVt),XVt={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"},QVt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:XVt}))},ZVt=m.forwardRef(QVt),JVt={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"},eGt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:JVt}))},tGt=m.forwardRef(eGt),nGt={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"},rGt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:nGt}))},Bde=m.forwardRef(rGt),iGt={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"},oGt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:iGt}))},WVe=m.forwardRef(oGt),aGt={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"},sGt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:aGt}))},jde=m.forwardRef(sGt),lGt={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"},cGt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:lGt}))},uGt=m.forwardRef(cGt),dGt={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"},fGt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:dGt}))},pGt=m.forwardRef(fGt),hGt={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"},gGt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:hGt}))},iS=m.forwardRef(gGt),mGt={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"},vGt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:mGt}))},YVe=m.forwardRef(vGt),yGt={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"},_Gt=function(n,r){return m.createElement(er,ft({},n,{ref:r,icon:yGt}))},bGt=m.forwardRef(_Gt),SGt=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],qVe=m.forwardRef(function(e,n){var r=e.className,i=e.component,o=e.viewBox,a=e.spin,s=e.rotate,l=e.tabIndex,c=e.onClick,u=e.children,d=Xt(e,SGt),f=m.useRef(),p=yg(f,n);Bre(!!(i||u),"Should have `component` prop or `children`."),F7e(f);var h=m.useContext(I9),g=h.prefixCls,v=g===void 0?"anticon":g,y=h.rootClassName,_=Ce(y,v,fe({},"".concat(v,"-spin"),!!a&&!!i),r),S=Ce(fe({},"".concat(v,"-spin"),!!a)),b=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,E=ee(ee({},e2t),{},{className:S,style:b,viewBox:o});o||delete E.viewBox;var w=function(){return i?m.createElement(i,E,u):u?(Bre(!!o||m.Children.count(u)===1&&m.isValidElement(u)&&m.Children.only(u).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),m.createElement("svg",ft({},E,{viewBox:o}),u)):null},C=l;return C===void 0&&c&&(C=-1),m.createElement("span",ft({role:"img"},d,{ref:p,tabIndex:C,onClick:c,className:_}),w())});qVe.displayName="AntdIcon";var EGt=["type","children"],KVe=new Set;function CGt(e){return!!(typeof e=="string"&&e.length&&!KVe.has(e))}function tB(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e[n];if(CGt(r)){var i=document.createElement("script");i.setAttribute("src",r),i.setAttribute("data-namespace",r),e.length>n+1&&(i.onload=function(){tB(e,n+1)},i.onerror=function(){tB(e,n+1)}),KVe.add(r),document.body.appendChild(i)}}function XVe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.scriptUrl,r=e.extraCommonProps,i=r===void 0?{}:r;n&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(n)?tB(n.reverse()):tB([n]));var o=m.forwardRef(function(a,s){var l=a.type,c=a.children,u=Xt(a,EGt),d=null;return a.type&&(d=m.createElement("use",{xlinkHref:"#".concat(l)})),c&&(d=c),m.createElement(qVe,ft({},i,u,{ref:s}),d)});return o.displayName="Iconfont",o}const wGt=V.createElement(t_,null);function xGt(e){let{prefixCls:n,locale:r,onRefresh:i,statusRender:o,status:a}=e;const s=V.createElement(V.Fragment,null,V.createElement("p",{className:`${n}-expired`},r==null?void 0:r.expired),i&&V.createElement(qn,{type:"link",icon:V.createElement(ZVt,null),onClick:i},r==null?void 0:r.refresh)),l=V.createElement("p",{className:`${n}-scanned`},r==null?void 0:r.scanned),c={expired:s,loading:wGt,scanned:l};return(o??(f=>c[f.status]))({status:a,locale:r,onRefresh:i})}const TGt=e=>{const{componentCls:n,lineWidth:r,lineType:i,colorSplit:o}=e;return{[n]:Object.assign(Object.assign({},li(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${Ye(r)} ${i} ${o}`,position:"relative",overflow:"hidden",[`& > ${n}-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",[`& > ${n}-expired, & > ${n}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${n}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},OGt=e=>({QRCodeMaskBackgroundColor:new Gr(e.colorBgContainer).setA(.96).toRgbString()}),RGt=Yr("QRCode",e=>{const n=wr(e,{QRCodeTextColor:e.colorText});return TGt(n)},OGt);var IGt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const QVe=e=>{var n,r,i,o;const[,a]=Nl(),{value:s,type:l="canvas",icon:c="",size:u=160,iconSize:d,color:f=a.colorText,errorLevel:p="M",status:h="active",bordered:g=!0,onRefresh:v,style:y,className:_,rootClassName:S,prefixCls:b,bgColor:E="transparent",statusRender:w}=e,C=IGt(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:x}=m.useContext(Cn),T=x("qrcode",b),[R,O,M]=RGt(T),P={src:c,x:void 0,y:void 0,height:typeof d=="number"?d:(n=d==null?void 0:d.height)!==null&&n!==void 0?n:40,width:typeof d=="number"?d:(r=d==null?void 0:d.width)!==null&&r!==void 0?r:40,excavate:!0,crossOrigin:"anonymous"},k=Va(C,!0),$=Wr(C,Object.keys(k)),U=Object.assign({value:s,size:u,level:p,bgColor:E,fgColor:f,style:{width:y==null?void 0:y.width,height:y==null?void 0:y.height},imageSettings:c?P:void 0},k),[z]=Mu("QRCode");if(!s)return null;const D=Ce(T,_,S,O,M,{[`${T}-borderless`]:!g}),B=Object.assign(Object.assign({backgroundColor:E},y),{width:(i=y==null?void 0:y.width)!==null&&i!==void 0?i:u,height:(o=y==null?void 0:y.height)!==null&&o!==void 0?o:u});return R(V.createElement("div",Object.assign({},$,{className:D,style:B}),h!=="active"&&V.createElement("div",{className:`${T}-mask`},V.createElement(xGt,{prefixCls:T,locale:z,status:h,onRefresh:v,statusRender:w})),l==="canvas"?V.createElement(jVe,Object.assign({},U)):V.createElement(UVe,Object.assign({},U))))};function NGt(e,n){var r=e.disabled,i=e.prefixCls,o=e.character,a=e.characterRender,s=e.index,l=e.count,c=e.value,u=e.allowHalf,d=e.focused,f=e.onHover,p=e.onClick,h=function(w){f(w,s)},g=function(w){p(w,s)},v=function(w){w.keyCode===At.ENTER&&p(w,s)},y=s+1,_=new Set([i]);c===0&&s===0&&d?_.add("".concat(i,"-focused")):u&&c+.5>=y&&c<y?(_.add("".concat(i,"-half")),_.add("".concat(i,"-active")),d&&_.add("".concat(i,"-focused"))):(y<=c?_.add("".concat(i,"-full")):_.add("".concat(i,"-zero")),y===c&&d&&_.add("".concat(i,"-focused")));var S=typeof o=="function"?o(e):o,b=V.createElement("li",{className:Ce(Array.from(_)),ref:n},V.createElement("div",{onClick:r?null:g,onKeyDown:r?null:v,onMouseMove:r?null:h,role:"radio","aria-checked":c>s?"true":"false","aria-posinset":s+1,"aria-setsize":l,tabIndex:r?-1:0},V.createElement("div",{className:"".concat(i,"-first")},S),V.createElement("div",{className:"".concat(i,"-second")},S)));return a&&(b=a(b,e)),b}const MGt=V.forwardRef(NGt);function PGt(){var e=m.useRef({});function n(i){return e.current[i]}function r(i){return function(o){e.current[i]=o}}return[n,r]}function AGt(e){var n=e.pageXOffset,r="scrollLeft";if(typeof n!="number"){var i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function DGt(e){var n,r,i=e.ownerDocument,o=i.body,a=i&&i.documentElement,s=e.getBoundingClientRect();return n=s.left,r=s.top,n-=a.clientLeft||o.clientLeft||0,r-=a.clientTop||o.clientTop||0,{left:n,top:r}}function kGt(e){var n=DGt(e),r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=AGt(i),n.left}var LGt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function $Gt(e,n){var r=e.prefixCls,i=r===void 0?"rc-rate":r,o=e.className,a=e.defaultValue,s=e.value,l=e.count,c=l===void 0?5:l,u=e.allowHalf,d=u===void 0?!1:u,f=e.allowClear,p=f===void 0?!0:f,h=e.keyboard,g=h===void 0?!0:h,v=e.character,y=v===void 0?"★":v,_=e.characterRender,S=e.disabled,b=e.direction,E=b===void 0?"ltr":b,w=e.tabIndex,C=w===void 0?0:w,x=e.autoFocus,T=e.onHoverChange,R=e.onChange,O=e.onFocus,M=e.onBlur,P=e.onKeyDown,k=e.onMouseLeave,$=Xt(e,LGt),U=PGt(),z=ke(U,2),D=z[0],B=z[1],Y=V.useRef(null),q=function(){if(!S){var ae;(ae=Y.current)===null||ae===void 0||ae.focus()}};V.useImperativeHandle(n,function(){return{focus:q,blur:function(){if(!S){var ae;(ae=Y.current)===null||ae===void 0||ae.blur()}}}});var K=dr(a||0,{value:s}),H=ke(K,2),G=H[0],Q=H[1],le=dr(null),Z=ke(le,2),j=Z[0],F=Z[1],te=function(ae,Se){var xe=E==="rtl",ue=ae+1;if(d){var Me=D(ae),$e=kGt(Me),ge=Me.clientWidth;(xe&&Se-$e>ge/2||!xe&&Se-$e<ge/2)&&(ue-=.5)}return ue},oe=function(ae){Q(ae),R==null||R(ae)},de=V.useState(!1),pe=ke(de,2),me=pe[0],ve=pe[1],he=function(){ve(!0),O==null||O()},be=function(){ve(!1),M==null||M()},we=V.useState(null),De=ke(we,2),Ae=De[0],Ee=De[1],Re=function(ae,Se){var xe=te(Se,ae.pageX);xe!==j&&(Ee(xe),F(null)),T==null||T(xe)},Te=function(ae){S||(Ee(null),F(null),T==null||T(void 0)),ae&&(k==null||k(ae))},Oe=function(ae,Se){var xe=te(Se,ae.pageX),ue=!1;p&&(ue=xe===G),Te(),oe(ue?0:xe),F(ue?xe:null)},Ne=function(ae){var Se=ae.keyCode,xe=E==="rtl",ue=d?.5:1;g&&(Se===At.RIGHT&&G<c&&!xe?(oe(G+ue),ae.preventDefault()):Se===At.LEFT&&G>0&&!xe||Se===At.RIGHT&&G>0&&xe?(oe(G-ue),ae.preventDefault()):Se===At.LEFT&&G<c&&xe&&(oe(G+ue),ae.preventDefault())),P==null||P(ae)};V.useEffect(function(){x&&!S&&q()},[]);var je=new Array(c).fill(0).map(function(J,ae){return V.createElement(MGt,{ref:B(ae),index:ae,count:c,disabled:S,prefixCls:"".concat(i,"-star"),allowHalf:d,value:Ae===null?G:Ae,onClick:Oe,onHover:Re,key:J||ae,character:y,characterRender:_,focused:me})}),ne=Ce(i,o,fe(fe({},"".concat(i,"-disabled"),S),"".concat(i,"-rtl"),E==="rtl"));return V.createElement("ul",ft({className:ne,onMouseLeave:Te,tabIndex:S?-1:C,onFocus:S?null:he,onBlur:S?null:be,onKeyDown:S?null:Ne,ref:Y,role:"radiogroup"},Va($,{aria:!0,data:!0,attr:!0})),je)}const FGt=V.forwardRef($Gt),BGt=e=>{const{componentCls:n}=e;return{[`${n}-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:`${Ye(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 ${n}-star-first, &-half ${n}-star-second`]:{opacity:1},[`&-half ${n}-star-first, &-full ${n}-star-second`]:{color:"inherit"}}}},jGt=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),UGt=e=>{const{componentCls:n}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${n} ${n}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),BGt(e)),jGt(e))}},HGt=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),zGt=Yr("Rate",e=>{const n=wr(e,{});return[UGt(n)]},HGt);var VGt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const bwe=m.forwardRef((e,n)=>{const{prefixCls:r,className:i,rootClassName:o,style:a,tooltips:s,character:l=m.createElement(uGt,null),disabled:c}=e,u=VGt(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),d=(w,C)=>{let{index:x}=C;return s?m.createElement(Ef,{title:s[x]},w):w},{getPrefixCls:f,direction:p,rate:h}=m.useContext(Cn),g=f("rate",r),[v,y,_]=zGt(g),S=Object.assign(Object.assign({},h==null?void 0:h.style),a),b=m.useContext(xs),E=c??b;return v(m.createElement(FGt,Object.assign({ref:n,character:l,characterRender:d,disabled:E},u,{className:Ce(i,o,y,_,h==null?void 0:h.className),style:S,prefixCls:g,direction:p})))}),GGt=()=>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"}))),WGt=()=>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)"}))),YGt=e=>{const{componentCls:n,lineHeightHeading3:r,iconCls:i,padding:o,paddingXL:a,paddingXS:s,paddingLG:l,marginXS:c,lineHeight:u}=e;return{[n]:{padding:`${Ye(e.calc(l).mul(2).equal())} ${Ye(a)}`,"&-rtl":{direction:"rtl"}},[`${n} ${n}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${n} ${n}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${i}`]:{fontSize:e.iconFontSize}},[`${n} ${n}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:r,marginBlock:c,textAlign:"center"},[`${n} ${n}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:u,textAlign:"center"},[`${n} ${n}-content`]:{marginTop:l,padding:`${Ye(l)} ${Ye(e.calc(o).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${n} ${n}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:s,"&:last-child":{marginInlineEnd:0}}}}},qGt=e=>{const{componentCls:n,iconCls:r}=e;return{[`${n}-success ${n}-icon > ${r}`]:{color:e.resultSuccessIconColor},[`${n}-error ${n}-icon > ${r}`]:{color:e.resultErrorIconColor},[`${n}-info ${n}-icon > ${r}`]:{color:e.resultInfoIconColor},[`${n}-warning ${n}-icon > ${r}`]:{color:e.resultWarningIconColor}}},KGt=e=>[YGt(e),qGt(e)],XGt=e=>KGt(e),QGt=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),ZGt=Yr("Result",e=>{const n=e.colorInfo,r=e.colorError,i=e.colorSuccess,o=e.colorWarning,a=wr(e,{resultInfoIconColor:n,resultErrorIconColor:r,resultSuccessIconColor:i,resultWarningIconColor:o,imageWidth:250,imageHeight:295});return[XGt(a)]},QGt),JGt=()=>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"}))),eWt={success:tw,error:tv,info:eS,warning:bGt},Ik={404:GGt,500:WGt,403:JGt},tWt=Object.keys(Ik),nWt=e=>{let{prefixCls:n,icon:r,status:i}=e;const o=Ce(`${n}-icon`);if(tWt.includes(`${i}`)){const s=Ik[i];return m.createElement("div",{className:`${o} ${n}-image`},m.createElement(s,null))}const a=m.createElement(eWt[i]);return r===null||r===!1?null:m.createElement("div",{className:o},r||a)},rWt=e=>{let{prefixCls:n,extra:r}=e;return r?m.createElement("div",{className:`${n}-extra`},r):null},Nk=e=>{let{prefixCls:n,className:r,rootClassName:i,subTitle:o,title:a,style:s,children:l,status:c="info",icon:u,extra:d}=e;const{getPrefixCls:f,direction:p,result:h}=m.useContext(Cn),g=f("result",n),[v,y,_]=ZGt(g),S=Ce(g,`${g}-${c}`,r,h==null?void 0:h.className,i,{[`${g}-rtl`]:p==="rtl"},y,_),b=Object.assign(Object.assign({},h==null?void 0:h.style),s);return v(m.createElement("div",{className:S,style:b},m.createElement(nWt,{prefixCls:g,status:c,icon:u}),m.createElement("div",{className:`${g}-title`},a),o&&m.createElement("div",{className:`${g}-subtitle`},o),m.createElement(rWt,{prefixCls:g,extra:d}),l&&m.createElement("div",{className:`${g}-content`},l)))};Nk.PRESENTED_IMAGE_403=Ik[403];Nk.PRESENTED_IMAGE_404=Ik[404];Nk.PRESENTED_IMAGE_500=Ik[500];var iWt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ZVe=m.forwardRef(function(e,n){var r,i=e.prefixCls,o=i===void 0?"rc-switch":i,a=e.className,s=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,h=e.onChange,g=e.onKeyDown,v=Xt(e,iWt),y=dr(!1,{value:s,defaultValue:l}),_=ke(y,2),S=_[0],b=_[1];function E(T,R){var O=S;return c||(O=T,b(O),h==null||h(O,R)),O}function w(T){T.which===At.LEFT?E(!1,T):T.which===At.RIGHT&&E(!0,T),g==null||g(T)}function C(T){var R=E(!S,T);p==null||p(R,T)}var x=Ce(o,a,(r={},fe(r,"".concat(o,"-checked"),S),fe(r,"".concat(o,"-disabled"),c),r));return m.createElement("button",ft({},v,{type:"button",role:"switch","aria-checked":S,disabled:c,className:x,ref:n,onKeyDown:w,onClick:C}),u,m.createElement("span",{className:"".concat(o,"-inner")},m.createElement("span",{className:"".concat(o,"-inner-checked")},d),m.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});ZVe.displayName="Switch";const oWt=e=>{const{componentCls:n,trackHeightSM:r,trackPadding:i,trackMinWidthSM:o,innerMinMarginSM:a,innerMaxMarginSM:s,handleSizeSM:l,calc:c}=e,u=`${n}-inner`,d=Ye(c(l).add(c(i).mul(2)).equal()),f=Ye(c(s).mul(2).equal());return{[n]:{[`&${n}-small`]:{minWidth:o,height:r,lineHeight:Ye(r),[`${n}-inner`]:{paddingInlineStart:s,paddingInlineEnd:a,[`${u}-checked, ${u}-unchecked`]:{minHeight:r},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${n}-handle`]:{width:l,height:l},[`${n}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${n}-checked`]:{[`${n}-inner`]:{paddingInlineStart:a,paddingInlineEnd:s,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${n}-handle`]:{insetInlineStart:`calc(100% - ${Ye(c(l).add(i).equal())})`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${n}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},aWt=e=>{const{componentCls:n,handleSize:r,calc:i}=e;return{[n]:{[`${n}-loading-icon${e.iconCls}`]:{position:"relative",top:i(i(r).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${n}-checked ${n}-loading-icon`]:{color:e.switchColor}}}},sWt=e=>{const{componentCls:n,trackPadding:r,handleBg:i,handleShadow:o,handleSize:a,calc:s}=e,l=`${n}-handle`;return{[n]:{[l]:{position:"absolute",top:r,insetInlineStart:r,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:i,borderRadius:s(a).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${n}-checked ${l}`]:{insetInlineStart:`calc(100% - ${Ye(s(a).add(r).equal())})`},[`&:not(${n}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${n}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},lWt=e=>{const{componentCls:n,trackHeight:r,trackPadding:i,innerMinMargin:o,innerMaxMargin:a,handleSize:s,calc:l}=e,c=`${n}-inner`,u=Ye(l(s).add(l(i).mul(2)).equal()),d=Ye(l(a).mul(2).equal());return{[n]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:a,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:r},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${n}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(i).mul(2).equal(),marginInlineEnd:l(i).mul(-1).mul(2).equal()}},[`&${n}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(i).mul(-1).mul(2).equal(),marginInlineEnd:l(i).mul(2).equal()}}}}}},cWt=e=>{const{componentCls:n,trackHeight:r,trackMinWidth:i}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},li(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:i,height:r,lineHeight:Ye(r),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${n}-disabled)`]:{background:e.colorTextTertiary}}),Rp(e)),{[`&${n}-checked`]:{background:e.switchColor,[`&:hover:not(${n}-disabled)`]:{background:e.colorPrimaryHover}},[`&${n}-loading, &${n}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${n}-rtl`]:{direction:"rtl"}})}},uWt=e=>{const{fontSize:n,lineHeight:r,controlHeight:i,colorWhite:o}=e,a=n*r,s=i/2,l=2,c=a-l*2,u=s-l*2;return{trackHeight:a,trackHeightSM:s,trackMinWidth:c*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:o,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new Gr("#00230b").setA(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}},dWt=Yr("Switch",e=>{const n=wr(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[cWt(n),lWt(n),sWt(n),aWt(n),oWt(n)]},uWt);var fWt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const pWt=m.forwardRef((e,n)=>{const{prefixCls:r,size:i,disabled:o,loading:a,className:s,rootClassName:l,style:c,checked:u,value:d,defaultChecked:f,defaultValue:p,onChange:h}=e,g=fWt(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,y]=dr(!1,{value:u??d,defaultValue:f??p}),{getPrefixCls:_,direction:S,switch:b}=m.useContext(Cn),E=m.useContext(xs),w=(o??E)||a,C=_("switch",r),x=m.createElement("div",{className:`${C}-handle`},a&&m.createElement(Mm,{className:`${C}-loading-icon`})),[T,R,O]=dWt(C),M=Xs(i),P=Ce(b==null?void 0:b.className,{[`${C}-small`]:M==="small",[`${C}-loading`]:a,[`${C}-rtl`]:S==="rtl"},s,l,R,O),k=Object.assign(Object.assign({},b==null?void 0:b.style),c),$=function(){y(arguments.length<=0?void 0:arguments[0]),h==null||h.apply(void 0,arguments)};return T(m.createElement($9,{component:"Switch"},m.createElement(ZVe,Object.assign({},g,{checked:v,onChange:$,prefixCls:C,className:P,style:k,disabled:w,ref:n,loadingIcon:x}))))}),sC=pWt;sC.__ANT_SWITCH=!0;var Ude=m.createContext(null),JVe=m.createContext({}),hWt=function(n){for(var r=n.prefixCls,i=n.level,o=n.isStart,a=n.isEnd,s="".concat(r,"-indent-unit"),l=[],c=0;c<i;c+=1)l.push(m.createElement("span",{key:c,className:Ce(s,fe(fe({},"".concat(s,"-start"),o[c]),"".concat(s,"-end"),a[c]))}));return m.createElement("span",{"aria-hidden":"true",className:"".concat(r,"-indent")},l)};const gWt=m.memo(hWt);var mWt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Swe="open",Ewe="close",vWt="---",nB=function(n){var r,i,o=n.eventKey,a=n.className,s=n.style,l=n.dragOver,c=n.dragOverGapTop,u=n.dragOverGapBottom,d=n.isLeaf,f=n.isStart,p=n.isEnd,h=n.expanded,g=n.selected,v=n.checked,y=n.halfChecked,_=n.loading,S=n.domRef,b=n.active,E=n.data,w=n.onMouseMove,C=n.selectable,x=Xt(n,mWt),T=V.useContext(Ude),R=V.useContext(JVe),O=V.useRef(null),M=V.useState(!1),P=ke(M,2),k=P[0],$=P[1],U=V.useMemo(function(){var xe;return!!(T.disabled||n.disabled||(xe=R.nodeDisabled)!==null&&xe!==void 0&&xe.call(R,E))},[T.disabled,n.disabled,R.nodeDisabled,E]),z=V.useMemo(function(){return!T.checkable||n.checkable===!1?!1:T.checkable},[T.checkable,n.checkable]),D=function(ue){U||T.onNodeSelect(ue,tl(n))},B=function(ue){U||!z||n.disableCheckbox||T.onNodeCheck(ue,tl(n),!v)},Y=V.useMemo(function(){return typeof C=="boolean"?C:T.selectable},[C,T.selectable]),q=function(ue){T.onNodeClick(ue,tl(n)),Y?D(ue):B(ue)},K=function(ue){T.onNodeDoubleClick(ue,tl(n))},H=function(ue){T.onNodeMouseEnter(ue,tl(n))},G=function(ue){T.onNodeMouseLeave(ue,tl(n))},Q=function(ue){T.onNodeContextMenu(ue,tl(n))},le=V.useMemo(function(){return!!(T.draggable&&(!T.draggable.nodeDraggable||T.draggable.nodeDraggable(E)))},[T.draggable,E]),Z=function(ue){ue.stopPropagation(),$(!0),T.onNodeDragStart(ue,n);try{ue.dataTransfer.setData("text/plain","")}catch{}},j=function(ue){ue.preventDefault(),ue.stopPropagation(),T.onNodeDragEnter(ue,n)},F=function(ue){ue.preventDefault(),ue.stopPropagation(),T.onNodeDragOver(ue,n)},te=function(ue){ue.stopPropagation(),T.onNodeDragLeave(ue,n)},oe=function(ue){ue.stopPropagation(),$(!1),T.onNodeDragEnd(ue,n)},de=function(ue){ue.preventDefault(),ue.stopPropagation(),$(!1),T.onNodeDrop(ue,n)},pe=function(ue){_||T.onNodeExpand(ue,tl(n))},me=V.useMemo(function(){var xe=rd(T.keyEntities,o)||{},ue=xe.children;return!!(ue||[]).length},[T.keyEntities,o]),ve=V.useMemo(function(){return d===!1?!1:d||!T.loadData&&!me||T.loadData&&n.loaded&&!me},[d,T.loadData,me,n.loaded]);V.useEffect(function(){_||typeof T.loadData=="function"&&h&&!ve&&!n.loaded&&T.onNodeLoad(tl(n))},[_,T.loadData,T.onNodeLoad,h,ve,n]);var he=V.useMemo(function(){var xe;return(xe=T.draggable)!==null&&xe!==void 0&&xe.icon?V.createElement("span",{className:"".concat(T.prefixCls,"-draggable-icon")},T.draggable.icon):null},[T.draggable]),be=function(ue){var Me=n.switcherIcon||T.switcherIcon;return typeof Me=="function"?Me(ee(ee({},n),{},{isLeaf:ue})):Me},we=function(){if(ve){var ue=be(!0);return ue!==!1?V.createElement("span",{className:Ce("".concat(T.prefixCls,"-switcher"),"".concat(T.prefixCls,"-switcher-noop"))},ue):null}var Me=be(!1);return Me!==!1?V.createElement("span",{onClick:pe,className:Ce("".concat(T.prefixCls,"-switcher"),"".concat(T.prefixCls,"-switcher_").concat(h?Swe:Ewe))},Me):null},De=V.useMemo(function(){if(!z)return null;var xe=typeof z!="boolean"?z:null;return V.createElement("span",{className:Ce("".concat(T.prefixCls,"-checkbox"),fe(fe(fe({},"".concat(T.prefixCls,"-checkbox-checked"),v),"".concat(T.prefixCls,"-checkbox-indeterminate"),!v&&y),"".concat(T.prefixCls,"-checkbox-disabled"),U||n.disableCheckbox)),onClick:B,role:"checkbox","aria-checked":y?"mixed":v,"aria-disabled":U||n.disableCheckbox,"aria-label":"Select ".concat(typeof n.title=="string"?n.title:"tree node")},xe)},[z,v,y,U,n.disableCheckbox,n.title]),Ae=V.useMemo(function(){return ve?null:h?Swe:Ewe},[ve,h]),Ee=V.useMemo(function(){return V.createElement("span",{className:Ce("".concat(T.prefixCls,"-iconEle"),"".concat(T.prefixCls,"-icon__").concat(Ae||"docu"),fe({},"".concat(T.prefixCls,"-icon_loading"),_))})},[T.prefixCls,Ae,_]),Re=V.useMemo(function(){var xe=!!T.draggable,ue=!n.disabled&&xe&&T.dragOverNodeKey===o;return ue?T.dropIndicatorRender({dropPosition:T.dropPosition,dropLevelOffset:T.dropLevelOffset,indent:T.indent,prefixCls:T.prefixCls,direction:T.direction}):null},[T.dropPosition,T.dropLevelOffset,T.indent,T.prefixCls,T.direction,T.draggable,T.dragOverNodeKey,T.dropIndicatorRender]),Te=V.useMemo(function(){var xe=n.title,ue=xe===void 0?vWt:xe,Me="".concat(T.prefixCls,"-node-content-wrapper"),$e;if(T.showIcon){var ge=n.icon||T.icon;$e=ge?V.createElement("span",{className:Ce("".concat(T.prefixCls,"-iconEle"),"".concat(T.prefixCls,"-icon__customize"))},typeof ge=="function"?ge(n):ge):Ee}else T.loadData&&_&&($e=Ee);var Ve;return typeof ue=="function"?Ve=ue(E):T.titleRender?Ve=T.titleRender(E):Ve=ue,V.createElement("span",{ref:O,title:typeof ue=="string"?ue:"",className:Ce(Me,"".concat(Me,"-").concat(Ae||"normal"),fe({},"".concat(T.prefixCls,"-node-selected"),!U&&(g||k))),onMouseEnter:H,onMouseLeave:G,onContextMenu:Q,onClick:q,onDoubleClick:K},$e,V.createElement("span",{className:"".concat(T.prefixCls,"-title")},Ve),Re)},[T.prefixCls,T.showIcon,n,T.icon,Ee,T.titleRender,E,Ae,H,G,Q,q,K]),Oe=Va(x,{aria:!0,data:!0}),Ne=rd(T.keyEntities,o)||{},je=Ne.level,ne=p[p.length-1],J=!U&&le,ae=T.draggingNodeKey===o,Se=C!==void 0?{"aria-selected":!!C}:void 0;return V.createElement("div",ft({ref:S,role:"treeitem","aria-expanded":d?void 0:h,className:Ce(a,"".concat(T.prefixCls,"-treenode"),(i={},fe(fe(fe(fe(fe(fe(fe(fe(fe(fe(i,"".concat(T.prefixCls,"-treenode-disabled"),U),"".concat(T.prefixCls,"-treenode-switcher-").concat(h?"open":"close"),!d),"".concat(T.prefixCls,"-treenode-checkbox-checked"),v),"".concat(T.prefixCls,"-treenode-checkbox-indeterminate"),y),"".concat(T.prefixCls,"-treenode-selected"),g),"".concat(T.prefixCls,"-treenode-loading"),_),"".concat(T.prefixCls,"-treenode-active"),b),"".concat(T.prefixCls,"-treenode-leaf-last"),ne),"".concat(T.prefixCls,"-treenode-draggable"),le),"dragging",ae),fe(fe(fe(fe(fe(fe(fe(i,"drop-target",T.dropTargetKey===o),"drop-container",T.dropContainerKey===o),"drag-over",!U&&l),"drag-over-gap-top",!U&&c),"drag-over-gap-bottom",!U&&u),"filter-node",(r=T.filterTreeNode)===null||r===void 0?void 0:r.call(T,tl(n))),"".concat(T.prefixCls,"-treenode-leaf"),ve))),style:s,draggable:J,onDragStart:J?Z:void 0,onDragEnter:le?j:void 0,onDragOver:le?F:void 0,onDragLeave:le?te:void 0,onDrop:le?de:void 0,onDragEnd:le?oe:void 0,onMouseMove:w},Se,Oe),V.createElement(gWt,{prefixCls:T.prefixCls,level:je,isStart:f,isEnd:p}),he,we(),De,Te)};nB.isTreeNode=1;function Tv(e,n){if(!e)return[];var r=e.slice(),i=r.indexOf(n);return i>=0&&r.splice(i,1),r}function H_(e,n){var r=(e||[]).slice();return r.indexOf(n)===-1&&r.push(n),r}function Hde(e){return e.split("-")}function yWt(e,n){var r=[],i=rd(n,e);function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(s){var l=s.key,c=s.children;r.push(l),o(c)})}return o(i.children),r}function _Wt(e){if(e.parent){var n=Hde(e.pos);return Number(n[n.length-1])===e.parent.children.length-1}return!1}function bWt(e){var n=Hde(e.pos);return Number(n[n.length-1])===0}function Cwe(e,n,r,i,o,a,s,l,c,u){var d,f=e.clientX,p=e.clientY,h=e.target.getBoundingClientRect(),g=h.top,v=h.height,y=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),_=(y-12)/i,S=c.filter(function(z){var D;return(D=l[z])===null||D===void 0||(D=D.children)===null||D===void 0?void 0:D.length}),b=rd(l,r.eventKey);if(p<g+v/2){var E=s.findIndex(function(z){return z.key===b.key}),w=E<=0?0:E-1,C=s[w].key;b=rd(l,C)}var x=b.key,T=b,R=b.key,O=0,M=0;if(!S.includes(x))for(var P=0;P<_&&_Wt(b);P+=1)b=b.parent,M+=1;var k=n.data,$=b.node,U=!0;return bWt(b)&&b.level===0&&p<g+v/2&&a({dragNode:k,dropNode:$,dropPosition:-1})&&b.key===r.eventKey?O=-1:(T.children||[]).length&&S.includes(R)?a({dragNode:k,dropNode:$,dropPosition:0})?O=0:U=!1:M===0?_>-1.5?a({dragNode:k,dropNode:$,dropPosition:1})?O=1:U=!1:a({dragNode:k,dropNode:$,dropPosition:0})?O=0:a({dragNode:k,dropNode:$,dropPosition:1})?O=1:U=!1:a({dragNode:k,dropNode:$,dropPosition:1})?O=1:U=!1,{dropPosition:O,dropLevelOffset:M,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:R,dropContainerKey:O===0?null:((d=b.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:U}}function wwe(e,n){if(e){var r=n.multiple;return r?e.slice():e.length?[e[0]]:e}}function bq(e){if(!e)return null;var n;if(Array.isArray(e))n={checkedKeys:e,halfCheckedKeys:void 0};else if(cn(e)==="object")n={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return qi(!1,"`checkedKeys` is not an array or an object"),null;return n}function xwe(e,n){var r=new Set;function i(o){if(!r.has(o)){var a=rd(n,o);if(a){r.add(o);var s=a.parent,l=a.node;l.disabled||s&&i(s.key)}}}return(e||[]).forEach(function(o){i(o)}),Tt(r)}var SWt=function(n){var r=n.dropPosition,i=n.dropLevelOffset,o=n.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(r){case-1:a.top=0,a.left=-i*o;break;case 1:a.bottom=0,a.left=-i*o;break;case 0:a.bottom=0,a.left=o;break}return V.createElement("div",{style:a})};function eGe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function EWt(e,n){var r=m.useState(!1),i=ke(r,2),o=i[0],a=i[1];ti(function(){if(o)return e(),function(){n()}},[o]),ti(function(){return a(!0),function(){a(!1)}},[])}var CWt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],wWt=m.forwardRef(function(e,n){var r=e.className,i=e.style,o=e.motion,a=e.motionNodes,s=e.motionType,l=e.onMotionStart,c=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=Xt(e,CWt),p=m.useState(!0),h=ke(p,2),g=h[0],v=h[1],y=m.useContext(Ude),_=y.prefixCls,S=a&&s!=="hide";ti(function(){a&&S!==g&&v(S)},[a]);var b=function(){a&&l()},E=m.useRef(!1),w=function(){a&&!E.current&&(E.current=!0,c())};EWt(b,w);var C=function(T){S===T&&w()};return a?m.createElement(Ws,ft({ref:n,visible:g},o,{motionAppear:s==="show",onVisibleChanged:C}),function(x,T){var R=x.className,O=x.style;return m.createElement("div",{ref:T,className:Ce("".concat(_,"-treenode-motion"),R),style:O},a.map(function(M){var P=Object.assign({},(eGe(M.data),M.data)),k=M.title,$=M.key,U=M.isStart,z=M.isEnd;delete P.children;var D=eP($,d);return m.createElement(nB,ft({},P,D,{title:k,active:u,data:M.data,key:$,isStart:U,isEnd:z}))}))}):m.createElement(nB,ft({domRef:n,className:r,style:i},f,{active:u}))});function xWt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=e.length,i=n.length;if(Math.abs(r-i)!==1)return{add:!1,key:null};function o(a,s){var l=new Map;a.forEach(function(u){l.set(u,!0)});var c=s.filter(function(u){return!l.has(u)});return c.length===1?c[0]:null}return r<i?{add:!0,key:o(e,n)}:{add:!1,key:o(n,e)}}function Twe(e,n,r){var i=e.findIndex(function(l){return l.key===r}),o=e[i+1],a=n.findIndex(function(l){return l.key===r});if(o){var s=n.findIndex(function(l){return l.key===o.key});return n.slice(a+1,s)}return n.slice(a+1)}var TWt=["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"],Owe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},OWt=function(){},lC="RC_TREE_MOTION_".concat(Math.random()),wie={key:lC},tGe={key:lC,level:0,index:0,pos:"0",node:wie,nodes:[wie]},Rwe={parent:null,children:[],pos:tGe.pos,data:wie,title:null,key:lC,isStart:[],isEnd:[]};function Iwe(e,n,r,i){return n===!1||!r?e:e.slice(0,Math.ceil(r/i)+1)}function Nwe(e){var n=e.key,r=e.pos;return Ek(n,r)}function RWt(e){for(var n=String(e.data.key),r=e;r.parent;)r=r.parent,n="".concat(r.data.key," > ").concat(n);return n}var IWt=m.forwardRef(function(e,n){var r=e.prefixCls,i=e.data;e.selectable,e.checkable;var o=e.expandedKeys,a=e.selectedKeys,s=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,p=e.dragging,h=e.dragOverNodeKey,g=e.dropPosition,v=e.motion,y=e.height,_=e.itemHeight,S=e.virtual,b=e.scrollWidth,E=e.focusable,w=e.activeItem,C=e.focused,x=e.tabIndex,T=e.onKeyDown,R=e.onFocus,O=e.onBlur,M=e.onActiveChange,P=e.onListChangeStart,k=e.onListChangeEnd,$=Xt(e,TWt),U=m.useRef(null),z=m.useRef(null);m.useImperativeHandle(n,function(){return{scrollTo:function(Te){U.current.scrollTo(Te)},getIndentWidth:function(){return z.current.offsetWidth}}});var D=m.useState(o),B=ke(D,2),Y=B[0],q=B[1],K=m.useState(i),H=ke(K,2),G=H[0],Q=H[1],le=m.useState(i),Z=ke(le,2),j=Z[0],F=Z[1],te=m.useState([]),oe=ke(te,2),de=oe[0],pe=oe[1],me=m.useState(null),ve=ke(me,2),he=ve[0],be=ve[1],we=m.useRef(i);we.current=i;function De(){var Re=we.current;Q(Re),F(Re),pe([]),be(null),k()}ti(function(){q(o);var Re=xWt(Y,o);if(Re.key!==null)if(Re.add){var Te=G.findIndex(function(ae){var Se=ae.key;return Se===Re.key}),Oe=Iwe(Twe(G,i,Re.key),S,y,_),Ne=G.slice();Ne.splice(Te+1,0,Rwe),F(Ne),pe(Oe),be("show")}else{var je=i.findIndex(function(ae){var Se=ae.key;return Se===Re.key}),ne=Iwe(Twe(i,G,Re.key),S,y,_),J=i.slice();J.splice(je+1,0,Rwe),F(J),pe(ne),be("hide")}else G!==i&&(Q(i),F(i))},[o,i]),m.useEffect(function(){p||De()},[p]);var Ae=v?j:i,Ee={expandedKeys:o,selectedKeys:a,loadedKeys:l,loadingKeys:c,checkedKeys:s,halfCheckedKeys:u,dragOverNodeKey:h,dropPosition:g,keyEntities:d};return m.createElement(m.Fragment,null,C&&w&&m.createElement("span",{style:Owe,"aria-live":"assertive"},RWt(w)),m.createElement("div",null,m.createElement("input",{style:Owe,disabled:E===!1||f,tabIndex:E!==!1?x:null,onKeyDown:T,onFocus:R,onBlur:O,value:"",onChange:OWt,"aria-label":"for screen reader"})),m.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},m.createElement("div",{className:"".concat(r,"-indent")},m.createElement("div",{ref:z,className:"".concat(r,"-indent-unit")}))),m.createElement(Gue,ft({},$,{data:Ae,itemKey:Nwe,height:y,fullHeight:!1,virtual:S,itemHeight:_,scrollWidth:b,prefixCls:"".concat(r,"-list"),ref:U,role:"tree",onVisibleChange:function(Te){Te.every(function(Oe){return Nwe(Oe)!==lC})&&De()}}),function(Re){var Te=Re.pos,Oe=Object.assign({},(eGe(Re.data),Re.data)),Ne=Re.title,je=Re.key,ne=Re.isStart,J=Re.isEnd,ae=Ek(je,Te);delete Oe.key,delete Oe.children;var Se=eP(ae,Ee);return m.createElement(wWt,ft({},Oe,Se,{title:Ne,active:!!w&&je===w.key,pos:Te,data:Re.data,isStart:ne,isEnd:J,motion:v,motionNodes:je===lC?de:null,motionType:he,onMotionStart:P,onMotionEnd:De,treeNodeRequiredProps:Ee,onMouseMove:function(){M(null)}}))}))}),NWt=10,zde=function(e){Kc(r,e);var n=Nu(r);function r(){var i;Ki(this,r);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return i=n.call.apply(n,[this].concat(a)),fe(Tn(i),"destroyed",!1),fe(Tn(i),"delayedDragEnterLogic",void 0),fe(Tn(i),"loadingRetryTimes",{}),fe(Tn(i),"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:Y8()}),fe(Tn(i),"dragStartMousePosition",null),fe(Tn(i),"dragNodeProps",null),fe(Tn(i),"currentMouseOverDroppableNodeKey",null),fe(Tn(i),"listRef",m.createRef()),fe(Tn(i),"onNodeDragStart",function(l,c){var u=i.state,d=u.expandedKeys,f=u.keyEntities,p=i.props.onDragStart,h=c.eventKey;i.dragNodeProps=c,i.dragStartMousePosition={x:l.clientX,y:l.clientY};var g=Tv(d,h);i.setState({draggingNodeKey:h,dragChildrenKeys:yWt(h,f),indent:i.listRef.current.getIndentWidth()}),i.setExpandedKeys(g),window.addEventListener("dragend",i.onWindowDragEnd),p==null||p({event:l,node:tl(c)})}),fe(Tn(i),"onNodeDragEnter",function(l,c){var u=i.state,d=u.expandedKeys,f=u.keyEntities,p=u.dragChildrenKeys,h=u.flattenNodes,g=u.indent,v=i.props,y=v.onDragEnter,_=v.onExpand,S=v.allowDrop,b=v.direction,E=c.pos,w=c.eventKey;if(i.currentMouseOverDroppableNodeKey!==w&&(i.currentMouseOverDroppableNodeKey=w),!i.dragNodeProps){i.resetDragState();return}var C=Cwe(l,i.dragNodeProps,c,g,i.dragStartMousePosition,S,h,f,d,b),x=C.dropPosition,T=C.dropLevelOffset,R=C.dropTargetKey,O=C.dropContainerKey,M=C.dropTargetPos,P=C.dropAllowed,k=C.dragOverNodeKey;if(p.includes(R)||!P){i.resetDragState();return}if(i.delayedDragEnterLogic||(i.delayedDragEnterLogic={}),Object.keys(i.delayedDragEnterLogic).forEach(function($){clearTimeout(i.delayedDragEnterLogic[$])}),i.dragNodeProps.eventKey!==c.eventKey&&(l.persist(),i.delayedDragEnterLogic[E]=window.setTimeout(function(){if(i.state.draggingNodeKey!==null){var $=Tt(d),U=rd(f,c.eventKey);U&&(U.children||[]).length&&($=H_(d,c.eventKey)),i.props.hasOwnProperty("expandedKeys")||i.setExpandedKeys($),_==null||_($,{node:tl(c),expanded:!0,nativeEvent:l.nativeEvent})}},800)),i.dragNodeProps.eventKey===R&&T===0){i.resetDragState();return}i.setState({dragOverNodeKey:k,dropPosition:x,dropLevelOffset:T,dropTargetKey:R,dropContainerKey:O,dropTargetPos:M,dropAllowed:P}),y==null||y({event:l,node:tl(c),expandedKeys:d})}),fe(Tn(i),"onNodeDragOver",function(l,c){var u=i.state,d=u.dragChildrenKeys,f=u.flattenNodes,p=u.keyEntities,h=u.expandedKeys,g=u.indent,v=i.props,y=v.onDragOver,_=v.allowDrop,S=v.direction;if(i.dragNodeProps){var b=Cwe(l,i.dragNodeProps,c,g,i.dragStartMousePosition,_,f,p,h,S),E=b.dropPosition,w=b.dropLevelOffset,C=b.dropTargetKey,x=b.dropContainerKey,T=b.dropTargetPos,R=b.dropAllowed,O=b.dragOverNodeKey;d.includes(C)||!R||(i.dragNodeProps.eventKey===C&&w===0?i.state.dropPosition===null&&i.state.dropLevelOffset===null&&i.state.dropTargetKey===null&&i.state.dropContainerKey===null&&i.state.dropTargetPos===null&&i.state.dropAllowed===!1&&i.state.dragOverNodeKey===null||i.resetDragState():E===i.state.dropPosition&&w===i.state.dropLevelOffset&&C===i.state.dropTargetKey&&x===i.state.dropContainerKey&&T===i.state.dropTargetPos&&R===i.state.dropAllowed&&O===i.state.dragOverNodeKey||i.setState({dropPosition:E,dropLevelOffset:w,dropTargetKey:C,dropContainerKey:x,dropTargetPos:T,dropAllowed:R,dragOverNodeKey:O}),y==null||y({event:l,node:tl(c)}))}}),fe(Tn(i),"onNodeDragLeave",function(l,c){i.currentMouseOverDroppableNodeKey===c.eventKey&&!l.currentTarget.contains(l.relatedTarget)&&(i.resetDragState(),i.currentMouseOverDroppableNodeKey=null);var u=i.props.onDragLeave;u==null||u({event:l,node:tl(c)})}),fe(Tn(i),"onWindowDragEnd",function(l){i.onNodeDragEnd(l,null,!0),window.removeEventListener("dragend",i.onWindowDragEnd)}),fe(Tn(i),"onNodeDragEnd",function(l,c){var u=i.props.onDragEnd;i.setState({dragOverNodeKey:null}),i.cleanDragState(),u==null||u({event:l,node:tl(c)}),i.dragNodeProps=null,window.removeEventListener("dragend",i.onWindowDragEnd)}),fe(Tn(i),"onNodeDrop",function(l,c){var u,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=i.state,p=f.dragChildrenKeys,h=f.dropPosition,g=f.dropTargetKey,v=f.dropTargetPos,y=f.dropAllowed;if(y){var _=i.props.onDrop;if(i.setState({dragOverNodeKey:null}),i.cleanDragState(),g!==null){var S=ee(ee({},eP(g,i.getTreeNodeRequiredProps())),{},{active:((u=i.getActiveItem())===null||u===void 0?void 0:u.key)===g,data:rd(i.state.keyEntities,g).node}),b=p.includes(g);qi(!b,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var E=Hde(v),w={event:l,node:tl(S),dragNode:i.dragNodeProps?tl(i.dragNodeProps):null,dragNodesKeys:[i.dragNodeProps.eventKey].concat(p),dropToGap:h!==0,dropPosition:h+Number(E[E.length-1])};d||_==null||_(w),i.dragNodeProps=null}}}),fe(Tn(i),"cleanDragState",function(){var l=i.state.draggingNodeKey;l!==null&&i.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),i.dragStartMousePosition=null,i.currentMouseOverDroppableNodeKey=null}),fe(Tn(i),"triggerExpandActionExpand",function(l,c){var u=i.state,d=u.expandedKeys,f=u.flattenNodes,p=c.expanded,h=c.key,g=c.isLeaf;if(!(g||l.shiftKey||l.metaKey||l.ctrlKey)){var v=f.filter(function(_){return _.key===h})[0],y=tl(ee(ee({},eP(h,i.getTreeNodeRequiredProps())),{},{data:v.data}));i.setExpandedKeys(p?Tv(d,h):H_(d,h)),i.onNodeExpand(l,y)}}),fe(Tn(i),"onNodeClick",function(l,c){var u=i.props,d=u.onClick,f=u.expandAction;f==="click"&&i.triggerExpandActionExpand(l,c),d==null||d(l,c)}),fe(Tn(i),"onNodeDoubleClick",function(l,c){var u=i.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&i.triggerExpandActionExpand(l,c),d==null||d(l,c)}),fe(Tn(i),"onNodeSelect",function(l,c){var u=i.state.selectedKeys,d=i.state,f=d.keyEntities,p=d.fieldNames,h=i.props,g=h.onSelect,v=h.multiple,y=c.selected,_=c[p.key],S=!y;S?v?u=H_(u,_):u=[_]:u=Tv(u,_);var b=u.map(function(E){var w=rd(f,E);return w?w.node:null}).filter(Boolean);i.setUncontrolledState({selectedKeys:u}),g==null||g(u,{event:"select",selected:S,node:c,selectedNodes:b,nativeEvent:l.nativeEvent})}),fe(Tn(i),"onNodeCheck",function(l,c,u){var d=i.state,f=d.keyEntities,p=d.checkedKeys,h=d.halfCheckedKeys,g=i.props,v=g.checkStrictly,y=g.onCheck,_=c.key,S,b={event:"check",node:c,checked:u,nativeEvent:l.nativeEvent};if(v){var E=u?H_(p,_):Tv(p,_),w=Tv(h,_);S={checked:E,halfChecked:w},b.checkedNodes=E.map(function(M){return rd(f,M)}).filter(Boolean).map(function(M){return M.node}),i.setUncontrolledState({checkedKeys:E})}else{var C=fy([].concat(Tt(p),[_]),!0,f),x=C.checkedKeys,T=C.halfCheckedKeys;if(!u){var R=new Set(x);R.delete(_);var O=fy(Array.from(R),{checked:!1,halfCheckedKeys:T},f);x=O.checkedKeys,T=O.halfCheckedKeys}S=x,b.checkedNodes=[],b.checkedNodesPositions=[],b.halfCheckedKeys=T,x.forEach(function(M){var P=rd(f,M);if(P){var k=P.node,$=P.pos;b.checkedNodes.push(k),b.checkedNodesPositions.push({node:k,pos:$})}}),i.setUncontrolledState({checkedKeys:x},!1,{halfCheckedKeys:T})}y==null||y(S,b)}),fe(Tn(i),"onNodeLoad",function(l){var c,u=l.key,d=i.state.keyEntities,f=rd(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var p=new Promise(function(h,g){i.setState(function(v){var y=v.loadedKeys,_=y===void 0?[]:y,S=v.loadingKeys,b=S===void 0?[]:S,E=i.props,w=E.loadData,C=E.onLoad;if(!w||_.includes(u)||b.includes(u))return null;var x=w(l);return x.then(function(){var T=i.state.loadedKeys,R=H_(T,u);C==null||C(R,{event:"load",node:l}),i.setUncontrolledState({loadedKeys:R}),i.setState(function(O){return{loadingKeys:Tv(O.loadingKeys,u)}}),h()}).catch(function(T){if(i.setState(function(O){return{loadingKeys:Tv(O.loadingKeys,u)}}),i.loadingRetryTimes[u]=(i.loadingRetryTimes[u]||0)+1,i.loadingRetryTimes[u]>=NWt){var R=i.state.loadedKeys;qi(!1,"Retry for `loadData` many times but still failed. No more retry."),i.setUncontrolledState({loadedKeys:H_(R,u)}),h()}g(T)}),{loadingKeys:H_(b,u)}})});return p.catch(function(){}),p}}),fe(Tn(i),"onNodeMouseEnter",function(l,c){var u=i.props.onMouseEnter;u==null||u({event:l,node:c})}),fe(Tn(i),"onNodeMouseLeave",function(l,c){var u=i.props.onMouseLeave;u==null||u({event:l,node:c})}),fe(Tn(i),"onNodeContextMenu",function(l,c){var u=i.props.onRightClick;u&&(l.preventDefault(),u({event:l,node:c}))}),fe(Tn(i),"onFocus",function(){var l=i.props.onFocus;i.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];l==null||l.apply(void 0,u)}),fe(Tn(i),"onBlur",function(){var l=i.props.onBlur;i.setState({focused:!1}),i.onActiveChange(null);for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];l==null||l.apply(void 0,u)}),fe(Tn(i),"getTreeNodeRequiredProps",function(){var l=i.state,c=l.expandedKeys,u=l.selectedKeys,d=l.loadedKeys,f=l.loadingKeys,p=l.checkedKeys,h=l.halfCheckedKeys,g=l.dragOverNodeKey,v=l.dropPosition,y=l.keyEntities;return{expandedKeys:c||[],selectedKeys:u||[],loadedKeys:d||[],loadingKeys:f||[],checkedKeys:p||[],halfCheckedKeys:h||[],dragOverNodeKey:g,dropPosition:v,keyEntities:y}}),fe(Tn(i),"setExpandedKeys",function(l){var c=i.state,u=c.treeData,d=c.fieldNames,f=dq(u,l,d);i.setUncontrolledState({expandedKeys:l,flattenNodes:f},!0)}),fe(Tn(i),"onNodeExpand",function(l,c){var u=i.state.expandedKeys,d=i.state,f=d.listChanging,p=d.fieldNames,h=i.props,g=h.onExpand,v=h.loadData,y=c.expanded,_=c[p.key];if(!f){var S=u.includes(_),b=!y;if(qi(y&&S||!y&&!S,"Expand state not sync with index check"),u=b?H_(u,_):Tv(u,_),i.setExpandedKeys(u),g==null||g(u,{node:c,expanded:b,nativeEvent:l.nativeEvent}),b&&v){var E=i.onNodeLoad(c);E&&E.then(function(){var w=dq(i.state.treeData,u,p);i.setUncontrolledState({flattenNodes:w})}).catch(function(){var w=i.state.expandedKeys,C=Tv(w,_);i.setExpandedKeys(C)})}}}),fe(Tn(i),"onListChangeStart",function(){i.setUncontrolledState({listChanging:!0})}),fe(Tn(i),"onListChangeEnd",function(){setTimeout(function(){i.setUncontrolledState({listChanging:!1})})}),fe(Tn(i),"onActiveChange",function(l){var c=i.state.activeKey,u=i.props,d=u.onActiveChange,f=u.itemScrollOffset,p=f===void 0?0:f;c!==l&&(i.setState({activeKey:l}),l!==null&&i.scrollTo({key:l,offset:p}),d==null||d(l))}),fe(Tn(i),"getActiveItem",function(){var l=i.state,c=l.activeKey,u=l.flattenNodes;return c===null?null:u.find(function(d){var f=d.key;return f===c})||null}),fe(Tn(i),"offsetActiveKey",function(l){var c=i.state,u=c.flattenNodes,d=c.activeKey,f=u.findIndex(function(g){var v=g.key;return v===d});f===-1&&l<0&&(f=u.length),f=(f+l+u.length)%u.length;var p=u[f];if(p){var h=p.key;i.onActiveChange(h)}else i.onActiveChange(null)}),fe(Tn(i),"onKeyDown",function(l){var c=i.state,u=c.activeKey,d=c.expandedKeys,f=c.checkedKeys,p=c.fieldNames,h=i.props,g=h.onKeyDown,v=h.checkable,y=h.selectable;switch(l.which){case At.UP:{i.offsetActiveKey(-1),l.preventDefault();break}case At.DOWN:{i.offsetActiveKey(1),l.preventDefault();break}}var _=i.getActiveItem();if(_&&_.data){var S=i.getTreeNodeRequiredProps(),b=_.data.isLeaf===!1||!!(_.data[p.children]||[]).length,E=tl(ee(ee({},eP(u,S)),{},{data:_.data,active:!0}));switch(l.which){case At.LEFT:{b&&d.includes(u)?i.onNodeExpand({},E):_.parent&&i.onActiveChange(_.parent.key),l.preventDefault();break}case At.RIGHT:{b&&!d.includes(u)?i.onNodeExpand({},E):_.children&&_.children.length&&i.onActiveChange(_.children[0].key),l.preventDefault();break}case At.ENTER:case At.SPACE:{v&&!E.disabled&&E.checkable!==!1&&!E.disableCheckbox?i.onNodeCheck({},E,!f.includes(u)):!v&&y&&!E.disabled&&E.selectable!==!1&&i.onNodeSelect({},E);break}}}g==null||g(l)}),fe(Tn(i),"setUncontrolledState",function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!i.destroyed){var d=!1,f=!0,p={};Object.keys(l).forEach(function(h){if(i.props.hasOwnProperty(h)){f=!1;return}d=!0,p[h]=l[h]}),d&&(!c||f)&&i.setState(ee(ee({},p),u))}}),fe(Tn(i),"scrollTo",function(l){i.listRef.current.scrollTo(l)}),i}return Xi(r,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,a=o.activeKey,s=o.itemScrollOffset,l=s===void 0?0:s;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:l}))}},{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 o=this.state,a=o.focused,s=o.flattenNodes,l=o.keyEntities,c=o.draggingNodeKey,u=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,p=o.dropTargetKey,h=o.dropPosition,g=o.dragOverNodeKey,v=o.indent,y=this.props,_=y.prefixCls,S=y.className,b=y.style,E=y.showLine,w=y.focusable,C=y.tabIndex,x=C===void 0?0:C,T=y.selectable,R=y.showIcon,O=y.icon,M=y.switcherIcon,P=y.draggable,k=y.checkable,$=y.checkStrictly,U=y.disabled,z=y.motion,D=y.loadData,B=y.filterTreeNode,Y=y.height,q=y.itemHeight,K=y.scrollWidth,H=y.virtual,G=y.titleRender,Q=y.dropIndicatorRender,le=y.onContextMenu,Z=y.onScroll,j=y.direction,F=y.rootClassName,te=y.rootStyle,oe=Va(this.props,{aria:!0,data:!0}),de;P&&(cn(P)==="object"?de=P:typeof P=="function"?de={nodeDraggable:P}:de={});var pe={prefixCls:_,selectable:T,showIcon:R,icon:O,switcherIcon:M,draggable:de,draggingNodeKey:c,checkable:k,checkStrictly:$,disabled:U,keyEntities:l,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:p,dropPosition:h,dragOverNodeKey:g,indent:v,direction:j,dropIndicatorRender:Q,loadData:D,filterTreeNode:B,titleRender:G,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(Ude.Provider,{value:pe},m.createElement("div",{className:Ce(_,S,F,fe(fe(fe({},"".concat(_,"-show-line"),E),"".concat(_,"-focused"),a),"".concat(_,"-active-focused"),u!==null)),style:te},m.createElement(IWt,ft({ref:this.listRef,prefixCls:_,style:b,data:s,disabled:U,selectable:T,checkable:!!k,motion:z,dragging:c!==null,height:Y,itemHeight:q,virtual:H,focusable:w,focused:a,tabIndex:x,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:le,onScroll:Z,scrollWidth:K},this.getTreeNodeRequiredProps(),oe))))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var s=a.prevProps,l={prevProps:o};function c(x){return!s&&o.hasOwnProperty(x)||s&&s[x]!==o[x]}var u,d=a.fieldNames;if(c("fieldNames")&&(d=Y8(o.fieldNames),l.fieldNames=d),c("treeData")?u=o.treeData:c("children")&&(qi(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=X8t(o.children)),u){l.treeData=u;var f=wde(u,{fieldNames:d});l.keyEntities=ee(fe({},lC,tGe),f.keyEntities)}var p=l.keyEntities||a.keyEntities;if(c("expandedKeys")||s&&c("autoExpandParent"))l.expandedKeys=o.autoExpandParent||!s&&o.defaultExpandParent?xwe(o.expandedKeys,p):o.expandedKeys;else if(!s&&o.defaultExpandAll){var h=ee({},p);delete h[lC];var g=[];Object.keys(h).forEach(function(x){var T=h[x];T.children&&T.children.length&&g.push(T.key)}),l.expandedKeys=g}else!s&&o.defaultExpandedKeys&&(l.expandedKeys=o.autoExpandParent||o.defaultExpandParent?xwe(o.defaultExpandedKeys,p):o.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,u||l.expandedKeys){var v=dq(u||a.treeData,l.expandedKeys||a.expandedKeys,d);l.flattenNodes=v}if(o.selectable&&(c("selectedKeys")?l.selectedKeys=wwe(o.selectedKeys,o):!s&&o.defaultSelectedKeys&&(l.selectedKeys=wwe(o.defaultSelectedKeys,o))),o.checkable){var y;if(c("checkedKeys")?y=bq(o.checkedKeys)||{}:!s&&o.defaultCheckedKeys?y=bq(o.defaultCheckedKeys)||{}:u&&(y=bq(o.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),y){var _=y,S=_.checkedKeys,b=S===void 0?[]:S,E=_.halfCheckedKeys,w=E===void 0?[]:E;if(!o.checkStrictly){var C=fy(b,!0,p);b=C.checkedKeys,w=C.halfCheckedKeys}l.checkedKeys=b,l.halfCheckedKeys=w}}return c("loadedKeys")&&(l.loadedKeys=o.loadedKeys),l}}]),r}(m.Component);fe(zde,"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:SWt,allowDrop:function(){return!0},expandAction:!1});fe(zde,"TreeNode",nB);const MWt=e=>{let{treeCls:n,treeNodeCls:r,directoryNodeSelectedBg:i,directoryNodeSelectedColor:o,motionDurationMid:a,borderRadius:s,controlItemBgHover:l}=e;return{[`${n}${n}-directory ${r}`]:{[`${n}-node-content-wrapper`]:{position:"static",[`> *:not(${n}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:s},"&:hover:before":{background:l}},[`${n}-switcher, ${n}-checkbox, ${n}-draggable-icon`]:{zIndex:1},"&-selected":{[`${n}-switcher, ${n}-draggable-icon`]:{color:o},[`${n}-node-content-wrapper`]:{color:o,background:"transparent","&:before, &:hover:before":{background:i}}}}}},PWt=new kr("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),AWt=(e,n)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${n.motionDurationSlow}`}}}),DWt=(e,n)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:n.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Ye(n.lineWidthBold)} solid ${n.colorPrimary}`,borderRadius:"50%",content:'""'}}}),kWt=(e,n)=>{const{treeCls:r,treeNodeCls:i,treeNodePadding:o,titleHeight:a,indentSize:s,nodeSelectedBg:l,nodeHoverBg:c,colorTextQuaternary:u,controlItemBgActiveDisabled:d}=n;return{[r]:Object.assign(Object.assign({},li(n)),{background:n.colorBgContainer,borderRadius:n.borderRadius,transition:`background-color ${n.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${r}-rtl ${r}-switcher_close ${r}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${r}-active-focused)`]:Object.assign({},Qy(n)),[`${r}-list-holder-inner`]:{alignItems:"flex-start"},[`&${r}-block-node`]:{[`${r}-list-holder-inner`]:{alignItems:"stretch",[`${r}-node-content-wrapper`]:{flex:"auto"},[`${i}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${n.colorPrimary}`,opacity:0,animationName:PWt,animationDuration:n.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:n.borderRadius}}},[i]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:Ye(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-disabled ${r}-node-content-wrapper`]:{color:n.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${r}-checkbox-disabled + ${r}-node-selected,&${i}-disabled${i}-selected ${r}-node-content-wrapper`]:{backgroundColor:d},[`&:not(${i}-disabled)`]:{[`${r}-node-content-wrapper`]:{"&:hover":{color:n.nodeHoverColor}}},[`&-active ${r}-node-content-wrapper`]:{background:n.controlItemBgHover},[`&:not(${i}-disabled).filter-node ${r}-title`]:{color:n.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${r}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:u},[`&${i}-disabled ${r}-draggable-icon`]:{visibility:"hidden"}}},[`${r}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:s}},[`${r}-draggable-icon`]:{visibility:"hidden"},[`${r}-switcher, ${r}-checkbox`]:{marginInlineEnd:n.calc(n.calc(a).sub(n.controlInteractiveSize)).div(2).equal()},[`${r}-switcher`]:Object.assign(Object.assign({},AWt(e,n)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${n.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:n.borderRadius,transition:`all ${n.motionDurationSlow}`},[`&:not(${r}-switcher-noop):hover:before`]:{backgroundColor:n.colorBgTextHover},[`&_close ${r}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:n.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:n.calc(a).div(2).equal(),bottom:n.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${n.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:n.calc(n.calc(a).div(2).equal()).mul(.8).equal(),height:n.calc(a).div(2).equal(),borderBottom:`1px solid ${n.colorBorder}`,content:'""'}}}),[`${r}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:n.paddingXS,background:"transparent",borderRadius:n.borderRadius,cursor:"pointer",transition:`all ${n.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},DWt(e,n)),{"&:hover":{backgroundColor:c},[`&${r}-node-selected`]:{color:n.nodeSelectedColor,backgroundColor:l},[`${r}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${r}-unselectable ${r}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${i}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${n.colorPrimary}`},"&-show-line":{[`${r}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:n.calc(a).div(2).equal(),bottom:n.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${n.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${r}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${i}-leaf-last ${r}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${Ye(n.calc(a).div(2).equal())} !important`}})}},nGe=(e,n)=>{const r=`.${e}`,i=`${r}-treenode`,o=n.calc(n.paddingXS).div(2).equal(),a=wr(n,{treeCls:r,treeNodeCls:i,treeNodePadding:o});return[kWt(e,a),MWt(a)]},rGe=e=>{const{controlHeightSM:n,controlItemBgHover:r,controlItemBgActive:i}=e,o=n;return{titleHeight:o,indentSize:o,nodeHoverBg:r,nodeHoverColor:e.colorText,nodeSelectedBg:i,nodeSelectedColor:e.colorText}},LWt=e=>{const{colorTextLightSolid:n,colorPrimary:r}=e;return Object.assign(Object.assign({},rGe(e)),{directoryNodeSelectedColor:n,directoryNodeSelectedBg:r})};Yr("Tree",(e,n)=>{let{prefixCls:r}=n;return[{[e.componentCls]:_U(`${r}-checkbox`,e)},nGe(r,e),fk(e)]},LWt);const $Wt=e=>{const{prefixCls:n,switcherIcon:r,treeNodeProps:i,showLine:o,switcherLoadingIcon:a}=e,{isLeaf:s,expanded:l,loading:c}=i;if(c)return m.isValidElement(a)?a:m.createElement(Mm,{className:`${n}-switcher-loading-icon`});let u;if(o&&typeof o=="object"&&(u=o.showLeafIcon),s){if(!o)return null;if(typeof u!="boolean"&&u){const p=typeof u=="function"?u(i):u,h=`${n}-switcher-line-custom-icon`;return m.isValidElement(p)?Ys(p,{className:Ce(p.props.className||"",h)}):p}return u?m.createElement(Kzt,{className:`${n}-switcher-line-icon`}):m.createElement("span",{className:`${n}-switcher-leaf-line`})}const d=`${n}-switcher-icon`,f=typeof r=="function"?r(i):r;return m.isValidElement(f)?Ys(f,{className:Ce(f.props.className||"",d)}):f!==void 0?f:o?l?m.createElement(wVt,{className:`${n}-switcher-line-icon`}):m.createElement(jVt,{className:`${n}-switcher-line-icon`}):m.createElement(Mzt,{className:d})},FWt=e=>{const n=e!=null&&e.algorithm?eC(e.algorithm):eC(lk),r=Object.assign(Object.assign({},AO),e==null?void 0:e.token);return uue(r,{override:e==null?void 0:e.token},n,_ue)};function BWt(e){const{sizeUnit:n,sizeStep:r}=e,i=r-2;return{sizeXXL:n*(i+10),sizeXL:n*(i+6),sizeLG:n*(i+2),sizeMD:n*(i+2),sizeMS:n*(i+1),size:n*i,sizeSM:n*i,sizeXS:n*(i-1),sizeXXS:n*(i-1)}}const jWt=(e,n)=>{const r=n??lk(e),i=r.fontSizeSM,o=r.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r),BWt(n??e)),o7e(i)),{controlHeight:o}),i7e(Object.assign(Object.assign({},r),{controlHeight:o})))},Yf=(e,n)=>new Gr(e).setA(n).toRgbString(),xx=(e,n)=>new Gr(e).lighten(n).toHexString(),UWt=e=>{const n=C0(e,{theme:"dark"});return{1:n[0],2:n[1],3:n[2],4:n[3],5:n[6],6:n[5],7:n[4],8:n[6],9:n[5],10:n[4]}},HWt=(e,n)=>{const r=e||"#000",i=n||"#fff";return{colorBgBase:r,colorTextBase:i,colorText:Yf(i,.85),colorTextSecondary:Yf(i,.65),colorTextTertiary:Yf(i,.45),colorTextQuaternary:Yf(i,.25),colorFill:Yf(i,.18),colorFillSecondary:Yf(i,.12),colorFillTertiary:Yf(i,.08),colorFillQuaternary:Yf(i,.04),colorBgSolid:Yf(i,.95),colorBgSolidHover:Yf(i,1),colorBgSolidActive:Yf(i,.9),colorBgElevated:xx(r,12),colorBgContainer:xx(r,8),colorBgLayout:xx(r,0),colorBgSpotlight:xx(r,26),colorBgBlur:Yf(i,.04),colorBorder:xx(r,26),colorBorderSecondary:xx(r,19)}},zWt=(e,n)=>{const r=Object.keys(gue).map(o=>{const a=C0(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((s,l,c)=>(s[`${o}-${c+1}`]=a[c],s[`${o}${c+1}`]=a[c],s),{})}).reduce((o,a)=>(o=Object.assign(Object.assign({},o),a),o),{}),i=n??lk(e);return Object.assign(Object.assign(Object.assign({},i),r),r7e(e,{generateColorPalettes:UWt,generateNeutralColorPalettes:HWt}))};function VWt(){const[e,n,r]=Nl();return{theme:e,token:n,hashId:r}}const cu={defaultSeed:fA.token,useToken:VWt,defaultAlgorithm:lk,darkAlgorithm:zWt,compactAlgorithm:jWt,getDesignToken:FWt,defaultConfig:fA,_internalContext:mue};var GWt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const{TimePicker:WWt,RangePicker:YWt}=md,qWt=m.forwardRef((e,n)=>m.createElement(YWt,Object.assign({},e,{picker:"time",mode:void 0,ref:n}))),Ay=m.forwardRef((e,n)=>{var{addon:r,renderExtraFooter:i,variant:o,bordered:a}=e,s=GWt(e,["addon","renderExtraFooter","variant","bordered"]);const[l]=e_("timePicker",o,a),c=m.useMemo(()=>{if(i)return i;if(r)return r},[r,i]);return m.createElement(WWt,Object.assign({},s,{mode:void 0,ref:n,renderExtraFooter:c,variant:l}))}),iGe=tS(Ay,"popupAlign",void 0,"picker");Ay._InternalPanelDoNotUseOrYouWillBeFired=iGe;Ay.RangePicker=qWt;Ay._InternalPanelDoNotUseOrYouWillBeFired=iGe;const KWt=function(e){var n=m.useRef({valueLabels:new Map});return m.useMemo(function(){var r=n.current.valueLabels,i=new Map,o=e.map(function(a){var s=a.value,l=a.label,c=l??r.get(s);return i.set(s,c),ee(ee({},a),{},{label:c})});return n.current.valueLabels=i,[o]},[e])};var XWt=function(n,r,i,o){return m.useMemo(function(){var a=function(h){return h.map(function(g){var v=g.value;return v})},s=a(n),l=a(r),c=s.filter(function(p){return!o[p]}),u=s,d=l;if(i){var f=fy(s,!0,o);u=f.checkedKeys,d=f.halfCheckedKeys}return[Array.from(new Set([].concat(Tt(c),Tt(u)))),d]},[n,r,i,o])},QWt=function(n){return Array.isArray(n)?n:n!==void 0?[n]:[]},ZWt=function(n){var r=n||{},i=r.label,o=r.value,a=r.children;return{_title:i?[i]:["title","label"],value:o||"value",key:o||"value",children:a||"children"}},xie=function(n){return!n||n.disabled||n.disableCheckbox||n.checkable===!1},JWt=function(n,r){var i=[],o=function a(s){s.forEach(function(l){var c=l[r.children];c&&(i.push(l[r.value]),a(c))})};return o(n),i},Mwe=function(n){return n==null};const eYt=function(e,n){return m.useMemo(function(){var r=wde(e,{fieldNames:n,initWrapper:function(o){return ee(ee({},o),{},{valueEntities:new Map})},processEntity:function(o,a){var s=o.node[n.value];a.valueEntities.set(s,o)}});return r},[e,n])};var Vde=function(){return null},tYt=["children","value"];function oGe(e){return Tl(e).map(function(n){if(!m.isValidElement(n)||!n.type)return null;var r=n,i=r.key,o=r.props,a=o.children,s=o.value,l=Xt(o,tYt),c=ee({key:i,value:s},l),u=oGe(a);return u.length&&(c.children=u),c}).filter(function(n){return n})}function Tie(e){if(!e)return e;var n=ee({},e);return"props"in n||Object.defineProperty(n,"props",{get:function(){return qi(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),n}}),n}function nYt(e,n,r,i,o,a){var s=null,l=null;function c(){function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return d.map(function(h,g){var v="".concat(f,"-").concat(g),y=h[a.value],_=r.includes(y),S=u(h[a.children]||[],v,_),b=m.createElement(Vde,h,S.map(function(w){return w.node}));if(n===y&&(s=b),_){var E={pos:v,node:b,children:S};return p||l.push(E),E}return null}).filter(function(h){return h})}l||(l=[],u(i),l.sort(function(d,f){var p=d.node.props.value,h=f.node.props.value,g=r.indexOf(p),v=r.indexOf(h);return g-v}))}Object.defineProperty(e,"triggerNode",{get:function(){return qi(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),c(),s}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return qi(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),c(),o?l:l.map(function(d){var f=d.node;return f})}})}var rYt=function(n,r,i){var o=i.fieldNames,a=i.treeNodeFilterProp,s=i.filterTreeNode,l=o.children;return m.useMemo(function(){if(!r||s===!1)return n;var c=typeof s=="function"?s:function(d,f){return String(f[a]).toUpperCase().includes(r.toUpperCase())},u=function d(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f.reduce(function(h,g){var v=g[l],y=p||c(r,Tie(g)),_=d(v||[],y);return(y||_.length)&&h.push(ee(ee({},g),{},fe({isLeaf:void 0},l,_))),h},[])};return u(n)},[n,r,l,a,s])};function Pwe(e){var n=m.useRef();n.current=e;var r=m.useCallback(function(){return n.current.apply(n,arguments)},[]);return r}function iYt(e,n){var r=n.id,i=n.pId,o=n.rootPId,a=new Map,s=[];return e.forEach(function(l){var c=l[r],u=ee(ee({},l),{},{key:l.key||c});a.set(c,u)}),a.forEach(function(l){var c=l[i],u=a.get(c);u?(u.children=u.children||[],u.children.push(l)):(c===o||o===null)&&s.push(l)}),s}function oYt(e,n,r){return m.useMemo(function(){if(e){if(r){var i=ee({id:"id",pId:"pId",rootPId:null},cn(r)==="object"?r:{});return iYt(e,i)}return e}return oGe(n)},[n,r,e])}var aGe=m.createContext(null),sGe=m.createContext(null),aYt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},sYt=function(n,r){var i=jue(),o=i.prefixCls,a=i.multiple,s=i.searchValue,l=i.toggleOpen,c=i.open,u=i.notFoundContent,d=m.useContext(sGe),f=d.virtual,p=d.listHeight,h=d.listItemHeight,g=d.listItemScrollOffset,v=d.treeData,y=d.fieldNames,_=d.onSelect,S=d.dropdownMatchSelectWidth,b=d.treeExpandAction,E=d.treeTitleRender,w=d.onPopupScroll,C=d.leftMaxCount,x=d.leafCountOnly,T=d.valueEntities,R=m.useContext(aGe),O=R.checkable,M=R.checkedKeys,P=R.halfCheckedKeys,k=R.treeExpandedKeys,$=R.treeDefaultExpandAll,U=R.treeDefaultExpandedKeys,z=R.onTreeExpand,D=R.treeIcon,B=R.showTreeIcon,Y=R.switcherIcon,q=R.treeLine,K=R.treeNodeFilterProp,H=R.loadData,G=R.treeLoadedKeys,Q=R.treeMotion,le=R.onTreeLoad,Z=R.keyEntities,j=m.useRef(),F=Z1(function(){return v},[c,v],function(Xe,Ze){return Ze[0]&&Xe[1]!==Ze[1]}),te=m.useMemo(function(){return O?{checked:M,halfChecked:P}:null},[O,M,P]);m.useEffect(function(){if(c&&!a&&M.length){var Xe;(Xe=j.current)===null||Xe===void 0||Xe.scrollTo({key:M[0]})}},[c]);var oe=function(Ze){Ze.preventDefault()},de=function(Ze,bt){var at=bt.node;O&&xie(at)||(_(at.key,{selected:!M.includes(at.key)}),a||l(!1))},pe=m.useState(U),me=ke(pe,2),ve=me[0],he=me[1],be=m.useState(null),we=ke(be,2),De=we[0],Ae=we[1],Ee=m.useMemo(function(){return k?Tt(k):s?De:ve},[ve,De,k,s]),Re=function(Ze){he(Ze),Ae(Ze),z&&z(Ze)},Te=String(s).toLowerCase(),Oe=function(Ze){return Te?String(Ze[K]).toLowerCase().includes(Te):!1};m.useEffect(function(){s&&Ae(JWt(v,y))},[s]);var Ne=m.useState(function(){return new Map}),je=ke(Ne,2),ne=je[0],J=je[1];m.useEffect(function(){C&&J(new Map)},[C]);function ae(Xe){var Ze=Xe[y.value];if(!ne.has(Ze)){var bt=T.get(Ze),at=(bt.children||[]).length===0;if(at)ne.set(Ze,!1);else{var pt=bt.children.filter(function(It){return!It.node.disabled&&!It.node.disableCheckbox&&!M.includes(It.node[y.value])}),Ct=pt.length;ne.set(Ze,Ct>C)}}return ne.get(Ze)}var Se=Sr(function(Xe){var Ze=Xe[y.value];return M.includes(Ze)||C===null?!1:C<=0?!0:x&&C?ae(Xe):!1}),xe=function Xe(Ze){var bt=cm(Ze),at;try{for(bt.s();!(at=bt.n()).done;){var pt=at.value;if(!(pt.disabled||pt.selectable===!1)){if(s){if(Oe(pt))return pt}else return pt;if(pt[y.children]){var Ct=Xe(pt[y.children]);if(Ct)return Ct}}}}catch(It){bt.e(It)}finally{bt.f()}return null},ue=m.useState(null),Me=ke(ue,2),$e=Me[0],ge=Me[1],Ve=Z[$e];m.useEffect(function(){if(c){var Xe=null,Ze=function(){var at=xe(F);return at?at[y.value]:null};!a&&M.length&&!s?Xe=M[0]:Xe=Ze(),ge(Xe)}},[c,s]),m.useImperativeHandle(r,function(){var Xe;return{scrollTo:(Xe=j.current)===null||Xe===void 0?void 0:Xe.scrollTo,onKeyDown:function(bt){var at,pt=bt.which;switch(pt){case At.UP:case At.DOWN:case At.LEFT:case At.RIGHT:(at=j.current)===null||at===void 0||at.onKeyDown(bt);break;case At.ENTER:{if(Ve){var Ct=Se(Ve.node),It=(Ve==null?void 0:Ve.node)||{},Wt=It.selectable,Bt=It.value,Vt=It.disabled;Wt!==!1&&!Vt&&!Ct&&de(null,{node:{key:$e},selected:!M.includes(Bt)})}break}case At.ESC:l(!1)}},onKeyUp:function(){}}});var st=Z1(function(){return!s},[s,k||ve],function(Xe,Ze){var bt=ke(Xe,1),at=bt[0],pt=ke(Ze,2),Ct=pt[0],It=pt[1];return at!==Ct&&!!(Ct||It)}),Je=st?H:null;if(F.length===0)return m.createElement("div",{role:"listbox",className:"".concat(o,"-empty"),onMouseDown:oe},u);var ot={fieldNames:y};return G&&(ot.loadedKeys=G),Ee&&(ot.expandedKeys=Ee),m.createElement("div",{onMouseDown:oe},Ve&&c&&m.createElement("span",{style:aYt,"aria-live":"assertive"},Ve.node.value),m.createElement(JVe.Provider,{value:{nodeDisabled:Se}},m.createElement(zde,ft({ref:j,focusable:!1,prefixCls:"".concat(o,"-tree"),treeData:F,height:p,itemHeight:h,itemScrollOffset:g,virtual:f!==!1&&S!==!1,multiple:a,icon:D,showIcon:B,switcherIcon:Y,showLine:q,loadData:Je,motion:Q,activeKey:$e,checkable:O,checkStrictly:!0,checkedKeys:te,selectedKeys:O?[]:M,defaultExpandAll:$,titleRender:E},ot,{onActiveChange:ge,onSelect:de,onCheck:de,onExpand:Re,onLoad:le,filterTreeNode:Oe,expandAction:b,onScroll:w}))))},lYt=m.forwardRef(sYt),Gde="SHOW_ALL",Wde="SHOW_PARENT",TU="SHOW_CHILD";function Awe(e,n,r,i){var o=new Set(e);return n===TU?e.filter(function(a){var s=r[a];return!s||!s.children||!s.children.some(function(l){var c=l.node;return o.has(c[i.value])})||!s.children.every(function(l){var c=l.node;return xie(c)||o.has(c[i.value])})}):n===Wde?e.filter(function(a){var s=r[a],l=s?s.parent:null;return!l||xie(l.node)||!o.has(l.key)}):e}var cYt=["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 uYt(e){return!e||cn(e)!=="object"}var dYt=m.forwardRef(function(e,n){var r=e.id,i=e.prefixCls,o=i===void 0?"rc-tree-select":i,a=e.value,s=e.defaultValue,l=e.onChange,c=e.onSelect,u=e.onDeselect,d=e.searchValue,f=e.inputValue,p=e.onSearch,h=e.autoClearSearchValue,g=h===void 0?!0:h,v=e.filterTreeNode,y=e.treeNodeFilterProp,_=y===void 0?"value":y,S=e.showCheckedStrategy,b=e.treeNodeLabelProp,E=e.multiple,w=e.treeCheckable,C=e.treeCheckStrictly,x=e.labelInValue,T=e.maxCount,R=e.fieldNames,O=e.treeDataSimpleMode,M=e.treeData,P=e.children,k=e.loadData,$=e.treeLoadedKeys,U=e.onTreeLoad,z=e.treeDefaultExpandAll,D=e.treeExpandedKeys,B=e.treeDefaultExpandedKeys,Y=e.onTreeExpand,q=e.treeExpandAction,K=e.virtual,H=e.listHeight,G=H===void 0?200:H,Q=e.listItemHeight,le=Q===void 0?20:Q,Z=e.listItemScrollOffset,j=Z===void 0?0:Z,F=e.onDropdownVisibleChange,te=e.dropdownMatchSelectWidth,oe=te===void 0?!0:te,de=e.treeLine,pe=e.treeIcon,me=e.showTreeIcon,ve=e.switcherIcon,he=e.treeMotion,be=e.treeTitleRender,we=e.onPopupScroll,De=Xt(e,cYt),Ae=Wue(r),Ee=w&&!C,Re=w||C,Te=C||x,Oe=Re||E,Ne=dr(s,{value:a}),je=ke(Ne,2),ne=je[0],J=je[1],ae=m.useMemo(function(){return w?S||TU:Gde},[S,w]),Se=m.useMemo(function(){return ZWt(R)},[JSON.stringify(R)]),xe=dr("",{value:d!==void 0?d:f,postState:function(jt){return jt||""}}),ue=ke(xe,2),Me=ue[0],$e=ue[1],ge=function(jt){$e(jt),p==null||p(jt)},Ve=oYt(M,P,O),st=eYt(Ve,Se),Je=st.keyEntities,ot=st.valueEntities,Xe=m.useCallback(function(ln){var jt=[],Lt=[];return ln.forEach(function(en){ot.has(en)?Lt.push(en):jt.push(en)}),{missingRawValues:jt,existRawValues:Lt}},[ot]),Ze=rYt(Ve,Me,{fieldNames:Se,treeNodeFilterProp:_,filterTreeNode:v}),bt=m.useCallback(function(ln){if(ln){if(b)return ln[b];for(var jt=Se._title,Lt=0;Lt<jt.length;Lt+=1){var en=ln[jt[Lt]];if(en!==void 0)return en}}},[Se,b]),at=m.useCallback(function(ln){var jt=QWt(ln);return jt.map(function(Lt){return uYt(Lt)?{value:Lt}:Lt})},[]),pt=m.useCallback(function(ln){var jt=at(ln);return jt.map(function(Lt){var en=Lt.label,Ue=Lt.value,Zt=Lt.halfChecked,Et,Gt=ot.get(Ue);if(Gt){var zt;en=be?be(Gt.node):(zt=en)!==null&&zt!==void 0?zt:bt(Gt.node),Et=Gt.node.disabled}else if(en===void 0){var Vn=at(ne).find(function(sr){return sr.value===Ue});en=Vn.label}return{label:en,value:Ue,halfChecked:Zt,disabled:Et}})},[ot,bt,at,ne]),Ct=m.useMemo(function(){return at(ne===null?[]:ne)},[at,ne]),It=m.useMemo(function(){var ln=[],jt=[];return Ct.forEach(function(Lt){Lt.halfChecked?jt.push(Lt):ln.push(Lt)}),[ln,jt]},[Ct]),Wt=ke(It,2),Bt=Wt[0],Vt=Wt[1],rn=m.useMemo(function(){return Bt.map(function(ln){return ln.value})},[Bt]),tt=XWt(Bt,Vt,Ee,Je),it=ke(tt,2),nt=it[0],vt=it[1],kt=m.useMemo(function(){var ln=Awe(nt,ae,Je,Se),jt=ln.map(function(Zt){var Et,Gt;return(Et=(Gt=Je[Zt])===null||Gt===void 0||(Gt=Gt.node)===null||Gt===void 0?void 0:Gt[Se.value])!==null&&Et!==void 0?Et:Zt}),Lt=jt.map(function(Zt){var Et=Bt.find(function(zt){return zt.value===Zt}),Gt=x?Et==null?void 0:Et.label:be==null?void 0:be(Et);return{value:Zt,label:Gt}}),en=pt(Lt),Ue=en[0];return!Oe&&Ue&&Mwe(Ue.value)&&Mwe(Ue.label)?[]:en.map(function(Zt){var Et;return ee(ee({},Zt),{},{label:(Et=Zt.label)!==null&&Et!==void 0?Et:Zt.value})})},[Se,Oe,nt,Bt,pt,ae,Je]),Dt=KWt(kt),Kt=ke(Dt,1),Ht=Kt[0],tn=m.useMemo(function(){return Oe&&(ae==="SHOW_CHILD"||C||!w)?T:null},[T,Oe,C,ae,w]),on=Pwe(function(ln,jt,Lt){var en=Awe(ln,ae,Je,Se);if(!(tn&&en.length>tn)){var Ue=pt(ln);if(J(Ue),g&&$e(""),l){var Zt=ln;Ee&&(Zt=en.map(function(qe){var gt=ot.get(qe);return gt?gt.node[Se.value]:qe}));var Et=jt||{triggerValue:void 0,selected:void 0},Gt=Et.triggerValue,zt=Et.selected,Vn=Zt;if(C){var sr=Vt.filter(function(qe){return!Zt.includes(qe.value)});Vn=[].concat(Tt(Vn),Tt(sr))}var A=pt(Vn),W={preValue:Bt,triggerValue:Gt},ce=!0;(C||Lt==="selection"&&!zt)&&(ce=!1),nYt(W,Gt,ln,Ve,ce,Se),Re?W.checked=zt:W.selected=zt;var Pe=Te?A:A.map(function(qe){return qe.value});l(Oe?Pe:Pe[0],Te?null:A.map(function(qe){return qe.label}),W)}}}),sn=m.useCallback(function(ln,jt){var Lt,en=jt.selected,Ue=jt.source,Zt=Je[ln],Et=Zt==null?void 0:Zt.node,Gt=(Lt=Et==null?void 0:Et[Se.value])!==null&&Lt!==void 0?Lt:ln;if(!Oe)on([Gt],{selected:!0,triggerValue:Gt},"option");else{var zt=en?[].concat(Tt(rn),[Gt]):nt.filter(function(gt){return gt!==Gt});if(Ee){var Vn=Xe(zt),sr=Vn.missingRawValues,A=Vn.existRawValues,W=A.map(function(gt){return ot.get(gt).key}),ce;if(en){var Pe=fy(W,!0,Je);ce=Pe.checkedKeys}else{var qe=fy(W,{checked:!1,halfCheckedKeys:vt},Je);ce=qe.checkedKeys}zt=[].concat(Tt(sr),Tt(ce.map(function(gt){return Je[gt].node[Se.value]})))}on(zt,{selected:en,triggerValue:Gt},Ue||"option")}en||!Oe?c==null||c(Gt,Tie(Et)):u==null||u(Gt,Tie(Et))},[Xe,ot,Je,Se,Oe,rn,on,Ee,c,u,nt,vt,T]),Jt=m.useCallback(function(ln){if(F){var jt={};Object.defineProperty(jt,"documentClickClose",{get:function(){return qi(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),F(ln,jt)}},[F]),En=Pwe(function(ln,jt){var Lt=ln.map(function(en){return en.value});if(jt.type==="clear"){on(Lt,{},"selection");return}jt.values.length&&sn(jt.values[0].value,{selected:!1,source:"selection"})}),Pt=m.useMemo(function(){return{virtual:K,dropdownMatchSelectWidth:oe,listHeight:G,listItemHeight:le,listItemScrollOffset:j,treeData:Ze,fieldNames:Se,onSelect:sn,treeExpandAction:q,treeTitleRender:be,onPopupScroll:we,leftMaxCount:T===void 0?null:T-Ht.length,leafCountOnly:ae==="SHOW_CHILD"&&!C&&!!w,valueEntities:ot}},[K,oe,G,le,j,Ze,Se,sn,q,be,we,T,Ht.length,ae,C,w,ot]),Qt=m.useMemo(function(){return{checkable:Re,loadData:k,treeLoadedKeys:$,onTreeLoad:U,checkedKeys:nt,halfCheckedKeys:vt,treeDefaultExpandAll:z,treeExpandedKeys:D,treeDefaultExpandedKeys:B,onTreeExpand:Y,treeIcon:pe,treeMotion:he,showTreeIcon:me,switcherIcon:ve,treeLine:de,treeNodeFilterProp:_,keyEntities:Je}},[Re,k,$,U,nt,vt,z,D,B,Y,pe,he,me,ve,de,_,Je]);return m.createElement(sGe.Provider,{value:Pt},m.createElement(aGe.Provider,{value:Qt},m.createElement(Hue,ft({ref:n},De,{id:Ae,prefixCls:o,mode:Oe?"multiple":void 0,displayValues:Ht,onDisplayValuesChange:En,searchValue:Me,onSearch:ge,OptionList:lYt,emptyOptions:!Ve.length,onDropdownVisibleChange:Jt,dropdownMatchSelectWidth:oe}))))}),Mk=dYt;Mk.TreeNode=Vde;Mk.SHOW_ALL=Gde;Mk.SHOW_PARENT=Wde;Mk.SHOW_CHILD=TU;const fYt=e=>{const{componentCls:n,treePrefixCls:r,colorBgElevated:i}=e,o=`.${r}`;return[{[`${n}-dropdown`]:[{padding:`${Ye(e.paddingXS)} ${Ye(e.calc(e.paddingXS).div(2).equal())}`},nGe(r,wr(e,{colorBgContainer:i})),{[o]:{borderRadius:0,[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},_U(`${r}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function pYt(e,n,r){return Yr("TreeSelect",i=>{const o=wr(i,{treePrefixCls:n});return[fYt(o)]},rGe)(e,r)}var hYt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const gYt=(e,n)=>{var r;const{prefixCls:i,size:o,disabled:a,bordered:s=!0,className:l,rootClassName:c,treeCheckable:u,multiple:d,listHeight:f=256,listItemHeight:p,placement:h,notFoundContent:g,switcherIcon:v,treeLine:y,getPopupContainer:_,popupClassName:S,dropdownClassName:b,treeIcon:E=!1,transitionName:w,choiceTransitionName:C="",status:x,treeExpandAction:T,builtinPlacements:R,dropdownMatchSelectWidth:O,popupMatchSelectWidth:M,allowClear:P,variant:k,dropdownStyle:$,tagRender:U,maxCount:z,showCheckedStrategy:D,treeCheckStrictly:B}=e,Y=hYt(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:q,getPrefixCls:K,renderEmpty:H,direction:G,virtual:Q,popupMatchSelectWidth:le,popupOverflow:Z}=m.useContext(Cn),[,j]=Nl(),F=p??(j==null?void 0:j.controlHeightSM)+(j==null?void 0:j.paddingXXS),te=K(),oe=K("select",i),de=K("select-tree",i),pe=K("tree-select",i),{compactSize:me,compactItemClassnames:ve}=_g(oe,G),he=po(oe),be=po(pe),[we,De,Ae]=Kue(oe,he),[Ee]=pYt(pe,de,be),[Re,Te]=e_("treeSelect",k,s),Oe=Ce(S||b,`${pe}-dropdown`,{[`${pe}-dropdown-rtl`]:G==="rtl"},c,Ae,he,be,De),Ne=!!(u||d),je=m.useMemo(()=>{if(!(z&&(D==="SHOW_ALL"&&!B||D==="SHOW_PARENT")))return z},[z,D,B]),ne=Que(e.suffixIcon,e.showArrow),J=(r=M??O)!==null&&r!==void 0?r:le,{status:ae,hasFeedback:Se,isFormItemInput:xe,feedbackIcon:ue}=m.useContext(qs),Me=Jy(ae,x),{suffixIcon:$e,removeIcon:ge,clearIcon:Ve}=nU(Object.assign(Object.assign({},Y),{multiple:Ne,showSuffixIcon:ne,hasFeedback:Se,feedbackIcon:ue,prefixCls:oe,componentName:"TreeSelect"})),st=P===!0?{clearIcon:Ve}:P;let Je;g!==void 0?Je=g:Je=(H==null?void 0:H("Select"))||m.createElement(tU,{componentName:"Select"});const ot=Wr(Y,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Xe=m.useMemo(()=>h!==void 0?h:G==="rtl"?"bottomRight":"bottomLeft",[h,G]),Ze=Xs(Bt=>{var Vt;return(Vt=o??me)!==null&&Vt!==void 0?Vt:Bt}),bt=m.useContext(xs),at=a??bt,pt=Ce(!i&&pe,{[`${oe}-lg`]:Ze==="large",[`${oe}-sm`]:Ze==="small",[`${oe}-rtl`]:G==="rtl",[`${oe}-${Re}`]:Te,[`${oe}-in-form-item`]:xe},rg(oe,Me,Se),ve,l,c,Ae,he,be,De),Ct=Bt=>m.createElement($Wt,{prefixCls:de,switcherIcon:v,treeNodeProps:Bt,showLine:y}),[It]=Hp("SelectLike",$==null?void 0:$.zIndex),Wt=m.createElement(Mk,Object.assign({virtual:Q,disabled:at},ot,{dropdownMatchSelectWidth:J,builtinPlacements:que(R,Z),ref:n,prefixCls:oe,className:pt,listHeight:f,listItemHeight:F,treeCheckable:u&&m.createElement("span",{className:`${oe}-tree-checkbox-inner`}),treeLine:!!y,suffixIcon:$e,multiple:Ne,placement:Xe,removeIcon:ge,allowClear:st,switcherIcon:Ct,showTreeIcon:E,notFoundContent:Je,getPopupContainer:_||q,treeMotion:null,dropdownClassName:Oe,dropdownStyle:Object.assign(Object.assign({},$),{zIndex:It}),choiceTransitionName:Kl(te,"",C),transitionName:Kl(te,"slide-up",w),treeExpandAction:T,tagRender:Ne?U:void 0,maxCount:je,showCheckedStrategy:D,treeCheckStrictly:B}));return we(Ee(Wt))},mYt=m.forwardRef(gYt),cw=mYt,vYt=tS(cw,"dropdownAlign",e=>Wr(e,["visible"]));cw.TreeNode=Vde;cw.SHOW_ALL=Gde;cw.SHOW_PARENT=Wde;cw.SHOW_CHILD=TU;cw._InternalPanelDoNotUseOrYouWillBeFired=vYt;const Sq=function(e,n){if(e&&n){var r=Array.isArray(n)?n:n.split(","),i=e.name||"",o=e.type||"",a=o.replace(/\/.*$/,"");return r.some(function(s){var l=s.trim();if(/^\*(\/\*)?$/.test(s))return!0;if(l.charAt(0)==="."){var c=i.toLowerCase(),u=l.toLowerCase(),d=[u];return(u===".jpg"||u===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(function(f){return c.endsWith(f)})}return/\/\*$/.test(l)?a===l.replace(/\/.*$/,""):o===l?!0:/^\w+$/.test(l)?(qi(!1,"Upload takes an invalidate 'accept' type '".concat(l,"'.Skip for check.")),!0):!1})}return!0};function yYt(e,n){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(n.status,"'"),i=new Error(r);return i.status=n.status,i.method=e.method,i.url=e.action,i}function Dwe(e){var n=e.responseText||e.response;if(!n)return n;try{return JSON.parse(n)}catch{return n}}function _Yt(e){var n=new XMLHttpRequest;e.onProgress&&n.upload&&(n.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var a=e.data[o];if(Array.isArray(a)){a.forEach(function(s){r.append("".concat(o,"[]"),s)});return}r.append(o,a)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),n.onerror=function(a){e.onError(a)},n.onload=function(){return n.status<200||n.status>=300?e.onError(yYt(e,n),Dwe(n)):e.onSuccess(Dwe(n),n)},n.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in n&&(n.withCredentials=!0);var i=e.headers||{};return i["X-Requested-With"]!==null&&n.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(i).forEach(function(o){i[o]!==null&&n.setRequestHeader(o,i[o])}),n.send(r),{abort:function(){n.abort()}}}var bYt=function(){var e=Ss(ri().mark(function n(r,i){var o,a,s,l,c,u,d,f;return ri().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:u=function(){return u=Ss(ri().mark(function v(y){return ri().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.abrupt("return",new Promise(function(b){y.file(function(E){i(E)?(y.fullPath&&!E.webkitRelativePath&&(Object.defineProperties(E,{webkitRelativePath:{writable:!0}}),E.webkitRelativePath=y.fullPath.replace(/^\//,""),Object.defineProperties(E,{webkitRelativePath:{writable:!1}})),b(E)):b(null)})}));case 1:case"end":return S.stop()}},v)})),u.apply(this,arguments)},c=function(v){return u.apply(this,arguments)},l=function(){return l=Ss(ri().mark(function v(y){var _,S,b,E,w;return ri().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:_=y.createReader(),S=[];case 2:return x.next=5,new Promise(function(T){_.readEntries(T,function(){return T([])})});case 5:if(b=x.sent,E=b.length,E){x.next=9;break}return x.abrupt("break",12);case 9:for(w=0;w<E;w++)S.push(b[w]);x.next=2;break;case 12:return x.abrupt("return",S);case 13:case"end":return x.stop()}},v)})),l.apply(this,arguments)},s=function(v){return l.apply(this,arguments)},o=[],a=[],r.forEach(function(g){return a.push(g.webkitGetAsEntry())}),d=function(){var g=Ss(ri().mark(function v(y,_){var S,b;return ri().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(y){w.next=2;break}return w.abrupt("return");case 2:if(y.path=_||"",!y.isFile){w.next=10;break}return w.next=6,c(y);case 6:S=w.sent,S&&o.push(S),w.next=15;break;case 10:if(!y.isDirectory){w.next=15;break}return w.next=13,s(y);case 13:b=w.sent,a.push.apply(a,Tt(b));case 15:case"end":return w.stop()}},v)}));return function(y,_){return g.apply(this,arguments)}}(),f=0;case 9:if(!(f<a.length)){h.next=15;break}return h.next=12,d(a[f]);case 12:f++,h.next=9;break;case 15:return h.abrupt("return",o);case 16:case"end":return h.stop()}},n)}));return function(r,i){return e.apply(this,arguments)}}(),SYt=+new Date,EYt=0;function Eq(){return"rc-upload-".concat(SYt,"-").concat(++EYt)}var CYt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],wYt=function(e){Kc(r,e);var n=Nu(r);function r(){var i;Ki(this,r);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return i=n.call.apply(n,[this].concat(a)),fe(Tn(i),"state",{uid:Eq()}),fe(Tn(i),"reqs",{}),fe(Tn(i),"fileInput",void 0),fe(Tn(i),"_isMounted",void 0),fe(Tn(i),"onChange",function(l){var c=i.props,u=c.accept,d=c.directory,f=l.target.files,p=Tt(f).filter(function(h){return!d||Sq(h,u)});i.uploadFiles(p),i.reset()}),fe(Tn(i),"onClick",function(l){var c=i.fileInput;if(c){var u=l.target,d=i.props.onClick;if(u&&u.tagName==="BUTTON"){var f=c.parentNode;f.focus(),u.blur()}c.click(),d&&d(l)}}),fe(Tn(i),"onKeyDown",function(l){l.key==="Enter"&&i.onClick(l)}),fe(Tn(i),"onFileDrop",function(){var l=Ss(ri().mark(function c(u){var d,f,p;return ri().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(d=i.props.multiple,u.preventDefault(),u.type!=="dragover"){g.next=4;break}return g.abrupt("return");case 4:if(!i.props.directory){g.next=11;break}return g.next=7,bYt(Array.prototype.slice.call(u.dataTransfer.items),function(v){return Sq(v,i.props.accept)});case 7:f=g.sent,i.uploadFiles(f),g.next=14;break;case 11:p=Tt(u.dataTransfer.files).filter(function(v){return Sq(v,i.props.accept)}),d===!1&&(p=p.slice(0,1)),i.uploadFiles(p);case 14:case"end":return g.stop()}},c)}));return function(c){return l.apply(this,arguments)}}()),fe(Tn(i),"uploadFiles",function(l){var c=Tt(l),u=c.map(function(d){return d.uid=Eq(),i.processFile(d,c)});Promise.all(u).then(function(d){var f=i.props.onBatchStart;f==null||f(d.map(function(p){var h=p.origin,g=p.parsedFile;return{file:h,parsedFile:g}})),d.filter(function(p){return p.parsedFile!==null}).forEach(function(p){i.post(p)})})}),fe(Tn(i),"processFile",function(){var l=Ss(ri().mark(function c(u,d){var f,p,h,g,v,y,_,S,b;return ri().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(f=i.props.beforeUpload,p=u,!f){w.next=14;break}return w.prev=3,w.next=6,f(u,d);case 6:p=w.sent,w.next=12;break;case 9:w.prev=9,w.t0=w.catch(3),p=!1;case 12:if(p!==!1){w.next=14;break}return w.abrupt("return",{origin:u,parsedFile:null,action:null,data:null});case 14:if(h=i.props.action,typeof h!="function"){w.next=21;break}return w.next=18,h(u);case 18:g=w.sent,w.next=22;break;case 21:g=h;case 22:if(v=i.props.data,typeof v!="function"){w.next=29;break}return w.next=26,v(u);case 26:y=w.sent,w.next=30;break;case 29:y=v;case 30:return _=(cn(p)==="object"||typeof p=="string")&&p?p:u,_ instanceof File?S=_:S=new File([_],u.name,{type:u.type}),b=S,b.uid=u.uid,w.abrupt("return",{origin:u,data:y,parsedFile:b,action:g});case 35:case"end":return w.stop()}},c,null,[[3,9]])}));return function(c,u){return l.apply(this,arguments)}}()),fe(Tn(i),"saveFileInput",function(l){i.fileInput=l}),i}return Xi(r,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(o){var a=this,s=o.data,l=o.origin,c=o.action,u=o.parsedFile;if(this._isMounted){var d=this.props,f=d.onStart,p=d.customRequest,h=d.name,g=d.headers,v=d.withCredentials,y=d.method,_=l.uid,S=p||_Yt,b={action:c,filename:h,data:s,file:u,headers:g,withCredentials:v,method:y||"post",onProgress:function(w){var C=a.props.onProgress;C==null||C(w,u)},onSuccess:function(w,C){var x=a.props.onSuccess;x==null||x(w,u,C),delete a.reqs[_]},onError:function(w,C){var x=a.props.onError;x==null||x(w,C,u),delete a.reqs[_]}};f(l),this.reqs[_]=S(b)}}},{key:"reset",value:function(){this.setState({uid:Eq()})}},{key:"abort",value:function(o){var a=this.reqs;if(o){var s=o.uid?o.uid:o;a[s]&&a[s].abort&&a[s].abort(),delete a[s]}else Object.keys(a).forEach(function(l){a[l]&&a[l].abort&&a[l].abort(),delete a[l]})}},{key:"render",value:function(){var o=this.props,a=o.component,s=o.prefixCls,l=o.className,c=o.classNames,u=c===void 0?{}:c,d=o.disabled,f=o.id,p=o.name,h=o.style,g=o.styles,v=g===void 0?{}:g,y=o.multiple,_=o.accept,S=o.capture,b=o.children,E=o.directory,w=o.openFileDialogOnClick,C=o.onMouseEnter,x=o.onMouseLeave,T=o.hasControlInside,R=Xt(o,CYt),O=Ce(fe(fe(fe({},s,!0),"".concat(s,"-disabled"),d),l,l)),M=E?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},P=d?{}:{onClick:w?this.onClick:function(){},onKeyDown:w?this.onKeyDown:function(){},onMouseEnter:C,onMouseLeave:x,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:T?void 0:"0"};return V.createElement(a,ft({},P,{className:O,role:T?void 0:"button",style:h}),V.createElement("input",ft({},Va(R,{aria:!0,data:!0}),{id:f,name:p,disabled:d,type:"file",ref:this.saveFileInput,onClick:function($){return $.stopPropagation()},key:this.state.uid,style:ee({display:"none"},v.input),className:u.input,accept:_},M,{multiple:y,onChange:this.onChange},S!=null?{capture:S}:{})),b)}}]),r}(m.Component);function Cq(){}var Oie=function(e){Kc(r,e);var n=Nu(r);function r(){var i;Ki(this,r);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return i=n.call.apply(n,[this].concat(a)),fe(Tn(i),"uploader",void 0),fe(Tn(i),"saveUploader",function(l){i.uploader=l}),i}return Xi(r,[{key:"abort",value:function(o){this.uploader.abort(o)}},{key:"render",value:function(){return V.createElement(wYt,ft({},this.props,{ref:this.saveUploader}))}}]),r}(m.Component);fe(Oie,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Cq,onError:Cq,onSuccess:Cq,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const xYt=e=>{const{componentCls:n,iconCls:r}=e;return{[`${n}-wrapper`]:{[`${n}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Ye(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[n]:{padding:e.padding},[`${n}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Ye(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${n}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
&:not(${n}-disabled):hover,
&-hover:not(${n}-disabled)
`]:{borderColor:e.colorPrimaryHover},[`p${n}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${n}-text`]:{margin:`0 0 ${Ye(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${n}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${n}-disabled`]:{[`p${n}-drag-icon ${r},
p${n}-text,
p${n}-hint
`]:{color:e.colorTextDisabled}}}}}},TYt=e=>{const{componentCls:n,iconCls:r,fontSize:i,lineHeight:o,calc:a}=e,s=`${n}-list-item`,l=`${s}-actions`,c=`${s}-action`;return{[`${n}-wrapper`]:{[`${n}-list`]:Object.assign(Object.assign({},Nm()),{lineHeight:e.lineHeight,[s]:{position:"relative",height:a(e.lineHeight).mul(i).equal(),marginTop:e.marginXS,fontSize:i,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:Object.assign(Object.assign({},Sf),{padding:`0 ${Ye(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{whiteSpace:"nowrap",[c]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
${c}:focus-visible,
&.picture ${c}
`]:{opacity:1}},[`${n}-icon ${r}`]:{color:e.colorTextDescription,fontSize:i},[`${s}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(i).add(e.paddingXS).equal(),fontSize:i,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${s}:hover ${c}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${n}-icon ${r}`]:{color:e.colorError},[l]:{[`${r}, ${r}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${n}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},OYt=e=>{const{componentCls:n}=e,r=new kr("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=new kr("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${n}-animate-inline`;return[{[`${n}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:r},[`${o}-leave`]:{animationName:i}}},{[`${n}-wrapper`]:Iue(e)},r,i]},RYt=e=>{const{componentCls:n,iconCls:r,uploadThumbnailSize:i,uploadProgressOffset:o,calc:a}=e,s=`${n}-list`,l=`${s}-item`;return{[`${n}-wrapper`]:{[`
${s}${s}-picture,
${s}${s}-picture-card,
${s}${s}-picture-circle
`]:{[l]:{position:"relative",height:a(i).add(a(e.lineWidth).mul(2)).add(a(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},Sf),{width:i,height:i,lineHeight:Ye(a(i).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:o,width:`calc(100% - ${Ye(a(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:a(i).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${r}`]:{[`svg path[fill='${tC[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${tC.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:o}}},[`${s}${s}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},IYt=e=>{const{componentCls:n,iconCls:r,fontSizeLG:i,colorTextLightSolid:o,calc:a}=e,s=`${n}-list`,l=`${s}-item`,c=e.uploadPicCardSize;return{[`
${n}-wrapper${n}-picture-card-wrapper,
${n}-wrapper${n}-picture-circle-wrapper
`]:Object.assign(Object.assign({},Nm()),{display:"block",[`${n}${n}-select`]:{width:c,height:c,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${Ye(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${n}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${n}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${s}${s}-picture-card, ${s}${s}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${s}-item-container`]:{display:"inline-block",width:c,height:c,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Ye(a(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Ye(a(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
${r}-eye,
${r}-download,
${r}-delete
`]:{zIndex:10,width:i,margin:`0 ${Ye(e.marginXXS)}`,fontSize:i,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${Ye(a(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Ye(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${n}-wrapper${n}-picture-circle-wrapper`]:{[`${n}${n}-select`]:{borderRadius:"50%"}}}},NYt=e=>{const{componentCls:n}=e;return{[`${n}-rtl`]:{direction:"rtl"}}},MYt=e=>{const{componentCls:n,colorTextDisabled:r}=e;return{[`${n}-wrapper`]:Object.assign(Object.assign({},li(e)),{[n]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${n}-select`]:{display:"inline-block"},[`${n}-hidden`]:{display:"none"},[`${n}-disabled`]:{color:r,cursor:"not-allowed"}})}},PYt=e=>({actionsColor:e.colorTextDescription}),AYt=Yr("Upload",e=>{const{fontSizeHeading3:n,fontHeight:r,lineWidth:i,controlHeightLG:o,calc:a}=e,s=wr(e,{uploadThumbnailSize:a(n).mul(2).equal(),uploadProgressOffset:a(a(r).div(2)).add(i).equal(),uploadPicCardSize:a(o).mul(2.55).equal()});return[MYt(s),xYt(s),RYt(s),IYt(s),TYt(s),OYt(s),NYt(s),fk(s)]},PYt);function n4(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 r4(e,n){const r=Tt(n),i=r.findIndex(o=>{let{uid:a}=o;return a===e.uid});return i===-1?r.push(e):r[i]=e,r}function wq(e,n){const r=e.uid!==void 0?"uid":"name";return n.filter(i=>i[r]===e[r])[0]}function DYt(e,n){const r=e.uid!==void 0?"uid":"name",i=n.filter(o=>o[r]!==e[r]);return i.length===n.length?null:i}const kYt=function(){const n=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),i=n[n.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(i)||[""])[0]},lGe=e=>e.indexOf("image/")===0,LYt=e=>{if(e.type&&!e.thumbUrl)return lGe(e.type);const n=e.thumbUrl||e.url||"",r=kYt(n);return/^data:image\//.test(n)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(n)||r)},z_=200;function $Yt(e){return new Promise(n=>{if(!e.type||!lGe(e.type)){n("");return}const r=document.createElement("canvas");r.width=z_,r.height=z_,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${z_}px; height: ${z_}px; z-index: 9999; display: none;`,document.body.appendChild(r);const i=r.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:a,height:s}=o;let l=z_,c=z_,u=0,d=0;a>s?(c=s*(z_/a),d=-(c-l)/2):(l=a*(z_/s),u=-(l-c)/2),i.drawImage(o,u,d,l,c);const f=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(o.src),n(f)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(o.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&n(a.result)},a.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const FYt=m.forwardRef((e,n)=>{let{prefixCls:r,className:i,style:o,locale:a,listType:s,file:l,items:c,progress:u,iconRender:d,actionIconRender:f,itemRender:p,isImgUrl:h,showPreviewIcon:g,showRemoveIcon:v,showDownloadIcon:y,previewIcon:_,removeIcon:S,downloadIcon:b,extra:E,onPreview:w,onDownload:C,onClose:x}=e;var T,R;const{status:O}=l,[M,P]=m.useState(O);m.useEffect(()=>{O!=="removed"&&P(O)},[O]);const[k,$]=m.useState(!1);m.useEffect(()=>{const me=setTimeout(()=>{$(!0)},300);return()=>{clearTimeout(me)}},[]);const U=d(l);let z=m.createElement("div",{className:`${r}-icon`},U);if(s==="picture"||s==="picture-card"||s==="picture-circle")if(M==="uploading"||!l.thumbUrl&&!l.url){const me=Ce(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:M!=="uploading"});z=m.createElement("div",{className:me},U)}else{const me=h!=null&&h(l)?m.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:`${r}-list-item-image`,crossOrigin:l.crossOrigin}):U,ve=Ce(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:h&&!h(l)});z=m.createElement("a",{className:ve,onClick:he=>w(l,he),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},me)}const D=Ce(`${r}-list-item`,`${r}-list-item-${M}`),B=typeof l.linkProps=="string"?JSON.parse(l.linkProps):l.linkProps,Y=(typeof v=="function"?v(l):v)?f((typeof S=="function"?S(l):S)||m.createElement(sw,null),()=>x(l),r,a.removeFile,!0):null,q=(typeof y=="function"?y(l):y)&&M==="done"?f((typeof b=="function"?b(l):b)||m.createElement(Ok,null),()=>C(l),r,a.downloadFile):null,K=s!=="picture-card"&&s!=="picture-circle"&&m.createElement("span",{key:"download-delete",className:Ce(`${r}-list-item-actions`,{picture:s==="picture"})},q,Y),H=typeof E=="function"?E(l):E,G=H&&m.createElement("span",{className:`${r}-list-item-extra`},H),Q=Ce(`${r}-list-item-name`),le=l.url?m.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Q,title:l.name},B,{href:l.url,onClick:me=>w(l,me)}),l.name,G):m.createElement("span",{key:"view",className:Q,onClick:me=>w(l,me),title:l.name},l.name,G),Z=(typeof g=="function"?g(l):g)&&(l.url||l.thumbUrl)?m.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:me=>w(l,me),title:a.previewFile},typeof _=="function"?_(l):_||m.createElement(wk,null)):null,j=(s==="picture-card"||s==="picture-circle")&&M!=="uploading"&&m.createElement("span",{className:`${r}-list-item-actions`},Z,M==="done"&&q,Y),{getPrefixCls:F}=m.useContext(Cn),te=F(),oe=m.createElement("div",{className:D},z,le,K,j,k&&m.createElement(Ws,{motionName:`${te}-fade`,visible:M==="uploading",motionDeadline:2e3},me=>{let{className:ve}=me;const he="percent"in l?m.createElement(NVe,Object.assign({},u,{type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]})):null;return m.createElement("div",{className:Ce(`${r}-list-item-progress`,ve)},he)})),de=l.response&&typeof l.response=="string"?l.response:((T=l.error)===null||T===void 0?void 0:T.statusText)||((R=l.error)===null||R===void 0?void 0:R.message)||a.uploadError,pe=M==="error"?m.createElement(Ef,{title:de,getPopupContainer:me=>me.parentNode},oe):oe;return m.createElement("div",{className:Ce(`${r}-list-item-container`,i),style:o,ref:n},p?p(pe,l,c,{download:C.bind(null,l),preview:w.bind(null,l),remove:x.bind(null,l)}):pe)}),BYt=(e,n)=>{const{listType:r="text",previewFile:i=$Yt,onPreview:o,onDownload:a,onRemove:s,locale:l,iconRender:c,isImageUrl:u=LYt,prefixCls:d,items:f=[],showPreviewIcon:p=!0,showRemoveIcon:h=!0,showDownloadIcon:g=!1,removeIcon:v,previewIcon:y,downloadIcon:_,extra:S,progress:b={size:[-1,2],showInfo:!1},appendAction:E,appendActionVisible:w=!0,itemRender:C,disabled:x}=e,T=bUe(),[R,O]=m.useState(!1),M=["picture-card","picture-circle"].includes(r);m.useEffect(()=>{r.startsWith("picture")&&(f||[]).forEach(G=>{!(G.originFileObj instanceof File||G.originFileObj instanceof Blob)||G.thumbUrl!==void 0||(G.thumbUrl="",i==null||i(G.originFileObj).then(Q=>{G.thumbUrl=Q||"",T()}))})},[r,f,i]),m.useEffect(()=>{O(!0)},[]);const P=(G,Q)=>{if(o)return Q==null||Q.preventDefault(),o(G)},k=G=>{typeof a=="function"?a(G):G.url&&window.open(G.url)},$=G=>{s==null||s(G)},U=G=>{if(c)return c(G,r);const Q=G.status==="uploading";if(r.startsWith("picture")){const le=r==="picture"?m.createElement(Mm,null):l.uploading,Z=u!=null&&u(G)?m.createElement(kVt,null):m.createElement(Zzt,null);return Q?le:Z}return Q?m.createElement(Mm,null):m.createElement(PVt,null)},z=(G,Q,le,Z,j)=>{const F={type:"text",size:"small",title:Z,onClick:te=>{var oe,de;Q(),m.isValidElement(G)&&((de=(oe=G.props).onClick)===null||de===void 0||de.call(oe,te))},className:`${le}-list-item-action`};return j&&(F.disabled=x),m.isValidElement(G)?m.createElement(qn,Object.assign({},F,{icon:Ys(G,Object.assign(Object.assign({},G.props),{onClick:()=>{}}))})):m.createElement(qn,Object.assign({},F),m.createElement("span",null,G))};m.useImperativeHandle(n,()=>({handlePreview:P,handleDownload:k}));const{getPrefixCls:D}=m.useContext(Cn),B=D("upload",d),Y=D(),q=Ce(`${B}-list`,`${B}-list-${r}`),K=m.useMemo(()=>Wr(hA(Y),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Y]),H=Object.assign(Object.assign({},M?{}:K),{motionDeadline:2e3,motionName:`${B}-${M?"animate-inline":"animate"}`,keys:Tt(f.map(G=>({key:G.uid,file:G}))),motionAppear:R});return m.createElement("div",{className:q},m.createElement(A9,Object.assign({},H,{component:!1}),G=>{let{key:Q,file:le,className:Z,style:j}=G;return m.createElement(FYt,{key:Q,locale:l,prefixCls:B,className:Z,style:j,file:le,items:f,progress:b,listType:r,isImgUrl:u,showPreviewIcon:p,showRemoveIcon:h,showDownloadIcon:g,removeIcon:v,previewIcon:y,downloadIcon:_,extra:S,iconRender:U,actionIconRender:z,itemRender:C,onPreview:P,onDownload:k,onClose:$})}),E&&m.createElement(Ws,Object.assign({},H,{visible:w,forceRender:!0}),G=>{let{className:Q,style:le}=G;return Ys(E,Z=>({className:Ce(Z.className,Q),style:Object.assign(Object.assign(Object.assign({},le),{pointerEvents:Q?"none":void 0}),Z.style)}))}))},jYt=m.forwardRef(BYt);var UYt=function(e,n,r,i){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(d){try{u(i.next(d))}catch(f){s(f)}}function c(d){try{u(i.throw(d))}catch(f){s(f)}}function u(d){d.done?a(d.value):o(d.value).then(l,c)}u((i=i.apply(e,[])).next())})};const d2=`__LIST_IGNORE_${Date.now()}__`,HYt=(e,n)=>{const{fileList:r,defaultFileList:i,onRemove:o,showUploadList:a=!0,listType:s="text",onPreview:l,onDownload:c,onChange:u,onDrop:d,previewFile:f,disabled:p,locale:h,iconRender:g,isImageUrl:v,progress:y,prefixCls:_,className:S,type:b="select",children:E,style:w,itemRender:C,maxCount:x,data:T={},multiple:R=!1,hasControlInside:O=!0,action:M="",accept:P="",supportServerRender:k=!0,rootClassName:$}=e,U=m.useContext(xs),z=p??U,[D,B]=dr(i||[],{value:r,postState:ge=>ge??[]}),[Y,q]=m.useState("drop"),K=m.useRef(null),H=m.useRef(null);m.useMemo(()=>{const ge=Date.now();(r||[]).forEach((Ve,st)=>{!Ve.uid&&!Object.isFrozen(Ve)&&(Ve.uid=`__AUTO__${ge}_${st}__`)})},[r]);const G=(ge,Ve,st)=>{let Je=Tt(Ve),ot=!1;x===1?Je=Je.slice(-1):x&&(ot=Je.length>x,Je=Je.slice(0,x)),Us.flushSync(()=>{B(Je)});const Xe={file:ge,fileList:Je};st&&(Xe.event=st),(!ot||ge.status==="removed"||Je.some(Ze=>Ze.uid===ge.uid))&&Us.flushSync(()=>{u==null||u(Xe)})},Q=(ge,Ve)=>UYt(void 0,void 0,void 0,function*(){const{beforeUpload:st,transformFile:Je}=e;let ot=ge;if(st){const Xe=yield st(ge,Ve);if(Xe===!1)return!1;if(delete ge[d2],Xe===d2)return Object.defineProperty(ge,d2,{value:!0,configurable:!0}),!1;typeof Xe=="object"&&Xe&&(ot=Xe)}return Je&&(ot=yield Je(ot)),ot}),le=ge=>{const Ve=ge.filter(ot=>!ot.file[d2]);if(!Ve.length)return;const st=Ve.map(ot=>n4(ot.file));let Je=Tt(D);st.forEach(ot=>{Je=r4(ot,Je)}),st.forEach((ot,Xe)=>{let Ze=ot;if(Ve[Xe].parsedFile)ot.status="uploading";else{const{originFileObj:bt}=ot;let at;try{at=new File([bt],bt.name,{type:bt.type})}catch{at=new Blob([bt],{type:bt.type}),at.name=bt.name,at.lastModifiedDate=new Date,at.lastModified=new Date().getTime()}at.uid=ot.uid,Ze=at}G(Ze,Je)})},Z=(ge,Ve,st)=>{try{typeof ge=="string"&&(ge=JSON.parse(ge))}catch{}if(!wq(Ve,D))return;const Je=n4(Ve);Je.status="done",Je.percent=100,Je.response=ge,Je.xhr=st;const ot=r4(Je,D);G(Je,ot)},j=(ge,Ve)=>{if(!wq(Ve,D))return;const st=n4(Ve);st.status="uploading",st.percent=ge.percent;const Je=r4(st,D);G(st,Je,ge)},F=(ge,Ve,st)=>{if(!wq(st,D))return;const Je=n4(st);Je.error=ge,Je.response=Ve,Je.status="error";const ot=r4(Je,D);G(Je,ot)},te=ge=>{let Ve;Promise.resolve(typeof o=="function"?o(ge):o).then(st=>{var Je;if(st===!1)return;const ot=DYt(ge,D);ot&&(Ve=Object.assign(Object.assign({},ge),{status:"removed"}),D==null||D.forEach(Xe=>{const Ze=Ve.uid!==void 0?"uid":"name";Xe[Ze]===Ve[Ze]&&!Object.isFrozen(Xe)&&(Xe.status="removed")}),(Je=K.current)===null||Je===void 0||Je.abort(Ve),G(Ve,ot))})},oe=ge=>{q(ge.type),ge.type==="drop"&&(d==null||d(ge))};m.useImperativeHandle(n,()=>({onBatchStart:le,onSuccess:Z,onProgress:j,onError:F,fileList:D,upload:K.current,nativeElement:H.current}));const{getPrefixCls:de,direction:pe,upload:me}=m.useContext(Cn),ve=de("upload",_),he=Object.assign(Object.assign({onBatchStart:le,onError:F,onProgress:j,onSuccess:Z},e),{data:T,multiple:R,action:M,accept:P,supportServerRender:k,prefixCls:ve,disabled:z,beforeUpload:Q,onChange:void 0,hasControlInside:O});delete he.className,delete he.style,(!E||z)&&delete he.id;const be=`${ve}-wrapper`,[we,De,Ae]=AYt(ve,be),[Ee]=Mu("Upload",Op.Upload),{showRemoveIcon:Re,showPreviewIcon:Te,showDownloadIcon:Oe,removeIcon:Ne,previewIcon:je,downloadIcon:ne,extra:J}=typeof a=="boolean"?{}:a,ae=typeof Re>"u"?!z:Re,Se=(ge,Ve)=>a?m.createElement(jYt,{prefixCls:ve,listType:s,items:D,previewFile:f,onPreview:l,onDownload:c,onRemove:te,showRemoveIcon:ae,showPreviewIcon:Te,showDownloadIcon:Oe,removeIcon:Ne,previewIcon:je,downloadIcon:ne,iconRender:g,extra:J,locale:Object.assign(Object.assign({},Ee),h),isImageUrl:v,progress:y,appendAction:ge,appendActionVisible:Ve,itemRender:C,disabled:z}):ge,xe=Ce(be,S,$,De,Ae,me==null?void 0:me.className,{[`${ve}-rtl`]:pe==="rtl",[`${ve}-picture-card-wrapper`]:s==="picture-card",[`${ve}-picture-circle-wrapper`]:s==="picture-circle"}),ue=Object.assign(Object.assign({},me==null?void 0:me.style),w);if(b==="drag"){const ge=Ce(De,ve,`${ve}-drag`,{[`${ve}-drag-uploading`]:D.some(Ve=>Ve.status==="uploading"),[`${ve}-drag-hover`]:Y==="dragover",[`${ve}-disabled`]:z,[`${ve}-rtl`]:pe==="rtl"});return we(m.createElement("span",{className:xe,ref:H},m.createElement("div",{className:ge,style:ue,onDrop:oe,onDragOver:oe,onDragLeave:oe},m.createElement(Oie,Object.assign({},he,{ref:K,className:`${ve}-btn`}),m.createElement("div",{className:`${ve}-drag-container`},E))),Se()))}const Me=Ce(ve,`${ve}-select`,{[`${ve}-disabled`]:z,[`${ve}-hidden`]:!E}),$e=m.createElement("div",{className:Me},m.createElement(Oie,Object.assign({},he,{ref:K})));return we(s==="picture-card"||s==="picture-circle"?m.createElement("span",{className:xe,ref:H},Se($e,!!E)):m.createElement("span",{className:xe,ref:H},$e,Se()))},cGe=m.forwardRef(HYt);var zYt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const VYt=m.forwardRef((e,n)=>{var{style:r,height:i,hasControlInside:o=!1}=e,a=zYt(e,["style","height","hasControlInside"]);return m.createElement(cGe,Object.assign({ref:n,hasControlInside:o},a,{type:"drag",style:Object.assign(Object.assign({},r),{height:i})}))}),og=cGe;og.Dragger=VYt;og.LIST_IGNORE=d2;const GYt=m.forwardRef((e,n)=>{const{prefixCls:r,className:i,children:o,size:a,style:s={}}=e,l=Ce(`${r}-panel`,{[`${r}-panel-hidden`]:a===0},i),c=a!==void 0;return V.createElement("div",{ref:n,className:l,style:Object.assign(Object.assign({},s),{flexBasis:c?a:"auto",flexGrow:c?0:1})},o)}),WYt=()=>null;var YYt=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function qYt(e){if(e&&typeof e=="object")return e;const n=!!e;return{start:n,end:n}}function KYt(e){return m.useMemo(()=>Tl(e).filter(m.isValidElement).map(r=>{const{props:i}=r,{collapsible:o}=i,a=YYt(i,["collapsible"]);return Object.assign(Object.assign({},a),{collapsible:qYt(o)})}),[e])}function XYt(e,n){return m.useMemo(()=>{const r=[];for(let i=0;i<e.length-1;i+=1){const o=e[i],a=e[i+1],s=n[i],l=n[i+1],{resizable:c=!0,min:u,collapsible:d}=o,{resizable:f=!0,min:p,collapsible:h}=a,g=c&&f&&(s!==0||!u)&&(l!==0||!p),v=d.end&&s>0||h.start&&l===0&&s>0,y=h.start&&l>0||d.end&&s===0&&l>0;r[i]={resizable:g,startCollapsible:!!v,endCollapsible:!!y}}return r},[n,e])}function g6(e){return Number(e.slice(0,-1))/100}function xq(e){return typeof e=="string"&&e.endsWith("%")}function QYt(e,n){const r=e.map(g=>g.size),i=e.length,o=n||0,a=g=>g*o,[s,l]=V.useState(()=>e.map(g=>g.defaultSize)),c=V.useMemo(()=>{var g;const v=[];for(let y=0;y<i;y+=1)v[y]=(g=r[y])!==null&&g!==void 0?g:s[y];return v},[i,s,r]),u=V.useMemo(()=>{let g=[],v=0;for(let _=0;_<i;_+=1){const S=c[_];if(xq(S))g[_]=g6(S);else if(S||S===0){const b=Number(S);Number.isNaN(b)||(g[_]=b/o)}else v+=1,g[_]=void 0}const y=g.reduce((_,S)=>_+(S||0),0);if(y>1||!v){const _=1/y;g=g.map(S=>S===void 0?0:S*_)}else{const _=(1-y)/v;g=g.map(S=>S===void 0?_:S)}return g},[c,o]),d=V.useMemo(()=>u.map(a),[u,o]),f=V.useMemo(()=>e.map(g=>xq(g.min)?g6(g.min):(g.min||0)/o),[e,o]),p=V.useMemo(()=>e.map(g=>xq(g.max)?g6(g.max):(g.max||o)/o),[e,o]);return[V.useMemo(()=>n?d:c,[d,n]),d,u,f,p,l]}function ZYt(e,n,r,i,o){const a=e.map(b=>[b.min,b.max]),s=i||0,l=b=>b*s;function c(b,E){return typeof b=="string"?l(g6(b)):b??E}const[u,d]=m.useState([]),f=m.useRef([]),[p,h]=m.useState(null),g=()=>r.map(l);return[b=>{d(g()),h({index:b,confirmed:!1})},(b,E)=>{var w;let C=null;if((!p||!p.confirmed)&&E!==0){if(E>0)C=b,h({index:b,confirmed:!0});else for(let U=b;U>=0;U-=1)if(u[U]>0&&n[U].resizable){C=U,h({index:U,confirmed:!0});break}}const x=(w=C??(p==null?void 0:p.index))!==null&&w!==void 0?w:b,T=Tt(u),R=x+1,O=c(a[x][0],0),M=c(a[R][0],0),P=c(a[x][1],s),k=c(a[R][1],s);let $=E;return T[x]+$<O&&($=O-T[x]),T[R]-$<M&&($=T[R]-M),T[x]+$>P&&($=P-T[x]),T[R]-$>k&&($=T[R]-k),T[x]+=$,T[R]-=$,o(T),T},()=>{h(null)},(b,E)=>{const w=g(),C=E==="start"?b:b+1,x=E==="start"?b+1:b,T=w[C],R=w[x];if(T!==0&&R!==0)w[C]=0,w[x]+=T,f.current[b]=T;else{const O=T+R,M=c(a[C][0],0),P=c(a[C][1],s),k=c(a[x][0],0),$=c(a[x][1],s),U=Math.max(M,O-$),D=(Math.min(P,O-k)-U)/2,B=f.current[b],Y=O-B;B&&B<=$&&B>=k&&Y<=P&&Y>=M?(w[x]=B,w[C]=Y):(w[C]-=D,w[x]+=D)}return o(w),w},p==null?void 0:p.index]}function Tq(e){return typeof e=="number"&&!Number.isNaN(e)?Math.round(e):0}const JYt=e=>{const{prefixCls:n,vertical:r,index:i,active:o,ariaNow:a,ariaMin:s,ariaMax:l,resizable:c,startCollapsible:u,endCollapsible:d,onOffsetStart:f,onOffsetUpdate:p,onOffsetEnd:h,onCollapse:g,lazy:v,containerSize:y}=e,_=`${n}-bar`,[S,b]=m.useState(null),[E,w]=m.useState(0),C=r?0:E,x=r?E:0,T=z=>{c&&z.currentTarget&&(b([z.pageX,z.pageY]),f(i))},R=z=>{if(c&&z.touches.length===1){const D=z.touches[0];b([D.pageX,D.pageY]),f(i)}},O=z=>{const D=y*a/100,B=D+z,Y=Math.max(0,y*s/100),q=Math.min(y,y*l/100);return Math.max(Y,Math.min(q,B))-D},M=Sr((z,D)=>{const B=O(r?D:z);w(B)}),P=Sr(()=>{p(i,C,x),w(0)});V.useEffect(()=>{if(S){const z=q=>{const{pageX:K,pageY:H}=q,G=K-S[0],Q=H-S[1];v?M(G,Q):p(i,G,Q)},D=()=>{v&&P(),b(null),h()},B=q=>{if(q.touches.length===1){const K=q.touches[0],H=K.pageX-S[0],G=K.pageY-S[1];v?M(H,G):p(i,H,G)}},Y=()=>{v&&P(),b(null),h()};return window.addEventListener("touchmove",B),window.addEventListener("touchend",Y),window.addEventListener("mousemove",z),window.addEventListener("mouseup",D),()=>{window.removeEventListener("mousemove",z),window.removeEventListener("mouseup",D),window.removeEventListener("touchmove",B),window.removeEventListener("touchend",Y)}}},[S,v,r,i,y,a,s,l]);const k={[`--${_}-preview-offset`]:`${E}px`},$=r?Dze:yA,U=r?lI:w0;return V.createElement("div",{className:_,role:"separator","aria-valuenow":Tq(a),"aria-valuemin":Tq(s),"aria-valuemax":Tq(l)},v&&V.createElement("div",{className:Ce(`${_}-preview`,{[`${_}-preview-active`]:!!E}),style:k}),V.createElement("div",{className:Ce(`${_}-dragger`,{[`${_}-dragger-disabled`]:!c,[`${_}-dragger-active`]:o}),onMouseDown:T,onTouchStart:R}),u&&V.createElement("div",{className:Ce(`${_}-collapse-bar`,`${_}-collapse-bar-start`),onClick:()=>g(i,"start")},V.createElement($,{className:Ce(`${_}-collapse-icon`,`${_}-collapse-start`)})),d&&V.createElement("div",{className:Ce(`${_}-collapse-bar`,`${_}-collapse-bar-end`),onClick:()=>g(i,"end")},V.createElement(U,{className:Ce(`${_}-collapse-icon`,`${_}-collapse-end`)})))},eqt=e=>{const{componentCls:n}=e;return{[`&-rtl${n}-horizontal`]:{[`> ${n}-bar`]:{[`${n}-bar-collapse-previous`]:{insetInlineEnd:0,insetInlineStart:"unset"},[`${n}-bar-collapse-next`]:{insetInlineEnd:"unset",insetInlineStart:0}}},[`&-rtl${n}-vertical`]:{[`> ${n}-bar`]:{[`${n}-bar-collapse-previous`]:{insetInlineEnd:"50%",insetInlineStart:"unset"},[`${n}-bar-collapse-next`]:{insetInlineEnd:"50%",insetInlineStart:"unset"}}}}},i4={position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"},tqt=e=>{const{componentCls:n,colorFill:r,splitBarDraggableSize:i,splitBarSize:o,splitTriggerSize:a,controlItemBgHover:s,controlItemBgActive:l,controlItemBgActiveHover:c,prefixCls:u}=e,d=`${n}-bar`,f=`${n}-mask`,p=`${n}-panel`,h=e.calc(a).div(2).equal(),g=`${u}-bar-preview-offset`,v={position:"absolute",background:e.colorPrimary,opacity:.2,pointerEvents:"none",transition:"none",zIndex:1,display:"none"};return{[n]:Object.assign(Object.assign(Object.assign({},li(e)),{display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${d}`]:{flex:"none",position:"relative",userSelect:"none",[`${d}-dragger`]:Object.assign(Object.assign({},i4),{zIndex:1,"&::before":Object.assign({content:'""',background:s},i4),"&::after":Object.assign({content:'""',background:r},i4),[`&:hover:not(${d}-dragger-active)`]:{"&::before":{background:l}},"&-active":{zIndex:2,"&::before":{background:c}},[`&-disabled${d}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:s}},"&::after":{display:"none"}}}),[`${d}-collapse-bar`]:Object.assign(Object.assign({},i4),{zIndex:e.zIndexPopupBase,background:s,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{background:l},"&:active":{background:c}}),"&:hover, &:active":{[`${d}-collapse-bar`]:{opacity:1}}},[f]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${d}`]:{width:0,[`${d}-preview`]:Object.assign(Object.assign({height:"100%",width:o},v),{[`&${d}-preview-active`]:{display:"block",transform:`translateX(var(--${g}))`}}),[`${d}-dragger`]:{cursor:"col-resize",height:"100%",width:a,"&::before":{height:"100%",width:o},"&::after":{height:i,width:o}},[`${d}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:h},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:!0,value:h},right:{_skip_check_:!0,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${d}`]:{height:0,[`${d}-preview`]:Object.assign(Object.assign({height:o,width:"100%"},v),{[`&${d}-preview-active`]:{display:"block",transform:`translateY(var(--${g}))`}}),[`${d}-dragger`]:{cursor:"row-resize",width:"100%",height:a,"&::before":{width:"100%",height:o},"&::after":{width:i,height:o}},[`${d}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:h,transform:"translateX(-50%)"},"&-end":{top:h,bottom:"auto",transform:"translateX(-50%)"}}}},[p]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{padding:0,overflow:"hidden"},[`&:has(${n}:only-child)`]:{overflow:"hidden"}}}),eqt(e))}},nqt=e=>{var n;const r=e.splitBarSize||2,i=e.splitTriggerSize||6,o=e.resizeSpinnerSize||20,a=(n=e.splitBarDraggableSize)!==null&&n!==void 0?n:o;return{splitBarSize:r,splitTriggerSize:i,splitBarDraggableSize:a,resizeSpinnerSize:o}},rqt=Yr("Splitter",e=>[tqt(e)],nqt),iqt=e=>{const{prefixCls:n,className:r,style:i,layout:o="horizontal",children:a,rootClassName:s,onResizeStart:l,onResize:c,onResizeEnd:u,lazy:d}=e,{getPrefixCls:f,direction:p,splitter:h}=V.useContext(Cn),g=f("splitter",n),v=po(g),[y,_,S]=rqt(g,v),b=o==="vertical",E=p==="rtl",w=!b&&E,C=KYt(a),[x,T]=m.useState(),R=oe=>{const{offsetWidth:de,offsetHeight:pe}=oe,me=b?pe:de;me!==0&&T(me)},[O,M,P,k,$,U]=QYt(C,x),z=XYt(C,M),[D,B,Y,q,K]=ZYt(C,z,P,x,U),H=Sr(oe=>{D(oe),l==null||l(M)}),G=Sr((oe,de)=>{const pe=B(oe,de);c==null||c(pe)}),Q=Sr(()=>{Y(),u==null||u(M)}),le=Sr((oe,de)=>{const pe=q(oe,de);c==null||c(pe),u==null||u(pe)}),Z=Ce(g,r,`${g}-${o}`,{[`${g}-rtl`]:E},s,h==null?void 0:h.className,S,v,_),j=`${g}-mask`,F=V.useMemo(()=>{const oe=[];let de=0;for(let pe=0;pe<C.length;pe+=1)de+=P[pe],oe.push(de);return oe},[P]),te=Object.assign(Object.assign({},h==null?void 0:h.style),i);return y(V.createElement(Hc,{onResize:R},V.createElement("div",{style:te,className:Z},C.map((oe,de)=>{const pe=V.createElement(GYt,Object.assign({},oe,{prefixCls:g,size:O[de]}));let me=null;const ve=z[de];if(ve){const he=(F[de-1]||0)+k[de],be=(F[de+1]||100)-$[de+1],we=(F[de-1]||0)+$[de],De=(F[de+1]||100)-k[de+1];me=V.createElement(JYt,{lazy:d,index:de,active:K===de,prefixCls:g,vertical:b,resizable:ve.resizable,ariaNow:F[de]*100,ariaMin:Math.max(he,be)*100,ariaMax:Math.min(we,De)*100,startCollapsible:ve.startCollapsible,endCollapsible:ve.endCollapsible,onOffsetStart:H,onOffsetUpdate:(Ae,Ee,Re)=>{let Te=b?Re:Ee;w&&(Te=-Te),G(Ae,Te)},onOffsetEnd:Q,onCollapse:le,containerSize:x||0})}return V.createElement(V.Fragment,{key:`split-panel-${de}`},pe,me)}),typeof K=="number"&&V.createElement("div",{"aria-hidden":!0,className:Ce(j,`${j}-${o}`)}))))},m6=iqt;m6.Panel=WYt;let Nt;const oqt=()=>{const e=Z9.useApp();return Nt=e.message,e.modal,e.notification,null};var uGe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){var r=function(X,se){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ye,Ie){ye.__proto__=Ie}||function(ye,Ie){for(var Le in Ie)Object.prototype.hasOwnProperty.call(Ie,Le)&&(ye[Le]=Ie[Le])})(X,se)},i=function(){return(i=Object.assign||function(X){for(var se,ye=1,Ie=arguments.length;ye<Ie;ye++)for(var Le in se=arguments[ye])Object.prototype.hasOwnProperty.call(se,Le)&&(X[Le]=se[Le]);return X}).apply(this,arguments)};function o(X,se,ye){for(var Ie,Le=0,We=se.length;Le<We;Le++)!Ie&&Le in se||((Ie=Ie||Array.prototype.slice.call(se,0,Le))[Le]=se[Le]);return X.concat(Ie||Array.prototype.slice.call(se))}var a=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:oo,s=Object.keys,l=Array.isArray;function c(X,se){return typeof se!="object"||s(se).forEach(function(ye){X[ye]=se[ye]}),X}typeof Promise>"u"||a.Promise||(a.Promise=Promise);var u=Object.getPrototypeOf,d={}.hasOwnProperty;function f(X,se){return d.call(X,se)}function p(X,se){typeof se=="function"&&(se=se(u(X))),(typeof Reflect>"u"?s:Reflect.ownKeys)(se).forEach(function(ye){g(X,ye,se[ye])})}var h=Object.defineProperty;function g(X,se,ye,Ie){h(X,se,c(ye&&f(ye,"get")&&typeof ye.get=="function"?{get:ye.get,set:ye.set,configurable:!0}:{value:ye,configurable:!0,writable:!0},Ie))}function v(X){return{from:function(se){return X.prototype=Object.create(se.prototype),g(X.prototype,"constructor",X),{extend:p.bind(null,X.prototype)}}}}var y=Object.getOwnPropertyDescriptor,_=[].slice;function S(X,se,ye){return _.call(X,se,ye)}function b(X,se){return se(X)}function E(X){if(!X)throw new Error("Assertion Failed")}function w(X){a.setImmediate?setImmediate(X):setTimeout(X,0)}function C(X,se){if(typeof se=="string"&&f(X,se))return X[se];if(!se)return X;if(typeof se!="string"){for(var ye=[],Ie=0,Le=se.length;Ie<Le;++Ie){var We=C(X,se[Ie]);ye.push(We)}return ye}var rt=se.indexOf(".");if(rt!==-1){var ut=X[se.substr(0,rt)];return ut==null?void 0:C(ut,se.substr(rt+1))}}function x(X,se,ye){if(X&&se!==void 0&&!("isFrozen"in Object&&Object.isFrozen(X)))if(typeof se!="string"&&"length"in se){E(typeof ye!="string"&&"length"in ye);for(var Ie=0,Le=se.length;Ie<Le;++Ie)x(X,se[Ie],ye[Ie])}else{var We,rt,ut=se.indexOf(".");ut!==-1?(We=se.substr(0,ut),(rt=se.substr(ut+1))===""?ye===void 0?l(X)&&!isNaN(parseInt(We))?X.splice(We,1):delete X[We]:X[We]=ye:x(ut=!(ut=X[We])||!f(X,We)?X[We]={}:ut,rt,ye)):ye===void 0?l(X)&&!isNaN(parseInt(se))?X.splice(se,1):delete X[se]:X[se]=ye}}function T(X){var se,ye={};for(se in X)f(X,se)&&(ye[se]=X[se]);return ye}var R=[].concat;function O(X){return R.apply([],X)}var ur="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(O([8,16,32,64].map(function(X){return["Int","Uint","Float"].map(function(se){return se+X+"Array"})}))).filter(function(X){return a[X]}),M=new Set(ur.map(function(X){return a[X]})),P=null;function k(X){return P=new WeakMap,X=function se(ye){if(!ye||typeof ye!="object")return ye;var Ie=P.get(ye);if(Ie)return Ie;if(l(ye)){Ie=[],P.set(ye,Ie);for(var Le=0,We=ye.length;Le<We;++Le)Ie.push(se(ye[Le]))}else if(M.has(ye.constructor))Ie=ye;else{var rt,ut=u(ye);for(rt in Ie=ut===Object.prototype?{}:Object.create(ut),P.set(ye,Ie),ye)f(ye,rt)&&(Ie[rt]=se(ye[rt]))}return Ie}(X),P=null,X}var $={}.toString;function U(X){return $.call(X).slice(8,-1)}var z=typeof Symbol<"u"?Symbol.iterator:"@@iterator",D=typeof z=="symbol"?function(X){var se;return X!=null&&(se=X[z])&&se.apply(X)}:function(){return null};function B(X,se){return se=X.indexOf(se),0<=se&&X.splice(se,1),0<=se}var Y={};function q(X){var se,ye,Ie,Le;if(arguments.length===1){if(l(X))return X.slice();if(this===Y&&typeof X=="string")return[X];if(Le=D(X)){for(ye=[];!(Ie=Le.next()).done;)ye.push(Ie.value);return ye}if(X==null)return[X];if(typeof(se=X.length)!="number")return[X];for(ye=new Array(se);se--;)ye[se]=X[se];return ye}for(se=arguments.length,ye=new Array(se);se--;)ye[se]=arguments[se];return ye}var K=typeof Symbol<"u"?function(X){return X[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},je=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Fu=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(je),H={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 G(X,se){this.name=X,this.message=se}function Q(X,se){return X+". Errors: "+Object.keys(se).map(function(ye){return se[ye].toString()}).filter(function(ye,Ie,Le){return Le.indexOf(ye)===Ie}).join(`
`)}function le(X,se,ye,Ie){this.failures=se,this.failedKeys=Ie,this.successCount=ye,this.message=Q(X,se)}function Z(X,se){this.name="BulkError",this.failures=Object.keys(se).map(function(ye){return se[ye]}),this.failuresByPos=se,this.message=Q(X,this.failures)}v(G).from(Error).extend({toString:function(){return this.name+": "+this.message}}),v(le).from(G),v(Z).from(G);var j=Fu.reduce(function(X,se){return X[se]=se+"Error",X},{}),F=G,te=Fu.reduce(function(X,se){var ye=se+"Error";function Ie(Le,We){this.name=ye,Le?typeof Le=="string"?(this.message="".concat(Le).concat(We?`
`+We:""),this.inner=We||null):typeof Le=="object"&&(this.message="".concat(Le.name," ").concat(Le.message),this.inner=Le):(this.message=H[se]||ye,this.inner=null)}return v(Ie).from(F),X[se]=Ie,X},{});te.Syntax=SyntaxError,te.Type=TypeError,te.Range=RangeError;var oe=je.reduce(function(X,se){return X[se+"Error"]=te[se],X},{}),de=Fu.reduce(function(X,se){return["Syntax","Type","Range"].indexOf(se)===-1&&(X[se+"Error"]=te[se]),X},{});function pe(){}function me(X){return X}function ve(X,se){return X==null||X===me?se:function(ye){return se(X(ye))}}function he(X,se){return function(){X.apply(this,arguments),se.apply(this,arguments)}}function be(X,se){return X===pe?se:function(){var ye=X.apply(this,arguments);ye!==void 0&&(arguments[0]=ye);var Ie=this.onsuccess,Le=this.onerror;this.onsuccess=null,this.onerror=null;var We=se.apply(this,arguments);return Ie&&(this.onsuccess=this.onsuccess?he(Ie,this.onsuccess):Ie),Le&&(this.onerror=this.onerror?he(Le,this.onerror):Le),We!==void 0?We:ye}}function we(X,se){return X===pe?se:function(){X.apply(this,arguments);var ye=this.onsuccess,Ie=this.onerror;this.onsuccess=this.onerror=null,se.apply(this,arguments),ye&&(this.onsuccess=this.onsuccess?he(ye,this.onsuccess):ye),Ie&&(this.onerror=this.onerror?he(Ie,this.onerror):Ie)}}function De(X,se){return X===pe?se:function(ye){var Ie=X.apply(this,arguments);c(ye,Ie);var Le=this.onsuccess,We=this.onerror;return this.onsuccess=null,this.onerror=null,ye=se.apply(this,arguments),Le&&(this.onsuccess=this.onsuccess?he(Le,this.onsuccess):Le),We&&(this.onerror=this.onerror?he(We,this.onerror):We),Ie===void 0?ye===void 0?void 0:ye:c(Ie,ye)}}function Ae(X,se){return X===pe?se:function(){return se.apply(this,arguments)!==!1&&X.apply(this,arguments)}}function Ee(X,se){return X===pe?se:function(){var ye=X.apply(this,arguments);if(ye&&typeof ye.then=="function"){for(var Ie=this,Le=arguments.length,We=new Array(Le);Le--;)We[Le]=arguments[Le];return ye.then(function(){return se.apply(Ie,We)})}return se.apply(this,arguments)}}de.ModifyError=le,de.DexieError=G,de.BulkError=Z;var Re=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Te(X){Re=X}var Oe={},Ne=100,ur=typeof Promise>"u"?[]:function(){var X=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[X,u(X),X];var se=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[se,u(se),X]}(),je=ur[0],Fu=ur[1],ur=ur[2],Fu=Fu&&Fu.then,ne=je&&je.constructor,J=!!ur,ae=function(X,se){st.push([X,se]),xe&&(queueMicrotask(Wt),xe=!1)},Se=!0,xe=!0,ue=[],Me=[],$e=me,ge={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:pe,pgp:!1,env:{},finalize:pe},Ve=ge,st=[],Je=0,ot=[];function Xe(X){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var se=this._PSD=Ve;if(typeof X!="function"){if(X!==Oe)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&at(this,this._value))}this._state=null,this._value=null,++se.ref,function ye(Ie,Le){try{Le(function(We){if(Ie._state===null){if(We===Ie)throw new TypeError("A promise cannot be resolved with itself.");var rt=Ie._lib&&Bt();We&&typeof We.then=="function"?ye(Ie,function(ut,St){We instanceof Xe?We._then(ut,St):We.then(ut,St)}):(Ie._state=!0,Ie._value=We,pt(Ie)),rt&&Vt()}},at.bind(null,Ie))}catch(We){at(Ie,We)}}(this,X)}var Ze={get:function(){var X=Ve,se=Kt;function ye(Ie,Le){var We=this,rt=!X.global&&(X!==Ve||se!==Kt),ut=rt&&!sn(),St=new Xe(function(ze,et){Ct(We,new bt(jt(Ie,X,rt,ut),jt(Le,X,rt,ut),ze,et,X))});return this._consoleTask&&(St._consoleTask=this._consoleTask),St}return ye.prototype=Oe,ye},set:function(X){g(this,"then",X&&X.prototype===Oe?Ze:{get:function(){return X},set:Ze.set})}};function bt(X,se,ye,Ie,Le){this.onFulfilled=typeof X=="function"?X:null,this.onRejected=typeof se=="function"?se:null,this.resolve=ye,this.reject=Ie,this.psd=Le}function at(X,se){var ye,Ie;Me.push(se),X._state===null&&(ye=X._lib&&Bt(),se=$e(se),X._state=!1,X._value=se,Ie=X,ue.some(function(Le){return Le._value===Ie._value})||ue.push(Ie),pt(X),ye&&Vt())}function pt(X){var se=X._listeners;X._listeners=[];for(var ye=0,Ie=se.length;ye<Ie;++ye)Ct(X,se[ye]);var Le=X._PSD;--Le.ref||Le.finalize(),Je===0&&(++Je,ae(function(){--Je==0&&rn()},[]))}function Ct(X,se){if(X._state!==null){var ye=X._state?se.onFulfilled:se.onRejected;if(ye===null)return(X._state?se.resolve:se.reject)(X._value);++se.psd.ref,++Je,ae(It,[ye,X,se])}else X._listeners.push(se)}function It(X,se,ye){try{var Ie,Le=se._value;!se._state&&Me.length&&(Me=[]),Ie=Re&&se._consoleTask?se._consoleTask.run(function(){return X(Le)}):X(Le),se._state||Me.indexOf(Le)!==-1||function(We){for(var rt=ue.length;rt;)if(ue[--rt]._value===We._value)return ue.splice(rt,1)}(se),ye.resolve(Ie)}catch(We){ye.reject(We)}finally{--Je==0&&rn(),--ye.psd.ref||ye.psd.finalize()}}function Wt(){ln(ge,function(){Bt()&&Vt()})}function Bt(){var X=Se;return xe=Se=!1,X}function Vt(){var X,se,ye;do for(;0<st.length;)for(X=st,st=[],ye=X.length,se=0;se<ye;++se){var Ie=X[se];Ie[0].apply(null,Ie[1])}while(0<st.length);xe=Se=!0}function rn(){var X=ue;ue=[],X.forEach(function(Ie){Ie._PSD.onunhandled.call(null,Ie._value,Ie)});for(var se=ot.slice(0),ye=se.length;ye;)se[--ye]()}function tt(X){return new Xe(Oe,!1,X)}function it(X,se){var ye=Ve;return function(){var Ie=Bt(),Le=Ve;try{return Pt(ye,!0),X.apply(this,arguments)}catch(We){se&&se(We)}finally{Pt(Le,!1),Ie&&Vt()}}}p(Xe.prototype,{then:Ze,_then:function(X,se){Ct(this,new bt(null,null,X,se,Ve))},catch:function(X){if(arguments.length===1)return this.then(null,X);var se=X,ye=arguments[1];return typeof se=="function"?this.then(null,function(Ie){return(Ie instanceof se?ye:tt)(Ie)}):this.then(null,function(Ie){return(Ie&&Ie.name===se?ye:tt)(Ie)})},finally:function(X){return this.then(function(se){return Xe.resolve(X()).then(function(){return se})},function(se){return Xe.resolve(X()).then(function(){return tt(se)})})},timeout:function(X,se){var ye=this;return X<1/0?new Xe(function(Ie,Le){var We=setTimeout(function(){return Le(new te.Timeout(se))},X);ye.then(Ie,Le).finally(clearTimeout.bind(null,We))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&g(Xe.prototype,Symbol.toStringTag,"Dexie.Promise"),ge.env=Qt(),p(Xe,{all:function(){var X=q.apply(null,arguments).map(Jt);return new Xe(function(se,ye){X.length===0&&se([]);var Ie=X.length;X.forEach(function(Le,We){return Xe.resolve(Le).then(function(rt){X[We]=rt,--Ie||se(X)},ye)})})},resolve:function(X){return X instanceof Xe?X:X&&typeof X.then=="function"?new Xe(function(se,ye){X.then(se,ye)}):new Xe(Oe,!0,X)},reject:tt,race:function(){var X=q.apply(null,arguments).map(Jt);return new Xe(function(se,ye){X.map(function(Ie){return Xe.resolve(Ie).then(se,ye)})})},PSD:{get:function(){return Ve},set:function(X){return Ve=X}},totalEchoes:{get:function(){return Kt}},newPSD:tn,usePSD:ln,scheduler:{get:function(){return ae},set:function(X){ae=X}},rejectionMapper:{get:function(){return $e},set:function(X){$e=X}},follow:function(X,se){return new Xe(function(ye,Ie){return tn(function(Le,We){var rt=Ve;rt.unhandleds=[],rt.onunhandled=We,rt.finalize=he(function(){var ut,St=this;ut=function(){St.unhandleds.length===0?Le():We(St.unhandleds[0])},ot.push(function ze(){ut(),ot.splice(ot.indexOf(ze),1)}),++Je,ae(function(){--Je==0&&rn()},[])},rt.finalize),X()},se,ye,Ie)})}}),ne&&(ne.allSettled&&g(Xe,"allSettled",function(){var X=q.apply(null,arguments).map(Jt);return new Xe(function(se){X.length===0&&se([]);var ye=X.length,Ie=new Array(ye);X.forEach(function(Le,We){return Xe.resolve(Le).then(function(rt){return Ie[We]={status:"fulfilled",value:rt}},function(rt){return Ie[We]={status:"rejected",reason:rt}}).then(function(){return--ye||se(Ie)})})})}),ne.any&&typeof AggregateError<"u"&&g(Xe,"any",function(){var X=q.apply(null,arguments).map(Jt);return new Xe(function(se,ye){X.length===0&&ye(new AggregateError([]));var Ie=X.length,Le=new Array(Ie);X.forEach(function(We,rt){return Xe.resolve(We).then(function(ut){return se(ut)},function(ut){Le[rt]=ut,--Ie||ye(new AggregateError(Le))})})})}),ne.withResolvers&&(Xe.withResolvers=ne.withResolvers));var nt={awaits:0,echoes:0,id:0},vt=0,kt=[],Dt=0,Kt=0,Ht=0;function tn(X,se,ye,Ie){var Le=Ve,We=Object.create(Le);return We.parent=Le,We.ref=0,We.global=!1,We.id=++Ht,ge.env,We.env=J?{Promise:Xe,PromiseProp:{value:Xe,configurable:!0,writable:!0},all:Xe.all,race:Xe.race,allSettled:Xe.allSettled,any:Xe.any,resolve:Xe.resolve,reject:Xe.reject}:{},se&&c(We,se),++Le.ref,We.finalize=function(){--this.parent.ref||this.parent.finalize()},Ie=ln(We,X,ye,Ie),We.ref===0&&We.finalize(),Ie}function on(){return nt.id||(nt.id=++vt),++nt.awaits,nt.echoes+=Ne,nt.id}function sn(){return!!nt.awaits&&(--nt.awaits==0&&(nt.id=0),nt.echoes=nt.awaits*Ne,!0)}function Jt(X){return nt.echoes&&X&&X.constructor===ne?(on(),X.then(function(se){return sn(),se},function(se){return sn(),en(se)})):X}function En(){var X=kt[kt.length-1];kt.pop(),Pt(X,!1)}function Pt(X,se){var ye,Ie=Ve;(se?!nt.echoes||Dt++&&X===Ve:!Dt||--Dt&&X===Ve)||queueMicrotask(se?(function(Le){++Kt,nt.echoes&&--nt.echoes!=0||(nt.echoes=nt.awaits=nt.id=0),kt.push(Ve),Pt(Le,!0)}).bind(null,X):En),X!==Ve&&(Ve=X,Ie===ge&&(ge.env=Qt()),J&&(ye=ge.env.Promise,se=X.env,(Ie.global||X.global)&&(Object.defineProperty(a,"Promise",se.PromiseProp),ye.all=se.all,ye.race=se.race,ye.resolve=se.resolve,ye.reject=se.reject,se.allSettled&&(ye.allSettled=se.allSettled),se.any&&(ye.any=se.any))))}function Qt(){var X=a.Promise;return J?{Promise:X,PromiseProp:Object.getOwnPropertyDescriptor(a,"Promise"),all:X.all,race:X.race,allSettled:X.allSettled,any:X.any,resolve:X.resolve,reject:X.reject}:{}}function ln(X,se,ye,Ie,Le){var We=Ve;try{return Pt(X,!0),se(ye,Ie,Le)}finally{Pt(We,!1)}}function jt(X,se,ye,Ie){return typeof X!="function"?X:function(){var Le=Ve;ye&&on(),Pt(se,!0);try{return X.apply(this,arguments)}finally{Pt(Le,!1),Ie&&queueMicrotask(sn)}}}function Lt(X){Promise===ne&&nt.echoes===0?Dt===0?X():enqueueNativeMicroTask(X):setTimeout(X,0)}(""+Fu).indexOf("[native code]")===-1&&(on=sn=pe);var en=Xe.reject,Ue="￿",Zt="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",Et="String expected.",Gt=[],zt="__dbnames",Vn="readonly",sr="readwrite";function A(X,se){return X?se?function(){return X.apply(this,arguments)&&se.apply(this,arguments)}:X:se}var W={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function ce(X){return typeof X!="string"||/\./.test(X)?function(se){return se}:function(se){return se[X]===void 0&&X in se&&delete(se=k(se))[X],se}}function Pe(){throw te.Type()}function qe(X,se){try{var ye=gt(X),Ie=gt(se);if(ye!==Ie)return ye==="Array"?1:Ie==="Array"?-1:ye==="binary"?1:Ie==="binary"?-1:ye==="string"?1:Ie==="string"?-1:ye==="Date"?1:Ie!=="Date"?NaN:-1;switch(ye){case"number":case"Date":case"string":return se<X?1:X<se?-1:0;case"binary":return function(Le,We){for(var rt=Le.length,ut=We.length,St=rt<ut?rt:ut,ze=0;ze<St;++ze)if(Le[ze]!==We[ze])return Le[ze]<We[ze]?-1:1;return rt===ut?0:rt<ut?-1:1}(Yt(X),Yt(se));case"Array":return function(Le,We){for(var rt=Le.length,ut=We.length,St=rt<ut?rt:ut,ze=0;ze<St;++ze){var et=qe(Le[ze],We[ze]);if(et!==0)return et}return rt===ut?0:rt<ut?-1:1}(X,se)}}catch{}return NaN}function gt(X){var se=typeof X;return se!="object"?se:ArrayBuffer.isView(X)?"binary":(X=U(X),X==="ArrayBuffer"?"binary":X)}function Yt(X){return X instanceof Uint8Array?X:ArrayBuffer.isView(X)?new Uint8Array(X.buffer,X.byteOffset,X.byteLength):new Uint8Array(X)}var Nn=(Jn.prototype._trans=function(X,se,ye){var Ie=this._tx||Ve.trans,Le=this.name,We=Re&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(X==="readonly"?"read":"write"," ").concat(this.name));function rt(ze,et,Ge){if(!Ge.schema[Le])throw new te.NotFound("Table "+Le+" not part of transaction");return se(Ge.idbtrans,Ge)}var ut=Bt();try{var St=Ie&&Ie.db._novip===this.db._novip?Ie===Ve.trans?Ie._promise(X,rt,ye):tn(function(){return Ie._promise(X,rt,ye)},{trans:Ie,transless:Ve.transless||Ve}):function ze(et,Ge,dt,lt){if(et.idbdb&&(et._state.openComplete||Ve.letThrough||et._vip)){var yt=et._createTransaction(Ge,dt,et._dbSchema);try{yt.create(),et._state.PR1398_maxLoop=3}catch(xt){return xt.name===j.InvalidState&&et.isOpen()&&0<--et._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),et.close({disableAutoOpen:!1}),et.open().then(function(){return ze(et,Ge,dt,lt)})):en(xt)}return yt._promise(Ge,function(xt,mt){return tn(function(){return Ve.trans=yt,lt(xt,mt,yt)})}).then(function(xt){if(Ge==="readwrite")try{yt.idbtrans.commit()}catch{}return Ge==="readonly"?xt:yt._completion.then(function(){return xt})})}if(et._state.openComplete)return en(new te.DatabaseClosed(et._state.dbOpenError));if(!et._state.isBeingOpened){if(!et._state.autoOpen)return en(new te.DatabaseClosed);et.open().catch(pe)}return et._state.dbReadyPromise.then(function(){return ze(et,Ge,dt,lt)})}(this.db,X,[this.name],rt);return We&&(St._consoleTask=We,St=St.catch(function(ze){return console.trace(ze),en(ze)})),St}finally{ut&&Vt()}},Jn.prototype.get=function(X,se){var ye=this;return X&&X.constructor===Object?this.where(X).first(se):X==null?en(new te.Type("Invalid argument to Table.get()")):this._trans("readonly",function(Ie){return ye.core.get({trans:Ie,key:X}).then(function(Le){return ye.hook.reading.fire(Le)})}).then(se)},Jn.prototype.where=function(X){if(typeof X=="string")return new this.db.WhereClause(this,X);if(l(X))return new this.db.WhereClause(this,"[".concat(X.join("+"),"]"));var se=s(X);if(se.length===1)return this.where(se[0]).equals(X[se[0]]);var ye=this.schema.indexes.concat(this.schema.primKey).filter(function(ut){if(ut.compound&&se.every(function(ze){return 0<=ut.keyPath.indexOf(ze)})){for(var St=0;St<se.length;++St)if(se.indexOf(ut.keyPath[St])===-1)return!1;return!0}return!1}).sort(function(ut,St){return ut.keyPath.length-St.keyPath.length})[0];if(ye&&this.db._maxKey!==Ue){var We=ye.keyPath.slice(0,se.length);return this.where(We).equals(We.map(function(St){return X[St]}))}!ye&&Re&&console.warn("The query ".concat(JSON.stringify(X)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(se.join("+"),"]"));var Ie=this.schema.idxByName;function Le(ut,St){return qe(ut,St)===0}var rt=se.reduce(function(Ge,St){var ze=Ge[0],et=Ge[1],Ge=Ie[St],dt=X[St];return[ze||Ge,ze||!Ge?A(et,Ge&&Ge.multi?function(lt){return lt=C(lt,St),l(lt)&&lt.some(function(yt){return Le(dt,yt)})}:function(lt){return Le(dt,C(lt,St))}):et]},[null,null]),We=rt[0],rt=rt[1];return We?this.where(We.name).equals(X[We.keyPath]).filter(rt):ye?this.filter(rt):this.where(se).equals("")},Jn.prototype.filter=function(X){return this.toCollection().and(X)},Jn.prototype.count=function(X){return this.toCollection().count(X)},Jn.prototype.offset=function(X){return this.toCollection().offset(X)},Jn.prototype.limit=function(X){return this.toCollection().limit(X)},Jn.prototype.each=function(X){return this.toCollection().each(X)},Jn.prototype.toArray=function(X){return this.toCollection().toArray(X)},Jn.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},Jn.prototype.orderBy=function(X){return new this.db.Collection(new this.db.WhereClause(this,l(X)?"[".concat(X.join("+"),"]"):X))},Jn.prototype.reverse=function(){return this.toCollection().reverse()},Jn.prototype.mapToClass=function(X){var se,ye=this.db,Ie=this.name;function Le(){return se!==null&&se.apply(this,arguments)||this}(this.schema.mappedClass=X).prototype instanceof Pe&&(function(St,ze){if(typeof ze!="function"&&ze!==null)throw new TypeError("Class extends value "+String(ze)+" is not a constructor or null");function et(){this.constructor=St}r(St,ze),St.prototype=ze===null?Object.create(ze):(et.prototype=ze.prototype,new et)}(Le,se=X),Object.defineProperty(Le.prototype,"db",{get:function(){return ye},enumerable:!1,configurable:!0}),Le.prototype.table=function(){return Ie},X=Le);for(var We=new Set,rt=X.prototype;rt;rt=u(rt))Object.getOwnPropertyNames(rt).forEach(function(St){return We.add(St)});function ut(St){if(!St)return St;var ze,et=Object.create(X.prototype);for(ze in St)if(!We.has(ze))try{et[ze]=St[ze]}catch{}return et}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=ut,this.hook("reading",ut),X},Jn.prototype.defineClass=function(){return this.mapToClass(function(X){c(this,X)})},Jn.prototype.add=function(X,se){var ye=this,Ie=this.schema.primKey,Le=Ie.auto,We=Ie.keyPath,rt=X;return We&&Le&&(rt=ce(We)(X)),this._trans("readwrite",function(ut){return ye.core.mutate({trans:ut,type:"add",keys:se!=null?[se]:null,values:[rt]})}).then(function(ut){return ut.numFailures?Xe.reject(ut.failures[0]):ut.lastResult}).then(function(ut){if(We)try{x(X,We,ut)}catch{}return ut})},Jn.prototype.update=function(X,se){return typeof X!="object"||l(X)?this.where(":id").equals(X).modify(se):(X=C(X,this.schema.primKey.keyPath),X===void 0?en(new te.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(X).modify(se))},Jn.prototype.put=function(X,se){var ye=this,Ie=this.schema.primKey,Le=Ie.auto,We=Ie.keyPath,rt=X;return We&&Le&&(rt=ce(We)(X)),this._trans("readwrite",function(ut){return ye.core.mutate({trans:ut,type:"put",values:[rt],keys:se!=null?[se]:null})}).then(function(ut){return ut.numFailures?Xe.reject(ut.failures[0]):ut.lastResult}).then(function(ut){if(We)try{x(X,We,ut)}catch{}return ut})},Jn.prototype.delete=function(X){var se=this;return this._trans("readwrite",function(ye){return se.core.mutate({trans:ye,type:"delete",keys:[X]})}).then(function(ye){return ye.numFailures?Xe.reject(ye.failures[0]):void 0})},Jn.prototype.clear=function(){var X=this;return this._trans("readwrite",function(se){return X.core.mutate({trans:se,type:"deleteRange",range:W})}).then(function(se){return se.numFailures?Xe.reject(se.failures[0]):void 0})},Jn.prototype.bulkGet=function(X){var se=this;return this._trans("readonly",function(ye){return se.core.getMany({keys:X,trans:ye}).then(function(Ie){return Ie.map(function(Le){return se.hook.reading.fire(Le)})})})},Jn.prototype.bulkAdd=function(X,se,ye){var Ie=this,Le=Array.isArray(se)?se:void 0,We=(ye=ye||(Le?void 0:se))?ye.allKeys:void 0;return this._trans("readwrite",function(rt){var ze=Ie.schema.primKey,ut=ze.auto,ze=ze.keyPath;if(ze&&Le)throw new te.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(Le&&Le.length!==X.length)throw new te.InvalidArgument("Arguments objects and keys must have the same length");var St=X.length,ze=ze&&ut?X.map(ce(ze)):X;return Ie.core.mutate({trans:rt,type:"add",keys:Le,values:ze,wantResults:We}).then(function(yt){var Ge=yt.numFailures,dt=yt.results,lt=yt.lastResult,yt=yt.failures;if(Ge===0)return We?dt:lt;throw new Z("".concat(Ie.name,".bulkAdd(): ").concat(Ge," of ").concat(St," operations failed"),yt)})})},Jn.prototype.bulkPut=function(X,se,ye){var Ie=this,Le=Array.isArray(se)?se:void 0,We=(ye=ye||(Le?void 0:se))?ye.allKeys:void 0;return this._trans("readwrite",function(rt){var ze=Ie.schema.primKey,ut=ze.auto,ze=ze.keyPath;if(ze&&Le)throw new te.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(Le&&Le.length!==X.length)throw new te.InvalidArgument("Arguments objects and keys must have the same length");var St=X.length,ze=ze&&ut?X.map(ce(ze)):X;return Ie.core.mutate({trans:rt,type:"put",keys:Le,values:ze,wantResults:We}).then(function(yt){var Ge=yt.numFailures,dt=yt.results,lt=yt.lastResult,yt=yt.failures;if(Ge===0)return We?dt:lt;throw new Z("".concat(Ie.name,".bulkPut(): ").concat(Ge," of ").concat(St," operations failed"),yt)})})},Jn.prototype.bulkUpdate=function(X){var se=this,ye=this.core,Ie=X.map(function(rt){return rt.key}),Le=X.map(function(rt){return rt.changes}),We=[];return this._trans("readwrite",function(rt){return ye.getMany({trans:rt,keys:Ie,cache:"clone"}).then(function(ut){var St=[],ze=[];X.forEach(function(Ge,dt){var lt=Ge.key,yt=Ge.changes,xt=ut[dt];if(xt){for(var mt=0,Ft=Object.keys(yt);mt<Ft.length;mt++){var qt=Ft[mt],Ut=yt[qt];if(qt===se.schema.primKey.keyPath){if(qe(Ut,lt)!==0)throw new te.Constraint("Cannot update primary key in bulkUpdate()")}else x(xt,qt,Ut)}We.push(dt),St.push(lt),ze.push(xt)}});var et=St.length;return ye.mutate({trans:rt,type:"put",keys:St,values:ze,updates:{keys:Ie,changeSpecs:Le}}).then(function(Ge){var dt=Ge.numFailures,lt=Ge.failures;if(dt===0)return et;for(var yt=0,xt=Object.keys(lt);yt<xt.length;yt++){var mt,Ft=xt[yt],qt=We[Number(Ft)];qt!=null&&(mt=lt[Ft],delete lt[Ft],lt[qt]=mt)}throw new Z("".concat(se.name,".bulkUpdate(): ").concat(dt," of ").concat(et," operations failed"),lt)})})})},Jn.prototype.bulkDelete=function(X){var se=this,ye=X.length;return this._trans("readwrite",function(Ie){return se.core.mutate({trans:Ie,type:"delete",keys:X})}).then(function(rt){var Le=rt.numFailures,We=rt.lastResult,rt=rt.failures;if(Le===0)return We;throw new Z("".concat(se.name,".bulkDelete(): ").concat(Le," of ").concat(ye," operations failed"),rt)})},Jn);function Jn(){}function Ci(X){function se(rt,ut){if(ut){for(var St=arguments.length,ze=new Array(St-1);--St;)ze[St-1]=arguments[St];return ye[rt].subscribe.apply(null,ze),X}if(typeof rt=="string")return ye[rt]}var ye={};se.addEventType=We;for(var Ie=1,Le=arguments.length;Ie<Le;++Ie)We(arguments[Ie]);return se;function We(rt,ut,St){if(typeof rt!="object"){var ze;ut=ut||Ae;var et={subscribers:[],fire:St=St||pe,subscribe:function(Ge){et.subscribers.indexOf(Ge)===-1&&(et.subscribers.push(Ge),et.fire=ut(et.fire,Ge))},unsubscribe:function(Ge){et.subscribers=et.subscribers.filter(function(dt){return dt!==Ge}),et.fire=et.subscribers.reduce(ut,St)}};return ye[rt]=se[rt]=et}s(ze=rt).forEach(function(Ge){var dt=ze[Ge];if(l(dt))We(Ge,ze[Ge][0],ze[Ge][1]);else{if(dt!=="asap")throw new te.InvalidArgument("Invalid event config");var lt=We(Ge,me,function(){for(var yt=arguments.length,xt=new Array(yt);yt--;)xt[yt]=arguments[yt];lt.subscribers.forEach(function(mt){w(function(){mt.apply(null,xt)})})})}})}}function wi(X,se){return v(se).from({prototype:X}),se}function to(X,se){return!(X.filter||X.algorithm||X.or)&&(se?X.justLimit:!X.replayFilter)}function Vr(X,se){X.filter=A(X.filter,se)}function wn(X,se,ye){var Ie=X.replayFilter;X.replayFilter=Ie?function(){return A(Ie(),se())}:se,X.justLimit=ye&&!Ie}function Bn(X,se){if(X.isPrimKey)return se.primaryKey;var ye=se.getIndexByKeyPath(X.index);if(!ye)throw new te.Schema("KeyPath "+X.index+" on object store "+se.name+" is not indexed");return ye}function ni(X,se,ye){var Ie=Bn(X,se.schema);return se.openCursor({trans:ye,values:!X.keysOnly,reverse:X.dir==="prev",unique:!!X.unique,query:{index:Ie,range:X.range}})}function yn(X,se,ye,Ie){var Le=X.replayFilter?A(X.filter,X.replayFilter()):X.filter;if(X.or){var We={},rt=function(ut,St,ze){var et,Ge;Le&&!Le(St,ze,function(dt){return St.stop(dt)},function(dt){return St.fail(dt)})||((Ge=""+(et=St.primaryKey))=="[object ArrayBuffer]"&&(Ge=""+new Uint8Array(et)),f(We,Ge)||(We[Ge]=!0,se(ut,St,ze)))};return Promise.all([X.or._iterate(rt,ye),Sn(ni(X,Ie,ye),X.algorithm,rt,!X.keysOnly&&X.valueMapper)])}return Sn(ni(X,Ie,ye),A(X.algorithm,Le),se,!X.keysOnly&&X.valueMapper)}function Sn(X,se,ye,Ie){var Le=it(Ie?function(We,rt,ut){return ye(Ie(We),rt,ut)}:ye);return X.then(function(We){if(We)return We.start(function(){var rt=function(){return We.continue()};se&&!se(We,function(ut){return rt=ut},function(ut){We.stop(ut),rt=pe},function(ut){We.fail(ut),rt=pe})||Le(We.value,We,function(ut){return rt=ut}),rt()})})}var ur=Symbol(),qr=(zi.prototype.execute=function(X){if(this.add!==void 0){var se=this.add;if(l(se))return o(o([],l(X)?X:[],!0),se).sort();if(typeof se=="number")return(Number(X)||0)+se;if(typeof se=="bigint")try{return BigInt(X)+se}catch{return BigInt(0)+se}throw new TypeError("Invalid term ".concat(se))}if(this.remove!==void 0){var ye=this.remove;if(l(ye))return l(X)?X.filter(function(Ie){return!ye.includes(Ie)}).sort():[];if(typeof ye=="number")return Number(X)-ye;if(typeof ye=="bigint")try{return BigInt(X)-ye}catch{return BigInt(0)-ye}throw new TypeError("Invalid subtrahend ".concat(ye))}return se=(se=this.replacePrefix)===null||se===void 0?void 0:se[0],se&&typeof X=="string"&&X.startsWith(se)?this.replacePrefix[1]+X.substring(se.length):X},zi);function zi(X){Object.assign(this,X)}var Qo=(gr.prototype._read=function(X,se){var ye=this._ctx;return ye.error?ye.table._trans(null,en.bind(null,ye.error)):ye.table._trans("readonly",X).then(se)},gr.prototype._write=function(X){var se=this._ctx;return se.error?se.table._trans(null,en.bind(null,se.error)):se.table._trans("readwrite",X,"locked")},gr.prototype._addAlgorithm=function(X){var se=this._ctx;se.algorithm=A(se.algorithm,X)},gr.prototype._iterate=function(X,se){return yn(this._ctx,X,se,this._ctx.table.core)},gr.prototype.clone=function(X){var se=Object.create(this.constructor.prototype),ye=Object.create(this._ctx);return X&&c(ye,X),se._ctx=ye,se},gr.prototype.raw=function(){return this._ctx.valueMapper=null,this},gr.prototype.each=function(X){var se=this._ctx;return this._read(function(ye){return yn(se,X,ye,se.table.core)})},gr.prototype.count=function(X){var se=this;return this._read(function(ye){var Ie=se._ctx,Le=Ie.table.core;if(to(Ie,!0))return Le.count({trans:ye,query:{index:Bn(Ie,Le.schema),range:Ie.range}}).then(function(rt){return Math.min(rt,Ie.limit)});var We=0;return yn(Ie,function(){return++We,!1},ye,Le).then(function(){return We})}).then(X)},gr.prototype.sortBy=function(X,se){var ye=X.split(".").reverse(),Ie=ye[0],Le=ye.length-1;function We(St,ze){return ze?We(St[ye[ze]],ze-1):St[Ie]}var rt=this._ctx.dir==="next"?1:-1;function ut(St,ze){return qe(We(St,Le),We(ze,Le))*rt}return this.toArray(function(St){return St.sort(ut)}).then(se)},gr.prototype.toArray=function(X){var se=this;return this._read(function(ye){var Ie=se._ctx;if(Ie.dir==="next"&&to(Ie,!0)&&0<Ie.limit){var Le=Ie.valueMapper,We=Bn(Ie,Ie.table.core.schema);return Ie.table.core.query({trans:ye,limit:Ie.limit,values:!0,query:{index:We,range:Ie.range}}).then(function(ut){return ut=ut.result,Le?ut.map(Le):ut})}var rt=[];return yn(Ie,function(ut){return rt.push(ut)},ye,Ie.table.core).then(function(){return rt})},X)},gr.prototype.offset=function(X){var se=this._ctx;return X<=0||(se.offset+=X,to(se)?wn(se,function(){var ye=X;return function(Ie,Le){return ye===0||(ye===1?--ye:Le(function(){Ie.advance(ye),ye=0}),!1)}}):wn(se,function(){var ye=X;return function(){return--ye<0}})),this},gr.prototype.limit=function(X){return this._ctx.limit=Math.min(this._ctx.limit,X),wn(this._ctx,function(){var se=X;return function(ye,Ie,Le){return--se<=0&&Ie(Le),0<=se}},!0),this},gr.prototype.until=function(X,se){return Vr(this._ctx,function(ye,Ie,Le){return!X(ye.value)||(Ie(Le),se)}),this},gr.prototype.first=function(X){return this.limit(1).toArray(function(se){return se[0]}).then(X)},gr.prototype.last=function(X){return this.reverse().first(X)},gr.prototype.filter=function(X){var se;return Vr(this._ctx,function(ye){return X(ye.value)}),(se=this._ctx).isMatch=A(se.isMatch,X),this},gr.prototype.and=function(X){return this.filter(X)},gr.prototype.or=function(X){return new this.db.WhereClause(this._ctx.table,X,this)},gr.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},gr.prototype.desc=function(){return this.reverse()},gr.prototype.eachKey=function(X){var se=this._ctx;return se.keysOnly=!se.isMatch,this.each(function(ye,Ie){X(Ie.key,Ie)})},gr.prototype.eachUniqueKey=function(X){return this._ctx.unique="unique",this.eachKey(X)},gr.prototype.eachPrimaryKey=function(X){var se=this._ctx;return se.keysOnly=!se.isMatch,this.each(function(ye,Ie){X(Ie.primaryKey,Ie)})},gr.prototype.keys=function(X){var se=this._ctx;se.keysOnly=!se.isMatch;var ye=[];return this.each(function(Ie,Le){ye.push(Le.key)}).then(function(){return ye}).then(X)},gr.prototype.primaryKeys=function(X){var se=this._ctx;if(se.dir==="next"&&to(se,!0)&&0<se.limit)return this._read(function(Ie){var Le=Bn(se,se.table.core.schema);return se.table.core.query({trans:Ie,values:!1,limit:se.limit,query:{index:Le,range:se.range}})}).then(function(Ie){return Ie.result}).then(X);se.keysOnly=!se.isMatch;var ye=[];return this.each(function(Ie,Le){ye.push(Le.primaryKey)}).then(function(){return ye}).then(X)},gr.prototype.uniqueKeys=function(X){return this._ctx.unique="unique",this.keys(X)},gr.prototype.firstKey=function(X){return this.limit(1).keys(function(se){return se[0]}).then(X)},gr.prototype.lastKey=function(X){return this.reverse().firstKey(X)},gr.prototype.distinct=function(){var X=this._ctx,X=X.index&&X.table.schema.idxByName[X.index];if(!X||!X.multi)return this;var se={};return Vr(this._ctx,function(Le){var Ie=Le.primaryKey.toString(),Le=f(se,Ie);return se[Ie]=!0,!Le}),this},gr.prototype.modify=function(X){var se=this,ye=this._ctx;return this._write(function(Ie){var Le,We,rt;rt=typeof X=="function"?X:(Le=s(X),We=Le.length,function(mt){for(var Ft=!1,qt=0;qt<We;++qt){var Ut=Le[qt],an=X[Ut],An=C(mt,Ut);an instanceof qr?(x(mt,Ut,an.execute(An)),Ft=!0):An!==an&&(x(mt,Ut,an),Ft=!0)}return Ft});var ut=ye.table.core,Ge=ut.schema.primaryKey,St=Ge.outbound,ze=Ge.extractKey,et=200,Ge=se.db._options.modifyChunkSize;Ge&&(et=typeof Ge=="object"?Ge[ut.name]||Ge["*"]||200:Ge);function dt(mt,Ut){var qt=Ut.failures,Ut=Ut.numFailures;yt+=mt-Ut;for(var an=0,An=s(qt);an<An.length;an++){var Fn=An[an];lt.push(qt[Fn])}}var lt=[],yt=0,xt=[];return se.clone().primaryKeys().then(function(mt){function Ft(Ut){var an=Math.min(et,mt.length-Ut);return ut.getMany({trans:Ie,keys:mt.slice(Ut,Ut+an),cache:"immutable"}).then(function(An){for(var Fn=[],Rn=[],Ln=St?[]:null,mn=[],jn=0;jn<an;++jn){var rr=An[jn],Jr={value:k(rr),primKey:mt[Ut+jn]};rt.call(Jr,Jr.value,Jr)!==!1&&(Jr.value==null?mn.push(mt[Ut+jn]):St||qe(ze(rr),ze(Jr.value))===0?(Rn.push(Jr.value),St&&Ln.push(mt[Ut+jn])):(mn.push(mt[Ut+jn]),Fn.push(Jr.value)))}return Promise.resolve(0<Fn.length&&ut.mutate({trans:Ie,type:"add",values:Fn}).then(function(yi){for(var _i in yi.failures)mn.splice(parseInt(_i),1);dt(Fn.length,yi)})).then(function(){return(0<Rn.length||qt&&typeof X=="object")&&ut.mutate({trans:Ie,type:"put",keys:Ln,values:Rn,criteria:qt,changeSpec:typeof X!="function"&&X,isAdditionalChunk:0<Ut}).then(function(yi){return dt(Rn.length,yi)})}).then(function(){return(0<mn.length||qt&&X===Oo)&&ut.mutate({trans:Ie,type:"delete",keys:mn,criteria:qt,isAdditionalChunk:0<Ut}).then(function(yi){return dt(mn.length,yi)})}).then(function(){return mt.length>Ut+an&&Ft(Ut+et)})})}var qt=to(ye)&&ye.limit===1/0&&(typeof X!="function"||X===Oo)&&{index:ye.index,range:ye.range};return Ft(0).then(function(){if(0<lt.length)throw new le("Error modifying one or more objects",lt,yt,xt);return mt.length})})})},gr.prototype.delete=function(){var X=this._ctx,se=X.range;return to(X)&&(X.isPrimKey||se.type===3)?this._write(function(ye){var Ie=X.table.core.schema.primaryKey,Le=se;return X.table.core.count({trans:ye,query:{index:Ie,range:Le}}).then(function(We){return X.table.core.mutate({trans:ye,type:"deleteRange",range:Le}).then(function(rt){var ut=rt.failures;if(rt.lastResult,rt.results,rt=rt.numFailures,rt)throw new le("Could not delete some values",Object.keys(ut).map(function(St){return ut[St]}),We-rt);return We-rt})})}):this.modify(Oo)},gr);function gr(){}var Oo=function(X,se){return se.value=null};function Pa(X,se){return X<se?-1:X===se?0:1}function Er(X,se){return se<X?-1:X===se?0:1}function nr(X,se,ye){return X=X instanceof kl?new X.Collection(X):X,X._ctx.error=new(ye||TypeError)(se),X}function lr(X){return new X.Collection(X,function(){return Dl("")}).limit(0)}function Kr(X,se,ye,Ie){var Le,We,rt,ut,St,ze,et,Ge=ye.length;if(!ye.every(function(yt){return typeof yt=="string"}))return nr(X,Et);function dt(yt){Le=yt==="next"?function(mt){return mt.toUpperCase()}:function(mt){return mt.toLowerCase()},We=yt==="next"?function(mt){return mt.toLowerCase()}:function(mt){return mt.toUpperCase()},rt=yt==="next"?Pa:Er;var xt=ye.map(function(mt){return{lower:We(mt),upper:Le(mt)}}).sort(function(mt,Ft){return rt(mt.lower,Ft.lower)});ut=xt.map(function(mt){return mt.upper}),St=xt.map(function(mt){return mt.lower}),et=(ze=yt)==="next"?"":Ie}dt("next"),X=new X.Collection(X,function(){return Pi(ut[0],St[Ge-1]+Ie)}),X._ondirectionchange=function(yt){dt(yt)};var lt=0;return X._addAlgorithm(function(yt,xt,mt){var Ft=yt.key;if(typeof Ft!="string")return!1;var qt=We(Ft);if(se(qt,St,lt))return!0;for(var Ut=null,an=lt;an<Ge;++an){var An=function(Fn,Rn,Ln,mn,jn,rr){for(var Jr=Math.min(Fn.length,mn.length),yi=-1,_i=0;_i<Jr;++_i){var Jc=Rn[_i];if(Jc!==mn[_i])return jn(Fn[_i],Ln[_i])<0?Fn.substr(0,_i)+Ln[_i]+Ln.substr(_i+1):jn(Fn[_i],mn[_i])<0?Fn.substr(0,_i)+mn[_i]+Ln.substr(_i+1):0<=yi?Fn.substr(0,yi)+Rn[yi]+Ln.substr(yi+1):null;jn(Fn[_i],Jc)<0&&(yi=_i)}return Jr<mn.length&&rr==="next"?Fn+Ln.substr(Fn.length):Jr<Fn.length&&rr==="prev"?Fn.substr(0,Ln.length):yi<0?null:Fn.substr(0,yi)+mn[yi]+Ln.substr(yi+1)}(Ft,qt,ut[an],St[an],rt,ze);An===null&&Ut===null?lt=an+1:(Ut===null||0<rt(Ut,An))&&(Ut=An)}return xt(Ut!==null?function(){yt.continue(Ut+et)}:mt),!1}),X}function Pi(X,se,ye,Ie){return{type:2,lower:X,upper:se,lowerOpen:ye,upperOpen:Ie}}function Dl(X){return{type:1,lower:X,upper:X}}var kl=(Object.defineProperty(Ro.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),Ro.prototype.between=function(X,se,ye,Ie){ye=ye!==!1,Ie=Ie===!0;try{return 0<this._cmp(X,se)||this._cmp(X,se)===0&&(ye||Ie)&&(!ye||!Ie)?lr(this):new this.Collection(this,function(){return Pi(X,se,!ye,!Ie)})}catch{return nr(this,Zt)}},Ro.prototype.equals=function(X){return X==null?nr(this,Zt):new this.Collection(this,function(){return Dl(X)})},Ro.prototype.above=function(X){return X==null?nr(this,Zt):new this.Collection(this,function(){return Pi(X,void 0,!0)})},Ro.prototype.aboveOrEqual=function(X){return X==null?nr(this,Zt):new this.Collection(this,function(){return Pi(X,void 0,!1)})},Ro.prototype.below=function(X){return X==null?nr(this,Zt):new this.Collection(this,function(){return Pi(void 0,X,!1,!0)})},Ro.prototype.belowOrEqual=function(X){return X==null?nr(this,Zt):new this.Collection(this,function(){return Pi(void 0,X)})},Ro.prototype.startsWith=function(X){return typeof X!="string"?nr(this,Et):this.between(X,X+Ue,!0,!0)},Ro.prototype.startsWithIgnoreCase=function(X){return X===""?this.startsWith(X):Kr(this,function(se,ye){return se.indexOf(ye[0])===0},[X],Ue)},Ro.prototype.equalsIgnoreCase=function(X){return Kr(this,function(se,ye){return se===ye[0]},[X],"")},Ro.prototype.anyOfIgnoreCase=function(){var X=q.apply(Y,arguments);return X.length===0?lr(this):Kr(this,function(se,ye){return ye.indexOf(se)!==-1},X,"")},Ro.prototype.startsWithAnyOfIgnoreCase=function(){var X=q.apply(Y,arguments);return X.length===0?lr(this):Kr(this,function(se,ye){return ye.some(function(Ie){return se.indexOf(Ie)===0})},X,Ue)},Ro.prototype.anyOf=function(){var X=this,se=q.apply(Y,arguments),ye=this._cmp;try{se.sort(ye)}catch{return nr(this,Zt)}if(se.length===0)return lr(this);var Ie=new this.Collection(this,function(){return Pi(se[0],se[se.length-1])});Ie._ondirectionchange=function(We){ye=We==="next"?X._ascending:X._descending,se.sort(ye)};var Le=0;return Ie._addAlgorithm(function(We,rt,ut){for(var St=We.key;0<ye(St,se[Le]);)if(++Le===se.length)return rt(ut),!1;return ye(St,se[Le])===0||(rt(function(){We.continue(se[Le])}),!1)}),Ie},Ro.prototype.notEqual=function(X){return this.inAnyRange([[-1/0,X],[X,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},Ro.prototype.noneOf=function(){var X=q.apply(Y,arguments);if(X.length===0)return new this.Collection(this);try{X.sort(this._ascending)}catch{return nr(this,Zt)}var se=X.reduce(function(ye,Ie){return ye?ye.concat([[ye[ye.length-1][1],Ie]]):[[-1/0,Ie]]},null);return se.push([X[X.length-1],this.db._maxKey]),this.inAnyRange(se,{includeLowers:!1,includeUppers:!1})},Ro.prototype.inAnyRange=function(Ft,se){var ye=this,Ie=this._cmp,Le=this._ascending,We=this._descending,rt=this._min,ut=this._max;if(Ft.length===0)return lr(this);if(!Ft.every(function(qt){return qt[0]!==void 0&&qt[1]!==void 0&&Le(qt[0],qt[1])<=0}))return nr(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",te.InvalidArgument);var St=!se||se.includeLowers!==!1,ze=se&&se.includeUppers===!0,et,Ge=Le;function dt(qt,Ut){return Ge(qt[0],Ut[0])}try{(et=Ft.reduce(function(qt,Ut){for(var an=0,An=qt.length;an<An;++an){var Fn=qt[an];if(Ie(Ut[0],Fn[1])<0&&0<Ie(Ut[1],Fn[0])){Fn[0]=rt(Fn[0],Ut[0]),Fn[1]=ut(Fn[1],Ut[1]);break}}return an===An&&qt.push(Ut),qt},[])).sort(dt)}catch{return nr(this,Zt)}var lt=0,yt=ze?function(qt){return 0<Le(qt,et[lt][1])}:function(qt){return 0<=Le(qt,et[lt][1])},xt=St?function(qt){return 0<We(qt,et[lt][0])}:function(qt){return 0<=We(qt,et[lt][0])},mt=yt,Ft=new this.Collection(this,function(){return Pi(et[0][0],et[et.length-1][1],!St,!ze)});return Ft._ondirectionchange=function(qt){Ge=qt==="next"?(mt=yt,Le):(mt=xt,We),et.sort(dt)},Ft._addAlgorithm(function(qt,Ut,an){for(var An,Fn=qt.key;mt(Fn);)if(++lt===et.length)return Ut(an),!1;return!yt(An=Fn)&&!xt(An)||(ye._cmp(Fn,et[lt][1])===0||ye._cmp(Fn,et[lt][0])===0||Ut(function(){Ge===Le?qt.continue(et[lt][0]):qt.continue(et[lt][1])}),!1)}),Ft},Ro.prototype.startsWithAnyOf=function(){var X=q.apply(Y,arguments);return X.every(function(se){return typeof se=="string"})?X.length===0?lr(this):this.inAnyRange(X.map(function(se){return[se,se+Ue]})):nr(this,"startsWithAnyOf() only works with strings")},Ro);function Ro(){}function Is(X){return it(function(se){return ku(se),X(se.target.error),!1})}function ku(X){X.stopPropagation&&X.stopPropagation(),X.preventDefault&&X.preventDefault()}var Lu="storagemutated",Mg="x-storagemutated-1",Wn=Ci(null,Lu),Ir=(Li.prototype._lock=function(){return E(!Ve.global),++this._reculock,this._reculock!==1||Ve.global||(Ve.lockOwnerFor=this),this},Li.prototype._unlock=function(){if(E(!Ve.global),--this._reculock==0)for(Ve.global||(Ve.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var X=this._blockedFuncs.shift();try{ln(X[1],X[0])}catch{}}return this},Li.prototype._locked=function(){return this._reculock&&Ve.lockOwnerFor!==this},Li.prototype.create=function(X){var se=this;if(!this.mode)return this;var ye=this.db.idbdb,Ie=this.db._state.dbOpenError;if(E(!this.idbtrans),!X&&!ye)switch(Ie&&Ie.name){case"DatabaseClosedError":throw new te.DatabaseClosed(Ie);case"MissingAPIError":throw new te.MissingAPI(Ie.message,Ie);default:throw new te.OpenFailed(Ie)}if(!this.active)throw new te.TransactionInactive;return E(this._completion._state===null),(X=this.idbtrans=X||(this.db.core||ye).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=it(function(Le){ku(Le),se._reject(X.error)}),X.onabort=it(function(Le){ku(Le),se.active&&se._reject(new te.Abort(X.error)),se.active=!1,se.on("abort").fire(Le)}),X.oncomplete=it(function(){se.active=!1,se._resolve(),"mutatedParts"in X&&Wn.storagemutated.fire(X.mutatedParts)}),this},Li.prototype._promise=function(X,se,ye){var Ie=this;if(X==="readwrite"&&this.mode!=="readwrite")return en(new te.ReadOnly("Transaction is readonly"));if(!this.active)return en(new te.TransactionInactive);if(this._locked())return new Xe(function(We,rt){Ie._blockedFuncs.push([function(){Ie._promise(X,se,ye).then(We,rt)},Ve])});if(ye)return tn(function(){var We=new Xe(function(rt,ut){Ie._lock();var St=se(rt,ut,Ie);St&&St.then&&St.then(rt,ut)});return We.finally(function(){return Ie._unlock()}),We._lib=!0,We});var Le=new Xe(function(We,rt){var ut=se(We,rt,Ie);ut&&ut.then&&ut.then(We,rt)});return Le._lib=!0,Le},Li.prototype._root=function(){return this.parent?this.parent._root():this},Li.prototype.waitFor=function(X){var se,ye=this._root(),Ie=Xe.resolve(X);ye._waitingFor?ye._waitingFor=ye._waitingFor.then(function(){return Ie}):(ye._waitingFor=Ie,ye._waitingQueue=[],se=ye.idbtrans.objectStore(ye.storeNames[0]),function We(){for(++ye._spinCount;ye._waitingQueue.length;)ye._waitingQueue.shift()();ye._waitingFor&&(se.get(-1/0).onsuccess=We)}());var Le=ye._waitingFor;return new Xe(function(We,rt){Ie.then(function(ut){return ye._waitingQueue.push(it(We.bind(null,ut)))},function(ut){return ye._waitingQueue.push(it(rt.bind(null,ut)))}).finally(function(){ye._waitingFor===Le&&(ye._waitingFor=null)})})},Li.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new te.Abort))},Li.prototype.table=function(X){var se=this._memoizedTables||(this._memoizedTables={});if(f(se,X))return se[X];var ye=this.schema[X];if(!ye)throw new te.NotFound("Table "+X+" not part of transaction");return ye=new this.db.Table(X,ye,this),ye.core=this.db.core.table(X),se[X]=ye},Li);function Li(){}function ha(X,se,ye,Ie,Le,We,rt){return{name:X,keyPath:se,unique:ye,multi:Ie,auto:Le,compound:We,src:(ye&&!rt?"&":"")+(Ie?"*":"")+(Le?"++":"")+Zo(se)}}function Zo(X){return typeof X=="string"?X:X?"["+[].join.call(X,"+")+"]":""}function Pg(X,se,ye){return{name:X,primKey:se,indexes:ye,mappedClass:null,idxByName:(Ie=function(Le){return[Le.name,Le]},ye.reduce(function(Le,We,rt){return rt=Ie(We,rt),rt&&(Le[rt[0]]=rt[1]),Le},{}))};var Ie}var eh=function(X){try{return X.only([[]]),eh=function(){return[[]]},[[]]}catch{return eh=function(){return Ue},Ue}};function go(X){return X==null?function(){}:typeof X=="string"?(se=X).split(".").length===1?function(ye){return ye[se]}:function(ye){return C(ye,se)}:function(ye){return C(ye,X)};var se}function no(X){return[].slice.call(X)}var _G=0;function US(X){return X==null?":id":typeof X=="string"?X:"[".concat(X.join("+"),"]")}function bG(X,se,St){function Ie(mt){if(mt.type===3)return null;if(mt.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var lt=mt.lower,yt=mt.upper,xt=mt.lowerOpen,mt=mt.upperOpen;return lt===void 0?yt===void 0?null:se.upperBound(yt,!!mt):yt===void 0?se.lowerBound(lt,!!xt):se.bound(lt,yt,!!xt,!!mt)}function Le(dt){var lt,yt=dt.name;return{name:yt,schema:dt,mutate:function(xt){var mt=xt.trans,Ft=xt.type,qt=xt.keys,Ut=xt.values,an=xt.range;return new Promise(function(An,Fn){An=it(An);var Rn=mt.objectStore(yt),Ln=Rn.keyPath==null,mn=Ft==="put"||Ft==="add";if(!mn&&Ft!=="delete"&&Ft!=="deleteRange")throw new Error("Invalid operation type: "+Ft);var jn,rr=(qt||Ut||{length:1}).length;if(qt&&Ut&&qt.length!==Ut.length)throw new Error("Given keys array must have same length as given values array.");if(rr===0)return An({numFailures:0,failures:{},results:[],lastResult:void 0});function Jr(Js){++Jc,ku(Js)}var yi=[],_i=[],Jc=0;if(Ft==="deleteRange"){if(an.type===4)return An({numFailures:Jc,failures:_i,results:[],lastResult:void 0});an.type===3?yi.push(jn=Rn.clear()):yi.push(jn=Rn.delete(Ie(an)))}else{var Ln=mn?Ln?[Ut,qt]:[Ut,null]:[qt,null],Xr=Ln[0],ga=Ln[1];if(mn)for(var Ns=0;Ns<rr;++Ns)yi.push(jn=ga&&ga[Ns]!==void 0?Rn[Ft](Xr[Ns],ga[Ns]):Rn[Ft](Xr[Ns])),jn.onerror=Jr;else for(Ns=0;Ns<rr;++Ns)yi.push(jn=Rn[Ft](Xr[Ns])),jn.onerror=Jr}function ZS(Js){Js=Js.target.result,yi.forEach(function(Dg,tx){return Dg.error!=null&&(_i[tx]=Dg.error)}),An({numFailures:Jc,failures:_i,results:Ft==="delete"?qt:yi.map(function(Dg){return Dg.result}),lastResult:Js})}jn.onerror=function(Js){Jr(Js),ZS(Js)},jn.onsuccess=ZS})},getMany:function(xt){var mt=xt.trans,Ft=xt.keys;return new Promise(function(qt,Ut){qt=it(qt);for(var an,An=mt.objectStore(yt),Fn=Ft.length,Rn=new Array(Fn),Ln=0,mn=0,jn=function(yi){yi=yi.target,Rn[yi._pos]=yi.result,++mn===Ln&&qt(Rn)},rr=Is(Ut),Jr=0;Jr<Fn;++Jr)Ft[Jr]!=null&&((an=An.get(Ft[Jr]))._pos=Jr,an.onsuccess=jn,an.onerror=rr,++Ln);Ln===0&&qt(Rn)})},get:function(xt){var mt=xt.trans,Ft=xt.key;return new Promise(function(qt,Ut){qt=it(qt);var an=mt.objectStore(yt).get(Ft);an.onsuccess=function(An){return qt(An.target.result)},an.onerror=Is(Ut)})},query:(lt=ze,function(xt){return new Promise(function(mt,Ft){mt=it(mt);var qt,Ut,an,Ln=xt.trans,An=xt.values,Fn=xt.limit,jn=xt.query,Rn=Fn===1/0?void 0:Fn,mn=jn.index,jn=jn.range,Ln=Ln.objectStore(yt),mn=mn.isPrimaryKey?Ln:Ln.index(mn.name),jn=Ie(jn);if(Fn===0)return mt({result:[]});lt?((Rn=An?mn.getAll(jn,Rn):mn.getAllKeys(jn,Rn)).onsuccess=function(rr){return mt({result:rr.target.result})},Rn.onerror=Is(Ft)):(qt=0,Ut=!An&&"openKeyCursor"in mn?mn.openKeyCursor(jn):mn.openCursor(jn),an=[],Ut.onsuccess=function(rr){var Jr=Ut.result;return Jr?(an.push(An?Jr.value:Jr.primaryKey),++qt===Fn?mt({result:an}):void Jr.continue()):mt({result:an})},Ut.onerror=Is(Ft))})}),openCursor:function(xt){var mt=xt.trans,Ft=xt.values,qt=xt.query,Ut=xt.reverse,an=xt.unique;return new Promise(function(An,Fn){An=it(An);var mn=qt.index,Rn=qt.range,Ln=mt.objectStore(yt),Ln=mn.isPrimaryKey?Ln:Ln.index(mn.name),mn=Ut?an?"prevunique":"prev":an?"nextunique":"next",jn=!Ft&&"openKeyCursor"in Ln?Ln.openKeyCursor(Ie(Rn),mn):Ln.openCursor(Ie(Rn),mn);jn.onerror=Is(Fn),jn.onsuccess=it(function(rr){var Jr,yi,_i,Jc,Xr=jn.result;Xr?(Xr.___id=++_G,Xr.done=!1,Jr=Xr.continue.bind(Xr),yi=(yi=Xr.continuePrimaryKey)&&yi.bind(Xr),_i=Xr.advance.bind(Xr),Jc=function(){throw new Error("Cursor not stopped")},Xr.trans=mt,Xr.stop=Xr.continue=Xr.continuePrimaryKey=Xr.advance=function(){throw new Error("Cursor not started")},Xr.fail=it(Fn),Xr.next=function(){var ga=this,Ns=1;return this.start(function(){return Ns--?ga.continue():ga.stop()}).then(function(){return ga})},Xr.start=function(ga){function Ns(){if(jn.result)try{ga()}catch(Js){Xr.fail(Js)}else Xr.done=!0,Xr.start=function(){throw new Error("Cursor behind last entry")},Xr.stop()}var ZS=new Promise(function(Js,Dg){Js=it(Js),jn.onerror=Is(Dg),Xr.fail=Dg,Xr.stop=function(tx){Xr.stop=Xr.continue=Xr.continuePrimaryKey=Xr.advance=Jc,Js(tx)}});return jn.onsuccess=it(function(Js){jn.onsuccess=Ns,Ns()}),Xr.continue=Jr,Xr.continuePrimaryKey=yi,Xr.advance=_i,Ns(),ZS},An(Xr)):An(null)},Fn)})},count:function(xt){var mt=xt.query,Ft=xt.trans,qt=mt.index,Ut=mt.range;return new Promise(function(an,An){var Fn=Ft.objectStore(yt),Rn=qt.isPrimaryKey?Fn:Fn.index(qt.name),Fn=Ie(Ut),Rn=Fn?Rn.count(Fn):Rn.count();Rn.onsuccess=it(function(Ln){return an(Ln.target.result)}),Rn.onerror=Is(An)})}}}var We,rt,ut,et=(rt=St,ut=no((We=X).objectStoreNames),{schema:{name:We.name,tables:ut.map(function(dt){return rt.objectStore(dt)}).map(function(dt){var lt=dt.keyPath,mt=dt.autoIncrement,yt=l(lt),xt={},mt={name:dt.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:lt==null,compound:yt,keyPath:lt,autoIncrement:mt,unique:!0,extractKey:go(lt)},indexes:no(dt.indexNames).map(function(Ft){return dt.index(Ft)}).map(function(an){var qt=an.name,Ut=an.unique,An=an.multiEntry,an=an.keyPath,An={name:qt,compound:l(an),keyPath:an,unique:Ut,multiEntry:An,extractKey:go(an)};return xt[US(an)]=An}),getIndexByKeyPath:function(Ft){return xt[US(Ft)]}};return xt[":id"]=mt.primaryKey,lt!=null&&(xt[US(lt)]=mt.primaryKey),mt})},hasGetAll:0<ut.length&&"getAll"in rt.objectStore(ut[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),St=et.schema,ze=et.hasGetAll,et=St.tables.map(Le),Ge={};return et.forEach(function(dt){return Ge[dt.name]=dt}),{stack:"dbcore",transaction:X.transaction.bind(X),table:function(dt){if(!Ge[dt])throw new Error("Table '".concat(dt,"' not found"));return Ge[dt]},MIN_KEY:-1/0,MAX_KEY:eh(se),schema:St}}function SG(X,se,ye,Ie){var Le=ye.IDBKeyRange;return ye.indexedDB,{dbcore:(Ie=bG(se,Le,Ie),X.dbcore.reduce(function(We,rt){return rt=rt.create,i(i({},We),rt(We))},Ie))}}function Gw(X,Ie){var ye=Ie.db,Ie=SG(X._middlewares,ye,X._deps,Ie);X.core=Ie.dbcore,X.tables.forEach(function(Le){var We=Le.name;X.core.schema.tables.some(function(rt){return rt.name===We})&&(Le.core=X.core.table(We),X[We]instanceof X.Table&&(X[We].core=Le.core))})}function Ww(X,se,ye,Ie){ye.forEach(function(Le){var We=Ie[Le];se.forEach(function(rt){var ut=function St(ze,et){return y(ze,et)||(ze=u(ze))&&St(ze,et)}(rt,Le);(!ut||"value"in ut&&ut.value===void 0)&&(rt===X.Transaction.prototype||rt instanceof X.Transaction?g(rt,Le,{get:function(){return this.table(Le)},set:function(St){h(this,Le,{value:St,writable:!0,configurable:!0,enumerable:!0})}}):rt[Le]=new X.Table(Le,We))})})}function Yw(X,se){se.forEach(function(ye){for(var Ie in ye)ye[Ie]instanceof X.Table&&delete ye[Ie]})}function EG(X,se){return X._cfg.version-se._cfg.version}function pl(X,se,ye,Ie){var Le=X._dbSchema;ye.objectStoreNames.contains("$meta")&&!Le.$meta&&(Le.$meta=Pg("$meta",yN("")[0],[]),X._storeNames.push("$meta"));var We=X._createTransaction("readwrite",X._storeNames,Le);We.create(ye),We._completion.catch(Ie);var rt=We._reject.bind(We),ut=Ve.transless||Ve;tn(function(){return Ve.trans=We,Ve.transless=ut,se!==0?(Gw(X,ye),ze=se,((St=We).storeNames.includes("$meta")?St.table("$meta").get("version").then(function(et){return et??ze}):Xe.resolve(ze)).then(function(et){return dt=et,lt=We,yt=ye,xt=[],et=(Ge=X)._versions,mt=Ge._dbSchema=HS(0,Ge.idbdb,yt),(et=et.filter(function(Ft){return Ft._cfg.version>=dt})).length!==0?(et.forEach(function(Ft){xt.push(function(){var qt=mt,Ut=Ft._cfg.dbschema;zS(Ge,qt,yt),zS(Ge,Ut,yt),mt=Ge._dbSchema=Ut;var an=th(qt,Ut);an.add.forEach(function(mn){qw(yt,mn[0],mn[1].primKey,mn[1].indexes)}),an.change.forEach(function(mn){if(mn.recreate)throw new te.Upgrade("Not yet support for changing primary key");var jn=yt.objectStore(mn.name);mn.add.forEach(function(rr){return nc(jn,rr)}),mn.change.forEach(function(rr){jn.deleteIndex(rr.name),nc(jn,rr)}),mn.del.forEach(function(rr){return jn.deleteIndex(rr)})});var An=Ft._cfg.contentUpgrade;if(An&&Ft._cfg.version>dt){Gw(Ge,yt),lt._memoizedTables={};var Fn=T(Ut);an.del.forEach(function(mn){Fn[mn]=qt[mn]}),Yw(Ge,[Ge.Transaction.prototype]),Ww(Ge,[Ge.Transaction.prototype],s(Fn),Fn),lt.schema=Fn;var Rn,Ln=K(An);return Ln&&on(),an=Xe.follow(function(){var mn;(Rn=An(lt))&&Ln&&(mn=sn.bind(null,null),Rn.then(mn,mn))}),Rn&&typeof Rn.then=="function"?Xe.resolve(Rn):an.then(function(){return Rn})}}),xt.push(function(qt){var Ut,an,An=Ft._cfg.dbschema;Ut=An,an=qt,[].slice.call(an.db.objectStoreNames).forEach(function(Fn){return Ut[Fn]==null&&an.db.deleteObjectStore(Fn)}),Yw(Ge,[Ge.Transaction.prototype]),Ww(Ge,[Ge.Transaction.prototype],Ge._storeNames,Ge._dbSchema),lt.schema=Ge._dbSchema}),xt.push(function(qt){Ge.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(Ge.idbdb.version/10)===Ft._cfg.version?(Ge.idbdb.deleteObjectStore("$meta"),delete Ge._dbSchema.$meta,Ge._storeNames=Ge._storeNames.filter(function(Ut){return Ut!=="$meta"})):qt.objectStore("$meta").put(Ft._cfg.version,"version"))})}),function Ft(){return xt.length?Xe.resolve(xt.shift()(lt.idbtrans)).then(Ft):Xe.resolve()}().then(function(){Kw(mt,yt)})):Xe.resolve();var Ge,dt,lt,yt,xt,mt}).catch(rt)):(s(Le).forEach(function(et){qw(ye,et,Le[et].primKey,Le[et].indexes)}),Gw(X,ye),void Xe.follow(function(){return X.on.populate.fire(We)}).catch(rt));var St,ze})}function vN(X,se){Kw(X._dbSchema,se),se.db.version%10!=0||se.objectStoreNames.contains("$meta")||se.db.createObjectStore("$meta").add(Math.ceil(se.db.version/10-1),"version");var ye=HS(0,X.idbdb,se);zS(X,X._dbSchema,se);for(var Ie=0,Le=th(ye,X._dbSchema).change;Ie<Le.length;Ie++){var We=function(rt){if(rt.change.length||rt.recreate)return console.warn("Unable to patch indexes of table ".concat(rt.name," because it has changes on the type of index or primary key.")),{value:void 0};var ut=se.objectStore(rt.name);rt.add.forEach(function(St){Re&&console.debug("Dexie upgrade patch: Creating missing index ".concat(rt.name,".").concat(St.src)),nc(ut,St)})}(Le[Ie]);if(typeof We=="object")return We.value}}function th(X,se){var ye,Ie={del:[],add:[],change:[]};for(ye in X)se[ye]||Ie.del.push(ye);for(ye in se){var Le=X[ye],We=se[ye];if(Le){var rt={name:ye,def:We,recreate:!1,del:[],add:[],change:[]};if(""+(Le.primKey.keyPath||"")!=""+(We.primKey.keyPath||"")||Le.primKey.auto!==We.primKey.auto)rt.recreate=!0,Ie.change.push(rt);else{var ut=Le.idxByName,St=We.idxByName,ze=void 0;for(ze in ut)St[ze]||rt.del.push(ze);for(ze in St){var et=ut[ze],Ge=St[ze];et?et.src!==Ge.src&&rt.change.push(Ge):rt.add.push(Ge)}(0<rt.del.length||0<rt.add.length||0<rt.change.length)&&Ie.change.push(rt)}}else Ie.add.push([ye,We])}return Ie}function qw(X,se,ye,Ie){var Le=X.db.createObjectStore(se,ye.keyPath?{keyPath:ye.keyPath,autoIncrement:ye.auto}:{autoIncrement:ye.auto});return Ie.forEach(function(We){return nc(Le,We)}),Le}function Kw(X,se){s(X).forEach(function(ye){se.db.objectStoreNames.contains(ye)||(Re&&console.debug("Dexie: Creating missing table",ye),qw(se,ye,X[ye].primKey,X[ye].indexes))})}function nc(X,se){X.createIndex(se.name,se.keyPath,{unique:se.unique,multiEntry:se.multi})}function HS(X,se,ye){var Ie={};return S(se.objectStoreNames,0).forEach(function(Le){for(var We=ye.objectStore(Le),rt=ha(Zo(ze=We.keyPath),ze||"",!0,!1,!!We.autoIncrement,ze&&typeof ze!="string",!0),ut=[],St=0;St<We.indexNames.length;++St){var et=We.index(We.indexNames[St]),ze=et.keyPath,et=ha(et.name,ze,!!et.unique,!!et.multiEntry,!1,ze&&typeof ze!="string",!1);ut.push(et)}Ie[Le]=Pg(Le,rt,ut)}),Ie}function zS(X,se,ye){for(var Ie=ye.db.objectStoreNames,Le=0;Le<Ie.length;++Le){var We=Ie[Le],rt=ye.objectStore(We);X._hasGetAll="getAll"in rt;for(var ut=0;ut<rt.indexNames.length;++ut){var St=rt.indexNames[ut],ze=rt.index(St).keyPath,et=typeof ze=="string"?ze:"["+S(ze).join("+")+"]";!se[We]||(ze=se[We].idxByName[et])&&(ze.name=St,delete se[We].idxByName[et],se[We].idxByName[St]=ze)}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&a.WorkerGlobalScope&&a instanceof a.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(X._hasGetAll=!1)}function yN(X){return X.split(",").map(function(se,ye){var Ie=(se=se.trim()).replace(/([&*]|\+\+)/g,""),Le=/^\[/.test(Ie)?Ie.match(/^\[(.*)\]$/)[1].split("+"):Ie;return ha(Ie,Le||null,/\&/.test(se),/\*/.test(se),/\+\+/.test(se),l(Le),ye===0)})}var w$=(VS.prototype._parseStoresSpec=function(X,se){s(X).forEach(function(ye){if(X[ye]!==null){var Ie=yN(X[ye]),Le=Ie.shift();if(Le.unique=!0,Le.multi)throw new te.Schema("Primary key cannot be multi-valued");Ie.forEach(function(We){if(We.auto)throw new te.Schema("Only primary key can be marked as autoIncrement (++)");if(!We.keyPath)throw new te.Schema("Index must have a name and cannot be an empty string")}),se[ye]=Pg(ye,Le,Ie)}})},VS.prototype.stores=function(ye){var se=this.db;this._cfg.storesSource=this._cfg.storesSource?c(this._cfg.storesSource,ye):ye;var ye=se._versions,Ie={},Le={};return ye.forEach(function(We){c(Ie,We._cfg.storesSource),Le=We._cfg.dbschema={},We._parseStoresSpec(Ie,Le)}),se._dbSchema=Le,Yw(se,[se._allTables,se,se.Transaction.prototype]),Ww(se,[se._allTables,se,se.Transaction.prototype,this._cfg.tables],s(Le),Le),se._storeNames=s(Le),this},VS.prototype.upgrade=function(X){return this._cfg.contentUpgrade=Ee(this._cfg.contentUpgrade||pe,X),this},VS);function VS(){}function Xw(X,se){var ye=X._dbNamesDB;return ye||(ye=X._dbNamesDB=new ih(zt,{addons:[],indexedDB:X,IDBKeyRange:se})).version(1).stores({dbnames:"name"}),ye.table("dbnames")}function rc(X){return X&&typeof X.databases=="function"}function _N(X){return tn(function(){return Ve.letThrough=!0,X()})}function wc(X){return!("from"in X)}var Ll=function(X,se){if(!this){var ye=new Ll;return X&&"d"in X&&c(ye,X),ye}c(this,arguments.length?{d:1,from:X,to:1<arguments.length?se:X}:{d:0})};function O_(X,se,ye){var Ie=qe(se,ye);if(!isNaN(Ie)){if(0<Ie)throw RangeError();if(wc(X))return c(X,{from:se,to:ye,d:1});var Le=X.l,Ie=X.r;if(qe(ye,X.from)<0)return Le?O_(Le,se,ye):X.l={from:se,to:ye,d:1,l:null,r:null},Jo(X);if(0<qe(se,X.to))return Ie?O_(Ie,se,ye):X.r={from:se,to:ye,d:1,l:null,r:null},Jo(X);qe(se,X.from)<0&&(X.from=se,X.l=null,X.d=Ie?Ie.d+1:1),0<qe(ye,X.to)&&(X.to=ye,X.r=null,X.d=X.l?X.l.d+1:1),ye=!X.r,Le&&!X.l&&$u(X,Le),Ie&&ye&&$u(X,Ie)}}function $u(X,se){wc(se)||function ye(Ie,St){var We=St.from,rt=St.to,ut=St.l,St=St.r;O_(Ie,We,rt),ut&&ye(Ie,ut),St&&ye(Ie,St)}(X,se)}function GS(X,se){var ye=R_(se),Ie=ye.next();if(Ie.done)return!1;for(var Le=Ie.value,We=R_(X),rt=We.next(Le.from),ut=rt.value;!Ie.done&&!rt.done;){if(qe(ut.from,Le.to)<=0&&0<=qe(ut.to,Le.from))return!0;qe(Le.from,ut.from)<0?Le=(Ie=ye.next(ut.from)).value:ut=(rt=We.next(Le.from)).value}return!1}function R_(X){var se=wc(X)?null:{s:0,n:X};return{next:function(ye){for(var Ie=0<arguments.length;se;)switch(se.s){case 0:if(se.s=1,Ie)for(;se.n.l&&qe(ye,se.n.from)<0;)se={up:se,n:se.n.l,s:1};else for(;se.n.l;)se={up:se,n:se.n.l,s:1};case 1:if(se.s=2,!Ie||qe(ye,se.n.to)<=0)return{value:se.n,done:!1};case 2:if(se.n.r){se.s=3,se={up:se,n:se.n.r,s:0};continue}case 3:se=se.up}return{done:!0}}}}function Jo(X){var se,ye,Ie=(((se=X.r)===null||se===void 0?void 0:se.d)||0)-(((ye=X.l)===null||ye===void 0?void 0:ye.d)||0),Le=1<Ie?"r":Ie<-1?"l":"";Le&&(se=Le=="r"?"l":"r",ye=i({},X),Ie=X[Le],X.from=Ie.from,X.to=Ie.to,X[Le]=Ie[Le],ye[Le]=Ie[se],(X[se]=ye).d=nh(ye)),X.d=nh(X)}function nh(ye){var se=ye.r,ye=ye.l;return(se?ye?Math.max(se.d,ye.d):se.d:ye?ye.d:0)+1}function I_(X,se){return s(se).forEach(function(ye){X[ye]?$u(X[ye],se[ye]):X[ye]=function Ie(Le){var We,rt,ut={};for(We in Le)f(Le,We)&&(rt=Le[We],ut[We]=!rt||typeof rt!="object"||M.has(rt.constructor)?rt:Ie(rt));return ut}(se[ye])}),X}function bN(X,se){return X.all||se.all||Object.keys(X).some(function(ye){return se[ye]&&GS(se[ye],X[ye])})}p(Ll.prototype,((Fu={add:function(X){return $u(this,X),this},addKey:function(X){return O_(this,X,X),this},addKeys:function(X){var se=this;return X.forEach(function(ye){return O_(se,ye,ye)}),this},hasKey:function(X){var se=R_(this).next(X).value;return se&&qe(se.from,X)<=0&&0<=qe(se.to,X)}})[z]=function(){return R_(this)},Fu));var rh={},SN={},EN=!1;function Qw(X){I_(SN,X),EN||(EN=!0,setTimeout(function(){EN=!1,Zw(SN,!(SN={}))},0))}function Zw(X,se){se===void 0&&(se=!1);var ye=new Set;if(X.all)for(var Ie=0,Le=Object.values(rh);Ie<Le.length;Ie++)WS(rt=Le[Ie],X,ye,se);else for(var We in X){var rt,ut=/^idb\:\/\/(.*)\/(.*)\//.exec(We);ut&&(We=ut[1],ut=ut[2],(rt=rh["idb://".concat(We,"/").concat(ut)])&&WS(rt,X,ye,se))}ye.forEach(function(St){return St()})}function WS(X,se,ye,Ie){for(var Le=[],We=0,rt=Object.entries(X.queries.query);We<rt.length;We++){for(var ut=rt[We],St=ut[0],ze=[],et=0,Ge=ut[1];et<Ge.length;et++){var dt=Ge[et];bN(se,dt.obsSet)?dt.subscribers.forEach(function(mt){return ye.add(mt)}):Ie&&ze.push(dt)}Ie&&Le.push([St,ze])}if(Ie)for(var lt=0,yt=Le;lt<yt.length;lt++){var xt=yt[lt],St=xt[0],ze=xt[1];X.queries.query[St]=ze}}function N_(X){var se=X._state,ye=X._deps.indexedDB;if(se.isBeingOpened||X.idbdb)return se.dbReadyPromise.then(function(){return se.dbOpenError?en(se.dbOpenError):X});se.isBeingOpened=!0,se.dbOpenError=null,se.openComplete=!1;var Ie=se.openCanceller,Le=Math.round(10*X.verno),We=!1;function rt(){if(se.openCanceller!==Ie)throw new te.DatabaseClosed("db.open() was cancelled")}function ut(){return new Xe(function(dt,lt){if(rt(),!ye)throw new te.MissingAPI;var yt=X.name,xt=se.autoSchema||!Le?ye.open(yt):ye.open(yt,Le);if(!xt)throw new te.MissingAPI;xt.onerror=Is(lt),xt.onblocked=it(X._fireOnBlocked),xt.onupgradeneeded=it(function(mt){var Ft;et=xt.transaction,se.autoSchema&&!X._options.allowEmptyDB?(xt.onerror=ku,et.abort(),xt.result.close(),(Ft=ye.deleteDatabase(yt)).onsuccess=Ft.onerror=it(function(){lt(new te.NoSuchDatabase("Database ".concat(yt," doesnt exist")))})):(et.onerror=Is(lt),mt=mt.oldVersion>Math.pow(2,62)?0:mt.oldVersion,Ge=mt<1,X.idbdb=xt.result,We&&vN(X,et),pl(X,mt/10,et,lt))},lt),xt.onsuccess=it(function(){et=null;var mt,Ft,qt,Ut,an,An=X.idbdb=xt.result,Fn=S(An.objectStoreNames);if(0<Fn.length)try{var Rn=An.transaction((Ut=Fn).length===1?Ut[0]:Ut,"readonly");if(se.autoSchema)Ft=An,qt=Rn,(mt=X).verno=Ft.version/10,qt=mt._dbSchema=HS(0,Ft,qt),mt._storeNames=S(Ft.objectStoreNames,0),Ww(mt,[mt._allTables],s(qt),qt);else if(zS(X,X._dbSchema,Rn),((an=th(HS(0,(an=X).idbdb,Rn),an._dbSchema)).add.length||an.change.some(function(Ln){return Ln.add.length||Ln.change.length}))&&!We)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."),An.close(),Le=An.version+1,We=!0,dt(ut());Gw(X,Rn)}catch{}Gt.push(X),An.onversionchange=it(function(Ln){se.vcFired=!0,X.on("versionchange").fire(Ln)}),An.onclose=it(function(Ln){X.on("close").fire(Ln)}),Ge&&(an=X._deps,Rn=yt,An=an.indexedDB,an=an.IDBKeyRange,rc(An)||Rn===zt||Xw(An,an).put({name:Rn}).catch(pe)),dt()},lt)}).catch(function(dt){switch(dt==null?void 0:dt.name){case"UnknownError":if(0<se.PR1398_maxLoop)return se.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),ut();break;case"VersionError":if(0<Le)return Le=0,ut()}return Xe.reject(dt)})}var St,ze=se.dbReadyResolve,et=null,Ge=!1;return Xe.race([Ie,(typeof navigator>"u"?Xe.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(dt){function lt(){return indexedDB.databases().finally(dt)}St=setInterval(lt,100),lt()}).finally(function(){return clearInterval(St)}):Promise.resolve()).then(ut)]).then(function(){return rt(),se.onReadyBeingFired=[],Xe.resolve(_N(function(){return X.on.ready.fire(X.vip)})).then(function dt(){if(0<se.onReadyBeingFired.length){var lt=se.onReadyBeingFired.reduce(Ee,pe);return se.onReadyBeingFired=[],Xe.resolve(_N(function(){return lt(X.vip)})).then(dt)}})}).finally(function(){se.openCanceller===Ie&&(se.onReadyBeingFired=null,se.isBeingOpened=!1)}).catch(function(dt){se.dbOpenError=dt;try{et&&et.abort()}catch{}return Ie===se.openCanceller&&X._close(),en(dt)}).finally(function(){se.openComplete=!0,ze()}).then(function(){var dt;return Ge&&(dt={},X.tables.forEach(function(lt){lt.schema.indexes.forEach(function(yt){yt.name&&(dt["idb://".concat(X.name,"/").concat(lt.name,"/").concat(yt.name)]=new Ll(-1/0,[[[]]]))}),dt["idb://".concat(X.name,"/").concat(lt.name,"/")]=dt["idb://".concat(X.name,"/").concat(lt.name,"/:dels")]=new Ll(-1/0,[[[]]])}),Wn(Lu).fire(dt),Zw(dt,!0)),X})}function CN(X){function se(We){return X.next(We)}var ye=Le(se),Ie=Le(function(We){return X.throw(We)});function Le(We){return function(St){var ut=We(St),St=ut.value;return ut.done?St:St&&typeof St.then=="function"?St.then(ye,Ie):l(St)?Promise.all(St).then(ye,Ie):ye(St)}}return Le(se)()}function YS(X,se,ye){for(var Ie=l(X)?X.slice():[X],Le=0;Le<ye;++Le)Ie.push(se);return Ie}var x$={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(X){return i(i({},X),{table:function(se){var ye=X.table(se),Ie=ye.schema,Le={},We=[];function rt(Ge,dt,lt){var yt=US(Ge),xt=Le[yt]=Le[yt]||[],mt=Ge==null?0:typeof Ge=="string"?1:Ge.length,Ft=0<dt,Ft=i(i({},lt),{name:Ft?"".concat(yt,"(virtual-from:").concat(lt.name,")"):lt.name,lowLevelIndex:lt,isVirtual:Ft,keyTail:dt,keyLength:mt,extractKey:go(Ge),unique:!Ft&&lt.unique});return xt.push(Ft),Ft.isPrimaryKey||We.push(Ft),1<mt&&rt(mt===2?Ge[0]:Ge.slice(0,mt-1),dt+1,lt),xt.sort(function(qt,Ut){return qt.keyTail-Ut.keyTail}),Ft}se=rt(Ie.primaryKey.keyPath,0,Ie.primaryKey),Le[":id"]=[se];for(var ut=0,St=Ie.indexes;ut<St.length;ut++){var ze=St[ut];rt(ze.keyPath,0,ze)}function et(Ge){var dt,lt=Ge.query.index;return lt.isVirtual?i(i({},Ge),{query:{index:lt.lowLevelIndex,range:(dt=Ge.query.range,lt=lt.keyTail,{type:dt.type===1?2:dt.type,lower:YS(dt.lower,dt.lowerOpen?X.MAX_KEY:X.MIN_KEY,lt),lowerOpen:!0,upper:YS(dt.upper,dt.upperOpen?X.MIN_KEY:X.MAX_KEY,lt),upperOpen:!0})}}):Ge}return i(i({},ye),{schema:i(i({},Ie),{primaryKey:se,indexes:We,getIndexByKeyPath:function(Ge){return(Ge=Le[US(Ge)])&&Ge[0]}}),count:function(Ge){return ye.count(et(Ge))},query:function(Ge){return ye.query(et(Ge))},openCursor:function(Ge){var dt=Ge.query.index,lt=dt.keyTail,yt=dt.isVirtual,xt=dt.keyLength;return yt?ye.openCursor(et(Ge)).then(function(Ft){return Ft&&mt(Ft)}):ye.openCursor(Ge);function mt(Ft){return Object.create(Ft,{continue:{value:function(qt){qt!=null?Ft.continue(YS(qt,Ge.reverse?X.MAX_KEY:X.MIN_KEY,lt)):Ge.unique?Ft.continue(Ft.key.slice(0,xt).concat(Ge.reverse?X.MIN_KEY:X.MAX_KEY,lt)):Ft.continue()}},continuePrimaryKey:{value:function(qt,Ut){Ft.continuePrimaryKey(YS(qt,X.MAX_KEY,lt),Ut)}},primaryKey:{get:function(){return Ft.primaryKey}},key:{get:function(){var qt=Ft.key;return xt===1?qt[0]:qt.slice(0,xt)}},value:{get:function(){return Ft.value}}})}}})}})}};function qS(X,se,ye,Ie){return ye=ye||{},Ie=Ie||"",s(X).forEach(function(Le){var We,rt,ut;f(se,Le)?(We=X[Le],rt=se[Le],typeof We=="object"&&typeof rt=="object"&&We&&rt?(ut=U(We))!==U(rt)?ye[Ie+Le]=se[Le]:ut==="Object"?qS(We,rt,ye,Ie+Le+"."):We!==rt&&(ye[Ie+Le]=se[Le]):We!==rt&&(ye[Ie+Le]=se[Le])):ye[Ie+Le]=void 0}),s(se).forEach(function(Le){f(X,Le)||(ye[Ie+Le]=se[Le])}),ye}function KS(X,se){return se.type==="delete"?se.keys:se.keys||se.values.map(X.extractKey)}var T$={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(X){return i(i({},X),{table:function(se){var ye=X.table(se),Ie=ye.schema.primaryKey;return i(i({},ye),{mutate:function(Le){var We=Ve.trans,rt=We.table(se).hook,ut=rt.deleting,St=rt.creating,ze=rt.updating;switch(Le.type){case"add":if(St.fire===pe)break;return We._promise("readwrite",function(){return et(Le)},!0);case"put":if(St.fire===pe&&ze.fire===pe)break;return We._promise("readwrite",function(){return et(Le)},!0);case"delete":if(ut.fire===pe)break;return We._promise("readwrite",function(){return et(Le)},!0);case"deleteRange":if(ut.fire===pe)break;return We._promise("readwrite",function(){return function Ge(dt,lt,yt){return ye.query({trans:dt,values:!1,query:{index:Ie,range:lt},limit:yt}).then(function(xt){var mt=xt.result;return et({type:"delete",keys:mt,trans:dt}).then(function(Ft){return 0<Ft.numFailures?Promise.reject(Ft.failures[0]):mt.length<yt?{failures:[],numFailures:0,lastResult:void 0}:Ge(dt,i(i({},lt),{lower:mt[mt.length-1],lowerOpen:!0}),yt)})})}(Le.trans,Le.range,1e4)},!0)}return ye.mutate(Le);function et(Ge){var dt,lt,yt,xt=Ve.trans,mt=Ge.keys||KS(Ie,Ge);if(!mt)throw new Error("Keys missing");return(Ge=Ge.type==="add"||Ge.type==="put"?i(i({},Ge),{keys:mt}):i({},Ge)).type!=="delete"&&(Ge.values=o([],Ge.values)),Ge.keys&&(Ge.keys=o([],Ge.keys)),dt=ye,yt=mt,((lt=Ge).type==="add"?Promise.resolve([]):dt.getMany({trans:lt.trans,keys:yt,cache:"immutable"})).then(function(Ft){var qt=mt.map(function(Ut,an){var An,Fn,Rn,Ln=Ft[an],mn={onerror:null,onsuccess:null};return Ge.type==="delete"?ut.fire.call(mn,Ut,Ln,xt):Ge.type==="add"||Ln===void 0?(An=St.fire.call(mn,Ut,Ge.values[an],xt),Ut==null&&An!=null&&(Ge.keys[an]=Ut=An,Ie.outbound||x(Ge.values[an],Ie.keyPath,Ut))):(An=qS(Ln,Ge.values[an]),(Fn=ze.fire.call(mn,An,Ut,Ln,xt))&&(Rn=Ge.values[an],Object.keys(Fn).forEach(function(jn){f(Rn,jn)?Rn[jn]=Fn[jn]:x(Rn,jn,Fn[jn])}))),mn});return ye.mutate(Ge).then(function(Ut){for(var an=Ut.failures,An=Ut.results,Fn=Ut.numFailures,Ut=Ut.lastResult,Rn=0;Rn<mt.length;++Rn){var Ln=(An||mt)[Rn],mn=qt[Rn];Ln==null?mn.onerror&&mn.onerror(an[Rn]):mn.onsuccess&&mn.onsuccess(Ge.type==="put"&&Ft[Rn]?Ge.values[Rn]:Ln)}return{failures:an,results:An,numFailures:Fn,lastResult:Ut}}).catch(function(Ut){return qt.forEach(function(an){return an.onerror&&an.onerror(Ut)}),Promise.reject(Ut)})})}}})}})}};function O$(X,se,ye){try{if(!se||se.keys.length<X.length)return null;for(var Ie=[],Le=0,We=0;Le<se.keys.length&&We<X.length;++Le)qe(se.keys[Le],X[We])===0&&(Ie.push(ye?k(se.values[Le]):se.values[Le]),++We);return Ie.length===X.length?Ie:null}catch{return null}}var wN={stack:"dbcore",level:-1,create:function(X){return{table:function(se){var ye=X.table(se);return i(i({},ye),{getMany:function(Ie){if(!Ie.cache)return ye.getMany(Ie);var Le=O$(Ie.keys,Ie.trans._cache,Ie.cache==="clone");return Le?Xe.resolve(Le):ye.getMany(Ie).then(function(We){return Ie.trans._cache={keys:Ie.keys,values:Ie.cache==="clone"?k(We):We},We})},mutate:function(Ie){return Ie.type!=="add"&&(Ie.trans._cache=null),ye.mutate(Ie)}})}}}};function Jw(X,se){return X.trans.mode==="readonly"&&!!X.subscr&&!X.trans.explicit&&X.trans.db._options.cache!=="disabled"&&!se.schema.primaryKey.outbound}function R$(X,se){switch(X){case"query":return se.values&&!se.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var I$={stack:"dbcore",level:0,name:"Observability",create:function(X){var se=X.schema.name,ye=new Ll(X.MIN_KEY,X.MAX_KEY);return i(i({},X),{transaction:function(Ie,Le,We){if(Ve.subscr&&Le!=="readonly")throw new te.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(Ve.querier));return X.transaction(Ie,Le,We)},table:function(Ie){var Le=X.table(Ie),We=Le.schema,rt=We.primaryKey,Ge=We.indexes,ut=rt.extractKey,St=rt.outbound,ze=rt.autoIncrement&&Ge.filter(function(lt){return lt.compound&&lt.keyPath.includes(rt.keyPath)}),et=i(i({},Le),{mutate:function(lt){function yt(jn){return jn="idb://".concat(se,"/").concat(Ie,"/").concat(jn),Ut[jn]||(Ut[jn]=new Ll)}var xt,mt,Ft,qt=lt.trans,Ut=lt.mutatedParts||(lt.mutatedParts={}),an=yt(""),An=yt(":dels"),Fn=lt.type,mn=lt.type==="deleteRange"?[lt.range]:lt.type==="delete"?[lt.keys]:lt.values.length<50?[KS(rt,lt).filter(function(jn){return jn}),lt.values]:[],Rn=mn[0],Ln=mn[1],mn=lt.trans._cache;return l(Rn)?(an.addKeys(Rn),(mn=Fn==="delete"||Rn.length===Ln.length?O$(Rn,mn):null)||An.addKeys(Rn),(mn||Ln)&&(xt=yt,mt=mn,Ft=Ln,We.indexes.forEach(function(jn){var rr=xt(jn.name||"");function Jr(_i){return _i!=null?jn.extractKey(_i):null}function yi(_i){return jn.multiEntry&&l(_i)?_i.forEach(function(Jc){return rr.addKey(Jc)}):rr.addKey(_i)}(mt||Ft).forEach(function(_i,ga){var Xr=mt&&Jr(mt[ga]),ga=Ft&&Jr(Ft[ga]);qe(Xr,ga)!==0&&(Xr!=null&&yi(Xr),ga!=null&&yi(ga))})}))):Rn?(Ln={from:(Ln=Rn.lower)!==null&&Ln!==void 0?Ln:X.MIN_KEY,to:(Ln=Rn.upper)!==null&&Ln!==void 0?Ln:X.MAX_KEY},An.add(Ln),an.add(Ln)):(an.add(ye),An.add(ye),We.indexes.forEach(function(jn){return yt(jn.name).add(ye)})),Le.mutate(lt).then(function(jn){return!Rn||lt.type!=="add"&&lt.type!=="put"||(an.addKeys(jn.results),ze&&ze.forEach(function(rr){for(var Jr=lt.values.map(function(Xr){return rr.extractKey(Xr)}),yi=rr.keyPath.findIndex(function(Xr){return Xr===rt.keyPath}),_i=0,Jc=jn.results.length;_i<Jc;++_i)Jr[_i][yi]=jn.results[_i];yt(rr.name).addKeys(Jr)})),qt.mutatedParts=I_(qt.mutatedParts||{},Ut),jn})}}),Ge=function(yt){var xt=yt.query,yt=xt.index,xt=xt.range;return[yt,new Ll((yt=xt.lower)!==null&&yt!==void 0?yt:X.MIN_KEY,(xt=xt.upper)!==null&&xt!==void 0?xt:X.MAX_KEY)]},dt={get:function(lt){return[rt,new Ll(lt.key)]},getMany:function(lt){return[rt,new Ll().addKeys(lt.keys)]},count:Ge,query:Ge,openCursor:Ge};return s(dt).forEach(function(lt){et[lt]=function(yt){var xt=Ve.subscr,mt=!!xt,Ft=Jw(Ve,Le)&&R$(lt,yt)?yt.obsSet={}:xt;if(mt){var qt=function(Ln){return Ln="idb://".concat(se,"/").concat(Ie,"/").concat(Ln),Ft[Ln]||(Ft[Ln]=new Ll)},Ut=qt(""),an=qt(":dels"),xt=dt[lt](yt),mt=xt[0],xt=xt[1];if((lt==="query"&&mt.isPrimaryKey&&!yt.values?an:qt(mt.name||"")).add(xt),!mt.isPrimaryKey){if(lt!=="count"){var An=lt==="query"&&St&&yt.values&&Le.query(i(i({},yt),{values:!1}));return Le[lt].apply(this,arguments).then(function(Ln){if(lt==="query"){if(St&&yt.values)return An.then(function(Jr){return Jr=Jr.result,Ut.addKeys(Jr),Ln});var mn=yt.values?Ln.result.map(ut):Ln.result;(yt.values?Ut:an).addKeys(mn)}else if(lt==="openCursor"){var jn=Ln,rr=yt.values;return jn&&Object.create(jn,{key:{get:function(){return an.addKey(jn.primaryKey),jn.key}},primaryKey:{get:function(){var Jr=jn.primaryKey;return an.addKey(Jr),Jr}},value:{get:function(){return rr&&Ut.addKey(jn.primaryKey),jn.value}}})}return Ln})}an.add(ye)}}return Le[lt].apply(this,arguments)}}),et}})}};function xc(X,se,ye){if(ye.numFailures===0)return se;if(se.type==="deleteRange")return null;var Ie=se.keys?se.keys.length:"values"in se&&se.values?se.values.length:1;return ye.numFailures===Ie?null:(se=i({},se),l(se.keys)&&(se.keys=se.keys.filter(function(Le,We){return!(We in ye.failures)})),"values"in se&&l(se.values)&&(se.values=se.values.filter(function(Le,We){return!(We in ye.failures)})),se)}function XS(X,se){return ye=X,((Ie=se).lower===void 0||(Ie.lowerOpen?0<qe(ye,Ie.lower):0<=qe(ye,Ie.lower)))&&(X=X,(se=se).upper===void 0||(se.upperOpen?qe(X,se.upper)<0:qe(X,se.upper)<=0));var ye,Ie}function M_(X,se,dt,Ie,Le,We){if(!dt||dt.length===0)return X;var rt=se.query.index,ut=rt.multiEntry,St=se.query.range,ze=Ie.schema.primaryKey.extractKey,et=rt.extractKey,Ge=(rt.lowLevelIndex||rt).extractKey,dt=dt.reduce(function(lt,yt){var xt=lt,mt=[];if(yt.type==="add"||yt.type==="put")for(var Ft=new Ll,qt=yt.values.length-1;0<=qt;--qt){var Ut,an=yt.values[qt],An=ze(an);Ft.hasKey(An)||(Ut=et(an),(ut&&l(Ut)?Ut.some(function(jn){return XS(jn,St)}):XS(Ut,St))&&(Ft.addKey(An),mt.push(an)))}switch(yt.type){case"add":var Fn=new Ll().addKeys(se.values?lt.map(function(rr){return ze(rr)}):lt),xt=lt.concat(se.values?mt.filter(function(rr){return rr=ze(rr),!Fn.hasKey(rr)&&(Fn.addKey(rr),!0)}):mt.map(function(rr){return ze(rr)}).filter(function(rr){return!Fn.hasKey(rr)&&(Fn.addKey(rr),!0)}));break;case"put":var Rn=new Ll().addKeys(yt.values.map(function(rr){return ze(rr)}));xt=lt.filter(function(rr){return!Rn.hasKey(se.values?ze(rr):rr)}).concat(se.values?mt:mt.map(function(rr){return ze(rr)}));break;case"delete":var Ln=new Ll().addKeys(yt.keys);xt=lt.filter(function(rr){return!Ln.hasKey(se.values?ze(rr):rr)});break;case"deleteRange":var mn=yt.range;xt=lt.filter(function(rr){return!XS(ze(rr),mn)})}return xt},X);return dt===X?X:(dt.sort(function(lt,yt){return qe(Ge(lt),Ge(yt))||qe(ze(lt),ze(yt))}),se.limit&&se.limit<1/0&&(dt.length>se.limit?dt.length=se.limit:X.length===se.limit&&dt.length<se.limit&&(Le.dirty=!0)),We?Object.freeze(dt):dt)}function xN(X,se){return qe(X.lower,se.lower)===0&&qe(X.upper,se.upper)===0&&!!X.lowerOpen==!!se.lowerOpen&&!!X.upperOpen==!!se.upperOpen}function N$(X,se){return function(ye,Ie,Le,We){if(ye===void 0)return Ie!==void 0?-1:0;if(Ie===void 0)return 1;if((Ie=qe(ye,Ie))===0){if(Le&&We)return 0;if(Le)return 1;if(We)return-1}return Ie}(X.lower,se.lower,X.lowerOpen,se.lowerOpen)<=0&&0<=function(ye,Ie,Le,We){if(ye===void 0)return Ie!==void 0?1:0;if(Ie===void 0)return-1;if((Ie=qe(ye,Ie))===0){if(Le&&We)return 0;if(Le)return-1;if(We)return 1}return Ie}(X.upper,se.upper,X.upperOpen,se.upperOpen)}function CG(X,se,ye,Ie){X.subscribers.add(ye),Ie.addEventListener("abort",function(){var Le,We;X.subscribers.delete(ye),X.subscribers.size===0&&(Le=X,We=se,setTimeout(function(){Le.subscribers.size===0&&B(We,Le)},3e3))})}var wG={stack:"dbcore",level:0,name:"Cache",create:function(X){var se=X.schema.name;return i(i({},X),{transaction:function(ye,Ie,Le){var We,rt,ut=X.transaction(ye,Ie,Le);return Ie==="readwrite"&&(rt=(We=new AbortController).signal,Le=function(St){return function(){if(We.abort(),Ie==="readwrite"){for(var ze=new Set,et=0,Ge=ye;et<Ge.length;et++){var dt=Ge[et],lt=rh["idb://".concat(se,"/").concat(dt)];if(lt){var yt=X.table(dt),xt=lt.optimisticOps.filter(function(rr){return rr.trans===ut});if(ut._explicit&&St&&ut.mutatedParts)for(var mt=0,Ft=Object.values(lt.queries.query);mt<Ft.length;mt++)for(var qt=0,Ut=(Fn=Ft[mt]).slice();qt<Ut.length;qt++)bN((Rn=Ut[qt]).obsSet,ut.mutatedParts)&&(B(Fn,Rn),Rn.subscribers.forEach(function(rr){return ze.add(rr)}));else if(0<xt.length){lt.optimisticOps=lt.optimisticOps.filter(function(rr){return rr.trans!==ut});for(var an=0,An=Object.values(lt.queries.query);an<An.length;an++)for(var Fn,Rn,Ln,mn=0,jn=(Fn=An[an]).slice();mn<jn.length;mn++)(Rn=jn[mn]).res!=null&&ut.mutatedParts&&(St&&!Rn.dirty?(Ln=Object.isFrozen(Rn.res),Ln=M_(Rn.res,Rn.req,xt,yt,Rn,Ln),Rn.dirty?(B(Fn,Rn),Rn.subscribers.forEach(function(rr){return ze.add(rr)})):Ln!==Rn.res&&(Rn.res=Ln,Rn.promise=Xe.resolve({result:Ln}))):(Rn.dirty&&B(Fn,Rn),Rn.subscribers.forEach(function(rr){return ze.add(rr)})))}}}ze.forEach(function(rr){return rr()})}}},ut.addEventListener("abort",Le(!1),{signal:rt}),ut.addEventListener("error",Le(!1),{signal:rt}),ut.addEventListener("complete",Le(!0),{signal:rt})),ut},table:function(ye){var Ie=X.table(ye),Le=Ie.schema.primaryKey;return i(i({},Ie),{mutate:function(We){var rt=Ve.trans;if(Le.outbound||rt.db._options.cache==="disabled"||rt.explicit||rt.idbtrans.mode!=="readwrite")return Ie.mutate(We);var ut=rh["idb://".concat(se,"/").concat(ye)];return ut?(rt=Ie.mutate(We),We.type!=="add"&&We.type!=="put"||!(50<=We.values.length||KS(Le,We).some(function(St){return St==null}))?(ut.optimisticOps.push(We),We.mutatedParts&&Qw(We.mutatedParts),rt.then(function(St){0<St.numFailures&&(B(ut.optimisticOps,We),(St=xc(0,We,St))&&ut.optimisticOps.push(St),We.mutatedParts&&Qw(We.mutatedParts))}),rt.catch(function(){B(ut.optimisticOps,We),We.mutatedParts&&Qw(We.mutatedParts)})):rt.then(function(St){var ze=xc(0,i(i({},We),{values:We.values.map(function(et,Ge){var dt;return St.failures[Ge]?et:(et=(dt=Le.keyPath)!==null&&dt!==void 0&&dt.includes(".")?k(et):i({},et),x(et,Le.keyPath,St.results[Ge]),et)})}),St);ut.optimisticOps.push(ze),queueMicrotask(function(){return We.mutatedParts&&Qw(We.mutatedParts)})}),rt):Ie.mutate(We)},query:function(We){if(!Jw(Ve,Ie)||!R$("query",We))return Ie.query(We);var rt=((ze=Ve.trans)===null||ze===void 0?void 0:ze.db._options.cache)==="immutable",Ge=Ve,ut=Ge.requery,St=Ge.signal,ze=function(yt,xt,mt,Ft){var qt=rh["idb://".concat(yt,"/").concat(xt)];if(!qt)return[];if(!(xt=qt.queries[mt]))return[null,!1,qt,null];var Ut=xt[(Ft.query?Ft.query.index.name:null)||""];if(!Ut)return[null,!1,qt,null];switch(mt){case"query":var an=Ut.find(function(An){return An.req.limit===Ft.limit&&An.req.values===Ft.values&&xN(An.req.query.range,Ft.query.range)});return an?[an,!0,qt,Ut]:[Ut.find(function(An){return("limit"in An.req?An.req.limit:1/0)>=Ft.limit&&(!Ft.values||An.req.values)&&N$(An.req.query.range,Ft.query.range)}),!1,qt,Ut];case"count":return an=Ut.find(function(An){return xN(An.req.query.range,Ft.query.range)}),[an,!!an,qt,Ut]}}(se,ye,"query",We),et=ze[0],Ge=ze[1],dt=ze[2],lt=ze[3];return et&&Ge?et.obsSet=We.obsSet:(Ge=Ie.query(We).then(function(yt){var xt=yt.result;if(et&&(et.res=xt),rt){for(var mt=0,Ft=xt.length;mt<Ft;++mt)Object.freeze(xt[mt]);Object.freeze(xt)}else yt.result=k(xt);return yt}).catch(function(yt){return lt&&et&&B(lt,et),Promise.reject(yt)}),et={obsSet:We.obsSet,promise:Ge,subscribers:new Set,type:"query",req:We,dirty:!1},lt?lt.push(et):(lt=[et],(dt=dt||(rh["idb://".concat(se,"/").concat(ye)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[We.query.index.name||""]=lt)),CG(et,lt,ut,St),et.promise.then(function(yt){return{result:M_(yt.result,We,dt==null?void 0:dt.optimisticOps,Ie,et,rt)}})}})}})}};function ex(X,se){return new Proxy(X,{get:function(ye,Ie,Le){return Ie==="db"?se:Reflect.get(ye,Ie,Le)}})}var ih=(Za.prototype.version=function(X){if(isNaN(X)||X<.1)throw new te.Type("Given version is not a positive number");if(X=Math.round(10*X)/10,this.idbdb||this._state.isBeingOpened)throw new te.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,X);var se=this._versions,ye=se.filter(function(Ie){return Ie._cfg.version===X})[0];return ye||(ye=new this.Version(X),se.push(ye),se.sort(EG),ye.stores({}),this._state.autoSchema=!1,ye)},Za.prototype._whenReady=function(X){var se=this;return this.idbdb&&(this._state.openComplete||Ve.letThrough||this._vip)?X():new Xe(function(ye,Ie){if(se._state.openComplete)return Ie(new te.DatabaseClosed(se._state.dbOpenError));if(!se._state.isBeingOpened){if(!se._state.autoOpen)return void Ie(new te.DatabaseClosed);se.open().catch(pe)}se._state.dbReadyPromise.then(ye,Ie)}).then(X)},Za.prototype.use=function(X){var se=X.stack,ye=X.create,Ie=X.level,Le=X.name;return Le&&this.unuse({stack:se,name:Le}),X=this._middlewares[se]||(this._middlewares[se]=[]),X.push({stack:se,create:ye,level:Ie??10,name:Le}),X.sort(function(We,rt){return We.level-rt.level}),this},Za.prototype.unuse=function(X){var se=X.stack,ye=X.name,Ie=X.create;return se&&this._middlewares[se]&&(this._middlewares[se]=this._middlewares[se].filter(function(Le){return Ie?Le.create!==Ie:!!ye&&Le.name!==ye})),this},Za.prototype.open=function(){var X=this;return ln(ge,function(){return N_(X)})},Za.prototype._close=function(){var X=this._state,se=Gt.indexOf(this);if(0<=se&&Gt.splice(se,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}X.isBeingOpened||(X.dbReadyPromise=new Xe(function(ye){X.dbReadyResolve=ye}),X.openCanceller=new Xe(function(ye,Ie){X.cancelOpen=Ie}))},Za.prototype.close=function(ye){var se=(ye===void 0?{disableAutoOpen:!0}:ye).disableAutoOpen,ye=this._state;se?(ye.isBeingOpened&&ye.cancelOpen(new te.DatabaseClosed),this._close(),ye.autoOpen=!1,ye.dbOpenError=new te.DatabaseClosed):(this._close(),ye.autoOpen=this._options.autoOpen||ye.isBeingOpened,ye.openComplete=!1,ye.dbOpenError=null)},Za.prototype.delete=function(X){var se=this;X===void 0&&(X={disableAutoOpen:!0});var ye=0<arguments.length&&typeof arguments[0]!="object",Ie=this._state;return new Xe(function(Le,We){function rt(){se.close(X);var ut=se._deps.indexedDB.deleteDatabase(se.name);ut.onsuccess=it(function(){var St,ze,et;St=se._deps,ze=se.name,et=St.indexedDB,St=St.IDBKeyRange,rc(et)||ze===zt||Xw(et,St).delete(ze).catch(pe),Le()}),ut.onerror=Is(We),ut.onblocked=se._fireOnBlocked}if(ye)throw new te.InvalidArgument("Invalid closeOptions argument to db.delete()");Ie.isBeingOpened?Ie.dbReadyPromise.then(rt):rt()})},Za.prototype.backendDB=function(){return this.idbdb},Za.prototype.isOpen=function(){return this.idbdb!==null},Za.prototype.hasBeenClosed=function(){var X=this._state.dbOpenError;return X&&X.name==="DatabaseClosed"},Za.prototype.hasFailed=function(){return this._state.dbOpenError!==null},Za.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(Za.prototype,"tables",{get:function(){var X=this;return s(this._allTables).map(function(se){return X._allTables[se]})},enumerable:!1,configurable:!0}),Za.prototype.transaction=function(){var X=(function(se,ye,Ie){var Le=arguments.length;if(Le<2)throw new te.InvalidArgument("Too few arguments");for(var We=new Array(Le-1);--Le;)We[Le-1]=arguments[Le];return Ie=We.pop(),[se,O(We),Ie]}).apply(this,arguments);return this._transaction.apply(this,X)},Za.prototype._transaction=function(X,se,ye){var Ie=this,Le=Ve.trans;Le&&Le.db===this&&X.indexOf("!")===-1||(Le=null);var We,rt,ut=X.indexOf("?")!==-1;X=X.replace("!","").replace("?","");try{if(rt=se.map(function(ze){if(ze=ze instanceof Ie.Table?ze.name:ze,typeof ze!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return ze}),X=="r"||X===Vn)We=Vn;else{if(X!="rw"&&X!=sr)throw new te.InvalidArgument("Invalid transaction mode: "+X);We=sr}if(Le){if(Le.mode===Vn&&We===sr){if(!ut)throw new te.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");Le=null}Le&&rt.forEach(function(ze){if(Le&&Le.storeNames.indexOf(ze)===-1){if(!ut)throw new te.SubTransaction("Table "+ze+" not included in parent transaction.");Le=null}}),ut&&Le&&!Le.active&&(Le=null)}}catch(ze){return Le?Le._promise(null,function(et,Ge){Ge(ze)}):en(ze)}var St=(function ze(et,Ge,dt,lt,yt){return Xe.resolve().then(function(){var xt=Ve.transless||Ve,mt=et._createTransaction(Ge,dt,et._dbSchema,lt);if(mt.explicit=!0,xt={trans:mt,transless:xt},lt)mt.idbtrans=lt.idbtrans;else try{mt.create(),mt.idbtrans._explicit=!0,et._state.PR1398_maxLoop=3}catch(Ut){return Ut.name===j.InvalidState&&et.isOpen()&&0<--et._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),et.close({disableAutoOpen:!1}),et.open().then(function(){return ze(et,Ge,dt,null,yt)})):en(Ut)}var Ft,qt=K(yt);return qt&&on(),xt=Xe.follow(function(){var Ut;(Ft=yt.call(mt,mt))&&(qt?(Ut=sn.bind(null,null),Ft.then(Ut,Ut)):typeof Ft.next=="function"&&typeof Ft.throw=="function"&&(Ft=CN(Ft)))},xt),(Ft&&typeof Ft.then=="function"?Xe.resolve(Ft).then(function(Ut){return mt.active?Ut:en(new te.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):xt.then(function(){return Ft})).then(function(Ut){return lt&&mt._resolve(),mt._completion.then(function(){return Ut})}).catch(function(Ut){return mt._reject(Ut),en(Ut)})})}).bind(null,this,We,rt,Le,ye);return Le?Le._promise(We,St,"lock"):Ve.trans?ln(Ve.transless,function(){return Ie._whenReady(St)}):this._whenReady(St)},Za.prototype.table=function(X){if(!f(this._allTables,X))throw new te.InvalidTable("Table ".concat(X," does not exist"));return this._allTables[X]},Za);function Za(X,se){var ye=this;this._middlewares={},this.verno=0;var Ie=Za.dependencies;this._options=se=i({addons:Za.addons,autoOpen:!0,indexedDB:Ie.indexedDB,IDBKeyRange:Ie.IDBKeyRange,cache:"cloned"},se),this._deps={indexedDB:se.indexedDB,IDBKeyRange:se.IDBKeyRange},Ie=se.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var Le,We,rt,ut,St,ze={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:pe,dbReadyPromise:null,cancelOpen:pe,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:se.autoOpen};ze.dbReadyPromise=new Xe(function(Ge){ze.dbReadyResolve=Ge}),ze.openCanceller=new Xe(function(Ge,dt){ze.cancelOpen=dt}),this._state=ze,this.name=X,this.on=Ci(this,"populate","blocked","versionchange","close",{ready:[Ee,pe]}),this.on.ready.subscribe=b(this.on.ready.subscribe,function(Ge){return function(dt,lt){Za.vip(function(){var yt,xt=ye._state;xt.openComplete?(xt.dbOpenError||Xe.resolve().then(dt),lt&&Ge(dt)):xt.onReadyBeingFired?(xt.onReadyBeingFired.push(dt),lt&&Ge(dt)):(Ge(dt),yt=ye,lt||Ge(function mt(){yt.on.ready.unsubscribe(dt),yt.on.ready.unsubscribe(mt)}))})}}),this.Collection=(Le=this,wi(Qo.prototype,function(Ft,mt){this.db=Le;var lt=W,yt=null;if(mt)try{lt=mt()}catch(qt){yt=qt}var xt=Ft._ctx,mt=xt.table,Ft=mt.hook.reading.fire;this._ctx={table:mt,index:xt.index,isPrimKey:!xt.index||mt.schema.primKey.keyPath&&xt.index===mt.schema.primKey.name,range:lt,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:yt,or:xt.or,valueMapper:Ft!==me?Ft:null}})),this.Table=(We=this,wi(Nn.prototype,function(Ge,dt,lt){this.db=We,this._tx=lt,this.name=Ge,this.schema=dt,this.hook=We._allTables[Ge]?We._allTables[Ge].hook:Ci(null,{creating:[be,pe],reading:[ve,me],updating:[De,pe],deleting:[we,pe]})})),this.Transaction=(rt=this,wi(Ir.prototype,function(Ge,dt,lt,yt,xt){var mt=this;this.db=rt,this.mode=Ge,this.storeNames=dt,this.schema=lt,this.chromeTransactionDurability=yt,this.idbtrans=null,this.on=Ci(this,"complete","error","abort"),this.parent=xt||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 Xe(function(Ft,qt){mt._resolve=Ft,mt._reject=qt}),this._completion.then(function(){mt.active=!1,mt.on.complete.fire()},function(Ft){var qt=mt.active;return mt.active=!1,mt.on.error.fire(Ft),mt.parent?mt.parent._reject(Ft):qt&&mt.idbtrans&&mt.idbtrans.abort(),en(Ft)})})),this.Version=(ut=this,wi(w$.prototype,function(Ge){this.db=ut,this._cfg={version:Ge,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(St=this,wi(kl.prototype,function(Ge,dt,lt){if(this.db=St,this._ctx={table:Ge,index:dt===":id"?null:dt,or:lt},this._cmp=this._ascending=qe,this._descending=function(yt,xt){return qe(xt,yt)},this._max=function(yt,xt){return 0<qe(yt,xt)?yt:xt},this._min=function(yt,xt){return qe(yt,xt)<0?yt:xt},this._IDBKeyRange=St._deps.IDBKeyRange,!this._IDBKeyRange)throw new te.MissingAPI})),this.on("versionchange",function(Ge){0<Ge.newVersion?console.warn("Another connection wants to upgrade database '".concat(ye.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(ye.name,"'. Closing db now to resume the delete request.")),ye.close({disableAutoOpen:!1})}),this.on("blocked",function(Ge){!Ge.newVersion||Ge.newVersion<Ge.oldVersion?console.warn("Dexie.delete('".concat(ye.name,"') was blocked")):console.warn("Upgrade '".concat(ye.name,"' blocked by other connection holding version ").concat(Ge.oldVersion/10))}),this._maxKey=eh(se.IDBKeyRange),this._createTransaction=function(Ge,dt,lt,yt){return new ye.Transaction(Ge,dt,lt,ye._options.chromeTransactionDurability,yt)},this._fireOnBlocked=function(Ge){ye.on("blocked").fire(Ge),Gt.filter(function(dt){return dt.name===ye.name&&dt!==ye&&!dt._state.vcFired}).map(function(dt){return dt.on("versionchange").fire(Ge)})},this.use(wN),this.use(wG),this.use(I$),this.use(x$),this.use(T$);var et=new Proxy(this,{get:function(Ge,dt,lt){if(dt==="_vip")return!0;if(dt==="table")return function(xt){return ex(ye.table(xt),et)};var yt=Reflect.get(Ge,dt,lt);return yt instanceof Nn?ex(yt,et):dt==="tables"?yt.map(function(xt){return ex(xt,et)}):dt==="_createTransaction"?function(){return ex(yt.apply(this,arguments),et)}:yt}});this.vip=et,Ie.forEach(function(Ge){return Ge(ye)})}var oh,Fu=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",xG=(QS.prototype.subscribe=function(X,se,ye){return this._subscribe(X&&typeof X!="function"?X:{next:X,error:se,complete:ye})},QS.prototype[Fu]=function(){return this},QS);function QS(X){this._subscribe=X}try{oh={indexedDB:a.indexedDB||a.mozIndexedDB||a.webkitIndexedDB||a.msIndexedDB,IDBKeyRange:a.IDBKeyRange||a.webkitIDBKeyRange}}catch{oh={indexedDB:null,IDBKeyRange:null}}function TN(X){var se,ye=!1,Ie=new xG(function(Le){var We=K(X),rt,ut=!1,St={},ze={},et={get closed(){return ut},unsubscribe:function(){ut||(ut=!0,rt&&rt.abort(),Ge&&Wn.storagemutated.unsubscribe(lt))}};Le.start&&Le.start(et);var Ge=!1,dt=function(){return Lt(yt)},lt=function(xt){I_(St,xt),bN(ze,St)&&dt()},yt=function(){var xt,mt,Ft;!ut&&oh.indexedDB&&(St={},xt={},rt&&rt.abort(),rt=new AbortController,Ft=function(qt){var Ut=Bt();try{We&&on();var an=tn(X,qt);return an=We?an.finally(sn):an}finally{Ut&&Vt()}}(mt={subscr:xt,signal:rt.signal,requery:dt,querier:X,trans:null}),Promise.resolve(Ft).then(function(qt){ye=!0,se=qt,ut||mt.signal.aborted||(St={},function(Ut){for(var an in Ut)if(f(Ut,an))return;return 1}(ze=xt)||Ge||(Wn(Lu,lt),Ge=!0),Lt(function(){return!ut&&Le.next&&Le.next(qt)}))},function(qt){ye=!1,["DatabaseClosedError","AbortError"].includes(qt==null?void 0:qt.name)||ut||Lt(function(){ut||Le.error&&Le.error(qt)})}))};return setTimeout(dt,0),et});return Ie.hasValue=function(){return ye},Ie.getValue=function(){return se},Ie}var Tc=ih;function P_(X){var se=Ag;try{Ag=!0,Wn.storagemutated.fire(X),Zw(X,!0)}finally{Ag=se}}p(Tc,i(i({},de),{delete:function(X){return new Tc(X,{addons:[]}).delete()},exists:function(X){return new Tc(X,{addons:[]}).open().then(function(se){return se.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(X){try{return se=Tc.dependencies,ye=se.indexedDB,se=se.IDBKeyRange,(rc(ye)?Promise.resolve(ye.databases()).then(function(Ie){return Ie.map(function(Le){return Le.name}).filter(function(Le){return Le!==zt})}):Xw(ye,se).toCollection().primaryKeys()).then(X)}catch{return en(new te.MissingAPI)}var se,ye},defineClass:function(){return function(X){c(this,X)}},ignoreTransaction:function(X){return Ve.trans?ln(Ve.transless,X):X()},vip:_N,async:function(X){return function(){try{var se=CN(X.apply(this,arguments));return se&&typeof se.then=="function"?se:Xe.resolve(se)}catch(ye){return en(ye)}}},spawn:function(X,se,ye){try{var Ie=CN(X.apply(ye,se||[]));return Ie&&typeof Ie.then=="function"?Ie:Xe.resolve(Ie)}catch(Le){return en(Le)}},currentTransaction:{get:function(){return Ve.trans||null}},waitFor:function(X,se){return se=Xe.resolve(typeof X=="function"?Tc.ignoreTransaction(X):X).timeout(se||6e4),Ve.trans?Ve.trans.waitFor(se):se},Promise:Xe,debug:{get:function(){return Re},set:function(X){Te(X)}},derive:v,extend:c,props:p,override:b,Events:Ci,on:Wn,liveQuery:TN,extendObservabilitySet:I_,getByKeyPath:C,setByKeyPath:x,delByKeyPath:function(X,se){typeof se=="string"?x(X,se,void 0):"length"in se&&[].map.call(se,function(ye){x(X,ye,void 0)})},shallowClone:T,deepClone:k,getObjectDiff:qS,cmp:qe,asap:w,minKey:-1/0,addons:[],connections:Gt,errnames:j,dependencies:oh,cache:rh,semVer:"4.0.10",version:"4.0.10".split(".").map(function(X){return parseInt(X)}).reduce(function(X,se,ye){return X+se/Math.pow(10,2*ye)})})),Tc.maxKey=eh(Tc.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(Wn(Lu,function(X){Ag||(X=new CustomEvent(Mg,{detail:X}),Ag=!0,dispatchEvent(X),Ag=!1)}),addEventListener(Mg,function(X){X=X.detail,Ag||P_(X)}));var A_,Ag=!1,M$=function(){};return typeof BroadcastChannel<"u"&&((M$=function(){(A_=new BroadcastChannel(Mg)).onmessage=function(X){return X.data&&P_(X.data)}})(),typeof A_.unref=="function"&&A_.unref(),Wn(Lu,function(X){Ag||A_.postMessage(X)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(X){if(!ih.disableBfCache&&X.persisted){Re&&console.debug("Dexie: handling persisted pagehide"),A_!=null&&A_.close();for(var se=0,ye=Gt;se<ye.length;se++)ye[se].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(X){!ih.disableBfCache&&X.persisted&&(Re&&console.debug("Dexie: handling persisted pageshow"),M$(),P_({all:new Ll(-1/0,[[]])}))})),Xe.rejectionMapper=function(X,se){return!X||X instanceof G||X instanceof TypeError||X instanceof SyntaxError||!X.name||!oe[X.name]?X:(se=new oe[X.name](se||X.message,X),"stack"in X&&g(se,"stack",{get:function(){return this.inner.stack}}),se)},Te(Re),i(ih,Object.freeze({__proto__:null,Dexie:ih,liveQuery:TN,Entity:Pe,cmp:qe,PropModSymbol:ur,PropModification:qr,replacePrefix:function(X,se){return new qr({replacePrefix:[X,se]})},add:function(X){return new qr({add:X})},remove:function(X){return new qr({remove:X})},default:ih,RangeSet:Ll,mergeRanges:$u,rangesOverlap:GS}),{default:ih}),ih})})(uGe);var aqt=uGe.exports;const Rie=Or(aqt),kwe=Symbol.for("Dexie"),rB=globalThis[kwe]||(globalThis[kwe]=Rie);if(Rie.semVer!==rB.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${Rie.semVer} and ${rB.semVer}`);const{liveQuery:sqt,mergeRanges:h1r,rangesOverlap:g1r,RangeSet:m1r,cmp:v1r,Entity:y1r,PropModSymbol:_1r,PropModification:b1r,replacePrefix:S1r,add:E1r,remove:C1r}=rB;class dGe extends rB{constructor(){super("bytedesk");$t(this,"threads");$t(this,"messages");this.version(1).stores({threads:"++id, uid",messages:"++id, uid"})}async createMessage(r){return console.log("useIndexedDB createMessage",r.content),await Zf.messages.put({uid:r.uid,type:r.type,content:r.content,client:r.client,createdAt:r.createdAt,status:"unread",threadTopic:r.threadTopic})}async getAllMessages(){return(await Zf.messages.toArray()).map(i=>({uid:i.uid||"",type:i.type||"",content:i.content||"",client:i.client||"",createdAt:i.createdAt||"",status:i.status||"",threadTopic:i.threadTopic||"",user:{uid:i.userUid||"",nickname:i.userNickname||"",avatar:i.userAvatar||""}}))}async getMessage(r){return await Zf.messages.get(r)}async updateMessage(r,i){return await Zf.messages.update(r,{content:i})}async deleteMessage(r){return await Zf.messages.delete(r)}subscribeMessages(){sqt(()=>this.messages.toArray()).subscribe({next:i=>{const o=i.map(a=>a.uid);console.log("messagesObservable message uids",o)}})}async createThread(r){var i,o,a;return console.log("useIndexedDB createThread",r.topic),await Zf.threads.put({uid:r.uid,type:r.type,topic:r.topic,status:r.status,extra:r.extra,updatedAt:r.updatedAt,userUid:(i=r.user)==null?void 0:i.uid,userNickname:(o=r.user)==null?void 0:o.nickname,userAvatar:(a=r.user)==null?void 0:a.avatar})}async getAllThreads(){return(await Zf.threads.toArray()).map(i=>({uid:i.uid||"",type:i.type||"",topic:i.topic||"",status:i.status||"",extra:i.extra||"",createdAt:i.updatedAt||"",user:{uid:i.userUid||"",nickname:i.userNickname||"",avatar:i.userAvatar||""}}))}async getThread(r){return await Zf.threads.get(r)}async updateThread(r,i){return await Zf.threads.update(r,i)}async deleteThread(r){return await Zf.threads.delete(r)}}const Zf=new dGe;let hs,Yu,qu,Tx=!1;const lqt=({uid:e,username:n,accessToken:r})=>{if(r===""||r==null){console.log("accessToken is empty, don't connect mqtt");return}if(Yu=ws.getState().userInfo,qu=XC.getState().agentInfo,Tx){console.log("mqtt is connecting");return}if(hs&&hs.connected){console.log("mqtt already connected");return}if(hs&&hs.reconnecting){console.log("mqtt already reconnecting");return}Tx=!0;const i=ws.getState().deviceUid,a={keepalive:30,clientId:e+"/"+xo+"/"+i,username:n,password:r,clean:!1,path:"/websocket",reconnectPeriod:5e3,connectTimeout:30*1e3,reschedulePings:!0,rejectUnauthorized:!1};console.log("mqtt start connect:",a),hs=BEt.connect(V0t(),a),hs.on("connect",()=>{console.log("mqtt event connected"),Tx=!1,Qr.emit(Ree)}),hs.on("message",async function(s,l,c){console.log("mqtt receive message topic:",s,c);const u=cFe.Message.deserializeBinary(l),d=Ah.getState().currentThread,f={uid:u.getThread().getUid(),type:u.getThread().getType(),topic:u.getThread().getTopic(),content:u.getContent(),updatedAt:u.getCreatedat(),unreadCount:0,user:{uid:u.getThread().getUser().getUid(),nickname:u.getThread().getUser().getNickname(),avatar:u.getThread().getUser().getAvatar()}},p={uid:u.getUid(),createdAt:u.getCreatedat(),client:u.getClient(),type:u.getType(),status:u.getStatus(),user:{uid:u.getUser().getUid(),nickname:u.getUser().getNickname(),avatar:u.getUser().getAvatar()},content:u.getContent(),threadTopic:u.getThread().getTopic()};if(fqt(u,Yu,qu))switch(u.getType()){case Hee:case Uee:Rq(u);return;case Bee:case jee:return;case Cbe:return;case xbe:console.log("self transfer message"),Bwe(p,f);break;case Tbe:console.log("self transfer accept message"),jwe(p,f);return;case Obe:console.log("self transfer reject message"),Uwe(p,f);return;case wbe:console.log("self recall message"),Hwe(p);return;case LP:console.log("thread closed message"),Ah.getState().closeThread(f.topic);break;default:u.setStatus($ee)}else switch(u.getType()){case Hee:case Uee:Rq(u);return;case Bee:case jee:Fwe(d,f,u.getType());return;case DP:Fwe(d,f,u.getType());break;case Cbe:pqt(u,d,f);return;case r_t:case i_t:case o_t:case a_t:case s_t:case l_t:Rq(u);return;case xbe:console.log("transfer message"),Bwe(p,f);break;case Tbe:console.log("transfer accept message"),jwe(p,f);return;case Obe:console.log("transfer reject message"),Uwe(p,f);return;case wbe:console.log("recall message"),Hwe(p);return;case kP:case LP:console.log("thread closed message"),Ah.getState().closeThread(f.topic);break;default:console.log("send receive message type",u.getType()),hqt(u,d,f)}console.log("mqtt message received",s,p,f),qy.getState().addMessage(p),Qr.emit(AP,p);const h=Ah.getState().addThreadWithMessage(f,p);console.log("unreadCount",h);try{await Zf.createMessage(p),console.log("Sent message stored in IndexedDB:",p)}catch(g){console.error("Error storing sent message in IndexedDB:",g)}}),hs.on("packetsend",s=>{console.log("mqtt event packetsend",s)}),hs.on("packetreceive",s=>{console.log("mqtt event packetreceive",s,s.cmd),s.cmd==="publish"||s.cmd==="pingresp"&&console.log("mqtt event packetreceive pingresp")}),hs.on("reconnect",()=>{console.log("mqtt event reconnect")}),hs.on("close",()=>{console.log("mqtt event close"),Tx=!1,Qr.emit(Nee)}),hs.on("disconnect",()=>{console.error("mqtt event disconnected"),Tx=!1,Qr.emit(Mee)}),hs.on("offline",()=>{console.log("mqtt event offline"),Tx=!1,Qr.emit(Iee)}),hs.on("error",()=>{console.log("mqtt event error"),Qr.emit(Pee)}),hs.on("end",()=>{console.log("mqtt event end"),Qr.emit(Aee)})},Lwe=new Set,fGe=(e,n)=>{console.log("mqtt mqttSendReceiptReceivedMessage",e),Lwe.has(e)||(Lwe.add(e),pGe(X7(),Uee,e,n))},$we=new Set,cqt=(e,n)=>{console.log("mqtt mqttSendReceiptReadMessage",e),$we.has(e)||($we.add(e),pGe(X7(),Hee,e,n))},pGe=async(e,n,r,i)=>{var a,s,l,c,u,d,f,p;console.log("mqtt mqttSendMessage",r);const o=Zxt();if(hs&&hs.connected){const h=new UEt.Thread;h.setUid(i.uid),h.setType(i.type),h.setTopic(i.topic);const g=new k0e.User;g.setUid((a=i.user)==null?void 0:a.uid),g.setNickname((s=i.user)==null?void 0:s.nickname),g.setAvatar((l=i.user)==null?void 0:l.avatar),h.setUser(g);const v=new k0e.User;(qu==null?void 0:qu.uid)!=""&&((i==null?void 0:i.type)===ybe||(i==null?void 0:i.type)===_be)?(v.setUid(qu.uid),v.setNickname(qu.nickname),v.setAvatar(qu.avatar),v.setType(mbe)):(v.setUid(Yu.uid),v.setNickname(Yu.nickname),v.setAvatar(Yu.avatar),v.setType(vbe));const y={orgUid:(c=Yu==null?void 0:Yu.currentOrganization)==null?void 0:c.uid},_=new cFe.Message;_.setUid(e),_.setType(n),_.setStatus(Ebe),_.setCreatedat(o),_.setClient(xo),_.setContent(r),_.setUser(v),_.setThread(h),_.setExtra(JSON.stringify(y));const S=_.serializeBinary();hs.publish(i.topic,S);try{const b={uid:_.getUid(),type:_.getType(),content:_.getContent(),client:_.getClient(),createdAt:_.getCreatedat(),status:_.getStatus(),threadTopic:_.getThread().getTopic(),user:{uid:_.getUser().getUid(),nickname:_.getUser().getNickname(),avatar:_.getUser().getAvatar()}};await Zf.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 h={uid:i.uid,type:i.type,topic:i.topic,user:{uid:(u=i.user)==null?void 0:u.uid,nickname:(d=i.user)==null?void 0:d.nickname,avatar:(f=i.user)==null?void 0:f.avatar}};let g;(qu==null?void 0:qu.uid)!=""&&((i==null?void 0:i.type)===ybe||(i==null?void 0:i.type)===_be)?g={uid:qu.uid,nickname:qu.nickname,avatar:qu.avatar,type:mbe}:g={uid:Yu.uid,nickname:Yu.nickname,avatar:Yu.avatar,type:vbe};const v={orgUid:(p=Yu==null?void 0:Yu.currentOrganization)==null?void 0:p.uid},y={uid:e,type:n,status:Ebe,createdAt:o,client:xo,content:r,extra:JSON.stringify(v),user:g,thread:h};dqt(y)}},Oq=()=>{hs?hs.end():console.log("mqttClient is null")},uqt=()=>hs&&hs.connected,dqt=async e=>{const n=JSON.stringify(e),r=await X0t(n);if(console.log("sendHttpMessage:",r.data),r.data.code===200){qy.getState().updateMessageStatus(e==null?void 0:e.uid,$ee);const i={uid:e==null?void 0:e.uid,type:$ee};Qr.emit(P4e,JSON.stringify(i))}else Nt.error(r.data.message)},fqt=(e,n,r)=>e.getUser().getUid()===(n==null?void 0:n.uid)||e.getUser().getUid()===(r==null?void 0:r.uid);function Rq(e){console.log("update message status:",e.getContent(),e.getType()),qy.getState().updateMessageStatus(e.getContent(),e.getType());const n={uid:e.getContent(),type:e.getType()};Qr.emit(P4e,JSON.stringify(n))}function Fwe(e,n,r){(e==null?void 0:e.topic)===(n==null?void 0:n.topic)&&(r===Bee?Qr.emit(_yt):r===jee?Qr.emit(byt):r===DP&&Qr.emit(Syt))}function pqt(e,n,r){(n==null?void 0:n.topic)===(r==null?void 0:r.topic)&&Qr.emit(Eyt,e.getContent())}function Bwe(e,n){const r={message:e,thread:n};Qr.emit(Dee,JSON.stringify(r))}function jwe(e,n){const r=JSON.parse(e==null?void 0:e.content);qy.getState().updateMessageStatus(r.uid,Kyt);const i={message:e,thread:n};Qr.emit(kee,JSON.stringify(i))}function Uwe(e,n){const r=JSON.parse(e==null?void 0:e.content);qy.getState().updateMessageStatus(r.uid,Xyt);const i={message:e,thread:n};Qr.emit(Lee,JSON.stringify(i))}function Hwe(e){console.log("handleRecallMessage",e==null?void 0:e.uid,e==null?void 0:e.content),qy.getState().recallMessage(e==null?void 0:e.content)}function hqt(e,n,r){if(!nTt(r==null?void 0:r.topic)&&Jxt(e==null?void 0:e.getType())){const i=e==null?void 0:e.getUid();fGe(i,r),(n==null?void 0:n.topic)===(r==null?void 0:r.topic)&&cqt(i,r)}}const gqt=Ru()(Lp(Ed($p(e=>({devices:[],currentDevice:{uid:""},myDevice:{uid:""},addDevice(n){console.log("addDevice",n)},setCurrentDevice:n=>{e({currentDevice:n})},setMyDevice(n){e({myDevice:n})},resetDeviceInfo(){}})),{name:Pyt}))),mqt=()=>{CA("https://www.weiyuai.cn/docs/zh-CN/")},CA=e=>{Yl?window.electronAPI.openUrl(e):window.open(e,"_blank")},vqt=async()=>{if(Yl){const e=await window.electronAPI.getSystemInfo();console.log("systemInfo:",e)}else return console.log("not electron"),{platform:"web"}},hGe=async()=>Yl?await window.electronAPI.getIpAddress():(console.log("not electron"),[]),yqt=async()=>{if(Yl){const e=await window.electronAPI.isWindowActive();return console.log("isWindowActive:",e),e}return null},_qt=(e,n)=>{Yl&&window.electronAPI.showElectronNotification(e,n)},bqt=e=>{Yl?window.electronAPI.setThemeMode(e):console.log("not electron")},Iie=()=>{Yl&&window.electronAPI.loginSuccess()},Sqt=()=>{Yl&&window.electronAPI.logoutSuccess()};function Yde(){const[e,n]=m.useState(""),{myDevice:r,setMyDevice:i}=gqt(T=>({myDevice:T.myDevice,setMyDevice:T.setMyDevice})),{userInfo:o,deviceUid:a,setUserInfo:s,setDeviceUid:l}=ws(T=>({userInfo:T.userInfo,deviceUid:T.deviceUid,setUserInfo:T.setUserInfo,setDeviceUid:T.setDeviceUid})),{agentInfo:c}=XC(T=>({agentInfo:T.agentInfo})),u=qy(T=>T.addMessage),d=Ah(T=>T.updateThreadContent),f=m.useRef(!1),[p,h]=m.useState(!1);m.useEffect(()=>{h(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(T=>{T.roles.forEach(R=>{R.name===p_t&&h(!0)})})},[o.userOrganizationRoles]);const[g,v]=m.useState(!1);m.useEffect(()=>{v(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(T=>{T.roles.forEach(R=>{R.name===h_t&&v(!0)})})},[o.userOrganizationRoles]);const[y,_]=m.useState(!1);m.useEffect(()=>{_(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(T=>{T.roles.forEach(R=>{R.name===g_t&&_(!0)})})},[o.userOrganizationRoles]);const[S,b]=m.useState(!1);m.useEffect(()=>{b(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(T=>{T.roles.forEach(R=>{R.name===m_t&&b(!0)})})},[o.userOrganizationRoles]);const E="",w=async()=>{const T=await hGe();console.log("ipAddress",e,T),T.length>0&&(n(T[0]),r.ip=T[0],i(r))},C=async()=>{var R,O;if(f.current)return;f.current=!0;const T=await K0t(c==null?void 0:c.uid);console.log("getAgentMessageUnread response:",T==null?void 0:T.data),(O=(R=T==null?void 0:T.data)==null?void 0:R.data)==null||O.forEach(M=>{console.log("getAgentMessageUnread item:",M),u(M);const P=d(M.threadTopic,M.content);P&&fGe(M==null?void 0:M.uid,P)}),f.current=!1};return m.useEffect(()=>{S&&C()},[S]),m.useEffect(()=>{console.log("useUserInfo useEffect"),(a===void 0||a==="")&&l(X7()),w()},[]),{userInfo:o,setUserInfo:s,agentInfo:c,handleUpdateAgentStatus:async T=>{const R={...c,status:T};Nt.loading("正在更新状态");const O=await q0t(R);console.log("updateAgentStatus:",T,O.data),O.data.code===200?(Nt.destroy(),Nt.success("状态更新成功")):(Nt.destroy(),Nt.error("状态更新失败"))},avatar:E,hasRoleAgent:S,hasRoleSuper:p,hasRoleAdmin:g,hasRoleMember:y}}const Xl=m.createContext({}),Eqt=({children:e})=>{const[n,r]=m.useState(!1),[i,o]=m.useState(!1),a=VD(R=>R.accessToken),s=v_t(R=>R.settings),{userInfo:l,setUserInfo:c,agentInfo:u,handleUpdateAgentStatus:d,hasRoleAgent:f,hasRoleSuper:p,hasRoleAdmin:h,hasRoleMember:g}=Yde(),v=m.useMemo(()=>!!a&&a.trim().length>0,[a]),{themeMode:y,setThemeMode:_,isDarkMode:S}=Y4e(),[b,E]=m.useState(tT),w=R=>{let O;R==="en"?O=Mbe:R==="zh-cn"?O=tT:R==="zh-tw"?O=fbt:O=tT,console.log("changeLocale localeValue:",O),E(O),localStorage.setItem(dbe,O.locale)},[C,x]=m.useState(PT),T=R=>{x(R),localStorage.setItem(fbe,R)};return m.useEffect(()=>{const R=localStorage.getItem(dbe);E(R==="en"?Mbe:tT);const O=localStorage.getItem(fbe);x(O===PT?PT:O===V1?V1:CF)},[]),N.jsx(Xl.Provider,{value:{isCustomServer:n,setIsCustomServer:r,isLoggedIn:v,settings:s,isDarkMode:S,themeMode:y,setThemeMode:_,locale:b,changeLocale:w,mode:C,changeMode:T,isPingLoading:i,setPingLoading:o,userInfo:l,setUserInfo:c,agentInfo:u,handleUpdateAgentStatus:d,hasRoleAgent:f,hasRoleSuper:p,hasRoleAdmin:h,hasRoleMember:g},children:e})},Pu=()=>{const e=m.useContext(Xl);if(!e)throw new Error("useAppContext must be used within an AppProvider");return e};var OU=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(){}},RU=typeof window>"u"||"Deno"in globalThis;function bh(){}function Cqt(e,n){return typeof e=="function"?e(n):e}function wqt(e){return typeof e=="number"&&e>=0&&e!==1/0}function xqt(e,n){return Math.max(e+(n||0)-Date.now(),0)}function zwe(e,n){return typeof e=="function"?e(n):e}function Tqt(e,n){return typeof e=="function"?e(n):e}function Vwe(e,n){const{type:r="all",exact:i,fetchStatus:o,predicate:a,queryKey:s,stale:l}=e;if(s){if(i){if(n.queryHash!==qde(s,n.options))return!1}else if(!xA(n.queryKey,s))return!1}if(r!=="all"){const c=n.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof l=="boolean"&&n.isStale()!==l||o&&o!==n.state.fetchStatus||a&&!a(n))}function Gwe(e,n){const{exact:r,status:i,predicate:o,mutationKey:a}=e;if(a){if(!n.options.mutationKey)return!1;if(r){if(wA(n.options.mutationKey)!==wA(a))return!1}else if(!xA(n.options.mutationKey,a))return!1}return!(i&&n.state.status!==i||o&&!o(n))}function qde(e,n){return((n==null?void 0:n.queryKeyHashFn)||wA)(e)}function wA(e){return JSON.stringify(e,(n,r)=>Nie(r)?Object.keys(r).sort().reduce((i,o)=>(i[o]=r[o],i),{}):r)}function xA(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?!Object.keys(n).some(r=>!xA(e[r],n[r])):!1}function gGe(e,n){if(e===n)return e;const r=Wwe(e)&&Wwe(n);if(r||Nie(e)&&Nie(n)){const i=r?e:Object.keys(e),o=i.length,a=r?n:Object.keys(n),s=a.length,l=r?[]:{};let c=0;for(let u=0;u<s;u++){const d=r?u:a[u];(!r&&i.includes(d)||r)&&e[d]===void 0&&n[d]===void 0?(l[d]=void 0,c++):(l[d]=gGe(e[d],n[d]),l[d]===e[d]&&e[d]!==void 0&&c++)}return o===s&&c===o?e:l}return n}function Wwe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Nie(e){if(!Ywe(e))return!1;const n=e.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!Ywe(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ywe(e){return Object.prototype.toString.call(e)==="[object Object]"}function Oqt(e){return new Promise(n=>{setTimeout(n,e)})}function Rqt(e,n,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,n):r.structuralSharing!==!1?gGe(e,n):n}function Iqt(e,n,r=0){const i=[...e,n];return r&&i.length>r?i.slice(1):i}function Nqt(e,n,r=0){const i=[n,...e];return r&&i.length>r?i.slice(0,-1):i}var Kde=Symbol();function mGe(e,n){return!e.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!e.queryFn||e.queryFn===Kde?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var h1,Ib,aO,V3e,Mqt=(V3e=class extends OU{constructor(){super();Xn(this,h1);Xn(this,Ib);Xn(this,aO);xn(this,aO,n=>{if(!RU&&window.addEventListener){const r=()=>n();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){He(this,Ib)||this.setEventListener(He(this,aO))}onUnsubscribe(){var n;this.hasListeners()||((n=He(this,Ib))==null||n.call(this),xn(this,Ib,void 0))}setEventListener(n){var r;xn(this,aO,n),(r=He(this,Ib))==null||r.call(this),xn(this,Ib,n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(n){He(this,h1)!==n&&(xn(this,h1,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(r=>{r(n)})}isFocused(){var n;return typeof He(this,h1)=="boolean"?He(this,h1):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},h1=new WeakMap,Ib=new WeakMap,aO=new WeakMap,V3e),vGe=new Mqt,sO,Nb,lO,G3e,Pqt=(G3e=class extends OU{constructor(){super();Xn(this,sO,!0);Xn(this,Nb);Xn(this,lO);xn(this,lO,n=>{if(!RU&&window.addEventListener){const r=()=>n(!0),i=()=>n(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){He(this,Nb)||this.setEventListener(He(this,lO))}onUnsubscribe(){var n;this.hasListeners()||((n=He(this,Nb))==null||n.call(this),xn(this,Nb,void 0))}setEventListener(n){var r;xn(this,lO,n),(r=He(this,Nb))==null||r.call(this),xn(this,Nb,n(this.setOnline.bind(this)))}setOnline(n){He(this,sO)!==n&&(xn(this,sO,n),this.listeners.forEach(i=>{i(n)}))}isOnline(){return He(this,sO)}},sO=new WeakMap,Nb=new WeakMap,lO=new WeakMap,G3e),iB=new Pqt;function Aqt(){let e,n;const r=new Promise((o,a)=>{e=o,n=a});r.status="pending",r.catch(()=>{});function i(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{i({status:"fulfilled",value:o}),e(o)},r.reject=o=>{i({status:"rejected",reason:o}),n(o)},r}function Dqt(e){return Math.min(1e3*2**e,3e4)}function yGe(e){return(e??"online")==="online"?iB.isOnline():!0}var _Ge=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Iq(e){return e instanceof _Ge}function bGe(e){let n=!1,r=0,i=!1,o;const a=Aqt(),s=v=>{var y;i||(p(new _Ge(v)),(y=e.abort)==null||y.call(e))},l=()=>{n=!0},c=()=>{n=!1},u=()=>vGe.isFocused()&&(e.networkMode==="always"||iB.isOnline())&&e.canRun(),d=()=>yGe(e.networkMode)&&e.canRun(),f=v=>{var y;i||(i=!0,(y=e.onSuccess)==null||y.call(e,v),o==null||o(),a.resolve(v))},p=v=>{var y;i||(i=!0,(y=e.onError)==null||y.call(e,v),o==null||o(),a.reject(v))},h=()=>new Promise(v=>{var y;o=_=>{(i||u())&&v(_)},(y=e.onPause)==null||y.call(e)}).then(()=>{var v;o=void 0,i||(v=e.onContinue)==null||v.call(e)}),g=()=>{if(i)return;let v;const y=r===0?e.initialPromise:void 0;try{v=y??e.fn()}catch(_){v=Promise.reject(_)}Promise.resolve(v).then(f).catch(_=>{var C;if(i)return;const S=e.retry??(RU?0:3),b=e.retryDelay??Dqt,E=typeof b=="function"?b(r,_):b,w=S===!0||typeof S=="number"&&r<S||typeof S=="function"&&S(r,_);if(n||!w){p(_);return}r++,(C=e.onFail)==null||C.call(e,r,_),Oqt(E).then(()=>u()?void 0:h()).then(()=>{n?p(_):g()})})};return{promise:a,cancel:s,continue:()=>(o==null||o(),a),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?g():h().then(g),a)}}function kqt(){let e=[],n=0,r=l=>{l()},i=l=>{l()},o=l=>setTimeout(l,0);const a=l=>{n?e.push(l):o(()=>{r(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{i(()=>{l.forEach(c=>{r(c)})})})};return{batch:l=>{let c;n++;try{c=l()}finally{n--,n||s()}return c},batchCalls:l=>(...c)=>{a(()=>{l(...c)})},schedule:a,setNotifyFunction:l=>{r=l},setBatchNotifyFunction:l=>{i=l},setScheduler:l=>{o=l}}}var pu=kqt(),g1,W3e,SGe=(W3e=class{constructor(){Xn(this,g1)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wqt(this.gcTime)&&xn(this,g1,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(RU?1/0:5*60*1e3))}clearGcTimeout(){He(this,g1)&&(clearTimeout(He(this,g1)),xn(this,g1,void 0))}},g1=new WeakMap,W3e),cO,uO,np,Dc,DD,m1,Sh,Av,Y3e,Lqt=(Y3e=class extends SGe{constructor(n){super();Xn(this,Sh);Xn(this,cO);Xn(this,uO);Xn(this,np);Xn(this,Dc);Xn(this,DD);Xn(this,m1);xn(this,m1,!1),xn(this,DD,n.defaultOptions),this.setOptions(n.options),this.observers=[],xn(this,np,n.cache),this.queryKey=n.queryKey,this.queryHash=n.queryHash,xn(this,cO,Fqt(this.options)),this.state=n.state??He(this,cO),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=He(this,Dc))==null?void 0:n.promise}setOptions(n){this.options={...He(this,DD),...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&He(this,np).remove(this)}setData(n,r){const i=Rqt(this.state.data,n,this.options);return ir(this,Sh,Av).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(n,r){ir(this,Sh,Av).call(this,{type:"setState",state:n,setStateOptions:r})}cancel(n){var i,o;const r=(i=He(this,Dc))==null?void 0:i.promise;return(o=He(this,Dc))==null||o.cancel(n),r?r.then(bh).catch(bh):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(He(this,cO))}isActive(){return this.observers.some(n=>Tqt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Kde||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(n=0){return this.state.isInvalidated||this.state.data===void 0||!xqt(this.state.dataUpdatedAt,n)}onFocus(){var r;const n=this.observers.find(i=>i.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(r=He(this,Dc))==null||r.continue()}onOnline(){var r;const n=this.observers.find(i=>i.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(r=He(this,Dc))==null||r.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),He(this,np).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(r=>r!==n),this.observers.length||(He(this,Dc)&&(He(this,m1)?He(this,Dc).cancel({revert:!0}):He(this,Dc).cancelRetry()),this.scheduleGc()),He(this,np).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ir(this,Sh,Av).call(this,{type:"invalidate"})}fetch(n,r){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(He(this,Dc))return He(this,Dc).continueRetry(),He(this,Dc).promise}if(n&&this.setOptions(n),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const i=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(xn(this,m1,!0),i.signal)})},a=()=>{const f=mGe(this.options,r),p={queryKey:this.queryKey,meta:this.meta};return o(p),xn(this,m1,!1),this.options.persister?this.options.persister(f,p,this):f(p)},s={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};o(s),(c=this.options.behavior)==null||c.onFetch(s,this),xn(this,uO,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&ir(this,Sh,Av).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const l=f=>{var p,h,g,v;Iq(f)&&f.silent||ir(this,Sh,Av).call(this,{type:"error",error:f}),Iq(f)||((h=(p=He(this,np).config).onError)==null||h.call(p,f,this),(v=(g=He(this,np).config).onSettled)==null||v.call(g,this.state.data,f,this)),this.scheduleGc()};return xn(this,Dc,bGe({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,abort:i.abort.bind(i),onSuccess:f=>{var p,h,g,v;if(f===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(y){l(y);return}(h=(p=He(this,np).config).onSuccess)==null||h.call(p,f,this),(v=(g=He(this,np).config).onSettled)==null||v.call(g,f,this.state.error,this),this.scheduleGc()},onError:l,onFail:(f,p)=>{ir(this,Sh,Av).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{ir(this,Sh,Av).call(this,{type:"pause"})},onContinue:()=>{ir(this,Sh,Av).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),He(this,Dc).start()}},cO=new WeakMap,uO=new WeakMap,np=new WeakMap,Dc=new WeakMap,DD=new WeakMap,m1=new WeakMap,Sh=new WeakSet,Av=function(n){const r=i=>{switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...$qt(i.data,this.options),fetchMeta:n.meta??null};case"success":return{...i,data:n.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=n.error;return Iq(o)&&o.revert&&He(this,uO)?{...He(this,uO),fetchStatus:"idle"}:{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}};this.state=r(this.state),pu.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),He(this,np).notify({query:this,type:"updated",action:n})})},Y3e);function $qt(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:yGe(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Fqt(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,r=n!==void 0,i=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Qg,q3e,Bqt=(q3e=class extends OU{constructor(n={}){super();Xn(this,Qg);this.config=n,xn(this,Qg,new Map)}build(n,r,i){const o=r.queryKey,a=r.queryHash??qde(o,r);let s=this.get(a);return s||(s=new Lqt({cache:this,queryKey:o,queryHash:a,options:n.defaultQueryOptions(r),state:i,defaultOptions:n.getQueryDefaults(o)}),this.add(s)),s}add(n){He(this,Qg).has(n.queryHash)||(He(this,Qg).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const r=He(this,Qg).get(n.queryHash);r&&(n.destroy(),r===n&&He(this,Qg).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){pu.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return He(this,Qg).get(n)}getAll(){return[...He(this,Qg).values()]}find(n){const r={exact:!0,...n};return this.getAll().find(i=>Vwe(r,i))}findAll(n={}){const r=this.getAll();return Object.keys(n).length>0?r.filter(i=>Vwe(n,i)):r}notify(n){pu.batch(()=>{this.listeners.forEach(r=>{r(n)})})}onFocus(){pu.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){pu.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Qg=new WeakMap,q3e),Zg,ou,v1,Jg,cb,K3e,jqt=(K3e=class extends SGe{constructor(n){super();Xn(this,Jg);Xn(this,Zg);Xn(this,ou);Xn(this,v1);this.mutationId=n.mutationId,xn(this,ou,n.mutationCache),xn(this,Zg,[]),this.state=n.state||Uqt(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){He(this,Zg).includes(n)||(He(this,Zg).push(n),this.clearGcTimeout(),He(this,ou).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){xn(this,Zg,He(this,Zg).filter(r=>r!==n)),this.scheduleGc(),He(this,ou).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){He(this,Zg).length||(this.state.status==="pending"?this.scheduleGc():He(this,ou).remove(this))}continue(){var n;return((n=He(this,v1))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var o,a,s,l,c,u,d,f,p,h,g,v,y,_,S,b,E,w,C,x;xn(this,v1,bGe({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(T,R)=>{ir(this,Jg,cb).call(this,{type:"failed",failureCount:T,error:R})},onPause:()=>{ir(this,Jg,cb).call(this,{type:"pause"})},onContinue:()=>{ir(this,Jg,cb).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>He(this,ou).canRun(this)}));const r=this.state.status==="pending",i=!He(this,v1).canStart();try{if(!r){ir(this,Jg,cb).call(this,{type:"pending",variables:n,isPaused:i}),await((a=(o=He(this,ou).config).onMutate)==null?void 0:a.call(o,n,this));const R=await((l=(s=this.options).onMutate)==null?void 0:l.call(s,n));R!==this.state.context&&ir(this,Jg,cb).call(this,{type:"pending",context:R,variables:n,isPaused:i})}const T=await He(this,v1).start();return await((u=(c=He(this,ou).config).onSuccess)==null?void 0:u.call(c,T,n,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,T,n,this.state.context)),await((h=(p=He(this,ou).config).onSettled)==null?void 0:h.call(p,T,null,this.state.variables,this.state.context,this)),await((v=(g=this.options).onSettled)==null?void 0:v.call(g,T,null,n,this.state.context)),ir(this,Jg,cb).call(this,{type:"success",data:T}),T}catch(T){try{throw await((_=(y=He(this,ou).config).onError)==null?void 0:_.call(y,T,n,this.state.context,this)),await((b=(S=this.options).onError)==null?void 0:b.call(S,T,n,this.state.context)),await((w=(E=He(this,ou).config).onSettled)==null?void 0:w.call(E,void 0,T,this.state.variables,this.state.context,this)),await((x=(C=this.options).onSettled)==null?void 0:x.call(C,void 0,T,n,this.state.context)),T}finally{ir(this,Jg,cb).call(this,{type:"error",error:T})}}finally{He(this,ou).runNext(this)}}},Zg=new WeakMap,ou=new WeakMap,v1=new WeakMap,Jg=new WeakSet,cb=function(n){const r=i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=r(this.state),pu.batch(()=>{He(this,Zg).forEach(i=>{i.onMutationUpdate(n)}),He(this,ou).notify({mutation:this,type:"updated",action:n})})},K3e);function Uqt(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Yd,kD,X3e,Hqt=(X3e=class extends OU{constructor(n={}){super();Xn(this,Yd);Xn(this,kD);this.config=n,xn(this,Yd,new Map),xn(this,kD,Date.now())}build(n,r,i){const o=new jqt({mutationCache:this,mutationId:++sE(this,kD)._,options:n.defaultMutationOptions(r),state:i});return this.add(o),o}add(n){const r=o4(n),i=He(this,Yd).get(r)??[];i.push(n),He(this,Yd).set(r,i),this.notify({type:"added",mutation:n})}remove(n){var i;const r=o4(n);if(He(this,Yd).has(r)){const o=(i=He(this,Yd).get(r))==null?void 0:i.filter(a=>a!==n);o&&(o.length===0?He(this,Yd).delete(r):He(this,Yd).set(r,o))}this.notify({type:"removed",mutation:n})}canRun(n){var i;const r=(i=He(this,Yd).get(o4(n)))==null?void 0:i.find(o=>o.state.status==="pending");return!r||r===n}runNext(n){var i;const r=(i=He(this,Yd).get(o4(n)))==null?void 0:i.find(o=>o!==n&&o.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}clear(){pu.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}getAll(){return[...He(this,Yd).values()].flat()}find(n){const r={exact:!0,...n};return this.getAll().find(i=>Gwe(r,i))}findAll(n={}){return this.getAll().filter(r=>Gwe(n,r))}notify(n){pu.batch(()=>{this.listeners.forEach(r=>{r(n)})})}resumePausedMutations(){const n=this.getAll().filter(r=>r.state.isPaused);return pu.batch(()=>Promise.all(n.map(r=>r.continue().catch(bh))))}},Yd=new WeakMap,kD=new WeakMap,X3e);function o4(e){var n;return((n=e.options.scope)==null?void 0:n.id)??String(e.mutationId)}function qwe(e){return{onFetch:(n,r)=>{var d,f,p,h,g;const i=n.options,o=(p=(f=(d=n.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,a=((h=n.state.data)==null?void 0:h.pages)||[],s=((g=n.state.data)==null?void 0:g.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let v=!1;const y=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(n.signal.aborted?v=!0:n.signal.addEventListener("abort",()=>{v=!0}),n.signal)})},_=mGe(n.options,n.fetchOptions),S=async(b,E,w)=>{if(v)return Promise.reject();if(E==null&&b.pages.length)return Promise.resolve(b);const C={queryKey:n.queryKey,pageParam:E,direction:w?"backward":"forward",meta:n.options.meta};y(C);const x=await _(C),{maxPages:T}=n.options,R=w?Nqt:Iqt;return{pages:R(b.pages,x,T),pageParams:R(b.pageParams,E,T)}};if(o&&a.length){const b=o==="backward",E=b?zqt:Kwe,w={pages:a,pageParams:s},C=E(i,w);l=await S(w,C,b)}else{const b=e??a.length;do{const E=c===0?s[0]??i.initialPageParam:Kwe(i,l);if(c>0&&E==null)break;l=await S(l,E),c++}while(c<b)}return l};n.options.persister?n.fetchFn=()=>{var v,y;return(y=(v=n.options).persister)==null?void 0:y.call(v,u,{queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},r)}:n.fetchFn=u}}}function Kwe(e,{pages:n,pageParams:r}){const i=n.length-1;return n.length>0?e.getNextPageParam(n[i],n,r[i],r):void 0}function zqt(e,{pages:n,pageParams:r}){var i;return n.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,n[0],n,r[0],r):void 0}var ps,Mb,Pb,dO,fO,Ab,pO,hO,Q3e,Vqt=(Q3e=class{constructor(e={}){Xn(this,ps);Xn(this,Mb);Xn(this,Pb);Xn(this,dO);Xn(this,fO);Xn(this,Ab);Xn(this,pO);Xn(this,hO);xn(this,ps,e.queryCache||new Bqt),xn(this,Mb,e.mutationCache||new Hqt),xn(this,Pb,e.defaultOptions||{}),xn(this,dO,new Map),xn(this,fO,new Map),xn(this,Ab,0)}mount(){sE(this,Ab)._++,He(this,Ab)===1&&(xn(this,pO,vGe.subscribe(async e=>{e&&(await this.resumePausedMutations(),He(this,ps).onFocus())})),xn(this,hO,iB.subscribe(async e=>{e&&(await this.resumePausedMutations(),He(this,ps).onOnline())})))}unmount(){var e,n;sE(this,Ab)._--,He(this,Ab)===0&&((e=He(this,pO))==null||e.call(this),xn(this,pO,void 0),(n=He(this,hO))==null||n.call(this),xn(this,hO,void 0))}isFetching(e){return He(this,ps).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return He(this,Mb).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const n=this.defaultQueryOptions({queryKey:e});return(r=He(this,ps).get(n.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const n=this.getQueryData(e.queryKey);if(n===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),i=He(this,ps).build(this,r);return e.revalidateIfStale&&i.isStaleByTime(zwe(r.staleTime,i))&&this.prefetchQuery(r),Promise.resolve(n)}}getQueriesData(e){return He(this,ps).findAll(e).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(e,n,r){const i=this.defaultQueryOptions({queryKey:e}),o=He(this,ps).get(i.queryHash),a=o==null?void 0:o.state.data,s=Cqt(n,a);if(s!==void 0)return He(this,ps).build(this,i).setData(s,{...r,manual:!0})}setQueriesData(e,n,r){return pu.batch(()=>He(this,ps).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(e){var r;const n=this.defaultQueryOptions({queryKey:e});return(r=He(this,ps).get(n.queryHash))==null?void 0:r.state}removeQueries(e){const n=He(this,ps);pu.batch(()=>{n.findAll(e).forEach(r=>{n.remove(r)})})}resetQueries(e,n){const r=He(this,ps),i={type:"active",...e};return pu.batch(()=>(r.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(i,n)))}cancelQueries(e={},n={}){const r={revert:!0,...n},i=pu.batch(()=>He(this,ps).findAll(e).map(o=>o.cancel(r)));return Promise.all(i).then(bh).catch(bh)}invalidateQueries(e={},n={}){return pu.batch(()=>{if(He(this,ps).findAll(e).forEach(i=>{i.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,n)})}refetchQueries(e={},n){const r={...n,cancelRefetch:(n==null?void 0:n.cancelRefetch)??!0},i=pu.batch(()=>He(this,ps).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let a=o.fetch(void 0,r);return r.throwOnError||(a=a.catch(bh)),o.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(i).then(bh)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const r=He(this,ps).build(this,n);return r.isStaleByTime(zwe(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(bh).catch(bh)}fetchInfiniteQuery(e){return e.behavior=qwe(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(bh).catch(bh)}ensureInfiniteQueryData(e){return e.behavior=qwe(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return iB.isOnline()?He(this,Mb).resumePausedMutations():Promise.resolve()}getQueryCache(){return He(this,ps)}getMutationCache(){return He(this,Mb)}getDefaultOptions(){return He(this,Pb)}setDefaultOptions(e){xn(this,Pb,e)}setQueryDefaults(e,n){He(this,dO).set(wA(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...He(this,dO).values()];let r={};return n.forEach(i=>{xA(e,i.queryKey)&&(r={...r,...i.defaultOptions})}),r}setMutationDefaults(e,n){He(this,fO).set(wA(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...He(this,fO).values()];let r={};return n.forEach(i=>{xA(e,i.mutationKey)&&(r={...r,...i.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const n={...He(this,Pb).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=qde(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.enabled!==!0&&n.queryFn===Kde&&(n.enabled=!1),n}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...He(this,Pb).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){He(this,ps).clear(),He(this,Mb).clear()}},ps=new WeakMap,Mb=new WeakMap,Pb=new WeakMap,dO=new WeakMap,fO=new WeakMap,Ab=new WeakMap,pO=new WeakMap,hO=new WeakMap,Q3e),Gqt=m.createContext(void 0),Wqt=({client:e,children:n})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.jsx(Gqt.Provider,{value:e,children:n}));/**
* @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 Ba(){return Ba=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ba.apply(this,arguments)}var el;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(el||(el={}));const Xwe="popstate";function Yqt(e){e===void 0&&(e={});function n(i,o){let{pathname:a,search:s,hash:l}=i.location;return BO("",{pathname:a,search:s,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(i,o){return typeof o=="string"?o:O0(o)}return EGe(n,r,null,e)}function qqt(e){e===void 0&&(e={});function n(o,a){let{pathname:s="/",search:l="",hash:c=""}=r_(o.location.hash.substr(1));return!s.startsWith("/")&&!s.startsWith(".")&&(s="/"+s),BO("",{pathname:s,search:l,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(o,a){let s=o.document.querySelector("base"),l="";if(s&&s.getAttribute("href")){let c=o.location.href,u=c.indexOf("#");l=u===-1?c:c.slice(0,u)}return l+"#"+(typeof a=="string"?a:O0(a))}function i(o,a){cC(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return EGe(n,r,i,e)}function ji(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function cC(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function Kqt(){return Math.random().toString(36).substr(2,8)}function Qwe(e,n){return{usr:e.state,key:e.key,idx:n}}function BO(e,n,r,i){return r===void 0&&(r=null),Ba({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof n=="string"?r_(n):n,{state:r,key:n&&n.key||i||Kqt()})}function O0(e){let{pathname:n="/",search:r="",hash:i=""}=e;return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function r_(e){let n={};if(e){let r=e.indexOf("#");r>=0&&(n.hash=e.substr(r),e=e.substr(0,r));let i=e.indexOf("?");i>=0&&(n.search=e.substr(i),e=e.substr(0,i)),e&&(n.pathname=e)}return n}function EGe(e,n,r,i){i===void 0&&(i={});let{window:o=document.defaultView,v5Compat:a=!1}=i,s=o.history,l=el.Pop,c=null,u=d();u==null&&(u=0,s.replaceState(Ba({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function f(){l=el.Pop;let y=d(),_=y==null?null:y-u;u=y,c&&c({action:l,location:v.location,delta:_})}function p(y,_){l=el.Push;let S=BO(v.location,y,_);r&&r(S,y),u=d()+1;let b=Qwe(S,u),E=v.createHref(S);try{s.pushState(b,"",E)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;o.location.assign(E)}a&&c&&c({action:l,location:v.location,delta:1})}function h(y,_){l=el.Replace;let S=BO(v.location,y,_);r&&r(S,y),u=d();let b=Qwe(S,u),E=v.createHref(S);s.replaceState(b,"",E),a&&c&&c({action:l,location:v.location,delta:0})}function g(y){let _=o.location.origin!=="null"?o.location.origin:o.location.href,S=typeof y=="string"?y:O0(y);return S=S.replace(/ $/,"%20"),ji(_,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,_)}let v={get action(){return l},get location(){return e(o,s)},listen(y){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(Xwe,f),c=y,()=>{o.removeEventListener(Xwe,f),c=null}},createHref(y){return n(o,y)},createURL:g,encodeLocation(y){let _=g(y);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:p,replace:h,go(y){return s.go(y)}};return v}var Yo;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Yo||(Yo={}));const Xqt=new Set(["lazy","caseSensitive","path","id","index","children"]);function Qqt(e){return e.index===!0}function oB(e,n,r,i){return r===void 0&&(r=[]),i===void 0&&(i={}),e.map((o,a)=>{let s=[...r,String(a)],l=typeof o.id=="string"?o.id:s.join("-");if(ji(o.index!==!0||!o.children,"Cannot specify children on an index route"),ji(!i[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),Qqt(o)){let c=Ba({},o,n(o),{id:l});return i[l]=c,c}else{let c=Ba({},o,n(o),{id:l,children:void 0});return i[l]=c,o.children&&(c.children=oB(o.children,n,s,i)),c}})}function HE(e,n,r){return r===void 0&&(r="/"),v6(e,n,r,!1)}function v6(e,n,r,i){let o=typeof n=="string"?r_(n):n,a=mI(o.pathname||"/",r);if(a==null)return null;let s=CGe(e);Jqt(s);let l=null;for(let c=0;l==null&&c<s.length;++c){let u=uKt(a);l=lKt(s[c],u,i)}return l}function Zqt(e,n){let{route:r,pathname:i,params:o}=e;return{id:r.id,pathname:i,params:o,data:n[r.id],handle:r.handle}}function CGe(e,n,r,i){n===void 0&&(n=[]),r===void 0&&(r=[]),i===void 0&&(i="");let o=(a,s,l)=>{let c={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};c.relativePath.startsWith("/")&&(ji(c.relativePath.startsWith(i),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(i.length));let u=py([i,c.relativePath]),d=r.concat(c);a.children&&a.children.length>0&&(ji(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),CGe(a.children,n,d,u)),!(a.path==null&&!a.index)&&n.push({path:u,score:aKt(u,a.index),routesMeta:d})};return e.forEach((a,s)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))o(a,s);else for(let c of wGe(a.path))o(a,s,c)}),n}function wGe(e){let n=e.split("/");if(n.length===0)return[];let[r,...i]=n,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(i.length===0)return o?[a,""]:[a];let s=wGe(i.join("/")),l=[];return l.push(...s.map(c=>c===""?a:[a,c].join("/"))),o&&l.push(...s),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function Jqt(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:sKt(n.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}const eKt=/^:[\w-]+$/,tKt=3,nKt=2,rKt=1,iKt=10,oKt=-2,Zwe=e=>e==="*";function aKt(e,n){let r=e.split("/"),i=r.length;return r.some(Zwe)&&(i+=oKt),n&&(i+=nKt),r.filter(o=>!Zwe(o)).reduce((o,a)=>o+(eKt.test(a)?tKt:a===""?rKt:iKt),i)}function sKt(e,n){return e.length===n.length&&e.slice(0,-1).every((i,o)=>i===n[o])?e[e.length-1]-n[n.length-1]:0}function lKt(e,n,r){r===void 0&&(r=!1);let{routesMeta:i}=e,o={},a="/",s=[];for(let l=0;l<i.length;++l){let c=i[l],u=l===i.length-1,d=a==="/"?n:n.slice(a.length)||"/",f=Jwe({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),p=c.route;if(!f&&u&&r&&!i[i.length-1].route.index&&(f=Jwe({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!f)return null;Object.assign(o,f.params),s.push({params:o,pathname:py([a,f.pathname]),pathnameBase:pKt(py([a,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(a=py([a,f.pathnameBase]))}return s}function Jwe(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=cKt(e.path,e.caseSensitive,e.end),o=n.match(r);if(!o)return null;let a=o[0],s=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:i.reduce((u,d,f)=>{let{paramName:p,isOptional:h}=d;if(p==="*"){let v=l[f]||"";s=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const g=l[f];return h&&!g?u[p]=void 0:u[p]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:s,pattern:e}}function cKt(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!0),cC(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 i=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,c)=>(i.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),i]}function uKt(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return cC(!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 ("+n+").")),e}}function mI(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}function dKt(e,n){n===void 0&&(n="/");let{pathname:r,search:i="",hash:o=""}=typeof e=="string"?r_(e):e;return{pathname:r?r.startsWith("/")?r:fKt(r,n):n,search:hKt(i),hash:gKt(o)}}function fKt(e,n){let r=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Nq(e,n,r,i){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function xGe(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function IU(e,n){let r=xGe(e);return n?r.map((i,o)=>o===r.length-1?i.pathname:i.pathnameBase):r.map(i=>i.pathnameBase)}function NU(e,n,r,i){i===void 0&&(i=!1);let o;typeof e=="string"?o=r_(e):(o=Ba({},e),ji(!o.pathname||!o.pathname.includes("?"),Nq("?","pathname","search",o)),ji(!o.pathname||!o.pathname.includes("#"),Nq("#","pathname","hash",o)),ji(!o.search||!o.search.includes("#"),Nq("#","search","hash",o)));let a=e===""||o.pathname==="",s=a?"/":o.pathname,l;if(s==null)l=r;else{let f=n.length-1;if(!i&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}l=f>=0?n[f]:"/"}let c=dKt(o,l),u=s&&s!=="/"&&s.endsWith("/"),d=(a||s===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const py=e=>e.join("/").replace(/\/\/+/g,"/"),pKt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hKt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gKt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class aB{constructor(n,r,i,o){o===void 0&&(o=!1),this.status=n,this.statusText=r||"",this.internal=o,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}}function MU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const TGe=["post","put","patch","delete"],mKt=new Set(TGe),vKt=["get",...TGe],yKt=new Set(vKt),_Kt=new Set([301,302,303,307,308]),bKt=new Set([307,308]),Mq={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},SKt={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},dM={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Xde=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,EKt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),OGe="remix-router-transitions";function RGe(e){const n=e.window?e.window:typeof window<"u"?window:void 0,r=typeof n<"u"&&typeof n.document<"u"&&typeof n.document.createElement<"u",i=!r;ji(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let tt=e.detectErrorBoundary;o=it=>({hasErrorBoundary:tt(it)})}else o=EKt;let a={},s=oB(e.routes,o,void 0,a),l,c=e.basename||"/",u=e.dataStrategy||TKt,d=e.patchRoutesOnNavigation,f=Ba({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,h=new Set,g=null,v=null,y=null,_=e.hydrationData!=null,S=HE(s,e.history.location,c),b=null;if(S==null&&!d){let tt=Ju(404,{pathname:e.history.location.pathname}),{matches:it,route:nt}=uxe(s);S=it,b={[nt.id]:tt}}S&&!e.hydrationData&&Wt(S,s,e.history.location.pathname).active&&(S=null);let E;if(S)if(S.some(tt=>tt.route.lazy))E=!1;else if(!S.some(tt=>tt.route.loader))E=!0;else if(f.v7_partialHydration){let tt=e.hydrationData?e.hydrationData.loaderData:null,it=e.hydrationData?e.hydrationData.errors:null;if(it){let nt=S.findIndex(vt=>it[vt.route.id]!==void 0);E=S.slice(0,nt+1).every(vt=>!Pie(vt.route,tt,it))}else E=S.every(nt=>!Pie(nt.route,tt,it))}else E=e.hydrationData!=null;else if(E=!1,S=[],f.v7_partialHydration){let tt=Wt(null,s,e.history.location.pathname);tt.active&&tt.matches&&(S=tt.matches)}let w,C={historyAction:e.history.action,location:e.history.location,matches:S,initialized:E,navigation:Mq,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},x=el.Pop,T=!1,R,O=!1,M=new Map,P=null,k=!1,$=!1,U=[],z=new Set,D=new Map,B=0,Y=-1,q=new Map,K=new Set,H=new Map,G=new Map,Q=new Set,le=new Map,Z=new Map,j;function F(){if(p=e.history.listen(tt=>{let{action:it,location:nt,delta:vt}=tt;if(j){j(),j=void 0;return}cC(Z.size===0||vt!=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 kt=Xe({currentLocation:C.location,nextLocation:nt,historyAction:it});if(kt&&vt!=null){let Dt=new Promise(Kt=>{j=Kt});e.history.go(vt*-1),ot(kt,{state:"blocked",location:nt,proceed(){ot(kt,{state:"proceeding",proceed:void 0,reset:void 0,location:nt}),Dt.then(()=>e.history.go(vt))},reset(){let Kt=new Map(C.blockers);Kt.set(kt,dM),de({blockers:Kt})}});return}return he(it,nt)}),r){jKt(n,M);let tt=()=>UKt(n,M);n.addEventListener("pagehide",tt),P=()=>n.removeEventListener("pagehide",tt)}return C.initialized||he(el.Pop,C.location,{initialHydration:!0}),w}function te(){p&&p(),P&&P(),h.clear(),R&&R.abort(),C.fetchers.forEach((tt,it)=>xe(it)),C.blockers.forEach((tt,it)=>Je(it))}function oe(tt){return h.add(tt),()=>h.delete(tt)}function de(tt,it){it===void 0&&(it={}),C=Ba({},C,tt);let nt=[],vt=[];f.v7_fetcherPersist&&C.fetchers.forEach((kt,Dt)=>{kt.state==="idle"&&(Q.has(Dt)?vt.push(Dt):nt.push(Dt))}),[...h].forEach(kt=>kt(C,{deletedFetchers:vt,viewTransitionOpts:it.viewTransitionOpts,flushSync:it.flushSync===!0})),f.v7_fetcherPersist&&(nt.forEach(kt=>C.fetchers.delete(kt)),vt.forEach(kt=>xe(kt)))}function pe(tt,it,nt){var vt,kt;let{flushSync:Dt}=nt===void 0?{}:nt,Kt=C.actionData!=null&&C.navigation.formMethod!=null&&xh(C.navigation.formMethod)&&C.navigation.state==="loading"&&((vt=tt.state)==null?void 0:vt._isRedirect)!==!0,Ht;it.actionData?Object.keys(it.actionData).length>0?Ht=it.actionData:Ht=null:Kt?Ht=C.actionData:Ht=null;let tn=it.loaderData?lxe(C.loaderData,it.loaderData,it.matches||[],it.errors):C.loaderData,on=C.blockers;on.size>0&&(on=new Map(on),on.forEach((En,Pt)=>on.set(Pt,dM)));let sn=T===!0||C.navigation.formMethod!=null&&xh(C.navigation.formMethod)&&((kt=tt.state)==null?void 0:kt._isRedirect)!==!0;l&&(s=l,l=void 0),k||x===el.Pop||(x===el.Push?e.history.push(tt,tt.state):x===el.Replace&&e.history.replace(tt,tt.state));let Jt;if(x===el.Pop){let En=M.get(C.location.pathname);En&&En.has(tt.pathname)?Jt={currentLocation:C.location,nextLocation:tt}:M.has(tt.pathname)&&(Jt={currentLocation:tt,nextLocation:C.location})}else if(O){let En=M.get(C.location.pathname);En?En.add(tt.pathname):(En=new Set([tt.pathname]),M.set(C.location.pathname,En)),Jt={currentLocation:C.location,nextLocation:tt}}de(Ba({},it,{actionData:Ht,loaderData:tn,historyAction:x,location:tt,initialized:!0,navigation:Mq,revalidation:"idle",restoreScrollPosition:It(tt,it.matches||C.matches),preventScrollReset:sn,blockers:on}),{viewTransitionOpts:Jt,flushSync:Dt===!0}),x=el.Pop,T=!1,O=!1,k=!1,$=!1,U=[]}async function me(tt,it){if(typeof tt=="number"){e.history.go(tt);return}let nt=Mie(C.location,C.matches,c,f.v7_prependBasename,tt,f.v7_relativeSplatPath,it==null?void 0:it.fromRouteId,it==null?void 0:it.relative),{path:vt,submission:kt,error:Dt}=exe(f.v7_normalizeFormMethod,!1,nt,it),Kt=C.location,Ht=BO(C.location,vt,it&&it.state);Ht=Ba({},Ht,e.history.encodeLocation(Ht));let tn=it&&it.replace!=null?it.replace:void 0,on=el.Push;tn===!0?on=el.Replace:tn===!1||kt!=null&&xh(kt.formMethod)&&kt.formAction===C.location.pathname+C.location.search&&(on=el.Replace);let sn=it&&"preventScrollReset"in it?it.preventScrollReset===!0:void 0,Jt=(it&&it.flushSync)===!0,En=Xe({currentLocation:Kt,nextLocation:Ht,historyAction:on});if(En){ot(En,{state:"blocked",location:Ht,proceed(){ot(En,{state:"proceeding",proceed:void 0,reset:void 0,location:Ht}),me(tt,it)},reset(){let Pt=new Map(C.blockers);Pt.set(En,dM),de({blockers:Pt})}});return}return await he(on,Ht,{submission:kt,pendingError:Dt,preventScrollReset:sn,replace:it&&it.replace,enableViewTransition:it&&it.viewTransition,flushSync:Jt})}function ve(){if(ne(),de({revalidation:"loading"}),C.navigation.state!=="submitting"){if(C.navigation.state==="idle"){he(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}he(x||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:O===!0})}}async function he(tt,it,nt){R&&R.abort(),R=null,x=tt,k=(nt&&nt.startUninterruptedRevalidation)===!0,Ct(C.location,C.matches),T=(nt&&nt.preventScrollReset)===!0,O=(nt&&nt.enableViewTransition)===!0;let vt=l||s,kt=nt&&nt.overrideNavigation,Dt=HE(vt,it,c),Kt=(nt&&nt.flushSync)===!0,Ht=Wt(Dt,vt,it.pathname);if(Ht.active&&Ht.matches&&(Dt=Ht.matches),!Dt){let{error:Qt,notFoundMatches:ln,route:jt}=Ze(it.pathname);pe(it,{matches:ln,loaderData:{},errors:{[jt.id]:Qt}},{flushSync:Kt});return}if(C.initialized&&!$&&PKt(C.location,it)&&!(nt&&nt.submission&&xh(nt.submission.formMethod))){pe(it,{matches:Dt},{flushSync:Kt});return}R=new AbortController;let tn=Ox(e.history,it,R.signal,nt&&nt.submission),on;if(nt&&nt.pendingError)on=[zE(Dt).route.id,{type:Yo.error,error:nt.pendingError}];else if(nt&&nt.submission&&xh(nt.submission.formMethod)){let Qt=await be(tn,it,nt.submission,Dt,Ht.active,{replace:nt.replace,flushSync:Kt});if(Qt.shortCircuited)return;if(Qt.pendingActionResult){let[ln,jt]=Qt.pendingActionResult;if(Qd(jt)&&MU(jt.error)&&jt.error.status===404){R=null,pe(it,{matches:Qt.matches,loaderData:{},errors:{[ln]:jt.error}});return}}Dt=Qt.matches||Dt,on=Qt.pendingActionResult,kt=Pq(it,nt.submission),Kt=!1,Ht.active=!1,tn=Ox(e.history,tn.url,tn.signal)}let{shortCircuited:sn,matches:Jt,loaderData:En,errors:Pt}=await we(tn,it,Dt,Ht.active,kt,nt&&nt.submission,nt&&nt.fetcherSubmission,nt&&nt.replace,nt&&nt.initialHydration===!0,Kt,on);sn||(R=null,pe(it,Ba({matches:Jt||Dt},cxe(on),{loaderData:En,errors:Pt})))}async function be(tt,it,nt,vt,kt,Dt){Dt===void 0&&(Dt={}),ne();let Kt=FKt(it,nt);if(de({navigation:Kt},{flushSync:Dt.flushSync===!0}),kt){let on=await Bt(vt,it.pathname,tt.signal);if(on.type==="aborted")return{shortCircuited:!0};if(on.type==="error"){let sn=zE(on.partialMatches).route.id;return{matches:on.partialMatches,pendingActionResult:[sn,{type:Yo.error,error:on.error}]}}else if(on.matches)vt=on.matches;else{let{notFoundMatches:sn,error:Jt,route:En}=Ze(it.pathname);return{matches:sn,pendingActionResult:[En.id,{type:Yo.error,error:Jt}]}}}let Ht,tn=f2(vt,it);if(!tn.route.action&&!tn.route.lazy)Ht={type:Yo.error,error:Ju(405,{method:tt.method,pathname:it.pathname,routeId:tn.route.id})};else if(Ht=(await Ne("action",C,tt,[tn],vt,null))[tn.route.id],tt.signal.aborted)return{shortCircuited:!0};if(s1(Ht)){let on;return Dt&&Dt.replace!=null?on=Dt.replace:on=oxe(Ht.response.headers.get("Location"),new URL(tt.url),c)===C.location.pathname+C.location.search,await Oe(tt,Ht,!0,{submission:nt,replace:on}),{shortCircuited:!0}}if(Ub(Ht))throw Ju(400,{type:"defer-action"});if(Qd(Ht)){let on=zE(vt,tn.route.id);return(Dt&&Dt.replace)!==!0&&(x=el.Push),{matches:vt,pendingActionResult:[on.route.id,Ht]}}return{matches:vt,pendingActionResult:[tn.route.id,Ht]}}async function we(tt,it,nt,vt,kt,Dt,Kt,Ht,tn,on,sn){let Jt=kt||Pq(it,Dt),En=Dt||Kt||fxe(Jt),Pt=!k&&(!f.v7_partialHydration||!tn);if(vt){if(Pt){let W=De(sn);de(Ba({navigation:Jt},W!==void 0?{actionData:W}:{}),{flushSync:on})}let A=await Bt(nt,it.pathname,tt.signal);if(A.type==="aborted")return{shortCircuited:!0};if(A.type==="error"){let W=zE(A.partialMatches).route.id;return{matches:A.partialMatches,loaderData:{},errors:{[W]:A.error}}}else if(A.matches)nt=A.matches;else{let{error:W,notFoundMatches:ce,route:Pe}=Ze(it.pathname);return{matches:ce,loaderData:{},errors:{[Pe.id]:W}}}}let Qt=l||s,[ln,jt]=nxe(e.history,C,nt,En,it,f.v7_partialHydration&&tn===!0,f.v7_skipActionErrorRevalidation,$,U,z,Q,H,K,Qt,c,sn);if(bt(A=>!(nt&&nt.some(W=>W.route.id===A))||ln&&ln.some(W=>W.route.id===A)),Y=++B,ln.length===0&&jt.length===0){let A=ge();return pe(it,Ba({matches:nt,loaderData:{},errors:sn&&Qd(sn[1])?{[sn[0]]:sn[1].error}:null},cxe(sn),A?{fetchers:new Map(C.fetchers)}:{}),{flushSync:on}),{shortCircuited:!0}}if(Pt){let A={};if(!vt){A.navigation=Jt;let W=De(sn);W!==void 0&&(A.actionData=W)}jt.length>0&&(A.fetchers=Ae(jt)),de(A,{flushSync:on})}jt.forEach(A=>{Me(A.key),A.controller&&D.set(A.key,A.controller)});let Lt=()=>jt.forEach(A=>Me(A.key));R&&R.signal.addEventListener("abort",Lt);let{loaderResults:en,fetcherResults:Ue}=await je(C,nt,ln,jt,tt);if(tt.signal.aborted)return{shortCircuited:!0};R&&R.signal.removeEventListener("abort",Lt),jt.forEach(A=>D.delete(A.key));let Zt=a4(en);if(Zt)return await Oe(tt,Zt.result,!0,{replace:Ht}),{shortCircuited:!0};if(Zt=a4(Ue),Zt)return K.add(Zt.key),await Oe(tt,Zt.result,!0,{replace:Ht}),{shortCircuited:!0};let{loaderData:Et,errors:Gt}=sxe(C,nt,en,sn,jt,Ue,le);le.forEach((A,W)=>{A.subscribe(ce=>{(ce||A.done)&&le.delete(W)})}),f.v7_partialHydration&&tn&&C.errors&&(Gt=Ba({},C.errors,Gt));let zt=ge(),Vn=Ve(Y),sr=zt||Vn||jt.length>0;return Ba({matches:nt,loaderData:Et,errors:Gt},sr?{fetchers:new Map(C.fetchers)}:{})}function De(tt){if(tt&&!Qd(tt[1]))return{[tt[0]]:tt[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function Ae(tt){return tt.forEach(it=>{let nt=C.fetchers.get(it.key),vt=fM(void 0,nt?nt.data:void 0);C.fetchers.set(it.key,vt)}),new Map(C.fetchers)}function Ee(tt,it,nt,vt){if(i)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.");Me(tt);let kt=(vt&&vt.flushSync)===!0,Dt=l||s,Kt=Mie(C.location,C.matches,c,f.v7_prependBasename,nt,f.v7_relativeSplatPath,it,vt==null?void 0:vt.relative),Ht=HE(Dt,Kt,c),tn=Wt(Ht,Dt,Kt);if(tn.active&&tn.matches&&(Ht=tn.matches),!Ht){ae(tt,it,Ju(404,{pathname:Kt}),{flushSync:kt});return}let{path:on,submission:sn,error:Jt}=exe(f.v7_normalizeFormMethod,!0,Kt,vt);if(Jt){ae(tt,it,Jt,{flushSync:kt});return}let En=f2(Ht,on),Pt=(vt&&vt.preventScrollReset)===!0;if(sn&&xh(sn.formMethod)){Re(tt,it,on,En,Ht,tn.active,kt,Pt,sn);return}H.set(tt,{routeId:it,path:on}),Te(tt,it,on,En,Ht,tn.active,kt,Pt,sn)}async function Re(tt,it,nt,vt,kt,Dt,Kt,Ht,tn){ne(),H.delete(tt);function on(qe){if(!qe.route.action&&!qe.route.lazy){let gt=Ju(405,{method:tn.formMethod,pathname:nt,routeId:it});return ae(tt,it,gt,{flushSync:Kt}),!0}return!1}if(!Dt&&on(vt))return;let sn=C.fetchers.get(tt);J(tt,BKt(tn,sn),{flushSync:Kt});let Jt=new AbortController,En=Ox(e.history,nt,Jt.signal,tn);if(Dt){let qe=await Bt(kt,nt,En.signal);if(qe.type==="aborted")return;if(qe.type==="error"){ae(tt,it,qe.error,{flushSync:Kt});return}else if(qe.matches){if(kt=qe.matches,vt=f2(kt,nt),on(vt))return}else{ae(tt,it,Ju(404,{pathname:nt}),{flushSync:Kt});return}}D.set(tt,Jt);let Pt=B,ln=(await Ne("action",C,En,[vt],kt,tt))[vt.route.id];if(En.signal.aborted){D.get(tt)===Jt&&D.delete(tt);return}if(f.v7_fetcherPersist&&Q.has(tt)){if(s1(ln)||Qd(ln)){J(tt,ub(void 0));return}}else{if(s1(ln))if(D.delete(tt),Y>Pt){J(tt,ub(void 0));return}else return K.add(tt),J(tt,fM(tn)),Oe(En,ln,!1,{fetcherSubmission:tn,preventScrollReset:Ht});if(Qd(ln)){ae(tt,it,ln.error);return}}if(Ub(ln))throw Ju(400,{type:"defer-action"});let jt=C.navigation.location||C.location,Lt=Ox(e.history,jt,Jt.signal),en=l||s,Ue=C.navigation.state!=="idle"?HE(en,C.navigation.location,c):C.matches;ji(Ue,"Didn't find any matches after fetcher action");let Zt=++B;q.set(tt,Zt);let Et=fM(tn,ln.data);C.fetchers.set(tt,Et);let[Gt,zt]=nxe(e.history,C,Ue,tn,jt,!1,f.v7_skipActionErrorRevalidation,$,U,z,Q,H,K,en,c,[vt.route.id,ln]);zt.filter(qe=>qe.key!==tt).forEach(qe=>{let gt=qe.key,Yt=C.fetchers.get(gt),Nn=fM(void 0,Yt?Yt.data:void 0);C.fetchers.set(gt,Nn),Me(gt),qe.controller&&D.set(gt,qe.controller)}),de({fetchers:new Map(C.fetchers)});let Vn=()=>zt.forEach(qe=>Me(qe.key));Jt.signal.addEventListener("abort",Vn);let{loaderResults:sr,fetcherResults:A}=await je(C,Ue,Gt,zt,Lt);if(Jt.signal.aborted)return;Jt.signal.removeEventListener("abort",Vn),q.delete(tt),D.delete(tt),zt.forEach(qe=>D.delete(qe.key));let W=a4(sr);if(W)return Oe(Lt,W.result,!1,{preventScrollReset:Ht});if(W=a4(A),W)return K.add(W.key),Oe(Lt,W.result,!1,{preventScrollReset:Ht});let{loaderData:ce,errors:Pe}=sxe(C,Ue,sr,void 0,zt,A,le);if(C.fetchers.has(tt)){let qe=ub(ln.data);C.fetchers.set(tt,qe)}Ve(Zt),C.navigation.state==="loading"&&Zt>Y?(ji(x,"Expected pending action"),R&&R.abort(),pe(C.navigation.location,{matches:Ue,loaderData:ce,errors:Pe,fetchers:new Map(C.fetchers)})):(de({errors:Pe,loaderData:lxe(C.loaderData,ce,Ue,Pe),fetchers:new Map(C.fetchers)}),$=!1)}async function Te(tt,it,nt,vt,kt,Dt,Kt,Ht,tn){let on=C.fetchers.get(tt);J(tt,fM(tn,on?on.data:void 0),{flushSync:Kt});let sn=new AbortController,Jt=Ox(e.history,nt,sn.signal);if(Dt){let ln=await Bt(kt,nt,Jt.signal);if(ln.type==="aborted")return;if(ln.type==="error"){ae(tt,it,ln.error,{flushSync:Kt});return}else if(ln.matches)kt=ln.matches,vt=f2(kt,nt);else{ae(tt,it,Ju(404,{pathname:nt}),{flushSync:Kt});return}}D.set(tt,sn);let En=B,Qt=(await Ne("loader",C,Jt,[vt],kt,tt))[vt.route.id];if(Ub(Qt)&&(Qt=await Qde(Qt,Jt.signal,!0)||Qt),D.get(tt)===sn&&D.delete(tt),!Jt.signal.aborted){if(Q.has(tt)){J(tt,ub(void 0));return}if(s1(Qt))if(Y>En){J(tt,ub(void 0));return}else{K.add(tt),await Oe(Jt,Qt,!1,{preventScrollReset:Ht});return}if(Qd(Qt)){ae(tt,it,Qt.error);return}ji(!Ub(Qt),"Unhandled fetcher deferred data"),J(tt,ub(Qt.data))}}async function Oe(tt,it,nt,vt){let{submission:kt,fetcherSubmission:Dt,preventScrollReset:Kt,replace:Ht}=vt===void 0?{}:vt;it.response.headers.has("X-Remix-Revalidate")&&($=!0);let tn=it.response.headers.get("Location");ji(tn,"Expected a Location header on the redirect Response"),tn=oxe(tn,new URL(tt.url),c);let on=BO(C.location,tn,{_isRedirect:!0});if(r){let ln=!1;if(it.response.headers.has("X-Remix-Reload-Document"))ln=!0;else if(Xde.test(tn)){const jt=e.history.createURL(tn);ln=jt.origin!==n.location.origin||mI(jt.pathname,c)==null}if(ln){Ht?n.location.replace(tn):n.location.assign(tn);return}}R=null;let sn=Ht===!0||it.response.headers.has("X-Remix-Replace")?el.Replace:el.Push,{formMethod:Jt,formAction:En,formEncType:Pt}=C.navigation;!kt&&!Dt&&Jt&&En&&Pt&&(kt=fxe(C.navigation));let Qt=kt||Dt;if(bKt.has(it.response.status)&&Qt&&xh(Qt.formMethod))await he(sn,on,{submission:Ba({},Qt,{formAction:tn}),preventScrollReset:Kt||T,enableViewTransition:nt?O:void 0});else{let ln=Pq(on,kt);await he(sn,on,{overrideNavigation:ln,fetcherSubmission:Dt,preventScrollReset:Kt||T,enableViewTransition:nt?O:void 0})}}async function Ne(tt,it,nt,vt,kt,Dt){let Kt,Ht={};try{Kt=await OKt(u,tt,it,nt,vt,kt,Dt,a,o)}catch(tn){return vt.forEach(on=>{Ht[on.route.id]={type:Yo.error,error:tn}}),Ht}for(let[tn,on]of Object.entries(Kt))if(AKt(on)){let sn=on.result;Ht[tn]={type:Yo.redirect,response:NKt(sn,nt,tn,kt,c,f.v7_relativeSplatPath)}}else Ht[tn]=await IKt(on);return Ht}async function je(tt,it,nt,vt,kt){let Dt=tt.matches,Kt=Ne("loader",tt,kt,nt,it,null),Ht=Promise.all(vt.map(async sn=>{if(sn.matches&&sn.match&&sn.controller){let En=(await Ne("loader",tt,Ox(e.history,sn.path,sn.controller.signal),[sn.match],sn.matches,sn.key))[sn.match.route.id];return{[sn.key]:En}}else return Promise.resolve({[sn.key]:{type:Yo.error,error:Ju(404,{pathname:sn.path})}})})),tn=await Kt,on=(await Ht).reduce((sn,Jt)=>Object.assign(sn,Jt),{});return await Promise.all([LKt(it,tn,kt.signal,Dt,tt.loaderData),$Kt(it,on,vt)]),{loaderResults:tn,fetcherResults:on}}function ne(){$=!0,U.push(...bt()),H.forEach((tt,it)=>{D.has(it)&&z.add(it),Me(it)})}function J(tt,it,nt){nt===void 0&&(nt={}),C.fetchers.set(tt,it),de({fetchers:new Map(C.fetchers)},{flushSync:(nt&&nt.flushSync)===!0})}function ae(tt,it,nt,vt){vt===void 0&&(vt={});let kt=zE(C.matches,it);xe(tt),de({errors:{[kt.route.id]:nt},fetchers:new Map(C.fetchers)},{flushSync:(vt&&vt.flushSync)===!0})}function Se(tt){return f.v7_fetcherPersist&&(G.set(tt,(G.get(tt)||0)+1),Q.has(tt)&&Q.delete(tt)),C.fetchers.get(tt)||SKt}function xe(tt){let it=C.fetchers.get(tt);D.has(tt)&&!(it&&it.state==="loading"&&q.has(tt))&&Me(tt),H.delete(tt),q.delete(tt),K.delete(tt),Q.delete(tt),z.delete(tt),C.fetchers.delete(tt)}function ue(tt){if(f.v7_fetcherPersist){let it=(G.get(tt)||0)-1;it<=0?(G.delete(tt),Q.add(tt)):G.set(tt,it)}else xe(tt);de({fetchers:new Map(C.fetchers)})}function Me(tt){let it=D.get(tt);it&&(it.abort(),D.delete(tt))}function $e(tt){for(let it of tt){let nt=Se(it),vt=ub(nt.data);C.fetchers.set(it,vt)}}function ge(){let tt=[],it=!1;for(let nt of K){let vt=C.fetchers.get(nt);ji(vt,"Expected fetcher: "+nt),vt.state==="loading"&&(K.delete(nt),tt.push(nt),it=!0)}return $e(tt),it}function Ve(tt){let it=[];for(let[nt,vt]of q)if(vt<tt){let kt=C.fetchers.get(nt);ji(kt,"Expected fetcher: "+nt),kt.state==="loading"&&(Me(nt),q.delete(nt),it.push(nt))}return $e(it),it.length>0}function st(tt,it){let nt=C.blockers.get(tt)||dM;return Z.get(tt)!==it&&Z.set(tt,it),nt}function Je(tt){C.blockers.delete(tt),Z.delete(tt)}function ot(tt,it){let nt=C.blockers.get(tt)||dM;ji(nt.state==="unblocked"&&it.state==="blocked"||nt.state==="blocked"&&it.state==="blocked"||nt.state==="blocked"&&it.state==="proceeding"||nt.state==="blocked"&&it.state==="unblocked"||nt.state==="proceeding"&&it.state==="unblocked","Invalid blocker state transition: "+nt.state+" -> "+it.state);let vt=new Map(C.blockers);vt.set(tt,it),de({blockers:vt})}function Xe(tt){let{currentLocation:it,nextLocation:nt,historyAction:vt}=tt;if(Z.size===0)return;Z.size>1&&cC(!1,"A router only supports one blocker at a time");let kt=Array.from(Z.entries()),[Dt,Kt]=kt[kt.length-1],Ht=C.blockers.get(Dt);if(!(Ht&&Ht.state==="proceeding")&&Kt({currentLocation:it,nextLocation:nt,historyAction:vt}))return Dt}function Ze(tt){let it=Ju(404,{pathname:tt}),nt=l||s,{matches:vt,route:kt}=uxe(nt);return bt(),{notFoundMatches:vt,route:kt,error:it}}function bt(tt){let it=[];return le.forEach((nt,vt)=>{(!tt||tt(vt))&&(nt.cancel(),it.push(vt),le.delete(vt))}),it}function at(tt,it,nt){if(g=tt,y=it,v=nt||null,!_&&C.navigation===Mq){_=!0;let vt=It(C.location,C.matches);vt!=null&&de({restoreScrollPosition:vt})}return()=>{g=null,y=null,v=null}}function pt(tt,it){return v&&v(tt,it.map(vt=>Zqt(vt,C.loaderData)))||tt.key}function Ct(tt,it){if(g&&y){let nt=pt(tt,it);g[nt]=y()}}function It(tt,it){if(g){let nt=pt(tt,it),vt=g[nt];if(typeof vt=="number")return vt}return null}function Wt(tt,it,nt){if(d)if(tt){if(Object.keys(tt[0].params).length>0)return{active:!0,matches:v6(it,nt,c,!0)}}else return{active:!0,matches:v6(it,nt,c,!0)||[]};return{active:!1,matches:null}}async function Bt(tt,it,nt){if(!d)return{type:"success",matches:tt};let vt=tt;for(;;){let kt=l==null,Dt=l||s,Kt=a;try{await d({path:it,matches:vt,patch:(on,sn)=>{nt.aborted||ixe(on,sn,Dt,Kt,o)}})}catch(on){return{type:"error",error:on,partialMatches:vt}}finally{kt&&!nt.aborted&&(s=[...s])}if(nt.aborted)return{type:"aborted"};let Ht=HE(Dt,it,c);if(Ht)return{type:"success",matches:Ht};let tn=v6(Dt,it,c,!0);if(!tn||vt.length===tn.length&&vt.every((on,sn)=>on.route.id===tn[sn].route.id))return{type:"success",matches:null};vt=tn}}function Vt(tt){a={},l=oB(tt,o,void 0,a)}function rn(tt,it){let nt=l==null;ixe(tt,it,l||s,a,o),nt&&(s=[...s],de({}))}return w={get basename(){return c},get future(){return f},get state(){return C},get routes(){return s},get window(){return n},initialize:F,subscribe:oe,enableScrollRestoration:at,navigate:me,fetch:Ee,revalidate:ve,createHref:tt=>e.history.createHref(tt),encodeLocation:tt=>e.history.encodeLocation(tt),getFetcher:Se,deleteFetcher:ue,dispose:te,getBlocker:st,deleteBlocker:Je,patchRoutes:rn,_internalFetchControllers:D,_internalActiveDeferreds:le,_internalSetRoutes:Vt},w}function CKt(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Mie(e,n,r,i,o,a,s,l){let c,u;if(s){c=[];for(let f of n)if(c.push(f),f.route.id===s){u=f;break}}else c=n,u=n[n.length-1];let d=NU(o||".",IU(c,a),mI(e.pathname,r)||e.pathname,l==="path");if(o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&u){let f=Zde(d.search);if(u.route.index&&!f)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&f){let p=new URLSearchParams(d.search),h=p.getAll("index");p.delete("index"),h.filter(v=>v).forEach(v=>p.append("index",v));let g=p.toString();d.search=g?"?"+g:""}}return i&&r!=="/"&&(d.pathname=d.pathname==="/"?r:py([r,d.pathname])),O0(d)}function exe(e,n,r,i){if(!i||!CKt(i))return{path:r};if(i.formMethod&&!kKt(i.formMethod))return{path:r,error:Ju(405,{method:i.formMethod})};let o=()=>({path:r,error:Ju(400,{type:"invalid-body"})}),a=i.formMethod||"get",s=e?a.toUpperCase():a.toLowerCase(),l=MGe(r);if(i.body!==void 0){if(i.formEncType==="text/plain"){if(!xh(s))return o();let p=typeof i.body=="string"?i.body:i.body instanceof FormData||i.body instanceof URLSearchParams?Array.from(i.body.entries()).reduce((h,g)=>{let[v,y]=g;return""+h+v+"="+y+`
`},""):String(i.body);return{path:r,submission:{formMethod:s,formAction:l,formEncType:i.formEncType,formData:void 0,json:void 0,text:p}}}else if(i.formEncType==="application/json"){if(!xh(s))return o();try{let p=typeof i.body=="string"?JSON.parse(i.body):i.body;return{path:r,submission:{formMethod:s,formAction:l,formEncType:i.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}ji(typeof FormData=="function","FormData is not available in this environment");let c,u;if(i.formData)c=Aie(i.formData),u=i.formData;else if(i.body instanceof FormData)c=Aie(i.body),u=i.body;else if(i.body instanceof URLSearchParams)c=i.body,u=axe(c);else if(i.body==null)c=new URLSearchParams,u=new FormData;else try{c=new URLSearchParams(i.body),u=axe(c)}catch{return o()}let d={formMethod:s,formAction:l,formEncType:i&&i.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(xh(d.formMethod))return{path:r,submission:d};let f=r_(r);return n&&f.search&&Zde(f.search)&&c.append("index",""),f.search="?"+c,{path:O0(f),submission:d}}function txe(e,n,r){r===void 0&&(r=!1);let i=e.findIndex(o=>o.route.id===n);return i>=0?e.slice(0,r?i+1:i):e}function nxe(e,n,r,i,o,a,s,l,c,u,d,f,p,h,g,v){let y=v?Qd(v[1])?v[1].error:v[1].data:void 0,_=e.createURL(n.location),S=e.createURL(o),b=r;a&&n.errors?b=txe(r,Object.keys(n.errors)[0],!0):v&&Qd(v[1])&&(b=txe(r,v[0]));let E=v?v[1].statusCode:void 0,w=s&&E&&E>=400,C=b.filter((T,R)=>{let{route:O}=T;if(O.lazy)return!0;if(O.loader==null)return!1;if(a)return Pie(O,n.loaderData,n.errors);if(wKt(n.loaderData,n.matches[R],T)||c.some(k=>k===T.route.id))return!0;let M=n.matches[R],P=T;return rxe(T,Ba({currentUrl:_,currentParams:M.params,nextUrl:S,nextParams:P.params},i,{actionResult:y,actionStatus:E,defaultShouldRevalidate:w?!1:l||_.pathname+_.search===S.pathname+S.search||_.search!==S.search||IGe(M,P)}))}),x=[];return f.forEach((T,R)=>{if(a||!r.some($=>$.route.id===T.routeId)||d.has(R))return;let O=HE(h,T.path,g);if(!O){x.push({key:R,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let M=n.fetchers.get(R),P=f2(O,T.path),k=!1;p.has(R)?k=!1:u.has(R)?(u.delete(R),k=!0):M&&M.state!=="idle"&&M.data===void 0?k=l:k=rxe(P,Ba({currentUrl:_,currentParams:n.matches[n.matches.length-1].params,nextUrl:S,nextParams:r[r.length-1].params},i,{actionResult:y,actionStatus:E,defaultShouldRevalidate:w?!1:l})),k&&x.push({key:R,routeId:T.routeId,path:T.path,matches:O,match:P,controller:new AbortController})}),[C,x]}function Pie(e,n,r){if(e.lazy)return!0;if(!e.loader)return!1;let i=n!=null&&n[e.id]!==void 0,o=r!=null&&r[e.id]!==void 0;return!i&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!i&&!o}function wKt(e,n,r){let i=!n||r.route.id!==n.route.id,o=e[r.route.id]===void 0;return i||o}function IGe(e,n){let r=e.route.path;return e.pathname!==n.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==n.params["*"]}function rxe(e,n){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(n);if(typeof r=="boolean")return r}return n.defaultShouldRevalidate}function ixe(e,n,r,i,o){var a;let s;if(e){let u=i[e];ji(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),s=u.children}else s=r;let l=n.filter(u=>!s.some(d=>NGe(u,d))),c=oB(l,o,[e||"_","patch",String(((a=s)==null?void 0:a.length)||"0")],i);s.push(...c)}function NGe(e,n){return"id"in e&&"id"in n&&e.id===n.id?!0:e.index===n.index&&e.path===n.path&&e.caseSensitive===n.caseSensitive?(!e.children||e.children.length===0)&&(!n.children||n.children.length===0)?!0:e.children.every((r,i)=>{var o;return(o=n.children)==null?void 0:o.some(a=>NGe(r,a))}):!1}async function xKt(e,n,r){if(!e.lazy)return;let i=await e.lazy();if(!e.lazy)return;let o=r[e.id];ji(o,"No route found in manifest");let a={};for(let s in i){let c=o[s]!==void 0&&s!=="hasErrorBoundary";cC(!c,'Route "'+o.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!c&&!Xqt.has(s)&&(a[s]=i[s])}Object.assign(o,a),Object.assign(o,Ba({},n(o),{lazy:void 0}))}async function TKt(e){let{matches:n}=e,r=n.filter(o=>o.shouldLoad);return(await Promise.all(r.map(o=>o.resolve()))).reduce((o,a,s)=>Object.assign(o,{[r[s].route.id]:a}),{})}async function OKt(e,n,r,i,o,a,s,l,c,u){let d=a.map(h=>h.route.lazy?xKt(h.route,c,l):void 0),f=a.map((h,g)=>{let v=d[g],y=o.some(S=>S.route.id===h.route.id);return Ba({},h,{shouldLoad:y,resolve:async S=>(S&&i.method==="GET"&&(h.route.lazy||h.route.loader)&&(y=!0),y?RKt(n,i,h,v,S,u):Promise.resolve({type:Yo.data,result:void 0}))})}),p=await e({matches:f,request:i,params:a[0].params,fetcherKey:s,context:u});try{await Promise.all(d)}catch{}return p}async function RKt(e,n,r,i,o,a){let s,l,c=u=>{let d,f=new Promise((g,v)=>d=v);l=()=>d(),n.signal.addEventListener("abort",l);let p=g=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):u({request:n,params:r.params,context:a},...g!==void 0?[g]:[]),h=(async()=>{try{return{type:"data",result:await(o?o(v=>p(v)):p())}}catch(g){return{type:"error",result:g}}})();return Promise.race([h,f])};try{let u=r.route[e];if(i)if(u){let d,[f]=await Promise.all([c(u).catch(p=>{d=p}),i]);if(d!==void 0)throw d;s=f}else if(await i,u=r.route[e],u)s=await c(u);else if(e==="action"){let d=new URL(n.url),f=d.pathname+d.search;throw Ju(405,{method:n.method,pathname:f,routeId:r.route.id})}else return{type:Yo.data,result:void 0};else if(u)s=await c(u);else{let d=new URL(n.url),f=d.pathname+d.search;throw Ju(404,{pathname:f})}ji(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:Yo.error,result:u}}finally{l&&n.signal.removeEventListener("abort",l)}return s}async function IKt(e){let{result:n,type:r}=e;if(PGe(n)){let u;try{let d=n.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?n.body==null?u=null:u=await n.json():u=await n.text()}catch(d){return{type:Yo.error,error:d}}return r===Yo.error?{type:Yo.error,error:new aB(n.status,n.statusText,u),statusCode:n.status,headers:n.headers}:{type:Yo.data,data:u,statusCode:n.status,headers:n.headers}}if(r===Yo.error){if(dxe(n)){var i;if(n.data instanceof Error){var o;return{type:Yo.error,error:n.data,statusCode:(o=n.init)==null?void 0:o.status}}n=new aB(((i=n.init)==null?void 0:i.status)||500,void 0,n.data)}return{type:Yo.error,error:n,statusCode:MU(n)?n.status:void 0}}if(DKt(n)){var a,s;return{type:Yo.deferred,deferredData:n,statusCode:(a=n.init)==null?void 0:a.status,headers:((s=n.init)==null?void 0:s.headers)&&new Headers(n.init.headers)}}if(dxe(n)){var l,c;return{type:Yo.data,data:n.data,statusCode:(l=n.init)==null?void 0:l.status,headers:(c=n.init)!=null&&c.headers?new Headers(n.init.headers):void 0}}return{type:Yo.data,data:n}}function NKt(e,n,r,i,o,a){let s=e.headers.get("Location");if(ji(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!Xde.test(s)){let l=i.slice(0,i.findIndex(c=>c.route.id===r)+1);s=Mie(new URL(n.url),l,o,!0,s,a),e.headers.set("Location",s)}return e}function oxe(e,n,r){if(Xde.test(e)){let i=e,o=i.startsWith("//")?new URL(n.protocol+i):new URL(i),a=mI(o.pathname,r)!=null;if(o.origin===n.origin&&a)return o.pathname+o.search+o.hash}return e}function Ox(e,n,r,i){let o=e.createURL(MGe(n)).toString(),a={signal:r};if(i&&xh(i.formMethod)){let{formMethod:s,formEncType:l}=i;a.method=s.toUpperCase(),l==="application/json"?(a.headers=new Headers({"Content-Type":l}),a.body=JSON.stringify(i.json)):l==="text/plain"?a.body=i.text:l==="application/x-www-form-urlencoded"&&i.formData?a.body=Aie(i.formData):a.body=i.formData}return new Request(o,a)}function Aie(e){let n=new URLSearchParams;for(let[r,i]of e.entries())n.append(r,typeof i=="string"?i:i.name);return n}function axe(e){let n=new FormData;for(let[r,i]of e.entries())n.append(r,i);return n}function MKt(e,n,r,i,o){let a={},s=null,l,c=!1,u={},d=r&&Qd(r[1])?r[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in n))return;let p=f.route.id,h=n[p];if(ji(!s1(h),"Cannot handle redirect results in processLoaderData"),Qd(h)){let g=h.error;d!==void 0&&(g=d,d=void 0),s=s||{};{let v=zE(e,p);s[v.route.id]==null&&(s[v.route.id]=g)}a[p]=void 0,c||(c=!0,l=MU(h.error)?h.error.status:500),h.headers&&(u[p]=h.headers)}else Ub(h)?(i.set(p,h.deferredData),a[p]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!c&&(l=h.statusCode),h.headers&&(u[p]=h.headers)):(a[p]=h.data,h.statusCode&&h.statusCode!==200&&!c&&(l=h.statusCode),h.headers&&(u[p]=h.headers))}),d!==void 0&&r&&(s={[r[0]]:d},a[r[0]]=void 0),{loaderData:a,errors:s,statusCode:l||200,loaderHeaders:u}}function sxe(e,n,r,i,o,a,s){let{loaderData:l,errors:c}=MKt(n,r,i,s);return o.forEach(u=>{let{key:d,match:f,controller:p}=u,h=a[d];if(ji(h,"Did not find corresponding fetcher result"),!(p&&p.signal.aborted))if(Qd(h)){let g=zE(e.matches,f==null?void 0:f.route.id);c&&c[g.route.id]||(c=Ba({},c,{[g.route.id]:h.error})),e.fetchers.delete(d)}else if(s1(h))ji(!1,"Unhandled fetcher revalidation redirect");else if(Ub(h))ji(!1,"Unhandled fetcher deferred data");else{let g=ub(h.data);e.fetchers.set(d,g)}}),{loaderData:l,errors:c}}function lxe(e,n,r,i){let o=Ba({},n);for(let a of r){let s=a.route.id;if(n.hasOwnProperty(s)?n[s]!==void 0&&(o[s]=n[s]):e[s]!==void 0&&a.route.loader&&(o[s]=e[s]),i&&i.hasOwnProperty(s))break}return o}function cxe(e){return e?Qd(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function zE(e,n){return(n?e.slice(0,e.findIndex(i=>i.route.id===n)+1):[...e]).reverse().find(i=>i.route.hasErrorBoundary===!0)||e[0]}function uxe(e){let n=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n}}function Ju(e,n){let{pathname:r,routeId:i,method:o,type:a,message:s}=n===void 0?{}:n,l="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(l="Bad Request",o&&r&&i?c="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+i+'", ')+"so there is no way to handle the request.":a==="defer-action"?c="defer() is not supported in actions":a==="invalid-body"&&(c="Unable to encode submission body")):e===403?(l="Forbidden",c='Route "'+i+'" does not match URL "'+r+'"'):e===404?(l="Not Found",c='No route matches URL "'+r+'"'):e===405&&(l="Method Not Allowed",o&&r&&i?c="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+i+'", ')+"so there is no way to handle the request.":o&&(c='Invalid request method "'+o.toUpperCase()+'"')),new aB(e||500,l,new Error(c),!0)}function a4(e){let n=Object.entries(e);for(let r=n.length-1;r>=0;r--){let[i,o]=n[r];if(s1(o))return{key:i,result:o}}}function MGe(e){let n=typeof e=="string"?r_(e):e;return O0(Ba({},n,{hash:""}))}function PKt(e,n){return e.pathname!==n.pathname||e.search!==n.search?!1:e.hash===""?n.hash!=="":e.hash===n.hash?!0:n.hash!==""}function AKt(e){return PGe(e.result)&&_Kt.has(e.result.status)}function Ub(e){return e.type===Yo.deferred}function Qd(e){return e.type===Yo.error}function s1(e){return(e&&e.type)===Yo.redirect}function dxe(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function DKt(e){let n=e;return n&&typeof n=="object"&&typeof n.data=="object"&&typeof n.subscribe=="function"&&typeof n.cancel=="function"&&typeof n.resolveData=="function"}function PGe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function kKt(e){return yKt.has(e.toLowerCase())}function xh(e){return mKt.has(e.toLowerCase())}async function LKt(e,n,r,i,o){let a=Object.entries(n);for(let s=0;s<a.length;s++){let[l,c]=a[s],u=e.find(p=>(p==null?void 0:p.route.id)===l);if(!u)continue;let d=i.find(p=>p.route.id===u.route.id),f=d!=null&&!IGe(d,u)&&(o&&o[u.route.id])!==void 0;Ub(c)&&f&&await Qde(c,r,!1).then(p=>{p&&(n[l]=p)})}}async function $Kt(e,n,r){for(let i=0;i<r.length;i++){let{key:o,routeId:a,controller:s}=r[i],l=n[o];e.find(u=>(u==null?void 0:u.route.id)===a)&&Ub(l)&&(ji(s,"Expected an AbortController for revalidating fetcher deferred result"),await Qde(l,s.signal,!0).then(u=>{u&&(n[o]=u)}))}}async function Qde(e,n,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(n)){if(r)try{return{type:Yo.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Yo.error,error:o}}return{type:Yo.data,data:e.deferredData.data}}}function Zde(e){return new URLSearchParams(e).getAll("index").some(n=>n==="")}function f2(e,n){let r=typeof n=="string"?r_(n).search:n.search;if(e[e.length-1].route.index&&Zde(r||""))return e[e.length-1];let i=xGe(e);return i[i.length-1]}function fxe(e){let{formMethod:n,formAction:r,formEncType:i,text:o,formData:a,json:s}=e;if(!(!n||!r||!i)){if(o!=null)return{formMethod:n,formAction:r,formEncType:i,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:n,formAction:r,formEncType:i,formData:a,json:void 0,text:void 0};if(s!==void 0)return{formMethod:n,formAction:r,formEncType:i,formData:void 0,json:s,text:void 0}}}function Pq(e,n){return n?{state:"loading",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function FKt(e,n){return{state:"submitting",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}function fM(e,n){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function BKt(e,n){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n?n.data:void 0}}function ub(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 jKt(e,n){try{let r=e.sessionStorage.getItem(OGe);if(r){let i=JSON.parse(r);for(let[o,a]of Object.entries(i||{}))a&&Array.isArray(a)&&n.set(o,new Set(a||[]))}}catch{}}function UKt(e,n){if(n.size>0){let r={};for(let[i,o]of n)r[i]=[...o];try{e.sessionStorage.setItem(OGe,JSON.stringify(r))}catch(i){cC(!1,"Failed to save applied view transitions in sessionStorage ("+i+").")}}}/**
* 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 sB(){return sB=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},sB.apply(this,arguments)}const PU=m.createContext(null),AGe=m.createContext(null),oS=m.createContext(null),Jde=m.createContext(null),rv=m.createContext({outlet:null,matches:[],isDataRoute:!1}),DGe=m.createContext(null);function HKt(e,n){let{relative:r}=n===void 0?{}:n;vI()||ji(!1);let{basename:i,navigator:o}=m.useContext(oS),{hash:a,pathname:s,search:l}=LGe(e,{relative:r}),c=s;return i!=="/"&&(c=s==="/"?i:py([i,s])),o.createHref({pathname:c,search:l,hash:a})}function vI(){return m.useContext(Jde)!=null}function yI(){return vI()||ji(!1),m.useContext(Jde).location}function kGe(e){m.useContext(oS).static||m.useLayoutEffect(e)}function Df(){let{isDataRoute:e}=m.useContext(rv);return e?rXt():zKt()}function zKt(){vI()||ji(!1);let e=m.useContext(PU),{basename:n,future:r,navigator:i}=m.useContext(oS),{matches:o}=m.useContext(rv),{pathname:a}=yI(),s=JSON.stringify(IU(o,r.v7_relativeSplatPath)),l=m.useRef(!1);return kGe(()=>{l.current=!0}),m.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){i.go(u);return}let f=NU(u,JSON.parse(s),a,d.relative==="path");e==null&&n!=="/"&&(f.pathname=f.pathname==="/"?n:py([n,f.pathname])),(d.replace?i.replace:i.push)(f,d.state,d)},[n,i,s,a,e])}const VKt=m.createContext(null);function GKt(e){let n=m.useContext(rv).outlet;return n&&m.createElement(VKt.Provider,{value:e},n)}function WKt(){let{matches:e}=m.useContext(rv),n=e[e.length-1];return n?n.params:{}}function LGe(e,n){let{relative:r}=n===void 0?{}:n,{future:i}=m.useContext(oS),{matches:o}=m.useContext(rv),{pathname:a}=yI(),s=JSON.stringify(IU(o,i.v7_relativeSplatPath));return m.useMemo(()=>NU(e,JSON.parse(s),a,r==="path"),[e,s,a,r])}function YKt(e,n,r,i){vI()||ji(!1);let{navigator:o}=m.useContext(oS),{matches:a}=m.useContext(rv),s=a[a.length-1],l=s?s.params:{};s&&s.pathname;let c=s?s.pathnameBase:"/";s&&s.route;let u=yI(),d;d=u;let f=d.pathname||"/",p=f;if(c!=="/"){let v=c.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(v.length).join("/")}let h=HE(e,{pathname:p});return ZKt(h&&h.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:py([c,o.encodeLocation?o.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?c:py([c,o.encodeLocation?o.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,r,i)}function qKt(){let e=nXt(),n=MU(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={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"}},n),r?m.createElement("pre",{style:o},r):null,null)}const KKt=m.createElement(qKt,null);class XKt extends m.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){console.error("React Router caught the following error during render",n,r)}render(){return this.state.error!==void 0?m.createElement(rv.Provider,{value:this.props.routeContext},m.createElement(DGe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function QKt(e){let{routeContext:n,match:r,children:i}=e,o=m.useContext(PU);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),m.createElement(rv.Provider,{value:n},i)}function ZKt(e,n,r,i){var o;if(n===void 0&&(n=[]),r===void 0&&(r=null),i===void 0&&(i=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=i)!=null&&a.v7_partialHydration&&n.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,l=(o=r)==null?void 0:o.errors;if(l!=null){let d=s.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||ji(!1),s=s.slice(0,Math.min(s.length,d+1))}let c=!1,u=-1;if(r&&i&&i.v7_partialHydration)for(let d=0;d<s.length;d++){let f=s[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:p,errors:h}=r,g=f.route.loader&&p[f.route.id]===void 0&&(!h||h[f.route.id]===void 0);if(f.route.lazy||g){c=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,f,p)=>{let h,g=!1,v=null,y=null;r&&(h=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||KKt,c&&(u<0&&p===0?(g=!0,y=null):u===p&&(g=!0,y=f.route.hydrateFallbackElement||null)));let _=n.concat(s.slice(0,p+1)),S=()=>{let b;return h?b=v:g?b=y:f.route.Component?b=m.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=d,m.createElement(QKt,{match:f,routeContext:{outlet:d,matches:_,isDataRoute:r!=null},children:b})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?m.createElement(XKt,{location:r.location,revalidation:r.revalidation,component:v,error:h,children:S(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):S()},null)}var $Ge=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}($Ge||{}),lB=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}(lB||{});function JKt(e){let n=m.useContext(PU);return n||ji(!1),n}function eXt(e){let n=m.useContext(AGe);return n||ji(!1),n}function tXt(e){let n=m.useContext(rv);return n||ji(!1),n}function FGe(e){let n=tXt(),r=n.matches[n.matches.length-1];return r.route.id||ji(!1),r.route.id}function nXt(){var e;let n=m.useContext(DGe),r=eXt(lB.UseRouteError),i=FGe(lB.UseRouteError);return n!==void 0?n:(e=r.errors)==null?void 0:e[i]}function rXt(){let{router:e}=JKt($Ge.UseNavigateStable),n=FGe(lB.UseNavigateStable),r=m.useRef(!1);return kGe(()=>{r.current=!0}),m.useCallback(function(o,a){a===void 0&&(a={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,sB({fromRouteId:n},a)))},[e,n])}const pxe={};function iXt(e,n){pxe[n]||(pxe[n]=!0,console.warn(n))}const Rx=(e,n,r)=>iXt(e,"⚠️ React Router Future Flag Warning: "+n+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+r+"."));function oXt(e,n){e!=null&&e.v7_startTransition||Rx("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)&&(!n||!n.v7_relativeSplatPath)&&Rx("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),n&&(n.v7_fetcherPersist||Rx("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),n.v7_normalizeFormMethod||Rx("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),n.v7_partialHydration||Rx("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),n.v7_skipActionErrorRevalidation||Rx("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function aXt(e){let{to:n,replace:r,state:i,relative:o}=e;vI()||ji(!1);let{future:a,static:s}=m.useContext(oS),{matches:l}=m.useContext(rv),{pathname:c}=yI(),u=Df(),d=NU(n,IU(l,a.v7_relativeSplatPath),c,o==="path"),f=JSON.stringify(d);return m.useEffect(()=>u(JSON.parse(f),{replace:r,state:i,relative:o}),[u,f,o,r,i]),null}function AU(e){return GKt(e.context)}function sXt(e){let{basename:n="/",children:r=null,location:i,navigationType:o=el.Pop,navigator:a,static:s=!1,future:l}=e;vI()&&ji(!1);let c=n.replace(/^\/*/,"/"),u=m.useMemo(()=>({basename:c,navigator:a,static:s,future:sB({v7_relativeSplatPath:!1},l)}),[c,l,a,s]);typeof i=="string"&&(i=r_(i));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:g="default"}=i,v=m.useMemo(()=>{let y=mI(d,c);return y==null?null:{location:{pathname:y,search:f,hash:p,state:h,key:g},navigationType:o}},[c,d,f,p,h,g,o]);return v==null?null:m.createElement(oS.Provider,{value:u},m.createElement(Jde.Provider,{children:r,value:v}))}new Promise(()=>{});function BGe(e){let n={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(n,{element:m.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(n,{hydrateFallbackElement:m.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(n,{errorElement:m.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),n}/**
* 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 jO(){return jO=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},jO.apply(this,arguments)}function lXt(e,n){if(e==null)return{};var r={},i=Object.keys(e),o,a;for(a=0;a<i.length;a++)o=i[a],!(n.indexOf(o)>=0)&&(r[o]=e[o]);return r}function cXt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uXt(e,n){return e.button===0&&(!n||n==="_self")&&!cXt(e)}const dXt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],fXt="6";try{window.__reactRouterVersion=fXt}catch{}function pXt(e,n){return RGe({basename:n==null?void 0:n.basename,future:jO({},n==null?void 0:n.future,{v7_prependBasename:!0}),history:Yqt({window:n==null?void 0:n.window}),hydrationData:(n==null?void 0:n.hydrationData)||jGe(),routes:e,mapRouteProperties:BGe,dataStrategy:n==null?void 0:n.dataStrategy,patchRoutesOnNavigation:n==null?void 0:n.patchRoutesOnNavigation,window:n==null?void 0:n.window}).initialize()}function hXt(e,n){return RGe({basename:n==null?void 0:n.basename,future:jO({},n==null?void 0:n.future,{v7_prependBasename:!0}),history:qqt({window:n==null?void 0:n.window}),hydrationData:(n==null?void 0:n.hydrationData)||jGe(),routes:e,mapRouteProperties:BGe,dataStrategy:n==null?void 0:n.dataStrategy,patchRoutesOnNavigation:n==null?void 0:n.patchRoutesOnNavigation,window:n==null?void 0:n.window}).initialize()}function jGe(){var e;let n=(e=window)==null?void 0:e.__staticRouterHydrationData;return n&&n.errors&&(n=jO({},n,{errors:gXt(n.errors)})),n}function gXt(e){if(!e)return null;let n=Object.entries(e),r={};for(let[i,o]of n)if(o&&o.__type==="RouteErrorResponse")r[i]=new aB(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let a=window[o.__subType];if(typeof a=="function")try{let s=new a(o.message);s.stack="",r[i]=s}catch{}}if(r[i]==null){let a=new Error(o.message);a.stack="",r[i]=a}}else r[i]=o;return r}const mXt=m.createContext({isTransitioning:!1}),vXt=m.createContext(new Map),yXt="startTransition",hxe=zD[yXt],_Xt="flushSync",gxe=lje[_Xt];function bXt(e){hxe?hxe(e):e()}function pM(e){gxe?gxe(e):e()}class SXt{constructor(){this.status="pending",this.promise=new Promise((n,r)=>{this.resolve=i=>{this.status==="pending"&&(this.status="resolved",n(i))},this.reject=i=>{this.status==="pending"&&(this.status="rejected",r(i))}})}}function EXt(e){let{fallbackElement:n,router:r,future:i}=e,[o,a]=m.useState(r.state),[s,l]=m.useState(),[c,u]=m.useState({isTransitioning:!1}),[d,f]=m.useState(),[p,h]=m.useState(),[g,v]=m.useState(),y=m.useRef(new Map),{v7_startTransition:_}=i||{},S=m.useCallback(T=>{_?bXt(T):T()},[_]),b=m.useCallback((T,R)=>{let{deletedFetchers:O,flushSync:M,viewTransitionOpts:P}=R;O.forEach($=>y.current.delete($)),T.fetchers.forEach(($,U)=>{$.data!==void 0&&y.current.set(U,$.data)});let k=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!P||k){M?pM(()=>a(T)):S(()=>a(T));return}if(M){pM(()=>{p&&(d&&d.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:P.currentLocation,nextLocation:P.nextLocation})});let $=r.window.document.startViewTransition(()=>{pM(()=>a(T))});$.finished.finally(()=>{pM(()=>{f(void 0),h(void 0),l(void 0),u({isTransitioning:!1})})}),pM(()=>h($));return}p?(d&&d.resolve(),p.skipTransition(),v({state:T,currentLocation:P.currentLocation,nextLocation:P.nextLocation})):(l(T),u({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}))},[r.window,p,d,y,S]);m.useLayoutEffect(()=>r.subscribe(b),[r,b]),m.useEffect(()=>{c.isTransitioning&&!c.flushSync&&f(new SXt)},[c]),m.useEffect(()=>{if(d&&s&&r.window){let T=s,R=d.promise,O=r.window.document.startViewTransition(async()=>{S(()=>a(T)),await R});O.finished.finally(()=>{f(void 0),h(void 0),l(void 0),u({isTransitioning:!1})}),h(O)}},[S,s,d,r.window]),m.useEffect(()=>{d&&s&&o.location.key===s.location.key&&d.resolve()},[d,p,o.location,s]),m.useEffect(()=>{!c.isTransitioning&&g&&(l(g.state),u({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),v(void 0))},[c.isTransitioning,g]),m.useEffect(()=>{},[]);let E=m.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:T=>r.navigate(T),push:(T,R,O)=>r.navigate(T,{state:R,preventScrollReset:O==null?void 0:O.preventScrollReset}),replace:(T,R,O)=>r.navigate(T,{replace:!0,state:R,preventScrollReset:O==null?void 0:O.preventScrollReset})}),[r]),w=r.basename||"/",C=m.useMemo(()=>({router:r,navigator:E,static:!1,basename:w}),[r,E,w]),x=m.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return m.useEffect(()=>oXt(i,r.future),[i,r.future]),m.createElement(m.Fragment,null,m.createElement(PU.Provider,{value:C},m.createElement(AGe.Provider,{value:o},m.createElement(vXt.Provider,{value:y.current},m.createElement(mXt.Provider,{value:c},m.createElement(sXt,{basename:w,location:o.location,navigationType:o.historyAction,navigator:E,future:x},o.initialized||r.future.v7_partialHydration?m.createElement(CXt,{routes:r.routes,future:r.future,state:o}):n))))),null)}const CXt=m.memo(wXt);function wXt(e){let{routes:n,future:r,state:i}=e;return YKt(n,void 0,i,r)}const xXt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",TXt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,OXt=m.forwardRef(function(n,r){let{onClick:i,relative:o,reloadDocument:a,replace:s,state:l,target:c,to:u,preventScrollReset:d,viewTransition:f}=n,p=lXt(n,dXt),{basename:h}=m.useContext(oS),g,v=!1;if(typeof u=="string"&&TXt.test(u)&&(g=u,xXt))try{let b=new URL(window.location.href),E=u.startsWith("//")?new URL(b.protocol+u):new URL(u),w=mI(E.pathname,h);E.origin===b.origin&&w!=null?u=w+E.search+E.hash:v=!0}catch{}let y=HKt(u,{relative:o}),_=RXt(u,{replace:s,state:l,target:c,preventScrollReset:d,relative:o,viewTransition:f});function S(b){i&&i(b),b.defaultPrevented||_(b)}return m.createElement("a",jO({},p,{href:g||y,onClick:v||a?i:S,ref:r,target:c}))});var mxe;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(mxe||(mxe={}));var vxe;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(vxe||(vxe={}));function RXt(e,n){let{target:r,replace:i,state:o,preventScrollReset:a,relative:s,viewTransition:l}=n===void 0?{}:n,c=Df(),u=yI(),d=LGe(e,{relative:s});return m.useCallback(f=>{if(uXt(f,r)){f.preventDefault();let p=i!==void 0?i:O0(u)===O0(d);c(e,{replace:p,state:o,preventScrollReset:a,relative:s,viewTransition:l})}},[u,c,d,i,o,r,e,a,s,l])}var IXt=ee(ee({},Zje),{},{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 UGe={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},Die={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},IXt),timePickerLocale:Object.assign({},UGe)};Die.lang.ok="确定";const Ud="${label}不是一个有效的${type}",NXt={locale:"zh-cn",Pagination:lHt,DatePicker:Die,TimePicker:UGe,Calendar:Die,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:Ud,method:Ud,array:Ud,object:Ud,number:Ud,date:Ud,boolean:Ud,integer:Ud,float:Ud,regexp:Ud,email:Ud,url:Ud,hex:Ud},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:"渐变色"}},Hb=()=>{},tf=Hb(),y6=Object,yo=e=>e===tf,dm=e=>typeof e=="function",Dy=(e,n)=>({...e,...n}),MXt=e=>dm(e.then),s4=new WeakMap;let PXt=0;const TA=e=>{const n=typeof e,r=e&&e.constructor,i=r==Date;let o,a;if(y6(e)===e&&!i&&r!=RegExp){if(o=s4.get(e),o)return o;if(o=++PXt+"~",s4.set(e,o),r==Array){for(o="@",a=0;a<e.length;a++)o+=TA(e[a])+",";s4.set(e,o)}if(r==y6){o="#";const s=y6.keys(e).sort();for(;!yo(a=s.pop());)yo(e[a])||(o+=a+":"+TA(e[a])+",");s4.set(e,o)}}else o=i?e.toJSON():n=="symbol"?e.toString():n=="string"?JSON.stringify(e):""+e;return o},Wv=new WeakMap,Aq={},l4={},efe="undefined",DU=typeof window!=efe,kie=typeof document!=efe,AXt=()=>DU&&typeof window.requestAnimationFrame!=efe,HGe=(e,n)=>{const r=Wv.get(e);return[()=>!yo(n)&&e.get(n)||Aq,i=>{if(!yo(n)){const o=e.get(n);n in l4||(l4[n]=o),r[5](n,Dy(o,i),o||Aq)}},r[6],()=>!yo(n)&&n in l4?l4[n]:!yo(n)&&e.get(n)||Aq]};let Lie=!0;const DXt=()=>Lie,[$ie,Fie]=DU&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Hb,Hb],kXt=()=>{const e=kie&&document.visibilityState;return yo(e)||e!=="hidden"},LXt=e=>(kie&&document.addEventListener("visibilitychange",e),$ie("focus",e),()=>{kie&&document.removeEventListener("visibilitychange",e),Fie("focus",e)}),$Xt=e=>{const n=()=>{Lie=!0,e()},r=()=>{Lie=!1};return $ie("online",n),$ie("offline",r),()=>{Fie("online",n),Fie("offline",r)}},FXt={isOnline:DXt,isVisible:kXt},BXt={initFocus:LXt,initReconnect:$Xt},yxe=!V.useId,OA=!DU||"Deno"in window,jXt=e=>AXt()?window.requestAnimationFrame(e):setTimeout(e,1),_6=OA?m.useEffect:m.useLayoutEffect,Dq=typeof navigator<"u"&&navigator.connection,_xe=!OA&&Dq&&(["slow-2g","2g"].includes(Dq.effectiveType)||Dq.saveData),tfe=e=>{if(dm(e))try{e=e()}catch{e=""}const n=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?TA(e):"",[e,n]};let UXt=0;const Bie=()=>++UXt,zGe=0,VGe=1,GGe=2,HXt=3;var hM={__proto__:null,ERROR_REVALIDATE_EVENT:HXt,FOCUS_EVENT:zGe,MUTATE_EVENT:GGe,RECONNECT_EVENT:VGe};async function WGe(...e){const[n,r,i,o]=e,a=Dy({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let s=a.populateCache;const l=a.rollbackOnError;let c=a.optimisticData;const u=a.revalidate!==!1,d=h=>typeof l=="function"?l(h):l!==!1,f=a.throwOnError;if(dm(r)){const h=r,g=[],v=n.keys();for(const y of v)!/^\$(inf|sub)\$/.test(y)&&h(n.get(y)._k)&&g.push(y);return Promise.all(g.map(p))}return p(r);async function p(h){const[g]=tfe(h);if(!g)return;const[v,y]=HGe(n,g),[_,S,b,E]=Wv.get(n),w=_[g],C=()=>u&&(delete b[g],delete E[g],w&&w[0])?w[0](GGe).then(()=>v().data):v().data;if(e.length<3)return C();let x=i,T;const R=Bie();S[g]=[R,0];const O=!yo(c),M=v(),P=M.data,k=M._c,$=yo(k)?P:k;if(O&&(c=dm(c)?c($,P):c,y({data:c,_c:$})),dm(x))try{x=x($)}catch(z){T=z}if(x&&MXt(x))if(x=await x.catch(z=>{T=z}),R!==S[g][0]){if(T)throw T;return x}else T&&O&&d(T)&&(s=!0,x=$,y({data:x,_c:tf}));s&&(T||(dm(s)&&(x=s(x,$)),y({data:x,error:tf,_c:tf}))),S[g][1]=Bie();const U=await C();if(y({_c:tf}),T){if(f)throw T;return}return s?U:x}}const bxe=(e,n)=>{for(const r in e)e[r][0]&&e[r][0](n)},YGe=(e,n)=>{if(!Wv.has(e)){const r=Dy(BXt,n),i={},o=WGe.bind(tf,e);let a=Hb;const s={},l=(d,f)=>{const p=s[d]||[];return s[d]=p,p.push(f),()=>p.splice(p.indexOf(f),1)},c=(d,f,p)=>{e.set(d,f);const h=s[d];if(h)for(const g of h)g(f,p)},u=()=>{if(!Wv.has(e)&&(Wv.set(e,[i,{},{},{},o,c,l]),!OA)){const d=r.initFocus(setTimeout.bind(tf,bxe.bind(tf,i,zGe))),f=r.initReconnect(setTimeout.bind(tf,bxe.bind(tf,i,VGe)));a=()=>{d&&d(),f&&f(),Wv.delete(e)}}};return u(),[e,o,u,a]}return[e,Wv.get(e)[4]]},zXt=(e,n,r,i,o)=>{const a=r.errorRetryCount,s=o.retryCount,l=~~((Math.random()+.5)*(1<<(s<8?s:8)))*r.errorRetryInterval;!yo(a)&&s>a||setTimeout(i,l,o)},VXt=(e,n)=>TA(e)==TA(n),[nfe,GXt]=YGe(new Map),qGe=Dy({onLoadingSlow:Hb,onSuccess:Hb,onError:Hb,onErrorRetry:zXt,onDiscarded:Hb,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:_xe?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:_xe?5e3:3e3,compare:VXt,isPaused:()=>!1,cache:nfe,mutate:GXt,fallback:{}},FXt),KGe=(e,n)=>{const r=Dy(e,n);if(n){const{use:i,fallback:o}=e,{use:a,fallback:s}=n;i&&a&&(r.use=i.concat(a)),o&&s&&(r.fallback=Dy(o,s))}return r},jie=m.createContext({}),WXt=e=>{const{value:n}=e,r=m.useContext(jie),i=dm(n),o=m.useMemo(()=>i?n(r):n,[i,r,n]),a=m.useMemo(()=>i?o:KGe(r,o),[i,r,o]),s=o&&o.provider,l=m.useRef(tf);s&&!l.current&&(l.current=YGe(s(a.cache||nfe),o));const c=l.current;return c&&(a.cache=c[0],a.mutate=c[1]),_6(()=>{if(c)return c[2]&&c[2](),c[3]},[]),m.createElement(jie.Provider,Dy(e,{value:a}))},XGe=DU&&window.__SWR_DEVTOOLS_USE__,YXt=XGe?window.__SWR_DEVTOOLS_USE__:[],qXt=()=>{XGe&&(window.__SWR_DEVTOOLS_REACT__=V)},KXt=e=>dm(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],rfe=()=>Dy(qGe,m.useContext(jie)),XXt=e=>(n,r,i)=>e(n,r&&((...a)=>{const[s]=tfe(n),[,,,l]=Wv.get(nfe),c=l[s];return yo(c)?r(...a):(delete l[s],c)}),i),QXt=YXt.concat(XXt),ZXt=e=>function(...r){const i=rfe(),[o,a,s]=KXt(r),l=KGe(i,s);let c=e;const{use:u}=l,d=(u||[]).concat(QXt);for(let f=d.length;f--;)c=d[f](c);return c(o,a||l.fetcher||null,l)},JXt=(e,n,r)=>{const i=n[e]||(n[e]=[]);return i.push(r),()=>{const o=i.indexOf(r);o>=0&&(i[o]=i[i.length-1],i.pop())}};qXt();const Sxe=V.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(n=>{e.status="fulfilled",e.value=n},n=>{e.status="rejected",e.reason=n}),e)}),kq={dedupe:!0},eQt=(e,n,r)=>{const{cache:i,compare:o,suspense:a,fallbackData:s,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:p}=r,[h,g,v,y]=Wv.get(i),[_,S]=tfe(e),b=m.useRef(!1),E=m.useRef(!1),w=m.useRef(_),C=m.useRef(n),x=m.useRef(r),T=()=>x.current,R=()=>T().isVisible()&&T().isOnline(),[O,M,P,k]=HGe(i,_),$=m.useRef({}).current,U=yo(s)?r.fallback[_]:s,z=(pe,me)=>{for(const ve in $){const he=ve;if(he==="data"){if(!o(pe[he],me[he])&&(!yo(pe[he])||!o(le,me[he])))return!1}else if(me[he]!==pe[he])return!1}return!0},D=m.useMemo(()=>{const pe=!_||!n?!1:yo(l)?T().isPaused()||a?!1:yo(c)?!0:c:l,me=Ae=>{const Ee=Dy(Ae);return delete Ee._k,pe?{isValidating:!0,isLoading:!0,...Ee}:Ee},ve=O(),he=k(),be=me(ve),we=ve===he?be:me(he);let De=be;return[()=>{const Ae=me(O());return z(Ae,De)?(De.data=Ae.data,De.isLoading=Ae.isLoading,De.isValidating=Ae.isValidating,De.error=Ae.error,De):(De=Ae,Ae)},()=>we]},[i,_]),B=b4e.useSyncExternalStore(m.useCallback(pe=>P(_,(me,ve)=>{z(ve,me)||pe()}),[i,_]),D[0],D[1]),Y=!b.current,q=h[_]&&h[_].length>0,K=B.data,H=yo(K)?U:K,G=B.error,Q=m.useRef(H),le=p?yo(K)?Q.current:K:H,Z=q&&!yo(G)?!1:Y&&!yo(l)?l:T().isPaused()?!1:a?yo(H)?!1:c:yo(H)||c,j=!!(_&&n&&Y&&Z),F=yo(B.isValidating)?j:B.isValidating,te=yo(B.isLoading)?j:B.isLoading,oe=m.useCallback(async pe=>{const me=C.current;if(!_||!me||E.current||T().isPaused())return!1;let ve,he,be=!0;const we=pe||{},De=!v[_]||!we.dedupe,Ae=()=>yxe?!E.current&&_===w.current&&b.current:_===w.current,Ee={isValidating:!1,isLoading:!1},Re=()=>{M(Ee)},Te=()=>{const Ne=v[_];Ne&&Ne[1]===he&&delete v[_]},Oe={isValidating:!0};yo(O().data)&&(Oe.isLoading=!0);try{if(De&&(M(Oe),r.loadingTimeout&&yo(O().data)&&setTimeout(()=>{be&&Ae()&&T().onLoadingSlow(_,r)},r.loadingTimeout),v[_]=[me(S),Bie()]),[ve,he]=v[_],ve=await ve,De&&setTimeout(Te,r.dedupingInterval),!v[_]||v[_][1]!==he)return De&&Ae()&&T().onDiscarded(_),!1;Ee.error=tf;const Ne=g[_];if(!yo(Ne)&&(he<=Ne[0]||he<=Ne[1]||Ne[1]===0))return Re(),De&&Ae()&&T().onDiscarded(_),!1;const je=O().data;Ee.data=o(je,ve)?je:ve,De&&Ae()&&T().onSuccess(ve,_,r)}catch(Ne){Te();const je=T(),{shouldRetryOnError:ne}=je;je.isPaused()||(Ee.error=Ne,De&&Ae()&&(je.onError(Ne,_,je),(ne===!0||dm(ne)&&ne(Ne))&&R()&&je.onErrorRetry(Ne,_,je,J=>{const ae=h[_];ae&&ae[0]&&ae[0](hM.ERROR_REVALIDATE_EVENT,J)},{retryCount:(we.retryCount||0)+1,dedupe:!0})))}return be=!1,Re(),!0},[_,i]),de=m.useCallback((...pe)=>WGe(i,w.current,...pe),[]);if(_6(()=>{C.current=n,x.current=r,yo(K)||(Q.current=K)}),_6(()=>{if(!_)return;const pe=oe.bind(tf,kq);let me=0;const he=JXt(_,h,(be,we={})=>{if(be==hM.FOCUS_EVENT){const De=Date.now();T().revalidateOnFocus&&De>me&&R()&&(me=De+T().focusThrottleInterval,pe())}else if(be==hM.RECONNECT_EVENT)T().revalidateOnReconnect&&R()&&pe();else{if(be==hM.MUTATE_EVENT)return oe();if(be==hM.ERROR_REVALIDATE_EVENT)return oe(we)}});return E.current=!1,w.current=_,b.current=!0,M({_k:S}),Z&&(yo(H)||OA?pe():jXt(pe)),()=>{E.current=!0,he()}},[_]),_6(()=>{let pe;function me(){const he=dm(u)?u(O().data):u;he&&pe!==-1&&(pe=setTimeout(ve,he))}function ve(){!O().error&&(d||T().isVisible())&&(f||T().isOnline())?oe(kq).then(me):me()}return me(),()=>{pe&&(clearTimeout(pe),pe=-1)}},[u,d,f,_]),m.useDebugValue(le),a&&yo(H)&&_){if(!yxe&&OA)throw new Error("Fallback data is required when using suspense in SSR.");C.current=n,x.current=r,E.current=!1;const pe=y[_];if(!yo(pe)){const me=de(pe);Sxe(me)}if(yo(G)){const me=oe(kq);yo(le)||(me.status="fulfilled",me.value=!0),Sxe(me)}else throw G}return{mutate:de,get data(){return $.data=!0,le},get error(){return $.error=!0,G},get isValidating(){return $.isValidating=!0,F},get isLoading(){return $.isLoading=!0,te}}},tQt=y6.defineProperty(WXt,"defaultValue",{value:qGe}),ife=ZXt(eQt),nQt={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:"غلق"}},rQt={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"}},iQt={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"}},oQt={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"}},aQt={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"}},sQt={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"}},lQt={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"}},cQt={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:"نزدیک"}},uQt={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"}},dQt={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:"סגור"}},fQt={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"}},pQt={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"}},hQt={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"}},gQt={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:"閉じる"}},mQt={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:"가까 운"}},vQt={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:"Хаах"}},yQt={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"}},_Qt={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"}},bQt={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ć"}},SQt={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"}},EQt={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"}},CQt={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:"По адресу:"}},wQt={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ť"}},xQt={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:"Затворите"}},TQt={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"}},OQt={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:"ปิด"}},RQt={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"}},IQt={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:"Закрито"}},NQt={moneySymbol:"UZS",form:{lightFilter:{more:"Yana",clear:"Tozalash",confirm:"OK",itemUnit:"Pozitsiyalar"}},tableForm:{search:"Qidirish",reset:"Qayta tiklash",submit:"Yuborish",collapsed:"Yigish",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:"Ongga mahkamlash",noPin:"Mahkamlashni olib tashlash",leftFixedTitle:"Chapga mahkamlangan",rightFixedTitle:"Ongga mahkamlangan",noFixedTitle:"Mahkamlashsiz",reset:"Qayta tiklash",columnDisplay:"Ustunni korsatish",columnSetting:"Sozlamalar",fullScreen:"Toliq ekran",exitFullScreen:"Toliq ekrandan chiqish",reload:"Yangilash",density:"Olcham",densityDefault:"Standart",densityLarger:"Katta",densityMiddle:"Ortacha",densitySmall:"Kichik"},stepsForm:{next:"Keyingi",prev:"Oldingi",submit:"Tugatish"},loginForm:{submitText:"Kirish"},editableTable:{action:{save:"Saqlash",cancel:"Bekor qilish",delete:"Ochirish",add:"maʼlumotlar qatorini qoshish"}},switch:{open:"Ochish",close:"Yopish"}},MQt={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"}},PQt={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:"关闭"}},AQt={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 Eo=function(n,r){return{getMessage:function(o,a){var s=al(r,o.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(s)return s;var l=n.replace("_","-");if(l==="zh-CN")return a;var c=uC["zh-CN"];return c?c.getMessage(o,a):a},locale:n}},DQt=Eo("mn_MN",vQt),kQt=Eo("ar_EG",nQt),YT=Eo("zh_CN",PQt),LQt=Eo("en_US",sQt),$Qt=Eo("en_GB",aQt),FQt=Eo("vi_VN",MQt),BQt=Eo("it_IT",hQt),jQt=Eo("ja_JP",gQt),UQt=Eo("es_ES",lQt),HQt=Eo("ca_ES",rQt),zQt=Eo("ru_RU",CQt),VQt=Eo("sr_RS",xQt),GQt=Eo("ms_MY",yQt),WQt=Eo("zh_TW",AQt),YQt=Eo("fr_FR",uQt),qQt=Eo("pt_BR",SQt),KQt=Eo("ko_KR",mQt),XQt=Eo("id_ID",pQt),QQt=Eo("de_DE",oQt),ZQt=Eo("fa_IR",cQt),JQt=Eo("tr_TR",RQt),eZt=Eo("pl_PL",bQt),tZt=Eo("hr_",fQt),nZt=Eo("th_TH",OQt),rZt=Eo("cs_cz",iQt),iZt=Eo("sk_SK",wQt),oZt=Eo("he_IL",dQt),aZt=Eo("uk_UA",IQt),sZt=Eo("uz_UZ",NQt),lZt=Eo("nl_NL",_Qt),cZt=Eo("ro_RO",EQt),uZt=Eo("sv_SE",TQt),uC={"mn-MN":DQt,"ar-EG":kQt,"zh-CN":YT,"en-US":LQt,"en-GB":$Qt,"vi-VN":FQt,"it-IT":BQt,"ja-JP":jQt,"es-ES":UQt,"ca-ES":HQt,"ru-RU":zQt,"sr-RS":VQt,"ms-MY":GQt,"zh-TW":WQt,"fr-FR":YQt,"pt-BR":qQt,"ko-KR":KQt,"id-ID":XQt,"de-DE":QQt,"fa-IR":ZQt,"tr-TR":JQt,"pl-PL":eZt,"hr-HR":tZt,"th-TH":nZt,"cs-CZ":rZt,"sk-SK":iZt,"he-IL":oZt,"uk-UA":aZt,"uz-UZ":sZt,"nl-NL":lZt,"ro-RO":cZt,"sv-SE":uZt},dZt=Object.keys(uC),QGe=function(n){var r=(n||"zh-CN").toLocaleLowerCase();return dZt.find(function(i){var o=i.toLocaleLowerCase();return o.includes(r)})};function mc(e,n){fZt(e)&&(e="100%");var r=pZt(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function c4(e){return Math.min(1,Math.max(0,e))}function fZt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function pZt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function ZGe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function u4(e){return e<=1?"".concat(Number(e)*100,"%"):e}function l1(e){return e.length===1?"0"+e:String(e)}function hZt(e,n,r){return{r:mc(e,255)*255,g:mc(n,255)*255,b:mc(r,255)*255}}function Exe(e,n,r){e=mc(e,255),n=mc(n,255),r=mc(r,255);var i=Math.max(e,n,r),o=Math.min(e,n,r),a=0,s=0,l=(i+o)/2;if(i===o)s=0,a=0;else{var c=i-o;switch(s=l>.5?c/(2-i-o):c/(i+o),i){case e:a=(n-r)/c+(n<r?6:0);break;case n:a=(r-e)/c+2;break;case r:a=(e-n)/c+4;break}a/=6}return{h:a,s,l}}function Lq(e,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(n-e)*(6*r):r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}function gZt(e,n,r){var i,o,a;if(e=mc(e,360),n=mc(n,100),r=mc(r,100),n===0)o=r,a=r,i=r;else{var s=r<.5?r*(1+n):r+n-r*n,l=2*r-s;i=Lq(l,s,e+1/3),o=Lq(l,s,e),a=Lq(l,s,e-1/3)}return{r:i*255,g:o*255,b:a*255}}function Cxe(e,n,r){e=mc(e,255),n=mc(n,255),r=mc(r,255);var i=Math.max(e,n,r),o=Math.min(e,n,r),a=0,s=i,l=i-o,c=i===0?0:l/i;if(i===o)a=0;else{switch(i){case e:a=(n-r)/l+(n<r?6:0);break;case n:a=(r-e)/l+2;break;case r:a=(e-n)/l+4;break}a/=6}return{h:a,s:c,v:s}}function mZt(e,n,r){e=mc(e,360)*6,n=mc(n,100),r=mc(r,100);var i=Math.floor(e),o=e-i,a=r*(1-n),s=r*(1-o*n),l=r*(1-(1-o)*n),c=i%6,u=[r,s,a,a,l,r][c],d=[l,r,r,s,a,a][c],f=[a,a,l,r,r,s][c];return{r:u*255,g:d*255,b:f*255}}function wxe(e,n,r,i){var o=[l1(Math.round(e).toString(16)),l1(Math.round(n).toString(16)),l1(Math.round(r).toString(16))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function vZt(e,n,r,i,o){var a=[l1(Math.round(e).toString(16)),l1(Math.round(n).toString(16)),l1(Math.round(r).toString(16)),l1(yZt(i))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function yZt(e){return Math.round(parseFloat(e)*255).toString(16)}function xxe(e){return Hd(e)/255}function Hd(e){return parseInt(e,16)}function _Zt(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Uie={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 bZt(e){var n={r:0,g:0,b:0},r=1,i=null,o=null,a=null,s=!1,l=!1;return typeof e=="string"&&(e=CZt(e)),typeof e=="object"&&(Ov(e.r)&&Ov(e.g)&&Ov(e.b)?(n=hZt(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ov(e.h)&&Ov(e.s)&&Ov(e.v)?(i=u4(e.s),o=u4(e.v),n=mZt(e.h,i,o),s=!0,l="hsv"):Ov(e.h)&&Ov(e.s)&&Ov(e.l)&&(i=u4(e.s),a=u4(e.l),n=gZt(e.h,i,a),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=ZGe(r),{ok:s,format:e.format||l,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}var SZt="[-\\+]?\\d+%?",EZt="[-\\+]?\\d*\\.\\d+%?",zb="(?:".concat(EZt,")|(?:").concat(SZt,")"),$q="[\\s|\\(]+(".concat(zb,")[,|\\s]+(").concat(zb,")[,|\\s]+(").concat(zb,")\\s*\\)?"),Fq="[\\s|\\(]+(".concat(zb,")[,|\\s]+(").concat(zb,")[,|\\s]+(").concat(zb,")[,|\\s]+(").concat(zb,")\\s*\\)?"),gh={CSS_UNIT:new RegExp(zb),rgb:new RegExp("rgb"+$q),rgba:new RegExp("rgba"+Fq),hsl:new RegExp("hsl"+$q),hsla:new RegExp("hsla"+Fq),hsv:new RegExp("hsv"+$q),hsva:new RegExp("hsva"+Fq),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 CZt(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(Uie[e])e=Uie[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=gh.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=gh.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=gh.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=gh.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=gh.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=gh.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=gh.hex8.exec(e),r?{r:Hd(r[1]),g:Hd(r[2]),b:Hd(r[3]),a:xxe(r[4]),format:n?"name":"hex8"}:(r=gh.hex6.exec(e),r?{r:Hd(r[1]),g:Hd(r[2]),b:Hd(r[3]),format:n?"name":"hex"}:(r=gh.hex4.exec(e),r?{r:Hd(r[1]+r[1]),g:Hd(r[2]+r[2]),b:Hd(r[3]+r[3]),a:xxe(r[4]+r[4]),format:n?"name":"hex8"}:(r=gh.hex3.exec(e),r?{r:Hd(r[1]+r[1]),g:Hd(r[2]+r[2]),b:Hd(r[3]+r[3]),format:n?"name":"hex"}:!1)))))))))}function Ov(e){return!!gh.CSS_UNIT.exec(String(e))}var wZt=function(){function e(n,r){n===void 0&&(n=""),r===void 0&&(r={});var i;if(n instanceof e)return n;typeof n=="number"&&(n=_Zt(n)),this.originalInput=n;var o=bZt(n);this.originalInput=n,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=r.format)!==null&&i!==void 0?i:o.format,this.gradientType=r.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=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},e.prototype.getLuminance=function(){var n=this.toRgb(),r,i,o,a=n.r/255,s=n.g/255,l=n.b/255;return 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),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*r+.7152*i+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(n){return this.a=ZGe(n),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var n=this.toHsl().s;return n===0},e.prototype.toHsv=function(){var n=Cxe(this.r,this.g,this.b);return{h:n.h*360,s:n.s,v:n.v,a:this.a}},e.prototype.toHsvString=function(){var n=Cxe(this.r,this.g,this.b),r=Math.round(n.h*360),i=Math.round(n.s*100),o=Math.round(n.v*100);return this.a===1?"hsv(".concat(r,", ").concat(i,"%, ").concat(o,"%)"):"hsva(".concat(r,", ").concat(i,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var n=Exe(this.r,this.g,this.b);return{h:n.h*360,s:n.s,l:n.l,a:this.a}},e.prototype.toHslString=function(){var n=Exe(this.r,this.g,this.b),r=Math.round(n.h*360),i=Math.round(n.s*100),o=Math.round(n.l*100);return this.a===1?"hsl(".concat(r,", ").concat(i,"%, ").concat(o,"%)"):"hsla(".concat(r,", ").concat(i,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(n){return n===void 0&&(n=!1),wxe(this.r,this.g,this.b,n)},e.prototype.toHexString=function(n){return n===void 0&&(n=!1),"#"+this.toHex(n)},e.prototype.toHex8=function(n){return n===void 0&&(n=!1),vZt(this.r,this.g,this.b,this.a,n)},e.prototype.toHex8String=function(n){return n===void 0&&(n=!1),"#"+this.toHex8(n)},e.prototype.toHexShortString=function(n){return n===void 0&&(n=!1),this.a===1?this.toHexString(n):this.toHex8String(n)},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 n=Math.round(this.r),r=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(n,", ").concat(r,", ").concat(i,")"):"rgba(".concat(n,", ").concat(r,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var n=function(r){return"".concat(Math.round(mc(r,255)*100),"%")};return{r:n(this.r),g:n(this.g),b:n(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var n=function(r){return Math.round(mc(r,255)*100)};return this.a===1?"rgb(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%)"):"rgba(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var n="#"+wxe(this.r,this.g,this.b,!1),r=0,i=Object.entries(Uie);r<i.length;r++){var o=i[r],a=o[0],s=o[1];if(n===s)return a}return!1},e.prototype.toString=function(n){var r=!!n;n=n??this.format;var i=!1,o=this.a<1&&this.a>=0,a=!r&&o&&(n.startsWith("hex")||n==="name");return a?n==="name"&&this.a===0?this.toName():this.toRgbString():(n==="rgb"&&(i=this.toRgbString()),n==="prgb"&&(i=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(i=this.toHexString()),n==="hex3"&&(i=this.toHexString(!0)),n==="hex4"&&(i=this.toHex8String(!0)),n==="hex8"&&(i=this.toHex8String()),n==="name"&&(i=this.toName()),n==="hsl"&&(i=this.toHslString()),n==="hsv"&&(i=this.toHsvString()),i||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(n){n===void 0&&(n=10);var r=this.toHsl();return r.l+=n/100,r.l=c4(r.l),new e(r)},e.prototype.brighten=function(n){n===void 0&&(n=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(n/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(n/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(n/100)))),new e(r)},e.prototype.darken=function(n){n===void 0&&(n=10);var r=this.toHsl();return r.l-=n/100,r.l=c4(r.l),new e(r)},e.prototype.tint=function(n){return n===void 0&&(n=10),this.mix("white",n)},e.prototype.shade=function(n){return n===void 0&&(n=10),this.mix("black",n)},e.prototype.desaturate=function(n){n===void 0&&(n=10);var r=this.toHsl();return r.s-=n/100,r.s=c4(r.s),new e(r)},e.prototype.saturate=function(n){n===void 0&&(n=10);var r=this.toHsl();return r.s+=n/100,r.s=c4(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(n){var r=this.toHsl(),i=(r.h+n)%360;return r.h=i<0?360+i:i,new e(r)},e.prototype.mix=function(n,r){r===void 0&&(r=50);var i=this.toRgb(),o=new e(n).toRgb(),a=r/100,s={r:(o.r-i.r)*a+i.r,g:(o.g-i.g)*a+i.g,b:(o.b-i.b)*a+i.b,a:(o.a-i.a)*a+i.a};return new e(s)},e.prototype.analogous=function(n,r){n===void 0&&(n=6),r===void 0&&(r=30);var i=this.toHsl(),o=360/r,a=[this];for(i.h=(i.h-(o*n>>1)+720)%360;--n;)i.h=(i.h+o)%360,a.push(new e(i));return a},e.prototype.complement=function(){var n=this.toHsl();return n.h=(n.h+180)%360,new e(n)},e.prototype.monochromatic=function(n){n===void 0&&(n=6);for(var r=this.toHsv(),i=r.h,o=r.s,a=r.v,s=[],l=1/n;n--;)s.push(new e({h:i,s:o,v:a})),a=(a+l)%1;return s},e.prototype.splitcomplement=function(){var n=this.toHsl(),r=n.h;return[this,new e({h:(r+72)%360,s:n.s,l:n.l}),new e({h:(r+216)%360,s:n.s,l:n.l})]},e.prototype.onBackground=function(n){var r=this.toRgb(),i=new e(n).toRgb(),o=r.a+i.a*(1-r.a);return new e({r:(r.r*r.a+i.r*i.a*(1-r.a))/o,g:(r.g*r.a+i.g*i.a*(1-r.a))/o,b:(r.b*r.a+i.b*i.a*(1-r.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(n){for(var r=this.toHsl(),i=r.h,o=[this],a=360/n,s=1;s<n;s++)o.push(new e({h:(i+s*a)%360,s:r.s,l:r.l}));return o},e.prototype.equals=function(n){return this.toRgbString()===new e(n).toRgbString()},e}(),Bq,RA={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"},JGe=function(n){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,i=3735928559^r,o=1103547991^r,a=0,s;a<n.length;a++)s=n.charCodeAt(a),i=Math.imul(i^s,2654435761),o=Math.imul(o^s,1597334677);return i=Math.imul(i^i>>>16,2246822507)^Math.imul(o^o>>>13,3266489909),o=Math.imul(o^o>>>16,2246822507)^Math.imul(i^i>>>13,3266489909),4294967296*(2097151&o)+(i>>>0)},ofe=eC(function(e){return e}),eWe={theme:ofe,token:ee(ee({},RA),cu==null||(Bq=cu.defaultAlgorithm)===null||Bq===void 0?void 0:Bq.call(cu,cu==null?void 0:cu.defaultSeed)),hashId:"pro-".concat(JGe(JSON.stringify(RA)))},xZt=function(){return eWe};const TZt=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:RA,emptyTheme:ofe,hashCode:JGe,token:eWe,useToken:xZt},Symbol.toStringTag,{value:"Module"}));var zd=function(n,r){return new wZt(n).setAlpha(r).toRgbString()},OZt=function(){return typeof cu>"u"||!cu?TZt:cu},Am=OZt(),b6=Am.useToken,jq=function(n){return{boxSizing:"border-box",margin:0,padding:0,color:n.colorText,fontSize:n.fontSize,lineHeight:n.lineHeight,listStyle:"none"}};function ia(e,n){var r,i=m.useContext(Wh),o=i.token,a=o===void 0?{}:o,s=m.useContext(Wh),l=s.hashed,c=b6(),u=c.token,d=c.hashId,f=m.useContext(Wh),p=f.theme,h=m.useContext(or.ConfigContext),g=h.getPrefixCls,v=h.csp;return a.layout||(a=ee({},u)),a.proComponentsCls=(r=a.proComponentsCls)!==null&&r!==void 0?r:".".concat(g("pro")),a.antCls=".".concat(g()),{wrapSSR:uA({theme:p,token:a,path:[e],nonce:v==null?void 0:v.nonce,layer:{name:"antd-pro",dependencies:["antd"]}},function(){return n(a)}),hashId:l?d:""}}var RZt=function(n,r){var i,o,a,s,l,c=ee({},n);return ee(ee({bgLayout:"linear-gradient(".concat(r.colorBgContainer,", ").concat(r.colorBgLayout," 28%)"),colorTextAppListIcon:r.colorTextSecondary,appListIconHoverBgColor:c==null||(i=c.sider)===null||i===void 0?void 0:i.colorBgMenuItemSelected,colorBgAppListIconHover:zd(r.colorTextBase,.04),colorTextAppListIconHover:r.colorTextBase},c),{},{header:ee({colorBgHeader:zd(r.colorBgElevated,.6),colorBgScrollHeader:zd(r.colorBgElevated,.8),colorHeaderTitle:r.colorText,colorBgMenuItemHover:zd(r.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(c==null||(o=c.header)===null||o===void 0?void 0:o.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(a=c.header)===null||a===void 0?void 0:a.colorBgHeader:r.colorBgElevated,colorTextMenuSelected:zd(r.colorTextBase,.95),colorBgRightActionsItemHover:zd(r.colorTextBase,.03),colorTextRightActionsItem:r.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:r.colorTextSecondary,colorTextMenuSecondary:r.colorTextTertiary,colorTextMenuTitle:r.colorText,colorTextMenuActive:r.colorText},c.header),sider:ee({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:r.colorBgElevated,colorTextCollapsedButtonHover:r.colorTextSecondary,colorTextCollapsedButton:zd(r.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:zd(r.colorTextBase,.06),colorBgMenuItemHover:zd(r.colorTextBase,.03),colorBgMenuItemSelected:zd(r.colorTextBase,.04),colorTextMenuItemHover:r.colorText,colorTextMenuSelected:zd(r.colorTextBase,.95),colorTextMenuActive:r.colorText,colorTextMenu:r.colorTextSecondary,colorTextMenuSecondary:r.colorTextTertiary,colorTextMenuTitle:r.colorText,colorTextSubMenuSelected:zd(r.colorTextBase,.95)},c.sider),pageContainer:ee({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((s=c.pageContainer)===null||s===void 0?void 0:s.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((l=c.pageContainer)===null||l===void 0?void 0:l.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:r.colorBgElevated},c.pageContainer)})},IZt=function(){for(var n={},r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];for(var a=i.length,s,l=0;l<a;l+=1)for(s in i[l])i[l].hasOwnProperty(s)&&(cn(n[s])==="object"&&cn(i[l][s])==="object"&&n[s]!==void 0&&n[s]!==null&&!Array.isArray(n[s])&&!Array.isArray(i[l][s])?n[s]=ee(ee({},n[s]),i[l][s]):n[s]=i[l][s]);return n},NZt={exports:{}};(function(e,n){(function(r,i){e.exports=i(eHe)})(oo,function(r){function i(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=i(r),a={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(s,l){return l==="W"?s+"周":s+"日"},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(s,l){var c=100*s+l;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return o.default.locale(a,null,!0),a})})(NZt);var MZt=["locale","getPrefixCls"],PZt=["locale","theme"],AZt=function(n){var r={};if(Object.keys(n||{}).forEach(function(i){n[i]!==void 0&&(r[i]=n[i])}),!(Object.keys(r).length<1))return r},qT=function(){var n,r;return!(typeof process<"u"&&(((n="production")===null||n===void 0?void 0:n.toUpperCase())==="TEST"||((r="production")===null||r===void 0?void 0:r.toUpperCase())==="DEV"))},R0=V.createContext({intl:ee(ee({},YT),{},{locale:"default"}),valueTypeMap:{},theme:ofe,hashed:!0,dark:!1,token:RA});R0.Consumer;var DZt=function(){var n=rfe(),r=n.cache;return m.useEffect(function(){return function(){r.clear()}},[]),null},kZt=function(n){var r,i=n.children,o=n.dark,a=n.valueTypeMap,s=n.autoClearCache,l=s===void 0?!1:s,c=n.token,u=n.prefixCls,d=n.intl,f=m.useContext(or.ConfigContext),p=f.locale,h=f.getPrefixCls,g=Xt(f,MZt),v=(r=Am.useToken)===null||r===void 0?void 0:r.call(Am),y=m.useContext(R0),_=u?".".concat(u):".".concat(h(),"-pro"),S="."+h(),b="".concat(_),E=m.useMemo(function(){return RZt(c||{},v.token||RA)},[c,v.token]),w=m.useMemo(function(){var z,D=p==null?void 0:p.locale,B=QGe(D),Y=d??(D&&((z=y.intl)===null||z===void 0?void 0:z.locale)==="default"?uC[B]:y.intl||uC[B]);return ee(ee({},y),{},{dark:o??y.dark,token:IZt(y.token,v.token,{proComponentsCls:_,antCls:S,themeId:v.theme.id,layout:E}),intl:Y||YT})},[p==null?void 0:p.locale,y,o,v.token,v.theme.id,_,S,E,d]),C=ee(ee({},w.token||{}),{},{proComponentsCls:_}),x=due(v.theme,[v.token,C??{}],{salt:b,override:C}),T=ke(x,2),R=T[0],O=T[1],M=m.useMemo(function(){return!(n.hashed===!1||y.hashed===!1)},[y.hashed,n.hashed]),P=m.useMemo(function(){return n.hashed===!1||y.hashed===!1||qT()===!1?"":v.hashId?v.hashId:O},[O,y.hashed,n.hashed]);m.useEffect(function(){Zr.locale((p==null?void 0:p.locale)||"zh-cn")},[p==null?void 0:p.locale]);var k=m.useMemo(function(){return ee(ee({},g.theme),{},{hashId:P,hashed:M&&qT()})},[g.theme,P,M,qT()]),$=m.useMemo(function(){return ee(ee({},w),{},{valueTypeMap:a||(w==null?void 0:w.valueTypeMap),token:R,theme:v.theme,hashed:M,hashId:P})},[w,a,R,v.theme,M,P]),U=m.useMemo(function(){return N.jsx(or,ee(ee({},g),{},{theme:k,children:N.jsx(R0.Provider,{value:$,children:N.jsxs(N.Fragment,{children:[l&&N.jsx(DZt,{}),i]})})}))},[g,k,$,l,i]);return l?N.jsx(tQt,{value:{provider:function(){return new Map}},children:U}):U},kU=function(n){var r=n.needDeps,i=n.dark,o=n.token,a=m.useContext(R0),s=m.useContext(or.ConfigContext),l=s.locale,c=s.theme,u=Xt(s,PZt),d=r&&a.hashId!==void 0&&Object.keys(n).sort().join("-")==="children-needDeps";if(d)return N.jsx(N.Fragment,{children:n.children});var f=function(){var g=i??a.dark;return g&&!Array.isArray(c==null?void 0:c.algorithm)?[Am.darkAlgorithm,c==null?void 0:c.algorithm].filter(Boolean):g&&Array.isArray(c==null?void 0:c.algorithm)?[Am.darkAlgorithm].concat(Tt((c==null?void 0:c.algorithm)||[])).filter(Boolean):c==null?void 0:c.algorithm},p=ee(ee({},u),{},{locale:l||NXt,theme:AZt(ee(ee({},c),{},{algorithm:f()}))});return N.jsx(or,ee(ee({},p),{},{children:N.jsx(kZt,ee(ee({},n),{},{token:o}))}))};function cs(){var e=m.useContext(or.ConfigContext),n=e.locale,r=m.useContext(R0),i=r.intl;return i&&i.locale!=="default"?i||YT:n!=null&&n.locale&&uC[QGe(n.locale)]||YT}R0.displayName="ProProvider";var Wh=R0,LZt=function(n){return fe({},n.componentCls,{display:"flex",justifyContent:"space-between",paddingBlock:8,paddingInlineStart:8,paddingInlineEnd:8,borderBlockStart:"1px solid ".concat(n.colorSplit)})};function $Zt(e){return ia("DropdownFooter",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[LZt(r)]})}var FZt=function(n){var r=cs(),i=n.onClear,o=n.onConfirm,a=n.disabled,s=n.footerRender,l=m.useContext(or.ConfigContext),c=l.getPrefixCls,u=c("pro-core-dropdown-footer"),d=$Zt(u),f=d.wrapSSR,p=d.hashId,h=[N.jsx(qn,{style:{visibility:i?"visible":"hidden"},type:"link",size:"small",disabled:a,onClick:function(y){i&&i(y),y.stopPropagation()},children:r.getMessage("form.lightFilter.clear","清除")},"clear"),N.jsx(qn,{"data-type":"confirm",type:"primary",size:"small",onClick:o,disabled:a,children:r.getMessage("form.lightFilter.confirm","确认")},"confirm")];if(s===!1||(s==null?void 0:s(o,i))===!1)return null;var g=(s==null?void 0:s(o,i))||h;return f(N.jsx("div",{className:Ce(u,p),onClick:function(y){return y.target.getAttribute("data-type")!=="confirm"&&y.stopPropagation()},children:g}))},BZt=function(e){Kc(r,e);var n=Nu(r);function r(){var i;Ki(this,r);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return i=n.call.apply(n,[this].concat(a)),fe(Tn(i),"state",{hasError:!1,errorInfo:""}),i}return Xi(r,[{key:"componentDidCatch",value:function(o,a){console.log(o,a)}},{key:"render",value:function(){return this.state.hasError?N.jsx(Nk,{status:"error",title:"Something went wrong.",extra:this.state.errorInfo}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(o){return{hasError:!0,errorInfo:o.message}}}]),r}(V.Component),jZt=function(n){return fe({},n.componentCls,fe(fe(fe(fe(fe(fe(fe(fe({display:"inline-flex",gap:n.marginXXS,alignItems:"center",height:"30px",paddingBlock:0,paddingInline:8,fontSize:n.fontSize,lineHeight:"30px",borderRadius:"2px",cursor:"pointer","&:hover":{backgroundColor:n.colorBgTextHover},"&-active":fe({paddingBlock:0,paddingInline:8,backgroundColor:n.colorBgTextHover},"&".concat(n.componentCls,"-allow-clear:hover:not(").concat(n.componentCls,"-disabled)"),fe(fe({},"".concat(n.componentCls,"-arrow"),{display:"none"}),"".concat(n.componentCls,"-close"),{display:"inline-flex"}))},"".concat(n.antCls,"-select"),fe({},"".concat(n.antCls,"-select-clear"),{borderRadius:"50%"})),"".concat(n.antCls,"-picker"),fe({},"".concat(n.antCls,"-picker-clear"),{borderRadius:"50%"})),"&-icon",fe(fe({color:n.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},"&".concat(n.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:n.colorTextPlaceholder,borderRadius:"50%"}),"&:hover",{color:n.colorIconHover})),"&-disabled",fe({color:n.colorTextPlaceholder,cursor:"not-allowed"},"".concat(n.componentCls,"-icon"),{color:n.colorTextPlaceholder})),"&-small",fe(fe(fe({height:"24px",paddingBlock:0,paddingInline:4,fontSize:n.fontSizeSM,lineHeight:"24px"},"&".concat(n.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),"".concat(n.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),"".concat(n.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"})),"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(n.lineWidth,"px solid ").concat(n.colorBorder),borderRadius:"@border-radius-base"}),"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),"&-bordered&-active",{backgroundColor:n.colorBgContainer}))};function UZt(e){return ia("FieldLabel",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[jZt(r)]})}var HZt=function(n,r){var i,o,a,s=n.label,l=n.onClear,c=n.value,u=n.disabled,d=n.onLabelClick,f=n.ellipsis,p=n.placeholder,h=n.className,g=n.formatter,v=n.bordered,y=n.style,_=n.downIcon,S=n.allowClear,b=S===void 0?!0:S,E=n.valueMaxLength,w=E===void 0?41:E,C=(or==null||(i=or.useConfig)===null||i===void 0?void 0:i.call(or))||{componentSize:"middle"},x=C.componentSize,T=x,R=m.useContext(or.ConfigContext),O=R.getPrefixCls,M=O("pro-core-field-label"),P=UZt(M),k=P.wrapSSR,$=P.hashId,U=cs(),z=m.useRef(null),D=m.useRef(null);m.useImperativeHandle(r,function(){return{labelRef:D,clearRef:z}});var B=function(H){return H.every(function(G){return typeof G=="string"})?H.join(","):H.map(function(G,Q){var le=Q===H.length-1?"":",";return typeof G=="string"?N.jsxs("span",{children:[G,le]},Q):N.jsxs("span",{style:{display:"flex"},children:[G,le]},Q)})},Y=function(H){return g?g(H):Array.isArray(H)?B(H):H},q=function(H,G){if(G!=null&&G!==""&&(!Array.isArray(G)||G.length)){var Q,le,Z=H?N.jsxs("span",{onClick:function(){d==null||d()},className:"".concat(M,"-text"),children:[H,": "]}):"",j=Y(G);if(!f)return N.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[Z,Y(G)]});var F=function(){var de=Array.isArray(G)&&G.length>1,pe=U.getMessage("form.lightFilter.itemUnit","项");return typeof j=="string"&&j.length>w&&de?"...".concat(G.length).concat(pe):""},te=F();return N.jsxs("span",{title:typeof j=="string"?j:void 0,style:{display:"inline-flex",alignItems:"center"},children:[Z,N.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof j=="string"?j==null||(Q=j.toString())===null||Q===void 0||(le=Q.slice)===null||le===void 0?void 0:le.call(Q,0,w):j}),te]})}return H||p};return k(N.jsxs("span",{className:Ce(M,$,"".concat(M,"-").concat((o=(a=n.size)!==null&&a!==void 0?a:T)!==null&&o!==void 0?o:"middle"),fe(fe(fe(fe({},"".concat(M,"-active"),(Array.isArray(c)?c.length>0:!!c)||c===0),"".concat(M,"-disabled"),u),"".concat(M,"-bordered"),v),"".concat(M,"-allow-clear"),b),h),style:y,ref:D,onClick:function(){var H;n==null||(H=n.onClick)===null||H===void 0||H.call(n)},children:[q(s,c),(c||c===0)&&b&&N.jsx(tv,{role:"button",title:U.getMessage("form.lightFilter.clear","清除"),className:Ce("".concat(M,"-icon"),$,"".concat(M,"-close")),onClick:function(H){u||l==null||l(),H.stopPropagation()},ref:z}),_!==!1?_??N.jsx(lI,{className:Ce("".concat(M,"-icon"),$,"".concat(M,"-arrow"))}):null]}))},i_=V.forwardRef(HZt),pp=function(n){var r={};if(Object.keys(n||{}).forEach(function(i){n[i]!==void 0&&(r[i]=n[i])}),!(Object.keys(r).length<1))return r},zZt=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Txe=function(n){return n==="*"||n==="x"||n==="X"},Oxe=function(n){var r=parseInt(n,10);return isNaN(r)?n:r},VZt=function(n,r){return cn(n)!==cn(r)?[String(n),String(r)]:[n,r]},GZt=function(n,r){if(Txe(n)||Txe(r))return 0;var i=VZt(Oxe(n),Oxe(r)),o=ke(i,2),a=o[0],s=o[1];return a>s?1:a<s?-1:0},WZt=function(n,r){for(var i=0;i<Math.max(n.length,r.length);i++){var o=GZt(n[i]||"0",r[i]||"0");if(o!==0)return o}return 0},Rxe=function(n){var r,i=n.match(zZt);return i==null||(r=i.shift)===null||r===void 0||r.call(i),i},Pk=function(n,r){var i=Rxe(n),o=Rxe(r),a=i.pop(),s=o.pop(),l=WZt(i,o);return l!==0?l:a||s?a?-1:1:0},tWe=function(){var n;return typeof process>"u"?Ny:((n=process)===null||n===void 0||(n=n.env)===null||n===void 0?void 0:n.ANTD_VERSION)||Ny},LU=function(n,r){var i=Pk(tWe(),"4.23.0")>-1?{open:n,onOpenChange:r}:{visible:n,onVisibleChange:r};return pp(i)},YZt=function(n){return fe(fe(fe({},"".concat(n.componentCls,"-label"),{cursor:"pointer"}),"".concat(n.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(n.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function qZt(e){return ia("FilterDropdown",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[YZt(r)]})}var KZt=function(n){var r=n.children,i=n.label,o=n.footer,a=n.open,s=n.onOpenChange,l=n.disabled,c=n.onVisibleChange,u=n.visible,d=n.footerRender,f=n.placement,p=m.useContext(or.ConfigContext),h=p.getPrefixCls,g=h("pro-core-field-dropdown"),v=qZt(g),y=v.wrapSSR,_=v.hashId,S=LU(a||u||!1,s||c),b=m.useRef(null);return y(N.jsx(Ip,ee(ee({placement:f,trigger:["click"]},S),{},{overlayInnerStyle:{padding:0},content:N.jsxs("div",{ref:b,className:Ce("".concat(g,"-overlay"),fe(fe({},"".concat(g,"-overlay-").concat(f),f),"hashId",_)),children:[N.jsx(or,{getPopupContainer:function(){return b.current||document.body},children:N.jsx("div",{className:"".concat(g,"-content ").concat(_).trim(),children:r})}),o&&N.jsx(FZt,ee({disabled:l,footerRender:d},o))]}),children:N.jsx("span",{className:"".concat(g,"-label ").concat(_).trim(),children:i})})))},XZt=function(n){return fe({},n.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:n.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:n.colorTextSecondary,fontWeight:"normal",fontSize:n.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function QZt(e){return ia("LabelIconTip",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[XZt(r)]})}var ZZt=V.memo(function(e){var n=e.label,r=e.tooltip,i=e.ellipsis,o=e.subTitle,a=m.useContext(or.ConfigContext),s=a.getPrefixCls,l=s("pro-core-label-tip"),c=QZt(l),u=c.wrapSSR,d=c.hashId;if(!r&&!o)return N.jsx(N.Fragment,{children:n});var f=typeof r=="string"||V.isValidElement(r)?{title:r}:r,p=(f==null?void 0:f.icon)||N.jsx(fVt,{});return u(N.jsxs("div",{className:Ce(l,d),onMouseDown:function(g){return g.stopPropagation()},onMouseLeave:function(g){return g.stopPropagation()},onMouseMove:function(g){return g.stopPropagation()},children:[N.jsx("div",{className:Ce("".concat(l,"-title"),d,fe({},"".concat(l,"-title-ellipsis"),i)),children:n}),o&&N.jsx("div",{className:"".concat(l,"-subtitle ").concat(d).trim(),children:o}),r&&N.jsx(Ef,ee(ee({},f),{},{children:N.jsx("span",{className:"".concat(l,"-icon ").concat(d).trim(),children:p})}))]}))}),nWe=V.createContext({}),rWe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){var r="month",i="quarter";return function(o,a){var s=a.prototype;s.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=s.add;s.add=function(u,d){return u=Number(u),this.$utils().p(d)===i?this.add(3*u,r):l.bind(this)(u,d)};var c=s.startOf;s.startOf=function(u,d){var f=this.$utils(),p=!!f.u(d)||d;if(f.p(u)===i){var h=this.quarter()-1;return p?this.month(3*h).startOf(r).startOf("day"):this.month(3*h+2).endOf(r).endOf("day")}return c.bind(this)(u,d)}}})})(rWe);var JZt=rWe.exports;const eJt=Or(JZt);var dC=function(n){return n==null};Zr.extend(eJt);var iWe={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 Ixe(e){return Object.prototype.toString.call(e)==="[object Object]"}function tJt(e){if(Ixe(e)===!1)return!1;var n=e.constructor;if(n===void 0)return!0;var r=n.prototype;return!(Ixe(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)}var Hie=function(n){return!!(n!=null&&n._isAMomentObject)},Nxe=function(n,r,i){if(!r)return n;if(Zr.isDayjs(n)||Hie(n)){if(r==="number")return n.valueOf();if(r==="string")return n.format(iWe[i]||"YYYY-MM-DD HH:mm:ss");if(typeof r=="string"&&r!=="string")return n.format(r);if(typeof r=="function")return r(n,i)}return n},nJt=function e(n,r,i,o,a){var s={};return typeof window>"u"||cn(n)!=="object"||dC(n)||n instanceof Blob||Array.isArray(n)?n:(Object.keys(n).forEach(function(l){var c=a?[a,l].flat(1):[l],u=al(i,c)||"text",d="text",f;typeof u=="string"?d=u:u&&(d=u.valueType,f=u.dateFormat);var p=n[l];if(!(dC(p)&&o)){if(tJt(p)&&!Array.isArray(p)&&!Zr.isDayjs(p)&&!Hie(p)){s[l]=e(p,r,i,o,c);return}if(Array.isArray(p)){s[l]=p.map(function(h,g){return Zr.isDayjs(h)||Hie(h)?Nxe(h,f||r,d):e(h,r,i,o,[l,"".concat(g)].flat(1))});return}s[l]=Nxe(p,f||r,d)}}),s)},Mxe=function(n,r){return typeof r=="function"?r(Zr(n)):Zr(n).format(r)},rJt=function(n,r){var i=Array.isArray(n)?n:[],o=ke(i,2),a=o[0],s=o[1],l,c;Array.isArray(r)?(l=r[0],c=r[1]):cn(r)==="object"&&r.type==="mask"?(l=r.format,c=r.format):(l=r,c=r);var u=a?Mxe(a,l):"",d=s?Mxe(s,c):"",f=u&&d?"".concat(u," ~ ").concat(d):"";return f};function fC(e){if(typeof e=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.apply(void 0,r)}return e}function oWe(e){if(Pk(tWe(),"5.6.0")<0)return e;var n={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"},r=ee({},e);return Object.keys(n).forEach(function(i){r[i]!==void 0&&(r[n[i]]=r[i],delete r[i])}),r}var Yh=function(n){var r=m.useRef(null);return r.current=n,m.useCallback(function(){for(var i,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(i=r.current)===null||i===void 0?void 0:i.call.apply(i,[r].concat(Tt(a)))},[])};function iJt(e,n){var r=Yh(e),i=m.useRef(),o=m.useCallback(function(){i.current&&(clearTimeout(i.current),i.current=null)},[]),a=m.useCallback(Ss(ri().mark(function s(){var l,c,u,d=arguments;return ri().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:for(l=d.length,c=new Array(l),u=0;u<l;u++)c[u]=d[u];{p.next=3;break}case 3:return o(),p.abrupt("return",new Promise(function(h){i.current=setTimeout(Ss(ri().mark(function g(){return ri().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.t0=h,y.next=3,r.apply(void 0,c);case 3:return y.t1=y.sent,(0,y.t0)(y.t1),y.abrupt("return");case 6:case"end":return y.stop()}},g)})),n)}));case 5:case"end":return p.stop()}},s)})),[r,o,n]);return m.useEffect(function(){return o},[o]),{run:a,cancel:o}}var oJt=function(n){var r=m.useRef(n);return r.current=n,r};function aJt(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,r=arguments.length>2?arguments[2]:void 0,i=m.useState(e),o=ke(i,2),a=o[0],s=o[1],l=oJt(e);return m.useEffect(function(){var c=setTimeout(function(){s(l.current)},n);return function(){return clearTimeout(c)}},r?[n].concat(Tt(r)):void 0),a}function A1(e,n,r,i){if(e===n)return!0;if(e&&n&&cn(e)==="object"&&cn(n)==="object"){if(e.constructor!==n.constructor)return!1;var o,a,s;if(Array.isArray(e)){if(o=e.length,o!=n.length)return!1;for(a=o;a--!==0;)if(!A1(e[a],n[a],r,i))return!1;return!0}if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;var l=cm(e.entries()),c;try{for(l.s();!(c=l.n()).done;)if(a=c.value,!n.has(a[0]))return!1}catch(g){l.e(g)}finally{l.f()}var u=cm(e.entries()),d;try{for(u.s();!(d=u.n()).done;)if(a=d.value,!A1(a[1],n.get(a[0]),r,i))return!1}catch(g){u.e(g)}finally{u.f()}return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;var f=cm(e.entries()),p;try{for(f.s();!(p=f.n()).done;)if(a=p.value,!n.has(a[0]))return!1}catch(g){f.e(g)}finally{f.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(o=e.length,o!=n.length)return!1;for(a=o;a--!==0;)if(e[a]!==n[a])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===n.toString();if(s=Object.keys(e),o=s.length,o!==Object.keys(n).length)return!1;for(a=o;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[a]))return!1;for(a=o;a--!==0;){var h=s[a];if(!(r!=null&&r.includes(h))&&!(h==="_owner"&&e.$$typeof)&&!A1(e[h],n[h],r,i))return!1}return!0}return e!==e&&n!==n}var sJt=function(n,r,i){return A1(n,r,i)};function aWe(e,n){var r=m.useRef();return sJt(e,r.current,n)||(r.current=e),r.current}function lJt(e,n,r){m.useEffect(e,aWe(n||[],r))}function Qu(e,n){return V.useMemo(e,aWe(n))}var cJt=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,afe=function(){return typeof process<"u",typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!cJt};function uJt(e,n){var r=typeof e.pageName=="string"?e.title:n;m.useEffect(function(){afe()&&r&&(document.title=r)},[e.title,r])}var Uq=0;function dJt(e){var n=m.useRef(null),r=m.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(Uq+=1,Uq.toString())}),i=ke(r,1),o=i[0],a=m.useRef(o),s=function(){var d=Ss(ri().mark(function f(){var p,h,g,v;return ri().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return(p=n.current)===null||p===void 0||p.abort(),g=new AbortController,n.current=g,_.next=5,Promise.race([(h=e.request)===null||h===void 0?void 0:h.call(e,e.params,e),new Promise(function(S,b){var E;(E=n.current)===null||E===void 0||(E=E.signal)===null||E===void 0||E.addEventListener("abort",function(){b(new Error("aborted"))})})]);case 5:return v=_.sent,_.abrupt("return",v);case 7:case"end":return _.stop()}},f)}));return function(){return d.apply(this,arguments)}}();m.useEffect(function(){return function(){Uq+=1}},[]);var l=ife([a.current,e.params],s,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),c=l.data,u=l.error;return[c||u]}var fJt=function(n){var r=m.useRef();return m.useEffect(function(){r.current=n}),r.current},pJt=function(n){var r=!1;return(typeof n=="string"&&n.startsWith("date")&&!n.endsWith("Range")||n==="select"||n==="time")&&(r=!0),r};function hJt(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}var sfe=function(n){if(!n||!n.startsWith("http"))return!1;try{var r=new URL(n);return!!r}catch{return!1}},sWe=function(){for(var n={},r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];for(var a=i.length,s,l=0;l<a;l+=1)for(s in i[l])i[l].hasOwnProperty(s)&&(cn(n[s])==="object"&&cn(i[l][s])==="object"&&n[s]!==void 0&&n[s]!==null&&!Array.isArray(n[s])&&!Array.isArray(i[l][s])?n[s]=ee(ee({},n[s]),i[l][s]):n[s]=i[l][s]);return n},Pxe=0,Axe=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(Pxe+=1).toFixed(0);for(var r="",i=crypto.getRandomValues(new Uint8Array(n));n--;){var o=63&i[n];r+=o<36?o.toString(36):o<62?(o-26).toString(36).toUpperCase():o<63?"_":"-"}return r},cB=function(){return typeof window>"u"?Axe():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():Axe()};Zr.extend(uHe);var Dxe=function(n){return!!(n!=null&&n._isAMomentObject)},Ak=function e(n,r){return dC(n)||Zr.isDayjs(n)||Dxe(n)?Dxe(n)?Zr(n):n:Array.isArray(n)?n.map(function(i){return e(i,r)}):typeof n=="number"?Zr(n):Zr(n,r)},gJt=["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 mJt(e){var n={};return gJt.forEach(function(r){e[r]!==void 0&&(n[r]=e[r])}),n}var vJt="valueType request plain renderFormItem render text formItemProps valueEnum",yJt="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function lWe(e){var n="".concat(vJt," ").concat(yJt).split(/[\s\n]+/),r={};return Object.keys(e||{}).forEach(function(i){n.includes(i)||(r[i]=e[i])}),r}function _Jt(e){var n=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return n==="string"&&cn(e)==="object"?"object":e===null?"null":e===void 0?"undefined":n}var bJt=function(n){var r=n.color,i=n.children;return N.jsx(Zu,{color:r,text:i})},o_=function(n){return _Jt(n)==="map"?n:new Map(Object.entries(n||{}))},SJt={Success:function(n){var r=n.children;return N.jsx(Zu,{status:"success",text:r})},Error:function(n){var r=n.children;return N.jsx(Zu,{status:"error",text:r})},Default:function(n){var r=n.children;return N.jsx(Zu,{status:"default",text:r})},Processing:function(n){var r=n.children;return N.jsx(Zu,{status:"processing",text:r})},Warning:function(n){var r=n.children;return N.jsx(Zu,{status:"warning",text:r})},success:function(n){var r=n.children;return N.jsx(Zu,{status:"success",text:r})},error:function(n){var r=n.children;return N.jsx(Zu,{status:"error",text:r})},default:function(n){var r=n.children;return N.jsx(Zu,{status:"default",text:r})},processing:function(n){var r=n.children;return N.jsx(Zu,{status:"processing",text:r})},warning:function(n){var r=n.children;return N.jsx(Zu,{status:"warning",text:r})}},_I=function e(n,r,i){if(Array.isArray(n))return N.jsx(Cf,{split:",",size:2,wrap:!0,children:n.map(function(u,d){return e(u,r,d)})},i);var o=o_(r);if(!o.has(n)&&!o.has("".concat(n)))return(n==null?void 0:n.label)||n;var a=o.get(n)||o.get("".concat(n));if(!a)return N.jsx(V.Fragment,{children:(n==null?void 0:n.label)||n},i);var s=a.status,l=a.color,c=SJt[s||"Init"];return c?N.jsx(c,{children:a.text},i):l?N.jsx(bJt,{color:l,children:a.text},i):N.jsx(V.Fragment,{children:a.text||a},i)},zie={exports:{}};(function(e,n){const{hasOwnProperty:r}=Object.prototype,i=_();i.configure=_,i.stringify=i,i.default=i,n.stringify=i,n.configure=_,e.exports=i;const o=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function a(S){return S.length<5e3&&!o.test(S)?`"${S}"`:JSON.stringify(S)}function s(S,b){if(S.length>200||b)return S.sort(b);for(let E=1;E<S.length;E++){const w=S[E];let C=E;for(;C!==0&&S[C-1]>w;)S[C]=S[C-1],C--;S[C]=w}return S}const l=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function c(S){return l.call(S)!==void 0&&S.length!==0}function u(S,b,E){S.length<E&&(E=S.length);const w=b===","?"":" ";let C=`"0":${w}${S[0]}`;for(let x=1;x<E;x++)C+=`${b}"${x}":${w}${S[x]}`;return C}function d(S){if(r.call(S,"circularValue")){const b=S.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 f(S){let b;if(r.call(S,"deterministic")&&(b=S.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 p(S,b){let E;if(r.call(S,b)&&(E=S[b],typeof E!="boolean"))throw new TypeError(`The "${b}" argument must be of type boolean`);return E===void 0?!0:E}function h(S,b){let E;if(r.call(S,b)){if(E=S[b],typeof E!="number")throw new TypeError(`The "${b}" argument must be of type number`);if(!Number.isInteger(E))throw new TypeError(`The "${b}" argument must be an integer`);if(E<1)throw new RangeError(`The "${b}" argument must be >= 1`)}return E===void 0?1/0:E}function g(S){return S===1?"1 item":`${S} items`}function v(S){const b=new Set;for(const E of S)(typeof E=="string"||typeof E=="number")&&b.add(String(E));return b}function y(S){if(r.call(S,"strict")){const b=S.strict;if(typeof b!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(b)return E=>{let w=`Object can not safely be stringified. Received type ${typeof E}`;throw typeof E!="function"&&(w+=` (${E.toString()})`),new Error(w)}}}function _(S){S={...S};const b=y(S);b&&(S.bigint===void 0&&(S.bigint=!1),"circularValue"in S||(S.circularValue=Error));const E=d(S),w=p(S,"bigint"),C=f(S),x=typeof C=="function"?C:void 0,T=h(S,"maximumDepth"),R=h(S,"maximumBreadth");function O(U,z,D,B,Y,q){let K=z[U];switch(typeof K=="object"&&K!==null&&typeof K.toJSON=="function"&&(K=K.toJSON(U)),K=B.call(z,U,K),typeof K){case"string":return a(K);case"object":{if(K===null)return"null";if(D.indexOf(K)!==-1)return E;let H="",G=",";const Q=q;if(Array.isArray(K)){if(K.length===0)return"[]";if(T<D.length+1)return'"[Array]"';D.push(K),Y!==""&&(q+=Y,H+=`
${q}`,G=`,
${q}`);const oe=Math.min(K.length,R);let de=0;for(;de<oe-1;de++){const me=O(String(de),K,D,B,Y,q);H+=me!==void 0?me:"null",H+=G}const pe=O(String(de),K,D,B,Y,q);if(H+=pe!==void 0?pe:"null",K.length-1>R){const me=K.length-R-1;H+=`${G}"... ${g(me)} not stringified"`}return Y!==""&&(H+=`
${Q}`),D.pop(),`[${H}]`}let le=Object.keys(K);const Z=le.length;if(Z===0)return"{}";if(T<D.length+1)return'"[Object]"';let j="",F="";Y!==""&&(q+=Y,G=`,
${q}`,j=" ");const te=Math.min(Z,R);C&&!c(K)&&(le=s(le,x)),D.push(K);for(let oe=0;oe<te;oe++){const de=le[oe],pe=O(de,K,D,B,Y,q);pe!==void 0&&(H+=`${F}${a(de)}:${j}${pe}`,F=G)}if(Z>R){const oe=Z-R;H+=`${F}"...":${j}"${g(oe)} not stringified"`,F=G}return Y!==""&&F.length>1&&(H=`
${q}${H}
${Q}`),D.pop(),`{${H}}`}case"number":return isFinite(K)?String(K):b?b(K):"null";case"boolean":return K===!0?"true":"false";case"undefined":return;case"bigint":if(w)return String(K);default:return b?b(K):void 0}}function M(U,z,D,B,Y,q){switch(typeof z=="object"&&z!==null&&typeof z.toJSON=="function"&&(z=z.toJSON(U)),typeof z){case"string":return a(z);case"object":{if(z===null)return"null";if(D.indexOf(z)!==-1)return E;const K=q;let H="",G=",";if(Array.isArray(z)){if(z.length===0)return"[]";if(T<D.length+1)return'"[Array]"';D.push(z),Y!==""&&(q+=Y,H+=`
${q}`,G=`,
${q}`);const Z=Math.min(z.length,R);let j=0;for(;j<Z-1;j++){const te=M(String(j),z[j],D,B,Y,q);H+=te!==void 0?te:"null",H+=G}const F=M(String(j),z[j],D,B,Y,q);if(H+=F!==void 0?F:"null",z.length-1>R){const te=z.length-R-1;H+=`${G}"... ${g(te)} not stringified"`}return Y!==""&&(H+=`
${K}`),D.pop(),`[${H}]`}D.push(z);let Q="";Y!==""&&(q+=Y,G=`,
${q}`,Q=" ");let le="";for(const Z of B){const j=M(Z,z[Z],D,B,Y,q);j!==void 0&&(H+=`${le}${a(Z)}:${Q}${j}`,le=G)}return Y!==""&&le.length>1&&(H=`
${q}${H}
${K}`),D.pop(),`{${H}}`}case"number":return isFinite(z)?String(z):b?b(z):"null";case"boolean":return z===!0?"true":"false";case"undefined":return;case"bigint":if(w)return String(z);default:return b?b(z):void 0}}function P(U,z,D,B,Y){switch(typeof z){case"string":return a(z);case"object":{if(z===null)return"null";if(typeof z.toJSON=="function"){if(z=z.toJSON(U),typeof z!="object")return P(U,z,D,B,Y);if(z===null)return"null"}if(D.indexOf(z)!==-1)return E;const q=Y;if(Array.isArray(z)){if(z.length===0)return"[]";if(T<D.length+1)return'"[Array]"';D.push(z),Y+=B;let j=`
${Y}`;const F=`,
${Y}`,te=Math.min(z.length,R);let oe=0;for(;oe<te-1;oe++){const pe=P(String(oe),z[oe],D,B,Y);j+=pe!==void 0?pe:"null",j+=F}const de=P(String(oe),z[oe],D,B,Y);if(j+=de!==void 0?de:"null",z.length-1>R){const pe=z.length-R-1;j+=`${F}"... ${g(pe)} not stringified"`}return j+=`
${q}`,D.pop(),`[${j}]`}let K=Object.keys(z);const H=K.length;if(H===0)return"{}";if(T<D.length+1)return'"[Object]"';Y+=B;const G=`,
${Y}`;let Q="",le="",Z=Math.min(H,R);c(z)&&(Q+=u(z,G,R),K=K.slice(z.length),Z-=z.length,le=G),C&&(K=s(K,x)),D.push(z);for(let j=0;j<Z;j++){const F=K[j],te=P(F,z[F],D,B,Y);te!==void 0&&(Q+=`${le}${a(F)}: ${te}`,le=G)}if(H>R){const j=H-R;Q+=`${le}"...": "${g(j)} not stringified"`,le=G}return le!==""&&(Q=`
${Y}${Q}
${q}`),D.pop(),`{${Q}}`}case"number":return isFinite(z)?String(z):b?b(z):"null";case"boolean":return z===!0?"true":"false";case"undefined":return;case"bigint":if(w)return String(z);default:return b?b(z):void 0}}function k(U,z,D){switch(typeof z){case"string":return a(z);case"object":{if(z===null)return"null";if(typeof z.toJSON=="function"){if(z=z.toJSON(U),typeof z!="object")return k(U,z,D);if(z===null)return"null"}if(D.indexOf(z)!==-1)return E;let B="";const Y=z.length!==void 0;if(Y&&Array.isArray(z)){if(z.length===0)return"[]";if(T<D.length+1)return'"[Array]"';D.push(z);const Q=Math.min(z.length,R);let le=0;for(;le<Q-1;le++){const j=k(String(le),z[le],D);B+=j!==void 0?j:"null",B+=","}const Z=k(String(le),z[le],D);if(B+=Z!==void 0?Z:"null",z.length-1>R){const j=z.length-R-1;B+=`,"... ${g(j)} not stringified"`}return D.pop(),`[${B}]`}let q=Object.keys(z);const K=q.length;if(K===0)return"{}";if(T<D.length+1)return'"[Object]"';let H="",G=Math.min(K,R);Y&&c(z)&&(B+=u(z,",",R),q=q.slice(z.length),G-=z.length,H=","),C&&(q=s(q,x)),D.push(z);for(let Q=0;Q<G;Q++){const le=q[Q],Z=k(le,z[le],D);Z!==void 0&&(B+=`${H}${a(le)}:${Z}`,H=",")}if(K>R){const Q=K-R;B+=`${H}"...":"${g(Q)} not stringified"`}return D.pop(),`{${B}}`}case"number":return isFinite(z)?String(z):b?b(z):"null";case"boolean":return z===!0?"true":"false";case"undefined":return;case"bigint":if(w)return String(z);default:return b?b(z):void 0}}function $(U,z,D){if(arguments.length>1){let B="";if(typeof D=="number"?B=" ".repeat(Math.min(D,10)):typeof D=="string"&&(B=D.slice(0,10)),z!=null){if(typeof z=="function")return O("",{"":U},[],z,B,"");if(Array.isArray(z))return M("",U,[],v(z),B,"")}if(B.length!==0)return P("",U,[],B,"")}return k("",U,[])}return $}})(zie,zie.exports);var EJt=zie.exports;const CJt=Or(EJt),wJt=CJt.configure;var kxe=wJt({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function xJt(){this.__data__=[],this.size=0}function Dk(e,n){return e===n||e!==e&&n!==n}function $U(e,n){for(var r=e.length;r--;)if(Dk(e[r][0],n))return r;return-1}var TJt=Array.prototype,OJt=TJt.splice;function RJt(e){var n=this.__data__,r=$U(n,e);if(r<0)return!1;var i=n.length-1;return r==i?n.pop():OJt.call(n,r,1),--this.size,!0}function IJt(e){var n=this.__data__,r=$U(n,e);return r<0?void 0:n[r][1]}function NJt(e){return $U(this.__data__,e)>-1}function MJt(e,n){var r=this.__data__,i=$U(r,e);return i<0?(++this.size,r.push([e,n])):r[i][1]=n,this}function a_(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}a_.prototype.clear=xJt;a_.prototype.delete=RJt;a_.prototype.get=IJt;a_.prototype.has=NJt;a_.prototype.set=MJt;function PJt(){this.__data__=new a_,this.size=0}function AJt(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}function DJt(e){return this.__data__.get(e)}function kJt(e){return this.__data__.has(e)}var cWe=typeof global=="object"&&global&&global.Object===Object&&global,LJt=typeof self=="object"&&self&&self.Object===Object&&self,Eg=cWe||LJt||Function("return this")(),I0=Eg.Symbol,uWe=Object.prototype,$Jt=uWe.hasOwnProperty,FJt=uWe.toString,gM=I0?I0.toStringTag:void 0;function BJt(e){var n=$Jt.call(e,gM),r=e[gM];try{e[gM]=void 0;var i=!0}catch{}var o=FJt.call(e);return i&&(n?e[gM]=r:delete e[gM]),o}var jJt=Object.prototype,UJt=jJt.toString;function HJt(e){return UJt.call(e)}var zJt="[object Null]",VJt="[object Undefined]",Lxe=I0?I0.toStringTag:void 0;function uw(e){return e==null?e===void 0?VJt:zJt:Lxe&&Lxe in Object(e)?BJt(e):HJt(e)}function Dm(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var GJt="[object AsyncFunction]",WJt="[object Function]",YJt="[object GeneratorFunction]",qJt="[object Proxy]";function lfe(e){if(!Dm(e))return!1;var n=uw(e);return n==WJt||n==YJt||n==GJt||n==qJt}var Hq=Eg["__core-js_shared__"],$xe=function(){var e=/[^.]+$/.exec(Hq&&Hq.keys&&Hq.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function KJt(e){return!!$xe&&$xe in e}var XJt=Function.prototype,QJt=XJt.toString;function dw(e){if(e!=null){try{return QJt.call(e)}catch{}try{return e+""}catch{}}return""}var ZJt=/[\\^$.*+?()[\]{}|]/g,JJt=/^\[object .+?Constructor\]$/,een=Function.prototype,ten=Object.prototype,nen=een.toString,ren=ten.hasOwnProperty,ien=RegExp("^"+nen.call(ren).replace(ZJt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oen(e){if(!Dm(e)||KJt(e))return!1;var n=lfe(e)?ien:JJt;return n.test(dw(e))}function aen(e,n){return e==null?void 0:e[n]}function fw(e,n){var r=aen(e,n);return oen(r)?r:void 0}var IA=fw(Eg,"Map"),NA=fw(Object,"create");function sen(){this.__data__=NA?NA(null):{},this.size=0}function len(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var cen="__lodash_hash_undefined__",uen=Object.prototype,den=uen.hasOwnProperty;function fen(e){var n=this.__data__;if(NA){var r=n[e];return r===cen?void 0:r}return den.call(n,e)?n[e]:void 0}var pen=Object.prototype,hen=pen.hasOwnProperty;function gen(e){var n=this.__data__;return NA?n[e]!==void 0:hen.call(n,e)}var men="__lodash_hash_undefined__";function ven(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=NA&&n===void 0?men:n,this}function pC(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}pC.prototype.clear=sen;pC.prototype.delete=len;pC.prototype.get=fen;pC.prototype.has=gen;pC.prototype.set=ven;function yen(){this.size=0,this.__data__={hash:new pC,map:new(IA||a_),string:new pC}}function _en(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function FU(e,n){var r=e.__data__;return _en(n)?r[typeof n=="string"?"string":"hash"]:r.map}function ben(e){var n=FU(this,e).delete(e);return this.size-=n?1:0,n}function Sen(e){return FU(this,e).get(e)}function Een(e){return FU(this,e).has(e)}function Cen(e,n){var r=FU(this,e),i=r.size;return r.set(e,n),this.size+=r.size==i?0:1,this}function s_(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}s_.prototype.clear=yen;s_.prototype.delete=ben;s_.prototype.get=Sen;s_.prototype.has=Een;s_.prototype.set=Cen;var wen=200;function xen(e,n){var r=this.__data__;if(r instanceof a_){var i=r.__data__;if(!IA||i.length<wen-1)return i.push([e,n]),this.size=++r.size,this;r=this.__data__=new s_(i)}return r.set(e,n),this.size=r.size,this}function hy(e){var n=this.__data__=new a_(e);this.size=n.size}hy.prototype.clear=PJt;hy.prototype.delete=AJt;hy.prototype.get=DJt;hy.prototype.has=kJt;hy.prototype.set=xen;var uB=function(){try{var e=fw(Object,"defineProperty");return e({},"",{}),e}catch{}}();function cfe(e,n,r){n=="__proto__"&&uB?uB(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}function Vie(e,n,r){(r!==void 0&&!Dk(e[n],r)||r===void 0&&!(n in e))&&cfe(e,n,r)}function Ten(e){return function(n,r,i){for(var o=-1,a=Object(n),s=i(n),l=s.length;l--;){var c=s[++o];if(r(a[c],c,a)===!1)break}return n}}var Oen=Ten(),dWe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Fxe=dWe&&typeof module=="object"&&module&&!module.nodeType&&module,Ren=Fxe&&Fxe.exports===dWe,Bxe=Ren?Eg.Buffer:void 0;Bxe&&Bxe.allocUnsafe;function Ien(e,n){return e.slice()}var dB=Eg.Uint8Array;function Nen(e){var n=new e.constructor(e.byteLength);return new dB(n).set(new dB(e)),n}function Men(e,n){var r=Nen(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function Pen(e,n){var r=-1,i=e.length;for(n||(n=Array(i));++r<i;)n[r]=e[r];return n}var jxe=Object.create,Aen=function(){function e(){}return function(n){if(!Dm(n))return{};if(jxe)return jxe(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}}();function fWe(e,n){return function(r){return e(n(r))}}var pWe=fWe(Object.getPrototypeOf,Object),Den=Object.prototype;function ufe(e){var n=e&&e.constructor,r=typeof n=="function"&&n.prototype||Den;return e===r}function ken(e){return typeof e.constructor=="function"&&!ufe(e)?Aen(pWe(e)):{}}function N0(e){return e!=null&&typeof e=="object"}var Len="[object Arguments]";function Uxe(e){return N0(e)&&uw(e)==Len}var hWe=Object.prototype,$en=hWe.hasOwnProperty,Fen=hWe.propertyIsEnumerable,Gie=Uxe(function(){return arguments}())?Uxe:function(e){return N0(e)&&$en.call(e,"callee")&&!Fen.call(e,"callee")},ky=Array.isArray,Ben=9007199254740991;function gWe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ben}function BU(e){return e!=null&&gWe(e.length)&&!lfe(e)}function jen(e){return N0(e)&&BU(e)}function Uen(){return!1}var mWe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Hxe=mWe&&typeof module=="object"&&module&&!module.nodeType&&module,Hen=Hxe&&Hxe.exports===mWe,zxe=Hen?Eg.Buffer:void 0,zen=zxe?zxe.isBuffer:void 0,fB=zen||Uen,Ven="[object Object]",Gen=Function.prototype,Wen=Object.prototype,vWe=Gen.toString,Yen=Wen.hasOwnProperty,qen=vWe.call(Object);function Ken(e){if(!N0(e)||uw(e)!=Ven)return!1;var n=pWe(e);if(n===null)return!0;var r=Yen.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&vWe.call(r)==qen}var Xen="[object Arguments]",Qen="[object Array]",Zen="[object Boolean]",Jen="[object Date]",etn="[object Error]",ttn="[object Function]",ntn="[object Map]",rtn="[object Number]",itn="[object Object]",otn="[object RegExp]",atn="[object Set]",stn="[object String]",ltn="[object WeakMap]",ctn="[object ArrayBuffer]",utn="[object DataView]",dtn="[object Float32Array]",ftn="[object Float64Array]",ptn="[object Int8Array]",htn="[object Int16Array]",gtn="[object Int32Array]",mtn="[object Uint8Array]",vtn="[object Uint8ClampedArray]",ytn="[object Uint16Array]",_tn="[object Uint32Array]",_a={};_a[dtn]=_a[ftn]=_a[ptn]=_a[htn]=_a[gtn]=_a[mtn]=_a[vtn]=_a[ytn]=_a[_tn]=!0;_a[Xen]=_a[Qen]=_a[ctn]=_a[Zen]=_a[utn]=_a[Jen]=_a[etn]=_a[ttn]=_a[ntn]=_a[rtn]=_a[itn]=_a[otn]=_a[atn]=_a[stn]=_a[ltn]=!1;function btn(e){return N0(e)&&gWe(e.length)&&!!_a[uw(e)]}function Stn(e){return function(n){return e(n)}}var yWe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,rP=yWe&&typeof module=="object"&&module&&!module.nodeType&&module,Etn=rP&&rP.exports===yWe,zq=Etn&&cWe.process,Vxe=function(){try{var e=rP&&rP.require&&rP.require("util").types;return e||zq&&zq.binding&&zq.binding("util")}catch{}}(),Gxe=Vxe&&Vxe.isTypedArray,dfe=Gxe?Stn(Gxe):btn;function Wie(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var Ctn=Object.prototype,wtn=Ctn.hasOwnProperty;function xtn(e,n,r){var i=e[n];(!(wtn.call(e,n)&&Dk(i,r))||r===void 0&&!(n in e))&&cfe(e,n,r)}function Ttn(e,n,r,i){var o=!r;r||(r={});for(var a=-1,s=n.length;++a<s;){var l=n[a],c=void 0;c===void 0&&(c=e[l]),o?cfe(r,l,c):xtn(r,l,c)}return r}function Otn(e,n){for(var r=-1,i=Array(e);++r<e;)i[r]=n(r);return i}var Rtn=9007199254740991,Itn=/^(?:0|[1-9]\d*)$/;function _We(e,n){var r=typeof e;return n=n??Rtn,!!n&&(r=="number"||r!="symbol"&&Itn.test(e))&&e>-1&&e%1==0&&e<n}var Ntn=Object.prototype,Mtn=Ntn.hasOwnProperty;function bWe(e,n){var r=ky(e),i=!r&&Gie(e),o=!r&&!i&&fB(e),a=!r&&!i&&!o&&dfe(e),s=r||i||o||a,l=s?Otn(e.length,String):[],c=l.length;for(var u in e)(n||Mtn.call(e,u))&&!(s&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||_We(u,c)))&&l.push(u);return l}function Ptn(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}var Atn=Object.prototype,Dtn=Atn.hasOwnProperty;function ktn(e){if(!Dm(e))return Ptn(e);var n=ufe(e),r=[];for(var i in e)i=="constructor"&&(n||!Dtn.call(e,i))||r.push(i);return r}function SWe(e){return BU(e)?bWe(e,!0):ktn(e)}function Ltn(e){return Ttn(e,SWe(e))}function $tn(e,n,r,i,o,a,s){var l=Wie(e,r),c=Wie(n,r),u=s.get(c);if(u){Vie(e,r,u);return}var d=a?a(l,c,r+"",e,n,s):void 0,f=d===void 0;if(f){var p=ky(c),h=!p&&fB(c),g=!p&&!h&&dfe(c);d=c,p||h||g?ky(l)?d=l:jen(l)?d=Pen(l):h?(f=!1,d=Ien(c)):g?(f=!1,d=Men(c)):d=[]:Ken(c)||Gie(c)?(d=l,Gie(l)?d=Ltn(l):(!Dm(l)||lfe(l))&&(d=ken(c))):f=!1}f&&(s.set(c,d),o(d,c,i,a,s),s.delete(c)),Vie(e,r,d)}function EWe(e,n,r,i,o){e!==n&&Oen(n,function(a,s){if(o||(o=new hy),Dm(a))$tn(e,n,s,r,EWe,i,o);else{var l=i?i(Wie(e,s),a,s+"",e,n,o):void 0;l===void 0&&(l=a),Vie(e,s,l)}},SWe)}function CWe(e){return e}function Ftn(e,n,r){switch(r.length){case 0:return e.call(n);case 1:return e.call(n,r[0]);case 2:return e.call(n,r[0],r[1]);case 3:return e.call(n,r[0],r[1],r[2])}return e.apply(n,r)}var Wxe=Math.max;function Btn(e,n,r){return n=Wxe(n===void 0?e.length-1:n,0),function(){for(var i=arguments,o=-1,a=Wxe(i.length-n,0),s=Array(a);++o<a;)s[o]=i[n+o];o=-1;for(var l=Array(n+1);++o<n;)l[o]=i[o];return l[n]=r(s),Ftn(e,this,l)}}function jtn(e){return function(){return e}}var Utn=uB?function(e,n){return uB(e,"toString",{configurable:!0,enumerable:!1,value:jtn(n),writable:!0})}:CWe,Htn=800,ztn=16,Vtn=Date.now;function Gtn(e){var n=0,r=0;return function(){var i=Vtn(),o=ztn-(i-r);if(r=i,o>0){if(++n>=Htn)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}var Wtn=Gtn(Utn);function Ytn(e,n){return Wtn(Btn(e,n,CWe),e+"")}function qtn(e,n,r){if(!Dm(r))return!1;var i=typeof n;return(i=="number"?BU(r)&&_We(n,r.length):i=="string"&&n in r)?Dk(r[n],e):!1}function Ktn(e){return Ytn(function(n,r){var i=-1,o=r.length,a=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,s&&qtn(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),n=Object(n);++i<o;){var l=r[i];l&&e(n,l,i,a)}return n})}var Xtn=Ktn(function(e,n,r){EWe(e,n,r)});function Qtn(e){return cn(e)!=="object"?!1:e===null?!0:!(V.isValidElement(e)||e.constructor===RegExp||e instanceof Map||e instanceof Set||e instanceof HTMLElement||e instanceof Blob||e instanceof File||Array.isArray(e))}var Ztn=function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Object.keys(r).reduce(function(l,c){var u=r[c];return dC(u)||(l[c]=u),l},{});if(Object.keys(o).length<1||typeof window>"u"||cn(n)!=="object"||dC(n)||n instanceof Blob)return n;var a=Array.isArray(n)?[]:{},s=function l(c,u){var d=Array.isArray(c),f=d?[]:{};return c==null||c===void 0?f:(Object.keys(c).forEach(function(p){var h=function b(E,w){return Array.isArray(E)&&E.forEach(function(C,x){if(C){var T=w==null?void 0:w[x];typeof C=="function"&&(w[x]=C(w,p,c)),cn(C)==="object"&&!Array.isArray(C)&&Object.keys(C).forEach(function(R){var O=T==null?void 0:T[R];if(typeof C[R]=="function"&&O){var M=C[R](T[R],p,c);T[R]=cn(M)==="object"?M[R]:M}else cn(C[R])==="object"&&Array.isArray(C[R])&&O&&b(C[R],O)}),cn(C)==="object"&&Array.isArray(C)&&T&&b(C,T)}}),p},g=u?[u,p].flat(1):[p].flat(1),v=c[p],y=al(o,g),_=function(){var E,w,C=!1;if(typeof y=="function"){w=y==null?void 0:y(v,p,c);var x=cn(w);x!=="object"&&x!=="undefined"?(E=p,C=!0):E=w}else E=h(y,v);if(Array.isArray(E)){f=Fs(f,E,v);return}cn(E)==="object"&&!Array.isArray(a)?a=Xtn(a,E):cn(E)==="object"&&Array.isArray(a)?f=ee(ee({},f),E):(E!==null||E!==void 0)&&(f=Fs(f,[E],C?w:v))};if(y&&typeof y=="function"&&_(),!(typeof window>"u")){if(Qtn(v)){var S=l(v,g);if(Object.keys(S).length<1)return;f=Fs(f,[p],S);return}_()}}),i?f:c)};return a=Array.isArray(n)&&Array.isArray(a)?Tt(s(n)):sWe({},s(n),a),a},wf=function(n){return n===void 0?{}:Pk(Ny,"5.13.0")<=0?{bordered:n}:{variant:n?void 0:"borderless"}};function Ix(e){var n=typeof window>"u",r=m.useState(function(){return n?!1:window.matchMedia(e).matches}),i=ke(r,2),o=i[0],a=i[1];return m.useLayoutEffect(function(){if(!n){var s=window.matchMedia(e),l=function(u){return a(u.matches)};return s.addListener(l),function(){return s.removeListener(l)}}},[e]),o}var mb={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)"}},Jtn=function(){var n=void 0;if(typeof window>"u")return n;var r=Object.keys(mb).find(function(i){var o=mb[i].matchMedia;return!!window.matchMedia(o).matches});return n=r,n},enn=function(){var n=Ix(mb.md.matchMedia),r=Ix(mb.lg.matchMedia),i=Ix(mb.xxl.matchMedia),o=Ix(mb.xl.matchMedia),a=Ix(mb.sm.matchMedia),s=Ix(mb.xs.matchMedia),l=m.useState(Jtn()),c=ke(l,2),u=c[0],d=c[1];return m.useEffect(function(){if(i){d("xxl");return}if(o){d("xl");return}if(r){d("lg");return}if(n){d("md");return}if(a){d("sm");return}if(s){d("xs");return}d("md")},[n,r,i,o,a,s]),u},iP=function(){return iP=Object.assign||function(e){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)&&(e[o]=n[o])}return e},iP.apply(this,arguments)};function tnn(e){var n,r=(typeof window<"u"?window:{}).URL,i=new r((n=window==null?void 0:window.location)===null||n===void 0?void 0:n.href);return Object.keys(e).forEach(function(o){var a=e[o];a!=null?Array.isArray(a)?(i.searchParams.delete(o),a.forEach(function(s){i.searchParams.append(o,s)})):a instanceof Date?Number.isNaN(a.getTime())||i.searchParams.set(o,a.toISOString()):typeof a=="object"?i.searchParams.set(o,JSON.stringify(a)):i.searchParams.set(o,a):i.searchParams.delete(o)}),i}function nnn(e,n){var r;e===void 0&&(e={}),n===void 0&&(n={disabled:!1});var i=m.useState(),o=i[1],a=typeof window<"u"&&((r=window==null?void 0:window.location)===null||r===void 0?void 0:r.search),s=m.useMemo(function(){return n.disabled?{}:new URLSearchParams(a||{})},[n.disabled,a]),l=m.useMemo(function(){if(n.disabled)return{};if(typeof window>"u"||!window.URL)return{};var d=[];s.forEach(function(p,h){d.push({key:h,value:p})}),d=d.reduce(function(p,h){return(p[h.key]=p[h.key]||[]).push(h),p},{}),d=Object.keys(d).map(function(p){var h=d[p];return h.length===1?[p,h[0].value]:[p,h.map(function(g){var v=g.value;return v})]});var f=iP({},e);return d.forEach(function(p){var h=p[0],g=p[1];f[h]=inn(h,g,{},e)}),f},[n.disabled,e,s]);function c(d){if(!(typeof window>"u"||!window.URL)){var f=tnn(d);window.location.search!==f.search&&window.history.replaceState({},"",f.toString()),s.toString()!==f.searchParams.toString()&&o({})}}m.useEffect(function(){n.disabled||typeof window>"u"||!window.URL||c(iP(iP({},e),l))},[n.disabled,l]);var u=function(d){c(d)};return m.useEffect(function(){if(n.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var d=function(){o({})};return window.addEventListener("popstate",d),function(){window.removeEventListener("popstate",d)}},[n.disabled]),[l,u]}var rnn={true:!0,false:!1};function inn(e,n,r,i){if(!r)return n;var o=r[e],a=n===void 0?i[e]:n;return o===Number?Number(a):o===Boolean||n==="true"||n==="false"?rnn[a]:Array.isArray(o)?o.find(function(s){return s==a})||i[e]:a}var Cg=V.createContext({}),onn=["children","Wrapper"],ann=["children","Wrapper"],wWe=m.createContext({grid:!1,colProps:void 0,rowProps:void 0}),snn=function(n){var r=n.grid,i=n.rowProps,o=n.colProps;return{grid:!!r,RowWrapper:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=s.children,c=s.Wrapper,u=Xt(s,onn);return r?N.jsx(xde,ee(ee(ee({gutter:8},i),u),{},{children:l})):c?N.jsx(c,{children:l}):l},ColWrapper:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=s.children,c=s.Wrapper,u=Xt(s,ann),d=m.useMemo(function(){var f=ee(ee({},o),u);return typeof f.span>"u"&&typeof f.xs>"u"&&(f.xs=24),f},[u]);return r?N.jsx(bA,ee(ee({},d),{},{children:l})):c?N.jsx(c,{children:l}):l}}},ffe=function(n){var r=m.useMemo(function(){return cn(n)==="object"?n:{grid:n}},[n]),i=m.useContext(wWe),o=i.grid,a=i.colProps;return m.useMemo(function(){return snn({grid:!!(o||r.grid),rowProps:r==null?void 0:r.rowProps,colProps:(r==null?void 0:r.colProps)||a,Wrapper:r==null?void 0:r.Wrapper})},[r==null?void 0:r.Wrapper,r.grid,o,JSON.stringify([a,r==null?void 0:r.colProps,r==null?void 0:r.rowProps])])},lnn=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],cnn=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],Yxe={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},unn=["switch","radioButton","radio","rate"];function jU(e,n){e.displayName="ProFormComponent";var r=function(a){var s=ee(ee({},a==null?void 0:a.filedConfig),n),l=s.valueType,c=s.customLightMode,u=s.lightFilterLabelFormatter,d=s.valuePropName,f=d===void 0?"value":d,p=s.ignoreWidth,h=s.defaultProps,g=Xt(s,lnn),v=ee(ee({},h),a),y=v.label,_=v.tooltip,S=v.placeholder,b=v.width,E=v.bordered,w=v.messageVariables,C=v.ignoreFormItem,x=v.transform,T=v.convertValue,R=v.readonly,O=v.allowClear;v.colSize;var M=v.getFormItemProps,P=v.getFieldProps;v.filedConfig;var k=v.cacheForSwr,$=v.proFieldProps,U=Xt(v,cnn),z=l||U.valueType,D=m.useMemo(function(){return p||unn.includes(z)},[p,z]),B=m.useState(),Y=ke(B,2),q=Y[1],K=m.useState(),H=ke(K,2),G=H[0],Q=H[1],le=V.useContext(Cg),Z=Qu(function(){return{formItemProps:M==null?void 0:M(),fieldProps:P==null?void 0:P()}},[P,M,U.dependenciesValues,G]),j=Qu(function(){var Oe=ee(ee(ee(ee({},C?pp({value:U.value}):{}),{},{placeholder:S,disabled:a.disabled},le.fieldProps),Z.fieldProps),U.fieldProps);return Oe.style=pp(Oe==null?void 0:Oe.style),Oe},[C,U.value,U.fieldProps,S,a.disabled,le.fieldProps,Z.fieldProps]),F=mJt(U),te=Qu(function(){return ee(ee(ee(ee({},le.formItemProps),F),Z.formItemProps),U.formItemProps)},[Z.formItemProps,le.formItemProps,U.formItemProps,F]),oe=Qu(function(){return ee(ee({messageVariables:w},g),te)},[g,te,w]);FF(!U.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var de=m.useContext(T0),pe=de.prefixName,me=Qu(function(){var Oe,Ne=oe==null?void 0:oe.name;Array.isArray(Ne)&&(Ne=Ne.join("_")),Array.isArray(pe)&&Ne&&(Ne="".concat(pe.join("."),".").concat(Ne));var je=Ne&&"form-".concat((Oe=le.formKey)!==null&&Oe!==void 0?Oe:"","-field-").concat(Ne);return je},[kxe(oe==null?void 0:oe.name),pe,le.formKey]),ve=Yh(function(){var Oe;M||P?Q([]):U.renderFormItem&&q([]);for(var Ne=arguments.length,je=new Array(Ne),ne=0;ne<Ne;ne++)je[ne]=arguments[ne];j==null||(Oe=j.onChange)===null||Oe===void 0||Oe.call.apply(Oe,[j].concat(je))}),he=Qu(function(){var Oe=ee({width:b&&!Yxe[b]?b:le.grid?"100%":void 0},j==null?void 0:j.style);return D&&Reflect.deleteProperty(Oe,"width"),pp(Oe)},[kxe(j==null?void 0:j.style),le.grid,D,b]),be=Qu(function(){var Oe=b&&Yxe[b];return Ce(j==null?void 0:j.className,fe({"pro-field":Oe},"pro-field-".concat(b),Oe&&!D))||void 0},[b,j==null?void 0:j.className,D]),we=Qu(function(){return pp(ee(ee({},le.proFieldProps),{},{mode:U==null?void 0:U.mode,readonly:R,params:U.params,proFieldKey:me,cacheForSwr:k},$))},[le.proFieldProps,U==null?void 0:U.mode,U.params,R,me,k,$]),De=Qu(function(){return ee(ee({onChange:ve,allowClear:O},j),{},{style:he,className:be})},[O,be,ve,j,he]),Ae=Qu(function(){return N.jsx(e,ee(ee({},U),{},{fieldProps:De,proFieldProps:we,ref:a==null?void 0:a.fieldRef}),a.proFormFieldKey||a.name)},[we,De,U]),Ee=Qu(function(){var Oe,Ne,je,ne;return N.jsx(zYe,ee(ee({label:y&&($==null?void 0:$.light)!==!0?y:void 0,tooltip:($==null?void 0:$.light)!==!0&&_,valuePropName:f},oe),{},{ignoreFormItem:C,transform:x,dataFormat:j==null?void 0:j.format,valueType:z,messageVariables:ee({label:y||""},oe==null?void 0:oe.messageVariables),convertValue:T,lightProps:pp(ee(ee(ee({},j),{},{valueType:z,bordered:E,allowClear:(Ne=Ae==null||(je=Ae.props)===null||je===void 0?void 0:je.allowClear)!==null&&Ne!==void 0?Ne:O,light:$==null?void 0:$.light,label:y,customLightMode:c,labelFormatter:u,valuePropName:f,footerRender:Ae==null||(ne=Ae.props)===null||ne===void 0?void 0:ne.footerRender},U.lightProps),oe.lightProps)),children:Ae}),a.proFormFieldKey||((Oe=oe.name)===null||Oe===void 0?void 0:Oe.toString()))},[y,$==null?void 0:$.light,_,f,a.proFormFieldKey,oe,C,x,j,z,T,E,Ae,O,c,u,U.lightProps]),Re=ffe(U),Te=Re.ColWrapper;return N.jsx(Te,{children:Ee})},i=function(a){var s=a.dependencies;return s?N.jsx(HYe,{name:s,originDependencies:a==null?void 0:a.originDependencies,children:function(c){return N.jsx(r,ee({dependenciesValues:c,dependencies:s},a))}}):N.jsx(r,ee({dependencies:s},a))};return i}var dnn=["rules","name","phoneName","fieldProps","onTiming","captchaTextRender","captchaProps"],fnn=V.forwardRef(function(e,n){var r=Hr.useFormInstance(),i=m.useState(e.countDown||60),o=ke(i,2),a=o[0],s=o[1],l=m.useState(!1),c=ke(l,2),u=c[0],d=c[1],f=m.useState(),p=ke(f,2),h=p[0],g=p[1];e.rules,e.name;var v=e.phoneName,y=e.fieldProps,_=e.onTiming,S=e.captchaTextRender,b=S===void 0?function(x,T){return x?"".concat(T," 秒后重新获取"):"获取验证码"}:S,E=e.captchaProps,w=Xt(e,dnn),C=function(){var x=Ss(ri().mark(function T(R){return ri().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.prev=0,g(!0),M.next=4,w.onGetCaptcha(R);case 4:g(!1),d(!0),M.next=13;break;case 8:M.prev=8,M.t0=M.catch(0),d(!1),g(!1),console.log(M.t0);case 13:case"end":return M.stop()}},T,null,[[0,8]])}));return function(R){return x.apply(this,arguments)}}();return m.useImperativeHandle(n,function(){return{startTiming:function(){return d(!0)},endTiming:function(){return d(!1)}}}),m.useEffect(function(){var x=0,T=e.countDown;return u&&(x=window.setInterval(function(){s(function(R){return R<=1?(d(!1),clearInterval(x),T||60):R-1})},1e3)),function(){return clearInterval(x)}},[u]),m.useEffect(function(){_&&_(a)},[a,_]),N.jsxs("div",{style:ee(ee({},y==null?void 0:y.style),{},{display:"flex",alignItems:"center"}),ref:n,children:[N.jsx(Oi,ee(ee({},y),{},{style:ee({flex:1,transition:"width .3s",marginRight:8},y==null?void 0:y.style)})),N.jsx(qn,ee(ee({style:{display:"block"},disabled:u,loading:h},E),{},{onClick:Ss(ri().mark(function x(){var T;return ri().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(O.prev=0,!v){O.next=9;break}return O.next=4,r.validateFields([v].flat(1));case 4:return T=r.getFieldValue([v].flat(1)),O.next=7,C(T);case 7:O.next=11;break;case 9:return O.next=11,C("");case 11:O.next=16;break;case 13:O.prev=13,O.t0=O.catch(0),console.log(O.t0);case 16:case"end":return O.stop()}},x,null,[[0,13]])})),children:b(u,a)}))]})}),kk=jU(fnn),pnn=["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"],qxe=function(n,r){return cn(r)!=="object"?n[r]||r:n[r==null?void 0:r.value]||r.label},hnn=function(n,r){var i=n.label,o=n.prefixCls,a=n.onChange,s=n.value,l=n.mode;n.children,n.defaultValue;var c=n.size,u=n.showSearch,d=n.disabled,f=n.style,p=n.className,h=n.bordered,g=n.options,v=n.onSearch,y=n.allowClear,_=n.labelInValue,S=n.fieldNames,b=n.lightLabel,E=n.labelTrigger,w=n.optionFilterProp,C=n.optionLabelProp,x=C===void 0?"":C,T=n.valueMaxLength,R=T===void 0?41:T,O=n.fetchDataOnSearch,M=O===void 0?!1:O,P=n.fetchData,k=Xt(n,pnn),$=n.placeholder,U=$===void 0?i:$,z=S||{},D=z.label,B=D===void 0?"label":D,Y=z.value,q=Y===void 0?"value":Y,K=m.useContext(or.ConfigContext),H=K.getPrefixCls,G=H("pro-field-select-light-select"),Q=m.useState(!1),le=ke(Q,2),Z=le[0],j=le[1],F=m.useState(""),te=ke(F,2),oe=te[0],de=te[1],pe=ia("LightSelect",function(De){return fe({},".".concat(G),fe(fe({},"".concat(De.antCls,"-select"),{position:"absolute",width:"153px",height:"28px",visibility:"hidden","&-selector":{height:28}}),"&.".concat(G,"-searchable"),fe({},"".concat(De.antCls,"-select"),{width:"200px","&-selector":{height:28}})))}),me=pe.wrapSSR,ve=pe.hashId,he=m.useMemo(function(){var De={};return g==null||g.forEach(function(Ae){var Ee=Ae[x]||Ae[B],Re=Ae[q];De[Re]=Ee||Re}),De},[B,g,q,x]),be=m.useMemo(function(){return Reflect.has(k,"open")?k==null?void 0:k.open:Z},[Z,k]),we=Array.isArray(s)?s.map(function(De){return qxe(he,De)}):qxe(he,s);return me(N.jsxs("div",{className:Ce(G,ve,fe({},"".concat(G,"-searchable"),u),"".concat(G,"-container-").concat(k.placement||"bottomLeft"),p),style:f,onClick:function(Ae){var Ee;if(!d){var Re=b==null||(Ee=b.current)===null||Ee===void 0||(Ee=Ee.labelRef)===null||Ee===void 0||(Ee=Ee.current)===null||Ee===void 0?void 0:Ee.contains(Ae.target);Re&&j(!Z)}},children:[N.jsx(bg,ee(ee(ee({},k),{},{allowClear:y,value:s,mode:l,labelInValue:_,size:c,disabled:d,onChange:function(Ae,Ee){a==null||a(Ae,Ee),l!=="multiple"&&j(!1)}},wf(h)),{},{showSearch:u,onSearch:u?function(De){M&&P&&P(De),v==null||v(De)}:void 0,style:f,dropdownRender:function(Ae){return N.jsxs("div",{ref:r,children:[u&&N.jsx("div",{style:{margin:"4px 8px"},children:N.jsx(Oi,{value:oe,allowClear:!!y,onChange:function(Re){de(Re.target.value),M&&P&&P(Re.target.value),v==null||v(Re.target.value)},onKeyDown:function(Re){if(Re.key==="Backspace"){Re.stopPropagation();return}(Re.key==="ArrowUp"||Re.key==="ArrowDown")&&Re.preventDefault()},style:{width:"100%"},prefix:N.jsx(Xue,{})})}),Ae]})},open:be,onDropdownVisibleChange:function(Ae){var Ee;Ae||de(""),E||j(Ae),k==null||(Ee=k.onDropdownVisibleChange)===null||Ee===void 0||Ee.call(k,Ae)},prefixCls:o,options:v||!oe?g:g==null?void 0:g.filter(function(De){var Ae,Ee;return w?Tl(De[w]).join("").toLowerCase().includes(oe):((Ae=String(De[B]))===null||Ae===void 0||(Ae=Ae.toLowerCase())===null||Ae===void 0?void 0:Ae.includes(oe==null?void 0:oe.toLowerCase()))||((Ee=De[q])===null||Ee===void 0||(Ee=Ee.toString())===null||Ee===void 0||(Ee=Ee.toLowerCase())===null||Ee===void 0?void 0:Ee.includes(oe==null?void 0:oe.toLowerCase()))})})),N.jsx(i_,{ellipsis:!0,label:i,placeholder:U,disabled:d,bordered:h,allowClear:!!y,value:we||(s==null?void 0:s.label)||s,onClear:function(){a==null||a(void 0,void 0)},ref:b,valueMaxLength:R})]}))};const gnn=V.forwardRef(hnn);var mnn=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames","defaultSearchValue","preserveOriginalLabel"],vnn=["className","optionType"],ynn=function(n,r){var i=n.optionItemRender,o=n.mode,a=n.onSearch,s=n.onFocus,l=n.onChange,c=n.autoClearSearchValue,u=c===void 0?!0:c,d=n.searchOnFocus,f=d===void 0?!1:d,p=n.resetAfterSelect,h=p===void 0?!1:p,g=n.fetchDataOnSearch,v=g===void 0?!0:g,y=n.optionFilterProp,_=y===void 0?"label":y,S=n.optionLabelProp,b=S===void 0?"label":S,E=n.className,w=n.disabled,C=n.options,x=n.fetchData,T=n.resetData,R=n.prefixCls,O=n.onClear,M=n.searchValue,P=n.showSearch,k=n.fieldNames,$=n.defaultSearchValue,U=n.preserveOriginalLabel,z=U===void 0?!1:U,D=Xt(n,mnn),B=k||{},Y=B.label,q=Y===void 0?"label":Y,K=B.value,H=K===void 0?"value":K,G=B.options,Q=G===void 0?"options":G,le=m.useState(M??$),Z=ke(le,2),j=Z[0],F=Z[1],te=m.useRef();m.useImperativeHandle(r,function(){return te.current}),m.useEffect(function(){if(D.autoFocus){var be;te==null||(be=te.current)===null||be===void 0||be.focus()}},[D.autoFocus]),m.useEffect(function(){F(M)},[M]);var oe=m.useContext(or.ConfigContext),de=oe.getPrefixCls,pe=de("pro-filed-search-select",R),me=Ce(pe,E,fe({},"".concat(pe,"-disabled"),w)),ve=function(we,De){return Array.isArray(we)&&Array.isArray(De)&&we.length>0?we.map(function(Ae,Ee){var Re=De==null?void 0:De[Ee],Te=(Re==null?void 0:Re["data-item"])||{};return ee(ee(ee({},Te),Ae),{},{label:z?Te.label:Ae.label})}):[]},he=function be(we){return we.map(function(De,Ae){var Ee,Re=De,Te=Re.className,Oe=Re.optionType,Ne=Xt(Re,vnn),je=De[q],ne=De[H],J=(Ee=De[Q])!==null&&Ee!==void 0?Ee:[];return Oe==="optGroup"||De.options?ee(ee({label:je},Ne),{},{data_title:je,title:je,key:ne??"".concat(je==null?void 0:je.toString(),"-").concat(Ae,"-").concat(cB()),children:be(J)}):ee(ee({title:je},Ne),{},{data_title:je,value:ne??Ae,key:ne??"".concat(je==null?void 0:je.toString(),"-").concat(Ae,"-").concat(cB()),"data-item":De,className:"".concat(pe,"-option ").concat(Te||"").trim(),label:(i==null?void 0:i(De))||je})})};return N.jsx(bg,ee(ee({ref:te,className:me,allowClear:!0,autoClearSearchValue:u,disabled:w,mode:o,showSearch:P,searchValue:j,optionFilterProp:_,optionLabelProp:b,onClear:function(){O==null||O(),x(void 0),P&&F(void 0)}},D),{},{filterOption:D.filterOption==!1?!1:function(be,we){var De,Ae,Ee;return D.filterOption&&typeof D.filterOption=="function"?D.filterOption(be,ee(ee({},we),{},{label:we==null?void 0:we.data_title})):!!(we!=null&&(De=we.data_title)!==null&&De!==void 0&&De.toString().toLowerCase().includes(be.toLowerCase())||we!=null&&(Ae=we.label)!==null&&Ae!==void 0&&Ae.toString().toLowerCase().includes(be.toLowerCase())||we!=null&&(Ee=we.value)!==null&&Ee!==void 0&&Ee.toString().toLowerCase().includes(be.toLowerCase()))},onSearch:P?function(be){v&&x(be),a==null||a(be),F(be)}:void 0,onChange:function(we,De){P&&u&&(x(void 0),a==null||a(""),F(void 0));for(var Ae=arguments.length,Ee=new Array(Ae>2?Ae-2:0),Re=2;Re<Ae;Re++)Ee[Re-2]=arguments[Re];if(!n.labelInValue){l==null||l.apply(void 0,[we,De].concat(Ee));return}if(o!=="multiple"&&!Array.isArray(De)){var Te=De&&De["data-item"];if(!we||!Te){var Oe=we&&ee(ee({},we),{},{label:z?Te==null?void 0:Te.label:we.label});l==null||l.apply(void 0,[Oe,De].concat(Ee))}else l==null||l.apply(void 0,[ee(ee(ee({},we),Te),{},{label:z?Te.label:we.label}),De].concat(Ee));return}var Ne=ve(we,De);l==null||l.apply(void 0,[Ne,De].concat(Ee)),h&&T()},onFocus:function(we){f&&x(j),s==null||s(we)},options:he(C||[])}))};const _nn=V.forwardRef(ynn);var bnn=["value","text"],Snn=["mode","valueEnum","render","renderFormItem","request","fieldProps","plain","children","light","proFieldKey","params","label","bordered","id","lightLabel","labelTrigger"],Enn=function(n){for(var r=n.label,i=n.words,o=m.useContext(or.ConfigContext),a=o.getPrefixCls,s=a("pro-select-item-option-content-light"),l=a("pro-select-item-option-content"),c=ia("Highlight",function(y){return fe(fe({},".".concat(s),{color:y.colorPrimary}),".".concat(l),{flex:"auto",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"})}),u=c.wrapSSR,d=new RegExp(i.map(function(y){return y.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}).join("|"),"gi"),f=r,p=[];f.length;){var h=d.exec(f);if(!h){p.push(f);break}var g=h.index,v=h[0].length+g;p.push(f.slice(0,g),V.createElement("span",{className:s},f.slice(g,v))),f=f.slice(v)}return u(V.createElement.apply(V,["div",{title:r,className:l}].concat(p)))};function Yie(e,n){var r,i;if(!n||e!=null&&(r=e.label)!==null&&r!==void 0&&r.toString().toLowerCase().includes(n.toLowerCase())||e!=null&&(i=e.value)!==null&&i!==void 0&&i.toString().toLowerCase().includes(n.toLowerCase()))return!0;if(e.children||e.options){var o=[].concat(Tt(e.children||[]),[e.options||[]]).find(function(a){return Yie(a,n)});if(o)return!0}return!1}var Cnn=function(n){var r=[],i=o_(n);return i.forEach(function(o,a){var s=i.get(a)||i.get("".concat(a));if(s){if(cn(s)==="object"&&s!==null&&s!==void 0&&s.text){r.push({text:s==null?void 0:s.text,value:a,label:s==null?void 0:s.text,disabled:s.disabled});return}r.push({text:s,value:a})}}),r},bI=function(n){var r,i,o,a,s=n.cacheForSwr,l=n.fieldProps,c=m.useState(n.defaultKeyWords),u=ke(c,2),d=u[0],f=u[1],p=m.useState(function(){return n.proFieldKey?n.proFieldKey.toString():n.request?cB():"no-fetch"}),h=ke(p,1),g=h[0],v=m.useRef(g),y=Yh(function(P){return Cnn(o_(P)).map(function(k){var $=k.value,U=k.text,z=Xt(k,bnn);return ee({label:U,value:$,key:$},z)})}),_=Qu(function(){if(l){var P=(l==null?void 0:l.options)||(l==null?void 0:l.treeData);if(P){var k=l.fieldNames||{},$=k.children,U=k.label,z=k.value,D=function B(Y,q){if(Y!=null&&Y.length)for(var K=Y.length,H=0;H<K;){var G=Y[H++];(G[$]||G[U]||G[z])&&(G[q]=G[q==="children"?$:q==="label"?U:z],B(G[$],q))}};return $&&D(P,"children"),U&&D(P,"label"),z&&D(P,"value"),P}}},[l]),S=dr(function(){return n.valueEnum?y(n.valueEnum):[]},{value:_}),b=ke(S,2),E=b[0],w=b[1];lJt(function(){var P,k;!n.valueEnum||(P=n.fieldProps)!==null&&P!==void 0&&P.options||(k=n.fieldProps)!==null&&k!==void 0&&k.treeData||w(y(n.valueEnum))},[n.valueEnum]);var C=aJt([v.current,n.params,d],(r=(i=n.debounceTime)!==null&&i!==void 0?i:n==null||(o=n.fieldProps)===null||o===void 0?void 0:o.debounceTime)!==null&&r!==void 0?r:0,[n.params,d]),x=ife(function(){return n.request?C:null},function(P){var k=ke(P,3),$=k[1],U=k[2];return n.request(ee(ee({},$),{},{keyWords:U}),n)},{revalidateIfStale:!s,revalidateOnReconnect:s,shouldRetryOnError:!1,revalidateOnFocus:!1}),T=x.data,R=x.mutate,O=x.isValidating,M=m.useMemo(function(){var P,k,$=E==null?void 0:E.map(function(U){if(typeof U=="string")return{label:U,value:U};if(U.children||U.options){var z=[].concat(Tt(U.children||[]),Tt(U.options||[])).filter(function(D){return Yie(D,d)});return ee(ee({},U),{},{children:z,options:z})}return U});return((P=n.fieldProps)===null||P===void 0?void 0:P.filterOption)===!0||((k=n.fieldProps)===null||k===void 0?void 0:k.filterOption)===void 0?$==null?void 0:$.filter(function(U){return U?d?Yie(U,d):!0:!1}):$},[E,d,(a=n.fieldProps)===null||a===void 0?void 0:a.filterOption]);return[O,n.request?T:M,function(P){f(P)},function(){f(void 0),R([],!1)}]},wnn=function(n,r){var i,o=n.mode,a=n.valueEnum,s=n.render,l=n.renderFormItem;n.request;var c=n.fieldProps;n.plain,n.children;var u=n.light;n.proFieldKey,n.params;var d=n.label,f=n.bordered,p=n.id,h=n.lightLabel,g=n.labelTrigger,v=Xt(n,Snn),y=m.useRef(),_=cs(),S=m.useRef(""),b=c.fieldNames;m.useEffect(function(){S.current=c==null?void 0:c.searchValue},[c==null?void 0:c.searchValue]);var E=bI(n),w=ke(E,4),C=w[0],x=w[1],T=w[2],R=w[3],O=(or==null||(i=or.useConfig)===null||i===void 0?void 0:i.call(or))||{componentSize:"middle"},M=O.componentSize;m.useImperativeHandle(r,function(){return ee(ee({},y.current||{}),{},{fetchData:function(Y){return T(Y)}})},[T]);var P=m.useMemo(function(){if(o==="read"){var B=b||{},Y=B.label,q=Y===void 0?"label":Y,K=B.value,H=K===void 0?"value":K,G=B.options,Q=G===void 0?"options":G,le=new Map,Z=function j(F){if(!(F!=null&&F.length))return le;for(var te=F.length,oe=0;oe<te;){var de=F[oe++];le.set(de[H],de[q]),j(de[Q])}return le};return Z(x)}},[b,o,x]);if(o==="read"){var k=N.jsx(N.Fragment,{children:_I(v.text,o_(a||P))});if(s){var $;return($=s(k,ee({mode:o},c),k))!==null&&$!==void 0?$:null}return k}if(o==="edit"||o==="update"){var U=function(){return u?N.jsx(gnn,ee(ee({},wf(f)),{},{id:p,loading:C,ref:y,allowClear:!0,size:M,options:x,label:d,placeholder:_.getMessage("tableForm.selectPlaceholder","请选择"),lightLabel:h,labelTrigger:g,fetchData:T},c)):N.jsx(_nn,ee(ee(ee({className:v.className,style:ee({minWidth:100},v.style)},wf(f)),{},{id:p,loading:C,ref:y,allowClear:!0,defaultSearchValue:n.defaultKeyWords,notFoundContent:C?N.jsx(t_,{size:"small"}):c==null?void 0:c.notFoundContent,fetchData:function(q){S.current=q??"",T(q)},resetData:R,preserveOriginalLabel:!0,optionItemRender:function(q){return typeof q.label=="string"&&S.current?N.jsx(Enn,{label:q.label,words:[S.current]}):q.label},placeholder:_.getMessage("tableForm.selectPlaceholder","请选择"),label:d},c),{},{options:x}),"SearchSelect")},z=U();if(l){var D;return(D=l(v.text,ee(ee({mode:o},c),{},{options:x,loading:C}),z))!==null&&D!==void 0?D:null}return z}return null};const xnn=V.forwardRef(wnn);var Tnn=["radioType","renderFormItem","mode","render","label","light"],Onn=function(n,r){var i;n.radioType;var o=n.renderFormItem,a=n.mode,s=n.render,l=n.label,c=n.light,u=Xt(n,Tnn),d=m.useContext(or.ConfigContext),f=d.getPrefixCls,p=f("pro-field-cascader"),h=bI(u),g=ke(h,3),v=g[0],y=g[1],_=g[2],S=cs(),b=m.useRef(),E=m.useState(!1),w=ke(E,2),C=w[0],x=w[1];m.useImperativeHandle(r,function(){return ee(ee({},b.current||{}),{},{fetchData:function(q){return _(q)}})},[_]);var T=m.useMemo(function(){var Y;if(a==="read"){var q=((Y=u.fieldProps)===null||Y===void 0?void 0:Y.fieldNames)||{},K=q.value,H=K===void 0?"value":K,G=q.label,Q=G===void 0?"label":G,le=q.children,Z=le===void 0?"children":le,j=new Map,F=function te(oe){if(!(oe!=null&&oe.length))return j;for(var de=oe.length,pe=0;pe<de;){var me=oe[pe++];j.set(me[H],me[Q]),te(me[Z])}return j};return F(y)}},[a,y,(i=u.fieldProps)===null||i===void 0?void 0:i.fieldNames]);if(a==="read"){var R=N.jsx(N.Fragment,{children:_I(u.text,o_(u.valueEnum||T))});if(s){var O;return(O=s(u.text,ee({mode:a},u.fieldProps),R))!==null&&O!==void 0?O:null}return R}if(a==="edit"){var M,P,k=N.jsx(hI,ee(ee(ee({},wf(!c)),{},{ref:b,open:C,suffixIcon:v?N.jsx(Mm,{}):void 0,placeholder:S.getMessage("tableForm.selectPlaceholder","请选择"),allowClear:((M=u.fieldProps)===null||M===void 0?void 0:M.allowClear)!==!1},u.fieldProps),{},{onDropdownVisibleChange:function(q){var K,H;u==null||(K=u.fieldProps)===null||K===void 0||(H=K.onDropdownVisibleChange)===null||H===void 0||H.call(K,q),x(q)},className:Ce((P=u.fieldProps)===null||P===void 0?void 0:P.className,p),options:y}));if(o){var $;k=($=o(u.text,ee(ee({mode:a},u.fieldProps),{},{options:y,loading:v}),k))!==null&&$!==void 0?$:null}if(c){var U=u.fieldProps,z=U.disabled,D=U.value,B=!!D&&(D==null?void 0:D.length)!==0;return N.jsx(i_,{label:l,disabled:z,bordered:u.bordered,value:B||C?k:null,style:B?{paddingInlineEnd:0}:void 0,allowClear:!1,downIcon:B||C?!1:void 0,onClick:function(){var q,K;x(!0),u==null||(q=u.fieldProps)===null||q===void 0||(K=q.onDropdownVisibleChange)===null||K===void 0||K.call(q,!0)}})}return k}return null};const Rnn=V.forwardRef(Onn);var Inn=["layout","renderFormItem","mode","render"],Nnn=["fieldNames"],Mnn=function(n,r){var i,o,a=n.layout,s=a===void 0?"horizontal":a,l=n.renderFormItem,c=n.mode,u=n.render,d=Xt(n,Inn),f=m.useContext(or.ConfigContext),p=f.getPrefixCls,h=p("pro-field-checkbox"),g=(i=Hr.Item)===null||i===void 0||(o=i.useStatus)===null||o===void 0?void 0:o.call(i),v=bI(d),y=ke(v,3),_=y[0],S=y[1],b=y[2],E=ia("Checkbox",function(B){return fe({},".".concat(h),{"&-error":{span:{color:B.colorError}},"&-warning":{span:{color:B.colorWarning}},"&-vertical":fe(fe(fe({},"&".concat(B.antCls,"-checkbox-group"),{display:"inline-block"}),"".concat(B.antCls,"-checkbox-wrapper+").concat(B.antCls,"-checkbox-wrapper"),{"margin-inline-start":"0 !important"}),"".concat(B.antCls,"-checkbox-group-item"),{display:"flex",marginInlineEnd:0})})}),w=E.wrapSSR,C=E.hashId,x=b6==null?void 0:b6(),T=x.token,R=m.useRef();if(m.useImperativeHandle(r,function(){return ee(ee({},R.current||{}),{},{fetchData:function(Y){return b(Y)}})},[b]),_)return N.jsx(t_,{size:"small"});if(c==="read"){var O=S!=null&&S.length?S==null?void 0:S.reduce(function(B,Y){var q;return ee(ee({},B),{},fe({},(q=Y.value)!==null&&q!==void 0?q:"",Y.label))},{}):void 0,M=_I(d.text,o_(d.valueEnum||O));if(u){var P;return(P=u(d.text,ee({mode:c},d.fieldProps),N.jsx(N.Fragment,{children:M})))!==null&&P!==void 0?P:null}return N.jsx("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:T.marginSM},children:M})}if(c==="edit"){var k,$=d.fieldProps||{};$.fieldNames;var U=Xt($,Nnn),z=w(N.jsx(ow.Group,ee(ee({},U),{},{className:Ce((k=d.fieldProps)===null||k===void 0?void 0:k.className,C,"".concat(h,"-").concat(s),fe(fe({},"".concat(h,"-error"),(g==null?void 0:g.status)==="error"),"".concat(h,"-warning"),(g==null?void 0:g.status)==="warning")),options:S})));if(l){var D;return(D=l(d.text,ee(ee({mode:c},d.fieldProps),{},{options:S,loading:_}),z))!==null&&D!==void 0?D:null}return z}return null};const Pnn=V.forwardRef(Mnn);var Ann=function(n,r){if(typeof n!="string")return n;try{if(r==="json")return JSON.stringify(JSON.parse(n),null,2)}catch{}return n},Dnn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.language,l=s===void 0?"text":s,c=n.renderFormItem,u=n.plain,d=n.fieldProps,f=Ann(i,l),p=Am.useToken(),h=p.token;if(o==="read"){var g=N.jsx("pre",ee(ee({ref:r},d),{},{style:ee({padding:16,overflow:"auto",fontSize:"85%",lineHeight:1.45,color:h.colorTextSecondary,fontFamily:h.fontFamilyCode,backgroundColor:"rgba(150, 150, 150, 0.1)",borderRadius:3,width:"min-content"},d.style),children:N.jsx("code",{children:f})}));return a?a(f,ee(ee({mode:o},d),{},{ref:r}),g):g}if(o==="edit"||o==="update"){d.value=f;var v=N.jsx(Oi.TextArea,ee(ee({rows:5},d),{},{ref:r}));if(u&&(v=N.jsx(Oi,ee(ee({},d),{},{ref:r}))),c){var y;return(y=c(f,ee(ee({mode:o},d),{},{ref:r}),v))!==null&&y!==void 0?y:null}return v}return null};const Kxe=V.forwardRef(Dnn);var hp={},Lk={},knn=typeof oo=="object"&&oo&&oo.Object===Object&&oo,xWe=knn,Lnn=xWe,$nn=typeof self=="object"&&self&&self.Object===Object&&self,Fnn=Lnn||$nn||Function("return this")(),wg=Fnn,Bnn=wg,jnn=Bnn.Symbol,SI=jnn,Xxe=SI,TWe=Object.prototype,Unn=TWe.hasOwnProperty,Hnn=TWe.toString,mM=Xxe?Xxe.toStringTag:void 0;function znn(e){var n=Unn.call(e,mM),r=e[mM];try{e[mM]=void 0;var i=!0}catch{}var o=Hnn.call(e);return i&&(n?e[mM]=r:delete e[mM]),o}var Vnn=znn,Gnn=Object.prototype,Wnn=Gnn.toString;function Ynn(e){return Wnn.call(e)}var qnn=Ynn,Qxe=SI,Knn=Vnn,Xnn=qnn,Qnn="[object Null]",Znn="[object Undefined]",Zxe=Qxe?Qxe.toStringTag:void 0;function Jnn(e){return e==null?e===void 0?Znn:Qnn:Zxe&&Zxe in Object(e)?Knn(e):Xnn(e)}var l_=Jnn,ern=Array.isArray,Xc=ern;const OWe=Or(Xc);function trn(e){return e!=null&&typeof e=="object"}var zp=trn,nrn=l_,rrn=Xc,irn=zp,orn="[object String]";function arn(e){return typeof e=="string"||!rrn(e)&&irn(e)&&nrn(e)==orn}var pfe=arn;const Es=Or(pfe);function srn(e){return function(n,r,i){for(var o=-1,a=Object(n),s=i(n),l=s.length;l--;){var c=s[e?l:++o];if(r(a[c],c,a)===!1)break}return n}}var lrn=srn,crn=lrn,urn=crn(),RWe=urn;function drn(e,n){for(var r=-1,i=Array(e);++r<e;)i[r]=n(r);return i}var frn=drn,prn=l_,hrn=zp,grn="[object Arguments]";function mrn(e){return hrn(e)&&prn(e)==grn}var vrn=mrn,Jxe=vrn,yrn=zp,IWe=Object.prototype,_rn=IWe.hasOwnProperty,brn=IWe.propertyIsEnumerable,Srn=Jxe(function(){return arguments}())?Jxe:function(e){return yrn(e)&&_rn.call(e,"callee")&&!brn.call(e,"callee")},$k=Srn,pB={exports:{}};function Ern(){return!1}var Crn=Ern;pB.exports;(function(e,n){var r=wg,i=Crn,o=n&&!n.nodeType&&n,a=o&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===o,l=s?r.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||i;e.exports=u})(pB,pB.exports);var Fk=pB.exports,wrn=9007199254740991,xrn=/^(?:0|[1-9]\d*)$/;function Trn(e,n){var r=typeof e;return n=n??wrn,!!n&&(r=="number"||r!="symbol"&&xrn.test(e))&&e>-1&&e%1==0&&e<n}var UU=Trn,Orn=9007199254740991;function Rrn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Orn}var hfe=Rrn,Irn=l_,Nrn=hfe,Mrn=zp,Prn="[object Arguments]",Arn="[object Array]",Drn="[object Boolean]",krn="[object Date]",Lrn="[object Error]",$rn="[object Function]",Frn="[object Map]",Brn="[object Number]",jrn="[object Object]",Urn="[object RegExp]",Hrn="[object Set]",zrn="[object String]",Vrn="[object WeakMap]",Grn="[object ArrayBuffer]",Wrn="[object DataView]",Yrn="[object Float32Array]",qrn="[object Float64Array]",Krn="[object Int8Array]",Xrn="[object Int16Array]",Qrn="[object Int32Array]",Zrn="[object Uint8Array]",Jrn="[object Uint8ClampedArray]",ein="[object Uint16Array]",tin="[object Uint32Array]",ba={};ba[Yrn]=ba[qrn]=ba[Krn]=ba[Xrn]=ba[Qrn]=ba[Zrn]=ba[Jrn]=ba[ein]=ba[tin]=!0;ba[Prn]=ba[Arn]=ba[Grn]=ba[Drn]=ba[Wrn]=ba[krn]=ba[Lrn]=ba[$rn]=ba[Frn]=ba[Brn]=ba[jrn]=ba[Urn]=ba[Hrn]=ba[zrn]=ba[Vrn]=!1;function nin(e){return Mrn(e)&&Nrn(e.length)&&!!ba[Irn(e)]}var rin=nin;function iin(e){return function(n){return e(n)}}var HU=iin,hB={exports:{}};hB.exports;(function(e,n){var r=xWe,i=n&&!n.nodeType&&n,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a&&r.process,l=function(){try{var c=o&&o.require&&o.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l})(hB,hB.exports);var gfe=hB.exports,oin=rin,ain=HU,eTe=gfe,tTe=eTe&&eTe.isTypedArray,sin=tTe?ain(tTe):oin,zU=sin,lin=frn,cin=$k,uin=Xc,din=Fk,fin=UU,pin=zU,hin=Object.prototype,gin=hin.hasOwnProperty;function min(e,n){var r=uin(e),i=!r&&cin(e),o=!r&&!i&&din(e),a=!r&&!i&&!o&&pin(e),s=r||i||o||a,l=s?lin(e.length,String):[],c=l.length;for(var u in e)(n||gin.call(e,u))&&!(s&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||fin(u,c)))&&l.push(u);return l}var NWe=min,vin=Object.prototype;function yin(e){var n=e&&e.constructor,r=typeof n=="function"&&n.prototype||vin;return e===r}var Bk=yin;function _in(e,n){return function(r){return e(n(r))}}var MWe=_in,bin=MWe,Sin=bin(Object.keys,Object),Ein=Sin,Cin=Bk,win=Ein,xin=Object.prototype,Tin=xin.hasOwnProperty;function Oin(e){if(!Cin(e))return win(e);var n=[];for(var r in Object(e))Tin.call(e,r)&&r!="constructor"&&n.push(r);return n}var PWe=Oin;function Rin(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var wd=Rin;const AWe=Or(wd);var Iin=l_,Nin=wd,Min="[object AsyncFunction]",Pin="[object Function]",Ain="[object GeneratorFunction]",Din="[object Proxy]";function kin(e){if(!Nin(e))return!1;var n=Iin(e);return n==Pin||n==Ain||n==Min||n==Din}var VU=kin;const za=Or(VU);var Lin=VU,$in=hfe;function Fin(e){return e!=null&&$in(e.length)&&!Lin(e)}var c_=Fin,Bin=NWe,jin=PWe,Uin=c_;function Hin(e){return Uin(e)?Bin(e):jin(e)}var pw=Hin,zin=RWe,Vin=pw;function Gin(e,n){return e&&zin(e,n,Vin)}var DWe=Gin;function Win(e){return e}var jk=Win,Yin=jk;function qin(e){return typeof e=="function"?e:Yin}var kWe=qin,Kin=DWe,Xin=kWe;function Qin(e,n){return e&&Kin(e,Xin(n))}var mfe=Qin,Zin=MWe,Jin=Zin(Object.getPrototypeOf,Object),vfe=Jin,eon=l_,ton=vfe,non=zp,ron="[object Object]",ion=Function.prototype,oon=Object.prototype,LWe=ion.toString,aon=oon.hasOwnProperty,son=LWe.call(Object);function lon(e){if(!non(e)||eon(e)!=ron)return!1;var n=ton(e);if(n===null)return!0;var r=aon.call(n,"constructor")&&n.constructor;return typeof r=="function"&&r instanceof r&&LWe.call(r)==son}var GU=lon;const con=Or(GU);function uon(e,n){for(var r=-1,i=e==null?0:e.length,o=Array(i);++r<i;)o[r]=n(e[r],r,e);return o}var Uk=uon;function don(){this.__data__=[],this.size=0}var fon=don;function pon(e,n){return e===n||e!==e&&n!==n}var Hk=pon,hon=Hk;function gon(e,n){for(var r=e.length;r--;)if(hon(e[r][0],n))return r;return-1}var WU=gon,mon=WU,von=Array.prototype,yon=von.splice;function _on(e){var n=this.__data__,r=mon(n,e);if(r<0)return!1;var i=n.length-1;return r==i?n.pop():yon.call(n,r,1),--this.size,!0}var bon=_on,Son=WU;function Eon(e){var n=this.__data__,r=Son(n,e);return r<0?void 0:n[r][1]}var Con=Eon,won=WU;function xon(e){return won(this.__data__,e)>-1}var Ton=xon,Oon=WU;function Ron(e,n){var r=this.__data__,i=Oon(r,e);return i<0?(++this.size,r.push([e,n])):r[i][1]=n,this}var Ion=Ron,Non=fon,Mon=bon,Pon=Con,Aon=Ton,Don=Ion;function EI(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}EI.prototype.clear=Non;EI.prototype.delete=Mon;EI.prototype.get=Pon;EI.prototype.has=Aon;EI.prototype.set=Don;var YU=EI,kon=YU;function Lon(){this.__data__=new kon,this.size=0}var $on=Lon;function Fon(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}var Bon=Fon;function jon(e){return this.__data__.get(e)}var Uon=jon;function Hon(e){return this.__data__.has(e)}var zon=Hon,Von=wg,Gon=Von["__core-js_shared__"],Won=Gon,Vq=Won,nTe=function(){var e=/[^.]+$/.exec(Vq&&Vq.keys&&Vq.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Yon(e){return!!nTe&&nTe in e}var qon=Yon,Kon=Function.prototype,Xon=Kon.toString;function Qon(e){if(e!=null){try{return Xon.call(e)}catch{}try{return e+""}catch{}}return""}var $We=Qon,Zon=VU,Jon=qon,ean=wd,tan=$We,nan=/[\\^$.*+?()[\]{}|]/g,ran=/^\[object .+?Constructor\]$/,ian=Function.prototype,oan=Object.prototype,aan=ian.toString,san=oan.hasOwnProperty,lan=RegExp("^"+aan.call(san).replace(nan,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function can(e){if(!ean(e)||Jon(e))return!1;var n=Zon(e)?lan:ran;return n.test(tan(e))}var uan=can;function dan(e,n){return e==null?void 0:e[n]}var fan=dan,pan=uan,han=fan;function gan(e,n){var r=han(e,n);return pan(r)?r:void 0}var hw=gan,man=hw,van=wg,yan=man(van,"Map"),yfe=yan,_an=hw,ban=_an(Object,"create"),qU=ban,rTe=qU;function San(){this.__data__=rTe?rTe(null):{},this.size=0}var Ean=San;function Can(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var wan=Can,xan=qU,Tan="__lodash_hash_undefined__",Oan=Object.prototype,Ran=Oan.hasOwnProperty;function Ian(e){var n=this.__data__;if(xan){var r=n[e];return r===Tan?void 0:r}return Ran.call(n,e)?n[e]:void 0}var Nan=Ian,Man=qU,Pan=Object.prototype,Aan=Pan.hasOwnProperty;function Dan(e){var n=this.__data__;return Man?n[e]!==void 0:Aan.call(n,e)}var kan=Dan,Lan=qU,$an="__lodash_hash_undefined__";function Fan(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Lan&&n===void 0?$an:n,this}var Ban=Fan,jan=Ean,Uan=wan,Han=Nan,zan=kan,Van=Ban;function CI(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}CI.prototype.clear=jan;CI.prototype.delete=Uan;CI.prototype.get=Han;CI.prototype.has=zan;CI.prototype.set=Van;var Gan=CI,iTe=Gan,Wan=YU,Yan=yfe;function qan(){this.size=0,this.__data__={hash:new iTe,map:new(Yan||Wan),string:new iTe}}var Kan=qan;function Xan(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var Qan=Xan,Zan=Qan;function Jan(e,n){var r=e.__data__;return Zan(n)?r[typeof n=="string"?"string":"hash"]:r.map}var KU=Jan,esn=KU;function tsn(e){var n=esn(this,e).delete(e);return this.size-=n?1:0,n}var nsn=tsn,rsn=KU;function isn(e){return rsn(this,e).get(e)}var osn=isn,asn=KU;function ssn(e){return asn(this,e).has(e)}var lsn=ssn,csn=KU;function usn(e,n){var r=csn(this,e),i=r.size;return r.set(e,n),this.size+=r.size==i?0:1,this}var dsn=usn,fsn=Kan,psn=nsn,hsn=osn,gsn=lsn,msn=dsn;function wI(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var i=e[n];this.set(i[0],i[1])}}wI.prototype.clear=fsn;wI.prototype.delete=psn;wI.prototype.get=hsn;wI.prototype.has=gsn;wI.prototype.set=msn;var _fe=wI,vsn=YU,ysn=yfe,_sn=_fe,bsn=200;function Ssn(e,n){var r=this.__data__;if(r instanceof vsn){var i=r.__data__;if(!ysn||i.length<bsn-1)return i.push([e,n]),this.size=++r.size,this;r=this.__data__=new _sn(i)}return r.set(e,n),this.size=r.size,this}var Esn=Ssn,Csn=YU,wsn=$on,xsn=Bon,Tsn=Uon,Osn=zon,Rsn=Esn;function xI(e){var n=this.__data__=new Csn(e);this.size=n.size}xI.prototype.clear=wsn;xI.prototype.delete=xsn;xI.prototype.get=Tsn;xI.prototype.has=Osn;xI.prototype.set=Rsn;var XU=xI,Isn="__lodash_hash_undefined__";function Nsn(e){return this.__data__.set(e,Isn),this}var Msn=Nsn;function Psn(e){return this.__data__.has(e)}var Asn=Psn,Dsn=_fe,ksn=Msn,Lsn=Asn;function gB(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new Dsn;++n<r;)this.add(e[n])}gB.prototype.add=gB.prototype.push=ksn;gB.prototype.has=Lsn;var bfe=gB;function $sn(e,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(e[r],r,e))return!0;return!1}var Fsn=$sn;function Bsn(e,n){return e.has(n)}var Sfe=Bsn,jsn=bfe,Usn=Fsn,Hsn=Sfe,zsn=1,Vsn=2;function Gsn(e,n,r,i,o,a){var s=r&zsn,l=e.length,c=n.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(n);if(u&&d)return u==n&&d==e;var f=-1,p=!0,h=r&Vsn?new jsn:void 0;for(a.set(e,n),a.set(n,e);++f<l;){var g=e[f],v=n[f];if(i)var y=s?i(v,g,f,n,e,a):i(g,v,f,e,n,a);if(y!==void 0){if(y)continue;p=!1;break}if(h){if(!Usn(n,function(_,S){if(!Hsn(h,S)&&(g===_||o(g,_,r,i,a)))return h.push(S)})){p=!1;break}}else if(!(g===v||o(g,v,r,i,a))){p=!1;break}}return a.delete(e),a.delete(n),p}var FWe=Gsn,Wsn=wg,Ysn=Wsn.Uint8Array,BWe=Ysn;function qsn(e){var n=-1,r=Array(e.size);return e.forEach(function(i,o){r[++n]=[o,i]}),r}var Ksn=qsn;function Xsn(e){var n=-1,r=Array(e.size);return e.forEach(function(i){r[++n]=i}),r}var Efe=Xsn,oTe=SI,aTe=BWe,Qsn=Hk,Zsn=FWe,Jsn=Ksn,eln=Efe,tln=1,nln=2,rln="[object Boolean]",iln="[object Date]",oln="[object Error]",aln="[object Map]",sln="[object Number]",lln="[object RegExp]",cln="[object Set]",uln="[object String]",dln="[object Symbol]",fln="[object ArrayBuffer]",pln="[object DataView]",sTe=oTe?oTe.prototype:void 0,Gq=sTe?sTe.valueOf:void 0;function hln(e,n,r,i,o,a,s){switch(r){case pln:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case fln:return!(e.byteLength!=n.byteLength||!a(new aTe(e),new aTe(n)));case rln:case iln:case sln:return Qsn(+e,+n);case oln:return e.name==n.name&&e.message==n.message;case lln:case uln:return e==n+"";case aln:var l=Jsn;case cln:var c=i&tln;if(l||(l=eln),e.size!=n.size&&!c)return!1;var u=s.get(e);if(u)return u==n;i|=nln,s.set(e,n);var d=Zsn(l(e),l(n),i,o,a,s);return s.delete(e),d;case dln:if(Gq)return Gq.call(e)==Gq.call(n)}return!1}var gln=hln;function mln(e,n){for(var r=-1,i=n.length,o=e.length;++r<i;)e[o+r]=n[r];return e}var Cfe=mln,vln=Cfe,yln=Xc;function _ln(e,n,r){var i=n(e);return yln(e)?i:vln(i,r(e))}var jWe=_ln;function bln(e,n){for(var r=-1,i=e==null?0:e.length,o=0,a=[];++r<i;){var s=e[r];n(s,r,e)&&(a[o++]=s)}return a}var Sln=bln;function Eln(){return[]}var UWe=Eln,Cln=Sln,wln=UWe,xln=Object.prototype,Tln=xln.propertyIsEnumerable,lTe=Object.getOwnPropertySymbols,Oln=lTe?function(e){return e==null?[]:(e=Object(e),Cln(lTe(e),function(n){return Tln.call(e,n)}))}:wln,wfe=Oln,Rln=jWe,Iln=wfe,Nln=pw;function Mln(e){return Rln(e,Nln,Iln)}var HWe=Mln,cTe=HWe,Pln=1,Aln=Object.prototype,Dln=Aln.hasOwnProperty;function kln(e,n,r,i,o,a){var s=r&Pln,l=cTe(e),c=l.length,u=cTe(n),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var p=l[f];if(!(s?p in n:Dln.call(n,p)))return!1}var h=a.get(e),g=a.get(n);if(h&&g)return h==n&&g==e;var v=!0;a.set(e,n),a.set(n,e);for(var y=s;++f<c;){p=l[f];var _=e[p],S=n[p];if(i)var b=s?i(S,_,p,n,e,a):i(_,S,p,e,n,a);if(!(b===void 0?_===S||o(_,S,r,i,a):b)){v=!1;break}y||(y=p=="constructor")}if(v&&!y){var E=e.constructor,w=n.constructor;E!=w&&"constructor"in e&&"constructor"in n&&!(typeof E=="function"&&E instanceof E&&typeof w=="function"&&w instanceof w)&&(v=!1)}return a.delete(e),a.delete(n),v}var Lln=kln,$ln=hw,Fln=wg,Bln=$ln(Fln,"DataView"),jln=Bln,Uln=hw,Hln=wg,zln=Uln(Hln,"Promise"),Vln=zln,Gln=hw,Wln=wg,Yln=Gln(Wln,"Set"),zWe=Yln,qln=hw,Kln=wg,Xln=qln(Kln,"WeakMap"),Qln=Xln,qie=jln,Kie=yfe,Xie=Vln,Qie=zWe,Zie=Qln,VWe=l_,TI=$We,uTe="[object Map]",Zln="[object Object]",dTe="[object Promise]",fTe="[object Set]",pTe="[object WeakMap]",hTe="[object DataView]",Jln=TI(qie),ecn=TI(Kie),tcn=TI(Xie),ncn=TI(Qie),rcn=TI(Zie),PE=VWe;(qie&&PE(new qie(new ArrayBuffer(1)))!=hTe||Kie&&PE(new Kie)!=uTe||Xie&&PE(Xie.resolve())!=dTe||Qie&&PE(new Qie)!=fTe||Zie&&PE(new Zie)!=pTe)&&(PE=function(e){var n=VWe(e),r=n==Zln?e.constructor:void 0,i=r?TI(r):"";if(i)switch(i){case Jln:return hTe;case ecn:return uTe;case tcn:return dTe;case ncn:return fTe;case rcn:return pTe}return n});var zk=PE,Wq=XU,icn=FWe,ocn=gln,acn=Lln,gTe=zk,mTe=Xc,vTe=Fk,scn=zU,lcn=1,yTe="[object Arguments]",_Te="[object Array]",d4="[object Object]",ccn=Object.prototype,bTe=ccn.hasOwnProperty;function ucn(e,n,r,i,o,a){var s=mTe(e),l=mTe(n),c=s?_Te:gTe(e),u=l?_Te:gTe(n);c=c==yTe?d4:c,u=u==yTe?d4:u;var d=c==d4,f=u==d4,p=c==u;if(p&&vTe(e)){if(!vTe(n))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new Wq),s||scn(e)?icn(e,n,r,i,o,a):ocn(e,n,c,r,i,o,a);if(!(r&lcn)){var h=d&&bTe.call(e,"__wrapped__"),g=f&&bTe.call(n,"__wrapped__");if(h||g){var v=h?e.value():e,y=g?n.value():n;return a||(a=new Wq),o(v,y,r,i,a)}}return p?(a||(a=new Wq),acn(e,n,r,i,o,a)):!1}var dcn=ucn,fcn=dcn,STe=zp;function GWe(e,n,r,i,o){return e===n?!0:e==null||n==null||!STe(e)&&!STe(n)?e!==e&&n!==n:fcn(e,n,r,i,GWe,o)}var xfe=GWe,pcn=XU,hcn=xfe,gcn=1,mcn=2;function vcn(e,n,r,i){var o=r.length,a=o,s=!i;if(e==null)return!a;for(e=Object(e);o--;){var l=r[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){l=r[o];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===void 0&&!(c in e))return!1}else{var f=new pcn;if(i)var p=i(u,d,c,e,n,f);if(!(p===void 0?hcn(d,u,gcn|mcn,i,f):p))return!1}}return!0}var ycn=vcn,_cn=wd;function bcn(e){return e===e&&!_cn(e)}var WWe=bcn,Scn=WWe,Ecn=pw;function Ccn(e){for(var n=Ecn(e),r=n.length;r--;){var i=n[r],o=e[i];n[r]=[i,o,Scn(o)]}return n}var wcn=Ccn;function xcn(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}var YWe=xcn,Tcn=ycn,Ocn=wcn,Rcn=YWe;function Icn(e){var n=Ocn(e);return n.length==1&&n[0][2]?Rcn(n[0][0],n[0][1]):function(r){return r===e||Tcn(r,e,n)}}var Ncn=Icn,Mcn=l_,Pcn=zp,Acn="[object Symbol]";function Dcn(e){return typeof e=="symbol"||Pcn(e)&&Mcn(e)==Acn}var Vk=Dcn,kcn=Xc,Lcn=Vk,$cn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fcn=/^\w*$/;function Bcn(e,n){if(kcn(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Lcn(e)?!0:Fcn.test(e)||!$cn.test(e)||n!=null&&e in Object(n)}var Tfe=Bcn,qWe=_fe,jcn="Expected a function";function Ofe(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(jcn);var r=function(){var i=arguments,o=n?n.apply(this,i):i[0],a=r.cache;if(a.has(o))return a.get(o);var s=e.apply(this,i);return r.cache=a.set(o,s)||a,s};return r.cache=new(Ofe.Cache||qWe),r}Ofe.Cache=qWe;var Ucn=Ofe,Hcn=Ucn,zcn=500;function Vcn(e){var n=Hcn(e,function(i){return r.size===zcn&&r.clear(),i}),r=n.cache;return n}var Gcn=Vcn,Wcn=Gcn,Ycn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qcn=/\\(\\)?/g,Kcn=Wcn(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Ycn,function(r,i,o,a){n.push(o?a.replace(qcn,"$1"):i||r)}),n}),Xcn=Kcn,ETe=SI,Qcn=Uk,Zcn=Xc,Jcn=Vk,eun=1/0,CTe=ETe?ETe.prototype:void 0,wTe=CTe?CTe.toString:void 0;function KWe(e){if(typeof e=="string")return e;if(Zcn(e))return Qcn(e,KWe)+"";if(Jcn(e))return wTe?wTe.call(e):"";var n=e+"";return n=="0"&&1/e==-eun?"-0":n}var tun=KWe,nun=tun;function run(e){return e==null?"":nun(e)}var iun=run,oun=Xc,aun=Tfe,sun=Xcn,lun=iun;function cun(e,n){return oun(e)?e:aun(e,n)?[e]:sun(lun(e))}var OI=cun,uun=Vk,dun=1/0;function fun(e){if(typeof e=="string"||uun(e))return e;var n=e+"";return n=="0"&&1/e==-dun?"-0":n}var RI=fun,pun=OI,hun=RI;function gun(e,n){n=pun(n,e);for(var r=0,i=n.length;e!=null&&r<i;)e=e[hun(n[r++])];return r&&r==i?e:void 0}var QU=gun,mun=QU;function vun(e,n,r){var i=e==null?void 0:mun(e,n);return i===void 0?r:i}var XWe=vun;const fr=Or(XWe);function yun(e,n){return e!=null&&n in Object(e)}var _un=yun,bun=OI,Sun=$k,Eun=Xc,Cun=UU,wun=hfe,xun=RI;function Tun(e,n,r){n=bun(n,e);for(var i=-1,o=n.length,a=!1;++i<o;){var s=xun(n[i]);if(!(a=e!=null&&r(e,s)))break;e=e[s]}return a||++i!=o?a:(o=e==null?0:e.length,!!o&&wun(o)&&Cun(s,o)&&(Eun(e)||Sun(e)))}var Oun=Tun,Run=_un,Iun=Oun;function Nun(e,n){return e!=null&&Iun(e,n,Run)}var QWe=Nun,Mun=xfe,Pun=XWe,Aun=QWe,Dun=Tfe,kun=WWe,Lun=YWe,$un=RI,Fun=1,Bun=2;function jun(e,n){return Dun(e)&&kun(n)?Lun($un(e),n):function(r){var i=Pun(r,e);return i===void 0&&i===n?Aun(r,e):Mun(n,i,Fun|Bun)}}var Uun=jun;function Hun(e){return function(n){return n==null?void 0:n[e]}}var zun=Hun,Vun=QU;function Gun(e){return function(n){return Vun(n,e)}}var Wun=Gun,Yun=zun,qun=Wun,Kun=Tfe,Xun=RI;function Qun(e){return Kun(e)?Yun(Xun(e)):qun(e)}var Zun=Qun,Jun=Ncn,edn=Uun,tdn=jk,ndn=Xc,rdn=Zun;function idn(e){return typeof e=="function"?e:e==null?tdn:typeof e=="object"?ndn(e)?edn(e[0],e[1]):Jun(e):rdn(e)}var odn=idn,adn=c_;function sdn(e,n){return function(r,i){if(r==null)return r;if(!adn(r))return e(r,i);for(var o=r.length,a=n?o:-1,s=Object(r);(n?a--:++a<o)&&i(s[a],a,s)!==!1;);return r}}var ldn=sdn,cdn=DWe,udn=ldn,ddn=udn(cdn),ZWe=ddn,fdn=ZWe,pdn=c_;function hdn(e,n){var r=-1,i=pdn(e)?Array(e.length):[];return fdn(e,function(o,a,s){i[++r]=n(o,a,s)}),i}var gdn=hdn,mdn=Uk,vdn=odn,ydn=gdn,_dn=Xc;function bdn(e,n){var r=_dn(e)?mdn:ydn;return r(e,vdn(n))}var Sdn=bdn;Object.defineProperty(Lk,"__esModule",{value:!0});Lk.flattenNames=void 0;var Edn=pfe,Cdn=ZU(Edn),wdn=mfe,xdn=ZU(wdn),Tdn=GU,Odn=ZU(Tdn),Rdn=Sdn,Idn=ZU(Rdn);function ZU(e){return e&&e.__esModule?e:{default:e}}var Ndn=Lk.flattenNames=function e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[];return(0,Idn.default)(n,function(i){Array.isArray(i)?e(i).map(function(o){return r.push(o)}):(0,Odn.default)(i)?(0,xdn.default)(i,function(o,a){o===!0&&r.push(a),r.push(a+"-"+o)}):(0,Cdn.default)(i)&&r.push(i)}),r};Lk.default=Ndn;var Gk={};function Mdn(e,n){for(var r=-1,i=e==null?0:e.length;++r<i&&n(e[r],r,e)!==!1;);return e}var JWe=Mdn,Pdn=hw,Adn=function(){try{var e=Pdn(Object,"defineProperty");return e({},"",{}),e}catch{}}(),eYe=Adn,xTe=eYe;function Ddn(e,n,r){n=="__proto__"&&xTe?xTe(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}var Rfe=Ddn,kdn=Rfe,Ldn=Hk,$dn=Object.prototype,Fdn=$dn.hasOwnProperty;function Bdn(e,n,r){var i=e[n];(!(Fdn.call(e,n)&&Ldn(i,r))||r===void 0&&!(n in e))&&kdn(e,n,r)}var JU=Bdn,jdn=JU,Udn=Rfe;function Hdn(e,n,r,i){var o=!r;r||(r={});for(var a=-1,s=n.length;++a<s;){var l=n[a],c=i?i(r[l],e[l],l,r,e):void 0;c===void 0&&(c=e[l]),o?Udn(r,l,c):jdn(r,l,c)}return r}var gw=Hdn,zdn=gw,Vdn=pw;function Gdn(e,n){return e&&zdn(n,Vdn(n),e)}var Wdn=Gdn;function Ydn(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}var qdn=Ydn,Kdn=wd,Xdn=Bk,Qdn=qdn,Zdn=Object.prototype,Jdn=Zdn.hasOwnProperty;function efn(e){if(!Kdn(e))return Qdn(e);var n=Xdn(e),r=[];for(var i in e)i=="constructor"&&(n||!Jdn.call(e,i))||r.push(i);return r}var tfn=efn,nfn=NWe,rfn=tfn,ifn=c_;function ofn(e){return ifn(e)?nfn(e,!0):rfn(e)}var Wk=ofn,afn=gw,sfn=Wk;function lfn(e,n){return e&&afn(n,sfn(n),e)}var cfn=lfn,mB={exports:{}};mB.exports;(function(e,n){var r=wg,i=n&&!n.nodeType&&n,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;function c(u,d){if(d)return u.slice();var f=u.length,p=l?l(f):new u.constructor(f);return u.copy(p),p}e.exports=c})(mB,mB.exports);var tYe=mB.exports;function ufn(e,n){var r=-1,i=e.length;for(n||(n=Array(i));++r<i;)n[r]=e[r];return n}var nYe=ufn,dfn=gw,ffn=wfe;function pfn(e,n){return dfn(e,ffn(e),n)}var hfn=pfn,gfn=Cfe,mfn=vfe,vfn=wfe,yfn=UWe,_fn=Object.getOwnPropertySymbols,bfn=_fn?function(e){for(var n=[];e;)gfn(n,vfn(e)),e=mfn(e);return n}:yfn,rYe=bfn,Sfn=gw,Efn=rYe;function Cfn(e,n){return Sfn(e,Efn(e),n)}var wfn=Cfn,xfn=jWe,Tfn=rYe,Ofn=Wk;function Rfn(e){return xfn(e,Ofn,Tfn)}var iYe=Rfn,Ifn=Object.prototype,Nfn=Ifn.hasOwnProperty;function Mfn(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&Nfn.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Pfn=Mfn,TTe=BWe;function Afn(e){var n=new e.constructor(e.byteLength);return new TTe(n).set(new TTe(e)),n}var Ife=Afn,Dfn=Ife;function kfn(e,n){var r=n?Dfn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Lfn=kfn,$fn=/\w*$/;function Ffn(e){var n=new e.constructor(e.source,$fn.exec(e));return n.lastIndex=e.lastIndex,n}var Bfn=Ffn,OTe=SI,RTe=OTe?OTe.prototype:void 0,ITe=RTe?RTe.valueOf:void 0;function jfn(e){return ITe?Object(ITe.call(e)):{}}var Ufn=jfn,Hfn=Ife;function zfn(e,n){var r=n?Hfn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var oYe=zfn,Vfn=Ife,Gfn=Lfn,Wfn=Bfn,Yfn=Ufn,qfn=oYe,Kfn="[object Boolean]",Xfn="[object Date]",Qfn="[object Map]",Zfn="[object Number]",Jfn="[object RegExp]",epn="[object Set]",tpn="[object String]",npn="[object Symbol]",rpn="[object ArrayBuffer]",ipn="[object DataView]",opn="[object Float32Array]",apn="[object Float64Array]",spn="[object Int8Array]",lpn="[object Int16Array]",cpn="[object Int32Array]",upn="[object Uint8Array]",dpn="[object Uint8ClampedArray]",fpn="[object Uint16Array]",ppn="[object Uint32Array]";function hpn(e,n,r){var i=e.constructor;switch(n){case rpn:return Vfn(e);case Kfn:case Xfn:return new i(+e);case ipn:return Gfn(e,r);case opn:case apn:case spn:case lpn:case cpn:case upn:case dpn:case fpn:case ppn:return qfn(e,r);case Qfn:return new i;case Zfn:case tpn:return new i(e);case Jfn:return Wfn(e);case epn:return new i;case npn:return Yfn(e)}}var gpn=hpn,mpn=wd,NTe=Object.create,vpn=function(){function e(){}return function(n){if(!mpn(n))return{};if(NTe)return NTe(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}}(),ypn=vpn,_pn=ypn,bpn=vfe,Spn=Bk;function Epn(e){return typeof e.constructor=="function"&&!Spn(e)?_pn(bpn(e)):{}}var aYe=Epn,Cpn=zk,wpn=zp,xpn="[object Map]";function Tpn(e){return wpn(e)&&Cpn(e)==xpn}var Opn=Tpn,Rpn=Opn,Ipn=HU,MTe=gfe,PTe=MTe&&MTe.isMap,Npn=PTe?Ipn(PTe):Rpn,Mpn=Npn,Ppn=zk,Apn=zp,Dpn="[object Set]";function kpn(e){return Apn(e)&&Ppn(e)==Dpn}var Lpn=kpn,$pn=Lpn,Fpn=HU,ATe=gfe,DTe=ATe&&ATe.isSet,Bpn=DTe?Fpn(DTe):$pn,sYe=Bpn;const jpn=Or(sYe);var Upn=XU,Hpn=JWe,zpn=JU,Vpn=Wdn,Gpn=cfn,Wpn=tYe,Ypn=nYe,qpn=hfn,Kpn=wfn,Xpn=HWe,Qpn=iYe,Zpn=zk,Jpn=Pfn,ehn=gpn,thn=aYe,nhn=Xc,rhn=Fk,ihn=Mpn,ohn=wd,ahn=sYe,shn=pw,lhn=Wk,chn=1,uhn=2,dhn=4,lYe="[object Arguments]",fhn="[object Array]",phn="[object Boolean]",hhn="[object Date]",ghn="[object Error]",cYe="[object Function]",mhn="[object GeneratorFunction]",vhn="[object Map]",yhn="[object Number]",uYe="[object Object]",_hn="[object RegExp]",bhn="[object Set]",Shn="[object String]",Ehn="[object Symbol]",Chn="[object WeakMap]",whn="[object ArrayBuffer]",xhn="[object DataView]",Thn="[object Float32Array]",Ohn="[object Float64Array]",Rhn="[object Int8Array]",Ihn="[object Int16Array]",Nhn="[object Int32Array]",Mhn="[object Uint8Array]",Phn="[object Uint8ClampedArray]",Ahn="[object Uint16Array]",Dhn="[object Uint32Array]",aa={};aa[lYe]=aa[fhn]=aa[whn]=aa[xhn]=aa[phn]=aa[hhn]=aa[Thn]=aa[Ohn]=aa[Rhn]=aa[Ihn]=aa[Nhn]=aa[vhn]=aa[yhn]=aa[uYe]=aa[_hn]=aa[bhn]=aa[Shn]=aa[Ehn]=aa[Mhn]=aa[Phn]=aa[Ahn]=aa[Dhn]=!0;aa[ghn]=aa[cYe]=aa[Chn]=!1;function S6(e,n,r,i,o,a){var s,l=n&chn,c=n&uhn,u=n&dhn;if(r&&(s=o?r(e,i,o,a):r(e)),s!==void 0)return s;if(!ohn(e))return e;var d=nhn(e);if(d){if(s=Jpn(e),!l)return Ypn(e,s)}else{var f=Zpn(e),p=f==cYe||f==mhn;if(rhn(e))return Wpn(e,l);if(f==uYe||f==lYe||p&&!o){if(s=c||p?{}:thn(e),!l)return c?Kpn(e,Gpn(s,e)):qpn(e,Vpn(s,e))}else{if(!aa[f])return o?e:{};s=ehn(e,f,l)}}a||(a=new Upn);var h=a.get(e);if(h)return h;a.set(e,s),ahn(e)?e.forEach(function(y){s.add(S6(y,n,r,y,e,a))}):ihn(e)&&e.forEach(function(y,_){s.set(_,S6(y,n,r,_,e,a))});var g=u?c?Qpn:Xpn:c?lhn:shn,v=d?void 0:g(e);return Hpn(v||e,function(y,_){v&&(_=y,y=e[_]),zpn(s,_,S6(y,n,r,_,e,a))}),s}var Nfe=S6,khn=Nfe,Lhn=1,$hn=4;function Fhn(e){return khn(e,Lhn|$hn)}var Bhn=Fhn;Object.defineProperty(Gk,"__esModule",{value:!0});Gk.mergeClasses=void 0;var jhn=mfe,Uhn=dYe(jhn),Hhn=Bhn,zhn=dYe(Hhn),Vhn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e};function dYe(e){return e&&e.__esModule?e:{default:e}}var Ghn=Gk.mergeClasses=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=n.default&&(0,zhn.default)(n.default)||{};return r.map(function(o){var a=n[o];return a&&(0,Uhn.default)(a,function(s,l){i[l]||(i[l]={}),i[l]=Vhn({},i[l],a[l])}),o}),i};Gk.default=Ghn;var Yk={};Object.defineProperty(Yk,"__esModule",{value:!0});Yk.autoprefix=void 0;var Whn=mfe,kTe=qhn(Whn),Yhn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e};function qhn(e){return e&&e.__esModule?e:{default:e}}var Khn={borderRadius:function(n){return{msBorderRadius:n,MozBorderRadius:n,OBorderRadius:n,WebkitBorderRadius:n,borderRadius:n}},boxShadow:function(n){return{msBoxShadow:n,MozBoxShadow:n,OBoxShadow:n,WebkitBoxShadow:n,boxShadow:n}},userSelect:function(n){return{WebkitTouchCallout:n,KhtmlUserSelect:n,MozUserSelect:n,msUserSelect:n,WebkitUserSelect:n,userSelect:n}},flex:function(n){return{WebkitBoxFlex:n,MozBoxFlex:n,WebkitFlex:n,msFlex:n,flex:n}},flexBasis:function(n){return{WebkitFlexBasis:n,flexBasis:n}},justifyContent:function(n){return{WebkitJustifyContent:n,justifyContent:n}},transition:function(n){return{msTransition:n,MozTransition:n,OTransition:n,WebkitTransition:n,transition:n}},transform:function(n){return{msTransform:n,MozTransform:n,OTransform:n,WebkitTransform:n,transform:n}},absolute:function(n){var r=n&&n.split(" ");return{position:"absolute",top:r&&r[0],right:r&&r[1],bottom:r&&r[2],left:r&&r[3]}},extend:function(n,r){var i=r[n];return i||{extend:n}}},Xhn=Yk.autoprefix=function(n){var r={};return(0,kTe.default)(n,function(i,o){var a={};(0,kTe.default)(i,function(s,l){var c=Khn[l];c?a=Yhn({},a,c(s)):a[l]=s}),r[o]=a}),r};Yk.default=Xhn;var qk={};Object.defineProperty(qk,"__esModule",{value:!0});qk.hover=void 0;var Qhn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Zhn=m,Yq=Jhn(Zhn);function Jhn(e){return e&&e.__esModule?e:{default:e}}function egn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function LTe(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:e}function tgn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var ngn=qk.hover=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(i){tgn(o,i);function o(){var a,s,l,c;egn(this,o);for(var u=arguments.length,d=Array(u),f=0;f<u;f++)d[f]=arguments[f];return c=(s=(l=LTe(this,(a=o.__proto__||Object.getPrototypeOf(o)).call.apply(a,[this].concat(d))),l),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return Yq.default.createElement(r,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},Yq.default.createElement(n,Qhn({},l.props,l.state)))},s),LTe(l,c)}return o}(Yq.default.Component)};qk.default=ngn;var Kk={};Object.defineProperty(Kk,"__esModule",{value:!0});Kk.active=void 0;var rgn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ign=m,qq=ogn(ign);function ogn(e){return e&&e.__esModule?e:{default:e}}function agn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function $Te(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:e}function sgn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var lgn=Kk.active=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(i){sgn(o,i);function o(){var a,s,l,c;agn(this,o);for(var u=arguments.length,d=Array(u),f=0;f<u;f++)d[f]=arguments[f];return c=(s=(l=$Te(this,(a=o.__proto__||Object.getPrototypeOf(o)).call.apply(a,[this].concat(d))),l),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return qq.default.createElement(r,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},qq.default.createElement(n,rgn({},l.props,l.state)))},s),$Te(l,c)}return o}(qq.default.Component)};Kk.default=lgn;var Mfe={};Object.defineProperty(Mfe,"__esModule",{value:!0});var cgn=function(n,r){var i={},o=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i[s]=l};return n===0&&o("first-child"),n===r-1&&o("last-child"),(n===0||n%2===0)&&o("even"),Math.abs(n%2)===1&&o("odd"),o("nth-child",n),i};Mfe.default=cgn;Object.defineProperty(hp,"__esModule",{value:!0});hp.ReactCSS=hp.loop=hp.handleActive=hp.handleHover=hp.hover=void 0;var ugn=Lk,dgn=II(ugn),fgn=Gk,pgn=II(fgn),hgn=Yk,ggn=II(hgn),mgn=qk,fYe=II(mgn),vgn=Kk,ygn=II(vgn),_gn=Mfe,bgn=II(_gn);function II(e){return e&&e.__esModule?e:{default:e}}hp.hover=fYe.default;hp.handleHover=fYe.default;hp.handleActive=ygn.default;hp.loop=bgn.default;var Sgn=hp.ReactCSS=function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=(0,dgn.default)(i),s=(0,pgn.default)(n,a);return(0,ggn.default)(s)},aS=hp.default=Sgn,Egn=Rfe,Cgn=Hk;function wgn(e,n,r){(r!==void 0&&!Cgn(e[n],r)||r===void 0&&!(n in e))&&Egn(e,n,r)}var pYe=wgn,xgn=c_,Tgn=zp;function Ogn(e){return Tgn(e)&&xgn(e)}var hYe=Ogn;function Rgn(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var gYe=Rgn,Ign=gw,Ngn=Wk;function Mgn(e){return Ign(e,Ngn(e))}var Pgn=Mgn,FTe=pYe,Agn=tYe,Dgn=oYe,kgn=nYe,Lgn=aYe,BTe=$k,jTe=Xc,$gn=hYe,Fgn=Fk,Bgn=VU,jgn=wd,Ugn=GU,Hgn=zU,UTe=gYe,zgn=Pgn;function Vgn(e,n,r,i,o,a,s){var l=UTe(e,r),c=UTe(n,r),u=s.get(c);if(u){FTe(e,r,u);return}var d=a?a(l,c,r+"",e,n,s):void 0,f=d===void 0;if(f){var p=jTe(c),h=!p&&Fgn(c),g=!p&&!h&&Hgn(c);d=c,p||h||g?jTe(l)?d=l:$gn(l)?d=kgn(l):h?(f=!1,d=Agn(c,!0)):g?(f=!1,d=Dgn(c,!0)):d=[]:Ugn(c)||BTe(c)?(d=l,BTe(l)?d=zgn(l):(!jgn(l)||Bgn(l))&&(d=Lgn(c))):f=!1}f&&(s.set(c,d),o(d,c,i,a,s),s.delete(c)),FTe(e,r,d)}var Ggn=Vgn,Wgn=XU,Ygn=pYe,qgn=RWe,Kgn=Ggn,Xgn=wd,Qgn=Wk,Zgn=gYe;function mYe(e,n,r,i,o){e!==n&&qgn(n,function(a,s){if(o||(o=new Wgn),Xgn(a))Kgn(e,n,s,r,mYe,i,o);else{var l=i?i(Zgn(e,s),a,s+"",e,n,o):void 0;l===void 0&&(l=a),Ygn(e,s,l)}},Qgn)}var Jgn=mYe;function emn(e,n,r){switch(r.length){case 0:return e.call(n);case 1:return e.call(n,r[0]);case 2:return e.call(n,r[0],r[1]);case 3:return e.call(n,r[0],r[1],r[2])}return e.apply(n,r)}var tmn=emn,nmn=tmn,HTe=Math.max;function rmn(e,n,r){return n=HTe(n===void 0?e.length-1:n,0),function(){for(var i=arguments,o=-1,a=HTe(i.length-n,0),s=Array(a);++o<a;)s[o]=i[n+o];o=-1;for(var l=Array(n+1);++o<n;)l[o]=i[o];return l[n]=r(s),nmn(e,this,l)}}var vYe=rmn;function imn(e){return function(){return e}}var omn=imn,amn=omn,zTe=eYe,smn=jk,lmn=zTe?function(e,n){return zTe(e,"toString",{configurable:!0,enumerable:!1,value:amn(n),writable:!0})}:smn,cmn=lmn,umn=800,dmn=16,fmn=Date.now;function pmn(e){var n=0,r=0;return function(){var i=fmn(),o=dmn-(i-r);if(r=i,o>0){if(++n>=umn)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}var hmn=pmn,gmn=cmn,mmn=hmn,vmn=mmn(gmn),yYe=vmn,ymn=jk,_mn=vYe,bmn=yYe;function Smn(e,n){return bmn(_mn(e,n,ymn),e+"")}var _Ye=Smn,Emn=Hk,Cmn=c_,wmn=UU,xmn=wd;function Tmn(e,n,r){if(!xmn(r))return!1;var i=typeof n;return(i=="number"?Cmn(r)&&wmn(n,r.length):i=="string"&&n in r)?Emn(r[n],e):!1}var Omn=Tmn,Rmn=_Ye,Imn=Omn;function Nmn(e){return Rmn(function(n,r){var i=-1,o=r.length,a=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,s&&Imn(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),n=Object(n);++i<o;){var l=r[i];l&&e(n,l,i,a)}return n})}var bYe=Nmn,Mmn=Jgn,Pmn=bYe,Amn=Pmn(function(e,n,r){Mmn(e,n,r)}),Dmn=Amn;const SYe=Or(Dmn);var kmn=function(n,r,i,o,a){var s=a.clientWidth,l=a.clientHeight,c=typeof n.pageX=="number"?n.pageX:n.touches[0].pageX,u=typeof n.pageY=="number"?n.pageY:n.touches[0].pageY,d=c-(a.getBoundingClientRect().left+window.pageXOffset),f=u-(a.getBoundingClientRect().top+window.pageYOffset);if(i==="vertical"){var p;if(f<0?p=0:f>l?p=1:p=Math.round(f*100/l)/100,r.a!==p)return{h:r.h,s:r.s,l:r.l,a:p,source:"rgb"}}else{var h;if(d<0?h=0:d>s?h=1:h=Math.round(d*100/s)/100,o!==h)return{h:r.h,s:r.s,l:r.l,a:h,source:"rgb"}}return null},Kq={},Lmn=function(n,r,i,o){if(typeof document>"u"&&!o)return null;var a=o?new o:document.createElement("canvas");a.width=i*2,a.height=i*2;var s=a.getContext("2d");return s?(s.fillStyle=n,s.fillRect(0,0,a.width,a.height),s.fillStyle=r,s.fillRect(0,0,i,i),s.translate(i,i),s.fillRect(0,0,i,i),a.toDataURL()):null},$mn=function(n,r,i,o){var a="".concat(n,"-").concat(r,"-").concat(i).concat(o?"-server":"");if(Kq[a])return Kq[a];var s=Lmn(n,r,i,o);return Kq[a]=s,s};function MA(e){"@babel/helpers - typeof";return MA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},MA(e)}function VTe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function f4(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?VTe(Object(r),!0).forEach(function(i){Fmn(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VTe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Fmn(e,n,r){return n=Bmn(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Bmn(e){var n=jmn(e,"string");return MA(n)==="symbol"?n:String(n)}function jmn(e,n){if(MA(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||"default");if(MA(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var eH=function(n){var r=n.white,i=n.grey,o=n.size,a=n.renderers,s=n.borderRadius,l=n.boxShadow,c=n.children,u=aS({default:{grid:{borderRadius:s,boxShadow:l,absolute:"0px 0px 0px 0px",background:"url(".concat($mn(r,i,o,a.canvas),") center left")}}});return m.isValidElement(c)?V.cloneElement(c,f4(f4({},c.props),{},{style:f4(f4({},c.props.style),u.grid)})):V.createElement("div",{style:u.grid})};eH.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};function UO(e){"@babel/helpers - typeof";return UO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},UO(e)}function GTe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function Umn(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?GTe(Object(r),!0).forEach(function(i){Hmn(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GTe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Hmn(e,n,r){return n=EYe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function zmn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Vmn(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,EYe(i.key),i)}}function Gmn(e,n,r){return n&&Vmn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function EYe(e){var n=Wmn(e,"string");return UO(n)==="symbol"?n:String(n)}function Wmn(e,n){if(UO(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||"default");if(UO(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Ymn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Jie(e,n)}function Jie(e,n){return Jie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},Jie(e,n)}function qmn(e){var n=Qmn();return function(){var i=vB(e),o;if(n){var a=vB(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Kmn(this,o)}}function Kmn(e,n){if(n&&(UO(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xmn(e)}function Xmn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qmn(){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 vB(e){return vB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vB(e)}var Zmn=function(e){Ymn(r,e);var n=qmn(r);function r(){var i;zmn(this,r);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return i=n.call.apply(n,[this].concat(a)),i.handleChange=function(l){var c=kmn(l,i.props.hsl,i.props.direction,i.props.a,i.container);c&&typeof i.props.onChange=="function"&&i.props.onChange(c,l)},i.handleMouseDown=function(l){i.handleChange(l),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleChange),window.removeEventListener("mouseup",i.handleMouseUp)},i}return Gmn(r,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var o=this,a=this.props.rgb,s=aS({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(a.r,",").concat(a.g,",").concat(a.b,`, 0) 0%,
rgba(`).concat(a.r,",").concat(a.g,",").concat(a.b,", 1) 100%)"),boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:"".concat(a.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(a.r,",").concat(a.g,",").concat(a.b,`, 0) 0%,
rgba(`).concat(a.r,",").concat(a.g,",").concat(a.b,", 1) 100%)")},pointer:{left:0,top:"".concat(a.a*100,"%")}},overwrite:Umn({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return V.createElement("div",{style:s.alpha},V.createElement("div",{style:s.checkboard},V.createElement(eH,{renderers:this.props.renderers})),V.createElement("div",{style:s.gradient}),V.createElement("div",{style:s.container,ref:function(c){return o.container=c},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},V.createElement("div",{style:s.pointer},this.props.pointer?V.createElement(this.props.pointer,this.props):V.createElement("div",{style:s.slider}))))}}]),r}(m.PureComponent||m.Component),Jmn=function(n,r,i,o){var a=o.clientWidth,s=o.clientHeight,l=typeof n.pageX=="number"?n.pageX:n.touches[0].pageX,c=typeof n.pageY=="number"?n.pageY:n.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=359;else if(d>s)f=0;else{var p=-(d*100/s)+100;f=360*p/100}if(i.h!==f)return{h:f,s:i.s,l:i.l,a:i.a,source:"hsl"}}else{var h;if(u<0)h=0;else if(u>a)h=359;else{var g=u*100/a;h=360*g/100}if(i.h!==h)return{h,s:i.s,l:i.l,a:i.a,source:"hsl"}}return null};function HO(e){"@babel/helpers - typeof";return HO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},HO(e)}function evn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function tvn(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,rvn(i.key),i)}}function nvn(e,n,r){return n&&tvn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rvn(e){var n=ivn(e,"string");return HO(n)==="symbol"?n:String(n)}function ivn(e,n){if(HO(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(HO(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ovn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&eoe(e,n)}function eoe(e,n){return eoe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},eoe(e,n)}function avn(e){var n=cvn();return function(){var i=yB(e),o;if(n){var a=yB(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return svn(this,o)}}function svn(e,n){if(n&&(HO(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lvn(e)}function lvn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cvn(){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 yB(e){return yB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yB(e)}var uvn=function(e){ovn(r,e);var n=avn(r);function r(){var i;evn(this,r);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return i=n.call.apply(n,[this].concat(a)),i.handleChange=function(l){var c=Jmn(l,i.props.direction,i.props.hsl,i.container);c&&typeof i.props.onChange=="function"&&i.props.onChange(c,l)},i.handleMouseDown=function(l){i.handleChange(l),window.addEventListener("mousemove",i.handleChange),window.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i}return nvn(r,[{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 o=this,a=this.props.direction,s=a===void 0?"horizontal":a,l=aS({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:s==="vertical"});return V.createElement("div",{style:l.hue},V.createElement("div",{className:"hue-".concat(s),style:l.container,ref:function(u){return o.container=u},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},V.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%);
}
`),V.createElement("div",{style:l.pointer},this.props.pointer?V.createElement(this.props.pointer,this.props):V.createElement("div",{style:l.slider}))))}}]),r}(m.PureComponent||m.Component),dvn=wg,fvn=function(){return dvn.Date.now()},pvn=fvn,hvn=/\s/;function gvn(e){for(var n=e.length;n--&&hvn.test(e.charAt(n)););return n}var mvn=gvn,vvn=mvn,yvn=/^\s+/;function _vn(e){return e&&e.slice(0,vvn(e)+1).replace(yvn,"")}var bvn=_vn,Svn=bvn,WTe=wd,Evn=Vk,YTe=NaN,Cvn=/^[-+]0x[0-9a-f]+$/i,wvn=/^0b[01]+$/i,xvn=/^0o[0-7]+$/i,Tvn=parseInt;function Ovn(e){if(typeof e=="number")return e;if(Evn(e))return YTe;if(WTe(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=WTe(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=Svn(e);var r=wvn.test(e);return r||xvn.test(e)?Tvn(e.slice(2),r?2:8):Cvn.test(e)?YTe:+e}var CYe=Ovn,Rvn=wd,Xq=pvn,qTe=CYe,Ivn="Expected a function",Nvn=Math.max,Mvn=Math.min;function Pvn(e,n,r){var i,o,a,s,l,c,u=0,d=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(Ivn);n=qTe(n)||0,Rvn(r)&&(d=!!r.leading,f="maxWait"in r,a=f?Nvn(qTe(r.maxWait)||0,n):a,p="trailing"in r?!!r.trailing:p);function h(C){var x=i,T=o;return i=o=void 0,u=C,s=e.apply(T,x),s}function g(C){return u=C,l=setTimeout(_,n),d?h(C):s}function v(C){var x=C-c,T=C-u,R=n-x;return f?Mvn(R,a-T):R}function y(C){var x=C-c,T=C-u;return c===void 0||x>=n||x<0||f&&T>=a}function _(){var C=Xq();if(y(C))return S(C);l=setTimeout(_,v(C))}function S(C){return l=void 0,p&&i?h(C):(i=o=void 0,s)}function b(){l!==void 0&&clearTimeout(l),u=0,i=c=o=l=void 0}function E(){return l===void 0?s:S(Xq())}function w(){var C=Xq(),x=y(C);if(i=arguments,o=this,c=C,x){if(l===void 0)return g(c);if(f)return clearTimeout(l),l=setTimeout(_,n),h(c)}return l===void 0&&(l=setTimeout(_,n)),s}return w.cancel=b,w.flush=E,w}var wYe=Pvn;const xYe=Or(wYe);var Avn=wYe,Dvn=wd,kvn="Expected a function";function Lvn(e,n,r){var i=!0,o=!0;if(typeof e!="function")throw new TypeError(kvn);return Dvn(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),Avn(e,n,{leading:i,maxWait:n,trailing:o})}var $vn=Lvn;const toe=Or($vn);var Fvn=function(n,r,i){var o=i.getBoundingClientRect(),a=o.width,s=o.height,l=typeof n.pageX=="number"?n.pageX:n.touches[0].pageX,c=typeof n.pageY=="number"?n.pageY:n.touches[0].pageY,u=l-(i.getBoundingClientRect().left+window.pageXOffset),d=c-(i.getBoundingClientRect().top+window.pageYOffset);u<0?u=0:u>a&&(u=a),d<0?d=0:d>s&&(d=s);var f=u/a,p=1-d/s;return{h:r.h,s:f,v:p,a:r.a,source:"hsv"}};function zO(e){"@babel/helpers - typeof";return zO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zO(e)}function Bvn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function jvn(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Hvn(i.key),i)}}function Uvn(e,n,r){return n&&jvn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hvn(e){var n=zvn(e,"string");return zO(n)==="symbol"?n:String(n)}function zvn(e,n){if(zO(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(zO(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Vvn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&noe(e,n)}function noe(e,n){return noe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},noe(e,n)}function Gvn(e){var n=qvn();return function(){var i=_B(e),o;if(n){var a=_B(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Wvn(this,o)}}function Wvn(e,n){if(n&&(zO(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yvn(e)}function Yvn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qvn(){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 _B(e){return _B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_B(e)}var Kvn=function(e){Vvn(r,e);var n=Gvn(r);function r(i){var o;return Bvn(this,r),o=n.call(this,i),o.handleChange=function(a){typeof o.props.onChange=="function"&&o.throttle(o.props.onChange,Fvn(a,o.props.hsl,o.container),a)},o.handleMouseDown=function(a){o.handleChange(a);var s=o.getContainerRenderWindow();s.addEventListener("mousemove",o.handleChange),s.addEventListener("mouseup",o.handleMouseUp)},o.handleMouseUp=function(){o.unbindEventListeners()},o.throttle=toe(function(a,s,l){a(s,l)},50),o}return Uvn(r,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var o=this.container,a=window;!a.document.contains(o)&&a.parent!==a;)a=a.parent;return a}},{key:"unbindEventListeners",value:function(){var o=this.getContainerRenderWindow();o.removeEventListener("mousemove",this.handleChange),o.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var o=this,a=this.props.style||{},s=a.color,l=a.white,c=a.black,u=a.pointer,d=a.circle,f=aS({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:s,white:l,black:c,pointer:u,circle:d}},{custom:!!this.props.style});return V.createElement("div",{style:f.color,ref:function(h){return o.container=h},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},V.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));
}
`),V.createElement("div",{style:f.white,className:"saturation-white"},V.createElement("div",{style:f.black,className:"saturation-black"}),V.createElement("div",{style:f.pointer},this.props.pointer?V.createElement(this.props.pointer,this.props):V.createElement("div",{style:f.circle}))))}}]),r}(m.PureComponent||m.Component),Xvn=JWe,Qvn=ZWe,Zvn=kWe,Jvn=Xc;function eyn(e,n){var r=Jvn(e)?Xvn:Qvn;return r(e,Zvn(n))}var tyn=eyn,nyn=tyn;const TYe=Or(nyn);function bB(e){"@babel/helpers - typeof";return bB=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bB(e)}var ryn=/^\s+/,iyn=/\s+$/;function Cr(e,n){if(e=e||"",n=n||{},e instanceof Cr)return e;if(!(this instanceof Cr))return new Cr(e,n);var r=oyn(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||r.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._ok=r.ok}Cr.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 n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),r,i,o,a,s,l;return r=n.r/255,i=n.g/255,o=n.b/255,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),o<=.03928?l=o/12.92:l=Math.pow((o+.055)/1.055,2.4),.2126*a+.7152*s+.0722*l},setAlpha:function(n){return this._a=OYe(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=XTe(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=XTe(this._r,this._g,this._b),r=Math.round(n.h*360),i=Math.round(n.s*100),o=Math.round(n.v*100);return this._a==1?"hsv("+r+", "+i+"%, "+o+"%)":"hsva("+r+", "+i+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var n=KTe(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=KTe(this._r,this._g,this._b),r=Math.round(n.h*360),i=Math.round(n.s*100),o=Math.round(n.l*100);return this._a==1?"hsl("+r+", "+i+"%, "+o+"%)":"hsla("+r+", "+i+"%, "+o+"%, "+this._roundA+")"},toHex:function(n){return QTe(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return cyn(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},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(ja(this._r,255)*100)+"%",g:Math.round(ja(this._g,255)*100)+"%",b:Math.round(ja(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ja(this._r,255)*100)+"%, "+Math.round(ja(this._g,255)*100)+"%, "+Math.round(ja(this._b,255)*100)+"%)":"rgba("+Math.round(ja(this._r,255)*100)+"%, "+Math.round(ja(this._g,255)*100)+"%, "+Math.round(ja(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Syn[QTe(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var r="#"+ZTe(this._r,this._g,this._b,this._a),i=r,o=this._gradientType?"GradientType = 1, ":"";if(n){var a=Cr(n);i="#"+ZTe(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+r+",endColorstr="+i+")"},toString:function(n){var r=!!n;n=n||this._format;var i=!1,o=this._a<1&&this._a>=0,a=!r&&o&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return a?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(i=this.toRgbString()),n==="prgb"&&(i=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(i=this.toHexString()),n==="hex3"&&(i=this.toHexString(!0)),n==="hex4"&&(i=this.toHex8String(!0)),n==="hex8"&&(i=this.toHex8String()),n==="name"&&(i=this.toName()),n==="hsl"&&(i=this.toHslString()),n==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},clone:function(){return Cr(this.toString())},_applyModification:function(n,r){var i=n.apply(null,[this].concat([].slice.call(r)));return this._r=i._r,this._g=i._g,this._b=i._b,this.setAlpha(i._a),this},lighten:function(){return this._applyModification(pyn,arguments)},brighten:function(){return this._applyModification(hyn,arguments)},darken:function(){return this._applyModification(gyn,arguments)},desaturate:function(){return this._applyModification(uyn,arguments)},saturate:function(){return this._applyModification(dyn,arguments)},greyscale:function(){return this._applyModification(fyn,arguments)},spin:function(){return this._applyModification(myn,arguments)},_applyCombination:function(n,r){return n.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(_yn,arguments)},complement:function(){return this._applyCombination(vyn,arguments)},monochromatic:function(){return this._applyCombination(byn,arguments)},splitcomplement:function(){return this._applyCombination(yyn,arguments)},triad:function(){return this._applyCombination(JTe,[3])},tetrad:function(){return this._applyCombination(JTe,[4])}};Cr.fromRatio=function(e,n){if(bB(e)=="object"){var r={};for(var i in e)e.hasOwnProperty(i)&&(i==="a"?r[i]=e[i]:r[i]=p2(e[i]));e=r}return Cr(e,n)};function oyn(e){var n={r:0,g:0,b:0},r=1,i=null,o=null,a=null,s=!1,l=!1;return typeof e=="string"&&(e=xyn(e)),bB(e)=="object"&&(Rv(e.r)&&Rv(e.g)&&Rv(e.b)?(n=ayn(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Rv(e.h)&&Rv(e.s)&&Rv(e.v)?(i=p2(e.s),o=p2(e.v),n=lyn(e.h,i,o),s=!0,l="hsv"):Rv(e.h)&&Rv(e.s)&&Rv(e.l)&&(i=p2(e.s),a=p2(e.l),n=syn(e.h,i,a),s=!0,l="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=OYe(r),{ok:s,format:e.format||l,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}function ayn(e,n,r){return{r:ja(e,255)*255,g:ja(n,255)*255,b:ja(r,255)*255}}function KTe(e,n,r){e=ja(e,255),n=ja(n,255),r=ja(r,255);var i=Math.max(e,n,r),o=Math.min(e,n,r),a,s,l=(i+o)/2;if(i==o)a=s=0;else{var c=i-o;switch(s=l>.5?c/(2-i-o):c/(i+o),i){case e:a=(n-r)/c+(n<r?6:0);break;case n:a=(r-e)/c+2;break;case r:a=(e-n)/c+4;break}a/=6}return{h:a,s,l}}function syn(e,n,r){var i,o,a;e=ja(e,360),n=ja(n,100),r=ja(r,100);function s(u,d,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(n===0)i=o=a=r;else{var l=r<.5?r*(1+n):r+n-r*n,c=2*r-l;i=s(c,l,e+1/3),o=s(c,l,e),a=s(c,l,e-1/3)}return{r:i*255,g:o*255,b:a*255}}function XTe(e,n,r){e=ja(e,255),n=ja(n,255),r=ja(r,255);var i=Math.max(e,n,r),o=Math.min(e,n,r),a,s,l=i,c=i-o;if(s=i===0?0:c/i,i==o)a=0;else{switch(i){case e:a=(n-r)/c+(n<r?6:0);break;case n:a=(r-e)/c+2;break;case r:a=(e-n)/c+4;break}a/=6}return{h:a,s,v:l}}function lyn(e,n,r){e=ja(e,360)*6,n=ja(n,100),r=ja(r,100);var i=Math.floor(e),o=e-i,a=r*(1-n),s=r*(1-o*n),l=r*(1-(1-o)*n),c=i%6,u=[r,s,a,a,l,r][c],d=[l,r,r,s,a,a][c],f=[a,a,l,r,r,s][c];return{r:u*255,g:d*255,b:f*255}}function QTe(e,n,r,i){var o=[Dh(Math.round(e).toString(16)),Dh(Math.round(n).toString(16)),Dh(Math.round(r).toString(16))];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[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function cyn(e,n,r,i,o){var a=[Dh(Math.round(e).toString(16)),Dh(Math.round(n).toString(16)),Dh(Math.round(r).toString(16)),Dh(RYe(i))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function ZTe(e,n,r,i){var o=[Dh(RYe(i)),Dh(Math.round(e).toString(16)),Dh(Math.round(n).toString(16)),Dh(Math.round(r).toString(16))];return o.join("")}Cr.equals=function(e,n){return!e||!n?!1:Cr(e).toRgbString()==Cr(n).toRgbString()};Cr.random=function(){return Cr.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function uyn(e,n){n=n===0?0:n||10;var r=Cr(e).toHsl();return r.s-=n/100,r.s=tH(r.s),Cr(r)}function dyn(e,n){n=n===0?0:n||10;var r=Cr(e).toHsl();return r.s+=n/100,r.s=tH(r.s),Cr(r)}function fyn(e){return Cr(e).desaturate(100)}function pyn(e,n){n=n===0?0:n||10;var r=Cr(e).toHsl();return r.l+=n/100,r.l=tH(r.l),Cr(r)}function hyn(e,n){n=n===0?0:n||10;var r=Cr(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(n/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(n/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(n/100)))),Cr(r)}function gyn(e,n){n=n===0?0:n||10;var r=Cr(e).toHsl();return r.l-=n/100,r.l=tH(r.l),Cr(r)}function myn(e,n){var r=Cr(e).toHsl(),i=(r.h+n)%360;return r.h=i<0?360+i:i,Cr(r)}function vyn(e){var n=Cr(e).toHsl();return n.h=(n.h+180)%360,Cr(n)}function JTe(e,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var r=Cr(e).toHsl(),i=[Cr(e)],o=360/n,a=1;a<n;a++)i.push(Cr({h:(r.h+a*o)%360,s:r.s,l:r.l}));return i}function yyn(e){var n=Cr(e).toHsl(),r=n.h;return[Cr(e),Cr({h:(r+72)%360,s:n.s,l:n.l}),Cr({h:(r+216)%360,s:n.s,l:n.l})]}function _yn(e,n,r){n=n||6,r=r||30;var i=Cr(e).toHsl(),o=360/r,a=[Cr(e)];for(i.h=(i.h-(o*n>>1)+720)%360;--n;)i.h=(i.h+o)%360,a.push(Cr(i));return a}function byn(e,n){n=n||6;for(var r=Cr(e).toHsv(),i=r.h,o=r.s,a=r.v,s=[],l=1/n;n--;)s.push(Cr({h:i,s:o,v:a})),a=(a+l)%1;return s}Cr.mix=function(e,n,r){r=r===0?0:r||50;var i=Cr(e).toRgb(),o=Cr(n).toRgb(),a=r/100,s={r:(o.r-i.r)*a+i.r,g:(o.g-i.g)*a+i.g,b:(o.b-i.b)*a+i.b,a:(o.a-i.a)*a+i.a};return Cr(s)};Cr.readability=function(e,n){var r=Cr(e),i=Cr(n);return(Math.max(r.getLuminance(),i.getLuminance())+.05)/(Math.min(r.getLuminance(),i.getLuminance())+.05)};Cr.isReadable=function(e,n,r){var i=Cr.readability(e,n),o,a;switch(a=!1,o=Tyn(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7;break}return a};Cr.mostReadable=function(e,n,r){var i=null,o=0,a,s,l,c;r=r||{},s=r.includeFallbackColors,l=r.level,c=r.size;for(var u=0;u<n.length;u++)a=Cr.readability(e,n[u]),a>o&&(o=a,i=Cr(n[u]));return Cr.isReadable(e,i,{level:l,size:c})||!s?i:(r.includeFallbackColors=!1,Cr.mostReadable(e,["#fff","#000"],r))};var roe=Cr.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"},Syn=Cr.hexNames=Eyn(roe);function Eyn(e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[e[r]]=r);return n}function OYe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ja(e,n){Cyn(e)&&(e="100%");var r=wyn(e);return e=Math.min(n,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*n,10)/100),Math.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function tH(e){return Math.min(1,Math.max(0,e))}function Vd(e){return parseInt(e,16)}function Cyn(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function wyn(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Dh(e){return e.length==1?"0"+e:""+e}function p2(e){return e<=1&&(e=e*100+"%"),e}function RYe(e){return Math.round(parseFloat(e)*255).toString(16)}function eOe(e){return Vd(e)/255}var mh=function(){var e="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",r="(?:"+n+")|(?:"+e+")",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"+o),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 Rv(e){return!!mh.CSS_UNIT.exec(e)}function xyn(e){e=e.replace(ryn,"").replace(iyn,"").toLowerCase();var n=!1;if(roe[e])e=roe[e],n=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=mh.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=mh.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=mh.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=mh.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=mh.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=mh.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=mh.hex8.exec(e))?{r:Vd(r[1]),g:Vd(r[2]),b:Vd(r[3]),a:eOe(r[4]),format:n?"name":"hex8"}:(r=mh.hex6.exec(e))?{r:Vd(r[1]),g:Vd(r[2]),b:Vd(r[3]),format:n?"name":"hex"}:(r=mh.hex4.exec(e))?{r:Vd(r[1]+""+r[1]),g:Vd(r[2]+""+r[2]),b:Vd(r[3]+""+r[3]),a:eOe(r[4]+""+r[4]),format:n?"name":"hex8"}:(r=mh.hex3.exec(e))?{r:Vd(r[1]+""+r[1]),g:Vd(r[2]+""+r[2]),b:Vd(r[3]+""+r[3]),format:n?"name":"hex"}:!1}function Tyn(e){var n,r;return e=e||{level:"AA",size:"small"},n=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:n,size:r}}var tOe=function(n){var r=["r","g","b","a","h","s","l","v"],i=0,o=0;return TYe(r,function(a){if(n[a]&&(i+=1,isNaN(n[a])||(o+=1),a==="s"||a==="l")){var s=/^\d+%$/;s.test(n[a])&&(o+=1)}}),i===o?n:!1},p4=function(n,r){var i=n.hex?Cr(n.hex):Cr(n),o=i.toHsl(),a=i.toHsv(),s=i.toRgb(),l=i.toHex();o.s===0&&(o.h=r||0,a.h=r||0);var c=l==="000000"&&s.a===0;return{hsl:o,hex:c?"transparent":"#".concat(l),rgb:s,hsv:a,oldHue:n.h||r||o.h,source:n.source}},Oyn=function(n){if(n==="transparent")return!0;var r=String(n).charAt(0)==="#"?1:0;return n.length!==4+r&&n.length<7+r&&Cr(n).isValid()};function VO(e){"@babel/helpers - typeof";return VO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},VO(e)}function ioe(){return ioe=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ioe.apply(this,arguments)}function nOe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function vM(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?nOe(Object(r),!0).forEach(function(i){Ryn(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nOe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Ryn(e,n,r){return n=IYe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Iyn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function rOe(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,IYe(i.key),i)}}function Nyn(e,n,r){return n&&rOe(e.prototype,n),r&&rOe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function IYe(e){var n=Myn(e,"string");return VO(n)==="symbol"?n:String(n)}function Myn(e,n){if(VO(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||"default");if(VO(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Pyn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&ooe(e,n)}function ooe(e,n){return ooe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},ooe(e,n)}function Ayn(e){var n=Lyn();return function(){var i=SB(e),o;if(n){var a=SB(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Dyn(this,o)}}function Dyn(e,n){if(n&&(VO(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kyn(e)}function kyn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lyn(){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 SB(e){return SB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},SB(e)}var $yn=function(n){var r=function(i){Pyn(a,i);var o=Ayn(a);function a(s){var l;return Iyn(this,a),l=o.call(this),l.handleChange=function(c,u){var d=tOe(c);if(d){var f=p4(c,c.h||l.state.oldHue);l.setState(f),l.props.onChangeComplete&&l.debounce(l.props.onChangeComplete,f,u),l.props.onChange&&l.props.onChange(f,u)}},l.handleSwatchHover=function(c,u){var d=tOe(c);if(d){var f=p4(c,c.h||l.state.oldHue);l.props.onSwatchHover&&l.props.onSwatchHover(f,u)}},l.state=vM({},p4(s.color,0)),l.debounce=xYe(function(c,u,d){c(u,d)},100),l}return Nyn(a,[{key:"render",value:function(){var l={};return this.props.onSwatchHover&&(l.onSwatchHover=this.handleSwatchHover),V.createElement(n,ioe({},this.props,this.state,{onChange:this.handleChange},l))}}],[{key:"getDerivedStateFromProps",value:function(l,c){return vM({},p4(l.color,c.oldHue))}}]),a}(m.PureComponent||m.Component);return r.propTypes=vM({},n.propTypes),r.defaultProps=vM(vM({},n.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),r};function GO(e){"@babel/helpers - typeof";return GO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},GO(e)}function Fyn(e,n,r){return n=NYe(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function Byn(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function jyn(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,NYe(i.key),i)}}function Uyn(e,n,r){return n&&jyn(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function NYe(e){var n=Hyn(e,"string");return GO(n)==="symbol"?n:String(n)}function Hyn(e,n){if(GO(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||"default");if(GO(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function zyn(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&aoe(e,n)}function aoe(e,n){return aoe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},aoe(e,n)}function Vyn(e){var n=Yyn();return function(){var i=EB(e),o;if(n){var a=EB(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return Gyn(this,o)}}function Gyn(e,n){if(n&&(GO(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wyn(e)}function Wyn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yyn(){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 EB(e){return EB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},EB(e)}var qyn=1,MYe=38,Kyn=40,Xyn=[MYe,Kyn],Qyn=function(n){return Xyn.indexOf(n)>-1},Zyn=function(n){return Number(String(n).replace(/%/g,""))},Jyn=1,yM=function(e){zyn(r,e);var n=Vyn(r);function r(i){var o;return Byn(this,r),o=n.call(this),o.handleBlur=function(){o.state.blurValue&&o.setState({value:o.state.blurValue,blurValue:null})},o.handleChange=function(a){o.setUpdatedValue(a.target.value,a)},o.handleKeyDown=function(a){var s=Zyn(a.target.value);if(!isNaN(s)&&Qyn(a.keyCode)){var l=o.getArrowOffset(),c=a.keyCode===MYe?s+l:s-l;o.setUpdatedValue(c,a)}},o.handleDrag=function(a){if(o.props.dragLabel){var s=Math.round(o.props.value+a.movementX);s>=0&&s<=o.props.dragMax&&o.props.onChange&&o.props.onChange(o.getValueObjectWithLabel(s),a)}},o.handleMouseDown=function(a){o.props.dragLabel&&(a.preventDefault(),o.handleDrag(a),window.addEventListener("mousemove",o.handleDrag),window.addEventListener("mouseup",o.handleMouseUp))},o.handleMouseUp=function(){o.unbindEventListeners()},o.unbindEventListeners=function(){window.removeEventListener("mousemove",o.handleDrag),window.removeEventListener("mouseup",o.handleMouseUp)},o.state={value:String(i.value).toUpperCase(),blurValue:String(i.value).toUpperCase()},o.inputId="rc-editable-input-".concat(Jyn++),o}return Uyn(r,[{key:"componentDidUpdate",value:function(o,a){this.props.value!==this.state.value&&(o.value!==this.props.value||a.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(o){return Fyn({},this.props.label,o)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||qyn}},{key:"setUpdatedValue",value:function(o,a){var s=this.props.label?this.getValueObjectWithLabel(o):o;this.props.onChange&&this.props.onChange(s,a),this.setState({value:o})}},{key:"render",value:function(){var o=this,a=aS({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 V.createElement("div",{style:a.wrap},V.createElement("input",{id:this.inputId,style:a.input,ref:function(l){return o.input=l},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?V.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),r}(m.PureComponent||m.Component);function WO(e){"@babel/helpers - typeof";return WO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},WO(e)}function soe(){return soe=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},soe.apply(this,arguments)}function e_n(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function t_n(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r_n(i.key),i)}}function n_n(e,n,r){return n&&t_n(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function r_n(e){var n=i_n(e,"string");return WO(n)==="symbol"?n:String(n)}function i_n(e,n){if(WO(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n);if(WO(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function o_n(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&loe(e,n)}function loe(e,n){return loe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},loe(e,n)}function a_n(e){var n=c_n();return function(){var i=CB(e),o;if(n){var a=CB(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return s_n(this,o)}}function s_n(e,n){if(n&&(WO(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l_n(e)}function l_n(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c_n(){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 CB(e){return CB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},CB(e)}var u_n=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(i){o_n(a,i);var o=a_n(a);function a(){var s;e_n(this,a);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return s=o.call.apply(o,[this].concat(c)),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},s}return n_n(a,[{key:"render",value:function(){return V.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},V.createElement(n,soe({},this.props,this.state)))}}]),a}(V.Component)};function PA(e){"@babel/helpers - typeof";return PA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},PA(e)}function coe(){return coe=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},coe.apply(this,arguments)}function iOe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function oOe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?iOe(Object(r),!0).forEach(function(i){d_n(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iOe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function d_n(e,n,r){return n=f_n(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function f_n(e){var n=p_n(e,"string");return PA(n)==="symbol"?n:String(n)}function p_n(e,n){if(PA(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||"default");if(PA(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var h_n=13,g_n=function(n){var r=n.color,i=n.style,o=n.onClick,a=o===void 0?function(){}:o,s=n.onHover,l=n.title,c=l===void 0?r:l,u=n.children,d=n.focus,f=n.focusStyle,p=f===void 0?{}:f,h=r==="transparent",g=aS({default:{swatch:oOe(oOe({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},i),d?p:{})}}),v=function(E){return a(r,E)},y=function(E){return E.keyCode===h_n&&a(r,E)},_=function(E){return s(r,E)},S={};return s&&(S.onMouseOver=_),V.createElement("div",coe({style:g.swatch,onClick:v,title:c,tabIndex:0,onKeyDown:y},S),u,h&&V.createElement(eH,{borderRadius:g.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const m_n=u_n(g_n);var v_n=function(n){var r=n.onChange,i=n.rgb,o=n.hsl,a=n.hex,s=n.disableAlpha,l=aS({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:s}),c=function(d,f){d.hex?Oyn(d.hex)&&(r==null||r({hex:d.hex,source:"hex"},f)):d.r||d.g||d.b?r==null||r({r:d.r||(i==null?void 0:i.r),g:d.g||(i==null?void 0:i.g),b:d.b||(i==null?void 0:i.b),a:i==null?void 0:i.a,source:"rgb"},f):d.a&&(d.a<0?d.a=0:d.a>100&&(d.a=100),d.a/=100,r==null||r({h:o==null?void 0:o.h,s:o==null?void 0:o.s,l:o==null?void 0:o.l,a:d.a,source:"rgb"},f))};return V.createElement("div",{style:l.fields,className:"flexbox-fix"},V.createElement("div",{style:l.double},V.createElement(yM,{style:{input:l.input,label:l.label},label:"hex",value:a==null?void 0:a.replace("#",""),onChange:c})),V.createElement("div",{style:l.single},V.createElement(yM,{style:{input:l.input,label:l.label},label:"r",value:i==null?void 0:i.r,onChange:c,dragLabel:"true",dragMax:"255"})),V.createElement("div",{style:l.single},V.createElement(yM,{style:{input:l.input,label:l.label},label:"g",value:i==null?void 0:i.g,onChange:c,dragLabel:"true",dragMax:"255"})),V.createElement("div",{style:l.single},V.createElement(yM,{style:{input:l.input,label:l.label},label:"b",value:i==null?void 0:i.b,onChange:c,dragLabel:"true",dragMax:"255"})),V.createElement("div",{style:l.alpha},V.createElement(yM,{style:{input:l.input,label:l.label},label:"a",value:Math.round(((i==null?void 0:i.a)||0)*100),onChange:c,dragLabel:"true",dragMax:"100"})))};function AA(e){"@babel/helpers - typeof";return AA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},AA(e)}function aOe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function sOe(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?aOe(Object(r),!0).forEach(function(i){y_n(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aOe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function y_n(e,n,r){return n=__n(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function __n(e){var n=b_n(e,"string");return AA(n)==="symbol"?n:String(n)}function b_n(e,n){if(AA(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||"default");if(AA(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var S_n=function(n){var r=n.colors,i=n.onClick,o=i===void 0?function(){}:i,a=n.onSwatchHover,s={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)"}},l=function(u,d){o==null||o({hex:u,source:"hex"},d)};return V.createElement("div",{style:s.colors,className:"flexbox-fix"},r==null?void 0:r.map(function(c){var u=typeof c=="string"?{color:c,title:void 0}:c,d="".concat(u.color).concat((u==null?void 0:u.title)||"");return V.createElement("div",{key:d,style:s.swatchWrap},V.createElement(m_n,sOe(sOe({},u),{},{style:s.swatch,onClick:l,onHover:a,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px ".concat(u.color)}})))}))};function DA(e){"@babel/helpers - typeof";return DA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},DA(e)}function lOe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function E_n(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?lOe(Object(r),!0).forEach(function(i){C_n(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lOe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function C_n(e,n,r){return n=w_n(n),n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function w_n(e){var n=x_n(e,"string");return DA(n)==="symbol"?n:String(n)}function x_n(e,n){if(DA(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,n||"default");if(DA(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var PYe=function(n){var r=n.width,i=n.rgb,o=n.hex,a=n.hsv,s=n.hsl,l=n.onChange,c=n.onSwatchHover,u=n.disableAlpha,d=n.presetColors,f=n.renderers,p=n.styles,h=p===void 0?{}:p,g=n.className,v=g===void 0?"":g,y=aS(SYe({default:E_n({picker:{width:r,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(i.r,",").concat(i.g,",").concat(i.b,",").concat(i.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)"}},h),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},h),{disableAlpha:u});return V.createElement("div",{style:y.picker,className:"sketch-picker ".concat(v)},V.createElement("div",{style:y.saturation},V.createElement(Kvn,{style:y.Saturation,hsl:s,hsv:a,onChange:l})),V.createElement("div",{style:y.controls,className:"flexbox-fix"},V.createElement("div",{style:y.sliders},V.createElement("div",{style:y.hue},V.createElement(uvn,{style:y.Hue,hsl:s,onChange:l})),V.createElement("div",{style:y.alpha},V.createElement(Zmn,{style:y.Alpha,rgb:i,hsl:s,renderers:f,onChange:l}))),V.createElement("div",{style:y.color},V.createElement(eH,null),V.createElement("div",{style:y.activeColor}))),V.createElement(v_n,{rgb:i,hsl:s,hex:o,onChange:l,disableAlpha:u}),V.createElement(S_n,{colors:d,onClick:l,onSwatchHover:c}))};PYe.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};var T_n=$yn(PYe),O_n=["mode","popoverProps"],R_n=["#FF9D4E","#5BD8A6","#5B8FF9","#F7664E","#FF86B7","#2B9E9D","#9270CA","#6DC8EC","#667796","#F6BD16"],I_n=V.forwardRef(function(e,n){var r=e.mode,i=e.popoverProps,o=Xt(e,O_n),a=m.useContext(or.ConfigContext),s=a.getPrefixCls,l=s("pro-field-color-picker"),c=Am.useToken(),u=c.token,d=dr("#1890ff",{value:o.value,onChange:o.onChange}),f=ke(d,2),p=f[0],h=f[1],g=ia("ProFiledColorPicker"+p,function(){return fe({},".".concat(l),{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",border:"1px solid ".concat(u.colorSplit),borderRadius:u.borderRadius,"&:hover":{borderColor:p}})}),v=g.wrapSSR,y=g.hashId,_=v(N.jsx("div",{className:"".concat(l," ").concat(y).trim(),style:{cursor:o.disabled?"not-allowed":"pointer",backgroundColor:o.disabled?u.colorBgContainerDisabled:u.colorBgContainer},children:N.jsx("div",{style:{backgroundColor:p,width:24,boxSizing:"border-box",height:24,borderRadius:u.borderRadius}})}));return m.useImperativeHandle(n,function(){}),r==="read"||o.disabled?_:N.jsx(Ip,ee(ee({trigger:"click",placement:"right"},i),{},{content:N.jsx("div",{style:{margin:"-12px -16px"},children:N.jsx(T_n,ee(ee({},o),{},{presetColors:o.colors||o.presetColors||R_n,color:p,onChange:function(b){var E=b.hex,w=b.rgb,C=w.r,x=w.g,T=w.b,R=w.a;if(R&&R<1){h("rgba(".concat(C,", ").concat(x,", ").concat(T,", ").concat(R,")"));return}h(E)}}))}),children:_}))}),N_n={label:"Recommended",colors:["#F5222D","#FA8C16","#FADB14","#8BBB11","#52C41A","#13A8A8","#1677FF","#2F54EB","#722ED1","#EB2F96","#F5222D4D","#FA8C164D","#FADB144D","#8BBB114D","#52C41A4D","#13A8A84D","#1677FF4D","#2F54EB4D","#722ED14D","#EB2F964D"]};function AYe(){return Pk(Ny,"5.5.0")>-1}function M_n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&AYe()?Mde:I_n}var P_n=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.renderFormItem,l=n.fieldProps,c=n.old,u=m.useContext(or.ConfigContext),d=u.getPrefixCls,f=V.useMemo(function(){return M_n(c)},[c]),p=d("pro-field-color-picker"),h=m.useMemo(function(){return c?"":Ce(fe({},p,AYe()))},[p,c]);if(o==="read"){var g=N.jsx(f,{value:i,mode:"read",ref:r,className:h,open:!1});return a?a(i,ee({mode:o},l),g):g}if(o==="edit"||o==="update"){var v=ee({display:"table-cell"},l.style),y=N.jsx(f,ee(ee({ref:r,presets:[N_n]},l),{},{style:v,className:h}));return s?s(i,ee(ee({mode:o},l),{},{style:v}),y):y}return null};const A_n=V.forwardRef(P_n);Zr.extend(cde);var D_n=function(n,r){return n?typeof r=="function"?r(Zr(n)):Zr(n).format((Array.isArray(r)?r[0]:r)||"YYYY-MM-DD"):"-"},k_n=function(n,r){var i=n.text,o=n.mode,a=n.format,s=n.label,l=n.light,c=n.render,u=n.renderFormItem,d=n.plain,f=n.showTime,p=n.fieldProps,h=n.picker,g=n.bordered,v=n.lightLabel,y=cs(),_=m.useState(!1),S=ke(_,2),b=S[0],E=S[1];if(o==="read"){var w=D_n(i,p.format||a);return c?c(i,ee({mode:o},p),N.jsx(N.Fragment,{children:w})):N.jsx(N.Fragment,{children:w})}if(o==="edit"||o==="update"){var C,x=p.disabled,T=p.value,R=p.placeholder,O=R===void 0?y.getMessage("tableForm.selectPlaceholder","请选择"):R,M=Ak(T);return l?C=N.jsx(i_,{label:s,onClick:function(){var k;p==null||(k=p.onOpenChange)===null||k===void 0||k.call(p,!0),E(!0)},style:M?{paddingInlineEnd:0}:void 0,disabled:x,value:M||b?N.jsx(md,ee(ee(ee({picker:h,showTime:f,format:a,ref:r},p),{},{value:M,onOpenChange:function(k){var $;E(k),p==null||($=p.onOpenChange)===null||$===void 0||$.call(p,k)}},wf(!1)),{},{open:b})):void 0,allowClear:!1,downIcon:M||b?!1:void 0,bordered:g,ref:v}):C=N.jsx(md,ee(ee(ee({picker:h,showTime:f,format:a,placeholder:O},wf(d===void 0?!0:!d)),{},{ref:r},p),{},{value:M})),u?u(i,ee({mode:o},p),C):C}return null};const Nx=V.forwardRef(k_n);var L_n=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.placeholder,l=n.renderFormItem,c=n.fieldProps,u=cs(),d=s||u.getMessage("tableForm.inputPlaceholder","请输入"),f=m.useCallback(function(_){var S=_??void 0;return!c.stringMode&&typeof S=="string"&&(S=Number(S)),typeof S=="number"&&!dC(S)&&!dC(c.precision)&&(S=Number(S.toFixed(c.precision))),S},[c]);if(o==="read"){var p,h={};c!=null&&c.precision&&(h={minimumFractionDigits:Number(c.precision),maximumFractionDigits:Number(c.precision)});var g=new Intl.NumberFormat(void 0,ee(ee({},h),(c==null?void 0:c.intlProps)||{})).format(Number(i)),v=c!=null&&c.stringMode?N.jsx("span",{children:i}):N.jsx("span",{ref:r,children:(c==null||(p=c.formatter)===null||p===void 0?void 0:p.call(c,g))||g});return a?a(i,ee({mode:o},c),v):v}if(o==="edit"||o==="update"){var y=N.jsx(Py,ee(ee({ref:r,min:0,placeholder:d},Wr(c,["onChange","onBlur"])),{},{onChange:function(S){var b;return c==null||(b=c.onChange)===null||b===void 0?void 0:b.call(c,f(S))},onBlur:function(S){var b;return c==null||(b=c.onBlur)===null||b===void 0?void 0:b.call(c,f(S.target.value))}}));return l?l(i,ee({mode:o},c),y):y}return null};const $_n=V.forwardRef(L_n);var F_n=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.placeholder,l=n.renderFormItem,c=n.fieldProps,u=n.separator,d=u===void 0?"~":u,f=n.separatorWidth,p=f===void 0?30:f,h=c.value,g=c.defaultValue,v=c.onChange,y=c.id,_=cs(),S=Am.useToken(),b=S.token,E=dr(function(){return g},{value:h,onChange:v}),w=ke(E,2),C=w[0],x=w[1];if(o==="read"){var T=function(B){var Y,q=new Intl.NumberFormat(void 0,ee({minimumSignificantDigits:2},(c==null?void 0:c.intlProps)||{})).format(Number(B));return(c==null||(Y=c.formatter)===null||Y===void 0?void 0:Y.call(c,q))||q},R=N.jsxs("span",{ref:r,children:[T(i[0])," ",d," ",T(i[1])]});return a?a(i,ee({mode:o},c),R):R}if(o==="edit"||o==="update"){var O=function(){if(Array.isArray(C)){var B=ke(C,2),Y=B[0],q=B[1];typeof Y=="number"&&typeof q=="number"&&Y>q?x([q,Y]):Y===void 0&&q===void 0&&x(void 0)}},M=function(B,Y){var q=Tt(C||[]);q[B]=Y===null?void 0:Y,x(q)},P=(c==null?void 0:c.placeholder)||s||[_.getMessage("tableForm.inputPlaceholder","请输入"),_.getMessage("tableForm.inputPlaceholder","请输入")],k=function(B){return Array.isArray(P)?P[B]:P},$=Cf.Compact||Oi.Group,U=Cf.Compact?{}:{compact:!0},z=N.jsxs($,ee(ee({},U),{},{onBlur:O,children:[N.jsx(Py,ee(ee({},c),{},{placeholder:k(0),id:y??"".concat(y,"-0"),style:{width:"calc((100% - ".concat(p,"px) / 2)")},value:C==null?void 0:C[0],defaultValue:g==null?void 0:g[0],onChange:function(B){return M(0,B)}})),N.jsx(Oi,{style:{width:p,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:b==null?void 0:b.colorBgContainer},placeholder:d,disabled:!0}),N.jsx(Py,ee(ee({},c),{},{placeholder:k(1),id:y??"".concat(y,"-1"),style:{width:"calc((100% - ".concat(p,"px) / 2)"),borderInlineStart:0},value:C==null?void 0:C[1],defaultValue:g==null?void 0:g[1],onChange:function(B){return M(1,B)}}))]}));return l?l(i,ee({mode:o},c),z):z}return null};const B_n=V.forwardRef(F_n);var DYe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){return function(r,i,o){r=r||{};var a=i.prototype,s={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 l(u,d,f,p){return a.fromToBase(u,d,f,p)}o.en.relativeTime=s,a.fromToBase=function(u,d,f,p,h){for(var g,v,y,_=f.$locale().relativeTime||s,S=r.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=S.length,E=0;E<b;E+=1){var w=S[E];w.d&&(g=p?o(u).diff(f,w.d,!0):f.diff(u,w.d,!0));var C=(r.rounding||Math.round)(Math.abs(g));if(y=g>0,C<=w.r||!w.r){C<=1&&E>0&&(w=S[E-1]);var x=_[w.l];h&&(C=h(""+C)),v=typeof x=="string"?x.replace("%d",C):x(C,d,w.l,y);break}}if(d)return v;var T=y?_.future:_.past;return typeof T=="function"?T(v):T.replace("%s",v)},a.to=function(u,d){return l(u,d,this,!0)},a.from=function(u,d){return l(u,d,this)};var c=function(u){return u.$u?o.utc():o()};a.toNow=function(u){return this.to(c(this),u)},a.fromNow=function(u){return this.from(c(this),u)}}})})(DYe);var j_n=DYe.exports;const U_n=Or(j_n);Zr.extend(U_n);var H_n=function(n,r){var i=n.text,o=n.mode,a=n.plain,s=n.render,l=n.renderFormItem,c=n.format,u=n.fieldProps,d=cs();if(o==="read"){var f=N.jsx(Ef,{title:Zr(i).format((u==null?void 0:u.format)||c||"YYYY-MM-DD HH:mm:ss"),children:Zr(i).fromNow()});return s?s(i,ee({mode:o},u),N.jsx(N.Fragment,{children:f})):N.jsx(N.Fragment,{children:f})}if(o==="edit"||o==="update"){var p=d.getMessage("tableForm.selectPlaceholder","请选择"),h=Ak(u.value),g=N.jsx(md,ee(ee(ee({ref:r,placeholder:p,showTime:!0},wf(a===void 0?!0:!a)),u),{},{value:h}));return l?l(i,ee({mode:o},u),g):g}return null};const z_n=V.forwardRef(H_n);var kYe=V.forwardRef(function(e,n){var r=e.text,i=e.mode,o=e.render,a=e.renderFormItem,s=e.fieldProps,l=e.placeholder,c=e.width,u=cs(),d=l||u.getMessage("tableForm.inputPlaceholder","请输入");if(i==="read"){var f=N.jsx(bVe,ee({ref:n,width:c||32,src:r},s));return o?o(r,ee({mode:i},s),f):f}if(i==="edit"||i==="update"){var p=N.jsx(Oi,ee({ref:n,placeholder:d},s));return a?a(r,ee({mode:i},s),p):p}return null}),V_n=function(n,r){var i=n.border,o=i===void 0?!1:i,a=n.children,s=m.useContext(or.ConfigContext),l=s.getPrefixCls,c=l("pro-field-index-column"),u=ia("IndexColumn",function(){return fe({},".".concat(c),{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"}}})}),d=u.wrapSSR,f=u.hashId;return d(N.jsx("div",{ref:r,className:Ce(c,f,fe(fe({},"".concat(c,"-border"),o),"top-three",a>3)),children:a}))};const cOe=V.forwardRef(V_n);var G_n=["contentRender","numberFormatOptions","numberPopoverRender","open"],W_n=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],LYe=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),Y_n={style:"currency",currency:"USD"},q_n={style:"currency",currency:"RUB"},K_n={style:"currency",currency:"RSD"},X_n={style:"currency",currency:"MYR"},Q_n={style:"currency",currency:"BRL"},Z_n={default:LYe,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":Y_n,"ru-RU":q_n,"ms-MY":X_n,"sr-RS":K_n,"pt-BR":Q_n},uOe=function(n,r,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",s=r==null?void 0:r.toString().replaceAll(",","");if(typeof s=="string"){var l=Number(s);if(Number.isNaN(l))return s;s=l}if(!s&&s!==0)return"";var c=!1;try{c=n!==!1&&Intl.NumberFormat.supportedLocalesOf([n.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var u=new Intl.NumberFormat(c&&n!==!1&&(n==null?void 0:n.replace("_","-"))||"zh-Hans-CN",ee(ee({},Z_n[n||"zh-Hans-CN"]||LYe),{},{maximumFractionDigits:i},o)),d=u.format(s),f=function(_){var S=_.match(/\d+/);if(S){var b=S[0];return _.slice(_.indexOf(b))}else return _},p=f(d),h=d||"",g=ke(h,1),v=g[0];return["+","-"].includes(v)?"".concat(a||"").concat(v).concat(p):"".concat(a||"").concat(p)}catch{return s}},Qq=2,J_n=V.forwardRef(function(e,n){var r=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var i=e.open,o=Xt(e,G_n),a=dr(function(){return o.defaultValue},{value:o.value,onChange:o.onChange}),s=ke(a,2),l=s[0],c=s[1],u=r==null?void 0:r(ee(ee({},o),{},{value:l})),d=LU(u?i:!1);return N.jsx(Ip,ee(ee({placement:"topLeft"},d),{},{trigger:["focus","click"],content:u,getPopupContainer:function(p){return(p==null?void 0:p.parentElement)||document.body},children:N.jsx(Py,ee(ee({ref:n},o),{},{value:l,onChange:c}))}))}),ebn=function(n,r){var i,o=n.text,a=n.mode,s=n.render,l=n.renderFormItem,c=n.fieldProps;n.proFieldKey,n.plain,n.valueEnum;var u=n.placeholder,d=n.locale,f=n.customSymbol,p=f===void 0?c.customSymbol:f,h=n.numberFormatOptions,g=h===void 0?c==null?void 0:c.numberFormatOptions:h,v=n.numberPopoverRender,y=v===void 0?(c==null?void 0:c.numberPopoverRender)||!1:v,_=Xt(n,W_n),S=(i=c==null?void 0:c.precision)!==null&&i!==void 0?i:Qq,b=cs();d&&uC[d]&&(b=uC[d]);var E=u||b.getMessage("tableForm.inputPlaceholder","请输入"),w=m.useMemo(function(){if(p)return p;if(!(_.moneySymbol===!1||c.moneySymbol===!1))return b.getMessage("moneySymbol","¥")},[p,c.moneySymbol,b,_.moneySymbol]),C=m.useCallback(function(R){var O=new RegExp("\\B(?=(\\d{".concat(3+Math.max(S-Qq,0),"})+(?!\\d))"),"g"),M=String(R).split("."),P=ke(M,2),k=P[0],$=P[1],U=k.replace(O,","),z="";return $&&S>0&&(z=".".concat($.slice(0,S===void 0?Qq:S))),"".concat(U).concat(z)},[S]);if(a==="read"){var x=N.jsx("span",{ref:r,children:uOe(d||!1,o,S,g??c.numberFormatOptions,w)});return s?s(o,ee({mode:a},c),x):x}if(a==="edit"||a==="update"){var T=N.jsx(J_n,ee(ee({contentRender:function(O){if(y===!1||!O.value)return null;var M=uOe(w||d||!1,"".concat(C(O.value)),S,ee(ee({},g),{},{notation:"compact"}),w);return typeof y=="function"?y==null?void 0:y(O,M):M},ref:r,precision:S,formatter:function(O){return O&&w?"".concat(w," ").concat(C(O)):O==null?void 0:O.toString()},parser:function(O){return w&&O?O.replace(new RegExp("\\".concat(w,"\\s?|(,*)"),"g"),""):O},placeholder:E},Wr(c,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:c.onBlur?function(R){var O,M=R.target.value;w&&M&&(M=M.replace(new RegExp("\\".concat(w,"\\s?|(,*)"),"g"),"")),(O=c.onBlur)===null||O===void 0||O.call(c,M)}:void 0}));return l?l(o,ee({mode:a},c),T):T}return null};const $Ye=V.forwardRef(ebn);var dOe=function(n){return n.map(function(r,i){var o;return V.isValidElement(r)?V.cloneElement(r,ee(ee({key:i},r==null?void 0:r.props),{},{style:ee({},r==null||(o=r.props)===null||o===void 0?void 0:o.style)})):N.jsx(V.Fragment,{children:r},i)})},tbn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.fieldProps,l=m.useContext(or.ConfigContext),c=l.getPrefixCls,u=c("pro-field-option"),d=Am.useToken(),f=d.token;if(m.useImperativeHandle(r,function(){return{}}),a){var p=a(i,ee({mode:o},s),N.jsx(N.Fragment,{}));return!p||(p==null?void 0:p.length)<1||!Array.isArray(p)?null:N.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:u,children:dOe(p)})}return!i||!Array.isArray(i)?V.isValidElement(i)?i:null:N.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:u,children:dOe(i)})};const nbn=V.forwardRef(tbn);var rbn=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],ibn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.renderFormItem,l=n.fieldProps;n.proFieldKey;var c=Xt(n,rbn),u=cs(),d=dr(function(){return c.open||c.visible||!1},{value:c.open||c.visible,onChange:c.onOpenChange||c.onVisible}),f=ke(d,2),p=f[0],h=f[1];if(o==="read"){var g=N.jsx(N.Fragment,{children:"-"});return i&&(g=N.jsxs(Cf,{children:[N.jsx("span",{ref:r,children:p?i:"********"}),N.jsx("a",{onClick:function(){return h(!p)},children:p?N.jsx(wk,{}):N.jsx(jze,{})})]})),a?a(i,ee({mode:o},l),g):g}if(o==="edit"||o==="update"){var v=N.jsx(Oi.Password,ee({placeholder:u.getMessage("tableForm.inputPlaceholder","请输入"),ref:r},l));return s?s(i,ee({mode:o},l),v):v}return null};const obn=V.forwardRef(ibn);function abn(e){return e===0?null:e>0?"+":"-"}function sbn(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function lbn(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return n>=0?e==null?void 0:e.toFixed(n):e}function wB(e){return cn(e)==="symbol"||e instanceof Symbol?NaN:Number(e)}var cbn=function(n,r){var i=n.text,o=n.prefix,a=n.precision,s=n.suffix,l=s===void 0?"%":s,c=n.mode,u=n.showColor,d=u===void 0?!1:u,f=n.render,p=n.renderFormItem,h=n.fieldProps,g=n.placeholder,v=n.showSymbol,y=cs(),_=g||y.getMessage("tableForm.inputPlaceholder","请输入"),S=m.useMemo(function(){return typeof i=="string"&&i.includes("%")?wB(i.replace("%","")):wB(i)},[i]),b=m.useMemo(function(){return typeof v=="function"?v==null?void 0:v(i):v},[v,i]);if(c==="read"){var E=d?{color:sbn(S)}:{},w=N.jsxs("span",{style:E,ref:r,children:[o&&N.jsx("span",{children:o}),b&&N.jsxs(m.Fragment,{children:[abn(S)," "]}),lbn(Math.abs(S),a),l&&l]});return f?f(i,ee(ee({mode:c},h),{},{prefix:o,precision:a,showSymbol:b,suffix:l}),w):w}if(c==="edit"||c==="update"){var C=N.jsx(Py,ee({ref:r,formatter:function(T){return T&&o?"".concat(o," ").concat(T).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):T},parser:function(T){return T?T.replace(/.*\s|,/g,""):""},placeholder:_},h));return p?p(i,ee({mode:c},h),C):C}return null};const FYe=V.forwardRef(cbn);function ubn(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var dbn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.plain,l=n.renderFormItem,c=n.fieldProps,u=n.placeholder,d=cs(),f=u||d.getMessage("tableForm.inputPlaceholder","请输入"),p=m.useMemo(function(){return typeof i=="string"&&i.includes("%")?wB(i.replace("%","")):wB(i)},[i]);if(o==="read"){var h=N.jsx(NVe,ee({ref:r,size:"small",style:{minWidth:100,maxWidth:320},percent:p,steps:s?10:void 0,status:ubn(p)},c));return a?a(p,ee({mode:o},c),h):h}if(o==="edit"||o==="update"){var g=N.jsx(Py,ee({ref:r,placeholder:f},c));return l?l(i,ee({mode:o},c),g):g}return null};const BYe=V.forwardRef(dbn);var fbn=["radioType","renderFormItem","mode","render"],pbn=function(n,r){var i,o,a=n.radioType,s=n.renderFormItem,l=n.mode,c=n.render,u=Xt(n,fbn),d=m.useContext(or.ConfigContext),f=d.getPrefixCls,p=f("pro-field-radio"),h=bI(u),g=ke(h,3),v=g[0],y=g[1],_=g[2],S=m.useRef(),b=(i=Hr.Item)===null||i===void 0||(o=i.useStatus)===null||o===void 0?void 0:o.call(i);m.useImperativeHandle(r,function(){return ee(ee({},S.current||{}),{},{fetchData:function($){return _($)}})},[_]);var E=ia("FieldRadioRadio",function(k){return fe(fe(fe({},".".concat(p,"-error"),{span:{color:k.colorError}}),".".concat(p,"-warning"),{span:{color:k.colorWarning}}),".".concat(p,"-vertical"),fe({},"".concat(k.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),w=E.wrapSSR,C=E.hashId;if(v)return N.jsx(t_,{size:"small"});if(l==="read"){var x=y!=null&&y.length?y==null?void 0:y.reduce(function(k,$){var U;return ee(ee({},k),{},fe({},(U=$.value)!==null&&U!==void 0?U:"",$.label))},{}):void 0,T=N.jsx(N.Fragment,{children:_I(u.text,o_(u.valueEnum||x))});if(c){var R;return(R=c(u.text,ee({mode:l},u.fieldProps),T))!==null&&R!==void 0?R:null}return T}if(l==="edit"){var O,M=w(N.jsx(ya.Group,ee(ee({ref:S,optionType:a},u.fieldProps),{},{className:Ce((O=u.fieldProps)===null||O===void 0?void 0:O.className,fe(fe({},"".concat(p,"-error"),(b==null?void 0:b.status)==="error"),"".concat(p,"-warning"),(b==null?void 0:b.status)==="warning"),C,"".concat(p,"-").concat(u.fieldProps.layout||"horizontal")),options:y})));if(s){var P;return(P=s(u.text,ee(ee({mode:l},u.fieldProps),{},{options:y,loading:v}),M))!==null&&P!==void 0?P:null}return M}return null};const fOe=V.forwardRef(pbn);var hbn=function(n,r){var i=n.text,o=n.mode,a=n.light,s=n.label,l=n.format,c=n.render,u=n.picker,d=n.renderFormItem,f=n.plain,p=n.showTime,h=n.lightLabel,g=n.bordered,v=n.fieldProps,y=cs(),_=Array.isArray(i)?i:[],S=ke(_,2),b=S[0],E=S[1],w=V.useState(!1),C=ke(w,2),x=C[0],T=C[1],R=m.useCallback(function(z){if(typeof(v==null?void 0:v.format)=="function"){var D;return v==null||(D=v.format)===null||D===void 0?void 0:D.call(v,z)}return(v==null?void 0:v.format)||l||"YYYY-MM-DD"},[v,l]),O=b?Zr(b).format(R(Zr(b))):"",M=E?Zr(E).format(R(Zr(E))):"";if(o==="read"){var P=N.jsxs("div",{ref:r,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[N.jsx("div",{children:O||"-"}),N.jsx("div",{children:M||"-"})]});return c?c(i,ee({mode:o},v),N.jsx("span",{children:P})):P}if(o==="edit"||o==="update"){var k=Ak(v.value),$;if(a){var U;$=N.jsx(i_,{label:s,onClick:function(){var D;v==null||(D=v.onOpenChange)===null||D===void 0||D.call(v,!0),T(!0)},style:k?{paddingInlineEnd:0}:void 0,disabled:v.disabled,value:k||x?N.jsx(md.RangePicker,ee(ee(ee({picker:u,showTime:p,format:l},wf(!1)),v),{},{placeholder:(U=v.placeholder)!==null&&U!==void 0?U:[y.getMessage("tableForm.selectPlaceholder","请选择"),y.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var D;T(!1),v==null||(D=v.onClear)===null||D===void 0||D.call(v)},value:k,onOpenChange:function(D){var B;k&&T(D),v==null||(B=v.onOpenChange)===null||B===void 0||B.call(v,D)}})):null,allowClear:!1,bordered:g,ref:h,downIcon:k||x?!1:void 0})}else $=N.jsx(md.RangePicker,ee(ee(ee({ref:r,format:l,showTime:p,placeholder:[y.getMessage("tableForm.selectPlaceholder","请选择"),y.getMessage("tableForm.selectPlaceholder","请选择")]},wf(f===void 0?!0:!f)),v),{},{value:k}));return d?d(i,ee({mode:o},v),$):$}return null};const Mx=V.forwardRef(hbn);var gbn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.renderFormItem,l=n.fieldProps;if(o==="read"){var c=N.jsx(bwe,ee(ee({allowHalf:!0,disabled:!0,ref:r},l),{},{value:i}));return a?a(i,ee({mode:o},l),N.jsx(N.Fragment,{children:c})):c}if(o==="edit"||o==="update"){var u=N.jsx(bwe,ee({allowHalf:!0,ref:r},l));return s?s(i,ee({mode:o},l),u):u}return null};const mbn=V.forwardRef(gbn);function vbn(e){var n=e,r="",i=!1;n<0&&(n=-n,i=!0);var o=Math.floor(n/(3600*24)),a=Math.floor(n/3600%24),s=Math.floor(n/60%60),l=Math.floor(n%60);return r="".concat(l,"秒"),s>0&&(r="".concat(s,"分钟").concat(r)),a>0&&(r="".concat(a,"小时").concat(r)),o>0&&(r="".concat(o,"天").concat(r)),i&&(r+="前"),r}var ybn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.renderFormItem,l=n.fieldProps,c=n.placeholder,u=cs(),d=c||u.getMessage("tableForm.inputPlaceholder","请输入");if(o==="read"){var f=vbn(Number(i)),p=N.jsx("span",{ref:r,children:f});return a?a(i,ee({mode:o},l),p):p}if(o==="edit"||o==="update"){var h=N.jsx(Py,ee({ref:r,min:0,style:{width:"100%"},placeholder:d},l));return s?s(i,ee({mode:o},l),h):h}return null};const _bn=V.forwardRef(ybn);var bbn=["mode","render","renderFormItem","fieldProps","emptyText"],Sbn=function(n,r){var i=n.mode,o=n.render,a=n.renderFormItem,s=n.fieldProps,l=n.emptyText,c=l===void 0?"-":l,u=Xt(n,bbn),d=m.useRef(),f=bI(n),p=ke(f,3),h=p[0],g=p[1],v=p[2];if(m.useImperativeHandle(r,function(){return ee(ee({},d.current||{}),{},{fetchData:function(w){return v(w)}})},[v]),h)return N.jsx(t_,{size:"small"});if(i==="read"){var y=g!=null&&g.length?g==null?void 0:g.reduce(function(E,w){var C;return ee(ee({},E),{},fe({},(C=w.value)!==null&&C!==void 0?C:"",w.label))},{}):void 0,_=N.jsx(N.Fragment,{children:_I(u.text,o_(u.valueEnum||y))});if(o){var S;return(S=o(u.text,ee({mode:i},s),N.jsx(N.Fragment,{children:_})))!==null&&S!==void 0?S:c}return _}if(i==="edit"||i==="update"){var b=N.jsx(Nze,ee(ee({ref:d},Wr(s||{},["allowClear"])),{},{options:g}));return a?a(u.text,ee(ee({mode:i},s),{},{options:g,loading:h}),b):b}return null};const Ebn=V.forwardRef(Sbn);var Cbn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.renderFormItem,l=n.fieldProps;if(o==="read"){var c=i;return a?a(i,ee({mode:o},l),N.jsx(N.Fragment,{children:c})):N.jsx(N.Fragment,{children:c})}if(o==="edit"||o==="update"){var u=N.jsx(Vze,ee(ee({ref:r},l),{},{style:ee({minWidth:120},l==null?void 0:l.style)}));return s?s(i,ee({mode:o},l),u):u}return null};const wbn=V.forwardRef(Cbn);var xbn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.light,l=n.label,c=n.renderFormItem,u=n.fieldProps,d=cs(),f=m.useMemo(function(){var y,_;return i==null||"".concat(i).length<1?"-":i?(y=u==null?void 0:u.checkedChildren)!==null&&y!==void 0?y:d.getMessage("switch.open","打开"):(_=u==null?void 0:u.unCheckedChildren)!==null&&_!==void 0?_:d.getMessage("switch.close","关闭")},[u==null?void 0:u.checkedChildren,u==null?void 0:u.unCheckedChildren,i]);if(o==="read")return a?a(i,ee({mode:o},u),N.jsx(N.Fragment,{children:f})):f??"-";if(o==="edit"||o==="update"){var p,h=N.jsx(sC,ee(ee({ref:r,size:s?"small":void 0},Wr(u,["value"])),{},{checked:(p=u==null?void 0:u.checked)!==null&&p!==void 0?p:u==null?void 0:u.value}));if(s){var g=u.disabled,v=u.bordered;return N.jsx(i_,{label:l,disabled:g,bordered:v,downIcon:!1,value:N.jsx("div",{style:{paddingLeft:8},children:h}),allowClear:!1})}return c?c(i,ee({mode:o},u),h):h}return null};const Tbn=V.forwardRef(xbn);var Obn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.renderFormItem,l=n.fieldProps,c=n.emptyText,u=c===void 0?"-":c,d=l||{},f=d.autoFocus,p=d.prefix,h=p===void 0?"":p,g=d.suffix,v=g===void 0?"":g,y=cs(),_=m.useRef();if(m.useImperativeHandle(r,function(){return _.current},[]),m.useEffect(function(){if(f){var C;(C=_.current)===null||C===void 0||C.focus()}},[f]),o==="read"){var S=N.jsxs(N.Fragment,{children:[h,i??u,v]});if(a){var b;return(b=a(i,ee({mode:o},l),S))!==null&&b!==void 0?b:u}return S}if(o==="edit"||o==="update"){var E=y.getMessage("tableForm.inputPlaceholder","请输入"),w=N.jsx(Oi,ee({ref:_,placeholder:E,allowClear:!0},l));return s?s(i,ee({mode:o},l),w):w}return null};const Rbn=V.forwardRef(Obn);var Ibn=function(n,r){var i=n.text,o=n.fieldProps,a=m.useContext(or.ConfigContext),s=a.getPrefixCls,l=s("pro-field-readonly"),c="".concat(l,"-textarea"),u=ia("TextArea",function(){return fe({},".".concat(c),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),d=u.wrapSSR,f=u.hashId;return d(N.jsx("span",ee(ee({ref:r,className:Ce(f,l,c)},Wr(o,["autoSize","classNames","styles"])),{},{children:i??"-"})))};const Nbn=V.forwardRef(Ibn);var Mbn=function(n,r){var i=n.text,o=n.mode,a=n.render,s=n.renderFormItem,l=n.fieldProps,c=cs();if(o==="read"){var u=N.jsx(Nbn,ee(ee({},n),{},{ref:r}));return a?a(i,ee({mode:o},Wr(l,["showCount"])),u):u}if(o==="edit"||o==="update"){var d=N.jsx(Oi.TextArea,ee({ref:r,rows:3,onKeyPress:function(p){p.key==="Enter"&&p.stopPropagation()},placeholder:c.getMessage("tableForm.inputPlaceholder","请输入")},l));return s?s(i,ee({mode:o},l),d):d}return null};const Pbn=V.forwardRef(Mbn);var Abn=function(n,r){var i=n.text,o=n.mode,a=n.light,s=n.label,l=n.format,c=n.render,u=n.renderFormItem,d=n.plain,f=n.fieldProps,p=n.lightLabel,h=m.useState(!1),g=ke(h,2),v=g[0],y=g[1],_=cs(),S=(f==null?void 0:f.format)||l||"HH:mm:ss",b=Zr.isDayjs(i)||typeof i=="number";if(o==="read"){var E=N.jsx("span",{ref:r,children:i?Zr(i,b?void 0:S).format(S):"-"});return c?c(i,ee({mode:o},f),N.jsx("span",{children:E})):E}if(o==="edit"||o==="update"){var w,C=f.disabled,x=f.value,T=Ak(x,S);if(a){var R;w=N.jsx(i_,{onClick:function(){var M;f==null||(M=f.onOpenChange)===null||M===void 0||M.call(f,!0),y(!0)},style:T?{paddingInlineEnd:0}:void 0,label:s,disabled:C,value:T||v?N.jsx(Ay,ee(ee(ee({},wf(!1)),{},{format:l,ref:r},f),{},{placeholder:(R=f.placeholder)!==null&&R!==void 0?R:_.getMessage("tableForm.selectPlaceholder","请选择"),value:T,onOpenChange:function(M){var P;y(M),f==null||(P=f.onOpenChange)===null||P===void 0||P.call(f,M)},open:v})):null,downIcon:T||v?!1:void 0,allowClear:!1,ref:p})}else w=N.jsx(md.TimePicker,ee(ee(ee({ref:r,format:l},wf(d===void 0?!0:!d)),f),{},{value:T}));return u?u(i,ee({mode:o},f),w):w}return null},Dbn=function(n,r){var i=n.text,o=n.light,a=n.label,s=n.mode,l=n.lightLabel,c=n.format,u=n.render,d=n.renderFormItem,f=n.plain,p=n.fieldProps,h=cs(),g=m.useState(!1),v=ke(g,2),y=v[0],_=v[1],S=(p==null?void 0:p.format)||c||"HH:mm:ss",b=Array.isArray(i)?i:[],E=ke(b,2),w=E[0],C=E[1],x=Zr.isDayjs(w)||typeof w=="number",T=Zr.isDayjs(C)||typeof C=="number",R=w?Zr(w,x?void 0:S).format(S):"",O=C?Zr(C,T?void 0:S).format(S):"";if(s==="read"){var M=N.jsxs("div",{ref:r,children:[N.jsx("div",{children:R||"-"}),N.jsx("div",{children:O||"-"})]});return u?u(i,ee({mode:s},p),N.jsx("span",{children:M})):M}if(s==="edit"||s==="update"){var P=Ak(p.value,S),k;if(o){var $=p.disabled,U=p.placeholder,z=U===void 0?[h.getMessage("tableForm.selectPlaceholder","请选择"),h.getMessage("tableForm.selectPlaceholder","请选择")]:U;k=N.jsx(i_,{onClick:function(){var B;p==null||(B=p.onOpenChange)===null||B===void 0||B.call(p,!0),_(!0)},style:P?{paddingInlineEnd:0}:void 0,label:a,disabled:$,placeholder:z,value:P||y?N.jsx(Ay.RangePicker,ee(ee(ee({},wf(!1)),{},{format:c,ref:r},p),{},{placeholder:z,value:P,onOpenChange:function(B){var Y;_(B),p==null||(Y=p.onOpenChange)===null||Y===void 0||Y.call(p,B)},open:y})):null,downIcon:P||y?!1:void 0,allowClear:!1,ref:l})}else k=N.jsx(Ay.RangePicker,ee(ee(ee({ref:r,format:c},wf(f===void 0?!0:!f)),p),{},{value:P}));return d?d(i,ee({mode:s},p),k):k}return null},kbn=V.forwardRef(Dbn);const Lbn=V.forwardRef(Abn);var $bn=["radioType","renderFormItem","mode","light","label","render"],Fbn=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],Bbn=function(n,r){n.radioType;var i=n.renderFormItem,o=n.mode,a=n.light,s=n.label,l=n.render,c=Xt(n,$bn),u=m.useContext(or.ConfigContext),d=u.getPrefixCls,f=d("pro-field-tree-select"),p=m.useRef(null),h=m.useState(!1),g=ke(h,2),v=g[0],y=g[1],_=c.fieldProps,S=_.onSearch,b=_.onClear,E=_.onChange,w=_.onBlur,C=_.showSearch,x=_.autoClearSearchValue;_.treeData;var T=_.fetchDataOnSearch,R=_.searchValue,O=Xt(_,Fbn),M=cs(),P=bI(ee(ee({},c),{},{defaultKeyWords:R})),k=ke(P,3),$=k[0],U=k[1],z=k[2],D=dr(void 0,{onChange:S,value:R}),B=ke(D,2),Y=B[0],q=B[1];m.useImperativeHandle(r,function(){return ee(ee({},p.current||{}),{},{fetchData:function(ve){return z(ve)}})});var K=m.useMemo(function(){if(o==="read"){var me=(O==null?void 0:O.fieldNames)||{},ve=me.value,he=ve===void 0?"value":ve,be=me.label,we=be===void 0?"label":be,De=me.children,Ae=De===void 0?"children":De,Ee=new Map,Re=function Te(Oe){if(!(Oe!=null&&Oe.length))return Ee;for(var Ne=Oe.length,je=0;je<Ne;){var ne=Oe[je++];Ee.set(ne[he],ne[we]),Te(ne[Ae])}return Ee};return Re(U)}},[O==null?void 0:O.fieldNames,o,U]),H=function(ve,he,be){C&&x&&(z(void 0),q(void 0)),E==null||E(ve,he,be)};if(o==="read"){var G=N.jsx(N.Fragment,{children:_I(c.text,o_(c.valueEnum||K))});if(l){var Q;return(Q=l(c.text,ee({mode:o},O),G))!==null&&Q!==void 0?Q:null}return G}if(o==="edit"){var le,Z=Array.isArray(O==null?void 0:O.value)?O==null||(le=O.value)===null||le===void 0?void 0:le.length:0,j=N.jsx(t_,{spinning:$,children:N.jsx(cw,ee(ee({open:v,onDropdownVisibleChange:function(ve){var he;O==null||(he=O.onDropdownVisibleChange)===null||he===void 0||he.call(O,ve),y(ve)},ref:p,popupMatchSelectWidth:!a,placeholder:M.getMessage("tableForm.selectPlaceholder","请选择"),tagRender:a?function(me){var ve;if(Z<2)return N.jsx(N.Fragment,{children:me.label});var he=O==null||(ve=O.value)===null||ve===void 0?void 0:ve.findIndex(function(be){return be===me.value||be.value===me.value});return N.jsxs(N.Fragment,{children:[me.label," ",he<Z-1?",":""]})}:void 0,bordered:!a},O),{},{treeData:U,showSearch:C,style:ee({minWidth:60},O.style),allowClear:O.allowClear!==!1,searchValue:Y,autoClearSearchValue:x,onClear:function(){b==null||b(),z(void 0),C&&q(void 0)},onChange:H,onSearch:function(ve){T&&c!==null&&c!==void 0&&c.request&&z(ve),q(ve)},onBlur:function(ve){q(void 0),z(void 0),w==null||w(ve)},className:Ce(O==null?void 0:O.className,f)}))});if(i){var F;j=(F=i(c.text,ee(ee({mode:o},O),{},{options:U,loading:$}),j))!==null&&F!==void 0?F:null}if(a){var te,oe=O.disabled,de=O.placeholder,pe=!!O.value&&((te=O.value)===null||te===void 0?void 0:te.length)!==0;return N.jsx(i_,{label:s,disabled:oe,placeholder:de,onClick:function(){var ve;y(!0),O==null||(ve=O.onDropdownVisibleChange)===null||ve===void 0||ve.call(O,!0)},bordered:c.bordered,value:pe||v?j:null,style:pe?{paddingInlineEnd:0}:void 0,allowClear:!1,downIcon:!1})}return j}return null};const jbn=V.forwardRef(Bbn);function Vu(e){var n=m.useState(!1),r=ke(n,2),i=r[0],o=r[1],a=m.useRef(null),s=m.useCallback(function(u){var d,f,p=(d=a.current)===null||d===void 0||(d=d.labelRef)===null||d===void 0||(d=d.current)===null||d===void 0?void 0:d.contains(u.target),h=(f=a.current)===null||f===void 0||(f=f.clearRef)===null||f===void 0||(f=f.current)===null||f===void 0?void 0:f.contains(u.target);return p&&!h},[a]),l=function(d){s(d)&&o(!0)},c=function(){o(!1)};return e.isLight?N.jsx("div",{onMouseDown:l,onMouseUp:c,children:V.cloneElement(e.children,{labelTrigger:i,lightLabel:a})}):N.jsx(N.Fragment,{children:e.children})}var jYe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){var r="day";return function(i,o,a){var s=function(u){return u.add(4-u.isoWeekday(),r)},l=o.prototype;l.isoWeekYear=function(){return s(this).year()},l.isoWeek=function(u){if(!this.$utils().u(u))return this.add(7*(u-this.isoWeek()),r);var d,f,p,h,g=s(this),v=(d=this.isoWeekYear(),f=this.$u,p=(f?a.utc:a)().year(d).startOf("year"),h=4-p.isoWeekday(),p.isoWeekday()>4&&(h+=7),p.add(h,r));return g.diff(v,"week")+1},l.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var c=l.startOf;l.startOf=function(u,d){var f=this.$utils(),p=!!f.u(d)||d;return f.p(u)==="isoweek"?p?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(u,d)}}})})(jYe);var Ubn=jYe.exports;const Hbn=Or(Ubn);var UYe={exports:{}};(function(e,n){(function(r,i){e.exports=i()})(oo,function(){var r={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(i,o,a){var s=o.prototype,l=s.format;a.en.formats=r,s.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,g,v){var y=v&&v.toUpperCase();return g||p[v]||r[v]||p[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(_,S,b){return S||b.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,d)}}})})(UYe);var zbn=UYe.exports;const Vbn=Or(zbn);var Gbn=["fieldProps"],Wbn=["fieldProps"],Ybn=["fieldProps"],qbn=["fieldProps"],Kbn=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],Xbn=["placeholder"];Zr.extend(iHe);Zr.extend(lHe);Zr.extend(Hbn);Zr.extend(cde);Zr.extend(nHe);Zr.extend(Vbn);var Qbn=function(n,r,i){var o=lWe(i.fieldProps);return r.type==="progress"?N.jsx(BYe,ee(ee({},i),{},{text:n,fieldProps:ee({status:r.status?r.status:void 0},o)})):r.type==="money"?N.jsx($Ye,ee(ee({locale:r.locale},i),{},{fieldProps:o,text:n,moneySymbol:r.moneySymbol})):r.type==="percent"?N.jsx(FYe,ee(ee({},i),{},{text:n,showSymbol:r.showSymbol,precision:r.precision,fieldProps:o,showColor:r.showColor})):r.type==="image"?N.jsx(kYe,ee(ee({},i),{},{text:n,width:r.width})):n},Zbn=function(n,r,i,o){var a=i.mode,s=a===void 0?"read":a,l=i.emptyText,c=l===void 0?"-":l;if(c!==!1&&s==="read"&&r!=="option"&&r!=="switch"&&typeof n!="boolean"&&typeof n!="number"&&!n){var u=i.fieldProps,d=i.render;return d?d(n,ee({mode:s},u),N.jsx(N.Fragment,{children:c})):N.jsx(N.Fragment,{children:c})}if(delete i.emptyText,cn(r)==="object")return Qbn(n,r,i);var f=o&&o[r];if(f){if(delete i.ref,s==="read"){var p;return(p=f.render)===null||p===void 0?void 0:p.call(f,n,ee(ee({text:n},i),{},{mode:s||"read"}),N.jsx(N.Fragment,{children:n}))}if(s==="update"||s==="edit"){var h;return(h=f.renderFormItem)===null||h===void 0?void 0:h.call(f,n,ee({text:n},i),N.jsx(N.Fragment,{children:n}))}}if(r==="money")return N.jsx($Ye,ee(ee({},i),{},{text:n}));if(r==="date")return N.jsx(Vu,{isLight:i.light,children:N.jsx(Nx,ee({text:n,format:"YYYY-MM-DD"},i))});if(r==="dateWeek")return N.jsx(Vu,{isLight:i.light,children:N.jsx(Nx,ee({text:n,format:"YYYY-wo",picker:"week"},i))});if(r==="dateWeekRange"){var g=i.fieldProps,v=Xt(i,Gbn);return N.jsx(Vu,{isLight:i.light,children:N.jsx(Mx,ee({text:n,format:"YYYY-W",showTime:!0,fieldProps:ee({picker:"week"},g)},v))})}if(r==="dateMonthRange"){var y=i.fieldProps,_=Xt(i,Wbn);return N.jsx(Vu,{isLight:i.light,children:N.jsx(Mx,ee({text:n,format:"YYYY-MM",showTime:!0,fieldProps:ee({picker:"month"},y)},_))})}if(r==="dateQuarterRange"){var S=i.fieldProps,b=Xt(i,Ybn);return N.jsx(Vu,{isLight:i.light,children:N.jsx(Mx,ee({text:n,format:"YYYY-Q",showTime:!0,fieldProps:ee({picker:"quarter"},S)},b))})}if(r==="dateYearRange"){var E=i.fieldProps,w=Xt(i,qbn);return N.jsx(Vu,{isLight:i.light,children:N.jsx(Mx,ee({text:n,format:"YYYY",showTime:!0,fieldProps:ee({picker:"year"},E)},w))})}return r==="dateMonth"?N.jsx(Vu,{isLight:i.light,children:N.jsx(Nx,ee({text:n,format:"YYYY-MM",picker:"month"},i))}):r==="dateQuarter"?N.jsx(Vu,{isLight:i.light,children:N.jsx(Nx,ee({text:n,format:"YYYY-[Q]Q",picker:"quarter"},i))}):r==="dateYear"?N.jsx(Vu,{isLight:i.light,children:N.jsx(Nx,ee({text:n,format:"YYYY",picker:"year"},i))}):r==="dateRange"?N.jsx(Mx,ee({text:n,format:"YYYY-MM-DD"},i)):r==="dateTime"?N.jsx(Vu,{isLight:i.light,children:N.jsx(Nx,ee({text:n,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},i))}):r==="dateTimeRange"?N.jsx(Vu,{isLight:i.light,children:N.jsx(Mx,ee({text:n,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},i))}):r==="time"?N.jsx(Vu,{isLight:i.light,children:N.jsx(Lbn,ee({text:n,format:"HH:mm:ss"},i))}):r==="timeRange"?N.jsx(Vu,{isLight:i.light,children:N.jsx(kbn,ee({text:n,format:"HH:mm:ss"},i))}):r==="fromNow"?N.jsx(z_n,ee({text:n},i)):r==="index"?N.jsx(cOe,{children:n+1}):r==="indexBorder"?N.jsx(cOe,{border:!0,children:n+1}):r==="progress"?N.jsx(BYe,ee(ee({},i),{},{text:n})):r==="percent"?N.jsx(FYe,ee({text:n},i)):r==="avatar"&&typeof n=="string"&&i.mode==="read"?N.jsx(nS,{src:n,size:22,shape:"circle"}):r==="code"?N.jsx(Kxe,ee({text:n},i)):r==="jsonCode"?N.jsx(Kxe,ee({text:n,language:"json"},i)):r==="textarea"?N.jsx(Pbn,ee({text:n},i)):r==="digit"?N.jsx($_n,ee({text:n},i)):r==="digitRange"?N.jsx(B_n,ee({text:n},i)):r==="second"?N.jsx(_bn,ee({text:n},i)):r==="select"||r==="text"&&(i.valueEnum||i.request)?N.jsx(Vu,{isLight:i.light,children:N.jsx(xnn,ee({text:n},i))}):r==="checkbox"?N.jsx(Pnn,ee({text:n},i)):r==="radio"?N.jsx(fOe,ee({text:n},i)):r==="radioButton"?N.jsx(fOe,ee({radioType:"button",text:n},i)):r==="rate"?N.jsx(mbn,ee({text:n},i)):r==="slider"?N.jsx(wbn,ee({text:n},i)):r==="switch"?N.jsx(Tbn,ee({text:n},i)):r==="option"?N.jsx(nbn,ee({text:n},i)):r==="password"?N.jsx(obn,ee({text:n},i)):r==="image"?N.jsx(kYe,ee({text:n},i)):r==="cascader"?N.jsx(Rnn,ee({text:n},i)):r==="treeSelect"?N.jsx(jbn,ee({text:n},i)):r==="color"?N.jsx(A_n,ee({text:n},i)):r==="segmented"?N.jsx(Ebn,ee({text:n},i)):N.jsx(Rbn,ee({text:n},i))},Jbn=function(n,r){var i,o,a,s,l,c=n.text,u=n.valueType,d=u===void 0?"text":u,f=n.mode,p=f===void 0?"read":f,h=n.onChange,g=n.renderFormItem,v=n.value,y=n.readonly,_=n.fieldProps,S=Xt(n,Kbn),b=m.useContext(R0),E=Yh(function(){for(var x,T=arguments.length,R=new Array(T),O=0;O<T;O++)R[O]=arguments[O];_==null||(x=_.onChange)===null||x===void 0||x.call.apply(x,[_].concat(R)),h==null||h.apply(void 0,R)}),w=Qu(function(){return(v!==void 0||_)&&ee(ee({value:v},pp(_)),{},{onChange:E})},[v,_,E]),C=Zbn(p==="edit"?(i=(o=w==null?void 0:w.value)!==null&&o!==void 0?o:c)!==null&&i!==void 0?i:"":(a=c??(w==null?void 0:w.value))!==null&&a!==void 0?a:"",d||"text",pp(ee(ee({ref:r},S),{},{mode:y?"read":p,renderFormItem:g?function(x,T,R){T.placeholder;var O=Xt(T,Xbn),M=g(x,O,R);return V.isValidElement(M)?V.cloneElement(M,ee(ee({},w),M.props||{})):M}:void 0,placeholder:g?void 0:(s=S==null?void 0:S.placeholder)!==null&&s!==void 0?s:w==null?void 0:w.placeholder,fieldProps:lWe(pp(ee(ee({},w),{},{placeholder:g?void 0:(l=S==null?void 0:S.placeholder)!==null&&l!==void 0?l:w==null?void 0:w.placeholder})))})),b.valueTypeMap||{});return N.jsx(V.Fragment,{children:C})},e0n=V.forwardRef(Jbn),Pfe=V.createContext({mode:"edit"}),t0n=["fieldProps","children","labelCol","label","autoFocus","isDefaultDom","render","proFieldProps","renderFormItem","valueType","initialValue","onChange","valueEnum","params","name","dependenciesValues","cacheForSwr","valuePropName"],n0n=function(n){var r=n.fieldProps,i=n.children;n.labelCol,n.label;var o=n.autoFocus;n.isDefaultDom;var a=n.render,s=n.proFieldProps,l=n.renderFormItem,c=n.valueType;n.initialValue;var u=n.onChange,d=n.valueEnum,f=n.params;n.name;var p=n.dependenciesValues,h=n.cacheForSwr,g=h===void 0?!1:h,v=n.valuePropName,y=v===void 0?"value":v,_=Xt(n,t0n),S=m.useContext(Pfe),b=m.useMemo(function(){return p&&_.request?ee(ee({},f),p||{}):f},[p,f,_.request]),E=Yh(function(){if(r!=null&&r.onChange){for(var x,T=arguments.length,R=new Array(T),O=0;O<T;O++)R[O]=arguments[O];r==null||(x=r.onChange)===null||x===void 0||x.call.apply(x,[r].concat(R));return}}),w=m.useMemo(function(){return ee(ee({autoFocus:o},r),{},{onChange:E})},[o,r,E]),C=m.useMemo(function(){if(i)return V.isValidElement(i)?V.cloneElement(i,ee(ee({},_),{},{onChange:function(){for(var T=arguments.length,R=new Array(T),O=0;O<T;O++)R[O]=arguments[O];if(r!=null&&r.onChange){var M;r==null||(M=r.onChange)===null||M===void 0||M.call.apply(M,[r].concat(R));return}u==null||u.apply(void 0,R)}},(i==null?void 0:i.props)||{})):N.jsx(N.Fragment,{children:i})},[i,r==null?void 0:r.onChange,u,_]);return C||N.jsx(e0n,ee(ee(ee({text:r==null?void 0:r[y],render:a,renderFormItem:l,valueType:c||"text",cacheForSwr:g,fieldProps:w,valueEnum:fC(d)},s),_),{},{mode:(s==null?void 0:s.mode)||S.mode||"edit",params:b}))},Su=jU(m.memo(n0n,function(e,n){return A1(n,e,["onChange","onBlur"])})),r0n=["options","fieldProps","proFieldProps","valueEnum"],i0n=V.forwardRef(function(e,n){var r=e.options,i=e.fieldProps,o=e.proFieldProps,a=e.valueEnum,s=Xt(e,r0n);return N.jsx(Su,ee({ref:n,valueType:"checkbox",valueEnum:fC(a,void 0),fieldProps:ee({options:r},i),lightProps:ee({labelFormatter:function(){return N.jsx(Su,ee({ref:n,valueType:"checkbox",mode:"read",valueEnum:fC(a,void 0),filedConfig:{customLightMode:!0},fieldProps:ee({options:r},i),proFieldProps:o},s))}},s.lightProps),proFieldProps:o},s))}),o0n=V.forwardRef(function(e,n){var r=e.fieldProps,i=e.children;return N.jsx(ow,ee(ee({ref:n},r),{},{children:i}))}),a0n=jU(o0n,{valuePropName:"checked"}),nH=a0n;nH.Group=i0n;var s0n=["proFieldProps","fieldProps"],pOe="date",l0n=V.forwardRef(function(e,n){var r=e.proFieldProps,i=e.fieldProps,o=Xt(e,s0n),a=m.useContext(Cg);return N.jsx(Su,ee({ref:n,valueType:pOe,fieldProps:ee({getPopupContainer:a.getPopupContainer},i),proFieldProps:r,filedConfig:{valueType:pOe,customLightMode:!0}},o))}),c0n=["proFieldProps","fieldProps"],hOe="dateMonth",u0n=V.forwardRef(function(e,n){var r=e.proFieldProps,i=e.fieldProps,o=Xt(e,c0n),a=m.useContext(Cg);return N.jsx(Su,ee({ref:n,valueType:hOe,fieldProps:ee({getPopupContainer:a.getPopupContainer},i),proFieldProps:r,filedConfig:{valueType:hOe,customLightMode:!0}},o))}),d0n=["fieldProps"],gOe="dateQuarter",f0n=V.forwardRef(function(e,n){var r=e.fieldProps,i=Xt(e,d0n),o=m.useContext(Cg);return N.jsx(Su,ee({ref:n,valueType:gOe,fieldProps:ee({getPopupContainer:o.getPopupContainer},r),filedConfig:{valueType:gOe,customLightMode:!0}},i))}),p0n=["proFieldProps","fieldProps"],mOe="dateWeek",h0n=V.forwardRef(function(e,n){var r=e.proFieldProps,i=e.fieldProps,o=Xt(e,p0n),a=m.useContext(Cg);return N.jsx(Su,ee({ref:n,valueType:mOe,fieldProps:ee({getPopupContainer:a.getPopupContainer},i),proFieldProps:r,filedConfig:{valueType:mOe,customLightMode:!0}},o))}),g0n=["proFieldProps","fieldProps"],vOe="dateYear",m0n=V.forwardRef(function(e,n){var r=e.proFieldProps,i=e.fieldProps,o=Xt(e,g0n),a=m.useContext(Cg);return N.jsx(Su,ee({ref:n,valueType:vOe,fieldProps:ee({getPopupContainer:a.getPopupContainer},i),proFieldProps:r,filedConfig:{valueType:vOe,customLightMode:!0}},o))}),NI=l0n;NI.Week=h0n;NI.Month=u0n;NI.Quarter=f0n;NI.Year=m0n;NI.displayName="ProFormComponent";var Afe=V.createContext({}),v0n=["name","originDependencies","children","ignoreFormListField"],HYe=function(n){var r=n.name,i=n.originDependencies,o=i===void 0?r:i,a=n.children,s=n.ignoreFormListField,l=Xt(n,v0n),c=m.useContext(nWe),u=m.useContext(Afe),d=m.useMemo(function(){return r.map(function(f){var p,h=[f];return!s&&u.name!==void 0&&(p=u.listName)!==null&&p!==void 0&&p.length&&h.unshift(u.listName),h.flat(1)})},[u.listName,u.name,s,r==null?void 0:r.toString()]);return N.jsx(Hr.Item,ee(ee({},l),{},{noStyle:!0,shouldUpdate:function(p,h,g){if(typeof l.shouldUpdate=="boolean")return l.shouldUpdate;if(typeof l.shouldUpdate=="function"){var v;return(v=l.shouldUpdate)===null||v===void 0?void 0:v.call(l,p,h,g)}return d.some(function(y){return!A1(al(p,y),al(h,y))})},children:function(p){for(var h={},g=0;g<r.length;g++){var v,y=d[g],_=o[g],S=[_].flat(1),b=(v=c.getFieldFormatValueObject)===null||v===void 0?void 0:v.call(c,y);if(b&&Object.keys(b).length)h=sWe({},h,b),al(b,y)&&(h=Fs(h,S,al(b,y)));else{var E;b=(E=p.getFieldValue)===null||E===void 0?void 0:E.call(p,y),typeof b<"u"&&(h=Fs(h,S,b))}}return a==null?void 0:a(h,ee(ee({},p),c))}}))};HYe.displayName="ProFormDependency";var y0n=["fieldProps","min","proFieldProps","max"],_0n=function(n,r){var i=n.fieldProps,o=n.min,a=n.proFieldProps,s=n.max,l=Xt(n,y0n);return N.jsx(Su,ee({valueType:"digit",fieldProps:ee({min:o,max:s},i),ref:r,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:a},l))},b0n=V.forwardRef(_0n),S0n=["children","onChange","onBlur","ignoreFormItem","valuePropName"],E0n=["children","addonAfter","addonBefore","valuePropName","addonWarpStyle","convertValue","help"],C0n=["valueType","transform","dataFormat","ignoreFormItem","lightProps","children"],w0n=V.createContext({}),x0n=function(n){var r,i,o=n.children,a=n.onChange,s=n.onBlur;n.ignoreFormItem;var l=n.valuePropName,c=l===void 0?"value":l,u=Xt(n,S0n),d=(o==null||(r=o.type)===null||r===void 0?void 0:r.displayName)!=="ProFormComponent",f=!V.isValidElement(o),p=Yh(function(){for(var S,b,E,w,C=arguments.length,x=new Array(C),T=0;T<C;T++)x[T]=arguments[T];a==null||a.apply(void 0,x),!d&&(f||(o==null||(S=o.props)===null||S===void 0||(b=S.onChange)===null||b===void 0||b.call.apply(b,[S].concat(x)),o==null||(E=o.props)===null||E===void 0||(E=E.fieldProps)===null||E===void 0||(w=E.onChange)===null||w===void 0||w.call.apply(w,[E].concat(x))))}),h=Yh(function(){var S,b,E,w;if(!d&&!f){for(var C=arguments.length,x=new Array(C),T=0;T<C;T++)x[T]=arguments[T];s==null||s.apply(void 0,x),o==null||(S=o.props)===null||S===void 0||(b=S.onBlur)===null||b===void 0||b.call.apply(b,[S].concat(x)),o==null||(E=o.props)===null||E===void 0||(E=E.fieldProps)===null||E===void 0||(w=E.onBlur)===null||w===void 0||w.call.apply(w,[E].concat(x))}}),g=Qu(function(){var S;return Wr((o==null||(S=o.props)===null||S===void 0?void 0:S.fieldProps)||{},["onBlur","onChange"])},[Wr((o==null||(i=o.props)===null||i===void 0?void 0:i.fieldProps)||{},["onBlur","onChange"])]),v=n[c],y=m.useMemo(function(){if(!d&&!f)return pp(ee(ee(fe({id:u.id},c,v),g),{},{onBlur:h,onChange:p}))},[v,g,h,p,u.id,c]),_=m.useMemo(function(){if(!y&&V.isValidElement(o))return function(){for(var S,b,E=arguments.length,w=new Array(E),C=0;C<E;C++)w[C]=arguments[C];a==null||a.apply(void 0,w),o==null||(S=o.props)===null||S===void 0||(b=S.onChange)===null||b===void 0||b.call.apply(b,[S].concat(w))}},[y,o,a]);return V.isValidElement(o)?V.cloneElement(o,pp(ee(ee(ee({},u),{},fe({},c,n[c]),o.props),{},{onChange:_,fieldProps:y,onBlur:d&&!f&&s}))):N.jsx(N.Fragment,{children:o})},yOe=function(n){var r=n.children,i=n.addonAfter,o=n.addonBefore,a=n.valuePropName,s=n.addonWarpStyle,l=n.convertValue,c=n.help,u=Xt(n,E0n),d=m.useMemo(function(){var f=function(h){var g,v=(g=l==null?void 0:l(h,u.name))!==null&&g!==void 0?g:h;return u.getValueProps?u.getValueProps(v):fe({},a||"value",v)};return!l&&!u.getValueProps&&(f=void 0),!i&&!o?N.jsx(Hr.Item,ee(ee({},u),{},{help:typeof c!="function"?c:void 0,valuePropName:a,getValueProps:f,_internalItemRender:{mark:"pro_table_render",render:function(h,g){return N.jsxs(N.Fragment,{children:[g.input,typeof c=="function"?c({errors:h.errors,warnings:h.warnings}):g.errorList,g.extra]})}},children:r})):N.jsx(Hr.Item,ee(ee(ee({},u),{},{help:typeof c!="function"?c:void 0,valuePropName:a,_internalItemRender:{mark:"pro_table_render",render:function(h,g){return N.jsxs(N.Fragment,{children:[N.jsxs("div",{style:ee({display:"flex",alignItems:"center",flexWrap:"wrap"},s),children:[o?N.jsx("div",{style:{marginInlineEnd:8},children:o}):null,g.input,i?N.jsx("div",{style:{marginInlineStart:8},children:i}):null]}),typeof c=="function"?c({errors:h.errors,warnings:h.warnings}):g.errorList,g.extra]})}}},u),{},{getValueProps:f,children:r}))},[i,o,r,l==null?void 0:l.toString(),u]);return N.jsx(w0n.Provider,{value:{name:u.name,label:u.label},children:d})},zYe=function(n){var r,i,o,a,s=(or==null||(r=or.useConfig)===null||r===void 0?void 0:r.call(or))||{componentSize:"middle"},l=s.componentSize,c=l,u=n.valueType,d=n.transform,f=n.dataFormat,p=n.ignoreFormItem,h=n.lightProps;n.children;var g=Xt(n,C0n),v=m.useContext(Afe),y=m.useMemo(function(){return n.name===void 0?n.name:v.name!==void 0?[v.name,n.name].flat(1):n.name},[v.name,n.name]),_=V.useContext(Cg),S=_.setFieldValueType,b=_.formItemProps;m.useEffect(function(){!S||!n.name||S([v.listName,n.name].flat(1).filter(function(R){return R!==void 0}),{valueType:u||"text",dateFormat:f,transform:d})},[v.listName,y,f,n.name,S,d,u]);var E=V.isValidElement(n.children)&&pJt(u||n.children.props.valueType),w=m.useMemo(function(){return!!(!(h!=null&&h.light)||h!=null&&h.customLightMode||E)},[h==null?void 0:h.customLightMode,E,h==null?void 0:h.light]);if(typeof n.children=="function"){var C;return m.createElement(yOe,ee(ee({},g),{},{name:y,key:g.proFormFieldKey||((C=g.name)===null||C===void 0?void 0:C.toString())}),n.children)}var x=N.jsx(x0n,{valuePropName:n.valuePropName,children:n.children},g.proFormFieldKey||((i=g.name)===null||i===void 0?void 0:i.toString())),T=w?x:m.createElement(J0n,ee(ee({},h),{},{key:g.proFormFieldKey||((o=g.name)===null||o===void 0?void 0:o.toString()),size:c}),x);return p?N.jsx(N.Fragment,{children:T}):N.jsx(yOe,ee(ee(ee({},b),g),{},{name:y,isListField:v.name!==void 0,children:T}),g.proFormFieldKey||((a=g.name)===null||a===void 0?void 0:a.toString()))},T0n=function(n){return fe({},n.componentCls,{"&-title":{marginBlockEnd:n.marginXL,fontWeight:"bold"},"&-container":fe({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(n.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":fe(fe(fe(fe({display:"block",width:"100%"},"".concat(n.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(n.componentCls,"-container"),{paddingInlineStart:16}),"".concat(n.antCls,"-space-item,").concat(n.antCls,"-form-item"),{width:"100%"}),"".concat(n.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function O0n(e){return ia("ProFormGroup",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[T0n(r)]})}var VYe=V.forwardRef(function(e,n){var r=V.useContext(Cg),i=r.groupProps,o=ee(ee({},i),e),a=o.children,s=o.collapsible,l=o.defaultCollapsed,c=o.style,u=o.labelLayout,d=o.title,f=d===void 0?e.label:d,p=o.tooltip,h=o.align,g=h===void 0?"start":h,v=o.direction,y=o.size,_=y===void 0?32:y,S=o.titleStyle,b=o.titleRender,E=o.spaceProps,w=o.extra,C=o.autoFocus,x=dr(function(){return l||!1},{value:e.collapsed,onChange:e.onCollapse}),T=ke(x,2),R=T[0],O=T[1],M=m.useContext(or.ConfigContext),P=M.getPrefixCls,k=ffe(e),$=k.ColWrapper,U=k.RowWrapper,z=P("pro-form-group"),D=O0n(z),B=D.wrapSSR,Y=D.hashId,q=s&&N.jsx(w0,{style:{marginInlineEnd:8},rotate:R?void 0:90}),K=N.jsx(ZZt,{label:q?N.jsxs("div",{children:[q,f]}):f,tooltip:p}),H=m.useCallback(function(F){var te=F.children;return N.jsx(Cf,ee(ee({},E),{},{className:Ce("".concat(z,"-container ").concat(Y),E==null?void 0:E.className),size:_,align:g,direction:v,style:ee({rowGap:0},E==null?void 0:E.style),children:te}))},[g,z,v,Y,_,E]),G=b?b(K,e):K,Q=m.useMemo(function(){var F=[],te=V.Children.toArray(a).map(function(oe,de){var pe;return V.isValidElement(oe)&&oe!==null&&oe!==void 0&&(pe=oe.props)!==null&&pe!==void 0&&pe.hidden?(F.push(oe),null):de===0&&V.isValidElement(oe)&&C?V.cloneElement(oe,ee(ee({},oe.props),{},{autoFocus:C})):oe});return[N.jsx(U,{Wrapper:H,children:te},"children"),F.length>0?N.jsx("div",{style:{display:"none"},children:F}):null]},[a,U,H,C]),le=ke(Q,2),Z=le[0],j=le[1];return B(N.jsx($,{children:N.jsxs("div",{className:Ce(z,Y,fe({},"".concat(z,"-twoLine"),u==="twoLine")),style:c,ref:n,children:[j,(f||p||w)&&N.jsx("div",{className:"".concat(z,"-title ").concat(Y).trim(),style:S,onClick:function(){O(!R)},children:w?N.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[G,N.jsx("span",{onClick:function(te){return te.stopPropagation()},children:w})]}):G}),N.jsx("div",{style:{display:s&&R?"none":void 0},children:Z})]})}))});VYe.displayName="ProForm-Group";var R0n=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],I0n=V.forwardRef(function(e,n){var r=e.fieldProps,i=e.options,o=e.radioType,a=e.layout,s=e.proFieldProps,l=e.valueEnum,c=Xt(e,R0n);return N.jsx(Su,ee(ee({valueType:o==="button"?"radioButton":"radio",ref:n,valueEnum:fC(l,void 0)},c),{},{fieldProps:ee({options:i,layout:a},r),proFieldProps:s,filedConfig:{customLightMode:!0}}))}),N0n=V.forwardRef(function(e,n){var r=e.fieldProps,i=e.children;return N.jsx(ya,ee(ee({},r),{},{ref:n,children:i}))}),M0n=jU(N0n,{valuePropName:"checked",ignoreWidth:!0}),rH=M0n;rH.Group=I0n;rH.Button=ya.Button;rH.displayName="ProFormComponent";var P0n=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],A0n=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],D0n=function(n,r){var i=n.fieldProps,o=n.children,a=n.params,s=n.proFieldProps,l=n.mode,c=n.valueEnum,u=n.request,d=n.showSearch,f=n.options,p=Xt(n,P0n),h=m.useContext(Cg);return N.jsx(Su,ee(ee({valueEnum:fC(c),request:u,params:a,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:ee({options:f,mode:l,showSearch:d,getPopupContainer:h.getPopupContainer},i),ref:r,proFieldProps:s},p),{},{children:o}))},k0n=V.forwardRef(function(e,n){var r=e.fieldProps,i=e.children,o=e.params,a=e.proFieldProps,s=e.mode,l=e.valueEnum,c=e.request,u=e.options,d=Xt(e,A0n),f=ee({options:u,mode:s||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},r),p=m.useContext(Cg);return N.jsx(Su,ee(ee({valueEnum:fC(l),request:c,params:o,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:ee({getPopupContainer:p.getPopupContainer},f),ref:n,proFieldProps:a},d),{},{children:i}))}),L0n=V.forwardRef(D0n),$0n=k0n,hC=L0n;hC.SearchSelect=$0n;hC.displayName="ProFormComponent";var F0n=function(n){var r=cs(),i=Hr.useFormInstance();if(n.render===!1)return null;var o=n.onSubmit,a=n.render,s=n.onReset,l=n.searchConfig,c=l===void 0?{}:l,u=n.submitButtonProps,d=n.resetButtonProps,f=Am.useToken(),p=f.token,h=function(){i.submit(),o==null||o()},g=function(){i.resetFields(),s==null||s()},v=c.submitText,y=v===void 0?r.getMessage("tableForm.submit","提交"):v,_=c.resetText,S=_===void 0?r.getMessage("tableForm.reset","重置"):_,b=[];d!==!1&&b.push(m.createElement(qn,ee(ee({},Wr(d??{},["preventDefault"])),{},{key:"rest",onClick:function(C){var x;d!=null&&d.preventDefault||g(),d==null||(x=d.onClick)===null||x===void 0||x.call(d,C)}}),S)),u!==!1&&b.push(m.createElement(qn,ee(ee({type:"primary"},Wr(u||{},["preventDefault"])),{},{key:"submit",onClick:function(C){var x;u!=null&&u.preventDefault||h(),u==null||(x=u.onClick)===null||x===void 0||x.call(u,C)}}),y));var E=a?a(ee(ee({},n),{},{form:i,submit:h,reset:g}),b):b;return E?Array.isArray(E)?(E==null?void 0:E.length)<1?null:(E==null?void 0:E.length)===1?E[0]:N.jsx("div",{style:{display:"flex",gap:p.marginXS,alignItems:"center"},children:E}):E:null},B0n=["fieldProps","proFieldProps"],j0n=["fieldProps","proFieldProps"],xB="text",U0n=function(n){var r=n.fieldProps,i=n.proFieldProps,o=Xt(n,B0n);return N.jsx(Su,ee({valueType:xB,fieldProps:r,filedConfig:{valueType:xB},proFieldProps:i},o))},H0n=function(n){var r=dr(n.open||!1,{value:n.open,onChange:n.onOpenChange}),i=ke(r,2),o=i[0],a=i[1];return N.jsx(Hr.Item,{shouldUpdate:!0,noStyle:!0,children:function(l){var c,u=l.getFieldValue(n.name||[]);return N.jsx(Ip,ee(ee({getPopupContainer:function(f){return f&&f.parentNode?f.parentNode:f},onOpenChange:function(f){return a(f)},content:N.jsxs("div",{style:{padding:"4px 0"},children:[(c=n.statusRender)===null||c===void 0?void 0:c.call(n,u),n.strengthText?N.jsx("div",{style:{marginTop:10},children:N.jsx("span",{children:n.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},n.popoverProps),{},{open:o,children:n.children}))}})},z0n=function(n){var r=n.fieldProps,i=n.proFieldProps,o=Xt(n,j0n),a=m.useState(!1),s=ke(a,2),l=s[0],c=s[1];return r!=null&&r.statusRender&&o.name?N.jsx(H0n,{name:o.name,statusRender:r==null?void 0:r.statusRender,popoverProps:r==null?void 0:r.popoverProps,strengthText:r==null?void 0:r.strengthText,open:l,onOpenChange:c,children:N.jsx("div",{children:N.jsx(Su,ee({valueType:"password",fieldProps:ee(ee({},Wr(r,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(d){var f;r==null||(f=r.onBlur)===null||f===void 0||f.call(r,d),c(!1)},onClick:function(d){var f;r==null||(f=r.onClick)===null||f===void 0||f.call(r,d),c(!0)}}),proFieldProps:i,filedConfig:{valueType:xB}},o))})}):N.jsx(Su,ee({valueType:"password",fieldProps:r,proFieldProps:i,filedConfig:{valueType:xB}},o))},eo=U0n;eo.Password=z0n;eo.displayName="ProFormComponent";var V0n=["fieldProps","proFieldProps"],G0n=function(n,r){var i=n.fieldProps,o=n.proFieldProps,a=Xt(n,V0n);return N.jsx(Su,ee({ref:r,valueType:"textarea",fieldProps:i,proFieldProps:o},a))};const Xk=V.forwardRef(G0n);var W0n=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],Y0n=["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"],E6=function(n,r,i){return n===!0?r:fC(n,r,i)},_Oe=function(n){return!n||Array.isArray(n)?n:[n]};function q0n(e){var n,r=e.children,i=e.contentRender,o=e.submitter;e.fieldProps,e.formItemProps,e.groupProps;var a=e.transformKey,s=e.formRef,l=e.onInit,c=e.form,u=e.loading;e.formComponentType;var d=e.extraUrlParams,f=d===void 0?{}:d,p=e.syncToUrl,h=e.onUrlSearchChange,g=e.onReset,v=e.omitNil,y=v===void 0?!0:v;e.isKeyPressSubmit;var _=e.autoFocusFirstInput,S=_===void 0?!0:_,b=e.grid,E=e.rowProps,w=e.colProps,C=Xt(e,W0n),x=Hr.useFormInstance(),T=(or==null||(n=or.useConfig)===null||n===void 0?void 0:n.call(or))||{componentSize:"middle"},R=T.componentSize,O=m.useRef(c||x),M=ffe({grid:b,rowProps:E}),P=M.RowWrapper,k=Yh(function(){return x}),$=m.useMemo(function(){return{getFieldsFormatValue:function(K){var H;return a((H=k())===null||H===void 0?void 0:H.getFieldsValue(K),y)},getFieldFormatValue:function(){var K,H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],G=_Oe(H);if(!G)throw new Error("nameList is require");var Q=(K=k())===null||K===void 0?void 0:K.getFieldValue(G),le=G?Fs({},G,Q):Q,Z=Tt(G);return Z.shift(),al(a(le,y,Z),G)},getFieldFormatValueObject:function(K){var H,G=_Oe(K),Q=(H=k())===null||H===void 0?void 0:H.getFieldValue(G),le=G?Fs({},G,Q):Q;return a(le,y,G)},validateFieldsReturnFormatValue:function(){var q=Ss(ri().mark(function H(G){var Q,le,Z;return ri().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(!(!Array.isArray(G)&&G)){F.next=2;break}throw new Error("nameList must be array");case 2:return F.next=4,(Q=k())===null||Q===void 0?void 0:Q.validateFields(G);case 4:return le=F.sent,Z=a(le,y),F.abrupt("return",Z||{});case 7:case"end":return F.stop()}},H)}));function K(H){return q.apply(this,arguments)}return K}()}},[y,a]),U=m.useMemo(function(){return V.Children.toArray(r).map(function(q,K){return K===0&&V.isValidElement(q)&&S?V.cloneElement(q,ee(ee({},q.props),{},{autoFocus:S})):q})},[S,r]),z=m.useMemo(function(){return typeof o=="boolean"||!o?{}:o},[o]),D=m.useMemo(function(){if(o!==!1)return N.jsx(F0n,ee(ee({},z),{},{onReset:function(){var K,H,G=a((K=O.current)===null||K===void 0?void 0:K.getFieldsValue(),y);if(z==null||(H=z.onReset)===null||H===void 0||H.call(z,G),g==null||g(G),p){var Q,le=Object.keys(a((Q=O.current)===null||Q===void 0?void 0:Q.getFieldsValue(),!1)).reduce(function(Z,j){return ee(ee({},Z),{},fe({},j,G[j]||void 0))},f);h(E6(p,le||{},"set"))}},submitButtonProps:ee({loading:u},z.submitButtonProps)}),"submitter")},[o,z,u,a,y,g,p,f,h]),B=m.useMemo(function(){var q=b?N.jsx(P,{children:U}):U;return i?i(q,D,O.current):q},[b,P,U,i,D]),Y=fJt(e.initialValues);return m.useEffect(function(){if(!(p||!e.initialValues||!Y||C.request)){var q=A1(e.initialValues,Y);FF(q,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request或者 initialValues ? <Form/> : null "),FF(q,"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(s,function(){return ee(ee({},O.current),$)},[$,O.current]),m.useEffect(function(){var q,K,H=a((q=O.current)===null||q===void 0||(K=q.getFieldsValue)===null||K===void 0?void 0:K.call(q,!0),y);l==null||l(H,ee(ee({},O.current),$))},[]),N.jsx(nWe.Provider,{value:ee(ee({},$),{},{formRef:O}),children:N.jsx(or,{componentSize:C.size||R,children:N.jsxs(wWe.Provider,{value:{grid:b,colProps:w},children:[C.component!==!1&&N.jsx("input",{type:"text",style:{display:"none"}}),B]})})})}var bOe=0;function K0n(e){var n=e.extraUrlParams,r=n===void 0?{}:n,i=e.syncToUrl,o=e.isKeyPressSubmit,a=e.syncToUrlAsImportant,s=a===void 0?!1:a,l=e.syncToInitialValues,c=l===void 0?!0:l;e.children,e.contentRender,e.submitter;var u=e.fieldProps,d=e.proFieldProps,f=e.formItemProps,p=e.groupProps,h=e.dateFormatter,g=h===void 0?"string":h,v=e.formRef;e.onInit;var y=e.form,_=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var S=e.omitNil,b=S===void 0?!0:S,E=e.request,w=e.params,C=e.initialValues,x=e.formKey,T=x===void 0?bOe:x;e.readonly;var R=e.onLoadingChange,O=e.loading,M=Xt(e,Y0n),P=m.useRef({}),k=dr(!1,{onChange:R,value:O}),$=ke(k,2),U=$[0],z=$[1],D=nnn({},{disabled:!i}),B=ke(D,2),Y=B[0],q=B[1],K=m.useRef(cB());m.useEffect(function(){bOe+=0},[]);var H=dJt({request:E,params:w,proFieldKey:T}),G=ke(H,1),Q=G[0],le=m.useContext(or.ConfigContext),Z=le.getPrefixCls,j=Z("pro-form"),F=ia("ProForm",function(Re){return fe({},".".concat(j),fe({},"> div:not(".concat(Re.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}}}))}),te=F.wrapSSR,oe=F.hashId,de=m.useState(function(){return i?E6(i,Y,"get"):{}}),pe=ke(de,2),me=pe[0],ve=pe[1],he=m.useRef({}),be=m.useRef({}),we=Yh(function(Re,Te,Oe){return Ztn(nJt(Re,g,be.current,Te,Oe),he.current,Te)});m.useEffect(function(){c||ve({})},[c]);var De=Yh(function(){return ee(ee({},Y),r)});m.useEffect(function(){i&&q(E6(i,De(),"set"))},[r,De,i]);var Ae=m.useMemo(function(){if(!(typeof window>"u")&&_&&["DrawerForm"].includes(_))return function(Re){return Re.parentNode||document.body}},[_]),Ee=Yh(Ss(ri().mark(function Re(){var Te,Oe,Ne,je,ne,J,ae;return ri().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(M.onFinish){xe.next=2;break}return xe.abrupt("return");case 2:if(!U){xe.next=4;break}return xe.abrupt("return");case 4:return xe.prev=4,Ne=P==null||(Te=P.current)===null||Te===void 0||(Oe=Te.getFieldsFormatValue)===null||Oe===void 0?void 0:Oe.call(Te),je=M.onFinish(Ne),je instanceof Promise&&z(!0),xe.next=10,je;case 10:i&&(ae=Object.keys(P==null||(ne=P.current)===null||ne===void 0||(J=ne.getFieldsFormatValue)===null||J===void 0?void 0:J.call(ne,void 0,!1)).reduce(function(ue,Me){var $e;return ee(ee({},ue),{},fe({},Me,($e=Ne[Me])!==null&&$e!==void 0?$e:void 0))},r),Object.keys(Y).forEach(function(ue){ae[ue]!==!1&&ae[ue]!==0&&!ae[ue]&&(ae[ue]=void 0)}),q(E6(i,ae,"set"))),z(!1),xe.next=18;break;case 14:xe.prev=14,xe.t0=xe.catch(4),console.log(xe.t0),z(!1);case 18:case"end":return xe.stop()}},Re,null,[[4,14]])})));return m.useImperativeHandle(v,function(){return P.current},[!Q]),!Q&&e.request?N.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:N.jsx(t_,{})}):te(N.jsx(Pfe.Provider,{value:{mode:e.readonly?"read":"edit"},children:N.jsx(kU,{needDeps:!0,children:N.jsx(Cg.Provider,{value:{formRef:P,fieldProps:u,proFieldProps:d,formItemProps:f,groupProps:p,formComponentType:_,getPopupContainer:Ae,formKey:K.current,setFieldValueType:function(Te,Oe){var Ne=Oe.valueType,je=Ne===void 0?"text":Ne,ne=Oe.dateFormat,J=Oe.transform;Array.isArray(Te)&&(he.current=Fs(he.current,Te,J),be.current=Fs(be.current,Te,{valueType:je,dateFormat:ne}))}},children:N.jsx(Afe.Provider,{value:{},children:N.jsx(Hr,ee(ee({onKeyPress:function(Te){if(o&&Te.key==="Enter"){var Oe;(Oe=P.current)===null||Oe===void 0||Oe.submit()}},autoComplete:"off",form:y},Wr(M,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(Te){P.current&&(P.current.nativeElement=Te==null?void 0:Te.nativeElement)},initialValues:s?ee(ee(ee({},C),Q),me):ee(ee(ee({},me),C),Q),onValuesChange:function(Te,Oe){var Ne;M==null||(Ne=M.onValuesChange)===null||Ne===void 0||Ne.call(M,we(Te,!!b),we(Oe,!!b))},className:Ce(e.className,j,oe),onFinish:Ee,children:N.jsx(q0n,ee(ee({transformKey:we,autoComplete:"off",loading:U,onUrlSearchChange:q},e),{},{formRef:P,initialValues:ee(ee({},C),Q)}))}))})})})}))}var X0n=function(n){return fe(fe({},"".concat(n.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(n.componentCls,"-container"),fe({},"".concat(n.antCls,"-form-item"),{marginBlockEnd:0}))};function Q0n(e){return ia("LightWrapper",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[X0n(r)]})}var Z0n=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],J0n=function(n){var r=n.label,i=n.size,o=n.disabled,a=n.onChange,s=n.className,l=n.style,c=n.children,u=n.valuePropName,d=n.placeholder,f=n.labelFormatter,p=n.bordered,h=n.footerRender,g=n.allowClear,v=n.otherFieldProps,y=n.valueType,_=n.placement,S=Xt(n,Z0n),b=m.useContext(or.ConfigContext),E=b.getPrefixCls,w=E("pro-field-light-wrapper"),C=Q0n(w),x=C.wrapSSR,T=C.hashId,R=m.useState(n[u]),O=ke(R,2),M=O[0],P=O[1],k=dr(!1),$=ke(k,2),U=$[0],z=$[1],D=function(){for(var K,H=arguments.length,G=new Array(H),Q=0;Q<H;Q++)G[Q]=arguments[Q];v==null||(K=v.onChange)===null||K===void 0||K.call.apply(K,[v].concat(G)),a==null||a.apply(void 0,G)},B=n[u],Y=m.useMemo(function(){var q;return B&&(y!=null&&(q=y.toLowerCase())!==null&&q!==void 0&&q.endsWith("range")&&y!=="digitRange"&&!f?rJt(B,iWe[y]||"YYYY-MM-DD"):Array.isArray(B)?B.map(function(K){return cn(K)==="object"&&K.label&&K.value?K.label:K}):B)},[B,y,f]);return x(N.jsx(KZt,{disabled:o,open:U,onOpenChange:z,placement:_,label:N.jsx(i_,{ellipsis:!0,size:i,onClear:function(){D==null||D(),P(null)},bordered:p,style:l,className:s,label:r,placeholder:d,value:Y,disabled:o,formatter:f,allowClear:g}),footer:{onClear:function(){return P(null)},onConfirm:function(){D==null||D(M),z(!1)}},footerRender:h,children:N.jsx("div",{className:Ce("".concat(w,"-container"),T,s),style:l,children:V.cloneElement(c,ee(ee({},S),{},fe(fe({},u,M),"onChange",function(K){P(K!=null&&K.target?K.target.value:K)}),c.props))})}))};function mi(e){return N.jsx(K0n,ee({layout:"vertical",contentRender:function(r,i){return N.jsxs(N.Fragment,{children:[r,i]})}},e))}mi.Group=VYe;mi.useForm=Hr.useForm;mi.Item=zYe;mi.useWatch=Hr.useWatch;mi.ErrorList=Hr.ErrorList;mi.Provider=Hr.Provider;mi.useFormInstance=Hr.useFormInstance;mi.EditOrReadOnlyContext=Pfe;var eSn=function(n){return fe(fe({},n.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:n.colorTextSecondary,fontSize:n.fontSize},"&-main":{minWidth:"328px",maxWidth:"580px",margin:"0 auto","&-other":{marginBlockStart:"24px",lineHeight:"22px",textAlign:"start"}}}),"@media (min-width: @screen-md-min)",fe({},"".concat(n.componentCls,"-container"),{paddingInline:0,paddingBlockStart:32,paddingBlockEnd:24,backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}))};function tSn(e){return ia("LoginForm",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[eSn(r)]})}var nSn=["logo","message","contentStyle","title","subTitle","actions","children","containerStyle","otherStyle"];function GYe(e){var n,r=e.logo,i=e.message,o=e.contentStyle,a=e.title,s=e.subTitle,l=e.actions,c=e.children,u=e.containerStyle,d=e.otherStyle,f=Xt(e,nSn),p=cs(),h=f.submitter===!1?!1:ee(ee({searchConfig:{submitText:p.getMessage("loginForm.submitText","登录")}},f.submitter),{},{submitButtonProps:ee({size:"large",style:{width:"100%"}},(n=f.submitter)===null||n===void 0?void 0:n.submitButtonProps),render:function(C,x){var T,R=x.pop();if(typeof(f==null||(T=f.submitter)===null||T===void 0?void 0:T.render)=="function"){var O,M;return f==null||(O=f.submitter)===null||O===void 0||(M=O.render)===null||M===void 0?void 0:M.call(O,C,x)}return R}}),g=m.useContext(or.ConfigContext),v=g.getPrefixCls("pro-form-login"),y=tSn(v),_=y.wrapSSR,S=y.hashId,b=function(C){return"".concat(v,"-").concat(C," ").concat(S)},E=m.useMemo(function(){return r?typeof r=="string"?N.jsx("img",{src:r}):r:null},[r]);return _(N.jsxs("div",{className:Ce(b("container"),S),style:u,children:[N.jsxs("div",{className:"".concat(b("top")," ").concat(S).trim(),children:[a||E?N.jsxs("div",{className:"".concat(b("header")),children:[E?N.jsx("span",{className:b("logo"),children:E}):null,a?N.jsx("span",{className:b("title"),children:a}):null]}):null,s?N.jsx("div",{className:b("desc"),children:s}):null]}),N.jsxs("div",{className:b("main"),style:ee({width:328},o),children:[N.jsxs(mi,ee(ee({isKeyPressSubmit:!0},f),{},{submitter:h,children:[i,c]})),l?N.jsx("div",{className:b("main-other"),style:d,children:l}):null]})]}))}var SOe=m.createContext({}),WYe={exports:{}};(function(e){var n=zC.default;function r(o){if(typeof WeakMap!="function")return null;var a=new WeakMap,s=new WeakMap;return(r=function(c){return c?s:a})(o)}function i(o,a){if(!a&&o&&o.__esModule)return o;if(o===null||n(o)!="object"&&typeof o!="function")return{default:o};var s=r(a);if(s&&s.has(o))return s.get(o);var l={__proto__:null},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in o)if(u!=="default"&&{}.hasOwnProperty.call(o,u)){var d=c?Object.getOwnPropertyDescriptor(o,u):null;d&&(d.get||d.set)?Object.defineProperty(l,u,d):l[u]=o[u]}return l.default=o,s&&s.set(o,l),l}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(WYe);var Qs=WYe.exports,YYe={exports:{}};(function(e){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var a in o)({}).hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(null,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(YYe);var iH=YYe.exports,MI={},qYe={exports:{}},KYe={exports:{}};(function(e){function n(r){if(Array.isArray(r))return r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(KYe);var XYe=KYe.exports,QYe={exports:{}};(function(e){function n(r,i){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var a,s,l,c,u=[],d=!0,f=!1;try{if(l=(o=o.call(r)).next,i===0){if(Object(o)!==o)return;d=!1}else for(;!(d=(a=l.call(o)).done)&&(u.push(a.value),u.length!==i);d=!0);}catch(p){f=!0,s=p}finally{try{if(!d&&o.return!=null&&(c=o.return(),Object(c)!==c))return}finally{if(f)throw s}}return u}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(QYe);var rSn=QYe.exports,ZYe={exports:{}},JYe={exports:{}};(function(e){function n(r,i){(i==null||i>r.length)&&(i=r.length);for(var o=0,a=Array(i);o<i;o++)a[o]=r[o];return a}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(JYe);var eqe=JYe.exports;(function(e){var n=eqe;function r(i,o){if(i){if(typeof i=="string")return n(i,o);var a={}.toString.call(i).slice(8,-1);return a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set"?Array.from(i):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(i,o):void 0}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(ZYe);var Dfe=ZYe.exports,tqe={exports:{}};(function(e){function n(){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=n,e.exports.__esModule=!0,e.exports.default=e.exports})(tqe);var nqe=tqe.exports;(function(e){var n=XYe,r=rSn,i=Dfe,o=nqe;function a(s,l){return n(s)||r(s,l)||i(s,l)||o()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(qYe);var rqe=qYe.exports,iqe={exports:{}},oqe={exports:{}};(function(e){function n(r,i){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(i.includes(a))continue;o[a]=r[a]}return o}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(oqe);var iSn=oqe.exports;(function(e){var n=iSn;function r(i,o){if(i==null)return{};var a,s,l=n(i,o);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);for(s=0;s<c.length;s++)a=c[s],o.includes(a)||{}.propertyIsEnumerable.call(i,a)&&(l[a]=i[a])}return l}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(iqe);var aqe=iqe.exports;const Qk=UD(BNt);var PI={};Object.defineProperty(PI,"__esModule",{value:!0});PI.default=void 0;var oSn=m,aSn=(0,oSn.createContext)({});PI.default=aSn;var Zk={},Wc={},mw={},oH={};Object.defineProperty(oH,"__esModule",{value:!0});oH.default=sSn;function sSn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var kfe={};Object.defineProperty(kfe,"__esModule",{value:!0});kfe.default=lSn;function lSn(e,n){if(!e)return!1;if(e.contains)return e.contains(n);for(var r=n;r;){if(r===e)return!0;r=r.parentNode}return!1}var Lfe=di.default;Object.defineProperty(mw,"__esModule",{value:!0});mw.clearContainerCache=gSn;mw.injectCSS=Ffe;mw.removeCSS=pSn;mw.updateCSS=mSn;var EOe=Lfe(VC),cSn=Lfe(oH),uSn=Lfe(kfe),COe="data-rc-order",wOe="data-rc-priority",dSn="rc-util-key",TB=new Map;function sqe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.mark;return n?n.startsWith("data-")?n:"data-".concat(n):dSn}function aH(e){if(e.attachTo)return e.attachTo;var n=document.querySelector("head");return n||document.body}function fSn(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function $fe(e){return Array.from((TB.get(e)||e).children).filter(function(n){return n.tagName==="STYLE"})}function Ffe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,cSn.default)())return null;var r=n.csp,i=n.prepend,o=n.priority,a=o===void 0?0:o,s=fSn(i),l=s==="prependQueue",c=document.createElement("style");c.setAttribute(COe,s),l&&a&&c.setAttribute(wOe,"".concat(a)),r!=null&&r.nonce&&(c.nonce=r==null?void 0:r.nonce),c.innerHTML=e;var u=aH(n),d=u.firstChild;if(i){if(l){var f=(n.styles||$fe(u)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(COe)))return!1;var h=Number(p.getAttribute(wOe)||0);return a>=h});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function lqe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=aH(n);return(n.styles||$fe(r)).find(function(i){return i.getAttribute(sqe(n))===e})}function pSn(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=lqe(e,n);if(r){var i=aH(n);i.removeChild(r)}}function hSn(e,n){var r=TB.get(e);if(!r||!(0,uSn.default)(document,r)){var i=Ffe("",n),o=i.parentNode;TB.set(e,o),e.removeChild(i)}}function gSn(){TB.clear()}function mSn(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=aH(r),o=$fe(i),a=(0,EOe.default)((0,EOe.default)({},r),{},{styles:o});hSn(i,a);var s=lqe(n,a);if(s){var l,c;if((l=a.csp)!==null&&l!==void 0&&l.nonce&&s.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var u;s.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return s.innerHTML!==e&&(s.innerHTML=e),s}var d=Ffe(e,a);return d.setAttribute(sqe(a),n),d}var sH={};Object.defineProperty(sH,"__esModule",{value:!0});sH.getShadowRoot=vSn;sH.inShadow=uqe;function cqe(e){var n;return e==null||(n=e.getRootNode)===null||n===void 0?void 0:n.call(e)}function uqe(e){return cqe(e)instanceof ShadowRoot}function vSn(e){return uqe(e)?cqe(e):null}var xd={};Object.defineProperty(xd,"__esModule",{value:!0});xd.call=Bfe;xd.default=void 0;xd.note=fqe;xd.noteOnce=hqe;xd.preMessage=void 0;xd.resetWarned=pqe;xd.warning=dqe;xd.warningOnce=Jk;var uoe={},ySn=xd.preMessage=function(n){};function dqe(e,n){}function fqe(e,n){}function pqe(){uoe={}}function Bfe(e,n,r){!n&&!uoe[r]&&(e(!1,r),uoe[r]=!0)}function Jk(e,n){Bfe(dqe,e,n)}function hqe(e,n){Bfe(fqe,e,n)}Jk.preMessage=ySn;Jk.resetWarned=pqe;Jk.noteOnce=hqe;xd.default=Jk;var _Sn=Qs.default,lH=di.default;Object.defineProperty(Wc,"__esModule",{value:!0});Wc.generate=foe;Wc.getSecondaryColor=RSn;Wc.iconStyles=void 0;Wc.isIconDefinition=OSn;Wc.normalizeAttrs=doe;Wc.normalizeTwoToneColors=ISn;Wc.useInsertStyles=Wc.svgBaseProps=void 0;Wc.warning=TSn;var Zq=lH(VC),xOe=lH(zC),bSn=Qk,SSn=mw,ESn=sH,CSn=lH(xd),OB=_Sn(m),wSn=lH(PI);function xSn(e){return e.replace(/-(.)/g,function(n,r){return r.toUpperCase()})}function TSn(e,n){(0,CSn.default)(e,"[@ant-design/icons] ".concat(n))}function OSn(e){return(0,xOe.default)(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&((0,xOe.default)(e.icon)==="object"||typeof e.icon=="function")}function doe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(n,r){var i=e[r];switch(r){case"class":n.className=i,delete n.class;break;default:delete n[r],n[xSn(r)]=i}return n},{})}function foe(e,n,r){return r?OB.default.createElement(e.tag,(0,Zq.default)((0,Zq.default)({key:n},doe(e.attrs)),r),(e.children||[]).map(function(i,o){return foe(i,"".concat(n,"-").concat(e.tag,"-").concat(o))})):OB.default.createElement(e.tag,(0,Zq.default)({key:n},doe(e.attrs)),(e.children||[]).map(function(i,o){return foe(i,"".concat(n,"-").concat(e.tag,"-").concat(o))}))}function RSn(e){return(0,bSn.generate)(e)[0]}function ISn(e){return e?Array.isArray(e)?e:[e]:[]}Wc.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var NSn=Wc.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);
}
}
`;Wc.useInsertStyles=function(n){var r=(0,OB.useContext)(wSn.default),i=r.csp,o=r.prefixCls,a=r.layer,s=NSn;o&&(s=s.replace(/anticon/g,o)),a&&(s="@layer ".concat(a,` {
`).concat(s,`
}`)),(0,OB.useEffect)(function(){var l=n.current,c=(0,ESn.getShadowRoot)(l);(0,SSn.updateCSS)(s,"@ant-design-icons",{prepend:!a,csp:i,attachTo:c})},[])};var gqe=di.default,MSn=Qs.default;Object.defineProperty(Zk,"__esModule",{value:!0});Zk.default=void 0;var PSn=gqe(aqe),h2=gqe(VC),ASn=MSn(m),AE=Wc,DSn=["icon","className","onClick","style","primaryColor","secondaryColor"],oP={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function kSn(e){var n=e.primaryColor,r=e.secondaryColor;oP.primaryColor=n,oP.secondaryColor=r||(0,AE.getSecondaryColor)(n),oP.calculated=!!r}function LSn(){return(0,h2.default)({},oP)}var cH=function(n){var r=n.icon,i=n.className,o=n.onClick,a=n.style,s=n.primaryColor,l=n.secondaryColor,c=(0,PSn.default)(n,DSn),u=ASn.useRef(),d=oP;if(s&&(d={primaryColor:s,secondaryColor:l||(0,AE.getSecondaryColor)(s)}),(0,AE.useInsertStyles)(u),(0,AE.warning)((0,AE.isIconDefinition)(r),"icon should be icon definiton, but got ".concat(r)),!(0,AE.isIconDefinition)(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=(0,h2.default)((0,h2.default)({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),(0,AE.generate)(f.icon,"svg-".concat(f.name),(0,h2.default)((0,h2.default)({className:i,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};cH.displayName="IconReact";cH.getTwoToneColors=LSn;cH.setTwoToneColors=kSn;Zk.default=cH;var uH={},mqe=di.default;Object.defineProperty(uH,"__esModule",{value:!0});uH.getTwoToneColor=jSn;uH.setTwoToneColor=BSn;var $Sn=mqe(rqe),vqe=mqe(Zk),FSn=Wc;function BSn(e){var n=(0,FSn.normalizeTwoToneColors)(e),r=(0,$Sn.default)(n,2),i=r[0],o=r[1];return vqe.default.setTwoToneColors({primaryColor:i,secondaryColor:o})}function jSn(){var e=vqe.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var vw=di.default,USn=Qs.default;Object.defineProperty(MI,"__esModule",{value:!0});MI.default=void 0;var HSn=vw(iH),zSn=vw(rqe),TOe=vw(U4e),VSn=vw(aqe),h4=USn(m),GSn=vw(Q7),WSn=Qk,YSn=vw(PI),qSn=vw(Zk),jfe=uH,KSn=Wc,XSn=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,jfe.setTwoToneColor)(WSn.blue.primary);var dH=h4.forwardRef(function(e,n){var r=e.className,i=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=(0,VSn.default)(e,XSn),d=h4.useContext(YSn.default),f=d.prefixCls,p=f===void 0?"anticon":f,h=d.rootClassName,g=(0,GSn.default)(h,p,(0,TOe.default)((0,TOe.default)({},"".concat(p,"-").concat(i.name),!!i.name),"".concat(p,"-spin"),!!o||i.name==="loading"),r),v=s;v===void 0&&l&&(v=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,_=(0,KSn.normalizeTwoToneColors)(c),S=(0,zSn.default)(_,2),b=S[0],E=S[1];return h4.createElement("span",(0,HSn.default)({role:"img","aria-label":i.name},u,{ref:n,tabIndex:v,onClick:l,className:g}),h4.createElement(qSn.default,{icon:i,primaryColor:b,secondaryColor:E,style:y}))});dH.displayName="AntdIcon";dH.getTwoToneColor=jfe.getTwoToneColor;dH.setTwoToneColor=jfe.setTwoToneColor;MI.default=dH;var QSn=["isLoading","pastDelay","timedOut","error","retry"],ZSn=function(n){n.isLoading,n.pastDelay,n.timedOut,n.error,n.retry;var r=Xt(n,QSn);return N.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:N.jsx(t_,ee({size:"large"},r))})},JSn=function(n){return fe({},n.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:n.colorTextSecondary,"&-link":{color:n.colorTextSecondary,textDecoration:n.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:n.colorPrimary}},"&-copyright":{fontSize:"14px",color:n.colorText}})};function eEn(e){return ia("ProLayoutFooter",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[JSn(r)]})}var tEn=function(n){var r=n.className,i=n.prefixCls,o=n.links,a=n.copyright,s=n.style,l=m.useContext(or.ConfigContext),c=l.getPrefixCls(i||"pro-global-footer"),u=eEn(c),d=u.wrapSSR,f=u.hashId;return(o==null||o===!1||Array.isArray(o)&&o.length===0)&&(a==null||a===!1)?null:d(N.jsxs("div",{className:Ce(c,f,r),style:s,children:[o&&N.jsx("div",{className:"".concat(c,"-list ").concat(f).trim(),children:o.map(function(p){return N.jsx("a",{className:"".concat(c,"-list-link ").concat(f).trim(),title:p.key,target:p.blankTarget?"_blank":"_self",href:p.href,rel:"noreferrer",children:p.title},p.key)})}),a&&N.jsx("div",{className:"".concat(c,"-copyright ").concat(f).trim(),children:a})]}))},nEn=bo.Footer,rEn=function(n){var r=n.links,i=n.copyright,o=n.style,a=n.className,s=n.prefixCls;return N.jsx(nEn,{className:a,style:ee({padding:0},o),children:N.jsx(tEn,{links:r,prefixCls:s,copyright:i===!1?null:N.jsxs(m.Fragment,{children:[N.jsx(Hzt,{})," ",i]})})})},OOe=function e(n){return(n||[]).reduce(function(r,i){if(i.key&&r.push(i.key),i.children||i.routes){var o=r.concat(e(i.children||i.routes)||[]);return o}return r},[])};function fH(e){return e.map(function(n){var r=n.children||[],i=ee({},n);if(!i.children&&i.routes&&(i.children=i.routes),!i.name||i.hideInMenu)return null;if(i&&i!==null&&i!==void 0&&i.children){if(!i.hideChildrenInMenu&&r.some(function(o){return o&&o.name&&!o.hideInMenu}))return ee(ee({},n),{},{children:fH(r)});delete i.children}return delete i.routes,i}).filter(function(n){return n})}var iEn=function(){return N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:N.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},oEn=function e(n){var r=n.appList,i=n.baseClassName,o=n.hashId,a=n.itemClick;return N.jsx("div",{className:"".concat(i,"-content ").concat(o).trim(),children:N.jsx("ul",{className:"".concat(i,"-content-list ").concat(o).trim(),children:r==null?void 0:r.map(function(s,l){var c;return s!=null&&(c=s.children)!==null&&c!==void 0&&c.length?N.jsxs("div",{className:"".concat(i,"-content-list-item-group ").concat(o).trim(),children:[N.jsx("div",{className:"".concat(i,"-content-list-item-group-title ").concat(o).trim(),children:s.title}),N.jsx(e,{hashId:o,itemClick:a,appList:s==null?void 0:s.children,baseClassName:i})]},l):N.jsx("li",{className:"".concat(i,"-content-list-item ").concat(o).trim(),onClick:function(d){d.stopPropagation(),a==null||a(s)},children:N.jsxs("a",{href:a?void 0:s.url,target:s.target,rel:"noreferrer",children:[Ufe(s.icon),N.jsxs("div",{children:[N.jsx("div",{children:s.title}),s.desc?N.jsx("span",{children:s.desc}):null]})]})},l)})})})},aEn=function(n,r){if(n&&typeof n=="string"&&sfe(n))return N.jsx("img",{src:n,alt:"logo"});if(typeof n=="function")return n();if(n&&typeof n=="string")return N.jsx("div",{id:"avatarLogo",children:n});if(!n&&r&&typeof r=="string"){var i=r.substring(0,1);return N.jsx("div",{id:"avatarLogo",children:i})}return n},sEn=function e(n){var r=n.appList,i=n.baseClassName,o=n.hashId,a=n.itemClick;return N.jsx("div",{className:"".concat(i,"-content ").concat(o).trim(),children:N.jsx("ul",{className:"".concat(i,"-content-list ").concat(o).trim(),children:r==null?void 0:r.map(function(s,l){var c;return s!=null&&(c=s.children)!==null&&c!==void 0&&c.length?N.jsxs("div",{className:"".concat(i,"-content-list-item-group ").concat(o).trim(),children:[N.jsx("div",{className:"".concat(i,"-content-list-item-group-title ").concat(o).trim(),children:s.title}),N.jsx(e,{hashId:o,itemClick:a,appList:s==null?void 0:s.children,baseClassName:i})]},l):N.jsx("li",{className:"".concat(i,"-content-list-item ").concat(o).trim(),onClick:function(d){d.stopPropagation(),a==null||a(s)},children:N.jsxs("a",{href:a?"javascript:;":s.url,target:s.target,rel:"noreferrer",children:[aEn(s.icon,s.title),N.jsx("div",{children:N.jsx("div",{children:s.title})})]})},l)})})})},lEn=function(n){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:n.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:n.colorBgTextHover},"* div":jq==null?void 0:jq(n),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:n.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:n.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},cEn=function(n){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:n.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:n.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:n.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:n.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:n.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:n.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},uEn=function(n){var r,i,o,a,s;return fe({},n.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(r=n.layout)===null||r===void 0?void 0:r.colorTextAppListIcon,borderRadius:n.borderRadius,"&:hover":{color:(i=n.layout)===null||i===void 0?void 0:i.colorTextAppListIconHover,backgroundColor:(o=n.layout)===null||o===void 0?void 0:o.colorBgAppListIconHover},"&-active":{color:(a=n.layout)===null||a===void 0?void 0:a.colorTextAppListIconHover,backgroundColor:(s=n.layout)===null||s===void 0?void 0:s.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":fe({},"".concat(n.antCls,"-popover-arrow"),{display:"none"}),"&-simple":cEn(n),"&-default":lEn(n)})};function dEn(e){return ia("AppsLogoComponents",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[uEn(r)]})}var Ufe=function(n){return typeof n=="string"?N.jsx("img",{width:"auto",height:22,src:n,alt:"logo"}):typeof n=="function"?n():n},Hfe=function(n){var r,i=n.appList,o=n.appListRender,a=n.prefixCls,s=a===void 0?"ant-pro":a,l=n.onItemClick,c=V.useRef(null),u=V.useRef(null),d="".concat(s,"-layout-apps"),f=dEn(d),p=f.wrapSSR,h=f.hashId,g=m.useState(!1),v=ke(g,2),y=v[0],_=v[1],S=function(x){l==null||l(x,u)},b=m.useMemo(function(){var C=i==null?void 0:i.some(function(x){return!(x!=null&&x.desc)});return C?N.jsx(sEn,{hashId:h,appList:i,itemClick:l?S:void 0,baseClassName:"".concat(d,"-simple")}):N.jsx(oEn,{hashId:h,appList:i,itemClick:l?S:void 0,baseClassName:"".concat(d,"-default")})},[i,d,h]);if(!(n!=null&&(r=n.appList)!==null&&r!==void 0&&r.length))return null;var E=o?o(n==null?void 0:n.appList,b):b,w=LU(void 0,function(C){return _(C)});return p(N.jsxs(N.Fragment,{children:[N.jsx("div",{ref:c,onClick:function(x){x.stopPropagation(),x.preventDefault()}}),N.jsx(Ip,ee(ee({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},w),{},{overlayClassName:"".concat(d,"-popover ").concat(h).trim(),content:E,getPopupContainer:function(){return c.current||document.body},children:N.jsx("span",{ref:u,onClick:function(x){x.stopPropagation()},className:Ce("".concat(d,"-icon"),h,fe({},"".concat(d,"-icon-active"),y)),children:N.jsx(iEn,{})})}))]}))};function fEn(){return N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:N.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 pEn=function(n){var r,i,o;return fe({},n.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:(r=n.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextCollapsedButton,backgroundColor:(i=n.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.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:(o=n.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.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 hEn(e){return ia("SiderMenuCollapsedIcon",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[pEn(r)]})}var gEn=["isMobile","collapsed"],mEn=function(n){var r=n.isMobile,i=n.collapsed,o=Xt(n,gEn),a=hEn(n.className),s=a.wrapSSR,l=a.hashId;return r&&i?null:s(N.jsx("div",ee(ee({},o),{},{className:Ce(n.className,l,fe(fe({},"".concat(n.className,"-collapsed"),i),"".concat(n.className,"-is-mobile"),r)),children:N.jsx(fEn,{})})))},yqe={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},vEn=function(n,r){var i,o,a=r.includes("horizontal")?(i=n.layout)===null||i===void 0?void 0:i.header:(o=n.layout)===null||o===void 0?void 0:o.sider;return ee(ee(fe({},"".concat(n.componentCls),fe(fe(fe(fe(fe(fe(fe(fe(fe({background:"transparent",color:a==null?void 0:a.colorTextMenu,border:"none"},"".concat(n.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(n.componentCls,"-submenu-has-icon"),fe({},"> ".concat(n.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(n.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(n.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(n.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",fe(fe(fe({},"".concat(n.antCls,`-menu-item,
`).concat(n.antCls,"-menu-item-group > ").concat(n.antCls,"-menu-item-group-list > ").concat(n.antCls,`-menu-item,
`).concat(n.antCls,"-menu-item-group > ").concat(n.antCls,"-menu-item-group-list > ").concat(n.antCls,"-menu-submenu > ").concat(n.antCls,`-menu-submenu-title,
`).concat(n.antCls,"-menu-submenu > ").concat(n.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),"".concat(n.antCls,"-menu-item-group > ").concat(n.antCls,"-menu-item-group-list > ").concat(n.antCls,"-menu-submenu-selected > ").concat(n.antCls,`-menu-submenu-title,
`).concat(n.antCls,"-menu-submenu-selected > ").concat(n.antCls,"-menu-submenu-title"),{backgroundColor:a==null?void 0:a.colorBgMenuItemSelected,borderRadius:n.borderRadiusLG}),"".concat(n.componentCls,"-group"),fe({},"".concat(n.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",fe(fe(fe(fe(fe({display:"flex",flexDirection:"row",alignItems:"center",gap:n.marginXS},"".concat(n.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",fe(fe({minWidth:40,height:40},"".concat(n.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(n.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(n.componentCls,"-group-item-title"),{gap:n.marginXS,height:18,overflow:"hidden"}),"&".concat(n.componentCls,"-item-collapsed-show-title"),fe({lineHeight:"16px",gap:0},"&".concat(n.componentCls,"-item-title-collapsed"),fe(fe({display:"flex"},"".concat(n.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(n.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",fe({},"".concat(n.antCls,"-menu-item-group-title"),{fontSize:12,color:n.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:n.colorTextSecondary,fontSize:12,lineHeight:20})),r.includes("horizontal")?{}:fe({},"".concat(n.antCls,"-menu-submenu").concat(n.antCls,"-menu-submenu-popup"),fe({},"".concat(n.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},fe({},"".concat(n.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function yEn(e,n){return ia("ProLayoutBaseMenu"+n,function(r){var i=ee(ee({},r),{},{componentCls:".".concat(e)});return[vEn(i,n||"inline")]})}var ROe=function(n){var r=m.useState(n.collapsed),i=ke(r,2),o=i[0],a=i[1],s=m.useState(!1),l=ke(s,2),c=l[0],u=l[1];return m.useEffect(function(){u(!1),setTimeout(function(){a(n.collapsed)},400)},[n.collapsed]),n.disable?n.children:N.jsx(Ef,{title:n.title,open:o&&n.collapsed?c:!1,placement:"right",onOpenChange:u,children:n.children})},_qe=XVe({scriptUrl:yqe.iconfontUrl}),IOe=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",i=arguments.length>2?arguments[2]:void 0;if(typeof n=="string"&&n!==""){if(sfe(n)||hJt(n))return N.jsx("img",{width:16,src:n,alt:"icon",className:i},n);if(n.startsWith(r))return N.jsx(_qe,{type:n})}return n},NOe=function(n){if(n&&typeof n=="string"){var r=n.substring(0,1).toUpperCase();return r}return null},_En=Xi(function e(n){var r=this;Ki(this,e),fe(this,"props",void 0),fe(this,"getNavMenuItems",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return i.map(function(s){return r.getSubMenuOrItem(s,o,a)}).filter(function(s){return s}).flat(1)}),fe(this,"getSubMenuOrItem",function(i,o,a){var s=r.props,l=s.subMenuItemRender,c=s.baseClassName,u=s.prefixCls,d=s.collapsed,f=s.menu,p=s.iconPrefixes,h=s.layout,g=(f==null?void 0:f.type)==="group"&&h!=="top",v=r.props.token,y=r.getIntlName(i),_=(i==null?void 0:i.children)||(i==null?void 0:i.routes),S=g&&o===0?"group":void 0;if(Array.isArray(_)&&_.length>0){var b,E,w,C,x,T=o===0||g&&o===1,R=IOe(i.icon,p,"".concat(c,"-icon ").concat((b=r.props)===null||b===void 0?void 0:b.hashId)),O=d&&T?NOe(y):null,M=N.jsxs("div",{className:Ce("".concat(c,"-item-title"),(E=r.props)===null||E===void 0?void 0:E.hashId,fe(fe(fe(fe({},"".concat(c,"-item-title-collapsed"),d),"".concat(c,"-item-title-collapsed-level-").concat(a),d),"".concat(c,"-group-item-title"),S==="group"),"".concat(c,"-item-collapsed-show-title"),(f==null?void 0:f.collapsedShowTitle)&&d)),children:[S==="group"&&d?null:T&&R?N.jsx("span",{className:"".concat(c,"-item-icon ").concat((w=r.props)===null||w===void 0?void 0:w.hashId).trim(),children:R}):O,N.jsx("span",{className:Ce("".concat(c,"-item-text"),(C=r.props)===null||C===void 0?void 0:C.hashId,fe({},"".concat(c,"-item-text-has-icon"),S!=="group"&&T&&(R||O))),children:y})]}),P=l?l(ee(ee({},i),{},{isUrl:!1}),M,r.props):M;if(g&&o===0&&r.props.collapsed&&!f.collapsedShowGroupTitle)return r.getNavMenuItems(_,o+1,o);var k=r.getNavMenuItems(_,o+1,g&&o===0&&r.props.collapsed?o:o+1);return[{type:S,key:i.key||i.path,label:P,onClick:g?void 0:i.onTitleClick,children:k,className:Ce(fe(fe(fe({},"".concat(c,"-group"),S==="group"),"".concat(c,"-submenu"),S!=="group"),"".concat(c,"-submenu-has-icon"),S!=="group"&&T&&R))},g&&o===0?{type:"divider",prefixCls:u,className:"".concat(c,"-divider"),key:(i.key||i.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:r.props.collapsed?"4px":"6px 16px",marginBlockStart:r.props.collapsed?4:8,borderColor:v==null||(x=v.layout)===null||x===void 0||(x=x.sider)===null||x===void 0?void 0:x.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(c,"-menu-item"),disabled:i.disabled,key:i.key||i.path,onClick:i.onTitleClick,label:r.getMenuItemPath(i,o,a)}}),fe(this,"getIntlName",function(i){var o=i.name,a=i.locale,s=r.props,l=s.menu,c=s.formatMessage,u=o;return a&&(l==null?void 0:l.locale)!==!1&&(u=c==null?void 0:c({id:a,defaultMessage:o})),r.props.menuTextRender?r.props.menuTextRender(i,u,r.props):u}),fe(this,"getMenuItemPath",function(i,o,a){var s,l,c,u,d=r.conversionPath(i.path||"/"),f=r.props,p=f.location,h=p===void 0?{pathname:"/"}:p,g=f.isMobile,v=f.onCollapse,y=f.menuItemRender,_=f.iconPrefixes,S=r.getIntlName(i),b=r.props,E=b.baseClassName,w=b.menu,C=b.collapsed,x=(w==null?void 0:w.type)==="group",T=o===0||x&&o===1,R=T?IOe(i.icon,_,"".concat(E,"-icon ").concat((s=r.props)===null||s===void 0?void 0:s.hashId)):null,O=C&&T?NOe(S):null,M=N.jsxs("div",{className:Ce("".concat(E,"-item-title"),(l=r.props)===null||l===void 0?void 0:l.hashId,fe(fe(fe({},"".concat(E,"-item-title-collapsed"),C),"".concat(E,"-item-title-collapsed-level-").concat(a),C),"".concat(E,"-item-collapsed-show-title"),(w==null?void 0:w.collapsedShowTitle)&&C)),children:[N.jsx("span",{className:"".concat(E,"-item-icon ").concat((c=r.props)===null||c===void 0?void 0:c.hashId).trim(),style:{display:O===null&&!R?"none":""},children:R||N.jsx("span",{className:"anticon",children:O})}),N.jsx("span",{className:Ce("".concat(E,"-item-text"),(u=r.props)===null||u===void 0?void 0:u.hashId,fe({},"".concat(E,"-item-text-has-icon"),T&&(R||O))),children:S})]},d),P=sfe(d);if(P){var k,$,U;M=N.jsxs("span",{onClick:function(){var B,Y;(B=window)===null||B===void 0||(Y=B.open)===null||Y===void 0||Y.call(B,d,"_blank")},className:Ce("".concat(E,"-item-title"),(k=r.props)===null||k===void 0?void 0:k.hashId,fe(fe(fe(fe({},"".concat(E,"-item-title-collapsed"),C),"".concat(E,"-item-title-collapsed-level-").concat(a),C),"".concat(E,"-item-link"),!0),"".concat(E,"-item-collapsed-show-title"),(w==null?void 0:w.collapsedShowTitle)&&C)),children:[N.jsx("span",{className:"".concat(E,"-item-icon ").concat(($=r.props)===null||$===void 0?void 0:$.hashId).trim(),style:{display:O===null&&!R?"none":""},children:R||N.jsx("span",{className:"anticon",children:O})}),N.jsx("span",{className:Ce("".concat(E,"-item-text"),(U=r.props)===null||U===void 0?void 0:U.hashId,fe({},"".concat(E,"-item-text-has-icon"),T&&(R||O))),children:S})]},d)}if(y){var z=ee(ee({},i),{},{isUrl:P,itemPath:d,isMobile:g,replace:d===h.pathname,onClick:function(){return v&&v(!0)},children:void 0});return o===0?N.jsx(ROe,{collapsed:C,title:S,disable:i.disabledTooltip,children:y(z,M,r.props)}):y(z,M,r.props)}return o===0?N.jsx(ROe,{collapsed:C,title:S,disable:i.disabledTooltip,children:M}):M}),fe(this,"conversionPath",function(i){return i&&i.indexOf("http")===0?i:"/".concat(i||"").replace(/\/+/g,"/")}),this.props=n}),bEn=function(n,r){var i=r.layout,o=r.collapsed,a={};return n&&!o&&["side","mix"].includes(i||"mix")&&(a={openKeys:n}),a},bqe=function(n){var r=n.mode,i=n.className,o=n.handleOpenChange,a=n.style,s=n.menuData,l=n.prefixCls,c=n.menu,u=n.matchMenuKeys,d=n.iconfontUrl,f=n.selectedKeys,p=n.onSelect,h=n.menuRenderType,g=n.openKeys,v=m.useContext(Wh),y=v.dark,_=v.token,S="".concat(l,"-base-menu-").concat(r),b=m.useRef([]),E=dr(c==null?void 0:c.defaultOpenAll),w=ke(E,2),C=w[0],x=w[1],T=dr(function(){return c!=null&&c.defaultOpenAll?OOe(s)||[]:g===!1?!1:[]},{value:g===!1?void 0:g,onChange:o}),R=ke(T,2),O=R[0],M=R[1],P=dr([],{value:f,onChange:p?function(H){p&&H&&p(H)}:void 0}),k=ke(P,2),$=k[0],U=k[1];m.useEffect(function(){c!=null&&c.defaultOpenAll||g===!1||u&&(M(u),U(u))},[u.join("-")]),m.useEffect(function(){d&&(_qe=XVe({scriptUrl:d}))},[d]),m.useEffect(function(){if(u.join("-")!==($||[]).join("-")&&U(u),!C&&g!==!1&&u.join("-")!==(O||[]).join("-")){var H=u;(c==null?void 0:c.autoClose)===!1&&(H=Array.from(new Set([].concat(Tt(u),Tt(O||[]))))),M(H)}else c!=null&&c.ignoreFlatMenu&&C?M(OOe(s)):x(!1)},[u.join("-")]);var z=m.useMemo(function(){return bEn(O,n)},[O&&O.join(","),n.layout,n.collapsed]),D=yEn(S,r),B=D.wrapSSR,Y=D.hashId,q=m.useMemo(function(){return new _En(ee(ee({},n),{},{token:_,menuRenderType:h,baseClassName:S,hashId:Y}))},[n,_,h,S,Y]);if(c!=null&&c.loading)return N.jsx("div",{style:r!=null&&r.includes("inline")?{padding:24}:{marginBlockStart:16},children:N.jsx(Zy,{active:!0,title:!1,paragraph:{rows:r!=null&&r.includes("inline")?6:1}})});n.openKeys===!1&&!n.handleOpenChange&&(b.current=u);var K=n.postMenuData?n.postMenuData(s):s;return K&&(K==null?void 0:K.length)<1?null:B(m.createElement(nv,ee(ee({},z),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:r,inlineIndent:16,defaultOpenKeys:b.current,theme:y?"dark":"light",selectedKeys:$,style:ee({backgroundColor:"transparent",border:"none"},a),className:Ce(i,Y,S,fe(fe({},"".concat(S,"-horizontal"),r==="horizontal"),"".concat(S,"-collapsed"),n.collapsed)),items:q.getNavMenuItems(K,0,0),onOpenChange:function(G){n.collapsed||M(G)}},n.menuProps)))};function SEn(e,n){var r=n.stylish,i=n.proLayoutCollapsedWidth;return ia("ProLayoutSiderMenuStylish",function(o){var a=ee(ee({},o),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:i});return r?[fe({},"div".concat(o.proComponentsCls,"-layout"),fe({},"".concat(a.componentCls),r==null?void 0:r(a)))]:[]})}var EEn=["title","render"],CEn=V.memo(function(e){return N.jsx(N.Fragment,{children:e.children})}),wEn=bo.Sider,MOe=bo._InternalSiderContext,xEn=MOe===void 0?{Provider:CEn}:MOe,zfe=function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",i=n.logo,o=n.title,a=n.layout,s=n[r];if(s===!1)return null;var l=Ufe(i),c=N.jsx("h1",{children:o??"Ant Design Pro"});return s?s(l,n.collapsed?null:c,n):n.isMobile?null:a==="mix"&&r==="menuHeaderRender"?!1:n.collapsed?N.jsx("a",{children:l},"title"):N.jsxs("a",{children:[l,c]},"title")},POe=function(n){var r,i=n.collapsed,o=n.originCollapsed,a=n.fixSiderbar,s=n.menuFooterRender,l=n.onCollapse,c=n.theme,u=n.siderWidth,d=n.isMobile,f=n.onMenuHeaderClick,p=n.breakpoint,h=p===void 0?"lg":p,g=n.style,v=n.layout,y=n.menuExtraRender,_=y===void 0?!1:y,S=n.links,b=n.menuContentRender,E=n.collapsedButtonRender,w=n.prefixCls,C=n.avatarProps,x=n.rightContentRender,T=n.actionsRender,R=n.onOpenChange,O=n.stylish,M=n.logoStyle,P=m.useContext(Wh),k=P.hashId,$=m.useMemo(function(){return!(d||v==="mix")},[d,v]),U="".concat(w,"-sider"),z=64,D=SEn("".concat(U,".").concat(U,"-stylish"),{stylish:O,proLayoutCollapsedWidth:z}),B=Ce("".concat(U),k,fe(fe(fe(fe(fe(fe(fe({},"".concat(U,"-fixed"),a),"".concat(U,"-fixed-mix"),v==="mix"&&!d&&a),"".concat(U,"-collapsed"),n.collapsed),"".concat(U,"-layout-").concat(v),v&&!d),"".concat(U,"-light"),c!=="dark"),"".concat(U,"-mix"),v==="mix"&&!d),"".concat(U,"-stylish"),!!O)),Y=zfe(n),q=_&&_(n),K=m.useMemo(function(){return b!==!1&&m.createElement(bqe,ee(ee({},n),{},{key:"base-menu",mode:i&&!d?"vertical":"inline",handleOpenChange:R,style:{width:"100%"},className:"".concat(U,"-menu ").concat(k).trim()}))},[U,k,b,R,n]),H=(S||[]).map(function(pe,me){return{className:"".concat(U,"-link"),label:pe,key:me}}),G=m.useMemo(function(){return b?b(n,K):K},[b,K,n]),Q=m.useMemo(function(){if(!C)return null;var pe=C.title,me=C.render,ve=Xt(C,EEn),he=N.jsxs("div",{className:"".concat(U,"-actions-avatar"),children:[ve!=null&&ve.src||ve!=null&&ve.srcSet||ve.icon||ve.children?N.jsx(nS,ee({size:28},ve)):null,C.title&&!i&&N.jsx("span",{children:pe})]});return me?me(C,he,n):he},[C,U,i]),le=m.useMemo(function(){return T?N.jsx(Cf,{align:"center",size:4,direction:i?"vertical":"horizontal",className:Ce(["".concat(U,"-actions-list"),i&&"".concat(U,"-actions-list-collapsed"),k]),children:[T==null?void 0:T(n)].flat(1).map(function(pe,me){return N.jsx("div",{className:"".concat(U,"-actions-list-item ").concat(k).trim(),children:pe},me)})}):null},[T,U,i]),Z=m.useMemo(function(){return N.jsx(Hfe,{onItemClick:n.itemClick,appListRender:n.appListRender,appList:n.appList,prefixCls:n.prefixCls})},[n.appList,n.appListRender,n.prefixCls]),j=m.useMemo(function(){if(E===!1)return null;var pe=N.jsx(mEn,{isMobile:d,collapsed:o,className:"".concat(U,"-collapsed-button"),onClick:function(){l==null||l(!o)}});return E?E(i,pe):pe},[E,d,o,U,i,l]),F=m.useMemo(function(){return!Q&&!le?null:N.jsxs("div",{className:Ce("".concat(U,"-actions"),k,i&&"".concat(U,"-actions-collapsed")),children:[Q,le]})},[le,Q,U,i,k]),te=m.useMemo(function(){var pe;return n!=null&&(pe=n.menu)!==null&&pe!==void 0&&pe.hideMenuWhenCollapsed&&i?"".concat(U,"-hide-menu-collapsed"):null},[U,i,n==null||(r=n.menu)===null||r===void 0?void 0:r.hideMenuWhenCollapsed]),oe=s&&(s==null?void 0:s(n)),de=N.jsxs(N.Fragment,{children:[Y&&N.jsxs("div",{className:Ce([Ce("".concat(U,"-logo"),k,fe({},"".concat(U,"-logo-collapsed"),i))]),onClick:$?f:void 0,id:"logo",style:M,children:[Y,Z]}),q&&N.jsx("div",{className:Ce(["".concat(U,"-extra"),!Y&&"".concat(U,"-extra-no-logo"),k]),children:q}),N.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:G}),N.jsxs(xEn.Provider,{value:{},children:[S?N.jsx("div",{className:"".concat(U,"-links ").concat(k).trim(),children:N.jsx(nv,{inlineIndent:16,className:"".concat(U,"-link-menu ").concat(k).trim(),selectedKeys:[],openKeys:[],theme:c,mode:"inline",items:H})}):null,$&&N.jsxs(N.Fragment,{children:[F,!le&&x?N.jsx("div",{className:Ce("".concat(U,"-actions"),k,fe({},"".concat(U,"-actions-collapsed"),i)),children:x==null?void 0:x(n)}):null]}),oe&&N.jsx("div",{className:Ce(["".concat(U,"-footer"),k,fe({},"".concat(U,"-footer-collapsed"),i)]),children:oe})]})]});return D.wrapSSR(N.jsxs(N.Fragment,{children:[a&&!d&&!te&&N.jsx("div",{style:ee({width:i?z:u,overflow:"hidden",flex:"0 0 ".concat(i?z:u,"px"),maxWidth:i?z:u,minWidth:i?z:u,transition:"all 0.2s ease 0s"},g)}),N.jsxs(wEn,{collapsible:!0,trigger:null,collapsed:i,breakpoint:h===!1?void 0:h,onCollapse:function(me){d||l==null||l(me)},collapsedWidth:z,style:g,theme:c,width:u,className:Ce(B,k,te),children:[te?N.jsx("div",{className:"".concat(U,"-hide-when-collapsed ").concat(k).trim(),style:{height:"100%",width:"100%",opacity:te?0:1},children:de}):de,j]})]}))},TEn=function(n){var r,i,o,a,s;return fe({},n.componentCls,{"&-header-actions":{display:"flex",height:"100%",alignItems:"center","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(r=n.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:n.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:n.borderRadius,"&:hover":{backgroundColor:(i=n.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:n.padding,paddingInlineEnd:n.padding,cursor:"pointer",color:(o=n.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextRightActionsItem,"> div":{height:"44px",color:(a=n.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:n.borderRadius,"&:hover":{backgroundColor:(s=n.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorBgRightActionsItemHover}}}}})};function OEn(e){return ia("ProLayoutRightContent",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[TEn(r)]})}var REn=["rightContentRender","avatarProps","actionsRender","headerContentRender"],IEn=["title","render"],Sqe=function(n){var r=n.rightContentRender,i=n.avatarProps,o=n.actionsRender;n.headerContentRender;var a=Xt(n,REn),s=m.useContext(or.ConfigContext),l=s.getPrefixCls,c="".concat(l(),"-pro-global-header"),u=OEn(c),d=u.wrapSSR,f=u.hashId,p=m.useState("auto"),h=ke(p,2),g=h[0],v=h[1],y=m.useMemo(function(){if(!i)return null;var E=i.title,w=i.render,C=Xt(i,IEn),x=[C!=null&&C.src||C!=null&&C.srcSet||C.icon||C.children?m.createElement(nS,ee(ee({},C),{},{size:28,key:"avatar"})):null,E?N.jsx("span",{style:{marginInlineStart:8},children:E},"name"):void 0];return w?w(i,N.jsx("div",{children:x}),a):N.jsx("div",{children:x})},[i]),_=o||y?function(E){var w=o&&(o==null?void 0:o(E));return!w&&!y?null:Array.isArray(w)?d(N.jsxs("div",{className:"".concat(c,"-header-actions ").concat(f).trim(),children:[w.filter(Boolean).map(function(C,x){var T=!1;if(V.isValidElement(C)){var R;T=!!(C!=null&&(R=C.props)!==null&&R!==void 0&&R["aria-hidden"])}return N.jsx("div",{className:Ce("".concat(c,"-header-actions-item ").concat(f),fe({},"".concat(c,"-header-actions-hover"),!T)),children:C},x)}),y&&N.jsx("span",{className:"".concat(c,"-header-actions-avatar ").concat(f).trim(),children:y})]})):d(N.jsxs("div",{className:"".concat(c,"-header-actions ").concat(f).trim(),children:[w,y&&N.jsx("span",{className:"".concat(c,"-header-actions-avatar ").concat(f).trim(),children:y})]}))}:void 0,S=iJt(function(){var E=Ss(ri().mark(function w(C){return ri().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:v(C);case 1:case"end":return T.stop()}},w)}));return function(w){return E.apply(this,arguments)}}(),160),b=_||r;return N.jsx("div",{className:"".concat(c,"-right-content ").concat(f).trim(),style:{minWidth:g,height:"100%"},children:N.jsx("div",{style:{height:"100%"},children:N.jsx(Hc,{onResize:function(w){var C=w.width;S.run(C)},children:b?N.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:b(ee(ee({},a),{},{rightContentSize:g}))}):null})})})},NEn=function(n){var r,i;return fe({},n.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":fe({display:"flex",alignItems:"center"},"".concat(n.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:(r=n.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((i=n.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56)-12,40),"px")}})};function MEn(e){return ia("ProLayoutTopNavHeader",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[NEn(r)]})}var Eqe=function(n){var r,i,o,a,s,l,c,u=m.useRef(null),d=n.onMenuHeaderClick,f=n.contentWidth,p=n.rightContentRender,h=n.className,g=n.style,v=n.headerContentRender,y=n.layout,_=n.actionsRender,S=m.useContext(or.ConfigContext),b=S.getPrefixCls,E=m.useContext(Wh),w=E.dark,C="".concat(n.prefixCls||b("pro"),"-top-nav-header"),x=MEn(C),T=x.wrapSSR,R=x.hashId,O=void 0;n.menuHeaderRender!==void 0?O="menuHeaderRender":(y==="mix"||y==="top")&&(O="headerTitleRender");var M=zfe(ee(ee({},n),{},{collapsed:!1}),O),P=m.useContext(Wh),k=P.token,$=m.useMemo(function(){var U,z,D,B,Y,q,K,H,G,Q,le,Z,j,F=N.jsx(or,{theme:{hashed:qT(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:ee({},oWe({colorItemBg:((U=k.layout)===null||U===void 0||(U=U.header)===null||U===void 0?void 0:U.colorBgHeader)||"transparent",colorSubItemBg:((z=k.layout)===null||z===void 0||(z=z.header)===null||z===void 0?void 0:z.colorBgHeader)||"transparent",radiusItem:k.borderRadius,colorItemBgSelected:((D=k.layout)===null||D===void 0||(D=D.header)===null||D===void 0?void 0:D.colorBgMenuItemSelected)||(k==null?void 0:k.colorBgTextHover),itemHoverBg:((B=k.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorBgMenuItemHover)||(k==null?void 0:k.colorBgTextHover),colorItemBgSelectedHorizontal:((Y=k.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.colorBgMenuItemSelected)||(k==null?void 0:k.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((q=k.layout)===null||q===void 0||(q=q.header)===null||q===void 0?void 0:q.colorTextMenu)||(k==null?void 0:k.colorTextSecondary),colorItemTextHoverHorizontal:((K=k.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.colorTextMenuActive)||(k==null?void 0:k.colorText),colorItemTextSelectedHorizontal:((H=k.layout)===null||H===void 0||(H=H.header)===null||H===void 0?void 0:H.colorTextMenuSelected)||(k==null?void 0:k.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((G=k.layout)===null||G===void 0||(G=G.header)===null||G===void 0?void 0:G.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((Q=k.layout)===null||Q===void 0||(Q=Q.header)===null||Q===void 0?void 0:Q.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((le=k.layout)===null||le===void 0||(le=le.header)===null||le===void 0?void 0:le.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:k==null?void 0:k.colorBgElevated,subMenuItemBg:k==null?void 0:k.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:k==null?void 0:k.colorBgElevated}))},token:{colorBgElevated:((Z=k.layout)===null||Z===void 0||(Z=Z.header)===null||Z===void 0?void 0:Z.colorBgHeader)||"transparent"}},children:N.jsx(bqe,ee(ee(ee({theme:w?"dark":"light"},n),{},{className:"".concat(C,"-base-menu ").concat(R).trim()},n.menuProps),{},{style:ee({width:"100%"},(j=n.menuProps)===null||j===void 0?void 0:j.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return v?v(n,F):F},[(r=k.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgHeader,(i=k.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgMenuItemSelected,(o=k.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgMenuItemHover,(a=k.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextMenu,(s=k.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorTextMenuActive,(l=k.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorTextMenuSelected,(c=k.layout)===null||c===void 0||(c=c.header)===null||c===void 0?void 0:c.colorBgMenuElevated,k.borderRadius,k==null?void 0:k.colorBgTextHover,k==null?void 0:k.colorTextSecondary,k==null?void 0:k.colorText,k==null?void 0:k.colorTextBase,k.colorBgElevated,w,n,C,R,v]);return T(N.jsx("div",{className:Ce(C,R,h,fe({},"".concat(C,"-light"),!0)),style:g,children:N.jsxs("div",{ref:u,className:Ce("".concat(C,"-main"),R,fe({},"".concat(C,"-wide"),f==="Fixed"&&y==="top")),children:[M&&N.jsxs("div",{className:Ce("".concat(C,"-main-left ").concat(R)),onClick:d,children:[N.jsx(Hfe,ee({},n)),N.jsx("div",{className:"".concat(C,"-logo ").concat(R).trim(),id:"logo",children:M},"logo")]}),N.jsx("div",{style:{flex:1},className:"".concat(C,"-menu ").concat(R).trim(),children:$}),(p||_||n.avatarProps)&&N.jsx(Sqe,ee(ee({rightContentRender:p},n),{},{prefixCls:C}))]})}))},PEn=function(n){var r,i,o;return fe({},n.componentCls,fe(fe(fe(fe({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((r=n.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(n.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(i=n.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.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:((o=n.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorHeaderTitle)||n.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function AEn(e){return ia("ProLayoutGlobalHeader",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[PEn(r)]})}var DEn=function(n,r){return n===!1?null:n?n(r,null):r},kEn=function(n){var r=n.isMobile,i=n.logo,o=n.collapsed,a=n.onCollapse,s=n.rightContentRender,l=n.menuHeaderRender,c=n.onMenuHeaderClick,u=n.className,d=n.style,f=n.layout,p=n.children,h=n.splitMenus,g=n.menuData,v=n.prefixCls,y=m.useContext(or.ConfigContext),_=y.getPrefixCls,S=y.direction,b="".concat(v||_("pro"),"-global-header"),E=AEn(b),w=E.wrapSSR,C=E.hashId,x=Ce(u,b,C);if(f==="mix"&&!r&&h){var T=(g||[]).map(function(P){return ee(ee({},P),{},{children:void 0,routes:void 0})}),R=fH(T);return N.jsx(Eqe,ee(ee({mode:"horizontal"},n),{},{splitMenus:!1,menuData:R}))}var O=Ce("".concat(b,"-logo"),C,fe(fe(fe({},"".concat(b,"-logo-rtl"),S==="rtl"),"".concat(b,"-logo-mix"),f==="mix"),"".concat(b,"-logo-mobile"),r)),M=N.jsx("span",{className:O,children:N.jsx("a",{children:Ufe(i)})},"logo");return w(N.jsxs("div",{className:x,style:ee({},d),children:[r&&N.jsx("span",{className:"".concat(b,"-collapsed-button ").concat(C).trim(),onClick:function(){a==null||a(!o)},children:N.jsx(GVe,{})}),r&&DEn(l,M),f==="mix"&&!r&&N.jsxs(N.Fragment,{children:[N.jsx(Hfe,ee({},n)),N.jsx("div",{className:O,onClick:c,children:zfe(ee(ee({},n),{},{collapsed:!1}),"headerTitleRender")})]}),N.jsx("div",{style:{flex:1},children:p}),(s||n.actionsRender||n.avatarProps)&&N.jsx(Sqe,ee({rightContentRender:s},n))]}))},LEn=function(n){var r,i,o,a;return fe({},"".concat(n.proComponentsCls,"-layout"),fe({},"".concat(n.antCls,"-layout-header").concat(n.componentCls),{height:((r=n.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,lineHeight:"".concat(((i=n.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(n.colorSplit),backgroundColor:((o=n.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.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:((a=n.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:n.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 $En(e){return ia("ProLayoutHeader",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[LEn(r)]})}function FEn(e,n){var r=n.stylish,i=n.proLayoutCollapsedWidth;return ia("ProLayoutHeaderStylish",function(o){var a=ee(ee({},o),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:i});return r?[fe({},"div".concat(o.proComponentsCls,"-layout"),fe({},"".concat(a.componentCls),r==null?void 0:r(a)))]:[]})}var AOe=bo.Header,BEn=function(n){var r,i,o,a=n.isMobile,s=n.fixedHeader,l=n.className,c=n.style,u=n.collapsed,d=n.prefixCls,f=n.onCollapse,p=n.layout,h=n.headerRender,g=n.headerContentRender,v=m.useContext(Wh),y=v.token,_=m.useContext(or.ConfigContext),S=m.useState(!1),b=ke(S,2),E=b[0],w=b[1],C=s||p==="mix",x=m.useCallback(function(){var U=p==="top",z=fH(n.menuData||[]),D=N.jsx(kEn,ee(ee({onCollapse:f},n),{},{menuData:z,children:g&&g(n,null)}));return U&&!a&&(D=N.jsx(Eqe,ee(ee({mode:"horizontal",onCollapse:f},n),{},{menuData:z}))),h&&typeof h=="function"?h(n,D):D},[g,h,a,p,f,n]);m.useEffect(function(){var U,z=(_==null||(U=_.getTargetContainer)===null||U===void 0?void 0:U.call(_))||document.body,D=function(){var Y,q=z.scrollTop;return q>(((Y=y.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.heightLayoutHeader)||56)&&!E?(w(!0),!0):(E&&w(!1),!1)};if(C&&!(typeof window>"u"))return z.addEventListener("scroll",D,{passive:!0}),function(){z.removeEventListener("scroll",D)}},[(r=y.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader,C,E]);var T=p==="top",R="".concat(d,"-layout-header"),O=$En(R),M=O.wrapSSR,P=O.hashId,k=FEn("".concat(R,".").concat(R,"-stylish"),{proLayoutCollapsedWidth:64,stylish:n.stylish}),$=Ce(l,P,R,fe(fe(fe(fe(fe(fe(fe({},"".concat(R,"-fixed-header"),C),"".concat(R,"-fixed-header-scroll"),E),"".concat(R,"-mix"),p==="mix"),"".concat(R,"-fixed-header-action"),!u),"".concat(R,"-top-menu"),T),"".concat(R,"-header"),!0),"".concat(R,"-stylish"),!!n.stylish));return p==="side"&&!a?null:k.wrapSSR(M(N.jsx(N.Fragment,{children:N.jsxs(or,{theme:{hashed:qT(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[C&&N.jsx(AOe,{style:ee({height:((i=y.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56,lineHeight:"".concat(((o=y.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},c)}),N.jsx(AOe,{className:$,style:c,children:x()})]})})))};const jEn={"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 successplease replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},UEn=ee({},jEn),HEn={"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"},zEn=ee({},HEn),VEn={"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":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},GEn=ee({},VEn),WEn={"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":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},YEn=ee({},WEn),qEn={"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":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},KEn=ee({},qEn);var DOe={"zh-CN":YEn,"zh-TW":KEn,"en-US":UEn,"it-IT":zEn,"ko-KR":GEn},XEn=function(){if(!afe())return"zh-CN";var n=window.localStorage.getItem("umi_locale");return n||window.g_locale||navigator.language},QEn=function(){var n=XEn();return DOe[n]||DOe["zh-CN"]},sS={};Object.defineProperty(sS,"__esModule",{value:!0});sS.TokenData=void 0;sS.parse=Yfe;sS.compile=n1n;var poe=sS.match=i1n;sS.pathToRegexp=xqe;sS.stringify=s1n;const Vfe="/",Gfe=e=>e,Cqe=/^[$_\p{ID_Start}]$/u,Wfe=/^[$\u200c\u200d\p{ID_Continue}]$/u,RB="https://git.new/pathToRegexpError",ZEn={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function JEn(e){return e.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function Kg(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*e1n(e){const n=[...e];let r=0;function i(){let o="";if(Cqe.test(n[++r]))for(o+=n[r];Wfe.test(n[++r]);)o+=n[r];else if(n[r]==='"'){let a=r;for(;r<n.length;){if(n[++r]==='"'){r++,a=0;break}n[r]==="\\"?o+=n[++r]:o+=n[r]}if(a)throw new TypeError(`Unterminated quote at ${a}: ${RB}`)}if(!o)throw new TypeError(`Missing parameter name at ${r}: ${RB}`);return o}for(;r<n.length;){const o=n[r],a=ZEn[o];if(a)yield{type:a,index:r++,value:o};else if(o==="\\")yield{type:"ESCAPED",index:r++,value:n[r++]};else if(o===":"){const s=i();yield{type:"PARAM",index:r,value:s}}else if(o==="*"){const s=i();yield{type:"WILDCARD",index:r,value:s}}else yield{type:"CHAR",index:r,value:n[r++]}}return{type:"END",index:r,value:""}}class t1n{constructor(n){this.tokens=n}peek(){if(!this._peek){const n=this.tokens.next();this._peek=n.value}return this._peek}tryConsume(n){const r=this.peek();if(r.type===n)return this._peek=void 0,r.value}consume(n){const r=this.tryConsume(n);if(r!==void 0)return r;const{type:i,index:o}=this.peek();throw new TypeError(`Unexpected ${i} at ${o}, expected ${n}: ${RB}`)}text(){let n="",r;for(;r=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)n+=r;return n}}class pH{constructor(n){this.tokens=n}}sS.TokenData=pH;function Yfe(e,n={}){const{encodePath:r=Gfe}=n,i=new t1n(e1n(e));function o(s){const l=[];for(;;){const c=i.text();c&&l.push({type:"text",value:r(c)});const u=i.tryConsume("PARAM");if(u){l.push({type:"param",name:u});continue}const d=i.tryConsume("WILDCARD");if(d){l.push({type:"wildcard",name:d});continue}if(i.tryConsume("{")){l.push({type:"group",tokens:o("}")});continue}return i.consume(s),l}}const a=o("END");return new pH(a)}function n1n(e,n={}){const{encode:r=encodeURIComponent,delimiter:i=Vfe}=n,o=e instanceof pH?e:Yfe(e,n),a=wqe(o.tokens,i,r);return function(l={}){const[c,...u]=a(l);if(u.length)throw new TypeError(`Missing parameters: ${u.join(", ")}`);return c}}function wqe(e,n,r){const i=e.map(o=>r1n(o,n,r));return o=>{const a=[""];for(const s of i){const[l,...c]=s(o);a[0]+=l,a.push(...c)}return a}}function r1n(e,n,r){if(e.type==="text")return()=>[e.value];if(e.type==="group"){const o=wqe(e.tokens,n,r);return a=>{const[s,...l]=o(a);return l.length?[""]:[s]}}const i=r||Gfe;return e.type==="wildcard"&&r!==!1?o=>{const a=o[e.name];if(a==null)return["",e.name];if(!Array.isArray(a)||a.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[a.map((s,l)=>{if(typeof s!="string")throw new TypeError(`Expected "${e.name}/${l}" to be a string`);return i(s)}).join(n)]}:o=>{const a=o[e.name];if(a==null)return["",e.name];if(typeof a!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[i(a)]}}function i1n(e,n={}){const{decode:r=decodeURIComponent,delimiter:i=Vfe}=n,{regexp:o,keys:a}=xqe(e,n),s=a.map(l=>r===!1?Gfe:l.type==="param"?r:c=>c.split(i).map(r));return function(c){const u=o.exec(c);if(!u)return!1;const d=u[0],f=Object.create(null);for(let p=1;p<u.length;p++){if(u[p]===void 0)continue;const h=a[p-1],g=s[p-1];f[h.name]=g(u[p])}return{path:d,params:f}}}function xqe(e,n={}){const{delimiter:r=Vfe,end:i=!0,sensitive:o=!1,trailing:a=!0}=n,s=[],l=[],c=o?"":"i",d=(Array.isArray(e)?e:[e]).map(h=>h instanceof pH?h:Yfe(h,n));for(const{tokens:h}of d)for(const g of C6(h,0,[])){const v=o1n(g,r,s);l.push(v)}let f=`^(?:${l.join("|")})`;return a&&(f+=`(?:${Kg(r)}$)?`),f+=i?"$":`(?=${Kg(r)}|$)`,{regexp:new RegExp(f,c),keys:s}}function*C6(e,n,r){if(n===e.length)return yield r;const i=e[n];if(i.type==="group"){const o=r.slice();for(const a of C6(i.tokens,0,o))yield*C6(e,n+1,a)}else r.push(i);yield*C6(e,n+1,r)}function o1n(e,n,r){let i="",o="",a=!0;for(let s=0;s<e.length;s++){const l=e[s];if(l.type==="text"){i+=Kg(l.value),o+=l.value,a||(a=l.value.includes(n));continue}if(l.type==="param"||l.type==="wildcard"){if(!a&&!o)throw new TypeError(`Missing text after "${l.name}": ${RB}`);l.type==="param"?i+=`(${a1n(n,a?"":o)}+)`:i+="([\\s\\S]+)",r.push(l),o="",a=!1;continue}}return i}function a1n(e,n){return n.length<2?e.length<2?`[^${Kg(e+n)}]`:`(?:(?!${Kg(e)})[^${Kg(n)}])`:e.length<2?`(?:(?!${Kg(n)})[^${Kg(e)}])`:`(?:(?!${Kg(n)}|${Kg(e)})[\\s\\S])`}function s1n(e){return e.tokens.map(function n(r,i,o){if(r.type==="text")return JEn(r.value);if(r.type==="group")return`{${r.tokens.map(n).join("")}}`;const s=l1n(r.name)&&c1n(o[i+1])?r.name:JSON.stringify(r.name);if(r.type==="param")return`:${s}`;if(r.type==="wildcard")return`*${s}`;throw new TypeError(`Unexpected token: ${r}`)}).join("")}function l1n(e){const[n,...r]=e;return Cqe.test(n)?r.every(i=>Wfe.test(i)):!1}function c1n(e){return(e==null?void 0:e.type)!=="text"?!0:!Wfe.test(e.value[0])}var u1n=function(n,r,i){if(i){var o=Tt(i.keys()).find(function(s){try{return s.startsWith("http")?!1:poe(s)(n)}catch(l){return console.log("key",s,l),!1}});if(o)return i.get(o)}if(r){var a=Object.keys(r).find(function(s){try{return s!=null&&s.startsWith("http")?!1:poe(s)(n)}catch(l){return console.log("key",s,l),!1}});if(a)return r[a]}return{path:""}},kOe=function(n,r){var i=n.pathname,o=i===void 0?"/":i,a=n.breadcrumb,s=n.breadcrumbMap,l=n.formatMessage,c=n.title,u=n.menu,d=u===void 0?{locale:!1}:u,f=r?"":c||"",p=u1n(o,a,s);if(!p)return{title:f,id:"",pageName:f};var h=p.name;return d.locale!==!1&&p.locale&&l&&(h=l({id:p.locale||"",defaultMessage:p.name})),h?r||!c?{title:h,id:p.locale||"",pageName:h}:{title:"".concat(h," - ").concat(c),id:p.locale||"",pageName:h}:{title:f,id:p.locale||"",pageName:f}},uu={};function hoe(e){"@babel/helpers - typeof";return hoe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},hoe(e)}Object.defineProperty(uu,"__esModule",{value:!0});var aP=uu.pathToRegexp=uu.tokensToRegexp=uu.regexpToFunction=uu.match=uu.tokensToFunction=uu.compile=uu.parse=void 0;function d1n(e){for(var n=[],r=0;r<e.length;){var i=e[r];if(i==="*"||i==="+"||i==="?"){n.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(i==="\\"){n.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(i==="{"){n.push({type:"OPEN",index:r,value:e[r++]});continue}if(i==="}"){n.push({type:"CLOSE",index:r,value:e[r++]});continue}if(i===":"){for(var o="",a=r+1;a<e.length;){var s=e.charCodeAt(a);if(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===95){o+=e[a++];continue}break}if(!o)throw new TypeError("Missing parameter name at "+r);n.push({type:"NAME",index:r,value:o}),r=a;continue}if(i==="("){var l=1,c="",a=r+1;if(e[a]==="?")throw new TypeError('Pattern cannot start with "?" at '+a);for(;a<e.length;){if(e[a]==="\\"){c+=e[a++]+e[a++];continue}if(e[a]===")"){if(l--,l===0){a++;break}}else if(e[a]==="("&&(l++,e[a+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+a);c+=e[a++]}if(l)throw new TypeError("Unbalanced pattern at "+r);if(!c)throw new TypeError("Missing pattern at "+r);n.push({type:"PATTERN",index:r,value:c}),r=a;continue}n.push({type:"CHAR",index:r,value:e[r++]})}return n.push({type:"END",index:r,value:""}),n}function qfe(e,n){n===void 0&&(n={});for(var r=d1n(e),i=n.prefixes,o=i===void 0?"./":i,a="[^"+Qx(n.delimiter||"/#?")+"]+?",s=[],l=0,c=0,u="",d=function(x){if(c<r.length&&r[c].type===x)return r[c++].value},f=function(x){var T=d(x);if(T!==void 0)return T;var R=r[c],O=R.type,M=R.index;throw new TypeError("Unexpected "+O+" at "+M+", expected "+x)},p=function(){for(var x="",T;T=d("CHAR")||d("ESCAPED_CHAR");)x+=T;return x};c<r.length;){var h=d("CHAR"),g=d("NAME"),v=d("PATTERN");if(g||v){var y=h||"";o.indexOf(y)===-1&&(u+=y,y=""),u&&(s.push(u),u=""),s.push({name:g||l++,prefix:y,suffix:"",pattern:v||a,modifier:d("MODIFIER")||""});continue}var _=h||d("ESCAPED_CHAR");if(_){u+=_;continue}u&&(s.push(u),u="");var S=d("OPEN");if(S){var y=p(),b=d("NAME")||"",E=d("PATTERN")||"",w=p();f("CLOSE"),s.push({name:b||(E?l++:""),pattern:b&&!E?a:E,prefix:y,suffix:w,modifier:d("MODIFIER")||""});continue}f("END")}return s}uu.parse=qfe;function f1n(e,n){return Tqe(qfe(e,n),n)}uu.compile=f1n;function Tqe(e,n){n===void 0&&(n={});var r=Kfe(n),i=n.encode,o=i===void 0?function(c){return c}:i,a=n.validate,s=a===void 0?!0:a,l=e.map(function(c){if(hoe(c)==="object")return new RegExp("^(?:"+c.pattern+")$",r)});return function(c){for(var u="",d=0;d<e.length;d++){var f=e[d];if(typeof f=="string"){u+=f;continue}var p=c?c[f.name]:void 0,h=f.modifier==="?"||f.modifier==="*",g=f.modifier==="*"||f.modifier==="+";if(Array.isArray(p)){if(!g)throw new TypeError('Expected "'+f.name+'" to not repeat, but got an array');if(p.length===0){if(h)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var v=0;v<p.length;v++){var y=o(p[v],f);if(s&&!l[d].test(y))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but got "'+y+'"');u+=f.prefix+y+f.suffix}continue}if(typeof p=="string"||typeof p=="number"){var y=o(String(p),f);if(s&&!l[d].test(y))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but got "'+y+'"');u+=f.prefix+y+f.suffix;continue}if(!h){var _=g?"an array":"a string";throw new TypeError('Expected "'+f.name+'" to be '+_)}}return u}}uu.tokensToFunction=Tqe;function p1n(e,n){var r=[],i=Xfe(e,r,n);return Oqe(i,r,n)}uu.match=p1n;function Oqe(e,n,r){r===void 0&&(r={});var i=r.decode,o=i===void 0?function(a){return a}:i;return function(a){var s=e.exec(a);if(!s)return!1;for(var l=s[0],c=s.index,u=Object.create(null),d=function(h){if(s[h]===void 0)return"continue";var g=n[h-1];g.modifier==="*"||g.modifier==="+"?u[g.name]=s[h].split(g.prefix+g.suffix).map(function(v){return o(v,g)}):u[g.name]=o(s[h],g)},f=1;f<s.length;f++)d(f);return{path:l,index:c,params:u}}}uu.regexpToFunction=Oqe;function Qx(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Kfe(e){return e&&e.sensitive?"":"i"}function h1n(e,n){if(!n)return e;var r=e.source.match(/\((?!\?)/g);if(r)for(var i=0;i<r.length;i++)n.push({name:i,prefix:"",suffix:"",modifier:"",pattern:""});return e}function g1n(e,n,r){var i=e.map(function(o){return Xfe(o,n,r).source});return new RegExp("(?:"+i.join("|")+")",Kfe(r))}function m1n(e,n,r){return Rqe(qfe(e,r),n,r)}function Rqe(e,n,r){r===void 0&&(r={});for(var i=r.strict,o=i===void 0?!1:i,a=r.start,s=a===void 0?!0:a,l=r.end,c=l===void 0?!0:l,u=r.encode,d=u===void 0?function(C){return C}:u,f="["+Qx(r.endsWith||"")+"]|$",p="["+Qx(r.delimiter||"/#?")+"]",h=s?"^":"",g=0,v=e;g<v.length;g++){var y=v[g];if(typeof y=="string")h+=Qx(d(y));else{var _=Qx(d(y.prefix)),S=Qx(d(y.suffix));if(y.pattern)if(n&&n.push(y),_||S)if(y.modifier==="+"||y.modifier==="*"){var b=y.modifier==="*"?"?":"";h+="(?:"+_+"((?:"+y.pattern+")(?:"+S+_+"(?:"+y.pattern+"))*)"+S+")"+b}else h+="(?:"+_+"("+y.pattern+")"+S+")"+y.modifier;else h+="("+y.pattern+")"+y.modifier;else h+="(?:"+_+S+")"+y.modifier}}if(c)o||(h+=p+"?"),h+=r.endsWith?"(?="+f+")":"$";else{var E=e[e.length-1],w=typeof E=="string"?p.indexOf(E[E.length-1])>-1:E===void 0;o||(h+="(?:"+p+"(?="+f+"))?"),w||(h+="(?="+p+"|"+f+")")}return new RegExp(h,Kfe(r))}uu.tokensToRegexp=Rqe;function Xfe(e,n,r){return e instanceof RegExp?h1n(e,n):Array.isArray(e)?g1n(e,n,r):m1n(e,n,r)}aP=uu.pathToRegexp=Xfe;function vm(e,n){return n>>>e|n<<32-e}function v1n(e,n,r){return e&n^~e&r}function y1n(e,n,r){return e&n^e&r^n&r}function _1n(e){return vm(2,e)^vm(13,e)^vm(22,e)}function b1n(e){return vm(6,e)^vm(11,e)^vm(25,e)}function S1n(e){return vm(7,e)^vm(18,e)^e>>>3}function E1n(e){return vm(17,e)^vm(19,e)^e>>>10}function C1n(e,n){return e[n&15]+=E1n(e[n+14&15])+e[n+9&15]+S1n(e[n+1&15])}var w1n=[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],sa,kc,gl,x1n="0123456789abcdef";function LOe(e,n){var r=(e&65535)+(n&65535),i=(e>>16)+(n>>16)+(r>>16);return i<<16|r&65535}function T1n(){sa=new Array(8),kc=new Array(2),gl=new Array(64),kc[0]=kc[1]=0,sa[0]=1779033703,sa[1]=3144134277,sa[2]=1013904242,sa[3]=2773480762,sa[4]=1359893119,sa[5]=2600822924,sa[6]=528734635,sa[7]=1541459225}function goe(){var e,n,r,i,o,a,s,l,c,u,d=new Array(16);e=sa[0],n=sa[1],r=sa[2],i=sa[3],o=sa[4],a=sa[5],s=sa[6],l=sa[7];for(var f=0;f<16;f++)d[f]=gl[(f<<2)+3]|gl[(f<<2)+2]<<8|gl[(f<<2)+1]<<16|gl[f<<2]<<24;for(var p=0;p<64;p++)c=l+b1n(o)+v1n(o,a,s)+w1n[p],p<16?c+=d[p]:c+=C1n(d,p),u=_1n(e)+y1n(e,n,r),l=s,s=a,a=o,o=LOe(i,c),i=r,r=n,n=e,e=LOe(c,u);sa[0]+=e,sa[1]+=n,sa[2]+=r,sa[3]+=i,sa[4]+=o,sa[5]+=a,sa[6]+=s,sa[7]+=l}function O1n(e,n){var r,i,o=0;i=kc[0]>>3&63;var a=n&63;for((kc[0]+=n<<3)<n<<3&&kc[1]++,kc[1]+=n>>29,r=0;r+63<n;r+=64){for(var s=i;s<64;s++)gl[s]=e.charCodeAt(o++);goe(),i=0}for(var l=0;l<a;l++)gl[l]=e.charCodeAt(o++)}function R1n(){var e=kc[0]>>3&63;if(gl[e++]=128,e<=56)for(var n=e;n<56;n++)gl[n]=0;else{for(var r=e;r<64;r++)gl[r]=0;goe();for(var i=0;i<56;i++)gl[i]=0}gl[56]=kc[1]>>>24&255,gl[57]=kc[1]>>>16&255,gl[58]=kc[1]>>>8&255,gl[59]=kc[1]&255,gl[60]=kc[0]>>>24&255,gl[61]=kc[0]>>>16&255,gl[62]=kc[0]>>>8&255,gl[63]=kc[0]&255,goe()}function I1n(){for(var e=new String,n=0;n<8;n++)for(var r=28;r>=0;r-=4)e+=x1n.charAt(sa[n]>>>r&15);return e}function N1n(e){return T1n(),O1n(e,e.length),R1n(),I1n()}function moe(e){"@babel/helpers - typeof";return moe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},moe(e)}var M1n=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function P1n(e,n){return k1n(e)||D1n(e,n)||Qfe(e,n)||A1n()}function A1n(){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 D1n(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i=[],o=!0,a=!1,s,l;try{for(r=r.call(e);!(o=(s=r.next()).done)&&(i.push(s.value),!(n&&i.length===n));o=!0);}catch(c){a=!0,l=c}finally{try{!o&&r.return!=null&&r.return()}finally{if(a)throw l}}return i}}function k1n(e){if(Array.isArray(e))return e}function L1n(e,n){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Qfe(e))||n){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(u){throw u},f:o}}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 a=!0,s=!1,l;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return a=u.done,u},e:function(u){s=!0,l=u},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(s)throw l}}}}function $1n(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function F1n(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function B1n(e,n,r){return n&&F1n(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function j1n(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&kA(e,n)}function U1n(e){var n=Iqe();return function(){var i=LA(e),o;if(n){var a=LA(this).constructor;o=Reflect.construct(i,arguments,a)}else o=i.apply(this,arguments);return H1n(this,o)}}function H1n(e,n){if(n&&(moe(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return z1n(e)}function z1n(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function voe(e){var n=typeof Map=="function"?new Map:void 0;return voe=function(i){if(i===null||!V1n(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(i))return n.get(i);n.set(i,o)}function o(){return w6(i,arguments,LA(this).constructor)}return o.prototype=Object.create(i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),kA(o,i)},voe(e)}function w6(e,n,r){return Iqe()?w6=Reflect.construct.bind():w6=function(o,a,s){var l=[null];l.push.apply(l,a);var c=Function.bind.apply(o,l),u=new c;return s&&kA(u,s.prototype),u},w6.apply(null,arguments)}function Iqe(){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 V1n(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function kA(e,n){return kA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},kA(e,n)}function LA(e){return LA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},LA(e)}function $Oe(e){return Y1n(e)||W1n(e)||Qfe(e)||G1n()}function G1n(){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 Qfe(e,n){if(e){if(typeof e=="string")return yoe(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yoe(e,n)}}function W1n(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Y1n(e){if(Array.isArray(e))return yoe(e)}function yoe(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=e[r];return i}function q1n(e,n){if(e==null)return{};var r=K1n(e,n),i,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)i=a[o],!(n.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function K1n(e,n){if(e==null)return{};var r={},i=Object.keys(e),o,a;for(a=0;a<i.length;a++)o=i[a],!(n.indexOf(o)>=0)&&(r[o]=e[o]);return r}function FOe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function ml(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?FOe(Object(r),!0).forEach(function(i){X1n(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FOe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function X1n(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var uf="routes";function eL(e){return e.split("?")[0].split("#")[0]}var Zfe=function(n){if(!n.startsWith("http"))return!1;try{var r=new URL(n);return!!r}catch{return!1}},Q1n=function(n){var r=n.path;if(!r||r==="/")try{return"/".concat(N1n(JSON.stringify(n)))}catch{}return r&&eL(r)},Z1n=function(n,r){var i=n.name,o=n.locale;return"locale"in n&&o===!1||!i?!1:n.locale||"".concat(r,".").concat(i)},Nqe=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return n.endsWith("/*")?n.replace("/*","/"):(n||r).startsWith("/")||Zfe(n)?n:"/".concat(r,"/").concat(n).replace(/\/\//g,"/").replace(/\/\//g,"/")},J1n=function(n,r){var i=n.menu,o=i===void 0?{}:i,a=n.indexRoute,s=n.path,l=s===void 0?"":s,c=n.children||[],u=o.name,d=u===void 0?n.name:u,f=o.icon,p=f===void 0?n.icon:f,h=o.hideChildren,g=h===void 0?n.hideChildren:h,v=o.flatMenu,y=v===void 0?n.flatMenu:v,_=a&&Object.keys(a).join(",")!=="redirect"?[ml({path:l,menu:o},a)].concat(c||[]):c,S=ml({},n);if(d&&(S.name=d),p&&(S.icon=p),_&&_.length){if(g)return delete S.children,S;var b=Jfe(ml(ml({},r),{},{data:_}),n);if(y)return b;delete S[uf]}return S},D1=function(n){return Array.isArray(n)&&n.length>0};function Jfe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},r=e.data,i=e.formatMessage,o=e.parentName,a=e.locale;return!r||!Array.isArray(r)?[]:r.filter(function(s){return s?D1(s.children)||s.path||s.originPath||s.layout?!0:(s.redirect||s.unaccessible,!1):!1}).filter(function(s){var l,c;return!(s==null||(l=s.menu)===null||l===void 0)&&l.name||s!=null&&s.flatMenu||!(s==null||(c=s.menu)===null||c===void 0)&&c.flatMenu?!0:s.menu!==!1}).map(function(s){var l=ml(ml({},s),{},{path:s.path||s.originPath});return!l.children&&l[uf]&&(l.children=l[uf],delete l[uf]),l.unaccessible&&delete l.name,l.path==="*"&&(l.path="."),l.path==="/*"&&(l.path="."),!l.path&&l.originPath&&(l.path=l.originPath),l}).map(function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},l=s.children||s[uf]||[],c=Nqe(s.path,n?n.path:"/"),u=s.name,d=Z1n(s,o||"menu"),f=d!==!1&&a!==!1&&i&&d?i({id:d,defaultMessage:u}):u,p=n.pro_layout_parentKeys,h=p===void 0?[]:p;n.children,n.icon,n.flatMenu,n.indexRoute,n.routes;var g=q1n(n,M1n),v=new Set([].concat($Oe(h),$Oe(s.parentKeys||[])));n.key&&v.add(n.key);var y=ml(ml(ml({},g),{},{menu:void 0},s),{},{path:c,locale:d,key:s.key||Q1n(ml(ml({},s),{},{path:c})),pro_layout_parentKeys:Array.from(v).filter(function(S){return S&&S!=="/"})});if(f?y.name=f:delete y.name,y.menu===void 0&&delete y.menu,D1(l)){var _=Jfe(ml(ml({},e),{},{data:l,parentName:d||""}),y);D1(_)&&(y.children=_)}return J1n(y,e)}).flat(1)}var eCn=function e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return n.filter(function(r){return r&&(r.name||D1(r.children))&&!r.hideInMenu&&!r.redirect}).map(function(r){var i=ml({},r),o=i.children||r[uf]||[];if(delete i[uf],D1(o)&&!i.hideChildrenInMenu&&o.some(function(s){return s&&!!s.name})){var a=e(o);if(a.length)return ml(ml({},i),{},{children:a})}return ml({},r)}).filter(function(r){return r})},tCn=function(e){j1n(r,e);var n=U1n(r);function r(){return $1n(this,r),n.apply(this,arguments)}return B1n(r,[{key:"get",value:function(o){var a;try{var s=L1n(this.entries()),l;try{for(s.s();!(l=s.n()).done;){var c=P1n(l.value,2),u=c[0],d=c[1],f=eL(u);if(!Zfe(u)&&aP(f,[]).test(o)){a=d;break}}}catch(p){s.e(p)}finally{s.f()}}catch{a=void 0}return a}}]),r}(voe(Map)),nCn=function(n){var r=new tCn,i=function o(a,s){a.forEach(function(l){var c=l.children||l[uf]||[];D1(c)&&o(c,l);var u=Nqe(l.path,s?s.path:"/");r.set(eL(u),l)})};return i(n),r},rCn=function e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return n.map(function(r){var i=r.children||r[uf];if(D1(i)){var o=e(i);if(o.length)return ml({},r)}var a=ml({},r);return delete a[uf],delete a.children,a}).filter(function(r){return r})},iCn=function(n,r,i,o){var a=Jfe({data:n,formatMessage:i,locale:r}),s=o?rCn(a):eCn(a),l=nCn(a);return{breadcrumb:l,menuData:s}};function BOe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function _M(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?BOe(Object(r),!0).forEach(function(i){oCn(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BOe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function oCn(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var aCn=function e(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r={};return n.forEach(function(i){var o=_M({},i);if(!(!o||!o.key)){!o.children&&o[uf]&&(o.children=o[uf],delete o[uf]);var a=o.children||[];r[eL(o.path||o.key||"/")]=_M({},o),r[o.key||o.path||"/"]=_M({},o),a&&(r=_M(_M({},r),e(a)))}}),r},sCn=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return n.filter(function(o){if(o==="/"&&r==="/")return!0;if(o!=="/"&&o!=="/*"&&o&&!Zfe(o)){var a=eL(o);try{if(i&&aP("".concat(a)).test(r)||aP("".concat(a),[]).test(r)||aP("".concat(a,"/(.*)")).test(r))return!0}catch{}}return!1}).sort(function(o,a){return o===r?10:a===r?-10:o.substr(1).split("/").length-a.substr(1).split("/").length})},lCn=function(n,r,i,o){var a=aCn(r),s=Object.keys(a),l=sCn(s,n||"/",o);return!l||l.length<1?[]:l.map(function(c){var u=a[c]||{pro_layout_parentKeys:"",key:""},d=new Map,f=(u.pro_layout_parentKeys||[]).map(function(p){return d.has(p)?null:(d.set(p,!0),a[p])}).filter(function(p){return p});return u.key&&f.push(u),f}).flat(1)},cCn=function(n){var r=m.useContext(Wh),i=r.hashId,o=n.style,a=n.prefixCls,s=n.children,l=n.hasPageContainer,c=l===void 0?0:l,u=Ce("".concat(a,"-content"),i,fe(fe({},"".concat(a,"-has-header"),n.hasHeader),"".concat(a,"-content-has-page-container"),c>0)),d=n.ErrorBoundary||BZt;return n.ErrorBoundary===!1?N.jsx(bo.Content,{className:u,style:o,children:s}):N.jsx(d,{children:N.jsx(bo.Content,{className:u,style:o,children:s})})},uCn=function(){return N.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[N.jsxs("defs",{children:[N.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[N.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),N.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),N.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[N.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),N.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),N.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),N.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[N.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),N.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),N.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),N.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[N.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),N.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),N.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),N.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:N.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:N.jsx("g",{transform:"translate(20.000000, 20.000000)",children:N.jsxs("g",{children:[N.jsxs("g",{fillRule:"nonzero",children:[N.jsxs("g",{children:[N.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)"}),N.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)"})]}),N.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)"})]}),N.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},jOe=new kr("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),dCn=function(n){var r,i,o,a,s,l,c,u,d,f,p,h;return fe({},"".concat(n.proComponentsCls,"-layout"),fe(fe(fe({},"".concat(n.antCls,"-layout-sider").concat(n.componentCls),{background:((r=n.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorMenuBackground)||"transparent"}),n.componentCls,fe(fe(fe(fe(fe(fe(fe(fe(fe({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(n.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(i=n.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.paddingInlineLayoutMenu,paddingBlock:(o=n.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(n.colorSplit),marginInlineEnd:-1}),"".concat(n.antCls,"-menu"),fe(fe({},"".concat(n.antCls,"-menu-item-group-title"),{fontSize:n.fontSizeSM,paddingBottom:4}),"".concat(n.antCls,"-menu-item:not(").concat(n.antCls,"-menu-item-selected):hover"),{color:(a=n.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(s=n.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((l=n.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.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:(c=n.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenuTitle,animationName:jOe,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":fe({flexDirection:"column-reverse",margin:0,padding:12},"".concat(n.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:(u=n.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(d=n.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:n.borderRadius,"&:hover":{background:n.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:n.marginXS,borderRadius:n.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:n.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(n.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:(f=n.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:n.fontSize,animationName:jOe,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(n.componentCls).concat(n.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((p=n.layout)===null||p===void 0||(p=p.header)===null||p===void 0?void 0:p.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((h=n.layout)===null||h===void 0||(h=h.header)===null||h===void 0?void 0:h.heightLayoutHeader)||56,"px")}}))};function fCn(e,n){var r=n.proLayoutCollapsedWidth;return ia("ProLayoutSiderMenu",function(i){var o=ee(ee({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return[dCn(o)]})}var UOe=function(n){var r,i=n.isMobile,o=n.siderWidth,a=n.collapsed,s=n.onCollapse,l=n.style,c=n.className,u=n.hide,d=n.prefixCls,f=n.getContainer,p=m.useContext(Wh),h=p.token;m.useEffect(function(){i===!0&&(s==null||s(!0))},[i]);var g=Wr(n,["className","style"]),v=V.useContext(or.ConfigContext),y=v.direction,_=fCn("".concat(d,"-sider"),{proLayoutCollapsedWidth:64}),S=_.wrapSSR,b=_.hashId,E=Ce("".concat(d,"-sider"),c,b);if(u)return null;var w=LU(!a,function(){return s==null?void 0:s(!0)});return S(i?N.jsx(Ade,ee(ee({placement:y==="rtl"?"right":"left",className:Ce("".concat(d,"-drawer-sider"),c)},w),{},{style:ee({padding:0,height:"100vh"},l),onClose:function(){s==null||s(!0)},maskClosable:!0,closable:!1,getContainer:f||!1,width:o,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(r=h.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorMenuBackground}},children:N.jsx(POe,ee(ee({},g),{},{isMobile:!0,className:E,collapsed:i?!1:a,splitMenus:!1,originCollapsed:a}))})):N.jsx(POe,ee(ee({className:E,originCollapsed:a},g),{},{style:l})))},pCn=function(){var n;return typeof process>"u"?Ny:((n=process)===null||n===void 0||(n=n.env)===null||n===void 0?void 0:n.ANTD_VERSION)||Ny},hCn=function(n){var r,i,o,a,s,l,c,u,d,f,p,h,g,v,y,_,S,b,E,w,C,x,T,R,O,M,P,k,$,U,z,D;return(r=pCn())!==null&&r!==void 0&&r.startsWith("5")?{}:fe(fe(fe({},n.componentCls,fe(fe({width:"100%",height:"100%"},"".concat(n.proComponentsCls,"-base-menu"),(C={color:(i=n.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu},fe(fe(fe(fe(fe(fe(fe(fe(fe(fe(C,"".concat(n.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(o=n.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenu}),"& ".concat(n.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(n.antCls,"-menu-submenu-expand-icon, ").concat(n.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(n.antCls,"-menu"),fe(fe({color:(a=n.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu},"".concat(n.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(n.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(n.antCls,"-menu-inline"),fe({},"".concat(n.antCls,"-menu-selected::after,").concat(n.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(n.antCls,"-menu-sub ").concat(n.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(n.antCls,`-menu-item:active,
`).concat(n.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),"&".concat(n.antCls,"-menu-light"),fe({},"".concat(n.antCls,`-menu-item:hover,
`).concat(n.antCls,`-menu-item-active,
`).concat(n.antCls,`-menu-submenu-active,
`).concat(n.antCls,"-menu-submenu-title:hover"),fe({color:(s=n.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorTextMenuActive,borderRadius:n.borderRadius},"".concat(n.antCls,"-menu-submenu-arrow"),{color:(l=n.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorTextMenuActive}))),"&".concat(n.antCls,"-menu:not(").concat(n.antCls,"-menu-horizontal)"),fe(fe({},"".concat(n.antCls,"-menu-item-selected"),{backgroundColor:(c=n.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorBgMenuItemSelected,borderRadius:n.borderRadius}),"".concat(n.antCls,`-menu-item:hover,
`).concat(n.antCls,`-menu-item-active,
`).concat(n.antCls,"-menu-submenu-title:hover"),fe({color:(u=n.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenuActive,borderRadius:n.borderRadius,backgroundColor:"".concat((d=n.layout)===null||d===void 0||(d=d.header)===null||d===void 0?void 0:d.colorBgMenuItemHover," !important")},"".concat(n.antCls,"-menu-submenu-arrow"),{color:(f=n.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuActive}))),"".concat(n.antCls,"-menu-item-selected"),{color:(p=n.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuSelected}),fe(fe(fe(fe(fe(C,"".concat(n.antCls,"-menu-submenu-selected"),{color:(h=n.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuSelected}),"&".concat(n.antCls,"-menu:not(").concat(n.antCls,"-menu-inline) ").concat(n.antCls,"-menu-submenu-open"),{color:(g=n.layout)===null||g===void 0||(g=g.sider)===null||g===void 0?void 0:g.colorTextMenuSelected}),"&".concat(n.antCls,"-menu-vertical"),fe({},"".concat(n.antCls,"-menu-submenu-selected"),{borderRadius:n.borderRadius,color:(v=n.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorTextMenuSelected})),"".concat(n.antCls,"-menu-submenu:hover > ").concat(n.antCls,"-menu-submenu-title > ").concat(n.antCls,"-menu-submenu-arrow"),{color:(y=n.layout)===null||y===void 0||(y=y.sider)===null||y===void 0?void 0:y.colorTextMenuActive}),"&".concat(n.antCls,"-menu-horizontal"),fe(fe(fe(fe({},"".concat(n.antCls,`-menu-item:hover,
`).concat(n.antCls,`-menu-submenu:hover,
`).concat(n.antCls,`-menu-item-active,
`).concat(n.antCls,"-menu-submenu-active"),{borderRadius:4,transition:"none",color:(_=n.layout)===null||_===void 0||(_=_.header)===null||_===void 0?void 0:_.colorTextMenuActive,backgroundColor:"".concat((S=n.layout)===null||S===void 0||(S=S.header)===null||S===void 0?void 0:S.colorBgMenuItemHover," !important")}),"".concat(n.antCls,`-menu-item-open,
`).concat(n.antCls,`-menu-submenu-open,
`).concat(n.antCls,`-menu-item-selected,
`).concat(n.antCls,"-menu-submenu-selected"),fe({backgroundColor:(b=n.layout)===null||b===void 0||(b=b.header)===null||b===void 0?void 0:b.colorBgMenuItemSelected,borderRadius:n.borderRadius,transition:"none",color:"".concat((E=n.layout)===null||E===void 0||(E=E.header)===null||E===void 0?void 0:E.colorTextMenuSelected," !important")},"".concat(n.antCls,"-menu-submenu-arrow"),{color:"".concat((w=n.layout)===null||w===void 0||(w=w.header)===null||w===void 0?void 0:w.colorTextMenuSelected," !important")})),"> ".concat(n.antCls,"-menu-item, > ").concat(n.antCls,"-menu-submenu"),{paddingInline:16,marginInline:4}),"> ".concat(n.antCls,"-menu-item::after, > ").concat(n.antCls,"-menu-submenu::after"),{display:"none"})))),"".concat(n.proComponentsCls,"-top-nav-header-base-menu"),fe(fe({},"&".concat(n.antCls,"-menu"),fe({color:(x=n.layout)===null||x===void 0||(x=x.header)===null||x===void 0?void 0:x.colorTextMenu},"".concat(n.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(n.antCls,"-menu-light"),fe(fe({},"".concat(n.antCls,`-menu-item:hover,
`).concat(n.antCls,`-menu-item-active,
`).concat(n.antCls,`-menu-submenu-active,
`).concat(n.antCls,"-menu-submenu-title:hover"),fe({color:(T=n.layout)===null||T===void 0||(T=T.header)===null||T===void 0?void 0:T.colorTextMenuActive,borderRadius:n.borderRadius,transition:"none",backgroundColor:(R=n.layout)===null||R===void 0||(R=R.header)===null||R===void 0?void 0:R.colorBgMenuItemSelected},"".concat(n.antCls,"-menu-submenu-arrow"),{color:(O=n.layout)===null||O===void 0||(O=O.header)===null||O===void 0?void 0:O.colorTextMenuActive})),"".concat(n.antCls,"-menu-item-selected"),{color:(M=n.layout)===null||M===void 0||(M=M.header)===null||M===void 0?void 0:M.colorTextMenuSelected,borderRadius:n.borderRadius,backgroundColor:(P=n.layout)===null||P===void 0||(P=P.header)===null||P===void 0?void 0:P.colorBgMenuItemSelected})))),"".concat(n.antCls,"-menu-sub").concat(n.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(n.antCls,"-menu-submenu-popup"),fe(fe(fe(fe({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(n.antCls,"-menu"),fe({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(n.antCls,`-menu-item:active,
`).concat(n.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),"".concat(n.antCls,"-menu-item-selected"),{color:(k=n.layout)===null||k===void 0||(k=k.sider)===null||k===void 0?void 0:k.colorTextMenuSelected}),"".concat(n.antCls,"-menu-submenu-selected"),{color:($=n.layout)===null||$===void 0||($=$.sider)===null||$===void 0?void 0:$.colorTextMenuSelected}),"".concat(n.antCls,"-menu:not(").concat(n.antCls,"-menu-horizontal)"),fe(fe({},"".concat(n.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:n.borderRadius,color:(U=n.layout)===null||U===void 0||(U=U.sider)===null||U===void 0?void 0:U.colorTextMenuSelected}),"".concat(n.antCls,`-menu-item:hover,
`).concat(n.antCls,`-menu-item-active,
`).concat(n.antCls,"-menu-submenu-title:hover"),fe({color:(z=n.layout)===null||z===void 0||(z=z.sider)===null||z===void 0?void 0:z.colorTextMenuActive,borderRadius:n.borderRadius},"".concat(n.antCls,"-menu-submenu-arrow"),{color:(D=n.layout)===null||D===void 0||(D=D.sider)===null||D===void 0?void 0:D.colorTextMenuActive}))))},gCn=function(n){var r,i,o,a;return fe(fe({},"".concat(n.antCls,"-layout"),{backgroundColor:"transparent !important"}),n.componentCls,fe(fe(fe(fe({},"& ".concat(n.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),"".concat(n.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((r=n.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(i=n.layout)===null||i===void 0||(i=i.pageContainer)===null||i===void 0?void 0:i.paddingBlockPageContainerContent,paddingInline:(o=n.layout)===null||o===void 0||(o=o.pageContainer)===null||o===void 0?void 0:o.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),"".concat(n.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),"".concat(n.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(a=n.layout)===null||a===void 0?void 0:a.bgLayout}))};function mCn(e){return ia("ProLayout",function(n){var r=ee(ee({},n),{},{componentCls:".".concat(e)});return[gCn(r),hCn(r)]})}function vCn(e){if(!e||e==="/")return["/"];var n=e.split("/").filter(function(r){return r});return n.map(function(r,i){return"/".concat(n.slice(0,i+1).join("/"))})}var yCn=function(){var n;return typeof process>"u"?Ny:((n=process)===null||n===void 0||(n=n.env)===null||n===void 0?void 0:n.ANTD_VERSION)||Ny},_Cn=function(n,r,i){var o=n,a=o.breadcrumbName,s=o.title,l=o.path,c=i.findIndex(function(u){return u.linkPath===n.path})===i.length-1;return c?N.jsx("span",{children:s||a}):N.jsx("span",{onClick:l?function(){return location.href=l}:void 0,children:s||a})},bCn=function(n,r){var i=r.formatMessage,o=r.menu;return n.locale&&i&&(o==null?void 0:o.locale)!==!1?i({id:n.locale,defaultMessage:n.name}):n.name},SCn=function(n,r){var i=n.get(r);if(!i){var o=Array.from(n.keys())||[],a=o.find(function(s){try{return s!=null&&s.startsWith("http")?!1:poe(s.replace("?",""))(r)}catch(l){return console.log("path",s,l),!1}});a&&(i=n.get(a))}return i||{path:""}},ECn=function(n){var r=n.location,i=n.breadcrumbMap;return{location:r,breadcrumbMap:i}},CCn=function(n,r,i){var o=vCn(n==null?void 0:n.pathname),a=o.map(function(s){var l=SCn(r,s),c=bCn(l,i),u=l.hideInBreadcrumb;return c&&!u?{linkPath:s,breadcrumbName:c,title:c,component:l.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(s){return s&&s.linkPath});return a},wCn=function(n){var r=ECn(n),i=r.location,o=r.breadcrumbMap;return i&&i.pathname&&o?CCn(i,o,n):[]},xCn=function(n,r){var i=n.breadcrumbRender,o=n.itemRender,a=r.breadcrumbProps||{},s=a.minLength,l=s===void 0?2:s,c=wCn(n),u=function(p){for(var h=o||_Cn,g=arguments.length,v=new Array(g>1?g-1:0),y=1;y<g;y++)v[y-1]=arguments[y];return h==null?void 0:h.apply(void 0,[ee(ee({},p),{},{path:p.linkPath||p.path})].concat(v))},d=c;return i&&(d=i(d||[])||void 0),(d&&d.length<l||i===!1)&&(d=void 0),Pk(yCn(),"5.3.0")>-1?{items:d,itemRender:u}:{routes:d,itemRender:u}};function TCn(e){return Tt(e).reduce(function(n,r){var i=ke(r,2),o=i[0],a=i[1];return n[o]=a,n},{})}var OCn=function e(n,r,i,o){var a=iCn(n,(r==null?void 0:r.locale)||!1,i,!0),s=a.menuData,l=a.breadcrumb;return o?e(o(s),r,i,void 0):{breadcrumb:TCn(l),breadcrumbMap:l,menuData:s}},RCn=function(n){var r=m.useState({}),i=ke(r,2),o=i[0],a=i[1];return m.useEffect(function(){a(pp({layout:cn(n.layout)!=="object"?n.layout:void 0,navTheme:n.navTheme,menuRender:n.menuRender,footerRender:n.footerRender,menuHeaderRender:n.menuHeaderRender,headerRender:n.headerRender,fixSiderbar:n.fixSiderbar}))},[n.layout,n.navTheme,n.menuRender,n.footerRender,n.menuHeaderRender,n.headerRender,n.fixSiderbar]),o},ICn=["id","defaultMessage"],NCn=["fixSiderbar","navTheme","layout"],HOe=0,MCn=function(n,r){var i;return n.headerRender===!1||n.pure?null:N.jsx(BEn,ee(ee({matchMenuKeys:r},n),{},{stylish:(i=n.stylish)===null||i===void 0?void 0:i.header}))},PCn=function(n){return n.footerRender===!1||n.pure?null:n.footerRender?n.footerRender(ee({},n),N.jsx(rEn,{})):null},ACn=function(n,r){var i,o=n.layout,a=n.isMobile,s=n.selectedKeys,l=n.openKeys,c=n.splitMenus,u=n.suppressSiderWhenMenuEmpty,d=n.menuRender;if(n.menuRender===!1||n.pure)return null;var f=n.menuData;if(c&&(l!==!1||o==="mix")&&!a){var p=s||r,h=ke(p,1),g=h[0];if(g){var v;f=((v=n.menuData)===null||v===void 0||(v=v.find(function(b){return b.key===g}))===null||v===void 0?void 0:v.children)||[]}else f=[]}var y=fH(f||[]);if(y&&(y==null?void 0:y.length)<1&&(c||u))return null;if(o==="top"&&!a){var _;return N.jsx(UOe,ee(ee({matchMenuKeys:r},n),{},{hide:!0,stylish:(_=n.stylish)===null||_===void 0?void 0:_.sider}))}var S=N.jsx(UOe,ee(ee({matchMenuKeys:r},n),{},{menuData:y,stylish:(i=n.stylish)===null||i===void 0?void 0:i.sider}));return d?d(n,S):S},DCn=function(n,r){var i=r.pageTitleRender,o=kOe(n);if(i===!1)return{title:r.title||"",id:"",pageName:""};if(i){var a=i(n,o.title,o);if(typeof a=="string")return kOe(ee(ee({},o),{},{title:a}));qi(typeof a=="string","pro-layout: renderPageTitle return value should be a string")}return o},kCn=function(n,r,i){return n?r?64:i:0},LCn=function(n){var r,i,o,a,s,l,c,u,d,f,p,h,g,v,y=n||{},_=y.children,S=y.onCollapse,b=y.location,E=b===void 0?{pathname:"/"}:b,w=y.contentStyle,C=y.route,x=y.defaultCollapsed,T=y.style,R=y.siderWidth,O=y.menu,M=y.siderMenuType,P=y.isChildrenLayout,k=y.menuDataRender,$=y.actionRef,U=y.bgLayoutImgList,z=y.formatMessage,D=y.loading,B=m.useMemo(function(){return R||(n.layout==="mix"?215:256)},[n.layout,R]),Y=m.useContext(or.ConfigContext),q=(r=n.prefixCls)!==null&&r!==void 0?r:Y.getPrefixCls("pro"),K=dr(!1,{value:O==null?void 0:O.loading,onChange:O==null?void 0:O.onLoadingChange}),H=ke(K,2),G=H[0],Q=H[1],le=m.useState(function(){return HOe+=1,"pro-layout-".concat(HOe)}),Z=ke(le,1),j=Z[0],F=m.useCallback(function(Pt){var Qt=Pt.id,ln=Pt.defaultMessage,jt=Xt(Pt,ICn);if(z)return z(ee({id:Qt,defaultMessage:ln},jt));var Lt=QEn();return Lt[Qt]?Lt[Qt]:ln},[z]),te=ife([j,O==null?void 0:O.params],function(){var Pt=Ss(ri().mark(function Qt(ln){var jt,Lt,en,Ue;return ri().wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return Lt=ke(ln,2),en=Lt[1],Q(!0),Et.next=4,O==null||(jt=O.request)===null||jt===void 0?void 0:jt.call(O,en||{},(C==null?void 0:C.children)||(C==null?void 0:C.routes)||[]);case 4:return Ue=Et.sent,Q(!1),Et.abrupt("return",Ue);case 7:case"end":return Et.stop()}},Qt)}));return function(Qt){return Pt.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),oe=te.data,de=te.mutate,pe=te.isLoading;m.useEffect(function(){Q(pe)},[pe]);var me=rfe(),ve=me.cache;m.useEffect(function(){return function(){ve instanceof Map&&ve.delete(j)}},[]);var he=m.useMemo(function(){return OCn(oe||(C==null?void 0:C.children)||(C==null?void 0:C.routes)||[],O,F,k)},[F,O,k,oe,C==null?void 0:C.children,C==null?void 0:C.routes]),be=he||{},we=be.breadcrumb,De=be.breadcrumbMap,Ae=be.menuData,Ee=Ae===void 0?[]:Ae;$&&O!==null&&O!==void 0&&O.request&&($.current={reload:function(){de()}});var Re=m.useMemo(function(){return lCn(E.pathname||"/",Ee||[])},[E.pathname,Ee]),Te=m.useMemo(function(){return Array.from(new Set(Re.map(function(Pt){return Pt.key||Pt.path||""})))},[Re]),Oe=Re[Re.length-1]||{},Ne=RCn(Oe),je=ee(ee({},n),Ne),ne=je.fixSiderbar;je.navTheme;var J=je.layout,ae=Xt(je,NCn),Se=enn(),xe=m.useMemo(function(){return(Se==="sm"||Se==="xs")&&!n.disableMobile},[Se,n.disableMobile]),ue=J!=="top"&&!xe,Me=dr(function(){return x!==void 0?x:!!(xe||Se==="md")},{value:n.collapsed,onChange:S}),$e=ke(Me,2),ge=$e[0],Ve=$e[1],st=Wr(ee(ee(ee({prefixCls:q},n),{},{siderWidth:B},Ne),{},{formatMessage:F,breadcrumb:we,menu:ee(ee({},O),{},{type:M||(O==null?void 0:O.type),loading:G}),layout:J}),["className","style","breadcrumbRender"]),Je=DCn(ee(ee({pathname:E.pathname},st),{},{breadcrumbMap:De}),n),ot=xCn(ee(ee({},st),{},{breadcrumbRender:n.breadcrumbRender,breadcrumbMap:De}),n),Xe=ACn(ee(ee({},st),{},{menuData:Ee,onCollapse:Ve,isMobile:xe,collapsed:ge}),Te),Ze=MCn(ee(ee({},st),{},{children:null,hasSiderMenu:!!Xe,menuData:Ee,isMobile:xe,collapsed:ge,onCollapse:Ve}),Te),bt=PCn(ee({isMobile:xe,collapsed:ge},st)),at=m.useContext(SOe),pt=at.isChildrenLayout,Ct=P!==void 0?P:pt,It="".concat(q,"-layout"),Wt=mCn(It),Bt=Wt.wrapSSR,Vt=Wt.hashId,rn=Ce(n.className,Vt,"ant-design-pro",It,fe(fe(fe(fe(fe({},"screen-".concat(Se),Se),"".concat(It,"-top-menu"),J==="top"),"".concat(It,"-is-children"),Ct),"".concat(It,"-fix-siderbar"),ne),"".concat(It,"-").concat(J),J)),tt=kCn(!!ue,ge,B),it={position:"relative"};(Ct||w&&w.minHeight)&&(it.minHeight=0),m.useEffect(function(){var Pt;(Pt=n.onPageChange)===null||Pt===void 0||Pt.call(n,n.location)},[E.pathname,(i=E.pathname)===null||i===void 0?void 0:i.search]);var nt=m.useState(!1),vt=ke(nt,2),kt=vt[0],Dt=vt[1],Kt=m.useState(0),Ht=ke(Kt,2),tn=Ht[0],on=Ht[1];uJt(Je,n.title||!1);var sn=m.useContext(Wh),Jt=sn.token,En=m.useMemo(function(){return U&&U.length>0?U==null?void 0:U.map(function(Pt,Qt){return N.jsx("img",{src:Pt.src,style:ee({position:"absolute"},Pt)},Qt)}):null},[U]);return Bt(N.jsx(SOe.Provider,{value:ee(ee({},st),{},{breadcrumb:ot,menuData:Ee,isMobile:xe,collapsed:ge,hasPageContainer:tn,setHasPageContainer:on,isChildrenLayout:!0,title:Je.pageName,hasSiderMenu:!!Xe,hasHeader:!!Ze,siderWidth:tt,hasFooter:!!bt,hasFooterToolbar:kt,setHasFooterToolbar:Dt,pageTitleInfo:Je,matchMenus:Re,matchMenuKeys:Te,currentMenu:Oe}),children:n.pure?N.jsx(N.Fragment,{children:_}):N.jsxs("div",{className:rn,children:[En||(o=Jt.layout)!==null&&o!==void 0&&o.bgLayout?N.jsx("div",{className:Ce("".concat(It,"-bg-list"),Vt),children:En}):null,N.jsxs(bo,{style:ee({minHeight:"100%",flexDirection:Xe?"row":void 0},T),children:[N.jsx(or,{theme:{hashed:qT(),token:{controlHeightLG:((a=Jt.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.menuHeight)||(Jt==null?void 0:Jt.controlHeightLG)},components:{Menu:oWe({colorItemBg:((s=Jt.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuBackground)||"transparent",colorSubItemBg:((l=Jt.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorMenuBackground)||"transparent",radiusItem:Jt.borderRadius,colorItemBgSelected:((c=Jt.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorBgMenuItemSelected)||(Jt==null?void 0:Jt.colorBgTextHover),colorItemBgHover:((u=Jt.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorBgMenuItemHover)||(Jt==null?void 0:Jt.colorBgTextHover),colorItemBgActive:((d=Jt.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemActive)||(Jt==null?void 0:Jt.colorBgTextActive),colorItemBgSelectedHorizontal:((f=Jt.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemSelected)||(Jt==null?void 0:Jt.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((p=Jt.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenu)||(Jt==null?void 0:Jt.colorTextSecondary),colorItemTextHover:((h=Jt.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((g=Jt.layout)===null||g===void 0||(g=g.sider)===null||g===void 0?void 0:g.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:Jt==null?void 0:Jt.colorBgElevated,subMenuItemBg:Jt==null?void 0:Jt.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:Jt==null?void 0:Jt.colorBgElevated})}},children:Xe}),N.jsxs("div",{style:it,className:"".concat(It,"-container ").concat(Vt).trim(),children:[Ze,N.jsx(cCn,ee(ee({hasPageContainer:tn,isChildrenLayout:Ct},ae),{},{hasHeader:!!Ze,prefixCls:It,style:w,children:D?N.jsx(ZSn,{}):_})),bt,kt&&N.jsx("div",{className:"".concat(It,"-has-footer"),style:{height:64,marginBlockStart:(v=Jt.layout)===null||v===void 0||(v=v.pageContainer)===null||v===void 0?void 0:v.paddingBlockPageContainerContent}})]})]})]})}))},Mqe=function(n){var r=n.colorPrimary,i=n.navTheme!==void 0?{dark:n.navTheme==="realDark"}:{};return N.jsx(or,{theme:r?{token:{colorPrimary:r}}:void 0,children:N.jsx(kU,ee(ee({},i),{},{token:n.token,prefixCls:n.prefixCls,children:N.jsx(LCn,ee(ee({logo:N.jsx(uCn,{})},yqe),{},{location:afe()?window.location:void 0},n))}))})},$Cn=fWe(Object.keys,Object),FCn=Object.prototype,BCn=FCn.hasOwnProperty;function jCn(e){if(!ufe(e))return $Cn(e);var n=[];for(var r in Object(e))BCn.call(e,r)&&r!="constructor"&&n.push(r);return n}var _oe=fw(Eg,"DataView"),boe=fw(Eg,"Promise"),Soe=fw(Eg,"Set"),Eoe=fw(Eg,"WeakMap"),zOe="[object Map]",UCn="[object Object]",VOe="[object Promise]",GOe="[object Set]",WOe="[object WeakMap]",YOe="[object DataView]",HCn=dw(_oe),zCn=dw(IA),VCn=dw(boe),GCn=dw(Soe),WCn=dw(Eoe),vb=uw;(_oe&&vb(new _oe(new ArrayBuffer(1)))!=YOe||IA&&vb(new IA)!=zOe||boe&&vb(boe.resolve())!=VOe||Soe&&vb(new Soe)!=GOe||Eoe&&vb(new Eoe)!=WOe)&&(vb=function(e){var n=uw(e),r=n==UCn?e.constructor:void 0,i=r?dw(r):"";if(i)switch(i){case HCn:return YOe;case zCn:return zOe;case VCn:return VOe;case GCn:return GOe;case WCn:return WOe}return n});var YCn="__lodash_hash_undefined__";function qCn(e){return this.__data__.set(e,YCn),this}function KCn(e){return this.__data__.has(e)}function IB(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new s_;++n<r;)this.add(e[n])}IB.prototype.add=IB.prototype.push=qCn;IB.prototype.has=KCn;function XCn(e,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(e[r],r,e))return!0;return!1}function QCn(e,n){return e.has(n)}var ZCn=1,JCn=2;function Pqe(e,n,r,i,o,a){var s=r&ZCn,l=e.length,c=n.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(n);if(u&&d)return u==n&&d==e;var f=-1,p=!0,h=r&JCn?new IB:void 0;for(a.set(e,n),a.set(n,e);++f<l;){var g=e[f],v=n[f];if(i)var y=s?i(v,g,f,n,e,a):i(g,v,f,e,n,a);if(y!==void 0){if(y)continue;p=!1;break}if(h){if(!XCn(n,function(_,S){if(!QCn(h,S)&&(g===_||o(g,_,r,i,a)))return h.push(S)})){p=!1;break}}else if(!(g===v||o(g,v,r,i,a))){p=!1;break}}return a.delete(e),a.delete(n),p}function ewn(e){var n=-1,r=Array(e.size);return e.forEach(function(i,o){r[++n]=[o,i]}),r}function twn(e){var n=-1,r=Array(e.size);return e.forEach(function(i){r[++n]=i}),r}var nwn=1,rwn=2,iwn="[object Boolean]",own="[object Date]",awn="[object Error]",swn="[object Map]",lwn="[object Number]",cwn="[object RegExp]",uwn="[object Set]",dwn="[object String]",fwn="[object Symbol]",pwn="[object ArrayBuffer]",hwn="[object DataView]",qOe=I0?I0.prototype:void 0,Jq=qOe?qOe.valueOf:void 0;function gwn(e,n,r,i,o,a,s){switch(r){case hwn:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case pwn:return!(e.byteLength!=n.byteLength||!a(new dB(e),new dB(n)));case iwn:case own:case lwn:return Dk(+e,+n);case awn:return e.name==n.name&&e.message==n.message;case cwn:case dwn:return e==n+"";case swn:var l=ewn;case uwn:var c=i&nwn;if(l||(l=twn),e.size!=n.size&&!c)return!1;var u=s.get(e);if(u)return u==n;i|=rwn,s.set(e,n);var d=Pqe(l(e),l(n),i,o,a,s);return s.delete(e),d;case fwn:if(Jq)return Jq.call(e)==Jq.call(n)}return!1}function mwn(e,n){for(var r=-1,i=n.length,o=e.length;++r<i;)e[o+r]=n[r];return e}function vwn(e,n,r){var i=n(e);return ky(e)?i:mwn(i,r(e))}function ywn(e,n){for(var r=-1,i=e==null?0:e.length,o=0,a=[];++r<i;){var s=e[r];n(s,r,e)&&(a[o++]=s)}return a}function _wn(){return[]}var bwn=Object.prototype,Swn=bwn.propertyIsEnumerable,KOe=Object.getOwnPropertySymbols,Ewn=KOe?function(e){return e==null?[]:(e=Object(e),ywn(KOe(e),function(n){return Swn.call(e,n)}))}:_wn;function Cwn(e){return BU(e)?bWe(e):jCn(e)}function XOe(e){return vwn(e,Cwn,Ewn)}var wwn=1,xwn=Object.prototype,Twn=xwn.hasOwnProperty;function Own(e,n,r,i,o,a){var s=r&wwn,l=XOe(e),c=l.length,u=XOe(n),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var p=l[f];if(!(s?p in n:Twn.call(n,p)))return!1}var h=a.get(e),g=a.get(n);if(h&&g)return h==n&&g==e;var v=!0;a.set(e,n),a.set(n,e);for(var y=s;++f<c;){p=l[f];var _=e[p],S=n[p];if(i)var b=s?i(S,_,p,n,e,a):i(_,S,p,e,n,a);if(!(b===void 0?_===S||o(_,S,r,i,a):b)){v=!1;break}y||(y=p=="constructor")}if(v&&!y){var E=e.constructor,w=n.constructor;E!=w&&"constructor"in e&&"constructor"in n&&!(typeof E=="function"&&E instanceof E&&typeof w=="function"&&w instanceof w)&&(v=!1)}return a.delete(e),a.delete(n),v}var Rwn=1,QOe="[object Arguments]",ZOe="[object Array]",g4="[object Object]",Iwn=Object.prototype,JOe=Iwn.hasOwnProperty;function Nwn(e,n,r,i,o,a){var s=ky(e),l=ky(n),c=s?ZOe:vb(e),u=l?ZOe:vb(n);c=c==QOe?g4:c,u=u==QOe?g4:u;var d=c==g4,f=u==g4,p=c==u;if(p&&fB(e)){if(!fB(n))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new hy),s||dfe(e)?Pqe(e,n,r,i,o,a):gwn(e,n,c,r,i,o,a);if(!(r&Rwn)){var h=d&&JOe.call(e,"__wrapped__"),g=f&&JOe.call(n,"__wrapped__");if(h||g){var v=h?e.value():e,y=g?n.value():n;return a||(a=new hy),o(v,y,r,i,a)}}return p?(a||(a=new hy),Own(e,n,r,i,o,a)):!1}function Aqe(e,n,r,i,o){return e===n?!0:e==null||n==null||!N0(e)&&!N0(n)?e!==e&&n!==n:Nwn(e,n,r,i,Aqe,o)}function Dqe(e,n){return Aqe(e,n)}function kqe(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m.useMemo(()=>i=>{n.forEach(o=>o(i))},n)}const hH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function AI(e){const n=Object.prototype.toString.call(e);return n==="[object Window]"||n==="[object global]"}function epe(e){return"nodeType"in e}function Au(e){var n,r;return e?AI(e)?e:epe(e)&&(n=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?n:window:window}function tpe(e){const{Document:n}=Au(e);return e instanceof n}function tL(e){return AI(e)?!1:e instanceof Au(e).HTMLElement}function Lqe(e){return e instanceof Au(e).SVGElement}function DI(e){return e?AI(e)?e.document:epe(e)?tpe(e)?e:tL(e)||Lqe(e)?e.ownerDocument:document:document:document}const xf=hH?m.useLayoutEffect:m.useEffect;function gH(e){const n=m.useRef(e);return xf(()=>{n.current=e}),m.useCallback(function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n.current==null?void 0:n.current(...i)},[])}function Mwn(){const e=m.useRef(null),n=m.useCallback((i,o)=>{e.current=setInterval(i,o)},[]),r=m.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[n,r]}function $A(e,n){n===void 0&&(n=[e]);const r=m.useRef(e);return xf(()=>{r.current!==e&&(r.current=e)},n),r}function nL(e,n){const r=m.useRef();return m.useMemo(()=>{const i=e(r.current);return r.current=i,i},[...n])}function NB(e){const n=gH(e),r=m.useRef(null),i=m.useCallback(o=>{o!==r.current&&(n==null||n(o,r.current)),r.current=o},[]);return[r,i]}function MB(e){const n=m.useRef();return m.useEffect(()=>{n.current=e},[e]),n.current}let eK={};function kI(e,n){return m.useMemo(()=>{if(n)return n;const r=eK[e]==null?0:eK[e]+1;return eK[e]=r,e+"-"+r},[e,n])}function $qe(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)=>{const l=Object.entries(s);for(const[c,u]of l){const d=a[c];d!=null&&(a[c]=d+e*u)}return a},{...n})}}const KT=$qe(1),FA=$qe(-1);function Pwn(e){return"clientX"in e&&"clientY"in e}function rL(e){if(!e)return!1;const{KeyboardEvent:n}=Au(e.target);return n&&e instanceof n}function Awn(e){if(!e)return!1;const{TouchEvent:n}=Au(e.target);return n&&e instanceof n}function PB(e){if(Awn(e)){if(e.touches&&e.touches.length){const{clientX:n,clientY:r}=e.touches[0];return{x:n,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:n,clientY:r}=e.changedTouches[0];return{x:n,y:r}}}return Pwn(e)?{x:e.clientX,y:e.clientY}:null}const Np=Object.freeze({Translate:{toString(e){if(!e)return;const{x:n,y:r}=e;return"translate3d("+(n?Math.round(n):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:n,scaleY:r}=e;return"scaleX("+n+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[Np.Translate.toString(e),Np.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:n,duration:r,easing:i}=e;return n+" "+r+"ms "+i}}}),eRe="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Dwn(e){return e.matches(eRe)?e:e.querySelector(eRe)}const kwn={display:"none"};function Lwn(e){let{id:n,value:r}=e;return V.createElement("div",{id:n,style:kwn},r)}function $wn(e){let{id:n,announcement:r,ariaLiveType:i="assertive"}=e;const o={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 V.createElement("div",{id:n,style:o,role:"status","aria-live":i,"aria-atomic":!0},r)}function Fwn(){const[e,n]=m.useState("");return{announce:m.useCallback(i=>{i!=null&&n(i)},[]),announcement:e}}const Fqe=m.createContext(null);function Bwn(e){const n=m.useContext(Fqe);m.useEffect(()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(e)},[e,n])}function jwn(){const[e]=m.useState(()=>new Set),n=m.useCallback(i=>(e.add(i),()=>e.delete(i)),[e]);return[m.useCallback(i=>{let{type:o,event:a}=i;e.forEach(s=>{var l;return(l=s[o])==null?void 0:l.call(s,a)})},[e]),n]}const Uwn={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.
`},Hwn={onDragStart(e){let{active:n}=e;return"Picked up draggable item "+n.id+"."},onDragOver(e){let{active:n,over:r}=e;return r?"Draggable item "+n.id+" was moved over droppable area "+r.id+".":"Draggable item "+n.id+" is no longer over a droppable area."},onDragEnd(e){let{active:n,over:r}=e;return r?"Draggable item "+n.id+" was dropped over droppable area "+r.id:"Draggable item "+n.id+" was dropped."},onDragCancel(e){let{active:n}=e;return"Dragging was cancelled. Draggable item "+n.id+" was dropped."}};function zwn(e){let{announcements:n=Hwn,container:r,hiddenTextDescribedById:i,screenReaderInstructions:o=Uwn}=e;const{announce:a,announcement:s}=Fwn(),l=kI("DndLiveRegion"),[c,u]=m.useState(!1);if(m.useEffect(()=>{u(!0)},[]),Bwn(m.useMemo(()=>({onDragStart(f){let{active:p}=f;a(n.onDragStart({active:p}))},onDragMove(f){let{active:p,over:h}=f;n.onDragMove&&a(n.onDragMove({active:p,over:h}))},onDragOver(f){let{active:p,over:h}=f;a(n.onDragOver({active:p,over:h}))},onDragEnd(f){let{active:p,over:h}=f;a(n.onDragEnd({active:p,over:h}))},onDragCancel(f){let{active:p,over:h}=f;a(n.onDragCancel({active:p,over:h}))}}),[a,n])),!c)return null;const d=V.createElement(V.Fragment,null,V.createElement(Lwn,{id:i,value:o.draggable}),V.createElement($wn,{id:l,announcement:s}));return r?Us.createPortal(d,r):d}var yl;(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"})(yl||(yl={}));function AB(){}function x6(e,n){return m.useMemo(()=>({sensor:e,options:n??{}}),[e,n])}function Bqe(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return m.useMemo(()=>[...n].filter(i=>i!=null),[...n])}const ag=Object.freeze({x:0,y:0});function npe(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Vwn(e,n){const r=PB(e);if(!r)return"0 0";const i={x:(r.x-n.left)/n.width*100,y:(r.y-n.top)/n.height*100};return i.x+"% "+i.y+"%"}function rpe(e,n){let{data:{value:r}}=e,{data:{value:i}}=n;return r-i}function Gwn(e,n){let{data:{value:r}}=e,{data:{value:i}}=n;return i-r}function Coe(e){let{left:n,top:r,height:i,width:o}=e;return[{x:n,y:r},{x:n+o,y:r},{x:n,y:r+i},{x:n+o,y:r+i}]}function jqe(e,n){if(!e||e.length===0)return null;const[r]=e;return r[n]}function tRe(e,n,r){return n===void 0&&(n=e.left),r===void 0&&(r=e.top),{x:n+e.width*.5,y:r+e.height*.5}}const Wwn=e=>{let{collisionRect:n,droppableRects:r,droppableContainers:i}=e;const o=tRe(n,n.left,n.top),a=[];for(const s of i){const{id:l}=s,c=r.get(l);if(c){const u=npe(tRe(c),o);a.push({id:l,data:{droppableContainer:s,value:u}})}}return a.sort(rpe)},Ywn=e=>{let{collisionRect:n,droppableRects:r,droppableContainers:i}=e;const o=Coe(n),a=[];for(const s of i){const{id:l}=s,c=r.get(l);if(c){const u=Coe(c),d=o.reduce((p,h,g)=>p+npe(u[g],h),0),f=Number((d/4).toFixed(4));a.push({id:l,data:{droppableContainer:s,value:f}})}}return a.sort(rpe)};function qwn(e,n){const r=Math.max(n.top,e.top),i=Math.max(n.left,e.left),o=Math.min(n.left+n.width,e.left+e.width),a=Math.min(n.top+n.height,e.top+e.height),s=o-i,l=a-r;if(i<o&&r<a){const c=n.width*n.height,u=e.width*e.height,d=s*l,f=d/(c+u-d);return Number(f.toFixed(4))}return 0}const Kwn=e=>{let{collisionRect:n,droppableRects:r,droppableContainers:i}=e;const o=[];for(const a of i){const{id:s}=a,l=r.get(s);if(l){const c=qwn(l,n);c>0&&o.push({id:s,data:{droppableContainer:a,value:c}})}}return o.sort(Gwn)};function Xwn(e,n){const{top:r,left:i,bottom:o,right:a}=n;return r<=e.y&&e.y<=o&&i<=e.x&&e.x<=a}const Qwn=e=>{let{droppableContainers:n,droppableRects:r,pointerCoordinates:i}=e;if(!i)return[];const o=[];for(const a of n){const{id:s}=a,l=r.get(s);if(l&&Xwn(i,l)){const u=Coe(l).reduce((f,p)=>f+npe(i,p),0),d=Number((u/4).toFixed(4));o.push({id:s,data:{droppableContainer:a,value:d}})}}return o.sort(rpe)};function Zwn(e,n,r){return{...e,scaleX:n&&r?n.width/r.width:1,scaleY:n&&r?n.height/r.height:1}}function Uqe(e,n){return e&&n?{x:e.left-n.left,y:e.top-n.top}:ag}function Jwn(e){return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return o.reduce((s,l)=>({...s,top:s.top+e*l.y,bottom:s.bottom+e*l.y,left:s.left+e*l.x,right:s.right+e*l.x}),{...r})}}const exn=Jwn(1);function Hqe(e){if(e.startsWith("matrix3d(")){const n=e.slice(9,-1).split(/, /);return{x:+n[12],y:+n[13],scaleX:+n[0],scaleY:+n[5]}}else if(e.startsWith("matrix(")){const n=e.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}function txn(e,n,r){const i=Hqe(n);if(!i)return e;const{scaleX:o,scaleY:a,x:s,y:l}=i,c=e.left-s-(1-o)*parseFloat(r),u=e.top-l-(1-a)*parseFloat(r.slice(r.indexOf(" ")+1)),d=o?e.width/o:e.width,f=a?e.height/a:e.height;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c}}const nxn={ignoreTransform:!1};function yw(e,n){n===void 0&&(n=nxn);let r=e.getBoundingClientRect();if(n.ignoreTransform){const{transform:u,transformOrigin:d}=Au(e).getComputedStyle(e);u&&(r=txn(r,u,d))}const{top:i,left:o,width:a,height:s,bottom:l,right:c}=r;return{top:i,left:o,width:a,height:s,bottom:l,right:c}}function nRe(e){return yw(e,{ignoreTransform:!0})}function rxn(e){const n=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:n,bottom:r,width:n,height:r}}function ixn(e,n){return n===void 0&&(n=Au(e).getComputedStyle(e)),n.position==="fixed"}function oxn(e,n){n===void 0&&(n=Au(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const a=n[o];return typeof a=="string"?r.test(a):!1})}function mH(e,n){const r=[];function i(o){if(n!=null&&r.length>=n||!o)return r;if(tpe(o)&&o.scrollingElement!=null&&!r.includes(o.scrollingElement))return r.push(o.scrollingElement),r;if(!tL(o)||Lqe(o)||r.includes(o))return r;const a=Au(e).getComputedStyle(o);return o!==e&&oxn(o,a)&&r.push(o),ixn(o,a)?r:i(o.parentNode)}return e?i(e):r}function zqe(e){const[n]=mH(e,1);return n??null}function tK(e){return!hH||!e?null:AI(e)?e:epe(e)?tpe(e)||e===DI(e).scrollingElement?window:tL(e)?e:null:null}function Vqe(e){return AI(e)?e.scrollX:e.scrollLeft}function Gqe(e){return AI(e)?e.scrollY:e.scrollTop}function woe(e){return{x:Vqe(e),y:Gqe(e)}}var Hl;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Hl||(Hl={}));function Wqe(e){return!hH||!e?!1:e===document.scrollingElement}function Yqe(e){const n={x:0,y:0},r=Wqe(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},o=e.scrollTop<=n.y,a=e.scrollLeft<=n.x,s=e.scrollTop>=i.y,l=e.scrollLeft>=i.x;return{isTop:o,isLeft:a,isBottom:s,isRight:l,maxScroll:i,minScroll:n}}const axn={x:.2,y:.2};function sxn(e,n,r,i,o){let{top:a,left:s,right:l,bottom:c}=r;i===void 0&&(i=10),o===void 0&&(o=axn);const{isTop:u,isBottom:d,isLeft:f,isRight:p}=Yqe(e),h={x:0,y:0},g={x:0,y:0},v={height:n.height*o.y,width:n.width*o.x};return!u&&a<=n.top+v.height?(h.y=Hl.Backward,g.y=i*Math.abs((n.top+v.height-a)/v.height)):!d&&c>=n.bottom-v.height&&(h.y=Hl.Forward,g.y=i*Math.abs((n.bottom-v.height-c)/v.height)),!p&&l>=n.right-v.width?(h.x=Hl.Forward,g.x=i*Math.abs((n.right-v.width-l)/v.width)):!f&&s<=n.left+v.width&&(h.x=Hl.Backward,g.x=i*Math.abs((n.left+v.width-s)/v.width)),{direction:h,speed:g}}function lxn(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:s}=window;return{top:0,left:0,right:a,bottom:s,width:a,height:s}}const{top:n,left:r,right:i,bottom:o}=e.getBoundingClientRect();return{top:n,left:r,right:i,bottom:o,width:e.clientWidth,height:e.clientHeight}}function qqe(e){return e.reduce((n,r)=>KT(n,woe(r)),ag)}function cxn(e){return e.reduce((n,r)=>n+Vqe(r),0)}function uxn(e){return e.reduce((n,r)=>n+Gqe(r),0)}function Kqe(e,n){if(n===void 0&&(n=yw),!e)return;const{top:r,left:i,bottom:o,right:a}=n(e);zqe(e)&&(o<=0||a<=0||r>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const dxn=[["x",["left","right"],cxn],["y",["top","bottom"],uxn]];class ipe{constructor(n,r){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 i=mH(r),o=qqe(i);this.rect={...n},this.width=n.width,this.height=n.height;for(const[a,s,l]of dxn)for(const c of s)Object.defineProperty(this,c,{get:()=>{const u=l(i),d=o[a]-u;return this.rect[c]+d},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class sP{constructor(n){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...r)})},this.target=n}add(n,r,i){var o;(o=this.target)==null||o.addEventListener(n,r,i),this.listeners.push([n,r,i])}}function fxn(e){const{EventTarget:n}=Au(e);return e instanceof n?e:DI(e)}function nK(e,n){const r=Math.abs(e.x),i=Math.abs(e.y);return typeof n=="number"?Math.sqrt(r**2+i**2)>n:"x"in n&&"y"in n?r>n.x&&i>n.y:"x"in n?r>n.x:"y"in n?i>n.y:!1}var op;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(op||(op={}));function rRe(e){e.preventDefault()}function pxn(e){e.stopPropagation()}var Ai;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(Ai||(Ai={}));const Xqe={start:[Ai.Space,Ai.Enter],cancel:[Ai.Esc],end:[Ai.Space,Ai.Enter]},hxn=(e,n)=>{let{currentCoordinates:r}=n;switch(e.code){case Ai.Right:return{...r,x:r.x+25};case Ai.Left:return{...r,x:r.x-25};case Ai.Down:return{...r,y:r.y+25};case Ai.Up:return{...r,y:r.y-25}}};class ope{constructor(n){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=n;const{event:{target:r}}=n;this.props=n,this.listeners=new sP(DI(r)),this.windowListeners=new sP(Au(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(op.Resize,this.handleCancel),this.windowListeners.add(op.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(op.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:n,onStart:r}=this.props,i=n.node.current;i&&Kqe(i),r(ag)}handleKeyDown(n){if(rL(n)){const{active:r,context:i,options:o}=this.props,{keyboardCodes:a=Xqe,coordinateGetter:s=hxn,scrollBehavior:l="smooth"}=o,{code:c}=n;if(a.end.includes(c)){this.handleEnd(n);return}if(a.cancel.includes(c)){this.handleCancel(n);return}const{collisionRect:u}=i.current,d=u?{x:u.left,y:u.top}:ag;this.referenceCoordinates||(this.referenceCoordinates=d);const f=s(n,{active:r,context:i.current,currentCoordinates:d});if(f){const p=FA(f,d),h={x:0,y:0},{scrollableAncestors:g}=i.current;for(const v of g){const y=n.code,{isTop:_,isRight:S,isLeft:b,isBottom:E,maxScroll:w,minScroll:C}=Yqe(v),x=lxn(v),T={x:Math.min(y===Ai.Right?x.right-x.width/2:x.right,Math.max(y===Ai.Right?x.left:x.left+x.width/2,f.x)),y:Math.min(y===Ai.Down?x.bottom-x.height/2:x.bottom,Math.max(y===Ai.Down?x.top:x.top+x.height/2,f.y))},R=y===Ai.Right&&!S||y===Ai.Left&&!b,O=y===Ai.Down&&!E||y===Ai.Up&&!_;if(R&&T.x!==f.x){const M=v.scrollLeft+p.x,P=y===Ai.Right&&M<=w.x||y===Ai.Left&&M>=C.x;if(P&&!p.y){v.scrollTo({left:M,behavior:l});return}P?h.x=v.scrollLeft-M:h.x=y===Ai.Right?v.scrollLeft-w.x:v.scrollLeft-C.x,h.x&&v.scrollBy({left:-h.x,behavior:l});break}else if(O&&T.y!==f.y){const M=v.scrollTop+p.y,P=y===Ai.Down&&M<=w.y||y===Ai.Up&&M>=C.y;if(P&&!p.x){v.scrollTo({top:M,behavior:l});return}P?h.y=v.scrollTop-M:h.y=y===Ai.Down?v.scrollTop-w.y:v.scrollTop-C.y,h.y&&v.scrollBy({top:-h.y,behavior:l});break}}this.handleMove(n,KT(FA(f,this.referenceCoordinates),h))}}}handleMove(n,r){const{onMove:i}=this.props;n.preventDefault(),i(r)}handleEnd(n){const{onEnd:r}=this.props;n.preventDefault(),this.detach(),r()}handleCancel(n){const{onCancel:r}=this.props;n.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}ope.activators=[{eventName:"onKeyDown",handler:(e,n,r)=>{let{keyboardCodes:i=Xqe,onActivation:o}=n,{active:a}=r;const{code:s}=e.nativeEvent;if(i.start.includes(s)){const l=a.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function iRe(e){return!!(e&&"distance"in e)}function oRe(e){return!!(e&&"delay"in e)}class ape{constructor(n,r,i){var o;i===void 0&&(i=fxn(n.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=n,this.events=r;const{event:a}=n,{target:s}=a;this.props=n,this.events=r,this.document=DI(s),this.documentListeners=new sP(this.document),this.listeners=new sP(i),this.windowListeners=new sP(Au(s)),this.initialCoordinates=(o=PB(a))!=null?o:ag,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:n,props:{options:{activationConstraint:r,bypassActivationConstraint:i}}}=this;if(this.listeners.add(n.move.name,this.handleMove,{passive:!1}),this.listeners.add(n.end.name,this.handleEnd),n.cancel&&this.listeners.add(n.cancel.name,this.handleCancel),this.windowListeners.add(op.Resize,this.handleCancel),this.windowListeners.add(op.DragStart,rRe),this.windowListeners.add(op.VisibilityChange,this.handleCancel),this.windowListeners.add(op.ContextMenu,rRe),this.documentListeners.add(op.Keydown,this.handleKeydown),r){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(oRe(r)){this.timeoutId=setTimeout(this.handleStart,r.delay);return}if(iRe(r))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:n}=this,{onStart:r}=this.props;n&&(this.activated=!0,this.documentListeners.add(op.Click,pxn,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(op.SelectionChange,this.removeTextSelection),r(n))}handleMove(n){var r;const{activated:i,initialCoordinates:o,props:a}=this,{onMove:s,options:{activationConstraint:l}}=a;if(!o)return;const c=(r=PB(n))!=null?r:ag,u=FA(o,c);if(!i&&l){if(iRe(l)){if(l.tolerance!=null&&nK(u,l.tolerance))return this.handleCancel();if(nK(u,l.distance))return this.handleStart()}return oRe(l)&&nK(u,l.tolerance)?this.handleCancel():void 0}n.cancelable&&n.preventDefault(),s(c)}handleEnd(){const{onEnd:n}=this.props;this.detach(),n()}handleCancel(){const{onCancel:n}=this.props;this.detach(),n()}handleKeydown(n){n.code===Ai.Esc&&this.handleCancel()}removeTextSelection(){var n;(n=this.document.getSelection())==null||n.removeAllRanges()}}const gxn={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Qqe extends ape{constructor(n){const{event:r}=n,i=DI(r.target);super(n,gxn,i)}}Qqe.activators=[{eventName:"onPointerDown",handler:(e,n)=>{let{nativeEvent:r}=e,{onActivation:i}=n;return!r.isPrimary||r.button!==0?!1:(i==null||i({event:r}),!0)}}];const mxn={move:{name:"mousemove"},end:{name:"mouseup"}};var xoe;(function(e){e[e.RightClick=2]="RightClick"})(xoe||(xoe={}));class spe extends ape{constructor(n){super(n,mxn,DI(n.event.target))}}spe.activators=[{eventName:"onMouseDown",handler:(e,n)=>{let{nativeEvent:r}=e,{onActivation:i}=n;return r.button===xoe.RightClick?!1:(i==null||i({event:r}),!0)}}];const rK={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Zqe extends ape{constructor(n){super(n,rK)}static setup(){return window.addEventListener(rK.move.name,n,{capture:!1,passive:!1}),function(){window.removeEventListener(rK.move.name,n)};function n(){}}}Zqe.activators=[{eventName:"onTouchStart",handler:(e,n)=>{let{nativeEvent:r}=e,{onActivation:i}=n;const{touches:o}=r;return o.length>1?!1:(i==null||i({event:r}),!0)}}];var lP;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(lP||(lP={}));var BA;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(BA||(BA={}));function vxn(e){let{acceleration:n,activator:r=lP.Pointer,canScroll:i,draggingRect:o,enabled:a,interval:s=5,order:l=BA.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=e;const h=_xn({delta:f,disabled:!a}),[g,v]=Mwn(),y=m.useRef({x:0,y:0}),_=m.useRef({x:0,y:0}),S=m.useMemo(()=>{switch(r){case lP.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case lP.DraggableRect:return o}},[r,o,c]),b=m.useRef(null),E=m.useCallback(()=>{const C=b.current;if(!C)return;const x=y.current.x*_.current.x,T=y.current.y*_.current.y;C.scrollBy(x,T)},[]),w=m.useMemo(()=>l===BA.TreeOrder?[...u].reverse():u,[l,u]);m.useEffect(()=>{if(!a||!u.length||!S){v();return}for(const C of w){if((i==null?void 0:i(C))===!1)continue;const x=u.indexOf(C),T=d[x];if(!T)continue;const{direction:R,speed:O}=sxn(C,T,S,n,p);for(const M of["x","y"])h[M][R[M]]||(O[M]=0,R[M]=0);if(O.x>0||O.y>0){v(),b.current=C,g(E,s),y.current=O,_.current=R;return}}y.current={x:0,y:0},_.current={x:0,y:0},v()},[n,E,i,v,a,s,JSON.stringify(S),JSON.stringify(h),g,u,w,d,JSON.stringify(p)])}const yxn={x:{[Hl.Backward]:!1,[Hl.Forward]:!1},y:{[Hl.Backward]:!1,[Hl.Forward]:!1}};function _xn(e){let{delta:n,disabled:r}=e;const i=MB(n);return nL(o=>{if(r||!i||!o)return yxn;const a={x:Math.sign(n.x-i.x),y:Math.sign(n.y-i.y)};return{x:{[Hl.Backward]:o.x[Hl.Backward]||a.x===-1,[Hl.Forward]:o.x[Hl.Forward]||a.x===1},y:{[Hl.Backward]:o.y[Hl.Backward]||a.y===-1,[Hl.Forward]:o.y[Hl.Forward]||a.y===1}}},[r,n,i])}function bxn(e,n){const r=n!=null?e.get(n):void 0,i=r?r.node.current:null;return nL(o=>{var a;return n==null?null:(a=i??o)!=null?a:null},[i,n])}function Sxn(e,n){return m.useMemo(()=>e.reduce((r,i)=>{const{sensor:o}=i,a=o.activators.map(s=>({eventName:s.eventName,handler:n(s.handler,i)}));return[...r,...a]},[]),[e,n])}var jA;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(jA||(jA={}));var Toe;(function(e){e.Optimized="optimized"})(Toe||(Toe={}));const aRe=new Map;function Exn(e,n){let{dragging:r,dependencies:i,config:o}=n;const[a,s]=m.useState(null),{frequency:l,measure:c,strategy:u}=o,d=m.useRef(e),f=y(),p=$A(f),h=m.useCallback(function(_){_===void 0&&(_=[]),!p.current&&s(S=>S===null?_:S.concat(_.filter(b=>!S.includes(b))))},[p]),g=m.useRef(null),v=nL(_=>{if(f&&!r)return aRe;if(!_||_===aRe||d.current!==e||a!=null){const S=new Map;for(let b of e){if(!b)continue;if(a&&a.length>0&&!a.includes(b.id)&&b.rect.current){S.set(b.id,b.rect.current);continue}const E=b.node.current,w=E?new ipe(c(E),E):null;b.rect.current=w,w&&S.set(b.id,w)}return S}return _},[e,a,r,f,c]);return m.useEffect(()=>{d.current=e},[e]),m.useEffect(()=>{f||h()},[r,f]),m.useEffect(()=>{a&&a.length>0&&s(null)},[JSON.stringify(a)]),m.useEffect(()=>{f||typeof l!="number"||g.current!==null||(g.current=setTimeout(()=>{h(),g.current=null},l))},[l,f,h,...i]),{droppableRects:v,measureDroppableContainers:h,measuringScheduled:a!=null};function y(){switch(u){case jA.Always:return!1;case jA.BeforeDragging:return r;default:return!r}}}function lpe(e,n){return nL(r=>e?r||(typeof n=="function"?n(e):e):null,[n,e])}function Cxn(e,n){return lpe(e,n)}function wxn(e){let{callback:n,disabled:r}=e;const i=gH(n),o=m.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(i)},[i,r]);return m.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function vH(e){let{callback:n,disabled:r}=e;const i=gH(n),o=m.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(i)},[r]);return m.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function xxn(e){return new ipe(yw(e),e)}function sRe(e,n,r){n===void 0&&(n=xxn);const[i,o]=m.useState(null);function a(){o(c=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=c??r)!=null?u:null}const d=n(e);return JSON.stringify(c)===JSON.stringify(d)?c:d})}const s=wxn({callback(c){if(e)for(const u of c){const{type:d,target:f}=u;if(d==="childList"&&f instanceof HTMLElement&&f.contains(e)){a();break}}}}),l=vH({callback:a});return xf(()=>{a(),e?(l==null||l.observe(e),s==null||s.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),s==null||s.disconnect())},[e]),i}function Txn(e){const n=lpe(e);return Uqe(e,n)}const lRe=[];function Oxn(e){const n=m.useRef(e),r=nL(i=>e?i&&i!==lRe&&e&&n.current&&e.parentNode===n.current.parentNode?i:mH(e):lRe,[e]);return m.useEffect(()=>{n.current=e},[e]),r}function Rxn(e){const[n,r]=m.useState(null),i=m.useRef(e),o=m.useCallback(a=>{const s=tK(a.target);s&&r(l=>l?(l.set(s,woe(s)),new Map(l)):null)},[]);return m.useEffect(()=>{const a=i.current;if(e!==a){s(a);const l=e.map(c=>{const u=tK(c);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,woe(u)]):null}).filter(c=>c!=null);r(l.length?new Map(l):null),i.current=e}return()=>{s(e),s(a)};function s(l){l.forEach(c=>{const u=tK(c);u==null||u.removeEventListener("scroll",o)})}},[o,e]),m.useMemo(()=>e.length?n?Array.from(n.values()).reduce((a,s)=>KT(a,s),ag):qqe(e):ag,[e,n])}function cRe(e,n){n===void 0&&(n=[]);const r=m.useRef(null);return m.useEffect(()=>{r.current=null},n),m.useEffect(()=>{const i=e!==ag;i&&!r.current&&(r.current=e),!i&&r.current&&(r.current=null)},[e]),r.current?FA(e,r.current):ag}function Ixn(e){m.useEffect(()=>{if(!hH)return;const n=e.map(r=>{let{sensor:i}=r;return i.setup==null?void 0:i.setup()});return()=>{for(const r of n)r==null||r()}},e.map(n=>{let{sensor:r}=n;return r}))}function Nxn(e,n){return m.useMemo(()=>e.reduce((r,i)=>{let{eventName:o,handler:a}=i;return r[o]=s=>{a(s,n)},r},{}),[e,n])}function Jqe(e){return m.useMemo(()=>e?rxn(e):null,[e])}const uRe=[];function Mxn(e,n){n===void 0&&(n=yw);const[r]=e,i=Jqe(r?Au(r):null),[o,a]=m.useState(uRe);function s(){a(()=>e.length?e.map(c=>Wqe(c)?i:new ipe(n(c),c)):uRe)}const l=vH({callback:s});return xf(()=>{l==null||l.disconnect(),s(),e.forEach(c=>l==null?void 0:l.observe(c))},[e]),o}function eKe(e){if(!e)return null;if(e.children.length>1)return e;const n=e.children[0];return tL(n)?n:e}function Pxn(e){let{measure:n}=e;const[r,i]=m.useState(null),o=m.useCallback(u=>{for(const{target:d}of u)if(tL(d)){i(f=>{const p=n(d);return f?{...f,width:p.width,height:p.height}:p});break}},[n]),a=vH({callback:o}),s=m.useCallback(u=>{const d=eKe(u);a==null||a.disconnect(),d&&(a==null||a.observe(d)),i(d?n(d):null)},[n,a]),[l,c]=NB(s);return m.useMemo(()=>({nodeRef:l,rect:r,setRef:c}),[r,l,c])}const Axn=[{sensor:Qqe,options:{}},{sensor:ope,options:{}}],Dxn={current:{}},T6={draggable:{measure:nRe},droppable:{measure:nRe,strategy:jA.WhileDragging,frequency:Toe.Optimized},dragOverlay:{measure:yw}};class cP extends Map{get(n){var r;return n!=null&&(r=super.get(n))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(n=>{let{disabled:r}=n;return!r})}getNodeFor(n){var r,i;return(r=(i=this.get(n))==null?void 0:i.node.current)!=null?r:void 0}}const kxn={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new cP,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:AB},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:T6,measureDroppableContainers:AB,windowRect:null,measuringScheduled:!1},tKe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:AB,draggableNodes:new Map,over:null,measureDroppableContainers:AB},iL=m.createContext(tKe),nKe=m.createContext(kxn);function Lxn(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new cP}}}function $xn(e,n){switch(n.type){case yl.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:n.initialCoordinates,active:n.active}};case yl.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:n.coordinates.x-e.draggable.initialCoordinates.x,y:n.coordinates.y-e.draggable.initialCoordinates.y}}};case yl.DragEnd:case yl.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case yl.RegisterDroppable:{const{element:r}=n,{id:i}=r,o=new cP(e.droppable.containers);return o.set(i,r),{...e,droppable:{...e.droppable,containers:o}}}case yl.SetDroppableDisabled:{const{id:r,key:i,disabled:o}=n,a=e.droppable.containers.get(r);if(!a||i!==a.key)return e;const s=new cP(e.droppable.containers);return s.set(r,{...a,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case yl.UnregisterDroppable:{const{id:r,key:i}=n,o=e.droppable.containers.get(r);if(!o||i!==o.key)return e;const a=new cP(e.droppable.containers);return a.delete(r),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function Fxn(e){let{disabled:n}=e;const{active:r,activatorEvent:i,draggableNodes:o}=m.useContext(iL),a=MB(i),s=MB(r==null?void 0:r.id);return m.useEffect(()=>{if(!n&&!i&&a&&s!=null){if(!rL(a)||document.activeElement===a.target)return;const l=o.get(s);if(!l)return;const{activatorNode:c,node:u}=l;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const d of[c.current,u.current]){if(!d)continue;const f=Dwn(d);if(f){f.focus();break}}})}},[i,n,o,s,a]),null}function rKe(e,n){let{transform:r,...i}=n;return e!=null&&e.length?e.reduce((o,a)=>a({transform:o,...i}),r):r}function Bxn(e){return m.useMemo(()=>({draggable:{...T6.draggable,...e==null?void 0:e.draggable},droppable:{...T6.droppable,...e==null?void 0:e.droppable},dragOverlay:{...T6.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 jxn(e){let{activeNode:n,measure:r,initialRect:i,config:o=!0}=e;const a=m.useRef(!1),{x:s,y:l}=typeof o=="boolean"?{x:o,y:o}:o;xf(()=>{if(!s&&!l||!n){a.current=!1;return}if(a.current||!i)return;const u=n==null?void 0:n.node.current;if(!u||u.isConnected===!1)return;const d=r(u),f=Uqe(d,i);if(s||(f.x=0),l||(f.y=0),a.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const p=zqe(u);p&&p.scrollBy({top:f.y,left:f.x})}},[n,s,l,i,r])}const yH=m.createContext({...ag,scaleX:1,scaleY:1});var yb;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(yb||(yb={}));const iKe=m.memo(function(n){var r,i,o,a;let{id:s,accessibility:l,autoScroll:c=!0,children:u,sensors:d=Axn,collisionDetection:f=Kwn,measuring:p,modifiers:h,...g}=n;const v=m.useReducer($xn,void 0,Lxn),[y,_]=v,[S,b]=jwn(),[E,w]=m.useState(yb.Uninitialized),C=E===yb.Initialized,{draggable:{active:x,nodes:T,translate:R},droppable:{containers:O}}=y,M=x!=null?T.get(x):null,P=m.useRef({initial:null,translated:null}),k=m.useMemo(()=>{var at;return x!=null?{id:x,data:(at=M==null?void 0:M.data)!=null?at:Dxn,rect:P}:null},[x,M]),$=m.useRef(null),[U,z]=m.useState(null),[D,B]=m.useState(null),Y=$A(g,Object.values(g)),q=kI("DndDescribedBy",s),K=m.useMemo(()=>O.getEnabled(),[O]),H=Bxn(p),{droppableRects:G,measureDroppableContainers:Q,measuringScheduled:le}=Exn(K,{dragging:C,dependencies:[R.x,R.y],config:H.droppable}),Z=bxn(T,x),j=m.useMemo(()=>D?PB(D):null,[D]),F=bt(),te=Cxn(Z,H.draggable.measure);jxn({activeNode:x!=null?T.get(x):null,config:F.layoutShiftCompensation,initialRect:te,measure:H.draggable.measure});const oe=sRe(Z,H.draggable.measure,te),de=sRe(Z?Z.parentElement:null),pe=m.useRef({activatorEvent:null,active:null,activeNode:Z,collisionRect:null,collisions:null,droppableRects:G,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:O,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),me=O.getNodeFor((r=pe.current.over)==null?void 0:r.id),ve=Pxn({measure:H.dragOverlay.measure}),he=(i=ve.nodeRef.current)!=null?i:Z,be=C?(o=ve.rect)!=null?o:oe:null,we=!!(ve.nodeRef.current&&ve.rect),De=Txn(we?null:oe),Ae=Jqe(he?Au(he):null),Ee=Oxn(C?me??Z:null),Re=Mxn(Ee),Te=rKe(h,{transform:{x:R.x-De.x,y:R.y-De.y,scaleX:1,scaleY:1},activatorEvent:D,active:k,activeNodeRect:oe,containerNodeRect:de,draggingNodeRect:be,over:pe.current.over,overlayNodeRect:ve.rect,scrollableAncestors:Ee,scrollableAncestorRects:Re,windowRect:Ae}),Oe=j?KT(j,R):null,Ne=Rxn(Ee),je=cRe(Ne),ne=cRe(Ne,[oe]),J=KT(Te,je),ae=be?exn(be,Te):null,Se=k&&ae?f({active:k,collisionRect:ae,droppableRects:G,droppableContainers:K,pointerCoordinates:Oe}):null,xe=jqe(Se,"id"),[ue,Me]=m.useState(null),$e=we?Te:KT(Te,ne),ge=Zwn($e,(a=ue==null?void 0:ue.rect)!=null?a:null,oe),Ve=m.useRef(null),st=m.useCallback((at,pt)=>{let{sensor:Ct,options:It}=pt;if($.current==null)return;const Wt=T.get($.current);if(!Wt)return;const Bt=at.nativeEvent,Vt=new Ct({active:$.current,activeNode:Wt,event:Bt,options:It,context:pe,onStart(tt){const it=$.current;if(it==null)return;const nt=T.get(it);if(!nt)return;const{onDragStart:vt}=Y.current,kt={activatorEvent:Bt,active:{id:it,data:nt.data,rect:P}};Us.unstable_batchedUpdates(()=>{vt==null||vt(kt),w(yb.Initializing),_({type:yl.DragStart,initialCoordinates:tt,active:it}),S({type:"onDragStart",event:kt}),z(Ve.current),B(Bt)})},onMove(tt){_({type:yl.DragMove,coordinates:tt})},onEnd:rn(yl.DragEnd),onCancel:rn(yl.DragCancel)});Ve.current=Vt;function rn(tt){return async function(){const{active:nt,collisions:vt,over:kt,scrollAdjustedTranslate:Dt}=pe.current;let Kt=null;if(nt&&Dt){const{cancelDrop:Ht}=Y.current;Kt={activatorEvent:Bt,active:nt,collisions:vt,delta:Dt,over:kt},tt===yl.DragEnd&&typeof Ht=="function"&&await Promise.resolve(Ht(Kt))&&(tt=yl.DragCancel)}$.current=null,Us.unstable_batchedUpdates(()=>{_({type:tt}),w(yb.Uninitialized),Me(null),z(null),B(null),Ve.current=null;const Ht=tt===yl.DragEnd?"onDragEnd":"onDragCancel";if(Kt){const tn=Y.current[Ht];tn==null||tn(Kt),S({type:Ht,event:Kt})}})}}},[T]),Je=m.useCallback((at,pt)=>(Ct,It)=>{const Wt=Ct.nativeEvent,Bt=T.get(It);if($.current!==null||!Bt||Wt.dndKit||Wt.defaultPrevented)return;const Vt={active:Bt};at(Ct,pt.options,Vt)===!0&&(Wt.dndKit={capturedBy:pt.sensor},$.current=It,st(Ct,pt))},[T,st]),ot=Sxn(d,Je);Ixn(d),xf(()=>{oe&&E===yb.Initializing&&w(yb.Initialized)},[oe,E]),m.useEffect(()=>{const{onDragMove:at}=Y.current,{active:pt,activatorEvent:Ct,collisions:It,over:Wt}=pe.current;if(!pt||!Ct)return;const Bt={active:pt,activatorEvent:Ct,collisions:It,delta:{x:J.x,y:J.y},over:Wt};Us.unstable_batchedUpdates(()=>{at==null||at(Bt),S({type:"onDragMove",event:Bt})})},[J.x,J.y]),m.useEffect(()=>{const{active:at,activatorEvent:pt,collisions:Ct,droppableContainers:It,scrollAdjustedTranslate:Wt}=pe.current;if(!at||$.current==null||!pt||!Wt)return;const{onDragOver:Bt}=Y.current,Vt=It.get(xe),rn=Vt&&Vt.rect.current?{id:Vt.id,rect:Vt.rect.current,data:Vt.data,disabled:Vt.disabled}:null,tt={active:at,activatorEvent:pt,collisions:Ct,delta:{x:Wt.x,y:Wt.y},over:rn};Us.unstable_batchedUpdates(()=>{Me(rn),Bt==null||Bt(tt),S({type:"onDragOver",event:tt})})},[xe]),xf(()=>{pe.current={activatorEvent:D,active:k,activeNode:Z,collisionRect:ae,collisions:Se,droppableRects:G,draggableNodes:T,draggingNode:he,draggingNodeRect:be,droppableContainers:O,over:ue,scrollableAncestors:Ee,scrollAdjustedTranslate:J},P.current={initial:be,translated:ae}},[k,Z,Se,ae,T,he,be,G,O,ue,Ee,J]),vxn({...F,delta:R,draggingRect:ae,pointerCoordinates:Oe,scrollableAncestors:Ee,scrollableAncestorRects:Re});const Xe=m.useMemo(()=>({active:k,activeNode:Z,activeNodeRect:oe,activatorEvent:D,collisions:Se,containerNodeRect:de,dragOverlay:ve,draggableNodes:T,droppableContainers:O,droppableRects:G,over:ue,measureDroppableContainers:Q,scrollableAncestors:Ee,scrollableAncestorRects:Re,measuringConfiguration:H,measuringScheduled:le,windowRect:Ae}),[k,Z,oe,D,Se,de,ve,T,O,G,ue,Q,Ee,Re,H,le,Ae]),Ze=m.useMemo(()=>({activatorEvent:D,activators:ot,active:k,activeNodeRect:oe,ariaDescribedById:{draggable:q},dispatch:_,draggableNodes:T,over:ue,measureDroppableContainers:Q}),[D,ot,k,oe,_,q,T,ue,Q]);return V.createElement(Fqe.Provider,{value:b},V.createElement(iL.Provider,{value:Ze},V.createElement(nKe.Provider,{value:Xe},V.createElement(yH.Provider,{value:ge},u)),V.createElement(Fxn,{disabled:(l==null?void 0:l.restoreFocus)===!1})),V.createElement(zwn,{...l,hiddenTextDescribedById:q}));function bt(){const at=(U==null?void 0:U.autoScrollEnabled)===!1,pt=typeof c=="object"?c.enabled===!1:c===!1,Ct=C&&!at&&!pt;return typeof c=="object"?{...c,enabled:Ct}:{enabled:Ct}}}),Uxn=m.createContext(null),dRe="button",Hxn="Draggable";function cpe(e){let{id:n,data:r,disabled:i=!1,attributes:o}=e;const a=kI(Hxn),{activators:s,activatorEvent:l,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=m.useContext(iL),{role:h=dRe,roleDescription:g="draggable",tabIndex:v=0}=o??{},y=(c==null?void 0:c.id)===n,_=m.useContext(y?yH:Uxn),[S,b]=NB(),[E,w]=NB(),C=Nxn(s,n),x=$A(r);xf(()=>(f.set(n,{id:n,key:a,node:S,activatorNode:E,data:x}),()=>{const R=f.get(n);R&&R.key===a&&f.delete(n)}),[f,n]);const T=m.useMemo(()=>({role:h,tabIndex:v,"aria-disabled":i,"aria-pressed":y&&h===dRe?!0:void 0,"aria-roledescription":g,"aria-describedby":d.draggable}),[i,h,v,y,g,d.draggable]);return{active:c,activatorEvent:l,activeNodeRect:u,attributes:T,isDragging:y,listeners:i?void 0:C,node:S,over:p,setNodeRef:b,setActivatorNodeRef:w,transform:_}}function upe(){return m.useContext(nKe)}const zxn="Droppable",Vxn={timeout:25};function dpe(e){let{data:n,disabled:r=!1,id:i,resizeObserverConfig:o}=e;const a=kI(zxn),{active:s,dispatch:l,over:c,measureDroppableContainers:u}=m.useContext(iL),d=m.useRef({disabled:r}),f=m.useRef(!1),p=m.useRef(null),h=m.useRef(null),{disabled:g,updateMeasurementsFor:v,timeout:y}={...Vxn,...o},_=$A(v??i),S=m.useCallback(()=>{if(!f.current){f.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(_.current)?_.current:[_.current]),h.current=null},y)},[y]),b=vH({callback:S,disabled:g||!s}),E=m.useCallback((T,R)=>{b&&(R&&(b.unobserve(R),f.current=!1),T&&b.observe(T))},[b]),[w,C]=NB(E),x=$A(n);return m.useEffect(()=>{!b||!w.current||(b.disconnect(),f.current=!1,b.observe(w.current))},[w,b]),m.useEffect(()=>(l({type:yl.RegisterDroppable,element:{id:i,key:a,disabled:r,node:w,rect:p,data:x}}),()=>l({type:yl.UnregisterDroppable,key:a,id:i})),[i]),m.useEffect(()=>{r!==d.current.disabled&&(l({type:yl.SetDroppableDisabled,id:i,key:a,disabled:r}),d.current.disabled=r)},[i,a,r,l]),{active:s,rect:p,isOver:(c==null?void 0:c.id)===i,node:w,over:c,setNodeRef:C}}function Gxn(e){let{animation:n,children:r}=e;const[i,o]=m.useState(null),[a,s]=m.useState(null),l=MB(r);return!r&&!i&&l&&o(l),xf(()=>{if(!a)return;const c=i==null?void 0:i.key,u=i==null?void 0:i.props.id;if(c==null||u==null){o(null);return}Promise.resolve(n(u,a)).then(()=>{o(null)})},[n,i,a]),V.createElement(V.Fragment,null,r,i?m.cloneElement(i,{ref:s}):null)}const Wxn={x:0,y:0,scaleX:1,scaleY:1};function Yxn(e){let{children:n}=e;return V.createElement(iL.Provider,{value:tKe},V.createElement(yH.Provider,{value:Wxn},n))}const qxn={position:"fixed",touchAction:"none"},Kxn=e=>rL(e)?"transform 250ms ease":void 0,Xxn=m.forwardRef((e,n)=>{let{as:r,activatorEvent:i,adjustScale:o,children:a,className:s,rect:l,style:c,transform:u,transition:d=Kxn}=e;if(!l)return null;const f=o?u:{...u,scaleX:1,scaleY:1},p={...qxn,width:l.width,height:l.height,top:l.top,left:l.left,transform:Np.Transform.toString(f),transformOrigin:o&&i?Vwn(i,l):void 0,transition:typeof d=="function"?d(i):d,...c};return V.createElement(r,{className:s,style:p,ref:n},a)}),oKe=e=>n=>{let{active:r,dragOverlay:i}=n;const o={},{styles:a,className:s}=e;if(a!=null&&a.active)for(const[l,c]of Object.entries(a.active))c!==void 0&&(o[l]=r.node.style.getPropertyValue(l),r.node.style.setProperty(l,c));if(a!=null&&a.dragOverlay)for(const[l,c]of Object.entries(a.dragOverlay))c!==void 0&&i.node.style.setProperty(l,c);return s!=null&&s.active&&r.node.classList.add(s.active),s!=null&&s.dragOverlay&&i.node.classList.add(s.dragOverlay),function(){for(const[c,u]of Object.entries(o))r.node.style.setProperty(c,u);s!=null&&s.active&&r.node.classList.remove(s.active)}},Qxn=e=>{let{transform:{initial:n,final:r}}=e;return[{transform:Np.Transform.toString(n)},{transform:Np.Transform.toString(r)}]},Zxn={duration:250,easing:"ease",keyframes:Qxn,sideEffects:oKe({styles:{active:{opacity:"0"}}})};function Jxn(e){let{config:n,draggableNodes:r,droppableContainers:i,measuringConfiguration:o}=e;return gH((a,s)=>{if(n===null)return;const l=r.get(a);if(!l)return;const c=l.node.current;if(!c)return;const u=eKe(s);if(!u)return;const{transform:d}=Au(s).getComputedStyle(s),f=Hqe(d);if(!f)return;const p=typeof n=="function"?n:eTn(n);return Kqe(c,o.draggable.measure),p({active:{id:a,data:l.data,node:c,rect:o.draggable.measure(c)},draggableNodes:r,dragOverlay:{node:s,rect:o.dragOverlay.measure(u)},droppableContainers:i,measuringConfiguration:o,transform:f})})}function eTn(e){const{duration:n,easing:r,sideEffects:i,keyframes:o}={...Zxn,...e};return a=>{let{active:s,dragOverlay:l,transform:c,...u}=a;if(!n)return;const d={x:l.rect.left-s.rect.left,y:l.rect.top-s.rect.top},f={scaleX:c.scaleX!==1?s.rect.width*c.scaleX/l.rect.width:1,scaleY:c.scaleY!==1?s.rect.height*c.scaleY/l.rect.height:1},p={x:c.x-d.x,y:c.y-d.y,...f},h=o({...u,active:s,dragOverlay:l,transform:{initial:c,final:p}}),[g]=h,v=h[h.length-1];if(JSON.stringify(g)===JSON.stringify(v))return;const y=i==null?void 0:i({active:s,dragOverlay:l,...u}),_=l.node.animate(h,{duration:n,easing:r,fill:"forwards"});return new Promise(S=>{_.onfinish=()=>{y==null||y(),S()}})}}let fRe=0;function tTn(e){return m.useMemo(()=>{if(e!=null)return fRe++,fRe},[e])}const aKe=V.memo(e=>{let{adjustScale:n=!1,children:r,dropAnimation:i,style:o,transition:a,modifiers:s,wrapperElement:l="div",className:c,zIndex:u=999}=e;const{activatorEvent:d,active:f,activeNodeRect:p,containerNodeRect:h,draggableNodes:g,droppableContainers:v,dragOverlay:y,over:_,measuringConfiguration:S,scrollableAncestors:b,scrollableAncestorRects:E,windowRect:w}=upe(),C=m.useContext(yH),x=tTn(f==null?void 0:f.id),T=rKe(s,{activatorEvent:d,active:f,activeNodeRect:p,containerNodeRect:h,draggingNodeRect:y.rect,over:_,overlayNodeRect:y.rect,scrollableAncestors:b,scrollableAncestorRects:E,transform:C,windowRect:w}),R=lpe(p),O=Jxn({config:i,draggableNodes:g,droppableContainers:v,measuringConfiguration:S}),M=R?y.setRef:void 0;return V.createElement(Yxn,null,V.createElement(Gxn,{animation:O},f&&x?V.createElement(Xxn,{key:x,id:f.id,ref:M,as:l,activatorEvent:d,adjustScale:n,className:c,transition:a,rect:R,style:{zIndex:u,...o},transform:T},r):null))});function sKe(e,n,r){const i=e.slice();return i.splice(r<0?i.length+r:r,0,i.splice(n,1)[0]),i}function nTn(e,n){return e.reduce((r,i,o)=>{const a=n.get(i);return a&&(r[o]=a),r},Array(e.length))}function m4(e){return e!==null&&e>=0}function rTn(e,n){if(e===n)return!0;if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==n[r])return!1;return!0}function iTn(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const fpe=e=>{let{rects:n,activeIndex:r,overIndex:i,index:o}=e;const a=sKe(n,i,r),s=n[o],l=a[o];return!l||!s?null:{x:l.left-s.left,y:l.top-s.top,scaleX:l.width/s.width,scaleY:l.height/s.height}},lKe="Sortable",cKe=V.createContext({activeIndex:-1,containerId:lKe,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:fpe,disabled:{draggable:!1,droppable:!1}});function oTn(e){let{children:n,id:r,items:i,strategy:o=fpe,disabled:a=!1}=e;const{active:s,dragOverlay:l,droppableRects:c,over:u,measureDroppableContainers:d}=upe(),f=kI(lKe,r),p=l.rect!==null,h=m.useMemo(()=>i.map(C=>typeof C=="object"&&"id"in C?C.id:C),[i]),g=s!=null,v=s?h.indexOf(s.id):-1,y=u?h.indexOf(u.id):-1,_=m.useRef(h),S=!rTn(h,_.current),b=y!==-1&&v===-1||S,E=iTn(a);xf(()=>{S&&g&&d(h)},[S,h,g,d]),m.useEffect(()=>{_.current=h},[h]);const w=m.useMemo(()=>({activeIndex:v,containerId:f,disabled:E,disableTransforms:b,items:h,overIndex:y,useDragOverlay:p,sortedRects:nTn(h,c),strategy:o}),[v,f,E.draggable,E.droppable,b,h,y,c,p,o]);return V.createElement(cKe.Provider,{value:w},n)}const aTn=e=>{let{id:n,items:r,activeIndex:i,overIndex:o}=e;return sKe(r,i,o).indexOf(n)},sTn=e=>{let{containerId:n,isSorting:r,wasDragging:i,index:o,items:a,newIndex:s,previousItems:l,previousContainerId:c,transition:u}=e;return!u||!i||l!==a&&o===s?!1:r?!0:s!==o&&n===c},lTn={duration:200,easing:"ease"},uKe="transform",cTn=Np.Transition.toString({property:uKe,duration:0,easing:"linear"}),uTn={roleDescription:"sortable"};function dTn(e){let{disabled:n,index:r,node:i,rect:o}=e;const[a,s]=m.useState(null),l=m.useRef(r);return xf(()=>{if(!n&&r!==l.current&&i.current){const c=o.current;if(c){const u=yw(i.current,{ignoreTransform:!0}),d={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(d.x||d.y)&&s(d)}}r!==l.current&&(l.current=r)},[n,r,i,o]),m.useEffect(()=>{a&&s(null)},[a]),a}function fTn(e){let{animateLayoutChanges:n=sTn,attributes:r,disabled:i,data:o,getNewIndex:a=aTn,id:s,strategy:l,resizeObserverConfig:c,transition:u=lTn}=e;const{items:d,containerId:f,activeIndex:p,disabled:h,disableTransforms:g,sortedRects:v,overIndex:y,useDragOverlay:_,strategy:S}=m.useContext(cKe),b=pTn(i,h),E=d.indexOf(s),w=m.useMemo(()=>({sortable:{containerId:f,index:E,items:d},...o}),[f,o,E,d]),C=m.useMemo(()=>d.slice(d.indexOf(s)),[d,s]),{rect:x,node:T,isOver:R,setNodeRef:O}=dpe({id:s,data:w,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...c}}),{active:M,activatorEvent:P,activeNodeRect:k,attributes:$,setNodeRef:U,listeners:z,isDragging:D,over:B,setActivatorNodeRef:Y,transform:q}=cpe({id:s,data:w,attributes:{...uTn,...r},disabled:b.draggable}),K=kqe(O,U),H=!!M,G=H&&!g&&m4(p)&&m4(y),Q=!_&&D,le=Q&&G?q:null,j=G?le??(l??S)({rects:v,activeNodeRect:k,activeIndex:p,overIndex:y,index:E}):null,F=m4(p)&&m4(y)?a({id:s,items:d,activeIndex:p,overIndex:y}):E,te=M==null?void 0:M.id,oe=m.useRef({activeId:te,items:d,newIndex:F,containerId:f}),de=d!==oe.current.items,pe=n({active:M,containerId:f,isDragging:D,isSorting:H,id:s,index:E,items:d,newIndex:oe.current.newIndex,previousItems:oe.current.items,previousContainerId:oe.current.containerId,transition:u,wasDragging:oe.current.activeId!=null}),me=dTn({disabled:!pe,index:E,node:T,rect:x});return m.useEffect(()=>{H&&oe.current.newIndex!==F&&(oe.current.newIndex=F),f!==oe.current.containerId&&(oe.current.containerId=f),d!==oe.current.items&&(oe.current.items=d)},[H,F,f,d]),m.useEffect(()=>{if(te===oe.current.activeId)return;if(te&&!oe.current.activeId){oe.current.activeId=te;return}const he=setTimeout(()=>{oe.current.activeId=te},50);return()=>clearTimeout(he)},[te]),{active:M,activeIndex:p,attributes:$,data:w,rect:x,index:E,newIndex:F,items:d,isOver:R,isSorting:H,isDragging:D,listeners:z,node:T,overIndex:y,over:B,setNodeRef:K,setActivatorNodeRef:Y,setDroppableNodeRef:O,setDraggableNodeRef:U,transform:me??j,transition:ve()};function ve(){if(me||de&&oe.current.newIndex===E)return cTn;if(!(Q&&!rL(P)||!u)&&(H||pe))return Np.Transition.toString({...u,property:uKe})}}function pTn(e,n){var r,i;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:n.draggable,droppable:(i=e==null?void 0:e.droppable)!=null?i:n.droppable}}function DB(e){if(!e)return!1;const n=e.data.current;return!!(n&&"sortable"in n&&typeof n.sortable=="object"&&"containerId"in n.sortable&&"items"in n.sortable&&"index"in n.sortable)}const hTn=[Ai.Down,Ai.Right,Ai.Up,Ai.Left],gTn=(e,n)=>{let{context:{active:r,collisionRect:i,droppableRects:o,droppableContainers:a,over:s,scrollableAncestors:l}}=n;if(hTn.includes(e.code)){if(e.preventDefault(),!r||!i)return;const c=[];a.getEnabled().forEach(f=>{if(!f||f!=null&&f.disabled)return;const p=o.get(f.id);if(p)switch(e.code){case Ai.Down:i.top<p.top&&c.push(f);break;case Ai.Up:i.top>p.top&&c.push(f);break;case Ai.Left:i.left>p.left&&c.push(f);break;case Ai.Right:i.left<p.left&&c.push(f);break}});const u=Ywn({active:r,collisionRect:i,droppableRects:o,droppableContainers:c,pointerCoordinates:null});let d=jqe(u,"id");if(d===(s==null?void 0:s.id)&&u.length>1&&(d=u[1].id),d!=null){const f=a.get(r.id),p=a.get(d),h=p?o.get(p.id):null,g=p==null?void 0:p.node.current;if(g&&h&&f&&p){const y=mH(g).some((C,x)=>l[x]!==C),_=dKe(f,p),S=mTn(f,p),b=y||!_?{x:0,y:0}:{x:S?i.width-h.width:0,y:S?i.height-h.height:0},E={x:h.left,y:h.top};return b.x&&b.y?E:FA(E,b)}}}};function dKe(e,n){return!DB(e)||!DB(n)?!1:e.data.current.sortable.containerId===n.data.current.sortable.containerId}function mTn(e,n){return!DB(e)||!DB(n)||!dKe(e,n)?!1:e.data.current.sortable.index<n.data.current.sortable.index}async function vTn(){return so("/kaptcha/api/v1/get",{method:"GET",params:{client:xo}})}async function yTn(e,n){return so("/kaptcha/api/v1/check",{method:"POST",data:{captchaUid:e,captchaCode:n,client:xo}})}var Ooe=function(e,n){return Ooe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},Ooe(e,n)};function us(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Ooe(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var yr=function(){return yr=Object.assign||function(n){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])}return n},yr.apply(this,arguments)};function YO(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r}function _Tn(e,n,r,i){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(d){try{u(i.next(d))}catch(f){s(f)}}function c(d){try{u(i.throw(d))}catch(f){s(f)}}function u(d){d.done?a(d.value):o(d.value).then(l,c)}u((i=i.apply(e,n||[])).next())})}function fKe(e,n){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,o,a,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=l(0),s.throw=l(1),s.return=l(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(d){return c([u,d])}}function c(u){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(r=0)),r;)try{if(i=1,o&&(a=u[0]&2?o.return:u[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,u[1])).done)return a;switch(o=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=n.call(e,r)}catch(d){u=[6,d],o=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function qO(e){var n=typeof Symbol=="function"&&Symbol.iterator,r=n&&e[n],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function M0(e,n){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),o,a=[],s;try{for(;(n===void 0||n-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return a}function rs(e,n,r){if(r||arguments.length===2)for(var i=0,o=n.length,a;i<o;i++)(a||!(i in n))&&(a||(a=Array.prototype.slice.call(n,0,i)),a[i]=n[i]);return e.concat(a||Array.prototype.slice.call(n))}function XT(e){return this instanceof XT?(this.v=e,this):new XT(e)}function bTn(e,n,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(e,n||[]),o,a=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(h){return function(g){return Promise.resolve(g).then(h,f)}}function l(h,g){i[h]&&(o[h]=function(v){return new Promise(function(y,_){a.push([h,v,y,_])>1||c(h,v)})},g&&(o[h]=g(o[h])))}function c(h,g){try{u(i[h](g))}catch(v){p(a[0][3],v)}}function u(h){h.value instanceof XT?Promise.resolve(h.value.v).then(d,f):p(a[0][2],h)}function d(h){c("next",h)}function f(h){c("throw",h)}function p(h,g){h(g),a.shift(),a.length&&c(a[0][0],a[0][1])}}function STn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],r;return n?n.call(e):(e=typeof qO=="function"?qO(e):e[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(a){r[a]=e[a]&&function(s){return new Promise(function(l,c){s=e[a](s),o(l,c,s.done,s.value)})}}function o(a,s,l,c){Promise.resolve(c).then(function(u){a({value:u,done:l})},s)}}function du(e,n){var r=n&&n.cache?n.cache:OTn,i=n&&n.serializer?n.serializer:TTn,o=n&&n.strategy?n.strategy:CTn;return o(e,{cache:r,serializer:i})}function ETn(e){return e==null||typeof e=="number"||typeof e=="boolean"}function pKe(e,n,r,i){var o=ETn(i)?i:r(i),a=n.get(o);return typeof a>"u"&&(a=e.call(this,i),n.set(o,a)),a}function hKe(e,n,r){var i=Array.prototype.slice.call(arguments,3),o=r(i),a=n.get(o);return typeof a>"u"&&(a=e.apply(this,i),n.set(o,a)),a}function ppe(e,n,r,i,o){return r.bind(n,e,i,o)}function CTn(e,n){var r=e.length===1?pKe:hKe;return ppe(e,this,r,n.cache.create(),n.serializer)}function wTn(e,n){return ppe(e,this,hKe,n.cache.create(),n.serializer)}function xTn(e,n){return ppe(e,this,pKe,n.cache.create(),n.serializer)}var TTn=function(){return JSON.stringify(arguments)};function hpe(){this.cache=Object.create(null)}hpe.prototype.get=function(e){return this.cache[e]};hpe.prototype.set=function(e,n){this.cache[e]=n};var OTn={create:function(){return new hpe}},fu={variadic:wTn,monadic:xTn};function gKe(e,n,r){if(r===void 0&&(r=Error),!e)throw new r(n)}du(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,rs([void 0],n,!1)))},{strategy:fu.variadic});du(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,rs([void 0],n,!1)))},{strategy:fu.variadic});du(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,rs([void 0],n,!1)))},{strategy:fu.variadic});du(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.Locale).bind.apply(e,rs([void 0],n,!1)))},{strategy:fu.variadic});du(function(){for(var e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((e=Intl.ListFormat).bind.apply(e,rs([void 0],n,!1)))},{strategy:fu.variadic});var Ji;(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"})(Ji||(Ji={}));var Ea;(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"})(Ea||(Ea={}));var KO;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(KO||(KO={}));function pRe(e){return e.type===Ea.literal}function RTn(e){return e.type===Ea.argument}function mKe(e){return e.type===Ea.number}function vKe(e){return e.type===Ea.date}function yKe(e){return e.type===Ea.time}function _Ke(e){return e.type===Ea.select}function bKe(e){return e.type===Ea.plural}function ITn(e){return e.type===Ea.pound}function SKe(e){return e.type===Ea.tag}function EKe(e){return!!(e&&typeof e=="object"&&e.type===KO.number)}function Roe(e){return!!(e&&typeof e=="object"&&e.type===KO.dateTime)}var CKe=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,NTn=/(?:[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 MTn(e){var n={};return e.replace(NTn,function(r){var i=r.length;switch(r[0]){case"G":n.era=i===4?"long":i===5?"narrow":"short";break;case"y":n.year=i===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":n.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][i-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][i-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][i-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][i-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][i-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":n.minute=["numeric","2-digit"][i-1];break;case"s":n.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=i<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""}),n}var PTn=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ATn(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var n=e.split(PTn).filter(function(p){return p.length>0}),r=[],i=0,o=n;i<o.length;i++){var a=o[i],s=a.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var l=s[0],c=s.slice(1),u=0,d=c;u<d.length;u++){var f=d[u];if(f.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:c})}return r}function DTn(e){return e.replace(/^(.*?)-/,"")}var hRe=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,wKe=/^(@+)?(\+|#+)?[rs]?$/g,kTn=/(\*)(0+)|(#+)(0+)|(0+)/g,xKe=/^(0+)$/;function gRe(e){var n={};return e[e.length-1]==="r"?n.roundingPriority="morePrecision":e[e.length-1]==="s"&&(n.roundingPriority="lessPrecision"),e.replace(wKe,function(r,i,o){return typeof o!="string"?(n.minimumSignificantDigits=i.length,n.maximumSignificantDigits=i.length):o==="+"?n.minimumSignificantDigits=i.length:i[0]==="#"?n.maximumSignificantDigits=i.length:(n.minimumSignificantDigits=i.length,n.maximumSignificantDigits=i.length+(typeof o=="string"?o.length:0)),""}),n}function TKe(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 LTn(e){var n;if(e[0]==="E"&&e[1]==="E"?(n={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(n={notation:"scientific"},e=e.slice(1)),n){var r=e.slice(0,2);if(r==="+!"?(n.signDisplay="always",e=e.slice(2)):r==="+?"&&(n.signDisplay="exceptZero",e=e.slice(2)),!xKe.test(e))throw new Error("Malformed concise eng/scientific notation");n.minimumIntegerDigits=e.length}return n}function mRe(e){var n={},r=TKe(e);return r||n}function $Tn(e){for(var n={},r=0,i=e;r<i.length;r++){var o=i[r];switch(o.stem){case"percent":case"%":n.style="percent";continue;case"%x100":n.style="percent",n.scale=100;continue;case"currency":n.style="currency",n.currency=o.options[0];continue;case"group-off":case",_":n.useGrouping=!1;continue;case"precision-integer":case".":n.maximumFractionDigits=0;continue;case"measure-unit":case"unit":n.style="unit",n.unit=DTn(o.options[0]);continue;case"compact-short":case"K":n.notation="compact",n.compactDisplay="short";continue;case"compact-long":case"KK":n.notation="compact",n.compactDisplay="long";continue;case"scientific":n=yr(yr(yr({},n),{notation:"scientific"}),o.options.reduce(function(c,u){return yr(yr({},c),mRe(u))},{}));continue;case"engineering":n=yr(yr(yr({},n),{notation:"engineering"}),o.options.reduce(function(c,u){return yr(yr({},c),mRe(u))},{}));continue;case"notation-simple":n.notation="standard";continue;case"unit-width-narrow":n.currencyDisplay="narrowSymbol",n.unitDisplay="narrow";continue;case"unit-width-short":n.currencyDisplay="code",n.unitDisplay="short";continue;case"unit-width-full-name":n.currencyDisplay="name",n.unitDisplay="long";continue;case"unit-width-iso-code":n.currencyDisplay="symbol";continue;case"scale":n.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":n.roundingMode="floor";continue;case"rounding-mode-ceiling":n.roundingMode="ceil";continue;case"rounding-mode-down":n.roundingMode="trunc";continue;case"rounding-mode-up":n.roundingMode="expand";continue;case"rounding-mode-half-even":n.roundingMode="halfEven";continue;case"rounding-mode-half-down":n.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":n.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(kTn,function(c,u,d,f,p,h){if(u)n.minimumIntegerDigits=d.length;else{if(f&&p)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(xKe.test(o.stem)){n.minimumIntegerDigits=o.stem.length;continue}if(hRe.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(hRe,function(c,u,d,f,p,h){return d==="*"?n.minimumFractionDigits=u.length:f&&f[0]==="#"?n.maximumFractionDigits=f.length:p&&h?(n.minimumFractionDigits=p.length,n.maximumFractionDigits=p.length+h.length):(n.minimumFractionDigits=u.length,n.maximumFractionDigits=u.length),""});var a=o.options[0];a==="w"?n=yr(yr({},n),{trailingZeroDisplay:"stripIfInteger"}):a&&(n=yr(yr({},n),gRe(a)));continue}if(wKe.test(o.stem)){n=yr(yr({},n),gRe(o.stem));continue}var s=TKe(o.stem);s&&(n=yr(yr({},n),s));var l=LTn(o.stem);l&&(n=yr(yr({},n),l))}return n}var v4={"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 FTn(e,n){for(var r="",i=0;i<e.length;i++){var o=e.charAt(i);if(o==="j"){for(var a=0;i+1<e.length&&e.charAt(i+1)===o;)a++,i++;var s=1+(a&1),l=a<2?1:3+(a>>1),c="a",u=BTn(n);for((u=="H"||u=="k")&&(l=0);l-- >0;)r+=c;for(;s-- >0;)r=u+r}else o==="J"?r+="H":r+=o}return r}function BTn(e){var n=e.hourCycle;if(n===void 0&&e.hourCycles&&e.hourCycles.length&&(n=e.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,i;r!=="root"&&(i=e.maximize().region);var o=v4[i||""]||v4[r||""]||v4["".concat(r,"-001")]||v4["001"];return o[0]}var iK,jTn=new RegExp("^".concat(CKe.source,"*")),UTn=new RegExp("".concat(CKe.source,"*$"));function ro(e,n){return{start:e,end:n}}var HTn=!!String.prototype.startsWith&&"_a".startsWith("a",1),zTn=!!String.fromCodePoint,VTn=!!Object.fromEntries,GTn=!!String.prototype.codePointAt,WTn=!!String.prototype.trimStart,YTn=!!String.prototype.trimEnd,qTn=!!Number.isSafeInteger,KTn=qTn?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ioe=!0;try{var XTn=RKe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ioe=((iK=XTn.exec("a"))===null||iK===void 0?void 0:iK[0])==="a"}catch{Ioe=!1}var vRe=HTn?function(n,r,i){return n.startsWith(r,i)}:function(n,r,i){return n.slice(i,i+r.length)===r},Noe=zTn?String.fromCodePoint:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i="",o=n.length,a=0,s;o>a;){if(s=n[a++],s>1114111)throw RangeError(s+" is not a valid code point");i+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return i},yRe=VTn?Object.fromEntries:function(n){for(var r={},i=0,o=n;i<o.length;i++){var a=o[i],s=a[0],l=a[1];r[s]=l}return r},OKe=GTn?function(n,r){return n.codePointAt(r)}:function(n,r){var i=n.length;if(!(r<0||r>=i)){var o=n.charCodeAt(r),a;return o<55296||o>56319||r+1===i||(a=n.charCodeAt(r+1))<56320||a>57343?o:(o-55296<<10)+(a-56320)+65536}},QTn=WTn?function(n){return n.trimStart()}:function(n){return n.replace(jTn,"")},ZTn=YTn?function(n){return n.trimEnd()}:function(n){return n.replace(UTn,"")};function RKe(e,n){return new RegExp(e,n)}var Moe;if(Ioe){var _Re=RKe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Moe=function(n,r){var i;_Re.lastIndex=r;var o=_Re.exec(n);return(i=o[1])!==null&&i!==void 0?i:""}}else Moe=function(n,r){for(var i=[];;){var o=OKe(n,r);if(o===void 0||IKe(o)||nOn(o))break;i.push(o),r+=o>=65536?2:1}return Noe.apply(void 0,i)};var JTn=function(){function e(n,r){r===void 0&&(r={}),this.message=n,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.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(n,r,i){for(var o=[];!this.isEOF();){var a=this.char();if(a===123){var s=this.parseArgument(n,i);if(s.err)return s;o.push(s.val)}else{if(a===125&&n>0)break;if(a===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),o.push({type:Ea.pound,location:ro(l,this.clonePosition())})}else if(a===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(Ji.UNMATCHED_CLOSING_TAG,ro(this.clonePosition(),this.clonePosition()))}else if(a===60&&!this.ignoreTag&&Poe(this.peek()||0)){var s=this.parseTag(n,r);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(n,r);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(n,r){var i=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ea.literal,value:"<".concat(o,"/>"),location:ro(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(n+1,r,!0);if(a.err)return a;var s=a.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Poe(this.char()))return this.error(Ji.INVALID_TAG,ro(l,this.clonePosition()));var c=this.clonePosition(),u=this.parseTagName();return o!==u?this.error(Ji.UNMATCHED_CLOSING_TAG,ro(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ea.tag,value:o,children:s,location:ro(i,this.clonePosition())},err:null}:this.error(Ji.INVALID_TAG,ro(l,this.clonePosition())))}else return this.error(Ji.UNCLOSED_TAG,ro(i,this.clonePosition()))}else return this.error(Ji.INVALID_TAG,ro(i,this.clonePosition()))},e.prototype.parseTagName=function(){var n=this.offset();for(this.bump();!this.isEOF()&&tOn(this.char());)this.bump();return this.message.slice(n,this.offset())},e.prototype.parseLiteral=function(n,r){for(var i=this.clonePosition(),o="";;){var a=this.tryParseQuote(r);if(a){o+=a;continue}var s=this.tryParseUnquoted(n,r);if(s){o+=s;continue}var l=this.tryParseLeftAngleBracket();if(l){o+=l;continue}break}var c=ro(i,this.clonePosition());return{val:{type:Ea.literal,value:o,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!eOn(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(n){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(n==="plural"||n==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(i);this.bump()}return Noe.apply(void 0,r)},e.prototype.tryParseUnquoted=function(n,r){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(r==="plural"||r==="selectordinal")||i===125&&n>0?null:(this.bump(),Noe(i))},e.prototype.parseArgument=function(n,r){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Ji.EXPECT_ARGUMENT_CLOSING_BRACE,ro(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Ji.EMPTY_ARGUMENT,ro(i,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(Ji.MALFORMED_ARGUMENT,ro(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Ji.EXPECT_ARGUMENT_CLOSING_BRACE,ro(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ea.argument,value:o,location:ro(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Ji.EXPECT_ARGUMENT_CLOSING_BRACE,ro(i,this.clonePosition())):this.parseArgumentOptions(n,r,o,i);default:return this.error(Ji.MALFORMED_ARGUMENT,ro(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var n=this.clonePosition(),r=this.offset(),i=Moe(this.message,r),o=r+i.length;this.bumpTo(o);var a=this.clonePosition(),s=ro(n,a);return{value:i,location:s}},e.prototype.parseArgumentOptions=function(n,r,i,o){var a,s=this.clonePosition(),l=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(l){case"":return this.error(Ji.EXPECT_ARGUMENT_TYPE,ro(s,c));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var p=ZTn(f.val);if(p.length===0)return this.error(Ji.EXPECT_ARGUMENT_STYLE,ro(this.clonePosition(),this.clonePosition()));var h=ro(d,this.clonePosition());u={style:p,styleLocation:h}}var g=this.tryParseArgumentClose(o);if(g.err)return g;var v=ro(o,this.clonePosition());if(u&&vRe(u==null?void 0:u.style,"::",0)){var y=QTn(u.style.slice(2));if(l==="number"){var f=this.parseNumberSkeletonFromString(y,u.styleLocation);return f.err?f:{val:{type:Ea.number,value:i,location:v,style:f.val},err:null}}else{if(y.length===0)return this.error(Ji.EXPECT_DATE_TIME_SKELETON,v);var _=y;this.locale&&(_=FTn(y,this.locale));var p={type:KO.dateTime,pattern:_,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?MTn(_):{}},S=l==="date"?Ea.date:Ea.time;return{val:{type:S,value:i,location:v,style:p},err:null}}}return{val:{type:l==="number"?Ea.number:l==="date"?Ea.date:Ea.time,value:i,location:v,style:(a=u==null?void 0:u.style)!==null&&a!==void 0?a:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Ji.EXPECT_SELECT_ARGUMENT_OPTIONS,ro(b,yr({},b)));this.bumpSpace();var E=this.parseIdentifierIfPossible(),w=0;if(l!=="select"&&E.value==="offset"){if(!this.bumpIf(":"))return this.error(Ji.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ro(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(Ji.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ji.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),E=this.parseIdentifierIfPossible(),w=f.val}var C=this.tryParsePluralOrSelectOptions(n,l,r,E);if(C.err)return C;var g=this.tryParseArgumentClose(o);if(g.err)return g;var x=ro(o,this.clonePosition());return l==="select"?{val:{type:Ea.select,value:i,options:yRe(C.val),location:x},err:null}:{val:{type:Ea.plural,value:i,options:yRe(C.val),offset:w,pluralType:l==="plural"?"cardinal":"ordinal",location:x},err:null}}default:return this.error(Ji.INVALID_ARGUMENT_TYPE,ro(s,c))}},e.prototype.tryParseArgumentClose=function(n){return this.isEOF()||this.char()!==125?this.error(Ji.EXPECT_ARGUMENT_CLOSING_BRACE,ro(n,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var n=0,r=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Ji.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ro(o,this.clonePosition()));this.bump();break}case 123:{n+=1,this.bump();break}case 125:{if(n>0)n-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(n,r){var i=[];try{i=ATn(n)}catch{return this.error(Ji.INVALID_NUMBER_SKELETON,r)}return{val:{type:KO.number,tokens:i,location:r,parsedOptions:this.shouldParseSkeletons?$Tn(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(n,r,i,o){for(var a,s=!1,l=[],c=new Set,u=o.value,d=o.location;;){if(u.length===0){var f=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(Ji.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ji.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;d=ro(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}else break}if(c.has(u))return this.error(r==="select"?Ji.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Ji.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);u==="other"&&(s=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Ji.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Ji.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ro(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(n+1,r,i);if(g.err)return g;var v=this.tryParseArgumentClose(h);if(v.err)return v;l.push([u,{value:g.val,location:ro(h,this.clonePosition())}]),c.add(u),this.bumpSpace(),a=this.parseIdentifierIfPossible(),u=a.value,d=a.location}return l.length===0?this.error(r==="select"?Ji.EXPECT_SELECT_ARGUMENT_SELECTOR:Ji.EXPECT_PLURAL_ARGUMENT_SELECTOR,ro(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(Ji.MISSING_OTHER_CLAUSE,ro(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(n,r){var i=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var a=!1,s=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)a=!0,s=s*10+(l-48),this.bump();else break}var c=ro(o,this.clonePosition());return a?(s*=i,KTn(s)?{val:s,err:null}:this.error(r,c)):this.error(n,c)},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 n=this.position.offset;if(n>=this.message.length)throw Error("out of bound");var r=OKe(this.message,n);if(r===void 0)throw Error("Offset ".concat(n," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(n,r){return{val:null,err:{kind:n,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var n=this.char();n===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=n<65536?1:2)}},e.prototype.bumpIf=function(n){if(vRe(this.message,n,this.offset())){for(var r=0;r<n.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(n){var r=this.offset(),i=this.message.indexOf(n,r);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(n){if(this.offset()>n)throw Error("targetOffset ".concat(n," must be greater than or equal to the current offset ").concat(this.offset()));for(n=Math.min(n,this.message.length);;){var r=this.offset();if(r===n)break;if(r>n)throw Error("targetOffset ".concat(n," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&IKe(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var n=this.char(),r=this.offset(),i=this.message.charCodeAt(r+(n>=65536?2:1));return i??null},e}();function Poe(e){return e>=97&&e<=122||e>=65&&e<=90}function eOn(e){return Poe(e)||e===47}function tOn(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 IKe(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function nOn(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 Aoe(e){e.forEach(function(n){if(delete n.location,_Ke(n)||bKe(n))for(var r in n.options)delete n.options[r].location,Aoe(n.options[r].value);else mKe(n)&&EKe(n.style)||(vKe(n)||yKe(n))&&Roe(n.style)?delete n.style.location:SKe(n)&&Aoe(n.children)})}function rOn(e,n){n===void 0&&(n={}),n=yr({shouldParseSkeletons:!0,requiresOtherClause:!0},n);var r=new JTn(e,n).parse();if(r.err){var i=SyntaxError(Ji[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return n!=null&&n.captureLocation||Aoe(r.val),r.val}var km;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(km||(km={}));var lS=function(e){us(n,e);function n(r,i,o){var a=e.call(this,r)||this;return a.code=i,a.originalMessage=o,a}return n.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},n}(Error),bRe=function(e){us(n,e);function n(r,i,o,a){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(i,'". Options are "').concat(Object.keys(o).join('", "'),'"'),km.INVALID_VALUE,a)||this}return n}(lS),iOn=function(e){us(n,e);function n(r,i,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(i),km.INVALID_VALUE,o)||this}return n}(lS),oOn=function(e){us(n,e);function n(r,i){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(i,'"'),km.MISSING_VALUE,i)||this}return n}(lS),au;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(au||(au={}));function aOn(e){return e.length<2?e:e.reduce(function(n,r){var i=n[n.length-1];return!i||i.type!==au.literal||r.type!==au.literal?n.push(r):i.value+=r.value,n},[])}function NKe(e){return typeof e=="function"}function O6(e,n,r,i,o,a,s){if(e.length===1&&pRe(e[0]))return[{type:au.literal,value:e[0].value}];for(var l=[],c=0,u=e;c<u.length;c++){var d=u[c];if(pRe(d)){l.push({type:au.literal,value:d.value});continue}if(ITn(d)){typeof a=="number"&&l.push({type:au.literal,value:r.getNumberFormat(n).format(a)});continue}var f=d.value;if(!(o&&f in o))throw new oOn(f,s);var p=o[f];if(RTn(d)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),l.push({type:typeof p=="string"?au.literal:au.object,value:p});continue}if(vKe(d)){var h=typeof d.style=="string"?i.date[d.style]:Roe(d.style)?d.style.parsedOptions:void 0;l.push({type:au.literal,value:r.getDateTimeFormat(n,h).format(p)});continue}if(yKe(d)){var h=typeof d.style=="string"?i.time[d.style]:Roe(d.style)?d.style.parsedOptions:i.time.medium;l.push({type:au.literal,value:r.getDateTimeFormat(n,h).format(p)});continue}if(mKe(d)){var h=typeof d.style=="string"?i.number[d.style]:EKe(d.style)?d.style.parsedOptions:void 0;h&&h.scale&&(p=p*(h.scale||1)),l.push({type:au.literal,value:r.getNumberFormat(n,h).format(p)});continue}if(SKe(d)){var g=d.children,v=d.value,y=o[v];if(!NKe(y))throw new iOn(v,"function",s);var _=O6(g,n,r,i,o,a),S=y(_.map(function(w){return w.value}));Array.isArray(S)||(S=[S]),l.push.apply(l,S.map(function(w){return{type:typeof w=="string"?au.literal:au.object,value:w}}))}if(_Ke(d)){var b=d.options[p]||d.options.other;if(!b)throw new bRe(d.value,p,Object.keys(d.options),s);l.push.apply(l,O6(b.value,n,r,i,o));continue}if(bKe(d)){var b=d.options["=".concat(p)];if(!b){if(!Intl.PluralRules)throw new lS(`Intl.PluralRules is not available in this environment.
Try polyfilling it using "@formatjs/intl-pluralrules"
`,km.MISSING_INTL_API,s);var E=r.getPluralRules(n,{type:d.pluralType}).select(p-(d.offset||0));b=d.options[E]||d.options.other}if(!b)throw new bRe(d.value,p,Object.keys(d.options),s);l.push.apply(l,O6(b.value,n,r,i,o,p-(d.offset||0)));continue}}return aOn(l)}function sOn(e,n){return n?yr(yr(yr({},e||{}),n||{}),Object.keys(e).reduce(function(r,i){return r[i]=yr(yr({},e[i]),n[i]||{}),r},{})):e}function lOn(e,n){return n?Object.keys(e).reduce(function(r,i){return r[i]=sOn(e[i],n[i]),r},yr({},e)):e}function oK(e){return{create:function(){return{get:function(n){return e[n]},set:function(n,r){e[n]=r}}}}}function cOn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:du(function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((n=Intl.NumberFormat).bind.apply(n,rs([void 0],r,!1)))},{cache:oK(e.number),strategy:fu.variadic}),getDateTimeFormat:du(function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((n=Intl.DateTimeFormat).bind.apply(n,rs([void 0],r,!1)))},{cache:oK(e.dateTime),strategy:fu.variadic}),getPluralRules:du(function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return new((n=Intl.PluralRules).bind.apply(n,rs([void 0],r,!1)))},{cache:oK(e.pluralRules),strategy:fu.variadic})}}var MKe=function(){function e(n,r,i,o){r===void 0&&(r=e.defaultLocale);var a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var u=a.formatToParts(c);if(u.length===1)return u[0].value;var d=u.reduce(function(f,p){return!f.length||p.type!==au.literal||typeof f[f.length-1]!="string"?f.push(p.value):f[f.length-1]+=p.value,f},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(c){return O6(a.ast,a.locales,a.formatters,a.formats,c,void 0,a.message)},this.resolvedOptions=function(){var c;return{locale:((c=a.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof n=="string"){if(this.message=n,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{};s.formatters;var l=YO(s,["formatters"]);this.ast=e.__parse(n,yr(yr({},l),{locale:this.resolvedLocale}))}else this.ast=n;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=lOn(e.formats,i),this.formatters=o&&o.formatters||cOn(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(n){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(n);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof n=="string"?n:n[0])}},e.__parse=rOn,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}(),gC;(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"})(gC||(gC={}));var oL=function(e){us(n,e);function n(r,i,o){var a=this,s=o?o instanceof Error?o:new Error(String(o)):void 0;return a=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(i,`
`).concat(s?`
`.concat(s.message,`
`).concat(s.stack):""))||this,a.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a,n),a}return n}(Error),uOn=function(e){us(n,e);function n(r,i){return e.call(this,gC.UNSUPPORTED_FORMATTER,r,i)||this}return n}(oL),dOn=function(e){us(n,e);function n(r,i){return e.call(this,gC.INVALID_CONFIG,r,i)||this}return n}(oL),SRe=function(e){us(n,e);function n(r,i){return e.call(this,gC.MISSING_DATA,r,i)||this}return n}(oL),Vp=function(e){us(n,e);function n(r,i,o){var a=e.call(this,gC.FORMAT_ERROR,"".concat(r,`
Locale: `).concat(i,`
`),o)||this;return a.locale=i,a}return n}(oL),aK=function(e){us(n,e);function n(r,i,o,a){var s=e.call(this,"".concat(r,`
MessageID: `).concat(o==null?void 0:o.id,`
Default Message: `).concat(o==null?void 0:o.defaultMessage,`
Description: `).concat(o==null?void 0:o.description,`
`),i,a)||this;return s.descriptor=o,s.locale=i,s}return n}(Vp),fOn=function(e){us(n,e);function n(r,i){var o=e.call(this,gC.MISSING_TRANSLATION,'Missing message: "'.concat(r.id,'" for locale "').concat(i,'", using ').concat(r.defaultMessage?"default message (".concat(typeof r.defaultMessage=="string"?r.defaultMessage:r.defaultMessage.map(function(a){var s;return(s=a.value)!==null&&s!==void 0?s:JSON.stringify(a)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=r,o}return n}(oL);function _w(e,n,r){return r===void 0&&(r={}),n.reduce(function(i,o){return o in e?i[o]=e[o]:o in r&&(i[o]=r[o]),i},{})}var pOn=function(e){},hOn=function(e){},PKe={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:pOn,onWarn:hOn};function AKe(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function vE(e){return{create:function(){return{get:function(n){return e[n]},set:function(n,r){e[n]=r}}}}}function gOn(e){e===void 0&&(e=AKe());var n=Intl.RelativeTimeFormat,r=Intl.ListFormat,i=Intl.DisplayNames,o=du(function(){for(var l,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new((l=Intl.DateTimeFormat).bind.apply(l,rs([void 0],c,!1)))},{cache:vE(e.dateTime),strategy:fu.variadic}),a=du(function(){for(var l,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new((l=Intl.NumberFormat).bind.apply(l,rs([void 0],c,!1)))},{cache:vE(e.number),strategy:fu.variadic}),s=du(function(){for(var l,c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new((l=Intl.PluralRules).bind.apply(l,rs([void 0],c,!1)))},{cache:vE(e.pluralRules),strategy:fu.variadic});return{getDateTimeFormat:o,getNumberFormat:a,getMessageFormat:du(function(l,c,u,d){return new MKe(l,c,u,yr({formatters:{getNumberFormat:a,getDateTimeFormat:o,getPluralRules:s}},d||{}))},{cache:vE(e.message),strategy:fu.variadic}),getRelativeTimeFormat:du(function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new(n.bind.apply(n,rs([void 0],l,!1)))},{cache:vE(e.relativeTime),strategy:fu.variadic}),getPluralRules:s,getListFormat:du(function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new(r.bind.apply(r,rs([void 0],l,!1)))},{cache:vE(e.list),strategy:fu.variadic}),getDisplayNames:du(function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new(i.bind.apply(i,rs([void 0],l,!1)))},{cache:vE(e.displayNames),strategy:fu.variadic})}}function gpe(e,n,r,i){var o=e&&e[n],a;if(o&&(a=o[r]),a)return a;i(new uOn("No ".concat(n," format named: ").concat(r)))}function y4(e,n){return Object.keys(e).reduce(function(r,i){return r[i]=yr({timeZone:n},e[i]),r},{})}function ERe(e,n){var r=Object.keys(yr(yr({},e),n));return r.reduce(function(i,o){return i[o]=yr(yr({},e[o]||{}),n[o]||{}),i},{})}function CRe(e,n){if(!n)return e;var r=MKe.formats;return yr(yr(yr({},r),e),{date:ERe(y4(r.date,n),y4(e.date||{},n)),time:ERe(y4(r.time,n),y4(e.time||{},n))})}var Doe=function(e,n,r,i,o){var a=e.locale,s=e.formats,l=e.messages,c=e.defaultLocale,u=e.defaultFormats,d=e.fallbackOnEmptyString,f=e.onError,p=e.timeZone,h=e.defaultRichTextElements;r===void 0&&(r={id:""});var g=r.id,v=r.defaultMessage;gKe(!!g,"[@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 y=String(g),_=l&&Object.prototype.hasOwnProperty.call(l,y)&&l[y];if(Array.isArray(_)&&_.length===1&&_[0].type===Ea.literal)return _[0].value;if(!i&&_&&typeof _=="string"&&!h)return _.replace(/'\{(.*?)\}'/gi,"{$1}");if(i=yr(yr({},h),i||{}),s=CRe(s,p),u=CRe(u,p),!_){if(d===!1&&_==="")return _;if((!v||a&&a.toLowerCase()!==c.toLowerCase())&&f(new fOn(r,a)),v)try{var S=n.getMessageFormat(v,c,u,o);return S.format(i)}catch(b){return f(new aK('Error formatting default message for: "'.concat(y,'", rendering default message verbatim'),a,r,b)),typeof v=="string"?v:y}return y}try{var S=n.getMessageFormat(_,a,s,yr({formatters:n},o||{}));return S.format(i)}catch(b){f(new aK('Error formatting message: "'.concat(y,'", using ').concat(v?"default message":"id"," as fallback."),a,r,b))}if(v)try{var S=n.getMessageFormat(v,c,u,o);return S.format(i)}catch(b){f(new aK('Error formatting the default message for: "'.concat(y,'", rendering message verbatim'),a,r,b))}return typeof _=="string"?_:typeof v=="string"?v:y},DKe=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function _H(e,n,r,i){var o=e.locale,a=e.formats,s=e.onError,l=e.timeZone;i===void 0&&(i={});var c=i.format,u=yr(yr({},l&&{timeZone:l}),c&&gpe(a,n,c,s)),d=_w(i,DKe,u);return n==="time"&&!d.hour&&!d.minute&&!d.second&&!d.timeStyle&&!d.dateStyle&&(d=yr(yr({},d),{hour:"numeric",minute:"numeric"})),r(o,d)}function mOn(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=r[0],a=r[1],s=a===void 0?{}:a,l=typeof o=="string"?new Date(o||0):o;try{return _H(e,"date",n,s).format(l)}catch(c){e.onError(new Vp("Error formatting date.",e.locale,c))}return String(l)}function vOn(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=r[0],a=r[1],s=a===void 0?{}:a,l=typeof o=="string"?new Date(o||0):o;try{return _H(e,"time",n,s).format(l)}catch(c){e.onError(new Vp("Error formatting time.",e.locale,c))}return String(l)}function yOn(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=r[0],a=r[1],s=r[2],l=s===void 0?{}:s,c=e.timeZone,u=e.locale,d=e.onError,f=_w(l,DKe,c?{timeZone:c}:{});try{return n(u,f).formatRange(o,a)}catch(p){d(new Vp("Error formatting date time range.",e.locale,p))}return String(o)}function _On(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=r[0],a=r[1],s=a===void 0?{}:a,l=typeof o=="string"?new Date(o||0):o;try{return _H(e,"date",n,s).formatToParts(l)}catch(c){e.onError(new Vp("Error formatting date.",e.locale,c))}return[]}function bOn(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=r[0],a=r[1],s=a===void 0?{}:a,l=typeof o=="string"?new Date(o||0):o;try{return _H(e,"time",n,s).formatToParts(l)}catch(c){e.onError(new Vp("Error formatting time.",e.locale,c))}return[]}var SOn=["style","type","fallback","languageDisplay"];function EOn(e,n,r,i){var o=e.locale,a=e.onError,s=Intl.DisplayNames;s||a(new lS(`Intl.DisplayNames is not available in this environment.
Try polyfilling it using "@formatjs/intl-displaynames"
`,km.MISSING_INTL_API));var l=_w(i,SOn);try{return n(o,l).of(r)}catch(c){a(new Vp("Error formatting display name.",o,c))}}var COn=["type","style"],wRe=Date.now();function wOn(e){return"".concat(wRe,"_").concat(e,"_").concat(wRe)}function xOn(e,n,r,i){i===void 0&&(i={});var o=kKe(e,n,r,i).reduce(function(a,s){var l=s.value;return typeof l!="string"?a.push(l):typeof a[a.length-1]=="string"?a[a.length-1]+=l:a.push(l),a},[]);return o.length===1?o[0]:o.length===0?"":o}function kKe(e,n,r,i){var o=e.locale,a=e.onError;i===void 0&&(i={});var s=Intl.ListFormat;s||a(new lS(`Intl.ListFormat is not available in this environment.
Try polyfilling it using "@formatjs/intl-listformat"
`,km.MISSING_INTL_API));var l=_w(i,COn);try{var c={},u=r.map(function(d,f){if(typeof d=="object"){var p=wOn(f);return c[p]=d,p}return String(d)});return n(o,l).formatToParts(u).map(function(d){return d.type==="literal"?d:yr(yr({},d),{value:c[d.value]||d.value})})}catch(d){a(new Vp("Error formatting list.",o,d))}return r}var TOn=["type"];function OOn(e,n,r,i){var o=e.locale,a=e.onError;i===void 0&&(i={}),Intl.PluralRules||a(new lS(`Intl.PluralRules is not available in this environment.
Try polyfilling it using "@formatjs/intl-pluralrules"
`,km.MISSING_INTL_API));var s=_w(i,TOn);try{return n(o,s).select(r)}catch(l){a(new Vp("Error formatting plural.",o,l))}return"other"}var ROn=["numeric","style"];function IOn(e,n,r){var i=e.locale,o=e.formats,a=e.onError;r===void 0&&(r={});var s=r.format,l=!!s&&gpe(o,"relative",s,a)||{},c=_w(r,ROn,l);return n(i,c)}function NOn(e,n,r,i,o){o===void 0&&(o={}),i||(i="second");var a=Intl.RelativeTimeFormat;a||e.onError(new lS(`Intl.RelativeTimeFormat is not available in this environment.
Try polyfilling it using "@formatjs/intl-relativetimeformat"
`,km.MISSING_INTL_API));try{return IOn(e,n,o).format(r,i)}catch(s){e.onError(new Vp("Error formatting relative time.",e.locale,s))}return String(r)}var MOn=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function LKe(e,n,r){var i=e.locale,o=e.formats,a=e.onError;r===void 0&&(r={});var s=r.format,l=s&&gpe(o,"number",s,a)||{},c=_w(r,MOn,l);return n(i,c)}function POn(e,n,r,i){i===void 0&&(i={});try{return LKe(e,n,i).format(r)}catch(o){e.onError(new Vp("Error formatting number.",e.locale,o))}return String(r)}function AOn(e,n,r,i){i===void 0&&(i={});try{return LKe(e,n,i).formatToParts(r)}catch(o){e.onError(new Vp("Error formatting number.",e.locale,o))}return[]}function DOn(e){var n=e?e[Object.keys(e)[0]]:void 0;return typeof n=="string"}function kOn(e){e.onWarn&&e.defaultRichTextElements&&DOn(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 LOn(e,n){var r=gOn(n),i=yr(yr({},PKe),e),o=i.locale,a=i.defaultLocale,s=i.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&s?s(new SRe('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&s&&s(new SRe('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(a,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new dOn('"locale" was not configured, using "'.concat(a,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),i.locale=i.defaultLocale||"en"),kOn(i),yr(yr({},i),{formatters:r,formatNumber:POn.bind(null,i,r.getNumberFormat),formatNumberToParts:AOn.bind(null,i,r.getNumberFormat),formatRelativeTime:NOn.bind(null,i,r.getRelativeTimeFormat),formatDate:mOn.bind(null,i,r.getDateTimeFormat),formatDateToParts:_On.bind(null,i,r.getDateTimeFormat),formatTime:vOn.bind(null,i,r.getDateTimeFormat),formatDateTimeRange:yOn.bind(null,i,r.getDateTimeFormat),formatTimeToParts:bOn.bind(null,i,r.getDateTimeFormat),formatPlural:OOn.bind(null,i,r.getPluralRules),formatMessage:Doe.bind(null,i,r),$t:Doe.bind(null,i,r),formatList:xOn.bind(null,i,r.getListFormat),formatListToParts:kKe.bind(null,i,r.getListFormat),formatDisplayName:EOn.bind(null,i,r.getDisplayNames)})}function $Ke(e){gKe(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var FKe=yr(yr({},PKe),{textComponent:m.Fragment});function $On(e){return function(n){return e(m.Children.toArray(n))}}function koe(e,n){if(e===n)return!0;if(!e||!n)return!1;var r=Object.keys(e),i=Object.keys(n),o=r.length;if(i.length!==o)return!1;for(var a=0;a<o;a++){var s=r[a];if(e[s]!==n[s]||!Object.prototype.hasOwnProperty.call(n,s))return!1}return!0}var BKe={exports:{}},Ho={};/** @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 Zl=typeof Symbol=="function"&&Symbol.for,mpe=Zl?Symbol.for("react.element"):60103,vpe=Zl?Symbol.for("react.portal"):60106,bH=Zl?Symbol.for("react.fragment"):60107,SH=Zl?Symbol.for("react.strict_mode"):60108,EH=Zl?Symbol.for("react.profiler"):60114,CH=Zl?Symbol.for("react.provider"):60109,wH=Zl?Symbol.for("react.context"):60110,ype=Zl?Symbol.for("react.async_mode"):60111,xH=Zl?Symbol.for("react.concurrent_mode"):60111,TH=Zl?Symbol.for("react.forward_ref"):60112,OH=Zl?Symbol.for("react.suspense"):60113,FOn=Zl?Symbol.for("react.suspense_list"):60120,RH=Zl?Symbol.for("react.memo"):60115,IH=Zl?Symbol.for("react.lazy"):60116,BOn=Zl?Symbol.for("react.block"):60121,jOn=Zl?Symbol.for("react.fundamental"):60117,UOn=Zl?Symbol.for("react.responder"):60118,HOn=Zl?Symbol.for("react.scope"):60119;function kf(e){if(typeof e=="object"&&e!==null){var n=e.$$typeof;switch(n){case mpe:switch(e=e.type,e){case ype:case xH:case bH:case EH:case SH:case OH:return e;default:switch(e=e&&e.$$typeof,e){case wH:case TH:case IH:case RH:case CH:return e;default:return n}}case vpe:return n}}}function jKe(e){return kf(e)===xH}Ho.AsyncMode=ype;Ho.ConcurrentMode=xH;Ho.ContextConsumer=wH;Ho.ContextProvider=CH;Ho.Element=mpe;Ho.ForwardRef=TH;Ho.Fragment=bH;Ho.Lazy=IH;Ho.Memo=RH;Ho.Portal=vpe;Ho.Profiler=EH;Ho.StrictMode=SH;Ho.Suspense=OH;Ho.isAsyncMode=function(e){return jKe(e)||kf(e)===ype};Ho.isConcurrentMode=jKe;Ho.isContextConsumer=function(e){return kf(e)===wH};Ho.isContextProvider=function(e){return kf(e)===CH};Ho.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===mpe};Ho.isForwardRef=function(e){return kf(e)===TH};Ho.isFragment=function(e){return kf(e)===bH};Ho.isLazy=function(e){return kf(e)===IH};Ho.isMemo=function(e){return kf(e)===RH};Ho.isPortal=function(e){return kf(e)===vpe};Ho.isProfiler=function(e){return kf(e)===EH};Ho.isStrictMode=function(e){return kf(e)===SH};Ho.isSuspense=function(e){return kf(e)===OH};Ho.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===bH||e===xH||e===EH||e===SH||e===OH||e===FOn||typeof e=="object"&&e!==null&&(e.$$typeof===IH||e.$$typeof===RH||e.$$typeof===CH||e.$$typeof===wH||e.$$typeof===TH||e.$$typeof===jOn||e.$$typeof===UOn||e.$$typeof===HOn||e.$$typeof===BOn)};Ho.typeOf=kf;BKe.exports=Ho;var zOn=BKe.exports,UKe=zOn,VOn={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},GOn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},HKe={};HKe[UKe.ForwardRef]=VOn;HKe[UKe.Memo]=GOn;var _pe=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=m.createContext(null)):m.createContext(null);_pe.Consumer;var WOn=_pe.Provider,YOn=WOn,qOn=_pe;function Fr(){var e=m.useContext(qOn);return $Ke(e),e}var Loe;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Loe||(Loe={}));var $oe;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})($oe||($oe={}));function zKe(e){var n=function(r){var i=Fr(),o=r.value,a=r.children,s=YO(r,["value","children"]),l=typeof o=="string"?new Date(o||0):o,c=e==="formatDate"?i.formatDateToParts(l,s):i.formatTimeToParts(l,s);return a(c)};return n.displayName=$oe[e],n}function aL(e){var n=function(r){var i=Fr(),o=r.value,a=r.children,s=YO(r,["value","children"]),l=i[e](o,s);if(typeof a=="function")return a(l);var c=i.textComponent||m.Fragment;return m.createElement(c,null,l)};return n.displayName=Loe[e],n}function VKe(e){return e&&Object.keys(e).reduce(function(n,r){var i=e[r];return n[r]=NKe(i)?$On(i):i,n},{})}var xRe=function(e,n,r,i){for(var o=[],a=4;a<arguments.length;a++)o[a-4]=arguments[a];var s=VKe(i),l=Doe.apply(void 0,rs([e,n,r,s],o,!1));return Array.isArray(l)?m.Children.toArray(l):l},TRe=function(e,n){var r=e.defaultRichTextElements,i=YO(e,["defaultRichTextElements"]),o=VKe(r),a=LOn(yr(yr(yr({},FKe),i),{defaultRichTextElements:o}),n),s={locale:a.locale,timeZone:a.timeZone,fallbackOnEmptyString:a.fallbackOnEmptyString,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:o};return yr(yr({},a),{formatMessage:xRe.bind(null,s,a.formatters),$t:xRe.bind(null,s,a.formatters)})};function sK(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 KOn=function(e){us(n,e);function n(){var r=e!==null&&e.apply(this,arguments)||this;return r.cache=AKe(),r.state={cache:r.cache,intl:TRe(sK(r.props),r.cache),prevConfig:sK(r.props)},r}return n.getDerivedStateFromProps=function(r,i){var o=i.prevConfig,a=i.cache,s=sK(r);return koe(o,s)?null:{intl:TRe(s,a),prevConfig:s}},n.prototype.render=function(){return $Ke(this.state.intl),m.createElement(YOn,{value:this.state.intl},this.props.children)},n.displayName="IntlProvider",n.defaultProps=FKe,n}(m.PureComponent);function XOn(e,n){var r=e.values,i=YO(e,["values"]),o=n.values,a=YO(n,["values"]);return koe(o,r)&&koe(i,a)}function GKe(e){var n=Fr(),r=n.formatMessage,i=n.textComponent,o=i===void 0?m.Fragment:i,a=e.id,s=e.description,l=e.defaultMessage,c=e.values,u=e.children,d=e.tagName,f=d===void 0?o:d,p=e.ignoreTag,h={id:a,description:s,defaultMessage:l},g=r(h,c,{ignoreTag:p});return typeof u=="function"?u(Array.isArray(g)?g:[g]):f?m.createElement(f,null,m.Children.toArray(g)):m.createElement(m.Fragment,null,g)}GKe.displayName="FormattedMessage";var kh=m.memo(GKe,XOn);kh.displayName="MemoizedFormattedMessage";aL("formatDate");aL("formatTime");aL("formatNumber");aL("formatList");aL("formatDisplayName");zKe("formatDate");zKe("formatTime");const LI=({onKaptchaChange:e,onKaptchaCheck:n})=>{const r=Fr(),[i,o]=m.useState(),[a,s]=m.useState(),l=async()=>{const d=await vTn();d.data.code===200&&(o(d.data.data.captchaUid),s(d.data.data.captchaImage))},c=async(d,f)=>{const p=await yTn(d,f);console.log("checkCaptcha response",p),p.data.code===200?n&&n(!0):n&&n(!1)};m.useEffect(()=>{l()},[]);const u=d=>{e&&(e(i,d.target.value),d.target.value&&d.target.value!==""&&d.target.value.trim().length===4?c(i,d.target.value):n&&n(!1))};return N.jsx(N.Fragment,{children:a&&N.jsxs(N.Fragment,{children:[N.jsx(Oi,{onChange:u,prefix:N.jsx(tGt,{}),placeholder:r.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),N.jsx("img",{src:a,alt:"captcha",onClick:l})]})})},QOn=({loginType:e,onKaptchaChange:n,onKaptchaCheck:r,onRememberChange:i})=>{const o=Fr();return m.useEffect(()=>{const a=localStorage.getItem(Xd);if(a)try{const{username:s,remember:l}=JSON.parse(a);s&&(i==null||i(s,!!l))}catch(s){console.error("Failed to parse saved credentials:",s)}},[i]),N.jsx(N.Fragment,{children:e==="account"&&N.jsxs("div",{children:[N.jsx(eo,{name:"username",fieldProps:{size:"large",prefix:N.jsx(YVe,{className:"prefixIcon"}),onClear:()=>{console.log("onClear");const a=localStorage.getItem(Xd);if(a)try{const s=JSON.parse(a),{username:l,...c}=s;console.log("username",l),console.log("rest",c),localStorage.setItem(Xd,JSON.stringify(c))}catch(s){console.error("Failed to parse saved credentials:",s)}}},placeholder:o.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0,message:N.jsx(kh,{id:"pages.login.username.required",defaultMessage:"请输入邮箱!"})}]}),N.jsx(eo.Password,{name:"password",fieldProps:{size:"large",prefix:N.jsx(lw,{className:"prefixIcon"})},placeholder:o.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:N.jsx(kh,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),N.jsx(mi.Item,{name:"captchaCode",rules:[{required:!0,message:o.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:N.jsx(LI,{onKaptchaChange:n,onKaptchaCheck:r})})]})})};async function ZOn(e){return so("/auth/v1/login",{method:"POST",data:{...e,client:xo}})}async function bpe(e){return so("/auth/v1/send/mobile",{method:"POST",data:{...e,client:xo}})}async function WKe(e){return so("/auth/v1/send/email",{method:"POST",data:{...e,client:xo}})}async function JOn(e){return so("/auth/v1/login/mobile",{method:"POST",data:{...e,client:xo}})}async function eRn(e,n){return so("/auth/v1/vip/scan/query",{method:"GET",params:{deviceUid:e,forceRefresh:n,client:xo}})}async function tRn(e){return so("/auth/v1/vip/scan/login",{method:"POST",data:{...e,client:xo}})}async function nRn(e){return so("/api/v1/user/logout",{method:"POST",data:{client:xo}})}const rRn=({loginType:e,onKaptchaChange:n,onKaptchaCheck:r,onRememberChange:i})=>{const o=Fr(),[a,s]=m.useState(""),[l,c]=m.useState(""),[u,d]=m.useState(!1),[f,p]=m.useState(!1);m.useEffect(()=>{if(f)return;const _=localStorage.getItem(Xd);if(_)try{const{mobile:S}=JSON.parse(_);S&&(i==null||i(S),p(!0))}catch(S){console.error("Failed to parse saved credentials:",S)}},[i,f]);const h=async(_,S)=>{s(_),c(S),n&&n(_,S)},g=async _=>{d(_),r&&r(_)},v=[{label:o.formatMessage({id:"pages.login.country.china"}),value:"86",icon:"🇨🇳",code:"CN"},{label:o.formatMessage({id:"pages.login.country.hongkong"}),value:"852",icon:"🇭🇰",code:"HK"},{label:o.formatMessage({id:"pages.login.country.taiwan"}),value:"886",icon:"🇹🇼",code:"TW"},{label:o.formatMessage({id:"pages.login.country.macao"}),value:"853",icon:"🇲🇴",code:"MO"},{label:o.formatMessage({id:"pages.login.country.japan"}),value:"81",icon:"🇯🇵",code:"JP"},{label:o.formatMessage({id:"pages.login.country.korea"}),value:"82",icon:"🇰🇷",code:"KR"},{label:o.formatMessage({id:"pages.login.country.singapore"}),value:"65",icon:"🇸🇬",code:"SG"},{label:o.formatMessage({id:"pages.login.country.malaysia"}),value:"60",icon:"🇲🇾",code:"MY"},{label:o.formatMessage({id:"pages.login.country.thailand"}),value:"66",icon:"🇹🇭",code:"TH"},{label:o.formatMessage({id:"pages.login.country.vietnam"}),value:"84",icon:"🇻🇳",code:"VN"},{label:o.formatMessage({id:"pages.login.country.philippines"}),value:"63",icon:"🇵🇭",code:"PH"},{label:o.formatMessage({id:"pages.login.country.indonesia"}),value:"62",icon:"🇮🇩",code:"ID"},{label:o.formatMessage({id:"pages.login.country.usa"}),value:"1-us",icon:"🇺🇸",code:"US"},{label:o.formatMessage({id:"pages.login.country.canada"}),value:"1-ca",icon:"🇨🇦",code:"CA"},{label:o.formatMessage({id:"pages.login.country.uk"}),value:"44",icon:"🇬🇧",code:"GB"},{label:o.formatMessage({id:"pages.login.country.germany"}),value:"49",icon:"🇩🇪",code:"DE"},{label:o.formatMessage({id:"pages.login.country.france"}),value:"33",icon:"🇫🇷",code:"FR"},{label:o.formatMessage({id:"pages.login.country.italy"}),value:"39",icon:"🇮🇹",code:"IT"},{label:o.formatMessage({id:"pages.login.country.spain"}),value:"34",icon:"🇪🇸",code:"ES"},{label:o.formatMessage({id:"pages.login.country.russia"}),value:"7",icon:"🇷🇺",code:"RU"},{label:o.formatMessage({id:"pages.login.country.australia"}),value:"61",icon:"🇦🇺",code:"AU"},{label:o.formatMessage({id:"pages.login.country.newzealand"}),value:"64",icon:"🇳🇿",code:"NZ"}],y=_=>{const S=_.value.includes("-")?_.value.split("-")[0]:_.value;return N.jsxs("div",{children:[N.jsx("span",{role:"img","aria-label":_.label,style:{marginRight:8},children:_.icon}),_.label," (+",S,")"]})};return N.jsx(N.Fragment,{children:e==="mobile"&&N.jsxs(N.Fragment,{children:[N.jsxs(xde,{gutter:16,children:[N.jsx(bA,{span:10,children:N.jsx(hC,{name:"country",options:v,fieldProps:{size:"large",placeholder:o.formatMessage({id:"pages.login.country.placeholder",defaultMessage:"选择国家/地区"}),optionLabelProp:"label",optionItemRender:y},initialValue:"86"})}),N.jsx(bA,{span:14,children:N.jsx(eo,{fieldProps:{size:"large",prefix:N.jsx(Rk,{className:"prefixIcon"}),onChange:()=>{p(!0)},onClear:()=>{console.log("onClear");const _=localStorage.getItem(Xd);if(_)try{const S=JSON.parse(_),{mobile:b,...E}=S;console.log("saved:",b,S),localStorage.setItem(Xd,JSON.stringify(E))}catch(S){console.error("Failed to parse saved credentials:",S)}}},name:"mobile",placeholder:o.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:N.jsx(kh,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:N.jsx(kh,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]})})]}),N.jsx(mi.Item,{name:"captchaCode",rules:[{required:!0,message:o.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:N.jsx(LI,{onKaptchaChange:h,onKaptchaCheck:g})}),N.jsx(kk,{fieldProps:{size:"large",prefix:N.jsx(lw,{className:"prefixIcon"})},captchaProps:{size:"large",disabled:!u},placeholder:o.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(_,S)=>_?`${S} ${o.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:o.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:N.jsx(kh,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],onGetCaptcha:async _=>{if(console.log("mobile:",_),_&&_.length===11){const b=await bpe({mobile:_,type:$yt,captchaUid:a,captchaCode:l,platform:Cp});if(console.log("sendMobileCode:",b.data),b.data.code!==200){Nt.error(o.formatMessage({id:b.data.message,defaultMessage:b.data.message}));return}Nt.success(o.formatMessage({id:b.data.message,defaultMessage:b.data.message}))}else Nt.error("手机号格式错误")}}),N.jsx(z7e,{message:N.jsx(kh,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},iRn=({loginType:e})=>{const n=Fr(),r=Df(),i=ws(h=>h.setUserInfo),o=VD(h=>h.setAccessToken),{deviceUid:a,setDeviceUid:s}=ws(h=>({deviceUid:h.deviceUid,setDeviceUid:h.setDeviceUid})),[l,c]=m.useState("login"),[u,d]=m.useState("loading"),f=async h=>{console.log("handleScanLogin values: ",h),Nt.loading(n.formatMessage({id:"logging",defaultMessage:"logging..."}));const g=await tRn({...h});console.log("LoginMobileResult scanLogin:",g.data),g.data.code===200?(Nt.destroy(),Nt.success(n.formatMessage({id:"pages.login.success",defaultMessage:"login success"})),i(g.data.data.user),o(g.data.data.accessToken),r("/chat"),Iie()):(Nt.destroy(),Nt.error(g.data.message))},p=async h=>{if(e!="scan")return;const g=await eRn(a,h);if(g.data.code===200){const v=g.data.data;if(console.log("handleScanQuery status: ",v.status),v.status===Hyt)d("active"),c("deviceUid="+v.deviceUid+"&code="+v.content);else if(v.status===zyt)d("scanned");else if(v.status===Gyt)d("expired");else if(v.status===Vyt){if(v.receiver===void 0||v.receiver==="")return;let y={mobile:v.receiver,code:v.content,platform:Cp};console.log("login scan info:",y),await f(y)}}else Nt.error(g.data.message)};return m.useEffect(()=>{console.log("scan deviceUid:",a),(a===void 0||a==="")&&s(X7()),p(!0);const h=setInterval(()=>{p(!1)},3e3);return()=>{clearInterval(h)}},[e,a]),N.jsx(N.Fragment,{children:e==="scan"&&N.jsx(N.Fragment,{children:N.jsx(QVe,{style:{margin:"auto"},value:l,status:u,onRefresh:()=>{console.log("onRefresh"),p(!0)}})})})},YKe=()=>{const{token:e}=cu.useToken(),{isCustomServer:n,setIsCustomServer:r}=m.useContext(Xl),[i]=mi.useForm(),[o,a]=m.useState(!1),[s,l]=m.useState(""),[c,u]=m.useState(""),d=Fr(),f=()=>{console.log("switch server"),r(g=>!g)};m.useEffect(()=>{s&&s.length>0&&(i.setFieldsValue({apiUrl:s}),console.log("apiUrl:",s))},[s]),m.useEffect(()=>{if(n){const g=localStorage.getItem(eT);g==="true"&&(a(!0),i.setFieldsValue({isCustomServerEnabled:!0})),console.log("isCustomServer customEnabled:",g);const v=localStorage.getItem(KM);v&&i.setFieldsValue({apiUrl:fx(v)});const y=localStorage.getItem(XM);y&&i.setFieldsValue({websocketUrl:fx(y)})}},[n]);const p=g=>{if(console.log("handleCustomServerChange e:",g),a(g.target.checked),g.target.checked){const v=localStorage.getItem(KM);v&&i.setFieldsValue({apiUrl:fx(v)});const y=localStorage.getItem(XM);y&&i.setFieldsValue({websocketUrl:fx(y)}),console.log("initData apiUrl:",v,"websocketUrl:",y)}else localStorage.setItem(eT,"false")},h=(g,v)=>(console.log("props:",g,v),N.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px"},children:[N.jsx(qn,{icon:N.jsx(Tzt,{}),onClick:f,children:d.formatMessage({id:"server.button.back"})},"back"),N.jsx(qn,{type:"primary",onClick:()=>{let y=g.form.getFieldValue("apiUrl");y=fx(y.trim());let _=g.form.getFieldValue("websocketUrl");_=fx(_.trim()),y&&y.trim().length>0&&_&&_.trim().length>0?(localStorage.setItem(KM,y),localStorage.setItem(XM,_),localStorage.setItem(eT,"true"),Nt.success(d.formatMessage({id:"server.save.success"}))):Nt.error("请输入正确的服务器地址")},children:d.formatMessage({id:"server.button.save"})},"submit"),N.jsx(qn,{onClick:()=>{var y;(y=g.form)==null||y.resetFields(),l(""),localStorage.setItem(eT,"false"),localStorage.setItem(KM,""),localStorage.setItem(XM,""),Nt.success(d.formatMessage({id:"server.reset.success"}))},children:d.formatMessage({id:"server.button.reset"})},"reset"),N.jsx(qn,{onClick:()=>{CA("https://www.weiyuai.cn/docs/zh-CN/docs/manual/agent/auth/login")},children:d.formatMessage({id:"server.button.help"})},"help")]}));return N.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:N.jsxs(mi,{className:"ant-pro-form-server-main",form:i,submitter:{render:h},children:[N.jsx(nH,{name:"isCustomServerEnabled",fieldProps:{onChange:p},children:d.formatMessage({id:"server.custom.enable"})}),o&&N.jsxs(N.Fragment,{children:[N.jsx(eo,{name:"apiUrl",label:d.formatMessage({id:"server.api.url.label"}),fieldProps:{disabled:!o,placeholder:d.formatMessage({id:"server.api.url.placeholder"}),onChange:g=>l(g.target.value)}}),N.jsx(eo,{name:"websocketUrl",label:d.formatMessage({id:"server.websocket.url.label"}),fieldProps:{disabled:!o,placeholder:d.formatMessage({id:"server.websocket.url.placeholder"}),onChange:g=>u(g.target.value)}})]})]})})},oRn=({isModel:e=!1})=>{const n=Fr(),[r]=mi.useForm(),i=Df(),{isLoggedIn:o}=m.useContext(Xl),{token:a}=cu.useToken(),[s,l]=m.useState("/agenticflow/logo.png"),[c,u]=m.useState(""),[d,f]=m.useState(""),p=localStorage.getItem(zee),[h]=m.useState(p||"/"),[g,v]=m.useState("account"),y=ws(K=>K.setUserInfo),_=VD(K=>K.setAccessToken),{isCustomServer:S,setIsCustomServer:b}=m.useContext(Xl),[E,w]=m.useState(!1);m.useEffect(()=>{o&&!e&&i(h)},[o,i,e]);const C=K=>{console.log(`onPrivacyProtocolChange checked = ${K.target.checked}`),w(K.target.checked);const H=localStorage.getItem(Xd);if(H)try{const{remember:G}=JSON.parse(H);G&&setTimeout(()=>{r.setFieldsValue({remember:G})},0)}catch(G){console.error("Failed to parse saved credentials:",G)}},x=()=>{CA(uyt)},[T,R]=m.useState(""),O=async(K,H)=>{R(K),r.setFieldValue("captchaCode",H)},M=async K=>{console.log("handleKaptchaCheck:",K)},P=async K=>{if(console.log("handleSubmit values: ",K,g),!E){Nt.error("请阅读并同意隐私协议");return}Nt.loading(n.formatMessage({id:"logging",defaultMessage:"logging..."}));const H=localStorage.getItem(Xd);let G=!1;if(H)try{G=JSON.parse(H).remember}catch(le){console.error("Failed to parse saved credentials:",le)}localStorage.setItem(Xd,JSON.stringify({username:K.username,remember:G}));const Q=await ZOn({...K});console.log("LoginResult:",Q.data),Q.data.code===200?(Nt.destroy(),Nt.success(n.formatMessage({id:"pages.login.success",defaultMessage:"login success"})),G&&localStorage.setItem(Xd,JSON.stringify({username:K.username,password:K.password,remember:!0})),y(Q.data.data.user),_(Q.data.data.accessToken),e||i(h),Iie()):(Nt.destroy(),Nt.error(n.formatMessage({id:Q.data.message,defaultMessage:Q.data.message})))},k=K=>{r.setFieldsValue({mobile:K})},$=async K=>{if(!E){Nt.error(n.formatMessage({id:"login.privacy.required",defaultMessage:"请阅读并同意隐私协议"}));return}const H=localStorage.getItem(Xd);let G={};if(H)try{G=JSON.parse(H)}catch(le){console.error("Failed to parse saved credentials:",le)}localStorage.setItem(Xd,JSON.stringify({...G,mobile:K.mobile}));const Q=await JOn({...K});console.log("LoginMobileResult:",Q),Q.data.code===200?(Nt.destroy(),Nt.success(n.formatMessage({id:"pages.login.success",defaultMessage:"login success"})),y(Q.data.data.user),_(Q.data.data.accessToken),e||i(h),Iie()):(Nt.destroy(),Nt.error(n.formatMessage({id:Q.data.message,defaultMessage:Q.data.message})))},U=()=>{console.log("switch server"),b(K=>!K)},z=()=>{console.log("handleAnonymousLogin"),i("/anonymous")},D=()=>{if(yO)return{}},B=(K,H)=>{r.setFieldsValue({username:K,remember:H});const G=localStorage.getItem(Xd);if(G&&H)try{const{password:Q}=JSON.parse(G);Q&&r.setFieldsValue({password:Q})}catch(Q){console.error("Failed to parse saved credentials:",Q)}},Y=async()=>{var H,G,Q,le,Z,j,F;console.log("getConfig");const K=await _5e();(H=K==null?void 0:K.custom)!=null&&H.enabled?((G=K==null?void 0:K.custom)!=null&&G.logo?l((Q=K==null?void 0:K.custom)==null?void 0:Q.logo):l("/agenticflow/logo.png"),(le=K==null?void 0:K.custom)!=null&&le.name?u((Z=K==null?void 0:K.custom)==null?void 0:Z.name):u(n.formatMessage({id:"app.title"})),(j=K==null?void 0:K.custom)!=null&&j.description?f((F=K==null?void 0:K.custom)==null?void 0:F.description):f(n.formatMessage({id:"slogan"}))):(l("/agenticflow/logo.png"),u(n.formatMessage({id:"app.title"})),f(n.formatMessage({id:"slogan"}))),y5e()};m.useEffect(()=>{n8e(),Y()},[]);const q=[{key:"account",label:n.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:N.jsx(QOn,{loginType:g,onKaptchaChange:O,onKaptchaCheck:M,onRememberChange:B})},{key:"mobile",label:n.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:N.jsx(rRn,{loginType:g,onKaptchaChange:O,onKaptchaCheck:M,onRememberChange:k})}];return fyt&&q.push({key:"scan",label:n.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:N.jsx(iRn,{loginType:g})}),N.jsx(kU,{hashed:!1,children:N.jsxs("div",{style:{backgroundColor:a.colorBgContainer,textAlign:"center",height:"100%"},children:[!S&&N.jsxs(GYe,{form:r,contentStyle:{minWidth:400},logo:N.jsx("img",{alt:"logo",src:pyt}),title:hyt,initialValues:D(),onFinish:async K=>{if(console.log("login:",K),g==="account"){const H={username:K.username,password:K.password,captchaUid:T,captchaCode:K.captchaCode,platform:Cp};await P(H)}else if(g==="mobile"){const H={mobile:K.mobile,code:K.code,captchaUid:T,captchaCode:K.captchaCode,platform:Cp};await $(H)}else console.log("scan login type")},actions:yO&&N.jsxs(Cf,{children:[N.jsx(kh,{id:"pages.login.loginWith",defaultMessage:"其他登录方式"}),N.jsx(qn,{type:"link",onClick:z,children:n.formatMessage({id:"pages.login.anonymousLogin",defaultMessage:"匿名登录"})})]}),children:[N.jsx(Sk,{centered:!0,items:q,activeKey:g,onChange:K=>v(K)}),N.jsxs("div",{style:{marginBlockEnd:24,textAlign:"left",marginTop:10},children:[N.jsx(ow,{checked:E,onChange:C,children:N.jsx(qn,{size:"small",type:"link",onClick:x,children:n.formatMessage({id:"login.privacy.agreement",defaultMessage:"同意《用户隐私&协议》"})})}),dyt&&N.jsx(qn,{type:"link",style:{float:"right",marginBottom:24},onClick:U,children:n.formatMessage({id:"login.switch.server",defaultMessage:"切换服务器"})})]})]}),S&&N.jsx(YKe,{})]})})},Foe=({isModel:e=!1})=>N.jsx(Z9,{children:N.jsx(oRn,{isModel:e})}),aRn=()=>{Df();const{token:e}=cu.useToken();return m.useState("phone"),zd(e.colorTextBase,.2),N.jsx(kU,{hashed:!1,children:N.jsx("div",{style:{backgroundColor:e.colorBgContainer,textAlign:"center",height:"100vh"},children:N.jsxs(GYe,{logo:"./logo.png",title:"微语",subTitle:"注册账号",children:[N.jsxs(N.Fragment,{children:[N.jsx(eo,{name:"username",fieldProps:{size:"large",prefix:N.jsx(YVe,{className:"prefixIcon"})},placeholder:"用户名",rules:[{required:!0,message:"请输入用户名!"}]}),N.jsx(eo.Password,{name:"password",fieldProps:{size:"large",prefix:N.jsx(lw,{className:"prefixIcon"})},placeholder:"密码",rules:[{required:!0,message:"请输入密码!"}]})]}),N.jsxs("div",{style:{marginBlockEnd:24},children:[N.jsx(nH,{noStyle:!0,name:"autoLogin",children:"自动登录"}),N.jsx(OXt,{to:"/agent/auth/login",style:{float:"right"},children:"登录"})]})]})})})};function NH(){const[e,n]=m.useState(!0);return m.useEffect(()=>{function r(){console.log("networkStatus online:",navigator.onLine),navigator.onLine&&n(!0)}function i(){console.log("networkStatus offline:",!navigator.onLine),n(!1)}return window.addEventListener("online",r),window.addEventListener("offline",i),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}},[]),e}function Gp(){const e=Fr();return{translateString:i=>i==null?i:i&&i.startsWith(pbe)?e.formatMessage({id:i,defaultMessage:i}):i,translateStringTranct:i=>i==null?i:i!=null&&i.startsWith(pbe)?V0e(e.formatMessage({id:i}),10):V0e(i,10)}}function Spe(){const e=NH(),{translateString:n}=Gp(),[r,i]=m.useState(!1),[o,a]=m.useState(!1),s=async(c,u)=>{Yl?await yqt()?console.log("handleNewMessage isWindowActive"):_qt(c,u):o?l(c,u):console.log("handleNewMessage not isBrowserTabHidden")},l=(c,u)=>{console.log("showWebNotification");var d=new Notification(c,{body:u,icon:"./logo.png"});d.onshow=function(){console.log("Notification shown")},d.onclick=function(){console.log("notification click")},d.onclose=function(){console.log("notification close")},d.onerror=function(){console.log("notification error")}};return m.useEffect(()=>(Yl||(window.Notification&&Notification.permission!=="granted"?Notification.requestPermission(function(c){i(c==="granted")}):(console.log("已经授权或浏览器不支持通知"),i(!0)),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?a(!0):document.visibilityState==="visible"&&a(!1)},!1)),()=>{document.removeEventListener("visibilitychange",()=>{})}),[]),m.useEffect(()=>{if(console.log("useNotification useEffect isNetworkOnline",e),e){const c=localStorage.getItem(P2);(c==null||c==="true")&&s(n("i18n.tip.title"),n("i18n.tip.network.disconnected"))}else{const c=localStorage.getItem(P2);(c==null||c==="true")&&s(n("i18n.tip.title"),n("i18n.tip.network.connected"))}},[e]),{isNotificationGranted:r,showWebNotification:l,showNotification:s}}var ty={},qKe={exports:{}},KKe={exports:{}};(function(e){var n=eqe;function r(i){if(Array.isArray(i))return n(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(KKe);var sRn=KKe.exports,XKe={exports:{}};(function(e){function n(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(XKe);var QKe=XKe.exports,ZKe={exports:{}};(function(e){function n(){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=n,e.exports.__esModule=!0,e.exports.default=e.exports})(ZKe);var lRn=ZKe.exports;(function(e){var n=sRn,r=QKe,i=Dfe,o=lRn;function a(s){return n(s)||r(s)||i(s)||o()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(qKe);var JKe=qKe.exports,MH={};Object.defineProperty(MH,"__esModule",{value:!0});MH.default=cRn;function cRn(e,n){var r=Object.assign({},e);return Array.isArray(n)&&n.forEach(function(i){delete r[i]}),r}var Epe={};const cS=UD(ENt);var PH={},uRn=Qs.default;Object.defineProperty(PH,"__esModule",{value:!0});PH.default=fRn;var dRn=uRn(m);function fRn(e,n,r){var i=dRn.useRef({});return(!("value"in i.current)||r(i.current.condition,n))&&(i.current.value=e(),i.current.condition=n),i.current.value}var AH={},eXe={exports:{}};(function(e){var n=XYe,r=QKe,i=Dfe,o=nqe;function a(s){return n(s)||r(s)||i(s)||o()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(eXe);var pRn=eXe.exports,Cpe={};Object.defineProperty(Cpe,"__esModule",{value:!0});Cpe.default=hRn;function hRn(e,n){for(var r=e,i=0;i<n.length;i+=1){if(r==null)return;r=r[n[i]]}return r}var sL=di.default;Object.defineProperty(AH,"__esModule",{value:!0});AH.default=R6;AH.merge=_Rn;var tXe=sL(zC),gRn=sL(VC),nXe=sL(JKe),mRn=sL(pRn),Boe=sL(Cpe);function rXe(e,n,r,i){if(!n.length)return r;var o=(0,mRn.default)(n),a=o[0],s=o.slice(1),l;return!e&&typeof a=="number"?l=[]:Array.isArray(e)?l=(0,nXe.default)(e):l=(0,gRn.default)({},e),i&&r===void 0&&s.length===1?delete l[a][s[0]]:l[a]=rXe(l[a],s,r,i),l}function R6(e,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return n.length&&i&&r===void 0&&!(0,Boe.default)(e,n.slice(0,-1))?e:rXe(e,n,r,i)}function vRn(e){return(0,tXe.default)(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function ORe(e){return Array.isArray(e)?[]:{}}var yRn=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function _Rn(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=ORe(n[0]);return n.forEach(function(o){function a(s,l){var c=new Set(l),u=(0,Boe.default)(o,s),d=Array.isArray(u);if(d||vRn(u)){if(!c.has(u)){c.add(u);var f=(0,Boe.default)(i,s);d?i=R6(i,s,[]):(!f||(0,tXe.default)(f)!=="object")&&(i=R6(i,s,ORe(u))),yRn(u).forEach(function(p){a([].concat((0,nXe.default)(s),[p]),c)})}}else i=R6(i,s,u)}a([])}),i}var Sp={},iXe=Qs.default;Object.defineProperty(Sp,"__esModule",{value:!0});Sp.devUseWarning=Sp.default=Sp.WarningContext=void 0;Sp.noop=wpe;Sp.resetWarned=ERn;var bRn=iXe(m),SRn=iXe(xd);function wpe(){}function ERn(){(0,SRn.resetWarned)()}let CRn=wpe;Sp.WarningContext=bRn.createContext({});Sp.devUseWarning=()=>{const e=()=>{};return e.deprecated=wpe,e};Sp.default=CRn;var DH={};Object.defineProperty(DH,"__esModule",{value:!0});DH.default=void 0;var wRn=m;DH.default=(0,wRn.createContext)(void 0);var oXe={},kH={},xRn=di.default;Object.defineProperty(kH,"__esModule",{value:!0});kH.changeConfirmLocale=TRn;kH.getConfirmLocale=ORn;var xpe=xRn(HC);let I6=Object.assign({},xpe.default.Modal),N6=[];const RRe=()=>N6.reduce((e,n)=>Object.assign(Object.assign({},e),n),xpe.default.Modal);function TRn(e){if(e){const n=Object.assign({},e);return N6.push(n),I6=RRe(),()=>{N6=N6.filter(r=>r!==n),I6=RRe()}}I6=Object.assign({},xpe.default.Modal)}function ORn(){return I6}var $I={};Object.defineProperty($I,"__esModule",{value:!0});$I.default=void 0;var RRn=m;const IRn=(0,RRn.createContext)(void 0);$I.default=IRn;var LH={},aXe=di.default,NRn=Qs.default;Object.defineProperty(LH,"__esModule",{value:!0});LH.default=void 0;var lK=NRn(m),MRn=aXe($I),IRe=aXe(HC);const PRn=(e,n)=>{const r=lK.useContext(MRn.default),i=lK.useMemo(()=>{var a;const s=n||IRe.default[e],l=(a=r==null?void 0:r[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),l||{})},[e,n,r]),o=lK.useMemo(()=>{const a=r==null?void 0:r.locale;return r!=null&&r.exist&&!a?IRe.default.locale:a},[r]);return[i,o]};LH.default=PRn;(function(e){"use client";var n=di.default,r=Qs.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ANT_MARK=void 0,Object.defineProperty(e,"useLocale",{enumerable:!0,get:function(){return s.default}});var i=r(m),o=kH,a=n($I),s=n(LH);e.ANT_MARK="internalMark";const l=c=>{const{locale:u={},children:d,_ANT_MARK__:f}=c;i.useEffect(()=>(0,o.changeConfirmLocale)(u==null?void 0:u.Modal),[u]);const p=i.useMemo(()=>Object.assign(Object.assign({},u),{exist:!0}),[u]);return i.createElement(a.default.Provider,{value:p},d)};e.default=l})(oXe);var ym={},Tpe={},Lm={};Object.defineProperty(Lm,"__esModule",{value:!0});Lm.defaultPresetColors=Lm.default=void 0;const ARn=Lm.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"},DRn=Object.assign(Object.assign({},ARn),{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});Lm.default=DRn;var Ope={};const lL=UD(PNt);Object.defineProperty(Ope,"__esModule",{value:!0});Ope.default=kRn;var cK=lL;function kRn(e,n){let{generateColorPalettes:r,generateNeutralColorPalettes:i}=n;const{colorSuccess:o,colorWarning:a,colorError:s,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=r(c),p=r(o),h=r(a),g=r(s),v=r(l),y=i(u,d),_=e.colorLink||e.colorInfo,S=r(_),b=new cK.FastColor(g[1]).mix(new cK.FastColor(g[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:b,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:S[4],colorLink:S[6],colorLinkActive:S[7],colorBgMask:new cK.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var Rpe={},$H={};Object.defineProperty($H,"__esModule",{value:!0});$H.default=void 0;const LRn=e=>{let n=e,r=e,i=e,o=e;return e<6&&e>=5?n=e+1:e<16&&e>=6?n=e+2:e>=16&&(n=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?i=1:e>=6&&(i=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:i,borderRadiusSM:r,borderRadiusLG:n,borderRadiusOuter:o}};$H.default=LRn;var $Rn=di.default;Object.defineProperty(Rpe,"__esModule",{value:!0});Rpe.default=BRn;var FRn=$Rn($H);function BRn(e){const{motionUnit:n,motionBase:r,borderRadius:i,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+n).toFixed(1)}s`,motionDurationMid:`${(r+n*2).toFixed(1)}s`,motionDurationSlow:`${(r+n*3).toFixed(1)}s`,lineWidthBold:o+1},(0,FRn.default)(i))}var FH={};Object.defineProperty(FH,"__esModule",{value:!0});FH.default=void 0;const jRn=e=>{const{controlHeight:n}=e;return{controlHeightSM:n*.75,controlHeightXS:n*.5,controlHeightLG:n*1.25}};FH.default=jRn;var BH={},cL={};Object.defineProperty(cL,"__esModule",{value:!0});cL.default=URn;cL.getLineHeight=sXe;function sXe(e){return(e+8)/e}function URn(e){const n=new Array(10).fill(null).map((r,i)=>{const o=i-1,a=e*Math.pow(Math.E,o/5),s=i>1?Math.floor(a):Math.ceil(a);return Math.floor(s/2)*2});return n[1]=e,n.map(r=>({size:r,lineHeight:sXe(r)}))}var HRn=di.default;Object.defineProperty(BH,"__esModule",{value:!0});BH.default=void 0;var zRn=HRn(cL);const VRn=e=>{const n=(0,zRn.default)(e),r=n.map(d=>d.size),i=n.map(d=>d.lineHeight),o=r[1],a=r[0],s=r[2],l=i[1],c=i[0],u=i[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:s,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:l,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*s),fontHeightSM:Math.round(c*a),lineHeightHeading1:i[6],lineHeightHeading2:i[5],lineHeightHeading3:i[4],lineHeightHeading4:i[3],lineHeightHeading5:i[2]}};BH.default=VRn;var Ipe={};Object.defineProperty(Ipe,"__esModule",{value:!0});Ipe.default=GRn;function GRn(e){const{sizeUnit:n,sizeStep:r}=e;return{sizeXXL:n*(r+8),sizeXL:n*(r+4),sizeLG:n*(r+2),sizeMD:n*(r+1),sizeMS:n*r,size:n*r,sizeSM:n*(r-1),sizeXS:n*(r-2),sizeXXS:n*(r-3)}}var XO={},QO={};Object.defineProperty(QO,"__esModule",{value:!0});QO.getSolidColor=QO.getAlphaColor=void 0;var lXe=lL;const WRn=(e,n)=>new lXe.FastColor(e).setA(n).toRgbString();QO.getAlphaColor=WRn;const YRn=(e,n)=>new lXe.FastColor(e).darken(n).toHexString();QO.getSolidColor=YRn;Object.defineProperty(XO,"__esModule",{value:!0});XO.generateNeutralColorPalettes=XO.generateColorPalettes=void 0;var qRn=Qk,oc=QO;const KRn=e=>{const n=(0,qRn.generate)(e);return{1:n[0],2:n[1],3:n[2],4:n[3],5:n[4],6:n[5],7:n[6],8:n[4],9:n[5],10:n[6]}};XO.generateColorPalettes=KRn;const XRn=(e,n)=>{const r=e||"#fff",i=n||"#000";return{colorBgBase:r,colorTextBase:i,colorText:(0,oc.getAlphaColor)(i,.88),colorTextSecondary:(0,oc.getAlphaColor)(i,.65),colorTextTertiary:(0,oc.getAlphaColor)(i,.45),colorTextQuaternary:(0,oc.getAlphaColor)(i,.25),colorFill:(0,oc.getAlphaColor)(i,.15),colorFillSecondary:(0,oc.getAlphaColor)(i,.06),colorFillTertiary:(0,oc.getAlphaColor)(i,.04),colorFillQuaternary:(0,oc.getAlphaColor)(i,.02),colorBgSolid:(0,oc.getAlphaColor)(i,1),colorBgSolidHover:(0,oc.getAlphaColor)(i,.75),colorBgSolidActive:(0,oc.getAlphaColor)(i,.95),colorBgLayout:(0,oc.getSolidColor)(r,4),colorBgContainer:(0,oc.getSolidColor)(r,0),colorBgElevated:(0,oc.getSolidColor)(r,0),colorBgSpotlight:(0,oc.getAlphaColor)(i,.85),colorBgBlur:"transparent",colorBorder:(0,oc.getSolidColor)(r,15),colorBorderSecondary:(0,oc.getSolidColor)(r,6)}};XO.generateNeutralColorPalettes=XRn;var uL=di.default;Object.defineProperty(Tpe,"__esModule",{value:!0});Tpe.default=rIn;var yE=Qk,QRn=Lm,ZRn=uL(Ope),JRn=uL(Rpe),eIn=uL(FH),tIn=uL(BH),nIn=uL(Ipe),NRe=XO;function rIn(e){yE.presetPrimaryColors.pink=yE.presetPrimaryColors.magenta,yE.presetPalettes.pink=yE.presetPalettes.magenta;const n=Object.keys(QRn.defaultPresetColors).map(r=>{const i=e[r]===yE.presetPrimaryColors[r]?yE.presetPalettes[r]:(0,yE.generate)(e[r]);return new Array(10).fill(1).reduce((o,a,s)=>(o[`${r}-${s+1}`]=i[s],o[`${r}${s+1}`]=i[s],o),{})}).reduce((r,i)=>(r=Object.assign(Object.assign({},r),i),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),n),(0,ZRn.default)(e,{generateColorPalettes:NRe.generateColorPalettes,generateNeutralColorPalettes:NRe.generateNeutralColorPalettes})),(0,tIn.default)(e.fontSize)),(0,nIn.default)(e)),(0,eIn.default)(e)),(0,JRn.default)(e))}var Npe=di.default;Object.defineProperty(ym,"__esModule",{value:!0});ym.defaultTheme=ym.defaultConfig=ym.DesignTokenContext=void 0;var iIn=Npe(m),oIn=cS,aIn=Npe(Tpe),MRe=Npe(Lm);ym.defaultTheme=(0,oIn.createTheme)(aIn.default);const sIn=ym.defaultConfig={token:MRe.default,override:{override:MRe.default},hashed:!0};ym.DesignTokenContext=iIn.default.createContext(sIn);var nf={},lIn=Qs.default;Object.defineProperty(nf,"__esModule",{value:!0});nf.defaultPrefixCls=nf.defaultIconPrefixCls=nf.Variants=nf.ConfigContext=nf.ConfigConsumer=void 0;var cIn=lIn(m);const PRe=nf.defaultPrefixCls="ant",uIn=nf.defaultIconPrefixCls="anticon";nf.Variants=["outlined","borderless","filled"];const dIn=(e,n)=>n||(e?`${PRe}-${e}`:PRe),fIn=nf.ConfigContext=cIn.createContext({getPrefixCls:dIn,iconPrefixCls:uIn}),{Consumer:pIn}=fIn;nf.ConfigConsumer=pIn;var jH={},cXe=di.default;Object.defineProperty(jH,"__esModule",{value:!0});jH.getStyle=uXe;jH.registerTheme=vIn;var ARe=Qk,uK=lL,hIn=cXe(oH),gIn=mw;cXe(Sp);const mIn=`-ant-${Date.now()}-${Math.random()}`;function uXe(e,n){const r={},i=(s,l)=>{let c=s.clone();return c=(l==null?void 0:l(c))||c,c.toRgbString()},o=(s,l)=>{const c=new uK.FastColor(s),u=(0,ARe.generate)(c.toRgbString());r[`${l}-color`]=i(c),r[`${l}-color-disabled`]=u[1],r[`${l}-color-hover`]=u[4],r[`${l}-color-active`]=u[6],r[`${l}-color-outline`]=c.clone().setA(.2).toRgbString(),r[`${l}-color-deprecated-bg`]=u[0],r[`${l}-color-deprecated-border`]=u[2]};if(n.primaryColor){o(n.primaryColor,"primary");const s=new uK.FastColor(n.primaryColor),l=(0,ARe.generate)(s.toRgbString());l.forEach((u,d)=>{r[`primary-${d+1}`]=u}),r["primary-color-deprecated-l-35"]=i(s,u=>u.lighten(35)),r["primary-color-deprecated-l-20"]=i(s,u=>u.lighten(20)),r["primary-color-deprecated-t-20"]=i(s,u=>u.tint(20)),r["primary-color-deprecated-t-50"]=i(s,u=>u.tint(50)),r["primary-color-deprecated-f-12"]=i(s,u=>u.setA(u.a*.12));const c=new uK.FastColor(l[0]);r["primary-color-active-deprecated-f-30"]=i(c,u=>u.setA(u.a*.3)),r["primary-color-active-deprecated-d-02"]=i(c,u=>u.darken(2))}return n.successColor&&o(n.successColor,"success"),n.warningColor&&o(n.warningColor,"warning"),n.errorColor&&o(n.errorColor,"error"),n.infoColor&&o(n.infoColor,"info"),`
:root {
${Object.keys(r).map(s=>`--${e}-${s}: ${r[s]};`).join(`
`)}
}
`.trim()}function vIn(e,n){const r=uXe(e,n);(0,hIn.default)()&&(0,gIn.updateCSS)(r,`${mIn}-dynamic-theme`)}var mC={},yIn=Qs.default;Object.defineProperty(mC,"__esModule",{value:!0});mC.default=mC.DisabledContextProvider=void 0;var joe=yIn(m);const Uoe=joe.createContext(!1),_In=e=>{let{children:n,disabled:r}=e;const i=joe.useContext(Uoe);return joe.createElement(Uoe.Provider,{value:r??i},n)};mC.DisabledContextProvider=_In;mC.default=Uoe;var UH={},vC={},bIn=Qs.default;Object.defineProperty(vC,"__esModule",{value:!0});vC.default=vC.SizeContextProvider=void 0;var Hoe=bIn(m);const zoe=Hoe.createContext(void 0),SIn=e=>{let{children:n,size:r}=e;const i=Hoe.useContext(zoe);return Hoe.createElement(zoe.Provider,{value:r||i},n)};vC.SizeContextProvider=SIn;vC.default=zoe;var dXe=di.default;Object.defineProperty(UH,"__esModule",{value:!0});UH.default=void 0;var DRe=m,EIn=dXe(mC),CIn=dXe(vC);function wIn(){const e=(0,DRe.useContext)(EIn.default),n=(0,DRe.useContext)(CIn.default);return{componentDisabled:e,componentSize:n}}UH.default=wIn;var Mpe={},HH={},fXe=di.default;Object.defineProperty(HH,"__esModule",{value:!0});HH.default=void 0;var kRe=fXe(zC),xIn=fXe(xd);function TIn(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=new Set;function o(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=i.has(a);if((0,xIn.default)(!c,"Warning: There may be circular references"),c)return!1;if(a===s)return!0;if(r&&l>1)return!1;i.add(a);var u=l+1;if(Array.isArray(a)){if(!Array.isArray(s)||a.length!==s.length)return!1;for(var d=0;d<a.length;d++)if(!o(a[d],s[d],u))return!1;return!0}if(a&&s&&(0,kRe.default)(a)==="object"&&(0,kRe.default)(s)==="object"){var f=Object.keys(a);return f.length!==Object.keys(s).length?!1:f.every(function(p){return o(a[p],s[p],u)})}return!1}return o(e,n)}HH.default=TIn;var FI={};const pXe=UD(dMt);var Ppe={},zH={};Object.defineProperty(zH,"__esModule",{value:!0});zH.PresetColors=void 0;zH.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 n.PresetColors}});var n=zH})(Ppe);var qh={},VH={},GH={};Object.defineProperty(GH,"__esModule",{value:!0});GH.default=void 0;GH.default="5.23.2";var OIn=di.default;Object.defineProperty(VH,"__esModule",{value:!0});VH.default=void 0;var RIn=OIn(GH);VH.default=RIn.default;var Ape={},WH={};Object.defineProperty(WH,"__esModule",{value:!0});WH.default=void 0;var _4=lL;function dK(e){return e>=0&&e<=255}function IIn(e,n){const{r,g:i,b:o,a}=new _4.FastColor(e).toRgb();if(a<1)return e;const{r:s,g:l,b:c}=new _4.FastColor(n).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((r-s*(1-u))/u),f=Math.round((i-l*(1-u))/u),p=Math.round((o-c*(1-u))/u);if(dK(d)&&dK(f)&&dK(p))return new _4.FastColor({r:d,g:f,b:p,a:Math.round(u*100)/100}).toRgbString()}return new _4.FastColor({r,g:i,b:o,a:1}).toRgbString()}WH.default=IIn;var hXe=di.default;Object.defineProperty(Ape,"__esModule",{value:!0});Ape.default=PIn;var fK=lL,NIn=hXe(Lm),b4=hXe(WH),MIn=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function PIn(e){const{override:n}=e,r=MIn(e,["override"]),i=Object.assign({},n);Object.keys(NIn.default).forEach(p=>{delete i[p]});const o=Object.assign(Object.assign({},r),i),a=480,s=576,l=768,c=992,u=1200,d=1600;if(o.motion===!1){const p="0s";o.motionDurationFast=p,o.motionDurationMid=p,o.motionDurationSlow=p}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:(0,b4.default)(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:(0,b4.default)(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:(0,b4.default)(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:(0,b4.default)(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,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:a,screenXSMin:a,screenXSMax:s-1,screenSM:s,screenSMMin:s,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
0 1px 2px -2px ${new fK.FastColor("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new fK.FastColor("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new fK.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)"}),i)}var YH=di.default;Object.defineProperty(qh,"__esModule",{value:!0});qh.default=jIn;qh.unitless=qh.ignore=qh.getComputedToken=void 0;var AIn=YH(m),DIn=cS,kIn=YH(VH),LRe=ym,LIn=YH(Lm),gXe=YH(Ape),$Re=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const $In=qh.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},FIn=qh.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},BIn={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},Dpe=(e,n,r)=>{const i=r.getDerivativeToken(e),{override:o}=n,a=$Re(n,["override"]);let s=Object.assign(Object.assign({},i),{override:o});return s=(0,gXe.default)(s),a&&Object.entries(a).forEach(l=>{let[c,u]=l;const{theme:d}=u,f=$Re(u,["theme"]);let p=f;d&&(p=Dpe(Object.assign(Object.assign({},s),f),{override:f},d)),s[c]=p}),s};qh.getComputedToken=Dpe;function jIn(){const{token:e,hashed:n,theme:r,override:i,cssVar:o}=AIn.default.useContext(LRe.DesignTokenContext),a=`${kIn.default}-${n||""}`,s=r||LRe.defaultTheme,[l,c,u]=(0,DIn.useCacheToken)(s,[LIn.default,e],{salt:a,override:i,getComputedToken:Dpe,formatToken:gXe.default,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:$In,ignore:FIn,preserve:BIn}});return[s,u,n?c:"",l,o]}var p0={},ts={};Object.defineProperty(ts,"__esModule",{value:!0});ts.textEllipsis=ts.resetIcon=ts.resetComponent=ts.operationUnit=ts.genLinkStyle=ts.genIconStyle=ts.genFocusStyle=ts.genFocusOutline=ts.genCommonStyle=ts.clearFix=void 0;var UIn=cS;ts.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const HIn=function(e){let n=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:n?"inherit":e.fontFamily}};ts.resetComponent=HIn;const mXe=()=>({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"}});ts.resetIcon=mXe;const zIn=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});ts.clearFix=zIn;const VIn=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"}}});ts.genLinkStyle=VIn;const GIn=(e,n,r,i)=>{const o=`[class^="${n}"], [class*=" ${n}"]`,a=r?`.${r}`:o,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return i!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},l),s),{[o]:s})}};ts.genCommonStyle=GIn;const vXe=(e,n)=>({outline:`${(0,UIn.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:n??1,transition:"outline-offset 0s, outline 0s"});ts.genFocusOutline=vXe;const yXe=(e,n)=>({"&:focus-visible":Object.assign({},vXe(e,n))});ts.genFocusStyle=yXe;const WIn=e=>({[`.${e}`]:Object.assign(Object.assign({},mXe()),{[`.${e} .${e}-icon`]:{display:"block"}})});ts.genIconStyle=WIn;const YIn=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"},yXe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});ts.operationUnit=YIn;var qIn=Qs.default;Object.defineProperty(p0,"__esModule",{value:!0});p0.genSubStyleComponent=p0.genStyleHooks=p0.genComponentStyleHook=void 0;var FRe=m,KIn=pXe,pK=nf,hK=ts,BRe=qIn(qh);const{genStyleHooks:XIn,genComponentStyleHook:QIn,genSubStyleComponent:ZIn}=(0,KIn.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:n}=(0,FRe.useContext)(pK.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:n}},useToken:()=>{const[e,n,r,i,o]=(0,BRe.default)();return{theme:e,realToken:n,hashId:r,token:i,cssVar:o}},useCSP:()=>{const{csp:e}=(0,FRe.useContext)(pK.ConfigContext);return e??{}},getResetStyles:(e,n)=>{var r;return[{"&":(0,hK.genLinkStyle)(e)},(0,hK.genIconStyle)((r=n==null?void 0:n.prefix.iconPrefixCls)!==null&&r!==void 0?r:pK.defaultIconPrefixCls)]},getCommonStyle:hK.genCommonStyle,getCompUnitless:()=>BRe.unitless});p0.genSubStyleComponent=ZIn;p0.genComponentStyleHook=QIn;p0.genStyleHooks=XIn;var kpe={};Object.defineProperty(kpe,"__esModule",{value:!0});kpe.default=eNn;var JIn=Ppe;function eNn(e,n){return JIn.PresetColors.reduce((r,i)=>{const o=e[`${i}1`],a=e[`${i}3`],s=e[`${i}6`],l=e[`${i}7`];return Object.assign(Object.assign({},r),n(i,{lightColor:o,lightBorderColor:a,darkColor:s,textColor:l}))},{})}var qH={},tNn=di.default;Object.defineProperty(qH,"__esModule",{value:!0});qH.default=void 0;var nNn=cS,rNn=ts,iNn=tNn(qh);const oNn=(e,n)=>{const[r,i]=(0,iNn.default)();return(0,nNn.useStyleRegister)({theme:r,token:i,hashId:"",path:["ant-design-icons",e],nonce:()=>n==null?void 0:n.nonce,layer:{name:"antd"}},()=>[(0,rNn.genIconStyle)(e)])};qH.default=oNn;(function(e){var n=di.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DesignTokenContext",{enumerable:!0,get:function(){return d.DesignTokenContext}}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return o.PresetColors}}),Object.defineProperty(e,"calc",{enumerable:!0,get:function(){return i.genCalc}}),Object.defineProperty(e,"defaultConfig",{enumerable:!0,get:function(){return d.defaultConfig}}),Object.defineProperty(e,"genComponentStyleHook",{enumerable:!0,get:function(){return l.genComponentStyleHook}}),Object.defineProperty(e,"genPresetColor",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"genStyleHooks",{enumerable:!0,get:function(){return l.genStyleHooks}}),Object.defineProperty(e,"genSubStyleComponent",{enumerable:!0,get:function(){return l.genSubStyleComponent}}),Object.defineProperty(e,"getLineHeight",{enumerable:!0,get:function(){return a.getLineHeight}}),Object.defineProperty(e,"mergeToken",{enumerable:!0,get:function(){return i.mergeToken}}),Object.defineProperty(e,"statistic",{enumerable:!0,get:function(){return i.statistic}}),Object.defineProperty(e,"statisticToken",{enumerable:!0,get:function(){return i.statisticToken}}),Object.defineProperty(e,"useResetIconStyle",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"useStyleRegister",{enumerable:!0,get:function(){return r.useStyleRegister}}),Object.defineProperty(e,"useToken",{enumerable:!0,get:function(){return s.default}});var r=cS,i=pXe,o=Ppe,a=cL,s=n(qh),l=p0,c=n(kpe),u=n(qH),d=ym})(FI);var KH={},aNn=Qs.default;Object.defineProperty(KH,"__esModule",{value:!0});KH.default=void 0;var sNn=aNn(m);const lNn=Object.assign({},sNn),{useId:jRe}=lNn,cNn=()=>"",uNn=typeof jRe>"u"?cNn:jRe;KH.default=uNn;var Lpe=di.default;Object.defineProperty(Mpe,"__esModule",{value:!0});Mpe.default=gNn;var dNn=Lpe(PH),fNn=Lpe(HH),pNn=Sp,URe=FI,hNn=Lpe(KH);function gNn(e,n,r){var i;(0,pNn.devUseWarning)("ConfigProvider");const o=e||{},a=o.inherit===!1||!n?Object.assign(Object.assign({},URe.defaultConfig),{hashed:(i=n==null?void 0:n.hashed)!==null&&i!==void 0?i:URe.defaultConfig.hashed,cssVar:n==null?void 0:n.cssVar}):n,s=(0,hNn.default)();return(0,dNn.default)(()=>{var l,c;if(!e)return n;const u=Object.assign({},a.components);Object.keys(e.components||{}).forEach(p=>{u[p]=Object.assign(Object.assign({},u[p]),e.components[p])});const d=`css-var-${s.replace(/:/g,"")}`,f=((l=o.cssVar)!==null&&l!==void 0?l:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((c=o.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:u,cssVar:f})},[o,a],(l,c)=>l.some((u,d)=>{const f=c[d];return!(0,fNn.default)(u,f,!0)}))}var $pe={};const mNn=UD(HMt);var vNn=Qs.default;Object.defineProperty($pe,"__esModule",{value:!0});$pe.default=bNn;var HRe=vNn(m),yNn=mNn,_Nn=FI;function bNn(e){const{children:n}=e,[,r]=(0,_Nn.useToken)(),{motion:i}=r,o=HRe.useRef(!1);return o.current=o.current||i===!1,o.current?HRe.createElement(yNn.Provider,{motion:i},n):n}var XH={},SNn=Qs.default;Object.defineProperty(XH,"__esModule",{value:!0});XH.default=void 0;SNn(m);XH.default=()=>null;var _Xe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.useResetIconStyle}});var n=FI})(_Xe);(function(e){"use client";var n=di.default,r=Qs.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return v.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return v.ConfigContext}}),Object.defineProperty(e,"Variants",{enumerable:!0,get:function(){return v.Variants}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return v.defaultIconPrefixCls}}),Object.defineProperty(e,"defaultPrefixCls",{enumerable:!0,get:function(){return v.defaultPrefixCls}}),e.warnContext=e.globalConfig=void 0;var i=r(m),o=cS,a=n(PI),s=n(PH),l=AH,c=r(Sp),u=n(DH),d=r(oXe),f=n($I),p=n(HC),h=ym,g=n(Lm),v=nf,y=jH,_=mC,S=n(UH),b=n(Mpe),E=n($pe),w=n(XH),C=r(vC),x=n(_Xe),T=function(K,H){var G={};for(var Q in K)Object.prototype.hasOwnProperty.call(K,Q)&&H.indexOf(Q)<0&&(G[Q]=K[Q]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,Q=Object.getOwnPropertySymbols(K);le<Q.length;le++)H.indexOf(Q[le])<0&&Object.prototype.propertyIsEnumerable.call(K,Q[le])&&(G[Q[le]]=K[Q[le]]);return G};e.warnContext=null,e.configConsumerProps=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale"];const R=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let O,M,P,k;function $(){return O||v.defaultPrefixCls}function U(){return M||v.defaultIconPrefixCls}function z(K){return Object.keys(K).some(H=>H.endsWith("Color"))}const D=K=>{const{prefixCls:H,iconPrefixCls:G,theme:Q,holderRender:le}=K;H!==void 0&&(O=H),G!==void 0&&(M=G),"holderRender"in K&&(k=le),Q&&(z(Q)?(0,y.registerTheme)($(),Q):P=Q)},B=()=>({getPrefixCls:(K,H)=>H||(K?`${$()}-${K}`:$()),getIconPrefixCls:U,getRootPrefixCls:()=>O||$(),getTheme:()=>P,holderRender:k});e.globalConfig=B;const Y=K=>{const{children:H,csp:G,autoInsertSpaceInButton:Q,alert:le,anchor:Z,form:j,locale:F,componentSize:te,direction:oe,space:de,splitter:pe,virtual:me,dropdownMatchSelectWidth:ve,popupMatchSelectWidth:he,popupOverflow:be,legacyLocale:we,parentContext:De,iconPrefixCls:Ae,theme:Ee,componentDisabled:Re,segmented:Te,statistic:Oe,spin:Ne,calendar:je,carousel:ne,cascader:J,collapse:ae,typography:Se,checkbox:xe,descriptions:ue,divider:Me,drawer:$e,skeleton:ge,steps:Ve,image:st,layout:Je,list:ot,mentions:Xe,modal:Ze,progress:bt,result:at,slider:pt,breadcrumb:Ct,menu:It,pagination:Wt,input:Bt,textArea:Vt,empty:rn,badge:tt,radio:it,rate:nt,switch:vt,transfer:kt,avatar:Dt,message:Kt,tag:Ht,table:tn,card:on,tabs:sn,timeline:Jt,timePicker:En,upload:Pt,notification:Qt,tree:ln,colorPicker:jt,datePicker:Lt,rangePicker:en,flex:Ue,wave:Zt,dropdown:Et,warning:Gt,tour:zt,tooltip:Vn,popover:sr,popconfirm:A,floatButtonGroup:W,variant:ce,inputNumber:Pe,treeSelect:qe}=K,gt=i.useCallback((yn,Sn)=>{const{prefixCls:ur}=K;if(Sn)return Sn;const qr=ur||De.getPrefixCls("");return yn?`${qr}-${yn}`:qr},[De.getPrefixCls,K.prefixCls]),Yt=Ae||De.iconPrefixCls||v.defaultIconPrefixCls,Nn=G||De.csp;(0,x.default)(Yt,Nn);const Jn=(0,b.default)(Ee,De.theme,{prefixCls:gt("")}),Ci={csp:Nn,autoInsertSpaceInButton:Q,alert:le,anchor:Z,locale:F||we,direction:oe,space:de,splitter:pe,virtual:me,popupMatchSelectWidth:he??ve,popupOverflow:be,getPrefixCls:gt,iconPrefixCls:Yt,theme:Jn,segmented:Te,statistic:Oe,spin:Ne,calendar:je,carousel:ne,cascader:J,collapse:ae,typography:Se,checkbox:xe,descriptions:ue,divider:Me,drawer:$e,skeleton:ge,steps:Ve,image:st,input:Bt,textArea:Vt,layout:Je,list:ot,mentions:Xe,modal:Ze,progress:bt,result:at,slider:pt,breadcrumb:Ct,menu:It,pagination:Wt,empty:rn,badge:tt,radio:it,rate:nt,switch:vt,transfer:kt,avatar:Dt,message:Kt,tag:Ht,table:tn,card:on,tabs:sn,timeline:Jt,timePicker:En,upload:Pt,notification:Qt,tree:ln,colorPicker:jt,datePicker:Lt,rangePicker:en,flex:Ue,wave:Zt,dropdown:Et,warning:Gt,tour:zt,tooltip:Vn,popover:sr,popconfirm:A,floatButtonGroup:W,variant:ce,inputNumber:Pe,treeSelect:qe},wi=Object.assign({},De);Object.keys(Ci).forEach(yn=>{Ci[yn]!==void 0&&(wi[yn]=Ci[yn])}),R.forEach(yn=>{const Sn=K[yn];Sn&&(wi[yn]=Sn)}),typeof Q<"u"&&(wi.button=Object.assign({autoInsertSpace:Q},wi.button));const to=(0,s.default)(()=>wi,wi,(yn,Sn)=>{const ur=Object.keys(yn),qr=Object.keys(Sn);return ur.length!==qr.length||ur.some(zi=>yn[zi]!==Sn[zi])}),Vr=i.useMemo(()=>({prefixCls:Yt,csp:Nn}),[Yt,Nn]);let wn=i.createElement(i.Fragment,null,i.createElement(w.default,{dropdownMatchSelectWidth:ve}),H);const Bn=i.useMemo(()=>{var yn,Sn,ur,qr;return(0,l.merge)(((yn=p.default.Form)===null||yn===void 0?void 0:yn.defaultValidateMessages)||{},((ur=(Sn=to.locale)===null||Sn===void 0?void 0:Sn.Form)===null||ur===void 0?void 0:ur.defaultValidateMessages)||{},((qr=to.form)===null||qr===void 0?void 0:qr.validateMessages)||{},(j==null?void 0:j.validateMessages)||{})},[to,j==null?void 0:j.validateMessages]);Object.keys(Bn).length>0&&(wn=i.createElement(u.default.Provider,{value:Bn},wn)),F&&(wn=i.createElement(d.default,{locale:F,_ANT_MARK__:d.ANT_MARK},wn)),(Yt||Nn)&&(wn=i.createElement(a.default.Provider,{value:Vr},wn)),te&&(wn=i.createElement(C.SizeContextProvider,{size:te},wn)),wn=i.createElement(E.default,null,wn);const ni=i.useMemo(()=>{const yn=Jn||{},{algorithm:Sn,token:ur,components:qr,cssVar:zi}=yn,Qo=T(yn,["algorithm","token","components","cssVar"]),gr=Sn&&(!Array.isArray(Sn)||Sn.length>0)?(0,o.createTheme)(Sn):h.defaultTheme,Oo={};Object.entries(qr||{}).forEach(Er=>{let[nr,lr]=Er;const Kr=Object.assign({},lr);"algorithm"in Kr&&(Kr.algorithm===!0?Kr.theme=gr:(Array.isArray(Kr.algorithm)||typeof Kr.algorithm=="function")&&(Kr.theme=(0,o.createTheme)(Kr.algorithm)),delete Kr.algorithm),Oo[nr]=Kr});const Pa=Object.assign(Object.assign({},g.default),ur);return Object.assign(Object.assign({},Qo),{theme:gr,token:Pa,components:Oo,override:Object.assign({override:Pa},Oo),cssVar:zi})},[Jn]);return Ee&&(wn=i.createElement(h.DesignTokenContext.Provider,{value:ni},wn)),to.warning&&(wn=i.createElement(c.WarningContext.Provider,{value:to.warning},wn)),Re!==void 0&&(wn=i.createElement(_.DisabledContextProvider,{disabled:Re},wn)),i.createElement(v.ConfigContext.Provider,{value:to},wn)},q=K=>{const H=i.useContext(v.ConfigContext),G=i.useContext(f.default);return i.createElement(Y,Object.assign({parentContext:H,legacyLocale:G},K))};q.ConfigContext=v.ConfigContext,q.SizeContext=C.default,q.config=D,q.useConfig=S.default,Object.defineProperty(q,"SizeContext",{get:()=>C.default}),e.default=q})(Epe);var dL={},ENn=Qs.default;Object.defineProperty(dL,"__esModule",{value:!0});dL.LayoutContext=void 0;var CNn=ENn(m);dL.LayoutContext=CNn.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var Fpe={},Bpe={},jpe={},wNn=di.default;Object.defineProperty(jpe,"__esModule",{value:!0});jpe.default=INn;var xNn=wNn(zC),TNn=Symbol.for("react.element"),ONn=Symbol.for("react.transitional.element"),RNn=Symbol.for("react.fragment");function INn(e){return e&&(0,xNn.default)(e)==="object"&&(e.$$typeof===TNn||e.$$typeof===ONn)&&e.type===RNn}var bXe=di.default;Object.defineProperty(Bpe,"__esModule",{value:!0});Bpe.default=Voe;var NNn=bXe(jpe),MNn=bXe(m);function Voe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return MNn.default.Children.forEach(e,function(i){i==null&&!n.keepEmpty||(Array.isArray(i)?r=r.concat(Voe(i)):(0,NNn.default)(i)&&i.props?r=r.concat(Voe(i.props.children,n)):r.push(i))}),r}var ZO={},Goe={exports:{}},QH={},Upe={};Object.defineProperty(Upe,"__esModule",{value:!0});var PNn={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"};Upe.default=PNn;var ANn=Qs.default,Hpe=di.default;Object.defineProperty(QH,"__esModule",{value:!0});QH.default=void 0;var DNn=Hpe(iH),SXe=ANn(m),kNn=Hpe(Upe),LNn=Hpe(MI),$Nn=function(n,r){return SXe.createElement(LNn.default,(0,DNn.default)({},n,{ref:r,icon:kNn.default}))},FNn=SXe.forwardRef($Nn);QH.default=FNn;(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;const r=i(QH);function i(a){return a&&a.__esModule?a:{default:a}}const o=r;n.default=o,e.exports=o})(Goe,Goe.exports);var BNn=Goe.exports,Woe={exports:{}},ZH={},zpe={};Object.defineProperty(zpe,"__esModule",{value:!0});var jNn={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"};zpe.default=jNn;var UNn=Qs.default,Vpe=di.default;Object.defineProperty(ZH,"__esModule",{value:!0});ZH.default=void 0;var HNn=Vpe(iH),EXe=UNn(m),zNn=Vpe(zpe),VNn=Vpe(MI),GNn=function(n,r){return EXe.createElement(VNn.default,(0,HNn.default)({},n,{ref:r,icon:zNn.default}))},WNn=EXe.forwardRef(GNn);ZH.default=WNn;(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;const r=i(ZH);function i(a){return a&&a.__esModule?a:{default:a}}const o=r;n.default=o,e.exports=o})(Woe,Woe.exports);var YNn=Woe.exports,Yoe={exports:{}},JH={},Gpe={};Object.defineProperty(Gpe,"__esModule",{value:!0});var qNn={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"};Gpe.default=qNn;var KNn=Qs.default,Wpe=di.default;Object.defineProperty(JH,"__esModule",{value:!0});JH.default=void 0;var XNn=Wpe(iH),CXe=KNn(m),QNn=Wpe(Gpe),ZNn=Wpe(MI),JNn=function(n,r){return CXe.createElement(ZNn.default,(0,XNn.default)({},n,{ref:r,icon:QNn.default}))},eMn=CXe.forwardRef(JNn);JH.default=eMn;(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;const r=i(JH);function i(a){return a&&a.__esModule?a:{default:a}}const o=r;n.default=o,e.exports=o})(Yoe,Yoe.exports);var tMn=Yoe.exports,ez={},gy={};Object.defineProperty(gy,"__esModule",{value:!0});gy.prepareComponentToken=gy.default=gy.DEPRECATED_TOKENS=void 0;var nMn=cS,rMn=FI;const iMn=e=>{const{antCls:n,componentCls:r,colorText:i,footerBg:o,headerHeight:a,headerPadding:s,headerColor:l,footerPadding:c,fontSize:u,bodyBg:d,headerBg:f}=e;return{[r]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${r}-has-sider`]:{flexDirection:"row",[`> ${r}, > ${r}-content`]:{width:0}},[`${r}-header, &${r}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${r}-header`]:{height:a,padding:s,color:l,lineHeight:(0,nMn.unit)(a),background:f,[`${n}-menu`]:{lineHeight:"inherit"}},[`${r}-footer`]:{padding:c,color:i,fontSize:u,background:o},[`${r}-content`]:{flex:"auto",color:i,minHeight:0}}},wXe=e=>{const{colorBgLayout:n,controlHeight:r,controlHeightLG:i,colorText:o,controlHeightSM:a,marginXXS:s,colorTextLightSolid:l,colorBgContainer:c}=e,u=i*1.25;return{colorBgHeader:"#001529",colorBgBody:n,colorBgTrigger:"#002140",bodyBg:n,headerBg:"#001529",headerHeight:r*2,headerPadding:`0 ${u}px`,headerColor:o,footerPadding:`${a}px ${u}px`,footerBg:n,siderBg:"#001529",triggerHeight:i+s*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:i,zeroTriggerHeight:i,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}};gy.prepareComponentToken=wXe;const oMn=gy.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];gy.default=(0,rMn.genStyleHooks)("Layout",e=>[iMn(e)],wXe,{deprecatedTokens:oMn});Object.defineProperty(ez,"__esModule",{value:!0});ez.default=void 0;var bM=cS,zRe=gy,aMn=FI;const sMn=e=>{const{componentCls:n,siderBg:r,motionDurationMid:i,motionDurationSlow:o,antCls:a,triggerHeight:s,triggerColor:l,triggerBg:c,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:f,borderRadiusLG:p,lightSiderBg:h,lightTriggerColor:g,lightTriggerBg:v,bodyBg:y}=e;return{[n]:{position:"relative",minWidth:0,background:r,transition:`all ${i}, background 0s`,"&-has-trigger":{paddingBottom:s},"&-right":{order:1},[`${n}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:"auto"}},[`${n}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:s,color:l,lineHeight:(0,bM.unit)(s),textAlign:"center",background:c,cursor:"pointer",transition:`all ${i}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:u,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:f,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:r,borderRadius:`0 ${(0,bM.unit)(p)} ${(0,bM.unit)(p)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderRadius:`${(0,bM.unit)(p)} 0 0 ${(0,bM.unit)(p)}`}}},"&-light":{background:h,[`${n}-trigger`]:{color:g,background:v},[`${n}-zero-width-trigger`]:{color:g,background:v,border:`1px solid ${y}`,borderInlineStart:0}}}}};ez.default=(0,aMn.genStyleHooks)(["Layout","Sider"],e=>[sMn(e)],zRe.prepareComponentToken,{deprecatedTokens:zRe.DEPRECATED_TOKENS});var BI=di.default,lMn=Qs.default;Object.defineProperty(ZO,"__esModule",{value:!0});ZO.default=ZO.SiderContext=void 0;var Dv=lMn(m),Gd=Dv,cMn=BI(BNn),VRe=BI(YNn),GRe=BI(tMn),WRe=BI(Q7),uMn=BI(MH),dMn=Epe,fMn=dL,pMn=BI(ez),hMn=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const YRe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},gMn=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),mMn=ZO.SiderContext=Gd.createContext({}),vMn=(()=>{let e=0;return function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${n}${e}`}})(),yMn=Gd.forwardRef((e,n)=>{const{prefixCls:r,className:i,trigger:o,children:a,defaultCollapsed:s=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:p=80,zeroWidthTriggerStyle:h,breakpoint:g,onCollapse:v,onBreakpoint:y}=e,_=hMn(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:S}=(0,Dv.useContext)(fMn.LayoutContext),[b,E]=(0,Dv.useState)("collapsed"in e?e.collapsed:s),[w,C]=(0,Dv.useState)(!1);(0,Dv.useEffect)(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const x=(F,te)=>{"collapsed"in e||E(F),v==null||v(F,te)},{getPrefixCls:T,direction:R}=(0,Dv.useContext)(dMn.ConfigContext),O=T("layout-sider",r),[M,P,k]=(0,pMn.default)(O),$=(0,Dv.useRef)(null);$.current=F=>{C(F.matches),y==null||y(F.matches),b!==F.matches&&x(F.matches,"responsive")},(0,Dv.useEffect)(()=>{function F(oe){return $.current(oe)}let te;if(typeof window<"u"){const{matchMedia:oe}=window;if(oe&&g&&g in YRe){te=oe(`screen and (max-width: ${YRe[g]})`);try{te.addEventListener("change",F)}catch{te.addListener(F)}F(te)}}return()=>{try{te==null||te.removeEventListener("change",F)}catch{te==null||te.removeListener(F)}}},[g]),(0,Dv.useEffect)(()=>{const F=vMn("ant-sider-");return S.addSider(F),()=>S.removeSider(F)},[]);const U=()=>{x(!b,"clickTrigger")},z=(0,uMn.default)(_,["collapsed"]),D=b?p:f,B=gMn(D)?`${D}px`:String(D),Y=parseFloat(String(p||0))===0?Gd.createElement("span",{onClick:U,className:(0,WRe.default)(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${d?"right":"left"}`),style:h},o||Gd.createElement(cMn.default,null)):null,q=R==="rtl"==!d,G={expanded:q?Gd.createElement(GRe.default,null):Gd.createElement(VRe.default,null),collapsed:q?Gd.createElement(VRe.default,null):Gd.createElement(GRe.default,null)}[b?"collapsed":"expanded"],Q=o!==null?Y||Gd.createElement("div",{className:`${O}-trigger`,onClick:U,style:{width:B}},o||G):null,le=Object.assign(Object.assign({},c),{flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B}),Z=(0,WRe.default)(O,`${O}-${l}`,{[`${O}-collapsed`]:!!b,[`${O}-has-trigger`]:u&&o!==null&&!Y,[`${O}-below`]:!!w,[`${O}-zero-width`]:parseFloat(B)===0},i,P,k),j=Gd.useMemo(()=>({siderCollapsed:b}),[b]);return M(Gd.createElement(mMn.Provider,{value:j},Gd.createElement("aside",Object.assign({className:Z},z,{style:le,ref:n}),Gd.createElement("div",{className:`${O}-children`},a),u||w&&Y?Q:null)))});ZO.default=yMn;var xXe=di.default;Object.defineProperty(Fpe,"__esModule",{value:!0});Fpe.default=SMn;var _Mn=xXe(Bpe),bMn=xXe(ZO);function SMn(e,n,r){return typeof r=="boolean"?r:e.length?!0:(0,_Mn.default)(n).some(o=>o.type===bMn.default)}var tz,nz,EMn=Qs.default,fL=di.default;Object.defineProperty(ty,"__esModule",{value:!0});ty.default=ty.Header=nz=ty.Footer=tz=ty.Content=void 0;var CMn=fL(JKe),ap=EMn(m),TXe=fL(Q7),wMn=fL(MH),qoe=Epe,xMn=dL,TMn=fL(Fpe),OXe=fL(gy),RXe=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function rz(e){let{suffixCls:n,tagName:r,displayName:i}=e;return o=>ap.forwardRef((s,l)=>ap.createElement(o,Object.assign({ref:l,suffixCls:n,tagName:r},s)))}const Ype=ap.forwardRef((e,n)=>{const{prefixCls:r,suffixCls:i,className:o,tagName:a}=e,s=RXe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=ap.useContext(qoe.ConfigContext),c=l("layout",r),[u,d,f]=(0,OXe.default)(c),p=i?`${c}-${i}`:c;return u(ap.createElement(a,Object.assign({className:(0,TXe.default)(r||p,o,d,f),ref:n},s)))}),OMn=ap.forwardRef((e,n)=>{const{direction:r}=ap.useContext(qoe.ConfigContext),[i,o]=ap.useState([]),{prefixCls:a,className:s,rootClassName:l,children:c,hasSider:u,tagName:d,style:f}=e,p=RXe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=(0,wMn.default)(p,["suffixCls"]),{getPrefixCls:g,layout:v}=ap.useContext(qoe.ConfigContext),y=g("layout",a),_=(0,TMn.default)(i,c,u),[S,b,E]=(0,OXe.default)(y),w=(0,TXe.default)(y,{[`${y}-has-sider`]:_,[`${y}-rtl`]:r==="rtl"},v==null?void 0:v.className,s,l,b,E),C=ap.useMemo(()=>({siderHook:{addSider:x=>{o(T=>[].concat((0,CMn.default)(T),[x]))},removeSider:x=>{o(T=>T.filter(R=>R!==x))}}}),[]);return S(ap.createElement(xMn.LayoutContext.Provider,{value:C},ap.createElement(d,Object.assign({ref:n,className:w,style:Object.assign(Object.assign({},v==null?void 0:v.style),f)},h),c)))}),RMn=rz({tagName:"div",displayName:"Layout"})(OMn);ty.Header=rz({suffixCls:"header",tagName:"header",displayName:"Header"})(Ype);nz=ty.Footer=rz({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Ype);tz=ty.Content=rz({suffixCls:"content",tagName:"main",displayName:"Content"})(Ype);ty.default=RMn;function u_(){const{isDarkMode:e}=Y4e(),{token:n}=cu.useToken(),r={borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},i=260,o={borderBottom:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},a={borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},s={minHeight:120,overflowY:"auto"},l={height:20,fontSize:12,backgroundColor:n.colorBgContainer,color:n.colorText};return{leftSiderStyle:r,leftSiderWidth:i,headerStyle:o,rightSiderStyle:a,contentStyle:s,footerStyle:l}}const{Header:IMn,Sider:NMn,Content:MMn}=bo,IXe=()=>{const e=Fr();m.useContext(Xl);const n=Df(),{headerStyle:r,leftSiderStyle:i,leftSiderWidth:o,contentStyle:a}=u_(),[s,l]=m.useState([]);m.useEffect(()=>{const u=[{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"}]}];l(u)},[e]);const c=u=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),u),n("/setting/"+u.key)};return N.jsxs(bo,{children:[N.jsx(NMn,{style:i,width:o,children:N.jsx(nv,{mode:"inline",onClick:c,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:s})}),N.jsxs(bo,{children:[N.jsx(IMn,{style:r,children:e.formatMessage({id:"menu.dashboard.mine"})}),N.jsx(MMn,{style:a,children:N.jsx(AU,{})})]})]})},NXe=Ru()(Lp(Ed($p((e,n)=>({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}},addNewfriend(r){console.log("addNewfriend",r)},addDevice(r){var i;if(r.type===A4e){const o=n().devices.some(a=>a.device.uid===r.device.uid);e(o?{devices:[r,...n().devices.filter(a=>a.device.uid!==r.device.uid)]}:{devices:[r,...n().devices]}),((i=n().currentContact.device)==null?void 0:i.uid)===r.device.uid&&e({currentContact:r})}},addGroup(r){console.log("addGroup",r)},addChannel(r){console.log("addChannel",r)},addMember(r){if(r.type===Lyt){const i=n().members.some(o=>o.member.uid===r.member.uid);e(i?{members:[r,...n().members.filter(o=>o.member.uid!==r.member.uid)]}:{members:[...n().members,r]})}},addFriend(r){console.log("addFriend",r)},setCurrentContact:r=>{e({currentContact:r})},setMemberSelf:r=>{e({memberSelf:r})},resetContactInfo(){e({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}}})}})),{name:Ryt}))),PMn=Ru()(Lp(Ed($p(e=>({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}},memberResult:{data:{content:[]}},setCurrentMember(n){e({currentMember:n})},setMemberSelf(n){e({memberSelf:n})},setMemberResult:n=>{e({memberResult:n})},resetMembers:()=>e({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}}})})),{name:Tyt}))),MXe=Ru()(Lp(Ed($p((e,n)=>({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""},insertWorkgroup(r){e(i=>{i.workgroupResult.data.content.unshift(r)})},updateWorkgroup(r){e(i=>{const o=i.workgroupResult.data.content,a=o.findIndex(s=>s.uid===r.uid);a!==-1?o[a]=r:console.warn(`Workgroup with uid ${r.uid} not found.`)})},deleteWorkgroup(r){e(i=>{const o=i.workgroupResult.data.content,a=o.findIndex(s=>s.uid===r.uid);a!==-1?o.splice(a,1):console.warn(`Workgroup with uid ${r.uid} not found.`)})},setWorkgroupResult:r=>{e({workgroupResult:r})},setWorkgroupInfo(r){e({workgroupInfo:r})},deleteWorkgroupInfo(r){const i=n().workgroupResult.data.content,o=i.findIndex(a=>a.uid===r);o!==-1?e({workgroupResult:{...n().workgroupResult,data:{content:[...i.slice(0,o),...i.slice(o+1)]}}}):console.warn("Workgroup not found in cache:",r),n().workgroupInfo.uid===r&&e({workgroupInfo:{uid:"",orgUid:""}})},resetWorkgroupInfo(){e({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""}})}})),{name:Dyt}))),g2=Ru()(Lp(Ed($p(e=>({currentProcess:null,processResult:{data:{content:[]}},setCurrentProcess(n){e({currentProcess:n})},setProcessResult(n){e({processResult:n})},resetProcess:()=>e({currentProcess:null,processResult:{data:{content:[]}}})})),{name:kyt}))),AMn=()=>{const e=ev(f=>f.deleteOrg),n=Ah(f=>f.resetThreads),r=qy(f=>f.resetMessageList),i=PMn(f=>f.resetMembers),o=VD(f=>f.removeAccessToken),a=ws(f=>f.resetUserInfo),s=NXe(f=>f.resetContactInfo),l=XC(f=>f.resetAgentInfo),c=MXe(f=>f.resetWorkgroupInfo),u=g2(f=>f.resetProcess);return{clearStorage:()=>{e(),n(),r(),i(),o(),a(),s(),l(),c(),u()}}};function qpe(){const e=VD(S=>S.accessToken),n=ws(S=>S.userInfo),r=XC(S=>S.agentInfo),i=NH(),[o,a]=m.useState(!1),{showNotification:s}=Spe(),{translateString:l}=Gp();qy(S=>S.addMessage),Ah(S=>S.updateThreadContent),m.useContext(Xl),m.useRef(!1);const c=Ah(S=>S.threads),[u,d]=m.useState(c),f=m.useCallback(()=>{if(i&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!uqt()&&i&&e&&v()},1e4);console.log("useMqtt autoCheckConnection isNetworkOnline:",i," accessToken:",e)},[i,e]),p=async()=>{},h=m.useRef(r==null?void 0:r.uid),g=m.useCallback(()=>{if(!o&&e)return setInterval(async()=>{h.current?p():console.log("useMqtt autoPingMessage currentUidRef.current:",h.current)},1e4);console.log("useMqtt autoPingMessage isNetworkOnline:",i," accessToken:",e)},[o,e,n,r]),v=()=>{console.log("useMqtt doConnect"),lqt({uid:n.uid,username:n.username,accessToken:e})},y=()=>{console.log("useMqtt useEffect doDisconnect"),Oq()},_=S=>{var b,E;(S==null?void 0:S.type)!==kP&&((b=S==null?void 0:S.user)==null?void 0:b.uid)!==(n==null?void 0:n.uid)&&((E=S==null?void 0:S.user)==null?void 0:E.uid)!==(r==null?void 0:r.uid)&&(Qxt(),console.log("playAudio"))};return m.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",i),i?v():Oq()},[i]),m.useEffect(()=>{if(r!=null&&r.uid){h.current=r==null?void 0:r.uid;const S=g();return()=>{clearInterval(S)}}else h.current=null},[r]),m.useEffect(()=>{console.log("useMqtt useEffect accessToken"),v();const S=f();return()=>{Oq(),clearInterval(S)}},[e,n]),m.useEffect(()=>{console.log("useMqtt threads change"),d(c)},[c]),m.useEffect(()=>{const S=function(b){if(console.log("useMqtt handleNewMessage",b),b.type===DP||b.type===D4e||b.type===Fee||b.type===kP||b.type===LP)return;const E=b.threadTopic,w=u.find(C=>C.topic===E);w?w.mute?console.log("useMqtt matchingThread muted",E):(console.log("useMqtt matchingThread no mute",E),s(l(c3),l(c3)),_(b)):(console.log("useMqtt matchingThread no"),s(l(c3),l(c3)),_(b))};return Qr.on(AP,S),()=>{Qr.off(AP)}},[u]),m.useEffect(()=>{console.log("useMqtt useEffect");const S=function(){console.log("handleMqttConnected"),a(!0)},b=function(){console.log("handleMqttDisconnected"),a(!1)};return Qr.on(Ree,S),Qr.on(Nee,b),Qr.on(Mee,b),Qr.on(Iee,b),Qr.on(Pee,b),Qr.on(Aee,b),()=>{console.log("un - useEffect mqttDisconnect"),Qr.off(Ree),Qr.off(Nee),Qr.off(Mee),Qr.off(Iee),Qr.off(Pee),Qr.off(Aee)}},[]),{doConnect:v,doDisconnect:y,isMqttConnected:o}}function PXe(){const{clearStorage:e}=AMn(),{doDisconnect:n}=qpe(),{setPingLoading:r}=m.useContext(Xl),i=m.useCallback(async()=>{try{const o=await nRn();console.log("logout result:",o.data),r(!1),n(),e(),Sqt()}catch(o){console.log("logout error:",o)}},[]);return m.useEffect(()=>{console.log("useEventBus useEffect");const o=function(a){console.log("token过期强制刷新登录",a),Qr.off(Jb,o),i()};return Qr.on(Jb,o),()=>{console.log("un - useEffect mqttDisconnect"),Qr.off(Jb)}},[]),{doLogout:i}}const AXe=()=>{const e=Fr(),{isLoggedIn:n,mode:r}=m.useContext(Xl),{doLogout:i}=PXe(),[o,a]=m.useState("✅"),[s,l]=m.useState(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"})),c=NH();m.useEffect(()=>{c?(a("✅"),l(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"}))):(a("❌"),l(e.formatMessage({id:"footbar.network.disconnected",defaultMessage:"网络断开"})))},[c,e]);const u=N.jsx("div",{children:N.jsx("p",{children:e.formatMessage({id:"footbar.anonymous.tip",defaultMessage:"匿名状态,仅支持同一个局域网内在线设备之间通信"})})}),d=N.jsx("div",{children:N.jsx("p",{children:e.formatMessage({id:"footbar.login.tip",defaultMessage:"登录后,支持离线消息和更多功能"})})}),[f,p]=m.useState(!1),h=()=>{p(!0)},g=()=>{p(!1)},v=()=>{console.log("handleShowLoginModel"),h()},y=S=>{console.log(S),i()},_=S=>{console.log(S)};return N.jsxs(N.Fragment,{children:[N.jsx(fa,{open:f&&!n,onOk:g,onCancel:g,footer:[N.jsx(qn,{onClick:g,children:e.formatMessage({id:"footbar.login.skip",defaultMessage:"暂不登录"})},"back")],children:N.jsx(Foe,{isModel:!0})}),N.jsxs("span",{children:[!n&&N.jsxs(N.Fragment,{children:[N.jsx(Ip,{content:u,title:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"}),children:N.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"})})}),N.jsx(Ip,{content:d,children:N.jsx("span",{className:"footerLeftButton",onClick:v,children:e.formatMessage({id:"footbar.login",defaultMessage:"登录"})})})]}),n&&N.jsx(N.Fragment,{children:N.jsx(RVe,{title:e.formatMessage({id:"footbar.logout.title",defaultMessage:"退出登录"}),description:e.formatMessage({id:"footbar.logout.confirm",defaultMessage:"确定要退出登录?"}),onConfirm:y,onCancel:_,okText:e.formatMessage({id:"common.confirm",defaultMessage:"确定"}),cancelText:e.formatMessage({id:"common.cancel",defaultMessage:"取消"}),children:N.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.logout",defaultMessage:"退出登录"})})})}),r===V1&&yO&&N.jsx("span",{style:{marginLeft:10},children:N.jsx(Ef,{title:e.formatMessage({id:"footbar.serving.count",defaultMessage:"当前接待人数"}),children:N.jsx("span",{children:e.formatMessage({id:"footbar.serving.text",defaultMessage:"当前接待人数:0"})})})})]}),N.jsxs("span",{className:"footerRightButton",children:[N.jsx(Ef,{title:s,children:N.jsx("span",{children:o})}),N.jsxs("span",{style:{marginLeft:"10px"},onClick:()=>CA(qyt),children:["v",Xxt()]}),N.jsx("span",{style:{marginLeft:"10px"},onClick:()=>CA("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"})})]})]})},DXe=()=>{const e=Df(),{userInfo:n}=Yde(),{translateString:r}=Gp(),{mode:i}=m.useContext(Xl),[o,a]=m.useState(""),[s,l]=m.useState(""),[c,u]=m.useState(""),d=()=>{e("/setting")};return m.useEffect(()=>{a(r(n==null?void 0:n.nickname)),l(r(n==null?void 0:n.description)),u(n==null?void 0:n.avatar)},[i,n]),N.jsx(N.Fragment,{children:N.jsx(Ip,{title:o,content:s,placement:"rightBottom",children:N.jsx(N.Fragment,{children:N.jsx(nS,{style:{marginTop:60,cursor:"pointer"},size:40,src:c,onClick:d})})})})};function kXe(){const e=Df(),n=ws(i=>i.userInfo),r=NXe(i=>i.addDevice);m.useEffect(()=>(console.log("useElectronApi useEffect"),Yl?(window.electronAPI.loginSuccess(),window.electronAPI.onNewWindowCreated(i=>{console.log("Dashboard onNewWindowCreated content:",i),e("/enlarge",{state:{content:i}})}),window.electronAPI.onMulticastMessage(i=>{const o=JSON.parse(i);if(o.user.uid!==n.uid){console.log("EVENT_BUS_MULTICAST_MESSAGE_RECEIVED",i);const a={type:A4e,device:o.device,user:o.user,createdAt:o.createdAt};r(a)}}),window.electronAPI.onWebSocketMessage(i=>{console.log("Dashboard onWebSocketMessage content:",i)}),window.electronAPI.onHttpMessage(i=>{console.log("Dashboard onHttpMessage content:",i)}),window.electronAPI.onNotificationMessage(i=>{if(console.log("Dashboard onNotificationMessage content:",i),i.type===vyt){Nt.success("截图成功");const o=i.data;Qr.emit(Cyt,o.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),Yl?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const DMn=()=>{const e=Fr(),{doLogout:n}=PXe(),{isLoggedIn:r,locale:i,changeLocale:o,mode:a,changeMode:s,handleUpdateAgentStatus:l}=m.useContext(Xl),{agentInfo:c}=XC(h=>({agentInfo:h.agentInfo})),u=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:N.jsx(jde,{}),children:[{key:"logout",label:e.formatMessage({id:"menu.settings.logout",defaultMessage:"Logout"})}]}],[d,f]=m.useState(u);m.useEffect(()=>{if(f(u),c.uid!==""&&a===V1){console.log("agentInfo changed",c);const h=[...u],g={key:"status",label:e.formatMessage({id:"menu.agent.status",defaultMessage:"Agent Status"}),type:"group",children:[{key:Rbe,icon:c.status===Rbe?N.jsx(c0,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:Ibe,icon:c.status===Ibe?N.jsx(c0,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:OW,icon:c.status===OW?N.jsx(c0,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.offline",defaultMessage:"Offline"})}]},v=h[0].children,y=v.findIndex(_=>_.key===g.key);y!==-1?v[y]=g:v.splice(0,0,g),h[0].children=v,f(h)}},[c,i,a]);const p=async h=>{console.log("click",h.key),h.key==="logout"?n():h.key==="zh-cn"||h.key==="zh-tw"||h.key==="en"?o(h.key):h.key===PT||h.key===V1||h.key===CF?(console.log("mode",h.key),s(h.key)):(console.log("status"),h.key===OW&&nP.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),l(h.key))};return N.jsx(N.Fragment,{children:r?N.jsx(N.Fragment,{children:N.jsx(nv,{inlineCollapsed:!0,onClick:p,style:{width:64,height:34},mode:"inline",items:d})}):N.jsx(N.Fragment,{})})};async function kMn(e){return so("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:xo}})}const LXe=()=>{const[e,n]=m.useState([]),r=new dGe;m.useEffect(()=>{(async()=>{try{const l=await r.getAllMessages();n(l)}catch(l){console.error("Error fetching messages from IndexedDB:",l)}})()},[]);const i=async s=>{try{await r.createMessage(s);const l=await r.getAllMessages();console.log("useIndexedDB createMessage newMessages: ",l),n(l)}catch(l){console.error("Error creating message in IndexedDB:",l)}},o=async(s,l)=>{try{await r.updateMessage(s,l);const c=await r.getAllMessages();n(c)}catch(c){console.error("Error updating message in IndexedDB:",c)}},a=async s=>{try{await r.deleteMessage(s);const l=await r.getAllMessages();n(l)}catch(l){console.error("Error deleting message in IndexedDB:",l)}};return m.useEffect(()=>{console.log("useIndexedDB useEffect");const s=function(l){console.log("useIndexedDB handleNewMessage",l),i(l)};return Qr.on(AP,s),()=>{console.log("useIndexedDB useEffect return"),Qr.off(AP,s)}},[]),{messages:e,createMessage:i,updateMessage:o,deleteMessage:a}};async function iz(){return so("/api/v1/user/profile",{method:"GET",params:{client:xo}})}async function $Xe(e){return so("/api/v1/user/update",{method:"POST",data:{...e,client:xo}})}async function LMn(e){return so("/api/v1/user/change/password",{method:"POST",data:{...e,client:xo}})}async function FXe(e){return so("/api/v1/user/change/email",{method:"POST",data:{...e,client:xo}})}async function BXe(e){return so("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:xo}})}const $Mn=()=>{const e=Fr(),{locale:n,changeLocale:r}=m.useContext(Xl),i=[{key:"lang",icon:N.jsx(rVt,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:n.locale==="zh-cn"?N.jsx(c0,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:n.locale==="zh-tw"?N.jsx(c0,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:n.locale==="en"?N.jsx(c0,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],o=a=>{const s=a.key;r(s)};return N.jsx(nv,{inlineCollapsed:!0,onClick:o,style:{width:64,height:34},mode:"inline",items:i})},Kpe=({formFields:e=[],onSubmit:n})=>{const[r,i]=m.useState(e),{formId:o}=WKt(),[a]=Hr.useForm(),s=Fr(),{isDarkMode:l}=Pu(),[c,u]=m.useState(!1);m.useEffect(()=>{if(o==="preview"){const p=localStorage.getItem("form-preview-data");if(p){const{fields:h}=JSON.parse(p);i(h)}}},[o]);const d=p=>{var h,g,v;switch(p.type){case"input":return N.jsx(Oi,{placeholder:s.formatMessage({id:"preview.placeholder.text"})});case"textarea":return N.jsx(Oi.TextArea,{placeholder:s.formatMessage({id:"preview.placeholder.text"})});case"datePicker":return N.jsx(md,{style:{width:"100%"},placeholder:s.formatMessage({id:"preview.placeholder.date"})});case"timePicker":return N.jsx(Ay,{style:{width:"100%"},placeholder:s.formatMessage({id:"preview.placeholder.time"})});case"select":return N.jsx(bg,{placeholder:s.formatMessage({id:"preview.placeholder.select"}),options:(h=p.options)==null?void 0:h.map(y=>({label:y,value:y}))});case"checkbox":return N.jsx(ow.Group,{options:(g=p.options)==null?void 0:g.map(y=>({label:y,value:y}))});case"radio":return N.jsx(ya.Group,{options:(v=p.options)==null?void 0:v.map(y=>({label:y,value:y}))});case"switch":return N.jsx(sC,{});case"upload":return N.jsx(og,{});default:return N.jsx(Oi,{})}},f=async p=>{u(!0);try{n&&await n(p)}finally{u(!1)}};return N.jsx(bu,{title:o==="preview"?s.formatMessage({id:"formBuilder.preview"}):void 0,style:{maxWidth:800,margin:"24px auto",background:l?"#1f1f1f":"#fff"},children:N.jsxs(Hr,{form:a,layout:"vertical",onFinish:f,style:{maxWidth:600,margin:"0 auto"},children:[r.map(p=>N.jsx(Hr.Item,{name:p.id,label:p.label,rules:[{required:p.required,message:`${p.label}是必填项`}],children:d(p)},p.id)),N.jsx(Hr.Item,{children:N.jsx(qn,{type:"primary",htmlType:"submit",loading:c,block:!0,children:s.formatMessage({id:"form.submit"})})})]})})},FMn=({visible:e,onClose:n,formFields:r})=>{const i=Fr(),{isDarkMode:o}=Pu();return e?N.jsxs("div",{style:{position:"fixed",right:20,bottom:0,width:400,height:600,background:o?"#1f1f1f":"#fff",boxShadow:"0 0 10px rgba(0,0,0,0.1)",borderRadius:"8px 8px 0 0",display:"flex",flexDirection:"column",zIndex:1e3},children:[N.jsxs("div",{style:{padding:"12px 16px",borderBottom:`1px solid ${o?"#303030":"#f0f0f0"}`,display:"flex",justifyContent:"space-between",alignItems:"center",background:o?"#141414":"#f5f5f5",borderRadius:"8px 8px 0 0"},children:[N.jsx("span",{children:i.formatMessage({id:"preview.title"})}),N.jsxs("div",{children:[N.jsx(SVt,{style:{marginRight:12,cursor:"pointer"},onClick:()=>n(),title:i.formatMessage({id:"preview.minimize"})}),N.jsx(Up,{style:{cursor:"pointer"},onClick:()=>n(),title:i.formatMessage({id:"preview.close"})})]})]}),N.jsx("div",{style:{flex:1,overflow:"auto",padding:"16px"},children:N.jsx(Kpe,{formFields:r})})]}):null},oz=Ru()(Ed(e=>({components:[],activeId:null,setComponents:n=>e({components:n}),addComponent:({id:n,type:r,index:i,options:o})=>e(a=>{const s=[...a.components];return s.splice(i,0,{id:n,type:r,index:i,options:o}),{components:s.map((l,c)=>({...l,index:c}))}}),moveComponent:(n,r,i)=>e(o=>{const a=[...o.components],s=a.findIndex(c=>c.id===n),l=a[s];return a.splice(s,1),a.splice(i,0,l),{components:a}}),updateComponent:(n,r)=>e(i=>({components:i.components.map(o=>o.id===n?{...o,props:{...o.props,...r}}:o)})),setActiveId:n=>e({activeId:n}),clearForm:()=>e({components:[],activeId:null}),deleteComponent:n=>e(r=>({components:r.components.filter(i=>i.id!==n),activeId:null}))}),{name:"form-builder-storage"})),BMn=({children:e,onDragStart:n,onDragEnd:r})=>{const[i,o]=m.useState(null),[a,s]=m.useState(null),l=x6(spe),c=Bqe(l),u=f=>{var h;console.log("DndContext drag start data:",f.active.data.current);const{active:p}=f;s(p.data.current),o(N.jsx("div",{className:"dragging-overlay",children:N.jsx("div",{className:"component-item",children:N.jsx("div",{className:"component-item-inner",children:(h=p.data.current)==null?void 0:h.title})})})),n==null||n(f)},d=f=>{console.log("DndContext drag end data:",a);const p={...f,active:{...f.active,data:{current:a}}};o(null),s(null),r==null||r(p)};return N.jsxs(iKe,{sensors:c,collisionDetection:Qwn,onDragStart:u,onDragEnd:d,children:[e,N.jsx(aKe,{dropAnimation:{duration:150,sideEffects:oKe({styles:{active:{opacity:"0.5"}}})},children:i})]})};function jXe(e,n,r){const i=e.slice();return i.splice(r<0?i.length+r:r,0,i.splice(n,1)[0]),i}function jMn(e,n){return e.reduce((r,i,o)=>{const a=n.get(i);return a&&(r[o]=a),r},Array(e.length))}function S4(e){return e!==null&&e>=0}function UMn(e,n){if(e===n)return!0;if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==n[r])return!1;return!0}function HMn(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const UXe=e=>{let{rects:n,activeIndex:r,overIndex:i,index:o}=e;const a=jXe(n,i,r),s=n[o],l=a[o];return!l||!s?null:{x:l.left-s.left,y:l.top-s.top,scaleX:l.width/s.width,scaleY:l.height/s.height}},E4={scaleX:1,scaleY:1},zMn=e=>{var n;let{activeIndex:r,activeNodeRect:i,index:o,rects:a,overIndex:s}=e;const l=(n=a[r])!=null?n:i;if(!l)return null;if(o===r){const u=a[s];return u?{x:0,y:r<s?u.top+u.height-(l.top+l.height):u.top-l.top,...E4}:null}const c=VMn(a,o,r);return o>r&&o<=s?{x:0,y:-l.height-c,...E4}:o<r&&o>=s?{x:0,y:l.height+c,...E4}:{x:0,y:0,...E4}};function VMn(e,n,r){const i=e[n],o=e[n-1],a=e[n+1];return i?r<n?o?i.top-(o.top+o.height):a?a.top-(i.top+i.height):0:a?a.top-(i.top+i.height):o?i.top-(o.top+o.height):0:0}const HXe="Sortable",zXe=V.createContext({activeIndex:-1,containerId:HXe,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:UXe,disabled:{draggable:!1,droppable:!1}});function GMn(e){let{children:n,id:r,items:i,strategy:o=UXe,disabled:a=!1}=e;const{active:s,dragOverlay:l,droppableRects:c,over:u,measureDroppableContainers:d}=upe(),f=kI(HXe,r),p=l.rect!==null,h=m.useMemo(()=>i.map(C=>typeof C=="object"&&"id"in C?C.id:C),[i]),g=s!=null,v=s?h.indexOf(s.id):-1,y=u?h.indexOf(u.id):-1,_=m.useRef(h),S=!UMn(h,_.current),b=y!==-1&&v===-1||S,E=HMn(a);xf(()=>{S&&g&&d(h)},[S,h,g,d]),m.useEffect(()=>{_.current=h},[h]);const w=m.useMemo(()=>({activeIndex:v,containerId:f,disabled:E,disableTransforms:b,items:h,overIndex:y,useDragOverlay:p,sortedRects:jMn(h,c),strategy:o}),[v,f,E.draggable,E.droppable,b,h,y,c,p,o]);return V.createElement(zXe.Provider,{value:w},n)}const WMn=e=>{let{id:n,items:r,activeIndex:i,overIndex:o}=e;return jXe(r,i,o).indexOf(n)},YMn=e=>{let{containerId:n,isSorting:r,wasDragging:i,index:o,items:a,newIndex:s,previousItems:l,previousContainerId:c,transition:u}=e;return!u||!i||l!==a&&o===s?!1:r?!0:s!==o&&n===c},qMn={duration:200,easing:"ease"},VXe="transform",KMn=Np.Transition.toString({property:VXe,duration:0,easing:"linear"}),XMn={roleDescription:"sortable"};function QMn(e){let{disabled:n,index:r,node:i,rect:o}=e;const[a,s]=m.useState(null),l=m.useRef(r);return xf(()=>{if(!n&&r!==l.current&&i.current){const c=o.current;if(c){const u=yw(i.current,{ignoreTransform:!0}),d={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(d.x||d.y)&&s(d)}}r!==l.current&&(l.current=r)},[n,r,i,o]),m.useEffect(()=>{a&&s(null)},[a]),a}function ZMn(e){let{animateLayoutChanges:n=YMn,attributes:r,disabled:i,data:o,getNewIndex:a=WMn,id:s,strategy:l,resizeObserverConfig:c,transition:u=qMn}=e;const{items:d,containerId:f,activeIndex:p,disabled:h,disableTransforms:g,sortedRects:v,overIndex:y,useDragOverlay:_,strategy:S}=m.useContext(zXe),b=JMn(i,h),E=d.indexOf(s),w=m.useMemo(()=>({sortable:{containerId:f,index:E,items:d},...o}),[f,o,E,d]),C=m.useMemo(()=>d.slice(d.indexOf(s)),[d,s]),{rect:x,node:T,isOver:R,setNodeRef:O}=dpe({id:s,data:w,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...c}}),{active:M,activatorEvent:P,activeNodeRect:k,attributes:$,setNodeRef:U,listeners:z,isDragging:D,over:B,setActivatorNodeRef:Y,transform:q}=cpe({id:s,data:w,attributes:{...XMn,...r},disabled:b.draggable}),K=kqe(O,U),H=!!M,G=H&&!g&&S4(p)&&S4(y),Q=!_&&D,le=Q&&G?q:null,j=G?le??(l??S)({rects:v,activeNodeRect:k,activeIndex:p,overIndex:y,index:E}):null,F=S4(p)&&S4(y)?a({id:s,items:d,activeIndex:p,overIndex:y}):E,te=M==null?void 0:M.id,oe=m.useRef({activeId:te,items:d,newIndex:F,containerId:f}),de=d!==oe.current.items,pe=n({active:M,containerId:f,isDragging:D,isSorting:H,id:s,index:E,items:d,newIndex:oe.current.newIndex,previousItems:oe.current.items,previousContainerId:oe.current.containerId,transition:u,wasDragging:oe.current.activeId!=null}),me=QMn({disabled:!pe,index:E,node:T,rect:x});return m.useEffect(()=>{H&&oe.current.newIndex!==F&&(oe.current.newIndex=F),f!==oe.current.containerId&&(oe.current.containerId=f),d!==oe.current.items&&(oe.current.items=d)},[H,F,f,d]),m.useEffect(()=>{if(te===oe.current.activeId)return;if(te&&!oe.current.activeId){oe.current.activeId=te;return}const he=setTimeout(()=>{oe.current.activeId=te},50);return()=>clearTimeout(he)},[te]),{active:M,activeIndex:p,attributes:$,data:w,rect:x,index:E,newIndex:F,items:d,isOver:R,isSorting:H,isDragging:D,listeners:z,node:T,overIndex:y,over:B,setNodeRef:K,setActivatorNodeRef:Y,setDroppableNodeRef:O,setDraggableNodeRef:U,transform:me??j,transition:ve()};function ve(){if(me||de&&oe.current.newIndex===E)return KMn;if(!(Q&&!rL(P)||!u)&&(H||pe))return Np.Transition.toString({...u,property:VXe})}}function JMn(e,n){var r,i;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:n.draggable,droppable:(i=e==null?void 0:e.droppable)!=null?i:n.droppable}}Ai.Down,Ai.Right,Ai.Up,Ai.Left;const{TextArea:e2n}=Oi,{Group:t2n}=ya,{Group:n2n}=ow,GXe=({component:e})=>{const{attributes:n,listeners:r,setNodeRef:i,transform:o,transition:a,isDragging:s}=ZMn({id:e.id}),{type:l}=e,{activeId:c,setActiveId:u,deleteComponent:d,moveComponent:f,components:p}=oz(),h=c===e.id;if(!l)return console.error("No type provided for component:",e),null;const g=r2n(l),v={required:!1},y=w=>{w.preventDefault(),w.stopPropagation(),h||u(String(e.id))},_=w=>{w.stopPropagation(),d(String(e.id))},S=w=>{w.stopPropagation(),e.index>0&&f(String(e.id),String(e.id),e.index-1)},b=w=>{w.stopPropagation(),e.index<p.length-1&&f(String(e.id),String(e.id),e.index+1)},E={transform:Np.Transform.toString(o),transition:a,opacity:s?.5:void 0};return N.jsxs("div",{ref:i,style:E,...n,className:`form-item-wrapper ${h?"active":""}`,"data-id":String(e.id),children:[N.jsxs("div",{className:"form-item-header",children:[N.jsx("div",{className:"drag-handle",...r,children:N.jsx(GVe,{})}),N.jsx("span",{className:"form-item-label",onClick:y,children:g})]}),N.jsxs("div",{className:"form-content",children:[N.jsx(Hr.Item,{...v,children:i2n(l)}),e.children&&e.children.length>0&&N.jsx("div",{className:"nested-components",children:e.children.map(w=>N.jsx(GXe,{component:w},w.id))})]}),N.jsxs("div",{className:"form-item-actions",children:[N.jsx(zVe,{className:"action-icon",onClick:S}),N.jsx(HVe,{className:"action-icon",onClick:b}),N.jsx(sw,{className:"delete-icon",onClick:_})]})]})};function r2n(e){return{input:"单行文本",textarea:"多行文本",select:"下拉选择",radio:"单选框组",checkbox:"多选框组",datepicker:"日期选择",timepicker:"时间选择",switch:"开关",upload:"上传"}[e]||e}function i2n(e){if(!e)return null;switch(e.toLowerCase()){case"input":return N.jsx(Oi,{placeholder:"请输入"});case"textarea":return N.jsx(e2n,{rows:4,placeholder:"请输入多行文本"});case"select":return N.jsx(bg,{style:{width:"100%"},placeholder:"请选择",options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]});case"radio":return N.jsxs(t2n,{children:[N.jsx(ya,{value:"1",children:"选项1"}),N.jsx(ya,{value:"2",children:"选项2"})]});case"checkbox":return N.jsx(n2n,{options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]});case"datepicker":return N.jsx(or,{locale:tT,children:N.jsx(md,{style:{width:"100%"},placeholder:"请选择日期"})});case"timepicker":return N.jsx(or,{locale:tT,children:N.jsx(Ay,{style:{width:"100%"},placeholder:"请选择时间"})});case"switch":return N.jsx(sC,{checkedChildren:"开",unCheckedChildren:"关"});case"upload":return N.jsx(og,{children:N.jsx(qn,{children:"点击上传"})});default:return console.log("Unknown component type:",e),N.jsxs("div",{children:["未知组件类型: ",e]})}}const o2n=()=>{const{isDarkMode:e}=Pu(),{components:n,setActiveId:r}=oz(),[i,o]=m.useState(null),{setNodeRef:a,isOver:s}=dpe({id:"canvas",data:{position:i==null?void 0:i.position,targetId:i==null?void 0:i.id}}),l=u=>{u.target===u.currentTarget&&r(null)},c=u=>{const f=u.target.closest(".form-item-wrapper");if(f&&f instanceof HTMLElement){const p=f.getAttribute("data-id");if(p){const h=f.getBoundingClientRect(),g=u.clientY<h.top+h.height/2?"top":"bottom";o({id:p,position:g})}}else o(null)};return m.useEffect(()=>{console.log("Canvas isOver:",s)},[s]),N.jsx("div",{ref:a,className:`canvas-area ${s?"is-over":""}`,onClick:l,onDragOver:c,onDragLeave:()=>o(null),style:{minHeight:"200px",transition:"all 0.2s",padding:"16px",backgroundColor:s?"rgba(24, 144, 255, 0.05)":"transparent",background:e?"#141414":"#fff"},children:!n||n.length===0?N.jsx(xb,{description:"拖拽组件到此处"}):N.jsx(Hr,{layout:"vertical",children:N.jsx(GMn,{items:n.map(u=>u.id),strategy:zMn,children:n.map((u,d)=>N.jsxs("div",{className:"form-item-container",children:[(i==null?void 0:i.id)===u.id&&i.position==="top"&&N.jsx("div",{className:"drop-indicator top"}),N.jsx(GXe,{component:{...u,index:d}}),(i==null?void 0:i.id)===u.id&&i.position==="bottom"&&N.jsx("div",{className:"drop-indicator bottom"})]},u.id))})})})},a2n={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 s2n({id:e,data:n}){const r=cpe({id:e,data:n}),{attributes:i,listeners:o,setNodeRef:a,transform:s}=r;return{dragRef:a,dragProps:o?{...o,...i,style:{cursor:"grab",transform:Np.Transform.toString(s),touchAction:"none",userSelect:"none"}}:{},isDragging:r.isDragging}}const l2n=({type:e,index:n,icon:r,title:i})=>{const{isDarkMode:o}=Pu(),{dragRef:a,dragProps:s}=s2n({id:t8e(),data:{type:"component",componentType:e,index:n,title:i}});return N.jsx("div",{ref:a,...s,children:N.jsx("div",{className:"component-item",style:{background:o?"#141414":"#fff"},children:N.jsxs("div",{className:"component-item-inner",children:[r,N.jsx("span",{children:i})]})})})},c2n=V.memo(l2n),u2n={FormOutlined:VVe,FileTextOutlined:P9t,SelectOutlined:WVe,RadiusSettingOutlined:KVt,CheckSquareOutlined:Cie,CalendarOutlined:EU,ClockCircleOutlined:Pde,PoweroffOutlined:zVt,UploadOutlined:iS},d2n=()=>{const e=Fr(),{isDarkMode:n}=Pu();return N.jsx("div",{className:"component-panel",style:{background:n?"#141414":"#fff"},children:N.jsx(bu,{title:e.formatMessage({id:"component.panel.title"}),bordered:!1,children:N.jsx("div",{className:"component-list",children:Object.entries(a2n).map(([r,i],o)=>{const a=u2n[i.icon];return N.jsx(c2n,{type:r,index:o,icon:N.jsx(a,{}),title:e.formatMessage({id:i.title})},r)})})})})},f2n=()=>{const{activeId:e,components:n,updateComponent:r}=oz(),[i]=Hr.useForm(),{isDarkMode:o}=Pu(),a=n.find(c=>c.id===e),s=c=>c?{input:"单行文本",textarea:"多行文本",select:"下拉选择",radio:"单选框组",checkbox:"多选框组",datepicker:"日期选择",timepicker:"时间选择",switch:"开关",upload:"上传"}[c.toLowerCase()]||c:"",l=c=>{e&&r(e,c)};return a?N.jsx("div",{className:"property-panel",style:{background:o?"#141414":"#fff"},children:N.jsx(bu,{title:`${s(a.type)} - 属性设置`,bordered:!1,children:N.jsxs(Hr,{form:i,layout:"vertical",initialValues:a,onValuesChange:l,children:[N.jsx(Hr.Item,{label:"标签",name:"label",children:N.jsx(Oi,{placeholder:"请输入标签"})}),N.jsx(Hr.Item,{label:"字段名",name:"name",children:N.jsx(Oi,{placeholder:"请输入字段名"})}),N.jsx(Hr.Item,{label:"必填",name:"required",valuePropName:"checked",children:N.jsx(sC,{})}),p2n(a.type||"")]})})}):N.jsx("div",{className:"property-panel",style:{background:o?"#141414":"#fff"},children:N.jsx(bu,{title:"属性设置",bordered:!1,children:N.jsx("div",{className:"empty-tip",style:{color:o?"#fff":"#000"},children:"请选择组件"})})})};function p2n(e){switch(e.toLowerCase()){case"input":case"textarea":return N.jsxs(Cf,{direction:"vertical",style:{width:"100%"},children:[N.jsx(Hr.Item,{label:"占位文本",name:"placeholder",children:N.jsx(Oi,{placeholder:"请输入占位文本"})}),N.jsx(Hr.Item,{label:"最大长度",name:"maxLength",children:N.jsx(Oi,{type:"number",placeholder:"请输入最大长度"})})]});case"select":case"radio":case"checkbox":return N.jsx(Hr.Item,{label:"选项",name:"options",children:N.jsx(Oi.TextArea,{placeholder:"每行一个选项,格式:值:标签",rows:4})});default:return null}}const{Header:h2n}=bo,Koe=()=>{const{components:e,setActiveId:n,addComponent:r,moveComponent:i,setComponents:o}=oz(),a=Fr(),{isDarkMode:s}=Pu(),[l,c]=m.useState(!1),[u,d]=m.useState([]),{headerStyle:f}=u_(),p=_=>{console.log("FormBuilder drag start:",_.active)},h=_=>{var w;const{active:S,over:b}=_;if(!b)return;const E=b.data.current;if(b.id==="canvas"&&!E.targetId){const C=S.data.current;if(!(C!=null&&C.componentType))return;const x=String(S.id);r({id:x,type:C.componentType,index:e.length}),n(x)}else{const C=E.targetId||b.id;if(!e.find(M=>M.id===C))return;const T=E.position||"bottom",R=e.findIndex(M=>M.id===C),O=T==="top"?R:R+1;if((w=S.data.current)!=null&&w.isNew){const P=S.data.current.componentType||"";let k;["radio","checkbox","select"].includes(P)&&(k=[a.formatMessage({id:"flow.option.1"}),a.formatMessage({id:"flow.option.2"}),a.formatMessage({id:"flow.option.3"})]),r({id:String(S.id),type:P,index:O,options:k})}else i(String(S.id),String(C),O)}},g=()=>{const _=JSON.stringify(e,null,2),S=new Blob([_],{type:"application/json"}),b=URL.createObjectURL(S),E=document.createElement("a");E.href=b,E.download=a.formatMessage({id:"formBuilder.export.filename"}),E.click(),URL.revokeObjectURL(b),nP.success(a.formatMessage({id:"formBuilder.export.success"}))},v={accept:".json",showUploadList:!1,beforeUpload:_=>{const S=new FileReader;return S.onload=b=>{var E;try{const w=JSON.parse((E=b.target)==null?void 0:E.result);o(w),nP.success(a.formatMessage({id:"formBuilder.import.success"}))}catch{nP.error(a.formatMessage({id:"formBuilder.import.error"}))}},S.readAsText(_),!1}},y=()=>{const _=e.map(S=>({id:S.id,type:S.type,label:S.label||a.formatMessage({id:`component.${S.type}.title`}),options:S.options,required:S.required}));d(_),c(!0)};return N.jsxs("div",{children:[N.jsx(BMn,{onDragStart:p,onDragEnd:h,children:N.jsxs(bo,{children:[N.jsx(h2n,{style:f,children:N.jsxs("div",{className:"header-content",children:[N.jsx("h1",{children:N.jsx("span",{className:"title-text",style:{color:s?"#fff":"#000"},children:a.formatMessage({id:"formBuilder.title"})})}),N.jsxs("div",{className:"header-actions",children:[N.jsx(og,{...v,children:N.jsx(qn,{type:"primary",icon:N.jsx(iS,{}),children:a.formatMessage({id:"formBuilder.header.import"})})}),N.jsx(qn,{type:"primary",icon:N.jsx(Ok,{}),onClick:g,children:a.formatMessage({id:"formBuilder.header.export"})}),N.jsx(qn,{type:"primary",icon:N.jsx(wk,{}),onClick:y,children:a.formatMessage({id:"formBuilder.header.preview"})})]})]})}),N.jsx(bo,{className:"main-layout",children:N.jsxs("div",{className:"main-content",children:[N.jsx("div",{className:"left-panel",children:N.jsx(d2n,{})}),N.jsx("div",{className:"center-panel",children:N.jsx(o2n,{})}),N.jsx("div",{className:"right-panel",children:N.jsx(f2n,{})})]})})]})}),N.jsx(FMn,{visible:l,onClose:()=>c(!1),formFields:u})]})},qRe=(e,n,r)=>{e.dataTransfer.setData("application/reactflow",n),r&&e.dataTransfer.setData("form-type",r),e.dataTransfer.effectAllowed="move"},g2n=()=>{const e=Fr(),{isDarkMode:n}=Pu(),r=[{type:"start",title:e.formatMessage({id:"flow.startNode"}),icon:N.jsx(Fde,{})},{type:"parent",title:e.formatMessage({id:"flow.parentNode"}),icon:N.jsx(Szt,{})}],i=[{type:"form",title:e.formatMessage({id:"flow.textField"}),icon:N.jsx(VVe,{}),formType:"text"},{type:"form",title:e.formatMessage({id:"flow.numberField"}),icon:N.jsx(IVt,{}),formType:"digit"},{type:"form",title:e.formatMessage({id:"flow.datePicker"}),icon:N.jsx(EU,{}),formType:"date"},{type:"form",title:e.formatMessage({id:"flow.select"}),icon:N.jsx(WVe,{}),formType:"select"},{type:"form",title:e.formatMessage({id:"flow.checkbox"}),icon:N.jsx(Cie,{}),formType:"checkbox"},{type:"form",title:e.formatMessage({id:"flow.radio"}),icon:N.jsx(Cie,{}),formType:"radio"}],o=[{key:"1",label:e.formatMessage({id:"flow.container"}),children:r.map(a=>N.jsxs(bu,{className:"draggable-item",draggable:!0,onDragStart:s=>qRe(s,a.type),bordered:!1,style:{marginBottom:"5px",border:"1px solid",background:n?"#1f1f1f":"#fff",color:n?"#fff":void 0},children:[a.icon," ",a.title]},a.type))},{key:"2",label:e.formatMessage({id:"flow.form"}),children:i.map(a=>N.jsxs(bu,{className:"draggable-item",draggable:!0,onDragStart:s=>qRe(s,a.type,a.formType),bordered:!1,style:{marginBottom:"5px",border:"1px dashed",background:n?"#1f1f1f":"#fff",color:n?"#fff":void 0},children:[a.icon," ",a.title]},a.formType))},{key:"3",label:e.formatMessage({id:"flow.logic"}),children:N.jsx("div",{children:"TODO: logic"})},{key:"4",label:e.formatMessage({id:"flow.action"}),children:N.jsx("div",{children:"TODO: action"})}];return N.jsx("div",{className:"left-panel-container",children:N.jsx(u9e,{defaultActiveKey:["1","2"],ghost:!0,items:o})})};function dl(e){if(typeof e=="string"||typeof e=="number")return""+e;let n="";if(Array.isArray(e))for(let r=0,i;r<e.length;r++)(i=dl(e[r]))!==""&&(n+=(n&&" ")+i);else for(let r in e)e[r]&&(n+=(n&&" ")+r);return n}var m2n={value:()=>{}};function az(){for(var e=0,n=arguments.length,r={},i;e<n;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new M6(r)}function M6(e){this._=e}function v2n(e,n){return e.trim().split(/^|\s+/).map(function(r){var i="",o=r.indexOf(".");if(o>=0&&(i=r.slice(o+1),r=r.slice(0,o)),r&&!n.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}M6.prototype=az.prototype={constructor:M6,on:function(e,n){var r=this._,i=v2n(e+"",r),o,a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((o=(e=i[a]).type)&&(o=y2n(r[o],e.name)))return o;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++a<s;)if(o=(e=i[a]).type)r[o]=KRe(r[o],e.name,n);else if(n==null)for(o in r)r[o]=KRe(r[o],e.name,null);return this},copy:function(){var e={},n=this._;for(var r in n)e[r]=n[r].slice();return new M6(e)},call:function(e,n){if((o=arguments.length-2)>0)for(var r=new Array(o),i=0,o,a;i<o;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,o=a.length;i<o;++i)a[i].value.apply(n,r)},apply:function(e,n,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,a=i.length;o<a;++o)i[o].value.apply(n,r)}};function y2n(e,n){for(var r=0,i=e.length,o;r<i;++r)if((o=e[r]).name===n)return o.value}function KRe(e,n,r){for(var i=0,o=e.length;i<o;++i)if(e[i].name===n){e[i]=m2n,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:n,value:r}),e}var Xoe="http://www.w3.org/1999/xhtml";const XRe={svg:"http://www.w3.org/2000/svg",xhtml:Xoe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function sz(e){var n=e+="",r=n.indexOf(":");return r>=0&&(n=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),XRe.hasOwnProperty(n)?{space:XRe[n],local:e}:e}function _2n(e){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===Xoe&&n.documentElement.namespaceURI===Xoe?n.createElement(e):n.createElementNS(r,e)}}function b2n(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function WXe(e){var n=sz(e);return(n.local?b2n:_2n)(n)}function S2n(){}function Xpe(e){return e==null?S2n:function(){return this.querySelector(e)}}function E2n(e){typeof e!="function"&&(e=Xpe(e));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,d=0;d<s;++d)(c=a[d])&&(u=e.call(c,c.__data__,d,a))&&("__data__"in c&&(u.__data__=c.__data__),l[d]=u);return new Tf(i,this._parents)}function C2n(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function w2n(){return[]}function YXe(e){return e==null?w2n:function(){return this.querySelectorAll(e)}}function x2n(e){return function(){return C2n(e.apply(this,arguments))}}function T2n(e){typeof e=="function"?e=x2n(e):e=YXe(e);for(var n=this._groups,r=n.length,i=[],o=[],a=0;a<r;++a)for(var s=n[a],l=s.length,c,u=0;u<l;++u)(c=s[u])&&(i.push(e.call(c,c.__data__,u,s)),o.push(c));return new Tf(i,o)}function qXe(e){return function(){return this.matches(e)}}function KXe(e){return function(n){return n.matches(e)}}var O2n=Array.prototype.find;function R2n(e){return function(){return O2n.call(this.children,e)}}function I2n(){return this.firstElementChild}function N2n(e){return this.select(e==null?I2n:R2n(typeof e=="function"?e:KXe(e)))}var M2n=Array.prototype.filter;function P2n(){return Array.from(this.children)}function A2n(e){return function(){return M2n.call(this.children,e)}}function D2n(e){return this.selectAll(e==null?P2n:A2n(typeof e=="function"?e:KXe(e)))}function k2n(e){typeof e!="function"&&(e=qXe(e));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]=[],c,u=0;u<s;++u)(c=a[u])&&e.call(c,c.__data__,u,a)&&l.push(c);return new Tf(i,this._parents)}function XXe(e){return new Array(e.length)}function L2n(){return new Tf(this._enter||this._groups.map(XXe),this._parents)}function kB(e,n){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=n}kB.prototype={constructor:kB,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,n){return this._parent.insertBefore(e,n)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function $2n(e){return function(){return e}}function F2n(e,n,r,i,o,a){for(var s=0,l,c=n.length,u=a.length;s<u;++s)(l=n[s])?(l.__data__=a[s],i[s]=l):r[s]=new kB(e,a[s]);for(;s<c;++s)(l=n[s])&&(o[s]=l)}function B2n(e,n,r,i,o,a,s){var l,c,u=new Map,d=n.length,f=a.length,p=new Array(d),h;for(l=0;l<d;++l)(c=n[l])&&(p[l]=h=s.call(c,c.__data__,l,n)+"",u.has(h)?o[l]=c:u.set(h,c));for(l=0;l<f;++l)h=s.call(e,a[l],l,a)+"",(c=u.get(h))?(i[l]=c,c.__data__=a[l],u.delete(h)):r[l]=new kB(e,a[l]);for(l=0;l<d;++l)(c=n[l])&&u.get(p[l])===c&&(o[l]=c)}function j2n(e){return e.__data__}function U2n(e,n){if(!arguments.length)return Array.from(this,j2n);var r=n?B2n:F2n,i=this._parents,o=this._groups;typeof e!="function"&&(e=$2n(e));for(var a=o.length,s=new Array(a),l=new Array(a),c=new Array(a),u=0;u<a;++u){var d=i[u],f=o[u],p=f.length,h=H2n(e.call(d,d&&d.__data__,u,i)),g=h.length,v=l[u]=new Array(g),y=s[u]=new Array(g),_=c[u]=new Array(p);r(d,f,v,y,_,h,n);for(var S=0,b=0,E,w;S<g;++S)if(E=v[S]){for(S>=b&&(b=S+1);!(w=y[b])&&++b<g;);E._next=w||null}}return s=new Tf(s,i),s._enter=l,s._exit=c,s}function H2n(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function z2n(){return new Tf(this._exit||this._groups.map(XXe),this._parents)}function V2n(e,n,r){var i=this.enter(),o=this,a=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),n!=null&&(o=n(o),o&&(o=o.selection())),r==null?a.remove():r(a),i&&o?i.merge(o).order():o}function G2n(e){for(var n=e.selection?e.selection():e,r=this._groups,i=n._groups,o=r.length,a=i.length,s=Math.min(o,a),l=new Array(o),c=0;c<s;++c)for(var u=r[c],d=i[c],f=u.length,p=l[c]=new Array(f),h,g=0;g<f;++g)(h=u[g]||d[g])&&(p[g]=h);for(;c<o;++c)l[c]=r[c];return new Tf(l,this._parents)}function W2n(){for(var e=this._groups,n=-1,r=e.length;++n<r;)for(var i=e[n],o=i.length-1,a=i[o],s;--o>=0;)(s=i[o])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function Y2n(e){e||(e=q2n);function n(f,p){return f&&p?e(f.__data__,p.__data__):!f-!p}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=0;d<l;++d)(u=s[d])&&(c[d]=u);c.sort(n)}return new Tf(o,this._parents).order()}function q2n(e,n){return e<n?-1:e>n?1:e>=n?0:NaN}function K2n(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function X2n(){return Array.from(this)}function Q2n(){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null}function Z2n(){let e=0;for(const n of this)++e;return e}function J2n(){return!this.node()}function ePn(e){for(var n=this._groups,r=0,i=n.length;r<i;++r)for(var o=n[r],a=0,s=o.length,l;a<s;++a)(l=o[a])&&e.call(l,l.__data__,a,o);return this}function tPn(e){return function(){this.removeAttribute(e)}}function nPn(e){return function(){this.removeAttributeNS(e.space,e.local)}}function rPn(e,n){return function(){this.setAttribute(e,n)}}function iPn(e,n){return function(){this.setAttributeNS(e.space,e.local,n)}}function oPn(e,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function aPn(e,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function sPn(e,n){var r=sz(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((n==null?r.local?nPn:tPn:typeof n=="function"?r.local?aPn:oPn:r.local?iPn:rPn)(r,n))}function QXe(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function lPn(e){return function(){this.style.removeProperty(e)}}function cPn(e,n,r){return function(){this.style.setProperty(e,n,r)}}function uPn(e,n,r){return function(){var i=n.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function dPn(e,n,r){return arguments.length>1?this.each((n==null?lPn:typeof n=="function"?uPn:cPn)(e,n,r??"")):JO(this.node(),e)}function JO(e,n){return e.style.getPropertyValue(n)||QXe(e).getComputedStyle(e,null).getPropertyValue(n)}function fPn(e){return function(){delete this[e]}}function pPn(e,n){return function(){this[e]=n}}function hPn(e,n){return function(){var r=n.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function gPn(e,n){return arguments.length>1?this.each((n==null?fPn:typeof n=="function"?hPn:pPn)(e,n)):this.node()[e]}function ZXe(e){return e.trim().split(/^|\s+/)}function Qpe(e){return e.classList||new JXe(e)}function JXe(e){this._node=e,this._names=ZXe(e.getAttribute("class")||"")}JXe.prototype={add:function(e){var n=this._names.indexOf(e);n<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var n=this._names.indexOf(e);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function eQe(e,n){for(var r=Qpe(e),i=-1,o=n.length;++i<o;)r.add(n[i])}function tQe(e,n){for(var r=Qpe(e),i=-1,o=n.length;++i<o;)r.remove(n[i])}function mPn(e){return function(){eQe(this,e)}}function vPn(e){return function(){tQe(this,e)}}function yPn(e,n){return function(){(n.apply(this,arguments)?eQe:tQe)(this,e)}}function _Pn(e,n){var r=ZXe(e+"");if(arguments.length<2){for(var i=Qpe(this.node()),o=-1,a=r.length;++o<a;)if(!i.contains(r[o]))return!1;return!0}return this.each((typeof n=="function"?yPn:n?mPn:vPn)(r,n))}function bPn(){this.textContent=""}function SPn(e){return function(){this.textContent=e}}function EPn(e){return function(){var n=e.apply(this,arguments);this.textContent=n??""}}function CPn(e){return arguments.length?this.each(e==null?bPn:(typeof e=="function"?EPn:SPn)(e)):this.node().textContent}function wPn(){this.innerHTML=""}function xPn(e){return function(){this.innerHTML=e}}function TPn(e){return function(){var n=e.apply(this,arguments);this.innerHTML=n??""}}function OPn(e){return arguments.length?this.each(e==null?wPn:(typeof e=="function"?TPn:xPn)(e)):this.node().innerHTML}function RPn(){this.nextSibling&&this.parentNode.appendChild(this)}function IPn(){return this.each(RPn)}function NPn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function MPn(){return this.each(NPn)}function PPn(e){var n=typeof e=="function"?e:WXe(e);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function APn(){return null}function DPn(e,n){var r=typeof e=="function"?e:WXe(e),i=n==null?APn:typeof n=="function"?n:Xpe(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function kPn(){var e=this.parentNode;e&&e.removeChild(this)}function LPn(){return this.each(kPn)}function $Pn(){var e=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function FPn(){var e=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(e,this.nextSibling):e}function BPn(e){return this.select(e?FPn:$Pn)}function jPn(e){return arguments.length?this.property("__data__",e):this.node().__data__}function UPn(e){return function(n){e.call(this,n,this.__data__)}}function HPn(e){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");return i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),{type:n,name:r}})}function zPn(e){return function(){var n=this.__on;if(n){for(var r=0,i=-1,o=n.length,a;r<o;++r)a=n[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):n[++i]=a;++i?n.length=i:delete this.__on}}}function VPn(e,n,r){return function(){var i=this.__on,o,a=UPn(n);if(i){for(var s=0,l=i.length;s<l;++s)if((o=i[s]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=r),o.value=n;return}}this.addEventListener(e.type,a,r),o={type:e.type,name:e.name,value:n,listener:a,options:r},i?i.push(o):this.__on=[o]}}function GPn(e,n,r){var i=HPn(e+""),o,a=i.length,s;if(arguments.length<2){var l=this.node().__on;if(l){for(var c=0,u=l.length,d;c<u;++c)for(o=0,d=l[c];o<a;++o)if((s=i[o]).type===d.type&&s.name===d.name)return d.value}return}for(l=n?VPn:zPn,o=0;o<a;++o)this.each(l(i[o],n,r));return this}function nQe(e,n,r){var i=QXe(e),o=i.CustomEvent;typeof o=="function"?o=new o(n,r):(o=i.document.createEvent("Event"),r?(o.initEvent(n,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(n,!1,!1)),e.dispatchEvent(o)}function WPn(e,n){return function(){return nQe(this,e,n)}}function YPn(e,n){return function(){return nQe(this,e,n.apply(this,arguments))}}function qPn(e,n){return this.each((typeof n=="function"?YPn:WPn)(e,n))}function*KPn(){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&(yield s)}var rQe=[null];function Tf(e,n){this._groups=e,this._parents=n}function pL(){return new Tf([[document.documentElement]],rQe)}function XPn(){return this}Tf.prototype=pL.prototype={constructor:Tf,select:E2n,selectAll:T2n,selectChild:N2n,selectChildren:D2n,filter:k2n,data:U2n,enter:L2n,exit:z2n,join:V2n,merge:G2n,selection:XPn,order:W2n,sort:Y2n,call:K2n,nodes:X2n,node:Q2n,size:Z2n,empty:J2n,each:ePn,attr:sPn,style:dPn,property:gPn,classed:_Pn,text:CPn,html:OPn,raise:IPn,lower:MPn,append:PPn,insert:DPn,remove:LPn,clone:BPn,datum:jPn,on:GPn,dispatch:qPn,[Symbol.iterator]:KPn};function rf(e){return typeof e=="string"?new Tf([[document.querySelector(e)]],[document.documentElement]):new Tf([[e]],rQe)}function QPn(e){let n;for(;n=e.sourceEvent;)e=n;return e}function Th(e,n){if(e=QPn(e),n===void 0&&(n=e.currentTarget),n){var r=n.ownerSVGElement||n;if(r.createSVGPoint){var i=r.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(n.getScreenCTM().inverse()),[i.x,i.y]}if(n.getBoundingClientRect){var o=n.getBoundingClientRect();return[e.clientX-o.left-n.clientLeft,e.clientY-o.top-n.clientTop]}}return[e.pageX,e.pageY]}const ZPn={passive:!1},UA={capture:!0,passive:!1};function gK(e){e.stopImmediatePropagation()}function QT(e){e.preventDefault(),e.stopImmediatePropagation()}function iQe(e){var n=e.document.documentElement,r=rf(e).on("dragstart.drag",QT,UA);"onselectstart"in n?r.on("selectstart.drag",QT,UA):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function oQe(e,n){var r=e.document.documentElement,i=rf(e).on("dragstart.drag",null);n&&(i.on("click.drag",QT,UA),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in r?i.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const C4=e=>()=>e;function Qoe(e,{sourceEvent:n,subject:r,target:i,identifier:o,active:a,x:s,y:l,dx:c,dy:u,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:d}})}Qoe.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function JPn(e){return!e.ctrlKey&&!e.button}function eAn(){return this.parentNode}function tAn(e,n){return n??{x:e.x,y:e.y}}function nAn(){return navigator.maxTouchPoints||"ontouchstart"in this}function aQe(){var e=JPn,n=eAn,r=tAn,i=nAn,o={},a=az("start","drag","end"),s=0,l,c,u,d,f=0;function p(E){E.on("mousedown.drag",h).filter(i).on("touchstart.drag",y).on("touchmove.drag",_,ZPn).on("touchend.drag touchcancel.drag",S).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(E,w){if(!(d||!e.call(this,E,w))){var C=b(this,n.call(this,E,w),E,w,"mouse");C&&(rf(E.view).on("mousemove.drag",g,UA).on("mouseup.drag",v,UA),iQe(E.view),gK(E),u=!1,l=E.clientX,c=E.clientY,C("start",E))}}function g(E){if(QT(E),!u){var w=E.clientX-l,C=E.clientY-c;u=w*w+C*C>f}o.mouse("drag",E)}function v(E){rf(E.view).on("mousemove.drag mouseup.drag",null),oQe(E.view,u),QT(E),o.mouse("end",E)}function y(E,w){if(e.call(this,E,w)){var C=E.changedTouches,x=n.call(this,E,w),T=C.length,R,O;for(R=0;R<T;++R)(O=b(this,x,E,w,C[R].identifier,C[R]))&&(gK(E),O("start",E,C[R]))}}function _(E){var w=E.changedTouches,C=w.length,x,T;for(x=0;x<C;++x)(T=o[w[x].identifier])&&(QT(E),T("drag",E,w[x]))}function S(E){var w=E.changedTouches,C=w.length,x,T;for(d&&clearTimeout(d),d=setTimeout(function(){d=null},500),x=0;x<C;++x)(T=o[w[x].identifier])&&(gK(E),T("end",E,w[x]))}function b(E,w,C,x,T,R){var O=a.copy(),M=Th(R||C,w),P,k,$;if(($=r.call(E,new Qoe("beforestart",{sourceEvent:C,target:p,identifier:T,active:s,x:M[0],y:M[1],dx:0,dy:0,dispatch:O}),x))!=null)return P=$.x-M[0]||0,k=$.y-M[1]||0,function U(z,D,B){var Y=M,q;switch(z){case"start":o[T]=U,q=s++;break;case"end":delete o[T],--s;case"drag":M=Th(B||D,w),q=s;break}O.call(z,E,new Qoe(z,{sourceEvent:D,subject:$,target:p,identifier:T,active:q,x:M[0]+P,y:M[1]+k,dx:M[0]-Y[0],dy:M[1]-Y[1],dispatch:O}),x)}}return p.filter=function(E){return arguments.length?(e=typeof E=="function"?E:C4(!!E),p):e},p.container=function(E){return arguments.length?(n=typeof E=="function"?E:C4(E),p):n},p.subject=function(E){return arguments.length?(r=typeof E=="function"?E:C4(E),p):r},p.touchable=function(E){return arguments.length?(i=typeof E=="function"?E:C4(!!E),p):i},p.on=function(){var E=a.on.apply(a,arguments);return E===a?p:E},p.clickDistance=function(E){return arguments.length?(f=(E=+E)*E,p):Math.sqrt(f)},p}function Zpe(e,n,r){e.prototype=n.prototype=r,r.constructor=e}function sQe(e,n){var r=Object.create(e.prototype);for(var i in n)r[i]=n[i];return r}function hL(){}var HA=.7,LB=1/HA,ZT="\\s*([+-]?\\d+)\\s*",zA="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_m="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rAn=/^#([0-9a-f]{3,8})$/,iAn=new RegExp(`^rgb\\(${ZT},${ZT},${ZT}\\)$`),oAn=new RegExp(`^rgb\\(${_m},${_m},${_m}\\)$`),aAn=new RegExp(`^rgba\\(${ZT},${ZT},${ZT},${zA}\\)$`),sAn=new RegExp(`^rgba\\(${_m},${_m},${_m},${zA}\\)$`),lAn=new RegExp(`^hsl\\(${zA},${_m},${_m}\\)$`),cAn=new RegExp(`^hsla\\(${zA},${_m},${_m},${zA}\\)$`),QRe={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};Zpe(hL,VA,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ZRe,formatHex:ZRe,formatHex8:uAn,formatHsl:dAn,formatRgb:JRe,toString:JRe});function ZRe(){return this.rgb().formatHex()}function uAn(){return this.rgb().formatHex8()}function dAn(){return lQe(this).formatHsl()}function JRe(){return this.rgb().formatRgb()}function VA(e){var n,r;return e=(e+"").trim().toLowerCase(),(n=rAn.exec(e))?(r=n[1].length,n=parseInt(n[1],16),r===6?eIe(n):r===3?new sd(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):r===8?w4(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):r===4?w4(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=iAn.exec(e))?new sd(n[1],n[2],n[3],1):(n=oAn.exec(e))?new sd(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=aAn.exec(e))?w4(n[1],n[2],n[3],n[4]):(n=sAn.exec(e))?w4(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=lAn.exec(e))?rIe(n[1],n[2]/100,n[3]/100,1):(n=cAn.exec(e))?rIe(n[1],n[2]/100,n[3]/100,n[4]):QRe.hasOwnProperty(e)?eIe(QRe[e]):e==="transparent"?new sd(NaN,NaN,NaN,0):null}function eIe(e){return new sd(e>>16&255,e>>8&255,e&255,1)}function w4(e,n,r,i){return i<=0&&(e=n=r=NaN),new sd(e,n,r,i)}function fAn(e){return e instanceof hL||(e=VA(e)),e?(e=e.rgb(),new sd(e.r,e.g,e.b,e.opacity)):new sd}function Zoe(e,n,r,i){return arguments.length===1?fAn(e):new sd(e,n,r,i??1)}function sd(e,n,r,i){this.r=+e,this.g=+n,this.b=+r,this.opacity=+i}Zpe(sd,Zoe,sQe(hL,{brighter(e){return e=e==null?LB:Math.pow(LB,e),new sd(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?HA:Math.pow(HA,e),new sd(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new sd(k1(this.r),k1(this.g),k1(this.b),$B(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:tIe,formatHex:tIe,formatHex8:pAn,formatRgb:nIe,toString:nIe}));function tIe(){return`#${c1(this.r)}${c1(this.g)}${c1(this.b)}`}function pAn(){return`#${c1(this.r)}${c1(this.g)}${c1(this.b)}${c1((isNaN(this.opacity)?1:this.opacity)*255)}`}function nIe(){const e=$B(this.opacity);return`${e===1?"rgb(":"rgba("}${k1(this.r)}, ${k1(this.g)}, ${k1(this.b)}${e===1?")":`, ${e})`}`}function $B(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function k1(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function c1(e){return e=k1(e),(e<16?"0":"")+e.toString(16)}function rIe(e,n,r,i){return i<=0?e=n=r=NaN:r<=0||r>=1?e=n=NaN:n<=0&&(e=NaN),new Mh(e,n,r,i)}function lQe(e){if(e instanceof Mh)return new Mh(e.h,e.s,e.l,e.opacity);if(e instanceof hL||(e=VA(e)),!e)return new Mh;if(e instanceof Mh)return e;e=e.rgb();var n=e.r/255,r=e.g/255,i=e.b/255,o=Math.min(n,r,i),a=Math.max(n,r,i),s=NaN,l=a-o,c=(a+o)/2;return l?(n===a?s=(r-i)/l+(r<i)*6:r===a?s=(i-n)/l+2:s=(n-r)/l+4,l/=c<.5?a+o:2-a-o,s*=60):l=c>0&&c<1?0:s,new Mh(s,l,c,e.opacity)}function hAn(e,n,r,i){return arguments.length===1?lQe(e):new Mh(e,n,r,i??1)}function Mh(e,n,r,i){this.h=+e,this.s=+n,this.l=+r,this.opacity=+i}Zpe(Mh,hAn,sQe(hL,{brighter(e){return e=e==null?LB:Math.pow(LB,e),new Mh(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?HA:Math.pow(HA,e),new Mh(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*n,o=2*r-i;return new sd(mK(e>=240?e-240:e+120,o,i),mK(e,o,i),mK(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Mh(iIe(this.h),x4(this.s),x4(this.l),$B(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=$B(this.opacity);return`${e===1?"hsl(":"hsla("}${iIe(this.h)}, ${x4(this.s)*100}%, ${x4(this.l)*100}%${e===1?")":`, ${e})`}`}}));function iIe(e){return e=(e||0)%360,e<0?e+360:e}function x4(e){return Math.max(0,Math.min(1,e||0))}function mK(e,n,r){return(e<60?n+(r-n)*e/60:e<180?r:e<240?n+(r-n)*(240-e)/60:n)*255}const cQe=e=>()=>e;function gAn(e,n){return function(r){return e+r*n}}function mAn(e,n,r){return e=Math.pow(e,r),n=Math.pow(n,r)-e,r=1/r,function(i){return Math.pow(e+i*n,r)}}function vAn(e){return(e=+e)==1?uQe:function(n,r){return r-n?mAn(n,r,e):cQe(isNaN(n)?r:n)}}function uQe(e,n){var r=n-e;return r?gAn(e,r):cQe(isNaN(e)?n:e)}const oIe=function e(n){var r=vAn(n);function i(o,a){var s=r((o=Zoe(o)).r,(a=Zoe(a)).r),l=r(o.g,a.g),c=r(o.b,a.b),u=uQe(o.opacity,a.opacity);return function(d){return o.r=s(d),o.g=l(d),o.b=c(d),o.opacity=u(d),o+""}}return i.gamma=e,i}(1);function _b(e,n){return e=+e,n=+n,function(r){return e*(1-r)+n*r}}var Joe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vK=new RegExp(Joe.source,"g");function yAn(e){return function(){return e}}function _An(e){return function(n){return e(n)+""}}function bAn(e,n){var r=Joe.lastIndex=vK.lastIndex=0,i,o,a,s=-1,l=[],c=[];for(e=e+"",n=n+"";(i=Joe.exec(e))&&(o=vK.exec(n));)(a=o.index)>r&&(a=n.slice(r,a),l[s]?l[s]+=a:l[++s]=a),(i=i[0])===(o=o[0])?l[s]?l[s]+=o:l[++s]=o:(l[++s]=null,c.push({i:s,x:_b(i,o)})),r=vK.lastIndex;return r<n.length&&(a=n.slice(r),l[s]?l[s]+=a:l[++s]=a),l.length<2?c[0]?_An(c[0].x):yAn(n):(n=c.length,function(u){for(var d=0,f;d<n;++d)l[(f=c[d]).i]=f.x(u);return l.join("")})}var aIe=180/Math.PI,eae={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function dQe(e,n,r,i,o,a){var s,l,c;return(s=Math.sqrt(e*e+n*n))&&(e/=s,n/=s),(c=e*r+n*i)&&(r-=e*c,i-=n*c),(l=Math.sqrt(r*r+i*i))&&(r/=l,i/=l,c/=l),e*i<n*r&&(e=-e,n=-n,c=-c,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(n,e)*aIe,skewX:Math.atan(c)*aIe,scaleX:s,scaleY:l}}var T4;function SAn(e){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return n.isIdentity?eae:dQe(n.a,n.b,n.c,n.d,n.e,n.f)}function EAn(e){return e==null||(T4||(T4=document.createElementNS("http://www.w3.org/2000/svg","g")),T4.setAttribute("transform",e),!(e=T4.transform.baseVal.consolidate()))?eae:(e=e.matrix,dQe(e.a,e.b,e.c,e.d,e.e,e.f))}function fQe(e,n,r,i){function o(u){return u.length?u.pop()+" ":""}function a(u,d,f,p,h,g){if(u!==f||d!==p){var v=h.push("translate(",null,n,null,r);g.push({i:v-4,x:_b(u,f)},{i:v-2,x:_b(d,p)})}else(f||p)&&h.push("translate("+f+n+p+r)}function s(u,d,f,p){u!==d?(u-d>180?d+=360:d-u>180&&(u+=360),p.push({i:f.push(o(f)+"rotate(",null,i)-2,x:_b(u,d)})):d&&f.push(o(f)+"rotate("+d+i)}function l(u,d,f,p){u!==d?p.push({i:f.push(o(f)+"skewX(",null,i)-2,x:_b(u,d)}):d&&f.push(o(f)+"skewX("+d+i)}function c(u,d,f,p,h,g){if(u!==f||d!==p){var v=h.push(o(h)+"scale(",null,",",null,")");g.push({i:v-4,x:_b(u,f)},{i:v-2,x:_b(d,p)})}else(f!==1||p!==1)&&h.push(o(h)+"scale("+f+","+p+")")}return function(u,d){var f=[],p=[];return u=e(u),d=e(d),a(u.translateX,u.translateY,d.translateX,d.translateY,f,p),s(u.rotate,d.rotate,f,p),l(u.skewX,d.skewX,f,p),c(u.scaleX,u.scaleY,d.scaleX,d.scaleY,f,p),u=d=null,function(h){for(var g=-1,v=p.length,y;++g<v;)f[(y=p[g]).i]=y.x(h);return f.join("")}}}var CAn=fQe(SAn,"px, ","px)","deg)"),wAn=fQe(EAn,", ",")",")"),xAn=1e-12;function sIe(e){return((e=Math.exp(e))+1/e)/2}function TAn(e){return((e=Math.exp(e))-1/e)/2}function OAn(e){return((e=Math.exp(2*e))-1)/(e+1)}const RAn=function e(n,r,i){function o(a,s){var l=a[0],c=a[1],u=a[2],d=s[0],f=s[1],p=s[2],h=d-l,g=f-c,v=h*h+g*g,y,_;if(v<xAn)_=Math.log(p/u)/n,y=function(x){return[l+x*h,c+x*g,u*Math.exp(n*x*_)]};else{var S=Math.sqrt(v),b=(p*p-u*u+i*v)/(2*u*r*S),E=(p*p-u*u-i*v)/(2*p*r*S),w=Math.log(Math.sqrt(b*b+1)-b),C=Math.log(Math.sqrt(E*E+1)-E);_=(C-w)/n,y=function(x){var T=x*_,R=sIe(w),O=u/(r*S)*(R*OAn(n*T+w)-TAn(w));return[l+O*h,c+O*g,u*R/sIe(n*T+w)]}}return y.duration=_*1e3*n/Math.SQRT2,y}return o.rho=function(a){var s=Math.max(.001,+a),l=s*s,c=l*l;return e(s,l,c)},o}(Math.SQRT2,2,4);var eR=0,m2=0,SM=0,pQe=1e3,FB,v2,BB=0,yC=0,lz=0,GA=typeof performance=="object"&&performance.now?performance:Date,hQe=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Jpe(){return yC||(hQe(IAn),yC=GA.now()+lz)}function IAn(){yC=0}function jB(){this._call=this._time=this._next=null}jB.prototype=gQe.prototype={constructor:jB,restart:function(e,n,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Jpe():+r)+(n==null?0:+n),!this._next&&v2!==this&&(v2?v2._next=this:FB=this,v2=this),this._call=e,this._time=r,tae()},stop:function(){this._call&&(this._call=null,this._time=1/0,tae())}};function gQe(e,n,r){var i=new jB;return i.restart(e,n,r),i}function NAn(){Jpe(),++eR;for(var e=FB,n;e;)(n=yC-e._time)>=0&&e._call.call(void 0,n),e=e._next;--eR}function lIe(){yC=(BB=GA.now())+lz,eR=m2=0;try{NAn()}finally{eR=0,PAn(),yC=0}}function MAn(){var e=GA.now(),n=e-BB;n>pQe&&(lz-=n,BB=e)}function PAn(){for(var e,n=FB,r,i=1/0;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(r=n._next,n._next=null,n=e?e._next=r:FB=r);v2=e,tae(i)}function tae(e){if(!eR){m2&&(m2=clearTimeout(m2));var n=e-yC;n>24?(e<1/0&&(m2=setTimeout(lIe,e-GA.now()-lz)),SM&&(SM=clearInterval(SM))):(SM||(BB=GA.now(),SM=setInterval(MAn,pQe)),eR=1,hQe(lIe))}}function cIe(e,n,r){var i=new jB;return n=n==null?0:+n,i.restart(o=>{i.stop(),e(o+n)},n,r),i}var AAn=az("start","end","cancel","interrupt"),DAn=[],mQe=0,uIe=1,nae=2,P6=3,dIe=4,rae=5,A6=6;function cz(e,n,r,i,o,a){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;kAn(e,r,{name:n,index:i,group:o,on:AAn,tween:DAn,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:mQe})}function ehe(e,n){var r=xg(e,n);if(r.state>mQe)throw new Error("too late; already scheduled");return r}function iv(e,n){var r=xg(e,n);if(r.state>P6)throw new Error("too late; already running");return r}function xg(e,n){var r=e.__transition;if(!r||!(r=r[n]))throw new Error("transition not found");return r}function kAn(e,n,r){var i=e.__transition,o;i[n]=r,r.timer=gQe(a,0,r.time);function a(u){r.state=uIe,r.timer.restart(s,r.delay,r.time),r.delay<=u&&s(u-r.delay)}function s(u){var d,f,p,h;if(r.state!==uIe)return c();for(d in i)if(h=i[d],h.name===r.name){if(h.state===P6)return cIe(s);h.state===dIe?(h.state=A6,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[d]):+d<n&&(h.state=A6,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete i[d])}if(cIe(function(){r.state===P6&&(r.state=dIe,r.timer.restart(l,r.delay,r.time),l(u))}),r.state=nae,r.on.call("start",e,e.__data__,r.index,r.group),r.state===nae){for(r.state=P6,o=new Array(p=r.tween.length),d=0,f=-1;d<p;++d)(h=r.tween[d].value.call(e,e.__data__,r.index,r.group))&&(o[++f]=h);o.length=f+1}}function l(u){for(var d=u<r.duration?r.ease.call(null,u/r.duration):(r.timer.restart(c),r.state=rae,1),f=-1,p=o.length;++f<p;)o[f].call(e,d);r.state===rae&&(r.on.call("end",e,e.__data__,r.index,r.group),c())}function c(){r.state=A6,r.timer.stop(),delete i[n];for(var u in i)return;delete e.__transition}}function D6(e,n){var r=e.__transition,i,o,a=!0,s;if(r){n=n==null?null:n+"";for(s in r){if((i=r[s]).name!==n){a=!1;continue}o=i.state>nae&&i.state<rae,i.state=A6,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[s]}a&&delete e.__transition}}function LAn(e){return this.each(function(){D6(this,e)})}function $An(e,n){var r,i;return function(){var o=iv(this,e),a=o.tween;if(a!==r){i=r=a;for(var s=0,l=i.length;s<l;++s)if(i[s].name===n){i=i.slice(),i.splice(s,1);break}}o.tween=i}}function FAn(e,n,r){var i,o;if(typeof r!="function")throw new Error;return function(){var a=iv(this,e),s=a.tween;if(s!==i){o=(i=s).slice();for(var l={name:n,value:r},c=0,u=o.length;c<u;++c)if(o[c].name===n){o[c]=l;break}c===u&&o.push(l)}a.tween=o}}function BAn(e,n){var r=this._id;if(e+="",arguments.length<2){for(var i=xg(this.node(),r).tween,o=0,a=i.length,s;o<a;++o)if((s=i[o]).name===e)return s.value;return null}return this.each((n==null?$An:FAn)(r,e,n))}function the(e,n,r){var i=e._id;return e.each(function(){var o=iv(this,i);(o.value||(o.value={}))[n]=r.apply(this,arguments)}),function(o){return xg(o,i).value[n]}}function vQe(e,n){var r;return(typeof n=="number"?_b:n instanceof VA?oIe:(r=VA(n))?(n=r,oIe):bAn)(e,n)}function jAn(e){return function(){this.removeAttribute(e)}}function UAn(e){return function(){this.removeAttributeNS(e.space,e.local)}}function HAn(e,n,r){var i,o=r+"",a;return function(){var s=this.getAttribute(e);return s===o?null:s===i?a:a=n(i=s,r)}}function zAn(e,n,r){var i,o=r+"",a;return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===i?a:a=n(i=s,r)}}function VAn(e,n,r){var i,o,a;return function(){var s,l=r(this),c;return l==null?void this.removeAttribute(e):(s=this.getAttribute(e),c=l+"",s===c?null:s===i&&c===o?a:(o=c,a=n(i=s,l)))}}function GAn(e,n,r){var i,o,a;return function(){var s,l=r(this),c;return l==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),c=l+"",s===c?null:s===i&&c===o?a:(o=c,a=n(i=s,l)))}}function WAn(e,n){var r=sz(e),i=r==="transform"?wAn:vQe;return this.attrTween(e,typeof n=="function"?(r.local?GAn:VAn)(r,i,the(this,"attr."+e,n)):n==null?(r.local?UAn:jAn)(r):(r.local?zAn:HAn)(r,i,n))}function YAn(e,n){return function(r){this.setAttribute(e,n.call(this,r))}}function qAn(e,n){return function(r){this.setAttributeNS(e.space,e.local,n.call(this,r))}}function KAn(e,n){var r,i;function o(){var a=n.apply(this,arguments);return a!==i&&(r=(i=a)&&qAn(e,a)),r}return o._value=n,o}function XAn(e,n){var r,i;function o(){var a=n.apply(this,arguments);return a!==i&&(r=(i=a)&&YAn(e,a)),r}return o._value=n,o}function QAn(e,n){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;var i=sz(e);return this.tween(r,(i.local?KAn:XAn)(i,n))}function ZAn(e,n){return function(){ehe(this,e).delay=+n.apply(this,arguments)}}function JAn(e,n){return n=+n,function(){ehe(this,e).delay=n}}function eDn(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?ZAn:JAn)(n,e)):xg(this.node(),n).delay}function tDn(e,n){return function(){iv(this,e).duration=+n.apply(this,arguments)}}function nDn(e,n){return n=+n,function(){iv(this,e).duration=n}}function rDn(e){var n=this._id;return arguments.length?this.each((typeof e=="function"?tDn:nDn)(n,e)):xg(this.node(),n).duration}function iDn(e,n){if(typeof n!="function")throw new Error;return function(){iv(this,e).ease=n}}function oDn(e){var n=this._id;return arguments.length?this.each(iDn(n,e)):xg(this.node(),n).ease}function aDn(e,n){return function(){var r=n.apply(this,arguments);if(typeof r!="function")throw new Error;iv(this,e).ease=r}}function sDn(e){if(typeof e!="function")throw new Error;return this.each(aDn(this._id,e))}function lDn(e){typeof e!="function"&&(e=qXe(e));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]=[],c,u=0;u<s;++u)(c=a[u])&&e.call(c,c.__data__,u,a)&&l.push(c);return new Ly(i,this._parents,this._name,this._id)}function cDn(e){if(e._id!==this._id)throw new Error;for(var n=this._groups,r=e._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 Ly(s,this._parents,this._name,this._id)}function uDn(e){return(e+"").trim().split(/^|\s+/).every(function(n){var r=n.indexOf(".");return r>=0&&(n=n.slice(0,r)),!n||n==="start"})}function dDn(e,n,r){var i,o,a=uDn(n)?ehe:iv;return function(){var s=a(this,e),l=s.on;l!==i&&(o=(i=l).copy()).on(n,r),s.on=o}}function fDn(e,n){var r=this._id;return arguments.length<2?xg(this.node(),r).on.on(e):this.each(dDn(r,e,n))}function pDn(e){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==e)return;n&&n.removeChild(this)}}function hDn(){return this.on("end.remove",pDn(this._id))}function gDn(e){var n=this._name,r=this._id;typeof e!="function"&&(e=Xpe(e));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var l=i[s],c=l.length,u=a[s]=new Array(c),d,f,p=0;p<c;++p)(d=l[p])&&(f=e.call(d,d.__data__,p,l))&&("__data__"in d&&(f.__data__=d.__data__),u[p]=f,cz(u[p],n,r,p,u,xg(d,r)));return new Ly(a,this._parents,n,r)}function mDn(e){var n=this._name,r=this._id;typeof e!="function"&&(e=YXe(e));for(var i=this._groups,o=i.length,a=[],s=[],l=0;l<o;++l)for(var c=i[l],u=c.length,d,f=0;f<u;++f)if(d=c[f]){for(var p=e.call(d,d.__data__,f,c),h,g=xg(d,r),v=0,y=p.length;v<y;++v)(h=p[v])&&cz(h,n,r,v,p,g);a.push(p),s.push(d)}return new Ly(a,s,n,r)}var vDn=pL.prototype.constructor;function yDn(){return new vDn(this._groups,this._parents)}function _Dn(e,n){var r,i,o;return function(){var a=JO(this,e),s=(this.style.removeProperty(e),JO(this,e));return a===s?null:a===r&&s===i?o:o=n(r=a,i=s)}}function yQe(e){return function(){this.style.removeProperty(e)}}function bDn(e,n,r){var i,o=r+"",a;return function(){var s=JO(this,e);return s===o?null:s===i?a:a=n(i=s,r)}}function SDn(e,n,r){var i,o,a;return function(){var s=JO(this,e),l=r(this),c=l+"";return l==null&&(c=l=(this.style.removeProperty(e),JO(this,e))),s===c?null:s===i&&c===o?a:(o=c,a=n(i=s,l))}}function EDn(e,n){var r,i,o,a="style."+n,s="end."+a,l;return function(){var c=iv(this,e),u=c.on,d=c.value[a]==null?l||(l=yQe(n)):void 0;(u!==r||o!==d)&&(i=(r=u).copy()).on(s,o=d),c.on=i}}function CDn(e,n,r){var i=(e+="")=="transform"?CAn:vQe;return n==null?this.styleTween(e,_Dn(e,i)).on("end.style."+e,yQe(e)):typeof n=="function"?this.styleTween(e,SDn(e,i,the(this,"style."+e,n))).each(EDn(this._id,e)):this.styleTween(e,bDn(e,i,n),r).on("end.style."+e,null)}function wDn(e,n,r){return function(i){this.style.setProperty(e,n.call(this,i),r)}}function xDn(e,n,r){var i,o;function a(){var s=n.apply(this,arguments);return s!==o&&(i=(o=s)&&wDn(e,s,r)),i}return a._value=n,a}function TDn(e,n,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(n==null)return this.tween(i,null);if(typeof n!="function")throw new Error;return this.tween(i,xDn(e,n,r??""))}function ODn(e){return function(){this.textContent=e}}function RDn(e){return function(){var n=e(this);this.textContent=n??""}}function IDn(e){return this.tween("text",typeof e=="function"?RDn(the(this,"text",e)):ODn(e==null?"":e+""))}function NDn(e){return function(n){this.textContent=e.call(this,n)}}function MDn(e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&NDn(o)),n}return i._value=e,i}function PDn(e){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,MDn(e))}function ADn(){for(var e=this._name,n=this._id,r=_Qe(),i=this._groups,o=i.length,a=0;a<o;++a)for(var s=i[a],l=s.length,c,u=0;u<l;++u)if(c=s[u]){var d=xg(c,n);cz(c,e,r,u,s,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new Ly(i,this._parents,e,r)}function DDn(){var e,n,r=this,i=r._id,o=r.size();return new Promise(function(a,s){var l={value:s},c={value:function(){--o===0&&a()}};r.each(function(){var u=iv(this,i),d=u.on;d!==e&&(n=(e=d).copy(),n._.cancel.push(l),n._.interrupt.push(l),n._.end.push(c)),u.on=n}),o===0&&a()})}var kDn=0;function Ly(e,n,r,i){this._groups=e,this._parents=n,this._name=r,this._id=i}function _Qe(){return++kDn}var Iv=pL.prototype;Ly.prototype={constructor:Ly,select:gDn,selectAll:mDn,selectChild:Iv.selectChild,selectChildren:Iv.selectChildren,filter:lDn,merge:cDn,selection:yDn,transition:ADn,call:Iv.call,nodes:Iv.nodes,node:Iv.node,size:Iv.size,empty:Iv.empty,each:Iv.each,on:fDn,attr:WAn,attrTween:QAn,style:CDn,styleTween:TDn,text:IDn,textTween:PDn,remove:hDn,tween:BAn,delay:eDn,duration:rDn,ease:oDn,easeVarying:sDn,end:DDn,[Symbol.iterator]:Iv[Symbol.iterator]};function LDn(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var $Dn={time:null,delay:0,duration:250,ease:LDn};function FDn(e,n){for(var r;!(r=e.__transition)||!(r=r[n]);)if(!(e=e.parentNode))throw new Error(`transition ${n} not found`);return r}function BDn(e){var n,r;e instanceof Ly?(n=e._id,e=e._name):(n=_Qe(),(r=$Dn).time=Jpe(),e=e==null?null:e+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var s=i[a],l=s.length,c,u=0;u<l;++u)(c=s[u])&&cz(c,e,n,u,s,r||FDn(c,n));return new Ly(i,this._parents,e,n)}pL.prototype.interrupt=LAn;pL.prototype.transition=BDn;const O4=e=>()=>e;function jDn(e,{sourceEvent:n,target:r,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function ny(e,n,r){this.k=e,this.x=n,this.y=r}ny.prototype={constructor:ny,scale:function(e){return e===1?this:new ny(this.k*e,this.x,this.y)},translate:function(e,n){return e===0&n===0?this:new ny(this.k,this.x+this.k*e,this.y+this.k*n)},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 uz=new ny(1,0,0);bQe.prototype=ny.prototype;function bQe(e){for(;!e.__zoom;)if(!(e=e.parentNode))return uz;return e.__zoom}function yK(e){e.stopImmediatePropagation()}function EM(e){e.preventDefault(),e.stopImmediatePropagation()}function UDn(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function HDn(){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 fIe(){return this.__zoom||uz}function zDn(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function VDn(){return navigator.maxTouchPoints||"ontouchstart"in this}function GDn(e,n,r){var i=e.invertX(n[0][0])-r[0][0],o=e.invertX(n[1][0])-r[1][0],a=e.invertY(n[0][1])-r[0][1],s=e.invertY(n[1][1])-r[1][1];return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function SQe(){var e=UDn,n=HDn,r=GDn,i=zDn,o=VDn,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,c=RAn,u=az("start","zoom","end"),d,f,p,h=500,g=150,v=0,y=10;function _($){$.property("__zoom",fIe).on("wheel.zoom",T,{passive:!1}).on("mousedown.zoom",R).on("dblclick.zoom",O).filter(o).on("touchstart.zoom",M).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}_.transform=function($,U,z,D){var B=$.selection?$.selection():$;B.property("__zoom",fIe),$!==B?w($,U,z,D):B.interrupt().each(function(){C(this,arguments).event(D).start().zoom(null,typeof U=="function"?U.apply(this,arguments):U).end()})},_.scaleBy=function($,U,z,D){_.scaleTo($,function(){var B=this.__zoom.k,Y=typeof U=="function"?U.apply(this,arguments):U;return B*Y},z,D)},_.scaleTo=function($,U,z,D){_.transform($,function(){var B=n.apply(this,arguments),Y=this.__zoom,q=z==null?E(B):typeof z=="function"?z.apply(this,arguments):z,K=Y.invert(q),H=typeof U=="function"?U.apply(this,arguments):U;return r(b(S(Y,H),q,K),B,s)},z,D)},_.translateBy=function($,U,z,D){_.transform($,function(){return r(this.__zoom.translate(typeof U=="function"?U.apply(this,arguments):U,typeof z=="function"?z.apply(this,arguments):z),n.apply(this,arguments),s)},null,D)},_.translateTo=function($,U,z,D,B){_.transform($,function(){var Y=n.apply(this,arguments),q=this.__zoom,K=D==null?E(Y):typeof D=="function"?D.apply(this,arguments):D;return r(uz.translate(K[0],K[1]).scale(q.k).translate(typeof U=="function"?-U.apply(this,arguments):-U,typeof z=="function"?-z.apply(this,arguments):-z),Y,s)},D,B)};function S($,U){return U=Math.max(a[0],Math.min(a[1],U)),U===$.k?$:new ny(U,$.x,$.y)}function b($,U,z){var D=U[0]-z[0]*$.k,B=U[1]-z[1]*$.k;return D===$.x&&B===$.y?$:new ny($.k,D,B)}function E($){return[(+$[0][0]+ +$[1][0])/2,(+$[0][1]+ +$[1][1])/2]}function w($,U,z,D){$.on("start.zoom",function(){C(this,arguments).event(D).start()}).on("interrupt.zoom end.zoom",function(){C(this,arguments).event(D).end()}).tween("zoom",function(){var B=this,Y=arguments,q=C(B,Y).event(D),K=n.apply(B,Y),H=z==null?E(K):typeof z=="function"?z.apply(B,Y):z,G=Math.max(K[1][0]-K[0][0],K[1][1]-K[0][1]),Q=B.__zoom,le=typeof U=="function"?U.apply(B,Y):U,Z=c(Q.invert(H).concat(G/Q.k),le.invert(H).concat(G/le.k));return function(j){if(j===1)j=le;else{var F=Z(j),te=G/F[2];j=new ny(te,H[0]-F[0]*te,H[1]-F[1]*te)}q.zoom(null,j)}})}function C($,U,z){return!z&&$.__zooming||new x($,U)}function x($,U){this.that=$,this.args=U,this.active=0,this.sourceEvent=null,this.extent=n.apply($,U),this.taps=0}x.prototype={event:function($){return $&&(this.sourceEvent=$),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function($,U){return this.mouse&&$!=="mouse"&&(this.mouse[1]=U.invert(this.mouse[0])),this.touch0&&$!=="touch"&&(this.touch0[1]=U.invert(this.touch0[0])),this.touch1&&$!=="touch"&&(this.touch1[1]=U.invert(this.touch1[0])),this.that.__zoom=U,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function($){var U=rf(this.that).datum();u.call($,this.that,new jDn($,{sourceEvent:this.sourceEvent,target:_,type:$,transform:this.that.__zoom,dispatch:u}),U)}};function T($,...U){if(!e.apply(this,arguments))return;var z=C(this,U).event($),D=this.__zoom,B=Math.max(a[0],Math.min(a[1],D.k*Math.pow(2,i.apply(this,arguments)))),Y=Th($);if(z.wheel)(z.mouse[0][0]!==Y[0]||z.mouse[0][1]!==Y[1])&&(z.mouse[1]=D.invert(z.mouse[0]=Y)),clearTimeout(z.wheel);else{if(D.k===B)return;z.mouse=[Y,D.invert(Y)],D6(this),z.start()}EM($),z.wheel=setTimeout(q,g),z.zoom("mouse",r(b(S(D,B),z.mouse[0],z.mouse[1]),z.extent,s));function q(){z.wheel=null,z.end()}}function R($,...U){if(p||!e.apply(this,arguments))return;var z=$.currentTarget,D=C(this,U,!0).event($),B=rf($.view).on("mousemove.zoom",H,!0).on("mouseup.zoom",G,!0),Y=Th($,z),q=$.clientX,K=$.clientY;iQe($.view),yK($),D.mouse=[Y,this.__zoom.invert(Y)],D6(this),D.start();function H(Q){if(EM(Q),!D.moved){var le=Q.clientX-q,Z=Q.clientY-K;D.moved=le*le+Z*Z>v}D.event(Q).zoom("mouse",r(b(D.that.__zoom,D.mouse[0]=Th(Q,z),D.mouse[1]),D.extent,s))}function G(Q){B.on("mousemove.zoom mouseup.zoom",null),oQe(Q.view,D.moved),EM(Q),D.event(Q).end()}}function O($,...U){if(e.apply(this,arguments)){var z=this.__zoom,D=Th($.changedTouches?$.changedTouches[0]:$,this),B=z.invert(D),Y=z.k*($.shiftKey?.5:2),q=r(b(S(z,Y),D,B),n.apply(this,U),s);EM($),l>0?rf(this).transition().duration(l).call(w,q,D,$):rf(this).call(_.transform,q,D,$)}}function M($,...U){if(e.apply(this,arguments)){var z=$.touches,D=z.length,B=C(this,U,$.changedTouches.length===D).event($),Y,q,K,H;for(yK($),q=0;q<D;++q)K=z[q],H=Th(K,this),H=[H,this.__zoom.invert(H),K.identifier],B.touch0?!B.touch1&&B.touch0[2]!==H[2]&&(B.touch1=H,B.taps=0):(B.touch0=H,Y=!0,B.taps=1+!!d);d&&(d=clearTimeout(d)),Y&&(B.taps<2&&(f=H[0],d=setTimeout(function(){d=null},h)),D6(this),B.start())}}function P($,...U){if(this.__zooming){var z=C(this,U).event($),D=$.changedTouches,B=D.length,Y,q,K,H;for(EM($),Y=0;Y<B;++Y)q=D[Y],K=Th(q,this),z.touch0&&z.touch0[2]===q.identifier?z.touch0[0]=K:z.touch1&&z.touch1[2]===q.identifier&&(z.touch1[0]=K);if(q=z.that.__zoom,z.touch1){var G=z.touch0[0],Q=z.touch0[1],le=z.touch1[0],Z=z.touch1[1],j=(j=le[0]-G[0])*j+(j=le[1]-G[1])*j,F=(F=Z[0]-Q[0])*F+(F=Z[1]-Q[1])*F;q=S(q,Math.sqrt(j/F)),K=[(G[0]+le[0])/2,(G[1]+le[1])/2],H=[(Q[0]+Z[0])/2,(Q[1]+Z[1])/2]}else if(z.touch0)K=z.touch0[0],H=z.touch0[1];else return;z.zoom("touch",r(b(q,K,H),z.extent,s))}}function k($,...U){if(this.__zooming){var z=C(this,U).event($),D=$.changedTouches,B=D.length,Y,q;for(yK($),p&&clearTimeout(p),p=setTimeout(function(){p=null},h),Y=0;Y<B;++Y)q=D[Y],z.touch0&&z.touch0[2]===q.identifier?delete z.touch0:z.touch1&&z.touch1[2]===q.identifier&&delete z.touch1;if(z.touch1&&!z.touch0&&(z.touch0=z.touch1,delete z.touch1),z.touch0)z.touch0[1]=this.__zoom.invert(z.touch0[0]);else if(z.end(),z.taps===2&&(q=Th(q,this),Math.hypot(f[0]-q[0],f[1]-q[1])<y)){var K=rf(this).on("dblclick.zoom");K&&K.apply(this,arguments)}}}return _.wheelDelta=function($){return arguments.length?(i=typeof $=="function"?$:O4(+$),_):i},_.filter=function($){return arguments.length?(e=typeof $=="function"?$:O4(!!$),_):e},_.touchable=function($){return arguments.length?(o=typeof $=="function"?$:O4(!!$),_):o},_.extent=function($){return arguments.length?(n=typeof $=="function"?$:O4([[+$[0][0],+$[0][1]],[+$[1][0],+$[1][1]]]),_):n},_.scaleExtent=function($){return arguments.length?(a[0]=+$[0],a[1]=+$[1],_):[a[0],a[1]]},_.translateExtent=function($){return arguments.length?(s[0][0]=+$[0][0],s[1][0]=+$[1][0],s[0][1]=+$[0][1],s[1][1]=+$[1][1],_):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},_.constrain=function($){return arguments.length?(r=$,_):r},_.duration=function($){return arguments.length?(l=+$,_):l},_.interpolate=function($){return arguments.length?(c=$,_):c},_.on=function(){var $=u.on.apply(u,arguments);return $===u?_:$},_.clickDistance=function($){return arguments.length?(v=($=+$)*$,_):Math.sqrt(v)},_.tapDistance=function($){return arguments.length?(y=+$,_):y},_}const d_={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:n,sourceHandle:r,targetHandle:i})=>`Couldn't create edge for ${e} handle id: "${e==="source"?r:i}", edge id: ${n}.`,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.`},WA=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],EQe=["Enter"," ","Escape"];var tR;(function(e){e.Strict="strict",e.Loose="loose"})(tR||(tR={}));var L1;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(L1||(L1={}));var YA;(function(e){e.Partial="partial",e.Full="full"})(YA||(YA={}));const CQe={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var Tb;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(Tb||(Tb={}));var UB;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(UB||(UB={}));var xr;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(xr||(xr={}));const pIe={[xr.Left]:xr.Right,[xr.Right]:xr.Left,[xr.Top]:xr.Bottom,[xr.Bottom]:xr.Top};function wQe(e){return e===null?null:e?"valid":"invalid"}const xQe=e=>"id"in e&&"source"in e&&"target"in e,WDn=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),nhe=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),gL=(e,n=[0,0])=>{const{width:r,height:i}=f_(e),o=e.origin??n,a=r*o[0],s=i*o[1];return{x:e.position.x-a,y:e.position.y-s}},YDn=(e,n={nodeOrigin:[0,0],nodeLookup:void 0})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const r=e.reduce((i,o)=>{const a=typeof o=="string";let s=!n.nodeLookup&&!a?o:void 0;n.nodeLookup&&(s=a?n.nodeLookup.get(o):nhe(o)?o:n.nodeLookup.get(o.id));const l=s?HB(s,n.nodeOrigin):{x:0,y:0,x2:0,y2:0};return dz(i,l)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return fz(r)},mL=(e,n={})=>{if(e.size===0)return{x:0,y:0,width:0,height:0};let r={x:1/0,y:1/0,x2:-1/0,y2:-1/0};return e.forEach(i=>{if(n.filter===void 0||n.filter(i)){const o=HB(i);r=dz(r,o)}}),fz(r)},TQe=(e,n,[r,i,o]=[0,0,1],a=!1,s=!1)=>{const l={...vL(n,[r,i,o]),width:n.width/o,height:n.height/o},c=[];for(const u of e.values()){const{measured:d,selectable:f=!0,hidden:p=!1}=u;if(s&&!f||p)continue;const h=d.width??u.width??u.initialWidth??null,g=d.height??u.height??u.initialHeight??null,v=qA(l,rR(u)),y=(h??0)*(g??0),_=a&&v>0;(!u.internals.handleBounds||_||v>=y||u.dragging)&&c.push(u)}return c},qDn=(e,n)=>{const r=new Set;return e.forEach(i=>{r.add(i.id)}),n.filter(i=>r.has(i.source)||r.has(i.target))};function iae(e,n){const r=new Map,i=n!=null&&n.nodes?new Set(n.nodes.map(o=>o.id)):null;return e.forEach(o=>{o.measured.width&&o.measured.height&&((n==null?void 0:n.includeHiddenNodes)||!o.hidden)&&(!i||i.has(o.id))&&r.set(o.id,o)}),r}async function oae({nodes:e,width:n,height:r,panZoom:i,minZoom:o,maxZoom:a},s){if(e.size===0)return Promise.resolve(!1);const l=mL(e),c=rhe(l,n,r,(s==null?void 0:s.minZoom)??o,(s==null?void 0:s.maxZoom)??a,(s==null?void 0:s.padding)??.1);return await i.setViewport(c,{duration:s==null?void 0:s.duration}),Promise.resolve(!0)}function OQe({nodeId:e,nextPosition:n,nodeLookup:r,nodeOrigin:i=[0,0],nodeExtent:o,onError:a}){const s=r.get(e),l=s.parentId?r.get(s.parentId):void 0,{x:c,y:u}=l?l.internals.positionAbsolute:{x:0,y:0},d=s.origin??i;let f=o;if(s.extent==="parent"&&!s.expandParent)if(!l)a==null||a("005",d_.error005());else{const h=l.measured.width,g=l.measured.height;h&&g&&(f=[[c,u],[c+h,u+g]])}else l&&iR(s.extent)&&(f=[[s.extent[0][0]+c,s.extent[0][1]+u],[s.extent[1][0]+c,s.extent[1][1]+u]]);const p=iR(f)?_C(n,f,s.measured):n;return{position:{x:p.x-c+s.measured.width*d[0],y:p.y-u+s.measured.height*d[1]},positionAbsolute:p}}async function KDn({nodesToRemove:e=[],edgesToRemove:n=[],nodes:r,edges:i,onBeforeDelete:o}){const a=new Set(e.map(p=>p.id)),s=[];for(const p of r){if(p.deletable===!1)continue;const h=a.has(p.id),g=!h&&p.parentId&&s.find(v=>v.id===p.parentId);(h||g)&&s.push(p)}const l=new Set(n.map(p=>p.id)),c=i.filter(p=>p.deletable!==!1),d=qDn(s,c);for(const p of c)l.has(p.id)&&!d.find(g=>g.id===p.id)&&d.push(p);if(!o)return{edges:d,nodes:s};const f=await o({nodes:s,edges:d});return typeof f=="boolean"?f?{edges:d,nodes:s}:{edges:[],nodes:[]}:f}const nR=(e,n=0,r=1)=>Math.min(Math.max(e,n),r),_C=(e={x:0,y:0},n,r)=>({x:nR(e.x,n[0][0],n[1][0]-((r==null?void 0:r.width)??0)),y:nR(e.y,n[0][1],n[1][1]-((r==null?void 0:r.height)??0))});function RQe(e,n,r){const{width:i,height:o}=f_(r),{x:a,y:s}=r.internals.positionAbsolute;return _C(e,[[a,s],[a+i,s+o]],n)}const hIe=(e,n,r)=>e<n?nR(Math.abs(e-n),1,n)/n:e>r?-nR(Math.abs(e-r),1,n)/n:0,IQe=(e,n,r=15,i=40)=>{const o=hIe(e.x,i,n.width-i)*r,a=hIe(e.y,i,n.height-i)*r;return[o,a]},dz=(e,n)=>({x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),x2:Math.max(e.x2,n.x2),y2:Math.max(e.y2,n.y2)}),aae=({x:e,y:n,width:r,height:i})=>({x:e,y:n,x2:e+r,y2:n+i}),fz=({x:e,y:n,x2:r,y2:i})=>({x:e,y:n,width:r-e,height:i-n}),rR=(e,n=[0,0])=>{var o,a;const{x:r,y:i}=nhe(e)?e.internals.positionAbsolute:gL(e,n);return{x:r,y:i,width:((o=e.measured)==null?void 0:o.width)??e.width??e.initialWidth??0,height:((a=e.measured)==null?void 0:a.height)??e.height??e.initialHeight??0}},HB=(e,n=[0,0])=>{var o,a;const{x:r,y:i}=nhe(e)?e.internals.positionAbsolute:gL(e,n);return{x:r,y:i,x2:r+(((o=e.measured)==null?void 0:o.width)??e.width??e.initialWidth??0),y2:i+(((a=e.measured)==null?void 0:a.height)??e.height??e.initialHeight??0)}},NQe=(e,n)=>fz(dz(aae(e),aae(n))),qA=(e,n)=>{const r=Math.max(0,Math.min(e.x+e.width,n.x+n.width)-Math.max(e.x,n.x)),i=Math.max(0,Math.min(e.y+e.height,n.y+n.height)-Math.max(e.y,n.y));return Math.ceil(r*i)},gIe=e=>Lh(e.width)&&Lh(e.height)&&Lh(e.x)&&Lh(e.y),Lh=e=>!isNaN(e)&&isFinite(e),XDn=(e,n)=>{},pz=(e,n=[1,1])=>({x:n[0]*Math.round(e.x/n[0]),y:n[1]*Math.round(e.y/n[1])}),vL=({x:e,y:n},[r,i,o],a=!1,s=[1,1])=>{const l={x:(e-r)/o,y:(n-i)/o};return a?pz(l,s):l},MQe=({x:e,y:n},[r,i,o])=>({x:e*o+r,y:n*o+i}),rhe=(e,n,r,i,o,a)=>{const s=n/(e.width*(1+a)),l=r/(e.height*(1+a)),c=Math.min(s,l),u=nR(c,i,o),d=e.x+e.width/2,f=e.y+e.height/2,p=n/2-d*u,h=r/2-f*u;return{x:p,y:h,zoom:u}},zB=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function iR(e){return e!==void 0&&e!=="parent"}function f_(e){var n,r;return{width:((n=e.measured)==null?void 0:n.width)??e.width??e.initialWidth??0,height:((r=e.measured)==null?void 0:r.height)??e.height??e.initialHeight??0}}function PQe(e){var n,r;return(((n=e.measured)==null?void 0:n.width)??e.width??e.initialWidth)!==void 0&&(((r=e.measured)==null?void 0:r.height)??e.height??e.initialHeight)!==void 0}function AQe(e,n={width:0,height:0},r,i,o){const a={...e},s=i.get(r);if(s){const l=s.origin||o;a.x+=s.internals.positionAbsolute.x-(n.width??0)*l[0],a.y+=s.internals.positionAbsolute.y-(n.height??0)*l[1]}return a}function uP(e,{snapGrid:n=[0,0],snapToGrid:r=!1,transform:i,containerBounds:o}){const{x:a,y:s}=my(e),l=vL({x:a-((o==null?void 0:o.left)??0),y:s-((o==null?void 0:o.top)??0)},i),{x:c,y:u}=r?pz(l,n):l;return{xSnapped:c,ySnapped:u,...l}}const hz=e=>({width:e.offsetWidth,height:e.offsetHeight}),DQe=e=>{var n;return((n=e.getRootNode)==null?void 0:n.call(e))||(window==null?void 0:window.document)},QDn=["INPUT","SELECT","TEXTAREA"];function sae(e){var i,o;const n=((o=(i=e.composedPath)==null?void 0:i.call(e))==null?void 0:o[0])||e.target;return QDn.includes(n==null?void 0:n.nodeName)||(n==null?void 0:n.hasAttribute("contenteditable"))||!!(n!=null&&n.closest(".nokey"))}const kQe=e=>"clientX"in e,my=(e,n)=>{var a,s;const r=kQe(e),i=r?e.clientX:(a=e.touches)==null?void 0:a[0].clientX,o=r?e.clientY:(s=e.touches)==null?void 0:s[0].clientY;return{x:i-((n==null?void 0:n.left)??0),y:o-((n==null?void 0:n.top)??0)}},mIe=(e,n,r,i,o)=>{const a=n.querySelectorAll(`.${e}`);return!a||!a.length?null:Array.from(a).map(s=>{const l=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),type:e,nodeId:o,position:s.getAttribute("data-handlepos"),x:(l.left-r.left)/i,y:(l.top-r.top)/i,...hz(s)}})};function LQe({sourceX:e,sourceY:n,targetX:r,targetY:i,sourceControlX:o,sourceControlY:a,targetControlX:s,targetControlY:l}){const c=e*.125+o*.375+s*.375+r*.125,u=n*.125+a*.375+l*.375+i*.125,d=Math.abs(c-e),f=Math.abs(u-n);return[c,u,d,f]}function R4(e,n){return e>=0?.5*e:n*25*Math.sqrt(-e)}function vIe({pos:e,x1:n,y1:r,x2:i,y2:o,c:a}){switch(e){case xr.Left:return[n-R4(n-i,a),r];case xr.Right:return[n+R4(i-n,a),r];case xr.Top:return[n,r-R4(r-o,a)];case xr.Bottom:return[n,r+R4(o-r,a)]}}function $Qe({sourceX:e,sourceY:n,sourcePosition:r=xr.Bottom,targetX:i,targetY:o,targetPosition:a=xr.Top,curvature:s=.25}){const[l,c]=vIe({pos:r,x1:e,y1:n,x2:i,y2:o,c:s}),[u,d]=vIe({pos:a,x1:i,y1:o,x2:e,y2:n,c:s}),[f,p,h,g]=LQe({sourceX:e,sourceY:n,targetX:i,targetY:o,sourceControlX:l,sourceControlY:c,targetControlX:u,targetControlY:d});return[`M${e},${n} C${l},${c} ${u},${d} ${i},${o}`,f,p,h,g]}function FQe({sourceX:e,sourceY:n,targetX:r,targetY:i}){const o=Math.abs(r-e)/2,a=r<e?r+o:r-o,s=Math.abs(i-n)/2,l=i<n?i+s:i-s;return[a,l,o,s]}function ZDn({sourceNode:e,targetNode:n,selected:r=!1,zIndex:i=0,elevateOnSelect:o=!1}){if(!o)return i;const a=r||n.selected||e.selected,s=Math.max(e.internals.z||0,n.internals.z||0,1e3);return i+(a?s:0)}function JDn({sourceNode:e,targetNode:n,width:r,height:i,transform:o}){const a=dz(HB(e),HB(n));a.x===a.x2&&(a.x2+=1),a.y===a.y2&&(a.y2+=1);const s={x:-o[0]/o[2],y:-o[1]/o[2],width:r/o[2],height:i/o[2]};return qA(s,fz(a))>0}const ekn=({source:e,sourceHandle:n,target:r,targetHandle:i})=>`xy-edge__${e}${n||""}-${r}${i||""}`,tkn=(e,n)=>n.some(r=>r.source===e.source&&r.target===e.target&&(r.sourceHandle===e.sourceHandle||!r.sourceHandle&&!e.sourceHandle)&&(r.targetHandle===e.targetHandle||!r.targetHandle&&!e.targetHandle)),BQe=(e,n)=>{if(!e.source||!e.target)return n;let r;return xQe(e)?r={...e}:r={...e,id:ekn(e)},tkn(r,n)?n:(r.sourceHandle===null&&delete r.sourceHandle,r.targetHandle===null&&delete r.targetHandle,n.concat(r))};function jQe({sourceX:e,sourceY:n,targetX:r,targetY:i}){const[o,a,s,l]=FQe({sourceX:e,sourceY:n,targetX:r,targetY:i});return[`M ${e},${n}L ${r},${i}`,o,a,s,l]}const yIe={[xr.Left]:{x:-1,y:0},[xr.Right]:{x:1,y:0},[xr.Top]:{x:0,y:-1},[xr.Bottom]:{x:0,y:1}},nkn=({source:e,sourcePosition:n=xr.Bottom,target:r})=>n===xr.Left||n===xr.Right?e.x<r.x?{x:1,y:0}:{x:-1,y:0}:e.y<r.y?{x:0,y:1}:{x:0,y:-1},_Ie=(e,n)=>Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2));function rkn({source:e,sourcePosition:n=xr.Bottom,target:r,targetPosition:i=xr.Top,center:o,offset:a}){const s=yIe[n],l=yIe[i],c={x:e.x+s.x*a,y:e.y+s.y*a},u={x:r.x+l.x*a,y:r.y+l.y*a},d=nkn({source:c,sourcePosition:n,target:u}),f=d.x!==0?"x":"y",p=d[f];let h=[],g,v;const y={x:0,y:0},_={x:0,y:0},[S,b,E,w]=FQe({sourceX:e.x,sourceY:e.y,targetX:r.x,targetY:r.y});if(s[f]*l[f]===-1){g=o.x??S,v=o.y??b;const x=[{x:g,y:c.y},{x:g,y:u.y}],T=[{x:c.x,y:v},{x:u.x,y:v}];s[f]===p?h=f==="x"?x:T:h=f==="x"?T:x}else{const x=[{x:c.x,y:u.y}],T=[{x:u.x,y:c.y}];if(f==="x"?h=s.x===p?T:x:h=s.y===p?x:T,n===i){const k=Math.abs(e[f]-r[f]);if(k<=a){const $=Math.min(a-1,a-k);s[f]===p?y[f]=(c[f]>e[f]?-1:1)*$:_[f]=(u[f]>r[f]?-1:1)*$}}if(n!==i){const k=f==="x"?"y":"x",$=s[f]===l[k],U=c[k]>u[k],z=c[k]<u[k];(s[f]===1&&(!$&&U||$&&z)||s[f]!==1&&(!$&&z||$&&U))&&(h=f==="x"?x:T)}const R={x:c.x+y.x,y:c.y+y.y},O={x:u.x+_.x,y:u.y+_.y},M=Math.max(Math.abs(R.x-h[0].x),Math.abs(O.x-h[0].x)),P=Math.max(Math.abs(R.y-h[0].y),Math.abs(O.y-h[0].y));M>=P?(g=(R.x+O.x)/2,v=h[0].y):(g=h[0].x,v=(R.y+O.y)/2)}return[[e,{x:c.x+y.x,y:c.y+y.y},...h,{x:u.x+_.x,y:u.y+_.y},r],g,v,E,w]}function ikn(e,n,r,i){const o=Math.min(_Ie(e,n)/2,_Ie(n,r)/2,i),{x:a,y:s}=n;if(e.x===a&&a===r.x||e.y===s&&s===r.y)return`L${a} ${s}`;if(e.y===s){const u=e.x<r.x?-1:1,d=e.y<r.y?1:-1;return`L ${a+o*u},${s}Q ${a},${s} ${a},${s+o*d}`}const l=e.x<r.x?1:-1,c=e.y<r.y?-1:1;return`L ${a},${s+o*c}Q ${a},${s} ${a+o*l},${s}`}function lae({sourceX:e,sourceY:n,sourcePosition:r=xr.Bottom,targetX:i,targetY:o,targetPosition:a=xr.Top,borderRadius:s=5,centerX:l,centerY:c,offset:u=20}){const[d,f,p,h,g]=rkn({source:{x:e,y:n},sourcePosition:r,target:{x:i,y:o},targetPosition:a,center:{x:l,y:c},offset:u});return[d.reduce((y,_,S)=>{let b="";return S>0&&S<d.length-1?b=ikn(d[S-1],_,d[S+1],s):b=`${S===0?"M":"L"}${_.x} ${_.y}`,y+=b,y},""),f,p,h,g]}function bIe(e){var n;return e&&!!(e.internals.handleBounds||(n=e.handles)!=null&&n.length)&&!!(e.measured.width||e.width||e.initialWidth)}function okn(e){var f;const{sourceNode:n,targetNode:r}=e;if(!bIe(n)||!bIe(r))return null;const i=n.internals.handleBounds||SIe(n.handles),o=r.internals.handleBounds||SIe(r.handles),a=EIe((i==null?void 0:i.source)??[],e.sourceHandle),s=EIe(e.connectionMode===tR.Strict?(o==null?void 0:o.target)??[]:((o==null?void 0:o.target)??[]).concat((o==null?void 0:o.source)??[]),e.targetHandle);if(!a||!s)return(f=e.onError)==null||f.call(e,"008",d_.error008(a?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const l=(a==null?void 0:a.position)||xr.Bottom,c=(s==null?void 0:s.position)||xr.Top,u=KA(n,a,l),d=KA(r,s,c);return{sourceX:u.x,sourceY:u.y,targetX:d.x,targetY:d.y,sourcePosition:l,targetPosition:c}}function SIe(e){if(!e)return null;const n=[],r=[];for(const i of e)i.width=i.width??1,i.height=i.height??1,i.type==="source"?n.push(i):i.type==="target"&&r.push(i);return{source:n,target:r}}function KA(e,n,r=xr.Left,i=!1){const o=((n==null?void 0:n.x)??0)+e.internals.positionAbsolute.x,a=((n==null?void 0:n.y)??0)+e.internals.positionAbsolute.y,{width:s,height:l}=n??f_(e);if(i)return{x:o+s/2,y:a+l/2};switch((n==null?void 0:n.position)??r){case xr.Top:return{x:o+s/2,y:a};case xr.Right:return{x:o+s,y:a+l/2};case xr.Bottom:return{x:o+s/2,y:a+l};case xr.Left:return{x:o,y:a+l/2}}}function EIe(e,n){return e&&(n?e.find(r=>r.id===n):e[0])||null}function cae(e,n){return e?typeof e=="string"?e:`${n?`${n}__`:""}${Object.keys(e).sort().map(i=>`${i}=${e[i]}`).join("&")}`:""}function akn(e,{id:n,defaultColor:r,defaultMarkerStart:i,defaultMarkerEnd:o}){const a=new Set;return e.reduce((s,l)=>([l.markerStart||i,l.markerEnd||o].forEach(c=>{if(c&&typeof c=="object"){const u=cae(c,n);a.has(u)||(s.push({id:u,color:c.color||r,...c}),a.add(u))}}),s),[]).sort((s,l)=>s.id.localeCompare(l.id))}const ihe={nodeOrigin:[0,0],nodeExtent:WA,elevateNodesOnSelect:!0,defaults:{}},skn={...ihe,checkEquality:!0};function ohe(e,n){const r={...e};for(const i in n)n[i]!==void 0&&(r[i]=n[i]);return r}function lkn(e,n,r){const i=ohe(ihe,r);for(const o of e.values())if(o.parentId)ahe(o,e,n,i);else{const a=gL(o,i.nodeOrigin),s=iR(o.extent)?o.extent:i.nodeExtent,l=_C(a,s,f_(o));o.internals.positionAbsolute=l}}function uae(e,n,r,i){var l,c;const o=ohe(skn,i),a=new Map(n),s=o!=null&&o.elevateNodesOnSelect?1e3:0;n.clear(),r.clear();for(const u of e){let d=a.get(u.id);if(o.checkEquality&&u===(d==null?void 0:d.internals.userNode))n.set(u.id,d);else{const f=gL(u,o.nodeOrigin),p=iR(u.extent)?u.extent:o.nodeExtent,h=_C(f,p,f_(u));d={...o.defaults,...u,measured:{width:(l=u.measured)==null?void 0:l.width,height:(c=u.measured)==null?void 0:c.height},internals:{positionAbsolute:h,handleBounds:u.measured?d==null?void 0:d.internals.handleBounds:void 0,z:UQe(u,s),userNode:u}},n.set(u.id,d)}u.parentId&&ahe(d,n,r,i)}}function ckn(e,n){if(!e.parentId)return;const r=n.get(e.parentId);r?r.set(e.id,e):n.set(e.parentId,new Map([[e.id,e]]))}function ahe(e,n,r,i){const{elevateNodesOnSelect:o,nodeOrigin:a,nodeExtent:s}=ohe(ihe,i),l=e.parentId,c=n.get(l);if(!c){console.warn(`Parent node ${l} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}ckn(e,r);const u=o?1e3:0,{x:d,y:f,z:p}=ukn(e,c,a,s,u),{positionAbsolute:h}=e.internals,g=d!==h.x||f!==h.y;(g||p!==e.internals.z)&&(e.internals={...e.internals,positionAbsolute:g?{x:d,y:f}:h,z:p})}function UQe(e,n){return(Lh(e.zIndex)?e.zIndex:0)+(e.selected?n:0)}function ukn(e,n,r,i,o){const{x:a,y:s}=n.internals.positionAbsolute,l=f_(e),c=gL(e,r),u=iR(e.extent)?_C(c,e.extent,l):c;let d=_C({x:a+u.x,y:s+u.y},i,l);e.extent==="parent"&&(d=RQe(d,l,n));const f=UQe(e,o),p=n.internals.z??0;return{x:d.x,y:d.y,z:p>f?p:f}}function she(e,n,r,i=[0,0]){var s;const o=[],a=new Map;for(const l of e){const c=n.get(l.parentId);if(!c)continue;const u=((s=a.get(l.parentId))==null?void 0:s.expandedRect)??rR(c),d=NQe(u,l.rect);a.set(l.parentId,{expandedRect:d,parent:c})}return a.size>0&&a.forEach(({expandedRect:l,parent:c},u)=>{var b;const d=c.internals.positionAbsolute,f=f_(c),p=c.origin??i,h=l.x<d.x?Math.round(Math.abs(d.x-l.x)):0,g=l.y<d.y?Math.round(Math.abs(d.y-l.y)):0,v=Math.max(f.width,Math.round(l.width)),y=Math.max(f.height,Math.round(l.height)),_=(v-f.width)*p[0],S=(y-f.height)*p[1];(h>0||g>0||_||S)&&(o.push({id:u,type:"position",position:{x:c.position.x-h+_,y:c.position.y-g+S}}),(b=r.get(u))==null||b.forEach(E=>{e.some(w=>w.id===E.id)||o.push({id:E.id,type:"position",position:{x:E.position.x+h,y:E.position.y+g}})})),(f.width<l.width||f.height<l.height||h||g)&&o.push({id:u,type:"dimensions",setAttributes:!0,dimensions:{width:v+(h?p[0]*h-_:0),height:y+(g?p[1]*g-S:0)}})}),o}function dkn(e,n,r,i,o,a){const s=i==null?void 0:i.querySelector(".xyflow__viewport");let l=!1;if(!s)return{changes:[],updatedInternals:l};const c=[],u=window.getComputedStyle(s),{m22:d}=new window.DOMMatrixReadOnly(u.transform),f=[];for(const p of e.values()){const h=n.get(p.id);if(h)if(h.hidden)h.internals={...h.internals,handleBounds:void 0},l=!0;else{const g=hz(p.nodeElement),v=h.measured.width!==g.width||h.measured.height!==g.height;if(!!(g.width&&g.height&&(v||!h.internals.handleBounds||p.force))){const _=p.nodeElement.getBoundingClientRect(),S=iR(h.extent)?h.extent:a;let{positionAbsolute:b}=h.internals;h.parentId&&h.extent==="parent"?b=RQe(b,g,n.get(h.parentId)):S&&(b=_C(b,S,g)),h.measured=g,h.internals={...h.internals,positionAbsolute:b,handleBounds:{source:mIe("source",p.nodeElement,_,d,h.id),target:mIe("target",p.nodeElement,_,d,h.id)}},h.parentId&&ahe(h,n,r,{nodeOrigin:o}),l=!0,v&&(c.push({id:h.id,type:"dimensions",dimensions:g}),h.expandParent&&h.parentId&&f.push({id:h.id,parentId:h.parentId,rect:rR(h,o)}))}}}if(f.length>0){const p=she(f,n,r,o);c.push(...p)}return{changes:c,updatedInternals:l}}async function fkn({delta:e,panZoom:n,transform:r,translateExtent:i,width:o,height:a}){if(!n||!e.x&&!e.y)return Promise.resolve(!1);const s=await n.setViewportConstrained({x:r[0]+e.x,y:r[1]+e.y,zoom:r[2]},[[0,0],[o,a]],i),l=!!s&&(s.x!==r[0]||s.y!==r[1]||s.k!==r[2]);return Promise.resolve(l)}function HQe(e,n,r){e.clear(),n.clear();for(const i of r){const{source:o,target:a,sourceHandle:s=null,targetHandle:l=null}=i,c=`${o}-source-${s}`,u=`${a}-target-${l}`,d=e.get(c)||new Map,f=e.get(u)||new Map,p={edgeId:i.id,source:o,target:a,sourceHandle:s,targetHandle:l};n.set(i.id,i),e.set(c,d.set(`${a}-${l}`,p)),e.set(u,f.set(`${o}-${s}`,p))}}function zQe(e,n){if(!e.parentId)return!1;const r=n.get(e.parentId);return r?r.selected?!0:zQe(r,n):!1}function CIe(e,n,r){let i=e;do{if(i!=null&&i.matches(n))return!0;if(i===r)return!1;i=i.parentElement}while(i);return!1}function pkn(e,n,r,i){const o=new Map;for(const[a,s]of e)if((s.selected||s.id===i)&&(!s.parentId||!zQe(s,e))&&(s.draggable||n&&typeof s.draggable>"u")){const l=e.get(a);l&&o.set(a,{id:a,position:l.position||{x:0,y:0},distance:{x:r.x-l.internals.positionAbsolute.x,y:r.y-l.internals.positionAbsolute.y},extent:l.extent,parentId:l.parentId,origin:l.origin,expandParent:l.expandParent,internals:{positionAbsolute:l.internals.positionAbsolute||{x:0,y:0}},measured:{width:l.measured.width??0,height:l.measured.height??0}})}return o}function _K({nodeId:e,dragItems:n,nodeLookup:r,dragging:i=!0}){var s,l,c;const o=[];for(const[u,d]of n){const f=(s=r.get(u))==null?void 0:s.internals.userNode;f&&o.push({...f,position:d.position,dragging:i})}if(!e)return[o[0],o];const a=(l=r.get(e))==null?void 0:l.internals.userNode;return[a?{...a,position:((c=n.get(e))==null?void 0:c.position)||a.position,dragging:i}:o[0],o]}function hkn({onNodeMouseDown:e,getStoreItems:n,onDragStart:r,onDrag:i,onDragStop:o}){let a={x:null,y:null},s=0,l=new Map,c=!1,u={x:0,y:0},d=null,f=!1,p=null,h=!1;function g({noDragClassName:y,handleSelector:_,domNode:S,isSelectable:b,nodeId:E,nodeClickDistance:w=0}){p=rf(S);function C({x:O,y:M},P){const{nodeLookup:k,nodeExtent:$,snapGrid:U,snapToGrid:z,nodeOrigin:D,onNodeDrag:B,onSelectionDrag:Y,onError:q,updateNodePositions:K}=n();a={x:O,y:M};let H=!1,G={x:0,y:0,x2:0,y2:0};if(l.size>1&&$){const Q=mL(l);G=aae(Q)}for(const[Q,le]of l){if(!k.has(Q))continue;let Z={x:O-le.distance.x,y:M-le.distance.y};z&&(Z=pz(Z,U));let j=[[$[0][0],$[0][1]],[$[1][0],$[1][1]]];if(l.size>1&&$&&!le.extent){const{positionAbsolute:oe}=le.internals,de=oe.x-G.x+$[0][0],pe=oe.x+le.measured.width-G.x2+$[1][0],me=oe.y-G.y+$[0][1],ve=oe.y+le.measured.height-G.y2+$[1][1];j=[[de,me],[pe,ve]]}const{position:F,positionAbsolute:te}=OQe({nodeId:Q,nextPosition:Z,nodeLookup:k,nodeExtent:j,nodeOrigin:D,onError:q});H=H||le.position.x!==F.x||le.position.y!==F.y,le.position=F,le.internals.positionAbsolute=te}if(H&&(K(l,!0),P&&(i||B||!E&&Y))){const[Q,le]=_K({nodeId:E,dragItems:l,nodeLookup:k});i==null||i(P,l,Q,le),B==null||B(P,Q,le),E||Y==null||Y(P,le)}}async function x(){if(!d)return;const{transform:O,panBy:M,autoPanSpeed:P}=n(),[k,$]=IQe(u,d,P);(k!==0||$!==0)&&(a.x=(a.x??0)-k/O[2],a.y=(a.y??0)-$/O[2],await M({x:k,y:$})&&C(a,null)),s=requestAnimationFrame(x)}function T(O){var H;const{nodeLookup:M,multiSelectionActive:P,nodesDraggable:k,transform:$,snapGrid:U,snapToGrid:z,selectNodesOnDrag:D,onNodeDragStart:B,onSelectionDragStart:Y,unselectNodesAndEdges:q}=n();f=!0,(!D||!b)&&!P&&E&&((H=M.get(E))!=null&&H.selected||q()),b&&D&&E&&(e==null||e(E));const K=uP(O.sourceEvent,{transform:$,snapGrid:U,snapToGrid:z,containerBounds:d});if(a=K,l=pkn(M,k,K,E),l.size>0&&(r||B||!E&&Y)){const[G,Q]=_K({nodeId:E,dragItems:l,nodeLookup:M});r==null||r(O.sourceEvent,l,G,Q),B==null||B(O.sourceEvent,G,Q),E||Y==null||Y(O.sourceEvent,Q)}}const R=aQe().clickDistance(w).on("start",O=>{const{domNode:M,nodeDragThreshold:P,transform:k,snapGrid:$,snapToGrid:U}=n();d=(M==null?void 0:M.getBoundingClientRect())||null,h=!1,P===0&&T(O),a=uP(O.sourceEvent,{transform:k,snapGrid:$,snapToGrid:U,containerBounds:d}),u=my(O.sourceEvent,d)}).on("drag",O=>{const{autoPanOnNodeDrag:M,transform:P,snapGrid:k,snapToGrid:$,nodeDragThreshold:U,nodeLookup:z}=n(),D=uP(O.sourceEvent,{transform:P,snapGrid:k,snapToGrid:$,containerBounds:d});if((O.sourceEvent.type==="touchmove"&&O.sourceEvent.touches.length>1||E&&!z.has(E))&&(h=!0),!h){if(!c&&M&&f&&(c=!0,x()),!f){const B=D.xSnapped-(a.x??0),Y=D.ySnapped-(a.y??0);Math.sqrt(B*B+Y*Y)>U&&T(O)}(a.x!==D.xSnapped||a.y!==D.ySnapped)&&l&&f&&(u=my(O.sourceEvent,d),C(D,O.sourceEvent))}}).on("end",O=>{if(!(!f||h)&&(c=!1,f=!1,cancelAnimationFrame(s),l.size>0)){const{nodeLookup:M,updateNodePositions:P,onNodeDragStop:k,onSelectionDragStop:$}=n();if(P(l,!1),o||k||!E&&$){const[U,z]=_K({nodeId:E,dragItems:l,nodeLookup:M,dragging:!1});o==null||o(O.sourceEvent,l,U,z),k==null||k(O.sourceEvent,U,z),E||$==null||$(O.sourceEvent,z)}}}).filter(O=>{const M=O.target;return!O.button&&(!y||!CIe(M,`.${y}`,S))&&(!_||CIe(M,_,S))});p.call(R)}function v(){p==null||p.on(".drag",null)}return{update:g,destroy:v}}function gkn(e,n,r){const i=[],o={x:e.x-r,y:e.y-r,width:r*2,height:r*2};for(const a of n.values())qA(o,rR(a))>0&&i.push(a);return i}const mkn=250;function vkn(e,n,r,i){var l,c;let o=[],a=1/0;const s=gkn(e,r,n+mkn);for(const u of s){const d=[...((l=u.internals.handleBounds)==null?void 0:l.source)??[],...((c=u.internals.handleBounds)==null?void 0:c.target)??[]];for(const f of d){if(i.nodeId===f.nodeId&&i.type===f.type&&i.id===f.id)continue;const{x:p,y:h}=KA(u,f,f.position,!0),g=Math.sqrt(Math.pow(p-e.x,2)+Math.pow(h-e.y,2));g>n||(g<a?(o=[{...f,x:p,y:h}],a=g):g===a&&o.push({...f,x:p,y:h}))}}if(!o.length)return null;if(o.length>1){const u=i.type==="source"?"target":"source";return o.find(d=>d.type===u)??o[0]}return o[0]}function VQe(e,n,r,i,o,a=!1){var u,d,f;const s=i.get(e);if(!s)return null;const l=o==="strict"?(u=s.internals.handleBounds)==null?void 0:u[n]:[...((d=s.internals.handleBounds)==null?void 0:d.source)??[],...((f=s.internals.handleBounds)==null?void 0:f.target)??[]],c=(r?l==null?void 0:l.find(p=>p.id===r):l==null?void 0:l[0])??null;return c&&a?{...c,...KA(s,c,c.position,!0)}:c}function GQe(e,n){return e||(n!=null&&n.classList.contains("target")?"target":n!=null&&n.classList.contains("source")?"source":null)}function ykn(e,n){let r=null;return n?r=!0:e&&!n&&(r=!1),r}const WQe=()=>!0;function _kn(e,{connectionMode:n,connectionRadius:r,handleId:i,nodeId:o,edgeUpdaterType:a,isTarget:s,domNode:l,nodeLookup:c,lib:u,autoPanOnConnect:d,flowId:f,panBy:p,cancelConnection:h,onConnectStart:g,onConnect:v,onConnectEnd:y,isValidConnection:_=WQe,onReconnectEnd:S,updateConnection:b,getTransform:E,getFromHandle:w,autoPanSpeed:C}){const x=DQe(e.target);let T=0,R;const{x:O,y:M}=my(e),P=x==null?void 0:x.elementFromPoint(O,M),k=GQe(a,P),$=l==null?void 0:l.getBoundingClientRect();if(!$||!k)return;const U=VQe(o,k,i,c,n);if(!U)return;let z=my(e,$),D=!1,B=null,Y=!1,q=null;function K(){if(!d||!$)return;const[te,oe]=IQe(z,$,C);p({x:te,y:oe}),T=requestAnimationFrame(K)}const H={...U,nodeId:o,type:k,position:U.position},G=c.get(o),le={inProgress:!0,isValid:null,from:KA(G,H,xr.Left,!0),fromHandle:H,fromPosition:H.position,fromNode:G,to:z,toHandle:null,toPosition:pIe[H.position],toNode:null};b(le);let Z=le;g==null||g(e,{nodeId:o,handleId:i,handleType:k});function j(te){if(!w()||!H){F(te);return}const oe=E();z=my(te,$),R=vkn(vL(z,oe,!1,[1,1]),r,c,H),D||(K(),D=!0);const de=YQe(te,{handle:R,connectionMode:n,fromNodeId:o,fromHandleId:i,fromType:s?"target":"source",isValidConnection:_,doc:x,lib:u,flowId:f,nodeLookup:c});q=de.handleDomNode,B=de.connection,Y=ykn(!!R,de.isValid);const pe={...Z,isValid:Y,to:R&&Y?MQe({x:R.x,y:R.y},oe):z,toHandle:de.toHandle,toPosition:Y&&de.toHandle?de.toHandle.position:pIe[H.position],toNode:de.toHandle?c.get(de.toHandle.nodeId):null};Y&&R&&Z.toHandle&&pe.toHandle&&Z.toHandle.type===pe.toHandle.type&&Z.toHandle.nodeId===pe.toHandle.nodeId&&Z.toHandle.id===pe.toHandle.id&&Z.to.x===pe.to.x&&Z.to.y===pe.to.y||(b(pe),Z=pe)}function F(te){(R||q)&&B&&Y&&(v==null||v(B));const{inProgress:oe,...de}=Z,pe={...de,toPosition:Z.toHandle?Z.toPosition:null};y==null||y(te,pe),a&&(S==null||S(te,pe)),h(),cancelAnimationFrame(T),D=!1,Y=!1,B=null,q=null,x.removeEventListener("mousemove",j),x.removeEventListener("mouseup",F),x.removeEventListener("touchmove",j),x.removeEventListener("touchend",F)}x.addEventListener("mousemove",j),x.addEventListener("mouseup",F),x.addEventListener("touchmove",j),x.addEventListener("touchend",F)}function YQe(e,{handle:n,connectionMode:r,fromNodeId:i,fromHandleId:o,fromType:a,doc:s,lib:l,flowId:c,isValidConnection:u=WQe,nodeLookup:d}){const f=a==="target",p=n?s.querySelector(`.${l}-flow__handle[data-id="${c}-${n==null?void 0:n.nodeId}-${n==null?void 0:n.id}-${n==null?void 0:n.type}"]`):null,{x:h,y:g}=my(e),v=s.elementFromPoint(h,g),y=v!=null&&v.classList.contains(`${l}-flow__handle`)?v:p,_={handleDomNode:y,isValid:!1,connection:null,toHandle:null};if(y){const S=GQe(void 0,y),b=y.getAttribute("data-nodeid"),E=y.getAttribute("data-handleid"),w=y.classList.contains("connectable"),C=y.classList.contains("connectableend");if(!b||!S)return _;const x={source:f?b:i,sourceHandle:f?E:o,target:f?i:b,targetHandle:f?o:E};_.connection=x;const R=w&&C&&(r===tR.Strict?f&&S==="source"||!f&&S==="target":b!==i||E!==o);_.isValid=R&&u(x),_.toHandle=VQe(b,S,E,d,r,!1)}return _}const dae={onPointerDown:_kn,isValid:YQe};function bkn({domNode:e,panZoom:n,getTransform:r,getViewScale:i}){const o=rf(e);function a({translateExtent:l,width:c,height:u,zoomStep:d=10,pannable:f=!0,zoomable:p=!0,inversePan:h=!1}){const g=b=>{const E=r();if(b.sourceEvent.type!=="wheel"||!n)return;const w=-b.sourceEvent.deltaY*(b.sourceEvent.deltaMode===1?.05:b.sourceEvent.deltaMode?1:.002)*d,C=E[2]*Math.pow(2,w);n.scaleTo(C)};let v=[0,0];const y=b=>{(b.sourceEvent.type==="mousedown"||b.sourceEvent.type==="touchstart")&&(v=[b.sourceEvent.clientX??b.sourceEvent.touches[0].clientX,b.sourceEvent.clientY??b.sourceEvent.touches[0].clientY])},_=b=>{const E=r();if(b.sourceEvent.type!=="mousemove"&&b.sourceEvent.type!=="touchmove"||!n)return;const w=[b.sourceEvent.clientX??b.sourceEvent.touches[0].clientX,b.sourceEvent.clientY??b.sourceEvent.touches[0].clientY],C=[w[0]-v[0],w[1]-v[1]];v=w;const x=i()*Math.max(E[2],Math.log(E[2]))*(h?-1:1),T={x:E[0]-C[0]*x,y:E[1]-C[1]*x},R=[[0,0],[c,u]];n.setViewportConstrained({x:T.x,y:T.y,zoom:E[2]},R,l)},S=SQe().on("start",y).on("zoom",f?_:null).on("zoom.wheel",p?g:null);o.call(S,{})}function s(){o.on("zoom",null)}return{update:a,destroy:s,pointer:Th}}const Skn=(e,n)=>e.x!==n.x||e.y!==n.y||e.zoom!==n.k,gz=e=>({x:e.x,y:e.y,zoom:e.k}),bK=({x:e,y:n,zoom:r})=>uz.translate(e,n).scale(r),ET=(e,n)=>e.target.closest(`.${n}`),qQe=(e,n)=>n===2&&Array.isArray(e)&&e.includes(2),SK=(e,n=0,r=()=>{})=>{const i=typeof n=="number"&&n>0;return i||r(),i?e.transition().duration(n).on("end",r):e},KQe=e=>{const n=e.ctrlKey&&zB()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*n};function Ekn({zoomPanValues:e,noWheelClassName:n,d3Selection:r,d3Zoom:i,panOnScrollMode:o,panOnScrollSpeed:a,zoomOnPinch:s,onPanZoomStart:l,onPanZoom:c,onPanZoomEnd:u}){return d=>{if(ET(d,n))return!1;d.preventDefault(),d.stopImmediatePropagation();const f=r.property("__zoom").k||1;if(d.ctrlKey&&s){const y=Th(d),_=KQe(d),S=f*Math.pow(2,_);i.scaleTo(r,S,y,d);return}const p=d.deltaMode===1?20:1;let h=o===L1.Vertical?0:d.deltaX*p,g=o===L1.Horizontal?0:d.deltaY*p;!zB()&&d.shiftKey&&o!==L1.Vertical&&(h=d.deltaY*p,g=0),i.translateBy(r,-(h/f)*a,-(g/f)*a,{internal:!0});const v=gz(r.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling||(e.isPanScrolling=!0,l==null||l(d,v)),e.isPanScrolling&&(c==null||c(d,v),e.panScrollTimeout=setTimeout(()=>{u==null||u(d,v),e.isPanScrolling=!1},150))}}function Ckn({noWheelClassName:e,preventScrolling:n,d3ZoomHandler:r}){return function(i,o){if(!n&&i.type==="wheel"&&!i.ctrlKey||ET(i,e))return null;i.preventDefault(),r.call(this,i,o)}}function wkn({zoomPanValues:e,onDraggingChange:n,onPanZoomStart:r}){return i=>{var a,s,l;if((a=i.sourceEvent)!=null&&a.internal)return;const o=gz(i.transform);e.mouseButton=((s=i.sourceEvent)==null?void 0:s.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=o,((l=i.sourceEvent)==null?void 0:l.type)==="mousedown"&&n(!0),r&&(r==null||r(i.sourceEvent,o))}}function xkn({zoomPanValues:e,panOnDrag:n,onPaneContextMenu:r,onTransformChange:i,onPanZoom:o}){return a=>{var s,l;e.usedRightMouseButton=!!(r&&qQe(n,e.mouseButton??0)),(s=a.sourceEvent)!=null&&s.sync||i([a.transform.x,a.transform.y,a.transform.k]),o&&!((l=a.sourceEvent)!=null&&l.internal)&&(o==null||o(a.sourceEvent,gz(a.transform)))}}function Tkn({zoomPanValues:e,panOnDrag:n,panOnScroll:r,onDraggingChange:i,onPanZoomEnd:o,onPaneContextMenu:a}){return s=>{var l;if(!((l=s.sourceEvent)!=null&&l.internal)&&(e.isZoomingOrPanning=!1,a&&qQe(n,e.mouseButton??0)&&!e.usedRightMouseButton&&s.sourceEvent&&a(s.sourceEvent),e.usedRightMouseButton=!1,i(!1),o&&Skn(e.prevViewport,s.transform))){const c=gz(s.transform);e.prevViewport=c,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{o==null||o(s.sourceEvent,c)},r?150:0)}}}function Okn({zoomActivationKeyPressed:e,zoomOnScroll:n,zoomOnPinch:r,panOnDrag:i,panOnScroll:o,zoomOnDoubleClick:a,userSelectionActive:s,noWheelClassName:l,noPanClassName:c,lib:u}){return d=>{var g;const f=e||n,p=r&&d.ctrlKey;if(d.button===1&&d.type==="mousedown"&&(ET(d,`${u}-flow__node`)||ET(d,`${u}-flow__edge`)))return!0;if(!i&&!f&&!o&&!a&&!r||s||ET(d,l)&&d.type==="wheel"||ET(d,c)&&(d.type!=="wheel"||o&&d.type==="wheel"&&!e)||!r&&d.ctrlKey&&d.type==="wheel")return!1;if(!r&&d.type==="touchstart"&&((g=d.touches)==null?void 0:g.length)>1)return d.preventDefault(),!1;if(!f&&!o&&!p&&d.type==="wheel"||!i&&(d.type==="mousedown"||d.type==="touchstart")||Array.isArray(i)&&!i.includes(d.button)&&d.type==="mousedown")return!1;const h=Array.isArray(i)&&i.includes(d.button)||!d.button||d.button<=1;return(!d.ctrlKey||d.type==="wheel")&&h}}function Rkn({domNode:e,minZoom:n,maxZoom:r,paneClickDistance:i,translateExtent:o,viewport:a,onPanZoom:s,onPanZoomStart:l,onPanZoomEnd:c,onDraggingChange:u}){const d={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},f=e.getBoundingClientRect(),p=SQe().clickDistance(!Lh(i)||i<0?0:i).scaleExtent([n,r]).translateExtent(o),h=rf(e).call(p);b({x:a.x,y:a.y,zoom:nR(a.zoom,n,r)},[[0,0],[f.width,f.height]],o);const g=h.on("wheel.zoom"),v=h.on("dblclick.zoom");p.wheelDelta(KQe);function y(P,k){return h?new Promise($=>{p==null||p.transform(SK(h,k==null?void 0:k.duration,()=>$(!0)),P)}):Promise.resolve(!1)}function _({noWheelClassName:P,noPanClassName:k,onPaneContextMenu:$,userSelectionActive:U,panOnScroll:z,panOnDrag:D,panOnScrollMode:B,panOnScrollSpeed:Y,preventScrolling:q,zoomOnPinch:K,zoomOnScroll:H,zoomOnDoubleClick:G,zoomActivationKeyPressed:Q,lib:le,onTransformChange:Z}){U&&!d.isZoomingOrPanning&&S();const F=z&&!Q&&!U?Ekn({zoomPanValues:d,noWheelClassName:P,d3Selection:h,d3Zoom:p,panOnScrollMode:B,panOnScrollSpeed:Y,zoomOnPinch:K,onPanZoomStart:l,onPanZoom:s,onPanZoomEnd:c}):Ckn({noWheelClassName:P,preventScrolling:q,d3ZoomHandler:g});if(h.on("wheel.zoom",F,{passive:!1}),!U){const oe=wkn({zoomPanValues:d,onDraggingChange:u,onPanZoomStart:l});p.on("start",oe);const de=xkn({zoomPanValues:d,panOnDrag:D,onPaneContextMenu:!!$,onPanZoom:s,onTransformChange:Z});p.on("zoom",de);const pe=Tkn({zoomPanValues:d,panOnDrag:D,panOnScroll:z,onPaneContextMenu:$,onPanZoomEnd:c,onDraggingChange:u});p.on("end",pe)}const te=Okn({zoomActivationKeyPressed:Q,panOnDrag:D,zoomOnScroll:H,panOnScroll:z,zoomOnDoubleClick:G,zoomOnPinch:K,userSelectionActive:U,noPanClassName:k,noWheelClassName:P,lib:le});p.filter(te),G?h.on("dblclick.zoom",v):h.on("dblclick.zoom",null)}function S(){p.on("zoom",null)}async function b(P,k,$){const U=bK(P),z=p==null?void 0:p.constrain()(U,k,$);return z&&await y(z),new Promise(D=>D(z))}async function E(P,k){const $=bK(P);return await y($,k),new Promise(U=>U($))}function w(P){if(h){const k=bK(P),$=h.property("__zoom");($.k!==P.zoom||$.x!==P.x||$.y!==P.y)&&(p==null||p.transform(h,k,null,{sync:!0}))}}function C(){const P=h?bQe(h.node()):{x:0,y:0,k:1};return{x:P.x,y:P.y,zoom:P.k}}function x(P,k){return h?new Promise($=>{p==null||p.scaleTo(SK(h,k==null?void 0:k.duration,()=>$(!0)),P)}):Promise.resolve(!1)}function T(P,k){return h?new Promise($=>{p==null||p.scaleBy(SK(h,k==null?void 0:k.duration,()=>$(!0)),P)}):Promise.resolve(!1)}function R(P){p==null||p.scaleExtent(P)}function O(P){p==null||p.translateExtent(P)}function M(P){const k=!Lh(P)||P<0?0:P;p==null||p.clickDistance(k)}return{update:_,destroy:S,setViewport:E,setViewportConstrained:b,getViewport:C,scaleTo:x,scaleBy:T,setScaleExtent:R,setTranslateExtent:O,syncViewport:w,setClickDistance:M}}var dP;(function(e){e.Line="line",e.Handle="handle"})(dP||(dP={}));function Ikn({width:e,prevWidth:n,height:r,prevHeight:i,affectsX:o,affectsY:a}){const s=e-n,l=r-i,c=[s>0?1:s<0?-1:0,l>0?1:l<0?-1:0];return s&&o&&(c[0]=c[0]*-1),l&&a&&(c[1]=c[1]*-1),c}function Nkn(e){const n=e.includes("right")||e.includes("left"),r=e.includes("bottom")||e.includes("top"),i=e.includes("left"),o=e.includes("top");return{isHorizontal:n,isVertical:r,affectsX:i,affectsY:o}}function V_(e,n){return Math.max(0,n-e)}function G_(e,n){return Math.max(0,e-n)}function I4(e,n,r){return Math.max(0,n-e,e-r)}function wIe(e,n){return e?!n:n}function Mkn(e,n,r,i,o,a,s,l){let{affectsX:c,affectsY:u}=n;const{isHorizontal:d,isVertical:f}=n,p=d&&f,{xSnapped:h,ySnapped:g}=r,{minWidth:v,maxWidth:y,minHeight:_,maxHeight:S}=i,{x:b,y:E,width:w,height:C,aspectRatio:x}=e;let T=Math.floor(d?h-e.pointerX:0),R=Math.floor(f?g-e.pointerY:0);const O=w+(c?-T:T),M=C+(u?-R:R),P=-a[0]*w,k=-a[1]*C;let $=I4(O,v,y),U=I4(M,_,S);if(s){let B=0,Y=0;c&&T<0?B=V_(b+T+P,s[0][0]):!c&&T>0&&(B=G_(b+O+P,s[1][0])),u&&R<0?Y=V_(E+R+k,s[0][1]):!u&&R>0&&(Y=G_(E+M+k,s[1][1])),$=Math.max($,B),U=Math.max(U,Y)}if(l){let B=0,Y=0;c&&T>0?B=G_(b+T,l[0][0]):!c&&T<0&&(B=V_(b+O,l[1][0])),u&&R>0?Y=G_(E+R,l[0][1]):!u&&R<0&&(Y=V_(E+M,l[1][1])),$=Math.max($,B),U=Math.max(U,Y)}if(o){if(d){const B=I4(O/x,_,S)*x;if($=Math.max($,B),s){let Y=0;!c&&!u||c&&!u&&p?Y=G_(E+k+O/x,s[1][1])*x:Y=V_(E+k+(c?T:-T)/x,s[0][1])*x,$=Math.max($,Y)}if(l){let Y=0;!c&&!u||c&&!u&&p?Y=V_(E+O/x,l[1][1])*x:Y=G_(E+(c?T:-T)/x,l[0][1])*x,$=Math.max($,Y)}}if(f){const B=I4(M*x,v,y)/x;if(U=Math.max(U,B),s){let Y=0;!c&&!u||u&&!c&&p?Y=G_(b+M*x+P,s[1][0])/x:Y=V_(b+(u?R:-R)*x+P,s[0][0])/x,U=Math.max(U,Y)}if(l){let Y=0;!c&&!u||u&&!c&&p?Y=V_(b+M*x,l[1][0])/x:Y=G_(b+(u?R:-R)*x,l[0][0])/x,U=Math.max(U,Y)}}}R=R+(R<0?U:-U),T=T+(T<0?$:-$),o&&(p?O>M*x?R=(wIe(c,u)?-T:T)/x:T=(wIe(c,u)?-R:R)*x:d?(R=T/x,u=c):(T=R*x,c=u));const z=c?b+T:b,D=u?E+R:E;return{width:w+(c?-T:T),height:C+(u?-R:R),x:a[0]*T*(c?-1:1)+z,y:a[1]*R*(u?-1:1)+D}}const XQe={width:0,height:0,x:0,y:0},Pkn={...XQe,pointerX:0,pointerY:0,aspectRatio:1};function Akn(e){return[[0,0],[e.measured.width,e.measured.height]]}function Dkn(e,n,r){const i=n.position.x+e.position.x,o=n.position.y+e.position.y,a=e.measured.width??0,s=e.measured.height??0,l=r[0]*a,c=r[1]*s;return[[i-l,o-c],[i+a-l,o+s-c]]}function kkn({domNode:e,nodeId:n,getStoreItems:r,onChange:i,onEnd:o}){const a=rf(e);function s({controlPosition:c,boundaries:u,keepAspectRatio:d,onResizeStart:f,onResize:p,onResizeEnd:h,shouldResize:g}){let v={...XQe},y={...Pkn};const _=Nkn(c);let S,b=null,E=[],w,C,x;const T=aQe().on("start",R=>{const{nodeLookup:O,transform:M,snapGrid:P,snapToGrid:k,nodeOrigin:$,paneDomNode:U}=r();if(S=O.get(n),!S)return;b=(U==null?void 0:U.getBoundingClientRect())??null;const{xSnapped:z,ySnapped:D}=uP(R.sourceEvent,{transform:M,snapGrid:P,snapToGrid:k,containerBounds:b});v={width:S.measured.width??0,height:S.measured.height??0,x:S.position.x??0,y:S.position.y??0},y={...v,pointerX:z,pointerY:D,aspectRatio:v.width/v.height},w=void 0,S.parentId&&(S.extent==="parent"||S.expandParent)&&(w=O.get(S.parentId),C=w&&S.extent==="parent"?Akn(w):void 0),E=[],x=void 0;for(const[B,Y]of O)if(Y.parentId===n&&(E.push({id:B,position:{...Y.position},extent:Y.extent}),Y.extent==="parent"||Y.expandParent)){const q=Dkn(Y,S,Y.origin??$);x?x=[[Math.min(q[0][0],x[0][0]),Math.min(q[0][1],x[0][1])],[Math.max(q[1][0],x[1][0]),Math.max(q[1][1],x[1][1])]]:x=q}f==null||f(R,{...v})}).on("drag",R=>{const{transform:O,snapGrid:M,snapToGrid:P,nodeOrigin:k}=r(),$=uP(R.sourceEvent,{transform:O,snapGrid:M,snapToGrid:P,containerBounds:b}),U=[];if(!S)return;const{x:z,y:D,width:B,height:Y}=v,q={},K=S.origin??k,{width:H,height:G,x:Q,y:le}=Mkn(y,_,$,u,d,K,C,x),Z=H!==B,j=G!==Y,F=Q!==z&&Z,te=le!==D&&j;if(!F&&!te&&!Z&&!j)return;if((F||te||K[0]===1||K[1]===1)&&(q.x=F?Q:v.x,q.y=te?le:v.y,v.x=q.x,v.y=q.y,E.length>0)){const me=Q-z,ve=le-D;for(const he of E)he.position={x:he.position.x-me+K[0]*(H-B),y:he.position.y-ve+K[1]*(G-Y)},U.push(he)}if((Z||j)&&(q.width=Z?H:v.width,q.height=j?G:v.height,v.width=q.width,v.height=q.height),w&&S.expandParent){const me=K[0]*(q.width??0);q.x&&q.x<me&&(v.x=me,y.x=y.x-(q.x-me));const ve=K[1]*(q.height??0);q.y&&q.y<ve&&(v.y=ve,y.y=y.y-(q.y-ve))}const oe=Ikn({width:v.width,prevWidth:B,height:v.height,prevHeight:Y,affectsX:_.affectsX,affectsY:_.affectsY}),de={...v,direction:oe};(g==null?void 0:g(R,de))!==!1&&(p==null||p(R,de),i(q,U))}).on("end",R=>{h==null||h(R,{...v}),o==null||o()});a.call(T)}function l(){a.on(".drag",null)}return{update:s,destroy:l}}const{useDebugValue:Lkn}=V,{useSyncExternalStoreWithSelector:$kn}=S4e,Fkn=e=>e;function QQe(e,n=Fkn,r){const i=$kn(e.subscribe,e.getState,e.getServerState||e.getInitialState,n,r);return Lkn(i),i}const xIe=(e,n)=>{const r=g4e(e),i=(o,a=n)=>QQe(r,o,a);return Object.assign(i,r),i},Bkn=(e,n)=>e?xIe(e,n):xIe;function Ts(e,n){if(Object.is(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(const[i,o]of e)if(!Object.is(o,n.get(i)))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(const i of e)if(!n.has(i))return!1;return!0}const r=Object.keys(e);if(r.length!==Object.keys(n).length)return!1;for(const i of r)if(!Object.prototype.hasOwnProperty.call(n,i)||!Object.is(e[i],n[i]))return!1;return!0}const mz=m.createContext(null),jkn=mz.Provider,ZQe=d_.error001();function fo(e,n){const r=m.useContext(mz);if(r===null)throw new Error(ZQe);return QQe(r,e,n)}function Ka(){const e=m.useContext(mz);if(e===null)throw new Error(ZQe);return m.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const TIe={display:"none"},Ukn={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},JQe="react-flow__node-desc",eZe="react-flow__edge-desc",Hkn="react-flow__aria-live",zkn=e=>e.ariaLiveMessage;function Vkn({rfId:e}){const n=fo(zkn);return N.jsx("div",{id:`${Hkn}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:Ukn,children:n})}function Gkn({rfId:e,disableKeyboardA11y:n}){return N.jsxs(N.Fragment,{children:[N.jsxs("div",{id:`${JQe}-${e}`,style:TIe,children:["Press enter or space to select a node.",!n&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "]}),N.jsx("div",{id:`${eZe}-${e}`,style:TIe,children:"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."}),!n&&N.jsx(Vkn,{rfId:e})]})}const Wkn=e=>e.userSelectionActive?"none":"all";function lhe({position:e="top-left",children:n,className:r,style:i,...o}){const a=fo(Wkn),s=`${e}`.split("-");return N.jsx("div",{className:dl(["react-flow__panel",r,...s]),style:{...i,pointerEvents:a},...o,children:n})}function Ykn({proOptions:e,position:n="bottom-right"}){return e!=null&&e.hideAttribution?null:N.jsx(lhe,{position:n,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:N.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const qkn=e=>{const n=[],r=[];for(const[,i]of e.nodeLookup)i.selected&&n.push(i.internals.userNode);for(const[,i]of e.edgeLookup)i.selected&&r.push(i);return{selectedNodes:n,selectedEdges:r}},N4=e=>e.id;function Kkn(e,n){return Ts(e.selectedNodes.map(N4),n.selectedNodes.map(N4))&&Ts(e.selectedEdges.map(N4),n.selectedEdges.map(N4))}function Xkn({onSelectionChange:e}){const n=Ka(),{selectedNodes:r,selectedEdges:i}=fo(qkn,Kkn);return m.useEffect(()=>{const o={nodes:r,edges:i};e==null||e(o),n.getState().onSelectionChangeHandlers.forEach(a=>a(o))},[r,i,e]),null}const Qkn=e=>!!e.onSelectionChangeHandlers;function Zkn({onSelectionChange:e}){const n=fo(Qkn);return e||n?N.jsx(Xkn,{onSelectionChange:e}):null}const tZe=[0,0],Jkn={x:0,y:0,zoom:1},eLn=["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"],OIe=[...eLn,"rfId"],tLn=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}),RIe={translateExtent:WA,nodeOrigin:tZe,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1",paneClickDistance:0};function nLn(e){const{setNodes:n,setEdges:r,setMinZoom:i,setMaxZoom:o,setTranslateExtent:a,setNodeExtent:s,reset:l,setDefaultNodesAndEdges:c,setPaneClickDistance:u}=fo(tLn,Ts),d=Ka();m.useEffect(()=>(c(e.defaultNodes,e.defaultEdges),()=>{f.current=RIe,l()}),[]);const f=m.useRef(RIe);return m.useEffect(()=>{for(const p of OIe){const h=e[p],g=f.current[p];h!==g&&(typeof e[p]>"u"||(p==="nodes"?n(h):p==="edges"?r(h):p==="minZoom"?i(h):p==="maxZoom"?o(h):p==="translateExtent"?a(h):p==="nodeExtent"?s(h):p==="paneClickDistance"?u(h):p==="fitView"?d.setState({fitViewOnInit:h}):p==="fitViewOptions"?d.setState({fitViewOnInitOptions:h}):d.setState({[p]:h})))}f.current=e},OIe.map(p=>e[p])),null}function IIe(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function rLn(e){var i;const[n,r]=m.useState(e==="system"?null:e);return m.useEffect(()=>{if(e!=="system"){r(e);return}const o=IIe(),a=()=>r(o!=null&&o.matches?"dark":"light");return a(),o==null||o.addEventListener("change",a),()=>{o==null||o.removeEventListener("change",a)}},[e]),n!==null?n:(i=IIe())!=null&&i.matches?"dark":"light"}const NIe=typeof document<"u"?document:null;function XA(e=null,n={target:NIe,actInsideInputWithModifier:!0}){const[r,i]=m.useState(!1),o=m.useRef(!1),a=m.useRef(new Set([])),[s,l]=m.useMemo(()=>{if(e!==null){const u=(Array.isArray(e)?e:[e]).filter(f=>typeof f=="string").map(f=>f.replace("+",`
`).replace(`
`,`
+`).split(`
`)),d=u.reduce((f,p)=>f.concat(...p),[]);return[u,d]}return[[],[]]},[e]);return m.useEffect(()=>{const c=(n==null?void 0:n.target)||NIe;if(e!==null){const u=p=>{if(o.current=p.ctrlKey||p.metaKey||p.shiftKey,(!o.current||o.current&&!n.actInsideInputWithModifier)&&sae(p))return!1;const g=PIe(p.code,l);a.current.add(p[g]),MIe(s,a.current,!1)&&(p.preventDefault(),i(!0))},d=p=>{if((!o.current||o.current&&!n.actInsideInputWithModifier)&&sae(p))return!1;const g=PIe(p.code,l);MIe(s,a.current,!0)?(i(!1),a.current.clear()):a.current.delete(p[g]),p.key==="Meta"&&a.current.clear(),o.current=!1},f=()=>{a.current.clear(),i(!1)};return c==null||c.addEventListener("keydown",u),c==null||c.addEventListener("keyup",d),window.addEventListener("blur",f),window.addEventListener("contextmenu",f),()=>{c==null||c.removeEventListener("keydown",u),c==null||c.removeEventListener("keyup",d),window.removeEventListener("blur",f),window.removeEventListener("contextmenu",f)}}},[e,i]),r}function MIe(e,n,r){return e.filter(i=>r||i.length===n.size).some(i=>i.every(o=>n.has(o)))}function PIe(e,n){return n.includes(e)?"code":"key"}const iLn=()=>{const e=Ka();return m.useMemo(()=>({zoomIn:n=>{const{panZoom:r}=e.getState();return r?r.scaleBy(1.2,{duration:n==null?void 0:n.duration}):Promise.resolve(!1)},zoomOut:n=>{const{panZoom:r}=e.getState();return r?r.scaleBy(1/1.2,{duration:n==null?void 0:n.duration}):Promise.resolve(!1)},zoomTo:(n,r)=>{const{panZoom:i}=e.getState();return i?i.scaleTo(n,{duration:r==null?void 0:r.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(n,r)=>{const{transform:[i,o,a],panZoom:s}=e.getState();return s?(await s.setViewport({x:n.x??i,y:n.y??o,zoom:n.zoom??a},{duration:r==null?void 0:r.duration}),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[n,r,i]=e.getState().transform;return{x:n,y:r,zoom:i}},fitView:n=>{const{nodeLookup:r,minZoom:i,maxZoom:o,panZoom:a,domNode:s}=e.getState();if(!a||!s)return Promise.resolve(!1);const l=iae(r,n),{width:c,height:u}=hz(s);return oae({nodes:l,width:c,height:u,minZoom:i,maxZoom:o,panZoom:a},n)},setCenter:async(n,r,i)=>{const{width:o,height:a,maxZoom:s,panZoom:l}=e.getState(),c=typeof(i==null?void 0:i.zoom)<"u"?i.zoom:s,u=o/2-n*c,d=a/2-r*c;return l?(await l.setViewport({x:u,y:d,zoom:c},{duration:i==null?void 0:i.duration}),Promise.resolve(!0)):Promise.resolve(!1)},fitBounds:async(n,r)=>{const{width:i,height:o,minZoom:a,maxZoom:s,panZoom:l}=e.getState(),c=rhe(n,i,o,a,s,(r==null?void 0:r.padding)??.1);return l?(await l.setViewport(c,{duration:r==null?void 0:r.duration}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(n,r={snapToGrid:!0})=>{const{transform:i,snapGrid:o,domNode:a}=e.getState();if(!a)return n;const{x:s,y:l}=a.getBoundingClientRect(),c={x:n.x-s,y:n.y-l};return vL(c,i,r.snapToGrid,o)},flowToScreenPosition:n=>{const{transform:r,domNode:i}=e.getState();if(!i)return n;const{x:o,y:a}=i.getBoundingClientRect(),s=MQe(n,r);return{x:s.x+o,y:s.y+a}}}),[])};function nZe(e,n){const r=[],i=new Map,o=[];for(const a of e)if(a.type==="add"){o.push(a);continue}else if(a.type==="remove"||a.type==="replace")i.set(a.id,[a]);else{const s=i.get(a.id);s?s.push(a):i.set(a.id,[a])}for(const a of n){const s=i.get(a.id);if(!s){r.push(a);continue}if(s[0].type==="remove")continue;if(s[0].type==="replace"){r.push({...s[0].item});continue}const l={...a};for(const c of s)oLn(c,l);r.push(l)}return o.length&&o.forEach(a=>{a.index!==void 0?r.splice(a.index,0,{...a.item}):r.push({...a.item})}),r}function oLn(e,n){switch(e.type){case"select":{n.selected=e.selected;break}case"position":{typeof e.position<"u"&&(n.position=e.position),typeof e.dragging<"u"&&(n.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(n.measured??(n.measured={}),n.measured.width=e.dimensions.width,n.measured.height=e.dimensions.height,e.setAttributes&&(n.width=e.dimensions.width,n.height=e.dimensions.height)),typeof e.resizing=="boolean"&&(n.resizing=e.resizing);break}}}function rZe(e,n){return nZe(e,n)}function aLn(e,n){return nZe(e,n)}function DE(e,n){return{id:e,type:"select",selected:n}}function CT(e,n=new Set,r=!1){const i=[];for(const[o,a]of e){const s=n.has(o);!(a.selected===void 0&&!s)&&a.selected!==s&&(r&&(a.selected=s),i.push(DE(a.id,s)))}return i}function AIe({items:e=[],lookup:n}){var o;const r=[],i=new Map(e.map(a=>[a.id,a]));for(const[a,s]of e.entries()){const l=n.get(s.id),c=((o=l==null?void 0:l.internals)==null?void 0:o.userNode)??l;c!==void 0&&c!==s&&r.push({id:s.id,item:s,type:"replace"}),c===void 0&&r.push({item:s,type:"add",index:a})}for(const[a]of n)i.get(a)===void 0&&r.push({id:a,type:"remove"});return r}function DIe(e){return{id:e.id,type:"remove"}}const kIe=e=>WDn(e),sLn=e=>xQe(e);function iZe(e){return m.forwardRef(e)}const lLn=typeof window<"u"?m.useLayoutEffect:m.useEffect;function LIe(e){const[n,r]=m.useState(BigInt(0)),[i]=m.useState(()=>cLn(()=>r(o=>o+BigInt(1))));return lLn(()=>{const o=i.get();o.length&&(e(o),i.reset())},[n]),i}function cLn(e){let n=[];return{get:()=>n,reset:()=>{n=[]},push:r=>{n.push(r),e()}}}const oZe=m.createContext(null);function uLn({children:e}){const n=Ka(),r=m.useCallback(l=>{const{nodes:c=[],setNodes:u,hasDefaultNodes:d,onNodesChange:f,nodeLookup:p}=n.getState();let h=c;for(const g of l)h=typeof g=="function"?g(h):g;d?u(h):f&&f(AIe({items:h,lookup:p}))},[]),i=LIe(r),o=m.useCallback(l=>{const{edges:c=[],setEdges:u,hasDefaultEdges:d,onEdgesChange:f,edgeLookup:p}=n.getState();let h=c;for(const g of l)h=typeof g=="function"?g(h):g;d?u(h):f&&f(AIe({items:h,lookup:p}))},[]),a=LIe(o),s=m.useMemo(()=>({nodeQueue:i,edgeQueue:a}),[]);return N.jsx(oZe.Provider,{value:s,children:e})}function dLn(){const e=m.useContext(oZe);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const fLn=e=>!!e.panZoom;function vz(){const e=iLn(),n=Ka(),r=dLn(),i=fo(fLn),o=m.useMemo(()=>{const a=f=>n.getState().nodeLookup.get(f),s=f=>{r.nodeQueue.push(f)},l=f=>{r.edgeQueue.push(f)},c=f=>{var _,S;const{nodeLookup:p,nodeOrigin:h}=n.getState(),g=kIe(f)?f:p.get(f.id),v=g.parentId?AQe(g.position,g.measured,g.parentId,p,h):g.position,y={id:g.id,position:v,width:((_=g.measured)==null?void 0:_.width)??g.width,height:((S=g.measured)==null?void 0:S.height)??g.height,data:g.data};return rR(y)},u=(f,p,h={replace:!1})=>{s(g=>g.map(v=>{if(v.id===f){const y=typeof p=="function"?p(v):p;return h.replace&&kIe(y)?y:{...v,...y}}return v}))},d=(f,p,h={replace:!1})=>{l(g=>g.map(v=>{if(v.id===f){const y=typeof p=="function"?p(v):p;return h.replace&&sLn(y)?y:{...v,...y}}return v}))};return{getNodes:()=>n.getState().nodes.map(f=>({...f})),getNode:f=>{var p;return(p=a(f))==null?void 0:p.internals.userNode},getInternalNode:a,getEdges:()=>{const{edges:f=[]}=n.getState();return f.map(p=>({...p}))},getEdge:f=>n.getState().edgeLookup.get(f),setNodes:s,setEdges:l,addNodes:f=>{const p=Array.isArray(f)?f:[f];r.nodeQueue.push(h=>[...h,...p])},addEdges:f=>{const p=Array.isArray(f)?f:[f];r.edgeQueue.push(h=>[...h,...p])},toObject:()=>{const{nodes:f=[],edges:p=[],transform:h}=n.getState(),[g,v,y]=h;return{nodes:f.map(_=>({..._})),edges:p.map(_=>({..._})),viewport:{x:g,y:v,zoom:y}}},deleteElements:async({nodes:f=[],edges:p=[]})=>{const{nodes:h,edges:g,onNodesDelete:v,onEdgesDelete:y,triggerNodeChanges:_,triggerEdgeChanges:S,onDelete:b,onBeforeDelete:E}=n.getState(),{nodes:w,edges:C}=await KDn({nodesToRemove:f,edgesToRemove:p,nodes:h,edges:g,onBeforeDelete:E}),x=C.length>0,T=w.length>0;if(x){const R=C.map(DIe);y==null||y(C),S(R)}if(T){const R=w.map(DIe);v==null||v(w),_(R)}return(T||x)&&(b==null||b({nodes:w,edges:C})),{deletedNodes:w,deletedEdges:C}},getIntersectingNodes:(f,p=!0,h)=>{const g=gIe(f),v=g?f:c(f),y=h!==void 0;return v?(h||n.getState().nodes).filter(_=>{const S=n.getState().nodeLookup.get(_.id);if(S&&!g&&(_.id===f.id||!S.internals.positionAbsolute))return!1;const b=rR(y?_:S),E=qA(b,v);return p&&E>0||E>=v.width*v.height}):[]},isNodeIntersecting:(f,p,h=!0)=>{const v=gIe(f)?f:c(f);if(!v)return!1;const y=qA(v,p);return h&&y>0||y>=v.width*v.height},updateNode:u,updateNodeData:(f,p,h={replace:!1})=>{u(f,g=>{const v=typeof p=="function"?p(g):p;return h.replace?{...g,data:v}:{...g,data:{...g.data,...v}}},h)},updateEdge:d,updateEdgeData:(f,p,h={replace:!1})=>{d(f,g=>{const v=typeof p=="function"?p(g):p;return h.replace?{...g,data:v}:{...g,data:{...g.data,...v}}},h)},getNodesBounds:f=>{const{nodeLookup:p,nodeOrigin:h}=n.getState();return YDn(f,{nodeLookup:p,nodeOrigin:h})},getHandleConnections:({type:f,id:p,nodeId:h})=>{var g;return Array.from(((g=n.getState().connectionLookup.get(`${h}-${f}-${p??null}`))==null?void 0:g.values())??[])}}},[]);return m.useMemo(()=>({...o,...e,viewportInitialized:i}),[i])}const $Ie=e=>e.selected,pLn={actInsideInputWithModifier:!1},hLn=typeof window<"u"?window:void 0;function gLn({deleteKeyCode:e,multiSelectionKeyCode:n}){const r=Ka(),{deleteElements:i}=vz(),o=XA(e,pLn),a=XA(n,{target:hLn});m.useEffect(()=>{if(o){const{edges:s,nodes:l}=r.getState();i({nodes:l.filter($Ie),edges:s.filter($Ie)}),r.setState({nodesSelectionActive:!1})}},[o]),m.useEffect(()=>{r.setState({multiSelectionActive:a})},[a])}function mLn(e){const n=Ka();m.useEffect(()=>{const r=()=>{var o,a;if(!e.current)return!1;const i=hz(e.current);(i.height===0||i.width===0)&&((a=(o=n.getState()).onError)==null||a.call(o,"004",d_.error004())),n.setState({width:i.width||500,height:i.height||500})};if(e.current){r(),window.addEventListener("resize",r);const i=new ResizeObserver(()=>r());return i.observe(e.current),()=>{window.removeEventListener("resize",r),i&&e.current&&i.unobserve(e.current)}}},[])}const yz={position:"absolute",width:"100%",height:"100%",top:0,left:0},vLn=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib});function yLn({onPaneContextMenu:e,zoomOnScroll:n=!0,zoomOnPinch:r=!0,panOnScroll:i=!1,panOnScrollSpeed:o=.5,panOnScrollMode:a=L1.Free,zoomOnDoubleClick:s=!0,panOnDrag:l=!0,defaultViewport:c,translateExtent:u,minZoom:d,maxZoom:f,zoomActivationKeyCode:p,preventScrolling:h=!0,children:g,noWheelClassName:v,noPanClassName:y,onViewportChange:_,isControlledViewport:S,paneClickDistance:b}){const E=Ka(),w=m.useRef(null),{userSelectionActive:C,lib:x}=fo(vLn,Ts),T=XA(p),R=m.useRef();mLn(w);const O=m.useCallback(M=>{_==null||_({x:M[0],y:M[1],zoom:M[2]}),S||E.setState({transform:M})},[_,S]);return m.useEffect(()=>{if(w.current){R.current=Rkn({domNode:w.current,minZoom:d,maxZoom:f,translateExtent:u,viewport:c,paneClickDistance:b,onDraggingChange:$=>E.setState({paneDragging:$}),onPanZoomStart:($,U)=>{const{onViewportChangeStart:z,onMoveStart:D}=E.getState();D==null||D($,U),z==null||z(U)},onPanZoom:($,U)=>{const{onViewportChange:z,onMove:D}=E.getState();D==null||D($,U),z==null||z(U)},onPanZoomEnd:($,U)=>{const{onViewportChangeEnd:z,onMoveEnd:D}=E.getState();D==null||D($,U),z==null||z(U)}});const{x:M,y:P,zoom:k}=R.current.getViewport();return E.setState({panZoom:R.current,transform:[M,P,k],domNode:w.current.closest(".react-flow")}),()=>{var $;($=R.current)==null||$.destroy()}}},[]),m.useEffect(()=>{var M;(M=R.current)==null||M.update({onPaneContextMenu:e,zoomOnScroll:n,zoomOnPinch:r,panOnScroll:i,panOnScrollSpeed:o,panOnScrollMode:a,zoomOnDoubleClick:s,panOnDrag:l,zoomActivationKeyPressed:T,preventScrolling:h,noPanClassName:y,userSelectionActive:C,noWheelClassName:v,lib:x,onTransformChange:O})},[e,n,r,i,o,a,s,l,T,h,y,C,v,x,O]),N.jsx("div",{className:"react-flow__renderer",ref:w,style:yz,children:g})}const _Ln=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function bLn(){const{userSelectionActive:e,userSelectionRect:n}=fo(_Ln,Ts);return e&&n?N.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:n.width,height:n.height,transform:`translate(${n.x}px, ${n.y}px)`}}):null}const EK=(e,n)=>r=>{r.target===n.current&&(e==null||e(r))},SLn=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging});function ELn({isSelecting:e,selectionKeyPressed:n,selectionMode:r=YA.Full,panOnDrag:i,selectionOnDrag:o,onSelectionStart:a,onSelectionEnd:s,onPaneClick:l,onPaneContextMenu:c,onPaneScroll:u,onPaneMouseEnter:d,onPaneMouseMove:f,onPaneMouseLeave:p,children:h}){const g=m.useRef(null),v=Ka(),y=m.useRef(0),_=m.useRef(0),S=m.useRef(),b=m.useRef(new Map),{userSelectionActive:E,elementsSelectable:w,dragging:C}=fo(SLn,Ts),x=w&&(e||E),T=m.useRef(!1),R=m.useRef(!1),O=()=>{v.setState({userSelectionActive:!1,userSelectionRect:null}),y.current=0,_.current=0},M=B=>{if(T.current){T.current=!1;return}l==null||l(B),v.getState().resetSelectedElements(),v.setState({nodesSelectionActive:!1})},P=B=>{if(Array.isArray(i)&&(i!=null&&i.includes(2))){B.preventDefault();return}c==null||c(B)},k=u?B=>u(B):void 0,$=B=>{var Q,le,Z,j;const{resetSelectedElements:Y,domNode:q,edgeLookup:K}=v.getState();if(S.current=q==null?void 0:q.getBoundingClientRect(),!w||!e||B.button!==0||B.target!==g.current||!S.current)return;(le=(Q=B.target)==null?void 0:Q.setPointerCapture)==null||le.call(Q,B.pointerId),R.current=!0,T.current=!1,b.current=new Map;for(const[F,te]of K)b.current.set(te.source,((Z=b.current.get(te.source))==null?void 0:Z.add(F))||new Set([F])),b.current.set(te.target,((j=b.current.get(te.target))==null?void 0:j.add(F))||new Set([F]));const{x:H,y:G}=my(B.nativeEvent,S.current);Y(),v.setState({userSelectionRect:{width:0,height:0,startX:H,startY:G,x:H,y:G}}),a==null||a(B)},U=B=>{const{userSelectionRect:Y,edgeLookup:q,transform:K,nodeLookup:H,triggerNodeChanges:G,triggerEdgeChanges:Q}=v.getState();if(!S.current||!Y)return;T.current=!0;const{x:le,y:Z}=my(B.nativeEvent,S.current),{startX:j,startY:F}=Y,te={startX:j,startY:F,x:le<j?le:j,y:Z<F?Z:F,width:Math.abs(le-j),height:Math.abs(Z-F)},oe=TQe(H,te,K,r===YA.Partial,!0),de=new Set,pe=new Set;for(const me of oe){pe.add(me.id);const ve=b.current.get(me.id);if(ve)for(const he of ve)de.add(he)}if(y.current!==pe.size){y.current=pe.size;const me=CT(H,pe,!0);G(me)}if(_.current!==de.size){_.current=de.size;const me=CT(q,de);Q(me)}v.setState({userSelectionRect:te,userSelectionActive:!0,nodesSelectionActive:!1})},z=B=>{var q,K;if(B.button!==0||!R.current)return;(K=(q=B.target)==null?void 0:q.releasePointerCapture)==null||K.call(q,B.pointerId);const{userSelectionRect:Y}=v.getState();!E&&Y&&B.target===g.current&&(M==null||M(B)),y.current>0&&v.setState({nodesSelectionActive:!0}),O(),s==null||s(B),(n||o)&&(T.current=!1),R.current=!1},D=i===!0||Array.isArray(i)&&i.includes(0);return N.jsxs("div",{className:dl(["react-flow__pane",{draggable:D,dragging:C,selection:e}]),onClick:x?void 0:EK(M,g),onContextMenu:EK(P,g),onWheel:EK(k,g),onPointerEnter:x?void 0:d,onPointerDown:x?$:f,onPointerMove:x?U:f,onPointerUp:x?z:void 0,onPointerLeave:p,ref:g,style:yz,children:[h,N.jsx(bLn,{})]})}function fae({id:e,store:n,unselect:r=!1,nodeRef:i}){const{addSelectedNodes:o,unselectNodesAndEdges:a,multiSelectionActive:s,nodeLookup:l,onError:c}=n.getState(),u=l.get(e);if(!u){c==null||c("012",d_.error012(e));return}n.setState({nodesSelectionActive:!1}),u.selected?(r||u.selected&&s)&&(a({nodes:[u],edges:[]}),requestAnimationFrame(()=>{var d;return(d=i==null?void 0:i.current)==null?void 0:d.blur()})):o([e])}function aZe({nodeRef:e,disabled:n=!1,noDragClassName:r,handleSelector:i,nodeId:o,isSelectable:a,nodeClickDistance:s}){const l=Ka(),[c,u]=m.useState(!1),d=m.useRef();return m.useEffect(()=>{d.current=hkn({getStoreItems:()=>l.getState(),onNodeMouseDown:f=>{fae({id:f,store:l,nodeRef:e})},onDragStart:()=>{u(!0)},onDragStop:()=>{u(!1)}})},[]),m.useEffect(()=>{var f,p;if(n)(f=d.current)==null||f.destroy();else if(e.current)return(p=d.current)==null||p.update({noDragClassName:r,handleSelector:i,domNode:e.current,isSelectable:a,nodeId:o,nodeClickDistance:s}),()=>{var h;(h=d.current)==null||h.destroy()}},[r,i,n,a,e,o]),c}const CLn=e=>n=>n.selected&&(n.draggable||e&&typeof n.draggable>"u");function sZe(){const e=Ka();return m.useCallback(r=>{const{nodeExtent:i,snapToGrid:o,snapGrid:a,nodesDraggable:s,onError:l,updateNodePositions:c,nodeLookup:u,nodeOrigin:d}=e.getState(),f=new Map,p=CLn(s),h=o?a[0]:5,g=o?a[1]:5,v=r.direction.x*h*r.factor,y=r.direction.y*g*r.factor;for(const[,_]of u){if(!p(_))continue;let S={x:_.internals.positionAbsolute.x+v,y:_.internals.positionAbsolute.y+y};o&&(S=pz(S,a));const{position:b,positionAbsolute:E}=OQe({nodeId:_.id,nextPosition:S,nodeLookup:u,nodeExtent:i,nodeOrigin:d,onError:l});_.position=b,_.internals.positionAbsolute=E,f.set(_.id,_)}c(f)},[])}const che=m.createContext(null),wLn=che.Provider;che.Consumer;const lZe=()=>m.useContext(che),xLn=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),TLn=(e,n,r)=>i=>{const{connectionClickStartHandle:o,connectionMode:a,connection:s}=i,{fromHandle:l,toHandle:c,isValid:u}=s,d=(c==null?void 0:c.nodeId)===e&&(c==null?void 0:c.id)===n&&(c==null?void 0:c.type)===r;return{connectingFrom:(l==null?void 0:l.nodeId)===e&&(l==null?void 0:l.id)===n&&(l==null?void 0:l.type)===r,connectingTo:d,clickConnecting:(o==null?void 0:o.nodeId)===e&&(o==null?void 0:o.id)===n&&(o==null?void 0:o.type)===r,isPossibleEndHandle:a===tR.Strict?(l==null?void 0:l.type)!==r:e!==(l==null?void 0:l.nodeId)||n!==(l==null?void 0:l.id),connectionInProcess:!!l,valid:d&&u}};function OLn({type:e="source",position:n=xr.Top,isValidConnection:r,isConnectable:i=!0,isConnectableStart:o=!0,isConnectableEnd:a=!0,id:s,onConnect:l,children:c,className:u,onMouseDown:d,onTouchStart:f,...p},h){var $,U;const g=s||null,v=e==="target",y=Ka(),_=lZe(),{connectOnClick:S,noPanClassName:b,rfId:E}=fo(xLn,Ts),{connectingFrom:w,connectingTo:C,clickConnecting:x,isPossibleEndHandle:T,connectionInProcess:R,valid:O}=fo(TLn(_,g,e),Ts);_||(U=($=y.getState()).onError)==null||U.call($,"010",d_.error010());const M=z=>{const{defaultEdgeOptions:D,onConnect:B,hasDefaultEdges:Y}=y.getState(),q={...D,...z};if(Y){const{edges:K,setEdges:H}=y.getState();H(BQe(q,K))}B==null||B(q),l==null||l(q)},P=z=>{if(!_)return;const D=kQe(z.nativeEvent);if(o&&(D&&z.button===0||!D)){const B=y.getState();dae.onPointerDown(z.nativeEvent,{autoPanOnConnect:B.autoPanOnConnect,connectionMode:B.connectionMode,connectionRadius:B.connectionRadius,domNode:B.domNode,nodeLookup:B.nodeLookup,lib:B.lib,isTarget:v,handleId:g,nodeId:_,flowId:B.rfId,panBy:B.panBy,cancelConnection:B.cancelConnection,onConnectStart:B.onConnectStart,onConnectEnd:B.onConnectEnd,updateConnection:B.updateConnection,onConnect:M,isValidConnection:r||B.isValidConnection,getTransform:()=>y.getState().transform,getFromHandle:()=>y.getState().connection.fromHandle,autoPanSpeed:B.autoPanSpeed})}D?d==null||d(z):f==null||f(z)},k=z=>{const{onClickConnectStart:D,onClickConnectEnd:B,connectionClickStartHandle:Y,connectionMode:q,isValidConnection:K,lib:H,rfId:G,nodeLookup:Q,connection:le}=y.getState();if(!_||!Y&&!o)return;if(!Y){D==null||D(z.nativeEvent,{nodeId:_,handleId:g,handleType:e}),y.setState({connectionClickStartHandle:{nodeId:_,type:e,id:g}});return}const Z=DQe(z.target),j=r||K,{connection:F,isValid:te}=dae.isValid(z.nativeEvent,{handle:{nodeId:_,id:g,type:e},connectionMode:q,fromNodeId:Y.nodeId,fromHandleId:Y.id||null,fromType:Y.type,isValidConnection:j,flowId:G,doc:Z,lib:H,nodeLookup:Q});te&&F&&M(F);const oe=structuredClone(le);delete oe.inProgress,oe.toPosition=oe.toHandle?oe.toHandle.position:null,B==null||B(z,oe),y.setState({connectionClickStartHandle:null})};return N.jsx("div",{"data-handleid":g,"data-nodeid":_,"data-handlepos":n,"data-id":`${E}-${_}-${g}-${e}`,className:dl(["react-flow__handle",`react-flow__handle-${n}`,"nodrag",b,u,{source:!v,target:v,connectable:i,connectablestart:o,connectableend:a,clickconnecting:x,connectingfrom:w,connectingto:C,valid:O,connectionindicator:i&&(!R||T)&&(R?a:o)}]),onMouseDown:P,onTouchStart:P,onClick:S?k:void 0,ref:h,...p,children:c})}const bC=m.memo(iZe(OLn));function RLn({data:e,isConnectable:n,sourcePosition:r=xr.Bottom}){return N.jsxs(N.Fragment,{children:[e==null?void 0:e.label,N.jsx(bC,{type:"source",position:r,isConnectable:n})]})}function ILn({data:e,isConnectable:n,targetPosition:r=xr.Top,sourcePosition:i=xr.Bottom}){return N.jsxs(N.Fragment,{children:[N.jsx(bC,{type:"target",position:r,isConnectable:n}),e==null?void 0:e.label,N.jsx(bC,{type:"source",position:i,isConnectable:n})]})}function NLn(){return null}function MLn({data:e,isConnectable:n,targetPosition:r=xr.Top}){return N.jsxs(N.Fragment,{children:[N.jsx(bC,{type:"target",position:r,isConnectable:n}),e==null?void 0:e.label]})}const VB={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},FIe={input:RLn,default:ILn,output:MLn,group:NLn};function PLn(e){var n,r,i,o;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((n=e.style)==null?void 0:n.width),height:e.height??e.initialHeight??((r=e.style)==null?void 0:r.height)}:{width:e.width??((i=e.style)==null?void 0:i.width),height:e.height??((o=e.style)==null?void 0:o.height)}}const ALn=e=>{const{width:n,height:r,x:i,y:o}=mL(e.nodeLookup,{filter:a=>!!a.selected});return{width:Lh(n)?n:null,height:Lh(r)?r:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${i}px,${o}px)`}};function DLn({onSelectionContextMenu:e,noPanClassName:n,disableKeyboardA11y:r}){const i=Ka(),{width:o,height:a,transformString:s,userSelectionActive:l}=fo(ALn,Ts),c=sZe(),u=m.useRef(null);if(m.useEffect(()=>{var p;r||(p=u.current)==null||p.focus({preventScroll:!0})},[r]),aZe({nodeRef:u}),l||!o||!a)return null;const d=e?p=>{const h=i.getState().nodes.filter(g=>g.selected);e(p,h)}:void 0,f=p=>{Object.prototype.hasOwnProperty.call(VB,p.key)&&c({direction:VB[p.key],factor:p.shiftKey?4:1})};return N.jsx("div",{className:dl(["react-flow__nodesselection","react-flow__container",n]),style:{transform:s},children:N.jsx("div",{ref:u,className:"react-flow__nodesselection-rect",onContextMenu:d,tabIndex:r?void 0:-1,onKeyDown:r?void 0:f,style:{width:o,height:a}})})}const BIe=typeof window<"u"?window:void 0,kLn=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function cZe({children:e,onPaneClick:n,onPaneMouseEnter:r,onPaneMouseMove:i,onPaneMouseLeave:o,onPaneContextMenu:a,onPaneScroll:s,paneClickDistance:l,deleteKeyCode:c,selectionKeyCode:u,selectionOnDrag:d,selectionMode:f,onSelectionStart:p,onSelectionEnd:h,multiSelectionKeyCode:g,panActivationKeyCode:v,zoomActivationKeyCode:y,elementsSelectable:_,zoomOnScroll:S,zoomOnPinch:b,panOnScroll:E,panOnScrollSpeed:w,panOnScrollMode:C,zoomOnDoubleClick:x,panOnDrag:T,defaultViewport:R,translateExtent:O,minZoom:M,maxZoom:P,preventScrolling:k,onSelectionContextMenu:$,noWheelClassName:U,noPanClassName:z,disableKeyboardA11y:D,onViewportChange:B,isControlledViewport:Y}){const{nodesSelectionActive:q,userSelectionActive:K}=fo(kLn),H=XA(u,{target:BIe}),G=XA(v,{target:BIe}),Q=G||T,le=G||E,Z=d&&Q!==!0,j=H||K||Z;return gLn({deleteKeyCode:c,multiSelectionKeyCode:g}),N.jsx(yLn,{onPaneContextMenu:a,elementsSelectable:_,zoomOnScroll:S,zoomOnPinch:b,panOnScroll:le,panOnScrollSpeed:w,panOnScrollMode:C,zoomOnDoubleClick:x,panOnDrag:!H&&Q,defaultViewport:R,translateExtent:O,minZoom:M,maxZoom:P,zoomActivationKeyCode:y,preventScrolling:k,noWheelClassName:U,noPanClassName:z,onViewportChange:B,isControlledViewport:Y,paneClickDistance:l,children:N.jsxs(ELn,{onSelectionStart:p,onSelectionEnd:h,onPaneClick:n,onPaneMouseEnter:r,onPaneMouseMove:i,onPaneMouseLeave:o,onPaneContextMenu:a,onPaneScroll:s,panOnDrag:Q,isSelecting:!!j,selectionMode:f,selectionKeyPressed:H,selectionOnDrag:Z,children:[e,q&&N.jsx(DLn,{onSelectionContextMenu:$,noPanClassName:z,disableKeyboardA11y:D})]})})}cZe.displayName="FlowRenderer";const LLn=m.memo(cZe),$Ln=e=>n=>e?TQe(n.nodeLookup,{x:0,y:0,width:n.width,height:n.height},n.transform,!0).map(r=>r.id):Array.from(n.nodeLookup.keys());function FLn(e){return fo(m.useCallback($Ln(e),[e]),Ts)}const BLn=e=>e.updateNodeInternals;function jLn(){const e=fo(BLn),[n]=m.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(r=>{const i=new Map;r.forEach(o=>{const a=o.target.getAttribute("data-id");i.set(a,{id:a,nodeElement:o.target,force:!0})}),e(i)}));return m.useEffect(()=>()=>{n==null||n.disconnect()},[n]),n}function ULn({node:e,nodeType:n,hasDimensions:r,resizeObserver:i}){const o=Ka(),a=m.useRef(null),s=m.useRef(null),l=m.useRef(e.sourcePosition),c=m.useRef(e.targetPosition),u=m.useRef(n),d=r&&!!e.internals.handleBounds;return m.useEffect(()=>{a.current&&!e.hidden&&(!d||s.current!==a.current)&&(s.current&&(i==null||i.unobserve(s.current)),i==null||i.observe(a.current),s.current=a.current)},[d,e.hidden]),m.useEffect(()=>()=>{s.current&&(i==null||i.unobserve(s.current),s.current=null)},[]),m.useEffect(()=>{if(a.current){const f=u.current!==n,p=l.current!==e.sourcePosition,h=c.current!==e.targetPosition;(f||p||h)&&(u.current=n,l.current=e.sourcePosition,c.current=e.targetPosition,o.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:a.current,force:!0}]])))}},[e.id,n,e.sourcePosition,e.targetPosition]),a}function HLn({id:e,onClick:n,onMouseEnter:r,onMouseMove:i,onMouseLeave:o,onContextMenu:a,onDoubleClick:s,nodesDraggable:l,elementsSelectable:c,nodesConnectable:u,nodesFocusable:d,resizeObserver:f,noDragClassName:p,noPanClassName:h,disableKeyboardA11y:g,rfId:v,nodeTypes:y,nodeExtent:_,nodeClickDistance:S,onError:b}){const{node:E,internals:w,isParent:C}=fo(F=>{const te=F.nodeLookup.get(e),oe=F.parentLookup.has(e);return{node:te,internals:te.internals,isParent:oe}},Ts);let x=E.type||"default",T=(y==null?void 0:y[x])||FIe[x];T===void 0&&(b==null||b("003",d_.error003(x)),x="default",T=FIe.default);const R=!!(E.draggable||l&&typeof E.draggable>"u"),O=!!(E.selectable||c&&typeof E.selectable>"u"),M=!!(E.connectable||u&&typeof E.connectable>"u"),P=!!(E.focusable||d&&typeof E.focusable>"u"),k=Ka(),$=PQe(E),U=ULn({node:E,nodeType:x,hasDimensions:$,resizeObserver:f}),z=aZe({nodeRef:U,disabled:E.hidden||!R,noDragClassName:p,handleSelector:E.dragHandle,nodeId:e,isSelectable:O,nodeClickDistance:S}),D=sZe();if(E.hidden)return null;const B=f_(E),Y=PLn(E),q=O||R||n||r||i||o,K=r?F=>r(F,{...w.userNode}):void 0,H=i?F=>i(F,{...w.userNode}):void 0,G=o?F=>o(F,{...w.userNode}):void 0,Q=a?F=>a(F,{...w.userNode}):void 0,le=s?F=>s(F,{...w.userNode}):void 0,Z=F=>{const{selectNodesOnDrag:te,nodeDragThreshold:oe}=k.getState();O&&(!te||!R||oe>0)&&fae({id:e,store:k,nodeRef:U}),n&&n(F,{...w.userNode})},j=F=>{if(!(sae(F.nativeEvent)||g))if(EQe.includes(F.key)&&O){const te=F.key==="Escape";fae({id:e,store:k,unselect:te,nodeRef:U})}else R&&E.selected&&Object.prototype.hasOwnProperty.call(VB,F.key)&&(k.setState({ariaLiveMessage:`Moved selected node ${F.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~w.positionAbsolute.x}, y: ${~~w.positionAbsolute.y}`}),D({direction:VB[F.key],factor:F.shiftKey?4:1}))};return N.jsx("div",{className:dl(["react-flow__node",`react-flow__node-${x}`,{[h]:R},E.className,{selected:E.selected,selectable:O,parent:C,draggable:R,dragging:z}]),ref:U,style:{zIndex:w.z,transform:`translate(${w.positionAbsolute.x}px,${w.positionAbsolute.y}px)`,pointerEvents:q?"all":"none",visibility:$?"visible":"hidden",...E.style,...Y},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:K,onMouseMove:H,onMouseLeave:G,onContextMenu:Q,onClick:Z,onDoubleClick:le,onKeyDown:P?j:void 0,tabIndex:P?0:void 0,role:P?"button":void 0,"aria-describedby":g?void 0:`${JQe}-${v}`,"aria-label":E.ariaLabel,children:N.jsx(wLn,{value:e,children:N.jsx(T,{id:e,data:E.data,type:x,positionAbsoluteX:w.positionAbsolute.x,positionAbsoluteY:w.positionAbsolute.y,selected:E.selected,selectable:O,draggable:R,deletable:E.deletable??!0,isConnectable:M,sourcePosition:E.sourcePosition,targetPosition:E.targetPosition,dragging:z,dragHandle:E.dragHandle,zIndex:w.z,parentId:E.parentId,...B})})})}const zLn=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function uZe(e){const{nodesDraggable:n,nodesConnectable:r,nodesFocusable:i,elementsSelectable:o,onError:a}=fo(zLn,Ts),s=FLn(e.onlyRenderVisibleElements),l=jLn();return N.jsx("div",{className:"react-flow__nodes",style:yz,children:s.map(c=>N.jsx(HLn,{id:c,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:l,nodesDraggable:n,nodesConnectable:r,nodesFocusable:i,elementsSelectable:o,nodeClickDistance:e.nodeClickDistance,onError:a},c))})}uZe.displayName="NodeRenderer";const VLn=m.memo(uZe);function GLn(e){return fo(m.useCallback(r=>{if(!e)return r.edges.map(o=>o.id);const i=[];if(r.width&&r.height)for(const o of r.edges){const a=r.nodeLookup.get(o.source),s=r.nodeLookup.get(o.target);a&&s&&JDn({sourceNode:a,targetNode:s,width:r.width,height:r.height,transform:r.transform})&&i.push(o.id)}return i},[e]),Ts)}const WLn=({color:e="none",strokeWidth:n=1})=>N.jsx("polyline",{style:{stroke:e,strokeWidth:n},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),YLn=({color:e="none",strokeWidth:n=1})=>N.jsx("polyline",{style:{stroke:e,fill:e,strokeWidth:n},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"}),jIe={[UB.Arrow]:WLn,[UB.ArrowClosed]:YLn};function qLn(e){const n=Ka();return m.useMemo(()=>{var o,a;return Object.prototype.hasOwnProperty.call(jIe,e)?jIe[e]:((a=(o=n.getState()).onError)==null||a.call(o,"009",d_.error009(e)),null)},[e])}const KLn=({id:e,type:n,color:r,width:i=12.5,height:o=12.5,markerUnits:a="strokeWidth",strokeWidth:s,orient:l="auto-start-reverse"})=>{const c=qLn(n);return c?N.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${i}`,markerHeight:`${o}`,viewBox:"-10 -10 20 20",markerUnits:a,orient:l,refX:"0",refY:"0",children:N.jsx(c,{color:r,strokeWidth:s})}):null},dZe=({defaultColor:e,rfId:n})=>{const r=fo(a=>a.edges),i=fo(a=>a.defaultEdgeOptions),o=m.useMemo(()=>akn(r,{id:n,defaultColor:e,defaultMarkerStart:i==null?void 0:i.markerStart,defaultMarkerEnd:i==null?void 0:i.markerEnd}),[r,i,n,e]);return o.length?N.jsx("svg",{className:"react-flow__marker",children:N.jsx("defs",{children:o.map(a=>N.jsx(KLn,{id:a.id,type:a.type,color:a.color,width:a.width,height:a.height,markerUnits:a.markerUnits,strokeWidth:a.strokeWidth,orient:a.orient},a.id))})}):null};dZe.displayName="MarkerDefinitions";var XLn=m.memo(dZe);function fZe({x:e,y:n,label:r,labelStyle:i={},labelShowBg:o=!0,labelBgStyle:a={},labelBgPadding:s=[2,4],labelBgBorderRadius:l=2,children:c,className:u,...d}){const[f,p]=m.useState({x:1,y:0,width:0,height:0}),h=dl(["react-flow__edge-textwrapper",u]),g=m.useRef(null);return m.useEffect(()=>{if(g.current){const v=g.current.getBBox();p({x:v.x,y:v.y,width:v.width,height:v.height})}},[r]),typeof r>"u"||!r?null:N.jsxs("g",{transform:`translate(${e-f.width/2} ${n-f.height/2})`,className:h,visibility:f.width?"visible":"hidden",...d,children:[o&&N.jsx("rect",{width:f.width+2*s[0],x:-s[0],y:-s[1],height:f.height+2*s[1],className:"react-flow__edge-textbg",style:a,rx:l,ry:l}),N.jsx("text",{className:"react-flow__edge-text",y:f.height/2,dy:"0.3em",ref:g,style:i,children:r}),c]})}fZe.displayName="EdgeText";const QLn=m.memo(fZe);function _z({id:e,path:n,labelX:r,labelY:i,label:o,labelStyle:a,labelShowBg:s,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u,style:d,markerEnd:f,markerStart:p,className:h,interactionWidth:g=20}){return N.jsxs(N.Fragment,{children:[N.jsx("path",{id:e,style:d,d:n,fill:"none",className:dl(["react-flow__edge-path",h]),markerEnd:f,markerStart:p}),g&&N.jsx("path",{d:n,fill:"none",strokeOpacity:0,strokeWidth:g,className:"react-flow__edge-interaction"}),o&&Lh(r)&&Lh(i)?N.jsx(QLn,{x:r,y:i,label:o,labelStyle:a,labelShowBg:s,labelBgStyle:l,labelBgPadding:c,labelBgBorderRadius:u}):null]})}function UIe({pos:e,x1:n,y1:r,x2:i,y2:o}){return e===xr.Left||e===xr.Right?[.5*(n+i),r]:[n,.5*(r+o)]}function pZe({sourceX:e,sourceY:n,sourcePosition:r=xr.Bottom,targetX:i,targetY:o,targetPosition:a=xr.Top}){const[s,l]=UIe({pos:r,x1:e,y1:n,x2:i,y2:o}),[c,u]=UIe({pos:a,x1:i,y1:o,x2:e,y2:n}),[d,f,p,h]=LQe({sourceX:e,sourceY:n,targetX:i,targetY:o,sourceControlX:s,sourceControlY:l,targetControlX:c,targetControlY:u});return[`M${e},${n} C${s},${l} ${c},${u} ${i},${o}`,d,f,p,h]}function hZe(e){return m.memo(({id:n,sourceX:r,sourceY:i,targetX:o,targetY:a,sourcePosition:s=xr.Bottom,targetPosition:l=xr.Top,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:h,style:g,markerEnd:v,markerStart:y,interactionWidth:_})=>{const[S,b,E]=pZe({sourceX:r,sourceY:i,sourcePosition:s,targetX:o,targetY:a,targetPosition:l}),w=e.isInternal?void 0:n;return N.jsx(_z,{id:w,path:S,labelX:b,labelY:E,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:h,style:g,markerEnd:v,markerStart:y,interactionWidth:_})})}const ZLn=hZe({isInternal:!1}),gZe=hZe({isInternal:!0});ZLn.displayName="SimpleBezierEdge";gZe.displayName="SimpleBezierEdgeInternal";function mZe(e){return m.memo(({id:n,sourceX:r,sourceY:i,targetX:o,targetY:a,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:p,sourcePosition:h=xr.Bottom,targetPosition:g=xr.Top,markerEnd:v,markerStart:y,pathOptions:_,interactionWidth:S})=>{const[b,E,w]=lae({sourceX:r,sourceY:i,sourcePosition:h,targetX:o,targetY:a,targetPosition:g,borderRadius:_==null?void 0:_.borderRadius,offset:_==null?void 0:_.offset}),C=e.isInternal?void 0:n;return N.jsx(_z,{id:C,path:b,labelX:E,labelY:w,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:p,markerEnd:v,markerStart:y,interactionWidth:S})})}const vZe=mZe({isInternal:!1}),yZe=mZe({isInternal:!0});vZe.displayName="SmoothStepEdge";yZe.displayName="SmoothStepEdgeInternal";function _Ze(e){return m.memo(({id:n,...r})=>{var o;const i=e.isInternal?void 0:n;return N.jsx(vZe,{...r,id:i,pathOptions:m.useMemo(()=>{var a;return{borderRadius:0,offset:(a=r.pathOptions)==null?void 0:a.offset}},[(o=r.pathOptions)==null?void 0:o.offset])})})}const JLn=_Ze({isInternal:!1}),bZe=_Ze({isInternal:!0});JLn.displayName="StepEdge";bZe.displayName="StepEdgeInternal";function SZe(e){return m.memo(({id:n,sourceX:r,sourceY:i,targetX:o,targetY:a,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:p,markerEnd:h,markerStart:g,interactionWidth:v})=>{const[y,_,S]=jQe({sourceX:r,sourceY:i,targetX:o,targetY:a}),b=e.isInternal?void 0:n;return N.jsx(_z,{id:b,path:y,labelX:_,labelY:S,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:f,style:p,markerEnd:h,markerStart:g,interactionWidth:v})})}const e$n=SZe({isInternal:!1}),EZe=SZe({isInternal:!0});e$n.displayName="StraightEdge";EZe.displayName="StraightEdgeInternal";function CZe(e){return m.memo(({id:n,sourceX:r,sourceY:i,targetX:o,targetY:a,sourcePosition:s=xr.Bottom,targetPosition:l=xr.Top,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:h,style:g,markerEnd:v,markerStart:y,pathOptions:_,interactionWidth:S})=>{const[b,E,w]=$Qe({sourceX:r,sourceY:i,sourcePosition:s,targetX:o,targetY:a,targetPosition:l,curvature:_==null?void 0:_.curvature}),C=e.isInternal?void 0:n;return N.jsx(_z,{id:C,path:b,labelX:E,labelY:w,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:h,style:g,markerEnd:v,markerStart:y,interactionWidth:S})})}const t$n=CZe({isInternal:!1}),wZe=CZe({isInternal:!0});t$n.displayName="BezierEdge";wZe.displayName="BezierEdgeInternal";const HIe={default:wZe,straight:EZe,step:bZe,smoothstep:yZe,simplebezier:gZe},zIe={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},n$n=(e,n,r)=>r===xr.Left?e-n:r===xr.Right?e+n:e,r$n=(e,n,r)=>r===xr.Top?e-n:r===xr.Bottom?e+n:e,VIe="react-flow__edgeupdater";function GIe({position:e,centerX:n,centerY:r,radius:i=10,onMouseDown:o,onMouseEnter:a,onMouseOut:s,type:l}){return N.jsx("circle",{onMouseDown:o,onMouseEnter:a,onMouseOut:s,className:dl([VIe,`${VIe}-${l}`]),cx:n$n(n,i,e),cy:r$n(r,i,e),r:i,stroke:"transparent",fill:"transparent"})}function i$n({isReconnectable:e,reconnectRadius:n,edge:r,sourceX:i,sourceY:o,targetX:a,targetY:s,sourcePosition:l,targetPosition:c,onReconnect:u,onReconnectStart:d,onReconnectEnd:f,setReconnecting:p,setUpdateHover:h}){const g=Ka(),v=(E,w)=>{if(E.button!==0)return;const{autoPanOnConnect:C,domNode:x,isValidConnection:T,connectionMode:R,connectionRadius:O,lib:M,onConnectStart:P,onConnectEnd:k,cancelConnection:$,nodeLookup:U,rfId:z,panBy:D,updateConnection:B}=g.getState(),Y=w.type==="target";p(!0),d==null||d(E,r,w.type);const q=(H,G)=>{p(!1),f==null||f(H,r,w.type,G)},K=H=>u==null?void 0:u(r,H);dae.onPointerDown(E.nativeEvent,{autoPanOnConnect:C,connectionMode:R,connectionRadius:O,domNode:x,handleId:w.id,nodeId:w.nodeId,nodeLookup:U,isTarget:Y,edgeUpdaterType:w.type,lib:M,flowId:z,cancelConnection:$,panBy:D,isValidConnection:T,onConnect:K,onConnectStart:P,onConnectEnd:k,onReconnectEnd:q,updateConnection:B,getTransform:()=>g.getState().transform,getFromHandle:()=>g.getState().connection.fromHandle})},y=E=>v(E,{nodeId:r.target,id:r.targetHandle??null,type:"target"}),_=E=>v(E,{nodeId:r.source,id:r.sourceHandle??null,type:"source"}),S=()=>h(!0),b=()=>h(!1);return N.jsxs(N.Fragment,{children:[(e===!0||e==="source")&&N.jsx(GIe,{position:l,centerX:i,centerY:o,radius:n,onMouseDown:y,onMouseEnter:S,onMouseOut:b,type:"source"}),(e===!0||e==="target")&&N.jsx(GIe,{position:c,centerX:a,centerY:s,radius:n,onMouseDown:_,onMouseEnter:S,onMouseOut:b,type:"target"})]})}function o$n({id:e,edgesFocusable:n,edgesReconnectable:r,elementsSelectable:i,onClick:o,onDoubleClick:a,onContextMenu:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,reconnectRadius:d,onReconnect:f,onReconnectStart:p,onReconnectEnd:h,rfId:g,edgeTypes:v,noPanClassName:y,onError:_,disableKeyboardA11y:S}){let b=fo(pe=>pe.edgeLookup.get(e));const E=fo(pe=>pe.defaultEdgeOptions);b=E?{...E,...b}:b;let w=b.type||"default",C=(v==null?void 0:v[w])||HIe[w];C===void 0&&(_==null||_("011",d_.error011(w)),w="default",C=HIe.default);const x=!!(b.focusable||n&&typeof b.focusable>"u"),T=typeof f<"u"&&(b.reconnectable||r&&typeof b.reconnectable>"u"),R=!!(b.selectable||i&&typeof b.selectable>"u"),O=m.useRef(null),[M,P]=m.useState(!1),[k,$]=m.useState(!1),U=Ka(),{zIndex:z,sourceX:D,sourceY:B,targetX:Y,targetY:q,sourcePosition:K,targetPosition:H}=fo(m.useCallback(pe=>{const me=pe.nodeLookup.get(b.source),ve=pe.nodeLookup.get(b.target);if(!me||!ve)return{zIndex:b.zIndex,...zIe};const he=okn({id:e,sourceNode:me,targetNode:ve,sourceHandle:b.sourceHandle||null,targetHandle:b.targetHandle||null,connectionMode:pe.connectionMode,onError:_});return{zIndex:ZDn({selected:b.selected,zIndex:b.zIndex,sourceNode:me,targetNode:ve,elevateOnSelect:pe.elevateEdgesOnSelect}),...he||zIe}},[b.source,b.target,b.sourceHandle,b.targetHandle,b.selected,b.zIndex]),Ts),G=m.useMemo(()=>b.markerStart?`url('#${cae(b.markerStart,g)}')`:void 0,[b.markerStart,g]),Q=m.useMemo(()=>b.markerEnd?`url('#${cae(b.markerEnd,g)}')`:void 0,[b.markerEnd,g]);if(b.hidden||D===null||B===null||Y===null||q===null)return null;const le=pe=>{var be;const{addSelectedEdges:me,unselectNodesAndEdges:ve,multiSelectionActive:he}=U.getState();R&&(U.setState({nodesSelectionActive:!1}),b.selected&&he?(ve({nodes:[],edges:[b]}),(be=O.current)==null||be.blur()):me([e])),o&&o(pe,b)},Z=a?pe=>{a(pe,{...b})}:void 0,j=s?pe=>{s(pe,{...b})}:void 0,F=l?pe=>{l(pe,{...b})}:void 0,te=c?pe=>{c(pe,{...b})}:void 0,oe=u?pe=>{u(pe,{...b})}:void 0,de=pe=>{var me;if(!S&&EQe.includes(pe.key)&&R){const{unselectNodesAndEdges:ve,addSelectedEdges:he}=U.getState();pe.key==="Escape"?((me=O.current)==null||me.blur(),ve({edges:[b]})):he([e])}};return N.jsx("svg",{style:{zIndex:z},children:N.jsxs("g",{className:dl(["react-flow__edge",`react-flow__edge-${w}`,b.className,y,{selected:b.selected,animated:b.animated,inactive:!R&&!o,updating:M,selectable:R}]),onClick:le,onDoubleClick:Z,onContextMenu:j,onMouseEnter:F,onMouseMove:te,onMouseLeave:oe,onKeyDown:x?de:void 0,tabIndex:x?0:void 0,role:x?"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":x?`${eZe}-${g}`:void 0,ref:O,children:[!k&&N.jsx(C,{id:e,source:b.source,target:b.target,type:b.type,selected:b.selected,animated:b.animated,selectable:R,deletable:b.deletable??!0,label:b.label,labelStyle:b.labelStyle,labelShowBg:b.labelShowBg,labelBgStyle:b.labelBgStyle,labelBgPadding:b.labelBgPadding,labelBgBorderRadius:b.labelBgBorderRadius,sourceX:D,sourceY:B,targetX:Y,targetY:q,sourcePosition:K,targetPosition:H,data:b.data,style:b.style,sourceHandleId:b.sourceHandle,targetHandleId:b.targetHandle,markerStart:G,markerEnd:Q,pathOptions:"pathOptions"in b?b.pathOptions:void 0,interactionWidth:b.interactionWidth}),T&&N.jsx(i$n,{edge:b,isReconnectable:T,reconnectRadius:d,onReconnect:f,onReconnectStart:p,onReconnectEnd:h,sourceX:D,sourceY:B,targetX:Y,targetY:q,sourcePosition:K,targetPosition:H,setUpdateHover:P,setReconnecting:$})]})})}const a$n=e=>({width:e.width,height:e.height,edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function xZe({defaultMarkerColor:e,onlyRenderVisibleElements:n,rfId:r,edgeTypes:i,noPanClassName:o,onReconnect:a,onEdgeContextMenu:s,onEdgeMouseEnter:l,onEdgeMouseMove:c,onEdgeMouseLeave:u,onEdgeClick:d,reconnectRadius:f,onEdgeDoubleClick:p,onReconnectStart:h,onReconnectEnd:g,disableKeyboardA11y:v}){const{edgesFocusable:y,edgesReconnectable:_,elementsSelectable:S,onError:b}=fo(a$n,Ts),E=GLn(n);return N.jsxs("div",{className:"react-flow__edges",children:[N.jsx(XLn,{defaultColor:e,rfId:r}),E.map(w=>N.jsx(o$n,{id:w,edgesFocusable:y,edgesReconnectable:_,elementsSelectable:S,noPanClassName:o,onReconnect:a,onContextMenu:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onClick:d,reconnectRadius:f,onDoubleClick:p,onReconnectStart:h,onReconnectEnd:g,rfId:r,onError:b,edgeTypes:i,disableKeyboardA11y:v},w))]})}xZe.displayName="EdgeRenderer";const s$n=m.memo(xZe),l$n=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function c$n({children:e}){const n=fo(l$n);return N.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:n},children:e})}function u$n(e){const n=vz(),r=m.useRef(!1);m.useEffect(()=>{!r.current&&n.viewportInitialized&&e&&(setTimeout(()=>e(n),1),r.current=!0)},[e,n.viewportInitialized])}const d$n=e=>{var n;return(n=e.panZoom)==null?void 0:n.syncViewport};function f$n(e){const n=fo(d$n),r=Ka();return m.useEffect(()=>{e&&(n==null||n(e),r.setState({transform:[e.x,e.y,e.zoom]}))},[e,n]),null}function p$n(e){return e.connection.inProgress?{...e.connection,to:vL(e.connection.to,e.transform)}:{...e.connection}}function h$n(e){return p$n}function g$n(e){const n=h$n();return fo(n,Ts)}const m$n=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function v$n({containerStyle:e,style:n,type:r,component:i}){const{nodesConnectable:o,width:a,height:s,isValid:l,inProgress:c}=fo(m$n,Ts);return!(a&&o&&c)?null:N.jsx("svg",{style:e,width:a,height:s,className:"react-flow__connectionline react-flow__container",children:N.jsx("g",{className:dl(["react-flow__connection",wQe(l)]),children:N.jsx(TZe,{style:n,type:r,CustomComponent:i,isValid:l})})})}const TZe=({style:e,type:n=Tb.Bezier,CustomComponent:r,isValid:i})=>{const{inProgress:o,from:a,fromNode:s,fromHandle:l,fromPosition:c,to:u,toNode:d,toHandle:f,toPosition:p}=g$n();if(!o)return;if(r)return N.jsx(r,{connectionLineType:n,connectionLineStyle:e,fromNode:s,fromHandle:l,fromX:a.x,fromY:a.y,toX:u.x,toY:u.y,fromPosition:c,toPosition:p,connectionStatus:wQe(i),toNode:d,toHandle:f});let h="";const g={sourceX:a.x,sourceY:a.y,sourcePosition:c,targetX:u.x,targetY:u.y,targetPosition:p};switch(n){case Tb.Bezier:[h]=$Qe(g);break;case Tb.SimpleBezier:[h]=pZe(g);break;case Tb.Step:[h]=lae({...g,borderRadius:0});break;case Tb.SmoothStep:[h]=lae(g);break;default:[h]=jQe(g)}return N.jsx("path",{d:h,fill:"none",className:"react-flow__connection-path",style:e})};TZe.displayName="ConnectionLine";const y$n={};function WIe(e=y$n){m.useRef(e),Ka(),m.useEffect(()=>{},[e])}function _$n(){Ka(),m.useRef(!1),m.useEffect(()=>{},[])}function OZe({nodeTypes:e,edgeTypes:n,onInit:r,onNodeClick:i,onEdgeClick:o,onNodeDoubleClick:a,onEdgeDoubleClick:s,onNodeMouseEnter:l,onNodeMouseMove:c,onNodeMouseLeave:u,onNodeContextMenu:d,onSelectionContextMenu:f,onSelectionStart:p,onSelectionEnd:h,connectionLineType:g,connectionLineStyle:v,connectionLineComponent:y,connectionLineContainerStyle:_,selectionKeyCode:S,selectionOnDrag:b,selectionMode:E,multiSelectionKeyCode:w,panActivationKeyCode:C,zoomActivationKeyCode:x,deleteKeyCode:T,onlyRenderVisibleElements:R,elementsSelectable:O,defaultViewport:M,translateExtent:P,minZoom:k,maxZoom:$,preventScrolling:U,defaultMarkerColor:z,zoomOnScroll:D,zoomOnPinch:B,panOnScroll:Y,panOnScrollSpeed:q,panOnScrollMode:K,zoomOnDoubleClick:H,panOnDrag:G,onPaneClick:Q,onPaneMouseEnter:le,onPaneMouseMove:Z,onPaneMouseLeave:j,onPaneScroll:F,onPaneContextMenu:te,paneClickDistance:oe,nodeClickDistance:de,onEdgeContextMenu:pe,onEdgeMouseEnter:me,onEdgeMouseMove:ve,onEdgeMouseLeave:he,reconnectRadius:be,onReconnect:we,onReconnectStart:De,onReconnectEnd:Ae,noDragClassName:Ee,noWheelClassName:Re,noPanClassName:Te,disableKeyboardA11y:Oe,nodeExtent:Ne,rfId:je,viewport:ne,onViewportChange:J}){return WIe(e),WIe(n),_$n(),u$n(r),f$n(ne),N.jsx(LLn,{onPaneClick:Q,onPaneMouseEnter:le,onPaneMouseMove:Z,onPaneMouseLeave:j,onPaneContextMenu:te,onPaneScroll:F,paneClickDistance:oe,deleteKeyCode:T,selectionKeyCode:S,selectionOnDrag:b,selectionMode:E,onSelectionStart:p,onSelectionEnd:h,multiSelectionKeyCode:w,panActivationKeyCode:C,zoomActivationKeyCode:x,elementsSelectable:O,zoomOnScroll:D,zoomOnPinch:B,zoomOnDoubleClick:H,panOnScroll:Y,panOnScrollSpeed:q,panOnScrollMode:K,panOnDrag:G,defaultViewport:M,translateExtent:P,minZoom:k,maxZoom:$,onSelectionContextMenu:f,preventScrolling:U,noDragClassName:Ee,noWheelClassName:Re,noPanClassName:Te,disableKeyboardA11y:Oe,onViewportChange:J,isControlledViewport:!!ne,children:N.jsxs(c$n,{children:[N.jsx(s$n,{edgeTypes:n,onEdgeClick:o,onEdgeDoubleClick:s,onReconnect:we,onReconnectStart:De,onReconnectEnd:Ae,onlyRenderVisibleElements:R,onEdgeContextMenu:pe,onEdgeMouseEnter:me,onEdgeMouseMove:ve,onEdgeMouseLeave:he,reconnectRadius:be,defaultMarkerColor:z,noPanClassName:Te,disableKeyboardA11y:Oe,rfId:je}),N.jsx(v$n,{style:v,type:g,component:y,containerStyle:_}),N.jsx("div",{className:"react-flow__edgelabel-renderer"}),N.jsx(VLn,{nodeTypes:e,onNodeClick:i,onNodeDoubleClick:a,onNodeMouseEnter:l,onNodeMouseMove:c,onNodeMouseLeave:u,onNodeContextMenu:d,nodeClickDistance:de,onlyRenderVisibleElements:R,noPanClassName:Te,noDragClassName:Ee,disableKeyboardA11y:Oe,nodeExtent:Ne,rfId:je}),N.jsx("div",{className:"react-flow__viewport-portal"})]})})}OZe.displayName="GraphView";const b$n=m.memo(OZe),YIe=({nodes:e,edges:n,defaultNodes:r,defaultEdges:i,width:o,height:a,fitView:s,nodeOrigin:l,nodeExtent:c}={})=>{const u=new Map,d=new Map,f=new Map,p=new Map,h=i??n??[],g=r??e??[],v=l??[0,0],y=c??WA;HQe(f,p,h),uae(g,u,d,{nodeOrigin:v,nodeExtent:y,elevateNodesOnSelect:!1});let _=[0,0,1];if(s&&o&&a){const S=mL(u,{filter:C=>!!((C.width||C.initialWidth)&&(C.height||C.initialHeight))}),{x:b,y:E,zoom:w}=rhe(S,o,a,.5,2,.1);_=[b,E,w]}return{rfId:"1",width:0,height:0,transform:_,nodes:g,nodeLookup:u,parentLookup:d,edges:h,edgeLookup:p,connectionLookup:f,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:r!==void 0,hasDefaultEdges:i!==void 0,panZoom:null,minZoom:.5,maxZoom:2,translateExtent:WA,nodeExtent:y,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:tR.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:v,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:{...CQe},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanSpeed:15,connectionRadius:20,onError:XDn,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1}},S$n=({nodes:e,edges:n,defaultNodes:r,defaultEdges:i,width:o,height:a,fitView:s,nodeOrigin:l,nodeExtent:c})=>Bkn((u,d)=>({...YIe({nodes:e,edges:n,width:o,height:a,fitView:s,nodeOrigin:l,nodeExtent:c,defaultNodes:r,defaultEdges:i}),setNodes:f=>{const{nodeLookup:p,parentLookup:h,nodeOrigin:g,elevateNodesOnSelect:v}=d();uae(f,p,h,{nodeOrigin:g,nodeExtent:c,elevateNodesOnSelect:v,checkEquality:!0}),u({nodes:f})},setEdges:f=>{const{connectionLookup:p,edgeLookup:h}=d();HQe(p,h,f),u({edges:f})},setDefaultNodesAndEdges:(f,p)=>{if(f){const{setNodes:h}=d();h(f),u({hasDefaultNodes:!0})}if(p){const{setEdges:h}=d();h(p),u({hasDefaultEdges:!0})}},updateNodeInternals:(f,p={triggerFitView:!0})=>{const{triggerNodeChanges:h,nodeLookup:g,parentLookup:v,fitViewOnInit:y,fitViewDone:_,fitViewOnInitOptions:S,domNode:b,nodeOrigin:E,nodeExtent:w,debug:C,fitViewSync:x}=d(),{changes:T,updatedInternals:R}=dkn(f,g,v,b,E,w);if(R){if(lkn(g,v,{nodeOrigin:E,nodeExtent:w}),p.triggerFitView){let O=_;!_&&y&&(O=x({...S,nodes:S==null?void 0:S.nodes})),u({fitViewDone:O})}else u({});(T==null?void 0:T.length)>0&&(C&&console.log("React Flow: trigger node changes",T),h==null||h(T))}},updateNodePositions:(f,p=!1)=>{const h=[],g=[];for(const[v,y]of f){const _={id:v,type:"position",position:y.position,dragging:p};y!=null&&y.expandParent&&(y!=null&&y.parentId)&&_.position&&(h.push({id:v,parentId:y.parentId,rect:{...y.internals.positionAbsolute,width:y.measured.width,height:y.measured.height}}),_.position.x=Math.max(0,_.position.x),_.position.y=Math.max(0,_.position.y)),g.push(_)}if(h.length>0){const{nodeLookup:v,parentLookup:y,nodeOrigin:_}=d(),S=she(h,v,y,_);g.push(...S)}d().triggerNodeChanges(g)},triggerNodeChanges:f=>{const{onNodesChange:p,setNodes:h,nodes:g,hasDefaultNodes:v,debug:y}=d();if(f!=null&&f.length){if(v){const _=rZe(f,g);h(_)}y&&console.log("React Flow: trigger node changes",f),p==null||p(f)}},triggerEdgeChanges:f=>{const{onEdgesChange:p,setEdges:h,edges:g,hasDefaultEdges:v,debug:y}=d();if(f!=null&&f.length){if(v){const _=aLn(f,g);h(_)}y&&console.log("React Flow: trigger edge changes",f),p==null||p(f)}},addSelectedNodes:f=>{const{multiSelectionActive:p,edgeLookup:h,nodeLookup:g,triggerNodeChanges:v,triggerEdgeChanges:y}=d();if(p){const _=f.map(S=>DE(S,!0));v(_);return}v(CT(g,new Set([...f]),!0)),y(CT(h))},addSelectedEdges:f=>{const{multiSelectionActive:p,edgeLookup:h,nodeLookup:g,triggerNodeChanges:v,triggerEdgeChanges:y}=d();if(p){const _=f.map(S=>DE(S,!0));y(_);return}y(CT(h,new Set([...f]))),v(CT(g,new Set,!0))},unselectNodesAndEdges:({nodes:f,edges:p}={})=>{const{edges:h,nodes:g,nodeLookup:v,triggerNodeChanges:y,triggerEdgeChanges:_}=d(),S=f||g,b=p||h,E=S.map(C=>{const x=v.get(C.id);return x&&(x.selected=!1),DE(C.id,!1)}),w=b.map(C=>DE(C.id,!1));y(E),_(w)},setMinZoom:f=>{const{panZoom:p,maxZoom:h}=d();p==null||p.setScaleExtent([f,h]),u({minZoom:f})},setMaxZoom:f=>{const{panZoom:p,minZoom:h}=d();p==null||p.setScaleExtent([h,f]),u({maxZoom:f})},setTranslateExtent:f=>{var p;(p=d().panZoom)==null||p.setTranslateExtent(f),u({translateExtent:f})},setPaneClickDistance:f=>{var p;(p=d().panZoom)==null||p.setClickDistance(f)},resetSelectedElements:()=>{const{edges:f,nodes:p,triggerNodeChanges:h,triggerEdgeChanges:g}=d(),v=p.reduce((_,S)=>S.selected?[..._,DE(S.id,!1)]:_,[]),y=f.reduce((_,S)=>S.selected?[..._,DE(S.id,!1)]:_,[]);h(v),g(y)},setNodeExtent:f=>{const{nodes:p,nodeLookup:h,parentLookup:g,nodeOrigin:v,elevateNodesOnSelect:y,nodeExtent:_}=d();f[0][0]===_[0][0]&&f[0][1]===_[0][1]&&f[1][0]===_[1][0]&&f[1][1]===_[1][1]||(uae(p,h,g,{nodeOrigin:v,nodeExtent:f,elevateNodesOnSelect:y,checkEquality:!1}),u({nodeExtent:f}))},panBy:f=>{const{transform:p,width:h,height:g,panZoom:v,translateExtent:y}=d();return fkn({delta:f,panZoom:v,transform:p,translateExtent:y,width:h,height:g})},fitView:f=>{const{panZoom:p,width:h,height:g,minZoom:v,maxZoom:y,nodeLookup:_}=d();if(!p)return Promise.resolve(!1);const S=iae(_,f);return oae({nodes:S,width:h,height:g,panZoom:p,minZoom:v,maxZoom:y},f)},fitViewSync:f=>{const{panZoom:p,width:h,height:g,minZoom:v,maxZoom:y,nodeLookup:_}=d();if(!p)return!1;const S=iae(_,f);return oae({nodes:S,width:h,height:g,panZoom:p,minZoom:v,maxZoom:y},f),S.size>0},cancelConnection:()=>{u({connection:{...CQe}})},updateConnection:f=>{u({connection:f})},reset:()=>u({...YIe()})}),Object.is);function RZe({initialNodes:e,initialEdges:n,defaultNodes:r,defaultEdges:i,initialWidth:o,initialHeight:a,fitView:s,nodeOrigin:l,nodeExtent:c,children:u}){const[d]=m.useState(()=>S$n({nodes:e,edges:n,defaultNodes:r,defaultEdges:i,width:o,height:a,fitView:s,nodeOrigin:l,nodeExtent:c}));return N.jsx(jkn,{value:d,children:N.jsx(uLn,{children:u})})}function E$n({children:e,nodes:n,edges:r,defaultNodes:i,defaultEdges:o,width:a,height:s,fitView:l,nodeOrigin:c,nodeExtent:u}){return m.useContext(mz)?N.jsx(N.Fragment,{children:e}):N.jsx(RZe,{initialNodes:n,initialEdges:r,defaultNodes:i,defaultEdges:o,initialWidth:a,initialHeight:s,fitView:l,nodeOrigin:c,nodeExtent:u,children:e})}const C$n={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function w$n({nodes:e,edges:n,defaultNodes:r,defaultEdges:i,className:o,nodeTypes:a,edgeTypes:s,onNodeClick:l,onEdgeClick:c,onInit:u,onMove:d,onMoveStart:f,onMoveEnd:p,onConnect:h,onConnectStart:g,onConnectEnd:v,onClickConnectStart:y,onClickConnectEnd:_,onNodeMouseEnter:S,onNodeMouseMove:b,onNodeMouseLeave:E,onNodeContextMenu:w,onNodeDoubleClick:C,onNodeDragStart:x,onNodeDrag:T,onNodeDragStop:R,onNodesDelete:O,onEdgesDelete:M,onDelete:P,onSelectionChange:k,onSelectionDragStart:$,onSelectionDrag:U,onSelectionDragStop:z,onSelectionContextMenu:D,onSelectionStart:B,onSelectionEnd:Y,onBeforeDelete:q,connectionMode:K,connectionLineType:H=Tb.Bezier,connectionLineStyle:G,connectionLineComponent:Q,connectionLineContainerStyle:le,deleteKeyCode:Z="Backspace",selectionKeyCode:j="Shift",selectionOnDrag:F=!1,selectionMode:te=YA.Full,panActivationKeyCode:oe="Space",multiSelectionKeyCode:de=zB()?"Meta":"Control",zoomActivationKeyCode:pe=zB()?"Meta":"Control",snapToGrid:me,snapGrid:ve,onlyRenderVisibleElements:he=!1,selectNodesOnDrag:be,nodesDraggable:we,nodesConnectable:De,nodesFocusable:Ae,nodeOrigin:Ee=tZe,edgesFocusable:Re,edgesReconnectable:Te,elementsSelectable:Oe=!0,defaultViewport:Ne=Jkn,minZoom:je=.5,maxZoom:ne=2,translateExtent:J=WA,preventScrolling:ae=!0,nodeExtent:Se,defaultMarkerColor:xe="#b1b1b7",zoomOnScroll:ue=!0,zoomOnPinch:Me=!0,panOnScroll:$e=!1,panOnScrollSpeed:ge=.5,panOnScrollMode:Ve=L1.Free,zoomOnDoubleClick:st=!0,panOnDrag:Je=!0,onPaneClick:ot,onPaneMouseEnter:Xe,onPaneMouseMove:Ze,onPaneMouseLeave:bt,onPaneScroll:at,onPaneContextMenu:pt,paneClickDistance:Ct=0,nodeClickDistance:It=0,children:Wt,onReconnect:Bt,onReconnectStart:Vt,onReconnectEnd:rn,onEdgeContextMenu:tt,onEdgeDoubleClick:it,onEdgeMouseEnter:nt,onEdgeMouseMove:vt,onEdgeMouseLeave:kt,reconnectRadius:Dt=10,onNodesChange:Kt,onEdgesChange:Ht,noDragClassName:tn="nodrag",noWheelClassName:on="nowheel",noPanClassName:sn="nopan",fitView:Jt,fitViewOptions:En,connectOnClick:Pt,attributionPosition:Qt,proOptions:ln,defaultEdgeOptions:jt,elevateNodesOnSelect:Lt,elevateEdgesOnSelect:en,disableKeyboardA11y:Ue=!1,autoPanOnConnect:Zt,autoPanOnNodeDrag:Et,autoPanSpeed:Gt,connectionRadius:zt,isValidConnection:Vn,onError:sr,style:A,id:W,nodeDragThreshold:ce,viewport:Pe,onViewportChange:qe,width:gt,height:Yt,colorMode:Nn="light",debug:Jn,...Ci},wi){const to=W||"1",Vr=rLn(Nn);return N.jsx("div",{...Ci,style:{...A,...C$n},ref:wi,className:dl(["react-flow",o,Vr]),"data-testid":"rf__wrapper",id:W,children:N.jsxs(E$n,{nodes:e,edges:n,width:gt,height:Yt,fitView:Jt,nodeOrigin:Ee,nodeExtent:Se,children:[N.jsx(b$n,{onInit:u,onNodeClick:l,onEdgeClick:c,onNodeMouseEnter:S,onNodeMouseMove:b,onNodeMouseLeave:E,onNodeContextMenu:w,onNodeDoubleClick:C,nodeTypes:a,edgeTypes:s,connectionLineType:H,connectionLineStyle:G,connectionLineComponent:Q,connectionLineContainerStyle:le,selectionKeyCode:j,selectionOnDrag:F,selectionMode:te,deleteKeyCode:Z,multiSelectionKeyCode:de,panActivationKeyCode:oe,zoomActivationKeyCode:pe,onlyRenderVisibleElements:he,defaultViewport:Ne,translateExtent:J,minZoom:je,maxZoom:ne,preventScrolling:ae,zoomOnScroll:ue,zoomOnPinch:Me,zoomOnDoubleClick:st,panOnScroll:$e,panOnScrollSpeed:ge,panOnScrollMode:Ve,panOnDrag:Je,onPaneClick:ot,onPaneMouseEnter:Xe,onPaneMouseMove:Ze,onPaneMouseLeave:bt,onPaneScroll:at,onPaneContextMenu:pt,paneClickDistance:Ct,nodeClickDistance:It,onSelectionContextMenu:D,onSelectionStart:B,onSelectionEnd:Y,onReconnect:Bt,onReconnectStart:Vt,onReconnectEnd:rn,onEdgeContextMenu:tt,onEdgeDoubleClick:it,onEdgeMouseEnter:nt,onEdgeMouseMove:vt,onEdgeMouseLeave:kt,reconnectRadius:Dt,defaultMarkerColor:xe,noDragClassName:tn,noWheelClassName:on,noPanClassName:sn,rfId:to,disableKeyboardA11y:Ue,nodeExtent:Se,viewport:Pe,onViewportChange:qe}),N.jsx(nLn,{nodes:e,edges:n,defaultNodes:r,defaultEdges:i,onConnect:h,onConnectStart:g,onConnectEnd:v,onClickConnectStart:y,onClickConnectEnd:_,nodesDraggable:we,nodesConnectable:De,nodesFocusable:Ae,edgesFocusable:Re,edgesReconnectable:Te,elementsSelectable:Oe,elevateNodesOnSelect:Lt,elevateEdgesOnSelect:en,minZoom:je,maxZoom:ne,nodeExtent:Se,onNodesChange:Kt,onEdgesChange:Ht,snapToGrid:me,snapGrid:ve,connectionMode:K,translateExtent:J,connectOnClick:Pt,defaultEdgeOptions:jt,fitView:Jt,fitViewOptions:En,onNodesDelete:O,onEdgesDelete:M,onDelete:P,onNodeDragStart:x,onNodeDrag:T,onNodeDragStop:R,onSelectionDrag:U,onSelectionDragStart:$,onSelectionDragStop:z,onMove:d,onMoveStart:f,onMoveEnd:p,noPanClassName:sn,nodeOrigin:Ee,rfId:to,autoPanOnConnect:Zt,autoPanOnNodeDrag:Et,autoPanSpeed:Gt,onError:sr,connectionRadius:zt,isValidConnection:Vn,selectNodesOnDrag:be,nodeDragThreshold:ce,onBeforeDelete:q,paneClickDistance:Ct,debug:Jn}),N.jsx(Zkn,{onSelectionChange:k}),Wt,N.jsx(Ykn,{proOptions:ln,position:Qt}),N.jsx(Gkn,{rfId:to,disableKeyboardA11y:Ue})]})})}var x$n=iZe(w$n);function T$n({dimensions:e,lineWidth:n,variant:r,className:i}){return N.jsx("path",{strokeWidth:n,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:dl(["react-flow__background-pattern",r,i])})}function O$n({radius:e,className:n}){return N.jsx("circle",{cx:e,cy:e,r:e,className:dl(["react-flow__background-pattern","dots",n])})}var vy;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(vy||(vy={}));const R$n={[vy.Dots]:1,[vy.Lines]:1,[vy.Cross]:6},I$n=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function IZe({id:e,variant:n=vy.Dots,gap:r=20,size:i,lineWidth:o=1,offset:a=0,color:s,bgColor:l,style:c,className:u,patternClassName:d}){const f=m.useRef(null),{transform:p,patternId:h}=fo(I$n,Ts),g=i||R$n[n],v=n===vy.Dots,y=n===vy.Cross,_=Array.isArray(r)?r:[r,r],S=[_[0]*p[2]||1,_[1]*p[2]||1],b=g*p[2],E=Array.isArray(a)?a:[a,a],w=y?[b,b]:S,C=[E[0]*p[2]||1+w[0]/2,E[1]*p[2]||1+w[1]/2],x=`${h}${e||""}`;return N.jsxs("svg",{className:dl(["react-flow__background",u]),style:{...c,...yz,"--xy-background-color-props":l,"--xy-background-pattern-color-props":s},ref:f,"data-testid":"rf__background",children:[N.jsx("pattern",{id:x,x:p[0]%S[0],y:p[1]%S[1],width:S[0],height:S[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${C[0]},-${C[1]})`,children:v?N.jsx(O$n,{radius:b/2,className:d}):N.jsx(T$n,{dimensions:w,lineWidth:o,variant:n,className:d})}),N.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${x})`})]})}IZe.displayName="Background";const N$n=m.memo(IZe);function M$n(){return N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:N.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function P$n(){return N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:N.jsx("path",{d:"M0 0h32v4.2H0z"})})}function A$n(){return N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:N.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 D$n(){return N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:N.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 k$n(){return N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:N.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 M4({children:e,className:n,...r}){return N.jsx("button",{type:"button",className:dl(["react-flow__controls-button",n]),...r,children:e})}const L$n=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom});function NZe({style:e,showZoom:n=!0,showFitView:r=!0,showInteractive:i=!0,fitViewOptions:o,onZoomIn:a,onZoomOut:s,onFitView:l,onInteractiveChange:c,className:u,children:d,position:f="bottom-left",orientation:p="vertical","aria-label":h="React Flow controls"}){const g=Ka(),{isInteractive:v,minZoomReached:y,maxZoomReached:_}=fo(L$n,Ts),{zoomIn:S,zoomOut:b,fitView:E}=vz(),w=()=>{S(),a==null||a()},C=()=>{b(),s==null||s()},x=()=>{E(o),l==null||l()},T=()=>{g.setState({nodesDraggable:!v,nodesConnectable:!v,elementsSelectable:!v}),c==null||c(!v)},R=p==="horizontal"?"horizontal":"vertical";return N.jsxs(lhe,{className:dl(["react-flow__controls",R,u]),position:f,style:e,"data-testid":"rf__controls","aria-label":h,children:[n&&N.jsxs(N.Fragment,{children:[N.jsx(M4,{onClick:w,className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in",disabled:_,children:N.jsx(M$n,{})}),N.jsx(M4,{onClick:C,className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out",disabled:y,children:N.jsx(P$n,{})})]}),r&&N.jsx(M4,{className:"react-flow__controls-fitview",onClick:x,title:"fit view","aria-label":"fit view",children:N.jsx(A$n,{})}),i&&N.jsx(M4,{className:"react-flow__controls-interactive",onClick:T,title:"toggle interactivity","aria-label":"toggle interactivity",children:v?N.jsx(k$n,{}):N.jsx(D$n,{})}),d]})}NZe.displayName="Controls";const $$n=m.memo(NZe);function F$n({id:e,x:n,y:r,width:i,height:o,style:a,color:s,strokeColor:l,strokeWidth:c,className:u,borderRadius:d,shapeRendering:f,selected:p,onClick:h}){const{background:g,backgroundColor:v}=a||{},y=s||g||v;return N.jsx("rect",{className:dl(["react-flow__minimap-node",{selected:p},u]),x:n,y:r,rx:d,ry:d,width:i,height:o,style:{fill:y,stroke:l,strokeWidth:c},shapeRendering:f,onClick:h?_=>h(_,e):void 0})}const B$n=m.memo(F$n),j$n=e=>e.nodes.map(n=>n.id),CK=e=>e instanceof Function?e:()=>e;function U$n({nodeStrokeColor:e,nodeColor:n,nodeClassName:r="",nodeBorderRadius:i=5,nodeStrokeWidth:o,nodeComponent:a=B$n,onClick:s}){const l=fo(j$n,Ts),c=CK(n),u=CK(e),d=CK(r),f=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return N.jsx(N.Fragment,{children:l.map(p=>N.jsx(z$n,{id:p,nodeColorFunc:c,nodeStrokeColorFunc:u,nodeClassNameFunc:d,nodeBorderRadius:i,nodeStrokeWidth:o,NodeComponent:a,onClick:s,shapeRendering:f},p))})}function H$n({id:e,nodeColorFunc:n,nodeStrokeColorFunc:r,nodeClassNameFunc:i,nodeBorderRadius:o,nodeStrokeWidth:a,shapeRendering:s,NodeComponent:l,onClick:c}){const{node:u,x:d,y:f,width:p,height:h}=fo(g=>{const v=g.nodeLookup.get(e),{x:y,y:_}=v.internals.positionAbsolute,{width:S,height:b}=f_(v);return{node:v,x:y,y:_,width:S,height:b}},Ts);return!u||u.hidden||!PQe(u)?null:N.jsx(l,{x:d,y:f,width:p,height:h,style:u.style,selected:!!u.selected,className:i(u),color:n(u),borderRadius:o,strokeColor:r(u),strokeWidth:a,shapeRendering:s,onClick:c,id:u.id})}const z$n=m.memo(H$n);var V$n=m.memo(U$n);const G$n=200,W$n=150,Y$n=e=>{const n={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:n,boundingRect:e.nodeLookup.size>0?NQe(mL(e.nodeLookup),n):n,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height}},q$n="react-flow__minimap-desc";function MZe({style:e,className:n,nodeStrokeColor:r,nodeColor:i,nodeClassName:o="",nodeBorderRadius:a=5,nodeStrokeWidth:s,nodeComponent:l,bgColor:c,maskColor:u,maskStrokeColor:d,maskStrokeWidth:f,position:p="bottom-right",onClick:h,onNodeClick:g,pannable:v=!1,zoomable:y=!1,ariaLabel:_="React Flow mini map",inversePan:S,zoomStep:b=10,offsetScale:E=5}){const w=Ka(),C=m.useRef(null),{boundingRect:x,viewBB:T,rfId:R,panZoom:O,translateExtent:M,flowWidth:P,flowHeight:k}=fo(Y$n,Ts),$=(e==null?void 0:e.width)??G$n,U=(e==null?void 0:e.height)??W$n,z=x.width/$,D=x.height/U,B=Math.max(z,D),Y=B*$,q=B*U,K=E*B,H=x.x-(Y-x.width)/2-K,G=x.y-(q-x.height)/2-K,Q=Y+K*2,le=q+K*2,Z=`${q$n}-${R}`,j=m.useRef(0),F=m.useRef();j.current=B,m.useEffect(()=>{if(C.current&&O)return F.current=bkn({domNode:C.current,panZoom:O,getTransform:()=>w.getState().transform,getViewScale:()=>j.current}),()=>{var de;(de=F.current)==null||de.destroy()}},[O]),m.useEffect(()=>{var de;(de=F.current)==null||de.update({translateExtent:M,width:P,height:k,inversePan:S,pannable:v,zoomStep:b,zoomable:y})},[v,y,S,b,M,P,k]);const te=h?de=>{var ve;const[pe,me]=((ve=F.current)==null?void 0:ve.pointer(de))||[0,0];h(de,{x:pe,y:me})}:void 0,oe=g?m.useCallback((de,pe)=>{const me=w.getState().nodeLookup.get(pe);g(de,me)},[]):void 0;return N.jsx(lhe,{position:p,style:{...e,"--xy-minimap-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-background-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-stroke-width-props":typeof f=="number"?f*B:void 0,"--xy-minimap-node-background-color-props":typeof i=="string"?i:void 0,"--xy-minimap-node-stroke-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-width-props":typeof s=="string"?s:void 0},className:dl(["react-flow__minimap",n]),"data-testid":"rf__minimap",children:N.jsxs("svg",{width:$,height:U,viewBox:`${H} ${G} ${Q} ${le}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":Z,ref:C,onClick:te,children:[_&&N.jsx("title",{id:Z,children:_}),N.jsx(V$n,{onClick:oe,nodeColor:i,nodeStrokeColor:r,nodeBorderRadius:a,nodeClassName:o,nodeStrokeWidth:s,nodeComponent:l}),N.jsx("path",{className:"react-flow__minimap-mask",d:`M${H-K},${G-K}h${Q+K*2}v${le+K*2}h${-Q-K*2}z
M${T.x},${T.y}h${T.width}v${T.height}h${-T.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}MZe.displayName="MiniMap";const K$n=m.memo(MZe);function X$n({nodeId:e,position:n,variant:r=dP.Handle,className:i,style:o={},children:a,color:s,minWidth:l=10,minHeight:c=10,maxWidth:u=Number.MAX_VALUE,maxHeight:d=Number.MAX_VALUE,keepAspectRatio:f=!1,shouldResize:p,onResizeStart:h,onResize:g,onResizeEnd:v}){const y=lZe(),_=typeof e=="string"?e:y,S=Ka(),b=m.useRef(null),E=r===dP.Line?"right":"bottom-right",w=n??E,C=m.useRef(null);m.useEffect(()=>{if(!(!b.current||!_))return C.current||(C.current=kkn({domNode:b.current,nodeId:_,getStoreItems:()=>{const{nodeLookup:O,transform:M,snapGrid:P,snapToGrid:k,nodeOrigin:$,domNode:U}=S.getState();return{nodeLookup:O,transform:M,snapGrid:P,snapToGrid:k,nodeOrigin:$,paneDomNode:U}},onChange:(O,M)=>{const{triggerNodeChanges:P,nodeLookup:k,parentLookup:$,nodeOrigin:U}=S.getState(),z=[],D={x:O.x,y:O.y},B=k.get(_);if(B&&B.expandParent&&B.parentId){const Y=B.origin??U,q=O.width??B.measured.width,K=O.height??B.measured.height,H={id:B.id,parentId:B.parentId,rect:{width:q,height:K,...AQe({x:O.x??B.position.x,y:O.y??B.position.y},{width:q,height:K},B.parentId,k,Y)}},G=she([H],k,$,U);z.push(...G),D.x=O.x?Math.max(Y[0]*q,O.x):void 0,D.y=O.y?Math.max(Y[1]*K,O.y):void 0}if(D.x!==void 0&&D.y!==void 0){const Y={id:_,type:"position",position:{...D}};z.push(Y)}if(O.width!==void 0&&O.height!==void 0){const Y={id:_,type:"dimensions",resizing:!0,setAttributes:!0,dimensions:{width:O.width,height:O.height}};z.push(Y)}for(const Y of M){const q={...Y,type:"position"};z.push(q)}P(z)},onEnd:()=>{const O={id:_,type:"dimensions",resizing:!1};S.getState().triggerNodeChanges([O])}})),C.current.update({controlPosition:w,boundaries:{minWidth:l,minHeight:c,maxWidth:u,maxHeight:d},keepAspectRatio:f,onResizeStart:h,onResize:g,onResizeEnd:v,shouldResize:p}),()=>{var O;(O=C.current)==null||O.destroy()}},[w,l,c,u,d,f,h,g,v,p]);const x=w.split("-"),T=r===dP.Line?"borderColor":"backgroundColor",R=s?{...o,[T]:s}:o;return N.jsx("div",{className:dl(["react-flow__resize-control","nodrag",...x,r,i]),ref:b,style:R,children:a})}m.memo(X$n);const PZe=Ru()(Ed(e=>({nodes:[],edges:[],setNodes:n=>e(r=>{const i=typeof n=="function"?n(r.nodes):n;if(i.length<r.nodes.length){const o=r.nodes.filter(s=>!i.find(l=>l.id===s.id)).map(s=>s.id),a=r.edges.filter(s=>!o.includes(s.source)&&!o.includes(s.target));return{nodes:i,edges:a}}return JSON.stringify(i)!==JSON.stringify(r.nodes)?{nodes:i}:r}),setEdges:n=>e(r=>{const i=typeof n=="function"?n(r.edges):n;return JSON.stringify(i)!==JSON.stringify(r.edges)?{edges:i}:r}),clearFlow:()=>e({nodes:[],edges:[]})}),{name:"flow-builder-storage"})),AZe=({data:e})=>{const n=Fr(),r={style:{margin:0}},i=()=>{switch(e.formType){case"text":return N.jsx(eo,{name:"text",label:n.formatMessage({id:"nodes.textField.label"}),...r});case"digit":return N.jsx(b0n,{name:"digit",label:n.formatMessage({id:"nodes.numberField.label"}),...r});case"date":return N.jsx(NI,{name:"date",label:n.formatMessage({id:"nodes.datePicker.label"}),...r});case"select":return N.jsx(hC,{name:"select",label:n.formatMessage({id:"nodes.select.label"}),options:[{label:n.formatMessage({id:"flow.option.1"}),value:"1"},{label:n.formatMessage({id:"flow.option.2"}),value:"2"}],...r});case"checkbox":return N.jsx(nH.Group,{name:"checkbox",label:n.formatMessage({id:"nodes.checkbox.label"}),options:[n.formatMessage({id:"flow.option.1"}),n.formatMessage({id:"flow.option.2"}),n.formatMessage({id:"flow.option.3"})],...r});case"radio":return N.jsx(rH.Group,{name:"radio",label:n.formatMessage({id:"nodes.radio.label"}),options:[n.formatMessage({id:"flow.option.1"}),n.formatMessage({id:"flow.option.2"}),n.formatMessage({id:"flow.option.3"})],...r});default:return N.jsx("div",{children:n.formatMessage({id:"nodes.unknown"})})}};return N.jsx(bu,{size:"small",style:{width:"100%",margin:"8px 0",border:"dashed"},children:N.jsx(mi,{submitter:!1,layout:"vertical",children:i()})})},Q$n=({formType:e,onDelete:n,index:r,total:i,onMove:o})=>{const a=Fr();return N.jsx("div",{style:{marginBottom:8,position:"relative"},children:N.jsxs("div",{style:{position:"relative"},children:[N.jsx(AZe,{data:{formType:e}}),N.jsxs("div",{style:{position:"absolute",right:0,top:0,display:"flex",gap:4},children:[r>0&&N.jsx(qn,{type:"text",icon:N.jsx(zVe,{}),size:"small",onClick:()=>o("up"),title:a.formatMessage({id:"flow.moveUp"})}),r<i-1&&N.jsx(qn,{type:"text",icon:N.jsx(HVe,{}),size:"small",onClick:()=>o("down"),title:a.formatMessage({id:"flow.moveDown"})}),N.jsx(qn,{type:"text",icon:N.jsx(sw,{}),size:"small",onClick:n,title:a.formatMessage({id:"flow.delete"})})]})]})})},Z$n=({id:e,data:n})=>{var u;const r=Fr(),i=d=>{d.preventDefault(),d.dataTransfer.dropEffect="move"},o=d=>{var h;d.preventDefault(),d.stopPropagation();const f=d.dataTransfer.getData("application/reactflow"),p=d.dataTransfer.getData("form-type");f==="form"&&((h=n.onChildAdd)==null||h.call(n,e,{id:`form-${Date.now()}`,type:"form",formType:p||"text"}))},a=(d,f)=>{const p=[...n.children||[]],h=p.findIndex(v=>v.id===d),g=f==="up"?h-1:h+1;if(g>=0&&g<p.length){const[v]=p.splice(h,1);p.splice(g,0,v),window.dispatchEvent(new CustomEvent("flow-node-update",{detail:{nodeId:e,data:{...n,children:p}}}))}},s=()=>{window.dispatchEvent(new CustomEvent("flow-delete-node",{detail:{nodeId:e,selectedNodeId:e}}))},l=()=>{console.log("handleRun"),window.dispatchEvent(new CustomEvent("flow-start-chat",{detail:{nodeId:e}}))},c=()=>{console.log("handleCopy",e),window.dispatchEvent(new CustomEvent("flow-copy-node",{detail:{nodeId:e}}))};return N.jsxs(bu,{style:{width:300,minHeight:120,border:"1px solid"},onDragOver:i,onDrop:o,extra:N.jsxs("div",{style:{display:"flex",gap:4},children:[N.jsx(qn,{type:"text",icon:N.jsx(jde,{}),size:"small",onClick:d=>{var f;d.stopPropagation(),(f=n.onPropertyClick)==null||f.call(n)},title:r.formatMessage({id:"flow.properties"})}),N.jsx(qn,{type:"text",icon:N.jsx(Fde,{}),size:"small",onClick:l,title:r.formatMessage({id:"flow.run"})}),N.jsx(qn,{type:"text",icon:N.jsx(Bzt,{}),size:"small",onClick:c,title:r.formatMessage({id:"flow.copy"})}),N.jsx(qn,{type:"text",icon:N.jsx(sw,{}),size:"small",onClick:s,title:r.formatMessage({id:"flow.delete"})})]}),children:[N.jsx(bC,{type:"target",position:xr.Top}),N.jsx("div",{children:n.title||r.formatMessage({id:"flow.parentNode"})}),N.jsx("div",{className:"node-children",style:{padding:"8px 0"},children:(u=n.children)==null?void 0:u.map((d,f)=>{var p;return N.jsx(Q$n,{id:d.id,parentId:e,formType:d.formType,index:f,total:((p=n.children)==null?void 0:p.length)||0,onDelete:()=>{var h;return(h=n.onChildDelete)==null?void 0:h.call(n,e,d.id)},onMove:h=>a(d.id,h)},d.id)})}),N.jsx(bC,{type:"source",position:xr.Bottom})]})},J$n=()=>{const e=Fr(),{isDarkMode:n}=Pu(),r=()=>{var i;console.log("handleRun"),(i=window.bytedesk)==null||i.showChat()};return N.jsxs(bu,{style:{width:100,minHeight:20,border:"1px solid"},children:[N.jsxs("div",{children:[e.formatMessage({id:"flow.start"}),N.jsx(qn,{type:"text",icon:N.jsx(Fde,{}),size:"small",onClick:r,title:e.formatMessage({id:"flow.run"}),style:{marginLeft:8}})]}),N.jsx(bC,{type:"source",position:xr.Bottom,style:{background:n?"#177ddc":"#1890ff"}})]})};window.flowPropertyClick=null;const e3n=V.memo(({props:e,onPropertyClick:n})=>N.jsx(Z$n,{...e,data:{...e.data,onPropertyClick:()=>n({id:e.id,type:e.type,position:e.position,data:e.data})}})),t3n={parent:e=>N.jsx(e3n,{props:e,onPropertyClick:window.flowPropertyClick}),form:AZe,start:J$n},n3n=({onNodeClick:e,onPropertyClick:n})=>{const{nodes:r,edges:i,setNodes:o,setEdges:a}=PZe(),s=vz(),l=Fr(),{themeMode:c,isDarkMode:u}=Pu(),[d,f]=m.useState(c),[p,h]=m.useState(null);m.useEffect(()=>{f(c)},[c]),m.useEffect(()=>{window.flowPropertyClick=n},[n]),m.useEffect(()=>{window.flowInstance=s},[s]),m.useEffect(()=>{const C=x=>{const{nodes:T,edges:R}=x.detail;o(T),a(R)};return window.addEventListener("flow-import",C),()=>{window.removeEventListener("flow-import",C)}},[o,a]),m.useEffect(()=>{r.length>0&&o(r.map(C=>C.type==="parent"?{...C,data:{...C.data,onChildAdd:g,onChildDelete:v}}:C))},[]);const g=m.useCallback((C,x)=>{o(T=>T.map(R=>R.id===C?{...R,data:{...R.data,children:[...R.data.children||[],x],onChildAdd:g,onChildDelete:v}}:R))},[o]),v=m.useCallback((C,x)=>{o(T=>T.map(R=>{var O;return R.id===C?{...R,data:{...R.data,children:(O=R.data.children)==null?void 0:O.filter(M=>M.id!==x),onChildAdd:g,onChildDelete:v}}:R}))},[o]),y=m.useCallback(C=>{if(C.preventDefault(),!C.dataTransfer)return;const x=C.dataTransfer.getData("application/reactflow");if(x!=="parent"&&x!=="form"&&x!=="start")return;const{x:T,y:R}=s.screenToFlowPosition({x:C.clientX,y:C.clientY});if(x==="start"&&r.some(M=>M.type==="start"))return;const O=r.find(M=>M.type==="start");if(O){const M={left:O.position.x-50,right:O.position.x+50,top:O.position.y-50,bottom:O.position.y+50};if(T>M.left&&T<M.right&&R>M.top&&R<M.bottom)return}if(x==="form"){const M=C.dataTransfer.getData("form-type"),k={id:`node-${Date.now()}`,type:"parent",position:{x:T,y:R},data:{title:"父节点",description:"",children:[{id:`form-${Date.now()}`,type:"form",formType:M||"text"}],onChildAdd:g,onChildDelete:v}};o($=>[...$,k])}else o(x==="start"?M=>[...M,{id:`start-${Date.now()}`,type:"start",position:{x:T,y:R},data:{}}]:M=>[...M,{id:`node-${Date.now()}`,type:x,position:{x:T,y:R},data:{title:"父节点",description:"",children:[],onChildAdd:g,onChildDelete:v}}])},[s,g,v]),_=m.useCallback(C=>{C.preventDefault(),C.dataTransfer&&(C.dataTransfer.dropEffect="move")},[]),S=m.useCallback(C=>{a(x=>BQe(C,x))},[]),b=m.useCallback(C=>{o(x=>rZe(C,x))},[]),E=m.useCallback((C,x)=>{h(x.id),e(x)},[e]),w=m.useCallback(()=>{h(null),window.dispatchEvent(new CustomEvent("flow-node-deselect"))},[]);return m.useEffect(()=>{const C=R=>{const{nodeId:O,data:M}=R.detail;o(r.map(P=>P.id===O?{...P,data:{...P.data,...M}}:P))},x=R=>{const{nodeId:O}=R.detail;console.log("handleCopyNode",O);const M=r.find(P=>P.id===O);if(M){const P=`copy-${O}-${Date.now()}`,k={x:M.position.x+100,y:M.position.y+100};o($=>[...$,{...M,id:P,position:k}])}},T=R=>{var M;const{nodeId:O}=R.detail;console.log("handleStartChat",O),(M=window.bytedesk)==null||M.showChat()};return window.addEventListener("flow-node-update",C),window.addEventListener("flow-copy-node",x),window.addEventListener("flow-start-chat",T),()=>{window.removeEventListener("flow-node-update",C),window.removeEventListener("flow-copy-node",x),window.removeEventListener("flow-start-chat",T)}},[r,o]),m.useEffect(()=>{const C=x=>{const{nodeId:T}=x.detail;o(R=>{const O=R.filter(M=>M.id!==T);return(O.length===0||T===x.detail.selectedNodeId)&&window.dispatchEvent(new CustomEvent("flow-node-deselect")),O})};return window.addEventListener("flow-delete-node",C),()=>{window.removeEventListener("flow-delete-node",C)}},[o]),m.useEffect(()=>{r.length===0&&o([{id:"start-node",type:"start",position:{x:100,y:100},data:{}}])},[]),N.jsx("div",{style:{width:"100%",height:"100%"},children:N.jsxs(x$n,{nodes:r.map(C=>({...C,style:{...C.style,border:C.id===p?`2px solid ${u?"#177ddc":"#1890ff"}`:void 0,boxShadow:C.id===p?`0 0 8px ${u?"#177ddc40":"#1890ff40"}`:void 0}})),edges:i,nodeTypes:t3n,onConnect:S,onNodesChange:b,onNodeClick:E,onPaneClick:w,onDrop:y,onDragOver:_,fitView:!1,defaultViewport:{x:0,y:0,zoom:1},"aria-label":l.formatMessage({id:"flow.canvas.label"}),colorMode:d,children:[N.jsx(N$n,{bgColor:u?"#322F2FFF":"#F5F2F2FF",variant:vy.Dots,gap:12,size:1}),N.jsx($$n,{}),N.jsx(K$n,{})]})})},r3n=({onNodeClick:e,onPropertyClick:n})=>N.jsx("div",{style:{width:"100%",height:"100%"},children:N.jsx(RZe,{children:N.jsx(n3n,{onNodeClick:e,onPropertyClick:n})})}),i3n=({selectedNode:e,onNodeUpdate:n,onChildUpdate:r,onChildDelete:i})=>{var f;const o=Fr(),[a]=Hr.useForm(),s=()=>{e&&a.setFieldsValue({title:e.data.title,description:e.data.description})},l=async()=>{try{const p=await a.validateFields();e&&n(e.id,p)}catch(p){console.error("Validate Failed:",p)}};if(!e)return null;const c=p=>{const h={...e.data,...p};n(e.id,h)},u=(p,h,g)=>{r(p,h,g)},d=(p,h)=>{i(p,h)};return N.jsx("div",{className:"property-panel",children:N.jsx(bu,{title:o.formatMessage({id:"propertyPanel.settings"}),extra:N.jsxs(Cf,{children:[N.jsx(qn,{icon:N.jsx(pGt,{}),onClick:s,title:o.formatMessage({id:"propertyPanel.reset"}),children:o.formatMessage({id:"propertyPanel.reset"})}),N.jsx(qn,{type:"primary",icon:N.jsx(Bde,{}),onClick:l,title:o.formatMessage({id:"propertyPanel.save"}),children:o.formatMessage({id:"propertyPanel.save"})})]}),children:N.jsx(Hr,{form:a,layout:"vertical",initialValues:{title:e==null?void 0:e.data.title,description:e==null?void 0:e.data.description},children:e&&N.jsxs(N.Fragment,{children:[N.jsx(Hr.Item,{label:o.formatMessage({id:"propertyPanel.nodeId"}),name:"id",children:N.jsx(Oi,{value:e.id,disabled:!0})}),N.jsx(Hr.Item,{label:o.formatMessage({id:"propertyPanel.nodeType"}),name:"type",children:N.jsx(Oi,{value:e.type,disabled:!0})}),N.jsx(Hr.Item,{label:o.formatMessage({id:"propertyPanel.nodeName"}),name:"title",children:N.jsx(Oi,{placeholder:o.formatMessage({id:"propertyPanel.placeholder.name"}),defaultValue:e.data.title,onChange:p=>c({title:p.target.value})})}),N.jsx(Hr.Item,{label:o.formatMessage({id:"propertyPanel.nodeDesc"}),name:"description",children:N.jsx(Oi.TextArea,{placeholder:o.formatMessage({id:"propertyPanel.placeholder.desc"}),defaultValue:e.data.description,onChange:p=>c({description:p.target.value})})}),(f=e.data.children)==null?void 0:f.map(p=>N.jsxs(bu,{size:"small",title:o.formatMessage({id:"propertyPanel.componentType"}),extra:N.jsx(qn,{type:"text",icon:N.jsx(sw,{}),onClick:()=>d(e.id,p.id),title:o.formatMessage({id:"flow.delete"})}),children:[N.jsx(Hr.Item,{label:o.formatMessage({id:"propertyPanel.labelName"}),children:N.jsx(Oi,{placeholder:o.formatMessage({id:"propertyPanel.placeholder.label"}),defaultValue:p.label,onChange:h=>u(e.id,p.id,{label:h.target.value})})}),(p.formType==="select"||p.formType==="checkbox"||p.formType==="radio")&&N.jsx(Hr.Item,{label:o.formatMessage({id:"propertyPanel.options"}),children:N.jsx(bg,{mode:"tags",style:{width:"100%"},placeholder:o.formatMessage({id:"propertyPanel.placeholder.options"}),defaultValue:p.options,onChange:h=>u(e.id,p.id,{options:h})})})]},p.id))]})})})})};function qIe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function wT(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?qIe(Object(r),!0).forEach(function(i){fe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qIe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function o3n(e){var n=e.length;if(n===0||n===1)return e;if(n===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(n===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(n>=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 wK={};function a3n(e){if(e.length===0||e.length===1)return e;var n=e.join(".");return wK[n]||(wK[n]=o3n(e)),wK[n]}function s3n(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=e.filter(function(a){return a!=="token"}),o=a3n(i);return o.reduce(function(a,s){return wT(wT({},a),r[s])},n)}function KIe(e){return e.join(" ")}function l3n(e,n){var r=0;return function(i){return r+=1,i.map(function(o,a){return DZe({node:o,stylesheet:e,useInlineStyles:n,key:"code-segment-".concat(r,"-").concat(a)})})}}function DZe(e){var n=e.node,r=e.stylesheet,i=e.style,o=i===void 0?{}:i,a=e.useInlineStyles,s=e.key,l=n.properties,c=n.type,u=n.tagName,d=n.value;if(c==="text")return d;if(u){var f=l3n(r,a),p;if(!a)p=wT(wT({},l),{},{className:KIe(l.className)});else{var h=Object.keys(r).reduce(function(_,S){return S.split(".").forEach(function(b){_.includes(b)||_.push(b)}),_},[]),g=l.className&&l.className.includes("token")?["token"]:[],v=l.className&&g.concat(l.className.filter(function(_){return!h.includes(_)}));p=wT(wT({},l),{},{className:KIe(v)||void 0,style:s3n(l.className,Object.assign({},l.style,o),r)})}var y=f(n.children);return V.createElement(u,ft({key:s},p),y)}}const c3n=function(e,n){var r=e.listLanguages();return r.indexOf(n)!==-1};var u3n=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function XIe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function Vb(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?XIe(Object(r),!0).forEach(function(i){fe(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XIe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}var d3n=/\n/g;function f3n(e){return e.match(d3n)}function p3n(e){var n=e.lines,r=e.startingLineNumber,i=e.style;return n.map(function(o,a){var s=a+r;return V.createElement("span",{key:"line-".concat(a),className:"react-syntax-highlighter-line-number",style:typeof i=="function"?i(s):i},"".concat(s,`
`))})}function h3n(e){var n=e.codeString,r=e.codeStyle,i=e.containerStyle,o=i===void 0?{float:"left",paddingRight:"10px"}:i,a=e.numberStyle,s=a===void 0?{}:a,l=e.startingLineNumber;return V.createElement("code",{style:Object.assign({},r,o)},p3n({lines:n.replace(/\n$/,"").split(`
`),style:s,startingLineNumber:l}))}function g3n(e){return"".concat(e.toString().length,".25em")}function kZe(e,n){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:n},children:[{type:"text",value:e}]}}function LZe(e,n,r){var i={display:"inline-block",minWidth:g3n(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},o=typeof e=="function"?e(n):e,a=Vb(Vb({},i),o);return a}function k6(e){var n=e.children,r=e.lineNumber,i=e.lineNumberStyle,o=e.largestLineNumber,a=e.showInlineLineNumbers,s=e.lineProps,l=s===void 0?{}:s,c=e.className,u=c===void 0?[]:c,d=e.showLineNumbers,f=e.wrapLongLines,p=e.wrapLines,h=p===void 0?!1:p,g=h?Vb({},typeof l=="function"?l(r):l):{};if(g.className=g.className?[].concat(Tt(g.className.trim().split(/\s+/)),Tt(u)):u,r&&a){var v=LZe(i,r,o);n.unshift(kZe(r,v))}return f&d&&(g.style=Vb({display:"flex"},g.style)),{type:"element",tagName:"span",properties:g,children:n}}function $Ze(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=0;i<e.length;i++){var o=e[i];if(o.type==="text")r.push(k6({children:[o],className:Tt(new Set(n))}));else if(o.children){var a=n.concat(o.properties.className);$Ze(o.children,a).forEach(function(s){return r.push(s)})}}return r}function m3n(e,n,r,i,o,a,s,l,c){var u,d=$Ze(e.value),f=[],p=-1,h=0;function g(w,C){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return k6({children:w,lineNumber:C,lineNumberStyle:l,largestLineNumber:s,showInlineLineNumbers:o,lineProps:r,className:x,showLineNumbers:i,wrapLongLines:c,wrapLines:n})}function v(w,C){if(i&&C&&o){var x=LZe(l,C,s);w.unshift(kZe(C,x))}return w}function y(w,C){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return n||x.length>0?g(w,C,x):v(w,C)}for(var _=function(){var C=d[h],x=C.children[0].value,T=f3n(x);if(T){var R=x.split(`
`);R.forEach(function(O,M){var P=i&&f.length+a,k={type:"text",value:"".concat(O,`
`)};if(M===0){var $=d.slice(p+1,h).concat(k6({children:[k],className:C.properties.className})),U=y($,P);f.push(U)}else if(M===R.length-1){var z=d[h+1]&&d[h+1].children&&d[h+1].children[0],D={type:"text",value:"".concat(O)};if(z){var B=k6({children:[D],className:C.properties.className});d.splice(h+1,0,B)}else{var Y=[D],q=y(Y,P,C.properties.className);f.push(q)}}else{var K=[k],H=y(K,P,C.properties.className);f.push(H)}}),p=h}h++};h<d.length;)_();if(p!==d.length-1){var S=d.slice(p+1,d.length);if(S&&S.length){var b=i&&f.length+a,E=y(S,b);f.push(E)}}return n?f:(u=[]).concat.apply(u,f)}function v3n(e){var n=e.rows,r=e.stylesheet,i=e.useInlineStyles;return n.map(function(o,a){return DZe({node:o,stylesheet:r,useInlineStyles:i,key:"code-segement".concat(a)})})}function FZe(e){return e&&typeof e.highlightAuto<"u"}function y3n(e){var n=e.astGenerator,r=e.language,i=e.code,o=e.defaultCodeValue;if(FZe(n)){var a=c3n(n,r);return r==="text"?{value:o,language:"text"}:a?n.highlight(r,i):n.highlightAuto(i)}try{return r&&r!=="text"?{value:n.highlight(i,r)}:{value:o}}catch{return{value:o}}}function _3n(e,n){return function(i){var o=i.language,a=i.children,s=i.style,l=s===void 0?n:s,c=i.customStyle,u=c===void 0?{}:c,d=i.codeTagProps,f=d===void 0?{className:o?"language-".concat(o):void 0,style:Vb(Vb({},l['code[class*="language-"]']),l['code[class*="language-'.concat(o,'"]')])}:d,p=i.useInlineStyles,h=p===void 0?!0:p,g=i.showLineNumbers,v=g===void 0?!1:g,y=i.showInlineLineNumbers,_=y===void 0?!0:y,S=i.startingLineNumber,b=S===void 0?1:S,E=i.lineNumberContainerStyle,w=i.lineNumberStyle,C=w===void 0?{}:w,x=i.wrapLines,T=i.wrapLongLines,R=T===void 0?!1:T,O=i.lineProps,M=O===void 0?{}:O,P=i.renderer,k=i.PreTag,$=k===void 0?"pre":k,U=i.CodeTag,z=U===void 0?"code":U,D=i.code,B=D===void 0?(Array.isArray(a)?a[0]:a)||"":D,Y=i.astGenerator,q=Xt(i,u3n);Y=Y||e;var K=v?V.createElement(h3n,{containerStyle:E,codeStyle:f.style||{},numberStyle:C,startingLineNumber:b,codeString:B}):null,H=l.hljs||l['pre[class*="language-"]']||{backgroundColor:"#fff"},G=FZe(Y)?"hljs":"prismjs",Q=h?Object.assign({},q,{style:Object.assign({},H,u)}):Object.assign({},q,{className:q.className?"".concat(G," ").concat(q.className):G,style:Object.assign({},u)});if(R?f.style=Vb({whiteSpace:"pre-wrap"},f.style):f.style=Vb({whiteSpace:"pre"},f.style),!Y)return V.createElement($,Q,K,V.createElement(z,f,B));(x===void 0&&P||R)&&(x=!0),P=P||v3n;var le=[{type:"text",value:B}],Z=y3n({astGenerator:Y,language:o,code:B,defaultCodeValue:le});Z.language===null&&(Z.value=le);var j=Z.value.length;j===1&&Z.value[0].type==="text"&&(j=Z.value[0].value.split(`
`).length);var F=j+b,te=m3n(Z,x,M,v,_,b,F,C,R);return V.createElement($,Q,V.createElement(z,f,!_&&K,P({rows:te,stylesheet:l,useInlineStyles:h})))}}const b3n={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 jI={};function uhe(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(n){var r=e[n];typeof r=="object"&&!Object.isFrozen(r)&&uhe(r)}),e}var BZe=uhe,S3n=uhe;BZe.default=S3n;let QIe=class{constructor(n){n.data===void 0&&(n.data={}),this.data=n.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function JT(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Gb(e,...n){const r=Object.create(null);for(const i in e)r[i]=e[i];return n.forEach(function(i){for(const o in i)r[o]=i[o]}),r}const E3n="</span>",ZIe=e=>!!e.kind;class C3n{constructor(n,r){this.buffer="",this.classPrefix=r.classPrefix,n.walk(this)}addText(n){this.buffer+=JT(n)}openNode(n){if(!ZIe(n))return;let r=n.kind;n.sublanguage||(r=`${this.classPrefix}${r}`),this.span(r)}closeNode(n){ZIe(n)&&(this.buffer+=E3n)}value(){return this.buffer}span(n){this.buffer+=`<span class="${n}">`}}class dhe{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(n){this.top.children.push(n)}openNode(n){const r={kind:n,children:[]};this.add(r),this.stack.push(r)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(n){return this.constructor._walk(n,this.rootNode)}static _walk(n,r){return typeof r=="string"?n.addText(r):r.children&&(n.openNode(r),r.children.forEach(i=>this._walk(n,i)),n.closeNode(r)),n}static _collapse(n){typeof n!="string"&&n.children&&(n.children.every(r=>typeof r=="string")?n.children=[n.children.join("")]:n.children.forEach(r=>{dhe._collapse(r)}))}}class w3n extends dhe{constructor(n){super(),this.options=n}addKeyword(n,r){n!==""&&(this.openNode(r),this.addText(n),this.closeNode())}addText(n){n!==""&&this.add(n)}addSublanguage(n,r){const i=n.root;i.kind=r,i.sublanguage=!0,this.add(i)}toHTML(){return new C3n(this,this.options).value()}finalize(){return!0}}function x3n(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function QA(e){return e?typeof e=="string"?e:e.source:null}function T3n(...e){return e.map(r=>QA(r)).join("")}function O3n(...e){return"("+e.map(r=>QA(r)).join("|")+")"}function R3n(e){return new RegExp(e.toString()+"|").exec("").length-1}function I3n(e,n){const r=e&&e.exec(n);return r&&r.index===0}const N3n=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function M3n(e,n="|"){let r=0;return e.map(i=>{r+=1;const o=r;let a=QA(i),s="";for(;a.length>0;){const l=N3n.exec(a);if(!l){s+=a;break}s+=a.substring(0,l.index),a=a.substring(l.index+l[0].length),l[0][0]==="\\"&&l[1]?s+="\\"+String(Number(l[1])+o):(s+=l[0],l[0]==="("&&r++)}return s}).map(i=>`(${i})`).join(n)}const P3n=/\b\B/,jZe="[a-zA-Z]\\w*",fhe="[a-zA-Z_]\\w*",phe="\\b\\d+(\\.\\d+)?",UZe="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",HZe="\\b(0b[01]+)",A3n="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",D3n=(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=T3n(n,/.*\b/,e.binary,/\b.*/)),Gb({className:"meta",begin:n,end:/$/,relevance:0,"on:begin":(r,i)=>{r.index!==0&&i.ignoreMatch()}},e)},ZA={begin:"\\\\[\\s\\S]",relevance:0},k3n={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[ZA]},L3n={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[ZA]},zZe={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/},bz=function(e,n,r={}){const i=Gb({className:"comment",begin:e,end:n,contains:[]},r);return i.contains.push(zZe),i.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),i},$3n=bz("//","$"),F3n=bz("/\\*","\\*/"),B3n=bz("#","$"),j3n={className:"number",begin:phe,relevance:0},U3n={className:"number",begin:UZe,relevance:0},H3n={className:"number",begin:HZe,relevance:0},z3n={className:"number",begin:phe+"(%|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},V3n={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[ZA,{begin:/\[/,end:/\]/,relevance:0,contains:[ZA]}]}]},G3n={className:"title",begin:jZe,relevance:0},W3n={className:"title",begin:fhe,relevance:0},Y3n={begin:"\\.\\s*"+fhe,relevance:0},q3n=function(e){return Object.assign(e,{"on:begin":(n,r)=>{r.data._beginMatch=n[1]},"on:end":(n,r)=>{r.data._beginMatch!==n[1]&&r.ignoreMatch()}})};var P4=Object.freeze({__proto__:null,MATCH_NOTHING_RE:P3n,IDENT_RE:jZe,UNDERSCORE_IDENT_RE:fhe,NUMBER_RE:phe,C_NUMBER_RE:UZe,BINARY_NUMBER_RE:HZe,RE_STARTERS_RE:A3n,SHEBANG:D3n,BACKSLASH_ESCAPE:ZA,APOS_STRING_MODE:k3n,QUOTE_STRING_MODE:L3n,PHRASAL_WORDS_MODE:zZe,COMMENT:bz,C_LINE_COMMENT_MODE:$3n,C_BLOCK_COMMENT_MODE:F3n,HASH_COMMENT_MODE:B3n,NUMBER_MODE:j3n,C_NUMBER_MODE:U3n,BINARY_NUMBER_MODE:H3n,CSS_NUMBER_MODE:z3n,REGEXP_MODE:V3n,TITLE_MODE:G3n,UNDERSCORE_TITLE_MODE:W3n,METHOD_GUARD:Y3n,END_SAME_AS_BEGIN:q3n});function K3n(e,n){e.input[e.index-1]==="."&&n.ignoreMatch()}function X3n(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=K3n,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Q3n(e,n){Array.isArray(e.illegal)&&(e.illegal=O3n(...e.illegal))}function Z3n(e,n){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 J3n(e,n){e.relevance===void 0&&(e.relevance=1)}const e4n=["of","and","for","in","not","or","if","then","parent","list","value"],t4n="keyword";function VZe(e,n,r=t4n){const i={};return typeof e=="string"?o(r,e.split(" ")):Array.isArray(e)?o(r,e):Object.keys(e).forEach(function(a){Object.assign(i,VZe(e[a],n,a))}),i;function o(a,s){n&&(s=s.map(l=>l.toLowerCase())),s.forEach(function(l){const c=l.split("|");i[c[0]]=[a,n4n(c[0],c[1])]})}}function n4n(e,n){return n?Number(n):r4n(e)?0:1}function r4n(e){return e4n.includes(e.toLowerCase())}function i4n(e,{plugins:n}){function r(l,c){return new RegExp(QA(l),"m"+(e.case_insensitive?"i":"")+(c?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(c,u){u.position=this.position++,this.matchIndexes[this.matchAt]=u,this.regexes.push([u,c]),this.matchAt+=R3n(c)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const c=this.regexes.map(u=>u[1]);this.matcherRe=r(M3n(c),!0),this.lastIndex=0}exec(c){this.matcherRe.lastIndex=this.lastIndex;const u=this.matcherRe.exec(c);if(!u)return null;const d=u.findIndex((p,h)=>h>0&&p!==void 0),f=this.matchIndexes[d];return u.splice(0,d),Object.assign(u,f)}}class o{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(c){if(this.multiRegexes[c])return this.multiRegexes[c];const u=new i;return this.rules.slice(c).forEach(([d,f])=>u.addRule(d,f)),u.compile(),this.multiRegexes[c]=u,u}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(c,u){this.rules.push([c,u]),u.type==="begin"&&this.count++}exec(c){const u=this.getMatcher(this.regexIndex);u.lastIndex=this.lastIndex;let d=u.exec(c);if(this.resumingScanAtSamePosition()&&!(d&&d.index===this.lastIndex)){const f=this.getMatcher(0);f.lastIndex=this.lastIndex+1,d=f.exec(c)}return d&&(this.regexIndex+=d.position+1,this.regexIndex===this.count&&this.considerAll()),d}}function a(l){const c=new o;return l.contains.forEach(u=>c.addRule(u.begin,{rule:u,type:"begin"})),l.terminatorEnd&&c.addRule(l.terminatorEnd,{type:"end"}),l.illegal&&c.addRule(l.illegal,{type:"illegal"}),c}function s(l,c){const u=l;if(l.isCompiled)return u;[Z3n].forEach(f=>f(l,c)),e.compilerExtensions.forEach(f=>f(l,c)),l.__beforeBegin=null,[X3n,Q3n,J3n].forEach(f=>f(l,c)),l.isCompiled=!0;let d=null;if(typeof l.keywords=="object"&&(d=l.keywords.$pattern,delete l.keywords.$pattern),l.keywords&&(l.keywords=VZe(l.keywords,e.case_insensitive)),l.lexemes&&d)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return d=d||l.lexemes||/\w+/,u.keywordPatternRe=r(d,!0),c&&(l.begin||(l.begin=/\B|\b/),u.beginRe=r(l.begin),l.endSameAsBegin&&(l.end=l.begin),!l.end&&!l.endsWithParent&&(l.end=/\B|\b/),l.end&&(u.endRe=r(l.end)),u.terminatorEnd=QA(l.end)||"",l.endsWithParent&&c.terminatorEnd&&(u.terminatorEnd+=(l.end?"|":"")+c.terminatorEnd)),l.illegal&&(u.illegalRe=r(l.illegal)),l.contains||(l.contains=[]),l.contains=[].concat(...l.contains.map(function(f){return o4n(f==="self"?l:f)})),l.contains.forEach(function(f){s(f,u)}),l.starts&&s(l.starts,c),u.matcher=a(u),u}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=Gb(e.classNameAliases||{}),s(e)}function GZe(e){return e?e.endsWithParent||GZe(e.starts):!1}function o4n(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(n){return Gb(e,{variants:null},n)})),e.cachedVariants?e.cachedVariants:GZe(e)?Gb(e,{starts:e.starts?Gb(e.starts):null}):Object.isFrozen(e)?Gb(e):e}var a4n="10.7.3";function s4n(e){return!!(e||e==="")}function l4n(e){const n={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,JT(this.code);let i={};return this.autoDetect?(i=e.highlightAuto(this.code),this.detectedLanguage=i.language):(i=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),i.value},autoDetect(){return!this.language||s4n(this.autodetect)},ignoreIllegals(){return!0}},render(i){return i("pre",{},[i("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:n,VuePlugin:{install(i){i.component("highlightjs",n)}}}}const c4n={"after:highlightElement":({el:e,result:n,text:r})=>{const i=JIe(e);if(!i.length)return;const o=document.createElement("div");o.innerHTML=n.value,n.value=u4n(i,JIe(o),r)}};function pae(e){return e.nodeName.toLowerCase()}function JIe(e){const n=[];return function r(i,o){for(let a=i.firstChild;a;a=a.nextSibling)a.nodeType===3?o+=a.nodeValue.length:a.nodeType===1&&(n.push({event:"start",offset:o,node:a}),o=r(a,o),pae(a).match(/br|hr|img|input/)||n.push({event:"stop",offset:o,node:a}));return o}(e,0),n}function u4n(e,n,r){let i=0,o="";const a=[];function s(){return!e.length||!n.length?e.length?e:n:e[0].offset!==n[0].offset?e[0].offset<n[0].offset?e:n:n[0].event==="start"?e:n}function l(d){function f(p){return" "+p.nodeName+'="'+JT(p.value)+'"'}o+="<"+pae(d)+[].map.call(d.attributes,f).join("")+">"}function c(d){o+="</"+pae(d)+">"}function u(d){(d.event==="start"?l:c)(d.node)}for(;e.length||n.length;){let d=s();if(o+=JT(r.substring(i,d[0].offset)),i=d[0].offset,d===e){a.reverse().forEach(c);do u(d.splice(0,1)[0]),d=s();while(d===e&&d.length&&d[0].offset===i);a.reverse().forEach(l)}else d[0].event==="start"?a.push(d[0].node):a.pop(),u(d.splice(0,1)[0])}return o+JT(r.substr(i))}const eNe={},xK=e=>{console.error(e)},tNe=(e,...n)=>{console.log(`WARN: ${e}`,...n)},qf=(e,n)=>{eNe[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),eNe[`${e}/${n}`]=!0)},TK=JT,nNe=Gb,rNe=Symbol("nomatch"),d4n=function(e){const n=Object.create(null),r=Object.create(null),i=[];let o=!0;const a=/(^(<[^>]+>|\t|)+|\n)/gm,s="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let c={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:w3n};function u(G){return c.noHighlightRe.test(G)}function d(G){let Q=G.className+" ";Q+=G.parentNode?G.parentNode.className:"";const le=c.languageDetectRe.exec(Q);if(le){const Z=U(le[1]);return Z||(tNe(s.replace("{}",le[1])),tNe("Falling back to no-highlight mode for this block.",G)),Z?le[1]:"no-highlight"}return Q.split(/\s+/).find(Z=>u(Z)||U(Z))}function f(G,Q,le,Z){let j="",F="";typeof Q=="object"?(j=G,le=Q.ignoreIllegals,F=Q.language,Z=void 0):(qf("10.7.0","highlight(lang, code, ...args) has been deprecated."),qf("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),F=G,j=Q);const te={code:j,language:F};q("before:highlight",te);const oe=te.result?te.result:p(te.language,te.code,le,Z);return oe.code=te.code,q("after:highlight",oe),oe}function p(G,Q,le,Z){function j(xe,ue){const Me=Ae.case_insensitive?ue[0].toLowerCase():ue[0];return Object.prototype.hasOwnProperty.call(xe.keywords,Me)&&xe.keywords[Me]}function F(){if(!Te.keywords){Ne.addText(je);return}let xe=0;Te.keywordPatternRe.lastIndex=0;let ue=Te.keywordPatternRe.exec(je),Me="";for(;ue;){Me+=je.substring(xe,ue.index);const $e=j(Te,ue);if($e){const[ge,Ve]=$e;if(Ne.addText(Me),Me="",ne+=Ve,ge.startsWith("_"))Me+=ue[0];else{const st=Ae.classNameAliases[ge]||ge;Ne.addKeyword(ue[0],st)}}else Me+=ue[0];xe=Te.keywordPatternRe.lastIndex,ue=Te.keywordPatternRe.exec(je)}Me+=je.substr(xe),Ne.addText(Me)}function te(){if(je==="")return;let xe=null;if(typeof Te.subLanguage=="string"){if(!n[Te.subLanguage]){Ne.addText(je);return}xe=p(Te.subLanguage,je,!0,Oe[Te.subLanguage]),Oe[Te.subLanguage]=xe.top}else xe=g(je,Te.subLanguage.length?Te.subLanguage:null);Te.relevance>0&&(ne+=xe.relevance),Ne.addSublanguage(xe.emitter,xe.language)}function oe(){Te.subLanguage!=null?te():F(),je=""}function de(xe){return xe.className&&Ne.openNode(Ae.classNameAliases[xe.className]||xe.className),Te=Object.create(xe,{parent:{value:Te}}),Te}function pe(xe,ue,Me){let $e=I3n(xe.endRe,Me);if($e){if(xe["on:end"]){const ge=new QIe(xe);xe["on:end"](ue,ge),ge.isMatchIgnored&&($e=!1)}if($e){for(;xe.endsParent&&xe.parent;)xe=xe.parent;return xe}}if(xe.endsWithParent)return pe(xe.parent,ue,Me)}function me(xe){return Te.matcher.regexIndex===0?(je+=xe[0],1):(Se=!0,0)}function ve(xe){const ue=xe[0],Me=xe.rule,$e=new QIe(Me),ge=[Me.__beforeBegin,Me["on:begin"]];for(const Ve of ge)if(Ve&&(Ve(xe,$e),$e.isMatchIgnored))return me(ue);return Me&&Me.endSameAsBegin&&(Me.endRe=x3n(ue)),Me.skip?je+=ue:(Me.excludeBegin&&(je+=ue),oe(),!Me.returnBegin&&!Me.excludeBegin&&(je=ue)),de(Me),Me.returnBegin?0:ue.length}function he(xe){const ue=xe[0],Me=Q.substr(xe.index),$e=pe(Te,xe,Me);if(!$e)return rNe;const ge=Te;ge.skip?je+=ue:(ge.returnEnd||ge.excludeEnd||(je+=ue),oe(),ge.excludeEnd&&(je=ue));do Te.className&&Ne.closeNode(),!Te.skip&&!Te.subLanguage&&(ne+=Te.relevance),Te=Te.parent;while(Te!==$e.parent);return $e.starts&&($e.endSameAsBegin&&($e.starts.endRe=$e.endRe),de($e.starts)),ge.returnEnd?0:ue.length}function be(){const xe=[];for(let ue=Te;ue!==Ae;ue=ue.parent)ue.className&&xe.unshift(ue.className);xe.forEach(ue=>Ne.openNode(ue))}let we={};function De(xe,ue){const Me=ue&&ue[0];if(je+=xe,Me==null)return oe(),0;if(we.type==="begin"&&ue.type==="end"&&we.index===ue.index&&Me===""){if(je+=Q.slice(ue.index,ue.index+1),!o){const $e=new Error("0 width match regex");throw $e.languageName=G,$e.badRule=we.rule,$e}return 1}if(we=ue,ue.type==="begin")return ve(ue);if(ue.type==="illegal"&&!le){const $e=new Error('Illegal lexeme "'+Me+'" for mode "'+(Te.className||"<unnamed>")+'"');throw $e.mode=Te,$e}else if(ue.type==="end"){const $e=he(ue);if($e!==rNe)return $e}if(ue.type==="illegal"&&Me==="")return 1;if(ae>1e5&&ae>ue.index*3)throw new Error("potential infinite loop, way more iterations than matches");return je+=Me,Me.length}const Ae=U(G);if(!Ae)throw xK(s.replace("{}",G)),new Error('Unknown language: "'+G+'"');const Ee=i4n(Ae,{plugins:i});let Re="",Te=Z||Ee;const Oe={},Ne=new c.__emitter(c);be();let je="",ne=0,J=0,ae=0,Se=!1;try{for(Te.matcher.considerAll();;){ae++,Se?Se=!1:Te.matcher.considerAll(),Te.matcher.lastIndex=J;const xe=Te.matcher.exec(Q);if(!xe)break;const ue=Q.substring(J,xe.index),Me=De(ue,xe);J=xe.index+Me}return De(Q.substr(J)),Ne.closeAllNodes(),Ne.finalize(),Re=Ne.toHTML(),{relevance:Math.floor(ne),value:Re,language:G,illegal:!1,emitter:Ne,top:Te}}catch(xe){if(xe.message&&xe.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:xe.message,context:Q.slice(J-100,J+100),mode:xe.mode},sofar:Re,relevance:0,value:TK(Q),emitter:Ne};if(o)return{illegal:!1,relevance:0,value:TK(Q),emitter:Ne,language:G,top:Te,errorRaised:xe};throw xe}}function h(G){const Q={relevance:0,emitter:new c.__emitter(c),value:TK(G),illegal:!1,top:l};return Q.emitter.addText(G),Q}function g(G,Q){Q=Q||c.languages||Object.keys(n);const le=h(G),Z=Q.filter(U).filter(D).map(de=>p(de,G,!1));Z.unshift(le);const j=Z.sort((de,pe)=>{if(de.relevance!==pe.relevance)return pe.relevance-de.relevance;if(de.language&&pe.language){if(U(de.language).supersetOf===pe.language)return 1;if(U(pe.language).supersetOf===de.language)return-1}return 0}),[F,te]=j,oe=F;return oe.second_best=te,oe}function v(G){return c.tabReplace||c.useBR?G.replace(a,Q=>Q===`
`?c.useBR?"<br>":Q:c.tabReplace?Q.replace(/\t/g,c.tabReplace):Q):G}function y(G,Q,le){const Z=Q?r[Q]:le;G.classList.add("hljs"),Z&&G.classList.add(Z)}const _={"before:highlightElement":({el:G})=>{c.useBR&&(G.innerHTML=G.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,`
`))},"after:highlightElement":({result:G})=>{c.useBR&&(G.value=G.value.replace(/\n/g,"<br>"))}},S=/^(<[^>]+>|\t)+/gm,b={"after:highlightElement":({result:G})=>{c.tabReplace&&(G.value=G.value.replace(S,Q=>Q.replace(/\t/g,c.tabReplace)))}};function E(G){let Q=null;const le=d(G);if(u(le))return;q("before:highlightElement",{el:G,language:le}),Q=G;const Z=Q.textContent,j=le?f(Z,{language:le,ignoreIllegals:!0}):g(Z);q("after:highlightElement",{el:G,result:j,text:Z}),G.innerHTML=j.value,y(G,le,j.language),G.result={language:j.language,re:j.relevance,relavance:j.relevance},j.second_best&&(G.second_best={language:j.second_best.language,re:j.second_best.relevance,relavance:j.second_best.relevance})}function w(G){G.useBR&&(qf("10.3.0","'useBR' will be removed entirely in v11.0"),qf("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),c=nNe(c,G)}const C=()=>{if(C.called)return;C.called=!0,qf("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(E)};function x(){qf("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),T=!0}let T=!1;function R(){if(document.readyState==="loading"){T=!0;return}document.querySelectorAll("pre code").forEach(E)}function O(){T&&R()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",O,!1);function M(G,Q){let le=null;try{le=Q(e)}catch(Z){if(xK("Language definition for '{}' could not be registered.".replace("{}",G)),o)xK(Z);else throw Z;le=l}le.name||(le.name=G),n[G]=le,le.rawDefinition=Q.bind(null,e),le.aliases&&z(le.aliases,{languageName:G})}function P(G){delete n[G];for(const Q of Object.keys(r))r[Q]===G&&delete r[Q]}function k(){return Object.keys(n)}function $(G){qf("10.4.0","requireLanguage will be removed entirely in v11."),qf("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const Q=U(G);if(Q)return Q;throw new Error("The '{}' language is required, but not loaded.".replace("{}",G))}function U(G){return G=(G||"").toLowerCase(),n[G]||n[r[G]]}function z(G,{languageName:Q}){typeof G=="string"&&(G=[G]),G.forEach(le=>{r[le.toLowerCase()]=Q})}function D(G){const Q=U(G);return Q&&!Q.disableAutodetect}function B(G){G["before:highlightBlock"]&&!G["before:highlightElement"]&&(G["before:highlightElement"]=Q=>{G["before:highlightBlock"](Object.assign({block:Q.el},Q))}),G["after:highlightBlock"]&&!G["after:highlightElement"]&&(G["after:highlightElement"]=Q=>{G["after:highlightBlock"](Object.assign({block:Q.el},Q))})}function Y(G){B(G),i.push(G)}function q(G,Q){const le=G;i.forEach(function(Z){Z[le]&&Z[le](Q)})}function K(G){return qf("10.2.0","fixMarkup will be removed entirely in v11.0"),qf("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),v(G)}function H(G){return qf("10.7.0","highlightBlock will be removed entirely in v12.0"),qf("10.7.0","Please use highlightElement now."),E(G)}Object.assign(e,{highlight:f,highlightAuto:g,highlightAll:R,fixMarkup:K,highlightElement:E,highlightBlock:H,configure:w,initHighlighting:C,initHighlightingOnLoad:x,registerLanguage:M,unregisterLanguage:P,listLanguages:k,getLanguage:U,registerAliases:z,requireLanguage:$,autoDetection:D,inherit:nNe,addPlugin:Y,vuePlugin:l4n(e).VuePlugin}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=a4n;for(const G in P4)typeof P4[G]=="object"&&BZe(P4[G]);return Object.assign(e,P4),e.addPlugin(_),e.addPlugin(c4n),e.addPlugin(b),e};var f4n=d4n({}),p4n=f4n,WZe={exports:{}};(function(e){(function(){var n;n=e.exports=o,n.format=o,n.vsprintf=i,typeof console<"u"&&typeof console.log=="function"&&(n.printf=r);function r(){console.log(o.apply(null,arguments))}function i(a,s){return o.apply(null,[a].concat(s))}function o(a){for(var s=1,l=[].slice.call(arguments),c=0,u=a.length,d="",f,p=!1,h,g,v=!1,y,_=function(){return l[s++]},S=function(){for(var b="";/\d/.test(a[c]);)b+=a[c++],f=a[c];return b.length>0?parseInt(b):null};c<u;++c)if(f=a[c],p)switch(p=!1,f=="."?(v=!1,f=a[++c]):f=="0"&&a[c+1]=="."?(v=!0,c+=2,f=a[c]):v=!0,y=S(),f){case"b":d+=parseInt(_(),10).toString(2);break;case"c":h=_(),typeof h=="string"||h instanceof String?d+=h:d+=String.fromCharCode(parseInt(h,10));break;case"d":d+=parseInt(_(),10);break;case"f":g=String(parseFloat(_()).toFixed(y||6)),d+=v?g:g.replace(/^0/,"");break;case"j":d+=JSON.stringify(_());break;case"o":d+="0"+parseInt(_(),10).toString(8);break;case"s":d+=_();break;case"x":d+="0x"+parseInt(_(),10).toString(16);break;case"X":d+="0x"+parseInt(_(),10).toString(16).toUpperCase();break;default:d+=f;break}else f==="%"?p=!0:d+=f;return d}})()})(WZe);var h4n=WZe.exports,g4n=h4n,uS=dS(Error),m4n=uS;uS.eval=dS(EvalError);uS.range=dS(RangeError);uS.reference=dS(ReferenceError);uS.syntax=dS(SyntaxError);uS.type=dS(TypeError);uS.uri=dS(URIError);uS.create=dS;function dS(e){return n.displayName=e.displayName||e.name,n;function n(r){return r&&(r=g4n.apply(null,arguments)),new e(r)}}var am=p4n,L6=m4n;jI.highlight=YZe;jI.highlightAuto=y4n;jI.registerLanguage=_4n;jI.listLanguages=b4n;jI.registerAlias=S4n;p_.prototype.addText=w4n;p_.prototype.addKeyword=E4n;p_.prototype.addSublanguage=C4n;p_.prototype.openNode=x4n;p_.prototype.closeNode=T4n;p_.prototype.closeAllNodes=qZe;p_.prototype.finalize=qZe;p_.prototype.toHTML=O4n;var v4n="hljs-";function YZe(e,n,r){var i=am.configure({}),o=r||{},a=o.prefix,s;if(typeof e!="string")throw L6("Expected `string` for name, got `%s`",e);if(!am.getLanguage(e))throw L6("Unknown language: `%s` is not registered",e);if(typeof n!="string")throw L6("Expected `string` for value, got `%s`",n);if(a==null&&(a=v4n),am.configure({__emitter:p_,classPrefix:a}),s=am.highlight(n,{language:e,ignoreIllegals:!0}),am.configure(i||{}),s.errorRaised)throw s.errorRaised;return{relevance:s.relevance,language:s.language,value:s.emitter.rootNode.children}}function y4n(e,n){var r=n||{},i=r.subset||am.listLanguages();r.prefix;var o=i.length,a=-1,s,l,c,u;if(typeof e!="string")throw L6("Expected `string` for value, got `%s`",e);for(l={relevance:0,language:null,value:[]},s={relevance:0,language:null,value:[]};++a<o;)u=i[a],am.getLanguage(u)&&(c=YZe(u,e,n),c.language=u,c.relevance>l.relevance&&(l=c),c.relevance>s.relevance&&(l=s,s=c));return l.language&&(s.secondBest=l),s}function _4n(e,n){am.registerLanguage(e,n)}function b4n(){return am.listLanguages()}function S4n(e,n){var r=e,i;n&&(r={},r[e]=n);for(i in r)am.registerAliases(r[i],{languageName:i})}function p_(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function E4n(e,n){this.openNode(n),this.addText(e),this.closeNode()}function C4n(e,n){var r=this.stack,i=r[r.length-1],o=e.rootNode.children,a=n?{type:"element",tagName:"span",properties:{className:[n]},children:o}:o;i.children=i.children.concat(a)}function w4n(e){var n=this.stack,r,i;e!==""&&(r=n[n.length-1],i=r.children[r.children.length-1],i&&i.type==="text"?i.value+=e:r.children.push({type:"text",value:e}))}function x4n(e){var n=this.stack,r=this.options.classPrefix+e,i=n[n.length-1],o={type:"element",tagName:"span",properties:{className:[r]},children:[]};i.children.push(o),n.push(o)}function T4n(){this.stack.pop()}function O4n(){return""}function qZe(){}var OK,iNe;function R4n(){if(iNe)return OK;iNe=1;function e(n){var r="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",i="далее ",o="возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",a=i+o,s="загрузитьизфайла ",l="вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",c=s+l,u="разделительстраниц разделительстрок символтабуляции ",d="ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ",f="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 установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища ",p="wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",h=u+d+f+p,g="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ",v="автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы ",y="виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента ",_="авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных ",S="использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц ",b="отображениевремениэлементовпланировщика ",E="типфайлаформатированногодокумента ",w="обходрезультатазапроса типзаписизапроса ",C="видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ",x="доступкфайлу режимдиалогавыборафайла режимоткрытияфайла ",T="типизмеренияпостроителязапроса ",R="видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений ",O="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 ",M="видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных ",P="важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения ",k="режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации ",$="расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии ",U="кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip ",z="звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ",D="направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса ",B="httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений ",Y="важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",q=g+v+y+_+S+b+E+w+C+x+T+R+O+M+P+k+$+U+z+D+B+Y,K="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 шрифт элементрезультатакомпоновкиданных ",H="comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",G=K+H,Q="null истина ложь неопределено",le=n.inherit(n.NUMBER_MODE),Z={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},j={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},F=n.inherit(n.C_LINE_COMMENT_MODE),te={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:r,"meta-keyword":a+c},contains:[F]},oe={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},de={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:r,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:r,keyword:"знач",literal:Q},contains:[le,Z,j]},F]},n.inherit(n.TITLE_MODE,{begin:r})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:r,keyword:a,built_in:h,class:q,type:G,literal:Q},contains:[te,de,F,oe,le,Z,j]}}return OK=e,OK}var RK,oNe;function I4n(){if(oNe)return RK;oNe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o={ruleDeclaration:/^[a-zA-Z][a-zA-Z0-9-]*/,unexpectedChars:/[!@#$^&',?+~`|:]/},a=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],s=i.COMMENT(/;/,/$/),l={className:"symbol",begin:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+){0,1}/},c={className:"symbol",begin:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+){0,1}/},u={className:"symbol",begin:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+){0,1}/},d={className:"symbol",begin:/%[si]/},f={className:"attribute",begin:n(o.ruleDeclaration,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:o.unexpectedChars,keywords:a,contains:[f,s,l,c,u,d,i.QUOTE_STRING_MODE,i.NUMBER_MODE]}}return RK=r,RK}var IK,aNe;function N4n(){if(aNe)return IK;aNe=1;function e(o){return o?typeof o=="string"?o:o.source:null}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=["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:n(/"/,r(...a)),end:/"/,keywords:a,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 IK=i,IK}var NK,sNe;function M4n(){if(sNe)return NK;sNe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o=/[a-zA-Z_$][a-zA-Z0-9_$]*/,a=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,s={className:"rest_arg",begin:/[.]{3}/,end:o,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:[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,i.C_NUMBER_MODE,{className:"class",beginKeywords:"package",end:/\{/,contains:[i.TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},i.TITLE_MODE]},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{"meta-keyword":"import include"}},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[i.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,contains:[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,s]},{begin:n(/:\s*/,a)}]},i.METHOD_GUARD],illegal:/#/}}return NK=r,NK}var MK,lNe;function P4n(){if(lNe)return MK;lNe=1;function e(n){const r="\\d(_|\\d)*",i="[eE][-+]?"+r,o=r+"(\\."+r+")?("+i+")?",a="\\w+",l="\\b("+(r+"#"+a+"(\\."+a+")?#("+i+")?")+"|"+o+")",c="[A-Za-z](_?[A-Za-z0-9.])*",u=`[]\\{\\}%#'"`,d=n.COMMENT("--","$"),f={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:u,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:c,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:[d,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:l,relevance:0},{className:"symbol",begin:"'"+c},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:u},{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:[d,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:u},f,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:u}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:u},f]}}return MK=e,MK}var PK,cNe;function A4n(){if(cNe)return PK;cNe=1;function e(n){var r={className:"built_in",begin:"\\b(void|bool|int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|string|ref|array|double|float|auto|dictionary)"},i={className:"symbol",begin:"[a-zA-Z0-9_]+@"},o={className:"keyword",begin:"<",end:">",contains:[r,i]};return r.contains=[o],i.contains=[o],{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:[n.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE],relevance:0},n.C_LINE_COMMENT_MODE,n.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_]+"}]}]}]},r,i,{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 PK=e,PK}var AK,uNe;function D4n(){if(uNe)return AK;uNe=1;function e(n){const r={className:"number",begin:/[$%]\d+/},i={className:"number",begin:/\d+/},o={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},a={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[n.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[o,a,n.inherit(n.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",r]},o,i,n.QUOTE_STRING_MODE]}}],illegal:/\S/}}return AK=e,AK}var DK,dNe;function k4n(){if(dNe)return DK;dNe=1;function e(o){return o?typeof o=="string"?o:o.source:null}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=o.inherit(o.QUOTE_STRING_MODE,{illegal:null}),s={className:"params",begin:/\(/,end:/\)/,contains:["self",o.C_NUMBER_MODE,a]},l=o.COMMENT(/--/,/$/),c=o.COMMENT(/\(\*/,/\*\)/,{contains:["self",l]}),u=[l,c,o.HASH_COMMENT_MODE],d=[/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/],f=[/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:[a,o.C_NUMBER_MODE,{className:"built_in",begin:n(/\b/,r(...f),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:n(/\b/,r(...d),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[o.UNDERSCORE_TITLE_MODE,s]},...u],illegal:/\/\/|->|=>|\[\[/}}return DK=i,DK}var kK,fNe;function L4n(){if(fNe)return kK;fNe=1;function e(n){const r="[A-Za-z_][0-9A-Za-z_]*",i={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 "},o={className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},a={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:n.C_NUMBER_RE}],relevance:0},s={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},l={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,s]};s.contains=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,l,a,n.REGEXP_MODE];const c=s.contains.concat([n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",keywords:i,contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,l,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,o,a,{begin:/[{,]\s*/,relevance:0,contains:[{begin:r+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:r,relevance:0}]}]},{begin:"("+n.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+r+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:c}]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[n.inherit(n.TITLE_MODE,{begin:r}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:c}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return kK=e,kK}var LK,pNe;function $4n(){if(pNe)return LK;pNe=1;function e(s){return s?typeof s=="string"?s:s.source:null}function n(s){return i("(?=",s,")")}function r(s){return i("(",s,")?")}function i(...s){return s.map(c=>e(c)).join("")}function o(s){const l=s.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),c="decltype\\(auto\\)",u="[a-zA-Z_]\\w*::",f="("+c+"|"+r(u)+"[a-zA-Z_]\\w*"+r("<[^<>]+>")+")",p={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},g={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[s.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:"."},s.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},v={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},y={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},s.inherit(g,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},l,s.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:r(u)+s.IDENT_RE,relevance:0},S=r(u)+s.IDENT_RE+"\\s*\\(",E={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"},w={className:"function.dispatch",relevance:0,keywords:E,begin:i(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,s.IDENT_RE,n(/\s*\(/))},C=[w,y,p,l,s.C_BLOCK_COMMENT_MODE,v,g],x={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:E,contains:C.concat([{begin:/\(/,end:/\)/,keywords:E,contains:C.concat(["self"]),relevance:0}]),relevance:0},T={className:"function",begin:"("+f+"[\\*&\\s]+)+"+S,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:E,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:c,keywords:E,relevance:0},{begin:S,returnBegin:!0,contains:[_],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[g,v]},{className:"params",begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:[l,s.C_BLOCK_COMMENT_MODE,g,v,p,{begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:["self",l,s.C_BLOCK_COMMENT_MODE,g,v,p]}]},p,l,s.C_BLOCK_COMMENT_MODE,y]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:E,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(x,T,w,C,[y,{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:E,contains:["self",p]},{begin:s.IDENT_RE+"::",keywords:E},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},s.TITLE_MODE]}]),exports:{preprocessor:y,strings:g,keywords:E}}}function a(s){const l={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"},c=o(s),u=c.keywords;return u.keyword+=" "+l.keyword,u.literal+=" "+l.literal,u.built_in+=" "+l.built_in,u._+=" "+l._,c.name="Arduino",c.aliases=["ino"],c.supersetOf="cpp",c}return LK=a,LK}var $K,hNe;function F4n(){if(hNe)return $K;hNe=1;function e(n){const r={variants:[n.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),n.COMMENT("[;@]","$",{relevance:0}),n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+n.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)"},r,n.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 $K=e,$K}var FK,gNe;function B4n(){if(gNe)return FK;gNe=1;function e(s){return s?typeof s=="string"?s:s.source:null}function n(s){return i("(?=",s,")")}function r(s){return i("(",s,")?")}function i(...s){return s.map(c=>e(c)).join("")}function o(...s){return"("+s.map(c=>e(c)).join("|")+")"}function a(s){const l=i(/[A-Z_]/,r(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),c=/[A-Za-z0-9._:-]+/,u={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},d={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},f=s.inherit(d,{begin:/\(/,end:/\)/}),p=s.inherit(s.APOS_STRING_MODE,{className:"meta-string"}),h=s.inherit(s.QUOTE_STRING_MODE,{className:"meta-string"}),g={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:c,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[u]},{begin:/'/,end:/'/,contains:[u]},{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:[d,h,p,f,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[d,f,h,p]}]}]},s.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},u,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[g],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[g],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:i(/</,n(i(l,o(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:l,relevance:0,starts:g}]},{className:"tag",begin:i(/<\//,n(i(l,/>/))),contains:[{className:"name",begin:l,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return FK=a,FK}var BK,mNe;function j4n(){if(mNe)return BK;mNe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o={begin:"^'{3,}[ \\t]*$",relevance:10},a=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],s=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:n(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],l=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:n(/__/,/((_(?!_)|\\[^\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}],c={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},u={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[i.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),i.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},u,c,...a,...s,...l,{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},o,{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 BK=r,BK}var jK,vNe;function U4n(){if(vNe)return jK;vNe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o="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",a="get set args call";return{name:"AspectJ",keywords:o,illegal:/<\/|#/,contains:[i.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},i.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:o+" "+a,excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},i.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:n(i.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[i.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:o,illegal:/["\[\]]/,contains:[{begin:n(i.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:o+" "+a,relevance:0},i.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:o,excludeEnd:!0,contains:[{begin:n(i.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[i.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:o,contains:[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,i.C_NUMBER_MODE,i.C_BLOCK_COMMENT_MODE]},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]},i.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return jK=r,jK}var UK,yNe;function H4n(){if(yNe)return UK;yNe=1;function e(n){const r={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:[r,n.inherit(n.QUOTE_STRING_MODE,{contains:[r]}),n.COMMENT(";","$",{relevance:0}),n.C_BLOCK_COMMENT_MODE,{className:"number",begin:n.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 UK=e,UK}var HK,_Ne;function z4n(){if(_Ne)return HK;_Ne=1;function e(n){const r="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",i=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],o="True False And Null Not Or Default",a="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",s={variants:[n.COMMENT(";","$",{relevance:0}),n.COMMENT("#cs","#ce"),n.COMMENT("#comments-start","#comments-end")]},l={begin:"\\$[A-z0-9_]+"},c={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},u={variants:[n.BINARY_NUMBER_MODE,n.C_NUMBER_MODE]},d={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":i},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{"meta-keyword":"include"},end:"$",contains:[c,{className:"meta-string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},c,s]},f={className:"symbol",begin:"@[A-z0-9_]+"},p={className:"function",beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[n.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[l,c,u]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:r,built_in:a,literal:o},contains:[s,l,c,u,d,f,p]}}return HK=e,HK}var zK,bNe;function V4n(){if(bNe)return zK;bNe=1;function e(n){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+n.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:[n.C_BLOCK_COMMENT_MODE,n.COMMENT(";","$",{relevance:0}),n.C_NUMBER_MODE,n.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},n.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 zK=e,zK}var VK,SNe;function G4n(){if(SNe)return VK;SNe=1;function e(n){const r={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",o={className:"string",contains:[n.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:/"/},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:i},contains:[r,o,n.REGEXP_MODE,n.HASH_COMMENT_MODE,n.NUMBER_MODE]}}return VK=e,VK}var GK,ENe;function W4n(){if(ENe)return GK;ENe=1;function e(n){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:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:":",contains:[{beginKeywords:"extends implements"},n.UNDERSCORE_TITLE_MODE]}]}}return GK=e,GK}var WK,CNe;function Y4n(){if(CNe)return WK;CNe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o={},a={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[o]}]};Object.assign(o,{className:"variable",variants:[{begin:n(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},a]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[i.BACKSLASH_ESCAPE]},l={begin:/<<-?\s*(?=\w+)/,starts:{contains:[i.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/,contains:[i.BACKSLASH_ESCAPE,o,s]};s.contains.push(c);const u={className:"",begin:/\\"/},d={className:"string",begin:/'/,end:/'/},f={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},i.NUMBER_MODE,o]},p=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],h=i.SHEBANG({binary:`(${p.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[i.inherit(i.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:[h,i.SHEBANG(),g,f,i.HASH_COMMENT_MODE,l,c,u,d,o]}}return WK=r,WK}var YK,wNe;function q4n(){if(wNe)return YK;wNe=1;function e(n){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:[n.QUOTE_STRING_MODE,n.COMMENT("REM","$",{relevance:10}),n.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 YK=e,YK}var qK,xNe;function K4n(){if(xNe)return qK;xNe=1;function e(n){return{name:"BackusNaur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]}]}}return qK=e,qK}var KK,TNe;function X4n(){if(TNe)return KK;TNe=1;function e(n){const r={className:"literal",begin:/[+-]/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[n.COMMENT(`[^\\[\\]\\.,\\+\\-<> \r
]`,`[\\[\\]\\.,\\+\\-<> \r
]`,{returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?:\+\+|--)/,contains:[r]},r]}}return KK=e,KK}var XK,ONe;function Q4n(){if(ONe)return XK;ONe=1;function e(s){return s?typeof s=="string"?s:s.source:null}function n(s){return i("(?=",s,")")}function r(s){return i("(",s,")?")}function i(...s){return s.map(c=>e(c)).join("")}function o(s){const l=s.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),c="decltype\\(auto\\)",u="[a-zA-Z_]\\w*::",f="("+c+"|"+r(u)+"[a-zA-Z_]\\w*"+r("<[^<>]+>")+")",p={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},g={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[s.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:"."},s.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},v={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},y={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},s.inherit(g,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/},l,s.C_BLOCK_COMMENT_MODE]},_={className:"title",begin:r(u)+s.IDENT_RE,relevance:0},S=r(u)+s.IDENT_RE+"\\s*\\(",E={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"},w={className:"function.dispatch",relevance:0,keywords:E,begin:i(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,s.IDENT_RE,n(/\s*\(/))},C=[w,y,p,l,s.C_BLOCK_COMMENT_MODE,v,g],x={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:E,contains:C.concat([{begin:/\(/,end:/\)/,keywords:E,contains:C.concat(["self"]),relevance:0}]),relevance:0},T={className:"function",begin:"("+f+"[\\*&\\s]+)+"+S,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:E,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:c,keywords:E,relevance:0},{begin:S,returnBegin:!0,contains:[_],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[g,v]},{className:"params",begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:[l,s.C_BLOCK_COMMENT_MODE,g,v,p,{begin:/\(/,end:/\)/,keywords:E,relevance:0,contains:["self",l,s.C_BLOCK_COMMENT_MODE,g,v,p]}]},p,l,s.C_BLOCK_COMMENT_MODE,y]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:E,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(x,T,w,C,[y,{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:E,contains:["self",p]},{begin:s.IDENT_RE+"::",keywords:E},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},s.TITLE_MODE]}]),exports:{preprocessor:y,strings:g,keywords:E}}}function a(s){const l=o(s),c=["c","h"],u=["cc","c++","h++","hpp","hh","hxx","cxx"];return l.disableAutodetect=!0,l.aliases=[],s.getLanguage("c")||l.aliases.push(...c),s.getLanguage("cpp")||l.aliases.push(...u),l}return XK=a,XK}var QK,RNe;function Z4n(){if(RNe)return QK;RNe=1;function e(o){return o?typeof o=="string"?o:o.source:null}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*\\(",_={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"},S=[g,d,a,o.C_BLOCK_COMMENT_MODE,h,p],b={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:_,contains:S.concat([{begin:/\(/,end:/\)/,keywords:_,contains:S.concat(["self"]),relevance:0}]),relevance:0},E={className:"function",begin:"("+u+"[\\*&\\s]+)+"+y,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:_,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:s,keywords:_,relevance:0},{begin:y,returnBegin:!0,contains:[v],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[a,o.C_BLOCK_COMMENT_MODE,p,h,d,{begin:/\(/,end:/\)/,keywords:_,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:["h"],keywords:_,disableAutodetect:!0,illegal:"</",contains:[].concat(b,E,S,[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:_,contains:["self",d]},{begin:o.IDENT_RE+"::",keywords:_},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},o.TITLE_MODE]}]),exports:{preprocessor:g,strings:p,keywords:_}}}return QK=i,QK}var ZK,INe;function J4n(){if(INe)return ZK;INe=1;function e(n){const r="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",i="false true",o=[n.C_LINE_COMMENT_MODE,n.COMMENT(/\{/,/\}/,{relevance:0}),n.COMMENT(/\(\*/,/\*\)/,{relevance:10})],a={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"string",begin:/(#\d+)+/},l={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},c={className:"string",begin:'"',end:'"'},u={className:"function",beginKeywords:"procedure",end:/[:;]/,keywords:"procedure|10",contains:[n.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:[a,s]}].concat(o)},d={className:"class",begin:"OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)",returnBegin:!0,contains:[n.TITLE_MODE,u]};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:r,literal:i},illegal:/\/\*/,contains:[a,s,l,c,n.NUMBER_MODE,d,u]}}return ZK=e,ZK}var JK,NNe;function e5n(){if(NNe)return JK;NNe=1;function e(n){return{name:"Capn 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:[n.QUOTE_STRING_MODE,n.NUMBER_MODE,n.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:[n.inherit(n.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"class",beginKeywords:"interface",end:/\{/,illegal:/\n/,contains:[n.inherit(n.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]}]}}return JK=e,JK}var eX,MNe;function t5n(){if(MNe)return eX;MNe=1;function e(n){const r="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",i="shared abstract formal default actual variable late native deprecated final sealed annotation suppressWarnings small",o="doc by license see throws tagged",a={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:r,relevance:10},s=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[a]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return a.contains=s,{name:"Ceylon",keywords:{keyword:r+" "+i,meta:o},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[n.C_LINE_COMMENT_MODE,n.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(s)}}return eX=e,eX}var tX,PNe;function n5n(){if(PNe)return tX;PNe=1;function e(n){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:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return tX=e,tX}var nX,ANe;function r5n(){if(ANe)return nX;ANe=1;function e(n){const r="a-zA-Z_\\-!.?+*=<>&#'",i="["+r+"]["+r+"0-9/;:]*",o="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",a={$pattern:i,"builtin-name":o+" 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"},s="[-+]?\\d+(\\.\\d+)?",l={begin:i,relevance:0},c={className:"number",begin:s,relevance:0},u=n.inherit(n.QUOTE_STRING_MODE,{illegal:null}),d=n.COMMENT(";","$",{relevance:0}),f={className:"literal",begin:/\b(true|false|nil)\b/},p={begin:"[\\[\\{]",end:"[\\]\\}]"},h={className:"comment",begin:"\\^"+i},g=n.COMMENT("\\^\\{","\\}"),v={className:"symbol",begin:"[:]{1,2}"+i},y={begin:"\\(",end:"\\)"},_={endsWithParent:!0,relevance:0},S={keywords:a,className:"name",begin:i,relevance:0,starts:_},b=[y,u,h,g,d,v,p,c,f,l],E={beginKeywords:o,lexemes:i,end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:i,relevance:0,excludeEnd:!0,endsParent:!0}].concat(b)};return y.contains=[n.COMMENT("comment",""),E,S,_],_.contains=b,p.contains=b,g.contains=[p],{name:"Clojure",aliases:["clj"],illegal:/\S/,contains:[y,u,h,g,d,v,p,c,f]}}return nX=e,nX}var rX,DNe;function i5n(){if(DNe)return rX;DNe=1;function e(n){return{name:"Clojure REPL",contains:[{className:"meta",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return rX=e,rX}var iX,kNe;function o5n(){if(kNe)return iX;kNe=1;function e(n){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:/\}/},n.HASH_COMMENT_MODE,n.QUOTE_STRING_MODE,n.NUMBER_MODE]}}return iX=e,iX}var oX,LNe;function a5n(){if(LNe)return oX;LNe=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"],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(c){const u=["npm","print"],d=["yes","no","on","off"],f=["then","unless","until","loop","by","when","and","or","is","isnt","not"],p=["var","const","let","function","static"],h=w=>C=>!w.includes(C),g={keyword:e.concat(f).filter(h(p)),literal:n.concat(d),built_in:s.concat(u)},v="[A-Za-z$_][0-9A-Za-z$_]*",y={className:"subst",begin:/#\{/,end:/\}/,keywords:g},_=[c.BINARY_NUMBER_MODE,c.inherit(c.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[c.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[c.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[c.BACKSLASH_ESCAPE,y]},{begin:/"/,end:/"/,contains:[c.BACKSLASH_ESCAPE,y]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[y,c.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+v},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];y.contains=_;const S=c.inherit(c.TITLE_MODE,{begin:v}),b="(\\(.*\\)\\s*)?\\B[-=]>",E={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:g,contains:["self"].concat(_)}]};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:g,illegal:/\/\*/,contains:_.concat([c.COMMENT("###","###"),c.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+v+"\\s*=\\s*"+b,end:"[-=]>",returnBegin:!0,contains:[S,E]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:b,end:"[-=]>",returnBegin:!0,contains:[E]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[S]},S]},{begin:v+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return oX=l,oX}var aX,$Ne;function s5n(){if($Ne)return aX;$Ne=1;function e(n){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:[n.QUOTE_STRING_MODE,n.COMMENT("\\(\\*","\\*\\)"),n.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return aX=e,aX}var sX,FNe;function l5n(){if(FNe)return sX;FNe=1;function e(n){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}]}]},n.C_LINE_COMMENT_MODE,n.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 sX=e,sX}var lX,BNe;function c5n(){if(BNe)return lX;BNe=1;function e(a){return a?typeof a=="string"?a:a.source:null}function n(a){return i("(?=",a,")")}function r(a){return i("(",a,")?")}function i(...a){return a.map(l=>e(l)).join("")}function o(a){const s=a.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),l="decltype\\(auto\\)",c="[a-zA-Z_]\\w*::",d="("+l+"|"+r(c)+"[a-zA-Z_]\\w*"+r("<[^<>]+>")+")",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:r(c)+a.IDENT_RE,relevance:0},_=r(c)+a.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"},E={className:"function.dispatch",relevance:0,keywords:b,begin:i(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!while)/,a.IDENT_RE,n(/\s*\(/))},w=[E,v,f,s,a.C_BLOCK_COMMENT_MODE,g,h],C={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:w.concat([{begin:/\(/,end:/\)/,keywords:b,contains:w.concat(["self"]),relevance:0}]),relevance:0},x={className:"function",begin:"("+d+"[\\*&\\s]+)+"+_,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:l,keywords:b,relevance:0},{begin:_,returnBegin:!0,contains:[y],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,g]},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[s,a.C_BLOCK_COMMENT_MODE,h,g,f,{begin:/\(/,end:/\)/,keywords:b,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:b,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(C,x,E,w,[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:b,contains:["self",f]},{begin:a.IDENT_RE+"::",keywords:b},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},a.TITLE_MODE]}]),exports:{preprocessor:v,strings:h,keywords:b}}}return lX=o,lX}var cX,jNe;function u5n(){if(jNe)return cX;jNe=1;function e(n){const r="primitive rsc_template",i="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:[n.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:r,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+i.split(" ").join("|")+")\\s+",keywords:i,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},n.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 cX=e,cX}var uX,UNe;function d5n(){if(UNe)return uX;UNe=1;function e(n){const r="(_?[ui](8|16|32|64|128))?",i="(_?f(32|64))?",o="[a-zA-Z_]\\w*[!?=]?",a="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",s="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",l={$pattern:o,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"},c={className:"subst",begin:/#\{/,end:/\}/,keywords:l},u={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:l};function d(_,S){const b=[{begin:_,end:S}];return b[0].contains=b,b}const f={className:"string",contains:[n.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:d("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},p={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%q<",end:">",contains:d("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},h={begin:"(?!%\\})("+n.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:[n.BACKSLASH_ESCAPE,c],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},g={className:"regexp",contains:[n.BACKSLASH_ESCAPE,c],variants:[{begin:"%r\\(",end:"\\)",contains:d("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:d("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:d(/\{/,/\}/)},{begin:"%r<",end:">",contains:d("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},v={className:"meta",begin:"@\\[",end:"\\]",contains:[n.inherit(n.QUOTE_STRING_MODE,{className:"meta-string"})]},y=[u,f,p,g,h,v,n.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[n.HASH_COMMENT_MODE,n.inherit(n.TITLE_MODE,{begin:s}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[n.HASH_COMMENT_MODE,n.inherit(n.TITLE_MODE,{begin:s})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[n.HASH_COMMENT_MODE,n.inherit(n.TITLE_MODE,{begin:s})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[n.inherit(n.TITLE_MODE,{begin:a,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[n.inherit(n.TITLE_MODE,{begin:a,endsParent:!0})],relevance:2},{className:"symbol",begin:n.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[f,{begin:a}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+i+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+r}],relevance:0}];return c.contains=y,u.contains=y.slice(1),{name:"Crystal",aliases:["cr"],keywords:l,contains:y}}return uX=e,uX}var dX,HNe;function f5n(){if(HNe)return dX;HNe=1;function e(n){const r=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],i=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],o=["default","false","null","true"],a=["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"],s=["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"],l={keyword:a.concat(s),built_in:r,literal:o},c=n.inherit(n.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={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},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},f=n.inherit(d,{illegal:/\n/}),p={className:"subst",begin:/\{/,end:/\}/,keywords:l},h=n.inherit(p,{illegal:/\n/}),g={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},n.BACKSLASH_ESCAPE,h]},v={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]},y=n.inherit(v,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]});p.contains=[v,g,d,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,u,n.C_BLOCK_COMMENT_MODE],h.contains=[y,g,f,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,u,n.inherit(n.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const _={variants:[v,g,d,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},S={begin:"<",end:">",contains:[{beginKeywords:"in out"},c]},b=n.IDENT_RE+"(<"+n.IDENT_RE+"(\\s*,\\s*"+n.IDENT_RE+")*>)?(\\[\\])?",E={begin:"@"+n.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:l,illegal:/::/,contains:[n.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},_,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},c,S,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,S,n.C_LINE_COMMENT_MODE,n.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+)+"+n.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:l,contains:[{beginKeywords:i.join(" "),relevance:0},{begin:n.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0,contains:[n.TITLE_MODE,S],relevance:0},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,relevance:0,contains:[_,u,n.C_BLOCK_COMMENT_MODE]},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},E]}}return dX=e,dX}var fX,zNe;function p5n(){if(zNe)return fX;zNe=1;function e(n){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 fX=e,fX}var pX,VNe;function h5n(){if(VNe)return pX;VNe=1;const e=d=>({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:[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE]}}),n=["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"],r=["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"],i=["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"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],a=["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 s(d){return d?typeof d=="string"?d:d.source:null}function l(d){return c("(?=",d,")")}function c(...d){return d.map(p=>s(p)).join("")}function u(d){const f=e(d),p={className:"built_in",begin:/[\w-]+(?=\()/},h={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},g="and or not only",v=/@-?\w[\w]*(-\w+)*/,y="[a-zA-Z-][a-zA-Z0-9_-]*",_=[d.APOS_STRING_MODE,d.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[d.C_BLOCK_COMMENT_MODE,h,d.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+y,relevance:0},f.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+i.join("|")+")"},{begin:"::("+o.join("|")+")"}]},{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:":",end:"[;}]",contains:[f.HEXCOLOR,f.IMPORTANT,d.CSS_NUMBER_MODE,..._,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},p]},{begin:l(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:v},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:g,attribute:r.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},..._,d.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+n.join("|")+")\\b"}]}}return pX=u,pX}var hX,GNe;function g5n(){if(GNe)return hX;GNe=1;function e(n){const r={$pattern:n.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"},i="(0|[1-9][\\d_]*)",o="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",a="0[bB][01_]+",s="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",l="0[xX]"+s,c="([eE][+-]?"+o+")",u="("+o+"(\\.\\d*|"+c+")|\\d+\\."+o+"|\\."+i+c+"?)",d="(0[xX]("+s+"\\."+s+"|\\.?"+s+")[pP][+-]?"+o+")",f="("+i+"|"+a+"|"+l+")",p="("+d+"|"+u+")",h=`\\\\(['"\\?\\\\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,};`,g={className:"number",begin:"\\b"+f+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},v={className:"number",begin:"\\b("+p+"([fF]|L|i|[fF]i|Li)?|"+f+"(i|[fF]i|Li))",relevance:0},y={className:"string",begin:"'("+h+"|.)",end:"'",illegal:"."},S={className:"string",begin:'"',contains:[{begin:h,relevance:0}],end:'"[cwd]?'},b={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},E={className:"string",begin:"`",end:"`[cwd]?"},w={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},C={className:"string",begin:'q"\\{',end:'\\}"'},x={className:"meta",begin:"^#!",end:"$",relevance:5},T={className:"meta",begin:"#(line)",end:"$",relevance:5},R={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},O=n.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:r,contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,O,w,S,b,E,C,v,g,y,x,T,R]}}return hX=e,hX}var gX,WNe;function m5n(){if(WNe)return gX;WNe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},a={begin:"^[-\\*]{3,}",end:"$"},s={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}]},l={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},c={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},d={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n(/\[.+?\]\(/,/[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}]},f={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},p={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]};f.contains.push(p),p.contains.push(f);let h=[o,d];return f.contains=f.contains.concat(h),p.contains=p.contains.concat(h),h=h.concat(f,p),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:h},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:h}]}]},o,l,f,p,{className:"quote",begin:"^>\\s+",contains:h,end:"$"},s,a,d,c]}}return gX=r,gX}var mX,YNe;function v5n(){if(YNe)return mX;YNe=1;function e(n){const r={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},i={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},o={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[n.BACKSLASH_ESCAPE,r,i]},{begin:'"""',end:'"""',contains:[n.BACKSLASH_ESCAPE,r,i]},{begin:"'",end:"'",illegal:"\\n",contains:[n.BACKSLASH_ESCAPE,r,i]},{begin:'"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE,r,i]}]};i.contains=[n.C_NUMBER_MODE,o];const a=["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"],s=a.map(c=>`${c}?`);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:a.concat(s).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[o,n.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),n.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},n.UNDERSCORE_TITLE_MODE]},n.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return mX=e,mX}var vX,qNe;function y5n(){if(qNe)return vX;qNe=1;function e(n){const r="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 ",i=[n.C_LINE_COMMENT_MODE,n.COMMENT(/\{/,/\}/,{relevance:0}),n.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},a={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},s={className:"number",relevance:0,variants:[{begin:"\\$[0-9A-Fa-f]+"},{begin:"&[0-7]+"},{begin:"%[01]+"}]},l={className:"string",begin:/(#\d+)+/},c={begin:n.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[n.TITLE_MODE]},u={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[n.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:[a,l,o].concat(i)},o].concat(i)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal","freepascal","lazarus","lpr","lfm"],case_insensitive:!0,keywords:r,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[a,l,n.NUMBER_MODE,s,c,u,o].concat(i)}}return vX=e,vX}var yX,KNe;function _5n(){if(KNe)return yX;KNe=1;function e(n){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 yX=e,yX}var _X,XNe;function b5n(){if(XNe)return _X;XNe=1;function e(n){const r={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:[n.QUOTE_STRING_MODE,n.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[n.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),n.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:[r],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[r]}]}}return _X=e,_X}var bX,QNe;function S5n(){if(QNe)return bX;QNe=1;function e(n){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:[n.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"},n.inherit(n.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return bX=e,bX}var SX,ZNe;function E5n(){if(ZNe)return SX;ZNe=1;function e(n){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:"from maintainer expose env arg user onbuild stopsignal",contains:[n.HASH_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}return SX=e,SX}var EX,JNe;function C5n(){if(JNe)return EX;JNe=1;function e(n){const r=n.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:[n.inherit(n.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),r]},{className:"number",begin:"\\b\\d+",relevance:0},r]}}return EX=e,EX}var CX,eMe;function w5n(){if(eMe)return CX;eMe=1;function e(n){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},n.HASH_COMMENT_MODE]}}return CX=e,CX}var wX,tMe;function x5n(){if(tMe)return wX;tMe=1;function e(n){const r={className:"string",variants:[n.inherit(n.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[n.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},i={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:n.C_NUMBER_RE}],relevance:0},o={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:[n.inherit(r,{className:"meta-string"}),{className:"meta-string",begin:"<",end:">",illegal:"\\n"}]},r,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},a={className:"variable",begin:/&[a-z\d_]*\b/},s={className:"meta-keyword",begin:"/[a-z][a-z\\d-]*/"},l={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},c={className:"params",begin:"<",end:">",contains:[i,a]},u={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:[a,s,l,u,c,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,i,r]},a,s,l,u,c,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,i,r,o,{begin:n.IDENT_RE+"::",keywords:""}]}}return wX=e,wX}var xX,nMe;function T5n(){if(nMe)return xX;nMe=1;function e(n){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:[n.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}return xX=e,xX}var TX,rMe;function O5n(){if(rMe)return TX;rMe=1;function e(n){const r=n.COMMENT(/\(\*/,/\*\)/),i={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},a={begin:/=/,end:/[.;]/,contains:[r,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[r,i,a]}}return TX=e,TX}var OX,iMe;function R5n(){if(iMe)return OX;iMe=1;function e(n){const r="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",o={$pattern:r,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"},a={className:"subst",begin:/#\{/,end:/\}/,keywords:o},s={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},l=`[/|([{<"']`,c={className:"string",begin:"~[a-z](?="+l+")",contains:[{endsParent:!0,contains:[{contains:[n.BACKSLASH_ESCAPE,a],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}]}]}]},u={className:"string",begin:"~[A-Z](?="+l+")",contains:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}]},d={className:"string",contains:[n.BACKSLASH_ESCAPE,a],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:/"/}]},f={className:"function",beginKeywords:"def defp defmacro",end:/\B\b/,contains:[n.inherit(n.TITLE_MODE,{begin:r,endsParent:!0})]},p=n.inherit(f,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),h=[d,u,c,n.HASH_COMMENT_MODE,p,f,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[d,{begin:i}],relevance:0},{className:"symbol",begin:r+":(?!:)",relevance:0},s,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"},{begin:"->"},{begin:"("+n.RE_STARTERS_RE+")\\s*",contains:[n.HASH_COMMENT_MODE,{begin:/\/: (?=\d+\s*[,\]])/,relevance:0,contains:[s]},{className:"regexp",illegal:"\\n",contains:[n.BACKSLASH_ESCAPE,a],variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}],relevance:0}];return a.contains=h,{name:"Elixir",keywords:o,contains:h}}return OX=e,OX}var RX,oMe;function I5n(){if(oMe)return RX;oMe=1;function e(n){const r={variants:[n.COMMENT("--","$"),n.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},i={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},o={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},r]},a={begin:/\{/,end:/\}/,contains:o.contains},s={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:[o,r],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[o,r],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[i,o,a,r]},{beginKeywords:"infix infixl infixr",end:"$",contains:[n.C_NUMBER_MODE,r]},{begin:"port",end:"$",keywords:"port",contains:[r]},s,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE,i,n.inherit(n.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),r,{begin:"->|<-"}],illegal:/;/}}return RX=e,RX}var IX,aMe;function N5n(){if(aMe)return IX;aMe=1;function e(o){return o?typeof o=="string"?o:o.source:null}function n(o){return r("(?=",o,")")}function r(...o){return o.map(s=>e(s)).join("")}function i(o){const a="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",s={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"},l={className:"doctag",begin:"@[A-Za-z]+"},c={begin:"#<",end:">"},u=[o.COMMENT("#","$",{contains:[l]}),o.COMMENT("^=begin","^=end",{contains:[l],relevance:10}),o.COMMENT("^__END__","\\n$")],d={className:"subst",begin:/#\{/,end:/\}/,keywords:s},f={className:"string",contains:[o.BACKSLASH_ESCAPE,d],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:/<<[-~]?'?/},o.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[o.BACKSLASH_ESCAPE,d]})]}]},p="[1-9](_?[0-9])*|0",h="[0-9](_?[0-9])*",g={className:"number",relevance:0,variants:[{begin:`\\b(${p})(\\.(${h}))?([eE][+-]?(${h})|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"}]},v={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:s},y=[f,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[o.inherit(o.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|!)?"}),{begin:"<\\s*",contains:[{begin:"("+o.IDENT_RE+"::)?"+o.IDENT_RE,relevance:0}]}].concat(u)},{className:"function",begin:r(/def\s+/,n(a+"\\s*(\\(|;|$)")),relevance:0,keywords:"def",end:"$|;",contains:[o.inherit(o.TITLE_MODE,{begin:a}),v].concat(u)},{begin:o.IDENT_RE+"::"},{className:"symbol",begin:o.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[f,{begin:a}],relevance:0},g,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,relevance:0,keywords:s},{begin:"("+o.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[o.BACKSLASH_ESCAPE,d],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(c,u),relevance:0}].concat(c,u);d.contains=y,v.contains=y;const E=[{begin:/^\s*=>/,starts:{end:"$",contains:y}},{className:"meta",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+>"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",contains:y}}];return u.unshift(c),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:s,illegal:/\/\*/,contains:[o.SHEBANG({binary:"ruby"})].concat(E).concat(u).concat(y)}}return IX=i,IX}var NX,sMe;function M5n(){if(sMe)return NX;sMe=1;function e(n){return{name:"ERB",subLanguage:"xml",contains:[n.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return NX=e,NX}var MX,lMe;function P5n(){if(lMe)return MX;lMe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){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},i.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,{begin:n(/\?(::)?/,/([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 MX=r,MX}var PX,cMe;function A5n(){if(cMe)return PX;cMe=1;function e(n){const r="[a-z'][a-zA-Z0-9_']*",i="("+r+":"+r+"|"+r+")",o={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"},a=n.COMMENT("%","$"),s={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},l={begin:"fun\\s+"+r+"/\\d+"},c={begin:i+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:i,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},u={begin:/\{/,end:/\}/,relevance:0},d={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},f={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},p={begin:"#"+n.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+n.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},h={beginKeywords:"fun receive if try case",end:"end",keywords:o};h.contains=[a,l,n.inherit(n.APOS_STRING_MODE,{className:""}),h,c,n.QUOTE_STRING_MODE,s,u,d,f,p];const g=[a,l,h,c,n.QUOTE_STRING_MODE,s,u,d,f,p];c.contains[1].contains=g,u.contains=g,p.contains[1].contains=g;const v=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],y={className:"params",begin:"\\(",end:"\\)",contains:g};return{name:"Erlang",aliases:["erl"],keywords:o,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+r+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[y,n.inherit(n.TITLE_MODE,{begin:r})],starts:{end:";|\\.",keywords:o,contains:g}},a,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+n.IDENT_RE,keyword:v.map(_=>`${_}|1.5`).join(" ")},contains:[y]},s,n.QUOTE_STRING_MODE,p,d,f,u,{begin:/\.$/}]}}return PX=e,PX}var AX,uMe;function D5n(){if(uMe)return AX;uMe=1;function e(n){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},n.BACKSLASH_ESCAPE,n.QUOTE_STRING_MODE,{className:"number",begin:n.NUMBER_RE+"(%)?",relevance:0},n.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return AX=e,AX}var DX,dMe;function k5n(){if(dMe)return DX;dMe=1;function e(n){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 DX=e,DX}var kX,fMe;function L5n(){if(fMe)return kX;fMe=1;function e(n){const r={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},i={className:"string",variants:[{begin:'"',end:'"'}]},a={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:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,r,i,a,n.C_NUMBER_MODE]}}return kX=e,kX}var LX,pMe;function $5n(){if(pMe)return LX;pMe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o={className:"params",begin:"\\(",end:"\\)"},a={variants:[i.COMMENT("!","$",{relevance:0}),i.COMMENT("^C[ ]","$",{relevance:0}),i.COMMENT("^C$","$",{relevance:0})]},s=/(_[a-z_\d]+)?/,l=/([de][+-]?\d+)?/,c={className:"number",variants:[{begin:n(/\b\d+/,/\.(\d*)/,l,s)},{begin:n(/\b\d+/,l,s)},{begin:n(/\.\d+/,l,s)}],relevance:0},u={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[i.UNDERSCORE_TITLE_MODE,o]},d={className:"string",relevance:0,variants:[i.APOS_STRING_MODE,i.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:[d,u,{begin:/^C\s*=(?!=)/,relevance:0},a,c]}}return LX=r,LX}var $X,hMe;function F5n(){if(hMe)return $X;hMe=1;function e(n){const r={begin:"<",end:">",contains:[n.inherit(n.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:'"""'},n.COMMENT("\\(\\*(\\s)","\\*\\)",{contains:["self"]}),{className:"class",beginKeywords:"type",end:"\\(|=|$",excludeEnd:!0,contains:[n.UNDERSCORE_TITLE_MODE,r]},{className:"meta",begin:"\\[<",end:">\\]",relevance:10},{className:"symbol",begin:"\\B('[A-Za-z])\\b",contains:[n.BACKSLASH_ESCAPE]},n.C_LINE_COMMENT_MODE,n.inherit(n.QUOTE_STRING_MODE,{illegal:null}),n.C_NUMBER_MODE]}}return $X=e,$X}var FX,gMe;function B5n(){if(gMe)return FX;gMe=1;function e(o){return o?typeof o=="string"?o:o.source:null}function n(o){return r("(",o,")*")}function r(...o){return o.map(s=>e(s)).join("")}function i(o){const a={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"},s={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},l={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},c={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[o.BACKSLASH_ESCAPE]},u={begin:"/",end:"/",keywords:a,contains:[c,o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,o.QUOTE_STRING_MODE,o.APOS_STRING_MODE,o.C_NUMBER_MODE]},d=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,f={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[c,u,{className:"comment",begin:r(d,n(r(/[ ]+/,d))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:a,contains:[o.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"meta-keyword",begin:"^\\$[a-z0-9]+"}]},o.COMMENT("^\\*","$"),o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,o.QUOTE_STRING_MODE,o.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[o.COMMENT("^\\*","$"),o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,o.QUOTE_STRING_MODE,o.APOS_STRING_MODE,u,f]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[f]},o.COMMENT("^\\*","$"),o.C_LINE_COMMENT_MODE,o.C_BLOCK_COMMENT_MODE,o.QUOTE_STRING_MODE,o.APOS_STRING_MODE,o.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},s,l]},o.C_NUMBER_MODE,l]}}return FX=i,FX}var BX,mMe;function j5n(){if(mMe)return BX;mMe=1;function e(n){const r={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"},i=n.COMMENT("@","@"),o={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"}]},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,i]},a={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:n.UNDERSCORE_IDENT_RE,relevance:0}]},s=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},n.C_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE,i,a]}],l={className:"title",begin:n.UNDERSCORE_IDENT_RE,relevance:0},c=function(h,g,v){const y=n.inherit({className:"function",beginKeywords:h,end:g,excludeEnd:!0,contains:[].concat(s)},{});return y.contains.push(l),y.contains.push(n.C_NUMBER_MODE),y.contains.push(n.C_BLOCK_COMMENT_MODE),y.contains.push(i),y},u={className:"built_in",begin:"\\b("+r.built_in.split(" ").join("|")+")\\b"},d={className:"string",begin:'"',end:'"',contains:[n.BACKSLASH_ESCAPE],relevance:0},f={begin:n.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:r,relevance:0,contains:[{beginKeywords:r.keyword},u,{className:"built_in",begin:n.UNDERSCORE_IDENT_RE,relevance:0}]},p={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:r.built_in,literal:r.literal},contains:[n.C_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE,i,u,f,d,"self"]};return f.contains.push(p),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:r,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[n.C_NUMBER_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,i,d,o,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},c("proc keyword",";"),c("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[n.C_BLOCK_COMMENT_MODE,i,p]},{variants:[{begin:n.UNDERSCORE_IDENT_RE+"\\."+n.UNDERSCORE_IDENT_RE},{begin:n.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},f,a]}}return BX=e,BX}var jX,vMe;function U5n(){if(vMe)return jX;vMe=1;function e(n){const r="[A-Z_][A-Z0-9_.]*",i="%",o={$pattern:r,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},a={className:"meta",begin:"([O])([0-9]+)"},s=n.inherit(n.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+n.C_NUMBER_RE}),l=[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.COMMENT(/\(/,/\)/),s,n.inherit(n.APOS_STRING_MODE,{illegal:null}),n.inherit(n.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:[s],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:o,contains:[{className:"meta",begin:i},a].concat(l)}}return jX=e,jX}var UX,yMe;function H5n(){if(yMe)return UX;yMe=1;function e(n){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:">"},n.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},n.QUOTE_STRING_MODE]}}return UX=e,UX}var HX,_Me;function z5n(){if(_Me)return HX;_Me=1;function e(n){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:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return HX=e,HX}var zX,bMe;function V5n(){if(bMe)return zX;bMe=1;function e(n){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:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE]}}return zX=e,zX}var VX,SMe;function G5n(){if(SMe)return VX;SMe=1;function e(n){const r={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:r,illegal:"</",contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"string",variants:[n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:n.C_NUMBER_RE+"[i]",relevance:1},n.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[n.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:r,illegal:/["']/}]}]}}return VX=e,VX}var GX,EMe;function W5n(){if(EMe)return GX;EMe=1;function e(n){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:[n.HASH_COMMENT_MODE,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}return GX=e,GX}var WX,CMe;function Y5n(){if(CMe)return WX;CMe=1;function e(n){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:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.NUMBER_MODE,n.REGEXP_MODE]}}return WX=e,WX}var YX,wMe;function q5n(){if(wMe)return YX;wMe=1;function e(a){return a?typeof a=="string"?a:a.source:null}function n(a){return r("(?=",a,")")}function r(...a){return a.map(l=>e(l)).join("")}function i(a,s={}){return s.variants=a,s}function o(a){const s="[A-Za-z0-9_$]+",l=i([a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),c={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[a.BACKSLASH_ESCAPE]},u=i([a.BINARY_NUMBER_MODE,a.C_NUMBER_MODE]),d=i([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},a.APOS_STRING_MODE,a.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:[a.SHEBANG({binary:"groovy",relevance:10}),l,d,c,u,{className:"class",beginKeywords:"class interface trait enum",end:/\{/,illegal:":",contains:[{beginKeywords:"extends implements"},a.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:s+"[ ]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[l,d,c,u,"self"]},{className:"symbol",begin:"^[ ]*"+n(s+":"),excludeBegin:!0,end:s+":",relevance:0}],illegal:/#|<\//}}return YX=o,YX}var qX,xMe;function K5n(){if(xMe)return qX;xMe=1;function e(n){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},n.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+"},n.APOS_STRING_MODE,n.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},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,starts:{end:/\}/,subLanguage:"ruby"}}]}}return qX=e,qX}var KX,TMe;function X5n(){if(TMe)return KX;TMe=1;function e(s){return s?typeof s=="string"?s:s.source:null}function n(s){return i("(",s,")*")}function r(s){return i("(",s,")?")}function i(...s){return s.map(c=>e(c)).join("")}function o(...s){return"("+s.map(c=>e(c)).join("|")+")"}function a(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=o(u,d,f,p),v=i(r(/\.|\.\/|\//),g,n(i(h,g))),y=i("(",f,"|",p,")(?==)"),_={begin:v,lexemes:/[\w.\/]+/},S=s.inherit(_,{keywords:c}),b={begin:/\(/,end:/\)/},E={className:"attr",begin:y,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[s.NUMBER_MODE,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,S,b]}}},w={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},C={contains:[s.NUMBER_MODE,s.QUOTE_STRING_MODE,s.APOS_STRING_MODE,w,E,S,b],returnEnd:!0},x=s.inherit(_,{className:"name",keywords:l,starts:s.inherit(C,{end:/\)/})});b.contains=[x];const T=s.inherit(_,{keywords:l,className:"name",starts:s.inherit(C,{end:/\}\}/})}),R=s.inherit(_,{keywords:l,className:"name"}),O=s.inherit(_,{className:"name",keywords:l,starts:s.inherit(C,{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:[O]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[O]}]}}return KX=a,KX}var XX,OMe;function Q5n(){if(OMe)return XX;OMe=1;function e(n){const r={variants:[n.COMMENT("--","$"),n.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},i={className:"meta",begin:/\{-#/,end:/#-\}/},o={className:"meta",begin:"^#",end:"$"},a={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},s={begin:"\\(",end:"\\)",illegal:'"',contains:[i,o,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},n.inherit(n.TITLE_MODE,{begin:"[_a-z][\\w']*"}),r]},l={begin:/\{/,end:/\}/,contains:s.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:[s,r],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[s,r],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[a,s,r]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[i,a,s,l,r]},{beginKeywords:"default",end:"$",contains:[a,s,r]},{beginKeywords:"infix infixl infixr",end:"$",contains:[n.C_NUMBER_MODE,r]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[a,n.QUOTE_STRING_MODE,r]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},i,o,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE,a,n.inherit(n.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),r,{begin:"->|<-"}]}}return XX=e,XX}var QX,RMe;function Z5n(){if(RMe)return QX;RMe=1;function e(n){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:[n.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"},{className:"subst",begin:"\\$",end:/\W\}/}]},n.QUOTE_STRING_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.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:[n.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},n.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:n.IDENT_RE,relevance:0}]},n.TITLE_MODE]},{className:"function",beginKeywords:"function",end:"\\(",excludeEnd:!0,illegal:"\\S",contains:[n.TITLE_MODE]}],illegal:/<\//}}return QX=e,QX}var ZX,IMe;function J5n(){if(IMe)return ZX;IMe=1;function e(n){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:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[n.BACKSLASH_ESCAPE]},n.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:[n.inherit(n.QUOTE_STRING_MODE,{className:"meta-string"}),n.NUMBER_MODE,n.C_NUMBER_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},n.NUMBER_MODE,n.C_NUMBER_MODE]}}return ZX=e,ZX}var JX,NMe;function e6n(){if(NMe)return JX;NMe=1;function e(l){return l?typeof l=="string"?l:l.source:null}function n(l){return i("(",l,")*")}function r(l){return i("(",l,")?")}function i(...l){return l.map(u=>e(u)).join("")}function o(...l){return"("+l.map(u=>e(u)).join("|")+")"}function a(l){const c={"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"]},u={literal:["true","false","undefined","null"]},d=/""|"[^"]+"/,f=/''|'[^']+'/,p=/\[\]|\[[^\]]+\]/,h=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,g=/(\.|\/)/,v=o(d,f,p,h),y=i(r(/\.|\.\/|\//),v,n(i(g,v))),_=i("(",p,"|",h,")(?==)"),S={begin:y,lexemes:/[\w.\/]+/},b=l.inherit(S,{keywords:u}),E={begin:/\(/,end:/\)/},w={className:"attr",begin:_,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[l.NUMBER_MODE,l.QUOTE_STRING_MODE,l.APOS_STRING_MODE,b,E]}}},C={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},x={contains:[l.NUMBER_MODE,l.QUOTE_STRING_MODE,l.APOS_STRING_MODE,C,w,b,E],returnEnd:!0},T=l.inherit(S,{className:"name",keywords:c,starts:l.inherit(x,{end:/\)/})});E.contains=[T];const R=l.inherit(S,{keywords:c,className:"name",starts:l.inherit(x,{end:/\}\}/})}),O=l.inherit(S,{keywords:c,className:"name"}),M=l.inherit(S,{className:"name",keywords:c,starts:l.inherit(x,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},l.COMMENT(/\{\{!--/,/--\}\}/),l.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[R],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[O]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[R]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[O]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[M]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[M]}]}}function s(l){const c=a(l);return c.name="HTMLbars",l.getLanguage("handlebars")&&(c.disableAutodetect=!0),c}return JX=s,JX}var eQ,MMe;function t6n(){if(MMe)return eQ;MMe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o="HTTP/(2|1\\.[01])",s={className:"attribute",begin:n("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},l=[s,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+o+" \\d{3})",end:/$/,contains:[{className:"meta",begin:o},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:l}},{begin:"(?=^[A-Z]+ (.*?) "+o+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:o},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:l}},i.inherit(s,{relevance:0})]}}return eQ=r,eQ}var tQ,PMe;function n6n(){if(PMe)return tQ;PMe=1;function e(n){var r="a-zA-Z_\\-!.?+*=<>&#'",i="["+r+"]["+r+"0-9/;:]*",o={$pattern:i,"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 | |= ~"},a="[-+]?\\d+(\\.\\d+)?",s={begin:i,relevance:0},l={className:"number",begin:a,relevance:0},c=n.inherit(n.QUOTE_STRING_MODE,{illegal:null}),u=n.COMMENT(";","$",{relevance:0}),d={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},f={begin:"[\\[\\{]",end:"[\\]\\}]"},p={className:"comment",begin:"\\^"+i},h=n.COMMENT("\\^\\{","\\}"),g={className:"symbol",begin:"[:]{1,2}"+i},v={begin:"\\(",end:"\\)"},y={endsWithParent:!0,relevance:0},_={className:"name",relevance:0,keywords:o,begin:i,starts:y},S=[v,c,p,h,u,g,f,l,d,s];return v.contains=[n.COMMENT("comment",""),_,y],y.contains=S,f.contains=S,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[n.SHEBANG(),v,c,p,h,u,g,f,l,d]}}return tQ=e,tQ}var nQ,AMe;function r6n(){if(AMe)return nQ;AMe=1;function e(n){const r="\\[",i="\\]";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:r,end:i}]},{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:r,end:i,contains:["self"]}]}}return nQ=e,nQ}var rQ,DMe;function i6n(){if(DMe)return rQ;DMe=1;function e(a){return a?typeof a=="string"?a:a.source:null}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={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:a.NUMBER_RE}]},l=a.COMMENT();l.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const c={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},u={className:"literal",begin:/\bon|off|true|false|yes|no\b/},d={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},f={begin:/\[/,end:/\]/,contains:[l,u,c,d,s,"self"],relevance:0},v=i(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/),y=r(v,"(\\s*\\.\\s*",v,")*",n(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[l,{className:"section",begin:/\[+/,end:/\]+/},{begin:y,className:"attr",starts:{end:/$/,contains:[l,f,u,c,d,s]}}]}}return rQ=o,rQ}var iQ,kMe;function o6n(){if(kMe)return iQ;kMe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o={className:"params",begin:"\\(",end:"\\)"},a=/(_[a-z_\d]+)?/,s=/([de][+-]?\d+)?/,l={className:"number",variants:[{begin:n(/\b\d+/,/\.(\d*)/,s,a)},{begin:n(/\b\d+/,s,a)},{begin:n(/\.\d+/,s,a)}],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:[i.inherit(i.APOS_STRING_MODE,{className:"string",relevance:0}),i.inherit(i.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[i.UNDERSCORE_TITLE_MODE,o]},i.COMMENT("!","$",{relevance:0}),i.COMMENT("begin_doc","end_doc",{relevance:10}),l]}}return iQ=r,iQ}var oQ,LMe;function a6n(){if(LMe)return oQ;LMe=1;function e(n){const r="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",i="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",o="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",le="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 ",ur="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 ",qr="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Дат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",zi="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 ВызовСпособ ИмяОтчета РеквЗнач ",Qo="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 ",gr=le+ur,Oo=zi,Pa="null true false nil ",Er={className:"number",begin:n.NUMBER_RE,relevance:0},nr={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},lr={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},Kr={className:"comment",begin:"//",end:"$",relevance:0,contains:[n.PHRASAL_WORDS_MODE,lr]},Pi={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[n.PHRASAL_WORDS_MODE,lr]},Dl={variants:[Kr,Pi]},kl={$pattern:r,keyword:o,built_in:gr,class:Oo,literal:Pa},Ro={begin:"\\.\\s*"+n.UNDERSCORE_IDENT_RE,keywords:kl,relevance:0},Is={className:"type",begin:":[ \\t]*("+Qo.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},ku={className:"variable",keywords:kl,begin:r,relevance:0,contains:[Is,Ro]},Lu=i+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:kl,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:Lu,end:"\\)$",returnBegin:!0,keywords:kl,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:r,built_in:qr},begin:Lu,end:"\\(",returnBegin:!0,excludeEnd:!0},Ro,ku,nr,Er,Dl]},Is,Ro,ku,nr,Er,Dl]}}return oQ=e,oQ}var aQ,$Me;function s6n(){if($Me)return aQ;$Me=1;var e="[0-9](_*[0-9])*",n=`\\.(${e})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${e})((${n})|\\.)?|(${n}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${n})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${n})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function o(a){var s="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",l=s+"(<"+s+"(\\s*,\\s*"+s+")*>)?",c="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",u={className:"meta",begin:"@"+s,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]};const d=i;return{name:"Java",aliases:["jsp"],keywords:c,illegal:/<\/|#/,contains:[a.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface enum",end:/[{;=]/,excludeEnd:!0,relevance:1,keywords:"class interface enum",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},a.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"class",begin:"record\\s+"+a.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,excludeEnd:!0,end:/[{;=]/,keywords:c,contains:[{beginKeywords:"record"},{begin:a.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[a.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},{className:"function",begin:"("+l+"\\s+)+"+a.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:c,contains:[{begin:a.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[a.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:c,relevance:0,contains:[u,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,d,a.C_BLOCK_COMMENT_MODE]},a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE]},d,u]}}return aQ=o,aQ}var sQ,FMe;function l6n(){if(FMe)return sQ;FMe=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",n=["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"],r=["true","false","null","undefined","NaN","Infinity"],i=["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"],o=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","module","global"],l=[].concat(a,s,i,o);function c(p){return p?typeof p=="string"?p:p.source:null}function u(p){return d("(?=",p,")")}function d(...p){return p.map(g=>c(g)).join("")}function f(p){const h=(z,{after:D})=>{const B="</"+z[0].slice(1);return z.input.indexOf(B,D)!==-1},g=e,v={begin:"<>",end:"</>"},y={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(z,D)=>{const B=z[0].length+z.index,Y=z.input[B];if(Y==="<"){D.ignoreMatch();return}Y===">"&&(h(z,{after:B})||D.ignoreMatch())}},_={$pattern:e,keyword:n,literal:r,built_in:l},S="[0-9](_?[0-9])*",b=`\\.(${S})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",w={className:"number",variants:[{begin:`(\\b(${E})((${b})|\\.)?|(${b}))[eE][+-]?(${S})\\b`},{begin:`\\b(${E})\\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},C={className:"subst",begin:"\\$\\{",end:"\\}",keywords:_,contains:[]},x={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,C],subLanguage:"xml"}},T={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,C],subLanguage:"css"}},R={className:"string",begin:"`",end:"`",contains:[p.BACKSLASH_ESCAPE,C]},M={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,w,p.REGEXP_MODE];C.contains=P.concat({begin:/\{/,end:/\}/,keywords:_,contains:["self"].concat(P)});const k=[].concat(M,C.contains),$=k.concat([{begin:/\(/,end:/\)/,keywords:_,contains:["self"].concat(k)}]),U={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:$};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:_,exports:{PARAMS_CONTAINS:$},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,M,w,{begin:d(/[{,\n]\s*/,u(d(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,g+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:g+u("\\s*:"),relevance:0}]},{begin:"("+p.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[M,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:$}]}]},{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}),U],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:p.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[U,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",U]},{begin:"(get|set)\\s+(?="+g+"\\()",end:/\{/,keywords:"get set",contains:[p.inherit(p.TITLE_MODE,{begin:g}),{begin:/\(\)/},U]},{begin:/\$[(.]/}]}}return sQ=f,sQ}var lQ,BMe;function c6n(){if(BMe)return lQ;BMe=1;function e(n){const i={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},o={className:"function",begin:/:[\w\-.]+/,relevance:0},a={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},s={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:[n.HASH_COMMENT_MODE,n.QUOTE_STRING_MODE,s,o,a,i]}}return lQ=e,lQ}var cQ,jMe;function u6n(){if(jMe)return cQ;jMe=1;function e(n){const r={literal:"true false null"},i=[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE],o=[n.QUOTE_STRING_MODE,n.C_NUMBER_MODE],a={end:",",endsWithParent:!0,excludeEnd:!0,contains:o,keywords:r},s={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE],illegal:"\\n"},n.inherit(a,{begin:/:/})].concat(i),illegal:"\\S"},l={begin:"\\[",end:"\\]",contains:[n.inherit(a)],illegal:"\\S"};return o.push(s,l),i.forEach(function(c){o.push(c)}),{name:"JSON",contains:o,keywords:r,illegal:"\\S"}}return cQ=e,cQ}var uQ,UMe;function d6n(){if(UMe)return uQ;UMe=1;function e(n){var r="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",i=["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"],o=["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","π",""],a=["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"],s={$pattern:r,keyword:i,literal:o,built_in:a},l={keywords:s,illegal:/<\//},c={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},u={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},d={className:"subst",begin:/\$\(/,end:/\)/,keywords:s},f={className:"variable",begin:"\\$"+r},p={className:"string",contains:[n.BACKSLASH_ESCAPE,d,f],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},h={className:"string",contains:[n.BACKSLASH_ESCAPE,d,f],begin:"`",end:"`"},g={className:"meta",begin:"@"+r},v={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return l.name="Julia",l.contains=[c,u,p,h,g,v,n.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],d.contains=l.contains,l}return uQ=e,uQ}var dQ,HMe;function f6n(){if(HMe)return dQ;HMe=1;function e(n){return{name:"Julia REPL",contains:[{className:"meta",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"},aliases:["jldoctest"]}]}}return dQ=e,dQ}var fQ,zMe;function p6n(){if(zMe)return fQ;zMe=1;var e="[0-9](_*[0-9])*",n=`\\.(${e})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${e})((${n})|\\.)?|(${n}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${n})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${n})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function o(a){const s={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"},l={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},c={className:"symbol",begin:a.UNDERSCORE_IDENT_RE+"@"},u={className:"subst",begin:/\$\{/,end:/\}/,contains:[a.C_NUMBER_MODE]},d={className:"variable",begin:"\\$"+a.UNDERSCORE_IDENT_RE},f={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[d,u]},{begin:"'",end:"'",illegal:/\n/,contains:[a.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[a.BACKSLASH_ESCAPE,d,u]}]};u.contains.push(f);const p={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+a.UNDERSCORE_IDENT_RE+")?"},h={className:"meta",begin:"@"+a.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[a.inherit(f,{className:"meta-string"})]}]},g=i,v=a.COMMENT("/\\*","\\*/",{contains:[a.C_BLOCK_COMMENT_MODE]}),y={variants:[{className:"type",begin:a.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},_=y;return _.variants[1].contains=[y],y.variants[1].contains=[_],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[a.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),a.C_LINE_COMMENT_MODE,v,l,c,p,h,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,relevance:5,contains:[{begin:a.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[a.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[y,a.C_LINE_COMMENT_MODE,v],relevance:0},a.C_LINE_COMMENT_MODE,v,p,h,f,a.C_NUMBER_MODE]},v]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},a.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:!0,returnEnd:!0},p,h]},f,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
`},g]}}return fQ=o,fQ}var pQ,VMe;function h6n(){if(VMe)return pQ;VMe=1;function e(n){const r="[a-zA-Z_][\\w.]*",i="<\\?(lasso(script)?|=)",o="\\]|\\?>",a={$pattern:r+"|&[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"},s=n.COMMENT("<!--","-->",{relevance:0}),l={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[s]}},c={className:"meta",begin:"\\[/noprocess|"+i},u={className:"symbol",begin:"'"+r+"'"},d=[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.inherit(n.C_NUMBER_MODE,{begin:n.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),n.inherit(n.APOS_STRING_MODE,{illegal:null}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+r},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:r,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+r,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[u]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[n.inherit(n.TITLE_MODE,{begin:r+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:a,contains:[{className:"meta",begin:o,relevance:0,starts:{end:"\\[|"+i,returnEnd:!0,relevance:0,contains:[s]}},l,c,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:a,contains:[{className:"meta",begin:o,relevance:0,starts:{end:"\\[noprocess\\]|"+i,returnEnd:!0,contains:[s]}},l,c].concat(d)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(d)}}return pQ=e,pQ}var hQ,GMe;function g6n(){if(GMe)return hQ;GMe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return"("+i.map(a=>e(a)).join("|")+")"}function r(i){const o=n(...["(?: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(P=>P+"(?![a-zA-Z@:_])")),a=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(P=>P+"(?![a-zA-Z:_])").join("|")),s=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],l=[{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]/}],c={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:o},{endsParent:!0,begin:a},{endsParent:!0,variants:l},{endsParent:!0,relevance:0,variants:s}]},u={className:"params",relevance:0,begin:/#+\d?/},d={variants:l},f={className:"built_in",relevance:0,begin:/[$&^_]/},p={className:"meta",begin:"% !TeX",end:"$",relevance:10},h=i.COMMENT("%","$",{relevance:0}),g=[c,u,d,f,p,h],v={begin:/\{/,end:/\}/,relevance:0,contains:["self",...g]},y=i.inherit(v,{relevance:0,endsParent:!0,contains:[v,...g]}),_={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[v,...g]},S={begin:/\s+/,relevance:0},b=[y],E=[_],w=function(P,k){return{contains:[S],starts:{relevance:0,contains:P,starts:k}}},C=function(P,k){return{begin:"\\\\"+P+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+P},relevance:0,contains:[S],starts:k}},x=function(P,k){return i.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+P+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},w(b,k))},T=(P="string")=>i.END_SAME_AS_BEGIN({className:P,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),R=function(P){return{className:"string",end:"(?=\\\\end\\{"+P+"\\})"}},O=(P="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:P,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),M=[...["verb","lstinline"].map(P=>C(P,{contains:[T()]})),C("mint",w(b,{contains:[T()]})),C("mintinline",w(b,{contains:[O(),T()]})),C("url",{contains:[O("link"),O("link")]}),C("hyperref",{contains:[O("link")]}),C("href",w(E,{contains:[O("link")]})),...[].concat(...["","\\*"].map(P=>[x("verbatim"+P,R("verbatim"+P)),x("filecontents"+P,w(b,R("filecontents"+P))),...["","B","L"].map(k=>x(k+"Verbatim"+P,w(E,R(k+"Verbatim"+P))))])),x("minted",w(E,w(b,R("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...M,...g]}}return hQ=r,hQ}var gQ,WMe;function m6n(){if(WMe)return gQ;WMe=1;function e(n){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:"$"},n.HASH_COMMENT_MODE]}}return gQ=e,gQ}var mQ,YMe;function v6n(){if(YMe)return mQ;YMe=1;function e(n){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 mQ=e,mQ}var vQ,qMe;function y6n(){if(qMe)return vQ;qMe=1;const e=c=>({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:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]}}),n=["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"],r=["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"],i=["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"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],a=["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(),s=i.concat(o);function l(c){const u=e(c),d=s,f="and or not only",p="[\\w-]+",h="("+p+"|@\\{"+p+"\\})",g=[],v=[],y=function(M){return{className:"string",begin:"~?"+M+".*?"+M}},_=function(M,P,k){return{className:M,begin:P,relevance:k}},S={$pattern:/[a-z-]+/,keyword:f,attribute:r.join(" ")},b={begin:"\\(",end:"\\)",contains:v,keywords:S,relevance:0};v.push(c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,y("'"),y('"'),c.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},u.HEXCOLOR,b,_("variable","@@?"+p,10),_("variable","@\\{"+p+"\\}"),_("built_in","~?`[^`]*?`"),{className:"attribute",begin:p+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},u.IMPORTANT);const E=v.concat({begin:/\{/,end:/\}/,contains:g}),w={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(v)},C={begin:h+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},{className:"attribute",begin:"\\b("+a.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:v}}]},x={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:S,returnEnd:!0,contains:v,relevance:0}},T={className:"variable",variants:[{begin:"@"+p+"\\s*:",relevance:15},{begin:"@"+p}],starts:{end:"[;}]",returnEnd:!0,contains:E}},R={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:h,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,w,_("keyword","all\\b"),_("variable","@\\{"+p+"\\}"),{begin:"\\b("+n.join("|")+")\\b",className:"selector-tag"},_("selector-tag",h+"%?",0),_("selector-id","#"+h),_("selector-class","\\."+h,0),_("selector-tag","&",0),u.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:"::("+o.join("|")+")"},{begin:"\\(",end:"\\)",contains:E},{begin:"!important"}]},O={begin:p+`:(:)?(${d.join("|")})`,returnBegin:!0,contains:[R]};return g.push(c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,x,T,O,C,R),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:g}}return vQ=l,vQ}var yQ,KMe;function _6n(){if(KMe)return yQ;KMe=1;function e(n){var r="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",i="\\|[^]*?\\|",o="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",a={className:"literal",begin:"\\b(t{1}|nil)\\b"},s={className:"number",variants:[{begin:o,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)\\("+o+" +"+o,end:"\\)"}]},l=n.inherit(n.QUOTE_STRING_MODE,{illegal:null}),c=n.COMMENT(";","$",{relevance:0}),u={begin:"\\*",end:"\\*"},d={className:"symbol",begin:"[:&]"+r},f={begin:r,relevance:0},p={begin:i},h={begin:"\\(",end:"\\)",contains:["self",a,l,s,f]},g={contains:[s,l,u,d,h,f],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+i}]},v={variants:[{begin:"'"+r},{begin:"#'"+r+"(::"+r+")*"}]},y={begin:"\\(\\s*",end:"\\)"},_={endsWithParent:!0,relevance:0};return y.contains=[{className:"name",variants:[{begin:r,relevance:0},{begin:i}]},_],_.contains=[g,v,y,a,s,l,c,u,d,p,f],{name:"Lisp",illegal:/\S/,contains:[s,n.SHEBANG(),a,l,c,g,v,y,f]}}return yQ=e,yQ}var _Q,XMe;function b6n(){if(XMe)return _Q;XMe=1;function e(n){const r={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},i=[n.C_BLOCK_COMMENT_MODE,n.HASH_COMMENT_MODE,n.COMMENT("--","$"),n.COMMENT("[^:]//","$")],o=n.inherit(n.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),a=n.inherit(n.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:[r,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[r,a,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.BINARY_NUMBER_MODE,n.C_NUMBER_MODE,o]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[a,o],relevance:0},{beginKeywords:"command on",end:"$",contains:[r,a,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.BINARY_NUMBER_MODE,n.C_NUMBER_MODE,o]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.BINARY_NUMBER_MODE,n.C_NUMBER_MODE,o].concat(i),illegal:";$|^\\[|^=|&|\\{"}}return _Q=e,_Q}var bQ,QMe;function S6n(){if(QMe)return bQ;QMe=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"],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(c){const u=["npm","print"],d=["yes","no","on","off","it","that","void"],f=["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"],p={keyword:e.concat(f),literal:n.concat(d),built_in:s.concat(u)},h="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",g=c.inherit(c.TITLE_MODE,{begin:h}),v={className:"subst",begin:/#\{/,end:/\}/,keywords:p},y={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:p},_=[c.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:[c.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[c.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[c.BACKSLASH_ESCAPE,v,y]},{begin:/"/,end:/"/,contains:[c.BACKSLASH_ESCAPE,v,y]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[v,c.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+h},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];v.contains=_;const S={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:p,contains:["self"].concat(_)}]},b={begin:"(#=>|=>|\\|>>|-?->|!->)"};return{name:"LiveScript",aliases:["ls"],keywords:p,illegal:/\/\*/,contains:_.concat([c.COMMENT("\\/\\*","\\*\\/"),c.HASH_COMMENT_MODE,b,{className:"function",contains:[g,S],returnBegin:!0,variants:[{begin:"("+h+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+h+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+h+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[g]},g]},{begin:h+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return bQ=l,bQ}var SQ,ZMe;function E6n(){if(ZMe)return SQ;ZMe=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o=/([-a-zA-Z$._][\w$.-]*)/,a={className:"type",begin:/\bi\d+(?=\s|\b)/},s={className:"operator",relevance:0,begin:/=/},l={className:"punctuation",relevance:0,begin:/,/},c={className:"number",variants:[{begin:/0[xX][a-fA-F0-9]+/},{begin:/-?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},u={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},d={className:"variable",variants:[{begin:n(/%/,o)},{begin:/%\d+/},{begin:/#\d+/}]},f={className:"title",variants:[{begin:n(/@/,o)},{begin:/@\d+/},{begin:n(/!/,o)},{begin:n(/!\d+/,o)},{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:[a,i.COMMENT(/;\s*$/,null,{relevance:0}),i.COMMENT(/;/,/$/),i.QUOTE_STRING_MODE,{className:"string",variants:[{begin:/"/,end:/[^\\]"/}]},f,l,s,d,u,c]}}return SQ=r,SQ}var EQ,JMe;function C6n(){if(JMe)return EQ;JMe=1;function e(n){var r={className:"subst",begin:/\\[tn"\\]/},i={className:"string",begin:'"',end:'"',contains:[r]},o={className:"number",relevance:0,begin:n.C_NUMBER_RE},a={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"}]},s={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:[i,{className:"comment",variants:[n.COMMENT("//","$"),n.COMMENT("/\\*","\\*/")],relevance:0},o,{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"}]},s,a,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return EQ=e,EQ}var CQ,e2e;function w6n(){if(e2e)return CQ;e2e=1;function e(n){const r="\\[=*\\[",i="\\]=*\\]",o={begin:r,end:i,contains:["self"]},a=[n.COMMENT("--(?!"+r+")","$"),n.COMMENT("--"+r,i,{contains:[o],relevance:10})];return{name:"Lua",keywords:{$pattern:n.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:a.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[n.inherit(n.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:a}].concat(a)},n.C_NUMBER_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{className:"string",begin:r,end:i,contains:[o],relevance:5}])}}return CQ=e,CQ}var wQ,t2e;function x6n(){if(t2e)return wQ;t2e=1;function e(n){const r={className:"variable",variants:[{begin:"\\$\\("+n.UNDERSCORE_IDENT_RE+"\\)",contains:[n.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},i={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,r]},o={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:[r]},a={begin:"^"+n.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},s={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,"meta-keyword":".PHONY"}},l={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[r]};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:[n.HASH_COMMENT_MODE,r,i,o,a,s,l]}}return wQ=e,wQ}var xQ,n2e;function T6n(){if(n2e)return xQ;n2e=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 n(s){return s?typeof s=="string"?s:s.source:null}function r(s){return i("(",s,")?")}function i(...s){return s.map(c=>n(c)).join("")}function o(...s){return"("+s.map(c=>n(c)).join("|")+")"}function a(s){const l=/([2-9]|[1-2]\d|[3][0-5])\^\^/,c=/(\w*\.\w+|\w+\.\w*|\w+)/,u=/(\d*\.\d+|\d+\.\d*|\d+)/,d=o(i(l,c),u),h=o(/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/),g=/\*\^[+-]?\d+/,y={className:"number",relevance:0,begin:i(d,r(h),r(g))},_=/[a-zA-Z$][a-zA-Z0-9$]*/,S=new Set(e),b={variants:[{className:"builtin-symbol",begin:_,"on:begin":(O,M)=>{S.has(O[0])||M.ignoreMatch()}},{className:"symbol",relevance:0,begin:_}]},E={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},w={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},C={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},x={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},T={className:"brace",relevance:0,begin:/[[\](){}]/},R={className:"message-name",relevance:0,begin:i("::",_)};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:[s.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),C,x,R,b,E,s.QUOTE_STRING_MODE,y,w,T]}}return xQ=a,xQ}var TQ,r2e;function O6n(){if(r2e)return TQ;r2e=1;function e(n){var r="('|\\.')+",i={relevance:0,contains:[{begin:r}]};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:[n.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:i},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+r,relevance:0},{className:"number",begin:n.C_NUMBER_RE,relevance:0,starts:i},{className:"string",begin:"'",end:"'",contains:[n.BACKSLASH_ESCAPE,{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:i},{className:"string",begin:'"',end:'"',contains:[n.BACKSLASH_ESCAPE,{begin:'""'}],starts:i},n.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),n.COMMENT("%","$")]}}return TQ=e,TQ}var OQ,i2e;function R6n(){if(i2e)return OQ;i2e=1;function e(n){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"]},n.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 OQ=e,OQ}var RQ,o2e;function I6n(){if(o2e)return RQ;o2e=1;function e(n){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:[n.C_NUMBER_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]}}return RQ=e,RQ}var IQ,a2e;function N6n(){if(a2e)return IQ;a2e=1;function e(n){const r={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"},i=n.COMMENT("%","$"),o={className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},a=n.inherit(n.APOS_STRING_MODE,{relevance:0}),s=n.inherit(n.QUOTE_STRING_MODE,{relevance:0}),l={className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0};return s.contains=s.contains.slice(),s.contains.push(l),{name:"Mercury",aliases:["m","moo"],keywords:r,contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},i,n.C_BLOCK_COMMENT_MODE,o,n.NUMBER_MODE,a,s,{begin:/:-/},{begin:/\.$/}]}}return IQ=e,IQ}var NQ,s2e;function M6n(){if(s2e)return NQ;s2e=1;function e(n){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+n.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"},n.COMMENT("[;#](?!\\s*$)","$"),n.C_BLOCK_COMMENT_MODE,n.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 NQ=e,NQ}var MQ,l2e;function P6n(){if(l2e)return MQ;l2e=1;function e(n){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:[n.COMMENT("::","$")]}}return MQ=e,MQ}var PQ,c2e;function A6n(){if(c2e)return PQ;c2e=1;function e(o){return o?typeof o=="string"?o:o.source:null}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=["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"],s=/[dualxmsipngr]{0,12}/,l={$pattern:/[\w.]+/,keyword:a.join(" ")},c={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:l},u={begin:/->\{/,end:/\}/},d={variants:[{begin:/\$\d/},{begin:n(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},f=[o.BACKSLASH_ESCAPE,c,d],p=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],h=(y,_,S="\\1")=>{const b=S==="\\1"?S:n(S,_);return n(n("(?:",y,")"),_,/(?:\\.|[^\\\/])*?/,b,/(?:\\.|[^\\\/])*?/,S,s)},g=(y,_,S)=>n(n("(?:",y,")"),_,/(?:\\.|[^\\\/])*?/,S,s),v=[d,o.HASH_COMMENT_MODE,o.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),u,{className:"string",contains:f,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:[o.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[o.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:"(\\/\\/|"+o.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[o.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:h("s|tr|y",r(...p))},{begin:h("s|tr|y","\\(","\\)")},{begin:h("s|tr|y","\\[","\\]")},{begin:h("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:g("(?:m|qr)?",/\//,/\//)},{begin:g("m|qr",r(...p),/\1/)},{begin:g("m|qr",/\(/,/\)/)},{begin:g("m|qr",/\[/,/\]/)},{begin:g("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[o.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return c.contains=v,u.contains=v,{name:"Perl",aliases:["pl","pm"],keywords:l,contains:v}}return PQ=i,PQ}var AQ,u2e;function D6n(){if(u2e)return AQ;u2e=1;function e(n){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 AQ=e,AQ}var DQ,d2e;function k6n(){if(d2e)return DQ;d2e=1;function e(n){const r={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},n.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:[n.COMMENT("#rem","#end"),n.COMMENT("'","$",{relevance:0}),{className:"function",beginKeywords:"function method",end:"[(=:]|$",illegal:/\n/,contains:[n.UNDERSCORE_TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:"$",contains:[{beginKeywords:"extends implements"},n.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:[n.UNDERSCORE_TITLE_MODE]},n.QUOTE_STRING_MODE,r]}}return DQ=e,DQ}var kQ,f2e;function L6n(){if(f2e)return kQ;f2e=1;function e(n){const r={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"},i="[A-Za-z$_][0-9A-Za-z$_]*",o={className:"subst",begin:/#\{/,end:/\}/,keywords:r},a=[n.inherit(n.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[n.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,o]}]},{className:"built_in",begin:"@__"+n.IDENT_RE},{begin:"@"+n.IDENT_RE},{begin:n.IDENT_RE+"\\\\"+n.IDENT_RE}];o.contains=a;const s=n.inherit(n.TITLE_MODE,{begin:i}),l="(\\(.*\\)\\s*)?\\B[-=]>",c={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:r,contains:["self"].concat(a)}]};return{name:"MoonScript",aliases:["moon"],keywords:r,illegal:/\/\*/,contains:a.concat([n.COMMENT("--","$"),{className:"function",begin:"^\\s*"+i+"\\s*=\\s*"+l,end:"[-=]>",returnBegin:!0,contains:[s,c]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:l,end:"[-=]>",returnBegin:!0,contains:[c]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[s]},s]},{className:"name",begin:i+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return kQ=e,kQ}var LQ,p2e;function $6n(){if(p2e)return LQ;p2e=1;function e(n){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:[n.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[n.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE],relevance:2},n.C_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE]},n.C_BLOCK_COMMENT_MODE]}}return LQ=e,LQ}var $Q,h2e;function F6n(){if(h2e)return $Q;h2e=1;function e(n){const r={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/\}/},{begin:/[$@]/+n.UNDERSCORE_IDENT_RE}]},i={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:[n.HASH_COMMENT_MODE,{className:"string",contains:[n.BACKSLASH_ESCAPE,r],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[r]},{className:"regexp",contains:[n.BACKSLASH_ESCAPE,r],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},r]};return{name:"Nginx config",aliases:["nginxconf"],contains:[n.HASH_COMMENT_MODE,{begin:n.UNDERSCORE_IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\{/,contains:[{className:"section",begin:n.UNDERSCORE_IDENT_RE}],relevance:0},{begin:n.UNDERSCORE_IDENT_RE+"\\s",end:";|\\{",returnBegin:!0,contains:[{className:"attribute",begin:n.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}]"}}return $Q=e,$Q}var FQ,g2e;function B6n(){if(g2e)return FQ;g2e=1;function e(n){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:/"""/},n.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))?/}]},n.HASH_COMMENT_MODE]}}return FQ=e,FQ}var BQ,m2e;function j6n(){if(m2e)return BQ;m2e=1;function e(n){const r={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"},i={className:"subst",begin:/\$\{/,end:/\}/,keywords:r},o={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/}]},a={className:"string",contains:[i],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},s=[n.NUMBER_MODE,n.HASH_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,a,o];return i.contains=s,{name:"Nix",aliases:["nixos"],keywords:r,contains:s}}return BQ=e,BQ}var jQ,v2e;function U6n(){if(v2e)return jQ;v2e=1;function e(n){return{name:"Node REPL",contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return jQ=e,jQ}var UQ,y2e;function H6n(){if(y2e)return UQ;y2e=1;function e(n){const r={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)/},i={className:"variable",begin:/\$+\{[\w.:-]+\}/},o={className:"variable",begin:/\$+\w+/,illegal:/\(\)\{\}/},a={className:"variable",begin:/\$+\([\w^.:-]+\)/},s={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)"},l={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)/},c={className:"meta",begin:/\$(\\[nrt]|\$)/},u={className:"class",begin:/\w+::\w+/},d={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[c,r,i,o,a]};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:[n.HASH_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.COMMENT(";","$",{relevance:0}),{className:"function",beginKeywords:"Function PageEx Section SectionGroup",end:"$"},d,l,i,o,a,s,u,n.NUMBER_MODE]}}return UQ=e,UQ}var HQ,_2e;function z6n(){if(_2e)return HQ;_2e=1;function e(n){const r={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+"},i=/[a-zA-Z@][a-zA-Z0-9_]*/,o={$pattern:i,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"},a={$pattern:i,keyword:"@interface @class @protocol @implementation"};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:o,illegal:"</",contains:[r,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.C_NUMBER_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[n.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},n.inherit(n.QUOTE_STRING_MODE,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+a.keyword.split(" ").join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:a,contains:[n.UNDERSCORE_TITLE_MODE]},{begin:"\\."+n.UNDERSCORE_IDENT_RE,relevance:0}]}}return HQ=e,HQ}var zQ,b2e;function V6n(){if(b2e)return zQ;b2e=1;function e(n){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},n.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},n.inherit(n.APOS_STRING_MODE,{className:"string",relevance:0}),n.inherit(n.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 zQ=e,zQ}var VQ,S2e;function G6n(){if(S2e)return VQ;S2e=1;function e(n){const r={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},i={className:"literal",begin:"false|true|PI|undef"},o={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},a=n.inherit(n.QUOTE_STRING_MODE,{illegal:null}),s={className:"meta",keywords:{"meta-keyword":"include use"},begin:"include|use <",end:">"},l={className:"params",begin:"\\(",end:"\\)",contains:["self",o,a,r,i]},c={begin:"[*!#%]",relevance:0},u={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[l,n.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:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,o,s,a,r,c,u]}}return VQ=e,VQ}var GQ,E2e;function W6n(){if(E2e)return GQ;E2e=1;function e(n){const r={$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"},i=n.COMMENT(/\{/,/\}/,{relevance:0}),o=n.COMMENT("\\(\\*","\\*\\)",{relevance:10}),a={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},s={className:"string",begin:"(#\\d+)+"},l={className:"function",beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[n.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",keywords:r,contains:[a,s]},i,o]};return{name:"Oxygene",case_insensitive:!0,keywords:r,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[i,o,n.C_LINE_COMMENT_MODE,a,s,n.NUMBER_MODE,l,{className:"class",begin:"=\\bclass\\b",end:"end;",keywords:r,contains:[a,s,i,o,n.C_LINE_COMMENT_MODE,l]}]}}return GQ=e,GQ}var WQ,C2e;function Y6n(){if(C2e)return WQ;C2e=1;function e(n){const r=n.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[n.COMMENT("^#","$"),n.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[r]}),{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]+"},n.C_NUMBER_MODE]}}return WQ=e,WQ}var YQ,w2e;function q6n(){if(w2e)return YQ;w2e=1;function e(n){const r={className:"variable",begin:/\$[\w\d#@][\w\d_]*/},i={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:[n.HASH_COMMENT_MODE,n.NUMBER_MODE,n.QUOTE_STRING_MODE,r,i]}}return YQ=e,YQ}var qQ,x2e;function K6n(){if(x2e)return qQ;x2e=1;function e(n){const r=n.COMMENT("--","$"),i="[a-zA-Z_][a-zA-Z_0-9$]*",o="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",a="<<\\s*"+i+"\\s*>>",s="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 ",l="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",c="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 ",u="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 ",d=u.trim().split(" ").map(function(y){return y.split("|")[0]}).join("|"),f="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",p="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 ",h="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 ",v="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(y){return y.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],case_insensitive:!0,keywords:{keyword:s+c+l,built_in:f+p+h},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:n.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("+v+")\\s*\\("},{begin:"\\.("+d+")\\b"},{begin:"\\b("+d+")\\s+PATH\\b",keywords:{keyword:"PATH",type:u.replace("PATH ","")}},{className:"type",begin:"\\b("+d+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},n.END_SAME_AS_BEGIN({begin:o,end:o,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},n.C_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE,r,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:a,relevance:10}]}}return qQ=e,qQ}var KQ,T2e;function X6n(){if(T2e)return KQ;T2e=1;function e(n){const r={className:"variable",begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*(?![A-Za-z0-9])(?![$])"},i={className:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?[=]?/},{begin:/\?>/}]},o={className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},a=n.inherit(n.APOS_STRING_MODE,{illegal:null}),s=n.inherit(n.QUOTE_STRING_MODE,{illegal:null,contains:n.QUOTE_STRING_MODE.contains.concat(o)}),l=n.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:n.QUOTE_STRING_MODE.contains.concat(o)}),c={className:"string",contains:[n.BACKSLASH_ESCAPE,i],variants:[n.inherit(a,{begin:"b'",end:"'"}),n.inherit(s,{begin:'b"',end:'"'}),s,a,l]},u={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},d={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:d,contains:[n.HASH_COMMENT_MODE,n.COMMENT("//","$",{contains:[i]}),n.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),n.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler"}),i,{className:"keyword",begin:/\$this\b/},r,{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"},n.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{className:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:d,contains:["self",r,n.C_BLOCK_COMMENT_MODE,c,u]}]},{className:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},n.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[n.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",relevance:0,end:";",contains:[n.UNDERSCORE_TITLE_MODE]},c,u]}}return KQ=e,KQ}var XQ,O2e;function Q6n(){if(O2e)return XQ;O2e=1;function e(n){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},n.inherit(n.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return XQ=e,XQ}var QQ,R2e;function Z6n(){if(R2e)return QQ;R2e=1;function e(n){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return QQ=e,QQ}var ZQ,I2e;function J6n(){if(I2e)return ZQ;I2e=1;function e(n){const r={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"},i={className:"string",begin:'"""',end:'"""',relevance:10},o={className:"string",begin:'"',end:'"',contains:[n.BACKSLASH_ESCAPE]},a={className:"string",begin:"'",end:"'",contains:[n.BACKSLASH_ESCAPE],relevance:0},s={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},l={begin:n.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:r,contains:[s,i,o,a,l,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]}}return ZQ=e,ZQ}var JQ,N2e;function eFn(){if(N2e)return JQ;N2e=1;function e(n){const r=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],i="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",o="-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",a={$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"},s=/\w[\w\d]*((-)[\w\d]+)*/,l={begin:"`[\\s\\S]",relevance:0},c={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},u={className:"literal",begin:/\$(null|true|false)\b/},d={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[l,c,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},f={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},p={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},h=n.inherit(n.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[p]}),g={className:"built_in",variants:[{begin:"(".concat(i,")+(-)[\\w\\d]+")}]},v={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[n.TITLE_MODE]},y={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:s,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[c]}]},_={begin:/using\s/,end:/$/,returnBegin:!0,contains:[d,f,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},S={variants:[{className:"operator",begin:"(".concat(o,")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},b={className:"selector-tag",begin:/@\B/,relevance:0},E={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(a.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},n.inherit(n.TITLE_MODE,{endsParent:!0})]},w=[E,h,l,n.NUMBER_MODE,d,f,g,c,u,b],C={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",w,{begin:"("+r.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return E.contains.unshift(C),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:a,contains:w.concat(v,y,_,S,C)}}return JQ=e,JQ}var eZ,M2e;function tFn(){if(M2e)return eZ;M2e=1;function e(n){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:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE]}}return eZ=e,eZ}var tZ,P2e;function nFn(){if(P2e)return tZ;P2e=1;function e(n){return{name:"Python profiler",contains:[n.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:[n.C_NUMBER_MODE],relevance:10},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}return tZ=e,tZ}var nZ,A2e;function rFn(){if(A2e)return nZ;A2e=1;function e(n){const r={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},i={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},o={begin:/\(/,end:/\)/,relevance:0},a={begin:/\[/,end:/\]/},s={className:"comment",begin:/%/,end:/$/,contains:[n.PHRASAL_WORDS_MODE]},l={className:"string",begin:/`/,end:/`/,contains:[n.BACKSLASH_ESCAPE]},c={className:"string",begin:/0'(\\'|.)/},u={className:"string",begin:/0'\\s/},f=[r,i,o,{begin:/:-/},a,s,n.C_BLOCK_COMMENT_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,l,c,u,n.C_NUMBER_MODE];return o.contains=f,a.contains=f,{name:"Prolog",contains:f.concat([{begin:/\.$/}])}}return nZ=e,nZ}var rZ,D2e;function iFn(){if(D2e)return rZ;D2e=1;function e(n){var r="[ \\t\\f]*",i="[ \\t\\f]+",o=r+"[:=]"+r,a=i,s="("+o+"|"+a+")",l="([^\\\\\\W:= \\t\\f\\n]|\\\\.)+",c="([^\\\\:= \\t\\f\\n]|\\\\.)+",u={end:s,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",case_insensitive:!0,illegal:/\S/,contains:[n.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:l+o,relevance:1},{begin:l+a,relevance:0}],contains:[{className:"attr",begin:l,endsParent:!0,relevance:0}],starts:u},{begin:c+s,returnBegin:!0,relevance:0,contains:[{className:"meta",begin:c,endsParent:!0,relevance:0}],starts:u},{className:"attr",relevance:0,begin:c+r+"$"}]}}return rZ=e,rZ}var iZ,k2e;function oFn(){if(k2e)return iZ;k2e=1;function e(n){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:[n.QUOTE_STRING_MODE,n.NUMBER_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"message enum service",end:/\{/,illegal:/\n/,contains:[n.inherit(n.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return iZ=e,iZ}var oZ,L2e;function aFn(){if(L2e)return oZ;L2e=1;function e(n){const r={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"},i=n.COMMENT("#","$"),o="([A-Za-z_]|::)(\\w|::)*",a=n.inherit(n.TITLE_MODE,{begin:o}),s={className:"variable",begin:"\\$"+o},l={className:"string",contains:[n.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[i,s,l,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[a,i]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:n.IDENT_RE,endsParent:!0}]},{begin:n.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:n.IDENT_RE},{begin:/\{/,end:/\}/,keywords:r,relevance:0,contains:[l,i,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:n.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},s]}],relevance:0}]}}return oZ=e,oZ}var aZ,$2e;function sFn(){if($2e)return aZ;$2e=1;function e(n){const r={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},i={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:[n.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*"},n.UNDERSCORE_TITLE_MODE]},r,i]}}return aZ=e,aZ}var sZ,F2e;function lFn(){if(F2e)return sZ;F2e=1;function e(o){return o?typeof o=="string"?o:o.source:null}function n(o){return r("(?=",o,")")}function r(...o){return o.map(s=>e(s)).join("")}function i(o){const u={$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"]},d={className:"meta",begin:/^(>>>|\.\.\.) /},f={className:"subst",begin:/\{/,end:/\}/,keywords:u,illegal:/#/},p={begin:/\{\{/,relevance:0},h={className:"string",contains:[o.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[o.BACKSLASH_ESCAPE,d,p,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[o.BACKSLASH_ESCAPE,d,p,f]},{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:[o.BACKSLASH_ESCAPE,p,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[o.BACKSLASH_ESCAPE,p,f]},o.APOS_STRING_MODE,o.QUOTE_STRING_MODE]},g="[0-9](_?[0-9])*",v=`(\\b(${g}))?\\.(${g})|\\b(${g})\\.`,y={className:"number",relevance:0,variants:[{begin:`(\\b(${g})|(${v}))[eE][+-]?(${g})[jJ]?\\b`},{begin:`(${v})[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(${g})[jJ]\\b`}]},_={className:"comment",begin:n(/# type:/),end:/$/,keywords:u,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},S={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:["self",d,y,h,o.HASH_COMMENT_MODE]}]};return f.contains=[h,y,d],{name:"Python",aliases:["py","gyp","ipython"],keywords:u,illegal:/(<\/|->|\?)|=>/,contains:[d,y,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},h,_,o.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[o.UNDERSCORE_TITLE_MODE,S,{begin:/->/,endsWithParent:!0,keywords:u}]},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[y,S,h]}]}}return sZ=i,sZ}var lZ,B2e;function cFn(){if(B2e)return lZ;B2e=1;function e(n){return{aliases:["pycon"],contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return lZ=e,lZ}var cZ,j2e;function uFn(){if(j2e)return cZ;j2e=1;function e(n){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:[n.C_LINE_COMMENT_MODE,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE]}}return cZ=e,cZ}var uZ,U2e;function dFn(){if(U2e)return uZ;U2e=1;function e(i){return i?typeof i=="string"?i:i.source:null}function n(...i){return i.map(a=>e(a)).join("")}function r(i){const o={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"},a="[a-zA-Z_][a-zA-Z0-9\\._]*",s={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},l={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},c={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:a,returnEnd:!1}},u={begin:a+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:a,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},d={begin:n(a,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[i.inherit(i.TITLE_MODE,{begin:a})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:o,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:i.C_NUMBER_RE}],relevance:0},{begin:"("+i.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,i.REGEXP_MODE,{begin:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},l,s,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[i.inherit(i.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+i.IDENT_RE,relevance:0},c,u,d],illegal:/#/}}return uZ=r,uZ}var dZ,H2e;function fFn(){if(H2e)return dZ;H2e=1;function e(o){return o?typeof o=="string"?o:o.source:null}function n(o){return r("(?=",o,")")}function r(...o){return o.map(s=>e(s)).join("")}function i(o){const a=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,s=/[a-zA-Z][a-zA-Z_0-9]*/;return{name:"R",illegal:/->/,keywords:{$pattern:a,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:[(l,c)=>{if(!l.beforeMatch)return;if(l.starts)throw new Error("beforeMatch cannot be used with starts");const u=Object.assign({},l);Object.keys(l).forEach(d=>{delete l[d]}),l.begin=r(u.beforeMatch,n(u.begin)),l.starts={relevance:0,contains:[Object.assign(u,{endsParent:!0})]},l.relevance=0,delete u.beforeMatch}],contains:[o.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:a},{begin:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{className:"doctag",begin:/@[a-zA-Z]+/},{className:"meta-keyword",begin:/\\[a-zA-Z]+/}]}),o.HASH_COMMENT_MODE,{className:"string",contains:[o.BACKSLASH_ESCAPE],variants:[o.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),o.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),o.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),o.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),o.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),o.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:r(s,"\\s+<-\\s+")},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return dZ=i,dZ}var fZ,z2e;function pFn(){if(z2e)return fZ;z2e=1;function e(n){function r(C){return C.map(function(x){return x.split("").map(function(T){return"\\"+T}).join("")}).join("|")}const i="~?[a-z$_][0-9a-zA-Z$_]*",o="`?[A-Z$_][0-9a-zA-Z$_]*",a="'?[a-z$_][0-9a-z$_]*",s="\\s*:\\s*[a-z$_][0-9a-z$_]*(\\(\\s*("+a+"\\s*(,"+a+"\\s*)*)?\\))?",l=i+"("+s+"){0,2}",c="("+r(["||","++","**","+.","*","/","*.","/.","..."])+"|\\|>|&&|==|===)",u="\\s+"+c+"\\s+",d={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"},f="\\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_]+)?)?)",p={className:"number",relevance:0,variants:[{begin:f},{begin:"\\(-"+f+"\\)"}]},h={className:"operator",relevance:0,begin:c},g=[{className:"identifier",relevance:0,begin:i},h,p],v=[n.QUOTE_STRING_MODE,h,{className:"module",begin:"\\b"+o,returnBegin:!0,end:".",contains:[{className:"identifier",begin:o,relevance:0}]}],y=[{className:"module",begin:"\\b"+o,returnBegin:!0,end:".",relevance:0,contains:[{className:"identifier",begin:o,relevance:0}]}],_={begin:i,end:"(,|\\n|\\))",relevance:0,contains:[h,{className:"typing",begin:":",end:"(,|\\n)",returnBegin:!0,relevance:0,contains:y}]},S={className:"function",relevance:0,keywords:d,variants:[{begin:"\\s(\\(\\.?.*?\\)|"+i+")\\s*=>",end:"\\s*=>",returnBegin:!0,relevance:0,contains:[{className:"params",variants:[{begin:i},{begin:l},{begin:/\(\s*\)/}]}]},{begin:"\\s\\(\\.?[^;\\|]*\\)\\s*=>",end:"\\s=>",returnBegin:!0,relevance:0,contains:[{className:"params",relevance:0,variants:[_]}]},{begin:"\\(\\.\\s"+i+"\\)\\s*=>"}]};v.push(S);const b={className:"constructor",begin:o+"\\(",end:"\\)",illegal:"\\n",keywords:d,contains:[n.QUOTE_STRING_MODE,h,{className:"params",begin:"\\b"+i}]},E={className:"pattern-match",begin:"\\|",returnBegin:!0,keywords:d,end:"=>",relevance:0,contains:[b,h,{relevance:0,className:"constructor",begin:o}]},w={className:"module-access",keywords:d,returnBegin:!0,variants:[{begin:"\\b("+o+"\\.)+"+i},{begin:"\\b("+o+"\\.)+\\(",end:"\\)",returnBegin:!0,contains:[S,{begin:"\\(",end:"\\)",skip:!0}].concat(v)},{begin:"\\b("+o+"\\.)+\\{",end:/\}/}],contains:v};return y.push(w),{name:"ReasonML",aliases:["re"],keywords:d,illegal:"(:-|:=|\\$\\{|\\+=)",contains:[n.COMMENT("/\\*","\\*/",{illegal:"^(#,\\/\\/)"}),{className:"character",begin:"'(\\\\[^']+|[^'])'",illegal:"\\n",relevance:0},n.QUOTE_STRING_MODE,{className:"literal",begin:"\\(\\)",relevance:0},{className:"literal",begin:"\\[\\|",end:"\\|\\]",relevance:0,contains:g},{className:"literal",begin:"\\[",end:"\\]",relevance:0,contains:g},b,{className:"operator",begin:u,illegal:"-->",relevance:0},p,n.C_LINE_COMMENT_MODE,E,S,{className:"module-def",begin:"\\bmodule\\s+"+i+"\\s+"+o+"\\s+=\\s+\\{",end:/\}/,returnBegin:!0,keywords:d,relevance:0,contains:[{className:"module",relevance:0,begin:o},{begin:/\{/,end:/\}/,skip:!0}].concat(v)},w]}}return fZ=e,fZ}var pZ,V2e;function hFn(){if(V2e)return pZ;V2e=1;function e(n){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:[n.HASH_COMMENT_MODE,n.C_NUMBER_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]}}return pZ=e,pZ}var hZ,G2e;function gFn(){if(G2e)return hZ;G2e=1;function e(n){const r="[a-zA-Z-_][^\\n{]+\\{",i={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 "+r,end:/\}/,keywords:"facet",contains:[i,n.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+r,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",i,n.HASH_COMMENT_MODE]},{begin:"^"+r,end:/\}/,contains:[i,n.HASH_COMMENT_MODE]},n.HASH_COMMENT_MODE]}}return hZ=e,hZ}var gZ,W2e;function mFn(){if(W2e)return gZ;W2e=1;function e(n){const r="foreach do while for if from to step else on-error and or not in",i="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",o="add remove enable disable set get print export edit find run debug error info warning",a="true false yes no nothing nil null",s="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",l={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},c={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,l,{className:"variable",begin:/\$\(/,end:/\)/,contains:[n.BACKSLASH_ESCAPE]}]},u={className:"string",begin:/'/,end:/'/};return{name:"Microtik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:a,keyword:r+" :"+r.split(" ").join(" :")+" :"+i.split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},n.COMMENT("^#","$"),c,u,l,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[c,u,l,{className:"literal",begin:"\\b("+a.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+o.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"builtin-name",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+s.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}return gZ=e,gZ}var mZ,Y2e;function vFn(){if(Y2e)return mZ;Y2e=1;function e(n){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:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,n.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"surface displacement light volume imager",end:"\\("},{beginKeywords:"illuminate illuminance gather",end:"\\("}]}}return mZ=e,mZ}var vZ,q2e;function yFn(){if(q2e)return vZ;q2e=1;function e(n){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:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}}return vZ=e,vZ}var yZ,K2e;function _Fn(){if(K2e)return yZ;K2e=1;function e(n){const r="([ui](8|16|32|64|128|size)|f(32|64))?",i="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",o="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:n.IDENT_RE+"!?",keyword:i,literal:"true false Some None Ok Err",built_in:o},illegal:"</",contains:[n.C_LINE_COMMENT_MODE,n.COMMENT("/\\*","\\*/",{contains:["self"]}),n.inherit(n.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_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+r}],relevance:0},{className:"function",beginKeywords:"fn",end:"(\\(|<)",excludeEnd:!0,contains:[n.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"meta-string",begin:/"/,end:/"/}]},{className:"class",beginKeywords:"type",end:";",contains:[n.inherit(n.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"\\S"},{className:"class",beginKeywords:"trait enum struct union",end:/\{/,contains:[n.inherit(n.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"[\\w\\d]"},{begin:n.IDENT_RE+"::",keywords:{built_in:o}},{begin:"->"}]}}return yZ=e,yZ}var _Z,X2e;function bFn(){if(X2e)return _Z;X2e=1;function e(n){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:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},n.COMMENT("\\*",";"),n.C_BLOCK_COMMENT_MODE]}}return _Z=e,_Z}var bZ,Q2e;function SFn(){if(Q2e)return bZ;Q2e=1;function e(n){const r={className:"meta",begin:"@[A-Za-z]+"},i={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},o={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE,i]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[i],relevance:10}]},a={className:"symbol",begin:"'\\w[\\w\\d_]*(?!')"},s={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},l={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},c={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[s]},l]},u={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[l]};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:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,o,a,s,u,c,n.C_NUMBER_MODE,r]}}return bZ=e,bZ}var SZ,Z2e;function EFn(){if(Z2e)return SZ;Z2e=1;function e(n){const r="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",i="(-|\\+)?\\d+([./]\\d+)?",o=i+"[+\\-]"+i+"i",a={$pattern:r,"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?"},s={className:"literal",begin:"(#t|#f|#\\\\"+r+"|#\\\\.)"},l={className:"number",variants:[{begin:i,relevance:0},{begin:o,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},c=n.QUOTE_STRING_MODE,u=[n.COMMENT(";","$",{relevance:0}),n.COMMENT("#\\|","\\|#")],d={begin:r,relevance:0},f={className:"symbol",begin:"'"+r},p={endsWithParent:!0,relevance:0},h={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",s,c,l,d,f]}]},g={className:"name",relevance:0,begin:r,keywords:a},y={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[g,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[d]}]},g,p]};return p.contains=[s,l,c,d,f,h,y].concat(u),{name:"Scheme",illegal:/\S/,contains:[n.SHEBANG(),l,c,f,h,y].concat(u)}}return SZ=e,SZ}var EZ,J2e;function CFn(){if(J2e)return EZ;J2e=1;function e(n){const r=[n.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[n.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:[n.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:r},n.COMMENT("//","$")].concat(r)}}return EZ=e,EZ}var CZ,ePe;function wFn(){if(ePe)return CZ;ePe=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]}}),n=["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"],r=["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"],i=["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"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],a=["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 s(l){const c=e(l),u=o,d=i,f="@[a-z-]+",p="and or not only",g={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b"};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},c.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+n.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+d.join("|")+")"},{className:"selector-pseudo",begin:"::("+u.join("|")+")"},g,{begin:/\(/,end:/\)/,contains:[l.CSS_NUMBER_MODE]},{className:"attribute",begin:"\\b("+a.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:[g,c.HEXCOLOR,l.CSS_NUMBER_MODE,l.QUOTE_STRING_MODE,l.APOS_STRING_MODE,c.IMPORTANT]},{begin:"@(page|font-face)",lexemes:f,keywords:"@page @font-face"},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:p,attribute:r.join(" ")},contains:[{begin:f,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},g,l.QUOTE_STRING_MODE,l.APOS_STRING_MODE,c.HEXCOLOR,l.CSS_NUMBER_MODE]}]}}return CZ=s,CZ}var wZ,tPe;function xFn(){if(tPe)return wZ;tPe=1;function e(n){return{name:"Shell Session",aliases:["console"],contains:[{className:"meta",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#]/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return wZ=e,wZ}var xZ,nPe;function TFn(){if(nPe)return xZ;nPe=1;function e(n){const r=["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"],i=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],o=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},n.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("+o.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+r.join("|")+")\\s"},{begin:"\\s("+r.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+i.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;:
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return xZ=e,xZ}var TZ,rPe;function OFn(){if(rPe)return TZ;rPe=1;function e(n){const r="[a-z][a-zA-Z0-9_]*",i={className:"string",begin:"\\$.{1}"},o={className:"symbol",begin:"#"+n.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:"self super nil true false thisContext",contains:[n.COMMENT('"','"'),n.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:r+":",relevance:0},n.C_NUMBER_MODE,o,i,{begin:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+r}]},{begin:"#\\(",end:"\\)",contains:[n.APOS_STRING_MODE,i,n.C_NUMBER_MODE,o]}]}}return TZ=e,TZ}var OZ,iPe;function RFn(){if(iPe)return OZ;iPe=1;function e(n){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},n.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']*"},n.inherit(n.APOS_STRING_MODE,{className:"string",relevance:0}),n.inherit(n.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 OZ=e,OZ}var RZ,oPe;function IFn(){if(oPe)return RZ;oPe=1;function e(n){const r={className:"variable",begin:/\b_+[a-zA-Z]\w*/},i={className:"title",begin:/[a-zA-Z][a-zA-Z0-9]+_fnc_\w*/},o={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},a={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"define undef ifdef ifndef else endif include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(o,{className:"meta-string"}),{className:"meta-string",begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},n.C_LINE_COMMENT_MODE,n.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:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.NUMBER_MODE,r,i,o,a],illegal:/#|^\$ /}}return RZ=e,RZ}var IZ,aPe;function NFn(){if(aPe)return IZ;aPe=1;function e(n){var r=n.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:"`"},n.C_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE,r,n.HASH_COMMENT_MODE]},n.C_BLOCK_COMMENT_MODE,r,n.HASH_COMMENT_MODE]}}return IZ=e,IZ}var NZ,sPe;function MFn(){if(sPe)return NZ;sPe=1;function e(o){return o?typeof o=="string"?o:o.source:null}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=o.COMMENT("--","$"),s={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},l={begin:/"/,end:/"/,contains:[{begin:/""/}]},c=["true","false","unknown"],u=["double precision","large object","with timezone","without timezone"],d=["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"],f=["add","asc","collation","desc","final","first","last","view"],p=["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"],h=["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"],g=["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"],v=["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"],y=h,_=[...p,...f].filter(C=>!h.includes(C)),S={className:"variable",begin:/@[a-z0-9]+/},b={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},E={begin:n(/\b/,r(...y),/\s*\(/),keywords:{built_in:y}};function w(C,{exceptions:x,when:T}={}){const R=T;return x=x||[],C.map(O=>O.match(/\|\d+$/)||x.includes(O)?O:R(O)?`${O}|0`:O)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:w(_,{when:C=>C.length<3}),literal:c,type:d,built_in:g},contains:[{begin:r(...v),keywords:{$pattern:/[\w\.]+/,keyword:_.concat(v),literal:c,type:d}},{className:"type",begin:r(...u)},E,S,s,l,o.C_NUMBER_MODE,o.C_BLOCK_COMMENT_MODE,a,b]}}return NZ=i,NZ}var MZ,lPe;function PFn(){if(lPe)return MZ;lPe=1;function e(n){const r=["functions","model","data","parameters","quantities","transformed","generated"],i=["for","in","if","else","while","break","continue","return"],o=["print","reject","increment_log_prob|10","integrate_ode|10","integrate_ode_rk45|10","integrate_ode_bdf|10","algebra_solver"],a=["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"],s=["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"],l=["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:n.IDENT_RE,title:r,keyword:i.concat(a).concat(o),built_in:s},contains:[n.C_LINE_COMMENT_MODE,n.COMMENT(/#/,/$/,{relevance:0,keywords:{"meta-keyword":"include"}}),n.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*("+n.IDENT_RE+")\\s*\\(",keywords:l},{className:"number",variants:[{begin:/\b\d+(?:\.\d*)?(?:[eE][+-]?\d+)?/},{begin:/\.\d+(?:[eE][+-]?\d+)?\b/}],relevance:0},{className:"string",begin:'"',end:'"',relevance:0}]}}return MZ=e,MZ}var PZ,cPe;function AFn(){if(cPe)return PZ;cPe=1;function e(n){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)(?=\\()"}]},n.COMMENT("^[ ]*\\*.*$",!1),n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]}}return PZ=e,PZ}var AZ,uPe;function DFn(){if(uPe)return AZ;uPe=1;function e(n){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},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.COMMENT("/\\*\\*!","\\*/"),n.C_NUMBER_MODE,n.inherit(n.APOS_STRING_MODE,{illegal:null}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return AZ=e,AZ}var DZ,dPe;function kFn(){if(dPe)return DZ;dPe=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]}}),n=["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"],r=["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"],i=["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"],o=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],a=["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 s(l){const c=e(l),u="and or not only",d={className:"variable",begin:"\\$"+l.IDENT_RE},f=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],p="(?=[.\\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:[l.QUOTE_STRING_MODE,l.APOS_STRING_MODE,l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,c.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+p,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+p,className:"selector-id"},{begin:"\\b("+n.join("|")+")"+p,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+i.join("|")+")"+p},{className:"selector-pseudo",begin:"&?::("+o.join("|")+")"+p},c.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:u,attribute:r.join(" ")},contains:[l.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+f.join("|")+"))\\b"},d,l.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:[c.HEXCOLOR,d,l.APOS_STRING_MODE,l.CSS_NUMBER_MODE,l.QUOTE_STRING_MODE]}]},{className:"attribute",begin:"\\b("+a.join("|")+")\\b",starts:{end:/;|$/,contains:[c.HEXCOLOR,d,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,l.CSS_NUMBER_MODE,l.C_BLOCK_COMMENT_MODE,c.IMPORTANT],illegal:/\./,relevance:0}}]}}return DZ=s,DZ}var kZ,fPe;function LFn(){if(fPe)return kZ;fPe=1;function e(n){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 kZ=e,kZ}var LZ,pPe;function $Fn(){if(pPe)return LZ;pPe=1;function e(x){return x?typeof x=="string"?x:x.source:null}function n(x){return r("(?=",x,")")}function r(...x){return x.map(R=>e(R)).join("")}function i(...x){return"("+x.map(R=>e(R)).join("|")+")"}const o=x=>r(/\b/,x,/\w$/.test(x)?/\b/:/\B/),a=["Protocol","Type"].map(o),s=["init","self"].map(o),l=["Any","Self"],c=["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"],u=["false","nil","true"],d=["assignment","associativity","higherThan","left","lowerThan","none","right"],f=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],p=["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"],h=i(/[/=\-+!*%<>&|^~?]/,/[\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]/),g=i(h,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),v=r(h,g,"*"),y=i(/[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]/),_=i(y,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),S=r(y,_,"*"),b=r(/[A-Z]/,_,"*"),E=["autoclosure",r(/convention\(/,i("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,S,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","testable","UIApplicationMain","unknown","usableFromInline"],w=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function C(x){const T={match:/\s+/,relevance:0},R=x.COMMENT("/\\*","\\*/",{contains:["self"]}),O=[x.C_LINE_COMMENT_MODE,R],M={className:"keyword",begin:r(/\./,n(i(...a,...s))),end:i(...a,...s),excludeBegin:!0},P={match:r(/\./,i(...c)),relevance:0},k=c.filter($e=>typeof $e=="string").concat(["_|0"]),$=c.filter($e=>typeof $e!="string").concat(l).map(o),U={variants:[{className:"keyword",match:i(...$,...s)}]},z={$pattern:i(/\b\w+/,/#\w+/),keyword:k.concat(f),literal:u},D=[M,P,U],B={match:r(/\./,i(...p)),relevance:0},Y={className:"built_in",match:r(/\b/,i(...p),/(?=\()/)},q=[B,Y],K={match:/->/,relevance:0},H={className:"operator",relevance:0,variants:[{match:v},{match:`\\.(\\.|${g})+`}]},G=[K,H],Q="([0-9]_*)+",le="([0-9a-fA-F]_*)+",Z={className:"number",relevance:0,variants:[{match:`\\b(${Q})(\\.(${Q}))?([eE][+-]?(${Q}))?\\b`},{match:`\\b0x(${le})(\\.(${le}))?([pP][+-]?(${Q}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},j=($e="")=>({className:"subst",variants:[{match:r(/\\/,$e,/[0\\tnr"']/)},{match:r(/\\/,$e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),F=($e="")=>({className:"subst",match:r(/\\/,$e,/[\t ]*(?:[\r\n]|\r\n)/)}),te=($e="")=>({className:"subst",label:"interpol",begin:r(/\\/,$e,/\(/),end:/\)/}),oe=($e="")=>({begin:r($e,/"""/),end:r(/"""/,$e),contains:[j($e),F($e),te($e)]}),de=($e="")=>({begin:r($e,/"/),end:r(/"/,$e),contains:[j($e),te($e)]}),pe={className:"string",variants:[oe(),oe("#"),oe("##"),oe("###"),de(),de("#"),de("##"),de("###")]},me={match:r(/`/,S,/`/)},ve={className:"variable",match:/\$\d+/},he={className:"variable",match:`\\$${_}+`},be=[me,ve,he],we={match:/(@|#)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:w,contains:[...G,Z,pe]}]}},De={className:"keyword",match:r(/@/,i(...E))},Ae={className:"meta",match:r(/@/,S)},Ee=[we,De,Ae],Re={match:n(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,_,"+")},{className:"type",match:b,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,n(b)),relevance:0}]},Te={begin:/</,end:/>/,keywords:z,contains:[...O,...D,...Ee,K,Re]};Re.contains.push(Te);const Oe={match:r(S,/\s*:/),keywords:"_|0",relevance:0},Ne={begin:/\(/,end:/\)/,relevance:0,keywords:z,contains:["self",Oe,...O,...D,...q,...G,Z,pe,...be,...Ee,Re]},je={beginKeywords:"func",contains:[{className:"title",match:i(me.match,S,v),endsParent:!0,relevance:0},T]},ne={begin:/</,end:/>/,contains:[...O,Re]},J={begin:i(n(r(S,/\s*:/)),n(r(S,/\s+/,S,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:S}]},ae={begin:/\(/,end:/\)/,keywords:z,contains:[J,...O,...D,...G,Z,pe,...Ee,Re,Ne],endsParent:!0,illegal:/["']/},Se={className:"function",match:n(/\bfunc\b/),contains:[je,ne,ae,T],illegal:[/\[/,/%/]},xe={className:"function",match:/\b(subscript|init[?!]?)\s*(?=[<(])/,keywords:{keyword:"subscript init init? init!",$pattern:/\w+[?!]?/},contains:[ne,ae,T],illegal:/\[|%/},ue={beginKeywords:"operator",end:x.MATCH_NOTHING_RE,contains:[{className:"title",match:v,endsParent:!0,relevance:0}]},Me={beginKeywords:"precedencegroup",end:x.MATCH_NOTHING_RE,contains:[{className:"title",match:b,relevance:0},{begin:/{/,end:/}/,relevance:0,endsParent:!0,keywords:[...d,...u],contains:[Re]}]};for(const $e of pe.variants){const ge=$e.contains.find(st=>st.label==="interpol");ge.keywords=z;const Ve=[...D,...q,...G,Z,pe,...be];ge.contains=[...Ve,{begin:/\(/,end:/\)/,contains:["self",...Ve]}]}return{name:"Swift",keywords:z,contains:[...O,Se,xe,{className:"class",beginKeywords:"struct protocol class extension enum",end:"\\{",excludeEnd:!0,keywords:z,contains:[x.inherit(x.TITLE_MODE,{begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...D]},ue,Me,{beginKeywords:"import",end:/$/,contains:[...O],relevance:0},...D,...q,...G,Z,pe,...be,...Ee,Re,Ne]}}return LZ=C,LZ}var $Z,hPe;function FFn(){if(hPe)return $Z;hPe=1;function e(n){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 $Z=e,$Z}var FZ,gPe;function BFn(){if(gPe)return FZ;gPe=1;function e(n){var r="true false yes no null",i="[\\w#;/?:@&=+$,.~*'()[\\]]+",o={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},a={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},s={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[n.BACKSLASH_ESCAPE,a]},l=n.inherit(s,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),c="[0-9]{4}(-[0-9][0-9]){0,2}",u="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",d="(\\.[0-9]*)?",f="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",p={className:"number",begin:"\\b"+c+u+d+f+"\\b"},h={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},g={begin:/\{/,end:/\}/,contains:[h],illegal:"\\n",relevance:0},v={begin:"\\[",end:"\\]",contains:[h],illegal:"\\n",relevance:0},y=[o,{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+!"+i},{className:"type",begin:"!<"+i+">"},{className:"type",begin:"!"+i},{className:"type",begin:"!!"+i},{className:"meta",begin:"&"+n.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+n.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},n.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},p,{className:"number",begin:n.C_NUMBER_RE+"\\b",relevance:0},g,v,s],_=[...y];return _.pop(),_.push(l),h.contains=_,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:y}}return FZ=e,FZ}var BZ,mPe;function jFn(){if(mPe)return BZ;mPe=1;function e(n){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[n.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 BZ=e,BZ}var jZ,vPe;function UFn(){if(vPe)return jZ;vPe=1;function e(o){return o?typeof o=="string"?o:o.source:null}function n(o){return r("(",o,")?")}function r(...o){return o.map(s=>e(s)).join("")}function i(o){const a=/[a-zA-Z_][a-zA-Z0-9_]*/,s={className:"number",variants:[o.BINARY_NUMBER_MODE,o.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:[o.COMMENT(";[ \\t]*#","$"),o.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:r(/\$/,n(/::/),a,"(::",a,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[s]}]},{className:"string",contains:[o.BACKSLASH_ESCAPE],variants:[o.inherit(o.QUOTE_STRING_MODE,{illegal:null})]},s]}}return jZ=i,jZ}var UZ,yPe;function HFn(){if(yPe)return UZ;yPe=1;function e(n){const r="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:r,literal:"true false"},contains:[n.QUOTE_STRING_MODE,n.NUMBER_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[n.inherit(n.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",end:">",keywords:r,contains:["self"]}]}}return UZ=e,UZ}var HZ,_Pe;function zFn(){if(_Pe)return HZ;_Pe=1;function e(n){const r={className:"number",begin:"[1-9][0-9]*",relevance:0},i={className:"symbol",begin:":[^\\]]+"},o={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",r,i]},a={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",r,n.QUOTE_STRING_MODE,i]};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:[o,a,{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},n.COMMENT("//","[;$]"),n.COMMENT("!","[;$]"),n.COMMENT("--eg:","$"),n.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},n.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}return HZ=e,HZ}var zZ,bPe;function VFn(){if(bPe)return zZ;bPe=1;function e(n){var r={className:"params",begin:"\\(",end:"\\)"},i="attribute block constant cycle date dump include max min parent random range source template_from_string",o={beginKeywords:i,keywords:{name:i},relevance:0,contains:[r]},a={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:[o]},s="apply autoescape block deprecated do embed extends filter flush for from if import include macro sandbox set use verbatim with";return s=s+" "+s.split(" ").map(function(l){return"end"+l}).join(" "),{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[n.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:s,starts:{endsWithParent:!0,contains:[a,o],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",a,o]}]}}return zZ=e,zZ}var VZ,SPe;function GFn(){if(SPe)return VZ;SPe=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",n=["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"],r=["true","false","null","undefined","NaN","Infinity"],i=["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"],o=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","module","global"],l=[].concat(a,s,i,o);function c(h){return h?typeof h=="string"?h:h.source:null}function u(h){return d("(?=",h,")")}function d(...h){return h.map(v=>c(v)).join("")}function f(h){const g=(D,{after:B})=>{const Y="</"+D[0].slice(1);return D.input.indexOf(Y,B)!==-1},v=e,y={begin:"<>",end:"</>"},_={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(D,B)=>{const Y=D[0].length+D.index,q=D.input[Y];if(q==="<"){B.ignoreMatch();return}q===">"&&(g(D,{after:Y})||B.ignoreMatch())}},S={$pattern:e,keyword:n,literal:r,built_in:l},b="[0-9](_?[0-9])*",E=`\\.(${b})`,w="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",C={className:"number",variants:[{begin:`(\\b(${w})((${E})|\\.)?|(${E}))[eE][+-]?(${b})\\b`},{begin:`\\b(${w})\\b((${E})\\b|\\.)?|(${E})\\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},x={className:"subst",begin:"\\$\\{",end:"\\}",keywords:S,contains:[]},T={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,x],subLanguage:"xml"}},R={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,x],subLanguage:"css"}},O={className:"string",begin:"`",end:"`",contains:[h.BACKSLASH_ESCAPE,x]},P={className:"comment",variants:[h.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:v+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),h.C_BLOCK_COMMENT_MODE,h.C_LINE_COMMENT_MODE]},k=[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,T,R,O,C,h.REGEXP_MODE];x.contains=k.concat({begin:/\{/,end:/\}/,keywords:S,contains:["self"].concat(k)});const $=[].concat(P,x.contains),U=$.concat([{begin:/\(/,end:/\)/,keywords:S,contains:["self"].concat($)}]),z={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:U};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:S,exports:{PARAMS_CONTAINS:U},illegal:/#(?![$_A-z])/,contains:[h.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,T,R,O,P,C,{begin:d(/[{,\n]\s*/,u(d(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,v+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:v+u("\\s*:"),relevance:0}]},{begin:"("+h.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[P,h.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+h.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:h.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:S,contains:U}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:y.begin,end:y.end},{begin:_.begin,"on:begin":_.isTrulyOpeningTag,end:_.end}],subLanguage:"xml",contains:[{begin:_.begin,end:_.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:S,contains:["self",h.inherit(h.TITLE_MODE,{begin:v}),z],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:h.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[z,h.inherit(h.TITLE_MODE,{begin:v})]},{variants:[{begin:"\\."+v},{begin:"\\$"+v}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},h.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[h.inherit(h.TITLE_MODE,{begin:v}),"self",z]},{begin:"(get|set)\\s+(?="+v+"\\()",end:/\{/,keywords:"get set",contains:[h.inherit(h.TITLE_MODE,{begin:v}),{begin:/\(\)/},z]},{begin:/\$[(.]/}]}}function p(h){const g=e,v={beginKeywords:"namespace",end:/\{/,excludeEnd:!0},y={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},_={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},S=["any","void","number","boolean","string","object","never","enum"],b=["type","namespace","typedef","interface","public","private","protected","implements","declare","abstract","readonly"],E={$pattern:e,keyword:n.concat(b),literal:r,built_in:l.concat(S)},w={className:"meta",begin:"@"+g},C=(R,O,M)=>{const P=R.contains.findIndex(k=>k.label===O);if(P===-1)throw new Error("can not find mode to replace");R.contains.splice(P,1,M)},x=f(h);Object.assign(x.keywords,E),x.exports.PARAMS_CONTAINS.push(w),x.contains=x.contains.concat([w,v,y]),C(x,"shebang",h.SHEBANG()),C(x,"use_strict",_);const T=x.contains.find(R=>R.className==="function");return T.relevance=0,Object.assign(x,{name:"TypeScript",aliases:["ts","tsx"]}),x}return VZ=p,VZ}var GZ,EPe;function WFn(){if(EPe)return GZ;EPe=1;function e(n){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:[n.UNDERSCORE_TITLE_MODE]},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$",relevance:2}]}}return GZ=e,GZ}var WZ,CPe;function YFn(){if(CPe)return WZ;CPe=1;function e(o){return o?typeof o=="string"?o:o.source:null}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:"string",begin:/"(""|[^/n])"C\b/},s={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},l=/\d{1,2}\/\d{1,2}\/\d{4}/,c=/\d{4}-\d{1,2}-\d{1,2}/,u=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,d=/\d{1,2}(:\d{1,2}){1,2}/,f={className:"literal",variants:[{begin:n(/# */,r(c,l),/ *#/)},{begin:n(/# */,d,/ *#/)},{begin:n(/# */,u,/ *#/)},{begin:n(/# */,r(c,l),/ +/,r(u,d),/ *#/)}]},p={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])|[%&])?/}]},h={className:"label",begin:/^\w+:/},g=o.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),v=o.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:[a,s,f,p,h,g,v,{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:[v]}]}}return WZ=i,WZ}var YZ,wPe;function qFn(){if(wPe)return YZ;wPe=1;function e(o){return o?typeof o=="string"?o:o.source:null}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="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(" "),s=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],l={begin:n(r(...a),"\\s*\\("),relevance:0,keywords:{built_in:a}};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:s,literal:"true false null nothing empty"},illegal:"//",contains:[l,o.inherit(o.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),o.COMMENT(/'/,/$/,{relevance:0}),o.C_NUMBER_MODE]}}return YZ=i,YZ}var qZ,xPe;function KFn(){if(xPe)return qZ;xPe=1;function e(n){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return qZ=e,qZ}var KZ,TPe;function XFn(){if(TPe)return KZ;TPe=1;function e(n){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:[n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE,n.QUOTE_STRING_MODE,{className:"number",contains:[n.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 KZ=e,KZ}var XZ,OPe;function QFn(){if(OPe)return XZ;OPe=1;function e(n){const r="\\d(_|\\d)*",i="[eE][-+]?"+r,o=r+"(\\."+r+")?("+i+")?",a="\\w+",l="\\b("+(r+"#"+a+"(\\."+a+")?#("+i+")?")+"|"+o+")";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:[n.C_BLOCK_COMMENT_MODE,n.COMMENT("--","$"),n.QUOTE_STRING_MODE,{className:"number",begin:l,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[n.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[n.BACKSLASH_ESCAPE]}]}}return XZ=e,XZ}var QZ,RPe;function ZFn(){if(RPe)return QZ;RPe=1;function e(n){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:[n.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},n.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]*/},{className:"function",beginKeywords:"function function!",end:"$",relevance:0,contains:[n.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}return QZ=e,QZ}var ZZ,IPe;function JFn(){if(IPe)return ZZ;IPe=1;function e(n){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+n.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:[n.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"}]},n.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 ZZ=e,ZZ}var JZ,NPe;function e8n(){if(NPe)return JZ;NPe=1;function e(n){const i={$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"},o={className:"string",begin:'"',end:'"',illegal:"\\n"},a={className:"string",begin:"'",end:"'",illegal:"\\n"},s={className:"string",begin:"<<",end:">>"},l={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},c={beginKeywords:"import",end:"$",keywords:i,contains:[o]},u={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[n.inherit(n.TITLE_MODE,{starts:{endsWithParent:!0,keywords:i}})]};return{name:"XL",aliases:["tao"],keywords:i,contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,o,a,s,u,c,l,n.NUMBER_MODE]}}return JZ=e,JZ}var eJ,MPe;function t8n(){if(MPe)return eJ;MPe=1;function e(n){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 eJ=e,eJ}var tJ,PPe;function n8n(){if(PPe)return tJ;PPe=1;function e(n){const r={className:"string",contains:[n.BACKSLASH_ESCAPE],variants:[n.inherit(n.APOS_STRING_MODE,{illegal:null}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null})]},i=n.UNDERSCORE_TITLE_MODE,o={variants:[n.BINARY_NUMBER_MODE,n.C_NUMBER_MODE]},a="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:a,contains:[n.C_LINE_COMMENT_MODE,n.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[n.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[i,{className:"params",begin:/\(/,end:/\)/,keywords:a,contains:["self",n.C_BLOCK_COMMENT_MODE,r,o]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},i]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[i]},{beginKeywords:"use",end:/;/,contains:[i]},{begin:/=>/},r,o]}}return tJ=e,tJ}var wt=jI,r8n=wt;wt.registerLanguage("1c",R4n());wt.registerLanguage("abnf",I4n());wt.registerLanguage("accesslog",N4n());wt.registerLanguage("actionscript",M4n());wt.registerLanguage("ada",P4n());wt.registerLanguage("angelscript",A4n());wt.registerLanguage("apache",D4n());wt.registerLanguage("applescript",k4n());wt.registerLanguage("arcade",L4n());wt.registerLanguage("arduino",$4n());wt.registerLanguage("armasm",F4n());wt.registerLanguage("xml",B4n());wt.registerLanguage("asciidoc",j4n());wt.registerLanguage("aspectj",U4n());wt.registerLanguage("autohotkey",H4n());wt.registerLanguage("autoit",z4n());wt.registerLanguage("avrasm",V4n());wt.registerLanguage("awk",G4n());wt.registerLanguage("axapta",W4n());wt.registerLanguage("bash",Y4n());wt.registerLanguage("basic",q4n());wt.registerLanguage("bnf",K4n());wt.registerLanguage("brainfuck",X4n());wt.registerLanguage("c-like",Q4n());wt.registerLanguage("c",Z4n());wt.registerLanguage("cal",J4n());wt.registerLanguage("capnproto",e5n());wt.registerLanguage("ceylon",t5n());wt.registerLanguage("clean",n5n());wt.registerLanguage("clojure",r5n());wt.registerLanguage("clojure-repl",i5n());wt.registerLanguage("cmake",o5n());wt.registerLanguage("coffeescript",a5n());wt.registerLanguage("coq",s5n());wt.registerLanguage("cos",l5n());wt.registerLanguage("cpp",c5n());wt.registerLanguage("crmsh",u5n());wt.registerLanguage("crystal",d5n());wt.registerLanguage("csharp",f5n());wt.registerLanguage("csp",p5n());wt.registerLanguage("css",h5n());wt.registerLanguage("d",g5n());wt.registerLanguage("markdown",m5n());wt.registerLanguage("dart",v5n());wt.registerLanguage("delphi",y5n());wt.registerLanguage("diff",_5n());wt.registerLanguage("django",b5n());wt.registerLanguage("dns",S5n());wt.registerLanguage("dockerfile",E5n());wt.registerLanguage("dos",C5n());wt.registerLanguage("dsconfig",w5n());wt.registerLanguage("dts",x5n());wt.registerLanguage("dust",T5n());wt.registerLanguage("ebnf",O5n());wt.registerLanguage("elixir",R5n());wt.registerLanguage("elm",I5n());wt.registerLanguage("ruby",N5n());wt.registerLanguage("erb",M5n());wt.registerLanguage("erlang-repl",P5n());wt.registerLanguage("erlang",A5n());wt.registerLanguage("excel",D5n());wt.registerLanguage("fix",k5n());wt.registerLanguage("flix",L5n());wt.registerLanguage("fortran",$5n());wt.registerLanguage("fsharp",F5n());wt.registerLanguage("gams",B5n());wt.registerLanguage("gauss",j5n());wt.registerLanguage("gcode",U5n());wt.registerLanguage("gherkin",H5n());wt.registerLanguage("glsl",z5n());wt.registerLanguage("gml",V5n());wt.registerLanguage("go",G5n());wt.registerLanguage("golo",W5n());wt.registerLanguage("gradle",Y5n());wt.registerLanguage("groovy",q5n());wt.registerLanguage("haml",K5n());wt.registerLanguage("handlebars",X5n());wt.registerLanguage("haskell",Q5n());wt.registerLanguage("haxe",Z5n());wt.registerLanguage("hsp",J5n());wt.registerLanguage("htmlbars",e6n());wt.registerLanguage("http",t6n());wt.registerLanguage("hy",n6n());wt.registerLanguage("inform7",r6n());wt.registerLanguage("ini",i6n());wt.registerLanguage("irpf90",o6n());wt.registerLanguage("isbl",a6n());wt.registerLanguage("java",s6n());wt.registerLanguage("javascript",l6n());wt.registerLanguage("jboss-cli",c6n());wt.registerLanguage("json",u6n());wt.registerLanguage("julia",d6n());wt.registerLanguage("julia-repl",f6n());wt.registerLanguage("kotlin",p6n());wt.registerLanguage("lasso",h6n());wt.registerLanguage("latex",g6n());wt.registerLanguage("ldif",m6n());wt.registerLanguage("leaf",v6n());wt.registerLanguage("less",y6n());wt.registerLanguage("lisp",_6n());wt.registerLanguage("livecodeserver",b6n());wt.registerLanguage("livescript",S6n());wt.registerLanguage("llvm",E6n());wt.registerLanguage("lsl",C6n());wt.registerLanguage("lua",w6n());wt.registerLanguage("makefile",x6n());wt.registerLanguage("mathematica",T6n());wt.registerLanguage("matlab",O6n());wt.registerLanguage("maxima",R6n());wt.registerLanguage("mel",I6n());wt.registerLanguage("mercury",N6n());wt.registerLanguage("mipsasm",M6n());wt.registerLanguage("mizar",P6n());wt.registerLanguage("perl",A6n());wt.registerLanguage("mojolicious",D6n());wt.registerLanguage("monkey",k6n());wt.registerLanguage("moonscript",L6n());wt.registerLanguage("n1ql",$6n());wt.registerLanguage("nginx",F6n());wt.registerLanguage("nim",B6n());wt.registerLanguage("nix",j6n());wt.registerLanguage("node-repl",U6n());wt.registerLanguage("nsis",H6n());wt.registerLanguage("objectivec",z6n());wt.registerLanguage("ocaml",V6n());wt.registerLanguage("openscad",G6n());wt.registerLanguage("oxygene",W6n());wt.registerLanguage("parser3",Y6n());wt.registerLanguage("pf",q6n());wt.registerLanguage("pgsql",K6n());wt.registerLanguage("php",X6n());wt.registerLanguage("php-template",Q6n());wt.registerLanguage("plaintext",Z6n());wt.registerLanguage("pony",J6n());wt.registerLanguage("powershell",eFn());wt.registerLanguage("processing",tFn());wt.registerLanguage("profile",nFn());wt.registerLanguage("prolog",rFn());wt.registerLanguage("properties",iFn());wt.registerLanguage("protobuf",oFn());wt.registerLanguage("puppet",aFn());wt.registerLanguage("purebasic",sFn());wt.registerLanguage("python",lFn());wt.registerLanguage("python-repl",cFn());wt.registerLanguage("q",uFn());wt.registerLanguage("qml",dFn());wt.registerLanguage("r",fFn());wt.registerLanguage("reasonml",pFn());wt.registerLanguage("rib",hFn());wt.registerLanguage("roboconf",gFn());wt.registerLanguage("routeros",mFn());wt.registerLanguage("rsl",vFn());wt.registerLanguage("ruleslanguage",yFn());wt.registerLanguage("rust",_Fn());wt.registerLanguage("sas",bFn());wt.registerLanguage("scala",SFn());wt.registerLanguage("scheme",EFn());wt.registerLanguage("scilab",CFn());wt.registerLanguage("scss",wFn());wt.registerLanguage("shell",xFn());wt.registerLanguage("smali",TFn());wt.registerLanguage("smalltalk",OFn());wt.registerLanguage("sml",RFn());wt.registerLanguage("sqf",IFn());wt.registerLanguage("sql_more",NFn());wt.registerLanguage("sql",MFn());wt.registerLanguage("stan",PFn());wt.registerLanguage("stata",AFn());wt.registerLanguage("step21",DFn());wt.registerLanguage("stylus",kFn());wt.registerLanguage("subunit",LFn());wt.registerLanguage("swift",$Fn());wt.registerLanguage("taggerscript",FFn());wt.registerLanguage("yaml",BFn());wt.registerLanguage("tap",jFn());wt.registerLanguage("tcl",UFn());wt.registerLanguage("thrift",HFn());wt.registerLanguage("tp",zFn());wt.registerLanguage("twig",VFn());wt.registerLanguage("typescript",GFn());wt.registerLanguage("vala",WFn());wt.registerLanguage("vbnet",YFn());wt.registerLanguage("vbscript",qFn());wt.registerLanguage("vbscript-html",KFn());wt.registerLanguage("verilog",XFn());wt.registerLanguage("vhdl",QFn());wt.registerLanguage("vim",ZFn());wt.registerLanguage("x86asm",JFn());wt.registerLanguage("xl",e8n());wt.registerLanguage("xquery",t8n());wt.registerLanguage("zephir",n8n());const i8n=Or(r8n),o8n=["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 KZe=_3n(i8n,b3n);KZe.supportedLanguages=o8n;const a8n={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"}},s8n={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%"}},l8n=({visible:e,onClose:n,nodes:r,edges:i})=>{const o=Fr(),{isDarkMode:a}=Pu(),s={nodes:r,edges:i};return N.jsx(fa,{title:o.formatMessage({id:"flow.json"}),open:e,onCancel:n,width:800,footer:null,children:N.jsx("div",{style:{maxHeight:"70vh",overflow:"auto"},children:N.jsx(KZe,{language:"json",style:a?s8n:a8n,customStyle:{padding:"20px",borderRadius:"4px"},children:JSON.stringify(s,null,2)})})})},{Header:c8n}=bo,XZe=()=>{const[e,n]=m.useState(null),[r,i]=m.useState(!1),{nodes:o,edges:a}=PZe(),s=Fr(),{isDarkMode:l}=Pu(),[c,u]=m.useState(!1),{headerStyle:d}=u_();m.useEffect(()=>{const w=()=>{n(null)};return window.addEventListener("flow-node-deselect",w),()=>{window.removeEventListener("flow-node-deselect",w)}},[]);const f=w=>{n(w)},p=w=>{n(w),i(!0)},h=(w,C)=>{window.dispatchEvent(new CustomEvent("flow-node-update",{detail:{nodeId:w,data:C}}))},g=()=>{const C=JSON.stringify({nodes:o,edges:a},null,2),x=new Blob([C],{type:"application/json"}),T=URL.createObjectURL(x),R=document.createElement("a");R.download="flow-data.json",R.href=T,R.click(),URL.revokeObjectURL(T)},v=w=>{const C=new FileReader;return C.onload=x=>{var T;try{const R=JSON.parse((T=x.target)==null?void 0:T.result);window.dispatchEvent(new CustomEvent("flow-import",{detail:R})),Nt.success("导入成功")}catch{Nt.error("导入失败,请检查文件格式")}},C.readAsText(w),!1},y=()=>{var w;(w=window.bytedesk)==null||w.showChat()},_=()=>{var w;(w=window.bytedesk)==null||w.hideChat()},S=()=>{console.log("handleNewFlow")},b=()=>{u(!0)},E=()=>{u(!1)};return N.jsxs("div",{children:[N.jsxs(bo,{children:[N.jsx(c8n,{style:d,children:N.jsxs("div",{className:"header-content",children:[N.jsx("h1",{children:N.jsx("span",{className:"title-text",style:{color:l?"#fff":"#000"},children:s.formatMessage({id:"flow.title"})})}),N.jsxs("div",{className:"header-actions",children:[N.jsx(qn,{type:"primary",icon:N.jsx(_A,{}),style:{marginLeft:8},onClick:S,children:s.formatMessage({id:"flow.new"})}),N.jsx(qn,{type:"primary",icon:N.jsx(_A,{}),style:{marginLeft:8},onClick:b,children:s.formatMessage({id:"flow.json"})}),N.jsx(og,{beforeUpload:v,showUploadList:!1,accept:".json",children:N.jsx(qn,{type:"primary",icon:N.jsx(iS,{}),children:s.formatMessage({id:"flow.import"})})}),N.jsx(qn,{type:"primary",icon:N.jsx(Ok,{}),onClick:g,style:{marginLeft:8},children:s.formatMessage({id:"flow.export"})}),N.jsx(qn,{type:"primary",icon:N.jsx(ST,{}),onClick:y,children:s.formatMessage({id:"flow.startChat"})}),N.jsx(qn,{type:"primary",icon:N.jsx(Up,{}),onClick:_,children:s.formatMessage({id:"flow.closeChat"})})]})]})}),N.jsx(bo,{className:"main-layout",style:{background:l?"#141414":void 0},children:N.jsxs("div",{className:"main-content",style:{display:"flex",flex:1,background:l?"#141414":"#fff"},children:[N.jsx("div",{className:"left-panel",style:{width:280,flexShrink:0,borderRight:`1px solid ${l?"#303030":"#f0f0f0"}`,background:l?"#141414":"#fff"},children:N.jsx(g2n,{})}),N.jsx("div",{className:"center-panel",style:{flex:1},children:N.jsx(r3n,{onNodeClick:f,onPropertyClick:p})})]})})]}),N.jsx(Ade,{title:(e==null?void 0:e.data.title)||"属性设置",placement:"right",width:600,onClose:()=>i(!1),open:r,children:e&&N.jsx(i3n,{selectedNode:e,onNodeUpdate:h,onChildUpdate:(w,C,x)=>{console.log("onChildUpdate",w,C,x)},onChildDelete:(w,C)=>{console.log("onChildDelete",w,C)}})}),N.jsx(l8n,{visible:c,onClose:E,nodes:o,edges:a})]})};function Zn(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}function u8n(e,n){return n={exports:{}},e(n,n.exports),n.exports}var d8n=u8n(function(e){var n=e.exports=function(r,i){if(i||(i=16),r===void 0&&(r=128),r<=0)return"0";for(var o=Math.log(Math.pow(2,r))/Math.log(i),a=2;o===1/0;a*=2)o=Math.log(Math.pow(2,r/a))/Math.log(i)*a;for(var s=o-Math.floor(o),l="",a=0;a<Math.floor(o);a++){var c=Math.floor(Math.random()*i).toString(i);l=c+l}if(s){var u=Math.pow(i,s),c=Math.floor(Math.random()*u).toString(i);l=c+l}var d=parseInt(l,i);return d!==1/0&&d>=Math.pow(2,r)?n(r,i):l};n.rack=function(r,i,o){var a=function(l){var c=0;do{if(c++>10)if(o)r+=o;else throw new Error("too many ID collisions, use more bits");var u=n(r,i)}while(Object.hasOwnProperty.call(s,u));return s[u]=l,u},s=a.hats={};return a.get=function(l){return a.hats[l]},a.set=function(l,c){return a.hats[l]=c,a},a.bits=r||128,a.base=i||16,a}});function $m(e){if(!(this instanceof $m))return new $m(e);e=e||[128,36,1],this._seed=e.length?d8n.rack(e[0],e[1],e[2]):e}$m.prototype.next=function(e){return this._seed(e||!0)};$m.prototype.nextPrefixed=function(e,n){var r;do r=e+this.next(!0);while(this.assigned(r));return this.claim(r,n),r};$m.prototype.claim=function(e,n){this._seed.set(e,n||!0)};$m.prototype.assigned=function(e){return this._seed.get(e)||!1};$m.prototype.unclaim=function(e){delete this._seed.hats[e]};$m.prototype.clear=function(){var e=this._seed.hats,n;for(n in e)this.unclaim(n)};function hhe(e){return Array.prototype.concat.apply([],e)}const yL=Object.prototype.toString,f8n=Object.prototype.hasOwnProperty;function SC(e){return e===void 0}function bl(e){return e!==void 0}function JA(e){return e==null}function zr(e){return yL.call(e)==="[object Array]"}function Rl(e){return yL.call(e)==="[object Object]"}function Nr(e){return yL.call(e)==="[object Number]"}function zs(e){const n=yL.call(e);return n==="[object Function]"||n==="[object AsyncFunction]"||n==="[object GeneratorFunction]"||n==="[object AsyncGeneratorFunction]"||n==="[object Proxy]"}function vd(e){return yL.call(e)==="[object String]"}function p8n(e){if(!zr(e))throw new Error("must supply array")}function gu(e,n){return!JA(e)&&f8n.call(e,n)}function ki(e,n){const r=Sz(n);let i;return ht(e,function(o,a){if(r(o,a))return i=o,!1}),i}function QZe(e,n){const r=Sz(n);let i=zr(e)?-1:void 0;return ht(e,function(o,a){if(r(o,a))return i=a,!1}),i}function si(e,n){const r=Sz(n);let i=[];return ht(e,function(o,a){r(o,a)&&i.push(o)}),i}function ht(e,n){let r,i;if(SC(e))return;const o=zr(e)?y8n:v8n;for(let a in e)if(gu(e,a)&&(r=e[a],i=n(r,o(a)),i===!1))return r}function h8n(e,n){if(SC(e))return[];p8n(e);const r=Sz(n);return e.filter(function(i,o){return!r(i,o)})}function yd(e,n,r){return ht(e,function(i,o){r=n(r,i,o)}),r}function bw(e,n){return!!yd(e,function(r,i,o){return r&&n(i,o)},!0)}function fS(e,n){return!!ki(e,n)}function vc(e,n){let r=[];return ht(e,function(i,o){r.push(n(i,o))}),r}function GB(e){return e&&Object.keys(e)||[]}function g8n(e){return GB(e).length}function ghe(e){return vc(e,n=>n)}function UI(e,n,r={}){return n=mhe(n),ht(e,function(i){let o=n(i)||"_",a=r[o];a||(a=r[o]=[]),a.push(i)}),r}function ZZe(e,...n){e=mhe(e);let r={};return ht(n,o=>UI(o,e,r)),vc(r,function(o,a){return o[0]})}const m8n=ZZe;function Fm(e,n){n=mhe(n);let r=[];return ht(e,function(i,o){let a=n(i,o),s={d:a,v:i};for(var l=0;l<r.length;l++){let{d:c}=r[l];if(a<c){r.splice(l,0,s);return}}r.push(s)}),vc(r,i=>i.v)}function Kh(e){return function(n){return bw(e,function(r,i){return n[i]===r})}}function mhe(e){return zs(e)?e:n=>n[e]}function Sz(e){return zs(e)?e:n=>n===e}function v8n(e){return e}function y8n(e){return Number(e)}function JZe(e,n){let r,i,o,a;function s(f){let p=Date.now(),h=f?0:a+n-p;if(h>0)return l(h);e.apply(o,i),c()}function l(f){r=setTimeout(s,f)}function c(){r&&clearTimeout(r),r=a=i=o=void 0}function u(){r&&s(!0),c()}function d(...f){a=Date.now(),i=f,o=this,r||l(n)}return d.flush=u,d.cancel=c,d}function Eu(e,n){return e.bind(n)}function Rt(e,...n){return Object.assign(e,...n)}function _8n(e,n,r){let i=e;return ht(n,function(o,a){if(typeof o!="number"&&typeof o!="string")throw new Error("illegal key type: "+typeof o+". Key should be of type number or string.");if(o==="constructor")throw new Error("illegal key: constructor");if(o==="__proto__")throw new Error("illegal key: __proto__");let s=n[a+1],l=i[o];bl(s)&&JA(l)&&(l=i[o]=isNaN(+s)?{}:[]),SC(s)?SC(r)?delete i[o]:i[o]=r:i=l}),e}function sg(e,n){let r={},i=Object(e);return ht(n,function(o){o in i&&(r[o]=e[o])}),r}function ov(e,n){let r={},i=Object(e);return ht(i,function(o,a){n.indexOf(a)===-1&&(r[a]=o)}),r}function b8n(e,n){return n.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(i){if(i!=="default"&&!(i in e)){var o=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:function(){return r[i]}})}})}),Object.freeze(e)}const S8n=Object.prototype.toString,E8n=Object.prototype.hasOwnProperty;function C8n(e){return e===void 0}function w8n(e){return S8n.call(e)==="[object Array]"}function x8n(e,n){return E8n.call(e,n)}function APe(e,n){let r,i;if(C8n(e))return;const o=w8n(e)?O8n:T8n;for(let a in e)if(x8n(e,a)&&(r=e[a],i=n(r,o(a)),i===!1))return r}function T8n(e){return e}function O8n(e){return Number(e)}function dc(e,...n){const r=e.style;return APe(n,function(i){i&&APe(i,function(o,a){r[a]=o})}),e}function fc(e,n,r){return arguments.length==2?e.getAttribute(n):r===null?e.removeAttribute(n):(e.setAttribute(n,r),e)}const R8n=Object.prototype.toString;function Ga(e){return new P0(e)}function P0(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}P0.prototype.add=function(e){return this.list.add(e),this};P0.prototype.remove=function(e){return R8n.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)};P0.prototype.removeMatching=function(e){const n=this.array();for(let r=0;r<n.length;r++)e.test(n[r])&&this.remove(n[r]);return this};P0.prototype.toggle=function(e,n){return typeof n<"u"?n!==this.list.toggle(e,n)&&this.list.toggle(e):this.list.toggle(e),this};P0.prototype.array=function(){return Array.from(this.list)};P0.prototype.has=P0.prototype.contains=function(e){return this.list.contains(e)};function Ez(e){for(var n;n=e.firstChild;)e.removeChild(n);return e}function HI(e,n,r){var i=r?e:e.parentNode;return i&&typeof i.closest=="function"&&i.closest(n)||null}var WB={},YB,hae,vhe;function eJe(){YB=window.addEventListener?"addEventListener":"attachEvent",hae=window.removeEventListener?"removeEventListener":"detachEvent",vhe=YB!=="addEventListener"?"on":""}var I8n=WB.bind=function(e,n,r,i){return YB||eJe(),e[YB](vhe+n,r,i||!1),r},N8n=WB.unbind=function(e,n,r,i){return hae||eJe(),e[hae](vhe+n,r,i||!1),r},Ur=b8n({__proto__:null,bind:I8n,unbind:N8n,default:WB},[WB]),tJe=["focus","blur"];function M8n(e,n,r,i,o){return tJe.indexOf(r)!==-1&&(o=!0),Ur.bind(e,r,function(a){var s=a.target||a.srcElement;a.delegateTarget=HI(s,n,!0),a.delegateTarget&&i.call(e,a)},o)}function P8n(e,n,r,i){return tJe.indexOf(n)!==-1&&(i=!0),Ur.unbind(e,n,r,i)}var ld={bind:M8n,unbind:P8n},A8n=D8n,nJe=!1,A4;typeof document<"u"&&(A4=document.createElement("div"),A4.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',nJe=!A4.getElementsByTagName("link").length,A4=void 0);var $s={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:nJe?[1,"X<div>","</div>"]:[0,"",""]};$s.td=$s.th=[3,"<table><tbody><tr>","</tr></tbody></table>"];$s.option=$s.optgroup=[1,'<select multiple="multiple">',"</select>"];$s.thead=$s.tbody=$s.colgroup=$s.caption=$s.tfoot=[1,"<table>","</table>"];$s.polyline=$s.ellipse=$s.polygon=$s.circle=$s.text=$s.line=$s.path=$s.rect=$s.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function D8n(e,n){if(typeof e!="string")throw new TypeError("String expected");n||(n=document);var r=/<([\w:]+)/.exec(e);if(!r)return n.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var i=r[1];if(i=="body"){var c=n.createElement("html");return c.innerHTML=e,c.removeChild(c.lastChild)}var o=Object.prototype.hasOwnProperty.call($s,i)?$s[i]:$s._default,a=o[0],s=o[1],l=o[2],c=n.createElement("div");for(c.innerHTML=s+e+l;a--;)c=c.lastChild;if(c.firstChild==c.lastChild)return c.removeChild(c.firstChild);for(var u=n.createDocumentFragment();c.firstChild;)u.appendChild(c.removeChild(c.firstChild));return u}var Ko=A8n;function rJe(e,n){return e&&typeof e.matches=="function"&&e.matches(n)||!1}function Co(e,n){return n=n||document,n.querySelector(e)}function gae(e,n){return n=n||document,n.querySelectorAll(e)}function Bm(e){e.parentNode&&e.parentNode.removeChild(e)}function k8n(e,n){if(e.ownerDocument!==n.ownerDocument)try{return n.ownerDocument.importNode(e,!0)}catch{}return e}function L8n(e,n){return n.appendChild(k8n(e,n))}function Ar(e,n){return L8n(n,e),e}var mae=2,iJe={"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":mae,"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":mae,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function $8n(e,n){return iJe[n]?e.style[n]:e.getAttributeNS(null,n)}function oJe(e,n,r){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=iJe[i];o?(o===mae&&typeof r=="number"&&(r=String(r)+"px"),e.style[i]=r):e.setAttributeNS(null,n,r)}function F8n(e,n){var r=Object.keys(n),i,o;for(i=0,o;o=r[i];i++)oJe(e,o,n[o])}function Gn(e,n,r){if(typeof n=="string")if(r!==void 0)oJe(e,n,r);else return $8n(e,n);else F8n(e,n);return e}const B8n=Object.prototype.toString;function Ri(e){return new A0(e)}function A0(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}A0.prototype.add=function(e){return this.list.add(e),this};A0.prototype.remove=function(e){return B8n.call(e)=="[object RegExp]"?this.removeMatching(e):(this.list.remove(e),this)};A0.prototype.removeMatching=function(e){const n=this.array();for(let r=0;r<n.length;r++)e.test(n[r])&&this.remove(n[r]);return this};A0.prototype.toggle=function(e,n){return typeof n<"u"?n!==this.list.toggle(e,n)&&this.list.toggle(e):this.list.toggle(e),this};A0.prototype.array=function(){return Array.from(this.list)};A0.prototype.has=A0.prototype.contains=function(e){return this.list.contains(e)};function Cz(e){for(var n;n=e.firstChild;)e.removeChild(n);return e}function aJe(e){return e.cloneNode(!0)}var yhe={svg:"http://www.w3.org/2000/svg"},DPe='<svg xmlns="'+yhe.svg+'"';function j8n(e){var n=!1;e.substring(0,4)==="<svg"?e.indexOf(yhe.svg)===-1&&(e=DPe+e.substring(4)):(e=DPe+">"+e+"</svg>",n=!0);var r=U8n(e);if(!n)return r;for(var i=document.createDocumentFragment(),o=r.firstChild;o.firstChild;)i.appendChild(o.firstChild);return i}function U8n(e){var n;return n=new DOMParser,n.async=!1,n.parseFromString(e,"text/xml")}function pr(e,n){var r;return e=e.trim(),e.charAt(0)==="<"?(r=j8n(e).firstChild,r=document.importNode(r,!0)):r=document.createElementNS(yhe.svg,e),n&&Gn(r,n),r}var nJ=null;function sJe(){return nJ===null&&(nJ=pr("svg")),nJ}function kPe(e,n){var r,i,o=Object.keys(n);for(r=0;i=o[r];r++)e[i]=n[i];return e}function H8n(e,n,r,i,o,a){var s=sJe().createSVGMatrix();switch(arguments.length){case 0:return s;case 1:return kPe(s,e);case 6:return kPe(s,{a:e,b:n,c:r,d:i,e:o,f:a})}}function fP(e){return sJe().createSVGTransform()}var LPe=/([&<>]{1})/g,z8n=/([&<>\n\r"]{1})/g,V8n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"'"};function rJ(e,n){function r(i,o){return V8n[o]||o}return e.replace(n,r)}function lJe(e,n){var r,i,o,a,s;switch(e.nodeType){case 3:n.push(rJ(e.textContent,LPe));break;case 1:if(n.push("<",e.tagName),e.hasAttributes())for(o=e.attributes,r=0,i=o.length;r<i;++r)a=o.item(r),n.push(" ",a.name,'="',rJ(a.value,z8n),'"');if(e.hasChildNodes()){for(n.push(">"),s=e.childNodes,r=0,i=s.length;r<i;++r)lJe(s.item(r),n);n.push("</",e.tagName,">")}else n.push("/>");break;case 8:n.push("<!--",rJ(e.nodeValue,LPe),"-->");break;case 4:n.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return n}function G8n(e){for(var n=e.firstChild,r=[];n;)lJe(n,r),n=n.nextSibling;return r.join("")}function $Pe(e,n){return G8n(e)}function Hs(e){var n=e.parentNode;return n&&n.removeChild(e),e}function W8n(e,n){return n instanceof SVGMatrix?e.createSVGTransformFromMatrix(n):n}function Y8n(e,n){var r,i;for(e.clear(),r=0;i=n[r];r++)e.appendItem(W8n(e,i))}function eD(e,n){var r=e.transform.baseVal;return n&&(Array.isArray(n)||(n=[n]),Y8n(r,n)),r.consolidate()}const q8n=/^class[ {]/;function K8n(e){return q8n.test(e.toString())}function _he(e){return Array.isArray(e)}function iJ(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function $6(...e){e.length===1&&_he(e[0])&&(e=e[0]),e=[...e];const n=e.pop();return n.$inject=e,n}const X8n=/constructor\s*[^(]*\(\s*([^)]*)\)/m,Q8n=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,Z8n=/\/\*([^*]*)\*\//m;function J8n(e){if(typeof e!="function")throw new Error(`Cannot annotate "${e}". Expected a function!`);const n=e.toString().match(K8n(e)?X8n:Q8n);if(!n)return[];const r=n[1]||n[2];return r&&r.split(",").map(i=>{const o=i.match(Z8n);return(o&&o[1]||i).trim()})||[]}function cJe(e,n){const r=n||{get:function(b,E){if(i.push(b),E===!1)return null;throw l(`No provider for "${b}"!`)}},i=[],o=this._providers=Object.create(r._providers||null),a=this._instances=Object.create(null),s=a.injector=this,l=function(b){const E=i.join(" -> ");return i.length=0,new Error(E?`${b} (Resolving: ${E})`:b)};function c(b,E){if(!o[b]&&b.includes(".")){const w=b.split(".");let C=c(w.shift());for(;w.length;)C=C[w.shift()];return C}if(iJ(a,b))return a[b];if(iJ(o,b)){if(i.indexOf(b)!==-1)throw i.push(b),l("Cannot resolve circular dependency!");return i.push(b),a[b]=o[b][0](o[b][1]),i.pop(),a[b]}return r.get(b,E)}function u(b,E){if(typeof E>"u"&&(E={}),typeof b!="function")if(_he(b))b=$6(b.slice());else throw l(`Cannot invoke "${b}". Expected a function!`);const C=(b.$inject||J8n(b)).map(x=>iJ(E,x)?E[x]:c(x));return{fn:b,dependencies:C}}function d(b){const{fn:E,dependencies:w}=u(b),C=Function.prototype.bind.call(E,null,...w);return new C}function f(b,E,w){const{fn:C,dependencies:x}=u(b,w);return C.apply(E,x)}function p(b){return $6(E=>b.get(E))}function h(b,E){if(E&&E.length){const w=Object.create(null),C=Object.create(null),x=[],T=[],R=[];let O,M,P,k;for(let $ in o)O=o[$],E.indexOf($)!==-1&&(O[2]==="private"?(M=x.indexOf(O[3]),M===-1?(P=O[3].createChild([],E),k=p(P),x.push(O[3]),T.push(P),R.push(k),w[$]=[k,$,"private",P]):w[$]=[R[M],$,"private",T[M]]):w[$]=[O[2],O[1]],C[$]=!0),(O[2]==="factory"||O[2]==="type")&&O[1].$scope&&E.forEach(U=>{O[1].$scope.indexOf(U)!==-1&&(w[$]=[O[2],O[1]],C[U]=!0)});E.forEach($=>{if(!C[$])throw new Error('No provider for "'+$+'". Cannot use provider from the parent!')}),b.unshift(w)}return new cJe(b,s)}const g={factory:f,type:d,value:function(b){return b}};function v(b,E){const w=b.__init__||[];return function(){w.forEach(C=>{typeof C=="string"?E.get(C):E.invoke(C)})}}function y(b){const E=b.__exports__;if(E){const w=b.__modules__,C=Object.keys(b).reduce((M,P)=>(P!=="__exports__"&&P!=="__modules__"&&P!=="__init__"&&P!=="__depends__"&&(M[P]=b[P]),M),Object.create(null)),x=(w||[]).concat(C),T=h(x),R=$6(function(M){return T.get(M)});E.forEach(function(M){o[M]=[R,M,"private",T]});const O=(b.__init__||[]).slice();return O.unshift(function(){T.init()}),b=Object.assign({},b,{__init__:O}),v(b,T)}return Object.keys(b).forEach(function(w){if(w==="__init__"||w==="__depends__")return;const C=b[w];if(C[2]==="private"){o[w]=C;return}const x=C[0],T=C[1];o[w]=[g[x],eBn(x,T),x]}),v(b,s)}function _(b,E){return b.indexOf(E)!==-1||(b=(E.__depends__||[]).reduce(_,b),b.indexOf(E)!==-1)?b:b.concat(E)}function S(b){const E=b.reduce(_,[]).map(y);let w=!1;return function(){w||(w=!0,E.forEach(C=>C()))}}this.get=c,this.invoke=f,this.instantiate=d,this.createChild=h,this.init=S(e)}function eBn(e,n){return e!=="value"&&_he(n)&&(n=$6(n.slice())),n}var tBn=1e3;function h_(e,n){var r=this;n=n||tBn,e.on(["render.shape","render.connection"],n,function(i,o){var a=i.type,s=o.element,l=o.gfx,c=o.attrs;if(r.canRender(s))return a==="render.shape"?r.drawShape(l,s,c):r.drawConnection(l,s,c)}),e.on(["render.getShapePath","render.getConnectionPath"],n,function(i,o){if(r.canRender(o))return i.type==="render.getShapePath"?r.getShapePath(o):r.getConnectionPath(o)})}h_.prototype.canRender=function(e){};h_.prototype.drawShape=function(e,n){};h_.prototype.drawConnection=function(e,n){};h_.prototype.getShapePath=function(e){};h_.prototype.getConnectionPath=function(e){};function Sw(e){return e.flat().join(",").replace(/,?([A-Za-z]),?/g,"$1")}function nBn(e){return["M",e.x,e.y]}function oJ(e){return["L",e.x,e.y]}function rBn(e,n,r){return["C",e.x,e.y,n.x,n.y,r.x,r.y]}function iBn(e,n){const r=e.length,i=[nBn(e[0])];for(let o=1;o<r;o++){const a=e[o-1],s=e[o],l=e[o+1];if(!l||!n){i.push(oJ(s));continue}const c=Math.min(n,vae(s.x-a.x,s.y-a.y),vae(l.x-s.x,l.y-s.y));if(!c){i.push(oJ(s));continue}const u=D4(s,a,c),d=D4(s,a,c*.5),f=D4(s,l,c),p=D4(s,l,c*.5);i.push(oJ(u)),i.push(rBn(d,p,f))}return i}function D4(e,n,r){const i=n.x-e.x,o=n.y-e.y,a=vae(i,o),s=r/a;return{x:e.x+i*s,y:e.y+o*s}}function vae(e,n){return Math.sqrt(Math.pow(e,2)+Math.pow(n,2))}function wz(e,n,r){Nr(n)&&(r=n,n=null),n||(n={});const i=pr("path",n);return Nr(r)&&(i.dataset.cornerRadius=String(r)),uJe(i,e)}function uJe(e,n){const r=parseInt(e.dataset.cornerRadius,10)||0;return Gn(e,{d:Sw(iBn(n,r))}),e}function xz(e){return si(e,function(n){return!ki(e,function(r){return r!==n&&dJe(n,r)})})}function dJe(e,n){if(n){if(e===n)return n;if(e.parent)return dJe(e.parent,n)}}function FPe(e,n,r){var i=!r||e.indexOf(n)===-1;return i&&e.push(n),i}function Ew(e,n,r){r=r||0,zr(e)||(e=[e]),ht(e,function(i,o){var a=n(i,o,r);zr(a)&&a.length&&Ew(a,n,r+1)})}function oBn(e,n,r){var i=[],o=[];return Ew(e,function(a,s,l){FPe(i,a,n);var c=a.children;if(c&&FPe(o,c,n))return c}),i}function _L(e,n){return oBn(e,!n)}function aBn(e,n,r){SC(n)&&(n=!0),Rl(n)&&(r=n,n=!0),r=r||{};var i=CM(r.allShapes),o=CM(r.allConnections),a=CM(r.enclosedElements),s=CM(r.enclosedConnections),l=CM(r.topLevel,n&&UI(e,function(d){return d.id}));function c(d){l[d.source.id]&&l[d.target.id]&&(l[d.id]=[d]),i[d.source.id]&&i[d.target.id]&&(s[d.id]=a[d.id]=d),o[d.id]=d}function u(d){if(a[d.id]=d,d.waypoints)s[d.id]=o[d.id]=d;else return i[d.id]=d,ht(d.incoming,c),ht(d.outgoing,c),d.children}return Ew(e,u),{allShapes:i,allConnections:o,topLevel:l,enclosedConnections:s,enclosedElements:a}}function sl(e,n){n=!!n,zr(e)||(e=[e]);var r,i,o,a;return ht(e,function(s){var l=s;s.waypoints&&!n&&(l=sl(s.waypoints,!0));var c=l.x,u=l.y,d=l.height||0,f=l.width||0;(c<r||r===void 0)&&(r=c),(u<i||i===void 0)&&(i=u),(c+f>o||o===void 0)&&(o=c+f),(u+d>a||a===void 0)&&(a=u+d)}),{x:r,y:i,height:a-i,width:o-r}}function sBn(e,n){var r={};return ht(e,function(i){var o=i;o.waypoints&&(o=sl(o)),!Nr(n.y)&&o.x>n.x&&(r[i.id]=i),!Nr(n.x)&&o.y>n.y&&(r[i.id]=i),o.x>n.x&&o.y>n.y&&(Nr(n.width)&&Nr(n.height)&&o.width+o.x<n.width+n.x&&o.height+o.y<n.height+n.y||!Nr(n.width)||!Nr(n.height))&&(r[i.id]=i)}),r}function fJe(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function pJe(e){return!!(e&&e.isFrame)}function CM(e,n){return Rt({},e||{},n||{})}var lBn=1;function pS(e,n){h_.call(this,e,lBn),this.CONNECTION_STYLE=n.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=n.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=n.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}Zn(pS,h_);pS.prototype.canRender=function(){return!0};pS.prototype.drawShape=function(n,r,i){var o=pr("rect");return Gn(o,{x:0,y:0,width:r.width||0,height:r.height||0}),pJe(r)?Gn(o,Rt({},this.FRAME_STYLE,i||{})):Gn(o,Rt({},this.SHAPE_STYLE,i||{})),Ar(n,o),o};pS.prototype.drawConnection=function(n,r,i){var o=wz(r.waypoints,Rt({},this.CONNECTION_STYLE,i||{}));return Ar(n,o),o};pS.prototype.getShapePath=function(n){var r=n.x,i=n.y,o=n.width,a=n.height,s=[["M",r,i],["l",o,0],["l",0,a],["l",-o,0],["z"]];return Sw(s)};pS.prototype.getConnectionPath=function(n){var r=n.waypoints,i,o,a=[];for(i=0;o=r[i];i++)o=o.original||o,a.push([i===0?"M":"L",o.x,o.y]);return Sw(a)};pS.$inject=["eventBus","styles"];function cBn(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},n=this;this.cls=function(r,i,o){var a=this.style(i,o);return Rt(a,{class:r})},this.style=function(r,i){!zr(r)&&!i&&(i=r,r=[]);var o=yd(r,function(a,s){return Rt(a,e[s]||{})},{});return i?Rt(o,i):o},this.computeStyle=function(r,i,o){return zr(i)||(o=i,i=[]),n.style(i||[],Rt({},o,r||{}))}}const uBn={__init__:["defaultRenderer"],defaultRenderer:["type",pS],styles:["type",cBn]};function Cs(e,n){if(!e||!n)return-1;var r=e.indexOf(n);return r!==-1&&e.splice(r,1),r}function Ks(e,n,r){if(!(!e||!n)){typeof r!="number"&&(r=-1);var i=e.indexOf(n);if(i!==-1){if(i===r)return;if(r!==-1)e.splice(i,1);else return}r!==-1?e.splice(r,0,n):e.push(n)}}function bhe(e,n){return!e||!n?-1:e.indexOf(n)}function bL(e,n){return!e||!n?-1:Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function She(e,n,r,i){if(typeof i>"u"&&(i=5),!e||!n||!r)return!1;var o=(n.x-e.x)*(r.y-e.y)-(n.y-e.y)*(r.x-e.x),a=bL(e,n);return Math.abs(o/a)<=i}var dBn=2;function ry(e,n){var r=Array.from(arguments).flat();const i={x:"v",y:"h"};for(const[o,a]of Object.entries(i))if(fBn(o,r))return a;return!1}function fBn(e,n){const r=n[0];return bw(n,function(i){return Math.abs(r[e]-i[e])<=dBn})}function BPe(e,n,r){return r=r||0,e.x>n.x-r&&e.y>n.y-r&&e.x<n.x+n.width+r&&e.y<n.y+n.height+r}function yae(e,n){return{x:Math.round(e.x+(n.x-e.x)/2),y:Math.round(e.y+(n.y-e.y)/2)}}var pBn=/,?([a-z]),?/gi,jPe=parseFloat,gs=Math,W_=gs.PI,Wg=gs.min,Yg=gs.max,UPe=gs.pow,Wb=gs.abs,hBn=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/ig,gBn=/(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/ig,qB=Array.isArray||function(e){return e instanceof Array};function Ehe(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function pP(e){if(typeof e=="function"||Object(e)!==e)return e;var n=new e.constructor;for(var r in e)Ehe(e,r)&&(n[r]=pP(e[r]));return n}function mBn(e,n){for(var r=0,i=e.length;r<i;r++)if(e[r]===n)return e.push(e.splice(r,1)[0])}function vBn(e){function n(){var r=Array.prototype.slice.call(arguments,0),i=r.join("␀"),o=n.cache=n.cache||{},a=n.count=n.count||[];return Ehe(o,i)?(mBn(a,i),o[i]):(a.length>=1e3&&delete o[a.shift()],a.push(i),o[i]=e(...arguments),o[i])}return n}function yBn(e){if(!e)return null;var n=oR(e);if(n.arr)return pP(n.arr);var r={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=[];return qB(e)&&qB(e[0])&&(i=pP(e)),i.length||String(e).replace(hBn,function(o,a,s){var l=[],c=a.toLowerCase();for(s.replace(gBn,function(u,d){d&&l.push(+d)}),c=="m"&&l.length>2&&(i.push([a,...l.splice(0,2)]),c="l",a=a=="m"?"l":"L");l.length>=r[c]&&(i.push([a,...l.splice(0,r[c])]),!!r[c]););}),i.toString=oR.toString,n.arr=pP(i),i}function oR(e){var n=oR.ps=oR.ps||{};return n[e]?n[e].sleep=100:n[e]={sleep:100},setTimeout(function(){for(var r in n)Ehe(n,r)&&r!=e&&(n[r].sleep--,!n[r].sleep&&delete n[r])}),n[e]}function _ae(e,n,r,i){return arguments.length===1&&(n=e.y,r=e.width,i=e.height,e=e.x),{x:e,y:n,width:r,height:i,x2:e+r,y2:n+i}}function hJe(){return this.join(",").replace(pBn,"$1")}function KB(e){var n=pP(e);return n.toString=hJe,n}function HPe(e,n,r,i,o,a,s,l,c){var u=1-c,d=UPe(u,3),f=UPe(u,2),p=c*c,h=p*c,g=d*e+f*3*c*r+u*3*c*c*o+h*s,v=d*n+f*3*c*i+u*3*c*c*a+h*l;return{x:XB(g),y:XB(v)}}function zPe(e){var n=CBn(...e);return _ae(n.x0,n.y0,n.x1-n.x0,n.y1-n.y0)}function Y_(e,n,r){return n>=e.x&&n<=e.x+e.width&&r>=e.y&&r<=e.y+e.height}function _Bn(e,n){return e=_ae(e),n=_ae(n),Y_(n,e.x,e.y)||Y_(n,e.x2,e.y)||Y_(n,e.x,e.y2)||Y_(n,e.x2,e.y2)||Y_(e,n.x,n.y)||Y_(e,n.x2,n.y)||Y_(e,n.x,n.y2)||Y_(e,n.x2,n.y2)||(e.x<n.x2&&e.x>n.x||n.x<e.x2&&n.x>e.x)&&(e.y<n.y2&&e.y>n.y||n.y<e.y2&&n.y>e.y)}function VPe(e,n,r,i,o){var a=-3*n+9*r-9*i+3*o,s=e*a+6*n-12*r+6*i;return e*s-3*n+3*r}function GPe(e,n,r,i,o,a,s,l,c){c==null&&(c=1),c=c>1?1:c<0?0:c;for(var u=c/2,d=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,g=0;g<d;g++){var v=u*f[g]+u,y=VPe(v,e,r,o,s),_=VPe(v,n,i,a,l),S=y*y+_*_;h+=p[g]*gs.sqrt(S)}return u*h}function bBn(e,n,r,i,o,a,s,l){if(!(Yg(e,r)<Wg(o,s)||Wg(e,r)>Yg(o,s)||Yg(n,i)<Wg(a,l)||Wg(n,i)>Yg(a,l))){var c=(e*i-n*r)*(o-s)-(e-r)*(o*l-a*s),u=(e*i-n*r)*(a-l)-(n-i)*(o*l-a*s),d=(e-r)*(a-l)-(n-i)*(o-s);if(d){var f=XB(c/d),p=XB(u/d),h=+f.toFixed(2),g=+p.toFixed(2);if(!(h<+Wg(e,r).toFixed(2)||h>+Yg(e,r).toFixed(2)||h<+Wg(o,s).toFixed(2)||h>+Yg(o,s).toFixed(2)||g<+Wg(n,i).toFixed(2)||g>+Yg(n,i).toFixed(2)||g<+Wg(a,l).toFixed(2)||g>+Yg(a,l).toFixed(2)))return{x:f,y:p}}}}function XB(e){return Math.round(e*1e11)/1e11}function SBn(e,n,r){var i=zPe(e),o=zPe(n);if(!_Bn(i,o))return r?0:[];for(var a=GPe(...e),s=GPe(...n),l=WPe(e)?1:~~(a/5)||1,c=WPe(n)?1:~~(s/5)||1,u=[],d=[],f={},p=r?0:[],h=0;h<l+1;h++){var g=HPe(...e,h/l);u.push({x:g.x,y:g.y,t:h/l})}for(h=0;h<c+1;h++)g=HPe(...n,h/c),d.push({x:g.x,y:g.y,t:h/c});for(h=0;h<l;h++)for(var v=0;v<c;v++){var y=u[h],_=u[h+1],S=d[v],b=d[v+1],E=Wb(_.x-y.x)<.01?"y":"x",w=Wb(b.x-S.x)<.01?"y":"x",C=bBn(y.x,y.y,_.x,_.y,S.x,S.y,b.x,b.y),x;if(C){if(x=C.x.toFixed(9)+"#"+C.y.toFixed(9),f[x])continue;f[x]=!0;var T=y.t+Wb((C[E]-y[E])/(_[E]-y[E]))*(_.t-y.t),R=S.t+Wb((C[w]-S[w])/(b[w]-S[w]))*(b.t-S.t);T>=0&&T<=1&&R>=0&&R<=1&&(r?p++:p.push({x:C.x,y:C.y,t1:T,t2:R}))}}return p}function gJe(e,n,r){e=qPe(e),n=qPe(n);for(var i,o,a,s,l,c,u,d,f,p,h=r?0:[],g=0,v=e.length;g<v;g++){var y=e[g];if(y[0]=="M")i=l=y[1],o=c=y[2];else{y[0]=="C"?(f=[i,o,...y.slice(1)],i=f[6],o=f[7]):(f=[i,o,i,o,l,c,l,c],i=l,o=c);for(var _=0,S=n.length;_<S;_++){var b=n[_];if(b[0]=="M")a=u=b[1],s=d=b[2];else{b[0]=="C"?(p=[a,s,...b.slice(1)],a=p[6],s=p[7]):(p=[a,s,a,s,u,d,u,d],a=u,s=d);var E=SBn(f,p,r);if(r)h+=E;else{for(var w=0,C=E.length;w<C;w++)E[w].segment1=g,E[w].segment2=_,E[w].bez1=f,E[w].bez2=p;h=h.concat(E)}}}}}return h}function EBn(e){var n=oR(e);if(n.abs)return KB(n.abs);if((!qB(e)||!qB(e&&e[0]))&&(e=yBn(e)),!e||!e.length)return[["M",0,0]];var r=[],i=0,o=0,a=0,s=0,l=0,c;e[0][0]=="M"&&(i=+e[0][1],o=+e[0][2],a=i,s=o,l++,r[0]=["M",i,o]);for(var u,d,f=l,p=e.length;f<p;f++){if(r.push(u=[]),d=e[f],c=d[0],c!=c.toUpperCase())switch(u[0]=c.toUpperCase(),u[0]){case"A":u[1]=d[1],u[2]=d[2],u[3]=d[3],u[4]=d[4],u[5]=d[5],u[6]=+d[6]+i,u[7]=+d[7]+o;break;case"V":u[1]=+d[1]+o;break;case"H":u[1]=+d[1]+i;break;case"M":a=+d[1]+i,s=+d[2]+o;default:for(var h=1,g=d.length;h<g;h++)u[h]=+d[h]+(h%2?i:o)}else for(var v=0,y=d.length;v<y;v++)u[v]=d[v];switch(c=c.toUpperCase(),u[0]){case"Z":i=+a,o=+s;break;case"H":i=u[1];break;case"V":o=u[1];break;case"M":a=u[u.length-2],s=u[u.length-1];default:i=u[u.length-2],o=u[u.length-1]}}return r.toString=hJe,n.abs=KB(r),r}function WPe(e){return e[0]===e[2]&&e[1]===e[3]&&e[4]===e[6]&&e[5]===e[7]}function k4(e,n,r,i){return[e,n,r,i,r,i]}function YPe(e,n,r,i,o,a){var s=.3333333333333333,l=2/3;return[s*e+l*r,s*n+l*i,s*o+l*r,s*a+l*i,o,a]}function mJe(e,n,r,i,o,a,s,l,c,u){var d=W_*120/180,f=W_/180*(+o||0),p=[],h,g=vBn(function(j,F,te){var oe=j*gs.cos(te)-F*gs.sin(te),de=j*gs.sin(te)+F*gs.cos(te);return{x:oe,y:de}});if(u)x=u[0],T=u[1],w=u[2],C=u[3];else{h=g(e,n,-f),e=h.x,n=h.y,h=g(l,c,-f),l=h.x,c=h.y;var v=(e-l)/2,y=(n-c)/2,_=v*v/(r*r)+y*y/(i*i);_>1&&(_=gs.sqrt(_),r=_*r,i=_*i);var S=r*r,b=i*i,E=(a==s?-1:1)*gs.sqrt(Wb((S*b-S*y*y-b*v*v)/(S*y*y+b*v*v))),w=E*r*y/i+(e+l)/2,C=E*-i*v/r+(n+c)/2,x=gs.asin(((n-C)/i).toFixed(9)),T=gs.asin(((c-C)/i).toFixed(9));x=e<w?W_-x:x,T=l<w?W_-T:T,x<0&&(x=W_*2+x),T<0&&(T=W_*2+T),s&&x>T&&(x=x-W_*2),!s&&T>x&&(T=T-W_*2)}var R=T-x;if(Wb(R)>d){var O=T,M=l,P=c;T=x+d*(s&&T>x?1:-1),l=w+r*gs.cos(T),c=C+i*gs.sin(T),p=mJe(l,c,r,i,o,0,s,M,P,[T,O,w,C])}R=T-x;var k=gs.cos(x),$=gs.sin(x),U=gs.cos(T),z=gs.sin(T),D=gs.tan(R/4),B=4/3*r*D,Y=4/3*i*D,q=[e,n],K=[e+B*$,n-Y*k],H=[l+B*z,c-Y*U],G=[l,c];if(K[0]=2*q[0]-K[0],K[1]=2*q[1]-K[1],u)return[K,H,G].concat(p);p=[K,H,G].concat(p).join().split(",");for(var Q=[],le=0,Z=p.length;le<Z;le++)Q[le]=le%2?g(p[le-1],p[le],f).y:g(p[le],p[le+1],f).x;return Q}function CBn(e,n,r,i,o,a,s,l){for(var c=[],u=[[],[]],d,f,p,h,g,v,y,_,S=0;S<2;++S){if(S==0?(f=6*e-12*r+6*o,d=-3*e+9*r-9*o+3*s,p=3*r-3*e):(f=6*n-12*i+6*a,d=-3*n+9*i-9*a+3*l,p=3*i-3*n),Wb(d)<1e-12){if(Wb(f)<1e-12)continue;h=-p/f,0<h&&h<1&&c.push(h);continue}y=f*f-4*p*d,_=gs.sqrt(y),!(y<0)&&(g=(-f+_)/(2*d),0<g&&g<1&&c.push(g),v=(-f-_)/(2*d),0<v&&v<1&&c.push(v))}for(var b=c.length,E=b,w;b--;)h=c[b],w=1-h,u[0][b]=w*w*w*e+3*w*w*h*r+3*w*h*h*o+h*h*h*s,u[1][b]=w*w*w*n+3*w*w*h*i+3*w*h*h*a+h*h*h*l;return u[0][E]=e,u[1][E]=n,u[0][E+1]=s,u[1][E+1]=l,u[0].length=u[1].length=E+2,{x0:Wg(...u[0]),y0:Wg(...u[1]),x1:Yg(...u[0]),y1:Yg(...u[1])}}function qPe(e){var n=oR(e);if(n.curve)return KB(n.curve);for(var r=EBn(e),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o=function(h,g,v){var y,_;if(!h)return["C",g.x,g.y,g.x,g.y,g.x,g.y];switch(!(h[0]in{T:1,Q:1})&&(g.qx=g.qy=null),h[0]){case"M":g.X=h[1],g.Y=h[2];break;case"A":h=["C",...mJe(g.x,g.y,...h.slice(1))];break;case"S":v=="C"||v=="S"?(y=g.x*2-g.bx,_=g.y*2-g.by):(y=g.x,_=g.y),h=["C",y,_,...h.slice(1)];break;case"T":v=="Q"||v=="T"?(g.qx=g.x*2-g.qx,g.qy=g.y*2-g.qy):(g.qx=g.x,g.qy=g.y),h=["C",...YPe(g.x,g.y,g.qx,g.qy,h[1],h[2])];break;case"Q":g.qx=h[1],g.qy=h[2],h=["C",...YPe(g.x,g.y,h[1],h[2],h[3],h[4])];break;case"L":h=["C",...k4(g.x,g.y,h[1],h[2])];break;case"H":h=["C",...k4(g.x,g.y,h[1],g.y)];break;case"V":h=["C",...k4(g.x,g.y,g.x,h[1])];break;case"Z":h=["C",...k4(g.x,g.y,g.X,g.Y)];break}return h},a=function(h,g){if(h[g].length>7){h[g].shift();for(var v=h[g];v.length;)s[g]="A",h.splice(g++,0,["C",...v.splice(0,6)]);h.splice(g,1),d=r.length}},s=[],l="",c="",u=0,d=r.length;u<d;u++){r[u]&&(l=r[u][0]),l!="C"&&(s[u]=l,u&&(c=s[u-1])),r[u]=o(r[u],i,c),s[u]!="A"&&l=="C"&&(s[u]="C"),a(r,u);var f=r[u],p=f.length;i.x=f[p-2],i.y=f[p-1],i.bx=jPe(f[p-4])||i.x,i.by=jPe(f[p-3])||i.y}return n.curve=KB(r),r}function wo(e){return Rl(e)&&gu(e,"waypoints")}function Ni(e){return Rl(e)&&gu(e,"labelTarget")}function vJe(e){return{x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height)}}function yy(e){return{x:Math.round(e.x),y:Math.round(e.y)}}function br(e){return{top:e.y,right:e.x+(e.width||0),bottom:e.y+(e.height||0),left:e.x}}function Tz(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}function wBn(e){return yy({x:e.x+(e.width||0)/2,y:e.y+(e.height||0)/2})}function xBn(e){for(var n=e.waypoints,r=n.reduce(function(u,d,f){var p=n[f-1];if(p){var h=u[u.length-1],g=h&&h.endLength||0,v=RBn(p,d);u.push({start:p,end:d,startLength:g,endLength:g+v,length:v})}return u},[]),i=r.reduce(function(u,d){return u+d.length},0),o=i/2,a=0,s=r[a];s.endLength<o;)s=r[++a];var l=(o-s.startLength)/s.length,c={x:s.start.x+(s.end.x-s.start.x)*l,y:s.start.y+(s.end.y-s.start.y)*l};return c}function Mr(e){return wo(e)?xBn(e):wBn(e)}function _c(e,n,r){r=r||0,Rl(r)||(r={x:r,y:r});var i=br(e),o=br(n),a=i.bottom+r.y<=o.top,s=i.left-r.x>=o.right,l=i.top-r.y>=o.bottom,c=i.right+r.x<=o.left,u=a?"top":l?"bottom":null,d=c?"left":s?"right":null;return d&&u?u+"-"+d:d||u||"intersect"}function bae(e,n,r){var i=TBn(e,n);return i.length===1||i.length===2&&bL(i[0],i[1])<1?yy(i[0]):i.length>1?(i=Fm(i,function(o){var a=Math.floor(o.t2*100)||1;return a=100-a,a=(a<10?"0":"")+a,o.segment2+"#"+a}),yy(i[r?0:i.length-1])):null}function TBn(e,n){return gJe(e,n)}function OBn(e){e=e.slice();for(var n=0,r,i,o;e[n];)r=e[n],i=e[n-1],o=e[n+1],bL(r,o)===0||She(i,o,r)?e.splice(n,1):n++;return e}function RBn(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function F6(e,n){return Math.round(e*n)/n}function KPe(e){return Nr(e)?e+"px":e}function IBn(e){for(;e.parent;)e=e.parent;return e}function NBn(e){e=Rt({},{width:"100%",height:"100%"},e);const n=e.container||document.body,r=document.createElement("div");return r.setAttribute("class","djs-container djs-parent"),dc(r,{position:"relative",overflow:"hidden",width:KPe(e.width),height:KPe(e.height)}),n.appendChild(r),r}function yJe(e,n,r){const i=pr("g");Ri(i).add(n);const o=r!==void 0?r:e.childNodes.length-1;return e.insertBefore(i,e.childNodes[o]||null),i}const MBn="base",_Je=0,PBn=1,ABn={shape:["x","y","width","height"],connection:["waypoints"]};function Pr(e,n,r,i){this._eventBus=n,this._elementRegistry=i,this._graphicsFactory=r,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._focused=!1,this._init(e||{})}Pr.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"];Pr.prototype._init=function(e){const n=this._eventBus,r=this._container=NBn(e),i=this._svg=pr("svg");Gn(i,{width:"100%",height:"100%"}),fc(i,"tabindex",0),e.autoFocus&&n.on("element.hover",()=>{this.restoreFocus()}),n.on("element.mousedown",500,a=>{this.focus()}),i.addEventListener("focusin",()=>{this._setFocused(!0)}),i.addEventListener("focusout",()=>{this._setFocused(!1)}),Ar(r,i);const o=this._viewport=yJe(i,"viewport");e.deferUpdate&&(this._viewboxChanged=JZe(Eu(this._viewboxChanged,this),300)),n.on("diagram.init",()=>{n.fire("canvas.init",{svg:i,viewport:o})}),n.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],()=>{delete this._cachedViewbox}),n.on("diagram.destroy",500,this._destroy,this),n.on("diagram.clear",500,this._clear,this)};Pr.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};Pr.prototype._setFocused=function(e){e!=this._focused&&(this._focused=e,this._eventBus.fire("canvas.focus.changed",{focused:e}))};Pr.prototype._clear=function(){this._elementRegistry.getAll().forEach(n=>{const r=fJe(n);r==="root"?this.removeRootElement(n):this._removeElement(n,r)}),this._planes=[],this._rootElement=null,delete this._cachedViewbox};Pr.prototype.focus=function(){this._svg.focus({preventScroll:!0}),this._setFocused(!0)};Pr.prototype.restoreFocus=function(){document.activeElement===document.body&&this.focus()};Pr.prototype.isFocused=function(){return this._focused};Pr.prototype.getDefaultLayer=function(){return this.getLayer(MBn,_Je)};Pr.prototype.getLayer=function(e,n){if(!e)throw new Error("must specify a name");let r=this._layers[e];if(r||(r=this._layers[e]=this._createLayer(e,n)),typeof n<"u"&&r.index!==n)throw new Error("layer <"+e+"> already created at index <"+n+">");return r.group};Pr.prototype._getChildIndex=function(e){return yd(this._layers,function(n,r){return r.visible&&e>=r.index&&n++,n},0)};Pr.prototype._createLayer=function(e,n){typeof n>"u"&&(n=PBn);const r=this._getChildIndex(n);return{group:yJe(this._viewport,"layer-"+e,r),index:n,visible:!0}};Pr.prototype.showLayer=function(e){if(!e)throw new Error("must specify a name");const n=this._layers[e];if(!n)throw new Error("layer <"+e+"> does not exist");const r=this._viewport,i=n.group,o=n.index;if(n.visible)return i;const a=this._getChildIndex(o);return r.insertBefore(i,r.childNodes[a]||null),n.visible=!0,i};Pr.prototype.hideLayer=function(e){if(!e)throw new Error("must specify a name");const n=this._layers[e];if(!n)throw new Error("layer <"+e+"> does not exist");const r=n.group;return n.visible&&(Hs(r),n.visible=!1),r};Pr.prototype._removeLayer=function(e){const n=this._layers[e];n&&(delete this._layers[e],Hs(n.group))};Pr.prototype.getActiveLayer=function(){const e=this._findPlaneForRoot(this.getRootElement());return e?e.layer:null};Pr.prototype.findRoot=function(e){return typeof e=="string"&&(e=this._elementRegistry.get(e)),e?(this._findPlaneForRoot(IBn(e))||{}).rootElement:void 0};Pr.prototype.getRootElements=function(){return this._planes.map(function(e){return e.rootElement})};Pr.prototype._findPlaneForRoot=function(e){return ki(this._planes,function(n){return n.rootElement===e})};Pr.prototype.getContainer=function(){return this._container};Pr.prototype._updateMarker=function(e,n,r){let i;e.id||(e=this._elementRegistry.get(e)),e.markers=e.markers||new Set,i=this._elementRegistry._elements[e.id],i&&(ht([i.gfx,i.secondaryGfx],function(o){o&&(r?(e.markers.add(n),Ri(o).add(n)):(e.markers.delete(n),Ri(o).remove(n)))}),this._eventBus.fire("element.marker.update",{element:e,gfx:i.gfx,marker:n,add:!!r}))};Pr.prototype.addMarker=function(e,n){this._updateMarker(e,n,!0)};Pr.prototype.removeMarker=function(e,n){this._updateMarker(e,n,!1)};Pr.prototype.hasMarker=function(e,n){return e.id||(e=this._elementRegistry.get(e)),e.markers?e.markers.has(n):!1};Pr.prototype.toggleMarker=function(e,n){this.hasMarker(e,n)?this.removeMarker(e,n):this.addMarker(e,n)};Pr.prototype.getRootElement=function(){const e=this._rootElement;return e||this._planes.length?e:this.setRootElement(this.addRootElement(null))};Pr.prototype.addRootElement=function(e){const n=this._rootsIdx++;e||(e={id:"__implicitroot_"+n,children:[],isImplicit:!0});const r=e.layer="root-"+n;this._ensureValid("root",e);const i=this.getLayer(r,_Je);return this.hideLayer(r),this._addRoot(e,i),this._planes.push({rootElement:e,layer:i}),e};Pr.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(r){return r.rootElement!==e}),this._rootElement===e&&(this._rootElement=null),e};Pr.prototype.setRootElement=function(e){if(e===this._rootElement)return e;let n;if(!e)throw new Error("rootElement required");return n=this._findPlaneForRoot(e),n||(e=this.addRootElement(e)),this._setRoot(e),e};Pr.prototype._removeRoot=function(e){const n=this._elementRegistry,r=this._eventBus;r.fire("root.remove",{element:e}),r.fire("root.removed",{element:e}),n.remove(e)};Pr.prototype._addRoot=function(e,n){const r=this._elementRegistry,i=this._eventBus;i.fire("root.add",{element:e}),r.add(e,n),i.fire("root.added",{element:e,gfx:n})};Pr.prototype._setRoot=function(e,n){const r=this._rootElement;r&&(this._elementRegistry.updateGraphics(r,null,!0),this.hideLayer(r.layer)),e&&(n||(n=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})};Pr.prototype._ensureValid=function(e,n){if(!n.id)throw new Error("element must have an id");if(this._elementRegistry.get(n.id))throw new Error("element <"+n.id+"> already exists");const r=ABn[e];if(!bw(r,function(o){return typeof n[o]<"u"}))throw new Error("must supply { "+r.join(", ")+" } with "+e)};Pr.prototype._setParent=function(e,n,r){Ks(n.children,e,r),e.parent=n};Pr.prototype._addElement=function(e,n,r,i){r=r||this.getRootElement();const o=this._eventBus,a=this._graphicsFactory;this._ensureValid(e,n),o.fire(e+".add",{element:n,parent:r}),this._setParent(n,r,i);const s=a.create(e,n,i);return this._elementRegistry.add(n,s),a.update(e,n,s),o.fire(e+".added",{element:n,gfx:s}),n};Pr.prototype.addShape=function(e,n,r){return this._addElement("shape",e,n,r)};Pr.prototype.addConnection=function(e,n,r){return this._addElement("connection",e,n,r)};Pr.prototype._removeElement=function(e,n){const r=this._elementRegistry,i=this._graphicsFactory,o=this._eventBus;if(e=r.get(e.id||e),!!e)return o.fire(n+".remove",{element:e}),i.remove(e),Cs(e.parent&&e.parent.children,e),e.parent=null,o.fire(n+".removed",{element:e}),r.remove(e),e};Pr.prototype.removeShape=function(e){return this._removeElement(e,"shape")};Pr.prototype.removeConnection=function(e){return this._removeElement(e,"connection")};Pr.prototype.getGraphics=function(e,n){return this._elementRegistry.getGraphics(e,n)};Pr.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()};Pr.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})};Pr.prototype.viewbox=function(e){if(e===void 0&&this._cachedViewbox)return structuredClone(this._cachedViewbox);const n=this._viewport,r=this.getSize();let i,o,a,s,l,c,u;if(e)this._changeViewbox(function(){l=Math.min(r.width/e.width,r.height/e.height);const d=this._svg.createSVGMatrix().scale(l).translate(-e.x,-e.y);eD(n,d)});else return a=this._rootElement?this.getActiveLayer():null,i=a&&a.getBBox()||{},s=eD(n),o=s?s.matrix:H8n(),l=F6(o.a,1e3),c=F6(-o.e||0,1e3),u=F6(-o.f||0,1e3),e=this._cachedViewbox={x:c?c/l:0,y:u?u/l:0,width:r.width/l,height:r.height/l,scale:l,inner:{width:i.width||0,height:i.height||0,x:i.x||0,y:i.y||0},outer:r},e;return e};Pr.prototype.scroll=function(e){const n=this._viewport;let r=n.getCTM();return e&&this._changeViewbox(function(){e=Rt({dx:0,dy:0},e||{}),r=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(r),bJe(n,r)}),{x:r.e,y:r.f}};Pr.prototype.scrollToElement=function(e,n){let r=100;typeof e=="string"&&(e=this._elementRegistry.get(e));const i=this.findRoot(e);if(i!==this.getRootElement()&&this.setRootElement(i),i===e)return;n||(n={}),typeof n=="number"&&(r=n),n={top:n.top||r,right:n.right||r,bottom:n.bottom||r,left:n.left||r};const o=sl(e),a=br(o),s=this.viewbox(),l=this.zoom();let c,u;s.y+=n.top/l,s.x+=n.left/l,s.width-=(n.right+n.left)/l,s.height-=(n.bottom+n.top)/l;const d=br(s);if(!(o.width<s.width&&o.height<s.height))c=o.x-s.x,u=o.y-s.y;else{const p=Math.max(0,a.right-d.right),h=Math.min(0,a.left-d.left),g=Math.max(0,a.bottom-d.bottom),v=Math.min(0,a.top-d.top);c=p||h,u=g||v}this.scroll({dx:-c*l,dy:-u*l})};Pr.prototype.zoom=function(e,n){if(!e)return this.viewbox(e).scale;if(e==="fit-viewport")return this._fitViewport(n);let r,i;return this._changeViewbox(function(){typeof n!="object"&&(r=this.viewbox().outer,n={x:r.width/2,y:r.height/2}),i=this._setZoom(e,n)}),F6(i.a,1e3)};function bJe(e,n){const r="matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")";e.setAttribute("transform",r)}Pr.prototype._fitViewport=function(e){const n=this.viewbox(),r=n.outer,i=n.inner;let o,a;return i.x>=0&&i.y>=0&&i.x+i.width<=r.width&&i.y+i.height<=r.height&&!e?a={x:0,y:0,width:Math.max(i.width+i.x,r.width),height:Math.max(i.height+i.y,r.height)}:(o=Math.min(1,r.width/i.width,r.height/i.height),a={x:i.x+(e?i.width/2-r.width/o/2:0),y:i.y+(e?i.height/2-r.height/o/2:0),width:r.width/o,height:r.height/o}),this.viewbox(a),this.viewbox(!1).scale};Pr.prototype._setZoom=function(e,n){const r=this._svg,i=this._viewport,o=r.createSVGMatrix(),a=r.createSVGPoint();let s,l,c,u,d;c=i.getCTM();const f=c.a;return n?(s=Rt(a,n),l=s.matrixTransform(c.inverse()),u=o.translate(l.x,l.y).scale(1/f*e).translate(-l.x,-l.y),d=c.multiply(u)):d=o.scale(e),bJe(this._viewport,d),d};Pr.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}};Pr.prototype.getAbsoluteBBox=function(e){const n=this.viewbox();let r;e.waypoints?r=this.getGraphics(e).getBBox():r=e;const i=r.x*n.scale-n.x*n.scale,o=r.y*n.scale-n.y*n.scale,a=r.width*n.scale,s=r.height*n.scale;return{x:i,y:o,width:a,height:s}};Pr.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var aR="data-element-id";function Lf(e){this._elements={},this._eventBus=e}Lf.$inject=["eventBus"];Lf.prototype.add=function(e,n,r){var i=e.id;this._validateId(i),Gn(n,aR,i),r&&Gn(r,aR,i),this._elements[i]={element:e,gfx:n,secondaryGfx:r}};Lf.prototype.remove=function(e){var n=this._elements,r=e.id||e,i=r&&n[r];i&&(Gn(i.gfx,aR,""),i.secondaryGfx&&Gn(i.secondaryGfx,aR,""),delete n[r])};Lf.prototype.updateId=function(e,n){this._validateId(n),typeof e=="string"&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:n});var r=this.getGraphics(e),i=this.getGraphics(e,!0);this.remove(e),e.id=n,this.add(e,r,i)};Lf.prototype.updateGraphics=function(e,n,r){var i=e.id||e,o=this._elements[i];return r?o.secondaryGfx=n:o.gfx=n,n&&Gn(n,aR,i),n};Lf.prototype.get=function(e){var n;typeof e=="string"?n=e:n=e&&Gn(e,aR);var r=this._elements[n];return r&&r.element};Lf.prototype.filter=function(e){var n=[];return this.forEach(function(r,i){e(r,i)&&n.push(r)}),n};Lf.prototype.find=function(e){for(var n=this._elements,r=Object.keys(n),i=0;i<r.length;i++){var o=r[i],a=n[o],s=a.element,l=a.gfx;if(e(s,l))return s}};Lf.prototype.getAll=function(){return this.filter(function(e){return e})};Lf.prototype.forEach=function(e){var n=this._elements;Object.keys(n).forEach(function(r){var i=n[r],o=i.element,a=i.gfx;return e(o,a)})};Lf.prototype.getGraphics=function(e,n){var r=e.id||e,i=this._elements[r];return i&&(n?i.secondaryGfx:i.gfx)};Lf.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 DBn(e,n,r,i){var o=r.inverse;return Object.defineProperty(e,"remove",{value:function(a){var s=this.indexOf(a);return s!==-1&&(this.splice(s,1),n.unset(a,o,i)),a}}),Object.defineProperty(e,"contains",{value:function(a){return this.indexOf(a)!==-1}}),Object.defineProperty(e,"add",{value:function(a,s){var l=this.indexOf(a);if(typeof s>"u"){if(l!==-1)return;s=this.length}l!==-1&&this.splice(l,1),this.splice(s,0,a),l===-1&&n.set(a,o,i)}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e}function kBn(e){return e.__refs_collection===!0}function LBn(e,n){return Object.prototype.hasOwnProperty.call(e,n.name||n)}function SJe(e,n,r){var i=DBn(r[n.name]||[],e,n,r);Object.defineProperty(r,n.name,{enumerable:n.enumerable,value:i}),i.length&&i.forEach(function(o){e.set(o,n.inverse,r)})}function $Bn(e,n,r){var i=n.inverse,o=r[n.name];Object.defineProperty(r,n.name,{configurable:n.configurable,enumerable:n.enumerable,get:function(){return o},set:function(a){if(a!==o){var s=o;o=null,s&&e.unset(s,i,r),o=a,e.set(o,i,r)}}})}function Mp(e,n){if(!(this instanceof Mp))return new Mp(e,n);e.inverse=n,n.inverse=e,this.props={},this.props[e.name]=e,this.props[n.name]=n}Mp.prototype.bind=function(e,n){if(typeof n=="string"){if(!this.props[n])throw new Error("no property <"+n+"> in ref");n=this.props[n]}n.collection?SJe(this,n,e):$Bn(this,n,e)};Mp.prototype.ensureRefsCollection=function(e,n){var r=e[n.name];return kBn(r)||SJe(this,n,e),r};Mp.prototype.ensureBound=function(e,n){LBn(e,n)||this.bind(e,n)};Mp.prototype.unset=function(e,n,r){e&&(this.ensureBound(e,n),n.collection?this.ensureRefsCollection(e,n).remove(r):e[n.name]=void 0)};Mp.prototype.set=function(e,n,r){e&&(this.ensureBound(e,n),n.collection?this.ensureRefsCollection(e,n).add(r):e[n.name]=r)};var Che=new Mp({name:"children",enumerable:!0,collection:!0},{name:"parent"}),EJe=new Mp({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),XPe=new Mp({name:"attachers",collection:!0},{name:"host"}),CJe=new Mp({name:"outgoing",collection:!0},{name:"source"}),wJe=new Mp({name:"incoming",collection:!0},{name:"target"});function zI(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var n=this.label,r=this.labels;!e&&n?r.remove(n):r.add(e,0)}}),Che.bind(this,"parent"),EJe.bind(this,"labels"),CJe.bind(this,"outgoing"),wJe.bind(this,"incoming")}function SL(){zI.call(this),Che.bind(this,"children"),XPe.bind(this,"host"),XPe.bind(this,"attachers")}Zn(SL,zI);function xJe(){zI.call(this),Che.bind(this,"children")}Zn(xJe,SL);function TJe(){SL.call(this),EJe.bind(this,"labelTarget")}Zn(TJe,SL);function OJe(){zI.call(this),CJe.bind(this,"source"),wJe.bind(this,"target")}Zn(OJe,zI);var FBn={connection:OJe,shape:SL,label:TJe,root:xJe};function BBn(e,n){var r=FBn[e];if(!r)throw new Error("unknown type: <"+e+">");return Rt(new r,n)}function jBn(e){return e instanceof zI}function g_(){this._uid=12}g_.prototype.createRoot=function(e){return this.create("root",e)};g_.prototype.createLabel=function(e){return this.create("label",e)};g_.prototype.createShape=function(e){return this.create("shape",e)};g_.prototype.createConnection=function(e){return this.create("connection",e)};g_.prototype.create=function(e,n){return n=Rt({},n||{}),n.id||(n.id=e+"_"+this._uid++),BBn(e,n)};var QB="__fn",RJe=1e3,UBn=Array.prototype.slice;function Td(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}Td.prototype.on=function(e,n,r,i){if(e=zr(e)?e:[e],zs(n)&&(i=r,r=n,n=RJe),!Nr(n))throw new Error("priority must be a number");var o=r;i&&(o=Eu(r,i),o[QB]=r[QB]||r);var a=this;e.forEach(function(s){a._addListener(s,{priority:n,callback:o,next:null})})};Td.prototype.once=function(e,n,r,i){var o=this;if(zs(n)&&(i=r,r=n,n=RJe),!Nr(n))throw new Error("priority must be a number");function a(){a.__isTomb=!0;var s=r.apply(i,arguments);return o.off(e,a),s}a[QB]=r,this.on(e,n,a)};Td.prototype.off=function(e,n){e=zr(e)?e:[e];var r=this;e.forEach(function(i){r._removeListener(i,n)})};Td.prototype.createEvent=function(e){var n=new EL;return n.init(e),n};Td.prototype.fire=function(e,n){var r,i,o,a;if(a=UBn.call(arguments),typeof e=="object"&&(n=e,e=n.type),!e)throw new Error("no event type specified");if(i=this._listeners[e],!!i){n instanceof EL?r=n:r=this.createEvent(n),a[0]=r;var s=r.type;e!==s&&(r.type=e);try{o=this._invokeListeners(r,a,i)}finally{e!==s&&(r.type=s)}return o===void 0&&r.defaultPrevented&&(o=!1),o}};Td.prototype.handleError=function(e){return this.fire("error",{error:e})===!1};Td.prototype._destroy=function(){this._listeners={}};Td.prototype._invokeListeners=function(e,n,r){for(var i;r&&!e.cancelBubble;)i=this._invokeListener(e,n,r),r=r.next;return i};Td.prototype._invokeListener=function(e,n,r){var i;if(r.callback.__isTomb)return i;try{i=HBn(r.callback,n),i!==void 0&&(e.returnValue=i,e.stopPropagation()),i===!1&&e.preventDefault()}catch(o){if(!this.handleError(o))throw console.error("unhandled error in event listener",o),o}return i};Td.prototype._addListener=function(e,n){var r=this._getListeners(e),i;if(!r){this._setListeners(e,n);return}for(;r;){if(r.priority<n.priority){n.next=r,i?i.next=n:this._setListeners(e,n);return}i=r,r=r.next}i.next=n};Td.prototype._getListeners=function(e){return this._listeners[e]};Td.prototype._setListeners=function(e,n){this._listeners[e]=n};Td.prototype._removeListener=function(e,n){var r=this._getListeners(e),i,o,a;if(!n){this._setListeners(e,null);return}for(;r;)i=r.next,a=r.callback,(a===n||a[QB]===n)&&(o?o.next=i:this._setListeners(e,i)),o=r,r=i};function EL(){}EL.prototype.stopPropagation=function(){this.cancelBubble=!0};EL.prototype.preventDefault=function(){this.defaultPrevented=!0};EL.prototype.init=function(e){Rt(this,e||{})};function HBn(e,n){return e.apply(null,n)}function $1(e){return e.childNodes[0]}function zBn(e){return e.parentNode.childNodes[1]}function B6(e,n,r,i,o){var a=fP();a.setTranslate(n,r);var s=fP();s.setRotate(i||0,0,0);var l=fP();l.setScale(1,1),eD(e,[a,s,l])}function Wl(e,n,r){var i=fP();i.setTranslate(n,r),eD(e,i)}function IJe(e,n){var r=fP();r.setRotate(n,0,0),eD(e,r)}function $f(e,n){this._eventBus=e,this._elementRegistry=n}$f.$inject=["eventBus","elementRegistry"];$f.prototype._getChildrenContainer=function(e){var n=this._elementRegistry.getGraphics(e),r;return e.parent?(r=zBn(n),r||(r=pr("g"),Ri(r).add("djs-children"),Ar(n.parentNode,r))):r=n,r};$f.prototype._clear=function(e){var n=$1(e);return Ez(n),n};$f.prototype._createContainer=function(e,n,r,i){var o=pr("g");Ri(o).add("djs-group"),typeof r<"u"?NJe(o,n,n.childNodes[r]):Ar(n,o);var a=pr("g");Ri(a).add("djs-element"),Ri(a).add("djs-"+e),i&&Ri(a).add("djs-frame"),Ar(o,a);var s=pr("g");return Ri(s).add("djs-visual"),Ar(a,s),a};$f.prototype.create=function(e,n,r){var i=this._getChildrenContainer(n.parent);return this._createContainer(e,i,r,pJe(n))};$f.prototype.updateContainments=function(e){var n=this,r=this._elementRegistry,i;i=yd(e,function(o,a){return a.parent&&(o[a.parent.id]=a.parent),o},{}),ht(i,function(o){var a=o.children;if(a){var s=n._getChildrenContainer(o);ht(a.slice().reverse(),function(l){var c=r.getGraphics(l);NJe(c.parentNode,s)})}})};$f.prototype.drawShape=function(e,n,r={}){var i=this._eventBus;return i.fire("render.shape",{gfx:e,element:n,attrs:r})};$f.prototype.getShapePath=function(e){var n=this._eventBus;return n.fire("render.getShapePath",e)};$f.prototype.drawConnection=function(e,n,r={}){var i=this._eventBus;return i.fire("render.connection",{gfx:e,element:n,attrs:r})};$f.prototype.getConnectionPath=function(e){var n=this._eventBus;return n.fire("render.getConnectionPath",e)};$f.prototype.update=function(e,n,r){if(n.parent){var i=this._clear(r);if(e==="shape")this.drawShape(i,n),Wl(r,n.x,n.y);else if(e==="connection")this.drawConnection(i,n);else throw new Error("unknown type: "+e);n.hidden?Gn(r,"display","none"):Gn(r,"display","block")}};$f.prototype.remove=function(e){var n=this._elementRegistry.getGraphics(e);Hs(n.parentNode)};function NJe(e,n,r){var i=r||n.firstChild;e!==i&&n.insertBefore(e,i)}const VBn={__depends__:[uBn],__init__:["canvas"],canvas:["type",Pr],elementRegistry:["type",Lf],elementFactory:["type",g_],eventBus:["type",Td],graphicsFactory:["type",$f]};function GBn(e){var n=new cJe(e);return n.init(),n}function WBn(e){e=e||{};var n={config:["value",e]},r=[n,VBn].concat(e.modules||[]);return GBn(r)}function hS(e,n){this._injector=n||WBn(e),this.get("eventBus").fire("diagram.init")}hS.prototype.get=function(e,n){return this._injector.get(e,n)};hS.prototype.invoke=function(e,n,r){return this._injector.invoke(e,n,r)};hS.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")};hS.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")};function whe(){}whe.prototype.get=function(e){return this.$model.properties.get(this,e)};whe.prototype.set=function(e,n){this.$model.properties.set(this,e,n)};function MJe(e,n){this.model=e,this.properties=n}MJe.prototype.createType=function(e){var n=this.model,r=this.properties,i=Object.create(whe.prototype);ht(e.properties,function(s){!s.isMany&&s.default!==void 0&&(i[s.name]=s.default)}),r.defineModel(i,n),r.defineDescriptor(i,e);var o=e.ns.name;function a(s){r.define(this,"$type",{value:o,enumerable:!0}),r.define(this,"$attrs",{value:{}}),r.define(this,"$parent",{writable:!0}),ht(s,Eu(function(l,c){this.set(c,l)},this))}return a.prototype=i,a.hasType=i.$instanceOf=this.model.hasType,r.defineModel(a,n),r.defineDescriptor(a,e),a};var YBn={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},PJe={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 xhe(e,n){var r=PJe[e];return r?r(n):n}function Sae(e){return!!YBn[e]}function AJe(e){return!!PJe[e]}function pc(e,n){var r=e.split(/:/),i,o;if(r.length===1)i=e,o=n;else if(r.length===2)i=r[1],o=r[0];else throw new Error("expected <prefix:localName> or <localName>, got "+e);return e=(o?o+":":"")+i,{name:e,prefix:o,localName:i}}function Ff(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}Ff.prototype.build=function(){return sg(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])};Ff.prototype.addProperty=function(e,n,r){typeof n=="boolean"&&(r=n,n=void 0),this.addNamedProperty(e,r!==!1);var i=this.properties;n!==void 0?i.splice(n,0,e):i.push(e)};Ff.prototype.replaceProperty=function(e,n,r){var i=e.ns,o=this.properties,a=this.propertiesByName,s=e.name!==n.name;if(e.isId){if(!n.isId)throw new Error("property <"+n.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(n,!1)}if(e.isBody){if(!n.isBody)throw new Error("property <"+n.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(n,!1)}var l=o.indexOf(e);if(l===-1)throw new Error("property <"+i.name+"> not found in property list");o.splice(l,1),this.addProperty(n,r?void 0:l,s),a[i.name]=a[i.localName]=n};Ff.prototype.redefineProperty=function(e,n,r){var i=e.ns.prefix,o=n.split("#"),a=pc(o[0],i),s=pc(o[1],a.prefix).name,l=this.propertiesByName[s];if(l)this.replaceProperty(l,e,r);else throw new Error("refined property <"+s+"> not found");delete e.redefines};Ff.prototype.addNamedProperty=function(e,n){var r=e.ns,i=this.propertiesByName;n&&(this.assertNotDefined(e,r.name),this.assertNotDefined(e,r.localName)),i[r.name]=i[r.localName]=e};Ff.prototype.removeNamedProperty=function(e){var n=e.ns,r=this.propertiesByName;delete r[n.name],delete r[n.localName]};Ff.prototype.setBodyProperty=function(e,n){if(n&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e};Ff.prototype.setIdProperty=function(e,n){if(n&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e};Ff.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)};Ff.prototype.assertNotDefined=function(e,n){var r=e.name,i=this.propertiesByName[r];if(i)throw new Error("property <"+r+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")};Ff.prototype.hasProperty=function(e){return this.propertiesByName[e]};Ff.prototype.addTrait=function(e,n){n&&this.assertNotTrait(e);var r=this.allTypesByName,i=this.allTypes,o=e.name;o in r||(ht(e.properties,Eu(function(a){a=Rt({},a,{name:a.ns.localName,inherited:n}),Object.defineProperty(a,"definedBy",{value:e});var s=a.replaces,l=a.redefines;s||l?this.redefineProperty(a,s||l,s):(a.isBody&&this.setBodyProperty(a),a.isId&&this.setIdProperty(a),this.addProperty(a))},this)),i.push(e),r[o]=e)};function gS(e,n){this.packageMap={},this.typeMap={},this.packages=[],this.properties=n,ht(e,Eu(this.registerPackage,this))}gS.prototype.getPackage=function(e){return this.packageMap[e]};gS.prototype.getPackages=function(){return this.packages};gS.prototype.registerPackage=function(e){e=Rt({},e);var n=this.packageMap;QPe(n,e,"prefix"),QPe(n,e,"uri"),ht(e.types,Eu(function(r){this.registerType(r,e)},this)),n[e.uri]=n[e.prefix]=e,this.packages.push(e)};gS.prototype.registerType=function(e,n){e=Rt({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:Rt(e.meta||{})});var r=pc(e.name,n.prefix),i=r.name,o={};ht(e.properties,Eu(function(a){var s=pc(a.name,r.prefix),l=s.name;Sae(a.type)||(a.type=pc(a.type,s.prefix).name),Rt(a,{ns:s,name:l}),o[l]=a},this)),Rt(e,{ns:r,name:i,propertiesByName:o}),ht(e.extends,Eu(function(a){var s=pc(a,r.prefix),l=this.typeMap[s.name];l.traits=l.traits||[],l.traits.push(i)},this)),this.definePackage(e,n),this.typeMap[i]=e};gS.prototype.mapTypes=function(e,n,r){var i=Sae(e.name)?{name:e.name}:this.typeMap[e.name],o=this;function a(c,u){var d=pc(c,Sae(c)?"":e.prefix);o.mapTypes(d,n,u)}function s(c){return a(c,!0)}function l(c){return a(c,!1)}if(!i)throw new Error("unknown type <"+e.name+">");ht(i.superClass,r?s:l),n(i,!r),ht(i.traits,s)};gS.prototype.getEffectiveDescriptor=function(e){var n=pc(e),r=new Ff(n);this.mapTypes(n,function(o,a){r.addTrait(o,a)});var i=r.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i};gS.prototype.definePackage=function(e,n){this.properties.define(e,"$pkg",{value:n})};function QPe(e,n,r){var i=n[r];if(i in e)throw new Error("package with "+r+" <"+i+"> already defined")}function Cw(e){this.model=e}Cw.prototype.set=function(e,n,r){if(!vd(n)||!n.length)throw new TypeError("property name must be a non-empty string");var i=this.getProperty(e,n),o=i&&i.name;qBn(r)?i?delete e[o]:delete e.$attrs[Eae(n)]:i?o in e?e[o]=r:DJe(e,i,r):e.$attrs[Eae(n)]=r};Cw.prototype.get=function(e,n){var r=this.getProperty(e,n);if(!r)return e.$attrs[Eae(n)];var i=r.name;return!e[i]&&r.isMany&&DJe(e,r,[]),e[i]};Cw.prototype.define=function(e,n,r){if(!r.writable){var i=r.value;r=Rt({},r,{get:function(){return i}}),delete r.value}Object.defineProperty(e,n,r)};Cw.prototype.defineDescriptor=function(e,n){this.define(e,"$descriptor",{value:n})};Cw.prototype.defineModel=function(e,n){this.define(e,"$model",{value:n})};Cw.prototype.getProperty=function(e,n){var r=this.model,i=r.getPropertyDescriptor(e,n);if(i)return i;if(n.includes(":"))return null;const o=r.config.strict;if(typeof o<"u"){const a=new TypeError(`unknown property <${n}> on <${e.$type}>`);if(o)throw a;typeof console<"u"&&console.warn(a)}return null};function qBn(e){return typeof e>"u"}function DJe(e,n,r){Object.defineProperty(e,n.name,{enumerable:!n.isReference,writable:!0,value:r,configurable:!0})}function Eae(e){return e.replace(/^:/,"")}function Wp(e,n={}){this.properties=new Cw(this),this.factory=new MJe(this,this.properties),this.registry=new gS(e,this.properties),this.typeCache={},this.config=n}Wp.prototype.create=function(e,n){var r=this.getType(e);if(!r)throw new Error("unknown type <"+e+">");return new r(n)};Wp.prototype.getType=function(e){var n=this.typeCache,r=vd(e)?e:e.ns.name,i=n[r];return i||(e=this.registry.getEffectiveDescriptor(r),i=n[r]=this.factory.createType(e)),i};Wp.prototype.createAny=function(e,n,r){var i=pc(e),o={$type:e,$instanceOf:function(s){return s===this.$type},get:function(s){return this[s]},set:function(s,l){_8n(this,[s],l)}},a={name:e,isGeneric:!0,ns:{prefix:i.prefix,localName:i.localName,uri:n}};return this.properties.defineDescriptor(o,a),this.properties.defineModel(o,this),this.properties.define(o,"get",{enumerable:!1,writable:!0}),this.properties.define(o,"set",{enumerable:!1,writable:!0}),this.properties.define(o,"$parent",{enumerable:!1,writable:!0}),this.properties.define(o,"$instanceOf",{enumerable:!1,writable:!0}),ht(r,function(s,l){Rl(s)&&s.value!==void 0?o[s.name]=s.value:o[l]=s}),o};Wp.prototype.getPackage=function(e){return this.registry.getPackage(e)};Wp.prototype.getPackages=function(){return this.registry.getPackages()};Wp.prototype.getElementDescriptor=function(e){return e.$descriptor};Wp.prototype.hasType=function(e,n){n===void 0&&(n=e,e=this);var r=e.$model.getElementDescriptor(e);return n in r.allTypesByName};Wp.prototype.getPropertyDescriptor=function(e,n){return this.getElementDescriptor(e).propertiesByName[n]};Wp.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var ZPe=String.fromCharCode,KBn=Object.prototype.hasOwnProperty,XBn=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig,hP={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Object.keys(hP).forEach(function(e){hP[e.toUpperCase()]=hP[e]});function QBn(e,n,r,i){return i?KBn.call(hP,i)?hP[i]:"&"+i+";":ZPe(n||parseInt(r,16))}function _E(e){return e.length>3&&e.indexOf("&")!==-1?e.replace(XBn,QBn):e}var JPe="non-whitespace outside of root node";function Px(e){return new Error(e)}function eAe(e){return"missing namespace for prefix <"+e+">"}function L4(e){return{get:e,enumerable:!0}}function ZBn(e){var n={},r;for(r in e)n[r]=e[r];return n}function Cae(e){return e+"$uri"}function JBn(e){var n={},r,i;for(r in e)i=e[r],n[i]=i,n[Cae(i)]=r;return n}function tAe(){return{line:0,column:0}}function ejn(e){throw e}function kJe(e){if(!this)return new kJe(e);var n=e&&e.proxy,r,i,o,a,s=ejn,l,c,u,d,f=tAe,p=!1,h=!1,g=null,v=!1,y;function _(E){E instanceof Error||(E=Px(E)),g=E,s(E,f)}function S(E){l&&(E instanceof Error||(E=Px(E)),l(E,f))}this.on=function(E,w){if(typeof w!="function")throw Px("required args <name, cb>");switch(E){case"openTag":i=w;break;case"text":r=w;break;case"closeTag":o=w;break;case"error":s=w;break;case"warn":l=w;break;case"cdata":a=w;break;case"attention":d=w;break;case"question":u=w;break;case"comment":c=w;break;default:throw Px("unsupported event: "+E)}return this},this.ns=function(E){if(typeof E>"u"&&(E={}),typeof E!="object")throw Px("required args <nsMap={}>");var w={},C;for(C in E)w[C]=E[C];return h=!0,y=w,this},this.parse=function(E){if(typeof E!="string")throw Px("required args <xml=string>");return g=null,b(E),f=tAe,v=!1,g},this.stop=function(){v=!0};function b(E){var w=h?[]:null,C=h?JBn(y):null,x,T=[],R=0,O=!1,M=!1,P=0,k=0,$,U,z,D,B,Y,q,K,H,G="",Q=0,le;function Z(){if(le!==null)return le;var F,te,oe,de=h&&C.xmlns,pe=h&&p?[]:null,me=Q,ve=G,he=ve.length,be,we,De,Ae,Ee,Re={},Te={},Oe,Ne,je;e:for(;me<he;me++)if(Oe=!1,Ne=ve.charCodeAt(me),!(Ne===32||Ne<14&&Ne>8)){for((Ne<65||Ne>122||Ne>90&&Ne<97)&&Ne!==95&&Ne!==58&&(S("illegal first char attribute name"),Oe=!0),je=me+1;je<he;je++)if(Ne=ve.charCodeAt(je),!(Ne>96&&Ne<123||Ne>64&&Ne<91||Ne>47&&Ne<59||Ne===46||Ne===45||Ne===95)){if(Ne===32||Ne<14&&Ne>8){S("missing attribute value"),me=je;continue e}if(Ne===61)break;S("illegal attribute name char"),Oe=!0}if(Ee=ve.substring(me,je),Ee==="xmlns:xmlns"&&(S("illegal declaration of xmlns"),Oe=!0),Ne=ve.charCodeAt(je+1),Ne===34)je=ve.indexOf('"',me=je+2),je===-1&&(je=ve.indexOf("'",me),je!==-1&&(S("attribute value quote missmatch"),Oe=!0));else if(Ne===39)je=ve.indexOf("'",me=je+2),je===-1&&(je=ve.indexOf('"',me),je!==-1&&(S("attribute value quote missmatch"),Oe=!0));else for(S("missing attribute value quotes"),Oe=!0,je=je+1;je<he&&(Ne=ve.charCodeAt(je+1),!(Ne===32||Ne<14&&Ne>8));je++);for(je===-1&&(S("missing closing quotes"),je=he,Oe=!0),Oe||(De=ve.substring(me,je)),me=je;je+1<he&&(Ne=ve.charCodeAt(je+1),!(Ne===32||Ne<14&&Ne>8));je++)me===je&&(S("illegal character after attribute end"),Oe=!0);if(me=je+1,Oe)continue e;if(Ee in Te){S("attribute <"+Ee+"> already defined");continue}if(Te[Ee]=!0,!h){Re[Ee]=De;continue}if(p){if(we=Ee==="xmlns"?"xmlns":Ee.charCodeAt(0)===120&&Ee.substr(0,6)==="xmlns:"?Ee.substr(6):null,we!==null){if(F=_E(De),te=Cae(we),Ae=y[F],!Ae){if(we==="xmlns"||te in C&&C[te]!==F)do Ae="ns"+R++;while(typeof C[Ae]<"u");else Ae=we;y[F]=Ae}C[we]!==Ae&&(be||(C=ZBn(C),be=!0),C[we]=Ae,we==="xmlns"&&(C[Cae(Ae)]=F,de=Ae),C[te]=F),Re[Ee]=De;continue}pe.push(Ee,De);continue}if(Ne=Ee.indexOf(":"),Ne===-1){Re[Ee]=De;continue}if(!(oe=C[Ee.substring(0,Ne)])){S(eAe(Ee.substring(0,Ne)));continue}Ee=de===oe?Ee.substr(Ne+1):oe+Ee.substr(Ne),Re[Ee]=De}if(p)for(me=0,he=pe.length;me<he;me++){if(Ee=pe[me++],De=pe[me],Ne=Ee.indexOf(":"),Ne!==-1){if(!(oe=C[Ee.substring(0,Ne)])){S(eAe(Ee.substring(0,Ne)));continue}Ee=de===oe?Ee.substr(Ne+1):oe+Ee.substr(Ne)}Re[Ee]=De}return le=Re}function j(){for(var F=/(\r\n|\r|\n)/g,te=0,oe=0,de=0,pe=k,me,ve;P>=de&&(me=F.exec(E),!(!me||(pe=me[0].length+me.index,pe>P)));)te+=1,de=pe;return P==-1?(oe=pe,ve=E.substring(k)):k===0?ve=E.substring(k,P):(oe=P-de,ve=k==-1?E.substring(P):E.substring(P,k+1)),{data:ve,line:te,column:oe}}for(f=j,n&&(H=Object.create({},{name:L4(function(){return q}),originalName:L4(function(){return K}),attrs:L4(Z),ns:L4(function(){return C})}));k!==-1;){if(E.charCodeAt(k)===60?P=k:P=E.indexOf("<",k),P===-1){if(T.length)return _("unexpected end of file");if(k===0)return _("missing start tag");k<E.length&&E.substring(k).trim()&&S(JPe);return}if(k!==P){if(T.length){if(r&&(r(E.substring(k,P),_E,f),v))return}else if(E.substring(k,P).trim()&&(S(JPe),v))return}if(D=E.charCodeAt(P+1),D===33){if(z=E.charCodeAt(P+2),z===91&&E.substr(P+3,6)==="CDATA["){if(k=E.indexOf("]]>",P),k===-1)return _("unclosed cdata");if(a&&(a(E.substring(P+9,k),f),v))return;k+=3;continue}if(z===45&&E.charCodeAt(P+3)===45){if(k=E.indexOf("-->",P),k===-1)return _("unclosed comment");if(c&&(c(E.substring(P+4,k),_E,f),v))return;k+=3;continue}}if(D===63){if(k=E.indexOf("?>",P),k===-1)return _("unclosed question");if(u&&(u(E.substring(P,k+2),f),v))return;k+=2;continue}for($=P+1;;$++){if(B=E.charCodeAt($),isNaN(B))return k=-1,_("unclosed tag");if(B===34)z=E.indexOf('"',$+1),$=z!==-1?z:$;else if(B===39)z=E.indexOf("'",$+1),$=z!==-1?z:$;else if(B===62){k=$;break}}if(D===33){if(d&&(d(E.substring(P,k+1),_E,f),v))return;k+=1;continue}if(le={},D===47){if(O=!1,M=!0,!T.length)return _("missing open tag");if($=q=T.pop(),z=P+2+$.length,E.substring(P+2,z)!==$)return _("closing tag mismatch");for(;z<k;z++)if(D=E.charCodeAt(z),!(D===32||D>8&&D<14))return _("close tag")}else{if(E.charCodeAt(k-1)===47?($=q=E.substring(P+1,k-1),O=!0,M=!0):($=q=E.substring(P+1,k),O=!0,M=!1),!(D>96&&D<123||D>64&&D<91||D===95||D===58))return _("illegal first char nodeName");for(z=1,U=$.length;z<U;z++)if(D=$.charCodeAt(z),!(D>96&&D<123||D>64&&D<91||D>47&&D<59||D===45||D===95||D==46)){if(D===32||D<14&&D>8){q=$.substring(0,z),le=null;break}return _("invalid nodeName")}M||T.push(q)}if(h){if(x=C,O&&(M||w.push(x),le===null&&(p=$.indexOf("xmlns",z)!==-1)&&(Q=z,G=$,Z(),p=!1)),K=q,D=q.indexOf(":"),D!==-1){if(Y=C[q.substring(0,D)],!Y)return _("missing namespace on <"+K+">");q=q.substr(D+1)}else Y=C.xmlns;Y&&(q=Y+":"+q)}if(O&&(Q=z,G=$,i&&(n?i(H,_E,M,f):i(q,Z,_E,M,f),v)))return;if(M){if(o&&(o(n?H:q,_E,O,f),v))return;h&&(O?C=x:C=w.pop())}k+=1}}}function LJe(e){return e.xml&&e.xml.tagAlias==="lowerCase"}var wae={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},$Je="property";function FJe(e){return e.xml&&e.xml.serialize}function tjn(e){const n=FJe(e);return n!==$Je&&(n||null)}function njn(e){return e.charAt(0).toUpperCase()+e.slice(1)}function BJe(e,n){return LJe(n)?e.prefix+":"+njn(e.localName):e.name}function rjn(e,n){var r=e.name,i=e.localName,o=n&&n.xml&&n.xml.typePrefix;return o&&i.indexOf(o)===0?e.prefix+":"+i.slice(o.length):r}function ijn(e,n,r){const i=pc(e,n.xmlns),o=`${n[i.prefix]||i.prefix}:${i.localName}`,a=pc(o);var s=r.getPackage(a.prefix);return rjn(a,s)}function D0(e){return new Error(e)}function _y(e){return e.$descriptor}function ojn(e){Rt(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(n){this.references.push(n)},this.addElement=function(n){if(!n)throw D0("expected element");var r=this.elementsById,i=_y(n),o=i.idProperty,a;if(o&&(a=n.get(o.name),a)){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(a))throw new Error("illegal ID <"+a+">");if(r[a])throw D0("duplicate ID <"+a+">");r[a]=n}},this.addWarning=function(n){this.warnings.push(n)}}function CL(){}CL.prototype.handleEnd=function(){};CL.prototype.handleText=function(){};CL.prototype.handleNode=function(){};function The(){}The.prototype=Object.create(CL.prototype);The.prototype.handleNode=function(){return this};function VI(){}VI.prototype=Object.create(CL.prototype);VI.prototype.handleText=function(e){this.body=(this.body||"")+e};function wL(e,n){this.property=e,this.context=n}wL.prototype=Object.create(VI.prototype);wL.prototype.handleNode=function(e){if(this.element)throw D0("expected no sub nodes");return this.element=this.createReference(e),this};wL.prototype.handleEnd=function(){this.element.id=this.body};wL.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}};function Ohe(e,n){this.element=n,this.propertyDesc=e}Ohe.prototype=Object.create(VI.prototype);Ohe.prototype.handleEnd=function(){var e=this.body||"",n=this.element,r=this.propertyDesc;e=xhe(r.type,e),r.isMany?n.get(r.name).push(e):n.set(r.name,e)};function Oz(){}Oz.prototype=Object.create(VI.prototype);Oz.prototype.handleNode=function(e){var n=this,r=this.element;return r?n=this.handleChild(e):(r=this.element=this.createElement(e),this.context.addElement(r)),n};function Yc(e,n,r){this.model=e,this.type=e.getType(n),this.context=r}Yc.prototype=Object.create(Oz.prototype);Yc.prototype.addReference=function(e){this.context.addReference(e)};Yc.prototype.handleText=function(e){var n=this.element,r=_y(n),i=r.bodyProperty;if(!i)throw D0("unexpected body text <"+e+">");VI.prototype.handleText.call(this,e)};Yc.prototype.handleEnd=function(){var e=this.body,n=this.element,r=_y(n),i=r.bodyProperty;i&&e!==void 0&&(e=xhe(i.type,e),n.set(i.name,e))};Yc.prototype.createElement=function(e){var n=e.attributes,r=this.type,i=_y(r),o=this.context,a=new r({}),s=this.model,l;return ht(n,function(c,u){var d=i.propertiesByName[u],f;d&&d.isReference?d.isMany?(f=c.split(" "),ht(f,function(p){o.addReference({element:a,property:d.ns.name,id:p})})):o.addReference({element:a,property:d.ns.name,id:c}):(d?c=xhe(d.type,c):u==="xmlns"?u=":"+u:(l=pc(u,i.ns.prefix),s.getPackage(l.prefix)&&o.addWarning({message:"unknown attribute <"+u+">",element:a,property:u,value:c})),a.set(u,c))}),a};Yc.prototype.getPropertyForNode=function(e){var n=e.name,r=pc(n),i=this.type,o=this.model,a=_y(i),s=r.name,l=a.propertiesByName[s];if(l&&!l.isAttr){const u=tjn(l);if(u){const d=e.attributes[u];if(d){const f=ijn(d,e.ns,o),p=o.getType(f);return Rt({},l,{effectiveType:_y(p).name})}}return l}var c=o.getPackage(r.prefix);if(c){const u=BJe(r,c),d=o.getType(u);if(l=ki(a.properties,function(f){return!f.isVirtual&&!f.isReference&&!f.isAttribute&&d.hasType(f.type)}),l)return Rt({},l,{effectiveType:_y(d).name})}else if(l=ki(a.properties,function(u){return!u.isReference&&!u.isAttribute&&u.type==="Element"}),l)return l;throw D0("unrecognized element <"+r.name+">")};Yc.prototype.toString=function(){return"ElementDescriptor["+_y(this.type).name+"]"};Yc.prototype.valueHandler=function(e,n){return new Ohe(e,n)};Yc.prototype.referenceHandler=function(e){return new wL(e,this.context)};Yc.prototype.handler=function(e){return e==="Element"?new sR(this.model,e,this.context):new Yc(this.model,e,this.context)};Yc.prototype.handleChild=function(e){var n,r,i,o;if(n=this.getPropertyForNode(e),i=this.element,r=n.effectiveType||n.type,AJe(r))return this.valueHandler(n,i);n.isReference?o=this.referenceHandler(n).handleNode(e):o=this.handler(r).handleNode(e);var a=o.element;return a!==void 0&&(n.isMany?i.get(n.name).push(a):i.set(n.name,a),n.isReference?(Rt(a,{element:i}),this.context.addReference(a)):a.$parent=i),o};function Rhe(e,n,r){Yc.call(this,e,n,r)}Rhe.prototype=Object.create(Yc.prototype);Rhe.prototype.createElement=function(e){var n=e.name,r=pc(n),i=this.model,o=this.type,a=i.getPackage(r.prefix),s=a&&BJe(r,a)||n;if(!o.hasType(s))throw D0("unexpected element <"+e.originalName+">");return Yc.prototype.createElement.call(this,e)};function sR(e,n,r){this.model=e,this.context=r}sR.prototype=Object.create(Oz.prototype);sR.prototype.createElement=function(e){var n=e.name,r=pc(n),i=r.prefix,o=e.ns[i+"$uri"],a=e.attributes;return this.model.createAny(n,o,a)};sR.prototype.handleChild=function(e){var n=new sR(this.model,"Element",this.context).handleNode(e),r=this.element,i=n.element,o;return i!==void 0&&(o=r.$children=r.$children||[],o.push(i),i.$parent=r),n};sR.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)};function Ihe(e){e instanceof Wp&&(e={model:e}),Rt(this,{lax:!1},e)}Ihe.prototype.fromXML=function(e,n,r){var i=n.rootHandler;n instanceof Yc?(i=n,n={}):typeof n=="string"?(i=this.handler(n),n={}):typeof i=="string"&&(i=this.handler(i));var o=this.model,a=this.lax,s=new ojn(Rt({},n,{rootHandler:i})),l=new kJe({proxy:!0}),c=ajn();i.context=s,c.push(i);function u(w,C,x){var T=C(),R=T.line,O=T.column,M=T.data;M.charAt(0)==="<"&&M.indexOf(" ")!==-1&&(M=M.slice(0,M.indexOf(" "))+">");var P="unparsable content "+(M?M+" ":"")+`detected
line: `+R+`
column: `+O+`
nested error: `+w.message;if(x)return s.addWarning({message:P,error:w}),!0;throw D0(P)}function d(w,C){return u(w,C,!0)}function f(){var w=s.elementsById,C=s.references,x,T;for(x=0;T=C[x];x++){var R=T.element,O=w[T.id],M=_y(R).propertiesByName[T.property];if(O||s.addWarning({message:"unresolved reference <"+T.id+">",element:T.element,property:T.property,value:T.id}),M.isMany){var P=R.get(M.name),k=P.indexOf(T);k===-1&&(k=P.length),O?P[k]=O:P.splice(k,1)}else R.set(M.name,O)}}function p(){c.pop().handleEnd()}var h=/^<\?xml /i,g=/ encoding="([^"]+)"/i,v=/^utf-8$/i;function y(w){if(h.test(w)){var C=g.exec(w),x=C&&C[1];!x||v.test(x)||s.addWarning({message:"unsupported document encoding <"+x+">, falling back to UTF-8"})}}function _(w,C){var x=c.peek();try{c.push(x.handleNode(w))}catch(T){u(T,C,a)&&c.push(new The)}}function S(w,C){try{c.peek().handleText(w)}catch(x){d(x,C)}}function b(w,C){w.trim()&&S(w,C)}var E=o.getPackages().reduce(function(w,C){return w[C.uri]=C.prefix,w},Object.entries(wae).reduce(function(w,[C,x]){return w[x]=C,w},o.config&&o.config.nsMap||{}));return l.ns(E).on("openTag",function(w,C,x,T){var R=w.attrs||{},O=Object.keys(R).reduce(function(P,k){var $=C(R[k]);return P[k]=$,P},{}),M={name:w.name,originalName:w.originalName,attributes:O,ns:w.ns};_(M,T)}).on("question",y).on("closeTag",p).on("cdata",S).on("text",function(w,C,x){b(C(w),x)}).on("error",u).on("warn",d),new Promise(function(w,C){var x;try{l.parse(e),f()}catch(P){x=P}var T=i.element;!x&&!T&&(x=D0("failed to parse document as <"+i.type.$descriptor.name+">"));var R=s.warnings,O=s.references,M=s.elementsById;return x?(x.warnings=R,C(x)):w({rootElement:T,elementsById:M,references:O,warnings:R})})};Ihe.prototype.handler=function(e){return new Rhe(this.model,e)};function ajn(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}var sjn=`<?xml version="1.0" encoding="UTF-8"?>
`,ljn=/<|>|'|"|&|\n\r|\n/g,jJe=/<|>|&/g;function av(e){this.prefixMap={},this.uriMap={},this.used={},this.wellknown=[],this.custom=[],this.parent=e,this.defaultPrefixMap=e&&e.defaultPrefixMap||{}}av.prototype.mapDefaultPrefixes=function(e){this.defaultPrefixMap=e};av.prototype.defaultUriByPrefix=function(e){return this.defaultPrefixMap[e]};av.prototype.byUri=function(e){return this.uriMap[e]||this.parent&&this.parent.byUri(e)};av.prototype.add=function(e,n){this.uriMap[e.uri]=e,n?this.wellknown.push(e):this.custom.push(e),this.mapPrefix(e.prefix,e.uri)};av.prototype.uriByPrefix=function(e){return this.prefixMap[e||"xmlns"]||this.parent&&this.parent.uriByPrefix(e)};av.prototype.mapPrefix=function(e,n){this.prefixMap[e||"xmlns"]=n};av.prototype.getNSKey=function(e){return e.prefix!==void 0?e.uri+"|"+e.prefix:e.uri};av.prototype.logUsed=function(e){var n=e.uri,r=this.getNSKey(e);this.used[r]=this.byUri(n),this.parent&&this.parent.logUsed(e)};av.prototype.getUsed=function(e){var n=[].concat(this.wellknown,this.custom);return n.filter(r=>{var i=this.getNSKey(r);return this.used[i]})};function cjn(e){return e.charAt(0).toLowerCase()+e.slice(1)}function ujn(e,n){return LJe(n)?cjn(e):e}function UJe(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function HJe(e){return vd(e)?e:(e.prefix?e.prefix+":":"")+e.localName}function djn(e){return e.getUsed().filter(function(n){return n.prefix!=="xml"}).map(function(n){var r="xmlns"+(n.prefix?":"+n.prefix:"");return{name:r,value:n.uri}})}function fjn(e,n){return n.isGeneric?Rt({localName:n.ns.localName},e):Rt({localName:ujn(n.ns.localName,n.$pkg)},e)}function pjn(e,n){return Rt({localName:n.ns.localName},e)}function hjn(e){var n=e.$descriptor;return si(n.properties,function(r){var i=r.name;if(r.isVirtual||!gu(e,i))return!1;var o=e[i];return o===r.default||o===null?!1:r.isMany?o.length:!0})}var gjn={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},mjn={"<":"lt",">":"gt","&":"amp"};function zJe(e,n,r){return e=vd(e)?e:""+e,e.replace(n,function(i){return"&"+r[i]+";"})}function vjn(e){return zJe(e,ljn,gjn)}function yjn(e){return zJe(e,jJe,mjn)}function _jn(e){return si(e,function(n){return n.isAttr})}function bjn(e){return si(e,function(n){return!n.isAttr})}function Nhe(e){this.tagName=e}Nhe.prototype.build=function(e){return this.element=e,this};Nhe.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+"</"+this.tagName+">").appendNewLine()};function EC(){}EC.prototype.serializeValue=EC.prototype.serializeTo=function(e){e.append(this.escape?yjn(this.value):this.value)};EC.prototype.build=function(e,n){return this.value=n,e.type==="String"&&n.search(jJe)!==-1&&(this.escape=!0),this};function Mhe(e){this.tagName=e}UJe(Mhe,EC);Mhe.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append("</"+this.tagName+">").appendNewLine()};function ua(e,n){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=n}ua.prototype.build=function(e){this.element=e;var n=e.$descriptor,r=this.propertyDescriptor,i,o,a=n.isGeneric;return a?i=this.parseGenericNsAttributes(e):i=this.parseNsAttributes(e),r?this.ns=this.nsPropertyTagName(r):this.ns=this.nsTagName(n),this.tagName=this.addTagName(this.ns),a?this.parseGenericContainments(e):(o=hjn(e),this.parseAttributes(_jn(o)),this.parseContainments(bjn(o))),this.parseGenericAttributes(e,i),this};ua.prototype.nsTagName=function(e){var n=this.logNamespaceUsed(e.ns);return fjn(n,e)};ua.prototype.nsPropertyTagName=function(e){var n=this.logNamespaceUsed(e.ns);return pjn(n,e)};ua.prototype.isLocalNs=function(e){return e.uri===this.ns.uri};ua.prototype.nsAttributeName=function(e){var n;if(vd(e)?n=pc(e):n=e.ns,e.inherited)return{localName:n.localName};var r=this.logNamespaceUsed(n);return this.getNamespaces().logUsed(r),this.isLocalNs(r)?{localName:n.localName}:Rt({localName:n.localName},r)};ua.prototype.parseGenericNsAttributes=function(e){return Object.entries(e).filter(([n,r])=>!n.startsWith("$")&&this.parseNsAttribute(e,n,r)).map(([n,r])=>({name:n,value:r}))};ua.prototype.parseGenericContainments=function(e){var n=e.$body;n&&this.body.push(new EC().build({type:"String"},n));var r=e.$children;r&&ht(r,i=>{this.body.push(new ua(this).build(i))})};ua.prototype.parseNsAttribute=function(e,n,r){var i=e.$model,o=pc(n),a;if(o.prefix==="xmlns"&&(a={prefix:o.localName,uri:r}),!o.prefix&&o.localName==="xmlns"&&(a={uri:r}),!a)return{name:n,value:r};if(i&&i.getPackage(r))this.logNamespace(a,!0,!0);else{var s=this.logNamespaceUsed(a,!0);this.getNamespaces().logUsed(s)}};ua.prototype.parseNsAttributes=function(e){var n=this,r=e.$attrs,i=[];return ht(r,function(o,a){var s=n.parseNsAttribute(e,a,o);s&&i.push(s)}),i};ua.prototype.parseGenericAttributes=function(e,n){var r=this;ht(n,function(i){try{r.addAttribute(r.nsAttributeName(i.name),i.value)}catch(o){typeof console<"u"&&console.warn(`missing namespace information for <${i.name}=${i.value}> on`,e,o)}})};ua.prototype.parseContainments=function(e){var n=this,r=this.body,i=this.element;ht(e,function(o){var a=i.get(o.name),s=o.isReference,l=o.isMany;if(l||(a=[a]),o.isBody)r.push(new EC().build(o,a[0]));else if(AJe(o.type))ht(a,function(u){r.push(new Mhe(n.addTagName(n.nsPropertyTagName(o))).build(o,u))});else if(s)ht(a,function(u){r.push(new Nhe(n.addTagName(n.nsPropertyTagName(o))).build(u))});else{var c=FJe(o);ht(a,function(u){var d;c?c===$Je?d=new ua(n,o):d=new Rz(n,o,c):d=new ua(n),r.push(d.build(u))})}})};ua.prototype.getNamespaces=function(e){var n=this.namespaces,r=this.parent,i;return n||(i=r&&r.getNamespaces(),e||!i?this.namespaces=n=new av(i):n=i),n};ua.prototype.logNamespace=function(e,n,r){var i=this.getNamespaces(r),o=e.uri,a=e.prefix,s=i.byUri(o);return(!s||r)&&i.add(e,n),i.mapPrefix(a,o),e};ua.prototype.logNamespaceUsed=function(e,n){var r=this.getNamespaces(n),i=e.prefix,o=e.uri,a,s,l;if(!i&&!o)return{localName:e.localName};if(l=r.defaultUriByPrefix(i),o=o||l||r.uriByPrefix(i),!o)throw new Error("no namespace uri given for prefix <"+i+">");if(e=r.byUri(o),!e&&!i&&(e=this.logNamespace({uri:o},l===o,!0)),!e){for(a=i,s=1;r.uriByPrefix(a);)a=i+"_"+s++;e=this.logNamespace({prefix:a,uri:o},l===o)}return i&&r.mapPrefix(i,o),e};ua.prototype.parseAttributes=function(e){var n=this,r=this.element;ht(e,function(i){var o=r.get(i.name);if(i.isReference)if(!i.isMany)o=o.id;else{var a=[];ht(o,function(s){a.push(s.id)}),o=a.join(" ")}n.addAttribute(n.nsAttributeName(i),o)})};ua.prototype.addTagName=function(e){var n=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(n),HJe(e)};ua.prototype.addAttribute=function(e,n){var r=this.attrs;vd(n)&&(n=vjn(n));var i=QZe(r,function(a){return a.name.localName===e.localName&&a.name.uri===e.uri&&a.name.prefix===e.prefix}),o={name:e,value:n};i!==-1?r.splice(i,1,o):r.push(o)};ua.prototype.serializeAttributes=function(e){var n=this.attrs,r=this.namespaces;r&&(n=djn(r).concat(n)),ht(n,function(i){e.append(" ").append(HJe(i.name)).append('="').append(i.value).append('"')})};ua.prototype.serializeTo=function(e){var n=this.body[0],r=n&&n.constructor!==EC;e.appendIndent().append("<"+this.tagName),this.serializeAttributes(e),e.append(n?">":" />"),n&&(r&&e.appendNewLine().indent(),ht(this.body,function(i){i.serializeTo(e)}),r&&e.unindent().appendIndent(),e.append("</"+this.tagName+">")),e.appendNewLine()};function Rz(e,n,r){ua.call(this,e,n),this.serialization=r}UJe(Rz,ua);Rz.prototype.parseNsAttributes=function(e){var n=ua.prototype.parseNsAttributes.call(this,e).filter(s=>s.name!==this.serialization),r=e.$descriptor;if(r.name===this.propertyDescriptor.type)return n;var i=this.typeNs=this.nsTagName(r);this.getNamespaces().logUsed(this.typeNs);var o=e.$model.getPackage(i.uri),a=o.xml&&o.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(this.serialization),(i.prefix?i.prefix+":":"")+a+r.ns.localName),n};Rz.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri};function Sjn(){this.value="",this.write=function(e){this.value+=e}}function Ejn(e,n){var r=[""];this.append=function(i){return e.write(i),this},this.appendNewLine=function(){return n&&e.write(`
`),this},this.appendIndent=function(){return n&&e.write(r.join(" ")),this},this.indent=function(){return r.push(""),this},this.unindent=function(){return r.pop(),this}}function Cjn(e){e=Rt({format:!1,preamble:!0},e||{});function n(r,i){var o=i||new Sjn,a=new Ejn(o,e.format);e.preamble&&a.append(sjn);var s=new ua,l=r.$model;if(s.getNamespaces().mapDefaultPrefixes(wjn(l)),s.build(r).serializeTo(a),!i)return o.value}return{toXML:n}}function wjn(e){const n=e.config&&e.config.nsMap||{},r={};for(const i in wae)r[i]=wae[i];for(const i in n){const o=n[i];r[o]=i}for(const i of e.getPackages())r[i.prefix]=i.uri;return r}function Iz(e,n){Wp.call(this,e,n)}Iz.prototype=Object.create(Wp.prototype);Iz.prototype.fromXML=function(e,n,r){vd(n)||(r=n,n="bpmn:Definitions");var i=new Ihe(Rt({model:this,lax:!0},r)),o=i.handler(n);return i.fromXML(e,o)};Iz.prototype.toXML=function(e,n){var r=new Cjn(n);return new Promise(function(i,o){try{var a=r.toXML(e);return i({xml:a})}catch(s){return o(s)}})};var xjn="BPMN20",Tjn="http://www.omg.org/spec/BPMN/20100524/MODEL",Ojn="bpmn",Rjn=[],Ijn=[{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"}]}],Njn=[{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"}]}],Mjn={tagAlias:"lowerCase",typePrefix:"t"},Pjn={name:xjn,uri:Tjn,prefix:Ojn,associations:Rjn,types:Ijn,enumerations:Njn,xml:Mjn},Ajn="BPMNDI",Djn="http://www.omg.org/spec/BPMN/20100524/DI",kjn="bpmndi",Ljn=[{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"]}],$jn=[{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"}]}],Fjn=[],Bjn={name:Ajn,uri:Djn,prefix:kjn,types:Ljn,enumerations:$jn,associations:Fjn},jjn="DC",Ujn="http://www.omg.org/spec/DD/20100524/DC",Hjn="dc",zjn=[{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}]}],Vjn=[],Gjn={name:jjn,uri:Ujn,prefix:Hjn,types:zjn,associations:Vjn},Wjn="DI",Yjn="http://www.omg.org/spec/DD/20100524/DI",qjn="di",Kjn=[{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"}]}],Xjn=[],Qjn={tagAlias:"lowerCase"},Zjn={name:Wjn,uri:Yjn,prefix:qjn,types:Kjn,associations:Xjn,xml:Qjn},Jjn="bpmn.io colors for BPMN",e7n="http://bpmn.io/schema/bpmn/biocolor/1.0",t7n="bioc",n7n=[{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"}]}],r7n=[],i7n=[],o7n={name:Jjn,uri:e7n,prefix:t7n,types:n7n,enumerations:r7n,associations:i7n},a7n="BPMN in Color",s7n="http://www.omg.org/spec/BPMN/non-normative/color/1.0",l7n="color",c7n=[{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"}]}],u7n=[],d7n=[],f7n={name:a7n,uri:s7n,prefix:l7n,types:c7n,enumerations:u7n,associations:d7n};const p7n={bpmn:Pjn,bpmndi:Bjn,dc:Gjn,di:Zjn,bioc:o7n,color:f7n};function h7n(e,n){const r=Rt({},p7n,e);return new Iz(r,n)}function uc(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}var g7n="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 VJe(e){gu(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error(g7n)}})}function iu(e,n){return e.$instanceOf(n)}function m7n(e){return ki(e.rootElements,function(n){return iu(n,"bpmn:Process")||iu(n,"bpmn:Collaboration")})}function v7n(e){var n={},r=[],i={};function o(H,G){return function(Q){H(Q,G)}}function a(H){n[H.id]=H}function s(H){return n[H.id]}function l(H,G){var Q=H.gfx;if(Q)throw new Error(`already rendered ${uc(H)}`);return e.element(H,i[H.id],G)}function c(H,G){return e.root(H,i[H.id],G)}function u(H,G){try{var Q=i[H.id]&&l(H,G);return a(H),Q}catch(le){d(le.message,{element:H,error:le}),console.error(`failed to import ${uc(H)}`,le)}}function d(H,G){e.error(H,G)}var f=this.registerDi=function(G){var Q=G.bpmnElement;Q?i[Q.id]?d(`multiple DI elements defined for ${uc(Q)}`,{element:Q}):(i[Q.id]=G,VJe(Q)):d(`no bpmnElement referenced in ${uc(G)}`,{element:G})};function p(H){h(H.plane)}function h(H){f(H),ht(H.planeElement,g)}function g(H){f(H)}this.handleDefinitions=function(G,Q){var le=G.diagrams;if(Q&&le.indexOf(Q)===-1)throw new Error("diagram not part of <bpmn:Definitions />");if(!Q&&le&&le.length&&(Q=le[0]),!Q)throw new Error("no diagram to display");i={},p(Q);var Z=Q.plane;if(!Z)throw new Error(`no plane for ${uc(Q)}`);var j=Z.bpmnElement;if(!j)if(j=m7n(G),j)d(`correcting missing bpmnElement on ${uc(Z)} to ${uc(j)}`),Z.bpmnElement=j,f(Z);else throw new Error("no process or collaboration to display");var F=c(j,Z);if(iu(j,"bpmn:Process")||iu(j,"bpmn:SubProcess"))y(j,F);else if(iu(j,"bpmn:Collaboration"))q(j,F),_(G.rootElements,F);else throw new Error(`unsupported bpmnElement for ${uc(Z)}: ${uc(j)}`);v(r)};var v=this.handleDeferred=function(){for(var G;r.length;)G=r.shift(),G()};function y(H,G){D(H,G),R(H.ioSpecification,G),T(H.artifacts,G),a(H)}function _(H,G){var Q=si(H,function(le){return!s(le)&&iu(le,"bpmn:Process")&&le.laneSets});Q.forEach(o(y,G))}function S(H,G){u(H,G)}function b(H,G){ht(H,o(S,G))}function E(H,G){u(H,G)}function w(H,G){u(H,G)}function C(H,G){u(H,G)}function x(H,G){u(H,G)}function T(H,G){ht(H,function(Q){iu(Q,"bpmn:Association")?r.push(function(){x(Q,G)}):x(Q,G)})}function R(H,G){H&&(ht(H.dataInputs,o(w,G)),ht(H.dataOutputs,o(C,G)))}var O=this.handleSubProcess=function(G,Q){D(G,Q),T(G.artifacts,Q)};function M(H,G){var Q=u(H,G);iu(H,"bpmn:SubProcess")&&O(H,Q||G),iu(H,"bpmn:Activity")&&R(H.ioSpecification,G),r.push(function(){ht(H.dataInputAssociations,o(E,G)),ht(H.dataOutputAssociations,o(E,G))})}function P(H,G){u(H,G)}function k(H,G){u(H,G)}function $(H,G){r.push(function(){var Q=u(H,G);H.childLaneSet&&U(H.childLaneSet,Q||G),K(H)})}function U(H,G){ht(H.lanes,o($,G))}function z(H,G){ht(H,o(U,G))}function D(H,G){B(H.flowElements,G),H.laneSets&&z(H.laneSets,G)}function B(H,G){ht(H,function(Q){iu(Q,"bpmn:SequenceFlow")?r.push(function(){P(Q,G)}):iu(Q,"bpmn:BoundaryEvent")?r.unshift(function(){M(Q,G)}):iu(Q,"bpmn:FlowNode")?M(Q,G):iu(Q,"bpmn:DataObject")||(iu(Q,"bpmn:DataStoreReference")||iu(Q,"bpmn:DataObjectReference")?k(Q,G):d(`unrecognized flowElement ${uc(Q)} in context ${uc(G&&G.businessObject)}`,{element:Q,context:G}))})}function Y(H,G){var Q=u(H,G),le=H.processRef;le&&y(le,Q||G)}function q(H,G){ht(H.participants,o(Y,G)),T(H.artifacts,G),r.push(function(){b(H.messageFlows,G)})}function K(H){ht(H.flowNodeRef,function(G){var Q=G.get("lanes");Q&&Q.push(H)})}}function Fe(e,n){var r=In(e);return r&&typeof r.$instanceOf=="function"&&r.$instanceOf(n)}function ii(e,n){return fS(n,function(r){return Fe(e,r)})}function In(e){return e&&e.businessObject||e}function Ii(e){return e&&e.di}function y7n(e,n,r){var i,o,a,s,l=[];function c(u,d){var f={root:function(v,y){return i.add(v,y)},element:function(v,y,_){return i.add(v,y,_)},error:function(v,y){l.push({message:v,context:y})}},p=new v7n(f);d=d||u.diagrams&&u.diagrams[0];var h=_7n(u,d);if(!h)throw new Error("no diagram to display");ht(h,function(v){p.handleDefinitions(u,v)});var g=d.plane.bpmnElement.id;a.setRootElement(a.findRoot(g+"_plane")||a.findRoot(g))}return new Promise(function(u,d){try{return i=e.get("bpmnImporter"),o=e.get("eventBus"),a=e.get("canvas"),o.fire("import.render.start",{definitions:n}),c(n,r),o.fire("import.render.complete",{error:s,warnings:l}),u({warnings:l})}catch(f){return f.warnings=l,d(f)}})}function _7n(e,n){if(!(!n||!n.plane)){var r=n.plane.bpmnElement,i=r;!Fe(r,"bpmn:Process")&&!Fe(r,"bpmn:Collaboration")&&(i=b7n(r));var o;Fe(i,"bpmn:Collaboration")?o=i:o=ki(e.rootElements,function(u){if(Fe(u,"bpmn:Collaboration"))return ki(u.participants,function(d){return d.processRef===i})});var a=[i];o&&(a=vc(o.participants,function(u){return u.processRef}),a.push(o));var s=GJe(a),l=[n],c=[r];return ht(e.diagrams,function(u){if(u.plane){var d=u.plane.bpmnElement;s.indexOf(d)!==-1&&c.indexOf(d)===-1&&(l.push(u),c.push(d))}}),l}}function GJe(e){var n=[];return ht(e,function(r){r&&(n.push(r),n=n.concat(GJe(r.flowElements)))}),n}function b7n(e){for(var n=e;n;){if(Fe(n,"bpmn:Process"))return n;n=n.$parent}}var S7n='<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>',WJe=S7n,YJe={verticalAlign:"middle"},qJe={color:"#404040"},E7n={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},C7n={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},w7n={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"},x7n='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+WJe+'</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>',em;function T7n(){em=Ko(x7n),dc(em,E7n),dc(Co("svg",em),YJe),dc(Co(".backdrop",em),C7n),dc(Co(".notice",em),w7n),dc(Co(".link",em),qJe,{margin:"15px 20px 15px 10px",alignSelf:"center"})}function O7n(){em||(T7n(),ld.bind(em,".backdrop","click",function(e){document.body.removeChild(em)})),document.body.appendChild(em)}function Ia(e){e=Rt({},I7n,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),this._init(this._container,this._moddle,e),M7n(this._container)}Zn(Ia,hS);Ia.prototype.importXML=async function(n,r){const i=this;function o(s){return i.get("eventBus").createEvent(s)}let a=[];try{n=this._emit("import.parse.start",{xml:n})||n;let s;try{s=await this._moddle.fromXML(n,"bpmn:Definitions")}catch(p){throw this._emit("import.parse.complete",{error:p}),p}let l=s.rootElement;const c=s.references,u=s.warnings,d=s.elementsById;a=a.concat(u),l=this._emit("import.parse.complete",o({error:null,definitions:l,elementsById:d,references:c,warnings:a}))||l;const f=await this.importDefinitions(l,r);return a=a.concat(f.warnings),this._emit("import.done",{error:null,warnings:a}),{warnings:a}}catch(s){let l=s;throw a=a.concat(l.warnings||[]),j6(l,a),l=R7n(l),this._emit("import.done",{error:l,warnings:l.warnings}),l}};Ia.prototype.importDefinitions=async function(n,r){return this._setDefinitions(n),{warnings:(await this.open(r)).warnings}};Ia.prototype.open=async function(n){const r=this._definitions;let i=n;if(!r){const a=new Error("no XML imported");throw j6(a,[]),a}if(typeof n=="string"&&(i=N7n(r,n),!i)){const a=new Error("BPMNDiagram <"+n+"> not found");throw j6(a,[]),a}try{this.clear()}catch(a){throw j6(a,[]),a}const{warnings:o}=await y7n(this,r,i);return{warnings:o}};Ia.prototype.saveXML=async function(n){n=n||{};let r=this._definitions,i,o;try{if(!r)throw new Error("no definitions loaded");r=this._emit("saveXML.start",{definitions:r})||r,o=(await this._moddle.toXML(r,n)).xml,o=this._emit("saveXML.serialized",{xml:o})||o}catch(s){i=s}const a=i?{error:i}:{xml:o};if(this._emit("saveXML.done",a),i)throw i;return a};Ia.prototype.saveSVG=async function(){this._emit("saveSVG.start");let n,r;try{const i=this.get("canvas"),o=i.getActiveLayer(),a=Co(":scope > defs",i._svg),s=$Pe(o),l=a?"<defs>"+$Pe(a)+"</defs>":"",c=o.getBBox();n=`<?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="`+c.width+'" height="'+c.height+'" viewBox="'+c.x+" "+c.y+" "+c.width+" "+c.height+'" version="1.1">'+l+s+"</svg>"}catch(i){r=i}if(this._emit("saveSVG.done",{error:r,svg:n}),r)throw r;return{svg:n}};Ia.prototype._setDefinitions=function(e){this._definitions=e};Ia.prototype.getModules=function(){return this._modules};Ia.prototype.clear=function(){this.getDefinitions()&&hS.prototype.clear.call(this)};Ia.prototype.destroy=function(){hS.prototype.destroy.call(this),Bm(this._container)};Ia.prototype.on=function(e,n,r,i){return this.get("eventBus").on(e,n,r,i)};Ia.prototype.off=function(e,n){this.get("eventBus").off(e,n)};Ia.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=Co(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()};Ia.prototype.getDefinitions=function(){return this._definitions};Ia.prototype.detach=function(){const e=this._container,n=e.parentNode;n&&(this._emit("detach",{}),n.removeChild(e))};Ia.prototype._init=function(e,n,r){const i=r.modules||this.getModules(r),o=r.additionalModules||[],a=[{bpmnjs:["value",this],moddle:["value",n]}],s=[].concat(a,i,o),l=Rt(ov(r,["additionalModules"]),{canvas:Rt({},r.canvas,{container:e}),modules:s});hS.call(this,l),r&&r.container&&this.attachTo(r.container)};Ia.prototype._emit=function(e,n){return this.get("eventBus").fire(e,n)};Ia.prototype._createContainer=function(e){const n=Ko('<div class="bjs-container"></div>');return dc(n,{width:nAe(e.width),height:nAe(e.height),position:e.position}),n};Ia.prototype._createModdle=function(e){const n=Rt({},this._moddleExtensions,e.moddleExtensions);return new h7n(n)};Ia.prototype._modules=[];function j6(e,n){return e.warnings=n,e}function R7n(e){const r=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return r&&(e.message="unparsable content <"+r[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+r[2]),e}const I7n={width:"100%",height:"100%",position:"relative"};function nAe(e){return e+(Nr(e)?"px":"")}function N7n(e,n){return n&&ki(e.diagrams,function(r){return r.id===n})||null}function M7n(e){const r='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+WJe+"</a>",i=Ko(r);dc(Co("svg",i),YJe),dc(i,qJe,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(i),Ur.bind(i,"click",function(o){O7n(),o.preventDefault()})}function xL(e){Ia.call(this,e),this.on("import.parse.complete",function(n){n.error||this._collectIds(n.definitions,n.elementsById)},this),this.on("diagram.destroy",function(){this.get("moddle").ids.clear()},this)}Zn(xL,Ia);xL.prototype._createModdle=function(e){var n=Ia.prototype._createModdle.call(this,e);return n.ids=new $m([32,36,1]),n};xL.prototype._collectIds=function(e,n){var r=e.$model,i=r.ids,o;i.clear();for(o in n)i.claim(o,n[o])};function pi(e,n){return Fe(e,"bpmn:CallActivity")?!1:Fe(e,"bpmn:SubProcess")?(n=n||Ii(e),n&&Fe(n,"bpmndi:BPMNPlane")?!0:n&&!!n.isExpanded):Fe(e,"bpmn:Participant")?!!In(e).processRef:!0}function cl(e){if(!(!Fe(e,"bpmn:Participant")&&!Fe(e,"bpmn:Lane"))){var n=Ii(e).isHorizontal;return n===void 0?!0:n}}function P7n(e){return e&&In(e).isInterrupting!==!1}function zc(e){return e&&!!In(e).triggeredByEvent}function GI(e,n){var r=In(e).eventDefinitions;return fS(r,function(i){return Fe(i,n)})}function A7n(e){return GI(e,"bpmn:ErrorEventDefinition")}function D7n(e){return GI(e,"bpmn:EscalationEventDefinition")}function k7n(e){return GI(e,"bpmn:CompensateEventDefinition")}var tD={width:90,height:20},rAe=15;function CC(e){return Fe(e,"bpmn:Event")||Fe(e,"bpmn:Gateway")||Fe(e,"bpmn:DataStoreReference")||Fe(e,"bpmn:DataObjectReference")||Fe(e,"bpmn:DataInput")||Fe(e,"bpmn:DataOutput")||Fe(e,"bpmn:SequenceFlow")||Fe(e,"bpmn:MessageFlow")||Fe(e,"bpmn:Group")}function Nz(e){return Ni(e.label)}function L7n(e){var n=e.length/2-1,r=e[Math.floor(n)],i=e[Math.ceil(n+.01)],o=$7n(e),a=Math.atan((i.y-r.y)/(i.x-r.x)),s=o.x,l=o.y;return Math.abs(a)<Math.PI/2?l-=rAe:s+=rAe,{x:s,y:l}}function $7n(e){var n=e.length/2-1,r=e[Math.floor(n)],i=e[Math.ceil(n+.01)];return{x:r.x+(i.x-r.x)/2,y:r.y+(i.y-r.y)/2}}function Phe(e){return e.waypoints?L7n(e.waypoints):Fe(e,"bpmn:Group")?{x:e.x+e.width/2,y:e.y+tD.height/2}:{x:e.x+e.width/2,y:e.y+e.height+tD.height/2}}function F7n(e,n){var r,i,o,a=e.label;return a&&a.bounds?(o=a.bounds,i={width:Math.max(tD.width,o.width),height:o.height},r={x:o.x+o.width/2,y:o.y+o.height/2}):(r=Phe(n),i=tD),Rt({x:r.x-i.width/2,y:r.y-i.height/2},i)}function KJe(e){if(Fe(e,"bpmn:FlowElement")||Fe(e,"bpmn:Participant")||Fe(e,"bpmn:Lane")||Fe(e,"bpmn:SequenceFlow")||Fe(e,"bpmn:MessageFlow")||Fe(e,"bpmn:DataInput")||Fe(e,"bpmn:DataOutput"))return"name";if(Fe(e,"bpmn:TextAnnotation"))return"text";if(Fe(e,"bpmn:Group"))return"categoryValueRef"}function B7n(e){var n=e.categoryValueRef;return n&&n.value||""}function lg(e){var n=e.businessObject,r=KJe(n);if(r)return r==="categoryValueRef"?B7n(n):n[r]||""}function j7n(e,n){var r=e.businessObject,i=KJe(r);if(i)if(i==="categoryValueRef"){if(!r[i])return e;r[i].value=n}else r[i]=n;return e}var xae="hsl(225, 10%, 15%)",U7n="white";function Hg(e,n){return fS(e.eventDefinitions,function(r){return r.$type===n})}function H7n(e){return e.$type==="bpmn:IntermediateThrowEvent"||e.$type==="bpmn:EndEvent"}function z7n(e){var n=e.dataObjectRef;return e.isCollection||n&&n.isCollection}function ai(e,n,r){var i=Ii(e);return r||i.get("color:background-color")||i.get("bioc:fill")||n||U7n}function Yn(e,n,r){var i=Ii(e);return r||i.get("color:border-color")||i.get("bioc:stroke")||n||xae}function wM(e,n,r,i){var o=Ii(e),a=o.get("label");return i||a&&a.get("color:color")||n||Yn(e,r)}function V7n(e){var n=e.x+e.width/2,r=e.y+e.height/2,i=e.width/2,o=[["M",n,r],["m",0,-i],["a",i,i,0,1,1,0,2*i],["a",i,i,0,1,1,0,-2*i],["z"]];return Sw(o)}function G7n(e,n){var r=e.x,i=e.y,o=e.width,a=e.height,s=[["M",r+n,i],["l",o-n*2,0],["a",n,n,0,0,1,n,n],["l",0,a-n*2],["a",n,n,0,0,1,-n,n],["l",n*2-o,0],["a",n,n,0,0,1,-n,-n],["l",0,n*2-a],["a",n,n,0,0,1,n,-n],["z"]];return Sw(s)}function W7n(e){var n=e.width,r=e.height,i=e.x,o=e.y,a=n/2,s=r/2,l=[["M",i+a,o],["l",a,s],["l",-a,s],["l",-a,-s],["z"]];return Sw(l)}function Y7n(e){var n=e.x,r=e.y,i=e.width,o=e.height,a=[["M",n,r],["l",i,0],["l",0,o],["l",-i,0],["z"]];return Sw(a)}function xM(e,n={}){return{width:Xf(e,n),height:Wu(e,n)}}function Xf(e,n={}){return gu(n,"width")?n.width:e.width}function Wu(e,n={}){return gu(n,"height")?n.height:e.height}var q7n=new $m,K7n=10,$4=3,X7n=1.5,U6=10,Ax=.95,Q7n=1,Z7n=.25;function ww(e,n,r,i,o,a,s){h_.call(this,n,s);var l=e&&e.defaultFillColor,c=e&&e.defaultStrokeColor,u=e&&e.defaultLabelColor;function d(Z){return r.computeStyle(Z,{strokeLinecap:"round",strokeLinejoin:"round",stroke:xae,strokeWidth:2,fill:"white"})}function f(Z){return r.computeStyle(Z,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:xae,strokeWidth:2})}function p(Z,j){var{ref:F={x:0,y:0},scale:te=1,element:oe,parentGfx:de=o._svg}=j,pe=pr("marker",{id:Z,viewBox:"0 0 20 20",refX:F.x,refY:F.y,markerWidth:20*te,markerHeight:20*te,orient:"auto"});Ar(pe,oe);var me=Co(":scope > defs",de);me||(me=pr("defs"),Ar(de,me)),Ar(me,pe)}function h(Z,j,F,te){var oe=q7n.nextPrefixed("marker-");return g(Z,oe,j,F,te),"url(#"+oe+")"}function g(Z,j,F,te,oe){if(F==="sequenceflow-end"){var de=pr("path",{d:"M 1 5 L 11 10 L 1 15 Z",...d({fill:oe,stroke:oe,strokeWidth:1})});p(j,{element:de,ref:{x:11,y:10},scale:.5,parentGfx:Z})}if(F==="messageflow-start"){var pe=pr("circle",{cx:6,cy:6,r:3.5,...d({fill:te,stroke:oe,strokeWidth:1,strokeDasharray:[1e4,1]})});p(j,{element:pe,ref:{x:6,y:6},parentGfx:Z})}if(F==="messageflow-end"){var me=pr("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...d({fill:te,stroke:oe,strokeWidth:1,strokeDasharray:[1e4,1]})});p(j,{element:me,ref:{x:8.5,y:5},parentGfx:Z})}if(F==="association-start"){var ve=pr("path",{d:"M 11 5 L 1 10 L 11 15",...f({fill:"none",stroke:oe,strokeWidth:1.5,strokeDasharray:[1e4,1]})});p(j,{element:ve,ref:{x:1,y:10},scale:.5,parentGfx:Z})}if(F==="association-end"){var he=pr("path",{d:"M 1 5 L 11 10 L 1 15",...f({fill:"none",stroke:oe,strokeWidth:1.5,strokeDasharray:[1e4,1]})});p(j,{element:he,ref:{x:11,y:10},scale:.5,parentGfx:Z})}if(F==="conditional-flow-marker"){var be=pr("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...d({fill:te,stroke:oe})});p(j,{element:be,ref:{x:-1,y:10},scale:.5,parentGfx:Z})}if(F==="conditional-default-flow-marker"){var we=pr("path",{d:"M 6 4 L 10 16",...d({stroke:oe,fill:"none"})});p(j,{element:we,ref:{x:0,y:10},scale:.5,parentGfx:Z})}}function v(Z,j,F,te,oe={}){Rl(te)&&(oe=te,te=0),te=te||0,oe=d(oe);var de=j/2,pe=F/2,me=pr("circle",{cx:de,cy:pe,r:Math.round((j+F)/4-te),...oe});return Ar(Z,me),me}function y(Z,j,F,te,oe,de){Rl(oe)&&(de=oe,oe=0),oe=oe||0,de=d(de);var pe=pr("rect",{x:oe,y:oe,width:j-oe*2,height:F-oe*2,rx:te,ry:te,...de});return Ar(Z,pe),pe}function _(Z,j,F,te){var oe=j/2,de=F/2,pe=[{x:oe,y:0},{x:j,y:de},{x:oe,y:F},{x:0,y:de}],me=pe.map(function(he){return he.x+","+he.y}).join(" ");te=d(te);var ve=pr("polygon",{...te,points:me});return Ar(Z,ve),ve}function S(Z,j,F,te){F=f(F);var oe=wz(j,F,te);return Ar(Z,oe),oe}function b(Z,j,F){return S(Z,j,F,5)}function E(Z,j,F){F=f(F);var te=pr("path",{...F,d:j});return Ar(Z,te),te}function w(Z,j,F,te){return E(j,F,Rt({"data-marker":Z},te))}function C(Z){return le[Z]}function x(Z){return function(j,F,te){return C(Z)(j,F,te)}}var T={"bpmn:MessageEventDefinition":function(Z,j,F={},te){var oe=i.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:j.width,containerHeight:j.height,position:{mx:.235,my:.315}}),de=te?Yn(j,c,F.stroke):ai(j,l,F.fill),pe=te?ai(j,l,F.fill):Yn(j,c,F.stroke),me=E(Z,oe,{fill:de,stroke:pe,strokeWidth:1});return me},"bpmn:TimerEventDefinition":function(Z,j,F={}){var te=v(Z,j.width,j.height,.2*j.height,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:2}),oe=i.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:j.width,containerHeight:j.height,position:{mx:.5,my:.5}});E(Z,oe,{stroke:Yn(j,c,F.stroke),strokeWidth:2});for(var de=0;de<12;de++){var pe=i.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:j.width,containerHeight:j.height,position:{mx:.5,my:.5}}),me=j.width/2,ve=j.height/2;E(Z,pe,{strokeWidth:1,stroke:Yn(j,c,F.stroke),transform:"rotate("+de*30+","+ve+","+me+")"})}return te},"bpmn:EscalationEventDefinition":function(Z,j,F={},te){var oe=i.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:.5,my:.2}}),de=te?Yn(j,c,F.stroke):ai(j,l,F.fill);return E(Z,oe,{fill:de,stroke:Yn(j,c,F.stroke),strokeWidth:1})},"bpmn:ConditionalEventDefinition":function(Z,j,F={}){var te=i.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:.5,my:.222}});return E(Z,te,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:1})},"bpmn:LinkEventDefinition":function(Z,j,F={},te){var oe=i.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:.57,my:.263}}),de=te?Yn(j,c,F.stroke):ai(j,l,F.fill);return E(Z,oe,{fill:de,stroke:Yn(j,c,F.stroke),strokeWidth:1})},"bpmn:ErrorEventDefinition":function(Z,j,F={},te){var oe=i.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:j.width,containerHeight:j.height,position:{mx:.2,my:.722}}),de=te?Yn(j,c,F.stroke):ai(j,l,F.fill);return E(Z,oe,{fill:de,stroke:Yn(j,c,F.stroke),strokeWidth:1})},"bpmn:CancelEventDefinition":function(Z,j,F={},te){var oe=i.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:.638,my:-.055}}),de=te?Yn(j,c,F.stroke):"none",pe=E(Z,oe,{fill:de,stroke:Yn(j,c,F.stroke),strokeWidth:1});return IJe(pe,45),pe},"bpmn:CompensateEventDefinition":function(Z,j,F={},te){var oe=i.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:.22,my:.5}}),de=te?Yn(j,c,F.stroke):ai(j,l,F.fill);return E(Z,oe,{fill:de,stroke:Yn(j,c,F.stroke),strokeWidth:1})},"bpmn:SignalEventDefinition":function(Z,j,F={},te){var oe=i.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:j.width,containerHeight:j.height,position:{mx:.5,my:.2}}),de=te?Yn(j,c,F.stroke):ai(j,l,F.fill);return E(Z,oe,{strokeWidth:1,fill:de,stroke:Yn(j,c,F.stroke)})},"bpmn:MultipleEventDefinition":function(Z,j,F={},te){var oe=i.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:j.width,containerHeight:j.height,position:{mx:.222,my:.36}}),de=te?Yn(j,c,F.stroke):ai(j,l,F.fill);return E(Z,oe,{fill:de,strokeWidth:1})},"bpmn:ParallelMultipleEventDefinition":function(Z,j,F={}){var te=i.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:j.width,containerHeight:j.height,position:{mx:.458,my:.194}});return E(Z,te,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:1})},"bpmn:TerminateEventDefinition":function(Z,j,F={}){var te=v(Z,j.width,j.height,8,{fill:Yn(j,c,F.stroke),stroke:Yn(j,c,F.stroke),strokeWidth:4});return te}};function R(Z,j,F={}){var te=In(Z),oe=H7n(te);return te.get("eventDefinitions")&&te.get("eventDefinitions").length>1?te.get("parallelMultiple")?T["bpmn:ParallelMultipleEventDefinition"](j,Z,F,oe):T["bpmn:MultipleEventDefinition"](j,Z,F,oe):Hg(te,"bpmn:MessageEventDefinition")?T["bpmn:MessageEventDefinition"](j,Z,F,oe):Hg(te,"bpmn:TimerEventDefinition")?T["bpmn:TimerEventDefinition"](j,Z,F,oe):Hg(te,"bpmn:ConditionalEventDefinition")?T["bpmn:ConditionalEventDefinition"](j,Z,F,oe):Hg(te,"bpmn:SignalEventDefinition")?T["bpmn:SignalEventDefinition"](j,Z,F,oe):Hg(te,"bpmn:EscalationEventDefinition")?T["bpmn:EscalationEventDefinition"](j,Z,F,oe):Hg(te,"bpmn:LinkEventDefinition")?T["bpmn:LinkEventDefinition"](j,Z,F,oe):Hg(te,"bpmn:ErrorEventDefinition")?T["bpmn:ErrorEventDefinition"](j,Z,F,oe):Hg(te,"bpmn:CancelEventDefinition")?T["bpmn:CancelEventDefinition"](j,Z,F,oe):Hg(te,"bpmn:CompensateEventDefinition")?T["bpmn:CompensateEventDefinition"](j,Z,F,oe):Hg(te,"bpmn:TerminateEventDefinition")?T["bpmn:TerminateEventDefinition"](j,Z,F,oe):null}var O={ParticipantMultiplicityMarker:function(Z,j,F={}){var te=Xf(j,F),oe=Wu(j,F),de=i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:te,containerHeight:oe,position:{mx:(te/2-6)/te,my:(oe-15)/oe}});w("participant-multiplicity",Z,de,{strokeWidth:2,fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke)})},SubProcessMarker:function(Z,j,F={}){var te=y(Z,14,14,0,{strokeWidth:1,fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke)});Wl(te,j.width/2-7.5,j.height-20);var oe=i.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:j.width,containerHeight:j.height,position:{mx:(j.width/2-7.5)/j.width,my:(j.height-20)/j.height}});w("sub-process",Z,oe,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke)})},ParallelMarker:function(Z,j,F){var te=Xf(j,F),oe=Wu(j,F),de=i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:te,containerHeight:oe,position:{mx:(te/2+F.parallel)/te,my:(oe-20)/oe}});w("parallel",Z,de,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke)})},SequentialMarker:function(Z,j,F){var te=i.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:(j.width/2+F.seq)/j.width,my:(j.height-19)/j.height}});w("sequential",Z,te,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke)})},CompensationMarker:function(Z,j,F){var te=i.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:(j.width/2+F.compensation)/j.width,my:(j.height-13)/j.height}});w("compensation",Z,te,{strokeWidth:1,fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke)})},LoopMarker:function(Z,j,F){var te=Xf(j,F),oe=Wu(j,F),de=i.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:te,containerHeight:oe,position:{mx:(te/2+F.loop)/te,my:(oe-7)/oe}});w("loop",Z,de,{strokeWidth:1.5,fill:"none",stroke:Yn(j,c,F.stroke),strokeMiterlimit:.5})},AdhocMarker:function(Z,j,F){var te=Xf(j,F),oe=Wu(j,F),de=i.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:te,containerHeight:oe,position:{mx:(te/2+F.adhoc)/te,my:(oe-15)/oe}});w("adhoc",Z,de,{strokeWidth:1,fill:Yn(j,c,F.stroke),stroke:Yn(j,c,F.stroke)})}};function M(Z,j,F,te){O[Z](j,F,te)}function P(Z,j,F,te={}){te={fill:te.fill,stroke:te.stroke,width:Xf(j,te),height:Wu(j,te)};var oe=In(j),de=F&&F.includes("SubProcessMarker");de?te={...te,seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:te={...te,seq:-5,parallel:-6,compensation:-27,loop:0,adhoc:10},ht(F,function(ve){M(ve,Z,j,te)}),oe.get("isForCompensation")&&M("CompensationMarker",Z,j,te),Fe(oe,"bpmn:AdHocSubProcess")&&M("AdhocMarker",Z,j,te);var pe=oe.get("loopCharacteristics"),me=pe&&pe.get("isSequential");pe&&(me===void 0&&M("LoopMarker",Z,j,te),me===!1&&M("ParallelMarker",Z,j,te),me===!0&&M("SequentialMarker",Z,j,te))}function k(Z,j,F={}){F=Rt({size:{width:100}},F);var te=a.createText(j||"",F);return Ri(te).add("djs-label"),Ar(Z,te),te}function $(Z,j,F,te={}){var oe=In(j),de=xM({x:j.x,y:j.y,width:j.width,height:j.height},te);return k(Z,oe.name,{align:F,box:de,padding:7,style:{fill:wM(j,u,c,te.stroke)}})}function U(Z,j,F={}){var te={width:90,height:30,x:j.width/2+j.x,y:j.height/2+j.y};return k(Z,lg(j),{box:te,fitBox:!0,style:Rt({},a.getExternalStyle(),{fill:wM(j,u,c,F.stroke)})})}function z(Z,j,F,te={}){var oe=cl(F),de=k(Z,j,{box:{height:30,width:oe?Wu(F,te):Xf(F,te)},align:"center-middle",style:{fill:wM(F,u,c,te.stroke)}});if(oe){var pe=-1*Wu(F,te);B6(de,0,-pe,270)}}function D(Z,j,F={}){var{width:te,height:oe}=xM(j,F);return y(Z,te,oe,U6,{...F,fill:ai(j,l,F.fill),fillOpacity:Ax,stroke:Yn(j,c,F.stroke)})}function B(Z,j,F={}){var te=In(j),oe=ai(j,l,F.fill),de=Yn(j,c,F.stroke);return(te.get("associationDirection")==="One"||te.get("associationDirection")==="Both")&&(F.markerEnd=h(Z,"association-end",oe,de)),te.get("associationDirection")==="Both"&&(F.markerStart=h(Z,"association-start",oe,de)),F=Ti(F,["markerStart","markerEnd"]),b(Z,j.waypoints,{...F,stroke:de,strokeDasharray:"0, 5"})}function Y(Z,j,F={}){var te=ai(j,l,F.fill),oe=Yn(j,c,F.stroke),de=i.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:.474,my:.296}}),pe=E(Z,de,{fill:te,fillOpacity:Ax,stroke:oe}),me=In(j);if(z7n(me)){var ve=i.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:.33,my:(j.height-18)/j.height}});E(Z,ve,{strokeWidth:2,fill:te,stroke:oe})}return pe}function q(Z,j,F={}){return v(Z,j.width,j.height,{fillOpacity:Ax,...F,fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke)})}function K(Z,j,F={}){return _(Z,j.width,j.height,{fill:ai(j,l,F.fill),fillOpacity:Ax,stroke:Yn(j,c,F.stroke)})}function H(Z,j,F={}){var te=y(Z,Xf(j,F),Wu(j,F),0,{fill:ai(j,l,F.fill),fillOpacity:F.fillOpacity||Ax,stroke:Yn(j,c,F.stroke),strokeWidth:1.5}),oe=In(j);if(Fe(oe,"bpmn:Lane")){var de=oe.get("name");z(Z,de,j,F)}return te}function G(Z,j,F={}){var te=D(Z,j,F);zc(j)&&Gn(te,{strokeDasharray:"0, 5.5",strokeWidth:2.5});var oe=pi(j);return $(Z,j,oe?"center-top":"center-middle",F),oe?P(Z,j,void 0,F):P(Z,j,["SubProcessMarker"],F),te}function Q(Z,j,F={}){var te=D(Z,j,F);return $(Z,j,"center-middle",F),P(Z,j,void 0,F),te}var le=this.handlers={"bpmn:AdHocSubProcess":function(Z,j,F={}){return pi(j)?F=Ti(F,["fill","stroke","width","height"]):F=Ti(F,["fill","stroke"]),G(Z,j,F)},"bpmn:Association":function(Z,j,F={}){return F=Ti(F,["fill","stroke"]),B(Z,j,F)},"bpmn:BoundaryEvent":function(Z,j,F={}){var{renderIcon:te=!0}=F;F=Ti(F,["fill","stroke"]);var oe=In(j),de=oe.get("cancelActivity");F={strokeWidth:1.5,fill:ai(j,l,F.fill),fillOpacity:Q7n,stroke:Yn(j,c,F.stroke)},de||(F.strokeDasharray="6");var pe=q(Z,j,F);return v(Z,j.width,j.height,$4,{...F,fill:"none"}),te&&R(j,Z,F),pe},"bpmn:BusinessRuleTask":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=Q(Z,j,F),oe=i.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}),de=E(Z,oe);Gn(de,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:1});var pe=i.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}),me=E(Z,pe);return Gn(me,{fill:Yn(j,c,F.stroke),stroke:Yn(j,c,F.stroke),strokeWidth:1}),te},"bpmn:CallActivity":function(Z,j,F={}){return F=Ti(F,["fill","stroke"]),G(Z,j,{strokeWidth:5,...F})},"bpmn:ComplexGateway":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=K(Z,j,F),oe=i.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:j.width,containerHeight:j.height,position:{mx:.46,my:.26}});return E(Z,oe,{fill:Yn(j,c,F.stroke),stroke:Yn(j,c,F.stroke),strokeWidth:1}),te},"bpmn:DataInput":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=i.getRawPath("DATA_ARROW"),oe=Y(Z,j,F);return E(Z,te,{fill:"none",stroke:Yn(j,c,F.stroke),strokeWidth:1}),oe},"bpmn:DataInputAssociation":function(Z,j,F={}){return F=Ti(F,["fill","stroke"]),B(Z,j,{...F,markerEnd:h(Z,"association-end",ai(j,l,F.fill),Yn(j,c,F.stroke))})},"bpmn:DataObject":function(Z,j,F={}){return F=Ti(F,["fill","stroke"]),Y(Z,j,F)},"bpmn:DataObjectReference":x("bpmn:DataObject"),"bpmn:DataOutput":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=i.getRawPath("DATA_ARROW"),oe=Y(Z,j,F);return E(Z,te,{strokeWidth:1,fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke)}),oe},"bpmn:DataOutputAssociation":function(Z,j,F={}){return F=Ti(F,["fill","stroke"]),B(Z,j,{...F,markerEnd:h(Z,"association-end",ai(j,l,F.fill),Yn(j,c,F.stroke))})},"bpmn:DataStoreReference":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=i.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:j.width,containerHeight:j.height,position:{mx:0,my:.133}});return E(Z,te,{fill:ai(j,l,F.fill),fillOpacity:Ax,stroke:Yn(j,c,F.stroke),strokeWidth:2})},"bpmn:EndEvent":function(Z,j,F={}){var{renderIcon:te=!0}=F;F=Ti(F,["fill","stroke"]);var oe=q(Z,j,{...F,strokeWidth:4});return te&&R(j,Z,F),oe},"bpmn:EventBasedGateway":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=In(j),oe=K(Z,j,F);v(Z,j.width,j.height,j.height*.2,{fill:ai(j,"none",F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:1});var de=te.get("eventGatewayType"),pe=!!te.get("instantiate");function me(){var he=i.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:j.width,containerHeight:j.height,position:{mx:.36,my:.44}});E(Z,he,{fill:"none",stroke:Yn(j,c,F.stroke),strokeWidth:2})}if(de==="Parallel"){var ve=i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:j.width,containerHeight:j.height,position:{mx:.474,my:.296}});E(Z,ve,{fill:"none",stroke:Yn(j,c,F.stroke),strokeWidth:1})}else de==="Exclusive"&&(pe||v(Z,j.width,j.height,j.height*.26,{fill:"none",stroke:Yn(j,c,F.stroke),strokeWidth:1}),me());return oe},"bpmn:ExclusiveGateway":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=K(Z,j,F),oe=i.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:j.width,containerHeight:j.height,position:{mx:.32,my:.3}}),de=Ii(j);return de.get("isMarkerVisible")&&E(Z,oe,{fill:Yn(j,c,F.stroke),stroke:Yn(j,c,F.stroke),strokeWidth:1}),te},"bpmn:Gateway":function(Z,j,F={}){return F=Ti(F,["fill","stroke"]),K(Z,j,F)},"bpmn:Group":function(Z,j,F={}){return F=Ti(F,["fill","stroke","width","height"]),y(Z,j.width,j.height,U6,{stroke:Yn(j,c,F.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:Xf(j,F),height:Wu(j,F)})},"bpmn:InclusiveGateway":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=K(Z,j,F);return v(Z,j.width,j.height,j.height*.24,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:2.5}),te},"bpmn:IntermediateEvent":function(Z,j,F={}){var{renderIcon:te=!0}=F;F=Ti(F,["fill","stroke"]);var oe=q(Z,j,{...F,strokeWidth:1.5});return v(Z,j.width,j.height,$4,{fill:"none",stroke:Yn(j,c,F.stroke),strokeWidth:1.5}),te&&R(j,Z,F),oe},"bpmn:IntermediateCatchEvent":x("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":x("bpmn:IntermediateEvent"),"bpmn:Lane":function(Z,j,F={}){return F=Ti(F,["fill","stroke","width","height"]),H(Z,j,{...F,fillOpacity:Z7n})},"bpmn:ManualTask":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=Q(Z,j,F),oe=i.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}});return E(Z,oe,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:.5}),te},"bpmn:MessageFlow":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=In(j),oe=Ii(j),de=ai(j,l,F.fill),pe=Yn(j,c,F.stroke),me=b(Z,j.waypoints,{markerEnd:h(Z,"messageflow-end",de,pe),markerStart:h(Z,"messageflow-start",de,pe),stroke:pe,strokeDasharray:"10, 11",strokeWidth:1.5});if(te.get("messageRef")){var ve=me.getPointAtLength(me.getTotalLength()/2),he=i.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:ve.x,y:ve.y}}),be={strokeWidth:1};oe.get("messageVisibleKind")==="initiating"?(be.fill=de,be.stroke=pe):(be.fill=pe,be.stroke=de);var we=E(Z,he,be),De=te.get("messageRef"),Ae=De.get("name"),Ee=k(Z,Ae,{align:"center-top",fitBox:!0,style:{fill:pe}}),Re=we.getBBox(),Te=Ee.getBBox(),Oe=ve.x-Te.width/2,Ne=ve.y+Re.height/2+K7n;B6(Ee,Oe,Ne,0)}return me},"bpmn:ParallelGateway":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=K(Z,j,F),oe=i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:j.width,containerHeight:j.height,position:{mx:.46,my:.2}});return E(Z,oe,{fill:Yn(j,c,F.stroke),stroke:Yn(j,c,F.stroke),strokeWidth:1}),te},"bpmn:Participant":function(Z,j,F={}){F=Ti(F,["fill","stroke","width","height"]);var te=H(Z,j,F),oe=pi(j),de=cl(j),pe=In(j),me=pe.get("name");if(oe){var ve=de?[{x:30,y:0},{x:30,y:Wu(j,F)}]:[{x:0,y:30},{x:Xf(j,F),y:30}];S(Z,ve,{stroke:Yn(j,c,F.stroke),strokeWidth:X7n}),z(Z,me,j,F)}else{var he=xM(j,F);de||(he.height=Xf(j,F),he.width=Wu(j,F));var be=k(Z,me,{box:he,align:"center-middle",style:{fill:wM(j,u,c,F.stroke)}});if(!de){var we=-1*Wu(j,F);B6(be,0,-we,270)}}return pe.get("participantMultiplicity")&&M("ParticipantMultiplicityMarker",Z,j,F),te},"bpmn:ReceiveTask":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=In(j),oe=Q(Z,j,F),de;return te.get("instantiate")?(v(Z,28,28,20*.22,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:1}),de=i.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):de=i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),E(Z,de,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:1}),oe},"bpmn:ScriptTask":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=Q(Z,j,F),oe=i.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}});return E(Z,oe,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:1}),te},"bpmn:SendTask":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=Q(Z,j,F),oe=i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}});return E(Z,oe,{fill:Yn(j,c,F.stroke),stroke:ai(j,l,F.fill),strokeWidth:1}),te},"bpmn:SequenceFlow":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=ai(j,l,F.fill),oe=Yn(j,c,F.stroke),de=b(Z,j.waypoints,{markerEnd:h(Z,"sequenceflow-end",te,oe),stroke:oe}),pe=In(j),{source:me}=j;if(me){var ve=In(me);pe.get("conditionExpression")&&Fe(ve,"bpmn:Activity")&&Gn(de,{markerStart:h(Z,"conditional-flow-marker",te,oe)}),ve.get("default")&&(Fe(ve,"bpmn:Gateway")||Fe(ve,"bpmn:Activity"))&&ve.get("default")===pe&&Gn(de,{markerStart:h(Z,"conditional-default-flow-marker",te,oe)})}return de},"bpmn:ServiceTask":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=Q(Z,j,F);v(Z,10,10,{fill:ai(j,l,F.fill),stroke:"none",transform:"translate(6, 6)"});var oe=i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}});E(Z,oe,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:1}),v(Z,10,10,{fill:ai(j,l,F.fill),stroke:"none",transform:"translate(11, 10)"});var de=i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}});return E(Z,de,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:1}),te},"bpmn:StartEvent":function(Z,j,F={}){var{renderIcon:te=!0}=F;F=Ti(F,["fill","stroke"]);var oe=In(j);oe.get("isInterrupting")||(F={...F,strokeDasharray:"6"});var de=q(Z,j,F);return te&&R(j,Z,F),de},"bpmn:SubProcess":function(Z,j,F={}){return pi(j)?F=Ti(F,["fill","stroke","width","height"]):F=Ti(F,["fill","stroke"]),G(Z,j,F)},"bpmn:Task":function(Z,j,F={}){return F=Ti(F,["fill","stroke"]),Q(Z,j,F)},"bpmn:TextAnnotation":function(Z,j,F={}){F=Ti(F,["fill","stroke","width","height"]);var{width:te,height:oe}=xM(j,F),de=y(Z,te,oe,0,0,{fill:"none",stroke:"none"}),pe=i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:te,containerHeight:oe,position:{mx:0,my:0}});E(Z,pe,{stroke:Yn(j,c,F.stroke)});var me=In(j),ve=me.get("text")||"";return k(Z,ve,{align:"left-top",box:xM(j,F),padding:7,style:{fill:wM(j,u,c,F.stroke)}}),de},"bpmn:Transaction":function(Z,j,F={}){pi(j)?F=Ti(F,["fill","stroke","width","height"]):F=Ti(F,["fill","stroke"]);var te=G(Z,j,{strokeWidth:1.5,...F}),oe=r.style(["no-fill","no-events"],{stroke:Yn(j,c,F.stroke),strokeWidth:1.5}),de=pi(j);return de||(F={}),y(Z,Xf(j,F),Wu(j,F),U6-$4,$4,oe),te},"bpmn:UserTask":function(Z,j,F={}){F=Ti(F,["fill","stroke"]);var te=Q(Z,j,F),oe=15,de=12,pe=i.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:oe,y:de}});E(Z,pe,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:.5});var me=i.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:oe,y:de}});E(Z,me,{fill:ai(j,l,F.fill),stroke:Yn(j,c,F.stroke),strokeWidth:.5});var ve=i.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:oe,y:de}});return E(Z,ve,{fill:Yn(j,c,F.stroke),stroke:Yn(j,c,F.stroke),strokeWidth:.5}),te},label:function(Z,j,F={}){return U(Z,j,F)}};this._drawPath=E,this._renderer=C}Zn(ww,h_);ww.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"];ww.prototype.canRender=function(e){return Fe(e,"bpmn:BaseElement")};ww.prototype.drawShape=function(e,n,r={}){var{type:i}=n,o=this._renderer(i);return o(e,n,r)};ww.prototype.drawConnection=function(e,n,r={}){var{type:i}=n,o=this._renderer(i);return o(e,n,r)};ww.prototype.getShapePath=function(e){return Fe(e,"bpmn:Event")?V7n(e):Fe(e,"bpmn:Activity")?G7n(e,U6):Fe(e,"bpmn:Gateway")?W7n(e):Y7n(e)};function Ti(e,n=[]){return n.reduce((r,i)=>(e[i]&&(r[i]=e[i]),r),{})}var J7n=0,e9n={width:150,height:50};function t9n(e){var n=e.split("-");return{horizontal:n[0]||"center",vertical:n[1]||"top"}}function n9n(e){return Rl(e)?Rt({top:0,left:0,right:0,bottom:0},e):{top:e,left:e,right:e,bottom:e}}function r9n(e,n){n.textContent=e;var r;try{var i,o=e==="";return n.textContent=o?"dummy":e,r=n.getBBox(),i={width:r.width+r.x*2,height:r.height},o&&(i.width=0),i}catch(a){return console.log(a),{width:0,height:0}}}function i9n(e,n,r){for(var i=e.shift(),o=i,a;;){if(a=r9n(o,r),a.width=o?a.width:0,o===" "||o===""||a.width<Math.round(n)||o.length<2)return o9n(e,o,i,a);o=s9n(o,a.width,n)}}function o9n(e,n,r,i){if(n.length<r.length){var o=r.slice(n.length).trim();e.unshift(o)}return{width:i.width,height:i.height,text:n}}var iAe="­";function a9n(e,n){var r=e.split(/(\s|-|\u00AD)/g),i,o=[],a=0;if(r.length>1)for(;i=r.shift();)if(i.length+a<n)o.push(i),a+=i.length;else{(i==="-"||i===iAe)&&o.pop();break}var s=o[o.length-1];return s&&s===iAe&&(o[o.length-1]="-"),o.join("")}function s9n(e,n,r){var i=Math.max(e.length*(r/n),1),o=a9n(e,i);return o||(o=e.slice(0,Math.max(Math.round(i-1),1))),o}function l9n(){var e=document.getElementById("helper-svg");return e||(e=pr("svg"),Gn(e,{id:"helper-svg"}),dc(e,{visibility:"hidden",position:"fixed",width:0,height:0}),document.body.appendChild(e)),e}function Mz(e){this._config=Rt({},{size:e9n,padding:J7n,style:{},align:"center-top"},e||{})}Mz.prototype.createText=function(e,n){return this.layoutText(e,n).element};Mz.prototype.getDimensions=function(e,n){return this.layoutText(e,n).dimensions};Mz.prototype.layoutText=function(e,n){var r=Rt({},this._config.size,n.box),i=Rt({},this._config.style,n.style),o=t9n(n.align||this._config.align),a=n9n(n.padding!==void 0?n.padding:this._config.padding),s=n.fitBox||!1,l=c9n(i),c=e.split(/\u00AD?\r?\n/),u=[],d=r.width-a.left-a.right,f=pr("text");Gn(f,{x:0,y:0}),Gn(f,i);var p=l9n();for(Ar(p,f);c.length;)u.push(i9n(c,d,f));o.vertical==="middle"&&(a.top=a.bottom=0);var h=yd(u,function(S,b,E){return S+(l||b.height)},0)+a.top+a.bottom,g=yd(u,function(S,b,E){return b.width>S?b.width:S},0),v=a.top;o.vertical==="middle"&&(v+=(r.height-h)/2),v-=(l||u[0].height)/4;var y=pr("text");Gn(y,i),ht(u,function(S){var b;switch(v+=l||S.height,o.horizontal){case"left":b=a.left;break;case"right":b=(s?g:d)-a.right-S.width;break;default:b=Math.max(((s?g:d)-S.width)/2+a.left,0)}var E=pr("tspan");Gn(E,{x:b,y:v}),E.textContent=S.text,Ar(y,E)}),Hs(f);var _={width:g,height:h};return{dimensions:_,element:y}};function c9n(e){if("fontSize"in e&&"lineHeight"in e)return e.lineHeight*parseInt(e.fontSize,10)}var u9n=12,d9n=1.2,f9n=30;function XJe(e){var n=Rt({fontFamily:"Arial, sans-serif",fontSize:u9n,fontWeight:"normal",lineHeight:d9n},e&&e.defaultStyle||{}),r=parseInt(n.fontSize,10)-1,i=Rt({},n,{fontSize:r},e&&e.externalStyle||{}),o=new Mz({style:n});this.getExternalLabelBounds=function(a,s){var l=o.getDimensions(s,{box:{width:90,height:30},style:i});return{x:Math.round(a.x+a.width/2-l.width/2),y:Math.round(a.y),width:Math.ceil(l.width),height:Math.ceil(l.height)}},this.getTextAnnotationBounds=function(a,s){var l=o.getDimensions(s,{box:a,style:n,align:"left-top",padding:5});return{x:a.x,y:a.y,width:a.width,height:Math.max(f9n,Math.round(l.height))}},this.createText=function(a,s){return o.createText(a,s||{})},this.getDefaultStyle=function(){return n},this.getExternalStyle=function(){return i}}XJe.$inject=["config.textRenderer"];function p9n(){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(n){return this.pathMap[n].d},this.getScaledPath=function(n,r){var i=this.pathMap[n],o,a;r.abspos?(o=r.abspos.x,a=r.abspos.y):(o=r.containerWidth*r.position.mx,a=r.containerHeight*r.position.my);var s={};if(r.position){for(var l=r.containerHeight/i.height*r.yScaleFactor,c=r.containerWidth/i.width*r.xScaleFactor,u=0;u<i.heightElements.length;u++)s["y"+u]=i.heightElements[u]*l;for(var d=0;d<i.widthElements.length;d++)s["x"+d]=i.widthElements[d]*c}var f=v9n(i.d,{mx:o,my:a,e:s});return f}}var h9n=/\{([^{}]+)\}/g,g9n=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;function m9n(e,n,r){var i=r;return n.replace(g9n,function(o,a,s,l,c){a=a||l,i&&(a in i&&(i=i[a]),typeof i=="function"&&c&&(i=i()))}),i=(i==null||i==r?e:i)+"",i}function v9n(e,n){return String(e).replace(h9n,function(r,i){return m9n(r,i,n)})}const y9n={__init__:["bpmnRenderer"],bpmnRenderer:["type",ww],textRenderer:["type",XJe],pathMap:["type",p9n]};function _9n(e,n){return n=n||{},e.replace(/{([^}]+)}/g,function(r,i){return n[i]||"{"+i+"}"})}const Pz={translate:["value",_9n]};function H6(e,n,r){return Rt({id:e.id,type:e.$type,businessObject:e,di:n},r)}function b9n(e,n,r){var i=e.waypoint;return!i||i.length<2?[Mr(n),Mr(r)]:i.map(function(o){return{x:o.x,y:o.y}})}function QJe(e,n,r){return new Error(`element ${uc(n)} referenced by ${uc(e)}#${r} not yet drawn`)}function m_(e,n,r,i,o){this._eventBus=e,this._canvas=n,this._elementFactory=r,this._elementRegistry=i,this._textRenderer=o}m_.$inject=["eventBus","canvas","elementFactory","elementRegistry","textRenderer"];m_.prototype.add=function(e,n,r){var i,o,a;if(Fe(n,"bpmndi:BPMNPlane")){var s=Fe(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};i=this._elementFactory.createRoot(H6(e,n,s)),this._canvas.addRootElement(i)}else if(Fe(n,"bpmndi:BPMNShape")){var l=!pi(e,n),c=E9n(e);o=r&&(r.hidden||r.collapsed);var u=n.bounds;i=this._elementFactory.createShape(H6(e,n,{collapsed:l,hidden:o,x:Math.round(u.x),y:Math.round(u.y),width:Math.round(u.width),height:Math.round(u.height),isFrame:c})),Fe(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,i),Fe(e,"bpmn:Lane")&&(a=0),Fe(e,"bpmn:DataStoreReference")&&(S9n(r,Mr(u))||(r=this._canvas.findRoot(r))),this._canvas.addShape(i,r,a)}else if(Fe(n,"bpmndi:BPMNEdge")){var d=this._getSource(e),f=this._getTarget(e);o=r&&(r.hidden||r.collapsed),i=this._elementFactory.createConnection(H6(e,n,{hidden:o,source:d,target:f,waypoints:b9n(n,d,f)})),Fe(e,"bpmn:DataAssociation")&&(r=this._canvas.findRoot(r)),this._canvas.addConnection(i,r,a)}else throw new Error(`unknown di ${uc(n)} for element ${uc(e)}`);return CC(e)&&lg(i)&&this.addLabel(e,n,i),this._eventBus.fire("bpmnElement.added",{element:i}),i};m_.prototype._attachBoundary=function(e,n){var r=e.attachedToRef;if(!r)throw new Error(`missing ${uc(e)}#attachedToRef`);var i=this._elementRegistry.get(r.id),o=i&&i.attachers;if(!i)throw QJe(e,r,"attachedToRef");n.host=i,o||(i.attachers=o=[]),o.indexOf(n)===-1&&o.push(n)};m_.prototype.addLabel=function(e,n,r){var i,o,a;return i=F7n(n,r),o=lg(r),o&&(i=this._textRenderer.getExternalLabelBounds(i,o)),a=this._elementFactory.createLabel(H6(e,n,{id:e.id+"_label",labelTarget:r,type:"label",hidden:r.hidden||!lg(r),x:Math.round(i.x),y:Math.round(i.y),width:Math.round(i.width),height:Math.round(i.height)})),this._canvas.addShape(a,r.parent)};m_.prototype._getConnectedElement=function(e,n){var r,i,o=e.$type;if(i=e[n+"Ref"],n==="source"&&o==="bpmn:DataInputAssociation"&&(i=i&&i[0]),(n==="source"&&o==="bpmn:DataOutputAssociation"||n==="target"&&o==="bpmn:DataInputAssociation")&&(i=e.$parent),r=i&&this._getElement(i),r)return r;throw i?QJe(e,i,n+"Ref"):new Error(`${uc(e)}#${n} Ref not specified`)};m_.prototype._getSource=function(e){return this._getConnectedElement(e,"source")};m_.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")};m_.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};function S9n(e,n){var r=n.x,i=n.y;return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}function E9n(e){return Fe(e,"bpmn:Group")}const C9n={__depends__:[Pz],bpmnImporter:["type",m_]},w9n={__depends__:[y9n,C9n]};function TL(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}TL.prototype.next=function(){return this._prefix+ ++this._counter};var x9n=new TL("ov"),T9n=500;function Ml(e,n,r,i){this._eventBus=n,this._canvas=r,this._elementRegistry=i,this._ids=x9n,this._overlayDefaults=Rt({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=O9n(r.getContainer()),this._init()}Ml.$inject=["config.overlays","eventBus","canvas","elementRegistry"];Ml.prototype.get=function(e){if(vd(e)&&(e={id:e}),vd(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var n=this._getOverlayContainer(e.element,!0);return n?e.type?si(n.overlays,Kh({type:e.type})):n.overlays.slice():[]}else return e.type?si(this._overlays,Kh({type:e.type})):e.id?this._overlays[e.id]:null};Ml.prototype.add=function(e,n,r){if(Rl(n)&&(r=n,n=null),e.id||(e=this._elementRegistry.get(e)),!r.position)throw new Error("must specifiy overlay position");if(!r.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var i=this._ids.next();return r=Rt({},this._overlayDefaults,r,{id:i,type:n,element:e,html:r.html}),this._addOverlay(r),i};Ml.prototype.remove=function(e){var n=this.get(e)||[];zr(n)||(n=[n]);var r=this;ht(n,function(i){var o=r._getOverlayContainer(i.element,!0);if(i&&(Bm(i.html),Bm(i.htmlContainer),delete i.htmlContainer,delete i.element,delete r._overlays[i.id]),o){var a=o.overlays.indexOf(i);a!==-1&&o.overlays.splice(a,1)}})};Ml.prototype.isShown=function(){return this._overlayRoot.style.display!=="none"};Ml.prototype.show=function(){Az(this._overlayRoot)};Ml.prototype.hide=function(){Az(this._overlayRoot,!1)};Ml.prototype.clear=function(){this._overlays={},this._overlayContainers=[],Ez(this._overlayRoot)};Ml.prototype._updateOverlayContainer=function(e){var n=e.element,r=e.html,i=n.x,o=n.y;if(n.waypoints){var a=sl(n);i=a.x,o=a.y}ZJe(r,i,o),fc(e.html,"data-container-id",n.id)};Ml.prototype._updateOverlay=function(e){var n=e.position,r=e.htmlContainer,i=e.element,o=n.left,a=n.top;if(n.right!==void 0){var s;i.waypoints?s=sl(i).width:s=i.width,o=n.right*-1+s}if(n.bottom!==void 0){var l;i.waypoints?l=sl(i).height:l=i.height,a=n.bottom*-1+l}ZJe(r,o||0,a||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())};Ml.prototype._createOverlayContainer=function(e){var n=Ko('<div class="djs-overlays" />');dc(n,{position:"absolute"}),this._overlayRoot.appendChild(n);var r={html:n,element:e,overlays:[]};return this._updateOverlayContainer(r),this._overlayContainers.push(r),r};Ml.prototype._updateRoot=function(e){var n=e.scale||1,r="matrix("+[n,0,0,n,-1*e.x*n,-1*e.y*n].join(",")+")";JJe(this._overlayRoot,r)};Ml.prototype._getOverlayContainer=function(e,n){var r=ki(this._overlayContainers,function(i){return i.element===e});return!r&&!n?this._createOverlayContainer(e):r};Ml.prototype._addOverlay=function(e){var n=e.id,r=e.element,i=e.html,o,a;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),vd(i)&&(i=Ko(i)),a=this._getOverlayContainer(r),o=Ko('<div class="djs-overlay" data-overlay-id="'+n+'">'),dc(o,{position:"absolute"}),o.appendChild(i),e.type&&Ga(o).add("djs-overlay-"+e.type);var s=this._canvas.findRoot(r),l=this._canvas.getRootElement();Az(o,s===l),e.htmlContainer=o,a.overlays.push(e),a.html.appendChild(o),this._overlays[n]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())};Ml.prototype._updateOverlayVisibilty=function(e,n){var r=e.show,i=this._canvas.findRoot(e.element),o=r&&r.minZoom,a=r&&r.maxZoom,s=e.htmlContainer,l=this._canvas.getRootElement(),c=!0;(i!==l||r&&(bl(o)&&o>n.scale||bl(a)&&a<n.scale))&&(c=!1),Az(s,c),this._updateOverlayScale(e,n)};Ml.prototype._updateOverlayScale=function(e,n){var r=e.scale,i,o,a=e.htmlContainer,s,l="";r!==!0&&(r===!1?(i=1,o=1):(i=r.min,o=r.max),bl(i)&&n.scale<i&&(s=(1/n.scale||1)*i),bl(o)&&n.scale>o&&(s=(1/n.scale||1)*o)),bl(s)&&(l="scale("+s+","+s+")"),JJe(a,l)};Ml.prototype._updateOverlaysVisibilty=function(e){var n=this;ht(this._overlays,function(r){n._updateOverlayVisibilty(r,e)})};Ml.prototype._init=function(){var e=this._eventBus,n=this;function r(i){n._updateRoot(i),n._updateOverlaysVisibilty(i),n.show()}e.on("canvas.viewbox.changing",function(i){n.hide()}),e.on("canvas.viewbox.changed",function(i){r(i.viewbox)}),e.on(["shape.remove","connection.remove"],function(i){var o=i.element,a=n.get({element:o});ht(a,function(c){n.remove(c.id)});var s=n._getOverlayContainer(o);if(s){Bm(s.html);var l=n._overlayContainers.indexOf(s);l!==-1&&n._overlayContainers.splice(l,1)}}),e.on("element.changed",T9n,function(i){var o=i.element,a=n._getOverlayContainer(o,!0);a&&(ht(a.overlays,function(s){n._updateOverlay(s)}),n._updateOverlayContainer(a))}),e.on("element.marker.update",function(i){var o=n._getOverlayContainer(i.element,!0);o&&Ga(o.html)[i.add?"add":"remove"](i.marker)}),e.on("root.set",function(){n._updateOverlaysVisibilty(n._canvas.viewbox())}),e.on("diagram.clear",this.clear,this)};function O9n(e){var n=Ko('<div class="djs-overlay-container" />');return dc(n,{position:"absolute",width:0,height:0}),e.insertBefore(n,e.firstChild),n}function ZJe(e,n,r){dc(e,{left:n+"px",top:r+"px"})}function Az(e,n){e.style.display=n===!1?"none":""}function JJe(e,n){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach(function(r){e.style[r+"transform"]=n})}const Dz={__init__:["overlays"],overlays:["type",Ml]};function eet(e,n,r,i){e.on("element.changed",function(o){var a=o.element;(a.parent||a===n.getRootElement())&&(o.gfx=r.getGraphics(a)),o.gfx&&e.fire(fJe(a)+".changed",o)}),e.on("elements.changed",function(o){var a=o.elements;a.forEach(function(s){e.fire("element.changed",{element:s})}),i.updateContainments(a)}),e.on("shape.changed",function(o){i.update("shape",o.element,o.gfx)}),e.on("connection.changed",function(o){i.update("connection",o.element,o.gfx)})}eet.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];const Ahe={__init__:["changeSupport"],changeSupport:["type",eet]};var R9n=1e3;function vn(e){this._eventBus=e}vn.$inject=["eventBus"];function I9n(e,n){return function(r){return e.call(n||null,r.context,r.command,r)}}vn.prototype.on=function(e,n,r,i,o,a){if((zs(n)||Nr(n))&&(a=o,o=i,i=r,r=n,n=null),zs(r)&&(a=o,o=i,i=r,r=R9n),Rl(o)&&(a=o,o=!1),!zs(i))throw new Error("handlerFn must be a function");zr(e)||(e=[e]);var s=this._eventBus;ht(e,function(l){var c=["commandStack",l,n].filter(function(u){return u}).join(".");s.on(c,r,o?I9n(i,a):i,a)})};vn.prototype.canExecute=v_("canExecute");vn.prototype.preExecute=v_("preExecute");vn.prototype.preExecuted=v_("preExecuted");vn.prototype.execute=v_("execute");vn.prototype.executed=v_("executed");vn.prototype.postExecute=v_("postExecute");vn.prototype.postExecuted=v_("postExecuted");vn.prototype.revert=v_("revert");vn.prototype.reverted=v_("reverted");function v_(e){return function(r,i,o,a,s){(zs(r)||Nr(r))&&(s=a,a=o,o=i,i=r,r=null),this.on(r,e,i,o,a,s)}}function Dhe(e,n){n.invoke(vn,this),this.executed(function(r){var i=r.context;i.rootElement?e.setRootElement(i.rootElement):i.rootElement=e.getRootElement()}),this.revert(function(r){var i=r.context;i.rootElement&&e.setRootElement(i.rootElement)})}Zn(Dhe,vn);Dhe.$inject=["canvas","injector"];const N9n={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",Dhe]};function nD(e){return CSS.escape(e)}var M9n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function tet(e){return e=""+e,e&&e.replace(/[&<>"']/g,function(n){return M9n[n]})}var net="_plane";function oAe(e){var n=e.id;return P9n(n)}function Yv(e){var n=e.id;return Fe(e,"bpmn:SubProcess")?ret(n):n}function bE(e){return ret(e)}function z6(e){var n=Ii(e);return Fe(n,"bpmndi:BPMNPlane")}function ret(e){return e+net}function P9n(e){return e.replace(new RegExp(net+"$"),"")}var A9n="bjs-breadcrumbs-shown";function iet(e,n,r){var i=Ko('<ul class="bjs-breadcrumbs"></ul>'),o=r.getContainer(),a=Ga(o);o.appendChild(i);var s=[];e.on("element.changed",function(c){var u=c.element,d=In(u),f=ki(s,function(p){return p===d});f&&l()});function l(c){c&&(s=D9n(c));var u=s.flatMap(function(f){var p=r.findRoot(Yv(f))||r.findRoot(f.id);if(!p&&Fe(f,"bpmn:Process")){var h=n.find(function(y){var _=In(y);return _&&_.get("processRef")===f});p=h&&r.findRoot(h.id)}if(!p)return[];var g=tet(f.name||f.id),v=Ko('<li><span class="bjs-crumb"><a title="'+g+'">'+g+"</a></span></li>");return v.addEventListener("click",function(){r.setRootElement(p)}),v});i.innerHTML="";var d=u.length>1;a.toggle(A9n,d),u.forEach(function(f){i.appendChild(f)})}e.on("root.set",function(c){l(c.element)})}iet.$inject=["eventBus","elementRegistry","canvas"];function D9n(e){for(var n=In(e),r=[],i=n;i;i=i.$parent)(Fe(i,"bpmn:SubProcess")||Fe(i,"bpmn:Process"))&&r.push(i);return r.reverse()}function oet(e,n){var r=null,i=new k9n;e.on("root.set",function(o){var a=o.element,s=n.viewbox(),l=i.get(a);if(i.set(r,{x:s.x,y:s.y,zoom:s.scale}),r=a,!(!Fe(a,"bpmn:SubProcess")&&!l)){l=l||{x:0,y:0,zoom:1};var c=(s.x-l.x)*s.scale,u=(s.y-l.y)*s.scale;(c!==0||u!==0)&&n.scroll({dx:c,dy:u}),l.zoom!==s.scale&&n.zoom(l.zoom,{x:0,y:0})}}),e.on("diagram.clear",function(){i.clear(),r=null})}oet.$inject=["eventBus","canvas"];function k9n(){this._entries=[],this.set=function(e,n){var r=!1;for(var i in this._entries)if(this._entries[i][0]===e){this._entries[i][1]=n,r=!0;break}r||this._entries.push([e,n])},this.get=function(e){for(var n in this._entries)if(this._entries[n][0]===e)return this._entries[n][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(e){var n=-1;for(var r in this._entries)if(this._entries[r][0]===e){n=r;break}n!==-1&&this._entries.splice(n,1)}}var aAe={x:180,y:160};function xw(e,n){this._eventBus=e,this._moddle=n;var r=this;e.on("import.render.start",1500,function(i,o){r._handleImport(o.definitions)})}xw.prototype._handleImport=function(e){if(e.diagrams){var n=this;this._definitions=e,this._processToDiagramMap={},e.diagrams.forEach(function(i){!i.plane||!i.plane.bpmnElement||(n._processToDiagramMap[i.plane.bpmnElement.id]=i)});var r=e.diagrams.filter(i=>i.plane).flatMap(i=>n._createNewDiagrams(i.plane));r.forEach(function(i){n._movePlaneElementsToOrigin(i.plane)})}};xw.prototype._createNewDiagrams=function(e){var n=this,r=[],i=[];e.get("planeElement").forEach(function(a){var s=a.bpmnElement;if(s){var l=s.$parent;Fe(s,"bpmn:SubProcess")&&!a.isExpanded&&r.push(s),$9n(s,e)&&i.push({diElement:a,parent:l})}});var o=[];return r.forEach(function(a){if(!n._processToDiagramMap[a.id]){var s=n._createDiagram(a);n._processToDiagramMap[a.id]=s,o.push(s)}}),i.forEach(function(a){for(var s=a.diElement,l=a.parent;l&&r.indexOf(l)===-1;)l=l.$parent;if(l){var c=n._processToDiagramMap[l.id];n._moveToDiPlane(s,c.plane)}}),o};xw.prototype._movePlaneElementsToOrigin=function(e){var n=e.get("planeElement"),r=L9n(e),i={x:r.x-aAe.x,y:r.y-aAe.y};n.forEach(function(o){o.waypoint?o.waypoint.forEach(function(a){a.x=a.x-i.x,a.y=a.y-i.y}):o.bounds&&(o.bounds.x=o.bounds.x-i.x,o.bounds.y=o.bounds.y-i.y)})};xw.prototype._moveToDiPlane=function(e,n){var r=aet(e),i=r.plane.get("planeElement");i.splice(i.indexOf(e),1),n.get("planeElement").push(e)};xw.prototype._createDiagram=function(e){var n=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),r=this._moddle.create("bpmndi:BPMNDiagram",{plane:n});return n.$parent=r,n.bpmnElement=e,r.$parent=this._definitions,this._definitions.diagrams.push(r),r};xw.$inject=["eventBus","moddle"];function aet(e){return Fe(e,"bpmndi:BPMNDiagram")?e:aet(e.$parent)}function L9n(e){var n={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach(function(r){if(r.bounds){var i=br(r.bounds);n.top=Math.min(i.top,n.top),n.left=Math.min(i.left,n.left)}}),Tz(n)}function $9n(e,n){var r=e.$parent;return!(!Fe(r,"bpmn:SubProcess")||r===n.bpmnElement||ii(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))}var F4=250,F9n='<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>',B9n="bjs-drilldown-empty";function mS(e,n,r,i,o){vn.call(this,n),this._canvas=e,this._eventBus=n,this._elementRegistry=r,this._overlays=i,this._translate=o;var a=this;this.executed("shape.toggleCollapse",F4,function(s){var l=s.shape;a._canDrillDown(l)?a._addOverlay(l):a._removeOverlay(l)},!0),this.reverted("shape.toggleCollapse",F4,function(s){var l=s.shape;a._canDrillDown(l)?a._addOverlay(l):a._removeOverlay(l)},!0),this.executed(["shape.create","shape.move","shape.delete"],F4,function(s){var l=s.oldParent,c=s.newParent||s.parent,u=s.shape;a._canDrillDown(u)&&a._addOverlay(u),a._updateDrilldownOverlay(l),a._updateDrilldownOverlay(c),a._updateDrilldownOverlay(u)},!0),this.reverted(["shape.create","shape.move","shape.delete"],F4,function(s){var l=s.oldParent,c=s.newParent||s.parent,u=s.shape;a._canDrillDown(u)&&a._addOverlay(u),a._updateDrilldownOverlay(l),a._updateDrilldownOverlay(c),a._updateDrilldownOverlay(u)},!0),n.on("import.render.complete",function(){r.filter(function(s){return a._canDrillDown(s)}).map(function(s){a._addOverlay(s)})})}Zn(mS,vn);mS.prototype._updateDrilldownOverlay=function(e){var n=this._canvas;if(e){var r=n.findRoot(e);r&&this._updateOverlayVisibility(r)}};mS.prototype._canDrillDown=function(e){var n=this._canvas;return Fe(e,"bpmn:SubProcess")&&n.findRoot(Yv(e))};mS.prototype._updateOverlayVisibility=function(e){var n=this._overlays,r=In(e),i=n.get({element:r.id,type:"drilldown"})[0];if(i){var o=r&&r.get("flowElements")&&r.get("flowElements").length;Ga(i.html).toggle(B9n,!o)}};mS.prototype._addOverlay=function(e){var n=this._canvas,r=this._overlays,i=In(e),o=r.get({element:e,type:"drilldown"});o.length&&this._removeOverlay(e);var a=Ko('<button type="button" class="bjs-drilldown">'+F9n+"</button>"),s=i.get("name")||i.get("id"),l=this._translate("Open {element}",{element:s});a.setAttribute("title",l),a.addEventListener("click",function(){n.setRootElement(n.findRoot(Yv(e)))}),r.add(e,"drilldown",{position:{bottom:-7,right:-8},html:a}),this._updateOverlayVisibility(e)};mS.prototype._removeOverlay=function(e){var n=this._overlays;n.remove({element:e,type:"drilldown"})};mS.$inject=["canvas","eventBus","elementRegistry","overlays","translate"];const j9n={__depends__:[Dz,Ahe,N9n],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",iet],drilldownCentering:["type",oet],drilldownOverlayBehavior:["type",mS],subprocessCompatibility:["type",xw]};function sAe(e){!e||typeof e.stopPropagation!="function"||e.stopPropagation()}function WI(e){return e.originalEvent||e.srcEvent}function aJ(e){sAe(e),sAe(WI(e))}function wC(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 set(){return/mac/i.test(navigator.platform)}function cet(e,n){return(WI(e)||e).button===n}function vS(e){return cet(e,0)}function U9n(e){return cet(e,1)}function rD(e){var n=WI(e)||e;return vS(e)?set()?n.metaKey:n.ctrlKey:!1}function ZB(e){var n=WI(e)||e;return vS(e)&&n.shiftKey}function H9n(e){return!0}function B4(e){return vS(e)||U9n(e)}var lAe=500;function uet(e,n,r){var i=this;function o(T,R,O){if(!l(T,R)){var M,P,k;O?P=n.getGraphics(O):(M=R.delegateTarget||R.target,M&&(P=M,O=n.get(P))),!(!P||!O)&&(k=e.fire(T,{element:O,gfx:P,originalEvent:R}),k===!1&&(R.stopPropagation(),R.preventDefault()))}}var a={};function s(T){return a[T]}function l(T,R){var O=u[T]||vS;return!O(R)}var c={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},u={"element.contextmenu":H9n,"element.mousedown":B4,"element.mouseup":B4,"element.click":B4,"element.dblclick":B4};function d(T,R,O){var M=c[T];if(!M)throw new Error("unmapped DOM event name <"+T+">");return o(M,R,O)}var f="svg, .djs-element";function p(T,R,O,M){var P=a[O]=function(k){o(O,k)};M&&(u[O]=M),P.$delegate=ld.bind(T,f,R,P)}function h(T,R,O){var M=s(O);M&&ld.unbind(T,R,M.$delegate)}function g(T){ht(c,function(R,O){p(T,O,R)})}function v(T){ht(c,function(R,O){h(T,O,R)})}e.on("canvas.destroy",function(T){v(T.svg)}),e.on("canvas.init",function(T){g(T.svg)}),e.on(["shape.added","connection.added"],function(T){var R=T.element,O=T.gfx;e.fire("interactionEvents.createHit",{element:R,gfx:O})}),e.on(["shape.changed","connection.changed"],lAe,function(T){var R=T.element,O=T.gfx;e.fire("interactionEvents.updateHit",{element:R,gfx:O})}),e.on("interactionEvents.createHit",lAe,function(T){var R=T.element,O=T.gfx;i.createDefaultHit(R,O)}),e.on("interactionEvents.updateHit",function(T){var R=T.element,O=T.gfx;i.updateDefaultHit(R,O)});var y=w("djs-hit djs-hit-stroke"),_=w("djs-hit djs-hit-click-stroke"),S=w("djs-hit djs-hit-all"),b=w("djs-hit djs-hit-no-move"),E={all:S,"click-stroke":_,stroke:y,"no-move":b};function w(T,R){return R=Rt({stroke:"white",strokeWidth:15},R||{}),r.cls(T,["no-fill","no-border"],R)}function C(T,R){var O=E[R];if(!O)throw new Error("invalid hit type <"+R+">");return Gn(T,O),T}function x(T,R){Ar(T,R)}this.removeHits=function(T){var R=gae(".djs-hit",T);ht(R,Hs)},this.createDefaultHit=function(T,R){var O=T.waypoints,M=T.isFrame,P;return O?this.createWaypointsHit(R,O):(P=M?"stroke":"all",this.createBoxHit(R,P,{width:T.width,height:T.height}))},this.createWaypointsHit=function(T,R){var O=wz(R);return C(O,"stroke"),x(T,O),O},this.createBoxHit=function(T,R,O){O=Rt({x:0,y:0},O);var M=pr("rect");return C(M,R),Gn(M,O),x(T,M),M},this.updateDefaultHit=function(T,R){var O=Co(".djs-hit",R);if(O)return T.waypoints?uJe(O,T.waypoints):Gn(O,{width:T.width,height:T.height}),O},this.fire=o,this.triggerMouseEvent=d,this.mouseHandler=s,this.registerEvent=p,this.unregisterEvent=h}uet.$inject=["eventBus","elementRegistry","styles"];const kz={__init__:["interactionEvents"],interactionEvents:["type",uet]};function YI(e,n){this._eventBus=e,this._canvas=n,this._selectedElements=[];var r=this;e.on(["shape.remove","connection.remove"],function(i){var o=i.element;r.deselect(o)}),e.on(["diagram.clear","root.set"],function(i){r.select(null)})}YI.$inject=["eventBus","canvas"];YI.prototype.deselect=function(e){var n=this._selectedElements,r=n.indexOf(e);if(r!==-1){var i=n.slice();n.splice(r,1),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:n})}};YI.prototype.get=function(){return this._selectedElements};YI.prototype.isSelected=function(e){return this._selectedElements.indexOf(e)!==-1};YI.prototype.select=function(e,n){var r=this._selectedElements,i=r.slice();zr(e)||(e=e?[e]:[]);var o=this._canvas,a=o.getRootElement();e=e.filter(function(s){var l=o.findRoot(s);return a===l}),n?ht(e,function(s){r.indexOf(s)===-1&&r.push(s)}):this._selectedElements=r=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:r})};var cAe="hover",uAe="selected";function det(e,n){this._canvas=e;function r(o,a){e.addMarker(o,a)}function i(o,a){e.removeMarker(o,a)}n.on("element.hover",function(o){r(o.element,cAe)}),n.on("element.out",function(o){i(o.element,cAe)}),n.on("selection.changed",function(o){function a(u){i(u,uAe)}function s(u){r(u,uAe)}var l=o.oldSelection,c=o.newSelection;ht(l,function(u){c.indexOf(u)===-1&&a(u)}),ht(c,function(u){l.indexOf(u)===-1&&s(u)})})}det.$inject=["canvas","eventBus"];function fet(e,n,r,i){e.on("create.end",500,function(o){var a=o.context,s=a.canExecute,l=a.elements,c=a.hints||{},u=c.autoSelect;if(s){if(u===!1)return;zr(u)?n.select(u):n.select(l.filter(z9n))}}),e.on("connect.end",500,function(o){var a=o.context,s=a.connection;s&&n.select(s)}),e.on("shape.move.end",500,function(o){var a=o.previousSelection||[],s=i.get(o.context.shape.id),l=ki(a,function(c){return s.id===c.id});l||n.select(s)}),e.on("element.click",function(o){if(vS(o)){var a=o.element;a===r.getRootElement()&&(a=null);var s=n.isSelected(a),l=n.get().length>1,c=ZB(o);if(s&&l)return c?n.deselect(a):n.select(a);s?n.deselect(a):n.select(a,c)}})}fet.$inject=["eventBus","selection","canvas","elementRegistry"];function z9n(e){return!e.hidden}const Tg={__init__:["selectionVisuals","selectionBehavior"],__depends__:[kz],selection:["type",YI],selectionVisuals:["type",det],selectionBehavior:["type",fet]};function yS(e){Ia.call(this,e)}Zn(yS,Ia);yS.prototype._modules=[w9n,j9n,Dz,Tg,Pz];yS.prototype._moddleExtensions={};var V9n=["c","C"],G9n=["v","V"],W9n=["y","Y"],pet=["z","Z"];function Y9n(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function Ep(e){return e.altKey?!1:e.ctrlKey||e.metaKey}function _l(e,n){return e=zr(e)?e:[e],e.indexOf(n.key)!==-1||e.indexOf(n.code)!==-1}function khe(e){return e.shiftKey}function q9n(e){return Ep(e)&&_l(V9n,e)}function K9n(e){return Ep(e)&&_l(G9n,e)}function X9n(e){return Ep(e)&&!khe(e)&&_l(pet,e)}function Q9n(e){return Ep(e)&&(_l(W9n,e)||_l(pet,e)&&khe(e))}var Lz="keyboard.keydown",Z9n="keyboard.keyup",J9n=1e3,het="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 Qc(e,n){var r=this;this._config=e=e||{},this._eventBus=n,this._keydownHandler=this._keydownHandler.bind(this),this._keyupHandler=this._keyupHandler.bind(this),n.on("diagram.destroy",function(){r._fire("destroy"),r.unbind()}),e.bindTo&&console.error("unsupported configuration <keyboard.bindTo>",new Error(het));var i=e&&e.bind!==!1;n.on("canvas.init",function(o){r._target=o.svg,i&&r.bind(),r._fire("init")})}Qc.$inject=["config.keyboard","eventBus"];Qc.prototype._keydownHandler=function(e){this._keyHandler(e,Lz)};Qc.prototype._keyupHandler=function(e){this._keyHandler(e,Z9n)};Qc.prototype._keyHandler=function(e,n){var r;if(!this._isEventIgnored(e)){var i={keyEvent:e};r=this._eventBus.fire(n||Lz,i),r&&e.preventDefault()}};Qc.prototype._isEventIgnored=function(e){return!1};Qc.prototype.bind=function(e){e&&console.error("unsupported argument <node>",new Error(het)),this.unbind(),e=this._node=this._target,Ur.bind(e,"keydown",this._keydownHandler),Ur.bind(e,"keyup",this._keyupHandler),this._fire("bind")};Qc.prototype.getBinding=function(){return this._node};Qc.prototype.unbind=function(){var e=this._node;e&&(this._fire("unbind"),Ur.unbind(e,"keydown",this._keydownHandler),Ur.unbind(e,"keyup",this._keyupHandler)),this._node=null};Qc.prototype._fire=function(e){this._eventBus.fire("keyboard."+e,{node:this._node})};Qc.prototype.addListener=function(e,n,r){zs(e)&&(r=n,n=e,e=J9n),this._eventBus.on(r||Lz,e,n)};Qc.prototype.removeListener=function(e,n){this._eventBus.off(n||Lz,e)};Qc.prototype.hasModifier=Y9n;Qc.prototype.isCmd=Ep;Qc.prototype.isShift=khe;Qc.prototype.isKey=_l;var eUn=500;function qI(e,n){var r=this;e.on("editorActions.init",eUn,function(i){var o=i.editorActions;r.registerBindings(n,o)})}qI.$inject=["eventBus","keyboard"];qI.prototype.registerBindings=function(e,n){function r(i,o){n.isRegistered(i)&&e.addListener(o)}r("undo",function(i){var o=i.keyEvent;if(X9n(o))return n.trigger("undo"),!0}),r("redo",function(i){var o=i.keyEvent;if(Q9n(o))return n.trigger("redo"),!0}),r("copy",function(i){var o=i.keyEvent;if(q9n(o))return n.trigger("copy"),!0}),r("paste",function(i){var o=i.keyEvent;if(K9n(o))return n.trigger("paste"),!0}),r("stepZoom",function(i){var o=i.keyEvent;if(_l(["+","Add","="],o)&&Ep(o))return n.trigger("stepZoom",{value:1}),!0}),r("stepZoom",function(i){var o=i.keyEvent;if(_l(["-","Subtract"],o)&&Ep(o))return n.trigger("stepZoom",{value:-1}),!0}),r("zoom",function(i){var o=i.keyEvent;if(_l("0",o)&&Ep(o))return n.trigger("zoom",{value:1}),!0}),r("removeSelection",function(i){var o=i.keyEvent;if(_l(["Backspace","Delete","Del"],o))return n.trigger("removeSelection"),!0})};const Lhe={__init__:["keyboard","keyboardBindings"],keyboard:["type",Qc],keyboardBindings:["type",qI]};var tUn={moveSpeed:50,moveSpeedAccelerated:200};function get(e,n,r){var i=this;this._config=Rt({},tUn,e||{}),n.addListener(o);function o(a){var s=a.keyEvent,l=i._config;if(n.isCmd(s)&&n.isKey(["ArrowLeft","Left","ArrowUp","Up","ArrowDown","Down","ArrowRight","Right"],s)){var c=n.isShift(s)?l.moveSpeedAccelerated:l.moveSpeed,u;switch(s.key){case"ArrowLeft":case"Left":u="left";break;case"ArrowUp":case"Up":u="up";break;case"ArrowRight":case"Right":u="right";break;case"ArrowDown":case"Down":u="down";break}return i.moveCanvas({speed:c,direction:u}),!0}}this.moveCanvas=function(a){var s=0,l=0,c=a.speed,u=c/Math.min(Math.sqrt(r.viewbox().scale),1);switch(a.direction){case"left":s=u;break;case"up":l=u;break;case"right":s=-u;break;case"down":l=-u;break}r.scroll({dx:s,dy:l})}}get.$inject=["config.keyboardMove","keyboard","canvas"];const met={__depends__:[Lhe],__init__:["keyboardMove"],keyboardMove:["type",get]};var nUn=/^djs-cursor-.*$/;function $z(e){var n=Ga(document.body);n.removeMatching(nUn),e&&n.add("djs-cursor-"+e)}function vet(){$z(null)}var rUn=5e3;function yet(e,n){n=n||"element.click";function r(){return!1}return e.once(n,rUn,r),function(){e.off(n,r)}}function gP(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function Xh(e,n){return{x:e.x-n.x,y:e.y-n.y}}var iUn=15;function _et(e,n){var r;function i(l){return s(l.originalEvent)}e.on("canvas.focus.changed",function(l){l.focused?e.on("element.mousedown",500,i):e.off("element.mousedown",i)});function o(l){var c=r.start,u=r.button,d=wC(l),f=Xh(d,c);if(!r.dragging&&oUn(f)>iUn&&(r.dragging=!0,u===0&&yet(e),$z("grab")),r.dragging){var p=r.last||r.start;f=Xh(d,p),n.scroll({dx:f.x,dy:f.y}),r.last=d}l.preventDefault()}function a(l){Ur.unbind(document,"mousemove",o),Ur.unbind(document,"mouseup",a),r=null,vet()}function s(l){if(!HI(l.target,".djs-draggable")){var c=l.button;if(!(c>=2||l.ctrlKey||l.shiftKey||l.altKey))return r={button:c,start:wC(l)},Ur.bind(document,"mousemove",o),Ur.bind(document,"mouseup",a),!0}}this.isActive=function(){return!!r}}_et.$inject=["eventBus","canvas"];function oUn(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const bet={__init__:["moveCanvas"],moveCanvas:["type",_et]};function Tae(e){return Math.log(e)/Math.log(10)}function Eet(e,n){var r=Tae(e.min),i=Tae(e.max),o=Math.abs(r)+Math.abs(i);return o/n}function aUn(e,n){return Math.max(e.min,Math.min(e.max,n))}var sUn=Math.sign||function(e){return e>=0?1:-1},$he={min:.2,max:4},Cet=10,lUn=.1,cUn=.75;function sv(e,n,r){e=e||{},this._enabled=!1,this._canvas=r,this._container=r._container,this._handleWheel=Eu(this._handleWheel,this),this._totalDelta=0,this._scale=e.scale||cUn;var i=this;n.on("canvas.focus.changed",function(o){i._init(o.focused&&e.enabled!==!1)})}sv.$inject=["config.zoomScroll","eventBus","canvas"];sv.prototype.scroll=function(n){this._canvas.scroll(n)};sv.prototype.reset=function(){this._canvas.zoom("fit-viewport")};sv.prototype.zoom=function(n,r){var i=Eet($he,Cet*2);this._totalDelta+=n,Math.abs(this._totalDelta)>lUn&&(this._zoom(n,r,i),this._totalDelta=0)};sv.prototype._handleWheel=function(n){if(this._canvas.isFocused()){var r=this._container;n.preventDefault();var i=n.ctrlKey||set()&&n.metaKey,o=n.shiftKey,a=-1*this._scale,s;if(i?a*=n.deltaMode===0?.02:.32:a*=n.deltaMode===0?1:16,i){var l=r.getBoundingClientRect(),c={x:n.clientX-l.left,y:n.clientY-l.top};s=Math.sqrt(Math.pow(n.deltaY,2)+Math.pow(n.deltaX,2))*sUn(n.deltaY)*a,this.zoom(s,c)}else o?s={dx:a*n.deltaY,dy:0}:s={dx:a*n.deltaX,dy:a*n.deltaY},this.scroll(s)}};sv.prototype.stepZoom=function(n,r){var i=Eet($he,Cet);this._zoom(n,r,i)};sv.prototype._zoom=function(e,n,r){var i=this._canvas,o=e>0?1:-1,a=Tae(i.zoom()),s=Math.round(a/r)*r;s+=r*o;var l=Math.pow(10,s);i.zoom(aUn($he,l),n)};sv.prototype.toggle=function(n){var r=this._container,i=this._handleWheel,o=this._enabled;return typeof n>"u"&&(n=!o),o!==n&&Ur[n?"bind":"unbind"](r,"wheel",i,!1),this._enabled=n,n};sv.prototype._init=function(e){this.toggle(e)};const wet={__init__:["zoomScroll"],zoomScroll:["type",sv]};function iD(e){yS.call(this,e)}Zn(iD,yS);iD.prototype._navigationModules=[met,bet,wet];iD.prototype._modules=[].concat(yS.prototype._modules,iD.prototype._navigationModules);function sJ(e){return e&&e[e.length-1]}function dAe(e){return e.y}function fAe(e){return e.x}var uUn={left:fAe,center:fAe,right:function(e){return e.x+e.width},top:dAe,middle:dAe,bottom:function(e){return e.y+e.height}};function KI(e,n){this._modeling=e,this._rules=n}KI.$inject=["modeling","rules"];KI.prototype._getOrientationDetails=function(e){var n=["top","bottom","middle"],r="x",i="width";return n.indexOf(e)!==-1&&(r="y",i="height"),{axis:r,dimension:i}};KI.prototype._isType=function(e,n){return n.indexOf(e)!==-1};KI.prototype._alignmentPosition=function(e,n){var r=this._getOrientationDetails(e),i=r.axis,o=r.dimension,a={},s={},l=!1,c,u,d;function f(p,h){return Math.round((p[i]+h[i]+h[o])/2)}if(this._isType(e,["left","top"]))a[e]=n[0][i];else if(this._isType(e,["right","bottom"]))d=sJ(n),a[e]=d[i]+d[o];else if(this._isType(e,["center","middle"])){if(ht(n,function(p){var h=p[i]+Math.round(p[o]/2);s[h]?s[h].elements.push(p):s[h]={elements:[p],center:h}}),c=Fm(s,function(p){return p.elements.length>1&&(l=!0),p.elements.length}),l)return a[e]=sJ(c).center,a;u=n[0],n=Fm(n,function(p){return p[i]+p[o]}),d=sJ(n),a[e]=f(u,d)}return a};KI.prototype.trigger=function(e,n){var r=this._modeling,i,o=si(e,function(c){return!(c.waypoints||c.host||c.labelTarget)});if(i=this._rules.allowed("elements.align",{elements:o}),zr(i)&&(o=i),!(o.length<2||!i)){var a=uUn[n],s=Fm(o,a),l=this._alignmentPosition(n,s);r.alignElements(s,l)}};const dUn={__init__:["alignElements"],alignElements:["type",KI]},fUn=new TL;function XI(e){this._scheduled={},e.on("diagram.destroy",()=>{Object.keys(this._scheduled).forEach(n=>{this.cancel(n)})})}XI.$inject=["eventBus"];XI.prototype.schedule=function(e,n=fUn.next()){this.cancel(n);const r=this._schedule(e,n);return this._scheduled[n]=r,r.promise};XI.prototype._schedule=function(e,n){const r=pUn();return{executionId:setTimeout(()=>{try{this._scheduled[n]=null;try{r.resolve(e())}catch(o){r.reject(o)}}catch(o){console.error("Scheduler#_schedule execution failed",o)}}),promise:r.promise}};XI.prototype.cancel=function(e){const n=this._scheduled[e];n&&(this._cancel(n),this._scheduled[e]=null)};XI.prototype._cancel=function(e){clearTimeout(e.executionId)};function pUn(){const e={};return e.promise=new Promise((n,r)=>{e.resolve=n,e.reject=r}),e}const hUn={scheduler:["type",XI]};var gUn="djs-element-hidden",j4=".entry",mUn=1e3,pAe=8,vUn=300;function Rs(e,n,r,i){this._canvas=e,this._elementRegistry=n,this._eventBus=r,this._scheduler=i,this._current=null,this._init()}Rs.$inject=["canvas","elementRegistry","eventBus","scheduler"];Rs.prototype._init=function(){var e=this;this._eventBus.on("selection.changed",function(n){var r=n.newSelection,i=r.length?r.length===1?r[0]:r:null;i?e.open(i,!0):e.close()}),this._eventBus.on("elements.changed",function(n){var r=n.elements,i=e._current;if(i){var o=i.target,a=zr(o)?o:[o],s=a.filter(function(c){return r.includes(c)});if(s.length){e.close();var l=a.filter(function(c){return e._elementRegistry.get(c.id)});l.length&&e._updateAndOpen(l.length>1?l:l[0])}}}),this._eventBus.on("canvas.viewbox.changed",function(){e._updatePosition()}),this._eventBus.on("element.marker.update",function(n){if(e.isOpen()){var r=n.element,i=e._current,o=zr(i.target)?i.target:[i.target];o.includes(r)&&e._updateVisibility()}}),this._container=this._createContainer()};Rs.prototype._createContainer=function(){var e=Ko('<div class="djs-context-pad-parent"></div>');return this._canvas.getContainer().appendChild(e),e};Rs.prototype.registerProvider=function(e,n){n||(n=e,e=mUn),this._eventBus.on("contextPad.getProviders",e,function(r){r.providers.push(n)})};Rs.prototype.getEntries=function(e){var n=this._getProviders(),r=zr(e)?"getMultiElementContextPadEntries":"getContextPadEntries",i={};return ht(n,function(o){if(zs(o[r])){var a=o[r](e);zs(a)?i=a(i):ht(a,function(s,l){i[l]=s})}}),i};Rs.prototype.trigger=function(e,n,r){var i=this,o,a,s=n.delegateTarget||n.target;if(!s)return n.preventDefault();if(o=fc(s,"data-action"),a=n.originalEvent||n,e==="mouseover"){this._timeout=setTimeout(function(){i._mouseout=i.triggerEntry(o,"hover",a,r)},vUn);return}else if(e==="mouseout"){clearTimeout(this._timeout),this._mouseout&&(this._mouseout(),this._mouseout=null);return}return this.triggerEntry(o,e,a,r)};Rs.prototype.triggerEntry=function(e,n,r,i){if(this.isShown()){var o=this._current.target,a=this._current.entries,s=a[e];if(s){var l=s.action;if(this._eventBus.fire("contextPad.trigger",{entry:s,event:r})!==!1){if(zs(l)){if(n==="click")return l(r,o,i)}else if(l[n])return l[n](r,o,i);r.preventDefault()}}}};Rs.prototype.open=function(e,n){!n&&this.isOpen(e)||(this.close(),this._updateAndOpen(e))};Rs.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"contextPad.getProviders",providers:[]});return this._eventBus.fire(e),e.providers};Rs.prototype._updateAndOpen=function(e){var n=this.getEntries(e),r=this._createHtml(e),i;ht(n,function(o,a){var s=o.group||"default",l=Ko(o.html||'<div class="entry" draggable="true"></div>'),c;fc(l,"data-action",a),c=Co("[data-group="+nD(s)+"]",r),c||(c=Ko('<div class="group"></div>'),fc(c,"data-group",s),r.appendChild(c)),c.appendChild(l),o.className&&yUn(l,o.className),o.title&&fc(l,"title",o.title),o.imageUrl&&(i=Ko("<img>"),fc(i,"src",o.imageUrl),i.style.width="100%",i.style.height="100%",l.appendChild(i))}),Ga(r).add("open"),this._current={entries:n,html:r,target:e},this._updatePosition(),this._updateVisibility(),this._eventBus.fire("contextPad.open",{current:this._current})};Rs.prototype._createHtml=function(e){var n=this,r=Ko('<div class="djs-context-pad"></div>');return ld.bind(r,j4,"click",function(i){n.trigger("click",i)}),ld.bind(r,j4,"dragstart",function(i){n.trigger("dragstart",i)}),ld.bind(r,j4,"mouseover",function(i){n.trigger("mouseover",i)}),ld.bind(r,j4,"mouseout",function(i){n.trigger("mouseout",i)}),Ur.bind(r,"mousedown",function(i){i.stopPropagation()}),this._container.appendChild(r),this._eventBus.fire("contextPad.create",{target:e,pad:r}),r};Rs.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 n;return this.isOpen()&&bUn(this._current.target,e)?n=this._current.html:n=this._createHtml(e),{html:n}};Rs.prototype.close=function(){this.isOpen()&&(clearTimeout(this._timeout),this._container.innerHTML="",this._eventBus.fire("contextPad.close",{current:this._current}),this._current=null)};Rs.prototype.isOpen=function(e){var n=this._current;if(!n)return!1;if(!e)return!0;var r=n.target;return zr(e)!==zr(r)?!1:zr(e)?e.length===r.length&&bw(e,function(i){return r.includes(i)}):r===e};Rs.prototype.isShown=function(){return this.isOpen()&&Ga(this._current.html).has("open")};Rs.prototype.show=function(){this.isOpen()&&(Ga(this._current.html).add("open"),this._updatePosition(),this._eventBus.fire("contextPad.show",{current:this._current}))};Rs.prototype.hide=function(){this.isOpen()&&(Ga(this._current.html).remove("open"),this._eventBus.fire("contextPad.hide",{current:this._current}))};Rs.prototype._getPosition=function(e){if(!zr(e)&&wo(e)){var n=this._canvas.viewbox(),r=_Un(e),i=r.x*n.scale-n.x*n.scale,o=r.y*n.scale-n.y*n.scale;return{left:i+pAe*this._canvas.zoom(),top:o}}var a=this._canvas.getContainer(),s=a.getBoundingClientRect(),l=this._getTargetBounds(e);return{left:l.right-s.left+pAe*this._canvas.zoom(),top:l.top-s.top}};Rs.prototype._updatePosition=function(){const e=()=>{if(this.isOpen()){var n=this._current.html,r=this._getPosition(this._current.target);"x"in r&&"y"in r?(n.style.left=r.x+"px",n.style.top=r.y+"px"):["top","right","bottom","left"].forEach(function(i){i in r&&(n.style[i]=r[i]+"px")})}};this._scheduler.schedule(e,"ContextPad#_updatePosition")};Rs.prototype._updateVisibility=function(){const e=()=>{if(this.isOpen()){var n=this,r=this._current.target,i=zr(r)?r:[r],o=i.some(function(a){return n._canvas.hasMarker(a,gUn)});o?n.hide():n.show()}};this._scheduler.schedule(e,"ContextPad#_updateVisibility")};Rs.prototype._getTargetBounds=function(e){var n=this,r=zr(e)?e:[e],i=r.map(function(o){return n._canvas.getGraphics(o)});return i.reduce(function(o,a){const s=a.getBoundingClientRect();return o.top=Math.min(o.top,s.top),o.right=Math.max(o.right,s.right),o.bottom=Math.max(o.bottom,s.bottom),o.left=Math.min(o.left,s.left),o.x=o.left,o.y=o.top,o.width=o.right-o.left,o.height=o.bottom-o.top,o},{top:1/0,right:-1/0,bottom:-1/0,left:1/0})};function yUn(e,n){var r=Ga(e);n=zr(n)?n:n.split(/\s+/g),n.forEach(function(i){r.add(i)})}function _Un(e){return e.waypoints[e.waypoints.length-1]}function bUn(e,n){return e=zr(e)?e:[e],n=zr(n)?n:[n],e.length===n.length&&bw(e,function(r){return n.includes(r)})}const xet={__depends__:[kz,hUn,Dz],contextPad:["type",Rs]};var Fz,wa,Tet,VE,hAe,Oet,Oae,Fhe,Rae,Iae,oD={},Ret=[],SUn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Bhe=Array.isArray;function Yb(e,n){for(var r in n)e[r]=n[r];return e}function Iet(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Net(e,n,r){var i,o,a,s={};for(a in n)a=="key"?i=n[a]:a=="ref"?o=n[a]:s[a]=n[a];if(arguments.length>2&&(s.children=arguments.length>3?Fz.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)s[a]===void 0&&(s[a]=e.defaultProps[a]);return V6(e,s,i,o,null)}function V6(e,n,r,i,o){var a={type:e,props:n,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++Tet,__i:-1,__u:0};return o==null&&wa.vnode!=null&&wa.vnode(a),a}function OL(e){return e.children}function G6(e,n){this.props=e,this.context=n}function lR(e,n){if(n==null)return e.__?lR(e.__,e.__i+1):null;for(var r;n<e.__k.length;n++)if((r=e.__k[n])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?lR(e):null}function Met(e){var n,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if((r=e.__k[n])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Met(e)}}function gAe(e){(!e.__d&&(e.__d=!0)&&VE.push(e)&&!JB.__r++||hAe!==wa.debounceRendering)&&((hAe=wa.debounceRendering)||Oet)(JB)}function JB(){var e,n,r,i,o,a,s,l;for(VE.sort(Oae);e=VE.shift();)e.__d&&(n=VE.length,i=void 0,a=(o=(r=e).__v).__e,s=[],l=[],r.__P&&((i=Yb({},o)).__v=o.__v+1,wa.vnode&&wa.vnode(i),jhe(r.__P,i,o,r.__n,r.__P.namespaceURI,32&o.__u?[a]:null,s,a??lR(o),!!(32&o.__u),l),i.__v=o.__v,i.__.__k[i.__i]=i,Det(s,i,l),i.__e!=a&&Met(i)),VE.length>n&&VE.sort(Oae));JB.__r=0}function Pet(e,n,r,i,o,a,s,l,c,u,d){var f,p,h,g,v,y=i&&i.__k||Ret,_=n.length;for(r.__d=c,EUn(r,n,y),c=r.__d,f=0;f<_;f++)(h=r.__k[f])!=null&&(p=h.__i===-1?oD:y[h.__i]||oD,h.__i=f,jhe(e,h,p,o,a,s,l,c,u,d),g=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&Uhe(p.ref,null,h),d.push(h.ref,h.__c||g,h)),v==null&&g!=null&&(v=g),65536&h.__u||p.__k===h.__k?c=Aet(h,c,e):typeof h.type=="function"&&h.__d!==void 0?c=h.__d:g&&(c=g.nextSibling),h.__d=void 0,h.__u&=-196609);r.__d=c,r.__e=v}function EUn(e,n,r){var i,o,a,s,l,c=n.length,u=r.length,d=u,f=0;for(e.__k=[],i=0;i<c;i++)(o=n[i])!=null&&typeof o!="boolean"&&typeof o!="function"?(s=i+f,(o=e.__k[i]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?V6(null,o,null,null,null):Bhe(o)?V6(OL,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?V6(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,a=null,(l=o.__i=CUn(o,r,s,d))!==-1&&(d--,(a=r[l])&&(a.__u|=131072)),a==null||a.__v===null?(l==-1&&f--,typeof o.type!="function"&&(o.__u|=65536)):l!==s&&(l==s-1?f--:l==s+1?f++:(l>s?f--:f++,o.__u|=65536))):o=e.__k[i]=null;if(d)for(i=0;i<u;i++)(a=r[i])!=null&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=lR(a)),ket(a,a))}function Aet(e,n,r){var i,o;if(typeof e.type=="function"){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,n=Aet(i[o],n,r));return n}e.__e!=n&&(n&&e.type&&!r.contains(n)&&(n=lR(e)),r.insertBefore(e.__e,n||null),n=e.__e);do n=n&&n.nextSibling;while(n!=null&&n.nodeType===8);return n}function CUn(e,n,r,i){var o=e.key,a=e.type,s=r-1,l=r+1,c=n[r];if(c===null||c&&o==c.key&&a===c.type&&!(131072&c.__u))return r;if((typeof a!="function"||a===OL||o)&&i>(c!=null&&!(131072&c.__u)?1:0))for(;s>=0||l<n.length;){if(s>=0){if((c=n[s])&&!(131072&c.__u)&&o==c.key&&a===c.type)return s;s--}if(l<n.length){if((c=n[l])&&!(131072&c.__u)&&o==c.key&&a===c.type)return l;l++}}return-1}function mAe(e,n,r){n[0]==="-"?e.setProperty(n,r??""):e[n]=r==null?"":typeof r!="number"||SUn.test(n)?r:r+"px"}function U4(e,n,r,i,o){var a;e:if(n==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof i=="string"&&(e.style.cssText=i=""),i)for(n in i)r&&n in r||mAe(e.style,n,"");if(r)for(n in r)i&&r[n]===i[n]||mAe(e.style,n,r[n])}else if(n[0]==="o"&&n[1]==="n")a=n!==(n=n.replace(/(PointerCapture)$|Capture$/i,"$1")),n=n.toLowerCase()in e||n==="onFocusOut"||n==="onFocusIn"?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+a]=r,r?i?r.u=i.u:(r.u=Fhe,e.addEventListener(n,a?Iae:Rae,a)):e.removeEventListener(n,a?Iae:Rae,a);else{if(o=="http://www.w3.org/2000/svg")n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(n!="width"&&n!="height"&&n!="href"&&n!="list"&&n!="form"&&n!="tabIndex"&&n!="download"&&n!="rowSpan"&&n!="colSpan"&&n!="role"&&n!="popover"&&n in e)try{e[n]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&n[4]!=="-"?e.removeAttribute(n):e.setAttribute(n,n=="popover"&&r==1?"":r))}}function vAe(e){return function(n){if(this.l){var r=this.l[n.type+e];if(n.t==null)n.t=Fhe++;else if(n.t<r.u)return;return wa.event&&(n=wa.event(n)),"handleEvent"in r?r.handleEvent(n):r(n)}}}function jhe(e,n,r,i,o,a,s,l,c,u){var d,f,p,h,g,v,y,_,S,b,E,w,C,x,T,R,O=n.type;if(n.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),a=[l=n.__e=r.__e]),(d=wa.__b)&&d(n);e:if(typeof O=="function")try{if(_=n.props,S="prototype"in O&&O.prototype.render,b=(d=O.contextType)&&i[d.__c],E=d?b?b.props.value:d.__:i,r.__c?y=(f=n.__c=r.__c).__=f.__E:(S?n.__c=f=new O(_,E):(n.__c=f=new G6(_,E),f.constructor=O,f.render=xUn),b&&b.sub(f),f.props=_,f.state||(f.state={}),f.context=E,f.__n=i,p=f.__d=!0,f.__h=[],f._sb=[]),S&&f.__s==null&&(f.__s=f.state),S&&O.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=Yb({},f.__s)),Yb(f.__s,O.getDerivedStateFromProps(_,f.__s))),h=f.props,g=f.state,f.__v=n,p)S&&O.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),S&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(S&&O.getDerivedStateFromProps==null&&_!==h&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(_,E),!f.__e&&(f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(_,f.__s,E)===!1||n.__v===r.__v)){for(n.__v!==r.__v&&(f.props=_,f.state=f.__s,f.__d=!1),n.__e=r.__e,n.__k=r.__k,n.__k.some(function(M){M&&(M.__=n)}),w=0;w<f._sb.length;w++)f.__h.push(f._sb[w]);f._sb=[],f.__h.length&&s.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(_,f.__s,E),S&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(h,g,v)})}if(f.context=E,f.props=_,f.__P=e,f.__e=!1,C=wa.__r,x=0,S){for(f.state=f.__s,f.__d=!1,C&&C(n),d=f.render(f.props,f.state,f.context),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[]}else do f.__d=!1,C&&C(n),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++x<25);f.state=f.__s,f.getChildContext!=null&&(i=Yb(Yb({},i),f.getChildContext())),S&&!p&&f.getSnapshotBeforeUpdate!=null&&(v=f.getSnapshotBeforeUpdate(h,g)),Pet(e,Bhe(R=d!=null&&d.type===OL&&d.key==null?d.props.children:d)?R:[R],n,r,i,o,a,s,l,c,u),f.base=n.__e,n.__u&=-161,f.__h.length&&s.push(f),y&&(f.__E=f.__=null)}catch(M){if(n.__v=null,c||a!=null){for(n.__u|=c?160:128;l&&l.nodeType===8&&l.nextSibling;)l=l.nextSibling;a[a.indexOf(l)]=null,n.__e=l}else n.__e=r.__e,n.__k=r.__k;wa.__e(M,n,r)}else a==null&&n.__v===r.__v?(n.__k=r.__k,n.__e=r.__e):n.__e=wUn(r.__e,n,r,i,o,a,s,c,u);(d=wa.diffed)&&d(n)}function Det(e,n,r){n.__d=void 0;for(var i=0;i<r.length;i++)Uhe(r[i],r[++i],r[++i]);wa.__c&&wa.__c(n,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(a){a.call(o)})}catch(a){wa.__e(a,o.__v)}})}function wUn(e,n,r,i,o,a,s,l,c){var u,d,f,p,h,g,v,y=r.props,_=n.props,S=n.type;if(S==="svg"?o="http://www.w3.org/2000/svg":S==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),a!=null){for(u=0;u<a.length;u++)if((h=a[u])&&"setAttribute"in h==!!S&&(S?h.localName===S:h.nodeType===3)){e=h,a[u]=null;break}}if(e==null){if(S===null)return document.createTextNode(_);e=document.createElementNS(o,S,_.is&&_),l&&(wa.__m&&wa.__m(n,a),l=!1),a=null}if(S===null)y===_||l&&e.data===_||(e.data=_);else{if(a=a&&Fz.call(e.childNodes),y=r.props||oD,!l&&a!=null)for(y={},u=0;u<e.attributes.length;u++)y[(h=e.attributes[u]).name]=h.value;for(u in y)if(h=y[u],u!="children"){if(u=="dangerouslySetInnerHTML")f=h;else if(!(u in _)){if(u=="value"&&"defaultValue"in _||u=="checked"&&"defaultChecked"in _)continue;U4(e,u,null,h,o)}}for(u in _)h=_[u],u=="children"?p=h:u=="dangerouslySetInnerHTML"?d=h:u=="value"?g=h:u=="checked"?v=h:l&&typeof h!="function"||y[u]===h||U4(e,u,h,y[u],o);if(d)l||f&&(d.__html===f.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),n.__k=[];else if(f&&(e.innerHTML=""),Pet(e,Bhe(p)?p:[p],n,r,i,S==="foreignObject"?"http://www.w3.org/1999/xhtml":o,a,s,a?a[0]:r.__k&&lR(r,0),l,c),a!=null)for(u=a.length;u--;)Iet(a[u]);l||(u="value",S==="progress"&&g==null?e.removeAttribute("value"):g!==void 0&&(g!==e[u]||S==="progress"&&!g||S==="option"&&g!==y[u])&&U4(e,u,g,y[u],o),u="checked",v!==void 0&&v!==e[u]&&U4(e,u,v,y[u],o))}return e}function Uhe(e,n,r){try{if(typeof e=="function"){var i=typeof e.__u=="function";i&&e.__u(),i&&n==null||(e.__u=e(n))}else e.current=n}catch(o){wa.__e(o,r)}}function ket(e,n,r){var i,o;if(wa.unmount&&wa.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||Uhe(i,null,n)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(a){wa.__e(a,n)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&ket(i[o],n,r||typeof e.type!="function");r||Iet(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function xUn(e,n,r){return this.constructor(e,r)}function Let(e,n,r){var i,o,a,s;wa.__&&wa.__(e,n),o=(i=typeof r=="function")?null:n.__k,a=[],s=[],jhe(n,e=(!i&&r||n).__k=Net(OL,null,[e]),o||oD,oD,n.namespaceURI,!i&&r?[r]:o?null:n.firstChild?Fz.call(n.childNodes):null,a,!i&&r?r:o?o.__e:n.firstChild,i,s),Det(a,e,s)}Fz=Ret.slice,wa={__e:function(e,n,r,i){for(var o,a,s;n=n.__;)if((o=n.__c)&&!o.__)try{if((a=o.constructor)&&a.getDerivedStateFromError!=null&&(o.setState(a.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,i||{}),s=o.__d),s)return o.__E=o}catch(l){e=l}throw e}},Tet=0,G6.prototype.setState=function(e,n){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Yb({},this.state),typeof e=="function"&&(e=e(Yb({},r),this.props)),e&&Yb(r,e),e!=null&&this.__v&&(n&&this._sb.push(n),gAe(this))},G6.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),gAe(this))},G6.prototype.render=OL,VE=[],Oet=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Oae=function(e,n){return e.__v.__b-n.__v.__b},JB.__r=0,Fhe=0,Rae=vAe(!1),Iae=vAe(!0);var $et=function(e,n,r,i){var o;n[0]=0;for(var a=1;a<n.length;a++){var s=n[a++],l=n[a]?(n[0]|=s?1:2,r[n[a++]]):n[++a];s===3?i[0]=l:s===4?i[1]=Object.assign(i[1]||{},l):s===5?(i[1]=i[1]||{})[n[++a]]=l:s===6?i[1][n[++a]]+=l+"":s?(o=e.apply(l,$et(e,l,r,["",null])),i.push(o),l[0]?n[0]|=2:(n[a-2]=0,n[a]=o)):i.push(l)}return i},yAe=new Map;function TUn(e){var n=yAe.get(this);return n||(n=new Map,yAe.set(this,n)),(n=$et(this,n.get(e)||(n.set(e,n=function(r){for(var i,o,a=1,s="",l="",c=[0],u=function(p){a===1&&(p||(s=s.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?c.push(0,p,s):a===3&&(p||s)?(c.push(3,p,s),a=2):a===2&&s==="..."&&p?c.push(4,p,0):a===2&&s&&!p?c.push(5,0,!0,s):a>=5&&((s||!p&&a===5)&&(c.push(a,0,s,o),a=6),p&&(c.push(a,p,0,o),a=6)),s=""},d=0;d<r.length;d++){d&&(a===1&&u(),u(d));for(var f=0;f<r[d].length;f++)i=r[d][f],a===1?i==="<"?(u(),c=[c],a=3):s+=i:a===4?s==="--"&&i===">"?(a=1,s=""):s=i+s[0]:l?i===l?l="":s+=i:i==='"'||i==="'"?l=i:i===">"?(u(),a=1):a&&(i==="="?(a=5,o=s,s=""):i==="/"&&(a<5||r[d][f+1]===">")?(u(),a===3&&(c=c[0]),a=c,(c=c[0]).push(2,0,a),a=0):i===" "||i===" "||i===`
`||i==="\r"?(u(),a=2):s+=i),a===3&&s==="!--"&&(a=4,c=c[0])}return u(),c}(e)),n),arguments,[])).length>1?n:n[0]}var is=TUn.bind(Net),cR,ys,lJ,_Ae,aD=0,Fet=[],Ls=wa,bAe=Ls.__b,SAe=Ls.__r,EAe=Ls.diffed,CAe=Ls.__c,wAe=Ls.unmount,xAe=Ls.__;function Bz(e,n){Ls.__h&&Ls.__h(ys,e,aD||n),aD=0;var r=ys.__H||(ys.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function cJ(e){return aD=1,OUn(jet,e)}function OUn(e,n,r){var i=Bz(cR++,2);if(i.t=e,!i.__c&&(i.__=[jet(void 0,n),function(l){var c=i.__N?i.__N[0]:i.__[0],u=i.t(c,l);c!==u&&(i.__N=[u,i.__[1]],i.__c.setState({}))}],i.__c=ys,!ys.u)){var o=function(l,c,u){if(!i.__c.__H)return!0;var d=i.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!a||a.call(this,l,c,u);var f=i.__c.props!==l;return d.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(f=!0)}}),a&&a.call(this,l,c,u)||f};ys.u=!0;var a=ys.shouldComponentUpdate,s=ys.componentWillUpdate;ys.componentWillUpdate=function(l,c,u){if(this.__e){var d=a;a=void 0,o(l,c,u),a=d}s&&s.call(this,l,c,u)},ys.shouldComponentUpdate=o}return i.__N||i.__}function Nae(e,n){var r=Bz(cR++,3);!Ls.__s&&Hhe(r.__H,n)&&(r.__=e,r.i=n,ys.__H.__h.push(r))}function Mae(e,n){var r=Bz(cR++,4);!Ls.__s&&Hhe(r.__H,n)&&(r.__=e,r.i=n,ys.__h.push(r))}function Bet(e){return aD=5,uR(function(){return{current:e}},[])}function uR(e,n){var r=Bz(cR++,7);return Hhe(r.__H,n)&&(r.__=e(),r.__H=n,r.__h=e),r.__}function TM(e,n){return aD=8,uR(function(){return e},n)}function RUn(){for(var e;e=Fet.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(W6),e.__H.__h.forEach(Pae),e.__H.__h=[]}catch(n){e.__H.__h=[],Ls.__e(n,e.__v)}}Ls.__b=function(e){ys=null,bAe&&bAe(e)},Ls.__=function(e,n){e&&n.__k&&n.__k.__m&&(e.__m=n.__k.__m),xAe&&xAe(e,n)},Ls.__r=function(e){SAe&&SAe(e),cR=0;var n=(ys=e.__c).__H;n&&(lJ===ys?(n.__h=[],ys.__h=[],n.__.forEach(function(r){r.__N&&(r.__=r.__N),r.i=r.__N=void 0})):(n.__h.forEach(W6),n.__h.forEach(Pae),n.__h=[],cR=0)),lJ=ys},Ls.diffed=function(e){EAe&&EAe(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(Fet.push(n)!==1&&_Ae===Ls.requestAnimationFrame||((_Ae=Ls.requestAnimationFrame)||IUn)(RUn)),n.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.i=void 0})),lJ=ys=null},Ls.__c=function(e,n){n.some(function(r){try{r.__h.forEach(W6),r.__h=r.__h.filter(function(i){return!i.__||Pae(i)})}catch(i){n.some(function(o){o.__h&&(o.__h=[])}),n=[],Ls.__e(i,r.__v)}}),CAe&&CAe(e,n)},Ls.unmount=function(e){wAe&&wAe(e);var n,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(i){try{W6(i)}catch(o){n=o}}),r.__H=void 0,n&&Ls.__e(n,r.__v))};var TAe=typeof requestAnimationFrame=="function";function IUn(e){var n,r=function(){clearTimeout(i),TAe&&cancelAnimationFrame(n),setTimeout(e)},i=setTimeout(r,100);TAe&&(n=requestAnimationFrame(r))}function W6(e){var n=ys,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ys=n}function Pae(e){var n=ys;e.__c=e.__(),ys=n}function Hhe(e,n){return!e||e.length!==n.length||n.some(function(r,i){return r!==e[i]})}function jet(e,n){return typeof n=="function"?n(e):n}function Uet(e){var n,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(r=Uet(e[n]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function ej(){for(var e,n,r=0,i="",o=arguments.length;r<o;r++)(e=arguments[r])&&(n=Uet(e))&&(i&&(i+=" "),i+=n);return i}function NUn(e){const{headerEntries:n,onSelect:r,selectedEntry:i,setSelectedEntry:o,title:a}=e,s=uR(()=>MUn(n),[n]);return is`
<div class="djs-popup-header">
<h3 class="djs-popup-title" title=${a}>${a}</h3>
${s.map(l=>is`
<ul key=${l.id} class="djs-popup-header-group" data-header-group=${l.id}>
${l.entries.map(c=>is`
<li key=${c.id}>
<${c.action?"button":"span"}
class=${PUn(c,c===i)}
onClick=${u=>c.action&&r(u,c)}
title=${c.title||c.label}
data-id=${c.id}
onMouseEnter=${()=>c.action&&o(c)}
onMouseLeave=${()=>c.action&&o(null)}
onFocus=${()=>c.action&&o(c)}
onBlur=${()=>c.action&&o(null)}
>
${c.imageUrl&&is`<img class="djs-popup-entry-icon" src=${c.imageUrl} alt="" />`||c.imageHtml&&is`<div class="djs-popup-entry-icon" dangerouslySetInnerHTML=${{__html:c.imageHtml}} />`}
${c.label?is`
<span class="djs-popup-label">${c.label}</span>
`:null}
</${c.action?"button":"span"}>
</li>
`)}
</ul>
`)}
</div>
`}function MUn(e){return e.reduce((n,r)=>{const i=r.group||"default",o=n.find(a=>a.id===i);return o?o.entries.push(r):n.push({id:i,entries:[r]}),n},[])}function PUn(e,n){return ej("entry",e.className,e.active?"active":"",e.disabled?"disabled":"",n?"selected":"")}function AUn(e){const{entry:n,selected:r,onMouseEnter:i,onMouseLeave:o,onAction:a}=e;return is`
<li
class=${ej("entry",{selected:r})}
data-id=${n.id}
title=${n.title||n.label}
tabIndex="0"
onClick=${a}
onFocus=${i}
onBlur=${o}
onMouseEnter=${i}
onMouseLeave=${o}
onDragStart=${s=>a(s,n,"dragstart")}
draggable=${!0}
>
<div class="djs-popup-entry-content">
<span
class=${ej("djs-popup-entry-name",n.className)}
>
${n.imageUrl&&is`<img class="djs-popup-entry-icon" src=${n.imageUrl} alt="" />`||n.imageHtml&&is`<div class="djs-popup-entry-icon" dangerouslySetInnerHTML=${{__html:n.imageHtml}} />`}
${n.label?is`
<span class="djs-popup-label">
${n.label}
</span>
`:null}
</span>
${n.description&&is`
<span
class="djs-popup-entry-description"
title=${n.description}
>
${n.description}
</span>
`}
</div>
${n.documentationRef&&is`
<div class="djs-popup-entry-docs">
<a
href="${n.documentationRef}"
onClick=${s=>s.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 DUn(e){const{selectedEntry:n,setSelectedEntry:r,entries:i,...o}=e,a=Bet(),s=uR(()=>kUn(i),[i]);return Mae(()=>{const l=a.current;if(!l)return;const c=l.querySelector(".selected");c&&LUn(c)},[n]),is`
<div class="djs-popup-results" ref=${a}>
${s.map(l=>is`
${l.name&&is`
<div key=${l.id} class="entry-header" title=${l.name}>
${l.name}
</div>
`}
<ul class="djs-popup-group" data-group=${l.id}>
${l.entries.map(c=>is`
<${AUn}
key=${c.id}
entry=${c}
selected=${c===n}
onMouseEnter=${()=>r(c)}
onMouseLeave=${()=>r(null)}
...${o}
/>
`)}
</ul>
`)}
</div>
`}function kUn(e){const n=[],r=a=>n.find(s=>a.id===s.id),i=a=>!!r(a),o=a=>typeof a=="string"?{id:a}:a;return e.forEach(a=>{const s=a.group?o(a.group):{id:"default"};i(s)?r(s).entries.push(a):n.push({...s,entries:[a]})}),n}function LUn(e){typeof e.scrollIntoViewIfNeeded=="function"?e.scrollIntoViewIfNeeded():e.scrollIntoView({scrollMode:"if-needed",block:"nearest"})}function $Un(e){const{onClose:n,onSelect:r,className:i,headerEntries:o,position:a,title:s,width:l,scale:c,search:u,emptyPlaceholder:d,searchFn:f,entries:p,onOpened:h,onClosed:g}=e,v=uR(()=>bl(u)?p.length>5:!1,[u,p]),[y,_]=cJ(""),S=TM((P,k)=>{if(!v)return P;if(!k.trim())return P.filter(({rank:U=0})=>U>=0);const $=P.filter(({searchable:U})=>U!==!1);return f($,k,{keys:["label","description","search"]}).map(({item:U})=>U)},[v]),[b,E]=cJ(S(p,y)),[w,C]=cJ(b[0]),x=TM(P=>{(!w||!P.includes(w))&&C(P[0]),E(P)},[w,E,C]);Nae(()=>{x(S(p,y))},[y,p]);const T=TM(P=>{let $=b.indexOf(w)+P;$<0&&($=b.length-1),$>=b.length&&($=0),C(b[$])},[b,w,C]),R=TM(P=>{if(P.key==="Enter"&&w)return r(P,w);if(P.key==="ArrowUp")return T(-1),P.preventDefault();if(P.key==="ArrowDown")return T(1),P.preventDefault()},[r,w,T]),O=TM(P=>{rJe(P.target,"input")&&_(()=>P.target.value)},[_]);Nae(()=>(h(),()=>{g()}),[]);const M=uR(()=>s||o.length>0,[s,o]);return is`
<${OAe}
onClose=${n}
onKeyup=${O}
onKeydown=${R}
className=${i}
position=${a}
width=${l}
scale=${c}
>
${M&&is`
<${NUn}
headerEntries=${o}
onSelect=${r}
selectedEntry=${w}
setSelectedEntry=${C}
title=${s}
/>
`}
${p.length>0&&is`
<div class="djs-popup-body">
${v&&is`
<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="${s}" />
</div>
`}
<${DUn}
entries=${b}
selectedEntry=${w}
setSelectedEntry=${C}
onAction=${r}
/>
</div>
`}
${d&&b.length===0&&is`
<div class="djs-popup-no-results">${zs(d)?d(y):d}</div>
`}
</${OAe}>
`}function OAe(e){const{onClose:n,onKeydown:r,onKeyup:i,className:o,children:a,position:s}=e,l=Bet();return Mae(()=>{if(typeof s!="function")return;const c=l.current,u=s(c);c.style.left=`${u.x}px`,c.style.top=`${u.y}px`},[l.current,s]),Mae(()=>{const c=l.current;if(!c)return;(c.querySelector("input")||c).focus()},[]),Nae(()=>{const c=d=>{if(d.key==="Escape")return d.preventDefault(),n()},u=d=>{if(!HI(d.target,".djs-popup",!0))return n()};return document.documentElement.addEventListener("keydown",c),document.body.addEventListener("click",u),()=>{document.documentElement.removeEventListener("keydown",c),document.body.removeEventListener("click",u)}},[]),is`
<div
class=${ej("djs-popup",o)}
style=${FUn(e)}
onKeydown=${r}
onKeyup=${i}
ref=${l}
tabIndex="-1"
>
${a}
</div>
`}function FUn(e){return{transform:`scale(${e.scale})`,width:`${e.width}px`,"transform-origin":"top left"}}var BUn="data-id",Het=["contextPad.close","canvas.viewbox.changing","commandStack.changed"],jUn=1e3;function Na(e,n,r,i){this._eventBus=n,this._canvas=r,this._search=i,this._current=null;var o=bl(e&&e.scale)?e.scale:{min:1,max:1};this._config={scale:o},n.on("diagram.destroy",()=>{this.close()}),n.on("element.changed",a=>{const s=this.isOpen()&&this._current.target;a.element===s&&this.refresh()})}Na.$inject=["config.popupMenu","eventBus","canvas","search"];Na.prototype._render=function(){const{position:e,providerId:n,entries:r,headerEntries:i,emptyPlaceholder:o,options:a}=this._current,s=Object.entries(r).map(([p,h])=>({id:p,...h})),l=Object.entries(i).map(([p,h])=>({id:p,...h})),c=e&&(p=>this._ensureVisible(p,e)),u=this._updateScale(this._current.container);Let(is`
<${$Un}
onClose=${p=>this.close(p)}
onSelect=${(p,h,g)=>this.trigger(p,h,g)}
position=${c}
className=${n}
entries=${s}
headerEntries=${l}
emptyPlaceholder=${o}
scale=${u}
onOpened=${this._onOpened.bind(this)}
onClosed=${this._onClosed.bind(this)}
searchFn=${this._search}
...${{...a}}
/>
`,this._current.container)};Na.prototype.open=function(e,n,r,i){if(!e)throw new Error("target is missing");if(!n)throw new Error("providers for <"+n+"> not found");if(!r)throw new Error("position is missing");this.isOpen()&&this.close();const{entries:o,headerEntries:a,emptyPlaceholder:s}=this._getContext(e,n);this._current={position:r,providerId:n,target:e,entries:o,headerEntries:a,emptyPlaceholder:s,container:this._createContainer({provider:n}),options:i},this._emit("open"),this._bindAutoClose(),this._render()};Na.prototype.refresh=function(){if(!this.isOpen())return;const{target:e,providerId:n}=this._current,{entries:r,headerEntries:i,emptyPlaceholder:o}=this._getContext(e,n);this._current={...this._current,entries:r,headerEntries:i,emptyPlaceholder:o},this._emit("refresh"),this._render()};Na.prototype._getContext=function(e,n){const r=this._getProviders(n);if(!r||!r.length)throw new Error("provider for <"+n+"> not found");const i=this._getEntries(e,r),o=this._getHeaderEntries(e,r),a=this._getEmptyPlaceholder(r);return{entries:i,headerEntries:o,emptyPlaceholder:a,empty:!(Object.keys(i).length||Object.keys(o).length)}};Na.prototype.close=function(){this.isOpen()&&(this._emit("close"),this.reset(),this._canvas.restoreFocus(),this._current=null)};Na.prototype.reset=function(){const e=this._current.container;Let(null,e),Bm(e)};Na.prototype._emit=function(e,n){this._eventBus.fire(`popupMenu.${e}`,n)};Na.prototype._onOpened=function(){this._emit("opened")};Na.prototype._onClosed=function(){this._emit("closed")};Na.prototype._createContainer=function(e){var n=this._canvas,r=n.getContainer();const i=Ko(`<div class="djs-popup-parent djs-scrollable" data-popup=${e.provider}></div>`);return r.appendChild(i),i};Na.prototype._bindAutoClose=function(){this._eventBus.once(Het,this.close,this)};Na.prototype._unbindAutoClose=function(){this._eventBus.off(Het,this.close,this)};Na.prototype._updateScale=function(){var e=this._canvas.zoom(),n=this._config.scale,r,i,o=e;return n!==!0&&(n===!1?(r=1,i=1):(r=n.min,i=n.max),bl(r)&&e<r&&(o=r),bl(i)&&e>i&&(o=i)),o};Na.prototype._ensureVisible=function(e,n){var r=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect(),o={},a=n.x,s=n.y;return n.x+i.width>r.width&&(o.x=!0),n.y+i.height>r.height&&(o.y=!0),o.x&&o.y?(a=n.x-i.width,s=n.y-i.height):o.x?(a=n.x-i.width,s=n.y):o.y&&n.y<i.height?(a=n.x,s=10):o.y&&(a=n.x,s=n.y-i.height),n.y<r.top&&(s=n.y+i.height),{x:a,y:s}};Na.prototype.isEmpty=function(e,n){if(!e)throw new Error("target is missing");if(!n)throw new Error("provider ID is missing");const r=this._getProviders(n);return!r||!r.length?!0:this._getContext(e,n).empty};Na.prototype.registerProvider=function(e,n,r){r||(r=n,n=jUn),this._eventBus.on("popupMenu.getProviders."+e,n,function(i){i.providers.push(r)})};Na.prototype._getProviders=function(e){var n=this._eventBus.createEvent({type:"popupMenu.getProviders."+e,providers:[]});return this._eventBus.fire(n),n.providers};Na.prototype._getEntries=function(e,n){var r={};return ht(n,function(i){if(!i.getPopupMenuEntries){ht(i.getEntries(e),function(a){var s=a.id;if(!s)throw new Error("entry ID is missing");r[s]=ov(a,["id"])});return}var o=i.getPopupMenuEntries(e);zs(o)?r=o(r):ht(o,function(a,s){r[s]=a})}),r};Na.prototype._getHeaderEntries=function(e,n){var r={};return ht(n,function(i){if(!i.getPopupMenuHeaderEntries){if(!i.getHeaderEntries)return;ht(i.getHeaderEntries(e),function(a){var s=a.id;if(!s)throw new Error("entry ID is missing");r[s]=ov(a,["id"])});return}var o=i.getPopupMenuHeaderEntries(e);zs(o)?r=o(r):ht(o,function(a,s){r[s]=a})}),r};Na.prototype._getEmptyPlaceholder=function(e){const n=e.find(r=>zs(r.getEmptyPlaceholder));return n&&n.getEmptyPlaceholder()};Na.prototype.isOpen=function(){return!!this._current};Na.prototype.trigger=function(e,n,r="click"){if(e.preventDefault(),!n){let o=HI(e.delegateTarget||e.target,".entry",!0),a=fc(o,BUn);n={id:a,...this._getEntry(a)}}const i=n.action;if(this._emit("trigger",{entry:n,event:e})!==!1){if(zs(i)){if(r==="click")return i(e,n)}else if(i[r])return i[r](e,n)}};Na.prototype._getEntry=function(e){var n=this._current.entries[e]||this._current.headerEntries[e];if(!n)throw new Error("entry not found");return n};function UUn(e,n,r){const{keys:i}=r;if(n=n.trim().toLowerCase(),!n)throw new Error("<pattern> must not be empty");const o=n.trim().toLowerCase().split(/\s+/);return e.flatMap(a=>{const s=HUn(a,o,i);return s?{item:a,tokens:s}:[]}).sort(zUn(i))}function HUn(e,n,r){const{matchedWords:i,tokens:o}=r.reduce((a,s)=>{const l=e[s],{tokens:c,matchedWords:u}=YUn(l,n);return{tokens:{...a.tokens,[s]:c},matchedWords:{...a.matchedWords,...u}}},{matchedWords:{},tokens:{}});return Object.keys(i).length!==n.length?null:o}function zUn(e){return(n,r)=>{for(const i of e){const o=VUn(n.tokens[i],r.tokens[i]);if(o!==0)return o;const a=WUn(n.item[i],r.item[i]);if(a!==0)return a}return 0}}function VUn(e,n){return RAe(n)-RAe(e)}function RAe(e){return e.reduce((n,r)=>n+GUn(r),0)}function GUn(e){const n=Math.log(e.value.length);return e.match?(e.start?e.end?131.9:7.87:e.wordStart?2.19:1)*n:-.07*n}function WUn(e="",n=""){return e.localeCompare(n)}function YUn(e,n){if(!e)return{tokens:[],matchedWords:{}};const r=[],i={},o=n.map(qUn),a=[`(?<all>${o.join("\\s+")})`,...o].join("|"),s=new RegExp(a,"ig");let l,c=0;for(;l=s.exec(e);){const[u]=l,d=l.index,f=l.index+u.length,p=d===0,h=f===e.length,g=!!l.groups.all,v=p||/\s/.test(e.charAt(d-1)),y=h||/\s/.test(e.charAt(f+1));l.index>c&&r.push({value:e.slice(c,l.index),index:c}),r.push({value:u,index:l.index,match:!0,wordStart:v,wordEnd:y,start:p,end:h,all:g});const _=g?n:[u];for(const S of _)i[S.toLowerCase()]=!0;c=l.index+u.length}return c<e.length&&r.push({value:e.slice(c),index:c}),{tokens:r,matchedWords:i}}function qUn(e){return e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&")}const zet={search:["value",UUn]},zhe={__depends__:[zet],__init__:["popupMenu"],popupMenu:["type",Na]};var Vet={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>`},KUn=900;function QI(e,n,r,i){e.registerProvider(KUn,this),this._contextPad=e,this._popupMenu=n,this._translate=r,this._canvas=i}QI.$inject=["contextPad","popupMenu","translate","canvas"];QI.prototype.getMultiElementContextPadEntries=function(e){var n={};return this._isAllowed(e)&&Rt(n,this._getEntries(e)),n};QI.prototype._isAllowed=function(e){return!this._popupMenu.isEmpty(e,"align-elements")};QI.prototype._getEntries=function(){var e=this;return{"align-elements":{group:"align-elements",title:e._translate("Align elements"),html:`<div class="entry">${Vet.align}</div>`,action:{click:function(n,r){var i=e._getMenuPosition(r);Rt(i,{cursor:{x:n.x,y:n.y}}),e._popupMenu.open(r,"align-elements",i)}}}}};QI.prototype._getMenuPosition=function(e){var n=5,r=this._contextPad.getPad(e).html,i=r.getBoundingClientRect(),o={x:i.left,y:i.bottom+n};return o};var XUn=["left","center","right","top","middle","bottom"];function RL(e,n,r,i){this._alignElements=n,this._translate=r,this._popupMenu=e,this._rules=i,e.registerProvider("align-elements",this)}RL.$inject=["popupMenu","alignElements","translate","rules"];RL.prototype.getPopupMenuEntries=function(e){var n={};return this._isAllowed(e)&&Rt(n,this._getEntries(e)),n};RL.prototype._isAllowed=function(e){return this._rules.allowed("elements.align",{elements:e})};RL.prototype._getEntries=function(e){var n=this._alignElements,r=this._translate,i=this._popupMenu,o={};return ht(XUn,function(a){o["align-elements-"+a]={group:"align",title:r("Align elements "+a),className:"bjs-align-elements-menu-entry",imageHtml:Vet[a],action:function(){n.trigger(e,a),i.close()}}}),o};function Yp(e){vn.call(this,e),this.init()}Yp.$inject=["eventBus"];Zn(Yp,vn);Yp.prototype.addRule=function(e,n,r){var i=this;typeof e=="string"&&(e=[e]),e.forEach(function(o){i.canExecute(o,n,function(a,s,l){return r(a)},!0)})};Yp.prototype.init=function(){};function jz(e){Yp.call(this,e)}jz.$inject=["eventBus"];Zn(jz,Yp);jz.prototype.init=function(){this.addRule("elements.align",function(e){var n=e.elements,r=si(n,function(i){return!(i.waypoints||i.host||i.labelTarget)});return r=xz(r),r.length<2?!1:r})};const QUn={__depends__:[dUn,xet,zhe],__init__:["alignElementsContextPadProvider","alignElementsMenuProvider","bpmnAlignElements"],alignElementsContextPadProvider:["type",QI],alignElementsMenuProvider:["type",RL],bpmnAlignElements:["type",jz]};var ZUn=10,Get=50,JUn=250;function Vhe(e,n,r,i){for(var o;o=eHn(e,r,n);)r=i(n,r,o);return r}function Ghe(e){return function(n,r,i){var o={x:r.x,y:r.y};return["x","y"].forEach(function(a){var s=e[a];if(s){var l=a==="x"?"width":"height",c=s.margin,u=s.minDistance;c<0?o[a]=Math.min(i[a]+c-n[l]/2,r[a]-u+c):o[a]=Math.max(i[a]+i[l]+c+n[l]/2,r[a]+u+c)}}),o}}function eHn(e,n,r){var i={x:n.x-r.width/2,y:n.y-r.height/2,width:r.width,height:r.height},o=nHn(e);return ki(o,function(a){if(a===r)return!1;var s=_c(a,i,ZUn);return s==="intersect"})}function tHn(e,n){n||(n={});function r(g){return g.source===e?1:-1}var i=n.defaultDistance||Get,o=n.direction||"e",a=n.filter,s=n.getWeight||r,l=n.maxDistance||JUn,c=n.reference||"start";a||(a=oHn);function u(g,v){return o==="n"?c==="start"?br(g).top-br(v).bottom:c==="center"?br(g).top-Mr(v).y:br(g).top-br(v).top:o==="w"?c==="start"?br(g).left-br(v).right:c==="center"?br(g).left-Mr(v).x:br(g).left-br(v).left:o==="s"?c==="start"?br(v).top-br(g).bottom:c==="center"?Mr(v).y-br(g).bottom:br(v).bottom-br(g).bottom:c==="start"?br(v).left-br(g).right:c==="center"?Mr(v).x-br(g).right:br(v).right-br(g).right}var d=e.incoming.filter(a).map(function(g){var v=s(g),y=v<0?u(g.source,e):u(e,g.source);return{id:g.source.id,distance:y,weight:v}}),f=e.outgoing.filter(a).map(function(g){var v=s(g),y=v>0?u(e,g.target):u(g.target,e);return{id:g.target.id,distance:y,weight:v}}),p=d.concat(f).reduce(function(g,v){return g[v.id+"__weight_"+v.weight]=v,g},{}),h=yd(p,function(g,v){var y=v.distance,_=v.weight;return y<0||y>l||(g[String(y)]||(g[String(y)]=0),g[String(y)]+=1*_,(!g.distance||g[g.distance]<g[String(y)])&&(g.distance=y)),g},{});return h.distance||i}function nHn(e){var n=uJ(e);return e.host&&(n=n.concat(uJ(e.host))),e.attachers&&(n=n.concat(e.attachers.reduce(function(r,i){return r.concat(uJ(i))},[]))),n}function uJ(e){return iHn(e).concat(rHn(e))}function rHn(e){return e.incoming.map(function(n){return n.source})}function iHn(e){return e.outgoing.map(function(n){return n.target})}function oHn(){return!0}var aHn=100;function Wet(e,n,r){e.on("autoPlace",aHn,function(i){var o=i.shape,a=i.source;return sHn(a,o)}),e.on("autoPlace.end",function(i){r.scrollToElement(i.shape)}),this.append=function(i,o,a){e.fire("autoPlace.start",{source:i,shape:o});var s=e.fire("autoPlace",{source:i,shape:o}),l=n.appendShape(i,o,s,i.parent,a);return e.fire("autoPlace.end",{source:i,shape:l}),l}}Wet.$inject=["eventBus","modeling","canvas"];function sHn(e,n,r){r||(r={});var i=r.defaultDistance||Get,o=Mr(e),a=br(e);return{x:a.right+i+n.width/2,y:o.y}}function Yet(e,n){e.on("autoPlace.end",500,function(r){n.select(r.shape)})}Yet.$inject=["eventBus","selection"];const lHn={__init__:["autoPlaceSelectionBehavior"],autoPlace:["type",Wet],autoPlaceSelectionBehavior:["type",Yet]};function dR(e,n){for(vd(n)&&(n=[n]);e=e.parent;)if(ii(e,n))return e;return null}function qet(e,n){var r=dR(e,"bpmn:Process");if(r)return!0;var i=["bpmn:Participant","bpmn:Lane"];if(r=dR(e,i),r)return cl(r);if(ii(e,i))return cl(e);var o;for(o=In(e);o&&!Fe(o,"bpmn:Process");o=o.$parent);if(!n)return!0;var a=n.find(function(s){var l=In(s);return l&&l.get("processRef")===o});return a?cl(a):!0}function Ket(e,n,r){var i=qet(e,r);if(Fe(n,"bpmn:TextAnnotation"))return uHn(e,n,i);if(ii(n,["bpmn:DataObjectReference","bpmn:DataStoreReference"]))return dHn(e,n,i);if(Fe(n,"bpmn:FlowNode"))return cHn(e,n,i)}function cHn(e,n,r){var i=br(e),o=Mr(e),a=r?{directionHint:"e",minDistance:80,baseOrientation:"left",boundaryOrientation:"top",start:"top",end:"bottom"}:{directionHint:"s",minDistance:90,baseOrientation:"top",boundaryOrientation:"left",start:"left",end:"right"},s=tHn(e,{filter:function(h){return Fe(h,"bpmn:SequenceFlow")},direction:a.directionHint}),l=30,c=a.minDistance,u=a.baseOrientation;Fe(e,"bpmn:BoundaryEvent")&&(u=_c(e,e.host,-25),u.indexOf(a.boundaryOrientation)!==-1&&(l*=-1));var d=r?{x:i.right+s+n.width/2,y:o.y+IAe(u,c,a)}:{x:o.x+IAe(u,c,a),y:i.bottom+s+n.height/2},f={margin:l,minDistance:c},p=r?{y:f}:{x:f};return Vhe(e,n,d,Ghe(p))}function IAe(e,n,r){return e.includes(r.start)?-1*n:e.includes(r.end)?n:0}function uHn(e,n,r){var i=br(e),o=r?{x:i.right+n.width/2,y:i.top-50-n.height/2}:{x:i.right+50+n.width/2,y:i.bottom+n.height/2};wo(e)&&(o=Mr(e),r?(o.x+=100,o.y-=50):(o.x+=100,o.y+=50));var a={margin:r?-30:30,minDistance:20},s=r?{y:a}:{x:a};return Vhe(e,n,o,Ghe(s))}function dHn(e,n,r){var i=br(e),o=r?{x:i.right-10+n.width/2,y:i.bottom+40+n.width/2}:{x:i.left-40-n.width/2,y:i.bottom-10+n.height/2},a={margin:30,minDistance:30},s=r?{x:a}:{y:a};return Vhe(e,n,o,Ghe(s))}function Xet(e,n){e.on("autoPlace",function(r){var i=r.shape,o=r.source;return Ket(o,i,n)})}Xet.$inject=["eventBus","elementRegistry"];const Whe={__depends__:[lHn],__init__:["bpmnAutoPlace"],bpmnAutoPlace:["type",Xet]};function y_(e,n,r,i){vn.call(this,e),this._elementRegistry=n,this._modeling=r,this._rules=i;var o=this;this.postExecuted(["shape.create"],function(a){var s=a.context,l=s.hints||{},c=s.shape,u=s.parent||s.newParent;l.autoResize!==!1&&o._expand([c],u)}),this.postExecuted(["elements.move"],function(a){var s=a.context,l=hhe(ghe(s.closure.topLevel)),c=s.hints,u=c?c.autoResize:!0;if(u!==!1){var d=UI(l,function(f){return f.parent.id});ht(d,function(f,p){zr(u)&&(f=f.filter(function(h){return ki(u,Kh({id:h.id}))})),o._expand(f,p)})}}),this.postExecuted(["shape.toggleCollapse"],function(a){var s=a.context,l=s.hints,c=s.shape;l&&l.autoResize===!1||c.collapsed||o._expand(c.children||[],c)}),this.postExecuted(["shape.resize"],function(a){var s=a.context,l=s.hints,c=s.shape,u=c.parent;l&&l.autoResize===!1||u&&o._expand([c],u)})}y_.$inject=["eventBus","elementRegistry","modeling","rules"];Zn(y_,vn);y_.prototype._getOptimalBounds=function(e,n){var r=this.getOffset(n),i=this.getPadding(n),o=br(sl(e)),a=br(n),s={};return o.top-a.top<i.top&&(s.top=o.top-r.top),o.left-a.left<i.left&&(s.left=o.left-r.left),a.right-o.right<i.right&&(s.right=o.right+r.right),a.bottom-o.bottom<i.bottom&&(s.bottom=o.bottom+r.bottom),Tz(Rt({},a,s))};y_.prototype._expand=function(e,n){typeof n=="string"&&(n=this._elementRegistry.get(n));var r=this._rules.allowed("element.autoResize",{elements:e,target:n});if(r){var i=this._getOptimalBounds(e,n);if(fHn(i,n)){var o=pHn(sg(n,["x","y","width","height"]),i);this.resize(n,i,{autoResize:o});var a=n.parent;a&&this._expand([n],a)}}};y_.prototype.getOffset=function(e){return{top:60,bottom:60,left:100,right:100}};y_.prototype.getPadding=function(e){return{top:2,bottom:2,left:15,right:15}};y_.prototype.resize=function(e,n,r){this._modeling.resizeShape(e,n,null,r)};function fHn(e,n){return e.x!==n.x||e.y!==n.y||e.width!==n.width||e.height!==n.height}function pHn(e,n){var r="";return e=br(e),n=br(n),e.top>n.top&&(r=r.concat("n")),e.right<n.right&&(r=r.concat("w")),e.bottom<n.bottom&&(r=r.concat("s")),e.left>n.left&&(r=r.concat("e")),r}function Uz(e){e.invoke(y_,this)}Uz.$inject=["injector"];Zn(Uz,y_);Uz.prototype.resize=function(e,n,r){Fe(e,"bpmn:Participant")?this._modeling.resizeLane(e,n,null,r):this._modeling.resizeShape(e,n,null,r)};function IL(e){Yp.call(this,e);var n=this;this.addRule("element.autoResize",function(r){return n.canResize(r.elements,r.target)})}IL.$inject=["eventBus"];Zn(IL,Yp);IL.prototype.canResize=function(e,n){return!1};function Hz(e,n){IL.call(this,e),this._modeling=n}Zn(Hz,IL);Hz.$inject=["eventBus","modeling"];Hz.prototype.canResize=function(e,n){if(Fe(n.di,"bpmndi:BPMNPlane")||!Fe(n,"bpmn:Participant")&&!Fe(n,"bpmn:Lane")&&!Fe(n,"bpmn:SubProcess"))return!1;var r=!0;return ht(e,function(i){if(Fe(i,"bpmn:Lane")||Ni(i)){r=!1;return}}),r};const hHn={__init__:["bpmnAutoResize","bpmnAutoResizeProvider"],bpmnAutoResize:["type",Uz],bpmnAutoResizeProvider:["type",Hz]};var NAe=1500;function Qet(e,n,r){var i=this,o=r.get("dragging",!1);function a(s){if(!s.hover){var l=s.originalEvent,c=i._findTargetGfx(l),u=c&&e.get(c);c&&u&&(s.stopPropagation(),o.hover({element:u,gfx:c}),o.move(l))}}o&&n.on("drag.start",function(s){n.once("drag.move",NAe,function(l){a(l)})}),function(){var s,l;n.on("element.hover",function(c){s=c.gfx,l=c.element}),n.on("element.hover",NAe,function(c){l&&n.fire("element.out",{element:l,gfx:s})}),n.on("element.out",function(){s=null,l=null})}(),this._findTargetGfx=function(s){var l,c;if(s instanceof MouseEvent)return l=wC(s),c=document.elementFromPoint(l.x,l.y),gHn(c)}}Qet.$inject=["elementRegistry","eventBus","injector"];function gHn(e){return HI(e,"svg, .djs-element",!0)}const mHn={__init__:["hoverFix"],hoverFix:["type",Qet]};var Dx=Math.round,MAe="djs-drag-active";function SE(e){e.preventDefault()}function vHn(e){return typeof TouchEvent<"u"&&e instanceof TouchEvent}function yHn(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function Zet(e,n,r,i){var o={threshold:5,trapClick:!0},a;function s(b){var E=n.viewbox(),w=n._container.getBoundingClientRect();return{x:E.x+(b.x-w.left)/E.scale,y:E.y+(b.y-w.top)/E.scale}}function l(b,E){E=E||a;var w=e.createEvent(Rt({},E.payload,E.data,{isTouch:E.isTouch}));return e.fire("drag."+b,w)===!1?!1:e.fire(E.prefix+"."+b,w)}function c(b){var E=b.filter(function(w){return i.get(w.id)});E.length&&r.select(E)}function u(b,E){var w=a.payload,C=a.displacement,x=a.globalStart,T=wC(b),R=Xh(T,x),O=a.localStart,M=s(T),P=Xh(M,O);if(!a.active&&(E||yHn(R)>a.threshold)){if(Rt(w,{x:Dx(O.x+C.x),y:Dx(O.y+C.y),dx:0,dy:0},{originalEvent:b}),l("start")===!1)return y();a.active=!0,a.keepSelection||(w.previousSelection=r.get(),r.select(null)),a.cursor&&$z(a.cursor),n.addMarker(n.getRootElement(),MAe)}aJ(b),a.active&&(Rt(w,{x:Dx(M.x+C.x),y:Dx(M.y+C.y),dx:Dx(P.x),dy:Dx(P.y)},{originalEvent:b}),l("move"))}function d(b){var E,w=!0;a.active&&(b&&(a.payload.originalEvent=b,aJ(b)),w=l("end")),w===!1&&l("rejected"),E=_(w!==!0),l("ended",E)}function f(b){_l("Escape",b)&&(SE(b),y())}function p(b){var E;a.active&&(E=yet(e),setTimeout(E,400),SE(b)),d(b)}function h(b){u(b)}function g(b){var E=a.payload;E.hoverGfx=b.gfx,E.hover=b.element,l("hover")}function v(b){l("out");var E=a.payload;E.hoverGfx=null,E.hover=null}function y(b){var E;if(a){var w=a.active;w&&l("cancel"),E=_(b),w&&l("canceled",E)}}function _(b){var E,w;l("cleanup"),vet(),a.trapClick?w=p:w=d,Ur.unbind(document,"mousemove",u),Ur.unbind(document,"dragstart",SE),Ur.unbind(document,"selectstart",SE),Ur.unbind(document,"mousedown",w,!0),Ur.unbind(document,"mouseup",w,!0),Ur.unbind(document,"keyup",f),Ur.unbind(document,"touchstart",h,!0),Ur.unbind(document,"touchcancel",y,!0),Ur.unbind(document,"touchmove",u,!0),Ur.unbind(document,"touchend",d,!0),e.off("element.hover",g),e.off("element.out",v),n.removeMarker(n.getRootElement(),MAe);var C=a.payload.previousSelection;return b!==!1&&C&&!r.get().length&&c(C),E=a,a=null,E}function S(b,E,w,C){a&&y(!1),typeof E=="string"&&(C=w,w=E,E=null),C=Rt({},o,C||{});var x=C.data||{},T,R,O,M,P;C.trapClick?M=p:M=d,b?(T=WI(b)||b,R=wC(b),aJ(b),T.type==="dragstart"&&SE(T)):(T=null,R={x:0,y:0}),O=s(R),E||(E=O),P=vHn(T),a=Rt({prefix:w,data:x,payload:{},globalStart:R,displacement:Xh(E,O),localStart:O,isTouch:P},C),C.manual||(P?(Ur.bind(document,"touchstart",h,!0),Ur.bind(document,"touchcancel",y,!0),Ur.bind(document,"touchmove",u,!0),Ur.bind(document,"touchend",d,!0)):(Ur.bind(document,"mousemove",u),Ur.bind(document,"dragstart",SE),Ur.bind(document,"selectstart",SE),Ur.bind(document,"mousedown",M,!0),Ur.bind(document,"mouseup",M,!0)),Ur.bind(document,"keyup",f),e.on("element.hover",g),e.on("element.out",v)),l("init"),C.autoActivate&&u(b,!0)}e.on("diagram.destroy",y),this.init=S,this.move=u,this.hover=g,this.out=v,this.end=d,this.cancel=y,this.context=function(){return a},this.setOptions=function(b){Rt(o,b)}}Zet.$inject=["eventBus","canvas","selection","elementRegistry"];const __={__depends__:[mHn,Tg],dragging:["type",Zet]};function ZI(e,n,r){this._canvas=r,this._opts=Rt({scrollThresholdIn:[20,20,20,20],scrollThresholdOut:[0,0,0,0],scrollRepeatTimeout:15,scrollStep:10},e);var i=this;n.on("drag.move",function(o){var a=i._toBorderPoint(o);i.startScroll(a)}),n.on(["drag.cleanup"],function(){i.stopScroll()})}ZI.$inject=["config.autoScroll","eventBus","canvas"];ZI.prototype.startScroll=function(e){var n=this._canvas,r=this._opts,i=this,o=n.getContainer().getBoundingClientRect(),a=[e.x,e.y,o.width-e.x,o.height-e.y];this.stopScroll();for(var s=0,l=0,c=0;c<4;c++)_Hn(a[c],r.scrollThresholdOut[c],r.scrollThresholdIn[c])&&(c===0?s=r.scrollStep:c==1?l=r.scrollStep:c==2?s=-r.scrollStep:c==3&&(l=-r.scrollStep));(s!==0||l!==0)&&(n.scroll({dx:s,dy:l}),this._scrolling=setTimeout(function(){i.startScroll(e)},r.scrollRepeatTimeout))};function _Hn(e,n,r){return n<e&&e<r}ZI.prototype.stopScroll=function(){clearTimeout(this._scrolling)};ZI.prototype.setOptions=function(e){this._opts=Rt({},this._opts,e)};ZI.prototype._toBorderPoint=function(e){var n=this._canvas._container.getBoundingClientRect(),r=wC(e.originalEvent);return{x:r.x-n.left,y:r.y-n.top}};const bHn={__depends__:[__],__init__:["autoScroll"],autoScroll:["type",ZI]};function Yhe(e){this._commandStack=e.get("commandStack",!1)}Yhe.$inject=["injector"];Yhe.prototype.allowed=function(e,n){var r=!0,i=this._commandStack;return i&&(r=i.canExecute(e,n)),r===void 0?!0:r};const lv={__init__:["rules"],rules:["type",Yhe]};var H4=Math.round,SHn=Math.max;function EHn(e,n){var r=e.x,i=e.y;return[["M",r,i],["m",0,-n],["a",n,n,0,1,1,0,2*n],["a",n,n,0,1,1,0,-2*n],["z"]]}function CHn(e){var n=[];return e.forEach(function(r,i){n.push([i===0?"M":"L",r.x,r.y])}),n}var Jet=10;function wHn(e,n){var r,i;for(r=0;i=e[r];r++)if(bL(i,n)<=Jet)return{point:e[r],bendpoint:!0,index:r};return null}function xHn(e,n){var r=gJe(EHn(n,Jet),CHn(e)),i=r[0],o=r[r.length-1],a;return i?i!==o?i.segment2!==o.segment2?(a=SHn(i.segment2,o.segment2)-1,{point:e[a],bendpoint:!0,index:a}):{point:{x:H4(i.x+o.x)/2,y:H4(i.y+o.y)/2},index:i.segment2}:{point:{x:H4(i.x),y:H4(i.y)},index:i.segment2}:null}function Aae(e,n){return wHn(e,n)||xHn(e,n)}function ett(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function PAe(e){return Math.atan((e[1].y-e[0].y)/(e[1].x-e[0].x))}function THn(e,n){return n?{x:Math.cos(n)*e.x-Math.sin(n)*e.y,y:Math.sin(n)*e.x+Math.cos(n)*e.y}:e}function OHn(e,n,r){var i=[{n:e[0]-r[0],lambda:n[0]},{n:e[1]-r[1],lambda:n[1]}],o=i[0].n*n[0]+i[1].n*n[1],a=i[0].lambda*n[0]+i[1].lambda*n[1];return-o/a}function qhe(e,n){var r=n[0],i=n[1],o={x:i.x-r.x,y:i.y-r.y},a=OHn([r.x,r.y],[o.x,o.y],[e.x,e.y]);return{x:r.x+a*o.x,y:r.y+a*o.y}}function ttt(e,n){var r=qhe(e,n),i={x:r.x-e.x,y:r.y-e.y};return ett(i)}function tj(e,n){return ett({x:e.x-n.x,y:e.y-n.y})}var ntt="djs-bendpoint",rtt="djs-segment-dragger";function RHn(e,n){var r=wC(n),i=e._container.getBoundingClientRect(),o;o={x:i.left,y:i.top};var a=e.viewbox();return{x:a.x+(r.x-o.x)/a.scale,y:a.y+(r.y-o.y)/a.scale}}function Dae(e,n,r){var i=RHn(e,r),o=Aae(n,i);return o}function kae(e,n){var r=pr("g");Ri(r).add(ntt),Ar(e,r);var i=pr("circle");Gn(i,{cx:0,cy:0,r:4}),Ri(i).add("djs-visual"),Ar(r,i);var o=pr("circle");return Gn(o,{cx:0,cy:0,r:10}),Ri(o).add("djs-hit"),Ar(r,o),n&&Ri(r).add(n),r}function IHn(e,n,r,i){var o=pr("g");Ar(e,o);var a=18,s=6,l=11,c=MHn(n,r,i),u=s+l,d=pr("rect");Gn(d,{x:-a/2,y:-s/2,width:a,height:s}),Ri(d).add("djs-visual"),Ar(o,d);var f=pr("rect");return Gn(f,{x:-c/2,y:-u/2,width:c,height:u}),Ri(f).add("djs-hit"),Ar(o,f),IJe(o,i==="v"?90:0),o}function itt(e,n,r){var i=pr("g"),o=yae(n,r),a=ry(n,r);return Ar(e,i),IHn(i,n,r,a),Ri(i).add(rtt),Ri(i).add(a==="h"?"horizontal":"vertical"),Wl(i,o.x,o.y),i}function Lae(e){return Math.abs(Math.round(e*2/3))}function NHn(e,n){var r=PHn(e,n);return qhe(e,r)}function MHn(e,n,r){var i=n.x-e.x,o=n.y-e.y;return Lae(r==="h"?i:o)}function PHn(e,n){for(var r=n.waypoints,i=1/0,o,a=0;a<r.length-1;a++){var s=r[a],l=r[a+1],c=ttt(e,[s,l]);c<i&&(i=c,o=a)}return[r[o],r[o+1]]}function ott(e,n,r,i,o){function a(b,E,w){var C=b.index,x=b.point,T,R,O,M,P,k;return C<=0||b.bendpoint?!1:(T=E[C-1],R=E[C],O=yae(T,R),M=ry(T,R),P=Math.abs(x.x-O.x),k=Math.abs(x.y-O.y),M&&P<=w&&k<=w)}function s(b,E){var w=b.waypoints,C,x,T,R;return E.index<=0||E.bendpoint||(C={start:w[E.index-1],end:w[E.index]},x=ry(C.start,C.end),!x)?null:(x==="h"?T=C.end.x-C.start.x:T=C.end.y-C.start.y,R=Lae(T)/2,R)}function l(b,E){var w=E.waypoints,C=Dae(n,w,b),x;if(C)return x=s(E,C),a(C,w,x)?o.start(b,E,C.index):i.start(b,E,C.index,!C.bendpoint),!0}function c(b,E,w){Ur.bind(b,E,function(C){r.triggerMouseEvent(E,C,w),C.stopPropagation()})}function u(b,E){var w=n.getLayer("overlays"),C=Co('.djs-bendpoints[data-element-id="'+nD(b.id)+'"]',w);return!C&&E&&(C=pr("g"),Gn(C,{"data-element-id":b.id}),Ri(C).add("djs-bendpoints"),Ar(w,C),c(C,"mousedown",b),c(C,"click",b),c(C,"dblclick",b)),C}function d(b,E){return Co('.djs-segment-dragger[data-segment-idx="'+b+'"]',E)}function f(b,E){E.waypoints.forEach(function(w,C){var x=kae(b);Ar(b,x),Wl(x,w.x,w.y)}),kae(b,"floating")}function p(b,E){for(var w=E.waypoints,C,x,T,R=1;R<w.length;R++)C=w[R-1],x=w[R],ry(C,x)&&(T=itt(b,C,x),Gn(T,{"data-segment-idx":R}),c(T,"mousemove",E))}function h(b){ht(gae("."+ntt,b),function(E){Hs(E)})}function g(b){ht(gae("."+rtt,b),function(E){Hs(E)})}function v(b){var E=u(b);return E||(E=u(b,!0),f(E,b),p(E,b)),E}function y(b){var E=u(b);E&&(g(E),h(E),p(E,b),f(E,b))}function _(b,E){var w=Co(".floating",b),C=E.point;w&&Wl(w,C.x,C.y)}function S(b,E,w){var C=d(E.index,b),x=w[E.index-1],T=w[E.index],R=E.point,O=yae(x,T),M=ry(x,T),P,k;C&&(P=AHn(C),k={x:R.x-O.x,y:R.y-O.y},M==="v"&&(k={x:k.y,y:k.x}),Wl(P,k.x,k.y))}e.on("connection.changed",function(b){y(b.element)}),e.on("connection.remove",function(b){var E=u(b.element);E&&Hs(E)}),e.on("element.marker.update",function(b){var E=b.element,w;E.waypoints&&(w=v(E),b.add?Ri(w).add(b.marker):Ri(w).remove(b.marker))}),e.on("element.mousemove",function(b){var E=b.element,w=E.waypoints,C,x;if(w){if(C=u(E,!0),x=Dae(n,w,b.originalEvent),!x)return;_(C,x),x.bendpoint||S(C,x,w)}}),e.on("element.mousedown",function(b){if(vS(b)){var E=b.originalEvent,w=b.element;if(w.waypoints)return l(E,w)}}),e.on("selection.changed",function(b){var E=b.newSelection,w=E[0];w&&w.waypoints&&v(w)}),e.on("element.hover",function(b){var E=b.element;E.waypoints&&(v(E),r.registerEvent(b.gfx,"mousemove","element.mousemove"))}),e.on("element.out",function(b){r.unregisterEvent(b.gfx,"mousemove","element.mousemove")}),e.on("element.updateId",function(b){var E=b.element,w=b.newId;if(E.waypoints){var C=u(E);C&&Gn(C,{"data-element-id":w})}}),this.addHandles=v,this.updateHandles=y,this.getBendpointsContainer=u,this.getSegmentDragger=d}ott.$inject=["eventBus","canvas","interactionEvents","bendpointMove","connectionSegmentMove"];function AHn(e){return Co(".djs-visual",e)}var AAe=Math.round,kE="reconnectStart",LE="reconnectEnd",OM="updateWaypoints";function Khe(e,n,r,i,o,a){this._injector=e,this.start=function(s,l,c,u){var d=r.getGraphics(l),f=l.source,p=l.target,h=l.waypoints,g;!u&&c===0?g=kE:!u&&c===h.length-1?g=LE:g=OM;var v=g===OM?"connection.updateWaypoints":"connection.reconnect",y=o.allowed(v,{connection:l,source:f,target:p});y===!1&&(y=o.allowed(v,{connection:l,source:p,target:f})),y!==!1&&i.init(s,"bendpoint.move",{data:{connection:l,connectionGfx:d,context:{allowed:y,bendpointIndex:c,connection:l,source:f,target:p,insert:u,type:g}}})},n.on("bendpoint.move.hover",function(s){var l=s.context,c=l.connection,u=c.source,d=c.target,f=s.hover,p=l.type;l.hover=f;var h;if(f){var g=p===OM?"connection.updateWaypoints":"connection.reconnect";if(h=l.allowed=o.allowed(g,{connection:c,source:p===kE?f:u,target:p===LE?f:d}),h){l.source=p===kE?f:u,l.target=p===LE?f:d;return}h===!1&&(h=l.allowed=o.allowed(g,{connection:c,source:p===LE?f:d,target:p===kE?f:u})),h&&(l.source=p===LE?f:d,l.target=p===kE?f:u)}}),n.on(["bendpoint.move.out","bendpoint.move.cleanup"],function(s){var l=s.context,c=l.type;l.hover=null,l.source=null,l.target=null,c!==OM&&(l.allowed=!1)}),n.on("bendpoint.move.end",function(s){var l=s.context,c=l.allowed,u=l.bendpointIndex,d=l.connection,f=l.insert,p=d.waypoints.slice(),h=l.source,g=l.target,v=l.type,y=l.hints||{},_={x:AAe(s.x),y:AAe(s.y)};if(!c)return!1;v===OM?(f?p.splice(u,0,_):p[u]=_,y.bendpointMove={insert:f,bendpointIndex:u},p=this.cropWaypoints(d,p),a.updateWaypoints(d,OBn(p),y)):(v===kE?(y.docking="source",nj(l)&&(y.docking="target",y.newWaypoints=p.reverse())):v===LE&&(y.docking="target",nj(l)&&(y.docking="source",y.newWaypoints=p.reverse())),a.reconnect(d,h,g,_,y))},this)}Khe.$inject=["injector","eventBus","canvas","dragging","rules","modeling"];Khe.prototype.cropWaypoints=function(e,n){var r=this._injector.get("connectionDocking",!1);if(!r)return n;var i=e.waypoints;return e.waypoints=n,e.waypoints=r.getCroppedWaypoints(e),n=e.waypoints,e.waypoints=i,n};function nj(e){var n=e.hover,r=e.source,i=e.target,o=e.type;if(o===kE)return n&&i&&n===i&&r!==i;if(o===LE)return n&&r&&n===r&&r!==i}var DHn="reconnectStart",kHn="reconnectEnd",DAe="updateWaypoints",RM="connect-ok",z4="connect-not-ok",kAe="connect-hover",LAe="djs-updating",$Ae="djs-dragging",FAe=1100;function att(e,n,r,i){this._injector=n;var o=n.get("connectionPreview",!1);r.on("bendpoint.move.start",function(a){var s=a.context,l=s.bendpointIndex,c=s.connection,u=s.insert,d=c.waypoints,f=d.slice();s.waypoints=d,u&&f.splice(l,0,{x:a.x,y:a.y}),c.waypoints=f;var p=s.draggerGfx=kae(i.getLayer("overlays"));Ri(p).add("djs-dragging"),i.addMarker(c,$Ae),i.addMarker(c,LAe)}),r.on("bendpoint.move.hover",function(a){var s=a.context,l=s.allowed,c=s.hover,u=s.type;if(c){if(i.addMarker(c,kAe),u===DAe)return;l?(i.removeMarker(c,z4),i.addMarker(c,RM)):l===!1&&(i.removeMarker(c,RM),i.addMarker(c,z4))}}),r.on(["bendpoint.move.out","bendpoint.move.cleanup"],FAe,function(a){var s=a.context,l=s.hover,c=s.target;l&&(i.removeMarker(l,kAe),i.removeMarker(l,c?RM:z4))}),r.on("bendpoint.move.move",function(a){var s=a.context,l=s.allowed,c=s.bendpointIndex,u=s.draggerGfx,d=s.hover,f=s.type,p=s.connection,h=p.source,g=p.target,v=p.waypoints.slice(),y={x:a.x,y:a.y},_=s.hints||{},S={};o&&(_.connectionStart&&(S.connectionStart=_.connectionStart),_.connectionEnd&&(S.connectionEnd=_.connectionEnd),f===DHn?nj(s)?(S.connectionEnd=S.connectionEnd||y,S.source=g,S.target=d||h,v=v.reverse()):(S.connectionStart=S.connectionStart||y,S.source=d||h,S.target=g):f===kHn?nj(s)?(S.connectionStart=S.connectionStart||y,S.source=d||g,S.target=h,v=v.reverse()):(S.connectionEnd=S.connectionEnd||y,S.source=h,S.target=d||g):(S.noCropping=!0,S.noLayout=!0,v[c]=y),f===DAe&&(v=e.cropWaypoints(p,v)),S.waypoints=v,o.drawPreview(s,l,S)),Wl(u,a.x,a.y)},this),r.on(["bendpoint.move.end","bendpoint.move.cancel"],FAe,function(a){var s=a.context,l=s.connection,c=s.draggerGfx,u=s.hover,d=s.target,f=s.waypoints;l.waypoints=f,Hs(c),i.removeMarker(l,LAe),i.removeMarker(l,$Ae),u&&(i.removeMarker(u,RM),i.removeMarker(u,d?RM:z4)),o&&o.cleanUp(s)})}att.$inject=["bendpointMove","injector","eventBus","canvas"];var BAe="connect-hover",jAe="djs-updating";function UAe(e,n,r){return Xhe(e,n,e[n]+r)}function Xhe(e,n,r){return{x:n==="x"?r:e.x,y:n==="y"?r:e.y}}function LHn(e,n,r,i){var o=Math.max(n[i],r[i]),a=Math.min(n[i],r[i]),s=20,l=Math.min(Math.max(a+s,e[i]),o-s);return Xhe(n,i,l)}function stt(e){return e==="x"?"y":"x"}function HAe(e,n,r){var i,o;return e.original?e.original:(i=Mr(n),o=stt(r),Xhe(e,o,i[o]))}function ltt(e,n,r,i,o,a){var s=e.get("connectionDocking",!1);this.start=function(f,p,h){var g,v=r.getGraphics(p),y=h-1,_=h,S=p.waypoints,b=S[y],E=S[_],w=Dae(r,S,f),C,x,T;C=ry(b,E),C&&(x=C==="v"?"x":"y",y===0&&(b=HAe(b,p.source,x)),_===S.length-1&&(E=HAe(E,p.target,x)),w?T=w.point:T={x:(b.x+E.x)/2,y:(b.y+E.y)/2},g={connection:p,segmentStartIndex:y,segmentEndIndex:_,segmentStart:b,segmentEnd:E,axis:x,dragPosition:T},i.init(f,T,"connectionSegment.move",{cursor:x==="x"?"resize-ew":"resize-ns",data:{connection:p,connectionGfx:v,context:g}}))};function l(f,p){if(!s)return p;var h=f.waypoints,g;return f.waypoints=p,g=s.getCroppedWaypoints(f),f.waypoints=h,g}function c(f){o.update("connection",f.connection,f.connectionGfx)}function u(f,p,h){var g=f.newWaypoints,v=f.segmentStartIndex+p,y=g[v],_=f.segmentEndIndex+p,S=g[_],b=stt(f.axis),E=LHn(h,y,S,b);Wl(f.draggerGfx,E.x,E.y)}function d(f,p){var h=0,g=f.filter(function(v,y){return She(f[y-1],f[y+1],v)?(h=y<=p?h-1:h,!1):!0});return{waypoints:g,segmentOffset:h}}n.on("connectionSegment.move.start",function(f){var p=f.context,h=f.connection,g=r.getLayer("overlays");p.originalWaypoints=h.waypoints.slice(),p.draggerGfx=itt(g,p.segmentStart,p.segmentEnd),Ri(p.draggerGfx).add("djs-dragging"),r.addMarker(h,jAe)}),n.on("connectionSegment.move.move",function(f){var p=f.context,h=p.connection,g=p.segmentStartIndex,v=p.segmentEndIndex,y=p.segmentStart,_=p.segmentEnd,S=p.axis,b=p.originalWaypoints.slice(),E=UAe(y,S,f["d"+S]),w=UAe(_,S,f["d"+S]),C=b.length,x=0;b[g]=E,b[v]=w;var T,R;g<2&&(T=_c(h.source,E),g===1?T==="intersect"&&(b.shift(),b[0]=E,x--):T!=="intersect"&&(b.unshift(y),x++)),v>C-3&&(R=_c(h.target,w),v===C-2?R==="intersect"&&(b.pop(),b[b.length-1]=w):R!=="intersect"&&b.push(_)),p.newWaypoints=h.waypoints=l(h,b),u(p,x,f),p.newSegmentStartIndex=g+x,c(f)}),n.on("connectionSegment.move.hover",function(f){f.context.hover=f.hover,r.addMarker(f.hover,BAe)}),n.on(["connectionSegment.move.out","connectionSegment.move.cleanup"],function(f){var p=f.context.hover;p&&r.removeMarker(p,BAe)}),n.on("connectionSegment.move.cleanup",function(f){var p=f.context,h=p.connection;p.draggerGfx&&Hs(p.draggerGfx),r.removeMarker(h,jAe)}),n.on(["connectionSegment.move.cancel","connectionSegment.move.end"],function(f){var p=f.context,h=p.connection;h.waypoints=p.originalWaypoints,c(f)}),n.on("connectionSegment.move.end",function(f){var p=f.context,h=p.connection,g=p.newWaypoints,v=p.newSegmentStartIndex;g=g.map(function(w){return{original:w.original,x:Math.round(w.x),y:Math.round(w.y)}});var y=d(g,v),_=y.waypoints,S=l(h,_),b=y.segmentOffset,E={segmentMove:{segmentStartIndex:p.segmentStartIndex,newSegmentStartIndex:v+b}};a.updateWaypoints(h,S,E)})}ltt.$inject=["injector","eventBus","canvas","dragging","graphicsFactory","modeling"];var $Hn=Math.abs,zAe=Math.round;function FHn(e,n,r){r=r===void 0?10:r;var i,o;for(i=0;i<n.length;i++)if(o=n[i],$Hn(o-e)<=r)return o}function ctt(e){return{x:e.x,y:e.y}}function utt(e){return{x:e.x+e.width,y:e.y+e.height}}function vp(e,n){return!e||isNaN(e.x)||isNaN(e.y)?n:{x:zAe(e.x+e.width/2),y:zAe(e.y+e.height/2)}}function fR(e,n){var r=e.snapped;return r?typeof n=="string"?r[n]:r.x&&r.y:!1}function _s(e,n,r){if(typeof n!="string")throw new Error("axis must be in [x, y]");if(typeof r!="number"&&r!==!1)throw new Error("value must be Number or false");var i,o=e[n],a=e.snapped=e.snapped||{};return r===!1?a[n]=!1:(a[n]=!0,i=r-o,e[n]+=i,e["d"+n]+=i),o}function dtt(e){return e.children||[]}var BHn=Math.abs,VAe=Math.round,dJ=10;function ftt(e){function n(a,s){if(zr(a)){for(var l=a.length;l--;)if(BHn(a[l]-s)<=dJ)return a[l]}else{a=+a;var c=s%a;if(c<dJ)return s-c;if(c>a-dJ)return s-c+a}return s}function r(a,s){if(a.waypoints)return NHn(s,a);if(a.width)return{x:VAe(a.width/2+a.x),y:VAe(a.height/2+a.y)}}function i(a){var s=a.context,l=s.snapPoints,c=s.connection,u=c.waypoints,d=s.segmentStart,f=s.segmentStartIndex,p=s.segmentEnd,h=s.segmentEndIndex,g=s.axis;if(l)return l;var v=[u[f-1],d,p,u[h+1]];return f<2&&v.unshift(r(c.source,a)),h>u.length-3&&v.unshift(r(c.target,a)),s.snapPoints=l={horizontal:[],vertical:[]},ht(v,function(y){y&&(y=y.original||y,g==="y"&&l.horizontal.push(y.y),g==="x"&&l.vertical.push(y.x))}),l}e.on("connectionSegment.move.move",1500,function(a){var s=i(a),l=a.x,c=a.y,u,d;if(s){u=n(s.vertical,l),d=n(s.horizontal,c);var f=l-u,p=c-d;Rt(a,{dx:a.dx-f,dy:a.dy-p,x:u,y:d}),(f||s.vertical.indexOf(l)!==-1)&&_s(a,"x",u),(p||s.horizontal.indexOf(c)!==-1)&&_s(a,"y",d)}});function o(a){var s=a.snapPoints,l=a.connection.waypoints,c=a.bendpointIndex;if(s)return s;var u=[l[c-1],l[c+1]];return a.snapPoints=s={horizontal:[],vertical:[]},ht(u,function(d){d&&(d=d.original||d,s.horizontal.push(d.y),s.vertical.push(d.x))}),s}e.on(["connect.hover","connect.move","connect.end"],1500,function(a){var s=a.context,l=s.hover,c=l&&r(l,a);!wo(l)||!c||!c.x||!c.y||(_s(a,"x",c.x),_s(a,"y",c.y))}),e.on(["bendpoint.move.move","bendpoint.move.end"],1500,function(a){var s=a.context,l=o(s),c=s.hover,u=c&&r(c,a),d=a.x,f=a.y,p,h;if(l){p=n(u?l.vertical.concat([u.x]):l.vertical,d),h=n(u?l.horizontal.concat([u.y]):l.horizontal,f);var g=d-p,v=f-h;Rt(a,{dx:a.dx-g,dy:a.dy-v,x:a.x-g,y:a.y-v}),(g||l.vertical.indexOf(d)!==-1)&&_s(a,"x",p),(v||l.horizontal.indexOf(f)!==-1)&&_s(a,"y",h)}})}ftt.$inject=["eventBus"];const jHn={__depends__:[__,lv],__init__:["bendpoints","bendpointSnapping","bendpointMovePreview"],bendpoints:["type",ott],bendpointMove:["type",Khe],bendpointMovePreview:["type",att],connectionSegmentMove:["type",ltt],bendpointSnapping:["type",ftt]};function ptt(e,n,r,i){function o(s,l){return i.allowed("connection.create",{source:s,target:l})}function a(s,l){return o(l,s)}e.on("connect.hover",function(s){var l=s.context,c=l.start,u=s.hover,d;if(l.hover=u,d=l.canExecute=o(c,u),!JA(d)){if(d!==!1){l.source=c,l.target=u;return}d=l.canExecute=a(c,u),!JA(d)&&d!==!1&&(l.source=u,l.target=c)}}),e.on(["connect.out","connect.cleanup"],function(s){var l=s.context;l.hover=null,l.source=null,l.target=null,l.canExecute=!1}),e.on("connect.end",function(s){var l=s.context,c=l.canExecute,u=l.connectionStart,d={x:s.x,y:s.y},f=l.source,p=l.target;if(!c)return!1;var h=null,g={connectionStart:$ae(l)?d:u,connectionEnd:$ae(l)?u:d};Rl(c)&&(h=c),l.connection=r.connect(f,p,h,g)}),this.start=function(s,l,c,u){Rl(c)||(u=c,c=Mr(l)),n.init(s,"connect",{autoActivate:u,data:{shape:l,context:{start:l,connectionStart:c}}})}}ptt.$inject=["eventBus","dragging","modeling","rules"];function $ae(e){var n=e.hover,r=e.source,i=e.target;return n&&r&&n===r&&r!==i}var UHn=1100,HHn=900,GAe="connect-ok",WAe="connect-not-ok";function htt(e,n,r){var i=e.get("connectionPreview",!1);i&&n.on("connect.move",function(o){var a=o.context,s=a.canExecute,l=a.hover,c=a.source,u=a.start,d=a.startPosition,f=a.target,p=a.connectionStart||d,h=a.connectionEnd||{x:o.x,y:o.y},g=p,v=h;$ae(a)&&(g=h,v=p),i.drawPreview(a,s,{source:c||u,target:f||l,connectionStart:g,connectionEnd:v})}),n.on("connect.hover",HHn,function(o){var a=o.context,s=o.hover,l=a.canExecute;l!==null&&r.addMarker(s,l?GAe:WAe)}),n.on(["connect.out","connect.cleanup"],UHn,function(o){var a=o.hover;a&&(r.removeMarker(a,GAe),r.removeMarker(a,WAe))}),i&&n.on("connect.cleanup",function(o){i.cleanUp(o.context)})}htt.$inject=["injector","eventBus","canvas"];const Qhe={__depends__:[Tg,lv,__],__init__:["connectPreview"],connect:["type",ptt],connectPreview:["type",htt]};var zHn="djs-dragger";function b_(e,n,r,i){this._canvas=n,this._graphicsFactory=r,this._elementFactory=i,this._connectionDocking=e.get("connectionDocking",!1),this._layouter=e.get("layouter",!1)}b_.$inject=["injector","canvas","graphicsFactory","elementFactory"];b_.prototype.drawPreview=function(e,n,r){r=r||{};var i=e.connectionPreviewGfx,o=e.getConnection,a=r.source,s=r.target,l=r.waypoints,c=r.connectionStart,u=r.connectionEnd,d=r.noLayout,f=r.noCropping,p=r.noNoop,h,g=this;if(i||(i=e.connectionPreviewGfx=this.createConnectionPreviewGfx()),Cz(i),o||(o=e.getConnection=VHn(function(v,y,_){return g.getConnection(v,y,_)})),n&&(h=o(n,a,s)),!h){!p&&this.drawNoopPreview(i,r);return}h.waypoints=l||[],this._layouter&&!d&&(h.waypoints=this._layouter.layoutConnection(h,{source:a,target:s,connectionStart:c,connectionEnd:u,waypoints:r.waypoints||h.waypoints})),(!h.waypoints||!h.waypoints.length)&&(h.waypoints=[a?Mr(a):c,s?Mr(s):u]),this._connectionDocking&&(a||s)&&!f&&(h.waypoints=this._connectionDocking.getCroppedWaypoints(h,a,s)),this._graphicsFactory.drawConnection(i,h,{stroke:"var(--element-dragger-color)"})};b_.prototype.drawNoopPreview=function(e,n){var r=n.source,i=n.target,o=n.connectionStart||Mr(r),a=n.connectionEnd||Mr(i),s=this.cropWaypoints(o,a,r,i),l=this.createNoopConnection(s[0],s[1]);Ar(e,l)};b_.prototype.cropWaypoints=function(e,n,r,i){var o=this._graphicsFactory,a=r&&o.getShapePath(r),s=i&&o.getShapePath(i),l=o.getConnectionPath({waypoints:[e,n]});return e=r&&bae(a,l,!0)||e,n=i&&bae(s,l,!1)||n,[e,n]};b_.prototype.cleanUp=function(e){e&&e.connectionPreviewGfx&&Hs(e.connectionPreviewGfx)};b_.prototype.getConnection=function(e){var n=GHn(e);return this._elementFactory.createConnection(n)};b_.prototype.createConnectionPreviewGfx=function(){var e=pr("g");return Gn(e,{pointerEvents:"none"}),Ri(e).add(zHn),Ar(this._canvas.getActiveLayer(),e),e};b_.prototype.createNoopConnection=function(e,n){return wz([e,n],{stroke:"#333",strokeDasharray:[1],strokeWidth:2,"pointer-events":"none"})};function VHn(e){var n={};return function(r){var i=JSON.stringify(r),o=n[i];return o||(o=n[i]=e.apply(null,arguments)),o}}function GHn(e){return Rl(e)?e:{}}const WHn={__init__:["connectionPreview"],connectionPreview:["type",b_]},YHn=new TL("ps");var qHn=["marker-start","marker-mid","marker-end"],KHn=["circle","ellipse","line","path","polygon","polyline","path","rect"];function _S(e,n,r,i){this._elementRegistry=e,this._canvas=r,this._styles=i}_S.$inject=["elementRegistry","eventBus","canvas","styles"];_S.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")};_S.prototype.getGfx=function(e){return this._elementRegistry.getGraphics(e)};_S.prototype.addDragger=function(e,n,r,i="djs-dragger"){r=r||this.getGfx(e);var o=aJe(r),a=r.getBoundingClientRect();return this._cloneMarkers($1(o),i),Gn(o,this._styles.cls(i,[],{x:a.top,y:a.left})),Ar(n,o),Gn(o,"data-preview-support-element-id",e.id),o};_S.prototype.addFrame=function(e,n){var r=pr("rect",{class:"djs-resize-overlay",width:e.width,height:e.height,x:e.x,y:e.y});return Ar(n,r),Gn(r,"data-preview-support-element-id",e.id),r};_S.prototype._cloneMarkers=function(e,n="djs-dragger",r=e){var i=this;e.childNodes&&e.childNodes.forEach(o=>{i._cloneMarkers(o,n,r)}),JHn(e)&&qHn.forEach(function(o){if(Gn(e,o)){var a=XHn(e,o,i._canvas.getContainer());a&&i._cloneMarker(r,e,a,o,n)}})};_S.prototype._cloneMarker=function(e,n,r,i,o="djs-dragger"){var a=[r.id,o,YHn.next()].join("-"),s=Co("marker#"+r.id,e);e=e||this._canvas._svg;var l=s||aJe(r);l.id=a,Ri(l).add(o);var c=Co(":scope > defs",e);c||(c=pr("defs"),Ar(e,c)),Ar(c,l);var u=ZHn(l.id);Gn(n,i,u)};function XHn(e,n,r){var i=QHn(Gn(e,n));return Co("marker#"+i,r||document)}function QHn(e){return e.match(/url\(['"]?#([^'"]*)['"]?\)/)[1]}function ZHn(e){return"url(#"+e+")"}function JHn(e){return KHn.indexOf(e.nodeName)!==-1}const JI={__init__:["previewSupport"],previewSupport:["type",_S]},V4="complex-preview";class gtt{constructor(n,r,i){this._canvas=n,this._graphicsFactory=r,this._previewSupport=i,this._markers=[]}create(n){this.cleanUp();const{created:r=[],moved:i=[],removed:o=[],resized:a=[]}=n,s=this._canvas.getLayer(V4);r.filter(l=>!ezn(l)).forEach(l=>{let c;wo(l)?(c=this._graphicsFactory._createContainer("connection",pr("g")),this._graphicsFactory.drawConnection($1(c),l)):(c=this._graphicsFactory._createContainer("shape",pr("g")),this._graphicsFactory.drawShape($1(c),l),Wl(c,l.x,l.y)),this._previewSupport.addDragger(l,s,c)}),i.forEach(({element:l,delta:c})=>{this._previewSupport.addDragger(l,s,void 0,"djs-dragging"),this._canvas.addMarker(l,"djs-element-hidden"),this._markers.push([l,"djs-element-hidden"]);const u=this._previewSupport.addDragger(l,s);wo(l)?Wl(u,c.x,c.y):Wl(u,l.x+c.x,l.y+c.y)}),o.forEach(l=>{this._previewSupport.addDragger(l,s,void 0,"djs-dragging"),this._canvas.addMarker(l,"djs-element-hidden"),this._markers.push([l,"djs-element-hidden"])}),a.forEach(({shape:l,bounds:c})=>{this._canvas.addMarker(l,"djs-hidden"),this._markers.push([l,"djs-hidden"]),this._previewSupport.addDragger(l,s,void 0,"djs-dragging");const u=this._graphicsFactory._createContainer("shape",pr("g"));this._graphicsFactory.drawShape($1(u),l,{width:c.width,height:c.height}),Wl(u,c.x,c.y),this._previewSupport.addDragger(l,s,u)})}cleanUp(){Cz(this._canvas.getLayer(V4)),this._markers.forEach(([n,r])=>this._canvas.removeMarker(n,r)),this._markers=[]}show(){this._canvas.showLayer(V4)}hide(){this._canvas.hideLayer(V4)}}gtt.$inject=["canvas","graphicsFactory","previewSupport"];function ezn(e){return e.hidden}const tzn={__depends__:[JI],__init__:["complexPreview"],complexPreview:["type",gtt]};var Zhe=["top","bottom","left","right"],G4=10;function Jhe(e,n){vn.call(this,e),this.postExecuted(["connection.create","connection.layout","connection.updateWaypoints"],function(o){var a=o.context,s=a.connection,l=s.source,c=s.target,u=a.hints||{};u.createElementsBehavior!==!1&&(r(l),r(c))}),this.postExecuted(["label.create"],function(o){var a=o.context,s=a.shape,l=a.hints||{};l.createElementsBehavior!==!1&&r(s.labelTarget)}),this.postExecuted(["elements.create"],function(o){var a=o.context,s=a.elements,l=a.hints||{};l.createElementsBehavior!==!1&&s.forEach(function(c){r(c)})});function r(o){if(Nz(o)&&!wo(o)){var a=izn(o);a&&i(o,a)}}function i(o,a){var s=Mr(o),l=o.label,c=Mr(l);if(l.parent){var u=br(o),d;switch(a){case"top":d={x:s.x,y:u.top-G4-l.height/2};break;case"left":d={x:u.left-G4-l.width/2,y:s.y};break;case"bottom":d={x:s.x,y:u.bottom+G4+l.height/2};break;case"right":d={x:u.right+G4+l.width/2,y:s.y};break}var f=Xh(d,c);n.moveShape(l,f)}}}Zn(Jhe,vn);Jhe.$inject=["eventBus","modeling"];function nzn(e){var n=e.host,r=Mr(e),i=_c(r,n),o;i.indexOf("-")>=0?o=i.split("-"):o=[i];var a=Zhe.filter(function(s){return o.indexOf(s)===-1});return a}function rzn(e){var n=Mr(e),r=[].concat(e.incoming.map(function(i){return i.waypoints[i.waypoints.length-2]}),e.outgoing.map(function(i){return i.waypoints[1]})).map(function(i){return mtt(n,i)});return r}function izn(e){var n=Mr(e.label),r=Mr(e),i=mtt(r,n);if(ozn(i)){var o=rzn(e);if(e.host){var a=nzn(e);o=o.concat(a)}var s=Zhe.filter(function(l){return o.indexOf(l)===-1});if(s.indexOf(i)===-1)return s[0]}}function mtt(e,n){return _c(n,e,5)}function ozn(e){return Zhe.indexOf(e)!==-1}function ege(e){vn.call(this,e),this.preExecute("shape.append",function(n){var r=n.source,i=n.shape;n.position||(Fe(i,"bpmn:TextAnnotation")?n.position={x:r.x+r.width/2+75,y:r.y-50-i.height/2}:n.position={x:r.x+r.width+80+i.width/2,y:r.y+r.height/2})},!0)}Zn(ege,vn);ege.$inject=["eventBus"];function tge(e,n){e.invoke(vn,this),this.postExecute("shape.move",function(r){var i=r.newParent,o=r.shape,a=si(o.incoming.concat(o.outgoing),function(s){return Fe(s,"bpmn:Association")});ht(a,function(s){n.moveConnection(s,{x:0,y:0},i)})},!0)}Zn(tge,vn);tge.$inject=["injector","modeling"];var YAe=500;function zz(e,n){n.invoke(vn,this),this._bpmnReplace=e;var r=this;this.postExecuted("elements.create",YAe,function(i){var o=i.elements;o=o.filter(function(a){var s=a.host;return qAe(a,s)}),o.length===1&&o.map(function(a){return o.indexOf(a)}).forEach(function(a){var s=o[a];i.elements[a]=r._replaceShape(o[a],s)})},!0),this.preExecute("elements.move",YAe,function(i){var o=i.shapes,a=i.newHost;if(o.length===1){var s=o[0];qAe(s,a)&&(i.shapes=[r._replaceShape(s,a)])}},!0)}zz.$inject=["bpmnReplace","injector"];Zn(zz,vn);zz.prototype._replaceShape=function(e,n){var r=azn(e),i={type:"bpmn:BoundaryEvent",host:n};return r&&(i.eventDefinitionType=r.$type),this._bpmnReplace.replaceElement(e,i,{layoutConnection:!1})};function azn(e){var n=In(e),r=n.eventDefinitions;return r&&r[0]}function qAe(e,n){return!Ni(e)&&ii(e,["bpmn:IntermediateThrowEvent","bpmn:IntermediateCatchEvent"])&&!!n}function nge(e,n){vn.call(this,e);function r(i){return si(i.attachers,function(o){return Fe(o,"bpmn:BoundaryEvent")})}this.postExecute("connection.create",function(i){var o=i.context.source,a=i.context.target,s=r(a);Fe(o,"bpmn:EventBasedGateway")&&Fe(a,"bpmn:ReceiveTask")&&s.length>0&&n.removeElements(s)}),this.postExecute("connection.reconnect",function(i){var o=i.context.oldSource,a=i.context.newSource;Fe(o,"bpmn:Gateway")&&Fe(a,"bpmn:EventBasedGateway")&&ht(a.outgoing,function(s){var l=s.target,c=r(l);Fe(l,"bpmn:ReceiveTask")&&c.length>0&&n.removeElements(c)})})}nge.$inject=["eventBus","modeling"];Zn(nge,vn);function rge(e,n,r){vn.call(this,e),this.preExecute("shape.replace",l,!0),this.postExecuted("shape.replace",c,!0),this.preExecute("connection.create",o,!0),this.postExecuted("connection.delete",i,!0),this.postExecuted("connection.reconnect",a,!0),this.postExecuted("element.updateProperties",s,!0);function i(y){const _=y.source,S=y.target;kx(_)&&IM(S)&&d(S)}function o(y){const _=y.connection,S=y.source,b=y.target;kx(S)&&W4(b)&&(u(b),p(S,[_]))}function a(y){const _=y.newTarget,S=y.oldSource,b=y.oldTarget;if(b!==_){const E=S;IM(b)&&d(b),kx(E)&&W4(_)&&u(_)}}function s(y){const{element:_}=y;IM(_)?(f(_),h(_)):W4(_)&&g(_)}function l(y){const{newData:_,oldShape:S}=y;if(kx(y.oldShape)&&_.eventDefinitionType!=="bpmn:CompensateEventDefinition"||_.type!=="bpmn:BoundaryEvent"){const b=S.outgoing.find(({target:E})=>IM(E));b&&b.target&&(y._connectionTarget=b.target)}else if(!kx(y.oldShape)&&_.eventDefinitionType==="bpmn:CompensateEventDefinition"&&_.type==="bpmn:BoundaryEvent"){const b=S.outgoing.find(({target:E})=>W4(E));b&&b.target&&(y._connectionTarget=b.target),v(S)}}function c(y){const{_connectionTarget:_,newShape:S}=y;_&&n.connect(S,_)}function u(y){n.updateProperties(y,{isForCompensation:!0})}function d(y){n.updateProperties(y,{isForCompensation:void 0})}function f(y){for(const _ of y.incoming)r.canConnect(_.source,y)||n.removeConnection(_);for(const _ of y.outgoing)r.canConnect(y,_.target)||n.removeConnection(_)}function p(y,_){y.outgoing.filter(E=>Fe(E,"bpmn:Association")).filter(E=>IM(E.target)&&!_.includes(E)).forEach(E=>n.removeConnection(E))}function h(y){const _=y.attachers.slice();_.length&&n.removeElements(_)}function g(y){const _=y.incoming.filter(S=>kx(S.source));n.removeElements(_)}function v(y){const _=y.outgoing.filter(S=>Fe(S,"bpmn:SequenceFlow"));n.removeElements(_)}}Zn(rge,vn);rge.$inject=["eventBus","modeling","bpmnRules"];function IM(e){const n=In(e);return n&&n.get("isForCompensation")}function kx(e){return e&&Fe(e,"bpmn:BoundaryEvent")&&GI(e,"bpmn:CompensateEventDefinition")}function W4(e){return e&&Fe(e,"bpmn:Activity")&&!zc(e)}function ige(e){e.invoke(vn,this),this.preExecute("shape.create",1500,function(n){var r=n.context,i=r.parent,o=r.shape;Fe(i,"bpmn:Lane")&&!Fe(o,"bpmn:Lane")&&(r.parent=dR(i,"bpmn:Participant"))})}ige.$inject=["injector"];Zn(ige,vn);function oge(e,n){vn.call(this,e),this.preExecute("shape.create",function(r){var i=r.context,o=i.shape;if(Fe(o,"bpmn:DataObjectReference")&&o.type!=="label"){var a=n.create("bpmn:DataObject");o.businessObject.dataObjectRef=a}})}oge.$inject=["eventBus","bpmnFactory"];Zn(oge,vn);var Fae=20,Bae=20,vtt=30,Y4=2e3;function age(e,n,r){vn.call(this,n),n.on(["create.start","shape.move.start"],Y4,function(o){var a=o.context,s=a.shape,l=e.getRootElement();if(!(!Fe(s,"bpmn:Participant")||!Fe(l,"bpmn:Process")||!l.children.length)){var c=l.children.filter(function(f){return!Fe(f,"bpmn:Group")&&!Ni(f)&&!wo(f)});if(c.length){var u=sl(c),d=szn(s,u);Rt(s,d),a.createConstraints=lzn(s,u)}}}),n.on("create.start",Y4,function(o){var a=o.context,s=a.shape,l=e.getRootElement(),c=e.getGraphics(l);function u(d){d.element=l,d.gfx=c}Fe(s,"bpmn:Participant")&&Fe(l,"bpmn:Process")&&(n.on("element.hover",Y4,u),n.once("create.cleanup",function(){n.off("element.hover",u)}))});function i(){var o=e.getRootElement();return Fe(o,"bpmn:Collaboration")?o:r.makeCollaboration()}this.preExecute("elements.create",Y4,function(o){var a=o.elements,s=o.parent,l=czn(a),c;l&&Fe(s,"bpmn:Process")&&(o.parent=i(),c=o.hints=o.hints||{},c.participant=l,c.process=s,c.processRef=In(l).get("processRef"))},!0),this.preExecute("shape.create",function(o){var a=o.parent,s=o.shape;Fe(s,"bpmn:Participant")&&Fe(a,"bpmn:Process")&&(o.parent=i(),o.process=a,o.processRef=In(s).get("processRef"))},!0),this.execute("shape.create",function(o){var a=o.hints||{},s=o.process||a.process,l=o.shape,c=a.participant;s&&(!c||l===c)&&In(l).set("processRef",In(s))},!0),this.revert("shape.create",function(o){var a=o.hints||{},s=o.process||a.process,l=o.processRef||a.processRef,c=o.shape,u=a.participant;s&&(!u||c===u)&&In(c).set("processRef",l)},!0),this.postExecute("shape.create",function(o){var a=o.hints||{},s=o.process||o.hints.process,l=o.shape,c=a.participant;if(s){var u=s.children.slice();c?l===c&&r.moveElements(u,{x:0,y:0},c):r.moveElements(u,{x:0,y:0},l)}},!0)}age.$inject=["canvas","eventBus","modeling"];Zn(age,vn);function szn(e,n){n={width:n.width+Fae*2+vtt,height:n.height+Bae*2};var r=Math.max(e.width,n.width),i=Math.max(e.height,n.height);return{x:-r/2,y:-i/2,width:r,height:i}}function lzn(e,n){return n=br(n),{bottom:n.top+e.height/2-Bae,left:n.right-e.width/2+Fae,top:n.bottom-e.height/2+Bae,right:n.left+e.width/2-Fae-vtt}}function czn(e){return ki(e,function(n){return Fe(n,"bpmn:Participant")})}var KAe="__targetRef_placeholder";function sge(e,n){vn.call(this,e),this.executed(["connection.create","connection.delete","connection.move","connection.reconnect"],XAe(a)),this.reverted(["connection.create","connection.delete","connection.move","connection.reconnect"],XAe(a));function r(s,l,c){var u=s.get("dataInputAssociations");return ki(u,function(d){return d!==c&&d.targetRef===l})}function i(s,l){var c=s.get("properties"),u=ki(c,function(d){return d.name===KAe});return!u&&l&&(u=n.create("bpmn:Property",{name:KAe}),Ks(c,u)),u}function o(s,l){var c=i(s);c&&(r(s,c,l)||Cs(s.get("properties"),c))}function a(s){var l=s.context,c=l.connection,u=c.businessObject,d=c.target,f=d&&d.businessObject,p=l.newTarget,h=p&&p.businessObject,g=l.oldTarget||l.target,v=g&&g.businessObject,y=c.businessObject,_;v&&v!==f&&o(v,u),h&&h!==f&&o(h,u),f?(_=i(f,!0),y.targetRef=_):y.targetRef=null}}sge.$inject=["eventBus","bpmnFactory"];Zn(sge,vn);function XAe(e){return function(n){var r=n.context,i=r.connection;if(Fe(i,"bpmn:DataInputAssociation"))return e(n)}}function Vz(e){this._bpmnUpdater=e}Vz.$inject=["bpmnUpdater"];Vz.prototype.execute=function(e){var n=e.dataStoreBo,r=e.dataStoreDi,i=e.newSemanticParent,o=e.newDiParent;return e.oldSemanticParent=n.$parent,e.oldDiParent=r.$parent,this._bpmnUpdater.updateSemanticParent(n,i),this._bpmnUpdater.updateDiParent(r,o),[]};Vz.prototype.revert=function(e){var n=e.dataStoreBo,r=e.dataStoreDi,i=e.oldSemanticParent,o=e.oldDiParent;return this._bpmnUpdater.updateSemanticParent(n,i),this._bpmnUpdater.updateDiParent(r,o),[]};function lge(e,n,r,i){vn.call(this,i),n.registerHandler("dataStore.updateContainment",Vz);function o(){return r.filter(function(l){return Fe(l,"bpmn:Participant")&&In(l).processRef})[0]}function a(l){return l.children.filter(function(c){return Fe(c,"bpmn:DataStoreReference")&&!c.labelTarget})}function s(l,c){var u=l.businessObject||l;if(c=c||o(),c){var d=c.businessObject||c;n.execute("dataStore.updateContainment",{dataStoreBo:u,dataStoreDi:Ii(l),newSemanticParent:d.processRef||d,newDiParent:Ii(c)})}}this.preExecute("shape.create",function(l){var c=l.context,u=c.shape;Fe(u,"bpmn:DataStoreReference")&&u.type!=="label"&&(c.hints||(c.hints={}),c.hints.autoResize=!1)}),this.preExecute("elements.move",function(l){var c=l.context,u=c.shapes,d=u.filter(function(f){return Fe(f,"bpmn:DataStoreReference")});d.length&&(c.hints||(c.hints={}),c.hints.autoResize=u.filter(function(f){return!Fe(f,"bpmn:DataStoreReference")}))}),this.postExecute("shape.create",function(l){var c=l.context,u=c.shape,d=u.parent;Fe(u,"bpmn:DataStoreReference")&&u.type!=="label"&&Fe(d,"bpmn:Collaboration")&&s(u)}),this.postExecute("shape.move",function(l){var c=l.context,u=c.shape,d=c.oldParent,f=u.parent;if(!Fe(d,"bpmn:Collaboration")&&Fe(u,"bpmn:DataStoreReference")&&u.type!=="label"&&Fe(f,"bpmn:Collaboration")){var p=Fe(d,"bpmn:Participant")?d:dzn(d,"bpmn:Participant");s(u,p)}}),this.postExecute("shape.delete",function(l){var c=l.context,u=c.shape,d=e.getRootElement();ii(u,["bpmn:Participant","bpmn:SubProcess"])&&Fe(d,"bpmn:Collaboration")&&a(d).filter(function(f){return uzn(f,u)}).forEach(function(f){s(f)})}),this.postExecute("canvas.updateRoot",function(l){var c=l.context,u=c.oldRoot,d=c.newRoot,f=a(u);f.forEach(function(p){Fe(d,"bpmn:Process")&&s(p,d)})})}lge.$inject=["canvas","commandStack","elementRegistry","eventBus"];Zn(lge,vn);function uzn(e,n){for(var r=e.businessObject||e,i=n.businessObject||n;r.$parent;){if(r.$parent===i.processRef||i)return!0;r=r.$parent}return!1}function dzn(e,n){for(;e.parent;){if(Fe(e.parent,n))return e.parent;e=e.parent}}var rj=Math.max,ij=Math.min,fzn=20;function ytt(e,n){return{top:e.top-n.top,right:e.right-n.right,bottom:e.bottom-n.bottom,left:e.left-n.left}}function pzn(e,n,r){var i=r.x,o=r.y,a={x:e.x,y:e.y,width:e.width,height:e.height};return n.indexOf("n")!==-1?(a.y=e.y+o,a.height=e.height-o):n.indexOf("s")!==-1&&(a.height=e.height+o),n.indexOf("e")!==-1?a.width=e.width+i:n.indexOf("w")!==-1&&(a.x=e.x+i,a.width=e.width-i),a}function hzn(e,n){return{x:e.x+(n.left||0),y:e.y+(n.top||0),width:e.width-(n.left||0)+(n.right||0),height:e.height-(n.top||0)+(n.bottom||0)}}function q4(e,n,r){var i=n[e],o=r.min&&r.min[e],a=r.max&&r.max[e];return Nr(o)&&(i=(/top|left/.test(e)?ij:rj)(i,o)),Nr(a)&&(i=(/top|left/.test(e)?rj:ij)(i,a)),i}function gzn(e,n){if(!n)return e;var r=br(e);return Tz({top:q4("top",r,n),right:q4("right",r,n),bottom:q4("bottom",r,n),left:q4("left",r,n)})}function mzn(e,n,r,i){var o=br(n),a={top:/n/.test(e)?o.bottom-r.height:o.top,left:/w/.test(e)?o.right-r.width:o.left,bottom:/s/.test(e)?o.top+r.height:o.bottom,right:/e/.test(e)?o.left+r.width:o.right},s=i?br(i):a,l={top:ij(a.top,s.top),left:ij(a.left,s.left),bottom:rj(a.bottom,s.bottom),right:rj(a.right,s.right)};return Tz(l)}function NM(e,n){return typeof e<"u"?e:fzn}function vzn(e,n){var r,i,o,a;return typeof n=="object"?(r=NM(n.left),i=NM(n.right),o=NM(n.top),a=NM(n.bottom)):r=i=o=a=NM(n),{x:e.x-r,y:e.y-o,width:e.width+r+i,height:e.height+o+a}}function yzn(e){return!(e.waypoints||e.type==="label")}function _tt(e,n){var r;if(e.length===void 0?r=si(e.children,yzn):r=e,r.length)return vzn(sl(r),n)}var q_=Math.abs;function _zn(e,n){return ytt(br(n),br(e))}var bzn=["bpmn:Participant","bpmn:Process","bpmn:SubProcess"],ip=30;function Gz(e,n){return n=n||[],e.children.filter(function(r){Fe(r,"bpmn:Lane")&&(Gz(r,n),n.push(r))}),n}function bS(e){return e.children.filter(function(n){return Fe(n,"bpmn:Lane")})}function up(e){return dR(e,bzn)||e}function Szn(e,n){var r=up(e),i=Fe(r,"bpmn:Process")?[]:[r],o=Gz(r,i),a=br(e),s=br(n),l=_zn(e,n),c=[],u=cl(e);return o.forEach(function(d){if(d!==e){var f=u?0:l.top,p=u?l.right:0,h=u?0:l.bottom,g=u?l.left:0,v=br(d);l.top&&(q_(v.bottom-a.top)<10&&(h=s.top-v.bottom),q_(v.top-a.top)<5&&(f=s.top-v.top)),l.left&&(q_(v.right-a.left)<10&&(p=s.left-v.right),q_(v.left-a.left)<5&&(g=s.left-v.left)),l.bottom&&(q_(v.top-a.bottom)<10&&(f=s.bottom-v.top),q_(v.bottom-a.bottom)<5&&(h=s.bottom-v.bottom)),l.right&&(q_(v.left-a.right)<10&&(g=s.right-v.left),q_(v.right-a.right)<5&&(p=s.right-v.right)),(f||p||h||g)&&c.push({shape:d,newBounds:hzn(d,{top:f,right:p,bottom:h,left:g})})}}),c}var Ezn=500;function cge(e,n){vn.call(this,e);function r(i,o){var a=cl(i),s=bS(o),l=[],c=[],u=[],d=[];if(Ew(s,function(y){return a?y.y>i.y?c.push(y):l.push(y):y.x>i.x?d.push(y):u.push(y),y.children}),!!s.length){var f;a?c.length&&l.length?f=i.height/2:f=i.height:d.length&&u.length?f=i.width/2:f=i.width;var p,h,g,v;l.length&&(p=n.calculateAdjustments(l,"y",f,i.y-10),n.makeSpace(p.movingShapes,p.resizingShapes,{x:0,y:f},"s")),c.length&&(h=n.calculateAdjustments(c,"y",-f,i.y+i.height+10),n.makeSpace(h.movingShapes,h.resizingShapes,{x:0,y:-f},"n")),u.length&&(g=n.calculateAdjustments(u,"x",f,i.x-10),n.makeSpace(g.movingShapes,g.resizingShapes,{x:f,y:0},"e")),d.length&&(v=n.calculateAdjustments(d,"x",-f,i.x+i.width+10),n.makeSpace(v.movingShapes,v.resizingShapes,{x:-f,y:0},"w"))}}this.postExecuted("shape.delete",Ezn,function(i){var o=i.context,a=o.hints,s=o.shape,l=o.oldParent;Fe(s,"bpmn:Lane")&&(a&&a.nested||r(s,l))})}cge.$inject=["eventBus","spaceTool"];Zn(cge,vn);var QAe=500;function Wz(e,n){n.invoke(vn,this),this._bpmnReplace=e;var r=this;this.postExecuted("elements.create",QAe,function(i){var o=i.elements;o.filter(function(a){var s=a.host;return ZAe(a,s)}).map(function(a){return o.indexOf(a)}).forEach(function(a){i.elements[a]=r._replaceShape(o[a])})},!0),this.preExecute("elements.move",QAe,function(i){var o=i.shapes,a=i.newHost;o.forEach(function(s,l){var c=s.host;ZAe(s,wzn(o,c)?c:a)&&(o[l]=r._replaceShape(s))})},!0)}Wz.$inject=["bpmnReplace","injector"];Zn(Wz,vn);Wz.prototype._replaceShape=function(e){var n=Czn(e),r;return n?r={type:"bpmn:IntermediateCatchEvent",eventDefinitionType:n.$type}:r={type:"bpmn:IntermediateThrowEvent"},this._bpmnReplace.replaceElement(e,r,{layoutConnection:!1})};function Czn(e){var n=In(e),r=n.eventDefinitions;return r&&r[0]}function ZAe(e,n){return!Ni(e)&&Fe(e,"bpmn:BoundaryEvent")&&!n}function wzn(e,n){return e.indexOf(n)!==-1}function uge(e,n,r){vn.call(this,e);function i(o,a,s){var l=a.waypoints,c,u,d,f,p,h,g,v=o.outgoing.slice(),y=o.incoming.slice(),_;Nr(s.width)?_=Mr(s):_=s;var S=Aae(l,_);if(S){if(c=l.slice(0,S.index),u=l.slice(S.index+(S.bendpoint?1:0)),!c.length||!u.length)return;d=S.bendpoint?l[S.index]:_,(c.length===1||!JAe(o,c[c.length-1]))&&c.push(eDe(d)),(u.length===1||!JAe(o,u[0]))&&u.unshift(eDe(d))}f=a.source,p=a.target,n.canConnect(f,o,a)&&(r.reconnectEnd(a,o,c||_),h=a),n.canConnect(o,p,a)&&(h?g=r.connect(o,p,{type:a.type,waypoints:u}):(r.reconnectStart(a,o,u||_),g=a));var b=[].concat(h&&si(y,function(E){return E.source===h.source})||[],g&&si(v,function(E){return E.target===g.target})||[]);b.length&&r.removeElements(b)}this.preExecute("elements.move",function(o){var a=o.newParent,s=o.shapes,l=o.delta,c=s[0];if(!(!c||!a)){a&&a.waypoints&&(o.newParent=a=a.parent);var u=Mr(c),d={x:u.x+l.x,y:u.y+l.y},f=ki(a.children,function(p){var h=n.canInsert(s,p);return h&&Aae(p.waypoints,d)});f&&(o.targetFlow=f,o.position=d)}},!0),this.postExecuted("elements.move",function(o){var a=o.shapes,s=o.targetFlow,l=o.position;s&&i(a[0],s,l)},!0),this.preExecute("shape.create",function(o){var a=o.parent,s=o.shape;n.canInsert(s,a)&&(o.targetFlow=a,o.parent=a.parent)},!0),this.postExecuted("shape.create",function(o){var a=o.shape,s=o.targetFlow,l=o.position;s&&i(a,s,l)},!0)}Zn(uge,vn);uge.$inject=["eventBus","bpmnRules","modeling"];function JAe(e,n){var r=n.x,i=n.y;return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=e.y+e.height}function eDe(e){return Rt({},e)}function dge(e,n){vn.call(this,e),this.preExecuted("connection.create",function(r){var i=r.context,o=i.connection,a=i.source,s=i.target,l=i.hints;if(!(l&&l.createElementsBehavior===!1)&&Lx(o)){var c=[];Fe(a,"bpmn:EventBasedGateway")?c=s.incoming.filter(u=>u!==o&&Lx(u)):c=s.incoming.filter(u=>u!==o&&Lx(u)&&Fe(u.source,"bpmn:EventBasedGateway")),c.forEach(function(u){n.removeConnection(u)})}}),this.preExecuted("shape.replace",function(r){var i=r.context,o=i.newShape;if(Fe(o,"bpmn:EventBasedGateway")){var a=o.outgoing.filter(Lx).reduce(function(s,l){return s.includes(l.target)?s:s.concat(l.target)},[]);a.forEach(function(s){s.incoming.filter(Lx).forEach(function(l){const c=s.incoming.filter(Lx).filter(function(u){return u.source===o});(l.source!==o||c.length>1)&&n.removeConnection(l)})})}})}dge.$inject=["eventBus","modeling"];Zn(dge,vn);function Lx(e){return Fe(e,"bpmn:SequenceFlow")}var K4=1500,tDe=2e3;function btt(e,n,r){n.on(["create.hover","create.move","create.out","create.end","shape.move.hover","shape.move.move","shape.move.out","shape.move.end"],K4,function(i){var o=i.context,a=o.shape||i.shape,s=i.hover;Fe(s,"bpmn:Lane")&&!ii(a,["bpmn:Lane","bpmn:Participant"])&&(i.hover=up(s),i.hoverGfx=e.getGraphics(i.hover));var l=r.getRootElement();s!==l&&(a.labelTarget||ii(a,["bpmn:Group","bpmn:TextAnnotation"]))&&(i.hover=l,i.hoverGfx=e.getGraphics(i.hover))}),n.on(["connect.hover","connect.out","connect.end","connect.cleanup","global-connect.hover","global-connect.out","global-connect.end","global-connect.cleanup"],K4,function(i){var o=i.hover;Fe(o,"bpmn:Lane")&&(i.hover=up(o)||o,i.hoverGfx=e.getGraphics(i.hover))}),n.on(["bendpoint.move.hover"],K4,function(i){var o=i.context,a=i.hover,s=o.type;Fe(a,"bpmn:Lane")&&/reconnect/.test(s)&&(i.hover=up(a)||a,i.hoverGfx=e.getGraphics(i.hover))}),n.on(["connect.start"],K4,function(i){var o=i.context,a=o.start;Fe(a,"bpmn:Lane")&&(o.start=up(a)||a)}),n.on("shape.move.start",tDe,function(i){var o=i.shape;Fe(o,"bpmn:Lane")&&(i.shape=up(o)||o)}),n.on("spaceTool.move",tDe,function(i){var o=i.hover;o&&Fe(o,"bpmn:Lane")&&(i.hover=up(o))})}btt.$inject=["elementRegistry","eventBus","canvas"];function xzn(e){return e.create("bpmn:Category")}function Tzn(e){return e.create("bpmn:CategoryValue")}function Ozn(e,n,r){return Ks(n.get("categoryValue"),e),e.$parent=n,Ks(r.get("rootElements"),n),n.$parent=r,e}function Rzn(e){var n=e.$parent;return n&&(Cs(n.get("categoryValue"),e),e.$parent=null),e}function Izn(e){var n=e.$parent;return n&&(Cs(n.get("rootElements"),e),e.$parent=null),e}var nDe=770;function fge(e,n,r,i,o,a){o.invoke(vn,this);function s(){return r.filter(function(g){return Fe(g,"bpmn:Group")})}function l(g,v){return g.some(function(y){var _=In(y),S=_.categoryValueRef&&_.categoryValueRef.$parent;return S===v})}function c(g,v){return g.some(function(y){var _=In(y);return _.categoryValueRef===v})}function u(g,v,y){var _=s().filter(function(S){return S.businessObject!==y});v&&!l(_,v)&&Izn(v),g&&!c(_,g)&&Rzn(g)}function d(g,v){return Ozn(g,v,n.getDefinitions())}function f(g,v){var y=In(g),_=y.categoryValueRef;_||(_=y.categoryValueRef=v.categoryValue=v.categoryValue||Tzn(e));var S=_.$parent;S||(S=_.$parent=v.category=v.category||xzn(e)),d(_,S,n.getDefinitions())}function p(g,v){var y=v.category,_=v.categoryValue,S=In(g);_?(S.categoryValueRef=null,u(_,y,S)):u(null,S.categoryValueRef.$parent,S)}this.execute("label.create",function(g){var v=g.context,y=v.labelTarget;Fe(y,"bpmn:Group")&&f(y,v)}),this.revert("label.create",function(g){var v=g.context,y=v.labelTarget;Fe(y,"bpmn:Group")&&p(y,v)}),this.execute("shape.delete",function(g){var v=g.context,y=v.shape,_=In(y);if(!(!Fe(y,"bpmn:Group")||y.labelTarget)){var S=v.categoryValue=_.categoryValueRef,b;S&&(b=v.category=S.$parent,u(S,b,_),_.categoryValueRef=null)}}),this.reverted("shape.delete",function(g){var v=g.context,y=v.shape;if(!(!Fe(y,"bpmn:Group")||y.labelTarget)){var _=v.category,S=v.categoryValue,b=In(y);S&&(b.categoryValueRef=S,d(S,_))}}),this.execute("shape.create",function(g){var v=g.context,y=v.shape;!Fe(y,"bpmn:Group")||y.labelTarget||In(y).categoryValueRef&&f(y,v)}),this.reverted("shape.create",function(g){var v=g.context,y=v.shape;!Fe(y,"bpmn:Group")||y.labelTarget||In(y).categoryValueRef&&p(y,v)});function h(g,v){var y=e.create(g.$type);return a.copyElement(g,y,null,v)}i.on("copyPaste.copyElement",nDe,function(g){var v=g.descriptor,y=g.element;if(!(!Fe(y,"bpmn:Group")||y.labelTarget)){var _=In(y);if(_.categoryValueRef){var S=_.categoryValueRef;v.categoryValue=h(S,!0),S.$parent&&(v.category=h(S.$parent,!0))}}}),i.on("copyPaste.pasteElement",nDe,function(g){var v=g.descriptor,y=v.businessObject,_=v.categoryValue,S=v.category;_&&(_=y.categoryValueRef=h(_)),S&&(_.$parent=h(S)),delete v.category,delete v.categoryValue})}fge.$inject=["bpmnFactory","bpmnjs","elementRegistry","eventBus","injector","moddleCopy"];Zn(fge,vn);function jae(e,n,r,i){var o,a,s,l,c;return o=(i.y-r.y)*(n.x-e.x)-(i.x-r.x)*(n.y-e.y),o==0?null:(a=e.y-r.y,s=e.x-r.x,c=(i.x-r.x)*a-(i.y-r.y)*s,l=c/o,{x:Math.round(e.x+l*(n.x-e.x)),y:Math.round(e.y+l*(n.y-e.y))})}function Stt(e){function n(i,o,a){var s={x:a.x,y:a.y-50},l={x:a.x-50,y:a.y},c=jae(i,o,a,s),u=jae(i,o,a,l),d;c&&u?rDe(c,a)>rDe(u,a)?d=u:d=c:d=c||u,i.original=d}function r(i){var o=i.waypoints;n(o[0],o[1],Mr(i.source)),n(o[o.length-1],o[o.length-2],Mr(i.target))}e.on("bpmnElement.added",function(i){var o=i.element;o.waypoints&&r(o)})}Stt.$inject=["eventBus"];function rDe(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function pge(e){vn.call(this,e);var n=["bpmn:Participant","bpmn:Lane"];this.executed(["shape.move","shape.create","shape.resize"],function(r){var i=r.context.shape,o=In(i),a=Ii(i);if(ii(o,n)){var s=a.get("isHorizontal");s===void 0&&(s=!0),a.set("isHorizontal",s)}})}pge.$inject=["eventBus"];Zn(pge,vn);var Ett=Math.sqrt,Ctt=Math.min,Nzn=Math.max,iDe=Math.abs;function oDe(e){return Math.pow(e,2)}function MM(e,n){return Ett(oDe(e.x-n.x)+oDe(e.y-n.y))}function Mzn(e,n){var r=0,i,o,a,s,l,c,u,d,f,p,h;for(r=0;r<n.length-1;r++){if(i=n[r],o=n[r+1],sDe(i,o)?u=[i]:(a=MM(e,i),s=MM(e,o),c=Ctt(a,s),u=Pzn(i,o,e,c)),u.length<1)throw new Error("expected between [1, 2] circle -> line intersections");u.length===1&&(d={type:"bendpoint",position:u[0],segmentIndex:r,bendpointIndex:sDe(i,u[0])?r:r+1}),u.length===2&&(l=Dzn(u[0],u[1]),d={type:"segment",position:l,segmentIndex:r,relativeLocation:MM(i,l)/MM(i,o)}),f=MM(d.position,e),(!h||p>f)&&(h=d,p=f)}return h}function Pzn(e,n,r,i){var o=n.x-e.x,a=n.y-e.y,s=r.x-e.x,l=r.y-e.y,c=o*o+a*a,u=o*s+a*l,d=s*s+l*l-i*i,f=u/c,p=d/c,h=f*f-p;if(h<0&&h>-1e-6&&(h=0),h<0)return[];var g=Ett(h),v=-f+g,y=-f-g,_={x:e.x-o*v,y:e.y-a*v};if(h===0)return[_];var S={x:e.x-o*y,y:e.y-a*y};return[_,S].filter(function(b){return Azn(b,e,n)})}function Azn(e,n,r){return aDe(e.x,n.x,r.x)&&aDe(e.y,n.y,r.y)}function aDe(e,n,r){return e>=Ctt(n,r)-oj&&e<=Nzn(n,r)+oj}function Dzn(e,n){return{x:(e.x+n.x)/2,y:(e.y+n.y)/2}}var oj=.1;function sDe(e,n){return iDe(e.x-n.x)<=oj&&iDe(e.y-n.y)<=oj}function kzn(e,n,r,i){var o=r.segmentIndex,a=n.length-e.length;if(i.segmentMove){var s=i.segmentMove.segmentStartIndex,l=i.segmentMove.newSegmentStartIndex;return o===s?l:o>=l?o+a<l?l:o+a:o}if(i.bendpointMove){var c=i.bendpointMove.insert,u=i.bendpointMove.bendpointIndex,d;if(a===0)return o;if(o>=u&&(d=c?o+1:o-1),o<u&&(d=o,c&&r.type!=="bendpoint"&&u-1===o)){var f=xtt(n,u);f<r.relativeLocation&&d++}return d}return a===0?o:i.connectionStart&&o===0?0:i.connectionEnd&&o===e.length-2?n.length-2:Math.floor((n.length-2)/2)}function wtt(e,n,r,i){var o=0,a=0,s={point:e,delta:{x:0,y:0}},l=Mzn(e,r),c=l.segmentIndex,u=kzn(r,n,l,i);if(u<0||u>n.length-2||u===null)return s;var d=lDe(r,c),f=lDe(n,u),p=l.position,h=$zn(d,p),g=Lzn(d,f);if(l.type==="bendpoint"){var v=n.length-r.length,y=l.bendpointIndex,_=r[y];if(n.indexOf(_)!==-1)return s;if(v===0){var S=n[y];return o=S.x-l.position.x,a=S.y-l.position.y,{delta:{x:o,y:a},point:{x:e.x+o,y:e.y+a}}}v<0&&y!==0&&y<r.length-1&&(h=xtt(r,y))}var b={x:(f[1].x-f[0].x)*h+f[0].x,y:(f[1].y-f[0].y)*h+f[0].y},E=THn({x:e.x-p.x,y:e.y-p.y},g);return o=b.x+E.x-e.x,a=b.y+E.y-e.y,{point:yy(b),delta:yy({x:o,y:a})}}function xtt(e,n){var r=tj(e[n-1],e[n]),i=tj(e[n],e[n+1]),o=r/(r+i);return o}function Lzn(e,n){var r=PAe(e),i=PAe(n);return i-r}function lDe(e,n){return[e[n],e[n+1]]}function $zn(e,n){var r=tj(e[0],e[1]),i=tj(e[0],n);return r===0?0:i/r}function Fzn(e,n,r,i){var o=Mr(e);return wtt(o,n,r,i).delta}function NL(e,n,r){var i=gP(n),o=gP(r),a=Xh(e,i),s={x:a.x*(r.width/n.width),y:a.y*(r.height/n.height)};return yy({x:o.x+s.x,y:o.y+s.y})}function cDe(e,n,r){var i=gP(e),o=gP(n),a=gP(r),s=Xh(e,i),l=Xh(i,o),c=Bzn(i,n,r);if(c)return c;var u={x:l.x*(r.width/n.width),y:l.y*(r.height/n.height)},d={x:a.x+u.x,y:a.y+u.y};return yy({x:d.x+s.x-e.x,y:d.y+s.y-e.y})}function Bzn(e,n,r){var i=br(n),o=br(r);if(jzn(i,o))return null;var a=_c(n,e),s,l,c;if(a==="top")s={x:0,y:o.bottom-i.bottom};else if(a==="bottom")s={x:0,y:o.top-i.top};else if(a==="right")s={x:o.left-i.left,y:0};else if(a==="left")s={x:o.right-i.right,y:0};else return null;return l={x:e.x+s.x,y:e.y+s.y},c=_c(r,l),c!==a?null:s}function jzn(e,n){return Uzn(e,n)||Hzn(e,n)}function Uzn(e,n){return e.right!==n.right&&e.left!==n.left}function Hzn(e,n){return e.top!==n.top&&e.bottom!==n.bottom}var uDe="name",dDe="text";function hge(e,n,r,i){vn.call(this,e),this.postExecute("element.updateProperties",o),this.postExecute("element.updateModdleProperties",s=>{In(s.context.element)===s.context.moddleElement&&o(s)});function o(s){var l=s.context,c=l.element,u=l.properties;if(uDe in u&&n.updateLabel(c,u[uDe]),dDe in u&&Fe(c,"bpmn:TextAnnotation")){var d=i.getTextAnnotationBounds({x:c.x,y:c.y,width:c.width,height:c.height},u[dDe]||"");n.updateLabel(c,u.text,d)}}this.postExecute(["shape.create","connection.create"],function(s){var l=s.context,c=l.hints||{};if(c.createElementsBehavior!==!1){var u=l.shape||l.connection;Ni(u)||!CC(u)||lg(u)&&n.updateLabel(u,lg(u))}}),this.postExecute("shape.delete",function(s){var l=s.context,c=l.labelTarget,u=l.hints||{};c&&u.unsetLabel!==!1&&n.updateLabel(c,null,null,{removeShape:!1})});function a(s){var l=s.context,c=l.connection,u=c.label,d=Rt({},l.hints),f=l.newWaypoints||c.waypoints,p=l.oldWaypoints;return typeof d.startChanged>"u"&&(d.startChanged=!!d.connectionStart),typeof d.endChanged>"u"&&(d.endChanged=!!d.connectionEnd),Fzn(u,f,p,d)}this.postExecute(["connection.layout","connection.updateWaypoints"],function(s){var l=s.context,c=l.hints||{};if(c.labelBehavior!==!1){var u=l.connection,d=u.label,f;!d||!d.parent||(f=a(s),n.moveShape(d,f))}}),this.postExecute(["shape.replace"],function(s){var l=s.context,c=l.newShape,u=l.oldShape,d=In(c);d&&CC(d)&&u.label&&c.label&&(c.label.x=u.label.x,c.label.y=u.label.y)}),this.postExecute("shape.resize",function(s){var l=s.context,c=l.shape,u=l.newBounds,d=l.oldBounds;if(Nz(c)){var f=c.label,p=Mr(f),h=Gzn(d),g=Vzn(p,h),v=zzn(g,d,u);n.moveShape(f,v)}})}Zn(hge,vn);hge.$inject=["eventBus","modeling","bpmnFactory","textRenderer"];function zzn(e,n,r){var i=NL(e,n,r);return yy(Xh(i,e))}function Vzn(e,n){if(n.length){var r=Wzn(e,n);return qhe(e,r)}}function Gzn(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 Wzn(e,n){var r=n.map(function(o){return{line:o,distance:ttt(e,o)}}),i=Fm(r,"distance");return i[0].line}function Yzn(e,n,r,i){return wtt(e,n,r,i).point}function gge(e,n){vn.call(this,e);function r(i,o){var a=i.context,s=a.connection,l=Rt({},a.hints),c=a.newWaypoints||s.waypoints,u=a.oldWaypoints;return typeof l.startChanged>"u"&&(l.startChanged=!!l.connectionStart),typeof l.endChanged>"u"&&(l.endChanged=!!l.connectionEnd),Yzn(o,c,u,l)}this.postExecute(["connection.layout","connection.updateWaypoints"],function(i){var o=i.context,a=o.connection,s=a.outgoing,l=a.incoming;l.forEach(function(c){var u=c.waypoints[c.waypoints.length-1],d=r(i,u),f=[].concat(c.waypoints.slice(0,-1),[d]);n.updateWaypoints(c,f)}),s.forEach(function(c){var u=c.waypoints[0],d=r(i,u),f=[].concat([d],c.waypoints.slice(1));n.updateWaypoints(c,f)})}),this.postExecute(["connection.move"],function(i){var o=i.context,a=o.connection,s=a.outgoing,l=a.incoming,c=o.delta;l.forEach(function(u){var d=u.waypoints[u.waypoints.length-1],f={x:d.x+c.x,y:d.y+c.y},p=[].concat(u.waypoints.slice(0,-1),[f]);n.updateWaypoints(u,p)}),s.forEach(function(u){var d=u.waypoints[0],f={x:d.x+c.x,y:d.y+c.y},p=[].concat([f],u.waypoints.slice(1));n.updateWaypoints(u,p)})})}Zn(gge,vn);gge.$inject=["eventBus","modeling"];function Yz(e,n,r){var i=Kz(e),o=Ott(i,n),a=i[0];return o.length?o[o.length-1]:NL(a.original||a,r,n)}function qz(e,n,r){var i=Kz(e),o=Ott(i,n),a=i[i.length-1];return o.length?o[0]:NL(a.original||a,r,n)}function mge(e,n,r){var i=Kz(e),o=Ttt(n,r),a=i[0];return NL(a.original||a,o,n)}function vge(e,n,r){var i=Kz(e),o=Ttt(n,r),a=i[i.length-1];return NL(a.original||a,o,n)}function Ttt(e,n){return{x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}function Kz(e){var n=e.waypoints;if(!n.length)throw new Error("connection#"+e.id+": no waypoints");return n}function Ott(e,n){var r=vc(e,Kzn);return si(r,function(i){return qzn(i,n)})}function qzn(e,n){return _c(n,e,1)==="intersect"}function Kzn(e){return e.original||e}function yge(e,n){vn.call(this,e),this.postExecute("shape.replace",function(r){var i=r.oldShape,o=r.newShape;if(Xzn(i,o)){var a=Qzn(i);a.incoming.forEach(function(s){var l=qz(s,o,i);n.reconnectEnd(s,o,l)}),a.outgoing.forEach(function(s){var l=Yz(s,o,i);n.reconnectStart(s,o,l)})}},!0)}yge.$inject=["eventBus","modeling"];Zn(yge,vn);function Xzn(e,n){return Fe(e,"bpmn:Participant")&&pi(e)&&Fe(n,"bpmn:Participant")&&!pi(n)}function Qzn(e){var n=_L([e],!1),r=[],i=[];return n.forEach(function(o){o!==e&&(o.incoming.forEach(function(a){Fe(a,"bpmn:MessageFlow")&&r.push(a)}),o.outgoing.forEach(function(a){Fe(a,"bpmn:MessageFlow")&&i.push(a)}))},[]),{incoming:r,outgoing:i}}const Zzn=["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:EscalationEventDefinition","bpmn:ConditionalEventDefinition","bpmn:SignalEventDefinition"];function Rtt(e){const n=In(e);if(!Fe(n,"bpmn:BoundaryEvent")&&!(Fe(n,"bpmn:StartEvent")&&zc(n.$parent)))return!1;const r=n.get("eventDefinitions");return!r||!r.length?!1:Zzn.some(i=>Fe(r[0],i))}function Itt(e){return Fe(e,"bpmn:BoundaryEvent")?"cancelActivity":"isInterrupting"}function _ge(e,n){e.invoke(vn,this),this.postExecuted("shape.replace",function(r){const i=r.context.oldShape,o=r.context.newShape,a=r.context.hints;if(!Rtt(o))return;const s=Itt(o);if(a.targetElement&&a.targetElement[s]!==void 0)return;const c=In(i).get(s),u=In(o).get(s);c!==u&&n.updateProperties(o,{[s]:c})})}_ge.$inject=["injector","modeling"];Zn(_ge,vn);function bge(e,n){vn.call(this,e),this.preExecute("shape.resize",function(r){var i=r.shape,o=Ii(i),a=o&&o.get("label"),s=a&&a.get("bounds");s&&n.updateModdleProperties(i,a,{bounds:void 0})},!0)}Zn(bge,vn);bge.$inject=["eventBus","modeling"];function Sge(e,n,r){vn.call(this,e),this.preExecute("shape.delete",function(i){var o=i.context.shape;if(!(o.incoming.length!==1||o.outgoing.length!==1)){var a=o.incoming[0],s=o.outgoing[0];if(!(!Fe(a,"bpmn:SequenceFlow")||!Fe(s,"bpmn:SequenceFlow"))&&n.canConnect(a.source,s.target,a)){var l=Jzn(a.waypoints,s.waypoints);r.reconnectEnd(a,s.target,l)}}})}Zn(Sge,vn);Sge.$inject=["eventBus","bpmnRules","modeling"];function $x(e){return e.original||e}function Jzn(e,n){var r=jae($x(e[e.length-2]),$x(e[e.length-1]),$x(n[1]),$x(n[0]));return r?[].concat(e.slice(0,e.length-1),[r],n.slice(1)):[$x(e[0]),$x(n[n.length-1])]}function Ege(e,n){vn.call(this,e),this.preExecute("shape.delete",function(r){var i=r.shape,o=i.parent;Fe(i,"bpmn:Participant")&&(r.collaborationRoot=o)},!0),this.postExecute("shape.delete",function(r){var i=r.collaborationRoot;if(i&&!i.businessObject.participants.length){var o=n.makeProcess(),a=i.children.slice();n.moveElements(a,{x:0,y:0},o)}},!0)}Ege.$inject=["eventBus","modeling"];Zn(Ege,vn);function Cge(e,n,r,i){vn.call(this,e);var o=i.get("dragging",!1);function a(c){var u=c.source,d=c.target,f=c.parent;if(f){var p,h;Fe(c,"bpmn:SequenceFlow")&&(r.canConnectSequenceFlow(u,d)||(h=!0),r.canConnectMessageFlow(u,d)&&(p="bpmn:MessageFlow")),Fe(c,"bpmn:MessageFlow")&&(r.canConnectMessageFlow(u,d)||(h=!0),r.canConnectSequenceFlow(u,d)&&(p="bpmn:SequenceFlow")),h&&n.removeConnection(c),p&&n.connect(u,d,{type:p,waypoints:c.waypoints.slice()})}}function s(c){var u=c.context,d=u.connection,f=u.newSource||d.source,p=u.newTarget||d.target,h,g;h=r.canConnect(f,p),!(!h||h.type===d.type)&&(g=n.connect(f,p,{type:h.type,associationDirection:h.associationDirection,waypoints:d.waypoints.slice()}),d.parent&&n.removeConnection(d),u.connection=g,o&&l(d,g))}function l(c,u){var d=o.context(),f=d&&d.payload.previousSelection,p;!f||!f.length||(p=f.indexOf(c),p!==-1&&f.splice(p,1,u))}this.postExecuted("elements.move",function(c){var u=c.closure,d=u.allConnections;ht(d,a)},!0),this.preExecute("connection.reconnect",s),this.postExecuted("element.updateProperties",function(c){var u=c.context,d=u.properties,f=u.element,p=f.businessObject,h;d.default&&(h=ki(f.outgoing,Kh({id:f.businessObject.default.id})),h&&n.updateProperties(h,{conditionExpression:void 0})),d.conditionExpression&&p.sourceRef.default===p&&n.updateProperties(f.source,{default:void 0})})}Zn(Cge,vn);Cge.$inject=["eventBus","modeling","bpmnRules","injector"];function Xz(e,n,r,i,o,a){i.invoke(vn,this),this._bpmnReplace=e,this._elementRegistry=r,this._selection=a,this.postExecuted(["elements.create"],500,function(s){var l=s.context,c=l.parent,u=l.elements,d=yd(u,function(f,p){var h=n.canReplace([p],p.host||p.parent||c);return h?f.concat(h.replacements):f},[]);d.length&&this._replaceElements(u,d)},this),this.postExecuted(["elements.move"],500,function(s){var l=s.context,c=l.newParent,u=l.newHost,d=[];ht(l.closure.topLevel,function(p){zc(p)?d=d.concat(p.children):d=d.concat(p)}),d.length===1&&u&&(c=u);var f=n.canReplace(d,c);f&&this._replaceElements(d,f.replacements,u)},this),this.postExecute(["shape.replace"],1500,function(s){var l=s.context,c=l.oldShape,u=l.newShape,d=c.attachers,f;d&&d.length&&(f=n.canReplace(d,u),this._replaceElements(d,f.replacements))},this),this.postExecuted(["shape.replace"],1500,function(s){var l=s.context,c=l.oldShape,u=l.newShape;o.unclaimId(c.businessObject.id,c.businessObject),o.updateProperties(u,{id:c.id})})}Zn(Xz,vn);Xz.prototype._replaceElements=function(e,n){var r=this._elementRegistry,i=this._bpmnReplace,o=this._selection;ht(n,function(a){var s={type:a.newElementType},l=r.get(a.oldElementId),c=e.indexOf(l);e[c]=i.replaceElement(l,s,{select:!1})}),n&&o.select(e)};Xz.$inject=["bpmnReplace","bpmnRules","elementRegistry","injector","modeling","selection"];var eVn=1500,tVn={width:140,height:120},wge={width:300,height:60},xge={width:60,height:300},Y6={width:300,height:150},q6={width:150,height:300},Ntt={width:140,height:120},Mtt={width:50,height:30};function Ptt(e){e.on("resize.start",eVn,function(n){var r=n.context,i=r.shape,o=r.direction,a=r.balanced;(Fe(i,"bpmn:Lane")||Fe(i,"bpmn:Participant"))&&(r.resizeConstraints=aVn(i,o,a)),Fe(i,"bpmn:SubProcess")&&pi(i)&&(r.minDimensions=Ntt),Fe(i,"bpmn:TextAnnotation")&&(r.minDimensions=Mtt)})}Ptt.$inject=["eventBus"];var K_=Math.abs,nVn=Math.min,rVn=Math.max;function Att(e,n,r,i){var o=e[n];e[n]=o===void 0?r:i(r,o)}function Fx(e,n,r){return Att(e,n,r,nVn)}function Bx(e,n,r){return Att(e,n,r,rVn)}var iVn={top:20,left:50,right:20,bottom:20},oVn={top:50,left:20,right:20,bottom:20};function aVn(e,n,r){var i=up(e),o=!0,a=!0,s=Gz(i,[i]),l=br(e),c={},u={},d=cl(e),f=d?wge:xge;/n/.test(n)?u.top=l.bottom-f.height:/e/.test(n)?u.right=l.left+f.width:/s/.test(n)?u.bottom=l.top+f.height:/w/.test(n)&&(u.left=l.right-f.width),s.forEach(function(g){var v=br(g);d?(v.top<l.top-10&&(o=!1),v.bottom>l.bottom+10&&(a=!1)):(v.left<l.left-10&&(o=!1),v.right>l.right+10&&(a=!1)),/n/.test(n)&&(r&&K_(l.top-v.bottom)<10&&Bx(c,"top",v.top+f.height),K_(l.top-v.top)<5&&Fx(u,"top",v.bottom-f.height)),/e/.test(n)&&(r&&K_(l.right-v.left)<10&&Fx(c,"right",v.right-f.width),K_(l.right-v.right)<5&&Bx(u,"right",v.left+f.width)),/s/.test(n)&&(r&&K_(l.bottom-v.top)<10&&Fx(c,"bottom",v.bottom-f.height),K_(l.bottom-v.bottom)<5&&Bx(u,"bottom",v.top+f.height)),/w/.test(n)&&(r&&K_(l.left-v.right)<10&&Bx(c,"left",v.left+f.width),K_(l.left-v.left)<5&&Fx(u,"left",v.right-f.width))});var p=i.children.filter(function(g){return!g.hidden&&!g.waypoints&&(Fe(g,"bpmn:FlowElement")||Fe(g,"bpmn:Artifact"))}),h=d?iVn:oVn;return p.forEach(function(g){var v=br(g);/n/.test(n)&&(!d||o)&&Fx(u,"top",v.top-h.top),/e/.test(n)&&(d||a)&&Bx(u,"right",v.right+h.right),/s/.test(n)&&(!d||a)&&Bx(u,"bottom",v.bottom+h.bottom),/w/.test(n)&&(d||o)&&Fx(u,"left",v.left-h.left)}),{min:u,max:c}}var fDe=1001;function Dtt(e,n){e.on("resize.start",fDe+500,function(r){var i=r.context,o=i.shape;(Fe(o,"bpmn:Lane")||Fe(o,"bpmn:Participant"))&&(i.balanced=!rD(r))}),e.on("resize.end",fDe,function(r){var i=r.context,o=i.shape,a=i.canExecute,s=i.newBounds;if(Fe(o,"bpmn:Lane")||Fe(o,"bpmn:Participant"))return a&&(s=vJe(s),n.resizeLane(o,s,i.balanced)),!1})}Dtt.$inject=["eventBus","modeling"];var sVn=500;function Tge(e,n,r,i,o){r.invoke(vn,this);function a(d){return ii(d,["bpmn:ReceiveTask","bpmn:SendTask"])||lVn(d,["bpmn:ErrorEventDefinition","bpmn:EscalationEventDefinition","bpmn:MessageEventDefinition","bpmn:SignalEventDefinition"])}function s(d){var f=e.getDefinitions(),p=f.get("rootElements");return!!ki(p,Kh({id:d.id}))}function l(d){if(Fe(d,"bpmn:ErrorEventDefinition"))return"errorRef";if(Fe(d,"bpmn:EscalationEventDefinition"))return"escalationRef";if(Fe(d,"bpmn:MessageEventDefinition"))return"messageRef";if(Fe(d,"bpmn:SignalEventDefinition"))return"signalRef"}function c(d){if(ii(d,["bpmn:ReceiveTask","bpmn:SendTask"]))return d.get("messageRef");var f=d.get("eventDefinitions"),p=f[0];return p.get(l(p))}function u(d,f){if(ii(d,["bpmn:ReceiveTask","bpmn:SendTask"]))return d.set("messageRef",f);var p=d.get("eventDefinitions"),h=p[0];return h.set(l(h),f)}this.executed(["shape.create","element.updateProperties","element.updateModdleProperties"],function(d){var f=d.shape||d.element;if(a(f)){var p=In(f),h=c(p),g;h&&!s(h)&&(g=e.getDefinitions().get("rootElements"),Ks(g,h),d.addedRootElement=h)}},!0),this.reverted(["shape.create","element.updateProperties","element.updateModdleProperties"],function(d){var f=d.addedRootElement;if(f){var p=e.getDefinitions().get("rootElements");Cs(p,f)}},!0),n.on("copyPaste.copyElement",function(d){var f=d.descriptor,p=d.element;if(!(p.labelTarget||!a(p))){var h=In(p),g=c(h);g&&(f.referencedRootElement=g)}}),n.on("copyPaste.pasteElement",sVn,function(d){var f=d.descriptor,p=f.businessObject,h=f.referencedRootElement;h&&(s(h)||(h=i.copyElement(h,o.create(h.$type))),u(p,h),delete f.referencedRootElement)})}Tge.$inject=["bpmnjs","eventBus","injector","moddleCopy","bpmnFactory"];Zn(Tge,vn);function lVn(e,n){return zr(n)||(n=[n]),fS(n,function(r){return GI(e,r)})}var ktt=Math.max;function Ltt(e){e.on("spaceTool.getMinDimensions",function(n){var r=n.shapes,i=n.axis,o=n.start,a={};return ht(r,function(s){var l=s.id;Fe(s,"bpmn:Participant")&&(a[l]=uVn(s,i,o)),Fe(s,"bpmn:Lane")&&(a[l]=cl(s)?wge:xge),Fe(s,"bpmn:SubProcess")&&pi(s)&&(a[l]=Ntt),Fe(s,"bpmn:TextAnnotation")&&(a[l]=Mtt),Fe(s,"bpmn:Group")&&(a[l]=tVn)}),a})}Ltt.$inject=["eventBus"];function cVn(e){return e==="x"}function uVn(e,n,r){var i=cl(e);if(!pVn(e))return i?Y6:q6;var o=cVn(n),a={};return o?i?a=Y6:a={width:fVn(e,r,o),height:q6.height}:i?a={width:Y6.width,height:dVn(e,r,o)}:a=q6,a}function dVn(e,n,r){var i;return i=hVn(e,n,r),ktt(Y6.height,i)}function fVn(e,n,r){var i;return i=gVn(e,n,r),ktt(q6.width,i)}function pVn(e){return!!bS(e).length}function hVn(e,n,r){var i=bS(e),o;return o=Oge(i,n,r),e.height-o.height+wge.height}function gVn(e,n,r){var i=bS(e),o;return o=Oge(i,n,r),e.width-o.width+xge.width}function Oge(e,n,r){var i,o,a;for(i=0;i<e.length;i++)if(o=e[i],!r&&n>=o.y&&n<=o.y+o.height||r&&n>=o.x&&n<=o.x+o.width)return a=bS(o),a.length?Oge(a,n,r):o}var pDe=400,mVn=600,hDe={x:180,y:160};function SS(e,n,r,i,o,a,s){vn.call(this,n),this._canvas=e,this._eventBus=n,this._modeling=r,this._elementFactory=i,this._bpmnFactory=o,this._bpmnjs=a,this._elementRegistry=s;var l=this;function c(f){return Fe(f,"bpmn:SubProcess")&&!pi(f)}function u(f){var p=f.shape,h=f.newRootElement,g=In(p);h=l._addDiagram(h||g),f.newRootElement=e.addRootElement(h)}function d(f){var p=f.shape,h=In(p);l._removeDiagram(h);var g=f.newRootElement=s.get(Yv(h));e.removeRootElement(g)}this.executed("shape.create",function(f){var p=f.shape;c(p)&&u(f)},!0),this.postExecuted("shape.create",function(f){var p=f.shape,h=f.newRootElement;!h||!p.children||(l._showRecursively(p.children),l._moveChildrenToShape(p,h))},!0),this.reverted("shape.create",function(f){var p=f.shape;c(p)&&d(f)},!0),this.preExecuted("shape.delete",function(f){var p=f.shape;if(c(p)){var h=s.get(Yv(p));h&&r.removeElements(h.children.slice())}},!0),this.executed("shape.delete",function(f){var p=f.shape;c(p)&&d(f)},!0),this.reverted("shape.delete",function(f){var p=f.shape;c(p)&&u(f)},!0),this.preExecuted("shape.replace",function(f){var p=f.oldShape,h=f.newShape;!c(p)||!c(h)||(f.oldRoot=e.removeRootElement(Yv(p)))},!0),this.postExecuted("shape.replace",function(f){var p=f.newShape,h=f.oldRoot,g=e.findRoot(Yv(p));if(!(!h||!g)){var v=h.children;r.moveElements(v,{x:0,y:0},g)}},!0),this.executed("element.updateProperties",function(f){var p=f.element;if(Fe(p,"bpmn:SubProcess")){var h=f.properties,g=f.oldProperties,v=g.id,y=h.id;if(v!==y){if(z6(p)){s.updateId(p,bE(y)),s.updateId(v,y);return}var _=s.get(bE(v));_&&s.updateId(bE(v),bE(y))}}},!0),this.reverted("element.updateProperties",function(f){var p=f.element;if(Fe(p,"bpmn:SubProcess")){var h=f.properties,g=f.oldProperties,v=g.id,y=h.id;if(v!==y){if(z6(p)){s.updateId(p,bE(v)),s.updateId(y,v);return}var _=s.get(bE(y));_&&s.updateId(_,bE(v))}}},!0),n.on("element.changed",function(f){var p=f.element;if(z6(p)){var h=p,g=s.get(oAe(h));!g||g===h||n.fire("element.changed",{element:g})}}),this.executed("shape.toggleCollapse",pDe,function(f){var p=f.shape;Fe(p,"bpmn:SubProcess")&&(pi(p)?d(f):(u(f),l._showRecursively(p.children)))},!0),this.reverted("shape.toggleCollapse",pDe,function(f){var p=f.shape;Fe(p,"bpmn:SubProcess")&&(pi(p)?d(f):(u(f),l._showRecursively(p.children)))},!0),this.postExecuted("shape.toggleCollapse",mVn,function(f){var p=f.shape;if(Fe(p,"bpmn:SubProcess")){var h=f.newRootElement;h&&(pi(p)?l._moveChildrenToShape(h,p):l._moveChildrenToShape(p,h))}},!0),n.on("copyPaste.createTree",function(f){var p=f.element,h=f.children;if(c(p)){var g=Yv(p),v=s.get(g);v&&h.push.apply(h,v.children)}}),n.on("copyPaste.copyElement",function(f){var p=f.descriptor,h=f.element,g=f.elements,v=h.parent,y=Fe(Ii(v),"bpmndi:BPMNPlane");if(y){var _=oAe(v),S=ki(g,function(b){return b.id===_});S&&(p.parent=S.id)}}),n.on("copyPaste.pasteElement",function(f){var p=f.descriptor;p.parent&&(c(p.parent)||p.parent.hidden)&&(p.hidden=!0)})}Zn(SS,vn);SS.prototype._moveChildrenToShape=function(e,n){var r=this._modeling,i=e.children,o;if(i){i=i.concat(i.reduce(function(u,d){return d.label&&d.label.parent!==e?u.concat(d.label):u},[]));var a=i.filter(function(u){return!u.hidden});if(!a.length){r.moveElements(i,{x:0,y:0},n,{autoResize:!1});return}var s=sl(a);if(!n.x)o={x:hDe.x-s.x,y:hDe.y-s.y};else{var l=Mr(n),c=Mr(s);o={x:l.x-c.x,y:l.y-c.y}}r.moveElements(i,o,n,{autoResize:!1})}};SS.prototype._showRecursively=function(e,n){var r=this,i=[];return e.forEach(function(o){o.hidden=!!n,i=i.concat(o),o.children&&(i=i.concat(r._showRecursively(o.children,o.collapsed||n)))}),i};SS.prototype._addDiagram=function(e){var n=this._bpmnjs,r=n.getDefinitions().diagrams;return e.businessObject||(e=this._createNewDiagram(e)),r.push(e.di.$parent),e};SS.prototype._createNewDiagram=function(e){var n=this._bpmnFactory,r=this._elementFactory,i=n.create("bpmndi:BPMNPlane",{bpmnElement:e}),o=n.create("bpmndi:BPMNDiagram",{plane:i});i.$parent=o;var a=r.createRoot({id:Yv(e),type:e.$type,di:i,businessObject:e,collapsed:!0});return a};SS.prototype._removeDiagram=function(e){var n=this._bpmnjs,r=n.getDefinitions().diagrams,i=ki(r,function(o){return o.plane.bpmnElement.id===e.id});return r.splice(r.indexOf(i),1),i};SS.$inject=["canvas","eventBus","modeling","elementFactory","bpmnFactory","bpmnjs","elementRegistry"];function Rge(e,n){e.invoke(vn,this),this.postExecuted("shape.replace",function(r){var i=r.context.oldShape,o=r.context.newShape;if(!(!Fe(o,"bpmn:SubProcess")||!(Fe(i,"bpmn:Task")||Fe(i,"bpmn:CallActivity"))||!pi(o))){var a=vVn(o);n.createShape({type:"bpmn:StartEvent"},a,o)}})}Rge.$inject=["injector","modeling"];Zn(Rge,vn);function vVn(e){return{x:e.x+e.width/6,y:e.y+e.height/2}}function Ige(e){vn.call(this,e),this.preExecute("connection.create",function(n){const{target:r}=n;Fe(r,"bpmn:TextAnnotation")&&(n.parent=r.parent)},!0),this.preExecute(["shape.create","shape.resize","elements.move"],function(n){const r=n.shapes||[n.shape];r.length===1&&Fe(r[0],"bpmn:TextAnnotation")&&(n.hints=n.hints||{},n.hints.autoResize=!1)},!0)}Zn(Ige,vn);Ige.$inject=["eventBus"];function Nge(e,n){vn.call(this,e),this.postExecuted("shape.toggleCollapse",1500,function(r){var i=r.shape;if(pi(i))return;var o=_L(i);o.forEach(function(s){var l=s.incoming.slice(),c=s.outgoing.slice();ht(l,function(u){a(u,!0)}),ht(c,function(u){a(u,!1)})});function a(s,l){o.indexOf(s.source)!==-1&&o.indexOf(s.target)!==-1||(l?n.reconnectEnd(s,i,Mr(i)):n.reconnectStart(s,i,Mr(i)))}},!0)}Zn(Nge,vn);Nge.$inject=["eventBus","modeling"];var fJ=500;function Mge(e,n,r){vn.call(this,e);function i(s){s.length&&s.forEach(function(l){l.type==="label"&&!l.businessObject.name&&(l.hidden=!0)})}function o(s,l){var c=s.children,u=l,d,f;return d=yVn(c).concat([s]),f=_tt(d),f?(u.width=Math.max(f.width,u.width),u.height=Math.max(f.height,u.height),u.x=f.x+(f.width-u.width)/2,u.y=f.y+(f.height-u.height)/2):(u.x=s.x+(s.width-u.width)/2,u.y=s.y+(s.height-u.height)/2),u}function a(s,l){return{x:s.x+(s.width-l.width)/2,y:s.y+(s.height-l.height)/2,width:l.width,height:l.height}}this.executed(["shape.toggleCollapse"],fJ,function(s){var l=s.context,c=l.shape;Fe(c,"bpmn:SubProcess")&&(c.collapsed?Ii(c).isExpanded=!1:(i(c.children),Ii(c).isExpanded=!0))}),this.reverted(["shape.toggleCollapse"],fJ,function(s){var l=s.context,c=l.shape;c.collapsed?Ii(c).isExpanded=!1:Ii(c).isExpanded=!0}),this.postExecuted(["shape.toggleCollapse"],fJ,function(s){var l=s.context.shape,c=n.getDefaultSize(l),u;l.collapsed?u=a(l,c):u=o(l,c),r.resizeShape(l,u,null,{autoResize:l.collapsed?!1:"nwse"})})}Zn(Mge,vn);Mge.$inject=["eventBus","elementFactory","modeling"];function yVn(e){return e.filter(function(n){return!n.hidden})}function Pge(e,n,r,i){n.invoke(vn,this),this.preExecute("shape.delete",function(o){var a=o.context,s=a.shape,l=s.businessObject;Ni(s)||(Fe(s,"bpmn:Participant")&&pi(s)&&r.ids.unclaim(l.processRef.id),i.unclaimId(l.id,l))}),this.preExecute("connection.delete",function(o){var a=o.context,s=a.connection,l=s.businessObject;i.unclaimId(l.id,l)}),this.preExecute("canvas.updateRoot",function(){var o=e.getRootElement(),a=o.businessObject;Fe(o,"bpmn:Collaboration")&&r.ids.unclaim(a.id)})}Zn(Pge,vn);Pge.$inject=["canvas","injector","moddle","modeling"];function Age(e,n){vn.call(this,e),this.preExecute("connection.delete",function(r){var i=r.context,o=i.connection,a=o.source;_Vn(o,a)&&n.updateProperties(a,{default:null})})}Zn(Age,vn);Age.$inject=["eventBus","modeling"];function _Vn(e,n){if(!Fe(e,"bpmn:SequenceFlow"))return!1;var r=In(n),i=In(e);return r.get("default")===i}var bVn=500,SVn=5e3;function Dge(e,n){vn.call(this,e);var r;function i(){return r=r||new EVn,r.enter(),r}function o(){if(!r)throw new Error("out of bounds release");return r}function a(){if(!r)throw new Error("out of bounds release");var l=r.leave();return l&&(n.updateLaneRefs(r.flowNodes,r.lanes),r=null),l}var s=["spaceTool","lane.add","lane.resize","lane.split","elements.create","elements.delete","elements.move","shape.create","shape.delete","shape.move","shape.resize"];this.preExecute(s,SVn,function(l){i()}),this.postExecuted(s,bVn,function(l){a()}),this.preExecute(["shape.create","shape.move","shape.delete","shape.resize"],function(l){var c=l.context,u=c.shape,d=o();u.labelTarget||(Fe(u,"bpmn:Lane")&&d.addLane(u),Fe(u,"bpmn:FlowNode")&&d.addFlowNode(u))})}Dge.$inject=["eventBus","modeling"];Zn(Dge,vn);function EVn(){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 kge(e,n){vn.call(this,e),this.postExecuted("elements.create",function(r){const i=r.context,o=i.elements;for(const a of o)CVn(a)&&!xVn(a)&&n.updateProperties(a,{isForCompensation:void 0})})}Zn(kge,vn);kge.$inject=["eventBus","modeling"];function CVn(e){const n=In(e);return n&&n.isForCompensation}function wVn(e){return e&&Fe(e,"bpmn:BoundaryEvent")&&GI(e,"bpmn:CompensateEventDefinition")}function xVn(e){return e.incoming.filter(r=>wVn(r.source)).length>0}const TVn={__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",Jhe],appendBehavior:["type",ege],associationBehavior:["type",tge],attachEventBehavior:["type",zz],boundaryEventBehavior:["type",nge],compensateBoundaryEventBehaviour:["type",rge],createBehavior:["type",ige],createDataObjectBehavior:["type",oge],createParticipantBehavior:["type",age],dataInputAssociationBehavior:["type",sge],dataStoreBehavior:["type",lge],deleteLaneBehavior:["type",cge],detachEventBehavior:["type",Wz],dropOnFlowBehavior:["type",uge],eventBasedGatewayBehavior:["type",dge],fixHoverBehavior:["type",btt],groupBehavior:["type",fge],importDockingFix:["type",Stt],isHorizontalFix:["type",pge],labelBehavior:["type",hge],layoutConnectionBehavior:["type",gge],messageFlowBehavior:["type",yge],nonInterruptingBehavior:["type",_ge],removeElementBehavior:["type",Sge],removeEmbeddedLabelBoundsBehavior:["type",bge],removeParticipantBehavior:["type",Ege],replaceConnectionBehavior:["type",Cge],replaceElementBehaviour:["type",Xz],resizeBehavior:["type",Ptt],resizeLaneBehavior:["type",Dtt],rootElementReferenceBehavior:["type",Tge],spaceToolBehavior:["type",Ltt],subProcessPlaneBehavior:["type",SS],subProcessStartEventBehavior:["type",Rge],textAnnotationBehavior:["type",Ige],toggleCollapseConnectionBehaviour:["type",Nge],toggleElementCollapseBehaviour:["type",Mge],unclaimIdBehavior:["type",Pge],unsetDefaultFlowBehavior:["type",Age],updateFlowNodeRefsBehavior:["type",Dge],setCompensationActivityAfterPasteBehavior:["type",kge]};function $tt(e,n){var r=_c(e,n,-15);return r!=="intersect"?r:null}function Jl(e){Yp.call(this,e)}Zn(Jl,Yp);Jl.$inject=["eventBus"];Jl.prototype.init=function(){this.addRule("connection.start",function(e){var n=e.source;return OVn(n)}),this.addRule("connection.create",function(e){var n=e.source,r=e.target,i=e.hints||{},o=i.targetParent,a=i.targetAttach;if(a)return!1;o&&(r.parent=o);try{return K6(n,r)}finally{o&&(r.parent=null)}}),this.addRule("connection.reconnect",function(e){var n=e.connection,r=e.source,i=e.target;return K6(r,i,n)}),this.addRule("connection.updateWaypoints",function(e){return{type:e.connection.type}}),this.addRule("shape.resize",function(e){var n=e.shape,r=e.newBounds;return Wtt(n,r)}),this.addRule("elements.create",function(e){var n=e.elements,r=e.position,i=e.target;return wo(i)&&!aj(n,i)?!1:bw(n,function(o){return wo(o)?K6(o.source,o.target,o):o.host?mP(o,o.host,null,r):Vae(o,i,null)})}),this.addRule("elements.move",function(e){var n=e.target,r=e.shapes,i=e.position;return mP(r,n,null,i)||Vtt(r,n,i)||Gtt(r,n)||aj(r,n)}),this.addRule("shape.create",function(e){return Vae(e.shape,e.target,e.source,e.position)}),this.addRule("shape.attach",function(e){return mP(e.shape,e.target,null,e.position)}),this.addRule("element.copy",function(e){var n=e.element,r=e.elements;return Qtt(r,n)})};Jl.prototype.canConnectMessageFlow=Ktt;Jl.prototype.canConnectSequenceFlow=Xtt;Jl.prototype.canConnectDataAssociation=$ge;Jl.prototype.canConnectAssociation=Ytt;Jl.prototype.canConnectCompensationAssociation=qtt;Jl.prototype.canMove=Gtt;Jl.prototype.canAttach=mP;Jl.prototype.canReplace=Vtt;Jl.prototype.canDrop=pR;Jl.prototype.canInsert=aj;Jl.prototype.canCreate=Vae;Jl.prototype.canConnect=K6;Jl.prototype.canResize=Wtt;Jl.prototype.canCopy=Qtt;function OVn(e){return Uae(e)?null:ii(e,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference","bpmn:Group","bpmn:TextAnnotation"])}function Uae(e){return!e||Ni(e)}function RVn(e,n){return e===n}function gDe(e){do{if(Fe(e,"bpmn:Process"))return In(e);if(Fe(e,"bpmn:Participant"))return In(e).processRef||In(e)}while(e=e.parent)}function Hae(e){return Fe(e,"bpmn:TextAnnotation")}function Lge(e){return Fe(e,"bpmn:Group")&&!e.labelTarget}function Ftt(e){return Fe(e,"bpmn:BoundaryEvent")&&fm(e,"bpmn:CompensateEventDefinition")}function Qz(e){return In(e).isForCompensation}function IVn(e,n){var r=gDe(e),i=gDe(n);return r===i}function NVn(e){return Fe(e,"bpmn:InteractionNode")&&!Fe(e,"bpmn:BoundaryEvent")&&(!Fe(e,"bpmn:Event")||Fe(e,"bpmn:ThrowEvent")&&jtt(e,"bpmn:MessageEventDefinition"))}function MVn(e){return Fe(e,"bpmn:InteractionNode")&&!Qz(e)&&(!Fe(e,"bpmn:Event")||Fe(e,"bpmn:CatchEvent")&&jtt(e,"bpmn:MessageEventDefinition"))&&!(Fe(e,"bpmn:BoundaryEvent")&&!fm(e,"bpmn:MessageEventDefinition"))}function mDe(e){for(var n=e;n=n.parent;){if(Fe(n,"bpmn:FlowElementsContainer"))return In(n);if(Fe(n,"bpmn:Participant"))return In(n).processRef}return null}function Btt(e,n){var r=mDe(e),i=mDe(n);return r===i}function fm(e,n){var r=In(e);return!!ki(r.eventDefinitions||[],function(i){return Fe(i,n)})}function jtt(e,n){var r=In(e);return(r.eventDefinitions||[]).every(function(i){return Fe(i,n)})}function PVn(e){return Fe(e,"bpmn:FlowNode")&&!Fe(e,"bpmn:EndEvent")&&!zc(e)&&!(Fe(e,"bpmn:IntermediateThrowEvent")&&fm(e,"bpmn:LinkEventDefinition"))&&!Ftt(e)&&!Qz(e)}function AVn(e){return Fe(e,"bpmn:FlowNode")&&!Fe(e,"bpmn:StartEvent")&&!Fe(e,"bpmn:BoundaryEvent")&&!zc(e)&&!(Fe(e,"bpmn:IntermediateCatchEvent")&&fm(e,"bpmn:LinkEventDefinition"))&&!Qz(e)}function DVn(e){return Fe(e,"bpmn:ReceiveTask")||Fe(e,"bpmn:IntermediateCatchEvent")&&(fm(e,"bpmn:MessageEventDefinition")||fm(e,"bpmn:TimerEventDefinition")||fm(e,"bpmn:ConditionalEventDefinition")||fm(e,"bpmn:SignalEventDefinition"))}function kVn(e){for(var n=[];e;)e=e.parent,e&&n.push(e);return n}function zae(e,n){var r=kVn(n);return r.indexOf(e)!==-1}function K6(e,n,r){if(Uae(e)||Uae(n))return null;if(!Fe(r,"bpmn:DataAssociation")){if(Ktt(e,n))return{type:"bpmn:MessageFlow"};if(Xtt(e,n))return{type:"bpmn:SequenceFlow"}}var i=$ge(e,n);return i||(qtt(e,n)?{type:"bpmn:Association",associationDirection:"One"}:Ytt(e,n)?{type:"bpmn:Association",associationDirection:"None"}:!1)}function pR(e,n){return Ni(e)||Lge(e)?!0:Fe(n,"bpmn:Participant")&&!pi(n)?!1:Fe(e,"bpmn:Participant")?Fe(n,"bpmn:Process")||Fe(n,"bpmn:Collaboration"):ii(e,["bpmn:DataInput","bpmn:DataOutput"])&&e.parent?n===e.parent:Fe(e,"bpmn:Lane")?Fe(n,"bpmn:Participant")||Fe(n,"bpmn:Lane"):Fe(e,"bpmn:BoundaryEvent")&&!LVn(e)?!1:Fe(e,"bpmn:FlowElement")&&!Fe(e,"bpmn:DataStoreReference")?Fe(n,"bpmn:FlowElementsContainer")?pi(n):ii(n,["bpmn:Participant","bpmn:Lane"]):Fe(e,"bpmn:DataStoreReference")&&Fe(n,"bpmn:Collaboration")?fS(In(n).get("participants"),function(r){return!!r.get("processRef")}):ii(e,["bpmn:Artifact","bpmn:DataAssociation","bpmn:DataStoreReference"])?ii(n,["bpmn:Collaboration","bpmn:Lane","bpmn:Participant","bpmn:Process","bpmn:SubProcess"]):Fe(e,"bpmn:MessageFlow")?Fe(n,"bpmn:Collaboration")||e.source.parent==n||e.target.parent==n:!1}function LVn(e){return In(e).cancelActivity&&(Utt(e)||Htt(e))}function $Vn(e){return!Ni(e)&&Fe(e,"bpmn:BoundaryEvent")}function FVn(e){return Fe(e,"bpmn:Lane")}function BVn(e){return $Vn(e)||Fe(e,"bpmn:IntermediateThrowEvent")&&Utt(e)?!0:Fe(e,"bpmn:IntermediateCatchEvent")&&Htt(e)}function Utt(e){var n=In(e);return n&&!(n.eventDefinitions&&n.eventDefinitions.length)}function Htt(e){return ztt(e,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])}function ztt(e,n){return n.some(function(r){return fm(e,r)})}function jVn(e){return Fe(e,"bpmn:ReceiveTask")&&ki(e.incoming,function(n){return Fe(n.source,"bpmn:EventBasedGateway")})}function mP(e,n,r,i){if(Array.isArray(e)||(e=[e]),e.length!==1)return!1;var o=e[0];return Ni(o)||!BVn(o)||zc(n)||!Fe(n,"bpmn:Activity")||Qz(n)||i&&!$tt(i,n)||jVn(n)?!1:"attach"}function Vtt(e,n,r){if(!n)return!1;var i={replacements:[]};return ht(e,function(o){zc(n)||Fe(o,"bpmn:StartEvent")&&o.type!=="label"&&pR(o,n)&&(P7n(o)||i.replacements.push({oldElementId:o.id,newElementType:"bpmn:StartEvent"}),(A7n(o)||D7n(o)||k7n(o))&&i.replacements.push({oldElementId:o.id,newElementType:"bpmn:StartEvent"}),ztt(o,["bpmn:MessageEventDefinition","bpmn:TimerEventDefinition","bpmn:SignalEventDefinition","bpmn:ConditionalEventDefinition"])&&Fe(n,"bpmn:SubProcess")&&i.replacements.push({oldElementId:o.id,newElementType:"bpmn:StartEvent"})),Fe(n,"bpmn:Transaction")||fm(o,"bpmn:CancelEventDefinition")&&o.type!=="label"&&(Fe(o,"bpmn:EndEvent")&&pR(o,n)&&i.replacements.push({oldElementId:o.id,newElementType:"bpmn:EndEvent"}),Fe(o,"bpmn:BoundaryEvent")&&mP(o,n,null,r)&&i.replacements.push({oldElementId:o.id,newElementType:"bpmn:BoundaryEvent"}))}),i.replacements.length?i:!1}function Gtt(e,n){return fS(e,FVn)?!1:n?e.every(function(r){return pR(r,n)}):!0}function Vae(e,n,r,i){return n?Ni(e)||Lge(e)?!0:RVn(r,n)||r&&zae(r,n)?!1:pR(e,n)||aj(e,n):!1}function Wtt(e,n){return Fe(e,"bpmn:SubProcess")?pi(e)&&(!n||n.width>=100&&n.height>=80):!!(Fe(e,"bpmn:Lane")||Fe(e,"bpmn:Participant")||Hae(e)||Lge(e))}function UVn(e,n){var r=Hae(e),i=Hae(n);return(r||i)&&r!==i}function Ytt(e,n){return zae(n,e)||zae(e,n)?!1:UVn(e,n)?!0:!!$ge(e,n)}function qtt(e,n){return Btt(e,n)&&Ftt(e)&&Fe(n,"bpmn:Activity")&&!zVn(n,e)&&!zc(n)}function Ktt(e,n){return vDe(e)&&!vDe(n)?!1:NVn(e)&&MVn(n)&&!IVn(e,n)}function Xtt(e,n){return PVn(e)&&AVn(n)&&Btt(e,n)&&!(Fe(e,"bpmn:EventBasedGateway")&&!DVn(n))}function $ge(e,n){return ii(e,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&ii(n,["bpmn:Activity","bpmn:ThrowEvent"])?{type:"bpmn:DataInputAssociation"}:ii(n,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&ii(e,["bpmn:Activity","bpmn:CatchEvent"])?{type:"bpmn:DataOutputAssociation"}:!1}function aj(e,n,r){if(!n)return!1;if(Array.isArray(e)){if(e.length!==1)return!1;e=e[0]}return n.source===e||n.target===e?!1:ii(n,["bpmn:SequenceFlow","bpmn:MessageFlow"])&&!Ni(n)&&Fe(e,"bpmn:FlowNode")&&!Fe(e,"bpmn:BoundaryEvent")&&pR(e,n.parent)}function HVn(e,n){return e&&n&&e.indexOf(n)!==-1}function Qtt(e,n){return Ni(n)?!0:!(Fe(n,"bpmn:Lane")&&!HVn(e,n.parent))}function vDe(e){return dR(e,"bpmn:Process")||dR(e,"bpmn:Collaboration")}function zVn(e,n){return e.attachers.includes(n)}const VVn={__depends__:[lv],__init__:["bpmnRules"],bpmnRules:["type",Jl]};var GVn=2e3;function Ztt(e,n){e.on("saveXML.start",GVn,r);function r(){var i=n.getRootElements();ht(i,function(o){var a=Ii(o),s,l;s=_L([o],!1),s=si(s,function(c){return c!==o&&!c.labelTarget}),l=vc(s,Ii),a.set("planeElement",l)})}}Ztt.$inject=["eventBus","canvas"];const WVn={__init__:["bpmnDiOrdering"],bpmnDiOrdering:["type",Ztt]};function Zz(e){vn.call(this,e);var n=this;this.preExecute(["shape.create","connection.create"],function(r){var i=r.context,o=i.shape||i.connection,a=i.parent,s=n.getOrdering(o,a);s&&(s.parent!==void 0&&(i.parent=s.parent),i.parentIndex=s.index)}),this.preExecute(["shape.move","connection.move"],function(r){var i=r.context,o=i.shape||i.connection,a=i.newParent||o.parent,s=n.getOrdering(o,a);s&&(s.parent!==void 0&&(i.newParent=s.parent),i.newParentIndex=s.index)})}Zz.prototype.getOrdering=function(e,n){return null};Zn(Zz,vn);function Fge(e,n){Zz.call(this,e);var r=[{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 i(s){if(s.labelTarget)return{level:10};var l=ki(r,function(c){return ii(s,[c.type])});return l&&l.order||{level:1}}function o(s){var l=s.order;if(l||(s.order=l=i(s)),!l)throw new Error(`no order for <${s.id}>`);return l}function a(s,l,c){for(var u=l;u&&!ii(u,c);)u=u.parent;if(!u)throw new Error(`no parent for <${s.id}> in <${l&&l.id}>`);return u}this.getOrdering=function(s,l){if(s.labelTarget||Fe(s,"bpmn:TextAnnotation"))return{parent:n.findRoot(l)||n.getRootElement(),index:-1};var c=o(s);c.containers&&(l=a(s,l,c.containers));var u=l.children.indexOf(s),d=QZe(l.children,function(f){return!s.labelTarget&&f.labelTarget?!1:c.level<o(f).level});return d!==-1&&u!==-1&&u<d&&(d-=1),{index:d,parent:l}}}Fge.$inject=["eventBus","canvas"];Zn(Fge,Zz);const YVn={__init__:["bpmnOrderingProvider"],bpmnOrderingProvider:["type",Fge]};function ML(){}ML.prototype.get=function(){return this._data};ML.prototype.set=function(e){this._data=e};ML.prototype.clear=function(){var e=this._data;return delete this._data,e};ML.prototype.isEmpty=function(){return!this._data};const qVn={clipboard:["type",ML]};var KVn="drop-ok",yDe="drop-not-ok",_De="attach-ok",bDe="new-parent",SDe="create",XVn=2e3;function Jtt(e,n,r,i,o){function a(c,u,d,f,p){if(!u)return!1;c=si(c,function(S){var b=S.labelTarget;return!S.parent&&!(Ni(S)&&c.indexOf(b)!==-1)});var h=ki(c,function(S){return!wo(S)}),g=!1,v=!1,y=!1;CDe(c)&&(g=o.allowed("shape.attach",{position:d,shape:h,target:u})),g||(CDe(c)?y=o.allowed("shape.create",{position:d,shape:h,source:f,target:u}):y=o.allowed("elements.create",{elements:c,position:d,target:u}));var _=p.connectionTarget;return y||g?(h&&f&&(v=o.allowed("connection.create",{source:_===f?h:f,target:_===f?f:h,hints:{targetParent:u,targetAttach:g}})),{attach:g,connect:v}):y===null||g===null?null:!1}function s(c,u){[_De,KVn,yDe,bDe].forEach(function(d){d===u?e.addMarker(c,d):e.removeMarker(c,d)})}r.on(["create.move","create.hover"],function(c){var u=c.context,d=u.elements,f=c.hover,p=u.source,h=u.hints||{};if(!f){u.canExecute=!1,u.target=null;return}EDe(c);var g={x:c.x,y:c.y},v=u.canExecute=f&&a(d,f,g,p,h);f&&v!==null&&(u.target=f,v&&v.attach?s(f,_De):s(f,v?bDe:yDe))}),r.on(["create.end","create.out","create.cleanup"],function(c){var u=c.hover;u&&s(u,null)}),r.on("create.end",function(c){var u=c.context,d=u.source,f=u.shape,p=u.elements,h=u.target,g=u.canExecute,v=g&&g.attach,y=g&&g.connect,_=u.hints||{};if(g===!1||!h)return!1;EDe(c);var S={x:c.x,y:c.y};y?f=i.appendShape(d,f,S,h,{attach:v,connection:y===!0?{}:y,connectionTarget:_.connectionTarget}):(p=i.createElements(p,S,h,Rt({},_,{attach:v})),f=ki(p,function(b){return!wo(b)})),Rt(u,{elements:p,shape:f}),Rt(c,{elements:p,shape:f})});function l(){var c=n.context();c&&c.prefix===SDe&&n.cancel()}r.on("create.init",function(){r.on("elements.changed",l),r.once(["create.cancel","create.end"],XVn,function(){r.off("elements.changed",l)})}),this.start=function(c,u,d){zr(u)||(u=[u]);var f=ki(u,function(g){return!wo(g)});if(f){d=Rt({elements:u,hints:{},shape:f},d||{}),ht(u,function(g){Nr(g.x)||(g.x=0),Nr(g.y)||(g.y=0)});var p=si(u,function(g){return!g.hidden}),h=sl(p);ht(u,function(g){wo(g)&&(g.waypoints=vc(g.waypoints,function(v){return{x:v.x-h.x-h.width/2,y:v.y-h.y-h.height/2}})),Rt(g,{x:g.x-h.x-h.width/2,y:g.y-h.y-h.height/2})}),n.init(c,SDe,{cursor:"grabbing",autoActivate:!0,data:{shape:f,elements:u,context:d}})}}}Jtt.$inject=["canvas","dragging","eventBus","modeling","rules"];function EDe(e){var n=e.context,r=n.createConstraints;r&&(r.left&&(e.x=Math.max(e.x,r.left)),r.right&&(e.x=Math.min(e.x,r.right)),r.top&&(e.y=Math.max(e.y,r.top)),r.bottom&&(e.y=Math.min(e.y,r.bottom)))}function CDe(e){return e&&e.length===1&&!wo(e[0])}var QVn=750;function ent(e,n,r,i,o){function a(s){var l=pr("g");Gn(l,o.cls("djs-drag-group",["no-events"]));var c=pr("g");return s.forEach(function(u){var d;u.hidden||(u.waypoints?(d=r._createContainer("connection",c),r.drawConnection($1(d),u)):(d=r._createContainer("shape",c),r.drawShape($1(d),u),Wl(d,u.x,u.y)),i.addDragger(u,l,d))}),l}n.on("create.move",QVn,function(s){var l=s.hover,c=s.context,u=c.elements,d=c.dragGroup;d||(d=c.dragGroup=a(u));var f;l?(d.parentNode||(f=e.getActiveLayer(),Ar(f,d)),Wl(d,s.x,s.y)):Hs(d)}),n.on("create.cleanup",function(s){var l=s.context,c=l.dragGroup;c&&Hs(c)})}ent.$inject=["canvas","eventBus","graphicsFactory","previewSupport","styles"];const Jz={__depends__:[__,JI,lv,Tg],__init__:["create","createPreview"],create:["type",Jtt],createPreview:["type",ent]};function Bge(e){var n=this;this._lastMoveEvent=null;function r(i){n._lastMoveEvent=i}e.on("canvas.init",function(i){var o=n._svg=i.svg;o.addEventListener("mousemove",r)}),e.on("canvas.destroy",function(){n._lastMouseEvent=null,n._svg.removeEventListener("mousemove",r)})}Bge.$inject=["eventBus"];Bge.prototype.getLastMoveEvent=function(){return this._lastMoveEvent||ZVn(0,0)};function ZVn(e,n){var r=document.createEvent("MouseEvent"),i=e,o=n,a=e,s=n;return r.initMouseEvent&&r.initMouseEvent("mousemove",!0,!0,window,0,i,o,a,s,!1,!1,!1,!1,0,null),r}const PL={__init__:["mouse"],mouse:["type",Bge]};function Og(e,n,r,i,o,a,s,l){this._canvas=e,this._create=n,this._clipboard=r,this._elementFactory=i,this._eventBus=o,this._modeling=a,this._mouse=s,this._rules=l,o.on("copyPaste.copyElement",function(c){var u=c.descriptor,d=c.element,f=c.elements;u.priority=1,u.id=d.id;var p=ki(f,function(h){return h===d.parent});p&&(u.parent=d.parent.id),JVn(d)&&(u.priority=2,u.host=d.host.id),wo(d)&&(u.priority=3,u.source=d.source.id,u.target=d.target.id,u.waypoints=eGn(d)),Ni(d)&&(u.priority=4,u.labelTarget=d.labelTarget.id),ht(["x","y","width","height"],function(h){Nr(d[h])&&(u[h]=d[h])}),u.hidden=d.hidden,u.collapsed=d.collapsed}),o.on("copyPaste.pasteElements",function(c){var u=c.hints;Rt(u,{createElementsBehavior:!1})})}Og.$inject=["canvas","create","clipboard","elementFactory","eventBus","modeling","mouse","rules"];Og.prototype.copy=function(e){var n,r;return zr(e)||(e=e?[e]:[]),n=this._eventBus.fire("copyPaste.canCopyElements",{elements:e}),n===!1?r={}:r=this.createTree(zr(n)?n:e),this._clipboard.set(r),this._eventBus.fire("copyPaste.elementsCopied",{elements:e,tree:r}),r};Og.prototype.paste=function(e){var n=this._clipboard.get();if(!this._clipboard.isEmpty()){var r=e&&e.hints||{};this._eventBus.fire("copyPaste.pasteElements",{hints:r});var i=this._createElements(n);if(e&&e.element&&e.point)return this._paste(i,e.element,e.point,r);this._create.start(this._mouse.getLastMoveEvent(),i,{hints:r||{}})}};Og.prototype._paste=function(e,n,r,i){ht(e,function(a){Nr(a.x)||(a.x=0),Nr(a.y)||(a.y=0)});var o=sl(e);return ht(e,function(a){wo(a)&&(a.waypoints=vc(a.waypoints,function(s){return{x:s.x-o.x-o.width/2,y:s.y-o.y-o.height/2}})),Rt(a,{x:a.x-o.x-o.width/2,y:a.y-o.y-o.height/2})}),this._modeling.createElements(e,r,n,Rt({},i))};Og.prototype._createElements=function(e){var n=this,r=this._eventBus,i={},o=[];return ht(e,function(a,s){a=Fm(a,"priority"),ht(a,function(l){var c=Rt({},ov(l,["priority"]));i[l.parent]?c.parent=i[l.parent]:delete c.parent,r.fire("copyPaste.pasteElement",{cache:i,descriptor:c});var u;if(wo(c)){c.source=i[l.source],c.target=i[l.target],u=i[l.id]=n.createConnection(c),o.push(u);return}if(Ni(c)){c.labelTarget=i[c.labelTarget],u=i[l.id]=n.createLabel(c),o.push(u);return}c.host&&(c.host=i[c.host]),u=i[l.id]=n.createShape(c),o.push(u)})}),o};Og.prototype.createConnection=function(e){var n=this._elementFactory.createConnection(ov(e,["id"]));return n};Og.prototype.createLabel=function(e){var n=this._elementFactory.createLabel(ov(e,["id"]));return n};Og.prototype.createShape=function(e){var n=this._elementFactory.createShape(ov(e,["id"]));return n};Og.prototype.hasRelations=function(e,n){var r,i,o;return!(wo(e)&&(i=ki(n,Kh({id:e.source.id})),o=ki(n,Kh({id:e.target.id})),!i||!o)||Ni(e)&&(r=ki(n,Kh({id:e.labelTarget.id})),!r))};Og.prototype.createTree=function(e){var n=this._rules,r=this,i={},o=[],a=xz(e);function s(u,d){return n.allowed("element.copy",{element:u,elements:d})}function l(u,d){var f=ki(o,function(p){return u===p.element});if(!f){o.push({element:u,depth:d});return}f.depth<d&&(o=c(f,o),o.push({element:f.element,depth:d}))}function c(u,d){var f=d.indexOf(u);return f!==-1&&d.splice(f,1),d}return Ew(a,function(u,d,f){if(Ni(u))return;ht(u.labels,function(g){l(g,f)});function p(g){g&&g.length&&ht(g,function(v){ht(v.labels,function(y){l(y,f)}),l(v,f)})}ht([u.attachers,u.incoming,u.outgoing],p),l(u,f);var h=[];return u.children&&(h=u.children.slice()),r._eventBus.fire("copyPaste.createTree",{element:u,children:h}),h}),e=vc(o,function(u){return u.element}),o=vc(o,function(u){return u.descriptor={},r._eventBus.fire("copyPaste.copyElement",{descriptor:u.descriptor,element:u.element,elements:e}),u}),o=Fm(o,function(u){return u.descriptor.priority}),e=vc(o,function(u){return u.element}),ht(o,function(u){var d=u.depth;if(!r.hasRelations(u.element,e)){xDe(u.element,e);return}if(!s(u.element,e)){xDe(u.element,e);return}i[d]||(i[d]=[]),i[d].push(u.descriptor)}),i};function JVn(e){return!!e.host}function eGn(e){return vc(e.waypoints,function(n){return n=wDe(n),n.original&&(n.original=wDe(n.original)),n})}function wDe(e){return Rt({},e)}function xDe(e,n){var r=n.indexOf(e);return r===-1?n:n.splice(r,1)}const tGn={__depends__:[qVn,Jz,PL,lv],__init__:["copyPaste"],copyPaste:["type",Og]};function pJ(e,n,r){zr(r)||(r=[r]),ht(r,function(i){SC(e[i])||(n[i]=e[i])})}var hJ=750;function tnt(e,n,r){function i(c,u){var d=e.create(c.$type);return r.copyElement(c,d,null,u)}n.on("copyPaste.copyElement",hJ,function(c){var u=c.descriptor,d=c.element,f=In(d);if(Ni(d))return u;var p=u.businessObject=i(f,!0),h=u.di=i(Ii(d),!0);h.bpmnElement=p,pJ(p,u,"name"),pJ(h,u,"isExpanded"),f.default&&(u.default=f.default.id)});var o="-bpmn-js-refs";function a(c){return c[o]=c[o]||{}}function s(c,u){c[o]=u}function l(c,u,d){var f=In(c);return c.default&&(d[c.default]={element:f,property:"default"}),c.host&&(In(c).attachedToRef=In(u[c.host])),ov(d,yd(d,function(p,h,g){var v=h.element,y=h.property;return g===c.id&&(v.set(y,f),p.push(c.id)),p},[]))}n.on("copyPaste.pasteElement",function(c){var u=c.cache,d=c.descriptor,f=d.businessObject,p=d.di;if(Ni(d)){d.businessObject=In(u[d.labelTarget]),d.di=Ii(u[d.labelTarget]);return}f=d.businessObject=i(f),p=d.di=i(p),p.bpmnElement=f,pJ(d,f,["isExpanded","name"]),d.type=f.$type}),n.on("copyPaste.copyElement",hJ,function(c){var u=c.descriptor,d=c.element;if(Fe(d,"bpmn:Participant")){var f=In(d);f.processRef&&(u.processRef=i(f.processRef,!0))}}),n.on("copyPaste.pasteElement",function(c){var u=c.descriptor,d=u.processRef;d&&(u.processRef=i(d))}),n.on("copyPaste.pasteElement",hJ,function(c){var u=c.cache,d=c.descriptor;s(u,l(d,u,a(u)))})}tnt.$inject=["bpmnFactory","eventBus","moddleCopy"];var nGn=["artifacts","dataInputAssociations","dataOutputAssociations","default","flowElements","lanes","incoming","outgoing","categoryValue"];function AL(e,n,r){this._bpmnFactory=n,this._eventBus=e,this._moddle=r,e.on("moddleCopy.canCopyProperties",function(i){var o=i.propertyNames;if(!(!o||!o.length))return Fm(o,function(a){return a==="extensionElements"})}),e.on("moddleCopy.canCopyProperty",function(i){var o=i.parent,a=Rl(o)&&o.$descriptor,s=i.propertyName;if(s&&nGn.indexOf(s)!==-1||s&&a&&!ki(a.properties,Kh({name:s})))return!1}),e.on("moddleCopy.canSetCopiedProperty",function(i){var o=i.property;if(rGn(o,"bpmn:ExtensionElements")&&(!o.values||!o.values.length))return!1})}AL.$inject=["eventBus","bpmnFactory","moddle"];AL.prototype.copyElement=function(e,n,r,i=!1){var o=this;r&&!zr(r)&&(r=[r]),r=r||Gae(e.$descriptor);var a=this._eventBus.fire("moddleCopy.canCopyProperties",{propertyNames:r,sourceElement:e,targetElement:n,clone:i});return a===!1||(zr(a)&&(r=a),ht(r,function(s){var l;gu(e,s)&&(l=e.get(s));var c=o.copyProperty(l,n,s,i);if(bl(c)){var u=o._eventBus.fire("moddleCopy.canSetCopiedProperty",{parent:n,property:c,propertyName:s});u!==!1&&n.set(s,c)}})),n};AL.prototype.copyProperty=function(e,n,r,i=!1){var o=this,a=this._eventBus.fire("moddleCopy.canCopyProperty",{parent:n,property:e,propertyName:r,clone:i});if(a!==!1){if(a)return Rl(a)&&a.$type&&!a.$parent&&(a.$parent=n),a;var s=this._moddle.getPropertyDescriptor(n,r);if(!s.isReference)return s.isId?e&&this._copyId(e,n,i):zr(e)?yd(e,function(l,c){return a=o.copyProperty(c,n,r,i),a?l.concat(a):l},[]):Rl(e)&&e.$type?this._moddle.getElementDescriptor(e).isGeneric?void 0:(a=o._bpmnFactory.create(e.$type),a.$parent=n,a=o.copyElement(e,a,null,i),a):e}};AL.prototype._copyId=function(e,n,r=!1){if(r)return e;if(!this._moddle.ids.assigned(e))return this._moddle.ids.claim(e,n),e};function Gae(e,n){return yd(e.properties,function(r,i){return n&&i.default?r:r.concat(i.name)},[])}function rGn(e,n){return e&&zs(e.$instanceOf)&&e.$instanceOf(n)}const nnt={__depends__:[tGn],__init__:["bpmnCopyPaste","moddleCopy"],bpmnCopyPaste:["type",tnt],moddleCopy:["type",AL]};var TDe=Math.round;function jge(e,n){this._modeling=e,this._eventBus=n}jge.$inject=["modeling","eventBus"];jge.prototype.replaceElement=function(e,n,r){if(e.waypoints)return null;var i=this._modeling,o=this._eventBus;o.fire("replace.start",{element:e,attrs:n,hints:r});var a=n.width||e.width,s=n.height||e.height,l=n.x||e.x,c=n.y||e.y,u=TDe(l+a/2),d=TDe(c+s/2),f=i.replaceShape(e,Rt({},n,{x:u,y:d,width:a,height:s}),r);return o.fire("replace.end",{element:e,newElement:f,hints:r}),f};function rnt(e,n){n.on("replace.end",500,function(r){const{newElement:i,hints:o={}}=r;o.select!==!1&&e.select(i)})}rnt.$inject=["selection","eventBus"];const iGn={__init__:["replace","replaceSelectionBehavior"],replaceSelectionBehavior:["type",rnt],replace:["type",jge]};function oGn(e,n,r){zr(r)||(r=[r]),ht(r,function(i){SC(e[i])||(n[i]=e[i])})}var aGn=["cancelActivity","instantiate","eventGatewayType","triggeredByEvent","isInterrupting"];function sGn(e,n){var r=e&&gu(e,"collapsed")?e.collapsed:!pi(e),i;return n&&(gu(n,"collapsed")||gu(n,"isExpanded"))?i=gu(n,"collapsed")?n.collapsed:!n.isExpanded:i=r,r!==i}function int(e,n,r,i,o,a){function s(l,c,u){u=u||{};var d=c.type,f=l.businessObject;if(X4(f)&&(d==="bpmn:SubProcess"||d==="bpmn:AdHocSubProcess")&&sGn(l,c))return i.toggleCollapse(l),l;var p=e.create(d),h={type:d,businessObject:p};h.di={},d==="bpmn:ExclusiveGateway"&&(h.di.isMarkerVisible=!0),oGn(l.di,h.di,["fill","stroke","background-color","border-color","color"]);var g=Gae(f.$descriptor),v=Gae(p.$descriptor,!0),y=lGn(g,v);Rt(p,sg(c,aGn));var _=si(y,function(E){return E==="eventDefinitions"?ODe(l,c.eventDefinitionType):E==="loopCharacteristics"?!zc(p):gu(p,E)||E==="processRef"&&c.isExpanded===!1||E==="triggeredByEvent"?!1:E==="isForCompensation"?!zc(p):!0});if(p=r.copyElement(f,p,_),c.eventDefinitionType&&(ODe(p,c.eventDefinitionType)||(h.eventDefinitionType=c.eventDefinitionType,h.eventDefinitionAttrs=c.eventDefinitionAttrs)),Fe(f,"bpmn:Activity")){if(X4(f))h.isExpanded=pi(l);else if(c&&gu(c,"isExpanded")){h.isExpanded=c.isExpanded;var S=n.getDefaultSize(p,{isExpanded:h.isExpanded});h.width=S.width,h.height=S.height,h.x=l.x-(h.width-l.width)/2,h.y=l.y-(h.height-l.height)/2}pi(l)&&!Fe(f,"bpmn:Task")&&h.isExpanded&&(h.width=l.width,h.height=l.height)}if(X4(f)&&!X4(p)&&(u.moveChildren=!1),Fe(f,"bpmn:Participant")){c.isExpanded===!0?p.processRef=e.create("bpmn:Process"):u.moveChildren=!1;var b=cl(l);Ii(l).isHorizontal||(Ii(h).isHorizontal=b),h.width=b?l.width:n.getDefaultSize(h).width,h.height=b?n.getDefaultSize(h).height:l.height}return a.allowed("shape.resize",{shape:p})||(h.height=n.getDefaultSize(h).height,h.width=n.getDefaultSize(h).width),p.name=f.name,ii(f,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&ii(p,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&(p.default=f.default),c.host&&!Fe(f,"bpmn:BoundaryEvent")&&Fe(p,"bpmn:BoundaryEvent")&&(h.host=c.host),(h.type==="bpmn:DataStoreReference"||h.type==="bpmn:DataObjectReference")&&(h.x=l.x+(l.width-h.width)/2),o.replaceElement(l,h,{...u,targetElement:c})}this.replaceElement=s}int.$inject=["bpmnFactory","elementFactory","moddleCopy","modeling","replace","rules"];function X4(e){return Fe(e,"bpmn:SubProcess")}function ODe(e,n){var r=In(e);return n&&r.get("eventDefinitions").some(function(i){return Fe(i,n)})}function lGn(e,n){return e.filter(function(r){return n.includes(r)})}const ont={__depends__:[nnt,iGn,Tg],bpmnReplace:["type",int]};var cGn=250;function Tw(e){this._eventBus=e,this._tools=[],this._active=null}Tw.$inject=["eventBus"];Tw.prototype.registerTool=function(e,n){var r=this._tools;if(!n)throw new Error(`A tool has to be registered with it's "events"`);r.push(e),this.bindEvents(e,n)};Tw.prototype.isActive=function(e){return e&&this._active===e};Tw.prototype.length=function(e){return this._tools.length};Tw.prototype.setActive=function(e){var n=this._eventBus;this._active!==e&&(this._active=e,n.fire("tool-manager.update",{tool:e}))};Tw.prototype.bindEvents=function(e,n){var r=this._eventBus,i=[];r.on(n.tool+".init",function(o){var a=o.context;if(!a.reactivate&&this.isActive(e)){this.setActive(null);return}this.setActive(e)},this),ht(n,function(o){i.push(o+".ended"),i.push(o+".canceled")}),r.on(i,cGn,function(o){this._active&&(uGn(o)||this.setActive(null))},this)};function uGn(e){var n=e.originalEvent&&e.originalEvent.target;return n&&HI(n,'.group[data-group="tools"]')}const eV={__depends__:[__],__init__:["toolManager"],toolManager:["type",Tw]};function dGn(e,n){if(e==="x"){if(n>0)return"e";if(n<0)return"w"}if(e==="y"){if(n>0)return"s";if(n<0)return"n"}return null}function fGn(e,n){var r=[];return ht(e.concat(n),function(i){var o=i.incoming,a=i.outgoing;ht(o.concat(a),function(s){var l=s.source,c=s.target;(PM(e,l)||PM(e,c)||PM(n,l)||PM(n,c))&&(PM(r,s)||r.push(s))})}),r}function PM(e,n){return e.indexOf(n)!==-1}function pGn(e,n,r){var i=e.x,o=e.y,a=e.width,s=e.height,l=r.x,c=r.y;switch(n){case"n":return{x:i,y:o+c,width:a,height:s-c};case"s":return{x:i,y:o,width:a,height:s+c};case"w":return{x:i+l,y:o,width:a-l,height:s};case"e":return{x:i,y:o,width:a+l,height:s};default:throw new Error("unknown direction: "+n)}}var gJ=Math.abs,hGn=Math.round,kv={x:"width",y:"height"},ant="crosshair",X_={n:"top",w:"left",s:"bottom",e:"right"},gGn=1500,Q4={n:"s",w:"e",s:"n",e:"w"},Z4=20;function qp(e,n,r,i,o,a,s){this._canvas=e,this._dragging=n,this._eventBus=r,this._modeling=i,this._rules=o,this._toolManager=a,this._mouse=s;var l=this;a.registerTool("space",{tool:"spaceTool.selection",dragging:"spaceTool"}),r.on("spaceTool.selection.end",function(c){r.once("spaceTool.selection.ended",function(){l.activateMakeSpace(c.originalEvent)})}),r.on("spaceTool.move",gGn,function(c){var u=c.context,d=u.initialized;d||(d=u.initialized=l.init(c,u)),d&&IDe(c)}),r.on("spaceTool.end",function(c){var u=c.context,d=u.axis,f=u.direction,p=u.movingShapes,h=u.resizingShapes,g=u.start;if(u.initialized){IDe(c);var v={x:0,y:0};v[d]=hGn(c["d"+d]),l.makeSpace(p,h,v,f,g),r.once("spaceTool.ended",function(y){l.activateSelection(y.originalEvent,!0,!0)})}})}qp.$inject=["canvas","dragging","eventBus","modeling","rules","toolManager","mouse"];qp.prototype.activateSelection=function(e,n,r){this._dragging.init(e,"spaceTool.selection",{autoActivate:n,cursor:ant,data:{context:{reactivate:r}},trapClick:!1})};qp.prototype.activateMakeSpace=function(e){this._dragging.init(e,"spaceTool",{autoActivate:!0,cursor:ant,data:{context:{}}})};qp.prototype.makeSpace=function(e,n,r,i,o){return this._modeling.createSpace(e,n,r,i,o)};qp.prototype.init=function(e,n){var r=gJ(e.dx)>gJ(e.dy)?"x":"y",i=e["d"+r],o=e[r]-i;if(gJ(i)<5)return!1;i<0&&(i*=-1),rD(e)&&(i*=-1);var a=dGn(r,i),s=this._canvas.getRootElement();!ZB(e)&&e.hover&&(s=e.hover);var l=[..._L(s,!0),...s.attachers||[]],c=this.calculateAdjustments(l,r,i,o),u=this._eventBus.fire("spaceTool.getMinDimensions",{axis:r,direction:a,shapes:c.resizingShapes,start:o}),d=mGn(c,r,a,o,u);return Rt(n,c,{axis:r,direction:a,spaceToolConstraints:d,start:o}),$z("resize-"+(r==="x"?"ew":"ns")),!0};qp.prototype.calculateAdjustments=function(e,n,r,i){var o=this._rules,a=[],s=[],l=[],c=[];function u(p){a.includes(p)||a.push(p);var h=p.label;h&&!a.includes(h)&&a.push(h)}function d(p){s.includes(p)||s.push(p)}ht(e,function(p){if(!(!p.parent||Ni(p))){if(wo(p)){c.push(p);return}var h=p[n],g=h+p[kv[n]];if(vGn(p)&&(r>0&&Mr(p)[n]>i||r<0&&Mr(p)[n]<i)){l.push(p);return}if(r>0&&h>i||r<0&&g<i){u(p);return}if(h<i&&g>i&&o.allowed("shape.resize",{shape:p})){d(p);return}}}),ht(a,function(p){var h=p.attachers;h&&ht(h,function(g){u(g)})});var f=a.concat(s);return ht(l,function(p){var h=p.host;u1(f,h)&&u(p)}),f=a.concat(s),ht(c,function(p){var h=p.source,g=p.target,v=p.label;u1(f,h)&&u1(f,g)&&v&&u(v)}),{movingShapes:a,resizingShapes:s}};qp.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)};qp.prototype.isActive=function(){var e=this._dragging.context();return e?/^spaceTool/.test(e.prefix):!1};function RDe(e){return{top:e.top-Z4,right:e.right+Z4,bottom:e.bottom+Z4,left:e.left-Z4}}function IDe(e){var n=e.context,r=n.spaceToolConstraints;if(r){var i,o;Nr(r.left)&&(i=Math.max(e.x,r.left),e.dx=e.dx+i-e.x,e.x=i),Nr(r.right)&&(i=Math.min(e.x,r.right),e.dx=e.dx+i-e.x,e.x=i),Nr(r.top)&&(o=Math.max(e.y,r.top),e.dy=e.dy+o-e.y,e.y=o),Nr(r.bottom)&&(o=Math.min(e.y,r.bottom),e.dy=e.dy+o-e.y,e.y=o)}}function mGn(e,n,r,i,o){var a=e.movingShapes,s=e.resizingShapes;if(s.length){var l={},c,u;return ht(s,function(d){var f=d.attachers,p=d.children,h=br(d),g=si(p,function(O){return!wo(O)&&!Ni(O)&&!u1(a,O)&&!u1(s,O)}),v=si(p,function(O){return!wo(O)&&!Ni(O)&&u1(a,O)}),y,_,S,b=[],E=[],w,C,x,T;g.length&&(_=RDe(br(sl(g))),y=i-h[X_[r]]+_[X_[r]],r==="n"?l.bottom=u=Nr(u)?Math.min(u,y):y:r==="w"?l.right=u=Nr(u)?Math.min(u,y):y:r==="s"?l.top=c=Nr(c)?Math.max(c,y):y:r==="e"&&(l.left=c=Nr(c)?Math.max(c,y):y)),v.length&&(S=RDe(br(sl(v))),y=i-S[X_[Q4[r]]]+h[X_[Q4[r]]],r==="n"?l.bottom=u=Nr(u)?Math.min(u,y):y:r==="w"?l.right=u=Nr(u)?Math.min(u,y):y:r==="s"?l.top=c=Nr(c)?Math.max(c,y):y:r==="e"&&(l.left=c=Nr(c)?Math.max(c,y):y)),f&&f.length&&(f.forEach(function(O){u1(a,O)?b.push(O):E.push(O)}),b.length&&(w=br(sl(b.map(Mr))),C=h[X_[Q4[r]]]-(w[X_[Q4[r]]]-i)),E.length&&(x=br(sl(E.map(Mr))),T=x[X_[r]]-(h[X_[r]]-i)),r==="n"?(y=Math.min(C||1/0,T||1/0),l.bottom=u=Nr(u)?Math.min(u,y):y):r==="w"?(y=Math.min(C||1/0,T||1/0),l.right=u=Nr(u)?Math.min(u,y):y):r==="s"?(y=Math.max(C||-1/0,T||-1/0),l.top=c=Nr(c)?Math.max(c,y):y):r==="e"&&(y=Math.max(C||-1/0,T||-1/0),l.left=c=Nr(c)?Math.max(c,y):y));var R=o&&o[d.id];R&&(r==="n"?(y=i+d[kv[n]]-R[kv[n]],l.bottom=u=Nr(u)?Math.min(u,y):y):r==="w"?(y=i+d[kv[n]]-R[kv[n]],l.right=u=Nr(u)?Math.min(u,y):y):r==="s"?(y=i-d[kv[n]]+R[kv[n]],l.top=c=Nr(c)?Math.max(c,y):y):r==="e"&&(y=i-d[kv[n]]+R[kv[n]],l.left=c=Nr(c)?Math.max(c,y):y))}),l}}function u1(e,n){return e.indexOf(n)!==-1}function vGn(e){return!!e.host}var mJ="djs-dragging",NDe="djs-resizing",yGn=250,J4=Math.max;function snt(e,n,r,i,o){function a(s,l){ht(s,function(c){o.addDragger(c,l),r.addMarker(c,mJ)})}e.on("spaceTool.selection.start",function(s){var l=r.getLayer("space"),c=s.context,u={x:"M 0,-10000 L 0,10000",y:"M -10000,0 L 10000,0"},d=pr("g");Gn(d,i.cls("djs-crosshair-group",["no-events"])),Ar(l,d);var f=pr("path");Gn(f,"d",u.x),Ri(f).add("djs-crosshair"),Ar(d,f);var p=pr("path");Gn(p,"d",u.y),Ri(p).add("djs-crosshair"),Ar(d,p),c.crosshairGroup=d}),e.on("spaceTool.selection.move",function(s){var l=s.context.crosshairGroup;Wl(l,s.x,s.y)}),e.on("spaceTool.selection.cleanup",function(s){var l=s.context,c=l.crosshairGroup;c&&Hs(c)}),e.on("spaceTool.move",yGn,function(s){var l=s.context,c=l.line,u=l.axis,d=l.movingShapes,f=l.resizingShapes;if(l.initialized){if(!l.dragGroup){var p=r.getLayer("space");c=pr("path"),Gn(c,"d","M0,0 L0,0"),Ri(c).add("djs-crosshair"),Ar(p,c),l.line=c;var h=pr("g");Gn(h,i.cls("djs-drag-group",["no-events"])),Ar(r.getActiveLayer(),h),a(d,h);var g=l.movingConnections=n.filter(function(E){var w=!1;ht(d,function(R){ht(R.outgoing,function(O){E===O&&(w=!0)})});var C=!1;ht(d,function(R){ht(R.incoming,function(O){E===O&&(C=!0)})});var x=!1;ht(f,function(R){ht(R.outgoing,function(O){E===O&&(x=!0)})});var T=!1;return ht(f,function(R){ht(R.incoming,function(O){E===O&&(T=!0)})}),wo(E)&&(w||x)&&(C||T)});a(g,h),l.dragGroup=h}if(!l.frameGroup){var v=pr("g");Gn(v,i.cls("djs-frame-group",["no-events"])),Ar(r.getActiveLayer(),v);var y=[];ht(f,function(E){var w=o.addFrame(E,v),C=w.getBBox();y.push({element:w,initialBounds:C}),r.addMarker(E,NDe)}),l.frameGroup=v,l.frames=y}var _={x:"M"+s.x+", -10000 L"+s.x+", 10000",y:"M -10000, "+s.y+" L 10000, "+s.y};Gn(c,{d:_[u]});var S={x:"y",y:"x"},b={x:s.dx,y:s.dy};b[S[l.axis]]=0,Wl(l.dragGroup,b.x,b.y),ht(l.frames,function(E){var w=E.element,C=E.initialBounds,x,T;l.direction==="e"?Gn(w,{width:J4(C.width+b.x,5)}):(x=J4(C.width-b.x,5),Gn(w,{width:x,x:C.x+C.width-x})),l.direction==="s"?Gn(w,{height:J4(C.height+b.y,5)}):(T=J4(C.height-b.y,5),Gn(w,{height:T,y:C.y+C.height-T}))})}}),e.on("spaceTool.cleanup",function(s){var l=s.context,c=l.movingShapes,u=l.movingConnections,d=l.resizingShapes,f=l.line,p=l.dragGroup,h=l.frameGroup;ht(c,function(g){r.removeMarker(g,mJ)}),ht(u,function(g){r.removeMarker(g,mJ)}),p&&(Hs(f),Hs(p)),ht(d,function(g){r.removeMarker(g,NDe)}),h&&Hs(h)})}snt.$inject=["eventBus","elementRegistry","canvas","styles","previewSupport"];const _Gn={__init__:["spaceToolPreview"],__depends__:[__,lv,eV,JI,PL],spaceTool:["type",qp],spaceToolPreview:["type",snt]};function tV(e){e.invoke(qp,this)}tV.$inject=["injector"];Zn(tV,qp);tV.prototype.calculateAdjustments=function(e,n,r,i){var o=qp.prototype.calculateAdjustments.call(this,e,n,r,i);return o.resizingShapes=o.resizingShapes.filter(function(a){return!(Fe(a,"bpmn:TextAnnotation")||bGn(a)&&(n==="y"&&cl(a)||n==="x"&&!cl(a)))}),o};function bGn(e){return Fe(e,"bpmn:Participant")&&!In(e).processRef}const lnt={__depends__:[_Gn],spaceTool:["type",tV]};function Ma(e,n){this._handlerMap={},this._stack=[],this._stackIdx=-1,this._currentExecution={actions:[],dirty:[],trigger:null},this._injector=n,this._eventBus=e,this._uid=1,e.on(["diagram.destroy","diagram.clear"],function(){this.clear(!1)},this)}Ma.$inject=["eventBus","injector"];Ma.prototype.execute=function(e,n){if(!e)throw new Error("command required");this._currentExecution.trigger="execute";const r={command:e,context:n};this._pushAction(r),this._internalExecute(r),this._popAction()};Ma.prototype.canExecute=function(e,n){const r={command:e,context:n},i=this._getHandler(e);let o=this._fire(e,"canExecute",r);if(o===void 0){if(!i)return!1;i.canExecute&&(o=i.canExecute(n))}return o};Ma.prototype.clear=function(e){this._stack.length=0,this._stackIdx=-1,e!==!1&&this._fire("changed",{trigger:"clear"})};Ma.prototype.undo=function(){let e=this._getUndoAction(),n;if(e){for(this._currentExecution.trigger="undo",this._pushAction(e);e&&(this._internalUndo(e),n=this._getUndoAction(),!(!n||n.id!==e.id));)e=n;this._popAction()}};Ma.prototype.redo=function(){let e=this._getRedoAction(),n;if(e){for(this._currentExecution.trigger="redo",this._pushAction(e);e&&(this._internalExecute(e,!0),n=this._getRedoAction(),!(!n||n.id!==e.id));)e=n;this._popAction()}};Ma.prototype.register=function(e,n){this._setHandler(e,n)};Ma.prototype.registerHandler=function(e,n){if(!e||!n)throw new Error("command and handlerCls must be defined");const r=this._injector.instantiate(n);this.register(e,r)};Ma.prototype.canUndo=function(){return!!this._getUndoAction()};Ma.prototype.canRedo=function(){return!!this._getRedoAction()};Ma.prototype._getRedoAction=function(){return this._stack[this._stackIdx+1]};Ma.prototype._getUndoAction=function(){return this._stack[this._stackIdx]};Ma.prototype._internalUndo=function(e){const n=e.command,r=e.context,i=this._getHandler(n);this._atomicDo(()=>{this._fire(n,"revert",e),i.revert&&this._markDirty(i.revert(r)),this._revertedAction(e),this._fire(n,"reverted",e)})};Ma.prototype._fire=function(e,n,r){arguments.length<3&&(r=n,n=null);const i=n?[e+"."+n,n]:[e];let o;r=this._eventBus.createEvent(r);for(const a of i)if(o=this._eventBus.fire("commandStack."+a,r),r.cancelBubble)break;return o};Ma.prototype._createId=function(){return this._uid++};Ma.prototype._atomicDo=function(e){const n=this._currentExecution;n.atomic=!0;try{e()}finally{n.atomic=!1}};Ma.prototype._internalExecute=function(e,n){const r=e.command,i=e.context,o=this._getHandler(r);if(!o)throw new Error("no command handler registered for <"+r+">");this._pushAction(e),n||(this._fire(r,"preExecute",e),o.preExecute&&o.preExecute(i),this._fire(r,"preExecuted",e)),this._atomicDo(()=>{this._fire(r,"execute",e),o.execute&&this._markDirty(o.execute(i)),this._executedAction(e,n),this._fire(r,"executed",e)}),n||(this._fire(r,"postExecute",e),o.postExecute&&o.postExecute(i),this._fire(r,"postExecuted",e)),this._popAction()};Ma.prototype._pushAction=function(e){const n=this._currentExecution,r=n.actions,i=r[0];if(n.atomic)throw new Error("illegal invocation in <execute> or <revert> phase (action: "+e.command+")");e.id||(e.id=i&&i.id||this._createId()),r.push(e)};Ma.prototype._popAction=function(){const e=this._currentExecution,n=e.trigger,r=e.actions,i=e.dirty;r.pop(),r.length||(this._eventBus.fire("elements.changed",{elements:ZZe("id",i.reverse())}),i.length=0,this._fire("changed",{trigger:n}),e.trigger=null)};Ma.prototype._markDirty=function(e){const n=this._currentExecution;e&&(e=zr(e)?e:[e],n.dirty=n.dirty.concat(e))};Ma.prototype._executedAction=function(e,n){const r=++this._stackIdx;n||this._stack.splice(r,this._stack.length,e)};Ma.prototype._revertedAction=function(e){this._stackIdx--};Ma.prototype._getHandler=function(e){return this._handlerMap[e]};Ma.prototype._setHandler=function(e,n){if(!e||!n)throw new Error("command and handler required");if(this._handlerMap[e])throw new Error("overriding handler for command <"+e+">");this._handlerMap[e]=n};const SGn={commandStack:["type",Ma]};function h0(e,n){if(typeof n!="function")throw new Error("removeFn iterator must be a function");if(e){for(var r;r=e[0];)n(r);return e}}var EGn=250,MDe=1400;function Uge(e,n,r){vn.call(this,n);var i=e.get("movePreview",!1);n.on("shape.move.start",MDe,function(o){var a=o.context,s=a.shapes,l=a.validatedShapes;a.shapes=PDe(s),a.validatedShapes=PDe(l)}),i&&n.on("shape.move.start",EGn,function(o){var a=o.context,s=a.shapes,l=[];ht(s,function(c){ht(c.labels,function(u){!u.hidden&&a.shapes.indexOf(u)===-1&&l.push(u),c.labelTarget&&l.push(c)})}),ht(l,function(c){i.makeDraggable(a,c,!0)})}),this.preExecuted("elements.move",MDe,function(o){var a=o.context,s=a.closure,l=s.enclosedElements,c=[];ht(l,function(u){ht(u.labels,function(d){l[d.id]||c.push(d)})}),s.addAll(c)}),this.preExecute(["connection.delete","shape.delete"],function(o){var a=o.context,s=a.connection||a.shape;h0(s.labels,function(l){r.removeShape(l,{nested:!0})})}),this.execute("shape.delete",function(o){var a=o.context,s=a.shape,l=s.labelTarget;l&&(a.labelTargetIndex=bhe(l.labels,s),a.labelTarget=l,s.labelTarget=null)}),this.revert("shape.delete",function(o){var a=o.context,s=a.shape,l=a.labelTarget,c=a.labelTargetIndex;l&&(Ks(l.labels,s,c),s.labelTarget=l)})}Zn(Uge,vn);Uge.$inject=["injector","eventBus","modeling"];function PDe(e){return si(e,function(n){return e.indexOf(n.labelTarget)===-1})}const CGn={__init__:["labelSupport"],labelSupport:["type",Uge]};var wGn=251,ADe=1401,DDe="attach-ok";function Hge(e,n,r,i,o){vn.call(this,n);var a=e.get("movePreview",!1);n.on("shape.move.start",ADe,function(s){var l=s.context,c=l.shapes,u=l.validatedShapes;l.shapes=xGn(c),l.validatedShapes=TGn(u)}),a&&n.on("shape.move.start",wGn,function(s){var l=s.context,c=l.shapes,u=Wae(c);ht(u,function(d){a.makeDraggable(l,d,!0),ht(d.labels,function(f){a.makeDraggable(l,f,!0)})})}),a&&n.on("shape.move.start",function(s){var l=s.context,c=l.shapes;if(c.length===1){var u=c[0],d=u.host;d&&(r.addMarker(d,DDe),n.once(["shape.move.out","shape.move.cleanup"],function(){r.removeMarker(d,DDe)}))}}),this.preExecuted("elements.move",ADe,function(s){var l=s.context,c=l.closure,u=l.shapes,d=Wae(u);ht(d,function(f){c.add(f,c.topLevel[f.host.id])})}),this.postExecuted("elements.move",function(s){var l=s.context,c=l.shapes,u=l.newHost,d;u&&c.length!==1||(u?d=c:d=si(c,function(f){var p=f.host;return OGn(f)&&!RGn(c,p)}),ht(d,function(f){o.updateAttachment(f,u)}))}),this.postExecuted("elements.move",function(s){var l=s.context.shapes;ht(l,function(c){ht(c.attachers,function(u){ht(u.outgoing.slice(),function(d){var f=i.allowed("connection.reconnect",{connection:d,source:d.source,target:d.target});f||o.removeConnection(d)}),ht(u.incoming.slice(),function(d){var f=i.allowed("connection.reconnect",{connection:d,source:d.source,target:d.target});f||o.removeConnection(d)})})})}),this.postExecute("shape.create",function(s){var l=s.context,c=l.shape,u=l.host;u&&o.updateAttachment(c,u)}),this.postExecute("shape.replace",function(s){var l=s.context,c=l.oldShape,u=l.newShape;h0(c.attachers,function(d){var f=i.allowed("elements.move",{target:u,shapes:[d]});f==="attach"?o.updateAttachment(d,u):o.removeShape(d)}),u.attachers.length&&ht(u.attachers,function(d){var f=cDe(d,c,u);o.moveShape(d,f,d.parent)})}),this.postExecute("shape.resize",function(s){var l=s.context,c=l.shape,u=l.oldBounds,d=l.newBounds,f=c.attachers,p=l.hints||{};p.attachSupport!==!1&&ht(f,function(h){var g=cDe(h,u,d);o.moveShape(h,g,h.parent),ht(h.labels,function(v){o.moveShape(v,g,v.parent)})})}),this.preExecute("shape.delete",function(s){var l=s.context.shape;h0(l.attachers,function(c){o.removeShape(c)}),l.host&&o.updateAttachment(l,null)})}Zn(Hge,vn);Hge.$inject=["injector","eventBus","canvas","rules","modeling"];function Wae(e){return hhe(vc(e,function(n){return n.attachers||[]}))}function xGn(e){var n=Wae(e);return m8n("id",e,n)}function TGn(e){var n=UI(e,"id");return si(e,function(r){for(;r;){if(r.host&&n[r.host.id])return!1;r=r.parent}return!0})}function OGn(e){return!!e.host}function RGn(e,n){return e.indexOf(n)!==-1}const IGn={__depends__:[lv],__init__:["attachSupport"],attachSupport:["type",Hge]};function Kp(e){this._model=e}Kp.$inject=["moddle"];Kp.prototype._needsId=function(e){return ii(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"])};Kp.prototype._ensureId=function(e){if(e.id){this._model.ids.claim(e.id,e);return}var n;Fe(e,"bpmn:Activity")?n="Activity":Fe(e,"bpmn:Event")?n="Event":Fe(e,"bpmn:Gateway")?n="Gateway":ii(e,["bpmn:SequenceFlow","bpmn:MessageFlow"])?n="Flow":n=(e.$type||"").replace(/^[^:]*:/g,""),n+="_",!e.id&&this._needsId(e)&&(e.id=this._model.ids.nextPrefixed(n,e))};Kp.prototype.create=function(e,n){var r=this._model.create(e,n||{});return this._ensureId(r),r};Kp.prototype.createDiLabel=function(){return this.create("bpmndi:BPMNLabel",{bounds:this.createDiBounds()})};Kp.prototype.createDiShape=function(e,n){return this.create("bpmndi:BPMNShape",Rt({bpmnElement:e,bounds:this.createDiBounds()},n))};Kp.prototype.createDiBounds=function(e){return this.create("dc:Bounds",e)};Kp.prototype.createDiWaypoints=function(e){var n=this;return vc(e,function(r){return n.createDiWaypoint(r)})};Kp.prototype.createDiWaypoint=function(e){return this.create("dc:Point",sg(e,["x","y"]))};Kp.prototype.createDiEdge=function(e,n){return this.create("bpmndi:BPMNEdge",Rt({bpmnElement:e,waypoint:this.createDiWaypoints([])},n))};Kp.prototype.createDiPlane=function(e,n){return this.create("bpmndi:BPMNPlane",Rt({bpmnElement:e},n))};function Od(e,n,r){vn.call(this,e),this._bpmnFactory=n;var i=this;function o(h){var g=h.context,v=g.hints||{},y;!g.cropped&&v.createElementsBehavior!==!1&&(y=g.connection,y.waypoints=r.getCroppedWaypoints(y),g.cropped=!0)}this.executed(["connection.layout","connection.create"],o),this.reverted(["connection.layout"],function(h){delete h.context.cropped});function a(h){var g=h.context;i.updateParent(g.shape||g.connection,g.oldParent)}function s(h){var g=h.context,v=g.shape||g.connection,y=g.parent||g.newParent;i.updateParent(v,y)}this.executed(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],Gu(a)),this.reverted(["shape.move","shape.create","shape.delete","connection.create","connection.move","connection.delete"],Gu(s));function l(h){var g=h.context,v=g.oldRoot,y=v.children;ht(y,function(_){Fe(_,"bpmn:BaseElement")&&i.updateParent(_)})}this.executed(["canvas.updateRoot"],l),this.reverted(["canvas.updateRoot"],l);function c(h){var g=h.context.shape;Fe(g,"bpmn:BaseElement")&&i.updateBounds(g)}this.executed(["shape.move","shape.create","shape.resize"],Gu(function(h){h.context.shape.type!=="label"&&c(h)})),this.reverted(["shape.move","shape.create","shape.resize"],Gu(function(h){h.context.shape.type!=="label"&&c(h)})),e.on("shape.changed",function(h){h.element.type==="label"&&c({context:{shape:h.element}})});function u(h){i.updateConnection(h.context)}this.executed(["connection.create","connection.move","connection.delete","connection.reconnect"],Gu(u)),this.reverted(["connection.create","connection.move","connection.delete","connection.reconnect"],Gu(u));function d(h){i.updateConnectionWaypoints(h.context.connection)}this.executed(["connection.layout","connection.move","connection.updateWaypoints"],Gu(d)),this.reverted(["connection.layout","connection.move","connection.updateWaypoints"],Gu(d)),this.executed("connection.reconnect",Gu(function(h){var g=h.context,v=g.connection,y=g.oldSource,_=g.newSource,S=In(v),b=In(y),E=In(_);S.conditionExpression&&!ii(E,["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway"])&&(g.oldConditionExpression=S.conditionExpression,delete S.conditionExpression),y!==_&&b.default===S&&(g.oldDefault=b.default,delete b.default)})),this.reverted("connection.reconnect",Gu(function(h){var g=h.context,v=g.connection,y=g.oldSource,_=g.newSource,S=In(v),b=In(y),E=In(_);g.oldConditionExpression&&(S.conditionExpression=g.oldConditionExpression),g.oldDefault&&(b.default=g.oldDefault,delete E.default)}));function f(h){i.updateAttachment(h.context)}this.executed(["element.updateAttachment"],Gu(f)),this.reverted(["element.updateAttachment"],Gu(f)),this.executed("element.updateLabel",Gu(p)),this.reverted("element.updateLabel",Gu(p));function p(h){const{element:g}=h.context,v=lg(g),y=Ii(g),_=y&&y.get("label");CC(g)||z6(g)||(v&&!_?y.set("label",n.create("bpmndi:BPMNLabel")):!v&&_&&y.set("label",void 0))}}Zn(Od,vn);Od.$inject=["eventBus","bpmnFactory","connectionDocking"];Od.prototype.updateAttachment=function(e){var n=e.shape,r=n.businessObject,i=n.host;r.attachedToRef=i&&i.businessObject};Od.prototype.updateParent=function(e,n){if(!Ni(e)&&!(Fe(e,"bpmn:DataStoreReference")&&e.parent&&Fe(e.parent,"bpmn:Collaboration"))){var r=e.parent,i=e.businessObject,o=Ii(e),a=r&&r.businessObject,s=Ii(r);Fe(e,"bpmn:FlowNode")&&this.updateFlowNodeRefs(i,a,n&&n.businessObject),Fe(e,"bpmn:DataOutputAssociation")&&(e.source?a=e.source.businessObject:a=null),Fe(e,"bpmn:DataInputAssociation")&&(e.target?a=e.target.businessObject:a=null),this.updateSemanticParent(i,a),Fe(e,"bpmn:DataObjectReference")&&i.dataObjectRef&&this.updateSemanticParent(i.dataObjectRef,a),this.updateDiParent(o,s)}};Od.prototype.updateBounds=function(e){var n=Ii(e),r=MGn(e);if(r){var i=Xh(r,n.get("bounds"));Rt(r,{x:e.x+i.x,y:e.y+i.y})}var o=Ni(e)?this._getLabel(n):n,a=o.bounds;a||(a=this._bpmnFactory.createDiBounds(),o.set("bounds",a)),Rt(a,{x:e.x,y:e.y,width:e.width,height:e.height})};Od.prototype.updateFlowNodeRefs=function(e,n,r){if(r!==n){var i,o;Fe(r,"bpmn:Lane")&&(i=r.get("flowNodeRef"),Cs(i,e)),Fe(n,"bpmn:Lane")&&(o=n.get("flowNodeRef"),Ks(o,e))}};Od.prototype.updateDiConnection=function(e,n,r){var i=Ii(e),o=Ii(n),a=Ii(r);i.sourceElement&&i.sourceElement.bpmnElement!==In(n)&&(i.sourceElement=n&&o),i.targetElement&&i.targetElement.bpmnElement!==In(r)&&(i.targetElement=r&&a)};Od.prototype.updateDiParent=function(e,n){if(n&&!Fe(n,"bpmndi:BPMNPlane")&&(n=n.$parent),e.$parent!==n){var r=(n||e.$parent).get("planeElement");n?(r.push(e),e.$parent=n):(Cs(r,e),e.$parent=null)}};function NGn(e){for(;e&&!Fe(e,"bpmn:Definitions");)e=e.$parent;return e}Od.prototype.getLaneSet=function(e){var n,r;return Fe(e,"bpmn:Lane")?(n=e.childLaneSet,n||(n=this._bpmnFactory.create("bpmn:LaneSet"),e.childLaneSet=n,n.$parent=e),n):(Fe(e,"bpmn:Participant")&&(e=e.processRef),r=e.get("laneSets"),n=r[0],n||(n=this._bpmnFactory.create("bpmn:LaneSet"),n.$parent=e,r.push(n)),n)};Od.prototype.updateSemanticParent=function(e,n,r){var i;if(e.$parent!==n&&!((Fe(e,"bpmn:DataInput")||Fe(e,"bpmn:DataOutput"))&&(Fe(n,"bpmn:Participant")&&"processRef"in n&&(n=n.processRef),"ioSpecification"in n&&n.ioSpecification===e.$parent))){if(Fe(e,"bpmn:Lane"))n&&(n=this.getLaneSet(n)),i="lanes";else if(Fe(e,"bpmn:FlowElement")){if(n){if(Fe(n,"bpmn:Participant"))n=n.processRef;else if(Fe(n,"bpmn:Lane"))do n=n.$parent.$parent;while(Fe(n,"bpmn:Lane"))}i="flowElements"}else if(Fe(e,"bpmn:Artifact")){for(;n&&!Fe(n,"bpmn:Process")&&!Fe(n,"bpmn:SubProcess")&&!Fe(n,"bpmn:Collaboration");)if(Fe(n,"bpmn:Participant")){n=n.processRef;break}else n=n.$parent;i="artifacts"}else if(Fe(e,"bpmn:MessageFlow"))i="messageFlows";else if(Fe(e,"bpmn:Participant")){i="participants";var o=e.processRef,a;o&&(a=NGn(e.$parent||n),e.$parent&&(Cs(a.get("rootElements"),o),o.$parent=null),n&&(Ks(a.get("rootElements"),o),o.$parent=a))}else Fe(e,"bpmn:DataOutputAssociation")?i="dataOutputAssociations":Fe(e,"bpmn:DataInputAssociation")&&(i="dataInputAssociations");if(!i)throw new Error(`no parent for <${e.id}> in <${n.id}>`);var s;if(e.$parent&&(s=e.$parent.get(i),Cs(s,e)),n?(s=n.get(i),s.push(e),e.$parent=n):e.$parent=null,r){var l=r.get(i);Cs(s,e),n&&(l||(l=[],n.set(i,l)),l.push(e))}}};Od.prototype.updateConnectionWaypoints=function(e){var n=Ii(e);n.set("waypoint",this._bpmnFactory.createDiWaypoints(e.waypoints))};Od.prototype.updateConnection=function(e){var n=e.connection,r=In(n),i=n.source,o=In(i),a=n.target,s=In(n.target),l;if(Fe(r,"bpmn:DataAssociation"))Fe(r,"bpmn:DataInputAssociation")?(r.get("sourceRef")[0]=o,l=e.parent||e.newParent||s,this.updateSemanticParent(r,s,l)):Fe(r,"bpmn:DataOutputAssociation")&&(l=e.parent||e.newParent||o,this.updateSemanticParent(r,o,l),r.targetRef=s);else{var c=Fe(r,"bpmn:SequenceFlow");r.sourceRef!==o&&(c&&(Cs(r.sourceRef&&r.sourceRef.get("outgoing"),r),o&&o.get("outgoing")&&o.get("outgoing").push(r)),r.sourceRef=o),r.targetRef!==s&&(c&&(Cs(r.targetRef&&r.targetRef.get("incoming"),r),s&&s.get("incoming")&&s.get("incoming").push(r)),r.targetRef=s)}this.updateConnectionWaypoints(n),this.updateDiConnection(n,i,a)};Od.prototype._getLabel=function(e){return e.label||(e.label=this._bpmnFactory.createDiLabel()),e.label};function Gu(e){return function(n){var r=n.context,i=r.shape||r.connection||r.element;Fe(i,"bpmn:BaseElement")&&e(n)}}function MGn(e){if(Fe(e,"bpmn:Activity")){var n=Ii(e);if(n){var r=n.get("label");if(r)return r.get("bounds")}}}function ES(e,n){g_.call(this),this._bpmnFactory=e,this._moddle=n}Zn(ES,g_);ES.$inject=["bpmnFactory","moddle"];ES.prototype._baseCreate=g_.prototype.create;ES.prototype.create=function(e,n){if(e==="label"){var r=n.di||this._bpmnFactory.createDiLabel();return this._baseCreate(e,Rt({type:"label",di:r},tD,n))}return this.createElement(e,n)};ES.prototype.createElement=function(e,n){n=Rt({},n||{});var r,i=n.businessObject,o=n.di;if(!i){if(!n.type)throw new Error("no shape type specified");i=this._bpmnFactory.create(n.type),VJe(i)}if(!AGn(o)){var a=Rt({},o||{},{id:i.id+"_di"});e==="root"?o=this._bpmnFactory.createDiPlane(i,a):e==="connection"?o=this._bpmnFactory.createDiEdge(i,a):o=this._bpmnFactory.createDiShape(i,a)}Fe(i,"bpmn:Group")&&(n=Rt({isFrame:!0},n)),n=PGn(i,n,["processRef","isInterrupting","associationDirection","isForCompensation"]),n.isExpanded&&(n=Yae(o,n,"isExpanded")),ii(i,["bpmn:Lane","bpmn:Participant"])&&(n=Yae(o,n,"isHorizontal")),Fe(i,"bpmn:SubProcess")&&(n.collapsed=!pi(i,o)),Fe(i,"bpmn:ExclusiveGateway")&&(gu(o,"isMarkerVisible")?o.isMarkerVisible===void 0&&(o.isMarkerVisible=!1):o.isMarkerVisible=!0),bl(n.triggeredByEvent)&&(i.triggeredByEvent=n.triggeredByEvent,delete n.triggeredByEvent),bl(n.cancelActivity)&&(i.cancelActivity=n.cancelActivity,delete n.cancelActivity);var s,l;return n.eventDefinitionType&&(s=i.get("eventDefinitions")||[],l=this._bpmnFactory.create(n.eventDefinitionType,n.eventDefinitionAttrs),n.eventDefinitionType==="bpmn:ConditionalEventDefinition"&&(l.condition=this._bpmnFactory.create("bpmn:FormalExpression")),s.push(l),l.$parent=i,i.eventDefinitions=s,delete n.eventDefinitionType),r=this.getDefaultSize(i,o),n=Rt({id:i.id},r,n,{businessObject:i,di:o}),this._baseCreate(e,n)};ES.prototype.getDefaultSize=function(e,n){var r=In(e);if(n=n||Ii(e),Fe(r,"bpmn:SubProcess"))return pi(r,n)?{width:350,height:200}:{width:100,height:80};if(Fe(r,"bpmn:Task"))return{width:100,height:80};if(Fe(r,"bpmn:Gateway"))return{width:50,height:50};if(Fe(r,"bpmn:Event"))return{width:36,height:36};if(Fe(r,"bpmn:Participant")){var i=n.isHorizontal===void 0||n.isHorizontal===!0;return pi(r,n)?i?{width:600,height:250}:{width:250,height:600}:i?{width:400,height:60}:{width:60,height:400}}return Fe(r,"bpmn:Lane")?{width:400,height:100}:Fe(r,"bpmn:DataObjectReference")?{width:36,height:50}:Fe(r,"bpmn:DataStoreReference")?{width:50,height:50}:Fe(r,"bpmn:TextAnnotation")?{width:100,height:30}:Fe(r,"bpmn:Group")?{width:300,height:300}:{width:100,height:80}};ES.prototype.createParticipantShape=function(e){return Rl(e)||(e={isExpanded:e}),e=Rt({type:"bpmn:Participant"},e||{}),e.isExpanded!==!1&&(e.processRef=this._bpmnFactory.create("bpmn:Process")),this.createShape(e)};function PGn(e,n,r){return ht(r,function(i){n=Yae(e,n,i)}),n}function Yae(e,n,r){return n[r]===void 0?n:(e[r]=n[r],ov(n,[r]))}function AGn(e){return ii(e,["bpmndi:BPMNShape","bpmndi:BPMNEdge","bpmndi:BPMNDiagram","bpmndi:BPMNPlane"])}function nV(e,n){this._modeling=e,this._canvas=n}nV.$inject=["modeling","canvas"];nV.prototype.preExecute=function(e){var n=this._modeling,r=e.elements,i=e.alignment;ht(r,function(o){var a={x:0,y:0};bl(i.left)?a.x=i.left-o.x:bl(i.right)?a.x=i.right-o.width-o.x:bl(i.center)?a.x=i.center-Math.round(o.width/2)-o.x:bl(i.top)?a.y=i.top-o.y:bl(i.bottom)?a.y=i.bottom-o.height-o.y:bl(i.middle)&&(a.y=i.middle-Math.round(o.height/2)-o.y),n.moveElements([o],a,o.parent)})};nV.prototype.postExecute=function(e){};function rV(e){this._modeling=e}rV.$inject=["modeling"];rV.prototype.preExecute=function(e){var n=e.source;if(!n)throw new Error("source required");var r=e.target||n.parent,i=e.shape,o=e.hints||{};i=e.shape=this._modeling.createShape(i,e.position,r,{attach:o.attach}),e.shape=i};rV.prototype.postExecute=function(e){var n=e.hints||{};DGn(e.source,e.shape)||(n.connectionTarget===e.source?this._modeling.connect(e.shape,e.source,e.connection):this._modeling.connect(e.source,e.shape,e.connection))};function DGn(e,n){return fS(e.outgoing,function(r){return r.target===n})}function iV(e,n){this._canvas=e,this._layouter=n}iV.$inject=["canvas","layouter"];iV.prototype.execute=function(e){var n=e.connection,r=e.source,i=e.target,o=e.parent,a=e.parentIndex,s=e.hints;if(!r||!i)throw new Error("source and target required");if(!o)throw new Error("parent required");return n.source=r,n.target=i,n.waypoints||(n.waypoints=this._layouter.layoutConnection(n,s)),this._canvas.addConnection(n,o,a),n};iV.prototype.revert=function(e){var n=e.connection;return this._canvas.removeConnection(n),n.source=null,n.target=null,n};var e5=Math.round;function zge(e){this._modeling=e}zge.$inject=["modeling"];zge.prototype.preExecute=function(e){var n=e.elements,r=e.parent,i=e.parentIndex,o=e.position,a=e.hints,s=this._modeling;ht(n,function(f){Nr(f.x)||(f.x=0),Nr(f.y)||(f.y=0)});var l=si(n,function(f){return!f.hidden}),c=sl(l);ht(n,function(f){wo(f)&&(f.waypoints=vc(f.waypoints,function(p){return{x:e5(p.x-c.x-c.width/2+o.x),y:e5(p.y-c.y-c.height/2+o.y)}})),Rt(f,{x:e5(f.x-c.x-c.width/2+o.x),y:e5(f.y-c.y-c.height/2+o.y)})});var u=xz(n),d={};ht(n,function(f){if(wo(f)){d[f.id]=Nr(i)?s.createConnection(d[f.source.id],d[f.target.id],i,f,f.parent||r,a):s.createConnection(d[f.source.id],d[f.target.id],f,f.parent||r,a);return}var p=Rt({},a);u.indexOf(f)===-1&&(p.autoResize=!1),Ni(f)&&(p=ov(p,["attach"])),d[f.id]=Nr(i)?s.createShape(f,sg(f,["x","y","width","height"]),f.parent||r,i,p):s.createShape(f,sg(f,["x","y","width","height"]),f.parent||r,p)}),e.elements=ghe(d)};var kDe=Math.round;function CS(e){this._canvas=e}CS.$inject=["canvas"];CS.prototype.execute=function(e){var n=e.shape,r=e.position,i=e.parent,o=e.parentIndex;if(!i)throw new Error("parent required");if(!r)throw new Error("position required");return r.width!==void 0?Rt(n,r):Rt(n,{x:r.x-kDe(n.width/2),y:r.y-kDe(n.height/2)}),this._canvas.addShape(n,i,o),n};CS.prototype.revert=function(e){var n=e.shape;return this._canvas.removeShape(n),n};function DL(e){CS.call(this,e)}Zn(DL,CS);DL.$inject=["canvas"];var kGn=CS.prototype.execute;DL.prototype.execute=function(e){var n=e.shape;return $Gn(n),n.labelTarget=e.labelTarget,kGn.call(this,e)};var LGn=CS.prototype.revert;DL.prototype.revert=function(e){return e.shape.labelTarget=null,LGn.call(this,e)};function $Gn(e){["width","height"].forEach(function(n){typeof e[n]>"u"&&(e[n]=0)})}function kL(e,n){this._canvas=e,this._modeling=n}kL.$inject=["canvas","modeling"];kL.prototype.preExecute=function(e){var n=this._modeling,r=e.connection;h0(r.incoming,function(i){n.removeConnection(i,{nested:!0})}),h0(r.outgoing,function(i){n.removeConnection(i,{nested:!0})})};kL.prototype.execute=function(e){var n=e.connection,r=n.parent;return e.parent=r,e.parentIndex=bhe(r.children,n),e.source=n.source,e.target=n.target,this._canvas.removeConnection(n),n.source=null,n.target=null,n};kL.prototype.revert=function(e){var n=e.connection,r=e.parent,i=e.parentIndex;return n.source=e.source,n.target=e.target,Ks(r.children,n,i),this._canvas.addConnection(n,r),n};function Vge(e,n){this._modeling=e,this._elementRegistry=n}Vge.$inject=["modeling","elementRegistry"];Vge.prototype.postExecute=function(e){var n=this._modeling,r=this._elementRegistry,i=e.elements;ht(i,function(o){r.get(o.id)&&(o.waypoints?n.removeConnection(o):n.removeShape(o))})};function LL(e,n){this._canvas=e,this._modeling=n}LL.$inject=["canvas","modeling"];LL.prototype.preExecute=function(e){var n=this._modeling,r=e.shape;h0(r.incoming,function(i){n.removeConnection(i,{nested:!0})}),h0(r.outgoing,function(i){n.removeConnection(i,{nested:!0})}),h0(r.children,function(i){wo(i)?n.removeConnection(i,{nested:!0}):n.removeShape(i,{nested:!0})})};LL.prototype.execute=function(e){var n=this._canvas,r=e.shape,i=r.parent;return e.oldParent=i,e.oldParentIndex=bhe(i.children,r),n.removeShape(r),r};LL.prototype.revert=function(e){var n=this._canvas,r=e.shape,i=e.oldParent,o=e.oldParentIndex;return Ks(i.children,r,o),n.addShape(r,i),r};function oV(e){this._modeling=e}oV.$inject=["modeling"];var LDe={x:"y",y:"x"};oV.prototype.preExecute=function(e){var n=this._modeling,r=e.groups,i=e.axis,o=e.dimension;function a(y,_){y.range.min=Math.min(_[i],y.range.min),y.range.max=Math.max(_[i]+_[o],y.range.max)}function s(y){return y[i]+y[o]/2}function l(y){return y.length-1}function c(y){return y.max-y.min}function u(y,_){var S={y:0};S[i]=y-s(_),S[i]&&(S[LDe[i]]=0,n.moveElements([_],S,_.parent))}var d=r[0],f=l(r),p=r[f],h,g,v=0;ht(r,function(y,_){var S,b,E;if(y.elements.length<2){_&&_!==r.length-1&&(a(y,y.elements[0]),v+=c(y.range));return}S=Fm(y.elements,i),b=S[0],_===f&&(b=S[l(S)]),E=s(b),y.range=null,ht(S,function(w){if(u(E,w),y.range===null){y.range={min:w[i],max:w[i]+w[o]};return}a(y,w)}),_&&_!==r.length-1&&(v+=c(y.range))}),g=Math.abs(p.range.min-d.range.max),h=Math.round((g-v)/(r.length-1)),!(h<r.length-1)&&ht(r,function(y,_){var S={},b;y===d||y===p||(b=r[_-1],y.range.max=0,ht(y.elements,function(E,w){S[LDe[i]]=0,S[i]=b.range.max-E[i]+h,y.range.min!==E[i]&&(S[i]+=E[i]-y.range.min),S[i]&&n.moveElements([E],S,E.parent),y.range.max=Math.max(E[i]+E[o],w?y.range.max:0)}))})};oV.prototype.postExecute=function(e){};function aV(e,n){this._layouter=e,this._canvas=n}aV.$inject=["layouter","canvas"];aV.prototype.execute=function(e){var n=e.connection,r=n.waypoints;return Rt(e,{oldWaypoints:r}),n.waypoints=this._layouter.layoutConnection(n,e.hints),n};aV.prototype.revert=function(e){var n=e.connection;return n.waypoints=e.oldWaypoints,n};function Gge(){}Gge.prototype.execute=function(e){var n=e.connection,r=e.delta,i=e.newParent||n.parent,o=e.newParentIndex,a=n.parent;return e.oldParent=a,e.oldParentIndex=Cs(a.children,n),Ks(i.children,n,o),n.parent=i,ht(n.waypoints,function(s){s.x+=r.x,s.y+=r.y,s.original&&(s.original.x+=r.x,s.original.y+=r.y)}),n};Gge.prototype.revert=function(e){var n=e.connection,r=n.parent,i=e.oldParent,o=e.oldParentIndex,a=e.delta;return Cs(r.children,n),Ks(i.children,n,o),n.parent=i,ht(n.waypoints,function(s){s.x-=a.x,s.y-=a.y,s.original&&(s.original.x-=a.x,s.original.y-=a.y)}),n};function Wge(){this.allShapes={},this.allConnections={},this.enclosedElements={},this.enclosedConnections={},this.topLevel={}}Wge.prototype.add=function(e,n){return this.addAll([e],n)};Wge.prototype.addAll=function(e,n){var r=aBn(e,!!n,this);return Rt(this,r),this};function $L(e){this._modeling=e}$L.prototype.moveRecursive=function(e,n,r){return e?this.moveClosure(this.getClosure(e),n,r):[]};$L.prototype.moveClosure=function(e,n,r,i,o){var a=this._modeling,s=e.allShapes,l=e.allConnections,c=e.enclosedConnections,u=e.topLevel,d=!1;o&&o.parent===r&&(d=!0),ht(s,function(f){a.moveShape(f,n,u[f.id]&&!d&&r,{recurse:!1,layout:!1})}),ht(l,function(f){var p=!!s[f.source.id],h=!!s[f.target.id];c[f.id]&&p&&h?a.moveConnection(f,n,u[f.id]&&!d&&r):a.layoutConnection(f,{connectionStart:p&&mge(f,f.source,n),connectionEnd:h&&vge(f,f.target,n)})})};$L.prototype.getClosure=function(e){return new Wge().addAll(e,!0)};function sV(e){this._helper=new $L(e)}sV.$inject=["modeling"];sV.prototype.preExecute=function(e){e.closure=this._helper.getClosure(e.shapes)};sV.prototype.postExecute=function(e){var n=e.hints,r;n&&n.primaryShape&&(r=n.primaryShape,n.oldParent=r.parent),this._helper.moveClosure(e.closure,e.delta,e.newParent,e.newHost,r)};function Ow(e){this._modeling=e,this._helper=new $L(e)}Ow.$inject=["modeling"];Ow.prototype.execute=function(e){var n=e.shape,r=e.delta,i=e.newParent||n.parent,o=e.newParentIndex,a=n.parent;return e.oldBounds=sg(n,["x","y","width","height"]),e.oldParent=a,e.oldParentIndex=Cs(a.children,n),Ks(i.children,n,o),Rt(n,{parent:i,x:n.x+r.x,y:n.y+r.y}),n};Ow.prototype.postExecute=function(e){var n=e.shape,r=e.delta,i=e.hints,o=this._modeling;i.layout!==!1&&(ht(n.incoming,function(a){o.layoutConnection(a,{connectionEnd:vge(a,n,r)})}),ht(n.outgoing,function(a){o.layoutConnection(a,{connectionStart:mge(a,n,r)})})),i.recurse!==!1&&this.moveChildren(e)};Ow.prototype.revert=function(e){var n=e.shape,r=e.oldParent,i=e.oldParentIndex,o=e.delta;return Ks(r.children,n,i),Rt(n,{parent:r,x:n.x-o.x,y:n.y-o.y}),n};Ow.prototype.moveChildren=function(e){var n=e.delta,r=e.shape;this._helper.moveRecursive(r.children,n,null)};Ow.prototype.getNewParent=function(e){return e.newParent||e.shape.parent};function FL(e){this._modeling=e}FL.$inject=["modeling"];FL.prototype.execute=function(e){var n=e.newSource,r=e.newTarget,i=e.connection,o=e.dockingOrPoints;if(!n&&!r)throw new Error("newSource or newTarget required");return zr(o)&&(e.oldWaypoints=i.waypoints,i.waypoints=o),n&&(e.oldSource=i.source,i.source=n),r&&(e.oldTarget=i.target,i.target=r),i};FL.prototype.postExecute=function(e){var n=e.connection,r=e.newSource,i=e.newTarget,o=e.dockingOrPoints,a=e.hints||{},s={};a.connectionStart&&(s.connectionStart=a.connectionStart),a.connectionEnd&&(s.connectionEnd=a.connectionEnd),a.layoutConnection!==!1&&(r&&(!i||a.docking==="source")&&(s.connectionStart=s.connectionStart||$De(zr(o)?o[0]:o)),i&&(!r||a.docking==="target")&&(s.connectionEnd=s.connectionEnd||$De(zr(o)?o[o.length-1]:o)),a.newWaypoints&&(s.waypoints=a.newWaypoints),this._modeling.layoutConnection(n,s))};FL.prototype.revert=function(e){var n=e.oldSource,r=e.oldTarget,i=e.oldWaypoints,o=e.connection;return n&&(o.source=n),r&&(o.target=r),i&&(o.waypoints=i),o};function $De(e){return e.original||e}function S_(e,n){this._modeling=e,this._rules=n}S_.$inject=["modeling","rules"];S_.prototype.preExecute=function(e){var n=this,r=this._modeling,i=this._rules,o=e.oldShape,a=e.newData,s=e.hints||{},l;function c(g,v,y){return i.allowed("connection.reconnect",{connection:y,source:g,target:v})}var u={x:a.x,y:a.y},d={x:o.x,y:o.y,width:o.width,height:o.height};l=e.newShape=e.newShape||n.createShape(a,u,o.parent,s),o.host&&r.updateAttachment(l,o.host);var f;s.moveChildren!==!1&&(f=o.children.slice(),r.moveElements(f,{x:0,y:0},l,s));var p=o.incoming.slice(),h=o.outgoing.slice();ht(p,function(g){var v=g.source,y=c(v,l,g);y&&n.reconnectEnd(g,l,qz(g,l,d),s)}),ht(h,function(g){var v=g.target,y=c(l,v,g);y&&n.reconnectStart(g,l,Yz(g,l,d),s)})};S_.prototype.postExecute=function(e){var n=e.oldShape;this._modeling.removeShape(n)};S_.prototype.execute=function(e){};S_.prototype.revert=function(e){};S_.prototype.createShape=function(e,n,r,i){return this._modeling.createShape(e,n,r,i)};S_.prototype.reconnectStart=function(e,n,r,i){this._modeling.reconnectStart(e,n,r,i)};S_.prototype.reconnectEnd=function(e,n,r,i){this._modeling.reconnectEnd(e,n,r,i)};function BL(e){this._modeling=e}BL.$inject=["modeling"];BL.prototype.execute=function(e){var n=e.shape,r=e.newBounds,i=e.minBounds;if(r.x===void 0||r.y===void 0||r.width===void 0||r.height===void 0)throw new Error("newBounds must have {x, y, width, height} properties");if(i&&(r.width<i.width||r.height<i.height))throw new Error("width and height cannot be less than minimum height and width");if(!i&&r.width<10||r.height<10)throw new Error("width and height cannot be less than 10px");return e.oldBounds={width:n.width,height:n.height,x:n.x,y:n.y},Rt(n,{width:r.width,height:r.height,x:r.x,y:r.y}),n};BL.prototype.postExecute=function(e){var n=this._modeling,r=e.shape,i=e.oldBounds,o=e.hints||{};o.layout!==!1&&(ht(r.incoming,function(a){n.layoutConnection(a,{connectionEnd:qz(a,r,i)})}),ht(r.outgoing,function(a){n.layoutConnection(a,{connectionStart:Yz(a,r,i)})}))};BL.prototype.revert=function(e){var n=e.shape,r=e.oldBounds;return Rt(n,{width:r.width,height:r.height,x:r.x,y:r.y}),n};function wS(e){this._modeling=e}wS.$inject=["modeling"];wS.prototype.preExecute=function(e){var n=e.delta,r=e.direction,i=e.movingShapes,o=e.resizingShapes,a=e.start,s={};this.moveShapes(i,n),ht(o,function(l){s[l.id]=BGn(l)}),this.resizeShapes(o,n,r),this.updateConnectionWaypoints(fGn(i,o),n,r,a,i,o,s)};wS.prototype.execute=function(){};wS.prototype.revert=function(){};wS.prototype.moveShapes=function(e,n){var r=this;ht(e,function(i){r._modeling.moveShape(i,n,null,{autoResize:!1,layout:!1,recurse:!1})})};wS.prototype.resizeShapes=function(e,n,r){var i=this;ht(e,function(o){var a=pGn(o,r,n);i._modeling.resizeShape(o,a,null,{attachSupport:!1,autoResize:!1,layout:!1})})};wS.prototype.updateConnectionWaypoints=function(e,n,r,i,o,a,s){var l=this,c=o.concat(a);ht(e,function(u){var d=u.source,f=u.target,p=FGn(u),h=cnt(r),g={};Q_(c,d)&&Q_(c,f)?(p=vc(p,function(v){return BDe(v,i,r)&&(v[h]=v[h]+n[h]),v.original&&BDe(v.original,i,r)&&(v.original[h]=v.original[h]+n[h]),v}),l._modeling.updateWaypoints(u,p,{labelBehavior:!1})):(Q_(c,d)||Q_(c,f))&&(Q_(o,d)?g.connectionStart=mge(u,d,n):Q_(o,f)?g.connectionEnd=vge(u,f,n):Q_(a,d)?g.connectionStart=Yz(u,d,s[d.id]):Q_(a,f)&&(g.connectionEnd=qz(u,f,s[f.id])),l._modeling.layoutConnection(u,g))})};function FDe(e){return Rt({},e)}function FGn(e){return vc(e.waypoints,function(n){return n=FDe(n),n.original&&(n.original=FDe(n.original)),n})}function cnt(e){switch(e){case"n":return"y";case"w":return"x";case"s":return"y";case"e":return"x"}}function BDe(e,n,r){var i=cnt(r);if(/e|s/.test(r))return e[i]>n;if(/n|w/.test(r))return e[i]<n}function Q_(e,n){return e.indexOf(n)!==-1}function BGn(e){return{x:e.x,y:e.y,height:e.height,width:e.width}}function lV(e){this._modeling=e}lV.$inject=["modeling"];lV.prototype.execute=function(e){var n=e.shape,r=n.children;e.oldChildrenVisibility=unt(r),n.collapsed=!n.collapsed;var i=dnt(r,n.collapsed);return[n].concat(i)};lV.prototype.revert=function(e){var n=e.shape,r=e.oldChildrenVisibility,i=n.children,o=fnt(i,r);return n.collapsed=!n.collapsed,[n].concat(o)};function unt(e){var n={};return ht(e,function(r){n[r.id]=r.hidden,r.children&&(n=Rt({},n,unt(r.children)))}),n}function dnt(e,n){var r=[];return ht(e,function(i){i.hidden=n,r=r.concat(i),i.children&&(r=r.concat(dnt(i.children,i.collapsed||n)))}),r}function fnt(e,n){var r=[];return ht(e,function(i){i.hidden=n[i.id],r=r.concat(i),i.children&&(r=r.concat(fnt(i.children,n)))}),r}function cV(e){this._modeling=e}cV.$inject=["modeling"];cV.prototype.execute=function(e){var n=e.shape,r=e.newHost,i=n.host;return e.oldHost=i,e.attacherIdx=pnt(i,n),hnt(r,n),n.host=r,n};cV.prototype.revert=function(e){var n=e.shape,r=e.newHost,i=e.oldHost,o=e.attacherIdx;return n.host=i,pnt(r,n),hnt(i,n,o),n};function pnt(e,n){return Cs(e&&e.attachers,n)}function hnt(e,n,r){if(e){var i=e.attachers;i||(e.attachers=i=[]),Ks(i,n,r)}}function Yge(){}Yge.prototype.execute=function(e){var n=e.connection,r=e.newWaypoints;return e.oldWaypoints=n.waypoints,n.waypoints=r,n};Yge.prototype.revert=function(e){var n=e.connection,r=e.oldWaypoints;return n.waypoints=r,n};function To(e,n,r){this._eventBus=e,this._elementFactory=n,this._commandStack=r;var i=this;e.on("diagram.init",function(){i.registerHandlers(r)})}To.$inject=["eventBus","elementFactory","commandStack"];To.prototype.getHandlers=function(){return{"shape.append":rV,"shape.create":CS,"shape.delete":LL,"shape.move":Ow,"shape.resize":BL,"shape.replace":S_,"shape.toggleCollapse":lV,spaceTool:wS,"label.create":DL,"connection.create":iV,"connection.delete":kL,"connection.move":Gge,"connection.layout":aV,"connection.updateWaypoints":Yge,"connection.reconnect":FL,"elements.create":zge,"elements.move":sV,"elements.delete":Vge,"elements.distribute":oV,"elements.align":nV,"element.updateAttachment":cV}};To.prototype.registerHandlers=function(e){ht(this.getHandlers(),function(n,r){e.registerHandler(r,n)})};To.prototype.moveShape=function(e,n,r,i,o){typeof i=="object"&&(o=i,i=null);var a={shape:e,delta:n,newParent:r,newParentIndex:i,hints:o||{}};this._commandStack.execute("shape.move",a)};To.prototype.updateAttachment=function(e,n){var r={shape:e,newHost:n};this._commandStack.execute("element.updateAttachment",r)};To.prototype.moveElements=function(e,n,r,i){i=i||{};var o=i.attach,a=r,s;o===!0?(s=r,a=r.parent):o===!1&&(s=null);var l={shapes:e,delta:n,newParent:a,newHost:s,hints:i};this._commandStack.execute("elements.move",l)};To.prototype.moveConnection=function(e,n,r,i,o){typeof i=="object"&&(o=i,i=void 0);var a={connection:e,delta:n,newParent:r,newParentIndex:i,hints:o||{}};this._commandStack.execute("connection.move",a)};To.prototype.layoutConnection=function(e,n){var r={connection:e,hints:n||{}};this._commandStack.execute("connection.layout",r)};To.prototype.createConnection=function(e,n,r,i,o,a){typeof r=="object"&&(a=o,o=i,i=r,r=void 0),i=this._create("connection",i);var s={source:e,target:n,parent:o,parentIndex:r,connection:i,hints:a};return this._commandStack.execute("connection.create",s),s.connection};To.prototype.createShape=function(e,n,r,i,o){typeof i!="number"&&(o=i,i=void 0),o=o||{};var a=o.attach,s,l;e=this._create("shape",e),a?(s=r.parent,l=r):s=r;var c={position:n,shape:e,parent:s,parentIndex:i,host:l,hints:o};return this._commandStack.execute("shape.create",c),c.shape};To.prototype.createElements=function(e,n,r,i,o){zr(e)||(e=[e]),typeof i!="number"&&(o=i,i=void 0),o=o||{};var a={position:n,elements:e,parent:r,parentIndex:i,hints:o};return this._commandStack.execute("elements.create",a),a.elements};To.prototype.createLabel=function(e,n,r,i){r=this._create("label",r);var o={labelTarget:e,position:n,parent:i||e.parent,shape:r};return this._commandStack.execute("label.create",o),o.shape};To.prototype.appendShape=function(e,n,r,i,o){o=o||{},n=this._create("shape",n);var a={source:e,position:r,target:i,shape:n,connection:o.connection,connectionParent:o.connectionParent,hints:o};return this._commandStack.execute("shape.append",a),a.shape};To.prototype.removeElements=function(e){var n={elements:e};this._commandStack.execute("elements.delete",n)};To.prototype.distributeElements=function(e,n,r){var i={groups:e,axis:n,dimension:r};this._commandStack.execute("elements.distribute",i)};To.prototype.removeShape=function(e,n){var r={shape:e,hints:n||{}};this._commandStack.execute("shape.delete",r)};To.prototype.removeConnection=function(e,n){var r={connection:e,hints:n||{}};this._commandStack.execute("connection.delete",r)};To.prototype.replaceShape=function(e,n,r){var i={oldShape:e,newData:n,hints:r||{}};return this._commandStack.execute("shape.replace",i),i.newShape};To.prototype.alignElements=function(e,n){var r={elements:e,alignment:n};this._commandStack.execute("elements.align",r)};To.prototype.resizeShape=function(e,n,r,i){var o={shape:e,newBounds:n,minBounds:r,hints:i};this._commandStack.execute("shape.resize",o)};To.prototype.createSpace=function(e,n,r,i,o){var a={delta:r,direction:i,movingShapes:e,resizingShapes:n,start:o};this._commandStack.execute("spaceTool",a)};To.prototype.updateWaypoints=function(e,n,r){var i={connection:e,newWaypoints:n,hints:r||{}};this._commandStack.execute("connection.updateWaypoints",i)};To.prototype.reconnect=function(e,n,r,i,o){var a={connection:e,newSource:n,newTarget:r,dockingOrPoints:i,hints:o||{}};this._commandStack.execute("connection.reconnect",a)};To.prototype.reconnectStart=function(e,n,r,i){i||(i={}),this.reconnect(e,n,e.target,r,Rt(i,{docking:"source"}))};To.prototype.reconnectEnd=function(e,n,r,i){i||(i={}),this.reconnect(e,e.source,n,r,Rt(i,{docking:"target"}))};To.prototype.connect=function(e,n,r,i){return this.createConnection(e,n,r||{},e.parent,i)};To.prototype._create=function(e,n){return jBn(n)?n:this._elementFactory.create(e,n)};To.prototype.toggleCollapse=function(e,n){var r={shape:e,hints:n||{}};this._commandStack.execute("shape.toggleCollapse",r)};function jL(e){this._elementRegistry=e}jL.$inject=["elementRegistry"];jL.prototype.execute=function(e){var n=e.element,r=e.moddleElement,i=e.properties;if(!r)throw new Error("<moddleElement> required");var o=e.changed||this._getVisualReferences(r).concat(n),a=e.oldProperties||jGn(r,GB(i));return gnt(r,i),e.oldProperties=a,e.changed=o,o};jL.prototype.revert=function(e){var n=e.oldProperties,r=e.moddleElement,i=e.changed;return gnt(r,n),i};jL.prototype._getVisualReferences=function(e){var n=this._elementRegistry;return Fe(e,"bpmn:DataObject")?UGn(e,n):[]};function jGn(e,n){return yd(n,function(r,i){return r[i]=e.get(i),r},{})}function gnt(e,n){ht(n,function(r,i){e.set(i,r)})}function UGn(e,n){return n.filter(function(r){return Fe(r,"bpmn:DataObjectReference")&&In(r).dataObjectRef===e})}var AM="default",by="id",mnt="di",HGn={width:0,height:0};function UL(e,n,r,i){this._elementRegistry=e,this._moddle=n,this._modeling=r,this._textRenderer=i}UL.$inject=["elementRegistry","moddle","modeling","textRenderer"];UL.prototype.execute=function(e){var n=e.element,r=[n];if(!n)throw new Error("element required");var i=this._elementRegistry,o=this._moddle.ids,a=n.businessObject,s=YGn(e.properties),l=e.oldProperties||zGn(n,s);return vnt(s,a)&&(o.unclaim(a[by]),i.updateId(n,s[by]),o.claim(s[by],a)),AM in s&&(s[AM]&&r.push(i.get(s[AM].id)),a[AM]&&r.push(i.get(a[AM].id))),ynt(n,s),e.oldProperties=l,e.changed=r,r};UL.prototype.postExecute=function(e){var n=e.element,r=n.label,i=r&&In(r).name;if(i){var o=this._textRenderer.getExternalLabelBounds(r,i);this._modeling.resizeShape(r,o,HGn)}};UL.prototype.revert=function(e){var n=e.element,r=e.properties,i=e.oldProperties,o=n.businessObject,a=this._elementRegistry,s=this._moddle.ids;return ynt(n,i),vnt(r,o)&&(s.unclaim(r[by]),a.updateId(n,i[by]),s.claim(i[by],o)),e.changed};function vnt(e,n){return by in e&&e[by]!==n[by]}function zGn(e,n){var r=GB(n),i=e.businessObject,o=Ii(e);return yd(r,function(a,s){return s!==mnt?a[s]=i.get(s):a[s]=VGn(o,GB(n.di)),a},{})}function VGn(e,n){return yd(n,function(r,i){return r[i]=e&&e.get(i),r},{})}function ynt(e,n){var r=e.businessObject,i=Ii(e);ht(n,function(o,a){a!==mnt?r.set(a,o):i&&GGn(i,o)})}function GGn(e,n){ht(n,function(r,i){e.set(i,r)})}var WGn=["default"];function YGn(e){var n=Rt({},e);return WGn.forEach(function(r){r in e&&(n[r]=In(n[r]))}),n}function uV(e,n){this._canvas=e,this._modeling=n}uV.$inject=["canvas","modeling"];uV.prototype.execute=function(e){var n=this._canvas,r=e.newRoot,i=r.businessObject,o=n.getRootElement(),a=o.businessObject,s=a.$parent,l=Ii(o);return n.setRootElement(r),n.removeRootElement(o),Ks(s.rootElements,i),i.$parent=s,Cs(s.rootElements,a),a.$parent=null,o.di=null,l.bpmnElement=i,r.di=l,e.oldRoot=o,[]};uV.prototype.revert=function(e){var n=this._canvas,r=e.newRoot,i=r.businessObject,o=e.oldRoot,a=o.businessObject,s=i.$parent,l=Ii(r);return n.setRootElement(o),n.removeRootElement(r),Cs(s.rootElements,i),i.$parent=null,Ks(s.rootElements,a),a.$parent=s,r.di=null,l.bpmnElement=a,o.di=l,[]};function qge(e,n){this._modeling=e,this._spaceTool=n}qge.$inject=["modeling","spaceTool"];qge.prototype.preExecute=function(e){var n=this._spaceTool,r=this._modeling,i=e.shape,o=e.location,a=up(i),s=a===i,l=s?i:i.parent,c=bS(l),u=cl(i);if(u?o==="left"?o="top":o==="right"&&(o="bottom"):o==="top"?o="left":o==="bottom"&&(o="right"),!c.length){var d=u?{x:i.x+ip,y:i.y,width:i.width-ip,height:i.height}:{x:i.x,y:i.y+ip,width:i.width,height:i.height-ip};r.createShape({type:"bpmn:Lane",isHorizontal:u},d,l)}var f=[];Ew(a,function(E){return f.push(E),E.label&&f.push(E.label),E===i?[]:si(E.children,function(w){return w!==i})});var p,h,g,v,y;o==="top"?(p=-120,h=i.y,g=h+10,v="n",y="y"):o==="left"?(p=-120,h=i.x,g=h+10,v="w",y="x"):o==="bottom"?(p=120,h=i.y+i.height,g=h-10,v="s",y="y"):o==="right"&&(p=120,h=i.x+i.width,g=h-10,v="e",y="x");var _=n.calculateAdjustments(f,y,p,g),S=u?{x:0,y:p}:{x:p,y:0};n.makeSpace(_.movingShapes,_.resizingShapes,S,v,g);var b=u?{x:i.x+(s?ip:0),y:h-(o==="top"?120:0),width:i.width-(s?ip:0),height:120}:{x:h-(o==="left"?120:0),y:i.y+(s?ip:0),width:120,height:i.height-(s?ip:0)};e.newLane=r.createShape({type:"bpmn:Lane",isHorizontal:u},b,l)};function Kge(e){this._modeling=e}Kge.$inject=["modeling"];Kge.prototype.preExecute=function(e){var n=this._modeling,r=e.shape,i=e.count,o=bS(r),a=o.length;if(a>i)throw new Error(`more than <${i}> child lanes`);var s=cl(r),l=s?r.height:r.width,c=Math.round(l/i),u,d,f,p;for(p=0;p<i;p++)p===i-1?u=l-c*p:u=c,d=s?{x:r.x+ip,y:r.y+p*c,width:r.width-ip,height:u}:{x:r.x+p*c,y:r.y+ip,width:u,height:r.height-ip},p<a?n.resizeShape(o[p],d):(f={type:"bpmn:Lane",isHorizontal:s},n.createShape(f,d,r))};function HL(e,n){this._modeling=e,this._spaceTool=n}HL.$inject=["modeling","spaceTool"];HL.prototype.preExecute=function(e){var n=e.shape,r=e.newBounds,i=e.balanced;i!==!1?this.resizeBalanced(n,r):this.resizeSpace(n,r)};HL.prototype.resizeBalanced=function(e,n){var r=this._modeling,i=Szn(e,n);r.resizeShape(e,n),i.forEach(function(o){r.resizeShape(o.shape,o.newBounds)})};HL.prototype.resizeSpace=function(e,n){var r=this._spaceTool,i=br(e),o=br(n),a=ytt(o,i),s=up(e),l=[],c=[];Ew(s,function(g){return l.push(g),(Fe(g,"bpmn:Lane")||Fe(g,"bpmn:Participant"))&&c.push(g),g.children});var u,d,f,p,h;(a.bottom||a.top)&&(u=a.bottom||a.top,d=e.y+(a.bottom?e.height:0)+(a.bottom?-10:10),f=a.bottom?"s":"n",p=a.top>0||a.bottom<0?-u:u,h=r.calculateAdjustments(l,"y",p,d),r.makeSpace(h.movingShapes,h.resizingShapes,{x:0,y:u},f)),(a.left||a.right)&&(u=a.right||a.left,d=e.x+(a.right?e.width:0)+(a.right?-10:100),f=a.right?"e":"w",p=a.left>0||a.right<0?-u:u,h=r.calculateAdjustments(c,"x",p,d),r.makeSpace(h.movingShapes,h.resizingShapes,{x:u,y:0},f))};var sD="flowNodeRef",Xge="lanes";function zL(e){this._elementRegistry=e}zL.$inject=["elementRegistry"];zL.prototype._computeUpdates=function(e,n){var r=[],i=[],o={},a=[];function s(d,f){var p=br(f),h={x:d.x+d.width/2,y:d.y+d.height/2};return h.x>p.left&&h.x<p.right&&h.y>p.top&&h.y<p.bottom}function l(d){r.indexOf(d)===-1&&(a.push(d),r.push(d))}function c(d){var f=up(d);return o[f.id]||(o[f.id]=Gz(f)),o[f.id]}function u(d){if(!d.parent)return[];var f=c(d);return f.filter(function(p){return s(d,p)}).map(function(p){return p.businessObject})}return n.forEach(function(d){var f=up(d);if(!(!f||r.indexOf(f)!==-1)){var p=f.children.filter(function(h){return Fe(h,"bpmn:FlowNode")});p.forEach(l),r.push(f)}}),e.forEach(l),a.forEach(function(d){var f=d.businessObject,p=f.get(Xge),h=p.slice(),g=u(d);i.push({flowNode:f,remove:h,add:g})}),n.forEach(function(d){var f=d.businessObject;d.parent||f.get(sD).forEach(function(p){i.push({flowNode:p,remove:[f],add:[]})})}),i};zL.prototype.execute=function(e){var n=e.updates;return n||(n=e.updates=this._computeUpdates(e.flowNodeShapes,e.laneShapes)),n.forEach(function(r){var i=r.flowNode,o=i.get(Xge);r.remove.forEach(function(a){Cs(o,a),Cs(a.get(sD),i)}),r.add.forEach(function(a){Ks(o,a),Ks(a.get(sD),i)})}),[]};zL.prototype.revert=function(e){var n=e.updates;return n.forEach(function(r){var i=r.flowNode,o=i.get(Xge);r.add.forEach(function(a){Cs(o,a),Cs(a.get(sD),i)}),r.remove.forEach(function(a){Ks(o,a),Ks(a.get(sD),i)})}),[]};function dV(e){this._moddle=e}dV.$inject=["moddle"];dV.prototype.execute=function(e){var n=this._moddle.ids,r=e.id,i=e.element,o=e.claiming;return o?n.claim(r,i):n.unclaim(r),[]};dV.prototype.revert=function(e){var n=this._moddle.ids,r=e.id,i=e.element,o=e.claiming;return o?n.unclaim(r):n.claim(r,i),[]};var qGn={fill:void 0,stroke:void 0};function Qge(e){this._commandStack=e,this._normalizeColor=function(n){if(n){if(vd(n)){var r=KGn(n);if(r)return r}throw new Error(`invalid color value: ${n}`)}}}Qge.$inject=["commandStack"];Qge.prototype.postExecute=function(e){var n=e.elements,r=e.colors||qGn,i=this,o={};"fill"in r&&Rt(o,{"background-color":this._normalizeColor(r.fill)}),"stroke"in r&&Rt(o,{"border-color":this._normalizeColor(r.stroke)}),ht(n,function(a){var s=wo(a)?sg(o,["border-color"]):o,l=Ii(a);if(XGn(s),Ni(a))i._commandStack.execute("element.updateModdleProperties",{element:a,moddleElement:l.label,properties:{color:o["border-color"]}});else{if(!ii(l,["bpmndi:BPMNEdge","bpmndi:BPMNShape"]))return;i._commandStack.execute("element.updateProperties",{element:a,properties:{di:s}})}})};function KGn(e){var n=document.createElement("canvas").getContext("2d");return n.fillStyle="transparent",n.fillStyle=e,/^#[0-9a-fA-F]{6}$/.test(n.fillStyle)?n.fillStyle:null}function XGn(e){"border-color"in e&&(e.stroke=e["border-color"]),"background-color"in e&&(e.fill=e["background-color"])}var QGn={width:0,height:0};function _nt(e,n,r){function i(c,u){var d=c.label||c,f=c.labelTarget||c;return j7n(d,u),[d,f]}function o(c){var u=c.element,d=u.businessObject,f=c.newLabel;if(!Ni(u)&&CC(u)&&!Nz(u)&&!jDe(f)){var p=7,h=Phe(u);h={x:h.x,y:h.y+p},e.createLabel(u,h,{id:d.id+"_label",businessObject:d,di:u.di})}}function a(c){return c.oldLabel=lg(c.element),i(c.element,c.newLabel)}function s(c){return i(c.element,c.oldLabel)}function l(c){var u=c.element,d=u.label||u,f=c.newLabel,p=c.newBounds,h=c.hints||{};if(!(!Ni(d)&&!Fe(d,"bpmn:TextAnnotation"))){if(Ni(d)&&jDe(f)){h.removeShape!==!1&&e.removeShape(d,{unsetLabel:!1});return}var g=lg(u);typeof p>"u"&&(p=n.getExternalLabelBounds(d,g)),p&&e.resizeShape(d,p,QGn)}}this.preExecute=o,this.execute=a,this.revert=s,this.postExecute=l}_nt.$inject=["modeling","textRenderer","bpmnFactory"];function jDe(e){return!e||!e.trim()}function Cc(e,n,r,i){To.call(this,e,n,r),this._bpmnRules=i}Zn(Cc,To);Cc.$inject=["eventBus","elementFactory","commandStack","bpmnRules"];Cc.prototype.getHandlers=function(){var e=To.prototype.getHandlers.call(this);return e["element.updateModdleProperties"]=jL,e["element.updateProperties"]=UL,e["canvas.updateRoot"]=uV,e["lane.add"]=qge,e["lane.resize"]=HL,e["lane.split"]=Kge,e["lane.updateRefs"]=zL,e["id.updateClaim"]=dV,e["element.setColor"]=Qge,e["element.updateLabel"]=_nt,e};Cc.prototype.updateLabel=function(e,n,r,i){this._commandStack.execute("element.updateLabel",{element:e,newLabel:n,newBounds:r,hints:i||{}})};Cc.prototype.connect=function(e,n,r,i){var o=this._bpmnRules;if(r||(r=o.canConnect(e,n)),!!r)return this.createConnection(e,n,r,e.parent,i)};Cc.prototype.updateModdleProperties=function(e,n,r){this._commandStack.execute("element.updateModdleProperties",{element:e,moddleElement:n,properties:r})};Cc.prototype.updateProperties=function(e,n){this._commandStack.execute("element.updateProperties",{element:e,properties:n})};Cc.prototype.resizeLane=function(e,n,r){this._commandStack.execute("lane.resize",{shape:e,newBounds:n,balanced:r})};Cc.prototype.addLane=function(e,n){var r={shape:e,location:n};return this._commandStack.execute("lane.add",r),r.newLane};Cc.prototype.splitLane=function(e,n){this._commandStack.execute("lane.split",{shape:e,count:n})};Cc.prototype.makeCollaboration=function(){var e=this._create("root",{type:"bpmn:Collaboration"}),n={newRoot:e};return this._commandStack.execute("canvas.updateRoot",n),e};Cc.prototype.makeProcess=function(){var e=this._create("root",{type:"bpmn:Process"}),n={newRoot:e};return this._commandStack.execute("canvas.updateRoot",n),e};Cc.prototype.updateLaneRefs=function(e,n){this._commandStack.execute("lane.updateRefs",{flowNodeShapes:e,laneShapes:n})};Cc.prototype.claimId=function(e,n){this._commandStack.execute("id.updateClaim",{id:e,element:n,claiming:!0})};Cc.prototype.unclaimId=function(e,n){this._commandStack.execute("id.updateClaim",{id:e,element:n})};Cc.prototype.setColor=function(e,n){e.length||(e=[e]),this._commandStack.execute("element.setColor",{elements:e,colors:n})};function bnt(){}bnt.prototype.layoutConnection=function(e,n){return n=n||{},[n.connectionStart||Mr(n.source||e.source),n.connectionEnd||Mr(n.target||e.target)]};var t5=20,ZGn=5,sj=Math.round,UDe=20,JGn={"h:h":20,"v:v":20,"h:v":-10,"v:h":-10};function eWn(e,n){return!{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/./,v:/./}[n].test(e)}function tWn(e,n){return{t:/top/,r:/right/,b:/bottom/,l:/left/,h:/left|right/,v:/top|bottom/}[e].test(n)}function Snt(e,n,r){var i=_c(n,e,ZGn),o=r.split(":")[0],a=sj((n.x-e.x)/2+e.x),s=sj((n.y-e.y)/2+e.y),l,c,u=tWn(o,i),d=/h|r|l/.test(o),f=!1,p=!1;return u?(l=d?{x:a,y:e.y}:{x:e.x,y:s},c=d?"h:h":"v:v"):(f=eWn(i,o),c=d?"h:v":"v:h",f?d?(p=s===e.y,l={x:e.x+t5*(/l/.test(o)?-1:1),y:p?s+t5:s}):(p=a===e.x,l={x:p?a+t5:a,y:e.y+t5*(/t/.test(o)?-1:1)}):l={x:a,y:s}),{waypoints:Zge(e,l,c).concat(l),directions:c,turnNextDirections:p}}function nWn(e,n,r){return Snt(e,n,r)}function rWn(e,n,r){var i=Snt(n,e,HDe(r));return{waypoints:i.waypoints.slice().reverse(),directions:HDe(i.directions),turnNextDirections:i.turnNextDirections}}function iWn(e,n){var r=e.directions.split(":")[1],i=n.directions.split(":")[0];e.turnNextDirections&&(r=r=="h"?"v":"h"),n.turnNextDirections&&(i=i=="h"?"v":"h");var o=r+":"+i,a=Zge(e.waypoints[e.waypoints.length-1],n.waypoints[0],o);return{waypoints:a,directions:o}}function HDe(e){return e.split(":").reverse().join(":")}function oWn(e,n,r){var i=sj((n.x-e.x)/2+e.x),o=sj((n.y-e.y)/2+e.y);if(r==="h:v")return[{x:n.x,y:e.y}];if(r==="v:h")return[{x:e.x,y:n.y}];if(r==="h:h")return[{x:i,y:e.y},{x:i,y:n.y}];if(r==="v:v")return[{x:e.x,y:o},{x:n.x,y:o}];throw new Error("invalid directions: can only handle varians of [hv]:[hv]")}function Zge(e,n,r){if(r=r||"h:h",!hWn(r))throw new Error("unknown directions: <"+r+">: must be specified as <start>:<end> with start/end in { h,v,t,r,b,l }");if(Ent(r)){var i=nWn(e,n,r),o=rWn(e,n,r),a=iWn(i,o);return[].concat(i.waypoints,a.waypoints,o.waypoints)}return oWn(e,n,r)}function aWn(e,n,r){var i=Zge(e,n,r);return i.unshift(e),i.push(n),Cnt(i)}function sWn(e,n,r,i,o){var a=o&&o.preferredLayouts||[],s=h8n(a,"straight")[0]||"h:h",l=JGn[s]||0,c=_c(e,n,l),u=pWn(c,s);r=r||Mr(e),i=i||Mr(n);var d=u.split(":"),f=VDe(r,e,d[0],gWn(c)),p=VDe(i,n,d[1],c);return aWn(f,p,u)}function lWn(e,n,r,i,o,a){zr(r)&&(o=r,a=i,r=Mr(e),i=Mr(n)),a=Rt({preferredLayouts:[]},a),o=o||[];var s=a.preferredLayouts,l=s.indexOf("straight")!==-1,c;return c=l&&uWn(e,n,r,i,a),c||(c=a.connectionEnd&&fWn(n,e,i,o),c)||(c=a.connectionStart&&dWn(e,n,r,o),c)?c:!a.connectionStart&&!a.connectionEnd&&o&&o.length?o:sWn(e,n,r,i,a)}function cWn(e,n,r){return e>=n&&e<=r}function zDe(e,n,r){var i={x:"width",y:"height"};return cWn(n[e],r[e],r[e]+r[i[e]])}function uWn(e,n,r,i,o){var a={},s,l;return l=_c(e,n),/^(top|bottom|left|right)$/.test(l)?(/top|bottom/.test(l)&&(s="x"),/left|right/.test(l)&&(s="y"),o.preserveDocking==="target"?zDe(s,i,e)?(a[s]=i[s],[{x:a.x!==void 0?a.x:r.x,y:a.y!==void 0?a.y:r.y,original:{x:a.x!==void 0?a.x:r.x,y:a.y!==void 0?a.y:r.y}},{x:i.x,y:i.y}]):null:zDe(s,r,n)?(a[s]=r[s],[{x:r.x,y:r.y},{x:a.x!==void 0?a.x:i.x,y:a.y!==void 0?a.y:i.y,original:{x:a.x!==void 0?a.x:i.x,y:a.y!==void 0?a.y:i.y}}]):null):null}function dWn(e,n,r,i){return Jge(e,n,r,i)}function fWn(e,n,r,i){var o=i.slice().reverse();return o=Jge(e,n,r,o),o?o.reverse():null}function Jge(e,n,r,i){function o(d){return d.length<3?!0:d.length>4?!1:!!ki(d,function(f,p){var h=d[p-1];return h&&bL(f,h)<3})}function a(d,f,p){var h=ry(f,d);switch(h){case"v":return{x:p.x,y:d.y};case"h":return{x:d.x,y:p.y}}return{x:d.x,y:d.y}}function s(d,f,p){var h;for(h=d.length-2;h!==0;h--)if(BPe(d[h],f,UDe)||BPe(d[h],p,UDe))return d.slice(h);return d}if(o(i))return null;var l=i[0],c=i.slice(),u;return c[0]=r,c[1]=a(c[1],l,r),u=s(c,e,n),u!==c&&(c=Jge(e,n,r,u)),c&&ry(c)?null:c}function pWn(e,n){if(Ent(n))return n;switch(e){case"intersect":return"t:t";case"top":case"bottom":return"v:v";case"left":case"right":return"h:h";default:return n}}function hWn(e){return e&&/^h|v|t|r|b|l:h|v|t|r|b|l$/.test(e)}function Ent(e){return e&&/t|r|b|l/.test(e)}function gWn(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 VDe(e,n,r,i){if(r==="h"&&(r=/left/.test(i)?"l":"r"),r==="v"&&(r=/top/.test(i)?"t":"b"),r==="t")return{original:e,x:e.x,y:n.y};if(r==="r")return{original:e,x:n.x+n.width,y:e.y};if(r==="b")return{original:e,x:e.x,y:n.y+n.height};if(r==="l")return{original:e,x:n.x,y:e.y};throw new Error("unexpected dockingDirection: <"+r+">")}function Cnt(e){return e.reduce(function(n,r,i){var o=n[n.length-1],a=e[i+1];return She(o,a,r,0)||n.push(r),n},[])}var mWn=-10,vWn=40,yWn={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},_Wn={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},eme={top:"bottom","top-right":"bottom-left","top-left":"bottom-right",right:"left",bottom:"top","bottom-right":"top-left","bottom-left":"top-right",left:"right"},y2={top:"t",right:"r",bottom:"b",left:"l"};function fV(e){this._elementRegistry=e}Zn(fV,bnt);fV.prototype.layoutConnection=function(e,n){n||(n={});var r=n.source||e.source,i=n.target||e.target,o=n.waypoints||e.waypoints,a=n.connectionStart,s=n.connectionEnd,l=this._elementRegistry,c,u;if(a||(a=GDe(o&&o[0],r)),s||(s=GDe(o&&o[o.length-1],i)),(Fe(e,"bpmn:Association")||Fe(e,"bpmn:DataAssociation"))&&o&&!WDe(r,i))return[].concat([a],o.slice(1,-1),[s]);var d=qet(r,l)?yWn:_Wn;return Fe(e,"bpmn:MessageFlow")?c=SWn(r,i,d):(Fe(e,"bpmn:SequenceFlow")||WDe(r,i))&&(r===i?c={preferredLayouts:OWn(r,e,d)}:Fe(r,"bpmn:BoundaryEvent")?c={preferredLayouts:RWn(r,i,s,d)}:lD(r)||lD(i)?c={preferredLayouts:d.subProcess,preserveDocking:CWn(r)}:Fe(r,"bpmn:Gateway")?c={preferredLayouts:d.fromGateway}:Fe(i,"bpmn:Gateway")?c={preferredLayouts:d.toGateway}:c={preferredLayouts:d.default}),c&&(c=Rt(c,n),u=Cnt(lWn(r,i,a,s,o,c))),u||[a,s]};function bWn(e){var n=e.host;return _c(Mr(e),n,mWn)}function SWn(e,n,r){return{preferredLayouts:r.messageFlow,preserveDocking:EWn(e,n)}}function EWn(e,n){return Fe(n,"bpmn:Participant")?"source":Fe(e,"bpmn:Participant")?"target":lD(n)?"source":lD(e)||Fe(n,"bpmn:Event")?"target":Fe(e,"bpmn:Event")?"source":null}function CWn(e){return lD(e)?"target":"source"}function GDe(e,n){return e?e.original||e:Mr(n)}function WDe(e,n){return Fe(n,"bpmn:Activity")&&Fe(e,"bpmn:BoundaryEvent")&&n.businessObject.isForCompensation}function lD(e){return Fe(e,"bpmn:SubProcess")&&pi(e)}function d1(e,n){return e===n}function wWn(e,n){return n.indexOf(e)!==-1}function hR(e){var n=/right|left/.exec(e);return n&&n[0]}function gR(e){var n=/top|bottom/.exec(e);return n&&n[0]}function YDe(e,n){return eme[e]===n}function xWn(e,n){var r=hR(e),i=eme[r];return n.indexOf(i)!==-1}function TWn(e,n){var r=gR(e),i=eme[r];return n.indexOf(i)!==-1}function wnt(e){return e==="right"||e==="left"}function OWn(e,n,r){var i=n.waypoints,o=i&&i.length&&_c(i[0],e);return o==="top"?r.loop.fromTop:o==="right"?r.loop.fromRight:o==="left"?r.loop.fromLeft:r.loop.fromBottom}function RWn(e,n,r,i){var o=Mr(e),a=Mr(n),s=bWn(e),l,c,u=d1(e.host,n),d=wWn(s,["top","right","bottom","left"]),f=_c(a,o,{x:e.width/2+n.width/2,y:e.height/2+n.height/2});return u?IWn(s,d,e,n,r,i):(l=NWn(s,f,d,i.isHorizontal),c=MWn(s,f,d,i.isHorizontal),[l+":"+c])}function IWn(e,n,r,i,o,a){var s=n?e:a.isHorizontal?gR(e):hR(e),l=y2[s],c;return n?wnt(e)?c=qDe("y",r,i,o)?"h":a.boundaryLoop.alternateHorizontalSide:c=qDe("x",r,i,o)?"v":a.boundaryLoop.alternateVerticalSide:c=a.boundaryLoop.default,[l+":"+c]}function qDe(e,n,r,i){var o=vWn;return!(vJ(e,i,r,o)||vJ(e,i,{x:r.x+r.width,y:r.y+r.height},o)||vJ(e,i,Mr(n),o))}function vJ(e,n,r,i){return Math.abs(n[e]-r[e])<i}function NWn(e,n,r,i){if(r)return y2[e];var o=gR(e),a=hR(e),s=gR(n),l=hR(n);if(i){if(d1(o,s)||YDe(a,l))return y2[o]}else if(d1(a,l)||YDe(o,s))return y2[a];return y2[i?a:o]}function MWn(e,n,r,i){return r?wnt(e)?xWn(e,n)||d1(e,n)?"h":"v":TWn(e,n)||d1(e,n)?"v":"h":i?d1(gR(e),gR(n))?"h":"v":d1(hR(e),hR(n))?"v":"h"}fV.$inject=["elementRegistry"];function KDe(e){return Rt({original:e.point.original||e.point},e.actual)}function xS(e,n){this._elementRegistry=e,this._graphicsFactory=n}xS.$inject=["elementRegistry","graphicsFactory"];xS.prototype.getCroppedWaypoints=function(e,n,r){n=n||e.source,r=r||e.target;var i=this.getDockingPoint(e,n,!0),o=this.getDockingPoint(e,r),a=e.waypoints.slice(i.idx+1,o.idx);return a.unshift(KDe(i)),a.push(KDe(o)),a};xS.prototype.getDockingPoint=function(e,n,r){var i=e.waypoints,o,a,s;return o=r?0:i.length-1,a=i[o],s=this._getIntersection(n,e,r),{point:a,actual:s||a,idx:o}};xS.prototype._getIntersection=function(e,n,r){var i=this._getShapePath(e),o=this._getConnectionPath(n);return bae(i,o,r)};xS.prototype._getConnectionPath=function(e){return this._graphicsFactory.getConnectionPath(e)};xS.prototype._getShapePath=function(e){return this._graphicsFactory.getShapePath(e)};xS.prototype._getGfx=function(e){return this._elementRegistry.getGraphics(e)};const xnt={__init__:["modeling","bpmnUpdater"],__depends__:[TVn,VVn,WVn,YVn,ont,SGn,CGn,IGn,Tg,Ahe,lnt],bpmnFactory:["type",Kp],bpmnUpdater:["type",Od],elementFactory:["type",ES],modeling:["type",Cc],layouter:["type",fV],connectionDocking:["type",xS]},XDe=Math.round;function pV(e,n,r,i,o,a){this._complexPreview=e,this._connectionDocking=n,this._elementFactory=r,this._eventBus=i,this._layouter=o,this._rules=a}pV.prototype.create=function(e,n,r){const i=this._complexPreview,o=this._connectionDocking,a=this._elementFactory,s=this._eventBus,l=this._layouter,c=this._rules,u=a.createShape(Rt({type:n},r)),d=s.fire("autoPlace",{source:e,shape:u});if(!d)return;Rt(u,{x:d.x-XDe(u.width/2),y:d.y-XDe(u.height/2)});const f=c.allowed("connection.create",{source:e,target:u,hints:{targetParent:e.parent}});let p=null;f&&(p=a.createConnection(f),p.waypoints=l.layoutConnection(p,{source:e,target:u}),p.waypoints=o.getCroppedWaypoints(p,e,u)),i.create({created:[u,p].filter(h=>!JA(h))})};pV.prototype.cleanUp=function(){this._complexPreview.cleanUp()};pV.$inject=["complexPreview","connectionDocking","elementFactory","eventBus","layouter","rules"];const PWn={__depends__:[Whe,tzn,xnt],__init__:["appendPreview"],appendPreview:["type",pV]};var QDe=Math.min,ZDe=Math.max;function yJ(e){e.preventDefault()}function vP(e){e.stopPropagation()}function AWn(e){return e.nodeType===Node.TEXT_NODE}function DWn(e){return[].slice.call(e)}function Rg(e){this.container=e.container,this.parent=Ko('<div class="djs-direct-editing-parent"><div class="djs-direct-editing-content" contenteditable="true"></div></div>'),this.content=Co("[contenteditable]",this.parent),this.keyHandler=e.keyHandler||function(){},this.resizeHandler=e.resizeHandler||function(){},this.autoResize=Eu(this.autoResize,this),this.handlePaste=Eu(this.handlePaste,this)}Rg.prototype.create=function(e,n,r,i){var o=this,a=this.parent,s=this.content,l=this.container;i=this.options=i||{},n=this.style=n||{};var c=sg(n,["width","height","maxWidth","maxHeight","minWidth","minHeight","left","top","backgroundColor","position","overflow","border","wordWrap","textAlign","outline","transform"]);Rt(a.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"},c);var u=sg(n,["fontFamily","fontSize","fontWeight","lineHeight","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);return Rt(s.style,{boxSizing:"border-box",width:"100%",outline:"none",wordWrap:"break-word"},u),i.centerVertically&&Rt(s.style,{position:"absolute",top:"50%",transform:"translate(0, -50%)"},u),s.innerText=r,Ur.bind(s,"keydown",this.keyHandler),Ur.bind(s,"mousedown",vP),Ur.bind(s,"paste",o.handlePaste),i.autoResize&&Ur.bind(s,"input",this.autoResize),i.resizable&&this.resizable(n),l.appendChild(a),this.setSelection(s.lastChild,s.lastChild&&s.lastChild.length),a};Rg.prototype.handlePaste=function(e){var n=this.options,r=this.style;e.preventDefault();var i;if(e.clipboardData?i=e.clipboardData.getData("text/plain"):i=window.clipboardData.getData("Text"),this.insertText(i),n.autoResize){var o=this.autoResize(r);o&&this.resizeHandler(o)}};Rg.prototype.insertText=function(e){e=kWn(e);var n=document.execCommand("insertText",!1,e);n||this._insertTextIE(e)};Rg.prototype._insertTextIE=function(e){var n=this.getSelection(),r=n.startContainer,i=n.endContainer,o=n.startOffset,a=n.endOffset,s=n.commonAncestorContainer,l=DWn(s.childNodes),c,u;if(AWn(s)){var d=r.textContent;r.textContent=d.substring(0,o)+e+d.substring(a),c=r,u=o+e.length}else if(r===this.content&&i===this.content){var f=document.createTextNode(e);this.content.insertBefore(f,l[o]),c=f,u=f.textContent.length}else{var p=l.indexOf(r),h=l.indexOf(i);l.forEach(function(g,v){v===p?g.textContent=r.textContent.substring(0,o)+e+i.textContent.substring(a):v>p&&v<=h&&Bm(g)}),c=r,u=o+e.length}c&&u!==void 0&&setTimeout(function(){self.setSelection(c,u)})};Rg.prototype.autoResize=function(){var e=this.parent,n=this.content,r=parseInt(this.style.fontSize)||12;if(n.scrollHeight>e.offsetHeight||n.scrollHeight<e.offsetHeight-r){var i=e.getBoundingClientRect(),o=n.scrollHeight;e.style.height=o+"px",this.resizeHandler({width:i.width,height:i.height,dx:0,dy:o-i.height})}};Rg.prototype.resizable=function(){var e=this,n=this.parent,r=this.resizeHandle,i=parseInt(this.style.minWidth)||0,o=parseInt(this.style.minHeight)||0,a=parseInt(this.style.maxWidth)||1/0,s=parseInt(this.style.maxHeight)||1/0;if(!r){r=this.resizeHandle=Ko('<div class="djs-direct-editing-resize-handle"></div>');var l,c,u,d,f=function(g){yJ(g),vP(g),l=g.clientX,c=g.clientY;var v=n.getBoundingClientRect();u=v.width,d=v.height,Ur.bind(document,"mousemove",p),Ur.bind(document,"mouseup",h)},p=function(g){yJ(g),vP(g);var v=QDe(ZDe(u+g.clientX-l,i),a),y=QDe(ZDe(d+g.clientY-c,o),s);n.style.width=v+"px",n.style.height=y+"px",e.resizeHandler({width:u,height:d,dx:g.clientX-l,dy:g.clientY-c})},h=function(g){yJ(g),vP(g),Ur.unbind(document,"mousemove",p,!1),Ur.unbind(document,"mouseup",h,!1)};Ur.bind(r,"mousedown",f)}Rt(r.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"}),n.appendChild(r)};Rg.prototype.destroy=function(){var e=this.parent,n=this.content,r=this.resizeHandle;n.innerText="",e.removeAttribute("style"),n.removeAttribute("style"),Ur.unbind(n,"keydown",this.keyHandler),Ur.unbind(n,"mousedown",vP),Ur.unbind(n,"input",this.autoResize),Ur.unbind(n,"paste",this.handlePaste),r&&(r.removeAttribute("style"),Bm(r)),Bm(e)};Rg.prototype.getValue=function(){return this.content.innerText.trim()};Rg.prototype.getSelection=function(){var e=window.getSelection(),n=e.getRangeAt(0);return n};Rg.prototype.setSelection=function(e,n){var r=document.createRange();e===null?r.selectNodeContents(this.content):(r.setStart(e,n),r.setEnd(e,n));var i=window.getSelection();i.removeAllRanges(),i.addRange(r)};function kWn(e){return e.replace(/\r\n|\r|\n/g,`
`)}function Xp(e,n){this._eventBus=e,this._canvas=n,this._providers=[],this._textbox=new Rg({container:n.getContainer(),keyHandler:Eu(this._handleKey,this),resizeHandler:Eu(this._handleResize,this)})}Xp.$inject=["eventBus","canvas"];Xp.prototype.registerProvider=function(e){this._providers.push(e)};Xp.prototype.isActive=function(e){return!!(this._active&&(!e||this._active.element===e))};Xp.prototype.cancel=function(){this._active&&(this._fire("cancel"),this.close())};Xp.prototype._fire=function(e,n){this._eventBus.fire("directEditing."+e,n||{active:this._active})};Xp.prototype.close=function(){this._textbox.destroy(),this._fire("deactivate"),this._active=null,this.resizable=void 0,this._canvas.restoreFocus&&this._canvas.restoreFocus()};Xp.prototype.complete=function(){var e=this._active;if(e){var n,r=e.context.bounds,i=this.$textbox.getBoundingClientRect(),o=this.getValue(),a=e.context.text;(o!==a||i.height!==r.height||i.width!==r.width)&&(n=this._textbox.container.getBoundingClientRect(),e.provider.update(e.element,o,e.context.text,{x:i.left-n.left,y:i.top-n.top,width:i.width,height:i.height})),this._fire("complete"),this.close()}};Xp.prototype.getValue=function(){return this._textbox.getValue()};Xp.prototype._handleKey=function(e){e.stopPropagation();var n=e.keyCode||e.charCode;if(n===27)return e.preventDefault(),this.cancel();if(n===13&&!e.shiftKey)return e.preventDefault(),this.complete()};Xp.prototype._handleResize=function(e){this._fire("resize",e)};Xp.prototype.activate=function(e){this.isActive()&&this.cancel();var n,r=ki(this._providers,function(i){return(n=i.activate(e))?i:null});return n&&(this.$textbox=this._textbox.create(n.bounds,n.style,n.text,n.options),this._active={element:e,context:n,provider:r},n.options&&n.options.resizable&&(this.resizable=!0),this._fire("activate")),!!n};const Tnt={__depends__:[kz],__init__:["directEditing"],directEditing:["type",Xp]};function LWn(e){return function(n){var r=n.target,i=In(e),o=i.eventDefinitions&&i.eventDefinitions[0],a=i.$type===r.type,s=(o&&o.$type)===r.eventDefinitionType,l=!!r.triggeredByEvent==!!i.triggeredByEvent,c=r.isExpanded===void 0||r.isExpanded===pi(e);return!a||!s||!l||!c}}var $Wn=[{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"}}],FWn=[{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"}}],BWn=[{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"}}],jWn=[{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"}}],UWn=[{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"}}],HWn=[{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}}],zWn=[{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}}],Ont=[{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}}],VWn=Ont,JDe=[{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}}],GWn=[{label:"Data store reference",actionName:"replace-with-data-store-reference",className:"bpmn-icon-data-store",target:{type:"bpmn:DataStoreReference"}}],WWn=[{label:"Data object reference",actionName:"replace-with-data-object-reference",className:"bpmn-icon-data-object",target:{type:"bpmn:DataObjectReference"}}],YWn=[{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}}],qWn=[{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}}],KWn=[{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"}],XWn=[{label:"Expanded pool/participant",actionName:"replace-with-expanded-pool",className:"bpmn-icon-participant",target:{type:"bpmn:Participant",isExpanded:!0}},{label:function(e){var n="Empty pool/participant";return e.children&&e.children.length&&(n+=" (removes content)"),n},actionName:"replace-with-collapsed-pool",className:"bpmn-icon-lane",target:{type:"bpmn:Participant",isExpanded:!1}}];const eke={"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 Qp(e,n,r,i,o,a,s,l){this._bpmnFactory=e,this._popupMenu=n,this._modeling=r,this._moddle=i,this._bpmnReplace=o,this._rules=a,this._translate=s,this._moddleCopy=l,this._register()}Qp.$inject=["bpmnFactory","popupMenu","modeling","moddle","bpmnReplace","rules","translate","moddleCopy"];Qp.prototype._register=function(){this._popupMenu.registerProvider("bpmn-replace",this)};Qp.prototype.getPopupMenuEntries=function(e){var n=e.businessObject,r=this._rules,i=[];if(zr(e)||!r.allowed("shape.replace",{element:e}))return{};var o=LWn(e);return Fe(n,"bpmn:DataObjectReference")?this._createEntries(e,GWn):Fe(n,"bpmn:DataStoreReference")&&!Fe(e.parent,"bpmn:Collaboration")?this._createEntries(e,WWn):Fe(n,"bpmn:StartEvent")&&!Fe(n.$parent,"bpmn:SubProcess")?(i=si($Wn,o),this._createEntries(e,i)):Fe(n,"bpmn:Participant")?(i=si(XWn,function(a){return pi(e)!==a.target.isExpanded}),this._createEntries(e,i)):Fe(n,"bpmn:StartEvent")&&zc(n.$parent)?(i=si(qWn,function(a){var s=a.target,l=s.isInterrupting!==!1,c=n.isInterrupting===l;return o(a)||!o(a)&&!c}),this._createEntries(e,i)):Fe(n,"bpmn:StartEvent")&&!zc(n.$parent)&&Fe(n.$parent,"bpmn:SubProcess")?(i=si(FWn,o),this._createEntries(e,i)):Fe(n,"bpmn:EndEvent")?(i=si(jWn,function(a){var s=a.target;return s.eventDefinitionType=="bpmn:CancelEventDefinition"&&!Fe(n.$parent,"bpmn:Transaction")?!1:o(a)}),this._createEntries(e,i)):Fe(n,"bpmn:BoundaryEvent")?(i=si(YWn,function(a){var s=a.target;if(s.eventDefinitionType=="bpmn:CancelEventDefinition"&&!Fe(n.attachedToRef,"bpmn:Transaction"))return!1;var l=s.cancelActivity!==!1,c=n.cancelActivity==l;return o(a)||!o(a)&&!c}),this._createEntries(e,i)):Fe(n,"bpmn:IntermediateCatchEvent")||Fe(n,"bpmn:IntermediateThrowEvent")?(i=si(BWn,o),this._createEntries(e,i)):Fe(n,"bpmn:Gateway")?(i=si(UWn,o),this._createEntries(e,i)):Fe(n,"bpmn:Transaction")?(i=si(Ont,o),this._createEntries(e,i)):zc(n)&&pi(e)?(i=si(VWn,o),this._createEntries(e,i)):Fe(n,"bpmn:AdHocSubProcess")&&pi(e)?(i=si(zWn,o),this._createEntries(e,i)):Fe(n,"bpmn:SubProcess")&&pi(e)?(i=si(HWn,o),this._createEntries(e,i)):Fe(n,"bpmn:SubProcess")&&!pi(e)?(i=si(JDe,function(a){var s=a.target.type===e.type,l=a.target.isExpanded===!0;return s===l}),this._createEntries(e,i)):Fe(n,"bpmn:SequenceFlow")?this._createSequenceFlowEntries(e,KWn):Fe(n,"bpmn:FlowNode")?(i=si(JDe,o),this._createEntries(e,i)):{}};Qp.prototype.getPopupMenuHeaderEntries=function(e){var n={};return Fe(e,"bpmn:Activity")&&!zc(e)&&(n={...n,...this._getLoopCharacteristicsHeaderEntries(e)}),Fe(e,"bpmn:DataObjectReference")&&(n={...n,...this._getCollectionHeaderEntries(e)}),Fe(e,"bpmn:Participant")&&(n={...n,...this._getParticipantMultiplicityHeaderEntries(e)}),Rtt(e)&&(n={...n,...this._getNonInterruptingHeaderEntries(e)}),n};Qp.prototype._createEntries=function(e,n){var r={},i=this;return ht(n,function(o){r[o.actionName]=i._createEntry(o,e)}),r};Qp.prototype._createSequenceFlowEntries=function(e,n){var r=In(e),i={},o=this._modeling,a=this._moddle,s=this;return ht(n,function(l){switch(l.actionName){case"replace-with-default-flow":r.sourceRef.default!==r&&(Fe(r.sourceRef,"bpmn:ExclusiveGateway")||Fe(r.sourceRef,"bpmn:InclusiveGateway")||Fe(r.sourceRef,"bpmn:ComplexGateway")||Fe(r.sourceRef,"bpmn:Activity"))&&(i={...i,[l.actionName]:s._createEntry(l,e,function(){o.updateProperties(e.source,{default:r})})});break;case"replace-with-conditional-flow":!r.conditionExpression&&Fe(r.sourceRef,"bpmn:Activity")&&(i={...i,[l.actionName]:s._createEntry(l,e,function(){var c=a.create("bpmn:FormalExpression",{body:""});o.updateProperties(e,{conditionExpression:c})})});break;default:Fe(r.sourceRef,"bpmn:Activity")&&r.conditionExpression&&(i={...i,[l.actionName]:s._createEntry(l,e,function(){o.updateProperties(e,{conditionExpression:void 0})})}),(Fe(r.sourceRef,"bpmn:ExclusiveGateway")||Fe(r.sourceRef,"bpmn:InclusiveGateway")||Fe(r.sourceRef,"bpmn:ComplexGateway")||Fe(r.sourceRef,"bpmn:Activity"))&&r.sourceRef.default===r&&(i={...i,[l.actionName]:s._createEntry(l,e,function(){o.updateProperties(e.source,{default:void 0})})})}}),i};Qp.prototype._createEntry=function(e,n,r){var i=this._translate,o=this._bpmnReplace.replaceElement,a=function(){return o(n,e.target)},s=e.label;return s&&typeof s=="function"&&(s=s(n)),r=r||a,{label:i(s),className:e.className,action:r}};Qp.prototype._getLoopCharacteristicsHeaderEntries=function(e){var n=this,r=this._translate;function i(u,d){if(d.active){n._modeling.updateProperties(e,{loopCharacteristics:void 0});return}var f=e.businessObject.get("loopCharacteristics");f&&Fe(f,d.options.loopCharacteristics)?n._modeling.updateModdleProperties(e,f,{isSequential:d.options.isSequential}):(f=n._moddle.create(d.options.loopCharacteristics,{isSequential:d.options.isSequential}),n._modeling.updateProperties(e,{loopCharacteristics:f}))}var o=In(e),a=o.loopCharacteristics,s,l,c;return a&&(s=a.isSequential,l=a.isSequential===void 0,c=a.isSequential!==void 0&&!a.isSequential),{"toggle-parallel-mi":{className:"bpmn-icon-parallel-mi-marker",title:r("Parallel multi-instance"),active:c,action:i,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!1}},"toggle-sequential-mi":{className:"bpmn-icon-sequential-mi-marker",title:r("Sequential multi-instance"),active:s,action:i,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!0}},"toggle-loop":{className:"bpmn-icon-loop-marker",title:r("Loop"),active:l,action:i,options:{loopCharacteristics:"bpmn:StandardLoopCharacteristics"}}}};Qp.prototype._getCollectionHeaderEntries=function(e){var n=this,r=this._translate,i=e.businessObject.dataObjectRef;if(!i)return{};function o(s,l){n._modeling.updateModdleProperties(e,i,{isCollection:!l.active})}var a=i.isCollection;return{"toggle-is-collection":{className:"bpmn-icon-parallel-mi-marker",title:r("Collection"),active:a,action:o}}};Qp.prototype._getParticipantMultiplicityHeaderEntries=function(e){var n=this,r=this._bpmnFactory,i=this._translate;function o(s,l){var c=l.active,u;c||(u=r.create("bpmn:ParticipantMultiplicity")),n._modeling.updateProperties(e,{participantMultiplicity:u})}var a=e.businessObject.participantMultiplicity;return{"toggle-participant-multiplicity":{className:"bpmn-icon-parallel-mi-marker",title:i("Participant multiplicity"),active:!!a,action:o}}};Qp.prototype._getNonInterruptingHeaderEntries=function(e){const n=this._translate,r=In(e),i=this,o=Itt(e),a=Fe(e,"bpmn:BoundaryEvent")?eke["intermediate-event-non-interrupting"]:eke["start-event-non-interrupting"],s=!r[o];return{"toggle-non-interrupting":{imageHtml:a,title:n("Toggle non-interrupting"),active:s,action:function(){i._modeling.updateProperties(e,{[o]:!!s})}}}};const QWn={__depends__:[zhe,ont,Whe],__init__:["replaceMenuProvider"],replaceMenuProvider:["type",Qp]};function VL(e,n,r,i,o,a,s,l,c,u,d,f,p){e=e||{},i.registerProvider(this),this._contextPad=i,this._modeling=o,this._elementFactory=a,this._connect=s,this._create=l,this._popupMenu=c,this._canvas=u,this._rules=d,this._translate=f,this._eventBus=r,this._appendPreview=p,e.autoPlace!==!1&&(this._autoPlace=n.get("autoPlace",!1)),r.on("create.end",250,function(h){var g=h.context,v=g.shape;if(!(!rD(h)||!i.isOpen(v))){var y=i.getEntries(v);y.replace&&y.replace.action.click(h,v)}}),r.on("contextPad.close",function(){p.cleanUp()})}VL.$inject=["config.contextPad","injector","eventBus","contextPad","modeling","elementFactory","connect","create","popupMenu","canvas","rules","translate","appendPreview"];VL.prototype.getMultiElementContextPadEntries=function(e){var n=this._modeling,r={};return this._isDeleteAllowed(e)&&Rt(r,{delete:{group:"edit",className:"bpmn-icon-trash",title:this._translate("Delete"),action:{click:function(i,o){n.removeElements(o.slice())}}}}),r};VL.prototype._isDeleteAllowed=function(e){var n=this._rules.allowed("elements.delete",{elements:e});return zr(n)?bw(e,r=>n.includes(r)):n};VL.prototype.getContextPadEntries=function(e){var n=this._contextPad,r=this._modeling,i=this._elementFactory,o=this._connect,a=this._create,s=this._popupMenu,l=this._autoPlace,c=this._translate,u=this._appendPreview,d={};if(e.type==="label")return this._isDeleteAllowed([e])&&Rt(d,g()),d;var f=e.businessObject;function p(b,E){o.start(b,E)}function h(b,E){r.removeElements([E])}function g(){return{delete:{group:"edit",className:"bpmn-icon-trash",title:c("Delete"),action:{click:h}}}}function v(b){var E=5,w=n.getPad(b).html,C=w.getBoundingClientRect(),x={x:C.left,y:C.bottom+E};return x}function y(b,E,w,C){function x(O,M){var P=i.createShape(Rt({type:b},C));a.start(O,P,{source:M})}var T=l?function(O,M){var P=i.createShape(Rt({type:b},C));l.append(M,P)}:x,R=l?function(O,M){return u.create(M,b,C),()=>{u.cleanUp()}}:null;return{group:"model",className:E,title:w,action:{dragstart:x,click:T,hover:R}}}function _(b){return function(E,w){r.splitLane(w,b),n.open(w,!0)}}if(ii(f,["bpmn:Lane","bpmn:Participant"])&&pi(e)){var S=bS(e);Rt(d,{"lane-insert-above":{group:"lane-insert-above",className:"bpmn-icon-lane-insert-above",title:c("Add lane above"),action:{click:function(b,E){r.addLane(E,"top")}}}}),S.length<2&&((cl(e)?e.height>=120:e.width>=120)&&Rt(d,{"lane-divide-two":{group:"lane-divide",className:"bpmn-icon-lane-divide-two",title:c("Divide into two lanes"),action:{click:_(2)}}}),(cl(e)?e.height>=180:e.width>=180)&&Rt(d,{"lane-divide-three":{group:"lane-divide",className:"bpmn-icon-lane-divide-three",title:c("Divide into three lanes"),action:{click:_(3)}}})),Rt(d,{"lane-insert-below":{group:"lane-insert-below",className:"bpmn-icon-lane-insert-below",title:c("Add lane below"),action:{click:function(b,E){r.addLane(E,"bottom")}}}})}return Fe(f,"bpmn:FlowNode")&&(Fe(f,"bpmn:EventBasedGateway")?Rt(d,{"append.receive-task":y("bpmn:ReceiveTask","bpmn-icon-receive-task",c("Append receive task")),"append.message-intermediate-event":y("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-message",c("Append message intermediate catch event"),{eventDefinitionType:"bpmn:MessageEventDefinition"}),"append.timer-intermediate-event":y("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-timer",c("Append timer intermediate catch event"),{eventDefinitionType:"bpmn:TimerEventDefinition"}),"append.condition-intermediate-event":y("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-condition",c("Append conditional intermediate catch event"),{eventDefinitionType:"bpmn:ConditionalEventDefinition"}),"append.signal-intermediate-event":y("bpmn:IntermediateCatchEvent","bpmn-icon-intermediate-event-catch-signal",c("Append signal intermediate catch event"),{eventDefinitionType:"bpmn:SignalEventDefinition"})}):tke(f,"bpmn:BoundaryEvent","bpmn:CompensateEventDefinition")?Rt(d,{"append.compensation-activity":y("bpmn:Task","bpmn-icon-task",c("Append compensation activity"),{isForCompensation:!0})}):!Fe(f,"bpmn:EndEvent")&&!f.isForCompensation&&!tke(f,"bpmn:IntermediateThrowEvent","bpmn:LinkEventDefinition")&&!zc(f)&&Rt(d,{"append.end-event":y("bpmn:EndEvent","bpmn-icon-end-event-none",c("Append end event")),"append.gateway":y("bpmn:ExclusiveGateway","bpmn-icon-gateway-none",c("Append gateway")),"append.append-task":y("bpmn:Task","bpmn-icon-task",c("Append task")),"append.intermediate-event":y("bpmn:IntermediateThrowEvent","bpmn-icon-intermediate-event-none",c("Append intermediate/boundary event"))})),s.isEmpty(e,"bpmn-replace")||Rt(d,{replace:{group:"edit",className:"bpmn-icon-screw-wrench",title:c("Change element"),action:{click:function(b,E){var w=Rt(v(E),{cursor:{x:b.x,y:b.y}});s.open(E,"bpmn-replace",w,{title:c("Change element"),width:300,search:!0})}}}}),Fe(f,"bpmn:SequenceFlow")&&Rt(d,{"append.text-annotation":y("bpmn:TextAnnotation","bpmn-icon-text-annotation",c("Add text annotation"))}),ii(f,["bpmn:FlowNode","bpmn:InteractionNode","bpmn:DataObjectReference","bpmn:DataStoreReference"])&&Rt(d,{"append.text-annotation":y("bpmn:TextAnnotation","bpmn-icon-text-annotation",c("Add text annotation")),connect:{group:"connect",className:"bpmn-icon-connection-multi",title:c("Connect to other element"),action:{click:p,dragstart:p}}}),Fe(f,"bpmn:TextAnnotation")&&Rt(d,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:c("Connect using association"),action:{click:p,dragstart:p}}}),ii(f,["bpmn:DataObjectReference","bpmn:DataStoreReference"])&&Rt(d,{connect:{group:"connect",className:"bpmn-icon-connection-multi",title:c("Connect using data input association"),action:{click:p,dragstart:p}}}),Fe(f,"bpmn:Group")&&Rt(d,{"append.text-annotation":y("bpmn:TextAnnotation","bpmn-icon-text-annotation",c("Add text annotation"))}),this._isDeleteAllowed([e])&&Rt(d,g()),d};function tke(e,n,r){var i=e.$instanceOf(n),o=!1,a=e.eventDefinitions||[];return ht(a,function(s){s.$type===r&&(o=!0)}),i&&o}const ZWn={__depends__:[PWn,Tnt,xet,Tg,Qhe,Jz,QWn],__init__:["contextPadProvider"],contextPadProvider:["type",VL]};var JWn={horizontal:["x","width"],vertical:["y","height"]},nke=5;function E_(e,n){this._modeling=e,this._filters=[],this.registerFilter(function(r){var i=n.allowed("elements.distribute",{elements:r});return zr(i)?i:i?r:[]})}E_.$inject=["modeling","rules"];E_.prototype.registerFilter=function(e){if(typeof e!="function")throw new Error("the filter has to be a function");this._filters.push(e)};E_.prototype.trigger=function(e,n){var r=this._modeling,i,o;if(!(e.length<3)&&(this._setOrientation(n),o=this._filterElements(e),i=this._createGroups(o),!(i.length<=2)))return r.distributeElements(i,this._axis,this._dimension),i};E_.prototype._filterElements=function(e){var n=this._filters,r=this._axis,i=this._dimension,o=[].concat(e);return n.length?(ht(n,function(a){o=a(o,r,i)}),o):e};E_.prototype._createGroups=function(e){var n=[],r=this,i=this._axis,o=this._dimension;if(!i)throw new Error('must have a defined "axis" and "dimension"');var a=Fm(e,i);return ht(a,function(s,l){var c=r._findRange(s,i,o),u,d=n[n.length-1];d&&r._hasIntersection(d.range,c)?n[n.length-1].elements.push(s):(u={range:c,elements:[s]},n.push(u))}),n};E_.prototype._setOrientation=function(e){var n=JWn[e];this._axis=n[0],this._dimension=n[1]};E_.prototype._hasIntersection=function(e,n){return Math.max(e.min,e.max)>=Math.min(n.min,n.max)&&Math.min(e.min,e.max)<=Math.max(n.min,n.max)};E_.prototype._findRange=function(e){var n=e[this._axis],r=e[this._dimension];return{min:n+nke,max:n+r-nke}};const eYn={__init__:["distributeElements"],distributeElements:["type",E_]};function hV(e){Yp.call(this,e)}hV.$inject=["eventBus"];Zn(hV,Yp);hV.prototype.init=function(){this.addRule("elements.distribute",function(e){var n=e.elements;return n=si(n,function(r){var i=ii(r,["bpmn:Association","bpmn:BoundaryEvent","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:Lane","bpmn:MessageFlow","bpmn:SequenceFlow","bpmn:TextAnnotation"]);return!(r.labelTarget||i)}),n=xz(n),n.length<3?!1:n})};var rke={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 GL(e,n,r,i){this._distributeElements=n,this._translate=r,this._popupMenu=e,this._rules=i,e.registerProvider("align-elements",tYn,this)}GL.$inject=["popupMenu","distributeElements","translate","rules"];GL.prototype.getPopupMenuEntries=function(e){var n={};return this._isAllowed(e)&&Rt(n,this._getEntries(e)),n};GL.prototype._isAllowed=function(e){return this._rules.allowed("elements.distribute",{elements:e})};GL.prototype._getEntries=function(e){var n=this._distributeElements,r=this._translate,i=this._popupMenu,o={"distribute-elements-horizontal":{group:"distribute",title:r("Distribute elements horizontally"),className:"bjs-align-elements-menu-entry",imageHtml:rke.horizontal,action:function(a,s){n.trigger(e,"horizontal"),i.close()}},"distribute-elements-vertical":{group:"distribute",title:r("Distribute elements vertically"),imageHtml:rke.vertical,action:function(a,s){n.trigger(e,"vertical"),i.close()}}};return o};const nYn={__depends__:[zhe,eYn],__init__:["bpmnDistributeElements","distributeElementsMenuProvider"],bpmnDistributeElements:["type",hV],distributeElementsMenuProvider:["type",GL]};var Rnt="is not a registered action",rYn="is already registered";function Zp(e,n){this._actions={};var r=this;e.on("diagram.init",function(){r._registerDefaultActions(n),e.fire("editorActions.init",{editorActions:r})})}Zp.$inject=["eventBus","injector"];Zp.prototype._registerDefaultActions=function(e){var n=e.get("commandStack",!1),r=e.get("modeling",!1),i=e.get("selection",!1),o=e.get("zoomScroll",!1),a=e.get("copyPaste",!1),s=e.get("canvas",!1),l=e.get("rules",!1),c=e.get("keyboardMove",!1),u=e.get("keyboardMoveSelection",!1);n&&(this.register("undo",function(){n.undo()}),this.register("redo",function(){n.redo()})),a&&i&&this.register("copy",function(){var d=i.get();if(d.length)return a.copy(d)}),a&&this.register("paste",function(){a.paste()}),o&&this.register("stepZoom",function(d){o.stepZoom(d.value)}),s&&this.register("zoom",function(d){s.zoom(d.value)}),r&&i&&l&&this.register("removeSelection",function(){var d=i.get();if(d.length){var f=l.allowed("elements.delete",{elements:d}),p;f!==!1&&(zr(f)?p=f:p=d,p.length&&r.removeElements(p.slice()))}}),c&&this.register("moveCanvas",function(d){c.moveCanvas(d)}),u&&this.register("moveSelection",function(d){u.moveSelection(d.direction,d.accelerated)})};Zp.prototype.trigger=function(e,n){if(!this._actions[e])throw tme(e,Rnt);return this._actions[e](n)};Zp.prototype.register=function(e,n){var r=this;if(typeof e=="string")return this._registerAction(e,n);ht(e,function(i,o){r._registerAction(o,i)})};Zp.prototype._registerAction=function(e,n){if(this.isRegistered(e))throw tme(e,rYn);this._actions[e]=n};Zp.prototype.unregister=function(e){if(!this.isRegistered(e))throw tme(e,Rnt);this._actions[e]=void 0};Zp.prototype.getActions=function(){return Object.keys(this._actions)};Zp.prototype.isRegistered=function(e){return!!this._actions[e]};function tme(e,n){return new Error(e+" "+n)}const iYn={__init__:["editorActions"],editorActions:["type",Zp]};function gV(e){e.invoke(Zp,this)}Zn(gV,Zp);gV.$inject=["injector"];gV.prototype._registerDefaultActions=function(e){Zp.prototype._registerDefaultActions.call(this,e);var n=e.get("canvas",!1),r=e.get("elementRegistry",!1),i=e.get("selection",!1),o=e.get("spaceTool",!1),a=e.get("lassoTool",!1),s=e.get("handTool",!1),l=e.get("globalConnect",!1),c=e.get("distributeElements",!1),u=e.get("alignElements",!1),d=e.get("directEditing",!1),f=e.get("searchPad",!1),p=e.get("modeling",!1),h=e.get("contextPad",!1);n&&r&&i&&this._registerAction("selectElements",function(){var g=n.getRootElement(),v=r.filter(function(y){return y!==g});return i.select(v),v}),o&&this._registerAction("spaceTool",function(){o.toggle()}),a&&this._registerAction("lassoTool",function(){a.toggle()}),s&&this._registerAction("handTool",function(){s.toggle()}),l&&this._registerAction("globalConnectTool",function(){l.toggle()}),i&&c&&this._registerAction("distributeElements",function(g){var v=i.get(),y=g.type;v.length&&c.trigger(v,y)}),i&&u&&this._registerAction("alignElements",function(g){var v=i.get(),y=[],_=g.type;v.length&&(y=si(v,function(S){return!Fe(S,"bpmn:Lane")}),u.trigger(y,_))}),i&&p&&this._registerAction("setColor",function(g){var v=i.get();v.length&&p.setColor(v,g)}),i&&d&&this._registerAction("directEditing",function(){var g=i.get();g.length&&d.activate(g[0])}),f&&this._registerAction("find",function(){f.toggle()}),n&&p&&this._registerAction("moveToOrigin",function(){var g=n.getRootElement(),v,y;Fe(g,"bpmn:Collaboration")?y=r.filter(function(_){return Fe(_.parent,"bpmn:Collaboration")}):y=r.filter(function(_){return _!==g&&!Fe(_.parent,"bpmn:SubProcess")}),v=sl(y),p.moveElements(y,{x:-v.x,y:-v.y},g)}),i&&h&&this._registerAction("replaceElement",function(g){h.triggerEntry("replace","click",g)})};const oYn={__depends__:[iYn],editorActions:["type",gV]};function Int(e){e.on(["create.init","shape.move.init"],function(n){var r=n.context,i=n.shape;ii(i,["bpmn:Participant","bpmn:SubProcess","bpmn:TextAnnotation"])&&(r.gridSnappingContext||(r.gridSnappingContext={}),r.gridSnappingContext.snapLocation="top-left")})}Int.$inject=["eventBus"];var X6=10;function _J(e,n,r){return r||(r="round"),Math[r](e/n)*n}var aYn=1200,sYn=800;function TS(e,n,r){var i=!r||r.active!==!1;this._eventBus=n;var o=this;n.on("diagram.init",sYn,function(){o.setActive(i)}),n.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"],aYn,function(a){var s=a.originalEvent;if(!(!o.active||s&&Ep(s))){var l=a.context,c=l.gridSnappingContext;c||(c=l.gridSnappingContext={}),["x","y"].forEach(function(u){var d={},f=cYn(a,u,e);f&&(d.offset=f);var p=lYn(a,u);p&&Rt(d,p),fR(a,u)||o.snapEvent(a,u,d)})}})}TS.prototype.snapEvent=function(e,n,r){var i=this.snapValue(e[n],r);_s(e,n,i)};TS.prototype.getGridSpacing=function(){return X6};TS.prototype.snapValue=function(e,n){var r=0;n&&n.offset&&(r=n.offset),e+=r,e=_J(e,X6);var i,o;return n&&n.min&&(i=n.min,Nr(i)&&(i=_J(i+r,X6,"ceil"),e=Math.max(e,i))),n&&n.max&&(o=n.max,Nr(o)&&(o=_J(o+r,X6,"floor"),e=Math.min(e,o))),e-=r,e};TS.prototype.isActive=function(){return this.active};TS.prototype.setActive=function(e){this.active=e,this._eventBus.fire("gridSnapping.toggle",{active:e})};TS.prototype.toggleActive=function(){this.setActive(!this.active)};TS.$inject=["elementRegistry","eventBus","config.gridSnapping"];function lYn(e,n){var r=e.context,i=r.createConstraints,o=r.resizeConstraints||{},a=r.gridSnappingContext,s=a.snapConstraints;if(s&&s[n])return s[n];s||(s=a.snapConstraints={}),s[n]||(s[n]={});var l=r.direction;i&&(Q6(n)?(s.x.min=i.left,s.x.max=i.right):(s.y.min=i.top,s.y.max=i.bottom));var c=o.min,u=o.max;return c&&(Q6(n)?oke(l)?s.x.max=c.left:s.x.min=c.right:ike(l)?s.y.max=c.top:s.y.min=c.bottom),u&&(Q6(n)?oke(l)?s.x.min=u.left:s.x.max=u.right:ike(l)?s.y.min=u.top:s.y.max=u.bottom),s[n]}function cYn(e,n,r){var i=e.context,o=e.shape,a=i.gridSnappingContext,s=a.snapLocation,l=a.snapOffset;return l&&Nr(l[n])||(l||(l=a.snapOffset={}),Nr(l[n])||(l[n]=0),!o)||(r.get(o.id)||(Q6(n)?l[n]+=o[n]+o.width/2:l[n]+=o[n]+o.height/2),!s)||(n==="x"?/left/.test(s)?l[n]-=o.width/2:/right/.test(s)&&(l[n]+=o.width/2):/top/.test(s)?l[n]-=o.height/2:/bottom/.test(s)&&(l[n]+=o.height/2)),l[n]}function Q6(e){return e==="x"}function ike(e){return e.indexOf("n")!==-1}function oke(e){return e.indexOf("w")!==-1}function Rw(e,n){vn.call(this,e),this._gridSnapping=n;var r=this;this.preExecute("shape.resize",function(i){var o=i.context,a=o.hints||{},s=a.autoResize;if(s){var l=o.shape,c=o.newBounds;vd(s)?o.newBounds=r.snapComplex(c,s):o.newBounds=r.snapSimple(l,c)}})}Rw.$inject=["eventBus","gridSnapping","modeling"];Zn(Rw,vn);Rw.prototype.snapSimple=function(e,n){var r=this._gridSnapping;return n.width=r.snapValue(n.width,{min:n.width}),n.height=r.snapValue(n.height,{min:n.height}),n.x=e.x+e.width/2-n.width/2,n.y=e.y+e.height/2-n.height/2,n};Rw.prototype.snapComplex=function(e,n){return/w|e/.test(n)&&(e=this.snapHorizontally(e,n)),/n|s/.test(n)&&(e=this.snapVertically(e,n)),e};Rw.prototype.snapHorizontally=function(e,n){var r=this._gridSnapping,i=/w/.test(n),o=/e/.test(n),a={};return a.width=r.snapValue(e.width,{min:e.width}),o&&(i?(a.x=r.snapValue(e.x,{max:e.x}),a.width+=r.snapValue(e.x-a.x,{min:e.x-a.x})):e.x=e.x+e.width-a.width),Rt(e,a),e};Rw.prototype.snapVertically=function(e,n){var r=this._gridSnapping,i=/n/.test(n),o=/s/.test(n),a={};return a.height=r.snapValue(e.height,{min:e.height}),i&&(o?(a.y=r.snapValue(e.y,{max:e.y}),a.height+=r.snapValue(e.y-a.y,{min:e.y-a.y})):e.y=e.y+e.height-a.height),Rt(e,a),e};var uYn=2e3;function Nnt(e,n){e.on(["spaceTool.move","spaceTool.end"],uYn,function(r){var i=r.context;if(i.initialized){var o=i.axis,a;o==="x"?(a=n.snapValue(r.dx),r.x=r.x+a-r.dx,r.dx=a):(a=n.snapValue(r.dy),r.y=r.y+a-r.dy,r.dy=a)}})}Nnt.$inject=["eventBus","gridSnapping"];const dYn={__init__:["gridSnappingResizeBehavior","gridSnappingSpaceToolBehavior"],gridSnappingResizeBehavior:["type",Rw],gridSnappingSpaceToolBehavior:["type",Nnt]},fYn={__depends__:[dYn],__init__:["gridSnapping"],gridSnapping:["type",TS]};var pYn=2e3;function Mnt(e,n,r){e.on("autoPlace",pYn,function(i){var o=i.source,a=Mr(o),s=i.shape,l=Ket(o,s,r);return["x","y"].forEach(function(c){var u={};l[c]!==a[c]&&(l[c]>a[c]?u.min=l[c]:u.max=l[c],Fe(s,"bpmn:TextAnnotation")&&(hYn(c)?u.offset=-s.width/2:u.offset=-s.height/2),l[c]=n.snapValue(l[c],u))}),l})}Mnt.$inject=["eventBus","gridSnapping","elementRegistry"];function hYn(e){return e==="x"}var gYn=1750;function Pnt(e,n,r){n.on(["create.start","shape.move.start"],gYn,function(i){var o=i.context,a=o.shape,s=e.getRootElement();if(!(!Fe(a,"bpmn:Participant")||!Fe(s,"bpmn:Process")||!s.children.length)){var l=o.createConstraints;l&&(a.width=r.snapValue(a.width,{min:a.width}),a.height=r.snapValue(a.height,{min:a.height}))}})}Pnt.$inject=["canvas","eventBus","gridSnapping"];var mYn=3e3;function mV(e,n,r){vn.call(this,e),this._gridSnapping=n;var i=this;this.postExecuted(["connection.create","connection.layout"],mYn,function(o){var a=o.context,s=a.connection,l=a.hints||{},c=s.waypoints;l.connectionStart||l.connectionEnd||l.createElementsBehavior===!1||vYn(c)&&r.updateWaypoints(s,i.snapMiddleSegments(c))})}mV.$inject=["eventBus","gridSnapping","modeling"];Zn(mV,vn);mV.prototype.snapMiddleSegments=function(e){var n=this._gridSnapping,r;e=e.slice();for(var i=1;i<e.length-2;i++)r=bYn(n,e[i],e[i+1]),e[i]=r[0],e[i+1]=r[1];return e};function vYn(e){return e.length>3}function yYn(e){return e==="h"}function _Yn(e){return e==="v"}function bYn(e,n,r){var i=ry(n,r),o={};return yYn(i)&&(o.y=e.snapValue(n.y)),_Yn(i)&&(o.x=e.snapValue(n.x)),("x"in o||"y"in o)&&(n=Rt({},n,o),r=Rt({},r,o)),[n,r]}const SYn={__init__:["gridSnappingAutoPlaceBehavior","gridSnappingParticipantBehavior","gridSnappingLayoutConnectionBehavior"],gridSnappingAutoPlaceBehavior:["type",Mnt],gridSnappingParticipantBehavior:["type",Pnt],gridSnappingLayoutConnectionBehavior:["type",mV]},EYn={__depends__:[fYn,SYn],__init__:["bpmnGridSnapping"],bpmnGridSnapping:["type",Int]};var CYn=30,Ant=30;function WL(e,n){this._interactionEvents=n;var r=this;e.on(["interactionEvents.createHit","interactionEvents.updateHit"],function(i){var o=i.element,a=i.gfx;if(Fe(o,"bpmn:Lane"))return r._createParticipantHit(o,a);if(Fe(o,"bpmn:Participant"))return pi(o)?r._createParticipantHit(o,a):r._createDefaultHit(o,a);if(Fe(o,"bpmn:SubProcess"))return pi(o)?r._createSubProcessHit(o,a):r._createDefaultHit(o,a)})}WL.$inject=["eventBus","interactionEvents"];WL.prototype._createDefaultHit=function(e,n){return this._interactionEvents.removeHits(n),this._interactionEvents.createDefaultHit(e,n),!0};WL.prototype._createParticipantHit=function(e,n){this._interactionEvents.removeHits(n),this._interactionEvents.createBoxHit(n,"no-move",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(n,"click-stroke",{width:e.width,height:e.height});var r=cl(e)?{width:CYn,height:e.height}:{width:e.width,height:Ant};return this._interactionEvents.createBoxHit(n,"all",r),!0};WL.prototype._createSubProcessHit=function(e,n){return this._interactionEvents.removeHits(n),this._interactionEvents.createBoxHit(n,"no-move",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(n,"click-stroke",{width:e.width,height:e.height}),this._interactionEvents.createBoxHit(n,"all",{width:e.width,height:Ant}),!0};const wYn={__init__:["bpmnInteractionEvents"],bpmnInteractionEvents:["type",WL]};function vV(e){e.invoke(qI,this)}Zn(vV,qI);vV.$inject=["injector"];vV.prototype.registerBindings=function(e,n){qI.prototype.registerBindings.call(this,e,n);function r(i,o){n.isRegistered(i)&&e.addListener(o)}r("selectElements",function(i){var o=i.keyEvent;if(e.isKey(["a","A"],o)&&e.isCmd(o))return n.trigger("selectElements"),!0}),r("find",function(i){var o=i.keyEvent;if(e.isKey(["f","F"],o)&&e.isCmd(o))return n.trigger("find"),!0}),r("spaceTool",function(i){var o=i.keyEvent;if(!e.hasModifier(o)&&e.isKey(["s","S"],o))return n.trigger("spaceTool"),!0}),r("lassoTool",function(i){var o=i.keyEvent;if(!e.hasModifier(o)&&e.isKey(["l","L"],o))return n.trigger("lassoTool"),!0}),r("handTool",function(i){var o=i.keyEvent;if(!e.hasModifier(o)&&e.isKey(["h","H"],o))return n.trigger("handTool"),!0}),r("globalConnectTool",function(i){var o=i.keyEvent;if(!e.hasModifier(o)&&e.isKey(["c","C"],o))return n.trigger("globalConnectTool"),!0}),r("directEditing",function(i){var o=i.keyEvent;if(!e.hasModifier(o)&&e.isKey(["e","E"],o))return n.trigger("directEditing"),!0}),r("replaceElement",function(i){var o=i.keyEvent;if(!e.hasModifier(o)&&e.isKey(["r","R"],o))return n.trigger("replaceElement",o),!0})};const xYn={__depends__:[Lhe],__init__:["keyboardBindings"],keyboardBindings:["type",vV]};var TYn={moveSpeed:1,moveSpeedAccelerated:10},OYn=1500,ake="left",ske="up",lke="right",cke="down",RYn={ArrowLeft:ake,Left:ake,ArrowUp:ske,Up:ske,ArrowRight:lke,Right:lke,ArrowDown:cke,Down:cke},IYn={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 Dnt(e,n,r,i,o){var a=this;this._config=Rt({},TYn,e||{}),n.addListener(OYn,function(s){var l=s.keyEvent,c=RYn[l.key];if(c&&!n.isCmd(l)){var u=n.isShift(l);return a.moveSelection(c,u),!0}}),this.moveSelection=function(s,l){var c=o.get();if(c.length){var u=this._config[l?"moveSpeedAccelerated":"moveSpeed"],d=IYn[s](u),f=i.allowed("elements.move",{shapes:c});f&&r.moveElements(c,d)}}}Dnt.$inject=["config.keyboardMoveSelection","keyboard","modeling","rules","selection"];const NYn={__depends__:[Lhe,Tg],__init__:["keyboardMoveSelection"],keyboardMoveSelection:["type",Dnt]};var uke=10;function YL(e,n,r,i){this._dragging=i,this._rules=n;var o=this;function a(c,u){var d=c.shape,f=c.direction,p=c.resizeConstraints,h;c.delta=u,h=pzn(d,f,u),c.newBounds=gzn(h,p),c.canExecute=o.canResize(c)}function s(c){var u=c.resizeConstraints,d=c.minBounds;u===void 0&&(d===void 0&&(d=o.computeMinResizeBox(c)),c.resizeConstraints={min:br(d)})}function l(c){var u=c.shape,d=c.canExecute,f=c.newBounds;if(d){if(f=vJe(f),!MYn(u,f))return;r.resizeShape(u,f)}}e.on("resize.start",function(c){s(c.context)}),e.on("resize.move",function(c){var u={x:c.dx,y:c.dy};a(c.context,u)}),e.on("resize.end",function(c){l(c.context)})}YL.prototype.canResize=function(e){var n=this._rules,r=sg(e,["newBounds","shape","delta","direction"]);return n.allowed("shape.resize",r)};YL.prototype.activate=function(e,n,r){var i=this._dragging,o,a;if(typeof r=="string"&&(r={direction:r}),o=Rt({shape:n},r),a=o.direction,!a)throw new Error("must provide a direction (n|w|s|e|nw|se|ne|sw)");i.init(e,knt(n,a),"resize",{autoActivate:!0,cursor:PYn(a),data:{shape:n,context:o}})};YL.prototype.computeMinResizeBox=function(e){var n=e.shape,r=e.direction,i,o;return i=e.minDimensions||{width:uke,height:uke},o=_tt(n,e.childrenBoxPadding),mzn(r,n,i,o)};YL.$inject=["eventBus","rules","modeling","dragging"];function MYn(e,n){return e.x!==n.x||e.y!==n.y||e.width!==n.width||e.height!==n.height}function knt(e,n){var r=Mr(e),i=br(e),o={x:r.x,y:r.y};return n.indexOf("n")!==-1?o.y=i.top:n.indexOf("s")!==-1&&(o.y=i.bottom),n.indexOf("e")!==-1?o.x=i.right:n.indexOf("w")!==-1&&(o.x=i.left),o}function PYn(e){var n="resize-";return e==="n"||e==="s"?n+"ns":e==="e"||e==="w"?n+"ew":e==="nw"||e==="se"?n+"nwse":n+"nesw"}var dke="djs-resizing",fke="resize-not-ok",AYn=500;function Lnt(e,n,r){function i(a){var s=a.shape,l=a.newBounds,c=a.frame;c||(c=a.frame=r.addFrame(s,n.getActiveLayer()),n.addMarker(s,dke)),l.width>5&&Gn(c,{x:l.x,width:l.width}),l.height>5&&Gn(c,{y:l.y,height:l.height}),a.canExecute?Ri(c).remove(fke):Ri(c).add(fke)}function o(a){var s=a.shape,l=a.frame;l&&Hs(a.frame),n.removeMarker(s,dke)}e.on("resize.move",AYn,function(a){i(a.context)}),e.on("resize.cleanup",function(a){o(a.context)})}Lnt.$inject=["eventBus","canvas","previewSupport"];var n5=-6,r5=8,i5=20,DM="djs-resizer",DYn=["n","w","s","e","nw","ne","se","sw"];function OS(e,n,r,i){this._resize=i,this._canvas=n;var o=this;e.on("selection.changed",function(a){var s=a.newSelection;o.removeResizers(),s.length===1&&ht(s,Eu(o.addResizer,o))}),e.on("shape.changed",function(a){var s=a.element;r.isSelected(s)&&(o.removeResizers(),o.addResizer(s))})}OS.prototype.makeDraggable=function(e,n,r){var i=this._resize;function o(a){vS(a)&&i.activate(a,e,r)}Ur.bind(n,"mousedown",o),Ur.bind(n,"touchstart",o)};OS.prototype._createResizer=function(e,n,r,i){var o=this._getResizersParent(),a=kYn(i),s=pr("g");Ri(s).add(DM),Ri(s).add(DM+"-"+e.id),Ri(s).add(DM+"-"+i),Ar(o,s);var l=pr("rect");Gn(l,{x:-r5/2+a.x,y:-r5/2+a.y,width:r5,height:r5}),Ri(l).add(DM+"-visual"),Ar(s,l);var c=pr("rect");return Gn(c,{x:-i5/2+a.x,y:-i5/2+a.y,width:i5,height:i5}),Ri(c).add(DM+"-hit"),Ar(s,c),B6(s,n,r),s};OS.prototype.createResizer=function(e,n){var r=knt(e,n),i=this._createResizer(e,r.x,r.y,n);this.makeDraggable(e,i,n)};OS.prototype.addResizer=function(e){var n=this;wo(e)||!this._resize.canResize({shape:e})||ht(DYn,function(r){n.createResizer(e,r)})};OS.prototype.removeResizers=function(){var e=this._getResizersParent();Cz(e)};OS.prototype._getResizersParent=function(){return this._canvas.getLayer("resizers")};OS.$inject=["eventBus","canvas","selection","resize"];function kYn(e){var n={x:0,y:0};return e.indexOf("e")!==-1?n.x=-n5:e.indexOf("w")!==-1&&(n.x=n5),e.indexOf("s")!==-1?n.y=-n5:e.indexOf("n")!==-1&&(n.y=n5),n}const $nt={__depends__:[lv,__,JI],__init__:["resize","resizePreview","resizeHandles"],resize:["type",YL],resizePreview:["type",Lnt],resizeHandles:["type",OS]};var LYn=2e3;function qL(e,n,r,i,o,a,s){this._bpmnFactory=n,this._canvas=r,this._modeling=o,this._textRenderer=s,i.registerProvider(this),e.on("element.dblclick",function(c){l(c.element,!0)}),e.on(["autoPlace.start","canvas.viewbox.changing","drag.init","element.mousedown","popupMenu.open","root.set","selection.changed"],function(){i.isActive()&&i.complete()}),e.on(["shape.remove","connection.remove"],LYn,function(c){i.isActive(c.element)&&i.cancel()}),e.on(["commandStack.changed"],function(c){i.isActive()&&i.cancel()}),e.on("directEditing.activate",function(c){a.removeResizers()}),e.on("create.end",500,function(c){var u=c.context,d=u.shape,f=c.context.canExecute,p=c.isTouch;p||f&&(u.hints&&u.hints.createElementsBehavior===!1||l(d))}),e.on("autoPlace.end",500,function(c){l(c.shape)});function l(c,u){(u||ii(c,["bpmn:Task","bpmn:TextAnnotation","bpmn:Participant"])||nme(c))&&i.activate(c)}}qL.$inject=["eventBus","bpmnFactory","canvas","directEditing","modeling","resizeHandles","textRenderer"];qL.prototype.activate=function(e){var n=lg(e);if(n!==void 0){var r={text:n},i=this.getEditingBBox(e);Rt(r,i);var o={},a=r.style||{};return Rt(a,{backgroundColor:null,border:null}),(ii(e,["bpmn:Task","bpmn:Participant","bpmn:Lane","bpmn:CallActivity"])||nme(e))&&Rt(o,{centerVertically:!0}),CC(e)&&(Rt(o,{autoResize:!0}),Rt(a,{backgroundColor:"#ffffff",border:"1px solid #ccc"})),Fe(e,"bpmn:TextAnnotation")&&(Rt(o,{resizable:!0,autoResize:!0}),Rt(a,{backgroundColor:"#ffffff",border:"1px solid #ccc"})),Rt(r,{options:o,style:a}),r}};qL.prototype.getEditingBBox=function(e){var n=this._canvas,r=e.label||e,i=n.getAbsoluteBBox(r),o={x:i.x+i.width/2,y:i.y+i.height/2},a={x:i.x,y:i.y},s=n.zoom(),l=this._textRenderer.getDefaultStyle(),c=this._textRenderer.getExternalStyle(),u=c.fontSize*s,d=c.lineHeight,f=l.fontSize*s,p=l.lineHeight,h={fontFamily:this._textRenderer.getDefaultStyle().fontFamily,fontWeight:this._textRenderer.getDefaultStyle().fontWeight};if(Fe(e,"bpmn:Lane")||BYn(e)){var g=cl(e),v=g?{width:i.height,height:30*s,x:i.x-i.height/2+15*s,y:o.y-30*s/2}:{width:i.width,height:30*s};Rt(a,v),Rt(h,{fontSize:f+"px",lineHeight:p,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px",transform:g?"rotate(-90deg)":null})}if(FYn(e)){var y=cl(e),_=y?{width:i.width,height:i.height}:{width:i.height,height:i.width,x:o.x-i.height/2,y:o.y-i.width/2};Rt(a,_),Rt(h,{fontSize:f+"px",lineHeight:p,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px",transform:y?null:"rotate(-90deg)"})}(ii(e,["bpmn:Task","bpmn:CallActivity"])||nme(e))&&(Rt(a,{width:i.width,height:i.height}),Rt(h,{fontSize:f+"px",lineHeight:p,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px"})),$Yn(e)&&(Rt(a,{width:i.width,x:i.x}),Rt(h,{fontSize:f+"px",lineHeight:p,paddingTop:7*s+"px",paddingBottom:7*s+"px",paddingLeft:5*s+"px",paddingRight:5*s+"px"}));var S=90*s,b=7*s,E=4*s;if(r.labelTarget&&(Rt(a,{width:S,height:i.height+b+E,x:o.x-S/2,y:i.y-b}),Rt(h,{fontSize:u+"px",lineHeight:d,paddingTop:b+"px",paddingBottom:E+"px"})),CC(r)&&!Nz(r)&&!Ni(r)){var w=Phe(e),C=n.getAbsoluteBBox({x:w.x,y:w.y,width:0,height:0}),x=u+b+E;Rt(a,{width:S,height:x,x:C.x-S/2,y:C.y-x/2}),Rt(h,{fontSize:u+"px",lineHeight:d,paddingTop:b+"px",paddingBottom:E+"px"})}return Fe(e,"bpmn:TextAnnotation")&&(Rt(a,{width:i.width,height:i.height,minWidth:30*s,minHeight:10*s}),Rt(h,{textAlign:"left",paddingTop:5*s+"px",paddingBottom:7*s+"px",paddingLeft:7*s+"px",paddingRight:5*s+"px",fontSize:f+"px",lineHeight:p})),{bounds:a,style:h}};qL.prototype.update=function(e,n,r,i){var o,a;Fe(e,"bpmn:TextAnnotation")&&(a=this._canvas.getAbsoluteBBox(e),o={x:e.x,y:e.y,width:e.width/a.width*i.width,height:e.height/a.height*i.height}),jYn(n)&&(n=null),this._modeling.updateLabel(e,n,o)};function nme(e){return Fe(e,"bpmn:SubProcess")&&!pi(e)}function $Yn(e){return Fe(e,"bpmn:SubProcess")&&pi(e)}function FYn(e){return Fe(e,"bpmn:Participant")&&!pi(e)}function BYn(e){return Fe(e,"bpmn:Participant")&&pi(e)}function jYn(e){return!e||!e.trim()}var pke="djs-element-hidden",hke="djs-label-hidden";function Fnt(e,n,r){var i=this,o=n.getDefaultLayer(),a,s,l;e.on("directEditing.activate",function(c){var u=c.active;if(a=u.element.label||u.element,Fe(a,"bpmn:TextAnnotation")){s=n.getAbsoluteBBox(a),l=pr("g");var d=r.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:a.width,containerHeight:a.height,position:{mx:0,my:0}}),f=i.path=pr("path");Gn(f,{d,strokeWidth:2,stroke:UYn(a)}),Ar(l,f),Ar(o,l),Wl(l,a.x,a.y)}Fe(a,"bpmn:TextAnnotation")||a.labelTarget?n.addMarker(a,pke):(Fe(a,"bpmn:Task")||Fe(a,"bpmn:CallActivity")||Fe(a,"bpmn:SubProcess")||Fe(a,"bpmn:Participant")||Fe(a,"bpmn:Lane"))&&n.addMarker(a,hke)}),e.on("directEditing.resize",function(c){if(Fe(a,"bpmn:TextAnnotation")){var u=c.height,d=c.dy,f=Math.max(a.height/s.height*(u+d),0),p=r.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:a.width,containerHeight:f,position:{mx:0,my:0}});Gn(i.path,{d:p})}}),e.on(["directEditing.complete","directEditing.cancel"],function(c){var u=c.active;u&&(n.removeMarker(u.element.label||u.element,pke),n.removeMarker(a,hke)),a=void 0,s=void 0,l&&(Hs(l),l=void 0)})}Fnt.$inject=["eventBus","canvas","pathMap"];function UYn(e,n){var r=Ii(e);return r.get("stroke")||n||"black"}const HYn={__depends__:[Ahe,$nt,Tnt],__init__:["labelEditingProvider","labelEditingPreview"],labelEditingProvider:["type",qL],labelEditingPreview:["type",Fnt]};var zYn=new TL("tt");function VYn(e){var n=Ko('<div class="djs-tooltip-container" />');return dc(n,{position:"absolute",width:"0",height:"0"}),e.insertBefore(n,e.firstChild),n}function GYn(e,n,r){dc(e,{left:n+"px",top:r+"px"})}function rme(e,n){e.style.display=n===!1?"none":""}var Bnt="djs-tooltip",bJ="."+Bnt;function Du(e,n){this._eventBus=e,this._canvas=n,this._ids=zYn,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=VYn(n.getContainer());var r=this;ld.bind(this._tooltipRoot,bJ,"mousedown",function(i){i.stopPropagation()}),ld.bind(this._tooltipRoot,bJ,"mouseover",function(i){r.trigger("mouseover",i)}),ld.bind(this._tooltipRoot,bJ,"mouseout",function(i){r.trigger("mouseout",i)}),this._init()}Du.$inject=["eventBus","canvas"];Du.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 n=this._ids.next();return e=Rt({},this._tooltipDefaults,e,{id:n}),this._addTooltip(e),e.timeout&&this.setTimeout(e),n};Du.prototype.trigger=function(e,n){var r=n.delegateTarget||n.target,i=this.get(fc(r,"data-tooltip-id"));i&&(e==="mouseover"&&i.timeout&&this.clearTimeout(i),e==="mouseout"&&i.timeout&&(i.timeout=1e3,this.setTimeout(i)))};Du.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]};Du.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var n=e.removeTimer;n&&(clearTimeout(n),e.removeTimer=null)}};Du.prototype.setTimeout=function(e){if(e=this.get(e),!!e){this.clearTimeout(e);var n=this;e.removeTimer=setTimeout(function(){n.remove(e)},e.timeout)}};Du.prototype.remove=function(e){var n=this.get(e);n&&(Bm(n.html),Bm(n.htmlContainer),delete n.htmlContainer,delete this._tooltips[n.id])};Du.prototype.show=function(){rme(this._tooltipRoot)};Du.prototype.hide=function(){rme(this._tooltipRoot,!1)};Du.prototype._updateRoot=function(e){var n=e.scale||1,r=e.scale||1,i="matrix("+n+",0,0,"+r+","+-1*e.x*n+","+-1*e.y*r+")";this._tooltipRoot.style.transform=i,this._tooltipRoot.style["-ms-transform"]=i};Du.prototype._addTooltip=function(e){var n=e.id,r=e.html,i,o=this._tooltipRoot;r.get&&r.constructor.prototype.jquery&&(r=r.get(0)),vd(r)&&(r=Ko(r)),i=Ko('<div data-tooltip-id="'+n+'" class="'+Bnt+'">'),dc(i,{position:"absolute"}),i.appendChild(r),e.type&&Ga(i).add("djs-tooltip-"+e.type),e.className&&Ga(i).add(e.className),e.htmlContainer=i,o.appendChild(i),this._tooltips[n]=e,this._updateTooltip(e)};Du.prototype._updateTooltip=function(e){var n=e.position,r=e.htmlContainer;GYn(r,n.x,n.y)};Du.prototype._updateTooltipVisibilty=function(e){ht(this._tooltips,function(n){var r=n.show,i=n.htmlContainer,o=!0;r&&((r.minZoom>e.scale||r.maxZoom<e.scale)&&(o=!1),rme(i,o))})};Du.prototype._init=function(){var e=this;function n(r){e._updateRoot(r),e._updateTooltipVisibilty(r),e.show()}this._eventBus.on("canvas.viewbox.changing",function(r){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(r){n(r.viewbox)})};const WYn={__init__:["tooltips"],tooltips:["type",Du]};var YYn="flow elements must be children of pools/participants";function jnt(e,n,r){function i(o,a,s){n.add({position:{x:o.x+5,y:o.y+5},type:"error",timeout:2e3,html:"<div>"+a+"</div>"})}e.on(["shape.move.rejected","create.rejected"],function(o){var a=o.context,s=a.shape,l=a.target;Fe(l,"bpmn:Collaboration")&&Fe(s,"bpmn:FlowNode")&&i(o,r(YYn))})}jnt.$inject=["eventBus","tooltips","translate"];const qYn={__depends__:[WYn],__init__:["modelingFeedback"],modelingFeedback:["type",jnt]};var KYn=500,XYn=1e3;function Iw(e,n){this._eventBus=e,this.offset=5;var r=n.cls("djs-outline",["no-fill"]),i=this;function o(a){var s=pr("rect");return Gn(s,Rt({x:0,y:0,rx:4,width:100,height:100},r)),s}e.on(["shape.added","shape.changed"],KYn,function(a){var s=a.element,l=a.gfx,c=Co(".djs-outline",l);c||(c=i.getOutline(s)||o(),Ar(l,c)),i.updateShapeOutline(c,s)}),e.on(["connection.added","connection.changed"],function(a){var s=a.element,l=a.gfx,c=Co(".djs-outline",l);c||(c=o(),Ar(l,c)),i.updateConnectionOutline(c,s)})}Iw.prototype.updateShapeOutline=function(e,n){var r=!1,i=this._getProviders();i.length&&ht(i,function(o){r=r||o.updateOutline(n,e)}),r||Gn(e,{x:-this.offset,y:-this.offset,width:n.width+this.offset*2,height:n.height+this.offset*2})};Iw.prototype.updateConnectionOutline=function(e,n){var r=sl(n);Gn(e,{x:r.x-this.offset,y:r.y-this.offset,width:r.width+this.offset*2,height:r.height+this.offset*2})};Iw.prototype.registerProvider=function(e,n){n||(n=e,e=XYn),this._eventBus.on("outline.getProviders",e,function(r){r.providers.push(n)})};Iw.prototype._getProviders=function(){var e=this._eventBus.createEvent({type:"outline.getProviders",providers:[]});return this._eventBus.fire(e),e.providers};Iw.prototype.getOutline=function(e){var n,r=this._getProviders();return ht(r,function(i){zs(i.getOutline)&&(n=n||i.getOutline(e))}),n};Iw.$inject=["eventBus","styles","elementRegistry"];var o5=6;function ime(e,n,r){this._canvas=n;var i=this;e.on("element.changed",function(o){r.isSelected(o.element)&&i._updateMultiSelectionOutline(r.get())}),e.on("selection.changed",function(o){var a=o.newSelection;i._updateMultiSelectionOutline(a)})}ime.prototype._updateMultiSelectionOutline=function(e){var n=this._canvas.getLayer("selectionOutline");Cz(n);var r=e.length>1,i=this._canvas.getContainer();if(Ri(i)[r?"add":"remove"]("djs-multi-select"),!!r){var o=QYn(sl(e)),a=pr("rect");Gn(a,Rt({rx:3},o)),Ri(a).add("djs-selection-outline"),Ar(n,a)}};ime.$inject=["eventBus","canvas","selection"];function QYn(e){return{x:e.x-o5,y:e.y-o5,width:e.width+o5*2,height:e.height+o5*2}}const Unt={__depends__:[Tg],__init__:["outline","multiSelectionOutline"],outline:["type",Iw],multiSelectionOutline:["type",ime]};var ZYn=500,JYn=1250,eqn=1500,lj=Math.round;function tqn(e){return{x:e.x+lj(e.width/2),y:e.y+lj(e.height/2)}}function Hnt(e,n,r,i,o){function a(l,c,u,d){return o.allowed("elements.move",{shapes:l,delta:c,position:u,target:d})}e.on("shape.move.start",eqn,function(l){var c=l.context,u=l.shape,d=i.get().slice();d.indexOf(u)===-1&&(d=[u]),d=nqn(d),Rt(c,{shapes:d,validatedShapes:d,shape:u})}),e.on("shape.move.start",JYn,function(l){var c=l.context,u=c.validatedShapes,d;if(d=c.canExecute=a(u),!d)return!1}),e.on("shape.move.move",ZYn,function(l){var c=l.context,u=c.validatedShapes,d=l.hover,f={x:l.dx,y:l.dy},p={x:l.x,y:l.y},h;if(h=a(u,f,p,d),c.delta=f,c.canExecute=h,h===null){c.target=null;return}c.target=d}),e.on("shape.move.end",function(l){var c=l.context,u=c.delta,d=c.canExecute,f=d==="attach",p=c.shapes;if(d===!1)return!1;u.x=lj(u.x),u.y=lj(u.y),!(u.x===0&&u.y===0)&&r.moveElements(p,u,c.target,{primaryShape:c.shape,attach:f})}),e.on("element.mousedown",function(l){if(vS(l)){var c=WI(l);if(!c)throw new Error("must supply DOM mousedown event");return s(c,l.element)}});function s(l,c,u,d){if(Rl(u)&&(d=u,u=!1),!(c.waypoints||!c.parent)&&!Ri(l.target).has("djs-hit-no-move")){var f=tqn(c);return n.init(l,f,"shape.move",{cursor:"grabbing",autoActivate:u,data:{shape:c,context:d||{}}}),!0}}this.start=s}Hnt.$inject=["eventBus","dragging","modeling","selection","rules"];function nqn(e){var n=UI(e,"id");return si(e,function(r){for(;r=r.parent;)if(n[r.id])return!1;return!0})}var gke=499,SJ="djs-dragging",mke="drop-ok",vke="drop-not-ok",yke="new-parent",_ke="attach-ok";function znt(e,n,r,i){function o(c){var u=a(c),d=rqn(u);return d}function a(c){var u=_L(c,!0),d=u.flatMap(h=>(h.incoming||[]).concat(h.outgoing||[])),f=u.concat(d),p=[...new Set(f)];return p}function s(c,u){[_ke,mke,vke,yke].forEach(function(d){d===u?n.addMarker(c,d):n.removeMarker(c,d)})}function l(c,u,d){i.addDragger(u,c.dragGroup),d&&n.addMarker(u,SJ),c.allDraggedElements?c.allDraggedElements.push(u):c.allDraggedElements=[u]}e.on("shape.move.start",gke,function(c){var u=c.context,d=u.shapes,f=u.allDraggedElements,p=o(d);if(!u.dragGroup){var h=pr("g");Gn(h,r.cls("djs-drag-group",["no-events"]));var g=n.getActiveLayer();Ar(g,h),u.dragGroup=h}p.forEach(function(v){i.addDragger(v,u.dragGroup)}),f?f=hhe([f,a(d)]):f=a(d),ht(f,function(v){n.addMarker(v,SJ)}),u.allDraggedElements=f,u.differentParents=iqn(d)}),e.on("shape.move.move",gke,function(c){var u=c.context,d=u.dragGroup,f=u.target,p=u.shape.parent,h=u.canExecute;f&&(h==="attach"?s(f,_ke):u.canExecute&&p&&f.id!==p.id?s(f,yke):s(f,u.canExecute?mke:vke)),Wl(d,c.dx,c.dy)}),e.on(["shape.move.out","shape.move.cleanup"],function(c){var u=c.context,d=u.target;d&&s(d,null)}),e.on("shape.move.cleanup",function(c){var u=c.context,d=u.allDraggedElements,f=u.dragGroup;ht(d,function(p){n.removeMarker(p,SJ)}),f&&Hs(f)}),this.makeDraggable=l}znt.$inject=["eventBus","canvas","styles","previewSupport"];function rqn(e){var n=si(e,function(r){return wo(r)?ki(e,Kh({id:r.source.id}))&&ki(e,Kh({id:r.target.id})):!0});return n}function iqn(e){return g8n(UI(e,function(n){return n.parent&&n.parent.id}))!==1}const oqn={__depends__:[kz,Tg,Unt,lv,__,JI],__init__:["move","movePreview"],move:["type",Hnt],movePreview:["type",znt]};var Vnt=".djs-palette-toggle",Gnt=".entry",aqn=Vnt+", "+Gnt,qae="djs-palette-",sqn="shown",Kae="open",bke="two-column",lqn=1e3;function Os(e,n){this._eventBus=e,this._canvas=n;var r=this;e.on("tool-manager.update",function(i){var o=i.tool;r.updateToolHighlight(o)}),e.on("i18n.changed",function(){r._update()}),e.on("diagram.init",function(){r._diagramInitialized=!0,r._rebuild()})}Os.$inject=["eventBus","canvas"];Os.prototype.registerProvider=function(e,n){n||(n=e,e=lqn),this._eventBus.on("palette.getProviders",e,function(r){r.providers.push(n)}),this._rebuild()};Os.prototype.getEntries=function(){var e=this._getProviders();return e.reduce(uqn,{})};Os.prototype._rebuild=function(){if(this._diagramInitialized){var e=this._getProviders();e.length&&(this._container||this._init(),this._update())}};Os.prototype._init=function(){var e=this,n=this._eventBus,r=this._getParentContainer(),i=this._container=Ko(Os.HTML_MARKUP);r.appendChild(i),Ga(r).add(qae+sqn),ld.bind(i,aqn,"click",function(o){var a=o.delegateTarget;if(rJe(a,Vnt))return e.toggle();e.trigger("click",o)}),Ur.bind(i,"mousedown",function(o){o.stopPropagation()}),ld.bind(i,Gnt,"dragstart",function(o){e.trigger("dragstart",o)}),n.on("canvas.resized",this._layoutChanged,this),n.fire("palette.create",{container:i})};Os.prototype._getProviders=function(e){var n=this._eventBus.createEvent({type:"palette.getProviders",providers:[]});return this._eventBus.fire(n),n.providers};Os.prototype._toggleState=function(e){e=e||{};var n=this._getParentContainer(),r=this._container,i=this._eventBus,o,a=Ga(r),s=Ga(n);"twoColumn"in e?o=e.twoColumn:o=this._needsCollapse(n.clientHeight,this._entries||{}),a.toggle(bke,o),s.toggle(qae+bke,o),"open"in e&&(a.toggle(Kae,e.open),s.toggle(qae+Kae,e.open)),i.fire("palette.changed",{twoColumn:o,open:this.isOpen()})};Os.prototype._update=function(){var e=Co(".djs-palette-entries",this._container),n=this._entries=this.getEntries();Ez(e),ht(n,function(r,i){var o=r.group||"default",a=Co("[data-group="+nD(o)+"]",e);a||(a=Ko('<div class="group"></div>'),fc(a,"data-group",o),e.appendChild(a));var s=r.html||(r.separator?'<hr class="separator" />':'<div class="entry" draggable="true"></div>'),l=Ko(s);if(a.appendChild(l),!r.separator&&(fc(l,"data-action",i),r.title&&fc(l,"title",r.title),r.className&&cqn(l,r.className),r.imageUrl)){var c=Ko("<img>");fc(c,"src",r.imageUrl),l.appendChild(c)}}),this.open()};Os.prototype.trigger=function(e,n,r){var i,o,a=n.delegateTarget||n.target;return a?(i=fc(a,"data-action"),o=n.originalEvent||n,this.triggerEntry(i,e,o,r)):n.preventDefault()};Os.prototype.triggerEntry=function(e,n,r,i){var o=this._entries,a,s;if(a=o[e],!!a&&(s=a.action,this._eventBus.fire("palette.trigger",{entry:a,event:r})!==!1)){if(zs(s)){if(n==="click")return s(r,i)}else if(s[n])return s[n](r,i);r.preventDefault()}};Os.prototype._layoutChanged=function(){this._toggleState({})};Os.prototype._needsCollapse=function(e,n){var r=50,i=Object.keys(n).length*46;return e<i+r};Os.prototype.close=function(){this._toggleState({open:!1,twoColumn:!1})};Os.prototype.open=function(){this._toggleState({open:!0})};Os.prototype.toggle=function(){this.isOpen()?this.close():this.open()};Os.prototype.isActiveTool=function(e){return e&&this._activeTool===e};Os.prototype.updateToolHighlight=function(e){var n,r;this._toolsContainer||(n=Co(".djs-palette-entries",this._container),this._toolsContainer=Co("[data-group=tools]",n)),r=this._toolsContainer,ht(r.children,function(i){var o=i.getAttribute("data-action");if(o){var a=Ga(i);o=o.replace("-tool",""),a.contains("entry")&&o===e?a.add("highlighted-entry"):a.remove("highlighted-entry")}})};Os.prototype.isOpen=function(){return Ga(this._container).has(Kae)};Os.prototype._getParentContainer=function(){return this._canvas.getContainer()};Os.HTML_MARKUP='<div class="djs-palette"><div class="djs-palette-entries"></div><div class="djs-palette-toggle"></div></div>';function cqn(e,n){var r=Ga(e),i=zr(n)?n:n.split(/\s+/g);i.forEach(function(o){r.add(o)})}function uqn(e,n){var r=n.getPaletteEntries();return zs(r)?r(e):(ht(r,function(i,o){e[o]=i}),e)}const dqn={__init__:["palette"],palette:["type",Os]};var Wnt="crosshair";function Nw(e,n,r,i,o,a,s){this._selection=o,this._dragging=r,this._mouse=s;var l=this,c={create:function(u){var d=n.getActiveLayer(),f;f=u.frame=pr("rect"),Gn(f,{class:"djs-lasso-overlay",width:1,height:1,x:0,y:0}),Ar(d,f)},update:function(u){var d=u.frame,f=u.bbox;Gn(d,{x:f.x,y:f.y,width:f.width,height:f.height})},remove:function(u){u.frame&&Hs(u.frame)}};a.registerTool("lasso",{tool:"lasso.selection",dragging:"lasso"}),e.on("lasso.selection.end",function(u){var d=u.originalEvent.target;!u.hover&&!(d instanceof SVGElement)||e.once("lasso.selection.ended",function(){l.activateLasso(u.originalEvent,!0)})}),e.on("lasso.end",0,function(u){var d=u.context,f=EJ(u),p=i.filter(function(g){return g}),h=ZB(u);l.select(p,f,h?d.selection:[])}),e.on("lasso.start",function(u){var d=u.context;d.bbox=EJ(u),c.create(d),d.selection=o.get()}),e.on("lasso.move",function(u){var d=u.context;d.bbox=EJ(u),c.update(d)}),e.on("lasso.cleanup",function(u){var d=u.context;c.remove(d)}),e.on("element.mousedown",1500,function(u){if(ZB(u))return l.activateLasso(u.originalEvent),!0})}Nw.$inject=["eventBus","canvas","dragging","elementRegistry","selection","toolManager","mouse"];Nw.prototype.activateLasso=function(e,n){this._dragging.init(e,"lasso",{autoActivate:n,cursor:Wnt,data:{context:{}}})};Nw.prototype.activateSelection=function(e,n){this._dragging.init(e,"lasso.selection",{trapClick:!1,autoActivate:n,cursor:Wnt,data:{context:{}},keepSelection:!0})};Nw.prototype.select=function(e,n,r=[]){var i=sBn(e,n);this._selection.select([...r,...ghe(i)])};Nw.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateSelection(e,!!e)};Nw.prototype.isActive=function(){var e=this._dragging.context();return e&&/^lasso/.test(e.prefix)};function EJ(e){var n={x:e.x-e.dx,y:e.y-e.dy},r={x:e.x,y:e.y},i;return n.x<=r.x&&n.y<r.y||n.x<r.x&&n.y<=r.y?i={x:n.x,y:n.y,width:r.x-n.x,height:r.y-n.y}:n.x>=r.x&&n.y<r.y||n.x>r.x&&n.y<=r.y?i={x:r.x,y:n.y,width:n.x-r.x,height:r.y-n.y}:n.x<=r.x&&n.y>r.y||n.x<r.x&&n.y>=r.y?i={x:n.x,y:r.y,width:r.x-n.x,height:n.y-r.y}:n.x>=r.x&&n.y>r.y||n.x>r.x&&n.y>=r.y?i={x:r.x,y:r.y,width:n.x-r.x,height:n.y-r.y}:i={x:r.x,y:r.y,width:0,height:0},i}const fqn={__depends__:[eV,PL],__init__:["lassoTool"],lassoTool:["type",Nw]};var CJ=1500,Ynt="grab";function eN(e,n,r,i,o,a){this._dragging=r,this._mouse=a;var s=this,l=i.get("keyboard",!1);o.registerTool("hand",{tool:"hand",dragging:"hand.move"}),e.on("element.mousedown",CJ,function(c){if(rD(c))return s.activateMove(c.originalEvent,!0),!1}),l&&l.addListener(CJ,function(c){if(!(!Ske(c.keyEvent)||s.isActive())){var u=s._mouse.getLastMoveEvent();s.activateMove(u,!!u)}},"keyboard.keydown"),l&&l.addListener(CJ,function(c){!Ske(c.keyEvent)||!s.isActive()||s.toggle()},"keyboard.keyup"),e.on("hand.end",function(c){var u=c.originalEvent.target;if(!c.hover&&!(u instanceof SVGElement))return!1;e.once("hand.ended",function(){s.activateMove(c.originalEvent,{reactivate:!0})})}),e.on("hand.move.move",function(c){var u=n.viewbox().scale;n.scroll({dx:c.dx*u,dy:c.dy*u})}),e.on("hand.move.end",function(c){var u=c.context,d=u.reactivate;return!rD(c)&&d&&e.once("hand.move.ended",function(f){s.activateHand(f.originalEvent,!0,!0)}),!1})}eN.$inject=["eventBus","canvas","dragging","injector","toolManager","mouse"];eN.prototype.activateMove=function(e,n,r){typeof n=="object"&&(r=n,n=!1),this._dragging.init(e,"hand.move",{autoActivate:n,cursor:Ynt,data:{context:r||{}}})};eN.prototype.activateHand=function(e,n,r){this._dragging.init(e,"hand",{trapClick:!1,autoActivate:n,cursor:Ynt,data:{context:{reactivate:r}}})};eN.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();this.activateHand(e,!!e)};eN.prototype.isActive=function(){var e=this._dragging.context();return e?/^(hand|hand\.move)$/.test(e.prefix):!1};function Ske(e){return _l("Space",e)}const pqn={__depends__:[eV,PL],__init__:["handTool"],handTool:["type",eN]};var Eke="connect-ok",Cke="connect-not-ok";function tN(e,n,r,i,o,a,s){var l=this;this._dragging=n,this._rules=a,this._mouse=s,o.registerTool("global-connect",{tool:"global-connect",dragging:"global-connect.drag"}),e.on("global-connect.hover",function(c){var u=c.context,d=c.hover,f=u.canStartConnect=l.canStartConnect(d);f!==null&&(u.startTarget=d,i.addMarker(d,f?Eke:Cke))}),e.on(["global-connect.out","global-connect.cleanup"],function(c){var u=c.context.startTarget,d=c.context.canStartConnect;u&&i.removeMarker(u,d?Eke:Cke)}),e.on(["global-connect.ended"],function(c){var u=c.context,d=u.startTarget,f={x:c.x,y:c.y},p=l.canStartConnect(d);if(p)return e.once("element.out",function(){e.once(["connect.ended","connect.canceled"],function(){e.fire("global-connect.drag.ended")}),r.start(null,d,f)}),!1})}tN.$inject=["eventBus","dragging","connect","canvas","toolManager","rules","mouse"];tN.prototype.start=function(e,n){this._dragging.init(e,"global-connect",{autoActivate:n,trapClick:!1,data:{context:{}}})};tN.prototype.toggle=function(){if(this.isActive())return this._dragging.cancel();var e=this._mouse.getLastMoveEvent();return this.start(e,!!e)};tN.prototype.isActive=function(){var e=this._dragging.context();return e&&/^global-connect/.test(e.prefix)};tN.prototype.canStartConnect=function(e){return this._rules.allowed("connection.start",{source:e})};const hqn={__depends__:[Qhe,lv,__,eV,PL],globalConnect:["type",tN]};function ome(e,n,r,i,o,a,s,l){this._palette=e,this._create=n,this._elementFactory=r,this._spaceTool=i,this._lassoTool=o,this._handTool=a,this._globalConnect=s,this._translate=l,e.registerProvider(this)}ome.$inject=["palette","create","elementFactory","spaceTool","lassoTool","handTool","globalConnect","translate"];ome.prototype.getPaletteEntries=function(){var e={},n=this._create,r=this._elementFactory,i=this._spaceTool,o=this._lassoTool,a=this._handTool,s=this._globalConnect,l=this._translate;function c(f,p,h,g,v){function y(_){var S=r.createShape(Rt({type:f},v));n.start(_,S)}return{group:p,className:h,title:g,action:{dragstart:y,click:y}}}function u(f){var p=r.createShape({type:"bpmn:SubProcess",x:0,y:0,isExpanded:!0}),h=r.createShape({type:"bpmn:StartEvent",x:40,y:82,parent:p});n.start(f,[p,h],{hints:{autoSelect:[p]}})}function d(f){n.start(f,r.createParticipantShape())}return Rt(e,{"hand-tool":{group:"tools",className:"bpmn-icon-hand-tool",title:l("Activate hand tool"),action:{click:function(f){a.activateHand(f)}}},"lasso-tool":{group:"tools",className:"bpmn-icon-lasso-tool",title:l("Activate lasso tool"),action:{click:function(f){o.activateSelection(f)}}},"space-tool":{group:"tools",className:"bpmn-icon-space-tool",title:l("Activate create/remove space tool"),action:{click:function(f){i.activateSelection(f)}}},"global-connect-tool":{group:"tools",className:"bpmn-icon-connection-multi",title:l("Activate global connect tool"),action:{click:function(f){s.start(f)}}},"tool-separator":{group:"tools",separator:!0},"create.start-event":c("bpmn:StartEvent","event","bpmn-icon-start-event-none",l("Create start event")),"create.intermediate-event":c("bpmn:IntermediateThrowEvent","event","bpmn-icon-intermediate-event-none",l("Create intermediate/boundary event")),"create.end-event":c("bpmn:EndEvent","event","bpmn-icon-end-event-none",l("Create end event")),"create.exclusive-gateway":c("bpmn:ExclusiveGateway","gateway","bpmn-icon-gateway-none",l("Create gateway")),"create.task":c("bpmn:Task","activity","bpmn-icon-task",l("Create task")),"create.data-object":c("bpmn:DataObjectReference","data-object","bpmn-icon-data-object",l("Create data object reference")),"create.data-store":c("bpmn:DataStoreReference","data-store","bpmn-icon-data-store",l("Create data store reference")),"create.subprocess-expanded":{group:"activity",className:"bpmn-icon-subprocess-expanded",title:l("Create expanded sub-process"),action:{dragstart:u,click:u}},"create.participant-expanded":{group:"collaboration",className:"bpmn-icon-participant",title:l("Create pool/participant"),action:{dragstart:d,click:d}},"create.group":c("bpmn:Group","artifact","bpmn-icon-group",l("Create group"))}),e};const gqn={__depends__:[dqn,Jz,lnt,fqn,pqn,hqn,Pz],__init__:["paletteProvider"],paletteProvider:["type",ome]};var mqn=250;function ame(e,n,r,i,o){vn.call(this,e);function a(l){var c=l.canExecute.replacements;ht(c,function(u){var d=u.oldElementId,f={type:u.newElementType};if(!l.visualReplacements[d]){var p=n.get(d);Rt(f,{x:p.x,y:p.y});var h=r.createShape(f);i.addShape(h,p.parent);var g=Co('[data-element-id="'+nD(p.id)+'"]',l.dragGroup);g&&Gn(g,{display:"none"});var v=o.addDragger(h,l.dragGroup);l.visualReplacements[d]=v,i.removeShape(h)}})}function s(l){var c=l.visualReplacements;ht(c,function(u,d){var f=Co('[data-element-id="'+nD(d)+'"]',l.dragGroup);f&&Gn(f,{display:"inline"}),u.remove(),c[d]&&delete c[d]})}e.on("shape.move.move",mqn,function(l){var c=l.context,u=c.canExecute;c.visualReplacements||(c.visualReplacements={}),u&&u.replacements?a(c):s(c)})}ame.$inject=["eventBus","elementRegistry","elementFactory","canvas","previewSupport"];Zn(ame,vn);const vqn={__depends__:[JI],__init__:["bpmnReplacePreview"],bpmnReplacePreview:["type",ame]};var yqn=1250,wJ=40,_qn=20,bqn=10,wke=20,qnt=["x","y"],Sqn=Math.abs;function Knt(e){e.on(["connect.hover","connect.move","connect.end"],yqn,function(n){var r=n.context,i=r.canExecute,o=r.start,a=r.hover,s=r.source,l=r.target;n.originalEvent&&Ep(n.originalEvent)||(r.initialConnectionStart||(r.initialConnectionStart=r.connectionStart),i&&a&&Eqn(n,a,Tqn(a)),a&&xqn(i,["bpmn:Association","bpmn:DataInputAssociation","bpmn:DataOutputAssociation","bpmn:SequenceFlow"])?(r.connectionStart=vp(o),ii(a,["bpmn:Event","bpmn:Gateway"])&&xke(n,vp(a)),ii(a,["bpmn:Task","bpmn:SubProcess"])&&Cqn(n,a),Fe(s,"bpmn:BoundaryEvent")&&l===s.host&&wqn(n)):Xnt(i,"bpmn:MessageFlow")?(Fe(o,"bpmn:Event")&&(r.connectionStart=vp(o)),Fe(a,"bpmn:Event")&&xke(n,vp(a))):r.connectionStart=r.initialConnectionStart)})}Knt.$inject=["eventBus"];function Eqn(e,n,r){qnt.forEach(function(i){var o=Qnt(i,n);e[i]<n[i]+r?_s(e,i,n[i]+r):e[i]>n[i]+o-r&&_s(e,i,n[i]+o-r)})}function Cqn(e,n){var r=vp(n);qnt.forEach(function(i){Oqn(e,n,i)&&_s(e,i,r[i])})}function wqn(e){var n=e.context,r=n.source,i=n.target;if(!Rqn(n)){var o=vp(r),a=_c(o,i,-10),s=[];/top|bottom/.test(a)&&s.push("x"),/left|right/.test(a)&&s.push("y"),s.forEach(function(l){var c=e[l],u;Sqn(c-o[l])<wJ&&(c>o[l]?u=o[l]+wJ:u=o[l]-wJ,_s(e,l,u))})}}function xke(e,n){_s(e,"x",n.x),_s(e,"y",n.y)}function Xnt(e,n){return e&&e.type===n}function xqn(e,n){return fS(n,function(r){return Xnt(e,r)})}function Qnt(e,n){return e==="x"?n.width:n.height}function Tqn(e){return Fe(e,"bpmn:Task")?bqn:_qn}function Oqn(e,n,r){return e[r]>n[r]+wke&&e[r]<n[r]+Qnt(r,n)-wke}function Rqn(e){var n=e.hover,r=e.source;return n&&r&&n===r}function RS(){this._targets={},this._snapOrigins={},this._snapLocations=[],this._defaultSnaps={}}RS.prototype.getSnapOrigin=function(e){return this._snapOrigins[e]};RS.prototype.setSnapOrigin=function(e,n){this._snapOrigins[e]=n,this._snapLocations.indexOf(e)===-1&&this._snapLocations.push(e)};RS.prototype.addDefaultSnap=function(e,n){var r=this._defaultSnaps[e];r||(r=this._defaultSnaps[e]=[]),r.push(n)};RS.prototype.getSnapLocations=function(){return this._snapLocations};RS.prototype.setSnapLocations=function(e){this._snapLocations=e};RS.prototype.pointsForTarget=function(e){var n=e.id||e,r=this._targets[n];return r||(r=this._targets[n]=new yV,r.initDefaults(this._defaultSnaps)),r};function yV(){this._snapValues={}}yV.prototype.add=function(e,n){var r=this._snapValues[e];r||(r=this._snapValues[e]={x:[],y:[]}),r.x.indexOf(n.x)===-1&&r.x.push(n.x),r.y.indexOf(n.y)===-1&&r.y.push(n.y)};yV.prototype.snap=function(e,n,r,i){var o=this._snapValues[n];return o&&FHn(e[r],o[r],i)};yV.prototype.initDefaults=function(e){var n=this;ht(e||{},function(r,i){ht(r,function(o){n.add(i,o)})})};var Iqn=1250;function cv(e,n,r){var i=this;this._elementRegistry=e,n.on(["create.start","shape.move.start"],function(o){i.initSnap(o)}),n.on(["create.move","create.end","shape.move.move","shape.move.end"],Iqn,function(o){var a=o.context,s=a.shape,l=a.snapContext,c=a.target;if(!(o.originalEvent&&Ep(o.originalEvent))&&!(fR(o)||!c)){var u=l.pointsForTarget(c);u.initialized||(u=i.addSnapTargetPoints(u,s,c),u.initialized=!0),r.snap(o,u)}}),n.on(["create.cleanup","shape.move.cleanup"],function(){r.hide()})}cv.$inject=["elementRegistry","eventBus","snapping"];cv.prototype.initSnap=function(e){var n=this._elementRegistry,r=e.context,i=r.shape,o=r.snapContext;o||(o=r.snapContext=new RS);var a;n.get(i.id)?a=vp(i,e):a={x:e.x+vp(i).x,y:e.y+vp(i).y};var s={x:a.x-i.width/2,y:a.y-i.height/2},l={x:a.x+i.width/2,y:a.y+i.height/2};return o.setSnapOrigin("mid",{x:a.x-e.x,y:a.y-e.y}),Ni(i)||(o.setSnapOrigin("top-left",{x:s.x-e.x,y:s.y-e.y}),o.setSnapOrigin("bottom-right",{x:l.x-e.x,y:l.y-e.y})),o};cv.prototype.addSnapTargetPoints=function(e,n,r){var i=this.getSnapTargets(n,r);return ht(i,function(o){if(Ni(o)){Ni(n)&&e.add("mid",vp(o));return}if(wo(o)){if(o.waypoints.length<3)return;var a=o.waypoints.slice(1,-1);ht(a,function(s){e.add("mid",s)});return}e.add("mid",vp(o))}),!Nr(n.x)||!Nr(n.y)||this._elementRegistry.get(n.id)&&e.add("mid",vp(n)),e};cv.prototype.getSnapTargets=function(e,n){return dtt(n).filter(function(r){return!Nqn(r)})};function Nqn(e){return!!e.hidden}var Tke=1500;function nN(e,n){n.invoke(cv,this),e.on(["create.move","create.end"],Tke,Dqn),e.on(["create.move","create.end","shape.move.move","shape.move.end"],Tke,function(r){var i=r.context,o=i.canExecute,a=i.target,s=o&&(o==="attach"||o.attach);s&&!fR(r)&&Mqn(r,a)})}Zn(nN,cv);nN.$inject=["eventBus","injector"];nN.prototype.initSnap=function(e){var n=cv.prototype.initSnap.call(this,e),r=e.shape,i=!!this._elementRegistry.get(r.id);return ht(r.outgoing,function(o){var a=o.waypoints[0];a=a.original||a,n.setSnapOrigin(o.id+"-docking",Rke(a,i,e))}),ht(r.incoming,function(o){var a=o.waypoints[o.waypoints.length-1];a=a.original||a,n.setSnapOrigin(o.id+"-docking",Rke(a,i,e))}),Fe(r,"bpmn:Participant")&&n.setSnapLocations(["top-left","bottom-right","mid"]),n};nN.prototype.addSnapTargetPoints=function(e,n,r){cv.prototype.addSnapTargetPoints.call(this,e,n,r);var i=this.getSnapTargets(n,r);ht(i,function(a){(Aqn(a)||Pqn([n,a],"bpmn:TextAnnotation"))&&(e.add("top-left",ctt(a)),e.add("bottom-right",utt(a)))});var o=this._elementRegistry;return ht(n.incoming,function(a){if(o.get(n.id)){Oke(i,a.source)||e.add("mid",Mr(a.source));var s=a.waypoints[0];e.add(a.id+"-docking",s.original||s)}}),ht(n.outgoing,function(a){if(o.get(n.id)){Oke(i,a.target)||e.add("mid",Mr(a.target));var s=a.waypoints[a.waypoints.length-1];e.add(a.id+"-docking",s.original||s)}}),Fe(r,"bpmn:SequenceFlow")&&(e=this.addSnapTargetPoints(e,n,r.parent)),e};nN.prototype.getSnapTargets=function(e,n){return cv.prototype.getSnapTargets.call(this,e,n).filter(function(r){return!Fe(r,"bpmn:Lane")})};function Mqn(e,n){var r=br(n),i=$tt(e,n),o=e.context,a=o.shape,s;a.parent?s={x:0,y:0}:s=Mr(a),/top/.test(i)?_s(e,"y",r.top-s.y):/bottom/.test(i)&&_s(e,"y",r.bottom-s.y),/left/.test(i)?_s(e,"x",r.left-s.x):/right/.test(i)&&_s(e,"x",r.right-s.x)}function Pqn(e,n){return e.every(function(r){return Fe(r,n)})}function Aqn(e){return Fe(e,"bpmn:SubProcess")&&pi(e)?!0:Fe(e,"bpmn:Participant")}function Dqn(e){var n=e.context,r=n.createConstraints;if(r){var i=r.top,o=r.right,a=r.bottom,s=r.left;(s&&s>=e.x||o&&o<=e.x)&&_s(e,"x",e.x),(i&&i>=e.y||a&&a<=e.y)&&_s(e,"y",e.y)}}function Oke(e,n){return e.indexOf(n)!==-1}function Rke(e,n,r){return n?{x:e.x-r.x,y:e.y-r.y}:{x:e.x,y:e.y}}var kqn=1250;function KL(e,n){var r=this;e.on(["resize.start"],function(i){r.initSnap(i)}),e.on(["resize.move","resize.end"],kqn,function(i){var o=i.context,a=o.shape,s=a.parent,l=o.direction,c=o.snapContext;if(!(i.originalEvent&&Ep(i.originalEvent))&&!fR(i)){var u=c.pointsForTarget(s);u.initialized||(u=r.addSnapTargetPoints(u,a,s,l),u.initialized=!0),Fqn(l)&&_s(i,"x",i.x),Bqn(l)&&_s(i,"y",i.y),n.snap(i,u)}}),e.on(["resize.cleanup"],function(){n.hide()})}KL.prototype.initSnap=function(e){var n=e.context,r=n.shape,i=n.direction,o=n.snapContext;o||(o=n.snapContext=new RS);var a=Znt(r,i);return o.setSnapOrigin("corner",{x:a.x-e.x,y:a.y-e.y}),o};KL.prototype.addSnapTargetPoints=function(e,n,r,i){var o=this.getSnapTargets(n,r);return ht(o,function(a){e.add("corner",utt(a)),e.add("corner",ctt(a))}),e.add("corner",Znt(n,i)),e};KL.$inject=["eventBus","snapping"];KL.prototype.getSnapTargets=function(e,n){return dtt(n).filter(function(r){return!Lqn(r,e)&&!wo(r)&&!$qn(r)&&!Ni(r)})};function Znt(e,n){var r=Mr(e),i=br(e),o={x:r.x,y:r.y};return n.indexOf("n")!==-1?o.y=i.top:n.indexOf("s")!==-1&&(o.y=i.bottom),n.indexOf("e")!==-1?o.x=i.right:n.indexOf("w")!==-1&&(o.x=i.left),o}function Lqn(e,n){return e.host===n}function $qn(e){return!!e.hidden}function Fqn(e){return e==="n"||e==="s"}function Bqn(e){return e==="e"||e==="w"}var jqn=7,Uqn=1e3;function IS(e){this._canvas=e,this._asyncHide=JZe(Eu(this.hide,this),Uqn)}IS.$inject=["canvas"];IS.prototype.snap=function(e,n){var r=e.context,i=r.snapContext,o=i.getSnapLocations(),a={x:fR(e,"x"),y:fR(e,"y")};ht(o,function(s){var l=i.getSnapOrigin(s),c={x:e.x+l.x,y:e.y+l.y};if(ht(["x","y"],function(u){var d;a[u]||(d=n.snap(c,s,u,jqn),d!==void 0&&(a[u]={value:d,originValue:d-l[u]}))}),a.x&&a.y)return!1}),this.showSnapLine("vertical",a.x&&a.x.value),this.showSnapLine("horizontal",a.y&&a.y.value),ht(["x","y"],function(s){var l=a[s];Rl(l)&&_s(e,s,l.originValue)})};IS.prototype._createLine=function(e){var n=this._canvas.getLayer("snap"),r=pr("path");return Gn(r,{d:"M0,0 L0,0"}),Ri(r).add("djs-snap-line"),Ar(n,r),{update:function(i){Nr(i)?e==="horizontal"?Gn(r,{d:"M-100000,"+i+" L+100000,"+i,display:""}):Gn(r,{d:"M "+i+",-100000 L "+i+", +100000",display:""}):Gn(r,{display:"none"})}}};IS.prototype._createSnapLines=function(){this._snapLines={horizontal:this._createLine("horizontal"),vertical:this._createLine("vertical")}};IS.prototype.showSnapLine=function(e,n){var r=this.getSnapLine(e);r&&r.update(n),this._asyncHide()};IS.prototype.getSnapLine=function(e){return this._snapLines||this._createSnapLines(),this._snapLines[e]};IS.prototype.hide=function(){ht(this._snapLines,function(e){e.update()})};const Hqn={__init__:["createMoveSnapping","resizeSnapping","snapping"],createMoveSnapping:["type",cv],resizeSnapping:["type",KL],snapping:["type",IS]},zqn={__depends__:[Hqn],__init__:["connectSnapping","createMoveSnapping"],connectSnapping:["type",Knt],createMoveSnapping:["type",nN]};var Jnt=300;function $r(e,n,r,i){this._open=!1,this._results={},this._eventMaps=[],this._cachedRootElement=null,this._cachedSelection=null,this._cachedViewbox=null,this._canvas=e,this._eventBus=n,this._selection=r,this._translate=i,this._container=this._getBoxHtml(),this._searchInput=Co($r.INPUT_SELECTOR,this._container),this._resultsContainer=Co($r.RESULTS_CONTAINER_SELECTOR,this._container),this._canvas.getContainer().appendChild(this._container),n.on(["canvas.destroy","diagram.destroy","drag.init","elements.changed"],this.close,this)}$r.$inject=["canvas","eventBus","selection","translate"];$r.prototype._bindEvents=function(){var e=this;function n(r,i,o,a){e._eventMaps.push({el:r,type:o,listener:ld.bind(r,i,o,a)})}n(document,"html","click",function(r){e.close(!1)}),n(this._container,$r.INPUT_SELECTOR,"click",function(r){r.stopPropagation(),r.delegateTarget.focus()}),n(this._container,$r.RESULT_SELECTOR,"mouseover",function(r){r.stopPropagation(),e._scrollToNode(r.delegateTarget),e._preselect(r.delegateTarget)}),n(this._container,$r.RESULT_SELECTOR,"click",function(r){r.stopPropagation(),e._select(r.delegateTarget)}),n(this._container,$r.INPUT_SELECTOR,"keydown",function(r){_l("ArrowUp",r)&&r.preventDefault(),_l("ArrowDown",r)&&r.preventDefault()}),n(this._container,$r.INPUT_SELECTOR,"keyup",function(r){if(_l("Escape",r))return e.close();if(_l("Enter",r)){var i=e._getCurrentResult();return i?e._select(i):e.close(!1)}if(_l("ArrowUp",r))return e._scrollToDirection(!0);if(_l("ArrowDown",r))return e._scrollToDirection();_l(["ArrowLeft","ArrowRight"],r)||e._search(r.delegateTarget.value)})};$r.prototype._unbindEvents=function(){this._eventMaps.forEach(function(e){ld.unbind(e.el,e.type,e.listener)})};$r.prototype._search=function(e){var n=this;if(this._clearResults(),!!e.trim()){var r=this._searchProvider.find(e);if(r=r.filter(function(o){return!n._canvas.getRootElements().includes(o.element)}),!r.length){this._selection.select(null);return}r.forEach(function(o){var a=o.element.id,s=n._createResultNode(o,a);n._results[a]={element:o.element,node:s}});var i=Co($r.RESULT_SELECTOR,this._resultsContainer);this._scrollToNode(i),this._preselect(i)}};$r.prototype._scrollToDirection=function(e){var n=this._getCurrentResult();if(n){var r=e?n.previousElementSibling:n.nextElementSibling;r&&(this._scrollToNode(r),this._preselect(r))}};$r.prototype._scrollToNode=function(e){if(!(!e||e===this._getCurrentResult())){var n=e.offsetTop,r=this._resultsContainer.scrollTop,i=n-this._resultsContainer.clientHeight+e.clientHeight;n<r?this._resultsContainer.scrollTop=n:r<i&&(this._resultsContainer.scrollTop=i)}};$r.prototype._clearResults=function(){Ez(this._resultsContainer),this._results={},this._eventBus.fire("searchPad.cleared")};$r.prototype._getCurrentResult=function(){return Co($r.RESULT_SELECTED_SELECTOR,this._resultsContainer)};$r.prototype._createResultNode=function(e,n){var r=Ko($r.RESULT_HTML);return e.primaryTokens.length>0&&Ike(r,e.primaryTokens,$r.RESULT_PRIMARY_HTML),Ike(r,e.secondaryTokens,$r.RESULT_SECONDARY_HTML),fc(r,$r.RESULT_ID_ATTRIBUTE,n),this._resultsContainer.appendChild(r),r};$r.prototype.registerProvider=function(e){this._searchProvider=e};$r.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,Ga(this._canvas.getContainer()).add("djs-search-open"),Ga(this._container).add("open"),this._searchInput.focus(),this._eventBus.fire("searchPad.opened"))};$r.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,Ga(this._canvas.getContainer()).remove("djs-search-open"),Ga(this._container).remove("open"),this._clearResults(),this._searchInput.value="",this._searchInput.blur(),this._eventBus.fire("searchPad.closed"),this._canvas.restoreFocus())};$r.prototype.toggle=function(){this.isOpen()?this.close():this.open()};$r.prototype.isOpen=function(){return this._open};$r.prototype._preselect=function(e){var n=this._getCurrentResult();if(e!==n){n&&Ga(n).remove($r.RESULT_SELECTED_CLASS);var r=fc(e,$r.RESULT_ID_ATTRIBUTE),i=this._results[r].element;Ga(e).add($r.RESULT_SELECTED_CLASS),this._canvas.scrollToElement(i,{top:Jnt}),this._selection.select(i),this._eventBus.fire("searchPad.preselected",i)}};$r.prototype._select=function(e){var n=fc(e,$r.RESULT_ID_ATTRIBUTE),r=this._results[n].element;this._cachedSelection=null,this._cachedViewbox=null,this.close(!1),this._canvas.scrollToElement(r,{top:Jnt}),this._selection.select(r),this._eventBus.fire("searchPad.selected",r)};$r.prototype._getBoxHtml=function(){const e=Ko($r.BOX_HTML),n=Co($r.INPUT_SELECTOR,e);return n&&n.setAttribute("aria-label",this._translate("Search in diagram")),e};function Ike(e,n,r){var i=Vqn(n),o=Ko(r);o.innerHTML=i,e.appendChild(o)}function Vqn(e){var n="";return e.forEach(function(r){var i=tet(r.value||r.matched||r.normal),o=r.match||r.matched;o?n+='<b class="'+$r.RESULT_HIGHLIGHT_CLASS+'">'+i+"</b>":n+=i}),n!==""?n:null}$r.CONTAINER_SELECTOR=".djs-search-container";$r.INPUT_SELECTOR=".djs-search-input input";$r.RESULTS_CONTAINER_SELECTOR=".djs-search-results";$r.RESULT_SELECTOR=".djs-search-result";$r.RESULT_SELECTED_CLASS="djs-search-result-selected";$r.RESULT_SELECTED_SELECTOR="."+$r.RESULT_SELECTED_CLASS;$r.RESULT_ID_ATTRIBUTE="data-result-id";$r.RESULT_HIGHLIGHT_CLASS="djs-search-highlight";$r.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>`;$r.RESULT_HTML='<div class="djs-search-result"></div>';$r.RESULT_PRIMARY_HTML='<div class="djs-search-result-primary"></div>';$r.RESULT_SECONDARY_HTML='<p class="djs-search-result-secondary"></p>';const Gqn={__depends__:[Pz,Dz,Tg],searchPad:["type",$r]};function sme(e,n,r,i){this._elementRegistry=e,this._canvas=r,this._search=i,n.registerProvider(this)}sme.$inject=["elementRegistry","searchPad","canvas","search"];sme.prototype.find=function(e){var n=this._canvas.getRootElements(),r=this._elementRegistry.filter(function(i){return!Ni(i)&&!n.includes(i)});return this._search(r.map(i=>({element:i,label:lg(i),id:i.id})),e,{keys:["label","id"]}).map(Wqn)};function Wqn(e){const{item:{element:n},tokens:r}=e;return{element:n,primaryTokens:r.label,secondaryTokens:r.id}}const Yqn={__depends__:[Gqn,zet],__init__:["bpmnSearch"],bpmnSearch:["type",sme]},qqn="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",Kqn="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",Xqn={width:36,height:50},Qqn={width:50,height:50};function Nke(e,n,r){return pr("path",{d:e,strokeWidth:2,transform:`translate(${n.x}, ${n.y})`,...r})}const bb=5;function _V(e,n){this._styles=n,e.registerProvider(this)}_V.$inject=["outline","styles"];_V.prototype.getOutline=function(e){const n=this._styles.cls("djs-outline",["no-fill"]);var r;if(!Ni(e))return Fe(e,"bpmn:Gateway")?(r=pr("rect"),Rt(r.style,{"transform-box":"fill-box",transform:"rotate(45deg)","transform-origin":"center"}),Gn(r,Rt({x:2,y:2,rx:4,width:e.width-4,height:e.height-4},n))):ii(e,["bpmn:Task","bpmn:SubProcess","bpmn:Group","bpmn:CallActivity"])?(r=pr("rect"),Gn(r,Rt({x:-bb,y:-bb,rx:14,width:e.width+bb*2,height:e.height+bb*2},n))):Fe(e,"bpmn:EndEvent")?(r=pr("circle"),Gn(r,Rt({cx:e.width/2,cy:e.height/2,r:e.width/2+bb+1},n))):Fe(e,"bpmn:Event")?(r=pr("circle"),Gn(r,Rt({cx:e.width/2,cy:e.height/2,r:e.width/2+bb},n))):Fe(e,"bpmn:DataObjectReference")&&Mke(e,"bpmn:DataObjectReference")?r=Nke(qqn,{x:-6,y:-6},n):Fe(e,"bpmn:DataStoreReference")&&Mke(e,"bpmn:DataStoreReference")&&(r=Nke(Kqn,{x:-6,y:-6},n)),r};_V.prototype.updateOutline=function(e,n){if(!Ni(e))return ii(e,["bpmn:SubProcess","bpmn:Group"])?(Gn(n,{width:e.width+bb*2,height:e.height+bb*2}),!0):!!ii(e,["bpmn:Event","bpmn:Gateway","bpmn:DataStoreReference","bpmn:DataObjectReference"])};function Mke(e,n){var r;return n==="bpmn:DataObjectReference"?r=Xqn:n==="bpmn:DataStoreReference"&&(r=Qqn),e.width===r.width&&e.height===r.height}const Zqn={__depends__:[Unt],__init__:["outlineProvider"],outlineProvider:["type",_V]};var Jqn='<?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 bm(e){xL.call(this,e)}Zn(bm,xL);bm.Viewer=yS;bm.NavigatedViewer=iD;bm.prototype.createDiagram=function(){return this.importXML(Jqn)};bm.prototype._interactionModules=[met,bet,wet];bm.prototype._modelingModules=[QUn,Whe,bHn,hHn,jHn,Qhe,WHn,ZWn,nnt,Jz,nYn,oYn,EYn,wYn,xYn,NYn,HYn,xnt,qYn,oqn,gqn,vqn,$nt,zqn,Yqn,Zqn];bm.prototype._modules=[].concat(yS.prototype._modules,bm.prototype._interactionModules,bm.prototype._modelingModules);const eKn=({isEdit:e=!1,showCreateModal:n,handleCreate:r,handleCancel:i})=>{const o=Fr();console.log("isEdit",e);const[a]=mi.useForm(),s=()=>Math.random().toString(36).substring(2,15);m.useEffect(()=>{e||a.setFieldsValue({key:s(),type:wF})},[e,a]);const l=()=>{a.validateFields().then(async c=>{console.log("handleSaveDep:",c),r(c)}).catch(c=>{console.log("Failed:",c),Nt.error("请检查输入内容")})};return N.jsx(N.Fragment,{children:N.jsx(fa,{title:o.formatMessage({id:"ticket.create.modal.title"}),open:n,onOk:l,onCancel:i,children:N.jsxs(mi,{form:a,name:"ticketCreateForm",submitter:!1,children:[N.jsx(eo,{name:"name",label:o.formatMessage({id:"ticket.create.name"}),rules:[{required:!0}]}),N.jsx(eo,{name:"key",label:o.formatMessage({id:"ticket.create.key"}),rules:[{required:!0,message:"请输入流程key"},{pattern:/^[a-z0-9_]+$/,message:"流程key只能包含小写字母、数字和下划线"}]}),N.jsx(hC,{name:"type",label:o.formatMessage({id:"ticket.create.type"}),options:[{label:o.formatMessage({id:"ticket.type.ticket"}),value:wF}],rules:[{required:!0}]}),N.jsx(Xk,{name:"description",label:o.formatMessage({id:"ticket.create.description"})})]})})})},tKn=({element:e,modeler:n})=>{var f,p,h;const r=Fr(),i=m.useCallback(async g=>{if(!(!n||!e))try{const v=n.get("modeling"),y=n.get("bpmnFactory"),_=n.get("elementRegistry"),S={};if(Object.entries(g).forEach(([b,E])=>{switch(b){case"id":E&&E!==e.id&&v.updateProperties(e,{id:E});break;case"name":S.name=E;break;case"documentation":if(E){const w=y.create("bpmn:Documentation",{text:E});S.documentation=[w]}else S.documentation=[];break;case"assignee":e.type==="bpmn:UserTask"&&(S.assignee=E);break;case"priority":e.type==="bpmn:UserTask"&&(S.priority=E);break}}),Object.keys(S).length>0){v.updateProperties(e,S);const b=_.get(e.id);console.log("Updated element:",b);const{xml:E}=await n.saveXML({format:!0});console.log("Updated XML:",E)}}catch(v){console.error("Error updating properties:",v)}},[e,n]);if(!e||!n)return N.jsx(bu,{title:r.formatMessage({id:"ticket.properties.title"}),children:r.formatMessage({id:"ticket.properties.noSelection"})});const o=e.businessObject||{},a=e.id||"",s=o.name||"",l=((p=(f=o.documentation)==null?void 0:f[0])==null?void 0:p.text)||"",c=((h=e.type)==null?void 0:h.replace("bpmn:",""))||"",u=o.assignee||"",d=o.priority||"";return console.log("Rendering properties for element:",{id:a,name:s,documentation:l,type:c,assignee:u,priority:d,businessObject:o}),N.jsx(bu,{title:r.formatMessage({id:"ticket.properties.title"}),style:{height:"100%",overflowY:"auto"},children:N.jsxs(mi,{submitter:!1,onValuesChange:i,initialValues:{id:a,name:s,documentation:l,type:c,assignee:u,priority:d},children:[N.jsx(eo,{name:"id",label:r.formatMessage({id:"ticket.properties.id"}),disabled:!0}),N.jsx(eo,{name:"name",label:r.formatMessage({id:"ticket.properties.name"})}),N.jsx(hC,{name:"type",label:r.formatMessage({id:"ticket.properties.type"}),disabled:!0,options:[{label:c,value:c}]}),N.jsx(Xk,{name:"documentation",label:r.formatMessage({id:"ticket.properties.documentation"})}),e.type==="bpmn:UserTask"&&N.jsxs(N.Fragment,{children:[N.jsx(eo,{name:"assignee",label:r.formatMessage({id:"ticket.properties.assignee"})}),N.jsx(hC,{name:"priority",label:r.formatMessage({id:"ticket.properties.priority"}),options:[{label:"Low",value:"50"},{label:"Medium",value:"100"},{label:"High",value:"150"}]})]})]},a)})},nKn=V.memo(tKn);async function rKn(e){return so("/api/v1/ticket/process/query/org",{method:"GET",params:{...e}})}async function iKn(e){return so("/api/v1/ticket/process/create",{method:"POST",data:{...e}})}async function oKn(e){return so("/api/v1/ticket/process/update",{method:"POST",data:{...e}})}async function aKn(e){return so("/api/v1/ticket/process/delete",{method:"POST",data:{...e}})}async function sKn(e){return so("/api/v1/ticket/process/query/deployments",{method:"GET",params:{...e}})}async function lKn(e){return so("/api/v1/ticket/process/deploy",{method:"POST",data:{...e}})}async function cKn(e){return so("/api/v1/ticket/process/undeploy",{method:"POST",data:{...e}})}const uKn=({file:e,onDelete:n,showDelete:r=!0})=>{var o,a;const i=Fr();return N.jsxs("div",{style:{position:"relative",width:"50px",height:"50px",border:"1px solid #f0f0f0",borderRadius:"4px",overflow:"hidden"},title:i.formatMessage({id:(o=e==null?void 0:e.fileType)!=null&&o.startsWith("image/")?"upload.preview.image":"upload.preview.file"}),children:[r&&N.jsx(qn,{type:"text",size:"small",icon:N.jsx(sw,{}),onClick:()=>n(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}}),N.jsx("div",{onClick:()=>window.open(e.fileUrl,"_blank"),style:{width:"100%",height:"100%",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(a=e==null?void 0:e.fileType)!=null&&a.startsWith("image/")?N.jsx("img",{src:e==null?void 0:e.fileUrl,alt:e==null?void 0:e.fileName,style:{width:"100%",height:"100%",objectFit:"cover"}}):N.jsx("div",{style:{fontSize:"12px",padding:"4px",textAlign:"center",wordBreak:"break-all",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.fileName})}),N.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:dKn}=og,ert=({type:e,acceptType:n,isModalOpen:r,attachments:i,handleSubmit:o,handleCancel:a})=>{const s=Fr(),[l,c]=m.useState([]),u=ev(C=>C.currentOrg),[d,f]=m.useState([]),[p,h]=m.useState({file:null,fileName:"test.pdf",fileType:"application/pdf",isAvatar:"false",kbType:e,categoryUid:"",kbUid:"",orgUid:u==null?void 0:u.uid,client:xo,extra:{autoGenerateLlmQa:"false",autoLlmSplit:"false"}}),[g,v]=m.useState([]),[y,_]=m.useState(!1),S=m.useMemo(()=>({name:"file",multiple:!0,accept:n,action:OF(),headers:{Authorization:"Bearer "+localStorage.getItem(G1)},data:{...p},fileList:g,showUploadList:!0,beforeUpload(C){var T;if(C.size>10485760)return Nt.error(s.formatMessage({id:"upload.size.limit",defaultMessage:"文件大小不能超过10MB"})),og.LIST_IGNORE;if(c(R=>[...R,C]),n&&n!=="*"){const R=n.split(","),O="."+((T=C.name.split(".").pop())==null?void 0:T.toLowerCase());if(!R.some(M=>M==="*"?!0:M.startsWith(".")?O===M:C.type===M))return Nt.error(s.formatMessage({id:"upload.type.invalid",defaultMessage:"不支持的文件类型: {fileType},请选择 {acceptTypes} 格式的文件"},{fileType:C.type||O,acceptTypes:n})),og.LIST_IGNORE}return v(R=>[...R,{...C,status:"done",name:C.name,uid:C.uid,originFileObj:C}]),!1},onRemove:C=>{v(x=>x.filter(T=>T.uid!==C.uid))},onChange(C){var x;C.file.status==="uploading"&&Nt.loading(s.formatMessage({id:"upload.uploading"},{filename:C.file.name})),C.file.status==="done"?((x=C.file.response)==null?void 0:x.code)===200?(Nt.destroy(),Nt.success(s.formatMessage({id:"upload.success"},{filename:C.file.name})),f(T=>[...T,C.file.response.data])):(Nt.destroy(),Nt.error(s.formatMessage({id:"upload.failed"},{filename:C.file.name}))):C.file.status==="error"&&Nt.error(s.formatMessage({id:"upload.failed"},{filename:C.file.name}))},onDrop(C){if(console.log("Dropped files",C.dataTransfer.files),n&&n!=="*"&&C.dataTransfer.files.length>0){const x=n.split(","),T=Array.from(C.dataTransfer.files).filter(R=>{var M;const O="."+((M=R.name.split(".").pop())==null?void 0:M.toLowerCase());return!x.some(P=>P==="*"?!0:P.startsWith(".")?O===P:R.type===P)});if(T.length>0){const R=T.map(O=>O.name).join(", ");Nt.error(s.formatMessage({id:"upload.drop.type.invalid",defaultMessage:"拖入的文件包含不支持的类型: {fileNames},请选择 {acceptTypes} 格式的文件"},{fileNames:R,acceptTypes:n}))}}}}),[p,g,s,n]);m.useEffect(()=>{h(C=>({...C,kbType:e,categoryUid:""})),i&&f(i.map(C=>C.upload)),v([])},[e,i]);const b=()=>{o(l,d)},E=C=>{console.log("handleDelete",C);const x=d.find(R=>R.uid===C);if(!x)return;const T=x.fileName.split("_").slice(1).join("_");c(R=>R.filter(O=>O.name!==T)),f(R=>R.filter(O=>O.uid!==C))},w=async()=>{if(g.length===0){Nt.warning(s.formatMessage({id:"upload.nofiles",defaultMessage:"请先选择文件"}));return}_(!0);const C=g.map(x=>{const T=new FormData;if(x.originFileObj)T.append("file",x.originFileObj);else if(console.error("originFileObj is missing for file:",x),x instanceof File)T.append("file",x),console.log("Used file directly as it is a File instance");else return x.url?(console.error("File has URL but no originFileObj:",x.url),Promise.reject(new Error("No file object available"))):Promise.reject(new Error("Invalid file object and no alternatives"));const R=Hn(new Date).format("YYYYMMDDHHmmss")+"_"+x.name;return T.append("fileName",R),T.append("fileType",x.type||"application/octet-stream"),T.append("isAvatar","false"),T.append("kbType",e),T.append("categoryUid",p.categoryUid||""),T.append("kbUid",""),T.append("orgUid",(u==null?void 0:u.uid)||""),T.append("client",xo),fetch(OF(),{method:"POST",headers:{Authorization:"Bearer "+localStorage.getItem(G1)},body:T}).then(O=>{if(!O.ok)throw new Error(`HTTP error! status: ${O.status}`);return O.json()}).catch(O=>{throw console.error("Upload error for file:",x.name,O),O})});try{Nt.loading(s.formatMessage({id:"upload.batch.uploading",defaultMessage:"正在上传文件..."}));const x=await Promise.allSettled(C),T=x.filter(O=>{var M;return O.status==="fulfilled"&&((M=O.value)==null?void 0:M.code)===200}).map(O=>O.value.data),R=x.filter(O=>{var M;return O.status==="rejected"||O.status==="fulfilled"&&((M=O.value)==null?void 0:M.code)!==200}).length;f(O=>[...O,...T]),v([]),Nt.destroy(),R===0?Nt.success(s.formatMessage({id:"upload.batch.success",defaultMessage:"成功上传 {count} 个文件"},{count:T.length})):Nt.warning(s.formatMessage({id:"upload.batch.partial",defaultMessage:"成功上传 {success} 个文件,{failed} 个文件上传失败"},{success:T.length,failed:R}))}catch(x){console.error("上传错误:",x),Nt.destroy(),Nt.error(s.formatMessage({id:"upload.batch.error",defaultMessage:"上传过程发生错误"}))}finally{_(!1)}};return N.jsxs(fa,{title:s.formatMessage({id:"upload.modal.title"}),open:r,onOk:b,onCancel:a,children:[N.jsxs(dKn,{...S,children:[N.jsx("p",{className:"ant-upload-drag-icon",children:N.jsx(cVt,{})}),N.jsx("p",{className:"ant-upload-text",children:s.formatMessage({id:"upload.drag.text"})}),N.jsx("p",{className:"ant-upload-hint",children:n?s.formatMessage({id:"upload.drag.hint.withtype.size",defaultMessage:"支持单个或批量上传 {acceptTypes} 格式的文件文件大小不超过10MB"},{acceptTypes:n.replace(/\./g,"")}):s.formatMessage({id:"upload.drag.hint.size"})})]}),N.jsx("div",{style:{marginTop:"16px",textAlign:"center"},children:N.jsxs(qn,{type:"primary",onClick:w,disabled:g.length===0,loading:y,icon:N.jsx(Lzt,{}),children:[s.formatMessage({id:"upload.start",defaultMessage:"开始上传"}),g.length>0&&` (${g.length})`]})}),d.length>0&&N.jsxs("div",{style:{marginTop:"16px",maxHeight:"200px",overflowY:"auto"},children:[N.jsx("h4",{children:s.formatMessage({id:"upload.uploaded.files",defaultMessage:"已上传文件"})}),N.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px"},children:d.map(C=>N.jsx(uKn,{file:C,onDelete:E},C.uid))})]})]})},{Header:fKn,Content:pKn}=bo,Pke=`<?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>`,trt=()=>{const e=Fr(),{isDarkMode:n}=Pu(),{translateString:r}=Gp(),i=m.useRef(null),o=m.useRef(null),[a,s]=m.useState(!1),[l,c]=m.useState(!1),[u,d]=m.useState(!1),[f,p]=m.useState(null),{headerStyle:h}=u_(),[g,v]=m.useState([]),y=ws(G=>G.userInfo),_=ws(G=>G.setUserInfo),{currentOrg:S,setCurrentOrg:b}=ev(G=>({currentOrg:G.currentOrg,setCurrentOrg:G.setCurrentOrg})),E=g2(G=>G.currentProcess),w=g2(G=>G.setCurrentProcess),C=g2(G=>G.processResult),x=g2(G=>G.setProcessResult),T={color:n?"#fff":"#000",display:"flex",alignItems:"center",margin:0,"& .title-text":{marginRight:16},"& .title-actions":{display:"flex",alignItems:"center",gap:8}},R=async G=>{console.log("Menu clicked:",G);const Q=C.data.content.find(le=>le.uid===G.key);if(Q){if(console.log("Selected process:",Q),u)try{const{xml:le}=await o.current.saveXML({format:!0});await U(le)}catch(le){console.error("Error saving current process:",le)}w(Q),d(!1),p(null)}},O={items:g,selectedKeys:E?[E.uid]:[],onClick:R},M=async()=>{const G=await iz();console.log("initProfile response:",G.data),G.data.code===200?(_(G.data.data),b(G.data.data.currentOrganization)):Nt.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))},P=async()=>{const G=await sKn({pageNumber:0,pageSize:100,orgUid:S==null?void 0:S.uid});console.log("Fetch process deployments response:",G.data),G.data.code===200||Nt.error(e.formatMessage({id:"ticket.fetch.processes.error"}))},k=async()=>{if(Nt.loading(e.formatMessage({id:"ticket.fetch.processes.loading"})),!(S!=null&&S.uid)){await M();return}const G=await rKn({pageNumber:0,pageSize:100,orgUid:S==null?void 0:S.uid,type:wF});console.log("Fetch processes response:",G.data),G.data.code===200?(G.data.data.content.length===0&&(Nt.warning(e.formatMessage({id:"ticket.fetch.processes.empty"})),c(!0)),x(G.data),Nt.destroy()):(Nt.destroy(),Nt.error(e.formatMessage({id:"ticket.fetch.processes.error"})))};m.useEffect(()=>{k(),P()},[]),m.useEffect(()=>{console.log("currentOrg changed:",S),k()},[S]),m.useEffect(()=>{var G,Q,le;if(console.log("processResult changed:",C),console.log("currentProcess:",E),(G=C==null?void 0:C.data)!=null&&G.content){const Z=C.data.content.map(F=>({key:F.uid,label:r(F.name)}));console.log("New dropdown items:",Z),v(Z);const j=C.data.content.find(F=>F.uid===(E==null?void 0:E.uid));j&&w(j)}!E&&((le=(Q=C==null?void 0:C.data)==null?void 0:Q.content)==null?void 0:le.length)>0&&(console.log("Setting initial process"),w(C.data.content[0]))},[C,E]),m.useEffect(()=>{E?(console.log("initBpmnModeler currentProcess:",E),$(E==null?void 0:E.content)):$(Pke)},[E]);const $=async G=>{if(i.current){o.current&&o.current.destroy(),i.current.innerHTML="";const Q=new bm({container:i.current,additionalModules:[],...n?{propertiesPanel:{parent:"#properties",style:{background:"#141414",color:"#fff"}},canvas:{drdBackgroundColor:"#141414",gridColor:"#2a2a2a"}}:{}});try{await Q.importXML(G),Q.get("canvas").zoom("fit-viewport");const Z=Q.get("eventBus"),j=oe=>{console.log("Selection changed:",oe),oe.newSelection&&oe.newSelection.length?p(oe.newSelection[0]):oe.element?p(oe.element):p(null)},F=()=>{console.log("Diagram changed"),d(!0)};Z.on("selection.changed",j),Z.on("element.click",j),["commandStack.changed","element.changed","shape.added","shape.removed","connect.end"].forEach(oe=>{Z.on(oe,F)}),o.current=Q}catch(le){console.error("Error initializing modeler:",le),Nt.error(e.formatMessage({id:"ticket.create.error"}))}}};m.useEffect(()=>(E?(console.log("initBpmnModeler Current process:",E),$(E==null?void 0:E.content)):(console.log("initBpmnModeler No current process, initializing empty process"),$(Pke)),()=>{o.current&&o.current.destroy()}),[]);const U=async G=>{try{if(!E){console.warn("No current process to save");return}const Q=G.includes("xmlns:flowable")?G:G.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"'),le={...E,content:Q};console.log("Update process:",{processUid:le.uid,processName:le.name,currentProcessUid:E.uid});const Z=await oKn({uid:le.uid,name:le.name,key:le.key,description:le.description,content:Q,orgUid:S==null?void 0:S.uid});console.log("Update response:",Z.data),Z.data.code===200?(w(Z.data.data),d(!1),Nt.success(e.formatMessage({id:"ticket.autosave.success"})),k()):Nt.error(e.formatMessage({id:"ticket.save.error"}))}catch(Q){console.error("Error auto-saving diagram:",Q),Nt.error(e.formatMessage({id:"ticket.autosave.error"}))}};m.useEffect(()=>{if(!u||!o.current||!E)return;const G=setTimeout(async()=>{},2e3);return()=>{clearTimeout(G)}},[u,E]);const z=async()=>{try{const{xml:G}=await o.current.saveXML({format:!0}),Q=G.includes("xmlns:flowable")?G:G.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"'),le=new Blob([Q],{type:"text/xml"}),Z=URL.createObjectURL(le),j=document.createElement("a");j.href=Z;const F=new Date().toISOString().replace(/[^0-9]/g,"").slice(0,14);j.download=`${F}_workflow.bpmn20.xml`,j.click(),URL.revokeObjectURL(Z),Nt.success(e.formatMessage({id:"ticket.export.success"}))}catch(G){console.error("Error exporting BPMN:",G),Nt.error(e.formatMessage({id:"ticket.export.error"}))}},D=async(G,Q)=>{if(console.log("handleUploadDragSubmit files:",G,"uploads:",Q),s(!1),!G.length){Nt.error(e.formatMessage({id:"ticket.import.no.file"}));return}const le=G[0],Z=new FileReader;Z.onload=async j=>{var F;try{const te=(F=j.target)==null?void 0:F.result;if(!te||typeof te!="string")throw new Error("Invalid XML content");console.log("Importing XML:",te),await $(te),Nt.success(e.formatMessage({id:"ticket.import.success"}))}catch(te){console.error("Error importing BPMN:",te),Nt.error(e.formatMessage({id:"ticket.import.error"},{error:te.message}))}},Z.onerror=j=>{console.error("Error reading file:",j),Nt.error(e.formatMessage({id:"ticket.import.read.error"}))},Z.readAsText(le)},B=(E==null?void 0:E.userUid)===null,Y=async G=>{console.log("Create values:",G);try{Nt.loading(e.formatMessage({id:"ticket.create.loading"}));const Q=`<?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_${G.key}" name="${G.name}" isExecutable="true">
<documentation>${G.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_${G.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:",Q);try{await o.current.importXML(Q);const{xml:le}=await o.current.saveXML({format:!0});console.log("Validated XML:",le);const Z=await iKn({name:G.name,key:G.key,description:G.description,content:le,type:wF,orgUid:S==null?void 0:S.uid,userUid:y==null?void 0:y.uid});console.log("Create process response:",Z),Z.data.code===200?(w(Z.data.data),await $(le),c(!1),Nt.destroy(),Nt.success(e.formatMessage({id:"ticket.create.success"})),k()):(Nt.destroy(),Nt.error(e.formatMessage({id:"ticket.create.error"})))}catch(le){console.error("Error importing or validating BPMN:",le),console.error("Invalid XML:",Q),Nt.destroy(),Nt.error(e.formatMessage({id:"ticket.create.error.invalid",defaultMessage:"Invalid BPMN structure"}))}}catch(Q){console.error("Error creating new process:",Q),Nt.destroy(),Nt.error(e.formatMessage({id:"ticket.create.error"}))}},q=async()=>{if(console.log("handleSave"),E){const{xml:G}=await o.current.saveXML({format:!0});await U(G)}},K=async()=>{if(console.log("handleDeploy",E),E)if(E!=null&&E.deployed)fa.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()=>{Nt.loading(e.formatMessage({id:"ticket.undeploy.loading"}));const G={uid:E==null?void 0:E.uid,orgUid:S==null?void 0:S.uid},Q=await cKn(G);console.log("Undeploy process response:",G,Q.data),Q.data.code===200?(Nt.destroy(),Nt.success(e.formatMessage({id:"ticket.undeploy.success"})),k()):(Nt.destroy(),Nt.error(Q.data.message))}});else{Nt.loading(e.formatMessage({id:"ticket.deploy.loading"}));const G={uid:E==null?void 0:E.uid,orgUid:S==null?void 0:S.uid},Q=await lKn(G);console.log("Deploy process response:",G,Q.data),Q.data.code===200?(Nt.destroy(),Nt.success(e.formatMessage({id:"ticket.deploy.success"})),k()):(Nt.destroy(),Nt.error(Q.data.message))}},H=async()=>{console.log("handleDelete"),fa.confirm({title:e.formatMessage({id:"ticket.delete.confirm"}),onOk:async()=>{if(E){const G=await aKn({uid:E.uid,orgUid:S==null?void 0:S.uid});console.log("Delete process response:",G),G.data.code===200?(Nt.success(e.formatMessage({id:"ticket.delete.success"})),k(),w(null)):Nt.error(e.formatMessage({id:"ticket.delete.failed"}))}}})};return m.useEffect(()=>{const G=document.createElement("style");G.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(G);const Q=i.current;return Q&&(Q.classList.remove("dark-mode","light-mode"),Q.classList.add(n?"dark-mode":"light-mode")),()=>{document.head.removeChild(G)}},[n]),N.jsxs(bo,{style:{height:"100%"},children:[N.jsx(fKn,{style:h,children:N.jsxs("div",{className:"header-content",children:[N.jsxs("h1",{style:T,children:[N.jsx("span",{className:"title-text",style:{color:n?"#fff":"#000"},children:e.formatMessage({id:"ticket.title"})}),N.jsxs("span",{className:"title-actions",style:{marginLeft:16},children:[N.jsx(qn,{type:"primary",icon:N.jsx(_A,{}),onClick:()=>{q(),c(!0)},style:{marginRight:8},children:e.formatMessage({id:"ticket.create"})}),N.jsx(Dde,{menu:O,trigger:["click"],children:N.jsx("a",{onClick:G=>G.preventDefault(),style:{color:n?"#fff":"#000",opacity:.85},children:N.jsx(Cf,{children:C.data.content.length>0?N.jsxs("span",{children:[r(E==null?void 0:E.name)||e.formatMessage({id:"ticket.select.process"}),N.jsx(lI,{})]}):N.jsx("span",{children:e.formatMessage({id:"ticket.no.process"})})})})})]})]}),N.jsxs("div",{className:"header-actions",children:[N.jsx(qn,{type:"primary",icon:N.jsx(iS,{}),onClick:()=>s(!0),children:e.formatMessage({id:"ticket.import"})}),N.jsx(qn,{type:"primary",icon:N.jsx(Ok,{}),onClick:z,children:e.formatMessage({id:"ticket.export"})}),N.jsx(qn,{type:"primary",icon:N.jsx(Bde,{}),onClick:q,children:e.formatMessage({id:"ticket.save"})}),N.jsx(qn,{type:"primary",icon:N.jsx(aVt,{}),onClick:K,children:E!=null&&E.deployed?e.formatMessage({id:"ticket.undeploy"}):e.formatMessage({id:"ticket.deploy"})}),!B&&N.jsx(qn,{type:"primary",icon:N.jsx(sw,{}),onClick:H,children:e.formatMessage({id:"ticket.delete"})})]})]})}),N.jsx(bo,{children:N.jsx(pKn,{style:{background:n?"#141414":"#fff",position:"relative",height:"calc(100vh - 64px)",display:"flex"},children:N.jsxs(m6,{children:[N.jsx(m6.Panel,{children:N.jsx("div",{ref:i,className:"bpmn-container",style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,background:n?"#141414":"#fff"}})}),N.jsx(m6.Panel,{defaultSize:"300",children:N.jsx(nKn,{element:f,modeler:o.current})})]})})}),a&&N.jsx(ert,{type:u_t,isModalOpen:a,handleSubmit:D,handleCancel:()=>s(!1)}),l&&N.jsx(eKn,{isEdit:!1,showCreateModal:l,handleCreate:Y,handleCancel:()=>c(!1)})]})};async function hKn(e){return so("/api/v1/org/create",{method:"POST",data:{...e,client:xo}})}const gKn=({open:e,onClose:n,onSuccess:r})=>{const i=Fr(),{userInfo:o}=Yde(),[a,s]=m.useState(!1),[l,c]=m.useState(""),[u,d]=m.useState(!1),f=()=>{n()},p=()=>{Nt.error(i.formatMessage({id:"welcome.message.org.required"}))},h=async()=>{if(l===""){Nt.error(i.formatMessage({id:"welcome.message.org.name.required"}));return}s(!0),Nt.loading(i.formatMessage({id:"welcome.message.org.creating"}));const v=o!=null&&o.mobile?o==null?void 0:o.mobile:o==null?void 0:o.email,y={name:l,code:v,logo:"https://www.weiyuai.cn/logo.png",description:l+"description"};try{const _=await hKn(y);_.data.code===200?(s(!1),Nt.destroy(),Nt.success(i.formatMessage({id:"welcome.message.create.success"})),r(_.data.data),n()):(s(!1),Nt.destroy(),Nt.error(i.formatMessage({id:"welcome.message.create.failed"})))}catch{s(!1),Nt.destroy(),Nt.error(i.formatMessage({id:"welcome.message.create.failed"}))}},g=()=>{u?h():(d(!0),s(!1))};return N.jsxs(fa,{title:i.formatMessage({id:"welcome.modal.title"}),closable:!1,open:e,onCancel:p,maskClosable:!1,footer:[N.jsx(qn,{type:"primary",onClick:f,disabled:!0,children:i.formatMessage({id:"welcome.modal.join"})},"join"),N.jsx(qn,{type:"primary",loading:a,onClick:g,children:i.formatMessage({id:"welcome.modal.create"})},"create")],children:[N.jsx("p",{children:i.formatMessage({id:"welcome.modal.description"})}),u&&N.jsx(Oi,{placeholder:i.formatMessage({id:"welcome.modal.input.placeholder"}),value:l,onChange:v=>c(v.target.value),onPressEnter:h,autoFocus:!0})]})},mKn=({open:e,onClose:n})=>{const r=Fr(),i=Df(),o=()=>{n(),i("/setting/certification")},a=()=>{localStorage.setItem("skipVerification","true"),n()};return N.jsx(fa,{title:r.formatMessage({id:"welcome.verify.modal.title",defaultMessage:"账号验证提示"}),open:e,onCancel:a,footer:[N.jsx(qn,{onClick:a,children:r.formatMessage({id:"welcome.verify.later",defaultMessage:"稍后验证"})},"later"),N.jsx(qn,{type:"primary",onClick:o,children:r.formatMessage({id:"welcome.verify.now",defaultMessage:"立即验证"})},"now")],children:N.jsx("p",{children:r.formatMessage({id:"welcome.verify.modal.description",defaultMessage:"您的邮箱和手机号尚未验证,为保障账号安全,建议您尽快完成验证。"})})})};/*! *****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var Ake;(function(e){(function(n){var r=typeof globalThis=="object"?globalThis:typeof oo=="object"?oo:typeof self=="object"?self:typeof this=="object"?this:l(),i=o(e);typeof r.Reflect<"u"&&(i=o(r.Reflect,i)),n(i,r),typeof r.Reflect>"u"&&(r.Reflect=e);function o(c,u){return function(d,f){Object.defineProperty(c,d,{configurable:!0,writable:!0,value:f}),u&&u(d,f)}}function a(){try{return Function("return this;")()}catch{}}function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}function l(){return a()||s()}})(function(n,r){var i=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",a=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",c={__proto__:[]}instanceof Array,u=!l&&!c,d={create:l?function(){return xe(Object.create(null))}:c?function(){return xe({__proto__:null})}:function(){return xe({})},has:u?function(ue,Me){return i.call(ue,Me)}:function(ue,Me){return Me in ue},get:u?function(ue,Me){return i.call(ue,Me)?ue[Me]:void 0}:function(ue,Me){return ue[Me]}},f=Object.getPrototypeOf(Function),p=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:J(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:ae(),g=typeof WeakMap=="function"?WeakMap:Se(),v=o?Symbol.for("@reflect-metadata:registry"):void 0,y=Oe(),_=Ne(y);function S(ue,Me,$e,ge){if(H($e)){if(!de(ue))throw new TypeError;if(!me(Me))throw new TypeError;return P(ue,Me)}else{if(!de(ue))throw new TypeError;if(!le(Me))throw new TypeError;if(!le(ge)&&!H(ge)&&!G(ge))throw new TypeError;return G(ge)&&(ge=void 0),$e=oe($e),k(ue,Me,$e,ge)}}n("decorate",S);function b(ue,Me){function $e(ge,Ve){if(!le(ge))throw new TypeError;if(!H(Ve)&&!ve(Ve))throw new TypeError;B(ue,Me,ge,Ve)}return $e}n("metadata",b);function E(ue,Me,$e,ge){if(!le($e))throw new TypeError;return H(ge)||(ge=oe(ge)),B(ue,Me,$e,ge)}n("defineMetadata",E);function w(ue,Me,$e){if(!le(Me))throw new TypeError;return H($e)||($e=oe($e)),$(ue,Me,$e)}n("hasMetadata",w);function C(ue,Me,$e){if(!le(Me))throw new TypeError;return H($e)||($e=oe($e)),U(ue,Me,$e)}n("hasOwnMetadata",C);function x(ue,Me,$e){if(!le(Me))throw new TypeError;return H($e)||($e=oe($e)),z(ue,Me,$e)}n("getMetadata",x);function T(ue,Me,$e){if(!le(Me))throw new TypeError;return H($e)||($e=oe($e)),D(ue,Me,$e)}n("getOwnMetadata",T);function R(ue,Me){if(!le(ue))throw new TypeError;return H(Me)||(Me=oe(Me)),Y(ue,Me)}n("getMetadataKeys",R);function O(ue,Me){if(!le(ue))throw new TypeError;return H(Me)||(Me=oe(Me)),q(ue,Me)}n("getOwnMetadataKeys",O);function M(ue,Me,$e){if(!le(Me))throw new TypeError;if(H($e)||($e=oe($e)),!le(Me))throw new TypeError;H($e)||($e=oe($e));var ge=ne(Me,$e,!1);return H(ge)?!1:ge.OrdinaryDeleteMetadata(ue,Me,$e)}n("deleteMetadata",M);function P(ue,Me){for(var $e=ue.length-1;$e>=0;--$e){var ge=ue[$e],Ve=ge(Me);if(!H(Ve)&&!G(Ve)){if(!me(Ve))throw new TypeError;Me=Ve}}return Me}function k(ue,Me,$e,ge){for(var Ve=ue.length-1;Ve>=0;--Ve){var st=ue[Ve],Je=st(Me,$e,ge);if(!H(Je)&&!G(Je)){if(!le(Je))throw new TypeError;ge=Je}}return ge}function $(ue,Me,$e){var ge=U(ue,Me,$e);if(ge)return!0;var Ve=Re(Me);return G(Ve)?!1:$(ue,Ve,$e)}function U(ue,Me,$e){var ge=ne(Me,$e,!1);return H(ge)?!1:F(ge.OrdinaryHasOwnMetadata(ue,Me,$e))}function z(ue,Me,$e){var ge=U(ue,Me,$e);if(ge)return D(ue,Me,$e);var Ve=Re(Me);if(!G(Ve))return z(ue,Ve,$e)}function D(ue,Me,$e){var ge=ne(Me,$e,!1);if(!H(ge))return ge.OrdinaryGetOwnMetadata(ue,Me,$e)}function B(ue,Me,$e,ge){var Ve=ne($e,ge,!0);Ve.OrdinaryDefineOwnMetadata(ue,Me,$e,ge)}function Y(ue,Me){var $e=q(ue,Me),ge=Re(ue);if(ge===null)return $e;var Ve=Y(ge,Me);if(Ve.length<=0)return $e;if($e.length<=0)return Ve;for(var st=new h,Je=[],ot=0,Xe=$e;ot<Xe.length;ot++){var Ze=Xe[ot],bt=st.has(Ze);bt||(st.add(Ze),Je.push(Ze))}for(var at=0,pt=Ve;at<pt.length;at++){var Ze=pt[at],bt=st.has(Ze);bt||(st.add(Ze),Je.push(Ze))}return Je}function q(ue,Me){var $e=ne(ue,Me,!1);return $e?$e.OrdinaryOwnMetadataKeys(ue,Me):[]}function K(ue){if(ue===null)return 1;switch(typeof ue){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return ue===null?1:6;default:return 6}}function H(ue){return ue===void 0}function G(ue){return ue===null}function Q(ue){return typeof ue=="symbol"}function le(ue){return typeof ue=="object"?ue!==null:typeof ue=="function"}function Z(ue,Me){switch(K(ue)){case 0:return ue;case 1:return ue;case 2:return ue;case 3:return ue;case 4:return ue;case 5:return ue}var $e="string",ge=be(ue,a);if(ge!==void 0){var Ve=ge.call(ue,$e);if(le(Ve))throw new TypeError;return Ve}return j(ue)}function j(ue,Me){var $e,ge;{var Ve=ue.toString;if(pe(Ve)){var ge=Ve.call(ue);if(!le(ge))return ge}var $e=ue.valueOf;if(pe($e)){var ge=$e.call(ue);if(!le(ge))return ge}}throw new TypeError}function F(ue){return!!ue}function te(ue){return""+ue}function oe(ue){var Me=Z(ue);return Q(Me)?Me:te(Me)}function de(ue){return Array.isArray?Array.isArray(ue):ue instanceof Object?ue instanceof Array:Object.prototype.toString.call(ue)==="[object Array]"}function pe(ue){return typeof ue=="function"}function me(ue){return typeof ue=="function"}function ve(ue){switch(K(ue)){case 3:return!0;case 4:return!0;default:return!1}}function he(ue,Me){return ue===Me||ue!==ue&&Me!==Me}function be(ue,Me){var $e=ue[Me];if($e!=null){if(!pe($e))throw new TypeError;return $e}}function we(ue){var Me=be(ue,s);if(!pe(Me))throw new TypeError;var $e=Me.call(ue);if(!le($e))throw new TypeError;return $e}function De(ue){return ue.value}function Ae(ue){var Me=ue.next();return Me.done?!1:Me}function Ee(ue){var Me=ue.return;Me&&Me.call(ue)}function Re(ue){var Me=Object.getPrototypeOf(ue);if(typeof ue!="function"||ue===f||Me!==f)return Me;var $e=ue.prototype,ge=$e&&Object.getPrototypeOf($e);if(ge==null||ge===Object.prototype)return Me;var Ve=ge.constructor;return typeof Ve!="function"||Ve===ue?Me:Ve}function Te(){var ue;!H(v)&&typeof r.Reflect<"u"&&!(v in r.Reflect)&&typeof r.Reflect.defineMetadata=="function"&&(ue=je(r.Reflect));var Me,$e,ge,Ve=new g,st={registerProvider:Je,getProvider:Xe,setProvider:bt};return st;function Je(at){if(!Object.isExtensible(st))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case ue===at:break;case H(Me):Me=at;break;case Me===at:break;case H($e):$e=at;break;case $e===at:break;default:ge===void 0&&(ge=new h),ge.add(at);break}}function ot(at,pt){if(!H(Me)){if(Me.isProviderFor(at,pt))return Me;if(!H($e)){if($e.isProviderFor(at,pt))return Me;if(!H(ge))for(var Ct=we(ge);;){var It=Ae(Ct);if(!It)return;var Wt=De(It);if(Wt.isProviderFor(at,pt))return Ee(Ct),Wt}}}if(!H(ue)&&ue.isProviderFor(at,pt))return ue}function Xe(at,pt){var Ct=Ve.get(at),It;return H(Ct)||(It=Ct.get(pt)),H(It)&&(It=ot(at,pt),H(It)||(H(Ct)&&(Ct=new p,Ve.set(at,Ct)),Ct.set(pt,It))),It}function Ze(at){if(H(at))throw new TypeError;return Me===at||$e===at||!H(ge)&&ge.has(at)}function bt(at,pt,Ct){if(!Ze(Ct))throw new Error("Metadata provider not registered.");var It=Xe(at,pt);if(It!==Ct){if(!H(It))return!1;var Wt=Ve.get(at);H(Wt)&&(Wt=new p,Ve.set(at,Wt)),Wt.set(pt,Ct)}return!0}}function Oe(){var ue;return!H(v)&&le(r.Reflect)&&Object.isExtensible(r.Reflect)&&(ue=r.Reflect[v]),H(ue)&&(ue=Te()),!H(v)&&le(r.Reflect)&&Object.isExtensible(r.Reflect)&&Object.defineProperty(r.Reflect,v,{enumerable:!1,configurable:!1,writable:!1,value:ue}),ue}function Ne(ue){var Me=new g,$e={isProviderFor:function(Ze,bt){var at=Me.get(Ze);return H(at)?!1:at.has(bt)},OrdinaryDefineOwnMetadata:Je,OrdinaryHasOwnMetadata:Ve,OrdinaryGetOwnMetadata:st,OrdinaryOwnMetadataKeys:ot,OrdinaryDeleteMetadata:Xe};return y.registerProvider($e),$e;function ge(Ze,bt,at){var pt=Me.get(Ze),Ct=!1;if(H(pt)){if(!at)return;pt=new p,Me.set(Ze,pt),Ct=!0}var It=pt.get(bt);if(H(It)){if(!at)return;if(It=new p,pt.set(bt,It),!ue.setProvider(Ze,bt,$e))throw pt.delete(bt),Ct&&Me.delete(Ze),new Error("Wrong provider for target.")}return It}function Ve(Ze,bt,at){var pt=ge(bt,at,!1);return H(pt)?!1:F(pt.has(Ze))}function st(Ze,bt,at){var pt=ge(bt,at,!1);if(!H(pt))return pt.get(Ze)}function Je(Ze,bt,at,pt){var Ct=ge(at,pt,!0);Ct.set(Ze,bt)}function ot(Ze,bt){var at=[],pt=ge(Ze,bt,!1);if(H(pt))return at;for(var Ct=pt.keys(),It=we(Ct),Wt=0;;){var Bt=Ae(It);if(!Bt)return at.length=Wt,at;var Vt=De(Bt);try{at[Wt]=Vt}catch(rn){try{Ee(It)}finally{throw rn}}Wt++}}function Xe(Ze,bt,at){var pt=ge(bt,at,!1);if(H(pt)||!pt.delete(Ze))return!1;if(pt.size===0){var Ct=Me.get(bt);H(Ct)||(Ct.delete(at),Ct.size===0&&Me.delete(Ct))}return!0}}function je(ue){var Me=ue.defineMetadata,$e=ue.hasOwnMetadata,ge=ue.getOwnMetadata,Ve=ue.getOwnMetadataKeys,st=ue.deleteMetadata,Je=new g,ot={isProviderFor:function(Xe,Ze){var bt=Je.get(Xe);return!H(bt)&&bt.has(Ze)?!0:Ve(Xe,Ze).length?(H(bt)&&(bt=new h,Je.set(Xe,bt)),bt.add(Ze),!0):!1},OrdinaryDefineOwnMetadata:Me,OrdinaryHasOwnMetadata:$e,OrdinaryGetOwnMetadata:ge,OrdinaryOwnMetadataKeys:Ve,OrdinaryDeleteMetadata:st};return ot}function ne(ue,Me,$e){var ge=y.getProvider(ue,Me);if(!H(ge))return ge;if($e){if(y.setProvider(ue,Me,_))return _;throw new Error("Illegal state.")}}function J(){var ue={},Me=[],$e=function(){function ot(Xe,Ze,bt){this._index=0,this._keys=Xe,this._values=Ze,this._selector=bt}return ot.prototype["@@iterator"]=function(){return this},ot.prototype[s]=function(){return this},ot.prototype.next=function(){var Xe=this._index;if(Xe>=0&&Xe<this._keys.length){var Ze=this._selector(this._keys[Xe],this._values[Xe]);return Xe+1>=this._keys.length?(this._index=-1,this._keys=Me,this._values=Me):this._index++,{value:Ze,done:!1}}return{value:void 0,done:!0}},ot.prototype.throw=function(Xe){throw this._index>=0&&(this._index=-1,this._keys=Me,this._values=Me),Xe},ot.prototype.return=function(Xe){return this._index>=0&&(this._index=-1,this._keys=Me,this._values=Me),{value:Xe,done:!0}},ot}(),ge=function(){function ot(){this._keys=[],this._values=[],this._cacheKey=ue,this._cacheIndex=-2}return Object.defineProperty(ot.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ot.prototype.has=function(Xe){return this._find(Xe,!1)>=0},ot.prototype.get=function(Xe){var Ze=this._find(Xe,!1);return Ze>=0?this._values[Ze]:void 0},ot.prototype.set=function(Xe,Ze){var bt=this._find(Xe,!0);return this._values[bt]=Ze,this},ot.prototype.delete=function(Xe){var Ze=this._find(Xe,!1);if(Ze>=0){for(var bt=this._keys.length,at=Ze+1;at<bt;at++)this._keys[at-1]=this._keys[at],this._values[at-1]=this._values[at];return this._keys.length--,this._values.length--,he(Xe,this._cacheKey)&&(this._cacheKey=ue,this._cacheIndex=-2),!0}return!1},ot.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=ue,this._cacheIndex=-2},ot.prototype.keys=function(){return new $e(this._keys,this._values,Ve)},ot.prototype.values=function(){return new $e(this._keys,this._values,st)},ot.prototype.entries=function(){return new $e(this._keys,this._values,Je)},ot.prototype["@@iterator"]=function(){return this.entries()},ot.prototype[s]=function(){return this.entries()},ot.prototype._find=function(Xe,Ze){if(!he(this._cacheKey,Xe)){this._cacheIndex=-1;for(var bt=0;bt<this._keys.length;bt++)if(he(this._keys[bt],Xe)){this._cacheIndex=bt;break}}return this._cacheIndex<0&&Ze&&(this._cacheIndex=this._keys.length,this._keys.push(Xe),this._values.push(void 0)),this._cacheIndex},ot}();return ge;function Ve(ot,Xe){return ot}function st(ot,Xe){return Xe}function Je(ot,Xe){return[ot,Xe]}}function ae(){var ue=function(){function Me(){this._map=new p}return Object.defineProperty(Me.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),Me.prototype.has=function($e){return this._map.has($e)},Me.prototype.add=function($e){return this._map.set($e,$e),this},Me.prototype.delete=function($e){return this._map.delete($e)},Me.prototype.clear=function(){this._map.clear()},Me.prototype.keys=function(){return this._map.keys()},Me.prototype.values=function(){return this._map.keys()},Me.prototype.entries=function(){return this._map.entries()},Me.prototype["@@iterator"]=function(){return this.keys()},Me.prototype[s]=function(){return this.keys()},Me}();return ue}function Se(){var ue=16,Me=d.create(),$e=ge();return function(){function Xe(){this._key=ge()}return Xe.prototype.has=function(Ze){var bt=Ve(Ze,!1);return bt!==void 0?d.has(bt,this._key):!1},Xe.prototype.get=function(Ze){var bt=Ve(Ze,!1);return bt!==void 0?d.get(bt,this._key):void 0},Xe.prototype.set=function(Ze,bt){var at=Ve(Ze,!0);return at[this._key]=bt,this},Xe.prototype.delete=function(Ze){var bt=Ve(Ze,!1);return bt!==void 0?delete bt[this._key]:!1},Xe.prototype.clear=function(){this._key=ge()},Xe}();function ge(){var Xe;do Xe="@@WeakMap@@"+ot();while(d.has(Me,Xe));return Me[Xe]=!0,Xe}function Ve(Xe,Ze){if(!i.call(Xe,$e)){if(!Ze)return;Object.defineProperty(Xe,$e,{value:d.create()})}return Xe[$e]}function st(Xe,Ze){for(var bt=0;bt<Ze;++bt)Xe[bt]=Math.random()*255|0;return Xe}function Je(Xe){if(typeof Uint8Array=="function"){var Ze=new Uint8Array(Xe);return typeof crypto<"u"?crypto.getRandomValues(Ze):typeof msCrypto<"u"?msCrypto.getRandomValues(Ze):st(Ze,Xe),Ze}return st(new Array(Xe),Xe)}function ot(){var Xe=Je(ue);Xe[6]=Xe[6]&79|64,Xe[8]=Xe[8]&191|128;for(var Ze="",bt=0;bt<ue;++bt){var at=Xe[bt];(bt===4||bt===6||bt===8)&&(Ze+="-"),at<16&&(Ze+="0"),Ze+=at.toString(16).toLowerCase()}return Ze}}function xe(ue){return ue.__=void 0,delete ue.__,ue}})})(Ake||(Ake={}));var cj={exports:{}};/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/cj.exports;(function(e,n){(function(){var r,i="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",f=1,p=2,h=4,g=1,v=2,y=1,_=2,S=4,b=8,E=16,w=32,C=64,x=128,T=256,R=512,O=30,M="...",P=800,k=16,$=1,U=2,z=3,D=1/0,B=9007199254740991,Y=17976931348623157e292,q=NaN,K=4294967295,H=K-1,G=K>>>1,Q=[["ary",x],["bind",y],["bindKey",_],["curry",b],["curryRight",E],["flip",R],["partial",w],["partialRight",C],["rearg",T]],le="[object Arguments]",Z="[object Array]",j="[object AsyncFunction]",F="[object Boolean]",te="[object Date]",oe="[object DOMException]",de="[object Error]",pe="[object Function]",me="[object GeneratorFunction]",ve="[object Map]",he="[object Number]",be="[object Null]",we="[object Object]",De="[object Promise]",Ae="[object Proxy]",Ee="[object RegExp]",Re="[object Set]",Te="[object String]",Oe="[object Symbol]",Ne="[object Undefined]",je="[object WeakMap]",ne="[object WeakSet]",J="[object ArrayBuffer]",ae="[object DataView]",Se="[object Float32Array]",xe="[object Float64Array]",ue="[object Int8Array]",Me="[object Int16Array]",$e="[object Int32Array]",ge="[object Uint8Array]",Ve="[object Uint8ClampedArray]",st="[object Uint16Array]",Je="[object Uint32Array]",ot=/\b__p \+= '';/g,Xe=/\b(__p \+=) '' \+/g,Ze=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bt=/&(?:amp|lt|gt|quot|#39);/g,at=/[&<>"']/g,pt=RegExp(bt.source),Ct=RegExp(at.source),It=/<%-([\s\S]+?)%>/g,Wt=/<%([\s\S]+?)%>/g,Bt=/<%=([\s\S]+?)%>/g,Vt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,it=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(it.source),vt=/^\s+/,kt=/\s/,Dt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Kt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ht=/,? & /,tn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,on=/[()=,{}\[\]\/\s]/,sn=/\\(\\)?/g,Jt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,En=/\w*$/,Pt=/^[-+]0x[0-9a-f]+$/i,Qt=/^0b[01]+$/i,ln=/^\[object .+?Constructor\]$/,jt=/^0o[0-7]+$/i,Lt=/^(?:0|[1-9]\d*)$/,en=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ue=/($^)/,Zt=/['\n\r\u2028\u2029\\]/g,Et="\\ud800-\\udfff",Gt="\\u0300-\\u036f",zt="\\ufe20-\\ufe2f",Vn="\\u20d0-\\u20ff",sr=Gt+zt+Vn,A="\\u2700-\\u27bf",W="a-z\\xdf-\\xf6\\xf8-\\xff",ce="\\xac\\xb1\\xd7\\xf7",Pe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qe="\\u2000-\\u206f",gt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Yt="A-Z\\xc0-\\xd6\\xd8-\\xde",Nn="\\ufe0e\\ufe0f",Jn=ce+Pe+qe+gt,Ci="[']",wi="["+Et+"]",to="["+Jn+"]",Vr="["+sr+"]",wn="\\d+",Bn="["+A+"]",ni="["+W+"]",yn="[^"+Et+Jn+wn+A+W+Yt+"]",Sn="\\ud83c[\\udffb-\\udfff]",ur="(?:"+Vr+"|"+Sn+")",qr="[^"+Et+"]",zi="(?:\\ud83c[\\udde6-\\uddff]){2}",Qo="[\\ud800-\\udbff][\\udc00-\\udfff]",gr="["+Yt+"]",Oo="\\u200d",Pa="(?:"+ni+"|"+yn+")",Er="(?:"+gr+"|"+yn+")",nr="(?:"+Ci+"(?:d|ll|m|re|s|t|ve))?",lr="(?:"+Ci+"(?:D|LL|M|RE|S|T|VE))?",Kr=ur+"?",Pi="["+Nn+"]?",Dl="(?:"+Oo+"(?:"+[qr,zi,Qo].join("|")+")"+Pi+Kr+")*",kl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ro="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Is=Pi+Kr+Dl,ku="(?:"+[Bn,zi,Qo].join("|")+")"+Is,Lu="(?:"+[qr+Vr+"?",Vr,zi,Qo,wi].join("|")+")",Mg=RegExp(Ci,"g"),Wn=RegExp(Vr,"g"),Ir=RegExp(Sn+"(?="+Sn+")|"+Lu+Is,"g"),Li=RegExp([gr+"?"+ni+"+"+nr+"(?="+[to,gr,"$"].join("|")+")",Er+"+"+lr+"(?="+[to,gr+Pa,"$"].join("|")+")",gr+"?"+Pa+"+"+nr,gr+"+"+lr,Ro,kl,wn,ku].join("|"),"g"),ha=RegExp("["+Oo+Et+sr+Nn+"]"),Zo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],eh=-1,go={};go[Se]=go[xe]=go[ue]=go[Me]=go[$e]=go[ge]=go[Ve]=go[st]=go[Je]=!0,go[le]=go[Z]=go[J]=go[F]=go[ae]=go[te]=go[de]=go[pe]=go[ve]=go[he]=go[we]=go[Ee]=go[Re]=go[Te]=go[je]=!1;var no={};no[le]=no[Z]=no[J]=no[ae]=no[F]=no[te]=no[Se]=no[xe]=no[ue]=no[Me]=no[$e]=no[ve]=no[he]=no[we]=no[Ee]=no[Re]=no[Te]=no[Oe]=no[ge]=no[Ve]=no[st]=no[Je]=!0,no[de]=no[pe]=no[je]=!1;var _G={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},US={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bG={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},SG={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Gw=parseFloat,Ww=parseInt,Yw=typeof oo=="object"&&oo&&oo.Object===Object&&oo,EG=typeof self=="object"&&self&&self.Object===Object&&self,pl=Yw||EG||Function("return this")(),vN=n&&!n.nodeType&&n,th=vN&&!0&&e&&!e.nodeType&&e,qw=th&&th.exports===vN,Kw=qw&&Yw.process,nc=function(){try{var ze=th&&th.require&&th.require("util").types;return ze||Kw&&Kw.binding&&Kw.binding("util")}catch{}}(),HS=nc&&nc.isArrayBuffer,zS=nc&&nc.isDate,yN=nc&&nc.isMap,w$=nc&&nc.isRegExp,VS=nc&&nc.isSet,Xw=nc&&nc.isTypedArray;function rc(ze,et,Ge){switch(Ge.length){case 0:return ze.call(et);case 1:return ze.call(et,Ge[0]);case 2:return ze.call(et,Ge[0],Ge[1]);case 3:return ze.call(et,Ge[0],Ge[1],Ge[2])}return ze.apply(et,Ge)}function _N(ze,et,Ge,dt){for(var lt=-1,yt=ze==null?0:ze.length;++lt<yt;){var xt=ze[lt];et(dt,xt,Ge(xt),ze)}return dt}function wc(ze,et){for(var Ge=-1,dt=ze==null?0:ze.length;++Ge<dt&&et(ze[Ge],Ge,ze)!==!1;);return ze}function Ll(ze,et){for(var Ge=ze==null?0:ze.length;Ge--&&et(ze[Ge],Ge,ze)!==!1;);return ze}function O_(ze,et){for(var Ge=-1,dt=ze==null?0:ze.length;++Ge<dt;)if(!et(ze[Ge],Ge,ze))return!1;return!0}function $u(ze,et){for(var Ge=-1,dt=ze==null?0:ze.length,lt=0,yt=[];++Ge<dt;){var xt=ze[Ge];et(xt,Ge,ze)&&(yt[lt++]=xt)}return yt}function GS(ze,et){var Ge=ze==null?0:ze.length;return!!Ge&&N_(ze,et,0)>-1}function R_(ze,et,Ge){for(var dt=-1,lt=ze==null?0:ze.length;++dt<lt;)if(Ge(et,ze[dt]))return!0;return!1}function Jo(ze,et){for(var Ge=-1,dt=ze==null?0:ze.length,lt=Array(dt);++Ge<dt;)lt[Ge]=et(ze[Ge],Ge,ze);return lt}function nh(ze,et){for(var Ge=-1,dt=et.length,lt=ze.length;++Ge<dt;)ze[lt+Ge]=et[Ge];return ze}function I_(ze,et,Ge,dt){var lt=-1,yt=ze==null?0:ze.length;for(dt&&yt&&(Ge=ze[++lt]);++lt<yt;)Ge=et(Ge,ze[lt],lt,ze);return Ge}function bN(ze,et,Ge,dt){var lt=ze==null?0:ze.length;for(dt&&lt&&(Ge=ze[--lt]);lt--;)Ge=et(Ge,ze[lt],lt,ze);return Ge}function rh(ze,et){for(var Ge=-1,dt=ze==null?0:ze.length;++Ge<dt;)if(et(ze[Ge],Ge,ze))return!0;return!1}var SN=qS("length");function EN(ze){return ze.split("")}function Qw(ze){return ze.match(tn)||[]}function Zw(ze,et,Ge){var dt;return Ge(ze,function(lt,yt,xt){if(et(lt,yt,xt))return dt=yt,!1}),dt}function WS(ze,et,Ge,dt){for(var lt=ze.length,yt=Ge+(dt?1:-1);dt?yt--:++yt<lt;)if(et(ze[yt],yt,ze))return yt;return-1}function N_(ze,et,Ge){return et===et?Ag(ze,et,Ge):WS(ze,YS,Ge)}function CN(ze,et,Ge,dt){for(var lt=Ge-1,yt=ze.length;++lt<yt;)if(dt(ze[lt],et))return lt;return-1}function YS(ze){return ze!==ze}function x$(ze,et){var Ge=ze==null?0:ze.length;return Ge?wN(ze,et)/Ge:q}function qS(ze){return function(et){return et==null?r:et[ze]}}function KS(ze){return function(et){return ze==null?r:ze[et]}}function T$(ze,et,Ge,dt,lt){return lt(ze,function(yt,xt,mt){Ge=dt?(dt=!1,yt):et(Ge,yt,xt,mt)}),Ge}function O$(ze,et){var Ge=ze.length;for(ze.sort(et);Ge--;)ze[Ge]=ze[Ge].value;return ze}function wN(ze,et){for(var Ge,dt=-1,lt=ze.length;++dt<lt;){var yt=et(ze[dt]);yt!==r&&(Ge=Ge===r?yt:Ge+yt)}return Ge}function Jw(ze,et){for(var Ge=-1,dt=Array(ze);++Ge<ze;)dt[Ge]=et(Ge);return dt}function R$(ze,et){return Jo(et,function(Ge){return[Ge,ze[Ge]]})}function I$(ze){return ze&&ze.slice(0,ye(ze)+1).replace(vt,"")}function xc(ze){return function(et){return ze(et)}}function XS(ze,et){return Jo(et,function(Ge){return ze[Ge]})}function M_(ze,et){return ze.has(et)}function xN(ze,et){for(var Ge=-1,dt=ze.length;++Ge<dt&&N_(et,ze[Ge],0)>-1;);return Ge}function N$(ze,et){for(var Ge=ze.length;Ge--&&N_(et,ze[Ge],0)>-1;);return Ge}function CG(ze,et){for(var Ge=ze.length,dt=0;Ge--;)ze[Ge]===et&&++dt;return dt}var wG=KS(_G),ex=KS(US);function ih(ze){return"\\"+SG[ze]}function Za(ze,et){return ze==null?r:ze[et]}function oh(ze){return ha.test(ze)}function Fu(ze){return Zo.test(ze)}function xG(ze){for(var et,Ge=[];!(et=ze.next()).done;)Ge.push(et.value);return Ge}function QS(ze){var et=-1,Ge=Array(ze.size);return ze.forEach(function(dt,lt){Ge[++et]=[lt,dt]}),Ge}function TN(ze,et){return function(Ge){return ze(et(Ge))}}function Tc(ze,et){for(var Ge=-1,dt=ze.length,lt=0,yt=[];++Ge<dt;){var xt=ze[Ge];(xt===et||xt===d)&&(ze[Ge]=d,yt[lt++]=Ge)}return yt}function P_(ze){var et=-1,Ge=Array(ze.size);return ze.forEach(function(dt){Ge[++et]=dt}),Ge}function A_(ze){var et=-1,Ge=Array(ze.size);return ze.forEach(function(dt){Ge[++et]=[dt,dt]}),Ge}function Ag(ze,et,Ge){for(var dt=Ge-1,lt=ze.length;++dt<lt;)if(ze[dt]===et)return dt;return-1}function M$(ze,et,Ge){for(var dt=Ge+1;dt--;)if(ze[dt]===et)return dt;return dt}function X(ze){return oh(ze)?Le(ze):SN(ze)}function se(ze){return oh(ze)?We(ze):EN(ze)}function ye(ze){for(var et=ze.length;et--&&kt.test(ze.charAt(et)););return et}var Ie=KS(bG);function Le(ze){for(var et=Ir.lastIndex=0;Ir.test(ze);)++et;return et}function We(ze){return ze.match(Ir)||[]}function rt(ze){return ze.match(Li)||[]}var ut=function ze(et){et=et==null?pl:St.defaults(pl.Object(),et,St.pick(pl,Pg));var Ge=et.Array,dt=et.Date,lt=et.Error,yt=et.Function,xt=et.Math,mt=et.Object,Ft=et.RegExp,qt=et.String,Ut=et.TypeError,an=Ge.prototype,An=yt.prototype,Fn=mt.prototype,Rn=et["__core-js_shared__"],Ln=An.toString,mn=Fn.hasOwnProperty,jn=0,rr=function(){var I=/[^.]+$/.exec(Rn&&Rn.keys&&Rn.keys.IE_PROTO||"");return I?"Symbol(src)_1."+I:""}(),Jr=Fn.toString,yi=Ln.call(mt),_i=pl._,Jc=Ft("^"+Ln.call(mn).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xr=qw?et.Buffer:r,ga=et.Symbol,Ns=et.Uint8Array,ZS=Xr?Xr.allocUnsafe:r,Js=TN(mt.getPrototypeOf,mt),Dg=mt.create,tx=Fn.propertyIsEnumerable,P$=an.splice,fye=ga?ga.isConcatSpreadable:r,ON=ga?ga.iterator:r,JS=ga?ga.toStringTag:r,A$=function(){try{var I=iE(mt,"defineProperty");return I({},"",{}),I}catch{}}(),Xut=et.clearTimeout!==pl.clearTimeout&&et.clearTimeout,Qut=dt&&dt.now!==pl.Date.now&&dt.now,Zut=et.setTimeout!==pl.setTimeout&&et.setTimeout,D$=xt.ceil,k$=xt.floor,TG=mt.getOwnPropertySymbols,Jut=Xr?Xr.isBuffer:r,pye=et.isFinite,edt=an.join,tdt=TN(mt.keys,mt),hl=xt.max,Oc=xt.min,ndt=dt.now,rdt=et.parseInt,hye=xt.random,idt=an.reverse,OG=iE(et,"DataView"),RN=iE(et,"Map"),RG=iE(et,"Promise"),nx=iE(et,"Set"),IN=iE(et,"WeakMap"),NN=iE(mt,"create"),L$=IN&&new IN,rx={},odt=oE(OG),adt=oE(RN),sdt=oE(RG),ldt=oE(nx),cdt=oE(IN),$$=ga?ga.prototype:r,MN=$$?$$.valueOf:r,gye=$$?$$.toString:r;function Ke(I){if(ds(I)&&!ci(I)&&!(I instanceof Vi)){if(I instanceof Bf)return I;if(mn.call(I,"__wrapped__"))return m_e(I)}return new Bf(I)}var ix=function(){function I(){}return function(L){if(!Ja(L))return{};if(Dg)return Dg(L);I.prototype=L;var re=new I;return I.prototype=r,re}}();function F$(){}function Bf(I,L){this.__wrapped__=I,this.__actions__=[],this.__chain__=!!L,this.__index__=0,this.__values__=r}Ke.templateSettings={escape:It,evaluate:Wt,interpolate:Bt,variable:"",imports:{_:Ke}},Ke.prototype=F$.prototype,Ke.prototype.constructor=Ke,Bf.prototype=ix(F$.prototype),Bf.prototype.constructor=Bf;function Vi(I){this.__wrapped__=I,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function udt(){var I=new Vi(this.__wrapped__);return I.__actions__=Bu(this.__actions__),I.__dir__=this.__dir__,I.__filtered__=this.__filtered__,I.__iteratees__=Bu(this.__iteratees__),I.__takeCount__=this.__takeCount__,I.__views__=Bu(this.__views__),I}function ddt(){if(this.__filtered__){var I=new Vi(this);I.__dir__=-1,I.__filtered__=!0}else I=this.clone(),I.__dir__*=-1;return I}function fdt(){var I=this.__wrapped__.value(),L=this.__dir__,re=ci(I),_e=L<0,Be=re?I.length:0,Qe=wft(0,Be,this.__views__),ct=Qe.start,_t=Qe.end,Mt=_t-ct,un=_e?_t:ct-1,dn=this.__iteratees__,bn=dn.length,Kn=0,_r=Oc(Mt,this.__takeCount__);if(!re||!_e&&Be==Mt&&_r==Mt)return Bye(I,this.__actions__);var Br=[];e:for(;Mt--&&Kn<_r;){un+=L;for(var bi=-1,jr=I[un];++bi<bn;){var $i=dn[bi],Qi=$i.iteratee,Md=$i.type,nu=Qi(jr);if(Md==U)jr=nu;else if(!nu){if(Md==$)continue e;break e}}Br[Kn++]=jr}return Br}Vi.prototype=ix(F$.prototype),Vi.prototype.constructor=Vi;function eE(I){var L=-1,re=I==null?0:I.length;for(this.clear();++L<re;){var _e=I[L];this.set(_e[0],_e[1])}}function pdt(){this.__data__=NN?NN(null):{},this.size=0}function hdt(I){var L=this.has(I)&&delete this.__data__[I];return this.size-=L?1:0,L}function gdt(I){var L=this.__data__;if(NN){var re=L[I];return re===c?r:re}return mn.call(L,I)?L[I]:r}function mdt(I){var L=this.__data__;return NN?L[I]!==r:mn.call(L,I)}function vdt(I,L){var re=this.__data__;return this.size+=this.has(I)?0:1,re[I]=NN&&L===r?c:L,this}eE.prototype.clear=pdt,eE.prototype.delete=hdt,eE.prototype.get=gdt,eE.prototype.has=mdt,eE.prototype.set=vdt;function hv(I){var L=-1,re=I==null?0:I.length;for(this.clear();++L<re;){var _e=I[L];this.set(_e[0],_e[1])}}function ydt(){this.__data__=[],this.size=0}function _dt(I){var L=this.__data__,re=B$(L,I);if(re<0)return!1;var _e=L.length-1;return re==_e?L.pop():P$.call(L,re,1),--this.size,!0}function bdt(I){var L=this.__data__,re=B$(L,I);return re<0?r:L[re][1]}function Sdt(I){return B$(this.__data__,I)>-1}function Edt(I,L){var re=this.__data__,_e=B$(re,I);return _e<0?(++this.size,re.push([I,L])):re[_e][1]=L,this}hv.prototype.clear=ydt,hv.prototype.delete=_dt,hv.prototype.get=bdt,hv.prototype.has=Sdt,hv.prototype.set=Edt;function gv(I){var L=-1,re=I==null?0:I.length;for(this.clear();++L<re;){var _e=I[L];this.set(_e[0],_e[1])}}function Cdt(){this.size=0,this.__data__={hash:new eE,map:new(RN||hv),string:new eE}}function wdt(I){var L=Q$(this,I).delete(I);return this.size-=L?1:0,L}function xdt(I){return Q$(this,I).get(I)}function Tdt(I){return Q$(this,I).has(I)}function Odt(I,L){var re=Q$(this,I),_e=re.size;return re.set(I,L),this.size+=re.size==_e?0:1,this}gv.prototype.clear=Cdt,gv.prototype.delete=wdt,gv.prototype.get=xdt,gv.prototype.has=Tdt,gv.prototype.set=Odt;function tE(I){var L=-1,re=I==null?0:I.length;for(this.__data__=new gv;++L<re;)this.add(I[L])}function Rdt(I){return this.__data__.set(I,c),this}function Idt(I){return this.__data__.has(I)}tE.prototype.add=tE.prototype.push=Rdt,tE.prototype.has=Idt;function ah(I){var L=this.__data__=new hv(I);this.size=L.size}function Ndt(){this.__data__=new hv,this.size=0}function Mdt(I){var L=this.__data__,re=L.delete(I);return this.size=L.size,re}function Pdt(I){return this.__data__.get(I)}function Adt(I){return this.__data__.has(I)}function Ddt(I,L){var re=this.__data__;if(re instanceof hv){var _e=re.__data__;if(!RN||_e.length<o-1)return _e.push([I,L]),this.size=++re.size,this;re=this.__data__=new gv(_e)}return re.set(I,L),this.size=re.size,this}ah.prototype.clear=Ndt,ah.prototype.delete=Mdt,ah.prototype.get=Pdt,ah.prototype.has=Adt,ah.prototype.set=Ddt;function mye(I,L){var re=ci(I),_e=!re&&aE(I),Be=!re&&!_e&&F_(I),Qe=!re&&!_e&&!Be&&lx(I),ct=re||_e||Be||Qe,_t=ct?Jw(I.length,qt):[],Mt=_t.length;for(var un in I)(L||mn.call(I,un))&&!(ct&&(un=="length"||Be&&(un=="offset"||un=="parent")||Qe&&(un=="buffer"||un=="byteLength"||un=="byteOffset")||_v(un,Mt)))&&_t.push(un);return _t}function vye(I){var L=I.length;return L?I[BG(0,L-1)]:r}function kdt(I,L){return Z$(Bu(I),nE(L,0,I.length))}function Ldt(I){return Z$(Bu(I))}function IG(I,L,re){(re!==r&&!sh(I[L],re)||re===r&&!(L in I))&&mv(I,L,re)}function PN(I,L,re){var _e=I[L];(!(mn.call(I,L)&&sh(_e,re))||re===r&&!(L in I))&&mv(I,L,re)}function B$(I,L){for(var re=I.length;re--;)if(sh(I[re][0],L))return re;return-1}function $dt(I,L,re,_e){return D_(I,function(Be,Qe,ct){L(_e,Be,re(Be),ct)}),_e}function yye(I,L){return I&&Lg(L,$l(L),I)}function Fdt(I,L){return I&&Lg(L,Uu(L),I)}function mv(I,L,re){L=="__proto__"&&A$?A$(I,L,{configurable:!0,enumerable:!0,value:re,writable:!0}):I[L]=re}function NG(I,L){for(var re=-1,_e=L.length,Be=Ge(_e),Qe=I==null;++re<_e;)Be[re]=Qe?r:uW(I,L[re]);return Be}function nE(I,L,re){return I===I&&(re!==r&&(I=I<=re?I:re),L!==r&&(I=I>=L?I:L)),I}function jf(I,L,re,_e,Be,Qe){var ct,_t=L&f,Mt=L&p,un=L&h;if(re&&(ct=Be?re(I,_e,Be,Qe):re(I)),ct!==r)return ct;if(!Ja(I))return I;var dn=ci(I);if(dn){if(ct=Tft(I),!_t)return Bu(I,ct)}else{var bn=Rc(I),Kn=bn==pe||bn==me;if(F_(I))return Hye(I,_t);if(bn==we||bn==le||Kn&&!Be){if(ct=Mt||Kn?{}:s_e(I),!_t)return Mt?gft(I,Fdt(ct,I)):hft(I,yye(ct,I))}else{if(!no[bn])return Be?I:{};ct=Oft(I,bn,_t)}}Qe||(Qe=new ah);var _r=Qe.get(I);if(_r)return _r;Qe.set(I,ct),L_e(I)?I.forEach(function(jr){ct.add(jf(jr,L,re,jr,I,Qe))}):D_e(I)&&I.forEach(function(jr,$i){ct.set($i,jf(jr,L,re,$i,I,Qe))});var Br=un?Mt?XG:KG:Mt?Uu:$l,bi=dn?r:Br(I);return wc(bi||I,function(jr,$i){bi&&($i=jr,jr=I[$i]),PN(ct,$i,jf(jr,L,re,$i,I,Qe))}),ct}function Bdt(I){var L=$l(I);return function(re){return _ye(re,I,L)}}function _ye(I,L,re){var _e=re.length;if(I==null)return!_e;for(I=mt(I);_e--;){var Be=re[_e],Qe=L[Be],ct=I[Be];if(ct===r&&!(Be in I)||!Qe(ct))return!1}return!0}function bye(I,L,re){if(typeof I!="function")throw new Ut(s);return BN(function(){I.apply(r,re)},L)}function AN(I,L,re,_e){var Be=-1,Qe=GS,ct=!0,_t=I.length,Mt=[],un=L.length;if(!_t)return Mt;re&&(L=Jo(L,xc(re))),_e?(Qe=R_,ct=!1):L.length>=o&&(Qe=M_,ct=!1,L=new tE(L));e:for(;++Be<_t;){var dn=I[Be],bn=re==null?dn:re(dn);if(dn=_e||dn!==0?dn:0,ct&&bn===bn){for(var Kn=un;Kn--;)if(L[Kn]===bn)continue e;Mt.push(dn)}else Qe(L,bn,_e)||Mt.push(dn)}return Mt}var D_=Yye(kg),Sye=Yye(PG,!0);function jdt(I,L){var re=!0;return D_(I,function(_e,Be,Qe){return re=!!L(_e,Be,Qe),re}),re}function j$(I,L,re){for(var _e=-1,Be=I.length;++_e<Be;){var Qe=I[_e],ct=L(Qe);if(ct!=null&&(_t===r?ct===ct&&!Nd(ct):re(ct,_t)))var _t=ct,Mt=Qe}return Mt}function Udt(I,L,re,_e){var Be=I.length;for(re=hi(re),re<0&&(re=-re>Be?0:Be+re),_e=_e===r||_e>Be?Be:hi(_e),_e<0&&(_e+=Be),_e=re>_e?0:F_e(_e);re<_e;)I[re++]=L;return I}function Eye(I,L){var re=[];return D_(I,function(_e,Be,Qe){L(_e,Be,Qe)&&re.push(_e)}),re}function ic(I,L,re,_e,Be){var Qe=-1,ct=I.length;for(re||(re=Ift),Be||(Be=[]);++Qe<ct;){var _t=I[Qe];L>0&&re(_t)?L>1?ic(_t,L-1,re,_e,Be):nh(Be,_t):_e||(Be[Be.length]=_t)}return Be}var MG=qye(),Cye=qye(!0);function kg(I,L){return I&&MG(I,L,$l)}function PG(I,L){return I&&Cye(I,L,$l)}function U$(I,L){return $u(L,function(re){return bv(I[re])})}function rE(I,L){L=L_(L,I);for(var re=0,_e=L.length;I!=null&&re<_e;)I=I[$g(L[re++])];return re&&re==_e?I:r}function wye(I,L,re){var _e=L(I);return ci(I)?_e:nh(_e,re(I))}function eu(I){return I==null?I===r?Ne:be:JS&&JS in mt(I)?Cft(I):Lft(I)}function AG(I,L){return I>L}function Hdt(I,L){return I!=null&&mn.call(I,L)}function zdt(I,L){return I!=null&&L in mt(I)}function Vdt(I,L,re){return I>=Oc(L,re)&&I<hl(L,re)}function DG(I,L,re){for(var _e=re?R_:GS,Be=I[0].length,Qe=I.length,ct=Qe,_t=Ge(Qe),Mt=1/0,un=[];ct--;){var dn=I[ct];ct&&L&&(dn=Jo(dn,xc(L))),Mt=Oc(dn.length,Mt),_t[ct]=!re&&(L||Be>=120&&dn.length>=120)?new tE(ct&&dn):r}dn=I[0];var bn=-1,Kn=_t[0];e:for(;++bn<Be&&un.length<Mt;){var _r=dn[bn],Br=L?L(_r):_r;if(_r=re||_r!==0?_r:0,!(Kn?M_(Kn,Br):_e(un,Br,re))){for(ct=Qe;--ct;){var bi=_t[ct];if(!(bi?M_(bi,Br):_e(I[ct],Br,re)))continue e}Kn&&Kn.push(Br),un.push(_r)}}return un}function Gdt(I,L,re,_e){return kg(I,function(Be,Qe,ct){L(_e,re(Be),Qe,ct)}),_e}function DN(I,L,re){L=L_(L,I),I=d_e(I,L);var _e=I==null?I:I[$g(Hf(L))];return _e==null?r:rc(_e,I,re)}function xye(I){return ds(I)&&eu(I)==le}function Wdt(I){return ds(I)&&eu(I)==J}function Ydt(I){return ds(I)&&eu(I)==te}function kN(I,L,re,_e,Be){return I===L?!0:I==null||L==null||!ds(I)&&!ds(L)?I!==I&&L!==L:qdt(I,L,re,_e,kN,Be)}function qdt(I,L,re,_e,Be,Qe){var ct=ci(I),_t=ci(L),Mt=ct?Z:Rc(I),un=_t?Z:Rc(L);Mt=Mt==le?we:Mt,un=un==le?we:un;var dn=Mt==we,bn=un==we,Kn=Mt==un;if(Kn&&F_(I)){if(!F_(L))return!1;ct=!0,dn=!1}if(Kn&&!dn)return Qe||(Qe=new ah),ct||lx(I)?i_e(I,L,re,_e,Be,Qe):Sft(I,L,Mt,re,_e,Be,Qe);if(!(re&g)){var _r=dn&&mn.call(I,"__wrapped__"),Br=bn&&mn.call(L,"__wrapped__");if(_r||Br){var bi=_r?I.value():I,jr=Br?L.value():L;return Qe||(Qe=new ah),Be(bi,jr,re,_e,Qe)}}return Kn?(Qe||(Qe=new ah),Eft(I,L,re,_e,Be,Qe)):!1}function Kdt(I){return ds(I)&&Rc(I)==ve}function kG(I,L,re,_e){var Be=re.length,Qe=Be,ct=!_e;if(I==null)return!Qe;for(I=mt(I);Be--;){var _t=re[Be];if(ct&&_t[2]?_t[1]!==I[_t[0]]:!(_t[0]in I))return!1}for(;++Be<Qe;){_t=re[Be];var Mt=_t[0],un=I[Mt],dn=_t[1];if(ct&&_t[2]){if(un===r&&!(Mt in I))return!1}else{var bn=new ah;if(_e)var Kn=_e(un,dn,Mt,I,L,bn);if(!(Kn===r?kN(dn,un,g|v,_e,bn):Kn))return!1}}return!0}function Tye(I){if(!Ja(I)||Mft(I))return!1;var L=bv(I)?Jc:ln;return L.test(oE(I))}function Xdt(I){return ds(I)&&eu(I)==Ee}function Qdt(I){return ds(I)&&Rc(I)==Re}function Zdt(I){return ds(I)&&i3(I.length)&&!!go[eu(I)]}function Oye(I){return typeof I=="function"?I:I==null?Hu:typeof I=="object"?ci(I)?Nye(I[0],I[1]):Iye(I):K_e(I)}function LG(I){if(!FN(I))return tdt(I);var L=[];for(var re in mt(I))mn.call(I,re)&&re!="constructor"&&L.push(re);return L}function Jdt(I){if(!Ja(I))return kft(I);var L=FN(I),re=[];for(var _e in I)_e=="constructor"&&(L||!mn.call(I,_e))||re.push(_e);return re}function $G(I,L){return I<L}function Rye(I,L){var re=-1,_e=ju(I)?Ge(I.length):[];return D_(I,function(Be,Qe,ct){_e[++re]=L(Be,Qe,ct)}),_e}function Iye(I){var L=ZG(I);return L.length==1&&L[0][2]?c_e(L[0][0],L[0][1]):function(re){return re===I||kG(re,I,L)}}function Nye(I,L){return eW(I)&&l_e(L)?c_e($g(I),L):function(re){var _e=uW(re,I);return _e===r&&_e===L?dW(re,I):kN(L,_e,g|v)}}function H$(I,L,re,_e,Be){I!==L&&MG(L,function(Qe,ct){if(Be||(Be=new ah),Ja(Qe))eft(I,L,ct,re,H$,_e,Be);else{var _t=_e?_e(nW(I,ct),Qe,ct+"",I,L,Be):r;_t===r&&(_t=Qe),IG(I,ct,_t)}},Uu)}function eft(I,L,re,_e,Be,Qe,ct){var _t=nW(I,re),Mt=nW(L,re),un=ct.get(Mt);if(un){IG(I,re,un);return}var dn=Qe?Qe(_t,Mt,re+"",I,L,ct):r,bn=dn===r;if(bn){var Kn=ci(Mt),_r=!Kn&&F_(Mt),Br=!Kn&&!_r&&lx(Mt);dn=Mt,Kn||_r||Br?ci(_t)?dn=_t:Ms(_t)?dn=Bu(_t):_r?(bn=!1,dn=Hye(Mt,!0)):Br?(bn=!1,dn=zye(Mt,!0)):dn=[]:jN(Mt)||aE(Mt)?(dn=_t,aE(_t)?dn=B_e(_t):(!Ja(_t)||bv(_t))&&(dn=s_e(Mt))):bn=!1}bn&&(ct.set(Mt,dn),Be(dn,Mt,_e,Qe,ct),ct.delete(Mt)),IG(I,re,dn)}function Mye(I,L){var re=I.length;if(re)return L+=L<0?re:0,_v(L,re)?I[L]:r}function Pye(I,L,re){L.length?L=Jo(L,function(Qe){return ci(Qe)?function(ct){return rE(ct,Qe.length===1?Qe[0]:Qe)}:Qe}):L=[Hu];var _e=-1;L=Jo(L,xc(Lr()));var Be=Rye(I,function(Qe,ct,_t){var Mt=Jo(L,function(un){return un(Qe)});return{criteria:Mt,index:++_e,value:Qe}});return O$(Be,function(Qe,ct){return pft(Qe,ct,re)})}function tft(I,L){return Aye(I,L,function(re,_e){return dW(I,_e)})}function Aye(I,L,re){for(var _e=-1,Be=L.length,Qe={};++_e<Be;){var ct=L[_e],_t=rE(I,ct);re(_t,ct)&&LN(Qe,L_(ct,I),_t)}return Qe}function nft(I){return function(L){return rE(L,I)}}function FG(I,L,re,_e){var Be=_e?CN:N_,Qe=-1,ct=L.length,_t=I;for(I===L&&(L=Bu(L)),re&&(_t=Jo(I,xc(re)));++Qe<ct;)for(var Mt=0,un=L[Qe],dn=re?re(un):un;(Mt=Be(_t,dn,Mt,_e))>-1;)_t!==I&&P$.call(_t,Mt,1),P$.call(I,Mt,1);return I}function Dye(I,L){for(var re=I?L.length:0,_e=re-1;re--;){var Be=L[re];if(re==_e||Be!==Qe){var Qe=Be;_v(Be)?P$.call(I,Be,1):HG(I,Be)}}return I}function BG(I,L){return I+k$(hye()*(L-I+1))}function rft(I,L,re,_e){for(var Be=-1,Qe=hl(D$((L-I)/(re||1)),0),ct=Ge(Qe);Qe--;)ct[_e?Qe:++Be]=I,I+=re;return ct}function jG(I,L){var re="";if(!I||L<1||L>B)return re;do L%2&&(re+=I),L=k$(L/2),L&&(I+=I);while(L);return re}function xi(I,L){return rW(u_e(I,L,Hu),I+"")}function ift(I){return vye(cx(I))}function oft(I,L){var re=cx(I);return Z$(re,nE(L,0,re.length))}function LN(I,L,re,_e){if(!Ja(I))return I;L=L_(L,I);for(var Be=-1,Qe=L.length,ct=Qe-1,_t=I;_t!=null&&++Be<Qe;){var Mt=$g(L[Be]),un=re;if(Mt==="__proto__"||Mt==="constructor"||Mt==="prototype")return I;if(Be!=ct){var dn=_t[Mt];un=_e?_e(dn,Mt,_t):r,un===r&&(un=Ja(dn)?dn:_v(L[Be+1])?[]:{})}PN(_t,Mt,un),_t=_t[Mt]}return I}var kye=L$?function(I,L){return L$.set(I,L),I}:Hu,aft=A$?function(I,L){return A$(I,"toString",{configurable:!0,enumerable:!1,value:pW(L),writable:!0})}:Hu;function sft(I){return Z$(cx(I))}function Uf(I,L,re){var _e=-1,Be=I.length;L<0&&(L=-L>Be?0:Be+L),re=re>Be?Be:re,re<0&&(re+=Be),Be=L>re?0:re-L>>>0,L>>>=0;for(var Qe=Ge(Be);++_e<Be;)Qe[_e]=I[_e+L];return Qe}function lft(I,L){var re;return D_(I,function(_e,Be,Qe){return re=L(_e,Be,Qe),!re}),!!re}function z$(I,L,re){var _e=0,Be=I==null?_e:I.length;if(typeof L=="number"&&L===L&&Be<=G){for(;_e<Be;){var Qe=_e+Be>>>1,ct=I[Qe];ct!==null&&!Nd(ct)&&(re?ct<=L:ct<L)?_e=Qe+1:Be=Qe}return Be}return UG(I,L,Hu,re)}function UG(I,L,re,_e){var Be=0,Qe=I==null?0:I.length;if(Qe===0)return 0;L=re(L);for(var ct=L!==L,_t=L===null,Mt=Nd(L),un=L===r;Be<Qe;){var dn=k$((Be+Qe)/2),bn=re(I[dn]),Kn=bn!==r,_r=bn===null,Br=bn===bn,bi=Nd(bn);if(ct)var jr=_e||Br;else un?jr=Br&&(_e||Kn):_t?jr=Br&&Kn&&(_e||!_r):Mt?jr=Br&&Kn&&!_r&&(_e||!bi):_r||bi?jr=!1:jr=_e?bn<=L:bn<L;jr?Be=dn+1:Qe=dn}return Oc(Qe,H)}function Lye(I,L){for(var re=-1,_e=I.length,Be=0,Qe=[];++re<_e;){var ct=I[re],_t=L?L(ct):ct;if(!re||!sh(_t,Mt)){var Mt=_t;Qe[Be++]=ct===0?0:ct}}return Qe}function $ye(I){return typeof I=="number"?I:Nd(I)?q:+I}function Id(I){if(typeof I=="string")return I;if(ci(I))return Jo(I,Id)+"";if(Nd(I))return gye?gye.call(I):"";var L=I+"";return L=="0"&&1/I==-D?"-0":L}function k_(I,L,re){var _e=-1,Be=GS,Qe=I.length,ct=!0,_t=[],Mt=_t;if(re)ct=!1,Be=R_;else if(Qe>=o){var un=L?null:_ft(I);if(un)return P_(un);ct=!1,Be=M_,Mt=new tE}else Mt=L?[]:_t;e:for(;++_e<Qe;){var dn=I[_e],bn=L?L(dn):dn;if(dn=re||dn!==0?dn:0,ct&&bn===bn){for(var Kn=Mt.length;Kn--;)if(Mt[Kn]===bn)continue e;L&&Mt.push(bn),_t.push(dn)}else Be(Mt,bn,re)||(Mt!==_t&&Mt.push(bn),_t.push(dn))}return _t}function HG(I,L){return L=L_(L,I),I=d_e(I,L),I==null||delete I[$g(Hf(L))]}function Fye(I,L,re,_e){return LN(I,L,re(rE(I,L)),_e)}function V$(I,L,re,_e){for(var Be=I.length,Qe=_e?Be:-1;(_e?Qe--:++Qe<Be)&&L(I[Qe],Qe,I););return re?Uf(I,_e?0:Qe,_e?Qe+1:Be):Uf(I,_e?Qe+1:0,_e?Be:Qe)}function Bye(I,L){var re=I;return re instanceof Vi&&(re=re.value()),I_(L,function(_e,Be){return Be.func.apply(Be.thisArg,nh([_e],Be.args))},re)}function zG(I,L,re){var _e=I.length;if(_e<2)return _e?k_(I[0]):[];for(var Be=-1,Qe=Ge(_e);++Be<_e;)for(var ct=I[Be],_t=-1;++_t<_e;)_t!=Be&&(Qe[Be]=AN(Qe[Be]||ct,I[_t],L,re));return k_(ic(Qe,1),L,re)}function jye(I,L,re){for(var _e=-1,Be=I.length,Qe=L.length,ct={};++_e<Be;){var _t=_e<Qe?L[_e]:r;re(ct,I[_e],_t)}return ct}function VG(I){return Ms(I)?I:[]}function GG(I){return typeof I=="function"?I:Hu}function L_(I,L){return ci(I)?I:eW(I,L)?[I]:g_e(Io(I))}var cft=xi;function $_(I,L,re){var _e=I.length;return re=re===r?_e:re,!L&&re>=_e?I:Uf(I,L,re)}var Uye=Xut||function(I){return pl.clearTimeout(I)};function Hye(I,L){if(L)return I.slice();var re=I.length,_e=ZS?ZS(re):new I.constructor(re);return I.copy(_e),_e}function WG(I){var L=new I.constructor(I.byteLength);return new Ns(L).set(new Ns(I)),L}function uft(I,L){var re=L?WG(I.buffer):I.buffer;return new I.constructor(re,I.byteOffset,I.byteLength)}function dft(I){var L=new I.constructor(I.source,En.exec(I));return L.lastIndex=I.lastIndex,L}function fft(I){return MN?mt(MN.call(I)):{}}function zye(I,L){var re=L?WG(I.buffer):I.buffer;return new I.constructor(re,I.byteOffset,I.length)}function Vye(I,L){if(I!==L){var re=I!==r,_e=I===null,Be=I===I,Qe=Nd(I),ct=L!==r,_t=L===null,Mt=L===L,un=Nd(L);if(!_t&&!un&&!Qe&&I>L||Qe&&ct&&Mt&&!_t&&!un||_e&&ct&&Mt||!re&&Mt||!Be)return 1;if(!_e&&!Qe&&!un&&I<L||un&&re&&Be&&!_e&&!Qe||_t&&re&&Be||!ct&&Be||!Mt)return-1}return 0}function pft(I,L,re){for(var _e=-1,Be=I.criteria,Qe=L.criteria,ct=Be.length,_t=re.length;++_e<ct;){var Mt=Vye(Be[_e],Qe[_e]);if(Mt){if(_e>=_t)return Mt;var un=re[_e];return Mt*(un=="desc"?-1:1)}}return I.index-L.index}function Gye(I,L,re,_e){for(var Be=-1,Qe=I.length,ct=re.length,_t=-1,Mt=L.length,un=hl(Qe-ct,0),dn=Ge(Mt+un),bn=!_e;++_t<Mt;)dn[_t]=L[_t];for(;++Be<ct;)(bn||Be<Qe)&&(dn[re[Be]]=I[Be]);for(;un--;)dn[_t++]=I[Be++];return dn}function Wye(I,L,re,_e){for(var Be=-1,Qe=I.length,ct=-1,_t=re.length,Mt=-1,un=L.length,dn=hl(Qe-_t,0),bn=Ge(dn+un),Kn=!_e;++Be<dn;)bn[Be]=I[Be];for(var _r=Be;++Mt<un;)bn[_r+Mt]=L[Mt];for(;++ct<_t;)(Kn||Be<Qe)&&(bn[_r+re[ct]]=I[Be++]);return bn}function Bu(I,L){var re=-1,_e=I.length;for(L||(L=Ge(_e));++re<_e;)L[re]=I[re];return L}function Lg(I,L,re,_e){var Be=!re;re||(re={});for(var Qe=-1,ct=L.length;++Qe<ct;){var _t=L[Qe],Mt=_e?_e(re[_t],I[_t],_t,re,I):r;Mt===r&&(Mt=I[_t]),Be?mv(re,_t,Mt):PN(re,_t,Mt)}return re}function hft(I,L){return Lg(I,JG(I),L)}function gft(I,L){return Lg(I,o_e(I),L)}function G$(I,L){return function(re,_e){var Be=ci(re)?_N:$dt,Qe=L?L():{};return Be(re,I,Lr(_e,2),Qe)}}function ox(I){return xi(function(L,re){var _e=-1,Be=re.length,Qe=Be>1?re[Be-1]:r,ct=Be>2?re[2]:r;for(Qe=I.length>3&&typeof Qe=="function"?(Be--,Qe):r,ct&&tu(re[0],re[1],ct)&&(Qe=Be<3?r:Qe,Be=1),L=mt(L);++_e<Be;){var _t=re[_e];_t&&I(L,_t,_e,Qe)}return L})}function Yye(I,L){return function(re,_e){if(re==null)return re;if(!ju(re))return I(re,_e);for(var Be=re.length,Qe=L?Be:-1,ct=mt(re);(L?Qe--:++Qe<Be)&&_e(ct[Qe],Qe,ct)!==!1;);return re}}function qye(I){return function(L,re,_e){for(var Be=-1,Qe=mt(L),ct=_e(L),_t=ct.length;_t--;){var Mt=ct[I?_t:++Be];if(re(Qe[Mt],Mt,Qe)===!1)break}return L}}function mft(I,L,re){var _e=L&y,Be=$N(I);function Qe(){var ct=this&&this!==pl&&this instanceof Qe?Be:I;return ct.apply(_e?re:this,arguments)}return Qe}function Kye(I){return function(L){L=Io(L);var re=oh(L)?se(L):r,_e=re?re[0]:L.charAt(0),Be=re?$_(re,1).join(""):L.slice(1);return _e[I]()+Be}}function ax(I){return function(L){return I_(Y_e(W_e(L).replace(Mg,"")),I,"")}}function $N(I){return function(){var L=arguments;switch(L.length){case 0:return new I;case 1:return new I(L[0]);case 2:return new I(L[0],L[1]);case 3:return new I(L[0],L[1],L[2]);case 4:return new I(L[0],L[1],L[2],L[3]);case 5:return new I(L[0],L[1],L[2],L[3],L[4]);case 6:return new I(L[0],L[1],L[2],L[3],L[4],L[5]);case 7:return new I(L[0],L[1],L[2],L[3],L[4],L[5],L[6])}var re=ix(I.prototype),_e=I.apply(re,L);return Ja(_e)?_e:re}}function vft(I,L,re){var _e=$N(I);function Be(){for(var Qe=arguments.length,ct=Ge(Qe),_t=Qe,Mt=sx(Be);_t--;)ct[_t]=arguments[_t];var un=Qe<3&&ct[0]!==Mt&&ct[Qe-1]!==Mt?[]:Tc(ct,Mt);if(Qe-=un.length,Qe<re)return e_e(I,L,W$,Be.placeholder,r,ct,un,r,r,re-Qe);var dn=this&&this!==pl&&this instanceof Be?_e:I;return rc(dn,this,ct)}return Be}function Xye(I){return function(L,re,_e){var Be=mt(L);if(!ju(L)){var Qe=Lr(re,3);L=$l(L),re=function(_t){return Qe(Be[_t],_t,Be)}}var ct=I(L,re,_e);return ct>-1?Be[Qe?L[ct]:ct]:r}}function Qye(I){return yv(function(L){var re=L.length,_e=re,Be=Bf.prototype.thru;for(I&&L.reverse();_e--;){var Qe=L[_e];if(typeof Qe!="function")throw new Ut(s);if(Be&&!ct&&X$(Qe)=="wrapper")var ct=new Bf([],!0)}for(_e=ct?_e:re;++_e<re;){Qe=L[_e];var _t=X$(Qe),Mt=_t=="wrapper"?QG(Qe):r;Mt&&tW(Mt[0])&&Mt[1]==(x|b|w|T)&&!Mt[4].length&&Mt[9]==1?ct=ct[X$(Mt[0])].apply(ct,Mt[3]):ct=Qe.length==1&&tW(Qe)?ct[_t]():ct.thru(Qe)}return function(){var un=arguments,dn=un[0];if(ct&&un.length==1&&ci(dn))return ct.plant(dn).value();for(var bn=0,Kn=re?L[bn].apply(this,un):dn;++bn<re;)Kn=L[bn].call(this,Kn);return Kn}})}function W$(I,L,re,_e,Be,Qe,ct,_t,Mt,un){var dn=L&x,bn=L&y,Kn=L&_,_r=L&(b|E),Br=L&R,bi=Kn?r:$N(I);function jr(){for(var $i=arguments.length,Qi=Ge($i),Md=$i;Md--;)Qi[Md]=arguments[Md];if(_r)var nu=sx(jr),Pd=CG(Qi,nu);if(_e&&(Qi=Gye(Qi,_e,Be,_r)),Qe&&(Qi=Wye(Qi,Qe,ct,_r)),$i-=Pd,_r&&$i<un){var Ps=Tc(Qi,nu);return e_e(I,L,W$,jr.placeholder,re,Qi,Ps,_t,Mt,un-$i)}var lh=bn?re:this,Ev=Kn?lh[I]:I;return $i=Qi.length,_t?Qi=$ft(Qi,_t):Br&&$i>1&&Qi.reverse(),dn&&Mt<$i&&(Qi.length=Mt),this&&this!==pl&&this instanceof jr&&(Ev=bi||$N(Ev)),Ev.apply(lh,Qi)}return jr}function Zye(I,L){return function(re,_e){return Gdt(re,I,L(_e),{})}}function Y$(I,L){return function(re,_e){var Be;if(re===r&&_e===r)return L;if(re!==r&&(Be=re),_e!==r){if(Be===r)return _e;typeof re=="string"||typeof _e=="string"?(re=Id(re),_e=Id(_e)):(re=$ye(re),_e=$ye(_e)),Be=I(re,_e)}return Be}}function YG(I){return yv(function(L){return L=Jo(L,xc(Lr())),xi(function(re){var _e=this;return I(L,function(Be){return rc(Be,_e,re)})})})}function q$(I,L){L=L===r?" ":Id(L);var re=L.length;if(re<2)return re?jG(L,I):L;var _e=jG(L,D$(I/X(L)));return oh(L)?$_(se(_e),0,I).join(""):_e.slice(0,I)}function yft(I,L,re,_e){var Be=L&y,Qe=$N(I);function ct(){for(var _t=-1,Mt=arguments.length,un=-1,dn=_e.length,bn=Ge(dn+Mt),Kn=this&&this!==pl&&this instanceof ct?Qe:I;++un<dn;)bn[un]=_e[un];for(;Mt--;)bn[un++]=arguments[++_t];return rc(Kn,Be?re:this,bn)}return ct}function Jye(I){return function(L,re,_e){return _e&&typeof _e!="number"&&tu(L,re,_e)&&(re=_e=r),L=Sv(L),re===r?(re=L,L=0):re=Sv(re),_e=_e===r?L<re?1:-1:Sv(_e),rft(L,re,_e,I)}}function K$(I){return function(L,re){return typeof L=="string"&&typeof re=="string"||(L=zf(L),re=zf(re)),I(L,re)}}function e_e(I,L,re,_e,Be,Qe,ct,_t,Mt,un){var dn=L&b,bn=dn?ct:r,Kn=dn?r:ct,_r=dn?Qe:r,Br=dn?r:Qe;L|=dn?w:C,L&=~(dn?C:w),L&S||(L&=~(y|_));var bi=[I,L,Be,_r,bn,Br,Kn,_t,Mt,un],jr=re.apply(r,bi);return tW(I)&&f_e(jr,bi),jr.placeholder=_e,p_e(jr,I,L)}function qG(I){var L=xt[I];return function(re,_e){if(re=zf(re),_e=_e==null?0:Oc(hi(_e),292),_e&&pye(re)){var Be=(Io(re)+"e").split("e"),Qe=L(Be[0]+"e"+(+Be[1]+_e));return Be=(Io(Qe)+"e").split("e"),+(Be[0]+"e"+(+Be[1]-_e))}return L(re)}}var _ft=nx&&1/P_(new nx([,-0]))[1]==D?function(I){return new nx(I)}:mW;function t_e(I){return function(L){var re=Rc(L);return re==ve?QS(L):re==Re?A_(L):R$(L,I(L))}}function vv(I,L,re,_e,Be,Qe,ct,_t){var Mt=L&_;if(!Mt&&typeof I!="function")throw new Ut(s);var un=_e?_e.length:0;if(un||(L&=~(w|C),_e=Be=r),ct=ct===r?ct:hl(hi(ct),0),_t=_t===r?_t:hi(_t),un-=Be?Be.length:0,L&C){var dn=_e,bn=Be;_e=Be=r}var Kn=Mt?r:QG(I),_r=[I,L,re,_e,Be,dn,bn,Qe,ct,_t];if(Kn&&Dft(_r,Kn),I=_r[0],L=_r[1],re=_r[2],_e=_r[3],Be=_r[4],_t=_r[9]=_r[9]===r?Mt?0:I.length:hl(_r[9]-un,0),!_t&&L&(b|E)&&(L&=~(b|E)),!L||L==y)var Br=mft(I,L,re);else L==b||L==E?Br=vft(I,L,_t):(L==w||L==(y|w))&&!Be.length?Br=yft(I,L,re,_e):Br=W$.apply(r,_r);var bi=Kn?kye:f_e;return p_e(bi(Br,_r),I,L)}function n_e(I,L,re,_e){return I===r||sh(I,Fn[re])&&!mn.call(_e,re)?L:I}function r_e(I,L,re,_e,Be,Qe){return Ja(I)&&Ja(L)&&(Qe.set(L,I),H$(I,L,r,r_e,Qe),Qe.delete(L)),I}function bft(I){return jN(I)?r:I}function i_e(I,L,re,_e,Be,Qe){var ct=re&g,_t=I.length,Mt=L.length;if(_t!=Mt&&!(ct&&Mt>_t))return!1;var un=Qe.get(I),dn=Qe.get(L);if(un&&dn)return un==L&&dn==I;var bn=-1,Kn=!0,_r=re&v?new tE:r;for(Qe.set(I,L),Qe.set(L,I);++bn<_t;){var Br=I[bn],bi=L[bn];if(_e)var jr=ct?_e(bi,Br,bn,L,I,Qe):_e(Br,bi,bn,I,L,Qe);if(jr!==r){if(jr)continue;Kn=!1;break}if(_r){if(!rh(L,function($i,Qi){if(!M_(_r,Qi)&&(Br===$i||Be(Br,$i,re,_e,Qe)))return _r.push(Qi)})){Kn=!1;break}}else if(!(Br===bi||Be(Br,bi,re,_e,Qe))){Kn=!1;break}}return Qe.delete(I),Qe.delete(L),Kn}function Sft(I,L,re,_e,Be,Qe,ct){switch(re){case ae:if(I.byteLength!=L.byteLength||I.byteOffset!=L.byteOffset)return!1;I=I.buffer,L=L.buffer;case J:return!(I.byteLength!=L.byteLength||!Qe(new Ns(I),new Ns(L)));case F:case te:case he:return sh(+I,+L);case de:return I.name==L.name&&I.message==L.message;case Ee:case Te:return I==L+"";case ve:var _t=QS;case Re:var Mt=_e&g;if(_t||(_t=P_),I.size!=L.size&&!Mt)return!1;var un=ct.get(I);if(un)return un==L;_e|=v,ct.set(I,L);var dn=i_e(_t(I),_t(L),_e,Be,Qe,ct);return ct.delete(I),dn;case Oe:if(MN)return MN.call(I)==MN.call(L)}return!1}function Eft(I,L,re,_e,Be,Qe){var ct=re&g,_t=KG(I),Mt=_t.length,un=KG(L),dn=un.length;if(Mt!=dn&&!ct)return!1;for(var bn=Mt;bn--;){var Kn=_t[bn];if(!(ct?Kn in L:mn.call(L,Kn)))return!1}var _r=Qe.get(I),Br=Qe.get(L);if(_r&&Br)return _r==L&&Br==I;var bi=!0;Qe.set(I,L),Qe.set(L,I);for(var jr=ct;++bn<Mt;){Kn=_t[bn];var $i=I[Kn],Qi=L[Kn];if(_e)var Md=ct?_e(Qi,$i,Kn,L,I,Qe):_e($i,Qi,Kn,I,L,Qe);if(!(Md===r?$i===Qi||Be($i,Qi,re,_e,Qe):Md)){bi=!1;break}jr||(jr=Kn=="constructor")}if(bi&&!jr){var nu=I.constructor,Pd=L.constructor;nu!=Pd&&"constructor"in I&&"constructor"in L&&!(typeof nu=="function"&&nu instanceof nu&&typeof Pd=="function"&&Pd instanceof Pd)&&(bi=!1)}return Qe.delete(I),Qe.delete(L),bi}function yv(I){return rW(u_e(I,r,__e),I+"")}function KG(I){return wye(I,$l,JG)}function XG(I){return wye(I,Uu,o_e)}var QG=L$?function(I){return L$.get(I)}:mW;function X$(I){for(var L=I.name+"",re=rx[L],_e=mn.call(rx,L)?re.length:0;_e--;){var Be=re[_e],Qe=Be.func;if(Qe==null||Qe==I)return Be.name}return L}function sx(I){var L=mn.call(Ke,"placeholder")?Ke:I;return L.placeholder}function Lr(){var I=Ke.iteratee||hW;return I=I===hW?Oye:I,arguments.length?I(arguments[0],arguments[1]):I}function Q$(I,L){var re=I.__data__;return Nft(L)?re[typeof L=="string"?"string":"hash"]:re.map}function ZG(I){for(var L=$l(I),re=L.length;re--;){var _e=L[re],Be=I[_e];L[re]=[_e,Be,l_e(Be)]}return L}function iE(I,L){var re=Za(I,L);return Tye(re)?re:r}function Cft(I){var L=mn.call(I,JS),re=I[JS];try{I[JS]=r;var _e=!0}catch{}var Be=Jr.call(I);return _e&&(L?I[JS]=re:delete I[JS]),Be}var JG=TG?function(I){return I==null?[]:(I=mt(I),$u(TG(I),function(L){return tx.call(I,L)}))}:vW,o_e=TG?function(I){for(var L=[];I;)nh(L,JG(I)),I=Js(I);return L}:vW,Rc=eu;(OG&&Rc(new OG(new ArrayBuffer(1)))!=ae||RN&&Rc(new RN)!=ve||RG&&Rc(RG.resolve())!=De||nx&&Rc(new nx)!=Re||IN&&Rc(new IN)!=je)&&(Rc=function(I){var L=eu(I),re=L==we?I.constructor:r,_e=re?oE(re):"";if(_e)switch(_e){case odt:return ae;case adt:return ve;case sdt:return De;case ldt:return Re;case cdt:return je}return L});function wft(I,L,re){for(var _e=-1,Be=re.length;++_e<Be;){var Qe=re[_e],ct=Qe.size;switch(Qe.type){case"drop":I+=ct;break;case"dropRight":L-=ct;break;case"take":L=Oc(L,I+ct);break;case"takeRight":I=hl(I,L-ct);break}}return{start:I,end:L}}function xft(I){var L=I.match(Kt);return L?L[1].split(Ht):[]}function a_e(I,L,re){L=L_(L,I);for(var _e=-1,Be=L.length,Qe=!1;++_e<Be;){var ct=$g(L[_e]);if(!(Qe=I!=null&&re(I,ct)))break;I=I[ct]}return Qe||++_e!=Be?Qe:(Be=I==null?0:I.length,!!Be&&i3(Be)&&_v(ct,Be)&&(ci(I)||aE(I)))}function Tft(I){var L=I.length,re=new I.constructor(L);return L&&typeof I[0]=="string"&&mn.call(I,"index")&&(re.index=I.index,re.input=I.input),re}function s_e(I){return typeof I.constructor=="function"&&!FN(I)?ix(Js(I)):{}}function Oft(I,L,re){var _e=I.constructor;switch(L){case J:return WG(I);case F:case te:return new _e(+I);case ae:return uft(I,re);case Se:case xe:case ue:case Me:case $e:case ge:case Ve:case st:case Je:return zye(I,re);case ve:return new _e;case he:case Te:return new _e(I);case Ee:return dft(I);case Re:return new _e;case Oe:return fft(I)}}function Rft(I,L){var re=L.length;if(!re)return I;var _e=re-1;return L[_e]=(re>1?"& ":"")+L[_e],L=L.join(re>2?", ":" "),I.replace(Dt,`{
/* [wrapped with `+L+`] */
`)}function Ift(I){return ci(I)||aE(I)||!!(fye&&I&&I[fye])}function _v(I,L){var re=typeof I;return L=L??B,!!L&&(re=="number"||re!="symbol"&&Lt.test(I))&&I>-1&&I%1==0&&I<L}function tu(I,L,re){if(!Ja(re))return!1;var _e=typeof L;return(_e=="number"?ju(re)&&_v(L,re.length):_e=="string"&&L in re)?sh(re[L],I):!1}function eW(I,L){if(ci(I))return!1;var re=typeof I;return re=="number"||re=="symbol"||re=="boolean"||I==null||Nd(I)?!0:rn.test(I)||!Vt.test(I)||L!=null&&I in mt(L)}function Nft(I){var L=typeof I;return L=="string"||L=="number"||L=="symbol"||L=="boolean"?I!=="__proto__":I===null}function tW(I){var L=X$(I),re=Ke[L];if(typeof re!="function"||!(L in Vi.prototype))return!1;if(I===re)return!0;var _e=QG(re);return!!_e&&I===_e[0]}function Mft(I){return!!rr&&rr in I}var Pft=Rn?bv:yW;function FN(I){var L=I&&I.constructor,re=typeof L=="function"&&L.prototype||Fn;return I===re}function l_e(I){return I===I&&!Ja(I)}function c_e(I,L){return function(re){return re==null?!1:re[I]===L&&(L!==r||I in mt(re))}}function Aft(I){var L=n3(I,function(_e){return re.size===u&&re.clear(),_e}),re=L.cache;return L}function Dft(I,L){var re=I[1],_e=L[1],Be=re|_e,Qe=Be<(y|_|x),ct=_e==x&&re==b||_e==x&&re==T&&I[7].length<=L[8]||_e==(x|T)&&L[7].length<=L[8]&&re==b;if(!(Qe||ct))return I;_e&y&&(I[2]=L[2],Be|=re&y?0:S);var _t=L[3];if(_t){var Mt=I[3];I[3]=Mt?Gye(Mt,_t,L[4]):_t,I[4]=Mt?Tc(I[3],d):L[4]}return _t=L[5],_t&&(Mt=I[5],I[5]=Mt?Wye(Mt,_t,L[6]):_t,I[6]=Mt?Tc(I[5],d):L[6]),_t=L[7],_t&&(I[7]=_t),_e&x&&(I[8]=I[8]==null?L[8]:Oc(I[8],L[8])),I[9]==null&&(I[9]=L[9]),I[0]=L[0],I[1]=Be,I}function kft(I){var L=[];if(I!=null)for(var re in mt(I))L.push(re);return L}function Lft(I){return Jr.call(I)}function u_e(I,L,re){return L=hl(L===r?I.length-1:L,0),function(){for(var _e=arguments,Be=-1,Qe=hl(_e.length-L,0),ct=Ge(Qe);++Be<Qe;)ct[Be]=_e[L+Be];Be=-1;for(var _t=Ge(L+1);++Be<L;)_t[Be]=_e[Be];return _t[L]=re(ct),rc(I,this,_t)}}function d_e(I,L){return L.length<2?I:rE(I,Uf(L,0,-1))}function $ft(I,L){for(var re=I.length,_e=Oc(L.length,re),Be=Bu(I);_e--;){var Qe=L[_e];I[_e]=_v(Qe,re)?Be[Qe]:r}return I}function nW(I,L){if(!(L==="constructor"&&typeof I[L]=="function")&&L!="__proto__")return I[L]}var f_e=h_e(kye),BN=Zut||function(I,L){return pl.setTimeout(I,L)},rW=h_e(aft);function p_e(I,L,re){var _e=L+"";return rW(I,Rft(_e,Fft(xft(_e),re)))}function h_e(I){var L=0,re=0;return function(){var _e=ndt(),Be=k-(_e-re);if(re=_e,Be>0){if(++L>=P)return arguments[0]}else L=0;return I.apply(r,arguments)}}function Z$(I,L){var re=-1,_e=I.length,Be=_e-1;for(L=L===r?_e:L;++re<L;){var Qe=BG(re,Be),ct=I[Qe];I[Qe]=I[re],I[re]=ct}return I.length=L,I}var g_e=Aft(function(I){var L=[];return I.charCodeAt(0)===46&&L.push(""),I.replace(tt,function(re,_e,Be,Qe){L.push(Be?Qe.replace(sn,"$1"):_e||re)}),L});function $g(I){if(typeof I=="string"||Nd(I))return I;var L=I+"";return L=="0"&&1/I==-D?"-0":L}function oE(I){if(I!=null){try{return Ln.call(I)}catch{}try{return I+""}catch{}}return""}function Fft(I,L){return wc(Q,function(re){var _e="_."+re[0];L&re[1]&&!GS(I,_e)&&I.push(_e)}),I.sort()}function m_e(I){if(I instanceof Vi)return I.clone();var L=new Bf(I.__wrapped__,I.__chain__);return L.__actions__=Bu(I.__actions__),L.__index__=I.__index__,L.__values__=I.__values__,L}function Bft(I,L,re){(re?tu(I,L,re):L===r)?L=1:L=hl(hi(L),0);var _e=I==null?0:I.length;if(!_e||L<1)return[];for(var Be=0,Qe=0,ct=Ge(D$(_e/L));Be<_e;)ct[Qe++]=Uf(I,Be,Be+=L);return ct}function jft(I){for(var L=-1,re=I==null?0:I.length,_e=0,Be=[];++L<re;){var Qe=I[L];Qe&&(Be[_e++]=Qe)}return Be}function Uft(){var I=arguments.length;if(!I)return[];for(var L=Ge(I-1),re=arguments[0],_e=I;_e--;)L[_e-1]=arguments[_e];return nh(ci(re)?Bu(re):[re],ic(L,1))}var Hft=xi(function(I,L){return Ms(I)?AN(I,ic(L,1,Ms,!0)):[]}),zft=xi(function(I,L){var re=Hf(L);return Ms(re)&&(re=r),Ms(I)?AN(I,ic(L,1,Ms,!0),Lr(re,2)):[]}),Vft=xi(function(I,L){var re=Hf(L);return Ms(re)&&(re=r),Ms(I)?AN(I,ic(L,1,Ms,!0),r,re):[]});function Gft(I,L,re){var _e=I==null?0:I.length;return _e?(L=re||L===r?1:hi(L),Uf(I,L<0?0:L,_e)):[]}function Wft(I,L,re){var _e=I==null?0:I.length;return _e?(L=re||L===r?1:hi(L),L=_e-L,Uf(I,0,L<0?0:L)):[]}function Yft(I,L){return I&&I.length?V$(I,Lr(L,3),!0,!0):[]}function qft(I,L){return I&&I.length?V$(I,Lr(L,3),!0):[]}function Kft(I,L,re,_e){var Be=I==null?0:I.length;return Be?(re&&typeof re!="number"&&tu(I,L,re)&&(re=0,_e=Be),Udt(I,L,re,_e)):[]}function v_e(I,L,re){var _e=I==null?0:I.length;if(!_e)return-1;var Be=re==null?0:hi(re);return Be<0&&(Be=hl(_e+Be,0)),WS(I,Lr(L,3),Be)}function y_e(I,L,re){var _e=I==null?0:I.length;if(!_e)return-1;var Be=_e-1;return re!==r&&(Be=hi(re),Be=re<0?hl(_e+Be,0):Oc(Be,_e-1)),WS(I,Lr(L,3),Be,!0)}function __e(I){var L=I==null?0:I.length;return L?ic(I,1):[]}function Xft(I){var L=I==null?0:I.length;return L?ic(I,D):[]}function Qft(I,L){var re=I==null?0:I.length;return re?(L=L===r?1:hi(L),ic(I,L)):[]}function Zft(I){for(var L=-1,re=I==null?0:I.length,_e={};++L<re;){var Be=I[L];_e[Be[0]]=Be[1]}return _e}function b_e(I){return I&&I.length?I[0]:r}function Jft(I,L,re){var _e=I==null?0:I.length;if(!_e)return-1;var Be=re==null?0:hi(re);return Be<0&&(Be=hl(_e+Be,0)),N_(I,L,Be)}function ept(I){var L=I==null?0:I.length;return L?Uf(I,0,-1):[]}var tpt=xi(function(I){var L=Jo(I,VG);return L.length&&L[0]===I[0]?DG(L):[]}),npt=xi(function(I){var L=Hf(I),re=Jo(I,VG);return L===Hf(re)?L=r:re.pop(),re.length&&re[0]===I[0]?DG(re,Lr(L,2)):[]}),rpt=xi(function(I){var L=Hf(I),re=Jo(I,VG);return L=typeof L=="function"?L:r,L&&re.pop(),re.length&&re[0]===I[0]?DG(re,r,L):[]});function ipt(I,L){return I==null?"":edt.call(I,L)}function Hf(I){var L=I==null?0:I.length;return L?I[L-1]:r}function opt(I,L,re){var _e=I==null?0:I.length;if(!_e)return-1;var Be=_e;return re!==r&&(Be=hi(re),Be=Be<0?hl(_e+Be,0):Oc(Be,_e-1)),L===L?M$(I,L,Be):WS(I,YS,Be,!0)}function apt(I,L){return I&&I.length?Mye(I,hi(L)):r}var spt=xi(S_e);function S_e(I,L){return I&&I.length&&L&&L.length?FG(I,L):I}function lpt(I,L,re){return I&&I.length&&L&&L.length?FG(I,L,Lr(re,2)):I}function cpt(I,L,re){return I&&I.length&&L&&L.length?FG(I,L,r,re):I}var upt=yv(function(I,L){var re=I==null?0:I.length,_e=NG(I,L);return Dye(I,Jo(L,function(Be){return _v(Be,re)?+Be:Be}).sort(Vye)),_e});function dpt(I,L){var re=[];if(!(I&&I.length))return re;var _e=-1,Be=[],Qe=I.length;for(L=Lr(L,3);++_e<Qe;){var ct=I[_e];L(ct,_e,I)&&(re.push(ct),Be.push(_e))}return Dye(I,Be),re}function iW(I){return I==null?I:idt.call(I)}function fpt(I,L,re){var _e=I==null?0:I.length;return _e?(re&&typeof re!="number"&&tu(I,L,re)?(L=0,re=_e):(L=L==null?0:hi(L),re=re===r?_e:hi(re)),Uf(I,L,re)):[]}function ppt(I,L){return z$(I,L)}function hpt(I,L,re){return UG(I,L,Lr(re,2))}function gpt(I,L){var re=I==null?0:I.length;if(re){var _e=z$(I,L);if(_e<re&&sh(I[_e],L))return _e}return-1}function mpt(I,L){return z$(I,L,!0)}function vpt(I,L,re){return UG(I,L,Lr(re,2),!0)}function ypt(I,L){var re=I==null?0:I.length;if(re){var _e=z$(I,L,!0)-1;if(sh(I[_e],L))return _e}return-1}function _pt(I){return I&&I.length?Lye(I):[]}function bpt(I,L){return I&&I.length?Lye(I,Lr(L,2)):[]}function Spt(I){var L=I==null?0:I.length;return L?Uf(I,1,L):[]}function Ept(I,L,re){return I&&I.length?(L=re||L===r?1:hi(L),Uf(I,0,L<0?0:L)):[]}function Cpt(I,L,re){var _e=I==null?0:I.length;return _e?(L=re||L===r?1:hi(L),L=_e-L,Uf(I,L<0?0:L,_e)):[]}function wpt(I,L){return I&&I.length?V$(I,Lr(L,3),!1,!0):[]}function xpt(I,L){return I&&I.length?V$(I,Lr(L,3)):[]}var Tpt=xi(function(I){return k_(ic(I,1,Ms,!0))}),Opt=xi(function(I){var L=Hf(I);return Ms(L)&&(L=r),k_(ic(I,1,Ms,!0),Lr(L,2))}),Rpt=xi(function(I){var L=Hf(I);return L=typeof L=="function"?L:r,k_(ic(I,1,Ms,!0),r,L)});function Ipt(I){return I&&I.length?k_(I):[]}function Npt(I,L){return I&&I.length?k_(I,Lr(L,2)):[]}function Mpt(I,L){return L=typeof L=="function"?L:r,I&&I.length?k_(I,r,L):[]}function oW(I){if(!(I&&I.length))return[];var L=0;return I=$u(I,function(re){if(Ms(re))return L=hl(re.length,L),!0}),Jw(L,function(re){return Jo(I,qS(re))})}function E_e(I,L){if(!(I&&I.length))return[];var re=oW(I);return L==null?re:Jo(re,function(_e){return rc(L,r,_e)})}var Ppt=xi(function(I,L){return Ms(I)?AN(I,L):[]}),Apt=xi(function(I){return zG($u(I,Ms))}),Dpt=xi(function(I){var L=Hf(I);return Ms(L)&&(L=r),zG($u(I,Ms),Lr(L,2))}),kpt=xi(function(I){var L=Hf(I);return L=typeof L=="function"?L:r,zG($u(I,Ms),r,L)}),Lpt=xi(oW);function $pt(I,L){return jye(I||[],L||[],PN)}function Fpt(I,L){return jye(I||[],L||[],LN)}var Bpt=xi(function(I){var L=I.length,re=L>1?I[L-1]:r;return re=typeof re=="function"?(I.pop(),re):r,E_e(I,re)});function C_e(I){var L=Ke(I);return L.__chain__=!0,L}function jpt(I,L){return L(I),I}function J$(I,L){return L(I)}var Upt=yv(function(I){var L=I.length,re=L?I[0]:0,_e=this.__wrapped__,Be=function(Qe){return NG(Qe,I)};return L>1||this.__actions__.length||!(_e instanceof Vi)||!_v(re)?this.thru(Be):(_e=_e.slice(re,+re+(L?1:0)),_e.__actions__.push({func:J$,args:[Be],thisArg:r}),new Bf(_e,this.__chain__).thru(function(Qe){return L&&!Qe.length&&Qe.push(r),Qe}))});function Hpt(){return C_e(this)}function zpt(){return new Bf(this.value(),this.__chain__)}function Vpt(){this.__values__===r&&(this.__values__=$_e(this.value()));var I=this.__index__>=this.__values__.length,L=I?r:this.__values__[this.__index__++];return{done:I,value:L}}function Gpt(){return this}function Wpt(I){for(var L,re=this;re instanceof F$;){var _e=m_e(re);_e.__index__=0,_e.__values__=r,L?Be.__wrapped__=_e:L=_e;var Be=_e;re=re.__wrapped__}return Be.__wrapped__=I,L}function Ypt(){var I=this.__wrapped__;if(I instanceof Vi){var L=I;return this.__actions__.length&&(L=new Vi(this)),L=L.reverse(),L.__actions__.push({func:J$,args:[iW],thisArg:r}),new Bf(L,this.__chain__)}return this.thru(iW)}function qpt(){return Bye(this.__wrapped__,this.__actions__)}var Kpt=G$(function(I,L,re){mn.call(I,re)?++I[re]:mv(I,re,1)});function Xpt(I,L,re){var _e=ci(I)?O_:jdt;return re&&tu(I,L,re)&&(L=r),_e(I,Lr(L,3))}function Qpt(I,L){var re=ci(I)?$u:Eye;return re(I,Lr(L,3))}var Zpt=Xye(v_e),Jpt=Xye(y_e);function eht(I,L){return ic(e3(I,L),1)}function tht(I,L){return ic(e3(I,L),D)}function nht(I,L,re){return re=re===r?1:hi(re),ic(e3(I,L),re)}function w_e(I,L){var re=ci(I)?wc:D_;return re(I,Lr(L,3))}function x_e(I,L){var re=ci(I)?Ll:Sye;return re(I,Lr(L,3))}var rht=G$(function(I,L,re){mn.call(I,re)?I[re].push(L):mv(I,re,[L])});function iht(I,L,re,_e){I=ju(I)?I:cx(I),re=re&&!_e?hi(re):0;var Be=I.length;return re<0&&(re=hl(Be+re,0)),o3(I)?re<=Be&&I.indexOf(L,re)>-1:!!Be&&N_(I,L,re)>-1}var oht=xi(function(I,L,re){var _e=-1,Be=typeof L=="function",Qe=ju(I)?Ge(I.length):[];return D_(I,function(ct){Qe[++_e]=Be?rc(L,ct,re):DN(ct,L,re)}),Qe}),aht=G$(function(I,L,re){mv(I,re,L)});function e3(I,L){var re=ci(I)?Jo:Rye;return re(I,Lr(L,3))}function sht(I,L,re,_e){return I==null?[]:(ci(L)||(L=L==null?[]:[L]),re=_e?r:re,ci(re)||(re=re==null?[]:[re]),Pye(I,L,re))}var lht=G$(function(I,L,re){I[re?0:1].push(L)},function(){return[[],[]]});function cht(I,L,re){var _e=ci(I)?I_:T$,Be=arguments.length<3;return _e(I,Lr(L,4),re,Be,D_)}function uht(I,L,re){var _e=ci(I)?bN:T$,Be=arguments.length<3;return _e(I,Lr(L,4),re,Be,Sye)}function dht(I,L){var re=ci(I)?$u:Eye;return re(I,r3(Lr(L,3)))}function fht(I){var L=ci(I)?vye:ift;return L(I)}function pht(I,L,re){(re?tu(I,L,re):L===r)?L=1:L=hi(L);var _e=ci(I)?kdt:oft;return _e(I,L)}function hht(I){var L=ci(I)?Ldt:sft;return L(I)}function ght(I){if(I==null)return 0;if(ju(I))return o3(I)?X(I):I.length;var L=Rc(I);return L==ve||L==Re?I.size:LG(I).length}function mht(I,L,re){var _e=ci(I)?rh:lft;return re&&tu(I,L,re)&&(L=r),_e(I,Lr(L,3))}var vht=xi(function(I,L){if(I==null)return[];var re=L.length;return re>1&&tu(I,L[0],L[1])?L=[]:re>2&&tu(L[0],L[1],L[2])&&(L=[L[0]]),Pye(I,ic(L,1),[])}),t3=Qut||function(){return pl.Date.now()};function yht(I,L){if(typeof L!="function")throw new Ut(s);return I=hi(I),function(){if(--I<1)return L.apply(this,arguments)}}function T_e(I,L,re){return L=re?r:L,L=I&&L==null?I.length:L,vv(I,x,r,r,r,r,L)}function O_e(I,L){var re;if(typeof L!="function")throw new Ut(s);return I=hi(I),function(){return--I>0&&(re=L.apply(this,arguments)),I<=1&&(L=r),re}}var aW=xi(function(I,L,re){var _e=y;if(re.length){var Be=Tc(re,sx(aW));_e|=w}return vv(I,_e,L,re,Be)}),R_e=xi(function(I,L,re){var _e=y|_;if(re.length){var Be=Tc(re,sx(R_e));_e|=w}return vv(L,_e,I,re,Be)});function I_e(I,L,re){L=re?r:L;var _e=vv(I,b,r,r,r,r,r,L);return _e.placeholder=I_e.placeholder,_e}function N_e(I,L,re){L=re?r:L;var _e=vv(I,E,r,r,r,r,r,L);return _e.placeholder=N_e.placeholder,_e}function M_e(I,L,re){var _e,Be,Qe,ct,_t,Mt,un=0,dn=!1,bn=!1,Kn=!0;if(typeof I!="function")throw new Ut(s);L=zf(L)||0,Ja(re)&&(dn=!!re.leading,bn="maxWait"in re,Qe=bn?hl(zf(re.maxWait)||0,L):Qe,Kn="trailing"in re?!!re.trailing:Kn);function _r(Ps){var lh=_e,Ev=Be;return _e=Be=r,un=Ps,ct=I.apply(Ev,lh),ct}function Br(Ps){return un=Ps,_t=BN($i,L),dn?_r(Ps):ct}function bi(Ps){var lh=Ps-Mt,Ev=Ps-un,X_e=L-lh;return bn?Oc(X_e,Qe-Ev):X_e}function jr(Ps){var lh=Ps-Mt,Ev=Ps-un;return Mt===r||lh>=L||lh<0||bn&&Ev>=Qe}function $i(){var Ps=t3();if(jr(Ps))return Qi(Ps);_t=BN($i,bi(Ps))}function Qi(Ps){return _t=r,Kn&&_e?_r(Ps):(_e=Be=r,ct)}function Md(){_t!==r&&Uye(_t),un=0,_e=Mt=Be=_t=r}function nu(){return _t===r?ct:Qi(t3())}function Pd(){var Ps=t3(),lh=jr(Ps);if(_e=arguments,Be=this,Mt=Ps,lh){if(_t===r)return Br(Mt);if(bn)return Uye(_t),_t=BN($i,L),_r(Mt)}return _t===r&&(_t=BN($i,L)),ct}return Pd.cancel=Md,Pd.flush=nu,Pd}var _ht=xi(function(I,L){return bye(I,1,L)}),bht=xi(function(I,L,re){return bye(I,zf(L)||0,re)});function Sht(I){return vv(I,R)}function n3(I,L){if(typeof I!="function"||L!=null&&typeof L!="function")throw new Ut(s);var re=function(){var _e=arguments,Be=L?L.apply(this,_e):_e[0],Qe=re.cache;if(Qe.has(Be))return Qe.get(Be);var ct=I.apply(this,_e);return re.cache=Qe.set(Be,ct)||Qe,ct};return re.cache=new(n3.Cache||gv),re}n3.Cache=gv;function r3(I){if(typeof I!="function")throw new Ut(s);return function(){var L=arguments;switch(L.length){case 0:return!I.call(this);case 1:return!I.call(this,L[0]);case 2:return!I.call(this,L[0],L[1]);case 3:return!I.call(this,L[0],L[1],L[2])}return!I.apply(this,L)}}function Eht(I){return O_e(2,I)}var Cht=cft(function(I,L){L=L.length==1&&ci(L[0])?Jo(L[0],xc(Lr())):Jo(ic(L,1),xc(Lr()));var re=L.length;return xi(function(_e){for(var Be=-1,Qe=Oc(_e.length,re);++Be<Qe;)_e[Be]=L[Be].call(this,_e[Be]);return rc(I,this,_e)})}),sW=xi(function(I,L){var re=Tc(L,sx(sW));return vv(I,w,r,L,re)}),P_e=xi(function(I,L){var re=Tc(L,sx(P_e));return vv(I,C,r,L,re)}),wht=yv(function(I,L){return vv(I,T,r,r,r,L)});function xht(I,L){if(typeof I!="function")throw new Ut(s);return L=L===r?L:hi(L),xi(I,L)}function Tht(I,L){if(typeof I!="function")throw new Ut(s);return L=L==null?0:hl(hi(L),0),xi(function(re){var _e=re[L],Be=$_(re,0,L);return _e&&nh(Be,_e),rc(I,this,Be)})}function Oht(I,L,re){var _e=!0,Be=!0;if(typeof I!="function")throw new Ut(s);return Ja(re)&&(_e="leading"in re?!!re.leading:_e,Be="trailing"in re?!!re.trailing:Be),M_e(I,L,{leading:_e,maxWait:L,trailing:Be})}function Rht(I){return T_e(I,1)}function Iht(I,L){return sW(GG(L),I)}function Nht(){if(!arguments.length)return[];var I=arguments[0];return ci(I)?I:[I]}function Mht(I){return jf(I,h)}function Pht(I,L){return L=typeof L=="function"?L:r,jf(I,h,L)}function Aht(I){return jf(I,f|h)}function Dht(I,L){return L=typeof L=="function"?L:r,jf(I,f|h,L)}function kht(I,L){return L==null||_ye(I,L,$l(L))}function sh(I,L){return I===L||I!==I&&L!==L}var Lht=K$(AG),$ht=K$(function(I,L){return I>=L}),aE=xye(function(){return arguments}())?xye:function(I){return ds(I)&&mn.call(I,"callee")&&!tx.call(I,"callee")},ci=Ge.isArray,Fht=HS?xc(HS):Wdt;function ju(I){return I!=null&&i3(I.length)&&!bv(I)}function Ms(I){return ds(I)&&ju(I)}function Bht(I){return I===!0||I===!1||ds(I)&&eu(I)==F}var F_=Jut||yW,jht=zS?xc(zS):Ydt;function Uht(I){return ds(I)&&I.nodeType===1&&!jN(I)}function Hht(I){if(I==null)return!0;if(ju(I)&&(ci(I)||typeof I=="string"||typeof I.splice=="function"||F_(I)||lx(I)||aE(I)))return!I.length;var L=Rc(I);if(L==ve||L==Re)return!I.size;if(FN(I))return!LG(I).length;for(var re in I)if(mn.call(I,re))return!1;return!0}function zht(I,L){return kN(I,L)}function Vht(I,L,re){re=typeof re=="function"?re:r;var _e=re?re(I,L):r;return _e===r?kN(I,L,r,re):!!_e}function lW(I){if(!ds(I))return!1;var L=eu(I);return L==de||L==oe||typeof I.message=="string"&&typeof I.name=="string"&&!jN(I)}function Ght(I){return typeof I=="number"&&pye(I)}function bv(I){if(!Ja(I))return!1;var L=eu(I);return L==pe||L==me||L==j||L==Ae}function A_e(I){return typeof I=="number"&&I==hi(I)}function i3(I){return typeof I=="number"&&I>-1&&I%1==0&&I<=B}function Ja(I){var L=typeof I;return I!=null&&(L=="object"||L=="function")}function ds(I){return I!=null&&typeof I=="object"}var D_e=yN?xc(yN):Kdt;function Wht(I,L){return I===L||kG(I,L,ZG(L))}function Yht(I,L,re){return re=typeof re=="function"?re:r,kG(I,L,ZG(L),re)}function qht(I){return k_e(I)&&I!=+I}function Kht(I){if(Pft(I))throw new lt(a);return Tye(I)}function Xht(I){return I===null}function Qht(I){return I==null}function k_e(I){return typeof I=="number"||ds(I)&&eu(I)==he}function jN(I){if(!ds(I)||eu(I)!=we)return!1;var L=Js(I);if(L===null)return!0;var re=mn.call(L,"constructor")&&L.constructor;return typeof re=="function"&&re instanceof re&&Ln.call(re)==yi}var cW=w$?xc(w$):Xdt;function Zht(I){return A_e(I)&&I>=-B&&I<=B}var L_e=VS?xc(VS):Qdt;function o3(I){return typeof I=="string"||!ci(I)&&ds(I)&&eu(I)==Te}function Nd(I){return typeof I=="symbol"||ds(I)&&eu(I)==Oe}var lx=Xw?xc(Xw):Zdt;function Jht(I){return I===r}function egt(I){return ds(I)&&Rc(I)==je}function tgt(I){return ds(I)&&eu(I)==ne}var ngt=K$($G),rgt=K$(function(I,L){return I<=L});function $_e(I){if(!I)return[];if(ju(I))return o3(I)?se(I):Bu(I);if(ON&&I[ON])return xG(I[ON]());var L=Rc(I),re=L==ve?QS:L==Re?P_:cx;return re(I)}function Sv(I){if(!I)return I===0?I:0;if(I=zf(I),I===D||I===-D){var L=I<0?-1:1;return L*Y}return I===I?I:0}function hi(I){var L=Sv(I),re=L%1;return L===L?re?L-re:L:0}function F_e(I){return I?nE(hi(I),0,K):0}function zf(I){if(typeof I=="number")return I;if(Nd(I))return q;if(Ja(I)){var L=typeof I.valueOf=="function"?I.valueOf():I;I=Ja(L)?L+"":L}if(typeof I!="string")return I===0?I:+I;I=I$(I);var re=Qt.test(I);return re||jt.test(I)?Ww(I.slice(2),re?2:8):Pt.test(I)?q:+I}function B_e(I){return Lg(I,Uu(I))}function igt(I){return I?nE(hi(I),-B,B):I===0?I:0}function Io(I){return I==null?"":Id(I)}var ogt=ox(function(I,L){if(FN(L)||ju(L)){Lg(L,$l(L),I);return}for(var re in L)mn.call(L,re)&&PN(I,re,L[re])}),j_e=ox(function(I,L){Lg(L,Uu(L),I)}),a3=ox(function(I,L,re,_e){Lg(L,Uu(L),I,_e)}),agt=ox(function(I,L,re,_e){Lg(L,$l(L),I,_e)}),sgt=yv(NG);function lgt(I,L){var re=ix(I);return L==null?re:yye(re,L)}var cgt=xi(function(I,L){I=mt(I);var re=-1,_e=L.length,Be=_e>2?L[2]:r;for(Be&&tu(L[0],L[1],Be)&&(_e=1);++re<_e;)for(var Qe=L[re],ct=Uu(Qe),_t=-1,Mt=ct.length;++_t<Mt;){var un=ct[_t],dn=I[un];(dn===r||sh(dn,Fn[un])&&!mn.call(I,un))&&(I[un]=Qe[un])}return I}),ugt=xi(function(I){return I.push(r,r_e),rc(U_e,r,I)});function dgt(I,L){return Zw(I,Lr(L,3),kg)}function fgt(I,L){return Zw(I,Lr(L,3),PG)}function pgt(I,L){return I==null?I:MG(I,Lr(L,3),Uu)}function hgt(I,L){return I==null?I:Cye(I,Lr(L,3),Uu)}function ggt(I,L){return I&&kg(I,Lr(L,3))}function mgt(I,L){return I&&PG(I,Lr(L,3))}function vgt(I){return I==null?[]:U$(I,$l(I))}function ygt(I){return I==null?[]:U$(I,Uu(I))}function uW(I,L,re){var _e=I==null?r:rE(I,L);return _e===r?re:_e}function _gt(I,L){return I!=null&&a_e(I,L,Hdt)}function dW(I,L){return I!=null&&a_e(I,L,zdt)}var bgt=Zye(function(I,L,re){L!=null&&typeof L.toString!="function"&&(L=Jr.call(L)),I[L]=re},pW(Hu)),Sgt=Zye(function(I,L,re){L!=null&&typeof L.toString!="function"&&(L=Jr.call(L)),mn.call(I,L)?I[L].push(re):I[L]=[re]},Lr),Egt=xi(DN);function $l(I){return ju(I)?mye(I):LG(I)}function Uu(I){return ju(I)?mye(I,!0):Jdt(I)}function Cgt(I,L){var re={};return L=Lr(L,3),kg(I,function(_e,Be,Qe){mv(re,L(_e,Be,Qe),_e)}),re}function wgt(I,L){var re={};return L=Lr(L,3),kg(I,function(_e,Be,Qe){mv(re,Be,L(_e,Be,Qe))}),re}var xgt=ox(function(I,L,re){H$(I,L,re)}),U_e=ox(function(I,L,re,_e){H$(I,L,re,_e)}),Tgt=yv(function(I,L){var re={};if(I==null)return re;var _e=!1;L=Jo(L,function(Qe){return Qe=L_(Qe,I),_e||(_e=Qe.length>1),Qe}),Lg(I,XG(I),re),_e&&(re=jf(re,f|p|h,bft));for(var Be=L.length;Be--;)HG(re,L[Be]);return re});function Ogt(I,L){return H_e(I,r3(Lr(L)))}var Rgt=yv(function(I,L){return I==null?{}:tft(I,L)});function H_e(I,L){if(I==null)return{};var re=Jo(XG(I),function(_e){return[_e]});return L=Lr(L),Aye(I,re,function(_e,Be){return L(_e,Be[0])})}function Igt(I,L,re){L=L_(L,I);var _e=-1,Be=L.length;for(Be||(Be=1,I=r);++_e<Be;){var Qe=I==null?r:I[$g(L[_e])];Qe===r&&(_e=Be,Qe=re),I=bv(Qe)?Qe.call(I):Qe}return I}function Ngt(I,L,re){return I==null?I:LN(I,L,re)}function Mgt(I,L,re,_e){return _e=typeof _e=="function"?_e:r,I==null?I:LN(I,L,re,_e)}var z_e=t_e($l),V_e=t_e(Uu);function Pgt(I,L,re){var _e=ci(I),Be=_e||F_(I)||lx(I);if(L=Lr(L,4),re==null){var Qe=I&&I.constructor;Be?re=_e?new Qe:[]:Ja(I)?re=bv(Qe)?ix(Js(I)):{}:re={}}return(Be?wc:kg)(I,function(ct,_t,Mt){return L(re,ct,_t,Mt)}),re}function Agt(I,L){return I==null?!0:HG(I,L)}function Dgt(I,L,re){return I==null?I:Fye(I,L,GG(re))}function kgt(I,L,re,_e){return _e=typeof _e=="function"?_e:r,I==null?I:Fye(I,L,GG(re),_e)}function cx(I){return I==null?[]:XS(I,$l(I))}function Lgt(I){return I==null?[]:XS(I,Uu(I))}function $gt(I,L,re){return re===r&&(re=L,L=r),re!==r&&(re=zf(re),re=re===re?re:0),L!==r&&(L=zf(L),L=L===L?L:0),nE(zf(I),L,re)}function Fgt(I,L,re){return L=Sv(L),re===r?(re=L,L=0):re=Sv(re),I=zf(I),Vdt(I,L,re)}function Bgt(I,L,re){if(re&&typeof re!="boolean"&&tu(I,L,re)&&(L=re=r),re===r&&(typeof L=="boolean"?(re=L,L=r):typeof I=="boolean"&&(re=I,I=r)),I===r&&L===r?(I=0,L=1):(I=Sv(I),L===r?(L=I,I=0):L=Sv(L)),I>L){var _e=I;I=L,L=_e}if(re||I%1||L%1){var Be=hye();return Oc(I+Be*(L-I+Gw("1e-"+((Be+"").length-1))),L)}return BG(I,L)}var jgt=ax(function(I,L,re){return L=L.toLowerCase(),I+(re?G_e(L):L)});function G_e(I){return fW(Io(I).toLowerCase())}function W_e(I){return I=Io(I),I&&I.replace(en,wG).replace(Wn,"")}function Ugt(I,L,re){I=Io(I),L=Id(L);var _e=I.length;re=re===r?_e:nE(hi(re),0,_e);var Be=re;return re-=L.length,re>=0&&I.slice(re,Be)==L}function Hgt(I){return I=Io(I),I&&Ct.test(I)?I.replace(at,ex):I}function zgt(I){return I=Io(I),I&&nt.test(I)?I.replace(it,"\\$&"):I}var Vgt=ax(function(I,L,re){return I+(re?"-":"")+L.toLowerCase()}),Ggt=ax(function(I,L,re){return I+(re?" ":"")+L.toLowerCase()}),Wgt=Kye("toLowerCase");function Ygt(I,L,re){I=Io(I),L=hi(L);var _e=L?X(I):0;if(!L||_e>=L)return I;var Be=(L-_e)/2;return q$(k$(Be),re)+I+q$(D$(Be),re)}function qgt(I,L,re){I=Io(I),L=hi(L);var _e=L?X(I):0;return L&&_e<L?I+q$(L-_e,re):I}function Kgt(I,L,re){I=Io(I),L=hi(L);var _e=L?X(I):0;return L&&_e<L?q$(L-_e,re)+I:I}function Xgt(I,L,re){return re||L==null?L=0:L&&(L=+L),rdt(Io(I).replace(vt,""),L||0)}function Qgt(I,L,re){return(re?tu(I,L,re):L===r)?L=1:L=hi(L),jG(Io(I),L)}function Zgt(){var I=arguments,L=Io(I[0]);return I.length<3?L:L.replace(I[1],I[2])}var Jgt=ax(function(I,L,re){return I+(re?"_":"")+L.toLowerCase()});function emt(I,L,re){return re&&typeof re!="number"&&tu(I,L,re)&&(L=re=r),re=re===r?K:re>>>0,re?(I=Io(I),I&&(typeof L=="string"||L!=null&&!cW(L))&&(L=Id(L),!L&&oh(I))?$_(se(I),0,re):I.split(L,re)):[]}var tmt=ax(function(I,L,re){return I+(re?" ":"")+fW(L)});function nmt(I,L,re){return I=Io(I),re=re==null?0:nE(hi(re),0,I.length),L=Id(L),I.slice(re,re+L.length)==L}function rmt(I,L,re){var _e=Ke.templateSettings;re&&tu(I,L,re)&&(L=r),I=Io(I),L=a3({},L,_e,n_e);var Be=a3({},L.imports,_e.imports,n_e),Qe=$l(Be),ct=XS(Be,Qe),_t,Mt,un=0,dn=L.interpolate||Ue,bn="__p += '",Kn=Ft((L.escape||Ue).source+"|"+dn.source+"|"+(dn===Bt?Jt:Ue).source+"|"+(L.evaluate||Ue).source+"|$","g"),_r="//# sourceURL="+(mn.call(L,"sourceURL")?(L.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++eh+"]")+`
`;I.replace(Kn,function(jr,$i,Qi,Md,nu,Pd){return Qi||(Qi=Md),bn+=I.slice(un,Pd).replace(Zt,ih),$i&&(_t=!0,bn+=`' +
__e(`+$i+`) +
'`),nu&&(Mt=!0,bn+=`';
`+nu+`;
__p += '`),Qi&&(bn+=`' +
((__t = (`+Qi+`)) == null ? '' : __t) +
'`),un=Pd+jr.length,jr}),bn+=`';
`;var Br=mn.call(L,"variable")&&L.variable;if(!Br)bn=`with (obj) {
`+bn+`
}
`;else if(on.test(Br))throw new lt(l);bn=(Mt?bn.replace(ot,""):bn).replace(Xe,"$1").replace(Ze,"$1;"),bn="function("+(Br||"obj")+`) {
`+(Br?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(_t?", __e = _.escape":"")+(Mt?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+bn+`return __p
}`;var bi=q_e(function(){return yt(Qe,_r+"return "+bn).apply(r,ct)});if(bi.source=bn,lW(bi))throw bi;return bi}function imt(I){return Io(I).toLowerCase()}function omt(I){return Io(I).toUpperCase()}function amt(I,L,re){if(I=Io(I),I&&(re||L===r))return I$(I);if(!I||!(L=Id(L)))return I;var _e=se(I),Be=se(L),Qe=xN(_e,Be),ct=N$(_e,Be)+1;return $_(_e,Qe,ct).join("")}function smt(I,L,re){if(I=Io(I),I&&(re||L===r))return I.slice(0,ye(I)+1);if(!I||!(L=Id(L)))return I;var _e=se(I),Be=N$(_e,se(L))+1;return $_(_e,0,Be).join("")}function lmt(I,L,re){if(I=Io(I),I&&(re||L===r))return I.replace(vt,"");if(!I||!(L=Id(L)))return I;var _e=se(I),Be=xN(_e,se(L));return $_(_e,Be).join("")}function cmt(I,L){var re=O,_e=M;if(Ja(L)){var Be="separator"in L?L.separator:Be;re="length"in L?hi(L.length):re,_e="omission"in L?Id(L.omission):_e}I=Io(I);var Qe=I.length;if(oh(I)){var ct=se(I);Qe=ct.length}if(re>=Qe)return I;var _t=re-X(_e);if(_t<1)return _e;var Mt=ct?$_(ct,0,_t).join(""):I.slice(0,_t);if(Be===r)return Mt+_e;if(ct&&(_t+=Mt.length-_t),cW(Be)){if(I.slice(_t).search(Be)){var un,dn=Mt;for(Be.global||(Be=Ft(Be.source,Io(En.exec(Be))+"g")),Be.lastIndex=0;un=Be.exec(dn);)var bn=un.index;Mt=Mt.slice(0,bn===r?_t:bn)}}else if(I.indexOf(Id(Be),_t)!=_t){var Kn=Mt.lastIndexOf(Be);Kn>-1&&(Mt=Mt.slice(0,Kn))}return Mt+_e}function umt(I){return I=Io(I),I&&pt.test(I)?I.replace(bt,Ie):I}var dmt=ax(function(I,L,re){return I+(re?" ":"")+L.toUpperCase()}),fW=Kye("toUpperCase");function Y_e(I,L,re){return I=Io(I),L=re?r:L,L===r?Fu(I)?rt(I):Qw(I):I.match(L)||[]}var q_e=xi(function(I,L){try{return rc(I,r,L)}catch(re){return lW(re)?re:new lt(re)}}),fmt=yv(function(I,L){return wc(L,function(re){re=$g(re),mv(I,re,aW(I[re],I))}),I});function pmt(I){var L=I==null?0:I.length,re=Lr();return I=L?Jo(I,function(_e){if(typeof _e[1]!="function")throw new Ut(s);return[re(_e[0]),_e[1]]}):[],xi(function(_e){for(var Be=-1;++Be<L;){var Qe=I[Be];if(rc(Qe[0],this,_e))return rc(Qe[1],this,_e)}})}function hmt(I){return Bdt(jf(I,f))}function pW(I){return function(){return I}}function gmt(I,L){return I==null||I!==I?L:I}var mmt=Qye(),vmt=Qye(!0);function Hu(I){return I}function hW(I){return Oye(typeof I=="function"?I:jf(I,f))}function ymt(I){return Iye(jf(I,f))}function _mt(I,L){return Nye(I,jf(L,f))}var bmt=xi(function(I,L){return function(re){return DN(re,I,L)}}),Smt=xi(function(I,L){return function(re){return DN(I,re,L)}});function gW(I,L,re){var _e=$l(L),Be=U$(L,_e);re==null&&!(Ja(L)&&(Be.length||!_e.length))&&(re=L,L=I,I=this,Be=U$(L,$l(L)));var Qe=!(Ja(re)&&"chain"in re)||!!re.chain,ct=bv(I);return wc(Be,function(_t){var Mt=L[_t];I[_t]=Mt,ct&&(I.prototype[_t]=function(){var un=this.__chain__;if(Qe||un){var dn=I(this.__wrapped__),bn=dn.__actions__=Bu(this.__actions__);return bn.push({func:Mt,args:arguments,thisArg:I}),dn.__chain__=un,dn}return Mt.apply(I,nh([this.value()],arguments))})}),I}function Emt(){return pl._===this&&(pl._=_i),this}function mW(){}function Cmt(I){return I=hi(I),xi(function(L){return Mye(L,I)})}var wmt=YG(Jo),xmt=YG(O_),Tmt=YG(rh);function K_e(I){return eW(I)?qS($g(I)):nft(I)}function Omt(I){return function(L){return I==null?r:rE(I,L)}}var Rmt=Jye(),Imt=Jye(!0);function vW(){return[]}function yW(){return!1}function Nmt(){return{}}function Mmt(){return""}function Pmt(){return!0}function Amt(I,L){if(I=hi(I),I<1||I>B)return[];var re=K,_e=Oc(I,K);L=Lr(L),I-=K;for(var Be=Jw(_e,L);++re<I;)L(re);return Be}function Dmt(I){return ci(I)?Jo(I,$g):Nd(I)?[I]:Bu(g_e(Io(I)))}function kmt(I){var L=++jn;return Io(I)+L}var Lmt=Y$(function(I,L){return I+L},0),$mt=qG("ceil"),Fmt=Y$(function(I,L){return I/L},1),Bmt=qG("floor");function jmt(I){return I&&I.length?j$(I,Hu,AG):r}function Umt(I,L){return I&&I.length?j$(I,Lr(L,2),AG):r}function Hmt(I){return x$(I,Hu)}function zmt(I,L){return x$(I,Lr(L,2))}function Vmt(I){return I&&I.length?j$(I,Hu,$G):r}function Gmt(I,L){return I&&I.length?j$(I,Lr(L,2),$G):r}var Wmt=Y$(function(I,L){return I*L},1),Ymt=qG("round"),qmt=Y$(function(I,L){return I-L},0);function Kmt(I){return I&&I.length?wN(I,Hu):0}function Xmt(I,L){return I&&I.length?wN(I,Lr(L,2)):0}return Ke.after=yht,Ke.ary=T_e,Ke.assign=ogt,Ke.assignIn=j_e,Ke.assignInWith=a3,Ke.assignWith=agt,Ke.at=sgt,Ke.before=O_e,Ke.bind=aW,Ke.bindAll=fmt,Ke.bindKey=R_e,Ke.castArray=Nht,Ke.chain=C_e,Ke.chunk=Bft,Ke.compact=jft,Ke.concat=Uft,Ke.cond=pmt,Ke.conforms=hmt,Ke.constant=pW,Ke.countBy=Kpt,Ke.create=lgt,Ke.curry=I_e,Ke.curryRight=N_e,Ke.debounce=M_e,Ke.defaults=cgt,Ke.defaultsDeep=ugt,Ke.defer=_ht,Ke.delay=bht,Ke.difference=Hft,Ke.differenceBy=zft,Ke.differenceWith=Vft,Ke.drop=Gft,Ke.dropRight=Wft,Ke.dropRightWhile=Yft,Ke.dropWhile=qft,Ke.fill=Kft,Ke.filter=Qpt,Ke.flatMap=eht,Ke.flatMapDeep=tht,Ke.flatMapDepth=nht,Ke.flatten=__e,Ke.flattenDeep=Xft,Ke.flattenDepth=Qft,Ke.flip=Sht,Ke.flow=mmt,Ke.flowRight=vmt,Ke.fromPairs=Zft,Ke.functions=vgt,Ke.functionsIn=ygt,Ke.groupBy=rht,Ke.initial=ept,Ke.intersection=tpt,Ke.intersectionBy=npt,Ke.intersectionWith=rpt,Ke.invert=bgt,Ke.invertBy=Sgt,Ke.invokeMap=oht,Ke.iteratee=hW,Ke.keyBy=aht,Ke.keys=$l,Ke.keysIn=Uu,Ke.map=e3,Ke.mapKeys=Cgt,Ke.mapValues=wgt,Ke.matches=ymt,Ke.matchesProperty=_mt,Ke.memoize=n3,Ke.merge=xgt,Ke.mergeWith=U_e,Ke.method=bmt,Ke.methodOf=Smt,Ke.mixin=gW,Ke.negate=r3,Ke.nthArg=Cmt,Ke.omit=Tgt,Ke.omitBy=Ogt,Ke.once=Eht,Ke.orderBy=sht,Ke.over=wmt,Ke.overArgs=Cht,Ke.overEvery=xmt,Ke.overSome=Tmt,Ke.partial=sW,Ke.partialRight=P_e,Ke.partition=lht,Ke.pick=Rgt,Ke.pickBy=H_e,Ke.property=K_e,Ke.propertyOf=Omt,Ke.pull=spt,Ke.pullAll=S_e,Ke.pullAllBy=lpt,Ke.pullAllWith=cpt,Ke.pullAt=upt,Ke.range=Rmt,Ke.rangeRight=Imt,Ke.rearg=wht,Ke.reject=dht,Ke.remove=dpt,Ke.rest=xht,Ke.reverse=iW,Ke.sampleSize=pht,Ke.set=Ngt,Ke.setWith=Mgt,Ke.shuffle=hht,Ke.slice=fpt,Ke.sortBy=vht,Ke.sortedUniq=_pt,Ke.sortedUniqBy=bpt,Ke.split=emt,Ke.spread=Tht,Ke.tail=Spt,Ke.take=Ept,Ke.takeRight=Cpt,Ke.takeRightWhile=wpt,Ke.takeWhile=xpt,Ke.tap=jpt,Ke.throttle=Oht,Ke.thru=J$,Ke.toArray=$_e,Ke.toPairs=z_e,Ke.toPairsIn=V_e,Ke.toPath=Dmt,Ke.toPlainObject=B_e,Ke.transform=Pgt,Ke.unary=Rht,Ke.union=Tpt,Ke.unionBy=Opt,Ke.unionWith=Rpt,Ke.uniq=Ipt,Ke.uniqBy=Npt,Ke.uniqWith=Mpt,Ke.unset=Agt,Ke.unzip=oW,Ke.unzipWith=E_e,Ke.update=Dgt,Ke.updateWith=kgt,Ke.values=cx,Ke.valuesIn=Lgt,Ke.without=Ppt,Ke.words=Y_e,Ke.wrap=Iht,Ke.xor=Apt,Ke.xorBy=Dpt,Ke.xorWith=kpt,Ke.zip=Lpt,Ke.zipObject=$pt,Ke.zipObjectDeep=Fpt,Ke.zipWith=Bpt,Ke.entries=z_e,Ke.entriesIn=V_e,Ke.extend=j_e,Ke.extendWith=a3,gW(Ke,Ke),Ke.add=Lmt,Ke.attempt=q_e,Ke.camelCase=jgt,Ke.capitalize=G_e,Ke.ceil=$mt,Ke.clamp=$gt,Ke.clone=Mht,Ke.cloneDeep=Aht,Ke.cloneDeepWith=Dht,Ke.cloneWith=Pht,Ke.conformsTo=kht,Ke.deburr=W_e,Ke.defaultTo=gmt,Ke.divide=Fmt,Ke.endsWith=Ugt,Ke.eq=sh,Ke.escape=Hgt,Ke.escapeRegExp=zgt,Ke.every=Xpt,Ke.find=Zpt,Ke.findIndex=v_e,Ke.findKey=dgt,Ke.findLast=Jpt,Ke.findLastIndex=y_e,Ke.findLastKey=fgt,Ke.floor=Bmt,Ke.forEach=w_e,Ke.forEachRight=x_e,Ke.forIn=pgt,Ke.forInRight=hgt,Ke.forOwn=ggt,Ke.forOwnRight=mgt,Ke.get=uW,Ke.gt=Lht,Ke.gte=$ht,Ke.has=_gt,Ke.hasIn=dW,Ke.head=b_e,Ke.identity=Hu,Ke.includes=iht,Ke.indexOf=Jft,Ke.inRange=Fgt,Ke.invoke=Egt,Ke.isArguments=aE,Ke.isArray=ci,Ke.isArrayBuffer=Fht,Ke.isArrayLike=ju,Ke.isArrayLikeObject=Ms,Ke.isBoolean=Bht,Ke.isBuffer=F_,Ke.isDate=jht,Ke.isElement=Uht,Ke.isEmpty=Hht,Ke.isEqual=zht,Ke.isEqualWith=Vht,Ke.isError=lW,Ke.isFinite=Ght,Ke.isFunction=bv,Ke.isInteger=A_e,Ke.isLength=i3,Ke.isMap=D_e,Ke.isMatch=Wht,Ke.isMatchWith=Yht,Ke.isNaN=qht,Ke.isNative=Kht,Ke.isNil=Qht,Ke.isNull=Xht,Ke.isNumber=k_e,Ke.isObject=Ja,Ke.isObjectLike=ds,Ke.isPlainObject=jN,Ke.isRegExp=cW,Ke.isSafeInteger=Zht,Ke.isSet=L_e,Ke.isString=o3,Ke.isSymbol=Nd,Ke.isTypedArray=lx,Ke.isUndefined=Jht,Ke.isWeakMap=egt,Ke.isWeakSet=tgt,Ke.join=ipt,Ke.kebabCase=Vgt,Ke.last=Hf,Ke.lastIndexOf=opt,Ke.lowerCase=Ggt,Ke.lowerFirst=Wgt,Ke.lt=ngt,Ke.lte=rgt,Ke.max=jmt,Ke.maxBy=Umt,Ke.mean=Hmt,Ke.meanBy=zmt,Ke.min=Vmt,Ke.minBy=Gmt,Ke.stubArray=vW,Ke.stubFalse=yW,Ke.stubObject=Nmt,Ke.stubString=Mmt,Ke.stubTrue=Pmt,Ke.multiply=Wmt,Ke.nth=apt,Ke.noConflict=Emt,Ke.noop=mW,Ke.now=t3,Ke.pad=Ygt,Ke.padEnd=qgt,Ke.padStart=Kgt,Ke.parseInt=Xgt,Ke.random=Bgt,Ke.reduce=cht,Ke.reduceRight=uht,Ke.repeat=Qgt,Ke.replace=Zgt,Ke.result=Igt,Ke.round=Ymt,Ke.runInContext=ze,Ke.sample=fht,Ke.size=ght,Ke.snakeCase=Jgt,Ke.some=mht,Ke.sortedIndex=ppt,Ke.sortedIndexBy=hpt,Ke.sortedIndexOf=gpt,Ke.sortedLastIndex=mpt,Ke.sortedLastIndexBy=vpt,Ke.sortedLastIndexOf=ypt,Ke.startCase=tmt,Ke.startsWith=nmt,Ke.subtract=qmt,Ke.sum=Kmt,Ke.sumBy=Xmt,Ke.template=rmt,Ke.times=Amt,Ke.toFinite=Sv,Ke.toInteger=hi,Ke.toLength=F_e,Ke.toLower=imt,Ke.toNumber=zf,Ke.toSafeInteger=igt,Ke.toString=Io,Ke.toUpper=omt,Ke.trim=amt,Ke.trimEnd=smt,Ke.trimStart=lmt,Ke.truncate=cmt,Ke.unescape=umt,Ke.uniqueId=kmt,Ke.upperCase=dmt,Ke.upperFirst=fW,Ke.each=w_e,Ke.eachRight=x_e,Ke.first=b_e,gW(Ke,function(){var I={};return kg(Ke,function(L,re){mn.call(Ke.prototype,re)||(I[re]=L)}),I}(),{chain:!1}),Ke.VERSION=i,wc(["bind","bindKey","curry","curryRight","partial","partialRight"],function(I){Ke[I].placeholder=Ke}),wc(["drop","take"],function(I,L){Vi.prototype[I]=function(re){re=re===r?1:hl(hi(re),0);var _e=this.__filtered__&&!L?new Vi(this):this.clone();return _e.__filtered__?_e.__takeCount__=Oc(re,_e.__takeCount__):_e.__views__.push({size:Oc(re,K),type:I+(_e.__dir__<0?"Right":"")}),_e},Vi.prototype[I+"Right"]=function(re){return this.reverse()[I](re).reverse()}}),wc(["filter","map","takeWhile"],function(I,L){var re=L+1,_e=re==$||re==z;Vi.prototype[I]=function(Be){var Qe=this.clone();return Qe.__iteratees__.push({iteratee:Lr(Be,3),type:re}),Qe.__filtered__=Qe.__filtered__||_e,Qe}}),wc(["head","last"],function(I,L){var re="take"+(L?"Right":"");Vi.prototype[I]=function(){return this[re](1).value()[0]}}),wc(["initial","tail"],function(I,L){var re="drop"+(L?"":"Right");Vi.prototype[I]=function(){return this.__filtered__?new Vi(this):this[re](1)}}),Vi.prototype.compact=function(){return this.filter(Hu)},Vi.prototype.find=function(I){return this.filter(I).head()},Vi.prototype.findLast=function(I){return this.reverse().find(I)},Vi.prototype.invokeMap=xi(function(I,L){return typeof I=="function"?new Vi(this):this.map(function(re){return DN(re,I,L)})}),Vi.prototype.reject=function(I){return this.filter(r3(Lr(I)))},Vi.prototype.slice=function(I,L){I=hi(I);var re=this;return re.__filtered__&&(I>0||L<0)?new Vi(re):(I<0?re=re.takeRight(-I):I&&(re=re.drop(I)),L!==r&&(L=hi(L),re=L<0?re.dropRight(-L):re.take(L-I)),re)},Vi.prototype.takeRightWhile=function(I){return this.reverse().takeWhile(I).reverse()},Vi.prototype.toArray=function(){return this.take(K)},kg(Vi.prototype,function(I,L){var re=/^(?:filter|find|map|reject)|While$/.test(L),_e=/^(?:head|last)$/.test(L),Be=Ke[_e?"take"+(L=="last"?"Right":""):L],Qe=_e||/^find/.test(L);Be&&(Ke.prototype[L]=function(){var ct=this.__wrapped__,_t=_e?[1]:arguments,Mt=ct instanceof Vi,un=_t[0],dn=Mt||ci(ct),bn=function($i){var Qi=Be.apply(Ke,nh([$i],_t));return _e&&Kn?Qi[0]:Qi};dn&&re&&typeof un=="function"&&un.length!=1&&(Mt=dn=!1);var Kn=this.__chain__,_r=!!this.__actions__.length,Br=Qe&&!Kn,bi=Mt&&!_r;if(!Qe&&dn){ct=bi?ct:new Vi(this);var jr=I.apply(ct,_t);return jr.__actions__.push({func:J$,args:[bn],thisArg:r}),new Bf(jr,Kn)}return Br&&bi?I.apply(this,_t):(jr=this.thru(bn),Br?_e?jr.value()[0]:jr.value():jr)})}),wc(["pop","push","shift","sort","splice","unshift"],function(I){var L=an[I],re=/^(?:push|sort|unshift)$/.test(I)?"tap":"thru",_e=/^(?:pop|shift)$/.test(I);Ke.prototype[I]=function(){var Be=arguments;if(_e&&!this.__chain__){var Qe=this.value();return L.apply(ci(Qe)?Qe:[],Be)}return this[re](function(ct){return L.apply(ci(ct)?ct:[],Be)})}}),kg(Vi.prototype,function(I,L){var re=Ke[L];if(re){var _e=re.name+"";mn.call(rx,_e)||(rx[_e]=[]),rx[_e].push({name:L,func:re})}}),rx[W$(r,_).name]=[{name:"wrapper",func:r}],Vi.prototype.clone=udt,Vi.prototype.reverse=ddt,Vi.prototype.value=fdt,Ke.prototype.at=Upt,Ke.prototype.chain=Hpt,Ke.prototype.commit=zpt,Ke.prototype.next=Vpt,Ke.prototype.plant=Wpt,Ke.prototype.reverse=Ypt,Ke.prototype.toJSON=Ke.prototype.valueOf=Ke.prototype.value=qpt,Ke.prototype.first=Ke.prototype.head,ON&&(Ke.prototype[ON]=Gpt),Ke},St=ut();th?((th.exports=St)._=St,vN._=St):pl._=St}).call(oo)})(cj,cj.exports);var Mn=cj.exports;function nrt(e){var n,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(n=0;n<e.length;n++)e[n]&&(r=nrt(e[n]))&&(i&&(i+=" "),i+=r);else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function iy(){for(var e,n,r=0,i="";r<arguments.length;)(e=arguments[r++])&&(n=nrt(e))&&(i&&(i+=" "),i+=n);return i}var{PI:rrt}=Math,irt=rrt*2,vKn=180/rrt,xJ=class ort{constructor(n=0,r=0){this.x=n,this.y=r}sub(n){return new ort(this.x-n.x,this.y-n.y)}dot(n){return this.x*n.x+this.y*n.y}},gf=class art{constructor(n=0,r=0){this.x=n,this.y=r}clone(){return new art(this.x,this.y)}copyFrom(n){return this.set(n.x,n.y),this}copyTo(n){return n.x=this.x,n.y=this.y,n}equals(n){return n.x===this.x&&n.y===this.y}set(n=0,r=n){return this.x=n,this.y=r,this}};(e=>{e.EMPTY={x:0,y:0};function n(l,c){return Math.sqrt((l.x-c.x)**2+(l.y-c.y)**2)}e.getDistance=n;function r(l,c){return i(l,c,.5)}e.getMiddlePoint=r;function i(l,c,u){return{x:l.x+u*(c.x-l.x),y:l.y+u*(c.y-l.y)}}e.getRatioPoint=i;function o(l){return l.x===0&&(l.x=0),l.y===0&&(l.y=0),l}e.fixZero=o;function a(l,c){return{x:l.x+(c.x||0),y:l.y+(c.y||0)}}e.move=a;function s(l,c,u){const d=c.x-l.x,f=c.y-l.y,p=d===0?0:Math.sqrt(u**2/(1+f**2/d**2)),h=d>0?p:-p,g=d===0?u:Math.abs(p*f/d),v=f>0?g:-g;return{x:l.x+h,y:l.y+v}}e.moveDistanceToDirection=s})(gf||(gf={}));var Qn=class Xae{constructor(n=0,r=0,i=0,o=0){this.x=n,this.y=r,this.width=i,this.height=o,this.type=1}static get EMPTY(){return new Xae(0,0,0,0)}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}clone(){return new Xae(this.x,this.y,this.width,this.height)}copyFrom(n){return this.x=n.x,this.y=n.y,this.width=n.width,this.height=n.height,this}copyTo(n){return n.x=this.x,n.y=this.y,n.width=this.width,n.height=this.height,n}contains(n,r){return this.width<=0||this.height<=0?!1:n>=this.x&&n<=this.right&&r>=this.y&&r<=this.bottom}isEqual(n){return this.x===n.x&&this.y===n.y&&this.width===n.width&&this.height===n.height}containsRectangle(n){return n.left>=this.left&&n.right<=this.right&&n.top>=this.top&&n.bottom<=this.bottom}pad(n=0,r=n){return this.x-=n,this.y-=r,this.width+=n*2,this.height+=r*2,this}fit(n){const r=Math.max(this.x,n.x),i=Math.min(this.x+this.width,n.x+n.width),o=Math.max(this.y,n.y),a=Math.min(this.y+this.height,n.y+n.height);return this.x=r,this.width=Math.max(i-r,0),this.y=o,this.height=Math.max(a-o,0),this}ceil(n=1,r=.001){const i=Math.ceil((this.x+this.width-r)*n)/n,o=Math.ceil((this.y+this.height-r)*n)/n;return this.x=Math.floor((this.x+r)*n)/n,this.y=Math.floor((this.y+r)*n)/n,this.width=i-this.x,this.height=o-this.y,this}enlarge(n){const r=Math.min(this.x,n.x),i=Math.max(this.x+this.width,n.x+n.width),o=Math.min(this.y,n.y),a=Math.max(this.y+this.height,n.y+n.height);return this.x=r,this.width=i-r,this.y=o,this.height=a-o,this}get center(){return{x:this.x+this.width/2,y:this.y+this.height/2}}get rightBottom(){return{x:this.right,y:this.bottom}}get leftBottom(){return{x:this.left,y:this.bottom}}get rightTop(){return{x:this.right,y:this.top}}get leftTop(){return{x:this.left,y:this.top}}get bottomCenter(){return{x:this.x+this.width/2,y:this.bottom}}get topCenter(){return{x:this.x+this.width/2,y:this.top}}get rightCenter(){return{x:this.right,y:this.y+this.height/2}}get leftCenter(){return{x:this.left,y:this.y+this.height/2}}update(n){return n(this)}get crossDistance(){return gf.getDistance(this.leftTop,this.rightBottom)}toStyleStr(){return`left: ${this.x}px; top: ${this.y}px; width: ${this.width}px; height: ${this.height}px;`}withPadding(n){return this.x-=n.left,this.y-=n.top,this.width+=n.left+n.right,this.height+=n.top+n.bottom,this}withoutPadding(n){return this.x+=n.left,this.y+=n.top,this.width=this.width-n.left-n.right,this.height=this.height-n.top-n.bottom,this}withHeight(n){return this.height=n,this}clearSpace(){return this.width=0,this.height=0,this}};(e=>{function n(c,u){if(c.length<=1)return c;switch(u){case"align-bottom":const d=Math.max(...c.map(C=>C.bottom));c.forEach(C=>{C.y=d-C.height});break;case"align-center":const f=r(c).center.x;c.forEach(C=>{C.x=f-C.width/2});break;case"align-left":const p=Math.min(...c.map(C=>C.left));c.forEach(C=>{C.x=p});break;case"align-middle":const h=r(c).center.y;c.forEach(C=>{C.y=h-C.height/2});break;case"align-right":const g=Math.max(...c.map(C=>C.right));c.forEach(C=>{C.x=g-C.width});break;case"align-top":const v=Math.min(...c.map(C=>C.top));c.forEach(C=>{C.y=v});break;case"distribute-horizontal":if(c.length<=2)break;const y=c.slice().sort((C,x)=>C.left-x.left),_=r(c),S=c.reduce((C,x)=>C-x.width,_.width)/(c.length-1);y.reduce((C,x)=>(x.x=C,C+x.width+S),_.x);break;case"distribute-vertical":if(c.length<=2)break;const b=c.slice().sort((C,x)=>C.top-x.top),E=r(c),w=c.reduce((C,x)=>C-x.height,E.height)/(c.length-1);b.reduce((C,x)=>(x.y=C,C+x.height+w),E.y);break}return c}e.align=n;function r(c){const u=e.EMPTY.clone();if(!c.length)return u;const d=[],f=[],p=[],h=[];c.forEach(S=>{d.push(S.left),p.push(S.right),h.push(S.bottom),f.push(S.top)});const g=Math.min.apply(Math,d),v=Math.max.apply(Math,p),y=Math.min.apply(Math,f),_=Math.max.apply(Math,h);return u.x=g,u.width=v-g,u.y=y,u.height=_-y,u}e.enlarge=r;function i(c,u,d){const f=c.left,p=c.top,h=c.right,g=c.bottom,v=u.left,y=u.top,_=u.right,S=u.bottom;return d==="horizontal"?h>v&&f<_:d==="vertical"?g>y&&p<S:h>v&&f<_&&g>y&&p<S}e.intersects=i;function o(c,u,d,f){const p=new Dke(c.center,c.width,c.height,u),h=new Dke(d.center,d.width,d.height,f),g=p.centerPoint.sub(h.centerPoint),v=p.axesX;if(p.getProjectionRadius(v)+h.getProjectionRadius(v)<=Math.abs(g.dot(v)))return!1;const y=p.axesY;if(p.getProjectionRadius(y)+h.getProjectionRadius(y)<=Math.abs(g.dot(y)))return!1;const _=h.axesX;if(p.getProjectionRadius(_)+h.getProjectionRadius(_)<=Math.abs(g.dot(_)))return!1;const S=h.axesY;return!(p.getProjectionRadius(S)+h.getProjectionRadius(S)<=Math.abs(g.dot(S)))}e.intersectsWithRotation=o;function a(c,u,d=0,f=!1){return f?u.containsRectangle(c):d===0?e.intersects(c,u):e.intersectsWithRotation(c,d,u,0)}e.isViewportVisible=a;function s(c,u,d=0){const{left:f,right:p,top:h,bottom:g,width:v,height:y}=c,{left:_,right:S,top:b,bottom:E}=u;return f<=_?c.x=_+d:p>=S&&(c.x=S-d-v),h<=b?c.y=b+d:g>=E&&(c.y=E-d-y),c}e.setViewportVisible=s;function l(c,u){const d=c.x<u.x?c.x:u.x,f=c.y<u.y?c.y:u.y,p=Math.abs(c.x-u.x),h=Math.abs(c.y-u.y);return new e(d,f,p,h)}e.createRectangleWithTwoPoints=l})(Qn||(Qn={}));var Dke=class{constructor(e,n,r,i){this.width=n,this.height=r,this.centerPoint=new xJ(e.x,e.y),this.axesX=new xJ(Math.cos(i),Math.sin(i)),this.axesY=new xJ(-1*this.axesX.y,this.axesX.x)}getProjectionRadius(e){return this.width/2*Math.abs(e.dot(this.axesX))+this.height/2*Math.abs(e.dot(this.axesY))}},yKn=class srt{constructor(n=0,r=0,i=0){this.x=n,this.y=r,this.radius=i,this.type=2}clone(){return new srt(this.x,this.y,this.radius)}contains(n,r){if(this.radius<=0)return!1;const i=this.radius*this.radius;let o=this.x-n,a=this.y-r;return o*=o,a*=a,o+a<=i}getBounds(){return new Qn(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)}},yP=class Z6{constructor(n=1,r=0,i=0,o=1,a=0,s=0){this.a=n,this.b=r,this.c=i,this.d=o,this.tx=a,this.ty=s,this.array=null}static get IDENTITY(){return new Z6}static get TEMP_MATRIX(){return new Z6}fromArray(n){return n.length<6?this:(this.a=n[0],this.b=n[1],this.c=n[3],this.d=n[4],this.tx=n[2],this.ty=n[5],this)}set(n,r,i,o,a,s){return this.a=n,this.b=r,this.c=i,this.d=o,this.tx=a,this.ty=s,this}toArray(n,r){this.array||(this.array=new Float32Array(9));const i=r||this.array;return n?(i[0]=this.a,i[1]=this.b,i[2]=0,i[3]=this.c,i[4]=this.d,i[5]=0,i[6]=this.tx,i[7]=this.ty,i[8]=1):(i[0]=this.a,i[1]=this.c,i[2]=this.tx,i[3]=this.b,i[4]=this.d,i[5]=this.ty,i[6]=0,i[7]=0,i[8]=1),i}apply(n,r){r=r||{x:0,y:0};const{x:i,y:o}=n;return r.x=this.a*i+this.c*o+this.tx,r.y=this.b*i+this.d*o+this.ty,r}applyInverse(n,r){r=r||{x:0,y:0};const i=1/(this.a*this.d+this.c*-this.b),{x:o}=n,{y:a}=n;return r.x=this.d*i*o+-this.c*i*a+(this.ty*this.c-this.tx*this.d)*i,r.y=this.a*i*a+-this.b*i*o+(-this.ty*this.a+this.tx*this.b)*i,r}translate(n,r){return this.tx+=n,this.ty+=r,this}scale(n,r){return this.a*=n,this.d*=r,this.c*=n,this.b*=r,this.tx*=n,this.ty*=r,this}rotate(n){const r=Math.cos(n),i=Math.sin(n),o=this.a,a=this.c,s=this.tx;return this.a=o*r-this.b*i,this.b=o*i+this.b*r,this.c=a*r-this.d*i,this.d=a*i+this.d*r,this.tx=s*r-this.ty*i,this.ty=s*i+this.ty*r,this}append(n){const r=this.a,i=this.b,o=this.c,a=this.d;return this.a=n.a*r+n.b*o,this.b=n.a*i+n.b*a,this.c=n.c*r+n.d*o,this.d=n.c*i+n.d*a,this.tx=n.tx*r+n.ty*o+this.tx,this.ty=n.tx*i+n.ty*a+this.ty,this}setTransform(n,r,i,o,a,s,l,c,u){return this.a=Math.cos(l+u)*a,this.b=Math.sin(l+u)*a,this.c=-Math.sin(l-c)*s,this.d=Math.cos(l-c)*s,this.tx=n-(i*this.a+o*this.c),this.ty=r-(i*this.b+o*this.d),this}prepend(n){const r=this.tx;if(n.a!==1||n.b!==0||n.c!==0||n.d!==1){const i=this.a,o=this.c;this.a=i*n.a+this.b*n.c,this.b=i*n.b+this.b*n.d,this.c=o*n.a+this.d*n.c,this.d=o*n.b+this.d*n.d}return this.tx=r*n.a+this.ty*n.c+n.tx,this.ty=r*n.b+this.ty*n.d+n.ty,this}decompose(n){const{a:r}=this,{b:i}=this,{c:o}=this,{d:a}=this,s=-Math.atan2(-o,a),l=Math.atan2(i,r),c=Math.abs(s+l);return c<1e-5||Math.abs(irt-c)<1e-5?(n.rotation=l,n.skew.x=0,n.skew.y=0):(n.rotation=0,n.skew.x=s,n.skew.y=l),n.scale.x=Math.sqrt(r*r+i*i),n.scale.y=Math.sqrt(o*o+a*a),n.position.x=this.tx,n.position.y=this.ty,n}invert(){const n=this.a,r=this.b,i=this.c,o=this.d,a=this.tx,s=n*o-r*i;return this.a=o/s,this.b=-r/s,this.c=-i/s,this.d=n/s,this.tx=(i*this.ty-o*a)/s,this.ty=-(n*this.ty-r*a)/s,this}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}isSimple(){return this.a===1&&this.b===0&&this.c===0&&this.d===1}clone(){const n=new Z6;return n.a=this.a,n.b=this.b,n.c=this.c,n.d=this.d,n.tx=this.tx,n.ty=this.ty,n}copyTo(n){return n.a=this.a,n.b=this.b,n.c=this.c,n.d=this.d,n.tx=this.tx,n.ty=this.ty,n}copyFrom(n){return this.a=n.a,this.b=n.b,this.c=n.c,this.d=n.d,this.tx=n.tx,this.ty=n.ty,this}},a5=class lrt{constructor(n,r,i=0,o=0){this._x=i,this._y=o,this.cb=n,this.scope=r}get x(){return this._x}set x(n){this._x!==n&&(this._x=n,this.cb.call(this.scope))}get y(){return this._y}set y(n){this._y!==n&&(this._y=n,this.cb.call(this.scope))}clone(n=this.cb,r=this.scope){return new lrt(n,r,this._x,this._y)}set(n=0,r=n){return(this._x!==n||this._y!==r)&&(this._x=n,this._y=r,this.cb.call(this.scope)),this}copyFrom(n){return(this._x!==n.x||this._y!==n.y)&&(this._x=n.x,this._y=n.y,this.cb.call(this.scope)),this}copyTo(n){return n.x=this._x,n.y=this._y,n}equals(n){return n.x===this._x&&n.y===this._y}},kke=class{constructor(){this.worldTransform=new yP,this.localTransform=new yP,this.position=new a5(this.onChange,this,0,0),this.scale=new a5(this.onChange,this,1,1),this.pivot=new a5(this.onChange,this,0,0),this.skew=new a5(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}onChange(){this._localID++}updateSkew(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++}updateLocalTransform(){const n=this.localTransform;this._localID!==this._currentLocalID&&(n.a=this._cx*this.scale.x,n.b=this._sx*this.scale.x,n.c=this._cy*this.scale.y,n.d=this._sy*this.scale.y,n.tx=this.position.x-(this.pivot.x*n.a+this.pivot.y*n.c),n.ty=this.position.y-(this.pivot.x*n.b+this.pivot.y*n.d),this._currentLocalID=this._localID,this._parentID=-1)}updateTransform(n){const r=this.localTransform;if(this._localID!==this._currentLocalID&&(r.a=this._cx*this.scale.x,r.b=this._sx*this.scale.x,r.c=this._cy*this.scale.y,r.d=this._sy*this.scale.y,r.tx=this.position.x-(this.pivot.x*r.a+this.pivot.y*r.c),r.ty=this.position.y-(this.pivot.x*r.b+this.pivot.y*r.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==n._worldID){const i=n.worldTransform,o=this.worldTransform;o.a=r.a*i.a+r.b*i.c,o.b=r.a*i.b+r.b*i.d,o.c=r.c*i.a+r.d*i.c,o.d=r.c*i.b+r.d*i.d,o.tx=r.tx*i.a+r.ty*i.c+i.tx,o.ty=r.tx*i.b+r.ty*i.d+i.ty,this._parentID=n._worldID,this._worldID++}}setFromMatrix(n){n.decompose(this),this._localID++}get rotation(){return this._rotation}set rotation(n){this._rotation!==n&&(this._rotation=n,this.updateSkew())}};kke.IDENTITY=new kke;function Lke(e,n,r){const i=r-n;return n+((e-n)%i+i)%i}var uj;(e=>{function n(o){return Lke(o,-Math.PI,Math.PI)}e.wrap=n;function r(o){return Lke(o,-180,180)}e.wrapDegrees=r;function i(o,a,s={x:0,y:0}){const l={x:o.x-s.x,y:o.y-s.y},c={x:a.x-s.x,y:a.y-s.y};return Math.atan2(l.x*c.y-l.y*c.x,l.x*c.x+l.y*c.y)}e.betweenPoints=i})(uj||(uj={}));var{keys:crt}=Object,_Kn=(e,n)=>crt(e).forEach(r=>n(e[r],r)),bKn=(e,n,r={})=>crt(e).reduce((i,o)=>n(i,e[o],o),r),SKn=(e,n)=>bKn(e,(r,i,o)=>Object.assign(r,{[o]:n(i,o)})),dj=()=>{},urt=Object.freeze({dispose:dj}),Qae;(e=>{e.None=()=>urt})(Qae||(Qae={}));var drt=class Zae{constructor(){this._disposed=!1}get event(){return this._event||(this._event=(n,r)=>{if(this._disposed)return urt;this._listeners||(this._listeners=[]);const i=r?n.bind(r):n;this._listeners.length>=Zae.LEAK_WARNING_THRESHHOLD&&console.warn(`[Emitter] Listeners length >= ${Zae.LEAK_WARNING_THRESHHOLD}`),this._listeners.push(i);const o={dispose:()=>{if(o.dispose=dj,!this._disposed){const a=this._listeners.indexOf(i);a!==-1&&this._listeners.splice(a,1)}}};return o}),this._event}fire(n){this._listeners&&this._listeners.forEach(r=>r(n))}get disposed(){return this._disposed}dispose(){this._listeners&&(this._listeners=void 0),this._disposed=!0}};drt.LEAK_WARNING_THRESHHOLD=175;var Un=drt,ao;(e=>{function n(i){return typeof i=="object"&&i!==null&&typeof i.dispose=="function"}e.is=n;function r(i){return{dispose:i}}e.create=r,e.NULL=Object.freeze(r(()=>{}))})(ao||(ao={}));var frt=class{constructor(){this.toDispose=new Ei}dispose(){this.toDispose.dispose()}get disposed(){return this.toDispose.disposed}get onDispose(){return this.toDispose.onDispose}},Ei=class{constructor(...e){this.disposables=[],this.onDisposeEmitter=new Un,this._disposed=!1,e.forEach(n=>this.push(n))}get onDispose(){return this.onDisposeEmitter.event}get disposed(){return this._disposed}dispose(){this.disposed||(this._disposed=!0,this.disposables.slice().reverse().forEach(e=>{try{e.dispose()}catch(n){console.error(n)}}),this.onDisposeEmitter.fire(void 0),this.onDisposeEmitter.dispose())}push(e){if(this.disposed)return ao.NULL;const{disposables:n}=this;if(n.find(o=>o._origin===e))return ao.NULL;let r;const i=ao.create(()=>{const o=n.indexOf(r);o!==-1&&n.splice(o,1)});return r={dispose:()=>{i.dispose(),e.dispose()},_origin:e},n.push(r),i}pushAll(e){return e.map(n=>this.push(n))}},prt=Object.freeze(function(e,n){const r=setTimeout(e.bind(n),0);return{dispose(){clearTimeout(r)}}}),Jae;(e=>{function n(r){return r===e.None||r===e.Cancelled||r instanceof EKn?!0:!r||typeof r!="object"?!1:typeof r.isCancellationRequested=="boolean"&&typeof r.onCancellationRequested=="function"}e.isCancellationToken=n,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Qae.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:prt})})(Jae||(Jae={}));var EKn=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?prt:(this._emitter||(this._emitter=new Un),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},CKn="Cancelled";function wKn(){return new Error(CKn)}var fj=class{constructor(){this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}};function NS(e,n=Jae.None){const r=new fj,i=setTimeout(()=>r.resolve(),e);return n.onCancellationRequested(()=>{clearTimeout(i),r.reject(wKn())}),r.promise}var k0;(e=>{function n(o,a,s=1,l=!0){if(o===a)return!1;if(s===0||typeof o!="object"||typeof a!="object")return o!==a;const c=Object.keys(a);if(!l){const u=Object.keys(o);if(c.length!==u.length)return!0}for(let u=0,d=c.length;u<d;u++){const f=c[u];if(n(o[f],a[f],s-1,l))return!0}return!1}e.isChanged=n;function r(o,a,s){return n(o,a,1/0,s)}e.isDeepChanged=r;function i(o,a){if(o.length!==a.length)return!0;for(let s=0,l=o.length;s<l;s++)if(o[s]!==a[s])return!0;return!1}e.isArrayShallowChanged=i})(k0||(k0={}));var cD;(e=>{function n(a,s={}){let l=[];return{getFromCache(){return l},getMore(c,u=!0){if(c!==l.length){if(c>l.length){let d=c-l.length;for(;d>0;)l.push(a()),d--}else if(u){const d=s.deleteLimit??0;l.length-c>d&&l.splice(c).forEach(p=>p.dispose&&p.dispose())}}return l.slice(0,c)},getMoreByItemKeys(c){const u=[],d=new Map;return l.forEach(f=>{var h;c.find(g=>g.key===f.key)?d.set(f.key,f):(h=f.dispose)==null||h.call(f)}),c.forEach(f=>{if(!f.key)throw new Error("getMoreByItemKeys need a key");const p=d.get(f.key);p?u.push(p):u.push(a(f))}),l=u,l},getMoreByItems(c){const u=[],d=new Map;return l.forEach(f=>{var h;c.find(g=>g===f.key)?d.set(f.key,f):(h=f.dispose)==null||h.call(f)}),c.forEach(f=>{const p=d.get(f);p?u.push(p):u.push({...a(f),key:f})}),l=u,l},get(){return l.length>0||l.push(a()),l[0]},getFromCacheByKey(c){return l.find(u=>u.key===c)},dispose(){l.forEach(c=>c.dispose&&c.dispose()),l.length=0},clear(){this.dispose()}}}e.create=n;function r(a,s){return Object.assign(a,s)}e.assign=r;function i(a=1e3){let s,l;function c(){l&&clearTimeout(l),l=setTimeout(()=>{l=void 0,s=void 0},a)}return{get(u){return s?(c(),s):(s=u(),c(),s)}}}e.createShortCache=i;function o(){const a=new WeakMap;return{get:s=>a.get(s),save:(s,l)=>a.set(s,l),isChanged:(s,l)=>k0.isChanged(a.get(s),l)}}e.createWeakCache=o})(cD||(cD={}));var $ke;(e=>{function n(r,i,o){return{type:"object",properties:{...i==null?void 0:i.properties,...r},mixinDefaults:{...i==null?void 0:i.mixinDefaults,...o}}}e.create=n})($ke||($ke={}));var cg;(e=>{function n(i,o,a){o={...i.mixinDefaults,...o};const s=a?`${a}.`:"";return i.properties?SKn(i.properties,(l,c)=>{const u=s+c;return o&&o[u]!==void 0?o[u]:n(l,o,u)}):typeof i.default=="function"?i.default():i.default}e.createDefault=n;function r(i){return i.type==="string"||i.type==="float"||i.type==="integer"||i.type==="boolean"||i.type==="enum"||i.type==="color"||i.type==="range"}e.isBaseType=r})(cg||(cg={}));var hrt={label:"大小",properties:{width:{label:"宽",default:0,type:"float"},height:{label:"高",default:0,type:"float"},locked:{label:"等比锁",default:!1,type:"boolean"}},type:"object"},grt={label:"原点",description:"用于设置旋转的中心位置",properties:{x:{label:"x",default:.5,type:"float"},y:{label:"y",default:.5,type:"float"}},type:"object"},mrt={label:"位置",properties:{x:{label:"x",default:0,type:"float"},y:{label:"y",default:0,type:"float"}},type:"object"},vrt={label:"旋转",type:"float",default:0},yrt={label:"缩放",properties:{x:{label:"x",default:1,type:"float"},y:{label:"y",default:1,type:"float"}},type:"object"},_rt={label:"倾斜",properties:{x:{label:"x",default:0,type:"float"},y:{label:"y",default:0,type:"float"}},type:"object"},brt={properties:{position:mrt,size:hrt,origin:grt,scale:yrt,skew:_rt,rotation:vrt},type:"object"},ese;(e=>{function n(){return cg.createDefault(brt)}e.createDefault=n;function r(s){return{position:{x:s.position.x,y:s.position.y},size:{width:s.size.width,height:s.size.height,locked:s.size.locked},origin:{x:s.origin.x,y:s.origin.y},scale:{x:s.scale.x,y:s.scale.y},skew:{x:s.skew.x,y:s.skew.y},rotation:s.rotation}}e.toJSON=r;function i(s,l){return{position:{x:l.position.x-s.position.x,y:l.position.y-s.position.y},size:{width:l.size.width-s.size.width,height:l.size.height-s.size.height},origin:{x:l.origin.x-s.origin.x,y:l.origin.y-s.origin.y},scale:{x:l.scale.x-s.scale.x,y:l.scale.y-s.scale.y},skew:{x:l.skew.x-s.skew.x,y:l.skew.y-s.skew.y},rotation:l.rotation-s.rotation}}e.getDelta=i;function o(s,l,c){const u=c!==void 0?d=>Math.round(d*100)/100:d=>d;return{position:{x:u(l.position.x+s.position.x),y:u(l.position.y+s.position.y)},size:{width:u(l.size.width+s.size.width),height:u(l.size.height+s.size.height),locked:s.size.locked},origin:{x:u(l.origin.x+s.origin.x),y:u(l.origin.y+s.origin.y)},scale:{x:u(l.scale.x+s.scale.x),y:u(l.scale.y+s.scale.y)},skew:{x:u(l.skew.x+s.skew.x),y:u(l.skew.y+s.skew.y)},rotation:l.rotation+s.rotation}}e.mergeDelta=o;function a(s){return s&&s.position&&s.size&&typeof s.position.x=="number"&&typeof s.size.width=="number"}e.is=a})(ese||(ese={}));var mR;(e=>{function n(o,a){if(o.width<=a.width&&o.height<=a.height)return 1;const s=o.width/a.width,l=o.height/a.height;return 1/(s>l?s:l)}e.fixSize=n;function r(o,a){const s=o.width/a.width,l=o.height/a.height;return 1/(s<l?s:l)}e.coverSize=r;function i(){return{width:0,height:0}}e.empty=i})(mR||(mR={}));var tse;(e=>{e.empty=()=>({left:0,right:0,top:0,bottom:0})})(tse||(tse={}));var Fke;(e=>{function n(r){return r?r.topLeft===void 0&&r.topRight===void 0&&r.bottomLeft===void 0&&r.bottomRight===void 0:!0}e.isEmpty=n})(Fke||(Fke={}));var xKn={label:"透明度",type:"float",min:0,max:1,default:1},TKn=e=>e.replace(/([A-Z])/,n=>`-${n.toLowerCase()}`),Tr;(e=>{function n(b){return`${b}px`}e.toPixel=n;function r(b){return parseFloat(b.substring(0,b.length-1))}e.fromPercent=r;function i(b){return`${b}%`}e.toPercent=i;function o(b){b.style.pointerEvents="all"}e.enableEvent=o;function a(b){b.style.pointerEvents="none"}e.disableEvent=a;function s(b,...E){const w=document.createElement(b);return E.length>0&&(w.className=iy(E)),w}e.createElement=s;function l(...b){return s("div",...b)}e.createDivWithClass=l;function c(b,...E){b.className=iy(E.concat(b.className.split(" ")))}e.addClass=c;function u(b,...E){E.forEach(w=>{b.classList.remove(w)}),b.className=b.classList.toString()}e.delClass=u;function d(b,...E){b.className=iy(E)}e.coverClass=d;function f(b){b.innerHTML=""}e.clearChildren=f;function p(b,E,w){b.style.transform=`translate(${E}%, ${w}%)`}e.translatePercent=p;function h(b,E){b.style.transform=`translateX(${E}%)`}e.translateXPercent=h;function g(b,E){b.style.transform=`translateY(${E}%)`}e.translateYPercent=g;function v(b,E){const w=[];_Kn(E,(T,R)=>{T!==void 0&&(typeof T=="number"&&R!=="opacity"&&R!=="zIndex"&&R!=="scale"&&(T=n(T)),w.push(`${TKn(R)}:${T}`))});const C=b.getAttribute("style"),x=w.join(";");C!==x&&b.setAttribute("style",x)}e.setStyle=v;function y(b){return(E,w)=>iy(E.split(/\s+/).map(C=>`${b}-${C}`).join(" "),w)}e.classNameWithPrefix=y;function _(b,E,w,C){return b.addEventListener(E,w,C),ao.create(()=>{b.removeEventListener(E,w)})}e.addStandardDisposableListener=_;function S(b,E,w){return cD.create(()=>{const C=typeof E=="string"?e.createDivWithClass(E):E();return w&&(C.innerHTML=w),b.appendChild(C),Object.assign(C,{dispose:()=>{const{parentNode:x}=C;x&&x.removeChild(C)},setStyle:x=>{e.setStyle(C,x)}})})}e.createDOMCache=S})(Tr||(Tr={}));var TJ=0;function OKn(){return TJ===Number.MAX_SAFE_INTEGER&&(TJ=0),TJ++}function XL(e,n,r){e(n).toSelf().inSingletonScope(),r.forEach(i=>e(i).toService(n))}var lme=Symbol("ContributionProvider"),RKn=class{constructor(e,n){this.container=e,this.identifier=n}forEach(e){this.getContributions().forEach(e)}getContributions(){if(!this.services){const e=[];let{container:n}=this;if(n.isBound(this.identifier))try{e.push(...n.getAll(this.identifier))}catch(r){console.error(r)}this.services=e}return this.services}};function cme(e,n){e(lme).toDynamicValue(r=>new RKn(r.container,n)).inSingletonScope().whenTargetNamed(n)}function Rd(e){const[,n]=m.useState(e);return m.useCallback(r=>n(r!==void 0?r:{}),[])}const OJ=Symbol.for("@inversifyjs/common/islazyServiceIdentifier");var Z3e,LD,J3e;let IKn=(Z3e=OJ,J3e=class{constructor(n){$t(this,Z3e);Xn(this,LD);xn(this,LD,n),this[OJ]=!0}static is(n){return typeof n=="object"&&n!==null&&n[OJ]===!0}unwrap(){return He(this,LD).call(this)}},LD=new WeakMap,J3e);function $y(e,n){return Reflect.getMetadata(n,e)}function Bke(e,n,r,i){const o=i($y(e,n)??r);Reflect.defineMetadata(n,o,e)}const bV="named",ume="name",dme="unmanaged",fme="optional",pme="inject",hme="multi_inject",Srt="post_construct",Ert="pre_destroy",NKn=[pme,hme,ume,dme,bV,fme],RJ=Symbol.for("@inversifyjs/core/InversifyCoreError");var e4e,t4e;let xC=class Crt extends(t4e=Error,e4e=RJ,t4e){constructor(r,i,o){super(i,o);$t(this,e4e);$t(this,"kind");this[RJ]=!0,this.kind=r}static is(r){return typeof r=="object"&&r!==null&&r[RJ]===!0}static isErrorOfKind(r,i){return Crt.is(r)&&r.kind===i}};var Fy,gd;function wrt(e,n){const r=[];for(let i=0;i<n.length;++i)n[i]===void 0&&r.push(i);if(r.length>0)throw new xC(Fy.missingInjectionDecorator,`Found unexpected missing metadata on type "${e.name}" at constructor indexes "${r.join('", "')}".
Are you using @inject, @multiInject or @unmanaged decorators at those indexes?
If you're using typescript and want to rely on auto injection, set "emitDecoratorMetadata" compiler option to true`)}function xrt(e){return{kind:gd.singleInjection,name:void 0,optional:!1,tags:new Map,targetName:void 0,value:e}}function SV(e){const n=e.find(s=>s.key===pme),r=e.find(s=>s.key===hme);if(e.find(s=>s.key===dme)!==void 0)return function(s,l){if(l!==void 0||s!==void 0)throw new xC(Fy.missingInjectionDecorator,"Expected a single @inject, @multiInject or @unmanaged metadata");return{kind:gd.unmanaged}}(n,r);if(r===void 0&&n===void 0)throw new xC(Fy.missingInjectionDecorator,"Expected @inject, @multiInject or @unmanaged metadata");const i=e.find(s=>s.key===bV),o=e.find(s=>s.key===fme),a=e.find(s=>s.key===ume);return{kind:n===void 0?gd.multipleInjection:gd.singleInjection,name:i==null?void 0:i.value,optional:o!==void 0,tags:new Map(e.filter(s=>NKn.every(l=>s.key!==l)).map(s=>[s.key,s.value])),targetName:a==null?void 0:a.value,value:n===void 0?r==null?void 0:r.value:n.value}}function Trt(e,n,r){try{return SV(r)}catch(i){throw xC.isErrorOfKind(i,Fy.missingInjectionDecorator)?new xC(Fy.missingInjectionDecorator,`Expected a single @inject, @multiInject or @unmanaged decorator at type "${e.name}" at constructor arguments at index "${n.toString()}"`,{cause:i}):i}}function MKn(e){const n=$y(e,"design:paramtypes"),r=$y(e,"inversify:tagged"),i=[];if(r!==void 0)for(const[o,a]of Object.entries(r)){const s=parseInt(o);i[s]=Trt(e,s,a)}if(n!==void 0){for(let o=0;o<n.length;++o)if(i[o]===void 0){const a=n[o];i[o]=xrt(a)}}return wrt(e,i),i}function Ort(e,n,r){try{return SV(r)}catch(i){throw xC.isErrorOfKind(i,Fy.missingInjectionDecorator)?new xC(Fy.missingInjectionDecorator,`Expected a single @inject, @multiInject or @unmanaged decorator at type "${e.name}" at property "${n.toString()}"`,{cause:i}):i}}function Rrt(e){const n=$y(e,"inversify:tagged_props"),r=new Map;if(n!==void 0)for(const i of Reflect.ownKeys(n)){const o=n[i];r.set(i,Ort(e,i,o))}return r}function PKn(e){const n=$y(e,Srt),r=$y(e,Ert);return{constructorArguments:MKn(e),lifecycle:{postConstructMethodName:n==null?void 0:n.value,preDestroyMethodName:r==null?void 0:r.value},properties:Rrt(e)}}function AKn(e,n){const r=n.getConstructorMetadata(e),i=[];for(const[o,a]of Object.entries(r.userGeneratedMetadata)){const s=parseInt(o);i[s]=Trt(e,s,a)}if(r.compilerGeneratedMetadata!==void 0){for(let o=0;o<r.compilerGeneratedMetadata.length;++o)if(i[o]===void 0){const a=r.compilerGeneratedMetadata[o];i[o]=xrt(a)}}return wrt(e,i),i}function Irt(e,n){const r=n.getPropertiesMetadata(e),i=new Map;for(const o of Reflect.ownKeys(r)){const a=r[o];i.set(o,Ort(e,o,a))}return i}function DKn(e,n){const r=$y(e,Srt),i=$y(e,Ert);return{constructorArguments:AKn(e,n),lifecycle:{postConstructMethodName:r==null?void 0:r.value,preDestroyMethodName:i==null?void 0:i.value},properties:Irt(e,n)}}function jke(e){const n=Object.getPrototypeOf(e.prototype);return n==null?void 0:n.constructor}function kKn(e){return e.kind===gd.unmanaged?[{key:dme,value:!0}]:function(n){const r=[LKn(n)];n.name!==void 0&&r.push({key:bV,value:n.name}),n.optional&&r.push({key:fme,value:!0});for(const[i,o]of n.tags)r.push({key:i,value:o});return n.targetName!==void 0&&r.push({key:ume,value:n.targetName}),r}(e)}function LKn(e){let n;switch(e.kind){case gd.multipleInjection:n={key:hme,value:e.value};break;case gd.singleInjection:n={key:pme,value:e.value}}return n}(function(e){e[e.injectionDecoratorConflict=0]="injectionDecoratorConflict",e[e.missingInjectionDecorator=1]="missingInjectionDecorator",e[e.planning=2]="planning",e[e.unknown=3]="unknown"})(Fy||(Fy={})),function(e){e[e.multipleInjection=0]="multipleInjection",e[e.singleInjection=1]="singleInjection",e[e.unmanaged=2]="unmanaged"}(gd||(gd={}));var Gv,n4e;let $Kn=(n4e=class{constructor(n){Xn(this,Gv);xn(this,Gv,n)}startsWith(n){return He(this,Gv).startsWith(n)}endsWith(n){return He(this,Gv).endsWith(n)}contains(n){return He(this,Gv).includes(n)}equals(n){return He(this,Gv)===n}value(){return He(this,Gv)}},Gv=new WeakMap,n4e);const IJ="@inversifyjs/core/targetId";var lc,$D,FD,y1,BD,jD,r4e;let pj=(r4e=class{constructor(n,r,i){Xn(this,lc);Xn(this,$D);Xn(this,FD);Xn(this,y1);Xn(this,BD);Xn(this,jD);xn(this,$D,function(){const o=$y(Object,IJ)??0;return o===Number.MAX_SAFE_INTEGER?Bke(Object,IJ,o,()=>Number.MIN_SAFE_INTEGER):Bke(Object,IJ,o,a=>a+1),o}()),xn(this,FD,n),xn(this,y1,void 0),xn(this,lc,r),xn(this,BD,new $Kn(typeof n=="string"?n:n.toString().slice(7,-1))),xn(this,jD,i)}get id(){return He(this,$D)}get identifier(){return He(this,FD)}get metadata(){return He(this,y1)===void 0&&xn(this,y1,kKn(He(this,lc))),He(this,y1)}get name(){return He(this,BD)}get type(){return He(this,jD)}get serviceIdentifier(){return IKn.is(He(this,lc).value)?He(this,lc).value.unwrap():He(this,lc).value}getCustomTags(){return[...He(this,lc).tags.entries()].map(([n,r])=>({key:n,value:r}))}getNamedTag(){return He(this,lc).name===void 0?null:{key:bV,value:He(this,lc).name}}hasTag(n){return this.metadata.some(r=>r.key===n)}isArray(){return He(this,lc).kind===gd.multipleInjection}isNamed(){return He(this,lc).name!==void 0}isOptional(){return He(this,lc).optional}isTagged(){return He(this,lc).tags.size>0}matchesArray(n){return this.isArray()&&He(this,lc).value===n}matchesNamedTag(n){return He(this,lc).name===n}matchesTag(n){return r=>this.metadata.some(i=>i.key===n&&i.value===r)}},lc=new WeakMap,$D=new WeakMap,FD=new WeakMap,y1=new WeakMap,BD=new WeakMap,jD=new WeakMap,r4e);const Nrt=e=>function(n,r){return function(i){const o=n(i);let a=jke(i);for(;a!==void 0&&a!==Object;){const l=r(a);for(const[c,u]of l)o.properties.has(c)||o.properties.set(c,u);a=jke(a)}const s=[];for(const l of o.constructorArguments)if(l.kind!==gd.unmanaged){const c=l.targetName??"";s.push(new pj(c,l,"ConstructorArgument"))}for(const[l,c]of o.properties)if(c.kind!==gd.unmanaged){const u=c.targetName??l;s.push(new pj(u,c,"ClassProperty"))}return s}}(e===void 0?PKn:n=>DKn(n,e),e===void 0?Rrt:n=>Irt(n,e)),ep="named",FKn="unmanaged",Mrt="optional",Prt="inject",Art="multi_inject",Drt="inversify:tagged",krt="inversify:tagged_props",Uke="inversify:paramtypes",Lrt="design:paramtypes",nse="post_construct",hj="pre_destroy",js={Request:"Request",Singleton:"Singleton",Transient:"Transient"},la={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},$rt={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"};let BKn=0;function QL(){return BKn++}let jKn=class Frt{constructor(n,r){$t(this,"id");$t(this,"moduleId");$t(this,"activated");$t(this,"serviceIdentifier");$t(this,"implementationType");$t(this,"cache");$t(this,"dynamicValue");$t(this,"scope");$t(this,"type");$t(this,"factory");$t(this,"provider");$t(this,"constraint");$t(this,"onActivation");$t(this,"onDeactivation");this.id=QL(),this.activated=!1,this.serviceIdentifier=n,this.scope=r,this.type=la.Invalid,this.constraint=i=>!0,this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.onDeactivation=null,this.dynamicValue=null}clone(){const n=new Frt(this.serviceIdentifier,this.scope);return n.activated=n.scope===js.Singleton&&this.activated,n.implementationType=this.implementationType,n.dynamicValue=this.dynamicValue,n.scope=this.scope,n.type=this.type,n.factory=this.factory,n.provider=this.provider,n.constraint=this.constraint,n.onActivation=this.onActivation,n.onDeactivation=this.onDeactivation,n.cache=this.cache,n}};const Brt="Metadata key was used more than once in a parameter:",Hke="NULL argument",zke="Key Not Found",UKn="Ambiguous match found for serviceIdentifier:",HKn="No matching bindings found for serviceIdentifier:",jrt="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",rse=(e,n)=>`onDeactivation() error in class ${e}: ${n}`;let zKn=class{getConstructorMetadata(n){return{compilerGeneratedMetadata:Reflect.getMetadata(Lrt,n)??[],userGeneratedMetadata:Reflect.getMetadata(Drt,n)??{}}}getPropertiesMetadata(n){return Reflect.getMetadata(krt,n)??{}}};var xT;function Urt(e){return e instanceof RangeError||e.message==="Maximum call stack size exceeded"}(function(e){e[e.MultipleBindingsAvailable=2]="MultipleBindingsAvailable",e[e.NoBindingsAvailable=0]="NoBindingsAvailable",e[e.OnlyOneBindingAvailable=1]="OnlyOneBindingAvailable"})(xT||(xT={}));function g0(e){return typeof e=="function"?e.name:typeof e=="symbol"?e.toString():e}function Vke(e,n,r){let i="";const o=r(e,n);return o.length!==0&&(i=`
Registered bindings:`,o.forEach(a=>{let s="Object";a.implementationType!==null&&(s=Vrt(a.implementationType)),i=`${i}
${s}`,a.constraint.metaData&&(i=`${i} - ${a.constraint.metaData}`)})),i}function Hrt(e,n){return e.parentRequest!==null&&(e.parentRequest.serviceIdentifier===n||Hrt(e.parentRequest,n))}function zrt(e){e.childRequests.forEach(n=>{if(Hrt(e,n.serviceIdentifier)){const r=function(i){return function a(s,l=[]){const c=g0(s.serviceIdentifier);return l.push(c),s.parentRequest!==null?a(s.parentRequest,l):l}(i).reverse().join(" --> ")}(n);throw new Error(`Circular dependency found: ${r}`)}zrt(n)})}function Vrt(e){if(e.name!=null&&e.name!=="")return e.name;{const n=e.toString(),r=n.match(/^function\s*([^\s(]+)/);return r===null?`Anonymous function: ${n}`:r[1]}}function Gke(e){return`{"key":"${e.key.toString()}","value":"${e.value.toString()}"}`}let Grt=class{constructor(n){$t(this,"id");$t(this,"container");$t(this,"plan");$t(this,"currentRequest");this.id=QL(),this.container=n}addPlan(n){this.plan=n}setCurrentRequest(n){this.currentRequest=n}},m0=class{constructor(n,r){$t(this,"key");$t(this,"value");this.key=n,this.value=r}toString(){return this.key===ep?`named: ${String(this.value).toString()} `:`tagged: { key:${this.key.toString()}, value: ${String(this.value)} }`}},VKn=class{constructor(n,r){$t(this,"parentContext");$t(this,"rootRequest");this.parentContext=n,this.rootRequest=r}};function Wrt(e,n){const r=function(l){const c=Object.getPrototypeOf(l.prototype);return c==null?void 0:c.constructor}(n);if(r===void 0||r===Object)return 0;const i=Nrt(e)(r),o=i.map(l=>l.metadata.filter(c=>c.key===FKn)),a=[].concat.apply([],o).length,s=i.length-a;return s>0?s:Wrt(e,r)}let gme=class Yrt{constructor(n,r,i,o,a){$t(this,"id");$t(this,"serviceIdentifier");$t(this,"parentContext");$t(this,"parentRequest");$t(this,"bindings");$t(this,"childRequests");$t(this,"target");$t(this,"requestScope");this.id=QL(),this.serviceIdentifier=n,this.parentContext=r,this.parentRequest=i,this.target=a,this.childRequests=[],this.bindings=Array.isArray(o)?o:[o],this.requestScope=i===null?new Map:null}addChildRequest(n,r,i){const o=new Yrt(n,this.parentContext,this,r,i);return this.childRequests.push(o),o}};function gj(e){return e._bindingDictionary}function Wke(e,n,r,i,o){let a=_2(r.container,o.serviceIdentifier),s=[];return a.length===xT.NoBindingsAvailable&&r.container.options.autoBindInjectable===!0&&typeof o.serviceIdentifier=="function"&&e.getConstructorMetadata(o.serviceIdentifier).compilerGeneratedMetadata&&(r.container.bind(o.serviceIdentifier).toSelf(),a=_2(r.container,o.serviceIdentifier)),s=n?a:a.filter(l=>{const c=new gme(l.serviceIdentifier,r,i,l,o);return l.constraint(c)}),function(l,c,u,d,f){switch(c.length){case xT.NoBindingsAvailable:if(d.isOptional())return c;{const p=g0(l);let h=HKn;throw h+=function(g,v){if(v.isTagged()||v.isNamed()){let y="";const _=v.getNamedTag(),S=v.getCustomTags();return _!==null&&(y+=Gke(_)+`
`),S!==null&&S.forEach(b=>{y+=Gke(b)+`
`}),` ${g}
${g} - ${y}`}return` ${g}`}(p,d),h+=Vke(f,p,_2),u!==null&&(h+=`
Trying to resolve bindings for "${g0(u.serviceIdentifier)}"`),new Error(h)}case xT.OnlyOneBindingAvailable:return c;case xT.MultipleBindingsAvailable:default:if(d.isArray())return c;{const p=g0(l);let h=`${UKn} ${p}`;throw h+=Vke(f,p,_2),new Error(h)}}}(o.serviceIdentifier,s,i,o,r.container),s}function qrt(e,n){const r=n.isMultiInject?Art:Prt,i=[new m0(r,e)];return n.customTag!==void 0&&i.push(new m0(n.customTag.key,n.customTag.value)),n.isOptional===!0&&i.push(new m0(Mrt,!0)),i}function Krt(e,n,r,i,o,a){let s,l;if(o===null){s=Wke(e,n,i,null,a),l=new gme(r,i,null,s,a);const c=new VKn(i,l);i.addPlan(c)}else s=Wke(e,n,i,o,a),l=o.addChildRequest(a.serviceIdentifier,s,a);s.forEach(c=>{let u=null;if(a.isArray())u=l.addChildRequest(c.serviceIdentifier,c,a);else{if(c.cache!==null)return;u=l}if(c.type===la.Instance&&c.implementationType!==null){const d=function(f,p){return Nrt(f)(p)}(e,c.implementationType);if(i.container.options.skipBaseClassChecks!==!0){const f=Wrt(e,c.implementationType);if(d.length<f){const p=`The number of constructor arguments in the derived class ${Vrt(c.implementationType)} must be >= than the number of constructor arguments of its base class.`;throw new Error(p)}}d.forEach(f=>{Krt(e,!1,f.serviceIdentifier,i,u,f)})}})}function _2(e,n){let r=[];const i=gj(e);return i.hasKey(n)?r=i.get(n):e.parent!==null&&(r=_2(e.parent,n)),r}function GKn(e,n,r,i,o,a=!1){const s=new Grt(n),l=function(c,u,d){const f=qrt(u,d),p=SV(f);if(p.kind===gd.unmanaged)throw new Error("Unexpected metadata when creating target");return new pj("",p,c)}(r,i,o);try{return Krt(e,a,i,s,null,l),s}catch(c){throw Urt(c)&&zrt(s.plan.rootRequest),c}}function id(e){return(typeof e=="object"&&e!==null||typeof e=="function")&&typeof e.then=="function"}function Xrt(e){return!!id(e)||Array.isArray(e)&&e.some(id)}const WKn=(e,n,r)=>{e.has(n.id)||e.set(n.id,r)},YKn=(e,n)=>{e.cache=n,e.activated=!0,id(n)&&qKn(e,n)},qKn=async(e,n)=>{try{const r=await n;e.cache=r}catch(r){throw e.cache=null,e.activated=!1,r}};var _P;(function(e){e.DynamicValue="toDynamicValue",e.Factory="toFactory",e.Provider="toProvider"})(_P||(_P={}));function KKn(e,n,r){let i;if(n.length>0){const o=function(s,l){return s.reduce((c,u)=>{const d=l(u);return u.target.type===$rt.ConstructorArgument?c.constructorInjections.push(d):(c.propertyRequests.push(u),c.propertyInjections.push(d)),c.isAsync||(c.isAsync=Xrt(d)),c},{constructorInjections:[],isAsync:!1,propertyInjections:[],propertyRequests:[]})}(n,r),a={...o,constr:e};i=o.isAsync?async function(s){const l=await qke(s.constructorInjections),c=await qke(s.propertyInjections);return Yke({...s,constructorInjections:l,propertyInjections:c})}(a):Yke(a)}else i=new e;return i}function Yke(e){const n=new e.constr(...e.constructorInjections);return e.propertyRequests.forEach((r,i)=>{const o=r.target.identifier,a=e.propertyInjections[i];r.target.isOptional()&&a===void 0||(n[o]=a)}),n}async function qke(e){const n=[];for(const r of e)Array.isArray(r)?n.push(Promise.all(r)):n.push(r);return Promise.all(n)}function Kke(e,n){const r=function(i,o){var l;if(Reflect.hasMetadata(nse,i)){const c=Reflect.getMetadata(nse,i);try{return(l=o[c.value])==null?void 0:l.call(o)}catch(u){if(u instanceof Error)throw new Error((a=i.name,s=u.message,`@postConstruct error in class ${a}: ${s}`))}}var a,s}(e,n);return id(r)?r.then(()=>n):n}function XKn(e,n){e.scope!==js.Singleton&&function(r,i){const o=`Class cannot be instantiated in ${r.scope===js.Request?"request":"transient"} scope.`;if(typeof r.onDeactivation=="function")throw new Error(rse(i.name,o));if(Reflect.hasMetadata(hj,i))throw new Error(`@preDestroy error in class ${i.name}: ${o}`)}(e,n)}const mme=e=>n=>{n.parentContext.setCurrentRequest(n);const r=n.bindings,i=n.childRequests,o=n.target&&n.target.isArray(),a=!(n.parentRequest&&n.parentRequest.target&&n.target&&n.parentRequest.target.matchesArray(n.target.serviceIdentifier));if(o&&a)return i.map(s=>mme(e)(s));{if(n.target.isOptional()&&r.length===0)return;const s=r[0];return eXn(e,n,s)}},QKn=(e,n)=>{const r=(i=>{switch(i.type){case la.Factory:return{factory:i.factory,factoryType:_P.Factory};case la.Provider:return{factory:i.provider,factoryType:_P.Provider};case la.DynamicValue:return{factory:i.dynamicValue,factoryType:_P.DynamicValue};default:throw new Error(`Unexpected factory type ${i.type}`)}})(e);return((i,o)=>{try{return i()}catch(a){throw Urt(a)?o():a}})(()=>r.factory.bind(e)(n),()=>{return new Error((i=r.factoryType,o=n.currentRequest.serviceIdentifier.toString(),`It looks like there is a circular dependency in one of the '${i}' bindings. Please investigate bindings with service identifier '${o}'.`));var i,o})},ZKn=(e,n,r)=>{let i;const o=n.childRequests;switch((a=>{let s=null;switch(a.type){case la.ConstantValue:case la.Function:s=a.cache;break;case la.Constructor:case la.Instance:s=a.implementationType;break;case la.DynamicValue:s=a.dynamicValue;break;case la.Provider:s=a.provider;break;case la.Factory:s=a.factory}if(s===null){const l=g0(a.serviceIdentifier);throw new Error(`Invalid binding type: ${l}`)}})(r),r.type){case la.ConstantValue:case la.Function:i=r.cache;break;case la.Constructor:i=r.implementationType;break;case la.Instance:i=function(a,s,l,c){XKn(a,s);const u=KKn(s,l,c);return id(u)?u.then(d=>Kke(s,d)):Kke(s,u)}(r,r.implementationType,o,mme(e));break;default:i=QKn(r,n.parentContext)}return i},JKn=(e,n,r)=>{let i=((o,a)=>a.scope===js.Singleton&&a.activated?a.cache:a.scope===js.Request&&o.has(a.id)?o.get(a.id):null)(e,n);return i!==null||(i=r(),((o,a,s)=>{a.scope===js.Singleton&&YKn(a,s),a.scope===js.Request&&WKn(o,a,s)})(e,n,i)),i},eXn=(e,n,r)=>JKn(e,r,()=>{let i=ZKn(e,n,r);return i=id(i)?i.then(o=>Xke(n,r,o)):Xke(n,r,i),i});function Xke(e,n,r){let i=tXn(e.parentContext,n,r);const o=iXn(e.parentContext.container);let a,s=o.next();do{a=s.value;const l=e.parentContext,c=e.serviceIdentifier,u=rXn(a,c);i=id(i)?Qrt(u,l,i):nXn(u,l,i),s=o.next()}while(s.done!==!0&&!gj(a).hasKey(e.serviceIdentifier));return i}const tXn=(e,n,r)=>{let i;return i=typeof n.onActivation=="function"?n.onActivation(e,r):r,i},nXn=(e,n,r)=>{let i=e.next();for(;i.done!==!0;){if(id(r=i.value(n,r)))return Qrt(e,n,r);i=e.next()}return r},Qrt=async(e,n,r)=>{let i=await r,o=e.next();for(;o.done!==!0;)i=await o.value(n,i),o=e.next();return i},rXn=(e,n)=>{const r=e._activations;return r.hasKey(n)?r.get(n).values():[].values()},iXn=e=>{const n=[e];let r=e.parent;for(;r!==null;)n.push(r),r=r.parent;return{next:()=>{const i=n.pop();return i!==void 0?{done:!1,value:i}:{done:!0,value:void 0}}}},Lv=(e,n)=>{const r=e.parentRequest;return r!==null&&(!!n(r)||Lv(r,n))},b2=e=>n=>{const r=i=>i!==null&&i.target!==null&&i.target.matchesTag(e)(n);return r.metaData=new m0(e,n),r},s5=b2(ep),NJ=e=>n=>{let r=null;if(n!==null){if(r=n.bindings[0],typeof e=="string")return r.serviceIdentifier===e;{const i=n.bindings[0].implementationType;return e===i}}return!1};class mj{constructor(n){$t(this,"_binding");this._binding=n}when(n){return this._binding.constraint=n,new sc(this._binding)}whenTargetNamed(n){return this._binding.constraint=s5(n),new sc(this._binding)}whenTargetIsDefault(){return this._binding.constraint=n=>n===null?!1:n.target!==null&&!n.target.isNamed()&&!n.target.isTagged(),new sc(this._binding)}whenTargetTagged(n,r){return this._binding.constraint=b2(n)(r),new sc(this._binding)}whenInjectedInto(n){return this._binding.constraint=r=>r!==null&&NJ(n)(r.parentRequest),new sc(this._binding)}whenParentNamed(n){return this._binding.constraint=r=>r!==null&&s5(n)(r.parentRequest),new sc(this._binding)}whenParentTagged(n,r){return this._binding.constraint=i=>i!==null&&b2(n)(r)(i.parentRequest),new sc(this._binding)}whenAnyAncestorIs(n){return this._binding.constraint=r=>r!==null&&Lv(r,NJ(n)),new sc(this._binding)}whenNoAncestorIs(n){return this._binding.constraint=r=>r!==null&&!Lv(r,NJ(n)),new sc(this._binding)}whenAnyAncestorNamed(n){return this._binding.constraint=r=>r!==null&&Lv(r,s5(n)),new sc(this._binding)}whenNoAncestorNamed(n){return this._binding.constraint=r=>r!==null&&!Lv(r,s5(n)),new sc(this._binding)}whenAnyAncestorTagged(n,r){return this._binding.constraint=i=>i!==null&&Lv(i,b2(n)(r)),new sc(this._binding)}whenNoAncestorTagged(n,r){return this._binding.constraint=i=>i!==null&&!Lv(i,b2(n)(r)),new sc(this._binding)}whenAnyAncestorMatches(n){return this._binding.constraint=r=>r!==null&&Lv(r,n),new sc(this._binding)}whenNoAncestorMatches(n){return this._binding.constraint=r=>r!==null&&!Lv(r,n),new sc(this._binding)}}class sc{constructor(n){$t(this,"_binding");this._binding=n}onActivation(n){return this._binding.onActivation=n,new mj(this._binding)}onDeactivation(n){return this._binding.onDeactivation=n,new mj(this._binding)}}class Vv{constructor(n){$t(this,"_bindingWhenSyntax");$t(this,"_bindingOnSyntax");$t(this,"_binding");this._binding=n,this._bindingWhenSyntax=new mj(this._binding),this._bindingOnSyntax=new sc(this._binding)}when(n){return this._bindingWhenSyntax.when(n)}whenTargetNamed(n){return this._bindingWhenSyntax.whenTargetNamed(n)}whenTargetIsDefault(){return this._bindingWhenSyntax.whenTargetIsDefault()}whenTargetTagged(n,r){return this._bindingWhenSyntax.whenTargetTagged(n,r)}whenInjectedInto(n){return this._bindingWhenSyntax.whenInjectedInto(n)}whenParentNamed(n){return this._bindingWhenSyntax.whenParentNamed(n)}whenParentTagged(n,r){return this._bindingWhenSyntax.whenParentTagged(n,r)}whenAnyAncestorIs(n){return this._bindingWhenSyntax.whenAnyAncestorIs(n)}whenNoAncestorIs(n){return this._bindingWhenSyntax.whenNoAncestorIs(n)}whenAnyAncestorNamed(n){return this._bindingWhenSyntax.whenAnyAncestorNamed(n)}whenAnyAncestorTagged(n,r){return this._bindingWhenSyntax.whenAnyAncestorTagged(n,r)}whenNoAncestorNamed(n){return this._bindingWhenSyntax.whenNoAncestorNamed(n)}whenNoAncestorTagged(n,r){return this._bindingWhenSyntax.whenNoAncestorTagged(n,r)}whenAnyAncestorMatches(n){return this._bindingWhenSyntax.whenAnyAncestorMatches(n)}whenNoAncestorMatches(n){return this._bindingWhenSyntax.whenNoAncestorMatches(n)}onActivation(n){return this._bindingOnSyntax.onActivation(n)}onDeactivation(n){return this._bindingOnSyntax.onDeactivation(n)}}class oXn{constructor(n){$t(this,"_binding");this._binding=n}inRequestScope(){return this._binding.scope=js.Request,new Vv(this._binding)}inSingletonScope(){return this._binding.scope=js.Singleton,new Vv(this._binding)}inTransientScope(){return this._binding.scope=js.Transient,new Vv(this._binding)}}class Qke{constructor(n){$t(this,"_bindingInSyntax");$t(this,"_bindingWhenSyntax");$t(this,"_bindingOnSyntax");$t(this,"_binding");this._binding=n,this._bindingWhenSyntax=new mj(this._binding),this._bindingOnSyntax=new sc(this._binding),this._bindingInSyntax=new oXn(n)}inRequestScope(){return this._bindingInSyntax.inRequestScope()}inSingletonScope(){return this._bindingInSyntax.inSingletonScope()}inTransientScope(){return this._bindingInSyntax.inTransientScope()}when(n){return this._bindingWhenSyntax.when(n)}whenTargetNamed(n){return this._bindingWhenSyntax.whenTargetNamed(n)}whenTargetIsDefault(){return this._bindingWhenSyntax.whenTargetIsDefault()}whenTargetTagged(n,r){return this._bindingWhenSyntax.whenTargetTagged(n,r)}whenInjectedInto(n){return this._bindingWhenSyntax.whenInjectedInto(n)}whenParentNamed(n){return this._bindingWhenSyntax.whenParentNamed(n)}whenParentTagged(n,r){return this._bindingWhenSyntax.whenParentTagged(n,r)}whenAnyAncestorIs(n){return this._bindingWhenSyntax.whenAnyAncestorIs(n)}whenNoAncestorIs(n){return this._bindingWhenSyntax.whenNoAncestorIs(n)}whenAnyAncestorNamed(n){return this._bindingWhenSyntax.whenAnyAncestorNamed(n)}whenAnyAncestorTagged(n,r){return this._bindingWhenSyntax.whenAnyAncestorTagged(n,r)}whenNoAncestorNamed(n){return this._bindingWhenSyntax.whenNoAncestorNamed(n)}whenNoAncestorTagged(n,r){return this._bindingWhenSyntax.whenNoAncestorTagged(n,r)}whenAnyAncestorMatches(n){return this._bindingWhenSyntax.whenAnyAncestorMatches(n)}whenNoAncestorMatches(n){return this._bindingWhenSyntax.whenNoAncestorMatches(n)}onActivation(n){return this._bindingOnSyntax.onActivation(n)}onDeactivation(n){return this._bindingOnSyntax.onDeactivation(n)}}class aXn{constructor(n){$t(this,"_binding");this._binding=n}to(n){return this._binding.type=la.Instance,this._binding.implementationType=n,new Qke(this._binding)}toSelf(){if(typeof this._binding.serviceIdentifier!="function")throw new Error("The toSelf function can only be applied when a constructor is used as service identifier");const n=this._binding.serviceIdentifier;return this.to(n)}toConstantValue(n){return this._binding.type=la.ConstantValue,this._binding.cache=n,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=js.Singleton,new Vv(this._binding)}toDynamicValue(n){return this._binding.type=la.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=n,this._binding.implementationType=null,new Qke(this._binding)}toConstructor(n){return this._binding.type=la.Constructor,this._binding.implementationType=n,this._binding.scope=js.Singleton,new Vv(this._binding)}toFactory(n){return this._binding.type=la.Factory,this._binding.factory=n,this._binding.scope=js.Singleton,new Vv(this._binding)}toFunction(n){if(typeof n!="function")throw new Error("Value provided to function binding must be a function!");const r=this.toConstantValue(n);return this._binding.type=la.Function,this._binding.scope=js.Singleton,r}toAutoFactory(n){return this._binding.type=la.Factory,this._binding.factory=r=>()=>r.container.get(n),this._binding.scope=js.Singleton,new Vv(this._binding)}toAutoNamedFactory(n){return this._binding.type=la.Factory,this._binding.factory=r=>i=>r.container.getNamed(n,i),new Vv(this._binding)}toProvider(n){return this._binding.type=la.Provider,this._binding.provider=n,this._binding.scope=js.Singleton,new Vv(this._binding)}toService(n){this._binding.type=la.DynamicValue,Object.defineProperty(this._binding,"cache",{configurable:!0,enumerable:!0,get:()=>null,set(r){}}),this._binding.dynamicValue=r=>{try{return r.container.get(n)}catch{return r.container.getAsync(n)}},this._binding.implementationType=null}}class vme{constructor(){$t(this,"bindings");$t(this,"activations");$t(this,"deactivations");$t(this,"middleware");$t(this,"moduleActivationStore")}static of(n,r,i,o,a){const s=new vme;return s.bindings=n,s.middleware=r,s.deactivations=o,s.activations=i,s.moduleActivationStore=a,s}}class qv{constructor(){$t(this,"_map");this._map=new Map}getMap(){return this._map}add(n,r){if(this._checkNonNulish(n),r==null)throw new Error(Hke);const i=this._map.get(n);i!==void 0?i.push(r):this._map.set(n,[r])}get(n){this._checkNonNulish(n);const r=this._map.get(n);if(r!==void 0)return r;throw new Error(zke)}remove(n){if(this._checkNonNulish(n),!this._map.delete(n))throw new Error(zke)}removeIntersection(n){this.traverse((r,i)=>{const o=n.hasKey(r)?n.get(r):void 0;if(o!==void 0){const a=i.filter(s=>!o.some(l=>s===l));this._setValue(r,a)}})}removeByCondition(n){const r=[];return this._map.forEach((i,o)=>{const a=[];for(const s of i)n(s)?r.push(s):a.push(s);this._setValue(o,a)}),r}hasKey(n){return this._checkNonNulish(n),this._map.has(n)}clone(){const n=new qv;return this._map.forEach((r,i)=>{r.forEach(o=>{var a;n.add(i,typeof(a=o)=="object"&&a!==null&&"clone"in a&&typeof a.clone=="function"?o.clone():o)})}),n}traverse(n){this._map.forEach((r,i)=>{n(i,r)})}_checkNonNulish(n){if(n==null)throw new Error(Hke)}_setValue(n,r){r.length>0?this._map.set(n,r):this._map.delete(n)}}class yme{constructor(){$t(this,"_map",new Map)}remove(n){const r=this._map.get(n);return r===void 0?this._getEmptyHandlersStore():(this._map.delete(n),r)}addDeactivation(n,r,i){this._getModuleActivationHandlers(n).onDeactivations.add(r,i)}addActivation(n,r,i){this._getModuleActivationHandlers(n).onActivations.add(r,i)}clone(){const n=new yme;return this._map.forEach((r,i)=>{n._map.set(i,{onActivations:r.onActivations.clone(),onDeactivations:r.onDeactivations.clone()})}),n}_getModuleActivationHandlers(n){let r=this._map.get(n);return r===void 0&&(r=this._getEmptyHandlersStore(),this._map.set(n,r)),r}_getEmptyHandlersStore(){return{onActivations:new qv,onDeactivations:new qv}}}class vj{constructor(n){$t(this,"id");$t(this,"parent");$t(this,"options");$t(this,"_middleware");$t(this,"_bindingDictionary");$t(this,"_activations");$t(this,"_deactivations");$t(this,"_snapshots");$t(this,"_metadataReader");$t(this,"_moduleActivationStore");const r=n||{};if(typeof r!="object")throw new Error("Invalid Container constructor argument. Container options must be an object.");if(r.defaultScope===void 0)r.defaultScope=js.Transient;else if(r.defaultScope!==js.Singleton&&r.defaultScope!==js.Transient&&r.defaultScope!==js.Request)throw new Error('Invalid Container option. Default scope must be a string ("singleton" or "transient").');if(r.autoBindInjectable===void 0)r.autoBindInjectable=!1;else if(typeof r.autoBindInjectable!="boolean")throw new Error("Invalid Container option. Auto bind injectable must be a boolean");if(r.skipBaseClassChecks===void 0)r.skipBaseClassChecks=!1;else if(typeof r.skipBaseClassChecks!="boolean")throw new Error("Invalid Container option. Skip base check must be a boolean");this.options={autoBindInjectable:r.autoBindInjectable,defaultScope:r.defaultScope,skipBaseClassChecks:r.skipBaseClassChecks},this.id=QL(),this._bindingDictionary=new qv,this._snapshots=[],this._middleware=null,this._activations=new qv,this._deactivations=new qv,this.parent=null,this._metadataReader=new zKn,this._moduleActivationStore=new yme}static merge(n,r,...i){const o=new vj,a=[n,r,...i].map(l=>gj(l)),s=gj(o);return a.forEach(l=>{var c;c=s,l.traverse((u,d)=>{d.forEach(f=>{c.add(f.serviceIdentifier,f.clone())})})}),o}load(...n){const r=this._getContainerModuleHelpersFactory();for(const i of n){const o=r(i.id);i.registry(o.bindFunction,o.unbindFunction,o.isboundFunction,o.rebindFunction,o.unbindAsyncFunction,o.onActivationFunction,o.onDeactivationFunction)}}async loadAsync(...n){const r=this._getContainerModuleHelpersFactory();for(const i of n){const o=r(i.id);await i.registry(o.bindFunction,o.unbindFunction,o.isboundFunction,o.rebindFunction,o.unbindAsyncFunction,o.onActivationFunction,o.onDeactivationFunction)}}unload(...n){n.forEach(r=>{const i=this._removeModuleBindings(r.id);this._deactivateSingletons(i),this._removeModuleHandlers(r.id)})}async unloadAsync(...n){for(const r of n){const i=this._removeModuleBindings(r.id);await this._deactivateSingletonsAsync(i),this._removeModuleHandlers(r.id)}}bind(n){return this._bind(this._buildBinding(n))}rebind(n){return this.unbind(n),this.bind(n)}async rebindAsync(n){return await this.unbindAsync(n),this.bind(n)}unbind(n){if(this._bindingDictionary.hasKey(n)){const r=this._bindingDictionary.get(n);this._deactivateSingletons(r)}this._removeServiceFromDictionary(n)}async unbindAsync(n){if(this._bindingDictionary.hasKey(n)){const r=this._bindingDictionary.get(n);await this._deactivateSingletonsAsync(r)}this._removeServiceFromDictionary(n)}unbindAll(){this._bindingDictionary.traverse((n,r)=>{this._deactivateSingletons(r)}),this._bindingDictionary=new qv}async unbindAllAsync(){const n=[];this._bindingDictionary.traverse((r,i)=>{n.push(this._deactivateSingletonsAsync(i))}),await Promise.all(n),this._bindingDictionary=new qv}onActivation(n,r){this._activations.add(n,r)}onDeactivation(n,r){this._deactivations.add(n,r)}isBound(n){let r=this._bindingDictionary.hasKey(n);return!r&&this.parent&&(r=this.parent.isBound(n)),r}isCurrentBound(n){return this._bindingDictionary.hasKey(n)}isBoundNamed(n,r){return this.isBoundTagged(n,ep,r)}isBoundTagged(n,r,i){let o=!1;if(this._bindingDictionary.hasKey(n)){const a=this._bindingDictionary.get(n),s=function(l,c,u){const d=qrt(c,u),f=SV(d);if(f.kind===gd.unmanaged)throw new Error("Unexpected metadata when creating target");const p=new pj("",f,"Variable"),h=new Grt(l);return new gme(c,h,null,[],p)}(this,n,{customTag:{key:r,value:i},isMultiInject:!1});o=a.some(l=>l.constraint(s))}return!o&&this.parent&&(o=this.parent.isBoundTagged(n,r,i)),o}snapshot(){this._snapshots.push(vme.of(this._bindingDictionary.clone(),this._middleware,this._activations.clone(),this._deactivations.clone(),this._moduleActivationStore.clone()))}restore(){const n=this._snapshots.pop();if(n===void 0)throw new Error("No snapshot available to restore.");this._bindingDictionary=n.bindings,this._activations=n.activations,this._deactivations=n.deactivations,this._middleware=n.middleware,this._moduleActivationStore=n.moduleActivationStore}createChild(n){const r=new vj(n||this.options);return r.parent=this,r}applyMiddleware(...n){const r=this._middleware?this._middleware:this._planAndResolve();this._middleware=n.reduce((i,o)=>o(i),r)}applyCustomMetadataReader(n){this._metadataReader=n}get(n){const r=this._getNotAllArgs(n,!1,!1);return this._getButThrowIfAsync(r)}async getAsync(n){const r=this._getNotAllArgs(n,!1,!1);return this._get(r)}getTagged(n,r,i){const o=this._getNotAllArgs(n,!1,!1,r,i);return this._getButThrowIfAsync(o)}async getTaggedAsync(n,r,i){const o=this._getNotAllArgs(n,!1,!1,r,i);return this._get(o)}getNamed(n,r){return this.getTagged(n,ep,r)}async getNamedAsync(n,r){return this.getTaggedAsync(n,ep,r)}getAll(n,r){const i=this._getAllArgs(n,r,!1);return this._getButThrowIfAsync(i)}async getAllAsync(n,r){const i=this._getAllArgs(n,r,!1);return this._getAll(i)}getAllTagged(n,r,i){const o=this._getNotAllArgs(n,!0,!1,r,i);return this._getButThrowIfAsync(o)}async getAllTaggedAsync(n,r,i){const o=this._getNotAllArgs(n,!0,!1,r,i);return this._getAll(o)}getAllNamed(n,r){return this.getAllTagged(n,ep,r)}async getAllNamedAsync(n,r){return this.getAllTaggedAsync(n,ep,r)}resolve(n){const r=this.isBound(n);r||this.bind(n).toSelf();const i=this.get(n);return r||this.unbind(n),i}tryGet(n){const r=this._getNotAllArgs(n,!1,!0);return this._getButThrowIfAsync(r)}async tryGetAsync(n){const r=this._getNotAllArgs(n,!1,!0);return this._get(r)}tryGetTagged(n,r,i){const o=this._getNotAllArgs(n,!1,!0,r,i);return this._getButThrowIfAsync(o)}async tryGetTaggedAsync(n,r,i){const o=this._getNotAllArgs(n,!1,!0,r,i);return this._get(o)}tryGetNamed(n,r){return this.tryGetTagged(n,ep,r)}async tryGetNamedAsync(n,r){return this.tryGetTaggedAsync(n,ep,r)}tryGetAll(n,r){const i=this._getAllArgs(n,r,!0);return this._getButThrowIfAsync(i)}async tryGetAllAsync(n,r){const i=this._getAllArgs(n,r,!0);return this._getAll(i)}tryGetAllTagged(n,r,i){const o=this._getNotAllArgs(n,!0,!0,r,i);return this._getButThrowIfAsync(o)}async tryGetAllTaggedAsync(n,r,i){const o=this._getNotAllArgs(n,!0,!0,r,i);return this._getAll(o)}tryGetAllNamed(n,r){return this.tryGetAllTagged(n,ep,r)}async tryGetAllNamedAsync(n,r){return this.tryGetAllTaggedAsync(n,ep,r)}_preDestroy(n,r){var i;if(n!==void 0&&Reflect.hasMetadata(hj,n)){const o=Reflect.getMetadata(hj,n);return(i=r[o.value])==null?void 0:i.call(r)}}_removeModuleHandlers(n){const r=this._moduleActivationStore.remove(n);this._activations.removeIntersection(r.onActivations),this._deactivations.removeIntersection(r.onDeactivations)}_removeModuleBindings(n){return this._bindingDictionary.removeByCondition(r=>r.moduleId===n)}_deactivate(n,r){const i=r==null?void 0:Object.getPrototypeOf(r).constructor;try{if(this._deactivations.hasKey(n.serviceIdentifier)){const a=this._deactivateContainer(r,this._deactivations.get(n.serviceIdentifier).values());if(id(a))return this._handleDeactivationError(a.then(async()=>this._propagateContainerDeactivationThenBindingAndPreDestroyAsync(n,r,i)),n.serviceIdentifier)}const o=this._propagateContainerDeactivationThenBindingAndPreDestroy(n,r,i);if(id(o))return this._handleDeactivationError(o,n.serviceIdentifier)}catch(o){if(o instanceof Error)throw new Error(rse(g0(n.serviceIdentifier),o.message))}}async _handleDeactivationError(n,r){try{await n}catch(i){if(i instanceof Error)throw new Error(rse(g0(r),i.message))}}_deactivateContainer(n,r){let i=r.next();for(;typeof i.value=="function";){const o=i.value(n);if(id(o))return o.then(async()=>this._deactivateContainerAsync(n,r));i=r.next()}}async _deactivateContainerAsync(n,r){let i=r.next();for(;typeof i.value=="function";)await i.value(n),i=r.next()}_getContainerModuleHelpersFactory(){const n=c=>u=>{const d=this._buildBinding(u);return d.moduleId=c,this._bind(d)},r=()=>c=>{this.unbind(c)},i=()=>async c=>this.unbindAsync(c),o=()=>c=>this.isBound(c),a=c=>{const u=n(c);return d=>(this.unbind(d),u(d))},s=c=>(u,d)=>{this._moduleActivationStore.addActivation(c,u,d),this.onActivation(u,d)},l=c=>(u,d)=>{this._moduleActivationStore.addDeactivation(c,u,d),this.onDeactivation(u,d)};return c=>({bindFunction:n(c),isboundFunction:o(),onActivationFunction:s(c),onDeactivationFunction:l(c),rebindFunction:a(c),unbindAsyncFunction:i(),unbindFunction:r()})}_bind(n){return this._bindingDictionary.add(n.serviceIdentifier,n),new aXn(n)}_buildBinding(n){const r=this.options.defaultScope||js.Transient;return new jKn(n,r)}async _getAll(n){return Promise.all(this._get(n))}_get(n){const r={...n,contextInterceptor:i=>i,targetType:$rt.Variable};if(this._middleware){const i=this._middleware(r);if(i==null)throw new Error("Invalid return type in middleware. Middleware must return!");return i}return this._planAndResolve()(r)}_getButThrowIfAsync(n){const r=this._get(n);if(Xrt(r))throw new Error(`You are attempting to construct ${function(i){return typeof i=="function"?`[function/class ${i.name||"<anonymous>"}]`:typeof i=="symbol"?i.toString():`'${i}'`}(n.serviceIdentifier)} in a synchronous way but it has asynchronous dependencies.`);return r}_getAllArgs(n,r,i){return{avoidConstraints:!(r!=null&&r.enforceBindingConstraints),isMultiInject:!0,isOptional:i,serviceIdentifier:n}}_getNotAllArgs(n,r,i,o,a){return{avoidConstraints:!1,isMultiInject:r,isOptional:i,key:o,serviceIdentifier:n,value:a}}_getPlanMetadataFromNextArgs(n){const r={isMultiInject:n.isMultiInject};return n.key!==void 0&&(r.customTag={key:n.key,value:n.value}),n.isOptional===!0&&(r.isOptional=!0),r}_planAndResolve(){return n=>{let r=GKn(this._metadataReader,this,n.targetType,n.serviceIdentifier,this._getPlanMetadataFromNextArgs(n),n.avoidConstraints);return r=n.contextInterceptor(r),function(o){return mme(o.plan.rootRequest.requestScope)(o.plan.rootRequest)}(r)}}_deactivateIfSingleton(n){if(n.activated)return id(n.cache)?n.cache.then(r=>this._deactivate(n,r)):this._deactivate(n,n.cache)}_deactivateSingletons(n){for(const r of n)if(id(this._deactivateIfSingleton(r)))throw new Error("Attempting to unbind dependency with asynchronous destruction (@preDestroy or onDeactivation)")}async _deactivateSingletonsAsync(n){await Promise.all(n.map(async r=>this._deactivateIfSingleton(r)))}_propagateContainerDeactivationThenBindingAndPreDestroy(n,r,i){return this.parent?this._deactivate.bind(this.parent)(n,r):this._bindingDeactivationAndPreDestroy(n,r,i)}async _propagateContainerDeactivationThenBindingAndPreDestroyAsync(n,r,i){this.parent?await this._deactivate.bind(this.parent)(n,r):await this._bindingDeactivationAndPreDestroyAsync(n,r,i)}_removeServiceFromDictionary(n){try{this._bindingDictionary.remove(n)}catch{throw new Error(`Could not unbind serviceIdentifier: ${g0(n)}`)}}_bindingDeactivationAndPreDestroy(n,r,i){if(typeof n.onDeactivation=="function"){const o=n.onDeactivation(r);if(id(o))return o.then(()=>this._preDestroy(i,r))}return this._preDestroy(i,r)}async _bindingDeactivationAndPreDestroyAsync(n,r,i){typeof n.onDeactivation=="function"&&await n.onDeactivation(r),await this._preDestroy(i,r)}}class Jp{constructor(n){$t(this,"id");$t(this,"registry");this.id=QL(),this.registry=n}}function sXn(e,n,r,i){(function(o){if(o!==void 0)throw new Error(jrt)})(n),Zrt(Drt,e,r.toString(),i)}function lXn(e){let n=[];if(Array.isArray(e)){n=e;const r=function(i){const o=new Set;for(const a of i){if(o.has(a))return a;o.add(a)}}(n.map(i=>i.key));if(r!==void 0)throw new Error(`${Brt} ${r.toString()}`)}else n=[e];return n}function Zrt(e,n,r,i){const o=lXn(i);let a={};Reflect.hasOwnMetadata(e,n)&&(a=Reflect.getMetadata(e,n));let s=a[r];if(s===void 0)s=[];else for(const l of s)if(o.some(c=>c.key===l.key))throw new Error(`${Brt} ${l.key.toString()}`);s.push(...o),a[r]=s,Reflect.defineMetadata(e,a,n)}function _me(e){return(n,r,i)=>{typeof i=="number"?sXn(n,r,i,e):function(o,a,s){if(o.prototype!==void 0)throw new Error(jrt);Zrt(krt,o.constructor,a,s)}(n,r,e)}}function Pn(){return function(e){if(Reflect.hasOwnMetadata(Uke,e))throw new Error("Cannot apply @injectable decorator multiple times.");const n=Reflect.getMetadata(Lrt,e)||[];return Reflect.defineMetadata(Uke,n,e),e}}function Jrt(e){return _me(new m0(ep,e))}function eit(e){return n=>(r,i,o)=>{if(n===void 0){const a=typeof r=="function"?r.name:r.constructor.name;throw new Error(`@inject called with undefined this could mean that the class ${a} has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation.`)}_me(new m0(e,n))(r,i,o)}}const Ot=eit(Prt);function ss(){return _me(new m0(Mrt,!0))}const C_=eit(Art);function tit(e,n){return()=>(r,i)=>{const o=new m0(e,i);if(Reflect.hasOwnMetadata(e,r.constructor))throw new Error(n);Reflect.defineMetadata(e,o,r.constructor)}}const Zc=tit(nse,"Cannot apply @postConstruct decorator multiple times in the same class"),nit=tit(hj,"Cannot apply @preDestroy decorator multiple times in the same class");let cXn=e=>crypto.getRandomValues(new Uint8Array(e)),uXn=(e,n,r)=>{let i=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*i*n/e.length);return(a=n)=>{let s="";for(;;){let l=r(o),c=o;for(;c--;)if(s+=e[l[c]&i]||"",s.length===a)return s}}},rit=(e,n=21)=>uXn(e,n,cXn),yu=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((n,r)=>(r&=63,r<36?n+=r.toString(36):r<62?n+=(r-26).toString(36).toUpperCase():r>62?n+="-":n+="_",n),"");var bP={Linear:{None:function(e){return e}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.cos(e*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.cos(Math.PI*e))}},Exponential:{In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}},Back:{In:function(e){var n=1.70158;return e*e*((n+1)*e-n)},Out:function(e){var n=1.70158;return--e*e*((n+1)*e+n)+1},InOut:function(e){var n=2.5949095;return(e*=2)<1?.5*(e*e*((n+1)*e-n)):.5*((e-=2)*e*((n+1)*e+n)+2)}},Bounce:{In:function(e){return 1-bP.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?bP.Bounce.In(e*2)*.5:bP.Bounce.Out(e*2-1)*.5+.5}}},S2;typeof self>"u"&&typeof process<"u"&&process.hrtime?S2=function(){var e=process.hrtime();return e[0]*1e3+e[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?S2=self.performance.now.bind(self.performance):Date.now!==void 0?S2=Date.now:S2=function(){return new Date().getTime()};var GE=S2,iit=function(){function e(){this._tweens={},this._tweensAddedDuringUpdate={}}return e.prototype.getAll=function(){var n=this;return Object.keys(this._tweens).map(function(r){return n._tweens[r]})},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(n){this._tweens[n.getId()]=n,this._tweensAddedDuringUpdate[n.getId()]=n},e.prototype.remove=function(n){delete this._tweens[n.getId()],delete this._tweensAddedDuringUpdate[n.getId()]},e.prototype.update=function(n,r){n===void 0&&(n=GE()),r===void 0&&(r=!1);var i=Object.keys(this._tweens);if(i.length===0)return!1;for(;i.length>0;){this._tweensAddedDuringUpdate={};for(var o=0;o<i.length;o++){var a=this._tweens[i[o]],s=!r;a&&a.update(n,s)===!1&&!r&&delete this._tweens[i[o]]}i=Object.keys(this._tweensAddedDuringUpdate)}return!0},e}(),TT={Linear:function(e,n){var r=e.length-1,i=r*n,o=Math.floor(i),a=TT.Utils.Linear;return n<0?a(e[0],e[1],i):n>1?a(e[r],e[r-1],r-i):a(e[o],e[o+1>r?r:o+1],i-o)},Bezier:function(e,n){for(var r=0,i=e.length-1,o=Math.pow,a=TT.Utils.Bernstein,s=0;s<=i;s++)r+=o(1-n,i-s)*o(n,s)*e[s]*a(i,s);return r},CatmullRom:function(e,n){var r=e.length-1,i=r*n,o=Math.floor(i),a=TT.Utils.CatmullRom;return e[0]===e[r]?(n<0&&(o=Math.floor(i=r*(1+n))),a(e[(o-1+r)%r],e[o],e[(o+1)%r],e[(o+2)%r],i-o)):n<0?e[0]-(a(e[0],e[0],e[1],e[1],-i)-e[0]):n>1?e[r]-(a(e[r],e[r],e[r-1],e[r-1],i-r)-e[r]):a(e[o?o-1:0],e[o],e[r<o+1?r:o+1],e[r<o+2?r:o+2],i-o)},Utils:{Linear:function(e,n,r){return(n-e)*r+e},Bernstein:function(e,n){var r=TT.Utils.Factorial;return r(e)/r(n)/r(e-n)},Factorial:function(){var e=[1];return function(n){var r=1;if(e[n])return e[n];for(var i=n;i>1;i--)r*=i;return e[n]=r,r}}(),CatmullRom:function(e,n,r,i,o){var a=(r-e)*.5,s=(i-n)*.5,l=o*o,c=o*l;return(2*n-2*r+a+s)*c+(-3*n+3*r-2*a-s)*l+a*o+n}}},bme=function(){function e(){}return e.nextId=function(){return e._nextId++},e._nextId=0,e}(),oit=new iit,dXn=function(){function e(n,r){r===void 0&&(r=oit),this._object=n,this._group=r,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=bP.Linear.None,this._interpolationFunction=TT.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=bme.nextId(),this._isChainStopped=!1,this._goToEnd=!1}return e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.to=function(n,r){return this._valuesEnd=Object.create(n),r!==void 0&&(this._duration=r),this},e.prototype.duration=function(n){return this._duration=n,this},e.prototype.start=function(n){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var r in this._valuesStartRepeat)this._swapEndStartRepeatValues(r),this._valuesStart[r]=this._valuesStartRepeat[r]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=n!==void 0?typeof n=="string"?GE()+parseFloat(n):n:GE(),this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this},e.prototype._setupProperties=function(n,r,i,o){for(var a in i){var s=n[a],l=Array.isArray(s),c=l?"array":typeof s,u=!l&&Array.isArray(i[a]);if(!(c==="undefined"||c==="function")){if(u){var d=i[a];if(d.length===0)continue;d=d.map(this._handleRelativeValue.bind(this,s)),i[a]=[s].concat(d)}if((c==="object"||l)&&s&&!u){r[a]=l?[]:{};for(var f in s)r[a][f]=s[f];o[a]=l?[]:{},this._setupProperties(s,r[a],i[a],o[a])}else typeof r[a]>"u"&&(r[a]=s),l||(r[a]*=1),u?o[a]=i[a].slice().reverse():o[a]=r[a]||0}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(1/0),this},e.prototype.pause=function(n){return n===void 0&&(n=GE()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=n,this._group&&this._group.remove(this),this)},e.prototype.resume=function(n){return n===void 0&&(n=GE()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=n-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this)},e.prototype.stopChainedTweens=function(){for(var n=0,r=this._chainedTweens.length;n<r;n++)this._chainedTweens[n].stop();return this},e.prototype.group=function(n){return this._group=n,this},e.prototype.delay=function(n){return this._delayTime=n,this},e.prototype.repeat=function(n){return this._initialRepeat=n,this._repeat=n,this},e.prototype.repeatDelay=function(n){return this._repeatDelayTime=n,this},e.prototype.yoyo=function(n){return this._yoyo=n,this},e.prototype.easing=function(n){return this._easingFunction=n,this},e.prototype.interpolation=function(n){return this._interpolationFunction=n,this},e.prototype.chain=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return this._chainedTweens=n,this},e.prototype.onStart=function(n){return this._onStartCallback=n,this},e.prototype.onUpdate=function(n){return this._onUpdateCallback=n,this},e.prototype.onRepeat=function(n){return this._onRepeatCallback=n,this},e.prototype.onComplete=function(n){return this._onCompleteCallback=n,this},e.prototype.onStop=function(n){return this._onStopCallback=n,this},e.prototype.update=function(n,r){if(n===void 0&&(n=GE()),r===void 0&&(r=!0),this._isPaused)return!0;var i,o,a=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(n>a)return!1;r&&this.start(n)}if(this._goToEnd=!1,n<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),o=(n-this._startTime)/this._duration,o=this._duration===0||o>1?1:o;var s=this._easingFunction(o);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,s),this._onUpdateCallback&&this._onUpdateCallback(this._object,o),o===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(i in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[i]=="string"&&(this._valuesStartRepeat[i]=this._valuesStartRepeat[i]+parseFloat(this._valuesEnd[i])),this._yoyo&&this._swapEndStartRepeatValues(i),this._valuesStart[i]=this._valuesStartRepeat[i];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=n+this._repeatDelayTime:this._startTime=n+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var l=0,c=this._chainedTweens.length;l<c;l++)this._chainedTweens[l].start(this._startTime+this._duration);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(n,r,i,o){for(var a in i)if(r[a]!==void 0){var s=r[a]||0,l=i[a],c=Array.isArray(n[a]),u=Array.isArray(l),d=!c&&u;d?n[a]=this._interpolationFunction(l,o):typeof l=="object"&&l?this._updateProperties(n[a],s,l,o):(l=this._handleRelativeValue(s,l),typeof l=="number"&&(n[a]=s+(l-s)*o))}},e.prototype._handleRelativeValue=function(n,r){return typeof r!="string"?r:r.charAt(0)==="+"||r.charAt(0)==="-"?n+parseFloat(r):parseFloat(r)},e.prototype._swapEndStartRepeatValues=function(n){var r=this._valuesStartRepeat[n],i=this._valuesEnd[n];typeof i=="string"?this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(i):this._valuesStartRepeat[n]=this._valuesEnd[n],this._valuesEnd[n]=r},e}(),fXn="18.6.4",pXn=bme.nextId,jm=oit,hXn=jm.getAll.bind(jm),gXn=jm.removeAll.bind(jm),mXn=jm.add.bind(jm),vXn=jm.remove.bind(jm),yXn=jm.update.bind(jm),ise={Easing:bP,Group:iit,Interpolation:TT,now:GE,Sequence:bme,nextId:pXn,Tween:dXn,VERSION:fXn,getAll:hXn,removeAll:gXn,add:mXn,remove:vXn,update:yXn},TC={},EV={},ait={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(n){function r(T,R,O,M){O===void 0&&(O=0),M===void 0&&(M=-1);var P=T.length;if(P===0)return-1;O<0?O=Math.max(0,O+P):O=Math.min(O,P-1),M<0?M=Math.max(0,M+P):M=Math.min(M,P-1);var k;M<O?k=M+1+(P-O):k=M-O+1;for(var $=0;$<k;++$){var U=(O+$)%P;if(T[U]===R)return U}return-1}n.firstIndexOf=r;function i(T,R,O,M){O===void 0&&(O=-1),M===void 0&&(M=0);var P=T.length;if(P===0)return-1;O<0?O=Math.max(0,O+P):O=Math.min(O,P-1),M<0?M=Math.max(0,M+P):M=Math.min(M,P-1);var k;O<M?k=O+1+(P-M):k=O-M+1;for(var $=0;$<k;++$){var U=(O-$+P)%P;if(T[U]===R)return U}return-1}n.lastIndexOf=i;function o(T,R,O,M){O===void 0&&(O=0),M===void 0&&(M=-1);var P=T.length;if(P===0)return-1;O<0?O=Math.max(0,O+P):O=Math.min(O,P-1),M<0?M=Math.max(0,M+P):M=Math.min(M,P-1);var k;M<O?k=M+1+(P-O):k=M-O+1;for(var $=0;$<k;++$){var U=(O+$)%P;if(R(T[U],U))return U}return-1}n.findFirstIndex=o;function a(T,R,O,M){O===void 0&&(O=-1),M===void 0&&(M=0);var P=T.length;if(P===0)return-1;O<0?O=Math.max(0,O+P):O=Math.min(O,P-1),M<0?M=Math.max(0,M+P):M=Math.min(M,P-1);var k;O<M?k=O+1+(P-M):k=O-M+1;for(var $=0;$<k;++$){var U=(O-$+P)%P;if(R(T[U],U))return U}return-1}n.findLastIndex=a;function s(T,R,O,M){O===void 0&&(O=0),M===void 0&&(M=-1);var P=o(T,R,O,M);return P!==-1?T[P]:void 0}n.findFirstValue=s;function l(T,R,O,M){O===void 0&&(O=-1),M===void 0&&(M=0);var P=a(T,R,O,M);return P!==-1?T[P]:void 0}n.findLastValue=l;function c(T,R,O,M,P){M===void 0&&(M=0),P===void 0&&(P=-1);var k=T.length;if(k===0)return 0;M<0?M=Math.max(0,M+k):M=Math.min(M,k-1),P<0?P=Math.max(0,P+k):P=Math.min(P,k-1);for(var $=M,U=P-M+1;U>0;){var z=U>>1,D=$+z;O(T[D],R)<0?($=D+1,U-=z+1):U=z}return $}n.lowerBound=c;function u(T,R,O,M,P){M===void 0&&(M=0),P===void 0&&(P=-1);var k=T.length;if(k===0)return 0;M<0?M=Math.max(0,M+k):M=Math.min(M,k-1),P<0?P=Math.max(0,P+k):P=Math.min(P,k-1);for(var $=M,U=P-M+1;U>0;){var z=U>>1,D=$+z;O(T[D],R)>0?U=z:($=D+1,U-=z+1)}return $}n.upperBound=u;function d(T,R,O){if(T===R)return!0;if(T.length!==R.length)return!1;for(var M=0,P=T.length;M<P;++M)if(O?!O(T[M],R[M]):T[M]!==R[M])return!1;return!0}n.shallowEqual=d;function f(T,R){R===void 0&&(R={});var O=R.start,M=R.stop,P=R.step;if(P===void 0&&(P=1),P===0)throw new Error("Slice `step` cannot be zero.");var k=T.length;O===void 0?O=P<0?k-1:0:O<0?O=Math.max(O+k,P<0?-1:0):O>=k&&(O=P<0?k-1:k),M===void 0?M=P<0?-1:k:M<0?M=Math.max(M+k,P<0?-1:0):M>=k&&(M=P<0?k-1:k);var $;P<0&&M>=O||P>0&&O>=M?$=0:P<0?$=Math.floor((M-O+1)/P+1):$=Math.floor((M-O-1)/P+1);for(var U=[],z=0;z<$;++z)U[z]=T[O+z*P];return U}n.slice=f;function p(T,R,O){var M=T.length;if(!(M<=1)&&(R<0?R=Math.max(0,R+M):R=Math.min(R,M-1),O<0?O=Math.max(0,O+M):O=Math.min(O,M-1),R!==O)){for(var P=T[R],k=R<O?1:-1,$=R;$!==O;$+=k)T[$]=T[$+k];T[O]=P}}n.move=p;function h(T,R,O){R===void 0&&(R=0),O===void 0&&(O=-1);var M=T.length;if(!(M<=1))for(R<0?R=Math.max(0,R+M):R=Math.min(R,M-1),O<0?O=Math.max(0,O+M):O=Math.min(O,M-1);R<O;){var P=T[R],k=T[O];T[R++]=k,T[O--]=P}}n.reverse=h;function g(T,R,O,M){O===void 0&&(O=0),M===void 0&&(M=-1);var P=T.length;if(!(P<=1)&&(O<0?O=Math.max(0,O+P):O=Math.min(O,P-1),M<0?M=Math.max(0,M+P):M=Math.min(M,P-1),!(O>=M))){var k=M-O+1;if(R>0?R=R%k:R<0&&(R=(R%k+k)%k),R!==0){var $=O+R;h(T,O,$-1),h(T,$,M),h(T,O,M)}}}n.rotate=g;function v(T,R,O,M){O===void 0&&(O=0),M===void 0&&(M=-1);var P=T.length;if(P!==0){O<0?O=Math.max(0,O+P):O=Math.min(O,P-1),M<0?M=Math.max(0,M+P):M=Math.min(M,P-1);var k;M<O?k=M+1+(P-O):k=M-O+1;for(var $=0;$<k;++$)T[(O+$)%P]=R}}n.fill=v;function y(T,R,O){var M=T.length;R<0?R=Math.max(0,R+M):R=Math.min(R,M);for(var P=M;P>R;--P)T[P]=T[P-1];T[R]=O}n.insert=y;function _(T,R){var O=T.length;if(R<0&&(R+=O),!(R<0||R>=O)){for(var M=T[R],P=R+1;P<O;++P)T[P-1]=T[P];return T.length=O-1,M}}n.removeAt=_;function S(T,R,O,M){O===void 0&&(O=0),M===void 0&&(M=-1);var P=r(T,R,O,M);return P!==-1&&_(T,P),P}n.removeFirstOf=S;function b(T,R,O,M){O===void 0&&(O=-1),M===void 0&&(M=0);var P=i(T,R,O,M);return P!==-1&&_(T,P),P}n.removeLastOf=b;function E(T,R,O,M){O===void 0&&(O=0),M===void 0&&(M=-1);var P=T.length;if(P===0)return 0;O<0?O=Math.max(0,O+P):O=Math.min(O,P-1),M<0?M=Math.max(0,M+P):M=Math.min(M,P-1);for(var k=0,$=0;$<P;++$)O<=M&&$>=O&&$<=M&&T[$]===R||M<O&&($<=M||$>=O)&&T[$]===R?k++:k>0&&(T[$-k]=T[$]);return k>0&&(T.length=P-k),k}n.removeAllOf=E;function w(T,R,O,M){O===void 0&&(O=0),M===void 0&&(M=-1);var P,k=o(T,R,O,M);return k!==-1&&(P=_(T,k)),{index:k,value:P}}n.removeFirstWhere=w;function C(T,R,O,M){O===void 0&&(O=-1),M===void 0&&(M=0);var P,k=a(T,R,O,M);return k!==-1&&(P=_(T,k)),{index:k,value:P}}n.removeLastWhere=C;function x(T,R,O,M){O===void 0&&(O=0),M===void 0&&(M=-1);var P=T.length;if(P===0)return 0;O<0?O=Math.max(0,O+P):O=Math.min(O,P-1),M<0?M=Math.max(0,M+P):M=Math.min(M,P-1);for(var k=0,$=0;$<P;++$)O<=M&&$>=O&&$<=M&&R(T[$],$)||M<O&&($<=M||$>=O)&&R(T[$],$)?k++:k>0&&(T[$-k]=T[$]);return k>0&&(T.length=P-k),k}n.removeAllWhere=x}(e.ArrayExt||(e.ArrayExt={}))})(ait);var CV={},oa={};Object.defineProperty(oa,"__esModule",{value:!0});function rN(e){var n;return typeof e.iter=="function"?n=e.iter():n=new sit(e),n}oa.iter=rN;function _Xn(e){return new lit(e)}oa.iterKeys=_Xn;function bXn(e){return new cit(e)}oa.iterValues=bXn;function SXn(e){return new uit(e)}oa.iterItems=SXn;function EXn(e){return new dit(e)}oa.iterFn=EXn;function CXn(e,n){for(var r=0,i=rN(e),o;(o=i.next())!==void 0;)if(n(o,r++)===!1)return}oa.each=CXn;function wXn(e,n){for(var r=0,i=rN(e),o;(o=i.next())!==void 0;)if(!n(o,r++))return!1;return!0}oa.every=wXn;function xXn(e,n){for(var r=0,i=rN(e),o;(o=i.next())!==void 0;)if(n(o,r++))return!0;return!1}oa.some=xXn;function TXn(e){for(var n=0,r=[],i=rN(e),o;(o=i.next())!==void 0;)r[n++]=o;return r}oa.toArray=TXn;function OXn(e){for(var n=rN(e),r,i={};(r=n.next())!==void 0;)i[r[0]]=r[1];return i}oa.toObject=OXn;var sit=function(){function e(n){this._index=0,this._source=n}return e.prototype.iter=function(){return this},e.prototype.clone=function(){var n=new e(this._source);return n._index=this._index,n},e.prototype.next=function(){if(!(this._index>=this._source.length))return this._source[this._index++]},e}();oa.ArrayIterator=sit;var lit=function(){function e(n,r){r===void 0&&(r=Object.keys(n)),this._index=0,this._source=n,this._keys=r}return e.prototype.iter=function(){return this},e.prototype.clone=function(){var n=new e(this._source,this._keys);return n._index=this._index,n},e.prototype.next=function(){if(!(this._index>=this._keys.length)){var n=this._keys[this._index++];return n in this._source?n:this.next()}},e}();oa.KeyIterator=lit;var cit=function(){function e(n,r){r===void 0&&(r=Object.keys(n)),this._index=0,this._source=n,this._keys=r}return e.prototype.iter=function(){return this},e.prototype.clone=function(){var n=new e(this._source,this._keys);return n._index=this._index,n},e.prototype.next=function(){if(!(this._index>=this._keys.length)){var n=this._keys[this._index++];return n in this._source?this._source[n]:this.next()}},e}();oa.ValueIterator=cit;var uit=function(){function e(n,r){r===void 0&&(r=Object.keys(n)),this._index=0,this._source=n,this._keys=r}return e.prototype.iter=function(){return this},e.prototype.clone=function(){var n=new e(this._source,this._keys);return n._index=this._index,n},e.prototype.next=function(){if(!(this._index>=this._keys.length)){var n=this._keys[this._index++];return n in this._source?[n,this._source[n]]:this.next()}},e}();oa.ItemIterator=uit;var dit=function(){function e(n){this._fn=n}return e.prototype.iter=function(){return this},e.prototype.clone=function(){throw new Error("An `FnIterator` cannot be cloned.")},e.prototype.next=function(){return this._fn.call(void 0)},e}();oa.FnIterator=dit;Object.defineProperty(CV,"__esModule",{value:!0});var Zke=oa;function RXn(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new fit(Zke.iter(e.map(Zke.iter)))}CV.chain=RXn;var fit=function(){function e(n){this._cloned=!1,this._source=n,this._active=void 0}return e.prototype.iter=function(){return this},e.prototype.clone=function(){var n=new e(this._source.clone());return n._active=this._active&&this._active.clone(),n._cloned=!0,this._cloned=!0,n},e.prototype.next=function(){if(this._active===void 0){var n=this._source.next();if(n===void 0)return;this._active=this._cloned?n.clone():n}var r=this._active.next();return r!==void 0?r:(this._active=void 0,this.next())},e}();CV.ChainIterator=fit;var wV={};Object.defineProperty(wV,"__esModule",{value:!0});function IXn(){return new pit}wV.empty=IXn;var pit=function(){function e(){}return e.prototype.iter=function(){return this},e.prototype.clone=function(){return new e},e.prototype.next=function(){},e}();wV.EmptyIterator=pit;var xV={};Object.defineProperty(xV,"__esModule",{value:!0});var NXn=oa;function MXn(e,n){return n===void 0&&(n=0),new hit(NXn.iter(e),n)}xV.enumerate=MXn;var hit=function(){function e(n,r){this._source=n,this._index=r}return e.prototype.iter=function(){return this},e.prototype.clone=function(){return new e(this._source.clone(),this._index)},e.prototype.next=function(){var n=this._source.next();if(n!==void 0)return[this._index++,n]},e}();xV.EnumerateIterator=hit;var TV={};Object.defineProperty(TV,"__esModule",{value:!0});var PXn=oa;function AXn(e,n){return new git(PXn.iter(e),n)}TV.filter=AXn;var git=function(){function e(n,r){this._index=0,this._source=n,this._fn=r}return e.prototype.iter=function(){return this},e.prototype.clone=function(){var n=new e(this._source.clone(),this._fn);return n._index=this._index,n},e.prototype.next=function(){for(var n=this._fn,r=this._source,i;(i=r.next())!==void 0;)if(n(i,this._index++))return i},e}();TV.FilterIterator=git;var Mw={};Object.defineProperty(Mw,"__esModule",{value:!0});var ZL=oa;function DXn(e,n){for(var r=0,i=ZL.iter(e),o;(o=i.next())!==void 0;)if(n(o,r++))return o}Mw.find=DXn;function kXn(e,n){for(var r=0,i=ZL.iter(e),o;(o=i.next())!==void 0;)if(n(o,r++))return r-1;return-1}Mw.findIndex=kXn;function LXn(e,n){var r=ZL.iter(e),i=r.next();if(i!==void 0){for(var o=i;(i=r.next())!==void 0;)n(i,o)<0&&(o=i);return o}}Mw.min=LXn;function $Xn(e,n){var r=ZL.iter(e),i=r.next();if(i!==void 0){for(var o=i;(i=r.next())!==void 0;)n(i,o)>0&&(o=i);return o}}Mw.max=$Xn;function FXn(e,n){var r=ZL.iter(e),i=r.next();if(i!==void 0){for(var o=i,a=i;(i=r.next())!==void 0;)n(i,o)<0?o=i:n(i,a)>0&&(a=i);return[o,a]}}Mw.minmax=FXn;var OV={};Object.defineProperty(OV,"__esModule",{value:!0});var BXn=oa;function jXn(e,n){return new mit(BXn.iter(e),n)}OV.map=jXn;var mit=function(){function e(n,r){this._index=0,this._source=n,this._fn=r}return e.prototype.iter=function(){return this},e.prototype.clone=function(){var n=new e(this._source.clone(),this._fn);return n._index=this._index,n},e.prototype.next=function(){var n=this._source.next();if(n!==void 0)return this._fn.call(void 0,n,this._index++)},e}();OV.MapIterator=mit;var RV={};Object.defineProperty(RV,"__esModule",{value:!0});function UXn(e,n,r){return n===void 0?new J6(0,e,1):r===void 0?new J6(e,n,1):new J6(e,n,r)}RV.range=UXn;var J6=function(){function e(n,r,i){this._index=0,this._start=n,this._stop=r,this._step=i,this._length=ose.rangeLength(n,r,i)}return e.prototype.iter=function(){return this},e.prototype.clone=function(){var n=new e(this._start,this._stop,this._step);return n._index=this._index,n},e.prototype.next=function(){if(!(this._index>=this._length))return this._start+this._step*this._index++},e}();RV.RangeIterator=J6;var ose;(function(e){function n(r,i,o){return o===0?1/0:r>i&&o>0||r<i&&o<0?0:Math.ceil((i-r)/o)}e.rangeLength=n})(ose||(ose={}));var Sme={};Object.defineProperty(Sme,"__esModule",{value:!0});var HXn=oa;function zXn(e,n,r){var i=0,o=HXn.iter(e),a=o.next();if(a===void 0&&r===void 0)throw new TypeError("Reduce of empty iterable with no initial value.");if(a===void 0)return r;var s=o.next();if(s===void 0&&r===void 0)return a;if(s===void 0)return n(r,a,i++);var l;r===void 0?l=n(a,s,i++):l=n(n(r,a,i++),s,i++);for(var c;(c=o.next())!==void 0;)l=n(l,c,i++);return l}Sme.reduce=zXn;var JL={};Object.defineProperty(JL,"__esModule",{value:!0});function VXn(e,n){return new Eme(e,n)}JL.repeat=VXn;function GXn(e){return new Eme(e,1)}JL.once=GXn;var Eme=function(){function e(n,r){this._value=n,this._count=r}return e.prototype.iter=function(){return this},e.prototype.clone=function(){return new e(this._value,this._count)},e.prototype.next=function(){if(!(this._count<=0))return this._count--,this._value},e}();JL.RepeatIterator=Eme;var IV={};Object.defineProperty(IV,"__esModule",{value:!0});function WXn(e){var n;return typeof e.retro=="function"?n=e.retro():n=new vit(e),n}IV.retro=WXn;var vit=function(){function e(n){this._source=n,this._index=n.length-1}return e.prototype.iter=function(){return this},e.prototype.clone=function(){var n=new e(this._source);return n._index=this._index,n},e.prototype.next=function(){if(!(this._index<0||this._index>=this._source.length))return this._source[this._index--]},e}();IV.RetroArrayIterator=vit;var Cme={};Object.defineProperty(Cme,"__esModule",{value:!0});var YXn=oa;function qXn(e){var n=[],r=new Set,i=new Map;return YXn.each(e,o),i.forEach(function(s,l){a(l)}),n;function o(s){var l=s[0],c=s[1],u=i.get(c);u?u.push(l):i.set(c,[l])}function a(s){if(!r.has(s)){r.add(s);var l=i.get(s);l&&l.forEach(a),n.push(s)}}}Cme.topologicSort=qXn;var NV={};Object.defineProperty(NV,"__esModule",{value:!0});var KXn=oa;function XXn(e,n){return new yit(KXn.iter(e),n)}NV.stride=XXn;var yit=function(){function e(n,r){this._source=n,this._step=r}return e.prototype.iter=function(){return this},e.prototype.clone=function(){return new e(this._source.clone(),this._step)},e.prototype.next=function(){for(var n=this._source.next(),r=this._step-1;r>0;--r)this._source.next();return n},e}();NV.StrideIterator=yit;var _it={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(n){function r(l,c,u){u===void 0&&(u=0);for(var d=new Array(c.length),f=0,p=u,h=c.length;f<h;++f,++p){if(p=l.indexOf(c[f],p),p===-1)return null;d[f]=p}return d}n.findIndices=r;function i(l,c,u){u===void 0&&(u=0);var d=r(l,c,u);if(!d)return null;for(var f=0,p=0,h=d.length;p<h;++p){var g=d[p]-u;f+=g*g}return{score:f,indices:d}}n.matchSumOfSquares=i;function o(l,c,u){u===void 0&&(u=0);var d=r(l,c,u);if(!d)return null;for(var f=0,p=u-1,h=0,g=d.length;h<g;++h){var v=d[h];f+=v-p-1,p=v}return{score:f,indices:d}}n.matchSumOfDeltas=o;function a(l,c,u){for(var d=[],f=0,p=0,h=c.length;f<h;){for(var g=c[f],v=c[f];++f<h&&c[f]===v+1;)v++;p<g&&d.push(l.slice(p,g)),g<v+1&&d.push(u(l.slice(g,v+1))),p=v+1}return p<l.length&&d.push(l.slice(p)),d}n.highlight=a;function s(l,c){return l<c?-1:l>c?1:0}n.cmp=s}(e.StringExt||(e.StringExt={}))})(_it);var MV={};Object.defineProperty(MV,"__esModule",{value:!0});var QXn=oa;function ZXn(e,n){return new bit(QXn.iter(e),n)}MV.take=ZXn;var bit=function(){function e(n,r){this._source=n,this._count=r}return e.prototype.iter=function(){return this},e.prototype.clone=function(){return new e(this._source.clone(),this._count)},e.prototype.next=function(){if(!(this._count<=0)){var n=this._source.next();if(n!==void 0)return this._count--,n}},e}();MV.TakeIterator=bit;var PV={};Object.defineProperty(PV,"__esModule",{value:!0});var JXn=oa;function eQn(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new Sit(e.map(JXn.iter))}PV.zip=eQn;var Sit=function(){function e(n){this._source=n}return e.prototype.iter=function(){return this},e.prototype.clone=function(){return new e(this._source.map(function(n){return n.clone()}))},e.prototype.next=function(){for(var n=new Array(this._source.length),r=0,i=this._source.length;r<i;++r){var o=this._source[r].next();if(o===void 0)return;n[r]=o}return n},e}();PV.ZipIterator=Sit;(function(e){function n(r){for(var i in r)e.hasOwnProperty(i)||(e[i]=r[i])}Object.defineProperty(e,"__esModule",{value:!0}),n(ait),n(CV),n(wV),n(xV),n(TV),n(Mw),n(oa),n(OV),n(RV),n(Sme),n(JL),n(IV),n(Cme),n(NV),n(_it),n(MV),n(PV)})(EV);var Eit={},Cit={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var n=EV,r=function(){function o(a){this._root=new i.LeafNode,this.cmp=a}return Object.defineProperty(o.prototype,"isEmpty",{get:function(){return this._root.size===0},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"size",{get:function(){return this._root.size},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"first",{get:function(){var a=i.firstLeaf(this._root);return a.size>0?a.items[0]:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"last",{get:function(){var a=i.lastLeaf(this._root);return a.size>0?a.items[a.size-1]:void 0},enumerable:!0,configurable:!0}),o.prototype.iter=function(){return i.iterItems(this._root)},o.prototype.retro=function(){return i.retroItems(this._root)},o.prototype.slice=function(a,s){return i.sliceItems(this._root,a,s)},o.prototype.retroSlice=function(a,s){return i.retroSliceItems(this._root,a,s)},o.prototype.at=function(a){return i.itemAt(this._root,a)},o.prototype.has=function(a,s){return i.hasItem(this._root,a,s)},o.prototype.indexOf=function(a,s){return i.indexOf(this._root,a,s)},o.prototype.get=function(a,s){return i.getItem(this._root,a,s)},o.prototype.assign=function(a){this.clear(),this.update(a)},o.prototype.insert=function(a){var s=i.insertItem(this._root,a,this.cmp);return this._root=i.maybeSplitRoot(this._root),s},o.prototype.update=function(a){var s=this;n.each(a,function(l){s.insert(l)})},o.prototype.delete=function(a,s){var l=i.deleteItem(this._root,a,s);return this._root=i.maybeExtractRoot(this._root),l},o.prototype.remove=function(a){var s=i.removeItem(this._root,a);return this._root=i.maybeExtractRoot(this._root),s},o.prototype.clear=function(){i.clear(this._root),this._root=new i.LeafNode},o}();e.BPlusTree=r,function(o){function a(s,l){var c=new o(l);return c.assign(s),c}o.from=a}(r=e.BPlusTree||(e.BPlusTree={})),e.BPlusTree=r;var i;(function(o){var a=function(){function D(){this.items=[],this.sizes=[],this.children=[]}return Object.defineProperty(D.prototype,"type",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"size",{get:function(){return this.sizes[this.sizes.length-1]},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"width",{get:function(){return this.children.length},enumerable:!0,configurable:!0}),D}();o.BranchNode=a;var s=function(){function D(){this.next=null,this.prev=null,this.items=[]}return Object.defineProperty(D.prototype,"type",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"size",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(D.prototype,"width",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),D}();o.LeafNode=s;function l(D){for(;D.type===0;)D=D.children[0];return D}o.firstLeaf=l;function c(D){for(;D.type===0;)D=D.children[D.children.length-1];return D}o.lastLeaf=c;function u(D){var B=l(D);return new R(B,0,-1)}o.iterItems=u;function d(D){var B=c(D);return new O(B,B.size-1,-1)}o.retroItems=d;function f(D,B,Y){B===void 0?B=0:B<0?B=Math.max(0,B+D.size):B=Math.min(B,D.size),Y===void 0?Y=D.size:Y<0?Y=Math.max(0,Y+D.size):Y=Math.min(Y,D.size);var q=Math.max(0,Y-B);if(q===0)return n.empty();for(;D.type===0;){var K=M(D.sizes,B);K>0&&(B-=D.sizes[K-1]),D=D.children[K]}return new R(D,B,q)}o.sliceItems=f;function p(D,B,Y){B===void 0?B=D.size-1:B<0?B=Math.max(-1,B+D.size):B=Math.min(B,D.size-1),Y===void 0?Y=-1:Y<0?Y=Math.max(-1,Y+D.size):Y=Math.min(Y,D.size-1);var q=Math.max(0,B-Y);if(q===0)return n.empty();for(;D.type===0;){var K=M(D.sizes,B);K>0&&(B-=D.sizes[K-1]),D=D.children[K]}return new O(D,B,q)}o.retroSliceItems=p;function h(D,B){if(B<0&&(B+=D.size),!(B<0||B>=D.size)){for(;D.type===0;){var Y=M(D.sizes,B);Y>0&&(B-=D.sizes[Y-1]),D=D.children[Y]}return D.items[B]}}o.itemAt=h;function g(D,B,Y){for(;D.type===0;){var q=P(D.items,B,Y);D=D.children[q]}var K=k(D.items,B,Y);return K>=0}o.hasItem=g;function v(D,B,Y){for(var q=0;D.type===0;){var K=P(D.items,B,Y);K>0&&(q+=D.sizes[K-1]),D=D.children[K]}var H=k(D.items,B,Y);return H>=0?q+H:-q+H}o.indexOf=v;function y(D,B,Y){for(;D.type===0;){var q=P(D.items,B,Y);D=D.children[q]}var K=k(D.items,B,Y);return K>=0?D.items[K]:void 0}o.getItem=y;function _(D,B,Y){if(D.type===1){var q=k(D.items,B,Y),K;return q>=0?(K=D.items[q],D.items[q]=B):(K=void 0,n.ArrayExt.insert(D.items,-q-1,B)),K}var H=P(D.items,B,Y),G=D.children[H],Q=G.size,le=_(G,B,Y),Z=G.size;if(D.items[H]=G.items[0],Q===Z)return le;if(G.width>x){var j=U(G);n.ArrayExt.insert(D.children,H+1,j),n.ArrayExt.insert(D.items,H+1,j.items[0])}return $(D,H),le}o.insertItem=_;function S(D,B,Y){if(D.type===1){var q=k(D.items,B,Y);return q<0?void 0:n.ArrayExt.removeAt(D.items,q)}var K=P(D.items,B,Y),H=D.children[K],G=H.size,Q=S(H,B,Y),le=H.size;return G===le||(D.items[K]=H.items[0],H.width<T&&(K=z(D,K)),$(D,K)),Q}o.deleteItem=S;function b(D,B){if(B<0&&(B+=D.size),!(B<0||B>=D.size)){if(D.type===1)return n.ArrayExt.removeAt(D.items,B);var Y=M(D.sizes,B);Y>0&&(B-=D.sizes[Y]);var q=D.children[Y],K=b(q,B);return D.items[Y]=q.items[0],q.width<T&&(Y=z(D,Y)),$(D,Y),K}}o.removeItem=b;function E(D){D.type===0?(n.each(D.children,E),D.children.length=0,D.sizes.length=0,D.items.length=0):(D.items.length=0,D.next=null,D.prev=null)}o.clear=E;function w(D){if(D.width<=x)return D;var B=new a,Y=U(D);return B.sizes[0]=D.size,B.sizes[1]=D.size+Y.size,B.children[0]=D,B.children[1]=Y,B.items[0]=D.items[0],B.items[1]=Y.items[0],B}o.maybeSplitRoot=w;function C(D){if(D.type===1||D.children.length>1)return D;var B=D.children.pop();return E(D),B}o.maybeExtractRoot=C;var x=32,T=x>>1,R=function(){function D(B,Y,q){this._node=B,this._index=Y,this._count=q}return D.prototype.iter=function(){return this},D.prototype.clone=function(){return new D(this._node,this._index,this._count)},D.prototype.next=function(){if(!(this._node===null||this._count===0))return this._index>=this._node.size?(this._node=this._node.next,this._index=0,this.next()):(this._count>0&&this._count--,this._node.items[this._index++])},D}(),O=function(){function D(B,Y,q){this._node=B,this._index=Y,this._count=q}return D.prototype.iter=function(){return this},D.prototype.clone=function(){return new D(this._node,this._index,this._count)},D.prototype.next=function(){if(!(this._node===null||this._count===0))return this._index>=this._node.size&&(this._index=this._node.size-1),this._index<0?(this._node=this._node.prev,this._index=this._node?this._node.size-1:-1,this.next()):(this._count>0&&this._count--,this._node.items[this._index--])},D}();function M(D,B){for(var Y=D.length,q=0;q<Y;++q)if(D[q]>B)return q;return Y-1}function P(D,B,Y){for(var q=D.length,K=1;K<q;++K)if(Y(D[K],B)>0)return K-1;return q-1}function k(D,B,Y){for(var q=D.length,K=0;K<q;++K){var H=Y(D[K],B);if(H===0)return K;if(H>0)return-K-1}return-q-1}function $(D,B){for(var Y=D.sizes,q=D.children,K=B>0?Y[B-1]:0,H=q.length;B<H;++B)K=Y[B]=K+q[B].size;Y.length=q.length}function U(D){if(D.type===1){for(var B=new s,Y=D.items,q=B.items,K=T,H=Y.length;K<H;++K)q.push(Y[K]);return Y.length=T,D.next&&(D.next.prev=B),B.next=D.next,B.prev=D,D.next=B,B}for(var G=new a,Q=D.children,le=G.children,K=T,H=Q.length;K<H;++K)le.push(Q[K]);Q.length=T;for(var Z=D.items,j=G.items,K=T,H=Z.length;K<H;++K)j.push(Z[K]);return Z.length=T,$(D,T),$(G,0),G}function z(D,B){var Y,q,K,H,G,Q,le=D.children[B],Z=B===0?D.children[B+1]:D.children[B-1],j=B===0,F=le.type===1,te=Z.width>T;if(F&&te&&j){var oe=le,de=Z;return oe.items.push(de.items.shift()),D.items[B+1]=de.items[0],B}if(F&&te&&!j){var oe=le,de=Z;return oe.items.unshift(de.items.pop()),D.items[B]=oe.items[0],B-1}if(F&&!te&&j){var oe=le,de=Z;return(Y=de.items).unshift.apply(Y,oe.items),n.ArrayExt.removeAt(D.children,B),n.ArrayExt.removeAt(D.items,B+1),oe.prev&&(oe.prev.next=de),de.prev=oe.prev,E(oe),B}if(F&&!te&&!j){var oe=le,de=Z;return(q=de.items).push.apply(q,oe.items),n.ArrayExt.removeAt(D.children,B),n.ArrayExt.removeAt(D.items,B),oe.next&&(oe.next.prev=de),de.next=oe.next,E(oe),B-1}if(!F&&te&&j){var oe=le,de=Z;return oe.children.push(de.children.shift()),oe.items.push(de.items.shift()),D.items[B+1]=de.items[0],$(oe,oe.width-1),$(de,0),B}if(!F&&te&&!j){var oe=le,de=Z;return oe.children.unshift(de.children.pop()),oe.items.unshift(de.items.pop()),D.items[B]=oe.items[0],$(oe,0),$(de,de.width-1),B-1}if(!F&&!te&&j){var oe=le,de=Z;return(K=de.children).unshift.apply(K,oe.children),(H=de.items).unshift.apply(H,oe.items),n.ArrayExt.removeAt(D.children,B),n.ArrayExt.removeAt(D.items,B+1),$(de,0),oe.children.length=0,E(oe),B}if(!F&&!te&&!j){var oe=le,de=Z;return(G=de.children).push.apply(G,oe.children),(Q=de.items).push.apply(Q,oe.items),n.ArrayExt.removeAt(D.children,B),n.ArrayExt.removeAt(D.items,B),$(de,0),oe.children.length=0,E(oe),B-1}throw"unreachable"}})(i||(i={}))})(Cit);var wit={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var n=EV,r=function(){function o(){this._first=null,this._last=null,this._size=0}return Object.defineProperty(o.prototype,"isEmpty",{get:function(){return this._size===0},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"first",{get:function(){return this._first?this._first.value:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"last",{get:function(){return this._last?this._last.value:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"firstNode",{get:function(){return this._first},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"lastNode",{get:function(){return this._last},enumerable:!0,configurable:!0}),o.prototype.iter=function(){return new o.ForwardValueIterator(this._first)},o.prototype.retro=function(){return new o.RetroValueIterator(this._last)},o.prototype.nodes=function(){return new o.ForwardNodeIterator(this._first)},o.prototype.retroNodes=function(){return new o.RetroNodeIterator(this._last)},o.prototype.assign=function(a){var s=this;this.clear(),n.each(a,function(l){s.addLast(l)})},o.prototype.push=function(a){this.addLast(a)},o.prototype.pop=function(){return this.removeLast()},o.prototype.shift=function(a){this.addFirst(a)},o.prototype.unshift=function(){return this.removeFirst()},o.prototype.addFirst=function(a){var s=new i.LinkedListNode(this,a);return this._first?(s.next=this._first,this._first.prev=s,this._first=s):(this._first=s,this._last=s),this._size++,s},o.prototype.addLast=function(a){var s=new i.LinkedListNode(this,a);return this._last?(s.prev=this._last,this._last.next=s,this._last=s):(this._first=s,this._last=s),this._size++,s},o.prototype.insertBefore=function(a,s){if(!s||s===this._first)return this.addFirst(a);if(!(s instanceof i.LinkedListNode)||s.list!==this)throw new Error("Reference node is not owned by the list.");var l=new i.LinkedListNode(this,a),c=s,u=c.prev;return l.next=c,l.prev=u,c.prev=l,u.next=l,this._size++,l},o.prototype.insertAfter=function(a,s){if(!s||s===this._last)return this.addLast(a);if(!(s instanceof i.LinkedListNode)||s.list!==this)throw new Error("Reference node is not owned by the list.");var l=new i.LinkedListNode(this,a),c=s,u=c.next;return l.next=u,l.prev=c,c.next=l,u.prev=l,this._size++,l},o.prototype.removeFirst=function(){var a=this._first;if(a)return a===this._last?(this._first=null,this._last=null):(this._first=a.next,this._first.prev=null),a.list=null,a.next=null,a.prev=null,this._size--,a.value},o.prototype.removeLast=function(){var a=this._last;if(a)return a===this._first?(this._first=null,this._last=null):(this._last=a.prev,this._last.next=null),a.list=null,a.next=null,a.prev=null,this._size--,a.value},o.prototype.removeNode=function(a){if(!(a instanceof i.LinkedListNode)||a.list!==this)throw new Error("Node is not owned by the list.");var s=a;s===this._first&&s===this._last?(this._first=null,this._last=null):s===this._first?(this._first=s.next,this._first.prev=null):s===this._last?(this._last=s.prev,this._last.next=null):(s.next.prev=s.prev,s.prev.next=s.next),s.list=null,s.next=null,s.prev=null,this._size--},o.prototype.clear=function(){for(var a=this._first;a;){var s=a.next;a.list=null,a.prev=null,a.next=null,a=s}this._first=null,this._last=null,this._size=0},o}();e.LinkedList=r,function(o){function a(d){var f=new o;return f.assign(d),f}o.from=a;var s=function(){function d(f){this._node=f}return d.prototype.iter=function(){return this},d.prototype.clone=function(){return new d(this._node)},d.prototype.next=function(){if(this._node){var f=this._node;return this._node=f.next,f.value}},d}();o.ForwardValueIterator=s;var l=function(){function d(f){this._node=f}return d.prototype.iter=function(){return this},d.prototype.clone=function(){return new d(this._node)},d.prototype.next=function(){if(this._node){var f=this._node;return this._node=f.prev,f.value}},d}();o.RetroValueIterator=l;var c=function(){function d(f){this._node=f}return d.prototype.iter=function(){return this},d.prototype.clone=function(){return new d(this._node)},d.prototype.next=function(){if(this._node){var f=this._node;return this._node=f.next,f}},d}();o.ForwardNodeIterator=c;var u=function(){function d(f){this._node=f}return d.prototype.iter=function(){return this},d.prototype.clone=function(){return new d(this._node)},d.prototype.next=function(){if(this._node){var f=this._node;return this._node=f.prev,f}},d}();o.RetroNodeIterator=u}(r=e.LinkedList||(e.LinkedList={})),e.LinkedList=r;var i;(function(o){var a=function(){function s(l,c){this.list=null,this.next=null,this.prev=null,this.list=l,this.value=c}return s}();o.LinkedListNode=a})(i||(i={}))})(wit);(function(e){function n(r){for(var i in r)e.hasOwnProperty(i)||(e[i]=r[i])}Object.defineProperty(e,"__esModule",{value:!0}),n(Cit),n(wit)})(Eit);(function(e){var n=oo&&oo.__extends||function(){var s=function(l,c){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var f in d)d.hasOwnProperty(f)&&(u[f]=d[f])},s(l,c)};return function(l,c){s(l,c);function u(){this.constructor=l}l.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=EV,i=Eit,o=function(){function s(l){this.type=l}return Object.defineProperty(s.prototype,"isConflatable",{get:function(){return!1},enumerable:!0,configurable:!0}),s.prototype.conflate=function(l){return!1},s}();e.Message=o;var a=function(s){n(l,s);function l(){return s!==null&&s.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"isConflatable",{get:function(){return!0},enumerable:!0,configurable:!0}),l.prototype.conflate=function(c){return!0},l}(o);e.ConflatableMessage=a,function(s){function l(U,z){var D=y.get(U);if(!D||D.length===0){T(U,z);return}var B=r.every(r.retro(D),function(Y){return Y?x(Y,U,z):!0});B&&T(U,z)}s.sendMessage=l;function c(U,z){if(!z.isConflatable){R(U,z);return}var D=r.some(v,function(B){return B.handler!==U||!B.msg||B.msg.type!==z.type||!B.msg.isConflatable?!1:B.msg.conflate(z)});D||R(U,z)}s.postMessage=c;function u(U,z){var D=y.get(U);D&&D.indexOf(z)!==-1||(D?D.push(z):y.set(U,[z]))}s.installMessageHook=u;function d(U,z){var D=y.get(U);if(D){var B=D.indexOf(z);B!==-1&&(D[B]=null,M(D))}}s.removeMessageHook=d;function f(U){var z=y.get(U);z&&z.length>0&&(r.ArrayExt.fill(z,null),M(z)),r.each(v,function(D){D.handler===U&&(D.handler=null,D.msg=null)})}s.clearData=f;function p(){E||b===0||(C(b),E=!0,O(),E=!1)}s.flush=p;function h(){return S}s.getExceptionHandler=h;function g(U){var z=S;return S=U,z}s.setExceptionHandler=g;var v=new i.LinkedList,y=new WeakMap,_=new Set,S=function(U){console.error(U)},b=0,E=!1,w=function(){var U=typeof requestAnimationFrame=="function";return U?requestAnimationFrame:setImmediate}(),C=function(){var U=typeof cancelAnimationFrame=="function";return U?cancelAnimationFrame:clearImmediate}();function x(U,z,D){var B=!0;try{typeof U=="function"?B=U(z,D):B=U.messageHook(z,D)}catch(Y){S(Y)}return B}function T(U,z){try{U.processMessage(z)}catch(D){S(D)}}function R(U,z){v.addLast({handler:U,msg:z}),b===0&&(b=w(O))}function O(){if(b=0,!v.isEmpty){var U={handler:null,msg:null};for(v.addLast(U);;){var z=v.removeFirst();if(z===U)return;z.handler&&z.msg&&l(z.handler,z.msg)}}}function M(U){_.size===0&&w(P),_.add(U)}function P(){_.forEach(k),_.clear()}function k(U){r.ArrayExt.removeAllWhere(U,$)}function $(U){return U===null}}(e.MessageLoop||(e.MessageLoop={}))})(TC);var tQn=Object.defineProperty,nQn=Object.getOwnPropertyDescriptor,xit=(e,n,r,i)=>{for(var o=i>1?void 0:i?nQn(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&tQn(n,r,o),o},OC;(e=>{(r=>{r.ZOOM_IN="ZOOM_IN",r.ZOOM_OUT="ZOOM_OUT",r.DELETE="DELETE",r.COPY="COPY",r.PASTE="PASTE",r.UNDO="UNDO",r.REDO="REDO",r.VIEW_CLOSE_ALL_WIDGET="view.closeAllWidget",r.VIEW_CLOSE_CURRENT_WIDGET="view.closeCurrentWidget",r.VIEW_REOPEN_LAST_WIDGET="view.reopenLastWidget",r.VIEW_CLOSE_OTHER_WIDGET="view.closeOtherWidget",r.VIEW_CLOSE_BOTTOM_PANEL="view.closeBottomPannel",r.VIEW_OPEN_NEXT_TAB="view.openNextTab",r.VIEW_OEPN_LAST_TAB="view.openLastTab",r.VIEW_FULL_SCREEN="view.fullScreen",r.VIEW_SAVING_WIDGET_CLOSE_CONFIRM="view.savingWidgetCloseConfirm",r.VIEW_SHORTCUTS="view.shortcuts",r.VIEW_PREFERENCES="view.preferences",r.VIEW_LOG="view.log",r.VIEW_PROBLEMS="view.problems"})(e.Default||(e.Default={}));function n(r){return!!r&&r===Object(r)&&"id"in r}e.is=n})(OC||(OC={}));var Tit=Symbol("CommandContribution"),ase;(e=>{function n(r,i){for(const o of r.values())if(o.id===i.id&&o.args.length===i.args.length&&o.args.every((a,s)=>i[s]===a))return o}e.findSimple=n})(ase||(ase={}));var rQn="CommandRegistryFactory",Sm=class{constructor(){this._handlers={},this._commands={},this._commandExecutings=new Set,this.toUnregisterCommands=new Map,this.onDidExecuteCommandEmitter=new Un,this.onDidExecuteCommand=this.onDidExecuteCommandEmitter.event,this.onWillExecuteCommandEmitter=new Un,this.onWillExecuteCommand=this.onWillExecuteCommandEmitter.event}init(){for(const e of this.contributions)e.registerCommands(this)}get commands(){const e=[];for(const n of this.commandIds){const r=this.getCommand(n);r&&e.push(r)}return e}get commandIds(){return Object.keys(this._commands)}registerCommand(e,n){const r=typeof e=="string"?{id:e}:e;if(this._commands[r.id])return console.warn(`A command ${r.id} is already registered.`),ao.NULL;const i=new Ei(this.doRegisterCommand(r));return n&&i.push(this.registerHandler(r.id,n)),this.toUnregisterCommands.set(r.id,i),i.push(ao.create(()=>this.toUnregisterCommands.delete(r.id))),i}unregisterCommand(e){const n=OC.is(e)?e.id:e,r=this.toUnregisterCommands.get(n);r&&r.dispose()}registerHandler(e,n){let r=this._handlers[e];return r||(this._handlers[e]=r=[]),r.unshift(n),{dispose:()=>{const i=r.indexOf(n);i>=0&&r.splice(i,1)}}}isVisible(e,...n){return typeof this.getVisibleHandler(e,...n)<"u"}isEnabled(e,...n){return typeof this.getActiveHandler(e,...n)<"u"}isToggled(e,...n){return typeof this.getToggledHandler(e,...n)<"u"}async executeCommand(e,...n){const r=this.getActiveHandler(e,...n),i={id:e,args:n};if(ase.findSimple(this._commandExecutings,i))return i.promise;if(r)try{this._commandExecutings.add(i),this.onWillExecuteCommandEmitter.fire({commandId:e,args:n});const a=r.execute(...n);i.promise=a;const s=await a;return this.onDidExecuteCommandEmitter.fire({commandId:e,args:n}),s}finally{this._commandExecutings.delete(i)}}getVisibleHandler(e,...n){const r=this._handlers[e];if(r)for(const i of r)try{if(!i.isVisible||i.isVisible(...n))return i}catch(o){console.error(o)}}getActiveHandler(e,...n){const r=this._handlers[e];if(r)for(const i of r)try{if(!i.isEnabled||i.isEnabled(...n))return i}catch(o){console.error(o)}}getAllHandlers(e){const n=this._handlers[e];return n?n.slice():[]}getToggledHandler(e,...n){const r=this._handlers[e];if(r)for(const i of r)try{if(i.isToggled&&i.isToggled(...n))return i}catch(o){console.error(o)}}getCommand(e){return this._commands[e]}doRegisterCommand(e){return this._commands[e.id]=e,{dispose:()=>{delete this._commands[e.id]}}}updateCommand(e,n){this._commands[e]&&(this._commands[e]={...this._commands[e],...n})}dispose(){this.onWillExecuteCommandEmitter.dispose(),this.onDidExecuteCommandEmitter.dispose()}};xit([C_(Tit),ss()],Sm.prototype,"contributions",2);Sm=xit([Pn()],Sm);var AV=Symbol("CommandService"),iQn=new Jp(e=>{cme(e,Tit),e(Sm).toSelf().inSingletonScope(),e(AV).toService(Sm),e(rQn).toFactory(n=>()=>n.container.get(Sm))}),oQn=Object.defineProperty,aQn=Object.getOwnPropertyDescriptor,co=(e,n,r,i)=>{for(var o=i>1?void 0:i?aQn(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&oQn(n,r,o),o},Ku=(e,n)=>(r,i)=>n(r,i,e),sQn=Object.__proto__,lQn=0,Um=class{constructor(e){this.onEntityChangeEmitter=new Un,this.onDataChangeEmitter=new Un,this.initializeDataKeys=[],this.dataManager=new Map,this.toDispose=new Ei,this.preDispose=new Ei,this.onEntityChange=this.onEntityChangeEmitter.event,this.onDataChange=this.onDataChangeEmitter.event,this._changeLockedTimes=0,this.isInitialized=!0,this._version=lQn++,this._savedInManager=!0,this.entityManager=e.entityManager,this._id=e.id||yu(),this._savedInManager=e.savedInManager===void 0?!0:e.savedInManager,this.isInitialized=!0,this.toDispose.push(this.onEntityChangeEmitter),this.toDispose.push(this.onDataChangeEmitter),this.register(),e.datas&&e.datas.forEach(n=>this.addData(n.registry,n.data)),this.isInitialized=!1}getDefaultDataRegistries(){return[]}get changeLocked(){return this._changeLockedTimes>0}set changeLocked(e){this._changeLockedTimes=e?this._changeLockedTimes+1:this._changeLockedTimes-1,this._changeLockedTimes<0&&(this._changeLockedTimes=0)}get type(){if(!this.constructor.type)throw new Error(`Entity Registry need a type: ${this.constructor.name}`);return this.constructor.type}get context(){return this.entityManager.context}addInitializeData(e,n){this.isInitialized=!0,e.forEach(r=>this.addData(r,n)),this.isInitialized=!1}get version(){return this._version}toJSON(){const e=[];for(const n of this.dataManager.values())e.push({type:n.type,data:n.toJSON()});return{type:this.type,id:this.id,dataList:e}}fromJSON(e){!e||!e.id||!e.type||(this.changeLocked=!0,this.reset(),e.dataList&&e.dataList.forEach(n=>{const r=this.entityManager.getDataRegistryByType(n.type);r&&this.addData(r).update(n.data)}),this.changeLocked=!1,this.fireChange())}get id(){return this._id}dispose(){this.preDispose.dispose(),this.toDispose.dispose()}get disposed(){return this.toDispose.disposed}reset(){this.changeLocked=!0;for(const e of this.dataManager.values())this.initializeDataKeys.includes(e.type)||e.dispose();this.register(),this.changeLocked=!1,this.fireChange()}get onDispose(){return this.toDispose.onDispose}fireChange(){this.changeLocked||this.isInitialized||this.disposed||(this._version++,this._version>=Number.MAX_SAFE_INTEGER&&(this._version=0),this.onEntityChangeEmitter.fire(this))}addData(e,n){this.entityManager.registerEntityData(e);let r=this.dataManager.get(e.type);if(r)return n&&this.updateData(e,n),r;const i=this.entityManager.getDataInjector(e);r=new e(this,i==null?void 0:i()),this.isInitialized&&this.initializeDataKeys.push(r.type),this.dataManager.set(e.type,r),this.toDispose.push(r),r.onDataChange(()=>{const a={type:"update",data:r,entity:this};this.onDataChangeEmitter.fire(a),this.fireChange()}),r.toDispose.push(ao.create(()=>{this.initializeDataKeys.includes(e.type)||this.dataManager.delete(e.type);const a={type:"delete",data:r,entity:this};this.onDataChangeEmitter.fire(a),this.fireChange()})),r.changeLocked=!0,this.updateData(e,n||r.getDefaultData()),r.changeLocked=!1;const o={type:"add",data:r,entity:this};return this.onDataChangeEmitter.fire(o),r}get savedInManager(){return this._savedInManager}updateData(e,n){const r=this.dataManager.get(e.type);r&&r.update(n)}getData(e){return this.dataManager.get(e.type)}hasData(e){return this.dataManager.has(e.type)}removeData(e){if(this.initializeDataKeys.includes(e.type))return;const n=this.dataManager.get(e.type);n&&n.dispose()}getService(e){return this.entityManager.getService(e)}register(){this.getDefaultDataRegistries().forEach(e=>this.addData(e))}};Um.type="Entity";(e=>{function n(o){return o.type}e.getType=n;function r(o,a){return k0.isChanged(o,a)}e.checkDataChanged=r;function i(o,a){if(o===a)return!0;let s=o.__proto__;for(;s&&s!==sQn;){if(s.prototype===a.prototype)return!0;s=s.__proto__}return!1}e.isRegistryOf=i})(Um||(Um={}));var Pl=class extends frt{constructor(e,n){super(),this.opts=n,this.onDataChangeEmitter=new Un,this.onWillChangeEmitter=new Un,this._changeLocked=!1,this._version=0,this.onDataChange=this.onDataChangeEmitter.event,this.onWillChange=this.onWillChangeEmitter.event,this.entity=e,this._data=this.getDefaultData(),this.toDispose.push(this.onDataChangeEmitter),this.toDispose.push(this.onWillChangeEmitter)}get type(){if(!this.constructor.type)throw new Error(`Entity Data Registry need a type: ${this.constructor.name}`);return this.constructor.type}get data(){return this._data}update(e,n){arguments.length===2?this._data[e]!==n&&(this.fireWillChange(),this._data[e]=n,this.fireChange()):this.checkChanged(e)&&(this.fireWillChange(),typeof e!="object"?this._data=e:this._data={...this._data,...e},this.fireChange())}fullyUpdate(e){k0.isChanged(this._data,e,1,!1)&&(this.fireWillChange(),this._data=e,this.fireChange())}checkChanged(e){return Um.checkDataChanged(this._data,e)}toJSON(){return this.data}fromJSON(e){this.update(e)}get changeLocked(){return this._changeLocked}set changeLocked(e){this._changeLocked=e}fireWillChange(){this.onWillChangeEmitter.fire(this)}fireChange(){this._changeLocked||(this._version++,this._version>=Number.MAX_SAFE_INTEGER&&(this._version=0),this.onDataChangeEmitter.fire(this))}bindChange(e,n){this.toDispose.push(e.onDataChange(()=>{n&&n(),this.fireChange()}))}get version(){return this._version}};Pl.type="EntityData";var E2=class extends Pl{getDefaultData(){return cg.createDefault(grt)}get x(){return this.data.x}get y(){return this.data.y}set x(e){this.update("x",e)}set y(e){this.update("y",e)}};E2.type="OriginData";var cQn=class extends Pl{getDefaultData(){return cg.createDefault(xKn)}};cQn.type="OpacityData";var qb=class extends Pl{getDefaultData(){return cg.createDefault(mrt)}get x(){return this.data.x}get y(){return this.data.y}set x(e){this.update("x",e)}set y(e){this.update("y",e)}};qb.type="PositionData";var C2=class extends Pl{getDefaultData(){return cg.createDefault(vrt)}};C2.type="RotationData";var w2=class extends Pl{getDefaultData(){return cg.createDefault(yrt)}get x(){return this.data.x}get y(){return this.data.y}set x(e){this.update("x",e)}set y(e){this.update("y",e)}};w2.type="ScaleData";var oy=class extends Pl{getDefaultData(){return cg.createDefault(hrt)}get width(){return this.data.width}get height(){return this.data.height}set width(e){this.update("width",e)}set height(e){this.update("height",e)}get locked(){return!!this.data.locked}set locked(e){this.update("locked",e)}};oy.type="SizeData";var x2=class extends Pl{getDefaultData(){return cg.createDefault(_rt)}get x(){return this.data.x}get y(){return this.data.y}set x(e){this.update("x",e)}set y(e){this.update("y",e)}};x2.type="SkewData";var{fixZero:MJ}=gf,eO;(e=>{function n(v,y){return y&&y.apply(v,v),MJ(v),v}e.getPointWithMatrix=n;function r(v,y){const _=new Qn;if(!y||y.isSimple()){const{size:S,origin:b}=v;_.x=-(S.width*b.x)+((y==null?void 0:y.tx)||0),_.y=-(S.height*b.y)+((y==null?void 0:y.ty)||0),_.width=S.width,_.height=S.height,MJ(_)}else{const S=l(v,y),b=u(v,y),E=p(v,y),w=g(v,y);_.x=Math.min(S.x,b.x,E.x,w.x),_.y=Math.min(S.y,b.y,E.y,w.y),_.width=Math.max(S.x,b.x,E.x,w.x)-_.x,_.height=Math.max(S.y,b.y,E.y,w.y)-_.y}return _}e.getBounds=r;function i(v,y){const _=new Qn;if(y.isSimple())_.x=v.x+y.tx,_.y=v.y+y.ty,_.width=v.width,_.height=v.height,MJ(_);else{const S=n(v.leftTop,y),b=n(v.rightTop,y),E=n(v.leftBottom,y),w=n(v.rightBottom,y);_.x=Math.min(S.x,b.x,E.x,w.x),_.y=Math.min(S.y,b.y,E.y,w.y),_.width=Math.max(S.x,b.x,E.x,w.x)-_.x,_.height=Math.max(S.y,b.y,E.y,w.y)-_.y}return _}e.applyMatrix=i;function o(v,y){const _=l(v,y),S=u(v,y),b=p(v,y),E=g(v,y);return[_,S,b,E].sort((C,x)=>C.x-x.x)[0]}e.getLeftPointFromBounds=o;function a(v,y){const _=l(v,y),S=u(v,y),b=p(v,y),E=g(v,y);return[_,S,b,E].sort((C,x)=>C.y-x.y)[0]}e.getTopPointFromBounds=a;function s(v,y){const{size:_,origin:S}=v,b={x:-(_.width*S.x)+_.width/2,y:-(_.height*S.y)+_.height/2};return n(b,y)}e.getCenter=s;function l(v,y){const{size:_,origin:S}=v,b={x:-(_.width*S.x),y:-(_.height*S.y)};return n(b,y)}e.getTopLeft=l;function c(v,y){const{size:_,origin:S}=v,b={x:-(_.width*S.x)+_.width/2,y:-(_.height*S.y)};return n(b,y)}e.getTopCenter=c;function u(v,y){const{size:_,origin:S}=v,b={x:-(_.width*S.x)+_.width,y:-(_.height*S.y)};return n(b,y)}e.getTopRight=u;function d(v,y){const{size:_,origin:S}=v,b={x:-(_.width*S.x),y:-(_.height*S.y)+_.height/2};return n(b,y)}e.getLeftCenter=d;function f(v,y){const{size:_,origin:S}=v,b={x:-(_.width*S.x)+_.width,y:-(_.height*S.y)+_.height/2};return n(b,y)}e.getRightCenter=f;function p(v,y){const{size:_,origin:S}=v,b={x:-(_.width*S.x),y:-(_.height*S.y)+_.height};return n(b,y)}e.getBottomLeft=p;function h(v,y){const{size:_,origin:S}=v,b={x:-(_.width*S.x)+_.width/2,y:-(_.height*S.y)+_.height};return n(b,y)}e.getBottomCenter=h;function g(v,y){const{size:_,origin:S}=v,b={x:-(_.width*S.x)+_.width,y:-(_.height*S.y)+_.height};return n(b,y)}e.getBottomRight=g})(eO||(eO={}));var Ui=class extends Pl{constructor(e){super(e),this._worldTransform=new yP,this._localTransform=new yP,this.mutationCache=new Map,this.sizeToScale=!1,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0,this.bindChange(this.entity.addData(qb)),this.bindChange(this.entity.addData(oy)),this.bindChange(this.entity.addData(E2)),this.bindChange(this.entity.addData(w2)),this.bindChange(this.entity.addData(x2),()=>this.updateSkew()),this.bindChange(this.entity.addData(C2),()=>this.updateSkew())}get children(){return this._children||[]}clearChildren(){this._children&&this._children.slice().forEach(e=>{e.setParent(void 0)})}get isContainer(){return!!this._children&&this._children.length>0}fireChange(){this.changeLocked||(this._localID++,this.mutationCache.clear(),super.fireChange())}get localTransform(){return this.updateLocalTransformMatrix(),this._localTransform}get worldTransform(){return this.updateTransformMatrix(),this._worldTransform}getDefaultData(){return cg.createDefault(brt)}update(e){e.position&&this.entity.updateData(qb,e.position),e.size&&this.entity.updateData(oy,e.size),e.origin&&this.entity.updateData(E2,e.origin),e.scale&&this.entity.updateData(w2,e.scale),e.skew&&this.entity.updateData(x2,e.skew),e.rotation!==void 0&&this.entity.updateData(C2,e.rotation)}get position(){return this.entity.getData(qb)}set position(e){this.entity.updateData(qb,e)}get size(){return this.entity.getData(oy)}set size(e){this.entity.updateData(oy,e)}get origin(){return this.entity.getData(E2)}set origin(e){this.entity.updateData(E2,e)}get scale(){return this.entity.getData(w2)}set scale(e){this.entity.updateData(w2,e)}get skew(){return this.entity.getData(x2)}set skew(e){this.entity.updateData(x2,e)}get rotation(){return this.entity.getData(C2).data}set rotation(e){this.entity.updateData(C2,e)}get data(){return ese.toJSON(this)}updateSkew(){const{rotation:e}=this;this._cx=Math.cos(e+this.skew.y),this._sx=Math.sin(e+this.skew.y),this._cy=-Math.sin(e-this.skew.x),this._sy=Math.cos(e-this.skew.x),this._localID++}updateLocalTransformMatrix(){const e=this._localTransform;this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x,e.ty=this.position.y,this._currentLocalID=this._localID,this._parentID=-1)}get localID(){return this._localID}get worldID(){return this._worldID}updateTransformMatrix(){const e=this._localTransform;this.updateLocalTransformMatrix();let n=yP.TEMP_MATRIX,r=0;if(this.parent&&(n=this.parent.worldTransform,r=this.parent._worldID),this._parentID!==r){const i=n,o=this._worldTransform;o.a=e.a*i.a+e.b*i.c,o.b=e.a*i.b+e.b*i.d,o.c=e.c*i.a+e.d*i.c,o.d=e.c*i.b+e.d*i.d,o.tx=e.tx*i.a+e.ty*i.c+i.tx,o.ty=e.tx*i.b+e.ty*i.d+i.ty,this._parentID=r,this._worldID++}}setFromMatrix(e){const{a:n,b:r,c:i,d:o}=e,a=-Math.atan2(-i,o),s=Math.atan2(r,n),l=Math.abs(a+s);l<1e-5||Math.abs(irt-l)<1e-5?(this.rotation=s,this.skew.x=this.skew.y=0):(this.rotation=0,this.skew.x=a,this.skew.y=s),this.scale.x=Math.sqrt(n*n+r*r),this.scale.y=Math.sqrt(i*i+o*o),this.position.x=e.tx,this.position.y=e.ty,this.fireChange()}getMutationCache(e,n){if(this.mutationCache.has(e))return this.mutationCache.get(e);const r=n();return this.mutationCache.set(e,r),r}get bounds(){if(this.isContainer){const e=this._children;return Qn.enlarge(e.map(n=>n.bounds))}return eO.getBounds(this,this.worldTransform)}get boundsWithoutRotation(){const{center:e}=this.bounds,{worldScale:n}=this,r=this.localSize,i=n.x*r.width,o=n.y*r.height,a={x:e.x-i/2,y:e.y-o/2};return new Qn(a.x,a.y,i,o)}get localSize(){let{size:e}=this;if(this.isContainer){const n=Qn.enlarge(this.children.map(r=>r.localBounds));e={width:n.width,height:n.height}}return{width:e.width,height:e.height}}get worldSize(){const{localSize:e}=this,{worldScale:n}=this;return{width:e.width*n.x,height:e.height*n.y}}get localBounds(){if(this.isContainer){const e=this._children,n=Qn.enlarge(e.map(r=>r.localBounds));return eO.applyMatrix(n,this.localTransform)}return this.getMutationCache("localBounds",()=>eO.getBounds(this,this.localTransform))}contains(e,n,r){if(this.isContainer)return this.bounds.contains(e,n);const i=this.worldTransform.applyInverse({x:e,y:n}),{width:o,height:a}=this.size;if(o===0||a===0)return!1;const s=-o*this.origin.x,l=-a*this.origin.y;return r?new yKn(s+o/2,l+a/2,Math.min(o/2,a/2)).contains(i.x,i.y):i.x>=s&&i.x<s+o&&i.y>=l&&i.y<l+a}get parent(){return this._parent}isParent(e){let n=this.parent;for(;n;){if(n===e)return!0;n=n.parent}return!1}isParentTransform(e){let n=this.parent;for(;n;){if(n===e)return!0;n=n.parent}return!1}setParent(e,n=!0){this._parent!==e&&(this._parentChangedDispose&&(this._parentChangedDispose.dispose(),this._parentChangedDispose=void 0),this._parentID=-1,e&&n&&(e._children||(e._children=[]),e._children.push(this),this._parentChangedDispose=new Ei,this.toDispose.push(this._parentChangedDispose),this._parentChangedDispose.pushAll([e.onDispose(()=>{this.setParent(void 0)}),ao.create(()=>{const r=e._children.indexOf(this);r!==-1&&e._children.splice(r,1)})])),this._parent=e,this.fireChange())}intersects(e){return!this.isContainer&&(this.size.width===0||this.size.height===0)?!1:Qn.intersectsWithRotation(this.boundsWithoutRotation,this.worldRotation,e,0)}get worldScale(){const{parent:e}=this,n=e?e.worldScale:{x:1,y:1};return{x:this.scale.x*n.x,y:this.scale.y*n.y}}get worldRotation(){const{parent:e}=this;return e?uj.wrap(this.rotation+e.worldRotation):uj.wrap(this.rotation)}get worldDegree(){return Math.round(this.worldRotation*vKn)}get localOrigin(){const e=this.localTransform,n=this.localBounds;return e.apply({x:this.origin.x*n.width,y:this.origin.y*n.height})}get worldOrigin(){const e=this.worldTransform,{bounds:n}=this;return e.apply({x:this.origin.x*n.width,y:this.origin.y*n.height})}widthToScaleX(e,n){const r=n&&this.parent?this.parent.worldScale.x:1;return e/r/this.localSize.width}heightToScaleY(e,n){const r=n&&this.parent?this.parent.worldScale.y:1;return e/r/this.localSize.height}sizeToScaleValue(e,n){return{x:this.widthToScaleX(e.width,n),y:this.heightToScaleY(e.height,n)}}};Ui.type="TransformData";(e=>{function n(r,i){const o=i.getData(e);if(!o)return!1;for(const a of r.values()){const s=a.getData(e);if(s&&(s.isParent(o)||o.isParent(s)))return!0}return!1}e.isParentOrChildrenTransform=n})(Ui||(Ui={}));var uQn=class{constructor(){this.execMap=new Map}push(e,n){const{execMap:r}=this;let i=r.get(e);i||(i=Mn.throttle(n,0),r.set(e,i)),i()}dispose(){this.execMap.clear()}},Jke=4,l5=20,eLe=20;function c5(e,n,r){const i=document.createEvent("MouseEvent");return i.initMouseEvent(e,!0,!0,void 0,0,0,0,n,r,!1,!1,!1,!1,0,null),i}var Em=class{constructor(e={}){this.onDragStartEmitter=new Un,this.onDragEndEmitter=new Un,this.onDragEmitter=new Un,this._stopGlobalEventNames=["mouseenter","mouseleave","mouseover","mouseout","contextmenu"],this.onDrag=this.onDragEmitter.event,this.onDragStart=this.onDragStartEmitter.event,this.onDragEnd=this.onDragEndEmitter.event,this._lastPos={x:0,y:0},this._updateDragScroll=n=>{if(!this._playgroundConfigEntity)return;const r=this._playgroundConfigEntity.config,i=n.endPos,{scrollX:o,width:a,height:s,scrollY:l}=r;i.x>a+o-l5?this._startScrollX(o,!0):i.x<o+l5?this._startScrollX(o,!1):this._stopScrollX(),i.y>s+l-l5?this._startScrollY(l,!0):i.y<l+l5?this._startScrollY(l,!1):this._stopScrollY()},this._disposed=!1,e.onDragStart&&this.onDragStart(n=>e.onDragStart(n,this.context)),e.onDrag&&this.onDrag(n=>e.onDrag(n,this.context)),e.onDragEnd&&this.onDragEnd(n=>e.onDragEnd(n,this.context)),e.stopGlobalEventNames&&(this._stopGlobalEventNames=e.stopGlobalEventNames)}get isStarted(){return!!this._promise}start(e,n,r,i){if(this._disposed)return Promise.resolve();if(this._promise)return this._promise;this.context=i,this.localId=OKn(),this._addListeners(),this._promise=new Promise(a=>{this._resolve=a}),this._playgroundConfigEntity=r;const o=c5("mousedown",e,n);return this._startPos=this.getRelativePos(o),this.onDragStartEmitter.fire(this.getDragEvent(o)),this._promise}stop(e,n){if(this._disposed||!this._promise)return;const r=c5("mouseup",e,n);this.handleEvent(r)}dispose(){this._disposed||(this._stopScrollX(),this._stopScrollY(),this._disposed=!0,this.onDragEmitter.dispose(),this.onDragStartEmitter.dispose(),this.onDragEndEmitter.dispose(),this._finalize())}handleEvent(e){switch(e.type){case"mousemove":this._evtMouseMove(e);break;case"mouseup":this._stopScrollX(),this._stopScrollY(),this._evtMouseUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":const n=c5("mouseup",e.clientX,e.clientY);this._evtMouseUp(n);break;default:e.preventDefault(),e.stopPropagation();break}}get scale(){return this._playgroundConfigEntity?this._playgroundConfigEntity.finalScale:1}getRelativePos(e){return this._playgroundConfigEntity?this._playgroundConfigEntity.getPosFromMouseEvent(e,!1):{x:e.clientX,y:e.clientY}}getDragEvent(e){const n=this._startPos,{scale:r}=this;switch(e.type){case"mousedown":return this._lastPos=n,Object.assign(e,{id:this.localId,startPos:n,endPos:n,scale:r,movingDelta:{x:0,y:0},isStart:!0,isMoving:!1});case"mousemove":const i=this.getRelativePos(e),o={x:i.x-this._lastPos.x,y:i.y-this._lastPos.y};return this._lastPos=i,Object.assign(e,{id:this.localId,startPos:n,endPos:i,scale:r,isStart:!0,movingDelta:o,isMoving:!0});case"mouseup":return this._lastPos={x:0,y:0},Object.assign(e,{id:this.localId,startPos:n,endPos:this.getRelativePos(e),movingDelta:{x:0,y:0},scale:r,isStart:!1,isMoving:!1});default:throw new Error("unknown event")}}_finalize(){const e=this._resolve;this._removeListeners(),this._startPos=void 0,this._promise=void 0,this._resolve=void 0,e&&e()}_evtMouseMove(e){e.preventDefault(),e.stopPropagation(),this._lastMouseMoveEvent=e;const n=this.getDragEvent(e);this._updateDragScroll(n),this.onDragEmitter.fire(n)}_evtMouseUp(e){this._lastMouseMoveEvent=void 0,e.preventDefault(),e.stopPropagation(),!(e.button!==0&&e.button!==1)&&(this.onDragEndEmitter.fire(this.getDragEvent(e)),this._finalize())}_evtKeyDown(e){e.preventDefault(),e.stopPropagation(),e.keyCode===27&&this.stop(NaN,NaN)}_addListeners(){document.addEventListener("mousedown",this,!0),document.addEventListener("mousemove",this,!0),document.addEventListener("mouseup",this,!0),this._stopGlobalEventNames.forEach(e=>{document.addEventListener(e,this,!0)})}_removeListeners(){document.removeEventListener("mousedown",this,!0),document.removeEventListener("mousemove",this,!0),document.removeEventListener("mouseup",this,!0),this._stopGlobalEventNames.forEach(e=>{document.removeEventListener(e,this,!0)})}_startScrollX(e,n){if(this._scrollXInterval)return;const r=window.setInterval(()=>{this._scrollXInterval&&this.fireScroll("scrollX",n)},eLe);this._scrollXInterval={interval:r,origin:e}}_stopScrollX(){this._scrollXInterval&&(clearInterval(this._scrollXInterval.interval),this._scrollXInterval=void 0)}_startScrollY(e,n){if(this._scrollYInterval)return;const r=window.setInterval(()=>{this.fireScroll("scrollY",n)},eLe);this._scrollYInterval={interval:r,origin:e}}_stopScrollY(){this._scrollYInterval&&(clearInterval(this._scrollYInterval.interval),this._scrollYInterval=void 0)}fireScroll(e,n){const r=e==="scrollY"?this._scrollYInterval:this._scrollXInterval;if(!r)return;const i=r.origin=n?r.origin+Jke:r.origin-Jke,o=this._playgroundConfigEntity.config[e];this._playgroundConfigEntity.updateConfig({[e]:i});const a=this._playgroundConfigEntity.config[e];if(a!==o){const s=this._lastMouseMoveEvent,l={x:e==="scrollX"?a-r.origin:0,y:e==="scrollY"?a-r.origin:0},c=c5("mousemove",s.clientX+l.x,s.clientY+l.y),u=this.getDragEvent(c);this.onDragEmitter.fire(u)}}},EE;(e=>{function n(r,i,o={}){EE&&EE.stop(NaN,NaN);const a=EE=new e({onDragStart(s,l){o.onDragStart&&o.onDragStart(s,l)},onDrag(s,l){o.onDrag&&o.onDrag(s,l)},onDragEnd(s,l){o.onDragEnd&&o.onDragEnd(s,l),a.dispose(),EE===a&&(EE=void 0)}});return a.start(r,i,o.config,o.context),ao.create(()=>{a.stop(0,0),a.dispose(),EE===a&&(EE=void 0)})}e.startDrag=n})(Em||(Em={}));var sse=0;function dQn(){sse++;function e(n){sse<=0||(requestAnimationFrame(e),ise.update(n))}requestAnimationFrame(e)}function tLe(){sse--}function wme(e){dQn();let n=!1;const r=new ise.Tween(e.from).to(e.to,e.duration).easing(e.easing||ise.Easing.Quadratic.Out).onUpdate(()=>{n||e.onUpdate&&e.onUpdate(e.from)}).onComplete(()=>{n||(n=!0,tLe(),e.onComplete&&e.onComplete(e.from))}).start();return ao.create(()=>{n||(n=!0,tLe(),r.stop(),e.onDispose&&e.onDispose(e.from))})}function Oit(e){const[n,r]=e.overflow,[i,o]=e._delta,[a,s]=e._direction;(n<0&&i>0&&a<0||n>0&&i<0&&a>0)&&(e._movement[0]=e._movementBound[0]),(r<0&&o>0&&s<0||r>0&&o<0&&s>0)&&(e._movement[1]=e._movementBound[1])}function fQn(e,n,r){return Math.max(n,Math.min(e,r))}var xa={toVector(e,n){return e===void 0&&(e=n),Array.isArray(e)?e:[e,e]},add(e,n){return[e[0]+n[0],e[1]+n[1]]},sub(e,n){return[e[0]-n[0],e[1]-n[1]]},addTo(e,n){e[0]+=n[0],e[1]+=n[1]},subTo(e,n){e[0]-=n[0],e[1]-=n[1]}};function nLe(e,n,r){return n===0||Math.abs(n)===1/0?Math.pow(e,r*5):e*n*r/(n+r*e)}function rLe(e,n,r,i=.15){return i===0?fQn(e,n,r):e<n?-nLe(n-e,r-n,i)+n:e>r?+nLe(e-r,r-n,i)+r:e}function pQn(e,[n,r],[i,o]){const[[a,s],[l,c]]=e;return[rLe(n,a,s,i),rLe(r,l,c,o)]}var Rit={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function iLe(e){return e?e[0].toUpperCase()+e.slice(1):""}var hQn=["enter","leave"];function gQn(e=!1,n){return e&&!hQn.includes(n)}function mQn(e,n="",r=!1){const i=Rit[e],o=i&&i[n]||n;return"on"+iLe(e)+iLe(o)+(gQn(r,o)?"Capture":"")}var vQn=["gotpointercapture","lostpointercapture"];function yQn(e){let n=e.substring(2).toLowerCase();const r=!!~n.indexOf("passive");r&&(n=n.replace("passive",""));const i=vQn.includes(n)?"capturecapture":"capture",o=!!~n.indexOf(i);return o&&(n=n.replace("capture","")),{device:n,capture:o,passive:r}}function _Qn(e,n=""){const r=Rit[e],i=r&&r[n]||n;return e+i}function DV(e){return"touches"in e}function Iit(e){return DV(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function bQn(e){return Array.from(e.touches).filter(n=>{var r,i;return n.target===e.currentTarget||((i=(r=e.currentTarget)==null?void 0:r.contains)==null?void 0:i.call(r,n.target))})}function SQn(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Nit(e){return DV(e)?SQn(e)[0]:e}function lse(e,n){try{const r=n.clientX-e.clientX,i=n.clientY-e.clientY,o=(n.clientX+e.clientX)/2,a=(n.clientY+e.clientY)/2,s=Math.hypot(r,i);return{angle:-(Math.atan2(r,i)*180)/Math.PI,distance:s,origin:[o,a]}}catch{}return null}function EQn(e){return bQn(e).map(n=>n.identifier)}function oLe(e,n){const[r,i]=Array.from(e.touches).filter(o=>n.includes(o.identifier));return lse(r,i)}function PJ(e){const n=Nit(e);return DV(e)?n.identifier:n.pointerId}function vR(e){const n=Nit(e);return[n.clientX,n.clientY]}var aLe=40,sLe=800;function Mit(e){let{deltaX:n,deltaY:r,deltaMode:i}=e;return i===1?(n*=aLe,r*=aLe):i===2&&(n*=sLe,r*=sLe),[n,r]}function CQn(e){const{scrollX:n,scrollY:r,scrollLeft:i,scrollTop:o}=e.currentTarget;return[n??i??0,r??o??0]}function wQn(e){const n={};if("buttons"in e&&(n.buttons=e.buttons),"shiftKey"in e){const{shiftKey:r,altKey:i,metaKey:o,ctrlKey:a}=e;Object.assign(n,{shiftKey:r,altKey:i,metaKey:o,ctrlKey:a})}return n}function yj(e,...n){return typeof e=="function"?e(...n):e}function xQn(){}function TQn(...e){return e.length===0?xQn:e.length===1?e[0]:function(){let n;for(const r of e)n=r.apply(this,arguments)||n;return n}}function lLe(e,n){return Object.assign({},n,e||{})}var OQn=32,Pit=class{constructor(e,n,r){this.ctrl=e,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:n,ingKey:r,args:i}=this;n[r]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=i,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=e.target,n.currentTarget=e.currentTarget,n.lastOffset=r.from?yj(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=e.timeStamp)}computeValues(e){const n=this.state;n._values=e,n.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:n,config:r,shared:i}=this;n.args=this.args;let o=0;if(e&&(n.event=e,r.preventDefault&&e.cancelable&&n.event.preventDefault(),n.type=e.type,i.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,i.locked=!!document.pointerLockElement,Object.assign(i,wQn(e)),i.down=i.pressed=i.buttons%2===1||i.touches>0,o=e.timeStamp-n.timeStamp,n.timeStamp=e.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const w=n._delta.map(Math.abs);xa.addTo(n._distance,w)}this.axisIntent&&this.axisIntent(e);const[a,s]=n._movement,[l,c]=r.threshold,{_step:u,values:d}=n;if(r.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(a)>=l&&d[0]),u[1]===!1&&(u[1]=Math.abs(s)>=c&&d[1])):(u[0]===!1&&(u[0]=Math.abs(a)>=l&&Math.sign(a)*l),u[1]===!1&&(u[1]=Math.abs(s)>=c&&Math.sign(s)*c)),n.intentional=u[0]!==!1||u[1]!==!1,!n.intentional)return;const f=[0,0];if(r.hasCustomTransform){const[w,C]=d;f[0]=u[0]!==!1?w-u[0]:0,f[1]=u[1]!==!1?C-u[1]:0}else f[0]=u[0]!==!1?a-u[0]:0,f[1]=u[1]!==!1?s-u[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(f);const p=n.offset,h=n._active&&!n._blocked||n.active;h&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=i[this.ingKey]=n._active,e&&(n.first&&("bounds"in r&&(n._bounds=yj(r.bounds,n)),this.setup&&this.setup()),n.movement=f,this.computeOffset()));const[g,v]=n.offset,[[y,_],[S,b]]=n._bounds;n.overflow=[g<y?-1:g>_?1:0,v<S?-1:v>b?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const E=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=pQn(n._bounds,n.offset,E),n.delta=xa.sub(n.offset,p),this.computeMovement(),h&&(!n.last||o>OQn)){n.delta=xa.sub(n.offset,p);const w=n.delta.map(Math.abs);xa.addTo(n.distance,w),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&o>0&&(n.velocity=[w[0]/o,w[1]/o],n.timeDelta=o)}}emit(){const e=this.state,n=this.shared,r=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!r.triggerAllEvents)return;const i=this.handler({...n,...e,[this.aliasKey]:e.values});i!==void 0&&(e.memo=i)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}};function RQn([e,n],r){const i=Math.abs(e),o=Math.abs(n);if(i>o&&i>r)return"x";if(o>i&&o>r)return"y"}var e$=class extends Pit{constructor(){super(...arguments),this.aliasKey="xy"}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=xa.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=xa.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const n=this.state,r=this.config;if(!n.axis&&e){const i=typeof r.axisThreshold=="object"?r.axisThreshold[Iit(e)]:r.axisThreshold;n.axis=RQn(n._movement,i)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}},IQn=class extends e${constructor(){super(...arguments),this.ingKey="wheeling"}wheel(e){this.state._active||this.start(e),this.wheelChange(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(e){const n=this.state;n._delta=Mit(e),xa.addTo(n._movement,n._delta),Oit(n),this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){e("wheel","",this.wheel.bind(this))}},NQn=class extends e${constructor(){super(...arguments),this.ingKey="scrolling"}scroll(e){this.state._active||this.start(e),this.scrollChange(e),this.timeoutStore.add("scrollEnd",this.scrollEnd.bind(this))}scrollChange(e){e.cancelable&&e.preventDefault();const n=this.state,r=CQn(e);n._delta=xa.sub(r,n._values),xa.addTo(n._movement,n._delta),this.computeValues(r),this.compute(e),this.emit()}scrollEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){e("scroll","",this.scroll.bind(this))}},MQn=30,PQn=100,AQn=class extends Pit{constructor(){super(...arguments),this.ingKey="pinching",this.aliasKey="da"}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const e=this.state;e._touchIds=[],e.canceled=!1,e.cancel=this.cancel.bind(this),e.turns=0}computeOffset(){const{type:e,movement:n,lastOffset:r}=this.state;e==="wheel"?this.state.offset=xa.add(n,r):this.state.offset=[(1+n[0])*r[0],n[1]+r[1]]}computeMovement(){const{offset:e,lastOffset:n}=this.state;this.state.movement=[e[0]/n[0],e[1]-n[1]]}axisIntent(){const e=this.state,[n,r]=e._movement;if(!e.axis){const i=Math.abs(n)*MQn-Math.abs(r);i<0?e.axis="angle":i>0&&(e.axis="scale")}}restrictToAxis(e){this.config.lockDirection&&(this.state.axis==="scale"?e[1]=0:this.state.axis==="angle"&&(e[0]=0))}cancel(){const e=this.state;e.canceled||setTimeout(()=>{e.canceled=!0,e._active=!1,this.compute(),this.emit()},0)}touchStart(e){this.ctrl.setEventIds(e);const n=this.state,r=this.ctrl.touchIds;if(n._active&&n._touchIds.every(o=>r.has(o))||r.size<2)return;this.start(e),n._touchIds=Array.from(r).slice(0,2);const i=oLe(e,n._touchIds);i&&this.pinchStart(e,i)}pointerStart(e){if(e.buttons!=null&&e.buttons%2!==1)return;this.ctrl.setEventIds(e),e.target.setPointerCapture(e.pointerId);const n=this.state,r=n._pointerEvents,i=this.ctrl.pointerIds;if(n._active&&Array.from(r.keys()).every(a=>i.has(a))||(r.size<2&&r.set(e.pointerId,e),n._pointerEvents.size<2))return;this.start(e);const o=lse(...Array.from(r.values()));o&&this.pinchStart(e,o)}pinchStart(e,n){const r=this.state;r.origin=n.origin,this.computeValues([n.distance,n.angle]),this.computeInitial(),this.compute(e),this.emit()}touchMove(e){if(!this.state._active)return;const n=oLe(e,this.state._touchIds);n&&this.pinchMove(e,n)}pointerMove(e){const n=this.state._pointerEvents;if(n.has(e.pointerId)&&n.set(e.pointerId,e),!this.state._active)return;const r=lse(...Array.from(n.values()));r&&this.pinchMove(e,r)}pinchMove(e,n){const r=this.state,i=r._values[1],o=n.angle-i;let a=0;Math.abs(o)>270&&(a+=Math.sign(o)),this.computeValues([n.distance,n.angle-360*a]),r.origin=n.origin,r.turns=a,r._movement=[r._values[0]/r._initial[0]-1,r._values[1]-r._initial[1]],this.compute(e),this.emit()}touchEnd(e){this.ctrl.setEventIds(e),this.state._active&&this.state._touchIds.some(n=>!this.ctrl.touchIds.has(n))&&(this.state._active=!1,this.compute(e),this.emit())}pointerEnd(e){const n=this.state;this.ctrl.setEventIds(e);try{e.target.releasePointerCapture(e.pointerId)}catch{}n._pointerEvents.has(e.pointerId)&&n._pointerEvents.delete(e.pointerId),n._active&&n._pointerEvents.size<2&&(n._active=!1,this.compute(e),this.emit())}gestureStart(e){e.cancelable&&e.preventDefault();const n=this.state;n._active||(this.start(e),this.computeValues([e.scale,e.rotation]),n.origin=[e.clientX,e.clientY],this.compute(e),this.emit())}gestureMove(e){if(e.cancelable&&e.preventDefault(),!this.state._active)return;const n=this.state;this.computeValues([e.scale,e.rotation]),n.origin=[e.clientX,e.clientY];const r=n._movement;n._movement=[e.scale-1,e.rotation],n._delta=xa.sub(n._movement,r),this.compute(e),this.emit()}gestureEnd(e){this.state._active&&(this.state._active=!1,this.compute(e),this.emit())}wheel(e){const n=this.config.modifierKey;n&&(Array.isArray(n)?!n.find(r=>e[r]):!e[n])||(this.state._active?this.wheelChange(e):this.wheelStart(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(e){this.start(e),this.wheelChange(e)}wheelChange(e){"uv"in e||e.cancelable&&e.preventDefault();const r=this.state;let i=-Mit(e)[1]/PQn*r.offset[0];Math.abs(i)>.1&&(i=.1*Math.sign(i)),r._delta=[i,0],xa.addTo(r._movement,r._delta),Oit(r),this.state.origin=[e.clientX,e.clientY],this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){const n=this.config.device;n&&(e(n,"start",this[n+"Start"].bind(this)),e(n,"change",this[n+"Move"].bind(this)),e(n,"end",this[n+"End"].bind(this)),e(n,"cancel",this[n+"End"].bind(this)),e("lostPointerCapture","",this[n+"End"].bind(this))),this.config.pinchOnWheel&&e("wheel","",this.wheel.bind(this),{passive:!1})}},DQn=class extends e${constructor(){super(...arguments),this.ingKey="moving"}move(e){this.config.mouseOnly&&e.pointerType!=="mouse"||(this.state._active?this.moveChange(e):this.moveStart(e),this.timeoutStore.add("moveEnd",this.moveEnd.bind(this)))}moveStart(e){this.start(e),this.computeValues(vR(e)),this.compute(e),this.computeInitial(),this.emit()}moveChange(e){if(!this.state._active)return;const n=vR(e),r=this.state;r._delta=xa.sub(n,r._values),xa.addTo(r._movement,r._delta),this.computeValues(n),this.compute(e),this.emit()}moveEnd(e){this.state._active&&(this.state._active=!1,this.compute(e),this.emit())}bind(e){e("pointer","change",this.move.bind(this)),e("pointer","leave",this.moveEnd.bind(this))}},kQn=class extends e${constructor(){super(...arguments),this.ingKey="hovering"}enter(e){this.config.mouseOnly&&e.pointerType!=="mouse"||(this.start(e),this.computeValues(vR(e)),this.compute(e),this.emit())}leave(e){if(this.config.mouseOnly&&e.pointerType!=="mouse")return;const n=this.state;if(!n._active)return;n._active=!1;const r=vR(e);n._movement=n._delta=xa.sub(r,n._values),this.computeValues(r),this.compute(e),n.delta=n.movement,this.emit()}bind(e){e("pointer","enter",this.enter.bind(this)),e("pointer","leave",this.leave.bind(this))}},LQn=e=>e,cLe=.15,Ait={enabled(e=!0){return e},eventOptions(e,n,r){return{...r.shared.eventOptions,...e}},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[cLe,cLe];case!1:return[0,0];default:return xa.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return xa.toVector(e)},transform(e,n,r){const i=e||r.shared.transform;return this.hasCustomTransform=!!i,i||LQn},threshold(e){return xa.toVector(e,0)}},$Qn=0,Pw={...Ait,axis(e,n,{axis:r}){if(this.lockDirection=r==="lock",!this.lockDirection)return r},axisThreshold(e=$Qn){return e},bounds(e={}){if(typeof e=="function")return a=>Pw.bounds(e(a));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:n=-1/0,right:r=1/0,top:i=-1/0,bottom:o=1/0}=e;return[[n,r],[i,o]]}},uLe={ArrowRight:(e,n=1)=>[e*n,0],ArrowLeft:(e,n=1)=>[-1*e*n,0],ArrowUp:(e,n=1)=>[0,-1*e*n],ArrowDown:(e,n=1)=>[0,e*n]},FQn=class extends e${constructor(){super(...arguments),this.ingKey="dragging"}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const n=e._bounds.getBoundingClientRect(),r=e.currentTarget.getBoundingClientRect(),i={left:n.left-r.left+e.offset[0],right:n.right-r.right+e.offset[0],top:n.top-r.top+e.offset[1],bottom:n.bottom-r.bottom+e.offset[1]};e._bounds=Pw.bounds(i)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const n=this.config,r=this.state;if(e.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(e.buttons):n.pointerButtons!==-1&&n.pointerButtons!==e.buttons))return;const i=this.ctrl.setEventIds(e);n.pointerCapture&&e.target.setPointerCapture(e.pointerId),!(i&&i.size>1&&r._pointerActive)&&(this.start(e),this.setupPointer(e),r._pointerId=PJ(e),r._pointerActive=!0,this.computeValues(vR(e)),this.computeInitial(),n.preventScrollAxis&&Iit(e)!=="mouse"?(r._active=!1,this.setupScrollPrevention(e)):n.delay>0?(this.setupDelayTrigger(e),n.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const n=this.state,r=this.config;if(!n._pointerActive)return;const i=PJ(e);if(n._pointerId!==void 0&&i!==n._pointerId)return;const o=vR(e);if(document.pointerLockElement===e.target?n._delta=[e.movementX,e.movementY]:(n._delta=xa.sub(o,n._values),this.computeValues(o)),xa.addTo(n._movement,n._delta),this.compute(e),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(e);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const i=PJ(e);if(n._pointerId!==void 0&&i!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,a]=n._distance;if(n.tap=o<=r.tapsThreshold&&a<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[s,l]=n._delta,[c,u]=n._movement,[d,f]=r.swipe.velocity,[p,h]=r.swipe.distance,g=r.swipe.duration;if(n.elapsedTime<g){const v=Math.abs(s/n.timeDelta),y=Math.abs(l/n.timeDelta);v>d&&Math.abs(c)>p&&(n.swipe[0]=Math.sign(s)),y>f&&Math.abs(u)>h&&(n.swipe[1]=Math.sign(l))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const n=this.config,r=n.device;n.pointerLock&&e.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,BQn(e);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){const n=uLe[e.key];if(n){const r=this.state,i=e.shiftKey?10:e.altKey?.1:1;this.start(e),r._delta=n(this.config.keyboardDisplacement,i),r._keyboardActive=!0,xa.addTo(r._movement,r._delta),this.compute(e),this.emit()}}keyUp(e){e.key in uLe&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const n=this.config.device;e(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(n,"change",this.pointerMove.bind(this)),e(n,"end",this.pointerUp.bind(this)),e(n,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}};function BQn(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}var jQn=Pw,UQn=Pw,t$=typeof window<"u"&&window.document&&window.document.createElement;function Dit(){return t$&&"ontouchstart"in window}function HQn(){return Dit()||t$&&window.navigator.maxTouchPoints>1}function zQn(){return t$&&"onpointerdown"in window}function VQn(){return t$&&"exitPointerLock"in window.document}function GQn(){try{return"constructor"in GestureEvent}catch{return!1}}var dp={isBrowser:t$,gesture:GQn(),touch:Dit(),touchscreen:HQn(),pointer:zQn(),pointerLock:VQn()},WQn={...Ait,device(e,n,{shared:r,pointer:{touch:i=!1}={}}){if(r.target&&!dp.touch&&dp.gesture)return"gesture";if(dp.touch&&i)return"touch";if(dp.touchscreen){if(dp.pointer)return"pointer";if(dp.touch)return"touch"}},bounds(e,n,{scaleBounds:r={},angleBounds:i={}}){const o=s=>{const l=lLe(yj(r,s),{min:-1/0,max:1/0});return[l.min,l.max]},a=s=>{const l=lLe(yj(i,s),{min:-1/0,max:1/0});return[l.min,l.max]};return typeof r!="function"&&typeof i!="function"?[o(),a()]:s=>[o(s),a(s)]},threshold(e,n,r){return this.lockDirection=r.axis==="lock",xa.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}},YQn={...Pw,mouseOnly:(e=!0)=>e},qQn={...Pw,mouseOnly:(e=!0)=>e},KQn=250,XQn=180,QQn=.5,ZQn=50,JQn=250,eZn=10,dLe={mouse:0,touch:0,pen:8},tZn={...Pw,device(e,n,{pointer:{touch:r=!1,lock:i=!1,mouse:o=!1}={}}){return this.pointerLock=i&&dp.pointerLock,dp.touch&&r?"touch":this.pointerLock?"mouse":dp.pointer&&!o?"pointer":dp.touch?"touch":"mouse"},preventScrollAxis(e,n,{preventScroll:r}){if(this.preventScrollDelay=typeof r=="number"?r:r||r===void 0&&e?KQn:void 0,!(!dp.touchscreen||r===!1))return e||(r!==void 0?"y":void 0)},pointerCapture(e,n,{pointer:{capture:r=!0,buttons:i=1,keys:o=!0}={}}){return this.pointerButtons=i,this.keys=o,!this.pointerLock&&this.device==="pointer"&&r},threshold(e,n,{filterTaps:r=!1,tapsThreshold:i=3,axis:o=void 0}){const a=xa.toVector(e,r?i:o?1:0);return this.filterTaps=r,this.tapsThreshold=i,a},swipe({velocity:e=QQn,distance:n=ZQn,duration:r=JQn}={}){return{velocity:this.transform(xa.toVector(e)),distance:this.transform(xa.toVector(n)),duration:r}},delay(e=0){switch(e){case!0:return XQn;case!1:return 0;default:return e}},axisThreshold(e){return e?{...dLe,...e}:dLe},keyboardDisplacement(e=eZn){return e}},xme=new Map,cse=new Map;function nZn(e){xme.set(e.key,e.engine),cse.set(e.key,e.resolver)}var rZn={key:"drag",engine:FQn,resolver:tZn},iZn={key:"hover",engine:kQn,resolver:qQn},oZn={key:"move",engine:DQn,resolver:YQn},aZn={key:"pinch",engine:AQn,resolver:WQn},sZn={key:"scroll",engine:NQn,resolver:UQn},lZn={key:"wheel",engine:IQn,resolver:jQn},cZn=class{constructor(){this._timeouts=new Map}add(e,n,r=140,...i){this.remove(e),this._timeouts.set(e,window.setTimeout(n,r,...i))}remove(e){const n=this._timeouts.get(e);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}},kit=class{constructor(e,n){this._listeners=new Set,this._ctrl=e,this._gestureKey=n}add(e,n,r,i,o){const a=this._listeners,s=_Qn(n,r),c={...this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},...o};e.addEventListener(s,i,c);const u=()=>{e.removeEventListener(s,i,c),a.delete(u)};return a.add(u),u}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}},uZn={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=dp.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:n=!1}={}){return{passive:e,capture:n}},transform(e){return e}};function eF(e={},n){const r={};for(const[i,o]of Object.entries(n))switch(typeof o){case"function":r[i]=o.call(r,e[i],i,e);break;case"object":r[i]=eF(e[i],o);break;case"boolean":o&&(r[i]=e[i]);break}return r}function dZn(e,n,r={}){const{target:i,eventOptions:o,window:a,enabled:s,transform:l,...c}=e;if(r.shared=eF({target:i,eventOptions:o,window:a,enabled:s,transform:l},uZn),n){const u=cse.get(n);r[n]=eF({shared:r.shared,...c},u)}else for(const u in c){const d=cse.get(u);d&&(r[u]=eF({shared:r.shared,...c[u]},d))}return r}var fZn=class{constructor(e){this.gestures=new Set,this._targetEventStore=new kit(this),this.gestureEventStores={},this.gestureTimeoutStores={},this.handlers={},this.config={},this.pointerIds=new Set,this.touchIds=new Set,this.state={shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}},pZn(this,e)}setEventIds(e){if(DV(e))return this.touchIds=new Set(EQn(e)),this.touchIds;if("pointerId"in e)return e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,n){this.handlers=e,this.nativeHandlers=n}applyConfig(e,n){this.config=dZn(e,n,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const n=this.config.shared,r={};let i;if(!(n.target&&(i=n.target(),!i))){if(n.enabled){for(const a of this.gestures){const s=this.config[a],l=fLe(r,s.eventOptions,!!i);if(s.enabled){const c=xme.get(a);new c(this,e,a).bind(l)}}const o=fLe(r,n.eventOptions,!!i);for(const a in this.nativeHandlers)o(a,"",s=>this.nativeHandlers[a]({...this.state.shared,event:s,args:e}),void 0,!0)}for(const o in r)r[o]=TQn(...r[o]);if(!i)return r;for(const o in r){const{device:a,capture:s,passive:l}=yQn(o);this._targetEventStore.add(i,a,"",r[o],{capture:s,passive:l})}}}};function jx(e,n){e.gestures.add(n),e.gestureEventStores[n]=new kit(e,n),e.gestureTimeoutStores[n]=new cZn}function pZn(e,n){n.drag&&jx(e,"drag"),n.wheel&&jx(e,"wheel"),n.scroll&&jx(e,"scroll"),n.move&&jx(e,"move"),n.pinch&&jx(e,"pinch"),n.hover&&jx(e,"hover")}var fLe=(e,n,r)=>(i,o,a,s={},l=!1)=>{const c=s.capture??n.capture,u=s.passive??n.passive;let d=l?i:mQn(i,o,c);r&&u&&(d+="Passive"),e[d]=e[d]||[],e[d].push(a)},hZn=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function gZn(e){const n={},r={},i=new Set;for(let o in e)hZn.test(o)?(i.add(RegExp.lastMatch),r[o]=e[o]):n[o]=e[o];return[r,n,i]}function Ux(e,n,r,i,o,a){if(!e.has(r)||!xme.has(i))return;const s=r+"Start",l=r+"End",c=u=>{let d;return u.first&&s in n&&n[s](u),r in n&&(d=n[r](u)),u.last&&l in n&&n[l](u),d};o[i]=c,a[i]=a[i]||{}}function mZn(e,n){const[r,i,o]=gZn(e),a={};return Ux(o,r,"onDrag","drag",a,n),Ux(o,r,"onWheel","wheel",a,n),Ux(o,r,"onScroll","scroll",a,n),Ux(o,r,"onPinch","pinch",a,n),Ux(o,r,"onMove","move",a,n),Ux(o,r,"onHover","hover",a,n),{handlers:a,config:n,nativeHandlers:i}}var vZn=class{constructor(e,n,r,i,o){this._target=e,this._gestureKey=i,this._ctrl=new fZn(n),this._ctrl.applyHandlers(n,o),this._ctrl.applyConfig({...r,target:e},i),this._ctrl.effect()}destroy(){this._ctrl.clean()}setConfig(e){this._ctrl.clean(),this._ctrl.applyConfig({...e,target:this._target},this._gestureKey),this._ctrl.effect()}};function yZn(e){return e.forEach(nZn),function(n,r,i){const{handlers:o,nativeHandlers:a,config:s}=mZn(r,i||{});return new vZn(n,o,s,void 0,a)}}var Lit=function(e,n,r){return yZn([rZn,aZn,sZn,lZn,oZn,iZn])(e,n,r||{})},_Zn=class extends frt{constructor(e,n){super(),this.target=e,this.config=n,this._pinching=!1,this.preventDefault();const r=new Lit(e,{onPinch:({origin:[i,o],first:a,last:s,movement:[l],offset:[c,u]})=>{this.handlePinch({first:a,last:s,originX:i,originY:o,newScale:c})}},{pinch:{scaleBounds:()=>this.getScaleBounds(),from:()=>[this.config.finalScale,0],modifierKey:["metaKey","ctrlKey"]}});this.toDispose.push(ao.create(()=>{r.destroy()}))}handlePinch(e){const{first:n,last:r,originX:i,originY:o,newScale:a}=e;if(Number.isNaN(e.newScale))return;n&&(this._pinching=!0),r&&(this._pinching=!1);const s=this.config.finalScale,l=this.config.getPosFromMouseEvent({clientX:i,clientY:o},!1),c={x:l.x/s*a,y:l.y/s*a};this.config.updateConfig({scrollX:this.config.config.scrollX+c.x-l.x,scrollY:this.config.config.scrollY+c.y-l.y,zoom:a})}getScaleBounds(){return{min:this.config.config.minZoom,max:this.config.config.maxZoom}}preventDefault(){const e=n=>n.preventDefault();document.addEventListener("gesturestart",e),document.addEventListener("gesturechange",e),this.toDispose.push(ao.create(()=>{document.removeEventListener("gesturestart",e),document.removeEventListener("gesturechange",e)}))}get pinching(){return this._pinching}},bZn=e=>function(n,r){const i=`${r}Provider`;return Ot(e)(n,i),ss()(n,i),{get(){var o;return(o=this[i])==null?void 0:o.call(this)},configurable:!0,enumerable:!0}},SZn=Symbol("LazyInjectContext"),RC=Symbol("PlaygroundContext"),Tme=Symbol("PlaygroundContextProvider"),iN=()=>bZn(Tme),EZn=e=>{e(Tme).toDynamicValue(n=>()=>{if(n.container.isBound(RC))return n.container.get(RC)})},$it=Symbol("PlaygroundContainerFactory"),CZn=Symbol("EntityManagerContribution");function wZn(e){class n extends Pl{getDefaultData(){return e.getDefaultConfig()}checkChanged(i){return e.checkChanged(this.data,i)}toJSON(){return super.toJSON()}}return Object.defineProperty(n,"type",{value:`_${e.type}DataMixin`}),n}var ug=class extends Um{constructor(e){super(e),this.isInitialized=!0,this.ConfigDataRegistry=wZn(this),this.addData(this.ConfigDataRegistry),this.isInitialized=!1}getDefaultConfig(){return{}}checkChanged(e,n){return Um.checkDataChanged(e,n)}get config(){return this.getData(this.ConfigDataRegistry).data}updateConfig(e){this.updateData(this.ConfigDataRegistry,e)}onConfigChanged(e){return this.getData(this.ConfigDataRegistry).onDataChange(n=>e(n.data))}};ug.type="ConfigEntity";function xZn(e,n){e(n).toDynamicValue(r=>r.container.get(Lo).createEntity(n)).inSingletonScope()}var Lo=class{constructor(){this.toDispose=new Ei,this.onEntityChangeEmitter=new Un,this.onEntityLifeCycleEmitter=new Un,this.onEntityDataChangeEmitter=new Un,this.registryMap=new Map,this.dataRegistryMap=new Map,this.dataInjectorMap=new Map,this.entityInstanceMap=new Map,this.entityVersionMap=new Map,this.entityDataVersionMap=new Map,this.entityInstanceMapByType=new Map,this.configEntities=new Map,this.onEntityChange=this.onEntityChangeEmitter.event,this.onEntityDataChange=this.onEntityDataChangeEmitter.event,this.onEntityLifeCycleChange=this.onEntityLifeCycleEmitter.event,this.changeEntityLocked=!1,this.schedule=new uQn,this.fireEntityChanged=e=>{const n=typeof e=="string"?e:e.type;let r=this.entityVersionMap.get(n)||0;r===Number.MAX_SAFE_INTEGER&&(r=0),this.entityVersionMap.set(n,r+1),!this.changeEntityLocked&&this.schedule.push(n,()=>{this.onEntityChangeEmitter.fire(n)})},this.fireEntityDataChanged=(e,n)=>{let r=this.entityDataVersionMap.get(n)||0;r===Number.MAX_SAFE_INTEGER&&(r=0),this.entityDataVersionMap.set(n,r+1),this.schedule.push(`${e}/${n}`,()=>{this.onEntityDataChangeEmitter.fire({entityType:e,entityDataType:n})})},this.fireEntityLifeCycleChanged=({type:e,entity:n})=>{this.schedule.push(`${e}/${n.id}`,()=>{this.onEntityLifeCycleEmitter.fire({type:e,entity:n})})},this.toDispose.pushAll([this.onEntityChangeEmitter,this.schedule])}init(){this.contributions.forEach(e=>{var n;return(n=e.registerEntityManager)==null?void 0:n.call(e,this)})}createEntity(e,n){if(!e.type)throw new Error(`[EntityManager] createEntity need a type: ${e}`);if(this.configEntities.has(e.type))return this.configEntities.get(e.type);const r={entityManager:this,savedInManager:!0,...n},i=new e(r);return r.savedInManager&&this.saveEntity(i),i}isConfigEntity(e){return this.configEntities.has(e)}removeEntities(e){for(const n of this.getEntities(e).values())n.dispose()}removeEntityById(e){const n=this.getEntityById(e);return n?(n.dispose(),!0):!1}resetEntities(e){this.getEntities(e).forEach(r=>{r.reset()})}resetEntity(e,n){const r=this.getEntity(e,n);r==null||r.reset()}updateConfigEntity(e,n){const r=this.configEntities.get(e.type);r&&r.updateConfig(n)}getRegistryByType(e){return this.registryMap.get(e)}registerEntity(e){if(!e.type)throw new Error(`Registry entity need a type: ${e.name}`);const n=this.registryMap.get(e.type);if(n){if(n!==e)throw new Error(`Entity registry ${e.type} need a new type`);return}this.registryMap.set(e.type,e)}registerEntityData(e,n){if(!e.type)throw new Error(`Registry entity data need a type: ${e.name}`);this.dataRegistryMap.get(e.type)||this.dataRegistryMap.set(e.type,e),!this.dataInjectorMap.get(e.type)&&n&&this.dataInjectorMap.set(e.type,n)}getDataRegistryByType(e){return this.dataRegistryMap.get(e)}getEntityById(e){return this.entityInstanceMap.get(e)}getEntity(e,n){const r=this.getEntities(e)[0];return!r&&n?this.createEntity(e):r}getEntities(e){return this.entityInstanceMapByType.get(e.type)||[]}getEntityDatas(e,n){return this.getEntities(e).map(r=>r.getData(n)).filter(r=>!!r)}hasEntity(e){return!!this.getEntity(e)}storeState({configOnly:e=!0}={}){const n=[];for(const r of this.entityInstanceMap.values())if((!e||r instanceof ug)&&r.toJSON&&r.toJSON){const i=r.toJSON();i&&n.push(i)}return n}restoreState(e){!e||!Array.isArray(e)||e.forEach(n=>{if(!n||!n.type||!n.id)return;const r=this.getRegistryByType(n.type);if(!r){console.warn(`Playground entity registry lost: ${n.type}`);return}const i=this.createEntity(r,{id:n.id});i.fromJSON&&i.fromJSON(n)})}saveEntity(e){const{id:n}=e;if(n&&this.entityInstanceMap.has(n)){console.error(`Entity ${e.type} ${n} is created before`);return}this.entityInstanceMap.set(e.id,e);let r=this.entityInstanceMapByType.get(e.type);r||(r=[],this.entityInstanceMapByType.set(e.type,r)),e instanceof ug&&this.configEntities.set(e.type,e),r.push(e),e.onEntityChange(i=>{this.fireEntityChanged(i),this.fireEntityLifeCycleChanged({type:"update",entity:i})}),e.onDataChange(i=>{this.fireEntityDataChanged(e.type,i.data.type)}),e.toDispose.push(ao.create(()=>{this.removeEntity(e),this.fireEntityLifeCycleChanged({type:"delete",entity:e})})),e.getDefaultDataRegistries().forEach(i=>this.fireEntityDataChanged(e.type,i.type)),this.fireEntityChanged(e),this.fireEntityLifeCycleChanged({type:"add",entity:e})}removeEntity(e){if(this.entityInstanceMap.has(e.id)&&this.entityInstanceMapByType.has(e.type)){const n=this.entityInstanceMapByType.get(e.type);n.indexOf(e)!==-1&&(this.entityInstanceMapByType.set(e.type,n.filter(i=>i!==e)),this.entityInstanceMap.delete(e.id),this.configEntities.has(e.type)&&this.configEntities.delete(e.type),this.fireEntityChanged(e))}}reset(){for(const e of this.entityInstanceMap.values())e.reset()}getEntityVersion(e){return this.entityVersionMap.get(typeof e=="string"?e:e.type)||0}getEntityDataVersion(e){return this.entityDataVersionMap.get(typeof e=="string"?e:e.type)||0}dispose(){this.toDispose.dispose()}getDataInjector(e){return this.dataInjectorMap.get(typeof e=="string"?e:e.type)}getService(e){var n;return(n=this.containerFactory)==null?void 0:n.get(e)}};co([C_(CZn),ss()],Lo.prototype,"contributions",2);co([iN()],Lo.prototype,"context",2);co([Ot($it),ss()],Lo.prototype,"containerFactory",2);co([Zc()],Lo.prototype,"init",1);Lo=co([Pn()],Lo);var Ome=Symbol("EntitiesDecorator"),Fit=Symbol("EntitiesByDataDecorator"),Bit=Symbol("PropertiesInjected");function jit(e,n){return Reflect.getMetadata(n,e.prototype)||[]}function Uit(e){return Reflect.getMetadata(Bit,e)||[]}function TZn(e,n){const r=Uit(e);r.push(n),Reflect.defineMetadata(Bit,r,e)}function OZn(e){typeof e=="object"&&Uit(e.constructor.prototype).forEach(r=>{e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r]})}function Rme(e,n,r,i){return(o,a)=>{let s=Reflect.getMetadata(e,o);if(s||(s=[],Reflect.defineMetadata(e,s,o)),Array.isArray(n)||(n=[n]),n.forEach(l=>{s.includes(l)||s.push(l)}),a&&r)return TZn(o,a),{enumerable:!1,configurable:!1,get(){return r(this,a)}}}}function RZn(e){return jit(e,Ome)}function IZn(e){return jit(e,Fit)}function zo(e){return Rme(Ome,e,r=>r.observeManager.get(e))}function Ime(e){return Rme(Ome,e,r=>r.observeManager.getEntities(e))}function uv(e,n){return Rme(Fit,{entity:e,data:n},i=>i.observeManager.getEntityDatas(e,n))}var NZn=Symbol("ProtectWheelArea"),Nme=(e=>(e[e.BASE_LAYER=-2]="BASE_LAYER",e[e.TOOL_LAYER=-1]="TOOL_LAYER",e[e.NORMAL_LAYER=0]="NORMAL_LAYER",e))(Nme||{}),Mme=Symbol("PipelineLayerFactory"),dg=class{constructor(){this.onSelectionChangedEmitter=new Un,this.onSelectionChanged=this.onSelectionChangedEmitter.event,this.currentSelection=[],this.disposers=[]}get selection(){return this.currentSelection}isEmpty(){return this.currentSelection.length===0}set selection(e){k0.isArrayShallowChanged(this.currentSelection,e)&&(this.disposers.forEach(n=>n.dispose()),this.changeSelection(e),this.disposers=this.currentSelection.map(n=>n.onDispose(()=>{const r=this.currentSelection.filter(i=>i!==n);this.changeSelection(r)})))}changeSelection(e){this.currentSelection=e,this.onSelectionChangedEmitter.fire(this.currentSelection)}dispose(){this.onSelectionChangedEmitter.dispose()}};dg=co([Pn()],dg);var MZn=Symbol("StorageService"),_j=class{constructor(){this._prefix="__gedit:"}setData(e,n){this.storage[this.prefix(e)]=JSON.stringify(n)}getData(e,n){const r=this.storage[this.prefix(e)];return r===void 0?n:JSON.parse(r)}prefix(e){return`${this._prefix}${e}`}setPrefix(e){this._prefix=e}init(){typeof window<"u"&&window.localStorage?this.storage=window.localStorage:this.storage={}}};co([Zc()],_j.prototype,"init",1);_j=co([Pn()],_j);var Hit=Symbol("ClipboardService"),use=class{constructor(){this.onClipboardChangedEmitter=new Un,this.onClipboardChanged=this.onClipboardChangedEmitter.event}readText(){return this._currentData}writeText(e){this._currentData!==e&&(this._currentData=e,this.onClipboardChangedEmitter.fire(e))}};use=co([Pn()],use);var uD=class{get rightPanelVisible(){return this.isRightPanelVisible}set rightPanelVisible(e){this.isRightPanelVisible=e}};uD=co([Pn()],uD);var bj=class{constructor(){this.onLoggerEmitter=new Un,this.onLogger=this.onLoggerEmitter.event}onAllLayersRendered(){this.onLoggerEmitter.fire({event:0})}onFlushRequest(e){if(e<=0)return;const n=1e3/e;this.onLoggerEmitter.fire({event:1,props:{rfi:e,fps:n}})}dispose(){this.onLoggerEmitter.dispose()}};bj=co([Pn()],bj);function PZn({originRenderer:e,renderedCb:n}){return m.useEffect(()=>{n()},[]),e()||null}function AZn(e,n,r,i){let o=dj;function a(){const[,s]=m.useState({}),l=m.useCallback(()=>{r(e)},[e]);m.useEffect(()=>(o=()=>s({}),()=>{o=dj}));let c;try{c=i.isReady?V.createElement(PZn,{originRenderer:n,renderedCb:l}):V.createElement(V.Fragment,null)}catch(u){console.error(`Render Layer "${e.constructor.name}" error `,u),c=V.createElement(V.Fragment,null)}return Gl.createPortal(c,e.node)}return{autorun:()=>o(),portal:e.renderWithReactMemo?V.memo(a):a}}var yR=class{constructor(){this.layerEntitiesSelectorMap=new WeakMap,this.entityLayerMap=new Map,this.ableLayerMap=new Map}subscribeEntities(e,n){const r=this.getSelector(e);n.forEach(i=>{r.entities.includes(i)||r.entities.push(i);let o=this.entityLayerMap.get(i.type);o||(o=new Set,this.entityLayerMap.set(i.type,o)),o.add(e)})}subscribleEntityByData(e,n,r){const i=this.getSelector(e);let o=this.entityLayerMap.get(n.type);o||(o=new Set,this.entityLayerMap.set(n.type,o)),o.add(e);const a=[n,r];i.datas.find(s=>s[0]===n&&s[1]===r)||i.datas.push(a)}getSelector(e){let n=this.layerEntitiesSelectorMap.get(e);return n||(n={entities:[],datas:[]},this.layerEntitiesSelectorMap.set(e,n)),n}getLayerEntities(e){const n=this.layerEntitiesSelectorMap.get(e);if(!n)return{entities:[],changed:!1};const r=new Set,i=new Map;let o=!1;n.entities.forEach(s=>{const l=this.entityManager.getEntities(s),c=this.entityManager.getEntityVersion(s);i.set(s.type,c);for(const u of l)r.add(u)});const a=[];for(const s of r.values())a.push(s);return pLe(i,n.lastEntityVersion)&&(n.lastEntityVersion=i,o=!0),{entities:a,changed:o}}getLayerEntityDatas(e){const n=this.layerEntitiesSelectorMap.get(e);if(!n)return{datas:[],changed:!1};const r=[],i=new Map;let o=!1;return n.datas.forEach(a=>{const[s,l]=a,c=this.entityManager.getEntityDatas(s,l),u=this.entityManager.getEntityDataVersion(l);i.set(l.type,u);for(const d of c)r.push(d)}),pLe(i,n.lastDataVersion)&&(n.lastDataVersion=i,o=!0),{datas:r,changed:o}}getLayerData(e){const n=this.getLayerEntities(e),r=this.getLayerEntityDatas(e);return{observeEntities:n.entities,observeDatas:r.datas,changed:r.changed||n.changed}}};co([Ot(Lo)],yR.prototype,"entityManager",2);yR=co([Pn()],yR);function pLe(e=new Map,n=new Map){if(e.size!==n.size)return!0;for(const r of e.keys())if(e.get(r)!==n.get(r))return!0;return!1}var DZn="flush-layer-request",kZn=0,hLe=class extends TC.ConflatableMessage{constructor(e){super(`${DZn}_layer${kZn++}`),this.layer=e}},IC=class{constructor(e,n){this.selector=e,this.isReady=!1,this.onAllLayersRenderedEmitter=new Un,this.toDispose=new Ei,this.layers=[],this.forceUpdates=new Set,this.layerAutorunMap=new Map,this.layerRenderedMap=new Map,this.layerFlushMessages=new Map,this.reactPortals=[],this.node=Tr.createDivWithClass("gedit-playground-pipeline"),this.onAllLayersRendered=this.onAllLayersRenderedEmitter.event,this.toDispose.push(n.onEntityChange(r=>{const i=this.selector.entityLayerMap.get(r);i&&i.forEach(o=>this.updateLayer(o))})),this.toDispose.push(this.onAllLayersRenderedEmitter)}reportLayerRendered(e){this.layerRenderedMap.set(e,!0),Array.from(this.layerRenderedMap.values()).every(r=>r)&&(this.loggerService.onAllLayersRendered(),this.onAllLayersRenderedEmitter.fire(),window.REPORT_TTI_FOR_E2E&&window.REPORT_TTI_FOR_E2E(performance.now(),performance.getEntriesByType("resource")))}addLayer(e){if(this.layers.push(e),this.toDispose.push(e),this.layerFlushMessages.set(e,new hLe(e)),e.pipelineNode=this.node,e.playgroundNode=this.node.parentElement,(e.autorun||e.render)&&!e.node&&(e.node=document.createElement("div")),e.node&&(this.node.appendChild(e.node),e.node.classList.add("gedit-playground-layer")),e.autorun){const n=e.autorun.bind(e);this.layerAutorunMap.set(e,n),e.autorun=()=>{this.updateLayer(e,!0)}}else if(e.render){this.layerRenderedMap.set(e,!1);const n=e.render.bind(e),r=AZn(e,n,this.reportLayerRendered.bind(this),this);this.reactPortals.push(r.portal),this.layerAutorunMap.set(e,r.autorun),e.render=()=>{this.updateLayer(e,!0)}}}flush(e){this.layers.forEach(n=>{this.updateLayer(n,e)})}ready(){this.layers.forEach(e=>{this.loadLayerEntities(e),e.onReady&&e.onReady()}),this.isReady=!0,this.flush(!0)}dispose(){this.toDispose.dispose(),this.node.remove()}processMessage(e){e instanceof hLe&&this.onFlushRequest(e.layer)}loadLayerEntities(e){const n=this.selector.getLayerData(e);return n.changed&&e.observeManager.load(n.observeEntities,n.observeDatas),n.changed}onFlushRequest(e){if(!this.isReady||this.toDispose.disposed)return!1;const n=performance.now(),r=()=>{const a=performance.now()-n;a<4||this.loggerService.onFlushRequest(a)},i=this.layerAutorunMap.get(e),o=this.loadLayerEntities(e);if(i&&(o||this.forceUpdates.has(e))){this.forceUpdates.delete(e);try{i()}catch(a){console.error(a)}return r(),!0}return r(),!1}updateLayer(e,n){n&&this.forceUpdates.add(e),TC.MessageLoop.postMessage(this,this.layerFlushMessages.get(e))}toReactComponent(){if(this.reactComp)return this.reactComp;const e=this.reactPortals,n=()=>V.createElement(V.Fragment,null,e.map((r,i)=>V.createElement(r,{key:i})));return this.reactComp=n,n}};co([Ot(bj)],IC.prototype,"loggerService",2);IC=co([Pn(),Ku(0,Ot(yR)),Ku(1,Ot(Lo))],IC);var ko;(e=>{e.STATE_SELECT={id:"STATE_SELECT",cursor:"",shortcut:"",cancelMode:"hold"},e.STATE_MOUSE_FRIENDLY_SELECT={id:"STATE_MOUSE_FRIENDLY_SELECT",cursor:"grab",shortcut:"",cancelMode:"hold"},e.STATE_GRAB={id:"STATE_GRAB",cursor:"grab",shortcut:"SPACE",shortcutAutoEsc:!0,shortcutWorksOnlyOnStateChanged:!0,cancelMode:"hold"}})(ko||(ko={}));var LZn=[ko.STATE_SELECT,ko.STATE_MOUSE_FRIENDLY_SELECT,ko.STATE_GRAB],Hm=class extends ug{constructor(e){super(e),this._isPressingSpaceBar=!1,this._isPressingShift=!1,this.states=LZn.slice(),this.selected=ko.STATE_SELECT.id,this.onStateChangeEmitter=new Un,this.onStateChange=this.onStateChangeEmitter.event,this.toDispose.push(this.onStateChangeEmitter)}get isPressingSpaceBar(){return this._isPressingSpaceBar}set isPressingSpaceBar(e){this._isPressingSpaceBar=e}get isPressingShift(){return this._isPressingShift}set isPressingShift(e){this._isPressingShift=e}onCancel(e,n){return this.onStateChange(r=>{r.lastState&&r.lastState.id===e&&n()})}getCurrentState(){return this.states.find(e=>e.id===this.selected)}is(e){return this.selected===e}changeState(e,n){const r=this.states.find(i=>i.id===e);if(!r)throw new Error(`Unknown editor state ${e}`);if(this.selected!==e){const i=this.getCurrentState();this.selected=e,this.onStateChangeEmitter.fire({state:r,event:n,lastState:i}),this.fireChange()}}toDefaultState(){this.changeState(ko.STATE_SELECT.id)}registerState(e){this.states.push(e),this.fireChange()}getStates(){return this.states}isMouseFriendlyMode(){return this.getCurrentState()===ko.STATE_MOUSE_FRIENDLY_SELECT}getStateFromShortcut(e){return this.states.find(n=>{if((n.shortcut==="SPACE"?" ":(n.shortcut||"").toLowerCase())===e.key.toLowerCase())return n})}};Hm.type="EditorStateConfigEntity";var u5=0,zit=.05,da=class extends ug{constructor(e){super(e),this._loading=!1,this._zoomEnable=!0,this._onReadonlyOrDisabledChangeEmitter=new Un,this._onGrabDisableChangeEmitter=new Un,this.onGrabDisableChange=this._onGrabDisableChangeEmitter.event,this.onReadonlyOrDisabledChange=this._onReadonlyOrDisabledChangeEmitter.event,this.cursor="default",this.toDispose.push(this._onReadonlyOrDisabledChangeEmitter)}get grabDisable(){return this.config.grabDisable}set grabDisable(e){this.updateConfig({grabDisable:e})}getDefaultConfig(){return{scrollX:0,scrollY:0,originX:0,originY:0,width:0,height:0,minZoom:.1,maxZoom:2,zoom:1,clientX:0,clientY:0,reverseScroll:!0,overflowX:"scroll",overflowY:"scroll",disabled:!1,readonly:!1,grabDisable:!1,mouseScrollDelta:zit}}addScrollLimit(e){this._scrollLimitFn=e}updateConfig(e){e.zoom!==void 0&&(e={...e,zoom:this.normalizeZoom(e.zoom)}),e={...this.config,...e},e.reverseScroll||(e.scrollX<this.config.originX&&(e.scrollX=this.config.originX),e.scrollY<this.config.originY&&(e.scrollY=this.config.originY)),e.scrollLimitX!==void 0&&e.scrollX<e.scrollLimitX&&(e.scrollX=e.scrollLimitX),e.scrollLimitY!==void 0&&e.scrollY<e.scrollLimitY&&(e.scrollY=e.scrollLimitY),e.overflowX==="hidden"&&(e.scrollX=this.config.originX),e.overflowY==="hidden"&&(e.scrollY=this.config.originY);const{readonly:n,disabled:r,grabDisable:i}=this;super.updateConfig(this._scrollLimitFn?{...e,...this._scrollLimitFn({scrollX:e.scrollX,scrollY:e.scrollY})}:e),(n!==this.readonly||r!==this.disabled)&&this._onReadonlyOrDisabledChangeEmitter.fire({readonly:this.readonly,disabled:this.disabled}),i!==this.grabDisable&&this._onGrabDisableChangeEmitter.fire(this.grabDisable)}get finalScale(){return this.zoomEnable?this.config.zoom:1}get zoom(){return this.zoomEnable?this.config.zoom:1}get scrollData(){return{scrollX:this.config.scrollX,scrollY:this.config.scrollY}}normalizeZoom(e){return this.zoomEnable?(e<this.config.minZoom?e=this.config.minZoom:e>this.config.maxZoom&&(e=this.config.maxZoom),e):1}updateCursor(e){this.cursor!==e&&(this.cursor=e,this.fireChange())}getPosFromMouseEvent(e,n=!0){const{config:r}=this,i=n?this.finalScale:1;return{x:(e.clientX+r.scrollX-r.clientX)/i,y:(e.clientY+r.scrollY-r.clientY)/i}}toFixedPos(e){const{config:n}=this;return{x:e.x-n.scrollX+n.clientX,y:e.y-n.scrollY+n.clientY}}getViewport(e=!0){const{config:n}=this,r=e?this.finalScale:1;return new Qn(n.scrollX/r,n.scrollY/r,n.width/r,n.height/r)}isViewportVisible(e,n=0,r=!1){return Qn.isViewportVisible(e,this.getViewport(),n,r)}scrollToView(e={}){const{scrollDelta:n,position:r,easing:i=!0,easingDuration:o=300,entities:a}=e,{config:s}=this,l=e.zoom?e.zoom:this.finalScale;let c;if(a&&a.length>0){const d=a.map(f=>{const p=f.getData(Ui);if(p)return p.bounds;const h=f.getData(qb),g=f.getData(oy)||{width:0,height:0};if(h)return new Qn(h.x,h.y,g.width,g.height||0)}).filter(f=>!!f);d.length>0&&(c=Qn.enlarge(d))}else r?c=new Qn(r.x,r.y,0,0):e.bounds&&(c=e.bounds);if(!c){const d=this.getDefaultConfig();c=new Qn((d.scrollX+s.width/2)/l,(d.scrollY+s.height/2)/l,0,0)}if(!e.scrollToCenter&&this.getViewport().containsRectangle(c))return Promise.resolve();const u={scrollX:(c.x+c.width/2+(n?n.x:0))*l-s.width/2,scrollY:(c.y+c.height/2+(n?n.y:0))*l-s.height/2,zoom:e.zoom};return this.scroll(u,i,o)}setPageBounds(e){this.updateConfig({pageBounds:{x:e.x,y:e.y,width:e.width,height:e.height}})}getPageBounds(){const{pageBounds:e}=this.config;if(e)return new Qn(e.x,e.y,e.width,e.height)}scrollPageBoundsToCenter(e=!0,n=16,r=!0){const i=this.getPageBounds();if(i){let o;const a=n*2;return e&&(o=mR.fixSize({width:i.width,height:i.height},{width:a>this.config.width?a:this.config.width-a,height:a>this.config.height?a:this.config.height-a})),this.scrollToView({bounds:i,zoom:o,scrollToCenter:!0,easing:r})}return this.scrollToView({easing:r})}scroll(e,n=!0,r=300){const i=new fj;if(this.cancelScrollTeeen&&this.cancelScrollTeeen.dispose(),n){const o={scrollX:this.config.scrollX,scrollY:this.config.scrollY,zoom:this.config.zoom};this.cancelScrollTeeen=wme({from:o,to:{...o,...e},onUpdate:a=>{this.updateConfig(a)},onComplete:()=>{this.cancelScrollTeeen=void 0,i.resolve()},onDispose:()=>{i.resolve()},duration:r})}else this.updateConfig(e),i.resolve();return i.promise}fixLayerPosition(e){Tr.setStyle(e,{left:this.config.scrollX,top:this.config.scrollY})}get loading(){return this._loading}set loading(e){this.loading!==e&&(this._loading=e,this.fireChange())}get zoomEnable(){return this._zoomEnable}set zoomEnable(e){this._zoomEnable!==e&&(this._zoomEnable=e,this.fireChange())}zoomin(e,n){const r=this.config.zoom/10,i=Math.ceil((this.config.zoom+r)*10)/10;this.updateZoom(i,e,n)}zoomout(e,n){const r=this.config.zoom/10,i=Math.floor((this.config.zoom-r)*10)/10;this.updateZoom(i,e,n)}updateZoom(e,n=!0,r=200){e=this.normalizeZoom(e);const{center:i}=this.getViewport(),o=this.finalScale,a=this.zoomEnable?e:o;if(a!==o){const s={x:i.x*a-i.x*o,y:i.y*a-i.y*o};this.scroll({scrollX:this.config.scrollX+s.x,scrollY:this.config.scrollY+s.y,zoom:e},n,r)}}get disabled(){return this.config.disabled}get readonly(){return this.config.readonly}get readonlyOrDisabled(){return this.config.readonly||this.config.disabled}set readonly(e){this.updateConfig({readonly:e})}set disabled(e){this.updateConfig({disabled:e})}fitView(e,n=!0,r=0){const i=this.getViewport(!1),o=mR.fixSize(e.pad(r,r),i);return this.scrollToView({bounds:e,zoom:o,easing:n,scrollToCenter:!0})}};da.type="PlaygroundConfigEntity";var Vit=Symbol("LayerOptions"),Oa=class{constructor(){this.toDispose=new Ei,this.renderWithReactMemo=!0}dispose(){this.toDispose.dispose()}createDOMCache(e,n){if(!this.node)throw new Error("DomCache need a parent dom node.");return Tr.createDOMCache(this.node,e,n)}getPosFromMouseEvent(e,n=!0){const r=this.config.getPosFromMouseEvent(e,n);return{x:r.x,y:r.y}}};co([Ot(Vit)],Oa.prototype,"options",2);co([Ot(Lo)],Oa.prototype,"entityManager",2);co([iN()],Oa.prototype,"context",2);Oa=co([Pn()],Oa);var _R=class extends Oa{constructor(){super(...arguments),this.startGrabScroll={scrollX:0,scrollY:0},this.cursorStyle=document.createElement("style"),this.maskNode=document.createElement("div"),this.grabDragger=new Em({onDragStart:e=>{this.config.grabDisable||(this.config.updateCursor("grabbing"),this.startGrabScroll={scrollX:this.config.config.scrollX,scrollY:this.config.config.scrollY})},onDrag:e=>{this.config.grabDisable||this.config.updateConfig({scrollX:this.startGrabScroll.scrollX-e.endPos.x+e.startPos.x,scrollY:this.startGrabScroll.scrollY-e.endPos.y+e.startPos.y})},onDragEnd:e=>{this.isGrab()&&this.config.updateCursor("grab"),e.button===1&&(this.isMouseMode()?(this.editorStateConfig.changeState(ko.STATE_MOUSE_FRIENDLY_SELECT.id),this.config.updateCursor("grab")):(this.editorStateConfig.toDefaultState(),this.config.updateCursor("")))}})}onReady(){if(this.options={preventGlobalGesture:!1,...this.options},this.options.preventGlobalGesture){const e=new Lit(document.body,{onPinch:()=>{}});document.documentElement&&(document.documentElement.style.overscrollBehaviorX="none"),document.body.style.overscrollBehaviorX="none",this.toDispose.push(ao.create(()=>e.destroy()))}this.toDispose.pushAll([this.config.onGrabDisableChange(e=>{e&&this.grabDragger.stop(0,0)}),Tr.addStandardDisposableListener(this.playgroundNode,"wheel",e=>{this.getScrollParent(e.target)||(e.preventDefault(),e.stopPropagation())}),this.listenPlaygroundEvent("wheel",this.handleWheelEvent.bind(this),-2,{passive:!0}),this.listenPlaygroundEvent("mousedown",e=>{const n=e.button===1;n&&!this.isMouseMode()&&this.editorStateConfig.changeState(ko.STATE_GRAB.id),this.isGrab()&&(this.editorStateConfig.isPressingSpaceBar||n)&&this.grabDragger.start(e.clientX,e.clientY)},-2),this.listenPlaygroundEvent("mousedown",e=>{var r,i;const n=(i=(r=this.options)==null?void 0:r.hoverService)==null?void 0:i.isSomeHovered();this.isMouseMode()&&!n&&!this.editorStateConfig.isPressingShift&&this.grabDragger.start(e.clientX,e.clientY)},0),this.editorStateConfig.onStateChange(this.onStateChanged.bind(this)),this.listenGlobalEvent("keydown",e=>{e.shiftKey&&(this.editorStateConfig.isPressingShift=!0,this.isMouseMode()&&this.config.updateCursor(""))},-2),this.listenGlobalEvent("keypress",e=>{if(!this.isFocused||e.target!==this.playgroundNode||this.isMouseMode())return;const n=this.editorStateConfig.getStateFromShortcut(e);e.key===" "&&(this.editorStateConfig.isPressingSpaceBar=!0),!((n==null?void 0:n.shortcutWorksOnlyOnStateChanged)===!0&&n===this.editorStateConfig.getCurrentState())&&(this.lastShortcutState=n,n&&this.editorStateConfig.changeState(n.id))},-2),this.listenGlobalEvent("keyup",e=>{e.key===" "&&(this.editorStateConfig.isPressingSpaceBar=!1),this.editorStateConfig.isPressingShift=!1,this.lastShortcutState&&this.lastShortcutState.shortcutAutoEsc&&this.editorStateConfig.toDefaultState(),this.lastShortcutState=void 0}),{dispose:()=>{this.maskNode.parentNode&&this.maskNode.parentNode.removeChild(this.maskNode),this.cursorStyle.parentNode&&this.cursorStyle.parentNode.removeChild(this.cursorStyle)}}]),this.options.ineractiveType==="MOUSE"&&this.editorStateConfig.changeState(ko.STATE_MOUSE_FRIENDLY_SELECT.id)}getCursor(e){var n,r,i;return e?((i=(r=(n=this.playgroundConfigEntity).getCursors)==null?void 0:r.call(n))==null?void 0:i[e])??e:""}isMouseMode(){return this.editorStateConfig.isMouseFriendlyMode()}onStateChanged(e){const{state:n}=e;if(this.cancelStateListen&&(this.cancelStateListen.dispose(),this.cancelStateListen=void 0),n.handle&&n.handle(this.config,e),n.cursor?(this.playgroundConfigEntity.updateCursor(n.cursor),this.currentGesture&&this.currentGesture.target.parentNode&&(this.currentGesture.target.parentNode.style.cursor=this.getCursor(n.cursor))):(this.playgroundConfigEntity.updateCursor(""),this.currentGesture&&this.currentGesture.target.parentNode&&(this.currentGesture.target.parentNode.style.cursor="")),n.cursor==="grab"||n.cursor==="grabbing"){if(n===ko.STATE_MOUSE_FRIENDLY_SELECT)return;this.maskNode.style.cssText=`
position: absolute;
width: 100%;
height: 100%;
z-index: 100;
`,this.playgroundNode.appendChild(this.maskNode)}else this.maskNode.parentNode&&this.maskNode.parentNode.removeChild(this.maskNode);n.cancelMode==="esc"?this.cancelStateListen=Tr.addStandardDisposableListener(document.body,"keydown",r=>{(r.key==="Escape"||r.key==="Enter")&&this.editorStateConfig.toDefaultState()},!0):n.cancelMode==="once"&&this.editorStateConfig.toDefaultState()}isGrab(){const e=this.editorStateConfig.getCurrentState();return e===ko.STATE_GRAB||e===ko.STATE_MOUSE_FRIENDLY_SELECT}createGesture(){this.currentGesture||(this.currentGesture=new _Zn(this.pipelineNode.parentElement,this.config),this.currentGesture.onDispose(()=>{this.currentGesture=void 0}),this.toDispose.push(this.currentGesture))}onResize(e){this.size={...e},this.updateSizeWithRulerConfig()}updateSizeWithRulerConfig(){const{size:e}=this;e&&this.config.updateConfig({width:e.width,height:e.height,clientX:e.clientX,clientY:e.clientY})}handleScrollEvent(e){const{playgroundConfigEntity:n}=this,r=n.config.scrollX+e.deltaX,i=n.config.scrollY+e.deltaY,o={scrollX:r,scrollY:i};n.updateConfig(o)}getMouseScaleDelta(){const{mouseScrollDelta:e,zoom:n}=this.config.config;return typeof e=="function"?e(n):e??zit}handleWheelEvent(e){const n=e;if(!(this.currentGesture&&this.currentGesture.pinching||e.ctrlKey||e.metaKey)&&!this.getScrollParent(e.target)){if(this.isMouseMode()){const{zoom:r,minZoom:i,maxZoom:o,scrollX:a,scrollY:s}=this.playgroundConfigEntity.config,l=this.getMouseScaleDelta(),c=i,u=o,d=b=>b>0?-l:l,f=Math.abs(n.deltaY)>0?n.deltaY:n.deltaX,p=d(f),h=this.config.finalScale,g=e.clientX,v=e.clientY,y=Math.max(c,Math.min(u,r+p)),_=this.config.getPosFromMouseEvent({clientX:g,clientY:v},!1),S={x:_.x/h*y,y:_.y/h*y};this.config.updateConfig({scrollX:a+S.x-_.x,scrollY:s+S.y-_.y,zoom:y});return}this.handleScrollEvent(n)}}getScrollParent(e){var c;if(!e||e===this.pipelineNode.parentElement)return null;const n=e.scrollWidth>e.clientWidth,r=e.scrollHeight>e.clientHeight,i=window.getComputedStyle(e).overflowX,o=window.getComputedStyle(e).overflowY,a=["auto","scroll","overlay"].includes(i),s=["auto","scroll","overlay"].includes(o);return n&&a||r&&s||(c=this.protectWheelArea)!=null&&c.call(this,e)?e:this.getScrollParent(e.parentElement)}autorun(){const e=this.playgroundConfigEntity.config,{cursor:n}=this.playgroundConfigEntity,r=this.getCursor(n);if(this.config.zoomEnable?this.createGesture():this.currentGesture&&this.currentGesture.dispose(),Tr.setStyle(this.pipelineNode,{left:-e.scrollX,top:-e.scrollY,width:e.width,height:e.height}),this.pipelineNode.parentElement.style.cursor=r,n==="grab"||n==="grabbing"){let i="";this.playgroundNode.classList.forEach(o=>{i+=`.${o}`}),this.cursorStyle.innerText=`.${i} * { cursor: ${r} }`,this.cursorStyle.parentNode||document.head.appendChild(this.cursorStyle)}else this.cursorStyle.parentNode&&this.cursorStyle.parentNode.removeChild(this.cursorStyle)}};co([zo(da)],_R.prototype,"playgroundConfigEntity",2);co([zo(Hm)],_R.prototype,"editorStateConfig",2);co([ss(),Ot(NZn)],_R.prototype,"protectWheelArea",2);_R=co([Pn()],_R);var $Zn=class{constructor(e){this.entityManager=e,this.observeEntities=[],this.observeDatas=[],this.entitiesTypeCache=new Map,this.entitiesAbleCache=new Map,this.entitiyDataCache=new Map}get size(){return this.observeEntities.length}load(e,n){this.observeEntities=e,this.observeDatas=n,this.entitiesTypeCache.clear(),this.entitiesAbleCache.clear(),this.entitiyDataCache.clear()}get(e,n){const r=this.getEntities(e);return n!==void 0?r.find(i=>i.id===n):r[0]}has(e){return!!this.get(e)}getEntities(e){let n=this.entitiesTypeCache.get(e);return n||(n=[],this.observeEntities.forEach(r=>{r.type===e.type&&n.push(r)}),this.entitiesTypeCache.set(e,n)),n.filter(r=>!r.disposed)}getEntityDatas(e,n){const r=`${e.type}:${n.type}`;let i=this.entitiyDataCache.get(r);return i||(i=this.observeDatas.filter(o=>o.type===n.type&&o.entity.type===e.type),this.entitiyDataCache.set(r,i),i)}updateConfig(e,n){const r=this.get(e);r&&r.updateConfig&&r.updateConfig(n)}getConfig(e){const n=this.get(e);if(n)return n.config}createEntity(e,n){return this.entityManager.createEntity(e,n)}removeEntities(e){this.entityManager.removeEntities(e)}[Symbol.iterator](){let e=0;const n=this.observeEntities.length;return{next:()=>{const r=e++,i=r===n;return{value:this.observeEntities[r],done:i}}}}},FZn=new TC.ConflatableMessage("PIPELINE_ZOOM"),BZn=new TC.ConflatableMessage("PIPELINE_SCROLL"),Pp=class{constructor(){this._isFocused=!1,this.toDispose=new Ei,this.allLayersMap=new Map,this.onResizeEmitter=new Un,this.onFocusEmitter=new Un,this.onBlurEmitter=new Un,this.onZoomEmitter=new Un,this.onScrollEmitter=new Un,this.onFocus=this.onFocusEmitter.event,this.onBlur=this.onBlurEmitter.event,this.onZoom=this.onZoomEmitter.event,this.onScroll=this.onScrollEmitter.event,this.playgroundEvents={},this.globalEvents={},this.onResize=this.onResizeEmitter.event,this.toDispose.pushAll([this.onResizeEmitter,this.onFocusEmitter,this.onZoomEmitter,this.onBlurEmitter,this.onScrollEmitter]),this.onFocusEmitter.event(()=>{this._isFocused=!0}),this.onBlurEmitter.event(()=>{this._isFocused=!1})}_listenEvent(e,n,r,i=0,o){const a=r?this.globalEvents:this.playgroundEvents,s=r?document:this.renderer.node.parentNode;let l=a[e];if(!l){const f={handleEvent:p=>{const h=l.handlers;for(let g=0,v=h.length;g<v;g++)if(h[g].handle(p))return}};s.addEventListener(e,f,o),l=a[e]={handlers:[],dispose:()=>{s.removeEventListener(e,f),delete a[e]}}}const{handlers:c}=l,u={handle:n,priority:i};c.unshift(u),c.sort((f,p)=>p.priority-f.priority);const d=ao.create(()=>{const f=l.handlers.indexOf(u);f!==-1&&l.handlers.splice(f,1),l.handlers.length===0&&l.dispose()});return this.toDispose.push(d),d}listenPlaygroundEvent(e,n,r,i){return this._listenEvent(e,n,!1,r,i)}listenGlobalEvent(e,n,r,i){return this._listenEvent(e,n,!0,r,i)}registerLayer(e,n){if(this.allLayersMap.has(e))return;const r=this.layerFactory(e,n);this.allLayersMap.set(e,r);const i=RZn(e),o=IZn(e);if(i.forEach(a=>{this.entityManager.registerEntity(a),Um.isRegistryOf(a,ug)&&this.entityManager.createEntity(a)}),o.forEach(a=>{this.entityManager.registerEntity(a.entity),this.entityManager.registerEntityData(a.data)}),this.selector.subscribeEntities(r,i),o.forEach(a=>this.selector.subscribleEntityByData(r,a.entity,a.data)),r.observeManager=new $Zn(this.entityManager),r.reloadEntities=()=>{const a=this.selector.getLayerData(r);return a.changed&&r.observeManager.load(a.observeEntities,a.observeDatas),a.changed},r.listenPlaygroundEvent=this.listenPlaygroundEvent.bind(this),r.listenGlobalEvent=this.listenGlobalEvent.bind(this),r.config=this.configEntity,r.getOtherLayer=this.getLayer.bind(this),Object.defineProperty(r,"isFocused",{get:()=>this._isFocused}),r.onResize&&this.onResize(r.onResize.bind(r)),r.onBlur&&this.onBlurEmitter.event(r.onBlur.bind(r)),r.onFocus&&this.onFocusEmitter.event(r.onFocus.bind(r)),r.onZoom&&this.onZoomEmitter.event(r.onZoom.bind(r)),r.onScroll&&this.onScrollEmitter.event(r.onScroll.bind(r)),r.onViewportChange){const a=r.onViewportChange.bind(r);this.onResize(a),this.onZoomEmitter.event(a),this.onScrollEmitter.event(a)}r.onReadonlyOrDisabledChange&&this.configEntity.onReadonlyOrDisabledChange(r.onReadonlyOrDisabledChange.bind(r)),this.renderer.addLayer(r)}getLayer(e){return this.allLayersMap.get(e)}get configEntity(){return this.entityManager.getEntity(da,!0)}ready(){const e=this.configEntity;let n=e.finalScale,r=e.scrollData;e.onConfigChanged(()=>{const i=e.finalScale,o=e.scrollData;i!==n&&(n=i,TC.MessageLoop.postMessage(this,FZn)),(r.scrollX!==o.scrollX||r.scrollY!==o.scrollY)&&(r=o,TC.MessageLoop.postMessage(this,BZn))})}processMessage(e){const n=this.configEntity;switch(e.type){case"PIPELINE_SCROLL":this.onScrollEmitter.fire(n.scrollData);break;case"PIPELINE_ZOOM":this.onZoomEmitter.fire(n.finalScale);break}}dispose(){this.toDispose.dispose()}};co([Ot(IC)],Pp.prototype,"renderer",2);co([Ot(yR)],Pp.prototype,"selector",2);co([Ot(Lo)],Pp.prototype,"entityManager",2);co([iN()],Pp.prototype,"context",2);co([Ot(Mme)],Pp.prototype,"layerFactory",2);Pp=co([Pn()],Pp);var jZn=V.createContext({}),Git=V.createContext({}),Wit=V.createContext({}),kV=V.createContext(void 0),oN=Symbol("PlaygroundConfig");function UZn(){return{autoFocus:!0,autoResize:!0,zoomEnable:!0,layers:[]}}var Pme=Symbol("PlaygroundContribution"),NC=class{config(e){Object.assign(this.playgroundConfig,e)}registerLayer(e){this.pipeline.registerLayer(e)}registerEntity(e){this.entityManager.registerEntity(e)}registerEditorState(e){const n=this.entityManager.getEntity(Hm);n==null||n.registerState(e)}};co([Ot(Pp)],NC.prototype,"pipeline",2);co([Ot(Lo)],NC.prototype,"entityManager",2);co([Ot(oN)],NC.prototype,"playgroundConfig",2);NC=co([Pn()],NC);var v0=Symbol("PluginContext");function HZn(e,n){const r=new Set,i=new Set;e.reduceRight((a,s)=>{const l=s.singleton&&i.has(s.pluginId);return s.singleton&&i.add(s.pluginId),l?a:[s,...a]},[]).reduce((a,s)=>{if(r.has(s.pluginId)||(s.initPlugin(),r.add(s.pluginId)),s.containerModules&&s.containerModules.length>0){for(let l of s.containerModules)a.includes(l)||a.push(l);return a}return a},[]).forEach(a=>n.load(a)),e.forEach(a=>{if(a.contributionKeys)for(const s of a.contributionKeys)n.bind(s).toConstantValue(a.options)})}function zZn(e,n){return new Jp(r=>{r(Pme).toDynamicValue(i=>{const o=i.container.get(v0);return{onInit:()=>{var a;(a=e.onInit)==null||a.call(e,o,n)},onReady:()=>{var a;(a=e.onReady)==null||a.call(e,o,n)},onDispose:()=>{var a;(a=e.onDispose)==null||a.call(e,o,n)},onAllLayersRendered:()=>{var a;(a=e.onAllLayersRendered)==null||a.call(e,o,n)}}})})}var gLe=0;function pa(e){const{contributionKeys:n,singleton:r=!1}=e;gLe+=1;const i=`Playground_${gLe}`;return o=>{const a=[];let s=!1;return{pluginId:i,singleton:r,initPlugin:()=>{s||(s=!0,e.containerModules&&a.push(...e.containerModules),e.onBind&&a.push(new Jp((l,c,u,d)=>{e.onBind({bind:l,unbind:c,isBound:u,rebind:d},o)})),(e.onInit||e.onDispose||e.onReady||e.onAllLayersRendered)&&a.push(zZn(e,o)))},options:o,contributionKeys:n,containerModules:a}}}var LV=e=>pa(e)(void 0),AJ=new Set,Yit=new Un,qit=new Un,_u=class{constructor(e,n,r,i,o,a,s,l,c){this.entityManager=e,this.registry=n,this.contextProvider=r,this.pipelineRenderer=i,this.pipelineRegistry=o,this.playgroundConfig=a,this.contributionProvider=s,this.commandService=l,this.selectionService=c,this.toDispose=new Ei,this._focused=!1,this.playgroundClassName=yu(),this.isReady=!1,this.toDispose.pushAll([this.pipelineRenderer,this.pipelineRegistry,this.entityManager,this.commandService,this.selectionService,ao.create(()=>{AJ.delete(this),this.node.remove(),qit.fire(this)}),i.onAllLayersRendered(()=>{this.contributions.forEach(d=>{var f;return(f=d.onAllLayersRendered)==null?void 0:f.call(d,this)})})]);const u=this.entityManager.createEntity(Hm);if(this.entityManager.createEntity(da),this.node=a.node||document.createElement("div"),this.toDispose.pushAll([Tr.addStandardDisposableListener(this.node,"scroll",d=>{this.node.scrollTop=0,this.node.scrollLeft=0,d.preventDefault(),d.stopPropagation()})]),this.node.classList.add("gedit-playground"),this.node.classList.add(this.playgroundClassName),this.node.dataset.testid="sdk.workflow.canvas",a.layers&&a.layers.forEach(d=>this.registry.registerLayer(d)),a.editorStates&&a.editorStates.forEach(d=>u.registerState(d)),a.zoomEnable!==void 0&&(this.zoomEnable=a.zoomEnable),a.entityConfigs)for(const[d,f]of a.entityConfigs){const p=this.entityManager.getEntity(d,!0);p==null||p.updateConfig(f)}this.node.addEventListener("blur",()=>{this.blur()}),this.node.addEventListener("focus",()=>{this.focus()}),this.node.tabIndex=0,this.node.appendChild(this.pipelineRenderer.node),this.onBlur=this.pipelineRegistry.onBlurEmitter.event,this.onFocus=this.pipelineRegistry.onFocusEmitter.event,this.onZoom=this.pipelineRegistry.onZoomEmitter.event,this.onScroll=this.pipelineRegistry.onScrollEmitter.event,AJ.add(this)}static getLatest(){const e=_u.getAllInstances();return e[e.length-1]}static getAllInstances(){const e=[];for(const n of AJ.values())e.push(n);return e}get context(){var e;return(e=this.contextProvider)==null?void 0:e.call(this)}get contributions(){return this.contributionProvider.getContributions()}init(){const{contributions:e}=this;for(const n of e)n.registerPlayground&&n.registerPlayground(this.registry);for(const n of e)n.onInit&&n.onInit(this);Yit.fire(this)}get pipelineNode(){return this.pipelineRenderer.node}setParent(e){e.appendChild(this.node),this.resize()}get zoomEnable(){return this.config.zoomEnable}set zoomEnable(e){this.config.zoomEnable=e}flush(){this.pipelineRenderer.flush()}ready(){if(this.isReady)return;if(this.isReady=!0,this.playgroundConfig.autoResize){const n=Mn.debounce(()=>{this.disposed||this.resize()},0);if(typeof ResizeObserver<"u"){const r=new ResizeObserver(n);r.observe(this.node),this.toDispose.push(ao.create(()=>{r.disconnect()}))}else this.toDispose.push(Tr.addStandardDisposableListener(window.document.body,"resize",n,{passive:!0}));this.toDispose.push(Tr.addStandardDisposableListener(window.document,"scroll",n,{passive:!0})),this.resize()}this.pipelineRegistry.ready(),this.pipelineRenderer.ready();const{contributions:e}=this;for(const n of e)n.onReady&&n.onReady(this)}scrollToView(e){return this.entityManager.getEntity(da).scrollToView(e)}resize(e,n=!0){if(!e){const s=this.node.getBoundingClientRect();e={clientX:s.left,clientY:s.top,width:s.width,height:s.height}}const{width:r,height:i}=this.config.config;if(e.width===0||e.height===0)return;let{scrollX:o,scrollY:a}=this.config.config;n&&r&&Math.round(e.width)!==r&&(o+=(r-e.width)/2),n&&i&&Math.round(e.height)!==i&&(a+=(i-e.height)/2),this.config.updateConfig({...e,scrollX:o,scrollY:a}),this.pipelineRegistry.onResizeEmitter.fire(e)}focus(){this._focused||(this._focused=!0,this.pipelineRegistry.onFocusEmitter.fire())}blur(){this._focused&&(this._focused=!1,this.pipelineRegistry.onBlurEmitter.fire())}get focused(){return this._focused}get config(){return this.entityManager.getEntity(da)}get editorState(){return this.entityManager.getEntity(Hm)}getConfigEntity(e){return this.entityManager.getEntity(e,!0)}dispose(){if(this.disposed)return;const{contributions:e}=this;for(const n of e)n.onDispose&&n.onDispose(this);this.toDispose.dispose()}get disposed(){return this.toDispose.disposed}toReactComponent(){return this.pipelineRenderer.toReactComponent()}registerLayer(e,n){this.pipelineRegistry.registerLayer(e,n)}registerLayers(...e){e.forEach(n=>this.pipelineRegistry.registerLayer(n))}getLayer(e){return this.pipelineRegistry.getLayer(e)}get onAllLayersRendered(){return this.pipelineRenderer.onAllLayersRendered}};_u.onInstanceCreate=Yit.event;_u.onInstanceDispose=qit.event;_u=co([Pn(),Ku(0,Ot(Lo)),Ku(1,Ot(NC)),Ku(2,Ot(Tme)),Ku(2,ss()),Ku(3,Ot(IC)),Ku(4,Ot(Pp)),Ku(5,Ot(oN)),Ku(6,Ot(lme)),Ku(6,Jrt(Pme)),Ku(6,ss()),Ku(7,Ot(AV)),Ku(8,Ot(dg))],_u);function Kit(e){return{container:e,playground:e.get(_u),get(n){return e.get(n)},getAll(n){return e.getAll(n)}}}function Xit(e,n,r={}){const i=e.createChild();i.bind(n).toSelf().inSingletonScope(),i.bind(Vit).toConstantValue(r);const o=i.get(n);return OZn(o),o}var VZn=new Jp(e=>{e(Lo).toSelf().inSingletonScope(),e(IC).toSelf().inSingletonScope(),e(NC).toSelf().inSingletonScope(),e(_u).toSelf().inSingletonScope(),e(yR).toSelf().inSingletonScope(),e(Mme).toDynamicValue(n=>(r,i)=>Xit(n.container,r,i)).inSingletonScope(),e(Pp).toSelf().inSingletonScope(),e($it).toDynamicValue(n=>n.container).inSingletonScope(),e(oN).toConstantValue(UZn()),e(RC).toConstantValue({}),EZn(e),e(bj).toSelf().inSingletonScope(),e(uD).toSelf().inSingletonScope(),e(dg).toSelf().inSingletonScope(),e(MZn).to(_j).inSingletonScope(),e(Hit).to(use).inSingletonScope(),xZn(e,da),cme(e,Pme),e(v0).toDynamicValue(n=>Kit(n.container)).inSingletonScope(),e(SZn).toService(v0)});function Qit(e,n,r){const i=r||new vj({defaultScope:"Singleton"});return n&&(i.parent=n),i.load(VZn),i.isBound(AV)||i.load(iQn),e&&(i.rebind(oN).toConstantValue(e),e.context&&i.rebind(RC).toConstantValue(e.context)),i}var Zit=m.forwardRef(function(n,r){const{containerModules:i,playgroundContext:o,parentContainer:a,playgroundContainer:s,plugins:l,customPluginContext:c,...u}=n,d=m.useMemo(()=>{let p;return s?p=s:(p=Qit({autoFocus:!0,autoResize:!0,zoomEnable:!0,...u},a),o&&p.rebind(RC).toConstantValue(o),i&&i.forEach(h=>p.load(h))),p},[]),f=m.useMemo(()=>{const p=d.get(_u);let h;return c?(h=c(d),d.rebind(v0).toConstantValue(h)):h=d.get(v0),l&&HZn(l(h),d),p.init(),p},[]);return m.useImperativeHandle(r,()=>d.get(v0),[]),V.createElement(Git.Provider,{value:d},V.createElement(Wit.Provider,{value:f},V.createElement(jZn.Provider,{value:o},n.children)))});function ec(){return V.useContext(Wit)}function Ame(){return V.useContext(Git)}function Dme(e=!1){const n=Ame().get(Lo),r=m.useContext(kV);if(!r)throw new Error('[useEntityFromContext] Unknown entity from "PlaygroundEntityContext"');const i=Rd(r.version);return m.useLayoutEffect(()=>{let o;return e&&(o=r.onEntityChange(()=>i(r.version))),()=>o==null?void 0:o.dispose()},[n,i,r,e]),r}function GZn(...e){const n=Rd();m.useLayoutEffect(()=>{const r=new Ei;return r.pushAll(e.map(i=>i(()=>n()))),()=>r.dispose()},[e,n])}function Di(e){return Ame().get(e)}var kme=e=>{const n=ec(),r=Di(oN),i=m.useRef();m.useEffect(()=>{if(i.current)return n.setParent(i.current),n.ready(),r.autoFocus&&n.node.focus(),()=>{n.dispose()}},[]);const o=n.toReactComponent();return V.createElement(V.Fragment,null,V.createElement("div",{ref:i,className:`gedit-playground-container${e.className?` ${e.className}`:""}`,style:e.style}),V.createElement(o,null),e.children?Gl.createPortal(V.createElement(V.Fragment,null,e.children),n.node):null)},mLe;(e=>{const n=Symbol("LayerStateProvider");class r{constructor(c,u,d){this.instance=c,this.playground=u,this.container=d,this.hijackMethod(c,"autorun"),this.hijackMethod(c,"render"),this.hijackMethod(c,"onReady"),this.hijackMethod(c,"onResize"),this.hijackMethod(c,"onFocus"),this.hijackMethod(c,"onBlur"),this.hijackMethod(c,"onZoom"),this.hijackMethod(c,"onScroll"),this.hijackMethod(c,"onViewportChange"),this.hijackMethod(c,"onReadonlyOrDisabledChange")}hijackMethod(c,u){typeof c[u]=="function"&&(this[u]=vi.spyOn(c,u))}}e.LayerTestState=r;function i(l){const c=Qit();return c.bind(n).toConstantValue(new WeakMap),c.rebind(Mme).toDynamicValue(u=>(d,f)=>{const p=Xit(u.container,d,f);return u.container.get(n).set(d,new r(p,c.get(_u),c)),p}),l&&l.forEach(u=>c.load(u)),c}e.createContainer=i;function o(l){return i(l).get(_u)}e.createPlayground=o;function a(l,c){return l.get(n).get(c)}e.getLayerTestState=a;function s(l,c,u){const d=i(u),f=d.get(_u);return f.registerLayer(l,c),f.init(),f.ready(),a(d,l)}e.createLayerTestState=s})(mLe||(mLe={}));var WZn=Object.defineProperty,YZn=Object.getOwnPropertyDescriptor,Zs=(e,n,r,i)=>{for(var o=i>1?void 0:i?YZn(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&WZn(n,r,o),o},Lme=Symbol("NodeContribution"),zm=class{constructor(){this.materialRenderRegistry=new Map,this.pluginRenderRegistry=new Map,this.nodeRenderHocs=[],this.nodeContributions=[]}registerMaterialRender(e,n){this.materialRenderRegistry.set(e,n)}getMaterialRender(e){return this.materialRenderRegistry.get(e)}registerPluginRender(e,n){this.pluginRenderRegistry.set(e,n)}getPluginRender(e){return this.pluginRenderRegistry.get(e)}registerNodeErrorRender(e){this.registerMaterialRender("Material_CustomNodeError",e)}get nodeRenderHoc(){return Mn.flow(this.nodeRenderHocs)}registerNodeRenderHoc(e){this.nodeRenderHocs.push(e)}get nodeErrorRender(){return this.materialRenderRegistry.get("Material_CustomNodeError")}init(){this.nodeContributions.forEach(e=>{var n;return(n=e.onRegister)==null?void 0:n.call(e,this)})}};Zs([C_(Lme),ss()],zm.prototype,"nodeContributions",2);Zs([Zc()],zm.prototype,"init",1);zm=Zs([Pn()],zm);var Of=class{constructor(){this.onChangeEmitter=new Un,this.onChange=this.onChangeEmitter.event,this._readonly=Of.DEFAULT_READONLY,this._json=Of.DEFAULT_JSON}get json(){return this._json}get readonly(){return this._readonly}set readonly(e){this._readonly=e,this.fireChange()}fireChange(){this.updateJSON(),this.onChangeEmitter.fire(this)}updateJSON(){this._json={readonly:this._readonly}}};Of.DEFAULT_READONLY=!1;Of.DEFAULT_JSON={readonly:Of.DEFAULT_READONLY};Of=Zs([Pn()],Of);var dD=class{};Zs([Ot(zm)],dD.prototype,"nodeManager",2);Zs([Ot(Of)],dD.prototype,"context",2);dD=Zs([Pn()],dD);var qZn=new Jp((e,n,r,i)=>{e(dD).toSelf().inSingletonScope(),e(zm).toSelf().inSingletonScope(),e(Of).toSelf().inSingletonScope()}),Sj={FORM:"Plugin_Form",ERROR:"Plugin_Error"},$V={NODE_ERROR_RENDER:"node_error_render",NODE_PLACEHOLDER_RENDER:"node_placeholder_render"},Aw=class extends Pl{getDefaultData(){return{error:null}}setError(e){this.update({error:e})}getError(){return this.data.error}};Aw.type="FlowNodeErrorData";var KZn={color:"#f54a45"},XZn=({error:e})=>V.createElement("div",{style:KZn},e.message),QZn=({node:e,playgroundContext:n})=>{const r=Rd(),i=e.getData(Aw),o=i.getError(),s=Di(zm).getMaterialRender($V.NODE_ERROR_RENDER),l=m.useCallback(()=>s?s({error:o,context:{node:e,playgroundContext:n}}):XZn({error:o,context:{node:e,playgroundContext:n}}),[o,e,n]);return m.useEffect(()=>{const c=i.onDataChange(()=>{r()});return()=>{c.dispose()}},[]),o?l():null},ZZn=e=>V.createElement(QZn,{...e}),dse=class{onRegister(e){e.registerPluginRender(Sj.ERROR,ZZn)}};dse=Zs([Pn()],dse);var JZn=new Jp(e=>{XL(e,dse,[Lme])});function eJn(e){return e.getData(Aw).getError()}var bR=class{makeFormItemMaterialContext(e,n){return{meta:e.meta,path:e.path,readonly:this.nodeEngineContext.readonly,getFormItemValueByPath:e.formModel.getFormItemValueByPath.bind(e.formModel),onFormValidate:e.formModel.onValidate.bind(e.formModel),form:e.formModel,node:e.formModel.flowNodeEntity,playgroundContext:this.playgroundContext,index:n==null?void 0:n.getIndex()}}};Zs([Ot(Of)],bR.prototype,"nodeEngineContext",2);Zs([iN()],bR.prototype,"playgroundContext",2);bR=Zs([Pn()],bR);var Sa=class{static normalize(e){return e===Sa.ROOT||e.endsWith(Sa.DIVIDER)&&(e=e.slice(0,-1)),e}static join(e){if(e[1].startsWith(Sa.ROOT))throw new Error(`FormPathService Error: join failed, invalid paths[1], paths[1]= ${e[1]}`);return e[0].endsWith(Sa.DIVIDER)?`${e[0]}${e[1]}`:e.join(Sa.DIVIDER)}static toArrayPath(e){return Sa.join([e,Sa.ARRAY])}static parseArrayItemPath(e){const n=e.split("/");let r=0;for(;r<n.length;){const i=parseInt(n[r]);if(!isNaN(i)){const o=Sa.toArrayPath(n.slice(0,r).join(Sa.DIVIDER)),a=n.slice(r+1).join(Sa.DIVIDER),s=Sa.join([o,a]);return{itemIndex:i,arrayPath:o,itemMetaPath:s}}r=r+1}return null}simplify(e){const n=e.split(Sa.DIVIDER),r=[];for(let i=0;i<n.length;i++){if(!n[i])throw new Error("FormPathService: join failed");n[i]!==Sa.RELATIVE_CURRENT&&(n[i]===Sa.RELATIVE_PARENT&&r.pop(),r.push(n[i]))}return r.join(Sa.DIVIDER)}};Sa.ROOT="/";Sa.DIVIDER="/";Sa.RELATIVE_PARENT="..";Sa.RELATIVE_CURRENT=".";Sa.ARRAY="[]";Sa=Zs([Pn()],Sa);var fse=class{constructor(){this.toDispose=new Ei}};fse=Zs([Pn()],fse);var pse=class{constructor(){this.registry=new Map}register(e){this.registry.set(e.key,e)}get(e){return this.registry.get(e)}get objectMap(){return Object.fromEntries(this.registry)}get collection(){return Array.from(this.registry.values())}};pse=Zs([Pn()],pse);var tJn=Symbol("FormContribution"),Jit=class eot{get type(){return eot.type}};Jit.type="setter";var tot=Jit,not=class rot{get type(){return rot.type}};not.type="decorator";var iot=not,oot=class aot{get type(){return aot.type}};oot.type="effect";var nJn=oot,sot=class lot{get type(){return lot.type}};sot.type="validation";var rJn=sot,Ap=class{constructor(){this.abilityRegistry=new Map,this.setterHocs=[],this.extensionRegistryMap=new Map,this.formContributions=[],this.onFormModelWillInitEmitter=new Un,this.onFormModelWillInit=this.onFormModelWillInitEmitter.event}get components(){var e;return Mn.mapValues(((e=this.extensionRegistryMap.get(tot.type))==null?void 0:e.objectMap)||{},n=>n.component)}get decorators(){var e;return Mn.mapValues(((e=this.extensionRegistryMap.get(iot.type))==null?void 0:e.objectMap)||{},n=>n.component)}registerAbilityExtension(e,n){this.extensionRegistryMap.get(e)||this.extensionRegistryMap.set(e,new pse);const r=this.extensionRegistryMap.get(e);r&&r.register(n)}getAbilityExtension(e,n){var r;return(r=this.extensionRegistryMap.get(e))==null?void 0:r.get(n)}registerAbility(e){const n=new e;this.abilityRegistry.set(n.type,n)}registerAbilities(e){e.forEach(this.registerAbility.bind(this))}getAbility(e){return this.abilityRegistry.get(e)}registerSetterHoc(e){this.setterHocs.push(e)}fireFormModelWillInit(e,n){this.onFormModelWillInitEmitter.fire({model:e,data:n})}dispose(){this.onFormModelWillInitEmitter.dispose()}init(){this.formContributions.forEach(e=>{var n;return(n=e.onRegister)==null?void 0:n.call(e,this)})}};Zs([Ot(Sa)],Ap.prototype,"pathManager",2);Zs([Ot(bR)],Ap.prototype,"formContextMaker",2);Zs([iN()],Ap.prototype,"playgroundContext",2);Zs([C_(tJn),ss()],Ap.prototype,"formContributions",2);Zs([Zc()],Ap.prototype,"init",1);Ap=Zs([Pn()],Ap);var ls=class extends Pl{constructor(e,n){super(e),this.onDetailChangeEmitter=new Un,this.onDetailChange=this.onDetailChangeEmitter.event,this.flowNodeEntity=e,this.formModel=n.formModelFactory(e),this.toDispose.push(this.onDetailChangeEmitter),this.toDispose.push(ao.create(()=>{this.formModel.dispose()}))}getFormModel(){return this.formModel}getDefaultData(){return{}}createForm(e,n){const r=this.flowNodeEntity.getData(Aw);r.setError(null);try{this.formModel.init(e,n)}catch(i){r.setError(i)}}recreateForm(e,n){this.createForm(e,n)}toJSON(){return this.formModel.toJSON()}dispose(){super.dispose()}fireDetaiChange(e){this.onDetailChangeEmitter.fire(e)}};ls.type="FlowNodeEntityFormData";function iJn(e){var n;return(n=e.getData(ls))==null?void 0:n.getFormModel()}function oJn({node:e}){const n=Rd(),r=iJn(e);return m.useEffect(()=>{const i=r==null?void 0:r.onInitialized(()=>{n()});return()=>{i.dispose()}},[r]),r!=null&&r.initialized?r.render():null}var aJn=e=>V.createElement(oJn,{...e}),hse=class{onRegister(e){e.registerPluginRender(Sj.FORM,aJn)}};hse=Zs([Pn()],hse);var sJn=new Jp(e=>{e(Ap).toSelf().inSingletonScope(),e(Sa).toSelf().inSingletonScope(),e(bR).toSelf().inSingletonScope(),XL(e,hse,[Lme])});function lJn(e){return e.getData(ls).getFormModel().initialized}function cJn(e){return e.getData(ls).formModel}function uJn(){return[qZn,sJn,JZn]}var dJn=V.createContext(Of.DEFAULT_JSON);function fJn(){const e=Rd(),n=Di(Of);return m.useEffect(()=>{const r=n.onChange(()=>{e()});return()=>{r.dispose()}},[]),n}var pJn=({node:e})=>{const n=Rd(),r=e.getData(Aw),i=cJn(e),o=!!eJn(e),a=lJn(e),s=Di(RC),l=Di(zm),c=l.getPluginRender(Sj.FORM),u=l.getPluginRender(Sj.ERROR),d=l.getMaterialRender($V.NODE_PLACEHOLDER_RENDER),f=fJn();m.useEffect(()=>{const h=r.onDataChange(()=>{n()}),g=i.onInitialized(()=>{n()});return()=>{h.dispose(),g.dispose()}},[]);const p=m.useCallback(()=>o?u({node:e,playgroundContext:s}):i.formMeta?a?c({node:e,playgroundContext:s}):(d==null?void 0:d({node:e,playgroundContext:s}))||null:null,[o,a,u,c,d,e,s]);return V.createElement(dJn.Provider,{value:f.json},l.nodeRenderHoc(p)())},hJn=m.memo(pJn);function gJn(e,n){e.registerMaterialRender($V.NODE_ERROR_RENDER,n)}function mJn(e,n){e.registerMaterialRender($V.NODE_PLACEHOLDER_RENDER,n)}function vJn(){return[ls,Aw]}var SR;(e=>{const n=[],r=[];let i=!1,o=!1,a=!1,s,l=!1;function c(C,x){if(l)throw x;console.error(`[Tracker error] ${C}`,x)}function u(C){if(_())throw new Error("Can't call Tracker.flush while flushing");if(a)throw new Error("Can't flush inside Tracker.autorun");C=C||{},o=!0,i=!0,l=!!C.throwFirstError;var x=0,T=!1;try{for(;n.length||r.length;){for(;n.length;){var R=n.shift();if(R._recompute(),R._needsRecompute()&&n.unshift(R),!C.finishSynchronously&&++x>100){T=!0;return}}if(r.length){var O=r.shift();try{O()}catch(M){c("afterFlush",M)}}}T=!0}finally{if(T||(o=!1,u({finishSynchronously:C.finishSynchronously,throwFirstError:!1})),i=!1,o=!1,n.length||r.length){if(C.finishSynchronously)throw new Error("still have more to do?");setTimeout(d,10)}}}function d(){i||(setTimeout(u,0),i=!0)}function f(C,x){let T=s;s=C;try{return x.call(null,C)}finally{s=T}}e.withComputation=f;function p(C){let x=s;s=void 0;try{return C(void 0)}finally{s=x}}e.withoutComputation=p;function h(){return!!s}e.isActive=h;function g(){return s}e.getCurrentComputation=g;function v(C,x){var T=new E(C,s,x==null?void 0:x.onError);return h()&&e.onInvalidate(function(){T.stop()}),T}e.autorun=v;function y(C){if(!s)throw new Error("Tracker.onInvalidate requires a currentComputation");s.onInvalidate(C)}e.onInvalidate=y;function _(){return o}e.inFlush=_;function S(C){u({finishSynchronously:!0,throwFirstError:C&&C.throwFirstError})}e.flush=S;function b(C){r.push(C),d()}e.afterFlush=b;class E{constructor(x,T,R){this._fn=x,this.parent=T,this._onError=R,this._onInvalidateCallbacks=[],this._onStopCallbacks=[],this._recomputing=!1,this.stopped=!1,this.invalidated=!1,this.firstRun=!0;let O=!0;try{this._compute(),O=!1}finally{this.firstRun=!1,O&&this.stop()}}onInvalidate(x){this.invalidated?p(x.bind(null,this)):this._onInvalidateCallbacks.push(x)}invalidate(){if(!this.invalidated){!this._recomputing&&!this.stopped&&(d(),n.push(this)),this.invalidated=!0;for(var x=0,T;T=this._onInvalidateCallbacks[x];x++)p(T.bind(null,this));this._onInvalidateCallbacks=[]}}stop(){if(!this.stopped){this.stopped=!0,this.invalidate();for(let x=0,T;T=this._onStopCallbacks[x];x++)p(T.bind(null,this));this._onStopCallbacks=[]}}onStop(x){this.stopped?p(x.bind(null,this)):this._onStopCallbacks.push(x)}_compute(){this.invalidated=!1;var x=a;a=!0;try{this._result=e.withComputation(this,this._fn)}finally{a=x}}_needsRecompute(){return this.invalidated&&!this.stopped}_recompute(){this._recomputing=!0;try{if(this._needsRecompute())try{this._compute()}catch(x){this._onError?this._onError(x):c("recompute",x)}}finally{this._recomputing=!1}}flush(){this._recomputing||this._recompute()}run(){this.invalidate(),this.flush()}get result(){return this._result}}e.Computation=E;class w{constructor(){this._dependents=new Set}depend(x){if(!x){if(!h())return!1;x=s}return this._dependents.has(x)?!1:(this._dependents.add(x),x.onInvalidate(()=>{this._dependents.delete(x)}),!0)}changed(){for(const x of this._dependents)x.invalidate()}hasDependents(){return this._dependents.size!==0}}e.Dependency=w})(SR||(SR={}));var yJn=class{constructor(e,n){this._dep=new SR.Dependency,this._isEqual=(r,i)=>r==i,this._value=e,n!=null&&n.isEqual&&(this._isEqual=n.isEqual)}_addDepend(e){SR.isActive()&&e.depend()}hasDependents(){return this._dep.hasDependents()}get value(){return this._addDepend(this._dep),this._value}set value(e){this._isEqual(this._value,e)||(this._value=e,this._dep.changed())}};function gse(e,n){if("Proxy"in window)return new Proxy(e,n);const i={};for(const o in e)Object.defineProperty(i,o,{enumerable:!0,get:n.get?()=>n.get(e,o):void 0,set:n.set?a=>n.set(e,o,a):void 0});return i}var _Jn=SR.Dependency,cot=class extends yJn{constructor(){super(...arguments),this._keyDeps=new Map}set(e,n){this._ensureKey(e);const r=this._value[e];return this._isEqual(r,n)?!1:(this._value[e]=n,this._keyDeps.get(e).changed(),!0)}get(e){return this._ensureKey(e),this._addDepend(this._keyDeps.get(e)),this._value[e]}_ensureKey(e){this._keyDeps.has(e)||this._keyDeps.set(e,new _Jn)}hasDependents(){if(this._dep.hasDependents())return!0;for(const e of this._keyDeps.values())if(e.hasDependents())return!0;return!1}keys(){return Object.keys(this._value)}set value(e){this._isEqual(this._value,e)||(this._value=e,this._keyDeps.clear(),this._dep.changed())}get value(){return this._addDepend(this._dep),this._proxyValue||(this._proxyValue=gse(this._value,{get:(e,n)=>this.get(n),set:(e,n,r)=>(this.set(n,r),!0)})),this._proxyValue}get readonlyValue(){return this._addDepend(this._dep),this._proxyReadonlyValue||(this._proxyReadonlyValue=gse(this._value,{get:(e,n)=>this.get(n),set:(e,n)=>{throw new Error(`[ReactiveState] Cannnot set readonly field "${n}"`)}})),this._proxyReadonlyValue}};function uot(e){const n=Rd(),r=m.useMemo(()=>new Map,[]),i=m.useCallback(()=>{r.forEach(o=>o.stop()),r.clear()},[]);return m.useEffect(()=>i,[]),i(),m.useMemo(()=>e===void 0?{}:gse(e,{get(o,a){let s=r.get(a);return s||(s=new SR.Computation(l=>{if(!l.firstRun){n();return}return e[a]}),r.set(a,s)),e[a]}}),[e])}function Ej(e){return uot(e.readonlyValue)}var bJn=e=>e!==null&&typeof e=="object",SJn=e=>String(Math.floor(Number(e)))===e;function EJn(e,n,r,i=0){const o=Mn.toPath(n);for(;e&&i<o.length;)e=e[o[i++]];return i!==o.length&&!e||e===void 0?r:e}function CJn(e,n,r){let i=Mn.clone(e),o=i,a=0,s=Mn.toPath(n);for(;a<s.length-1;a++){const l=s[a];let c=EJn(e,s.slice(0,a+1));if(c&&(bJn(c)||Array.isArray(c)))o=o[l]=Mn.clone(c);else{const u=s[a+1];o=o[l]=SJn(u)&&Number(u)>=0?[]:{}}}return(a===0?e:o)[s[a]]===r?e:(o[s[a]]=r,i)}function d5(e,n){const r=new Set(n),i={};return Object.keys(e).forEach(o=>{r.has(o)&&(i[o]=e[o])}),i}function wJn(e){return typeof e=="object"&&e!==null&&"target"in e&&typeof e.target=="object"}function xJn(e){return typeof e=="object"&&e!==null&&"target"in e&&typeof e.target=="object"&&e.target.type==="checkbox"}var ay;(e=>{e.DIVIDER=".",e.ALL="*";function n(u,d){const f=u.split(e.DIVIDER),p=d.split(e.DIVIDER);return f.length!==p.length?!1:f.every((h,g)=>h===e.ALL?!0:h===p[g])}e.isMatch=n;function r(u,d){if(u==="")return!0;const f=u.split(e.DIVIDER),p=d.split(e.DIVIDER);if(f.length>p.length)return!1;for(let h=0;h<f.length;h++)if(f[h]!==e.ALL&&f[h]!==p[h])return!1;return!0}e.isMatchOrParent=r;function i(u,d){const f=u.split(e.DIVIDER);return d.split(e.DIVIDER).slice(0,f.length).join(e.DIVIDER)}e.getParentPathByPattern=i;function o(u,...d){const f=d.shift();if(f===void 0)return u.toString();let p="";return u===""&&f===""?p="":u!==""&&f===""?p=u.toString():u===""&&f!==""?p=f.toString():p=`${u}${e.DIVIDER}${f}`,d.length>0?o(p,...d):p}function a(u,d){return!d||typeof d!="object"?[]:Mn.flatten(u.map(f=>{const p=f===""?d:Mn.get(d,f);return Mn.isArray(p)?p.map((h,g)=>o(f,g)):Mn.isObject(p)?Object.keys(p).map(h=>o(f,h)):[]}))}e.getSubPaths=a;function s(u){const d=u.split(e.DIVIDER),f=[];let p=0,h=[];for(;p<d.length;)d[p]===e.ALL?(h.length&&f.push(h.join(e.DIVIDER)),f.push(e.ALL),h=[]):h.push(d[p]),p+=1;return h.length&&f.push(h.join(e.DIVIDER)),f}e.splitPattern=s;function l(u,d,f){if(!u||!d)return[];const p=d.split(e.DIVIDER);let h=p.shift(),g=[],v=u;for(;h;){if(!(typeof v=="object"))return[];if(h===e.ALL){const _=g.join(e.DIVIDER);return Mn.flatten(Object.keys(v).map(S=>p.length===0?o(_,S):l(v[S],`${p.join(e.DIVIDER)}`,f).map(b=>o(_,S,b))))}if(!(h in v)&&!f)return[];v=v[h],g.push(h),h=p.shift()}return[d]}e.findMatchPaths=l;function c(u,d){return d.includes("*")?l(u,d,!0):[d]}e.findMatchPathsWithEmptyValue=c})(ay||(ay={}));var n$=(e=>(e.onChange="onChange",e.onBlur="onBlur",e))(n$||{}),od=class $E{constructor(n){this._path=[],this._path=Mn.toPath(n)}get parent(){if(!(this._path.length<2))return new $E(this._path.slice(0,-1))}toString(){return this._path.join(".")}get value(){return this._path}isChild(n){const r=new $E(n).value,i=this.value;if(r.length-i.length!==1)return!1;for(let o=0;o<i.length;o++)if(r[o]!==i[o])return!1;return!0}static compareArrayPath(n,r){let i=0;for(;n.value[i]&&r.value[i];){const o=parseInt(n.value[i]),a=parseInt(r.value[i]);if(!isNaN(o)&&!isNaN(a))return o-a;if(n.value[i]!==r.value[i])throw new Error(`[Form] Path.compareArrayPath invalid input Error: two path should refers to the same array, but got path1: ${n.toString()}, path2: ${r.toString()}`);i++}throw new Error(`[Form] Path.compareArrayPath invalid input Error: got path1: ${n.toString()}, path2: ${r.toString()}`)}isChildOrGrandChild(n){const r=new $E(n).value,i=this.value;if(r.length-i.length<1)return!1;for(let o=0;o<i.length;o++)if(r[o]!==i[o])return!1;return!0}getArrayIndex(n){return parseInt(this._path[n.value.length])}concat(n){if(typeof n=="string"||typeof n=="number")return new $E(this._path.concat(new $E(n.toString())._path));throw new Error(`[Form] Error in Path.concat: invalid param type, require number or string, but got ${typeof n}`)}replaceParent(n,r){if(n.value.length>this.value.length)throw new Error(`[Form] Error in Path.replaceParent: invalid parent param: ${n}, parent length should not greater than current length.`);const i=[];for(let o=0;o<this.value.length;o++){if(o<n.value.length&&n.value[o]!==this.value[o])throw new Error(`[Form] Error in Path.replaceParent: invalid parent param: '${n}' is not a parent of '${this.toString()}'`);o>=n.value.length&&i.push(this.value[o])}return new $E(r.value.concat(i))}};function vLe(e,n){return(e||[]).map(r=>({...r,name:n}))}function OT(e,n){return n?e?Object.keys(n).some(i=>!Mn.isEqual(e[i],n[i]))?{...e,...n}:e:{...n}:e}function f5(e,n){return n&&(e in n&&delete n[e],n)}function dot(e,n){return e===n}function TJn(e){return e?Object.keys(e).every(n=>Mn.isEmpty(e[n])):!0}var Cj;(e=>{function n(i,o){var l;const{name:a,options:s}=i;return ay.isMatchOrParent(o,a)?!0:new od(a).isChildOrGrandChild(o)?(s==null?void 0:s.action)==="array-append"?!new od(a).isChildOrGrandChild(o):(s==null?void 0:s.action)==="array-splice"&&((l=s==null?void 0:s.indexes)!=null&&l.length)?od.compareArrayPath(new od(o),new od(a).concat(s.indexes[0]))>=0:!0:!1}e.shouldTriggerFieldChangeEvent=n;function r(i,o){const{name:a,options:s}=i;return(s==null?void 0:s.action)==="array-splice"||(s==null?void 0:s.action)==="array-swap"?o===a:e.shouldTriggerFieldChangeEvent(i,o)}e.shouldTriggerFieldValidateWhenChange=r})(Cj||(Cj={}));function wj(e){const n={get name(){return e.name},get value(){return e.value},onChange:r=>{wJn(r)?e.value=xJn(r)?r.target.checked:r.target.value:e.value=r},onBlur(){dot("onBlur",e.form.validationTrigger)&&e.validate()},onFocus(){e.state.isTouched=!0}};return Object.defineProperty(n,"key",{enumerable:!1,get(){return e.id}}),Object.defineProperty(n,"_fieldModel",{enumerable:!1,get(){return e}}),n}function fot(e){return{get isTouched(){return e.isTouched},get invalid(){return e.invalid},get isDirty(){return e.isDirty},get isValidating(){return e.isValidating},get errors(){if(e.errors)return Object.values(e.errors).reduce((n,r)=>n.concat(r),[])},get warnings(){if(e.warnings)return Object.values(e.warnings).reduce((n,r)=>n.concat(r),[])}}}function SP(e){const n={initialValues:e.initialValues,get values(){return e.values},set values(r){e.values=r},state:$me(e.state),getValueIn:r=>e.getValueIn(r),setValueIn:(r,i)=>e.setValueIn(r,i),validate:e.validate.bind(e)};return Object.defineProperty(n,"_formModel",{enumerable:!1,get(){return e}}),n}function $me(e){return{get isTouched(){return e.isTouched},get invalid(){return e.invalid},get isDirty(){return e.isDirty},get isValidating(){return e.isValidating},get errors(){return e.errors},get warnings(){return e.warnings}}}var pot=V.createContext({}),hot=V.createContext({});function Fme(){return m.useContext(pot)}function Vm({name:e,defaultValue:n,render:r,children:i,deps:o}){const a=Fme(),s=a.getField(e)||a.createField(e),l=m.useMemo(()=>wj(s),[s]),c=Ej(s.reactiveState),u=Ej(a.reactiveState),d=m.useMemo(()=>fot(c),[c]),f=$me(u),p=Rd();m.useEffect(()=>{s.renderCount=s.renderCount+1,!a.getValueIn(e)!==void 0&&n!==void 0&&(a.setInitValueIn(e,n),p());const g=new Ei;return g.push(s.onValueChange(()=>{p()})),o&&o.forEach(v=>{var _;const y=(_=a.getField(v))==null?void 0:_.onValueChange(()=>{p()});y&&g.push(y)}),()=>{g.dispose(),s.renderCount>1?s.renderCount=s.renderCount-1:a.getField(s.name)===s&&s.dispose()}},[s]);const h=()=>r?r({field:l,fieldState:d,formState:f}):Mn.isFunction(i)?i({field:l,fieldState:d,formState:f}):m.cloneElement(i,{...l});return m.createElement(hot.Provider,{value:s},h())}function got(e){const n={get key(){return e.id},get name(){return e.path.toString()},get value(){return e.value},onChange:r=>{e.value=r},map:r=>e.map((i,o)=>r(wj(i),o)),append:r=>wj(e.append(r)),delete:r=>e.delete(r),remove:r=>e.delete(r),swap:(r,i)=>e.swap(r,i),move:(r,i)=>e.move(r,i)};return Object.defineProperty(n,"_fieldModel",{enumerable:!1,get(){return e}}),n}function mot(e,n){if(typeof e=="string")return{name:n,message:e,level:"error"};if(e!=null&&e.message)return{...e,name:n}}function yLe(e,n){return{[e]:n?[n]:[]}}var OJn=e=>Object.keys(e).some(n=>{var r;return((r=e[n])==null?void 0:r.length)>0}),T2={invalid:!1,isDirty:!1,isTouched:!1,isValidating:!1},RJn={invalid:!1,isDirty:!1,isTouched:!1,isValidating:!1};function IJn(e){return{...RJn}}function NJn(e){return{...T2}}var MJn=class{get values(){return this._values}set values(e){this._values=e}setInitialValues(e){this._values=e}setIn(e,n){this._values=CJn(this._values||{},e.toString(),n)}getIn(e){return Mn.get(this._values,e.value)}dispose(){}},vot=class{constructor(e,n){this.onValueChangeEmitter=new Un,this.onValueChange=this.onValueChangeEmitter.event,this.toDispose=new Ei,this._state=new cot(NJn()),this._renderCount=0,this._mount=!1,this._path=e,this.form=n,this.id=yu();const r=this.form.onFormValuesChange(i=>{const{values:o,prevValues:a}=i;Cj.shouldTriggerFieldChangeEvent(i,this.name)&&(this.onValueChangeEmitter.fire({value:Mn.get(o,this.name),prevValue:Mn.get(a,this.name),formValues:o,prevFormValues:a}),dot("onChange",this.form.validationTrigger)&&Cj.shouldTriggerFieldValidateWhenChange(i,this.name)&&this.validate())});this.toDispose.push(r),this.toDispose.push(this.onValueChangeEmitter),this.initState()}get renderCount(){return this._renderCount}set renderCount(e){this._renderCount=e}initState(){const e=Mn.get(this.form.state.errors,this.name),n=Mn.get(this.form.state.warnings,this.name);e&&(this.state.errors={[this.name]:e}),n&&(this.state.warnings={[this.name]:n})}get path(){return this._path}get name(){return this._path.toString()}set name(e){this._path=new od(e)}get ref(){return this._ref}set ref(e){this._ref=e}get state(){return this._state.value}get reactiveState(){return this._state}get value(){return this.form.getValueIn(this.name)}set value(e){this.form.setValueIn(this.name,e),this.state.isTouched||(this.state.isTouched=!0,this.bubbleState())}updateNameForLeafState(e){var a,s;const{errors:n,warnings:r}=this.state,i=n?(a=Object.keys(n))==null?void 0:a[0]:void 0;i&&(n!=null&&n[i])&&i!==e&&(this.state.errors={[e]:n!=null&&n[i]?vLe(n==null?void 0:n[i],e):n==null?void 0:n[i]});const o=r?(s=Object.keys(r))==null?void 0:s[0]:void 0;o&&(r!=null&&r[o])&&o!==e&&(this.state.warnings={[e]:r!=null&&r[o]?vLe(r==null?void 0:r[o],e):r==null?void 0:r[o]})}updateValidate(e,n){n==="ui"?this.originalValidate||(this.originalValidate=e):this.originalValidate=e}bubbleState(){const{errors:e,warnings:n}=this.state;if(this.parent){this.parent.state.isTouched=Mn.some(this.parent.children.map(r=>r.state.isTouched),Boolean),this.parent.state.invalid=Mn.some(this.parent.children.map(r=>r.state.invalid),Boolean),this.parent.state.isDirty=Mn.some(this.parent.children.map(r=>r.state.isDirty),Boolean),this.parent.state.isValidating=Mn.some(this.parent.children.map(r=>r.state.isValidating),Boolean),this.parent.state.errors=e?OT(this.parent.state.errors,e):f5(this.name,this.parent.state.errors),this.parent.state.warnings=n?OT(this.parent.state.warnings,n):f5(this.name,this.parent.state.warnings),this.parent.bubbleState();return}this.form.state.isTouched=Mn.some(this.form.fields.map(r=>r.state.isTouched),Boolean),this.form.state.invalid=Mn.some(this.form.fields.map(r=>r.state.invalid),Boolean),this.form.state.isDirty=Mn.some(this.form.fields.map(r=>r.state.isDirty),Boolean),this.form.state.isValidating=Mn.some(this.form.fields.map(r=>r.state.isValidating),Boolean),this.form.state.errors=e?OT(this.form.state.errors,e):f5(this.name,this.form.state.errors),this.form.state.warnings=n?OT(this.form.state.warnings,n):f5(this.name,this.form.state.warnings)}clearState(){this.state.errors=T2.errors,this.state.warnings=T2.warnings,this.state.isTouched=T2.isTouched,this.state.isDirty=T2.isDirty,this.bubbleState()}get children(){const e=[];return this.form.fieldMap.forEach((n,r)=>{this.path.isChild(r)&&e.push(n)}),e}get parent(){const e=this.path.parent;if(e)return this.form.fieldMap.get(e.toString())}clear(){this.value&&(this.value=void 0)}async validate(){await this.validateSelf()}async validateSelf(){this.state.isValidating=!0,this.bubbleState();const{errors:e,warnings:n}=await this._runAsyncValidate();e!=null&&e.length?(this.state.errors=Mn.groupBy(e,"name"),this.state.invalid=!0):(this.state.errors={[this.name]:[]},this.state.invalid=!1),n!=null&&n.length?this.state.warnings=Mn.groupBy(n,"name"):this.state.warnings={[this.name]:[]},this.state.isValidating=!1,this.bubbleState(),this.form.onValidateEmitter.fire(this.form.state)}async _runAsyncValidate(){let e=[],n=[];const r=await this.form.validateIn(this.name);if(r!=null&&r.length){const i=r.map(a=>mot(a,this.name)).filter(Boolean);if(!(i!=null&&i.length))return{};const o=Mn.groupBy(i,"level");n=n.concat(o.warning),e=e.concat(o.error)}else return{};return{errors:e,warnings:n}}updateState(e){}dispose(){this.children.map(e=>e.dispose()),this.toDispose.dispose(),this.form.fieldMap.delete(this.path.toString())}onDispose(e){this.toDispose.onDispose(e)}},xj=class extends vot{constructor(){super(...arguments),this.onAppendEmitter=new Un,this.onAppend=this.onAppendEmitter.event,this.onDeleteEmitter=new Un,this.onDelete=this.onDeleteEmitter.event}get children(){const e=[];return this.form.fieldMap.forEach((n,r)=>{this.path.isChild(r)&&e.push(n)}),e.sort((n,r)=>{const i=n.path.value,o=r.path.value,a=parseInt(i[i.length-1]),s=parseInt(i[o.length-1]);return a-s})}map(e){return(this.value||[]).map((r,i)=>{const o=this.path.concat(i).toString();let a=this.form.getField(o);return a||(a=this.form.createField(o)),a}).map(e)}append(e){var s;const n=((s=this.value)==null?void 0:s.length)||0,r=this.path.concat(n).toString(),i=this.form.createField(r),o=this.value?[...this.value,e]:[e],a=this.form.values;return this.form.store.setIn(new od(this.name),o),this.form.fireOnFormValuesChange({values:this.form.values,prevValues:a,name:this.name,options:{action:"array-append",indexes:[n]}}),this.form.fireOnFormValuesInit({values:this.form.values,prevValues:a,name:r}),this.onAppendEmitter.fire({value:e,arrayValue:this.value,index:this.value.length-1}),i}delete(e){this._splice(e,1),this.onDeleteEmitter.fire({arrayValue:this.value,index:e})}_splice(e,n=1){var c;if(e<0||n<0)throw new Error("[Form] Error in FieldArrayModel.splice: Invalid Params, start and deleteCount should > 0");if(!this.value||this.value.length===0||n>this.value.length)throw new Error(`[Form] Error in FieldArrayModel.splice: delete count exceeds array length, tried to delete ${n} elements, but array length is ${((c=this.value)==null?void 0:c.length)||0}`);const r=this.form.values,i=[...this.value];i.splice(e,n),this.form.store.setIn(new od(this.name),i),this.form.fireOnFormValuesChange({values:this.form.values,prevValues:r,name:this.name,options:{action:"array-splice",indexes:Array.from({length:n},(u,d)=>d+e)}});const o=this.children;if(e+n>=o.length)for(let u=e;u<o.length;u++)this.form.disposeField(o[u].name);const a=[],s=new Map(this.form.fieldMap),l=(u,d)=>{var f;if((f=u.children)!=null&&f.length&&u.children.forEach(p=>{l(p,d)}),d<e)s.set(u.name,u);else if(d<e+n)a.push(u);else{const p=u.name,h=u.path.replaceParent(this.path.concat(d),this.path.concat(d-n)).toString();s.set(h,u),u.children.length||(u.updateNameForLeafState(h),u.bubbleState()),u.name=h,d>o.length-n-1&&s.delete(p)}};o.map((u,d)=>{l(u,d)}),a.forEach(u=>{u.dispose()}),this.form.fieldMap=s,this.form.alignStateWithFieldMap()}swap(e,n){if(!this.value)return;if(e<0||n<0||e>this.value.length-1||n>this.value.length-1)throw new Error(`[Form]: FieldArrayModel.swap Error: invalid params 'form' and 'to', form=${e} to=${n}. expect the value between 0 to ${length-1}`);const r=this.form.values,i=[...this.value],o=i[e],a=i[n];i[n]=o,i[e]=a,this.form.store.setIn(this.path,i),this.form.fireOnFormValuesChange({values:this.form.values,prevValues:r,name:this.name,options:{action:"array-swap",indexes:[e,n]}});const s=new Map(this.form.fieldMap),l=this.findAllFieldsAt(e),c=this.findAllFieldsAt(n),u=this.getPathAt(e),d=this.getPathAt(n),f=[];l.forEach(p=>{const h=p.path.replaceParent(u,d).toString();p.name=h,p.children.length||(p.updateNameForLeafState(h),f.push(p)),s.set(h,p)}),c.forEach(p=>{const h=p.path.replaceParent(d,u).toString();p.name=h,p.children.length||p.updateNameForLeafState(h),s.set(h,p),f.push(p)}),this.form.fieldMap=s,f.forEach(p=>p.bubbleState()),this.form.alignStateWithFieldMap()}move(e,n){if(!this.value)return;if(e<0||n<0||e>this.value.length-1||n>this.value.length-1)throw new Error(`[Form]: FieldArrayModel.move Error: invalid params 'form' and 'to', form=${e} to=${n}. expect the value between 0 to ${length-1}`);const r=[...this.value],i=r[e];r.splice(e,1),r.splice(n,0,i),this.form.setValueIn(this.name,r)}insertAt(e,n){if(!this.value)return;if(e<0||e>this.value.length)throw new Error("[Form]: FieldArrayModel.insertAt Error: index exceeds array boundary");const r=[...this.value];r.splice(e,0,n),this.form.setValueIn(this.name,r)}getPathAt(e){return this.path.concat(e)}findAllFieldsAt(e){const n=this.getPathAt(e),r=n.toString(),i=this.form.fieldMap.get(r)?[this.form.fieldMap.get(r)]:[];return this.form.fieldMap.forEach((o,a)=>{n.isChildOrGrandChild(a)&&i.push(o)}),i}},PJn=class{constructor(){this._fieldMap=new Map,this.store=new MJn,this._options={},this.onFieldModelCreateEmitter=new Un,this.onFieldModelCreate=this.onFieldModelCreateEmitter.event,this.onFormValuesChangeEmitter=new Un,this.onFormValuesChange=this.onFormValuesChangeEmitter.event,this.onFormValuesInitEmitter=new Un,this.onFormValuesInit=this.onFormValuesInitEmitter.event,this.onFormValuesUpdatedEmitter=new Un,this.onFormValuesUpdated=this.onFormValuesUpdatedEmitter.event,this.onValidateEmitter=new Un,this.onValidate=this.onValidateEmitter.event,this._state=new cot(IJn()),this._initialized=!1}set fieldMap(e){this._fieldMap=e}get fieldMap(){return this._fieldMap}get context(){return this._options.context}get initialValues(){return this._options.initialValues}get values(){return Mn.cloneDeep(this.store.values)||Mn.cloneDeep(this.initialValues)}set values(e){const n=this.values;this.store.values=e,this.fireOnFormValuesChange({values:this.values,prevValues:n,name:""})}get validationTrigger(){return this._options.validateTrigger}get state(){return this._state.value}get reactiveState(){return this._state}get fields(){return Array.from(this.fieldMap.values())}updateState(e){}get initialized(){return this._initialized}fireOnFormValuesChange(e){this.onFormValuesChangeEmitter.fire(e),this.onFormValuesUpdatedEmitter.fire(e)}fireOnFormValuesInit(e){this.onFormValuesInitEmitter.fire(e),this.onFormValuesUpdatedEmitter.fire(e)}init(e){if(this._options=e,e.initialValues){const n=this.store.values;this.store.setInitialValues(e.initialValues),this.fireOnFormValuesInit({values:e.initialValues,prevValues:n,name:""})}this._initialized=!0}createField(e,n){const r=new od(e),i=r.toString();if(this.fieldMap.get(i))return this.fieldMap.get(i);const o=n?new xj(r,this):new vot(r,this);return this.fieldMap.set(i,o),o.onDispose(()=>{this.fieldMap.delete(i)}),this.onFieldModelCreateEmitter.fire(o),o}createFieldArray(e,n){return this.createField(e,!0)}disposeField(e){const n=this.fieldMap.get(e);n&&n.dispose()}deleteField(e){const n=this.fieldMap.get(e);n&&(n.clear(),n.dispose())}getField(e){return this.fieldMap.get(new od(e).toString())}getValueIn(e){return this.store.getIn(new od(e))}setValueIn(e,n){const r=this.values;this.store.setIn(new od(e),n),this.fireOnFormValuesChange({values:this.values,prevValues:r,name:e})}setInitValueIn(e,n){const r=new od(e);if(this.store.getIn(r)===void 0){const o=this.values;this.store.setIn(new od(e),n),this.fireOnFormValuesInit({values:this.values,prevValues:o,name:e})}}clearValueIn(e){this.setValueIn(e,void 0)}async validateIn(e){if(!this._options.validate)return;const r=Object.keys(this._options.validate).filter(i=>ay.isMatch(i,e)).map(async i=>{const o=this._options.validate[i];return o({value:this.getValueIn(e),formValues:this.values,context:this.context,name:e})});return Promise.all(r)}async validate(){if(!this._options.validate)return[];const e=Object.keys(this._options.validate).map(async r=>{const i=this._options.validate[r],o=ay.findMatchPathsWithEmptyValue(this.values,r);return Promise.all(o.map(async a=>{const s=await i({value:Mn.get(this.values,a),formValues:this.values,context:this.context,name:a}),l=mot(s,a),c=this.getField(a),u=yLe(a,l),d=yLe(a,l);return c&&(c.state.errors=u,c.state.warnings=d,c.state.invalid=OJn(u),c.bubbleState()),this.state.errors=OT(this.state.errors,u),this.state.warnings=OT(this.state.warnings,d),this.state.invalid=!TJn(this.state.errors),l}))});this.state.isValidating=!0;const n=await Promise.all(e);return this.state.isValidating=!1,this.onValidateEmitter.fire(this.state),Mn.flatten(n).filter(Boolean)}alignStateWithFieldMap(){const e=Array.from(this.fieldMap.keys());this.state.errors&&(this.state.errors=d5(this.state.errors,e)),this.state.warnings&&(this.state.warnings=d5(this.state.warnings,e)),this.fieldMap.forEach(n=>{n.state.errors&&(n.state.errors=d5(n.state.errors,e)),n.state.warnings&&(n.state.warnings=d5(n.state.warnings,e))})}dispose(){this.fieldMap.forEach(e=>e.dispose()),this.store.dispose(),this._initialized=!1}};function yot(e){const{disableAutoInit:n=!1,...r}=e||{},i=new PJn;return n||i.init(r||{}),{form:SP(i),control:{_formModel:i,getField:o=>{const a=i.getField(o);if(a)return a instanceof xj?got(a):wj(a)},init:()=>i.init(r||{})}}}function Bme(e){const{children:n,keepModelOnUnMount:r=!1,control:i,...o}=e,{_formModel:a}=m.useMemo(()=>i||yot(o).control,[i]);m.useEffect(()=>()=>{r||a.dispose()},[]);const s=m.useMemo(()=>SP(a),[a]);return V.createElement(pot.Provider,{value:a},n?Mn.isFunction(n)?n({form:s}):m.Children.only(n):null)}function _ot(e){const n=Rd(),r=Fme();if(!r)throw new Error("[Form] error in useWatch, formModel not found");const i=r.getValueIn(e);return m.useEffect(()=>{const o=r.onFormValuesUpdated(({name:a})=>{a===e&&n()});return()=>o.dispose()},[e,r]),i}function AJn({name:e,defaultValue:n,deps:r,render:i,children:o}){const a=Fme(),s=m.useMemo(()=>a.getField(e)||a.createFieldArray(e),[e]),l=m.useMemo(()=>got(s),[s]),c=Rd(),u=Ej(s.reactiveState),d=Ej(a.reactiveState),f=fot(u),p=m.useMemo(()=>$me(d),[d]);m.useEffect(()=>{s.renderCount=s.renderCount+1,!a.getValueIn(e)!==void 0&&n!==void 0&&(a.setInitValueIn(e,n),c());const g=new Ei;return g.push(s.onValueChange(()=>{c()})),r&&r.forEach(v=>{var _;const y=(_=a.getField(v))==null?void 0:_.onValueChange(()=>{c()});y&&g.push(y)}),()=>{g.dispose(),s.renderCount>1?s.renderCount=s.renderCount-1:a.getField(s.name)===s&&s.dispose()}},[s]);const h=()=>i&&Mn.isFunction(i)?i({field:l,fieldState:f,formState:p}):Mn.isFunction(o)?o({field:l,fieldState:f,formState:p}):m.createElement(m.Fragment,null,"Invalid Array render");return m.createElement(hot.Provider,{value:s},h())}var bot=(e=>(e.onValueChange="onValueChange",e.onValueInit="onValueInit",e.onValueInitOrChange="onValueInitOrChange",e.onArrayAppend="onArrayAppend",e.onArrayDelete="onArrayDelete",e))(bot||{});function DJn(e){return"onFormValuesChange"in e}function kJn(e,n){if(!n)return;if(n[e.name])return n[e.name];const r=Mn.find(Object.keys(n),i=>i.startsWith("regex:")?RegExp(i.split(":")[1]).test(e.name):!1);if(r)return n[r]}function LJn(e){return e.map(n=>({feedbackStatus:n.level,feedbackText:n.message,path:n.name}))}function kM(e){return e.startsWith("/")?Sa.normalize(e).slice(1).split("/").join("."):e}function $Jn(e,n){return Mn.mergeWith(e,n,function(r,i){return(r||[]).concat(i)})}var FJn=({formModel:e})=>e!=null&&e.formControl?V.createElement(V.Fragment,null,V.createElement(Bme,{control:e==null?void 0:e.formControl,keepModelOnUnMount:!0},e.formMeta.render)):null;function BJn(e){return V.createElement(FJn,{formModel:e})}var Z_={EFFECT_MAP:{},EFFECT_RETURN_MAP:new Map([["onValueInitOrChange",{}],["onValueChange",{}],["onValueInit",{}],["onArrayAppend",{}],["onArrayDelete",{}]]),FORM_FEEDBACKS:[],VALID:null},jJn=class extends fse{constructor(e){super(),this.effectMap=Z_.EFFECT_MAP,this.effectReturnMap=Z_.EFFECT_RETURN_MAP,this.plugins=[],this.formFeedbacks=Z_.FORM_FEEDBACKS,this.onInitializedEmitter=new Un,this.onValidateEmitter=new Un,this.onValidate=this.onValidateEmitter.event,this.onInitialized=this.onInitializedEmitter.event,this.onDisposeEmitter=new Un,this.onDispose=this.onDisposeEmitter.event,this.toDispose=new Ei,this.onFormValuesChangeEmitter=new Un,this.onFormValuesChange=this.onFormValuesChangeEmitter.event,this.onValidChangeEmitter=new Un,this.onValidChange=this.onValidChangeEmitter.event,this.onFeedbacksChangeEmitter=new Un,this.onFeedbacksChange=this.onFeedbacksChangeEmitter.event,this._valid=Z_.VALID,this._feedbacks=[],this._initialized=!1,this.node=e,this.toDispose.pushAll([this.onInitializedEmitter,this.onValidateEmitter,this.onValidChangeEmitter,this.onFeedbacksChangeEmitter,this.onFormValuesChangeEmitter])}get valid(){return this._valid}set valid(e){this._valid=e,this.onValidChangeEmitter.fire(e)}get flowNodeEntity(){return this.node}get formManager(){return this.node.getService(Ap)}get formControl(){return this._formControl}get formMeta(){return this.node.getNodeRegistry().formMeta}get values(){var e;return(e=this.nativeFormModel)==null?void 0:e.values}get feedbacks(){return this._feedbacks}set feedbacks(e){this._feedbacks=e,this.onFeedbacksChangeEmitter.fire(e)}get formItemPathMap(){return new Map}get initialized(){return this._initialized}get nodeContext(){return{node:this.node,playgroundContext:this.node.getService(RC)}}get nativeFormModel(){var e;return(e=this._formControl)==null?void 0:e._formModel}render(){return BJn(this)}initPlugins(e){e.length&&(this.plugins=e,e.forEach(n=>{var r;n.init(this),(r=n.config)!=null&&r.effect&&$Jn(this.effectMap,n.config.effect)}))}init(e,n){const r=this.node.getData(ls);this.onFormValuesChange(()=>{this._valid=null,r.fireChange()});const{validateTrigger:i,validate:o,effect:a}=e;a&&(this.effectMap=a);const s=typeof e.defaultValues=="function"?e.defaultValues(this.nodeContext):e.defaultValues,l=e.formatOnInit?e.formatOnInit(n,this.nodeContext):n,{control:c}=yot({initialValues:l||s,validateTrigger:i,context:this.nodeContext,validate:o,disableAutoInit:!0});this._formControl=c;const u=c._formModel;this.toDispose.push(u),u.onFormValuesChange(d=>{this.onFormValuesChangeEmitter.fire(d)}),e.plugins&&this.initPlugins(e.plugins),u.onFormValuesChange(({values:d,prevValues:f,name:p})=>{Object.keys(this.effectMap).filter(g=>ay.isMatchOrParent(g,p)).forEach(g=>{this.effectMap[g].forEach(({effect:y,event:_})=>{var S;if(_==="onValueChange"||_==="onValueInitOrChange"){const b=ay.getParentPathByPattern(g,p),E=(S=this.effectReturnMap.get(_))==null?void 0:S[b];E&&E();const w=y({name:b,value:Mn.get(d,b),prevValue:Mn.get(f,b),formValues:d,form:SP(this.nativeFormModel),context:this.nodeContext});if(w&&typeof w=="function"&&this.effectReturnMap.has(_)){const C=this.effectReturnMap.get(_);C[b]=w}}})})}),u.onFormValuesInit(({values:d,name:f,prevValues:p})=>{Object.keys(this.effectMap).forEach(h=>{const g=ay.findMatchPaths(d,h);this.effectMap[h].forEach(({event:y,effect:_})=>{(y==="onValueInit"||y==="onValueInitOrChange")&&g.forEach(S=>{var b;if(ay.isMatchOrParent(f,S)||f===S){const E=(b=this.effectReturnMap.get(y))==null?void 0:b[S];E&&E();const w=_({name:S,value:Mn.get(d,S),formValues:d,prevValue:Mn.get(p,S),form:SP(this.nativeFormModel),context:this.nodeContext});if(w&&typeof w=="function"&&this.effectReturnMap.has(y)){const C=this.effectReturnMap.get(y);C[S]=w}}})})})}),u.onFieldModelCreate(d=>{const f=kJn(d,this.effectMap);if(f!=null&&f.length){const p=Mn.groupBy(f,"event");Mn.mapKeys(p,(h,g)=>{const v=y=>{h.forEach(({effect:_})=>_({...y,formValues:u.values,form:SP(this.nativeFormModel),context:this.nodeContext}))};switch(g){case"onArrayAppend":d instanceof xj&&d.onAppend(v);break;case"onArrayDelete":d instanceof xj&&d.onDelete(v);break}})}}),this._formControl.init(),this._initialized=!0,this.onInitializedEmitter.fire(this),this.onDispose(()=>{this._initialized=!1,this.effectMap={},u.dispose()})}toJSON(){var e,n;return this.formMeta.formatOnSubmit?this.formMeta.formatOnSubmit((e=this.nativeFormModel)==null?void 0:e.values,this.nodeContext):(n=this.nativeFormModel)==null?void 0:n.values}clearValid(){this.valid!==null&&(this.valid=null)}async validate(){var e,n;return this.formFeedbacks=await((e=this.nativeFormModel)==null?void 0:e.validate()),this.valid=Mn.isEmpty((n=this.formFeedbacks)==null?void 0:n.filter(r=>r.level==="error")),this.onValidateEmitter.fire(this),this.valid}getValues(){var e;return(e=this._formControl)==null?void 0:e._formModel.values}getField(e){var r;let n=e.includes("/")?kM(e):e;return(r=this.formControl)==null?void 0:r.getField(n)}getValueIn(e){var r;let n=e.includes("/")?kM(e):e;return(r=this.nativeFormModel)==null?void 0:r.getValueIn(n)}setValueIn(e,n){var i;let r=e.includes("/")?kM(e):e;(i=this.nativeFormModel)==null||i.setValueIn(r,n)}onFormValueChangeIn(e,n){if(!this._initialized)throw new Error("[NodeEngine] FormModel Error: onFormValueChangeIn can not be called before initialized");return this.formControl._formModel.onFormValuesChange(({name:r,values:i,prevValues:o})=>{r===e&&n({value:Mn.get(i,e),prevValue:Mn.get(o,e),formValues:i,prevFormValues:o})})}getFormItemValueByPath(e){var r;if(!e)return;if(e==="/")return(r=this._formControl)==null?void 0:r._formModel.values;const n=kM(e);return this.getValueIn(n)}async validateWithFeedbacks(){return await this.validate(),LJn(this.formFeedbacks)}getFormItemByPath(e){if(!this.nativeFormModel)return;const n=this;if(e==="/")return{get value(){return n.nativeFormModel.values},set value(o){n.nativeFormModel.values=o}};const r=kM(e),i=n.getValueIn(r);return{get value(){return i},set value(o){n.setValueIn(r,o)}}}dispose(){this.onDisposeEmitter.fire(),this.effectReturnMap.forEach(e=>{Object.values(e).forEach(n=>{n()})}),this.effectMap=Z_.EFFECT_MAP,this.effectReturnMap=Z_.EFFECT_RETURN_MAP,this.plugins.forEach(e=>{e.dispose()}),this.plugins=[],this.formFeedbacks=Z_.FORM_FEEDBACKS,this._valid=Z_.VALID,this._formControl=void 0,this._initialized=!1,this.toDispose.dispose()}},UJn=class{constructor(e,n,r){this.name=e,this.pluginId=`${e}__${yu()}`,this.config=n,this.opts=r}get formModel(){return this._formModel}get ctx(){return{formModel:this.formModel,node:this.formModel.nodeContext.node,playgroundContext:this.formModel.nodeContext.playgroundContext}}init(e){var n,r;this._formModel=e,(r=(n=this.config)==null?void 0:n.onInit)==null||r.call(n,this.ctx,this.opts)}dispose(){var e,n;(e=this.config)!=null&&e.onDispose&&((n=this.config)==null||n.onDispose(this.ctx,this.opts))}};function HJn(e,n){return function(r){return new UJn(e,n,r)}}function Sot(e){var o;const n=(o=e.getData(ls))==null?void 0:o.getFormModel(),r=n==null?void 0:n.nativeFormModel;if(!n||!r)return;const i={initialValues:r.initialValues,get values(){return r.values},state:r.state,getValueIn:a=>r.getValueIn(a),setValueIn:(a,s)=>r.setValueIn(a,s),render:()=>V.createElement(hJn,{node:e}),onFormValuesChange:n.onFormValuesChange.bind(n),onFormValueChangeIn:n.onFormValueChangeIn.bind(n),onValidate:n.nativeFormModel.onValidate,validate:n.validate.bind(n)};return Object.defineProperty(i,"_formModel",{enumerable:!1,get(){return n}}),i}var zJn=Object.defineProperty,VJn=Object.getOwnPropertyDescriptor,Xa=(e,n,r,i)=>{for(var o=i>1?void 0:i?VJn(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&zJn(n,r,o),o},_Le=(e,n)=>(r,i)=>n(r,i,e),Fo=(e=>(e.START="start",e.DEFAULT="default",e.ROOT="root",e.EMPTY="empty",e.INLINE_BLOCKS="inlineBlocks",e.BLOCK_ICON="blockIcon",e.BLOCK="block",e.BLOCK_ORDER_ICON="blockOrderIcon",e.GROUP="group",e.END="end",e.CONDITION="condition",e.SUB_CANVAS="subCanvas",e))(Fo||{}),GJn=["root","inlineBlocks","block"],Eot=Symbol("FlowLayoutContribution"),Tj=(e=>(e.VERTICAL_FIXED_LAYOUT="vertical-fixed-layout",e.HORIZONTAL_FIXED_LAYOUT="horizontal-fixed-layout",e))(Tj||{});(e=>{function n(r){return r.name==="vertical-fixed-layout"}e.isVertical=n})(Tj||(Tj={}));var lu=(e=>(e[e.STRAIGHT_LINE=0]="STRAIGHT_LINE",e[e.DIVERGE_LINE=1]="DIVERGE_LINE",e[e.MERGE_LINE=2]="MERGE_LINE",e[e.ROUNDED_LINE=3]="ROUNDED_LINE",e[e.CUSTOM_LINE=4]="CUSTOM_LINE",e[e.DRAGGING_LINE=5]="DRAGGING_LINE",e))(lu||{}),tm=(e=>(e[e.ADDER_LABEL=0]="ADDER_LABEL",e[e.TEXT_LABEL=1]="TEXT_LABEL",e[e.COLLAPSE_LABEL=2]="COLLAPSE_LABEL",e[e.COLLAPSE_ADDER_LABEL=3]="COLLAPSE_ADDER_LABEL",e[e.CUSTOM_LABEL=4]="CUSTOM_LABEL",e[e.BRANCH_DRAGGING_LABEL=5]="BRANCH_DRAGGING_LABEL",e))(tm||{}),nm={NODE_SPACING:"SPACING",ROUNDED_LINE_X_RADIUS:"ROUNDED_LINE_X_RADIUS",ROUNDED_LINE_Y_RADIUS:"ROUNDED_LINE_Y_RADIUS",INLINE_BLOCKS_PADDING_BOTTOM:"INLINE_BLOCKS_PADDING_BOTTOM",COLLAPSED_SPACING:"COLLAPSED_SPACING",HOVER_AREA_WIDTH:"HOVER_AREA_WIDTH"},EP={NULL:0,[nm.NODE_SPACING]:32,MARGIN_RIGHT:20,INLINE_BLOCK_PADDING_BOTTOM:16,INLINE_BLOCKS_PADDING_TOP:30,[nm.INLINE_BLOCKS_PADDING_BOTTOM]:40,MIN_INLINE_BLOCK_SPACING:200,MIN_INLINE_BLOCK_SPACING_HORIZONTAL:80,[nm.COLLAPSED_SPACING]:12,[nm.ROUNDED_LINE_X_RADIUS]:16,[nm.ROUNDED_LINE_Y_RADIUS]:20,[nm.HOVER_AREA_WIDTH]:20},Cot=(e=>(e.PRE_BRANCH="pre_branch",e.NORMAL_BRANCH="normal_branch",e))(Cot||{}),WJn={width:280,height:60},YJn=(e,n)=>{const r=GJn.includes(e);return{isStart:e==="start",hidden:r,defaultExpanded:n.options.allNodesDefaultExpanded,expandedSize:{width:520,height:300},size:WJn,origin:n.layout.getDefaultNodeOrigin(),isInlineBlocks:e==="inlineBlocks",spacing:EP.SPACING,inlineSpacingPre:0,inlineSpacingAfter:0,expandable:!0,draggable:!0,selectable:!0,renderKey:"",minInlineBlockSpacing:()=>Tj.isVertical(n.layout)?EP.MIN_INLINE_BLOCK_SPACING:EP.MIN_INLINE_BLOCK_SPACING_HORIZONTAL}},Oj;(e=>{function n(i,o,a){return{...i,...o,meta:{...i.meta,...o.meta},extend:void 0,type:a}}e.merge=n;function r(i,o){return o.length?o.reduce((a,s)=>n(a,s,i.type),i):i}e.extend=r})(Oj||(Oj={}));var jme=(e=>(e.addFromNode="addFromNode",e.deleteFromNode="deleteFromNode",e.addBlock="addBlock",e.deleteBlock="deleteBlock",e.createGroup="createGroup",e.ungroup="ungroup",e.moveNodes="moveNodes",e.moveBlock="moveBlock",e.moveChildNodes="moveChildNodes",e.addNodes="addNodes",e.deleteNodes="deleteNodes",e.changeNode="changeNode",e.addChildNode="addChildNode",e.deleteChildNode="deleteChildNode",e.addNode="addNode",e.deleteNode="deleteNode",e))(jme||{}),FV=Symbol("FlowOperationBaseService"),wot=class O2 extends Pl{constructor(n){super(n),this.onExtInfoChangeEmitter=new Un,this.onExtInfoChange=this.onExtInfoChangeEmitter.event,this.toDispose.push(ao.create(()=>{this._node&&this._node.remove()}))}get key(){return this.entity.id}getDefaultData(){const{addable:n,expandable:r,defaultExpanded:i}=this.entity.getNodeMeta();return{addable:n,expandable:r,expanded:i||!1,activated:!1,hovered:!1,dragging:!1,stackIndex:0}}updateExtInfo(n){if(k0.isChanged(this.data.extInfo,n)){const r=this.data.extInfo;this.update({extInfo:n}),this.onExtInfoChangeEmitter.fire({oldInfo:r,newInfo:n})}}getExtInfo(){return this.data.extInfo}get addable(){return this.data.addable}get expandable(){return this.data.expandable}get draggable(){const{draggable:n}=this.entity.getNodeMeta();return typeof n=="function"?n(this.entity):n}get expanded(){return this.data.expanded}set expanded(n){this.expandable&&this.data.expanded!==n&&(this.data.expanded=n,this.fireChange())}toggleExpand(){this.expanded=!this.expanded}toggleMouseEnter(n=!1){var i;if(this.entity.document.renderState.setNodeHovered(this.entity),n)return;const r=this.entity.getData(hr);r.renderState.hidden||(this.mouseLeaveTimeout&&(clearTimeout(this.mouseLeaveTimeout),this.mouseLeaveTimeout=void 0),r.renderState.hovered=!0,this.entity.isFirst&&((i=this.entity.parent)==null?void 0:i.id)!=="root"?r.parent.renderState.activated=!0:r.renderState.activated=!0)}toggleMouseLeave(n=!1){if(this.entity.document.renderState.setNodeHovered(void 0),n)return;const r=this.entity.getData(hr);this.mouseLeaveTimeout=setTimeout(()=>{var i;r.renderState.hovered=!1,this.entity.isFirst&&((i=this.entity.parent)==null?void 0:i.id)!=="root"&&(r.parent.renderState.activated=!1),r.renderState.activated=!1},200)}get hidden(){return this.entity.hidden}set hovered(n){this.data.hovered=n,this.fireChange()}get hovered(){return this.data.hovered}get dragging(){return this.data.dragging}set dragging(n){this.data.dragging!==n&&(this.data.dragging=n,this.fireChange())}set activated(n){if(this.entity.flowNodeType==="blockIcon"&&this.entity.parent){this.entity.parent.getData(O2).activated=n;return}this.data.activated!==n&&(this.data.activated=n,this.fireChange())}get activated(){const{entity:n}=this;return n.parent&&n.parent.getData(O2).activated?!0:this.data.activated}get stackIndex(){return this.data.stackIndex}set stackIndex(n){this.data.stackIndex=n}get lineActivated(){var r,i,o;const{activated:n}=this;return n?!!((i=(r=this.entity.parent)==null?void 0:r.getData(O2))!=null&&i.activated||this.entity.isInlineBlock||(o=this.entity.next)!=null&&o.getData(O2).activated):!1}get node(){return this._node?this._node:(this._node=Tr.createDivWithClass("gedit-flow-activity-node"),this._node.dataset.testid="sdk.workflow.canvas.node",this._node.dataset.nodeId=this.entity.id,this._node)}dispose(){super.dispose(),this.onExtInfoChangeEmitter.dispose()}};wot.type="FlowNodeRenderData";var ra=wot,xot=class vh extends Pl{constructor(n){super(n),this.localDirty=!0;const{origin:r}=this.entity.getNodeMeta();this.transform=this.entity.addData(Ui),this.transform.changeLocked=!0,this.transform.update({origin:{...r}}),this.transform.changeLocked=!1,this.renderState=this.entity.addData(ra),this.bindChange(this.transform),this.toDispose.push(ao.create(()=>{const{next:i,parent:o}=this;i&&(i.localDirty=!0),o&&(o.localDirty=!0)}))}get origin(){return this.transform.origin}get key(){return this.entity.id}getDefaultData(){const{size:n,defaultExpanded:r,expandedSize:i,hidden:o}=this.entity.getNodeMeta();return{size:o?{width:0,height:0}:{...r?i:n}}}get collapsed(){return this.entity.collapsed}set collapsed(n){this.entity.collapsed=n,this.localDirty=!0,this.firstChild&&(this.firstChild.localDirty=!0),this.fireChange()}get size(){return this.entity.memoGlobal("size",()=>this.isContainer?this.transform.localSize:this.data.size)}get position(){const{position:n}=this.transform;return{x:n.x,y:n.y}}set size(n){const{width:r,height:i}=this.data.size;this.isContainer||(n.width!==r||n.height!==i)&&(this._data.size={...n},this.localDirty=!0,this.fireChange())}get inputPoint(){return this.entity.memoGlobal("inputPoint",()=>{const{getInputPoint:n}=this.entity.getNodeRegistry();return n?n(this,this.entity.document.layout):this.defaultInputPoint})}get defaultInputPoint(){return this.entity.memoGlobal("defaultInputPoint",()=>this.entity.document.layout.getDefaultInputPoint(this.entity))}get defaultOutputPoint(){return this.entity.memoGlobal("defaultOutputPoint",()=>this.entity.document.layout.getDefaultOutputPoint(this.entity))}get outputPoint(){return this.entity.memoGlobal("outputPoint",()=>{const{getOutputPoint:n}=this.entity.getNodeRegistry();return n?n(this,this.entity.document.layout):this.defaultOutputPoint})}get originDeltaX(){return this.entity.memoLocal("originDeltaX",()=>{const{children:n}=this,{getOriginDeltaX:r}=this.entity.getNodeRegistry();return r?r(this,this.entity.document.layout):n.length===0?-this.size.width*this.origin.x:n.length===1?n[0].originDeltaX:this.entity.isInlineBlocks&&n.length>1?n[0].originDeltaX+this.transform.position.x:n.reduce((i,o)=>{const a=o.originDeltaX;return i===void 0||a<i?a:i},void 0)})}get originDeltaY(){return this.entity.memoLocal("originDeltaY",()=>{const{children:n}=this,{getOriginDeltaY:r}=this.entity.getNodeRegistry();return r?r(this,this.entity.document.layout):n.length===0?-this.size.height*this.origin.y:n.length===1?n[0].originDeltaY:this.entity.isInlineBlocks&&n.length>1?n[0].originDeltaY+this.transform.position.y:n.reduce((i,o)=>{const a=o.originDeltaY;return i===void 0||a<i?a:i},void 0)})}get bounds(){return this.entity.memoGlobal("bounds",()=>{const{transform:n}=this;if(this.isContainer){const r=n.children.map(i=>i.entity.getData(vh).boundsWithPadding);return Qn.enlarge(r).withPadding(this.padding)}return n.bounds})}get boundsWithPadding(){return this.entity.memoGlobal("boundsWithPadding",()=>{const{transform:n}=this;if(this.isContainer){const r=n.children.map(i=>i.entity.getData(vh).boundsWithPadding);return Qn.enlarge(r).withPadding(this.padding)}return n.bounds.clone().withPadding(this.padding)})}get isContainer(){return this.transform.isContainer}get localBounds(){return this.entity.memoLocal("localBounds",()=>{const{transform:n}=this;if(this.isContainer){const r=n.children.map(o=>o.entity.getData(vh).localBounds),i=Qn.enlarge(r).withPadding(this.padding);return eO.applyMatrix(i,n.localTransform)}return n.localBounds.clone().withPadding(this.padding)})}get padding(){return this.entity.document.layout.getPadding(this.entity)}setParentTransform(n){this.transform.parent!==(n==null?void 0:n.transform)&&(this.localDirty=!0),this.transform.setParent(n==null?void 0:n.transform)}get spacing(){const{spacing:n}=this.entity.getNodeMeta();return typeof n=="function"?n(this):n}get inlineSpacingPre(){const{inlineSpacingPre:n}=this.entity.getNodeMeta();return typeof n=="function"?n(this):n}get inlineSpacingAfter(){const{inlineSpacingAfter:n}=this.entity.getNodeMeta();return typeof n=="function"?n(this):n}get minInlineBlockSpacing(){const{minInlineBlockSpacing:n}=this.entity.getNodeMeta();return typeof n=="function"?n(this):n}get children(){return this.entity.children.map(n=>n.getData(vh))}get pre(){var n;return(n=this.entity.pre)==null?void 0:n.getData(vh)}get originParent(){var n;return(n=this.entity.originParent)==null?void 0:n.getData(vh)}get isFirst(){return this.entity.isFirst}get isLast(){return this.entity.isLast}get lastChild(){var n;return(n=this.entity.lastChild)==null?void 0:n.getData(vh)}get firstChild(){var n;return(n=this.entity.firstChild)==null?void 0:n.getData(vh)}get next(){var n;return(n=this.entity.next)==null?void 0:n.getData(vh)}get parent(){var n;return(n=this.entity.parent)==null?void 0:n.getData(vh)}};xot.type="FlowNodeTransformData";var hr=xot,qJn=e=>{const{transform:n}=e,r=n.outputPoint;return n.next?[{type:0,from:r,to:n.next.inputPoint}]:[]},KJn=e=>{var o;const{transform:n}=e,r=n.outputPoint,i=(o=n.parent)==null?void 0:o.outputPoint;return!n.next&&i&&!new gf().copyFrom(r).equals(i)&&!e.isNodeEnd?[{type:0,from:r,to:i}]:[]},aN=class extends Pl{getDefaultData(){return{}}formatLines(e){var n,r,i;return(n=this.entity.document.options)!=null&&n.formatNodeLines?(i=(r=this.entity.document.options)==null?void 0:r.formatNodeLines)==null?void 0:i.call(r,this.entity,e):e}formatLabels(e){var n,r;return this.entity.document.options.formatNodeLabels?(r=(n=this.entity.document.options)==null?void 0:n.formatNodeLabels)==null?void 0:r.call(n,this.entity,e):e}get lines(){return this.entity.memoGlobal("lines",()=>{var r;const{getChildLines:e}=((r=this.entity.parent)==null?void 0:r.getNodeRegistry())||{};if(e)return this.formatLines(e(this,this.entity.document.layout));const{getLines:n}=this.entity.getNodeRegistry();return n?this.formatLines(n(this,this.entity.document.layout)):this.transform.entity.isInlineBlock?[]:this.formatLines([...qJn(this),...KJn(this)])})}get labels(){return this.entity.memoGlobal("labels",()=>{var o,a;const{getChildLabels:e}=((o=this.entity.parent)==null?void 0:o.getNodeRegistry())||{};if(e)return this.formatLabels(e(this,this.entity.document.layout));const{getLabels:n}=this.entity.getNodeRegistry();if(n)return this.formatLabels(n(this,this.entity.document.layout));if(this.transform.entity.isInlineBlock)return[];const r=this.transform.outputPoint;if(this.transform.next)return this.formatLabels([{offset:gf.getMiddlePoint(r,this.transform.next.inputPoint),type:0}]);const i=(a=this.transform.parent)==null?void 0:a.outputPoint;return i&&!new gf().copyFrom(r).equals(i)&&!this.isNodeEnd?this.formatLabels([{offset:i,type:0}]):[]})}constructor(e){super(e),this.transform=this.entity.addData(hr),this.renderData=this.entity.addData(ra),this.bindChange(this.transform),this.bindChange(this.renderData)}get collapsed(){return this.entity.collapsed}get isNodeEnd(){return this.entity.isNodeEnd}};aN.type="FlowNodeTransitionData";var Sl=class extends Um{constructor(e){super(e),this._memoLocalCache=new Map,this._memoGlobalCache=new Map,this.flowNodeType="unknown",this._hidden=!1,this.index=-1,this.document=e.document,this.flowNodeType=e.flowNodeType,this.originParent=e.originParent,this.metaFromJSON=e.meta,this.onDispose(()=>{this.document.originTree.getChildren(this).slice().forEach(n=>{n.dispose()}),this.document.originTree.remove(this,!1),this.originParent=void 0})}initData(e){e.originParent!==this.originParent&&(this.originParent=e.originParent,this._registerCache=void 0),e.parent&&e.parent.addChild(this,e.index),e.meta!==this.metaFromJSON&&(this._metaCache=void 0,this.metaFromJSON=e.meta),this._hidden=!!(this.getNodeMeta().hidden||e.hidden)}get isStart(){return this.getNodeMeta().isStart}get isFirst(){return!this.pre}get isLast(){return!this.next}get isInlineBlocks(){const e=this.getNodeMeta().isInlineBlocks;return typeof e=="function"?e(this):e}get isInlineBlock(){const e=this.document.renderTree.getParent(this);return!!(e&&e.isInlineBlocks)}get isNodeEnd(){return this.memoLocal("isNodeEnd",()=>this.getNodeMeta().isNodeEnd?!0:this.isInlineBlocks&&this.collapsedChildren.length?this.collapsedChildren.every(e=>e.isNodeEnd):this.lastCollapsedChild?this.lastCollapsedChild.isNodeEnd:!1)}addChild(e,n){e.parent!==this&&this.document.originTree.addChild(this,e,n)}get hasChild(){return this.children.length>0}get pre(){return this.document.renderTree.getPre(this)}get next(){return this.document.renderTree.getNext(this)}get parent(){return this.document.renderTree.getParent(this)}getNodeRegistry(){return this._registerCache?this._registerCache:(this._registerCache=this.document.getNodeRegistry(this.flowNodeType,this.originParent),this._registerCache)}getNodeRegister(){return this.getNodeRegistry()}getNodeMeta(){return this._metaCache?this._metaCache:(this.metaFromJSON?this._metaCache={...this.getNodeRegistry().meta,...this.metaFromJSON}:this._metaCache=this.getNodeRegistry().meta,this._metaCache)}get allChildren(){const e=[];for(const n of this.children)e.push(n),e.push(...n.allChildren);return e}get allCollapsedChildren(){const e=[];for(const n of this.collapsedChildren)e.push(n),e.push(...n.allCollapsedChildren);return e}get collapsedChildren(){return this.document.renderTree.getCollapsedChildren(this)}get blocks(){return this.collapsedChildren}get lastBlock(){return this.lastCollapsedChild}get lastCollapsedChild(){const{collapsedChildren:e}=this;return e[e.length-1]}get children(){return this.document.renderTree.getChildren(this)}get lastChild(){const{children:e}=this;return e[e.length-1]}get firstChild(){return this.children[0]}memoLocal(e,n){if(this._memoLocalCache.has(e))return this._memoLocalCache.get(e);const r=n();return this._memoLocalCache.set(e,r),r}memoGlobal(e,n){if(this._memoGlobalCache.has(e))return this._memoGlobalCache.get(e);const r=n();return this._memoGlobalCache.set(e,r),r}clearMemoGlobal(){this._memoGlobalCache.clear()}clearMemoLocal(){this._memoLocalCache.clear()}get childrenLength(){return this.children.length}get collapsed(){var e;return this.document.renderTree.isCollapsed(this)?!0:!!((e=this.parent)!=null&&e.collapsed)}set collapsed(e){this.document.renderTree.setCollapsed(this,e),this.clearMemoGlobal(),this.clearMemoLocal()}get hidden(){return this._hidden}openInsideCollapsed(){this.document.renderTree.openNodeInsideCollapsed(this)}getJSONData(){return this.getExtInfo()}toJSON(){if(this.document.options.toNodeJSON)return this.document.options.toNodeJSON(this);const e={};let n;return this.document.traverse(r=>{if(r.id.startsWith("$"))return;const o=this.getJSONData(),a={id:r.id,type:r.flowNodeType};o!==void 0&&(a.data=o),n||(n=a);let{parent:s}=r;s&&s.id.startsWith("$")&&(s=s.originParent);const l=s?e[s.id]:void 0;l&&(l.blocks||(l.blocks=[]),l.blocks.push(a)),e[r.id]=a},this),n}get isVertical(){return this.document.layout.name==="vertical-fixed-layout"}updateExtInfo(e){this.getData(ra).updateExtInfo(e)}getExtInfo(){return this.getData(ra).getExtInfo()}get onExtInfoChange(){return this.renderData.onExtInfoChange}get renderData(){return this.getData(ra)}get transform(){return this.getData(hr)}get bounds(){return this.transform.bounds}};Sl.type="FlowNodeEntity";(e=>{function n(r){return r instanceof e}e.is=n})(Sl||(Sl={}));var L0=class extends ug{constructor(e){super(e),this.onRefreshEmitter=new Un,this.lastTransformVersion=-1,this.lastTreeVersion=-1,this.onRefresh=this.onRefreshEmitter.event,this.document=e.document,this.toDispose.push(this.document.originTree.onTreeChange(()=>{this.config.treeVersion+=1,this.fireChange()})),this.toDispose.push(this.onRefreshEmitter)}getDefaultConfig(){return{loading:!0,treeVersion:0}}get loading(){return this.config.loading}set loading(e){this.config.loading!==e&&(this.config.loading=e,this.fireChange())}updateTransformsTree(){this.document.renderTree.traverse((e,n,r)=>{const i=e.getData(hr);i.collapsed&&i.transform.clearChildren(),e.parent&&i.setParentTransform(e.parent.getData(hr)),e.index=r})}clear(){this.lastTreeVersion=-1,this.lastTransformVersion=-1}isTreeDirty(){const e=this.entityManager.getEntityDataVersion(hr),n=this.lastTreeVersion!==this.config.treeVersion,r=this.lastTransformVersion!==e;return n||r}refresh(){const e=this.entityManager.getEntityDataVersion(hr),n=this.lastTreeVersion!==this.config.treeVersion,r=this.lastTransformVersion!==e;this.entityManager.changeEntityLocked=!0,n&&(this.document.renderTree.updateRenderStruct(),this.updateTransformsTree(),this.lastTreeVersion=this.config.treeVersion),(n||r)&&(this.document.layout.update(),this.lastTransformVersion=this.entityManager.getEntityDataVersion(hr),this.lastTreeVersion=this.config.treeVersion,this.onRefreshEmitter.fire()),this.entityManager.changeEntityLocked=!1}};L0.type="FlowDocumentTransformerEntity";var r$=class extends ug{getDefaultConfig(){return{}}constructor(e){super(e)}getNodeHovered(){return this.config.nodeHoveredId?this.entityManager.getEntityById(this.config.nodeHoveredId):void 0}setNodeHovered(e){this.updateConfig({nodeHoveredId:e==null?void 0:e.id})}getDragLabelSide(){return this.config.dragLabelSide}setDragLabelSide(e){this.updateConfig({dragLabelSide:e})}getNodeDroppingId(){return this.config.nodeDroppingId}setNodeDroppingId(e){this.updateConfig({nodeDroppingId:e})}getDragStartEntity(){const{nodeDragStartId:e}=this.config;return this.entityManager.getEntityById(e)}setDragStartEntity(e){this.updateConfig({nodeDragStartId:e==null?void 0:e.id})}getDragEntities(){const{nodeDragIds:e}=this.config;return(e||[]).map(n=>this.entityManager.getEntityById(n))}setDragEntities(e){this.updateConfig({nodeDragIds:e.map(n=>n.id),nodeDragIdsWithChildren:e.map(n=>[n.id,...n.allCollapsedChildren.map(r=>r.id)]).flat()})}onNodeHoveredChange(e,n=100){return this.onConfigChanged(Mn.debounce(()=>e(this.getNodeHovered()),n))}};r$.type="FlowRendererStateEntity";var Tot=class Oot{constructor(n){this.root=n,this.onTreeChangeEmitter=new Un,this.onTreeChange=this.onTreeChangeEmitter.event,this.map=new Map}dispose(){this.map.clear(),this.onTreeChangeEmitter.dispose()}getInfo(n){let r=this.map.get(n);return r||(r={children:[]},this.map.set(n,r)),r}clear(){this.map.clear()}cloneMap(){const n=new Map;for(const[r,i]of this.map)n.set(r,{...i,children:i.children.slice()});return n}clone(){const n=new Oot(this.root);return n.map=this.cloneMap(),n}remove(n,r=!0){this.removeParent(n),r&&this._removeChildren(n),this.map.delete(n),this.fireTreeChange()}addChild(n,r,i){const o=this.getInfo(n),a=this.getInfo(r);if(a.parent){if(a.parent===n)return r;a.parent!==n&&this.removeParent(r)}const s=o.children.length,l=typeof i>"u"?s-1:i-1,c=o.children[l],u=o.children[l+1];return c&&(this.getInfo(c).next=r),u&&(this.getInfo(u).pre=r),a.pre=c,a.next=u,o.children.splice(l+1,0,r),a.parent=n,this.fireTreeChange(),r}moveChilds(n,r,i){const o=this.getInfo(n),a=o.children.length;let s=i??a;return r.forEach(l=>{this.getInfo(l).parent&&this.removeParent(l)}),r.forEach(l=>{const c=this.getInfo(l);let u=o.children[s-1],d=o.children[s];u&&(this.getInfo(u).next=l),d&&(this.getInfo(d).pre=l),c.pre=u,c.next=d,o.children.splice(s,0,l),c.parent=n,s++}),this.fireTreeChange(),r}getById(n){for(const r of this.map.keys())if(r.id===n)return r}insertAfter(n,r){const i=this.getInfo(n),o=this.getInfo(r);if(this.removeParent(r),i.parent){const a=this.getInfo(i.parent);a.children.splice(a.children.indexOf(n)+1,0,r);const{next:s}=i;s&&(this.getInfo(s).pre=r),o.next=s,i.next=r,o.pre=n,o.parent=i.parent}this.fireTreeChange()}removeParent(n){const r=this.getInfo(n);if(!r.parent)return;const i=this.getInfo(r.parent),o=i.children.indexOf(n);i.children.splice(o,1);const{pre:a,next:s}=r;a&&(this.getInfo(a).next=s),s&&(this.getInfo(s).pre=a),this.fireTreeChange()}_removeChildren(n){const r=this.getChildren(n);r.length>0&&r.forEach(i=>{this._removeChildren(i),this.map.delete(i)})}getParent(n){return this.getInfo(n).parent}getPre(n){return this.getInfo(n).pre}getNext(n){return this.getInfo(n).next}getChildren(n){return this.getInfo(n).children}traverse(n,r=this.root,i=0,o=0){if(n(r,i,o)||this.getInfo(r).children.find((c,u)=>this.traverse(n,c,i+1,u)))return!0}fireTreeChange(){this.onTreeChangeEmitter.fire()}get size(){return this.map.size}toString(){const n=[];return this.traverse((r,i)=>{i===0?n.push(r.id):n.push(`|${new Array(i).fill("--").join("")} ${r.id}`)}),`${n.join(`
`)}`}},XJn=class extends Tot{constructor(e,n,r){super(e),this.root=e,this.nodesCollapsed=new Set,this.originTree=n,this.onTreeChange=this.originTree.onTreeChange,this.document=r}isCollapsed(e){return this.nodesCollapsed.has(e)}get collapsedNodeList(){return Array.from(this.nodesCollapsed)}setCollapsed(e,n){n?this.nodesCollapsed.add(e):this.nodesCollapsed.delete(e),this.originTree.fireTreeChange()}openNodeInsideCollapsed(e){var r;let n=(r=this.originTree.getInfo(e))==null?void 0:r.parent;for(;n;){this.nodesCollapsed.has(n)&&this.nodesCollapsed.delete(n);const{parent:i}=this.originTree.getInfo(n)||{};n=i}this.originTree.fireTreeChange()}updateRenderStruct(){this.map=this.originTree.cloneMap(),this.document.config.get("END_NODES_REFINE_BRANCH")&&this.refineBranch(this.root),this.hideCollapsed()}hideCollapsed(){this.nodesCollapsed.forEach(e=>{const n=this.getInfo(e);if(!n){this.nodesCollapsed.delete(e);return}const r=n.children.find(i=>i.flowNodeType==="blockIcon"||i.flowNodeType==="blockOrderIcon");if(r){const i=this.getInfo(r);i.next=void 0,i.pre=void 0,n.children=[r];return}n.children=[]})}isNodeEnd(e){if(e.getNodeMeta().isNodeEnd)return!0;const{children:n}=this.getInfo(e);return n.length>0&&e.isInlineBlocks?n.every(r=>this.isNodeEnd(r)):e.isInlineBlock?this.isNodeEnd(n[n.length-1]):!1}refineBranch(e){let n=this.getInfo(e).children[0];for(;n;){if(n.flowNodeType==="dynamicSplit"||n.flowNodeType==="staticSplit"){const{next:r,children:i}=this.getInfo(n),{children:o}=this.getInfo(i[1]),a=(o||[]).filter(l=>!this.isNodeEnd(l)),s=a.length===1;if(s&&r&&this.dragNextNodesToBlock(a[0],r),o==null||o.forEach(l=>{this.refineBranch(l)}),s)break}n=n.next}}dragNextNodesToBlock(e,n){const r=this.getInfo(e),i=this.getInfo(n),o=r.children[e.children.length-1];if(i.parent){const a=this.getInfo(i.parent);if(i.pre&&(this.getInfo(i.pre).next=void 0),o){const c=this.getInfo(o);c.next=n,i.pre=o}const s=a.children.indexOf(n),l=a.children.slice(s);a.children=a.children.slice(0,s);for(const c of l){const u=this.getInfo(c);r.children.push(c),u.parent=e}}}getInfo(e){return this.map.get(e)||this.originTree.getInfo(e)}getOriginInfo(e){return this.originTree.getInfo(e)}getCollapsedChildren(e){return this.getOriginInfo(e).children||[]}remove(){throw new Error("Render Tree cannot use remove node")}addChild(){throw new Error("Render tree cannot use add child")}insertAfter(){throw new Error("Render tree cannot use insert after")}removeParent(){throw new Error("Render tree cannot use remove parent")}},Ume=Symbol("FlowDocumentOptions"),QJn={allNodesDefaultExpanded:!1},mse={...nm,INLINE_SPACING_BOTTOM:"INLINE_SPACING_BOTTOM",INLINE_BLOCKS_INLINE_SPACING_TOP:"INLINE_BLOCKS_INLINE_SPACING_TOP",INLINE_BLOCKS_INLINE_SPACING_BOTTOM:"INLINE_BLOCKS_INLINE_SPACING_BOTTOM",BASE_COLOR:"BASE_COLOR",BASE_ACTIVATED_COLOR:"BASE_ACTIVATED_COLOR",INLINE_BLOCKS_PADDING_TOP:"INLINE_BLOCKS_PADDING_TOP"},Hme=Symbol("FlowDocumentContribution"),ZJn=Symbol("FlowDocumentConfigDefaultData"),Rj=class{constructor(e={}){this._data=e,this.onDataChangeEmitter=new Un,this.onChange=this.onDataChangeEmitter.event}get(e){return this._data[e]}set(e,n){this.get(e)!==n&&(this._data[e]=n,this.onDataChangeEmitter.fire(e))}registerConfigs(e){Object.keys(e).forEach(n=>{this.set(n,e[n])})}};Rj=Xa([Pn(),_Le(0,Ot(ZJn)),_Le(0,ss())],Rj);var BV=Symbol("FlowDocumentProvider"),jo=class{constructor(){this.contributions=[],this.registers=new Map,this.nodeRegistryCache=new Map,this.nodeDataRegistries=[],this.layouts=[],this.currentLayoutKey="",this.onNodeUpdateEmitter=new Un,this.onNodeCreateEmitter=new Un,this.onNodeDisposeEmitter=new Un,this.onLayoutChangeEmitter=new Un,this.onNodeUpdate=this.onNodeUpdateEmitter.event,this.onNodeCreate=this.onNodeCreateEmitter.event,this.onNodeDispose=this.onNodeDisposeEmitter.event,this.onLayoutChange=this.onLayoutChangeEmitter.event}init(){var e,n;this.options||(this.options=QJn),this.currentLayoutKey=this.options.defaultLayout||"vertical-fixed-layout",this.contributions.forEach(r=>{var i;return(i=r.registerDocument)==null?void 0:i.call(r,this)}),this.root=this.addNode({id:"root",type:"root"}),this.originTree=new Tot(this.root),this.transformer=this.entityManager.createEntity(L0,{document:this}),this.renderState=this.entityManager.createEntity(r$),this.renderTree=new XJn(this.root,this.originTree,this),(n=(e=this.layout).reload)==null||n.call(e)}fromJSON(e,n=!0){this.originTree.clear(),this.renderTree.clear(),this.entityManager.changeEntityLocked=!0;const r=this.entityManager.getEntities(Sl),i=[this.root];this.addBlocksAsChildren(this.root,e.nodes||[],i),r.forEach(o=>{i.includes(o)||o.dispose()}),this.entityManager.changeEntityLocked=!1,this.transformer.loading=!1,n&&this.fireRender()}get layout(){const e=this.layouts.find(n=>n.name==this.currentLayoutKey);if(!e)throw new Error(`Unknown flow layout: ${this.currentLayoutKey}`);return e}async load(){await Promise.all(this.contributions.map(e=>{var n;return(n=e.loadDocument)==null?void 0:n.call(e,this)}))}get loading(){return this.transformer.loading}fireRender(){this.transformer.isTreeDirty()&&(this.entityManager.fireEntityChanged(Sl.type),this.entityManager.fireEntityChanged(L0.type))}addFromNode(e,n){const r=typeof e=="string"?this.getNode(e):e;this.entityManager.changeEntityLocked=!0;const{parent:i}=r,o=this.addNode({...n,parent:i});return this.originTree.insertAfter(r,o),this.entityManager.changeEntityLocked=!1,this.entityManager.fireEntityChanged(Sl.type),o}removeNode(e){var n;typeof e=="string"?(n=this.getNode(e))==null||n.dispose():e.dispose()}addNode(e,n,r){const{id:i,type:o="block",originParent:a,parent:s,meta:l,hidden:c,index:u}=e;let d=this.getNode(i),f=!1;const p=this.getNodeRegistry(o,e.originParent);if(d&&d.flowNodeType!==e.type&&(d.dispose(),d=void 0),!d){const{dataRegistries:h}=p;d=this.entityManager.createEntity(Sl,{id:i,document:this,flowNodeType:o,originParent:a,meta:l});const g=h?this.nodeDataRegistries.concat(...h):this.nodeDataRegistries;d.addInitializeData(g),d.onDispose(()=>this.onNodeDisposeEmitter.fire({node:d})),this.options.fromNodeJSON&&this.options.fromNodeJSON(d,e),f=!0}if(d.initData({originParent:a,parent:s,meta:l,hidden:c,index:u}),d.isStart&&this.root.addChild(d),this.onNodeUpdateEmitter.fire({node:d,data:e}),n==null||n.push(d),p.onCreate){const h=p.onCreate(d,e);h&&n&&n.push(...h)}else e.blocks&&e.blocks.length>0&&(e.blocks[0].type?this.addBlocksAsChildren(d,e.blocks,n):this.addInlineBlocks(d,e.blocks,n));return f&&!r&&this.onNodeCreateEmitter.fire({node:d,data:e}),d}addBlocksAsChildren(e,n,r){for(const i of n)this.addNode({...i,parent:e},r)}addInlineBlocks(e,n,r=[]){const i=this.addNode({id:`$blockIcon$${e.id}`,type:"blockIcon",originParent:e,parent:e});if(r.push(i),n.length>0){const o=this.addNode({id:`$inlineBlocks$${e.id}`,type:"inlineBlocks",originParent:e,parent:e});r.push(o),n.forEach(a=>{this.addBlock(e,a,r)})}return r}addBlock(e,n,r,i,o){var u;const a=typeof e=="string"?this.getNode(e):e,{onBlockChildCreate:s}=a.getNodeRegistry();if(s)return s(a,n,r);i=i||this.getNode(`$inlineBlocks$${a.id}`);const l=this.addNode({...Mn.omit(n,"blocks"),type:n.type||"block",originParent:a,parent:i,index:o});(u=n.meta)!=null&&u.defaultCollapsed&&(l.collapsed=!0);const c=this.addNode({id:`$blockOrderIcon$${n.id}`,type:"blockOrderIcon",originParent:a,meta:n.meta,data:n.data,parent:l});return r==null||r.push(l,c),n.blocks&&this.addBlocksAsChildren(l,n.blocks,r),l}getNode(e){if(e)return this.entityManager.getEntityById(e)}registerFlowNodes(...e){e.forEach(n=>{if(!n)throw new Error("[FlowDocument] registerFlowNodes parameters get undefined registry.");const r=this.registers.get(n.type);this.registers.set(n.type,{...r,...n,meta:{...r==null?void 0:r.meta,...n==null?void 0:n.meta}})})}toJSON(){return{nodes:this.root.toJSON().blocks}}getNodeRegister(e,n){return this.getNodeRegistry(e,n)}getNodeRegistry(e,n){var c,u,d,f,p;const r=`${e}_${(n==null?void 0:n.flowNodeType)||""}`;if(this.nodeRegistryCache.has(r))return this.nodeRegistryCache.get(r);const i=(u=(c=this.options).getNodeDefaultRegistry)==null?void 0:u.call(c,e);let o=this.registers.get(e)||{type:e};const a=[];if(o.extend&&this.registers.has(o.extend)&&(o=Oj.merge(this.getNodeRegistry(o.extend),o,o.type)),n){const h=(d=this.getNodeRegistry(n.flowNodeType).extendChildRegistries)==null?void 0:d.find(g=>g.type===e);h&&(h.extend&&this.registers.has(h.extend)&&a.push(this.registers.get(h.extend)),a.push(h))}o=Oj.extend(o,a);const s=YJn(e,this);s.spacing=((p=(f=this.options)==null?void 0:f.constants)==null?void 0:p[mse.NODE_SPACING])||s.spacing;const l={...i,...o,meta:{...s,...i==null?void 0:i.meta,...o.meta}};return this.nodeRegistryCache.set(r,l),l}registerNodeDatas(...e){this.nodeDataRegistries.push(...e)}traverse(e,n=this.root,r=0){return this.originTree.traverse(e,n,r)}get size(){return this.getAllNodes().length}hasNode(e){return!!this.entityManager.getEntityById(e)}getAllNodes(){return this.entityManager.getEntities(Sl)}toString(){return this.originTree.toString()}getRenderDatas(e,n=!0){const r=[];return this.renderTree.traverse(i=>{!n&&i.hidden||r.push(i.getData(e))}),r}moveNodes({dropNodeId:e,sortNodeIds:n,inside:r=!1}){const i=this.getNode(e);if(!i)return;const o=n.map(a=>this.getNode(a));this.entityManager.changeEntityLocked=!0;for(const a of o.reverse())r?this.originTree.addChild(i,a,0):this.originTree.insertAfter(i,a);this.entityManager.changeEntityLocked=!1,this.fireRender()}moveChildNodes({toParentId:e,toIndex:n,nodeIds:r}){if(r.length===0)return;const i=this.getNode(e);i&&(this.entityManager.changeEntityLocked=!0,this.originTree.moveChilds(i,r.map(o=>this.getNode(o)),n),this.entityManager.changeEntityLocked=!1,this.fireRender())}registerLayout(e){this.layouts.push(e)}setLayout(e){var r;if(this.currentLayoutKey===e)return;const n=this.layouts.find(i=>i.name===e);n&&(this.currentLayoutKey=e,this.transformer.clear(),(r=n.reload)==null||r.call(n),this.fireRender(),this.onLayoutChangeEmitter.fire(this.layout))}toggleFixedLayout(){this.setLayout(this.layout.name==="horizontal-fixed-layout"?"vertical-fixed-layout":"horizontal-fixed-layout")}dispose(){this.registers.clear(),this.nodeRegistryCache.clear(),this.originTree.dispose(),this.renderTree.dispose(),this.onNodeUpdateEmitter.dispose(),this.onNodeCreateEmitter.dispose(),this.onNodeDisposeEmitter.dispose(),this.onLayoutChangeEmitter.dispose()}};Xa([Ot(Lo)],jo.prototype,"entityManager",2);Xa([Ot(Rj)],jo.prototype,"config",2);Xa([Ot(Ume),ss()],jo.prototype,"options",2);Xa([C_(Hme),ss()],jo.prototype,"contributions",2);Xa([Zc()],jo.prototype,"init",1);jo=Xa([Pn()],jo);var Rot=class Iot{constructor(n){this.groupNode=n}get nodes(){return this.groupNode.collapsedChildren||[]}get collapsed(){return this.groupNode.getData(hr).collapsed}collapse(){this.collapsed=!0}expand(){this.collapsed=!1}get bounds(){return this.groupNode.getData(hr).bounds}isStartNode(n){if(!n)return!1;const r=this.nodes;return r[0]?n.id===r[0].id:!1}isEndNode(n){if(!n)return!1;const r=this.nodes;return r[r.length-1]?n.id===r[r.length-1].id:!1}set note(n){this.groupNode.getNodeMeta().note=n}get note(){return this.groupNode.getNodeMeta().note||""}set noteHeight(n){this.groupNode.getNodeMeta().noteHeight=n}get noteHeight(){return this.groupNode.getNodeMeta().noteHeight||0}get positionConfig(){return this.groupNode.getNodeMeta().positionConfig}set collapsed(n){var i;const r=this.groupNode.getData(hr);r.collapsed=n,r.localDirty=!0,r.parent&&(r.parent.localDirty=!0),(i=r.parent)!=null&&i.firstChild&&(r.parent.firstChild.localDirty=!0)}set hovered(n){const r=this.groupNode.getData(ra);n?r.toggleMouseEnter():r.toggleMouseLeave(),r.hovered!==n&&(r.hovered=n)}get hovered(){return this.groupNode.getData(ra).hovered}static create(n){if(n&&ER.isGroupNode(n))return new Iot(n)}},ER;(e=>{const n=i=>{const o=[];let a=i.parent;for(;a;)o.push(a),a=a.parent;return o},r=i=>{var o;return((o=i==null?void 0:i.parent)==null?void 0:o.flowNodeType)==="group"};e.validate=i=>{if(!i||!Array.isArray(i)||i.length===0||i.some(p=>(0,e.isGroupNode)(p))||i.some(p=>p&&r(p)))return!1;const s=i[0].parent;return!(!i.every(p=>p.parent===s)||!i.map(p=>p.index).sort((p,h)=>p-h).every((p,h,g)=>h===0?!0:p===g[h-1]+1)||n(i[0]).some(p=>r(p)))},e.getNodeGroupController=i=>{if(!i||!r(i))return;const o=i==null?void 0:i.parent;return Rot.create(o)},e.getNodeRecursionGroupController=i=>{if(!i)return;const o=(0,e.getNodeGroupController)(i);if(o)return o;if(i.parent)return(0,e.getNodeRecursionGroupController)(i.parent)},e.isGroupNode=i=>i.flowNodeType==="group"})(ER||(ER={}));var Gm=class{constructor(){this.onDropEmitter=new Un,this.onDrop=this.onDropEmitter.event}get renderState(){return this.document.renderState}get dragStartNode(){return this.renderState.getDragStartEntity()}get dragNodes(){return this.renderState.getDragEntities()}get dropNodeId(){return this.renderState.getNodeDroppingId()}get isDragBranch(){var e;return(e=this.dragStartNode)==null?void 0:e.isInlineBlock}get nodeDragIdsWithChildren(){return this.renderState.config.nodeDragIdsWithChildren||[]}get dragging(){var n;const e=(n=this.dragStartNode)==null?void 0:n.getData(ra);return!!(e!=null&&e.dragging)}get labelSide(){return this.renderState.config.dragLabelSide}dropBranch(){this.dropNode()}dropNode(){const e=this.document.getNode(this.dropNodeId);if(!e)return;const n=[];let r=this.dragStartNode;for(;r&&this.dragNodes.includes(r);)n.push(r),r=r.next;this.operationService.dragNodes({dropNode:e,nodes:n}),n.length>0&&this.onDropEmitter.fire({dropNode:e,dragNodes:n})}isDroppableNode(e){return!(!this.dragging||this.isDragBranch||this.nodeDragIdsWithChildren.includes(e.id)||e.next&&this.nodeDragIdsWithChildren.includes(e.next.id)||e.isInlineBlocks||e.isInlineBlock||this.dragNodes.some(r=>r.flowNodeType==="group")&&ER.getNodeRecursionGroupController(e))}isDroppableBranch(e,n="normal_branch"){if(this.isDragBranch){if(!e.isInlineBlock||e.parent!==this.dragStartNode.parent||e===this.dragStartNode)return!1;if(n==="normal_branch"&&e.next!==this.dragStartNode||n==="pre_branch"&&e.pre!==this.dragStartNode)return!0}return!1}};Xa([Ot(jo)],Gm.prototype,"document",2);Xa([Ot(FV)],Gm.prototype,"operationService",2);Xa([Ot(Lo)],Gm.prototype,"entityManager",2);Gm=Xa([Pn()],Gm);var MC=class{constructor(){this.onNodeAddEmitter=new Un,this.onNodeAdd=this.onNodeAddEmitter.event,this.toDispose=new Ei,this.onNodeMoveEmitter=new Un,this.onNodeMove=this.onNodeMoveEmitter.event}init(){this.toDispose.pushAll([this.onNodeAddEmitter,this.onNodeMoveEmitter])}addNode(e,n={}){const{parent:r,index:i,hidden:o}=n;let a;r&&(a=this.toNodeEntity(r));let s;a&&(s=a.getNodeRegistry());const l={...e,type:e.type||"block"},c={...l,parent:a,index:i,hidden:o};let u;return a&&(s!=null&&s.addChild)?u=s.addChild(a,l,{index:i,hidden:o}):u=this.document.addNode(c),this.onNodeAddEmitter.fire({node:u,data:c}),u}addFromNode(e,n){return this.document.addFromNode(e,n)}deleteNode(e){this.document.removeNode(e)}deleteNodes(e){(e||[]).forEach(n=>{this.deleteNode(n)})}addBlock(e,n,r={}){const{parent:i,index:o}=r;return this.document.addBlock(e,n,void 0,i,o)}moveNode(e,n={}){const{parent:r,index:i}=n,o=this.toNodeEntity(e),a=o==null?void 0:o.parent;if(!a)return;const s=r?this.toNodeEntity(r):a;if(!s){console.warn("no new parent found",r);return}let l=typeof i>"u"?s.collapsedChildren.length:i;return this.doMoveNode(o,s,l)}dragNodes({dropNode:e,nodes:n}){if(n.length===0)return;const r=n[0],i=r.parent,o=e.parent;if(!i||!o)return;const a=i.children.findIndex(u=>u===r),s=o.children.findIndex(u=>u===e);let l=s+1;i===o&&a<s&&(l=l-n.length);const c={nodeIds:n.map(u=>u.id),fromParentId:i.id,toParentId:o.id,fromIndex:a,toIndex:l};return this.apply({type:"moveChildNodes",value:c})}apply(e){var r,i,o,a,s,l;const n=this.document;switch(e.type){case"addFromNode":return n.addFromNode(e.value.fromId,e.value.data);case"deleteFromNode":return(o=n.getNode((i=(r=e.value)==null?void 0:r.data)==null?void 0:i.id))==null?void 0:o.dispose();case"addBlock":{let c;return e.value.parentId&&(c=n.getNode(e.value.parentId)),n.addBlock(e.value.targetId,e.value.blockData,void 0,c,e.value.index)}case"deleteBlock":{const c=n.getNode((a=e.value)==null?void 0:a.blockData.id);return c==null?void 0:c.dispose()}case"createGroup":{const c=n.addFromNode(e.value.targetId,{id:e.value.groupId,type:"group"});return n.moveNodes({dropNodeId:e.value.groupId,sortNodeIds:e.value.nodeIds,inside:!0}),c}case"ungroup":return n.moveNodes({dropNodeId:e.value.groupId,sortNodeIds:e.value.nodeIds}),(s=n.getNode(e.value.groupId))==null?void 0:s.dispose();case"moveNodes":return n.moveNodes({dropNodeId:e.value.toId,sortNodeIds:e.value.nodeIds});case"moveBlock":return n.moveChildNodes({...e.value,nodeIds:[e.value.nodeId]});case"addNodes":{let c=e.value.fromId;(e.value.nodes||[]).forEach(u=>{c=n.addFromNode(c,u).id});break}case"deleteNodes":{(e.value.nodes||[]).forEach(c=>{const u=n.getNode(c.id);u==null||u.dispose()});break}case"addChildNode":return n.addNode({...e.value.data,parent:e.value.parentId?n.getNode(e.value.parentId):void 0,originParent:e.value.originParentId?n.getNode(e.value.originParentId):void 0,index:e.value.index,hidden:e.value.hidden});case"deleteChildNode":return(l=n.getNode(e.value.data.id))==null?void 0:l.dispose();case"moveChildNodes":return n.moveChildNodes(e.value);default:throw new Error("unknown operation type")}}transact(e){e()}dispose(){this.toDispose.dispose()}toId(e){return typeof e=="string"?e:e.id}toNodeEntity(e){return typeof e=="string"?this.document.getNode(e):e}getNodeIndex(e){const n=this.toNodeEntity(e),r=n==null?void 0:n.parent;return r?r.children.findIndex(i=>i===n):-1}doMoveNode(e,n,r){if(!e.parent)throw new Error("root node cannot move");const i={node:e,fromParent:e.parent,toParent:n,fromIndex:this.getNodeIndex(e),toIndex:r};this.document.moveChildNodes({nodeIds:[this.toId(e)],toParentId:this.toId(n),toIndex:r}),this.onNodeMoveEmitter.fire(i)}};Xa([Ot(Lo)],MC.prototype,"entityManager",2);Xa([Ot(jo)],MC.prototype,"document",2);Xa([Zc()],MC.prototype,"init",1);MC=Xa([Pn()],MC);var PC=class{createGroup(e){if(!e||!Array.isArray(e)||e.length===0||!ER.validate(e))return;const r=e.sort((s,l)=>s.index-l.index)[0],i=`group_${yu(5)}`;this.operationService.apply({type:"createGroup",value:{targetId:r.id,groupId:i,nodeIds:e.map(s=>s.id)}});const o=this.entityManager.getEntityById(i);if(!o)return;const a=this.groupController(o);if(a)return a.expand(),o}deleteGroup(e){const n=e.toJSON();!e.pre||!n||this.operationService.apply({type:"deleteNodes",value:{fromId:e.pre.id,nodes:[n]}})}ungroup(e){const n=this.groupController(e);if(!n)return;const r=n.nodes;e.pre&&(n.collapse(),this.operationService.apply({type:"ungroup",value:{groupId:e.id,targetId:e.pre.id,nodeIds:r.map(i=>i.id)}}))}getAllGroups(){return this.entityManager.getEntities(Sl).filter(r=>r.flowNodeType==="group").map(r=>this.groupController(r)).filter(Boolean)}groupController(e){return Rot.create(e)}static validate(e){return ER.validate(e)}};Xa([Ot(Lo)],PC.prototype,"entityManager",2);Xa([Ot(FV)],PC.prototype,"operationService",2);PC=Xa([Pn()],PC);var JJn=-36;function eer(e,n){return e.childrenLength===n.childrenLength&&e.index===n.index}var CR=class{constructor(){this.name="vertical-fixed-layout",this.structDataMap=new WeakMap}get document(){return this.documentProvider()}reload(){this.structDataMap=new WeakMap}update(){this.updateLocalTransform(this.document.root)}updateLocalTransform(e,n=!1){var _,S,b,E;const{children:r,parent:i,isInlineBlock:o}=e,a=e.getData(hr),{getDelta:s,getOrigin:l}=e.getNodeRegistry(),c=this.structDataMap.get(e)||{childrenLength:0,index:-1};e.clearMemoGlobal();let u=a.localDirty||n;const d={index:e.index,childrenLength:e.children.length};eer(c,d)||(u=!0,this.structDataMap.set(e,d));let f=!1;if(r.length>0)for(const w of r)this.updateLocalTransform(w,f)&&(f=!0,u=!0);if(!u)return!1;e.clearMemoLocal(),a.transform.update({origin:l?l(a,this):this.getDefaultNodeOrigin()});const p=a.pre,h=(s==null?void 0:s(a,this))||{x:0,y:0},g=o&&((_=a.parent)!=null&&_.inlineSpacingPre)?(S=a.parent)==null?void 0:S.inlineSpacingPre:0,v=((E=i==null?void 0:(b=i.getNodeRegistry()).getChildDelta)==null?void 0:E.call(b,a,this))||{x:0,y:0};h.x+=v.x,h.y+=v.y;const y={x:h.x,y:h.y};return o?y.y+=g:(y.y+=(p==null?void 0:p.localBounds.bottom)||0,y.y+=(p==null?void 0:p.spacing)||0),a.transform.update({size:a.data.size,position:y}),this.onAfterUpdateLocalTransform(a),a.localDirty=!1,!0}onAfterUpdateLocalTransform(e){var r;const{onAfterUpdateLocalTransform:n}=e.entity.getNodeRegistry();n==null||n(e,this),(r=this.contribs)==null||r.forEach(i=>{var o;(o=i==null?void 0:i.onAfterUpdateLocalTransform)==null||o.call(i,e,this)})}getNodeTransform(e){return e.getData(hr)}getPadding(e){const{inlineSpacingPre:n,inlineSpacingAfter:r,padding:i}=e.getNodeMeta(),o=this.getNodeTransform(e);if(i)return typeof i=="function"?i(o):i;const a=typeof n=="function"?n(o):n,s=typeof r=="function"?r(o):r;return{left:0,top:a,right:0,bottom:s}}getInitScroll(e){return{scrollX:-e.width/2,scrollY:JJn}}getDefaultInputPoint(e){return this.getNodeTransform(e).bounds.topCenter}getDefaultOutputPoint(e){return this.getNodeTransform(e).bounds.bottomCenter}getDefaultNodeOrigin(){return{x:.5,y:0}}};Xa([Ot(BV)],CR.prototype,"documentProvider",2);Xa([C_(Eot),ss()],CR.prototype,"contribs",2);CR=Xa([Pn()],CR);var ter=-36;function ner(e,n){return e.childrenLength===n.childrenLength&&e.index===n.index}var wR=class{constructor(){this.name="horizontal-fixed-layout",this.structDataMap=new WeakMap}get document(){return this.documentProvider()}reload(){this.structDataMap=new WeakMap}update(){this.updateLocalTransform(this.document.root)}updateLocalTransform(e,n=!1){var _,S,b,E;const{children:r,parent:i,isInlineBlock:o}=e,a=e.getData(hr),{getDelta:s,getOrigin:l}=e.getNodeRegistry(),c=this.structDataMap.get(e)||{childrenLength:0,index:-1};e.clearMemoGlobal();let u=a.localDirty||n;const d={index:e.index,childrenLength:e.children.length};ner(c,d)||(u=!0,this.structDataMap.set(e,d));let f=!1;if(r.length>0)for(const w of r)this.updateLocalTransform(w,f)&&(f=!0,u=!0);if(!u)return!1;e.clearMemoLocal(),a.transform.update({origin:l?l(a,this):this.getDefaultNodeOrigin()});const p=a.pre,h=(s==null?void 0:s(a,this))||{x:0,y:0},g=o&&((_=a.parent)!=null&&_.inlineSpacingPre)?(S=a.parent)==null?void 0:S.inlineSpacingPre:0,v=((E=i==null?void 0:(b=i.getNodeRegistry()).getChildDelta)==null?void 0:E.call(b,a,this))||{x:0,y:0};h.x+=v.x,h.y+=v.y;const y={x:h.x,y:h.y};return o?y.x+=g:(y.x+=(p==null?void 0:p.localBounds.right)||0,y.x+=(p==null?void 0:p.spacing)||0),a.transform.update({size:a.data.size,position:y}),this.onAfterUpdateLocalTransform(a),a.localDirty=!1,!0}onAfterUpdateLocalTransform(e){var r;const{onAfterUpdateLocalTransform:n}=e.entity.getNodeRegistry();n==null||n(e,this),(r=this.contribs)==null||r.forEach(i=>{var o;(o=i==null?void 0:i.onAfterUpdateLocalTransform)==null||o.call(i,e,this)})}getNodeTransform(e){return e.getData(hr)}getPadding(e){const{inlineSpacingPre:n,inlineSpacingAfter:r,padding:i}=e.getNodeMeta(),o=this.getNodeTransform(e);if(i)return typeof i=="function"?i(o):i;const a=typeof n=="function"?n(o):n,s=typeof r=="function"?r(o):r;return{left:a,top:0,right:s,bottom:0}}getInitScroll(e){return{scrollX:ter,scrollY:-e.height/2}}getDefaultInputPoint(e){return this.getNodeTransform(e).bounds.leftCenter}getDefaultOutputPoint(e){return this.getNodeTransform(e).bounds.rightCenter}getDefaultNodeOrigin(){return{x:0,y:.5}}};Xa([Ot(BV)],wR.prototype,"documentProvider",2);Xa([C_(Eot),ss()],wR.prototype,"contribs",2);wR=Xa([Pn()],wR);var rer=new Jp(e=>{e(jo).toSelf().inSingletonScope(),e(BV).toDynamicValue(n=>()=>n.container.get(jo)).inSingletonScope(),e(Rj).toSelf().inSingletonScope(),e(CR).toSelf().inSingletonScope(),e(wR).toSelf().inSingletonScope(),e(Gm).toSelf().inSingletonScope(),e(FV).to(MC).inSingletonScope(),e(PC).toSelf().inSingletonScope(),e(Hme).toDynamicValue(n=>({registerDocument:r=>{r.registerLayout(n.container.get(CR)),r.registerLayout(n.container.get(wR))}}))}),bLe=(e,n,r)=>{var a;const i=e.getService(Ume);return((a=i==null?void 0:i.constants)==null?void 0:a[n])||r||EP[n]},ier={languageId:"zh-CN",languageName:"Chinese",localizedLanguageName:"中文(中国)",contents:{Yes:"是",No:"否"}},oer={languageId:"en-US",languageName:"English",localizedLanguageName:"English",contents:{Yes:"Yes",No:"No"}},aer=class{constructor(e){this._languages=new Map,this._localLanguage="en-US",this._onLanguageChangeEmitter=new Un,this.onLanguageChange=this._onLanguageChangeEmitter.event,e.forEach(n=>this.addLanguage(n))}t(e,n){var i;const r=((i=this._languages.get(this._localLanguage))==null?void 0:i.contents)||{};return r[e]?r[e]:n!=null&&n.disableReturnKey?"":e}getLocalLanguage(){return this._localLanguage}setLocalLanguage(e){e!==this._localLanguage&&(this._localLanguage=e,this._onLanguageChangeEmitter.fire(e))}getLangauges(){return this._languages}addLanguage(e){let n=this._languages.get(e.languageId);n?this._languages.set(e.languageId,{...n,...e,contents:{...n.contents,...e.contents}}):this._languages.set(e.languageId,e)}},tF=new aer([oer,ier]),ser=Object.defineProperty,ler=Object.getOwnPropertyDescriptor,tr=(e,n,r,i)=>{for(var o=i>1?void 0:i?ler(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&ser(n,r,o),o},Not="#BBBFC4",cer="#82A7FC";function i$(){var n,r;const e=Di(Ume);return{baseColor:((n=e.constants)==null?void 0:n[mse.BASE_COLOR])||Not,baseActivatedColor:((r=e.constants)==null?void 0:r[mse.BASE_ACTIVATED_COLOR])||cer}}var Mot={stroke:Not,fill:"transparent",strokeLinecap:"round",strokeLinejoin:"round"},uer=16,Ij=32;function der(e,n=16,r=20){const{from:i,to:o,type:a}=e||{},s=Math.abs(o.y-i.y),l=Math.abs(o.x-i.x),c=l/n,u=s/r;let d=[];if(c<1)return[];switch(a){case lu.DIVERGE_LINE:case lu.DRAGGING_LINE:if(c<=1)return[{x:o.x,y:i.y,radiusX:l}];if(d=[{x:i.x+r,y:i.y},{x:i.x+r,y:o.y}],c<2){const f=l-r;d=[{x:i.x+f,y:i.y,radiusX:f},{x:i.x+f,y:o.y}]}return u<2&&(d[0].moveY=s/2,d[1].moveY=s/2),d;case lu.MERGE_LINE:return c<2?[{x:o.x,y:i.y}]:(d=[{x:o.x-r,y:i.y},{x:o.x-r,y:o.y}],u<2&&(d[0].moveY=s/2,d[1].moveY=s/2),d)}return[]}function fer(e,n=16,r=20){const{from:i,to:o,type:a}=e||{},s=Math.abs(o.y-i.y),l=Math.abs(o.x-i.x),c=s/r,u=l/n;let d=[];if(c<1)return[];switch(a){case lu.DIVERGE_LINE:case lu.DRAGGING_LINE:if(c<=1)return[{x:o.x,y:i.y,radiusY:s}];if(d=[{x:i.x,y:i.y+r},{x:o.x,y:i.y+r}],c<2){const f=s-r;d=[{x:i.x,y:i.y+f,radiusY:f},{x:o.x,y:i.y+f}]}return u<2&&(d[0].moveX=l/2,d[1].moveX=l/2),d;case lu.MERGE_LINE:return c<2?[{x:i.x,y:o.y}]:(d=[{x:i.x,y:o.y-r},{x:o.x,y:o.y-r}],u<2&&(d[0].moveX=l/2,d[1].moveX=l/2),d)}return[]}function Pot(e){var r,i,o;const{isVertical:n}=e.entity;if(n){const a=(r=e.entity.next)!=null&&r.firstChild&&!e.entity.next.isInlineBlocks?e.entity.next.firstChild.getData(hr).size.width:(i=e.entity.next)==null?void 0:i.getData(hr).size.width;return Math.max(((o=e.entity.getData(hr))==null?void 0:o.size.width)??EP[nm.HOVER_AREA_WIDTH],a||0)}return e.transform.next?e.transform.next.inputPoint.x-e.transform.outputPoint.x:Ij}function Aot(e){var o,a,s;const{isVertical:n}=e.entity;if(n)return e.transform.next?e.transform.next.inputPoint.y-e.transform.outputPoint.y:Ij;const r=(o=e.entity.next)!=null&&o.firstChild&&!e.entity.next.isInlineBlocks?e.entity.next.firstChild.getData(hr).size.height:(a=e.entity.next)==null?void 0:a.getData(hr).size.height;return Math.max(((s=e.entity.getData(hr))==null?void 0:s.size.height)||280,r||0)}var SLe=64,J_=4,ELe=20,p5=20,per=60,Dot=class extends ug{constructor(e){super(e),this.containerX=0,this.containerY=0,this.playgroundConfigEntity=this.entityManager.getEntity(da,!0)}get hasScroll(){return!!(this._scrollXInterval||this._scrollYInterval)}isCollision(e,n,r){const i=this.playgroundConfigEntity.finalScale||0;return r?this.isBranchCollision(e,n,i):this.isNodeCollision(e,n,i)}isNodeCollision(e,n,r){const{labels:i}=e,{isVertical:o}=e.entity;return{hasCollision:i.some(s=>{if(!s||![tm.ADDER_LABEL,tm.COLLAPSE_ADDER_LABEL].includes(s.type))return!1;const l=o?e.transform.bounds.width:Ij,c=o?Ij:e.transform.bounds.height,u=new Qn((s.offset.x-l/2)*r,(s.offset.y-c/2)*r,l*r,c*r);return Qn.intersects(u,n)}),labelOffsetType:void 0}}isBranchCollision(e,n,r){const{labels:i}=e,{isVertical:o}=e.entity;let a=Cot.NORMAL_BRANCH;return{hasCollision:i.some(l=>{if(!l||l.type!==tm.BRANCH_DRAGGING_LABEL)return!1;const c=o?SLe:l.width||0,u=o?l.width||0:SLe,d=new Qn((l.offset.x-u/2)*r,(l.offset.y-c/2)*r,u*r,c*r),f=Qn.intersects(d,n);return f&&(a=l.props.side),f}),labelOffsetType:a}}_startScrollX(e,n){if(this._scrollXInterval)return;const r=window.setInterval(()=>{const i=this._scrollXInterval;if(!i)return;const o=i.origin=n?i.origin+J_:i.origin-J_;this.playgroundConfigEntity.updateConfig({scrollX:o});const a=this.playgroundConfigEntity.config;(a==null?void 0:a.scrollX)===o&&(n?this.containerX+=J_:this.containerX-=J_,this.setDomStyle())},ELe);this._scrollXInterval={interval:r,origin:e}}_stopScrollX(){this._scrollXInterval&&(clearInterval(this._scrollXInterval.interval),this._scrollXInterval=void 0)}_startScrollY(e,n){if(this._scrollYInterval)return;const r=window.setInterval(()=>{const i=this._scrollYInterval;if(!i)return;const o=i.origin=n?i.origin+J_:i.origin-J_;this.playgroundConfigEntity.updateConfig({scrollY:o});const a=this.playgroundConfigEntity.config;(a==null?void 0:a.scrollY)===o&&(n?this.containerY+=J_:this.containerY-=J_,this.setDomStyle())},ELe);this._scrollYInterval={interval:r,origin:e}}_stopScrollY(){this._scrollYInterval&&(clearInterval(this._scrollYInterval.interval),this._scrollYInterval=void 0)}stopAllScroll(){this._stopScrollX(),this._stopScrollY()}setDomStyle(){this.containerDom.style.left=`${this.containerX}px`,this.containerDom.style.top=`${this.containerY}px`}scrollDirection(e,n,r,i){const o=this.playgroundConfigEntity.config,a=o.scrollX,s=o.scrollY;if(this.containerDom=n,this.containerX=r,this.containerY=i,o.height+o.clientY-e.clientY<p5)return this._startScrollY(s,!0),1;if(e.clientY-o.clientY<p5)return this._startScrollY(s,!1),0;if(this._stopScrollY(),o.width+o.clientX-e.clientX<p5)return this._startScrollX(a,!0),3;if(e.clientX-o.clientX<p5+per)return this._startScrollX(a,!1),2;this._stopScrollX()}dispose(){this.toDispose.dispose()}};Dot.type="FlowDragEntity";function her(e){const n=[e];for(e=e.parent;e;)n.push(e),e=e.parent;return n.reverse()}function ger(e){for(;e.originParent;)e=e.originParent;return e}function mer(e){if(e.length===0)return[];const n=e.map(a=>her(a)),r=Math.min(...n.map(a=>a.length));let i=0,o=[];for(;i<r&&(o=Mn.uniq(n.map(a=>a[i])),!(o.length>1));)i+=1;return Mn.uniq(o.map(a=>ger(a)))}var ver=10,o$=class extends ug{constructor(){super(...arguments),this.boundsPadding=ver}getDefaultConfig(){return{selectedNodes:[]}}get selectedNodes(){return this.config.selectedNodes}set selectedNodes(e){e=mer(e),(e.length!==this.config.selectedNodes.length||e.some(n=>!this.config.selectedNodes.includes(n)))&&(this.config.selectedNodes.forEach(n=>{e.includes(n)||(n.getData(ra).activated=!1)}),e.forEach(n=>{n.getData(ra).activated=!0}),k0.isArrayShallowChanged(this.config.selectedNodes,e)&&this.updateConfig({selectedNodes:e}))}clearSelectedNodes(){this.config.selectedNodes.length!==0&&(this.config.selectedNodes.forEach(e=>{e.getData(ra).activated=!1}),this.updateConfig({selectedNodes:[]}))}selectFromBounds(e,n){const r=[];n.forEach(i=>{Qn.intersects(e,i.bounds)&&(i.entity.originParent?r.push(i.entity.originParent):r.push(i.entity))}),this.selectedNodes=r}getSelectedBounds(){const e=this.selectedNodes;return e.length===0?Qn.EMPTY:Qn.enlarge(e.map(n=>n.getData(hr).bounds)).pad(this.boundsPadding)}};o$.type="FlowSelectConfigEntity";var a$=class extends ug{get dragInfo(){return this.config}setDragInfo(e){this.updateConfig(e)}get disabled(){return this.config&&!!this.config.disabled}set disabled(e){this.updateConfig({disabled:e})}get isStart(){return this.dragInfo.isStart}get isMoving(){return this.dragInfo.isMoving}get position(){const{dragInfo:e}=this;return{x:e.startPos.x<e.endPos.x?e.startPos.x:e.endPos.x,y:e.startPos.y<e.endPos.y?e.startPos.y:e.endPos.y}}get size(){const{dragInfo:e}=this;return{width:Math.abs(e.startPos.x-e.endPos.x),height:Math.abs(e.startPos.y-e.endPos.y)}}get collapsed(){const{size:e}=this;return e.width===0&&e.height===0}collapse(){this.setDragInfo({...this.dragInfo,isMoving:!1,isStart:!1})}toRectangle(e){const{position:n,size:r}=this;return new Qn(n.x/e,n.y/e,r.width/e,r.height/e)}};a$.type="SelectorBoxConfigEntity";var yer=e=>{if(!e||Mn.isNil(e==null?void 0:e.offsetParent))return!0;const n=window.getComputedStyle(e);return(n==null?void 0:n.display)==="none"},_er=e=>!(!e||e.bottom===0&&e.height===0&&e.left===0&&e.right===0&&e.top===0&&e.width===0&&e.x===0&&e.y===0),Nj=class{observe(e,n){const r=new ResizeObserver(i=>{window.requestAnimationFrame(()=>{if(!Array.isArray(i)||!i.length)return;const o=i[0],{contentRect:a,target:s}=o,l=_er(a),c=!s.parentNode,u=yer(s.parentNode);l&&!c&&!u&&(n.size={width:Math.round(a.width*10)/10,height:Math.round(a.height*10)/10})})});return r.observe(e),ao.create(()=>{r.unobserve(e)})}};Nj=tr([Pn()],Nj);var AC=class extends Oa{constructor(){super(...arguments),this.node=Tr.createDivWithClass("gedit-flow-nodes-layer"),this.renderCache=cD.create(e=>{const{renderState:n}=e,{node:r}=n,{entity:i}=e;r.id=i.id;let o;const a=()=>{o||(this.renderElement.appendChild(r),o=this.resizeObserver.observe(r,e))},s=()=>{o&&(r.parentElement&&this.renderElement.removeChild(r),o.dispose(),o=void 0)};return a(),{dispose:s,updateBounds:()=>{const{bounds:l}=e,c=parseFloat(r.style.left),u=parseFloat(r.style.top);(!this.isCoordEqual(c,l.x)||!this.isCoordEqual(u,l.y))&&(r.style.left=`${l.x}px`,r.style.top=`${l.y}px`)}}})}get transformVisibles(){return this.document.getRenderDatas(hr,!1)}onZoom(e){this.node.style.transform=`scale(${e})`}dispose(){this.renderCache.dispose(),super.dispose()}isCoordEqual(e,n){return Math.abs(e-n)<.05}onReady(){this.node.style.zIndex="10"}get visibeBounds(){return this.transformVisibles.map(e=>e.bounds)}updateNodesBounds(){this.renderCache.getMoreByItems(this.transformVisibles).forEach(e=>e.updateBounds())}autorun(){this.documentTransformer.loading||(this.documentTransformer.refresh(),this.updateNodesBounds())}get renderElement(){if(typeof this.options.renderElement=="function"){const e=this.options.renderElement();if(e)return e}else if(typeof this.options.renderElement<"u")return this.options.renderElement;return this.node}};tr([Ot(jo)],AC.prototype,"document",2);tr([Ot(Nj)],AC.prototype,"resizeObserver",2);tr([zo(L0)],AC.prototype,"documentTransformer",2);tr([uv(Sl,hr)],AC.prototype,"_transforms",2);AC=tr([Pn()],AC);var ber=Symbol("FlowRendererContribution"),kot=(e=>(e.NODE_RENDER="node-render",e.ADDER="adder",e.COLLAPSE="collapse",e.BRANCH_ADDER="branch-adder",e.TRY_CATCH_COLLAPSE="try-catch-collapse",e.DRAG_NODE="drag-node",e.DRAGGABLE_ADDER="draggable-adder",e.DRAG_HIGHLIGHT_ADDER="drag-highlight-adder",e.DRAG_BRANCH_HIGHLIGHT_ADDER="drag-branch-highlight-adder",e.SELECTOR_BOX_POPOVER="selector-box-popover",e.CONTEXT_MENU_POPOVER="context-menu-popover",e.SUB_CANVAS="sub-canvas",e.MARKER_ARROW="marker-arrow",e.MARKER_ACTIVATE_ARROW="marker-active-arrow",e))(kot||{}),_d=class{constructor(){this.componentsMap=new Map,this.textMap=new Map,this.contribs=[]}init(){this.contribs.forEach(e=>{var n;return(n=e.registerRenderer)==null?void 0:n.call(e,this)})}registerRendererComponents(e,n){this.componentsMap.set(e,n)}registerReactComponent(e,n){this.componentsMap.set(e,{type:0,renderer:n})}registerText(e){Object.entries(e).forEach(([n,r])=>{this.textMap.set(n,r)})}getText(e){return tF.t(e,{disableReturnKey:!0})||this.textMap.get(e)}getRendererComponent(e){const n=this.componentsMap.get(e);if(!n)throw new Error(`Unknown render key ${e}`);return n}tryToGetRendererComponent(e){return this.componentsMap.get(e)}registerLayers(...e){e.forEach(n=>this.pipeline.registerLayer(n))}registerLayer(e,n){this.pipeline.registerLayer(e,n)}};tr([C_(ber),ss()],_d.prototype,"contribs",2);tr([Ot(Pp)],_d.prototype,"pipeline",2);_d=tr([Pn()],_d);var DC=class extends Oa{constructor(){super(...arguments),this.renderMemoCache=new WeakMap,this.node=Tr.createDivWithClass("gedit-flow-nodes-layer"),this.reactPortals=cD.create(e=>{const{node:n,entity:r}=e,{config:i}=this,o=this.getPortalRenderer(e);function a(){return V.useEffect(()=>{if(n.clientWidth&&n.clientHeight){const s=r.getData(hr);s&&(s.size={width:n.clientWidth,height:n.clientHeight})}},[]),Gl.createPortal(V.createElement(kV.Provider,{value:r},V.createElement(o,{node:r,version:e==null?void 0:e.version,activated:e==null?void 0:e.activated,readonly:i.readonly,disabled:i.disabled})),n)}return{id:n.id||r.id,dispose:()=>{},Portal:a}})}get renderStatesVisible(){return this.document.getRenderDatas(ra,!1)}getPortalRenderer(e){const n=e.entity.getNodeMeta(),i=this.rendererRegistry.getRendererComponent(n.renderKey||"node-render").renderer;let o=this.renderMemoCache.get(i);return o||(o=V.memo(i),this.renderMemoCache.set(i,o)),o}onZoom(e){this.node.style.transform=`scale(${e})`}dispose(){this.reactPortals.dispose(),super.dispose()}onReady(){this.node.style.zIndex="10"}onReadonlyOrDisabledChange(){this.render()}getPortals(){return this.reactPortals.getMoreByItems(this.renderStatesVisible)}render(){return this.documentTransformer.loading?V.createElement(V.Fragment,null):(this.documentTransformer.refresh(),V.createElement(V.Fragment,null,this.getPortals().map(e=>V.createElement(e.Portal,{key:e.id}))))}};tr([Ot(jo)],DC.prototype,"document",2);tr([Ot(_d)],DC.prototype,"rendererRegistry",2);tr([zo(L0)],DC.prototype,"documentTransformer",2);tr([uv(Sl,ra)],DC.prototype,"_renderStates",2);DC=tr([Pn()],DC);var Lot="line-marker-arrow",Ser=`url(#${Lot})`;function Eer(){const{baseColor:e}=i$();return V.createElement("marker",{id:Lot,markerWidth:"11",markerHeight:"14",refX:"10",refY:"7",orient:"auto"},V.createElement("path",{d:"M9.6 5.2C10.8 6.1 10.8 7.9 9.6 8.8L3.6 13.3C2.11672 14.4125 0 13.3541 0 11.5L0 2.5C0 0.645898 2.11672 -0.412461 3.6 0.7L9.6 5.2Z",fill:e}))}var Cer=Eer,$ot="line-marker-arrow-activated",wer=`url(#${$ot})`;function xer(){const{baseActivatedColor:e}=i$();return V.createElement("marker",{id:$ot,markerWidth:"11",markerHeight:"14",refX:"10",refY:"7",orient:"auto"},V.createElement("path",{d:"M9.6 5.2C10.8 6.1 10.8 7.9 9.6 8.8L3.6 13.3C2.11672 14.4125 0 13.3541 0 11.5L0 2.5C0 0.645898 2.11672 -0.412461 3.6 0.7L9.6 5.2Z",fill:e}))}var Ter=xer;function Oer(e){const{from:n,to:r,activated:i,style:o}=e,{baseColor:a,baseActivatedColor:s}=i$();return V.createElement("path",{d:`M ${n.x} ${n.y} L ${r.x} ${r.y}`,...Mot,stroke:i?s:a,style:o})}var Rer=Oer;function Ier(e){const{vertices:n,radius:r=uer,hide:i,xRadius:o,yRadius:a,...s}=e,{from:l,to:c,arrow:u,activated:d,style:f}=s||{},{baseActivatedColor:p,baseColor:h}=i$(),g=n||(e.isHorizontal?der(s,o,a):fer(s,o,a)),v=m.useMemo(()=>g.map((_,S)=>{const b=g[S-1]||l,E=g[S+1]||c,w={x:Math.abs(b.x-_.x),y:Math.abs(b.y-_.y)},C={x:Math.abs(E.x-_.x),y:Math.abs(E.y-_.y)},x=w.x===0&&C.y===0,T=w.y===0&&C.x===0;x||T||console.error(`vertex ${_.x},${_.y} is not right angle`);const O=new gf().copyFrom(_),M=new gf().copyFrom(_),P=Mn.isNil(_.radiusX)?r:_.radiusX,k=Mn.isNil(_.radiusY)?r:_.radiusY;let $=P,U=k;if(x){U=Math.min(w.y,k);const B=Mn.isNil(_.moveY)?U:_.moveY;O.y+=l.y<_.y?-B:+B,$=Math.min(C.x,P);const Y=Mn.isNil(_.moveX)?$:_.moveX;M.x+=c.x<_.x?-Y:+Y}if(T){$=Math.min(w.x,P);const B=Mn.isNil(_.moveX)?$:_.moveX;O.x+=l.x<_.x?-B:+B,U=Math.min(C.y,k);const Y=Mn.isNil(_.moveY)?U:_.moveY;M.y+=c.y<_.y?-Y:+Y}const D=(_.x-O.x)*(M.y-O.y)-(_.y-O.y)*(M.x-O.x)>0;return`L ${O.x} ${O.y} A ${$} ${U} 0 0 ${D?1:0} ${M.x} ${M.y}`}).join(" "),[g]);if(i)return null;const y=`M ${l.x} ${l.y} ${v} L ${c.x} ${c.y}`;return V.createElement("path",{d:y,...Mot,stroke:d?p:h,...u?{markerEnd:d?wer:Ser}:{},style:f})}var Ner=Ier;function Mer(e){const{renderKey:n,rendererRegistry:r,...i}=e;if(!n)return V.createElement(V.Fragment,null);const o=r.getRendererComponent(n);if(!o)return V.createElement(V.Fragment,null);const a=o.renderer;return V.createElement(a,{...i})}var Per=Mer;function Aer(e){const{data:n,rendererRegistry:r,linesSave:i,dragService:o}=e,{lines:a,entity:s}=n||{},l=bLe(s,nm.ROUNDED_LINE_X_RADIUS),c=bLe(s,nm.ROUNDED_LINE_Y_RADIUS),u=(d,f)=>{var _;const{renderData:p}=n,{isVertical:h}=n.entity,{lineActivated:g}=p||{},v=d.type===lu.DRAGGING_LINE&&!o.isDroppableBranch(n.entity,d.side),y=d.type===lu.DRAGGING_LINE&&((_=n.entity)==null?void 0:_.id)===o.dropNodeId&&d.side===o.labelSide;switch(d.type){case lu.STRAIGHT_LINE:return V.createElement(Rer,{key:`${n.entity.id}${f}`,activated:g,...d});case lu.DIVERGE_LINE:case lu.DRAGGING_LINE:case lu.MERGE_LINE:case lu.ROUNDED_LINE:return V.createElement(Ner,{key:`${n.entity.id}${f}`,isHorizontal:!h,activated:g||y,...d,xRadius:l,yRadius:c,hide:v});case lu.CUSTOM_LINE:return V.createElement(Per,{key:`${n.entity.id}${f}`,...d,rendererRegistry:r})}};a.forEach((d,f)=>{const p=Qn.createRectangleWithTwoPoints(d.from,d.to).pad(10);if(e.isViewportVisible(p)){const h=u(d,f);h&&i.push(h)}})}var $0=class extends Oa{constructor(){super(...arguments),this.node=Tr.createDivWithClass("gedit-flow-lines-layer"),this.onViewportChange=Mn.throttle(()=>{this.render()},100)}get transitions(){return this.document.getRenderDatas(aN)}onZoom(){var n;const e=this.node.querySelector("svg.flow-lines-container");(n=e==null?void 0:e.setAttribute)==null||n.call(e,"viewBox",this.viewBox)}onReady(){this.node.style.zIndex="1"}get viewBox(){const e=1e3/this.config.finalScale;return`0 0 ${e} ${e}`}render(){const e=[],n=this.config.isViewportVisible.bind(this.config);if(this.documentTransformer.loading)return V.createElement(V.Fragment,null);this.documentTransformer.refresh(),this.transitions.forEach(u=>{Aer({data:u,rendererRegistry:this.rendererRegistry,isViewportVisible:n,linesSave:e,dragService:this.dragService})});const{activateLines:r=[],normalLines:i=[]}=Mn.groupBy(e,u=>u.props.activated?"activateLines":"normalLines"),o=[...i,...r],a=this.rendererRegistry.tryToGetRendererComponent("marker-arrow"),s=this.rendererRegistry.tryToGetRendererComponent("marker-active-arrow"),l=a?V.createElement(a.renderer):null,c=s?V.createElement(s.renderer):null;return V.createElement("svg",{className:"flow-lines-container",width:"1000",height:"1000",overflow:"visible",viewBox:this.viewBox,xmlns:"http://www.w3.org/2000/svg"},V.createElement("defs",null,a?l:V.createElement(Cer,null),c||V.createElement(Ter,null)),o)}};tr([Ot(jo)],$0.prototype,"document",2);tr([Ot(Gm)],$0.prototype,"dragService",2);tr([Ot(_d)],$0.prototype,"rendererRegistry",2);tr([zo(L0)],$0.prototype,"documentTransformer",2);tr([zo(r$)],$0.prototype,"flowRenderState",2);tr([uv(Sl,aN)],$0.prototype,"_transitions",2);$0=tr([Pn()],$0);function vse(e){const{data:n,rendererRegistry:r,forceVisible:i,hoverHeight:o=Aot(n),hoverWidth:a=Pot(n),wrapperStyle:s,...l}=e,{activateNode:c}=l,[u,d]=m.useState(!1),f=c==null?void 0:c.getData(ra),p=m.useCallback(()=>{d(!0),f==null||f.toggleMouseEnter()},[]),h=m.useCallback(()=>{d(!1),f==null||f.toggleMouseLeave()},[]),g=r.getRendererComponent("collapse"),v=n.entity,y=V.createElement(g.renderer,{node:v,collapseNode:v,...l,hoverActivated:u}),_=n.collapsed||(f==null?void 0:f.hovered)||u||i;return V.createElement("div",{className:"flow-canvas-collapse",onMouseEnter:p,onMouseLeave:h,style:{width:a,height:o,display:"flex",justifyContent:"center",alignItems:"center",...s}},_?y:null)}var Der=(e,{dragService:n})=>n&&n.dragging&&n.isDroppableNode(e)?n.dropNodeId===e.id?"drag-highlight-adder":"draggable-adder":"adder";function yse(e){const{data:n,rendererRegistry:r,hoverHeight:i=Aot(n),hoverWidth:o=Pot(n),...a}=e,[s,l]=m.useState(!1),c=m.useCallback(()=>l(!0),[]),u=m.useCallback(()=>l(!1),[]),d=n.entity,f=Di(Gm),p=Der(d,{dragService:f}),h=r.getRendererComponent(p),g=d,v=n.entity.document.renderTree.getOriginInfo(d).next,y=d.next,_=V.createElement(h.renderer,{node:d,from:g,to:v,renderTo:y,hoverActivated:s,setHoverActivated:l,hoverWidth:o,hoverHeight:i,...a});return V.createElement("div",{className:"flow-canvas-adder","data-testid":"sdk.flowcanvas.line.adder","data-from":g.id,"data-to":(v==null?void 0:v.id)??"",onMouseEnter:c,onMouseLeave:u,style:{width:o,height:i,display:"flex",justifyContent:"center",alignItems:"center"}},_)}function ker(e){const{data:n,rendererRegistry:r,...i}=e,{activateNode:o}=i,[a,s]=m.useState(!1),l=o==null?void 0:o.getData(ra),c=m.useCallback(()=>{s(!0)},[]),u=m.useCallback(()=>{s(!1)},[]),d=o==null?void 0:o.isVertical,f=(l==null?void 0:l.hovered)||a;return d?V.createElement("div",{className:"flow-canvas-collapse-adder",onMouseEnter:c,onMouseLeave:u},(f||n.collapsed)&&V.createElement(vse,{forceVisible:!0,...e,wrapperStyle:{alignItems:"flex-end"},hoverHeight:20}),!n.collapsed&&V.createElement(yse,{...e,hoverHeight:f?20:40,hoverActivated:f})):V.createElement("div",{className:"flow-canvas-collapse-adder",onMouseEnter:c,onMouseLeave:u,style:{display:n.collapsed?"block":"flex"}},(f||n.collapsed)&&V.createElement(vse,{forceVisible:!0,...e,wrapperStyle:{justifyContent:"flex-end"},hoverWidth:20}),!n.collapsed&&V.createElement(yse,{...e,hoverWidth:f?20:40,hoverActivated:f}))}var Ler=(e,{dragService:n,side:r})=>n.isDragBranch&&r&&n.labelSide===r&&n.isDroppableBranch(e,r)?n.dropNodeId===e.id?"drag-branch-highlight-adder":"draggable-adder":"";function $er(e){const{data:n,rendererRegistry:r,side:i,...o}=e,a=n.entity,s=Di(Gm),l=Ler(a,{side:i,dragService:s});if(!l)return null;const c=r.getRendererComponent(l),u=a,d=n.entity.document.renderTree.getOriginInfo(a).next,f=a.next,p=V.createElement(c.renderer,{node:a,from:u,to:d,renderTo:f,...o});return V.createElement("div",{className:"flow-canvas-branch-draggable-adder"},p)}var Fer={fontSize:12,color:"#8F959E",textAlign:"center",whiteSpace:"nowrap",backgroundColor:"var(--g-editor-background)",lineHeight:"20px"},CLe=150,wLe=60;function Ber(e){return new Qn(e.x-CLe/2,e.y-wLe/2,CLe,wLe)}function jer(e){const{data:n,rendererRegistry:r,labelsSave:i,getLabelColor:o}=e,{labels:a,renderData:s}=n||{},{activated:l}=s||{},c=(u,d)=>{const{offset:f,renderKey:p,props:h,rotate:g,type:v}=u||{},y=f.x,_=f.y;let S=null;switch(v){case tm.BRANCH_DRAGGING_LABEL:S=V.createElement($er,{rendererRegistry:r,data:n,...h});break;case tm.ADDER_LABEL:S=V.createElement(yse,{rendererRegistry:r,data:n,...h});break;case tm.COLLAPSE_LABEL:S=V.createElement(vse,{rendererRegistry:r,data:n,...h});break;case tm.COLLAPSE_ADDER_LABEL:S=V.createElement(ker,{rendererRegistry:r,data:n,...h});break;case tm.TEXT_LABEL:if(!p)return null;const b=r.getText(p)||p;S=V.createElement("div",{style:{...Fer,...h==null?void 0:h.style,color:o(l),transform:g?`rotate(${g})`:void 0}},b);break;case tm.CUSTOM_LABEL:if(!p)return null;try{const E=r.getRendererComponent(p);S=V.createElement(E.renderer,{node:n.entity,...h})}catch(E){console.error(E),S=p}break}return V.createElement("div",{key:`${n.entity.id}${d}`,style:{position:"absolute",left:y,top:_,transform:"translate(-50%, -50%)"}},S)};a.forEach((u,d)=>{e.isViewportVisible(Ber(u.offset))&&i.push(c(u,d))})}var kC=class extends Oa{constructor(){super(...arguments),this.node=Tr.createDivWithClass("gedit-flow-labels-layer"),this.onViewportChange=Mn.throttle(()=>{this.render()},100)}get transitions(){return this.document.getRenderDatas(aN)}onZoom(e){this.node.style.transform=`scale(${e})`}onReady(){this.node.style.zIndex="9"}onReadonlyOrDisabledChange(){this.render()}render(){var o,a,s;const e=[];if((o=this.documentTransformer)!=null&&o.loading)return V.createElement(V.Fragment,null);(s=(a=this.documentTransformer)==null?void 0:a.refresh)==null||s.call(a);const{baseActivatedColor:n,baseColor:r}=i$(),i=this.config.isViewportVisible.bind(this.config);return this.transitions.forEach(l=>{jer({data:l,rendererRegistry:this.rendererRegistry,isViewportVisible:i,labelsSave:e,getLabelColor:c=>c?n:r})}),V.createElement(V.Fragment,null,e)}};tr([Ot(jo)],kC.prototype,"document",2);tr([Ot(_d)],kC.prototype,"rendererRegistry",2);tr([zo(L0)],kC.prototype,"documentTransformer",2);tr([zo(r$)],kC.prototype,"flowRenderState",2);tr([uv(Sl,aN)],kC.prototype,"_transitions",2);kC=tr([Pn()],kC);var xLe=-120;function Mj(e,n){const r=n.finalScale;return new Qn(e.scrollX/r,e.scrollY/r,n.config.width/r,n.config.height/r).pad(xLe/r,xLe/r)}function Uer(e,n,r,i){e={...e};const o=r.config,a={scrollX:o.scrollX,scrollY:o.scrollY};if(n.length===0||o.width===0||o.height===0)return e;const s=Mj(e,r);if(!n.find(c=>Qn.isViewportVisible(c,s))){const c=Mj(a,r);return n.find(d=>Qn.isViewportVisible(d,c))?a:i()}return e}var Her=Symbol("ScrollBarEvents"),TLe=0;function OLe(e){const n=Math.min(e/10*255,255);TLe+=1;const r=TLe%3,i=()=>Math.floor(Math.random()*n);return`rgb(${r===0?i():0}, ${r===1?i():0}, ${r===2?i():0})`}var fD=class extends Oa{constructor(){var e;super(...arguments),this.node=document.createElement("div"),this.viewport=Tr.createDivWithClass("gedit-flow-debug-bounds"),this.boundsNodes=Tr.createDivWithClass("gedit-flow-debug-bounds"),this.pointsNodes=Tr.createDivWithClass("gedit-flow-debug-points"),this.versionNodes=Tr.createDivWithClass("gedit-flow-debug-versions gedit-hidden"),this.filterKey=((e=window.location.search.match(/debug=([^&]+)/))==null?void 0:e[1])||"",this.originLine=document.createElement("div"),this.domCache=new WeakMap}get transforms(){return this.document.getRenderDatas(hr)}onReady(){this.node.style.zIndex="20",Tr.setStyle(this.originLine,{position:"absolute",width:1,height:"100%",left:this.pipelineNode.style.left,top:0,borderLeft:"1px dashed rgba(255, 0, 0, 0.5)"}),this.pipelineNode.parentElement.appendChild(this.originLine),this.node.appendChild(this.viewport),this.node.appendChild(this.versionNodes),this.node.appendChild(this.boundsNodes),this.node.appendChild(this.pointsNodes),this.renderScrollViewportBounds()}onScroll(){this.originLine.style.left=this.pipelineNode.style.left,this.renderScrollViewportBounds()}onResize(){this.renderScrollViewportBounds()}onZoom(e){this.node.style.transform=`scale(${e})`,this.renderScrollViewportBounds()}createBounds(e,n,r){if(this.filterKey&&e.key.indexOf(this.filterKey)===-1)return;let i=this.domCache.get(e);const{bounds:o,inputPoint:a,outputPoint:s}=e;if(!i){const l=Tr.createDivWithClass(""),c=Tr.createDivWithClass(""),u=Tr.createDivWithClass(""),d=Tr.createDivWithClass("");l.title=e.key,c.title=e.key+"(input)",u.title=e.key+"(output)",d.title=e.key,this.boundsNodes.appendChild(l),this.pointsNodes.appendChild(c),this.pointsNodes.appendChild(u),this.versionNodes.appendChild(d),e.onDispose(()=>{l.remove(),c.remove(),u.remove()}),i={bbox:l,input:c,output:u,version:d,color:n},this.domCache.set(e,i)}Tr.setStyle(i.version,{position:"absolute",marginLeft:"-9px",marginTop:"-10px",borderRadius:12,background:"#f54a45",padding:4,color:"navajowhite",display:e.renderState.hidden?"none":"block",zIndex:r+1e3,left:o.center.x,top:o.center.y}),i.version.innerHTML=e.version.toString(),Tr.setStyle(i.input,{position:"absolute",width:10,height:10,marginLeft:-5,marginTop:-5,borderRadius:5,left:a.x,top:a.y,opacity:.4,zIndex:r,backgroundColor:i.color,whiteSpace:"nowrap",overflow:"visible"}),i.input.innerHTML=`${a.x},${a.y}`,Tr.setStyle(i.output,{position:"absolute",width:10,height:10,marginLeft:-5,marginTop:-5,borderRadius:5,left:s.x,top:s.y,opacity:.4,zIndex:r,backgroundColor:i.color,whiteSpace:"nowrap",overflow:"visible"}),i.output.innerHTML=`${s.x},${s.y}`,Tr.setStyle(i.bbox,{position:"absolute",width:o.width,height:o.height,left:o.left,top:o.top,opacity:`${r/30}`,backgroundColor:i.color})}renderScrollViewportBounds(){const e=Mj({scrollX:this.config.config.scrollX,scrollY:this.config.config.scrollY},this.config);Tr.setStyle(this.viewport,{position:"absolute",width:e.width-2,height:e.height-2,left:e.left+1,top:e.top+1,border:"1px solid rgba(200, 200, 255, 0.5)"})}autorun(){if(this.documentTransformer.loading)return;this.documentTransformer.refresh();let e=OLe(0);this.document.traverse((n,r)=>{const i=n.getData(hr);e=OLe(r),this.createBounds(i,e,r)}),this.renderScrollViewportBounds()}};tr([Ot(jo)],fD.prototype,"document",2);tr([zo(L0)],fD.prototype,"documentTransformer",2);tr([uv(Sl,hr)],fD.prototype,"_transforms",2);fD=tr([Pn()],fD);var RLe=2,ILe=11,NLe="7px",xR=class extends Oa{constructor(){super(...arguments),this.rightScrollBar=Tr.createDivWithClass("gedit-playground-scroll-right"),this.rightScrollBarBlock=Tr.createDivWithClass("gedit-playground-scroll-right-block"),this.bottomScrollBar=Tr.createDivWithClass("gedit-playground-scroll-bottom"),this.bottomScrollBarBlock=Tr.createDivWithClass("gedit-playground-scroll-bottom-block"),this.sum=0,this.initialScrollX=0,this.initialScrollY=0,this.bottomGrabDragger=new Em({onDragStart:e=>{this.config.updateCursor("grabbing"),this.sum=0,this.initialScrollX=this.config.getViewport().x,this.onBoardingToast()},onDrag:e=>{this.sum+=e.movingDelta.x,this.playgroundConfigEntity.scroll({scrollX:(this.initialScrollX+this.sum*this.viewportFullWidth/(this.clientViewportWidth-this.scrollBottomWidth))*this.scale},!1)},onDragEnd:e=>{this.config.updateCursor("default")}}),this.rightGrabDragger=new Em({onDragStart:e=>{this.config.updateCursor("grabbing"),this.sum=0,this.initialScrollY=this.config.getViewport().y,this.onBoardingToast()},onDrag:e=>{this.sum+=e.movingDelta.y,this.playgroundConfigEntity.scroll({scrollY:(this.initialScrollY+this.sum*this.viewportFullHeight/(this.clientViewportHeight-this.scrollRightHeight))*this.scale},!1)},onDragEnd:e=>{this.config.updateCursor("default")}})}get clientViewportWidth(){return this.viewportWidth*this.scale-ILe}get clientViewportHeight(){return this.viewportHeight*this.scale-ILe}get viewportFullWidth(){return this.mostLeft-this.mostRight}get viewportFullHeight(){return this.mostTop-this.mostBottom}get viewportMoveWidth(){return this.mostLeft-this.mostRight+this.width}get viewportMoveHeight(){return this.mostTop-this.mostBottom+this.height}getToLeft(e){return(e-this.mostRight)/this.viewportMoveWidth*this.clientViewportWidth}getToTop(e){return(e-this.mostBottom)/this.viewportMoveHeight*this.clientViewportHeight}clickRightScrollBar(e){e.preventDefault(),e.stopPropagation();const n=1-((e==null?void 0:e.y)||0)/this.clientViewportHeight,r=(this.mostTop-this.viewportFullHeight*n)*this.scale;this.playgroundConfigEntity.scroll({scrollY:r},!1)}clickBottomScrollBar(e){e.preventDefault(),e.stopPropagation();const n=1-((e==null?void 0:e.x)||0)/this.clientViewportWidth,r=(this.mostLeft-this.viewportFullWidth*n)*this.scale;this.playgroundConfigEntity.scroll({scrollX:r},!1)}onBoardingToast(){var e;(e=this.events)==null||e.dragStart()}changeScrollBarVisibility(e,n){const r=n==="show"?"gedit-playground-scroll-show":"gedit-playground-scroll-hidden",i=n==="show"?"gedit-playground-scroll-hidden":"gedit-playground-scroll-show";Tr.addClass(e,r),Tr.delClass(e,i)}onReady(){this.options.getBounds||(this.options={getBounds:()=>{const e=this.flowDocument;return e?(e.transformer.refresh(),e.root.getData(hr).bounds):Qn.EMPTY},showScrollBars:"whenScrolling"}),this.pipelineNode.parentNode.appendChild(this.rightScrollBar),this.pipelineNode.parentNode.appendChild(this.rightScrollBarBlock),this.pipelineNode.parentNode.appendChild(this.bottomScrollBar),this.pipelineNode.parentNode.appendChild(this.bottomScrollBarBlock),this.rightScrollBar.onclick=this.clickRightScrollBar.bind(this),this.bottomScrollBar.onclick=this.clickBottomScrollBar.bind(this),this.options.showScrollBars==="whenScrolling"&&(this.rightScrollBar.addEventListener("mouseenter",e=>{this.changeScrollBarVisibility(this.rightScrollBarBlock,"show")}),this.rightScrollBar.addEventListener("mouseleave",e=>{this.changeScrollBarVisibility(this.rightScrollBarBlock,"hidden")}),this.bottomScrollBar.addEventListener("mouseenter",e=>{this.changeScrollBarVisibility(this.bottomScrollBarBlock,"show")}),this.bottomScrollBar.addEventListener("mouseleave",e=>{this.changeScrollBarVisibility(this.bottomScrollBarBlock,"hidden")})),this.bottomScrollBarBlock.addEventListener("mousedown",e=>{this.bottomGrabDragger.start(e.clientX,e.clientY),e.stopPropagation()}),this.rightScrollBarBlock.addEventListener("mousedown",e=>{this.rightGrabDragger.start(e.clientX,e.clientY),e.stopPropagation()})}autorun(){this.hideTimeout&&clearTimeout(this.hideTimeout);const e=Mj({scrollX:this.config.config.scrollX,scrollY:this.config.config.scrollY},this.config),n=this.config.getViewport();this.viewportWidth=n.width,this.viewportHeight=n.height;const r=this.options.getBounds();this.width=(r==null?void 0:r.width)||0,this.height=(r==null?void 0:r.height)||0;const i=(this.viewportWidth-e.width)/2-RLe,o=(this.viewportHeight-e.height)/2-RLe,a=this.width+e.width,s=this.height+e.height,l=r.x,c=r.y;this.mostLeft=this.width+l-i,this.mostRight=this.mostLeft-a,this.mostTop=this.height+c-o,this.mostBottom=this.mostTop-s,this.scale=this.config.finalScale;const u=this.clientViewportWidth,d=this.clientViewportHeight;this.scrollBottomWidth=u-u*(this.mostLeft-this.mostRight)/this.viewportMoveWidth,this.scrollRightHeight=d-d*(this.mostTop-this.mostBottom)/this.viewportMoveHeight;const f=this.getToLeft(n.x),p=this.getToTop(n.y);Tr.setStyle(this.rightScrollBarBlock,{right:2,top:p,background:"#1F2329",zIndex:10,height:this.scrollRightHeight,width:NLe}),Tr.setStyle(this.bottomScrollBarBlock,{left:f,bottom:2,background:"#1F2329",zIndex:10,height:NLe,width:this.scrollBottomWidth}),this.changeScrollBarVisibility(this.rightScrollBarBlock,"show"),this.changeScrollBarVisibility(this.bottomScrollBarBlock,"show"),this.options.showScrollBars==="whenScrolling"&&(this.hideTimeout=window.setTimeout(()=>{this.changeScrollBarVisibility(this.rightScrollBarBlock,"hidden"),this.changeScrollBarVisibility(this.bottomScrollBarBlock,"hidden"),this.hideTimeout=void 0},1e3))}};tr([ss(),Ot(Her)],xR.prototype,"events",2);tr([Ot(jo),ss()],xR.prototype,"flowDocument",2);tr([zo(da)],xR.prototype,"playgroundConfigEntity",2);xR=tr([Pn()],xR);var MLe=10,PLe=8,ALe=8,fg=class extends Oa{constructor(){super(...arguments),this.dragOffset={x:PLe,y:ALe},this.containerRef=V.createRef(),this.draggingNodeMask=document.createElement("div"),this._dragger=new Em({onDrag:e=>{this.handleMouseMove(e)},onDragEnd:()=>{this.handleMouseUp()},stopGlobalEventNames:["contextmenu"]})}get transitions(){const e=[];return this.document.traverse(n=>{e.push(n.getData(aN))}),e}get dragStartEntity(){return this.flowRenderStateEntity.getDragStartEntity()}set dragStartEntity(e){this.flowRenderStateEntity.setDragStartEntity(e)}get dragEntities(){return this.flowRenderStateEntity.getDragEntities()}set dragEntities(e){this.flowRenderStateEntity.setDragEntities(e)}isGrab(){return this.editorStateConfig.getCurrentState()===ko.STATE_GRAB}setDraggingStatus(e){this.service.nodeDragIdsWithChildren.length&&this.service.nodeDragIdsWithChildren.forEach(n=>{const r=this.entityManager.getEntityById(n),i=r==null?void 0:r.getData(ra);i.dragging=e})}dragEnable(e){return Math.abs(e.clientX-this.initialPosition.x)>MLe||Math.abs(e.clientY-this.initialPosition.y)>MLe}handleMouseMove(e){var n;if(this.dragStartEntity&&this.dragEnable(e)){this.setDraggingStatus(!0);const r=this.playgroundConfigEntity.finalScale;if(this.containerRef.current){const i=(n=this.containerRef.current.children)==null?void 0:n[0],o=e.clientX-(this.pipelineNode.offsetLeft||0)-this.playgroundConfigEntity.config.clientX-(i.clientWidth-this.dragOffset.x)*r,a=e.clientY-(this.pipelineNode.offsetTop||0)-this.playgroundConfigEntity.config.clientY-(i.clientHeight-this.dragOffset.y)*r,s=this.service.isDragBranch,l=new Qn(o,a,i.clientWidth*r,i.clientHeight*r);let c;const u=this.transitions.find(d=>{var h,g;if((g=(h=d==null?void 0:d.entity)==null?void 0:h.parent)!=null&&g.collapsed)return!1;const{hasCollision:f,labelOffsetType:p}=this.flowDragConfigEntity.isCollision(d,l,s);return c=p,f});u&&(s?this.service.isDroppableBranch(u.entity,c):this.service.isDroppableNode(u.entity))&&(!this.options.canDrop||this.options.canDrop({dragNodes:this.dragEntities,dropNode:u.entity,isBranch:s}))?this.flowRenderStateEntity.setNodeDroppingId(u.entity.id):this.flowRenderStateEntity.setNodeDroppingId(""),this.flowRenderStateEntity.setDragLabelSide(c),this.containerRef.current.style.visibility="visible",this.pipelineNode.parentElement.appendChild(this.draggingNodeMask),this.containerRef.current.style.left=`${o}px`,this.containerRef.current.style.top=`${a}px`,this.containerRef.current.style.transformOrigin="top left",this.containerRef.current.style.transform=`scale(${r})`,this.flowDragConfigEntity.scrollDirection(e,this.containerRef.current,o,a)}}}handleMouseUp(){this.setDraggingStatus(!1),this.dragStartEntity&&(this.service.dropNodeId&&(this.service.isDragBranch?this.service.dropBranch():(this.service.dropNode(),this.selectConfigEntity.clearSelectedNodes())),this.flowRenderStateEntity.setNodeDroppingId(""),this.flowRenderStateEntity.setDragLabelSide(),this.dragStartEntity=void 0,this.dragEntities=[],this.flowDragConfigEntity.stopAllScroll()),this.containerRef.current&&(this.containerRef.current.style.visibility="hidden",this.pipelineNode.parentElement.contains(this.draggingNodeMask)&&this.pipelineNode.parentElement.removeChild(this.draggingNodeMask))}async startDrag(e,{dragStartEntity:n,dragEntities:r},i){if(this.isGrab()||this.config.disabled||this.config.readonly)return;this.dragOffset.x=(i==null?void 0:i.dragOffsetX)||PLe,this.dragOffset.y=(i==null?void 0:i.dragOffsetY)||ALe;const o=n.flowNodeType===Fo.BLOCK_ICON,a=n.flowNodeType===Fo.BLOCK_ORDER_ICON,s=o||a?n.parent:n;if(s.getData(ra).draggable)return this.initialPosition={x:e.clientX,y:e.clientY},this.dragStartEntity=s,this.dragEntities=r||[this.dragStartEntity],this._dragger.start(e.clientX,e.clientY)}onReady(){this.draggingNodeMask.style.width="100%",this.draggingNodeMask.style.height="100%",this.draggingNodeMask.style.position="absolute",this.draggingNodeMask.classList.add("dragging-node"),this.draggingNodeMask.style.zIndex="99",this.draggingNodeMask.style.cursor="pointer",this.dragNodeComp=this.rendererRegistry.getRendererComponent("drag-node"),this.options.onDrop&&this.toDispose.push(this.service.onDrop(this.options.onDrop))}render(){const e=this.dragNodeComp.renderer;return V.createElement("div",{ref:this.containerRef,style:{position:"absolute",zIndex:99999,visibility:"hidden"},onMouseEnter:n=>n.stopPropagation()},V.createElement(e,{dragStart:this.dragStartEntity,dragNodes:this.dragEntities}))}};tr([Ot(jo)],fg.prototype,"document",2);tr([Ot(Gm)],fg.prototype,"service",2);tr([uv(Sl,hr)],fg.prototype,"transforms",2);tr([zo(Hm)],fg.prototype,"editorStateConfig",2);tr([zo(da)],fg.prototype,"playgroundConfigEntity",2);tr([zo(Dot)],fg.prototype,"flowDragConfigEntity",2);tr([zo(r$)],fg.prototype,"flowRenderStateEntity",2);tr([zo(o$)],fg.prototype,"selectConfigEntity",2);tr([Ot(_d)],fg.prototype,"rendererRegistry",2);fg=tr([Pn()],fg);var Wm=class extends Oa{constructor(){super(...arguments),this.node=Tr.createDivWithClass("gedit-selector-box-layer"),this.selectorBox=this.createDOMCache("gedit-selector-box"),this.selectorBoxBlock=this.createDOMCache("gedit-selector-box-block"),this.selectboxDragger=new Em({onDragStart:e=>{this.selectConfigEntity.clearSelectedNodes();const n=this.playgroundConfigEntity.getPosFromMouseEvent(e);this.transformVisibles=this.flowDocument.getRenderDatas(hr,!1).filter(r=>{const{entity:i}=r;return i.originParent?this.nodeSelectable(i,n)&&this.nodeSelectable(i.originParent,n):this.nodeSelectable(i,n)}),this.selectorBoxConfigEntity.setDragInfo(e),this.updateSelectorBox(this.selectorBoxConfigEntity)},onDrag:e=>{this.selectorBoxConfigEntity.setDragInfo(e),this.selectConfigEntity.selectFromBounds(this.selectorBoxConfigEntity.toRectangle(this.playgroundConfigEntity.finalScale),this.transformVisibles),this.updateSelectorBox(this.selectorBoxConfigEntity)},onDragEnd:e=>{this.selectorBoxConfigEntity.setDragInfo(e),this.transformVisibles.length=0,this.updateSelectorBox(this.selectorBoxConfigEntity)}})}onReady(){this.options.canSelect||(this.options.canSelect=e=>{const n=e.target;return n===this.pipelineNode||n===this.playgroundNode}),this.toDispose.pushAll([this.selectConfigEntity.onConfigChanged(()=>{this.selectionService.selection=this.selectConfigEntity.selectedNodes}),this.selectionService.onSelectionChanged(()=>{const e=this.selectionService.selection.filter(n=>n instanceof Sl);this.selectConfigEntity.selectedNodes=e})]),this.listenPlaygroundEvent("mousedown",e=>!this.isEnabled()||this.options.canSelect&&!this.options.canSelect(e,this.selectorBoxConfigEntity)?void 0:(this.editorStateConfig.getCurrentState()===ko.STATE_MOUSE_FRIENDLY_SELECT&&this.selectConfigEntity.clearSelectedNodes(),this.selectboxDragger.start(e.clientX,e.clientY,this.config),!0),Nme.BASE_LAYER)}isEnabled(){const e=this.editorStateConfig.getCurrentState(),n=e===ko.STATE_MOUSE_FRIENDLY_SELECT;return!this.config.disabled&&!this.config.readonly&&(n&&this.editorStateConfig.isPressingShift||e===ko.STATE_SELECT)&&!this.selectorBoxConfigEntity.disabled}dispose(){this.selectorBox.dispose(),this.selectorBoxBlock.dispose(),super.dispose()}updateSelectorBox(e){const n=this.selectorBox.get(),r=this.selectorBoxBlock.get();!this.isEnabled()&&e.isMoving&&this.selectorBoxConfigEntity.collapse(),!this.isEnabled()||!e.isMoving?(n.setStyle({display:"none"}),r.setStyle({display:"none"})):(n.setStyle({display:"block",left:e.position.x,top:e.position.y,width:e.size.width,height:e.size.height}),r.setStyle({display:"block",left:e.position.x-10,top:e.position.y-10,width:e.size.width+20,height:e.size.height+20}))}nodeSelectable(e,n){const r=e.getNodeMeta().selectable;return typeof r=="function"?r(e,n):r}};tr([Ot(jo)],Wm.prototype,"flowDocument",2);tr([Ot(uD)],Wm.prototype,"contextMenuService",2);tr([zo(da)],Wm.prototype,"playgroundConfigEntity",2);tr([Ot(dg)],Wm.prototype,"selectionService",2);tr([zo(a$)],Wm.prototype,"selectorBoxConfigEntity",2);tr([zo(o$)],Wm.prototype,"selectConfigEntity",2);tr([zo(Hm)],Wm.prototype,"editorStateConfig",2);Wm=tr([Pn()],Wm);var Ym=class extends Oa{constructor(){super(...arguments),this.node=Tr.createDivWithClass("gedit-selector-bounds-layer"),this.selectBoundsBackground=Tr.createDivWithClass("gedit-selector-bounds-background")}onReady(){this.node.style.zIndex="20";const{firstChild:e}=this.pipelineNode;this.options.boundsPadding!==void 0&&(this.flowSelectConfigEntity.boundsPadding=this.options.boundsPadding),this.options.backgroundClassName&&this.selectBoundsBackground.classList.add(this.options.backgroundClassName);const n=Tr.createDivWithClass("gedit-playground-layer");n.appendChild(this.selectBoundsBackground),this.pipelineNode.insertBefore(n,e)}onZoom(e){this.node.style.transform=`scale(${e})`,this.selectBoundsBackground.parentElement.style.transform=`scale(${e})`}onViewportChange(){this.render()}isEnabled(){return this.editorStateConfig.getCurrentState()===ko.STATE_SELECT}render(){var p;const{ignoreOneSelect:e,ignoreChildrenLength:n,SelectorBoxPopover:r,disableBackground:i,CustomBoundsRenderer:o}=this.options,a=this.flowSelectConfigEntity.getSelectedBounds(),s=this.flowSelectConfigEntity.selectedNodes,l=this.selectBoundsBackground,c=!this.selectorBoxConfigEntity.isStart;if(a.width===0||a.height===0||e&&s.length===1&&(n||s[0].childrenLength<=1))return Tr.setStyle(l,{display:"none"}),V.createElement(V.Fragment,null);if(o)return V.createElement(o,{bounds:a,config:this.config,flowSelectConfig:this.flowSelectConfigEntity,commandRegistry:this.commandRegistry});const u={display:"block",left:a.left,top:a.top,width:a.width,height:a.height};i||Tr.setStyle(l,u);let d="gedit-selector-bounds-foreground";this.options.foregroundClassName&&(d+=" "+this.options.foregroundClassName);const f=r||((p=this.rendererRegistry.tryToGetRendererComponent("selector-box-popover"))==null?void 0:p.renderer);return!c||!f?V.createElement("div",{className:d,style:u}):V.createElement(f,{bounds:a,config:this.config,flowSelectConfig:this.flowSelectConfigEntity,commandRegistry:this.commandRegistry},V.createElement("div",{className:d,style:u}))}};tr([Ot(_d)],Ym.prototype,"rendererRegistry",2);tr([Ot(Sm)],Ym.prototype,"commandRegistry",2);tr([zo(o$)],Ym.prototype,"flowSelectConfigEntity",2);tr([zo(Hm)],Ym.prototype,"editorStateConfig",2);tr([zo(a$)],Ym.prototype,"selectorBoxConfigEntity",2);tr([uv(Sl,ra)],Ym.prototype,"renderStates",2);tr([uv(Sl,hr)],Ym.prototype,"_transforms",2);Ym=tr([Pn()],Ym);var qm=class extends Oa{constructor(){super(...arguments),this.node=Tr.createDivWithClass("gedit-context-menu-layer"),this.nodeRef=V.createRef()}isEnabled(){const e=this.editorStateConfig.getCurrentState();return!this.config.disabled&&!this.config.readonly&&e===ko.STATE_SELECT&&!this.selectorBoxConfigEntity.disabled}onReady(){this.node.style.zIndex="30",this.node.style.display="block",this.toDispose.pushAll([this.listenPlaygroundEvent("contextmenu",e=>{var o;if(!this.isEnabled())return;this.contextMenuService.rightPanelVisible=!0;const n=this.flowSelectConfigEntity.getSelectedBounds();if(n.width===0||n.height===0)return;e.stopPropagation(),e.preventDefault(),(o=this.nodeRef.current)==null||o.setVisible(!0);const r=e.clientX-(this.pipelineNode.offsetLeft||0)-this.playgroundConfigEntity.config.clientX,i=e.clientY-(this.pipelineNode.offsetTop||0)-this.playgroundConfigEntity.config.clientY;this.node.style.left=`${r}px`,this.node.style.top=`${i}px`},Nme.BASE_LAYER),this.listenPlaygroundEvent("mousedown",()=>{var e;(e=this.nodeRef.current)==null||e.setVisible(!1),this.contextMenuService.rightPanelVisible=!1})])}onScroll(){var e;(e=this.nodeRef.current)==null||e.setVisible(!1)}onZoom(){var e;(e=this.nodeRef.current)==null||e.setVisible(!1)}dispose(){super.dispose()}renderCommandMenus(){return this.commandRegistry.commands.filter(e=>e.category==="SELECTOR_BOX").map(e=>{var r;const n=(r=this.rendererRegistry.getRendererComponent(e.icon||e.id))==null?void 0:r.renderer;return V.createElement(n,{key:e.id,command:e,isContextMenu:!0,disabled:!this.commandRegistry.isEnabled(e.id),onClick:i=>this.commandRegistry.executeCommand(e.id,i)})}).filter(e=>e)}render(){const e=this.rendererRegistry.getRendererComponent("context-menu-popover").renderer;return V.createElement(e,{ref:this.nodeRef,content:this.renderCommandMenus()})}};tr([Ot(Sm)],qm.prototype,"commandRegistry",2);tr([Ot(_d)],qm.prototype,"rendererRegistry",2);tr([Ot(uD)],qm.prototype,"contextMenuService",2);tr([zo(o$)],qm.prototype,"flowSelectConfigEntity",2);tr([Ot(dg)],qm.prototype,"selectionService",2);tr([zo(da)],qm.prototype,"playgroundConfigEntity",2);tr([zo(Hm)],qm.prototype,"editorStateConfig",2);tr([zo(a$)],qm.prototype,"selectorBoxConfigEntity",2);qm=tr([Pn()],qm);var Pj=class extends Oa{getInitScroll(){return this.document.layout.getInitScroll(this.pipelineNode.getBoundingClientRect())}onReady(){const e=()=>this.getInitScroll();this.config.updateConfig(e()),this.config.addScrollLimit(n=>Uer(n,[this.document.root.getData(hr).bounds],this.config,e))}};tr([Ot(jo)],Pj.prototype,"document",2);Pj=tr([Pn()],Pj);var zer=new Jp(e=>{e(_d).toSelf().inSingletonScope(),e(Nj).toSelf().inSingletonScope()});function Vs(e){return typeof e=="function"}function Fot(e){var n=function(i){Error.call(i),i.stack=new Error().stack},r=e(n);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var DJ=Fot(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
`+r.map(function(i,o){return o+1+") "+i.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=r}});function Aj(e,n){if(e){var r=e.indexOf(n);0<=r&&e.splice(r,1)}}var sN=function(){function e(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var n,r,i,o,a;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var l=qO(s),c=l.next();!c.done;c=l.next()){var u=c.value;u.remove(this)}}catch(v){n={error:v}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}else s.remove(this);var d=this.initialTeardown;if(Vs(d))try{d()}catch(v){a=v instanceof DJ?v.errors:[v]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=qO(f),h=p.next();!h.done;h=p.next()){var g=h.value;try{DLe(g)}catch(v){a=a??[],v instanceof DJ?a=rs(rs([],M0(a)),M0(v.errors)):a.push(v)}}}catch(v){i={error:v}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}if(a)throw new DJ(a)}},e.prototype.add=function(n){var r;if(n&&n!==this)if(this.closed)DLe(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(n)}},e.prototype._hasParent=function(n){var r=this._parentage;return r===n||Array.isArray(r)&&r.includes(n)},e.prototype._addParent=function(n){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(n),r):r?[r,n]:n},e.prototype._removeParent=function(n){var r=this._parentage;r===n?this._parentage=null:Array.isArray(r)&&Aj(r,n)},e.prototype.remove=function(n){var r=this._finalizers;r&&Aj(r,n),n instanceof e&&n._removeParent(this)},e.EMPTY=function(){var n=new e;return n.closed=!0,n}(),e}(),Bot=sN.EMPTY;function jot(e){return e instanceof sN||e&&"closed"in e&&Vs(e.remove)&&Vs(e.add)&&Vs(e.unsubscribe)}function DLe(e){Vs(e)?e():e.unsubscribe()}var Uot={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Hot={setTimeout:function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,rs([e,n],M0(r)))},clearTimeout:function(e){var n=Hot.delegate;return((n==null?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0};function zot(e){Hot.setTimeout(function(){throw e})}function kLe(){}function nF(e){e()}var zme=function(e){us(n,e);function n(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,jot(r)&&r.add(i)):i.destination=Yer,i}return n.create=function(r,i,o){return new pD(r,i,o)},n.prototype.next=function(r){this.isStopped||this._next(r)},n.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(r){this.destination.next(r)},n.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(sN),Ver=Function.prototype.bind;function kJ(e,n){return Ver.call(e,n)}var Ger=function(){function e(n){this.partialObserver=n}return e.prototype.next=function(n){var r=this.partialObserver;if(r.next)try{r.next(n)}catch(i){h5(i)}},e.prototype.error=function(n){var r=this.partialObserver;if(r.error)try{r.error(n)}catch(i){h5(i)}else h5(n)},e.prototype.complete=function(){var n=this.partialObserver;if(n.complete)try{n.complete()}catch(r){h5(r)}},e}(),pD=function(e){us(n,e);function n(r,i,o){var a=e.call(this)||this,s;if(Vs(r)||!r)s={next:r??void 0,error:i??void 0,complete:o??void 0};else{var l;a&&Uot.useDeprecatedNextContext?(l=Object.create(r),l.unsubscribe=function(){return a.unsubscribe()},s={next:r.next&&kJ(r.next,l),error:r.error&&kJ(r.error,l),complete:r.complete&&kJ(r.complete,l)}):s=r}return a.destination=new Ger(s),a}return n}(zme);function h5(e){zot(e)}function Wer(e){throw e}var Yer={closed:!0,next:kLe,error:Wer,complete:kLe},Vme=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function lN(e){return e}function qer(e){return e.length===0?lN:e.length===1?e[0]:function(r){return e.reduce(function(i,o){return o(i)},r)}}var Rf=function(){function e(n){n&&(this._subscribe=n)}return e.prototype.lift=function(n){var r=new e;return r.source=this,r.operator=n,r},e.prototype.subscribe=function(n,r,i){var o=this,a=Xer(n)?n:new pD(n,r,i);return nF(function(){var s=o,l=s.operator,c=s.source;a.add(l?l.call(a,c):c?o._subscribe(a):o._trySubscribe(a))}),a},e.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(r){n.error(r)}},e.prototype.forEach=function(n,r){var i=this;return r=LLe(r),new r(function(o,a){var s=new pD({next:function(l){try{n(l)}catch(c){a(c),s.unsubscribe()}},error:a,complete:o});i.subscribe(s)})},e.prototype._subscribe=function(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)},e.prototype[Vme]=function(){return this},e.prototype.pipe=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return qer(n)(this)},e.prototype.toPromise=function(n){var r=this;return n=LLe(n),new n(function(i,o){var a;r.subscribe(function(s){return a=s},function(s){return o(s)},function(){return i(a)})})},e.create=function(n){return new e(n)},e}();function LLe(e){var n;return(n=e??Uot.Promise)!==null&&n!==void 0?n:Promise}function Ker(e){return e&&Vs(e.next)&&Vs(e.error)&&Vs(e.complete)}function Xer(e){return e&&e instanceof zme||Ker(e)&&jot(e)}function Qer(e){return Vs(e==null?void 0:e.lift)}function dv(e){return function(n){if(Qer(n))return n.lift(function(r){try{return e(r,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function pg(e,n,r,i,o){return new Zer(e,n,r,i,o)}var Zer=function(e){us(n,e);function n(r,i,o,a,s,l){var c=e.call(this,r)||this;return c.onFinalize=s,c.shouldUnsubscribe=l,c._next=i?function(u){try{i(u)}catch(d){r.error(d)}}:e.prototype._next,c._error=a?function(u){try{a(u)}catch(d){r.error(d)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=o?function(){try{o()}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,c}return n.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;e.prototype.unsubscribe.call(this),!i&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},n}(zme),_se={schedule:function(e){var n=requestAnimationFrame,r=cancelAnimationFrame,i=_se.delegate;i&&(n=i.requestAnimationFrame,r=i.cancelAnimationFrame);var o=n(function(a){r=void 0,e(a)});return new sN(function(){return r==null?void 0:r(o)})},requestAnimationFrame:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return requestAnimationFrame.apply(void 0,rs([],M0(e)))},cancelAnimationFrame:function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return cancelAnimationFrame.apply(void 0,rs([],M0(e)))},delegate:void 0},Jer=Fot(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),MS=function(e){us(n,e);function n(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return n.prototype.lift=function(r){var i=new $Le(this,this);return i.operator=r,i},n.prototype._throwIfClosed=function(){if(this.closed)throw new Jer},n.prototype.next=function(r){var i=this;nF(function(){var o,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=qO(i.currentObservers),l=s.next();!l.done;l=s.next()){var c=l.value;c.next(r)}}catch(u){o={error:u}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}}})},n.prototype.error=function(r){var i=this;nF(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var o=i.observers;o.length;)o.shift().error(r)}})},n.prototype.complete=function(){var r=this;nF(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},n.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},n.prototype._innerSubscribe=function(r){var i=this,o=this,a=o.hasError,s=o.isStopped,l=o.observers;return a||s?Bot:(this.currentObservers=null,l.push(r),new sN(function(){i.currentObservers=null,Aj(l,r)}))},n.prototype._checkFinalizedStatuses=function(r){var i=this,o=i.hasError,a=i.thrownError,s=i.isStopped;o?r.error(a):s&&r.complete()},n.prototype.asObservable=function(){var r=new Rf;return r.source=this,r},n.create=function(r,i){return new $Le(r,i)},n}(Rf),$Le=function(e){us(n,e);function n(r,i){var o=e.call(this)||this;return o.destination=r,o.source=i,o}return n.prototype.next=function(r){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,r)},n.prototype.error=function(r){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,r)},n.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},n.prototype._subscribe=function(r){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&o!==void 0?o:Bot},n}(MS),etr=function(e){us(n,e);function n(r){var i=e.call(this)||this;return i._value=r,i}return Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(r){var i=e.prototype._subscribe.call(this,r);return!i.closed&&r.next(this._value),i},n.prototype.getValue=function(){var r=this,i=r.hasError,o=r.thrownError,a=r._value;if(i)throw o;return this._throwIfClosed(),a},n.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},n}(MS),ttr={now:function(){return Date.now()},delegate:void 0},ntr=function(e){us(n,e);function n(r,i){return e.call(this)||this}return n.prototype.schedule=function(r,i){return this},n}(sN),FLe={setInterval:function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setInterval.apply(void 0,rs([e,n],M0(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},Vot=function(e){us(n,e);function n(r,i){var o=e.call(this,r,i)||this;return o.scheduler=r,o.work=i,o.pending=!1,o}return n.prototype.schedule=function(r,i){var o;if(i===void 0&&(i=0),this.closed)return this;this.state=r;var a=this.id,s=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(s,a,i)),this.pending=!0,this.delay=i,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(s,this.id,i),this},n.prototype.requestAsyncId=function(r,i,o){return o===void 0&&(o=0),FLe.setInterval(r.flush.bind(r,this),o)},n.prototype.recycleAsyncId=function(r,i,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return i;i!=null&&FLe.clearInterval(i)},n.prototype.execute=function(r,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,i);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(r,i){var o=!1,a;try{this.work(r)}catch(s){o=!0,a=s||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),a},n.prototype.unsubscribe=function(){if(!this.closed){var r=this,i=r.id,o=r.scheduler,a=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Aj(a,this),i!=null&&(this.id=this.recycleAsyncId(o,i,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},n}(ntr),BLe=function(){function e(n,r){r===void 0&&(r=e.now),this.schedulerActionCtor=n,this.now=r}return e.prototype.schedule=function(n,r,i){return r===void 0&&(r=0),new this.schedulerActionCtor(this,n).schedule(i,r)},e.now=ttr.now,e}(),Got=function(e){us(n,e);function n(r,i){i===void 0&&(i=BLe.now);var o=e.call(this,r,i)||this;return o.actions=[],o._active=!1,o}return n.prototype.flush=function(r){var i=this.actions;if(this._active){i.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=i.shift());if(this._active=!1,o){for(;r=i.shift();)r.unsubscribe();throw o}},n}(BLe),rtr=new Got(Vot),itr=function(e){us(n,e);function n(r,i){var o=e.call(this,r,i)||this;return o.scheduler=r,o.work=i,o}return n.prototype.requestAsyncId=function(r,i,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,i,o):(r.actions.push(this),r._scheduled||(r._scheduled=_se.requestAnimationFrame(function(){return r.flush(void 0)})))},n.prototype.recycleAsyncId=function(r,i,o){var a;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,i,o);var s=r.actions;i!=null&&((a=s[s.length-1])===null||a===void 0?void 0:a.id)!==i&&(_se.cancelAnimationFrame(i),r._scheduled=void 0)},n}(Vot),otr=function(e){us(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.flush=function(r){this._active=!0;var i=this._scheduled;this._scheduled=void 0;var o=this.actions,a;r=r||o.shift();do if(a=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===i&&o.shift());if(this._active=!1,a){for(;(r=o[0])&&r.id===i&&o.shift();)r.unsubscribe();throw a}},n}(Got),atr=new otr(itr),str=new Rf(function(e){return e.complete()});function ltr(e){return e&&Vs(e.schedule)}function Gme(e){return e[e.length-1]}function ctr(e){return Vs(Gme(e))?e.pop():void 0}function Wme(e){return ltr(Gme(e))?e.pop():void 0}function utr(e,n){return typeof Gme(e)=="number"?e.pop():n}var Wot=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Yot(e){return Vs(e==null?void 0:e.then)}function qot(e){return Vs(e[Vme])}function Kot(e){return Symbol.asyncIterator&&Vs(e==null?void 0:e[Symbol.asyncIterator])}function Xot(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function dtr(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Qot=dtr();function Zot(e){return Vs(e==null?void 0:e[Qot])}function Jot(e){return bTn(this,arguments,function(){var r,i,o,a;return fKe(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,XT(r.read())];case 3:return i=s.sent(),o=i.value,a=i.done,a?[4,XT(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,XT(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function eat(e){return Vs(e==null?void 0:e.getReader)}function w_(e){if(e instanceof Rf)return e;if(e!=null){if(qot(e))return ftr(e);if(Wot(e))return ptr(e);if(Yot(e))return htr(e);if(Kot(e))return tat(e);if(Zot(e))return gtr(e);if(eat(e))return mtr(e)}throw Xot(e)}function ftr(e){return new Rf(function(n){var r=e[Vme]();if(Vs(r.subscribe))return r.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ptr(e){return new Rf(function(n){for(var r=0;r<e.length&&!n.closed;r++)n.next(e[r]);n.complete()})}function htr(e){return new Rf(function(n){e.then(function(r){n.closed||(n.next(r),n.complete())},function(r){return n.error(r)}).then(null,zot)})}function gtr(e){return new Rf(function(n){var r,i;try{for(var o=qO(e),a=o.next();!a.done;a=o.next()){var s=a.value;if(n.next(s),n.closed)return}}catch(l){r={error:l}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}n.complete()})}function tat(e){return new Rf(function(n){vtr(e,n).catch(function(r){return n.error(r)})})}function mtr(e){return tat(Jot(e))}function vtr(e,n){var r,i,o,a;return _Tn(this,void 0,void 0,function(){var s,l;return fKe(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=STn(e),c.label=1;case 1:return[4,r.next()];case 2:if(i=c.sent(),!!i.done)return[3,4];if(s=i.value,n.next(s),n.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=c.sent(),o={error:l},[3,11];case 6:return c.trys.push([6,,9,10]),i&&!i.done&&(a=r.return)?[4,a.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}})})}function y0(e,n,r,i,o){i===void 0&&(i=0),o===void 0&&(o=!1);var a=n.schedule(function(){r(),o?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(a),!o)return a}function nat(e,n){return n===void 0&&(n=0),dv(function(r,i){r.subscribe(pg(i,function(o){return y0(i,e,function(){return i.next(o)},n)},function(){return y0(i,e,function(){return i.complete()},n)},function(o){return y0(i,e,function(){return i.error(o)},n)}))})}function rat(e,n){return n===void 0&&(n=0),dv(function(r,i){i.add(e.schedule(function(){return r.subscribe(i)},n))})}function ytr(e,n){return w_(e).pipe(rat(n),nat(n))}function _tr(e,n){return w_(e).pipe(rat(n),nat(n))}function btr(e,n){return new Rf(function(r){var i=0;return n.schedule(function(){i===e.length?r.complete():(r.next(e[i++]),r.closed||this.schedule())})})}function Str(e,n){return new Rf(function(r){var i;return y0(r,n,function(){i=e[Qot](),y0(r,n,function(){var o,a,s;try{o=i.next(),a=o.value,s=o.done}catch(l){r.error(l);return}s?r.complete():r.next(a)},0,!0)}),function(){return Vs(i==null?void 0:i.return)&&i.return()}})}function iat(e,n){if(!e)throw new Error("Iterable cannot be null");return new Rf(function(r){y0(r,n,function(){var i=e[Symbol.asyncIterator]();y0(r,n,function(){i.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function Etr(e,n){return iat(Jot(e),n)}function Ctr(e,n){if(e!=null){if(qot(e))return ytr(e,n);if(Wot(e))return btr(e,n);if(Yot(e))return _tr(e,n);if(Kot(e))return iat(e,n);if(Zot(e))return Str(e,n);if(eat(e))return Etr(e,n)}throw Xot(e)}function jV(e,n){return n?Ctr(e,n):w_(e)}function jLe(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=Wme(e);return jV(e,r)}function s$(e,n){return dv(function(r,i){var o=0;r.subscribe(pg(i,function(a){i.next(e.call(n,a,o++))}))})}var wtr=Array.isArray;function xtr(e,n){return wtr(n)?e.apply(void 0,rs([],M0(n))):e(n)}function Ttr(e){return s$(function(n){return xtr(e,n)})}var Otr=Array.isArray,Rtr=Object.getPrototypeOf,Itr=Object.prototype,Ntr=Object.keys;function Mtr(e){if(e.length===1){var n=e[0];if(Otr(n))return{args:n,keys:null};if(Ptr(n)){var r=Ntr(n);return{args:r.map(function(i){return n[i]}),keys:r}}}return{args:e,keys:null}}function Ptr(e){return e&&typeof e=="object"&&Rtr(e)===Itr}function Atr(e,n){return e.reduce(function(r,i,o){return r[i]=n[o],r},{})}function Dtr(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=Wme(e),i=ctr(e),o=Mtr(e),a=o.args,s=o.keys;if(a.length===0)return jV([],r);var l=new Rf(ktr(a,r,s?function(c){return Atr(s,c)}:lN));return i?l.pipe(Ttr(i)):l}function ktr(e,n,r){return r===void 0&&(r=lN),function(i){ULe(n,function(){for(var o=e.length,a=new Array(o),s=o,l=o,c=function(d){ULe(n,function(){var f=jV(e[d],n),p=!1;f.subscribe(pg(i,function(h){a[d]=h,p||(p=!0,l--),l||i.next(r(a.slice()))},function(){--s||i.complete()}))},i)},u=0;u<o;u++)c(u)},i)}}function ULe(e,n,r){e?y0(r,e,n):n()}function Ltr(e,n,r,i,o,a,s,l){var c=[],u=0,d=0,f=!1,p=function(){f&&!c.length&&!u&&n.complete()},h=function(v){return u<i?g(v):c.push(v)},g=function(v){u++;var y=!1;w_(r(v,d++)).subscribe(pg(n,function(_){n.next(_)},function(){y=!0},void 0,function(){if(y)try{u--;for(var _=function(){var S=c.shift();s||g(S)};c.length&&u<i;)_();p()}catch(S){n.error(S)}}))};return e.subscribe(pg(n,h,function(){f=!0,p()})),function(){}}function oat(e,n,r){return r===void 0&&(r=1/0),Vs(n)?oat(function(i,o){return s$(function(a,s){return n(i,a,o,s)})(w_(e(i,o)))},r):(typeof n=="number"&&(r=n),dv(function(i,o){return Ltr(i,o,e,r)}))}function $tr(e){return e===void 0&&(e=1/0),oat(lN,e)}function aat(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=Wme(e),i=utr(e,1/0),o=e;return o.length?o.length===1?w_(o[0]):$tr(i)(jV(o,r)):str}function sat(e,n){return dv(function(r,i){var o=0;r.subscribe(pg(i,function(a){return e.call(n,a,o++)&&i.next(a)}))})}function Ftr(e,n){return n===void 0&&(n=rtr),dv(function(r,i){var o=null,a=null,s=null,l=function(){if(o){o.unsubscribe(),o=null;var u=a;a=null,i.next(u)}};function c(){var u=s+e,d=n.now();if(d<u){o=this.schedule(void 0,u-d),i.add(o);return}l()}r.subscribe(pg(i,function(u){a=u,s=n.now(),o||(o=n.schedule(c,e),i.add(o))},function(){l(),i.complete()},void 0,function(){a=o=null}))})}function Yme(e,n){return n===void 0&&(n=lN),e=e??Btr,dv(function(r,i){var o,a=!0;r.subscribe(pg(i,function(s){var l=n(s);(a||!e(o,l))&&(a=!1,o=l,i.next(s))}))})}function Btr(e,n){return e===n}function Dj(e){e===void 0&&(e={});var n=e.connector,r=n===void 0?function(){return new MS}:n,i=e.resetOnError,o=i===void 0?!0:i,a=e.resetOnComplete,s=a===void 0?!0:a,l=e.resetOnRefCountZero,c=l===void 0?!0:l;return function(u){var d,f,p,h=0,g=!1,v=!1,y=function(){f==null||f.unsubscribe(),f=void 0},_=function(){y(),d=p=void 0,g=v=!1},S=function(){var b=d;_(),b==null||b.unsubscribe()};return dv(function(b,E){h++,!v&&!g&&y();var w=p=p??r();E.add(function(){h--,h===0&&!v&&!g&&(f=LJ(S,c))}),w.subscribe(E),!d&&h>0&&(d=new pD({next:function(C){return w.next(C)},error:function(C){v=!0,y(),f=LJ(_,o,C),w.error(C)},complete:function(){g=!0,y(),f=LJ(_,s),w.complete()}}),w_(b).subscribe(d))})(u)}}function LJ(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(n===!0){e();return}if(n!==!1){var o=new pD({next:function(){o.unsubscribe(),e()}});return w_(n.apply(void 0,rs([],M0(r)))).subscribe(o)}}function qme(e){return sat(function(n,r){return e<=r})}function Kme(e,n){return dv(function(r,i){var o=null,a=0,s=!1,l=function(){return s&&!o&&i.complete()};r.subscribe(pg(i,function(c){o==null||o.unsubscribe();var u=0,d=a++;w_(e(c,d)).subscribe(o=pg(i,function(f){return i.next(n?n(c,f,d,u++):f)},function(){o=null,l()}))},function(){s=!0,l()}))})}function HLe(e,n,r){var i=Vs(e)||n||r?{next:e,error:n,complete:r}:e;return i?dv(function(o,a){var s;(s=i.subscribe)===null||s===void 0||s.call(i);var l=!0;o.subscribe(pg(a,function(c){var u;(u=i.next)===null||u===void 0||u.call(i,c),a.next(c)},function(){var c;l=!1,(c=i.complete)===null||c===void 0||c.call(i),a.complete()},function(c){var u;l=!1,(u=i.error)===null||u===void 0||u.call(i,c),a.error(c)},function(){var c,u;l&&((c=i.unsubscribe)===null||c===void 0||c.call(i)),(u=i.finalize)===null||u===void 0||u.call(i)}))}):lN}var jtr=typeof WeakSet=="function",zLe=Object.keys;function Xme(e,n){return e===n||e!==e&&n!==n}function VLe(e){return e.constructor===Object||e.constructor==null}function GLe(e){return!!e&&typeof e.then=="function"}function WLe(e){return!!(e&&e.$$typeof)}function Utr(){var e=[];return{add:function(n){e.push(n)},has:function(n){return e.indexOf(n)!==-1}}}var Htr=function(e){return e?function(){return new WeakSet}:Utr}(jtr);function lat(e){return function(r){var i=e||r;return function(a,s,l){l===void 0&&(l=Htr());var c=!!a&&typeof a=="object",u=!!s&&typeof s=="object";if(c||u){var d=c&&l.has(a),f=u&&l.has(s);if(d||f)return d&&f;c&&l.add(a),u&&l.add(s)}return i(a,s,l)}}}function ztr(e,n,r,i){var o=e.length;if(n.length!==o)return!1;for(;o-- >0;)if(!r(e[o],n[o],i))return!1;return!0}function Vtr(e,n,r,i){var o=e.size===n.size;if(o&&e.size){var a={};e.forEach(function(s,l){if(o){var c=!1,u=0;n.forEach(function(d,f){!c&&!a[u]&&(c=r(l,f,i)&&r(s,d,i),c&&(a[u]=!0)),u++}),o=c}})}return o}var Gtr="_owner",Wtr=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function YLe(e,n,r,i){var o=zLe(e),a=o.length;if(zLe(n).length!==a)return!1;if(a)for(var s=void 0;a-- >0;){if(s=o[a],s===Gtr){var l=WLe(e),c=WLe(n);if((l||c)&&l!==c)return!1}if(!Wtr(n,s)||!r(e[s],n[s],i))return!1}return!0}function Ytr(e,n){return e.source===n.source&&e.global===n.global&&e.ignoreCase===n.ignoreCase&&e.multiline===n.multiline&&e.unicode===n.unicode&&e.sticky===n.sticky&&e.lastIndex===n.lastIndex}function qtr(e,n,r,i){var o=e.size===n.size;if(o&&e.size){var a={};e.forEach(function(s){if(o){var l=!1,c=0;n.forEach(function(u){!l&&!a[c]&&(l=r(s,u,i),l&&(a[c]=!0)),c++}),o=l}})}return o}var Ktr=typeof Map=="function",Xtr=typeof Set=="function";function UV(e){var n=typeof e=="function"?e(r):r;function r(i,o,a){if(i===o)return!0;if(i&&o&&typeof i=="object"&&typeof o=="object"){if(VLe(i)&&VLe(o))return YLe(i,o,n,a);var s=Array.isArray(i),l=Array.isArray(o);return s||l?s===l&&ztr(i,o,n,a):(s=i instanceof Date,l=o instanceof Date,s||l?s===l&&Xme(i.getTime(),o.getTime()):(s=i instanceof RegExp,l=o instanceof RegExp,s||l?s===l&&Ytr(i,o):GLe(i)||GLe(o)?i===o:Ktr&&(s=i instanceof Map,l=o instanceof Map,s||l)?s===l&&Vtr(i,o,n,a):Xtr&&(s=i instanceof Set,l=o instanceof Set,s||l)?s===l&&qtr(i,o,n,a):YLe(i,o,n,a)))}return i!==i&&o!==o}return r}UV();var F0=UV(function(){return Xme});UV(lat());UV(lat(Xme));var Qtr=Object.defineProperty,Ztr=Object.getOwnPropertyDescriptor,fv=(e,n,r,i)=>{for(var o=i>1?void 0:i?Ztr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Qtr(n,r,o),o},qLe=(e,n)=>(r,i)=>n(r,i,e);function By(e){return ao.create(()=>e.unsubscribe())}var HV=()=>{const e=new Map,n=(i,o)=>{if(e.has(i))return e.get(i);const a=o();return e.set(i,a),a},r=i=>{i?e.delete(i):e.clear()};return n.clear=r,n},cat=class{constructor(e){this.parentTable=e,this.table=new Map,this.onDataChangeEmitter=new Un,this.variables$=new MS,this.anyVariableChange$=this.variables$.pipe(Kme(n=>aat(...n.map(r=>r.value$.pipe(qme(1))))),Dj()),this.onDataChange=this.onDataChangeEmitter.event,this._version=0}onAnyVariableChange(e){return By(this.anyVariableChange$.subscribe(e))}onAnyChange(e){const n=new Ei;return n.pushAll([this.onDataChange(e),this.onAnyVariableChange(e)]),n}fireChange(){var e;this._version++,this.onDataChangeEmitter.fire(),(e=this.parentTable)==null||e.fireChange()}get version(){return this._version}get variables(){return Array.from(this.table.values())}get variableKeys(){return Array.from(this.table.keys())}getByKeyPath(e){const[n,...r]=e||[];if(!n)return;const i=this.getVariableByKey(n);return r.length?i==null?void 0:i.getByKeyPath(r):i}getVariableByKey(e){return this.table.get(e)}addVariableToTable(e){this.table.set(e.key,e),this.parentTable&&this.parentTable.addVariableToTable(e),this.variables$.next(this.variables)}removeVariableFromTable(e){this.table.delete(e),this.parentTable&&this.parentTable.removeVariableFromTable(e),this.variables$.next(this.variables)}dispose(){this.variableKeys.forEach(e=>{var n;return(n=this.parentTable)==null?void 0:n.removeVariableFromTable(e)}),this.onDataChangeEmitter.dispose()}},uat=Symbol("DynamicVariableEngine"),dat=Symbol("ContainerProvider"),B0=class{constructor(){this.toDispose=new Ei}get variableEngine(){return this.variableEngineProvider()}refreshAllChange(){this.variableEngine.getAllScopes().forEach(e=>{e.refreshCovers(),e.refreshDeps()})}dispose(){this.toDispose.dispose()}get disposed(){return this.toDispose.disposed}get onDispose(){return this.toDispose.onDispose}};fv([Ot(uat)],B0.prototype,"variableEngineProvider",2);B0=fv([Pn()],B0);var KLe=Symbol("post_construct_ast"),CP;(e=>{e.isString=r=>(r==null?void 0:r.kind)==="String",e.isNumber=r=>(r==null?void 0:r.kind)==="Number",e.isBoolean=r=>(r==null?void 0:r.kind)==="Boolean",e.isInteger=r=>(r==null?void 0:r.kind)==="Integer",e.isObject=r=>(r==null?void 0:r.kind)==="Object",e.isArray=r=>(r==null?void 0:r.kind)==="Array",e.isMap=r=>(r==null?void 0:r.kind)==="Map",e.isCustomType=r=>(r==null?void 0:r.kind)==="CustomType",e.isVariableDeclaration=r=>(r==null?void 0:r.kind)==="VariableDeclaration",e.isProperty=r=>(r==null?void 0:r.kind)==="Property",e.isVariableDeclarationList=r=>(r==null?void 0:r.kind)==="VariableDeclarationList",e.isEnumerateExpression=r=>(r==null?void 0:r.kind)==="EnumerateExpression",e.isKeyPathExpression=r=>(r==null?void 0:r.kind)==="KeyPathExpression";function n(r,i){return(r==null?void 0:r.kind)===(i==null?void 0:i.kind)}e.is=n})(CP||(CP={}));function fat({getChildNode:e,updateChildNode:n,removeChildNode:r,nextJSON:i}){const o=e(),a=(o==null?void 0:o.kind)!==(i==null?void 0:i.kind),s=(i==null?void 0:i.key)&&(i==null?void 0:i.key)!==(o==null?void 0:o.key);if(a||s)if(o&&(o.dispose(),r()),i){const l=this.createChildNode(i);return n(l),this.fireChange(),l}else this.fireChange();else i&&(o==null||o.fromJSON(i));return o}function _0(e){return typeof e=="string"?{kind:e}:e}function pat(e){return[...e.children,...e.children.map(n=>pat(n)).flat()]}var PS=class hat{constructor({key:n,parent:r,scope:i},o){this.flags=0,this._version=0,this.changeLocked=!1,this._batch={batching:!1,hasChangesInBatch:!1},this.value$=new etr(this),this._children=new Set,this.toDispose=new Ei(ao.create(()=>{var a;(a=this.parent)==null||a.fireChange(),this.children.forEach(s=>s.dispose())})),this.onDispose=this.toDispose.onDispose,this.scope=i,this.parent=r,this.opts=o,this.key=n||yu(),this.fromJSON=this.withBatchUpdate(this.fromJSON.bind(this)),this.dispatchGlobalEvent({type:"NewAST"})}get kind(){if(!this.constructor.kind)throw new Error(`ASTNode Registry need a kind: ${this.constructor.name}`);return this.constructor.kind}get children(){return Array.from(this._children)}toJSON(){return console.warn("[VariableEngine] Please Implement toJSON method for "+this.kind),{kind:this.kind}}createChildNode(n){const i=this.scope.variableEngine.astRegisters.createAST(n,{parent:this,scope:this.scope});return this._children.add(i),i.toDispose.push(ao.create(()=>{this._children.delete(i)})),i}updateChildNodeByKey(n,r){this.withBatchUpdate(fat).call(this,{getChildNode:()=>this[n],updateChildNode:i=>this[n]=i,removeChildNode:()=>this[n]=void 0,nextJSON:r})}withBatchUpdate(n){return(...r)=>{if(this._batch.batching)return n.call(this,...r);this._batch.hasChangesInBatch=!1,this._batch.batching=!0;const i=n.call(this,...r);return this._batch.batching=!1,this._batch.hasChangesInBatch&&this.fireChange(),this._batch.hasChangesInBatch=!1,i}}fireChange(){var n;if(!(this.changeLocked||this.disposed)){if(this._batch.batching){this._batch.hasChangesInBatch=!0;return}this._version++,this.value$.next(this),this.dispatchGlobalEvent({type:"UpdateAST"}),(n=this.parent)==null||n.fireChange()}}get version(){return this._version}get hash(){return`${this._version}${this.kind}${this.key}`}subscribe(n,{selector:r,debounceAnimation:i,triggerOnInit:o}={}){return By(this.value$.pipe(s$(()=>r?r(this):this),Yme((a,s)=>F0(a,s),a=>a instanceof hat?a.hash:a),o?HLe(()=>null):qme(1),i?Ftr(0,atr):HLe(()=>null)).subscribe(n))}dispatchGlobalEvent(n){this.scope.event.dispatch({...n,ast:this})}dispose(){this.toDispose.disposed||(this.toDispose.dispose(),this.dispatchGlobalEvent({type:"DisposeAST"}),this.value$.complete(),this.value$.unsubscribe())}get disposed(){return this.toDispose.disposed}},AS=class extends PS{constructor(){super(...arguments),this.flags=8}isTypeEqual(e){var r;const n=_0(e);return(n==null?void 0:n.kind)==="Union"?(r=(n==null?void 0:n.types)||[])==null?void 0:r.some(i=>this.isTypeEqual(i)):this.kind===(n==null?void 0:n.kind)}getByKeyPath(e=[]){throw new Error(`Get By Key Path is not implemented for Type: ${this.kind}`)}toJSON(){return{kind:this.kind}}},gat=class extends AS{constructor(){super(...arguments),this.flags=48}fromJSON({items:e}){this.updateChildNodeByKey("items",_0(e))}get canDrilldownItems(){var e;return!!(((e=this.items)==null?void 0:e.flags)&16)}getByKeyPath(e){const[n,...r]=e||[];if(n==="0"&&this.canDrilldownItems)return this.items.getByKeyPath(r)}isTypeEqual(e){const n=_0(e),r=super.isTypeEqual(e);return n!=null&&n.weak||(n==null?void 0:n.kind)==="Union"?r:n&&r&&((n==null?void 0:n.weak)||this.customStrongEqual(n))}customStrongEqual(e){var n;return this.items?(n=this.items)==null?void 0:n.isTypeEqual(e.items):!(e!=null&&e.items)}toJSON(){var e;return{kind:"Array",items:(e=this.items)==null?void 0:e.toJSON()}}};gat.kind="Array";var mat=class extends AS{constructor(){super(...arguments),this.flags=8}fromJSON(){}};mat.kind="String";var vat=class extends AS{constructor(){super(...arguments),this.flags=8}fromJSON(){}};vat.kind="Integer";var yat=class extends AS{fromJSON(){}};yat.kind="Boolean";var _at=class extends AS{fromJSON(){}};_at.kind="Number";var bat=class extends AS{fromJSON({keyType:e="String",valueType:n}){this.updateChildNodeByKey("keyType",_0(e)),this.updateChildNodeByKey("valueType",_0(n))}isTypeEqual(e){const n=_0(e),r=super.isTypeEqual(e);return n!=null&&n.weak||(n==null?void 0:n.kind)==="Union"?r:n&&r&&((n==null?void 0:n.weak)||this.customStrongEqual(n))}customStrongEqual(e){var o,a;const{keyType:n="String",valueType:r}=e;return(!r&&!this.valueType||((o=this.valueType)==null?void 0:o.isTypeEqual(r)))&&((a=this.keyType)==null?void 0:a.isTypeEqual(n))}toJSON(){var e,n;return{kind:"Map",keyType:(e=this.keyType)==null?void 0:e.toJSON(),valueType:(n=this.valueType)==null?void 0:n.toJSON()}}};bat.kind="Map";var Sat=class extends AS{constructor(){super(...arguments),this.flags=16,this.propertyTable=new Map}fromJSON({properties:e}){const n=new Set(this.propertyTable.keys()),r=[...this.properties||[]];this.properties=(e||[]).map(i=>{const o=this.propertyTable.get(i.key);if(n.delete(i.key),o)return o.fromJSON(i),o;{const a=this.createChildNode({...i,kind:"Property"});return this.fireChange(),this.propertyTable.set(i.key,a),a}}),n.forEach(i=>{const o=this.propertyTable.get(i);o==null||o.dispose(),this.propertyTable.delete(i),this.fireChange()}),this.dispatchGlobalEvent({type:"ObjectPropertiesChange",payload:{prev:r,next:[...this.properties]}})}toJSON(){return{kind:"Object",properties:this.properties.map(e=>e.toJSON())}}getByKeyPath(e){var o;const[n,...r]=e,i=this.propertyTable.get(n);if(!r.length)return i;if(i!=null&&i.type&&((o=i==null?void 0:i.type)==null?void 0:o.flags)&16)return i.type.getByKeyPath(r)}isTypeEqual(e){const n=_0(e),r=super.isTypeEqual(e);return n!=null&&n.weak||(n==null?void 0:n.kind)==="Union"?r:n&&r&&((n==null?void 0:n.weak)||this.customStrongEqual(n))}customStrongEqual(e){const n=e.properties||[],r=Array.from(this.propertyTable.keys()),i=n.map(a=>a.key);return!Mn.xor(r,i).length&&n.every(a=>{var l;const s=this.propertyTable.get(a.key);return s&&s.key===a.key&&((l=s.type)==null?void 0:l.isTypeEqual(a==null?void 0:a.type))})}};Sat.kind="Object";var Eat=class extends AS{get typeName(){return this._typeName}fromJSON(e){this._typeName!==e.typeName&&(this._typeName=e.typeName,this.fireChange())}isTypeEqual(e){var r;const n=_0(e);return(n==null?void 0:n.kind)==="Union"?(r=(n==null?void 0:n.types)||[])==null?void 0:r.some(i=>this.isTypeEqual(i)):(n==null?void 0:n.kind)===this.kind&&(n==null?void 0:n.typeName)===this.typeName}};Eat.kind="CustomType";function Qme(e){let n=e.parent;const r=[];for(;n;)n.flags&1&&r.push(n),n=n.parent;return r}var Zme=class extends PS{constructor(e,n){super(e,n),this.flags=4,this._refs=[],this.refreshRefs$=new MS,this.refs$=this.refreshRefs$.pipe(s$(()=>this.getRefFields()),Yme(F0),Kme(r=>r!=null&&r.length?Dtr(r.map(i=>i?i.value$:jLe(void 0))):jLe([])),Dj()),this.toDispose.push(By(this.refs$.subscribe(r=>{this._refs=r,this.fireChange()})))}get globalVariableTable(){return this.scope.variableEngine.globalVariableTable}get parentFields(){return Qme(this)}get refs(){return this._refs}refreshRefs(){this.refreshRefs$.next()}},Cat=class extends PS{fromJSON({expressions:e}){this.expressions=e.map((n,r)=>{const i=this.expressions[r];return i.kind!==n.kind?(i.dispose(),this.fireChange(),this.createChildNode(n)):(i.fromJSON(n),i)})}toJSON(){return{kind:"ExpressionList",properties:this.expressions.map(e=>e.toJSON())}}};Cat.kind="ExpressionList";var wat=class extends Zme{constructor(e,n){super(e,n),this._keyPath=[],this.toDispose.pushAll([this.scope.available.onVariableListChange(()=>{this.refreshRefs()}),this.scope.available.onAnyVariableChange(r=>{r.key===this._keyPath[0]&&this.refreshRefs()})])}get keyPath(){return this._keyPath}getRefFields(){const e=this.scope.available.getByKeyPath(this._keyPath);return e?[e]:[]}get returnType(){const[e]=this._refs||[];if(e&&e.flags&1)return e.type}parseToKeyPath(e){return e.keyPath}fromJSON(e){const n=this.parseToKeyPath(e);F0(n,this._keyPath)||(this._keyPath=n,this.refreshRefs())}toJSON(){return{kind:"KeyPathExpression",keyPath:this._keyPath}}};wat.kind="KeyPathExpression";var xat=class extends Zme{get enumerateFor(){return this._enumerateFor}get returnType(){var n;const e=(n=this.enumerateFor)==null?void 0:n.returnType;if((e==null?void 0:e.kind)==="Array")return e.items}getRefFields(){return[]}fromJSON({enumerateFor:e}){this.updateChildNodeByKey("_enumerateFor",e)}toJSON(){var e;return{kind:"EnumerateExpression",enumerateFor:(e=this.enumerateFor)==null?void 0:e.toJSON()}}};xat.kind="EnumerateExpression";function Jtr(e){return pat(e).filter(n=>n.flags&4).map(n=>n.refs).flat().filter(Boolean)}function enr(e,n){if(Mn.intersection(e.scope.coverScopes,n.map(o=>o==null?void 0:o.scope).filter(Boolean)).length===0)return!1;const r=new Set,i=[...n];for(;i.length;){const o=i.shift();r.add(o);for(const a of Jtr(o).filter(s=>!r.has(s)))i.push(a)}return Mn.intersection(Array.from(r),Qme(e)).length>0}var tnr=class extends Zme{constructor(e,n){super(e,n),this._keyPath=[],this.toDispose.pushAll([this.scope.available.onVariableListChange(()=>{this.refreshRefs()}),this.scope.available.onAnyVariableChange(r=>{r.key===this._keyPath[0]&&this.refreshRefs()}),By(this.refs$.subscribe(r=>{var o,a;const[i]=this._refs;this.prevRefTypeHash!==((o=i==null?void 0:i.type)==null?void 0:o.hash)&&(this.prevRefTypeHash=(a=i==null?void 0:i.type)==null?void 0:a.hash,this.updateChildNodeByKey("_returnType",this.getReturnTypeJSONByRef(i)))}))])}get keyPath(){return this._keyPath}getRefFields(){const e=this.scope.available.getByKeyPath(this._keyPath);return enr(this,[e])?(console.warn("[CustomKeyPathExpression] checkRefCycle: Reference Cycle Existed",this.parentFields.map(n=>n.key).reverse()),[]):e?[e]:[]}get returnType(){return this._returnType}parseToKeyPath(e){return e.keyPath}fromJSON(e){const n=this.parseToKeyPath(e);F0(n,this._keyPath)||(this._keyPath=n,this.refreshRefs())}getReturnTypeJSONByRef(e){var n;return(n=e==null?void 0:e.type)==null?void 0:n.toJSON()}toJSON(){return{kind:"KeyPathExpression",keyPath:this._keyPath}}};tnr.kind="KeyPathExpression";var Tat=class extends PS{constructor(){super(...arguments),this.flags=1,this._meta={}}get parentFields(){return Qme(this)}get meta(){return this._meta}get type(){var e;return((e=this._initializer)==null?void 0:e.returnType)||this._type}get initializer(){return this._initializer}fromJSON({type:e,initializer:n,meta:r}){this.updateType(e),this.updateInitializer(n),this.updateMeta(r)}updateType(e){const n=typeof e=="string"?{kind:e}:e;this.updateChildNodeByKey("_type",n)}updateInitializer(e){this.updateChildNodeByKey("_initializer",e)}updateMeta(e){F0(e,this._meta)||(this._meta=e,this.fireChange())}getByKeyPath(e){var n;if(((n=this.type)==null?void 0:n.flags)&16)return this.type.getByKeyPath(e)}onTypeChange(e){return this.subscribe(e,{selector:n=>n.type})}toJSON(){var e,n;return{kind:this.kind,key:this.key,type:(e=this.type)==null?void 0:e.toJSON(),initializer:(n=this.initializer)==null?void 0:n.toJSON(),meta:this._meta}}},Oat=class extends Tat{constructor(e){super(e),this._order=0}get order(){return this._order}fromJSON({order:e,...n}){this.updateOrder(e),super.fromJSON(n)}updateOrder(e=0){e!==this._order&&(this._order=e,this.dispatchGlobalEvent({type:"ReSortVariableDeclarations"}),this.fireChange())}onTypeChange(e){return this.subscribe(e,{selector:n=>n.type})}};Oat.kind="VariableDeclaration";var Rat=class extends PS{constructor(){super(...arguments),this.declarationTable=new Map}fromJSON({declarations:e,startOrder:n}){const r=new Set(this.declarationTable.keys()),i=[...this.declarations||[]];this.declarations=(e||[]).map((o,a)=>{var u,d;const s=(n||0)+a,l=o.key||((d=(u=this.declarations)==null?void 0:u[a])==null?void 0:d.key),c=this.declarationTable.get(l);if(l&&r.delete(l),c)return c.fromJSON({order:s,...o}),c;{const f=this.createChildNode({order:s,...o,kind:"VariableDeclaration"});return this.fireChange(),this.declarationTable.set(f.key,f),f}}),r.forEach(o=>{const a=this.declarationTable.get(o);a==null||a.dispose(),this.declarationTable.delete(o)}),this.dispatchGlobalEvent({type:"VariableListChange",payload:{prev:i,next:[...this.declarations]}})}toJSON(){return{kind:"VariableDeclarationList",properties:this.declarations.map(e=>e.toJSON())}}};Rat.kind="VariableDeclarationList";var Iat=class extends Tat{};Iat.kind="Property";var Nat=class extends PS{get data(){return this._data}fromJSON(e){const{kind:n,...r}=e;F0(r,this._data)||(this._data=r,this.fireChange())}toJSON(){return{kind:"DataNode",...this._data}}partialUpdate(e){F0(e,this._data)||(this._data={...this._data,...e},this.fireChange())}};Nat.kind="DataNode";var nnr=class extends PS{get list(){return this._list}fromJSON({list:e}){this._list.slice(e.length).forEach(n=>{n.dispose(),this.fireChange()}),this._list=e.map((n,r)=>{const i=this._list[r];return i.kind!==n.kind?(i.dispose(),this.fireChange(),this.createChildNode(n)):(i.fromJSON(n),i)})}toJSON(){return{kind:"ListNode",list:this._list.map(e=>e.toJSON())}}};nnr.kind="ListNode";var Mat=class extends PS{constructor(){super(...arguments),this.map=new Map}fromJSON({map:e}){const n=new Set(this.map.keys());for(const[r,i]of e||[])n.delete(r),this.set(r,i);for(const r of Array.from(n))this.remove(r)}toJSON(){return{kind:"MapNode",map:Array.from(this.map.entries())}}set(e,n){return this.withBatchUpdate(fat).call(this,{getChildNode:()=>this.get(e),removeChildNode:()=>this.map.delete(e),updateChildNode:r=>this.map.set(e,r),nextJSON:n})}remove(e){var n;(n=this.get(e))==null||n.dispose(),this.map.delete(e),this.fireChange()}get(e){return this.map.get(e)}};Mat.kind="MapNode";var hD=class{constructor(){this.injectors=new Map,this.astMap=new Map,this.registerAST(mat),this.registerAST(_at),this.registerAST(yat),this.registerAST(vat),this.registerAST(Sat),this.registerAST(gat),this.registerAST(bat),this.registerAST(Eat),this.registerAST(Iat),this.registerAST(Oat),this.registerAST(Rat),this.registerAST(wat),this.registerAST(xat),this.registerAST(Cat),this.registerAST(Mat),this.registerAST(Nat)}createAST(e,{parent:n,scope:r}){var s;const i=this.astMap.get(e.kind);if(!i)throw Error(`ASTKind: ${String(e.kind)} can not find its ASTNode Registry`);const o=this.injectors.get(e.kind),a=new i({key:e.key,scope:r,parent:n},(o==null?void 0:o())||{});if(a.changeLocked=!0,a.fromJSON(Mn.omit(e,["key","kind"])),a.changeLocked=!1,Reflect.hasMetadata(KLe,a)){const l=Reflect.getMetadata(KLe,a);(s=a[l])==null||s.call(a)}return a}getASTRegistryByKind(e){return this.astMap.get(e)}registerAST(e,n){this.astMap.set(e.kind,e),n&&this.injectors.set(e.kind,n)}};hD=fv([Pn()],hD);var Xg;(e=>{e.createString=()=>({kind:"String"}),e.createNumber=()=>({kind:"Number"}),e.createBoolean=()=>({kind:"Boolean"}),e.createInteger=()=>({kind:"Integer"}),e.createObject=n=>({kind:"Object",...n}),e.createArray=n=>({kind:"Array",...n}),e.createMap=n=>({kind:"Map",...n}),e.createUnion=n=>({kind:"Union",...n}),e.createCustomType=n=>({kind:"CustomType",...n}),e.createVariableDeclaration=n=>({kind:"VariableDeclaration",...n}),e.createProperty=n=>({kind:"Property",...n}),e.createVariableDeclarationList=n=>({kind:"VariableDeclarationList",...n}),e.createEnumerateExpression=n=>({kind:"EnumerateExpression",...n}),e.createKeyPathExpression=n=>({kind:"KeyPathExpression",...n}),e.create=(n,r)=>({kind:n.kind,...r})})(Xg||(Xg={}));var rnr=class{constructor(e){this.scope=e,this.memo=HV(),this._hasChanges=!1,this.variableTable=new cat(e.variableEngine.globalVariableTable),this.scope.toDispose.pushAll([this.scope.ast.subscribe(()=>{this._hasChanges&&(this.memo.clear(),this.notifyCoversChange(),this.variableTable.fireChange(),this._hasChanges=!1)}),this.scope.event.on("DisposeAST",n=>{var r;((r=n.ast)==null?void 0:r.kind)==="VariableDeclaration"&&this.removeVariableFromTable(n.ast.key)}),this.scope.event.on("NewAST",n=>{var r;((r=n.ast)==null?void 0:r.kind)==="VariableDeclaration"&&this.addVariableToTable(n.ast)}),this.scope.event.on("ReSortVariableDeclarations",()=>{this._hasChanges=!0}),this.variableTable])}get variableEngine(){return this.scope.variableEngine}get globalVariableTable(){return this.scope.variableEngine.globalVariableTable}get onDataChange(){return this.variableTable.onDataChange.bind(this.variableTable)}get onAnyVariableChange(){return this.variableTable.onAnyVariableChange.bind(this.variableTable)}get variables(){return this.memo("variables",()=>this.variableTable.variables.sort((e,n)=>e.order-n.order))}get variableKeys(){return this.memo("variableKeys",()=>this.variableTable.variableKeys)}addVariableToTable(e){if(e.scope!==this.scope)throw Error("VariableDeclaration must be a ast node in scope");this.variableTable.addVariableToTable(e),this._hasChanges=!0}removeVariableFromTable(e){this.variableTable.removeVariableFromTable(e),this._hasChanges=!0}getVariableByKey(e){return this.variableTable.getVariableByKey(e)}notifyCoversChange(){this.scope.coverScopes.forEach(e=>e.available.refresh())}},inr=class{constructor(e){this.scope=e,this.memo=HV(),this.refresh$=new MS,this._variables=[],this.variables$=this.refresh$.pipe(s$(()=>Mn.flatten(this.depScopes.map(n=>n.output.variables||[]))),Yme(F0),Dj()),this.anyVariableChange$=this.variables$.pipe(Kme(n=>aat(...n.map(r=>r.value$.pipe(qme(1))))),Dj()),this.onDataChangeEmitter=new Un,this.onDataChange=this.onDataChangeEmitter.event,this.scope.toDispose.pushAll([this.onVariableListChange(n=>{this._variables=n,this.memo.clear(),this.onDataChangeEmitter.fire(this._variables)}),this.onAnyVariableChange(()=>{this.onDataChangeEmitter.fire(this._variables)}),ao.create(()=>{this.refresh$.complete(),this.refresh$.unsubscribe()})])}get globalVariableTable(){return this.scope.variableEngine.globalVariableTable}refresh(){this.scope.disposed||this.refresh$.next()}onAnyVariableChange(e){return By(this.anyVariableChange$.subscribe(e))}onVariableListChange(e){return By(this.variables$.subscribe(e))}get variables(){return this._variables}get variableKeys(){return this.memo("availableKeys",()=>this._variables.map(e=>e.key))}get depScopes(){return this.scope.depScopes}getByKeyPath(e=[]){if(this.variableKeys.includes(e[0]))return this.globalVariableTable.getByKeyPath(e)}},onr=class{constructor(e){this.scope=e,this.event$=new MS,e.toDispose.pushAll([this.subscribe(n=>{e.variableEngine.fireGlobalEvent(n)})])}dispatch(e){this.scope.disposed||this.event$.next(e)}subscribe(e){return By(this.event$.subscribe(e))}on(e,n){return By(this.event$.pipe(sat(r=>r.type===e)).subscribe(n))}},Pat=class{constructor(e){this.memo=HV(),this.toDispose=new Ei,this.onDispose=this.toDispose.onDispose,this.id=e.id,this.meta=e.meta||{},this.variableEngine=e.variableEngine,this.event=new onr(this),this.ast=this.variableEngine.astRegisters.createAST({kind:"MapNode",key:String(this.id)},{scope:this}),this.output=new rnr(this),this.available=new inr(this)}refreshCovers(){this.memo.clear("covers")}refreshDeps(){this.memo.clear("deps"),this.available.refresh()}get depScopes(){return this.memo("deps",()=>this.variableEngine.chain.getDeps(this).filter(e=>!!e&&!(e!=null&&e.disposed)))}get coverScopes(){return this.memo("covers",()=>this.variableEngine.chain.getCovers(this).filter(e=>!!e&&!(e!=null&&e.disposed)))}dispose(){this.ast.dispose(),this.toDispose.dispose(),this.coverScopes.forEach(e=>e.refreshDeps()),this.depScopes.forEach(e=>e.refreshCovers())}get disposed(){return this.toDispose.disposed}},Km=class{constructor(e,n){this.chain=e,this.astRegisters=n,this.toDispose=new Ei,this.memo=HV(),this.scopeMap=new Map,this.globalEvent$=new MS,this.onScopeChangeEmitter=new Un,this.globalVariableTable=new cat,this.onScopeChange=this.onScopeChangeEmitter.event,this.toDispose.pushAll([e,ao.create(()=>{this.getAllScopes().forEach(r=>r.dispose()),this.globalVariableTable.dispose()})])}get container(){return this.containerProvider()}dispose(){this.toDispose.dispose()}getScopeById(e){return this.scopeMap.get(e)}removeScopeById(e){var n;(n=this.getScopeById(e))==null||n.dispose()}createScope(e,n,r={}){const{ScopeConstructor:i=Pat}=r;let o=this.getScopeById(e);return o||(o=new i({variableEngine:this,meta:n,id:e}),this.scopeMap.set(e,o),this.onScopeChangeEmitter.fire({type:"add",scope:o}),o.toDispose.pushAll([o.ast.subscribe(()=>{this.onScopeChangeEmitter.fire({type:"update",scope:o})}),o.available.onDataChange(()=>{this.onScopeChangeEmitter.fire({type:"available",scope:o})})]),o.onDispose(()=>{this.scopeMap.delete(e),this.onScopeChangeEmitter.fire({type:"delete",scope:o})})),o}getAllScopes({sort:e}={}){const n=Array.from(this.scopeMap.values());if(e){const r=this.chain.sortAll(),i=new Set(n);return r.forEach(o=>i.delete(o)),[...r,...Array.from(i)]}return[...n]}fireGlobalEvent(e){this.globalEvent$.next(e)}onGlobalEvent(e,n){return By(this.globalEvent$.subscribe(r=>{r.type===e&&n(r)}))}};fv([Ot(dat)],Km.prototype,"containerProvider",2);fv([nit()],Km.prototype,"dispose",1);Km=fv([Pn(),qLe(0,Ot(B0)),qLe(1,Ot(hD))],Km);var TR=class{constructor(){this.toDispose=new Ei,this.renameEmitter=new Un,this.disposeInListEmitter=new Un,this.onRename=this.renameEmitter.event,this.onDisposeInList=this.disposeInListEmitter.event}handleFieldListChange(e,n,r){var a,s;if(!e||!(n!=null&&n.length)||!(r!=null&&r.length)){this.notifyFieldsDispose(n,r);return}if(n.length!==r.length){this.notifyFieldsDispose(n,r);return}let i=null,o=!1;for(const[l,c]of n.entries()){const u=r[l];if(c.key!==u.key){if(o){this.notifyFieldsDispose(n,r);return}o=!0,((a=c.type)==null?void 0:a.kind)===((s=u.type)==null?void 0:s.kind)&&(i={before:c,after:u})}}if(!i){this.notifyFieldsDispose(n,r);return}this.renameEmitter.fire(i)}notifyFieldsDispose(e,n){Mn.difference(e||[],n||[]).forEach(i=>this.disposeInListEmitter.fire(i))}init(){this.toDispose.pushAll([this.variableEngine.onGlobalEvent("VariableListChange",e=>{var n,r;this.handleFieldListChange(e.ast,(n=e.payload)==null?void 0:n.prev,(r=e.payload)==null?void 0:r.next)}),this.variableEngine.onGlobalEvent("ObjectPropertiesChange",e=>{var n,r;this.handleFieldListChange(e.ast,(n=e.payload)==null?void 0:n.prev,(r=e.payload)==null?void 0:r.next)})])}dispose(){this.toDispose.dispose()}};fv([Ot(Km)],TR.prototype,"variableEngine",2);fv([Zc()],TR.prototype,"init",1);fv([nit()],TR.prototype,"dispose",1);TR=fv([Pn()],TR);var anr=new Jp(e=>{e(Km).toSelf().inSingletonScope(),e(hD).toSelf().inSingletonScope(),e(TR).toSelf().inSingletonScope(),e(uat).toDynamicValue(n=>()=>n.container.get(Km)),e(dat).toDynamicValue(n=>()=>n.container)}),Aat=m.createContext(null),snr=Aat.Provider,lnr=()=>{var e;return(e=m.useContext(Aat))==null?void 0:e.scope};function cnr(){const e=lnr(),n=Rd();return m.useEffect(()=>{const r=e.available.onDataChange(()=>{n()});return()=>r.dispose()},[]),e.available}var unr=Symbol(""),cN=(e=>(e.ADD_NODE="ADD_NODE",e.DELETE_NODE="DELETE_NODE",e.MOVE_NODE="MOVE_NODE",e.NODE_DATA_CHANGE="NODE_DATA_CHANGE",e.ADD_LINE="ADD_LINE",e.DELETE_LINE="DELETE_LINE",e.META_CHANGE="META_CHANGE",e))(cN||{}),Jme=(e=>(e[e.BEZIER=0]="BEZIER",e[e.LINE_CHART=1]="LINE_CHART",e))(Jme||{}),zV=Symbol("WorkflowOperationBaseService"),dnr=Object.defineProperty,fnr=Object.getOwnPropertyDescriptor,Mi=(e,n,r,i)=>{for(var o=i>1?void 0:i?fnr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&dnr(n,r,o),o},pnr="[object Symbol]";function VV(e){return typeof e=="symbol"||N0(e)&&uw(e)==pnr}function hnr(e,n){for(var r=-1,i=e==null?0:e.length,o=Array(i);++r<i;)o[r]=n(e[r],r,e);return o}var gnr=1/0,XLe=I0?I0.prototype:void 0,QLe=XLe?XLe.toString:void 0;function Dat(e){if(typeof e=="string")return e;if(ky(e))return hnr(e,Dat)+"";if(VV(e))return QLe?QLe.call(e):"";var n=e+"";return n=="0"&&1/e==-gnr?"-0":n}var mnr=/\s/;function vnr(e){for(var n=e.length;n--&&mnr.test(e.charAt(n)););return n}var ynr=/^\s+/;function _nr(e){return e&&e.slice(0,vnr(e)+1).replace(ynr,"")}var ZLe=NaN,bnr=/^[-+]0x[0-9a-f]+$/i,Snr=/^0b[01]+$/i,Enr=/^0o[0-7]+$/i,Cnr=parseInt;function JLe(e){if(typeof e=="number")return e;if(VV(e))return ZLe;if(Dm(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Dm(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=_nr(e);var r=Snr.test(e);return r||Enr.test(e)?Cnr(e.slice(2),r?2:8):bnr.test(e)?ZLe:+e}var wnr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xnr=/^\w*$/;function Tnr(e,n){if(ky(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||VV(e)?!0:xnr.test(e)||!wnr.test(e)||n!=null&&e in Object(n)}var Onr="Expected a function";function eve(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(Onr);var r=function(){var i=arguments,o=n?n.apply(this,i):i[0],a=r.cache;if(a.has(o))return a.get(o);var s=e.apply(this,i);return r.cache=a.set(o,s)||a,s};return r.cache=new(eve.Cache||s_),r}eve.Cache=s_;var Rnr=500;function Inr(e){var n=eve(e,function(i){return r.size===Rnr&&r.clear(),i}),r=n.cache;return n}var Nnr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mnr=/\\(\\)?/g,Pnr=Inr(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Nnr,function(r,i,o,a){n.push(o?a.replace(Mnr,"$1"):i||r)}),n});function Anr(e){return e==null?"":Dat(e)}function Dnr(e,n){return ky(e)?e:Tnr(e,n)?[e]:Pnr(Anr(e))}var knr=1/0;function Lnr(e){if(typeof e=="string"||VV(e))return e;var n=e+"";return n=="0"&&1/e==-knr?"-0":n}function $nr(e,n){n=Dnr(n,e);for(var r=0,i=n.length;e!=null&&r<i;)e=e[Lnr(n[r++])];return r&&r==i?e:void 0}function e$e(e,n,r){var i=e==null?void 0:$nr(e,n);return i===void 0?r:i}var $J=function(){return Eg.Date.now()},Fnr="Expected a function",Bnr=Math.max,jnr=Math.min;function Unr(e,n,r){var i,o,a,s,l,c,u=0,d=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(Fnr);n=JLe(n)||0,Dm(r)&&(d=!!r.leading,f="maxWait"in r,a=f?Bnr(JLe(r.maxWait)||0,n):a,p="trailing"in r?!!r.trailing:p);function h(C){var x=i,T=o;return i=o=void 0,u=C,s=e.apply(T,x),s}function g(C){return u=C,l=setTimeout(_,n),d?h(C):s}function v(C){var x=C-c,T=C-u,R=n-x;return f?jnr(R,a-T):R}function y(C){var x=C-c,T=C-u;return c===void 0||x>=n||x<0||f&&T>=a}function _(){var C=$J();if(y(C))return S(C);l=setTimeout(_,v(C))}function S(C){return l=void 0,p&&i?h(C):(i=o=void 0,s)}function b(){l!==void 0&&clearTimeout(l),u=0,i=c=o=l=void 0}function E(){return l===void 0?s:S($J())}function w(){var C=$J(),x=y(C);if(i=arguments,o=this,c=C,x){if(l===void 0)return g(c);if(f)return clearTimeout(l),l=setTimeout(_,n),h(c)}return l===void 0&&(l=setTimeout(_,n)),s}return w.cancel=b,w.flush=E,w}function t$e(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}var kat=(e=>(e.DELETE_NODES="DELETE_NODES",e.COPY_NODES="COPY_NODES",e.PASTE_NODES="PASTE_NODES",e.ZOOM_IN="ZOOM_IN",e.ZOOM_OUT="ZOOM_OUT",e.UNDO="UNDO",e.REDO="REDO",e))(kat||{});function tve(e){return yu(e)}var GV=(e,n,r=!0)=>{const i=Qn.enlarge(e.getAllNodes().map(o=>o.getData(Ui).bounds));return n.fitView(i,r,30)};function Hnr(e,n,r){let{x:i,y:o}=n;const s=e.getAllNodes().map(c=>{const u=c.getData(Ui);return{x:u.position.x,y:u.position.y}}).sort((c,u)=>c.y-u.y),l=3;for(const c of s){const{x:u,y:d}=c;if(o-d<-l)break;const f=Math.abs(i-u),p=Math.abs(o-d);f<=l&&p<=l&&(i+=30,o+=30)}return{x:i,y:o}}var Lat=(e,n,r="")=>`port_${n}_${e.id}_${r}`,$at="WorkflowLineEntity";function znr(e){return new Qn(e.x,e.y,e.width,e.height)}var Dp=Sl,FJ=24,LC=class extends Um{constructor(e){super(e),this.portID="",this._disabled=!1,this._hasError=!1,this._onErrorChangedEmitter=new Un,this.onErrorChanged=this._onErrorChangedEmitter.event,this.portID=e.portID||"",this.portType=e.type,this._disabled=e.disabled??!1,this.node=e.node,this.updateTargetElement(e.targetElement),this.toDispose.push(this.node.getData(Ui).onDataChange(()=>this.fireChange())),this.toDispose.push(this.node.onDispose(this.dispose.bind(this)))}static getPortEntityId(e,n,r=""){return Lat(e,n,r)}get hasError(){return this._hasError}set hasError(e){this._hasError=e,this._onErrorChangedEmitter.fire()}validate(){const e=this.allLines.some(r=>r.disposed||r.isHidden?!1:(r.validateSelf(),r.hasError)),n=this.node.document.isErrorPort(this);this.hasError=e||n}isErrorPort(){return this.node.document.isErrorPort(this)}get point(){const{targetElement:e}=this,{bounds:n}=this.node.getData(hr);if(e){const r=znr(e.getBoundingClientRect()).center;return this.entityManager.getEntity(da).getPosFromMouseEvent({clientX:r.x,clientY:r.y})}return this.portType==="input"?n.leftCenter:n.rightCenter}get bounds(){const{point:e}=this,n=FJ/2;return new Qn(e.x-n,e.y-n,FJ,FJ)}isHovered(e,n){return this.bounds.contains(e,n)}get relativePosition(){const{point:e}=this,{bounds:n}=this.node.getData(hr);return{x:e.x-n.x,y:e.y-n.y}}updateTargetElement(e){e!==this.targetElement&&(this.targetElement=e,this.fireChange())}get disabled(){const e=this.node.document;if(typeof e.options.isDisabledPort=="function")return e.options.isDisabledPort(this);if(this._disabled)return!0;const n=this.node.getNodeMeta();return this.portType==="input"?!!n.inputDisable:!!n.outputDisable}get lines(){return this.allLines.filter(e=>!e.isDrawing)}get availableLines(){return this.allLines.filter(e=>!e.isDrawing&&!e.isHidden)}get allLines(){const e=[];return this.entityManager.getEntities({type:$at}).forEach(r=>{(r.toPort===this||r.fromPort===this)&&e.push(r)}),e}dispose(){this.lines.forEach(e=>e.dispose()),super.dispose()}};LC.type="WorkflowPortEntity";var Xm=class extends Pl{constructor(e){var i;super(e),this._staticPorts=[],this._portIDSet=new Set,this.entity=e;const n=e.getNodeMeta(),r=n.useDynamicPort?[]:[{type:"input"},{type:"output"}];this._staticPorts=((i=n.defaultPorts)==null?void 0:i.slice())||r,this.updatePorts(this._staticPorts),n.useDynamicPort&&this.toDispose.push(e.getData(oy).onDataChange(()=>{e.getData(oy).width&&e.getData(oy).height&&this.updateDynamicPorts()})),this.onDispose(()=>{this.allPorts.forEach(o=>o.dispose())})}getDefaultData(){return{}}updateStaticPorts(e){const n=this.entity.getNodeMeta();this._staticPorts=e,n.useDynamicPort?this.updateDynamicPorts():this.updatePorts(this._staticPorts)}updateDynamicPorts(){const n=this.entity.getData(ra).node.querySelectorAll("[data-port-id]"),r=this._staticPorts,i=[];n.length>0&&i.push(...Array.from(n).map(o=>({portID:o.getAttribute("data-port-id"),type:o.getAttribute("data-port-type"),targetElement:o}))),this.updatePorts(r.concat(i))}getPortEntityByKey(e,n){return this.getOrCreatePortEntity({type:e,portID:n})}updatePorts(e){if(!Dqe(this._prePorts,e)){const n=e.map(r=>this.getPortId(r.type,r.portID));this._portIDSet.forEach(r=>{var i;n.includes(r)||(i=this.getPortEntity(r))==null||i.dispose()}),e.forEach(r=>this.updatePortEntity(r)),this._prePorts=e,this.fireChange()}this.allPorts.forEach(n=>{n.allLines.forEach(r=>{r.validate()}),n.validate()})}get allPorts(){return Array.from(this._portIDSet).map(e=>this.getPortEntity(e)).filter(Boolean)}get inputPorts(){return this.allPorts.filter(e=>e.portType==="input")}get outputPorts(){return this.allPorts.filter(e=>e.portType==="output")}get inputPoints(){return this.inputPorts.map(e=>e.point)}get outputPoints(){return this.inputPorts.map(e=>e.point)}getInputPoint(e){return this.getPortEntityByKey("input",e).point}getOutputPoint(e){return this.getPortEntityByKey("output",e).point}getPortEntity(e){if(this._portIDSet.has(e))return this.entity.entityManager.getEntityById(e)}getPortId(e,n=""){return Lat(this.entity,e,n)}createPortEntity(e){const n=this.getPortId(e.type,e.portID);let r=this.entity.entityManager.getEntityById(n);return r||(r=this.entity.entityManager.createEntity(LC,{id:n,node:this.entity,...e})),r.onDispose(()=>{this._portIDSet.delete(n)}),this._portIDSet.add(n),r}getOrCreatePortEntity(e){const n=this.getPortId(e.type,e.portID);return this.getPortEntity(n)??this.createPortEntity(e)}updatePortEntity(e){const n=this.getOrCreatePortEntity(e);return e.targetElement&&n.updateTargetElement(e.targetElement),n}};Xm.type="WorkflowNodePortsData";var Fat=class bse extends Pl{getDefaultData(){return{inputLines:[],outputLines:[]}}constructor(n){super(n),this.entity=n,this.entity.preDispose.push(ao.create(()=>{this.inputLines.slice().forEach(r=>r.dispose()),this.outputLines.slice().forEach(r=>r.dispose())}))}get inputLines(){return this.data.inputLines}get outputLines(){return this.data.outputLines}get inputNodes(){return this.inputLines.map(n=>n.from).filter(Boolean)}get allInputNodes(){const n=new Set,r=i=>{if(n.has(i))return;n.add(i);const{inputNodes:o}=i.getData(bse);!o||!o.length||o.forEach(a=>{(a==null?void 0:a.parent)===i||(i==null?void 0:i.parent)===a||r(a)})};return r(this.entity),n.delete(this.entity),Array.from(n)}get outputNodes(){return this.outputLines.map(n=>n.to).filter(Boolean)}get allOutputNodes(){const n=new Set,r=i=>{if(n.has(i))return;n.add(i);const{outputNodes:o}=i.getData(bse);!o||!o.length||o.forEach(a=>{(a==null?void 0:a.parent)===i||(i==null?void 0:i.parent)===a||r(a)})};return r(this.entity),n.delete(this.entity),Array.from(n)}addLine(n){n.from===this.entity?this.outputLines.push(n):this.inputLines.push(n),this.fireChange()}removeLine(n){const{inputLines:r,outputLines:i}=this,o=r.indexOf(n),a=i.indexOf(n);o!==-1&&(r.splice(o,1),this.fireChange()),a!==-1&&(i.splice(a,1),this.fireChange())}};Fat.type="WorkflowNodeLinesData";var Cm=Fat,Sy=class extends Pl{constructor(e){super(e),this.syncContributions()}getDefaultData(){return{version:"",contributions:new Map,position:{from:{x:0,y:0},to:{x:0,y:0}}}}get renderVersion(){return this.data.version}get position(){return this.data.position}get path(){var e;return((e=this.currentLine)==null?void 0:e.path)??""}calcDistance(e){var n;return((n=this.currentLine)==null?void 0:n.calcDistance(e))??Number.MAX_SAFE_INTEGER}get bounds(){var e;return((e=this.currentLine)==null?void 0:e.bounds)??new Qn}update(){var r;this.syncContributions();const e=this.data.version;this.updatePosition();const n=this.data.version;e!==n&&(this.data.version=n,(r=this.currentLine)==null||r.update({fromPos:this.data.position.from,toPos:this.data.position.to}))}get lineType(){return this.entity.renderType??this.entity.linesManager.lineType}updatePosition(){var e,n;this.data.position.from=this.entity.from.getData(Xm).getOutputPoint(this.entity.info.fromPort),this.data.position.to=this.entity.info.drawingTo??((n=(e=this.entity.to)==null?void 0:e.getData(Xm))==null?void 0:n.getInputPoint(this.entity.info.toPort))??{x:this.data.position.from.x,y:this.data.position.from.y},this.data.version=[this.lineType,this.data.position.from.x,this.data.position.from.y,this.data.position.to.x,this.data.position.to.y].join("-")}get currentLine(){return this.data.contributions.get(this.lineType)}syncContributions(){this.entity.linesManager.contributionFactories.length!==this.data.contributions.size&&this.entity.linesManager.contributionFactories.forEach(e=>{this.registerContribution(e)})}registerContribution(e){if(this.data.contributions.has(e.type))return;const n=new e(this.entity);this.data.contributions.set(e.type,n)}};Sy.type="WorkflowLineRenderData";var Vnr=8,yp=10,Bat=class Sse extends Um{constructor(n){super(n),this._processing=!1,this._hasError=!1,this.info={from:""},this.document=n.document,this.linesManager=n.linesManager,this.initInfo({from:n.from,to:n.to,drawingTo:n.drawingTo,fromPort:n.fromPort,toPort:n.toPort}),n.drawingTo&&(this.isDrawing=!0)}static portInfoToLineId(n){const{from:r,to:i,fromPort:o,toPort:a}=n;return`${r}_${o||""}-${i||""}_${a||""}`}get from(){return this._from}get to(){return this._to}get isHidden(){return this.highlightColor===this.linesManager.lineColor.hidden}get inContainer(){const n=r=>!!(r!=null&&r.parent)&&r.parent.flowNodeType!=="root";return n(this.from)||n(this.to)}get processing(){return this._processing}set processing(n){this._processing!==n&&(this._processing=n,this.fireChange())}get hasError(){return this._hasError}set hasError(n){this._hasError!==n&&(this._hasError=n,this.fireChange()),this._node&&(this._node.dataset.hasError=this.hasError?"true":"false")}setToPort(n){if(!this.isDrawing)throw new Error("[setToPort] only support drawing line.");if(this.toPort!==n){if(n&&n.portType==="input"&&this.linesManager.canAddLine(this.fromPort,n,!0)){const{node:r,portID:i}=n;this._to=r,this.info.drawingTo=void 0,this.info.isDefaultLine=!1,this.info.to=r.id,this.info.toPort=i}else this._to=void 0,this.info.to=void 0,this.info.toPort="";this.fireChange()}}set drawingTo(n){const r=this.info.drawingTo;if(!n){this.info.drawingTo=void 0,this.fireChange();return}(!r||n.x!==r.x||n.y!==r.y)&&(this.info.to=void 0,this.info.isDefaultLine=!1,this.info.drawingTo=n,this.fireChange())}get drawingTo(){return this.info.drawingTo}get highlightColor(){return this.info.highlightColor||""}set highlightColor(n){this.info.highlightColor!==n&&(this.info.highlightColor=n,this.fireChange())}get bounds(){return this.getData(Sy).bounds}getHoverDist(n){return this.getData(Sy).calcDistance(n)}get fromPort(){return this.from.getData(Xm).getPortEntityByKey("output",this.info.fromPort)}get toPort(){if(this.to)return this.to.getData(Xm).getPortEntityByKey("input",this.info.toPort)}get position(){return this.getData(Sy).position}get reverse(){return this.linesManager.isReverseLine(this)}get hideArrow(){return this.linesManager.isHideArrowLine(this)}get flowing(){return this.linesManager.isFlowingLine(this)}get disabled(){return this.linesManager.isDisabledLine(this)}get vertical(){return this.linesManager.isVerticalLine(this)}get renderType(){return this.linesManager.setLineRenderType(this)}get className(){return this.linesManager.setLineClassName(this)??""}get color(){return this.linesManager.getLineColor(this)}initInfo(n){Dqe(n,this.info)||(this.info=n,this._from=this.document.getNode(n.from),this._to=n.to?this.document.getNode(n.to):void 0,this.fireChange())}validate(){const{fromPort:n,toPort:r}=this;this.validateSelf(),n==null||n.validate(),r==null||r.validate()}validateSelf(){const{fromPort:n,toPort:r}=this;n&&(this.hasError=this.linesManager.isErrorLine(n,r))}is(n){return n instanceof Sse?this===n:Sse.portInfoToLineId(n)===this.id}canRemove(n){return this.linesManager.canRemove(this,n)}get node(){var n,r,i;return this._node?this._node:(this._node=Tr.createDivWithClass("gedit-flow-activity-line"),this._node.dataset.testid="sdk.workflow.canvas.line",this._node.dataset.lineId=this.id,this._node.dataset.fromNodeId=this.from.id,this._node.dataset.fromPortId=((n=this.fromPort)==null?void 0:n.id)??"",this._node.dataset.toNodeId=((r=this.to)==null?void 0:r.id)??"",this._node.dataset.toPortId=((i=this.toPort)==null?void 0:i.id)??"",this._node.dataset.hasError=this.hasError?"true":"false",this._node)}toJSON(){const n={sourceNodeID:this.info.from,targetNodeID:this.info.to,sourcePortID:this.info.fromPort,targetPortID:this.info.toPort};return n.sourcePortID||delete n.sourcePortID,n.targetPortID||delete n.targetPortID,n}fireRender(){this.fireChange()}};Bat.type=$at;var Zd=Bat,Wa=class{get onSelectionChanged(){return this.selectionService.onSelectionChanged}get selection(){return this.selectionService.selection}set selection(e){this.selectionService.selection=e}get activatedNode(){const{selectedNodes:e}=this;if(e.length===1)return e[0]}isSelected(e){return this.selectionService.selection.some(n=>n.id===e)}isActivated(e){var n;return((n=this.activatedNode)==null?void 0:n.id)===e}get selectedNodes(){return this.selectionService.selection.filter(e=>e instanceof Dp)}selectNode(e){this.selectionService.selection=[e]}toggleSelect(e){this.selectionService.selection.includes(e)?this.selectionService.selection=this.selectionService.selection.filter(n=>n!==e):this.selectionService.selection=this.selectionService.selection.concat(e)}select(e){this.selectionService.selection=[e]}clear(){this.selectionService.selection=[]}async selectNodeAndScrollToView(e,n){this.selectNodeAndFocus(e),await NS(30);const i={entities:[e]};if(n){const o=Qn.enlarge([e.getData(Ui).bounds]).pad(30,30),a=this.playground.config.getViewport(!1),s=mR.fixSize(o,a);i.zoom=s,i.scrollToCenter=!0,i.easing=!0}return this.playground.config.scrollToView(i)}selectNodeAndFocus(e){this.select(e),this.playground.node.focus()}};Mi([Ot(dg)],Wa.prototype,"selectionService",2);Mi([Ot(_u)],Wa.prototype,"playground",2);Wa=Mi([Pn()],Wa);var If=class{constructor(){this.onHoveredChangeEmitter=new Un,this.onHoveredChange=this.onHoveredChangeEmitter.event,this.hoveredPos={x:0,y:0},this.hoveredKey=""}updateHoveredKey(e){this.hoveredKey!==e&&(this.hoveredKey=e,this.onHoveredChangeEmitter.fire(e))}clearHovered(){this.updateHoveredKey("")}isHovered(e){return e===this.hoveredKey}isSomeHovered(){return!!this.hoveredKey}get hoveredNode(){return this.entityManager.getEntityById(this.hoveredKey)}};Mi([Ot(Lo)],If.prototype,"entityManager",2);If=Mi([Pn()],If);function Gnr(e){return e.getData(ls)}function Wnr(e){const n=e.getData(ls);if(!(!n||!e.getNodeRegistry().formMeta))return n.toJSON()}function Ynr(e,n){const r=e.getData(ls),i=e.getNodeRegistry(),{formMeta:o}=i;r&&o&&(r.createForm(o,n.data),r.onDataChange(()=>{e.document.fireContentChange({type:"NODE_DATA_CHANGE",toJSON:()=>r.toJSON(),entity:e})}))}var l$=Symbol("WorkflowDocumentOptions"),Kb={cursors:{grab:'url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMCAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC40ODczIDIuNjIzNzhDOS45MDczMSAyLjYyMzc4IDkuNDM3MTMgMy4wOTM5NiA5LjQzNzEzIDMuNjczOTZWNS4xNDM3NkM5LjM5NDI4IDQuNDAyNzQgOC43Nzk3OCAzLjgxNTA0IDguMDI4MDIgMy44MTUwNEM3LjI0ODQ4IDMuODE1MDQgNi42MTY1MyA0LjQ0Njk5IDYuNjE2NTMgNS4yMjY1M1YxMS44Mjg5TDUuNjc0MTggMTEuMDA0OUM1LjE1NDg3IDEwLjU1MDkgNC40MDk1IDEwLjQ2MzYgMy43OTkzOCAxMC43ODU1TDMuNjk2OTQgMTAuODM5NkMzLjA2MjE3IDExLjE3NDUgMi45MjI2IDEyLjAyMjggMy40MTY2MiAxMi41NDM0TDcuMzM5NTkgMTYuNjc3NVYxNy4zMjU5QzcuMzM5NTkgMTcuNzg2MiA3LjcxMjY5IDE4LjE1OTMgOC4xNzI5MiAxOC4xNTkzSDEzLjgwODRDMTQuMjY4NyAxOC4xNTkzIDE0LjY0MTcgMTcuNzg2MiAxNC42NDE3IDE3LjMyNTlWMTYuNzkzNUMxNS44MDk0IDE1LjY0ODUgMTYuNDY3MyAxNC4wODE5IDE2LjQ2NzMgMTIuNDQ2NVYxMS40OTY3TDE2LjQ2NzEgNi42MzY4NUMxNi40NjcxIDUuOTU2MyAxNS45MTU0IDUuNDA0NjEgMTUuMjM0OCA1LjQwNDYxQzE0LjU1NDMgNS40MDQ2MSAxNC4wMDI2IDUuOTU2MyAxNC4wMDI2IDYuNjM2ODVMMTQuMDAyMSA1LjA0NzI4QzE0LjAwMjEgNC4zNjY3MyAxMy40NTA0IDMuODE1MDQgMTIuNzY5OCAzLjgxNTA0QzEyLjA4OTMgMy44MTUwNCAxMS41Mzc2IDQuMzY2NzMgMTEuNTM3NiA1LjA0NzI4TDExLjUzNzUgMy42NzM5NUMxMS41Mzc1IDMuMDkzOTYgMTEuMDY3MyAyLjYyMzc4IDEwLjQ4NzMgMi42MjM3OFoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTAuNDg3NCAxLjM3NDAyQzExLjM2MTIgMS4zNzQwMiAxMi4xMjExIDEuODYxMTggMTIuNTEwNSAyLjU3ODY4QzEyLjU5NTggMi41Njk4MyAxMi42ODIzIDIuNTY1MjggMTIuNzcgMi41NjUyOEMxMy44Mjc4IDIuNTY1MjggMTQuNzMxMSAzLjIyNzAxIDE1LjA4ODUgNC4xNTkxMUMxNS4xMzcgNC4xNTYyOSAxNS4xODU4IDQuMTU0ODYgMTUuMjM1IDQuMTU0ODZDMTYuNjA1OSA0LjE1NDg2IDE3LjcxNzIgNS4yNjYxOSAxNy43MTcyIDYuNjM3MDlMMTcuNzE3NCAxMi40NDY3QzE3LjcxNzQgMTQuMjM1NSAxNy4wNjQ0IDE1Ljk1NTkgMTUuODkxOSAxNy4yOTA0VjE3LjMyNjJDMTUuODkxOSAxOC40NzY4IDE0Ljk1OTEgMTkuNDA5NSAxMy44MDg1IDE5LjQwOTVIOC4xNzMwNkM3LjAyMjQ3IDE5LjQwOTUgNi4wODk3MyAxOC40NzY4IDYuMDg5NzMgMTcuMzI2MlYxNy4xNzY0TDIuNTEwMDMgMTMuNDA0MUMxLjQ0NTk5IDEyLjI4MjggMS43NDY2IDEwLjQ1NTUgMy4xMTM3OSA5LjczNDI0TDMuMjE2MjQgOS42ODAxOUMzLjg5MTY4IDkuMzIzODMgNC42NjE4NSA5LjI1NDAxIDUuMzY2NjYgOS40NTE5OFY1LjIyNjc4QzUuMzY2NjYgMy43NTY4NyA2LjU1ODI2IDIuNTY1MjggOC4wMjgxNiAyLjU2NTI4QzguMTcyOTMgMi41NjUyOCA4LjMxNDk5IDIuNTc2ODQgOC40NTM0NyAyLjU5OTA3QzguODM5NDMgMS44NzA0MiA5LjYwNTQ2IDEuMzc0MDIgMTAuNDg3NCAxLjM3NDAyWk0xMi40NDc2IDMuODU3ODdWOS40NzY0NkMxMi40NDc2IDkuNzI4NTIgMTIuMjQzMyA5LjkzMjg1IDExLjk5MTMgOS45MzI4NUMxMS43MzkyIDkuOTMyODUgMTEuNTM0OSA5LjcyODUyIDExLjUzNDkgOS40NzY0NlYzLjc5NjU1QzExLjUzNDkgMy43Nzk1NiAxMS41MzU4IDMuNzYyNzcgMTEuNTM3NiAzLjc0NjI2VjMuNjc0MkMxMS41Mzc2IDMuNDMyODIgMTEuNDU2MiAzLjIxMDQ2IDExLjMxOTMgMy4wMzMwOUMxMS4xMjcyIDIuNzg0MjggMTAuODI2MSAyLjYyNDAyIDEwLjQ4NzQgMi42MjQwMkMxMC4xMjM4IDIuNjI0MDIgOS44MDMzMiAyLjgwODg2IDkuNjE0ODMgMy4wODk3QzkuNTAyNjkgMy4yNTY3OSA5LjQzNzI2IDMuNDU3ODUgOS40MzcyNiAzLjY3NDJWMy43ODU3M0M5LjQzNzM1IDMuNzg5MzMgOS40MzczOSAzLjc5Mjk0IDkuNDM3MzkgMy43OTY1NVY5LjkwMTdDOS40MzczOSAxMC4xNTM3IDkuMjMzMDYgMTAuMzU4MSA4Ljk4MTAxIDEwLjM1ODFDOC43Mjg5NSAxMC4zNTgxIDguNTI0NjIgMTAuMTUzNyA4LjUyNDYyIDkuOTAxN1YzLjkwNTA3QzguNDE3NzMgMy44NjQ5IDguMzA0NjggMy44MzczMiA4LjE4NzI2IDMuODI0MTVDOC4xMzUwNCAzLjgxODI5IDguMDgxOTUgMy44MTUyOCA4LjAyODE2IDMuODE1MjhDNy4yNDg2MSAzLjgxNTI4IDYuNjE2NjYgNC40NDcyMyA2LjYxNjY2IDUuMjI2NzhWMTEuODI5Mkw1LjY3NDMxIDExLjAwNTJDNS41Nzg2OCAxMC45MjE2IDUuNDc1MzcgMTAuODUwNCA1LjM2NjY2IDEwLjc5MTlDNC44ODUwNiAxMC41MzI5IDQuMjk3MjggMTAuNTIzMSAzLjc5OTUyIDEwLjc4NThMMy42OTcwNyAxMC44Mzk4QzMuMDYyMzEgMTEuMTc0NyAyLjkyMjczIDEyLjAyMzEgMy40MTY3NSAxMi41NDM3TDcuMzM5NzMgMTYuNjc3N1YxNy4zMjYyQzcuMzM5NzMgMTcuNzg2NCA3LjcxMjgyIDE4LjE1OTUgOC4xNzMwNiAxOC4xNTk1SDEzLjgwODVDMTQuMjY4OCAxOC4xNTk1IDE0LjY0MTkgMTcuNzg2NCAxNC42NDE5IDE3LjMyNjJWMTYuNzkzOEMxNS43Mzc5IDE1LjcxOSAxNi4zODQ3IDE0LjI3MjggMTYuNDYgMTIuNzQ3QzE2LjQ2NDEgMTIuNjY0MSAxNi40NjY1IDEyLjU4MDkgMTYuNDY3MiAxMi40OTc1TDE2LjQ2NzQgMTIuNDQ2N0wxNi40NjcyIDYuNjM3MDlDMTYuNDY3MiA1Ljk2MjMgMTUuOTI0OCA1LjQxNDE5IDE1LjI1MjIgNS40MDQ5N0wxNS4yMzUgNS40MDQ4NkMxNS4xMjQ2IDUuNDA0ODYgMTUuMDE3NyA1LjQxOTM2IDE0LjkxNTkgNS40NDY1NlY5LjYwMjI2QzE0LjkxNTkgOS44NTQzMSAxNC43MTE2IDEwLjA1ODYgMTQuNDU5NSAxMC4wNTg2QzE0LjIwNzUgMTAuMDU4NiAxNC4wMDMxIDkuODU0MzEgMTQuMDAzMSA5LjYwMjI2VjYuNjA1MTRDMTQuMDAyOSA2LjYxNTc2IDE0LjAwMjcgNi42MjY0MSAxNC4wMDI3IDYuNjM3MDlWOS4yNzcwNUwxNC4wMDIyIDUuMDQ3NTJDMTQuMDAyMiA0Ljg2OTEzIDEzLjk2NDMgNC42OTk2IDEzLjg5NjEgNC41NDY1M0MxMy43MDY0IDQuMTIwNzIgMTMuMjgyMiAzLjgyMjM1IDEyLjc4NzYgMy44MTU0MUwxMi43NyAzLjgxNTI4QzEyLjY1ODQgMy44MTUyOCAxMi41NTA0IDMuODMwMSAxMi40NDc2IDMuODU3ODdaIiBmaWxsPSIjMUQxQzIzIi8+Cjwvc3ZnPg=="), auto',grabbing:'url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMCAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjYxODE3IDUuNTk4NzVDNi42MTgxNyA0LjgxOTIgNy4yNTAxMiA0LjE4NzI2IDguMDI5NjcgNC4xODcyNkM4Ljc3ODczIDQuMTg3MjYgOS4zOTE1MiA0Ljc3MDc1IDkuNDM4MjkgNS41MDgwMUM5LjQ1OTkyIDQuOTQ3MSA5LjkyMTQ3IDQuNDk5MDIgMTAuNDg3NyA0LjQ5OTAyQzExLjA2NzcgNC40OTkwMiAxMS41Mzc4IDQuOTY5MiAxMS41Mzc4IDUuNTQ5MTlWOC43NjI0NkwxMS41Mzc5IDYuNzExNUMxMS41Mzc5IDYuMDMwOTUgMTIuMDg5NiA1LjQ3OTI2IDEyLjc3MDIgNS40NzkyNkMxMy40NTA3IDUuNDc5MjYgMTQuMDAyNCA2LjAzMDk1IDE0LjAwMjQgNi43MTE1TDE0LjAwMjQgOC43NjI0NkwxNC4wMDI5IDguMDE5ODNDMTQuMDAyOSA3LjMzOTI5IDE0LjU1NDYgNi43ODc1OSAxNS4yMzUyIDYuNzg3NTlDMTUuOTE1NyA2Ljc4NzU5IDE2LjQ2NzQgNy4zMzkyOCAxNi40Njc0IDguMDE5ODNWMTEuNDk3TDE2LjQ2NzUgMTIuNDQ2N0MxNi40Njc1IDE0LjA4MjEgMTUuODA5NiAxNS42NDg3IDE0LjY0MiAxNi43OTM4VjE3LjMyNjJDMTQuNjQyIDE3Ljc4NjQgMTQuMjY4OSAxOC4xNTk1IDEzLjgwODcgMTguMTU5NUg4LjE3MzE3QzcuNzEyOTMgMTguMTU5NSA3LjMzOTg0IDE3Ljc4NjQgNy4zMzk4NCAxNy4zMjYyVjE1Ljk0MjRMNS4zNDU2MiAxNC43NTM0QzQuNTg5MjQgMTQuMzAyNCA0LjEyNTkxIDEzLjQ4NjcgNC4xMjU4OSAxMi42MDYxTDQuMTI1ODMgOS4yODM4M0M0LjEyNTgyIDguOTU0MjcgNC4zMjAwMyA4LjY1NTY2IDQuNjIxMjkgOC41MjIwNUw2LjYxODE3IDcuNjM2MzRWNS41OTg3NVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTAuNDg3OCAzLjI0OTAyQzExLjI3OTYgMy4yNDkwMiAxMS45Nzc4IDMuNjQ5MDIgMTIuMzkxNyA0LjI1Nzk2QzEyLjUxNTEgNC4yMzkwNiAxMi42NDE2IDQuMjI5MjYgMTIuNzcwMyA0LjIyOTI2QzEzLjcyMjQgNC4yMjkyNiAxNC41NDkzIDQuNzY1MzEgMTQuOTY1NyA1LjU1MjA3QzE1LjA1NDMgNS41NDI1IDE1LjE0NDIgNS41Mzc1OSAxNS4yMzUzIDUuNTM3NTlDMTYuNjA2MiA1LjUzNzU5IDE3LjcxNzYgNi42NDg5MyAxNy43MTc2IDguMDE5ODNMMTcuNzE3NyAxMi40NDY3QzE3LjcxNzcgMTQuMjM1NSAxNy4wNjQ3IDE1Ljk1NTkgMTUuODkyMSAxNy4yOTA0VjE3LjMyNjJDMTUuODkyMSAxOC40NzY4IDE0Ljk1OTQgMTkuNDA5NSAxMy44MDg4IDE5LjQwOTVIOC4xNzMzMkM3LjAyMjczIDE5LjQwOTUgNi4wODk5OCAxOC40NzY4IDYuMDg5OTggMTcuMzI2MlYxNi42NTI0TDQuNzA1NjMgMTUuODI3QzMuNTcxMDYgMTUuMTUwNSAyLjg3NjA3IDEzLjkyNzEgMi44NzYwNCAxMi42MDYxTDIuODc1OTggOS4yODM4NUMyLjg3NTk2IDguNDU5OTYgMy4zNjE0OSA3LjcxMzQ1IDQuMTE0NjIgNy4zNzk0TDUuMzY4MzIgNi44MjMzM1Y1LjU5ODc1QzUuMzY4MzIgNC4xMjg4NSA2LjU1OTkxIDIuOTM3MjYgOC4wMjk4MiAyLjkzNzI2QzguNjA4MzEgMi45MzcyNiA5LjE0MzU1IDMuMTIxNyA5LjU4MDA1IDMuNDM1MDVDOS44NTg1MyAzLjMxNTMyIDEwLjE2NTQgMy4yNDkwMiAxMC40ODc4IDMuMjQ5MDJaTTEyLjQ0NzkgNS41MjE4NlY5LjQ3NTU3QzEyLjQ0NzkgOS43Mjc2MiAxMi4yNDM2IDkuOTMxOTUgMTEuOTkxNiA5LjkzMTk1QzExLjc1NjggOS45MzE5NSAxMS41NjM0IDkuNzU0NjUgMTEuNTM4IDkuNTI2NjNDMTEuNTM2MSA5LjUwOTg3IDExLjUzNTIgOS40OTI4MyAxMS41MzUyIDkuNDc1NTdWNS40NzE1OEMxMS41MTU0IDUuMjAwODMgMTEuMzkzIDQuOTU4NTggMTEuMjA2NiA0Ljc4MzU4QzExLjAxODggNC42MDcxMSAxMC43NjU5IDQuNDk5MDIgMTAuNDg3OCA0LjQ5OTAyQzEwLjQ3NjYgNC40OTkwMiAxMC40NjU0IDQuNDk5MTkgMTAuNDU0MiA0LjQ5OTU0QzkuOTAzNDcgNC41MTY4NCA5LjQ1OTY0IDQuOTU4MjQgOS40Mzg0NCA1LjUwODAxQzkuNDM4MiA1LjUwNDMgOS40Mzc5NSA1LjUwMDU4IDkuNDM3NjkgNS40OTY4OFY5LjkwMjQzQzkuNDM3NjkgMTAuMTU0NSA5LjIzMzM2IDEwLjM1ODggOC45ODEzMSAxMC4zNTg4QzguNzI5MjUgMTAuMzU4OCA4LjUyNDkyIDEwLjE1NDUgOC41MjQ5MiA5LjkwMjQzVjQuMjc2NTNDOC4zNzA4NiA0LjIxODgyIDguMjA0MDIgNC4xODcyNiA4LjAyOTgyIDQuMTg3MjZDNy4yNTAyNyA0LjE4NzI2IDYuNjE4MzIgNC44MTkyIDYuNjE4MzIgNS41OTg3NUw2LjYxODI3IDkuOTc1OTlDNi42MTgyNyAxMC4yMjggNi40MTM5NCAxMC40MzI0IDYuMTYxODkgMTAuNDMyNEM1LjkwOTgzIDEwLjQzMjQgNS43MDU1IDEwLjIyOCA1LjcwNTUgOS45NzU5OVY4LjA0MTIyTDQuNjIxNDQgOC41MjIwNUM0LjMyMDE4IDguNjU1NjYgNC4xMjU5NyA4Ljk1NDI3IDQuMTI1OTggOS4yODM4M0w0LjEyNjA0IDEyLjYwNjFDNC4xMjYwNiAxMy40ODY3IDQuNTg5MzkgMTQuMzAyNCA1LjM0NTc2IDE0Ljc1MzRMNy4zMzk5OCAxNS45NDI0VjE3LjMyNjJDNy4zMzk5OCAxNy43ODY0IDcuNzEzMDggMTguMTU5NSA4LjE3MzMyIDE4LjE1OTVIMTMuODA4OEMxNC4yNjkgMTguMTU5NSAxNC42NDIxIDE3Ljc4NjQgMTQuNjQyMSAxNy4zMjYyVjE2Ljc5MzhDMTUuNzM4MSAxNS43MTkgMTYuMzg1IDE0LjI3MjggMTYuNDYwMyAxMi43NDdDMTYuNDY0NiAxMi42NiAxNi40NjcgMTIuNTcyOCAxNi40Njc2IDEyLjQ4NTRMMTYuNDY3NyAxMi40NDY3TDE2LjQ2NzYgOC4wMTk4M0MxNi40Njc2IDcuMzQ1MDQgMTUuOTI1MiA2Ljc5NjkzIDE1LjI1MjUgNi43ODc3MUwxNS4yMzUzIDYuNzg3NTlDMTUuMTI1IDYuNzg3NTkgMTUuMDE4IDYuODAyMSAxNC45MTYyIDYuODI5MzFWOS42MDEzNkMxNC45MTYyIDkuODUzNDIgMTQuNzExOSAxMC4wNTc3IDE0LjQ1OTggMTAuMDU3N0MxNC4yMDc4IDEwLjA1NzcgMTQuMDAzNCA5Ljg1MzQxIDE0LjAwMzQgOS42MDEzNlY3Ljk4OTg1QzE0LjAwMzIgNy45OTk4MiAxNC4wMDMxIDguMDA5ODEgMTQuMDAzMSA4LjAxOTgzTDE0LjAwMzQgOS42MDEzNkwxNC4wMDI1IDYuNzExNUMxNC4wMDI1IDYuNDQ5NzQgMTMuOTIwOSA2LjIwNzA1IDEzLjc4MTggNi4wMDc0OEMxMy41NjIgNS42OTI0MiAxMy4xOTg5IDUuNDg0ODMgMTIuNzg3IDUuNDc5MzdMMTIuNzcwMyA1LjQ3OTI2QzEyLjY1ODggNS40NzkyNiAxMi41NTA3IDUuNDk0MDggMTIuNDQ3OSA1LjUyMTg2WiIgZmlsbD0iIzFEMUMyMyIvPgo8L3N2Zz4="), auto'},fromNodeJSON(e,n){Ynr(e,n)},toNodeJSON(e){var c,u;const n=(c=e.getData(Aw))==null?void 0:c.getError();if(n)throw n;const r=e.getData(Ui);let i=Wnr(e);const o={},a=e.getNodeMeta(),s=(u=a.subCanvas)==null?void 0:u.call(a,e);if((s==null?void 0:s.isCanvas)===!1){const d=s.canvasNode.getData(hr),{x:f,y:p}=d.transform.position;o.canvasPosition={x:f,y:p}}return{id:e.id,type:e.flowNodeType,meta:{position:{x:r.position.x,y:r.position.y},...o},data:i}}},Ql=class{constructor(){this.toDispose=new Ei,this._lineType=0,this.onAvailableLinesChangeEmitter=new Un,this.onForceUpdateEmitter=new Un,this.onAvailableLinesChange=this.onAvailableLinesChangeEmitter.event,this.onForceUpdate=this.onForceUpdateEmitter.event,this.contributionFactories=[],this.isDrawing=!1}init(e){this.document=e}forceUpdate(){this.onForceUpdateEmitter.fire()}get lineType(){return this._lineType}get lineColor(){const e={default:"#4d53e8",error:"red",hidden:"transparent",drawing:"#5DD6E3",hovered:"#37d0ff",selected:"#37d0ff"};return this.options.lineColor&&Object.assign(e,this.options.lineColor),e}switchLineType(e){return e===void 0&&(this._lineType===0?e=1:e=0),e!==this._lineType&&(this._lineType=e,this.getAllLines().forEach(n=>{n.getData(Sy).update()}),window.requestAnimationFrame(()=>{this.entityManager.fireEntityChanged(Zd.type)})),this._lineType}getAllLines(){return this.entityManager.getEntities(Zd)}hasLine(e){return!!this.entityManager.getEntityById(Zd.portInfoToLineId(e))}getLine(e){return this.entityManager.getEntityById(Zd.portInfoToLineId(e))}replaceLine(e,n){const r=this.getLine(e);return r&&r.dispose(),this.createLine(n)}createLine(e){var f;const{from:n,to:r,drawingTo:i,fromPort:o,toPort:a}=e,s=!!(n&&r),l=e.key||Zd.portInfoToLineId(e);let c=this.entityManager.getEntityById(l);if(c)return c.highlightColor="",c.validate(),c;const u=(f=this.entityManager.getEntityById(n))==null?void 0:f.getData(Cm),d=r?this.entityManager.getEntityById(r).getData(Cm):void 0;if(u)return this.isDrawing=!!i,c=this.entityManager.createEntity(Zd,{id:l,document:this.document,linesManager:this,from:n,fromPort:o,toPort:a,to:r,drawingTo:i}),this.registerData(c),u.addLine(c),d==null||d.addLine(c),c.onDispose(()=>{i&&(this.isDrawing=!1),u.removeLine(c),d==null||d.removeLine(c),c.validate()}),c.toDispose.push(ao.create(()=>{s&&this.onAvailableLinesChangeEmitter.fire({type:"DELETE_LINE",toJSON:()=>c.toJSON(),entity:c})})),s&&this.onAvailableLinesChangeEmitter.fire({type:"ADD_LINE",toJSON:()=>c.toJSON(),entity:c}),c.validate(),c}getCloseInLineFromMousePos(e,n=Vnr){let r,i;return this.getAllLines().forEach(o=>{const a=o.getHoverDist(e);a<=n&&(!i||i>=a)&&(i=a,r=o)}),r}dispose(){this.toDispose.dispose()}get disposed(){return this.toDispose.disposed}isErrorLine(e,n){return this.options.isErrorLine?this.options.isErrorLine(e,n,this):!1}isReverseLine(e){return this.options.isReverseLine?this.options.isReverseLine(e):!1}isHideArrowLine(e){return this.options.isHideArrowLine?this.options.isHideArrowLine(e):!1}isFlowingLine(e){return this.options.isFlowingLine?this.options.isFlowingLine(e):!1}isDisabledLine(e){return this.options.isDisabledLine?this.options.isDisabledLine(e):!1}isVerticalLine(e){return this.options.isVerticalLine?this.options.isVerticalLine(e):!1}setLineRenderType(e){if(this.options.setLineRenderType)return this.options.setLineRenderType(e)}setLineClassName(e){if(this.options.setLineClassName)return this.options.setLineClassName(e)}getLineColor(e){return e.isHidden?this.lineColor.hidden:e.hasError?this.lineColor.error:e.highlightColor?e.highlightColor:e.drawingTo?this.lineColor.drawing:this.hoverService.isHovered(e.id)?this.lineColor.hovered:this.selectService.isSelected(e.id)?this.lineColor.selected:this.lineColor.default}canAddLine(e,n,r){return e===n||e.node===n.node||e.portType!=="output"||n.portType!=="input"||n.disabled?!1:this.options.canAddLine?this.options.canAddLine(e,n,this,r):e.node!==n.node}toJSON(){return this.getAllLines().filter(e=>!e.isDrawing).map(e=>e.toJSON())}getPortById(e){return this.entityManager.getEntityById(e)}canRemove(e,n,r){return!(this.options&&this.options.canDeleteLine&&!this.options.canDeleteLine(e,n,r))}canReset(e,n,r){return!(this.options&&this.options.canResetLine&&!this.options.canResetLine(e,n,r,this))}getPortFromMousePos(e){const r=this.entityManager.getEntities(LC).filter(i=>i.node.flowNodeType!=="root").find(i=>i.isHovered(e.x,e.y));if(r){const i=this.document.getAllNodes().slice().reverse().filter(o=>{var a,s;return((s=(a=r.node)==null?void 0:a.parent)==null?void 0:s.id)!==o.id}).find(o=>o.getData(Ui).contains(e.x,e.y));if(i&&i!==r.node)return}return r}getNodeFromMousePos(e){var a,s;const n=this.document.getAllNodes().sort((l,c)=>this.getNodeIndex(l)-this.getNodeIndex(c)),r=[],{selection:i}=this.selectService,o=((s=(a=this.entityManager.getEntity(da))==null?void 0:a.config)==null?void 0:s.zoom)||1;if(n.forEach(l=>{const{bounds:c}=l.getData(hr);c.clone().pad(4/o).contains(e.x,e.y)&&r.push(l)}),i!=null&&i.length){const l=r.filter(c=>i.some(u=>c.id===u.id));if(l!=null&&l.length)return t$e(l)}return t$e(r)}registerContribution(e){return this.contributionFactories.push(e),this}registerData(e){e.addData(Sy)}getNodeIndex(e){return e.getData(ra).stackIndex}};Mi([Ot(If)],Ql.prototype,"hoverService",2);Mi([Ot(Wa)],Ql.prototype,"selectService",2);Mi([Ot(Lo)],Ql.prototype,"entityManager",2);Mi([Ot(l$)],Ql.prototype,"options",2);Ql=Mi([Pn()],Ql);var jat="free-layout",OR=class{constructor(){this.name=jat}get document(){return this.documentProvider()}update(){var e;(e=this.document.root.getData(hr))!=null&&e.localDirty&&this.document.root.clearMemoGlobal()}syncTransform(e){const n=e.getData(hr);if(!n.localDirty||(e.clearMemoGlobal(),e.clearMemoLocal(),n.transform.update({size:n.data.size}),!e.parent))return;e.parent.clearMemoGlobal(),e.parent.clearMemoLocal(),e.parent.getData(hr).transform.fireChange()}updateAffectedTransform(e){if(!e.transform.localDirty)return;const r=this.getAllParents(e);[...this.getAllBlocks(e).reverse(),...r].forEach(a=>{this.fireChange(a)})}getPadding(e){const{padding:n}=e.getNodeMeta(),r=e.getData(hr);return n?typeof n=="function"?n(r):n:tse.empty()}getInitScroll(e){const n=Qn.enlarge(this.document.getAllNodes().map(o=>o.getData(Ui).bounds)).pad(30,30),r=this.playgroundConfig.getViewport(!1),i=mR.fixSize(n,r);return{scrollX:(n.x+n.width/2)*i-this.playgroundConfig.config.width/2,scrollY:(n.y+n.height/2)*i-this.playgroundConfig.config.height/2}}getDefaultInputPoint(e){return e.getData(Ui).bounds.leftCenter}getDefaultOutputPoint(e){return e.getData(Ui).bounds.rightCenter}getDefaultNodeOrigin(){return{x:.5,y:0}}getAllParents(e){const n=[];let r=e.parent;for(;r;)n.push(r),r=r.parent;return n}getAllBlocks(e){return e.blocks.reduce((n,r)=>[...n,...this.getAllBlocks(r)],[e])}fireChange(e){const n=e==null?void 0:e.transform;!e||!(n!=null&&n.localDirty)||(e.clearMemoGlobal(),e.clearMemoLocal(),n.transform.fireChange())}};Mi([Ot(da)],OR.prototype,"playgroundConfig",2);Mi([Ot(BV)],OR.prototype,"documentProvider",2);OR=Mi([Pn()],OR);var BJ=rit("1234567890",5),qnr=Symbol("WorkflowDocumentProvider"),ei=class extends jo{constructor(){super(...arguments),this._onContentChangeEmitter=new Un,this.onLoadedEmitter=new Un,this.onContentChange=this._onContentChangeEmitter.event,this._onReloadEmitter=new Un,this.onReload=this._onReloadEmitter.event,this.disposed=!1,this.onLoaded=this.onLoadedEmitter.event,this._loading=!1,this.options={}}get loading(){return this._loading}async fitView(e){return GV(this,this.playgroundConfig,e).then(()=>{this.linesManager.forceUpdate()})}init(){super.init(),this.currentLayoutKey=this.options.defaultLayout||jat,this.linesManager.init(this),this.playgroundConfig.getCursors=()=>this.options.cursors,this.linesManager.onAvailableLinesChange(e=>this.fireContentChange(e)),this.playgroundConfig.onReadonlyOrDisabledChange(({readonly:e})=>{this.nodeEngineContext&&(this.nodeEngineContext.readonly=e)})}async load(){this._loading=!0,await super.load(),this._loading=!1,this.onLoadedEmitter.fire()}async reload(e,n=0){this._loading=!0,this.clear(),this.fromJSON(e),await NS(n),this._loading=!1,this._onReloadEmitter.fire(this)}fromJSON(e,n=!0){const r={nodes:e.nodes??[],edges:e.edges??[]};this.entityManager.changeEntityLocked=!0,this.renderJSON(r),this.entityManager.changeEntityLocked=!1,this.transformer.loading=!1,n&&this.fireRender()}clear(){this.getAllNodes().map(e=>e.dispose()),this.linesManager.getAllLines().map(e=>e.dispose()),this.getAllPorts().map(e=>e.dispose()),this.selectServices.clear()}createWorkflowNode(e,n=!1,r){var v;const i=this.getNode(e.id),o=this.getNode(r??this.root.id)??this.root,a=this.addNode({...e,parent:o},void 0,!0),s=a.getNodeRegistry(),{formMeta:l}=s,c=a.getNodeMeta(),u=Gnr(a),d=a.getData(hr),f=this.layout;d.onDataChange(()=>{f.syncTransform(a)});let{position:p}=c;p||(p=this.getNodeDefaultPosition(e.type)),a.getData(Ui).update({position:p}),l&&u&&!u.formModel.initialized&&(u.createForm(l,e.data),u.onDataChange(()=>{this.fireContentChange({type:"NODE_DATA_CHANGE",toJSON:()=>u.toJSON(),entity:a})}));const h=a.getData(qb);h.onDataChange(()=>{this.fireContentChange({type:"MOVE_NODE",toJSON:()=>h.toJSON(),entity:a})});const g=this.getNodeSubCanvas(a);return!i&&!(g!=null&&g.isCanvas)&&(this.fireContentChange({type:"ADD_NODE",entity:a,toJSON:()=>this.toNodeJSON(a)}),a.toDispose.push(ao.create(()=>{this.fireContentChange({type:"DELETE_NODE",entity:a,toJSON:()=>this.toNodeJSON(a)})})),a.toDispose.push(ao.create(()=>{if(!a.parent||a.parent.flowNodeType===Fo.ROOT)return;const y=a.parent.getData(hr);setTimeout(()=>{y.fireChange()},0)}))),e.blocks&&this.renderJSON({nodes:e.blocks,edges:e.edges??[]},{parent:a,isClone:n}),g&&(g.canvasNode.getData(Ui).update({position:(v=g.parentNode.getNodeMeta())==null?void 0:v.canvasPosition}),g.parentNode.onDispose(()=>{g.canvasNode.dispose()}),g.canvasNode.onDispose(()=>{g.parentNode.dispose()})),this.onNodeCreateEmitter.fire({node:a,data:e}),a}get layout(){const e=this.layouts.find(n=>n.name==this.currentLayoutKey);if(!e)throw new Error(`Unknown flow layout: ${this.currentLayoutKey}`);return e}getNodeDefaultPosition(e){const{size:n}=this.getNodeRegistry(e).meta||{};let r=this.playgroundConfig.getViewport(!0).center;return n&&(r={x:r.x,y:r.y-n.height/2}),Hnr(this,r)}createWorkflowNodeByType(e,n,r={},i){let o=r.id;if(o===void 0)do o=`1${BJ()}`;while(this.entityManager.getEntityById(o));else if(this.entityManager.getEntityById(o))throw new Error(`[WorkflowDocument.createWorkflowNodeByType] Node Id "${o}" duplicated.`);return this.createWorkflowNode({...r,id:o,type:e,meta:{position:n,...r==null?void 0:r.meta},data:r==null?void 0:r.data,blocks:r==null?void 0:r.blocks,edges:r==null?void 0:r.edges},!1,i)}getAllNodes(){return this.entityManager.getEntities(Dp).filter(e=>e.id!==Fo.ROOT)}getAllPorts(){return this.entityManager.getEntities(LC).filter(e=>e.node.id!==Fo.ROOT)}getAssociatedNodes(){const e=this.getAllNodes(),n=this.linesManager.getAllLines().filter(c=>c.from&&c.to).map(c=>({from:c.from.id,to:c.to.id})),r=e.find(c=>c.isStart).id,i=e.find(c=>c.isNodeEnd).id,o=e.filter(c=>{var u;return(u=c.parent)==null?void 0:u.getNodeMeta().isContainer}).map(c=>c.id),a=new Set([i,...o]),s=c=>{if(a.has(c))return;a.add(c),n.reduce((d,{from:f,to:p})=>(f===c&&!a.has(p)&&d.push(p),d),[]).forEach(s)};return s(r),e.filter(c=>a.has(c.id))}fireRender(){this.entityManager.fireEntityChanged(Dp.type),this.entityManager.fireEntityChanged(Zd.type),this.entityManager.fireEntityChanged(LC.type)}fireContentChange(e){this._loading||this.disposed||this.entityManager.changeEntityLocked||this._onContentChangeEmitter.fire(e)}toNodeJSON(e){const n=this.getNodeSubCanvas(e);if((n==null?void 0:n.isCanvas)===!0)return this.toNodeJSON(n.parentNode);const r=this.toNodeJSONFromOptions(e),i=this.getNodeChildren(e),o=i.map(l=>this.toNodeJSON(l)),a=new Map;i.forEach(l=>{const c=l.getData(Cm);[...c.inputLines,...c.outputLines].filter(Boolean).forEach(u=>{const d=this.toLineJSON(u);!d||a.has(u.id)||a.set(u.id,d)})});const s=Array.from(a.values());return o.length>0&&(r.blocks=o),s.length>0&&(r.edges=s),r}toNodeJSONFromOptions(e){return this.options.toNodeJSON?this.options.toNodeJSON(e):Kb.toNodeJSON(e)}copyNode(e,n,r,i){var a;let o=this.toNodeJSON(e);return r&&(o=r(o)),i=i||{x:o.meta.position.x+30,y:o.meta.position.y+30},this.createWorkflowNode({id:n||`1${BJ()}`,type:e.flowNodeType,meta:{...o.meta,position:i},data:o.data,blocks:o.blocks,edges:o.edges},!0,(a=e.parent)==null?void 0:a.id)}copyNodeFromJSON(e,n,r,i,o){return i=i||{x:n.meta.position.x+30,y:n.meta.position.y+30},this.createWorkflowNode({id:r||`1${BJ()}`,type:e,meta:{...n.meta,position:i},data:n.data,blocks:n.blocks,edges:n.edges},!0,o)}canRemove(e,n){return!(e.getNodeMeta().deleteDisable||this.options.canDeleteNode&&!this.options.canDeleteNode(e,n))}isErrorPort(e){return typeof this.options.isErrorPort=="function"?this.options.isErrorPort(e):!1}toJSON(){const e=this.toNodeJSON(this.root);return{nodes:e.blocks??[],edges:e.edges??[]}}dispose(){this.disposed||(super.dispose(),this.disposed=!0,this._onReloadEmitter.dispose())}renderJSON(e,n){var l;const{parent:r=this.root,isClone:i=!1}=n??{},o=((l=this.getNodeSubCanvas(r))==null?void 0:l.canvasNode.id)??r.id,a=e.nodes.map(c=>this.createWorkflowNode(c,i,o)),s=e.edges.map(c=>this.createWorkflowLine(c,o)).filter(Boolean);return{nodes:a,edges:s}}getNodeSubCanvas(e){var i;if(!e)return;const n=e.getNodeMeta();return(i=n.subCanvas)==null?void 0:i.call(n,e)}getNodeChildren(e){if(!e)return[];const n=this.getNodeSubCanvas(e);return(n?n.canvasNode.collapsedChildren:e.collapsedChildren).filter(o=>{var s,l;const a=o.getNodeMeta();return!((l=(s=a.subCanvas)==null?void 0:s.call(a,e))!=null&&l.isCanvas)}).filter(Boolean)}toLineJSON(e){const n=e.toJSON();if(!e.from||!e.info.from||!e.fromPort||!e.to||!e.info.to||!e.toPort)return;const r=this.getNodeSubCanvas(e.from),i=this.getNodeSubCanvas(e.to);if(!(r&&!r.isCanvas&&i&&i.isCanvas))return e.from===e.to.parent&&r?{...n,sourceNodeID:r.parentNode.id}:e.to===e.from.parent&&i?{...n,targetNodeID:i.parentNode.id}:n}createWorkflowLine(e,n){const r=this.getNode(e.sourceNodeID),i=this.getNode(e.targetNodeID);if(!r||!i)return;const o={from:e.sourceNodeID,fromPort:e.sourcePortID,to:e.targetNodeID,toPort:e.targetPortID};if(!n)return this.linesManager.createLine(o);const a=this.getNode(n);if(!a)return this.linesManager.createLine(o);const s=this.getNodeSubCanvas(a);return s?o.from===s.parentNode.id?this.linesManager.createLine({...o,from:s.canvasNode.id}):o.to===s.parentNode.id?this.linesManager.createLine({...o,to:s.canvasNode.id}):this.linesManager.createLine(o):this.linesManager.createLine(o)}};Mi([Ot(Ql)],ei.prototype,"linesManager",2);Mi([Ot(da)],ei.prototype,"playgroundConfig",2);Mi([iN()],ei.prototype,"playgroundContext",2);Mi([Ot(l$)],ei.prototype,"options",2);Mi([Ot(Of),ss()],ei.prototype,"nodeEngineContext",2);Mi([Ot(Wa)],ei.prototype,"selectServices",2);Mi([Zc()],ei.prototype,"init",1);ei=Mi([Pn()],ei);var Knr=100,n$e=5;function r$e(e,n,r){return!r||e>Knr||Math.abs(n.endPos.x-n.startPos.x)>=n$e||Math.abs(n.endPos.y-n.startPos.y)>=n$e}var Ya=class{constructor(){this._onDragLineEventEmitter=new Un,this.onDragLineEventChange=this._onDragLineEventEmitter.event,this.isDragging=!1,this._nodesDragEmitter=new Un,this.onNodesDrag=this._nodesDragEmitter.event,this._toDispose=new Ei,this._droppableTransforms=[],this.posAdjusters=new Set,this._onDragLineEndCallbacks=new Map}init(){this._toDispose.pushAll([this._onDragLineEventEmitter,this._nodesDragEmitter]),this.options.onDragLineEnd&&this._toDispose.push(this.onDragLineEnd(this.options.onDragLineEnd))}dispose(){this._toDispose.dispose()}async startDragSelectedNodes(e){var c;let{selectedNodes:n}=this.selectService;if(n.length===0||this.playgroundConfig.readonly||this.playgroundConfig.disabled||this.isDragging)return Promise.resolve(!1);this.isDragging=!0;const r=this.childrenOfContainer(n);r&&r.flowNodeType!==Fo.ROOT&&(n=[r]);let i=this.getNodesPosition(n),o=n.map(u=>{const d=u.getData(Ui);return{x:d.position.x,y:d.position.y}}),a=!1;const s=Date.now(),l=new Em({onDragStart:u=>{this._nodesDragEmitter.fire({type:"onDragStart",nodes:n,startPositions:o,dragEvent:u,triggerEvent:e,dragger:l})},onDrag:u=>{!a&&r$e(Date.now()-s,u)&&(a=!0);const d=this.getDragPosOffset({event:u,selectedNodes:n,startPosition:i}),f=[];n.forEach((p,h)=>{const g=p.getData(Ui),v=o[h],y={x:v.x+d.x,y:v.y+d.y};g.update({position:y}),this.document.layout.updateAffectedTransform(p),f.push(y)}),this._nodesDragEmitter.fire({type:"onDragging",nodes:n,startPositions:o,positions:f,dragEvent:u,triggerEvent:e,dragger:l})},onDragEnd:u=>{this.isDragging=!1,this._nodesDragEmitter.fire({type:"onDragEnd",nodes:n,startPositions:o,dragEvent:u,triggerEvent:e,dragger:l})}});return(c=l.start(e.clientX,e.clientY,this.playgroundConfig))==null?void 0:c.then(()=>a)}async dropCard(e,n,r,i){const o=this.playgroundConfig.getPosFromMouseEvent(n);if(!this.playgroundConfig.getViewport().contains(o.x,o.y))return;const a=this.adjustSubNodePosition(e,i,o);return await this.document.createWorkflowNodeByType(e,a,r,i==null?void 0:i.id)}async startDragCard(e,n,r,i){let o,a={x:0,y:0};const s=new fj;return await new Em({onDragStart:c=>{const u=n.currentTarget;o=i?i(c):u.cloneNode(!0);const d=u.getBoundingClientRect();a={x:d.left,y:d.top},Tr.setStyle(o,{zIndex:1e3,position:"absolute",left:a.x,top:a.y,boxShadow:"0 6px 8px 0 rgba(28, 31, 35, .2)"}),document.body.appendChild(o),this.updateDroppableTransforms()},onDrag:c=>{const u=c.endPos.x-c.startPos.x,d=c.endPos.y-c.startPos.y,f=a.x+u,p=a.y+d;o.style.left=`${f}px`,o.style.top=`${p}px`;const{x:h,y:g}=this.playgroundConfig.getPosFromMouseEvent(c),v=new Qn(h,g,170,90),y=this._droppableTransforms.find(_=>{const{bounds:S,entity:b}=_,E=this.document.layout.getPadding(b),w=new Qn(S.x+E.left+E.right,S.y,S.width,S.height);return Qn.intersects(v,w)});this.updateDropNode(y==null?void 0:y.entity)},onDragEnd:async c=>{const u=this._dropNode,{allowDrop:d}=this.canDropToNode({dragNodeType:e,dropNode:u}),f=d?await this.dropCard(e,c,r,u):void 0;this.clearDrop(),f?(o.remove(),s.resolve(f)):(o.style.transition="all ease .2s",o.style.left=`${a.x}px`,o.style.top=`${a.y}px`,await NS(200),o.remove(),s.resolve())}}).start(n.clientX,n.clientY),s.promise}adjustSubNodePosition(e,n,r,i=!0){if(!r)return{x:0,y:0};if(!e||!n||n.flowNodeType===Fo.ROOT)return r;const o=!n.children||n.children.length===0,a=this.document.layout.getPadding(n),s=n.getData(Ui);return o&&i?{x:0,y:a.top}:{x:r.x-s.position.x,y:r.y-s.position.y}}registerPosAdjuster(e){return this.posAdjusters.add(e),{dispose:()=>this.posAdjusters.delete(e)}}canDropToNode(e){const{dragNodeType:n,dropNode:r}=e;return n?{allowDrop:!0,dropNode:r}:{allowDrop:!1,message:"Please select a node to drop"}}getDragPosOffset(e){const{event:n,selectedNodes:r,startPosition:i}=e,{finalScale:o}=this.playgroundConfig,a={x:(n.endPos.x-n.startPos.x)/o,y:(n.endPos.y-n.startPos.y)/o},s={x:i.x+a.x,y:i.y+a.y};return Array.from(this.posAdjusters.values()).map(u=>u({selectedNodes:r,position:s})).reduce((u,d)=>({x:u.x+d.x,y:u.y+d.y}),a)}updateDroppableTransforms(){this._droppableTransforms=this.document.getRenderDatas(hr,!1).filter(e=>{const{entity:n}=e;return n.originParent?this.nodeSelectable(n)&&this.nodeSelectable(n.originParent):this.nodeSelectable(n)}).filter(e=>this.isContainer(e.entity))}isContainer(e){return(e==null?void 0:e.getNodeMeta().isContainer)??!1}getNodesPosition(e){const n=Qn.enlarge(e.map(i=>i.getData(hr).bounds));return{x:n.x,y:n.y}}nodeSelectable(e){const n=e.getNodeMeta().selectable;return typeof n=="function"?n(e):n}updateDropNode(e){if(this._dropNode){if(this._dropNode.id===(e==null?void 0:e.id))return;this.selectService.clear()}e&&this.selectService.selectNode(e),this._dropNode=e}clearDrop(){this._dropNode&&this.selectService.clear(),this._dropNode=void 0,this._droppableTransforms=[]}setLineColor(e,n){e.highlightColor=n,this.hoverService.clearHovered()}handleDragOnNode(e,n,r,i,o){return i&&((o==null?void 0:o.toPort)===i||i.portType==="input"&&this.linesManager.canAddLine(n,i,!0))?(this.hoverService.updateHoveredKey(i.id),r.setToPort(i),this._onDragLineEventEmitter.fire({type:"onDrag",onDragNodeId:e.id}),{hasError:!1}):this.isContainer(e)?{hasError:!1}:(this.setLineColor(r,this.linesManager.lineColor.error),{hasError:!0})}childrenOfContainer(e){var i;if(e.length===0)return;const n=(i=e[0])==null?void 0:i.parent;if(!(!n||n.collapsedChildren.length!==e.length||!e.every(o=>(o==null?void 0:o.parent)===n)))return n}async startDrawingLine(e,n,r){const i=!r&&e.isErrorPort()&&e.disabled;if(r!=null&&r.disabled||i||this.playgroundConfig.readonly||this.playgroundConfig.disabled)return{dragSuccess:!1,newLine:void 0};this.selectService.clear();const o=this.playgroundConfig,a=new fj,s=o.cursor;let l,c,u,d=!1;const f=Date.now();let p=!1;return await new Em({onDrag:g=>{if(!l&&r$e(Date.now()-f,g,r)){if(r&&(r.highlightColor=this.linesManager.lineColor.hidden),p=!0,l=this.linesManager.createLine({from:e.node.id,fromPort:e.portID,drawingTo:o.getPosFromMouseEvent(n)}),!l)return;o.updateCursor("grab"),l.highlightColor=this.linesManager.lineColor.drawing,this.hoverService.updateHoveredKey("")}if(!l)return;d=!1;const v=o.getPosFromMouseEvent(g);if(u=this.linesManager.getNodeFromMousePos(v),c=this.linesManager.getPortFromMousePos(v),c?this.linesManager.canAddLine(e,c,!0)?l.setToPort(c):(l.highlightColor=this.linesManager.lineColor.error,d=!0,l.setToPort(void 0)):l.setToPort(void 0),this._onDragLineEventEmitter.fire({type:"onDrag"}),this.setLineColor(l,this.linesManager.lineColor.drawing),u&&!this.isContainer(u)){const y=u.getData(Xm),{inputPorts:_}=y;_.length===1&&(c=_[0]);const{hasError:S}=this.handleDragOnNode(u,e,l,c,r);d=S}l.toPort?l.drawingTo={x:l.toPort.point.x,y:l.toPort.point.y}:l.drawingTo={x:v.x,y:v.y},r==null||r.validate(),l.validate()},onDragEnd:async g=>{const v=o.getPosFromMouseEvent(g),y=Array.from(this._onDragLineEndCallbacks.values());o.updateCursor(s),await Promise.all(y.map(S=>S({fromPort:e,toPort:c,mousePos:v,line:l,originLine:r,event:g}))),l==null||l.dispose(),this._onDragLineEventEmitter.fire({type:"onDragEnd"}),r&&(r.highlightColor="");const _=()=>{r==null||r.validate(),a.resolve({dragSuccess:p})};if(p){if(r&&r.toPort===c||c&&c.portType!=="input")return _();const S=c?{from:e.node.id,fromPort:e.portID,to:c.node.id,toPort:c.portID}:void 0;if(r&&c&&!this.linesManager.canReset(r.fromPort,r.toPort,c)||r&&(!this.linesManager.canRemove(r,S,!1)||d)||(r==null||r.dispose(),!c||!this.linesManager.canAddLine(e,c,!1)))return _();const E=this.linesManager.createLine(S);E||_(),a.resolve({dragSuccess:p,newLine:E})}else _()}}).start(n.clientX,n.clientY,o),a.promise}async resetLine(e,n){const{fromPort:r}=e,{dragSuccess:i}=await this.startDrawingLine(r,n,e);i||this.selectService.select(e)}onDragLineEnd(e){const n=yu();return this._onDragLineEndCallbacks.set(n,e),{dispose:()=>{this._onDragLineEndCallbacks.delete(n)}}}};Mi([Ot(da)],Ya.prototype,"playgroundConfig",2);Mi([Ot(If)],Ya.prototype,"hoverService",2);Mi([Ot(ei)],Ya.prototype,"document",2);Mi([Ot(Ql)],Ya.prototype,"linesManager",2);Mi([Ot(AV)],Ya.prototype,"commandService",2);Mi([Ot(Wa)],Ya.prototype,"selectService",2);Mi([Ot(FV)],Ya.prototype,"operationService",2);Mi([Ot(l$)],Ya.prototype,"options",2);Mi([Zc()],Ya.prototype,"init",1);Ya=Mi([Pn()],Ya);var Xnr=async(e,n)=>{const r={};return e.forEach(i=>{const o=i.getData(Ui),a=i.getData(hr);r[i.id]={x:o.position.x,y:o.position.y+a.bounds.height/2}}),new Promise(i=>{wme({from:{d:0},to:{d:100},duration:300,onUpdate:o=>{e.forEach(a=>{const s=a.getData(Ui),l=(n[a.id].x-s.position.x)*o.d/100,c=(n[a.id].y-s.bounds.height/2-s.position.y)*o.d/100;s.update({position:{x:s.position.x+l,y:s.position.y+c}}),a.document.layout.updateAffectedTransform(a)})},onComplete:()=>{i(r)}})})},jy=class{constructor(){this._resetLayoutEmitter=new Un,this.onResetLayout=this._resetLayoutEmitter.event,this._toDispose=new Ei}init(){this._toDispose.push(this._resetLayoutEmitter)}fireResetLayout(e,n,r){this._resetLayoutEmitter.fire({nodeIds:e,positionMap:n,oldPositionMap:r})}async layoutToPositions(e,n){const r=e.map(o=>this._entityManager.getEntityById(o)).filter(Boolean),i=await Xnr(r,n);return GV(this._document,this._config,!0),i}dispose(){this._toDispose.dispose()}};Mi([Ot(da)],jy.prototype,"_config",2);Mi([Ot(ei)],jy.prototype,"_document",2);Mi([Ot(Lo)],jy.prototype,"_entityManager",2);Mi([Zc()],jy.prototype,"init",1);jy=Mi([Pn()],jy);var Uat=class extends MC{constructor(){super(...arguments),this.onNodePostionUpdateEmitter=new Un,this.onNodePostionUpdate=this.onNodePostionUpdateEmitter.event}updateNodePosition(e,n){const r=this.toNodeEntity(e);if(!r)return;const i=r.getData(Ui),o={x:i.position.x,y:i.position.y};i.update({position:n}),this.onNodePostionUpdateEmitter.fire({node:r,oldPosition:o,newPosition:n})}};Mi([Ot(ei)],Uat.prototype,"document",2);function Hat(e){const n=ec();return Rd(),m.useEffect(()=>{let r;return()=>r==null?void 0:r.dispose()},[e]),n.config.readonly}function i$e(e){return e&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!e.closest(".flow-canvas-not-draggable")}function x_(e){var C,x;const n=m.useContext(kV),r=n.getData(ra),i=n.getData(Xm),o=Hat(),a=Di(Ya),s=Di(Wa),l=m.useRef(!1),c=m.useRef(null),[u,d]=m.useState("");m.useEffect(()=>{const T=a.onDragLineEventChange(({type:R,onDragNodeId:O})=>{d(R==="onDrag"&&O||"")});return()=>{T.dispose()}},[]);const f=m.useCallback(T=>{var R;T.preventDefault(),s.isSelected(n.id)||p(T),!(!i$e(T.target)||!i$e(document.activeElement))&&(l.current=!0,(R=a.startDragSelectedNodes(T))==null||R.finally(()=>setTimeout(()=>{l.current=!1})))},[a,n]),p=m.useCallback(T=>{l.current||(T.shiftKey?s.toggleSelect(n):s.selectNode(n),T.target&&T.target.focus())},[n]),h=m.useCallback(()=>n.dispose(),[n]);GZn(i.onDataChange);const g=(x=(C=navigator==null?void 0:navigator.userAgent)==null?void 0:C.includes)==null?void 0:x.call(C,"Firefox"),v=m.useCallback(()=>{var T;g&&((T=c.current)==null||T.setAttribute("draggable","false"))},[]),y=m.useCallback(()=>{var T;g&&((T=c.current)==null||T.setAttribute("draggable","true"))},[]),_=m.useCallback(()=>n.getExtInfo(),[n]),S=m.useCallback(T=>{n.updateExtInfo(T)},[n]),b=m.useMemo(()=>Sot(n),[n]),E=uot(b==null?void 0:b.state),w=m.useCallback(()=>{r.toggleExpand()},[r]);return{node:n,selected:s.isSelected(n.id),activated:s.isActivated(n.id),expanded:r.expanded,startDrag:f,ports:i.allPorts,deleteNode:h,selectNode:p,readonly:o,linkingNodeId:u,nodeRef:c,onFocus:v,onBlur:y,getExtInfo:_,updateExtInfo:S,toggleExpand:w,get form(){if(b)return{...b,get values(){return b.values},get state(){return E}}}}}function Dw(){return Dme()}var db=(e=>(e.GRAB="GRAB",e.SELECT="SELECT",e))(db||{}),Zx=(e=>(e.MOUSE="MOUSE",e.PAD="PAD",e))(Zx||{}),kj=class{registerDocument(e){e.registerNodeDatas(hr,ra,Xm,Cm),e.registerLayout(this.freeLayout)}};Mi([Ot(OR)],kj.prototype,"freeLayout",2);kj=Mi([Pn()],kj);function Qnr(){return location.search.replace(/^\?/,"").split("&").reduce((e,n)=>{const[r,i]=n.split("=");return e[r]=i,e},{})}var Znr=new Jp((e,n,r,i)=>{e(ei).toSelf().inSingletonScope(),e(Ql).toSelf().inSingletonScope(),e(OR).toSelf().inSingletonScope(),e(Ya).toSelf().inSingletonScope(),e(Wa).toSelf().inSingletonScope(),e(If).toSelf().inSingletonScope(),e(jy).toSelf().inSingletonScope(),e(zV).to(Uat).inSingletonScope(),e(unr).toDynamicValue(()=>Qnr()).inSingletonScope(),XL(e,kj,[Hme]),e(l$).toConstantValue({...Kb}),i(jo).toService(ei),e(qnr).toDynamicValue(o=>()=>o.container.get(ei)).inSingletonScope()}),Jnr=Object.defineProperty,err=Object.getOwnPropertyDescriptor,uN=(e,n,r,i)=>{for(var o=i>1?void 0:i?err(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Jnr(n,r,o),o},jJ=(e,n)=>(r,i)=>n(r,i,e),$h=class extends Pl{constructor(e,n){super(e),this.opts=n;const{variableEngine:r}=n||{};this.variableEngine=r,this._public=this.variableEngine.createScope(this.entity.id,{node:this.entity,type:"public"}),this.toDispose.push(this._public)}get private(){return this._private}get public(){return this._public}setVar(e,n){if(typeof e=="string"&&n!==void 0)return this.public.ast.set(e,n);if(typeof e=="object"&&n===void 0)return this.public.ast.set("outputs",e);throw new Error("Invalid arguments")}getVar(e="outputs"){return this.public.ast.get(e)}clearVar(e="outputs"){return this.public.ast.remove(e)}setPrivateVar(e,n){if(typeof e=="string"&&n!==void 0)return this.initPrivate().ast.set(e,n);if(typeof e=="object"&&n===void 0)return this.initPrivate().ast.set("outputs",e);throw new Error("Invalid arguments")}getPrivateVar(e="outputs"){var n;return(n=this.private)==null?void 0:n.ast.get(e)}clearPrivateVar(e="outputs"){var n;return(n=this.private)==null?void 0:n.ast.remove(e)}get allScopes(){const e=[];return this._public&&e.push(this._public),this._private&&e.push(this._private),e}getDefaultData(){return{}}initPrivate(){return this._private||(this._private=this.variableEngine.createScope(`${this.entity.id}_private`,{node:this.entity,type:"private"}),this._private.coverScopes.forEach(e=>{e.refreshDeps()}),this._private.depScopes.forEach(e=>{e.refreshCovers()}),this._private.available.refresh(),this.toDispose.push(this._private)),this._private}};$h.type="FlowNodeVariableData";var nve=Symbol("VariableLayoutConfig"),cd=class extends Pat{static is(e){return e.id===cd.ID}setVar(e,n){if(typeof e=="string"&&n!==void 0)return this.ast.set(e,n);if(typeof e=="object"&&n===void 0)return this.ast.set("outputs",e);throw new Error("Invalid arguments")}getVar(e="outputs"){return this.ast.get(e)}clearVar(e="outputs"){return this.ast.remove(e)}};cd.ID=Symbol("GlobalScope");cd=uN([Pn()],cd);var trr=e=>{e(cd).toDynamicValue(n=>{const r=n.container.get(Km);let i=r.getScopeById(cd.ID);return i||(i=r.createScope(cd.ID,{},{ScopeConstructor:cd}),r.chain.refreshAllChange()),i})},c$=class extends B0{get tree(){return this.flowDocument.originTree}onInit(){this.toDispose.pushAll([this.entityManager.onEntityDataChange(({entityDataType:e})=>{e===Cm.type&&this.refreshAllChange()}),this.tree.onTreeChange(()=>{this.refreshAllChange()})])}getAllInputLayerNodes(e){var n;return(((n=e.getData(Cm))==null?void 0:n.allInputNodes)||[]).filter(r=>r.parent===e.parent)}getAllOutputLayerNodes(e){var n;return(((n=e.getData(Cm))==null?void 0:n.allOutputNodes)||[]).filter(r=>r.parent===e.parent)}getDeps(e){const{node:n}=e.meta||{};if(!n)return this.transformDeps([],{scope:e});const r=[];let i=n;for(;i;){const s=this.getAllInputLayerNodes(i);r.push(...s.map(c=>c.getData($h).public).filter(Boolean));const l=i.getData($h);l!=null&&l.private&&e!==l.private&&r.push(l.private),i=this.getParent(i)}const o=this.variableEngine.getScopeById(cd.ID);o&&r.unshift(o);const a=Array.from(new Set(r));return this.transformDeps(a,{scope:e})}getCovers(e){if(cd.is(e))return this.variableEngine.getAllScopes({sort:!0}).filter(l=>!cd.is(l));const{node:n}=e.meta||{};if(!n)return this.transformCovers([],{scope:e});const r=e.meta.type==="private",i=[];r?i.push(...this.getChildren(n)):i.push(...this.getAllOutputLayerNodes(n)||[]);const o=[];for(;i.length;){const l=i.shift(),c=l.getData($h);o.push(...c.allScopes);const u=l&&this.getChildren(l);u!=null&&u.length&&i.push(...u)}const a=n.getData($h);r&&a.public&&o.push(a.public);const s=Array.from(new Set(o));return this.transformCovers(s,{scope:e})}transformCovers(e,{scope:n}){var r;return(r=this.configs)!=null&&r.transformCovers?this.configs.transformCovers(e,{scope:n,document:this.flowDocument,variableEngine:this.variableEngine}):e}transformDeps(e,{scope:n}){var r;return(r=this.configs)!=null&&r.transformDeps?this.configs.transformDeps(e,{scope:n,document:this.flowDocument,variableEngine:this.variableEngine}):e}getChildren(e){var i,o,a,s;if((i=this.configs)!=null&&i.getFreeChildren)return(a=(o=this.configs).getFreeChildren)==null?void 0:a.call(o,e);const n=e.getNodeMeta(),r=(s=n.subCanvas)==null?void 0:s.call(n,e);return r?r.isCanvas?[]:r.canvasNode.collapsedChildren:this.tree.getChildren(e)}getParent(e){var o,a;if((o=this.configs)!=null&&o.getFreeParent)return this.configs.getFreeParent(e);const n=e.document.originTree.getParent(e);if(!n)return n;const r=n.getNodeMeta(),i=(a=r.subCanvas)==null?void 0:a.call(r,n);return i!=null&&i.isCanvas?i.parentNode:n}sortAll(){return console.warn("FreeLayoutScopeChain.sortAll is not implemented"),[]}};uN([Ot(Lo)],c$.prototype,"entityManager",2);uN([Ot(jo)],c$.prototype,"flowDocument",2);uN([ss(),Ot(nve)],c$.prototype,"configs",2);uN([Zc()],c$.prototype,"onInit",1);var Ese=class extends B0{constructor(e,n){super(),this.flowDocument=e,this.configs=n,this.bindTree(e.originTree),this.toDispose.push(e.originTree.onTreeChange(()=>{this.refreshAllChange()}))}bindTree(e){this.tree=e}getDeps(e){if(!this.tree)return this.transformDeps([],{scope:e});const n=e.meta.node;if(!n)return this.transformDeps([],{scope:e});const r=[];let i=n;for(;i;){const{parent:a,pre:s}=this.tree.getInfo(i),l=this.getVariableData(i);if(i===n?e.meta.type==="public"&&(l!=null&&l.private)&&r.unshift(l.private):this.hasChildren(i)&&!this.isNodeChildrenPrivate(i)&&r.unshift(...this.getAllSortedChildScope(i,{ignoreNodeChildrenPrivate:!0})),l&&i!==n&&r.unshift(l.public),s){i=s;continue}if(a){let c=a,u=this.tree.getPre(c);for(;c;){const d=this.getVariableData(c);if(d&&r.unshift(...d.allScopes),u)break;c=this.tree.getParent(c),u=c?this.tree.getPre(c):void 0}i=u;continue}i=void 0}const o=this.variableEngine.getScopeById(cd.ID);return o&&r.unshift(o),this.transformDeps(r,{scope:e})}getCovers(e){if(!this.tree)return this.transformCovers([],{scope:e});if(cd.is(e))return this.variableEngine.getAllScopes({sort:!0}).filter(o=>!cd.is(o));const n=e.meta.node;if(!n)return this.transformCovers([],{scope:e});const r=[];if(e.meta.type==="private")return r.push(...this.getAllSortedChildScope(n,{addNodePrivateScope:!0})),this.transformCovers(r,{scope:e});let i=n;for(;i;){const{next:o,parent:a}=this.tree.getInfo(i),s=this.getVariableData(i);if(i!==n&&(this.hasChildren(i)?r.push(...this.getAllSortedChildScope(i,{addNodePrivateScope:!0})):s&&r.push(...s.allScopes)),o){i=o;continue}if(a){let l=a,c=this.tree.getNext(l);for(;l;){if(this.isNodeChildrenPrivate(l))return this.transformCovers(r,{scope:e});if(c)break;l=this.tree.getParent(l),c=l?this.tree.getNext(l):void 0}if(!c&&l)break;i=c;continue}i=void 0}return this.transformCovers(r,{scope:e})}transformCovers(e,{scope:n}){var r;return(r=this.configs)!=null&&r.transformCovers?this.configs.transformCovers(e,{scope:n,document:this.flowDocument,variableEngine:this.variableEngine}):e}transformDeps(e,{scope:n}){var r;return(r=this.configs)!=null&&r.transformDeps?this.configs.transformDeps(e,{scope:n,document:this.flowDocument,variableEngine:this.variableEngine}):e}sortAll(){const e=this.flowDocument.getAllNodes().find(a=>a.isStart);if(!e)return[];const r=e.getData($h).public,i=this.getDeps(r),o=this.getCovers(r).filter(a=>!i.includes(a)&&a!==r);return[...i,r,...o]}getVariableData(e){if(e.flowNodeType!=="virtualNode"&&!e.id.startsWith("$"))return e.getData($h)}isNodeChildrenPrivate(e){var r,i;return(r=this.configs)!=null&&r.isNodeChildrenPrivate?e?(i=this.configs)==null?void 0:i.isNodeChildrenPrivate(e):!1:!(e==null?void 0:e.id.startsWith("$"))&&this.hasChildren(e)}hasChildren(e){return!!(this.tree&&e&&this.tree.getChildren(e).length>0)}getAllSortedChildScope(e,{ignoreNodeChildrenPrivate:n,addNodePrivateScope:r}={}){var s;const i=[],o=this.getVariableData(e);if(o&&i.push(o.public),n&&this.isNodeChildrenPrivate(e))return i;r&&(o!=null&&o.private)&&i.push(o.private);const a=((s=this.tree)==null?void 0:s.getChildren(e))||[];return i.push(...a.map(l=>this.getAllSortedChildScope(l,{ignoreNodeChildrenPrivate:n,addNodePrivateScope:r})).flat()),i}};Ese=uN([jJ(0,Ot(jo)),jJ(1,ss()),jJ(1,Ot(nve))],Ese);var nrr=pa({onBind({bind:e},n){const{layout:r,layoutConfig:i}=n;r==="free"&&e(B0).to(c$).inSingletonScope(),r==="fixed"&&e(B0).to(Ese).inSingletonScope(),i&&e(nve).toConstantValue(i||{}),trr(e)},onInit(e,n){const{extendASTNodes:r}=n||{},i=e.get(Km),o=e.get(hD),a=e.get(Lo),s=e.get(jo);(r||[]).forEach(l=>{if(Array.isArray(l)){const[c,u]=l;o.registerAST(c,u?()=>u(e):void 0);return}o.registerAST(l)}),a.registerEntityData($h,()=>({variableEngine:i})),s.registerNodeDatas($h)},containerModules:[anr]}),rrr=Object.defineProperty,irr=Object.getOwnPropertyDescriptor,kw=(e,n,r,i)=>{for(var o=i>1?void 0:i?irr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&rrr(n,r,o),o},Cse=Symbol("ShortcutsContribution"),j0=class{constructor(){this.shortcutsHandlers=[]}addHandlers(...e){e.forEach(n=>{this.commandRegistry.getCommand(n.commandId)?this.commandRegistry.registerHandler(n.commandId,{execute:n.execute,isEnabled:n.isEnabled}):this.commandRegistry.registerCommand({id:n.commandId,...n.commandDetail||{}},{execute:n.execute,isEnabled:n.isEnabled})}),this.shortcutsHandlers.unshift(...e)}addHandlersIfNotFound(...e){e.forEach(n=>{this.has(n.commandId)||this.addHandlers(n)})}has(e){return this.shortcutsHandlers.some(n=>n.commandId===e)}init(){var e;(e=this.contribs)==null||e.forEach(n=>n.registerShortcuts(this))}};kw([Ot(lme),Jrt(Cse),ss()],j0.prototype,"contribs",2);kw([Ot(Sm)],j0.prototype,"commandRegistry",2);kw([Zc()],j0.prototype,"init",1);j0=kw([Pn()],j0);var orr=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),zat={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,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,leftwindowkey:91,rightwindowkey:92,meta:orr?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide: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,scrolllock:145,semicolon:186,equalsign:187,"=":187,comma:188,dash:189,"-":189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},wse={ctrl:e=>e.ctrlKey,shift:e=>e.shiftKey,alt:e=>e.altKey,meta:e=>e.type==="keyup"?zat.meta.includes(e.keyCode):e.metaKey};function arr(e){const n=Object.keys(wse).reduce((r,i)=>wse[i](e)?r+1:r,0);return[16,17,18,91,92].includes(e.keyCode)?n:n+1}function srr(e,n,r=!0){if(!e.key||!n)return!1;const i=n.split(/\s+/);let o=0;for(const a of i){const s=wse[a],l=zat[a.toLowerCase()];(s&&s(e)||l&&l===e.keyCode)&&o++}return r?o===i.length&&arr(e)===i.length:o===i.length}function lrr(e,n){return n.some(r=>srr(e,r))}var RR=class extends Oa{onReady(){this.shortcuts.addHandlersIfNotFound({commandId:OC.Default.ZOOM_IN,shortcuts:["meta =","ctrl ="],execute:()=>{this.config.zoomin()}},{commandId:OC.Default.ZOOM_OUT,shortcuts:["meta -","ctrl -"],execute:()=>{this.config.zoomout()}}),this.toDispose.pushAll([this.listenPlaygroundEvent("keydown",e=>{!this.isFocused||e.target!==this.playgroundNode||this.shortcuts.shortcutsHandlers.some(n=>{if(lrr(e,n.shortcuts)&&(!n.isEnabled||n.isEnabled(e)))return n.execute(e),e.preventDefault(),!0})})])}};RR.type="ShortcutsLayer";kw([Ot(j0)],RR.prototype,"shortcuts",2);kw([Ot(dg)],RR.prototype,"selection",2);RR=kw([Pn()],RR);var Vat=pa({onBind:({bind:e})=>{e(j0).toSelf().inSingletonScope(),cme(e,Cse)},onInit:e=>{e.playground.registerLayer(RR)},contributionKeys:[Cse]});function crr({nodeManager:e,formManager:n,material:r}){const{setters:i=[],decorators:o=[],effects:a=[],validators:s=[],nodeErrorRender:l,nodePlaceholderRender:c}=r;l&&gJn(e,l),c&&mJn(e,c),i.forEach(u=>{n.registerAbilityExtension(tot.type,u)}),o.forEach(u=>{n.registerAbilityExtension(iot.type,u)}),a.forEach(u=>{n.registerAbilityExtension(nJn.type,u)}),s.forEach(u=>{n.registerAbilityExtension(rJn.type,u)})}var urr=pa({onInit(e,n){e.get(jo).registerNodeDatas(...vJn());const r=s=>new jJn(s);if(e.get(Lo).registerEntityData(ls,()=>({formModelFactory:r})),!n.materials)return;const o=e.get(zm),a=e.get(Ap);if(!o||!a)throw new Error("NodeCorePlugin Error: nodeManager or formManager not found");crr({nodeManager:o,formManager:a,material:n.materials})},onDispose(e){var n;(n=e.get(Ap))==null||n.dispose()},containerModules:uJn()}),drr=pa({onInit:(e,n)=>{n.onLanguageChange&&e.playground.toDispose.push(tF.onLanguageChange(n.onLanguageChange)),n.languages&&n.languages.forEach(r=>tF.addLanguage(r)),n.localLanguage&&tF.setLocalLanguage(n.localLanguage)}}),frr=Object.defineProperty,prr=Object.getOwnPropertyDescriptor,dN=(e,n,r,i)=>{for(var o=i>1?void 0:i?prr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&frr(n,r,o),o},gD=class{constructor(){var e;this.devTools=(e=window.__REDUX_DEVTOOLS_EXTENSION__)==null?void 0:e.connect({name:this.getName()})}init(){this.devTools&&(this.devTools.init(this.getState()),this.devTools.subscribe(e=>{var n;((n=e==null?void 0:e.payload)==null?void 0:n.type)==="COMMIT"&&this.devTools.init(this.getState())}),this.onInit())}send(e,n){this.devTools&&this.devTools.send(e,n||this.getState())}};dN([Zc()],gD.prototype,"init",1);gD=dN([Pn()],gD);var mD=class extends gD{getName(){return"@flowgram.ai/EntityManager"}getState(){return this.entityManager.storeState({configOnly:!1})}onInit(){this.entityManager.onEntityLifeCycleChange(e=>{this.send(`${e.type}/${e.entity.type}/${e.entity.id}`)})}};dN([Ot(Lo)],mD.prototype,"entityManager",2);mD=dN([Pn()],mD);var vD=class extends gD{constructor(){super(...arguments),this.scopes={}}getName(){return"@flowgram.ai/VariableEngine"}getState(){return{scopes:this.scopes,variables:this.variableEngine.globalVariableTable.variables}}getScopeState(e){return{ast:e==null?void 0:e.ast.toJSON(),output:e.output.variables,available:e.available.variables}}onInit(){this.variableEngine.onScopeChange(e=>{const{scope:n,type:r}=e;r==="delete"?delete this.scopes[String(n.id)]:this.scopes={...this.scopes,[n.id]:this.getScopeState(n)},this.send(`${r}/${String(n.id)}`)})}};dN([Ot(Km)],vD.prototype,"variableEngine",2);vD=dN([Pn()],vD);var hrr=pa({onBind({bind:e},n){const{enable:r}=n;r&&(e(mD).toSelf().inSingletonScope(),e(vD).toSelf().inSingletonScope())},onInit(e,n){const{enable:r,ecs:i=!0,variable:o=!1}=n;r&&(i&&e.get(mD),o&&e.get(vD))}}),grr=({children:e})=>{const n=Dme(),r=m.useMemo(()=>n.getData($h).public,[n]);return V.createElement(snr,{value:{scope:r}},e)},mrr=e=>n=>V.createElement(grr,null,V.createElement(e,{...n})),vrr=pa({onInit(e){e.get(zm).registerNodeRenderHoc(mrr)}});HJn("VariableProviderPlugin",{onInit:(e,n)=>{},effect:{arr:[{event:bot.onValueInitOrChange,effect:()=>{}}]},onDispose:(e,n)=>{}});var yrr=pa({onInit(e,n){const r=e.get(_d);r.registerReactComponent(kot.NODE_RENDER,n.renderDefaultNode||(()=>null)),n.renderTexts&&r.registerText(n.renderTexts),n.renderNodes&&Object.keys(n.renderNodes).forEach(i=>r.registerReactComponent(i,n.renderNodes[i]))}}),_rr=Object.defineProperty,brr=Object.getOwnPropertyDescriptor,Qa=(e,n,r,i)=>{for(var o=i>1?void 0:i?brr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&_rr(n,r,o),o},rve=Symbol("OperationContribution"),$C=class{constructor(){this._operationMetas=new Map,this.contributions=[]}init(){var e;for(const n of this.contributions)(e=n.registerOperationMeta)==null||e.call(n,this)}registerOperationMeta(e){return this._operationMetas.has(e.type)?(console.warn(`A operation meta ${e.type} is already registered.`),ao.NULL):new Ei(this._doRegisterOperationMetaMeta(e))}getOperationMeta(e){return this._operationMetas.get(e)}_doRegisterOperationMetaMeta(e){return this._operationMetas.set(e.type,e),{dispose:()=>{this._operationMetas.delete(e.type)}}}};Qa([C_(rve),ss()],$C.prototype,"contributions",2);Qa([Zc()],$C.prototype,"init",1);$C=Qa([Pn()],$C);var yD=class{};yD=Qa([Pn()],yD);var FC=class{constructor(){this.generateId=()=>yu(),this.getSnapshot=()=>""}};FC=Qa([Pn()],FC);var Uy=class{constructor(){this.applyEmitter=new Un,this.onApply=this.applyEmitter.event,this._toDispose=new Ei}init(){this._toDispose.push(this.applyEmitter)}applyOperation(e,n){const r=this.operationRegistry.getOperationMeta(e.type);if(!r)throw new Error(`Operation meta ${e.type} has not registered.`);let i;return n!=null&&n.noApply||(i=r.apply(e,this.context.source)),this.applyEmitter.fire(e),i}getOperationLabel(e){const n=this.operationRegistry.getOperationMeta(e.type);if(n&&n.getLabel)return n.getLabel(e,this.context.source)}getOperationDescription(e){const n=this.operationRegistry.getOperationMeta(e.type);if(n&&n.getDescription)return n.getDescription(e,this.context.source)}inverseOperations(e){return e.map(n=>this.inverseOperation(n)).reverse()}inverseOperation(e){const n=this.operationRegistry.getOperationMeta(e.type);if(!n)throw new Error(`Operation meta ${e.type} has not registered.`);return n.inverse(e)}dispose(){this._toDispose.dispose()}};Qa([Ot($C)],Uy.prototype,"operationRegistry",2);Qa([Ot(yD)],Uy.prototype,"context",2);Qa([Ot(FC)],Uy.prototype,"config",2);Qa([Zc()],Uy.prototype,"init",1);Uy=Qa([Pn()],Uy);var Lj=class{constructor(){this._undoing=!1,this._redoing=!1,this._limit=100,this.onChangeEmitter=new Un,this.onChange=this.onChangeEmitter.event,this._toDispose=new Ei,this._undoStack=[],this._redoStack=[],this._toDispose.push(this.onChangeEmitter)}setLimit(e){this._limit=e}pushElement(e){this._redoStack=[],this._stackPush(this._undoStack,e),this._toDispose.push(e),this._emitChange("push",e)}getUndoStack(){return this._undoStack}getRedoStack(){return this._redoStack}getLastElement(){return this._undoStack[this._undoStack.length-1]}async undo(){if(!this.canUndo()||this._undoing)return;this._undoing=!0;const e=this._undoStack.pop();try{await e.undo()}finally{this._stackPush(this._redoStack,e),this._emitChange("undo",e),this._undoing=!1}}async redo(){if(!this.canRedo()||this._redoing)return;this._redoing=!0;const e=this._redoStack.pop();try{await e.redo()}finally{this._stackPush(this._undoStack,e),this._emitChange("redo",e),this._redoing=!1}}canUndo(){return this._undoStack.length>0}canRedo(){return this._redoStack.length>0}canPush(){return!this._redoing&&!this._undoing}clear(){this.clearRedoStack(),this.clearUndoStack(),this._emitChange("clear")}clearRedoStack(){this._redoStack.forEach(e=>{e.dispose()}),this._redoStack=[]}clearUndoStack(){this._undoStack.forEach(e=>{e.dispose()}),this._undoStack=[]}dispose(){this.clear(),this._toDispose.dispose()}_stackPush(e,n){e.push(n),e.length>this._limit&&e.shift()}_emitChange(e,n){n?this.onChangeEmitter.fire({type:e,element:n}):this.onChangeEmitter.fire({type:e})}};Lj=Qa([Pn()],Lj);var o$e=class{constructor(e,n=[]){this._toDispose=new Ei,this._timestamp=Date.now(),this._operationService=e,this._operations=n.map(r=>this._operation(r)),this._id=e.config.generateId()}get id(){return this._id}getTimestamp(){return this._timestamp}pushOperation(e){const n=this._operation(e);return this._operations.push(n),n}getOperations(){return this._operations}getChangeOperations(e){return e==="undo"?this._operationService.inverseOperations(this._operations):this._operations}getFirstOperation(){return this._operations[0]}getLastOperation(){return this._operations[this._operations.length-1]}async undo(){const e=this._operationService.inverseOperations(this._operations);for(const n of e)await this._apply(n)}async redo(){for(const e of this._operations)await this._apply(e)}revert(e){let n=this._operations;e!=="undo"&&(n=this._operations.map(r=>this._inverse(r)).reverse());for(const r of n)this._apply(r)}_inverse(e){return this._operationService.inverseOperation(e)}async _apply(e){await this._operationService.applyOperation(e)}_operation(e){return{...e,value:Mn.cloneDeep(e.value),id:this._operationService.config.generateId()}}dispose(){this._toDispose.dispose()}},IR=class{constructor(){this._items=[],this.onChangeEmitter=new Un,this.onChange=this.onChangeEmitter.event,this._toDispose=new Ei,this.limit=100,this._toDispose.push(this.onChangeEmitter)}get items(){return this._items}add(e,n){const r=this._getHistoryItem(e,n);return this._items.unshift(r),this._items.length>this.limit&&this._items.pop(),this.onChangeEmitter.fire({type:"add",value:r,service:e}),r}findById(e){return this._items.find(n=>n.id===e)}changeByIndex(e,n,r){const i=this._getHistoryItem(n,r);this._items[e]=i,this.onChangeEmitter.fire({type:"update",value:i,service:n})}addOperation(e,n,r){const i=this._items.find(a=>a.id===n);if(!i){console.warn("no history item found");return}const o=this._getHistoryOperation(e,r);i.operations.push(o),this.onChangeEmitter.fire({type:"add_operation",value:{historyItem:i,operation:o},service:e})}updateOperation(e,n,r){const i=this._items.find(s=>s.id===n);if(!i){console.warn("no history item found");return}const o=i.operations.findIndex(s=>s.id===s.id);if(o<0){console.warn("no operation found");return}const a=this._getHistoryOperation(e,r);i.operations.splice(o,1,a),this.onChangeEmitter.fire({type:"update_operation",value:{historyItem:i,operation:a},service:e})}clear(){this._items=[]}dispose(){this._items=[],this._toDispose.dispose()}_getHistoryItem(e,n){return{...n,uri:e.context.uri,time:IR.dateFormat(n.timestamp),operations:n.operations.map(r=>this._getHistoryOperation(e,r,n.type!=="push"))}}_getHistoryOperation(e,n,r=!1){let i;if(r)i=this.historyConfig.generateId();else{const o=n.id;if(!o)throw new Error("no operation id found");i=o}return{...Mn.cloneDeep(n),id:i,label:e.operationService.getOperationLabel(n),description:e.operationService.getOperationDescription(n),timestamp:Date.now()}}static dateFormat(e){return new Date(e).toLocaleString()}};Qa([Ot(FC)],IR.prototype,"historyConfig",2);IR=Qa([Pn()],IR);var sy=class{constructor(){this._historyServices=new Map,this._toDispose=new Ei}registerHistoryService(e){const n=new Ei;n.pushAll([e.undoRedoService.onChange(r=>{if(r.type==="clear")return;const{type:i,element:o}=r,a=o.getChangeOperations(i),s={id:i==="push"?o.id:this.historyConfig.generateId(),type:i,uri:e.context.uri,operations:a,timestamp:Date.now()};this.historyStack.add(e,s)}),e.onMerge(r=>{this._handleMerge(e,r)})]),this._historyServices.set(e,n),this._toDispose.push(e.onWillDispose(()=>{this.unregisterHistoryService(e)}))}unregisterHistoryService(e){const n=this._historyServices.get(e);n&&(n.dispose(),this._historyServices.delete(e))}getHistoryServiceByURI(e){for(const n of this._historyServices.keys())if(n.context.uri===e)return n}getFirstHistoryService(){for(const e of this._historyServices.keys())return e}dispose(){this._toDispose.dispose(),this.historyStack.dispose(),this._historyServices.forEach(e=>e.dispose()),this._historyServices.clear()}_handleMerge(e,n){const{element:r,operation:i}=n.value;if(this.historyStack.findById(r.id)){if(!i.id){console.warn("no operation id found");return}n.type==="UPDATE"&&this.historyStack.updateOperation(e,r.id,i),n.type==="ADD"&&this.historyStack.addOperation(e,r.id,i)}}};Qa([Ot(IR)],sy.prototype,"historyStack",2);Qa([Ot(FC)],sy.prototype,"historyConfig",2);sy=Qa([Pn()],sy);var qa=class{constructor(){this._toDispose=new Ei,this._transacting=!1,this._transactOperation=null,this._locked=!1,this._willDisposeEmitter=new Un,this._mergeEmitter=new Un,this.onWillDispose=this._willDisposeEmitter.event,this.onMerge=this._mergeEmitter.event}get onApply(){return this.operationService.onApply}init(){this._toDispose.push(this._willDisposeEmitter),this._toDispose.push(this._mergeEmitter)}start(){this._locked=!1}stop(){this._locked=!0}limit(e){this.undoRedoService.setLimit(e)}startTransaction(){if(this._transacting)return;this._transacting=!0;const e=new o$e(this.operationService,[]);this._transactOperation=e}endTransaction(){const e=this._transactOperation;e&&(e.getOperations().length!==0&&this._pushStackOperation(e),this._transactOperation=null,this._transacting=!1)}transact(e){this._transacting||(this.startTransaction(),e(),this.endTransaction())}pushOperation(e,n){if(!this._canPush())return;const r=this._transactOperation||this.undoRedoService.getLastElement(),i=this.operationRegistry.getOperationMeta(e.type);if(!i)throw new Error(`Operation meta ${e.type} has not registered.`);if(i.shouldSave&&!i.shouldSave(e))return i.apply(e,this.context.source);const o=this.operationService.applyOperation(e,{noApply:n==null?void 0:n.noApply});i.getURI&&!e.uri&&(e.uri=i.getURI(e,this.context.source));const a=this._shouldMerge(e,r,i);if(a)if(typeof a=="object"){const s=r.getLastOperation();s.value=a.value,this._mergeEmitter.fire({type:"UPDATE",value:{element:r,operation:s,value:a.value}})}else{const s=r.pushOperation(e);this._mergeEmitter.fire({type:"ADD",value:{element:r,operation:s}})}else{const s=new o$e(this.operationService,[e]);this._pushStackOperation(s)}return o}getHistoryOperations(){return this.historyManager.historyStack.items.reverse().map(e=>e.operations.map(n=>({...Mn.pick(n,["type","value"]),label:n.label||n.type}))).flat()}async undo(){await this.undoRedoService.undo()}async redo(){await this.undoRedoService.redo()}canUndo(){return this.undoRedoService.canUndo()}canRedo(){return this.undoRedoService.canRedo()}getSnapshot(){return this.config.getSnapshot()}getRecords(){throw new Error("Method not implemented.")}restore(e){throw new Error("Method not implemented.")}clear(){this.undoRedoService.clear()}dispose(){this._willDisposeEmitter.fire(this),this._toDispose.dispose()}_canPush(){return this._locked?!1:this.undoRedoService.canPush()}_pushStackOperation(e){this.undoRedoService.pushElement(e),this.undoRedoService.clearRedoStack()}_shouldMerge(e,n,r){return n?this._transacting?!0:r.shouldMerge&&r.shouldMerge(e,n.getLastOperation(),n):!1}};Qa([Ot(Lj)],qa.prototype,"undoRedoService",2);Qa([Ot($C)],qa.prototype,"operationRegistry",2);Qa([Ot(Uy)],qa.prototype,"operationService",2);Qa([Ot(yD)],qa.prototype,"context",2);Qa([Ot(FC)],qa.prototype,"config",2);Qa([Ot(sy)],qa.prototype,"historyManager",2);Qa([Zc()],qa.prototype,"init",1);qa=Qa([Pn()],qa);var ive=new Jp((e,n,r,i,o,a,s)=>{e($C).toSelf().inSingletonScope(),e(Uy).toSelf().inSingletonScope(),e(Lj).toSelf().inSingletonScope(),e(qa).toSelf().inSingletonScope(),e(yD).toSelf().inSingletonScope(),e(sy).toSelf().inSingletonScope(),e(IR).toSelf().inSingletonScope(),e(FC).toSelf().inSingletonScope(),a(qa,(l,c)=>{var d,f,p,h;let u;return(f=(d=l.container)==null?void 0:d.parent)!=null&&f.isBound(sy)?u=(h=(p=l.container)==null?void 0:p.parent)==null?void 0:h.get(sy):u=l.container.get(sy),u&&(c.historyManager=u,u.registerHistoryService(c)),c})});pa({onInit:(e,n)=>{n.onApply&&e.get(Uy).onApply(n.onApply.bind(null,e))},containerModules:[ive]});var Srr=Object.defineProperty,Err=Object.getOwnPropertyDescriptor,Crr=(e,n,r,i)=>{for(var o=i>1?void 0:i?Err(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Srr(n,r,o),o};function Gat(e){var r;if(!e)return;const n=(r=e==null?void 0:e.getData(ls))==null?void 0:r.getFormModel();if(!(!n||!DJn(n)))return n}function wrr(e,n,r){var i,o,a,s,l,c;return n&&Date.now()-r.getTimestamp()<500?e.type===n.type&&((i=e.value)==null?void 0:i.id)===((o=n.value)==null?void 0:o.id)&&((a=e.value)==null?void 0:a.path)===((s=n.value)==null?void 0:s.path)?{type:e.type,value:{...e.value,value:(l=e.value)==null?void 0:l.value,oldValue:(c=n.value)==null?void 0:c.oldValue}}:!0:!1}function xrr(e,n,r){e.onFormValuesChange(i=>{r.pushOperation({type:"changeFormValues",value:{id:n.id,path:i.name,value:Mn.get(i.values,i.name),oldValue:Mn.get(i.prevValues,i.name)}},{noApply:!0})})}var Trr={type:"changeFormValues",inverse:e=>({...e,value:{...e.value,value:e.value.oldValue,oldValue:e.value.value}}),apply:({value:{value:e,path:n,id:r}},i)=>{const o=i.get(jo),a=Gat(o.getNode(r));a&&a.setValueIn(n,e)},shouldMerge:wrr},Orr=[Trr],xse=class{registerOperationMeta(e){Orr.forEach(n=>{e.registerOperationMeta(n)})}};xse=Crr([Pn()],xse);var Rrr=pa({onBind:({bind:e})=>{XL(e,xse,[rve])},onInit:(e,n)=>{const r=e.get(jo),i=e.get(qa);r.onNodeCreate(({node:o})=>{const a=Gat(o);a&&xrr(a,o,i)})},containerModules:[ive]}),Irr=Object.defineProperty,Nrr=(e,n,r,i)=>{for(var o=void 0,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=s(n,r,o)||o);return o&&Irr(n,r,o),o},Mrr="gedit-background-pattern-",a$e=20,Prr=1,Arr=0,ove=class extends Oa{constructor(){super(...arguments),this._patternId=`${Mrr}${Arr++}`,this.node=Tr.createDivWithClass("gedit-flow-background-layer"),this.grid=document.createElement("div")}get zoom(){return this.config.finalScale}onReady(){const{firstChild:e}=this.pipelineNode;this.pipelineNode.insertBefore(this.node,e),this.playgroundConfigEntity.updateConfig({minZoom:.1,maxZoom:2}),this.grid.style.zIndex="-1",this.grid.style.position="relative",this.node.appendChild(this.grid),this.grid.className="gedit-grid-svg"}getScaleUnit(){const{zoom:e}=this;return{realSize:a$e,renderSize:Math.round(a$e*e*100)/100,zoom:e}}autorun(){const e=this.playgroundConfigEntity.config,n=this.getScaleUnit(),r=n.renderSize*10,i=e.width+r*2,o=e.height+r*2,{scrollX:a}=e,{scrollY:s}=e,l=this.getScrollDelta(a,r),c=this.getScrollDelta(s,r);Tr.setStyle(this.node,{left:a-u5,top:s-u5}),this.drawGrid(n),this.setSVGStyle(this.grid,{width:i,height:o,left:u5-l-r,top:u5-c-r})}drawGrid(e){const n=e.renderSize;if(!this.grid)return;const r=Prr*this.zoom,i=`
<svg width="100%" height="100%">
<pattern id="${this._patternId}" width="${n}" height="${n}" patternUnits="userSpaceOnUse">
<circle
cx="${r}"
cy="${r}"
r="${r}"
stroke="#eceeef"
fill-opacity="0.5"
/>
</pattern>
<rect width="100%" height="100%" fill="url(#${this._patternId})"/>
</svg>`;this.grid.innerHTML=i}setSVGStyle(e,n){e&&(e.style.width=`${n.width}px`,e.style.height=`${n.height}px`,e.style.left=`${n.left}px`,e.style.top=`${n.top}px`)}getScrollDelta(e,n){return e>=0?e%n:n-Math.abs(e)%n}};ove.type="WorkflowBackgroundLayer";Nrr([zo(da)],ove.prototype,"playgroundConfigEntity");var Drr=pa({onInit:(e,n)=>{e.playground.registerLayer(ove,n)}}),krr=Object.defineProperty,Lrr=Object.getOwnPropertyDescriptor,$rr=(e,n,r,i)=>{for(var o=i>1?void 0:i?Lrr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&krr(n,r,o),o};function Wat(e,n=[]){return r=>(n=n.slice(),(e.background||e.background===void 0)&&n.push(Drr(e.background||{})),e.shortcuts&&n.push(Vat({registerShortcuts:i=>e.shortcuts(i,r)})),e.plugins&&n.push(...e.plugins(r)),n.push(LV({onBind:i=>{var o;(o=e.onBind)==null||o.call(e,i)},onInit:i=>{const o=i.get(oN);e.playground&&(e.playground.autoFocus!==void 0&&(o.autoFocus=e.playground.autoFocus),e.playground.autoResize!==void 0&&(o.autoResize=e.playground.autoResize)),o.autoFocus=!1,i.playground.registerLayer(_R,e.playground),e.layers&&i.playground.registerLayers(...e.layers),e.onInit&&e.onInit(i)},onReady(i){e.onReady&&e.onReady(i)},onAllLayersRendered(){e.onAllLayersRendered&&e.onAllLayersRendered(r)},onDispose(){e.onDispose&&e.onDispose(r)},containerModules:e.containerModules||[]})),n)}var $j=class extends Oa{constructor(){super(...arguments),this.node=Tr.createDivWithClass("gedit-playground-layer gedit-playground-content-layer")}onZoom(e){this.node.style.transform=`scale(${e})`}onReady(){this.node.style.left="0px",this.node.style.top="0px"}updateOptions(e){this.options=e,this.render()}render(){return V.createElement("div",{className:this.options.className,style:{position:"absolute",...this.options.style}},this.options.children)}};$j.type="PlaygroundContentLayer";$j=$rr([Pn()],$j);m.forwardRef(function(n,r){const{parentContainer:i,children:o,...a}=n,s=m.useMemo(()=>LV({onInit(c){c.playground.registerLayer($j)}}),[]),l=m.useMemo(()=>Wat(a,[s]),[]);return V.createElement(Zit,{ref:r,plugins:l,parentContainer:i},V.createElement(kme,null,o))});var Frr=Object.defineProperty,Brr=Object.getOwnPropertyDescriptor,Lw=(e,n,r,i)=>{for(var o=i>1?void 0:i?Brr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Frr(n,r,o),o},Yat=Symbol("EditorOptions"),Fj;(e=>{e.DEFAULT={background:{},fromNodeJSON(n,r){var o,a,s;const i=n.getData(ls);if(!i)r.data&&n.updateExtInfo(r.data);else{const l=(a=(o=n.getService(Yat).nodeEngine)==null?void 0:o.createDefaultFormMeta)==null?void 0:a.call(o,n),c=((s=n.getNodeRegistry())==null?void 0:s.formMeta)||l;c&&i.createForm(c,r.data)}},toNodeJSON(n){const r={};let i;return n.document.traverse(o=>{var f;if(o.id.startsWith("$"))return;const s=o.getData(ls);let l=s&&s.formModel&&s.formModel.initialized?s.toJSON():void 0;const c={id:o.id,type:o.flowNodeType,data:s?l:o.getExtInfo(),blocks:[]};i||(i=c);let{parent:u}=o;u&&u.id.startsWith("$")&&(u=u.originParent);const d=u?r[u.id]:void 0;d&&((f=d.blocks)==null||f.push(c)),r[o.id]=c},n),i}}})(Fj||(Fj={}));var s$e=e=>(n,r)=>{const i=e.filter(Boolean);return i.length?i.reduce((o,a)=>a(n,o),r):r},qat="flowide-highlight",jrr=`
@keyframes flowide-fade {
from {
opacity: 1.0;
}
to {
opacity: 0;
}
}
@-webkit-keyframes flowide-fade {
from {
opacity: 1.0;
}
to {
opacity: 0;
}
}
.${qat} {
background-color: rgba(238, 245, 40, 0.5);
animation: flowide-fade 2s 1 forwards;
-webkit-animation: flowide-fade 2s 1 forwards;
}
`,Xb;function Urr(){Xb||(Xb=document.createElement("style"),Xb.innerHTML=jrr,document.head.appendChild(Xb))}function Hrr(){Xb==null||Xb.remove(),Xb=void 0}var zrr=0;function Vrr(e,n){const r=e.formModel.flowNodeEntity.getData(ra).node,i=e.domRef.current;if(!i)return;const o=document.createElement("div"),{padding:a=zrr,overlayClassName:s}=n||{};o.style.position="absolute",o.style.top="0",o.style.left="0",o.style.width="100%",o.style.height="100%",o.style.zIndex="9999",r.appendChild(o);const l=r.getBoundingClientRect(),c=i.getBoundingClientRect();return o.style.top=c.top-l.top-a+"px",o.style.left=c.left-l.left-a+"px",o.style.width=c.width+a*2+"px",o.style.height=c.height+a*2+"px",o.className=s||qat,setTimeout(()=>{o.remove()},2e3),o}var _D=class{highlightNodeFormItem(e,n){this.previousOverlay=Vrr(e,n)}focusNodeFormItem(e,n){const r=e.formModel.flowNodeEntity,{canvas:i={},highlight:o}=n||{};this.previousOverlay&&(this.previousOverlay.remove(),this.previousOverlay=void 0);const a=this.playground.scrollToView({entities:[r],scrollToCenter:!0,...i}).then(()=>{!e||!o||this.currentPromise!==a||this.highlightNodeFormItem(e,typeof o=="boolean"?{}:o)});return this.currentPromise=a,this.currentPromise}};Lw([Ot(_u)],_D.prototype,"playground",2);_D=Lw([Pn()],_D);var bD=class{};Lw([Ot(_D)],bD.prototype,"nodeFocusService",2);bD=Lw([Pn()],bD);var Grr=pa({onInit(){Urr()},onDispose(){Hrr()}}),Wrr=pa({onBind({bind:e}){e(_D).toSelf().inSingletonScope(),e(bD).toSelf().inSingletonScope()}}),Yrr=()=>[Grr({}),Wrr({})],SD=class{focusNodeFormItem(e,n){this.nodeClient.nodeFocusService.focusNodeFormItem(e,n)}focusNode(e,n){this.playground.scrollToView({entities:[e],...n})}};Lw([Ot(bD)],SD.prototype,"nodeClient",2);Lw([Ot(_u)],SD.prototype,"playground",2);SD=Lw([Pn()],SD);var qrr=pa({onBind({bind:e}){e(SD).toSelf().inSingletonScope()}}),Krr=()=>[...Yrr(),qrr({})];function Xrr(e,n=[]){return r=>{var o,a,s;e={...Fj.DEFAULT,...e},r.container.bind(Yat).toConstantValue(e),e.i18n&&n.push(drr(e.i18n)),n.push(...Krr()),(o=e.reduxDevTool)!=null&&o.enable&&n.push(hrr(e.reduxDevTool));const i=[rer,zer];return n.push(yrr(e.materials||{})),e.nodeEngine&&e.nodeEngine.enable!==!1&&(n.push(urr({materials:e.nodeEngine.materials})),(a=e.variableEngine)!=null&&a.enable&&n.push(vrr({})),(s=e.history)!=null&&s.enable&&n.push(Rrr({}))),n.push(LV({onInit:l=>{e.nodeRegistries&&l.document.registerFlowNodes(...e.nodeRegistries),e.constants&&(l.document.options.constants=e.constants),e.formatNodeLines&&(l.document.options.formatNodeLines=s$e([l.document.options.formatNodeLines,e.formatNodeLines])),e.formatNodeLabels&&(l.document.options.formatNodeLabels=s$e([l.document.options.formatNodeLabels,e.formatNodeLabels])),e.getNodeDefaultRegistry&&(l.document.options.getNodeDefaultRegistry=e.getNodeDefaultRegistry),l.get(_d).init()},onReady(l){e.initialData&&l.document.fromJSON(e.initialData),e.readonly&&(l.playground.config.readonly=e.readonly),l.document.load().then(()=>{e.onLoad&&e.onLoad(l)})},onDispose(l){l.document.dispose()},containerModules:i})),n}}var Qrr=Object.defineProperty,Zrr=Object.getOwnPropertyDescriptor,Al=(e,n,r,i)=>{for(var o=i>1?void 0:i?Zrr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Qrr(n,r,o),o},NR=class{constructor(){this._entityDataValues=new Map,this._toDispose=new Ei}addEntityData(e){this._entityDataValues.set(e,Mn.cloneDeep(e.toJSON())),this._toDispose.push(e.onWillChange(n=>{const r=n.toJSON(),i=this._entityDataValues.get(e);Mn.isEqual(r,i)||this._entityDataValues.set(e,Mn.cloneDeep(r))}))}getValue(e){return this._entityDataValues.get(e)}setValue(e,n){return this._entityDataValues.set(e,n)}dispose(){this._entityDataValues.clear(),this._toDispose.dispose()}};NR=Al([Pn()],NR);var ED=(e=>(e.addLine="addLine",e.deleteLine="deleteLine",e.moveNode="moveNode",e.addNode="addNode",e.deleteNode="deleteNode",e.changeNodeData="changeNodeData",e.resetLayout="resetLayout",e.dragNodes="dragNodes",e.moveChildNodes="moveChildNodes",e))(ED||{}),CD=class{handle(e){e.type==="onDragEnd"&&this._dragNode(e)}_dragNode(e){this._historyService.pushOperation({type:"dragNodes",value:{ids:e.nodes.map(n=>n.id),value:e.nodes.map(n=>{const{x:r,y:i}=n.getData(Ui).position;return{x:r,y:i}}),oldValue:e.startPositions}},{noApply:!0})}};Al([Ot(qa)],CD.prototype,"_historyService",2);CD=Al([Pn()],CD);var Cu=class{constructor(){this.enable=!1,this.nodeToJSON=e=>e.toJSON(),this.getNodeLabelById=e=>e,this.getNodeLabel=e=>e.id,this.getBlockLabel=e=>e.id,this.getNodeURI=e=>`node:${e}`,this.getLineURI=e=>`line:${e}`}init(e,n){this.enable=!!(n!=null&&n.enable),n.nodeToJSON&&(this.nodeToJSON=n.nodeToJSON(e)),n.getNodeLabelById&&(this.getNodeLabelById=n.getNodeLabelById(e)),n.getNodeLabel&&(this.getNodeLabel=n.getNodeLabel(e)),n.getBlockLabel&&(this.getBlockLabel=n.getBlockLabel(e)),n.getNodeURI&&(this.getNodeURI=n.getNodeURI(e)),n.getLineURI&&(this.getLineURI=n.getLineURI(e))}};Cu=Al([Pn()],Cu);var U0=class{handle(e){const{path:n,value:r,initialized:i,node:o}=e,a=o.getData(ls),s=this._entityManager.getValue(a),l=n.split("/").filter(Boolean).join("."),c=l?Mn.get(s,l):s;if(!Mn.isEqual(r,c)){if(i){let u=n,d=Mn.cloneDeep(r),f=c;if(n!=="/"){const p=Mn.cloneDeep(s);Mn.set(p,l,r),u=n.split("/").filter(Boolean)[0],d=Mn.get(p,u),f=Mn.get(s,u)}this._historyService.pushOperation({type:"changeNodeData",value:{id:o.id,path:u,value:d,oldValue:f},uri:this._config.getNodeURI(o.id)},{noApply:!0})}l?Mn.set(s,l,Mn.cloneDeep(r)):this._entityManager.setValue(a,Mn.cloneDeep(r))}}};Al([Ot(qa)],U0.prototype,"_historyService",2);Al([Ot(ei)],U0.prototype,"document",2);Al([Ot(NR)],U0.prototype,"_entityManager",2);Al([Ot(Cu)],U0.prototype,"_config",2);U0=Al([Pn()],U0);var Jrr={type:cN.DELETE_NODE,toOperation:(e,n)=>{var l;const r=n.get(Cu),i=n.get(ei),o=e.entity,a=i.toNodeJSON(o),s=(l=o.parent)==null?void 0:l.id;return{type:"deleteNode",value:{node:a,parentID:s},uri:r.getNodeURI(o.id)}}},eir={type:cN.DELETE_LINE,toOperation:(e,n)=>{const r=n.get(Cu),i=e.entity;return{type:"deleteLine",value:{from:i.info.from,to:i.info.to||"",fromPort:i.info.fromPort||"",toPort:i.info.toPort||"",id:i.id},uri:r.getNodeURI(i.id)}}},tir={type:cN.ADD_NODE,toOperation:(e,n)=>{var l;const r=n.get(Cu),i=n.get(ei),o=e.entity,a=(l=o.parent)==null?void 0:l.id;return{type:"addNode",value:{node:i.toNodeJSON(o),parentID:a},uri:r.getNodeURI(o.id)}}},nir={type:cN.ADD_LINE,toOperation:(e,n)=>{const r=n.get(Cu),i=e.entity;return{type:"addLine",value:{from:i.info.from,to:i.info.to||"",fromPort:i.info.fromPort||"",toPort:i.info.toPort||"",id:i.id},uri:r.getLineURI(i.id)}}},rir=[nir,eir,tir,Jrr],wD=class{handle(e,n){if(!this._historyService.undoRedoService.canPush())return;const r=rir.find(o=>o.type===e.type);if(!r)return;const i=r.toOperation(e,n);i&&this._historyService.pushOperation(i,{noApply:!0})}};Al([Ot(qa)],wD.prototype,"_historyService",2);wD=Al([Pn()],wD);var DS={shouldMerge:(e,n,r)=>n?Date.now()-r.getTimestamp()<500:!1},iir={...DS,type:"resetLayout",inverse:e=>({...e,value:{...e.value,value:e.value.oldValue,oldValue:e.value.value}}),apply:async(e,n)=>{await n.get(jy).layoutToPositions(e.value.ids,e.value.value)},shouldMerge:()=>!1},oir={...DS,type:jme.moveChildNodes,inverse:e=>({...e,value:{...e.value,fromIndex:e.value.toIndex,toIndex:e.value.fromIndex,fromParentId:e.value.toParentId,toParentId:e.value.fromParentId}}),apply:(e,n)=>{const r=n.get(ei);r.moveChildNodes(e.value);const i=r.getNode(e.value.fromParentId);requestAnimationFrame(()=>{i&&i.flowNodeType!==Fo.ROOT&&i.getData(Ui).fireChange()})}},air={...DS,type:"dragNodes",inverse:e=>({...e,value:{...e.value,value:e.value.oldValue,oldValue:e.value.value}}),apply:(e,n)=>{e.value.ids.forEach((r,i)=>{const o=n.get(ei),a=o.getNode(r);if(!a)return;const s=a.getData(Ui),l=e.value.value[i];s.update({position:{x:l.x,y:l.y}}),o.layout.updateAffectedTransform(a)})}},sir={...DS,type:"deleteNode",inverse:e=>({...e,type:"addNode"}),apply:(e,n)=>{const i=n.get(ei).getNode(e.value.node.id);i&&i.dispose()},getLabel:(e,n)=>`Delete Node ${n.get(Cu).getNodeLabel(e.value.node)}`,getDescription:(e,n)=>{var o;let i=`Delete Node ${n.get(Cu).getNodeLabel(e.value.node)}`;return(o=e.value.node.meta)!=null&&o.position&&(i+=` at ${e.value.node.meta.position.x},${e.value.node.meta.position.y}`),i}},lir={...DS,type:"deleteLine",inverse:e=>({...e,type:"addLine"}),apply:(e,n)=>{n.get(ei).removeNode(e.value.id)},getLabel:(e,n)=>"Delete Line",getDescription:(e,n)=>{const r=n.get(Cu),{value:i}=e;if(!i.from||!i.to)return"Delete Line";const o=r.getNodeLabelById(i.from),a=r.getNodeLabelById(i.to);return`Delete Line from ${o} to ${a}`}},cir={...DS,type:"changeNodeData",inverse:e=>({...e,value:{...e.value,value:e.value.oldValue,oldValue:e.value.value}}),apply:(e,n)=>{const i=n.get(ei).getNode(e.value.id);if(!i)return;const o=i.getData(ls);if(!o)return;let{path:a}=e.value;a.endsWith("/")&&a!=="/"&&(a=a.slice(0,-1)),a.startsWith("/")||(a=`/${a}`);const s=o.formModel.getFormItemByPath(a);s&&(s.value=e.value.value)},shouldMerge:(e,n,r)=>{var i,o;return n&&Date.now()-r.getTimestamp()<500?e.type===n.type&&e.value.id===n.value.id&&((i=e.value)==null?void 0:i.path)===((o=n.value)==null?void 0:o.path)?{type:e.type,value:{...e.value,value:e.value.value,oldValue:n.value.oldValue}}:!0:!1}},uir={...DS,type:"addNode",inverse:e=>({...e,type:"deleteNode"}),apply:async(e,n)=>{await n.get(ei).createWorkflowNode(Mn.cloneDeep(e.value.node),!1,e.value.parentID)},getLabel:(e,n)=>`Create Node ${n.get(Cu).getNodeLabel(e.value.node)}`,getDescription:(e,n)=>{var o;let i=`Create Node ${n.get(Cu).getNodeLabel(e.value.node)}`;return(o=e.value.node.meta)!=null&&o.position&&(i+=` at ${e.value.node.meta.position.x},${e.value.node.meta.position.y}`),i}},dir={...DS,type:"addLine",inverse:e=>({...e,type:"deleteLine"}),apply:(e,n)=>{n.get(Ql).createLine({...e.value,key:e.value.id})},getLabel:(e,n)=>"Create Line",getDescription:(e,n)=>{const r=n.get(Cu),{value:i}=e;if(!i.from||!i.to)return"Create Line";const o=r.getNodeLabelById(i.from),a=r.getNodeLabelById(i.to);return`Create Line from ${o} to ${a}`}},fir=[dir,lir,uir,sir,cir,iir,air,oir],Tse=class{registerOperationMeta(e){fir.forEach(n=>{e.registerOperationMeta(n)})}};Tse=Al([Pn()],Tse);var Qm=class{constructor(){this._toDispose=new Ei}onInit(e,n){const r=e.get(ei),i=e.get(qa),o=e.get(Ya),a=e.get(jy);n!=null&&n.limit&&i.limit(n.limit),i.context.source=e,this._toDispose.pushAll([o.onNodesDrag(async s=>{s.type==="onDragEnd"&&this._dragNodesHandler.handle(s)}),r.onNodeCreate(({node:s,data:l})=>{const c=s.getData(qb);c&&this._entityManager.addEntityData(c)}),this._formManager?this._formManager.onFormModelWillInit(({model:s,data:l})=>{const c=s.flowNodeEntity,u=c.getData(ls);u&&(this._entityManager.setValue(u,Mn.cloneDeep(l)),this._toDispose.push(u.onDetailChange(d=>{this._changeNodeDataHandler.handle({...d,node:c})})))}):ao.NULL,r.onContentChange(s=>{this._changeContentHandler.handle(s,e)}),r.onReload(s=>{i.clear()}),a.onResetLayout(s=>{i.pushOperation({type:"resetLayout",value:{ids:s.nodeIds,value:s.positionMap,oldValue:s.oldPositionMap}},{noApply:!0})}),this._operationService.onNodeMove(({node:s,fromParent:l,fromIndex:c,toParent:u,toIndex:d})=>{i.pushOperation({type:jme.moveChildNodes,value:{fromParentId:l.id,fromIndex:c,nodeIds:[s.id],toParentId:u.id,toIndex:d}},{noApply:!0})}),this._operationService.onNodePostionUpdate(s=>{const l={ids:[s.node.id],value:[s.newPosition],oldValue:[s.oldPosition]};i.pushOperation({type:"dragNodes",value:l},{noApply:!0})})])}dispose(){this._entityManager.dispose(),this._toDispose.dispose()}};Al([Ot(CD)],Qm.prototype,"_dragNodesHandler",2);Al([Ot(U0)],Qm.prototype,"_changeNodeDataHandler",2);Al([Ot(wD)],Qm.prototype,"_changeContentHandler",2);Al([Ot(NR)],Qm.prototype,"_entityManager",2);Al([Ot(Ap),ss()],Qm.prototype,"_formManager",2);Al([Ot(zV)],Qm.prototype,"_operationService",2);Qm=Al([Pn()],Qm);var pir=pa({onBind:({bind:e})=>{XL(e,Tse,[rve]),e(Cu).toSelf().inSingletonScope(),e(Qm).toSelf().inSingletonScope(),e(NR).toSelf().inSingletonScope(),e(CD).toSelf().inSingletonScope(),e(U0).toSelf().inSingletonScope(),e(wD).toSelf().inSingletonScope()},onInit(e,n){e.get(Cu).init(e,n),n.enable&&e.get(Qm).onInit(e,n)},onDispose(e){e.get(NR).dispose()},containerModules:[ive]}),hir=pa({onInit(e,n){n.enable!==!1&&(e.playground.registerLayer(Ym,n),e.playground.registerLayer(Wm,{canSelect:n.canSelect}))}}),gir=Object.defineProperty,mir=Object.getOwnPropertyDescriptor,$w=(e,n,r,i)=>{for(var o=i>1?void 0:i?mir(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&gir(n,r,o),o},Kat=class{compute(e){this.clearCache();const{root:n,nodes:r,context:i}=e;return this.context=i,this.nodeIndexes=this.computeNodeIndexesMap(r),this.topLevel=this.computeTopLevel(r),this.maxLevel=this.topLevel*2,this.layerHandler(n.blocks),{nodeLevel:this.nodeLevel,lineLevel:this.lineLevel,topLevel:this.topLevel,maxLevel:this.maxLevel}}clearCache(){this.currentLevel=0,this.topLevel=0,this.maxLevel=0,this.nodeIndexes=new Map,this.nodeLevel=new Map,this.lineLevel=new Map}computeNodeIndexesMap(e){const n=new Map;return e.forEach((r,i)=>{n.set(r.id,i)}),n}computeTopLevel(e){const n=e.filter(i=>i.id!==Fo.ROOT),r=n.reduce((i,o)=>o.blocks.length>0?i+1:i,0);return n.length+r+1}layerHandler(e,n=!1){const r=this.sortNodes(e);this.getNodesAllLines(r).forEach(o=>{o.isDrawing||this.context.hoveredEntityID===o.id||this.context.selectedIDs.includes(o.id)?this.lineLevel.set(o.id,this.maxLevel):this.lineLevel.set(o.id,this.getLevel(n))}),this.levelIncrease(),r.forEach(o=>{const a=this.context.selectedIDs.includes(o.id);a?this.nodeLevel.set(o.id,this.topLevel):this.nodeLevel.set(o.id,this.getLevel(n)),this.levelIncrease(),o.blocks.length>0&&this.layerHandler(o.blocks,n||a)})}sortNodes(e){return e.sort((n,r)=>{const i=this.nodeIndexes.get(n.id),o=this.nodeIndexes.get(r.id);return i===void 0||o===void 0?0:i-o})}getNodesAllLines(e){return e.map(i=>{const o=i.getData(Cm),a=o.outputLines.filter(Boolean),s=o.inputLines.filter(Boolean);return[...a,...s]}).flat().filter(i=>this.lineLevel.get(i.id)===void 0||this.isHigherFirstLine(i))}isHigherFirstLine(e){var n,r;return((n=e.to)==null?void 0:n.parent)===e.from||((r=e.from)==null?void 0:r.parent)===e.to}getLevel(e){return e?this.topLevel+this.currentLevel:this.currentLevel}levelIncrease(){this.currentLevel+=1}},Xat=(e=>(e.Line="line",e.Node="node",e))(Xat||{}),ave=(e=>(e.Line="line",e.Node="node",e))(ave||{}),Qat={line:0,node:1},Zat=8,Jat=2,est=Object.keys(ave).length,tst=Jat*2,vir=Zat+tst*est,F1={startIndex:Zat,allowLevel:Jat,levelIndexStep:est,maxLevel:tst,maxIndex:vir},mu=class{constructor(){this.node=Tr.createDivWithClass("gedit-playground-layer gedit-flow-render-layer"),this.disposers=[],this.compute=Mn.debounce(this._compute,10)}init(){this.pipelineRenderer.node.appendChild(this.node),this.mountListener()}ready(){this.compute()}dispose(){this.disposers.forEach(e=>e.dispose())}_compute(){const e=this.context,n=new Kat,{nodeLevel:r,lineLevel:i}=n.compute({root:this.document.root,nodes:this.nodes,context:e});this.nodes.forEach(o=>{const a=r.get(o.id),s=o.getData(ra),l=s.node;if(l.style.position="absolute",a===void 0){l.style.zIndex="auto",s.stackIndex=0;return}const c=F1.startIndex+a;l.style.zIndex=String(c),s.stackIndex=c}),this.lines.forEach(o=>{const a=i.get(o.id),s=o.node;if(s.style.position="absolute",a===void 0){s.style.zIndex="auto";return}s.style.zIndex=String(F1.startIndex+a)})}get nodes(){return this.entityManager.getEntities(Dp)}get lines(){return this.entityManager.getEntities(Zd)}get context(){var e;return{hoveredEntity:this.hoverService.hoveredNode,hoveredEntityID:(e=this.hoverService.hoveredNode)==null?void 0:e.id,selectedEntities:this.selectService.selection,selectedIDs:this.selectService.selection.map(n=>n.id)}}mountListener(){const e=this.onEntityChange(),n=this.onZoom(),r=this.onHover(),i=this.onSelect();this.disposers=[e,n,r,i]}onZoom(){return this.pipelineRegistry.onZoom(e=>{this.node.style.transform=`scale(${e})`})}onHover(){return this.hoverService.onHoveredChange(()=>{this.compute()})}onEntityChange(){return this.entityManager.onEntityChange(()=>{this.compute()})}onSelect(){return this.selectService.onSelectionChanged(()=>{this.compute()})}};$w([Ot(ei)],mu.prototype,"document",2);$w([Ot(Lo)],mu.prototype,"entityManager",2);$w([Ot(IC)],mu.prototype,"pipelineRenderer",2);$w([Ot(Pp)],mu.prototype,"pipelineRegistry",2);$w([Ot(If)],mu.prototype,"hoverService",2);$w([Ot(Wa)],mu.prototype,"selectService",2);mu=$w([Pn()],mu);var nst=pa({onBind({bind:e}){e(mu).toSelf().inSingletonScope()},onInit(e){e.get(mu).init()},onReady(e){e.get(mu).ready()},onDispose(e){e.get(mu).dispose()}}),f1;(e=>{e.compute=(i,o)=>{const a=n(i,o),s=r(i);s.style.position="absolute",s.style.zIndex=(0,e.zIndexStringify)(a)},e.stackingIndex=(i,o)=>{if(o<1)return;const a=Qat[i];return F1.startIndex+F1.levelIndexStep*(o-1)+a},e.nodeStackingLevel=(i,o,a=!1)=>{const s=[];let l=i;for(;l;)s.push(l),l=l.parent;const c=s.reverse(),u=c.length-1,d=c.findIndex(p=>!!o.selectedIDs.includes(p.id)),f=F1.allowLevel+(c.length-d);return!a&&d!==-1?f:u},e.zIndexStringify=i=>i===void 0?"auto":i.toString();const n=(i,o)=>{const a=(0,e.nodeStackingLevel)(i,o);return(0,e.stackingIndex)("node",a)},r=i=>i.getData(ra).node})(f1||(f1={}));var Ose;(e=>{e.compute=(i,o)=>{const a=r(i,o),s=i.node;s.style.position="absolute",s.style.zIndex=f1.zIndexStringify(a)};const n=(i,o)=>{if(i.isDrawing||o.hoveredEntityID===i.id||o.selectedIDs.includes(i.id))return F1.maxLevel+1;const a=f1.nodeStackingLevel(i.from,o,!0);if(!i.to)return a;const s=f1.nodeStackingLevel(i.to,o,!0);return Math.min(a,s)},r=(i,o)=>{const a=n(i,o);return f1.stackingIndex("line",a)}})(Ose||(Ose={}));var yir=e=>{const{nodes:n,lines:r,context:i}=e;n.forEach(o=>{f1.compute(o,i)}),r.forEach(o=>{Ose.compute(o,i)})};const _ir=Object.freeze(Object.defineProperty({__proto__:null,StackingBaseIndex:Qat,StackingComputing:Kat,StackingConfig:F1,get StackingContextManager(){return mu},StackingItem:Xat,StackingType:ave,createFreeStackPlugin:nst,layersComputing:yir},Symbol.toStringTag,{value:"Module"}));var ud=function(){return ud=Object.assign||function(n){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])}return n},ud.apply(this,arguments)};function Bj(e,n,r){if(r||arguments.length===2)for(var i=0,o=n.length,a;i<o;i++)(a||!(i in n))&&(a||(a=Array.prototype.slice.call(n,0,i)),a[i]=n[i]);return e.concat(a||Array.prototype.slice.call(n))}var bir=function(n,r,i,o){var a=i?i.call(o,n,r):void 0;if(a!==void 0)return!!a;if(n===r)return!0;if(typeof n!="object"||!n||typeof r!="object"||!r)return!1;var s=Object.keys(n),l=Object.keys(r);if(s.length!==l.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(r),u=0;u<s.length;u++){var d=s[u];if(!c(d))return!1;var f=n[d],p=r[d];if(a=i?i.call(o,f,p,d):void 0,a===!1||a===void 0&&f!==p)return!1}return!0};const Sir=Or(bir);var va="-ms-",wP="-moz-",Po="-webkit-",rst="comm",WV="rule",sve="decl",Eir="@import",ist="@keyframes",Cir="@layer",ost=Math.abs,lve=String.fromCharCode,Rse=Object.assign;function wir(e,n){return zl(e,0)^45?(((n<<2^zl(e,0))<<2^zl(e,1))<<2^zl(e,2))<<2^zl(e,3):0}function ast(e){return e.trim()}function Uv(e,n){return(e=n.exec(e))?e[0]:e}function Si(e,n,r){return e.replace(n,r)}function rF(e,n,r){return e.indexOf(n,r)}function zl(e,n){return e.charCodeAt(n)|0}function MR(e,n,r){return e.slice(n,r)}function rm(e){return e.length}function sst(e){return e.length}function R2(e,n){return n.push(e),e}function xir(e,n){return e.map(n).join("")}function l$e(e,n){return e.filter(function(r){return!Uv(r,n)})}var YV=1,PR=1,lst=0,kp=0,rl=0,fN="";function qV(e,n,r,i,o,a,s,l){return{value:e,root:n,parent:r,type:i,props:o,children:a,line:YV,column:PR,length:s,return:"",siblings:l}}function fb(e,n){return Rse(qV("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},n)}function Hx(e){for(;e.root;)e=fb(e.root,{children:[e]});R2(e,e.siblings)}function Tir(){return rl}function Oir(){return rl=kp>0?zl(fN,--kp):0,PR--,rl===10&&(PR=1,YV--),rl}function Qh(){return rl=kp<lst?zl(fN,kp++):0,PR++,rl===10&&(PR=1,YV++),rl}function B1(){return zl(fN,kp)}function iF(){return kp}function KV(e,n){return MR(fN,e,n)}function Ise(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 Rir(e){return YV=PR=1,lst=rm(fN=e),kp=0,[]}function Iir(e){return fN="",e}function UJ(e){return ast(KV(kp-1,Nse(e===91?e+2:e===40?e+1:e)))}function Nir(e){for(;(rl=B1())&&rl<33;)Qh();return Ise(e)>2||Ise(rl)>3?"":" "}function Mir(e,n){for(;--n&&Qh()&&!(rl<48||rl>102||rl>57&&rl<65||rl>70&&rl<97););return KV(e,iF()+(n<6&&B1()==32&&Qh()==32))}function Nse(e){for(;Qh();)switch(rl){case e:return kp;case 34:case 39:e!==34&&e!==39&&Nse(rl);break;case 40:e===41&&Nse(e);break;case 92:Qh();break}return kp}function Pir(e,n){for(;Qh()&&e+rl!==57;)if(e+rl===84&&B1()===47)break;return"/*"+KV(n,kp-1)+"*"+lve(e===47?e:Qh())}function Air(e){for(;!Ise(B1());)Qh();return KV(e,kp)}function Dir(e){return Iir(oF("",null,null,null,[""],e=Rir(e),0,[0],e))}function oF(e,n,r,i,o,a,s,l,c){for(var u=0,d=0,f=s,p=0,h=0,g=0,v=1,y=1,_=1,S=0,b="",E=o,w=a,C=i,x=b;y;)switch(g=S,S=Qh()){case 40:if(g!=108&&zl(x,f-1)==58){rF(x+=Si(UJ(S),"&","&\f"),"&\f",ost(u?l[u-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:x+=UJ(S);break;case 9:case 10:case 13:case 32:x+=Nir(g);break;case 92:x+=Mir(iF()-1,7);continue;case 47:switch(B1()){case 42:case 47:R2(kir(Pir(Qh(),iF()),n,r,c),c);break;default:x+="/"}break;case 123*v:l[u++]=rm(x)*_;case 125*v:case 59:case 0:switch(S){case 0:case 125:y=0;case 59+d:_==-1&&(x=Si(x,/\f/g,"")),h>0&&rm(x)-f&&R2(h>32?u$e(x+";",i,r,f-1,c):u$e(Si(x," ","")+";",i,r,f-2,c),c);break;case 59:x+=";";default:if(R2(C=c$e(x,n,r,u,d,o,l,b,E=[],w=[],f,a),a),S===123)if(d===0)oF(x,n,C,C,E,a,f,l,w);else switch(p===99&&zl(x,3)===110?100:p){case 100:case 108:case 109:case 115:oF(e,C,C,i&&R2(c$e(e,C,C,0,0,o,l,b,o,E=[],f,w),w),o,w,f,l,i?E:w);break;default:oF(x,C,C,C,[""],w,0,l,w)}}u=d=h=0,v=_=1,b=x="",f=s;break;case 58:f=1+rm(x),h=g;default:if(v<1){if(S==123)--v;else if(S==125&&v++==0&&Oir()==125)continue}switch(x+=lve(S),S*v){case 38:_=d>0?1:(x+="\f",-1);break;case 44:l[u++]=(rm(x)-1)*_,_=1;break;case 64:B1()===45&&(x+=UJ(Qh())),p=B1(),d=f=rm(b=x+=Air(iF())),S++;break;case 45:g===45&&rm(x)==2&&(v=0)}}return a}function c$e(e,n,r,i,o,a,s,l,c,u,d,f){for(var p=o-1,h=o===0?a:[""],g=sst(h),v=0,y=0,_=0;v<i;++v)for(var S=0,b=MR(e,p+1,p=ost(y=s[v])),E=e;S<g;++S)(E=ast(y>0?h[S]+" "+b:Si(b,/&\f/g,h[S])))&&(c[_++]=E);return qV(e,n,r,o===0?WV:l,c,u,d,f)}function kir(e,n,r,i){return qV(e,n,r,rst,lve(Tir()),MR(e,2,-2),0,i)}function u$e(e,n,r,i,o){return qV(e,n,r,sve,MR(e,0,i),MR(e,i+1,-1),i,o)}function cst(e,n,r){switch(wir(e,n)){case 5103:return Po+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Po+e+e;case 4789:return wP+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Po+e+wP+e+va+e+e;case 5936:switch(zl(e,n+11)){case 114:return Po+e+va+Si(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Po+e+va+Si(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Po+e+va+Si(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Po+e+va+e+e;case 6165:return Po+e+va+"flex-"+e+e;case 5187:return Po+e+Si(e,/(\w+).+(:[^]+)/,Po+"box-$1$2"+va+"flex-$1$2")+e;case 5443:return Po+e+va+"flex-item-"+Si(e,/flex-|-self/g,"")+(Uv(e,/flex-|baseline/)?"":va+"grid-row-"+Si(e,/flex-|-self/g,""))+e;case 4675:return Po+e+va+"flex-line-pack"+Si(e,/align-content|flex-|-self/g,"")+e;case 5548:return Po+e+va+Si(e,"shrink","negative")+e;case 5292:return Po+e+va+Si(e,"basis","preferred-size")+e;case 6060:return Po+"box-"+Si(e,"-grow","")+Po+e+va+Si(e,"grow","positive")+e;case 4554:return Po+Si(e,/([^-])(transform)/g,"$1"+Po+"$2")+e;case 6187:return Si(Si(Si(e,/(zoom-|grab)/,Po+"$1"),/(image-set)/,Po+"$1"),e,"")+e;case 5495:case 3959:return Si(e,/(image-set\([^]*)/,Po+"$1$`$1");case 4968:return Si(Si(e,/(.+:)(flex-)?(.*)/,Po+"box-pack:$3"+va+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Po+e+e;case 4200:if(!Uv(e,/flex-|baseline/))return va+"grid-column-align"+MR(e,n)+e;break;case 2592:case 3360:return va+Si(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(i,o){return n=o,Uv(i.props,/grid-\w+-end/)})?~rF(e+(r=r[n].value),"span",0)?e:va+Si(e,"-start","")+e+va+"grid-row-span:"+(~rF(r,"span",0)?Uv(r,/\d+/):+Uv(r,/\d+/)-+Uv(e,/\d+/))+";":va+Si(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(i){return Uv(i.props,/grid-\w+-start/)})?e:va+Si(Si(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Si(e,/(.+)-inline(.+)/,Po+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(rm(e)-1-n>6)switch(zl(e,n+1)){case 109:if(zl(e,n+4)!==45)break;case 102:return Si(e,/(.+:)(.+)-([^]+)/,"$1"+Po+"$2-$3$1"+wP+(zl(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~rF(e,"stretch",0)?cst(Si(e,"stretch","fill-available"),n,r)+e:e}break;case 5152:case 5920:return Si(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,o,a,s,l,c,u){return va+o+":"+a+u+(s?va+o+"-span:"+(l?c:+c-+a)+u:"")+e});case 4949:if(zl(e,n+6)===121)return Si(e,":",":"+Po)+e;break;case 6444:switch(zl(e,zl(e,14)===45?18:11)){case 120:return Si(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Po+(zl(e,14)===45?"inline-":"")+"box$3$1"+Po+"$2$3$1"+va+"$2box$3")+e;case 100:return Si(e,":",":"+va)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Si(e,"scroll-","scroll-snap-")+e}return e}function jj(e,n){for(var r="",i=0;i<e.length;i++)r+=n(e[i],i,e,n)||"";return r}function Lir(e,n,r,i){switch(e.type){case Cir:if(e.children.length)break;case Eir:case sve:return e.return=e.return||e.value;case rst:return"";case ist:return e.return=e.value+"{"+jj(e.children,i)+"}";case WV:if(!rm(e.value=e.props.join(",")))return""}return rm(r=jj(e.children,i))?e.return=e.value+"{"+r+"}":""}function $ir(e){var n=sst(e);return function(r,i,o,a){for(var s="",l=0;l<n;l++)s+=e[l](r,i,o,a)||"";return s}}function Fir(e){return function(n){n.root||(n=n.return)&&e(n)}}function Bir(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case sve:e.return=cst(e.value,e.length,r);return;case ist:return jj([fb(e,{value:Si(e.value,"@","@"+Po)})],i);case WV:if(e.length)return xir(r=e.props,function(o){switch(Uv(o,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Hx(fb(e,{props:[Si(o,/:(read-\w+)/,":"+wP+"$1")]})),Hx(fb(e,{props:[o]})),Rse(e,{props:l$e(r,i)});break;case"::placeholder":Hx(fb(e,{props:[Si(o,/:(plac\w+)/,":"+Po+"input-$1")]})),Hx(fb(e,{props:[Si(o,/:(plac\w+)/,":"+wP+"$1")]})),Hx(fb(e,{props:[Si(o,/:(plac\w+)/,va+"input-$1")]})),Hx(fb(e,{props:[o]})),Rse(e,{props:l$e(r,i)});break}return""})}}var jir={animationIterationCount:1,aspectRatio: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},Wd={npm_package_dependencies__flowgram_ai_form_materials:"0.1.26",npm_package_dependencies_emoji_mart:"^5.6.0",npm_package_dependencies_use_debounce:"^10.0.1",NVM_INC:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/include/node",ELECTRON_MIRROR:"http://npm.taobao.org/mirrors/electron/",npm_package_devDependencies_prettier:"3.2.5",npm_package_devDependencies_electron_builder:"24.13.3",npm_package_scripts_build_mac_dmg:"tsc && vite build --mode prod && electron-builder --mac --config electron-builder-mac-dmg.yml",npm_package_dependencies__flowgram_ai_free_container_plugin:"0.1.26",npm_package_dependencies_ts_protoc_gen:"^0.15.0",rvm_bin_path:"/Users/ningjinpeng/.rvm/bin",TERM_PROGRAM:"vscode",npm_package_dependencies__flowgram_ai_free_snap_plugin:"0.1.26",npm_package_dependencies_cheerio:"^1.0.0",NODE:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",npm_config_version_git_tag:"true",npm_package_homepage:"https://github.com/bytedesk/bytedesk#readme",npm_package_scripts_release_mac:"sh cicd/scripts/build-upload-mac.sh",npm_package_dependencies_axios:"^1.6.5",npm_package_dependencies_moment:"^2.30.1",npm_package_devDependencies_typescript:"^5.1.6",npm_package_devDependencies_vite_plugin_pwa:"^0.20.1",GEM_HOME:"/Users/ningjinpeng/.gem/ruby",NVM_CD_FLAGS:"-q",PYENV_ROOT:"/Users/ningjinpeng/.pyenv",INIT_CWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/agenticflow",npm_package_scripts_build_mac_mas:"tsc && vite build --mode prod && electron-builder --mac --config electron-builder-mac-mas.yml",npm_package_devDependencies_jest:"^29.7.0",npm_package_devDependencies_vite:"^5.0.10",SHELL:"/bin/zsh",TERM:"xterm-256color",npm_config_shamefully_hoist:"true",npm_package_dependencies__emotion_styled:"11.11.5",npm_package_dependencies_react_infinite_scroll_component:"^6.1.0",HOMEBREW_API_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api",HOMEBREW_BOTTLE_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles",npm_package_dependencies__ant_design_pro_provider:"^2.15.2",HOMEBREW_REPOSITORY:"/opt/homebrew",TMPDIR:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/",npm_config_init_license:"MIT",npm_package_dependencies__ant_design_x:"^1.1.0",npm_package_dependencies__langchain_community:"^0.2.28",npm_package_dependencies_socket_io:"^4.7.5",npm_package_locales_en_productName:"ByteDesk",npm_package_dependencies_debug:"^4.3.7",npm_package_dependencies_dompurify:"^3.0.9",npm_package_devDependencies__vitejs_plugin_react:"^4.0.4",TERM_PROGRAM_VERSION:"1.100.1",npm_package_scripts_dev:"vite --host --mode dev",npm_package_dependencies_express_rate_limit:"^7.2.0",npm_package_dependencies_uuid:"^9.0.1",MallocNanoZone:"0",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",ZDOTDIR:"/Users/ningjinpeng",npm_package_scripts_build_linux:"tsc && vite build --mode prod && electron-builder --linux --config electron-builder-linux.yml",npm_config_registry:"https://registry.npmmirror.com/",npm_package_private:"true",npm_package_devDependencies__flowgram_ai_eslint_config:"0.1.26",npm_package_devDependencies__flowgram_ai_ts_config:"0.1.26",npm_package_repository_url:"git+https://github.com/bytedesk/bytedesk.git",npm_package_dependencies__ant_design_icons:"^5.6.1",npm_package_dependencies__tanstack_react_query_devtools:"^5.21.0",npm_package_dependencies_bowser:"^2.11.0",npm_package_dependencies_react_dom:"^18.2.0",PNPM_HOME:"/Users/ningjinpeng/Library/pnpm",npm_package_dependencies__ant_design_cssinjs:"^1.22.0",npm_package_dependencies_dayjs:"^1.11.11",npm_package_dependencies_react_dropzone:"^14.2.3",npm_package_readmeFilename:"README.md",OBJC_DISABLE_INITIALIZE_FORK_SAFETY:"YES",npm_package_description:"对话即服务",npm_package_debug_env_VITE_DEV_SERVER_URL:"http://127.0.0.1:9005/",npm_package_devDependencies__testing_library_react:"^14.2.2",npm_package_devDependencies_ajv:"^8.17.1",NVM_DIR:"/Users/ningjinpeng/.nvm",USER:"ningjinpeng",npm_package_license:"GNU",npm_package_devDependencies__types_react:"^18.2.20",npm_package_dependencies_intersection_observer:"^0.12.2",npm_package_dependencies_react_helmet_async:"^2.0.4",COMMAND_MODE:"unix2003",npm_package_scripts_release_open:"sh cicd/scripts/build-open.sh",npm_package_dependencies_bpmn_js:"^18.2.0",npm_package_scripts_release_mas:"sh cicd/scripts/build-mac-mas.sh",npm_package_dependencies_xgplayer:"^3.0.13",FLUTTER_ROOT:"/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/Users/ningjinpeng/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/flutter",HOMEBREW_CORE_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git",HOMEBREW_INSTALL_FROM_API:"1",rvm_path:"/Users/ningjinpeng/.rvm",npm_package_dependencies_react_virtuoso:"^4.7.1",npm_package_dependencies_zustand:"^4.4.7",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.XdTWF3MV9F/Listeners",npm_package_devDependencies__types_express:"^4.17.21",npm_package_devDependencies__types_jest:"^29.5.12",npm_package_devDependencies_less:"^4.2.0",npm_package_devDependencies_postcss:"^8.4.31",PUB_HOSTED_URL:"https://pub.flutter-io.cn",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",VSCODE_PROFILE_INITIALIZED:"1",npm_package_scripts_e2e:"playwright test",npm_execpath:"/usr/local/lib/node_modules/yarn/bin/yarn.js",npm_package_scripts_build_open:"tsc && vite build --mode open",npm_package_author_name:"weiyuai.cn",npm_package_dependencies_react_use:"^17.5.0",npm_package_devDependencies__electron_osx_sign:"^1.3.1",npm_package_devDependencies__types_react_dom:"^18.2.7",npm_package_dependencies_peerjs:"^1.5.2",npm_package_devDependencies_styled_components:"^6.1.13",rvm_prefix:"/Users/ningjinpeng",npm_package_scripts_build_web:"tsc && vite build --mode web",npm_package_dependencies__emoji_mart_react:"^1.1.1",npm_package_dependencies_immer:"^10.1.1",npm_config_argv:'{"remain":[],"cooked":["run","build:open"],"original":["build:open"]}',PATH:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/yarn--1747229327819-0.39092020904141744:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/agenticflow/node_modules/.bin:/Users/ningjinpeng/.config/yarn/link/node_modules/.bin:/Users/ningjinpeng/.yarn/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin/:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Users/ningjinpeng/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/usr/local/bin",npm_package_scripts_release_web:"sh cicd/scripts/build-upload.sh",npm_package_dependencies__ant_design_use_emotion_css:"1.0.4",npm_package_dependencies_electron_context_menu:"^3.6.1",npm_config_auto_install_peers:"true",npm_package_dependencies__flowgram_ai_free_layout_editor:"0.1.26",npm_package_dependencies_react_contexify:"^6.0.0",npm_package_dependencies_react_syntax_highlighter:"^15.6.1",npm_package_dependencies_systeminformation:"^5.22.3",npm_package_devDependencies_ts_jest:"^29.1.2",__CFBundleIdentifier:"com.microsoft.VSCode",USER_ZDOTDIR:"/Users/ningjinpeng",npm_package_dependencies_electron_screenshots:"^0.5.26",npm_package_devDependencies_tailwindcss:"^3.3.3",PWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/agenticflow",npm_config_nodeLinker:"node-modules",npm_package_bugs_url:"https://github.com/bytedesk/bytedesk/issues",npm_package_scripts_preview:"vite preview --host",FLUTTER_STORAGE_BASE_URL:"https://storage.flutter-io.cn",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home",npm_package_dependencies__dnd_kit_core:"^6.2.0",npm_package_dependencies_ua_parser_js:"^1.0.37",npm_lifecycle_event:"build:open",npm_package_name:"agenticflow",npm_package_repository_type:"git",npm_package_dependencies_react_intl:"^6.8.9",LOCAL_GIT_DIRECTORY:"/Applications/GitHub Desktop.app/Contents/Resources/app/git",LANG:"zh_CN.UTF-8",npm_package_scripts_build_win:"tsc && vite build --mode prod && electron-builder --win --config electron-builder-windows.yml",npm_package_scripts_release_quanjing:"sh cicd/scripts/build-quanjing.sh",npm_package_scripts_pree2e:"vite build --mode=test",npm_package_dependencies_file_saver:"^2.0.5",npm_package_devDependencies_vite_plugin_electron_renderer:"^0.14.5",npm_config_version_commit_hooks:"true",npm_package_scripts_start:"vite --host --mode dev",npm_package_scripts_build:"tsc && vite build --mode prod && electron-builder",npm_package_scripts_release_win:"sh cicd/scripts/build-upload-win.sh",npm_package_dependencies__dnd_kit_utilities:"^3.2.2",NODE_PATH:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/bin/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/node_modules",npm_package_dependencies_menubar:"^9.4.0",npm_package_dependencies_react_router_dom:"^6.21.2",XPC_FLAGS:"0x0",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",npm_config_bin_links:"true",npm_package_dependencies__types_ua_parser_js:"^0.7.39",npm_config_electron_mirror:"https://npmmirror.com/mirrors/electron/",npm_package_engines_node:">=20",npm_package_main:"dist-electron/main/index.js",npm_package_dependencies__tanstack_react_query:"^5.20.5",npm_package_dependencies_dexie:"^4.0.7",npm_package_version:"1.1.9",npm_package_dependencies__emotion_react:"11.11.4",npm_package_dependencies__flowgram_ai_free_lines_plugin:"0.1.26",npm_package_dependencies_node_json_db:"^2.3.1",npm_package_dependencies_ws:"^8.16.0",XPC_SERVICE_NAME:"0",npm_package_devDependencies_autoprefixer:"^10.4.16",rvm_version:"1.29.12 (latest)",VSCODE_INJECTION:"1",npm_package_type:"module",HOME:"/Users/ningjinpeng",PYENV_SHELL:"zsh",SHLVL:"3",npm_package_dependencies__dnd_kit_sortable:"^8.0.0",npm_package_dependencies_react_markdown:"^9.0.1",HOMEBREW_BREW_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",npm_config_strict_ssl:"true",npm_config_save_prefix:"^",npm_package_dependencies_bpmn_js_properties_panel:"^5.31.1",npm_package_dependencies_dotenv:"^16.4.5",npm_package_dependencies_mitt:"^3.0.1",npm_package_dependencies_openai:"^4.56.0",npm_config_version_git_message:"v%s",npm_package_dependencies__emoji_mart_data:"^1.2.1",npm_package_dependencies__flowgram_ai_minimap_plugin:"0.1.26",npm_package_devDependencies_cross_env:"^7.0.3",HOMEBREW_PREFIX:"/opt/homebrew",npm_package_dependencies__flowgram_ai_free_node_panel_plugin:"0.1.26",npm_package_dependencies_react_photo_view:"^1.2.6",npm_package_devDependencies__types_web_bluetooth:"^0.0.20",npm_package_dependencies_bytedesk_web:"^1.4.1",npm_package_dependencies_unique_names_generator:"^4.7.1",YARN_WRAP_OUTPUT:"false",LOGNAME:"ningjinpeng",npm_package_locales_zh_CN_productName:"微语",npm_lifecycle_script:"tsc && vite build --mode open",npm_package_author_email:"270580156@qq.com",npm_package_dependencies__douyinfe_semi_ui:"^2.79.0",npm_package_dependencies__xyflow_react:"^12.2.0",VSCODE_GIT_IPC_HANDLE:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/vscode-git-7f4d23a467.sock",npm_package_scripts_release_linux:"sh cicd/scripts/build-upload-linux.sh",npm_package_dependencies_react:"^18.2.0",npm_package_dependencies_mqtt:"^5.2.0",BUN_INSTALL:"/Users/ningjinpeng/.bun",NVM_BIN:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin",npm_config_user_agent:"yarn/1.22.17 npm/? node/v20.0.0 darwin arm64",npm_config_ignore_scripts:"",npm_config_version_git_sign:"",npm_package_dependencies__dnd_kit_modifiers:"^7.0.0",npm_package_dependencies_node_cmd:"^5.0.0",npm_package_dependencies_text_search_engine:"^1.1.0",npm_package_devDependencies__electron_notarize:"^2.5.0",npm_package_dependencies_socket_io_client:"^4.7.5",npm_package_devDependencies__playwright_test:"^1.37.1",npm_package_devDependencies__types_node:"^20.12.3",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:",GIT_ASKPASS:"/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh",VSCODE_GIT_ASKPASS_NODE:"/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)",npm_package_dependencies_express:"^4.18.3",npm_config_ignore_optional:"",npm_config_init_version:"1.0.0",npm_package_scripts_build_quanjing:"tsc && vite build --mode quanjing",npm_package_dependencies_antd:"^5.23.2",npm_package_dependencies_langchain:"^0.2.16",npm_package_dependencies_antd_img_crop:"^4.23.0",npm_package_dependencies_electron_updater:"^6.1.1",npm_package_devDependencies_vite_plugin_electron:"^0.28.0",npm_package_dependencies__dicebear_collection:"^8.0.1",npm_package_dependencies__types_file_saver:"^2.0.7",npm_package_devDependencies_electron:"^33.2.0",npm_package_locales_zh_CN_description:"对话即服务",npm_config_version_tag_prefix:"v",npm_package_dependencies__ant_design_pro_components:"^2.6.28",npm_package_dependencies__dicebear_core:"^8.0.1",npm_package_dependencies__douyinfe_semi_icons:"^2.79.0",npm_package_dependencies__flowgram_ai_free_group_plugin:"0.1.26",npm_package_dependencies_dexie_react_hooks:"^1.1.7",npm_package_devDependencies__testing_library_jest_dom:"^6.4.2",npm_package_locales_en_description:"Chat as a Service",npm_node_execpath:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",COLORTERM:"truecolor",NODE_ENV:"production"},AR=typeof process<"u"&&Wd!==void 0&&(Wd.REACT_APP_SC_ATTR||Wd.SC_ATTR)||"data-styled",ust="active",dst="data-styled-version",XV="6.1.13",cve=`/*!sc*/
`,Uj=typeof window<"u"&&"HTMLElement"in window,Uir=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Wd!==void 0&&Wd.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Wd.REACT_APP_SC_DISABLE_SPEEDY!==""?Wd.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Wd.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Wd!==void 0&&Wd.SC_DISABLE_SPEEDY!==void 0&&Wd.SC_DISABLE_SPEEDY!==""&&Wd.SC_DISABLE_SPEEDY!=="false"&&Wd.SC_DISABLE_SPEEDY),QV=Object.freeze([]),DR=Object.freeze({});function Hir(e,n,r){return r===void 0&&(r=DR),e.theme!==r.theme&&e.theme||n||r.theme}var fst=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),zir=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Vir=/(^-|-$)/g;function d$e(e){return e.replace(zir,"-").replace(Vir,"")}var Gir=/(a)(d)/gi,g5=52,f$e=function(e){return String.fromCharCode(e+(e>25?39:97))};function Mse(e){var n,r="";for(n=Math.abs(e);n>g5;n=n/g5|0)r=f$e(n%g5)+r;return(f$e(n%g5)+r).replace(Gir,"$1-$2")}var HJ,pst=5381,RT=function(e,n){for(var r=n.length;r;)e=33*e^n.charCodeAt(--r);return e},hst=function(e){return RT(pst,e)};function Wir(e){return Mse(hst(e)>>>0)}function Yir(e){return e.displayName||e.name||"Component"}function zJ(e){return typeof e=="string"&&!0}var gst=typeof Symbol=="function"&&Symbol.for,mst=gst?Symbol.for("react.memo"):60115,qir=gst?Symbol.for("react.forward_ref"):60112,Kir={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Xir={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vst={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qir=((HJ={})[qir]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},HJ[mst]=vst,HJ);function p$e(e){return("type"in(n=e)&&n.type.$$typeof)===mst?vst:"$$typeof"in e?Qir[e.$$typeof]:Kir;var n}var Zir=Object.defineProperty,Jir=Object.getOwnPropertyNames,h$e=Object.getOwnPropertySymbols,eor=Object.getOwnPropertyDescriptor,tor=Object.getPrototypeOf,g$e=Object.prototype;function yst(e,n,r){if(typeof n!="string"){if(g$e){var i=tor(n);i&&i!==g$e&&yst(e,i,r)}var o=Jir(n);h$e&&(o=o.concat(h$e(n)));for(var a=p$e(e),s=p$e(n),l=0;l<o.length;++l){var c=o[l];if(!(c in Xir||r&&r[c]||s&&c in s||a&&c in a)){var u=eor(n,c);try{Zir(e,c,u)}catch{}}}}return e}function kR(e){return typeof e=="function"}function uve(e){return typeof e=="object"&&"styledComponentId"in e}function p1(e,n){return e&&n?"".concat(e," ").concat(n):e||n||""}function m$e(e,n){if(e.length===0)return"";for(var r=e[0],i=1;i<e.length;i++)r+=e[i];return r}function xD(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Pse(e,n,r){if(r===void 0&&(r=!1),!r&&!xD(e)&&!Array.isArray(e))return n;if(Array.isArray(n))for(var i=0;i<n.length;i++)e[i]=Pse(e[i],n[i]);else if(xD(n))for(var i in n)e[i]=Pse(e[i],n[i]);return e}function dve(e,n){Object.defineProperty(e,"toString",{value:n})}function u$(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):""))}var nor=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}return e.prototype.indexOfGroup=function(n){for(var r=0,i=0;i<n;i++)r+=this.groupSizes[i];return r},e.prototype.insertRules=function(n,r){if(n>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,a=o;n>=a;)if((a<<=1)<0)throw u$(16,"".concat(n));this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var s=o;s<a;s++)this.groupSizes[s]=0}for(var l=this.indexOfGroup(n+1),c=(s=0,r.length);s<c;s++)this.tag.insertRule(l,r[s])&&(this.groupSizes[n]++,l++)},e.prototype.clearGroup=function(n){if(n<this.length){var r=this.groupSizes[n],i=this.indexOfGroup(n),o=i+r;this.groupSizes[n]=0;for(var a=i;a<o;a++)this.tag.deleteRule(i)}},e.prototype.getGroup=function(n){var r="";if(n>=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],o=this.indexOfGroup(n),a=o+i,s=o;s<a;s++)r+="".concat(this.tag.getRule(s)).concat(cve);return r},e}(),aF=new Map,Hj=new Map,sF=1,m5=function(e){if(aF.has(e))return aF.get(e);for(;Hj.has(sF);)sF++;var n=sF++;return aF.set(e,n),Hj.set(n,e),n},ror=function(e,n){sF=n+1,aF.set(e,n),Hj.set(n,e)},ior="style[".concat(AR,"][").concat(dst,'="').concat(XV,'"]'),oor=new RegExp("^".concat(AR,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),aor=function(e,n,r){for(var i,o=r.split(","),a=0,s=o.length;a<s;a++)(i=o[a])&&e.registerName(n,i)},sor=function(e,n){for(var r,i=((r=n.textContent)!==null&&r!==void 0?r:"").split(cve),o=[],a=0,s=i.length;a<s;a++){var l=i[a].trim();if(l){var c=l.match(oor);if(c){var u=0|parseInt(c[1],10),d=c[2];u!==0&&(ror(d,u),aor(e,d,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},v$e=function(e){for(var n=document.querySelectorAll(ior),r=0,i=n.length;r<i;r++){var o=n[r];o&&o.getAttribute(AR)!==ust&&(sor(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function lor(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var _st=function(e){var n=document.head,r=e||n,i=document.createElement("style"),o=function(l){var c=Array.from(l.querySelectorAll("style[".concat(AR,"]")));return c[c.length-1]}(r),a=o!==void 0?o.nextSibling:null;i.setAttribute(AR,ust),i.setAttribute(dst,XV);var s=lor();return s&&i.setAttribute("nonce",s),r.insertBefore(i,a),i},cor=function(){function e(n){this.element=_st(n),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var i=document.styleSheets,o=0,a=i.length;o<a;o++){var s=i[o];if(s.ownerNode===r)return s}throw u$(17)}(this.element),this.length=0}return e.prototype.insertRule=function(n,r){try{return this.sheet.insertRule(r,n),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},e.prototype.getRule=function(n){var r=this.sheet.cssRules[n];return r&&r.cssText?r.cssText:""},e}(),uor=function(){function e(n){this.element=_st(n),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(n,r){if(n<=this.length&&n>=0){var i=document.createTextNode(r);return this.element.insertBefore(i,this.nodes[n]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},e.prototype.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},e}(),dor=function(){function e(n){this.rules=[],this.length=0}return e.prototype.insertRule=function(n,r){return n<=this.length&&(this.rules.splice(n,0,r),this.length++,!0)},e.prototype.deleteRule=function(n){this.rules.splice(n,1),this.length--},e.prototype.getRule=function(n){return n<this.length?this.rules[n]:""},e}(),y$e=Uj,por={isServer:!Uj,useCSSOMInjection:!Uir},bst=function(){function e(n,r,i){n===void 0&&(n=DR),r===void 0&&(r={});var o=this;this.options=ud(ud({},por),n),this.gs=r,this.names=new Map(i),this.server=!!n.isServer,!this.server&&Uj&&y$e&&(y$e=!1,v$e(this)),dve(this,function(){return function(a){for(var s=a.getTag(),l=s.length,c="",u=function(f){var p=function(_){return Hj.get(_)}(f);if(p===void 0)return"continue";var h=a.names.get(p),g=s.getGroup(f);if(h===void 0||!h.size||g.length===0)return"continue";var v="".concat(AR,".g").concat(f,'[id="').concat(p,'"]'),y="";h!==void 0&&h.forEach(function(_){_.length>0&&(y+="".concat(_,","))}),c+="".concat(g).concat(v,'{content:"').concat(y,'"}').concat(cve)},d=0;d<l;d++)u(d);return c}(o)})}return e.registerId=function(n){return m5(n)},e.prototype.rehydrate=function(){!this.server&&Uj&&v$e(this)},e.prototype.reconstructWithOptions=function(n,r){return r===void 0&&(r=!0),new e(ud(ud({},this.options),n),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(n=function(r){var i=r.useCSSOMInjection,o=r.target;return r.isServer?new dor(o):i?new cor(o):new uor(o)}(this.options),new nor(n)));var n},e.prototype.hasNameForId=function(n,r){return this.names.has(n)&&this.names.get(n).has(r)},e.prototype.registerName=function(n,r){if(m5(n),this.names.has(n))this.names.get(n).add(r);else{var i=new Set;i.add(r),this.names.set(n,i)}},e.prototype.insertRules=function(n,r,i){this.registerName(n,r),this.getTag().insertRules(m5(n),i)},e.prototype.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},e.prototype.clearRules=function(n){this.getTag().clearGroup(m5(n)),this.clearNames(n)},e.prototype.clearTag=function(){this.tag=void 0},e}(),hor=/&/g,gor=/^\s*\/\/.*$/gm;function Sst(e,n){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(n," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(n," ")),r.props=r.props.map(function(i){return"".concat(n," ").concat(i)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=Sst(r.children,n)),r})}function mor(e){var n,r,i,o=DR,a=o.options,s=a===void 0?DR:a,l=o.plugins,c=l===void 0?QV:l,u=function(p,h,g){return g.startsWith(r)&&g.endsWith(r)&&g.replaceAll(r,"").length>0?".".concat(n):p},d=c.slice();d.push(function(p){p.type===WV&&p.value.includes("&")&&(p.props[0]=p.props[0].replace(hor,r).replace(i,u))}),s.prefix&&d.push(Bir),d.push(Lir);var f=function(p,h,g,v){h===void 0&&(h=""),g===void 0&&(g=""),v===void 0&&(v="&"),n=v,r=h,i=new RegExp("\\".concat(r,"\\b"),"g");var y=p.replace(gor,""),_=Dir(g||h?"".concat(g," ").concat(h," { ").concat(y," }"):y);s.namespace&&(_=Sst(_,s.namespace));var S=[];return jj(_,$ir(d.concat(Fir(function(b){return S.push(b)})))),S};return f.hash=c.length?c.reduce(function(p,h){return h.name||u$(15),RT(p,h.name)},pst).toString():"",f}var vor=new bst,Ase=mor(),Est=V.createContext({shouldForwardProp:void 0,styleSheet:vor,stylis:Ase});Est.Consumer;V.createContext(void 0);function _$e(){return m.useContext(Est)}var yor=function(){function e(n,r){var i=this;this.inject=function(o,a){a===void 0&&(a=Ase);var s=i.name+a.hash;o.hasNameForId(i.id,s)||o.insertRules(i.id,s,a(i.rules,s,"@keyframes"))},this.name=n,this.id="sc-keyframes-".concat(n),this.rules=r,dve(this,function(){throw u$(12,String(i.name))})}return e.prototype.getName=function(n){return n===void 0&&(n=Ase),this.name+n.hash},e}(),_or=function(e){return e>="A"&&e<="Z"};function b$e(e){for(var n="",r=0;r<e.length;r++){var i=e[r];if(r===1&&i==="-"&&e[0]==="-")return e;_or(i)?n+="-"+i.toLowerCase():n+=i}return n.startsWith("ms-")?"-"+n:n}var Cst=function(e){return e==null||e===!1||e===""},wst=function(e){var n,r,i=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Cst(a)&&(Array.isArray(a)&&a.isCss||kR(a)?i.push("".concat(b$e(o),":"),a,";"):xD(a)?i.push.apply(i,Bj(Bj(["".concat(o," {")],wst(a),!1),["}"],!1)):i.push("".concat(b$e(o),": ").concat((n=o,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||n in jir||n.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return i};function j1(e,n,r,i){if(Cst(e))return[];if(uve(e))return[".".concat(e.styledComponentId)];if(kR(e)){if(!kR(a=e)||a.prototype&&a.prototype.isReactComponent||!n)return[e];var o=e(n);return j1(o,n,r,i)}var a;return e instanceof yor?r?(e.inject(r,i),[e.getName(i)]):[e]:xD(e)?wst(e):Array.isArray(e)?Array.prototype.concat.apply(QV,e.map(function(s){return j1(s,n,r,i)})):[e.toString()]}function bor(e){for(var n=0;n<e.length;n+=1){var r=e[n];if(kR(r)&&!uve(r))return!1}return!0}var Sor=hst(XV),Eor=function(){function e(n,r,i){this.rules=n,this.staticRulesId="",this.isStatic=(i===void 0||i.isStatic)&&bor(n),this.componentId=r,this.baseHash=RT(Sor,r),this.baseStyle=i,bst.registerId(r)}return e.prototype.generateAndInjectStyles=function(n,r,i){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(n,r,i):"";if(this.isStatic&&!i.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=p1(o,this.staticRulesId);else{var a=m$e(j1(this.rules,n,r,i)),s=Mse(RT(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,s)){var l=i(a,".".concat(s),void 0,this.componentId);r.insertRules(this.componentId,s,l)}o=p1(o,s),this.staticRulesId=s}else{for(var c=RT(this.baseHash,i.hash),u="",d=0;d<this.rules.length;d++){var f=this.rules[d];if(typeof f=="string")u+=f;else if(f){var p=m$e(j1(f,n,r,i));c=RT(c,p+d),u+=p}}if(u){var h=Mse(c>>>0);r.hasNameForId(this.componentId,h)||r.insertRules(this.componentId,h,i(u,".".concat(h),void 0,this.componentId)),o=p1(o,h)}}return o},e}(),xst=V.createContext(void 0);xst.Consumer;var VJ={};function Cor(e,n,r){var i=uve(e),o=e,a=!zJ(e),s=n.attrs,l=s===void 0?QV:s,c=n.componentId,u=c===void 0?function(E,w){var C=typeof E!="string"?"sc":d$e(E);VJ[C]=(VJ[C]||0)+1;var x="".concat(C,"-").concat(Wir(XV+C+VJ[C]));return w?"".concat(w,"-").concat(x):x}(n.displayName,n.parentComponentId):c,d=n.displayName,f=d===void 0?function(E){return zJ(E)?"styled.".concat(E):"Styled(".concat(Yir(E),")")}(e):d,p=n.displayName&&n.componentId?"".concat(d$e(n.displayName),"-").concat(n.componentId):n.componentId||u,h=i&&o.attrs?o.attrs.concat(l).filter(Boolean):l,g=n.shouldForwardProp;if(i&&o.shouldForwardProp){var v=o.shouldForwardProp;if(n.shouldForwardProp){var y=n.shouldForwardProp;g=function(E,w){return v(E,w)&&y(E,w)}}else g=v}var _=new Eor(r,p,i?o.componentStyle:void 0);function S(E,w){return function(C,x,T){var R=C.attrs,O=C.componentStyle,M=C.defaultProps,P=C.foldedComponentIds,k=C.styledComponentId,$=C.target,U=V.useContext(xst),z=_$e(),D=C.shouldForwardProp||z.shouldForwardProp,B=Hir(x,U,M)||DR,Y=function(le,Z,j){for(var F,te=ud(ud({},Z),{className:void 0,theme:j}),oe=0;oe<le.length;oe+=1){var de=kR(F=le[oe])?F(te):F;for(var pe in de)te[pe]=pe==="className"?p1(te[pe],de[pe]):pe==="style"?ud(ud({},te[pe]),de[pe]):de[pe]}return Z.className&&(te.className=p1(te.className,Z.className)),te}(R,x,B),q=Y.as||$,K={};for(var H in Y)Y[H]===void 0||H[0]==="$"||H==="as"||H==="theme"&&Y.theme===B||(H==="forwardedAs"?K.as=Y.forwardedAs:D&&!D(H,q)||(K[H]=Y[H]));var G=function(le,Z){var j=_$e(),F=le.generateAndInjectStyles(Z,j.styleSheet,j.stylis);return F}(O,Y),Q=p1(P,k);return G&&(Q+=" "+G),Y.className&&(Q+=" "+Y.className),K[zJ(q)&&!fst.has(q)?"class":"className"]=Q,K.ref=T,m.createElement(q,K)}(b,E,w)}S.displayName=f;var b=V.forwardRef(S);return b.attrs=h,b.componentStyle=_,b.displayName=f,b.shouldForwardProp=g,b.foldedComponentIds=i?p1(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=p,b.target=i?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(E){this._foldedDefaultProps=i?function(w){for(var C=[],x=1;x<arguments.length;x++)C[x-1]=arguments[x];for(var T=0,R=C;T<R.length;T++)Pse(w,R[T],!0);return w}({},o.defaultProps,E):E}}),dve(b,function(){return".".concat(b.styledComponentId)}),a&&yst(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function S$e(e,n){for(var r=[e[0]],i=0,o=n.length;i<o;i+=1)r.push(n[i],e[i+1]);return r}var E$e=function(e){return Object.assign(e,{isCss:!0})};function d$(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(kR(e)||xD(e))return E$e(j1(S$e(QV,Bj([e],n,!0))));var i=e;return n.length===0&&i.length===1&&typeof i[0]=="string"?j1(i):E$e(j1(S$e(i,n)))}function Dse(e,n,r){if(r===void 0&&(r=DR),!n)throw u$(1,n);var i=function(o){for(var a=[],s=1;s<arguments.length;s++)a[s-1]=arguments[s];return e(n,r,d$.apply(void 0,Bj([o],a,!1)))};return i.attrs=function(o){return Dse(e,n,ud(ud({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},i.withConfig=function(o){return Dse(e,n,ud(ud({},r),o))},i}var Tst=function(e){return Dse(Cor,e)},oi=Tst;fst.forEach(function(e){oi[e]=Tst(e)});const{abs:LM,cos:Nv,sin:zx,acos:wor,atan2:$M,sqrt:eb,pow:Jf}=Math;function FM(e){return e<0?-Jf(-e,1/3):Jf(e,1/3)}const Ost=Math.PI,v5=2*Ost,tb=Ost/2,xor=1e-6,GJ=Number.MAX_SAFE_INTEGER||9007199254740991,WJ=Number.MIN_SAFE_INTEGER||-9007199254740991,Tor={x:0,y:0,z:0},$n={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,n){const r=n(e);let i=r.x*r.x+r.y*r.y;return typeof r.z<"u"&&(i+=r.z*r.z),eb(i)},compute:function(e,n,r){if(e===0)return n[0].t=0,n[0];const i=n.length-1;if(e===1)return n[i].t=1,n[i];const o=1-e;let a=n;if(i===0)return n[0].t=e,n[0];if(i===1){const l={x:o*a[0].x+e*a[1].x,y:o*a[0].y+e*a[1].y,t:e};return r&&(l.z=o*a[0].z+e*a[1].z),l}if(i<4){let l=o*o,c=e*e,u,d,f,p=0;i===2?(a=[a[0],a[1],a[2],Tor],u=l,d=o*e*2,f=c):i===3&&(u=l*o,d=l*e*3,f=o*c*3,p=e*c);const h={x:u*a[0].x+d*a[1].x+f*a[2].x+p*a[3].x,y:u*a[0].y+d*a[1].y+f*a[2].y+p*a[3].y,t:e};return r&&(h.z=u*a[0].z+d*a[1].z+f*a[2].z+p*a[3].z),h}const s=JSON.parse(JSON.stringify(n));for(;s.length>1;){for(let l=0;l<s.length-1;l++)s[l]={x:s[l].x+(s[l+1].x-s[l].x)*e,y:s[l].y+(s[l+1].y-s[l].y)*e},typeof s[l].z<"u"&&(s[l].z=s[l].z+(s[l+1].z-s[l].z)*e);s.splice(s.length-1,1)}return s[0].t=e,s[0]},computeWithRatios:function(e,n,r,i){const o=1-e,a=r,s=n;let l=a[0],c=a[1],u=a[2],d=a[3],f;if(l*=o,c*=e,s.length===2)return f=l+c,{x:(l*s[0].x+c*s[1].x)/f,y:(l*s[0].y+c*s[1].y)/f,z:i?(l*s[0].z+c*s[1].z)/f:!1,t:e};if(l*=o,c*=2*o,u*=e*e,s.length===3)return f=l+c+u,{x:(l*s[0].x+c*s[1].x+u*s[2].x)/f,y:(l*s[0].y+c*s[1].y+u*s[2].y)/f,z:i?(l*s[0].z+c*s[1].z+u*s[2].z)/f:!1,t:e};if(l*=o,c*=1.5*o,u*=3*o,d*=e*e*e,s.length===4)return f=l+c+u+d,{x:(l*s[0].x+c*s[1].x+u*s[2].x+d*s[3].x)/f,y:(l*s[0].y+c*s[1].y+u*s[2].y+d*s[3].y)/f,z:i?(l*s[0].z+c*s[1].z+u*s[2].z+d*s[3].z)/f:!1,t:e}},derive:function(e,n){const r=[];for(let i=e,o=i.length,a=o-1;o>1;o--,a--){const s=[];for(let l=0,c;l<a;l++)c={x:a*(i[l+1].x-i[l].x),y:a*(i[l+1].y-i[l].y)},n&&(c.z=a*(i[l+1].z-i[l].z)),s.push(c);r.push(s),i=s}return r},between:function(e,n,r){return n<=e&&e<=r||$n.approximately(e,n)||$n.approximately(e,r)},approximately:function(e,n,r){return LM(e-n)<=(r||xor)},length:function(e){const r=$n.Tvalues.length;let i=0;for(let o=0,a;o<r;o++)a=.5*$n.Tvalues[o]+.5,i+=$n.Cvalues[o]*$n.arcfn(a,e);return .5*i},map:function(e,n,r,i,o){const a=r-n,s=o-i,l=e-n,c=l/a;return i+s*c},lerp:function(e,n,r){const i={x:n.x+e*(r.x-n.x),y:n.y+e*(r.y-n.y)};return n.z!==void 0&&r.z!==void 0&&(i.z=n.z+e*(r.z-n.z)),i},pointToString:function(e){let n=e.x+"/"+e.y;return typeof e.z<"u"&&(n+="/"+e.z),n},pointsToString:function(e){return"["+e.map($n.pointToString).join(", ")+"]"},copy:function(e){return JSON.parse(JSON.stringify(e))},angle:function(e,n,r){const i=n.x-e.x,o=n.y-e.y,a=r.x-e.x,s=r.y-e.y,l=i*s-o*a,c=i*a+o*s;return $M(l,c)},round:function(e,n){const r=""+e,i=r.indexOf(".");return parseFloat(r.substring(0,i+1+n))},dist:function(e,n){const r=e.x-n.x,i=e.y-n.y;return eb(r*r+i*i)},closest:function(e,n){let r=Jf(2,63),i,o;return e.forEach(function(a,s){o=$n.dist(n,a),o<r&&(r=o,i=s)}),{mdist:r,mpos:i}},abcratio:function(e,n){if(n!==2&&n!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const r=Jf(e,n)+Jf(1-e,n),i=r-1;return LM(i/r)},projectionratio:function(e,n){if(n!==2&&n!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const r=Jf(1-e,n),i=Jf(e,n)+r;return r/i},lli8:function(e,n,r,i,o,a,s,l){const c=(e*i-n*r)*(o-s)-(e-r)*(o*l-a*s),u=(e*i-n*r)*(a-l)-(n-i)*(o*l-a*s),d=(e-r)*(a-l)-(n-i)*(o-s);return d==0?!1:{x:c/d,y:u/d}},lli4:function(e,n,r,i){const o=e.x,a=e.y,s=n.x,l=n.y,c=r.x,u=r.y,d=i.x,f=i.y;return $n.lli8(o,a,s,l,c,u,d,f)},lli:function(e,n){return $n.lli4(e,e.c,n,n.c)},makeline:function(e,n){return new La(e.x,e.y,(e.x+n.x)/2,(e.y+n.y)/2,n.x,n.y)},findbbox:function(e){let n=GJ,r=GJ,i=WJ,o=WJ;return e.forEach(function(a){const s=a.bbox();n>s.x.min&&(n=s.x.min),r>s.y.min&&(r=s.y.min),i<s.x.max&&(i=s.x.max),o<s.y.max&&(o=s.y.max)}),{x:{min:n,mid:(n+i)/2,max:i,size:i-n},y:{min:r,mid:(r+o)/2,max:o,size:o-r}}},shapeintersections:function(e,n,r,i,o){if(!$n.bboxoverlap(n,i))return[];const a=[],s=[e.startcap,e.forward,e.back,e.endcap],l=[r.startcap,r.forward,r.back,r.endcap];return s.forEach(function(c){c.virtual||l.forEach(function(u){if(u.virtual)return;const d=c.intersects(u,o);d.length>0&&(d.c1=c,d.c2=u,d.s1=e,d.s2=r,a.push(d))})}),a},makeshape:function(e,n,r){const i=n.points.length,o=e.points.length,a=$n.makeline(n.points[i-1],e.points[0]),s=$n.makeline(e.points[o-1],n.points[0]),l={startcap:a,forward:e,back:n,endcap:s,bbox:$n.findbbox([a,e,n,s])};return l.intersections=function(c){return $n.shapeintersections(l,l.bbox,c,c.bbox,r)},l},getminmax:function(e,n,r){if(!r)return{min:0,max:0};let i=GJ,o=WJ,a,s;r.indexOf(0)===-1&&(r=[0].concat(r)),r.indexOf(1)===-1&&r.push(1);for(let l=0,c=r.length;l<c;l++)a=r[l],s=e.get(a),s[n]<i&&(i=s[n]),s[n]>o&&(o=s[n]);return{min:i,mid:(i+o)/2,max:o,size:o-i}},align:function(e,n){const r=n.p1.x,i=n.p1.y,o=-$M(n.p2.y-i,n.p2.x-r),a=function(s){return{x:(s.x-r)*Nv(o)-(s.y-i)*zx(o),y:(s.x-r)*zx(o)+(s.y-i)*Nv(o)}};return e.map(a)},roots:function(e,n){n=n||{p1:{x:0,y:0},p2:{x:1,y:0}};const r=e.length-1,i=$n.align(e,n),o=function(x){return 0<=x&&x<=1};if(r===2){const x=i[0].y,T=i[1].y,R=i[2].y,O=x-2*T+R;if(O!==0){const M=-eb(T*T-x*R),P=-x+T,k=-(M+P)/O,$=-(-M+P)/O;return[k,$].filter(o)}else if(T!==R&&O===0)return[(2*T-R)/(2*T-2*R)].filter(o);return[]}const a=i[0].y,s=i[1].y,l=i[2].y,c=i[3].y;let u=-a+3*s-3*l+c,d=3*a-6*s+3*l,f=-3*a+3*s,p=a;if($n.approximately(u,0)){if($n.approximately(d,0))return $n.approximately(f,0)?[]:[-p/f].filter(o);const x=eb(f*f-4*d*p),T=2*d;return[(x-f)/T,(-f-x)/T].filter(o)}d/=u,f/=u,p/=u;const h=(3*f-d*d)/3,g=h/3,v=(2*d*d*d-9*d*f+27*p)/27,y=v/2,_=y*y+g*g*g;let S,b,E,w,C;if(_<0){const x=-h/3,T=x*x*x,R=eb(T),O=-v/(2*R),M=O<-1?-1:O>1?1:O,P=wor(M),k=FM(R),$=2*k;return E=$*Nv(P/3)-d/3,w=$*Nv((P+v5)/3)-d/3,C=$*Nv((P+2*v5)/3)-d/3,[E,w,C].filter(o)}else{if(_===0)return S=y<0?FM(-y):-FM(y),E=2*S-d/3,w=-S-d/3,[E,w].filter(o);{const x=eb(_);return S=FM(-y+x),b=FM(y+x),[S-b-d/3].filter(o)}}},droots:function(e){if(e.length===3){const n=e[0],r=e[1],i=e[2],o=n-2*r+i;if(o!==0){const a=-eb(r*r-n*i),s=-n+r,l=-(a+s)/o,c=-(-a+s)/o;return[l,c]}else if(r!==i&&o===0)return[(2*r-i)/(2*(r-i))];return[]}if(e.length===2){const n=e[0],r=e[1];return n!==r?[n/(n-r)]:[]}return[]},curvature:function(e,n,r,i,o){let a,s,l,c,u=0,d=0;const f=$n.compute(e,n),p=$n.compute(e,r),h=f.x*f.x+f.y*f.y;if(i?(a=eb(Jf(f.y*p.z-p.y*f.z,2)+Jf(f.z*p.x-p.z*f.x,2)+Jf(f.x*p.y-p.x*f.y,2)),s=Jf(h+f.z*f.z,3/2)):(a=f.x*p.y-f.y*p.x,s=Jf(h,3/2)),a===0||s===0)return{k:0,r:0};if(u=a/s,d=s/a,!o){const g=$n.curvature(e-.001,n,r,i,!0).k,v=$n.curvature(e+.001,n,r,i,!0).k;c=(v-u+(u-g))/2,l=(LM(v-u)+LM(u-g))/2}return{k:u,r:d,dk:c,adk:l}},inflections:function(e){if(e.length<4)return[];const n=$n.align(e,{p1:e[0],p2:e.slice(-1)[0]}),r=n[2].x*n[1].y,i=n[3].x*n[1].y,o=n[1].x*n[2].y,a=n[3].x*n[2].y,s=18*(-3*r+2*i+3*o-a),l=18*(3*r-i-3*o),c=18*(o-r);if($n.approximately(s,0)){if(!$n.approximately(l,0)){let p=-c/l;if(0<=p&&p<=1)return[p]}return[]}const u=2*s;if($n.approximately(u,0))return[];const d=l*l-4*s*c;if(d<0)return[];const f=Math.sqrt(d);return[(f-l)/u,-(l+f)/u].filter(function(p){return 0<=p&&p<=1})},bboxoverlap:function(e,n){const r=["x","y"],i=r.length;for(let o=0,a,s,l,c;o<i;o++)if(a=r[o],s=e[a].mid,l=n[a].mid,c=(e[a].size+n[a].size)/2,LM(s-l)>=c)return!1;return!0},expandbox:function(e,n){n.x.min<e.x.min&&(e.x.min=n.x.min),n.y.min<e.y.min&&(e.y.min=n.y.min),n.z&&n.z.min<e.z.min&&(e.z.min=n.z.min),n.x.max>e.x.max&&(e.x.max=n.x.max),n.y.max>e.y.max&&(e.y.max=n.y.max),n.z&&n.z.max>e.z.max&&(e.z.max=n.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,n,r){const i=e.bbox(),o=n.bbox(),a=1e5,s=r||.5;if(i.x.size+i.y.size<s&&o.x.size+o.y.size<s)return[(a*(e._t1+e._t2)/2|0)/a+"/"+(a*(n._t1+n._t2)/2|0)/a];let l=e.split(.5),c=n.split(.5),u=[{left:l.left,right:c.left},{left:l.left,right:c.right},{left:l.right,right:c.right},{left:l.right,right:c.left}];u=u.filter(function(f){return $n.bboxoverlap(f.left.bbox(),f.right.bbox())});let d=[];return u.length===0||(u.forEach(function(f){d=d.concat($n.pairiteration(f.left,f.right,s))}),d=d.filter(function(f,p){return d.indexOf(f)===p})),d},getccenter:function(e,n,r){const i=n.x-e.x,o=n.y-e.y,a=r.x-n.x,s=r.y-n.y,l=i*Nv(tb)-o*zx(tb),c=i*zx(tb)+o*Nv(tb),u=a*Nv(tb)-s*zx(tb),d=a*zx(tb)+s*Nv(tb),f=(e.x+n.x)/2,p=(e.y+n.y)/2,h=(n.x+r.x)/2,g=(n.y+r.y)/2,v=f+l,y=p+c,_=h+u,S=g+d,b=$n.lli8(f,p,v,y,h,g,_,S),E=$n.dist(b,e);let w=$M(e.y-b.y,e.x-b.x),C=$M(n.y-b.y,n.x-b.x),x=$M(r.y-b.y,r.x-b.x),T;return w<x?((w>C||C>x)&&(w+=v5),w>x&&(T=x,x=w,w=T)):x<C&&C<w?(T=x,x=w,w=T):x+=v5,b.s=w,b.e=x,b.r=E,b},numberSort:function(e,n){return e-n}};class xP{constructor(n){this.curves=[],this._3d=!1,n&&(this.curves=n,this._3d=this.curves[0]._3d)}valueOf(){return this.toString()}toString(){return"["+this.curves.map(function(n){return $n.pointsToString(n.points)}).join(", ")+"]"}addCurve(n){this.curves.push(n),this._3d=this._3d||n._3d}length(){return this.curves.map(function(n){return n.length()}).reduce(function(n,r){return n+r})}curve(n){return this.curves[n]}bbox(){const n=this.curves;for(var r=n[0].bbox(),i=1;i<n.length;i++)$n.expandbox(r,n[i].bbox());return r}offset(n){const r=[];return this.curves.forEach(function(i){r.push(...i.offset(n))}),new xP(r)}}const{abs:BM,min:C$e,max:w$e,cos:Oor,sin:Ror,acos:Ior,sqrt:jM}=Math,Nor=Math.PI;class La{constructor(n){let r=n&&n.forEach?n:Array.from(arguments).slice(),i=!1;if(typeof r[0]=="object"){i=r.length;const h=[];r.forEach(function(g){["x","y","z"].forEach(function(v){typeof g[v]<"u"&&h.push(g[v])})}),r=h}let o=!1;const a=r.length;if(i){if(i>4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");o=!0}}else if(a!==6&&a!==8&&a!==9&&a!==12&&arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const s=this._3d=!o&&(a===9||a===12)||n&&n[0]&&typeof n[0].z<"u",l=this.points=[];for(let h=0,g=s?3:2;h<a;h+=g){var c={x:r[h],y:r[h+1]};s&&(c.z=r[h+2]),l.push(c)}const u=this.order=l.length-1,d=this.dims=["x","y"];s&&d.push("z"),this.dimlen=d.length;const f=$n.align(l,{p1:l[0],p2:l[u]}),p=$n.dist(l[0],l[u]);this._linear=f.reduce((h,g)=>h+BM(g.y),0)<p/50,this._lut=[],this._t1=0,this._t2=1,this.update()}static quadraticFromPoints(n,r,i,o){if(typeof o>"u"&&(o=.5),o===0)return new La(r,r,i);if(o===1)return new La(n,r,r);const a=La.getABC(2,n,r,i,o);return new La(n,a.A,i)}static cubicFromPoints(n,r,i,o,a){typeof o>"u"&&(o=.5);const s=La.getABC(3,n,r,i,o);typeof a>"u"&&(a=$n.dist(r,s.C));const l=a*(1-o)/o,c=$n.dist(n,i),u=(i.x-n.x)/c,d=(i.y-n.y)/c,f=a*u,p=a*d,h=l*u,g=l*d,v={x:r.x-f,y:r.y-p},y={x:r.x+h,y:r.y+g},_=s.A,S={x:_.x+(v.x-_.x)/(1-o),y:_.y+(v.y-_.y)/(1-o)},b={x:_.x+(y.x-_.x)/o,y:_.y+(y.y-_.y)/o},E={x:n.x+(S.x-n.x)/o,y:n.y+(S.y-n.y)/o},w={x:i.x+(b.x-i.x)/(1-o),y:i.y+(b.y-i.y)/(1-o)};return new La(n,E,w,i)}static getUtils(){return $n}getUtils(){return La.getUtils()}static get PolyBezier(){return xP}valueOf(){return this.toString()}toString(){return $n.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const n=this.points,r=n[0].x,i=n[0].y,o=["M",r,i,this.order===2?"Q":"C"];for(let a=1,s=n.length;a<s;a++)o.push(n[a].x),o.push(n[a].y);return o.join(" ")}setRatios(n){if(n.length!==this.points.length)throw new Error("incorrect number of ratio values");this.ratios=n,this._lut=[]}verify(){const n=this.coordDigest();n!==this._print&&(this._print=n,this.update())}coordDigest(){return this.points.map(function(n,r){return""+r+n.x+n.y+(n.z?n.z:0)}).join("")}update(){this._lut=[],this.dpoints=$n.derive(this.points,this._3d),this.computedirection()}computedirection(){const n=this.points,r=$n.angle(n[0],n[this.order],n[1]);this.clockwise=r>0}length(){return $n.length(this.derivative.bind(this))}static getABC(n=2,r,i,o,a=.5){const s=$n.projectionratio(a,n),l=1-s,c={x:s*r.x+l*o.x,y:s*r.y+l*o.y},u=$n.abcratio(a,n);return{A:{x:i.x+(i.x-c.x)/u,y:i.y+(i.y-c.y)/u},B:i,C:c,S:r,E:o}}getABC(n,r){r=r||this.get(n);let i=this.points[0],o=this.points[this.order];return La.getABC(this.order,i,r,o,n)}getLUT(n){if(this.verify(),n=n||100,this._lut.length===n+1)return this._lut;this._lut=[],n++,this._lut=[];for(let r=0,i,o;r<n;r++)o=r/(n-1),i=this.compute(o),i.t=o,this._lut.push(i);return this._lut}on(n,r){r=r||5;const i=this.getLUT(),o=[];for(let a=0,s,l=0;a<i.length;a++)s=i[a],$n.dist(s,n)<r&&(o.push(s),l+=a/i.length);return o.length?t/=o.length:!1}project(n){const r=this.getLUT(),i=r.length-1,o=$n.closest(r,n),a=o.mpos,s=(a-1)/i,l=(a+1)/i,c=.1/i;let u=o.mdist,d=s,f=d,p;u+=1;for(let h;d<l+c;d+=c)p=this.compute(d),h=$n.dist(n,p),h<u&&(u=h,f=d);return f=f<0?0:f>1?1:f,p=this.compute(f),p.t=f,p.d=u,p}get(n){return this.compute(n)}point(n){return this.points[n]}compute(n){return this.ratios?$n.computeWithRatios(n,this.points,this.ratios,this._3d):$n.compute(n,this.points,this._3d,this.ratios)}raise(){const n=this.points,r=[n[0]],i=n.length;for(let o=1,a,s;o<i;o++)a=n[o],s=n[o-1],r[o]={x:(i-o)/i*a.x+o/i*s.x,y:(i-o)/i*a.y+o/i*s.y};return r[i]=n[i-1],new La(r)}derivative(n){return $n.compute(n,this.dpoints[0],this._3d)}dderivative(n){return $n.compute(n,this.dpoints[1],this._3d)}align(){let n=this.points;return new La($n.align(n,{p1:n[0],p2:n[n.length-1]}))}curvature(n){return $n.curvature(n,this.dpoints[0],this.dpoints[1],this._3d)}inflections(){return $n.inflections(this.points)}normal(n){return this._3d?this.__normal3(n):this.__normal2(n)}__normal2(n){const r=this.derivative(n),i=jM(r.x*r.x+r.y*r.y);return{t:n,x:-r.y/i,y:r.x/i}}__normal3(n){const r=this.derivative(n),i=this.derivative(n+.01),o=jM(r.x*r.x+r.y*r.y+r.z*r.z),a=jM(i.x*i.x+i.y*i.y+i.z*i.z);r.x/=o,r.y/=o,r.z/=o,i.x/=a,i.y/=a,i.z/=a;const s={x:i.y*r.z-i.z*r.y,y:i.z*r.x-i.x*r.z,z:i.x*r.y-i.y*r.x},l=jM(s.x*s.x+s.y*s.y+s.z*s.z);s.x/=l,s.y/=l,s.z/=l;const c=[s.x*s.x,s.x*s.y-s.z,s.x*s.z+s.y,s.x*s.y+s.z,s.y*s.y,s.y*s.z-s.x,s.x*s.z-s.y,s.y*s.z+s.x,s.z*s.z];return{t:n,x:c[0]*r.x+c[1]*r.y+c[2]*r.z,y:c[3]*r.x+c[4]*r.y+c[5]*r.z,z:c[6]*r.x+c[7]*r.y+c[8]*r.z}}hull(n){let r=this.points,i=[],o=[],a=0;for(o[a++]=r[0],o[a++]=r[1],o[a++]=r[2],this.order===3&&(o[a++]=r[3]);r.length>1;){i=[];for(let s=0,l,c=r.length-1;s<c;s++)l=$n.lerp(n,r[s],r[s+1]),o[a++]=l,i.push(l);r=i}return o}split(n,r){if(n===0&&r)return this.split(r).left;if(r===1)return this.split(n).right;const i=this.hull(n),o={left:this.order===2?new La([i[0],i[3],i[5]]):new La([i[0],i[4],i[7],i[9]]),right:this.order===2?new La([i[5],i[4],i[2]]):new La([i[9],i[8],i[6],i[3]]),span:i};return o.left._t1=$n.map(0,0,1,this._t1,this._t2),o.left._t2=$n.map(n,0,1,this._t1,this._t2),o.right._t1=$n.map(n,0,1,this._t1,this._t2),o.right._t2=$n.map(1,0,1,this._t1,this._t2),r?(r=$n.map(r,n,1,0,1),o.right.split(r).left):o}extrema(){const n={};let r=[];return this.dims.forEach((function(i){let o=function(s){return s[i]},a=this.dpoints[0].map(o);n[i]=$n.droots(a),this.order===3&&(a=this.dpoints[1].map(o),n[i]=n[i].concat($n.droots(a))),n[i]=n[i].filter(function(s){return s>=0&&s<=1}),r=r.concat(n[i].sort($n.numberSort))}).bind(this)),n.values=r.sort($n.numberSort).filter(function(i,o){return r.indexOf(i)===o}),n}bbox(){const n=this.extrema(),r={};return this.dims.forEach((function(i){r[i]=$n.getminmax(this,i,n[i])}).bind(this)),r}overlaps(n){const r=this.bbox(),i=n.bbox();return $n.bboxoverlap(r,i)}offset(n,r){if(typeof r<"u"){const i=this.get(n),o=this.normal(n),a={c:i,n:o,x:i.x+o.x*r,y:i.y+o.y*r};return this._3d&&(a.z=i.z+o.z*r),a}if(this._linear){const i=this.normal(0),o=this.points.map(function(a){const s={x:a.x+n*i.x,y:a.y+n*i.y};return a.z&&i.z&&(s.z=a.z+n*i.z),s});return[new La(o)]}return this.reduce().map(function(i){return i._linear?i.offset(n)[0]:i.scale(n)})}simple(){if(this.order===3){const o=$n.angle(this.points[0],this.points[3],this.points[1]),a=$n.angle(this.points[0],this.points[3],this.points[2]);if(o>0&&a<0||o<0&&a>0)return!1}const n=this.normal(0),r=this.normal(1);let i=n.x*r.x+n.y*r.y;return this._3d&&(i+=n.z*r.z),BM(Ior(i))<Nor/3}reduce(){let n,r=0,i=0,o=.01,a,s=[],l=[],c=this.extrema().values;for(c.indexOf(0)===-1&&(c=[0].concat(c)),c.indexOf(1)===-1&&c.push(1),r=c[0],n=1;n<c.length;n++)i=c[n],a=this.split(r,i),a._t1=r,a._t2=i,s.push(a),r=i;return s.forEach(function(u){for(r=0,i=0;i<=1;)for(i=r+o;i<=1+o;i+=o)if(a=u.split(r,i),!a.simple()){if(i-=o,BM(r-i)<o)return[];a=u.split(r,i),a._t1=$n.map(r,0,1,u._t1,u._t2),a._t2=$n.map(i,0,1,u._t1,u._t2),l.push(a),r=i;break}r<1&&(a=u.split(r,1),a._t1=$n.map(r,0,1,u._t1,u._t2),a._t2=u._t2,l.push(a))}),l}translate(n,r,i){i=typeof i=="number"?i:r;const o=this.order;let a=this.points.map((s,l)=>(1-l/o)*r+l/o*i);return new La(this.points.map((s,l)=>({x:s.x+n.x*a[l],y:s.y+n.y*a[l]})))}scale(n){const r=this.order;let i=!1;if(typeof n=="function"&&(i=n),i&&r===2)return this.raise().scale(i);const o=this.clockwise,a=this.points;if(this._linear)return this.translate(this.normal(0),i?i(0):n,i?i(1):n);const s=i?i(0):n,l=i?i(1):n,c=[this.offset(0,10),this.offset(1,10)],u=[],d=$n.lli4(c[0],c[0].c,c[1],c[1].c);if(!d)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach(function(f){const p=u[f*r]=$n.copy(a[f*r]);p.x+=(f?l:s)*c[f].n.x,p.y+=(f?l:s)*c[f].n.y}),i?([0,1].forEach(function(f){if(!(r===2&&f)){var p=a[f+1],h={x:p.x-d.x,y:p.y-d.y},g=i?i((f+1)/r):n;i&&!o&&(g=-g);var v=jM(h.x*h.x+h.y*h.y);h.x/=v,h.y/=v,u[f+1]={x:p.x+g*h.x,y:p.y+g*h.y}}}),new La(u)):([0,1].forEach(f=>{if(r===2&&f)return;const p=u[f*r],h=this.derivative(f),g={x:p.x+h.x,y:p.y+h.y};u[f+1]=$n.lli4(p,g,d,a[f+1])}),new La(u))}outline(n,r,i,o){if(r=r===void 0?n:r,this._linear){const w=this.normal(0),C=this.points[0],x=this.points[this.points.length-1];let T,R,O;i===void 0&&(i=n,o=r),T={x:C.x+w.x*n,y:C.y+w.y*n},O={x:x.x+w.x*i,y:x.y+w.y*i},R={x:(T.x+O.x)/2,y:(T.y+O.y)/2};const M=[T,R,O];T={x:C.x-w.x*r,y:C.y-w.y*r},O={x:x.x-w.x*o,y:x.y-w.y*o},R={x:(T.x+O.x)/2,y:(T.y+O.y)/2};const P=[O,R,T],k=$n.makeline(P[2],M[0]),$=$n.makeline(M[2],P[0]),U=[k,new La(M),$,new La(P)];return new xP(U)}const a=this.reduce(),s=a.length,l=[];let c=[],u,d=0,f=this.length();const p=typeof i<"u"&&typeof o<"u";function h(w,C,x,T,R){return function(O){const M=T/x,P=(T+R)/x,k=C-w;return $n.map(O,0,1,w+M*k,w+P*k)}}a.forEach(function(w){const C=w.length();p?(l.push(w.scale(h(n,i,f,d,C))),c.push(w.scale(h(-r,-o,f,d,C)))):(l.push(w.scale(n)),c.push(w.scale(-r))),d+=C}),c=c.map(function(w){return u=w.points,u[3]?w.points=[u[3],u[2],u[1],u[0]]:w.points=[u[2],u[1],u[0]],w}).reverse();const g=l[0].points[0],v=l[s-1].points[l[s-1].points.length-1],y=c[s-1].points[c[s-1].points.length-1],_=c[0].points[0],S=$n.makeline(y,g),b=$n.makeline(v,_),E=[S].concat(l).concat([b]).concat(c);return new xP(E)}outlineshapes(n,r,i){r=r||n;const o=this.outline(n,r).curves,a=[];for(let s=1,l=o.length;s<l/2;s++){const c=$n.makeshape(o[s],o[l-s],i);c.startcap.virtual=s>1,c.endcap.virtual=s<l/2-1,a.push(c)}return a}intersects(n,r){return n?n.p1&&n.p2?this.lineIntersects(n):(n instanceof La&&(n=n.reduce()),this.curveintersects(this.reduce(),n,r)):this.selfintersects(r)}lineIntersects(n){const r=C$e(n.p1.x,n.p2.x),i=C$e(n.p1.y,n.p2.y),o=w$e(n.p1.x,n.p2.x),a=w$e(n.p1.y,n.p2.y);return $n.roots(this.points,n).filter(s=>{var l=this.get(s);return $n.between(l.x,r,o)&&$n.between(l.y,i,a)})}selfintersects(n){const r=this.reduce(),i=r.length-2,o=[];for(let a=0,s,l,c;a<i;a++)l=r.slice(a,a+1),c=r.slice(a+2),s=this.curveintersects(l,c,n),o.push(...s);return o}curveintersects(n,r,i){const o=[];n.forEach(function(s){r.forEach(function(l){s.overlaps(l)&&o.push({left:s,right:l})})});let a=[];return o.forEach(function(s){const l=$n.pairiteration(s.left,s.right,i);l.length>0&&(a=a.concat(l))}),a}arcs(n){return n=n||.5,this._iterate(n,[])}_error(n,r,i,o){const a=(o-i)/4,s=this.get(i+a),l=this.get(o-a),c=$n.dist(n,r),u=$n.dist(n,s),d=$n.dist(n,l);return BM(u-c)+BM(d-c)}_iterate(n,r){let i=0,o=1,a;do{a=0,o=1;let s=this.get(i),l,c,u,d,f=!1,p=!1,h,g=o,v=1;do if(p=f,d=u,g=(i+o)/2,l=this.get(g),c=this.get(o),u=$n.getccenter(s,l,c),u.interval={start:i,end:o},f=this._error(u,s,i,o)<=n,h=p&&!f,h||(v=o),f){if(o>=1){if(u.interval.end=v=1,d=u,o>1){let _={x:u.x+u.r*Oor(u.e),y:u.y+u.r*Ror(u.e)};u.e+=$n.angle({x:u.x,y:u.y},_,this.get(1))}break}o=o+(o-i)/2}else o=g;while(!h&&a++<100);if(a>=100)break;d=d||u,r.push(d),i=v}while(o<1);return r}}var Mor=Object.defineProperty,Por=Object.getOwnPropertyDescriptor,kS=(e,n,r,i)=>{for(var o=i>1?void 0:i?Por(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Mor(n,r,o),o},Aor=3,Dor=2,kor="workflow-port-bg",Lor=oi.div`
width: 20px;
height: 20px;
border-radius: 50%;
margin-top: -10px;
margin-left: -10px;
left: 50%;
top: 50%;
position: absolute;
// 非 hover 状态下的样式
border: none;
& > .symbol {
opacity: 0;
}
.bg-circle {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
border-radius: 50%;
width: 20px;
height: 20px;
background-color: #fff;
transform: scale(0.5);
transition: all 0.2s linear 0s;
}
.bg {
display: flex;
align-items: center;
justify-content: center;
position: relative;
width: 100%;
height: 100%;
border-radius: 50%;
background: #9197F1;
transform: scale(0.4, 0.4);
transition: all 0.2s linear 0s;
&.hasError {
background: red;
}
.symbol {
position: absolute;
width: 14px;
height: 14px;
opacity: 0;
pointer-events: none;
color: #fff;
transition: opacity 0.2s linear 0s;
& > svg {
width: 14px;
height: 14px;
}
}
.focus-circle {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
width: 8px;
height: 8px;
opacity: 0;
background: #9197f1;
border-radius: 50%;
transition: opacity 0.2s linear 0s;
}
}
&.linked .bg:not(.hasError) {
background: #4d53e8;
}
&.hovered .bg:not(.hasError) {
border: none;
cursor: crosshair;
transform: scale(1, 1);
background: #4d53e8;
& > .symbol {
opacity: 1;
}
}
.cross-hair {
position: relative;
left: 2px;
top: 2px;
&::after,
&::before {
content: '';
background: #fff;
border-radius: 2px;
position: absolute;
}
&::after {
left: 4px;
width: 2px;
height: 6px;
box-shadow: 0 4px #fff;
}
&::before {
top: 4px;
width: 6px;
height: 2px;
box-shadow: 4px 0 #fff;
}
`;function $or(){return V.createElement("div",{className:"symbol"},V.createElement("div",{className:"cross-hair"}))}var ZV=V.memo(e=>{var x;const n=Di(If),r=Di(Ql),{entity:i,onClick:o}=e,{portType:a,relativePosition:s,disabled:l}=i,[c,u]=m.useState(i.targetElement),[d,f]=m.useState(s.x),[p,h]=m.useState(s.y),[g,v]=m.useState(!1),[y,_]=m.useState(!!((x=i==null?void 0:i.lines)!=null&&x.length)),[S,b]=m.useState(e.entity.hasError),E=Hat();m.useEffect(()=>{i.validate(),b(i.hasError);const T=i.onEntityChange(()=>{if(i.targetElement){i.targetElement!==c&&u(i.targetElement);return}const P=i.relativePosition;f(Math.round(P.x)),h(Math.round(P.y))}),R=n.onHoveredChange(P=>{v(n.isHovered(i.id))}),O=i.onErrorChanged(()=>{b(i.hasError)}),M=r.onAvailableLinesChange(()=>{setTimeout(()=>{r.disposed||i.disposed||_(!!i.lines.length)},0)});return()=>{T.dispose(),R.dispose(),O.dispose(),M.dispose()}},[n,i,c]);const w=iy(e.className||"",{hovered:!E&&g&&!l&&a!=="input",linked:y}),C=V.createElement(Lor,{className:w,style:c?e.style:{...e.style,left:d,top:p},onClick:o,"data-port-entity-id":i.id,"data-port-entity-type":i.portType,"data-testid":"sdk.workflow.canvas.node.port"},V.createElement("div",{className:iy("bg-circle","workflow-bg-circle")}),V.createElement("div",{className:iy({bg:!0,[kor]:!0,"workflow-point-bg":!0,hasError:S})},V.createElement($or,null)),V.createElement("div",{className:"focus-circle"}));return c?Gl.createPortal(C,c):C}),Ac=6,zj=12,For=oi.div.attrs({className:"gedit-flow-activity-edge"})`
position: absolute;
@keyframes flowingDash {
to {
stroke-dashoffset: -13;
}
}
.dashed-line {
stroke-dasharray: 8, 5;
}
.flowing-line {
animation: flowingDash 0.5s linear infinite;
}
`;function Bor({id:e,pos:n,reverseArrow:r,strokeWidth:i,vertical:o,hide:a}){if(a)return null;const s=o?r?`M ${n.x-Ac},${n.y} L ${n.x},${n.y-Ac} L ${n.x+Ac},${n.y}`:`M ${n.x-Ac},${n.y-Ac} L ${n.x},${n.y} L ${n.x+Ac},${n.y-Ac}`:r?`M ${n.x},${n.y+Ac} L ${n.x-Ac},${n.y} L ${n.x},${n.y-Ac}`:`M ${n.x-Ac},${n.y-Ac} L ${n.x},${n.y} L ${n.x-Ac},${n.y+Ac}`;return V.createElement("path",{d:s,strokeLinecap:"round",stroke:`url(#${e})`,fill:"none",strokeWidth:i})}var Vx=12,jor=e=>{const{line:n,color:r,selected:i,children:o,strokePrefix:a}=e,{position:s,reverse:l,vertical:c,hideArrow:u}=n,d=n.getData(Sy),{bounds:f,path:p}=d,h=w=>({x:w.x-f.x+Vx,y:w.y-f.y+Vx}),g=h(s.from),v=h(s.to),y=c?{x:v.x,y:v.y-yp}:{x:v.x-yp,y:v.y},_=c?{x:g.x,y:g.y+yp+Ac}:{x:g.x+yp+Ac,y:g.y},S=i?Aor:Dor,b=a?`${a}-${n.id}`:n.id,E=V.createElement("path",{d:p,fill:"none",stroke:`url(#${b})`,strokeWidth:S,className:iy(n.className,!n.className&&(n.processing||n.flowing?"dashed-line flowing-line":""))});return V.createElement(For,{style:{left:f.x-Vx,top:f.y-Vx,position:"absolute"}},o,V.createElement("svg",{width:f.width+Vx*2,height:f.height+Vx*2},V.createElement("defs",null,V.createElement("linearGradient",{x1:c?"100%":"0%",y1:c?"0%":"100%",x2:"100%",y2:"100%",id:b,gradientUnits:"userSpaceOnUse"},V.createElement("stop",{stopColor:r,offset:"0%"}),V.createElement("stop",{stopColor:r,offset:"100%"}))),V.createElement("g",null,E,V.createElement(Bor,{id:b,reverseArrow:l,pos:l?_:y,strokeWidth:S,vertical:c,hide:u}))))},Uor=m.memo(jor,(e,n)=>e.version===n.version),hg=class extends Oa{constructor(){super(...arguments),this.layerID=tve(),this.mountedLines=new Map,this._version=0,this.node=Tr.createDivWithClass("gedit-playground-layer gedit-flow-lines-layer")}onZoom(e){this.node.style.transform=`scale(${e})`}onReady(){this.pipelineNode.appendChild(this.node),this.toDispose.pushAll([this.selectService.onSelectionChanged(()=>this.render()),this.hoverService.onHoveredChange(()=>this.render()),this.workflowDocument.linesManager.onForceUpdate(()=>{this.mountedLines.clear(),this.bumpVersion(),this.render()})])}dispose(){this.mountedLines.clear()}render(){const[,e]=m.useState({});m.useLayoutEffect(()=>{const i=requestAnimationFrame(()=>{let o=!1;this.lines.forEach(a=>{const s=a.getData(Sy),l=s.renderVersion;s.update(),s.renderVersion!==l&&(o=!0)}),o&&e({})});return()=>cancelAnimationFrame(i)},[this.lines]);const n=this.lines.map(r=>this.renderLine(r));return V.createElement(V.Fragment,null,n)}bumpVersion(){this._version=this._version+1,this._version===Number.MAX_SAFE_INTEGER&&(this._version=0)}lineProps(e){const{lineType:n}=this.workflowDocument.linesManager,r=this.selectService.isSelected(e.id),i=this.hoverService.isHovered(e.id),o=this.lineVersion(e);return{key:e.id,color:e.color,selected:r,hovered:i,line:e,lineType:n,version:o,strokePrefix:this.layerID}}lineVersion(e){const n=e.getData(Sy),{renderVersion:r}=n,i=this.selectService.isSelected(e.id),o=this.hoverService.isHovered(e.id),{version:a,color:s}=e;return`v:${this._version},lv:${a},rv:${r},c:${s},s:${i?"T":"F"},h:${o?"T":"F"}`}lineComponent(e){const n=this.options.renderInsideLine??(()=>V.createElement(V.Fragment,null));return V.createElement(Uor,{...e},V.createElement(n,{...e}))}renderLine(e){const n=this.lineProps(e),r=this.mountedLines.get(e.id),i=r!==void 0,{portal:o,version:a}=r??{};if(i&&a===n.version)return o;i||(this.renderElement.appendChild(e.node),e.onDispose(()=>{this.mountedLines.delete(e.id),e.node.remove()}));const s=Gl.createPortal(this.lineComponent(n),e.node);return this.mountedLines.set(e.id,{line:e,portal:s,version:n.version}),s}get renderElement(){return this.stackContext.node}};hg.type="WorkflowLinesLayer";kS([Ot(If)],hg.prototype,"hoverService",2);kS([Ot(Wa)],hg.prototype,"selectService",2);kS([Ot(mu)],hg.prototype,"stackContext",2);kS([Ime(Zd)],hg.prototype,"lines",2);kS([Ime(LC)],hg.prototype,"ports",2);kS([uv(Dp,Ui)],hg.prototype,"trans",2);kS([Ot(ei)],hg.prototype,"workflowDocument",2);hg=kS([Pn()],hg);var Qb=300;function Hor(e,n){const r=Qn.createRectangleWithTwoPoints(e,n);let i;e.x<=n.x?i=e.y<=n.y?1:0:i=e.y<=n.y?3:2;let o;switch(i){case 0:o=[{x:r.rightBottom.x-r.width/2,y:r.rightBottom.y},{x:r.leftTop.x+r.width/2,y:r.leftTop.y}];break;case 1:o=[{x:r.rightTop.x-r.width/2,y:r.rightTop.y},{x:r.leftBottom.x+r.width/2,y:r.leftBottom.y}];break;case 2:o=[{x:r.rightBottom.x+Math.min(r.width,Qb),y:r.rightBottom.y},{x:r.leftTop.x-Math.min(r.width,Qb),y:r.leftTop.y}];break;case 3:o=[{x:r.rightTop.x+Math.min(r.width,Qb),y:r.rightTop.y},{x:r.leftBottom.x-Math.min(r.width,Qb),y:r.leftBottom.y}]}return o}function zor(e,n){const r=Qn.createRectangleWithTwoPoints(e,n);let i;e.y<=n.y?i=e.x<=n.x?1:3:i=e.x<=n.x?0:2;let o;switch(i){case 1:o=[{x:r.leftTop.x,y:r.leftTop.y+r.height/2},{x:r.rightBottom.x,y:r.rightBottom.y-r.height/2}];break;case 3:o=[{x:r.rightTop.x,y:r.rightTop.y+r.height/2},{x:r.leftBottom.x,y:r.leftBottom.y-r.height/2}];break;case 0:o=[{x:r.leftBottom.x,y:r.leftBottom.y+Math.min(r.height,Qb)},{x:r.rightTop.x,y:r.rightTop.y-Math.min(r.height,Qb)}];break;case 2:o=[{x:r.rightBottom.x,y:r.rightBottom.y+Math.min(r.height,Qb)},{x:r.leftTop.x,y:r.leftTop.y-Math.min(r.height,Qb)}];break}return o}var Rst=class{constructor(e){this.entity=e}get path(){var e;return((e=this.data)==null?void 0:e.path)??""}calcDistance(e){return this.data?gf.getDistance(e,this.data.bezier.project(e)):Number.MAX_SAFE_INTEGER}get bounds(){return this.data?this.data.bbox:new Qn}update(e){this.data=this.calcBezier(e.fromPos,e.toPos)}calcBezier(e,n){const r=this.entity.vertical?zor(e,n):Hor(e,n),i=new La([e,...r,n]),o=i.bbox(),a=new Qn(o.x.min,o.y.min,o.x.max-o.x.min,o.y.max-o.y.min),s=this.getPath({bbox:a,fromPos:e,toPos:n,controls:r});return this.data={fromPos:e,toPos:n,bezier:i,bbox:a,controls:r,path:s},this.data}getPath(e){const{bbox:n}=e,r=u=>({x:u.x-n.x+zj,y:u.y-n.y+zj}),i=r(e.fromPos),o=r(e.toPos),a=e.controls.map(u=>r(u)),s=this.entity.vertical?{x:o.x,y:o.y-yp}:{x:o.x-yp,y:o.y};return(()=>{const u=a.map(f=>`${f.x} ${f.y}`).join(","),d=a.length===1?"S":"C";return this.entity.vertical?`M${i.x} ${i.y+yp} ${d} ${u}, ${s.x} ${s.y}`:`M${i.x+yp} ${i.y} ${d} ${u}, ${s.x} ${s.y}`})()}};Rst.type=Jme.BEZIER;var Vor=(e,n,r)=>{const{x:i,y:o}=e,{x:a,y:s}=n,{x:l,y:c}=r,u=i-a,d=o-s,f=l-a,p=c-s,h=u*f+d*p,g=f*f+p*p,v=g===0?-1:h/g;let y,_;v<0?(y=a,_=s):v>1?(y=l,_=c):(y=a+v*f,_=s+v*p);const S=i-y,b=o-_;return Math.sqrt(S*S+b*b)},IT;(e=>{function i({source:u,target:d}){const f=Math.abs(d.x-u.x)/2,p=d.x<u.x?d.x+f:d.x-f,h=Math.abs(d.y-u.y)/2,g=d.y<u.y?d.y+h:d.y-h;return[p,g]}const o=({source:u,target:d})=>u.x<d.x?{x:1,y:0}:{x:-1,y:0};function a({source:u,target:d,vertical:f=!1}){const p=f?{x:0,y:1}:{x:1,y:0},h=f?{x:0,y:-1}:{x:-1,y:0},g={x:u.x+p.x*20,y:u.y+p.y*20},v={x:d.x+h.x*20,y:d.y+h.y*20},y=f?{x:0,y:g.y<v.y?1:-1}:o({source:g,target:v}),_=y.x!==0?"x":"y",S=y[_];let b=[],E,w;const[C,x]=i({source:u,target:d});if(p[_]*h[_]===-1){E=C,w=x;const R=[{x:E,y:g.y},{x:E,y:v.y}],O=[{x:g.x,y:w},{x:v.x,y:w}];p[_]===S?b=_==="x"?R:O:b=_==="x"?O:R}else{const R=[{x:g.x,y:v.y}],O=[{x:v.x,y:g.y}];_==="x"?b=p.x===S?O:R:b=p.y===S?R:O;const M=_==="x"?"y":"x",P=p[_]===h[M],k=g[M]>v[M],$=g[M]<v[M];(p[_]===1&&(!P&&k||P&&$)||p[_]!==1&&(!P&&$||P&&k))&&(b=_==="x"?R:O);const z={x:g.x,y:g.y},D={x:v.x,y:v.y},B=Math.max(Math.abs(z.x-b[0].x),Math.abs(D.x-b[0].x)),Y=Math.max(Math.abs(z.y-b[0].y),Math.abs(D.y-b[0].y));B>=Y?(E=(z.x+D.x)/2,w=b[0].y):(E=b[0].x,w=(z.y+D.y)/2)}return[u,{x:g.x,y:g.y},...b,{x:v.x,y:v.y},d]}e.getPoints=a;function s(u,d,f){const p=Math.min(gf.getDistance(u,d)/2,gf.getDistance(d,f)/2,5),{x:h,y:g}=d;if(u.x===h&&h===f.x||u.y===g&&g===f.y)return`L${h} ${g}`;if(u.y===g){const _=u.x<f.x?-1:1,S=u.y<f.y?1:-1;return`L ${h+p*_},${g}Q ${h},${g} ${h},${g+p*S}`}const v=u.x<f.x?1:-1,y=u.y<f.y?-1:1;return`L ${h},${g+p*y}Q ${h},${g} ${h+p*v},${g}`}function l(u){return u.reduce((f,p,h)=>{let g="";return h>0&&h<u.length-1?g=s(u[h-1],p,u[h+1]):g=`${h===0?"M":"L"}${p.x} ${p.y}`,f+=g,f},"")}e.getSmoothStepPath=l;function c(u){const d=u.map(y=>y.x),f=u.map(y=>y.y),p=Math.min(...d),h=Math.max(...d),g=Math.min(...f),v=Math.max(...f);return Qn.createRectangleWithTwoPoints({x:p,y:g},{x:h,y:v})}e.getBounds=c,e.getFoldLineToPointDistance=(u,d)=>{if(u.length===0)return 1/0;if(u.length===1)return gf.getDistance(u[0],d);const f=[];for(let h=0;h<u.length-1;h++)f.push([u[h],u[h+1]]);const p=f.map(h=>{const[g,v]=h;return Vor(d,g,v)});return Math.min(...p)}})(IT||(IT={}));var Ist=class{constructor(e){this.entity=e}get path(){var e;return((e=this.data)==null?void 0:e.path)??""}calcDistance(e){return this.data?IT.getFoldLineToPointDistance(this.data.points,e):Number.MAX_SAFE_INTEGER}get bounds(){return this.data?this.data.bbox:new Qn}update(e){const{fromPos:n,toPos:r}=e,{vertical:i}=this.entity,o={x:i?0:yp,y:i?yp:0},a={x:i?0:-yp,y:i?-yp:0},s=IT.getPoints({source:{x:n.x+o.x,y:n.y+o.y},target:{x:r.x+a.x,y:r.y+a.y},vertical:i}),l=IT.getBounds(s),c=s.map(d=>({x:d.x-l.x+zj,y:d.y-l.y+zj})),u=IT.getSmoothStepPath(c);this.data={points:s,path:u,bbox:l}}};Ist.type=Jme.LINE_CHART;var Nst=pa({singleton:!0,onInit:(e,n)=>{e.playground.registerLayer(hg,{...n})},onReady:(e,n)=>{const r=e.container.get(Ql);r.registerContribution(Rst).registerContribution(Ist),n.contributions&&n.contributions.forEach(i=>{r.registerContribution(i)}),n.defaultLineType&&r.switchLineType(n.defaultLineType)}}),Gor=Object.defineProperty,Wor=Object.getOwnPropertyDescriptor,Ig=(e,n,r,i)=>{for(var o=i>1?void 0:i?Wor(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Gor(n,r,o),o},Yor=2;function qor(e,n=!0){const r=e.filter(i=>i instanceof Dp);return r.length>(n?1:0)?Qn.enlarge(r.map(i=>i.getData(hr).bounds)).pad(Yor):Qn.EMPTY}var Kor="workflow-port-bg",kse;(e=>{e.DEFAULT={canHovered:()=>!0}})(kse||(kse={}));var Xor=".gedit-flow-activity-line",Qor=".gedit-flow-activity-node",bd=class extends Oa{constructor(){super(...arguments),this.nodeTransformsWithSort=[]}autorun(){const{activatedNode:e}=this.selectionService;this.nodeTransformsWithSort=this.nodeTransforms.filter(n=>n.entity.id!=="root").reverse().sort(n=>n.entity===e?-1:0)}get isDrawing(){return this.linesManager.isDrawing}onReady(){this.options={...kse.DEFAULT,...this.options},this.toDispose.pushAll([this.listenPlaygroundEvent("mousemove",e=>{if(this.hoverService.hoveredPos=this.config.getPosFromMouseEvent(e),!this.isEnabled()||!this.options.canHovered(e,this.hoverService))return;const n=this.config.getPosFromMouseEvent(e);this.updateHoveredState(n,e==null?void 0:e.target)}),this.selectionService.onSelectionChanged(()=>this.autorun()),this.listenPlaygroundEvent("mousedown",e=>{var o;if(!this.isEnabled()||this.isDrawing)return;const{hoveredNode:n}=this.hoverService;if(n&&n instanceof Zd)return this.dragService.resetLine(n,e),!0;if(n&&n instanceof LC&&n.portType!=="input"&&!n.disabled&&e.button!==1)return e.stopPropagation(),e.preventDefault(),this.dragService.startDrawingLine(n,e),!0;const r=this.config.getPosFromMouseEvent(e),i=qor(this.selectionService.selection,!0);if(i.width>0&&i.contains(r.x,r.y))return(o=this.dragService.startDragSelectedNodes(e))==null||o.then(a=>{a||(n&&n instanceof Dp?e.shiftKey?this.selectionService.toggleSelect(n):this.selectionService.selectNode(n):this.selectionService.clear())}),!0;n||this.selectionService.clear()})])}updateHoveredState(e,n){var v,y,_;const{hoverService:r}=this,i=this.nodeTransformsWithSort,o=this.linesManager.getPortFromMousePos(e),s=[...this.playgroundNode.querySelectorAll(Xor)].some(S=>S.contains(n));if(o){if(o.portType==="output")r.updateHoveredKey(o.id);else if(s||(y=(v=n==null?void 0:n.className)==null?void 0:v.includes)!=null&&y.call(v,Kor)){const S=this.linesManager.getCloseInLineFromMousePos(e);S&&this.updateHoveredKey(S.id)}return}if(this.isDrawing)return;const l=(_=i.find(S=>S.bounds.contains(e.x,e.y)))==null?void 0:_.entity,u=[...this.playgroundNode.querySelectorAll(Qor)].some(S=>S.contains(n));(l||u)&&l!=null&&l.id&&this.updateHoveredKey(l.id);const d=!!(l!=null&&l.parent&&l.parent.flowNodeType!=="root"),f=s?this.linesManager.getCloseInLineFromMousePos(e):void 0,p=!!(f!=null&&f.inContainer);if(l&&d){this.updateHoveredKey(l.id);return}if(f&&p){this.updateHoveredKey(f.id);return}if(l){this.updateHoveredKey(l.id);return}if(f){this.hoverService.updateHoveredKey(f.id);return}r.clearHovered(),this.editorStateConfig.getCurrentState()===ko.STATE_MOUSE_FRIENDLY_SELECT&&!this.editorStateConfig.isPressingShift&&this.configEntity.updateCursor("grab")}updateHoveredKey(e){this.configEntity.updateCursor("default"),this.hoverService.updateHoveredKey(e)}isEnabled(){const e=this.editorStateConfig.getCurrentState();return(e===ko.STATE_SELECT||e===ko.STATE_MOUSE_FRIENDLY_SELECT)&&!this.selectorBoxConfigEntity.isStart&&!this.dragService.isDragging}};bd.type="HoverLayer";Ig([Ot(ei)],bd.prototype,"document",2);Ig([Ot(Wa)],bd.prototype,"selectionService",2);Ig([Ot(Ya)],bd.prototype,"dragService",2);Ig([Ot(If)],bd.prototype,"hoverService",2);Ig([Ot(Ql)],bd.prototype,"linesManager",2);Ig([zo(Hm)],bd.prototype,"editorStateConfig",2);Ig([zo(a$)],bd.prototype,"selectorBoxConfigEntity",2);Ig([Ot(da)],bd.prototype,"configEntity",2);Ig([uv(Dp,hr)],bd.prototype,"nodeTransforms",2);Ig([Ime(Zd)],bd.prototype,"lines",2);bd=Ig([Pn()],bd);var Zor=pa({onInit(e){e.playground.registerLayer(bd)}}),Jor="\0",CE="\0",x$e="";let ear=class{constructor(n){$t(this,"_isDirected",!0);$t(this,"_isMultigraph",!1);$t(this,"_isCompound",!1);$t(this,"_label");$t(this,"_defaultNodeLabelFn",()=>{});$t(this,"_defaultEdgeLabelFn",()=>{});$t(this,"_nodes",{});$t(this,"_in",{});$t(this,"_preds",{});$t(this,"_out",{});$t(this,"_sucs",{});$t(this,"_edgeObjs",{});$t(this,"_edgeLabels",{});$t(this,"_nodeCount",0);$t(this,"_edgeCount",0);$t(this,"_parent");$t(this,"_children");n&&(this._isDirected=n.hasOwnProperty("directed")?n.directed:!0,this._isMultigraph=n.hasOwnProperty("multigraph")?n.multigraph:!1,this._isCompound=n.hasOwnProperty("compound")?n.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[CE]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(n){return this._label=n,this}graph(){return this._label}setDefaultNodeLabel(n){return this._defaultNodeLabelFn=n,typeof n!="function"&&(this._defaultNodeLabelFn=()=>n),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var n=this;return this.nodes().filter(r=>Object.keys(n._in[r]).length===0)}sinks(){var n=this;return this.nodes().filter(r=>Object.keys(n._out[r]).length===0)}setNodes(n,r){var i=arguments,o=this;return n.forEach(function(a){i.length>1?o.setNode(a,r):o.setNode(a)}),this}setNode(n,r){return this._nodes.hasOwnProperty(n)?(arguments.length>1&&(this._nodes[n]=r),this):(this._nodes[n]=arguments.length>1?r:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=CE,this._children[n]={},this._children[CE][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)}node(n){return this._nodes[n]}hasNode(n){return this._nodes.hasOwnProperty(n)}removeNode(n){var r=this;if(this._nodes.hasOwnProperty(n)){var i=o=>r.removeEdge(r._edgeObjs[o]);delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],this.children(n).forEach(function(o){r.setParent(o)}),delete this._children[n]),Object.keys(this._in[n]).forEach(i),delete this._in[n],delete this._preds[n],Object.keys(this._out[n]).forEach(i),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this}setParent(n,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r===void 0)r=CE;else{r+="";for(var i=r;i!==void 0;i=this.parent(i))if(i===n)throw new Error("Setting "+r+" as parent of "+n+" would create a cycle");this.setNode(r)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=r,this._children[r][n]=!0,this}_removeFromParentsChildList(n){delete this._children[this._parent[n]][n]}parent(n){if(this._isCompound){var r=this._parent[n];if(r!==CE)return r}}children(n=CE){if(this._isCompound){var r=this._children[n];if(r)return Object.keys(r)}else{if(n===CE)return this.nodes();if(this.hasNode(n))return[]}}predecessors(n){var r=this._preds[n];if(r)return Object.keys(r)}successors(n){var r=this._sucs[n];if(r)return Object.keys(r)}neighbors(n){var r=this.predecessors(n);if(r){const o=new Set(r);for(var i of this.successors(n))o.add(i);return Array.from(o.values())}}isLeaf(n){var r;return this.isDirected()?r=this.successors(n):r=this.neighbors(n),r.length===0}filterNodes(n){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var i=this;Object.entries(this._nodes).forEach(function([s,l]){n(s)&&r.setNode(s,l)}),Object.values(this._edgeObjs).forEach(function(s){r.hasNode(s.v)&&r.hasNode(s.w)&&r.setEdge(s,i.edge(s))});var o={};function a(s){var l=i.parent(s);return l===void 0||r.hasNode(l)?(o[s]=l,l):l in o?o[l]:a(l)}return this._isCompound&&r.nodes().forEach(s=>r.setParent(s,a(s))),r}setDefaultEdgeLabel(n){return this._defaultEdgeLabelFn=n,typeof n!="function"&&(this._defaultEdgeLabelFn=()=>n),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(n,r){var i=this,o=arguments;return n.reduce(function(a,s){return o.length>1?i.setEdge(a,s,r):i.setEdge(a,s),s}),this}setEdge(){var n,r,i,o,a=!1,s=arguments[0];typeof s=="object"&&s!==null&&"v"in s?(n=s.v,r=s.w,i=s.name,arguments.length===2&&(o=arguments[1],a=!0)):(n=s,r=arguments[1],i=arguments[3],arguments.length>2&&(o=arguments[2],a=!0)),n=""+n,r=""+r,i!==void 0&&(i=""+i);var l=I2(this._isDirected,n,r,i);if(this._edgeLabels.hasOwnProperty(l))return a&&(this._edgeLabels[l]=o),this;if(i!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(r),this._edgeLabels[l]=a?o:this._defaultEdgeLabelFn(n,r,i);var c=tar(this._isDirected,n,r,i);return n=c.v,r=c.w,Object.freeze(c),this._edgeObjs[l]=c,T$e(this._preds[r],n),T$e(this._sucs[n],r),this._in[r][l]=c,this._out[n][l]=c,this._edgeCount++,this}edge(n,r,i){var o=arguments.length===1?YJ(this._isDirected,arguments[0]):I2(this._isDirected,n,r,i);return this._edgeLabels[o]}edgeAsObj(){const n=this.edge(...arguments);return typeof n!="object"?{label:n}:n}hasEdge(n,r,i){var o=arguments.length===1?YJ(this._isDirected,arguments[0]):I2(this._isDirected,n,r,i);return this._edgeLabels.hasOwnProperty(o)}removeEdge(n,r,i){var o=arguments.length===1?YJ(this._isDirected,arguments[0]):I2(this._isDirected,n,r,i),a=this._edgeObjs[o];return a&&(n=a.v,r=a.w,delete this._edgeLabels[o],delete this._edgeObjs[o],O$e(this._preds[r],n),O$e(this._sucs[n],r),delete this._in[r][o],delete this._out[n][o],this._edgeCount--),this}inEdges(n,r){var i=this._in[n];if(i){var o=Object.values(i);return r?o.filter(a=>a.v===r):o}}outEdges(n,r){var i=this._out[n];if(i){var o=Object.values(i);return r?o.filter(a=>a.w===r):o}}nodeEdges(n,r){var i=this.inEdges(n,r);if(i)return i.concat(this.outEdges(n,r))}};function T$e(e,n){e[n]?e[n]++:e[n]=1}function O$e(e,n){--e[n]||delete e[n]}function I2(e,n,r,i){var o=""+n,a=""+r;if(!e&&o>a){var s=o;o=a,a=s}return o+x$e+a+x$e+(i===void 0?Jor:i)}function tar(e,n,r,i){var o=""+n,a=""+r;if(!e&&o>a){var s=o;o=a,a=s}var l={v:o,w:a};return i&&(l.name=i),l}function YJ(e,n){return I2(e,n.v,n.w,n.name)}var fve=ear,nar="2.2.2",rar={Graph:fve,version:nar},iar=fve,oar={write:aar,read:car};function aar(e){var n={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:sar(e),edges:lar(e)};return e.graph()!==void 0&&(n.value=structuredClone(e.graph())),n}function sar(e){return e.nodes().map(function(n){var r=e.node(n),i=e.parent(n),o={v:n};return r!==void 0&&(o.value=r),i!==void 0&&(o.parent=i),o})}function lar(e){return e.edges().map(function(n){var r=e.edge(n),i={v:n.v,w:n.w};return n.name!==void 0&&(i.name=n.name),r!==void 0&&(i.value=r),i})}function car(e){var n=new iar(e.options).setGraph(e.value);return e.nodes.forEach(function(r){n.setNode(r.v,r.value),r.parent&&n.setParent(r.v,r.parent)}),e.edges.forEach(function(r){n.setEdge({v:r.v,w:r.w,name:r.name},r.value)}),n}var uar=dar;function dar(e){var n={},r=[],i;function o(a){n.hasOwnProperty(a)||(n[a]=!0,i.push(a),e.successors(a).forEach(o),e.predecessors(a).forEach(o))}return e.nodes().forEach(function(a){i=[],o(a),i.length&&r.push(i)}),r}let far=class{constructor(){$t(this,"_arr",[]);$t(this,"_keyIndices",{})}size(){return this._arr.length}keys(){return this._arr.map(function(n){return n.key})}has(n){return this._keyIndices.hasOwnProperty(n)}priority(n){var r=this._keyIndices[n];if(r!==void 0)return this._arr[r].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(n,r){var i=this._keyIndices;if(n=String(n),!i.hasOwnProperty(n)){var o=this._arr,a=o.length;return i[n]=a,o.push({key:n,priority:r}),this._decrease(a),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key}decrease(n,r){var i=this._keyIndices[n];if(r>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[i].priority+" New: "+r);this._arr[i].priority=r,this._decrease(i)}_heapify(n){var r=this._arr,i=2*n,o=i+1,a=n;i<r.length&&(a=r[i].priority<r[a].priority?i:a,o<r.length&&(a=r[o].priority<r[a].priority?o:a),a!==n&&(this._swap(n,a),this._heapify(a)))}_decrease(n){for(var r=this._arr,i=r[n].priority,o;n!==0&&(o=n>>1,!(r[o].priority<i));)this._swap(n,o),n=o}_swap(n,r){var i=this._arr,o=this._keyIndices,a=i[n],s=i[r];i[n]=s,i[r]=a,o[s.key]=n,o[a.key]=r}};var Mst=far,par=Mst,Pst=gar,har=()=>1;function gar(e,n,r,i){return mar(e,String(n),r||har,i||function(o){return e.outEdges(o)})}function mar(e,n,r,i){var o={},a=new par,s,l,c=function(u){var d=u.v!==s?u.v:u.w,f=o[d],p=r(u),h=l.distance+p;if(p<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+u+" Weight: "+p);h<f.distance&&(f.distance=h,f.predecessor=s,a.decrease(d,h))};for(e.nodes().forEach(function(u){var d=u===n?0:Number.POSITIVE_INFINITY;o[u]={distance:d},a.add(u,d)});a.size()>0&&(s=a.removeMin(),l=o[s],l.distance!==Number.POSITIVE_INFINITY);)i(s).forEach(c);return o}var yar=Pst,_ar=bar;function bar(e,n,r){return e.nodes().reduce(function(i,o){return i[o]=yar(e,o,n,r),i},{})}var Ast=Sar;function Sar(e){var n=0,r=[],i={},o=[];function a(s){var l=i[s]={onStack:!0,lowlink:n,index:n++};if(r.push(s),e.successors(s).forEach(function(d){i.hasOwnProperty(d)?i[d].onStack&&(l.lowlink=Math.min(l.lowlink,i[d].index)):(a(d),l.lowlink=Math.min(l.lowlink,i[d].lowlink))}),l.lowlink===l.index){var c=[],u;do u=r.pop(),i[u].onStack=!1,c.push(u);while(s!==u);o.push(c)}}return e.nodes().forEach(function(s){i.hasOwnProperty(s)||a(s)}),o}var Ear=Ast,Car=war;function war(e){return Ear(e).filter(function(n){return n.length>1||n.length===1&&e.hasEdge(n[0],n[0])})}var xar=Oar,Tar=()=>1;function Oar(e,n,r){return Rar(e,n||Tar,r||function(i){return e.outEdges(i)})}function Rar(e,n,r){var i={},o=e.nodes();return o.forEach(function(a){i[a]={},i[a][a]={distance:0},o.forEach(function(s){a!==s&&(i[a][s]={distance:Number.POSITIVE_INFINITY})}),r(a).forEach(function(s){var l=s.v===a?s.w:s.v,c=n(s);i[a][l]={distance:c,predecessor:a}})}),o.forEach(function(a){var s=i[a];o.forEach(function(l){var c=i[l];o.forEach(function(u){var d=c[a],f=s[u],p=c[u],h=d.distance+f.distance;h<p.distance&&(p.distance=h,p.predecessor=f.predecessor)})})}),i}function Dst(e){var n={},r={},i=[];function o(a){if(r.hasOwnProperty(a))throw new Lse;n.hasOwnProperty(a)||(r[a]=!0,n[a]=!0,e.predecessors(a).forEach(o),delete r[a],i.push(a))}if(e.sinks().forEach(o),Object.keys(n).length!==e.nodeCount())throw new Lse;return i}class Lse extends Error{constructor(){super(...arguments)}}var kst=Dst;Dst.CycleException=Lse;var R$e=kst,Iar=Nar;function Nar(e){try{R$e(e)}catch(n){if(n instanceof R$e.CycleException)return!1;throw n}return!0}var Lst=Mar;function Mar(e,n,r){Array.isArray(n)||(n=[n]);var i=e.isDirected()?l=>e.successors(l):l=>e.neighbors(l),o=r==="post"?Par:Aar,a=[],s={};return n.forEach(l=>{if(!e.hasNode(l))throw new Error("Graph does not have node: "+l);o(l,i,s,a)}),a}function Par(e,n,r,i){for(var o=[[e,!1]];o.length>0;){var a=o.pop();a[1]?i.push(a[0]):r.hasOwnProperty(a[0])||(r[a[0]]=!0,o.push([a[0],!0]),$st(n(a[0]),s=>o.push([s,!1])))}}function Aar(e,n,r,i){for(var o=[e];o.length>0;){var a=o.pop();r.hasOwnProperty(a)||(r[a]=!0,i.push(a),$st(n(a),s=>o.push(s)))}}function $st(e,n){for(var r=e.length;r--;)n(e[r],r,e);return e}var Dar=Lst,kar=Lar;function Lar(e,n){return Dar(e,n,"post")}var $ar=Lst,Far=Bar;function Bar(e,n){return $ar(e,n,"pre")}var jar=fve,Uar=Mst,Har=zar;function zar(e,n){var r=new jar,i={},o=new Uar,a;function s(c){var u=c.v===a?c.w:c.v,d=o.priority(u);if(d!==void 0){var f=n(c);f<d&&(i[u]=a,o.decrease(u,f))}}if(e.nodeCount()===0)return r;e.nodes().forEach(function(c){o.add(c,Number.POSITIVE_INFINITY),r.setNode(c)}),o.decrease(e.nodes()[0],0);for(var l=!1;o.size()>0;){if(a=o.removeMin(),i.hasOwnProperty(a))r.setEdge(a,i[a]);else{if(l)throw new Error("Input graph is not connected: "+e);l=!0}e.nodeEdges(a).forEach(s)}return r}var Var={components:uar,dijkstra:Pst,dijkstraAll:_ar,findCycles:Car,floydWarshall:xar,isAcyclic:Iar,postorder:kar,preorder:Far,prim:Har,tarjan:Ast,topsort:kst},I$e=rar,pv={Graph:I$e.Graph,json:oar,alg:Var,version:I$e.version},Gar=Object.defineProperty,War=Object.getOwnPropertyDescriptor,Fst=(e,n,r,i)=>{for(var o=i>1?void 0:i?War(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Gar(n,r,o),o},Yar=class{constructor(){let e={};e._next=e._prev=e,this._sentinel=e}dequeue(){let e=this._sentinel,n=e._prev;if(n!==e)return N$e(n),n}enqueue(e){let n=this._sentinel;e._prev&&e._next&&N$e(e),e._next=n._next,n._next._prev=e,n._next=e,e._prev=n}toString(){let e=[],n=this._sentinel,r=n._prev;for(;r!==n;)e.push(JSON.stringify(r,qar)),r=r._prev;return"["+e.join(", ")+"]"}};function N$e(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function qar(e,n){if(e!=="_next"&&e!=="_prev")return n}var Kar=Yar,Xar=Zar,Qar=()=>1;function Zar(e,n){if(e.nodeCount()<=1)return[];let r=esr(e,n||Qar);return Jar(r.graph,r.buckets,r.zeroIdx).flatMap(o=>e.outEdges(o.v,o.w))}function Jar(e,n,r){let i=[],o=n[n.length-1],a=n[0],s;for(;e.nodeCount();){for(;s=a.dequeue();)qJ(e,n,r,s);for(;s=o.dequeue();)qJ(e,n,r,s);if(e.nodeCount()){for(let l=n.length-2;l>0;--l)if(s=n[l].dequeue(),s){i=i.concat(qJ(e,n,r,s,!0));break}}}return i}function qJ(e,n,r,i,o){let a=o?[]:void 0;return e.inEdges(i.v).forEach(s=>{let l=e.edge(s),c=e.node(s.v);o&&a.push({v:s.v,w:s.w}),c.out-=l,$se(n,r,c)}),e.outEdges(i.v).forEach(s=>{let l=e.edge(s),c=s.w,u=e.node(c);u.in-=l,$se(n,r,u)}),e.removeNode(i.v),a}function esr(e,n){let r=new pv.Graph,i=0,o=0;e.nodes().forEach(l=>{r.setNode(l,{v:l,in:0,out:0})}),e.edges().forEach(l=>{let c=r.edge(l.v,l.w)||0,u=n(l),d=c+u;r.setEdge(l.v,l.w,d),o=Math.max(o,r.node(l.v).out+=u),i=Math.max(i,r.node(l.w).in+=u)});let a=tsr(o+i+3).map(()=>new Kar),s=i+1;return r.nodes().forEach(l=>{$se(a,s,r.node(l))}),{graph:r,buckets:a,zeroIdx:s}}function $se(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function tsr(e){const n=[];for(let r=0;r<e;r++)n.push(r);return n}var Yi={addBorderNode:ssr,addDummyNode:Bst,applyWithChunking:f$,asNonCompoundGraph:nsr,buildLayerMatrix:asr,intersectRect:osr,mapValues:hsr,maxRank:Hst,normalizeRanks:pve,notime:dsr,partition:csr,pick:psr,predecessorWeights:isr,range:zst,removeEmptyRanks:hve,simplify:jst,successorWeights:rsr,time:usr,uniqueId:gve,zipObject:eG},JV=Yi;function Bst(e,n,r,i){let o;do o=gve(i);while(e.hasNode(o));return r.dummy=n,e.setNode(o,r),o}function jst(e){let n=new pv.Graph().setGraph(e.graph());return e.nodes().forEach(r=>n.setNode(r,e.node(r))),e.edges().forEach(r=>{let i=n.edge(r.v,r.w)||{weight:0,minlen:1},o=e.edge(r);n.setEdge(r.v,r.w,{weight:i.weight+o.weight,minlen:Math.max(i.minlen,o.minlen)})}),n}function nsr(e){let n=new pv.Graph({multigraph:e.isMultigraph()}).setGraph(e.graph());return e.nodes().forEach(r=>{e.children(r).length||n.setNode(r,e.node(r))}),e.edges().forEach(r=>{n.setEdge(r,e.edge(r))}),n}function rsr(e){let n=e.nodes().map(r=>{let i={};return e.outEdges(r).forEach(o=>{i[o.w]=(i[o.w]||0)+e.edge(o).weight}),i});return eG(e.nodes(),n)}function isr(e){let n=e.nodes().map(r=>{let i={};return e.inEdges(r).forEach(o=>{i[o.v]=(i[o.v]||0)+e.edge(o).weight}),i});return eG(e.nodes(),n)}function osr(e,n){let r=e.x,i=e.y,o=n.x-r,a=n.y-i,s=e.width/2,l=e.height/2;if(!o&&!a)throw new Error("Not possible to find intersection inside of the rectangle");let c,u;return Math.abs(a)*s>Math.abs(o)*l?(a<0&&(l=-l),c=l*o/a,u=l):(o<0&&(s=-s),c=s,u=s*a/o),{x:r+c,y:i+u}}function asr(e){let n=zst(Hst(e)+1).map(()=>[]);return e.nodes().forEach(r=>{let i=e.node(r),o=i.rank;o!==void 0&&(n[o][i.order]=r)}),n}function pve(e){let n=e.nodes().map(i=>{let o=e.node(i).rank;return o===void 0?Number.MAX_VALUE:o}),r=f$(Math.min,n);e.nodes().forEach(i=>{let o=e.node(i);Object.hasOwn(o,"rank")&&(o.rank-=r)})}function hve(e){let n=e.nodes().map(s=>e.node(s).rank),r=f$(Math.min,n),i=[];e.nodes().forEach(s=>{let l=e.node(s).rank-r;i[l]||(i[l]=[]),i[l].push(s)});let o=0,a=e.graph().nodeRankFactor;Array.from(i).forEach((s,l)=>{s===void 0&&l%a!==0?--o:s!==void 0&&o&&s.forEach(c=>e.node(c).rank+=o)})}function ssr(e,n,r,i){let o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=i),Bst(e,"border",o,n)}function lsr(e,n=Ust){const r=[];for(let i=0;i<e.length;i+=n){const o=e.slice(i,i+n);r.push(o)}return r}var Ust=65535;function f$(e,n){if(n.length>Ust){const r=lsr(n);return e.apply(null,r.map(i=>e.apply(null,i)))}else return e.apply(null,n)}function Hst(e){const r=e.nodes().map(i=>{let o=e.node(i).rank;return o===void 0?Number.MIN_VALUE:o});return f$(Math.max,r)}function csr(e,n){let r={lhs:[],rhs:[]};return e.forEach(i=>{n(i)?r.lhs.push(i):r.rhs.push(i)}),r}function usr(e,n){let r=Date.now();try{return n()}finally{console.log(e+" time: "+(Date.now()-r)+"ms")}}function dsr(e,n){return n()}var fsr=0;function gve(e){var n=++fsr;return toString(e)+n}function zst(e,n,r=1){n==null&&(n=e,e=0);let i=a=>a<n;r<0&&(i=a=>n<a);const o=[];for(let a=e;i(a);a+=r)o.push(a);return o}function psr(e,n){const r={};for(const i of n)e[i]!==void 0&&(r[i]=e[i]);return r}function hsr(e,n){let r=n;return typeof n=="string"&&(r=i=>i[n]),Object.entries(e).reduce((i,[o,a])=>(i[o]=r(a,o),i),{})}function eG(e,n){return e.reduce((r,i,o)=>(r[i]=n[o],r),{})}var gsr={run:msr,undo:ysr},Fse=gsr;function msr(e){(e.graph().acyclicer==="greedy"?Xar(e,r(e)):vsr(e)).forEach(i=>{let o=e.edge(i);e.removeEdge(i),o.forwardName=i.name,o.reversed=!0,e.setEdge(i.w,i.v,o,gve("rev"))});function r(i){return o=>i.edge(o).weight}}function vsr(e){let n=[],r={},i={};function o(a){Object.hasOwn(i,a)||(i[a]=!0,r[a]=!0,e.outEdges(a).forEach(s=>{Object.hasOwn(r,s.w)?n.push(s):o(s.w)}),delete r[a])}return e.nodes().forEach(o),n}function ysr(e){e.edges().forEach(n=>{let r=e.edge(n);if(r.reversed){e.removeEdge(n);let i=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,i)}})}var _sr={run:bsr,undo:Esr},Bse=_sr;function bsr(e){e.graph().dummyChains=[],e.edges().forEach(n=>Ssr(e,n))}function Ssr(e,n){let r=n.v,i=e.node(r).rank,o=n.w,a=e.node(o).rank,s=n.name,l=e.edge(n),c=l.labelRank;if(a===i+1)return;e.removeEdge(n);let u,d,f;for(f=0,++i;i<a;++f,++i)l.points=[],d={width:0,height:0,edgeLabel:l,edgeObj:n,rank:i},u=Yi.addDummyNode(e,"edge",d,"_d"),i===c&&(d.width=l.width,d.height=l.height,d.dummy="edge-label",d.labelpos=l.labelpos),e.setEdge(r,u,{weight:l.weight},s),f===0&&e.graph().dummyChains.push(u),r=u;e.setEdge(r,o,{weight:l.weight},s)}function Esr(e){e.graph().dummyChains.forEach(n=>{let r=e.node(n),i=r.edgeLabel,o;for(e.setEdge(r.edgeObj,i);r.dummy;)o=e.successors(n)[0],e.removeNode(n),i.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),n=o,r=e.node(n)})}function mve(e){var n={};function r(i){var o=e.node(i);if(Object.hasOwn(n,i))return o.rank;n[i]=!0;let a=e.outEdges(i).map(l=>l==null?Number.POSITIVE_INFINITY:r(l.w)-e.edge(l).minlen);var s=f$(Math.min,a);return s===Number.POSITIVE_INFINITY&&(s=0),o.rank=s}e.sources().forEach(r)}function LR(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}var Csr=Vst;function Vst(e){var n=new pv.Graph({directed:!1}),r=e.nodes()[0],i=e.nodeCount();n.setNode(r,{});for(var o,a;wsr(n,e)<i;)o=xsr(n,e),a=n.hasNode(o.v)?LR(e,o):-LR(e,o),Tsr(n,e,a);return n}function wsr(e,n){function r(i){n.nodeEdges(i).forEach(o=>{var a=o.v,s=i===a?o.w:a;!e.hasNode(s)&&!LR(n,o)&&(e.setNode(s,{}),e.setEdge(i,s,{}),r(s))})}return e.nodes().forEach(r),e.nodeCount()}function xsr(e,n){return n.edges().reduce((i,o)=>{let a=Number.POSITIVE_INFINITY;return e.hasNode(o.v)!==e.hasNode(o.w)&&(a=LR(n,o)),a<i[0]?[a,o]:i},[Number.POSITIVE_INFINITY,null])[1]}function Tsr(e,n,r){e.nodes().forEach(i=>n.node(i).rank+=r)}var{preorder:Osr,postorder:Rsr}=pv.alg,Isr=Fw;Fw.initLowLimValues=yve;Fw.initCutValues=vve;Fw.calcCutValue=Gst;Fw.leaveEdge=Yst;Fw.enterEdge=qst;Fw.exchangeEdges=Kst;function Fw(e){e=jst(e),mve(e);var n=Vst(e);yve(n),vve(n,e);for(var r,i;r=Yst(n);)i=qst(n,e,r),Kst(n,e,r,i)}function vve(e,n){var r=Rsr(e,e.nodes());r=r.slice(0,r.length-1),r.forEach(i=>Nsr(e,n,i))}function Nsr(e,n,r){var i=e.node(r),o=i.parent;e.edge(r,o).cutvalue=Gst(e,n,r)}function Gst(e,n,r){var i=e.node(r),o=i.parent,a=!0,s=n.edge(r,o),l=0;return s||(a=!1,s=n.edge(o,r)),l=s.weight,n.nodeEdges(r).forEach(c=>{var u=c.v===r,d=u?c.w:c.v;if(d!==o){var f=u===a,p=n.edge(c).weight;if(l+=f?p:-p,Psr(e,r,d)){var h=e.edge(r,d).cutvalue;l+=f?-h:h}}}),l}function yve(e,n){arguments.length<2&&(n=e.nodes()[0]),Wst(e,{},1,n)}function Wst(e,n,r,i,o){var a=r,s=e.node(i);return n[i]=!0,e.neighbors(i).forEach(l=>{Object.hasOwn(n,l)||(r=Wst(e,n,r,l,i))}),s.low=a,s.lim=r++,o?s.parent=o:delete s.parent,r}function Yst(e){return e.edges().find(n=>e.edge(n).cutvalue<0)}function qst(e,n,r){var i=r.v,o=r.w;n.hasEdge(i,o)||(i=r.w,o=r.v);var a=e.node(i),s=e.node(o),l=a,c=!1;a.lim>s.lim&&(l=s,c=!0);var u=n.edges().filter(d=>c===M$e(e,e.node(d.v),l)&&c!==M$e(e,e.node(d.w),l));return u.reduce((d,f)=>LR(n,f)<LR(n,d)?f:d)}function Kst(e,n,r,i){var o=r.v,a=r.w;e.removeEdge(o,a),e.setEdge(i.v,i.w,{}),yve(e),vve(e,n),Msr(e,n)}function Msr(e,n){var r=e.nodes().find(o=>!n.node(o).parent),i=Osr(e,r);i=i.slice(1),i.forEach(o=>{var a=e.node(o).parent,s=n.edge(o,a),l=!1;s||(s=n.edge(a,o),l=!0),n.node(o).rank=n.node(a).rank+(l?s.minlen:-s.minlen)})}function Psr(e,n,r){return e.hasEdge(n,r)}function M$e(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}var Xst=Asr;function Asr(e){switch(e.graph().ranker){case"network-simplex":P$e(e);break;case"tight-tree":ksr(e);break;case"longest-path":Dsr(e);break;default:P$e(e)}}var Dsr=mve;function ksr(e){mve(e),Csr(e)}function P$e(e){Isr(e)}var Qst=Lsr;function Lsr(e){let n=Fsr(e);e.graph().dummyChains.forEach(r=>{let i=e.node(r),o=i.edgeObj,a=$sr(e,n,o.v,o.w),s=a.path,l=a.lca,c=0,u=s[c],d=!0;for(;r!==o.w;){if(i=e.node(r),d){for(;(u=s[c])!==l&&e.node(u).maxRank<i.rank;)c++;u===l&&(d=!1)}if(!d){for(;c<s.length-1&&e.node(u=s[c+1]).minRank<=i.rank;)c++;u=s[c]}e.setParent(r,u),r=e.successors(r)[0]}})}function $sr(e,n,r,i){let o=[],a=[],s=Math.min(n[r].low,n[i].low),l=Math.max(n[r].lim,n[i].lim),c,u;c=r;do c=e.parent(c),o.push(c);while(c&&(n[c].low>s||l>n[c].lim));for(u=c,c=i;(c=e.parent(c))!==u;)a.push(c);return{path:o.concat(a.reverse()),lca:u}}function Fsr(e){let n={},r=0;function i(o){let a=r;e.children(o).forEach(i),n[o]={low:a,lim:r++}}return e.children().forEach(i),n}var Bsr={run:jsr,cleanup:zsr},jse=Bsr;function jsr(e){let n=Yi.addDummyNode(e,"root",{},"_root"),r=Usr(e),i=Object.values(r),o=Yi.applyWithChunking(Math.max,i)-1,a=2*o+1;e.graph().nestingRoot=n,e.edges().forEach(l=>e.edge(l).minlen*=a);let s=Hsr(e)+1;e.children().forEach(l=>Zst(e,n,a,s,o,r,l)),e.graph().nodeRankFactor=a}function Zst(e,n,r,i,o,a,s){let l=e.children(s);if(!l.length){s!==n&&e.setEdge(n,s,{weight:0,minlen:r});return}let c=Yi.addBorderNode(e,"_bt"),u=Yi.addBorderNode(e,"_bb"),d=e.node(s);e.setParent(c,s),d.borderTop=c,e.setParent(u,s),d.borderBottom=u,l.forEach(f=>{Zst(e,n,r,i,o,a,f);let p=e.node(f),h=p.borderTop?p.borderTop:f,g=p.borderBottom?p.borderBottom:f,v=p.borderTop?i:2*i,y=h!==g?1:o-a[s]+1;e.setEdge(c,h,{weight:v,minlen:y,nestingEdge:!0}),e.setEdge(g,u,{weight:v,minlen:y,nestingEdge:!0})}),e.parent(s)||e.setEdge(n,c,{weight:0,minlen:o+a[s]})}function Usr(e){var n={};function r(i,o){var a=e.children(i);a&&a.length&&a.forEach(s=>r(s,o+1)),n[i]=o}return e.children().forEach(i=>r(i,1)),n}function Hsr(e){return e.edges().reduce((n,r)=>n+e.edge(r).weight,0)}function zsr(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,e.edges().forEach(r=>{var i=e.edge(r);i.nestingEdge&&e.removeEdge(r)})}var Jst=Vsr;function Vsr(e){function n(r){let i=e.children(r),o=e.node(r);if(i.length&&i.forEach(n),Object.hasOwn(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(let a=o.minRank,s=o.maxRank+1;a<s;++a)A$e(e,"borderLeft","_bl",r,o,a),A$e(e,"borderRight","_br",r,o,a)}}e.children().forEach(n)}function A$e(e,n,r,i,o,a){let s={width:0,height:0,rank:a,borderType:n},l=o[n][a-1],c=Yi.addDummyNode(e,"border",s,r);o[n][a]=c,e.setParent(c,i),l&&e.setEdge(l,c,{weight:1})}var Gsr={adjust:Wsr,undo:Ysr},Use=Gsr;function Wsr(e){let n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&elt(e)}function Ysr(e){let n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&qsr(e),(n==="lr"||n==="rl")&&(Ksr(e),elt(e))}function elt(e){e.nodes().forEach(n=>D$e(e.node(n))),e.edges().forEach(n=>D$e(e.edge(n)))}function D$e(e){let n=e.width;e.width=e.height,e.height=n}function qsr(e){e.nodes().forEach(n=>KJ(e.node(n))),e.edges().forEach(n=>{let r=e.edge(n);r.points.forEach(KJ),Object.hasOwn(r,"y")&&KJ(r)})}function KJ(e){e.y=-e.y}function Ksr(e){e.nodes().forEach(n=>XJ(e.node(n))),e.edges().forEach(n=>{let r=e.edge(n);r.points.forEach(XJ),Object.hasOwn(r,"x")&&XJ(r)})}function XJ(e){let n=e.x;e.x=e.y,e.y=n}var Xsr=Qsr;function Qsr(e){let n={},r=e.nodes().filter(c=>!e.children(c).length),i=r.map(c=>e.node(c).rank),o=Yi.applyWithChunking(Math.max,i),a=Yi.range(o+1).map(()=>[]);function s(c){if(n[c])return;n[c]=!0;let u=e.node(c);a[u.rank].push(c),e.successors(c).forEach(s)}return r.sort((c,u)=>e.node(c).rank-e.node(u).rank).forEach(s),a}var Zsr=Jsr;function Jsr(e,n){let r=0;for(let i=1;i<n.length;++i)r+=elr(e,n[i-1],n[i]);return r}function elr(e,n,r){let i=eG(r,r.map((u,d)=>d)),o=n.flatMap(u=>e.outEdges(u).map(d=>({pos:i[d.w],weight:e.edge(d).weight})).sort((d,f)=>d.pos-f.pos)),a=1;for(;a<r.length;)a<<=1;let s=2*a-1;a-=1;let l=new Array(s).fill(0),c=0;return o.forEach(u=>{let d=u.pos+a;l[d]+=u.weight;let f=0;for(;d>0;)d%2&&(f+=l[d+1]),d=d-1>>1,l[d]+=u.weight;c+=u.weight*f}),c}var tlr=nlr;function nlr(e,n=[]){return n.map(r=>{let i=e.inEdges(r);if(i.length){let o=i.reduce((a,s)=>{let l=e.edge(s),c=e.node(s.v);return{sum:a.sum+l.weight*c.order,weight:a.weight+l.weight}},{sum:0,weight:0});return{v:r,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:r}})}var rlr=ilr;function ilr(e,n){let r={};e.forEach((o,a)=>{let s=r[o.v]={indegree:0,in:[],out:[],vs:[o.v],i:a};o.barycenter!==void 0&&(s.barycenter=o.barycenter,s.weight=o.weight)}),n.edges().forEach(o=>{let a=r[o.v],s=r[o.w];a!==void 0&&s!==void 0&&(s.indegree++,a.out.push(r[o.w]))});let i=Object.values(r).filter(o=>!o.indegree);return olr(i)}function olr(e){let n=[];function r(o){return a=>{a.merged||(a.barycenter===void 0||o.barycenter===void 0||a.barycenter>=o.barycenter)&&alr(o,a)}}function i(o){return a=>{a.in.push(o),--a.indegree===0&&e.push(a)}}for(;e.length;){let o=e.pop();n.push(o),o.in.reverse().forEach(r(o)),o.out.forEach(i(o))}return n.filter(o=>!o.merged).map(o=>JV.pick(o,["vs","i","barycenter","weight"]))}function alr(e,n){let r=0,i=0;e.weight&&(r+=e.barycenter*e.weight,i+=e.weight),n.weight&&(r+=n.barycenter*n.weight,i+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/i,e.weight=i,e.i=Math.min(n.i,e.i),n.merged=!0}var slr=llr;function llr(e,n){let r=JV.partition(e,d=>Object.hasOwn(d,"barycenter")),i=r.lhs,o=r.rhs.sort((d,f)=>f.i-d.i),a=[],s=0,l=0,c=0;i.sort(clr(!!n)),c=k$e(a,o,c),i.forEach(d=>{c+=d.vs.length,a.push(d.vs),s+=d.barycenter*d.weight,l+=d.weight,c=k$e(a,o,c)});let u={vs:a.flat(!0)};return l&&(u.barycenter=s/l,u.weight=l),u}function k$e(e,n,r){let i;for(;n.length&&(i=n[n.length-1]).i<=r;)n.pop(),e.push(i.vs),r++;return r}function clr(e){return(n,r)=>n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}var ulr=tlt;function tlt(e,n,r,i){let o=e.children(n),a=e.node(n),s=a?a.borderLeft:void 0,l=a?a.borderRight:void 0,c={};s&&(o=o.filter(p=>p!==s&&p!==l));let u=tlr(e,o);u.forEach(p=>{if(e.children(p.v).length){let h=tlt(e,p.v,r,i);c[p.v]=h,Object.hasOwn(h,"barycenter")&&flr(p,h)}});let d=rlr(u,r);dlr(d,c);let f=slr(d,i);if(s&&(f.vs=[s,f.vs,l].flat(!0),e.predecessors(s).length)){let p=e.node(e.predecessors(s)[0]),h=e.node(e.predecessors(l)[0]);Object.hasOwn(f,"barycenter")||(f.barycenter=0,f.weight=0),f.barycenter=(f.barycenter*f.weight+p.order+h.order)/(f.weight+2),f.weight+=2}return f}function dlr(e,n){e.forEach(r=>{r.vs=r.vs.flatMap(i=>n[i]?n[i].vs:i)})}function flr(e,n){e.barycenter!==void 0?(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight):(e.barycenter=n.barycenter,e.weight=n.weight)}var plr=hlr;function hlr(e,n,r){let i=glr(e),o=new pv.Graph({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(a=>e.node(a));return e.nodes().forEach(a=>{let s=e.node(a),l=e.parent(a);(s.rank===n||s.minRank<=n&&n<=s.maxRank)&&(o.setNode(a),o.setParent(a,l||i),e[r](a).forEach(c=>{let u=c.v===a?c.w:c.v,d=o.edge(u,a),f=d!==void 0?d.weight:0;o.setEdge(u,a,{weight:e.edge(c).weight+f})}),Object.hasOwn(s,"minRank")&&o.setNode(a,{borderLeft:s.borderLeft[n],borderRight:s.borderRight[n]}))}),o}function glr(e){for(var n;e.hasNode(n=Yi.uniqueId("_root")););return n}var mlr=vlr;function vlr(e,n,r){let i={},o;r.forEach(a=>{let s=e.parent(a),l,c;for(;s;){if(l=e.parent(s),l?(c=i[l],i[l]=s):(c=o,o=s),c&&c!==s){n.setEdge(c,s);return}s=l}})}var nlt=rlt;function rlt(e,n){if(n&&typeof n.customOrder=="function"){n.customOrder(e,rlt);return}let r=Yi.maxRank(e),i=L$e(e,Yi.range(1,r+1),"inEdges"),o=L$e(e,Yi.range(r-1,-1,-1),"outEdges"),a=Xsr(e);if($$e(e,a),n&&n.disableOptimalOrderHeuristic)return;let s=Number.POSITIVE_INFINITY,l;for(let c=0,u=0;u<4;++c,++u){ylr(c%2?i:o,c%4>=2),a=Yi.buildLayerMatrix(e);let d=Zsr(e,a);d<s&&(u=0,l=Object.assign({},a),s=d)}$$e(e,l)}function L$e(e,n,r){return n.map(function(i){return plr(e,i,r)})}function ylr(e,n){let r=new pv.Graph;e.forEach(function(i){let o=i.graph().root,a=ulr(i,o,r,n);a.vs.forEach((s,l)=>i.node(s).order=l),mlr(i,r,a.vs)})}function $$e(e,n){Object.values(n).forEach(r=>r.forEach((i,o)=>e.node(i).order=o))}function _lr(e,n){let r={};function i(o,a){let s=0,l=0,c=o.length,u=a[a.length-1];return a.forEach((d,f)=>{let p=Slr(e,d),h=p?e.node(p).order:c;(p||d===u)&&(a.slice(l,f+1).forEach(g=>{e.predecessors(g).forEach(v=>{let y=e.node(v),_=y.order;(_<s||h<_)&&!(y.dummy&&e.node(g).dummy)&&ilt(r,v,g)})}),l=f+1,s=h)}),a}return n.length&&n.reduce(i),r}function blr(e,n){let r={};function i(a,s,l,c,u){let d;Yi.range(s,l).forEach(f=>{d=a[f],e.node(d).dummy&&e.predecessors(d).forEach(p=>{let h=e.node(p);h.dummy&&(h.order<c||h.order>u)&&ilt(r,p,d)})})}function o(a,s){let l=-1,c,u=0;return s.forEach((d,f)=>{if(e.node(d).dummy==="border"){let p=e.predecessors(d);p.length&&(c=e.node(p[0]).order,i(s,u,f,l,c),u=f,l=c)}i(s,u,s.length,c,a.length)}),s}return n.length&&n.reduce(o),r}function Slr(e,n){if(e.node(n).dummy)return e.predecessors(n).find(r=>e.node(r).dummy)}function ilt(e,n,r){if(n>r){let o=n;n=r,r=o}let i=e[n];i||(e[n]=i={}),i[r]=!0}function Elr(e,n,r){if(n>r){let i=n;n=r,r=i}return!!e[n]&&Object.hasOwn(e[n],r)}function Clr(e,n,r,i){let o={},a={},s={};return n.forEach(l=>{l.forEach((c,u)=>{o[c]=c,a[c]=c,s[c]=u})}),n.forEach(l=>{let c=-1;l.forEach(u=>{let d=i(u);if(d.length){d=d.sort((p,h)=>s[p]-s[h]);let f=(d.length-1)/2;for(let p=Math.floor(f),h=Math.ceil(f);p<=h;++p){let g=d[p];a[u]===u&&c<s[g]&&!Elr(r,u,g)&&(a[g]=u,a[u]=o[u]=o[g],c=s[g])}}})}),{root:o,align:a}}function wlr(e,n,r,i,o){let a={},s=xlr(e,n,r,o),l=o?"borderLeft":"borderRight";function c(f,p){let h=s.nodes(),g=h.pop(),v={};for(;g;)v[g]?f(g):(v[g]=!0,h.push(g),h=h.concat(p(g))),g=h.pop()}function u(f){a[f]=s.inEdges(f).reduce((p,h)=>Math.max(p,a[h.v]+s.edge(h)),0)}function d(f){let p=s.outEdges(f).reduce((g,v)=>Math.min(g,a[v.w]-s.edge(v)),Number.POSITIVE_INFINITY),h=e.node(f);p!==Number.POSITIVE_INFINITY&&h.borderType!==l&&(a[f]=Math.max(a[f],p))}return c(u,s.predecessors.bind(s)),c(d,s.successors.bind(s)),Object.keys(i).forEach(f=>a[f]=a[r[f]]),a}function xlr(e,n,r,i){let o=new pv.Graph,a=e.graph(),s=Nlr(a.nodesep,a.edgesep,i);return n.forEach(l=>{let c;l.forEach(u=>{let d=r[u];if(o.setNode(d),c){var f=r[c],p=o.edge(f,d);o.setEdge(f,d,Math.max(s(e,u,c),p||0))}c=u})}),o}function Tlr(e,n){return Object.values(n).reduce((r,i)=>{let o=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;Object.entries(i).forEach(([l,c])=>{let u=Mlr(e,l)/2;o=Math.max(c+u,o),a=Math.min(c-u,a)});const s=o-a;return s<r[0]&&(r=[s,i]),r},[Number.POSITIVE_INFINITY,null])[1]}function Olr(e,n){let r=Object.values(n),i=Yi.applyWithChunking(Math.min,r),o=Yi.applyWithChunking(Math.max,r);["u","d"].forEach(a=>{["l","r"].forEach(s=>{let l=a+s,c=e[l];if(c===n)return;let u=Object.values(c),d=i-Yi.applyWithChunking(Math.min,u);s!=="l"&&(d=o-Yi.applyWithChunking(Math.max,u)),d&&(e[l]=Yi.mapValues(c,f=>f+d))})})}function Rlr(e,n){return Yi.mapValues(e.ul,(r,i)=>{if(n)return e[n.toLowerCase()][i];{let o=Object.values(e).map(a=>a[i]).sort((a,s)=>a-s);return(o[1]+o[2])/2}})}function Ilr(e){let n=Yi.buildLayerMatrix(e),r=Object.assign(_lr(e,n),blr(e,n)),i={},o;["u","d"].forEach(s=>{o=s==="u"?n:Object.values(n).reverse(),["l","r"].forEach(l=>{l==="r"&&(o=o.map(f=>Object.values(f).reverse()));let c=(s==="u"?e.predecessors:e.successors).bind(e),u=Clr(e,o,r,c),d=wlr(e,o,u.root,u.align,l==="r");l==="r"&&(d=Yi.mapValues(d,f=>-f)),i[s+l]=d})});let a=Tlr(e,i);return Olr(i,a),Rlr(i,e.graph().align)}function Nlr(e,n,r){return(i,o,a)=>{let s=i.node(o),l=i.node(a),c=0,u;if(c+=s.width/2,Object.hasOwn(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":u=-s.width/2;break;case"r":u=s.width/2;break}if(u&&(c+=r?u:-u),u=0,c+=(s.dummy?n:e)/2,c+=(l.dummy?n:e)/2,c+=l.width/2,Object.hasOwn(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":u=l.width/2;break;case"r":u=-l.width/2;break}return u&&(c+=r?u:-u),u=0,c}}function Mlr(e,n){return e.node(n).width}var olt=Plr;function Plr(e){e=JV.asNonCompoundGraph(e),Alr(e),Object.entries(Ilr(e)).forEach(([n,r])=>e.node(n).x=r)}function Alr(e){let n=JV.buildLayerMatrix(e),r=e.graph().ranksep,i=0;n.forEach(o=>{const a=o.reduce((s,l)=>{const c=e.node(l).height;return s>c?s:c},0);o.forEach(s=>e.node(s).y=i+a/2),i+=a+r})}function Dlr(e,n){let r=n&&n.debugTiming?Yi.time:Yi.notime;r("layout",()=>{let i=r(" buildLayoutGraph",()=>slt(e));r(" runLayout",()=>klr(i,r,n)),r(" updateInputGraph",()=>alt(e,i))})}function klr(e,n,r){n(" makeSpaceForEdgeLabels",()=>llt(e)),n(" removeSelfEdges",()=>vlt(e)),n(" acyclic",()=>Fse.run(e)),n(" nestingGraph.run",()=>jse.run(e)),n(" rank",()=>Xst(Yi.asNonCompoundGraph(e))),n(" injectEdgeLabelProxies",()=>clt(e)),n(" removeEmptyRanks",()=>hve(e)),n(" nestingGraph.cleanup",()=>jse.cleanup(e)),n(" normalizeRanks",()=>pve(e)),n(" assignRankMinMax",()=>ult(e)),n(" removeEdgeLabelProxies",()=>dlt(e)),n(" normalize.run",()=>Bse.run(e)),n(" parentDummyChains",()=>Qst(e)),n(" addBorderSegments",()=>Jst(e)),n(" order",()=>nlt(e,r)),n(" insertSelfEdges",()=>ylt(e)),n(" adjustCoordinateSystem",()=>Use.adjust(e)),n(" position",()=>olt(e)),n(" positionSelfEdges",()=>_lt(e)),n(" removeBorderNodes",()=>mlt(e)),n(" normalize.undo",()=>Bse.undo(e)),n(" fixupEdgeLabelCoords",()=>hlt(e)),n(" undoCoordinateSystem",()=>Use.undo(e)),n(" translateGraph",()=>flt(e)),n(" assignNodeIntersects",()=>plt(e)),n(" reversePoints",()=>glt(e)),n(" acyclic.undo",()=>Fse.undo(e))}function alt(e,n){e.nodes().forEach(r=>{let i=e.node(r),o=n.node(r);i&&(i.x=o.x,i.y=o.y,i.rank=o.rank,n.children(r).length&&(i.width=o.width,i.height=o.height))}),e.edges().forEach(r=>{let i=e.edge(r),o=n.edge(r);i.points=o.points,Object.hasOwn(o,"x")&&(i.x=o.x,i.y=o.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Llr=["nodesep","edgesep","ranksep","marginx","marginy"],$lr={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Flr=["acyclicer","ranker","rankdir","align"],Blr=["width","height"],F$e={width:0,height:0},jlr=["minlen","weight","width","height","labeloffset"],Ulr={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Hlr=["labelpos"];function slt(e){let n=new pv.Graph({multigraph:!0,compound:!0}),r=ZJ(e.graph());return n.setGraph(Object.assign({},$lr,QJ(r,Llr),Yi.pick(r,Flr))),e.nodes().forEach(i=>{let o=ZJ(e.node(i));const a=QJ(o,Blr);Object.keys(F$e).forEach(s=>{a[s]===void 0&&(a[s]=F$e[s])}),n.setNode(i,a),n.setParent(i,e.parent(i))}),e.edges().forEach(i=>{let o=ZJ(e.edge(i));n.setEdge(i,Object.assign({},Ulr,QJ(o,jlr),Yi.pick(o,Hlr)))}),n}function llt(e){let n=e.graph();n.ranksep/=2,e.edges().forEach(r=>{let i=e.edge(r);i.minlen*=2,i.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?i.width+=i.labeloffset:i.height+=i.labeloffset)})}function clt(e){e.edges().forEach(n=>{let r=e.edge(n);if(r.width&&r.height){let i=e.node(n.v),a={rank:(e.node(n.w).rank-i.rank)/2+i.rank,e:n};Yi.addDummyNode(e,"edge-proxy",a,"_ep")}})}function ult(e){let n=0;e.nodes().forEach(r=>{let i=e.node(r);i.borderTop&&(i.minRank=e.node(i.borderTop).rank,i.maxRank=e.node(i.borderBottom).rank,n=Math.max(n,i.maxRank))}),e.graph().maxRank=n}function dlt(e){e.nodes().forEach(n=>{let r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function flt(e){let n=Number.POSITIVE_INFINITY,r=0,i=Number.POSITIVE_INFINITY,o=0,a=e.graph(),s=a.marginx||0,l=a.marginy||0;function c(u){let d=u.x,f=u.y,p=u.width,h=u.height;n=Math.min(n,d-p/2),r=Math.max(r,d+p/2),i=Math.min(i,f-h/2),o=Math.max(o,f+h/2)}e.nodes().forEach(u=>c(e.node(u))),e.edges().forEach(u=>{let d=e.edge(u);Object.hasOwn(d,"x")&&c(d)}),n-=s,i-=l,e.nodes().forEach(u=>{let d=e.node(u);d.x-=n,d.y-=i}),e.edges().forEach(u=>{let d=e.edge(u);d.points.forEach(f=>{f.x-=n,f.y-=i}),Object.hasOwn(d,"x")&&(d.x-=n),Object.hasOwn(d,"y")&&(d.y-=i)}),a.width=r-n+s,a.height=o-i+l}function plt(e){e.edges().forEach(n=>{let r=e.edge(n),i=e.node(n.v),o=e.node(n.w),a,s;r.points?(a=r.points[0],s=r.points[r.points.length-1]):(r.points=[],a=o,s=i),r.points.unshift(Yi.intersectRect(i,a)),r.points.push(Yi.intersectRect(o,s))})}function hlt(e){e.edges().forEach(n=>{let r=e.edge(n);if(Object.hasOwn(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function glt(e){e.edges().forEach(n=>{let r=e.edge(n);r.reversed&&r.points.reverse()})}function mlt(e){e.nodes().forEach(n=>{if(e.children(n).length){let r=e.node(n),i=e.node(r.borderTop),o=e.node(r.borderBottom),a=e.node(r.borderLeft[r.borderLeft.length-1]),s=e.node(r.borderRight[r.borderRight.length-1]);r.width=Math.abs(s.x-a.x),r.height=Math.abs(o.y-i.y),r.x=a.x+r.width/2,r.y=i.y+r.height/2}}),e.nodes().forEach(n=>{e.node(n).dummy==="border"&&e.removeNode(n)})}function vlt(e){e.edges().forEach(n=>{if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function ylt(e){var n=Yi.buildLayerMatrix(e);n.forEach(r=>{var i=0;r.forEach((o,a)=>{var s=e.node(o);s.order=a+i,(s.selfEdges||[]).forEach(l=>{Yi.addDummyNode(e,"selfedge",{width:l.label.width,height:l.label.height,rank:s.rank,order:a+ ++i,e:l.e,label:l.label},"_se")}),delete s.selfEdges})})}function _lt(e){e.nodes().forEach(n=>{var r=e.node(n);if(r.dummy==="selfedge"){var i=e.node(r.e.v),o=i.x+i.width/2,a=i.y,s=r.x-o,l=i.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:o+2*s/3,y:a-l},{x:o+5*s/6,y:a-l},{x:o+s,y:a},{x:o+5*s/6,y:a+l},{x:o+2*s/3,y:a+l}],r.label.x=r.x,r.label.y=r.y}})}function QJ(e,n){return Yi.mapValues(Yi.pick(e,n),Number)}function ZJ(e){var n={};return e&&Object.entries(e).forEach(([r,i])=>{typeof r=="string"&&(r=r.toLowerCase()),n[r]=i}),n}var No={layout:Dlr,buildLayoutGraph:slt,updateInputGraph:alt,makeSpaceForEdgeLabels:llt,removeSelfEdges:vlt,acyclic:Fse,nestingGraph:jse,rank:Xst,util:Yi,injectEdgeLabelProxies:clt,removeEmptyRanks:hve,normalizeRanks:pve,assignRankMinMax:ult,removeEdgeLabelProxies:dlt,normalize:Bse,parentDummyChains:Qst,addBorderSegments:Jst,order:nlt,insertSelfEdges:ylt,coordinateSystem:Use,position:olt,positionSelfEdges:_lt,removeBorderNodes:mlt,fixupEdgeLabelCoords:hlt,translateGraph:flt,assignNodeIntersects:plt,reversePointsForReversedEdges:glt},zlr=class{constructor(){this.init=!1}get initialized(){return this.init}getNode(e){return this.store.nodes.get(e)}getNodeByIndex(e){const n=this.indexMap.get(e);return n?this.getNode(n):void 0}getEdge(e){return this.store.edges.get(e)}get nodes(){return Array.from(this.store.nodes.values())}get edges(){return Array.from(this.store.edges.values())}create(e){this.store=this.createStore(e),this.indexMap=this.createIndexMap(),this.init=!0}createStore(e){const{nodes:n,edges:r}=e,i={nodes:new Map,edges:new Map};return n.forEach((o,a)=>{var c;const{bounds:s}=o.getData(hr),l={id:o.id,entity:o,index:"",rank:-1,order:-1,position:{x:s.center.x,y:s.center.y},offset:{x:0,y:0},size:{width:s.width,height:s.height},hasChildren:((c=o.collapsedChildren)==null?void 0:c.length)>0};i.nodes.set(l.id,l)}),r.forEach(o=>{const{from:a,to:s}=o.info;if(!a||!s||o.vertical)return;const l={id:o.id,entity:o,from:a,to:s,fromIndex:"",toIndex:"",name:o.id};i.edges.set(l.id,l)}),i}createIndexMap(){const e=this.sortNodes(),n=new Map;e.forEach((i,o)=>{const a=this.getNode(i);if(!a)return;const s=String(1e5+o);n.set(a.id,s),a.index=s}),this.edges.forEach(i=>{const o=n.get(i.from),a=n.get(i.to);if(!o||!a){this.store.edges.delete(i.id);return}i.fromIndex=o,i.toIndex=a});const r=new Map;return n.forEach((i,o)=>{r.set(i,o)}),r}sortNodes(){const e=[];this.nodes.forEach(i=>{e.push(i.id)});const n=new Map;return this.edges.forEach(i=>{if(e.push(i.to),i.entity.info.fromPort){const o=n.get(i.from)||[];n.set(i.from,[...o,i])}}),n.forEach((i,o)=>{i.sort((s,l)=>{const c=s.entity.fromPort,u=l.entity.fromPort;return c&&u?c.point.y-u.point.y:0}).forEach(s=>{e.push(s.to)})}),e.reduceRight((i,o)=>(i.includes(o)||i.unshift(o),i),[])}},Vlr=class{constructor(e){this.store=e}async position(){return new Promise(e=>{wme({from:{d:0},to:{d:100},duration:300,onUpdate:n=>{this.store.nodes.forEach(r=>{this.updateNodePosition({layoutNode:r,step:n.d})})},onComplete:()=>{e()}})})}updateNodePosition(e){const{layoutNode:n,step:r}=e,i=n.entity.getData(Ui),o={x:n.position.x+n.offset.x,y:n.position.y+n.offset.y},a=(o.x-i.position.x)*r/100,s=(o.y-i.bounds.height/2-i.position.y)*r/100;i.update({position:{x:i.position.x+a,y:i.position.y+s}}),n.entity.document.layout.updateAffectedTransform(n.entity)}},Glr={rankdir:"LR",nodesep:100,ranksep:100,ranker:"network-simplex"},Wlr=class{constructor(e){this.store=e,this.graph=this.createGraph()}layout(){this.graphSetData(),this.dagreLayout(),this.layoutSetPosition()}dagreLayout(){let e=No.buildLayoutGraph(this.graph);this.runLayout(e),No.updateInputGraph(this.graph,e)}runLayout(e){No.makeSpaceForEdgeLabels(e),No.removeSelfEdges(e),No.acyclic.run(e),No.nestingGraph.run(e),No.rank(No.util.asNonCompoundGraph(e)),No.injectEdgeLabelProxies(e),No.removeEmptyRanks(e),No.nestingGraph.cleanup(e),No.normalizeRanks(e),No.assignRankMinMax(e),No.removeEdgeLabelProxies(e),No.normalize.run(e),No.parentDummyChains(e),No.addBorderSegments(e),No.order(e),this.setOrderAndRank(e),No.insertSelfEdges(e),No.coordinateSystem.adjust(e),No.position(e),No.positionSelfEdges(e),No.removeBorderNodes(e),No.normalize.undo(e),No.fixupEdgeLabelCoords(e),No.coordinateSystem.undo(e),No.translateGraph(e),No.assignNodeIntersects(e),No.reversePointsForReversedEdges(e),No.acyclic.undo(e)}createGraph(){const e=new pv.Graph({multigraph:!0});return e.setDefaultEdgeLabel(()=>({})),e.setGraph(Glr),e}graphSetData(){const e=Array.from(this.store.nodes.values()),n=Array.from(this.store.edges.values()).sort((r,i)=>r.fromIndex===i.fromIndex?r.toIndex<i.toIndex?-1:1:r.fromIndex<i.fromIndex?-1:1);e.forEach(r=>{this.graph.setNode(r.index,{originID:r.id,width:r.size.width,height:r.size.height})}),n.forEach(r=>{this.graph.setEdge({v:r.fromIndex,w:r.toIndex,name:r.name})})}layoutSetPosition(){this.store.nodes.forEach(e=>{const n=this.getOffsetX(e),r=this.graph.node(e.index);if(!r){e.rank=-1,e.position={x:e.position.x+n,y:e.position.y};return}e.rank=r.rank??-1,e.position={x:this.normalizeNumber(r.x)+n,y:this.normalizeNumber(r.y)}})}normalizeNumber(e){return Number.isNaN(e)?0:e}getOffsetX(e){if(!e.hasChildren)return 0;const n=e.entity.getData(hr),{bounds:r,padding:i}=n;return-r.width/2+i.left}setOrderAndRank(e){return this.followAdjust(e),this.normalizeOrder(e),e}followAdjust(e){const n=this.rankGroup(e);e.nodes().forEach(r=>{const i=e.node(r),o=this.store.getNodeByIndex(r);if(!i||!(o!=null&&o.followedBy))return;const{followedBy:a}=o,{rank:s,order:l}=i,c=a.map(p=>{var h;return(h=this.store.getNode(p))==null?void 0:h.index}).filter(Boolean),u=new Set(c),d=n.get(s);if(!d)return;Array.from(d).filter(p=>u.has(p)?!1:e.node(p).order>l).forEach(p=>{const h=e.node(p);h.order=h.order+a.length}),c.forEach((p,h)=>{var y,_;const g=e.node(p);g.order=l+h+1;const v=g.rank;g.rank=s,(y=n.get(v))==null||y.delete(p),(_=n.get(s))==null||_.add(p)})})}normalizeOrder(e){this.rankGroup(e).forEach((r,i)=>{const o=Array.from(r).map(a=>e.node(a));o.sort((a,s)=>a.order-s.order),o.forEach((a,s)=>{a.order=s})})}rankGroup(e){const n=new Map;return e.nodes().forEach(r=>{var a;const o=e.node(r).rank;n.has(o)||n.set(o,new Set),(a=n.get(o))==null||a.add(r)}),n}},Ylr=class{constructor(){this._store=new zlr,this._layout=new Wlr(this._store),this._position=new Vlr(this._store)}init(e,n={}){this._store.create(e),this.setFollowNode(n.getFollowNode)}layout(){this._store.initialized&&this._layout.layout()}async position(){if(this._store.initialized)return await this._position.position()}setFollowNode(e){if(!e)return;const n={store:this._store};this._store.nodes.forEach(r=>{var a;const i=(a=e(r,n))==null?void 0:a.followTo;if(!i)return;const o=this._store.getNode(i);o&&(o.followedBy||(o.followedBy=[]),o.followedBy.push(r.id),r.followTo=i)})}},TD=class{async layout(e={}){await this.layoutNode(this.document.root,e)}async layoutNode(e,n){const r=this.getAvailableBlocks(e);if(!r||!Array.isArray(r)||!r.length)return;const i=e.blocks.map(a=>a.getData(Cm).outputLines.filter(Boolean)).flat();await Promise.all(r.map(async a=>this.layoutNode(a,n)));const o=new Ylr;o.init({nodes:r,edges:i},n),o.layout(),await o.position()}getAvailableBlocks(e){const n=e.blocks.filter(i=>!this.shouldFlatNode(i)),r=e.blocks.filter(i=>this.shouldFlatNode(i)).map(i=>i.blocks).flat();return[...n,...r]}shouldFlatNode(e){return e.flowNodeType===Fo.GROUP}};Fst([Ot(ei)],TD.prototype,"document",2);TD=Fst([Pn()],TD);var qlr=pa({onBind:({bind:e})=>{e(TD).toSelf().inSingletonScope()}}),blt=Object.defineProperty,Klr=Object.getOwnPropertyDescriptor,Xlr=Object.getOwnPropertyNames,Qlr=Object.prototype.hasOwnProperty,Slt=(e,n)=>{for(var r in n)blt(e,r,{get:n[r],enumerable:!0})},Zlr=(e,n,r,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Xlr(n))!Qlr.call(e,o)&&o!==r&&blt(e,o,{get:()=>n[o],enumerable:!(i=Klr(n,o))||i.enumerable});return e},Elt=(e,n,r)=>(Zlr(e,n,"default"),r),Clt={};Slt(Clt,{FreeLayoutEditor:()=>Olt,FreeLayoutEditorProvider:()=>tG,FreeLayoutPluginContext:()=>wlt,FreeLayoutProps:()=>Vj,WorkflowNodeRenderer:()=>Tlt,WorkflowPortRender:()=>ZV,createFreeLayoutPreset:()=>xlt,useAutoLayout:()=>Rlt,useClientContext:()=>Bw,usePlaygroundTools:()=>p$});var _ve={};Slt(_ve,{FreeLayoutEditor:()=>Olt,FreeLayoutEditorProvider:()=>tG,WorkflowNodeRenderer:()=>Tlt,WorkflowPortRender:()=>ZV});var wlt=v0,Vj;(e=>{e.DEFAULT={...Fj.DEFAULT,fromNodeJSON(n,r){var o;if(!n.getData(ls)){r.data&&n.updateExtInfo(r.data),n.onExtInfoChange(()=>{n.document.fireContentChange({type:cN.NODE_DATA_CHANGE,toJSON:()=>n.getExtInfo(),entity:n})});return}return(o=Kb.fromNodeJSON)==null?void 0:o.call(Kb,n,r)},toNodeJSON(n){const r=n.getData(ls),i=n.transform.position;return r?Kb.toNodeJSON(n):{id:n.id,type:n.flowNodeType,meta:{position:{x:i.x,y:i.y}},data:n.getExtInfo()}}}})(Vj||(Vj={}));var JJ=e=>{const n=e.get(mu);if(n.node)return n.node};function xlt(e){return n=>{var i,o;e={...Vj.DEFAULT,...e,playground:{...e.playground,get hoverService(){return n.get(If)}}};let r=[];return r.push(Vat({registerShortcuts(a){var l;const s=n.get(dg);if(a.addHandlers({commandId:kat.DELETE_NODES,shortcuts:["backspace","delete"],isEnabled:()=>s.selection.length>0&&!n.playground.config.readonlyOrDisabled,execute:()=>{s.selection.forEach(c=>{var u;if(c instanceof Dp){if(!n.document.canRemove(c))return;const d=c.getNodeMeta(),f=(u=d.subCanvas)==null?void 0:u.call(d,c);if(f!=null&&f.isCanvas){f.parentNode.dispose();return}c.dispose()}else if(c instanceof Zd){if(!n.document.linesManager.canRemove(c))return;c.dispose()}}),s.selection=s.selection.filter(c=>!c.disposed)}}),(l=e==null?void 0:e.history)!=null&&l.enable){const c=n.get(qa);e.history.disableShortcuts||(a.addHandlers({commandId:OC.Default.UNDO,shortcuts:["meta z","ctrl z"],isEnabled:()=>!0,execute:()=>{c.undo()}}),a.addHandlers({commandId:OC.Default.REDO,shortcuts:["meta shift z","ctrl shift z"],isEnabled:()=>!0,execute:()=>{c.redo()}}))}}})),r=Xrr(e,r)(n),(i=e.variableEngine)!=null&&i.enable&&r.push(nrr({...e.variableEngine,layout:"free"})),(o=e.history)!=null&&o.enable&&r.push(pir(e.history)),r.push(LV({onBind:a=>{var s,l,c,u,d,f,p,h,g,v,y,_,S,b,E;a.rebind(l$).toConstantValue({canAddLine:(s=e.canAddLine)==null?void 0:s.bind(null,n),canDeleteLine:(l=e.canDeleteLine)==null?void 0:l.bind(null,n),isErrorLine:(c=e.isErrorLine)==null?void 0:c.bind(null,n),isErrorPort:(u=e.isErrorPort)==null?void 0:u.bind(null,n),isDisabledPort:(d=e.isDisabledPort)==null?void 0:d.bind(null,n),isReverseLine:(f=e.isReverseLine)==null?void 0:f.bind(null,n),isHideArrowLine:(p=e.isHideArrowLine)==null?void 0:p.bind(null,n),isFlowingLine:(h=e.isFlowingLine)==null?void 0:h.bind(null,n),isDisabledLine:(g=e.isDisabledLine)==null?void 0:g.bind(null,n),isVerticalLine:(v=e.isVerticalLine)==null?void 0:v.bind(null,n),onDragLineEnd:(y=e.onDragLineEnd)==null?void 0:y.bind(null,n),setLineRenderType:(_=e.setLineRenderType)==null?void 0:_.bind(null,n),setLineClassName:(S=e.setLineClassName)==null?void 0:S.bind(null,n),canDeleteNode:(b=e.canDeleteNode)==null?void 0:b.bind(null,n),canResetLine:(E=e.canResetLine)==null?void 0:E.bind(null,n),cursors:e.cursors??Kb.cursors,lineColor:e.lineColor??Kb.lineColor,allNodesDefaultExpanded:e.allNodesDefaultExpanded,toNodeJSON:e.toNodeJSON,fromNodeJSON:e.fromNodeJSON})},onInit:a=>{var s,l;a.playground.registerLayer(DC),a.playground.registerLayer(AC,{renderElement:()=>typeof JJ=="function"?JJ(a):JJ}),(s=e.scroll)!=null&&s.disableScrollLimit||a.playground.registerLayer(Pj),(l=e.scroll)!=null&&l.disableScrollBar||a.playground.registerLayer(xR),e.onContentChange&&a.document.onContentChange(c=>e.onContentChange(a,c))},containerModules:[Znr]}),nst({}),Nst({}),Zor({}),qlr({}),hir({canSelect:a=>{if(a.button!==0)return!1;const s=a.target;if(s){if(s.classList.contains("gedit-flow-background-layer")||s.closest('[data-flow-editor-selectable="true"]'))return!0;if(s.closest('[data-flow-editor-selectable="false"]'))return!1}return!n.get(If).isSomeHovered()},ignoreOneSelect:!0,ignoreChildrenLength:!0,...e.selectBox||{}})),Wat(e,r)(n)}}var tG=m.forwardRef(function(n,r){const{children:i,...o}=n,a=m.useMemo(()=>xlt(o),[]),s=m.useCallback(l=>({...Kit(l),get document(){return l.get(ei)},get clipboard(){return l.get(Hit)},get selection(){return l.get(dg)},get history(){return l.get(qa)}}),[]);return V.createElement(Zit,{ref:r,plugins:a,customPluginContext:s},i)}),Tlt=e=>{const{selected:n,activated:r,startDrag:i,ports:o,selectNode:a,nodeRef:s,onFocus:l,onBlur:c}=x_(),u=iy(e.className||"",{activated:r,selected:n});return V.createElement(V.Fragment,null,V.createElement("div",{className:u,style:e.style,ref:s,draggable:!0,onDragStart:i,onClick:a,onFocus:l,onBlur:c,"data-node-selected":String(n)},e.children),o.map(d=>V.createElement(ZV,{key:d.id,entity:d,onClick:e.onPortClick?f=>e.onPortClick(d,f):void 0,className:e.portClassName,style:e.portStyle})))},Olt=m.forwardRef(function(n,r){const{children:i,...o}=n;return V.createElement(tG,{ref:r,...o},V.createElement(kme,null,i))});Elt(_ve,_ir);Elt(Clt,_ve);var B$e=e=>{const n=e.getData(Ui);return{x:n.position.x,y:n.position.y}},Jlr=()=>{const e=Ame();try{return e.get(qa)}catch{return{pushOperation:()=>{}}}},ecr=()=>{const e=Jlr();return m.useCallback(r=>{const{nodes:i,startPositions:o,endPositions:a}=r,s=i.map(l=>l.id);e.pushOperation({type:ED.dragNodes,value:{ids:s,value:a,oldValue:o}},{noApply:!0})},[e])},tcr=e=>{const{nodes:n,startPositions:r}=e;return()=>{n.forEach((i,o)=>{const a=i.getData(Ui),s=r[o];a.update({position:s})})}},ncr=()=>{const e=Di(ei),n=Di(TD),r=ecr();return m.useCallback(async o=>{const a=e.getAllNodes(),s=a.map(B$e);await n.layout(o);const l=a.map(B$e);return r({nodes:a,startPositions:s,endPositions:l}),tcr({nodes:a,startPositions:s})},[n,e,r])},Rlt=()=>{const e=Di(ei),n=ec(),r=ncr(),i=m.useCallback(a=>{GV(e,n.config,a)},[e,n]);return m.useCallback(async a=>{i();const s=await r(a);return i(),s},[r])};function Bw(){return Di(v0)}function p$(){const e=ec(),n=Di(ei),[r,i]=m.useState(1),[o,a]=m.useState(n.linesManager.lineType),[s,l]=m.useState(db.SELECT),[c,u]=m.useState(Zx.PAD),d=m.useCallback(S=>{r<.1||e==null||e.config.zoomout(S)},[r,e]),f=m.useCallback(S=>{r>1.9||e==null||e.config.zoomin(S)},[r,e]),p=m.useCallback(S=>{const b=n.linesManager.switchLineType(S);return a(b),b},[n]),h=m.useCallback(S=>{GV(n,e.config,S)},[n,e]),g=Rlt();m.useEffect(()=>{let S=null;return e&&(S=e.onZoom(b=>i(b))),()=>{S&&S.dispose()}},[e]),m.useEffect(()=>{const S=e.editorState.onStateChange(b=>{l(b.state===ko.STATE_GRAB||b.state===ko.STATE_MOUSE_FRIENDLY_SELECT?db.GRAB:db.SELECT),u(b.state===ko.STATE_MOUSE_FRIENDLY_SELECT?Zx.MOUSE:Zx.PAD)});return()=>{S.dispose()}},[e]);function v(S){let b;typeof S=="function"?b=S({isPressingSpaceBar:e.editorState.isPressingSpaceBar,cursorState:s}):b=S,!(typeof b>"u")&&(b===db.GRAB?(e.editorState.changeState(ko.STATE_GRAB.id),l(b)):(b=db.SELECT)&&(e.editorState.changeState(ko.STATE_SELECT.id),l(b)))}function y(S){S===Zx.MOUSE?(e.editorState.changeState(ko.STATE_MOUSE_FRIENDLY_SELECT.id),l(db.GRAB)):S===Zx.PAD&&(e.editorState.changeState(ko.STATE_SELECT.id),l(db.SELECT)),u(S)}function _(S){e.config.updateConfig({mouseScrollDelta:S})}return{zoomin:f,zoomout:d,fitView:h,autoLayout:g,switchLineType:p,zoom:r,lineType:o,cursorState:s,setCursorState:v,interactiveType:c,setInteractiveType:y,setMouseScrollDelta:_}}const rcr="/agenticflow/assets/icon-start-C8Ct-og-.jpg";function icr(){}var Ilt=icr;const vr=Or(Ilt),Nlt=function(e){if(fr(process,"env.NODE_ENV")==="development"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];console.log(e,...r)}};class tc{static get cssClasses(){return{}}static get strings(){return{}}static get numbers(){return{}}static get defaultAdapter(){return{getProp:vr,getProps:vr,getState:vr,getStates:vr,setState:vr,getContext:vr,getContexts:vr,getCache:vr,setCache:vr,getCaches:vr,stopPropagation:vr,persistEvent:vr}}constructor(n){this._adapter=Object.assign(Object.assign({},tc.defaultAdapter),n)}getProp(n){return this._adapter.getProp(n)}getProps(){return this._adapter.getProps()}getState(n){return this._adapter.getState(n)}getStates(){return this._adapter.getStates()}setState(n,r){return this._adapter.setState(Object.assign({},n),r)}getContext(n){return this._adapter.getContext(n)}getContexts(){return this._adapter.getContexts()}getCaches(){return this._adapter.getCaches()}getCache(n){return this._adapter.getCache(n)}setCache(n,r){return n&&this._adapter.setCache(n,r)}stopPropagation(n){this._adapter.stopPropagation(n)}_isControlledComponent(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"value";const r=this.getProps();return n in r}_isInProps(n){const r=this.getProps();return n in r}init(n){}destroy(){}log(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];Nlt(n,...i)}_persistEvent(n){this._adapter.persistEvent(n)}}function Mlt(e){return Object.keys(e).reduce((n,r)=>(r.substr(0,5)==="data-"&&(n[r]=e[r]),n),{})}const{hasOwnProperty:ocr}=Object.prototype;class fl extends m.Component{constructor(n){super(n),this.isControlled=r=>!!(r&&this.props&&typeof this.props=="object"&&ocr.call(this.props,r)),this.setStateAsync=r=>new Promise(i=>{this.setState(r,i)}),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:n=>{if(this.context&&n)return this.context[n]},getContexts:()=>this.context,getProp:n=>this.props[n],getProps:()=>this.props,getState:n=>this.state[n],getStates:()=>this.state,setState:(n,r)=>this.setState(Object.assign({},n),r),getCache:n=>n&&this.cache[n],getCaches:()=>this.cache,setCache:(n,r)=>n&&(this.cache[n]=r),stopPropagation:n=>{try{n.stopPropagation(),n.nativeEvent&&n.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:n=>{n&&n.persist&&typeof n.persist=="function"&&n.persist()}}}log(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 Nlt(n,...i)}getDataAttr(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return Mlt(n)}}fl.propTypes={};fl.defaultProps={};var Plt={exports:{}},acr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",scr=acr,lcr=scr;function Alt(){}function Dlt(){}Dlt.resetWarningCache=Alt;var ccr=function(){function e(i,o,a,s,l,c){if(c!==lcr){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function n(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:Dlt,resetWarningCache:Alt};return r.PropTypes=r,r};Plt.exports=ccr();var ucr=Plt.exports;const ie=Or(ucr),ui="semi",dcr=["default","error","warning","success"],nG={PREFIX:`${ui}-typography`},jc={WEIGHT:["light","regular","medium","semibold","bold","default"],TYPE:["primary","secondary","danger","warning","success","tertiary","quaternary"],SIZE:["normal","small","inherit"],SPACING:["normal","extended"],HEADING:[1,2,3,4,5,6],RULE:["text","numbers","bytes-decimal","bytes-binary","percentages","exponential"],TRUNCATE:["ceil","floor","round"]};var fcr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const pcr=nG.PREFIX;let rG=class extends m.PureComponent{render(){const n=this.props,{component:r,className:i,children:o,forwardRef:a}=n,s=fcr(n,["component","className","children","forwardRef"]),l=r,c=Ce(pcr,i);return V.createElement(l,Object.assign({className:c,ref:a},s),o)}};rG.defaultProps={component:"article",style:{},className:""};rG.propTypes={component:ie.string,style:ie.object,className:ie.string};function hcr(e){return e===null}var gcr=hcr;const BC=Or(gcr);function mcr(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}var vcr=mcr;function ycr(e,n,r){var i=-1,o=e.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var a=Array(o);++i<o;)a[i]=e[i+n];return a}var _cr=ycr,bcr=QU,Scr=_cr;function Ecr(e,n){return n.length<2?e:bcr(e,Scr(n,0,-1))}var Ccr=Ecr,wcr=OI,xcr=vcr,Tcr=Ccr,Ocr=RI;function Rcr(e,n){return n=wcr(n,e),e=Tcr(e,n),e==null||delete e[Ocr(xcr(n))]}var Icr=Rcr,Ncr=GU;function Mcr(e){return Ncr(e)?void 0:e}var Pcr=Mcr,j$e=SI,Acr=$k,Dcr=Xc,U$e=j$e?j$e.isConcatSpreadable:void 0;function kcr(e){return Dcr(e)||Acr(e)||!!(U$e&&e&&e[U$e])}var Lcr=kcr,$cr=Cfe,Fcr=Lcr;function klt(e,n,r,i,o){var a=-1,s=e.length;for(r||(r=Fcr),o||(o=[]);++a<s;){var l=e[a];n>0&&r(l)?n>1?klt(l,n-1,r,i,o):$cr(o,l):i||(o[o.length]=l)}return o}var Llt=klt,Bcr=Llt;function jcr(e){var n=e==null?0:e.length;return n?Bcr(e,1):[]}var Ucr=jcr,Hcr=Ucr,zcr=vYe,Vcr=yYe;function Gcr(e){return Vcr(zcr(e,void 0,Hcr),e+"")}var $lt=Gcr,Wcr=Uk,Ycr=Nfe,qcr=Icr,Kcr=OI,Xcr=gw,Qcr=Pcr,Zcr=$lt,Jcr=iYe,eur=1,tur=2,nur=4,rur=Zcr(function(e,n){var r={};if(e==null)return r;var i=!1;n=Wcr(n,function(a){return a=Kcr(a,e),i||(i=a.length>1),a}),Xcr(e,Jcr(e),r),i&&(r=Ycr(r,eur|tur|nur,Qcr));for(var o=n.length;o--;)qcr(r,n[o]);return r}),iur=rur;const h$=Or(iur);function our(e){return e===void 0}var aur=our;const ll=Or(aur);var sur=xfe;function lur(e,n){return sur(e,n)}var cur=lur;const Nf=Or(cur);var uur=PWe,dur=zk,fur=$k,pur=Xc,hur=c_,gur=Fk,mur=Bk,vur=zU,yur="[object Map]",_ur="[object Set]",bur=Object.prototype,Sur=bur.hasOwnProperty;function Eur(e){if(e==null)return!0;if(hur(e)&&(pur(e)||typeof e=="string"||typeof e.splice=="function"||gur(e)||vur(e)||fur(e)))return!e.length;var n=dur(e);if(n==yur||n==_ur)return!e.size;if(mur(e))return!uur(e).length;for(var r in e)if(Sur.call(e,r))return!1;return!0}var Cur=Eur;const ta=Or(Cur);function b0(e,n){e&&console.warn(`Warning: ${n}`)}function bve(e){return e==null}let wur=class{constructor(){this._eventMap=new Map}on(n,r){return n&&typeof r=="function"&&(this._eventMap.has(n)||this._eventMap.set(n,[]),this._eventMap.get(n).push(r)),this}once(n,r){var i=this;if(n&&typeof r=="function"){const o=function(){r(...arguments),i.off(n,o)};this.on(n,o)}}off(n,r){if(n)if(typeof r=="function"){const i=this._eventMap.get(n);if(Array.isArray(i)&&i.length){let o=-1;for(;(o=i.findIndex(a=>a===r))>-1;)i.splice(o,1)}}else bve(r)&&this._eventMap.delete(n);return this}emit(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 this._eventMap.has(n)?([...this._eventMap.get(n)].forEach(s=>s(...i)),!0):!1}};function N2(e){try{return e instanceof HTMLElement}catch{return typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object"}}function xur(e){if(e&&typeof e=="object")return typeof e.toJSON=="function"?e.toJSON():["left","top","right","bottom","width","height"].reduce((r,i)=>(r[i]=e[i],r),{})}function H0(e){e.stopPropagation(),e.preventDefault()}function Tur(e){return e.length===1&&e.match(/\S/)}function g$(e,n){for(let r=0;r<e.length;r++)e[r]===n?(e[r].tabIndex=0,e[r].focus()):e[r].tabIndex=-1}function Our(e){e.length>0&&g$(e,e[0])}function Rur(e){e.length>0&&g$(e,e[e.length-1])}function Iur(e,n){let r,i;e.length>0&&(n===e[0]?r=e[e.length-1]:(i=e.indexOf(n),r=e[i-1]),g$(e,r))}function Nur(e,n){let r,i;e.length>0&&(n===e[e.length-1]?r=e[0]:(i=e.indexOf(n),r=e[i+1]),g$(e,r))}function Mur(e,n,r,i){let o,a;return!e||!r||!i||i.length>1?-1:(i=i.toLowerCase(),o=e.indexOf(n)+1,o>=e.length&&(o=0),a=r.indexOf(i,o),a===-1&&(a=r.indexOf(i,0)),a>=0?a:-1)}function Pur(e,n){if(!e)return null;for(;e.parentElement&&fr(e.parentElement,"attributes.role.value","")!==n;)e=e.parentElement;return e.parentElement}function Aur(e,n){for(let r=0;r<e.length;r++){const i=e[r].attributes["data-popupid"];if(i&&i.value===n)return e[r]}return null}const y5={TOP:/top/i,RIGHT:/right/i,BOTTOM:/bottom/i,LEFT:/left/i},Gx={left:0,top:0,height:0,width:0,scrollLeft:0,scrollTop:0};let Dur=class extends tc{constructor(n){var r;super(Object.assign({},n)),r=this,this.removePortal=()=>{this._adapter.removePortal()},this.setDisplayNone=(i,o)=>{this._adapter.setDisplayNone(i,o)},this.updateStateIfCursorOnTrigger=i=>{var o,a;if(!((o=i==null?void 0:i.matches)===null||o===void 0)&&o.call(i,":hover")){const s=this._adapter.getEventName(),l=this.getState("triggerEventSet");(a=l[s.mouseEnter])===null||a===void 0||a.call(l)}},this.onResize=()=>{this.getState("visible")&&this.calcPosition()},this.delayShow=()=>{const i=this.getProp("mouseEnterDelay");this.clearDelayTimer(),i>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},i):this.show()},this.show=()=>{if(this._adapter.getAnimatingState())return;const i=this.getProp("content"),o=this.getProp("trigger"),a=this.getProp("clickTriggerToHide"),{visible:s,displayNone:l}=this.getStates();if(l&&this.setDisplayNone(!1),!s){if(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),o==="hover"){const c=()=>{var u;const d=this._adapter.getTriggerDOM();o&&!(!((u=d==null?void 0:d.matches)===null||u===void 0)&&u.call(d,":hover"))&&this.hide(),this._adapter.off("portalInserted",c)};this._adapter.on("portalInserted",c)}this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(i,{left:-9999,top:-9999}),o==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(o==="click"||a||o==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent()}},this.calcPosition=function(i,o,a){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;i=(ta(i)?r._adapter.getTriggerBounding():i)||Object.assign({},Gx),a=(ta(a)?r._adapter.getPopupContainerRect():a)||Object.assign({},Gx),o=(ta(o)?r._adapter.getWrapperBounding():o)||Object.assign({},Gx);let l=r.calcPosStyle({triggerRect:i,wrapperRect:o,containerRect:a}),c=r.getProp("position");if(r.getProp("autoAdjustOverflow")){const{position:u,isHeightOverFlow:d,isWidthOverFlow:f}=r.adjustPosIfNeed(c,l,i,o,a);(c!==u||d||f)&&(c=u,l=r.calcPosStyle({triggerRect:i,wrapperRect:o,containerRect:a,position:c,spacing:null,isOverFlow:[d,f]}))}return s&&r._mounted&&r._adapter.setPosition(Object.assign(Object.assign({},l),{position:c})),l},this.delayHide=()=>{const i=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),i>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},i):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=i=>{const{guardFocus:o,closeOnEsc:a}=this.getProps();switch(i&&i.key){case"Escape":a&&this._handleEscKeyDown(i);break;case"Tab":if(o){const s=this._adapter.getContainer(),l=this._adapter.getFocusableElements(s);l.length&&(i.shiftKey?this._handleContainerShiftTabKeyDown(l,i):this._handleContainerTabKeyDown(l,i))}break}},this._timer=null}init(){const{wrapperId:n}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),this._initContainerPosition(),n||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const n=this.getProp("trigger"),{triggerEventSet:r,portalEventSet:i}=this._generateEvent(n);this._bindTriggerEvent(r),this._bindPortalEvent(i),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(n){this._adapter.registerTriggerEvent(n)}_bindPortalEvent(n){this._adapter.registerPortalEvent(n)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",o=arguments.length>3?arguments[3]:void 0;switch(i){case"reverse":return this._reversePos(n,r);case"expand":return this._expandPos(n,o);case"reduce":return this._reducePos(n);default:return this._reversePos(n,r)}}_reversePos(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(y5.TOP.test(n))return n.replace("top","bottom").replace("Top","Bottom");if(y5.BOTTOM.test(n))return n.replace("bottom","top").replace("Bottom","Top")}else{if(y5.LEFT.test(n))return n.replace("left","right").replace("Left","Right");if(y5.RIGHT.test(n))return n.replace("right","left").replace("Right","Left")}return n}_expandPos(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0;return n.concat(r)}_reducePos(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const r=["Top","Bottom","Left","Right"].find(i=>n.endsWith(i));return r?n.replace(r,""):n}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(n){const r=this._adapter.getEventName(),i={[r.keydown]:a=>{this._handleTriggerKeydown(a)}};let o={};switch(n){case"focus":i[r.focus]=()=>{this.delayShow()},i[r.blur]=()=>{this.delayHide()},o=i;break;case"click":i[r.click]=()=>{this.show()},o={};break;case"hover":i[r.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},i[r.mouseLeave]=()=>{this.delayHide()},i[r.focus]=()=>{const{disableFocusListener:a}=this.getProps();!a&&this.delayShow()},i[r.blur]=()=>{const{disableFocusListener:a}=this.getProps();!a&&this.delayHide()},o=Object.assign({},i),this.getProp("clickToHide")&&(o[r.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},o[r.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":i[r.contextMenu]=a=>{a.preventDefault(),this.show()};break}return{triggerEventSet:i,portalEventSet:o}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(n){const r=this.getState("visible"),i=this.getState("isInsert");(r!==n||i!==n)&&this._adapter.togglePortalVisible(n,()=>{n&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(n)})}_roundPixel(n){return typeof n=="number"?Math.round(n):n}calcTransformOrigin(n,r,i,o){if(n&&r&&i!=null&&o!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(n))return`${this._roundPixel(r.width/2)}px ${-o*100}%`;if(["topRight","bottomRight"].includes(n))return`calc(100% - ${this._roundPixel(r.width/2)}px) ${-o*100}%`;if(["leftTop","rightTop"].includes(n))return`${-i*100}% ${this._roundPixel(r.height/2)}px`;if(["leftBottom","rightBottom"].includes(n))return`${-i*100}% calc(100% - ${this._roundPixel(r.height/2)}px)`}return`${-i*100}% ${-o*100}%`}return null}calcPosStyle(n){var r;const{spacing:i,isOverFlow:o}=n,{innerWidth:a}=window,s=(ta(n.triggerRect)?n.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},Gx),l=(ta(n.containerRect)?n.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},Gx),c=(ta(n.wrapperRect)?n.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},Gx),u=n.position!=null?n.position:this.getProp("position"),d=i??this.getProp("spacing"),{arrowPointAtCenter:f,showArrow:p,arrowBounding:h}=this.getProps(),g=p&&f;let v=d,y=0;if(typeof d!="number"){const te=u.includes("top")||u.includes("bottom");v=te?d.y:d.x,y=te?d.x:d.y}const _=fr(h,"width",24),S=fr(h,"width",24),b=fr(h,"offsetY",0),E=6,w=6;let C,x,T=0,R=0;const O=s.left+s.width/2,M=s.top+s.height/2,P=E+_/2,k=w+S/2,$=c.height-l.height,U=c.width-l.width,z=$>0?$:0,D=U>0?U:0,B=o&&o[0],Y=o&&o[1],q=O-l.left<l.right-O,K=M-l.top<l.bottom-M,H=c.width>a,G=Math.abs((c==null?void 0:c.width)-((r=this._adapter.getContainer())===null||r===void 0?void 0:r.clientWidth))>1;switch(G&&(v=v*c.width/this._adapter.getContainer().clientWidth),u){case"top":C=Y?q?l.left+c.width/2:l.right-c.width/2+D:O+y,x=B?l.bottom+z:s.top-v,T=-.5,R=-1;break;case"topLeft":C=Y?H?l.left:l.right-c.width:g?O-P+y:s.left+y,x=B?l.bottom+z:s.top-v,R=-1;break;case"topRight":C=Y?l.right+D:g?O+P+y:s.right+y,x=B?l.bottom+z:s.top-v,R=-1,T=-1;break;case"left":C=Y?l.right+D-v+P:s.left-v,x=B?K?l.top+c.height/2:l.bottom-c.height/2+z:M+y,T=-1,R=-.5;break;case"leftTop":C=Y?l.right+D-v+P:s.left-v,x=B?l.top:g?M-k+y:s.top+y,T=-1;break;case"leftBottom":C=Y?l.right+D-v+P:s.left-v,x=B?l.bottom+z:g?M+k+y:s.bottom+y,T=-1,R=-1;break;case"bottom":C=Y?q?l.left+c.width/2:l.right-c.width/2+D:O+y,x=B?l.top+k-v:s.top+s.height+v,T=-.5;break;case"bottomLeft":C=Y?H?l.left:l.right-c.width:g?O-P+y:s.left+y,x=B?l.top+k-v:s.top+s.height+v;break;case"bottomRight":C=Y?l.right+D:g?O+P+y:s.right+y,x=B?l.top+k-v:s.top+s.height+v,T=-1;break;case"right":C=Y?l.left-v+P:s.right+v,x=B?K?l.top+c.height/2:l.bottom-c.height/2+z:M+y,R=-.5;break;case"rightTop":C=Y?l.left-v+P:s.right+v,x=B?l.top:g?M-k+y:s.top+y;break;case"rightBottom":C=Y?l.left-v+P:s.right+v,x=B?l.bottom+z:g?M+k+y:s.bottom+y,R=-1;break;case"leftTopOver":C=s.left-v,x=s.top-v;break;case"rightTopOver":C=s.right+v,x=s.top-v,T=-1;break;case"leftBottomOver":C=s.left-v,x=s.bottom+v,R=-1;break;case"rightBottomOver":C=s.right+v,x=s.bottom+v,T=-1,R=-1;break}const Q=this.calcTransformOrigin(u,s,T,R),le=this._adapter.containerIsBody();if(C=C-l.left,x=x-l.top,G&&(C/=c.width/this._adapter.getContainer().clientWidth),G&&(x/=c.height/this._adapter.getContainer().clientHeight),le&&!this._adapter.containerIsRelativeOrAbsolute()){const te=this._adapter.getDocumentElementBounding();C+=l.left-te.left,x+=l.top-te.top}C=le?C:C+l.scrollLeft,x=le?x:x+l.scrollTop;const Z=s.height;if(this.getProp("showArrow")&&!f&&Z<=(S/2+b)*2){const te=Z/2-(b+S/2);(u.includes("Top")||u.includes("Bottom"))&&!u.includes("Over")&&(x=u.includes("Top")?x+te:x-te)}const j={left:this._roundPixel(C),top:this._roundPixel(x)};let F="";return T!=null&&(F+=`translateX(${T*100}%) `,Object.defineProperty(j,"translateX",{enumerable:!1,value:T})),R!=null&&(F+=`translateY(${R*100}%) `,Object.defineProperty(j,"translateY",{enumerable:!1,value:R})),Q!=null&&(j.transformOrigin=Q),F&&(j.transform=F),j}isLR(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n.includes("left")||n.includes("right")}isTB(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n.includes("top")||n.includes("bottom")}isReverse(n,r,i){return n<i&&r>i}isOverFlow(n,r,i){return n<i&&r<i}isHalfOverFlow(n,r,i){return n<i||r<i}isHalfAllEnough(n,r,i){return n>=i||r>=i}getReverse(n,r,i,o){return n&&o||i}adjustPosIfNeed(n,r,i,o,a){const{innerWidth:s,innerHeight:l}=window,{margin:c}=this.getProps(),u=typeof c=="number"?c:c.marginLeft,d=typeof c=="number"?c:c.marginTop,f=typeof c=="number"?c:c.marginRight,p=typeof c=="number"?c:c.marginBottom;let h=!1,g=!1;const v=this.getProp("spacing");let y=v,_=0;if(typeof v!="number"){const S=n.includes("top")||n.includes("bottom");y=S?v.y:v.x,_=S?v.x:v.y}if(o.width>0&&o.height>0){const S=i.left,b=i.right,E=i.top,w=i.bottom,C=s-S,x=l-E,T=s-b,R=l-w,O=o.width>i.width,M=o.height>i.height,P=E-d<o.height+y&&R-p>o.height+y,k=S-u<o.width+y&&T-f>o.width+y,$=R-p<o.height+y&&E-d>o.height+y,U=T-f<o.width+y&&S-u>o.width+y;x-p<o.height+y&&w-d>o.height+y,w-d<o.height+y&&x-p>o.height+y;const z=x<o.height+_&&w>o.height+_,D=w<o.height+_&&x>o.height+_,B=C<o.width+_&&b>o.width+_,Y=b<o.width+_&&C>o.width+_,q=x<o.height+y&&w>o.height+y,K=w<o.height+y&&x>o.height+y,H=C<o.width&&b>o.width,G=b<o.width&&C>o.width,Q=E-a.top,le=S-a.left,Z=Q+i.height,j=le+i.width,F=a.bottom-w,te=a.right-b,oe=F+i.height,de=te+i.width,pe=this.isReverse(Q-d,F-p,o.height+y),me=this.isReverse(le-u,te-f,o.width+y),ve=this.isReverse(F-p,Q-d,o.height+y),he=this.isReverse(te-f,le-u,o.width+y);this.isReverse(oe-p,Z-d,o.height+y),this.isReverse(Z-d,oe-p,o.height+y);const be=this.isReverse(oe,Z,o.height+_),we=this.isReverse(Z,oe,o.height+_),De=this.isReverse(de,j,o.width+_),Ae=this.isReverse(j,de,o.width+_),Ee=i.height/2,Re=i.width/2,Te=this.isOverFlow(E-d,R-p,o.height+y),Oe=this.isOverFlow(S-u,T-f,o.width+y),Ne=this.isOverFlow(w-d,x-p,o.height+y),je=this.isOverFlow(b-u,C-f,o.width+y),ne=this.isHalfOverFlow(w-Ee,x-Ee,(o.height+_)/2),J=this.isHalfOverFlow(b-Re,C-Re,(o.width+_)/2),ae=this.isHalfAllEnough(w-Ee,x-Ee,(o.height+_)/2),Se=this.isHalfAllEnough(b-Re,C-Re,(o.width+_)/2),xe=this.isOverFlow(Q-d,F-p,o.height+y),ue=this.isOverFlow(le-u,te-f,o.width+y),Me=this.isOverFlow(Z-d,oe-p,o.height+y),$e=this.isOverFlow(j-u,de-f,o.width+y),ge=this.isHalfOverFlow(Z-Ee,oe-Ee,(o.height+_)/2),Ve=this.isHalfOverFlow(j-Re,de-Re,(o.width+_)/2),st=this.isHalfAllEnough(Z-Ee,oe-Ee,(o.height+_)/2),Je=this.isHalfAllEnough(j-Re,de-Re,(o.width+_)/2),ot=this.getReverse(Te,xe,P,pe),Xe=this.getReverse(Oe,ue,k,me),Ze=this.getReverse(Te,xe,$,ve),bt=this.getReverse(Oe,ue,U,he),at=this.getReverse(Ne,Me,z,be),pt=this.getReverse(Ne,Me,D,we),Ct=this.getReverse(je,$e,B,De),It=this.getReverse(je,$e,Y,Ae),Wt=ne&&ge,Bt=J&&Ve;switch(n){case"top":ot&&(n=this._adjustPos(n,!0)),Bt&&(Ct||It)&&(n=this._adjustPos(n,!0,"expand",Ct?"Right":"Left"));break;case"topLeft":ot&&(n=this._adjustPos(n,!0)),Ct&&O&&(n=this._adjustPos(n)),g&&(Se||Je)&&(n=this._adjustPos(n,!0,"reduce"));break;case"topRight":ot&&(n=this._adjustPos(n,!0)),It&&O&&(n=this._adjustPos(n)),g&&(Se||Je)&&(n=this._adjustPos(n,!0,"reduce"));break;case"left":Xe&&(n=this._adjustPos(n)),Wt&&(at||pt)&&(n=this._adjustPos(n,!1,"expand",at?"Bottom":"Top"));break;case"leftTop":Xe&&(n=this._adjustPos(n)),at&&M&&(n=this._adjustPos(n,!0)),h&&(ae||st)&&(n=this._adjustPos(n,!1,"reduce"));break;case"leftBottom":Xe&&(n=this._adjustPos(n)),pt&&M&&(n=this._adjustPos(n,!0)),h&&(ae||st)&&(n=this._adjustPos(n,!1,"reduce"));break;case"bottom":Ze&&(n=this._adjustPos(n,!0)),Bt&&(Ct||It)&&(n=this._adjustPos(n,!0,"expand",Ct?"Right":"Left"));break;case"bottomLeft":Ze&&(n=this._adjustPos(n,!0)),Ct&&O&&(n=this._adjustPos(n)),g&&(Se||Je)&&(n=this._adjustPos(n,!0,"reduce"));break;case"bottomRight":Ze&&(n=this._adjustPos(n,!0)),It&&O&&(n=this._adjustPos(n)),g&&(Se||Je)&&(n=this._adjustPos(n,!0,"reduce"));break;case"right":bt&&(n=this._adjustPos(n)),Wt&&(at||pt)&&(n=this._adjustPos(n,!1,"expand",at?"Bottom":"Top"));break;case"rightTop":bt&&(n=this._adjustPos(n)),at&&M&&(n=this._adjustPos(n,!0)),h&&(ae||st)&&(n=this._adjustPos(n,!1,"reduce"));break;case"rightBottom":bt&&(n=this._adjustPos(n)),pt&&M&&(n=this._adjustPos(n,!0)),h&&(ae||st)&&(n=this._adjustPos(n,!1,"reduce"));break;case"leftTopOver":q&&(n=this._adjustPos(n,!0)),H&&(n=this._adjustPos(n));break;case"leftBottomOver":K&&(n=this._adjustPos(n,!0)),H&&(n=this._adjustPos(n));break;case"rightTopOver":q&&(n=this._adjustPos(n,!0)),G&&(n=this._adjustPos(n));break;case"rightBottomOver":K&&(n=this._adjustPos(n,!0)),G&&(n=this._adjustPos(n));break}this.isTB(n)&&(h=Te&&xe,n==="top"||n==="bottom"?g=J&&Ve||b<0||T<0:g=je&&$e||b<0||T<0),this.isLR(n)&&(g=Oe&&ue,n==="left"||n==="right"?h=ne&&ge||E<0||x<0:h=Ne&&Me||E<0||x<0)}return{position:n,isHeightOverFlow:h,isWidthOverFlow:g}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.updateContainerPosition()}_handleTriggerKeydown(n){const{closeOnEsc:r,disableArrowKeyDown:i}=this.getProps(),o=this._adapter.getContainer(),a=this._adapter.getFocusableElements(o),s=a.length;switch(n&&n.key){case"Escape":H0(n),r&&this._handleEscKeyDown(n);break;case"ArrowUp":!i&&s&&this._handleTriggerArrowUpKeydown(a,n);break;case"ArrowDown":!i&&s&&this._handleTriggerArrowDownKeydown(a,n);break}}focusTrigger(){const{trigger:n,returnFocusOnClose:r,preventScroll:i}=this.getProps();if(r&&n!=="custom"){const o=this._adapter.getTriggerNode();o&&"focus"in o&&o.focus({preventScroll:i})}}_handleEscKeyDown(n){const{trigger:r}=this.getProps();r!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(n)}_handleContainerTabKeyDown(n,r){const{preventScroll:i}=this.getProps(),o=this._adapter.getActiveElement();n[n.length-1]===o&&(n[0].focus({preventScroll:i}),r.preventDefault())}_handleContainerShiftTabKeyDown(n,r){const{preventScroll:i}=this.getProps(),o=this._adapter.getActiveElement();n[0]===o&&(n[n.length-1].focus({preventScroll:i}),r.preventDefault())}_handleTriggerArrowDownKeydown(n,r){const{preventScroll:i}=this.getProps();n[0].focus({preventScroll:i}),r.preventDefault()}_handleTriggerArrowUpKeydown(n,r){const{preventScroll:i}=this.getProps();n[n.length-1].focus({preventScroll:i}),r.preventDefault()}};const kur={PREFIX:`${ui}-tooltip`},tO={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Sb={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function Hse(e){return`${e}-${new Date().getTime()}-${Math.random()}`}function Gj(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:n="",length:r=7}=e,i="0123456789abcdefghijklmnopqrstuvwxyz",o=i.length;let a="";for(let s=0;s<r;s++){const l=Math.floor(Math.random()*o);a+=i.charAt(l)}return n?`${n}-${a}`:a}var Lur=JU,$ur=OI,Fur=UU,H$e=wd,Bur=RI;function jur(e,n,r,i){if(!H$e(e))return e;n=$ur(n,e);for(var o=-1,a=n.length,s=a-1,l=e;l!=null&&++o<a;){var c=Bur(n[o]),u=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(o!=s){var d=l[c];u=i?i(d,c,l):void 0,u===void 0&&(u=H$e(d)?d:Fur(n[o+1])?[]:{})}Lur(l,c,u),l=l[c]}return e}var Flt=jur,Uur=Flt;function Hur(e,n,r){return e==null?e:Uur(e,n,r)}var zur=Hur;const Vur=Or(zur);var Gur=Nfe,Wur=1,Yur=4;function qur(e,n){return n=typeof n=="function"?n:void 0,Gur(e,Wur|Yur,n)}var Kur=qur;const Xur=Or(Kur);class Qur{constructor(){this.config={}}}const eee=new Qur;var z$e=function(e,n,r,i){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(d){try{u(i.next(d))}catch(f){s(f)}}function c(d){try{u(i.throw(d))}catch(f){s(f)}}function u(d){d.done?a(d.value):o(d.value).then(l,c)}u((i=i.apply(e,n||[])).next())})};function _5(e,n){e&&typeof e.stopPropagation=="function"&&e.stopPropagation(),e.nativeEvent&&typeof e.nativeEvent.stopImmediatePropagation=="function"&&e.nativeEvent.stopImmediatePropagation()}const of=e=>V.isValidElement(e)&&fr(e.type,"elementType")==="Icon";function Zur(){return document?document.activeElement:null}function Jur(e){if(!N2(e))return[];const r=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(r))}function Sve(e,n){return z$e(this,void 0,void 0,function*(){if(n===0){yield e();return}else{yield new Promise(r=>{setTimeout(()=>z$e(this,void 0,void 0,function*(){yield Sve(e,n-1),r()}),0)});return}})}function edr(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}function T_(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=()=>{var i,o;return((o=(i=eee==null?void 0:eee.config)===null||i===void 0?void 0:i.overrideDefaultProps)===null||o===void 0?void 0:o[e])||{}};return new Proxy(Object.assign({},n),{get(i,o,a){const s=r();return o in s?s[o]:Reflect.get(i,o,a)},set(i,o,a,s){return Reflect.set(i,o,a,s)},ownKeys(){const i=r();return Array.from(new Set([...Reflect.ownKeys(n),...Object.keys(i)]))},getOwnPropertyDescriptor(i,o){const a=r();return o in a?Reflect.getOwnPropertyDescriptor(a,o):Reflect.getOwnPropertyDescriptor(i,o)}})}const Ng=V.createContext({}),tdr=()=>document.body;class m$ extends m.PureComponent{constructor(n,r){var i;super(n),i=this,this.initContainer=function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var s,l;try{let c;if(!i.el||!(!((s=i.state)===null||s===void 0)&&s.container)||!Array.from(i.state.container.childNodes).includes(i.el)){i.el=document.createElement("div");const d=(i.props.getPopupContainer||o.getPopupContainer||tdr)();return d.appendChild(i.el),i.addStyle(i.props.style),i.addClass(i.props.prefixCls,o,i.props.className),c=d,c}}catch(c){if(!a)throw c}return(l=i.state)===null||l===void 0?void 0:l.container},this.addStyle=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(i.el)for(const a of Object.keys(o))i.el.style[a]=o[a]},this.addClass=function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i.context;const{direction:s}=a;for(var l=arguments.length,c=new Array(l>2?l-2:0),u=2;u<l;u++)c[u-2]=arguments[u];const d=Ce(o,...c,{[`${o}-rtl`]:s==="rtl"});i.el&&(i.el.className=d)},this.state={container:this.initContainer(r,!0)}}componentDidMount(){const n=this.initContainer(this.context);n!==this.state.container&&this.setState({container:n})}componentDidUpdate(n){const{didUpdate:r}=this.props;r&&r(n)}componentWillUnmount(){const{container:n}=this.state;n&&n.removeChild(this.el)}render(){const{state:n,props:r}=this;return n.container?Us.createPortal(r.children,this.el):null}}m$.contextType=Ng;m$.defaultProps={prefixCls:`${ui}-portal`};m$.propTypes={children:ie.node,prefixCls:ie.string,getPopupContainer:ie.func,className:ie.string,didUpdate:ie.func};var ndr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const rdr=e=>{const{className:n,style:r}=e,i=ndr(e,["className","style"]);return V.createElement("svg",Object.assign({"aria-hidden":!0,className:n,style:r},i,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),V.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))};var idr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const odr=e=>{const{className:n,style:r}=e,i=idr(e,["className","style"]);return V.createElement("svg",Object.assign({"aria-hidden":!0,className:n,style:r},i,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),V.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},adr=ie.shape({offsetX:ie.number,offsetY:ie.number,width:ie.number,height:ie.number});class OD extends V.Component{constructor(n){super(n),this.handleAnimationStart=()=>{var r,i;(i=(r=this.props).onAnimationStart)===null||i===void 0||i.call(r)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var r,i;(i=(r=this.props).onAnimationEnd)===null||i===void 0||i.call(r,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var n,r,i,o;(r=(n=this.props).onAnimationStart)===null||r===void 0||r.call(n),this.props.motion||((o=(i=this.props).onAnimationEnd)===null||o===void 0||o.call(i,!1),this.setState({isAnimating:!1}))}componentDidUpdate(n,r,i){const o=Object.keys(this.props).filter(a=>!Nf(this.props[a],n[a]));o.includes("animationState"),(o.includes("startClassName")||o.includes("replayKey")||o.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var a,s,l,c;(s=(a=this.props).onAnimationStart)===null||s===void 0||s.call(a),this.props.motion||((c=(l=this.props).onAnimationEnd)===null||c===void 0||c.call(l,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var n;return this.props.motion?this.props.children({animationClassName:(n=this.state.currentClassName)!==null&&n!==void 0?n:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}OD.defaultProps={motion:!0,replayKey:""};var V$e=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const lF=kur.PREFIX,sdr=tO.POSITION_SET,ldr=tO.TRIGGER_SET,cdr=["flex","block","table","flow-root","grid"],udr=()=>document.body;class qo extends fl{constructor(n){super(n),this.isAnimating=!1,this.setContainerEl=r=>this.containerEl={current:r},this.isSpecial=r=>{if(N2(r))return!!r.disabled;if(m.isValidElement(r)){if(fr(r,"props.disabled"))return tO.STATUS_DISABLED;const o=fr(r,"props.loading"),a=!ta(r)&&!ta(r.type)&&(fr(r,"type.elementType")==="Button"||fr(r,"type.elementType")==="IconButton");if(o&&a)return tO.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:r}=this.state,{showArrow:i,prefixCls:o,style:a}=this.props;let s=null;const l=Ce([`${o}-icon-arrow`]),c=fr(a,"backgroundColor"),u=r!=null&&r.includes("left")||r!=null&&r.includes("right")?V.createElement(odr,null):V.createElement(rdr,null);return i&&(m.isValidElement(i)?s=i:s=V.cloneElement(u,{className:l,style:{color:c,fill:"currentColor"}})),s},this.handlePortalInnerClick=r=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&_5(r)},this.handlePortalMouseDown=r=>{this.props.stopPropagation&&_5(r)},this.handlePortalFocus=r=>{this.props.stopPropagation&&_5(r)},this.handlePortalBlur=r=>{this.props.stopPropagation&&_5(r)},this.handlePortalInnerKeyDown=r=>{this.foundation.handleContainerKeydown(r)},this.renderContentNode=r=>{const i={initialFocusRef:this.initialFocusRef};return za(r)?r(i):r},this.renderPortal=()=>{const{containerStyle:r={},visible:i,portalEventSet:o,placement:a,displayNone:s,transitionState:l,id:c,isPositionUpdated:u}=this.state,{prefixCls:d,content:f,showArrow:p,style:h,motion:g,role:v,zIndex:y}=this.props,_=this.renderContentNode(f),{className:S}=this.props,b=this.context.direction,E=Ce(S,{[`${d}-wrapper`]:!0,[`${d}-wrapper-show`]:i,[`${d}-with-arrow`]:!!p,[`${d}-rtl`]:b==="rtl"}),w=this.renderIcon(),C=h$(r,g?["transformOrigin"]:void 0),x=fr(r,"transformOrigin"),T=fr(h,"opacity",null),R=T||1,O=V.createElement(OD,{fillMode:"forwards",animationState:l,motion:g&&u,startClassName:l==="enter"?`${lF}-animation-show`:`${lF}-animation-hide`,onAnimationStart:()=>this.isAnimating=!0,onAnimationEnd:()=>{var M,P;l==="leave"&&(this.didLeave(),(P=(M=this.props).afterClose)===null||P===void 0||P.call(M)),this.isAnimating=!1}},M=>{let{animationStyle:P,animationClassName:k,animationEventsNeedBind:$}=M;return V.createElement("div",Object.assign({className:Ce(E,k),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},P),s?{display:"none"}:{}),{transformOrigin:x}),h),T?{opacity:u?R:"0"}:{})},o,$,{role:v,"x-placement":a,id:c}),V.createElement("div",{className:`${lF}-content`},_),w)});return V.createElement(m$,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:y}},V.createElement("div",{tabIndex:-1,className:`${ui}-portal-inner`,style:C,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},O))},this.wrapSpan=r=>{const{wrapperClassName:i}=this.props,o=fr(r,"props.style.display"),a=fr(r,"props.block"),s=typeof r=="string",l={};return s||(l.display="inline-block"),(a||cdr.includes(o))&&(l.width="100%"),V.createElement("span",{className:i,style:l},r)},this.mergeEvents=(r,i)=>{const o={};return TYe(i,(a,s)=>{typeof a=="function"&&(o[s]=function(){a(...arguments),r&&typeof r[s]=="function"&&r[s](...arguments)})}),o},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:n.position||"top",transitionStyle:{},isPositionUpdated:!1,id:n.wrapperId,displayNone:!1},this.foundation=new Dur(this.adapter),this.eventManager=new wur,this.triggerEl=V.createRef(),this.containerEl=V.createRef(),this.initialFocusRef=V.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var n=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return n.eventManager.on(...arguments)},off:function(){return n.eventManager.off(...arguments)},getAnimatingState:()=>this.isAnimating,insertPortal:(r,i)=>{var o=V$e(i,["position"]);this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),o)},()=>{setTimeout(()=>{this.setState(a=>(a.transitionState==="enter"&&this.eventManager.emit("portalInserted"),{}))},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:r=>{this.setState({triggerEventSet:r})},registerPortalEvent:r=>{this.setState({portalEventSet:r})},getTriggerBounding:()=>{const r=this.adapter.getTriggerNode();return this.triggerEl.current=r,r&&r.getBoundingClientRect()},getPopupContainerRect:()=>{const r=this.getPopupContainer();let i=null;if(r&&N2(r)){const o=xur(r.getBoundingClientRect());i=Object.assign(Object.assign({},o),{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop})}return i},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const r=this.getPopupContainer();return window.getComputedStyle(r).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const r=this.containerEl&&this.containerEl.current;return r&&r.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:r=>{var{position:i}=r,o=V$e(r,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),o),placement:i,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(r,i)=>{this.setState({displayNone:r},i)},updatePlacementAttr:r=>{this.setState({placement:r})},togglePortalVisible:(r,i)=>{const o={};o.transitionState=r?"enter":"leave",o.visible=r,this.mounted&&this.setState(o,()=>{i()})},registerClickOutsideHandler:r=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=i=>{if(!this.mounted)return!1;let o=this.triggerEl&&this.triggerEl.current,a=this.containerEl&&this.containerEl.current;o=Gl.findDOMNode(o),a=Gl.findDOMNode(a);const s=i.target,l=i.composedPath&&i.composedPath()||[s],c=this.props.clickTriggerToHide?o&&o.contains(s)||l.includes(o):!1;(o&&!o.contains(s)&&a&&!a.contains(s)&&!(l.includes(a)||l.includes(o))||c)&&(this.props.onClickOutSide(i),r())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:r=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=toe(i=>{if(!this.mounted)return!1;r(i)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:r=>{this.props.onVisibleChange(r)},registerScrollHandler:r=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=toe(i=>{if(!this.mounted)return!1;const o=this.adapter.getTriggerNode();if(i.target.contains(o)){const s={x:i.target.scrollLeft,y:i.target.scrollTop};r(s)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const r=this.getPopupContainer();if(r&&N2(r)){const o=window.getComputedStyle(r).getPropertyValue("position");this.containerPosition=o}},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let r=this.triggerEl.current;return N2(this.triggerEl.current)||(r=Gl.findDOMNode(this.triggerEl.current)),r},getFocusableElements:r=>Jur(r),getActiveElement:()=>Zur(),setInitialFocus:()=>{const{preventScroll:r}=this.props,i=fr(this,"initialFocusRef.current");i&&"focus"in i&&i.focus({preventScroll:r})},notifyEscKeydown:r=>{this.props.onEscKeyDown(r)},setId:()=>{this.setState({id:Gj()})},getTriggerDOM:()=>this.triggerEl.current?Gl.findDOMNode(this.triggerEl.current):null})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||udr,this.foundation.init(),Sve(()=>{let n=this.triggerEl.current;n&&(n instanceof HTMLElement||(n=Us.findDOMNode(n))),this.foundation.updateStateIfCursorOnTrigger(n)},1)}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(n,r){b0(this.props.mouseLeaveDelay<this.props.mouseEnterDelay,"[Semi Tooltip] 'mouseLeaveDelay' cannot be less than 'mouseEnterDelay', which may cause the dropdown layer to not be hidden."),n.visible!==this.props.visible&&(["hover","focus"].includes(this.props.trigger)?this.props.visible?this.foundation.delayShow():this.foundation.delayHide():this.props.visible?this.foundation.show():this.foundation.hide()),Nf(n.rePosKey,this.props.rePosKey)||this.rePosition()}render(){const{isInsert:n,triggerEventSet:r,visible:i,id:o}=this.state,{wrapWhenSpecial:a,role:s,trigger:l}=this.props;let{children:c}=this.props;const u=Object.assign({},fr(c,"props.style")),d={};if(a){const h=this.isSpecial(c);h?(u.pointerEvents="none",h===tO.STATUS_DISABLED&&(d.cursor="not-allowed"),c=m.cloneElement(c,{style:u}),l!=="custom"&&(c=this.wrapSpan(c)),this.isWrapped=!0):m.isValidElement(c)||(c=this.wrapSpan(c),this.isWrapped=!0)}let f={};s==="dialog"?(f["aria-expanded"]=i?"true":"false",f["aria-haspopup"]="dialog",f["aria-controls"]=o):f["aria-describedby"]=o;const p=V.cloneElement(c,Object.assign(Object.assign(Object.assign(Object.assign({},f),c.props),this.mergeEvents(c.props,r)),{style:Object.assign(Object.assign({},fr(c,"props.style")),d),className:Ce(fr(c,"props.className")),ref:h=>{this.triggerEl.current=h;const{ref:g}=c;typeof g=="function"?g(h):g&&typeof g=="object"&&(g.current=h)},tabIndex:c.props.tabIndex||0,"data-popupid":o}));return V.createElement(V.Fragment,null,n?this.renderPortal():null,p)}}qo.contextType=Ng;qo.propTypes={children:ie.node,motion:ie.bool,autoAdjustOverflow:ie.bool,position:ie.oneOf(sdr),getPopupContainer:ie.func,mouseEnterDelay:ie.number,mouseLeaveDelay:ie.number,trigger:ie.oneOf(ldr).isRequired,className:ie.string,wrapperClassName:ie.string,clickToHide:ie.bool,clickTriggerToHide:ie.bool,visible:ie.bool,style:ie.object,content:ie.oneOfType([ie.node,ie.func]),prefixCls:ie.string,onVisibleChange:ie.func,onClickOutSide:ie.func,spacing:ie.oneOfType([ie.number,ie.object]),margin:ie.oneOfType([ie.number,ie.object]),showArrow:ie.oneOfType([ie.bool,ie.node]),zIndex:ie.number,rePosKey:ie.oneOfType([ie.string,ie.number]),arrowBounding:adr,transformFromCenter:ie.bool,arrowPointAtCenter:ie.bool,stopPropagation:ie.bool,role:ie.string,wrapWhenSpecial:ie.bool,guardFocus:ie.bool,returnFocusOnClose:ie.bool,preventScroll:ie.bool,keepDOM:ie.bool};qo.__SemiComponentName__="Tooltip";qo.defaultProps=T_(qo.__SemiComponentName__,{arrowBounding:Sb.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:lF,role:"tooltip",mouseEnterDelay:Sb.MOUSE_ENTER_DELAY,mouseLeaveDelay:Sb.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:vr,onClickOutSide:vr,spacing:Sb.SPACING,margin:Sb.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Sb.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:vr,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1});var Eve={exports:{}};const Blt=(e,{target:n=document.body}={})=>{const r=document.createElement("textarea"),i=document.activeElement;r.value=e,r.setAttribute("readonly",""),r.style.contain="strict",r.style.position="absolute",r.style.left="-9999px",r.style.fontSize="12pt";const o=document.getSelection();let a=!1;o.rangeCount>0&&(a=o.getRangeAt(0)),n.append(r),r.select(),r.selectionStart=0,r.selectionEnd=e.length;let s=!1;try{s=document.execCommand("copy")}catch{}return r.remove(),a&&(o.removeAllRanges(),o.addRange(a)),i&&i.focus(),s};Eve.exports=Blt;Eve.exports.default=Blt;var ddr=Eve.exports;const fdr=Or(ddr);function ly(){}const pdr=V.createContext(null);function tee(e){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=n.width?String(n.width):e.defaultWidth,i=e.formats[r]||e.formats[e.defaultWidth];return i}}function UM(e){return function(n,r){var i=r!=null&&r.context?String(r.context):"standalone",o;if(i==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,s=r!=null&&r.width?String(r.width):a;o=e.formattingValues[s]||e.formattingValues[a]}else{var l=e.defaultWidth,c=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[c]||e.values[l]}var u=e.argumentCallback?e.argumentCallback(n):n;return o[u]}}function HM(e){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=n.match(o);if(!a)return null;var s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?gdr(l,function(f){return f.test(s)}):hdr(l,function(f){return f.test(s)}),u;u=e.valueCallback?e.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;var d=n.slice(s.length);return{value:u,rest:d}}}function hdr(e,n){for(var r in e)if(e.hasOwnProperty(r)&&n(e[r]))return r}function gdr(e,n){for(var r=0;r<e.length;r++)if(n(e[r]))return r}function mdr(e){return function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.match(e.matchPattern);if(!i)return null;var o=i[0],a=n.match(e.parsePattern);if(!a)return null;var s=e.valueCallback?e.valueCallback(a[0]):a[0];s=r.valueCallback?r.valueCallback(s):s;var l=n.slice(o.length);return{value:s,rest:l}}}function vdr(e){if(e===null||e===!0||e===!1)return NaN;var n=Number(e);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function Cve(e,n){if(n.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+n.length+" present")}function ydr(e){Cve(1,arguments);var n=Object.prototype.toString.call(e);return e instanceof Date||cn(e)==="object"&&n==="[object Date]"?new Date(e.getTime()):typeof e=="number"||n==="[object Number]"?new Date(e):((typeof e=="string"||n==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}var _dr={};function bdr(){return _dr}function G$e(e,n){var r,i,o,a,s,l,c,u;Cve(1,arguments);var d=bdr(),f=vdr((r=(i=(o=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(s=n.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&i!==void 0?i:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=ydr(e),h=p.getUTCDay(),g=(h<f?7:0)+h-f;return p.setUTCDate(p.getUTCDate()-g),p.setUTCHours(0,0,0,0),p}function Sdr(e,n,r){Cve(2,arguments);var i=G$e(e,r),o=G$e(n,r);return i.getTime()===o.getTime()}var Edr={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},Cdr=function(n,r,i){var o,a=Edr[n];return typeof a=="string"?o=a:r===1?o=a.one:o=a.other.replace("{{count}}",String(r)),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?o+"内":o+"前":o},wdr={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},xdr={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},Tdr={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Odr={date:tee({formats:wdr,defaultWidth:"full"}),time:tee({formats:xdr,defaultWidth:"full"}),dateTime:tee({formats:Tdr,defaultWidth:"full"})};function W$e(e,n,r){var i="eeee p";return Sdr(e,n,r)?i:e.getTime()>n.getTime()?"'下个'"+i:"'上个'"+i}var Rdr={lastWeek:W$e,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:W$e,other:"PP p"},Idr=function(n,r,i,o){var a=Rdr[n];return typeof a=="function"?a(r,i,o):a},Ndr={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},Mdr={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},Pdr={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Adr={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Ddr={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},kdr={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Ldr=function(n,r){var i=Number(n);switch(r==null?void 0:r.unit){case"date":return i.toString()+"日";case"hour":return i.toString()+"时";case"minute":return i.toString()+"分";case"second":return i.toString()+"秒";default:return"第 "+i.toString()}},$dr={ordinalNumber:Ldr,era:UM({values:Ndr,defaultWidth:"wide"}),quarter:UM({values:Mdr,defaultWidth:"wide",argumentCallback:function(n){return n-1}}),month:UM({values:Pdr,defaultWidth:"wide"}),day:UM({values:Adr,defaultWidth:"wide"}),dayPeriod:UM({values:Ddr,defaultWidth:"wide",formattingValues:kdr,defaultFormattingWidth:"wide"})},Fdr=/^(第\s*)?\d+(日|时|分|秒)?/i,Bdr=/\d+/i,jdr={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Udr={any:[/^(前)/i,/^(公元)/i]},Hdr={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},zdr={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Vdr={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Gdr={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Wdr={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Ydr={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},qdr={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Kdr={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Xdr={ordinalNumber:mdr({matchPattern:Fdr,parsePattern:Bdr,valueCallback:function(n){return parseInt(n,10)}}),era:HM({matchPatterns:jdr,defaultMatchWidth:"wide",parsePatterns:Udr,defaultParseWidth:"any"}),quarter:HM({matchPatterns:Hdr,defaultMatchWidth:"wide",parsePatterns:zdr,defaultParseWidth:"any",valueCallback:function(n){return n+1}}),month:HM({matchPatterns:Vdr,defaultMatchWidth:"wide",parsePatterns:Gdr,defaultParseWidth:"any"}),day:HM({matchPatterns:Wdr,defaultMatchWidth:"wide",parsePatterns:Ydr,defaultParseWidth:"any"}),dayPeriod:HM({matchPatterns:qdr,defaultMatchWidth:"any",parsePatterns:Kdr,defaultParseWidth:"any"})},Qdr={code:"zh-CN",formatDistance:Cdr,formatLong:Odr,formatRelative:Idr,localize:$dr,match:Xdr,options:{weekStartsOn:1,firstWeekContainsDate:4}};const zse={code:"zh-CN",currency:"CNY",dateFnsLocale:Qdr,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},Tabs:{more:"更多"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条",descend:"点击降序",ascend:"点击升序",cancelSort:"取消排序"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"},Chat:{deleteConfirm:"确认删除该会话吗?",clearContext:"上下文已清除",copySuccess:"复制成功",stop:"停止",copy:"复制",copied:"复制成功",dropAreaText:"将文件放到这里"},UserGuide:{skip:"跳过",next:"下一步",prev:"上一步",finish:"完成"},InputNumber:{},JsonViewer:{search:"查找",replace:"替换",replaceAll:"全部替换"}};class z0 extends m.Component{renderChildren(n,r){const{componentName:i}=this.props;let o=n;n!=null&&n.code||(o=zse);const a=fr(zse,"dateFnsLocale"),s=fr(o,"dateFnsLocale",a),l=fr(o,"currency");return r(o[i],o.code,s,l)}render(){const{children:n}=this.props;return V.createElement(Ng.Consumer,null,r=>{let{locale:i}=r;return V.createElement(pdr.Consumer,null,o=>this.renderChildren(i||o,n))})}}z0.propTypes={componentName:ie.string.isRequired,children:ie.any};z0.defaultProps={componentName:""};const Zdr="semi";var Jdr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const af=V.forwardRef((e,n)=>{const{svg:r,spin:i=!1,rotate:o,style:a,className:s,prefixCls:l=Zdr,type:c,size:u="default"}=e,d=Jdr(e,["svg","spin","rotate","style","className","prefixCls","type","size"]),f=Ce(`${l}-icon`,{[`${l}-icon-extra-small`]:u==="extra-small",[`${l}-icon-small`]:u==="small",[`${l}-icon-default`]:u==="default",[`${l}-icon-large`]:u==="large",[`${l}-icon-extra-large`]:u==="extra-large",[`${l}-icon-spinning`]:i===!0,[`${l}-icon-${c}`]:!!c},s),p={};return Number.isSafeInteger(o)&&(p.transform=`rotate(${o}deg)`),Object.assign(p,a),V.createElement("span",Object.assign({role:"img",ref:n,"aria-label":c,className:f,style:p},d),r)});af.elementType="Icon";const ho=(e,n)=>{const r=V.forwardRef((i,o)=>V.createElement(af,Object.assign({svg:V.createElement(e),type:n,ref:o},i)));return r.elementType="Icon",r};function efr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12a11 11 0 1 1-22 0 11 11 0 0 1 22 0Zm-9.5 5.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0ZM12 5a1.9 1.9 0 0 0-1.89 2l.3 5.5a1.59 1.59 0 0 0 3.17 0l.3-5.5c.07-1.09-.8-2-1.88-2Z",fill:"currentColor"}))}const tfr=ho(efr,"alert_circle");function nfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m10.23 2.4-8.7 16.67A2 2 0 0 0 3.3 22h17.4a2 2 0 0 0 1.77-2.93L13.77 2.4a2 2 0 0 0-3.54 0ZM13.14 14a1.15 1.15 0 0 1-2.28 0l-.58-4.03a1.73 1.73 0 1 1 3.44 0l-.58 4.03Zm.36 4.49a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",fill:"currentColor"}))}const rfr=ho(nfr,"alert_triangle");function ifr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M5 12.5c0-.83.67-1.5 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 5 12.5Z",fill:"currentColor"}))}const ofr=ho(ifr,"checkbox_indeterminate");function afr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.41 7.3c.66.51.78 1.45.28 2.11l-6.5 8.5a1.5 1.5 0 0 1-2.37.01l-3.5-4.5a1.5 1.5 0 1 1 2.36-1.84L10 14.54l5.32-6.95a1.5 1.5 0 0 1 2.1-.28Z",fill:"currentColor"}))}const sfr=ho(afr,"checkbox_tick");function lfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08 7.6a1.5 1.5 0 0 1 2.12 0l5.66 5.65 5.66-5.65a1.5 1.5 0 1 1 2.12 2.12l-6.72 6.72a1.5 1.5 0 0 1-2.12 0L4.08 9.72a1.5 1.5 0 0 1 0-2.12Z",fill:"currentColor"}))}const wve=ho(lfr,"chevron_down");function cfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.44 19.8a1.5 1.5 0 0 1 0-2.13l5.66-5.65-5.66-5.66a1.5 1.5 0 1 1 2.12-2.12l6.72 6.72a1.5 1.5 0 0 1 0 2.12L9.56 19.8a1.5 1.5 0 0 1-2.12 0Z",fill:"currentColor"}))}const jlt=ho(cfr,"chevron_right");function ufr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm5.04-6.14a1.5 1.5 0 0 1-2.13.04l-2.87-2.78L9.26 17A1.5 1.5 0 0 1 7.1 14.9l2.78-2.87L7 9.26A1.5 1.5 0 1 1 9.1 7.1l2.87 2.78L14.74 7A1.5 1.5 0 0 1 16.9 9.1l-2.78 2.87L17 14.74c.6.58.61 1.53.04 2.12Z",fill:"currentColor"}))}const iG=ho(ufr,"clear");function dfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M17.66 19.78a1.5 1.5 0 0 0 2.12-2.12L14.12 12l5.66-5.66a1.5 1.5 0 0 0-2.12-2.12L12 9.88 6.34 4.22a1.5 1.5 0 1 0-2.12 2.12L9.88 12l-5.66 5.66a1.5 1.5 0 0 0 2.12 2.12L12 14.12l5.66 5.66Z",fill:"currentColor"}))}const xve=ho(dfr,"close");function ffr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M7 4c0-1.1.9-2 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-1V8c0-2-1-3-3-3H7V4Z",fill:"currentColor"}),m.createElement("path",{d:"M5 7a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2H5Z",fill:"currentColor"}))}const Ult=ho(ffr,"copy");function pfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12a11 11 0 1 1-22 0 11 11 0 0 1 22 0Zm-11 9a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM8.11 8.11a1 1 0 0 1 1.42 0L12 10.6l2.47-2.48a1 1 0 1 1 1.42 1.42L13.4 12l2.48 2.47a1 1 0 0 1-1.42 1.42L12 13.4 9.53 15.9a1 1 0 0 1-1.42-1.42L10.6 12 8.1 9.53a1 1 0 0 1 0-1.42Z",fill:"currentColor"}))}const Hlt=ho(pfr,"cross_circle_stroked");function hfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 5V4h4v1h-4ZM8 5V3a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2h4a1 1 0 1 1 0 2h-1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V7H4a1 1 0 0 1 0-2h4Zm7 2H7v13h10V7h-2ZM9 9.5c0-.28.22-.5.5-.5h1c.28 0 .5.22.5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7Zm4 0c0-.28.22-.5.5-.5h1c.28 0 .5.22.5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7Z",fill:"currentColor"}))}const gfr=ho(hfr,"delete_stroked");function mfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M10 2a1.5 1.5 0 0 1 0 3H7.12l3.94 3.94a1.5 1.5 0 0 1-2.12 2.12L5 7.12V10a1.5 1.5 0 0 1-3 0V3.5C2 2.67 2.67 2 3.5 2H10Z",fill:"currentColor"}),m.createElement("path",{d:"M19 14a1.5 1.5 0 0 1 3 0v6.5c0 .83-.67 1.5-1.5 1.5H14a1.5 1.5 0 0 1 0-3h2.88l-3.94-3.94a1.5 1.5 0 0 1 2.12-2.12L19 16.88V14Z",fill:"currentColor"}))}const Tve=ho(mfr,"expand");function vfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7 3.7a1 1 0 0 0-1.4-1.4L17.3 5.26A11.59 11.59 0 0 0 12 4C5 4 1 10 1 12c0 1.18 1.38 3.73 3.94 5.64L2.3 20.3a1 1 0 1 0 1.42 1.42l18-18ZM7.84 14.77l1.46-1.47a3 3 0 0 1 4-4l1.47-1.46a5 5 0 0 0-6.93 6.93Z",fill:"currentColor"}),m.createElement("path",{d:"M12 20c-1.22 0-2.35-.18-3.38-.5l2.57-2.57a5 5 0 0 0 5.75-5.75l3.56-3.56C22.13 9.27 23 11.07 23 12c0 2-4 8-11 8Z",fill:"currentColor"}))}const yfr=ho(vfr,"eye_closed_solid");function _fr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12s4 8 11 8 11-6 11-8-4-8-11-8Zm5 8a5 5 0 1 1-10 0 5 5 0 0 1 10 0Zm-5 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",fill:"currentColor"}))}const bfr=ho(_fr,"eye_opened");function Sfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2a1 1 0 0 0-1-1H6a2 2 0 0 0-2 2v18c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V10a1 1 0 0 0-1-1h-5a2 2 0 0 1-2-2V2ZM7 8a1 1 0 0 1 1-1h1a1 1 0 0 1 0 2H8a1 1 0 0 1-1-1Zm0 5a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1Zm1 4a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2H8Zm11.07-9.5H14.5a1 1 0 0 1-1-1V1.93a.8.8 0 0 1 1.37-.56l4.76 4.76a.8.8 0 0 1-.56 1.37Z",fill:"currentColor"}))}const Efr=ho(Sfr,"file");function Cfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M5 2a3 3 0 0 0-3 3v3h20c0-2-1-4-3-4h-6.45a3 3 0 0 1-1.87-.66l-1.13-.9A2 2 0 0 0 8.3 2H5Z",fill:"currentColor"}),m.createElement("path",{d:"M22 10H2v9a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-9Z",fill:"currentColor"}))}const wfr=ho(Cfr,"folder");function xfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5a3 3 0 0 1 3-3h3.3a2 2 0 0 1 1.25.44l1.13.9a3 3 0 0 0 1.87.66H18c2 0 3 2 3 4H7.53A2 2 0 0 0 5.6 9.48L2.57 20.76C2.21 20.26 2 19.66 2 19V5Zm20.17 5H9.5a2 2 0 0 0-1.92 1.44l-2.7 9.28A1 1 0 0 0 5.82 22H18.5a2 2 0 0 0 1.92-1.44l2.7-9.28a1 1 0 0 0-.95-1.28Z",fill:"currentColor"}))}const Tfr=ho(xfr,"folder_open");function Ofr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M9 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",fill:"currentColor"}),m.createElement("path",{d:"M9 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",fill:"currentColor"}),m.createElement("path",{d:"M11 19a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",fill:"currentColor"}),m.createElement("path",{d:"M15 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",fill:"currentColor"}),m.createElement("path",{d:"M17 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",fill:"currentColor"}),m.createElement("path",{d:"M15 21a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",fill:"currentColor"}))}const zlt=ho(Ofr,"handle");function Rfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm2-16a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-5 3.75c0-.41.34-.75.75-.75h2.75a1 1 0 0 1 1 1v5.5h.75a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5h.75v-5h-.75a.75.75 0 0 1-.75-.75Z",fill:"currentColor"}))}const Vlt=ho(Rfr,"info_circle");function Ifr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2a6.5 6.5 0 0 0-6.5 6.5V10H5a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-.5V8.5A6.5 6.5 0 0 0 12 2Zm3.5 8V8.5a3.5 3.5 0 1 0-7 0V10h7Z",fill:"currentColor"}))}const Nfr=ho(Ifr,"lock");function Mfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M2 12c0-.83.67-1.5 1.5-1.5h17a1.5 1.5 0 0 1 0 3h-17A1.5 1.5 0 0 1 2 12Z",fill:"currentColor"}))}const Pfr=ho(Mfr,"minus");function Afr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M7 12a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z",fill:"currentColor"}),m.createElement("path",{d:"M14.5 12a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z",fill:"currentColor"}),m.createElement("path",{d:"M19.5 14.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z",fill:"currentColor"}))}const Dfr=ho(Afr,"more");function kfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M20.5 13.5a1.5 1.5 0 0 0 0-3h-7v-7a1.5 1.5 0 0 0-3 0v7h-7a1.5 1.5 0 0 0 0 3h7v7a1.5 1.5 0 0 0 3 0v-7h7Z",fill:"currentColor"}))}const oG=ho(kfr,"plus");function Lfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.44 2.44a1.5 1.5 0 0 0 0 2.12L16.88 7H9.25C5.16 7 2 10.58 2 14.5S5.16 22 9.25 22h3.25a1.5 1.5 0 0 0 0-3H9.25C6.98 19 5 16.93 5 14.5S6.98 10 9.25 10h7.63l-2.44 2.44a1.5 1.5 0 0 0 2.12 2.12l5-5a1.5 1.5 0 0 0 0-2.12l-5-5a1.5 1.5 0 0 0-2.12 0Z",fill:"currentColor"}))}const $fr=ho(Lfr,"redo");function Ffr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2a8.5 8.5 0 1 0 4.86 15.48l4.08 4.08a1.5 1.5 0 1 0 2.12-2.12l-4.08-4.08A8.5 8.5 0 0 0 10.5 2ZM5 10.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0Z",fill:"currentColor"}))}const Bfr=ho(Ffr,"search");function jfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M2.44 2.44a1.5 1.5 0 0 0 0 2.12L6.88 9H4a1.5 1.5 0 0 0 0 3h6.5a1.5 1.5 0 0 0 1.5-1.5V4a1.5 1.5 0 0 0-3 0v2.88L4.56 2.44a1.5 1.5 0 0 0-2.12 0Z",fill:"currentColor"}),m.createElement("path",{d:"M20 12a1.5 1.5 0 0 1 0 3h-2.88l4.44 4.44a1.5 1.5 0 1 1-2.12 2.12L15 17.12V20a1.5 1.5 0 1 1-3 0v-6.5a1.5 1.5 0 0 1 1.5-1.5H20Z",fill:"currentColor"}))}const Glt=ho(jfr,"shrink");function Ufr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M6.95 7.72h10.13c.4 0 .64.45.42.78l-5.07 7.6a.5.5 0 0 1-.83 0L6.54 8.5a.5.5 0 0 1 .41-.78Z",fill:"currentColor"}))}const Hfr=ho(Ufr,"small_triangle_down");function zfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M16.32 6.96v10.13a.5.5 0 0 1-.78.41l-7.6-5.06a.5.5 0 0 1 0-.83l7.6-5.07a.5.5 0 0 1 .78.42Z",fill:"currentColor"}))}const Vfr=ho(zfr,"small_triangle_left");function Gfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.35 4.27c.68.47.86 1.4.38 2.08l-10 14.5a1.5 1.5 0 0 1-2.33.17l-6.5-7a1.5 1.5 0 0 1 2.2-2.04l5.23 5.63 8.94-12.96a1.5 1.5 0 0 1 2.08-.38Z",fill:"currentColor"}))}const Wj=ho(Gfr,"tick");function Wfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm5.88-13.18-6.2 7.6a1.5 1.5 0 0 1-2.37 0l-3.5-4a1.5 1.5 0 1 1 2.37-1.84l2.3 2.46L15.5 8a1.5 1.5 0 1 1 2.38 1.82Z",fill:"currentColor"}))}const Yfr=ho(Wfr,"tick_circle");function qfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"m20.56 9.66-7.8 8.97a1 1 0 0 1-1.51 0L3.44 9.66A1 1 0 0 1 4.19 8h15.62a1 1 0 0 1 .75 1.66Z",fill:"currentColor"}))}const Kfr=ho(qfr,"tree_triangle_down");function Xfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.56 2.44a1.5 1.5 0 0 1 0 2.12L7.12 7h7.63C18.84 7 22 10.58 22 14.5S18.84 22 14.75 22H11.5a1.5 1.5 0 0 1 0-3h3.25c2.27 0 4.25-2.07 4.25-4.5S17.02 10 14.75 10H7.12l2.44 2.44a1.5 1.5 0 0 1-2.12 2.12l-5-5a1.5 1.5 0 0 1 0-2.12l5-5a1.5 1.5 0 0 1 2.12 0Z",fill:"currentColor"}))}const Qfr=ho(Xfr,"undo");function Zfr(e){return m.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),m.createElement("path",{d:"M5.5 7.5A6.5 6.5 0 0 1 18.48 7h-3.02a3.5 3.5 0 0 0-6.96.5V10H19a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2h.5V7.5Z",fill:"currentColor"}))}const Jfr=ho(Zfr,"unlock"),Vse={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},Wlt="Enter",Ylt="Escape";function gg(e){return fr(e,"key")===Wlt}const nee=nG.PREFIX;class Ove extends V.PureComponent{constructor(n){super(n),this.copy=r=>{const{content:i,duration:o,onCopy:a}=this.props,s=fdr(i);a&&a(r,i,s),this.setCopied(i,o)},this.setCopied=(r,i)=>{this.setState({copied:!0,item:r}),this._timeId=setTimeout(()=>{this.resetCopied()},i*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:r}=this.props;return typeof r<"u"?r:V.createElement(z0,{componentName:"Typography"},i=>V.createElement("span",null,V.createElement(Wj,null),i.copied))},this.renderCopyIcon=()=>{const{icon:r}=this.props,i={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:a=>gg(a)&&this.copy(a)},o=V.createElement("a",{className:`${nee}-action-copy-icon`},V.createElement(Ult,Object.assign({onClick:this.copy},i)));return V.isValidElement(r)?V.cloneElement(r,i):o},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:n,className:r,forwardRef:i,copyTip:o,render:a}=this.props,{copied:s}=this.state,l=Ce(r,{[`${nee}-action-copy`]:!s,[`${nee}-action-copied`]:s});return a?a(s,this.copy,this.props):V.createElement(z0,{componentName:"Typography"},c=>V.createElement("span",{style:Object.assign({marginLeft:"4px"},n),className:l,ref:i},s?this.renderSuccessTip():V.createElement(qo,{content:typeof o<"u"?o:c.copy},this.renderCopyIcon())))}}Ove.propTypes={content:ie.string,onCopy:ie.func,successTip:ie.node,copyTip:ie.node,duration:ie.number,style:ie.object,className:ie.string,icon:ie.node};Ove.defaultProps={content:"",onCopy:ly,duration:3,style:{},className:""};const qlt={PREFIX:`${ui}-popover`,ARROW:`${ui}-popover-icon-arrow`},Klt={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_ARROW_STYLE:{borderOpacity:"1",backgroundColor:"var(--semi-color-bg-3)",borderColor:"var(--semi-color-border)"}},V0={ARROW_BOUNDING:Object.assign(Object.assign({},Sb.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var epr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Xlt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{position:n="",className:r,arrowStyle:i,popStyle:o}=e,a=epr(e,["position","className","arrowStyle","popStyle"]),s=n.indexOf("top")===0||n.indexOf("bottom")===0,l=Ce(r,qlt.ARROW),c=fr(i,"borderOpacity"),u=fr(i,"backgroundColor",fr(o,"backgroundColor")),d=fr(i,"borderColor",fr(o,"borderColor")),f=Object.assign(Object.assign({},a),{width:V0.ARROW_BOUNDING.width,height:V0.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:l});return s?V.createElement("svg",Object.assign({},f),V.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",style:{fill:d,opacity:c}}),V.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",style:{fill:u}})):V.createElement("svg",Object.assign({},f),V.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",style:{fill:d,opacity:c}}),V.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",style:{fill:u}}))};Xlt.propTypes={position:ie.string,className:ie.string,arrowStyle:ie.object,popStyle:ie.object};var tpr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const npr=Klt.POSITION_SET,rpr=Klt.TRIGGER_SET;class wu extends V.PureComponent{constructor(n){super(n),this.focusTrigger=()=>{var r;(r=this.tooltipRef.current)===null||r===void 0||r.focusTrigger()},this.renderPopCard=r=>{let{initialFocusRef:i}=r;const{content:o,contentClassName:a,prefixCls:s}=this.props,{direction:l}=this.context,c=Ce(s,a,{[`${s}-rtl`]:l==="rtl"}),u=this.renderContentNode({initialFocusRef:i,content:o});return V.createElement("div",{className:c},V.createElement("div",{className:`${s}-content`},u))},this.renderContentNode=r=>{const{initialFocusRef:i,content:o}=r,a={initialFocusRef:i};return za(o)?o(a):o},this.tooltipRef=V.createRef()}render(){const n=this.props,{children:r,prefixCls:i,showArrow:o,arrowStyle:a={},arrowBounding:s,position:l,style:c,trigger:u}=n,d=tpr(n,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:f}=this.props;const p={position:l,className:"",popStyle:c,arrowStyle:a},h=o?V.createElement(Xlt,Object.assign({},p)):!1;bve(f)&&(f=o?V0.SPACING_WITH_ARROW:V0.SPACING);const g=u==="click"||u==="custom"?"dialog":"tooltip";return V.createElement(qo,Object.assign({guardFocus:!0,ref:this.tooltipRef},d,{trigger:u,position:l,style:c,content:this.renderPopCard,prefixCls:i,spacing:f,showArrow:h,arrowBounding:s,role:g}),r)}}wu.contextType=Ng;wu.propTypes={children:ie.node,content:ie.oneOfType([ie.node,ie.func]),visible:ie.bool,autoAdjustOverflow:ie.bool,motion:ie.bool,position:ie.oneOf(npr),margin:ie.oneOfType([ie.number,ie.object]),mouseEnterDelay:ie.number,mouseLeaveDelay:ie.number,trigger:ie.oneOf(rpr).isRequired,contentClassName:ie.oneOfType([ie.string,ie.array]),onVisibleChange:ie.func,onClickOutSide:ie.func,style:ie.object,spacing:ie.oneOfType([ie.number,ie.object]),zIndex:ie.number,showArrow:ie.bool,arrowStyle:ie.shape({borderColor:ie.string,backgroundColor:ie.string,borderOpacity:ie.oneOfType([ie.string,ie.number])}),arrowPointAtCenter:ie.bool,arrowBounding:ie.object,prefixCls:ie.string,guardFocus:ie.bool,disableArrowKeyDown:ie.bool};wu.__SemiComponentName__="Popover";wu.defaultProps=T_(wu.__SemiComponentName__,{arrowBounding:V0.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:V0.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:qlt.PREFIX,onClickOutSide:vr,onEscKeyDown:vr,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0});let Aa;function ree(e){if(!e)return 0;const n=e.match(/^\d*(\.\d*)?/);return n?Number(n[0]):0}function ipr(e){return Array.prototype.slice.apply(e).map(r=>`${r}: ${e.getPropertyValue(r)};`).join("")}const opr=function(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0;if(r.length===0)return"";Aa||(Aa=document.createElement("div"),Aa.setAttribute("aria-hidden","true"),document.body.appendChild(Aa));const c=window.getComputedStyle(e),u=ipr(c),d=ree(c.lineHeight),f=Math.round(d*(n+1)+ree(c.paddingTop)+ree(c.paddingBottom));Aa.setAttribute("style",u),Aa.style.position="fixed",Aa.style.left="0",c.getPropertyValue("width")==="auto"&&e.offsetWidth&&(Aa.style.width=`${e.offsetWidth}px`),Aa.style.height="auto",Aa.style.top="-999999px",Aa.style.zIndex="-1000",l&&(Aa.style.fontWeight="600"),Aa.style.textOverflow="clip",Aa.style.webkitLineClamp="none",Aa.innerHTML="";function p(){const b=Aa.scrollWidth<=Aa.offsetWidth,E=Aa.scrollHeight<f;return n===1?b&&E:E}const h=document.createElement("span"),g=document.createTextNode(r);if(h.appendChild(g),a.length>0){const b=document.createTextNode(a);h.appendChild(b)}Aa.appendChild(h),Object.values(h$(i,"expand")).map(b=>b&&Aa.appendChild(b.cloneNode(!0)));function v(){Aa.innerHTML="",Aa.appendChild(h),Object.values(i).map(b=>b&&Aa.appendChild(b.cloneNode(!0)))}function y(b,E){const w=b.length;return E?s==="end"?b.slice(0,E)+o:b.slice(0,E)+o+b.slice(w-E,w):o}function _(b,E){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:E.length,x=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const T=Math.floor((w+C)/2),R=y(E,T);if(b.textContent=R,w>=C-1&&C>0)for(let O=C;O>=w;O-=1){const M=y(E,O);if(b.textContent=M,p())return M}else if(C===0)return o;return p()?_(b,E,T,C,T):_(b,E,w,T,x)}let S=r;return p()||(v(),S=_(g,r,0,s==="middle"?Math.floor(r.length/2):r.length)),Aa.innerHTML="",S},Qlt=V.createContext("normal");var Yj;(function(e){e.Width="width",e.Height="height",e.All="all"})(Yj||(Yj={}));class aG extends fl{constructor(n){var r;super(n),r=this,this.formerPropertyValue=new Map,this.getElement=()=>{try{return Us.findDOMNode(this.childNode||this)}catch{return null}},this.handleResizeEventTriggered=i=>{var o,a,s,l;if(this.props.observerProperty===Yj.All)(a=(o=this.props).onResize)===null||a===void 0||a.call(o,i);else{const c=[];for(const u of i)this.formerPropertyValue.has(u.target)?u.contentRect[this.props.observerProperty]!==this.formerPropertyValue.get(u.target)&&(this.formerPropertyValue.set(u.target,u.contentRect[this.props.observerProperty]),c.push(u)):(this.formerPropertyValue.set(u.target,u.contentRect[this.props.observerProperty]),c.push(u));c.length>0&&((l=(s=this.props).onResize)===null||l===void 0||l.call(s,c))}},this.observeElement=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const o=r.getElement();if(r.observer||(r.observer=new ResizeObserver(r.handleResizeEventTriggered)),!(o&&o instanceof Element)){r.observer.disconnect();return}o===r.element&&!i||(r.observer.disconnect(),r.element=o,r.observer.observe(o),r.props.observeParent&&o.parentNode&&o.parentNode.ownerDocument&&o.parentNode.ownerDocument.defaultView&&o.parentNode instanceof o.parentNode.ownerDocument.defaultView.HTMLElement&&(r._parentNode=o.parentNode,r.observer.observe(r._parentNode)))},this.mergeRef=(i,o)=>{this.childNode=o,typeof i=="function"?i(o):typeof i=="object"&&i&&"current"in i&&(i.current=o)},globalThis.ResizeObserver&&(this.observer=new ResizeObserver(this.handleResizeEventTriggered))}componentDidMount(){var n;(n=this.observeElement)===null||n===void 0||n.call(this)}componentDidUpdate(n){var r;(r=this.observeElement)===null||r===void 0||r.call(this,this.props.observeParent!==n.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}render(){const n=V.Children.only(this.props.children),{ref:r}=n;return V.cloneElement(n,{ref:i=>this.mergeRef(r,i)})}}aG.propTypes={onResize:ie.func,observeParent:ie.bool,observerProperty:ie.string,delayTick:ie.number};aG.defaultProps={onResize:()=>{},observeParent:!1,observerProperty:"all",delayTick:0};var iee=function(e,n,r,i){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function l(d){try{u(i.next(d))}catch(f){s(f)}}function c(d){try{u(i.throw(d))}catch(f){s(f)}}function u(d){d.done?a(d.value):o(d.value).then(l,c)}u((i=i.apply(e,n||[])).next())})},apr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const jl=nG.PREFIX,spr="...",lpr=(e,n)=>{const{mark:r,code:i,underline:o,strong:a,link:s,disabled:l}=e;let c=n;const u=(d,f)=>{let p={};d&&(typeof d=="object"&&(p=Object.assign({},d)),c=V.createElement(f,p,c))};return u(r,"mark"),u(i,"code"),u(o&&!s,"u"),u(a,"strong"),u(e.delete,"del"),u(s,l?"span":"a"),c};class jw extends m.Component{constructor(n){super(n),this.observerTakingEffect=!1,this.onResize=r=>iee(this,void 0,void 0,function*(){return this.rafId&&window.cancelAnimationFrame(this.rafId),new Promise(i=>{this.rafId=window.requestAnimationFrame(()=>iee(this,void 0,void 0,function*(){yield this.getEllipsisState(),i()}))})}),this.canUseCSSEllipsis=()=>{const{copyable:r}=this.props,{expandable:i,expandText:o,pos:a,suffix:s}=this.getEllipsisOpt();return!i&&ll(o)&&!r&&a==="end"&&!s.length},this.shouldTruncated=r=>!r||r<1?!1:r<=1?this.compareSingleRow():this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.compareSingleRow=()=>{if(!(document&&document.createRange))return!1;const r=this.wrapperRef.current,i=r.getBoundingClientRect().width,o=Array.from(r.childNodes),a=document.createRange(),s=o.reduce((l,c)=>{var u;return a.selectNodeContents(c),l+((u=a.getBoundingClientRect().width)!==null&&u!==void 0?u:0)},0);return a.detach(),s>i},this.showTooltip=()=>{var r,i;const{isOverflowed:o,isTruncated:a,expanded:s}=this.state,{showTooltip:l,expandable:c,expandText:u}=this.getEllipsisOpt(),d=this.canUseCSSEllipsis(),f=!s&&(d?o:a),h=!c&&ll(u)&&f&&l;if(!h)return h;const g={type:"tooltip"};return typeof l=="object"?l.type&&l.type.toLowerCase()==="popover"?SYe({opts:{showArrow:!0}},l,{opts:{className:Ce({[`${jl}-ellipsis-popover`]:!0,[(r=l==null?void 0:l.opts)===null||r===void 0?void 0:r.className]:!!(!((i=l==null?void 0:l.opts)===null||i===void 0)&&i.className)})}}):Object.assign(Object.assign({},g),l):g},this.onHover=()=>{if(this.canUseCSSEllipsis()){const{rows:i,suffix:o,pos:a}=this.getEllipsisOpt(),s=this.shouldTruncated(i);this.setState({isOverflowed:s,isTruncated:!1});return}},this.getEllipsisState=()=>iee(this,void 0,void 0,function*(){const{rows:r,suffix:i,pos:o}=this.getEllipsisOpt(),{children:a,strong:s}=this.props;if(!this.wrapperRef||!this.wrapperRef.current){yield this.onResize();return}const{expanded:l}=this.state;if(this.canUseCSSEllipsis())return;if(BC(a))return new Promise(p=>{this.setState({isTruncated:!1,isOverflowed:!1},p)});if(b0("children"in this.props&&typeof a!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!r||r<0||l)return;const u={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},d=Array.isArray(a)?a.join(""):String(a),f=opr(this.wrapperRef.current,r,d,u,spr,i,o,s);return new Promise(p=>{this.setState({isOverflowed:!1,ellipsisContent:f,isTruncated:d!==f},p)})}),this.toggleOverflow=r=>{const{onExpand:i,expandable:o,collapsible:a}=this.getEllipsisOpt(),{expanded:s}=this.state;i&&i(!s,r),(o&&!s||a&&s)&&this.setState({expanded:!s})},this.getEllipsisOpt=()=>{const{ellipsis:r}=this.props;return r?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:r.expandable?this.expandStr:void 0,collapseText:r.collapsible?this.collapseStr:void 0},typeof r=="object"?r:null):{}},this.renderExpandable=()=>{const{expanded:r,isTruncated:i}=this.state;if(!i)return null;const{expandText:o,expandable:a,collapseText:s,collapsible:l}=this.getEllipsisOpt(),c=!a&&ll(o),u=!l&&ll(s);let d;return!r&&!c?d=o:r&&!u&&(d=s),!c||!u?V.createElement("a",{role:"button",tabIndex:0,className:`${jl}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":d,onClick:this.toggleOverflow,onKeyPress:f=>gg(f)&&this.toggleOverflow(f)},d):null},this.getEllipsisStyle=()=>{const{ellipsis:r,component:i}=this.props;if(!r)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:o}=this.getEllipsisOpt(),{expanded:a}=this.state,s=!a&&this.canUseCSSEllipsis(),l=Ce({[`${jl}-ellipsis`]:!0,[`${jl}-ellipsis-single-line`]:o===1,[`${jl}-ellipsis-multiple-line`]:o>1,[`${jl}-ellipsis-multiple-line-text`]:o>1&&i==="span",[`${jl}-ellipsis-overflow-ellipsis`]:o===1&&s,[`${jl}-ellipsis-overflow-ellipsis-text`]:o===1&&s&&i==="span"}),c=s&&o>1?{WebkitLineClamp:o}:{};return{ellipsisCls:l,ellipsisStyle:c}},this.renderEllipsisText=r=>{const{suffix:i}=r,{children:o}=this.props,{isTruncated:a,expanded:s,ellipsisContent:l}=this.state;return s||!a?V.createElement("span",{onMouseEnter:this.onHover},o,i&&i.length?i:null):V.createElement("span",{onMouseEnter:this.onHover},l,i)},this.state={editable:!1,copied:!1,isOverflowed:!1,ellipsisContent:n.children,expanded:!1,isTruncated:!1,prevChildren:null},this.wrapperRef=V.createRef(),this.expandRef=V.createRef(),this.copyRef=V.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize().then(()=>Sve(()=>this.observerTakingEffect=!0,1))}static getDerivedStateFromProps(n,r){const{prevChildren:i}=r,o={};return o.prevChildren=n.children,n.ellipsis&&i!==n.children&&(o.isOverflowed=!1,o.ellipsisContent=n.children,o.expanded=!1,o.isTruncated=!0),o}componentDidUpdate(n){this.props.children!==n.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}renderOperations(){return V.createElement(V.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var n;const{copyable:r,children:i}=this.props;if(!r)return null;const o=(n=r==null?void 0:r.content)!==null&&n!==void 0?n:i;let a,s=!1;Array.isArray(o)?(a="",o.forEach(c=>{typeof c=="object"&&(s=!0),a+=String(c)})):(typeof o!="object"||(s=!0),a=String(o)),b0(s,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const l=Object.assign({content:a,duration:3},typeof r=="object"?r:null);return V.createElement(Ove,Object.assign({},l,{forwardRef:this.copyRef}))}renderIcon(){const{icon:n,size:r}=this.props,i=r==="inherit"?this.context:r;if(!n)return null;const o=i==="small"?"small":"default";return V.createElement("span",{className:`${jl}-icon`,"x-semi-prop":"icon"},of(n)?V.cloneElement(n,{size:o}):n)}renderContent(){const n=this.props,{component:r,children:i,className:o,type:a,spacing:s,disabled:l,style:c,ellipsis:u,icon:d,size:f,link:p,heading:h,weight:g}=n,v=apr(n,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),y=h$(v,["strong","editable","mark","copyable","underline","code","delete"]),_=f==="inherit"?this.context:f,S=this.renderIcon(),b=this.getEllipsisOpt(),{ellipsisCls:E,ellipsisStyle:w}=this.getEllipsisStyle();let C=u?this.renderEllipsisText(b):i;const x=Ce({[`${jl}-link-text`]:p,[`${jl}-link-underline`]:this.props.underline&&p});C=lpr(this.props,V.createElement(V.Fragment,null,S,this.props.link?V.createElement("span",{className:x},C):C));const T=/^h[1-6]$/,R=Es(h)&&T.test(h),O=Ce(o,E,{[`${jl}-${a}`]:a&&!p,[`${jl}-${_}`]:_,[`${jl}-link`]:p,[`${jl}-disabled`]:l,[`${jl}-${s}`]:s,[`${jl}-${h}`]:R,[`${jl}-${h}-weight-${g}`]:R&&g&&isNaN(Number(g))}),M=Object.assign(Object.assign({},isNaN(Number(g))?{}:{fontWeight:g}),c);return V.createElement(rG,Object.assign({className:O,style:Object.assign(Object.assign({},M),w),component:r,forwardRef:this.wrapperRef},y),C,this.renderOperations())}renderTipWrapper(){const{children:n}=this.props,r=this.showTooltip(),i=this.renderContent();if(r){const{type:o,opts:a,renderTooltip:s}=r;return za(s)?s(n,i):o.toLowerCase()==="popover"?V.createElement(wu,Object.assign({content:n,position:"top"},a),i):V.createElement(qo,Object.assign({content:n,position:"top"},a),i)}else return i}render(){var n=this;const{size:r}=this.props,i=r==="inherit"?this.context:r,o=V.createElement(Qlt.Provider,{value:i},V.createElement(z0,{componentName:"Typography"},a=>(this.expandStr=a.expand,this.collapseStr=a.collapse,this.renderTipWrapper())));return this.props.ellipsis?V.createElement(aG,{onResize:function(){n.observerTakingEffect&&n.onResize(...arguments)},observeParent:!0,observerProperty:Yj.Width},o):o}}jw.propTypes={children:ie.node,copyable:ie.oneOfType([ie.shape({text:ie.string,onCopy:ie.func,successTip:ie.node,copyTip:ie.node}),ie.bool]),delete:ie.bool,disabled:ie.bool,ellipsis:ie.oneOfType([ie.shape({rows:ie.number,expandable:ie.bool,expandText:ie.string,onExpand:ie.func,suffix:ie.string,showTooltip:ie.oneOfType([ie.shape({type:ie.string,opts:ie.object}),ie.bool]),collapsible:ie.bool,collapseText:ie.string,pos:ie.oneOf(["end","middle"])}),ie.bool]),mark:ie.bool,underline:ie.bool,link:ie.oneOfType([ie.object,ie.bool]),spacing:ie.oneOf(jc.SPACING),strong:ie.bool,size:ie.oneOf(jc.SIZE),type:ie.oneOf(jc.TYPE),style:ie.object,className:ie.string,icon:ie.oneOfType([ie.node,ie.string]),heading:ie.string,component:ie.string};jw.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};jw.contextType=Qlt;let Rve=class extends m.PureComponent{render(){return V.createElement(jw,Object.assign({component:"span"},this.props))}};Rve.propTypes={copyable:ie.oneOfType([ie.object,ie.bool]),delete:ie.bool,disabled:ie.bool,icon:ie.oneOfType([ie.node,ie.string]),ellipsis:ie.oneOfType([ie.object,ie.bool]),mark:ie.bool,underline:ie.bool,link:ie.oneOfType([ie.object,ie.bool]),strong:ie.bool,type:ie.oneOf(jc.TYPE),size:ie.oneOf(jc.SIZE),style:ie.object,className:ie.string,code:ie.bool,component:ie.string,weight:ie.number};Rve.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var cpr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};let Ive=class extends m.PureComponent{render(){const n=this.props,{heading:r}=n,i=cpr(n,["heading"]),o=jc.HEADING.indexOf(r)!==-1?`h${r}`:"h1";return V.createElement(jw,Object.assign({component:o,heading:o},i))}};Ive.propTypes={copyable:ie.oneOfType([ie.object,ie.bool]),delete:ie.bool,disabled:ie.bool,ellipsis:ie.oneOfType([ie.object,ie.bool]),mark:ie.bool,link:ie.oneOfType([ie.object,ie.bool]),underline:ie.bool,strong:ie.bool,type:ie.oneOf(jc.TYPE),heading:ie.oneOf(jc.HEADING),style:ie.object,className:ie.string,component:ie.string,weight:ie.oneOfType([ie.oneOf(jc.WEIGHT),ie.number])};Ive.defaultProps={copyable:!1,delete:!1,disabled:!1,ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",heading:1,style:{},className:""};const upr=nG.PREFIX;let sG=class extends m.PureComponent{render(){const{className:n}=this.props,r=Ce(n,`${upr}-paragraph`);return V.createElement(jw,Object.assign({component:"p"},this.props,{className:r}))}};sG.propTypes={copyable:ie.oneOfType([ie.object,ie.bool]),delete:ie.bool,disabled:ie.bool,ellipsis:ie.oneOfType([ie.object,ie.bool]),mark:ie.bool,link:ie.oneOfType([ie.object,ie.bool]),underline:ie.bool,strong:ie.bool,type:ie.oneOf(jc.TYPE),size:ie.oneOf(jc.SIZE),spacing:ie.oneOf(jc.SPACING),style:ie.object,className:ie.string,component:ie.string};sG.defaultProps={copyable:!1,delete:!1,disabled:!1,ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",size:"normal",spacing:"normal",style:{},className:""};class dpr{constructor(n,r,i,o,a){this.ruleMethods={"bytes-decimal":s=>{const l=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let c=0;for(;s>=1e3;)s/=1e3,c++;return`${this.truncatePrecision(s)} ${l[c]}`},"bytes-binary":s=>{const l=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let c=0;for(;s>=1024;)s/=1024,c++;return`${this.truncatePrecision(s)} ${l[c]}`},percentages:s=>`${this.truncatePrecision(s*100)}%`,exponential:s=>{const c=s.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(c[0]))}e${c[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof a<"u",this.content=n,this.rule=r,this.precision=i,this.truncate=o,this.parser=a}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?oee(this.content).map(n=>aee(n)?this.truncatePrecision(n):n).join(""):this.rule==="numbers"?oee(this.content).filter(n=>aee(n)).map(n=>this.truncatePrecision(n)).join(","):oee(this.content).map(n=>aee(n)?this.ruleMethods[this.rule](Number(n)):n).join("")}truncatePrecision(n){const r=this.truncateMethods[this.truncate](Number(n)*Math.pow(10,this.precision))/Math.pow(10,this.precision),i=r.toString().split(".");if(i.length===1)return r.toFixed(this.precision);const o=i[1].length;return o<this.precision?`${i[0]}.${i[1]}${"0".repeat(this.precision-o)}`:r.toString()}}function oee(e){const n=/(-?[0-9]*\.?[0-9]+([eE]-?[0-9]+)?)|([^-\d\.]+)/g;return e.match(n)||[]}function aee(e){return!(isNaN(Number(e))||e.replace(/\s+/g,"")==="")}class Nve extends m.PureComponent{formatNodeDFS(n){return Array.isArray(n)||(n=[n]),n=n.map(r=>typeof r=="string"||typeof r=="number"?new dpr(String(r),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof r=="function"?this.formatNodeDFS(r()):typeof r=="object"&&"children"in r.props?Object.assign(Object.assign({},r),{props:Object.assign(Object.assign({},r.props),{children:this.formatNodeDFS(r.props.children)})}):r),n.length===1?n[0]:n}render(){const n=Object.assign({},this.props);return delete n.rule,delete n.parser,n.children=this.formatNodeDFS(this.props.children),V.createElement(jw,Object.assign({component:"span"},n))}}Nve.propTypes={rule:ie.oneOf(jc.RULE),precision:ie.number,truncate:ie.oneOf(jc.TRUNCATE),parser:ie.func,copyable:ie.oneOfType([ie.object,ie.bool]),delete:ie.bool,disabled:ie.bool,icon:ie.oneOfType([ie.node,ie.string]),mark:ie.bool,underline:ie.bool,link:ie.oneOfType([ie.object,ie.bool]),strong:ie.bool,type:ie.oneOf(jc.TYPE),size:ie.oneOf(jc.SIZE),style:ie.object,className:ie.string,code:ie.bool,component:ie.string};Nve.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const LS=rG;LS.Text=Rve;LS.Title=Ive;LS.Paragraph=sG;LS.Numeral=Nve;var fpr=l_,ppr=zp,hpr="[object Number]";function gpr(e){return typeof e=="number"||ppr(e)&&fpr(e)==hpr}var mpr=gpr;const df=Or(mpr),vpr=`${ui}-spin`,ypr={PREFIX:vpr},_pr={SIZE:["small","middle","large"]};class Mve extends tc{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:n=>{}}}constructor(n){super(Object.assign(Object.assign({},Mve.spinDefaultAdapter),n))}updateLoadingIfNeedDelay(){const{spinning:n,delay:r}=this._adapter.getProps(),{delay:i}=this._adapter.getStates();if(i){const o=this;this._timer=setTimeout(()=>{o._adapter.setState({loading:n,delay:0})},r)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}var bpr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};let Y$e=-1;function Zlt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{id:n,className:r}=e,i=bpr(e,["id","className"]);let o=n;bve(o)&&(Y$e++,o=Y$e);const a=`linearGradient-${o}`;return V.createElement("svg",Object.assign({},i,{className:r,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),V.createElement("defs",null,V.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:a},V.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),V.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),V.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),V.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},V.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),V.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${a})`,strokeWidth:"4",strokeLinecap:"round"})))}var Spr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const wE=ypr.PREFIX;class lG extends fl{constructor(n){super(n),this.foundation=new Mve(this.adapter),this.state={delay:n.delay,loading:!0}}static getDerivedStateFromProps(n){return n.delay?n.spinning===!1?{delay:0,loading:!1}:{delay:n.delay}:{loading:n.spinning}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setLoading:n=>{this.setState({loading:n})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:n,tip:r}=this.props,{loading:i}=this.state;return i?V.createElement("div",{className:`${wE}-wrapper`},n?V.createElement("div",{className:`${wE}-animate`,"x-semi-prop":"indicator"},n):V.createElement(Zlt,null),r?V.createElement("div",{"x-semi-prop":"tip"},r):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const n=this.props,{children:r,style:i,wrapperClassName:o,childStyle:a,size:s}=n,l=Spr(n,["children","style","wrapperClassName","childStyle","size"]),{loading:c}=this.state,u=Ce(wE,o,{[`${wE}-${s}`]:s,[`${wE}-block`]:r,[`${wE}-hidden`]:!c});return V.createElement("div",Object.assign({className:u,style:i},this.getDataAttr(l)),this.renderSpin(),V.createElement("div",{className:`${wE}-children`,style:a,"x-semi-prop":"children"},r))}}lG.propTypes={size:ie.oneOf(_pr.SIZE),spinning:ie.bool,children:ie.node,indicator:ie.node,delay:ie.number,tip:ie.node,wrapperClassName:ie.string,childStyle:ie.object,style:ie.object};lG.defaultProps={size:"middle",spinning:!0,children:null,indicator:null,delay:0};const Epr={PREFIX:`${ui}-input`},cG={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]};function Cpr(e){const{value:n,maxLength:r,getValueLength:i}=e;if(za(i)){let o=0,a=n.length;for(;o<a;){const s=o+Math.floor((a-o)/2),l=n.slice(0,s+1);i(l)>r?a=s:o=s+1}return n.slice(0,o)}else return n.slice(0,r)}class Pve extends tc{static get inputDefaultAdapter(){return{notifyChange:vr,setValue:vr}}constructor(n){super(Object.assign(Object.assign({},Pve.inputDefaultAdapter),n))}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}setValue(n){this._adapter.setValue(n)}handleChange(n,r){const{maxLength:i,minLength:o,getValueLength:a}=this._adapter.getProps();let s=n;i&&za(a)&&(s=this.handleVisibleMaxLength(n)),o&&za(a)&&this.handleVisibleMinLength(s),this._isControlledComponent()?this._adapter.notifyChange(s,r):(this._adapter.setValue(s),this._adapter.notifyChange(s,r))}handleVisibleMinLength(n){const{minLength:r,getValueLength:i}=this._adapter.getProps(),{minLength:o}=this._adapter.getStates();if(df(r)&&r>=0&&za(i)&&Es(n)){const a=i(n);if(a<r){const s=n.length+(r-a);s!==o&&this._adapter.setMinLength(s)}else o!==r&&this._adapter.setMinLength(r)}}handleVisibleMaxLength(n){const{maxLength:r,getValueLength:i}=this._adapter.getProps();return df(r)&&r>=0&&za(i)&&Es(n)&&i(n)>r?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(n,r)):n}handleTruncateValue(n,r){const{getValueLength:i}=this._adapter.getProps();return Cpr({value:n,maxLength:r,getValueLength:i})}handleClear(n){let r=n;const i="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!r||typeof r!="object")&&(r={}),Vur(r,cG.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(i,r),this._adapter.notifyClear(r),r&&this.stopPropagation(r)}handleClick(n){const{disabled:r}=this._adapter.getProps(),{isFocus:i}=this._adapter.getStates();r||i||this._adapter.isEventTarget(n)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(n){n==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(n){const r=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!r)}handleInputType(n){const r=this._adapter.getProp("mode"),i=this._adapter.getState("eyeClosed");return r==="password"?i?"password":"text":n}handleMouseDown(n){n.preventDefault()}handleMouseUp(n){n.preventDefault()}handleBlur(n){const{value:r}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(r,n)}handleFocus(n){const{value:r}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(r,n)}handleInput(n){this._adapter.notifyInput(n)}handleKeyDown(n){this._adapter.notifyKeyDown(n)}handleKeyUp(n){this._adapter.notifyKeyUp(n)}handleKeyPress(n){this._adapter.notifyKeyPress(n),n.key===Wlt&&this._adapter.notifyEnterPress(n)}isAllowClear(){const{value:n,isFocus:r,isHovering:i}=this._adapter.getStates(),{showClear:o,disabled:a,showClearIgnoreDisabled:s}=this._adapter.getProps();return n&&o&&(!a||s)&&(r||i)}handleClickPrefixOrSuffix(n){const{disabled:r}=this._adapter.getProps(),{isFocus:i}=this._adapter.getStates();!r&&!i&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(n){n&&za(n.preventDefault)&&n.preventDefault()}handleModeEnterPress(n){["Enter"," "].includes(n==null?void 0:n.key)&&(this.handlePreventMouseDown(n),this.handleClickEye(n))}}var wpr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const mo=Epr.PREFIX,xpr=cG.SIZE,Tpr=cG.STATUS,Opr=cG.MODE;class Ave extends fl{constructor(n){super(n),this.handleClear=i=>{this.foundation.handleClear(i)},this.handleClick=i=>{this.foundation.handleClick(i)},this.handleMouseOver=i=>{this.setState({isHovering:!0})},this.handleMouseLeave=i=>{this.setState({isHovering:!1})},this.handleModeChange=i=>{this.foundation.handleModeChange(i)},this.handleClickEye=i=>{this.foundation.handleClickEye(i)},this.handleMouseDown=i=>{this.foundation.handleMouseDown(i)},this.handleMouseUp=i=>{this.foundation.handleMouseUp(i)},this.handleModeEnterPress=i=>{this.foundation.handleModeEnterPress(i)},this.handleClickPrefixOrSuffix=i=>{this.foundation.handleClickPrefixOrSuffix(i)},this.handlePreventMouseDown=i=>{this.foundation.handlePreventMouseDown(i)};const r="value"in n?n.value:n.defaultValue;this.state={value:r,cachedValue:n.value,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:n.mode==="password",minLength:n.minLength},this.inputRef=V.createRef(),this.prefixRef=V.createRef(),this.suffixRef=V.createRef(),this.foundation=new Pve(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:n=>this.setState({value:n}),setEyeClosed:n=>this.setState({eyeClosed:n}),toggleFocusing:n=>{this.setState({isFocus:n})},focusInput:()=>{const{preventScroll:n}=this.props,r=this.inputRef&&this.inputRef.current;r&&r.focus({preventScroll:n})},toggleHovering:n=>this.setState({isHovering:n}),getIfFocusing:()=>this.state.isFocus,notifyChange:(n,r)=>this.props.onChange(n,r),notifyBlur:(n,r)=>this.props.onBlur(r),notifyFocus:(n,r)=>this.props.onFocus(r),notifyInput:n=>this.props.onInput(n),notifyKeyPress:n=>this.props.onKeyPress(n),notifyKeyDown:n=>this.props.onKeyDown(n),notifyKeyUp:n=>this.props.onKeyUp(n),notifyEnterPress:n=>this.props.onEnterPress(n),notifyClear:n=>this.props.onClear(n),setMinLength:n=>this.setState({minLength:n}),isEventTarget:n=>n&&n.target===n.currentTarget})}static getDerivedStateFromProps(n,r){const i={};return n.value!==r.cachedValue&&(i.value=n.value,i.cachedValue=n.value),i}componentDidUpdate(n){const{mode:r}=this.props;n.mode!==r&&this.handleModeChange(r)}componentDidMount(){const{disabled:n,autoFocus:r,preventScroll:i}=this.props;!n&&(r||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:i})}renderPrepend(){const{addonBefore:n}=this.props;if(n){const r=Ce({[`${mo}-prepend`]:!0,[`${mo}-prepend-text`]:n&&Es(n),[`${mo}-prepend-icon`]:of(n)});return V.createElement("div",{className:r,"x-semi-prop":"addonBefore"},n)}return null}renderAppend(){const{addonAfter:n}=this.props;if(n){const r=Ce({[`${mo}-append`]:!0,[`${mo}-append-text`]:n&&Es(n),[`${mo}-append-icon`]:of(n)});return V.createElement("div",{className:r,"x-semi-prop":"addonAfter"},n)}return null}renderClearBtn(){const n=Ce(`${mo}-clearbtn`),{clearIcon:r}=this.props;return this.foundation.isAllowClear()?V.createElement("div",{className:n,onMouseDown:this.handleClear},r||V.createElement(iG,null)):null}renderModeBtn(){const{eyeClosed:n}=this.state,{mode:r,disabled:i}=this.props,o=Ce(`${mo}-modebtn`),a=n?V.createElement(yfr,null):V.createElement(bfr,null),s=r==="password"&&!i,l=n?"Show password":"Hidden password";return s?V.createElement("div",{role:"button",tabIndex:0,"aria-label":l,className:o,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},a):null}renderPrefix(){const{prefix:n,insetLabel:r,insetLabelId:i}=this.props,o=n||r;if(!o)return null;const a=Ce({[`${mo}-prefix`]:!0,[`${mo}-inset-label`]:r,[`${mo}-prefix-text`]:o&&Es(o),[`${mo}-prefix-icon`]:of(o)});return V.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:i,"x-semi-prop":"prefix,insetLabel"},o)}renderSuffix(n){const{suffix:r,hideSuffix:i}=this.props;if(!r)return null;const o=Ce({[`${mo}-suffix`]:!0,[`${mo}-suffix-text`]:r&&Es(r),[`${mo}-suffix-icon`]:of(r),[`${mo}-suffix-hidden`]:n&&!!i});return V.createElement("div",{className:o,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},r)}getInputRef(){const{forwardRef:n}=this.props;if(!ll(n)){if(typeof n=="function")return r=>{n(r),this.inputRef={current:r}};if(Object.prototype.toString.call(n)==="[object Object]")return this.inputRef=n,n}return this.inputRef}render(){const n=this.props,{addonAfter:r,addonBefore:i,autoFocus:o,clearIcon:a,className:s,disabled:l,defaultValue:c,placeholder:u,prefix:d,mode:f,insetLabel:p,insetLabelId:h,validateStatus:g,type:v,readonly:y,size:_,suffix:S,style:b,showClear:E,onEnterPress:w,onClear:C,hideSuffix:x,inputStyle:T,forwardRef:R,maxLength:O,getValueLength:M,preventScroll:P,borderless:k,showClearIgnoreDisabled:$,onlyBorder:U}=n,z=wpr(n,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled","onlyBorder"]),{value:D,isFocus:B,minLength:Y}=this.state,q=this.foundation.isAllowClear(),K=of(S),H=this.getInputRef(),G=`${mo}-wrapper`,Q=Ce(G,s,{[`${mo}-wrapper__with-prefix`]:d||p,[`${mo}-wrapper__with-suffix`]:S,[`${mo}-wrapper__with-suffix-hidden`]:q&&!!x,[`${mo}-wrapper__with-suffix-icon`]:K,[`${mo}-wrapper__with-append`]:i,[`${mo}-wrapper__with-prepend`]:r,[`${mo}-wrapper__with-append-only`]:i&&!r,[`${mo}-wrapper__with-prepend-only`]:!i&&r,[`${G}-readonly`]:y,[`${G}-disabled`]:l,[`${G}-warning`]:g==="warning",[`${G}-error`]:g==="error",[`${G}-focus`]:B,[`${G}-clearable`]:E,[`${G}-modebtn`]:f==="password",[`${G}-hidden`]:v==="hidden",[`${G}-${_}`]:_,[`${mo}-borderless`]:k,[`${mo}-only_border`]:U!=null}),le=Ce(mo,{[`${mo}-${_}`]:_,[`${mo}-disabled`]:l,[`${mo}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${mo}-sibling-modebtn`]:f==="password"}),Z=D??"",j=Object.assign(Object.assign({},z),{style:T,className:le,disabled:l,readOnly:y,type:this.foundation.handleInputType(v),placeholder:u,onInput:te=>this.foundation.handleInput(te),onChange:te=>this.foundation.handleChange(te.target.value,te),onFocus:te=>this.foundation.handleFocus(te),onBlur:te=>this.foundation.handleBlur(te),onKeyUp:te=>this.foundation.handleKeyUp(te),onKeyDown:te=>this.foundation.handleKeyDown(te),onKeyPress:te=>this.foundation.handleKeyPress(te),value:Z});za(M)||(j.maxLength=O),Y&&(j.minLength=Y),g==="error"&&(j["aria-invalid"]="true");let F=Object.assign({},b);return U!==void 0&&(F=Object.assign({borderWidth:U},b)),V.createElement("div",{className:Q,style:F,onMouseEnter:te=>this.handleMouseOver(te),onMouseLeave:te=>this.handleMouseLeave(te),onClick:te=>this.handleClick(te)},this.renderPrepend(),this.renderPrefix(),V.createElement("input",Object.assign({},j,{ref:H})),this.renderClearBtn(),this.renderSuffix(q),this.renderModeBtn(),this.renderAppend())}}Ave.propTypes={"aria-label":ie.string,"aria-labelledby":ie.string,"aria-invalid":ie.bool,"aria-errormessage":ie.string,"aria-describedby":ie.string,"aria-required":ie.bool,addonBefore:ie.node,addonAfter:ie.node,clearIcon:ie.node,prefix:ie.node,suffix:ie.node,mode:ie.oneOf(Opr),value:ie.any,defaultValue:ie.any,disabled:ie.bool,readonly:ie.bool,autoFocus:ie.bool,type:ie.string,showClear:ie.bool,hideSuffix:ie.bool,placeholder:ie.any,size:ie.oneOf(xpr),className:ie.string,style:ie.object,validateStatus:ie.oneOf(Tpr),onClear:ie.func,onChange:ie.func,onBlur:ie.func,onFocus:ie.func,onInput:ie.func,onKeyDown:ie.func,onKeyUp:ie.func,onKeyPress:ie.func,onEnterPress:ie.func,insetLabel:ie.node,insetLabelId:ie.string,inputStyle:ie.object,getValueLength:ie.func,preventScroll:ie.bool,borderless:ie.bool};Ave.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:vr,onChange:vr,onBlur:vr,onFocus:vr,onInput:vr,onKeyDown:vr,onKeyUp:vr,onKeyPress:vr,onEnterPress:vr,validateStatus:"default",borderless:!1};const Hy=V.forwardRef((e,n)=>V.createElement(Ave,Object.assign({},e,{forwardRef:n})));var Rpr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};class Dve extends V.PureComponent{render(){const n=this.props,{triggerRender:r,componentName:i}=n,o=Rpr(n,["triggerRender","componentName"]);return r(Object.assign({},o))}}Dve.propTypes={triggerRender:ie.func.isRequired,componentName:ie.string,componentProps:ie.object,value:ie.any,inputValue:ie.string,placeholder:ie.oneOfType([ie.string,ie.array]),className:ie.string,style:ie.object};const Ipr={PREFIX:`${ui}-highlight`},Npr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");class Mpr extends tc{constructor(n){super(Object.assign({},n)),this.findAll=r=>{let{autoEscape:i=!0,caseSensitive:o=!1,searchWords:a,sourceString:s}=r;Es(a)&&(a=[a]);const l=this.findChunks({autoEscape:i,caseSensitive:o,searchWords:a,sourceString:s}),c=this.combineChunks({chunks:l});return this.fillInChunks({chunksToHighlight:c,totalLength:s?s.length:0})},this.findChunks=r=>{let{autoEscape:i,caseSensitive:o,searchWords:a,sourceString:s}=r;return a.map(l=>typeof l=="string"?{text:l}:l).filter(l=>l.text).reduce((l,c)=>{let u=c.text;i&&(u=Npr(u));const d=new RegExp(u,o?"g":"gi");let f;for(;f=d.exec(s);){const p=f.index,h=d.lastIndex;h>p&&l.push({highlight:!0,start:p,end:h,className:c.className,style:c.style}),f.index===d.lastIndex&&d.lastIndex++}return l},[])},this.combineChunks=r=>{let{chunks:i}=r;return i.sort((o,a)=>o.start-a.start).reduce((o,a)=>{if(o.length===0)return[a];{const s=o.pop();if(a.start<=s.end){const l=Math.max(s.end,a.end);o.push({highlight:!0,start:s.start,end:l,className:s.className||a.className,style:Object.assign(Object.assign({},s.style),a.style)})}else o.push(s,a);return o}},[])},this.fillInChunks=r=>{let{chunksToHighlight:i,totalLength:o}=r;const a=[],s=(l,c,u,d,f)=>{c-l>0&&a.push({start:l,end:c,highlight:u,className:d,style:f})};if(i.length===0)s(0,o,!1);else{let l=0;i.forEach(c=>{s(l,c.start,!1),s(c.start,c.end,!0,c.className,c.style),l=c.end}),s(l,o,!1)}return a}}}const Ppr=Ipr.PREFIX;class kve extends m.PureComponent{constructor(){super(...arguments),this.getHighLightTextHTML=n=>{let{sourceString:r="",searchWords:i=[],option:o={autoEscape:!0,caseSensitive:!1}}=n;const a=new Mpr().findAll(Object.assign({sourceString:r,searchWords:i},o)),s=o.highlightTag||"mark",l=o.highlightClassName||"",c=o.highlightStyle||{};return a.map((u,d)=>{const{end:f,start:p,highlight:h,style:g,className:v}=u,y=r.substr(p,f-p);return h?V.createElement(s,{style:Object.assign(Object.assign({},c),g),className:`${l} ${v||""}`.trim(),key:y+d},y):y})}}render(){const{searchWords:n,sourceString:r,component:i,highlightClassName:o,highlightStyle:a,caseSensitive:s,autoEscape:l}=this.props,c=Ce({[`${Ppr}-tag`]:!0},o),u={highlightTag:i,highlightClassName:c,highlightStyle:a,caseSensitive:s,autoEscape:l};return this.getHighLightTextHTML({sourceString:r,searchWords:n,option:u})}}kve.propTypes={style:ie.object,className:ie.string,autoEscape:ie.bool,caseSensitive:ie.bool,sourceString:ie.string,searchWords:ie.arrayOf(ie.string),highlightStyle:ie.object,highlightClassName:ie.string,component:ie.string};kve.defaultProps={component:"mark",autoEscape:!0,caseSensitive:!1,sourceString:""};const Apr={PREFIX:`${ui}-avatar`},pN={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],OVERLAP_FROM:["start","end"]};class Dpr extends tc{constructor(n){super(Object.assign({},n)),this.handleFocusVisible=r=>{const{target:i}=r;try{i.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{b0(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)},this.changeScale=()=>{const{gap:r}=this.getProps(),i=this._adapter.getAvatarNode(),o=i==null?void 0:i.firstChild,[a,s]=[(i==null?void 0:i.offsetWidth)||0,(o==null?void 0:o.offsetWidth)||0];if(a!==0&&s!==0&&r*2<a){const l=a-r*2>s?1:(a-r*2)/s;this._adapter.setScale(l)}}}init(){const{children:n}=this.getProps();typeof n=="string"&&this.changeScale()}destroy(){}handleImgLoadError(){const{onError:n}=this.getProps();(n?n():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(n){this._adapter.notifyEnter(n)}handleLeave(n){this._adapter.notifyLeave(n)}}const kpr=e=>{let{gradientStart:n,gradientEnd:r}=e;const i=Gj();return V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"51",height:"52",viewBox:"0 0 51 52",fill:"none"},V.createElement("g",{filter:"url(#filter0_d_6_2)"},V.createElement("path",{d:"M40.4918 46.5592C44.6795 43.176 46.261 34.1333 47.5301 25.6141C49.5854 11.8168 39.6662 1 25.8097 1C11.2857 1 3 11.4279 3 25.3518C3 33.7866 6.29361 43.8947 10.4602 46.5592C12.5868 47.9192 12.5868 47.9051 25.8097 47.9192C38.3651 47.9282 38.5352 48.14 40.4918 46.5592Z",fill:`url(#${i})`})),V.createElement("defs",null,V.createElement("filter",{id:"filter0_d_6_2",x:"0.789215",y:"0.447304",width:"49.2216",height:"51.3549",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},V.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),V.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),V.createElement("feOffset",{dy:"1.65809"}),V.createElement("feGaussianBlur",{stdDeviation:"1.10539"}),V.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"}),V.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_6_2"}),V.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_6_2",result:"shape"})),V.createElement("linearGradient",{id:i,x1:"17.671",y1:"31.7392",x2:"17.671",y2:"47.9333",gradientUnits:"userSpaceOnUse"},V.createElement("stop",{stopColor:n}),V.createElement("stop",{offset:"1",stopColor:r}))))};var Lpr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const $pr=pN.SIZE,Fpr=pN.SHAPE,Bpr=pN.COLOR,vo=Apr.PREFIX;let $R=class extends fl{constructor(n){super(n),this.handleFocusVisible=r=>{this.foundation.handleFocusVisible(r)},this.handleBlur=r=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:r,onClick:i,imgAttr:o,src:a,srcSet:s,alt:l}=this.props,{isImgExist:c}=this.state;let u=r;const d=i!==ly,f=a&&c,p={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(f){const h=d?`clickable Avatar: ${l}`:l,g=Object.assign(Object.assign({src:a,srcSet:s,onError:this.handleError},o),{className:Ce({[`${vo}-no-focus-visible`]:d})}),v=d?Object.assign(Object.assign({},g),p):g;u=V.createElement("img",Object.assign({alt:h},v))}else if(typeof r=="string"){const h=l??r,v={role:"img","aria-label":d?`clickable Avatar: ${h}`:h,className:Ce(`${vo}-label`,{[`${vo}-no-focus-visible`]:d})},y=d?Object.assign(Object.assign({},v),p):v,_={transform:`scale(${this.state.scale})`};u=V.createElement("span",{className:`${vo}-content`,style:_},V.createElement("span",Object.assign({},y,{"x-semi-prop":"children"}),r))}return u},this.renderBottomSlot=()=>{var r,i;if(!this.props.bottomSlot)return null;if(this.props.bottomSlot.render)return this.props.bottomSlot.render();const o=(r=this.props.bottomSlot.render)!==null&&r!==void 0?r:()=>{var a;const s={};return this.props.bottomSlot.bgColor&&(s.backgroundColor=this.props.bottomSlot.bgColor),this.props.bottomSlot.textColor&&(s.color=this.props.bottomSlot.textColor),V.createElement("span",{style:s,className:Ce(`${vo}-bottom_slot-shape_${this.props.bottomSlot.shape}`,`${vo}-bottom_slot-shape_${this.props.bottomSlot.shape}-${this.props.size}`,(a=this.props.bottomSlot.className)!==null&&a!==void 0?a:"")},this.props.bottomSlot.text)};return V.createElement("div",{className:Ce([`${vo}-bottom_slot`]),style:(i=this.props.bottomSlot.style)!==null&&i!==void 0?i:{}},o())},this.renderTopSlot=()=>{var r,i,o,a;if(!this.props.topSlot)return null;if(this.props.topSlot.render)return this.props.topSlot.render();const s={};return this.props.topSlot.textColor&&(s.color=this.props.topSlot.textColor),V.createElement("div",{style:(r=this.props.topSlot.style)!==null&&r!==void 0?r:{},className:Ce([`${vo}-top_slot-wrapper`,(i=this.props.topSlot.className)!==null&&i!==void 0?i:"",{[`${vo}-animated`]:this.props.contentMotion}])},V.createElement("div",{className:Ce([`${vo}-top_slot-bg`,`${vo}-top_slot-bg-${this.props.size}`])},V.createElement("div",{className:Ce([`${vo}-top_slot-bg-svg`,`${vo}-top_slot-bg-svg-${this.props.size}`])},V.createElement(kpr,{gradientStart:(o=this.props.topSlot.gradientStart)!==null&&o!==void 0?o:"var(--semi-color-primary)",gradientEnd:(a=this.props.topSlot.gradientEnd)!==null&&a!==void 0?a:"var(--semi-color-primary)"}))),V.createElement("div",{className:Ce([`${vo}-top_slot`])},V.createElement("div",{style:s,className:Ce([`${vo}-top_slot-content`,`${vo}-top_slot-content-${this.props.size}`])},this.props.topSlot.text)))},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1,scale:1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this),this.avatarRef=V.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:n=>{this.setState({isImgExist:n})},notifyEnter:n=>{const{hoverMask:r}=this.props,i=r;this.setState({hoverContent:i},()=>{const{onMouseEnter:o}=this.props;o&&o(n)})},notifyLeave:n=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:r}=this.props;r&&r(n)})},setFocusVisible:n=>{this.setState({focusVisible:n})},setScale:n=>{this.setState({scale:n})},getAvatarNode:()=>{var n;return(n=this.avatarRef)===null||n===void 0?void 0:n.current}})}componentDidMount(){this.foundation=new Dpr(this.adapter),this.foundation.init()}componentDidUpdate(n){if(this.props.src&&this.props.src!==n.src){const r=new Image(0,0);r.src=this.props.src,r.onload=()=>{this.setState({isImgExist:!0})},r.onerror=()=>{this.setState({isImgExist:!1})},r.onabort=()=>{this.setState({isImgExist:!1})}}typeof this.props.children=="string"&&this.props.children!==n.children&&this.foundation.changeScale()}componentWillUnmount(){this.foundation.destroy()}onEnter(n){this.foundation.handleEnter(n)}onLeave(n){this.foundation.handleLeave(n)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(n){const{onClick:r}=this.props;switch(n.key){case"Enter":r(n),H0(n);break;case"Escape":n.target.blur();break}}render(){var n;const r=this.props,{shape:i,children:o,size:a,color:s,className:l,hoverMask:c,onClick:u,imgAttr:d,src:f,srcSet:p,style:h,alt:g,gap:v,bottomSlot:y,topSlot:_,border:S,contentMotion:b}=r,E=Lpr(r,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt","gap","bottomSlot","topSlot","border","contentMotion"]),{isImgExist:w,hoverContent:C,focusVisible:x}=this.state;let T={};pN.SIZE.includes(a)||(T={width:a,height:a}),T=Object.assign(Object.assign({},T),h);const R=y||_||S,O={onClick:u,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave},M=f&&w,P=Ce(vo,{[`${vo}-${i}`]:i,[`${vo}-${a}`]:a,[`${vo}-${s}`]:s&&!M,[`${vo}-img`]:M,[`${vo}-focus`]:x,[`${vo}-animated`]:b},l),k=C?V.createElement("div",{className:`${vo}-hover`,"x-semi-prop":"hoverContent"},C):null;let $=V.createElement("span",Object.assign({},E,{style:R?{}:T,className:P},R?{}:O,{role:"listitem",ref:this.avatarRef}),this.getContent(),k);if(S){const U={};typeof S=="object"&&(S!=null&&S.color)&&(U.borderColor=S==null?void 0:S.color),$=V.createElement("div",{style:Object.assign({position:"relative"},T)},$,V.createElement("span",{style:U,className:Ce([`${vo}-additionalBorder`,`${vo}-additionalBorder-${a}`,{[`${vo}-${i}`]:i}])}),typeof this.props.border=="object"&&this.props.border.motion&&V.createElement("span",{style:U,className:Ce([`${vo}-additionalBorder`,`${vo}-additionalBorder-${a}`,{[`${vo}-${i}`]:i,[`${vo}-additionalBorder-animated`]:typeof this.props.border=="object"&&((n=this.props.border)===null||n===void 0?void 0:n.motion)}])}))}return R?V.createElement("span",Object.assign({className:Ce([`${vo}-wrapper`]),style:T},O),$,_&&["extra-small","small","default","medium","large","extra-large"].includes(a)&&i==="circle"&&this.renderTopSlot(),y&&["extra-small","small","default","medium","large","extra-large"].includes(a)&&this.renderBottomSlot()):$}};$R.__SemiComponentName__="Avatar";$R.defaultProps=T_($R.__SemiComponentName__,{size:"medium",color:"grey",shape:"circle",gap:3,onClick:ly,onMouseEnter:ly,onMouseLeave:ly});$R.propTypes={children:ie.node,color:ie.oneOf(Bpr),shape:ie.oneOf(Fpr),size:ie.oneOf($pr),hoverMask:ie.node,className:ie.string,style:ie.object,gap:ie.number,imgAttr:ie.object,src:ie.string,srcSet:ie.string,alt:ie.string,onError:ie.func,onClick:ie.func,onMouseEnter:ie.func,onMouseLeave:ie.func,bottomSlot:ie.shape({render:ie.func,shape:ie.oneOf(["circle","square"]),text:ie.node,bgColor:ie.string,textColor:ie.string,className:ie.string,style:ie.object}),topSlot:ie.shape({render:ie.func,gradientStart:ie.string,gradientEnd:ie.string,text:ie.node,textColor:ie.string,className:ie.string,style:ie.object}),border:ie.oneOfType([ie.shape({color:ie.string,motion:ie.bool}),ie.bool]),contentMotion:ie.bool};$R.elementType="Avatar";const Lve={PREFIX:`${ui}-button`},Uw={sizes:["default","small","large"],iconPositions:["left","right"],htmlTypes:["button","reset","submit"],btnTypes:["primary","secondary","tertiary","warning","danger"],themes:["solid","borderless","light","outline"],DEFAULT_ICON_SIZE:"default",DEFAULT_ICON_POSITION:"left"},jpr={SIZE:["extra-small","small","default","large","extra-large","custom"],ICON_PREFIX:"semi-icon-"};var Upr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Hpr=Uw.sizes,{htmlTypes:zpr,btnTypes:Vpr}=Uw;let v$=class extends m.PureComponent{render(){const n=this.props,{children:r,block:i,htmlType:o,loading:a,circle:s,className:l,style:c,disabled:u,size:d,theme:f,type:p,prefixCls:h,iconPosition:g}=n,v=Upr(n,["children","block","htmlType","loading","circle","className","style","disabled","size","theme","type","prefixCls","iconPosition"]),y=Object.assign(Object.assign({disabled:u},h$(v,["x-semi-children-alias"])),{className:Ce(h,{[`${h}-${p}`]:!u&&p,[`${h}-disabled`]:u,[`${h}-size-large`]:d==="large",[`${h}-size-small`]:d==="small",[`${h}-light`]:f==="light",[`${h}-block`]:i,[`${h}-circle`]:s,[`${h}-borderless`]:f==="borderless",[`${h}-outline`]:f==="outline",[`${h}-${p}-disabled`]:u&&p},l),type:o,"aria-disabled":u}),_={};return l&&l.includes("-with-icon")||(_["x-semi-prop"]=this.props["x-semi-children-alias"]||"children"),V.createElement("button",Object.assign({},y,{onClick:this.props.onClick,onMouseDown:this.props.onMouseDown,style:c}),V.createElement("span",Object.assign({className:Ce(`${h}-content`,this.props.contentClassName),onClick:S=>u&&S.stopPropagation()},_),r))}};v$.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:ly,onClick:ly,onMouseEnter:ly,onMouseLeave:ly,prefixCls:Lve.PREFIX};v$.propTypes={children:ie.node,disabled:ie.bool,prefixCls:ie.string,style:ie.object,size:ie.oneOf(Hpr),type:ie.oneOf(Vpr),block:ie.bool,onClick:ie.func,onMouseDown:ie.func,circle:ie.bool,loading:ie.bool,htmlType:ie.oneOf(zpr),theme:ie.oneOf(Uw.themes),className:ie.string,onMouseEnter:ie.func,onMouseLeave:ie.func,"aria-label":ie.string,contentClassName:ie.string};var Gpr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Wpr=jpr.SIZE;class ul extends m.PureComponent{render(){const n=this.props,{children:r,iconPosition:i,iconSize:o,iconStyle:a,style:s,icon:l,noHorizontalPadding:c,theme:u,className:d,prefixCls:f,loading:p}=n,h=Gpr(n,["children","iconPosition","iconSize","iconStyle","style","icon","noHorizontalPadding","theme","className","prefixCls","loading"]),g=Object.assign({},s);Array.isArray(c)?(c.includes("left")&&(g.paddingLeft=0),c.includes("right")&&(g.paddingRight=0)):c===!0?(g.paddingLeft=0,g.paddingRight=0):typeof c=="string"&&(c==="left"&&(g.paddingLeft=0),c==="right"&&(g.paddingRight=0));let v=null,y=null;p&&!h.disabled?y=V.createElement(Zlt,null):V.isValidElement(l)&&(y=l);const _=Ce({[`${f}-content-left`]:i==="right",[`${f}-content-right`]:i==="left"}),S=this.props["x-semi-children-alias"]||"children",b=r!=null?V.createElement("span",{className:_,"x-semi-prop":S},r):null;i==="left"?v=V.createElement(V.Fragment,null,y,b):v=V.createElement(V.Fragment,null,b,y);const E=Ce(d,`${f}-with-icon`,{[`${f}-with-icon-only`]:b==null||b==="",[`${f}-loading`]:p});return V.createElement(v$,Object.assign({},h,{className:E,theme:u,style:g}),v)}}ul.defaultProps={iconPosition:Uw.DEFAULT_ICON_POSITION,prefixCls:Lve.PREFIX,loading:!1,noHorizontalPadding:!1,onMouseEnter:vr,onMouseLeave:vr};ul.elementType="IconButton";ul.propTypes={iconStyle:ie.object,style:ie.object,loading:ie.bool,prefixCls:ie.string,icon:ie.oneOfType([ie.object,ie.string,ie.node]),iconSize:ie.oneOf(Wpr),noHorizontalPadding:ie.oneOfType([ie.bool,ie.string,ie.array]),children:ie.node,theme:ie.string,iconPosition:ie.oneOf(Uw.iconPositions),className:ie.string,onMouseEnter:ie.func,onMouseLeave:ie.func};let ol=class extends V.PureComponent{constructor(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(n)}render(){const n=Object.assign({},this.props),r=!!n.icon,i=!!n.loading,o=!!n.disabled;return r||i&&!o?V.createElement(ul,Object.assign({},n)):V.createElement(v$,Object.assign({},n))}};ol.__SemiComponentName__="Button";ol.propTypes=Object.assign(Object.assign({},v$.propTypes),ul.propTypes);ol.defaultProps=T_(ol.__SemiComponentName__);ol.elementType="Button";var Ypr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const zM=Lve.PREFIX,qpr=Uw.sizes;class $ve extends fl{getInnerWithLine(n){const r=[];return n.length>1?(n.slice(0,-1).forEach((i,o)=>{const a=fr(i,"type.elementType")==="Button",s=fr(i,"props"),{type:l,theme:c,disabled:u}=s??{};if(a&&c!=="outline"){const d=Ce(`${zM}-group-line`,`${zM}-group-line-${c??"light"}`,`${zM}-group-line-${l??"primary"}`,{[`${zM}-group-line-disabled`]:u});r.push(i,V.createElement("span",{className:d,key:`line-${o}`}))}else r.push(i)}),r.push(n.slice(-1)),r):n}render(){const n=this.props,{children:r,disabled:i,size:o,type:a,className:s,style:l,"aria-label":c}=n,u=Ypr(n,["children","disabled","size","type","className","style","aria-label"]);let d,f=[];const p=Ce(`${zM}-group`,s);return r&&(d=(Array.isArray(r)?r:[r]).map((h,g)=>{var v;return m.isValidElement(h)?m.cloneElement(h,Object.assign(Object.assign(Object.assign({disabled:i,size:o,type:a},h.props),u),{key:(v=h.key)!==null&&v!==void 0?v:g})):h}),f=this.getInnerWithLine(d)),V.createElement("div",{className:p,style:l,role:"group","aria-label":c},f)}}$ve.propTypes={children:ie.node,disabled:ie.bool,type:ie.string,size:ie.oneOf(qpr),theme:ie.oneOf(Uw.themes),"aria-label":ie.string};$ve.defaultProps={size:"default"};const Fve={PREFIX:`${ui}-skeleton`};var Kpr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Xpr=pN.SIZE,Qpr=pN.SHAPE,uG=e=>n=>r=>V.createElement(n,Object.assign({type:e},r));class hN extends m.PureComponent{render(){const n=this.props,{prefixCls:r,className:i,type:o,size:a,shape:s}=n,l=Kpr(n,["prefixCls","className","type","size","shape"]),c=Ce(i,`${r}-${o}`,{[`${r}-${o}-${a}`]:o.toUpperCase()==="AVATAR"},{[`${r}-${o}-${s}`]:o.toUpperCase()==="AVATAR"});return V.createElement("div",Object.assign({className:c},l))}}hN.propTypes={type:ie.string,prefixCls:ie.string,style:ie.object,className:ie.string,size:ie.oneOf(Xpr),shape:ie.oneOf(Qpr)};hN.defaultProps={prefixCls:Fve.PREFIX,size:"medium",shape:"circle"};const Zpr=uG("avatar")(hN),Jpr=uG("image")(hN),ehr=uG("title")(hN),thr=uG("button")(hN);let Bve=class extends m.PureComponent{render(){const{prefixCls:n,className:r,style:i,rows:o}=this.props,a=Ce(r,`${n}-paragraph`);return V.createElement("ul",{className:a,style:i},[...Array(o)].map((s,l)=>V.createElement("li",{key:l})))}};Bve.propTypes={rows:ie.number,prefixCls:ie.string,style:ie.object,className:ie.string};Bve.defaultProps={prefixCls:Fve.PREFIX,rows:4};var nhr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const q$e=Fve.PREFIX;class Jd extends m.PureComponent{render(){const n=this.props,{placeholder:r,active:i,children:o,className:a,loading:s,style:l}=n,c=nhr(n,["placeholder","active","children","className","loading","style"]),u=Ce(q$e,{[`${q$e}-active`]:!!i},a);let d;return s?d=V.createElement("div",Object.assign({className:u,style:l},c,{"x-semi-prop":"placeholder"}),r):d=o,d}}Jd.Avatar=Zpr;Jd.Title=ehr;Jd.Button=thr;Jd.Paragraph=Bve;Jd.Image=Jpr;Jd.defaultProps={loading:!0};Jd.propTypes={active:ie.bool,placeholder:ie.node,style:ie.object,className:ie.string,loading:ie.bool,children:ie.node};function rhr(e,n,r,i){for(var o=e.length,a=r+(i?1:-1);i?a--:++a<o;)if(n(e[a],a,e))return a;return-1}var ihr=rhr;function ohr(e){return e!==e}var ahr=ohr;function shr(e,n,r){for(var i=r-1,o=e.length;++i<o;)if(e[i]===n)return i;return-1}var lhr=shr,chr=ihr,uhr=ahr,dhr=lhr;function fhr(e,n,r){return n===n?dhr(e,n,r):chr(e,uhr,r)}var Jlt=fhr,phr=CYe,K$e=1/0,hhr=17976931348623157e292;function ghr(e){if(!e)return e===0?e:0;if(e=phr(e),e===K$e||e===-K$e){var n=e<0?-1:1;return n*hhr}return e===e?e:0}var mhr=ghr,vhr=mhr;function yhr(e){var n=vhr(e),r=n%1;return n===n?r?n-r:n:0}var _hr=yhr,bhr=Uk;function Shr(e,n){return bhr(n,function(r){return e[r]})}var Ehr=Shr,Chr=Ehr,whr=pw;function xhr(e){return e==null?[]:Chr(e,whr(e))}var Thr=xhr,Ohr=Jlt,Rhr=c_,Ihr=pfe,Nhr=_hr,Mhr=Thr,Phr=Math.max;function Ahr(e,n,r,i){e=Rhr(e)?e:Mhr(e),r=r&&!i?Nhr(r):0;var o=e.length;return r<0&&(r=Phr(o+r,0)),Ihr(e)?r<=o&&e.indexOf(n,r)>-1:!!o&&Ohr(e,n,r)>-1}var Dhr=Ahr;const ect=Or(Dhr);var khr=JU,Lhr=gw,$hr=bYe,Fhr=c_,Bhr=Bk,jhr=pw,Uhr=Object.prototype,Hhr=Uhr.hasOwnProperty,zhr=$hr(function(e,n){if(Bhr(n)||Fhr(n)){Lhr(n,jhr(n),e);return}for(var r in n)Hhr.call(n,r)&&khr(e,r,n[r])}),Vhr=zhr;const Ghr=Or(Vhr);var Whr=Jlt;function Yhr(e,n){var r=e==null?0:e.length;return!!r&&Whr(e,n,0)>-1}var tct=Yhr;function qhr(e,n,r){for(var i=-1,o=e==null?0:e.length;++i<o;)if(r(n,e[i]))return!0;return!1}var nct=qhr,Khr=bfe,Xhr=tct,Qhr=nct,Zhr=Uk,Jhr=HU,egr=Sfe,tgr=200;function ngr(e,n,r,i){var o=-1,a=Xhr,s=!0,l=e.length,c=[],u=n.length;if(!l)return c;r&&(n=Zhr(n,Jhr(r))),i?(a=Qhr,s=!1):n.length>=tgr&&(a=egr,s=!1,n=new Khr(n));e:for(;++o<l;){var d=e[o],f=r==null?d:r(d);if(d=i||d!==0?d:0,s&&f===f){for(var p=u;p--;)if(n[p]===f)continue e;c.push(d)}else a(n,f,i)||c.push(d)}return c}var rgr=ngr,igr=rgr,ogr=Llt,agr=_Ye,X$e=hYe,sgr=agr(function(e,n){return X$e(e)?igr(e,ogr(n,1,X$e,!0)):[]}),lgr=sgr;const qj=Or(lgr);var cgr=QU,ugr=Flt,dgr=OI;function fgr(e,n,r){for(var i=-1,o=n.length,a={};++i<o;){var s=n[i],l=cgr(e,s);r(l,s)&&ugr(a,dgr(s,e),l)}return a}var pgr=fgr,hgr=pgr,ggr=QWe;function mgr(e,n){return hgr(e,n,function(r,i){return ggr(e,i)})}var vgr=mgr,ygr=vgr,_gr=$lt,bgr=_gr(function(e,n){return e==null?{}:ygr(e,n)}),Sgr=bgr;const Kj=Or(Sgr);var Egr=Vk;function Cgr(e,n,r){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=n(a);if(s!=null&&(l===void 0?s===s&&!Egr(s):r(s,l)))var l=s,c=a}return c}var wgr=Cgr;function xgr(e,n){return e>n}var Tgr=xgr,Ogr=wgr,Rgr=Tgr,Igr=jk;function Ngr(e){return e&&e.length?Ogr(e,Igr,Rgr):void 0}var Mgr=Ngr;const Pgr=Or(Mgr);var see=zWe,Agr=Ilt,Dgr=Efe,kgr=1/0,Lgr=see&&1/Dgr(new see([,-0]))[1]==kgr?function(e){return new see(e)}:Agr,$gr=Lgr,Fgr=bfe,Bgr=tct,jgr=nct,Ugr=Sfe,Hgr=$gr,zgr=Efe,Vgr=200;function Ggr(e,n,r){var i=-1,o=Bgr,a=e.length,s=!0,l=[],c=l;if(r)s=!1,o=jgr;else if(a>=Vgr){var u=n?null:Hgr(e);if(u)return zgr(u);s=!1,o=Ugr,c=new Fgr}else c=n?[]:l;e:for(;++i<a;){var d=e[i],f=n?n(d):d;if(d=r||d!==0?d:0,s&&f===f){for(var p=c.length;p--;)if(c[p]===f)continue e;n&&c.push(f),l.push(d)}else o(c,f,r)||(c!==l&&c.push(f),l.push(d))}return l}var Wgr=Ggr,Ygr=Wgr;function qgr(e){return e&&e.length?Ygr(e):[]}var Kgr=qgr;const Xgr=Or(Kgr),rct={PREFIX:`${ui}-tree`,PREFIX_OPTION:`${ui}-tree-option`};function ict(e,n){return`${e}-${n}`}function dG(e){return!BC(e)&&!ll(e)}function Ob(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const o=[],a=!!i,s=fr(r,"key","key"),l=fr(r,"children","children");if(ll(e))return[];function c(u){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((f,p)=>{const h=ict(d?d.pos:"0",p),g=f[s],v={};r&&Object.entries(h$(r,"children")).forEach(S=>{let[b,E]=S;const w=f[E];!ll(w)&&(v[b]=w)});const y=Object.assign(Object.assign(Object.assign({},Kj(f,["key","label","value","icon","disabled","isLeaf"])),v),{parent:d,pos:h,children:null,data:f,_innerDataTag:!0,isEnd:[...d?d.isEnd:[],p===u.length-1]}),_=typeof i=="boolean";return(!a||!_&&i.has(g))&&o.push(y),n.has(g)&&(!a||!_&&i.has(g))?y.children=c(f[l]||[],y):y.children=[],y})}return c(e),o}function Qgr(e,n,r){const i=fr(r,"key","key"),o=fr(r,"children","children"),a=(s,l,c)=>{const u=s?s[o]:e,d=s?ict(c.pos,l):"0";if(s){const f=fr(s,i,null),p={data:Object.assign({},s),ind:l,pos:d,key:f!==null?f:d,parentPos:c.node?c.pos:null,level:Number(c.level)+1};n(p)}u&&u.forEach((f,p)=>{a(f,p,{node:s,pos:d,level:c?Number(c.level)+1:-1})})};a(null)}function Zgr(e,n){const r={},i={},o={},a={posEntities:r,keyEntities:i,valueEntities:o},s=fr(n,"value","value");return Qgr(e,l=>{const{pos:c,key:u,parentPos:d}=l,f=Object.assign({},l),p=fr(f,`data.${s}`,null);p!==null&&(o[p]=u),r[c]=f,i[u]=f,f.parent=r[d],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f))},n),a}function FE(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!dG(e))return[];if(!r&&Array.isArray(e)?e=e.length?[e[0]]:[]:Array.isArray(e)||(e=[e]),ta(n))return e;const i=[];return e.forEach(o=>{o in n?i.push(n[o]):o&&i.push(o)}),i}function wm(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const i=[],o=a=>{if(!a)return;const{children:s}=a;dG(s)&&s.forEach(c=>{i.push(c.key),o(n[c.key])})};return e.forEach(a=>{r&&i.push(a),o(n[a])}),i}function Jgr(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const i=[];return e&&e.forEach(o=>{const a=n[o];a&&a.children&&a.children.forEach(s=>{(!r.length||!r.includes(s.key))&&i.push(s.key)})}),i}function jve(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const i=[];return e.forEach(a=>{n[a]&&n[a].parent&&i.push(n[a].parent.key)}),Jgr(Xgr(i),n,r?[]:e)}function xm(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const i=[],o=a=>{a.parent&&(i.push(a.parent.key),o(a.parent))};return e.forEach(a=>{n[a]&&o(n[a]),r&&i.push(a)}),i}function emr(e,n){const r={};return e.forEach(i=>{if(!n[i])return;const{level:o}=n[i];r[o]?r[o].push(i):r[o]=[i]}),r}function y$(e,n){const r=Array.isArray(e)?e:[e],i=wm(r,n,!0),o=new Set([...i]);let a=new Set([]),s=[];const l=emr(r,n),c=u=>{const{key:d,parent:f,level:p}=u;if(!f||s.includes(d))return;const h=jve([d],n);if(s=[...s,...h],h.every(v=>o.has(v)))o.add(f.key),p-1 in l&&p?l[p-1].push(f.key):l[p-1]=[f.key];else{const v=xm([d],n,!1);a=new Set([...a,...v])}};for(;!ta(l);){const u=Pgr(Object.keys(l).map(d=>Number(d)));l[u].forEach(d=>c(n[d])),delete l[u]}return{checkedKeys:o,halfCheckedKeys:a}}function lee(){let e=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?arguments[2]:!0;if(Array.isArray(e)||(e=[e]),r){const i=xm(e,n,!0);return new Set(i)}return new Set(e)}function Q$e(e,n,r,i){const o=FE(e,i,r);return new Set(xm(o,n,!1))}function Z$e(e,n,r){let i="show";const o=[...e],a=[...n];if(Math.abs(o.length-a.length)!==1)return{motionType:i,motionKeys:[]};let s=[];return o.length>a.length?(i="hide",s=qj(o,a)):s=qj(a,o),{motionType:s.length===1?i:"show",motionKeys:s.length===1?wm(s,r,!1):[]}}function oct(e,n,r,i){if(!r)return!0;let o=r,a=n;return typeof r=="boolean"&&(o=(s,l)=>{const c=s.toLowerCase();return l.toString().toLowerCase().includes(c)}),i&&(a=n[i]),o(e,a,n)}function Fh(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3?arguments[3]:void 0;const o=[],a=new Set(e);return r?e.forEach(s=>{n[s]&&!dG(n[s].children)&&o.push(s),!n[s]&&i&&o.push(s)}):e.forEach(s=>{if(!n[s]){i&&o.push(s);return}const{parent:l}=n[s];l&&a.has(l.key)||o.push(s)}),o}function J$e(e,n,r){const i=[],o=a=>{r[a].children&&r[a].children.forEach(s=>{const{key:l}=s;i.push(l),n.has(l)&&o(l)})};return o(e),i}function act(e,n,r,i){const o=wm([e],n,!0),a=n[e];r=new Set([...r,e]);const s=l=>{if(!l.parent)return;const{key:c}=l;if(jve([c],n).every(f=>r.has(f))){const f=l.parent;r.add(f.key),s(f)}else{const f=xm([c],n,!1);i=new Set([...i,...f])}};return s(a),{checkedKeys:new Set([...r,...o]),halfCheckedKeys:i}}function sct(e,n,r,i){const o=wm([e],n,!0),a=n[e];o.forEach(l=>{r.has(l)&&r.delete(l),i.has(l)&&i.delete(l)});const s=l=>{const c=l.parent;if(!c||!r.has(c.key)&&!i.has(c.key))return;const{key:u}=l,f=jve([u],n).some(h=>r.has(h)||i.has(h)),p=xm([u],n,!1);f?p.forEach(h=>{r.has(h)&&(r.delete(h),i.add(h))}):(r.has(c.key)&&r.delete(c.key),i.has(c.key)&&i.delete(c.key),s(c))};return a&&s(a),{checkedKeys:r,halfCheckedKeys:i}}function tmr(e){const{showFilteredOnly:n,keyEntities:r,inputValue:i,treeData:o,filterTreeNode:a,filterProps:s,prevExpandedKeys:l,keyMaps:c}=e;let u=[];u=Object.values(r).filter(g=>oct(i,g.data,a,s)).map(g=>g.key);let d=xm(u,r,!1);if(l.length){const g=l.filter(v=>!!r[v]);d=d.concat(g)}const f=wm(u,r,!0),p=new Set([...f,...d]);return{flattenNodes:Ob(o,new Set(d),c,n&&p),filteredKeys:new Set(u),filteredExpandedKeys:new Set(d),filteredShownKeys:p}}function Xj(e,n){const r=fr(n,"value","value"),i=fr(n,"key","key");return Array.isArray(e)?e.map(o=>fr(o,r,o[i])):fr(e,r,e[i])}function nb(e,n,r){return n&&dG(e)?Xj(e,r):e}function e3e(e,n){return[...e].filter(i=>i in n)}function lct(e,n){const r=fr(n,"disabled","disabled"),i=Object.keys(e).filter(a=>e[a].data[r]),{checkedKeys:o}=y$(i,e);return o}const cct={PREFIX:`${ui}-cascader`,PREFIX_OPTION:`${ui}-cascader-option`},Ua={SIZE_SET:["small","large","default"],VALIDATE_STATUS:["success","default","error","warning"],IS_KEY:"isKey",IS_VALUE:"isValue",SHOW_NEXT_BY_CLICK:"click",SHOW_NEXT_BY_HOVER:"hover",LEAF_ONLY_MERGE_TYPE:"leafOnly",AUTO_MERGE_VALUE_MERGE_TYPE:"autoMergeValue",NONE_MERGE_TYPE:"none",SEARCH_POSITION_TRIGGER:"trigger",SEARCH_POSITION_CUSTOM:"custom",RELATED:"related",UN_RELATED:"unRelated"},uct="_SEMI_CASCADER_SPLIT_";function nmr(e,n){return`${e}-${n}`}function rmr(e){return!BC(e)&&!ll(e)}function imr(e){return Array.isArray(e)?e:[e]}function omr(e,n,r,i){if(!r)return!0;let o=r,a;return typeof r=="boolean"?(o=(s,l)=>{const c=s.toLowerCase();return l.toLowerCase().includes(c)},a=i.join("")):a=i.join(),o(e,a,n)}function amr(e,n){const r=(i,o,a)=>{const s=i?i.children:e;let l=null;if(i){const c=a?`${a.key}${uct}${i.value}`:`${i.value}`,u=a?nmr(a.pos,o):`${o}`;l={data:Object.assign({},i),ind:o,key:c,pos:u,level:a?a.level+1:0,parentKey:a?a.key:null,path:a?[...a.path,c]:[c],valuePath:a?[...a.valuePath,i.value]:[i.value]},n(l)}s&&s.forEach((c,u)=>{r(c,u,l)})};r(null)}function smr(e){return e!=null&&e.length?Array.isArray(e[0])?e.map(n=>Qj(n)):[Qj(e)]:[]}function Qj(e){return e.join(uct)}function lmr(e,n){const r=e.split("-").map(a=>Number(a));let i=n,o=[];return r.forEach((a,s)=>{var l;i=s===0?i[a]:(l=i==null?void 0:i.children)===null||l===void 0?void 0:l[a],o.push(i==null?void 0:i.value)}),Qj(o)}function dct(e){const n={};return amr(e,r=>{const{key:i,parentKey:o}=r,a=Object.assign({},r);n[i]=a,a.parent=n[o],a.parent&&(a.parent.children=a.parent.children||[],a.parent.children.push(a))}),n}function Gse(e,n){let r;return n?r=Ua.LEAF_ONLY_MERGE_TYPE:e?r=Ua.AUTO_MERGE_VALUE_MERGE_TYPE:r=Ua.NONE_MERGE_TYPE,r}class cmr extends tc{constructor(n){super(Object.assign({},n)),this.handleKeyDown=r=>{r.key===Ylt&&this.getState("isOpen")&&this.close(r)},this.updateSearching=r=>{this._adapter.updateStates({isSearching:!1})},this.handleTagRemoveByKey=r=>{var i,o;const{keyEntities:a}=this.getStates(),{disabled:s}=this.getProps();if(s)return;const l=(i=a[r])!==null&&i!==void 0?i:{};!(!((o=l==null?void 0:l.data)===null||o===void 0)&&o.disable)&&this._handleMultipleSelect(l),this._adapter.rePositionDropdown()},this.handleTagRemoveInTrigger=r=>{const{treeData:i}=this.getStates(),o=lmr(r,i);this.handleTagRemoveByKey(o)}}init(){const n=this.getProp("open")||this.getProp("defaultOpen");this.collectOptions(!0),this._adapter.updateLoadingKeyRefValue(new Set),this._adapter.updateLoadedKeyRefValue(new Set),n&&!this._isDisabled()&&this.open()}_setEmptyContentMinWidth(){const{style:n}=this.getProps();let r;n&&df(n.width)||n&&Es(n.width)&&!n.width.includes("%")?r=n.width:r=this._adapter.getTriggerWidth(),this._adapter.setEmptyContentMinWidth(r)}destroy(){this._adapter.unregisterClickOutsideHandler()}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filterTreeNode")}_notifyChange(n){const{onChangeWithObject:r,multiple:i}=this.getProps(),o=r?[]:"value";if(i){const a=[];n.forEach(s=>{const l=this.getItemPropPath(s,o);a.push(l)}),this._adapter.notifyChange(a)}else{const a=ll(n)||!("key"in n)?[]:this.getItemPropPath(n.key,o);this._adapter.notifyChange(a)}}_isLeaf(n){return this.getProp("loadData")?!!n.isLeaf:!n.children||!n.children.length}_clearInput(){this._adapter.updateInputValue("")}_notifyBlur(n){this._adapter.notifyBlur(n)}_notifyFocus(n){this._adapter.notifyFocus(n)}_isOptionDisabled(n,r){return xm([n],r,!0).some(o=>r[o].data.disabled)}getItemPropPath(n,r,i){const o=i||this.getState("keyEntities"),a=o[n];let s=[];if(a)if(a._notExist)s=a.path;else{const l=a.path;s=Array.isArray(r)?l.map(c=>o[c].data):l.map(c=>o[c].data[r])}return s}_getCacheValue(n){const{selectedKeys:r}=this.getStates(),i=Array.from(r)[0];let o;if(ta(n[i]))if(ect(i,"not-exist-")){const a=i.match(/not-exist-(\S*)/)[1];ta(n[a])?o=a:o=n[a].valuePath}else o=i;else o=n[i].valuePath;return o}collectOptions(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{treeData:r,value:i,defaultValue:o}=this.getProps(),a=dct(r);this._adapter.rePositionDropdown();let s;n?s=o:ta(a)||(s=this._getCacheValue(a));const l=this._isControlledComponent()?ll(i)?[]:i:s;rmr(l)?this.updateSelectedKey(l,a):this._adapter.updateStates({keyEntities:a})}handleValueChange(n){const{keyEntities:r}=this.getStates();this.updateSelectedKey(n,r)}_getClearSelectedKey(n){const r={},{searchPlaceholder:i,placeholder:o,multiple:a}=this.getProps();return r.selectedKeys=new Set([]),r.activeKeys=new Set([]),r.filteredKeys=new Set([]),n&&!a&&(r.inputPlaceHolder=i||o||"",r.inputValue=""),r}updateSelectedKey(n,r){const{changeOnSelect:i,onChangeWithObject:o,multiple:a}=this.getProps(),{activeKeys:s,loading:l,keyEntities:c,selectedKeys:u}=this.getStates(),d=this._adapter.getLoadingKeyRefValue(),f=this._isFilterable(),p=[...s].filter(b=>d.has(b)),h=imr(n),g=o&&AWe(h[0])?h.map(b=>b.value):h,v=smr(g);let y={};const _=v.length>0?v[0]:void 0,S=_?r[_]:void 0;if(S)if(i||this._isLeaf(S.data)){if(y.selectedKeys=new Set([_]),p.length||(y.activeKeys=new Set(S.path)),f&&!a){const b=this.renderDisplayText(_,r);y.inputPlaceHolder=b}}else Nf(v,Array.from(u))&&(y=this._getClearSelectedKey(f));else if(n&&n.length){const b=g[g.length-1],E=`not-exist-${b}`,w={data:{label:b,value:b},key:E,path:g,_notExist:!0};if(y.selectedKeys=new Set([E]),f&&!a){const C=this._defaultRenderText(g);y.inputPlaceHolder=C}r[E]=w}else if(l){y.keyEntities=Ghr(c,r),this._adapter.updateStates(y);return}else y=this._getClearSelectedKey(f);y.keyEntities=r,this._adapter.updateStates(y)}open(){const n=this._isFilterable(),{multiple:r}=this.getProps();this._adapter.openMenu(),n&&(this._clearInput(),!r&&this.toggle2SearchInput(!0)),this._isControlledComponent()&&this.reCalcActiveKeys(),this._adapter.notifyDropdownVisibleChange(!0),this._adapter.registerClickOutsideHandler(i=>this.close(i)),this._setEmptyContentMinWidth()}reCalcActiveKeys(){const{selectedKeys:n,activeKeys:r,keyEntities:i}=this.getStates(),o=[...n][0],a=i[o];if(!a)return;const s=new Set(a.path);Nf(s,r)||this._adapter.updateStates({activeKeys:s})}close(n,r){const{multiple:i}=this.getProps();if(this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.unregisterClickOutsideHandler(),this._isFilterable()){const{selectedKeys:o,isSearching:a}=this.getStates();let s="";r&&!i?s=this.renderDisplayText(r):o.size&&!i&&(s=this.renderDisplayText([...o][0])),this._adapter.updateStates({inputValue:s}),!i&&this.toggle2SearchInput(!1),!i&&this._adapter.updateFocusState(!1)}this._notifyBlur(n)}focus(){const{filterTreeNode:n}=this.getProps();n&&this._adapter.focusInput(),this._adapter.updateFocusState(!0)}blur(){const{filterTreeNode:n}=this.getProps();n&&this._adapter.blurInput(),this._adapter.updateFocusState(!1)}toggle2SearchInput(n){n?this._adapter.toggleInputShow(n,()=>this.focus()):this._adapter.toggleInputShow(n,()=>{})}handleItemClick(n,r){this._isDisabled()||(this.handleSingleSelect(n,r),this._adapter.rePositionDropdown())}handleItemHover(n,r){this._isDisabled()||this.handleShowNextByHover(r)}handleShowNextByHover(n){const{keyEntities:r}=this.getStates(),{data:i,key:o}=n,a=this._isLeaf(i),s=r[o].path;this._adapter.updateStates({activeKeys:new Set(s)}),a||this.notifyIfLoadData(n)}onItemCheckboxClick(n){this._isDisabled()||(this._handleMultipleSelect(n),this._adapter.rePositionDropdown())}handleClick(n){const r=this._isDisabled(),i=this._isFilterable(),{isOpen:o}=this.getStates();r||(o?o&&!i&&this.close(n):(this.open(),this._notifyFocus(n)))}handleSelectionEnterPress(n){gg(n)&&this.handleClick(n)}toggleHoverState(n){this._adapter.toggleHovering(n)}_defaultRenderText(n,r){const i=this.getProp("separator");return r&&typeof r=="function"?r(n):n.join(i)}renderDisplayText(n,r){const i=this.getProp("displayRender"),o=this.getProp("displayProp"),a=this.getItemPropPath(n,o,r);return this._defaultRenderText(a,i)}handleNodeLoad(n){const{data:r,key:i}=n,o=new Set(this._adapter.getLoadingKeyRefValue()),s=new Set(this._adapter.getLoadedKeyRefValue()).add(i),l=new Set([...o]);l.delete(i),this._adapter.notifyOnLoad(s,r),this._adapter.updateLoadingKeyRefValue(l),this._adapter.updateLoadedKeyRefValue(s),this._adapter.updateStates({loadingKeys:l,loadedKeys:s})}notifyIfLoadData(n){const{data:r,key:i}=n;if(this._adapter.updateStates({loading:!1}),!r.isLeaf&&!r.children&&this.getProp("loadData")){const o=this._adapter.getLoadedKeyRefValue(),a=new Set(this._adapter.getLoadingKeyRefValue());if(o.has(i)||a.has(i))return;this._adapter.updateStates({loading:!0});const{keyEntities:s}=this.getStates(),l=this.getItemPropPath(i,[],s),c=a.add(i);this._adapter.updateLoadingKeyRefValue(c),this._adapter.updateStates({loadingKeys:c}),this._adapter.notifyLoadData(l,this.handleNodeLoad.bind(this,n))}}handleSingleSelect(n,r){const{changeOnSelect:i,filterLeafOnly:o,multiple:a,enableLeafClick:s}=this.getProps(),{keyEntities:l,selectedKeys:c,isSearching:u}=this.getStates(),d=this._isFilterable(),{data:f,key:p}=r,h=this._isLeaf(f),g=l[p].path,v=[p],y=p!==[...c][0];if(!h&&!i&&!u){this._adapter.updateStates({activeKeys:new Set(g)}),this.notifyIfLoadData(r);return}if(a)this._adapter.updateStates({activeKeys:new Set(g)}),h&&s&&this.onItemCheckboxClick(r);else if(this._adapter.notifySelect(f.value),y){if(this._notifyChange(r),this.notifyIfLoadData(r),this._isControlledComponent()){this._adapter.updateStates({activeKeys:new Set(g)}),h&&this.close(n);return}this._adapter.updateStates({activeKeys:new Set(g),selectedKeys:new Set(v)});const _=this.renderDisplayText(p);d&&this._adapter.updateInputPlaceHolder(_),h?this.close(n,p):!o&&u&&this.close(n,p)}else this.close(n)}_handleMultipleSelect(n){const{checkRelation:r}=this.getProps();r===Ua.RELATED?this._handleRelatedMultipleSelect(n):r==="unRelated"&&this._handleUnRelatedMultipleSelect(n),this._adapter.updateStates({inputValue:""})}_handleRelatedMultipleSelect(n){const{key:r}=n,{checkedKeys:i,keyEntities:o,resolvedCheckedKeys:a}=this.getStates(),{autoMergeValue:s,max:l,disableStrictly:c,leafOnly:u}=this.getProps(),d=i.has(r),f=c?this.calcCheckedStatus(!d,r):!d,{checkedKeys:p,halfCheckedKeys:h}=c?this.calcNonDisabledCheckedKeys(r,f):this.calcCheckedKeys(r,f),g=Gse(s,u),v=g===Ua.LEAF_ONLY_MERGE_TYPE,y=g===Ua.NONE_MERGE_TYPE,_=new Set(Fh(p,o,v)),S=y?p:_;if(df(l)){if(y){if(i.size<p.size&&p.size>l){const b=[];p.forEach(E=>{b.push(o[E])}),this._adapter.notifyOnExceed(b);return}}else if(a.size<_.size&&_.size>l){const b=[];_.forEach(E=>{b.push(o[E])}),this._adapter.notifyOnExceed(b);return}}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:p,halfCheckedKeys:h,resolvedCheckedKeys:_}),this._notifyChange(S),f&&this._notifySelect(S)}_handleUnRelatedMultipleSelect(n){const{key:r}=n,{checkedKeys:i,keyEntities:o}=this.getStates(),{max:a}=this.getProps(),s=new Set(i);let l;if(i.has(r))s.delete(r),l=!1;else{if(df(a)&&i.size>=a){const u=[];i.forEach(d=>{u.push(o[d])}),this._adapter.notifyOnExceed(u);return}s.add(r),l=!0}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:s}),this._notifyChange(s),l&&this._notifySelect(s)}calcNonDisabledCheckedKeys(n,r){const{keyEntities:i,disabledKeys:o}=this.getStates(),a=new Set(this.getState("checkedKeys")),s=Fh(wm([n],i,!1),i,!0);if(!s.some(d=>o.has(d)))return this.calcCheckedKeys(n,r);const c=s.filter(d=>!o.has(d)),u=r?[...c,...a]:qj(Fh([...a],i,!0),c);return y$(u,i)}calcCheckedStatus(n,r){if(!n)return n;const{checkedKeys:i,keyEntities:o,disabledKeys:a}=this.getStates(),s=Fh(wm([r],o,!1),o,!0);return s.some(d=>a.has(d))?!s.filter(d=>!a.has(d)).every(d=>i.has(d)):n}_notifySelect(n){const{keyEntities:r}=this.getStates(),i=[];n.forEach(a=>{var s,l;const c=(l=(s=r[a])===null||s===void 0?void 0:s.data)===null||l===void 0?void 0:l.value;c!==void 0&&i.push(c)});const o=i.length===1?i[0]:i;this._adapter.notifySelect(o)}calcCheckedKeys(n,r){const{keyEntities:i}=this.getStates(),o=new Set(this.getState("checkedKeys")),a=new Set(this.getState("halfCheckedKeys"));return r?act(n,i,o,a):sct(n,i,o,a)}handleInputChange(n){this._adapter.updateInputValue(n);const{keyEntities:r}=this.getStates(),{treeNodeFilterProp:i,filterTreeNode:o,filterLeafOnly:a}=this.getProps();let s=[];n&&(s=Object.values(r).filter(l=>{const{key:c,_notExist:u,data:d}=l;if(u)return!1;const f=this.getItemPropPath(c,i);return omr(n,d,o,f)}).filter(l=>o&&!a||this._isLeaf(l)).map(l=>l.key)),this._adapter.updateStates({isSearching:!!n,filteredKeys:new Set(s)}),this._adapter.notifyOnSearch(n),this._adapter.rePositionDropdown()}handleClear(){const{isSearching:n}=this.getStates(),{searchPlaceholder:r,placeholder:i,multiple:o}=this.getProps(),a=this._isFilterable(),s=this._isControlledComponent(),l={};o?(l.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch(""),l.checkedKeys=new Set([]),l.halfCheckedKeys=new Set([]),l.selectedKeys=new Set([]),l.activeKeys=new Set([]),l.resolvedCheckedKeys=new Set([]),this._adapter.notifyChange([])):a&&n?(l.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")):(a&&(l.inputValue="",l.inputPlaceHolder=r||i||"",this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")),s||(l.selectedKeys=new Set([])),l.activeKeys=new Set([]),l.filteredKeys=new Set([]),this._adapter.notifyChange([])),this._adapter.updateStates(l),this._adapter.notifyClear(),this._adapter.rePositionDropdown()}handleClearEnterPress(n){gg(n)&&this.handleClear()}getRenderData(){const{keyEntities:n,isSearching:r}=this.getStates(),i=this._isFilterable();return r&&i?this.getFilteredData():Object.values(n).filter(o=>o.parentKey===null&&!o._notExist).sort((o,a)=>parseInt(o.ind,10)-parseInt(a.ind,10))}getFilteredData(){const{treeNodeFilterProp:n,filterSorter:r}=this.getProps(),{filteredKeys:i,keyEntities:o,inputValue:a}=this.getStates(),s=[];return[...i].forEach(c=>{const u=o[c];if(!u)return;const d=this.getItemPropPath(c,[]),f=d.map(h=>h[n]),p=this._isOptionDisabled(c,o);s.push({data:u.data,pathData:d,key:c,disabled:p,searchText:f})}),za(r)&&s.sort((c,u)=>r(c.pathData,u.pathData,a)),s}handleListScroll(n,r){const{activeKeys:i,keyEntities:o}=this.getStates(),a=[...i][i.size-1],s=a?fr(o,[a,"data"],null):null;this._adapter.notifyListScroll(n,{panelIndex:r,activeNode:s})}}var umr=l_,dmr=zp,fmr="[object Boolean]";function pmr(e){return e===!0||e===!1||dmr(e)&&umr(e)==fmr}var hmr=pmr;const gmr=Or(hmr),cF={PREFIX:`${ui}-checkbox`,INNER:`${ui}-checkbox-inner`,TEXT:`${ui}-checkbox-text`,INPUT:`${ui}-checkbox-input`,CHECKED:`${ui}-checkbox-checked`,DISABLED:`${ui}-checkbox-disabled`,BUTTON:`${ui}-checkbox-button`,WRAPPER:""},mmr={PREFIX:`${ui}-checkboxGroup`,INNER:`${ui}-checkboxGroup-inner`,TEXT:`${ui}-checkboxGroup-text`,INPUT:`${ui}-checkboxGroup-input`,CHECKED:`${ui}-checkboxGroup-checked`,DISABLED:`${ui}-checkboxGroup-disabled`},pm={DIRECTION_SET:["horizontal","vertical"],TYPE_DEFAULT:"default",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",DEFAULT_DIRECTION:"vertical"};class vmr extends tc{constructor(n){super(Object.assign({},n)),this.clickState=!1,this.handleFocusVisible=r=>{const{target:i}=r;try{if(this.clickState){this.clickState=!1;return}i.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{b0(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:n,extra:r,extraId:i,addonId:o}=this.getProps();n&&!o&&this._adapter.setAddonId(),r&&!i&&this._adapter.setExtraId()}notifyChange(n,r){const i=this._adapter.generateEvent(n,r);this._adapter.notifyChange(i)}handleChange(n){if(this.getProp("disabled"))return;if((n==null?void 0:n.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(n);return}const a=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(a,n):(this.setChecked(a),this.notifyChange(a,n))}handleChangeInGroup(n){const{value:r}=this.getProps(),a=!this._adapter.getGroupValue().includes(r),s=this._adapter.generateEvent(a,n);this._adapter.notifyChange(s),this._adapter.notifyGroupChange(s)}handleEnterPress(n){gg(n)&&this.handleChange(n)}setChecked(n){this._adapter.setNativeControlChecked(n)}destroy(){}}const Uve=V.createContext({});class fG extends m.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:n}=this.props;this.inputEntity.focus({preventScroll:n})}render(){const{indeterminate:n,checked:r,disabled:i,prefixCls:o,name:a,isPureCardType:s,addonId:l,extraId:c,focusInner:u,onInputFocus:d,onInputBlur:f}=this.props,p=o||cF.PREFIX,h=Ce({[`${p}-inner`]:!0,[`${p}-inner-checked`]:!!r,[`${p}-inner-pureCardType`]:s},cF.WRAPPER),g=Ce({[`${p}-inner-display`]:!0,[`${p}-focus`]:u,[`${p}-focus-border`]:u&&!r}),v=r?V.createElement(sfr,null):n?V.createElement(ofr,null):null,y={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":i,"aria-checked":r,"aria-labelledby":l,"aria-describedby":c||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:cF.INPUT,onChange:vr,checked:r,disabled:i,onFocus:d,onBlur:f};return a&&(y.name=a),V.createElement("span",{className:h},V.createElement("input",Object.assign({},y,{ref:_=>{this.inputEntity=_}})),V.createElement("span",{className:g},v))}}fG.contextType=Uve;fG.propTypes={"aria-describedby":ie.string,"aria-errormessage":ie.string,"aria-invalid":ie.bool,"aria-labelledby":ie.string,"aria-required":ie.bool,checked:ie.bool,disabled:ie.bool,onChange:ie.func,children:ie.node,grouped:ie.bool,value:ie.any,isPureCardType:ie.bool,addonId:ie.string,extraId:ie.string,focusInner:ie.bool,onInputFocus:ie.func,onInputBlur:ie.func,preventScroll:ie.bool};fG.defaultProps={onChange:vr};class G0 extends fl{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:n=>{this.setState({checked:n})},notifyChange:n=>{const{onChange:r}=this.props;r&&r(n)},generateEvent:(n,r)=>{const{props:i}=this;return{target:Object.assign(Object.assign({},i),{checked:n}),stopPropagation:()=>{r.stopPropagation()},preventDefault:()=>{r.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{r.nativeEvent&&typeof r.nativeEvent.stopImmediatePropagation=="function"&&r.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:n=>{this.context.checkboxGroup.onChange(n)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:Gj({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:Gj({prefix:"extra"})})},setFocusVisible:n=>{this.setState({focusVisible:n})},focusCheckboxEntity:()=>{this.focus()}})}constructor(n){super(n),this.handleChange=i=>this.foundation.handleChange(i),this.handleEnterPress=i=>this.foundation.handleEnterPress(i),this.handleFocusVisible=i=>{this.foundation.handleFocusVisible(i)},this.handleBlur=i=>{this.foundation.handleBlur()};const r=!1;this.state={checked:n.checked||n.defaultChecked||r,addonId:n.addonId,extraId:n.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new vmr(this.adapter)}componentDidUpdate(n){this.props.checked!==n.checked&&(ll(this.props.checked)?this.foundation.setChecked(!1):gmr(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:n,style:r,prefixCls:i,className:o,indeterminate:a,children:s,onMouseEnter:l,onMouseLeave:c,extra:u,value:d,role:f,tabIndex:p,id:h,type:g}=this.props,{checked:v,addonId:y,extraId:_,focusVisible:S}=this.state,b={checked:v,disabled:n},E=this.isInGroup();if(E){if(this.context.checkboxGroup.value){const k=(this.context.checkboxGroup.value||[]).includes(d);b.checked=k}this.context.checkboxGroup.disabled&&(b.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:M,isPureCardType:P}=this.context.checkboxGroup;b.isCardType=M,b.isPureCardType=P,b.name=this.context.checkboxGroup.name}else b.isPureCardType=g===pm.TYPE_PURECARD,b.isCardType=g===pm.TYPE_CARD||b.isPureCardType;const w=i||cF.PREFIX,C=b.isCardType||b.isPureCardType,x=Ce(w,{[`${w}-disabled`]:b.disabled,[`${w}-indeterminate`]:a,[`${w}-checked`]:b.checked,[`${w}-unChecked`]:!b.checked,[`${w}-cardType`]:b.isCardType,[`${w}-cardType_disabled`]:b.disabled&&b.isCardType,[`${w}-cardType_enable`]:!(b.disabled&&b.isCardType),[`${w}-cardType_checked`]:b.isCardType&&b.checked&&!b.disabled,[`${w}-cardType_checked_disabled`]:b.isCardType&&b.checked&&b.disabled,[o]:!!o,[`${w}-focus`]:S&&C}),T=Ce(`${w}-extra`,{[`${w}-cardType_extra_noChildren`]:b.isCardType&&!s});E&&this.context.checkboxGroup.name;const R=this.props["x-semi-children-alias"]||"children",O=()=>!s&&!u?null:V.createElement("div",{className:`${w}-content`},s?V.createElement("span",{id:y,className:`${w}-addon`,"x-semi-prop":R},s):null,u?V.createElement("div",{id:_,className:T,"x-semi-prop":"extra"},u):null);return V.createElement("span",Object.assign({role:f,tabIndex:p,style:r,className:x,id:h,onMouseEnter:l,onMouseLeave:c,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),V.createElement(fG,Object.assign({},this.props,b,{addonId:s&&y,extraId:u&&_,isPureCardType:b.isPureCardType,ref:M=>{this.checkboxEntity=M},focusInner:S&&!C,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),O())}}G0.contextType=Uve;G0.propTypes={"aria-describedby":ie.string,"aria-errormessage":ie.string,"aria-invalid":ie.bool,"aria-labelledby":ie.string,"aria-required":ie.bool,checked:ie.bool,defaultChecked:ie.bool,disabled:ie.bool,indeterminate:ie.bool,onChange:ie.func,value:ie.any,style:ie.object,className:ie.string,prefixCls:ie.string,onMouseEnter:ie.func,onMouseLeave:ie.func,extra:ie.node,index:ie.number,"aria-label":ie.string,tabIndex:ie.number,preventScroll:ie.bool,type:ie.string};G0.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:vr,onMouseEnter:vr,onMouseLeave:vr,type:"default"};G0.elementType="Checkbox";class Hve extends tc{static get checkboxGroupDefaultAdapter(){return{}}constructor(n){super(Object.assign(Object.assign({},Hve.checkboxGroupDefaultAdapter),n))}init(){const{defaultValue:n,value:r}=this.getProps();typeof n<"u"&&!Array.isArray(n)&&b0(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof r<"u"&&!Array.isArray(r)&&b0(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(n){this._adapter.notifyChange(n)}handleChange(n){const r=this.getState("value");let i=[];Array.isArray(r)||(i=[r]),n.target.checked?i=[...r,n.target.value]:i=r.filter((a,s)=>a!==n.target.value),"value"in this.getProps()?this.notifyChange(i):(this._adapter.updateGroupValue(i),this.notifyChange(i))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(n){Array.isArray(n)?this._adapter.updateGroupValue(n):(typeof n>"u"&&this._adapter.updateGroupValue([]),b0(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}class pG extends fl{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:n=>{this.setState({value:n})},notifyChange:n=>{this.props.onChange&&this.props.onChange(n)}})}constructor(n){super(n),this.state={value:n.value||n.defaultValue},this.foundation=new Hve(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(n){Nf(n.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(n){this.foundation.handleChange(n)}render(){const{children:n,options:r,prefixCls:i,direction:o,className:a,id:s,style:l,type:c,disabled:u}=this.props,d=c===pm.TYPE_PURECARD,f=c===pm.TYPE_CARD||d,p=i||mmr.PREFIX,h=Ce({[p]:!0,[`${p}-wrapper`]:!0,[`${p}-${o}`]:o,[`${p}-${o}-cardType`]:o&&f,[`${p}-${o}-pureCardType`]:o&&d},a),g=this.state.value.slice();let v;return r?v=(r||[]).map((y,_)=>typeof y=="string"?V.createElement(G0,{role:"listitem",key:_,disabled:this.props.disabled,value:y,prefixCls:i},y):V.createElement(G0,{role:"listitem",key:_,disabled:y.disabled||this.props.disabled,value:y.value,prefixCls:i,extra:y.extra,className:y.className,style:y.style,onChange:y.onChange},y.label)):n&&(v=V.Children.toArray(n).map((y,_)=>V.cloneElement(y,{key:_,role:"listitem"}))),V.createElement("div",Object.assign({id:s,role:"list","aria-label":this.props["aria-label"],className:h,style:l,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),V.createElement(Uve.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:g,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:f,isPureCardType:d}}},v))}}pG.propTypes={"aria-describedby":ie.string,"aria-errormessage":ie.string,"aria-invalid":ie.bool,"aria-labelledby":ie.string,"aria-required":ie.bool,defaultValue:ie.array,disabled:ie.bool,name:ie.string,options:ie.array,value:ie.array,onChange:ie.func,children:ie.node,prefixCls:ie.string,direction:ie.oneOf(pm.DIRECTION_SET),className:ie.string,type:ie.oneOf([pm.TYPE_DEFAULT,pm.TYPE_CARD,pm.TYPE_PURECARD]),style:ie.object};pG.defaultProps={disabled:!1,onChange:()=>{},type:pm.TYPE_DEFAULT,defaultValue:[],direction:pm.DEFAULT_DIRECTION};class Zj extends G0{}Zj.Group=pG;function ymr(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,OO(e,n)}var t3e=Number.isNaN||function(n){return typeof n=="number"&&n!==n};function _mr(e,n){return!!(e===n||t3e(e)&&t3e(n))}function bmr(e,n){if(e.length!==n.length)return!1;for(var r=0;r<e.length;r++)if(!_mr(e[r],n[r]))return!1;return!0}function cee(e,n){n===void 0&&(n=bmr);var r,i=[],o,a=!1;function s(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return a&&r===this&&n(l,i)||(o=e.apply(this,l),a=!0,r=this,i=l),o}return s}var Smr=typeof performance=="object"&&typeof performance.now=="function",n3e=Smr?function(){return performance.now()}:function(){return Date.now()};function r3e(e){cancelAnimationFrame(e.id)}function Emr(e,n){var r=n3e();function i(){n3e()-r>=n?e.call(null):o.id=requestAnimationFrame(i)}var o={id:requestAnimationFrame(i)};return o}var uee=-1;function i3e(e){if(e===void 0&&(e=!1),uee===-1||e){var n=document.createElement("div"),r=n.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(n),uee=n.offsetWidth-n.clientWidth,document.body.removeChild(n)}return uee}var Wx=null;function o3e(e){if(e===void 0&&(e=!1),Wx===null||e){var n=document.createElement("div"),r=n.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var i=document.createElement("div"),o=i.style;return o.width="100px",o.height="100px",n.appendChild(i),document.body.appendChild(n),n.scrollLeft>0?Wx="positive-descending":(n.scrollLeft=1,n.scrollLeft===0?Wx="negative":Wx="positive-ascending"),document.body.removeChild(n),Wx}return Wx}var Cmr=150,wmr=function(n,r){return n};function xmr(e){var n,r=e.getItemOffset,i=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return n=function(f){ymr(p,f);function p(g){var v;return v=f.call(this,g)||this,v._instanceProps=c(v.props,Tn(v)),v._outerRef=void 0,v._resetIsScrollingTimeoutId=null,v.state={instance:Tn(v),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof v.props.initialScrollOffset=="number"?v.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},v._callOnItemsRendered=void 0,v._callOnItemsRendered=cee(function(y,_,S,b){return v.props.onItemsRendered({overscanStartIndex:y,overscanStopIndex:_,visibleStartIndex:S,visibleStopIndex:b})}),v._callOnScroll=void 0,v._callOnScroll=cee(function(y,_,S){return v.props.onScroll({scrollDirection:y,scrollOffset:_,scrollUpdateWasRequested:S})}),v._getItemStyle=void 0,v._getItemStyle=function(y){var _=v.props,S=_.direction,b=_.itemSize,E=_.layout,w=v._getItemStyleCache(u&&b,u&&E,u&&S),C;if(w.hasOwnProperty(y))C=w[y];else{var x=r(v.props,y,v._instanceProps),T=o(v.props,y,v._instanceProps),R=S==="horizontal"||E==="horizontal",O=S==="rtl",M=R?x:0;w[y]=C={position:"absolute",left:O?void 0:M,right:O?M:void 0,top:R?0:x,height:R?"100%":T,width:R?T:"100%"}}return C},v._getItemStyleCache=void 0,v._getItemStyleCache=cee(function(y,_,S){return{}}),v._onScrollHorizontal=function(y){var _=y.currentTarget,S=_.clientWidth,b=_.scrollLeft,E=_.scrollWidth;v.setState(function(w){if(w.scrollOffset===b)return null;var C=v.props.direction,x=b;if(C==="rtl")switch(o3e()){case"negative":x=-b;break;case"positive-descending":x=E-S-b;break}return x=Math.max(0,Math.min(x,E-S)),{isScrolling:!0,scrollDirection:w.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!1}},v._resetIsScrollingDebounced)},v._onScrollVertical=function(y){var _=y.currentTarget,S=_.clientHeight,b=_.scrollHeight,E=_.scrollTop;v.setState(function(w){if(w.scrollOffset===E)return null;var C=Math.max(0,Math.min(E,b-S));return{isScrolling:!0,scrollDirection:w.scrollOffset<C?"forward":"backward",scrollOffset:C,scrollUpdateWasRequested:!1}},v._resetIsScrollingDebounced)},v._outerRefSetter=function(y){var _=v.props.outerRef;v._outerRef=y,typeof _=="function"?_(y):_!=null&&typeof _=="object"&&_.hasOwnProperty("current")&&(_.current=y)},v._resetIsScrollingDebounced=function(){v._resetIsScrollingTimeoutId!==null&&r3e(v._resetIsScrollingTimeoutId),v._resetIsScrollingTimeoutId=Emr(v._resetIsScrolling,Cmr)},v._resetIsScrolling=function(){v._resetIsScrollingTimeoutId=null,v.setState({isScrolling:!1},function(){v._getItemStyleCache(-1,null)})},v}p.getDerivedStateFromProps=function(v,y){return Tmr(v,y),d(v),null};var h=p.prototype;return h.scrollTo=function(v){v=Math.max(0,v),this.setState(function(y){return y.scrollOffset===v?null:{scrollDirection:y.scrollOffset<v?"forward":"backward",scrollOffset:v,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},h.scrollToItem=function(v,y){y===void 0&&(y="auto");var _=this.props,S=_.itemCount,b=_.layout,E=this.state.scrollOffset;v=Math.max(0,Math.min(v,S-1));var w=0;if(this._outerRef){var C=this._outerRef;b==="vertical"?w=C.scrollWidth>C.clientWidth?i3e():0:w=C.scrollHeight>C.clientHeight?i3e():0}this.scrollTo(a(this.props,v,y,E,this._instanceProps,w))},h.componentDidMount=function(){var v=this.props,y=v.direction,_=v.initialScrollOffset,S=v.layout;if(typeof _=="number"&&this._outerRef!=null){var b=this._outerRef;y==="horizontal"||S==="horizontal"?b.scrollLeft=_:b.scrollTop=_}this._callPropsCallbacks()},h.componentDidUpdate=function(){var v=this.props,y=v.direction,_=v.layout,S=this.state,b=S.scrollOffset,E=S.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var w=this._outerRef;if(y==="horizontal"||_==="horizontal")if(y==="rtl")switch(o3e()){case"negative":w.scrollLeft=-b;break;case"positive-ascending":w.scrollLeft=b;break;default:var C=w.clientWidth,x=w.scrollWidth;w.scrollLeft=x-C-b;break}else w.scrollLeft=b;else w.scrollTop=b}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&r3e(this._resetIsScrollingTimeoutId)},h.render=function(){var v=this.props,y=v.children,_=v.className,S=v.direction,b=v.height,E=v.innerRef,w=v.innerElementType,C=v.innerTagName,x=v.itemCount,T=v.itemData,R=v.itemKey,O=R===void 0?wmr:R,M=v.layout,P=v.outerElementType,k=v.outerTagName,$=v.style,U=v.useIsScrolling,z=v.width,D=this.state.isScrolling,B=S==="horizontal"||M==="horizontal",Y=B?this._onScrollHorizontal:this._onScrollVertical,q=this._getRangeToRender(),K=q[0],H=q[1],G=[];if(x>0)for(var Q=K;Q<=H;Q++)G.push(m.createElement(y,{data:T,key:O(Q,T),index:Q,isScrolling:U?D:void 0,style:this._getItemStyle(Q)}));var le=i(this.props,this._instanceProps);return m.createElement(P||k||"div",{className:_,onScroll:Y,ref:this._outerRefSetter,style:ft({position:"relative",height:b,width:z,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:S},$)},m.createElement(w||C||"div",{children:G,ref:E,style:{height:B?"100%":le,pointerEvents:D?"none":void 0,width:B?le:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var v=this.props.itemCount;if(v>0){var y=this._getRangeToRender(),_=y[0],S=y[1],b=y[2],E=y[3];this._callOnItemsRendered(_,S,b,E)}}if(typeof this.props.onScroll=="function"){var w=this.state,C=w.scrollDirection,x=w.scrollOffset,T=w.scrollUpdateWasRequested;this._callOnScroll(C,x,T)}},h._getRangeToRender=function(){var v=this.props,y=v.itemCount,_=v.overscanCount,S=this.state,b=S.isScrolling,E=S.scrollDirection,w=S.scrollOffset;if(y===0)return[0,0,0,0];var C=s(this.props,w,this._instanceProps),x=l(this.props,C,w,this._instanceProps),T=!b||E==="backward"?Math.max(1,_):1,R=!b||E==="forward"?Math.max(1,_):1;return[Math.max(0,C-T),Math.max(0,Math.min(y-1,x+R)),C,x]},p}(m.PureComponent),n.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var Tmr=function(n,r){n.children,n.direction,n.height,n.layout,n.innerTagName,n.outerTagName,n.width,r.instance},fct=xmr({getItemOffset:function(n,r){var i=n.itemSize;return r*i},getItemSize:function(n,r){var i=n.itemSize;return i},getEstimatedTotalSize:function(n){var r=n.itemCount,i=n.itemSize;return i*r},getOffsetForIndexAndAlignment:function(n,r,i,o,a,s){var l=n.direction,c=n.height,u=n.itemCount,d=n.itemSize,f=n.layout,p=n.width,h=l==="horizontal"||f==="horizontal",g=h?p:c,v=Math.max(0,u*d-g),y=Math.min(v,r*d),_=Math.max(0,r*d-g+d+s);switch(i==="smart"&&(o>=_-g&&o<=y+g?i="auto":i="center"),i){case"start":return y;case"end":return _;case"center":{var S=Math.round(_+(y-_)/2);return S<Math.ceil(g/2)?0:S>v+Math.floor(g/2)?v:S}case"auto":default:return o>=_&&o<=y?o:o<_?_:y}},getStartIndexForOffset:function(n,r){var i=n.itemCount,o=n.itemSize;return Math.max(0,Math.min(i-1,Math.floor(r/o)))},getStopIndexForStartIndex:function(n,r,i){var o=n.direction,a=n.height,s=n.itemCount,l=n.itemSize,c=n.layout,u=n.width,d=o==="horizontal"||c==="horizontal",f=r*l,p=d?u:a,h=Math.ceil((p+i-f)/l);return Math.max(0,Math.min(s-1,r+h-1))},initInstanceProps:function(n){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(n){n.itemSize}});const Omr=e=>{let{index:n,data:r,style:i}=e;const{visibleOptions:o,renderOption:a}=r,s=o[n];return a(s,n,i)},$o=cct.PREFIX_OPTION;class hG extends m.PureComponent{constructor(){var n;super(...arguments),n=this,this.onClick=(r,i)=>{const{onItemClick:o}=this.props;i.data.disabled||"disabled"in i&&i.disabled||o(r,i)},this.handleItemEnterPress=(r,i)=>{gg(r)&&this.onClick(r,i)},this.onHover=(r,i)=>{const{showNext:o,onItemHover:a}=this.props;i.data.disabled||o===Ua.SHOW_NEXT_BY_HOVER&&a(r,i)},this.onCheckboxChange=(r,i)=>{const{onItemCheckboxClick:o}=this.props;r.stopPropagation(),r.nativeEvent&&typeof r.nativeEvent.stopImmediatePropagation=="function"&&r.nativeEvent.stopImmediatePropagation(),o(i)},this.getItemStatus=r=>{const{activeKeys:i,selectedKeys:o,loadedKeys:a,loadingKeys:s}=this.props,l={active:!1,selected:!1,loading:!1};return i.has(r)&&(l.active=!0),o.has(r)&&(l.selected=!0),s.has(r)&&!a.has(r)&&(l.loading=!0),l},this.renderIcon=function(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const o=a=>a+(i?` ${$o}-icon-left`:"");switch(r){case"child":const{expandIcon:a}=n.props;return a||V.createElement(jlt,{className:o(`${$o}-icon ${$o}-icon-expand`)});case"tick":return V.createElement(Wj,{className:o(`${$o}-icon ${$o}-icon-active`)});case"loading":return V.createElement(lG,{wrapperClassName:o(`${$o}-spin-icon`)});case"empty":return V.createElement("span",{"aria-hidden":!0,className:o(`${$o}-icon ${$o}-icon-empty`)});default:return null}},this.highlight=r=>{const i=[],{keyword:o,separator:a}=this.props;return r.forEach((s,l)=>{typeof s=="string"&&ect(s,o)?s.split(o).forEach((c,u)=>{u>0&&i.push(V.createElement("span",{className:`${$o}-label-highlight`,key:`${u}-${l}`},o)),i.push(c)}):i.push(s),l!==r.length-1&&i.push(a)}),i},this.renderFlattenOptionItem=(r,i,o)=>{var a;const{multiple:s,selectedKeys:l,checkedKeys:c,halfCheckedKeys:u,keyword:d,filterRender:f,virtualize:p}=this.props,{searchText:h,key:g,disabled:v,pathData:y}=r,_=l.has(g),S=Ce($o,{[`${$o}-flatten`]:!f,[`${$o}-disabled`]:v,[`${$o}-select`]:_&&!s}),b=C=>{this.onClick(C,r)},E=C=>this.handleItemEnterPress(C,r),w=C=>this.onCheckboxChange(C,r);if(f){const C={className:S,inputValue:d,disabled:v,data:y,checkStatus:{checked:c.has(r.key),halfChecked:u.has(r.key)},selected:_,onClick:b,onCheck:w},x=f(C),T=p?{key:g,style:Object.assign(Object.assign({},(a=x.props.style)!==null&&a!==void 0?a:{}),o)}:{key:g};return V.cloneElement(x,T)}return V.createElement("li",{role:"menuitem",className:S,style:o,key:g,onClick:b,onKeyPress:E},V.createElement("span",{className:`${$o}-label`},!s&&this.renderIcon("empty"),s&&V.createElement(Zj,{onChange:w,disabled:v,indeterminate:u.has(r.key),checked:c.has(r.key),className:`${$o}-label-checkbox`}),this.highlight(h)))},this.renderFlattenOption=r=>{const{virtualize:i}=this.props;return V.createElement("ul",{className:`${$o}-list`,key:"flatten-list"},i?this.renderVirtualizeList(r):r.map(a=>this.renderFlattenOptionItem(a)))},this.renderVirtualizeList=r=>{var i;const{direction:o}=this.context,{virtualize:a}=this.props;return V.createElement(fct,{height:a.height,itemCount:r.length,itemSize:a.itemSize,itemData:{visibleOptions:r,renderOption:this.renderFlattenOptionItem},width:(i=a.width)!==null&&i!==void 0?i:"100%",style:{direction:o}},Omr)}}renderItem(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const{multiple:i,checkedKeys:o,halfCheckedKeys:a}=this.props;let s;const l=r.length;return r.push(V.createElement("ul",{role:"menu",className:`${$o}-list`,key:n[0].key,onScroll:c=>this.props.onListScroll(c,l)},n.map(c=>{const{data:u,key:d,parentKey:f}=c,{children:p,label:h,disabled:g,isLeaf:v}=u,{active:y,selected:_,loading:S}=this.getItemStatus(d),b=!!p&&p.length,E=b||this.props.loadData&&!v;y&&b&&(s=c);const w=Ce($o,{[`${$o}-active`]:y&&!_,[`${$o}-select`]:_&&!i,[`${$o}-disabled`]:g}),C=f?{"aria-owns":`cascaderItem-${f}`}:{};return V.createElement("li",Object.assign({role:"menuitem",id:`cascaderItem-${d}`,"aria-expanded":y,"aria-haspopup":!!E,"aria-disabled":g},C,{className:w,key:d,onClick:x=>{this.onClick(x,c)},onKeyPress:x=>this.handleItemEnterPress(x,c),onMouseEnter:x=>{this.onHover(x,c)}}),V.createElement("span",{className:`${$o}-label`},_&&!i&&this.renderIcon("tick"),!_&&!i&&this.renderIcon("empty"),i&&V.createElement(Zj,{onChange:x=>this.onCheckboxChange(x,c),disabled:g,indeterminate:a.has(c.key),checked:o.has(c.key),className:`${$o}-label-checkbox`}),V.createElement("span",null,h)),E?this.renderIcon(S?"loading":"child",!0):null)}))),s&&r.concat(this.renderItem(s.children,r)),r}renderEmpty(){const{emptyContent:n}=this.props;return n===null?null:V.createElement(z0,{componentName:"Cascader"},r=>V.createElement("ul",{className:`${$o} ${$o}-empty`,key:"empty-list"},V.createElement("span",{className:`${$o}-label`,"x-semi-prop":"emptyContent"},n||r.emptyText)))}render(){const{data:n,searchable:r}=this.props,{direction:i}=this.context,o=!n||!n.length;let a;const s=Ce({[`${$o}-lists`]:!0,[`${$o}-lists-rtl`]:i==="rtl",[`${$o}-lists-empty`]:o});return o?a=this.renderEmpty():a=r?this.renderFlattenOption(n):this.renderItem(n),V.createElement("div",{className:s},a)}}hG.contextType=Ng;hG.propTypes={data:ie.array,emptyContent:ie.node,searchable:ie.bool,onItemClick:ie.func,onItemHover:ie.func,multiple:ie.bool,showNext:ie.oneOf([Ua.SHOW_NEXT_BY_CLICK,Ua.SHOW_NEXT_BY_HOVER]),checkedKeys:ie.object,halfCheckedKeys:ie.object,onItemCheckboxClick:ie.func,separator:ie.string,keyword:ie.string,virtualize:ie.object,expandIcon:ie.node};hG.defaultProps={empty:!1};const pct={PREFIX:`${ui}-tag`},gN={TAG_SIZE:["default","small","large"],TAG_COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],TAG_TYPE:["light","solid","ghost"],AVATAR_SHAPE:["square","circle"]};var Rmr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Pc=pct.PREFIX,hct=gN.TAG_COLOR,gct=gN.TAG_SIZE,mct=gN.TAG_TYPE,Imr=gN.AVATAR_SHAPE;class mf extends m.Component{constructor(n){super(n),this.state={visible:!0},this.close=this.close.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}static getDerivedStateFromProps(n){return"visible"in n?{visible:n.visible}:null}setVisible(n){"visible"in this.props||this.setState({visible:n})}close(n,r,i){const{onClose:o}=this.props;n.stopPropagation(),n.nativeEvent.stopImmediatePropagation(),o&&o(r,n,i),!n.defaultPrevented&&this.setVisible(!1)}handleKeyDown(n){const{closable:r,onClick:i,onKeyDown:o}=this.props;switch(n.key){case"Backspace":case"Delete":r&&this.close(n,this.props.children,this.props.tagKey),H0(n);break;case"Enter":i(n),H0(n);break;case"Escape":n.target.blur();break}o&&o(n)}renderAvatar(){const{avatarShape:n,avatarSrc:r}=this.props;return V.createElement($R,{src:r,shape:n})}render(){const n=this.props,{tagKey:r,children:i,size:o,color:a,closable:s,visible:l,onClose:c,onClick:u,className:d,type:f,shape:p,avatarSrc:h,avatarShape:g,tabIndex:v,prefixIcon:y,suffixIcon:_}=n,S=Rmr(n,["tagKey","children","size","color","closable","visible","onClose","onClick","className","type","shape","avatarSrc","avatarShape","tabIndex","prefixIcon","suffixIcon"]),{visible:b}=this.state,E=u!==mf.defaultProps.onClick||s,w={role:"button",tabIndex:v||0,onKeyDown:this.handleKeyDown},C=Object.assign(Object.assign({},S),{onClick:u,tabIndex:v,className:Ce(Pc,{[`${Pc}-default`]:o==="default",[`${Pc}-small`]:o==="small",[`${Pc}-large`]:o==="large",[`${Pc}-square`]:p==="square",[`${Pc}-circle`]:p==="circle",[`${Pc}-${f}`]:f,[`${Pc}-${a}-${f}`]:a&&f,[`${Pc}-closable`]:s,[`${Pc}-invisible`]:!b,[`${Pc}-avatar-${g}`]:h},d)}),x=E?Object.assign(Object.assign({},C),w):C,T=s?V.createElement("div",{className:`${Pc}-close`,onClick:M=>this.close(M,i,r)},V.createElement(xve,{size:"small"})):null,R=Es(i),O=Ce(`${Pc}-content`,`${Pc}-content-${R?"ellipsis":"center"}`);return V.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||R?`${s?"Closable ":""}Tag: ${i}`:""},x),y?V.createElement("div",{className:`${Pc}-prefix-icon`},y):null,h?this.renderAvatar():null,V.createElement("div",{className:O},i),_?V.createElement("div",{className:`${Pc}-suffix-icon`},_):null,T)}}mf.defaultProps={size:gct[0],color:hct[0],closable:!1,type:mct[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};mf.propTypes={children:ie.node,tagKey:ie.oneOfType([ie.string,ie.number]),size:ie.oneOf(gct),color:ie.oneOf(hct),type:ie.oneOf(mct),closable:ie.bool,visible:ie.bool,onClose:ie.func,onClick:ie.func,prefixIcon:ie.node,suffixIcon:ie.node,style:ie.object,className:ie.string,avatarSrc:ie.string,avatarShape:ie.oneOf(Imr),"aria-label":ie.string};const Nmr={PREFIX:`${ui}-tagInput`},a3e={SIZE_SET:["large","default","small"],STATUS:["success","default","error","warning"]},b5=(e,n)=>{let r=[];if(Es(n)||df(n))r=e.split(n);else if(OWe(n)){const i=n[0];r=e;for(let o=1;o<n.length;o++)r=r.split(n[o]).join(i);r=r.split(i)}else r.push(e);return r};function Mmr(e,n,r){const i=e.slice();return i.splice(r<0?i.length+r:r,0,i.splice(n,1)[0]),i}class Pmr extends tc{constructor(n){super(Object.assign({},n)),this.handleInputChange=r=>{const{value:i}=r.target,{entering:o}=this.getStates();o?this._onInputChange(i,r):this._checkInputChangeValid(i)&&this._onInputChange(i,r)},this.handleInputCompositionStart=r=>{const{maxLength:i}=this.getProps();df(i)&&this._adapter.setEntering(!0)},this.handleInputCompositionEnd=r=>{const{value:i}=r.target,{maxLength:o,onInputExceed:a,separator:s}=this.getProps();if(!df(o))return;this._adapter.setEntering(!1);let l=!0;const c=b5(i,s);let u=0;for(;u<c.length;u++)if(c[u].length>o){l=!1,za(a)&&a(i);break}if(l)this._adapter.setInputValue(i);else{const d=c.slice(0,u);u<c.length&&d.push(c[u].slice(0,o)),this._adapter.setInputValue(d.join(s))}},this._checkInputChangeValid=r=>{const{maxLength:i,onInputExceed:o,separator:a}=this._adapter.getProps(),{inputValue:s}=this._adapter.getStates();let l=!0;if(df(i)){const c=b5(r,a),u=b5(s,a),d=Math.max(c.length,u.length);for(let f=0;f<d;f++)if(!ll(c[f])&&(ll(u[f])||c[f].length>u[f].length)&&c[f].length>i){l=!1,za(o)&&o(r);break}}return l},this.handleKeyDown=r=>{const{inputValue:i,tagsArray:o}=this._adapter.getStates(),a=r.keyCode;a===Vse.ENTER&&(r.preventDefault(),i!==""&&this._handleAddTags(r));const{length:s}=o;if(a===Vse.BACKSPACE&&i===""&&s>0){const l=o.slice(0,s-1),c=o[s-1];this._onRemove(l,c,s-1)}this._adapter.notifyKeyDown(r)}}_handleAddTags(n){const{separator:r,max:i,onExceed:o,allowDuplicates:a}=this._adapter.getProps(),{inputValue:s,tagsArray:l}=this._adapter.getStates();let c=b5(s,r);c=c.filter((d,f)=>!a&&(l.includes(d)||c.indexOf(d)!==f)?!1:Es(d)&&d.trim()!=="");let u=l.concat(c);df(i)&&u.length>i&&(za(o)&&o(u),u=u.slice(0,i),c=c.slice(0,i-l.length)),c.length>0&&this._onAdd(u,c),this._onInputChange("",n)}handleInputBlur(n){const{addOnBlur:r}=this._adapter.getProps();r===!0&&this._handleAddTags(n),this._adapter.setFocusing(!1),this._adapter.notifyBlur(n)}handleInputFocus(n){this._adapter.setFocusing(!0),this._adapter.notifyFocus(n)}handleClearEnterPress(n){gg(n)&&this.handleClearBtn(n)}handleClearBtn(n){const{inputValue:r,tagsArray:i}=this._adapter.getStates();i.length>0&&(this._adapter.setTagsArray([]),this._adapter.notifyTagChange([])),r.length>0&&this._onInputChange("",n),n.stopPropagation()}handleTagClose(n){const{tagsArray:r}=this._adapter.getStates(),i=[...r];i.splice(n,1);const o=r[n];this._onRemove(i,o,n)}handleInputMouseEnter(){this._adapter.setHovering(!0)}handleInputMouseLeave(){this._adapter.setHovering(!1)}handleClick(n){const{disabled:r}=this.getProps();if(r)return;this._adapter.getClickOutsideHandler()||(this._adapter.setActive(!0),this._adapter.registerClickOutsideHandler(o=>this.clickOutsideCallBack()))}clickOutsideCallBack(){this._adapter.unregisterClickOutsideHandler(),this._adapter.setActive(!1)}handleClickPrefixOrSuffix(n){const{disabled:r}=this._adapter.getProps(),{isFocus:i}=this._adapter.getStates();!r&&!i&&this._adapter.toggleFocusing(!0)}handlePreventMouseDown(n){n&&za(n.preventDefault)&&n.preventDefault()}_onRemove(n,r,i){this._isControlledComponent()||this._adapter.setTagsArray(n),this._adapter.notifyTagChange(n),this._adapter.notifyTagRemove(r,i)}_onAdd(n,r){this._isControlledComponent()||this._adapter.setTagsArray(n),this._adapter.notifyTagChange(n),this._adapter.notifyTagAdd(r)}_onInputChange(n,r){this._adapter.setInputValue(n),this._adapter.notifyInputChange(n,r)}handleSortEnd(n){const{oldIndex:r,newIndex:i}=n,{tagsArray:o}=this.getStates(),a=Mmr(o,r,i);this._isControlledComponent()||this._adapter.setTagsArray(a),this._adapter.notifyTagChange(a)}}const Amr="semi-sortable";function Dmr(e){return V.createElement("div",Object.assign({style:{overflow:"auto"}},e))}const kmr={coordinateGetter:gTn};function Lmr(e){let{items:n,onSortEnd:r,adjustScale:i,renderItem:o,transition:a,collisionDetection:s=Wwn,strategy:l=fpe,useDragOverlay:c=!0,dragOverlayCls:u,container:d=Dmr,prefix:f=Amr}=e;const[p,h]=m.useState(null),g=Bqe(x6(spe),x6(Zqe),x6(ope,kmr)),v=m.useCallback(E=>n.indexOf(E),[n]),y=m.useMemo(()=>p?v(p):-1,[v,p]),_=m.useCallback(E=>{let{active:w}=E;w&&h(w.id)},[]),S=m.useCallback(E=>{let{over:w}=E;if(h(null),w){const C=v(w.id);y!==C&&r({oldIndex:y,newIndex:C})}},[y,v,r]),b=m.useCallback(()=>{h(null)},[]);return V.createElement(iKe,{sensors:g,collisionDetection:s,onDragStart:_,onDragEnd:S,onDragCancel:b,autoScroll:{order:BA.ReversedTreeOrder}},V.createElement(oTn,{items:n,strategy:l},V.createElement(d,null,n.map((E,w)=>V.createElement($mr,{key:E,id:E,index:w,renderItem:o,useDragOverlay:c,prefix:f,transition:a})))),c?Us.createPortal(V.createElement(aKe,{adjustScale:i,style:{zIndex:void 0},className:u},p?o({id:p,sortableHandle:E=>E}):null),document.body):null)}function $mr(e){let{animateLayoutChanges:n,id:r,renderItem:i,prefix:o,transition:a}=e;const{listeners:s,setNodeRef:l,transform:c,transition:u,active:d,isOver:f,attributes:p}=fTn({id:r,animateLayoutChanges:n,transition:a}),h=m.useCallback(y=>()=>V.createElement("span",Object.assign({},s,{style:{lineHeight:0},onMouseDown:_=>{s.onMouseDown(_),_.preventDefault(),_.stopPropagation()}}),V.createElement(y,null)),[s]),g=Ce(`${o}-sortable-item`,{[`${o}-sortable-item-over`]:f,[`${o}-sortable-item-active`]:(d==null?void 0:d.id)===r}),v=m.useMemo(()=>BC(a)?void 0:{transform:Np.Transform.toString(Object.assign(Object.assign({},c),{scaleX:1,scaleY:1})),transition:u},[a,c,u]);return V.createElement("div",Object.assign({ref:l,style:v,className:g},p),i({id:r,sortableHandle:h}))}var Fmr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Zi=Nmr.PREFIX;function Bmr(e){return V.createElement("div",Object.assign({className:`${Zi}-sortable-list`},e))}class gG extends fl{constructor(n){super(n),this.handleInputChange=r=>{this.foundation.handleInputChange(r)},this.handleKeyDown=r=>{this.foundation.handleKeyDown(r)},this.handleInputFocus=r=>{this.foundation.handleInputFocus(r)},this.handleInputBlur=r=>{this.foundation.handleInputBlur(r)},this.handleClearBtn=r=>{this.foundation.handleClearBtn(r)},this.handleClearEnterPress=r=>{this.foundation.handleClearEnterPress(r)},this.handleTagClose=r=>{this.foundation.handleTagClose(r)},this.handleInputMouseLeave=r=>{this.foundation.handleInputMouseLeave()},this.handleClick=r=>{this.foundation.handleClick(r)},this.handleInputMouseEnter=r=>{this.foundation.handleInputMouseEnter()},this.handleClickPrefixOrSuffix=r=>{this.foundation.handleClickPrefixOrSuffix(r)},this.handlePreventMouseDown=r=>{this.foundation.handlePreventMouseDown(r)},this.getAllTags=()=>{const{tagsArray:r}=this.state;return r.map((i,o)=>this.renderTag(i,o))},this.renderTag=(r,i,o)=>{const{size:a,disabled:s,renderTagItem:l,showContentTooltip:c,draggable:u}=this.props,{active:d}=this.state,f=d&&u,p=Ce(`${Zi}-wrapper-tag`,{[`${Zi}-wrapper-tag-size-${a}`]:a,[`${Zi}-wrapper-tag-icon`]:f}),h=Ce(`${Zi}-wrapper-typo`,{[`${Zi}-wrapper-typo-disabled`]:s}),g=Ce({[`${Zi}-drag-item`]:f,[`${Zi}-wrapper-tag-icon`]:f}),v=o&&o(()=>V.createElement(zlt,{className:`${Zi}-drag-handler`})),y=f?r:`${i}${r}`,_=()=>{!s&&this.handleTagClose(i)};return za(l)?V.createElement("div",{className:g,key:y},f&&o?V.createElement(v,null):null,l(r,i,_)):V.createElement(mf,{className:p,color:"white",size:a==="small"?"small":"large",type:"light",onClose:_,closable:!s,key:y,visible:!0,"aria-label":`${s?"":"Closable "}Tag: ${r}`},f&&o?V.createElement(v,null):null,V.createElement(sG,{className:h,ellipsis:{showTooltip:c,rows:1}},r))},this.renderSortTag=r=>{const{id:i,sortableHandle:o}=r,{tagsArray:a}=this.state,s=a.indexOf(i);return this.renderTag(i,s,o)},this.onSortEnd=r=>{this.foundation.handleSortEnd(r)},this.handleInputCompositionStart=r=>{this.foundation.handleInputCompositionStart(r)},this.handleInputCompositionEnd=r=>{this.foundation.handleInputCompositionEnd(r)},this.foundation=new Pmr(this.adapter),this.state={tagsArray:n.defaultValue||[],inputValue:"",focusing:!1,hovering:!1,active:!1,entering:!1},this.inputRef=V.createRef(),this.tagInputRef=V.createRef(),this.clickOutsideHandler=null}static getDerivedStateFromProps(n,r){const{value:i,inputValue:o}=n,{tagsArray:a}=r;let s;return OWe(i)?s=i:"value"in n&&!i?s=[]:s=a,{tagsArray:s,inputValue:Es(o)?o:r.inputValue}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setInputValue:n=>{this.setState({inputValue:n})},setTagsArray:n=>{this.setState({tagsArray:n})},setFocusing:n=>{this.setState({focusing:n})},toggleFocusing:n=>{const{preventScroll:r}=this.props,i=this.inputRef&&this.inputRef.current;n?i&&i.focus({preventScroll:r}):i&&i.blur(),this.setState({focusing:n})},setHovering:n=>{this.setState({hovering:n})},setActive:n=>{this.setState({active:n})},setEntering:n=>{this.setState({entering:n})},getClickOutsideHandler:()=>this.clickOutsideHandler,notifyBlur:n=>{this.props.onBlur(n)},notifyFocus:n=>{this.props.onFocus(n)},notifyInputChange:(n,r)=>{this.props.onInputChange(n,r)},notifyTagChange:n=>{this.props.onChange(n)},notifyTagAdd:n=>{this.props.onAdd(n)},notifyTagRemove:(n,r)=>{this.props.onRemove(n,r)},notifyKeyDown:n=>{this.props.onKeyDown(n)},registerClickOutsideHandler:n=>{const r=i=>{const o=this.tagInputRef&&this.tagInputRef.current,a=i.target,s=i.composedPath&&i.composedPath()||[a];o&&!o.contains(a)&&!s.includes(o)&&n(i)};this.clickOutsideHandler=r,document.addEventListener("click",r,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("click",this.clickOutsideHandler,!1),this.clickOutsideHandler=null}})}componentDidMount(){const{disabled:n,autoFocus:r,preventScroll:i}=this.props;!n&&r&&(this.inputRef.current.focus({preventScroll:i}),this.foundation.handleClick()),this.foundation.init()}renderClearBtn(){const{hovering:n,tagsArray:r,inputValue:i}=this.state,{showClear:o,disabled:a,clearIcon:s}=this.props,l=Ce(`${Zi}-clearBtn`,{[`${Zi}-clearBtn-invisible`]:!n||i===""&&r.length===0||a});return o?V.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TagInput value",className:l,onClick:c=>this.handleClearBtn(c),onKeyPress:c=>this.handleClearEnterPress(c)},s||V.createElement(iG,null)):null}renderPrefix(){const{prefix:n,insetLabel:r,insetLabelId:i}=this.props,o=n||r;if(BC(o)||ll(o))return null;const a=Ce(`${Zi}-prefix`,{[`${Zi}-inset-label`]:r,[`${Zi}-prefix-text`]:o&&Es(o),[`${Zi}-prefix-icon`]:of(o)});return V.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:i,"x-semi-prop":"prefix"},o)}renderSuffix(){const{suffix:n}=this.props;if(BC(n)||ll(n))return null;const r=Ce(`${Zi}-suffix`,{[`${Zi}-suffix-text`]:n&&Es(n),[`${Zi}-suffix-icon`]:of(n)});return V.createElement("div",{className:r,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},n)}renderTags(){const{disabled:n,maxTagCount:r,showRestTagsPopover:i,restTagsPopoverProps:o={},draggable:a,expandRestTagsOnClick:s}=this.props,{tagsArray:l,active:c}=this.state,u=Ce(`${Zi}-wrapper-n`,{[`${Zi}-wrapper-n-disabled`]:n}),d=this.getAllTags();let f=[],p=[...d];(!c||!s)&&r&&r<d.length&&(p=d.slice(0,r),f=d.slice(r));const h=V.createElement("span",{className:u},"+",l.length-r),g=d.map((v,y)=>({item:v,key:l[y]}));return c&&a&&g.length>0?V.createElement(Lmr,{items:l,onSortEnd:this.onSortEnd,renderItem:this.renderSortTag,container:Bmr,prefix:Zi,transition:null,dragOverlayCls:`${Zi}-right-item-drag-item-move`}):V.createElement(V.Fragment,null,p,f.length>0&&(i?V.createElement(wu,Object.assign({content:f,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},o),h):h))}blur(){this.inputRef.current.blur(),this.foundation.clickOutsideCallBack()}focus(){const{preventScroll:n,disabled:r}=this.props;this.inputRef.current.focus({preventScroll:n}),r||this.foundation.handleClick()}render(){const n=this.props,{size:r,style:i,className:o,disabled:a,placeholder:s,validateStatus:l,prefix:c,insetLabel:u,suffix:d}=n,f=Fmr(n,["size","style","className","disabled","placeholder","validateStatus","prefix","insetLabel","suffix"]),{focusing:p,hovering:h,tagsArray:g,inputValue:v,active:y}=this.state,_=Ce(Zi,o,{[`${Zi}-focus`]:p||y,[`${Zi}-disabled`]:a,[`${Zi}-hover`]:h&&!a,[`${Zi}-error`]:l==="error",[`${Zi}-warning`]:l==="warning",[`${Zi}-small`]:r==="small",[`${Zi}-large`]:r==="large",[`${Zi}-with-prefix`]:!!c||!!u,[`${Zi}-with-suffix`]:!!d}),S=Ce(`${Zi}-wrapper-input`,`${Zi}-wrapper-input-${r}`),b=Ce(`${Zi}-wrapper`);return V.createElement("div",Object.assign({ref:this.tagInputRef,style:i,className:_,"aria-disabled":a,"aria-label":this.props["aria-label"],"aria-invalid":l==="error",onMouseEnter:E=>{this.handleInputMouseEnter(E)},onMouseLeave:E=>{this.handleInputMouseLeave(E)},onClick:E=>{this.handleClick(E)}},this.getDataAttr(f)),this.renderPrefix(),V.createElement("div",{className:b},this.renderTags(),V.createElement(Hy,{"aria-label":"input value",ref:this.inputRef,className:S,disabled:a,value:v,size:r,placeholder:g.length===0?s:"",onKeyDown:E=>{this.handleKeyDown(E)},onChange:(E,w)=>{this.handleInputChange(w)},onBlur:E=>{this.handleInputBlur(E)},onFocus:E=>{this.handleInputFocus(E)},onCompositionStart:this.handleInputCompositionStart,onCompositionEnd:this.handleInputCompositionEnd})),this.renderClearBtn(),this.renderSuffix())}}gG.propTypes={children:ie.node,clearIcon:ie.node,style:ie.object,className:ie.string,disabled:ie.bool,allowDuplicates:ie.bool,max:ie.number,maxTagCount:ie.number,maxLength:ie.number,showRestTagsPopover:ie.bool,restTagsPopoverProps:ie.object,showContentTooltip:ie.oneOfType([ie.shape({type:ie.string,opts:ie.object}),ie.bool]),defaultValue:ie.array,value:ie.array,inputValue:ie.string,placeholder:ie.string,separator:ie.oneOfType([ie.string,ie.array]),showClear:ie.bool,addOnBlur:ie.bool,draggable:ie.bool,expandRestTagsOnClick:ie.bool,autoFocus:ie.bool,renderTagItem:ie.func,onBlur:ie.func,onFocus:ie.func,onChange:ie.func,onInputChange:ie.func,onExceed:ie.func,onInputExceed:ie.func,onAdd:ie.func,onRemove:ie.func,onKeyDown:ie.func,size:ie.oneOf(a3e.SIZE_SET),validateStatus:ie.oneOf(a3e.STATUS),prefix:ie.oneOfType([ie.string,ie.node]),suffix:ie.oneOfType([ie.string,ie.node]),"aria-label":ie.string,preventScroll:ie.bool};gG.defaultProps={showClear:!1,addOnBlur:!1,allowDuplicates:!0,showRestTagsPopover:!0,autoFocus:!1,draggable:!1,expandRestTagsOnClick:!0,showContentTooltip:!0,separator:",",size:"default",validateStatus:"default",onBlur:vr,onFocus:vr,onChange:vr,onInputChange:vr,onExceed:vr,onInputExceed:vr,onAdd:vr,onRemove:vr,onKeyDown:vr};const Fi=cct.PREFIX,jmr=0;class FR extends fl{constructor(n){super(n),this.search=r=>{this.handleInputChange(r)},this.handleInputChange=r=>{this.foundation.handleInputChange(r)},this.handleTagRemoveInTrigger=r=>{this.foundation.handleTagRemoveInTrigger(r)},this.handleTagClose=(r,i,o)=>{i.preventDefault(),this.foundation.handleTagRemoveByKey(o)},this.renderTagItem=(r,i)=>{const{keyEntities:o,disabledKeys:a}=this.state,{size:s,disabled:l,displayProp:c,displayRender:u,disableStrictly:d}=this.props;if(o[r]){const f=l||o[r].data.disabled||d&&a.has(r),p=Ce(`${Fi}-selection-tag`,{[`${Fi}-selection-tag-disabled`]:f});return za(u)?u(o[r],i):V.createElement(mf,{size:s==="default"?"large":s,key:`tag-${r}-${i}`,color:"white",tagKey:r,className:p,closable:!0,onClose:this.handleTagClose},o[r].data[c])}return null},this.onRemoveInTagInput=r=>{this.foundation.handleTagRemoveByKey(r)},this.handleItemClick=(r,i)=>{this.foundation.handleItemClick(r,i)},this.handleItemHover=(r,i)=>{this.foundation.handleItemHover(r,i)},this.onItemCheckboxClick=r=>{this.foundation.onItemCheckboxClick(r)},this.handleListScroll=(r,i)=>{this.foundation.handleListScroll(r,i)},this.renderContent=()=>{const{inputValue:r,isSearching:i,activeKeys:o,selectedKeys:a,checkedKeys:s,halfCheckedKeys:l,loadedKeys:c,loadingKeys:u}=this.state,{filterTreeNode:d,dropdownClassName:f,dropdownStyle:p,loadData:h,emptyContent:g,separator:v,topSlot:y,bottomSlot:_,showNext:S,multiple:b,filterRender:E,virtualizeInSearch:w,expandIcon:C}=this.props,x=!!d&&i,T=Ce(f,`${Fi}-popover`),R=this.foundation.getRenderData(),M=!R||!R.length?Object.assign(Object.assign({},p),{minWidth:this.state.emptyContentMinWidth}):p;return V.createElement("div",{className:T,role:"listbox",style:M,onKeyDown:this.foundation.handleKeyDown},y,V.createElement(hG,{activeKeys:o,selectedKeys:a,separator:v,loadedKeys:c,loadingKeys:u,onItemClick:this.handleItemClick,onItemHover:this.handleItemHover,showNext:S,onItemCheckboxClick:this.onItemCheckboxClick,onListScroll:this.handleListScroll,searchable:x,keyword:r,emptyContent:g,loadData:h,data:R,multiple:b,checkedKeys:s,halfCheckedKeys:l,filterRender:E,virtualize:w,expandIcon:C}),_)},this.renderPlusN=r=>{const{disabled:i,showRestTagsPopover:o,restTagsPopoverProps:a}=this.props,s=Ce(`${Fi}-selection-n`,{[`${Fi}-selection-n-disabled`]:i}),l=V.createElement("span",{className:s},"+",r.length);return o?V.createElement(wu,Object.assign({content:r,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},a),l):l},this.renderMultipleTags=()=>{const{autoMergeValue:r,maxTagCount:i,checkRelation:o}=this.props,{checkedKeys:a,resolvedCheckedKeys:s}=this.state,l=this.mergeType===Ua.NONE_MERGE_TYPE||o===Ua.UN_RELATED?a:s,c=[],u=[];return[...l].forEach((d,f)=>{const p=!df(i)||i>=f+1,h=this.renderTagItem(d,f);p?c.push(h):u.push(h)}),V.createElement(V.Fragment,null,c,!ta(u)&&this.renderPlusN(u))},this.renderDisplayText=()=>{const{displayProp:r,separator:i,displayRender:o}=this.props,{selectedKeys:a}=this.state;let s="";if(a.size){const l=this.foundation.getItemPropPath([...a][0],r);o&&typeof o=="function"?s=o(l):s=l.map((c,u)=>V.createElement(m.Fragment,{key:`${c}-${u}`},u<l.length-1?V.createElement(V.Fragment,null,c,i):c))}return s},this.renderSelectContent=()=>{const{placeholder:r,filterTreeNode:i,multiple:o,searchPosition:a}=this.props,{checkedKeys:s}=this.state;if(!(!!i&&a===Ua.SEARCH_POSITION_TRIGGER)){if(o)return s.size===0?V.createElement("span",{className:`${Fi}-selection-placeholder`},r):this.renderMultipleTags();{const u=this.renderDisplayText(),d=Ce({[`${Fi}-selection-placeholder`]:!u});return V.createElement("span",{className:d},u||r)}}return o?this.renderTagInput():this.renderInput()},this.renderSuffix=()=>{const{suffix:r}=this.props,i=Ce({[`${Fi}-suffix`]:!0,[`${Fi}-suffix-text`]:r&&Es(r),[`${Fi}-suffix-icon`]:of(r)});return V.createElement("div",{className:i,"x-semi-prop":"suffix"},r)},this.renderPrefix=()=>{const{prefix:r,insetLabel:i,insetLabelId:o}=this.props,a=r||i,s=Ce({[`${Fi}-prefix`]:!0,[`${Fi}-inset-label`]:i,[`${Fi}-prefix-text`]:a&&Es(a),[`${Fi}-prefix-icon`]:of(a)});return V.createElement("div",{className:s,id:o,"x-semi-prop":"prefix,insetLabel"},a)},this.renderCustomTrigger=()=>{var r;const{disabled:i,triggerRender:o,multiple:a}=this.props,{selectedKeys:s,inputValue:l,inputPlaceHolder:c,resolvedCheckedKeys:u,checkedKeys:d,keyEntities:f}=this.state;let p;return a?this.mergeType===Ua.NONE_MERGE_TYPE?(p=new Set,d.forEach(h=>{var g;p.add((g=f[h])===null||g===void 0?void 0:g.pos)})):(p=new Set,u.forEach(h=>{var g;p.add((g=f[h])===null||g===void 0?void 0:g.pos)})):p=(r=f[[...s][0]])===null||r===void 0?void 0:r.pos,V.createElement(Dve,{value:p,inputValue:l,onChange:this.handleInputChange,onClear:this.handleClear,placeholder:c,disabled:i,triggerRender:o,componentName:"Cascader",componentProps:Object.assign({},this.props),onSearch:this.handleInputChange,onRemove:this.handleTagRemoveInTrigger})},this.handleMouseOver=()=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=()=>{this.foundation.toggleHoverState(!1)},this.handleClear=r=>{r&&r.stopPropagation(),this.foundation.handleClear()},this.handleClearEnterPress=r=>{r&&r.stopPropagation(),this.foundation.handleClearEnterPress(r)},this.showClearBtn=()=>{const{showClear:r,disabled:i,multiple:o}=this.props,{selectedKeys:a,isOpen:s,isHovering:l,checkedKeys:c,inputValue:u}=this.state,d=a.size,f=o&&c.size;return r&&(u||d||f)&&!i&&(s||l)},this.renderClearBtn=()=>{const r=Ce(`${Fi}-clearbtn`),{clearIcon:i}=this.props;return this.showClearBtn()?V.createElement("div",{className:r,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress,role:"button",tabIndex:0},i||V.createElement(iG,null)):null},this.renderArrow=()=>{const{arrowIcon:r}=this.props;return this.showClearBtn()?null:r?V.createElement("div",{className:Ce(`${Fi}-arrow`),"x-semi-prop":"arrowIcon"},r):null},this.renderSelection=()=>{const{disabled:r,multiple:i,filterTreeNode:o,style:a,size:s,className:l,validateStatus:c,prefix:u,suffix:d,insetLabel:f,triggerRender:p,showClear:h,id:g,borderless:v}=this.props,{isOpen:y,isFocus:_,isInput:S,checkedKeys:b}=this.state,E=!!o,w=typeof p=="function",C=w?Ce(l):Ce(Fi,l,{[`${Fi}-borderless`]:v,[`${Fi}-focus`]:_||y&&!S,[`${Fi}-disabled`]:r,[`${Fi}-single`]:!0,[`${Fi}-filterable`]:E,[`${Fi}-error`]:c==="error",[`${Fi}-warning`]:c==="warning",[`${Fi}-small`]:s==="small",[`${Fi}-large`]:s==="large",[`${Fi}-with-prefix`]:u||f,[`${Fi}-with-suffix`]:d}),x=h?{onMouseEnter:()=>this.handleMouseOver(),onMouseLeave:()=>this.handleMouseLeave()}:{},T=Ce(`${Fi}-selection`,{[`${Fi}-selection-multiple`]:i&&!ta(b)}),R=w?this.renderCustomTrigger():[V.createElement(m.Fragment,{key:"prefix"},u||f?this.renderPrefix():null),V.createElement(m.Fragment,{key:"selection"},V.createElement("div",{className:T},this.renderSelectContent())),V.createElement(m.Fragment,{key:"suffix"},d?this.renderSuffix():null),V.createElement(m.Fragment,{key:"clearbtn"},this.renderClearBtn()),V.createElement(m.Fragment,{key:"arrow"},this.renderArrow())];return V.createElement("div",Object.assign({className:C,style:a,ref:this.triggerRef,onClick:O=>this.foundation.handleClick(O),onKeyPress:O=>this.foundation.handleSelectionEnterPress(O),"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],id:g,onKeyDown:this.foundation.handleKeyDown},x,{role:"combobox",tabIndex:0},this.getDataAttr(this.props)),R)},this.state={emptyContentMinWidth:null,disabledKeys:new Set,isOpen:n.defaultOpen,rePosKey:jmr,keyEntities:{},selectedKeys:new Set([]),activeKeys:new Set([]),filteredKeys:new Set([]),inputValue:"",isSearching:!1,inputPlaceHolder:n.searchPlaceholder||n.placeholder,prevProps:{},isHovering:!1,checkedKeys:new Set([]),halfCheckedKeys:new Set([]),resolvedCheckedKeys:new Set([]),loadedKeys:new Set,loadingKeys:new Set,loading:!1,showInput:!1},this.options={},this.isEmpty=!1,this.mergeType=Gse(n.autoMergeValue,n.leafOnly),this.inputRef=V.createRef(),this.triggerRef=V.createRef(),this.optionsRef=V.createRef(),this.clickOutsideHandler=null,this.foundation=new cmr(this.adapter),this.loadingKeysRef=V.createRef(),this.loadedKeysRef=V.createRef()}get adapter(){var n=this;const r={updateInputValue:o=>{this.setState({inputValue:o})},updateInputPlaceHolder:o=>{this.setState({inputPlaceHolder:o})},focusInput:()=>{const{preventScroll:o}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:o})},blurInput:()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.blur()}},i={registerClickOutsideHandler:o=>{const a=s=>{const l=this.optionsRef&&this.optionsRef.current,c=this.triggerRef&&this.triggerRef.current,u=Gl.findDOMNode(l),d=s.target,f=s.composedPath&&s.composedPath()||[d];u&&(!u.contains(d)||!u.contains(d.parentNode))&&c&&!c.contains(d)&&!(f.includes(c)||f.includes(u))&&o(s)};this.clickOutsideHandler=a,document.addEventListener("mousedown",a,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1)},rePositionDropdown:()=>{let{rePosKey:o}=this.state;o=o+1,this.setState({rePosKey:o})}};return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),r),i),{setEmptyContentMinWidth:o=>{this.setState({emptyContentMinWidth:o})},getTriggerWidth:()=>{const o=this.triggerRef.current;return o&&o.getBoundingClientRect().width},updateStates:o=>{this.setState(Object.assign({},o))},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:o=>{this.setState({isOpen:!1},()=>{o&&o()})},updateSelection:o=>this.setState({selectedKeys:o}),notifyChange:o=>{this.props.onChange&&this.props.onChange(o)},notifySelect:o=>{this.props.onSelect&&this.props.onSelect(o)},notifyOnSearch:o=>{this.props.onSearch&&this.props.onSearch(o)},notifyFocus:function(){n.props.onFocus&&n.props.onFocus(...arguments)},notifyBlur:function(){n.props.onBlur&&n.props.onBlur(...arguments)},notifyDropdownVisibleChange:o=>{this.props.onDropdownVisibleChange(o)},toggleHovering:o=>{this.setState({isHovering:o})},notifyLoadData:(o,a)=>{const{loadData:s}=this.props;s&&new Promise(l=>{s(o).then(()=>{setTimeout(()=>{a(),this.setState({loading:!1}),l()})})})},notifyOnLoad:(o,a)=>{const{onLoad:s}=this.props;s&&s(o,a)},notifyListScroll:(o,a)=>{let{panelIndex:s,activeNode:l}=a;this.props.onListScroll(o,{panelIndex:s,activeNode:l})},notifyOnExceed:o=>this.props.onExceed(o),notifyClear:()=>this.props.onClear(),toggleInputShow:(o,a)=>{this.setState({showInput:o},()=>{a()})},updateFocusState:o=>{this.setState({isFocus:o})},updateLoadingKeyRefValue:o=>{this.loadingKeysRef.current=o},getLoadingKeyRefValue:()=>this.loadingKeysRef.current,updateLoadedKeyRefValue:o=>{this.loadedKeysRef.current=o},getLoadedKeyRefValue:()=>this.loadedKeysRef.current})}static getDerivedStateFromProps(n,r){const{multiple:i,value:o,defaultValue:a,onChangeWithObject:s,leafOnly:l,autoMergeValue:c,checkRelation:u,searchPlaceholder:d,placeholder:f}=n,{prevProps:p}=r;let h=r.keyEntities||{};const g={},v=d||f;v!==r.inputPlaceHolder&&(g.inputPlaceHolder=v);const y=b=>{const E=ta(p)&&b in n,w=p&&!Nf(p[b],n[b]);return E||w},_=()=>{const b=!p&&"treeData"in n,E=p&&p.treeData!==n.treeData;return b||E},S=(b,E)=>{let w=[];Array.isArray(b)?w=Array.isArray(b[0])?b:[b]:b!==void 0&&(w=[[b]]);const C=[];return w.forEach(T=>{const R=s&&AWe(T[0])?T.map(O=>O==null?void 0:O.value):T;R.length>0&&C.push(R)}),C.reduce((T,R)=>{const O=Qj(R);return E[O]&&T.push(O),T},[])};if(i){const b=y("treeData")||_(),E=y("value")||ta(p)&&a;if(b||E){b&&(g.treeData=n.treeData,h=dct(n.treeData),g.keyEntities=h);let w=r.checkedKeys;if(E){const C=y("value")?o:a;w=S(C,h)}else b&&"value"in n&&(w=S(o,h));if(jpn(w)&&(w=[...w]),u===Ua.RELATED){const C=y$(w,h),x=new Set(C.checkedKeys),T=new Set(C.halfCheckedKeys);n.disableStrictly&&(g.disabledKeys=lct(h));const R=Gse(c,l)===Ua.LEAF_ONLY_MERGE_TYPE;g.checkedKeys=x,g.halfCheckedKeys=T,g.resolvedCheckedKeys=new Set(Fh(x,h,R))}else g.checkedKeys=new Set(w);g.prevProps=n}}return g}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(n){if(this.props.multiple)return;let r=!1;Nf(n.treeData,this.props.treeData)||(r=!0,this.foundation.collectOptions()),n.value!==this.props.value&&!r&&this.foundation.handleValueChange(this.props.value)}renderTagInput(){const{size:n,disabled:r,placeholder:i,maxTagCount:o,showRestTagsPopover:a,restTagsPopoverProps:s,checkRelation:l}=this.props,{inputValue:c,checkedKeys:u,keyEntities:d,resolvedCheckedKeys:f,inputPlaceHolder:p}=this.state,h=Ce(`${Fi}-tagInput-wrapper`),g=this.mergeType===Ua.NONE_MERGE_TYPE||l===Ua.UN_RELATED?u:f;return V.createElement(gG,{className:h,ref:this.inputRef,disabled:r,size:n,value:[...g],showRestTagsPopover:a,restTagsPopoverProps:s,maxTagCount:o,renderTagItem:this.renderTagItem,inputValue:c,onInputChange:this.handleInputChange,onRemove:this.onRemoveInTagInput,placeholder:p,expandRestTagsOnClick:!1})}renderInput(){const{size:n,disabled:r}=this.props,i=Ce(`${Fi}-input`),{inputValue:o,inputPlaceHolder:a,showInput:s}=this.state,l={disabled:r,value:o,className:i,onChange:this.handleInputChange},c=Ce({[`${Fi}-search-wrapper`]:!0,[`${Fi}-search-wrapper-${n}`]:n!=="default"}),u=this.renderDisplayText(),d=Ce({[`${Fi}-selection-placeholder`]:!u,[`${Fi}-selection-text-hide`]:s&&o,[`${Fi}-selection-text-inactive`]:s&&!o});return V.createElement("div",{className:c},V.createElement("span",{className:d},u||a),s&&V.createElement(Hy,Object.assign({ref:this.inputRef,size:n},l)))}close(){this.foundation.close()}open(){this.foundation.open()}focus(){this.foundation.focus()}blur(){this.foundation.blur()}render(){const{zIndex:n,getPopupContainer:r,autoAdjustOverflow:i,stopPropagation:o,mouseLeaveDelay:a,mouseEnterDelay:s,position:l,motion:c,dropdownMargin:u}=this.props,{isOpen:d,rePosKey:f}=this.state,{direction:p}=this.context,h=this.renderContent(),g=this.renderSelection(),v=l??(p==="rtl"?"bottomRight":"bottomLeft");return V.createElement(wu,{getPopupContainer:r,zIndex:n,motion:c,margin:u,ref:this.optionsRef,content:h,visible:d,trigger:"custom",rePosKey:f,position:v,autoAdjustOverflow:i,stopPropagation:o,mouseLeaveDelay:a,mouseEnterDelay:s,afterClose:()=>this.foundation.updateSearching(!1)},g)}}FR.__SemiComponentName__="Cascader";FR.contextType=Ng;FR.propTypes={"aria-labelledby":ie.string,"aria-invalid":ie.bool,"aria-errormessage":ie.string,"aria-describedby":ie.string,"aria-required":ie.bool,"aria-label":ie.string,arrowIcon:ie.node,borderless:ie.bool,clearIcon:ie.node,changeOnSelect:ie.bool,defaultValue:ie.oneOfType([ie.string,ie.array]),disabled:ie.bool,dropdownClassName:ie.string,dropdownStyle:ie.object,dropdownMargin:ie.oneOfType([ie.number,ie.object]),emptyContent:ie.node,motion:ie.bool,filterTreeNode:ie.oneOfType([ie.func,ie.bool]),filterLeafOnly:ie.bool,placeholder:ie.string,searchPlaceholder:ie.string,size:ie.oneOf(Ua.SIZE_SET),style:ie.object,className:ie.string,treeData:ie.arrayOf(ie.shape({value:ie.oneOfType([ie.string,ie.number]),label:ie.any})),treeNodeFilterProp:ie.string,suffix:ie.node,prefix:ie.node,insetLabel:ie.node,insetLabelId:ie.string,id:ie.string,displayProp:ie.string,displayRender:ie.func,onChange:ie.func,onSearch:ie.func,onSelect:ie.func,onBlur:ie.func,onFocus:ie.func,children:ie.node,getPopupContainer:ie.func,zIndex:ie.number,value:ie.oneOfType([ie.string,ie.number,ie.array]),validateStatus:ie.oneOf(Ua.VALIDATE_STATUS),showNext:ie.oneOf([Ua.SHOW_NEXT_BY_CLICK,Ua.SHOW_NEXT_BY_HOVER]),stopPropagation:ie.oneOfType([ie.bool,ie.string]),showClear:ie.bool,defaultOpen:ie.bool,autoAdjustOverflow:ie.bool,onDropdownVisibleChange:ie.func,triggerRender:ie.func,onListScroll:ie.func,onChangeWithObject:ie.bool,bottomSlot:ie.node,topSlot:ie.node,multiple:ie.bool,autoMergeValue:ie.bool,maxTagCount:ie.number,showRestTagsPopover:ie.bool,restTagsPopoverProps:ie.object,max:ie.number,separator:ie.string,onExceed:ie.func,onClear:ie.func,loadData:ie.func,onLoad:ie.func,loadedKeys:ie.array,disableStrictly:ie.bool,leafOnly:ie.bool,enableLeafClick:ie.bool,preventScroll:ie.bool,position:ie.string,searchPosition:ie.string};FR.defaultProps=T_(FR.__SemiComponentName__,{borderless:!1,leafOnly:!1,arrowIcon:V.createElement(wve,null),stopPropagation:!0,motion:!0,defaultOpen:!1,zIndex:V0.DEFAULT_Z_INDEX,showClear:!1,autoClearSearchValue:!0,changeOnSelect:!1,disableStrictly:!1,autoMergeValue:!0,multiple:!1,filterTreeNode:!1,filterLeafOnly:!0,showRestTagsPopover:!1,restTagsPopoverProps:{},separator:" / ",size:"default",treeNodeFilterProp:"label",displayProp:"label",treeData:[],showNext:Ua.SHOW_NEXT_BY_CLICK,onExceed:vr,onClear:vr,onDropdownVisibleChange:vr,onListScroll:vr,enableLeafClick:!1,"aria-label":"Cascader",searchPosition:Ua.SEARCH_POSITION_TRIGGER,checkRelation:Ua.RELATED});class Umr extends tc{constructor(n){super(Object.assign({},n)),this.updateDOMInRenderTree=r=>{this._adapter.setDOMInRenderTree(r)},this.updateDOMHeight=r=>{this._adapter.setDOMHeight(r)},this.updateVisible=r=>{this._adapter.setVisible(r)},this.updateIsTransitioning=r=>{this._adapter.setIsTransitioning(r)}}}const s3e={PREFIX:`${ui}-collapsible`};class W0 extends fl{constructor(n){super(n),this.domRef=V.createRef(),this.hasBeenRendered=!1,this.handleResize=r=>{const i=r[0];if(i){const o=W0.getEntryInfo(i);this.foundation.updateDOMHeight(o.height),this.foundation.updateDOMInRenderTree(o.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new Umr(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:n=>{this.state.domInRenderTree!==n&&this.setState({domInRenderTree:n})},setDOMHeight:n=>{this.state.domHeight!==n&&this.setState({domHeight:n})},setVisible:n=>{this.state.visible!==n&&this.setState({visible:n})},setIsTransitioning:n=>{this.state.isTransitioning!==n&&this.setState({isTransitioning:n})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const n=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(n),n&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(n,r,i){const o=Object.keys(Kj(this.props,["reCalcKey","isOpen"])).filter(s=>!Nf(this.props[s],n[s])),a=Object.keys(Kj(this.state,["domInRenderTree"])).filter(s=>!Nf(this.state[s],r[s]));o.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),o.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&n.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const n=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),r=Ce(`${s3e.PREFIX}-wrapper`,{[`${s3e.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className),i=this.props.keepDOM&&(this.props.lazyRender?this.hasBeenRendered:!0)||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen;return i&&!this.hasBeenRendered&&(this.hasBeenRendered=!0),V.createElement("div",Object.assign({className:r,style:n,onTransitionEnd:()=>{var o,a;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(a=(o=this.props).onMotionEnd)===null||a===void 0||a.call(o)}},this.getDataAttr(this.props)),V.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},i&&this.props.children))}}W0.__SemiComponentName__="Collapsible";W0.defaultProps=T_(W0.__SemiComponentName__,{isOpen:!1,duration:250,motion:!0,keepDOM:!1,lazyRender:!1,collapseHeight:0,fade:!1});W0.getEntryInfo=e=>{let n;e.borderBoxSize?n=!(e.borderBoxSize[0].blockSize===0&&e.borderBoxSize[0].inlineSize===0):n=!(e.contentRect.height===0&&e.contentRect.width===0);let r=0;return e.borderBoxSize?r=Math.ceil(e.borderBoxSize[0].blockSize):r=e.target.clientHeight,{isShown:n,height:r}};W0.propTypes={motion:ie.bool,children:ie.node,isOpen:ie.bool,duration:ie.number,keepDOM:ie.bool,collapseHeight:ie.number,style:ie.object,className:ie.string,reCalcKey:ie.oneOfType([ie.string,ie.number])};var Hmr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};Ng.Consumer;class zve extends V.Component{constructor(n){super(n)}renderChildren(){const{direction:n,children:r}=this.props;return n==="rtl"?V.createElement("div",{className:`${ui}-rtl`},r):r}render(){const n=this.props,{children:r,direction:i}=n,o=Hmr(n,["children","direction"]);return V.createElement(Ng.Provider,{value:Object.assign({direction:i},o)},this.renderChildren())}}zve.propTypes={locale:ie.object,timeZone:ie.oneOfType([ie.string,ie.number]),getPopupContainer:ie.func,direction:ie.oneOf(["ltr","rtl"])};zve.defaultProps={locale:zse,direction:"ltr"};const zmr={PREFIX:`${ui}`};var Vmr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const xE=zmr.PREFIX,vct=e=>{const{layout:n="horizontal",dashed:r,align:i="center",className:o,margin:a,style:s,children:l}=e,c=Vmr(e,["layout","dashed","align","className","margin","style","children"]),u=Ce(`${xE}-divider`,o,{[`${xE}-divider-horizontal`]:n==="horizontal",[`${xE}-divider-vertical`]:n==="vertical",[`${xE}-divider-dashed`]:!!r,[`${xE}-divider-with-text`]:l&&n==="horizontal",[`${xE}-divider-with-text-${i}`]:l&&n==="horizontal"});let d={};return a!==void 0&&(n==="vertical"?d={marginLeft:a,marginRight:a}:n==="horizontal"&&(d={marginTop:a,marginBottom:a})),V.createElement("div",Object.assign({},c,{className:u,style:Object.assign(Object.assign({},d),s)}),l&&n==="horizontal"?typeof l=="string"?V.createElement("span",{className:`${xE}-divider_inner-text`,"x-semi-prop":"children"},l):l:null)},_$={PREFIX:`${ui}-dropdown`,SELECTED:`${ui}-dropdown-item-selected`,DISABLED:`${ui}-dropdown-item-disabled`},mG={POSITION_SET:tO.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},l3e={SPACING:4,NESTED_SPACING:2};class Gmr extends tc{handleVisibleChange(n){this._adapter.setPopVisible(n),this._adapter.notifyVisibleChange(n);const{trigger:r}=this.getProps();if(n&&r==="click"){const i=this._adapter.getPopupId();this.setFocusToFirstMenuItem(i)}}getMenuItemNodes(n){const r=document.getElementById(n);return r?Array.from(r.getElementsByTagName("li")).filter(i=>i.ariaDisabled==="false"):null}setFocusToFirstMenuItem(n){const r=this.getMenuItemNodes(n);r&&Our(r)}setFocusToLastMenuItem(n){const r=this.getMenuItemNodes(n);r&&Rur(r)}handleKeyDown(n){var r,i;const o=(i=(r=n.target)===null||r===void 0?void 0:r.attributes["data-popupid"])===null||i===void 0?void 0:i.value,{visible:a}=this._adapter.getStates();switch(n.key){case" ":case"Enter":n.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(o),a&&H0(n);break;case"ArrowUp":this.setFocusToLastMenuItem(o),a&&H0(n);break}}}class Wmr extends tc{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(n){this._adapter.getContext("trigger")==="custom"&&(n&&Aur(document.querySelectorAll("[data-popupid]"),n.id)).focus()}setFocusByFirstCharacter(n,r){const i=Mur(this.menuItemNodes,n,this.firstChars,r);i>=0&&g$(this.menuItemNodes,this.menuItemNodes[i])}onMenuKeydown(n){const r=Pur(n.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...n.target.parentNode.getElementsByTagName("li")].filter(o=>o.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(o=>{var a;this.firstChars.push((a=o.textContent.trim()[0])===null||a===void 0?void 0:a.toLowerCase())});const i=this.menuItemNodes.find(o=>o.tabIndex===0);switch(n.key){case" ":case"Enter":n.target.click();break;case"Escape":this.handleEscape(r);break;case"ArrowUp":Iur(this.menuItemNodes,i),H0(n);break;case"ArrowDown":Nur(this.menuItemNodes,i),H0(n);break;default:Tur(n.key)&&this.setFocusByFirstCharacter(i,n.key);break}}}const BR=V.createContext({level:0});var Ymr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const qmr=_$.PREFIX;class Vve extends fl{constructor(n){super(n),this.foundation=new Wmr(this.adapter)}get adapter(){return Object.assign({},super.adapter)}render(){const n=this.props,{children:r,className:i,style:o}=n,a=Ymr(n,["children","className","style"]);return V.createElement("ul",Object.assign({role:"menu","aria-orientation":"vertical"},a,{className:Ce(`${qmr}-menu`,i),style:o,onKeyDown:s=>this.foundation.onMenuKeydown(s)}),r)}}Vve.propTypes={children:ie.node,className:ie.string,style:ie.object};Vve.contextType=BR;const TE=_$.PREFIX;class b$ extends fl{render(){const{children:n,disabled:r,className:i,forwardRef:o,style:a,type:s,active:l,icon:c,onKeyDown:u,showTick:d,hover:f}=this.props,{showTick:p}=this.context,h=p??d,g=Ce(i,{[`${TE}-item`]:!0,[`${TE}-item-disabled`]:r,[`${TE}-item-hover`]:f,[`${TE}-item-withTick`]:h,[`${TE}-item-${s}`]:s,[`${TE}-item-active`]:l}),v={};r||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(S=>{this.context.level!==1&&S==="onClick"?v.onMouseDown=E=>{var w,C;E.button===0&&((C=(w=this.props)[S])===null||C===void 0||C.call(w,E))}:v[S]=this.props[S]});let y=null;switch(!0){case(h&&l):y=V.createElement(Wj,null);break;case(h&&!l):y=V.createElement(Wj,{style:{color:"transparent"}});break;default:y=null;break}let _=null;return c&&(_=V.createElement("div",{className:`${TE}-item-icon`},c)),V.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":r},v,{onKeyDown:u,ref:S=>o(S),className:g,style:a},this.getDataAttr(this.props)),y,_,n)}}b$.propTypes={children:ie.oneOfType([ie.string,ie.node]),name:ie.string,disabled:ie.bool,selected:ie.bool,onClick:ie.func,onMouseEnter:ie.func,onMouseLeave:ie.func,onContextMenu:ie.func,className:ie.string,style:ie.object,forwardRef:ie.func,type:ie.oneOf(mG.ITEM_TYPE),active:ie.bool,icon:ie.node};b$.contextType=BR;b$.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:vr,onMouseLeave:vr,forwardRef:vr};b$.elementType="Dropdown.Item";const Kmr=_$.PREFIX,yct=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:n,className:r}=e;return V.createElement("div",{className:Ce(`${Kmr}-divider`,r),style:n})};yct.propTypes={style:ie.object,className:ie.string};const c3e=_$.PREFIX;class Gve extends m.PureComponent{render(){const{className:n,style:r,children:i}=this.props,{showTick:o}=this.context,a=Ce({[`${c3e}-title`]:!0,[`${c3e}-title-withTick`]:o},n);return V.createElement("div",{className:a,style:r},i)}}Gve.propTypes={children:ie.node,className:ie.string,style:ie.object};Gve.contextType=BR;var dee=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Xmr=mG.POSITION_SET,Qmr=mG.TRIGGER_SET;class Do extends fl{constructor(n){super(n),this.handleVisibleChange=r=>this.foundation.handleVisibleChange(r),this.state={popVisible:n.visible},this.foundation=new Gmr(this.adapter),this.tooltipRef=V.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:n=>this.setState({popVisible:n}),notifyVisibleChange:n=>{var r,i;return(i=(r=this.props).onVisibleChange)===null||i===void 0?void 0:i.call(r,n)},getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:n,menu:r,contentClassName:i,style:o,showTick:a,prefixCls:s,trigger:l}=this.props,c=Ce(s,i),{level:u=0}=this.context,d={showTick:a,level:u+1,trigger:l};let f=null;return V.isValidElement(n)?f=n:Array.isArray(r)&&(f=this.renderMenu()),V.createElement(BR.Provider,{value:d},V.createElement("div",{className:c,style:o},V.createElement("div",{className:`${s}-content`,"x-semi-prop":"render"},f)))}renderMenu(){const{menu:n}=this.props,r=n.map((i,o)=>{switch(i.node){case"title":{const{name:a,node:s}=i,l=dee(i,["name","node"]);return V.createElement(Do.Title,Object.assign({},l,{key:s+a+o}),a)}case"item":{const{node:a,name:s}=i,l=dee(i,["node","name"]);return V.createElement(Do.Item,Object.assign({},l,{key:a+s+o}),s)}case"divider":return V.createElement(Do.Divider,{key:i.node+o});default:return null}});return V.createElement(Do.Menu,null,r)}renderPopCard(){const{render:n,contentClassName:r,style:i,showTick:o,prefixCls:a}=this.props,s=Ce(a,r),{level:l=0}=this.context,c={showTick:o,level:l+1};return V.createElement(BR.Provider,{value:c},V.createElement("div",{className:s,style:i},V.createElement("div",{className:`${a}-content`},n)))}render(){const n=this.props,{children:r,position:i,trigger:o,onVisibleChange:a,zIndex:s,className:l,motion:c,margin:u,style:d,prefixCls:f}=n,p=dee(n,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:h}=this.props;const{level:g}=this.context,{popVisible:v}=this.state,y=this.renderContent();return g>0?h=typeof h=="number"?h:l3e.NESTED_SPACING:(h===null||typeof h>"u")&&(h=l3e.SPACING),V.createElement(qo,Object.assign({zIndex:s,motion:c,margin:u,content:y,className:l,prefixCls:f,spacing:h,position:i,trigger:o,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},p),V.isValidElement(r)?V.cloneElement(r,{className:Ce(fr(r,"props.className"),{[`${f}-showing`]:v}),"aria-haspopup":!0,"aria-expanded":v,onKeyDown:_=>{this.foundation.handleKeyDown(_);const S=fr(r,"props.onKeyDown");S&&S(_)}}):r)}}Do.Menu=Vve;Do.Item=b$;Do.Divider=yct;Do.Title=Gve;Do.contextType=BR;Do.propTypes={children:ie.node,contentClassName:ie.oneOfType([ie.string,ie.array]),className:ie.string,getPopupContainer:ie.func,margin:ie.oneOfType([ie.number,ie.object]),mouseEnterDelay:ie.number,mouseLeaveDelay:ie.number,menu:ie.array,motion:ie.oneOfType([ie.bool,ie.func,ie.object]),onVisibleChange:ie.func,prefixCls:ie.string,position:ie.oneOf(Xmr),rePosKey:ie.oneOfType([ie.string,ie.number]),render:ie.node,spacing:ie.oneOfType([ie.number,ie.object]),showTick:ie.bool,style:ie.object,trigger:ie.oneOf(Qmr),visible:ie.bool,zIndex:ie.number};Do.__SemiComponentName__="Dropdown";Do.defaultProps=T_(Do.__SemiComponentName__,{onVisibleChange:vr,prefixCls:_$.PREFIX,zIndex:Sb.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:mG.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:vr});const VM=pct.PREFIX,_ct=gN.TAG_SIZE,Zmr=gN.AVATAR_SHAPE;class Wve extends m.PureComponent{renderNTag(n,r){const{size:i,showPopover:o,popoverProps:a,onPlusNMouseEnter:s}=this.props;let l=V.createElement(mf,{closable:!1,size:i,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:s},"+",n);return o&&(l=V.createElement(wu,Object.assign({showArrow:!0,content:r,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${VM}-rest-group-popover`},a,{key:"_+n_Popover"}),l)),l}renderMergeTags(n){const{maxTagCount:r,tagList:i,restCount:o}=this.props,a=o||i.length-r;let s=n;const l=n.slice(0,r),c=n.slice(r);let u=null;return a>0&&(u=this.renderNTag(a,c),l.push(u),s=l),s}renderAllTags(){const{tagList:n,size:r,mode:i,avatarShape:o,onTagClose:a}=this.props;return n.map(l=>{if(i==="custom")return l;const c=Object.assign({},l);return c.size||(c.size=r),c.avatarShape||(c.avatarShape=o),c.tagKey||(typeof c.children=="string"||typeof c.children=="number"?c.tagKey=c.children:c.tagKey=Math.random()),V.createElement(mf,Object.assign({},c,{key:c.tagKey,onClose:(u,d,f)=>{c.onClose&&c.onClose(u,d,f),a&&a(u,d,f)}}))})}render(){const{style:n,className:r,maxTagCount:i,size:o}=this.props,a=Ce({[`${VM}-group`]:!0,[`${VM}-group-max`]:i,[`${VM}-group-small`]:o==="small",[`${VM}-group-large`]:o==="large"},r),s=this.renderAllTags(),l=typeof i>"u"?s:this.renderMergeTags(s);return V.createElement("div",{style:n,className:a},l)}}Wve.defaultProps={style:{},className:"",size:_ct[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};Wve.propTypes={children:ie.node,style:ie.object,className:ie.string,maxTagCount:ie.number,restCount:ie.number,tagList:ie.array,size:ie.oneOf(_ct),mode:ie.string,onTagClose:ie.func,showPopover:ie.bool,popoverProps:ie.object,avatarShape:ie.oneOf(Zmr)};const Jmr=e=>{let{index:n,data:r,style:i}=e;const{visibleOptions:o,renderOption:a}=r,s=o[n];return a(s,n,i)},bct={PREFIX:`${ui}-sidesheet`,DIALOG:`${ui}-modal`},Wse={PLACEMENT:["top","right","bottom","left"],SIZE:["small","medium","large"],WIDTH:{small:448,medium:684,large:920},HEIGHT:448};var u3e=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};let evr=0;const Kf=bct.PREFIX;class Yve extends V.PureComponent{constructor(){super(...arguments),this.onMaskClick=n=>{n.target===n.currentTarget&&this.close(n)},this.close=n=>{const{onClose:r}=this.props;r&&r(n)}}componentDidMount(){this.sideSheetId=`sidesheet-${evr++}`}componentWillUnmount(){clearTimeout(this.timeoutId)}getMaskElement(){var n;const{mask:r,maskStyle:i,maskClosable:o}=this.props;return r?V.createElement("div",Object.assign({"aria-hidden":!0,key:"mask",className:Ce(`${Kf}-mask`,(n=this.props.maskClassName)!==null&&n!==void 0?n:""),style:i,onClick:o?this.onMaskClick:null},this.props.maskExtraProps)):null}renderHeader(){const{title:n,closable:r,headerStyle:i,closeIcon:o}=this.props;let a,s;if(n&&(a=V.createElement("div",{className:`${Kf}-title`,"x-semi-prop":"title"},this.props.title)),r){const l=o||V.createElement(xve,null);s=V.createElement(ul,{className:`${Kf}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:l,theme:"borderless",size:"small"})}return V.createElement("div",{className:`${Kf}-header`,role:"heading","aria-level":1,style:Object.assign({},i)},a,s)}getDialogElement(){var n;const r=u3e(this.props,[]),i={};r.width&&(i.width=r.width,r.mask||(i.width="100%")),r.height&&(i.height=r.height);const o=this.renderHeader();return V.createElement("div",Object.assign({key:"dialog-element",role:"dialog",tabIndex:-1,className:Ce(`${Kf}-inner`,`${Kf}-inner-wrap`,(n=this.props.dialogClassName)!==null&&n!==void 0?n:"",`${Kf}-size-${r.size}`),style:Object.assign(Object.assign({},r.style),i)},this.props.wrapperExtraProps),V.createElement("div",{className:`${Kf}-content`},o,V.createElement("div",{className:`${Kf}-body`,style:r.bodyStyle,"x-semi-prop":"children"},r.children),r.footer?V.createElement("div",{className:`${Kf}-footer`,"x-semi-prop":"footer"},r.footer):null))}render(){const n=this.props,{mask:r,className:i,width:o,onClose:a,maskStyle:s,maskClosable:l,maskClassName:c,title:u,closable:d,headerStyle:f,height:p,style:h,size:g,bodyStyle:v,dialogClassName:y,children:_,footer:S,maskExtraProps:b,wrapperExtraProps:E}=n,w=u3e(n,["mask","className","width","onClose","maskStyle","maskClosable","maskClassName","title","closable","headerStyle","height","style","size","bodyStyle","dialogClassName","children","footer","maskExtraProps","wrapperExtraProps"]),C=Ce(i,{[`${Kf}-fixed`]:!r,[`${Kf}-size-${this.props.size}`]:!r}),x={};!r&&o&&(x.width=o);const T=Mlt(w);return V.createElement("div",Object.assign({className:C,style:x},T),this.getMaskElement(),this.getDialogElement())}}Yve.propTypes={onClose:ie.func,closeIcon:ie.node};Yve.defaultProps={onClose:vr};class qve extends tc{constructor(n){super(Object.assign(Object.assign({},qve.defaultAdapter),n)),this.toggleDisplayNone=r=>{this._adapter.toggleDisplayNone(r)}}get defaultAdapter(){return{handleCancel:vr,beforeShow:vr,afterHide:vr}}destroy(){this.afterHide()}handleCancel(n){this._adapter.notifyCancel(n)}beforeShow(){this.getProp("disableScroll")&&this._adapter.disabledBodyScroll(),this._adapter.setOnKeyDownListener()}afterHide(){this.getProp("disableScroll")&&this._adapter.enabledBodyScroll(),this._adapter.removeKeyDownListener()}handleKeyDown(n){const{closeOnEsc:r}=this.getProps();if(r&&n.keyCode===Vse.ESC){n.stopPropagation(),this.handleCancel(n);return}}onVisibleChange(n){this._adapter.notifyVisibleChange(n)}}var tvr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const zg=bct.PREFIX,nvr=Wse.HEIGHT;class jR extends fl{constructor(n){super(n),this.handleCancel=r=>{this.foundation.handleCancel(r)},this.handleKeyDown=r=>{this.foundation.handleKeyDown(r)},this.updateState=()=>{this.foundation.toggleDisplayNone(!this.props.visible)},this.state={displayNone:!this.props.visible},this.foundation=new qve(this.adapter),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{disabledBodyScroll:()=>{const{getPopupContainer:n}=this.props;this.bodyOverflow=document.body.style.overflow||"",!n&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:n}=this.props;!n&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:n=>{this.props.onCancel&&this.props.onCancel(n)},notifyVisibleChange:n=>{this.props.afterVisibleChange(n)},setOnKeyDownListener:()=>{window&&window.addEventListener("keydown",this.handleKeyDown)},removeKeyDownListener:()=>{window&&window.removeEventListener("keydown",this.handleKeyDown)},toggleDisplayNone:n=>{n!==this.state.displayNone&&this.setState({displayNone:n})}})}static getDerivedStateFromProps(n,r){const i={};return n.visible&&r.displayNone&&(i.displayNone=!1),!n.visible&&!n.motion&&!r.displayNone&&(i.displayNone=!0),i}componentDidMount(){this.scrollBarWidth=edr(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(n,r,i){!n.visible&&this.props.visible&&this.foundation.beforeShow(),n.visible&&!this.props.visible&&this.foundation.afterHide(),r.displayNone!==this.state.displayNone&&this.foundation.onVisibleChange(!this.state.displayNone)}componentWillUnmount(){this.props.visible&&this.foundation.destroy()}renderContent(){const n=this.props,{placement:r,className:i,children:o,width:a,height:s,motion:l,visible:c,style:u,maskStyle:d,size:f,zIndex:p,getPopupContainer:h,keepDOM:g}=n,v=tvr(n,["placement","className","children","width","height","motion","visible","style","maskStyle","size","zIndex","getPopupContainer","keepDOM"]);let y={zIndex:p};h&&(y={zIndex:p,position:"static"});const{direction:_}=this.context,S=r==="left"||r==="right",b=r==="top"||r==="bottom",E=b?s||nvr:"100%",w=Ce(zg,i,{[`${zg}-${r}`]:r,[`${zg}-popup`]:h,[`${zg}-horizontal`]:b,[`${zg}-rtl`]:_==="rtl",[`${zg}-hidden`]:g&&this.state.displayNone}),C=Object.assign(Object.assign(Object.assign({},S?a?{width:a}:{}:{width:"100%"}),v),{visible:c,motion:!1,size:f,className:w,height:E,onClose:this.handleCancel}),x=this.props.visible||this.props.keepDOM||this.props.motion&&!this.state.displayNone;return V.createElement(OD,{motion:this.props.motion,animationState:c?"enter":"leave",startClassName:c?`${zg}-animation-mask_show`:`${zg}-animation-mask_hide`,onAnimationEnd:this.updateState},T=>{let{animationClassName:R,animationEventsNeedBind:O}=T;return V.createElement(OD,{motion:this.props.motion,animationState:c?"enter":"leave",startClassName:c?`${zg}-animation-content_show_${this.props.placement}`:`${zg}-animation-content_hide_${this.props.placement}`,onAnimationEnd:this.updateState},M=>{let{animationClassName:P,animationStyle:k,animationEventsNeedBind:$}=M;return x?V.createElement(m$,{getPopupContainer:h,style:y},V.createElement(Yve,Object.assign({},C,{maskExtraProps:O,wrapperExtraProps:$,dialogClassName:P,maskClassName:R,maskStyle:Object.assign({},d),style:Object.assign(Object.assign({},k),u)}),o)):V.createElement(V.Fragment,null)})})}render(){return this.props,this.renderContent()}}jR.contextType=Ng;jR.propTypes={bodyStyle:ie.object,headerStyle:ie.object,children:ie.node,className:ie.string,closable:ie.bool,disableScroll:ie.bool,getPopupContainer:ie.func,height:ie.oneOfType([ie.number,ie.string]),mask:ie.bool,maskClosable:ie.bool,maskStyle:ie.object,motion:ie.oneOfType([ie.bool,ie.object,ie.func]),onCancel:ie.func,placement:ie.oneOf(Wse.PLACEMENT),size:ie.oneOf(Wse.SIZE),style:ie.object,title:ie.node,visible:ie.bool,width:ie.oneOfType([ie.number,ie.string]),zIndex:ie.number,afterVisibleChange:ie.func,closeOnEsc:ie.bool,footer:ie.node,keepDOM:ie.bool,"aria-label":ie.string};jR.__SemiComponentName__="SideSheet";jR.defaultProps=T_(jR.__SemiComponentName__,{visible:!1,motion:!0,mask:!0,placement:"right",closable:!0,footer:null,zIndex:1e3,maskClosable:!0,size:"small",disableScroll:!0,closeOnEsc:!1,afterVisibleChange:vr,keepDOM:!1});class Kve extends tc{constructor(n){super(Object.assign(Object.assign({},Kve.defaultAdapter),n)),this.handleMouseInSideChange=r=>{this._adapter.handleMouseInSideChange(r)},this.getInputWrapperRect=()=>this._adapter.getInputWrapperRect()}hasToast(n){return this._adapter.getState("list").map(i=>{let{id:o}=i;return o}).includes(n)}addToast(n){const r=this._adapter.getState("list");r.push(n),this._adapter.updateToast(r,[],[])}updateToast(n,r){let i=this._adapter.getState("list");i=i.map(a=>a.id===n?Object.assign(Object.assign({},a),r):a);const o=i.filter(a=>a.id===n);this._adapter.updateToast(i,[],o)}removeToast(n){let r=this._adapter.getState("list");const i=[];r=r.filter(o=>o.id===n?(i.push(o),!1):!0),this._adapter.updateToast(r,i,[])}destroyAll(){const n=this._adapter.getState("list");n.length>0&&this._adapter.updateToast([],n,[])}}const fee=`${ui}-toast`,Jx={PREFIX:fee,WRAPPER:`${fee}-wrapper`,LIST:`${fee}-list`},TP={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},rvr={duration:3};class Xve extends tc{constructor(n){super(Object.assign(Object.assign({},Xve.defaultAdapter),n)),this._timer=null,this._id=null}init(){this.startCloseTimer_(),this._id=this._adapter.getProp("id")}destroy(){this.clearCloseTimer_()}startCloseTimer_(){const n=this._adapter.getProp("duration");n&&df(n)&&(this._timer=setTimeout(()=>{this.close()},n*1e3))}close(n){n&&n.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}clearCloseTimer_(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this.clearCloseTimer_(),this.startCloseTimer_()}}const dh=Jx.PREFIX;let jC=class extends fl{constructor(n){super(n),this.toastEle=V.createRef(),this.clearCloseTimer=()=>{this.foundation.clearCloseTimer_()},this.startCloseTimer=()=>{this.foundation.startCloseTimer_()},this.restartCloseTimer=()=>{this.foundation.restartCloseTimer()},this.state={},this.foundation=new Xve(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:n=>{this.props.close(n)},notifyClose:()=>{this.props.onClose()}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}close(n){this.foundation.close(n)}renderIcon(){const{type:n,icon:r}=this.props,o={warning:V.createElement(rfr,null),success:V.createElement(Yfr,null),info:V.createElement(Vlt,null),error:V.createElement(tfr,null)}[n],a="large",s=Ce(`${dh}-icon`,`${dh}-icon-${n}`);return r?of(r)?V.cloneElement(r,{size:a,className:`${dh}-icon`}):r:n&&o?V.cloneElement(o,{size:a,className:s}):null}render(){const{content:n,type:r,theme:i,showClose:o,textMaxWidth:a,className:s,style:l}=this.props,c=this.props.direction||this.context.direction,u=Ce(dh,s,{[`${dh}-${r}`]:!0,[`${dh}-${i}`]:i==="light",[`${dh}-rtl`]:c==="rtl"}),d={};d.maxWidth=a;const f="borderless",p="small",h=this.props.positionInList?this.props.positionInList.length-this.props.positionInList.index-1:0,g=V.createElement("div",{ref:this.toastEle,role:"alert","aria-label":`${r||"default"} type`,className:u,style:Object.assign(Object.assign({},l),{transform:`translate3d(0,0,${h*-10}px)`}),onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onAnimationStart:this.props.onAnimationStart,onAnimationEnd:this.props.onAnimationEnd},V.createElement("div",{className:`${dh}-content`},this.renderIcon(),V.createElement("span",{className:`${dh}-content-text`,style:d,"x-semi-prop":"content"},n),o&&V.createElement("div",{className:`${dh}-close-button`},V.createElement(ul,{onClick:v=>this.close(v),type:"tertiary",icon:V.createElement(xve,{"x-semi-prop":"icon"}),theme:f,size:p}))));if(this.props.stack){const v=this.props.stackExpanded&&this.toastEle.current&&getComputedStyle(this.toastEle.current).height||0;return V.createElement("div",{className:`${dh}-zero-height-wrapper`,style:{height:v}},g)}else return g}};jC.contextType=Ng;jC.propTypes={onClose:ie.func,content:ie.node,close:ie.func,duration:ie.number,theme:ie.oneOf(TP.themes),type:ie.oneOf(TP.types),textMaxWidth:ie.oneOfType([ie.string,ie.number]),style:ie.object,className:ie.string,showClose:ie.bool,stack:ie.bool,stackExpanded:ie.bool,icon:ie.node,direction:ie.oneOf(TP.directions)};jC.__SemiComponentName__="Toast";jC.defaultProps=T_(jC.__SemiComponentName__,{onClose:vr,content:"",close:vr,duration:rvr.duration,textMaxWidth:450,showClose:!0,stack:!1,stackExpanded:!1,theme:"normal"});var ivr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const ovr=(e,n)=>{var{afterClose:r}=e,i=ivr(e,["afterClose"]);const[o,a]=m.useState(!0),s=()=>{a(!1)};return V.useImperativeHandle(n,()=>({close:()=>{a(!1)}})),m.useEffect(()=>{o||r(i.id)},[o]),o?V.createElement(jC,Object.assign({},i,{close:s})):null},avr=V.forwardRef(ovr),GM={motion:!0,zIndex:1010,duration:3};function svr(){const[e,n]=V.useState([]);function r(i,o){return n(a=>[{element:i,config:o},...a]),a=>{n(s=>s.filter(l=>{let{config:c}=l;return c.id!==a}))}}return[e,r]}function lvr(){const[e,n]=svr(),r=m.useRef(new Map),i=a=>{const s=Hse("semi_toast_"),l=Object.assign(Object.assign({},a),{id:s});let c;const u=V.createElement(avr,Object.assign({},l,{key:s,afterClose:d=>c(d),ref:d=>{var f;r.current.set(s,{close:(f=d==null?void 0:d.close)!==null&&f!==void 0?f:vr})}}));return c=n(u,Object.assign({},l)),s},o=a=>{var s;const{close:l}=(s=r.current.get(a))!==null&&s!==void 0?s:{};l==null||l()};return[{success:a=>i(Object.assign(Object.assign(Object.assign({},GM),a),{type:"success"})),info:a=>i(Object.assign(Object.assign(Object.assign({},GM),a),{type:"info"})),error:a=>i(Object.assign(Object.assign(Object.assign({},GM),a),{type:"error"})),warning:a=>i(Object.assign(Object.assign(Object.assign({},GM),a),{type:"warning"})),open:a=>i(Object.assign(Object.assign(Object.assign({},GM),a),{type:"default"})),close:a=>o(a)},V.createElement(V.Fragment,null,Array.isArray(e)&&e.length?V.createElement(V.Fragment,null,e.map(a=>a.element)):null)]}const cvr=()=>{var e;return e=class Mo extends fl{constructor(r){super(r),this.stack=!1,this.innerWrapperRef=V.createRef(),this.handleMouseEnter=i=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=i=>{var o;this.stack&&(!((o=this.foundation.getInputWrapperRect())===null||o===void 0)&&o.height)&&this.foundation.handleMouseInSideChange(!1)},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new Kve(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(r,i,o)=>{this.setState({list:r,removedItems:i,updatedItems:o})},handleMouseInSideChange:r=>{this.setState({mouseInSide:r})},getInputWrapperRect:()=>{var r;return(r=this.innerWrapperRef.current)===null||r===void 0?void 0:r.getBoundingClientRect()}})}static create(r){var i;const o=(i=r.id)!==null&&i!==void 0?i:Hse("toast");if(Mo.ref){const a=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map(s=>{s in r&&(a.style[s]=typeof r[s]=="number"?`${r[s]}px`:r[s])}),!!r.stack!==Mo.ref.stack&&(Mo.ref.stack=!!r.stack),Mo.ref.has(o)?Mo.ref.update(o,Object.assign(Object.assign({},r),{id:o})):Mo.ref.add(Object.assign(Object.assign({},r),{id:o}))}else{const a=document.createElement("div");this.wrapperId||(this.wrapperId=Hse("toast-wrapper").slice(0,26)),a.className=Jx.WRAPPER,a.id=this.wrapperId,a.style.zIndex=String(typeof r.zIndex=="number"?r.zIndex:Mo.defaultOpts.zIndex),["top","left","bottom","right"].map(s=>{if(s in Mo.defaultOpts||s in r){const l=r[s]?r[s]:Mo.defaultOpts[s];a.style[s]=typeof l=="number"?`${l}px`:l}}),Mo.defaultOpts.getPopupContainer?Mo.defaultOpts.getPopupContainer().appendChild(a):document.body.appendChild(a),Gl.render(V.createElement(Mo,{ref:s=>Mo.ref=s}),a,()=>{Mo.ref.add(Object.assign(Object.assign({},r),{id:o})),Mo.ref.stack=!!r.stack})}return o}static close(r){Mo.ref&&Mo.ref.remove(r)}static destroyAll(){if(Mo.ref){Mo.ref.destroyAll();const r=document.querySelector(`#${this.wrapperId}`);Gl.unmountComponentAtNode(r),r&&r.parentNode.removeChild(r),Mo.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(r){return typeof r=="string"&&(r={content:r}),this.create(Object.assign(Object.assign(Object.assign({},Mo.defaultOpts),r),{type:"info"}))}static warning(r){return typeof r=="string"&&(r={content:r}),this.create(Object.assign(Object.assign(Object.assign({},Mo.defaultOpts),r),{type:"warning"}))}static error(r){return typeof r=="string"&&(r={content:r}),this.create(Object.assign(Object.assign(Object.assign({},Mo.defaultOpts),r),{type:"error"}))}static success(r){return typeof r=="string"&&(r={content:r}),this.create(Object.assign(Object.assign(Object.assign({},Mo.defaultOpts),r),{type:"success"}))}static config(r){["top","left","bottom","right"].forEach(i=>{i in r&&(Mo.defaultOpts[i]=r[i])}),typeof r.theme=="string"&&TP.themes.includes(r.theme)&&(Mo.defaultOpts.theme=r.theme),typeof r.zIndex=="number"&&(Mo.defaultOpts.zIndex=r.zIndex),typeof r.duration=="number"&&(Mo.defaultOpts.duration=r.duration),typeof r.getPopupContainer=="function"&&(Mo.defaultOpts.getPopupContainer=r.getPopupContainer)}has(r){return this.foundation.hasToast(r)}add(r){return this.foundation.addToast(r)}update(r,i){return this.foundation.updateToast(r,i)}remove(r){return this.foundation.removeToast(r)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:r}=this.state;const{removedItems:i,updatedItems:o}=this.state;r=Array.from(new Set([...r,...i]));const a=o.map(l=>{let{id:c}=l;return c}),s=l=>{var c;!((c=l==null?void 0:l.foundation)===null||c===void 0)&&c._id&&a.includes(l.foundation._id)&&l.foundation.restartCloseTimer()};return V.createElement(V.Fragment,null,V.createElement("div",{className:Ce({[`${Jx.PREFIX}-innerWrapper`]:!0,[`${Jx.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},r.map((l,c)=>{const u=i.find(d=>d.id===l.id)!==void 0;return V.createElement(OD,{key:l.id,motion:l.motion,animationState:u?"leave":"enter",startClassName:u?`${Jx.PREFIX}-animation-hide`:`${Jx.PREFIX}-animation-show`},d=>{let{animationClassName:f,animationEventsNeedBind:p,isAnimating:h}=d;return u&&!h?null:V.createElement(jC,Object.assign({},l,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:r.length,index:c},className:Ce({[l.className]:!!l.className,[f]:!0})},p,{style:Object.assign({},l.style),close:g=>this.remove(g),ref:s}))})})))}},e.defaultOpts={motion:!0,zIndex:1010,content:""},e.propTypes={content:ie.node,duration:ie.number,onClose:ie.func,icon:ie.node,direction:ie.oneOf(TP.directions),stack:ie.bool},e.defaultProps={},e};class uvr{static create(n){const r=cvr();return r.useToast=lvr,n&&r.config(n),r}}const Zb=uvr.create();function pee(e){return Xur(e,n=>{if(con(n)&&!n._innerDataTag||V.isValidElement(n))return n})}const dvr=rct.PREFIX;class Qve extends m.PureComponent{constructor(n){super(n),this._onResize=r=>{const i=r&&r[1]&&r[1].target;if(i){const o=fr(i,"offsetHeight")||0,a=window.getComputedStyle(i)||{},s=parseInt(fr(a,"paddingTop"),10)||0,l=parseInt(fr(a,"paddingBottom"),10)||0,c=o-s-l;this.state.height!==c&&this.setState({height:o-s-l})}},this.state={height:this.props.defaultHeight||0}}componentDidMount(){const{height:n}=this.state}render(){const{children:n,defaultWidth:r,defaultHeight:i}=this.props,{height:o}=this.state;let a=!1;return(o===0||typeof o!="number")&&(a=!0),V.createElement(aG,{observeParent:!0,onResize:this._onResize},V.createElement("div",{style:{height:i,overflow:"visible"},className:`${dvr}-auto-wrapper`},!a&&n({height:o,width:r})))}}Qve.propTypes={defaultHeight:ie.oneOfType([ie.number,ie.string]),defaultWidth:ie.oneOfType([ie.number,ie.string])};Qve.defaultProps={defaultHeight:"100%",defaultWidth:"100%"};const Zve=V.createContext(null),fvr=e=>{let{prefixcls:n,level:r,isEnd:i,showLine:o}=e;const a=`${n}-indent-unit`,s=[];for(let l=0;l<r;l+=1)s.push(m.createElement("span",{key:l,className:Ce(a,{[`${a}-end`]:i[l]})}));return m.createElement("span",{"aria-hidden":"true",className:Ce(`${n}-indent`,{[`${n}-indent-show-line`]:o})},s)},pvr=m.memo(fvr);var hvr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const io=rct.PREFIX_OPTION;class nO extends m.PureComponent{constructor(n){super(n),this.onSelect=r=>{const{onNodeSelect:i}=this.context;i(r,this.props)},this.onExpand=r=>{const{onNodeExpand:i}=this.context;r&&r.stopPropagation(),r.nativeEvent.stopImmediatePropagation(),i(r,this.props)},this.onCheck=r=>{var i,o;if(this.isDisabled())return;const{onNodeCheck:a}=this.context;r.stopPropagation(),(o=(i=r.nativeEvent)===null||i===void 0?void 0:i.stopImmediatePropagation)===null||o===void 0||o.call(i),a(r,this.props)},this.handleCheckEnterPress=r=>{gg(r)&&this.onCheck(r)},this.onContextMenu=r=>{const{onNodeRightClick:i}=this.context;i(r,this.props)},this.onClick=r=>{const{expandAction:i}=this.context;if(i==="doubleClick"){this.debounceSelect(r);return}this.onSelect(r),i==="click"&&this.onExpand(r)},this.handleliEnterPress=r=>{gg(r)&&this.onClick(r)},this.onDoubleClick=r=>{const{expandAction:i,onNodeDoubleClick:o}=this.context;r.stopPropagation(),r.nativeEvent.stopImmediatePropagation(),za(o)&&o(r,this.props),i==="doubleClick"&&this.onExpand(r)},this.onDragStart=r=>{const{onNodeDragStart:i}=this.context;r.stopPropagation(),i(r,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}));try{r.dataTransfer.setData("text/plain","")}catch{}},this.onDragEnter=r=>{const{onNodeDragEnter:i}=this.context;r.preventDefault(),r.stopPropagation(),i(r,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragOver=r=>{const{onNodeDragOver:i}=this.context;r.preventDefault(),r.stopPropagation(),i(r,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragLeave=r=>{const{onNodeDragLeave:i}=this.context;r.stopPropagation(),i(r,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragEnd=r=>{const{onNodeDragEnd:i}=this.context;r.stopPropagation(),i(r,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDrop=r=>{const{onNodeDrop:i}=this.context;r.preventDefault(),r.stopPropagation(),i(r,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.getNodeChildren=()=>{const{children:r}=this.props;return r||[]},this.isLeaf=()=>{const{isLeaf:r,loaded:i}=this.props,{loadData:o}=this.context,a=this.getNodeChildren().length!==0;return r===!1?!1:r||!o&&!a||o&&i&&!a},this.isDisabled=()=>{const{disabled:r}=this.props,{treeDisabled:i}=this.context;return r===!1?!1:!!(i||r)},this.renderSwitcher=()=>this.isLeaf()?V.createElement("span",{className:Ce(`${io}-switcher`)},V.createElement("span",{className:`${io}-switcher-leaf-line`})):null,this.renderRealLabel=()=>{const{renderLabel:r}=this.context,{label:i,keyword:o,data:a,filtered:s,treeNodeFilterProp:l}=this.props;return za(r)?r(i,a,o):Es(i)&&s&&o?V.createElement(kve,{highlightClassName:`${io}-highlight`,component:"span",sourceString:i,searchWords:[o]}):i},this.setRef=r=>{this.refNode=r},this.state={},this.debounceSelect=xYe(this.onSelect,500,{leading:!0,trailing:!1})}renderArrow(){var n,r;const i=!this.isLeaf(),{loading:o,expanded:a,showLine:s,expandIcon:l}=this.props;if(o)return V.createElement(lG,{wrapperClassName:`${io}-spin-icon`});if(i){if(l){if(typeof l=="function")return l({onClick:this.onExpand,className:`${io}-expand-icon`,expanded:a});if(V.isValidElement(l)){const c=Ce(`${io}-expand-icon`,{[(n=l==null?void 0:l.props)===null||n===void 0?void 0:n.className]:(r=l==null?void 0:l.props)===null||r===void 0?void 0:r.className});return V.cloneElement(l,{onClick:this.onExpand,className:c})}else return l}return V.createElement(Kfr,{role:"button","aria-label":`${a?"Expand":"Collapse"} the tree item`,className:`${io}-expand-icon`,size:"small",onClick:this.onExpand})}return s?this.renderSwitcher():V.createElement("span",{className:`${io}-empty-icon`})}renderCheckbox(){const{checked:n,halfChecked:r,eventKey:i}=this.props,o=this.isDisabled();return V.createElement("div",{role:"none",onClick:this.onCheck,onKeyPress:this.handleCheckEnterPress},V.createElement(G0,{"aria-label":"Toggle the checked state of checkbox",value:i,indeterminate:r,checked:n,disabled:!!o}))}renderIcon(){const{directory:n,treeIcon:r}=this.context,{expanded:i,icon:o,data:a}=this.props;return o||(r?typeof r=="function"?r(this.props):r:n?this.isLeaf()?V.createElement(Efr,{className:`${io}-item-icon`}):i?V.createElement(Tfr,{className:`${io}-item-icon`}):V.createElement(wfr,{className:`${io}-item-icon`}):null)}renderEmptyNode(){const{emptyContent:n}=this.props,r=Ce(io,{[`${io}-empty`]:!0});return V.createElement("ul",{className:r},V.createElement("li",{className:`${io}-label ${io}-label-empty`,"x-semi-prop":"emptyContent"},n))}render(){const n=this.props,{eventKey:r,expanded:i,selected:o,checked:a,halfChecked:s,loading:l,active:c,level:u,empty:d,filtered:f,treeNodeFilterProp:p,display:h,style:g,isEnd:v,showLine:y}=n,_=hvr(n,["eventKey","expanded","selected","checked","halfChecked","loading","active","level","empty","filtered","treeNodeFilterProp","display","style","isEnd","showLine"]);if(d)return this.renderEmptyNode();const{multiple:S,draggable:b,renderFullLabel:E,dragOverNodeKey:w,dropPosition:C,labelEllipsis:x}=this.context,T=v[v.length-1],R=this.isDisabled(),O=w===r&&C===0,M=w===r&&C===-1,P=w===r&&C===1,k=Ce(io,{[`${io}-level-${u+1}`]:!0,[`${io}-fullLabel-level-${u+1}`]:E,[`${io}-collapsed`]:!i,[`${io}-disabled`]:!!R,[`${io}-selected`]:o,[`${io}-active`]:!S&&c,[`${io}-ellipsis`]:x,[`${io}-drag-over`]:!R&&O,[`${io}-draggable`]:!R&&b&&!E,[`${io}-fullLabel-draggable`]:!R&&b&&E,[`${io}-fullLabel-drag-over-gap-top`]:!R&&M&&E,[`${io}-fullLabel-drag-over-gap-bottom`]:!R&&P&&E,[`${io}-tree-node-last-leaf`]:T}),$={onClick:this.onClick,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,className:k,onExpand:this.onExpand,data:_.data,level:u,onCheck:this.onCheck,style:g,expandIcon:this.renderArrow(),checkStatus:{checked:a,halfChecked:s},expandStatus:{expanded:i,loading:l},filtered:f,searchWord:_.keyword},U={onDoubleClick:this.onDoubleClick,onDragStart:b?this.onDragStart:void 0,onDragEnter:b?this.onDragEnter:void 0,onDragOver:b?this.onDragOver:void 0,onDragLeave:b?this.onDragLeave:void 0,onDrop:b?this.onDrop:void 0,onDragEnd:b?this.onDragEnd:void 0,draggable:!R&&b||void 0};if(E){const Y=E(Object.assign({},$));return b?V.cloneElement(Y,Object.assign({ref:this.setRef},U)):ta(g)?Y:V.cloneElement(Y,{style:Object.assign(Object.assign({},fr(Y,["props","style"])),g)})}const z=Ce(`${io}-label`,{[`${io}-drag-over-gap-top`]:!R&&M,[`${io}-drag-over-gap-bottom`]:!R&&P}),D=fr(_,["data","children","length"]),B=Es(_.pos)?Number(_.pos.split("-")[u+1])+1:1;return V.createElement("li",Object.assign({className:k,role:"treeitem","aria-disabled":R,"aria-checked":a,"aria-selected":o,"aria-setsize":D,"aria-posinset":B,"aria-expanded":i,"aria-level":u+1,"data-key":r,onClick:this.onClick,onKeyPress:this.handleliEnterPress,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,ref:this.setRef,style:g},U),V.createElement(pvr,{showLine:y,prefixcls:io,level:u,isEnd:v}),this.renderArrow(),V.createElement("span",{className:z},S?this.renderCheckbox():null,this.renderIcon(),V.createElement("span",{className:`${io}-label-text`},this.renderRealLabel())))}}nO.contextType=Zve;nO.propTypes={expanded:ie.bool,selected:ie.bool,checked:ie.bool,halfChecked:ie.bool,active:ie.bool,disabled:ie.bool,loaded:ie.bool,loading:ie.bool,isLeaf:ie.bool,pos:ie.string,children:ie.oneOfType([ie.array,ie.object]),icon:ie.node,directory:ie.bool,keyword:ie.string,treeNodeFilterProp:ie.string,selectedKey:ie.string,motionKey:ie.oneOfType([ie.string,ie.arrayOf(ie.string)]),isEnd:ie.arrayOf(ie.bool),showLine:ie.bool,expandIcon:ie.oneOfType([ie.node,ie.func])};nO.defaultProps={selectedKey:"",motionKey:""};var gvr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};function mvr(e){const{open:n,children:r}=e,i=gvr(e,["open","children"]),[o,a]=m.useState(e.open);return m.useEffect(()=>{setTimeout(()=>{a(!e.open)},0)},[]),V.createElement(W0,Object.assign({},i,{isOpen:o}),r)}const d3e=e=>e.key;let Sct=class extends m.PureComponent{constructor(n){super(n),this.onMotionEnd=()=>{typeof this.props.onMotionEnd=="function"&&this.props.onMotionEnd(),this.setState({transitionNodes:[]})},this.state={transitionNodes:[]}}static getDerivedStateFromProps(n,r){const{flattenNodes:i=[],motionKeys:o,motionType:a,flattenList:s=[]}=n,l=!Nf(r.cachedMotionKeys,o)||!Nf(r.cachedData.map(g=>g.key),i.map(g=>g.key)),c=[...o];if(!l||!c.length)return null;const u=[],d=[];let f=0,p={};return(a==="hide"&&s?s:i).forEach((g,v)=>{const y=d3e(g);o.has(y)?(d.push(g),y===c[0]&&(f=v)):u.push(g)}),u.splice(f,0,d),p={transitionNodes:u,cachedData:i,cachedMotionKeys:o,cachedMotionType:a},p}render(){const{flattenNodes:n,motionType:r,searchTargetIsDeep:i,renderTreeNode:o}=this.props,{transitionNodes:a}=this.state;return(a.length&&!i?a:n).map(c=>{const u=Array.isArray(c);if(u&&!c.length)return null;if(u&&c.length){const d=d3e(c[0]);return V.createElement(mvr,{open:r==="hide",duration:200,motion:!!r,key:`motion-${d}`,onMotionEnd:this.onMotionEnd},c.map(f=>o(f)))}return o(c)})}};Sct.contextType=Zve;const Ect={PREFIX:`${ui}-tree-select`,PREFIX_TREE:`${ui}-tree`,PREFIX_OPTION:`${ui}-tree-select-option`},hu={SIZE_SET:["small","large","default"],SEARCH_POSITION_DROPDOWN:"dropdown",SEARCH_POSITION_TRIGGER:"trigger",STATUS:dcr};class vvr extends tc{constructor(n){super(Object.assign({},n)),this.handleKeyDown=r=>{r.key===Ylt&&this.getState("isOpen")&&this.close(r)},this._registerClickOutsideHandler=()=>{this._adapter.registerClickOutsideHandler(r=>{this.handlerTriggerBlur(r),this.close(r)})},this.clearInputValue=()=>{const{inputValue:r}=this.getStates();r&&this._adapter.updateInputValue("")},this.onClickSingleTriggerSearchItem=r=>{this.focusInput(!0)}}init(){const{searchAutoFocus:n,searchPosition:r,filterTreeNode:i}=this.getProps(),o=r===hu.SEARCH_POSITION_TRIGGER&&i,a=n&&o;this._setDropdownWidth();const s=!this._isDisabled();(this.getProp("defaultOpen")||a)&&s&&(this.open(),this._registerClickOutsideHandler()),a&&s&&this.handleTriggerFocus(null)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:n,dropdownMatchSelectWidth:r}=this.getProps();let i;r&&(n&&df(n.width)||n&&Es(n.width)&&!n.width.includes("%")?i=n.width:i=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(i))}_isMultiple(){return this.getProp("multiple")}_isAnimated(){return this.getProp("motionExpand")}_isDisabled(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.getProp("disabled")||n.disabled}_isExpandControlled(){return this.getProp("expandedKeys")}_isSelectToClose(){return!this.getProp("expandAction")}_isLoadControlled(){return this.getProp("loadedKeys")}_showFilteredOnly(){const{inputValue:n}=this.getStates(),{showFilteredOnly:r}=this.getProps();return!!n&&r}findDataForValue(n){const{value:r,defaultValue:i,keyMaps:o}=this.getProps(),a=fr(o,"value","value"),s=fr(o,"key","key");let l=[];return r?l=Array.isArray(r)?r:[r]:i&&(l=Array.isArray(i)?i:[i]),l.find(c=>c[a]===n||c[s]===n)}constructDataForValue(n){const{treeNodeLabelProp:r,keyMaps:i}=this.getProps(),o=fr(i,"key","key"),a=fr(i,"label",r);return{[o]:n,[a]:n}}getDataForKeyNotInKeyEntities(n){const{onChangeWithObject:r}=this.getProps();return r?this.findDataForValue(n):this.constructDataForValue(n)}getTreeNodeProps(n){const{expandedKeys:r=new Set([]),selectedKeys:i=[],checkedKeys:o=new Set([]),halfCheckedKeys:a=new Set([]),realCheckedKeys:s=new Set([]),keyEntities:l={},filteredKeys:c=new Set([]),inputValue:u="",loadedKeys:d,loadingKeys:f,filteredExpandedKeys:p=new Set([]),disabledKeys:h=new Set([])}=this.getStates(),{treeNodeFilterProp:g,checkRelation:v}=this.getProps(),y=l[n];if(!y)return null;let S=!1,b=!1;v==="related"?(S=o.has(n),b=a.has(n)):v==="unRelated"&&(S=s.has(n),b=!1);const w={eventKey:n,expanded:!!u?p.has(n):r.has(n),selected:i.includes(n),checked:S,halfChecked:b,pos:String(y?y.pos:""),level:y.level,filtered:c.has(n),keyword:u,treeNodeFilterProp:g,loading:f.has(n)&&!d.has(n),loaded:d.has(n)};return this.getProp("disableStrictly")&&h.has(n)&&(w.disabled=!0),w}handleNodeLoad(n,r,i,o){const{loadData:a}=this.getProps(),{key:s}=i;return!a||n.has(s)||r.has(s)?{}:(a(i).then(()=>{const l=new Set(this.getState("loadedKeys")),c=new Set(this.getState("loadingKeys")),u=l.add(s),d=new Set([...c]);d.delete(s),this._adapter.notifyLoad(u,i),this._isLoadControlled()||this._adapter.updateState({loadedKeys:u}),this._adapter.setState({loadingKeys:d}),o()}),{loadingKeys:r.add(s)})}focusInput(n){this._adapter.updateInputFocus(n)}_notifyMultipleChange(n,r){const{keyEntities:i}=this.getStates(),{leafOnly:o,checkRelation:a,keyMaps:s,autoMergeValue:l}=this.getProps();let c=[];a==="related"?c=l?Fh(n,i,o,!0):n:a==="unRelated"&&(c=n);const u=c.map(d=>i[d]&&i[d].key===d?i[d].data:this.getDataForKeyNotInKeyEntities(d));if(this.getProp("onChangeWithObject"))this._adapter.notifyChangeWithObject(u,r);else{const d=Xj(u,s);this._adapter.notifyChange(d,u,r)}}_notifyChange(n,r){const{keyEntities:i}=this.getStates(),{keyMaps:o}=this.getProps();if(this._isMultiple()&&Array.isArray(n))this._notifyMultipleChange(n,r);else{const a=ll(n)?n:i[n].data,s=ll(n)?n:Xj(a,o);this.getProp("onChangeWithObject")?this._adapter.notifyChangeWithObject(a,r):this._adapter.notifyChange(s,a,r)}}_notifyFocus(n){this._adapter.notifyFocus(n)}handleTriggerFocus(n){this._adapter.updateIsFocus(!0),this._notifyFocus(n),this._registerClickOutsideHandler()}_notifyBlur(n){this._adapter.notifyBlur(n)}handlerTriggerBlur(n){this.getState("isFocus")&&(this._adapter.updateIsFocus(!1),this._notifyBlur(n),this._adapter.unregisterClickOutsideHandler())}toggleHoverState(n){this._adapter.toggleHovering(n)}open(){this._adapter.openMenu(),this._setDropdownWidth()}close(n){this._adapter.closeMenu(),this.getProp("motionExpand")&&this._adapter.updateState({motionKeys:new Set([])})}handleClick(n){const r=this._isDisabled(),{isOpen:i,inputValue:o,isFocus:a}=this.getStates(),{searchPosition:s,clickTriggerToHide:l}=this.getProps();if(!r)if(a||this.handleTriggerFocus(n),i){if(s==="trigger"&&o)return;l&&this.close(n)}else this.open()}handleSelectionEnterPress(n){gg(n)&&this.handleClick(n)}handleClear(n){const{searchPosition:r,filterTreeNode:i}=this.getProps(),{inputValue:o,selectedKeys:a}=this.getStates(),s=this._isMultiple(),l=this._isControlledComponent(),c=s?[]:void 0;this._notifyChange(c,n),l||(this._adapter.rePositionDropdown(),this._adapter.updateState({selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([])})),i&&r===hu.SEARCH_POSITION_TRIGGER&&o!==""&&(ta(a)?this.handleInputChange(""):this.clearInput()),this._adapter.notifyClear(n)}handleClearEnterPress(n){gg(n)&&this.handleClear(n)}removeTag(n){const{disableStrictly:r,checkRelation:i,keyMaps:o}=this.getProps(),{keyEntities:a,disabledKeys:s,realCheckedKeys:l}=this.getStates(),c=a[n]&&a[n].key===n?a[n].data:this.getDataForKeyNotInKeyEntities(n),u=fr(o,"disabled","disabled");if(!(c[u]||r&&s.has(n))){if(i==="unRelated"){const d=new Set(l);d.delete(n),this._notifyChange([...d],null),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:d}),this._adapter.rePositionDropdown())}else if(i==="related"){const{checkedKeys:d,halfCheckedKeys:f}=this.calcCheckedKeys(n,!1);this._notifyChange([...d],null),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:d,halfCheckedKeys:f}),this._adapter.rePositionDropdown())}this._adapter.notifySelect(n,!1,c),this._adapter.rePositionDropdown()}}clearInput(){const{flattenNodes:n,expandedKeys:r,selectedKeys:i,keyEntities:o,treeData:a}=this.getStates(),{keyMaps:s}=this.getProps(),l=new Set(r);this._isExpandControlled();const c=xm(i,o,!1);c.forEach(d=>l.add(d));const u=Ob(a,l,s);this._adapter.updateState({expandedKeys:l,flattenNodes:u,inputValue:"",motionKeys:new Set([]),filteredKeys:new Set([]),filteredExpandedKeys:new Set(c),filteredShownKeys:new Set([])}),this._adapter.rePositionDropdown()}handleInputChange(n){this._adapter.updateInputValue(n);const{flattenNodes:r,expandedKeys:i,selectedKeys:o,keyEntities:a,treeData:s}=this.getStates(),{showFilteredOnly:l,filterTreeNode:c,treeNodeFilterProp:u,keyMaps:d}=this.getProps(),f=u!=="label"?u:fr(d,"label","label"),p=new Set(i);let h=[],g=[],v=[],y=[],_=new Set([]);if(!n)v=xm(o,a,!1),v.forEach(b=>p.add(b)),y=Ob(s,p,d);else{const b=Object.values(a).filter(w=>{const{data:C}=w;return oct(n,C,c,f)});h=b.map(w=>w.data),g=b.map(w=>w.key),v=xm(g,a,!1);const E=wm(g,a,!0);_=new Set([...E,...v]),y=Ob(s,new Set(v),d,l&&_)}const S=new Set(v);this._adapter.notifySearch(n,Array.from(S),h),this._adapter.updateState({expandedKeys:p,flattenNodes:y,motionKeys:new Set([]),filteredKeys:new Set(g),filteredExpandedKeys:S,filteredShownKeys:_}),this._adapter.rePositionDropdown()}handleNodeSelect(n,r){this._isDisabled(r)||(this._isMultiple()?this.handleMultipleSelect(n,r):this.handleSingleSelect(n,r))}handleSingleSelect(n,r){let i=[...this.getState("selectedKeys")];const{clickToHide:o}=this.getProps(),{selected:a,eventKey:s,data:l}=r;this._adapter.notifySelect(s,!0,l),!i.includes(s)&&!a&&(i=[s],this._notifyChange(s,n),this._isControlledComponent()||this._adapter.updateState({selectedKeys:i})),o&&(this._isSelectToClose()||!l.children)&&(this.close(n),this.handlerTriggerBlur(n))}calcCheckedKeys(n,r){const{keyEntities:i}=this.getStates(),o=new Set(this.getState("checkedKeys")),a=new Set(this.getState("halfCheckedKeys"));return r?act(n,i,o,a):sct(n,i,o,a)}handleMultipleSelect(n,r){const{searchPosition:i,disableStrictly:o,checkRelation:a}=this.getProps(),{inputValue:s,realCheckedKeys:l}=this.getStates(),{checked:c,eventKey:u,data:d}=r;if(a==="related"){const f=o?this.calcCheckedStatus(!c,u):!c,{checkedKeys:p,halfCheckedKeys:h}=o?this.calcNonDisabledCheckedKeys(u,f):this.calcCheckedKeys(u,f);this._adapter.notifySelect(u,f,d),this._notifyChange([...p],n),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:p,halfCheckedKeys:h}),this._adapter.rePositionDropdown())}else if(a==="unRelated"){const f=new Set(l);let p;l.has(u)?(f.delete(u),p=!1):(f.add(u),p=!0),this._adapter.notifySelect(u,p,d),this._notifyChange([...f],n),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:f}),this._adapter.rePositionDropdown())}i===hu.SEARCH_POSITION_TRIGGER&&s!==""&&this._adapter.updateState({inputValue:""})}calcNonDisabledCheckedKeys(n,r){const{keyEntities:i,disabledKeys:o}=this.getStates(),a=new Set(this.getState("checkedKeys")),s=Fh(wm([n],i,!1),i,!0);if(!s.some(d=>o.has(d)))return this.calcCheckedKeys(n,r);const c=s.filter(d=>!o.has(d)),u=r?[...c,...a]:qj(Fh([...a],i,!0,!0),c);return y$(u,i)}calcCheckedStatus(n,r){if(!n)return n;const{checkedKeys:i,keyEntities:o,disabledKeys:a}=this.getStates(),s=Fh(wm([r],o,!1),o,!0);return s.some(d=>a.has(d))?!s.filter(d=>!a.has(d)).every(d=>i.has(d)):n}handleNodeExpandInSearch(n,r){const{treeData:i,filteredShownKeys:o,keyEntities:a}=this.getStates(),{keyMaps:s}=this.getProps(),l=this._showFilteredOnly(),c=new Set(this.getState("filteredExpandedKeys"));let u="show";const{eventKey:d,expanded:f,data:p}=r;if(f?c.has(d)&&(c.delete(d),u="hide"):c.add(d),this._adapter.cacheFlattenNodes(u==="hide"&&this._isAnimated()),!this._isExpandControlled()){const h=Ob(i,c,s,l&&o),g=this._isAnimated()?J$e(d,c,a):[],v={filteredExpandedKeys:c,flattenNodes:h,motionKeys:new Set(g),motionType:u};this._adapter.updateState(v)}this._adapter.notifyExpand(c,{expanded:!f,node:p})}handleNodeExpand(n,r){const{loadData:i,keyMaps:o}=this.getProps(),{inputValue:a,keyEntities:s}=this.getStates(),l=!!a;if(!i&&(!r.children||!r.children.length))return;const c=this._isExpandControlled();if(l){this.handleNodeExpandInSearch(n,r);return}const{treeData:u}=this.getStates(),d=new Set(this.getState("expandedKeys"));let f="show";const{eventKey:p,expanded:h,data:g}=r;if(h?d.has(p)&&(d.delete(p),f="hide"):d.add(p),this._adapter.cacheFlattenNodes(f==="hide"&&this._isAnimated()),!c){const v=Ob(u,d,o),y=this._isAnimated()?J$e(p,d,s):[],_={expandedKeys:d,flattenNodes:v,motionKeys:new Set(y),motionType:f};this._adapter.updateState(_)}this._adapter.notifyExpand(d,{expanded:!h,node:g})}getRenderTextInSingle(){const{renderSelectedItem:n,treeNodeLabelProp:r,keyMaps:i}=this.getProps(),{selectedKeys:o,keyEntities:a}=this.getStates(),s=fr(i,"label",r),l=za(n)?n:d=>fr(d,s,null);let c;if(o.length){const d=o[0];c=a[d]&&a[d].key===d?a[d].data:this.getDataForKeyNotInKeyEntities(d)}return c?l(c):null}handleInputTriggerBlur(){this._adapter.updateState({inputTriggerFocus:!1})}handleInputTriggerFocus(){this.clearInput(),this._adapter.updateState({inputTriggerFocus:!0})}setLoadKeys(n,r){this._adapter.updateLoadKeys(n,r)}handlePopoverVisibleChange(n){const{filterTreeNode:r,searchAutoFocus:i,searchPosition:o}=this.getProps();n===!1&&r&&this.clearInputValue(),r&&o===hu.SEARCH_POSITION_DROPDOWN&&n&&i&&this.focusInput(!0)}handleAfterClose(){const{filterTreeNode:n}=this.getProps();n&&this.clearInput()}}var yvr=function(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r};const Bi=Ect.PREFIX,OE=Ect.PREFIX_TREE,_vr=0;class vG extends fl{constructor(n){super(n),this.renderSuffix=()=>{const{suffix:r}=this.props,i=Ce({[`${Bi}-suffix`]:!0,[`${Bi}-suffix-text`]:r&&Es(r),[`${Bi}-suffix-icon`]:of(r)});return V.createElement("div",{className:i,"x-semi-prop":"suffix"},r)},this.renderPrefix=()=>{const{prefix:r,insetLabel:i,insetLabelId:o}=this.props,a=r||i,s=Ce({[`${Bi}-prefix`]:!0,[`${Bi}-inset-label`]:i,[`${Bi}-prefix-text`]:a&&Es(a),[`${Bi}-prefix-icon`]:of(a)});return V.createElement("div",{className:s,id:o,"x-semi-prop":"prefix,insetLabel"},a)},this.renderContent=()=>{const{dropdownMinWidth:r}=this.state,{dropdownStyle:i,dropdownClassName:o}=this.props,a=Object.assign({minWidth:r},i),s=Ce(o,`${Bi}-popover`);return V.createElement("div",{className:s,style:a,onKeyDown:this.foundation.handleKeyDown},this.renderTree())},this.removeTag=r=>{this.foundation.removeTag(r)},this.handleClick=r=>{this.foundation.handleClick(r)},this.getDataForKeyNotInKeyEntities=r=>this.foundation.getDataForKeyNotInKeyEntities(r),this.handleSelectionEnterPress=r=>{this.foundation.handleSelectionEnterPress(r)},this.hasValue=()=>{const{multiple:r,checkRelation:i}=this.props,{realCheckedKeys:o,checkedKeys:a,selectedKeys:s}=this.state;let l=!1;return r?i==="related"?l=!!a.size:i==="unRelated"&&(l=!!o.size):l=!!s.length,l},this.showClearBtn=()=>{const{showClear:r,disabled:i,searchPosition:o}=this.props,{inputValue:a,isOpen:s,isHovering:l}=this.state,c=o===hu.SEARCH_POSITION_TRIGGER&&a;return r&&(this.hasValue()||c)&&!i&&(s||l)},this.renderTagList=r=>{const{keyEntities:i,disabledKeys:o}=this.state,{treeNodeLabelProp:a,leafOnly:s,disabled:l,disableStrictly:c,size:u,renderSelectedItem:d,keyMaps:f}=this.props,p=fr(f,"label",a),h=za(d)?d:v=>({isRenderInTag:!0,content:fr(v,p,null)}),g=[];return r.forEach((v,y)=>{const _=i[v]&&i[v].key===v?i[v].data:this.getDataForKeyNotInKeyEntities(v),S=(x,T)=>{T&&typeof T.preventDefault=="function"&&T.preventDefault(),this.removeTag(v)},{content:b,isRenderInTag:E}=_?h(_,{index:y,onClose:S}):{};if(BC(b)||ll(b))return;const C={closable:!(l||_.disabled||c&&o.has(_.key)),color:"white",visible:!0,onClose:S,key:`tag-${v}-${y}`,size:u==="small"?"small":"large"};E?g.push(V.createElement(mf,Object.assign({},C),b)):g.push(b)}),g},this.renderSingleTriggerSearchItem=()=>{const{placeholder:r,disabled:i}=this.props,{inputTriggerFocus:o}=this.state,a=this.foundation.getRenderTextInSingle(),s=Ce(`${Bi}-selection-TriggerSearchItem`,{[`${Bi}-selection-TriggerSearchItem-placeholder`]:(o||!a)&&!i,[`${Bi}-selection-TriggerSearchItem-disabled`]:i});return V.createElement("span",{className:s,onClick:this.foundation.onClickSingleTriggerSearchItem},a||r)},this.renderSingleTriggerSearch=()=>{const{inputValue:r}=this.state;return V.createElement(V.Fragment,null,this.renderInput(),!r&&this.renderSingleTriggerSearchItem())},this.renderSelectContent=r=>{const{multiple:i,placeholder:o,maxTagCount:a,searchPosition:s,filterTreeNode:l,showRestTagsPopover:c,restTagsPopoverProps:u}=this.props;if(l&&s===hu.SEARCH_POSITION_TRIGGER)return i?this.renderTagInput(r):this.renderSingleTriggerSearch();if(!i||!this.hasValue()){const p=this.foundation.getRenderTextInSingle(),h=Ce(`${Bi}-selection-content`,{[`${Bi}-selection-placeholder`]:!p});return V.createElement("span",{className:h},p||o)}const f=this.renderTagList(r);return V.createElement(Wve,{maxTagCount:a,tagList:f,size:"large",mode:"custom",showPopover:c,popoverProps:u})},this.handleClear=r=>{r&&r.stopPropagation(),this.foundation.handleClear(r)},this.handleClearEnterPress=r=>{r&&r.stopPropagation(),this.foundation.handleClearEnterPress(r)},this.handleMouseOver=r=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=r=>{this.foundation.toggleHoverState(!1)},this.search=r=>{const{isOpen:i}=this.state;i||this.foundation.open(),this.foundation.handleInputChange(r)},this.close=()=>{this.foundation.close(null)},this.renderArrow=()=>{const r=this.showClearBtn(),{arrowIcon:i}=this.props;return r?null:i?V.createElement("div",{className:Ce(`${Bi}-arrow`),"x-semi-prop":"arrowIcon"},i):null},this.renderClearBtn=()=>{const r=this.showClearBtn(),{clearIcon:i}=this.props,o=Ce(`${Bi}-clearbtn`);return r?V.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TreeSelect value",className:o,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress},i||V.createElement(iG,null)):null},this.renderSelection=()=>{const r=this.props,{disabled:i,multiple:o,filterTreeNode:a,validateStatus:s,prefix:l,suffix:c,style:u,size:d,insetLabel:f,className:p,placeholder:h,showClear:g,leafOnly:v,searchPosition:y,triggerRender:_,borderless:S,autoMergeValue:b,checkRelation:E}=r,w=yvr(r,["disabled","multiple","filterTreeNode","validateStatus","prefix","suffix","style","size","insetLabel","className","placeholder","showClear","leafOnly","searchPosition","triggerRender","borderless","autoMergeValue","checkRelation"]),{inputValue:C,selectedKeys:x,checkedKeys:T,keyEntities:R,isFocus:O,realCheckedKeys:M}=this.state,P=!!a,k=typeof _=="function",$=g?{onMouseEnter:H=>this.handleMouseOver(H),onMouseLeave:H=>this.handleMouseLeave(H)}:{},U=y===hu.SEARCH_POSITION_TRIGGER&&P,z=U&&ta(T),D=U&&!ta(T),B=k?Ce(p):Ce(Bi,{[`${Bi}-borderless`]:S,[`${Bi}-focus`]:O,[`${Bi}-disabled`]:i,[`${Bi}-single`]:!o,[`${Bi}-multiple`]:o,[`${Bi}-multiple-tagInput-empty`]:o&&z,[`${Bi}-multiple-tagInput-notEmpty`]:o&&D,[`${Bi}-filterable`]:P,[`${Bi}-error`]:s==="error",[`${Bi}-warning`]:s==="warning",[`${Bi}-small`]:d==="small",[`${Bi}-large`]:d==="large",[`${Bi}-with-prefix`]:l||f,[`${Bi}-with-suffix`]:c,[`${Bi}-with-suffix`]:c},p);let Y,q=[];o?b?E==="related"?q=Fh([...T],R,v,!0):E==="unRelated"&&(q=[...M]):q=[...T]:q=x,k?Y=V.createElement(Dve,{inputValue:C,value:q.map(H=>fr(R,[H,"data"])),disabled:i,placeholder:h,onClear:this.handleClear,componentName:"TreeSelect",triggerRender:_,componentProps:Object.assign({},this.props),onSearch:this.search,onRemove:this.removeTag}):Y=[V.createElement(m.Fragment,{key:"prefix"},l||f?this.renderPrefix():null),V.createElement(m.Fragment,{key:"selection"},V.createElement("div",{className:`${Bi}-selection`},this.renderSelectContent(q))),V.createElement(m.Fragment,{key:"suffix"},c?this.renderSuffix():null),V.createElement(m.Fragment,{key:"clearBtn"},g||U&&C?this.renderClearBtn():null),V.createElement(m.Fragment,{key:"arrow"},this.renderArrow())];const K=i?null:0;return V.createElement("div",Object.assign({role:"combobox","aria-disabled":i,"aria-haspopup":"tree",tabIndex:K,className:B,style:u,ref:this.triggerRef,onClick:this.handleClick,onKeyPress:this.handleSelectionEnterPress,onKeyDown:this.foundation.handleKeyDown,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},$,this.getDataAttr(w)),Y)},this.renderTagItem=(r,i)=>{const{keyEntities:o,disabledKeys:a}=this.state,{size:s,leafOnly:l,disabled:c,disableStrictly:u,renderSelectedItem:d,treeNodeLabelProp:f,keyMaps:p}=this.props,h=fr(p,"label",f),v=Fh([r],o,l,!0).map(R=>o[r]&&o[r].key===r?o[r].data:this.getDataForKeyNotInKeyEntities(r)),y=Xj(v,p),_=Ce(`${Bi}-selection-tag`,{[`${Bi}-selection-tag-disabled`]:c}),S=!ta(v)&&!ta(v[0]),b=u&&S&&a.has(v[0].key),E=S&&!v[0].disabled&&!c&&!b,w=(R,O)=>{O.preventDefault(),this.removeTag(r)},C={size:s==="small"?"small":"large",key:`tag-${y}-${i}`,color:"white",className:_,closable:E,onClose:w},x=v[0],T=za(d)?d:R=>({isRenderInTag:!0,content:fr(R,h,null)});if(za(T)){const{content:R,isRenderInTag:O}=x?T(x,{index:i,onClose:w}):{};return O?V.createElement(mf,Object.assign({},C),R):R}return V.createElement(mf,Object.assign({},C),y)},this.renderTagInput=r=>{const{disabled:i,size:o,searchAutoFocus:a,placeholder:s,maxTagCount:l,showRestTagsPopover:c,restTagsPopoverProps:u,searchPosition:d,filterTreeNode:f,preventScroll:p}=this.props,{inputValue:h}=this.state,g=f&&d===hu.SEARCH_POSITION_TRIGGER?a:void 0;return V.createElement(gG,{maxTagCount:l,disabled:i,onInputChange:v=>this.search(v),ref:this.tagInputRef,placeholder:s,value:r,inputValue:h,size:o,showRestTagsPopover:c,restTagsPopoverProps:u,autoFocus:g,renderTagItem:(v,y)=>this.renderTagItem(v,y),onRemove:v=>this.removeTag(v),expandRestTagsOnClick:!1,preventScroll:p})},this.renderInput=()=>{const{searchPlaceholder:r,searchRender:i,showSearchClear:o,searchPosition:a,searchAutoFocus:s,multiple:l,disabled:c,preventScroll:u}=this.props,{inputValue:d,inputTriggerFocus:f}=this.state,p=a===hu.SEARCH_POSITION_DROPDOWN,h=Ce({[`${OE}-input`]:p,[`${Bi}-inputTrigger`]:!p}),g={value:d,className:h,preventScroll:u,onChange:E=>this.search(E)},_=p?{showClear:o,prefix:V.createElement(Bfr,null)}:{autofocus:s,onFocus:E=>this.foundation.handleInputTriggerFocus(),onBlur:E=>this.foundation.handleInputTriggerBlur(),disabled:c},S=Ce({[`${OE}-search-wrapper`]:p,[`${Bi}-triggerSingleSearch-wrapper`]:!p&&!l,[`${Bi}-triggerSingleSearch-upper`]:!p&&f}),b=typeof i=="function"||typeof i=="boolean";return b&&!i?null:V.createElement("div",{className:S},V.createElement(z0,{componentName:"TreeSelect"},E=>{const w=p?r||E.searchPlaceholder:"";return b?i(Object.assign(Object.assign(Object.assign({},_),g),{placeholder:w})):V.createElement(Hy,Object.assign({"aria-label":"Filter TreeSelect item",ref:this.inputRef,placeholder:w},g,_))}))},this.renderEmpty=()=>{const{emptyContent:r}=this.props;return r===null?null:r?V.createElement(nO,{empty:!0,emptyContent:this.props.emptyContent}):V.createElement(z0,{componentName:"Tree"},i=>V.createElement(nO,{empty:!0,emptyContent:i.emptyText}))},this.onNodeLoad=r=>new Promise(i=>this.foundation.setLoadKeys(r,i)),this.onNodeSelect=(r,i)=>{this.foundation.handleNodeSelect(r,i)},this.onNodeCheck=(r,i)=>{this.foundation.handleNodeSelect(r,i)},this.onNodeExpand=(r,i)=>{this.foundation.handleNodeExpand(r,i)},this.getTreeNodeRequiredProps=()=>{const{expandedKeys:r,selectedKeys:i,checkedKeys:o,halfCheckedKeys:a,keyEntities:s,filteredKeys:l}=this.state;return{expandedKeys:r||new Set,selectedKeys:i||[],checkedKeys:o||new Set,halfCheckedKeys:a||new Set,filteredKeys:l||new Set,keyEntities:s}},this.getTreeNodeKey=r=>{const{data:i}=r,{key:o}=i;return o},this.handlePopoverVisibleChange=r=>{this.foundation.handlePopoverVisibleChange(r)},this.afterClose=()=>{this.foundation.handleAfterClose()},this.renderTreeNode=(r,i,o)=>{const{data:a,key:s}=r,l=this.foundation.getTreeNodeProps(s),{showLine:c}=this.props;if(!l)return null;const u=Kj(r,["key","label","disabled","isLeaf","icon","isEnd"]),{keyMaps:d,expandIcon:f}=this.props,p=a[fr(d,"children","children")];return!ll(p)&&(u.children=p),V.createElement(nO,Object.assign({},l,a,u,{data:a,style:o,showLine:c,expandIcon:f}))},this.itemKey=(r,i)=>{const{visibleOptions:o}=i;return o[r].key},this.renderNodeList=()=>{const{flattenNodes:r,cachedFlattenNodes:i,motionKeys:o,motionType:a,filteredKeys:s}=this.state,{direction:l}=this.context,{virtualize:c,motionExpand:u}=this.props,d="expandedKeys"in this.props;if(!c||ta(c))return V.createElement(Sct,{flattenNodes:r,flattenList:i,motionKeys:u?o:new Set([]),motionType:a,searchTargetIsDeep:d&&u&&ta(o)&&!ta(s),onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode});const f={visibleOptions:r,renderOption:this.renderTreeNode};return V.createElement(Qve,{defaultHeight:c.height,defaultWidth:c.width},p=>{let{height:h,width:g}=p;return V.createElement(fct,{itemCount:r.length,itemSize:c.itemSize,height:h,width:g,itemKey:this.itemKey,itemData:f,className:`${OE}-virtual-list`,style:{direction:l}},Jmr)})},this.renderTree=()=>{const{keyEntities:r,motionKeys:i,motionType:o,inputValue:a,filteredKeys:s,flattenNodes:l,checkedKeys:c,realCheckedKeys:u}=this.state,{loadData:d,filterTreeNode:f,disabled:p,multiple:h,showFilteredOnly:g,motionExpand:v,outerBottomSlot:y,outerTopSlot:_,expandAction:S,labelEllipsis:b,virtualize:E,optionListStyle:w,searchPosition:C,renderLabel:x,renderFullLabel:T,checkRelation:R,emptyContent:O}=this.props,M=Ce(`${OE}-wrapper`),P=!!a&&!s.size,k=ta(l)||g&&P,$=C===hu.SEARCH_POSITION_DROPDOWN,U=Ce(`${OE}-option-list ${OE}-option-list-block`,{[`${OE}-option-list-hidden`]:O===null&&k});return V.createElement(Zve.Provider,{value:{loadData:d,treeDisabled:p,motion:v,motionKeys:i,motionType:o,expandAction:S,filterTreeNode:f,keyEntities:r,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeRightClick:vr,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,renderTreeNode:this.renderTreeNode,multiple:h,showFilteredOnly:g,isSearching:!!a,renderLabel:x,renderFullLabel:T,labelEllipsis:typeof b>"u"?E:b}},V.createElement("div",{className:M},_,!_&&f&&$&&this.renderInput(),V.createElement("div",{className:U,role:"tree","aria-multiselectable":!!h,style:w},k?this.renderEmpty():h?V.createElement(pG,{value:Array.from(R==="related"?c:u)},this.renderNodeList()):this.renderNodeList()),y))},this.state={inputTriggerFocus:!1,isOpen:!1,isFocus:!1,rePosKey:_vr,dropdownMinWidth:null,inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],cachedFlattenNodes:void 0,selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),disabledKeys:new Set,motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(n.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,isHovering:!1,cachedKeyValuePairs:{},loadedKeys:new Set,loadingKeys:new Set},this.inputRef=V.createRef(),this.tagInputRef=V.createRef(),this.triggerRef=V.createRef(),this.optionsRef=V.createRef(),this.clickOutsideHandler=null,this.foundation=new vvr(this.adapter),this.treeSelectID=Math.random().toString(36).slice(2),this.onMotionEnd=()=>{this.adapter.rePositionDropdown()}}static getDerivedStateFromProps(n,r){const{prevProps:i,rePosKey:o}=r,{keyMaps:a}=n,s=_=>!i&&_ in n||i&&!Nf(i[_],n[_]);let l;const c=n.onChangeWithObject;let u=r.keyEntities||{},d=r.cachedKeyValuePairs||{};const f={prevProps:n},p=s("treeData"),h=s("expandedKeys"),g=!!(n.filterTreeNode&&r.inputValue&&r.inputValue.length);if(p){l=n.treeData,f.treeData=l;const _=Zgr(l,a);f.keyEntities=Object.assign({},_.keyEntities),u=f.keyEntities,f.cachedKeyValuePairs=Object.assign({},_.valueEntities),d=f.cachedKeyValuePairs}l&&n.motion&&!Nf(Object.keys(f.keyEntities),Object.keys(r.keyEntities))&&i&&n.motion&&(f.motionKeys=new Set([]),f.motionType=null);const v=p&&n.expandAll;if(g){let _;if(l&&(_=tmr({treeData:l,inputValue:r.inputValue,filterTreeNode:n.filterTreeNode,filterProps:n.treeNodeFilterProp,showFilteredOnly:n.showFilteredOnly,keyEntities:f.keyEntities,prevExpandedKeys:[...r.filteredExpandedKeys],keyMaps:a}),f.flattenNodes=_.flattenNodes,f.motionKeys=new Set([]),f.filteredKeys=_.filteredKeys,f.filteredShownKeys=_.filteredShownKeys,f.filteredExpandedKeys=_.filteredExpandedKeys),n.expandedKeys){if(f.filteredExpandedKeys=lee(n.expandedKeys,u,n.autoExpandParent||!i),i&&n.motion){const S=r?r.filteredExpandedKeys:new Set([]);if(!l){const b=Z$e(S,f.filteredExpandedKeys,u);let{motionKeys:E}=b;const{motionType:w}=b;n.showFilteredOnly&&(E=E.filter(C=>r.filteredShownKeys.has(C))),w==="hide"&&(f.cachedFlattenNodes=pee(r.flattenNodes)),f.motionKeys=new Set(E),f.motionType=w}}f.flattenNodes=Ob(l||r.treeData,f.filteredExpandedKeys||r.filteredExpandedKeys,a,n.showFilteredOnly&&r.filteredShownKeys)}}else{if(h||i&&s("autoExpandParent")){if(f.expandedKeys=lee(n.expandedKeys,u,n.autoExpandParent||!i),i&&n.motion&&!l){const{motionKeys:_,motionType:S}=Z$e(r.expandedKeys,f.expandedKeys,u);f.motionKeys=new Set(_),f.motionType=S,S==="hide"&&(f.cachedFlattenNodes=pee(r.flattenNodes))}}else!i&&(n.defaultExpandAll||n.expandAll)||v?f.expandedKeys=new Set(Object.keys(u)):!i&&n.defaultExpandedKeys?f.expandedKeys=lee(n.defaultExpandedKeys,u):!i&&n.defaultValue?f.expandedKeys=Q$e(nb(n.defaultValue,c,a),u,n.multiple,d):!i&&n.value&&(f.expandedKeys=Q$e(nb(n.value,c,a),u,n.multiple,d));if(f.expandedKeys||delete f.expandedKeys,l||f.expandedKeys){const _=Ob(l||r.treeData,f.expandedKeys||r.expandedKeys,a);f.flattenNodes=_}}const y=n.multiple;if(!y)s("value")?f.selectedKeys=FE(nb(n.value,c,a),d,y):!i&&n.defaultValue?f.selectedKeys=FE(nb(n.defaultValue,c,a),d,y):l&&(n.value?f.selectedKeys=FE(nb(n.value,c,a)||"",d,y):f.selectedKeys=e3e(r.selectedKeys,u));else{let _;if(s("value")?_=FE(nb(n.value,c,a),d,y):!i&&n.defaultValue?_=FE(nb(n.defaultValue,c,a),d,y):l&&(n.value?_=FE(nb(n.value,c,a)||[],d,y):_=e3e(n.checkRelation==="related"?r.checkedKeys:r.realCheckedKeys,u)),_){if(n.checkRelation==="unRelated")f.realCheckedKeys=new Set(_);else if(n.checkRelation==="related"){const{checkedKeys:S,halfCheckedKeys:b}=y$(_,u);f.checkedKeys=S,f.halfCheckedKeys=b}}}return s("loadedKeys")&&(f.loadedKeys=new Set(n.loadedKeys)),(p||s("value"))&&(f.rePosKey=o+1),l&&n.disableStrictly&&n.checkRelation==="related"&&(f.disabledKeys=lct(u,a)),f}get adapter(){var n=this;const r={updateInputValue:a=>{this.setState({inputValue:a})}},i={registerClickOutsideHandler:a=>{this.adapter.unregisterClickOutsideHandler();const s=l=>{const c=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,d=Gl.findDOMNode(c),f=l.target,p=l.composedPath&&l.composedPath()||[f];d&&(!d.contains(f)||!d.contains(f.parentNode))&&u&&!u.contains(f)&&!(p.includes(u)||p.includes(d))&&a(l)};this.clickOutsideHandler=s,document.addEventListener("mousedown",s,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{rePosKey:a}=this.state;a=a+1,this.setState({rePosKey:a})}},o={updateState:a=>{this.setState(Object.assign({},a))},notifySelect:(a,s,l)=>{this.props.onSelect&&this.props.onSelect(a,s,l)},notifySearch:(a,s,l)=>{this.props.onSearch&&this.props.onSearch(a,s,l)},cacheFlattenNodes:a=>{this.setState({cachedFlattenNodes:a?pee(this.state.flattenNodes):void 0})},notifyLoad:(a,s)=>{const{onLoad:l}=this.props;za(l)&&l(a,s)},notifyClear:a=>{this.props.onClear&&this.props.onClear(a)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),r),i),o),{updateLoadKeys:(a,s)=>{this.setState(l=>{let{loadedKeys:c,loadingKeys:u}=l;return this.foundation.handleNodeLoad(c,u,a,s)})},updateState:a=>{this.setState(Object.assign({},a))},openMenu:()=>{this.setState({isOpen:!0},()=>{this.props.onVisibleChange(!0)})},closeMenu:a=>{this.setState({isOpen:!1},()=>{a&&a(),this.props.onVisibleChange(!1)})},getTriggerWidth:()=>{const a=this.triggerRef.current;return a&&a.getBoundingClientRect().width},setOptionWrapperWidth:a=>{this.setState({dropdownMinWidth:a})},notifyChange:(a,s,l)=>{this.props.onChange&&this.props.onChange(a,s,l)},notifyChangeWithObject:(a,s)=>{this.props.onChange&&this.props.onChange(a,s)},notifyExpand:(a,s)=>{let{expanded:l,node:c}=s;this.props.onExpand&&this.props.onExpand([...a],{expanded:l,node:c}),l&&this.props.loadData&&this.onNodeLoad(c)},notifyFocus:function(){n.props.onFocus&&n.props.onFocus(...arguments)},notifyBlur:function(){n.props.onBlur&&n.props.onBlur(...arguments)},toggleHovering:a=>{this.setState({isHovering:a})},updateInputFocus:a=>{if(a){if(this.inputRef&&this.inputRef.current){const{preventScroll:s}=this.props;this.inputRef.current.focus({preventScroll:s})}this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.focus()}else this.inputRef&&this.inputRef.current&&this.inputRef.current.blur(),this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.blur()},updateIsFocus:a=>{this.setState({isFocus:a})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const n=this.renderContent(),{motion:r,zIndex:i,mouseLeaveDelay:o,mouseEnterDelay:a,autoAdjustOverflow:s,stopPropagation:l,getPopupContainer:c,dropdownMargin:u,position:d}=this.props,{isOpen:f,rePosKey:p}=this.state,h=this.renderSelection(),g=d||"bottomLeft";return V.createElement(wu,{stopPropagation:l,getPopupContainer:c,zIndex:i,motion:r,margin:u,ref:this.optionsRef,content:n,visible:f,trigger:"custom",rePosKey:p,position:g,autoAdjustOverflow:s,mouseLeaveDelay:o,mouseEnterDelay:a,onVisibleChange:this.handlePopoverVisibleChange,afterClose:this.afterClose},h)}}vG.contextType=Ng;vG.propTypes={"aria-describedby":ie.string,"aria-errormessage":ie.string,"aria-invalid":ie.bool,"aria-labelledby":ie.string,"aria-required":ie.bool,borderless:ie.bool,loadedKeys:ie.arrayOf(ie.string),loadData:ie.func,onLoad:ie.func,arrowIcon:ie.node,clearIcon:ie.node,defaultOpen:ie.bool,defaultValue:ie.oneOfType([ie.string,ie.array,ie.object]),defaultExpandAll:ie.bool,defaultExpandedKeys:ie.array,expandAll:ie.bool,disabled:ie.bool,disableStrictly:ie.bool,filterTreeNode:ie.oneOfType([ie.func,ie.bool]),multiple:ie.bool,searchPlaceholder:ie.string,searchAutoFocus:ie.bool,virtualize:ie.object,treeNodeFilterProp:ie.string,onChange:ie.func,onClear:ie.func,onSearch:ie.func,onSelect:ie.func,onExpand:ie.func,onChangeWithObject:ie.bool,onBlur:ie.func,onFocus:ie.func,value:ie.oneOfType([ie.string,ie.number,ie.array,ie.object]),expandedKeys:ie.array,autoExpandParent:ie.bool,showClear:ie.bool,showSearchClear:ie.bool,autoAdjustOverflow:ie.bool,showFilteredOnly:ie.bool,showLine:ie.bool,motionExpand:ie.bool,emptyContent:ie.node,keyMaps:ie.object,leafOnly:ie.bool,treeData:ie.arrayOf(ie.shape({key:ie.string,value:ie.oneOfType([ie.string,ie.number]),label:ie.any})),dropdownClassName:ie.string,dropdownStyle:ie.object,dropdownMargin:ie.oneOfType([ie.number,ie.object]),motion:ie.bool,placeholder:ie.string,maxTagCount:ie.number,size:ie.oneOf(hu.SIZE_SET),className:ie.string,style:ie.object,treeNodeLabelProp:ie.string,suffix:ie.node,prefix:ie.node,insetLabel:ie.node,insetLabelId:ie.string,zIndex:ie.number,getPopupContainer:ie.func,dropdownMatchSelectWidth:ie.bool,validateStatus:ie.oneOf(hu.STATUS),mouseEnterDelay:ie.number,mouseLeaveDelay:ie.number,triggerRender:ie.func,stopPropagation:ie.oneOfType([ie.bool,ie.string]),outerBottomSlot:ie.node,outerTopSlot:ie.node,onVisibleChange:ie.func,expandAction:ie.oneOf(["click","doubleClick",!1]),searchPosition:ie.oneOf([hu.SEARCH_POSITION_DROPDOWN,hu.SEARCH_POSITION_TRIGGER]),clickToHide:ie.bool,renderLabel:ie.func,renderFullLabel:ie.func,labelEllipsis:ie.bool,optionListStyle:ie.object,searchRender:ie.oneOfType([ie.func,ie.bool]),renderSelectedItem:ie.func,checkRelation:ie.string,"aria-label":ie.string,showRestTagsPopover:ie.bool,restTagsPopoverProps:ie.object,preventScroll:ie.bool,clickTriggerToHide:ie.bool,autoMergeValue:ie.bool};vG.defaultProps={borderless:!1,searchPosition:hu.SEARCH_POSITION_DROPDOWN,arrowIcon:V.createElement(wve,null),autoExpandParent:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,motionExpand:!0,expandAll:!1,zIndex:V0.DEFAULT_Z_INDEX,disableStrictly:!1,multiple:!1,filterTreeNode:!1,size:"default",treeNodeFilterProp:"label",onChangeWithObject:!1,treeNodeLabelProp:"label",dropdownMatchSelectWidth:!0,defaultOpen:!1,showSearchClear:!0,showClear:!1,onVisibleChange:vr,expandAction:!1,clickToHide:!0,searchAutoFocus:!1,checkRelation:"related","aria-label":"TreeSelect",showRestTagsPopover:!1,restTagsPopoverProps:{},clickTriggerToHide:!0,autoMergeValue:!0};var U1={custom:V.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:"false","aria-hidden":"true"},V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.1 18L4.5032 20.1702C4.24999 21.0909 4.94281 22 5.89773 22C6.54881 22 7.11964 21.565 7.29227 20.9372L8.1 18H12.1L11.5032 20.1702C11.25 21.0909 11.9428 22 12.8977 22C13.5488 22 14.1196 21.565 14.2923 20.9372L15.1 18H19.5C20.3284 18 21 17.3284 21 16.5C21 15.6716 20.3284 15 19.5 15H15.925L17.575 9H20.5C21.3284 9 22 8.32843 22 7.5C22 6.67157 21.3284 6 20.5 6H18.4L18.9968 3.8298C19.25 2.90906 18.5572 2 17.6023 2C16.9512 2 16.3804 2.43504 16.2077 3.06281L15.4 6H11.4L11.9968 3.8298C12.25 2.90906 11.5572 2 10.6023 2C9.95119 2 9.38036 2.43504 9.20773 3.06281L8.4 6H4.5C3.67157 6 3 6.67157 3 7.5C3 8.32843 3.67157 9 4.5 9H7.575L5.925 15H3.5C2.67157 15 2 15.6716 2 16.5C2 17.3284 2.67157 18 3.5 18H5.1ZM8.925 15L10.575 9H14.575L12.925 15H8.925Z",fill:"currentColor"})),object:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{d:"M5.33893 1.5835C5.66613 1.5835 5.93137 1.88142 5.93137 2.20862C5.93137 2.53582 5.66613 2.76838 5.33893 2.76838H4.9099C4.34717 2.76838 4.08062 3.07557 4.08062 3.71921V6.58633C4.08062 7.30996 3.80723 7.84734 3.26798 8.19105C3.11426 8.28902 3.10884 8.55273 3.26068 8.65359C3.80476 9.01503 4.08062 9.53994 4.08062 10.2434V13.1251C4.08062 13.7395 4.34717 14.0613 4.9099 14.0613H5.33893C5.66613 14.0613 5.93137 14.3435 5.93137 14.6707C5.93137 14.9979 5.66613 15.2462 5.33893 15.2462H4.64335C3.99177 15.2462 3.48828 15.0268 3.13287 14.6172C2.80708 14.2369 2.64419 13.7103 2.64419 13.0666V10.3165C2.64419 9.8923 2.55534 9.58511 2.37764 9.39494C2.26816 9.27135 1.80618 9.17938 1.38154 9.11602C1.02726 9.06315 0.759057 8.76744 0.765747 8.4093C0.772379 8.0543 1.03439 7.7566 1.38545 7.70346C1.80778 7.63952 2.26906 7.54968 2.37764 7.43477C2.55534 7.22997 2.64419 6.92278 2.64419 6.51319V3.77772C2.64419 3.11945 2.80708 2.59284 3.13287 2.21251C3.48828 1.78829 3.99177 1.5835 4.64335 1.5835H5.33893Z",fill:"currentColor"}),V.createElement("path",{d:"M10.962 15.2463C10.6348 15.2463 10.3696 14.9483 10.3696 14.6211C10.3696 14.2939 10.6348 14.0614 10.962 14.0614H11.391C11.9538 14.0614 12.2203 13.7542 12.2203 13.1105V10.2434C12.2203 9.51979 12.4937 8.98241 13.033 8.6387C13.1867 8.54073 13.1921 8.27703 13.0403 8.17616C12.4962 7.81472 12.2203 7.28982 12.2203 6.58638V3.70463C12.2203 3.09024 11.9538 2.76842 11.391 2.76842L10.962 2.76842C10.6348 2.76842 10.3696 2.48627 10.3696 2.15907C10.3696 1.83188 10.6348 1.58354 10.962 1.58354L11.6576 1.58354C12.3092 1.58354 12.8127 1.80296 13.1681 2.21255C13.4939 2.59289 13.6568 3.1195 13.6568 3.76314V6.51324C13.6568 6.93745 13.7456 7.24464 13.9233 7.43481C14.03 7.5553 14.4328 7.64858 14.8186 7.71393C15.1718 7.77376 15.4401 8.06977 15.4334 8.42791C15.4268 8.78291 15.1646 9.08018 14.814 9.13633C14.4306 9.19774 14.0291 9.28303 13.9233 9.39499C13.7456 9.59978 13.6568 9.90697 13.6568 10.3166V13.052C13.6568 13.7103 13.4939 14.2369 13.1681 14.6172C12.8127 15.0415 12.3092 15.2463 11.6576 15.2463H10.962Z",fill:"currentColor"})),boolean:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.668 4.66683H5.33463C3.49369 4.66683 2.0013 6.15921 2.0013 8.00016C2.0013 9.84111 3.49369 11.3335 5.33463 11.3335H10.668C12.5089 11.3335 14.0013 9.84111 14.0013 8.00016C14.0013 6.15921 12.5089 4.66683 10.668 4.66683ZM5.33463 3.3335C2.75731 3.3335 0.667969 5.42283 0.667969 8.00016C0.667969 10.5775 2.75731 12.6668 5.33463 12.6668H10.668C13.2453 12.6668 15.3346 10.5775 15.3346 8.00016C15.3346 5.42283 13.2453 3.3335 10.668 3.3335H5.33463Z",fill:"currentColor"}),V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.66797 8.00016C8.66797 6.89559 9.5634 6.00016 10.668 6.00016C11.7725 6.00016 12.668 6.89559 12.668 8.00016C12.668 9.10473 11.7725 10.0002 10.668 10.0002C9.5634 10.0002 8.66797 9.10473 8.66797 8.00016ZM10.668 7.3335C10.2998 7.3335 10.0013 7.63197 10.0013 8.00016C10.0013 8.36835 10.2998 8.66683 10.668 8.66683C11.0362 8.66683 11.3346 8.36835 11.3346 8.00016C11.3346 7.63197 11.0362 7.3335 10.668 7.3335Z",fill:"currentColor"})),string:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{d:"M9.3342 3.33321C8.96601 3.33321 8.66753 3.63169 8.66753 3.99988C8.66753 4.36807 8.96601 4.66655 9.3342 4.66655H14.6675C15.0357 4.66655 15.3342 4.36807 15.3342 3.99988C15.3342 3.63169 15.0357 3.33321 14.6675 3.33321H9.3342Z",fill:"currentColor"}),V.createElement("path",{d:"M10.0009 7.99988C10.0009 7.63169 10.2993 7.33321 10.6675 7.33321H14.6675C15.0357 7.33321 15.3342 7.63169 15.3342 7.99988C15.3342 8.36807 15.0357 8.66655 14.6675 8.66655H10.6675C10.2993 8.66655 10.0009 8.36807 10.0009 7.99988Z",fill:"currentColor"}),V.createElement("path",{d:"M12.0009 11.3332C11.6327 11.3332 11.3342 11.6317 11.3342 11.9999C11.3342 12.3681 11.6327 12.6665 12.0009 12.6665H14.6675C15.0357 12.6665 15.3342 12.3681 15.3342 11.9999C15.3342 11.6317 15.0357 11.3332 14.6675 11.3332H12.0009Z",fill:"currentColor"}),V.createElement("path",{d:"M9.86659 14.1482L8.23444 10.1844H3.18136C3.13868 10.1844 3.09685 10.1808 3.05616 10.1738L1.66589 14.1129C1.53049 14.4965 1.10971 14.6978 0.726058 14.5624C0.342408 14.427 0.141166 14.0062 0.276572 13.6225L4.37566 2.00848C4.71323 1.05202 6.05321 1.01763 6.4394 1.95552L11.2289 13.5872C11.3838 13.9634 11.2044 14.394 10.8282 14.5489C10.452 14.7038 10.0215 14.5244 9.86659 14.1482ZM5.44412 3.40791L3.57241 8.71109H7.62778L5.44412 3.40791Z",fill:"currentColor"})),integer:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{d:"M15.132 11.4601C15.644 11.0121 15.9 10.3921 15.9 9.60007C15.9 8.60807 15.5 7.93607 14.7 7.58407C15.412 7.23207 15.768 6.62407 15.768 5.76007C15.768 5.05607 15.536 4.48007 15.072 4.03207C14.608 3.59207 14.012 3.37207 13.284 3.37207C12.588 3.37207 12.008 3.58007 11.544 3.99607C11.064 4.42007 10.808 4.98807 10.776 5.70007H12C12.064 4.88407 12.492 4.47607 13.284 4.47607C14.124 4.47607 14.544 4.91607 14.544 5.79607C14.544 6.66007 14.112 7.09207 13.248 7.09207H13.044V8.16007H13.248C14.2 8.16007 14.676 8.62807 14.676 9.56407C14.676 10.5081 14.212 10.9801 13.284 10.9801C12.9 10.9801 12.584 10.8761 12.336 10.6681C12.064 10.4441 11.916 10.1161 11.892 9.68407H10.668C10.692 10.4761 10.964 11.0841 11.484 11.5081C11.948 11.8921 12.548 12.0841 13.284 12.0841C14.036 12.0841 14.652 11.8761 15.132 11.4601Z",fill:"currentColor"}),V.createElement("path",{d:"M4.46875 12.0003V10.9083L7.75675 6.91228C8.06075 6.54428 8.21275 6.16428 8.21275 5.77228C8.21275 4.90828 7.79675 4.47628 6.96475 4.47628C6.60475 4.47628 6.31275 4.57628 6.08875 4.77628C5.83275 5.00828 5.70475 5.34828 5.70475 5.79628H4.48075C4.48075 5.07628 4.71275 4.49228 5.17675 4.04428C5.64075 3.60428 6.23675 3.38428 6.96475 3.38428C7.70075 3.38428 8.29675 3.60028 8.75275 4.03228C9.20875 4.47228 9.43675 5.05628 9.43675 5.78428C9.43675 6.13628 9.36875 6.45628 9.23275 6.74428C9.12075 6.97628 8.92075 7.27228 8.63275 7.63228L5.95675 10.9083H9.43675V12.0003H4.46875Z",fill:"currentColor"}),V.createElement("path",{d:"M1.668 12.0001V4.78805L0 6.25205V4.89605L1.668 3.45605H2.892V12.0001H1.668Z",fill:"currentColor"})),number:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{d:"M3.44151 5.3068C3.44151 3.83404 4.71542 2.64014 6.18818 2.64014C7.66094 2.64014 8.93484 3.83404 8.93484 5.3068V10.6135C8.93484 12.0862 7.66094 13.2801 6.18818 13.2801C4.71542 13.2801 3.44151 12.0862 3.44151 10.6135V5.3068ZM7.60151 5.3068C7.60151 4.57042 6.92456 3.97347 6.18818 3.97347C5.4518 3.97347 4.77484 4.57042 4.77484 5.3068V10.6135C4.77484 11.3498 5.4518 11.9468 6.18818 11.9468C6.92456 11.9468 7.60151 11.3498 7.60151 10.6135V5.3068Z",fill:"currentColor"}),V.createElement("path",{d:"M12.9882 2.64014C11.5154 2.64014 10.2415 3.83404 10.2415 5.3068V10.6135C10.2415 12.0862 11.5154 13.2801 12.9882 13.2801C14.4609 13.2801 15.7348 12.0862 15.7348 10.6135V5.3068C15.7348 3.83404 14.4609 2.64014 12.9882 2.64014ZM14.4015 10.6135C14.4015 11.3498 13.7246 11.9468 12.9882 11.9468C12.2518 11.9468 11.5748 11.3498 11.5748 10.6135V5.3068C11.5748 4.57042 12.2518 3.97347 12.9882 3.97347C13.7246 3.97347 14.4015 4.57042 14.4015 5.3068V10.6135Z",fill:"currentColor"}),V.createElement("path",{d:"M1.21484 13.2001C1.76713 13.2001 2.21484 12.7524 2.21484 12.2001C2.21484 11.6479 1.76713 11.2001 1.21484 11.2001C0.662559 11.2001 0.214844 11.6479 0.214844 12.2001C0.214844 12.7524 0.662559 13.2001 1.21484 13.2001Z",fill:"currentColor"})),array:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{d:"M5.23759 1.00342H2.00391V14.997H5.23759V13.6251H3.35127V2.37534H5.23759V1.00342Z",fill:"currentColor"}),V.createElement("path",{d:"M10.7624 1.00342H13.9961V14.997H10.7624V13.6251H12.6487V2.37534H10.7624V1.00342Z",fill:"currentColor"})),stream:V.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},V.createElement("path",{d:"M879.674 544.51l-158.254-0.221c-8.534 2.287-17.305-2.776-19.588-11.307l-23.862-75.877-74.742 350.891c0 0-1.523 18.507-11.518 18.507s-26.9 0.281-26.9 0.281c-8.259 2.213-16.748-2.687-18.961-10.949l-92.741-457.648-70.305 330.634c-2.261 8.291-11.94 15.206-20.385 12.986l-24.876 0.339c-8.723 2.293-17.685-2.789-20.023-11.349L270.629 544.51 143.993 544.51c-8.831 0-15.993-7.159-15.993-15.993l0-31.986c0-8.831 7.162-15.993 15.993-15.993l157.429-0.516c9.565-0.304 17.685 0.788 20.023 9.351l24.386 76.092 68.642-358.907c0 0 3.4-10.894 14.397-10.894 10.994 0 34.107-0.448 34.107-0.448 8.262-2.213 16.751 2.687 18.965 10.949l91.912 454.126 67.948-326.182c2.213-8.262 8.707-15.161 16.965-12.948l27.316-0.333c8.531-2.287 17.301 2.776 19.588 11.31l46.665 148.4 127.337 0c8.835 0 15.993 7.162 15.993 15.993l0 31.986C895.667 537.352 888.508 544.51 879.674 544.51z",fill:"currentColor"})),map:V.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em"},V.createElement("path",{d:"M877.860571 938.642286h-645.851428c-27.574857 0-54.052571-11.337143-73.508572-31.744a110.957714 110.957714 0 0 1-30.500571-76.8V193.828571c0-28.745143 10.971429-56.32 30.500571-76.726857a101.888 101.888 0 0 1 73.508572-31.817143h574.171428c27.501714 0 53.979429 11.337143 73.508572 31.744 19.529143 20.333714 30.500571 48.054857 30.500571 76.8v522.020572a34.157714 34.157714 0 0 1-6.948571 22.820571c-37.156571 19.382857-57.636571 39.350857-57.636572 72.630857 0 39.716571 19.894857 50.029714 57.636572 72.777143a34.816 34.816 0 0 1-8.045714 49.298286 32.256 32.256 0 0 1-17.334858 5.193143z m-32.256-254.537143V193.828571a40.228571 40.228571 0 0 0-39.497142-41.179428H232.009143a40.301714 40.301714 0 0 0-39.497143 41.252571V699.245714c17.773714-9.874286 37.449143-14.994286 57.417143-14.921143h595.675428v-0.073142z m-595.675428 187.245714h566.198857c-22.893714-11.190857-27.940571-39.497143-28.013714-59.977143 0-20.260571 3.218286-43.885714 28.013714-59.904h-566.125714c-31.670857 0-57.417143 26.843429-57.417143 59.977143 0 33.060571 25.746286 59.904 57.344 59.904z",fill:"currentColor"}),V.createElement("path",{d:"M320 128m32.036571 0l-0.073142 0q32.036571 0 32.036571 32.036571l0 511.926858q0 32.036571-32.036571 32.036571l0.073142 0q-32.036571 0-32.036571-32.036571l0-511.926858q0-32.036571 32.036571-32.036571Z",fill:"currentColor"}))},Jve={object:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.58105H3.6139V2.87326H1.36702V13.1264H3.6139V14.4186H0V1.58105ZM3.41656 13.3264V13.3266H1.17155V13.3264H3.41656ZM0.197344 14.2186H0.199219V1.78125H3.41656V1.78105H0.197344V14.2186ZM12.3861 1.58105H16V14.4186H12.3861V13.1264H14.633V2.87326H12.3861V1.58105ZM12.5834 2.67326V1.78105H15.8027V1.78125H12.5853V2.67326H12.5834ZM12.5853 13.3266V14.2186H12.5834V13.3264H14.8303V2.67345H14.8322V13.3266H12.5853ZM3.82031 5.9091C3.82031 5.18535 4.40703 4.59863 5.13078 4.59863C5.85453 4.59863 6.44124 5.18535 6.44124 5.9091C6.44124 6.56485 5.9596 7.1081 5.33078 7.2044V8.70018H5.32877C5.32982 8.75093 5.33078 8.80912 5.33078 8.87034V9.72111C5.33078 10.0195 5.57268 10.2614 5.87109 10.2614H6.24124C6.55613 10.2614 6.8114 10.5167 6.8114 10.8316C6.8114 11.1465 6.55613 11.4017 6.24124 11.4017H5.87109C4.94291 11.4017 4.19047 10.6493 4.19047 9.72111V6.82186C3.96158 6.58607 3.82031 6.26397 3.82031 5.9091ZM7.33679 5.9091C7.33679 5.59421 7.59205 5.33894 7.90694 5.33894H11.6085C11.9234 5.33894 12.1786 5.59421 12.1786 5.9091C12.1786 6.22399 11.9234 6.47925 11.6085 6.47925H7.90694C7.59205 6.47925 7.33679 6.22399 7.33679 5.9091ZM7.33679 9.86846C7.33679 9.55357 7.59205 9.2983 7.90694 9.2983H11.6085C11.9234 9.2983 12.1786 9.55357 12.1786 9.86846C12.1786 10.1833 11.9234 10.4386 11.6085 10.4386H7.90694C7.59205 10.4386 7.33679 10.1833 7.33679 9.86846Z",fill:"currentColor"})),boolean:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.58105H3.6139V2.87326H1.36702V13.1264H3.6139V14.4186H0V1.58105ZM3.41656 13.3264V13.3266H1.17155V13.3264H3.41656ZM0.197344 14.2186H0.199219V1.78125H3.41656V1.78105H0.197344V14.2186ZM12.3861 1.58105H16V14.4186H12.3861V13.1264H14.633V2.87326H12.3861V1.58105ZM12.5834 2.67326V1.78105H15.8027V1.78125H12.5853V2.67326H12.5834ZM12.5853 13.3266V14.2186H12.5834V13.3264H14.8303V2.67345H14.8322V13.3266H12.5853ZM2.75 7.99993C2.75 6.14518 4.25358 4.6416 6.10833 4.6416H9.775C11.6298 4.6416 13.1333 6.14518 13.1333 7.99993C13.1333 9.85469 11.6298 11.3583 9.775 11.3583H6.10833C4.25358 11.3583 2.75 9.85469 2.75 7.99993ZM6.10833 5.85827C4.92552 5.85827 3.96667 6.81713 3.96667 7.99993C3.96667 9.18274 4.92552 10.1416 6.10833 10.1416H9.775C10.9578 10.1416 11.9167 9.18274 11.9167 7.99993C11.9167 6.81713 10.9578 5.85827 9.775 5.85827H6.10833ZM8.25 7.99993C8.25 7.1577 8.93277 6.47493 9.775 6.47493C10.6172 6.47493 11.3 7.1577 11.3 7.99993C11.3 8.84217 10.6172 9.52493 9.775 9.52493C8.93277 9.52493 8.25 8.84217 8.25 7.99993ZM9.775 7.6916C9.60471 7.6916 9.46667 7.82965 9.46667 7.99993C9.46667 8.17022 9.60471 8.30827 9.775 8.30827C9.94529 8.30827 10.0833 8.17022 10.0833 7.99993C10.0833 7.82965 9.94529 7.6916 9.775 7.6916Z",fill:"currentColor"})),string:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.58105H3.6139V2.87326H1.36702V13.1264H3.6139V14.4186H0V1.58105ZM3.41656 13.3264V13.3266H1.17155V13.3264H3.41656ZM0.197344 14.2186H0.199219V1.78125H3.41656V1.78105H0.197344V14.2186ZM12.3861 1.58105H16V14.4186H12.3861V13.1264H14.633V2.87326H12.3861V1.58105ZM12.5834 2.67326V1.78105H15.8027V1.78125H12.5853V2.67326H12.5834ZM12.5853 13.3266V14.2186H12.5834V13.3264H14.8303V2.67345H14.8322V13.3266H12.5853ZM5.23701 4.07158C5.50364 3.3161 6.56205 3.28894 6.86709 4.02974L10 11.6383C10.1329 11.9609 9.979 12.3302 9.65631 12.4631C9.33363 12.596 8.96434 12.4421 8.83147 12.1194L7.8021 9.61951H4.61903L3.7474 12.0891C3.63126 12.4182 3.27034 12.5908 2.94127 12.4747C2.6122 12.3585 2.43958 11.9976 2.55573 11.6685L5.23701 4.07158ZM6.08814 5.45704L5.06505 8.35579H7.28174L6.08814 5.45704ZM8.81938 6.07534C8.81938 5.75166 9.08177 5.48926 9.40545 5.48926H12.8941C13.2178 5.48926 13.4802 5.75166 13.4802 6.07534C13.4802 6.39902 13.2178 6.66142 12.8941 6.66142H9.40545C9.08177 6.66142 8.81938 6.39902 8.81938 6.07534ZM10.2668 9.69181C10.2668 9.36812 10.5292 9.10573 10.8529 9.10573H12.8941C13.2178 9.10573 13.4802 9.36812 13.4802 9.69181C13.4802 10.0155 13.2178 10.2779 12.8941 10.2779H10.8529C10.5292 10.2779 10.2668 10.0155 10.2668 9.69181Z",fill:"currentColor"})),integer:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.58105H3.6139V2.87326H1.36702V13.1264H3.6139V14.4186H0V1.58105ZM3.41656 13.3264V13.3266H1.17155V13.3264H3.41656ZM0.197344 14.2186H0.199219V1.78125H3.41656V1.78105H0.197344V14.2186ZM12.3861 1.58105H16V14.4186H12.3861V13.1264H14.633V2.87326H12.3861V1.58105ZM12.5834 2.67326V1.78105H15.8027V1.78125H12.5853V2.67326H12.5834ZM12.5853 13.3266V14.2186H12.5834V13.3264H14.8303V2.67345H14.8322V13.3266H12.5853ZM10.3614 5.22374C10.7161 4.90585 11.1581 4.75 11.6762 4.75C12.2173 4.75 12.6723 4.91467 13.0281 5.25207L13.0291 5.253C13.3852 5.59688 13.561 6.03946 13.561 6.56767C13.561 6.89 13.4945 7.17448 13.3539 7.41445C13.2572 7.57972 13.1279 7.71948 12.9685 7.83428C13.1575 7.95643 13.3099 8.11182 13.4225 8.30109C13.5793 8.5644 13.6531 8.88311 13.6531 9.24936C13.6531 9.83787 13.4612 10.3151 13.0656 10.6612C12.6982 10.9795 12.2305 11.1341 11.6762 11.1341C11.1356 11.1341 10.6805 10.9925 10.324 10.6977C9.92124 10.3691 9.71723 9.90026 9.69942 9.31256L9.69473 9.15802H10.846L10.8539 9.2997C10.8689 9.5698 10.9591 9.75553 11.1096 9.87941L11.1106 9.88027C11.2519 9.99882 11.4365 10.0631 11.6762 10.0631C11.9765 10.0631 12.1743 9.98692 12.2984 9.86071C12.4229 9.73404 12.4984 9.53136 12.4984 9.22422C12.4984 8.92116 12.4215 8.72127 12.2939 8.59581C12.1658 8.46989 11.961 8.39373 11.6511 8.39373H11.3586V7.34788H11.6511C11.9297 7.34788 12.111 7.27834 12.2238 7.16555C12.3366 7.05276 12.4062 6.87138 12.4062 6.59281C12.4062 6.30696 12.3378 6.12041 12.2277 6.00501C12.1188 5.89092 11.9446 5.82098 11.6762 5.82098C11.4248 5.82098 11.2539 5.88537 11.1407 5.99325C11.0268 6.10185 10.9497 6.27522 10.9291 6.5375L10.9183 6.67577H9.76788L9.77492 6.51904C9.79886 5.98644 9.99237 5.54989 10.3614 5.22374ZM5.91032 5.26037C6.26612 4.92297 6.72112 4.7583 7.26219 4.7583C7.80751 4.7583 8.26297 4.91938 8.61401 5.25194L8.61501 5.25289C8.96719 5.59272 9.13852 6.04185 9.13852 6.58435C9.13852 6.84997 9.08709 7.09565 8.9817 7.31883L8.98114 7.31999C8.89563 7.49712 8.74775 7.71415 8.54418 7.96862L8.54322 7.96981L6.87446 10.0127H9.13852V11.0753H5.36909V10.1089L7.69946 7.27679C7.89456 7.04062 7.98374 6.80773 7.98374 6.57597C7.98374 6.29602 7.91626 6.11385 7.8078 6.00122C7.70036 5.88964 7.52811 5.8209 7.26219 5.8209C7.04017 5.8209 6.87439 5.88173 6.75075 5.99193C6.61227 6.11766 6.53226 6.30918 6.53226 6.59273V6.74273H5.37747V6.59273C5.37747 6.05443 5.55248 5.60586 5.90934 5.2613L5.91032 5.26037ZM3.50907 4.80865H4.56964V11.0754H3.41486V6.2201L2.25 7.24249V5.89561L3.50907 4.80865Z",fill:"currentColor"})),number:V.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.6139 1.58154H0V14.4191H3.6139V13.1269H1.36702V2.87375H3.6139V1.58154ZM3.41656 13.3271V13.3269H1.17155V13.3271H3.41656ZM0.199219 14.2191H0.197344V1.78154H3.41656V1.78174H0.199219V14.2191ZM16 1.58154H12.3861V2.87375H14.633V13.1269H12.3861V14.4191H16V1.58154ZM12.5834 1.78154V2.67375H12.5853V1.78174H15.8027V1.78154H12.5834ZM12.5853 14.2191V13.3271H14.8322V2.67394H14.8303V13.3269H12.5834V14.2191H12.5853ZM6.86771 4.5C5.87019 4.5 5.00104 5.30767 5.00104 6.31667V9.63333C5.00104 10.6423 5.87019 11.45 6.86771 11.45C7.86523 11.45 8.73438 10.6423 8.73438 9.63333V6.31667C8.73438 5.30767 7.86523 4.5 6.86771 4.5ZM11.1177 4.5C10.1202 4.5 9.25104 5.30767 9.25104 6.31667V9.63333C9.25104 10.6423 10.1202 11.45 11.1177 11.45C12.1152 11.45 12.9844 10.6423 12.9844 9.63333V6.31667C12.9844 5.30767 12.1152 4.5 11.1177 4.5ZM6.13438 6.31667C6.13438 5.9503 6.47884 5.63333 6.86771 5.63333C7.25657 5.63333 7.60104 5.9503 7.60104 6.31667V9.63333C7.60104 9.9997 7.25657 10.3167 6.86771 10.3167C6.47884 10.3167 6.13438 9.9997 6.13438 9.63333V6.31667ZM10.3844 6.31667C10.3844 5.9503 10.7288 5.63333 11.1177 5.63333C11.5066 5.63333 11.851 5.9503 11.851 6.31667V9.63333C11.851 9.9997 11.5066 10.3167 11.1177 10.3167C10.7288 10.3167 10.3844 9.9997 10.3844 9.63333V6.31667ZM3.75938 9.85C3.33135 9.85 2.98438 10.197 2.98438 10.625C2.98438 11.053 3.33135 11.4 3.75938 11.4C4.1874 11.4 4.53438 11.053 4.53438 10.625C4.53438 10.197 4.1874 9.85 3.75938 9.85Z",fill:"currentColor"}))},Rb=e=>{var n;return(e==null?void 0:e.type)==="array"?Jve[((n=e.items)==null?void 0:n.type)||"object"]:U1[(e==null?void 0:e.type)||"object"]},WE={display:"flex",alignItems:"center",gap:5},YE=e=>e.charAt(0).toUpperCase()+e.slice(1),f3e=[{label:V.createElement("div",{style:WE},V.createElement(af,{size:"small",svg:Rb({type:"string"})}),YE("string")),value:"string"},{label:V.createElement("div",{style:WE},V.createElement(af,{size:"small",svg:Rb({type:"integer"})}),YE("integer")),value:"integer"},{label:V.createElement("div",{style:WE},V.createElement(af,{size:"small",svg:Rb({type:"number"})}),YE("number")),value:"number"},{label:V.createElement("div",{style:WE},V.createElement(af,{size:"small",svg:Rb({type:"boolean"})}),YE("boolean")),value:"boolean"},{label:V.createElement("div",{style:WE},V.createElement(af,{size:"small",svg:Rb({type:"object"})}),YE("object")),value:"object"}],bvr=[...f3e,{label:V.createElement("div",{style:WE},V.createElement(af,{size:"small",svg:Rb({type:"array"})}),YE("array")),value:"array",children:f3e.map(e=>({...e,value:`${e.value}`,label:V.createElement("div",{style:WE},V.createElement(af,{size:"small",svg:Rb({type:"array",items:{type:e.value}})}),YE(e.value))}))}];function Svr(){const e=cnr(),n=m.useCallback(i=>{var a,s;if(i.meta.icon)return typeof i.meta.icon=="string"?V.createElement("img",{style:{marginRight:8},width:12,height:12,src:i.meta.icon}):i.meta.icon;const o=i.type;return CP.isArray(o)?V.createElement(af,{size:"small",svg:Jve[(a=o.items)==null?void 0:a.kind.toLowerCase()]||U1.array}):CP.isCustomType(o)?V.createElement(af,{size:"small",svg:U1[o.typeName.toLowerCase()]}):V.createElement(af,{size:"small",svg:U1[(s=i.type)==null?void 0:s.kind.toLowerCase()]})},[]),r=(i,o=[])=>{let a=i==null?void 0:i.type,s;if(CP.isObject(a)&&(s=(a.properties||[]).map(c=>r(c,[...o,i])).filter(Boolean),!(s!=null&&s.length)))return null;const l=[...o.map(c=>c.key),i.key].join(".");return{key:l,label:i.meta.title||i.key,value:l,icon:n(i),children:s}};return[...e.variables.slice(0).reverse()].map(i=>r(i)).filter(Boolean)}var Cct=({value:e,onChange:n,style:r,readonly:i=!1,hasError:o})=>{const a=Svr();return V.createElement(V.Fragment,null,V.createElement(vG,{dropdownMatchSelectWidth:!1,disabled:i,treeData:a,size:"small",value:e,style:{...r,outline:o?"1px solid red":void 0},validateStatus:o?"error":void 0,onChange:s=>{n(s)},showClear:!0,placeholder:"Select Variable..."}))},wct=e=>(e==null?void 0:e.type)==="array"&&(e!=null&&e.items)?[e.type,...wct(e.items)||[]]:e!=null&&e.type?[e.type]:void 0,xct=e=>{const[n,...r]=e||[];return n==="array"?{type:"array",items:xct(r)}:{type:n}};function Evr(e){const{value:n,onChange:r}=e,i=m.useMemo(()=>wct(n),[n]);return V.createElement(FR,{size:"small",triggerRender:()=>V.createElement(ol,{size:"small",style:{width:50}},Rb(n)),treeData:bvr,value:i,leafOnly:!0,onChange:o=>{r(xct(o))}})}var Cvr=oi.div`
/* & .semi-input {
background-color: #fff;
border-radius: 6px;
height: 24px;
} */
`,wvr=oi.div`
display: flex;
align-items: center;
gap: 6px;
`,xvr=oi.div`
cursor: pointer;
margin-right: 5px;
`,Tvr=oi.div`
display: flex;
flex-direction: column;
`,Ovr=oi.div`
font-size: 12px;
color: #999;
font-weight: 400;
margin-bottom: 2px;
`,Tct=oi.div`
display: grid;
grid-template-columns: auto 1fr;
${({$shrink:e})=>e&&d$`
padding-left: 10px;
margin-top: 10px;
`}
`,Rvr=oi.div`
grid-column: 1;
position: relative;
${({$showLine:e,$isLast:n})=>e&&d$`
&::before {
/* 竖线 */
content: '';
position: absolute;
left: -22px;
top: -18px;
bottom: ${n?"12px":"0px"};
width: 1px;
background: #d9d9d9;
display: block;
}
&::after {
/* 横线 */
content: '';
position: absolute;
left: -22px; // 横线起点和竖线对齐
top: 12px; // 跟随你的行高调整
width: 22px; // 横线长度
height: 1px;
background: #d9d9d9;
display: block;
}
`}
`,Ivr=oi.div`
grid-column: 2;
margin-bottom: 10px;
&:last-child {
margin-bottom: 0px;
}
`,Nvr=oi.div`
display: flex;
flex-direction: column;
gap: 10px;
${({$expand:e})=>e&&d$`
background-color: #f5f5f5;
padding: 10px;
border-radius: 4px;
`}
`,Mvr=oi.div`
display: none;
${({$collapse:e})=>e&&d$`
display: block;
`}
`,Pvr=oi.div`
flex-grow: 1;
`,Avr=oi.div``,Dvr=oi.div``,kvr=oi.div`
white-space: nowrap;
`,Lvr=V.createElement("svg",{className:"icon-icon icon-icon-coz_add_node ",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},V.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6.49988C11 8.64148 9.50397 10.4337 7.49995 10.8884V15.4998C7.49995 16.0521 7.94767 16.4998 8.49995 16.4998H11.208C11.0742 16.8061 11 17.1443 11 17.4998C11 17.8554 11.0742 18.1936 11.208 18.4998H8.49995C6.8431 18.4998 5.49995 17.1567 5.49995 15.4998V10.8884C3.49599 10.4336 2 8.64145 2 6.49988C2 4.0146 4.01472 1.99988 6.5 1.99988C8.98528 1.99988 11 4.0146 11 6.49988ZM6.5 8.99988C7.88071 8.99988 9 7.88059 9 6.49988C9 5.11917 7.88071 3.99988 6.5 3.99988C5.11929 3.99988 4 5.11917 4 6.49988C4 7.88059 5.11929 8.99988 6.5 8.99988Z"}),V.createElement("path",{d:"M17.5 12.4999C18.0523 12.4999 18.5 12.9476 18.5 13.4999V16.4999H21.5C22.0523 16.4999 22.5 16.9476 22.5 17.4999C22.5 18.0522 22.0523 18.4999 21.5 18.4999H18.5V21.4999C18.5 22.0522 18.0523 22.4999 17.5 22.4999C16.9477 22.4999 16.5 22.0522 16.5 21.4999V18.4999H13.5C12.9477 18.4999 12.5 18.0522 12.5 17.4999C12.5 16.9476 12.9477 16.4999 13.5 16.4999H16.5V13.4999C16.5 12.9476 16.9477 12.4999 17.5 12.4999Z"})),$vr=()=>V.createElement(af,{size:"small",svg:Lvr}),Fvr=0;function p3e(){return Fvr++}function Oct(e,n){return e?e.type==="array"&&e.items?Oct(e.items,[...n||[],"items"]):{schema:e,path:n}:{}}function Rct(e,n){var f;const r=m.useMemo(()=>Oct(e),[e==null?void 0:e.type,e==null?void 0:e.items]),i=((f=r.schema)==null?void 0:f.type)==="object",o=m.useMemo(()=>{var p;return i?Object.entries(((p=r.schema)==null?void 0:p.properties)||{}).map(([h,g])=>{var v;return{key:p3e(),name:h,isPropertyRequired:((v=e==null?void 0:e.required)==null?void 0:v.includes(h))||!1,...g}}):[]},[i]),[a,s]=m.useState(o),l=p=>{s(h=>{const g=p(h),v={},y=[];for(const S of g)S.name&&(v[S.name]=S,S.isPropertyRequired&&y.push(S.name));let _=e||{};return r.path&&(_=r.path.reduce((S,b)=>S[b],e||{})),_.properties=v,_.required=y,n==null||n(e||{}),g})},c=()=>{l(p=>[...p,{key:p3e(),name:"",type:"string"}])},u=p=>{l(h=>h.filter(g=>g.key!==p))},d=(p,h)=>{l(g=>g.map(v=>v.key===p?h:v))};return m.useEffect(()=>{i||s([])},[i]),{propertyList:a,isDrilldownObject:i,onAddProperty:c,onRemoveProperty:u,onEditProperty:d}}function Bvr(e){const{value:n={type:"object"},onChange:r}=e,{propertyList:i,onAddProperty:o,onRemoveProperty:a,onEditProperty:s}=Rct(n,r);return V.createElement(Cvr,null,V.createElement(Tct,null,i.map(l=>V.createElement(Ict,{key:l.key,value:l,onChange:c=>{s(l.key,c)},onRemove:()=>{a(l.key)}}))),V.createElement(ol,{size:"small",style:{marginTop:10},icon:V.createElement(oG,null),onClick:o},"Add"))}function Ict(e){const{value:n,onChange:r,onRemove:i,$isLast:o,$showLine:a}=e;console.log("isLast",o);const[s,l]=m.useState(!1),[c,u]=m.useState(!1),{name:d,type:f,items:p,description:h,isPropertyRequired:g}=n||{},v=m.useMemo(()=>({type:f,items:p}),[f,p]),{propertyList:y,isDrilldownObject:_,onAddProperty:S,onRemoveProperty:b,onEditProperty:E}=Rct(n,r),w=(x,T)=>{r==null||r({...n||{},[x]:T})},C=_&&y.length>0;return V.createElement(V.Fragment,null,V.createElement(Rvr,{$isLast:o,$showLine:a},C&&V.createElement(xvr,{onClick:()=>u(x=>!x)},c?V.createElement(wve,{size:"small"}):V.createElement(jlt,{size:"small"}))),V.createElement(Ivr,null,V.createElement(Nvr,{$expand:s},V.createElement(wvr,null,V.createElement(Pvr,null,V.createElement(Hy,{placeholder:"Input Variable Name",size:"small",value:d,onChange:x=>w("name",x)})),V.createElement(Avr,null,V.createElement(Evr,{value:v,onChange:x=>{r==null||r({...n||{},...x})}})),V.createElement(Dvr,null,V.createElement(Zj,{checked:g,onChange:x=>w("isPropertyRequired",x.target.checked)})),V.createElement(kvr,null,V.createElement(ul,{size:"small",theme:"borderless",icon:s?V.createElement(Glt,{size:"small"}):V.createElement(Tve,{size:"small"}),onClick:()=>l(x=>!x)}),_&&V.createElement(ul,{size:"small",theme:"borderless",icon:V.createElement($vr,null),onClick:()=>{S(),u(!0)}}),V.createElement(ul,{size:"small",theme:"borderless",icon:V.createElement(Pfr,{size:"small"}),onClick:i}))),s&&V.createElement(Tvr,null,V.createElement(Ovr,null,"Description"),V.createElement(Hy,{size:"small",value:h,onChange:x=>w("description",x),placeholder:"Help LLM to understand the property"}))),C&&V.createElement(Mvr,{$collapse:c},V.createElement(Tct,{$shrink:!0},y.map((x,T)=>V.createElement(Ict,{key:x.key,value:x,onChange:R=>{E(x.key,R)},onRemove:()=>{b(x.key)},$isLast:T===y.length-1,$showLine:!0}))))))}var jvr=Object.defineProperty,Uvr=Object.getOwnPropertyDescriptor,mN=(e,n,r,i)=>{for(var o=i>1?void 0:i?Uvr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&jvr(n,r,o),o},Nct={canvasWidth:250,canvasHeight:250,canvasPadding:50,canvasBackground:"rgba(242, 243, 245, 1)",canvasBorderRadius:10,viewportBackground:"rgba(255, 255, 255, 1)",viewportBorderRadius:4,viewportBorderColor:"rgba(6, 7, 9, 0.10)",viewportBorderWidth:1,viewportBorderDashLength:void 0,nodeColor:"rgba(0, 0, 0, 0.10)",nodeBorderRadius:2,nodeBorderWidth:.145,nodeBorderColor:"rgba(6, 7, 9, 0.10)",overlayColor:"rgba(255, 255, 255, 0.55)"},Hvr={scale:.7,opacity:1,translateX:15,translateY:15},zvr={canvasStyle:Nct,canvasClassName:"gedit-minimap-canvas",enableActiveDebounce:!1,enableInactiveDebounce:!0,enableDisplayAllNodes:!1,activeDebounceTime:0,inactiveDebounceTime:5},Mct=e=>{const{service:n,panelStyles:r={},containerStyles:i={},inactiveStyle:o={}}=e,a={...Hvr,...o},s=m.useRef(null),[l,c]=m.useState(!1);m.useEffect(()=>{const h=s.current;h&&n.canvas&&h.appendChild(n.canvas);const g=n.onActive(v=>{c(v)});return()=>{g.dispose()}},[]);const u=l?1:a.scale,d=l?1:a.opacity,f=l?0:a.translateX,p=l?0:a.translateY;return V.createElement("div",{className:"minimap-container",style:{position:"fixed",right:30,bottom:70,transition:"all 0.3s ease",transform:`scale(${u}) translate(${f}px, ${p}px)`,opacity:d,transformOrigin:"bottom right",...i}},V.createElement("div",{className:"minimap-panel",style:{display:"flex",width:"100%",height:"100%",borderRadius:"10px",backgroundColor:"rgba(255, 255, 255, 1)",border:"0.572px solid rgba(6, 7, 9, 0.10)",overflow:"hidden",boxShadow:"0px 2.289px 6.867px 0px rgba(0, 0, 0, 0.08), 0px 4.578px 13.733px 0px rgba(0, 0, 0, 0.04)",boxSizing:"border-box",padding:8,...r},"data-flow-editor-selectable":"false",ref:s,onMouseEnter:()=>{n.setActivate(!0)},onMouseLeave:()=>{n.setActivate(!1)}}))},Eb;(e=>{const n=r=>r.width>0&&r.height>0;e.clear=r=>{const{canvas:i,context:o}=r;o.clearRect(0,0,i.width,i.height)},e.backgroundColor=r=>{const{canvas:i,context:o,color:a}=r;o.fillStyle=a,o.fillRect(0,0,i.width,i.height)},e.rectangle=r=>{const{context:i,rect:o,color:a}=r;n(o)&&(i.fillStyle=a,i.fillRect(o.x,o.y,o.width,o.height))},e.roundRectangle=r=>{const{context:i,rect:o,color:a,radius:s,borderColor:l,borderDashLength:c,borderWidth:u=0}=r,{x:d,y:f,width:p,height:h}=o;if(!n(o))return;i.beginPath(),(()=>{i.moveTo(d+s,f),i.lineTo(d+p-s,f),i.quadraticCurveTo(d+p,f,d+p,f+s),i.lineTo(d+p,f+h-s),i.quadraticCurveTo(d+p,f+h,d+p-s,f+h),i.lineTo(d+s,f+h),i.quadraticCurveTo(d,f+h,d,f+h-s),i.lineTo(d,f+s),i.quadraticCurveTo(d,f,d+s,f),i.closePath()})(),i.fillStyle=a,i.fill(),l&&u>0&&(i.strokeStyle=l,i.lineWidth=u,c?i.setLineDash([c,c]):i.setLineDash([]),i.stroke(),i.setLineDash([]))},e.overlay=r=>{const{canvas:i,context:o,offset:a,scale:s,rect:l,color:c}=r;n(l)&&(o.fillStyle=c,o.fillRect(0,0,i.width,(l.y+a.y)*s),o.fillRect(0,(l.y+l.height+a.y)*s,i.width,i.height-(l.y+l.height+a.y)*s),o.fillRect(0,(l.y+a.y)*s,(l.x+a.x)*s,l.height*s),o.fillRect((l.x+l.width+a.x)*s,(l.y+a.y)*s,i.width-(l.x+l.width+a.x)*s,l.height*s))}})(Eb||(Eb={}));var Tm=class{constructor(){this.onActive=e=>(this.onActiveCallbacks.add(e),{dispose:()=>{this.onActiveCallbacks.delete(e)}}),this.render=this._render,this.handleWheel=e=>{},this.handleStartDrag=e=>{e.preventDefault(),e.stopPropagation();const n=this.createRenderContext(),{viewRect:r,scale:i,offset:o}=n,a=this.canvas.getBoundingClientRect(),s={x:e.clientX-a.left,y:e.clientY-a.top},l=this.rectOnCanvas({rect:r,scale:i,offset:o});this.isPointInRect({point:s,rect:l})&&(this.isDragging=!0,this.dragStart=s,document.addEventListener("mousemove",this.handleDragging),document.addEventListener("mouseup",this.handleEndDrag))},this.handleDragging=e=>{if(!this.isDragging||!this.dragStart)return;e.preventDefault(),e.stopPropagation();const n=this.createRenderContext(),{scale:r}=n,i=this.canvas.getBoundingClientRect(),o=e.clientX-i.left,a=e.clientY-i.top,s=(o-this.dragStart.x)/r,l=(a-this.dragStart.y)/r;this.updateScrollPosition(s,l),this.dragStart={x:o,y:a},this.render()},this.handleEndDrag=e=>{e.preventDefault(),e.stopPropagation(),document.removeEventListener("mousemove",this.handleDragging),document.removeEventListener("mouseup",this.handleEndDrag),this.isDragging=!1,this.dragStart=void 0,this.setActivate(this.isMouseInCanvas(e))},this.handleCursor=e=>{if(!this.activated)return;const n=this.createRenderContext(),{viewRect:r,scale:i,offset:o}=n,a=this.canvas.getBoundingClientRect(),s={x:e.clientX-a.left,y:e.clientY-a.top},l=this.rectOnCanvas({rect:r,scale:i,offset:o});this.isPointInRect({point:s,rect:l})?this.canvas.style.cursor="grab":this.canvas.style.cursor="default"},this.canvas=document.createElement("canvas"),this.context2D=this.canvas.getContext("2d"),this.initialized=!!this.context2D,this.onActiveCallbacks=new Set,this.toDispose=new Ei,this.render=this._render,this.activated=!1,this.isDragging=!1}init(e){this.options=zvr,Object.assign(this.options,e),this.setDebounce({enableDebounce:this.options.enableInactiveDebounce,debounceTime:this.options.inactiveDebounceTime}),this.initStyle(),this.mountListener()}dispose(){this.toDispose.dispose(),this.initialized=!1,this.activated=!1,this.removeEventListeners()}setActivate(e){e!==this.activated&&(!e&&this.isDragging||(this.activated=e,e?(this.setDebounce({enableDebounce:this.options.enableActiveDebounce,debounceTime:this.options.activeDebounceTime}),this.addEventListeners()):(this.setDebounce({enableDebounce:this.options.enableInactiveDebounce,debounceTime:this.options.inactiveDebounceTime}),this.removeEventListeners()),this.render(),this.onActiveCallbacks.forEach(n=>n(e))))}initStyle(){if(!this.initialized)return;const{canvasClassName:e,canvasStyle:n}=this.options;this.canvas.className=e,this.style={...Nct,...n},this.canvas.width=this.style.canvasWidth,this.canvas.height=this.style.canvasHeight,this.canvas.style.borderRadius=this.style.canvasBorderRadius?`${this.style.canvasBorderRadius}px`:"unset"}setDebounce(e){const{enableDebounce:n,debounceTime:r}=e;n?this.render=Mn.debounce(this._render,r):this.render=this._render}_render(){if(!this.initialized)return;const e=this.createRenderContext();this.renderCanvas(e)}createRenderContext(){const{canvas:e,context2D:n,nodes:r}=this,o=this.nodeTransforms(r).map(d=>d.bounds),a=this.viewRect(),s=this.renderRect(o).withPadding({top:this.style.canvasPadding,bottom:this.style.canvasPadding,left:this.style.canvasPadding,right:this.style.canvasPadding}),l=Qn.enlarge([a,s]),{scale:c,offset:u}=this.calculateScaleAndOffset({canvasRect:l});return{canvas:e,context2D:n,nodeRects:o,canvasRect:l,viewRect:a,renderRect:s,scale:c,offset:u}}renderCanvas(e){const{canvas:n,context2D:r,nodeRects:i,viewRect:o,scale:a,offset:s}=e;Eb.clear({canvas:n,context:r}),Eb.backgroundColor({canvas:n,context:r,color:this.style.canvasBackground}),Eb.roundRectangle({context:r,rect:this.rectOnCanvas({rect:o,scale:a,offset:s}),color:this.style.viewportBackground,radius:this.style.viewportBorderRadius}),i.forEach(l=>{Eb.roundRectangle({context:r,rect:this.rectOnCanvas({rect:l,scale:a,offset:s}),color:this.style.nodeColor,radius:this.style.nodeBorderRadius,borderWidth:this.style.nodeBorderWidth,borderColor:this.style.nodeBorderColor})}),Eb.roundRectangle({context:r,rect:this.rectOnCanvas({rect:o,scale:a,offset:s}),color:"rgba(255, 255, 255, 0)",radius:this.style.viewportBorderRadius,borderColor:this.style.viewportBorderColor,borderWidth:this.style.viewportBorderWidth,borderDashLength:this.style.viewportBorderDashLength}),Eb.overlay({canvas:n,context:r,offset:s,scale:a,rect:o,color:this.style.overlayColor})}calculateScaleAndOffset(e){const{canvasRect:n}=e,{width:r,height:i}=this.canvas,o=r/n.width,a=i/n.height,s=Math.min(o,a),l=n.width*s,c=n.height*s,u=(r-l)/2,d=(i-c)/2,f={x:u/s-n.x,y:d/s-n.y};return{scale:s,offset:f}}get nodes(){return this.document.getAllNodes().filter(e=>{if(e.hidden)return!1;if(e.flowNodeType!==Fo.ROOT&&!(!this.options.enableDisplayAllNodes&&e.parent&&e.parent.flowNodeType!==Fo.ROOT))return!0})}nodeTransforms(e){return e.map(n=>n.getData(hr)).filter(Boolean)}renderRect(e){return Qn.enlarge(e)}viewRect(){const{width:e,height:n,scrollX:r,scrollY:i,zoom:o}=this.playgroundConfig.config;return new Qn(r/o,i/o,e/o,n/o)}mountListener(){const e=this.entityManager.onEntityChange(()=>this.render());this.toDispose.push(e)}rectOnCanvas(e){const{rect:n,scale:r,offset:i}=e;return new Qn((n.x+i.x)*r,(n.y+i.y)*r,n.width*r,n.height*r)}isPointInRect(e){const{point:n,rect:r}=e;return n.x>=r.x&&n.x<=r.x+r.width&&n.y>=r.y&&n.y<=r.y+r.height}addEventListeners(){this.canvas.addEventListener("wheel",this.handleWheel),this.canvas.addEventListener("mousedown",this.handleStartDrag),this.canvas.addEventListener("mousemove",this.handleCursor)}removeEventListeners(){this.canvas.removeEventListener("wheel",this.handleWheel),this.canvas.removeEventListener("mousedown",this.handleStartDrag),this.canvas.removeEventListener("mousemove",this.handleCursor)}isMouseInCanvas(e){const n=this.canvas.getBoundingClientRect();return e.clientX>=n.left&&e.clientX<=n.right&&e.clientY>=n.top&&e.clientY<=n.bottom}updateScrollPosition(e,n){const{scrollX:r,scrollY:i,zoom:o}=this.playgroundConfig.config;this.playgroundConfig.updateConfig({scrollX:r+e*o,scrollY:i+n*o})}};mN([Ot(jo)],Tm.prototype,"document",2);mN([Ot(Lo)],Tm.prototype,"entityManager",2);mN([Ot(da)],Tm.prototype,"playgroundConfig",2);Tm=mN([Pn()],Tm);var RD=class extends Oa{constructor(){super(),this.className="gedit-minimap-layer gedit-playground-layer",this.node=Tr.createDivWithClass(this.className),this.node.style.zIndex="9999"}render(){return this.options.disableLayer?V.createElement(V.Fragment,null):V.createElement(Mct,{service:this.service,panelStyles:this.options.panelStyles,containerStyles:this.options.containerStyles,inactiveStyle:this.options.inactiveStyle})}};RD.type="FlowMinimapLayer";mN([Ot(Tm)],RD.prototype,"service",2);RD=mN([Pn()],RD);var Vvr=pa({onBind:({bind:e})=>{e(Tm).toSelf().inSingletonScope()},onInit:(e,n)=>{e.playground.registerLayer(RD,n),e.get(Tm).init(n)},onDispose:e=>{e.get(Tm).dispose()}}),Gvr=Object.defineProperty,Wvr=Object.getOwnPropertyDescriptor,$S=(e,n,r,i)=>{for(var o=i>1?void 0:i?Wvr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Gvr(n,r,o),o},Pct={enableEdgeSnapping:!0,edgeThreshold:7,enableGridSnapping:!1,gridSize:20,enableMultiSnapping:!1,enableOnlyViewportSnapping:!0,edgeColor:"#4E40E5",alignColor:"#4E40E5",edgeLineWidth:2,alignLineWidth:2,alignCrossWidth:16},eye=1e-5,fp=(e,n)=>e===void 0||n===void 0?!1:Math.abs(e-n)<eye,uF=(e,n)=>e===void 0||n===void 0?!1:n-e>eye,M2=(e,n)=>e===void 0||n===void 0?!1:e-n>eye,fh=(e,n)=>fp(e,n)||uF(e,n),NT=e=>typeof e=="number"&&!isNaN(e),Om=class{constructor(){this.disposers=[],this.snapEmitter=new Un,this.onSnap=this.snapEmitter.event,this._disabled=!1}init(e={}){this.options={...Pct,...e},this.mountListener()}dispose(){this.disposers.forEach(e=>e.dispose())}get disabled(){return this._disabled}disable(){this._disabled||(this._disabled=!0,this.clear())}enable(){this._disabled&&(this._disabled=!1,this.clear())}mountListener(){const e=this.dragService.registerPosAdjuster(r=>{const{selectedNodes:i,position:o}=r,a=this.options.enableMultiSnapping?!1:i.length!==1;return this._disabled||!this.options.enableEdgeSnapping||a?{x:0,y:0}:this.snapping({targetNodes:i,position:o})}),n=this.dragService.onNodesDrag(r=>{r.type!=="onDragEnd"||this._disabled||(this.options.enableGridSnapping&&this.gridSnapping({targetNodes:r.nodes,gridSize:this.options.gridSize}),this.options.enableEdgeSnapping&&this.clear())});this.disposers.push(e,n)}snapping(e){const{targetNodes:n,position:r}=e,i=this.getBounds(n),o=new Qn(r.x,r.y,i.width,i.height),a=this.getSnapNodeRects({targetNodes:n,targetRect:o}),{alignOffset:s,alignRects:l,alignSpacing:c}=this.calcAlignOffset({targetRect:o,alignThreshold:this.options.edgeThreshold,snapNodeRects:a}),{snapOffset:u,snapEdgeLines:d}=this.calcSnapOffset({targetRect:o,edgeThreshold:this.options.edgeThreshold,snapNodeRects:a}),f={x:u.x||s.x,y:u.y||s.y},p=new Qn(r.x+f.x,r.y+f.y,o.width,o.height);return this.snapEmitter.fire({snapRect:p,snapEdgeLines:d,alignRects:l,alignSpacing:c}),f}calcSnapOffset(e){const{snapNodeRects:n,edgeThreshold:r,targetRect:i}=e,o=this.getSnapLines({snapNodeRects:n}),a=o.horizontal.find(E=>fh(Math.abs(E.y-i.top),r)),s=o.horizontal.find(E=>fh(Math.abs(E.y-i.bottom),r)),l=o.vertical.find(E=>fh(Math.abs(E.x-i.left),r)),c=o.vertical.find(E=>fh(Math.abs(E.x-i.right),r)),u=o.midHorizontal.find(E=>fh(Math.abs(E.y-i.center.y),r)),d=o.midVertical.find(E=>fh(Math.abs(E.x-i.center.x),r)),f=a==null?void 0:a.y,p=NT(s==null?void 0:s.y)?s.y-i.height:void 0,h=l==null?void 0:l.x,g=NT(c==null?void 0:c.x)?c.x-i.width:void 0,v=NT(u==null?void 0:u.y)?u.y-i.height/2:void 0,y=NT(d==null?void 0:d.x)?d.x-i.width/2:void 0,_={x:y??h??g??i.x,y:v??f??p??i.y},S={x:_.x-i.x,y:_.y-i.y},b={top:fp(f,_.y)?a:void 0,bottom:fp(p,_.y)?s:void 0,left:fp(h,_.x)?l:void 0,right:fp(g,_.x)?c:void 0,midVertical:fp(y,_.x)?d:void 0,midHorizontal:fp(v,_.y)?u:void 0};return{snapOffset:S,snapEdgeLines:b}}gridSnapping(e){const{gridSize:n,targetNodes:r}=e,i=this.getBounds(r),o=l=>Math.round(l/n)*n,a={x:o(i.x),y:o(i.y)},s={x:a.x-i.x,y:a.y-i.y};r.forEach(l=>this.updateNodePositionWithOffset({node:l,offset:s}))}clear(){this.snapEmitter.fire({snapEdgeLines:{},snapRect:Qn.EMPTY,alignRects:{top:[],bottom:[],left:[],right:[]},alignSpacing:{}})}getSnapLines(e){const{snapNodeRects:n}=e,r=[],i=[],o=[],a=[];return n.forEach(s=>{const l=s.rect,c=l.center,u={y:l.top,sourceNodeId:s.id},d={y:l.bottom,sourceNodeId:s.id},f={x:l.left,sourceNodeId:s.id},p={x:l.right,sourceNodeId:s.id},h={y:c.y,sourceNodeId:s.id},g={x:c.x,sourceNodeId:s.id};r.push(u,d),i.push(f,p),o.push(h),a.push(g)}),{horizontal:r,vertical:i,midHorizontal:o,midVertical:a}}getAvailableNodes(e){var l;const{targetNodes:n,targetRect:r}=e,i=r.center,o=((l=n[0].parent)==null?void 0:l.id)??this.document.root.id,a=n.map(c=>c.id);return a.push(Fo.ROOT),this.nodes.filter(c=>{var u;return((u=c.parent)==null?void 0:u.id)===o}).filter(c=>!a.includes(c.id)).sort((c,u)=>{const d=c.getData(hr).bounds.center,f=u.getData(hr).bounds.center,p=Math.abs(d.x-i.x)+Math.abs(d.y-i.y),h=Math.abs(f.x-i.x)+Math.abs(f.y-i.y);return p-h})}viewRect(){const{width:e,height:n,scrollX:r,scrollY:i,zoom:o}=this.playgroundConfig.config;return new Qn(r/o,i/o,e/o,n/o)}getSnapNodeRects(e){const n=this.getAvailableNodes(e),r=this.viewRect();return n.map(i=>{var a;const o={id:i.id,rect:i.getData(hr).bounds,entity:i};if(!(this.options.enableOnlyViewportSnapping&&((a=i.parent)==null?void 0:a.flowNodeType)===Fo.ROOT&&!Qn.intersects(r,o.rect)))return o}).filter(Boolean)}get nodes(){return this.entityManager.getEntities(Dp)}getBounds(e){return e.length===0?Qn.EMPTY:Qn.enlarge(e.map(n=>n.getData(hr).bounds))}updateNodePositionWithOffset(e){const{node:n,offset:r}=e,i=n.getData(Ui),o={x:i.position.x+r.x,y:i.position.y+r.y};i.update({position:o}),this.document.layout.updateAffectedTransform(n)}calcAlignOffset(e){const{snapNodeRects:n,targetRect:r,alignThreshold:i}=e,o=this.getAlignRects({targetRect:r,snapNodeRects:n}),a=this.calcAlignSpacing({targetRect:r,alignRects:o});let s,l,c,u,d,f;if(a.top){const g=o.top[0].rect.bottom+a.top;fh(Math.abs(r.top-g),i)?s=g:a.top=void 0}if(a.bottom){const g=o.bottom[0].rect.top-a.bottom;uF(Math.abs(r.bottom-g),i)?l=g-r.height:a.bottom=void 0}if(a.left){const g=o.left[0].rect.right+a.left;fh(Math.abs(r.left-g),i)?c=g:a.left=void 0}if(a.right){const g=o.right[0].rect.left-a.right;fh(Math.abs(r.right-g),i)?u=g-r.width:a.right=void 0}if(a.midHorizontal){const g=o.left[0].rect.right+a.midHorizontal;fh(Math.abs(r.left-g),i)?f=g:a.midHorizontal=void 0}if(a.midVertical){const g=o.top[0].rect.bottom+a.midVertical;fh(Math.abs(r.top-g),i)?d=g:a.midVertical=void 0}const p={x:f??c??u??r.x,y:d??s??l??r.y};return{alignOffset:{x:p.x-r.x,y:p.y-r.y},alignRects:o,alignSpacing:a}}calcAlignSpacing(e){var u,d,f,p;const{targetRect:n,alignRects:r}=e,i=this.getDirectionAlignSpacing({rects:r.top,isHorizontal:!1}),o=this.getDirectionAlignSpacing({rects:r.bottom,isHorizontal:!1}),a=this.getDirectionAlignSpacing({rects:r.left,isHorizontal:!0}),s=this.getDirectionAlignSpacing({rects:r.right,isHorizontal:!0}),l=this.getMidAlignSpacing({rectA:(u=r.left[0])==null?void 0:u.rect,rectB:(d=r.right[0])==null?void 0:d.rect,targetRect:n,isHorizontal:!0}),c=this.getMidAlignSpacing({rectA:(f=r.top[0])==null?void 0:f.rect,rectB:(p=r.bottom[0])==null?void 0:p.rect,targetRect:n,isHorizontal:!1});return{top:i,bottom:o,left:a,right:s,midHorizontal:l,midVertical:c}}getAlignRects(e){const{targetRect:n,snapNodeRects:r}=e,i=[],o=[],a=[],s=[];return r.forEach(l=>{const c=l.rect,{isVerticalIntersection:u,isHorizontalIntersection:d,isIntersection:f}=this.intersection(c,n);f||(u?M2(c.center.y,n.center.y)?o.push({rect:c,sourceNodeId:l.id}):i.push({rect:c,sourceNodeId:l.id}):d&&(M2(c.center.x,n.center.x)?s.push({rect:c,sourceNodeId:l.id}):a.push({rect:c,sourceNodeId:l.id})))}),{top:i,bottom:o,left:a,right:s}}getMidAlignSpacing(e){const{rectA:n,rectB:r,targetRect:i,isHorizontal:o}=e;if(!n||!r)return;const{isVerticalIntersection:a,isHorizontalIntersection:s,isIntersection:l}=this.intersection(n,r);if(!l){if(o&&s&&!a)return(Math.min(Math.abs(n.left-r.right),Math.abs(n.right-r.left))-i.width)/2;if(!o&&a&&!s)return(Math.min(Math.abs(n.top-r.bottom),Math.abs(n.bottom-r.top))-i.height)/2}}getDirectionAlignSpacing(e){const{rects:n,isHorizontal:r}=e;if(n.length<2)return;const i=n[0].rect,o=n[1].rect,{isVerticalIntersection:a,isHorizontalIntersection:s,isIntersection:l}=this.intersection(i,o);if(!l){if(r&&s&&!a)return Math.min(Math.abs(i.left-o.right),Math.abs(i.right-o.left));if(!r&&a&&!s)return Math.min(Math.abs(i.top-o.bottom),Math.abs(i.bottom-o.top))}}intersection(e,n){const r=uF(e.left,n.right)&&M2(e.right,n.left),i=uF(e.top,n.bottom)&&M2(e.bottom,n.top);return{isHorizontalIntersection:i,isVerticalIntersection:r,isIntersection:i&&r}}};$S([Ot(ei)],Om.prototype,"document",2);$S([Ot(Lo)],Om.prototype,"entityManager",2);$S([Ot(Ya)],Om.prototype,"dragService",2);$S([Ot(da)],Om.prototype,"playgroundConfig",2);Om=$S([Pn()],Om);var UR=class extends Oa{constructor(){super(...arguments),this.node=Tr.createDivWithClass("gedit-playground-layer gedit-flow-snap-layer"),this.edgeLines=[],this.alignLines=[]}onReady(){this.node.style.zIndex="9999",this.toDispose.pushAll([this.service.onSnap(e=>{this.edgeLines=this.calcEdgeLines(e),this.alignLines=this.calcAlignLines(e),this.render()})])}render(){return V.createElement(V.Fragment,null,this.alignLines.length>0&&V.createElement("div",{className:"workflow-snap-align-lines"},this.renderAlignLines()),this.edgeLines.length>0&&V.createElement("div",{className:"workflow-snap-edge-lines"},this.renderEdgeLines()))}onZoom(e){this.node.style.transform=`scale(${e})`}renderEdgeLines(){return this.edgeLines.map(e=>{const{className:n,sourceNode:r,top:i,left:o,width:a,height:s,dashed:l}=e,c=`${n}-${r}-${i}-${o}-${a}-${s}`,u=a<s,d=`${this.options.edgeLineWidth}px ${l?"dashed":"solid"} ${this.options.edgeColor}`;return V.createElement("div",{className:`workflow-snap-edge-line ${n}`,"data-testid":"sdk.workflow.canvas.snap.edgeLine","data-snap-line-id":c,"data-snap-line-source-node":r,key:c,style:{top:i,left:o,width:a,height:s,position:"absolute",borderLeft:u?d:"none",borderTop:u?"none":d}})})}renderAlignLines(){return this.alignLines.map(e=>{const n=`${e.className}-${e.sourceNode}-${e.top}-${e.left}-${e.width}-${e.height}`,r=M2(e.width,e.height),i=this.options.alignLineWidth,o=this.options.alignCrossWidth,a=r?e.top-i/2:e.top,s=r?e.left:e.left-i/2;return V.createElement("div",{className:`workflow-snap-align-line ${e.className}`,"data-testid":"sdk.workflow.canvas.snap.alignLine","data-snap-line-id":n,"data-snap-line-source-node":e.sourceNode,key:n,style:{position:"absolute"}},V.createElement("div",{style:{position:"absolute",top:a,left:s,width:r?e.width:i,height:r?i:e.height,backgroundColor:this.options.alignColor}}),V.createElement("div",{style:{position:"absolute",top:r?a-(o-i)/2:a,left:r?s:s-(o-i)/2,width:r?i:o,height:r?o:i,backgroundColor:this.options.alignColor}}),V.createElement("div",{style:{position:"absolute",top:r?a-(o-i)/2:a+e.height-i,left:r?s+e.width-i:s-(o-i)/2,width:r?i:o,height:r?o:i,backgroundColor:this.options.alignColor}}))})}calcEdgeLines(e){const{alignRects:n,snapRect:r,snapEdgeLines:i}=e,o=[],a=this.directionFullAlign({alignRects:n.top,targetRect:r,isVertical:!0}),s=this.directionFullAlign({alignRects:n.bottom,targetRect:r,isVertical:!0}),l=this.directionFullAlign({alignRects:n.left,targetRect:r,isVertical:!1}),c=this.directionFullAlign({alignRects:n.right,targetRect:r,isVertical:!1});if(a){const d=a.rect.top,f=s?r.bottom-r.height/2-d:r.bottom-d,p=this.options.edgeLineWidth,h={top:d,width:p,height:f};o.push({className:"edge-full-top-left",sourceNode:a.sourceNodeId,left:r.left,...h}),o.push({className:"edge-full-top-right",sourceNode:a.sourceNodeId,left:r.right,...h}),o.push({className:"edge-full-top-mid",sourceNode:a.sourceNodeId,left:r.left+r.width/2,dashed:!0,...h})}if(s){const d=a?r.top+r.height/2:r.top,f=s.rect.bottom-d,p=this.options.edgeLineWidth,h={top:d,width:p,height:f};o.push({className:"edge-full-bottom-left",sourceNode:s.sourceNodeId,left:r.left,...h}),o.push({className:"edge-full-bottom-right",sourceNode:s.sourceNodeId,left:r.right,...h}),o.push({className:"edge-full-bottom-mid",sourceNode:s.sourceNodeId,left:r.left+r.width/2,dashed:!0,...h})}if(l){const d=l.rect.left,f=c?r.right-r.width/2-d:r.right-d,p=this.options.edgeLineWidth,h={left:d,width:f,height:p};o.push({className:"edge-full-left-top",sourceNode:l.sourceNodeId,top:r.top,...h}),o.push({className:"edge-full-left-bottom",sourceNode:l.sourceNodeId,top:r.bottom,...h}),o.push({className:"edge-full-left-mid",sourceNode:l.sourceNodeId,top:r.top+r.height/2,dashed:!0,...h})}if(c){const d=l?r.left+r.width/2:r.left,f=c.rect.right-d,p=this.options.edgeLineWidth,h={left:d,width:f,height:p};o.push({className:"edge-full-right-top",sourceNode:c.sourceNodeId,top:r.top,...h}),o.push({className:"edge-full-right-bottom",sourceNode:c.sourceNodeId,top:r.bottom,...h}),o.push({className:"edge-full-right-mid",sourceNode:c.sourceNodeId,top:r.top+r.height/2,dashed:!0,...h})}const u=Object.entries(i).map(([d,f])=>{if(!f)return;const p=this.document.getNode(f.sourceNodeId);if(!p)return;const h=p.getData(hr).bounds;if(NT(f.x)){const g=Math.min(h.top,r.top),y=Math.max(h.bottom,r.bottom)-g,_=f.x,S=this.options.edgeLineWidth,b=d==="midVertical",E={className:`edge-snapped-${d}`,sourceNode:f.sourceNodeId,top:g,left:_,width:S,height:y,dashed:b},w=g===h.top;return w&&a||!w&&s?void 0:E}else if(NT(f.y)){const g=Math.min(h.left,r.left),y=Math.max(h.right,r.right)-g,_=f.y,S=this.options.edgeLineWidth,b=d==="midHorizontal",E={className:`edge-snapped-${d}`,sourceNode:f.sourceNodeId,top:_,left:g,width:y,height:S,dashed:b},w=g===h.left;return w&&l||!w&&c?void 0:E}}).filter(Boolean);return o.push(...u),o}directionFullAlign(e){var s;const{alignRects:n,targetRect:r,isVertical:i}=e;let o=-1;for(let l=0;l<n.length;l++){const c=n[l],u=((s=n[l-1])==null?void 0:s.rect)??r;if(!this.rectFullAlign(c.rect,u,i))break;o=l}return n[o]}rectFullAlign(e,n,r){return r?fp(e.left,n.left)&&fp(e.right,n.right):fp(e.top,n.top)&&fp(e.bottom,n.bottom)}calcAlignLines(e){const{alignRects:n,alignSpacing:r,snapRect:i}=e,o=this.calcDirectionAlignLines({alignRects:n.top,targetRect:i,isVertical:!0,spacing:r.midVertical??r.top}),a=this.calcDirectionAlignLines({alignRects:n.bottom,targetRect:i,isVertical:!0,spacing:r.midVertical??r.bottom}),s=this.calcDirectionAlignLines({alignRects:n.left,targetRect:i,isVertical:!1,spacing:r.midHorizontal??r.left}),l=this.calcDirectionAlignLines({alignRects:n.right,targetRect:i,isVertical:!1,spacing:r.midHorizontal??r.right});return[...o,...a,...s,...l]}calcDirectionAlignLines(e){var s;const{alignRects:n,targetRect:r,isVertical:i,spacing:o}=e,a=[];if(!o)return a;for(let l=0;l<n.length;l++){const c=n[l],u=c.rect,d=((s=n[l-1])==null?void 0:s.rect)??r,f=i?Math.min(Math.abs(d.top-u.bottom),Math.abs(d.bottom-u.top)):Math.min(Math.abs(d.left-u.right),Math.abs(d.right-u.left));if(!fp(f,o))break;if(i){const p=this.calcHorizontalIntersectionCenter(u,r);a.push({className:"align-vertical",sourceNode:c.sourceNodeId,top:Math.min(u.bottom,d.bottom),left:p,width:1,height:o})}else{const p=this.calcVerticalIntersectionCenter(u,r);a.push({className:"align-horizontal",sourceNode:c.sourceNodeId,top:p,left:Math.min(u.right,d.right),width:o,height:1})}}return a}calcVerticalIntersectionCenter(e,n){const r=Math.max(e.top,n.top),i=Math.min(e.bottom,n.bottom);return(r+i)/2}calcHorizontalIntersectionCenter(e,n){const r=Math.max(e.left,n.left),i=Math.min(e.right,n.right);return(r+i)/2}};UR.type="WorkflowSnapLayer";$S([Ot(ei)],UR.prototype,"document",2);$S([Ot(Om)],UR.prototype,"service",2);UR=$S([Pn()],UR);var Yvr=pa({onBind({bind:e}){e(Om).toSelf().inSingletonScope()},onInit(e,n){const r={...Pct,...n};e.playground.registerLayer(UR,r),e.get(Om).init(r)},onDispose(e){e.get(Om).dispose()}}),qvr=Object.defineProperty,Kvr=Object.getOwnPropertyDescriptor,FS=(e,n,r,i)=>{for(var o=i>1?void 0:i?Kvr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&qvr(n,r,o),o},Xvr=async()=>{await NS(20)},Jj=e=>(e==null?void 0:e.getNodeMeta().isContainer)??!1,ID=(e,n={x:0,y:0})=>{const r=e.node;if(Jj(r)){const{point:o}=e;return e.portType==="input"?new Qn(o.x+n.x,o.y-50+n.y,300,100):new Qn(o.x-300,o.y-50,300,100)}return r.getData(hr).bounds},Act=e=>{const{node:n,subsequentNodes:r,fromPort:i,toPort:o,containerNode:a,offset:s,historyService:l,dragService:c}=e;if(!s||!o)return;const u=r.map(g=>{const v=g.getData(Ui);return{x:v.position.x,y:v.position.y}});l.pushOperation({type:ED.dragNodes,value:{ids:r.map(g=>g.id),value:u.map(g=>({x:g.x+s.x,y:g.y+s.y})),oldValue:u}});const d=ID(i),f=ID(o,s),p=n.getData(Ui);let h={x:(d.center.x+f.center.x)/2,y:(d.y+f.y)/2};a&&(h=c.adjustSubNodePosition(n.flowNodeType,a,h)),l.pushOperation({type:ED.dragNodes,value:{ids:[n.id],value:[h],oldValue:[{x:p.position.x,y:p.position.y}]}})},Dct=(e,n)=>{const r=Math.abs(Math.min(e.right,n.right)-Math.max(e.left,n.left)),i=Math.abs(Math.min(e.bottom,n.bottom)-Math.max(e.top,n.top));return Qn.intersects(e,n)?{x:-r,y:-i}:{x:r,y:i}},S5=(e,n)=>e===void 0||n===void 0?!1:e-n>1e-5,h3e=(e,n)=>e===void 0||n===void 0?!1:n-e>1e-5,kct=e=>{var v;const{node:n,fromPort:r,toPort:i,padding:o}=e,a=ID(r),s=ID(i),l=n.getData(hr),c=((v=n.getNodeMeta())==null?void 0:v.size)??{width:l.bounds.width,height:l.bounds.height},u={x:c.width+o.x,y:c.height+o.y},d=Dct(a,s),f={x:S5(d.x,u.x)?0:u.x-d.x,y:S5(d.y,u.y)?0:u.y-d.y};if(f.x===0||f.y===0)return;const p={vertical:Qn.intersects(a,s,"horizontal"),horizontal:Qn.intersects(a,s,"vertical")};let h=0,g=0;return p.horizontal||(S5(s.center.y,a.center.y)?g=f.y:h3e(s.center.y,a.center.y)&&(g=-f.y)),p.vertical||(S5(s.center.x,a.center.x)?h=f.x:h3e(s.center.x,a.center.x)&&(h=-f.x)),{x:h,y:g}},Lct=e=>{var c;const{node:n,linesManager:r}=e;if(Jj(n))return[];const i=((c=n.parent)==null?void 0:c.blocks)??[],o=new Set,a=new Map;r.getAllLines().forEach(u=>{var d,f;a.has(u.from.id)||a.set(u.from.id,[]),!(!((d=u.to)!=null&&d.id)||Jj(u.to))&&((f=a.get(u.from.id))==null||f.push(u.to.id))});const s=u=>{if(o.has(u))return;o.add(u),(a.get(u)??[]).forEach(s)};return s(n.id),i.filter(u=>o.has(u.id))},Qvr=e=>{const{node:n,fromPort:r,toPort:i,linesManager:o,historyService:a,dragService:s,containerNode:l,padding:c={x:100,y:100}}=e,u=kct({node:n,fromPort:r,toPort:i,padding:c}),d=Lct({node:i.node,linesManager:o});Act({node:n,subsequentNodes:d,fromPort:r,toPort:i,containerNode:l,offset:u,historyService:a,dragService:s})},Zvr=e=>{const{fromPort:n,containerNode:r}=e;if(r)return r;const i=n==null?void 0:n.node,o=i==null?void 0:i.parent;return Jj(i)?i:o},Jvr=e=>{var c,u;const{fromPort:n,node:r,toPort:i,linesManager:o}=e,a=r.getData(Xm);if(!a)return;const s=((c=a.inputPorts)==null?void 0:c.length)>0;if(n&&s){const d=a.inputPorts[0],f=a.inputPorts.length===1;o.createLine({from:n.node.id,fromPort:n.portID,to:r.id,toPort:f?void 0:d.id})}const l=((u=a.outputPorts)==null?void 0:u.length)>0;if(i&&l){const d=a.outputPorts[0];o.createLine({from:r.id,fromPort:d.portID,to:i.node.id,toPort:i.portID})}},eyr=e=>{var f;const{nodeType:n,position:r,fromPort:i,toPort:o,containerNode:a,document:s,dragService:l}=e,c=s.getNodeRegistry(n),u=(f=c==null?void 0:c.meta)==null?void 0:f.size;let d=r;return u?i&&o?d={x:r.x,y:r.y-u.height/2}:i&&!o?d={x:r.x+u.width/2,y:r.y-u.height/2}:!i&&o?d={x:r.x-u.width/2,y:r.y-u.height/2}:d=r:d=r,l.adjustSubNodePosition(n,a,d)},ef={adjustNodePosition:eyr,buildLine:Jvr,getPortBox:ID,getSubsequentNodes:Lct,getContainerNode:Zvr,rectDistance:Dct,subNodesAutoOffset:Qvr,subPositionOffset:kct,updateSubSequentNodesPosition:Act,waitNodeRender:Xvr},Sd=class{constructor(){this.toDispose=new Ei,this.callNodePanel=async()=>{}}dispose(){this.toDispose.dispose()}setCallNodePanel(e){this.callNodePanel=e}async call(e){const{panelPosition:n,fromPort:r,enableMultiAdd:i=!1,panelProps:o={},containerNode:a,afterAddNode:s}=e;if(!n||this.playgroundConfig.readonly)return;const l=[];return new Promise(c=>{this.callNodePanel({position:n,enableMultiAdd:i,panelProps:o,containerNode:ef.getContainerNode({fromPort:r,containerNode:a}),onSelect:async u=>{const d=await this.addNode(e,u);s==null||s(d),i?d&&l.push(d):c(d)},onClose:()=>{c(i?l:void 0)}})})}async singleSelectNodePanel(e){return new Promise(n=>{this.callNodePanel({...e,enableMultiAdd:!1,onSelect:async r=>{n(r)},onClose:()=>{n(void 0)}})})}async addNode(e,n){const{panelPosition:r,fromPort:i,toPort:o,canAddNode:a,autoOffsetPadding:s={x:100,y:100},enableBuildLine:l=!1,enableSelectPosition:c=!1,enableAutoOffset:u=!1,enableDragNode:d=!1}=e;if(!r||!n)return;const{nodeType:f,selectEvent:p,nodeJSON:h}=n,g=ef.getContainerNode({fromPort:i,containerNode:e.containerNode});if(a&&!a({nodeType:f,containerNode:g}))return;const v=this.playgroundConfig.getPosFromMouseEvent(p),y=e.customPosition?e.customPosition({nodeType:f,selectPosition:v}):ef.adjustNodePosition({nodeType:f,position:c?v:r,fromPort:i,toPort:o,containerNode:g,document:this.document,dragService:this.dragService}),_=this.document.createWorkflowNodeByType(f,y,h??{},g==null?void 0:g.id);if(_)return u&&i&&o&&ef.subNodesAutoOffset({node:_,fromPort:i,toPort:o,padding:s,containerNode:g,historyService:this.historyService,dragService:this.dragService,linesManager:this.linesManager}),!l&&!d||(await ef.waitNodeRender(),l&&ef.buildLine({fromPort:i,node:_,toPort:o,linesManager:this.linesManager}),d&&(this.selectService.selectNode(_),this.dragService.startDragSelectedNodes(p))),_}};FS([Ot(ei)],Sd.prototype,"document",2);FS([Ot(Ya)],Sd.prototype,"dragService",2);FS([Ot(Wa)],Sd.prototype,"selectService",2);FS([Ot(Ql)],Sd.prototype,"linesManager",2);FS([Ot(da)],Sd.prototype,"playgroundConfig",2);FS([Ot(qa)],Sd.prototype,"historyService",2);Sd=FS([Pn()],Sd);var tye=class extends Oa{constructor(){super(),this.node=Tr.createDivWithClass("gedit-playground-layer gedit-node-panel-layer"),this.node.style.zIndex="9999",this.renderList=new Map}onReady(){this.service.setCallNodePanel(this.call.bind(this))}onZoom(e){this.node.style.transform=`scale(${e})`}render(){const e=this.options.renderer;return V.createElement(V.Fragment,null,Array.from(this.renderList.keys()).map(n=>{const r=this.renderList.get(n);return V.createElement(e,{key:n,...r})}))}async call(e){const n=tve(),{onSelect:r,onClose:i,enableMultiAdd:o=!1,panelProps:a={}}=e;return new Promise(s=>{const l=()=>{this.renderList.delete(n),this.render(),s()},d={...e,panelProps:a,onSelect:f=>{r(f),o||l()},onClose:()=>{l(),i()}};this.renderList.set(n,d),this.render()})}};tye.type="WorkflowNodePanelLayer";FS([Ot(Sd)],tye.prototype,"service",2);var tyr=pa({onBind({bind:e}){e(Sd).toSelf().inSingletonScope()},onInit:(e,n)=>{e.playground.registerLayer(tye,{renderer:n.renderer})},onDispose:e=>{e.get(Sd).dispose()}}),nyr=Object.defineProperty,ryr=Object.getOwnPropertyDescriptor,BS=(e,n,r,i)=>{for(var o=i>1?void 0:i?ryr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&nyr(n,r,o),o},e7=(e=>(e.In="in",e.Out="out",e))(e7||{}),hc=class{constructor(){this.emitter=new Un,this.toDispose=new Ei,this.on=this.emitter.event}init(){this.initState(),this.toDispose.push(this.emitter)}ready(){this.toDispose.push(this.listenDragToContainer())}dispose(){this.initState(),this.toDispose.dispose()}async moveOutContainer(e){var s;const{node:n}=e,r=n.parent,i=r==null?void 0:r.parent,o=this.document.toNodeJSON(n);if(!r||!i||!this.isContainer(r)||!((s=o.meta)!=null&&s.position))return;this.operationService.moveNode(n,{parent:i});const a=r.getData(Ui);this.operationService.updateNodePosition(n,{x:a.position.x+o.meta.position.x,y:a.position.y+o.meta.position.y}),a.fireChange(),await this.nextFrame(),a.fireChange(),this.emitter.fire({type:"out",node:n,sourceContainer:r,targetContainer:i})}canMoveOutContainer(e){const n=e.parent,r=n==null?void 0:n.parent;return!(!n||!r||!this.isContainer(n)||!this.dragService.canDropToNode({dragNodeType:e.flowNodeType,dropNode:r}).allowDrop)}async clearInvalidLines(e){var i;const{dragNode:n,sourceParent:r}=e;n&&n.parent!==r&&(((i=n.parent)==null?void 0:i.flowNodeType)===Fo.GROUP||(r==null?void 0:r.flowNodeType)===Fo.GROUP||await this.removeNodeLines(n))}initState(){this.state={isDraggingNode:!1,isSkipEvent:!1,transforms:void 0,dragNode:void 0,dropNode:void 0,sourceParent:void 0}}listenDragToContainer(){const e=r=>this.draggingNode(r),n=Mn.throttle(e,200);return this.dragService.onNodesDrag(async r=>{var i;if(this.selectService.selectedNodes.length===1){if(r.type==="onDragStart"){if(this.state.isSkipEvent){this.state.isSkipEvent=!1;return}this.historyService.startTransaction(),this.state.isDraggingNode=!0,this.state.transforms=this.getContainerTransforms(),this.state.dragNode=this.selectService.selectedNodes[0],this.state.dropNode=void 0,this.state.sourceParent=(i=this.state.dragNode)==null?void 0:i.parent,await this.dragOutContainer(r)}if(r.type==="onDragging"&&n(r),r.type==="onDragEnd"){if(this.state.isSkipEvent)return;n.cancel(),e(r),await this.dropNodeToContainer(),await this.clearInvalidLines({dragNode:this.state.dragNode,sourceParent:this.state.sourceParent}),this.setDropNode(void 0),this.initState(),this.historyService.endTransaction()}}})}async dragOutContainer(e){const{dragNode:n}=this.state;!(e.triggerEvent.metaKey||e.triggerEvent.ctrlKey)||!n||!this.canMoveOutContainer(n)||(this.moveOutContainer({node:n}),this.state.isSkipEvent=!0,e.dragger.stop(e.dragEvent.clientX,e.dragEvent.clientY),await this.nextFrame(),this.dragService.startDragSelectedNodes(e.triggerEvent))}async removeNodeLines(e){this.linesManager.getAllLines().forEach(r=>{var i;r.from.id!==e.id&&((i=r.to)==null?void 0:i.id)!==e.id||r.dispose()}),await this.nextFrame()}getCollisionTransform(e){const{targetRect:n,targetPoint:r,transforms:i,withPadding:o=!1}=e;return i.find(s=>{const{bounds:l,entity:c}=s,u=o?this.document.layout.getPadding(c):{left:0,right:0},d=new Qn(l.x+u.left+u.right,l.y,l.width,l.height);return n?this.isRectIntersects(n,d):r?this.isPointInRect(r,d):!1})}setDropNode(e){var i,o,a,s;if(this.state.dropNode===e)return;if(this.state.dropNode){const c=(o=(i=this.state.dropNode.getData(ra).node)==null?void 0:i.children)==null?void 0:o[0];c&&c.classList.remove("selected")}if(this.state.dropNode=e,!e)return;const r=(s=(a=e.getData(ra).node)==null?void 0:a.children)==null?void 0:s[0];r&&r.classList.add("selected")}getContainerTransforms(){return this.document.getAllNodes().filter(e=>e.originParent?e.getNodeMeta().selectable&&e.originParent.getNodeMeta().selectable:e.getNodeMeta().selectable).filter(e=>this.isContainer(e)).sort((e,n)=>{const r=e.renderData.stackIndex;return n.renderData.stackIndex-r}).map(e=>e.transform)}async dropNodeToContainer(){const{dropNode:e,dragNode:n,isDraggingNode:r}=this.state;if(!(!r||!n||!e))return await this.moveIntoContainer({node:n,containerNode:e})}draggingNode(e){const{dragNode:n,isDraggingNode:r,transforms:i=[]}=this.state;if(!r||!n||!(i!=null&&i.length))return this.setDropNode(void 0);const o=this.playgroundConfig.getPosFromMouseEvent(e.dragEvent),a=i.filter(u=>u.entity.id!==n.id),s=this.getCollisionTransform({targetPoint:o,transforms:a}),l=s==null?void 0:s.entity;return this.canDropToContainer({dragNode:n,dropNode:l})?this.setDropNode(l):this.setDropNode(void 0)}canDropToContainer(e){const{dragNode:n,dropNode:r}=e,i=r==null?void 0:r.getNodeMeta().isContainer;return!(!r||!i||this.isParent(n,r)||n.flowNodeType===Fo.GROUP&&r.flowNodeType!==Fo.GROUP||!this.dragService.canDropToNode({dragNodeType:n.flowNodeType,dropNode:r}).allowDrop)}isParent(e,n){let r=e.parent;for(;r;){if(r.id===n.id)return!0;r=r.parent}return!1}async moveIntoContainer(e){const{node:n,containerNode:r}=e,i=n.parent;this.operationService.moveNode(n,{parent:r}),this.operationService.updateNodePosition(n,this.adjustSubNodePosition(n,r)),await this.nextFrame(),this.emitter.fire({type:"in",node:n,sourceContainer:i,targetContainer:r})}adjustSubNodePosition(e,n){if(n.flowNodeType===Fo.ROOT)return e.transform.position;const r=e.transform.transform.worldTransform,i=n.transform.transform.worldTransform,o={x:r.tx,y:r.ty},a=!n.children||n.children.length===0,s=this.document.layout.getPadding(n);return a?{x:0,y:s.top}:{x:o.x-i.tx,y:o.y-i.ty}}isContainer(e){return(e==null?void 0:e.getNodeMeta().isContainer)??!1}isPointInRect(e,n){return e.x>=n.left&&e.x<=n.right&&e.y>=n.top&&e.y<=n.bottom}isRectIntersects(e,n){const r=e.right>n.left&&e.left<n.right,i=e.bottom>n.top&&e.top<n.bottom;return r&&i}async nextFrame(){await new Promise(e=>requestAnimationFrame(e))}};BS([Ot(Ya)],hc.prototype,"dragService",2);BS([Ot(ei)],hc.prototype,"document",2);BS([Ot(da)],hc.prototype,"playgroundConfig",2);BS([Ot(zV)],hc.prototype,"operationService",2);BS([Ot(Ql)],hc.prototype,"linesManager",2);BS([Ot(qa)],hc.prototype,"historyService",2);BS([Ot(Wa)],hc.prototype,"selectService",2);hc=BS([Pn()],hc);var iyr=pa({onBind:({bind:e})=>{e(hc).toSelf().inSingletonScope()},onInit(e,n){e.get(hc).init()},onReady(e,n){n.disableNodeIntoContainer!==!0&&e.get(hc).ready()},onDispose(e){e.get(hc).dispose()}}),$ct=()=>{const e=Dw(),n=e.getNodeMeta(),{size:r={width:300,height:200},isContainer:i}=n,o=e.getData(hr),[a,s]=m.useState(r.width),[l,c]=m.useState(r.height),u=()=>{e.getData(Xm).updateDynamicPorts()},d=()=>{if(e.blocks.length===0){s(r.width),c(r.height);return}s(o.bounds.width),c(o.bounds.height)};if(m.useEffect(()=>{const f=o.onDataChange(()=>{d(),u()});return()=>f.dispose()},[o,a,l]),m.useEffect(()=>{d()},[]),!!i)return{width:a,height:l}},oyr=e=>{const n=Dw();m.useLayoutEffect(()=>{e&&(n.renderData.node.style.width=e.width+"px",n.renderData.node.style.height=e.height+"px")},[e==null?void 0:e.width,e==null?void 0:e.height])},ayr=oi.div`
width: 100%;
height: 100%;
inset: 56px 18px 18px;
background-color: #f2f3f5;
`,syr=()=>{const e=Dw();return V.createElement(ayr,{className:"sub-canvas-background","data-flow-editor-selectable":"true"},V.createElement("svg",{width:"100%",height:"100%"},V.createElement("pattern",{id:"sub-canvas-dot-pattern",width:"20",height:"20",patternUnits:"userSpaceOnUse"},V.createElement("circle",{cx:"1",cy:"1",r:"1",stroke:"#eceeef",fillOpacity:"0.5"})),V.createElement("rect",{width:"100%",height:"100%",fill:"url(#sub-canvas-dot-pattern)","data-node-panel-container":e.id})))},lyr=oi.div`
pointer-events: none;
position: relative;
display: flex;
align-items: center;
width: 100%;
height: 100%;
background-color: transparent;
border: 1px solid var(--coz-stroke-plus, rgba(6, 7, 9, 15%));
border-color: var(--coz-bg-plus, rgb(249, 249, 249));
border-style: solid;
border-width: 8px;
border-radius: 8px;
&::before {
content: '';
position: absolute;
z-index: 0;
inset: -4px;
background-color: transparent;
border-color: var(--coz-bg-plus, rgb(249, 249, 249));
border-style: solid;
border-width: 4px;
border-radius: 8px;
}
`,cyr=({style:e,children:n})=>V.createElement(lyr,{className:"sub-canvas-border",style:{...e}},n),uyr=oi.div`
width: 100%;
height: 100%;
`,g3e="workflow-move-into-sub-canvas-tip-visible",m3e="false",dyr=class Fct{constructor(){this.closed=!1}static get instance(){return this._instance||(this._instance=new Fct),this._instance}isClosed(){return this.isCloseForever()||this.closed}close(){this.closed=!0}isCloseForever(){return localStorage.getItem(g3e)===m3e}closeForever(){localStorage.setItem(g3e,m3e)}},fyr=()=>{const e=Dw(),[n,r]=m.useState(!1),i=dyr.instance,o=Di(hc),a=m.useCallback(()=>{i.isClosed()||r(!0)},[i]),s=m.useCallback(()=>{i.close(),r(!1)},[i]),l=m.useCallback(()=>{i.closeForever(),s()},[s,i]);return m.useEffect(()=>{const c=o.on(d=>{d.type==="in"&&d.targetContainer===e&&a()}),u=o.on(d=>{d.type==="out"&&d.sourceContainer===e&&!e.blocks.length&&r(!1)});return()=>{c.dispose(),u.dispose()}},[o,e,a,s,n]),{visible:n,close:s,closeForever:l}},pyr=oi.div`
position: absolute;
top: 0;
width: 100%;
height: 28px;
.container {
height: 100%;
background-color: #e4e6f5;
border-radius: 4px 4px 0 0;
.content {
overflow: hidden;
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
.text {
font-size: 14px;
font-weight: 400;
font-style: normal;
line-height: 20px;
color: rgba(15, 21, 40, 82%);
text-overflow: ellipsis;
}
.space {
width: 128px;
}
}
.actions {
position: absolute;
top: 0;
right: 0;
display: flex;
gap: 8px;
align-items: center;
height: 28px;
padding: 0 16px;
.close-forever {
cursor: pointer;
padding: 0 3px;
font-size: 12px;
font-weight: 400;
font-style: normal;
line-height: 12px;
color: rgba(32, 41, 69, 62%);
}
.close {
display: flex;
cursor: pointer;
height: 100%;
align-items: center;
}
}
}
`,hyr=/(Macintosh|MacIntel|MacPPC|Mac68K|iPad)/.test(navigator.userAgent),gyr=()=>V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"},V.createElement("path",{fill:"#060709",fillOpacity:"0.5",d:"M12.13 12.128a.5.5 0 0 0 .001-.706L8.71 8l3.422-3.423a.5.5 0 0 0-.001-.705.5.5 0 0 0-.706-.002L8.002 7.293 4.579 3.87a.5.5 0 0 0-.705.002.5.5 0 0 0-.002.705L7.295 8l-3.423 3.422a.5.5 0 0 0 .002.706c.195.195.51.197.705.001l3.423-3.422 3.422 3.422c.196.196.51.194.706-.001"})),myr=()=>{const{visible:e,close:n,closeForever:r}=fyr();return e?V.createElement(pyr,{className:"sub-canvas-tips"},V.createElement("div",{className:"container"},V.createElement("div",{className:"content"},V.createElement("p",{className:"text"},`Hold ${hyr?"Cmd ⌘":"Ctrl"} to drag node out`),V.createElement("div",{className:"space",style:{width:0}})),V.createElement("div",{className:"actions"},V.createElement("p",{className:"close-forever",onClick:r},"Never Remind"),V.createElement("div",{className:"close",onClick:n},V.createElement(gyr,null))))):null},vyr=({className:e,style:n})=>{const r=Dw(),i=$ct(),o=(i==null?void 0:i.height)??0,{padding:a}=r.transform;return oyr(i),V.createElement(uyr,{className:`sub-canvas-render ${e??""}`,style:{height:o-a.top,...n},"data-flow-editor-selectable":"true",onDragStart:s=>{s.stopPropagation()}},V.createElement(cyr,null,V.createElement(syr,null),V.createElement(myr,null)))},yyr=Object.defineProperty,_yr=Object.getOwnPropertyDescriptor,S$=(e,n,r,i)=>{for(var o=i>1?void 0:i?_yr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&yyr(n,r,o),o},Yse;(e=>{const n=i=>{var o;return((o=i==null?void 0:i.parent)==null?void 0:o.flowNodeType)===Fo.GROUP},r=i=>i.flowNodeType===Fo.GROUP;e.validate=i=>{if(!i||!Array.isArray(i)||i.length===0||i.some(c=>r(c))||i.some(c=>c&&n(c)))return!1;const s=i[0].parent;return!!i.every(c=>c.parent===s)}})(Yse||(Yse={}));var _p=class extends PC{constructor(){super(...arguments),this.toDispose=new Ei}ready(){this.toDispose.push(this.listenContainer())}dispose(){this.toDispose.dispose()}createGroup(e){if(!Yse.validate(e))return;const n=e[0].parent??this.document.root,r=`group_${tve(5)}`,i={type:Fo.GROUP,id:r,meta:{position:{x:0,y:0}},data:{}};this.historyService.startTransaction(),this.document.createWorkflowNodeByType(Fo.GROUP,{x:0,y:0},i,n.id),e.forEach(o=>{this.freeOperationService.moveNode(o,{parent:r})}),this.historyService.endTransaction()}ungroup(e){const n=e.blocks.slice();if(!e.parent)return;const r=e.transform.position;this.historyService.startTransaction(),n.forEach(i=>{var o;this.freeOperationService.moveNode(i,{parent:(o=e.parent)==null?void 0:o.id})}),e.dispose(),n.forEach(i=>{const o=i.getData(Ui),a={x:o.position.x+r.x,y:o.position.y+r.y};this.freeOperationService.updateNodePosition(i,a)}),this.historyService.endTransaction()}listenContainer(){return this.nodeIntoContainerService.on(e=>{var n,r;e.type!==e7.Out||((n=e.sourceContainer)==null?void 0:n.flowNodeType)!==Fo.GROUP||((r=e.sourceContainer)==null?void 0:r.blocks.length)===0&&e.sourceContainer.dispose()})}};S$([Ot(ei)],_p.prototype,"document",2);S$([Ot(zV)],_p.prototype,"freeOperationService",2);S$([Ot(qa)],_p.prototype,"historyService",2);S$([Ot(hc)],_p.prototype,"nodeIntoContainerService",2);_p=S$([Pn()],_p);var nye=(e=>(e.Group="group",e.Ungroup="ungroup",e))(nye||{}),byr=class{constructor(e){this.commandId="group",this.commandDetail={label:"Group"},this.shortcuts=["meta g","ctrl g"],this.selectService=e.get(Wa),this.groupService=e.get(_p),this.execute=this.execute.bind(this)}async execute(){this.groupService.createGroup(this.selectService.selectedNodes),this.selectService.clear()}},Syr=class{constructor(e){this.commandId="ungroup",this.commandDetail={label:"Ungroup"},this.shortcuts=["meta shift g","ctrl shift g"],this.selectService=e.get(Wa),this.groupService=e.get(_p),this.execute=this.execute.bind(this)}async execute(e){const n=e||this.selectService.activatedNode;!n||n.flowNodeType!==Fo.GROUP||(this.groupService.ungroup(n),this.selectService.clear())}},Eyr={type:Fo.GROUP,meta:{renderKey:Fo.GROUP,defaultPorts:[],isContainer:!0,disableSideBar:!0,size:{width:560,height:400},padding:()=>({top:80,bottom:40,left:65,right:65}),selectable(e,n){return n?!e.getData(hr).bounds.contains(n.x,n.y):!0},expandable:!1},formMeta:{render:()=>React.createElement(React.Fragment,null)},onCreate(){}},Cyr=pa({onBind({bind:e,rebind:n}){e(_p).toSelf().inSingletonScope(),n(PC).toService(_p)},onInit(e,{groupNodeRender:n,disableGroupShortcuts:r=!1,disableGroupNodeRegister:i=!1}){n&&e.get(_d).registerReactComponent(Fo.GROUP,n),r||e.get(j0).addHandlers(new byr(e),new Syr(e)),i||e.get(ei).registerFlowNodes(Eyr)},onReady(e){e.get(_p).ready()},onDispose(e){e.get(_p).dispose()}});const wyr=async(e,n)=>{const r=e.get(Sd),i=e.document,o=e.get(Ya),a=e.get(Ql),{fromPort:s,toPort:l,mousePos:c,line:u,originLine:d}=n;if(d||!u||l)return;const f=ef.getContainerNode({fromPort:s}),p=await r.singleSelectNodePanel({position:c,containerNode:f,panelProps:{enableNodePlaceholder:!0,enableScrollClose:!0}});if(!p)return;const{nodeType:h,nodeJSON:g}=p,v=ef.adjustNodePosition({nodeType:h,position:c,fromPort:s,toPort:l,containerNode:f,document:i,dragService:o}),y=i.createWorkflowNodeByType(h,v,g??{},f==null?void 0:f.id);await NS(20),ef.buildLine({fromPort:s,node:y,toPort:l,linesManager:a})},Bct="flowgram-workflow-clipboard-data";var ff=(e=>(e.COPY="COPY",e.PASTE="PASTE",e.CUT="CUT",e.GROUP="GROUP",e.UNGROUP="UNGROUP",e.COLLAPSE="COLLAPSE",e.EXPAND="EXPAND",e.DELETE="DELETE",e.ZOOM_IN="ZOOM_IN",e.ZOOM_OUT="ZOOM_OUT",e.RESET_ZOOM="RESET_ZOOM",e.SELECT_ALL="SELECT_ALL",e.CANCEL_SELECT="CANCEL_SELECT",e))(ff||{});class xyr{constructor(n){$t(this,"commandId",ff.ZOOM_OUT);$t(this,"shortcuts",["meta -","ctrl -"]);$t(this,"playgroundConfig");this.playgroundConfig=n.get(da),this.execute=this.execute.bind(this)}async execute(){this.playgroundConfig.zoom>1.9||this.playgroundConfig.zoomout()}}class Tyr{constructor(n){$t(this,"commandId",ff.ZOOM_IN);$t(this,"shortcuts",["meta =","ctrl ="]);$t(this,"playgroundConfig");this.playgroundConfig=n.get(da),this.execute=this.execute.bind(this)}async execute(){this.playgroundConfig.zoom>1.9||this.playgroundConfig.zoomin()}}class Oyr{constructor(n){$t(this,"commandId",ff.SELECT_ALL);$t(this,"shortcuts",["meta a","ctrl a"]);$t(this,"document");$t(this,"playground");this.document=n.get(ei),this.playground=n.playground,this.execute=this.execute.bind(this)}async execute(){const n=this.document.getAllNodes();this.playground.selectionService.selection=n}}const Ryr=(e,n)=>{const r=Array.isArray(n)?i=>{n.forEach(o=>o(i))}:n;return qse({value:e},r),e},qse=(e,n)=>{const{value:r}=e;if(!r)return;if(Object.prototype.toString.call(r)==="[object Object]")Object.entries(r).forEach(([o,a])=>qse({value:a,container:r,key:o,parent:e},n));else if(Array.isArray(r))for(let o=r.length-1;o>=0;o--){const a=r[o];qse({value:a,container:r,index:o,parent:e},n)}const i=Iyr({node:e});n(i)},Iyr=({node:e})=>({node:e,setValue:n=>Nyr(e,n),getParents:()=>jct(e),getPath:()=>Myr(e),getStringifyPath:()=>Pyr(),deleteSelf:()=>Ayr(e)}),Nyr=(e,n)=>{if(!n||!e)return;e.value=n;const{container:r,key:i,index:o}=e;i&&r?r[i]=n:typeof o=="number"&&(r[o]=n)},jct=e=>{const n=[];let r=e;for(;r;)n.unshift(r),r=r.parent;return n},Myr=e=>{const n=[];return jct(e).forEach(i=>{i.key?n.unshift(i.key):i.index&&n.unshift(i.index)}),n},Pyr=e=>"",Ayr=e=>{const{container:n,key:r,index:i}=e;r&&n?delete n[r]:typeof i=="number"&&n.splice(i,1)};var OP;(e=>{const n=rit("1234567890",6);e.getAllNodeIds=o=>{const a=new Set,s=l=>{var c;a.add(l.id),(c=l.blocks)!=null&&c.length&&l.blocks.forEach(u=>s(u))};return o.nodes.forEach(l=>s(l)),Array.from(a)},e.generateNodeReplaceMap=(o,a)=>{const s=new Map;return o.forEach(l=>{if(a(l))s.set(l,l);else{let c;do c=n();while(!a(c));s.set(l,c)}}),s};const r=o=>o!=null,i=o=>{var s,l,c,u,d,f,p;const{node:a}=o;return!!(a!=null&&a.key&&["sourceNodeID","targetNodeID"].includes(a.key)&&((l=(s=a.parent)==null?void 0:s.parent)==null?void 0:l.key)==="edges"||(a==null?void 0:a.key)==="id"&&r((c=a.container)==null?void 0:c.type)&&r((u=a.container)==null?void 0:u.meta)&&r((d=a.container)==null?void 0:d.data)||(a==null?void 0:a.key)==="blockID"&&r((f=a.container)==null?void 0:f.name)&&((p=a.container)==null?void 0:p.source)==="block-output")};e.replaceNodeId=(o,a)=>(Ryr(o,s=>{if(!i(s))return;const{node:l}=s;a.has(l.value)&&s.setValue(a.get(l.value))}),o)})(OP||(OP={}));const Dyr=e=>{const{json:n,isUniqueId:r}=e,i=OP.getAllNodeIds(n),o=OP.generateNodeReplaceMap(i,r);return OP.replaceNodeId(n,o)};class Uct{constructor(n){$t(this,"commandId",ff.PASTE);$t(this,"shortcuts",["meta v","ctrl v"]);$t(this,"document");$t(this,"selectService");$t(this,"entityManager");$t(this,"hoverService");$t(this,"dragService");this.document=n.get(ei),this.selectService=n.get(Wa),this.entityManager=n.get(Lo),this.hoverService=n.get(If),this.dragService=n.get(Ya),this.execute=this.execute.bind(this)}async execute(){const n=await this.tryReadClipboard();if(!n||!this.isValidData(n))return;const r=this.apply(n);return r.length>0&&(Zb.success({content:"Copy successfully",showClose:!1}),await this.nextTick(),this.scrollNodesToView(r)),r}apply(n){const{json:r}=n,i=Dyr({json:r,isUniqueId:l=>!this.entityManager.getEntityById(l)}),o=this.calcPasteOffset(n.bounds),a=this.getSelectedContainer();this.applyOffset({json:i,offset:o,parent:a});const{nodes:s}=this.document.renderJSON(i,{parent:a});return this.selectNodes(s),s}isValidData(n){return(n==null?void 0:n.type)!==Bct?(Zb.error({content:"Invalid clipboard data"}),!1):n.source.host!==window.location.host?(Zb.error({content:"Cannot paste nodes from different host"}),!1):!0}async tryReadClipboard(){try{const n=await navigator.clipboard.readText()||"";return JSON.parse(n)}catch{return}}calcPasteOffset(n){const{x:r,y:i,width:o,height:a}=n,s=new Qn(r,i,o,a),{center:l}=s,c=this.hoverService.hoveredPos;return{x:c.x-l.x,y:c.y-l.y}}applyOffset(n){const{json:r,offset:i,parent:o}=n;r.nodes.forEach(a=>{var l;if(!((l=a.meta)!=null&&l.position))return;let s={x:a.meta.position.x+i.x,y:a.meta.position.y+i.y};o&&(s=this.dragService.adjustSubNodePosition(a.type,o,s)),a.meta.position=s})}getSelectedContainer(){const{activatedNode:n}=this.selectService;return n!=null&&n.getNodeMeta().isContainer?n:void 0}selectNodes(n){this.selectService.selection=n}async scrollNodesToView(n){const r=n.map(i=>i.getData(hr).bounds);await this.document.playgroundConfig.scrollToView({bounds:Qn.enlarge(r)})}async nextTick(){await NS(16),await new Promise(r=>requestAnimationFrame(r))}}class kyr{constructor(n){$t(this,"commandId",ff.EXPAND);$t(this,"commandDetail",{label:"Expand"});$t(this,"shortcuts",["meta alt closebracket","ctrl alt openbracket"]);$t(this,"selectService");this.selectService=n.get(Wa),this.execute=this.execute.bind(this)}async execute(){this.selectService.selectedNodes.forEach(n=>{n.renderData.expanded=!0})}}class Lyr{constructor(n){$t(this,"commandId",ff.DELETE);$t(this,"shortcuts",["backspace","delete"]);$t(this,"document");$t(this,"selectService");this.document=n.get(ei),this.selectService=n.get(Wa),this.execute=this.execute.bind(this)}async execute(){this.isValid(this.selectService.selectedNodes)&&(this.selectService.selection.forEach(n=>{n instanceof Dp?this.removeNode(n):n instanceof Zd?this.removeLine(n):n.dispose()}),this.selectService.selection=this.selectService.selection.filter(n=>!n.disposed))}isValid(n){return n.some(i=>[xu.Start,xu.End].includes(i.flowNodeType))?(Zb.error({content:"Start or End node cannot be deleted",showClose:!1}),!1):!0}removeNode(n){var o;if(!this.document.canRemove(n))return;const r=n.getNodeMeta(),i=(o=r.subCanvas)==null?void 0:o.call(r,n);if(i!=null&&i.isCanvas){i.parentNode.dispose();return}n.dispose()}removeLine(n){this.document.linesManager.canRemove(n)&&n.dispose()}}class Hct{constructor(n){$t(this,"commandId",ff.COPY);$t(this,"shortcuts",["meta c","ctrl c"]);$t(this,"document");$t(this,"selectService");this.document=n.get(ei),this.selectService=n.get(Wa),this.execute=this.execute.bind(this)}async execute(){if(await this.hasSelectedText()||!this.isValid(this.selectedNodes))return;const n=this.toClipboardData();await this.write(n)}async hasSelectedText(){var n,r;return(n=window.getSelection())!=null&&n.toString()?(await navigator.clipboard.writeText(((r=window.getSelection())==null?void 0:r.toString())??""),Zb.success({content:"Text copied"}),!0):!1}get selectedNodes(){return this.selectService.selection.filter(n=>n instanceof Dp)}isValid(n){return n.length===0?(Zb.warning({content:"No nodes selected"}),!1):!0}toClipboardData(n){const r=this.getValidNodes(n||this.selectedNodes),i=this.toSource(),o=this.toJSON(r),a=this.getEntireBounds(r);return{type:Bct,source:i,json:o,bounds:a}}getValidNodes(n){return n.filter(r=>!([xu.Start,xu.End].includes(r.flowNodeType)||r.getNodeMeta().copyDisable))}toSource(){return{host:window.location.host}}toJSON(n){const r=this.getNodeJSONs(n),i=this.getEdgeJSONs(n);return{nodes:r,edges:i}}getNodeJSONs(n){return n.map(i=>{var s;const o=this.document.toNodeJSON(i);if(!((s=o.meta)!=null&&s.position))return o;const{bounds:a}=i.getData(Ui);return o.meta.position={x:a.x,y:a.y},o}).filter(Boolean)}getEdgeJSONs(n){const r=new Set,i=new Set(n.map(o=>o.id));return n.forEach(o=>{const a=o.getData(Cm);[...a.inputLines,...a.outputLines].forEach(l=>{var c;i.has(l.from.id)&&((c=l.to)!=null&&c.id)&&i.has(l.to.id)&&r.add(l)})}),Array.from(r).map(o=>o.toJSON())}getEntireBounds(n){const r=n.map(o=>o.getData(Ui).bounds),i=Qn.enlarge(r);return{x:i.x,y:i.y,width:i.width,height:i.height}}async write(n){try{await navigator.clipboard.writeText(JSON.stringify(n)),this.notifySuccess()}catch(r){console.error("Failed to write text: ",r)}}notifySuccess(){const n=this.selectedNodes.map(r=>r.flowNodeType);if(n.includes("start")||n.includes("end")){Zb.warning({content:"The Start/End node cannot be duplicated, other nodes have been copied to the clipboard",showClose:!1});return}Zb.success({content:"Nodes have been copied to the clipboard",showClose:!1})}}class $yr{constructor(n){$t(this,"commandId",ff.COLLAPSE);$t(this,"commandDetail",{label:"Collapse"});$t(this,"shortcuts",["meta alt openbracket","ctrl alt openbracket"]);$t(this,"selectService");this.selectService=n.get(Wa),this.execute=this.execute.bind(this)}async execute(){this.selectService.selectedNodes.forEach(n=>{n.renderData.expanded=!1})}}function Fyr(e,n){e.addHandlers(new Hct(n),new Uct(n),new Oyr(n),new $yr(n),new kyr(n),new Lyr(n),new Tyr(n),new xyr(n))}var Byr=Object.defineProperty,jyr=Object.getOwnPropertyDescriptor,E$=(e,n,r,i)=>{for(var o=i>1?void 0:i?jyr(n,r):n,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(n,r,o):s(o))||o);return i&&o&&Byr(n,r,o),o};let UC=class{constructor(){$t(this,"ctx");$t(this,"selectionService");$t(this,"playground");$t(this,"document")}save(){console.log(this.document.toJSON())}};E$([Ot(wlt)],UC.prototype,"ctx",2);E$([Ot(dg)],UC.prototype,"selectionService",2);E$([Ot(_u)],UC.prototype,"playground",2);E$([Ot(ei)],UC.prototype,"document",2);UC=E$([Pn()],UC);function Uyr(e){return Object.entries(e).sort((n,r)=>(e$e(n==null?void 0:n[1],"extra.index")||0)-(e$e(r==null?void 0:r[1],"extra.index")||0))}function Kse(e){const{type:n}=e||{};if(n)switch(n){case"object":return Xg.createObject({properties:Uyr(e.properties||{}).map(([r,i])=>({key:r,type:Kse(i),meta:{description:i.description}}))});case"array":return Xg.createArray({items:Kse(e.items)});case"string":return Xg.createString();case"number":return Xg.createNumber();case"boolean":return Xg.createBoolean();case"integer":return Xg.createInteger();default:return Xg.createCustomType({typeName:n})}}const Hyr=pa({onInit(e,n){e.document.onNodeCreate(({node:i})=>{const o=Sot(i),a=i.getData($h),s=l=>{var u,d;if(!l){a.clearVar();return}const c=Kse(l);if(c){const f=(o==null?void 0:o.getValueIn("title"))||i.id;a.setVar(Xg.createVariableDeclaration({meta:{title:`${f}`,icon:(d=(u=i.getNodeRegistry())==null?void 0:u.info)==null?void 0:d.icon},key:`${i.id}.outputs`,type:c}))}else a.clearVar()};o&&(s(o.getValueIn("outputs")),o.onFormValuesChange(l=>{(l.name.match(/^outputs/)||l.name.match(/^title/))&&s(o.getValueIn("outputs"))}))})}}),zyr=oi.span`
font-size: 12px;
color: red;
`,Vyr=oi.span`
font-size: 12px;
color: orange;
`,rye=({errors:e,warnings:n,invalid:r})=>{const i=o=>o?o.map(a=>N.jsx("span",{children:a.message},a.name)):null;return N.jsxs("div",{children:[N.jsx("div",{children:N.jsx(zyr,{children:i(e)})}),N.jsx("div",{children:N.jsx(Vyr,{children:i(n)})})]})},Gyr=oi.div`
box-sizing: border-box;
width: 100%;
display: flex;
flex-direction: column;
gap: 6px;
background-color: rgba(0, 0, 0, 0.02);
padding: 0 12px 12px;
`,Wyr=oi.div`
color: var(--semi-color-text-2);
font-size: 12px;
line-height: 20px;
padding: 0px 4px;
word-break: break-all;
white-space: break-spaces;
`;function Y0(e){var a;const{node:n,expanded:r}=yG(),i=jS(),o=n.getNodeRegistry();return N.jsx(Gyr,{children:r?N.jsxs(N.Fragment,{children:[i&&N.jsx(Wyr,{children:(a=o.info)==null?void 0:a.description}),e.children]}):void 0})}const Yyr=oi.div`
display: flex;
justify-content: center;
align-items: center;
column-gap: 6px;
`;function zct({name:e,type:n,isArray:r,className:i}){const o=r?Jve[n]:U1[n];return N.jsx(qo,{content:N.jsxs(Yyr,{children:[o," ",n]}),children:N.jsxs(mf,{color:"white",className:i,style:{padding:4,maxWidth:450},children:[o,e&&N.jsxs("span",{style:{display:"inline-block",marginLeft:4,marginTop:-1,overflow:"hidden",textOverflow:"ellipsis"},children:[" ",e]})]})})}const qyr=oi.div`
display: flex;
gap: 6px;
flex-wrap: wrap;
border-top: 1px solid var(--semi-color-border);
padding: 8px 0 0;
width: 100%;
:global(.semi-tag .semi-tag-content) {
font-size: 10px;
}
`;function HR(){return jS()?null:N.jsx(Vm,{name:"outputs",children:({field:n})=>{var i;const r=(i=n.value)==null?void 0:i.properties;if(r){const o=Object.keys(r).map(a=>{const s=r[a];return N.jsx(zct,{name:a,type:s.type},a)});return N.jsx(qyr,{children:o})}return N.jsx(N.Fragment,{})}})}const Kyr=oi.div`
background-color: var(--semi-color-fill-0);
border-radius: var(--semi-border-radius-small);
padding-left: 12px;
width: 100%;
min-height: 24px;
line-height: 24px;
display: flex;
align-items: center;
&.has-error {
outline: red solid 1px;
}
`,Xyr=e=>N.jsxs(Kyr,{className:e.hasError?"has-error":"",children:[e.value,e.value===void 0||e.value===""?N.jsx("span",{style:{color:"var(--semi-color-text-2)"},children:e.placeholder||"--"}):null]});function Qyr(e){return N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",...e,children:N.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.581 4.49A2.75 2.75 0 0 1 8.319 2h.931a.75.75 0 0 1 0 1.5h-.931a1.25 1.25 0 0 0-1.245 1.131l-.083.869H9.25a.75.75 0 0 1 0 1.5H6.849l-.43 4.51A2.75 2.75 0 0 1 3.681 14H2.75a.75.75 0 0 1 0-1.5h.931a1.25 1.25 0 0 0 1.245-1.132L5.342 7H3.75a.75.75 0 0 1 0-1.5h1.735zM9.22 9.22a.75.75 0 0 1 1.06 0l1.22 1.22l1.22-1.22a.75.75 0 1 1 1.06 1.06l-1.22 1.22l1.22 1.22a.75.75 0 1 1-1.06 1.06l-1.22-1.22l-1.22 1.22a.75.75 0 1 1-1.06-1.06l1.22-1.22l-1.22-1.22a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})})}function v3e({value:e,onChange:n,readonly:r,hasError:i,style:o}){return r?N.jsx(Xyr,{value:e,hasError:i}):N.jsx(Hy,{value:e,onChange:n,validateStatus:i?"error":void 0,style:o})}function Vct(e){const{value:n,onChange:r,readonly:i,literal:o,icon:a}=e;if(o)return N.jsx(v3e,{value:n,onChange:r,readonly:i});const s=typeof n=="object"&&n.type==="expression",l=()=>{r(s?n.content:{content:n,type:"expression"})};return N.jsxs("div",{style:{display:"flex",maxWidth:300},children:[s?N.jsx(Cct,{value:n.content,hasError:e.hasError,style:{flexGrow:1},onChange:c=>r({type:"expression",content:c}),readonly:i}):N.jsx(v3e,{value:n,onChange:r,hasError:e.hasError,readonly:i,style:{flexGrow:1,outline:e.hasError?"1px solid red":void 0}}),!i&&(a||N.jsx(ol,{theme:"borderless",icon:N.jsx(Qyr,{}),onClick:l}))]})}const{Text:Zyr}=LS;function Gct({children:e,name:n,required:r,description:i,type:o,labelWidth:a}){const s=m.useCallback(l=>N.jsxs("div",{style:{width:"0",display:"flex",flex:"1"},children:[N.jsx(Zyr,{style:{width:"100%"},ellipsis:{showTooltip:!!l},children:n}),r&&N.jsx("span",{style:{color:"#f93920",paddingLeft:"2px"},children:"*"})]}),[]);return N.jsxs("div",{style:{fontSize:12,marginBottom:6,width:"100%",position:"relative",display:"flex",justifyContent:"center",alignItems:"center",gap:8},children:[N.jsxs("div",{style:{justifyContent:"center",alignItems:"center",color:"var(--semi-color-text-0)",width:a||118,position:"relative",display:"flex",columnGap:4,flexShrink:0},children:[N.jsx(zct,{className:"form-item-type-tag",type:o}),i?N.jsx(qo,{content:i,children:s()}):s(!0)]}),N.jsx("div",{style:{flexGrow:1,minWidth:0},children:e})]})}function Xse(){const e=!jS();return N.jsx(Vm,{name:"inputs",children:({field:n})=>{var a,s;const r=((a=n.value)==null?void 0:a.required)||[],i=(s=n.value)==null?void 0:s.properties;if(!i)return N.jsx(N.Fragment,{});const o=Object.keys(i).map(l=>{const c=i[l];return N.jsx(Vm,{name:`inputsValues.${l}`,defaultValue:c.default,children:({field:u,fieldState:d})=>N.jsxs(Gct,{name:l,type:c.type,required:r.includes(l),children:[N.jsx(Vct,{value:u.value,onChange:u.onChange,readonly:e,hasError:Object.keys((d==null?void 0:d.errors)||{}).length>0}),N.jsx(rye,{errors:d==null?void 0:d.errors})]})},l)});return N.jsx(N.Fragment,{children:o})}})}const Wct=({node:e,deleteNode:n})=>{var p;const r=Bw(),i=e.getNodeRegistry(),o=Di(hc),a=Di(Wa),s=Di(Ya),l=o.canMoveOutContainer(e),c=m.useRef(null),u=m.useCallback(async h=>{h.stopPropagation();const g=e.parent;o.moveOutContainer({node:e}),await o.clearInvalidLines({dragNode:e,sourceParent:g}),c.current=async v=>{a.selectNode(e),s.startDragSelectedNodes(v),c.current=null},setTimeout(()=>{c.current&&c.current(h)},50)},[o,e,a,s]),d=m.useCallback(h=>{h.stopPropagation();const g=new Hct(r),v=new Uct(r),y=g.toClipboardData([e]);v.apply(y)},[r,e]),f=m.useCallback(h=>{h.stopPropagation(),n()},[n]);return N.jsx(Do,{trigger:"hover",position:"bottomRight",render:N.jsxs(Do.Menu,{children:[l&&N.jsx(Do.Item,{onClick:u,children:"Move out"}),N.jsx(Do.Item,{onClick:d,disabled:i.meta.copyDisable===!0,children:"Create Copy"}),N.jsx(Do.Item,{onClick:f,disabled:!!((p=i.canDelete)!=null&&p.call(i,r,e)||i.meta.deleteDisable),children:"Delete"})]}),children:N.jsx(ul,{color:"secondary",size:"small",theme:"borderless",icon:N.jsx(Dfr,{}),onClick:h=>h.stopPropagation()})})},Jyr=oi.div`
box-sizing: border-box;
display: flex;
justify-content: flex-start;
align-items: center;
width: 100%;
column-gap: 8px;
border-radius: 8px 8px 0 0;
cursor: move;
background: linear-gradient(#f2f2ff 0%, rgba(0, 0, 0, 0.02) 100%);
overflow: hidden;
padding: 8px;
`,e_r=oi.div`
font-size: 20px;
flex: 1;
width: 0;
`,t_r=oi.img`
width: 24px;
height: 24px;
scale: 0.8;
border-radius: 4px;
`,n_r=oi.div`
display: flex;
align-items: center;
column-gap: 4px;
`,r_r=e=>{var r;const n=(r=e.getNodeRegistry().info)==null?void 0:r.icon;return n?N.jsx(t_r,{src:n}):null},{Text:i_r}=LS;function q0(){const{node:e,expanded:n,toggleExpand:r,readonly:i,deleteNode:o}=yG(),a=jS(),s=l=>{r(),l.stopPropagation()};return N.jsxs(Jyr,{children:[r_r(e),N.jsx(e_r,{children:N.jsx(Vm,{name:"title",children:({field:{value:l,onChange:c},fieldState:u})=>N.jsxs("div",{style:{height:24},children:[N.jsx(i_r,{ellipsis:{showTooltip:!0},children:l}),N.jsx(rye,{errors:u==null?void 0:u.errors})]})})}),e.renderData.expandable&&!a&&N.jsx(ol,{type:"primary",icon:n?N.jsx(Hfr,{}):N.jsx(Vfr,{}),size:"small",theme:"borderless",onClick:s}),i?void 0:N.jsx(n_r,{children:N.jsx(Wct,{node:e,deleteNode:o})})]})}const o_r=["object","boolean","array","string","integer","number"],a_r=e=>{const{value:n,disabled:r}=e,i=U1[n];return N.jsx(Do,{trigger:"hover",position:"bottomRight",disabled:r,render:N.jsx(Do.Menu,{children:o_r.map(o=>N.jsxs(Do.Item,{onClick:()=>{var a;(a=e.onChange)==null||a.call(e,o)},children:[U1[o],N.jsx("span",{style:{paddingLeft:"4px"},children:o})]},o))}),children:N.jsx(mf,{color:"white",style:e.style,onClick:o=>{o.stopPropagation(),o.preventDefault()},children:i})})},s_r=oi.div`
display: flex;
justify-content: flex-start;
align-items: center;
font-size: 12px;
margin-bottom: 6px;
`,l_r=oi.div`
width: 300px;
margin-right: 10px;
position: relative;
`,y3e=e=>{const{value:n,disabled:r}=e,[i,o]=m.useState(e.propertyKey),a=(s,l)=>{n[s]=l,e.onChange(n,e.propertyKey)};return m.useLayoutEffect(()=>{o(e.propertyKey)},[e.propertyKey]),N.jsxs(s_r,{children:[N.jsxs(l_r,{children:[N.jsx(a_r,{value:n.type,disabled:r,style:{position:"absolute",top:6,left:4,zIndex:1},onChange:s=>a("type",s)}),N.jsx(Hy,{value:i,disabled:r,onChange:s=>o(s.trim()),onBlur:()=>{i!==""?e.onChange(n,e.propertyKey,i):o(e.propertyKey)},style:{paddingLeft:26}})]}),e.useFx?N.jsx(Cct,{value:n.default,readonly:r,onChange:s=>a("default",s),style:{flexGrow:1,height:32}}):N.jsx(Hy,{disabled:r,value:n.default,onChange:s=>a("default",s)}),e.onDelete&&!r&&N.jsx(ol,{theme:"borderless",icon:N.jsx(Hlt,{}),onClick:e.onDelete})]})},c_r=e=>{const n=e.value||{},{readonly:r}=yG(),[i,o]=m.useState({key:"",value:{type:"string"}}),[a,s]=m.useState(),l=()=>{o({key:"",value:{type:"string"}}),s(!1)},c=(d,f,p)=>{const h={...n};p?(delete h[f],h[p]=d):h[f]=d,e.onChange(h)},u=(d,f,p)=>{p?(p in n||c(d,f,p),l()):o({key:p||f,value:d})};return N.jsxs(N.Fragment,{children:[Object.keys(e.value||{}).map(d=>{const f=n[d]||{};return N.jsx(y3e,{propertyKey:d,useFx:e.useFx,value:f,disabled:r,onChange:c,onDelete:()=>{const p={...n};delete p[d],e.onChange(p)}},d)}),a&&N.jsx(y3e,{propertyKey:i.key,value:i.value,useFx:e.useFx,onChange:u,onDelete:()=>{const d=i.key;setTimeout(()=>{const f={...n};delete f[d],e.onChange(f),l()},10)}}),!r&&N.jsx("div",{children:N.jsx(ol,{theme:"borderless",icon:N.jsx(oG,{}),onClick:()=>s(!0),children:"Add"})})]})},u_r=({form:e})=>N.jsxs(N.Fragment,{children:[N.jsx(q0,{}),N.jsxs(Y0,{children:[N.jsx(Xse,{}),N.jsx(HR,{})]})]}),Yct={render:u_r,validateTrigger:n$.onChange,validate:{title:({value:e})=>e?void 0:"Title is required","inputsValues.*":({value:e,context:n,formValues:r,name:i})=>{var s;const o=i.replace(/^inputsValues\./,"");if((((s=r.inputs)==null?void 0:s.required)||[]).includes(o)&&(e===""||e===void 0))return`${o} is required`}}},hee=30,_3e=5;var C$=(e=>(e.Title="title",e.Color="color",e))(C$||{});const d_r=({size:e})=>N.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",style:{width:e,height:e},children:N.jsx("path",{id:"group",fill:"currentColor",fillRule:"evenodd",stroke:"none",d:"M 0.009766 10 L 0.009766 9.990234 L 0 9.990234 L 0 7.5 L 1 7.5 L 1 9 L 2.5 9 L 2.5 10 L 0.009766 10 Z M 3.710938 10 L 3.710938 9 L 6.199219 9 L 6.199219 10 L 3.710938 10 Z M 7.5 10 L 7.5 9 L 9 9 L 9 7.5 L 10 7.5 L 10 9.990234 L 9.990234 9.990234 L 9.990234 10 L 7.5 10 Z M 0 6.289063 L 0 3.800781 L 1 3.800781 L 1 6.289063 L 0 6.289063 Z M 9 6.289063 L 9 3.800781 L 10 3.800781 L 10 6.289063 L 9 6.289063 Z M 0 2.5 L 0 0.009766 L 0.009766 0.009766 L 0.009766 0 L 2.5 0 L 2.5 1 L 1 1 L 1 2.5 L 0 2.5 Z M 9 2.5 L 9 1 L 7.5 1 L 7.5 0 L 9.990234 0 L 9.990234 0.009766 L 10 0.009766 L 10 2.5 L 9 2.5 Z M 3.710938 1 L 3.710938 0 L 6.199219 0 L 6.199219 1 L 3.710938 1 Z"})}),f_r=({size:e})=>N.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",style:{width:e,height:e},children:N.jsx("path",{id:"ungroup",fill:"currentColor",fillRule:"evenodd",stroke:"none",d:"M 9.654297 10.345703 L 8.808594 9.5 L 7.175781 9.5 L 7.175781 8.609375 L 7.917969 8.609375 L 1.390625 2.082031 L 1.390625 2.824219 L 0.5 2.824219 L 0.5 1.191406 L -0.345703 0.345703 L 0.283203 -0.283203 L 1.166016 0.599609 L 2.724609 0.599609 L 2.724609 1.490234 L 2.056641 1.490234 L 8.509766 7.943359 L 8.509766 7.275391 L 9.400391 7.275391 L 9.400391 8.833984 L 10.283203 9.716797 L 9.654297 10.345703 Z M 0.509766 9.5 L 0.509766 9.490234 L 0.5 9.490234 L 0.5 7.275391 L 1.390625 7.275391 L 1.390625 8.609375 L 2.724609 8.609375 L 2.724609 9.5 L 0.509766 9.5 Z M 3.802734 9.5 L 3.802734 8.609375 L 6.017578 8.609375 L 6.017578 9.5 L 3.802734 9.5 Z M 0.5 6.197266 L 0.5 3.982422 L 1.390625 3.982422 L 1.390625 6.197266 L 0.5 6.197266 Z M 8.509766 6.197266 L 8.509766 3.982422 L 9.400391 3.982422 L 9.400391 6.197266 L 8.509766 6.197266 Z M 8.509766 2.824219 L 8.509766 1.490234 L 7.175781 1.490234 L 7.175781 0.599609 L 9.390625 0.599609 L 9.390625 0.609375 L 9.400391 0.609375 L 9.400391 2.824219 L 8.509766 2.824219 Z M 3.802734 1.490234 L 3.802734 0.599609 L 6.017578 0.599609 L 6.017578 1.490234 L 3.802734 1.490234 Z"})}),p_r=({node:e,style:n})=>{const r=Di(Sm);return N.jsx(qo,{content:"Ungroup",children:N.jsx("div",{className:"workflow-group-ungroup",style:n,children:N.jsx(ol,{icon:N.jsx(f_r,{size:14}),style:{height:30,width:30},theme:"borderless",type:"tertiary",onClick:()=>{r.executeCommand(nye.Ungroup,e)}})})})},h_r=()=>{const[e,n]=m.useState(!1);return N.jsx(Vm,{name:C$.Title,children:({field:r})=>e?N.jsx(Hy,{autoFocus:!0,className:"workflow-group-title-input",size:"small",value:r.value,onChange:r.onChange,onMouseDown:i=>i.stopPropagation(),onBlur:()=>n(!1),draggable:!1,onEnterPress:()=>n(!1)}):N.jsx("p",{className:"workflow-group-title",onDoubleClick:()=>n(!0),children:r.value??"Group"})})},iye="Blue",t7={Red:{50:"#fef2f2",300:"#fca5a5",400:"#f87171"},Orange:{50:"#fff7ed",300:"#fdba74",400:"#fb923c"},Amber:{50:"#fffbeb",300:"#fcd34d",400:"#fbbf24"},Yellow:{50:"#fef9c3",300:"#fde047",400:"#facc15"},Lime:{50:"#f7fee7",300:"#bef264",400:"#a3e635"},Green:{50:"#f0fdf4",300:"#86efac",400:"#4ade80"},Emerald:{50:"#ecfdf5",300:"#6ee7b7",400:"#34d399"},Teal:{50:"#f0fdfa",300:"#5eead4",400:"#2dd4bf"},Cyan:{50:"#ecfeff",300:"#67e8f9",400:"#22d3ee"},Sky:{50:"#ecfeff",300:"#7dd3fc",400:"#38bdf8"},Blue:{50:"#eff6ff",300:"#93c5fd",400:"#60a5fa"},Indigo:{50:"#eef2ff",300:"#a5b4fc",400:"#818cf8"},Violet:{50:"#f5f3ff",300:"#c4b5fd",400:"#a78bfa"},Purple:{50:"#faf5ff",300:"#d8b4fe",400:"#c084fc"},Fuchsia:{50:"#fdf4ff",300:"#f0abfc",400:"#e879f9"},Pink:{50:"#fdf2f8",300:"#f9a8d4",400:"#f472b6"},Rose:{50:"#fff1f2",300:"#fda4af",400:"#fb7185"},Gray:{50:"#f9fafb",300:"#d1d5db",400:"#9ca3af"}},g_r=()=>N.jsx(Vm,{name:C$.Color,children:({field:e})=>{const n=e.value??iye;return N.jsx(wu,{position:"top",mouseLeaveDelay:300,content:N.jsx("div",{className:"workflow-group-color-palette",children:Object.entries(t7).map(([r,i])=>N.jsx(qo,{content:r,mouseEnterDelay:300,children:N.jsx("span",{className:"workflow-group-color-item",style:{backgroundColor:i[300],borderColor:r===n?i[400]:"#fff"},onClick:()=>e.onChange(r)},r)},r))}),children:N.jsx("span",{className:"workflow-group-color",style:{backgroundColor:t7[n][300]}})})}}),m_r=()=>N.jsxs("div",{className:"workflow-group-tools",children:[N.jsx(zlt,{className:"workflow-group-tools-drag"}),N.jsx(h_r,{}),N.jsx(g_r,{})]}),b3e="workflow-move-into-group-tip-visible",S3e="false",i7=class i7{constructor(){$t(this,"closed",!1)}static get instance(){return this._instance||(this._instance=new i7),this._instance}isClosed(){return this.isCloseForever()||this.closed}close(){this.closed=!0}isCloseForever(){return localStorage.getItem(b3e)===S3e}closeForever(){localStorage.setItem(b3e,S3e)}};$t(i7,"_instance");let Qse=i7;const v_r=()=>{const e=Dw(),[n,r]=m.useState(!1),i=Qse.instance,o=Di(hc),a=m.useCallback(()=>{i.isClosed()||r(!0)},[i]),s=m.useCallback(()=>{i.close(),r(!1)},[i]),l=m.useCallback(()=>{i.closeForever(),s()},[s,i]);return m.useEffect(()=>{const c=o.on(d=>{d.type===e7.In&&d.targetContainer===e&&a()}),u=o.on(d=>{d.type===e7.Out&&d.sourceContainer===e&&!e.blocks.length&&r(!1)});return()=>{c.dispose(),u.dispose()}},[o,e,a,s,n]),{visible:n,close:s,closeForever:l}},y_r=oi.div`
position: absolute;
top: 35px;
width: 100%;
height: 28px;
white-space: nowrap;
pointer-events: auto;
.container {
display: inline-flex;
justify-content: center;
height: 100%;
width: 100%;
background-color: rgb(255 255 255);
border-radius: 8px 8px 0 0;
.content {
overflow: hidden;
display: inline-flex;
align-items: center;
justify-content: flex-start;
width: fit-content;
height: 100%;
padding: 0 12px;
.text {
font-size: 14px;
font-weight: 400;
font-style: normal;
line-height: 20px;
color: rgba(15, 21, 40, 82%);
text-overflow: ellipsis;
margin: 0;
}
.space {
width: 128px;
}
}
.actions {
display: flex;
gap: 8px;
align-items: center;
height: 28px;
padding: 0 12px;
.close-forever {
cursor: pointer;
padding: 0 3px;
font-size: 12px;
font-weight: 400;
font-style: normal;
line-height: 12px;
color: rgba(32, 41, 69, 62%);
margin: 0;
}
.close {
display: flex;
cursor: pointer;
height: 100%;
align-items: center;
}
}
}
`,__r=/(Macintosh|MacIntel|MacPPC|Mac68K|iPad)/.test(navigator.userAgent),b_r=()=>N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:N.jsx("path",{fill:"#060709",fillOpacity:"0.5",d:"M12.13 12.128a.5.5 0 0 0 .001-.706L8.71 8l3.422-3.423a.5.5 0 0 0-.001-.705.5.5 0 0 0-.706-.002L8.002 7.293 4.579 3.87a.5.5 0 0 0-.705.002.5.5 0 0 0-.002.705L7.295 8l-3.423 3.422a.5.5 0 0 0 .002.706c.195.195.51.197.705.001l3.423-3.422 3.422 3.422c.196.196.51.194.706-.001"})}),S_r=()=>{const{visible:e,close:n,closeForever:r}=v_r();return e?N.jsx(y_r,{className:"workflow-group-tips",children:N.jsxs("div",{className:"container",children:[N.jsxs("div",{className:"content",children:[N.jsx("p",{className:"text",children:`Hold ${__r?"Cmd ⌘":"Ctrl"} to drag node out`}),N.jsx("div",{className:"space",style:{width:0}})]}),N.jsxs("div",{className:"actions",children:[N.jsx("p",{className:"close-forever",onClick:r,children:"Never Remind"}),N.jsx("div",{className:"close",onClick:n,children:N.jsx(b_r,{})})]})]})}):null},E_r=({onMouseDown:e,onFocus:n,onBlur:r,children:i,style:o})=>{const a=_ot(C$.Color)??iye,s=t7[a];return N.jsx("div",{className:"workflow-group-header",onMouseDown:e,onFocus:n,onBlur:r,style:{...o,backgroundColor:s[50],borderColor:s[300]},children:i})},C_r=({node:e,style:n})=>{const r=_ot(C$.Color)??iye,i=t7[r];return m.useEffect(()=>{const o=document.createElement("style"),a=`
.workflow-group-render[data-group-id="${e.id}"] .workflow-group-background {
border: 1px solid ${i[300]};
}
.workflow-group-render.selected[data-group-id="${e.id}"] .workflow-group-background {
border: 1px solid ${i[400]};
}
`;return o.textContent=a,document.head.appendChild(o),()=>{o.remove()}},[i]),N.jsx("div",{className:"workflow-group-background","data-flow-editor-selectable":"true",style:{...n,backgroundColor:`${i[300]}29`}})},w_r=()=>{const{node:e,selected:n,selectNode:r,nodeRef:i,startDrag:o,onFocus:a,onBlur:s}=x_(),l=$ct(),c=e.getData(ls).getFormModel(),u=c==null?void 0:c.formControl,{height:d,width:f}=l??{},p=d??0;return N.jsx("div",{className:`workflow-group-render ${n?"selected":""}`,ref:i,"data-group-id":e.id,"data-node-selected":String(n),onMouseDown:r,onClick:h=>{r(h)},style:{width:f,height:d},children:N.jsx(Bme,{control:u,children:N.jsxs(N.Fragment,{children:[N.jsx(E_r,{onMouseDown:h=>{o(h)},onFocus:a,onBlur:s,style:{height:hee},children:N.jsx(m_r,{})}),N.jsx(S_r,{}),N.jsx(p_r,{node:e}),N.jsx(C_r,{node:e,style:{top:hee+_3e,height:p-hee-_3e}})]})})})},Yx=24,x_r=({bounds:e,children:n,flowSelectConfig:r,commandRegistry:i})=>N.jsxs(N.Fragment,{children:[N.jsx("div",{style:{position:"absolute",left:e.right,top:e.top,transform:"translate(-100%, -100%)"},onMouseDown:o=>{o.stopPropagation()},children:N.jsxs($ve,{size:"small",style:{display:"flex",flexWrap:"nowrap",height:Yx},children:[N.jsx(qo,{content:"Collapse",children:N.jsx(ol,{icon:N.jsx(Glt,{}),style:{height:Yx},type:"primary",theme:"solid",onMouseDown:o=>{i.executeCommand(ff.COLLAPSE)}})}),N.jsx(qo,{content:"Expand",children:N.jsx(ol,{icon:N.jsx(Tve,{}),style:{height:Yx},type:"primary",theme:"solid",onMouseDown:o=>{i.executeCommand(ff.EXPAND)}})}),N.jsx(qo,{content:"Create Group",children:N.jsx(ol,{icon:N.jsx(d_r,{size:14}),style:{height:Yx},type:"primary",theme:"solid",onClick:()=>{i.executeCommand(nye.Group)}})}),N.jsx(qo,{content:"Copy",children:N.jsx(ol,{icon:N.jsx(Ult,{}),style:{height:Yx},type:"primary",theme:"solid",onClick:()=>{i.executeCommand(ff.COPY)}})}),N.jsx(qo,{content:"Delete",children:N.jsx(ol,{type:"primary",theme:"solid",icon:N.jsx(gfr,{}),style:{height:Yx},onClick:()=>{i.executeCommand(ff.DELETE)}})})]})}),N.jsx("div",{children:n})]}),oye=V.createContext({}),aye=V.createContext({visible:!1,setNodeRender:()=>{}}),qct=V.createContext(!1),T_r=oi.div`
align-items: flex-start;
background-color: #fff;
border: 1px solid rgba(6, 7, 9, 0.15);
border-radius: 8px;
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.04), 0 4px 12px 0 rgba(0, 0, 0, 0.02);
display: flex;
flex-direction: column;
justify-content: center;
position: relative;
min-width: 360px;
width: 100%;
height: auto;
&.selected {
border: 1px solid #4e40e5;
}
`,O_r=()=>N.jsx(Vlt,{style:{position:"absolute",color:"red",left:-6,top:-6,zIndex:1,background:"white",borderRadius:8}});function R_r(e,n,r=448){const i=n.transform.bounds;e.playground.scrollToView({bounds:i,scrollDelta:{x:r/2,y:0},zoom:1,scrollToCenter:!0})}const I_r=e=>{const{children:n,isScrollToView:r=!1}=e,i=yG(),{selected:o,startDrag:a,ports:s,selectNode:l,nodeRef:c,onFocus:u,onBlur:d}=i,[f,p]=m.useState(!1),h=m.useContext(aye),g=i.form,v=Bw(),y=s.map(_=>N.jsx(ZV,{entity:_},_.id));return N.jsxs(N.Fragment,{children:[N.jsx(T_r,{className:o?"selected":"",ref:c,draggable:!0,onDragStart:_=>{a(_),p(!0)},onClick:_=>{l(_),f||(h.setNodeRender(i),r&&R_r(v,i.node))},onMouseUp:()=>p(!1),onFocus:u,onBlur:d,"data-node-selected":String(o),style:{outline:g!=null&&g.state.invalid?"1px solid red":"none"},children:n}),y]})},N_r=({node:e})=>{const n=x_(),r=n.form,i=m.useCallback(()=>e.renderData.node||document.body,[]);return N.jsx(zve,{getPopupContainer:i,children:N.jsx(oye.Provider,{value:n,children:N.jsxs(I_r,{children:[(r==null?void 0:r.state.invalid)&&N.jsx(O_r,{}),r==null?void 0:r.render()]})})})},M_r=e=>{const n=ec(),{line:r,selected:i=!1,hovered:o}=e;return!(r.disposed||n.config.readonly||!i&&!o)},P_r=()=>N.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:N.jsxs("g",{id:"add",children:[N.jsx("path",{id:"background",fill:"#ffffff",fillRule:"evenodd",stroke:"none",d:"M 24 12 C 24 5.372583 18.627417 0 12 0 C 5.372583 0 -0 5.372583 -0 12 C -0 18.627417 5.372583 24 12 24 C 18.627417 24 24 18.627417 24 12 Z"}),N.jsx("path",{id:"content",fill:"currentColor",fillRule:"evenodd",stroke:"none",d:"M 22 12.005 C 22 6.482153 17.522848 2.004999 12 2.004999 C 6.477152 2.004999 2 6.482153 2 12.005 C 2 17.527847 6.477152 22.004999 12 22.004999 C 17.522848 22.004999 22 17.527847 22 12.005 Z"}),N.jsx("path",{id:"cross",fill:"#ffffff",stroke:"none",d:"M 11.411996 16.411797 C 11.411996 16.736704 11.675362 17 12.00023 17 C 12.325109 17 12.588474 16.736704 12.588474 16.411797 L 12.588474 12.58826 L 16.41201 12.58826 C 16.736919 12.58826 17.000216 12.324894 17.000216 12.000015 C 17.000216 11.675147 16.736919 11.411781 16.41201 11.411781 L 12.588474 11.411781 L 12.588474 7.588234 C 12.588474 7.263367 12.325109 7 12.00023 7 C 11.675362 7 11.411996 7.263367 11.411996 7.588234 L 11.411996 11.411781 L 7.588449 11.411781 C 7.263581 11.411781 7.000215 11.675147 7.000215 12.000015 C 7.000215 12.324894 7.263581 12.58826 7.588449 12.58826 L 11.411996 12.58826 L 11.411996 16.411797 Z"})]})}),A_r=e=>{const{line:n,selected:r,hovered:i,color:o}=e,a=M_r({line:n,selected:r,hovered:i}),s=Di(Sd),l=Di(ei),c=Di(Ya),u=Di(Ql),d=Di(qa),{fromPort:f,toPort:p}=n,h=m.useCallback(async()=>{const g={x:(n.position.from.x+n.position.to.x)/2,y:(n.position.from.y+n.position.to.y)/2},v=ef.getContainerNode({fromPort:f}),y=await s.singleSelectNodePanel({position:g,containerNode:v,panelProps:{enableScrollClose:!0}});if(!y)return;const{nodeType:_,nodeJSON:S}=y,b=ef.adjustNodePosition({nodeType:_,position:g,fromPort:f,toPort:p,containerNode:v,document:l,dragService:c}),E=l.createWorkflowNodeByType(_,b,S??{},v==null?void 0:v.id);f&&p&&ef.subNodesAutoOffset({node:E,fromPort:f,toPort:p,containerNode:v,historyService:d,dragService:c,linesManager:u}),await NS(20),ef.buildLine({fromPort:f,node:E,toPort:p,linesManager:u}),n.dispose()},[]);return a?N.jsx("div",{className:"line-add-button",style:{left:"50%",top:"50%",color:o},"data-testid":"sdk.workflow.canvas.line.add","data-line-id":n.id,onClick:h,children:N.jsx(P_r,{})}):N.jsx(N.Fragment,{})},D_r=()=>N.jsx("div",{className:"node-placeholder","data-testid":"workflow.detail.node-panel.placeholder",children:N.jsx(Jd,{className:"node-placeholder-skeleton",loading:!0,active:!0,placeholder:N.jsxs("div",{className:"",children:[N.jsxs("div",{className:"node-placeholder-hd",children:[N.jsx(Jd.Avatar,{shape:"square",className:"node-placeholder-avatar"}),N.jsx(Jd.Title,{style:{width:141}})]}),N.jsxs("div",{className:"node-placeholder-content",children:[N.jsxs("div",{className:"node-placeholder-footer",children:[N.jsx(Jd.Title,{style:{width:85}}),N.jsx(Jd.Title,{style:{width:241}})]}),N.jsx(Jd.Title,{style:{width:220}})]})]})})}),k_r=oi.div`
width: 100%;
height: 32px;
border-radius: 5px;
display: flex;
align-items: center;
cursor: pointer;
font-size: 19px;
padding: 0 15px;
&:hover {
background-color: hsl(252deg 62% 55% / 9%);
color: hsl(252 62% 54.9%);
}
`,L_r=oi.div`
font-size: 12px;
margin-left: 10px;
`;function $_r(e){return N.jsxs(k_r,{onClick:e.disabled?void 0:e.onClick,style:e.disabled?{opacity:.3}:{},children:[N.jsx("div",{style:{fontSize:14},children:e.icon}),N.jsx(L_r,{children:e.label})]})}const F_r=oi.div`
max-height: 500px;
overflow: auto;
&::-webkit-scrollbar {
display: none;
}
`,B_r=e=>{const{onSelect:n}=e,r=Bw(),i=(o,a)=>{var l;const s=(l=a.onAdd)==null?void 0:l.call(a,r);n({nodeType:a.type,selectEvent:o,nodeJSON:s})};return N.jsx(F_r,{style:{width:80*2+20},children:bbr.map(o=>{var a,s;return N.jsx($_r,{disabled:!(((a=o.canAdd)==null?void 0:a.call(o,r))??!0),icon:N.jsx("img",{style:{width:10,height:10,borderRadius:4},src:(s=o.info)==null?void 0:s.icon}),label:o.type,onClick:l=>i(l,o)},o.type)})})},j_r=e=>{const{onSelect:n,position:r,onClose:i,panelProps:o}=e,{enableNodePlaceholder:a}=o;return N.jsx(wu,{trigger:"click",visible:!0,onVisibleChange:s=>s?null:i(),content:N.jsx(B_r,{onSelect:n}),placement:"right",popupAlign:{offset:[30,0]},overlayStyle:{padding:0},children:N.jsx("div",{style:a?{position:"absolute",top:r.y-61.5,left:r.x,width:360,height:100}:{position:"absolute",top:r.y,left:r.x,width:0,height:0},children:a&&N.jsx(D_r,{})})})};var Rh=(e=>(e.Size="size",e.Note="note",e))(Rh||{}),ND=(e=>(e.Change="change",e.MultiSelect="multiSelect",e.Select="select",e.Blur="blur",e))(ND||{});const E3e="",U_r=e=>{const{model:n,height:r}=e,i=ec(),[o,a]=m.useState(!1),s=m.useCallback(()=>n.element?n.element.scrollHeight>n.element.clientHeight:!1,[n,r,i]),l=m.useCallback(()=>{a(s())},[s]);return m.useEffect(()=>{l()},[r,l]),m.useEffect(()=>{const c=n.on(u=>{u.type===ND.Change&&l()});return()=>{c.dispose()}},[n,l]),{overflow:o,updateOverflow:l}};class H_r{constructor(){$t(this,"innerValue",E3e);$t(this,"emitter",new Un);$t(this,"editor");$t(this,"on",this.emitter.event)}get value(){return this.innerValue}setValue(n=E3e){this.initialized&&n!==this.innerValue&&(this.innerValue=n,this.syncEditorValue(),this.emitter.fire({type:ND.Change,value:this.innerValue}))}set element(n){this.initialized||(this.editor=n)}get element(){return this.editor}setFocus(n){this.initialized&&(n&&!this.focused?this.editor.focus():!n&&this.focused&&(this.editor.blur(),this.deselect(),this.emitter.fire({type:ND.Blur})))}selectEnd(){if(!this.initialized)return;const n=this.editor.value.length;this.editor.setSelectionRange(n,n)}get focused(){return document.activeElement===this.editor}deselect(){const n=window.getSelection();n&&n.removeAllRanges()}get initialized(){return!!this.editor}syncEditorValue(){this.initialized&&(this.editor.value=this.innerValue)}}const z_r=()=>{const e=Dme(),{selected:n}=x_(),r=e.getData(ls).getFormModel(),i=m.useMemo(()=>new H_r,[]);return m.useEffect(()=>{n||i.setFocus(n)},[n,i]),m.useEffect(()=>{const o=r.getValueIn(Rh.Note);i.setValue(o),i.selectEnd()},[r,i]),m.useEffect(()=>{const o=r.onFormValuesChange(({name:a})=>{if(a!==Rh.Note)return;const s=r.getValueIn(Rh.Note);i.setValue(s)});return()=>o.dispose()},[r,i]),i},V_r=()=>{const e=Dw(),n=e.getNodeMeta(),r=ec(),i=Di(qa),{size:o={width:240,height:150}}=n,a=e.getData(Ui),s=e.getData(ls).getFormModel(),l=s.getValueIn(Rh.Size),[c,u]=m.useState((l==null?void 0:l.width)??o.width),[d,f]=m.useState((l==null?void 0:l.height)??o.height);m.useEffect(()=>{s.getValueIn(Rh.Size)||s.setValueIn(Rh.Size,{width:c,height:d})},[s,c,d]),m.useEffect(()=>{const h=s.onFormValuesChange(({name:g})=>{if(g!==Rh.Size)return;const v=s.getValueIn(Rh.Size);v&&(u(v.width),f(v.height))});return()=>h.dispose()},[s]);const p=m.useCallback(()=>{const h={width:c,height:d,originalWidth:c,originalHeight:d,positionX:a.position.x,positionY:a.position.y,offsetX:0,offsetY:0};return{resizing:y=>{if(!h)return;const{zoom:_}=r.config,S=y.top/_,b=y.right/_,E=y.bottom/_,w=y.left/_,C=120,x=80,T=Math.max(C,h.originalWidth+b-w),R=Math.max(x,h.originalHeight+E-S),O=(w>0||b<0)&&T<=C?h.offsetX:w/2+b/2,M=(S>0||E<0)&&R<=x?h.offsetY:S,P=h.positionX+O,k=h.positionY+M;h.width=T,h.height=R,h.offsetX=O,h.offsetY=M,u(T),f(R),a.update({position:{x:P,y:k}})},resizeEnd:()=>{i.transact(()=>{i.pushOperation({type:ED.dragNodes,value:{ids:[e.id],value:[{x:h.positionX+h.offsetX,y:h.positionY+h.offsetY}],oldValue:[{x:h.positionX,y:h.positionY}]}},{noApply:!0}),s.setValueIn(Rh.Size,{width:h.width,height:h.height})})}}},[e,c,d,a,r,s,i]);return{width:c,height:d,onResize:p}},G_r=({node:e,focused:n,deleteNode:r})=>N.jsx("div",{className:`workflow-comment-more-button ${n?"workflow-comment-more-button-focused":""}`,children:N.jsx(Wct,{node:e,deleteNode:r})}),W_r=e=>{const{model:n,style:r,onChange:i}=e,o=ec(),a=m.useRef(null),s=n.value||n.focused?void 0:"Enter a comment...";return m.useEffect(()=>{const l=n.on(c=>{c.type===ND.Change&&(i==null||i(n.value))});return()=>l.dispose()},[n,i]),m.useEffect(()=>{a.current&&(n.element=a.current)},[a]),N.jsxs("div",{className:"workflow-comment-editor",children:[N.jsx("p",{className:"workflow-comment-editor-placeholder",children:s}),N.jsx("textarea",{className:"workflow-comment-editor-textarea",ref:a,style:r,readOnly:o.config.readonly,onChange:l=>{const{value:c}=l.target;n.setValue(c)},onFocus:()=>{n.setFocus(!0)},onBlur:()=>{n.setFocus(!1)}})]})},MT=e=>{const{model:n,stopEvent:r=!0,style:i}=e,o=ec(),{startDrag:a,onFocus:s,onBlur:l,selectNode:c}=x_();return N.jsx("div",{className:"workflow-comment-drag-area","data-flow-editor-selectable":"false",draggable:!0,style:i,onMouseDown:u=>{r&&(u.preventDefault(),u.stopPropagation()),n.setFocus(!1),a(u),c(u),o.node.focus()},onFocus:s,onBlur:l})},Y_r=e=>{const{model:n,focused:r,overflow:i}=e,o=ec(),{selectNode:a}=x_(),[s,l]=m.useState(!1);m.useEffect(()=>{r||l(!1)},[r]);const c=d=>{const f=n.element;if(s||!i||!f)return;d.stopPropagation();const p=f.scrollHeight-f.clientHeight,h=Math.min(Math.max(f.scrollTop+d.deltaY,0),p);f.scroll(0,h)},u=d=>{if(s)return;d.preventDefault(),d.stopPropagation(),n.setFocus(!1),a(d),o.node.focus();const f=d.clientX,p=d.clientY,h=g=>{const v=g.clientX-f,y=g.clientY-p,_=5;Math.abs(v)<_&&Math.abs(y)<_&&l(!0),document.removeEventListener("mouseup",h),document.removeEventListener("click",h)};document.addEventListener("mouseup",h),document.addEventListener("click",h)};return N.jsx("div",{className:"workflow-comment-content-drag-area",onMouseDown:u,onWheel:c,style:{display:s?"none":void 0},children:N.jsx(MT,{style:{position:"relative",width:"100%",height:"100%"},model:n,stopEvent:!1})})},q_r=e=>{const{focused:n,children:r,style:i}=e,o={scrollbarWidth:"thin",scrollbarColor:"rgb(159 159 158 / 65%) transparent","&:WebkitScrollbar":{width:"4px"},"&::WebkitScrollbarTrack":{background:"transparent"},"&::WebkitScrollbarThumb":{backgroundColor:"rgb(159 159 158 / 65%)",borderRadius:"20px",border:"2px solid transparent"}};return N.jsx("div",{className:"workflow-comment-container","data-flow-editor-selectable":"false",style:{outline:n?"1px solid #FF811A":"1px solid #F2B600",backgroundColor:n?"#FFF3EA":"#FFFBED",...o,...i},children:r})},E5=e=>{const{model:n,onResize:r,getDelta:i,style:o}=e,a=ec(),{selectNode:s}=x_(),l=c=>{if(c.preventDefault(),c.stopPropagation(),!r)return;const{resizing:u,resizeEnd:d}=r();n.setFocus(!1),s(c),a.node.focus();const f=c.clientX,p=c.clientY,h=v=>{const y=v.clientX-f,_=v.clientY-p,S=i==null?void 0:i({x:y,y:_});!S||!u||u(S)},g=()=>{d(),document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",g),document.removeEventListener("click",g)};document.addEventListener("mousemove",h),document.addEventListener("mouseup",g),document.addEventListener("click",g)};return N.jsx("div",{className:"workflow-comment-resize-area",style:o,"data-flow-editor-selectable":"false",onMouseDown:l})},K_r=e=>{const{model:n,overflow:r,onResize:i}=e;return N.jsxs("div",{style:{zIndex:999},children:[N.jsx(MT,{style:{position:"absolute",left:-10,top:10,width:20,height:"calc(100% - 20px)"},model:n}),N.jsx(MT,{style:{position:"absolute",right:-10,top:10,height:"calc(100% - 20px)",width:r?10:20},model:n}),N.jsx(MT,{style:{position:"absolute",top:-10,left:10,width:"calc(100% - 20px)",height:20},model:n}),N.jsx(MT,{style:{position:"absolute",bottom:-10,left:10,width:"calc(100% - 20px)",height:20},model:n}),N.jsx(E5,{style:{position:"absolute",left:0,top:0,cursor:"nwse-resize"},model:n,getDelta:({x:o,y:a})=>({top:a,right:0,bottom:0,left:o}),onResize:i}),N.jsx(E5,{style:{position:"absolute",right:0,top:0,cursor:"nesw-resize"},model:n,getDelta:({x:o,y:a})=>({top:a,right:o,bottom:0,left:0}),onResize:i}),N.jsx(E5,{style:{position:"absolute",right:0,bottom:0,cursor:"nwse-resize"},model:n,getDelta:({x:o,y:a})=>({top:0,right:o,bottom:a,left:0}),onResize:i}),N.jsx(E5,{style:{position:"absolute",left:0,bottom:0,cursor:"nesw-resize"},model:n,getDelta:({x:o,y:a})=>({top:0,right:0,bottom:a,left:o}),onResize:i})]})},X_r=e=>{const{model:n}=e,r=ec(),{selectNode:i}=x_();return N.jsx("div",{className:"workflow-comment-blank-area h-full w-full",onMouseDown:o=>{o.preventDefault(),o.stopPropagation(),n.setFocus(!1),i(o),r.node.focus()},onClick:o=>{n.setFocus(!0),n.selectEnd()},children:N.jsx(MT,{style:{position:"relative",width:"100%",height:"100%"},model:n,stopEvent:!1})})},Q_r=e=>{const{node:n}=e,r=z_r(),{selected:i,selectNode:o,nodeRef:a,deleteNode:s}=x_(),l=n.getData(ls).getFormModel(),c=l==null?void 0:l.formControl,{width:u,height:d,onResize:f}=V_r(),{overflow:p,updateOverflow:h}=U_r({model:r,height:d});return N.jsx("div",{className:"workflow-comment",style:{width:u,height:d},ref:a,"data-node-selected":String(i),onMouseEnter:h,onMouseDown:g=>{setTimeout(()=>{o(g)},20)},children:N.jsx(Bme,{control:c,children:N.jsxs(N.Fragment,{children:[N.jsx(q_r,{focused:i,style:{height:d},children:N.jsx(Vm,{name:Rh.Note,children:({field:g})=>N.jsxs(N.Fragment,{children:[N.jsx(W_r,{model:r,value:g.value,onChange:g.onChange}),N.jsx(X_r,{model:r}),N.jsx(Y_r,{model:r,focused:i,overflow:p}),N.jsx(G_r,{node:n,focused:i,deleteNode:s})]})})}),N.jsx(K_r,{model:r,overflow:p,onResize:f})]})})})};function Z_r(e,n){return m.useMemo(()=>({background:!0,readonly:!1,initialData:e,nodeRegistries:n,getNodeDefaultRegistry(r){return{type:r,meta:{defaultExpanded:!0},formMeta:Yct}},lineColor:{hidden:"transparent",default:"#4d53e8",drawing:"#5DD6E3",hovered:"#37d0ff",selected:"#37d0ff",error:"red"},canAddLine(r,i,o){return i.node!==o.node},canDeleteLine(r,i,o,a){return!0},canDeleteNode(r,i){return!0},onDragLineEnd:wyr,selectBox:{SelectorBoxPopover:x_r},materials:{renderDefaultNode:N_r,renderNodes:{[xu.Comment]:Q_r}},nodeEngine:{enable:!0},variableEngine:{enable:!0},history:{enable:!0,enableChangeNode:!0},onContentChange:Unr((r,i)=>{console.log("Auto Save: ",i,r.document.toJSON())},1e3),shortcuts:Fyr,onBind:({bind:r})=>{r(UC).toSelf().inSingletonScope()},onInit(){console.log("--- Playground init ---")},onAllLayersRendered(r){r.document.fitView(!1),console.log("--- Playground rendered ---")},onDispose(){console.log("---- Playground Dispose ----")},plugins:()=>[Nst({renderInsideLine:A_r}),Vvr({disableLayer:!0,canvasStyle:{canvasWidth:182,canvasHeight:102,canvasPadding:50,canvasBackground:"rgba(242, 243, 245, 1)",canvasBorderRadius:10,viewportBackground:"rgba(255, 255, 255, 1)",viewportBorderRadius:4,viewportBorderColor:"rgba(6, 7, 9, 0.10)",viewportBorderWidth:1,viewportBorderDashLength:void 0,nodeColor:"rgba(0, 0, 0, 0.10)",nodeBorderRadius:2,nodeBorderWidth:.145,nodeBorderColor:"rgba(6, 7, 9, 0.10)",overlayColor:"rgba(255, 255, 255, 0.55)"},inactiveDebounceTime:1}),Hyr({}),Yvr({edgeColor:"#00B2B2",alignColor:"#00B2B2",edgeLineWidth:1,alignLineWidth:1,alignCrossWidth:8}),tyr({renderer:j_r}),iyr({}),Cyr({groupNodeRender:w_r})]}),[])}function yG(){return m.useContext(oye)}function jS(){return m.useContext(qct)}const J_r=({form:e})=>jS()?N.jsxs(N.Fragment,{children:[N.jsx(q0,{}),N.jsx(Y0,{children:N.jsx(Vm,{name:"outputs",render:({field:{value:r,onChange:i}})=>N.jsx(N.Fragment,{children:N.jsx(Bvr,{value:r,onChange:o=>i(o)})})})})]}):N.jsxs(N.Fragment,{children:[N.jsx(q0,{}),N.jsx(Y0,{children:N.jsx(HR,{})})]}),ebr={render:J_r,validateTrigger:n$.onChange,validate:{title:({value:e})=>e?void 0:"Title is required"}};var xu=(e=>(e.Start="start",e.End="end",e.LLM="llm",e.Condition="condition",e.Loop="loop",e.Comment="comment",e))(xu||{});const tbr={type:xu.Start,meta:{isStart:!0,deleteDisable:!0,copyDisable:!0,defaultPorts:[{type:"output"}],size:{width:360,height:211}},info:{icon:rcr,description:"The starting node of the workflow, used to set the information needed to initiate the workflow."},formMeta:ebr,canAdd(){return!1}},nbr="/agenticflow/assets/icon-loop-BOwpxpMz.jpg",rbr=({form:e})=>jS()?N.jsxs(N.Fragment,{children:[N.jsx(q0,{}),N.jsxs(Y0,{children:[N.jsx(Xse,{}),N.jsx(HR,{})]})]}):N.jsxs(N.Fragment,{children:[N.jsx(q0,{}),N.jsxs(Y0,{children:[N.jsx(Xse,{}),N.jsx(vyr,{}),N.jsx(HR,{})]})]});let ibr=0;const obr={type:xu.Loop,info:{icon:nbr,description:"Used to repeatedly execute a series of tasks by setting the number of iterations and logic."},meta:{isContainer:!0,size:{width:560,height:400},padding:()=>({top:125,bottom:100,left:100,right:100}),selectable(e,n){return n?!e.getData(hr).bounds.contains(n.x,n.y):!0},expandable:!1},onAdd(){return{id:`loop_${yu(5)}`,type:"loop",data:{title:`Loop_${++ibr}`,inputsValues:{loopTimes:2},inputs:{type:"object",required:["loopTimes"],properties:{loopTimes:{type:"number"}}},outputs:{type:"object",properties:{result:{type:"string"}}}}}},formMeta:{...Yct,render:rbr},onCreate(){}},abr="/agenticflow/assets/icon-llm-BJkdbjNX.jpg";let sbr=0;const lbr={type:xu.LLM,info:{icon:abr,description:"Call the large language model and use variables and prompt words to generate responses."},meta:{size:{width:360,height:305}},onAdd(){return{id:`llm_${yu(5)}`,type:"llm",data:{title:`LLM_${++sbr}`,inputsValues:{},inputs:{type:"object",required:["modelType","temperature","prompt"],properties:{modelType:{type:"string"},temperature:{type:"number"},systemPrompt:{type:"string"},prompt:{type:"string"}}},outputs:{type:"object",properties:{result:{type:"string"}}}}}}},cbr="/agenticflow/assets/icon-end-Bb5sqRY8.jpg",ubr=({form:e})=>jS()?N.jsxs(N.Fragment,{children:[N.jsx(q0,{}),N.jsxs(Y0,{children:[N.jsx(Vm,{name:"outputs.properties",render:({field:{value:r,onChange:i},fieldState:o})=>N.jsx(N.Fragment,{children:N.jsx(c_r,{value:r,onChange:i,useFx:!0})})}),N.jsx(HR,{})]})]}):N.jsxs(N.Fragment,{children:[N.jsx(q0,{}),N.jsx(Y0,{children:N.jsx(HR,{})})]}),dbr={render:ubr,validateTrigger:n$.onChange,validate:{title:({value:e})=>e?void 0:"Title is required"}},fbr={type:xu.End,meta:{deleteDisable:!0,copyDisable:!0,defaultPorts:[{type:"input"}],size:{width:360,height:211}},info:{icon:cbr,description:"The final node of the workflow, used to return the result information after the workflow is run."},formMeta:dbr,canAdd(){return!1}},pbr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='44'%20height='45'%20viewBox='0%200%2044%2045'%20fill='none'%20class='injected-svg'%20data-src='https://lf3-static.bytednsdoc.com/obj/eden-cn/uvpahtvabh_lm_zhhwh/ljhwZthlaukjlkulzlp/activity_icons/exclusive-split-0518.svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.4705%2014.0152C15.299%2012.8436%2015.299%2010.944%2016.4705%209.77244L20.7131%205.5297C21.8846%204.3581%2023.784%204.3581%2024.9556%205.5297L29.1981%209.77244C30.3697%2010.944%2030.3697%2012.8436%2029.1981%2014.0152L25.1206%2018.0929H32.6674C36.5334%2018.0929%2039.6674%2021.2269%2039.6674%2025.0929V33.154V33.3271V37.154C39.6674%2038.2585%2038.7719%2039.154%2037.6674%2039.154H33.6674C32.5628%2039.154%2031.6674%2038.2585%2031.6674%2037.154V33.3271V33.154V26.0929H23.5948H15.6674V33.1327L17.2685%2033.1244C18.8397%2033.1163%2019.6322%2035.0156%2018.5212%2036.1266L12.7374%2041.9103C12.0506%2042.5971%2010.9371%2042.5971%2010.2503%2041.9103L4.52588%2036.1859C3.42107%2035.0811%204.19797%2033.1917%205.76038%2033.1837L7.66737%2033.1739V25.0929C7.66737%2021.227%2010.8014%2018.0929%2014.6674%2018.0929H20.5481L16.4705%2014.0152Z'%20fill='url(%23paint0_linear_2752_183702-7)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2752_183702-7'%20x1='38.52'%20y1='43.3915'%20x2='8.09686'%20y2='4.6982'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%233370FF'/%3e%3cstop%20offset='0.997908'%20stop-color='%2333A9FF'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",hbr=oi.div`
position: absolute;
right: -12px;
top: 50%;
`;function gbr(){const e=!jS();return N.jsx(AJn,{name:"inputsValues.conditions",children:({field:n})=>N.jsxs(N.Fragment,{children:[n.map((r,i)=>N.jsx(Vm,{name:r.name,children:({field:o,fieldState:a})=>N.jsxs(Gct,{name:"if",type:"boolean",required:!0,labelWidth:40,children:[N.jsx(Vct,{value:o.value.value,onChange:s=>o.onChange({key:o.value.key,value:s}),icon:N.jsx(ol,{theme:"borderless",icon:N.jsx(Hlt,{}),onClick:()=>n.delete(i)}),hasError:Object.keys((a==null?void 0:a.errors)||{}).length>0,readonly:e}),N.jsx(rye,{errors:a==null?void 0:a.errors,invalid:a==null?void 0:a.invalid}),N.jsx(hbr,{"data-port-id":o.value.key,"data-port-type":"output"})]})},r.name)),!e&&N.jsx("div",{children:N.jsx(ol,{theme:"borderless",icon:N.jsx(oG,{}),onClick:()=>n.append({key:`if_${yu(6)}`,value:{type:"expression",content:""}}),children:"Add"})})]})})}const mbr=({form:e})=>N.jsxs(N.Fragment,{children:[N.jsx(q0,{}),N.jsx(Y0,{children:N.jsx(gbr,{})})]}),vbr={render:mbr,validateTrigger:n$.onChange,validate:{title:({value:e})=>e?void 0:"Title is required","inputsValues.conditions.*":({value:e})=>{var n;if(!((n=e==null?void 0:e.value)!=null&&n.content))return"Condition is required"}}},ybr={type:xu.Condition,info:{icon:pbr,description:"Connect multiple downstream branches. Only the corresponding branch will be executed if the set conditions are met."},meta:{defaultPorts:[{type:"input"}],useDynamicPort:!0,expandable:!1},formMeta:vbr,onAdd(){return{id:`condition_${yu(5)}`,type:"condition",data:{title:"Condition",inputsValues:{conditions:[{key:`if_${yu(5)}`,value:""},{key:`if_${yu(5)}`,value:""}]},inputs:{type:"object",properties:{conditions:{type:"array",items:{type:"object",properties:{key:{type:"string"},value:{type:"string"}}}}}}}}}},_br={type:xu.Comment,meta:{disableSideBar:!0,defaultPorts:[],renderKey:xu.Comment,size:{width:240,height:150}},formMeta:{render:()=>N.jsx(N.Fragment,{})},getInputPoints:()=>[],getOutputPoints:()=>[]},Kct=[ybr,tbr,fbr,lbr,obr,_br],bbr=Kct.filter(e=>e.type!==xu.Comment),Xct={nodes:[],edges:[]},Sbr=()=>{const e=ec();return m.useCallback(n=>e.config.getPosFromMouseEvent({clientX:n.left+64,clientY:n.top-7}),[e])},Ebr=()=>{const e=Di(Wa);return m.useCallback(n=>{n&&e.selectNode(n)},[e])},Cbr=()=>{const e=Di(ei),n=Di(Sd),r=ec(),i=Sbr(),o=Ebr();return m.useCallback(async a=>{const s=i(a);await new Promise(l=>{n.callNodePanel({position:s,enableMultiAdd:!0,panelProps:{},onSelect:async c=>{if(!c)return;const{nodeType:u,nodeJSON:d}=c,f=e.createWorkflowNodeByType(u,void 0,d??{});o(f)},onClose:()=>{l()}})})},[i,n,r.config.zoom,e,o])},wbr=e=>{const n=Cbr(),r=Fr();return N.jsx(ol,{icon:N.jsx(oG,{}),color:"highlight",style:{backgroundColor:"rgba(171,181,255,0.3)",borderRadius:"8px"},disabled:e.disabled,onClick:i=>{const o=i.currentTarget.getBoundingClientRect();n(o)},children:r.formatMessage({id:"flowgram.addnode.button",defaultMessage:"添加节点"})})},xbr=()=>N.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:N.jsxs("g",{id:"g1",children:[N.jsx("path",{id:"path1",fill:"#000000",stroke:"none",d:"M 18.09091 6.883101 L 5.409091 6.883101 L 5.409091 16.746737 L 10.664648 16.746737 C 10.927091 17.116341 11.30353 17.422749 11.792977 17.611004 L 12.664289 17.946156 L 12.744959 18.155828 L 5.409091 18.155828 C 4.630871 18.155828 4 17.524979 4 16.746737 L 4 6.883101 C 4 6.104881 4.630871 5.47401 5.409091 5.47401 L 18.09091 5.47401 C 18.86915 5.47401 19.5 6.104881 19.5 6.883101 L 19.5 12.52348 C 19.247208 11.883823 18.730145 11.365912 18.09091 11.111994 L 18.09091 6.883101 Z M 18.09091 18.155828 L 17.881165 18.155828 L 19.469212 14.368896 C 19.479921 14.343321 19.490206 14.317817 19.5 14.292241 L 19.5 16.746737 C 19.5 17.524979 18.86915 18.155828 18.09091 18.155828 Z"}),N.jsx("path",{id:"path2",fill:"#000000",fillRule:"evenodd",stroke:"none",d:"M 18.494614 13.960189 C 18.982441 12.796985 17.813459 11.628003 16.650255 12.11576 L 12.133272 14.01 C 10.962248 14.501069 10.987188 16.168798 12.172375 16.62464 L 13.482055 17.128389 L 13.985805 18.438068 C 14.441646 19.623184 16.109375 19.648125 16.600443 18.477171 L 18.494614 13.960189 Z M 17.19515 13.415224 L 15.30098 17.932205 L 14.79723 16.622526 C 14.654066 16.250385 14.359989 15.956307 13.987918 15.813213 L 12.678168 15.309464 L 17.19515 13.415224 Z"})]})}),Tbr=oi.div`
position: absolute;
bottom: 16px;
display: flex;
justify-content: left;
min-width: 360px;
pointer-events: none;
gap: 8px;
z-index: 99;
`,Obr=oi.div`
display: flex;
align-items: center;
background-color: #fff;
border: 1px solid rgba(68, 83, 130, 0.25);
border-radius: 10px;
box-shadow: rgba(0, 0, 0, 0.04) 0px 2px 6px 0px, rgba(0, 0, 0, 0.02) 0px 4px 12px 0px;
column-gap: 2px;
height: 40px;
padding: 0 4px;
pointer-events: auto;
`,Rbr=oi.span`
padding: 4px;
border-radius: 8px;
border: 1px solid rgba(68, 83, 130, 0.25);
font-size: 12px;
width: 50px;
cursor: pointer;
`,Ibr=oi.div`
position: absolute;
bottom: 60px;
width: 198px;
`,Nbr=oi(xbr)`
color: ${e=>e.visible?void 0:"#060709cc"};
`,Mbr=()=>{const e=p$(),n=ec(),[r,i]=m.useState(!1);return N.jsx(Do,{position:"top",trigger:"custom",visible:r,onClickOutSide:()=>i(!1),render:N.jsxs(Do.Menu,{children:[N.jsx(Do.Item,{onClick:()=>e.zoomin(),children:"Zoom in"}),N.jsx(Do.Item,{onClick:()=>e.zoomout(),children:"Zoom out"}),N.jsx(vct,{layout:"horizontal"}),N.jsx(Do.Item,{onClick:()=>n.config.updateZoom(.5),children:"Zoom to 50%"}),N.jsx(Do.Item,{onClick:()=>n.config.updateZoom(1),children:"Zoom to 100%"}),N.jsx(Do.Item,{onClick:()=>n.config.updateZoom(1.5),children:"Zoom to 150%"}),N.jsx(Do.Item,{onClick:()=>n.config.updateZoom(2),children:"Zoom to 200%"})]}),children:N.jsxs(Rbr,{onClick:()=>i(!0),children:[Math.floor(e.zoom*100),"%"]})})},Pbr=N.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:N.jsx("path",{id:"switch-line",fill:"currentColor",stroke:"none",d:"M 12.728118 10.060962 C 13.064282 8.716098 14.272528 7.772551 15.65877 7.772343 L 17.689898 7.772343 C 18.0798 7.772343 18.39588 7.456264 18.39588 7.066362 C 18.39588 6.676458 18.0798 6.36038 17.689898 6.36038 L 15.659616 6.36038 C 13.62515 6.360315 11.851767 7.745007 11.358504 9.718771 C 11.02234 11.063635 9.814095 12.007183 8.427853 12.007389 L 7.101437 12.007389 C 6.711768 12.007389 6.395878 12.323277 6.395878 12.712947 C 6.395878 13.102616 6.711768 13.418506 7.101437 13.418506 L 8.426159 13.418506 C 9.812716 13.418323 11.021417 14.361954 11.357657 15.707124 C 11.850921 17.680887 13.624304 19.065578 15.65877 19.065516 L 17.689049 19.065516 C 18.078953 19.065516 18.395033 18.749435 18.395033 18.359533 C 18.395033 17.969631 18.078953 17.653551 17.689049 17.653551 L 15.65877 17.653551 C 14.272528 17.653345 13.064282 16.709797 12.728118 15.364932 C 12.454905 14.27114 11.774856 13.322707 10.826583 12.712947 C 11.774536 12.10303 12.454268 11.154617 12.727271 10.060962 Z"})}),Abr=()=>{const e=Di(Ql),n=m.useCallback(()=>{e.switchLineType()},[e]);return N.jsx(qo,{content:"Switch Line",children:N.jsx(ul,{type:"tertiary",theme:"borderless",onClick:n,icon:Pbr})})},Dbr=()=>{const e=ec(),n=m.useCallback(()=>{e.config.readonly=!e.config.readonly},[e]);return e.config.readonly?N.jsx(qo,{content:"Editable",children:N.jsx(ul,{theme:"borderless",type:"tertiary",icon:N.jsx(Nfr,{size:"default"}),onClick:n})}):N.jsx(qo,{content:"Readonly",children:N.jsx(ul,{theme:"borderless",type:"tertiary",icon:N.jsx(Jfr,{size:"default"}),onClick:n})})},kbr=e=>{const{minimapVisible:n,setMinimapVisible:r}=e;return N.jsx(qo,{content:"Minimap",children:N.jsx(ul,{type:"tertiary",theme:"borderless",icon:N.jsx(Nbr,{visible:n}),onClick:()=>r(!n)})})},Lbr=({visible:e})=>{const n=Di(Tm);return e?N.jsx(Ibr,{children:N.jsx(Mct,{service:n,panelStyles:{},containerStyles:{pointerEvents:"auto",position:"relative",top:"unset",right:"unset",bottom:"unset",left:"unset"},inactiveStyle:{opacity:1,scale:1,translateX:0,translateY:0}})}):N.jsx(N.Fragment,{})};function $br(e){const{width:n,height:r}=e;return N.jsxs("svg",{width:n||48,height:r||38,viewBox:"0 0 48 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[N.jsx("rect",{x:"1.83317",y:"1.49998",width:"44.3333",height:"35",rx:"3.5",stroke:"currentColor",strokeOpacity:"0.8",strokeWidth:"2.33333"}),N.jsx("path",{d:"M14.6665 30.6667H33.3332",stroke:"currentColor",strokeOpacity:"0.8",strokeWidth:"2.33333",strokeLinecap:"round"})]})}const Fbr=()=>N.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.8549 5H3.1451C3.06496 5 3 5.06496 3 5.1451V18.8549C3 18.935 3.06496 19 3.1451 19H20.8549C20.935 19 21 18.935 21 18.8549V5.1451C21 5.06496 20.935 5 20.8549 5ZM3.1451 3C1.96039 3 1 3.96039 1 5.1451V18.8549C1 20.0396 1.96039 21 3.1451 21H20.8549C22.0396 21 23 20.0396 23 18.8549V5.1451C23 3.96039 22.0396 3 20.8549 3H3.1451Z"}),N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.99991 16C6.99991 15.4477 7.44762 15 7.99991 15H15.9999C16.5522 15 16.9999 15.4477 16.9999 16C16.9999 16.5523 16.5522 17 15.9999 17H7.99991C7.44762 17 6.99991 16.5523 6.99991 16Z"})]});function Bbr(e){const{width:n,height:r}=e;return N.jsx("svg",{width:n||34,height:r||52,viewBox:"0 0 34 52",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.9998 16.6666V35.3333C30.9998 37.5748 30.9948 38.4695 30.9 39.1895C30.2108 44.4247 26.0912 48.5443 20.856 49.2335C20.1361 49.3283 19.2413 49.3333 16.9998 49.3333C14.7584 49.3333 13.8636 49.3283 13.1437 49.2335C7.90847 48.5443 3.78888 44.4247 3.09965 39.1895C3.00487 38.4695 2.99984 37.5748 2.99984 35.3333V16.6666C2.99984 14.4252 3.00487 13.5304 3.09965 12.8105C3.78888 7.57528 7.90847 3.45569 13.1437 2.76646C13.7232 2.69017 14.4159 2.67202 15.8332 2.66785V9.86573C14.4738 10.3462 13.4998 11.6426 13.4998 13.1666V17.8332C13.4998 19.3571 14.4738 20.6536 15.8332 21.1341V23.6666C15.8332 24.3109 16.3555 24.8333 16.9998 24.8333C17.6442 24.8333 18.1665 24.3109 18.1665 23.6666V21.1341C19.5259 20.6536 20.4998 19.3572 20.4998 17.8332V13.1666C20.4998 11.6426 19.5259 10.3462 18.1665 9.86571V2.66785C19.5837 2.67202 20.2765 2.69017 20.856 2.76646C26.0912 3.45569 30.2108 7.57528 30.9 12.8105C30.9948 13.5304 30.9998 14.4252 30.9998 16.6666ZM0.666504 16.6666C0.666504 14.4993 0.666504 13.4157 0.786276 12.5059C1.61335 6.22368 6.55687 1.28016 12.8391 0.453085C13.7489 0.333313 14.8325 0.333313 16.9998 0.333313C19.1671 0.333313 20.2508 0.333313 21.1605 0.453085C27.4428 1.28016 32.3863 6.22368 33.2134 12.5059C33.3332 13.4157 33.3332 14.4994 33.3332 16.6666V35.3333C33.3332 37.5006 33.3332 38.5843 33.2134 39.494C32.3863 45.7763 27.4428 50.7198 21.1605 51.5469C20.2508 51.6666 19.1671 51.6666 16.9998 51.6666C14.8325 51.6666 13.7489 51.6666 12.8391 51.5469C6.55687 50.7198 1.61335 45.7763 0.786276 39.494C0.666504 38.5843 0.666504 37.5006 0.666504 35.3333V16.6666ZM15.8332 13.1666C15.8332 13.0011 15.8676 12.8437 15.9297 12.7011C15.9886 12.566 16.0722 12.4443 16.1749 12.3416C16.386 12.1305 16.6777 11.9999 16.9998 11.9999C17.6435 11.9999 18.1654 12.5212 18.1665 13.1646L18.1665 13.1666V17.8332L18.1665 17.8353C18.1665 17.8364 18.1665 17.8376 18.1665 17.8387C18.1661 17.9132 18.1588 17.986 18.1452 18.0565C18.0853 18.3656 17.9033 18.6312 17.6515 18.8011C17.4655 18.9266 17.2412 18.9999 16.9998 18.9999C16.3555 18.9999 15.8332 18.4776 15.8332 17.8332V13.1666Z",fill:"currentColor",fillOpacity:"0.8"})})}const jbr=()=>N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:N.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 8C4.5 4.13401 7.63401 1 11.5 1H12.5C16.366 1 19.5 4.13401 19.5 8V17C19.5 20.3137 16.8137 23 13.5 23H10.5C7.18629 23 4.5 20.3137 4.5 17V8ZM11.2517 3.00606C8.60561 3.13547 6.5 5.32184 6.5 8V17C6.5 19.2091 8.29086 21 10.5 21H13.5C15.7091 21 17.5 19.2091 17.5 17V8C17.5 5.32297 15.3962 3.13732 12.7517 3.00622V5.28013C13.2606 5.54331 13.6074 6.06549 13.6074 6.66669V8.75759C13.6074 9.35879 13.2606 9.88097 12.7517 10.1441V11.4091C12.7517 11.8233 12.4159 12.1591 12.0017 12.1591C11.5875 12.1591 11.2517 11.8233 11.2517 11.4091V10.1457C10.7411 9.88298 10.3931 9.35994 10.3931 8.75759V6.66669C10.3931 6.06433 10.7411 5.5413 11.2517 5.27862V3.00606ZM12.0017 6.14397C11.7059 6.14397 11.466 6.38381 11.466 6.67968V8.74462C11.466 9.03907 11.7036 9.27804 11.9975 9.28031L12.0002 9.28032C12.0456 9.28032 12.0896 9.27482 12.1316 9.26447C12.3401 9.21256 12.5002 9.0386 12.5318 8.82287C12.5345 8.80149 12.5359 8.7797 12.5359 8.75759V6.66669C12.5359 6.64463 12.5345 6.62288 12.5318 6.60154C12.4999 6.38354 12.3368 6.20817 12.1252 6.15826C12.0856 6.14891 12.0442 6.14397 12.0017 6.14397Z"})}),{Title:Ubr,Paragraph:Hbr}=LS,C3e=({title:e,subTitle:n,icon:r,onChange:i,value:o,selected:a})=>N.jsxs("div",{className:`mouse-pad-option ${a?"mouse-pad-option-selected":""}`,onClick:()=>i(o),children:[N.jsx("div",{className:`mouse-pad-option-icon ${a?"mouse-pad-option-icon-selected":""}`,children:r}),N.jsx(Ubr,{heading:6,className:`mouse-pad-option-title ${a?"mouse-pad-option-title-selected":""}`,children:e}),N.jsx(Hbr,{type:"tertiary",className:`mouse-pad-option-subTitle ${a?"mouse-pad-option-subTitle-selected":""}`,children:n})]}),zbr=({value:e,onChange:n,onPopupVisibleChange:r,containerStyle:i,iconStyle:o,arrowStyle:a})=>{const s=e==="MOUSE",[l,c]=m.useState(!1);return N.jsx(wu,{trigger:"custom",position:"topLeft",closeOnEsc:!0,visible:l,onVisibleChange:u=>{r==null||r(u)},onClickOutSide:()=>{c(!1)},spacing:20,content:N.jsxs("div",{className:"ui-mouse-pad-selector-popover",children:[N.jsx(LS.Title,{heading:4,children:"Interaction mode"}),N.jsxs("div",{className:"ui-mouse-pad-selector-popover-options",children:[N.jsx(C3e,{title:"Mouse-Friendly",subTitle:"Drag the canvas with the left mouse button, zoom with the scroll wheel.",value:"MOUSE",selected:e==="MOUSE",icon:N.jsx(Bbr,{}),onChange:n}),N.jsx(C3e,{title:"Touchpad-Friendly",subTitle:"Drag with two fingers moving in the same direction, zoom by pinching or spreading two fingers.",value:"PAD",selected:e==="PAD",icon:N.jsx($br,{}),onChange:n})]})]}),children:N.jsx("div",{className:`ui-mouse-pad-selector ${l?"ui-mouse-pad-selector-active":""}`,onClick:()=>{c(!l)},style:i,children:N.jsx("div",{className:"ui-mouse-pad-selector-icon",style:o,children:s?N.jsx(jbr,{}):N.jsx(Fbr,{})})})})},Qct="workflow_prefer_interactive_type",Vbr=/(Macintosh|MacIntel|MacPPC|Mac68K|iPad)/.test(navigator.userAgent),w3e=()=>{const e=localStorage.getItem(Qct);return e&&["MOUSE","PAD"].includes(e)?e:Vbr?"PAD":"MOUSE"},Gbr=e=>{localStorage.setItem(Qct,e)},Wbr=()=>{const e=p$(),[n,r]=m.useState(!1),[i,o]=m.useState(()=>w3e()),[a,s]=m.useState(!1),l=i==="MOUSE"?"Mouse-Friendly":"Touchpad-Friendly";m.useEffect(()=>{e.setMouseScrollDelta(d=>d/20);const u=w3e();e.setInteractiveType(u)},[]);const c=()=>{r(!1)};return N.jsx(wu,{trigger:"custom",position:"top",visible:n,onClickOutSide:c,children:N.jsx(qo,{content:l,style:{display:a?"none":"block"},children:N.jsx("div",{className:"workflow-toolbar-interactive",children:N.jsx(zbr,{value:i,onChange:u=>{o(u),Gbr(u),e.setInteractiveType(u)},onPopupVisibleChange:s,containerStyle:{border:"none",height:"32px",width:"32px",justifyContent:"center",alignItems:"center",gap:"2px",padding:"4px",borderRadius:"var(--small, 6px)"},iconStyle:{margin:"0",width:"16px",height:"16px"},arrowStyle:{width:"12px",height:"12px"}})})})})},Ybr=()=>{const e=p$();return N.jsx(qo,{content:"FitView",children:N.jsx(ul,{icon:N.jsx(Tve,{}),type:"tertiary",theme:"borderless",onClick:()=>e.fitView()})})},qbr=({style:e})=>N.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:e,children:[N.jsx("path",{d:"M6.5 9C5.94772 9 5.5 9.44772 5.5 10V11C5.5 11.5523 5.94772 12 6.5 12H7.5C8.05228 12 8.5 11.5523 8.5 11V10C8.5 9.44772 8.05228 9 7.5 9H6.5zM11.5 9C10.9477 9 10.5 9.44772 10.5 10V11C10.5 11.5523 10.9477 12 11.5 12H12.5C13.0523 12 13.5 11.5523 13.5 11V10C13.5 9.44772 13.0523 9 12.5 9H11.5zM15.5 10C15.5 9.44772 15.9477 9 16.5 9H17.5C18.0523 9 18.5 9.44772 18.5 10V11C18.5 11.5523 18.0523 12 17.5 12H16.5C15.9477 12 15.5 11.5523 15.5 11V10z"}),N.jsx("path",{d:"M23 4C23 2.9 22.1 2 21 2H3C1.9 2 1 2.9 1 4V17.0111C1 18.0211 1.9 19.0111 3 19.0111H7.7586L10.4774 22C10.9822 22.5017 11.3166 22.6311 12 22.7009C12.414 22.707 13.0502 22.5093 13.5 22L16.2414 19.0111H21C22.1 19.0111 23 18.1111 23 17.0111V4ZM3 4H21V17.0111H15.5L12 20.6714L8.5 17.0111H3V4Z"})]}),Kbr=()=>{const e=ec(),n=Di(ei),r=Di(Wa),i=Di(Ya),[o,a]=m.useState(!1),s=m.useCallback(c=>{const u=e.config.getPosFromMouseEvent(c);return{x:u.x,y:u.y-75}},[e]),l=m.useCallback(async c=>{a(!1);const u=s(c),d=n.createWorkflowNodeByType(xu.Comment,u);await NS(16),r.selectNode(d),i.startDragSelectedNodes(c)},[r,s,n,i]);return N.jsx(qo,{trigger:"custom",visible:o,onVisibleChange:a,content:"Comment",children:N.jsx(ul,{disabled:e.config.readonly,icon:N.jsx(qbr,{style:{width:16,height:16}}),type:"tertiary",theme:"borderless",onClick:l,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1)})})},Xbr=N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:N.jsx("path",{fill:"currentColor",d:"M3 2C2.44772 2 2 2.44771 2 3V12C2 12.5523 2.44772 13 3 13H10C10.5523 13 11 12.5523 11 12V3C11 2.44772 10.5523 2 10 2H3zM4 11V4H9V11H4zM21 22C21.5523 22 22 21.5523 22 21V12C22 11.4477 21.5523 11 21 11H14C13.4477 11 13 11.4477 13 12V21C13 21.5523 13.4477 22 14 22H21zM20 13V20H15V13H20zM2 16C2 15.4477 2.44772 15 3 15H10C10.5523 15 11 15.4477 11 16V21C11 21.5523 10.5523 22 10 22H3C2.44772 22 2 21.5523 2 21V16zM4 20V17H9V20H4zM21 9C21.5523 9 22 8.55228 22 8V3C22 2.44772 21.5523 2 21 2H14C13.4477 2 13 2.44772 13 3V8C13 8.55228 13.4477 9 14 9H21zM20 4V7H15V4H20z"})}),Qbr=()=>{const e=p$(),n=ec(),r=m.useCallback(async()=>{await e.autoLayout()},[e]);return N.jsx(qo,{content:"Auto Layout",children:N.jsx(ul,{disabled:n.config.readonly,type:"tertiary",theme:"borderless",onClick:r,icon:Xbr})})},Zbr=()=>{const{history:e,playground:n}=Bw(),[r,i]=m.useState(!1),[o,a]=m.useState(!1),[s,l]=m.useState(!0);m.useEffect(()=>{const u=e.undoRedoService.onChange(()=>{i(e.canUndo()),a(e.canRedo())});return()=>u.dispose()},[e]);const c=Rd();return m.useEffect(()=>{const u=n.config.onReadonlyOrDisabledChange(()=>c());return()=>u.dispose()},[n]),N.jsx(Tbr,{className:"demo-free-layout-tools",children:N.jsxs(Obr,{children:[N.jsx(Wbr,{}),N.jsx(Qbr,{}),N.jsx(Abr,{}),N.jsx(Mbr,{}),N.jsx(Ybr,{}),N.jsx(kbr,{minimapVisible:s,setMinimapVisible:l}),N.jsx(Lbr,{visible:s}),N.jsx(Dbr,{}),N.jsx(Kbr,{}),N.jsx(qo,{content:"Undo",children:N.jsx(ul,{type:"tertiary",theme:"borderless",icon:N.jsx(Qfr,{}),disabled:!r||n.config.readonly,onClick:()=>e.undo()})}),N.jsx(qo,{content:"Redo",children:N.jsx(ul,{type:"tertiary",theme:"borderless",icon:N.jsx($fr,{}),disabled:!o||n.config.readonly,onClick:()=>e.redo()})}),N.jsx(vct,{layout:"vertical",style:{height:"16px"},margin:3}),N.jsx(wbr,{disabled:n.config.readonly})]})})};function Jbr({children:e}){const[n,r]=m.useState();return N.jsx(aye.Provider,{value:{visible:!!n,nodeRender:n,setNodeRender:r},children:e})}const e0r=()=>{var c;const{nodeRender:e,setNodeRender:n}=m.useContext(aye),{selection:r,playground:i}=Bw(),o=Rd(),a=m.useCallback(()=>{n(void 0)},[]);m.useEffect(()=>{const u=i.config.onReadonlyOrDisabledChange(()=>o());return()=>u.dispose()},[i]),m.useEffect(()=>{const u=r.onSelectionChanged(()=>{(r.selection.length===0||r.selection.length===1&&r.selection[0]!==(e==null?void 0:e.node))&&a()});return()=>u.dispose()},[r,a]),m.useEffect(()=>{if(e){const u=e.node.onDispose(()=>{n(void 0)});return()=>u.dispose()}},[e]);const s=m.useMemo(()=>{if(!e)return!1;const{disableSideBar:u=!1}=e.node.getNodeMeta();return!u},[e]);if(i.config.readonly)return null;const l=e?N.jsx(kV.Provider,{value:e.node,children:N.jsx(oye.Provider,{value:e,children:(c=e.form)==null?void 0:c.render()})},e.node.id):null;return N.jsx(jR,{mask:!1,visible:s,onCancel:a,children:N.jsx(qct.Provider,{value:!0,children:l})})},t0r=[{key:"condition",title:"条件节点",content:"条件判断",icon:"📋",color:"#7B67EE"},{key:"start",title:"开始节点",content:"流程开始",icon:"🔵",color:"#63C6B7"},{key:"end",title:"结束节点",content:"流程结束",icon:"🔴",color:"#F76964"},{key:"llm",title:"LLM节点",content:"大语言模型",icon:"🤖",color:"#000000"},{key:"loop",title:"循环节点",content:"循环处理",icon:"🔄",color:"#30A46C"}],n0r=e=>{const n=Fr(),r=Di(Ya),i=(o,a,s,l)=>{r.startDragCard(o,l,{data:{title:a,content:s,nodeType:o}})};return N.jsxs("div",{className:"demo-free-sidebar",children:[N.jsx("div",{className:"node-panel-title",style:{padding:"8px",fontWeight:"bold"},children:n.formatMessage({id:"flowgram.nodepanel.title",defaultMessage:"节点类型"})}),t0r.map(o=>N.jsxs("div",{className:"demo-free-card",style:{padding:"8px",margin:"4px",border:"1px solid #eee",borderRadius:"4px",cursor:"grab",display:"flex",alignItems:"center",backgroundColor:"rgba(255,255,255,0.8)"},onMouseDown:a=>i(o.key,o.title,o.content,a),children:[N.jsx("span",{style:{marginRight:"8px",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",fontSize:"14px",background:o.color,color:"#fff"},children:o.icon}),o.title]},o.key))]})},r0r=({onReady:e,onChange:n})=>{const r=Bw(),i=m.useRef(!1);return m.useEffect(()=>{if(!i.current&&r){i.current=!0;const o=r.document;if(e&&o&&e(o),n&&o){const a=o;if(typeof a.onDocumentChange=="function"){const s=a.onDocumentChange(()=>{n()});return()=>{typeof(s==null?void 0:s.dispose)=="function"&&s.dispose()}}}}},[r,e,n]),N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"demo-container",children:N.jsxs("div",{className:"demo-layout-horizontal",children:[N.jsx(n0r,{}),N.jsx(kme,{className:"demo-editor"})]})}),N.jsx(Zbr,{}),N.jsx(e0r,{})]})},i0r=({onReady:e,onChange:n})=>{const r=Z_r(Xct,Kct);return N.jsx("div",{className:"doc-free-feature-overview",children:N.jsx(tG,{...r,children:N.jsx(Jbr,{children:N.jsx(r0r,{onReady:e,onChange:n})})})})},o0r=Ru(e=>({currentFlow:null,flowResult:{data:{content:[]}},hasUnsavedChanges:!1,setCurrentFlow:n=>e({currentFlow:n}),setFlowResult:n=>e({flowResult:n}),setHasUnsavedChanges:n=>e({hasUnsavedChanges:n})}));async function a0r(e){return so("/api/v1/workflow/query/org",{method:"GET",params:{...e,client:xo}})}async function x3e(e){return so("/api/v1/workflow/create",{method:"POST",data:{...e,client:xo}})}async function s0r(e){return so("/api/v1/workflow/update",{method:"POST",data:{...e,client:xo}})}const l0r=({isModalOpen:e,isEdit:n,initialValues:r={},handleSubmit:i,handleCancel:o})=>{const a=Fr(),{isDarkMode:s}=Pu(),[l]=Hr.useForm(),c=u=>{i(u)};return N.jsx(fa,{title:a.formatMessage({id:n?"flowgram.edit.title":"flowgram.create.title",defaultMessage:n?"编辑流程":"创建新流程"}),open:e,onOk:()=>l.submit(),onCancel:o,okText:a.formatMessage({id:n?"common.update":"common.create",defaultMessage:n?"更新":"创建"}),cancelText:a.formatMessage({id:"common.cancel",defaultMessage:"取消"}),maskClosable:!1,destroyOnClose:!0,className:s?"dark-modal":"",children:N.jsxs(Hr,{form:l,layout:"vertical",initialValues:r,onFinish:c,preserve:!1,children:[N.jsx(Hr.Item,{name:"name",label:a.formatMessage({id:"flowgram.name",defaultMessage:"流程名称"}),rules:[{required:!0,message:a.formatMessage({id:"flowgram.name.required",defaultMessage:"请输入流程名称"})}],children:N.jsx(Oi,{placeholder:a.formatMessage({id:"flowgram.name.placeholder",defaultMessage:"请输入流程名称"})})}),N.jsx(Hr.Item,{name:"description",label:a.formatMessage({id:"flowgram.description",defaultMessage:"描述"}),children:N.jsx(Oi.TextArea,{rows:4,placeholder:a.formatMessage({id:"flowgram.description.placeholder",defaultMessage:"请输入流程描述(选填)"})})})]})})},{Header:c0r,Content:u0r}=bo,Zct=()=>{var j;const e=Fr(),{isDarkMode:n}=Pu(),{headerStyle:r}=u_(),{translateString:i}=Gp(),o=ws(F=>F.setUserInfo),{currentOrg:a,setCurrentOrg:s}=ev(F=>({currentOrg:F.currentOrg,setCurrentOrg:F.setCurrentOrg})),{currentFlow:l,flowResult:c,hasUnsavedChanges:u,setCurrentFlow:d,setFlowResult:f,setHasUnsavedChanges:p}=o0r(),[h,g]=m.useState(!1),[v,y]=m.useState(!1),[_,S]=m.useState(!1),[b,E]=m.useState([]),[w,C]=m.useState(!1),x=m.useRef(null),T=m.useRef(null),R={color:n?"#fff":"#000",display:"flex",alignItems:"center",margin:0},O={marginRight:16},M={display:"flex",alignItems:"center",gap:8},P=async()=>{const F=await iz();console.log("initProfile response:",F.data),F.data.code===200?(o(F.data.data),s(F.data.data.currentOrganization)):Nt.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))},k=async()=>{var te;if(Nt.loading(e.formatMessage({id:"flowgram.fetch.loading",defaultMessage:"正在获取流程列表..."})),!(a!=null&&a.uid)){await P();return}const F=await a0r({pageNumber:0,pageSize:100,orgUid:a==null?void 0:a.uid,type:RW});console.log("Fetch workflows response:",F.data),F.data.code===200?(((te=F.data.data.content)==null?void 0:te.length)===0&&(Nt.warning(e.formatMessage({id:"flowgram.fetch.empty",defaultMessage:"暂无流程,请创建新流程"})),g(!0)),f(F.data),Nt.destroy()):(Nt.destroy(),Nt.error(e.formatMessage({id:"flowgram.fetch.error",defaultMessage:"获取流程列表失败"})))},$=()=>{console.log("Editor content changed, setting hasUnsavedChanges to true"),p(!0)},U=F=>{if(console.log("Editor is ready:",F),x.current=F,C(!0),F)try{F.on("change",$)}catch(te){console.error("Failed to register editor change event:",te)}if(l!=null&&l.content&&F)try{const te=JSON.parse(l.content);F.load(te)}catch(te){console.error("Error loading flow data:",te),Nt.error(e.formatMessage({id:"flowgram.load.error",defaultMessage:"加载流程数据失败"}))}},z=()=>{S(!1),g(!0)},D=async F=>{if(console.log("Create values:",F),Nt.loading(e.formatMessage({id:"flowgram.create.loading",defaultMessage:"正在创建流程..."})),T.current)return T.current(F);try{const te=JSON.stringify(Xct),oe=await x3e({name:F.name,description:F.description,content:te,type:RW,orgUid:a==null?void 0:a.uid});console.log("Create workflow response:",oe),oe.data.code===200?(d(oe.data.data),g(!1),Nt.destroy(),Nt.success(e.formatMessage({id:"flowgram.create.success",defaultMessage:"创建成功"})),k()):(Nt.destroy(),Nt.error(e.formatMessage({id:"flowgram.create.error",defaultMessage:"创建失败: {error}"},{error:oe.data.message})))}catch(te){Nt.destroy(),Nt.error(e.formatMessage({id:"flowgram.create.error",defaultMessage:"创建失败: {error}"},{error:te.message}))}},B=()=>{y(!0)},Y=async(F,te)=>{if(console.log("Upload files:",F,te),y(!1),!F.length){Nt.error(e.formatMessage({id:"flowgram.import.no.file",defaultMessage:"没有选择文件"}));return}const oe=F[0],de=new FileReader;de.onload=async pe=>{var me;try{const ve=(me=pe.target)==null?void 0:me.result;if(!ve||typeof ve!="string")throw new Error("无效的文件内容");let he;try{he=JSON.parse(ve),console.log("Parsed JSON data:",he)}catch{throw new Error("无效的JSON格式")}fa.confirm({title:e.formatMessage({id:"flowgram.import.confirm.title",defaultMessage:"导入流程"}),content:e.formatMessage({id:"flowgram.import.confirm.content",defaultMessage:"请为导入的流程创建一个新的名称"}),onOk:()=>{S(!1),g(!0),T.current=async be=>{Nt.loading(e.formatMessage({id:"flowgram.import.loading",defaultMessage:"正在导入流程..."}));try{const we=await x3e({name:be.name,description:be.description,content:ve,type:RW,orgUid:a==null?void 0:a.uid});we.data.code===200?(d(we.data.data),g(!1),Nt.destroy(),Nt.success(e.formatMessage({id:"flowgram.import.success",defaultMessage:"导入成功"})),k()):(Nt.destroy(),Nt.error(e.formatMessage({id:"flowgram.import.error",defaultMessage:"导入失败: {error}"},{error:we.data.message})))}catch(we){Nt.destroy(),Nt.error(e.formatMessage({id:"flowgram.import.error",defaultMessage:"导入失败: {error}"},{error:we.message}))}}},okText:e.formatMessage({id:"common.continue",defaultMessage:"继续"}),cancelText:e.formatMessage({id:"common.cancel",defaultMessage:"取消"})})}catch(ve){Nt.error(e.formatMessage({id:"flowgram.import.error",defaultMessage:"导入失败: {error}"},{error:ve.message}))}},de.onerror=()=>{Nt.error(e.formatMessage({id:"flowgram.import.read.error",defaultMessage:"读取文件失败"}))},de.readAsText(oe)},q=()=>{var F;if(!l){Nt.warning(e.formatMessage({id:"flowgram.export.no.flow",defaultMessage:"请先选择或创建流程"}));return}try{if(x.current){const te=x.current.toJSON(),oe=JSON.stringify(te,null,2),de=new Blob([oe],{type:"application/json"}),pe=URL.createObjectURL(de),me=document.createElement("a");me.href=pe;const ve=new Date().toISOString().replace(/[^0-9]/g,"").slice(0,14),he=((F=l.name)==null?void 0:F.replace(/[^a-zA-Z0-9]/g,"_"))||"flowgram";me.download=`${he}_${ve}.flowgram.json`,me.click(),URL.revokeObjectURL(pe),Nt.success(e.formatMessage({id:"flowgram.export.success",defaultMessage:"导出成功"}))}else throw new Error("编辑器未准备好")}catch(te){console.error("Error exporting FlowGram:",te),Nt.error(e.formatMessage({id:"flowgram.export.error",defaultMessage:"导出失败: {error}"},{error:te.message}))}},K=async()=>{if(!l||!x.current)return!0;try{Nt.loading(e.formatMessage({id:"flowgram.save.loading",defaultMessage:"正在保存..."}));const F=x.current.toJSON(),te=JSON.stringify(F),oe=await s0r({uid:l.uid,name:l.name,description:l.description,content:te,orgUid:a==null?void 0:a.uid,type:l.type});return console.log("Update workflow response:",oe),oe.data.code===200?(d(oe.data.data),p(!1),Nt.destroy(),Nt.success(e.formatMessage({id:"flowgram.save.success",defaultMessage:"保存成功"})),!0):(Nt.destroy(),Nt.error(e.formatMessage({id:"flowgram.save.error",defaultMessage:"保存失败: {error}"},{error:oe.data.message})),!1)}catch(F){return Nt.destroy(),Nt.error(e.formatMessage({id:"flowgram.save.error",defaultMessage:"保存失败: {error}"},{error:F.message})),!1}},H=async()=>{if(!l){Nt.warning(e.formatMessage({id:"flowgram.save.no.flow",defaultMessage:"请先选择或创建流程"}));return}return K()},G=F=>{if(d(F),p(!1),F!=null&&F.content&&x.current)try{const te=JSON.parse(F.content);x.current.load(te),console.log("Flow content loaded successfully")}catch(te){console.error("Error loading flow data:",te),Nt.error(e.formatMessage({id:"flowgram.load.error",defaultMessage:"加载流程数据失败"}))}},Q=async F=>{var oe;console.log("Menu clicked:",F);const te=(oe=c.data.content)==null?void 0:oe.find(de=>de.uid===F.key);te&&te.uid!==(l==null?void 0:l.uid)&&(l?await K()?G(te):fa.confirm({title:e.formatMessage({id:"flowgram.save.failed.title",defaultMessage:"保存失败"}),content:e.formatMessage({id:"flowgram.save.failed.content",defaultMessage:"当前流程保存失败,是否仍然切换到新流程?"}),okText:e.formatMessage({id:"common.continue",defaultMessage:"继续"}),cancelText:e.formatMessage({id:"common.cancel",defaultMessage:"取消"}),onOk:()=>{G(te)}}):G(te))},le={items:b,selectedKeys:l?[l.uid]:[],onClick:Q};m.useEffect(()=>{k()},[]),m.useEffect(()=>{a!=null&&a.uid&&k()},[a]),m.useEffect(()=>{var F,te,oe,de;if((F=c==null?void 0:c.data)!=null&&F.content){const pe=(te=c.data.content)==null?void 0:te.map(me=>({key:me.uid,label:i(me.name)}));if(E(pe),!l&&((oe=c.data.content)==null?void 0:oe.length)>0&&d(c.data.content[0]),l){const me=(de=c.data.content)==null?void 0:de.find(ve=>ve.uid===l.uid);me&&d(me)}}},[c]),m.useEffect(()=>{if(l!=null&&l.content&&x.current&&w)try{const F=JSON.parse(l.content);console.log("Loading flow content into editor:",F),x.current.load(F),p(!1)}catch(F){console.error("Error loading flow data:",F),Nt.error(e.formatMessage({id:"flowgram.load.error",defaultMessage:"加载流程数据失败"}))}},[l==null?void 0:l.uid,w]),m.useEffect(()=>{if(!u||!w||!l)return;const F=setTimeout(async()=>{await H()},3e4);return()=>{clearTimeout(F)}},[u,l,w]);const Z=()=>{T.current=null,g(!1)};return N.jsxs(bo,{style:{height:"100%"},children:[N.jsx(c0r,{style:r,children:N.jsxs("div",{className:"header-content",children:[N.jsxs("h1",{style:R,children:[N.jsx("span",{className:"title-text",style:{color:n?"#fff":"#000",...O},children:e.formatMessage({id:"flowgram.title",defaultMessage:"FlowGram"})}),N.jsxs("span",{className:"title-actions",style:{marginLeft:16,...M},children:[N.jsx(qn,{type:"primary",icon:N.jsx(_A,{}),onClick:z,style:{marginRight:8},children:e.formatMessage({id:"flowgram.create",defaultMessage:"创建"})}),N.jsx(Dde,{menu:le,trigger:["click"],children:N.jsx("a",{onClick:F=>F.preventDefault(),style:{color:n?"#fff":"#000",opacity:.85},children:N.jsx(Cf,{children:((j=c.data.content)==null?void 0:j.length)>0?N.jsxs("span",{children:[i(l==null?void 0:l.name)||e.formatMessage({id:"flowgram.select.flow",defaultMessage:"选择流程"}),N.jsx(lI,{})]}):N.jsx("span",{children:e.formatMessage({id:"flowgram.no.flow",defaultMessage:"暂无流程"})})})})})]})]}),N.jsxs("div",{className:"header-actions",children:[N.jsx(qn,{type:"primary",icon:N.jsx(iS,{}),onClick:B,children:e.formatMessage({id:"flowgram.import",defaultMessage:"导入"})}),N.jsx(qn,{type:"primary",icon:N.jsx(Ok,{}),onClick:q,children:e.formatMessage({id:"flowgram.export",defaultMessage:"导出"})}),N.jsx(qn,{type:"primary",icon:N.jsx(Bde,{}),onClick:H,disabled:!u||!l,children:e.formatMessage({id:"flowgram.save",defaultMessage:"保存"})})]})]})}),N.jsx(u0r,{style:{background:n?"#141414":"#fff",position:"relative",height:"calc(100vh - 64px)"},children:N.jsx(i0r,{onReady:U,onChange:$})}),h&&N.jsx(l0r,{isModalOpen:h,isEdit:_,initialValues:_?{name:l==null?void 0:l.name,description:l==null?void 0:l.description}:void 0,handleSubmit:D,handleCancel:Z}),v&&N.jsx(ert,{type:d_t,acceptType:".json,.flowgram",isModalOpen:v,handleSubmit:Y,handleCancel:()=>y(!1)})]})},d0r=()=>{const e=Fr(),{locale:n}=m.useContext(Xl),r=localStorage.getItem(zee),[i,o]=m.useState(r||"/"),a=Df(),{isLoggedIn:s,hasRoleAgent:l}=m.useContext(Xl),{footerStyle:c}=u_(),{currentOrg:u,setCurrentOrg:d}=ev(U=>({currentOrg:U.currentOrg,setCurrentOrg:U.setCurrentOrg})),{userInfo:f,setUserInfo:p}=ws(U=>({userInfo:U.userInfo,setUserInfo:U.setUserInfo})),{setAgentInfo:h}=XC(U=>({setAgentInfo:U.setAgentInfo})),g=Ah(U=>U.removeThread),v=MXe(U=>U.setWorkgroupResult),[y,_]=m.useState(!1),S=Ah(U=>U.threads);m.useEffect(()=>{const U=S.some(z=>z.unreadCount>0);_(U)},[S]);const[b,E]=m.useState([]);m.useEffect(()=>{const U=[...yO?[{path:"/formbuilder",name:e.formatMessage({id:"menu.dashboard.form"}),icon:N.jsx(ST,{}),component:N.jsx(Koe,{})},{path:"/form-view/:formId",element:N.jsx(Kpe,{})},{path:"/flowbuilder",name:e.formatMessage({id:"menu.dashboard.flow"}),icon:N.jsx(ST,{}),component:N.jsx(XZe,{})},{path:"/flowgram",name:e.formatMessage({id:"menu.dashboard.flowgram"}),icon:N.jsx(ST,{}),component:N.jsx(Zct,{})}]:[],{path:"/ticketbuilder",name:e.formatMessage({id:"menu.dashboard.ticket"}),icon:N.jsx(ST,{}),component:N.jsx(trt,{})},{path:"/setting",name:e.formatMessage({id:"menu.dashboard.mine"}),icon:N.jsx(jde,{}),component:N.jsx(IXe,{})}];E(U)},[e,n]),LXe(),qpe(),kXe(),Spe();const w=async()=>{if(!s||(u==null?void 0:u.uid)===""||!l)return;const U=await W0t(u==null?void 0:u.uid);console.log("getAgentProfile response:",u==null?void 0:u.uid,U.data),U.data.code===200&&h(U.data.data)},[C,x]=m.useState(!1),[T,R]=m.useState(!1),O=m.useCallback(U=>{d(U)},[d]),M=m.useCallback(()=>{localStorage.getItem("skipVerification")!=="true"&&f&&!f.emailVerified&&!f.mobileVerified&&R(!0)},[f]),P=async()=>{if(s){if(f.currentOrganization===void 0||f.currentOrganization===null){console.log("before initOrganization",f),x(!0);return}console.log("after initOrganization"),d(f==null?void 0:f.currentOrganization),w(),M()}};m.useEffect(()=>(P(),()=>{console.log("un - useEffect")}),[s,f]);const k=async()=>{const U=await iz();console.log("initProfile response:",U.data),U.data.code===200?p(U.data.data):Nt.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))};m.useEffect(()=>{s&&k()},[s]);const $=async()=>{if(!s||(u==null?void 0:u.uid)===""||!l)return;const U={orgUid:u==null?void 0:u.uid,pageNumber:0,pageSize:20},z=await kMn(U);console.log("initWorkgroups",z.data),z.data.code===200?v(z.data):console.log("获取工作组失败")};return m.useEffect(()=>{$()},[s,u]),m.useEffect(()=>{const U=B=>{var q,K;console.log("handleTransfer:",B);const Y=JSON.parse(B);if(console.log("handleTransfer contentObject",Y.message,Y.thread),((K=(q=Y.message)==null?void 0:q.user)==null?void 0:K.uid)===(f==null?void 0:f.uid)){Nt.success("转接会话发送成功,请等待对方响应");return}},z=B=>{var K,H,G;console.log("handleTransferAccept:",B);const Y=JSON.parse(B),q=JSON.parse((K=Y.message)==null?void 0:K.content);g(q==null?void 0:q.thread),Nt.success(`${(G=(H=Y.message)==null?void 0:H.user)==null?void 0:G.nickname} 已接受转接会话`)},D=B=>{var q,K;console.log("handleTransferReject:",B);const Y=JSON.parse(B);Nt.success(`${(K=(q=Y.message)==null?void 0:q.user)==null?void 0:K.nickname} 已拒绝转接会话`)};return Qr.on(Dee,U),Qr.on(kee,z),Qr.on(Lee,D),()=>{Qr.off(Dee,U),Qr.off(kee,z),Qr.off(Lee,D)}},[]),N.jsxs(Mqe,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:b},location:{pathname:i},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:U=>U.isMobile?[]:[N.jsx($Mn,{}),N.jsx(DMn,{})],menuHeaderRender:()=>N.jsx(DXe,{}),menuFooterRender:U=>{U!=null&&U.collapsed},onMenuHeaderClick:U=>{console.log("onMenuHeaderClick",U)},menuItemRender:(U,z)=>N.jsx(N.Fragment,{children:N.jsxs("div",{onClick:()=>{o(U.path),a(U.path),localStorage.setItem(zee,U.path)},children:[y&&N.jsxs(N.Fragment,{children:[U.path==="/chat"&&N.jsx(Zu,{size:"small",dot:y,offset:[-5,5],children:z}),U.path!=="/chat"&&z]}),!y&&N.jsx(N.Fragment,{children:z})]})}),children:[N.jsx(tz,{children:N.jsx(AU,{},n.locale)}),N.jsx(nz,{style:c,children:N.jsx(AXe,{})}),N.jsx(gKn,{open:C,onClose:()=>x(!1),onSuccess:O}),N.jsx(mKn,{open:T,onClose:()=>R(!1)}),N.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},f0r=()=>N.jsx(N.Fragment,{children:N.jsx(AU,{})}),p0r=({open:e,onClose:n})=>{const r=Fr(),{translateString:i}=Gp(),o=()=>{n()},a=()=>{n()};return N.jsx(N.Fragment,{children:N.jsx(fa,{title:r.formatMessage({id:"profile.password.change.title",defaultMessage:"Change Password"}),forceRender:!0,open:e,footer:null,onCancel:a,children:N.jsxs(mi,{initialValues:{oldPassword:"",newPassword:"",confirmPassword:""},onFinish:async s=>{if(console.log("changePassword:",s),s.newPassword.trim().length<6){Nt.error(r.formatMessage({id:"profile.password.length.error",defaultMessage:"Password must be at least 6 characters"}));return}if(s.newPassword!==s.confirmPassword){Nt.error(r.formatMessage({id:"profile.password.mismatch",defaultMessage:"The two passwords do not match"}));return}const l={oldPassword:s.oldPassword,newPassword:s.newPassword},c=await LMn(l);console.log("changePassword response:",c),c.data.code===200?(Nt.success(r.formatMessage({id:"profile.password.change.success",defaultMessage:"Password changed successfully!"})),o()):Nt.error(i(c.data.message))},children:[N.jsx(eo.Password,{name:"oldPassword",label:r.formatMessage({id:"profile.password.old",defaultMessage:"Old Password"}),extra:r.formatMessage({id:"profile.password.old.empty",defaultMessage:"Old password can be empty for phone login users"})}),N.jsx(eo.Password,{name:"newPassword",label:r.formatMessage({id:"profile.password.new",defaultMessage:"New Password"})}),N.jsx(eo.Password,{name:"confirmPassword",label:r.formatMessage({id:"profile.password.confirm",defaultMessage:"Confirm Password"})})]})})})},Jct=({children:e,onSuccess:n,onError:r})=>{const i={file:null,fileName:"test.png",fileType:"image/png",isAvatar:"true",kbType:f_t,categoryUid:"",kbUid:"",client:xo},o={name:"file",accept:"image/*",action:OF(),headers:{Authorization:"Bearer "+localStorage.getItem(G1)},data:i,showUploadList:!1,beforeUpload(a){console.log("beforeUpload",a);const s=Hn(new Date).format("YYYYMMDDHHmmss")+"_"+a.name;i.file=a,i.fileName=s,i.fileType=a.type,console.log("beforeUpload",i)},onChange(a){if(a.file.status!=="uploading"&&console.log("not uploading:",a.file),a.file.status==="done")if(console.log("response: ",a.file.response),a.file.response.code===200){const s=a.file.response.data.fileUrl;n(s),Nt.success(`${a.file.name} 上传成功`)}else r(a.file),Nt.error(`${a.file.name} 上传失败`);else a.file.status==="error"&&(Nt.error(`${a.file.name} 上传失败`),r(a.file))}};return N.jsx(og,{...o,children:e})},h0r=({open:e,onSubmit:n,onClose:r})=>{const i=Fr(),[o]=mi.useForm(),{translateString:a}=Gp(),{userInfo:s,deviceUid:l}=ws(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),c=ev(C=>C.currentOrg),u=m.useRef(),[d,f]=m.useState(""),[p,h]=m.useState(""),[g,v]=m.useState(!1),y=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),h(x)},_=async C=>{console.log("captcha check result",C),v(C)},S=()=>{r()},b=()=>{r()},E=async()=>{o.validateFields().then(async C=>{if(console.log("changeEmail:",C),s.email===C.email){Nt.error(i.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"}));return}const x={email:C.email,code:C.code,platform:Cp},T=await FXe(x);console.log("changeEmail response:",T),T.data.code===200?(Nt.success(i.formatMessage({id:"profile.email.change.success",defaultMessage:"Email changed successfully!"})),n(C.email),S()):Nt.error(a(T.data.message))})},w=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=u.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(fa,{title:i.formatMessage({id:"profile.email.change.title",defaultMessage:"Change Email"}),forceRender:!0,open:e,footer:null,onCancel:b,children:N.jsxs(mi,{form:o,onFinish:async C=>{console.log("changeEmail:",C),E()},children:[N.jsx(eo,{fieldProps:{size:"large",prefix:N.jsx(Rk,{})},name:"email",placeholder:i.formatMessage({id:"profile.email.placeholder",defaultMessage:"Enter email address"}),rules:[{required:!0,message:i.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:i.formatMessage({id:"profile.email.format.invalid",defaultMessage:"Invalid email format"})},{max:50,message:i.formatMessage({id:"profile.email.length.limit",defaultMessage:"Email cannot exceed 50 characters"})}]}),N.jsx(mi.Item,{name:"captchaCode",children:N.jsx(LI,{onKaptchaChange:y,onKaptchaCheck:_})}),N.jsx(kk,{fieldProps:{size:"large",prefix:N.jsx(lw,{})},captchaProps:{size:"large",disabled:!g},placeholder:i.formatMessage({id:"profile.email.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(C,x)=>C?`${x} ${i.formatMessage({id:"profile.email.verification.code.countdown",defaultMessage:"seconds"})}`:i.formatMessage({id:"profile.email.verification.code.get",defaultMessage:"Get Code"}),phoneName:"email",name:"code",rules:[{required:!0,message:i.formatMessage({id:"profile.email.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:u,onGetCaptcha:async C=>{if(C){if(s.email===C){Nt.error(i.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"})),w();return}const x={email:C,type:jyt,captchaUid:d,captchaCode:p,deviceUid:l,userUid:s.uid,orgUid:c.uid,platform:Cp},T=await WKe(x);if(T.data.code!==200){Nt.error(T.data.message),w();return}Nt.success(T.data.message)}else Nt.error(i.formatMessage({id:"profile.email.format.error",defaultMessage:"Invalid email format"}))}})]})})})},g0r=({open:e,onSubmit:n,onClose:r})=>{const i=Fr(),[o]=mi.useForm(),{translateString:a}=Gp(),{userInfo:s,deviceUid:l}=ws(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),c=ev(C=>C.currentOrg),u=m.useRef(),[d,f]=m.useState(""),[p,h]=m.useState(""),[g,v]=m.useState(!1),y=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),h(x)},_=async C=>{console.log("captcha check result",C),v(C)},S=()=>{r()},b=()=>{r()},E=async()=>{o.validateFields().then(async C=>{if(console.log("changeMobile:",C),s.mobile===C.mobile){Nt.error(i.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"}));return}const x={mobile:C.mobile,code:C.code,platform:Cp},T=await BXe(x);console.log("changeMobile response:",T),T.data.code===200?(Nt.success(i.formatMessage({id:"profile.mobile.change.success",defaultMessage:"Mobile number changed successfully!"})),n(C.mobile),S()):Nt.error(a(T.data.message))})},w=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=u.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(fa,{title:i.formatMessage({id:"profile.mobile.change.title",defaultMessage:"Change Mobile"}),forceRender:!0,open:e,footer:null,onCancel:b,children:N.jsxs(mi,{form:o,onFinish:async C=>{console.log("changeMobile:",C),E()},children:[N.jsx(eo,{fieldProps:{size:"large",prefix:N.jsx(Rk,{})},name:"mobile",placeholder:i.formatMessage({id:"profile.mobile.placeholder",defaultMessage:"Enter mobile number"}),rules:[{required:!0,message:i.formatMessage({id:"profile.mobile.required",defaultMessage:"Please enter mobile number!"})},{pattern:/^1\d{10}$/,message:i.formatMessage({id:"profile.mobile.format.invalid",defaultMessage:"Invalid mobile format"})}]}),N.jsx(mi.Item,{name:"captchaCode",children:N.jsx(LI,{onKaptchaChange:y,onKaptchaCheck:_})}),N.jsx(kk,{fieldProps:{size:"large",prefix:N.jsx(lw,{})},captchaProps:{size:"large",disabled:!g},placeholder:i.formatMessage({id:"profile.mobile.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(C,x)=>C?`${x} ${i.formatMessage({id:"profile.mobile.verification.code.countdown",defaultMessage:"seconds"})}`:i.formatMessage({id:"profile.mobile.verification.code.get",defaultMessage:"Get Code"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:i.formatMessage({id:"profile.mobile.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:u,onGetCaptcha:async C=>{if(C&&C.length===11){if(s.mobile===C){Nt.error(i.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"})),w();return}const x={mobile:C,type:Fyt,captchaUid:d,captchaCode:p,deviceUid:l,userUid:s.uid,orgUid:c.uid,platform:Cp},T=await bpe(x);if(T.data.code!==200){Nt.error(T.data.message),w();return}Nt.success(T.data.message)}else Nt.error(i.formatMessage({id:"profile.mobile.format.error",defaultMessage:"Invalid mobile format"}))}})]})})})},m0r={labelCol:{span:8},wrapperCol:{span:8}},T3e=()=>{const e=Fr(),[n]=mi.useForm(),{translateString:r}=Gp(),{userInfo:i,setUserInfo:o}=ws(O=>({userInfo:O.userInfo,setUserInfo:O.setUserInfo})),[a,s]=m.useState(""),[l,c]=m.useState(!1),[u,d]=m.useState(!1),[f,p]=m.useState(!1),h=()=>{c(!0)},g=()=>{d(!0)},v=()=>{p(!0)},y=()=>{c(!1)},_=()=>{d(!1)},S=O=>{d(!1),i.email=O,o(i),n.setFieldValue("email",O)},b=()=>{p(!1)},E=O=>{p(!1),i.mobile=O,o(i),n.setFieldValue("mobile",O)},w=O=>{console.log("handleUploadSuccess:",O),s(O)},C=O=>{console.log("handleUploadError:",O)},x=async O=>{const M={...i,...O,avatar:a};console.log(M);const P=await $Xe(M);console.log("updateProfile response:",P.data),P.data.code===200?(Nt.success(e.formatMessage({id:"profile.update.success",defaultMessage:"Profile updated successfully"})),o(P.data.data)):Nt.error(P.data.message)},T=O=>Array.isArray(O)?O:O==null?void 0:O.fileList;m.useEffect(()=>{i&&s(i.avatar)},[i]);const R=async()=>{const O=await iz();console.log("handleRefreshProfile getProfile response:",O.data),O.data.code===200?(o(O.data.data),n.setFieldsValue({uid:O.data.data.uid,username:O.data.data.username,nickname:r(O.data.data.nickname),email:O.data.data.email,mobile:O.data.data.mobile,description:r(O.data.data.description)})):Nt.error(O.data.message)};return m.useEffect(()=>{R()},[]),N.jsxs("div",{className:"profile-container",children:[N.jsxs(mi,{...m0r,form:n,onFinish:x,children:[N.jsx(eo,{name:"uid",label:"UID",readonly:!0}),N.jsx(mi.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:T,label:e.formatMessage({id:"profile.form.avatar",defaultMessage:"Avatar"}),children:N.jsxs(Jct,{onSuccess:w,onError:C,children:[N.jsx(nS,{src:a}),N.jsx(qn,{icon:N.jsx(iS,{}),children:e.formatMessage({id:"profile.form.upload",defaultMessage:"Upload"})})]},"avatar")}),N.jsx(eo,{name:"username",label:e.formatMessage({id:"profile.form.username",defaultMessage:"Username"}),rules:[{required:!0}]}),N.jsx(qn,{onClick:h,children:e.formatMessage({id:"profile.button.change.password",defaultMessage:"Change Password"})}),N.jsx(eo,{name:"nickname",label:e.formatMessage({id:"profile.form.nickname",defaultMessage:"Nickname"}),rules:[{required:!0}]}),N.jsx(eo,{name:"email",label:i.emailVerified?e.formatMessage({id:"profile.email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"profile.email.unverified",defaultMessage:"Email Unverified"}),rules:[{type:"email"}],readonly:!0}),N.jsx(qn,{onClick:g,children:e.formatMessage({id:"profile.button.change.email",defaultMessage:"Change Email"})}),N.jsx(eo,{name:"mobile",label:i.mobileVerified?e.formatMessage({id:"profile.mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"profile.mobile.unverified",defaultMessage:"Mobile Unverified"}),readonly:!0}),N.jsx(qn,{onClick:v,children:e.formatMessage({id:"profile.button.change.mobile",defaultMessage:"Change Mobile"})}),N.jsx(Xk,{name:"description",label:e.formatMessage({id:"profile.form.description",defaultMessage:"Description"})})]}),l&&N.jsx(p0r,{open:l,onClose:y}),u&&N.jsx(h0r,{open:u,onSubmit:S,onClose:_}),f&&N.jsx(g0r,{open:f,onSubmit:E,onClose:b})]})},v0r=()=>{const e=Fr(),n=NH(),{isMqttConnected:r}=qpe(),[i,o]=m.useState(!0),[a,s]=m.useState(!0),[l,c]=m.useState(!1),u=C=>{console.log("radio checked",C.target.value),c(C.target.value),Yl?window.electronAPI.setOpenAtLogin(C.target.value):console.log("not electron")},d=async()=>{if(Yl){const C=await window.electronAPI.getOpenAtLogin();console.log("openAtLogin:",C),c(C)}};m.useEffect(()=>{d(),vqt(),hGe(),console.log("isNetworkOnline:",n);const C=localStorage.getItem(O5);C===null?(localStorage.setItem(O5,"true"),o(!0)):o(C==="true");const x=localStorage.getItem(P2);x===null?(localStorage.setItem(P2,"true"),s(!0)):s(x==="true")},[]);const{themeMode:f,setThemeMode:p,mode:h,changeMode:g,locale:v,changeLocale:y}=m.useContext(Xl),_=C=>{console.log("radio checked",C.target.value),p(C.target.value),bqt(C.target.value)},S=C=>{console.log("language change",C.target.value),y(C.target.value)},b=C=>{console.log("play audio switch",C),localStorage.setItem(O5,C?"true":"false"),o(C)},E=C=>{console.log("show network status notification",C),localStorage.setItem(P2,C?"true":"false"),s(C)},w=C=>{console.log("mode change",C.target.value),g(C.target.value)};return N.jsxs("div",{className:"profile-container",children:[N.jsx("p",{children:N.jsx(sC,{checkedChildren:e.formatMessage({id:"setting.basic.sound.on",defaultMessage:"已开启消息提示音"}),unCheckedChildren:e.formatMessage({id:"setting.basic.sound.off",defaultMessage:"已关闭消息提示音"}),value:i,onChange:b})}),N.jsx("p",{children:N.jsx(sC,{checkedChildren:e.formatMessage({id:"setting.basic.notification.on",defaultMessage:"已开启网络状态通知"}),unCheckedChildren:e.formatMessage({id:"setting.basic.notification.off",defaultMessage:"已关闭网络状态通知"}),value:a,onChange:E})}),yO&&N.jsxs(N.Fragment,{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.connection.status",defaultMessage:"长链接状态:"})}),N.jsx("div",{children:r?e.formatMessage({id:"setting.basic.connection.connected",defaultMessage:"✅连接正常"}):e.formatMessage({id:"setting.basic.connection.disconnected",defaultMessage:"❌连接断开"})})]}),Yl&&N.jsxs(N.Fragment,{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.startup",defaultMessage:"开机启动:"})}),N.jsxs(ya.Group,{onChange:u,value:l,children:[N.jsx(ya,{value:!0,children:e.formatMessage({id:"setting.basic.startup.on",defaultMessage:"开机启动"})}),N.jsx(ya,{value:!1,children:e.formatMessage({id:"setting.basic.startup.off",defaultMessage:"不开机启动"})})]})]}),N.jsx("p",{children:e.formatMessage({id:"setting.basic.theme",defaultMessage:"颜色主题:"})}),N.jsxs(ya.Group,{onChange:_,value:f,children:[N.jsx(ya,{value:"light",children:N.jsx(kh,{id:"theme.light"})}),N.jsx(ya,{value:"dark",children:N.jsx(kh,{id:"theme.dark"})}),N.jsx(ya,{value:"system",children:N.jsx(kh,{id:"theme.system"})})]}),N.jsxs("div",{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.language",defaultMessage:"语言设置:"})}),N.jsxs(ya.Group,{value:v.locale,onChange:S,children:[N.jsx(ya,{value:"en",children:e.formatMessage({id:"i18n.lang.en-US"})},"en"),N.jsx(ya,{value:"zh-cn",children:e.formatMessage({id:"i18n.lang.zh-CN"})},"zh-cn"),N.jsx(ya,{value:"zh-tw",children:e.formatMessage({id:"i18n.lang.zh-TW"})},"zh-tw")]})]}),yO&&N.jsxs("div",{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.mode",defaultMessage:"模式设置:"})}),N.jsxs(ya.Group,{value:h,onChange:w,children:[N.jsx(ya,{value:PT,children:e.formatMessage({id:"setting.basic.mode.team",defaultMessage:"团队模式"})},PT),N.jsx(ya,{value:V1,children:e.formatMessage({id:"setting.basic.mode.agent",defaultMessage:"客服模式"})},V1),N.jsx(ya,{value:CF,children:e.formatMessage({id:"setting.basic.mode.personal",defaultMessage:"个人模式"})},CF)]})]})]})},y0r=()=>{const e=ws(r=>r.userInfo),n=()=>{var i;console.log("downloadQRCode");const r=(i=document.getElementById("myqrcode"))==null?void 0:i.querySelector("canvas");if(r){const o=r.toDataURL(),a=document.createElement("a");a.download=e.username+"_profile.png",a.href=o,document.body.appendChild(a),a.click(),document.body.removeChild(a)}else console.log("canvas is null")};return N.jsxs("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[N.jsx(QVe,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"/agent/logo.png"}),N.jsx(qn,{type:"primary",onClick:n,style:{marginTop:"20px"},children:"下载二维码"})]})},_0r=()=>N.jsx(N.Fragment,{children:N.jsx("div",{children:"ShortcutAdmin"})}),b0r=()=>{const e=Df();return N.jsx(Nk,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:N.jsx(qn,{type:"primary",onClick:()=>e("/"),children:"返回主页"})})},S0r={labelCol:{span:8},wrapperCol:{span:8}},E0r=()=>{const e=Fr(),[n]=mi.useForm(),{userInfo:r,setUserInfo:i}=ws(d=>({userInfo:d.userInfo,setUserInfo:d.setUserInfo})),[o,a]=m.useState(""),s={file:null,fileName:"test.png",fileType:"image/png"},l={name:"file",action:OF(),headers:{Authorization:"Bearer "+localStorage.getItem(G1)},showUploadList:!1,data:s,beforeUpload(d){const f=Hn(new Date).format("YYYYMMDDHHmmss")+"_"+d.name;s.file=d,s.fileName=f,s.fileType=d.type,console.log("beforeUpload",s)},onChange(d){if(d.file.status!=="uploading"&&console.log(d.file,d.fileList),d.file.status==="done"){const f=d.file.response.data.fileUrl;console.log("url: ",f),a(f),Nt.success(`${d.file.name} file uploaded successfully`)}else d.file.status==="error"&&Nt.error(`${d.file.name} file upload failed.`)}},c=async d=>{const f={...r,...d,avatar:o};console.log(f);const p=await $Xe(f);console.log("updateProfile response:",p),p.data.code===200?(Nt.success("修改成功"),i(p.data.data)):Nt.error("修改失败")},u=d=>Array.isArray(d)?d:d==null?void 0:d.fileList;return m.useEffect(()=>{r&&a(r.avatar)},[r]),N.jsxs("div",{className:"profile-container",children:[N.jsx("p",{children:"员工信息"}),N.jsxs(mi,{...S0r,style:{marginLeft:20},form:n,onFinish:c,initialValues:{nickname:r.nickname,email:r.email,mobile:r.mobile,description:r.description},children:[N.jsx(Hr.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:u,label:e.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:N.jsxs(og,{...l,children:[N.jsx(nS,{src:o}),N.jsx(qn,{icon:N.jsx(iS,{}),children:e.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),N.jsx(eo,{name:"nickname",label:"昵称",rules:[{required:!0}],children:N.jsx(Oi,{})}),N.jsx(eo,{name:"email",label:"邮箱",rules:[{type:"email"}],disabled:!0,children:N.jsx(Oi,{})}),N.jsx(eo,{name:"mobile",label:"手机号",disabled:!0,children:N.jsx(Oi,{})}),N.jsx(Xk,{name:"description",label:"描述",children:N.jsx(Oi.TextArea,{})})]})]})},C0r=({open:e,onSubmit:n,onClose:r})=>{const i=Fr(),[o]=mi.useForm(),{translateString:a}=Gp(),{userInfo:s,deviceUid:l}=ws(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),c=ev(C=>C.currentOrg),u=m.useRef(),[d,f]=m.useState(""),[p,h]=m.useState(""),[g,v]=m.useState(!1);m.useEffect(()=>{e?o.setFieldsValue({email:s==null?void 0:s.email}):(o.resetFields(),w())},[e]);const y=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),h(x)},_=async C=>{console.log("captcha check result",C),v(C)},S=()=>{r()},b=()=>{r()},E=async()=>{o.validateFields().then(async C=>{console.log("changeEmail:",C);const x={email:C.email,code:C.code,platform:Cp},T=await FXe(x);console.log("changeEmail response:",T),T.data.code===200?(Nt.success("Email verify successfully!"),n(C.email),S()):Nt.error(a(T.data.message))})},w=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=u.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(fa,{title:i.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"}),forceRender:!0,open:e,footer:null,onCancel:b,children:N.jsxs(mi,{form:o,onFinish:async C=>{console.log("changeEmail:",C),E()},children:[N.jsx(eo,{fieldProps:{size:"large",prefix:N.jsx(Rk,{})},name:"email",placeholder:i.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}),N.jsx(mi.Item,{name:"captchaCode",rules:[],children:N.jsx(LI,{onKaptchaChange:y,onKaptchaCheck:_})}),N.jsx(kk,{fieldProps:{size:"large",prefix:N.jsx(lw,{}),allowClear:!0},captchaProps:{size:"large",disabled:!g},placeholder:i.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(C,x)=>C?`${x} ${i.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:i.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"email",name:"code",rules:[{required:!0}],fieldRef:u,onGetCaptcha:async C=>{if(console.log("email:",C),C){const x={email:C,type:Uyt,captchaUid:d,captchaCode:p,deviceUid:l,userUid:s==null?void 0:s.uid,orgUid:c.uid,platform:Cp},T=await WKe(x);if(console.log("sendEmailCode",T),T.data.code!==200){Nt.error(a(T.data.message)),w();return}Nt.success(a(T.data.message))}else Nt.error("手机号格式错误")}})]})})})},w0r=({open:e,onSubmit:n,onClose:r})=>{const i=Fr(),[o]=mi.useForm(),{translateString:a}=Gp(),{userInfo:s,deviceUid:l}=ws(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),c=ev(C=>C.currentOrg),u=m.useRef(),[d,f]=m.useState(""),[p,h]=m.useState(""),[g,v]=m.useState(!1);m.useEffect(()=>{e?o.setFieldsValue({mobile:s==null?void 0:s.mobile}):(o.resetFields(),w())},[e]);const y=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),h(x)},_=async C=>{console.log("captcha check result",C),v(C)},S=()=>{r()},b=()=>{r()},E=async()=>{o.validateFields().then(async C=>{console.log("changeMobile:",C);const x={mobile:C.mobile,code:C.code,platform:Cp},T=await BXe(x);console.log("changeMobile response:",T),T.data.code===200?(Nt.success("Mobile verify successfully!"),n(C.mobile),S()):Nt.error(a(T.data.message))})},w=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=u.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(fa,{title:i.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"}),forceRender:!0,open:e,footer:null,onCancel:b,children:N.jsxs(mi,{form:o,onFinish:async C=>{console.log("changeMobile:",C),E()},children:[N.jsx(eo,{fieldProps:{size:"large",prefix:N.jsx(Rk,{})},name:"mobile",placeholder:i.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0},{pattern:/^1\d{10}$/}],readonly:!0}),N.jsx(mi.Item,{name:"captchaCode",rules:[],children:N.jsx(LI,{onKaptchaChange:y,onKaptchaCheck:_})}),N.jsx(kk,{fieldProps:{size:"large",prefix:N.jsx(lw,{}),allowClear:!0},captchaProps:{size:"large",disabled:!g},placeholder:i.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(C,x)=>C?`${x} ${i.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:i.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0}],fieldRef:u,onGetCaptcha:async C=>{if(console.log("mobile:",C),C&&C.length===11){const x={mobile:C,type:Byt,captchaUid:d,captchaCode:p,deviceUid:l,userUid:s==null?void 0:s.uid,orgUid:c.uid,platform:Cp},T=await bpe(x);if(console.log("sendMobileCode",T),T.data.code!==200){Nt.error(a(T.data.message)),w();return}Nt.success(a(T.data.message))}else Nt.error("手机号格式错误")}})]})})})},x0r=()=>{const e=Fr(),n=Df(),[r]=mi.useForm(),{userInfo:i,setUserInfo:o}=ws(_=>({userInfo:_.userInfo,setUserInfo:_.setUserInfo})),[a,s]=m.useState(!1),[l,c]=m.useState(!1),u=()=>{s(!0)},d=()=>{c(!0)},f=()=>{s(!1)},p=_=>{s(!1),i.email=_,i.emailVerified=!0,o(i),r.setFieldValue("email",_)},h=()=>{c(!1)},g=_=>{c(!1),i.mobile=_,i.mobileVerified=!0,o(i),r.setFieldValue("mobile",_)};m.useEffect(()=>{r.setFieldsValue({uid:i.uid,username:i.username,nickname:i.nickname,email:i.email,mobile:i.mobile})},[]);const v=()=>{n("/setting/profile")},y=()=>{n("/setting/profile")};return N.jsxs("div",{children:[N.jsxs(mi,{form:r,submitter:!1,children:[N.jsx(eo,{name:"email",label:i!=null&&i.emailVerified?e.formatMessage({id:"email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"email.unverified",defaultMessage:"email unverified"}),readonly:!0}),!(i!=null&&i.emailVerified)&&i.email!=null&&N.jsx(qn,{onClick:u,children:e.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"})}),N.jsx(qn,{type:"link",onClick:v,children:"重置邮箱"}),N.jsx(eo,{name:"mobile",label:i!=null&&i.mobileVerified?e.formatMessage({id:"mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"mobile.unverified",defaultMessage:"mobile unverified"}),readonly:!0}),!(i!=null&&i.mobileVerified)&&i.mobile!=null&&N.jsx(qn,{onClick:d,children:e.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"})}),N.jsx(qn,{type:"link",onClick:y,children:"重置手机号"})]}),a&&N.jsx(C0r,{open:a,onSubmit:p,onClose:f}),l&&N.jsx(w0r,{open:l,onSubmit:g,onClose:h})]})},T0r=e=>{console.log(e)},O0r=[{key:"personal",label:"个人认证",children:N.jsx(x0r,{})}],R0r=()=>N.jsx("div",{className:"profile-container",children:N.jsx(Sk,{defaultActiveKey:"personal",items:O0r,onChange:T0r})}),I0r=()=>{const[e]=mi.useForm(),n=Fr(),{translateString:r}=Gp(),{agentInfo:i,setAgentInfo:o}=XC(f=>({agentInfo:f.agentInfo,setAgentInfo:f.setAgentInfo})),[a,s]=m.useState("");m.useEffect(()=>{var f;i&&e.setFieldsValue({nickname:r(i==null?void 0:i.nickname),email:i==null?void 0:i.email,mobile:i==null?void 0:i.mobile,description:r(i==null?void 0:i.description),memberUid:(f=i==null?void 0:i.member)==null?void 0:f.uid})},[i]);const l=f=>{console.log("handleUploadSuccess:",f),s(f)},c=f=>{console.log("handleUploadError:",f),Nt.error(f)},u=async f=>{var g,v,y,_,S,b,E,w,C,x,T,R,O,M;console.log("onFinish:",f),Nt.loading(n.formatMessage({id:"updating"}));const p={...i,...f,avatar:a,serviceSettings:{...i.serviceSettings,quickFaqUids:(v=(g=i==null?void 0:i.serviceSettings)==null?void 0:g.quickFaqs)==null?void 0:v.map(P=>P.uid),faqUids:(_=(y=i==null?void 0:i.serviceSettings)==null?void 0:y.faqs)==null?void 0:_.map(P=>P.uid),guessFaqUids:(b=(S=i==null?void 0:i.serviceSettings)==null?void 0:S.guessFaqs)==null?void 0:b.map(P=>P.uid),hotFaqUids:(w=(E=i==null?void 0:i.serviceSettings)==null?void 0:E.hotFaqs)==null?void 0:w.map(P=>P.uid),shortcutFaqUids:(x=(C=i==null?void 0:i.serviceSettings)==null?void 0:C.shortcutFaqs)==null?void 0:x.map(P=>P.uid)},robotSettings:{...i.robotSettings,robotUid:(R=(T=i==null?void 0:i.robotSettings)==null?void 0:T.robot)==null?void 0:R.uid},leaveMsgSettings:{...i.leaveMsgSettings,worktimeUids:(M=(O=i==null?void 0:i.leaveMsgSettings)==null?void 0:O.worktimes)==null?void 0:M.map(P=>P.uid)},autoReplySettings:{...i.autoReplySettings}};console.log("agentObject:",p);const h=await Y0t(p);console.log("updateAgent response:",h),h.data.code===200?(Nt.destroy(),Nt.success(n.formatMessage({id:"update.success"})),o(h.data.data)):(Nt.destroy(),Nt.error(h.data.message))},d=f=>Array.isArray(f)?f:f==null?void 0:f.fileList;return m.useEffect(()=>{var f;i&&(s(i.avatar),e.setFieldsValue({member:(f=i==null?void 0:i.member)==null?void 0:f.nickname}))},[i]),N.jsx(N.Fragment,{children:N.jsxs(mi,{form:e,style:{marginLeft:"20px"},onFinish:u,children:[N.jsx(mi.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:d,label:n.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:N.jsxs(Jct,{onSuccess:l,onError:c,children:[N.jsx(nS,{src:a}),N.jsx(qn,{icon:N.jsx(iS,{}),children:n.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),N.jsx(eo,{width:"md",name:"nickname",label:"客服卡片-展示客服昵称",rules:[{required:!0,message:"请输入客服昵称"}]}),N.jsx(eo,{width:"md",name:"email",label:"客服卡片-展示邮箱",rules:[{required:!0,message:"请输入邮箱"}]}),N.jsx(eo,{width:"md",name:"mobile",label:"客服卡片-展示手机号",rules:[{required:!0,message:"请输入手机号"}]}),N.jsx(Xk,{width:"md",name:"description",label:"客服卡片-展示描述",rules:[{required:!0,message:"请输入描述"}]})]})})},N0r=()=>{const e=Fr(),[n,r]=m.useState([]),i=[{key:"basic",label:e.formatMessage({id:"pages.agent.tab.basic",defaultMessage:"Basic"}),children:N.jsx(I0r,{})}];return m.useEffect(()=>{r(i)},[]),N.jsx(N.Fragment,{children:N.jsx(Sk,{style:{marginLeft:20},defaultActiveKey:"basic",items:n})})},{Sider:M0r,Content:P0r}=bo,Zse=()=>{const{leftSiderStyle:e,leftSiderWidth:n,headerStyle:r,contentStyle:i}=u_();return N.jsx(N.Fragment,{children:N.jsxs(bo,{children:[N.jsx(M0r,{style:e,width:n,children:N.jsx(Q8,{style:r,children:"home"})}),N.jsxs(bo,{children:[N.jsx(Q8,{style:r,children:"home"}),N.jsx(P0r,{style:i,children:"home"})]})]})})},A0r=()=>{console.log("useMulticast");const e=()=>setInterval(()=>{},5e3);m.useEffect(()=>{console.log("useMulticast useEffect");const n=e();return()=>{console.log("un - useEffect"),clearInterval(n)}},[])};class D0r{constructor(){this.encoder=new TextEncoder,this._pieces=[],this._parts=[]}append_buffer(n){this.flush(),this._parts.push(n)}append(n){this._pieces.push(n)}flush(){if(this._pieces.length>0){const n=new Uint8Array(this._pieces);this._parts.push(n),this._pieces=[]}}toArrayBuffer(){const n=[];for(const r of this._parts)n.push(r);return k0r(n).buffer}}function k0r(e){let n=0;for(const o of e)n+=o.byteLength;const r=new Uint8Array(n);let i=0;for(const o of e){const a=new Uint8Array(o.buffer,o.byteOffset,o.byteLength);r.set(a,i),i+=o.byteLength}return r}function eut(e){return new L0r(e).unpack()}function tut(e){const n=new $0r,r=n.pack(e);return r instanceof Promise?r.then(()=>n.getBuffer()):n.getBuffer()}class L0r{constructor(n){this.index=0,this.dataBuffer=n,this.dataView=new Uint8Array(this.dataBuffer),this.length=this.dataBuffer.byteLength}unpack(){const n=this.unpack_uint8();if(n<128)return n;if((n^224)<32)return(n^224)-32;let r;if((r=n^160)<=15)return this.unpack_raw(r);if((r=n^176)<=15)return this.unpack_string(r);if((r=n^144)<=15)return this.unpack_array(r);if((r=n^128)<=15)return this.unpack_map(r);switch(n){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 r=this.unpack_uint16(),this.unpack_string(r);case 217:return r=this.unpack_uint32(),this.unpack_string(r);case 218:return r=this.unpack_uint16(),this.unpack_raw(r);case 219:return r=this.unpack_uint32(),this.unpack_raw(r);case 220:return r=this.unpack_uint16(),this.unpack_array(r);case 221:return r=this.unpack_uint32(),this.unpack_array(r);case 222:return r=this.unpack_uint16(),this.unpack_map(r);case 223:return r=this.unpack_uint32(),this.unpack_map(r)}}unpack_uint8(){const n=this.dataView[this.index]&255;return this.index++,n}unpack_uint16(){const n=this.read(2),r=(n[0]&255)*256+(n[1]&255);return this.index+=2,r}unpack_uint32(){const n=this.read(4),r=((n[0]*256+n[1])*256+n[2])*256+n[3];return this.index+=4,r}unpack_uint64(){const n=this.read(8),r=((((((n[0]*256+n[1])*256+n[2])*256+n[3])*256+n[4])*256+n[5])*256+n[6])*256+n[7];return this.index+=8,r}unpack_int8(){const n=this.unpack_uint8();return n<128?n:n-256}unpack_int16(){const n=this.unpack_uint16();return n<32768?n:n-65536}unpack_int32(){const n=this.unpack_uint32();return n<2**31?n:n-2**32}unpack_int64(){const n=this.unpack_uint64();return n<2**63?n:n-2**64}unpack_raw(n){if(this.length<this.index+n)throw new Error(`BinaryPackFailure: index is out of range ${this.index} ${n} ${this.length}`);const r=this.dataBuffer.slice(this.index,this.index+n);return this.index+=n,r}unpack_string(n){const r=this.read(n);let i=0,o="",a,s;for(;i<n;)a=r[i],a<160?(s=a,i++):(a^192)<32?(s=(a&31)<<6|r[i+1]&63,i+=2):(a^224)<16?(s=(a&15)<<12|(r[i+1]&63)<<6|r[i+2]&63,i+=3):(s=(a&7)<<18|(r[i+1]&63)<<12|(r[i+2]&63)<<6|r[i+3]&63,i+=4),o+=String.fromCodePoint(s);return this.index+=n,o}unpack_array(n){const r=new Array(n);for(let i=0;i<n;i++)r[i]=this.unpack();return r}unpack_map(n){const r={};for(let i=0;i<n;i++){const o=this.unpack();r[o]=this.unpack()}return r}unpack_float(){const n=this.unpack_uint32(),r=n>>31,i=(n>>23&255)-127,o=n&8388607|8388608;return(r===0?1:-1)*o*2**(i-23)}unpack_double(){const n=this.unpack_uint32(),r=this.unpack_uint32(),i=n>>31,o=(n>>20&2047)-1023,s=(n&1048575|1048576)*2**(o-20)+r*2**(o-52);return(i===0?1:-1)*s}read(n){const r=this.index;if(r+n<=this.length)return this.dataView.subarray(r,r+n);throw new Error("BinaryPackFailure: read index out of range")}}class $0r{getBuffer(){return this._bufferBuilder.toArrayBuffer()}pack(n){if(typeof n=="string")this.pack_string(n);else if(typeof n=="number")Math.floor(n)===n?this.pack_integer(n):this.pack_double(n);else if(typeof n=="boolean")n===!0?this._bufferBuilder.append(195):n===!1&&this._bufferBuilder.append(194);else if(n===void 0)this._bufferBuilder.append(192);else if(typeof n=="object")if(n===null)this._bufferBuilder.append(192);else{const r=n.constructor;if(n instanceof Array){const i=this.pack_array(n);if(i instanceof Promise)return i.then(()=>this._bufferBuilder.flush())}else if(n instanceof ArrayBuffer)this.pack_bin(new Uint8Array(n));else if("BYTES_PER_ELEMENT"in n){const i=n;this.pack_bin(new Uint8Array(i.buffer,i.byteOffset,i.byteLength))}else if(n instanceof Date)this.pack_string(n.toString());else{if(n instanceof Blob)return n.arrayBuffer().then(i=>{this.pack_bin(new Uint8Array(i)),this._bufferBuilder.flush()});if(r==Object||r.toString().startsWith("class")){const i=this.pack_object(n);if(i instanceof Promise)return i.then(()=>this._bufferBuilder.flush())}else throw new Error(`Type "${r.toString()}" not yet supported`)}}else throw new Error(`Type "${typeof n}" not yet supported`);this._bufferBuilder.flush()}pack_bin(n){const r=n.length;if(r<=15)this.pack_uint8(160+r);else if(r<=65535)this._bufferBuilder.append(218),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(219),this.pack_uint32(r);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(n)}pack_string(n){const r=this._textEncoder.encode(n),i=r.length;if(i<=15)this.pack_uint8(176+i);else if(i<=65535)this._bufferBuilder.append(216),this.pack_uint16(i);else if(i<=4294967295)this._bufferBuilder.append(217),this.pack_uint32(i);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(r)}pack_array(n){const r=n.length;if(r<=15)this.pack_uint8(144+r);else if(r<=65535)this._bufferBuilder.append(220),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(221),this.pack_uint32(r);else throw new Error("Invalid length");const i=o=>{if(o<r){const a=this.pack(n[o]);return a instanceof Promise?a.then(()=>i(o+1)):i(o+1)}};return i(0)}pack_integer(n){if(n>=-32&&n<=127)this._bufferBuilder.append(n&255);else if(n>=0&&n<=255)this._bufferBuilder.append(204),this.pack_uint8(n);else if(n>=-128&&n<=127)this._bufferBuilder.append(208),this.pack_int8(n);else if(n>=0&&n<=65535)this._bufferBuilder.append(205),this.pack_uint16(n);else if(n>=-32768&&n<=32767)this._bufferBuilder.append(209),this.pack_int16(n);else if(n>=0&&n<=4294967295)this._bufferBuilder.append(206),this.pack_uint32(n);else if(n>=-2147483648&&n<=2147483647)this._bufferBuilder.append(210),this.pack_int32(n);else if(n>=-9223372036854776e3&&n<=9223372036854776e3)this._bufferBuilder.append(211),this.pack_int64(n);else if(n>=0&&n<=18446744073709552e3)this._bufferBuilder.append(207),this.pack_uint64(n);else throw new Error("Invalid integer")}pack_double(n){let r=0;n<0&&(r=1,n=-n);const i=Math.floor(Math.log(n)/Math.LN2),o=n/2**i-1,a=Math.floor(o*2**52),s=2**32,l=r<<31|i+1023<<20|a/s&1048575,c=a%s;this._bufferBuilder.append(203),this.pack_int32(l),this.pack_int32(c)}pack_object(n){const r=Object.keys(n),i=r.length;if(i<=15)this.pack_uint8(128+i);else if(i<=65535)this._bufferBuilder.append(222),this.pack_uint16(i);else if(i<=4294967295)this._bufferBuilder.append(223),this.pack_uint32(i);else throw new Error("Invalid length");const o=a=>{if(a<r.length){const s=r[a];if(n.hasOwnProperty(s)){this.pack(s);const l=this.pack(n[s]);if(l instanceof Promise)return l.then(()=>o(a+1))}return o(a+1)}};return o(0)}pack_uint8(n){this._bufferBuilder.append(n)}pack_uint16(n){this._bufferBuilder.append(n>>8),this._bufferBuilder.append(n&255)}pack_uint32(n){const r=n&4294967295;this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}pack_uint64(n){const r=n/4294967296,i=n%2**32;this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255),this._bufferBuilder.append((i&4278190080)>>>24),this._bufferBuilder.append((i&16711680)>>>16),this._bufferBuilder.append((i&65280)>>>8),this._bufferBuilder.append(i&255)}pack_int8(n){this._bufferBuilder.append(n&255)}pack_int16(n){this._bufferBuilder.append((n&65280)>>8),this._bufferBuilder.append(n&255)}pack_int32(n){this._bufferBuilder.append(n>>>24&255),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255)}pack_int64(n){const r=Math.floor(n/4294967296),i=n%2**32;this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255),this._bufferBuilder.append((i&4278190080)>>>24),this._bufferBuilder.append((i&16711680)>>>16),this._bufferBuilder.append((i&65280)>>>8),this._bufferBuilder.append(i&255)}constructor(){this._bufferBuilder=new D0r,this._textEncoder=new TextEncoder}}let nut=!0,rut=!0;function dF(e,n,r){const i=e.match(n);return i&&i.length>=r&&parseInt(i[r],10)}function Hw(e,n,r){if(!e.RTCPeerConnection)return;const i=e.RTCPeerConnection.prototype,o=i.addEventListener;i.addEventListener=function(s,l){if(s!==n)return o.apply(this,arguments);const c=u=>{const d=r(u);d&&(l.handleEvent?l.handleEvent(d):l(d))};return this._eventMap=this._eventMap||{},this._eventMap[n]||(this._eventMap[n]=new Map),this._eventMap[n].set(l,c),o.apply(this,[s,c])};const a=i.removeEventListener;i.removeEventListener=function(s,l){if(s!==n||!this._eventMap||!this._eventMap[n])return a.apply(this,arguments);if(!this._eventMap[n].has(l))return a.apply(this,arguments);const c=this._eventMap[n].get(l);return this._eventMap[n].delete(l),this._eventMap[n].size===0&&delete this._eventMap[n],Object.keys(this._eventMap).length===0&&delete this._eventMap,a.apply(this,[s,c])},Object.defineProperty(i,"on"+n,{get(){return this["_on"+n]},set(s){this["_on"+n]&&(this.removeEventListener(n,this["_on"+n]),delete this["_on"+n]),s&&this.addEventListener(n,this["_on"+n]=s)},enumerable:!0,configurable:!0})}function F0r(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(nut=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function B0r(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(rut=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function iut(){if(typeof window=="object"){if(nut)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function sye(e,n){rut&&console.warn(e+" is deprecated, please use "+n+" instead.")}function j0r(e){const n={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return n.browser="Not a browser.",n;const{navigator:r}=e;if(r.userAgentData&&r.userAgentData.brands){const i=r.userAgentData.brands.find(o=>o.brand==="Chromium");if(i)return{browser:"chrome",version:parseInt(i.version,10)}}if(r.mozGetUserMedia)n.browser="firefox",n.version=dF(r.userAgent,/Firefox\/(\d+)\./,1);else if(r.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)n.browser="chrome",n.version=dF(r.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(e.RTCPeerConnection&&r.userAgent.match(/AppleWebKit\/(\d+)\./))n.browser="safari",n.version=dF(r.userAgent,/AppleWebKit\/(\d+)\./,1),n.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype;else return n.browser="Not a supported browser.",n;return n}function O3e(e){return Object.prototype.toString.call(e)==="[object Object]"}function out(e){return O3e(e)?Object.keys(e).reduce(function(n,r){const i=O3e(e[r]),o=i?out(e[r]):e[r],a=i&&!Object.keys(o).length;return o===void 0||a?n:Object.assign(n,{[r]:o})},{}):e}function Jse(e,n,r){!n||r.has(n.id)||(r.set(n.id,n),Object.keys(n).forEach(i=>{i.endsWith("Id")?Jse(e,e.get(n[i]),r):i.endsWith("Ids")&&n[i].forEach(o=>{Jse(e,e.get(o),r)})}))}function R3e(e,n,r){const i=r?"outbound-rtp":"inbound-rtp",o=new Map;if(n===null)return o;const a=[];return e.forEach(s=>{s.type==="track"&&s.trackIdentifier===n.id&&a.push(s)}),a.forEach(s=>{e.forEach(l=>{l.type===i&&l.trackId===s.id&&Jse(e,l,o)})}),o}const I3e=iut;function aut(e,n){const r=e&&e.navigator;if(!r.mediaDevices)return;const i=function(l){if(typeof l!="object"||l.mandatory||l.optional)return l;const c={};return Object.keys(l).forEach(u=>{if(u==="require"||u==="advanced"||u==="mediaSource")return;const d=typeof l[u]=="object"?l[u]:{ideal:l[u]};d.exact!==void 0&&typeof d.exact=="number"&&(d.min=d.max=d.exact);const f=function(p,h){return p?p+h.charAt(0).toUpperCase()+h.slice(1):h==="deviceId"?"sourceId":h};if(d.ideal!==void 0){c.optional=c.optional||[];let p={};typeof d.ideal=="number"?(p[f("min",u)]=d.ideal,c.optional.push(p),p={},p[f("max",u)]=d.ideal,c.optional.push(p)):(p[f("",u)]=d.ideal,c.optional.push(p))}d.exact!==void 0&&typeof d.exact!="number"?(c.mandatory=c.mandatory||{},c.mandatory[f("",u)]=d.exact):["min","max"].forEach(p=>{d[p]!==void 0&&(c.mandatory=c.mandatory||{},c.mandatory[f(p,u)]=d[p])})}),l.advanced&&(c.optional=(c.optional||[]).concat(l.advanced)),c},o=function(l,c){if(n.version>=61)return c(l);if(l=JSON.parse(JSON.stringify(l)),l&&typeof l.audio=="object"){const u=function(d,f,p){f in d&&!(p in d)&&(d[p]=d[f],delete d[f])};l=JSON.parse(JSON.stringify(l)),u(l.audio,"autoGainControl","googAutoGainControl"),u(l.audio,"noiseSuppression","googNoiseSuppression"),l.audio=i(l.audio)}if(l&&typeof l.video=="object"){let u=l.video.facingMode;u=u&&(typeof u=="object"?u:{ideal:u});const d=n.version<66;if(u&&(u.exact==="user"||u.exact==="environment"||u.ideal==="user"||u.ideal==="environment")&&!(r.mediaDevices.getSupportedConstraints&&r.mediaDevices.getSupportedConstraints().facingMode&&!d)){delete l.video.facingMode;let f;if(u.exact==="environment"||u.ideal==="environment"?f=["back","rear"]:(u.exact==="user"||u.ideal==="user")&&(f=["front"]),f)return r.mediaDevices.enumerateDevices().then(p=>{p=p.filter(g=>g.kind==="videoinput");let h=p.find(g=>f.some(v=>g.label.toLowerCase().includes(v)));return!h&&p.length&&f.includes("back")&&(h=p[p.length-1]),h&&(l.video.deviceId=u.exact?{exact:h.deviceId}:{ideal:h.deviceId}),l.video=i(l.video),I3e("chrome: "+JSON.stringify(l)),c(l)})}l.video=i(l.video)}return I3e("chrome: "+JSON.stringify(l)),c(l)},a=function(l){return n.version>=64?l:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[l.name]||l.name,message:l.message,constraint:l.constraint||l.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},s=function(l,c,u){o(l,d=>{r.webkitGetUserMedia(d,c,f=>{u&&u(a(f))})})};if(r.getUserMedia=s.bind(r),r.mediaDevices.getUserMedia){const l=r.mediaDevices.getUserMedia.bind(r.mediaDevices);r.mediaDevices.getUserMedia=function(c){return o(c,u=>l(u).then(d=>{if(u.audio&&!d.getAudioTracks().length||u.video&&!d.getVideoTracks().length)throw d.getTracks().forEach(f=>{f.stop()}),new DOMException("","NotFoundError");return d},d=>Promise.reject(a(d))))}}}function sut(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function lut(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(r){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=r)},enumerable:!0,configurable:!0});const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=i=>{i.stream.addEventListener("addtrack",o=>{let a;e.RTCPeerConnection.prototype.getReceivers?a=this.getReceivers().find(l=>l.track&&l.track.id===o.track.id):a={track:o.track};const s=new Event("track");s.track=o.track,s.receiver=a,s.transceiver={receiver:a},s.streams=[i.stream],this.dispatchEvent(s)}),i.stream.getTracks().forEach(o=>{let a;e.RTCPeerConnection.prototype.getReceivers?a=this.getReceivers().find(l=>l.track&&l.track.id===o.id):a={track:o};const s=new Event("track");s.track=o,s.receiver=a,s.transceiver={receiver:a},s.streams=[i.stream],this.dispatchEvent(s)})},this.addEventListener("addstream",this._ontrackpoly)),n.apply(this,arguments)}}else Hw(e,"track",n=>(n.transceiver||Object.defineProperty(n,"transceiver",{value:{receiver:n.receiver}}),n))}function cut(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const n=function(o,a){return{track:a,get dtmf(){return this._dtmf===void 0&&(a.kind==="audio"?this._dtmf=o.createDTMFSender(a):this._dtmf=null),this._dtmf},_pc:o}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const o=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(l,c){let u=o.apply(this,arguments);return u||(u=n(this,l),this._senders.push(u)),u};const a=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(l){a.apply(this,arguments);const c=this._senders.indexOf(l);c!==-1&&this._senders.splice(c,1)}}const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(a){this._senders=this._senders||[],r.apply(this,[a]),a.getTracks().forEach(s=>{this._senders.push(n(this,s))})};const i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(a){this._senders=this._senders||[],i.apply(this,[a]),a.getTracks().forEach(s=>{const l=this._senders.find(c=>c.track===s);l&&this._senders.splice(this._senders.indexOf(l),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 n=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const i=n.apply(this,[]);return i.forEach(o=>o._pc=this),i},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 uut(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const r=e.RTCPeerConnection.prototype.getSenders;r&&(e.RTCPeerConnection.prototype.getSenders=function(){const a=r.apply(this,[]);return a.forEach(s=>s._pc=this),a});const i=e.RTCPeerConnection.prototype.addTrack;i&&(e.RTCPeerConnection.prototype.addTrack=function(){const a=i.apply(this,arguments);return a._pc=this,a}),e.RTCRtpSender.prototype.getStats=function(){const a=this;return this._pc.getStats().then(s=>R3e(s,a.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const r=e.RTCPeerConnection.prototype.getReceivers;r&&(e.RTCPeerConnection.prototype.getReceivers=function(){const o=r.apply(this,[]);return o.forEach(a=>a._pc=this),o}),Hw(e,"track",i=>(i.receiver._pc=i.srcElement,i)),e.RTCRtpReceiver.prototype.getStats=function(){const o=this;return this._pc.getStats().then(a=>R3e(a,o.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;const n=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const i=arguments[0];let o,a,s;return this.getSenders().forEach(l=>{l.track===i&&(o?s=!0:o=l)}),this.getReceivers().forEach(l=>(l.track===i&&(a?s=!0:a=l),l.track===i)),s||o&&a?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):o?o.getStats():a?a.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return n.apply(this,arguments)}}function dut(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(s=>this._shimmedLocalStreams[s][0])};const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(s,l){if(!l)return n.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const c=n.apply(this,arguments);return this._shimmedLocalStreams[l.id]?this._shimmedLocalStreams[l.id].indexOf(c)===-1&&this._shimmedLocalStreams[l.id].push(c):this._shimmedLocalStreams[l.id]=[l,c],c};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(s){this._shimmedLocalStreams=this._shimmedLocalStreams||{},s.getTracks().forEach(u=>{if(this.getSenders().find(f=>f.track===u))throw new DOMException("Track already exists.","InvalidAccessError")});const l=this.getSenders();r.apply(this,arguments);const c=this.getSenders().filter(u=>l.indexOf(u)===-1);this._shimmedLocalStreams[s.id]=[s].concat(c)};const i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(s){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[s.id],i.apply(this,arguments)};const o=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(s){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},s&&Object.keys(this._shimmedLocalStreams).forEach(l=>{const c=this._shimmedLocalStreams[l].indexOf(s);c!==-1&&this._shimmedLocalStreams[l].splice(c,1),this._shimmedLocalStreams[l].length===1&&delete this._shimmedLocalStreams[l]}),o.apply(this,arguments)}}function fut(e,n){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&n.version>=65)return dut(e);const r=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const d=r.apply(this);return this._reverseStreams=this._reverseStreams||{},d.map(f=>this._reverseStreams[f.id])};const i=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(d){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},d.getTracks().forEach(f=>{if(this.getSenders().find(h=>h.track===f))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[d.id]){const f=new e.MediaStream(d.getTracks());this._streams[d.id]=f,this._reverseStreams[f.id]=d,d=f}i.apply(this,[d])};const o=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(d){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},o.apply(this,[this._streams[d.id]||d]),delete this._reverseStreams[this._streams[d.id]?this._streams[d.id].id:d.id],delete this._streams[d.id]},e.RTCPeerConnection.prototype.addTrack=function(d,f){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const p=[].slice.call(arguments,1);if(p.length!==1||!p[0].getTracks().find(v=>v===d))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(v=>v.track===d))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const g=this._streams[f.id];if(g)g.addTrack(d),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const v=new e.MediaStream([d]);this._streams[f.id]=v,this._reverseStreams[v.id]=f,this.addStream(v)}return this.getSenders().find(v=>v.track===d)};function a(u,d){let f=d.sdp;return Object.keys(u._reverseStreams||[]).forEach(p=>{const h=u._reverseStreams[p],g=u._streams[h.id];f=f.replace(new RegExp(g.id,"g"),h.id)}),new RTCSessionDescription({type:d.type,sdp:f})}function s(u,d){let f=d.sdp;return Object.keys(u._reverseStreams||[]).forEach(p=>{const h=u._reverseStreams[p],g=u._streams[h.id];f=f.replace(new RegExp(h.id,"g"),g.id)}),new RTCSessionDescription({type:d.type,sdp:f})}["createOffer","createAnswer"].forEach(function(u){const d=e.RTCPeerConnection.prototype[u],f={[u](){const p=arguments;return arguments.length&&typeof arguments[0]=="function"?d.apply(this,[g=>{const v=a(this,g);p[0].apply(null,[v])},g=>{p[1]&&p[1].apply(null,g)},arguments[2]]):d.apply(this,arguments).then(g=>a(this,g))}};e.RTCPeerConnection.prototype[u]=f[u]});const l=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?l.apply(this,arguments):(arguments[0]=s(this,arguments[0]),l.apply(this,arguments))};const c=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const u=c.get.apply(this);return u.type===""?u:a(this,u)}}),e.RTCPeerConnection.prototype.removeTrack=function(d){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!d._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(d._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let p;Object.keys(this._streams).forEach(h=>{this._streams[h].getTracks().find(v=>d.track===v)&&(p=this._streams[h])}),p&&(p.getTracks().length===1?this.removeStream(this._reverseStreams[p.id]):p.removeTrack(d.track),this.dispatchEvent(new Event("negotiationneeded")))}}function ele(e,n){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&n.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(r){const i=e.RTCPeerConnection.prototype[r],o={[r](){return arguments[0]=new(r==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),i.apply(this,arguments)}};e.RTCPeerConnection.prototype[r]=o[r]})}function put(e,n){Hw(e,"negotiationneeded",r=>{const i=r.target;if(!((n.version<72||i.getConfiguration&&i.getConfiguration().sdpSemantics==="plan-b")&&i.signalingState!=="stable"))return r})}const N3e=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:put,shimAddTrackRemoveTrack:fut,shimAddTrackRemoveTrackWithNative:dut,shimGetSendersWithDtmf:cut,shimGetUserMedia:aut,shimMediaStream:sut,shimOnTrack:lut,shimPeerConnection:ele,shimSenderReceiverGetStats:uut},Symbol.toStringTag,{value:"Module"}));function hut(e,n){const r=e&&e.navigator,i=e&&e.MediaStreamTrack;if(r.getUserMedia=function(o,a,s){sye("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),r.mediaDevices.getUserMedia(o).then(a,s)},!(n.version>55&&"autoGainControl"in r.mediaDevices.getSupportedConstraints())){const o=function(s,l,c){l in s&&!(c in s)&&(s[c]=s[l],delete s[l])},a=r.mediaDevices.getUserMedia.bind(r.mediaDevices);if(r.mediaDevices.getUserMedia=function(s){return typeof s=="object"&&typeof s.audio=="object"&&(s=JSON.parse(JSON.stringify(s)),o(s.audio,"autoGainControl","mozAutoGainControl"),o(s.audio,"noiseSuppression","mozNoiseSuppression")),a(s)},i&&i.prototype.getSettings){const s=i.prototype.getSettings;i.prototype.getSettings=function(){const l=s.apply(this,arguments);return o(l,"mozAutoGainControl","autoGainControl"),o(l,"mozNoiseSuppression","noiseSuppression"),l}}if(i&&i.prototype.applyConstraints){const s=i.prototype.applyConstraints;i.prototype.applyConstraints=function(l){return this.kind==="audio"&&typeof l=="object"&&(l=JSON.parse(JSON.stringify(l)),o(l,"autoGainControl","mozAutoGainControl"),o(l,"noiseSuppression","mozNoiseSuppression")),s.apply(this,[l])}}}}function U0r(e,n){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(i){if(!(i&&i.video)){const o=new DOMException("getDisplayMedia without video constraints is undefined");return o.name="NotFoundError",o.code=8,Promise.reject(o)}return i.video===!0?i.video={mediaSource:n}:i.video.mediaSource=n,e.navigator.mediaDevices.getUserMedia(i)})}function gut(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 tle(e,n){if(typeof e!="object"||!(e.RTCPeerConnection||e.mozRTCPeerConnection))return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),n.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(o){const a=e.RTCPeerConnection.prototype[o],s={[o](){return arguments[0]=new(o==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),a.apply(this,arguments)}};e.RTCPeerConnection.prototype[o]=s[o]});const r={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},i=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[a,s,l]=arguments;return i.apply(this,[a||null]).then(c=>{if(n.version<53&&!s)try{c.forEach(u=>{u.type=r[u.type]||u.type})}catch(u){if(u.name!=="TypeError")throw u;c.forEach((d,f)=>{c.set(f,Object.assign({},d,{type:r[d.type]||d.type}))})}return c}).then(s,l)}}function mut(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;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(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function vut(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;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}),Hw(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function yut(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(r){sye("removeStream","removeTrack"),this.getSenders().forEach(i=>{i.track&&r.getTracks().includes(i.track)&&this.removeTrack(i)})})}function _ut(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function but(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const n=e.RTCPeerConnection.prototype.addTransceiver;n&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let i=arguments[1]&&arguments[1].sendEncodings;i===void 0&&(i=[]),i=[...i];const o=i.length>0;o&&i.forEach(s=>{if("rid"in s&&!/^[a-z0-9]{0,16}$/i.test(s.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in s&&!(parseFloat(s.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in s&&!(parseFloat(s.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const a=n.apply(this,arguments);if(o){const{sender:s}=a,l=s.getParameters();(!("encodings"in l)||l.encodings.length===1&&Object.keys(l.encodings[0]).length===0)&&(l.encodings=i,s.sendEncodings=i,this.setParametersPromises.push(s.setParameters(l).then(()=>{delete s.sendEncodings}).catch(()=>{delete s.sendEncodings})))}return a})}function Sut(e){if(!(typeof e=="object"&&e.RTCRtpSender))return;const n=e.RTCRtpSender.prototype.getParameters;n&&(e.RTCRtpSender.prototype.getParameters=function(){const i=n.apply(this,arguments);return"encodings"in i||(i.encodings=[].concat(this.sendEncodings||[{}])),i})}function Eut(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const n=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>n.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):n.apply(this,arguments)}}function Cut(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const n=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>n.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):n.apply(this,arguments)}}const M3e=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:but,shimCreateAnswer:Cut,shimCreateOffer:Eut,shimGetDisplayMedia:U0r,shimGetParameters:Sut,shimGetUserMedia:hut,shimOnTrack:gut,shimPeerConnection:tle,shimRTCDataChannel:_ut,shimReceiverGetStats:vut,shimRemoveStream:yut,shimSenderGetStats:mut},Symbol.toStringTag,{value:"Module"}));function wut(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 n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(i){this._localStreams||(this._localStreams=[]),this._localStreams.includes(i)||this._localStreams.push(i),i.getAudioTracks().forEach(o=>n.call(this,o,i)),i.getVideoTracks().forEach(o=>n.call(this,o,i))},e.RTCPeerConnection.prototype.addTrack=function(i,...o){return o&&o.forEach(a=>{this._localStreams?this._localStreams.includes(a)||this._localStreams.push(a):this._localStreams=[a]}),n.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(r){this._localStreams||(this._localStreams=[]);const i=this._localStreams.indexOf(r);if(i===-1)return;this._localStreams.splice(i,1);const o=r.getTracks();this.getSenders().forEach(a=>{o.includes(a.track)&&this.removeTrack(a)})})}}function xut(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(r){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=r),this.addEventListener("track",this._onaddstreampoly=i=>{i.streams.forEach(o=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(o))return;this._remoteStreams.push(o);const a=new Event("addstream");a.stream=o,this.dispatchEvent(a)})})}});const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const i=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(o){o.streams.forEach(a=>{if(i._remoteStreams||(i._remoteStreams=[]),i._remoteStreams.indexOf(a)>=0)return;i._remoteStreams.push(a);const s=new Event("addstream");s.stream=a,i.dispatchEvent(s)})}),n.apply(i,arguments)}}}function Tut(e){if(typeof e!="object"||!e.RTCPeerConnection)return;const n=e.RTCPeerConnection.prototype,r=n.createOffer,i=n.createAnswer,o=n.setLocalDescription,a=n.setRemoteDescription,s=n.addIceCandidate;n.createOffer=function(u,d){const f=arguments.length>=2?arguments[2]:arguments[0],p=r.apply(this,[f]);return d?(p.then(u,d),Promise.resolve()):p},n.createAnswer=function(u,d){const f=arguments.length>=2?arguments[2]:arguments[0],p=i.apply(this,[f]);return d?(p.then(u,d),Promise.resolve()):p};let l=function(c,u,d){const f=o.apply(this,[c]);return d?(f.then(u,d),Promise.resolve()):f};n.setLocalDescription=l,l=function(c,u,d){const f=a.apply(this,[c]);return d?(f.then(u,d),Promise.resolve()):f},n.setRemoteDescription=l,l=function(c,u,d){const f=s.apply(this,[c]);return d?(f.then(u,d),Promise.resolve()):f},n.addIceCandidate=l}function Out(e){const n=e&&e.navigator;if(n.mediaDevices&&n.mediaDevices.getUserMedia){const r=n.mediaDevices,i=r.getUserMedia.bind(r);n.mediaDevices.getUserMedia=o=>i(Rut(o))}!n.getUserMedia&&n.mediaDevices&&n.mediaDevices.getUserMedia&&(n.getUserMedia=(function(i,o,a){n.mediaDevices.getUserMedia(i).then(o,a)}).bind(n))}function Rut(e){return e&&e.video!==void 0?Object.assign({},e,{video:out(e.video)}):e}function Iut(e){if(!e.RTCPeerConnection)return;const n=e.RTCPeerConnection;e.RTCPeerConnection=function(i,o){if(i&&i.iceServers){const a=[];for(let s=0;s<i.iceServers.length;s++){let l=i.iceServers[s];l.urls===void 0&&l.url?(sye("RTCIceServer.url","RTCIceServer.urls"),l=JSON.parse(JSON.stringify(l)),l.urls=l.url,delete l.url,a.push(l)):a.push(i.iceServers[s])}i.iceServers=a}return new n(i,o)},e.RTCPeerConnection.prototype=n.prototype,"generateCertificate"in n&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get(){return n.generateCertificate}})}function Nut(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 Mut(e){const n=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(i){if(i){typeof i.offerToReceiveAudio<"u"&&(i.offerToReceiveAudio=!!i.offerToReceiveAudio);const o=this.getTransceivers().find(s=>s.receiver.track.kind==="audio");i.offerToReceiveAudio===!1&&o?o.direction==="sendrecv"?o.setDirection?o.setDirection("sendonly"):o.direction="sendonly":o.direction==="recvonly"&&(o.setDirection?o.setDirection("inactive"):o.direction="inactive"):i.offerToReceiveAudio===!0&&!o&&this.addTransceiver("audio",{direction:"recvonly"}),typeof i.offerToReceiveVideo<"u"&&(i.offerToReceiveVideo=!!i.offerToReceiveVideo);const a=this.getTransceivers().find(s=>s.receiver.track.kind==="video");i.offerToReceiveVideo===!1&&a?a.direction==="sendrecv"?a.setDirection?a.setDirection("sendonly"):a.direction="sendonly":a.direction==="recvonly"&&(a.setDirection?a.setDirection("inactive"):a.direction="inactive"):i.offerToReceiveVideo===!0&&!a&&this.addTransceiver("video",{direction:"recvonly"})}return n.apply(this,arguments)}}function Put(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}const P3e=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:Put,shimCallbacksAPI:Tut,shimConstraints:Rut,shimCreateOfferLegacy:Mut,shimGetUserMedia:Out,shimLocalStreamsAPI:wut,shimRTCIceServerUrls:Iut,shimRemoteStreamsAPI:xut,shimTrackEventTransceiver:Nut},Symbol.toStringTag,{value:"Module"}));var Aut={exports:{}};(function(e){const n={};n.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},n.localCName=n.generateIdentifier(),n.splitLines=function(r){return r.trim().split(`
`).map(i=>i.trim())},n.splitSections=function(r){return r.split(`
m=`).map((o,a)=>(a>0?"m="+o:o).trim()+`\r
`)},n.getDescription=function(r){const i=n.splitSections(r);return i&&i[0]},n.getMediaSections=function(r){const i=n.splitSections(r);return i.shift(),i},n.matchPrefix=function(r,i){return n.splitLines(r).filter(o=>o.indexOf(i)===0)},n.parseCandidate=function(r){let i;r.indexOf("a=candidate:")===0?i=r.substring(12).split(" "):i=r.substring(10).split(" ");const o={foundation:i[0],component:{1:"rtp",2:"rtcp"}[i[1]]||i[1],protocol:i[2].toLowerCase(),priority:parseInt(i[3],10),ip:i[4],address:i[4],port:parseInt(i[5],10),type:i[7]};for(let a=8;a<i.length;a+=2)switch(i[a]){case"raddr":o.relatedAddress=i[a+1];break;case"rport":o.relatedPort=parseInt(i[a+1],10);break;case"tcptype":o.tcpType=i[a+1];break;case"ufrag":o.ufrag=i[a+1],o.usernameFragment=i[a+1];break;default:o[i[a]]===void 0&&(o[i[a]]=i[a+1]);break}return o},n.writeCandidate=function(r){const i=[];i.push(r.foundation);const o=r.component;o==="rtp"?i.push(1):o==="rtcp"?i.push(2):i.push(o),i.push(r.protocol.toUpperCase()),i.push(r.priority),i.push(r.address||r.ip),i.push(r.port);const a=r.type;return i.push("typ"),i.push(a),a!=="host"&&r.relatedAddress&&r.relatedPort&&(i.push("raddr"),i.push(r.relatedAddress),i.push("rport"),i.push(r.relatedPort)),r.tcpType&&r.protocol.toLowerCase()==="tcp"&&(i.push("tcptype"),i.push(r.tcpType)),(r.usernameFragment||r.ufrag)&&(i.push("ufrag"),i.push(r.usernameFragment||r.ufrag)),"candidate:"+i.join(" ")},n.parseIceOptions=function(r){return r.substring(14).split(" ")},n.parseRtpMap=function(r){let i=r.substring(9).split(" ");const o={payloadType:parseInt(i.shift(),10)};return i=i[0].split("/"),o.name=i[0],o.clockRate=parseInt(i[1],10),o.channels=i.length===3?parseInt(i[2],10):1,o.numChannels=o.channels,o},n.writeRtpMap=function(r){let i=r.payloadType;r.preferredPayloadType!==void 0&&(i=r.preferredPayloadType);const o=r.channels||r.numChannels||1;return"a=rtpmap:"+i+" "+r.name+"/"+r.clockRate+(o!==1?"/"+o:"")+`\r
`},n.parseExtmap=function(r){const i=r.substring(9).split(" ");return{id:parseInt(i[0],10),direction:i[0].indexOf("/")>0?i[0].split("/")[1]:"sendrecv",uri:i[1],attributes:i.slice(2).join(" ")}},n.writeExtmap=function(r){return"a=extmap:"+(r.id||r.preferredId)+(r.direction&&r.direction!=="sendrecv"?"/"+r.direction:"")+" "+r.uri+(r.attributes?" "+r.attributes:"")+`\r
`},n.parseFmtp=function(r){const i={};let o;const a=r.substring(r.indexOf(" ")+1).split(";");for(let s=0;s<a.length;s++)o=a[s].trim().split("="),i[o[0].trim()]=o[1];return i},n.writeFmtp=function(r){let i="",o=r.payloadType;if(r.preferredPayloadType!==void 0&&(o=r.preferredPayloadType),r.parameters&&Object.keys(r.parameters).length){const a=[];Object.keys(r.parameters).forEach(s=>{r.parameters[s]!==void 0?a.push(s+"="+r.parameters[s]):a.push(s)}),i+="a=fmtp:"+o+" "+a.join(";")+`\r
`}return i},n.parseRtcpFb=function(r){const i=r.substring(r.indexOf(" ")+1).split(" ");return{type:i.shift(),parameter:i.join(" ")}},n.writeRtcpFb=function(r){let i="",o=r.payloadType;return r.preferredPayloadType!==void 0&&(o=r.preferredPayloadType),r.rtcpFeedback&&r.rtcpFeedback.length&&r.rtcpFeedback.forEach(a=>{i+="a=rtcp-fb:"+o+" "+a.type+(a.parameter&&a.parameter.length?" "+a.parameter:"")+`\r
`}),i},n.parseSsrcMedia=function(r){const i=r.indexOf(" "),o={ssrc:parseInt(r.substring(7,i),10)},a=r.indexOf(":",i);return a>-1?(o.attribute=r.substring(i+1,a),o.value=r.substring(a+1)):o.attribute=r.substring(i+1),o},n.parseSsrcGroup=function(r){const i=r.substring(13).split(" ");return{semantics:i.shift(),ssrcs:i.map(o=>parseInt(o,10))}},n.getMid=function(r){const i=n.matchPrefix(r,"a=mid:")[0];if(i)return i.substring(6)},n.parseFingerprint=function(r){const i=r.substring(14).split(" ");return{algorithm:i[0].toLowerCase(),value:i[1].toUpperCase()}},n.getDtlsParameters=function(r,i){return{role:"auto",fingerprints:n.matchPrefix(r+i,"a=fingerprint:").map(n.parseFingerprint)}},n.writeDtlsParameters=function(r,i){let o="a=setup:"+i+`\r
`;return r.fingerprints.forEach(a=>{o+="a=fingerprint:"+a.algorithm+" "+a.value+`\r
`}),o},n.parseCryptoLine=function(r){const i=r.substring(9).split(" ");return{tag:parseInt(i[0],10),cryptoSuite:i[1],keyParams:i[2],sessionParams:i.slice(3)}},n.writeCryptoLine=function(r){return"a=crypto:"+r.tag+" "+r.cryptoSuite+" "+(typeof r.keyParams=="object"?n.writeCryptoKeyParams(r.keyParams):r.keyParams)+(r.sessionParams?" "+r.sessionParams.join(" "):"")+`\r
`},n.parseCryptoKeyParams=function(r){if(r.indexOf("inline:")!==0)return null;const i=r.substring(7).split("|");return{keyMethod:"inline",keySalt:i[0],lifeTime:i[1],mkiValue:i[2]?i[2].split(":")[0]:void 0,mkiLength:i[2]?i[2].split(":")[1]:void 0}},n.writeCryptoKeyParams=function(r){return r.keyMethod+":"+r.keySalt+(r.lifeTime?"|"+r.lifeTime:"")+(r.mkiValue&&r.mkiLength?"|"+r.mkiValue+":"+r.mkiLength:"")},n.getCryptoParameters=function(r,i){return n.matchPrefix(r+i,"a=crypto:").map(n.parseCryptoLine)},n.getIceParameters=function(r,i){const o=n.matchPrefix(r+i,"a=ice-ufrag:")[0],a=n.matchPrefix(r+i,"a=ice-pwd:")[0];return o&&a?{usernameFragment:o.substring(12),password:a.substring(10)}:null},n.writeIceParameters=function(r){let i="a=ice-ufrag:"+r.usernameFragment+`\r
a=ice-pwd:`+r.password+`\r
`;return r.iceLite&&(i+=`a=ice-lite\r
`),i},n.parseRtpParameters=function(r){const i={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},a=n.splitLines(r)[0].split(" ");i.profile=a[2];for(let l=3;l<a.length;l++){const c=a[l],u=n.matchPrefix(r,"a=rtpmap:"+c+" ")[0];if(u){const d=n.parseRtpMap(u),f=n.matchPrefix(r,"a=fmtp:"+c+" ");switch(d.parameters=f.length?n.parseFmtp(f[0]):{},d.rtcpFeedback=n.matchPrefix(r,"a=rtcp-fb:"+c+" ").map(n.parseRtcpFb),i.codecs.push(d),d.name.toUpperCase()){case"RED":case"ULPFEC":i.fecMechanisms.push(d.name.toUpperCase());break}}}n.matchPrefix(r,"a=extmap:").forEach(l=>{i.headerExtensions.push(n.parseExtmap(l))});const s=n.matchPrefix(r,"a=rtcp-fb:* ").map(n.parseRtcpFb);return i.codecs.forEach(l=>{s.forEach(c=>{l.rtcpFeedback.find(d=>d.type===c.type&&d.parameter===c.parameter)||l.rtcpFeedback.push(c)})}),i},n.writeRtpDescription=function(r,i){let o="";o+="m="+r+" ",o+=i.codecs.length>0?"9":"0",o+=" "+(i.profile||"UDP/TLS/RTP/SAVPF")+" ",o+=i.codecs.map(s=>s.preferredPayloadType!==void 0?s.preferredPayloadType:s.payloadType).join(" ")+`\r
`,o+=`c=IN IP4 0.0.0.0\r
`,o+=`a=rtcp:9 IN IP4 0.0.0.0\r
`,i.codecs.forEach(s=>{o+=n.writeRtpMap(s),o+=n.writeFmtp(s),o+=n.writeRtcpFb(s)});let a=0;return i.codecs.forEach(s=>{s.maxptime>a&&(a=s.maxptime)}),a>0&&(o+="a=maxptime:"+a+`\r
`),i.headerExtensions&&i.headerExtensions.forEach(s=>{o+=n.writeExtmap(s)}),o},n.parseRtpEncodingParameters=function(r){const i=[],o=n.parseRtpParameters(r),a=o.fecMechanisms.indexOf("RED")!==-1,s=o.fecMechanisms.indexOf("ULPFEC")!==-1,l=n.matchPrefix(r,"a=ssrc:").map(p=>n.parseSsrcMedia(p)).filter(p=>p.attribute==="cname"),c=l.length>0&&l[0].ssrc;let u;const d=n.matchPrefix(r,"a=ssrc-group:FID").map(p=>p.substring(17).split(" ").map(g=>parseInt(g,10)));d.length>0&&d[0].length>1&&d[0][0]===c&&(u=d[0][1]),o.codecs.forEach(p=>{if(p.name.toUpperCase()==="RTX"&&p.parameters.apt){let h={ssrc:c,codecPayloadType:parseInt(p.parameters.apt,10)};c&&u&&(h.rtx={ssrc:u}),i.push(h),a&&(h=JSON.parse(JSON.stringify(h)),h.fec={ssrc:c,mechanism:s?"red+ulpfec":"red"},i.push(h))}}),i.length===0&&c&&i.push({ssrc:c});let f=n.matchPrefix(r,"b=");return f.length&&(f[0].indexOf("b=TIAS:")===0?f=parseInt(f[0].substring(7),10):f[0].indexOf("b=AS:")===0?f=parseInt(f[0].substring(5),10)*1e3*.95-50*40*8:f=void 0,i.forEach(p=>{p.maxBitrate=f})),i},n.parseRtcpParameters=function(r){const i={},o=n.matchPrefix(r,"a=ssrc:").map(l=>n.parseSsrcMedia(l)).filter(l=>l.attribute==="cname")[0];o&&(i.cname=o.value,i.ssrc=o.ssrc);const a=n.matchPrefix(r,"a=rtcp-rsize");i.reducedSize=a.length>0,i.compound=a.length===0;const s=n.matchPrefix(r,"a=rtcp-mux");return i.mux=s.length>0,i},n.writeRtcpParameters=function(r){let i="";return r.reducedSize&&(i+=`a=rtcp-rsize\r
`),r.mux&&(i+=`a=rtcp-mux\r
`),r.ssrc!==void 0&&r.cname&&(i+="a=ssrc:"+r.ssrc+" cname:"+r.cname+`\r
`),i},n.parseMsid=function(r){let i;const o=n.matchPrefix(r,"a=msid:");if(o.length===1)return i=o[0].substring(7).split(" "),{stream:i[0],track:i[1]};const a=n.matchPrefix(r,"a=ssrc:").map(s=>n.parseSsrcMedia(s)).filter(s=>s.attribute==="msid");if(a.length>0)return i=a[0].value.split(" "),{stream:i[0],track:i[1]}},n.parseSctpDescription=function(r){const i=n.parseMLine(r),o=n.matchPrefix(r,"a=max-message-size:");let a;o.length>0&&(a=parseInt(o[0].substring(19),10)),isNaN(a)&&(a=65536);const s=n.matchPrefix(r,"a=sctp-port:");if(s.length>0)return{port:parseInt(s[0].substring(12),10),protocol:i.fmt,maxMessageSize:a};const l=n.matchPrefix(r,"a=sctpmap:");if(l.length>0){const c=l[0].substring(10).split(" ");return{port:parseInt(c[0],10),protocol:c[1],maxMessageSize:a}}},n.writeSctpDescription=function(r,i){let o=[];return r.protocol!=="DTLS/SCTP"?o=["m="+r.kind+" 9 "+r.protocol+" "+i.protocol+`\r
`,`c=IN IP4 0.0.0.0\r
`,"a=sctp-port:"+i.port+`\r
`]:o=["m="+r.kind+" 9 "+r.protocol+" "+i.port+`\r
`,`c=IN IP4 0.0.0.0\r
`,"a=sctpmap:"+i.port+" "+i.protocol+` 65535\r
`],i.maxMessageSize!==void 0&&o.push("a=max-message-size:"+i.maxMessageSize+`\r
`),o.join("")},n.generateSessionId=function(){return Math.random().toString().substr(2,22)},n.writeSessionBoilerplate=function(r,i,o){let a;const s=i!==void 0?i:2;return r?a=r:a=n.generateSessionId(),`v=0\r
o=`+(o||"thisisadapterortc")+" "+a+" "+s+` IN IP4 127.0.0.1\r
s=-\r
t=0 0\r
`},n.getDirection=function(r,i){const o=n.splitLines(r);for(let a=0;a<o.length;a++)switch(o[a]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return o[a].substring(2)}return i?n.getDirection(i):"sendrecv"},n.getKind=function(r){return n.splitLines(r)[0].split(" ")[0].substring(2)},n.isRejected=function(r){return r.split(" ",2)[1]==="0"},n.parseMLine=function(r){const o=n.splitLines(r)[0].substring(2).split(" ");return{kind:o[0],port:parseInt(o[1],10),protocol:o[2],fmt:o.slice(3).join(" ")}},n.parseOLine=function(r){const o=n.matchPrefix(r,"o=")[0].substring(2).split(" ");return{username:o[0],sessionId:o[1],sessionVersion:parseInt(o[2],10),netType:o[3],addressType:o[4],address:o[5]}},n.isValidSDP=function(r){if(typeof r!="string"||r.length===0)return!1;const i=n.splitLines(r);for(let o=0;o<i.length;o++)if(i[o].length<2||i[o].charAt(1)!=="=")return!1;return!0},e.exports=n})(Aut);var Dut=Aut.exports;const rO=Or(Dut),H0r=o7({__proto__:null,default:rO},[Dut]);function fF(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const n=e.RTCIceCandidate;e.RTCIceCandidate=function(i){if(typeof i=="object"&&i.candidate&&i.candidate.indexOf("a=")===0&&(i=JSON.parse(JSON.stringify(i)),i.candidate=i.candidate.substring(2)),i.candidate&&i.candidate.length){const o=new n(i),a=rO.parseCandidate(i.candidate);for(const s in a)s in o||Object.defineProperty(o,s,{value:a[s]});return o.toJSON=function(){return{candidate:o.candidate,sdpMid:o.sdpMid,sdpMLineIndex:o.sdpMLineIndex,usernameFragment:o.usernameFragment}},o}return new n(i)},e.RTCIceCandidate.prototype=n.prototype,Hw(e,"icecandidate",r=>(r.candidate&&Object.defineProperty(r,"candidate",{value:new e.RTCIceCandidate(r.candidate),writable:"false"}),r))}function nle(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||Hw(e,"icecandidate",n=>{if(n.candidate){const r=rO.parseCandidate(n.candidate.candidate);r.type==="relay"&&(n.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[r.priority>>24])}return n})}function pF(e,n){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 r=function(l){if(!l||!l.sdp)return!1;const c=rO.splitSections(l.sdp);return c.shift(),c.some(u=>{const d=rO.parseMLine(u);return d&&d.kind==="application"&&d.protocol.indexOf("SCTP")!==-1})},i=function(l){const c=l.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(c===null||c.length<2)return-1;const u=parseInt(c[1],10);return u!==u?-1:u},o=function(l){let c=65536;return n.browser==="firefox"&&(n.version<57?l===-1?c=16384:c=2147483637:n.version<60?c=n.version===57?65535:65536:c=2147483637),c},a=function(l,c){let u=65536;n.browser==="firefox"&&n.version===57&&(u=65535);const d=rO.matchPrefix(l.sdp,"a=max-message-size:");return d.length>0?u=parseInt(d[0].substring(19),10):n.browser==="firefox"&&c!==-1&&(u=2147483637),u},s=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,n.browser==="chrome"&&n.version>=76){const{sdpSemantics:c}=this.getConfiguration();c==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(r(arguments[0])){const c=i(arguments[0]),u=o(c),d=a(arguments[0],c);let f;u===0&&d===0?f=Number.POSITIVE_INFINITY:u===0||d===0?f=Math.max(u,d):f=Math.min(u,d);const p={};Object.defineProperty(p,"maxMessageSize",{get(){return f}}),this._sctp=p}return s.apply(this,arguments)}}function hF(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function n(i,o){const a=i.send;i.send=function(){const l=arguments[0],c=l.length||l.size||l.byteLength;if(i.readyState==="open"&&o.sctp&&c>o.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+o.sctp.maxMessageSize+" bytes)");return a.apply(i,arguments)}}const r=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const o=r.apply(this,arguments);return n(o,this),o},Hw(e,"datachannel",i=>(n(i.channel,i.target),i))}function rle(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const n=e.RTCPeerConnection.prototype;Object.defineProperty(n,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(n,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(r){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),r&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=r)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(r=>{const i=n[r];n[r]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=o=>{const a=o.target;if(a._lastConnectionState!==a.connectionState){a._lastConnectionState=a.connectionState;const s=new Event("connectionstatechange",o);a.dispatchEvent(s)}return o},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),i.apply(this,arguments)}})}function ile(e,n){if(!e.RTCPeerConnection||n.browser==="chrome"&&n.version>=71||n.browser==="safari"&&n.version>=605)return;const r=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(o){if(o&&o.sdp&&o.sdp.indexOf(`
a=extmap-allow-mixed`)!==-1){const a=o.sdp.split(`
`).filter(s=>s.trim()!=="a=extmap-allow-mixed").join(`
`);e.RTCSessionDescription&&o instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:o.type,sdp:a}):o.sdp=a}return r.apply(this,arguments)}}function gF(e,n){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const r=e.RTCPeerConnection.prototype.addIceCandidate;!r||r.length===0||(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(n.browser==="chrome"&&n.version<78||n.browser==="firefox"&&n.version<68||n.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():r.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function mF(e,n){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const r=e.RTCPeerConnection.prototype.setLocalDescription;!r||r.length===0||(e.RTCPeerConnection.prototype.setLocalDescription=function(){let o=arguments[0]||{};if(typeof o!="object"||o.type&&o.sdp)return r.apply(this,arguments);if(o={type:o.type,sdp:o.sdp},!o.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":o.type="offer";break;default:o.type="answer";break}return o.sdp||o.type!=="offer"&&o.type!=="answer"?r.apply(this,[o]):(o.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(s=>r.apply(this,[s]))})}const z0r=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:ile,shimAddIceCandidateNullOrEmpty:gF,shimConnectionState:rle,shimMaxMessageSize:pF,shimParameterlessSetLocalDescription:mF,shimRTCIceCandidate:fF,shimRTCIceCandidateRelayProtocol:nle,shimSendThrowTypeError:hF},Symbol.toStringTag,{value:"Module"}));function V0r({window:e}={},n={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const r=iut,i=j0r(e),o={browserDetails:i,commonShim:z0r,extractVersion:dF,disableLog:F0r,disableWarnings:B0r,sdp:H0r};switch(i.browser){case"chrome":if(!N3e||!ele||!n.shimChrome)return r("Chrome shim is not included in this adapter release."),o;if(i.version===null)return r("Chrome shim can not determine version, not shimming."),o;r("adapter.js shimming chrome."),o.browserShim=N3e,gF(e,i),mF(e),aut(e,i),sut(e),ele(e,i),lut(e),fut(e,i),cut(e),uut(e),put(e,i),fF(e),nle(e),rle(e),pF(e,i),hF(e),ile(e,i);break;case"firefox":if(!M3e||!tle||!n.shimFirefox)return r("Firefox shim is not included in this adapter release."),o;r("adapter.js shimming firefox."),o.browserShim=M3e,gF(e,i),mF(e),hut(e,i),tle(e,i),gut(e),yut(e),mut(e),vut(e),_ut(e),but(e),Sut(e),Eut(e),Cut(e),fF(e),rle(e),pF(e,i),hF(e);break;case"safari":if(!P3e||!n.shimSafari)return r("Safari shim is not included in this adapter release."),o;r("adapter.js shimming safari."),o.browserShim=P3e,gF(e,i),mF(e),Iut(e),Mut(e),Tut(e),wut(e),xut(e),Nut(e),Out(e),Put(e),fF(e),nle(e),pF(e,i),hF(e),ile(e,i);break;default:r("Unsupported browser!");break}return o}const A3e=V0r({window:typeof window>"u"?void 0:window});function zw(e,n,r,i){Object.defineProperty(e,n,{get:r,set:i,enumerable:!0,configurable:!0})}class kut{constructor(){this.chunkedMTU=16300,this._dataCount=1,this.chunk=n=>{const r=[],i=n.byteLength,o=Math.ceil(i/this.chunkedMTU);let a=0,s=0;for(;s<i;){const l=Math.min(i,s+this.chunkedMTU),c=n.slice(s,l),u={__peerData:this._dataCount,n:a,data:c,total:o};r.push(u),s=l,a++}return this._dataCount++,r}}}function G0r(e){let n=0;for(const o of e)n+=o.byteLength;const r=new Uint8Array(n);let i=0;for(const o of e)r.set(o,i),i+=o.byteLength;return r}const gee=A3e.default||A3e,WM=new class{isWebRTCSupported(){return typeof RTCPeerConnection<"u"}isBrowserSupported(){const e=this.getBrowser(),n=this.getVersion();return this.supportedBrowsers.includes(e)?e==="chrome"?n>=this.minChromeVersion:e==="firefox"?n>=this.minFirefoxVersion:e==="safari"?!this.isIOS&&n>=this.minSafariVersion:!1:!1}getBrowser(){return gee.browserDetails.browser}getVersion(){return gee.browserDetails.version||0}isUnifiedPlanSupported(){const e=this.getBrowser(),n=gee.browserDetails.version||0;if(e==="chrome"&&n<this.minChromeVersion)return!1;if(e==="firefox"&&n>=this.minFirefoxVersion)return!0;if(!window.RTCRtpTransceiver||!("currentDirection"in RTCRtpTransceiver.prototype))return!1;let r,i=!1;try{r=new RTCPeerConnection,r.addTransceiver("audio"),i=!0}catch{}finally{r&&r.close()}return i}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}},W0r=e=>!e||/^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(e),Lut=()=>Math.random().toString(36).slice(2),D3e={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 Y0r extends kut{noop(){}blobToArrayBuffer(n,r){const i=new FileReader;return i.onload=function(o){o.target&&r(o.target.result)},i.readAsArrayBuffer(n),i}binaryStringToArrayBuffer(n){const r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i)&255;return r.buffer}isSecure(){return location.protocol==="https:"}constructor(...n){super(...n),this.CLOUD_HOST="0.peerjs.com",this.CLOUD_PORT=443,this.chunkedBrowsers={Chrome:1,chrome:1},this.defaultConfig=D3e,this.browser=WM.getBrowser(),this.browserVersion=WM.getVersion(),this.pack=tut,this.unpack=eut,this.supports=function(){const r={browser:WM.isBrowserSupported(),webRTC:WM.isWebRTCSupported(),audioVideo:!1,data:!1,binaryBlob:!1,reliable:!1};if(!r.webRTC)return r;let i;try{i=new RTCPeerConnection(D3e),r.audioVideo=!0;let o;try{o=i.createDataChannel("_PEERJSTEST",{ordered:!0}),r.data=!0,r.reliable=!!o.ordered;try{o.binaryType="blob",r.binaryBlob=!WM.isIOS}catch{}}catch{}finally{o&&o.close()}}catch{}finally{i&&i.close()}return r}(),this.validateId=W0r,this.randomToken=Lut}}const ed=new Y0r,q0r="PeerJS: ";var k3e;(function(e){e[e.Disabled=0]="Disabled",e[e.Errors=1]="Errors",e[e.Warnings=2]="Warnings",e[e.All=3]="All"})(k3e||(k3e={}));class K0r{get logLevel(){return this._logLevel}set logLevel(n){this._logLevel=n}log(...n){this._logLevel>=3&&this._print(3,...n)}warn(...n){this._logLevel>=2&&this._print(2,...n)}error(...n){this._logLevel>=1&&this._print(1,...n)}setLogFunction(n){this._print=n}_print(n,...r){const i=[q0r,...r];for(const o in i)i[o]instanceof Error&&(i[o]="("+i[o].name+") "+i[o].message);n>=3?console.log(...i):n>=2?console.warn("WARNING",...i):n>=1&&console.error("ERROR",...i)}constructor(){this._logLevel=0}}var mr=new K0r,lye={},X0r=Object.prototype.hasOwnProperty,Tu="~";function MD(){}Object.create&&(MD.prototype=Object.create(null),new MD().__proto__||(Tu=!1));function Q0r(e,n,r){this.fn=e,this.context=n,this.once=r||!1}function $ut(e,n,r,i,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var a=new Q0r(r,i||e,o),s=Tu?Tu+n:n;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],a]:e._events[s].push(a):(e._events[s]=a,e._eventsCount++),e}function vF(e,n){--e._eventsCount===0?e._events=new MD:delete e._events[n]}function qc(){this._events=new MD,this._eventsCount=0}qc.prototype.eventNames=function(){var n=[],r,i;if(this._eventsCount===0)return n;for(i in r=this._events)X0r.call(r,i)&&n.push(Tu?i.slice(1):i);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(r)):n};qc.prototype.listeners=function(n){var r=Tu?Tu+n:n,i=this._events[r];if(!i)return[];if(i.fn)return[i.fn];for(var o=0,a=i.length,s=new Array(a);o<a;o++)s[o]=i[o].fn;return s};qc.prototype.listenerCount=function(n){var r=Tu?Tu+n:n,i=this._events[r];return i?i.fn?1:i.length:0};qc.prototype.emit=function(n,r,i,o,a,s){var l=Tu?Tu+n:n;if(!this._events[l])return!1;var c=this._events[l],u=arguments.length,d,f;if(c.fn){switch(c.once&&this.removeListener(n,c.fn,void 0,!0),u){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,r),!0;case 3:return c.fn.call(c.context,r,i),!0;case 4:return c.fn.call(c.context,r,i,o),!0;case 5:return c.fn.call(c.context,r,i,o,a),!0;case 6:return c.fn.call(c.context,r,i,o,a,s),!0}for(f=1,d=new Array(u-1);f<u;f++)d[f-1]=arguments[f];c.fn.apply(c.context,d)}else{var p=c.length,h;for(f=0;f<p;f++)switch(c[f].once&&this.removeListener(n,c[f].fn,void 0,!0),u){case 1:c[f].fn.call(c[f].context);break;case 2:c[f].fn.call(c[f].context,r);break;case 3:c[f].fn.call(c[f].context,r,i);break;case 4:c[f].fn.call(c[f].context,r,i,o);break;default:if(!d)for(h=1,d=new Array(u-1);h<u;h++)d[h-1]=arguments[h];c[f].fn.apply(c[f].context,d)}}return!0};qc.prototype.on=function(n,r,i){return $ut(this,n,r,i,!1)};qc.prototype.once=function(n,r,i){return $ut(this,n,r,i,!0)};qc.prototype.removeListener=function(n,r,i,o){var a=Tu?Tu+n:n;if(!this._events[a])return this;if(!r)return vF(this,a),this;var s=this._events[a];if(s.fn)s.fn===r&&(!o||s.once)&&(!i||s.context===i)&&vF(this,a);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==r||o&&!s[l].once||i&&s[l].context!==i)&&c.push(s[l]);c.length?this._events[a]=c.length===1?c[0]:c:vF(this,a)}return this};qc.prototype.removeAllListeners=function(n){var r;return n?(r=Tu?Tu+n:n,this._events[r]&&vF(this,r)):(this._events=new MD,this._eventsCount=0),this};qc.prototype.off=qc.prototype.removeListener;qc.prototype.addListener=qc.prototype.on;qc.prefixed=Tu;qc.EventEmitter=qc;lye=qc;var Vw={};zw(Vw,"ConnectionType",()=>Rm);zw(Vw,"PeerErrorType",()=>ms);zw(Vw,"BaseConnectionErrorType",()=>PD);zw(Vw,"DataConnectionErrorType",()=>AD);zw(Vw,"SerializationType",()=>zR);zw(Vw,"SocketEventType",()=>hm);zw(Vw,"ServerMessageType",()=>Vl);var Rm;(function(e){e.Data="data",e.Media="media"})(Rm||(Rm={}));var ms;(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"})(ms||(ms={}));var PD;(function(e){e.NegotiationFailed="negotiation-failed",e.ConnectionClosed="connection-closed"})(PD||(PD={}));var AD;(function(e){e.NotOpenYet="not-open-yet",e.MessageToBig="message-too-big"})(AD||(AD={}));var zR;(function(e){e.Binary="binary",e.BinaryUTF8="binary-utf8",e.JSON="json",e.None="raw"})(zR||(zR={}));var hm;(function(e){e.Message="message",e.Disconnected="disconnected",e.Error="error",e.Close="close"})(hm||(hm={}));var Vl;(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"})(Vl||(Vl={}));var cye={};cye=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 Z0r extends lye.EventEmitter{constructor(n,r,i,o,a,s=5e3){super(),this.pingInterval=s,this._disconnected=!0,this._messagesQueue=[];const l=n?"wss://":"ws://";this._baseUrl=l+r+":"+i+o+"peerjs?key="+a}start(n,r){this._id=n;const i=`${this._baseUrl}&id=${n}&token=${r}`;this._socket||!this._disconnected||(this._socket=new WebSocket(i+"&version="+cye.version),this._disconnected=!1,this._socket.onmessage=o=>{let a;try{a=JSON.parse(o.data),mr.log("Server message received:",a)}catch{mr.log("Invalid server message",o.data);return}this.emit(hm.Message,a)},this._socket.onclose=o=>{this._disconnected||(mr.log("Socket closed.",o),this._cleanup(),this._disconnected=!0,this.emit(hm.Disconnected))},this._socket.onopen=()=>{this._disconnected||(this._sendQueuedMessages(),mr.log("Socket open"),this._scheduleHeartbeat())})}_scheduleHeartbeat(){this._wsPingTimer=setTimeout(()=>{this._sendHeartbeat()},this.pingInterval)}_sendHeartbeat(){if(!this._wsOpen()){mr.log("Cannot send heartbeat, because socket closed");return}const n=JSON.stringify({type:Vl.Heartbeat});this._socket.send(n),this._scheduleHeartbeat()}_wsOpen(){return!!this._socket&&this._socket.readyState===1}_sendQueuedMessages(){const n=[...this._messagesQueue];this._messagesQueue=[];for(const r of n)this.send(r)}send(n){if(this._disconnected)return;if(!this._id){this._messagesQueue.push(n);return}if(!n.type){this.emit(hm.Error,"Invalid message");return}if(!this._wsOpen())return;const r=JSON.stringify(n);this._socket.send(r)}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 Fut{constructor(n){this.connection=n}startConnection(n){const r=this._startPeerConnection();if(this.connection.peerConnection=r,this.connection.type===Rm.Media&&n._stream&&this._addTracksToConnection(n._stream,r),n.originator){const i=this.connection,o={ordered:!!n.reliable},a=r.createDataChannel(i.label,o);i._initializeDataChannel(a),this._makeOffer()}else this.handleSDP("OFFER",n.sdp)}_startPeerConnection(){mr.log("Creating RTCPeerConnection.");const n=new RTCPeerConnection(this.connection.provider.options.config);return this._setupListeners(n),n}_setupListeners(n){const r=this.connection.peer,i=this.connection.connectionId,o=this.connection.type,a=this.connection.provider;mr.log("Listening for ICE candidates."),n.onicecandidate=s=>{!s.candidate||!s.candidate.candidate||(mr.log(`Received ICE candidates for ${r}:`,s.candidate),a.socket.send({type:Vl.Candidate,payload:{candidate:s.candidate,type:o,connectionId:i},dst:r}))},n.oniceconnectionstatechange=()=>{switch(n.iceConnectionState){case"failed":mr.log("iceConnectionState is failed, closing connections to "+r),this.connection.emitError(PD.NegotiationFailed,"Negotiation of connection to "+r+" failed."),this.connection.close();break;case"closed":mr.log("iceConnectionState is closed, closing connections to "+r),this.connection.emitError(PD.ConnectionClosed,"Connection to "+r+" closed."),this.connection.close();break;case"disconnected":mr.log("iceConnectionState changed to disconnected on the connection with "+r);break;case"completed":n.onicecandidate=()=>{};break}this.connection.emit("iceStateChanged",n.iceConnectionState)},mr.log("Listening for data channel"),n.ondatachannel=s=>{mr.log("Received data channel");const l=s.channel;a.getConnection(r,i)._initializeDataChannel(l)},mr.log("Listening for remote stream"),n.ontrack=s=>{mr.log("Received remote stream");const l=s.streams[0],c=a.getConnection(r,i);if(c.type===Rm.Media){const u=c;this._addStreamToMediaConnection(l,u)}}}cleanup(){mr.log("Cleaning up PeerConnection to "+this.connection.peer);const n=this.connection.peerConnection;if(!n)return;this.connection.peerConnection=null,n.onicecandidate=n.oniceconnectionstatechange=n.ondatachannel=n.ontrack=()=>{};const r=n.signalingState!=="closed";let i=!1;const o=this.connection.dataChannel;o&&(i=!!o.readyState&&o.readyState!=="closed"),(r||i)&&n.close()}async _makeOffer(){const n=this.connection.peerConnection,r=this.connection.provider;try{const i=await n.createOffer(this.connection.options.constraints);mr.log("Created offer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(i.sdp=this.connection.options.sdpTransform(i.sdp)||i.sdp);try{await n.setLocalDescription(i),mr.log("Set localDescription:",i,`for:${this.connection.peer}`);let o={sdp:i,type:this.connection.type,connectionId:this.connection.connectionId,metadata:this.connection.metadata};if(this.connection.type===Rm.Data){const a=this.connection;o={...o,label:a.label,reliable:a.reliable,serialization:a.serialization}}r.socket.send({type:Vl.Offer,payload:o,dst:this.connection.peer})}catch(o){o!="OperationError: Failed to set local offer sdp: Called in wrong state: kHaveRemoteOffer"&&(r.emitError(ms.WebRTC,o),mr.log("Failed to setLocalDescription, ",o))}}catch(i){r.emitError(ms.WebRTC,i),mr.log("Failed to createOffer, ",i)}}async _makeAnswer(){const n=this.connection.peerConnection,r=this.connection.provider;try{const i=await n.createAnswer();mr.log("Created answer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(i.sdp=this.connection.options.sdpTransform(i.sdp)||i.sdp);try{await n.setLocalDescription(i),mr.log("Set localDescription:",i,`for:${this.connection.peer}`),r.socket.send({type:Vl.Answer,payload:{sdp:i,type:this.connection.type,connectionId:this.connection.connectionId},dst:this.connection.peer})}catch(o){r.emitError(ms.WebRTC,o),mr.log("Failed to setLocalDescription, ",o)}}catch(i){r.emitError(ms.WebRTC,i),mr.log("Failed to create answer, ",i)}}async handleSDP(n,r){r=new RTCSessionDescription(r);const i=this.connection.peerConnection,o=this.connection.provider;mr.log("Setting remote description",r);const a=this;try{await i.setRemoteDescription(r),mr.log(`Set remoteDescription:${n} for:${this.connection.peer}`),n==="OFFER"&&await a._makeAnswer()}catch(s){o.emitError(ms.WebRTC,s),mr.log("Failed to setRemoteDescription, ",s)}}async handleCandidate(n){mr.log("handleCandidate:",n);try{await this.connection.peerConnection.addIceCandidate(n),mr.log(`Added ICE candidate for:${this.connection.peer}`)}catch(r){this.connection.provider.emitError(ms.WebRTC,r),mr.log("Failed to handleCandidate, ",r)}}_addTracksToConnection(n,r){if(mr.log(`add tracks from stream ${n.id} to peer connection`),!r.addTrack)return mr.error("Your browser does't support RTCPeerConnection#addTrack. Ignored.");n.getTracks().forEach(i=>{r.addTrack(i,n)})}_addStreamToMediaConnection(n,r){mr.log(`add stream ${n.id} to media connection ${r.connectionId}`),r.addStream(n)}}class But extends lye.EventEmitter{emitError(n,r){mr.error("Error:",r),this.emit("error",new J0r(`${n}`,r))}}class J0r extends Error{constructor(n,r){typeof r=="string"?super(r):(super(),Object.assign(this,r)),this.type=n}}class jut extends But{get open(){return this._open}constructor(n,r,i){super(),this.peer=n,this.provider=r,this.options=i,this._open=!1,this.metadata=i.metadata}}var dle;const RP=class RP extends jut{get type(){return Rm.Media}get localStream(){return this._localStream}get remoteStream(){return this._remoteStream}constructor(n,r,i){super(n,r,i),this._localStream=this.options._stream,this.connectionId=this.options.connectionId||RP.ID_PREFIX+ed.randomToken(),this._negotiator=new Fut(this),this._localStream&&this._negotiator.startConnection({_stream:this._localStream,originator:!0})}_initializeDataChannel(n){this.dataChannel=n,this.dataChannel.onopen=()=>{mr.log(`DC#${this.connectionId} dc connection success`),this.emit("willCloseOnRemote")},this.dataChannel.onclose=()=>{mr.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}addStream(n){mr.log("Receiving stream",n),this._remoteStream=n,super.emit("stream",n)}handleMessage(n){const r=n.type,i=n.payload;switch(n.type){case Vl.Answer:this._negotiator.handleSDP(r,i.sdp),this._open=!0;break;case Vl.Candidate:this._negotiator.handleCandidate(i.candidate);break;default:mr.warn(`Unrecognized message type:${r} from peer:${this.peer}`);break}}answer(n,r={}){if(this._localStream){mr.warn("Local stream already exists on this MediaConnection. Are you answering a call twice?");return}this._localStream=n,r&&r.sdpTransform&&(this.options.sdpTransform=r.sdpTransform),this._negotiator.startConnection({...this.options._payload,_stream:n});const i=this.provider._getMessages(this.connectionId);for(const o of i)this.handleMessage(o);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"))}};dle=new WeakMap,Xn(RP,dle,RP.ID_PREFIX="mc_");let n7=RP;class eSr{constructor(n){this._options=n}_buildRequest(n){const r=this._options.secure?"https":"http",{host:i,port:o,path:a,key:s}=this._options,l=new URL(`${r}://${i}:${o}${a}${s}/${n}`);return l.searchParams.set("ts",`${Date.now()}${Math.random()}`),l.searchParams.set("version",cye.version),fetch(l.href,{referrerPolicy:this._options.referrerPolicy})}async retrieveId(){try{const n=await this._buildRequest("id");if(n.status!==200)throw new Error(`Error. Status:${n.status}`);return n.text()}catch(n){mr.error("Error retrieving ID",n);let r="";throw this._options.path==="/"&&this._options.host!==ed.CLOUD_HOST&&(r=" 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."+r)}}async listAllPeers(){try{const n=await this._buildRequest("peers");if(n.status!==200){if(n.status===401){let r="";throw this._options.host===ed.CLOUD_HOST?r="It looks like you're using the cloud server. You can email team@peerjs.com to enable peer listing for your API key.":r="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. "+r)}throw new Error(`Error. Status:${n.status}`)}return n.json()}catch(n){throw mr.error("Error retrieving list peers",n),new Error("Could not get list peers from the server."+n)}}}var fle,ple;const qE=class qE extends jut{get type(){return Rm.Data}constructor(n,r,i){super(n,r,i),this.connectionId=this.options.connectionId||qE.ID_PREFIX+Lut(),this.label=this.options.label||this.connectionId,this.reliable=!!this.options.reliable,this._negotiator=new Fut(this),this._negotiator.startConnection(this.options._payload||{originator:!0,reliable:this.reliable})}_initializeDataChannel(n){this.dataChannel=n,this.dataChannel.onopen=()=>{mr.log(`DC#${this.connectionId} dc connection success`),this._open=!0,this.emit("open")},this.dataChannel.onmessage=r=>{mr.log(`DC#${this.connectionId} dc onmessage:`,r.data)},this.dataChannel.onclose=()=>{mr.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}close(n){if(n!=null&&n.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(n,r=!1){if(!this.open){this.emitError(AD.NotOpenYet,"Connection is not open. You should listen for the `open` event before sending messages.");return}return this._send(n,r)}async handleMessage(n){const r=n.payload;switch(n.type){case Vl.Answer:await this._negotiator.handleSDP(n.type,r.sdp);break;case Vl.Candidate:await this._negotiator.handleCandidate(r.candidate);break;default:mr.warn("Unrecognized message type:",n.type,"from peer:",this.peer);break}}};fle=new WeakMap,ple=new WeakMap,Xn(qE,fle,qE.ID_PREFIX="dc_"),Xn(qE,ple,qE.MAX_BUFFERED_AMOUNT=8388608);let r7=qE;class uye extends r7{get bufferSize(){return this._bufferSize}_initializeDataChannel(n){super._initializeDataChannel(n),this.dataChannel.binaryType="arraybuffer",this.dataChannel.addEventListener("message",r=>this._handleDataMessage(r))}_bufferedSend(n){(this._buffering||!this._trySend(n))&&(this._buffer.push(n),this._bufferSize=this._buffer.length)}_trySend(n){if(!this.open)return!1;if(this.dataChannel.bufferedAmount>r7.MAX_BUFFERED_AMOUNT)return this._buffering=!0,setTimeout(()=>{this._buffering=!1,this._tryBuffer()},50),!1;try{this.dataChannel.send(n)}catch(r){return mr.error(`DC#:${this.connectionId} Error when sending:`,r),this._buffering=!0,this.close(),!1}return!0}_tryBuffer(){if(!this.open||this._buffer.length===0)return;const n=this._buffer[0];this._trySend(n)&&(this._buffer.shift(),this._bufferSize=this._buffer.length,this._tryBuffer())}close(n){if(n!=null&&n.flush){this.send({__peerData:{type:"close"}});return}this._buffer=[],this._bufferSize=0,super.close()}constructor(...n){super(...n),this._buffer=[],this._bufferSize=0,this._buffering=!1}}class mee extends uye{close(n){super.close(n),this._chunkedData={}}constructor(n,r,i){super(n,r,i),this.chunker=new kut,this.serialization=zR.Binary,this._chunkedData={}}_handleDataMessage({data:n}){const r=eut(n),i=r.__peerData;if(i){if(i.type==="close"){this.close();return}this._handleChunk(r);return}this.emit("data",r)}_handleChunk(n){const r=n.__peerData,i=this._chunkedData[r]||{data:[],count:0,total:n.total};if(i.data[n.n]=new Uint8Array(n.data),i.count++,this._chunkedData[r]=i,i.total===i.count){delete this._chunkedData[r];const o=G0r(i.data);this._handleDataMessage({data:o})}}_send(n,r){const i=tut(n);if(i instanceof Promise)return this._send_blob(i);if(!r&&i.byteLength>this.chunker.chunkedMTU){this._sendChunks(i);return}this._bufferedSend(i)}async _send_blob(n){const r=await n;if(r.byteLength>this.chunker.chunkedMTU){this._sendChunks(r);return}this._bufferedSend(r)}_sendChunks(n){const r=this.chunker.chunk(n);mr.log(`DC#${this.connectionId} Try to send ${r.length} chunks...`);for(const i of r)this.send(i,!0)}}class tSr extends uye{_handleDataMessage({data:n}){super.emit("data",n)}_send(n,r){this._bufferedSend(n)}constructor(...n){super(...n),this.serialization=zR.None}}class nSr extends uye{_handleDataMessage({data:n}){const r=this.parse(this.decoder.decode(n)),i=r.__peerData;if(i&&i.type==="close"){this.close();return}this.emit("data",r)}_send(n,r){const i=this.encoder.encode(this.stringify(n));if(i.byteLength>=ed.chunkedMTU){this.emitError(AD.MessageToBig,"Message too big for JSON channel");return}this._bufferedSend(i)}constructor(...n){super(...n),this.serialization=zR.JSON,this.encoder=new TextEncoder,this.decoder=new TextDecoder,this.stringify=JSON.stringify,this.parse=JSON.parse}}var hle;const IP=class IP extends But{get id(){return this._id}get options(){return this._options}get open(){return this._open}get socket(){return this._socket}get connections(){const n=Object.create(null);for(const[r,i]of this._connections)n[r]=i;return n}get destroyed(){return this._destroyed}get disconnected(){return this._disconnected}constructor(n,r){super(),this._serializers={raw:tSr,json:nSr,binary:mee,"binary-utf8":mee,default:mee},this._id=null,this._lastServerId=null,this._destroyed=!1,this._disconnected=!1,this._open=!1,this._connections=new Map,this._lostMessages=new Map;let i;if(n&&n.constructor==Object?r=n:n&&(i=n.toString()),r={debug:0,host:ed.CLOUD_HOST,port:ed.CLOUD_PORT,path:"/",key:IP.DEFAULT_KEY,token:ed.randomToken(),config:ed.defaultConfig,referrerPolicy:"strict-origin-when-cross-origin",serializers:{},...r},this._options=r,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!==ed.CLOUD_HOST?this._options.secure=ed.isSecure():this._options.host==ed.CLOUD_HOST&&(this._options.secure=!0),this._options.logFunction&&mr.setLogFunction(this._options.logFunction),mr.logLevel=this._options.debug||0,this._api=new eSr(r),this._socket=this._createServerConnection(),!ed.supports.audioVideo&&!ed.supports.data){this._delayedAbort(ms.BrowserIncompatible,"The current browser does not support WebRTC");return}if(i&&!ed.validateId(i)){this._delayedAbort(ms.InvalidID,`ID "${i}" is invalid`);return}i?this._initialize(i):this._api.retrieveId().then(o=>this._initialize(o)).catch(o=>this._abort(ms.ServerError,o))}_createServerConnection(){const n=new Z0r(this._options.secure,this._options.host,this._options.port,this._options.path,this._options.key,this._options.pingInterval);return n.on(hm.Message,r=>{this._handleMessage(r)}),n.on(hm.Error,r=>{this._abort(ms.SocketError,r)}),n.on(hm.Disconnected,()=>{this.disconnected||(this.emitError(ms.Network,"Lost connection to server."),this.disconnect())}),n.on(hm.Close,()=>{this.disconnected||this._abort(ms.SocketClosed,"Underlying socket is already closed.")}),n}_initialize(n){this._id=n,this.socket.start(n,this._options.token)}_handleMessage(n){const r=n.type,i=n.payload,o=n.src;switch(r){case Vl.Open:this._lastServerId=this.id,this._open=!0,this.emit("open",this.id);break;case Vl.Error:this._abort(ms.ServerError,i.msg);break;case Vl.IdTaken:this._abort(ms.UnavailableID,`ID "${this.id}" is taken`);break;case Vl.InvalidKey:this._abort(ms.InvalidKey,`API KEY "${this._options.key}" is invalid`);break;case Vl.Leave:mr.log(`Received leave message from ${o}`),this._cleanupPeer(o),this._connections.delete(o);break;case Vl.Expire:this.emitError(ms.PeerUnavailable,`Could not connect to peer ${o}`);break;case Vl.Offer:{const a=i.connectionId;let s=this.getConnection(o,a);if(s&&(s.close(),mr.warn(`Offer received for existing Connection ID:${a}`)),i.type===Rm.Media){const c=new n7(o,this,{connectionId:a,_payload:i,metadata:i.metadata});s=c,this._addConnection(o,s),this.emit("call",c)}else if(i.type===Rm.Data){const c=new this._serializers[i.serialization](o,this,{connectionId:a,_payload:i,metadata:i.metadata,label:i.label,serialization:i.serialization,reliable:i.reliable});s=c,this._addConnection(o,s),this.emit("connection",c)}else{mr.warn(`Received malformed connection type:${i.type}`);return}const l=this._getMessages(a);for(const c of l)s.handleMessage(c);break}default:{if(!i){mr.warn(`You received a malformed message from ${o} of type ${r}`);return}const a=i.connectionId,s=this.getConnection(o,a);s&&s.peerConnection?s.handleMessage(n):a?this._storeMessage(a,n):mr.warn("You received an unrecognized message:",n);break}}}_storeMessage(n,r){this._lostMessages.has(n)||this._lostMessages.set(n,[]),this._lostMessages.get(n).push(r)}_getMessages(n){const r=this._lostMessages.get(n);return r?(this._lostMessages.delete(n),r):[]}connect(n,r={}){if(r={serialization:"default",...r},this.disconnected){mr.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(ms.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}const i=new this._serializers[r.serialization](n,this,r);return this._addConnection(n,i),i}call(n,r,i={}){if(this.disconnected){mr.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(ms.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}if(!r){mr.error("To call a peer, you must provide a stream from your browser's `getUserMedia`.");return}const o=new n7(n,this,{...i,_stream:r});return this._addConnection(n,o),o}_addConnection(n,r){mr.log(`add connection ${r.type}:${r.connectionId} to peerId:${n}`),this._connections.has(n)||this._connections.set(n,[]),this._connections.get(n).push(r)}_removeConnection(n){const r=this._connections.get(n.peer);if(r){const i=r.indexOf(n);i!==-1&&r.splice(i,1)}this._lostMessages.delete(n.connectionId)}getConnection(n,r){const i=this._connections.get(n);if(!i)return null;for(const o of i)if(o.connectionId===r)return o;return null}_delayedAbort(n,r){setTimeout(()=>{this._abort(n,r)},0)}_abort(n,r){mr.error("Aborting!"),this.emitError(n,r),this._lastServerId?this.disconnect():this.destroy()}destroy(){this.destroyed||(mr.log(`Destroy peer with ID:${this.id}`),this.disconnect(),this._cleanup(),this._destroyed=!0,this.emit("close"))}_cleanup(){for(const n of this._connections.keys())this._cleanupPeer(n),this._connections.delete(n);this.socket.removeAllListeners()}_cleanupPeer(n){const r=this._connections.get(n);if(r)for(const i of r)i.close()}disconnect(){if(this.disconnected)return;const n=this.id;mr.log(`Disconnect peer with ID:${n}`),this._disconnected=!0,this._open=!1,this.socket.close(),this._lastServerId=n,this._id=null,this.emit("disconnected",n)}reconnect(){if(this.disconnected&&!this.destroyed)mr.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)mr.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(n=r=>{}){this._api.listAllPeers().then(r=>n(r)).catch(r=>this._abort(ms.ServerError,r))}};hle=new WeakMap,Xn(IP,hle,IP.DEFAULT_KEY="peerjs");let ole=IP,rSr="127.0.0.1",iSr=9e3,oSr="/";function aSr(){console.log("usePeer");const e=ws(s=>s.userInfo);let n=null,r=null;const i=s=>{r=n.connect(s),r.on("open",()=>{console.log("Connected to peer with ID:",s),r.send("hi!")})},o=s=>{r?(console.log("sending message:",s),r.send(s)):console.error("no connection to send message")},a=s=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(l=>{n.call(s,l).on("stream",u=>{})}).catch(l=>{console.error("Failed to get local stream",l)})};return m.useEffect(()=>{const s=new ole(e.uid,{host:rSr,port:iSr,path:oSr});console.log("Starting self peer with ID:",e.uid),s.on("open",function(){console.log("self peer opened!")}),s.on("connection",l=>{l.on("data",c=>{console.log("connection data:",c)}),l.on("open",()=>{l.send("connection data open!")})}),s.on("call",l=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(c=>{l.answer(c),l.on("stream",u=>{})}).catch(c=>{console.error("Failed to get local stream",c)})})},[e]),{peer:n,connectOtherPeer:i,sendMessage:o,callOtherPeer:a}}const sSr=()=>{const e=Fr(),[n,r]=m.useState("/chat"),i=Df(),{isLoggedIn:o,mode:a}=m.useContext(Xl),{footerStyle:s}=u_(),[l,c]=m.useState(!1),u=Ah(h=>h.threads);m.useEffect(()=>{const h=u.some(g=>g.unreadCount>0);c(h)},[u]);const d=[{path:"/anonymous/home",name:e.formatMessage({id:"menu.dashboard.chat"}),icon:N.jsx(ST,{}),component:N.jsx(Zse,{})}],[f,p]=m.useState(d);return LXe(),kXe(),A0r(),aSr(),Spe(),m.useEffect(()=>{p(d)},[a]),m.useEffect(()=>(o&&i("/chat"),()=>{console.log("un - useEffect")}),[o]),N.jsxs(Mqe,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:f},location:{pathname:n},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:h=>h.isMobile?[]:[N.jsx(WVt,{onClick:mqt},"QuestionCircleFilled")],menuHeaderRender:()=>N.jsx(DXe,{}),menuFooterRender:h=>{h!=null&&h.collapsed},onMenuHeaderClick:h=>{console.log("onMenuHeaderClick",h)},menuItemRender:(h,g)=>N.jsx(N.Fragment,{children:N.jsxs("a",{onClick:()=>{r(h.path),i(h.path)},children:[l&&N.jsxs(N.Fragment,{children:[h.path==="/anonymous/home"&&N.jsx(Zu,{size:"small",dot:l,offset:[-5,5],children:g}),h.path!=="/anonymous/home"&&g]}),!l&&N.jsx(N.Fragment,{children:g})]})}),children:[N.jsx(tz,{children:N.jsx(AU,{})}),N.jsx(nz,{style:s,children:N.jsx(AXe,{})}),N.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},{Sider:lSr,Content:cSr}=bo,uSr=()=>{const{leftSiderStyle:e,leftSiderWidth:n,headerStyle:r,contentStyle:i}=u_();return N.jsx(N.Fragment,{children:N.jsxs(bo,{children:[N.jsx(lSr,{style:e,width:n}),N.jsxs(bo,{children:[N.jsx(Q8,{style:r,children:"setting"}),N.jsx(cSr,{style:i,children:"setting"})]})]})})};function dSr({children:e}){const{isLoggedIn:n}=m.useContext(Xl),r=yI();return n?e:N.jsx(aXt,{to:"/auth/login",replace:!0,state:{from:r}})}const L3e=[{path:"/",element:N.jsx(N.Fragment,{children:N.jsx(dSr,{children:N.jsx(d0r,{})})}),children:[{path:"/",element:N.jsx(Koe,{})},{path:"/formbuilder",element:N.jsx(Koe,{})},{path:"/flowbuilder",element:N.jsx(XZe,{})},{path:"/flowgram",element:N.jsx(Zct,{})},{path:"/form-view/:formId",element:N.jsx(Kpe,{})},{path:"/ticketbuilder",element:N.jsx(trt,{})},{path:"/setting",element:N.jsx(IXe,{}),children:[{path:"/setting",element:N.jsx(T3e,{})},{path:"/setting/profile",element:N.jsx(T3e,{})},{path:"/setting/agentProfile",element:N.jsx(N0r,{})},{path:"/setting/memberProfile",element:N.jsx(E0r,{})},{path:"/setting/basic",element:N.jsx(v0r,{})},{path:"/setting/certification",element:N.jsx(R0r,{})},{path:"/setting/qrcode",element:N.jsx(y0r,{})},{path:"/setting/shortcut",element:N.jsx(_0r,{})}]}]},{path:"/auth",element:N.jsx(f0r,{}),children:[{path:"/auth",element:N.jsx(Foe,{isModel:!1})},{path:"/auth/login",element:N.jsx(Foe,{isModel:!1})},{path:"/auth/register",element:N.jsx(aRn,{})},{path:"/auth/server",element:N.jsx(YKe,{})}]},{path:"/anonymous",element:N.jsx(sSr,{}),children:[{path:"/anonymous",element:N.jsx(Zse,{})},{path:"/anonymous/home",element:N.jsx(Zse,{})},{path:"/anonymous/setting",element:N.jsx(uSr,{})}]},{path:"*",element:N.jsx(b0r,{})}];let ale;Yl?ale=hXt(L3e,{future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}}):ale=pXt(L3e,{basename:"/agenticflow",future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}});const fSr=ale;var pSr=typeof Element<"u",hSr=typeof Map=="function",gSr=typeof Set=="function",mSr=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function yF(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!yF(e[i],n[i]))return!1;return!0}var a;if(hSr&&e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(a=e.entries();!(i=a.next()).done;)if(!n.has(i.value[0]))return!1;for(a=e.entries();!(i=a.next()).done;)if(!yF(i.value[1],n.get(i.value[0])))return!1;return!0}if(gSr&&e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(a=e.entries();!(i=a.next()).done;)if(!n.has(i.value[0]))return!1;return!0}if(mSr&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(e[i]!==n[i])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof n.valueOf=="function")return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof n.toString=="function")return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;if(pSr&&e instanceof Element)return!1;for(i=r;i--!==0;)if(!((o[i]==="_owner"||o[i]==="__v"||o[i]==="__o")&&e.$$typeof)&&!yF(e[o[i]],n[o[i]]))return!1;return!0}return e!==e&&n!==n}var vSr=function(n,r){try{return yF(n,r)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}};const ySr=Or(vSr);var _Sr=function(e,n,r,i,o,a,s,l){if(!e){var c;if(n===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,i,o,a,s,l],d=0;c=new Error(n.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},bSr=_Sr;const $3e=Or(bSr);var Uut=(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))(Uut||{}),vee={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"]}},F3e=Object.values(Uut),dye={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},SSr=Object.entries(dye).reduce((e,[n,r])=>(e[r]=n,e),{}),Bh="data-rh",iO={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},oO=(e,n)=>{for(let r=e.length-1;r>=0;r-=1){const i=e[r];if(Object.prototype.hasOwnProperty.call(i,n))return i[n]}return null},ESr=e=>{let n=oO(e,"title");const r=oO(e,iO.TITLE_TEMPLATE);if(Array.isArray(n)&&(n=n.join("")),r&&n)return r.replace(/%s/g,()=>n);const i=oO(e,iO.DEFAULT_TITLE);return n||i||void 0},CSr=e=>oO(e,iO.ON_CHANGE_CLIENT_STATE)||(()=>{}),yee=(e,n)=>n.filter(r=>typeof r[e]<"u").map(r=>r[e]).reduce((r,i)=>({...r,...i}),{}),wSr=(e,n)=>n.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,i)=>{if(!r.length){const o=Object.keys(i);for(let a=0;a<o.length;a+=1){const l=o[a].toLowerCase();if(e.indexOf(l)!==-1&&i[l])return r.concat(i)}}return r},[]),xSr=e=>console&&typeof console.warn=="function"&&console.warn(e),YM=(e,n,r)=>{const i={};return r.filter(o=>Array.isArray(o[e])?!0:(typeof o[e]<"u"&&xSr(`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`),!1)).map(o=>o[e]).reverse().reduce((o,a)=>{const s={};a.filter(c=>{let u;const d=Object.keys(c);for(let p=0;p<d.length;p+=1){const h=d[p],g=h.toLowerCase();n.indexOf(g)!==-1&&!(u==="rel"&&c[u].toLowerCase()==="canonical")&&!(g==="rel"&&c[g].toLowerCase()==="stylesheet")&&(u=g),n.indexOf(h)!==-1&&(h==="innerHTML"||h==="cssText"||h==="itemprop")&&(u=h)}if(!u||!c[u])return!1;const f=c[u].toLowerCase();return i[u]||(i[u]={}),s[u]||(s[u]={}),i[u][f]?!1:(s[u][f]=!0,!0)}).reverse().forEach(c=>o.push(c));const l=Object.keys(s);for(let c=0;c<l.length;c+=1){const u=l[c],d={...i[u],...s[u]};i[u]=d}return o},[]).reverse()},TSr=(e,n)=>{if(Array.isArray(e)&&e.length){for(let r=0;r<e.length;r+=1)if(e[r][n])return!0}return!1},OSr=e=>({baseTag:wSr(["href"],e),bodyAttributes:yee("bodyAttributes",e),defer:oO(e,iO.DEFER),encode:oO(e,iO.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:yee("htmlAttributes",e),linkTags:YM("link",["rel","href"],e),metaTags:YM("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:YM("noscript",["innerHTML"],e),onChangeClientState:CSr(e),scriptTags:YM("script",["src","innerHTML"],e),styleTags:YM("style",["cssText"],e),title:ESr(e),titleAttributes:yee("titleAttributes",e),prioritizeSeoTags:TSr(e,iO.PRIORITIZE_SEO_TAGS)}),Hut=e=>Array.isArray(e)?e.join(""):e,RSr=(e,n)=>{const r=Object.keys(e);for(let i=0;i<r.length;i+=1)if(n[r[i]]&&n[r[i]].includes(e[r[i]]))return!0;return!1},_ee=(e,n)=>Array.isArray(e)?e.reduce((r,i)=>(RSr(i,n)?r.priority.push(i):r.default.push(i),r),{priority:[],default:[]}):{default:e,priority:[]},B3e=(e,n)=>({...e,[n]:void 0}),ISr=["noscript","script","style"],sle=(e,n=!0)=>n===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),zut=e=>Object.keys(e).reduce((n,r)=>{const i=typeof e[r]<"u"?`${r}="${e[r]}"`:`${r}`;return n?`${n} ${i}`:i},""),NSr=(e,n,r,i)=>{const o=zut(r),a=Hut(n);return o?`<${e} ${Bh}="true" ${o}>${sle(a,i)}</${e}>`:`<${e} ${Bh}="true">${sle(a,i)}</${e}>`},MSr=(e,n,r=!0)=>n.reduce((i,o)=>{const a=o,s=Object.keys(a).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const f=typeof a[d]>"u"?d:`${d}="${sle(a[d],r)}"`;return u?`${u} ${f}`:f},""),l=a.innerHTML||a.cssText||"",c=ISr.indexOf(e)===-1;return`${i}<${e} ${Bh}="true" ${s}${c?"/>":`>${l}</${e}>`}`},""),Vut=(e,n={})=>Object.keys(e).reduce((r,i)=>{const o=dye[i];return r[o||i]=e[i],r},n),PSr=(e,n,r)=>{const i={key:n,[Bh]:!0},o=Vut(r,i);return[V.createElement("title",o,n)]},_F=(e,n)=>n.map((r,i)=>{const o={key:i,[Bh]:!0};return Object.keys(r).forEach(a=>{const l=dye[a]||a;if(l==="innerHTML"||l==="cssText"){const c=r.innerHTML||r.cssText;o.dangerouslySetInnerHTML={__html:c}}else o[l]=r[a]}),V.createElement(e,o)}),tp=(e,n,r=!0)=>{switch(e){case"title":return{toComponent:()=>PSr(e,n.title,n.titleAttributes),toString:()=>NSr(e,n.title,n.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Vut(n),toString:()=>zut(n)};default:return{toComponent:()=>_F(e,n),toString:()=>MSr(e,n,r)}}},ASr=({metaTags:e,linkTags:n,scriptTags:r,encode:i})=>{const o=_ee(e,vee.meta),a=_ee(n,vee.link),s=_ee(r,vee.script);return{priorityMethods:{toComponent:()=>[..._F("meta",o.priority),..._F("link",a.priority),..._F("script",s.priority)],toString:()=>`${tp("meta",o.priority,i)} ${tp("link",a.priority,i)} ${tp("script",s.priority,i)}`},metaTags:o.default,linkTags:a.default,scriptTags:s.default}},DSr=e=>{const{baseTag:n,bodyAttributes:r,encode:i=!0,htmlAttributes:o,noscriptTags:a,styleTags:s,title:l="",titleAttributes:c,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:f,scriptTags:p}=e,h={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:h,linkTags:d,metaTags:f,scriptTags:p}=ASr(e)),{priority:h,base:tp("base",n,i),bodyAttributes:tp("bodyAttributes",r,i),htmlAttributes:tp("htmlAttributes",o,i),link:tp("link",d,i),meta:tp("meta",f,i),noscript:tp("noscript",a,i),script:tp("script",p,i),style:tp("style",s,i),title:tp("title",{title:l,titleAttributes:c},i)}},lle=DSr,C5=[],Gut=!!(typeof window<"u"&&window.document&&window.document.createElement),cle=class{constructor(e,n){$t(this,"instances",[]);$t(this,"canUseDOM",Gut);$t(this,"context");$t(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?C5:this.instances,add:e=>{(this.canUseDOM?C5:this.instances).push(e)},remove:e=>{const n=(this.canUseDOM?C5:this.instances).indexOf(e);(this.canUseDOM?C5:this.instances).splice(n,1)}}});this.context=e,this.canUseDOM=n||!1,n||(e.helmet=lle({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},kSr={},Wut=V.createContext(kSr),_1,Yut=(_1=class extends m.Component{constructor(r){super(r);$t(this,"helmetData");this.helmetData=new cle(this.props.context||{},_1.canUseDOM)}render(){return V.createElement(Wut.Provider,{value:this.helmetData.value},this.props.children)}},$t(_1,"canUseDOM",Gut),_1),qx=(e,n)=>{const r=document.head||document.querySelector("head"),i=r.querySelectorAll(`${e}[${Bh}]`),o=[].slice.call(i),a=[];let s;return n&&n.length&&n.forEach(l=>{const c=document.createElement(e);for(const u in l)if(Object.prototype.hasOwnProperty.call(l,u))if(u==="innerHTML")c.innerHTML=l.innerHTML;else if(u==="cssText")c.styleSheet?c.styleSheet.cssText=l.cssText:c.appendChild(document.createTextNode(l.cssText));else{const d=u,f=typeof l[d]>"u"?"":l[d];c.setAttribute(u,f)}c.setAttribute(Bh,"true"),o.some((u,d)=>(s=d,c.isEqualNode(u)))?o.splice(s,1):a.push(c)}),o.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)}),a.forEach(l=>r.appendChild(l)),{oldTags:o,newTags:a}},ule=(e,n)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const i=r.getAttribute(Bh),o=i?i.split(","):[],a=[...o],s=Object.keys(n);for(const l of s){const c=n[l]||"";r.getAttribute(l)!==c&&r.setAttribute(l,c),o.indexOf(l)===-1&&o.push(l);const u=a.indexOf(l);u!==-1&&a.splice(u,1)}for(let l=a.length-1;l>=0;l-=1)r.removeAttribute(a[l]);o.length===a.length?r.removeAttribute(Bh):r.getAttribute(Bh)!==s.join(",")&&r.setAttribute(Bh,s.join(","))},LSr=(e,n)=>{typeof e<"u"&&document.title!==e&&(document.title=Hut(e)),ule("title",n)},j3e=(e,n)=>{const{baseTag:r,bodyAttributes:i,htmlAttributes:o,linkTags:a,metaTags:s,noscriptTags:l,onChangeClientState:c,scriptTags:u,styleTags:d,title:f,titleAttributes:p}=e;ule("body",i),ule("html",o),LSr(f,p);const h={baseTag:qx("base",r),linkTags:qx("link",a),metaTags:qx("meta",s),noscriptTags:qx("noscript",l),scriptTags:qx("script",u),styleTags:qx("style",d)},g={},v={};Object.keys(h).forEach(y=>{const{newTags:_,oldTags:S}=h[y];_.length&&(g[y]=_),S.length&&(v[y]=h[y].oldTags)}),n&&n(),c(e,g,v)},qM=null,$Sr=e=>{qM&&cancelAnimationFrame(qM),e.defer?qM=requestAnimationFrame(()=>{j3e(e,()=>{qM=null})}):(j3e(e),qM=null)},FSr=$Sr,U3e=class extends m.Component{constructor(){super(...arguments);$t(this,"rendered",!1)}shouldComponentUpdate(n){return!Sir(n,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:n}=this.props.context;n.remove(this),this.emitChange()}emitChange(){const{helmetInstances:n,setHelmet:r}=this.props.context;let i=null;const o=OSr(n.get().map(a=>{const s={...a.props};return delete s.context,s}));Yut.canUseDOM?FSr(o):lle&&(i=lle(o)),r(i)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:n}=this.props.context;n.add(this),this.emitChange()}render(){return this.init(),null}},bee,BSr=(bee=class extends m.Component{shouldComponentUpdate(e){return!ySr(B3e(this.props,"helmetData"),B3e(e,"helmetData"))}mapNestedChildrenToProps(e,n){if(!n)return null;switch(e.type){case"script":case"noscript":return{innerHTML:n};case"style":return{cssText:n};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,n,r,i){return{...n,[e.type]:[...n[e.type]||[],{...r,...this.mapNestedChildrenToProps(e,i)}]}}mapObjectTypeChildren(e,n,r,i){switch(e.type){case"title":return{...n,[e.type]:i,titleAttributes:{...r}};case"body":return{...n,bodyAttributes:{...r}};case"html":return{...n,htmlAttributes:{...r}};default:return{...n,[e.type]:{...r}}}}mapArrayTypeChildrenToProps(e,n){let r={...n};return Object.keys(e).forEach(i=>{r={...r,[i]:e[i]}}),r}warnOnInvalidChildren(e,n){return $3e(F3e.some(r=>e.type===r),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 ${F3e.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),$3e(!n||typeof n=="string"||Array.isArray(n)&&!n.some(r=>typeof r!="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,n){let r={};return V.Children.forEach(e,i=>{if(!i||!i.props)return;const{children:o,...a}=i.props,s=Object.keys(a).reduce((c,u)=>(c[SSr[u]||u]=a[u],c),{});let{type:l}=i;switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(i,o),l){case"Symbol(react.fragment)":n=this.mapChildrenToProps(o,n);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(i,r,s,o);break;default:n=this.mapObjectTypeChildren(i,n,s,o);break}}),this.mapArrayTypeChildrenToProps(r,n)}render(){const{children:e,...n}=this.props;let r={...n},{helmetData:i}=n;if(e&&(r=this.mapChildrenToProps(e,r)),i&&!(i instanceof cle)){const o=i;i=new cle(o.context,!0),delete r.helmetData}return i?V.createElement(U3e,{...r,context:i.value}):V.createElement(Wut.Consumer,null,o=>V.createElement(U3e,{...r,context:o}))}},$t(bee,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),bee);const jSr={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:"暂无客服在线"},USr={"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.flowgram":"流程图","menu.dashboard.flowbuilder":"流程构建器","menu.dashboard.ticket":"工单","menu.dashboard.ticketbuilder":"工单构建器"},HSr={"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":"查看文档"},zSr={"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":"隐私政策"},VSr={"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":"请输入正确的服务器地址"},GSr={"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错误"},WSr={"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":"表单验证通过"},YSr={"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":"拉黑成功"},qSr={"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":"转接请求已发送,等待对方响应"},KSr={"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":"会话流程","flowgram.title":"流程图表","flowgram.create":"创建","flowgram.import":"导入","flowgram.export":"导出","flowgram.save":"保存","flowgram.create.info":"创建新流程功能开发中","flowgram.import.info":"导入流程功能开发中","flowgram.export.info":"导出流程功能开发中","flowgram.save.info":"保存流程功能开发中","flowgram.select.flow":"选择流程","flowgram.no.flow":"暂无流程"},XSr={"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":"请检查表单"},QSr={"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":"密码修改成功!"},ZSr={"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":"个人模式"},JSr={"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":"加载更多..."},eEr={"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":"确定要取消部署此流程吗?"},tEr={"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":"开始聊天"},nEr={"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":"加载成员失败"},rEr={"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":"请至少选择一个机器人"},iEr={"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":"选择大模型知识库"},oEr={"upload.modal.title":"上传文件","upload.drag.text":"点击或拖拽文件至此处上传","upload.drag.hint":"支持单个或批量上传","upload.drag.hint.size":"支持单个或批量上传文件大小不超过10MB","upload.drag.hint.withtype":"支持单个或批量上传 {acceptTypes} 格式的文件","upload.drag.hint.withtype.size":"支持单个或批量上传 {acceptTypes} 格式的文件文件大小不超过10MB","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"},aEr={"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":"工单流程"},sEr={"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":"稍后验证"},lEr={...zSr,...VSr,...GSr,...WSr,...YSr,...qSr,...KSr,...USr,...XSr,...HSr,...QSr,...ZSr,...JSr,...eEr,...jSr,...tEr,...nEr,...rEr,...iEr,...oEr,...aEr,...sEr},cEr={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:"无客服在线"},uEr={"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.flowgram":"流程圖","menu.dashboard.flowbuilder":"流程構建器","menu.dashboard.ticket":"工單","menu.dashboard.ticketbuilder":"工單構建器"},dEr={"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":"返回首頁"},fEr={"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":"隱私政策"},pEr={"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":"請輸入正確的服務器地址"},hEr={"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錯誤"},gEr={"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":"表單驗證通過"},mEr={"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":"拉黑成功"},vEr={"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":"數據加載失敗"},yEr={"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":"會話流程","flowgram.title":"流程圖表","flowgram.create":"創建","flowgram.import":"導入","flowgram.export":"導出","flowgram.save":"保存","flowgram.create.info":"創建新流程功能開發中","flowgram.import.info":"導入流程功能開發中","flowgram.export.info":"導出流程功能開發中","flowgram.save.info":"保存流程功能開發中","flowgram.select.flow":"選擇流程","flowgram.no.flow":"暫無流程"},_Er={"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":"圖片保存失敗"},bEr={"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":"密碼修改成功!"},SEr={"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":"個人模式"},EEr={"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":"加載更多..."},CEr={"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":"確定要取消部署此流程嗎?"},wEr={"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":"開始聊天"},xEr={"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":"加載成員失敗"},TEr={"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":"刪除"},OEr={"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":"选择大模型知识库"},REr={"upload.modal.title":"上傳文件","upload.drag.text":"點擊或拖拽文件至此處上傳","upload.drag.hint":"支持單個或批量上傳","upload.drag.hint.size":"支持单个或批量上传文件大小不超过10MB","upload.drag.hint.withtype":"支持单个或批量上传 {acceptTypes} 格式的文件","upload.drag.hint.withtype.size":"支持单个或批量上传 {acceptTypes} 格式的文件文件大小不超过10MB","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"},IEr={"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":"工單流程"},NEr={"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":"稍後驗證"},MEr={...fEr,...pEr,...hEr,...gEr,...mEr,...vEr,...yEr,...uEr,..._Er,...dEr,...bEr,...SEr,...EEr,...CEr,...cEr,...wEr,...xEr,...TEr,...OEr,...REr,...IEr,...NEr},PEr={"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"},AEr={"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"},DEr={"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"},kEr={"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"},LEr={"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.flowgram":"Flowgram","menu.dashboard.flowbuilder":"Flow Builder","menu.dashboard.ticket":"Ticket","menu.dashboard.ticketbuilder":"Ticket Builder"},$Er={"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!"},FEr={"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"},BEr={"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?"},jEr={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"},UEr={"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"},HEr={"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","flowgram.title":"Flow Diagram","flowgram.create":"Create","flowgram.import":"Import","flowgram.export":"Export","flowgram.save":"Save","flowgram.create.info":"Create new flow feature under development","flowgram.import.info":"Import flow feature under development","flowgram.export.info":"Export flow feature under development","flowgram.save.info":"Save flow feature under development","flowgram.select.flow":"Select Flow","flowgram.no.flow":"No Flow Available"},zEr={"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"},VEr={"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..."},GEr={"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"},WEr={"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"},YEr={"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"},qEr={"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"},KEr={"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"},XEr={"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"},QEr={"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.drag.hint.size":"Support for single or bulk upload, file size should not exceed 10MB","upload.drag.hint.withtype":"Support for single or bulk upload of {acceptTypes} format files","upload.drag.hint.withtype.size":"Support for single or bulk upload of {acceptTypes} format files, file size should not exceed 10MB","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"},ZEr={"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"},JEr={"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"},e1r={...PEr,...AEr,...DEr,...kEr,...LEr,...$Er,...FEr,...BEr,...jEr,...UEr,...HEr,...zEr,...VEr,...GEr,...WEr,...YEr,...qEr,...KEr,...XEr,...QEr,...ZEr,...JEr},t1r={"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"},qut={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"},As={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},ru={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"},pb={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class gn{static getFirstMatch(n,r){const i=r.match(n);return i&&i.length>0&&i[1]||""}static getSecondMatch(n,r){const i=r.match(n);return i&&i.length>1&&i[2]||""}static matchAndReturnConst(n,r,i){if(n.test(r))return i}static getWindowsVersionName(n){switch(n){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(n){const r=n.split(".").splice(0,2).map(i=>parseInt(i,10)||0);if(r.push(0),r[0]===10)switch(r[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(n){const r=n.split(".").splice(0,2).map(i=>parseInt(i,10)||0);if(r.push(0),!(r[0]===1&&r[1]<5)){if(r[0]===1&&r[1]<6)return"Cupcake";if(r[0]===1&&r[1]>=6)return"Donut";if(r[0]===2&&r[1]<2)return"Eclair";if(r[0]===2&&r[1]===2)return"Froyo";if(r[0]===2&&r[1]>2)return"Gingerbread";if(r[0]===3)return"Honeycomb";if(r[0]===4&&r[1]<1)return"Ice Cream Sandwich";if(r[0]===4&&r[1]<4)return"Jelly Bean";if(r[0]===4&&r[1]>=4)return"KitKat";if(r[0]===5)return"Lollipop";if(r[0]===6)return"Marshmallow";if(r[0]===7)return"Nougat";if(r[0]===8)return"Oreo";if(r[0]===9)return"Pie"}}static getVersionPrecision(n){return n.split(".").length}static compareVersions(n,r,i=!1){const o=gn.getVersionPrecision(n),a=gn.getVersionPrecision(r);let s=Math.max(o,a),l=0;const c=gn.map([n,r],u=>{const d=s-gn.getVersionPrecision(u),f=u+new Array(d+1).join(".0");return gn.map(f.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(i&&(l=s-Math.min(o,a)),s-=1;s>=l;){if(c[0][s]>c[1][s])return 1;if(c[0][s]===c[1][s]){if(s===l)return 0;s-=1}else if(c[0][s]<c[1][s])return-1}}static map(n,r){const i=[];let o;if(Array.prototype.map)return Array.prototype.map.call(n,r);for(o=0;o<n.length;o+=1)i.push(r(n[o]));return i}static find(n,r){let i,o;if(Array.prototype.find)return Array.prototype.find.call(n,r);for(i=0,o=n.length;i<o;i+=1){const a=n[i];if(r(a,i))return a}}static assign(n,...r){const i=n;let o,a;if(Object.assign)return Object.assign(n,...r);for(o=0,a=r.length;o<a;o+=1){const s=r[o];typeof s=="object"&&s!==null&&Object.keys(s).forEach(c=>{i[c]=s[c]})}return n}static getBrowserAlias(n){return t1r[n]}static getBrowserTypeByAlias(n){return qut[n]||""}}const ea=/version\/(\d+(\.?_?\d+)+)/i,n1r=[{test:[/googlebot/i],describe(e){const n={name:"Googlebot"},r=gn.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/opera/i],describe(e){const n={name:"Opera"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/opr\/|opios/i],describe(e){const n={name:"Opera"},r=gn.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/SamsungBrowser/i],describe(e){const n={name:"Samsung Internet for Android"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/Whale/i],describe(e){const n={name:"NAVER Whale Browser"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/MZBrowser/i],describe(e){const n={name:"MZ Browser"},r=gn.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/focus/i],describe(e){const n={name:"Focus"},r=gn.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/swing/i],describe(e){const n={name:"Swing"},r=gn.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/coast/i],describe(e){const n={name:"Opera Coast"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const n={name:"Opera Touch"},r=gn.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/yabrowser/i],describe(e){const n={name:"Yandex Browser"},r=gn.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/ucbrowser/i],describe(e){const n={name:"UC Browser"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/Maxthon|mxios/i],describe(e){const n={name:"Maxthon"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/epiphany/i],describe(e){const n={name:"Epiphany"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/puffin/i],describe(e){const n={name:"Puffin"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/sleipnir/i],describe(e){const n={name:"Sleipnir"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/k-meleon/i],describe(e){const n={name:"K-Meleon"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/micromessenger/i],describe(e){const n={name:"WeChat"},r=gn.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/qqbrowser/i],describe(e){const n={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=gn.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/msie|trident/i],describe(e){const n={name:"Internet Explorer"},r=gn.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/\sedg\//i],describe(e){const n={name:"Microsoft Edge"},r=gn.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/edg([ea]|ios)/i],describe(e){const n={name:"Microsoft Edge"},r=gn.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/vivaldi/i],describe(e){const n={name:"Vivaldi"},r=gn.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/seamonkey/i],describe(e){const n={name:"SeaMonkey"},r=gn.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/sailfish/i],describe(e){const n={name:"Sailfish"},r=gn.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(n.version=r),n}},{test:[/silk/i],describe(e){const n={name:"Amazon Silk"},r=gn.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/phantom/i],describe(e){const n={name:"PhantomJS"},r=gn.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/slimerjs/i],describe(e){const n={name:"SlimerJS"},r=gn.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const n={name:"BlackBerry"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/(web|hpw)[o0]s/i],describe(e){const n={name:"WebOS Browser"},r=gn.getFirstMatch(ea,e)||gn.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/bada/i],describe(e){const n={name:"Bada"},r=gn.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/tizen/i],describe(e){const n={name:"Tizen"},r=gn.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/qupzilla/i],describe(e){const n={name:"QupZilla"},r=gn.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/firefox|iceweasel|fxios/i],describe(e){const n={name:"Firefox"},r=gn.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/electron/i],describe(e){const n={name:"Electron"},r=gn.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/MiuiBrowser/i],describe(e){const n={name:"Miui"},r=gn.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/chromium/i],describe(e){const n={name:"Chromium"},r=gn.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/chrome|crios|crmo/i],describe(e){const n={name:"Chrome"},r=gn.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/GSA/i],describe(e){const n={name:"Google Search"},r=gn.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test(e){const n=!e.test(/like android/i),r=e.test(/android/i);return n&&r},describe(e){const n={name:"Android Browser"},r=gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/playstation 4/i],describe(e){const n={name:"PlayStation 4"},r=gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/safari|applewebkit/i],describe(e){const n={name:"Safari"},r=gn.getFirstMatch(ea,e);return r&&(n.version=r),n}},{test:[/.*/i],describe(e){const n=/^(.*)\/(.*) /,r=/^(.*)\/(.*)[ \t]\((.*)/,o=e.search("\\(")!==-1?r:n;return{name:gn.getFirstMatch(o,e),version:gn.getSecondMatch(o,e)}}}],r1r=[{test:[/Roku\/DVP/],describe(e){const n=gn.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:ru.Roku,version:n}}},{test:[/windows phone/i],describe(e){const n=gn.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:ru.WindowsPhone,version:n}}},{test:[/windows /i],describe(e){const n=gn.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=gn.getWindowsVersionName(n);return{name:ru.Windows,version:n,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const n={name:ru.iOS},r=gn.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(n.version=r),n}},{test:[/macintosh/i],describe(e){const n=gn.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=gn.getMacOSVersionName(n),i={name:ru.MacOS,version:n};return r&&(i.versionName=r),i}},{test:[/(ipod|iphone|ipad)/i],describe(e){const n=gn.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:ru.iOS,version:n}}},{test(e){const n=!e.test(/like android/i),r=e.test(/android/i);return n&&r},describe(e){const n=gn.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=gn.getAndroidVersionName(n),i={name:ru.Android,version:n};return r&&(i.versionName=r),i}},{test:[/(web|hpw)[o0]s/i],describe(e){const n=gn.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:ru.WebOS};return n&&n.length&&(r.version=n),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const n=gn.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||gn.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||gn.getFirstMatch(/\bbb(\d+)/i,e);return{name:ru.BlackBerry,version:n}}},{test:[/bada/i],describe(e){const n=gn.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:ru.Bada,version:n}}},{test:[/tizen/i],describe(e){const n=gn.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:ru.Tizen,version:n}}},{test:[/linux/i],describe(){return{name:ru.Linux}}},{test:[/CrOS/],describe(){return{name:ru.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const n=gn.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:ru.PlayStation4,version:n}}}],i1r=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const n=gn.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:As.mobile,vendor:"Huawei"};return n&&(r.model=n),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:As.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:As.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:As.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:As.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:As.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:As.tablet}}},{test(e){const n=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return n&&!r},describe(e){const n=gn.getFirstMatch(/(ipod|iphone)/i,e);return{type:As.mobile,vendor:"Apple",model:n}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:As.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:As.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:As.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:As.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:As.mobile,vendor:"Microsoft"}}},{test(e){const n=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&n>=3},describe(){return{type:As.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:As.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:As.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:As.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:As.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:As.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:As.tv}}}],o1r=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:pb.Blink};const r=gn.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:pb.EdgeHTML,version:r}}},{test:[/trident/i],describe(e){const n={name:pb.Trident},r=gn.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test(e){return e.test(/presto/i)},describe(e){const n={name:pb.Presto},r=gn.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test(e){const n=e.test(/gecko/i),r=e.test(/like gecko/i);return n&&!r},describe(e){const n={name:pb.Gecko},r=gn.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:pb.Blink}}},{test:[/(apple)?webkit/i],describe(e){const n={name:pb.WebKit},r=gn.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(n.version=r),n}}];class H3e{constructor(n,r=!1){if(n==null||n==="")throw new Error("UserAgent parameter can't be empty");this._ua=n,this.parsedResult={},r!==!0&&this.parse()}getUA(){return this._ua}test(n){return n.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const n=gn.find(n1r,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(i=>this.test(i));throw new Error("Browser's test function is not valid")});return n&&(this.parsedResult.browser=n.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(n){return n?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 n=gn.find(r1r,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(i=>this.test(i));throw new Error("Browser's test function is not valid")});return n&&(this.parsedResult.os=n.describe(this.getUA())),this.parsedResult.os}getOSName(n){const{name:r}=this.getOS();return n?String(r).toLowerCase()||"":r||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(n=!1){const{type:r}=this.getPlatform();return n?String(r).toLowerCase()||"":r||""}parsePlatform(){this.parsedResult.platform={};const n=gn.find(i1r,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(i=>this.test(i));throw new Error("Browser's test function is not valid")});return n&&(this.parsedResult.platform=n.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(n){return n?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const n=gn.find(o1r,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(i=>this.test(i));throw new Error("Browser's test function is not valid")});return n&&(this.parsedResult.engine=n.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return gn.assign({},this.parsedResult)}satisfies(n){const r={};let i=0;const o={};let a=0;if(Object.keys(n).forEach(l=>{const c=n[l];typeof c=="string"?(o[l]=c,a+=1):typeof c=="object"&&(r[l]=c,i+=1)}),i>0){const l=Object.keys(r),c=gn.find(l,d=>this.isOS(d));if(c){const d=this.satisfies(r[c]);if(d!==void 0)return d}const u=gn.find(l,d=>this.isPlatform(d));if(u){const d=this.satisfies(r[u]);if(d!==void 0)return d}}if(a>0){const l=Object.keys(o),c=gn.find(l,u=>this.isBrowser(u,!0));if(c!==void 0)return this.compareVersion(o[c])}}isBrowser(n,r=!1){const i=this.getBrowserName().toLowerCase();let o=n.toLowerCase();const a=gn.getBrowserTypeByAlias(o);return r&&a&&(o=a.toLowerCase()),o===i}compareVersion(n){let r=[0],i=n,o=!1;const a=this.getBrowserVersion();if(typeof a=="string")return n[0]===">"||n[0]==="<"?(i=n.substr(1),n[1]==="="?(o=!0,i=n.substr(2)):r=[],n[0]===">"?r.push(1):r.push(-1)):n[0]==="="?i=n.substr(1):n[0]==="~"&&(o=!0,i=n.substr(1)),r.indexOf(gn.compareVersions(a,i,o))>-1}isOS(n){return this.getOSName(!0)===String(n).toLowerCase()}isPlatform(n){return this.getPlatformType(!0)===String(n).toLowerCase()}isEngine(n){return this.getEngineName(!0)===String(n).toLowerCase()}is(n,r=!1){return this.isBrowser(n,r)||this.isOS(n)||this.isPlatform(n)}some(n=[]){return n.some(r=>this.is(r))}}/*!
* Bowser - a browser detector
* https://github.com/lancedikson/bowser
* MIT License | (c) Dustin Diaz 2012-2015
* MIT License | (c) Denis Demchenko 2015-2019
*/class a1r{static getParser(n,r=!1){if(typeof n!="string")throw new Error("UserAgent should be a string");return new H3e(n,r)}static parse(n){return new H3e(n).getResult()}static get BROWSER_MAP(){return qut}static get ENGINE_MAP(){return pb}static get OS_MAP(){return ru}static get PLATFORMS_MAP(){return As}}const{defaultAlgorithm:s1r,darkAlgorithm:l1r}=cu,c1r={"zh-cn":lEr,"zh-tw":MEr,en:e1r},u1r=()=>{const{isDarkMode:e,locale:n}=m.useContext(Xl),r=new Vqt({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),[i,o]=m.useState(!1),a=()=>{const l=a1r.getParser(window.navigator.userAgent);console.log("browser:",l),Yl?console.log("OsName:",l.getOSName()):console.log("BrowserName:",l.getBrowserName()),l.getOSName().toLocaleLowerCase().indexOf("mac")===-1&&o(!0)},s=async()=>{if(console.log("getConfig"),await _5e(),Yl)console.log("is electron");else{await y5e();const l=P7();console.log("Base URL:",l)}};return m.useEffect(()=>{n8e(),a(),s()},[]),N.jsx(or,{locale:n,theme:{algorithm:e?l1r:s1r},children:N.jsx(Wqt,{client:r,children:N.jsx(Yut,{children:N.jsx(m.Suspense,{fallback:N.jsx("div",{children:"loading..."}),children:N.jsxs(KOn,{messages:c1r[n.locale],locale:n.locale,defaultLocale:"zh-cn",children:[i&&N.jsx(BSr,{children:N.jsx("link",{rel:"stylesheet",type:"text/css",href:Yyt})}),N.jsxs(Z9,{children:[N.jsx(oqt,{}),N.jsx(EXt,{router:fSr})]})]})})})})})},d1r=()=>N.jsx("div",{className:"App",children:N.jsx(Eqt,{children:N.jsx(u1r,{})})});var Kut,z3e=Us;Kut=z3e.createRoot,z3e.hydrateRoot;const f1r=Kut(document.getElementById("root"));f1r.render(N.jsx(d1r,{}));export{ev as a,so as r,Ah as u};