1277 lines
2.2 MiB
JavaScript
1277 lines
2.2 MiB
JavaScript
|
|
var Roe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);import{r as p,f as Pa,R as W,d as Z,h as Dd,c as Eo,a as qs,i as Moe,j as Yb,k as ar,g as pn,n as lm,l as Sa,m as Loe,s as NA,o as Doe,p as hO,q as Ioe,t as Foe,P as ft,S as eB,u as Ih,v as IS,w as lr,b as me,x as ea,y as ta,z as an,A as FS,B as ot,C as Fh,D as tB,E as Boe,F as cm,e as Gt,G as yu,_ as nB,H as $oe}from"./acebuilds-fbc0ccc6.js";import{r as ui,R as Pc,a as rB,u as Jb,b as zoe,H as _oe,P as gO,N as BS,c as Hoe,g as Uoe,B as Woe,E as Voe,d as qoe,e as Goe,f as Koe,h as Xoe,i as Yoe,j as Joe,k as Qoe,C as Zoe,l as eae,m as $S,n as zS,p as tae,o as nae,q as rae}from"./reactflow-10657c96.js";import{_ as go,a as _S,b as oB,u as aB,c as iB,D as sB,C as lB,P as cB,d as oae,F as aae,i as Jc,e as de}from"./reactdrop-61b79f7b.js";import{p as v4,c as iae}from"./pdfjs-36654f0a.js";var kVt=Roe((Vo,qo)=>{function sae(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(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 r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var uB={exports:{}},Qb={};/**
|
|||
|
|
* @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 lae=p,cae=Symbol.for("react.element"),uae=Symbol.for("react.fragment"),dae=Object.prototype.hasOwnProperty,fae=lae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,pae={key:!0,ref:!0,__self:!0,__source:!0};function dB(e,t,n){var r,o={},a=null,i=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)dae.call(t,r)&&!pae.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:cae,type:e,key:a,ref:i,props:o,_owner:fae.current}}Qb.Fragment=uae;Qb.jsx=dB;Qb.jsxs=dB;uB.exports=Qb;var d=uB.exports,b4={},fB,mO=ui;fB=b4.createRoot=mO.createRoot,b4.hydrateRoot=mO.hydrateRoot;var hae=typeof global=="object"&&global&&global.Object===Object&&global;const pB=hae;var gae=typeof self=="object"&&self&&self.Object===Object&&self,mae=pB||gae||Function("return this")();const Hi=mae;var vae=Hi.Symbol;const Ii=vae;function bae(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var yae=Array.isArray;const Qc=yae;var hB=Object.prototype,xae=hB.hasOwnProperty,Aae=hB.toString,Rp=Ii?Ii.toStringTag:void 0;function wae(e){var t=xae.call(e,Rp),n=e[Rp];try{e[Rp]=void 0;var r=!0}catch{}var o=Aae.call(e);return r&&(t?e[Rp]=n:delete e[Rp]),o}var Cae=Object.prototype,Sae=Cae.toString;function Eae(e){return Sae.call(e)}var kae="[object Null]",Oae="[object Undefined]",vO=Ii?Ii.toStringTag:void 0;function xu(e){return e==null?e===void 0?Oae:kae:vO&&vO in Object(e)?wae(e):Eae(e)}function Rs(e){return e!=null&&typeof e=="object"}var Tae="[object Symbol]";function jae(e){return typeof e=="symbol"||Rs(e)&&xu(e)==Tae}var Nae=1/0,bO=Ii?Ii.prototype:void 0,yO=bO?bO.toString:void 0;function gB(e){if(typeof e=="string")return e;if(Qc(e))return bae(e,gB)+"";if(jae(e))return yO?yO.call(e):"";var t=e+"";return t=="0"&&1/e==-Nae?"-0":t}function Pae(e){return e==null?"":gB(e)}var Rae=0;function Rc(e){var t=++Rae;return Pae(e)+t}function Mae(){this.__data__=[],this.size=0}function HS(e,t){return e===t||e!==e&&t!==t}function Zb(e,t){for(var n=e.length;n--;)if(HS(e[n][0],t))return n;return-1}var Lae=Array.prototype,Dae=Lae.splice;function Iae(e){var t=this.__data__,n=Zb(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Dae.call(t,n,1),--this.size,!0}function Fae(e){var t=this.__data__,n=Zb(t,e);return n<0?void 0:t[n][1]}function Bae(e){return Zb(this.__data__,e)>-1}function $ae(e,t){var n=this.__data__,r=Zb(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Gs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Gs.prototype.clear=Mae;Gs.prototype.delete=Iae;Gs.prototype.get=Fae;Gs.prototype.has=Bae;Gs.prototype.set=$ae;function zae(){this.__data__=new Gs,this.size=0}function _ae(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hae(e){return this.__data__.get(e)}function Uae(e){return this.__data__.has(e)}function um(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Wae="[object AsyncFunction]",Vae="[object Function]",qae="[object GeneratorFunction]",Gae="[object Proxy]";function mB(e){if(!um(e))return!1;var t=xu(e);return t==Vae||t==qae||t==Wae||t==Gae}var Kae=Hi["__core-js_shared__"];const PA=Kae;var xO=function(){var e=/[^.]+$/.exec(PA&&PA.keys&&PA.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Xae(e){return!!xO&&xO in e}var Yae=Function.prototype,Jae=Yae.toString;function Au(e){if(e!=null){try{return Jae.call(e)}catch{}try{return e+""}catch{}}return""}var Qae=/[\\^$.*+?()[\]{}|]/g,Zae=/^\[object .+?Constructor\]$/,eie=Function.prototype,tie=Object.prototype,nie=eie.toString,rie=tie.hasOwnProperty,oie=RegExp("^"+nie.call(rie).replace(Qae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function aie(e){if(!um(e)||Xae(e))return!1;var t=mB(e)?oie:Zae;return t.test(Au(e))}function iie(e,t){return e==null?void 0:e[t]}function wu(e,t){var n=iie(e,t);return aie(n)?n:void 0}var sie=wu(Hi,"Map");const Bh=sie;var lie=wu(Object,"create");const $h=lie;function cie(){this.
|
|||
|
|
* @remix-run/router v1.10.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 Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ln.apply(this,arguments)}var Xn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Xn||(Xn={}));const zO="popstate";function bce(e){e===void 0&&(e={});function t(r,o){let{pathname:a,search:i,hash:s}=r.location;return _h("",{pathname:a,search:i,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:tu(o)}return xce(t,n,null,e)}function Ot(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function eu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function yce(){return Math.random().toString(36).substr(2,8)}function _O(e,t){return{usr:e.state,key:e.key,idx:t}}function _h(e,t,n,r){return n===void 0&&(n=null),Ln({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ks(t):t,{state:n,key:t&&t.key||r||yce()})}function tu(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ks(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function xce(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s=Xn.Pop,l=null,c=u();c==null&&(c=0,i.replaceState(Ln({},i.state,{idx:c}),""));function u(){return(i.state||{idx:null}).idx}function f(){s=Xn.Pop;let y=u(),A=y==null?null:y-c;c=y,l&&l({action:s,location:m.location,delta:A})}function h(y,A){s=Xn.Push;let w=_h(m.location,y,A);n&&n(w,y),c=u()+1;let k=_O(w,c),C=m.createHref(w);try{i.pushState(k,"",C)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(C)}a&&l&&l({action:s,location:m.location,delta:1})}function v(y,A){s=Xn.Replace;let w=_h(m.location,y,A);n&&n(w,y),c=u();let k=_O(w,c),C=m.createHref(w);i.replaceState(k,"",C),a&&l&&l({action:s,location:m.location,delta:0})}function b(y){let A=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof y=="string"?y:tu(y);return Ot(A,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,A)}let m={get action(){return s},get location(){return e(o,i)},listen(y){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(zO,f),l=y,()=>{o.removeEventListener(zO,f),l=null}},createHref(y){return t(o,y)},createURL:b,encodeLocation(y){let A=b(y);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:h,replace:v,go(y){return i.go(y)}};return m}var Yn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Yn||(Yn={}));const Ace=new Set(["lazy","caseSensitive","path","id","index","children"]);function wce(e){return e.index===!0}function S4(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,a)=>{let i=[...n,a],s=typeof o.id=="string"?o.id:i.join("-");if(Ot(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ot(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),wce(o)){let l=Ln({},o,t(o),{id:s});return r[s]=l,l}else{let l=Ln({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=S4(o.children,t,i,r)),l}})}function kd(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ks(t):t,o=Fi(r.pathname||"/",n);if(o==null)return null;let a=IB(e);Sce(a);let i=null;for(let s=0;i==null&&s<a.length;++s)i=Mce(a[s],Dce(o));return i}function Cce(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function IB(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(a,i,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};l.relativePath.startsWith("/")&&(Ot(l.relativePath.startsWith(r),'Absolute route path "'+l.
|
|||
|
|
`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!Qa(i))return o();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:s,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return o()}}}Ot(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=O4(r.formData),c=r.formData;else if(r.body instanceof FormData)l=O4(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=GO(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=GO(l)}catch{return o()}let u={formMethod:i,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Qa(u.formMethod))return{path:n,submission:u};let f=Ks(n);return t&&f.search&&YS(f.search)&&l.append("index",""),f.search="?"+l,{path:tu(f),submission:u}}function Jce(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function WO(e,t,n,r,o,a,i,s,l,c,u,f,h,v){let b=v?Object.values(v)[0]:h?Object.values(h)[0]:void 0,m=e.createURL(t.location),y=e.createURL(o),A=v?Object.keys(v)[0]:void 0,k=Jce(n,A).filter((E,S)=>{if(E.route.lazy)return!0;if(E.route.loader==null)return!1;if(Qce(t.loaderData,t.matches[S],E)||i.some(P=>P===E.route.id))return!0;let O=t.matches[S],T=E;return VO(E,Ln({currentUrl:m,currentParams:O.params,nextUrl:y,nextParams:T.params},r,{actionResult:b,defaultShouldRevalidate:a||m.pathname+m.search===y.pathname+y.search||m.search!==y.search||HB(O,T)}))}),C=[];return l.forEach((E,S)=>{if(!n.some(L=>L.route.id===E.routeId))return;let O=kd(u,E.path,f);if(!O){C.push({key:S,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let T=t.fetchers.get(S),P=T4(O,E.path),N=!1;c.has(S)?N=!1:s.includes(S)?N=!0:T&&T.state!=="idle"&&T.data===void 0?N=a:N=VO(P,Ln({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:b,defaultShouldRevalidate:a})),N&&C.push({key:S,routeId:E.routeId,path:E.path,matches:O,match:P,controller:new AbortController})}),[k,C]}function Qce(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function HB(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function VO(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function qO(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Ot(o,"No route found in manifest");let a={};for(let i in r){let l=o[i]!==void 0&&i!=="hasErrorBoundary";eu(!l,'Route "'+o.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!l&&!Ace.has(i)&&(a[i]=r[i])}Object.assign(o,a),Object.assign(o,Ln({},t(o),{lazy:void 0}))}async function Mp(e,t,n,r,o,a,i,s){s===void 0&&(s={});let l,c,u,f=b=>{let m,y=new Promise((A,w)=>m=w);return u=()=>m(),t.signal.addEventListener("abort",u),Promise.race([b({request:t,params:n.params,context:s.requestContext}),y])};try{let b=n.route[e];if(n.route.lazy)if(b){let m,y=await Promise.all([f(b).catch(A=>{m=A}),qO(n.route,a,o)]);if(m)throw m;c=y[0]}else if(await qO(n.route,a,o),b=n.route[e],b)c=await f(b);else if(e==="action"){let m=new URL(t.url),y=m.pathname+m.search;throw ba(405,{method:t.method,pathname:y,routeId:n.route.id})}else return{type:Yn.data,data:void 0};else if(b)c=await f(b);else{let m=new URL(t.url),y=m.pathname+m.search;throw ba(404,{pathname:y})}Ot(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(b){l=Yn.error,c=b}finally{u&&t.signal.removeEventListener("abort",u)}if(nue(c)){
|
|||
|
|
* React Router v6.17.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 Gd(){return Gd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gd.apply(this,arguments)}const fm=p.createContext(null),JS=p.createContext(null),Su=p.createContext(null),ry=p.createContext(null),Ui=p.createContext({outlet:null,matches:[],isDataRoute:!1}),VB=p.createContext(null);function lue(e,t){let{relative:n}=t===void 0?{}:t;Rf()||Ot(!1);let{basename:r,navigator:o}=p.useContext(Su),{hash:a,pathname:i,search:s}=oy(e,{relative:n}),l=i;return r!=="/"&&(l=i==="/"?r:xs([r,i])),o.createHref({pathname:l,search:s,hash:a})}function Rf(){return p.useContext(ry)!=null}function Vl(){return Rf()||Ot(!1),p.useContext(ry).location}function qB(e){p.useContext(Su).static||p.useLayoutEffect(e)}function Ms(){let{isDataRoute:e}=p.useContext(Ui);return e?wue():cue()}function cue(){Rf()||Ot(!1);let e=p.useContext(fm),{basename:t,navigator:n}=p.useContext(Su),{matches:r}=p.useContext(Ui),{pathname:o}=Vl(),a=JSON.stringify(dm(r).map(l=>l.pathnameBase)),i=p.useRef(!1);return qB(()=>{i.current=!0}),p.useCallback(function(l,c){if(c===void 0&&(c={}),!i.current)return;if(typeof l=="number"){n.go(l);return}let u=ny(l,JSON.parse(a),o,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:xs([t,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[t,n,a,o,e])}const uue=p.createContext(null);function due(e){let t=p.useContext(Ui).outlet;return t&&p.createElement(uue.Provider,{value:e},t)}function Xs(){let{matches:e}=p.useContext(Ui),t=e[e.length-1];return t?t.params:{}}function oy(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=p.useContext(Ui),{pathname:o}=Vl(),a=JSON.stringify(dm(r).map(i=>i.pathnameBase));return p.useMemo(()=>ny(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function fue(e,t,n){Rf()||Ot(!1);let{navigator:r}=p.useContext(Su),{matches:o}=p.useContext(Ui),a=o[o.length-1],i=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let l=Vl(),c;if(t){var u;let m=typeof t=="string"?Ks(t):t;s==="/"||(u=m.pathname)!=null&&u.startsWith(s)||Ot(!1),c=m}else c=l;let f=c.pathname||"/",h=s==="/"?f:f.slice(s.length)||"/",v=kd(e,{pathname:h}),b=vue(v&&v.map(m=>Object.assign({},m,{params:Object.assign({},i,m.params),pathname:xs([s,r.encodeLocation?r.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?s:xs([s,r.encodeLocation?r.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),o,n);return t&&b?p.createElement(ry.Provider,{value:{location:Gd({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Xn.Pop}},b):b}function pue(){let e=yue(),t=BB(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,a)}const hue=p.createElement(pue,null);class gue extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?p.createElement(Ui.Provider,{value:this.props.routeContext},p.createElement(VB.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function mue(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(fm);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Ui.Provider,{value:
|
|||
|
|
* React Router DOM v6.17.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 Kd(){return Kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kd.apply(this,arguments)}function JB(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function kue(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Oue(e,t){return e.button===0&&(!t||t==="_self")&&!kue(e)}const Tue=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],jue=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];function QB(e,t){return Xce({basename:t==null?void 0:t.basename,future:Kd({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:bce({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Nue(),routes:e,mapRouteProperties:Eue,window:t==null?void 0:t.window}).initialize()}function Nue(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Kd({},t,{errors:Pue(t.errors)})),t}function Pue(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new XS(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 i=new a(o.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let a=new Error(o.message);a.stack="",n[r]=a}}else n[r]=o;return n}const ZB=p.createContext({isTransitioning:!1}),Rue="startTransition",eT=Pa[Rue];function Mue(e){eT?eT(e):e()}class Lue{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function Due(e){let{fallbackElement:t,router:n,future:r}=e,[o,a]=p.useState(n.state),[i,s]=p.useState(),[l,c]=p.useState({isTransitioning:!1}),[u,f]=p.useState(),[h,v]=p.useState(),[b,m]=p.useState(),{v7_startTransition:y}=r||{},A=p.useCallback(S=>{y?Mue(S):S()},[y]),w=p.useCallback((S,O)=>{let{unstable_viewTransitionOpts:T}=O;!T||n.window==null||typeof n.window.document.startViewTransition!="function"?A(()=>a(S)):h&&u?(u.resolve(),h.skipTransition(),m({state:S,currentLocation:T.currentLocation,nextLocation:T.nextLocation})):(s(S),c({isTransitioning:!0,currentLocation:T.currentLocation,nextLocation:T.nextLocation}))},[A,h,u,n.window]);p.useLayoutEffect(()=>n.subscribe(w),[n,w]),p.useEffect(()=>{l.isTransitioning&&f(new Lue)},[l.isTransitioning]),p.useEffect(()=>{if(u&&i&&n.window){let S=i,O=u.promise,T=n.window.document.startViewTransition(async()=>{A(()=>a(S)),await O});T.finished.finally(()=>{f(void 0),v(void 0),s(void 0),c({isTransitioning:!1})}),v(T)}},[A,i,u,n.window]),p.useEffect(()=>{u&&i&&o.location.key===i.location.key&&u.resolve()},[u,h,o.location,i]),p.useEffect(()=>{!l.isTransitioning&&b&&(s(b.state),c({isTransitioning:!0,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),m(void 0))},[l.isTransitioning,b]);let k=p.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:S=>n.navigate(S),push:(S,O,T)=>n.navigate(S,{state:O,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(S,O,T)=>n.navigate(S,{replace:!0,state:O,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[n]),C=n.basename||"/",E=p.useMemo(()=>({router:n,navigator:k,static:!1,basename:C}),[n,k,C]);return p.createElement(p.Fragment,null,p.createElement(fm.Provider,{value:E},p.createElement(JS.Provider,{value:o},p.createElement(ZB.Provider,{value:l},p.createElement(Sue,{basename:C,location:o.location,navigationType:o.historyAction,navigator:k},o.initialized?p.createElement(Iue,{routes:n.routes,state:o}):t)))),null)}function Iue(e){let{routes:t,state:n}=e;return fue(t,void 0,n)}const Fue=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Bue=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ls=
|
|||
|
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(m=>` - ${m}`).join(`
|
|||
|
|
`)].join(`
|
|||
|
|
`));let h=u.props,v=typeof(h==null?void 0:h.className)=="function"?(...m)=>Cv(h==null?void 0:h.className(...m),l.className):Cv(h==null?void 0:h.className,l.className),b=v?{className:v}:{};return p.cloneElement(u,Object.assign({},a$(u.props,N4(FA(l,["ref"]))),f,c,{ref:o(u.ref,c.ref)},b))}return p.createElement(a,Object.assign({},FA(l,["ref"]),a!==p.Fragment&&c,a!==p.Fragment&&f),u)}function o$(){let e=p.useRef([]),t=p.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function ide(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function a$(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...a){let i=n[r];for(let s of i){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...a)}}});return t}function za(e){var t;return Object.assign(p.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function N4(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function FA(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let sde="div";var i$=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(i$||{});function lde(e,t){var n;let{features:r=1,...o}=e,a={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return di({ourProps:a,theirProps:o,slot:{},defaultTag:sde,name:"Hidden"})}let cde=za(lde),n6=p.createContext(null);n6.displayName="OpenClosedContext";var Ir=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ir||{});function ay(){return p.useContext(n6)}function r6({value:e,children:t}){return W.createElement(n6.Provider,{value:e},t)}function s$(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&ude(n)?!1:r}function ude(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function dde(e){throw new Error("Unexpected object: "+e)}var mo=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(mo||{});function fde(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=r??-1;switch(e.focus){case 0:{for(let a=0;a<n.length;++a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 1:{for(let a=o-1;a>=0;--a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 2:{for(let a=o+1;a<n.length;++a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 3:{for(let a=n.length-1;a>=0;--a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 4:{for(let a=0;a<n.length;++a)if(t.resolveId(n[a],a,n)===e.id)return a;return r}case 5:return null;default:dde(e)}}function l$(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))u$(n,c$(t,r),o);return n}function c$(e,t){return e?e+"["+t+"]":t}function u$(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())u$(e,c$(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):l$(n,t,e)}var Mn=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="A
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/var gfe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const mfe=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Ke=(e,t)=>{const n=p.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:s="",children:l,...c},u)=>p.createElement("svg",{ref:u,...gfe,width:o,height:o,stroke:r,strokeWidth:i?Number(a)*24/Number(o):a,className:["lucide",`lucide-${mfe(e)}`,s].join(" "),...c},[...t.map(([f,h])=>p.createElement(f,h)),...Array.isArray(l)?l:[l]]));return n.displayName=`${e}`,n};/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const vfe=Ke("ArrowDownUp",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"m21 8-4-4-4 4",key:"1c9v7m"}],["path",{d:"M17 4v16",key:"7dpous"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const g$=Ke("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const bfe=Ke("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const yfe=Ke("BookMarked",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["polyline",{points:"10 2 10 10 13 7 16 10 16 2",key:"13o6vz"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const xfe=Ke("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Afe=Ke("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const wfe=Ke("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Cfe=Ke("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const gm=Ke("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const m$=Ke("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Sfe=Ke("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const d6=Ke("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const v$=Ke("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Sv=Ke("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Efe=Ke("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const b$=Ke("CircleStop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{width:"6",height:"6",x:"9",y:"9",key:"1wrtvo"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const y$=Ke("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const kfe=Ke("Clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const dT=Ke("CloudDownload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m8 17 4 4 4-4",key:"1ul180"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const f6=Ke("Combine",[["rect",{width:"8",height:"8",x:"2",y:"2",rx:"2",key:"z1hh3n"}],["path",{d:"M14 2c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2",key:"83orz6"}],["path",{d:"M20 2c1.1 0 2 .9 2 2v4c0 1.1-.9 2-2 2",key:"k86dmt"}],["path",{d:"M10 18H5c-1.7 0-3-1.3-3-3v-1",key:"6vokjl"}],["polyline",{points:"7 21 10 18 7 15",key:"1k02g0"}],["rect",{width:"8",height:"8",x:"14",y:"14",rx:"2",key:"1fa9i4"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Ofe=Ke("Compass",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76",key:"m9r19z"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const x$=Ke("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Tfe=Ke("Cpu",[["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"9",y:"9",width:"6",height:"6",key:"o3kz5p"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const A$=Ke("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const jfe=Ke("Eraser",[["path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",key:"182aya"}],["path",{d:"M22 21H7",key:"t4ddhn"}],["path",{d:"m5 11 9 9",key:"1mo9qw"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const cy=Ke("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Nfe=Ke("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Pfe=Ke("FileSearch2",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Rfe=Ke("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Mfe=Ke("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const p6=Ke("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Lfe=Ke("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Dfe=Ke("Fingerprint",[["path",{d:"M2 12C2 6.5 6.5 2 12 2a10 10 0 0 1 8 4",key:"1jc9o5"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12c0-.7.12-1.37.34-2",key:"1mxgy1"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2c0 .47 0 1.17-.02 2",key:"1fgabc"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Ife=Ke("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Ffe=Ke("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Bfe=Ke("Hammer",[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const $fe=Ke("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const zfe=Ke("Import",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m8 11 4 4 4-4",key:"1dohi6"}],["path",{d:"M8 5H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-4",key:"1ywtjm"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const h6=Ke("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const _fe=Ke("LaptopMinimal",[["rect",{width:"18",height:"12",x:"3",y:"4",rx:"2",ry:"2",key:"1qhy41"}],["line",{x1:"2",x2:"22",y1:"20",y2:"20",key:"ni3hll"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Hfe=Ke("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Ufe=Ke("LayoutPanelLeft",[["rect",{width:"7",height:"18",x:"3",y:"3",rx:"1",key:"2obqm"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Wfe=Ke("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Vfe=Ke("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const R4=Ke("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const qfe=Ke("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const w$=Ke("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Gfe=Ke("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Kfe=Ke("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Xfe=Ke("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const g6=Ke("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z",key:"ymcmye"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const m6=Ke("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Yfe=Ke("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Jfe=Ke("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Qfe=Ke("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const mm=Ke("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Zfe=Ke("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const epe=Ke("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const tpe=Ke("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const v6=Ke("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const npe=Ke("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const C$=Ke("Variable",[["path",{d:"M8 21s-4-3-4-9 4-9 4-9",key:"uto9ud"}],["path",{d:"M16 3s4 3 4 9-4 9-4 9",key:"4w2vsq"}],["line",{x1:"15",x2:"9",y1:"9",y2:"15",key:"f7djnv"}],["line",{x1:"9",x2:"15",y1:"9",y2:"15",key:"1shsy8"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const rpe=Ke("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const ope=Ke("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const Pi=Ke("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|||
|
|
* @license lucide-react v0.352.0 - ISC
|
|||
|
|
*
|
|||
|
|
* This source code is licensed under the ISC license.
|
|||
|
|
* See the LICENSE file in the root directory of this source tree.
|
|||
|
|
*/const ape=Ke("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function ipe({title:e,list:t=[],id:n,removeAlert:r}){const[o,a]=p.useState(!0);return p.useEffect(()=>{o&&setTimeout(()=>{a(!1),setTimeout(()=>{r(n)},500)},5e3)},[n,r,o]),d.jsx(Eu,{className:"relative",show:o,appear:!0,enter:"transition-transform duration-500 ease-out",enterFrom:"transform translate-x-[-100%]",enterTo:"transform translate-x-0",leave:"transition-transform duration-500 ease-in",leaveFrom:"transform translate-x-0",leaveTo:"transform translate-x-[-100%]",children:d.jsx("div",{onClick:()=>{a(!1),setTimeout(()=>{r(n)},500)},className:"error-build-message",children:d.jsxs("div",{className:"flex",children:[d.jsx("div",{className:"flex-shrink-0",children:d.jsx(y$,{className:"error-build-message-circle","aria-hidden":"true"})}),d.jsxs("div",{className:"ml-3",children:[d.jsx("h3",{className:"error-build-foreground",children:e}),(t==null?void 0:t.length)!==0&&(t!=null&&t.some(i=>i!=null))?d.jsx("div",{className:"error-build-message-div",children:d.jsx("ul",{className:"error-build-message-list",children:t.map((i,s)=>d.jsx("li",{children:i},s))})}):d.jsx(d.Fragment,{})]})]})})})}function spe({title:e,link:t="",id:n,removeAlert:r}){const[o,a]=p.useState(!0);return p.useEffect(()=>{o&&setTimeout(()=>{a(!1),setTimeout(()=>{r(n)},500)},5e3)},[n,r,o]),d.jsx(Eu,{show:o,enter:"transition-transform duration-500 ease-out",enterFrom:"transform translate-x-[-100%]",enterTo:"transform translate-x-0",leave:"transition-transform duration-500 ease-in",leaveFrom:"transform translate-x-0",leaveTo:"transform translate-x-[-100%]",children:d.jsx("div",{onClick:()=>{a(!1),r(n)},className:"mt-6 w-96 rounded-md bg-info-background p-4 shadow-xl",children:d.jsxs("div",{className:"flex",children:[d.jsx("div",{className:"flex-shrink-0",children:d.jsx(h6,{className:"h-5 w-5 text-status-blue ","aria-hidden":"true"})}),d.jsxs("div",{className:"ml-3 flex-1 md:flex md:justify-between",children:[d.jsx("p",{className:"text-sm text-info-foreground",children:e}),d.jsx("p",{className:"mt-3 text-sm md:ml-6 md:mt-0",children:t!==""?d.jsx(Ls,{to:t,className:"whitespace-nowrap font-medium text-info-foreground hover:text-accent-foreground",children:"Details"}):d.jsx(d.Fragment,{})})]})]})})})}function lpe({title:e,id:t,removeAlert:n}){const[r,o]=p.useState(!0);return p.useEffect(()=>{r&&setTimeout(()=>{o(!1),setTimeout(()=>{n(t)},500)},5e3)},[t,n,r]),d.jsx(Eu,{show:r,enter:"transition-transform duration-500 ease-out",enterFrom:"transform translate-x-[-100%]",enterTo:"transform translate-x-0",leave:"transition-transform duration-500 ease-in",leaveFrom:"transform translate-x-0",leaveTo:"transform translate-x-[-100%]",children:d.jsx("div",{onClick:()=>{o(!1),n(t)},className:"success-alert",children:d.jsxs("div",{className:"flex",children:[d.jsx("div",{className:"flex-shrink-0",children:d.jsx(v$,{className:"success-alert-icon","aria-hidden":"true"})}),d.jsx("div",{className:"ml-3",children:d.jsx("p",{className:"success-alert-message",children:e})})]})})})}const cpe={errorData:{title:"",list:[]},setErrorData:()=>{},errorOpen:!1,setErrorOpen:()=>{},noticeData:{title:"",link:""},setNoticeData:()=>{},noticeOpen:!1,setNoticeOpen:()=>{},successData:{title:""},setSuccessData:()=>{},successOpen:!1,setSuccessOpen:()=>{},notificationCenter:!1,setNotificationCenter:()=>{},notificationList:[],pushNotificationList:()=>{},clearNotificationList:()=>{},removeFromNotificationList:()=>{}},wt=p.createContext(cpe);function upe({children:e}){const[t,n]=p.useState({title:"",list:[]}),[r,o]=p.useState(!1),[a,i]=p.useState({title:"",link:""}),[s,l]=p.useState(!1),[c,u]=p.useState({title:""}),[f,h]=p.useState(!1),[v,b]=p.useState(!1),[m,y]=p.useState([]),A=O=>{y(T=>{let P=xt(T);return P.unshift(O),P})};function w(O){n(O),o(!0),b(!0),A({type:"error",title:O.title||" ",list:O.list,id:Rc()})}function k(O){O.title&&O.title!==""&&(i(O),l(!0),b(!0),A({type:"notice",title:O.title,link:O.l
|
|||
|
|
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&she[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},vT=Symbol("internals");function Fp(e){return e&&String(e).trim().toLowerCase()}function J0(e){return e===!1||e==null?e:Ce.isArray(e)?e.map(J0):String(e)}function che(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const uhe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function HA(e,t,n,r,o){if(Ce.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Ce.isString(t)){if(Ce.isString(r))return t.indexOf(r)!==-1;if(Ce.isRegExp(r))return r.test(t)}}function dhe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function fhe(e,t){const n=Ce.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,i){return this[r].call(this,t,o,a,i)},configurable:!0})})}class hy{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(s,l,c){const u=Fp(l);if(!u)throw new Error("header name must be a non-empty string");const f=Ce.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=J0(s))}const i=(s,l)=>Ce.forEach(s,(c,u)=>a(c,u,l));return Ce.isPlainObject(t)||t instanceof this.constructor?i(t,n):Ce.isString(t)&&(t=t.trim())&&!uhe(t)?i(lhe(t),n):t!=null&&a(n,t,r),this}get(t,n){if(t=Fp(t),t){const r=Ce.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return che(o);if(Ce.isFunction(n))return n.call(this,o,r);if(Ce.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Fp(t),t){const r=Ce.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||HA(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(i){if(i=Fp(i),i){const s=Ce.findKey(r,i);s&&(!n||HA(r,r[s],s,n))&&(delete r[s],o=!0)}}return Ce.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||HA(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return Ce.forEach(this,(o,a)=>{const i=Ce.findKey(r,a);if(i){n[i]=J0(o),delete n[a];return}const s=t?dhe(a):String(a).trim();s!==a&&delete n[a],n[s]=J0(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ce.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Ce.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|||
|
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[vT]=this[vT]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=Fp(i);r[s]||(fhe(o,i),r[s]=!0)}return Ce.isArray(t)?t.forEach(a):a(t),this}}hy.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ce.reduceDescriptors(hy.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ce.freezeMethods(hy);const As=hy;function UA(e,t){const n=this||A6,r=t||n,o=As.from(r.headers);let a=r.data;return Ce.forEach(e,function(s){a=s.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function z$(e){return!!(e&&e.__CANCEL__)}function bm(e,t,n){Wt.call(this,e??"canceled",Wt.ERR_CANCELED,t,n),this.name="CanceledError"}Ce.inherits(bm,Wt,{__CANCEL__:!0});function phe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Wt("Request failed with status code "+n.status,[Wt.ERR_BAD_REQUEST,Wt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const hhe=wi.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const i=[e+"="+encodeURIComponent(t)];Ce.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),Ce.isString(r)&&i.push("path="+r),Ce.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ghe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mhe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _$(e,t){return e&&!ghe(t)?mhe(e,t):t}const vhe=wi.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(a){let i=a;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const s=Ce.isString(i)?o(i):i;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function bhe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function yhe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[a];i||(i=c),n[o]=l,r[o]=c;let f=a,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i<t)return;const v=u&&c-u;return v?Math.round(h*1e3/v):void 0}}function bT(e,t){let n=0;const r=yhe(50,250);return o=>{const a=o.loaded,i=o.lengthComputable?o.total:void 0,s=a-n,l=r(s),c=a<=i;n=a;const u={loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&c?(i-a)/l:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const xhe=typeof XMLHttpRequest<"u",Ahe=xhe&&function(e){return new Promise(function(n,r){let o=e.data;const a=As.from(e.headers).normalize();let{responseType:i,withXSRFToken:s}=e,l;function c(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let u;if(Ce.isFormData(o)){if(wi.hasStandardBrowserEnv||wi.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if((u=a.getContentType())!==!1){const[m,...y]=u?u.split(";").map(A=>A.trim()).filter(Boolean):[];a.setContentType([m||"multipart/form-data",...y].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(m+":"+y))}const h=_$(e.baseURL,e.url);f.open(e.method.toUpperCase(),I$(h,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function v(){if(!f)return;const m=As.from("getAllResponseHeaders
|
|||
|
|
`+a.map(yT).join(`
|
|||
|
|
`):" "+yT(a[0]):"as no adapter specified";throw new Wt("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:D4};function WA(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new bm(null,e)}function xT(e){return WA(e),e.headers=As.from(e.headers),e.data=UA.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),H$.getAdapter(e.adapter||A6.adapter)(e).then(function(r){return WA(e),r.data=UA.call(e,e.transformResponse,r),r.headers=As.from(r.headers),r},function(r){return z$(r)||(WA(e),r&&r.response&&(r.response.data=UA.call(e,e.transformResponse,r.response),r.response.headers=As.from(r.response.headers))),Promise.reject(r)})}const AT=e=>e instanceof As?{...e}:e;function Jd(e,t){t=t||{};const n={};function r(c,u,f){return Ce.isPlainObject(c)&&Ce.isPlainObject(u)?Ce.merge.call({caseless:f},c,u):Ce.isPlainObject(u)?Ce.merge({},u):Ce.isArray(u)?u.slice():u}function o(c,u,f){if(Ce.isUndefined(u)){if(!Ce.isUndefined(c))return r(void 0,c,f)}else return r(c,u,f)}function a(c,u){if(!Ce.isUndefined(u))return r(void 0,u)}function i(c,u){if(Ce.isUndefined(u)){if(!Ce.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(c,u)=>o(AT(c),AT(u),!0)};return Ce.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||o,h=f(e[u],t[u],u);Ce.isUndefined(h)&&f!==s||(n[u]=h)}),n}const U$="1.6.8",w6={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{w6[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const wT={};w6.transitional=function(t,n,r){function o(a,i){return"[Axios v"+U$+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,s)=>{if(t===!1)throw new Wt(o(i," has been removed"+(n?" in "+n:"")),Wt.ERR_DEPRECATED);return n&&!wT[i]&&(wT[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,i,s):!0}};function Che(e,t,n){if(typeof e!="object")throw new Wt("options must be an object",Wt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const s=e[a],l=s===void 0||i(s,a,e);if(l!==!0)throw new Wt("option "+a+" must be "+l,Wt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Wt("Unknown option "+a,Wt.ERR_BAD_OPTION)}}const I4={assertOptions:Che,validators:w6},hl=I4.validators;class Ev{constructor(t){this.defaults=t,this.interceptors={request:new mT,response:new mT}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|||
|
|
`+a):r.stack=a}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Jd(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&I4.assertOptions(r,{silentJSONParsing:hl.transitional(hl.boolean),forcedJSONParsing:hl.transitional(hl.boolean),clarifyTimeoutError:hl.transitional(hl.boolean)},!1),o!=null&&(Ce.isFunction(o)?n.paramsSerializer={serialize:o}:I4.assertOptions(o,{encode:hl.function,serialize:hl.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&Ce.merge(a.common,a[n.method]);a&&Ce.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),n.headers=As.concat(i,a);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,f=0,h;if(!l){const b=[xT.bind(this),void 0];for(b.unshift.apply(b,s),b.push.apply(b,c),h=b.length,u=Promise.resolve(n);f<h;)u=u.then(b[f++],b[f++]);return u}h=s.length;let v=n;for(f=0;f<h;){const b=s[f++],m=s[f++];try{v=b(v)}catch(y){m.call(this,y);break}}try{u=xT.call(this,v)}catch(b){return Promise.reject(b)}for(f=0,h=c.length;f<h;)u=u.then(c[f++],c[f++]);return u}getUri(t){t=Jd(this.defaults,t);const n=_$(t.baseURL,t.url);return I$(n,t.params,t.paramsSerializer)}}Ce.forEach(["delete","get","head","options"],function(t){Ev.prototype[t]=function(n,r){return this.request(Jd(r||{},{method:t,url:n,data:(r||{}).data}))}});Ce.forEach(["post","put","patch"],function(t){function n(r){return function(a,i,s){return this.request(Jd(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Ev.prototype[t]=n(),Ev.prototype[t+"Form"]=n(!0)});const Q0=Ev;class C6{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{r.subscribe(s),a=s}).then(o);return i.cancel=function(){r.unsubscribe(a)},i},t(function(a,i,s){r.reason||(r.reason=new bm(a,i,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new C6(function(o){t=o}),cancel:t}}}const She=C6;function Ehe(e){return function(n){return e.apply(null,n)}}function khe(e){return Ce.isObject(e)&&e.isAxiosError===!0}const F4={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(F4).forEach(([e,t])=>{F4[t]=e});const Ohe=F4;function W$(e){const t=new Q0(e),n=S$(Q0.prot
|
|||
|
|
\r \u2028\u2029`;for(Yu={},t=0;t<16;++t)Yu[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)Yu[n.charAt(t)]=t;for(t=0;t<r.length;++t)Yu[r.charAt(t)]=-1}var o=[],a=0,i=0;for(t=0;t<e.length;++t){var s=e.charAt(t);if(s=="=")break;if(s=Yu[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+t);a|=s,++i>=2?(o[o.length]=a,a=0,i=0):a<<=4}}if(i)throw new Error("Hex encoding incomplete: 4 bits missing");return o}},hc,B4={decode:function(e){var t;if(hc===void 0){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=`= \f
|
|||
|
|
\r \u2028\u2029`;for(hc=Object.create(null),t=0;t<64;++t)hc[n.charAt(t)]=t;for(hc["-"]=62,hc._=63,t=0;t<r.length;++t)hc[r.charAt(t)]=-1}var o=[],a=0,i=0;for(t=0;t<e.length;++t){var s=e.charAt(t);if(s=="=")break;if(s=hc[s],s!=-1){if(s===void 0)throw new Error("Illegal character at offset "+t);a|=s,++i>=4?(o[o.length]=a>>16,o[o.length]=a>>8&255,o[o.length]=a&255,a=0,i=0):a<<=6}}switch(i){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:o[o.length]=a>>10;break;case 3:o[o.length]=a>>16,o[o.length]=a>>8&255;break}return o},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=B4.re.exec(e);if(t)if(t[1])e=t[1];else if(t[2])e=t[2];else throw new Error("RegExp out of sync");return B4.decode(e)}},Ju=1e13,lh=function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,n){var r=this.buf,o=r.length,a,i;for(a=0;a<o;++a)i=r[a]*t+n,i<Ju?n=0:(n=0|i/Ju,i-=n*Ju),r[a]=i;n>0&&(r[a]=n)},e.prototype.sub=function(t){var n=this.buf,r=n.length,o,a;for(o=0;o<r;++o)a=n[o]-t,a<0?(a+=Ju,t=1):t=0,n[o]=a;for(;n[n.length-1]===0;)n.pop()},e.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var n=this.buf,r=n[n.length-1].toString(),o=n.length-2;o>=0;--o)r+=(Ju+n[o]).toString().substring(1);return r},e.prototype.valueOf=function(){for(var t=this.buf,n=0,r=t.length-1;r>=0;--r)n=n*Ju+t[r];return n},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),Q$="…",Tge=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,jge=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Fd(e,t){return e.length>t&&(e=e.substring(0,t)+Q$),e}var qA=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},e.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},e.prototype.hexDump=function(t,n,r){for(var o="",a=t;a<n;++a)if(o+=this.hexByte(this.get(a)),r!==!0)switch(a&15){case 7:o+=" ";break;case 15:o+=`
|
|||
|
|
`;break;default:o+=" "}return o},e.prototype.isASCII=function(t,n){for(var r=t;r<n;++r){var o=this.get(r);if(o<32||o>176)return!1}return!0},e.prototype.parseStringISO=function(t,n){for(var r="",o=t;o<n;++o)r+=String.fromCharCode(this.get(o));return r},e.prototype.parseStringUTF=function(t,n){for(var r="",o=t;o<n;){var a=this.get(o++);a<128?r+=String.fromCharCode(a):a>191&&a<224?r+=String.fromCharCode((a&31)<<6|this.get(o++)&63):r+=String.fromCharCode((a&15)<<12|(this.get(o++)&63)<<6|this.get(o++)&63)}return r},e.prototype.parseStringBMP=function(t,n){for(var r="",o,a,i=t;i<n;)o=this.get(i++),a=this.get(i++),r+=String.fromCharCode(o<<8|a);return r},e.prototype.parseTime=function(t,n,r){var o=this.parseStringISO(t,n),a=(r?Tge:jge).exec(o);return a?(r&&(a[1]=+a[1],a[1]+=+a[1]<70?2e3:1900),o=a[1]+"-"+a[2]+"-"+a[3]+" "+a[4],a[5]&&(o+=":"+a[5],a[6]&&(o+=":"+a[6],a[7]&&(o+="."+a[7]))),a[8]&&(o+=" UTC",a[8]!="Z"&&(o+=a[8],a[9]&&(o+=":"+a[9]))),o):"Unrecognized time: "+o},e.prototype.parseInteger=function(t,n){for(var r=this.get(t),o=r>127,a=o?255:0,i,s="";r==a&&++t<n;)r=this.get(t);if(i=n-t,i===0)return o?-1:0;if(i>4){for(s=r,i<<=3;!((+s^a)&128);)s=+s<<1,--i;s="("+i+` bit)
|
|||
|
|
`}o&&(r=r-256);for(var l=new lh(r),c=t+1;c<n;++c)l.mulAdd(256,this.get(c));return s+l.toString()},e.prototype.parseBitString=function(t,n,r){for(var o=this.get(t),a=(n-t-1<<3)-o,i="("+a+` bit)
|
|||
|
|
`,s="",l=t+1;l<n;++l){for(var c=this.get(l),u=l==n-1?o:0,f=7;f>=u;--f)s+=c>>f&1?"1":"0";if(s.length>r)return i+Fd(s,r)}return i+s},e.prototype.parseOctetString=function(t,n,r){if(this.isASCII(t,n))return Fd(this.parseStringISO(t,n),r);var o=n-t,a="("+o+` byte)
|
|||
|
|
`;r/=2,o>r&&(n=t+r);for(var i=t;i<n;++i)a+=this.hexByte(this.get(i));return o>r&&(a+=Q$),a},e.prototype.parseOID=function(t,n,r){for(var o="",a=new lh,i=0,s=t;s<n;++s){var l=this.get(s);if(a.mulAdd(128,l&127),i+=7,!(l&128)){if(o==="")if(a=a.simplify(),a instanceof lh)a.sub(80),o="2."+a.toString();else{var c=a<80?a<40?0:1:2;o=c+"."+(a-c*40)}else o+="."+a.toString();if(o.length>r)return Fd(o,r);a=new lh,i=0}}return i>0&&(o+=".incomplete"),o},e}(),Nge=function(){function e(t,n,r,o,a){if(!(o instanceof TT))throw new Error("Invalid tag value.");this.stream=t,this.header=n,this.length=r,this.tag=o,this.sub=a}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var n=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+r,t);switch(this.tag.tagNumber){case 1:return this.stream.get(n)===0?"false":"true";case 2:return this.stream.parseInteger(n,n+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(n,n+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+r,t);case 6:return this.stream.parseOID(n,n+r,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Fd(this.stream.parseStringUTF(n,n+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return Fd(this.stream.parseStringISO(n,n+r),t);case 30:return Fd(this.stream.parseStringBMP(n,n+r),t);case 23:case 24:return this.stream.parseTime(n,n+r,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(t){t===void 0&&(t="");var n=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(n+="+"),n+=this.length,this.tag.tagConstructed?n+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(n+=" (encapsulates)"),n+=`
|
|||
|
|
`,this.sub!==null){t+=" ";for(var r=0,o=this.sub.length;r<o;++r)n+=this.sub[r].toPrettyString(t)}return n},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(t){var n=t.get(),r=n&127;if(r==n)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(r===0)return null;n=0;for(var o=0;o<r;++o)n=n*256+t.get();return n},e.prototype.getHexStringValue=function(){var t=this.toHexString(),n=this.header*2,r=this.length*2;return t.substr(n,r)},e.decode=function(t){var n;t instanceof qA?n=t:n=new qA(t,0);var r=new qA(n),o=new TT(n),a=e.decodeLength(n),i=n.pos,s=i-r.pos,l=null,c=function(){var f=[];if(a!==null){for(var h=i+a;n.pos<h;)f[f.length]=e.decode(n);if(n.pos!=h)throw new Error("Content size is not correct for container starting at offset "+i)}else try{for(;;){var v=e.decode(n);if(v.tag.isEOC())break;f[f.length]=v}a=i-n.pos}catch(b){throw new Error("Exception while decoding undefined length content: "+b)}return f};if(o.tagConstructed)l=c();else if(o.isUniversal()&&(o.tagNumber==3||o.tagNumber==4))try{if(o.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var u=0;u<l.length;++u)if(l[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{l=null}if(l===null){if(a===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+i);n.pos=i+Math.abs(a)}return new e(r,s,a,o,l)},e}(),TT=function(){function e(t){var n=t.get();if(this.tagClass=n>>6,this.tagConstructed=(n&32)!==0,this.tagNumber=n&31,this.tagNumber==31){var r=new lh;do n=t.get(),r.mulAdd(128,n&127);while(n&128);this.tagNumber=r.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),Ml,Pge=0xdeadbeefcafe,jT=(Pge&16777215)==15715070,no=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Rge=(1<<26)/no[no.length-1],Et=function(){function e(t,n,r){t!=null&&(typeof t=="number"?this.fromNumber(t,n,r):n==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,n))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var n;if(t==16)n=4;else if(t==8)n=3;else if(t==2)n=1;else if(t==32)n=5;else if(t==4)n=2;else return this.toRadix(t);var r=(1<<n)-1,o,a=!1,i="",s=this.t,l=this.DB-s*this.DB%n;if(s-- >0)for(l<this.DB&&(o=this[s]>>l)>0&&(a=!0,i=us(o));s>=0;)l<n?(o=(this[s]&(1<<l)-1)<<n-l,o|=this[--s]>>(l+=this.DB-n)):(o=this[s]>>(l-=n)&r,l<=0&&(l+=this.DB,--s)),o>0&&(a=!0),a&&(i+=us(o));return a?i:"0"},e.prototype.negate=function(){var t=Dt();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var n=this.s-t.s;if(n!=0)return n;var r=this.t;if(n=r-t.t,n!=0)return this.s<0?-n:n;for(;--r>=0;)if((n=this[r]-t[r])!=0)return n;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+X1(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=Dt();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(t,n){var r;return t<256||n.isEven()?r=new NT(n):r=new PT(n),this.exp(t,r)},e.
|
|||
|
|
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|||
|
|
Code licensed under the BSD License:
|
|||
|
|
http://developer.yahoo.com/yui/license.html
|
|||
|
|
version: 2.9.0
|
|||
|
|
*/var Qn={};Qn.lang={extend:function(e,t,n){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),n){var o;for(o in n)e.prototype[o]=n[o];var a=function(){},i=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(a=function(s,l){for(o=0;o<i.length;o=o+1){var c=i[o],u=l[c];typeof u=="function"&&u!=Object.prototype[c]&&(s[c]=u)}})}catch{}a(e.prototype,n)}}};/**
|
|||
|
|
* @fileOverview
|
|||
|
|
* @name asn1-1.0.js
|
|||
|
|
* @author Kenji Urushima kenji.urushima@gmail.com
|
|||
|
|
* @version asn1 1.0.13 (2017-Jun-02)
|
|||
|
|
* @since jsrsasign 2.1
|
|||
|
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|||
|
|
*/var Ee={};(typeof Ee.asn1>"u"||!Ee.asn1)&&(Ee.asn1={});Ee.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1),r=n.length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var o="",a=0;a<r;a++)o+="f";var i=new Et(o,16),s=i.xor(e).add(Et.ONE);t=s.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=Ee,n=t.asn1,r=n.DERBoolean,o=n.DERInteger,a=n.DERBitString,i=n.DEROctetString,s=n.DERNull,l=n.DERObjectIdentifier,c=n.DEREnumerated,u=n.DERUTF8String,f=n.DERNumericString,h=n.DERPrintableString,v=n.DERTeletexString,b=n.DERIA5String,m=n.DERUTCTime,y=n.DERGeneralizedTime,A=n.DERSequence,w=n.DERSet,k=n.DERTaggedObject,C=n.ASN1Util.newObject,E=Object.keys(e);if(E.length!=1)throw"key of param shall be only one.";var S=E[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+S+":")==-1)throw"undefined key: "+S;if(S=="bool")return new r(e[S]);if(S=="int")return new o(e[S]);if(S=="bitstr")return new a(e[S]);if(S=="octstr")return new i(e[S]);if(S=="null")return new s(e[S]);if(S=="oid")return new l(e[S]);if(S=="enum")return new c(e[S]);if(S=="utf8str")return new u(e[S]);if(S=="numstr")return new f(e[S]);if(S=="prnstr")return new h(e[S]);if(S=="telstr")return new v(e[S]);if(S=="ia5str")return new b(e[S]);if(S=="utctime")return new m(e[S]);if(S=="gentime")return new y(e[S]);if(S=="seq"){for(var O=e[S],T=[],P=0;P<O.length;P++){var N=C(O[P]);T.push(N)}return new A({array:T})}if(S=="set"){for(var O=e[S],T=[],P=0;P<O.length;P++){var N=C(O[P]);T.push(N)}return new w({array:T})}if(S=="tag"){var L=e[S];if(Object.prototype.toString.call(L)==="[object Array]"&&L.length==3){var I=C(L[2]);return new k({tag:L[0],explicit:L[1],obj:I})}else{var M={};if(L.explicit!==void 0&&(M.explicit=L.explicit),L.tag!==void 0&&(M.tag=L.tag),L.obj===void 0)throw"obj shall be specified for 'tag'.";return M.obj=C(L.obj),new k(M)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}};Ee.asn1.ASN1Util.oidHexToInt=function(e){for(var o="",t=parseInt(e.substr(0,2),16),n=Math.floor(t/40),r=t%40,o=n+"."+r,a="",i=2;i<e.length;i+=2){var s=parseInt(e.substr(i,2),16),l=("00000000"+s.toString(2)).slice(-8);if(a=a+l.substr(1,7),l.substr(0,1)=="0"){var c=new Et(a,2);o=o+"."+c.toString(10),a=""}}return o};Ee.asn1.ASN1Util.oidIntToHex=function(e){var t=function(s){var l=s.toString(16);return l.length==1&&(l="0"+l),l},n=function(s){var l="",c=new Et(s,10),u=c.toString(2),f=7-u.length%7;f==7&&(f=0);for(var h="",v=0;v<f;v++)h+="0";u=h+u;for(var v=0;v<u.length-1;v+=7){var b=u.substr(v,7);v!=u.length-7&&(b="1"+b),l+=t(parseInt(b,2))}return l};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",o=e.split("."),a=parseInt(o[0])*40+parseInt(o[1]);r+=t(a),o.splice(0,2);for(var i=0;i<o.length;i++)r+=n(o[i]);return r};Ee.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,n=t.toString(16);if(n.length%2==1&&(n="0"+n),t<128)return n;var r=n.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var o=128+r;return o.toString(16)+n},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}};Ee.asn1.DERAbstractString=function(e){Ee.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=s
|
|||
|
|
?)|(.{1,`+r+"})";return n.match(RegExp(o,"g")).join(`
|
|||
|
|
`)},t.prototype.getPrivateKey=function(){var n=`-----BEGIN RSA PRIVATE KEY-----
|
|||
|
|
`;return n+=t.wordwrap(this.getPrivateBaseKeyB64())+`
|
|||
|
|
`,n+="-----END RSA PRIVATE KEY-----",n},t.prototype.getPublicKey=function(){var n=`-----BEGIN PUBLIC KEY-----
|
|||
|
|
`;return n+=t.wordwrap(this.getPublicBaseKeyB64())+`
|
|||
|
|
`,n+="-----END PUBLIC KEY-----",n},t.hasPublicKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")&&n.hasOwnProperty("d")&&n.hasOwnProperty("p")&&n.hasOwnProperty("q")&&n.hasOwnProperty("dmp1")&&n.hasOwnProperty("dmq1")&&n.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(n){this.n=n.n,this.e=n.e,n.hasOwnProperty("d")&&(this.d=n.d,this.p=n.p,this.q=n.q,this.dmp1=n.dmp1,this.dmq1=n.dmq1,this.coeff=n.coeff)},t}(zge),KA,Vge=typeof process<"u"?(KA=process.env)===null||KA===void 0?void 0:KA.npm_package_version:void 0,qge=function(){function e(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return e.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new LT(t)},e.prototype.setPrivateKey=function(t){this.setKey(t)},e.prototype.setPublicKey=function(t){this.setKey(t)},e.prototype.decrypt=function(t){try{return this.getKey().decrypt(OT(t))}catch{return!1}},e.prototype.encrypt=function(t){try{return Ov(this.getKey().encrypt(t))}catch{return!1}},e.prototype.sign=function(t,n,r){try{return Ov(this.getKey().sign(t,n,r))}catch{return!1}},e.prototype.verify=function(t,n,r){try{return this.getKey().verify(t,OT(n),r)}catch{return!1}},e.prototype.getKey=function(t){if(!this.key){if(this.key=new LT,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=Vge,e}();function Gge(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const DT={};function z4(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&DT[t[0]]||(typeof t[0]=="string"&&(DT[t[0]]=new Date),Gge(...t))}const ez=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function IT(e,t,n){e.loadNamespaces(t,ez(e,n))}function FT(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,ez(e,r))}function Kge(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],o=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(s,l)=>{const c=t.services.backendConnector.state[`${s}|${l}`];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||i(r,e)&&(!o||i(a,e)))}function Xge(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(z4("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(o,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!a(o.isLanguageChangingTo,e))return!1}}):Kge(e,t,n)}const Yge=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Jge={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',"
|
|||
|
|
.st0{fill-rule:evenodd;clip-rule:evenodd;fill:#505AA5;}\r
|
|||
|
|
`),p.createElement("path",{className:"st0",d:"M349.6,124.45c48.94-54.99,129.98-71.12,196.61-39.38c88.52,42.17,120.82,149.6,72.62,232.48L510.41,503.76 c-6.06,10.41-16.03,18-27.72,21.11c-11.69,3.11-24.15,1.49-34.64-4.51l131.26-225.49c34.97-60.15,11.58-138.11-52.6-168.8 c-48.16-23.03-107.02-11.53-142.6,28.08c-19.62,21.74-30.64,49.82-31.01,79.01c-0.37,29.2,9.94,57.53,29.01,79.76 c3.43,3.99,7.12,7.75,11.04,11.25l-76.63,131.88c-3,5.16-6.99,9.67-11.74,13.3c-4.76,3.62-10.18,6.28-15.97,7.82 c-5.79,1.54-11.83,1.93-17.77,1.16c-5.94-0.78-11.67-2.71-16.87-5.68l83.19-143.17c-11.95-17.11-20.53-36.31-25.29-56.58 L261.1,360.8c-6.06,10.41-16.03,18-27.72,21.11c-11.69,3.11-24.15,1.49-34.64-4.51l131.83-226.76 C336.06,141.32,342.43,132.55,349.6,124.45z M501.76,196.63c31.75,18.21,42.71,58.7,24.34,90.22L399.69,503.74 c-6.06,10.41-16.03,18-27.72,21.11c-11.69,3.11-24.15,1.49-34.64-4.51l117.38-201.93c-9.42-1.97-18.29-5.94-26.01-11.65 c-7.72-5.71-14.1-13.01-18.7-21.4c-4.6-8.4-7.31-17.68-7.95-27.22c-0.64-9.54,0.82-19.1,4.27-28.02c3.45-8.92,8.8-17,15.7-23.67 c6.9-6.67,15.17-11.77,24.24-14.95c9.08-3.18,18.74-4.37,28.32-3.49S493.43,191.83,501.76,196.63z M455.78,237.39 c-2.17,1.66-4,3.72-5.36,6.08h-0.01c-2.06,3.55-3.02,7.62-2.75,11.71c0.27,4.09,1.76,8,4.27,11.25c2.51,3.25,5.94,5.69,9.84,7 c3.91,1.32,8.12,1.45,12.1,0.39c3.99-1.06,7.56-3.27,10.28-6.35c2.72-3.08,4.46-6.89,5-10.95c0.54-4.06-0.15-8.19-1.97-11.87 c-1.82-3.67-4.71-6.73-8.28-8.78c-2.37-1.36-4.99-2.24-7.71-2.6c-2.72-0.35-5.48-0.18-8.12,0.53 C460.43,234.52,457.95,235.73,455.78,237.39z"})),ave=p.forwardRef((e,t)=>d.jsx(ove,{ref:t,...e})),ive=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-126.9 247.9 207.161 212.728",width:207.161,height:212.728,...e},p.createElement("defs",null,p.createElement("style",{type:"text/css"},`
|
|||
|
|
.st0{fill:#1F1F1E;}
|
|||
|
|
`)),p.createElement("path",{className:"st0",d:"M 19.9 260.5 L 41.8 260.5 L 41.8 313.1 L 55.8 313.1 L 55.8 260.5 L 77.7 260.5 L 77.7 247.9 L 19.9 247.9 L 19.9 260.5 Z M -4.7 293.5 L -34 247.9 L -49.8 247.9 L -49.8 313 L -36.3 313 L -36.3 267.4 L -7 313.1 L 8.8 313.1 L 8.8 248 L -4.7 248 L -4.7 293.5 Z M -100.9 247.9 L -126.9 313 L -112.4 313 L -107.1 299.3 L -79.9 299.3 L -74.6 313 L -60.1 313 L -86.1 247.9 L -100.9 247.9 Z M -102.4 287.3 L -93.5 264.4 L -84.6 287.3 L -102.4 287.3 Z"}),p.createElement("path",{className:"st0",d:"M 38.246 437.628 C 35.846 443.928 30.946 447.628 24.346 447.628 C 13.346 447.628 6.646 439.828 6.646 427.028 C 6.646 414.128 13.346 406.228 24.346 406.228 C 30.946 406.228 35.746 409.828 38.246 416.228 L 53.046 416.228 C 49.446 402.228 38.546 393.228 24.346 393.228 C 5.546 393.228 -7.754 407.228 -7.754 427.028 C -7.754 446.628 5.546 460.628 24.346 460.628 C 38.546 460.628 49.446 451.528 53.146 437.628 L 38.246 437.628 Z M -50.654 394.328 L -24.654 459.428 L -10.454 459.428 L -36.454 394.328 L -50.654 394.328 Z M -80.154 394.328 L -111.954 394.328 L -111.954 459.428 L -97.954 459.428 L -97.954 435.828 L -80.054 435.828 C -65.254 435.828 -56.254 428.028 -56.254 415.028 C -56.254 402.128 -65.354 394.328 -80.154 394.328 Z M -80.754 423.328 L -97.954 423.328 L -97.954 406.928 L -80.754 406.928 C -73.854 406.928 -70.254 409.728 -70.254 415.128 C -70.254 420.528 -73.854 423.328 -80.754 423.328 Z"}),p.createElement("path",{className:"st0",d:"M -81.239 347.704 L -111.939 347.704 L -111.939 321.704 L -125.939 321.704 L -125.939 386.804 L -111.939 386.804 L -111.939 360.204 L -81.239 360.204 L -81.239 386.804 L -67.239 386.804 L -67.239 321.704 L -81.239 321.704 L -81.239 347.704 Z M 48.361 320.604 C 29.561 320.604 16.261 334.604 16.261 354.404 C 16.261 374.004 29.561 388.004 48.361 388.004 C 67.061 388.004 80.261 374.004 80.261 354.404 C 80.261 334.604 67.061 320.604 48.361 320.604 Z M 48.361 375.004 C 37.361 375.004 30.661 367.204 30.661 354.404 C 30.661 341.504 37.361 333.604 48.361 333.604 C 59.261 333.604 65.861 341.404 65.861 354.404 C 65.861 367.104 59.261 375.004 48.361 375.004 Z M 5.561 341.604 C 5.561 329.304 -3.439 321.804 -18.239 321.804 L -50.039 321.804 L -50.039 386.904 L -36.039 386.904 L -36.039 361.404 L -20.539 361.404 L -6.539 386.904 L 8.861 386.904 L -6.639 359.504 C 1.061 356.404 5.561 350.204 5.561 341.604 Z M -36.139 334.304 L -18.939 334.304 C -12.039 334.304 -8.439 336.804 -8.439 341.604 C -8.439 346.304 -12.039 348.904 -18.939 348.904 L -36.139 348.904 L -36.139 334.304 Z"})),lj=p.forwardRef((e,t)=>d.jsx(ive,{ref:t,...e})),sve=e=>p.createElement("svg",{viewBox:"-29.62167543756803 0.1 574.391675437568 799.8100000000002",xmlns:"http://www.w3.org/2000/svg",width:1888,height:2500,...e},p.createElement("linearGradient",{id:"a",gradientUnits:"userSpaceOnUse",x1:286.383,x2:542.057,y1:284.169,y2:569.112},p.createElement("stop",{offset:0,stopColor:"#37bdff"}),p.createElement("stop",{offset:.25,stopColor:"#26c6f4"}),p.createElement("stop",{offset:.5,stopColor:"#15d0e9"}),p.createElement("stop",{offset:.75,stopColor:"#3bd6df"}),p.createElement("stop",{offset:1,stopColor:"#62dcd4"})),p.createElement("linearGradient",{id:"b",gradientUnits:"userSpaceOnUse",x1:108.979,x2:100.756,y1:675.98,y2:43.669},p.createElement("stop",{offset:0,stopColor:"#1b48ef"}),p.createElement("stop",{offset:.5,stopColor:"#2080f1"}),p.createElement("stop",{offset:1,stopColor:"#26b8f4"})),p.createElement("linearGradient",{id:"c",gradientUnits:"userSpaceOnUse",x1:256.823,x2:875.632,y1:649.719,y2:649.719},p.createElement("stop",{offset:0,stopColor:"#39d2ff"}),p.createElement("stop",{offset:.5,stopColor:"#248ffa"}),p.createElement("stop",{offset:1,stopColor:"#104cf5"})),p.createElement("linearGradient",{id:"d",gradientUnits:"userSpaceOnUse",x1:256.823,x2:875.632,y1:649.719,y2:649.719},p.createElement("stop",{offset:0,stopColor:"#fff"}),p.createElement("stop",{offset:1})),p.createElement("path",{d:"M249.97 277.48c-.12.96-.12 2.05-.12 3.12 0 4.16.83 8.16 2.33 11.84l1.34 2.76 5.3 13.56 27.53 70.23 24.01 61.33c6.85 12.38 17.82
|
|||
|
|
`));let a=[],i=[],s=new Map;const l=new Set(["str","bool","float","code","prompt","file","int"]),c=h=>h.type&&h.show&&(!l.has(h.type)&&o.has(h.type)||h.input_types&&h.input_types.some(v=>o.has(v)));if(r)for(const h of r){if(!h||!h.data||!h.data.node||!h.data.node.flow)break;const v=h.data,b=s.get(v.type);s.set(v.type,{hasBaseClassInTemplate:(b==null?void 0:b.hasBaseClassInTemplate)||Object.values((u=v.node)==null?void 0:u.template).some(c),hasBaseClassInBaseClasses:(b==null?void 0:b.hasBaseClassInBaseClasses)||v.node.base_classes.some(m=>o.has(m)),displayName:(f=v.node)==null?void 0:f.display_name})}for(const[h,v]of Object.entries(e)){let b=[],m=[];for(const[A,w]of Object.entries(v)){let k=s.get(A);k||(k={hasBaseClassInTemplate:Object.values(w.template).some(c),hasBaseClassInBaseClasses:w.base_classes.some(C=>o.has(C)),displayName:w==null?void 0:w.display_name}),k.hasBaseClassInTemplate&&b.push({node:A,displayName:k.displayName}),k.hasBaseClassInBaseClasses&&m.push({node:A,displayName:k.displayName})}const y=Object.keys(v).length;b.length&&a.push({category:h,nodes:b,full:b.length===y}),m.length&&i.push({category:h,nodes:m,full:m.length===y})}return n?i.map(h=>({family:h.category,type:h.full?"":h.nodes.map(v=>v.node).join(", "),display_name:""})):a.map(h=>({family:h.category,type:h.full?"":h.nodes.map(v=>v.node).join(", "),display_name:h.nodes.map(v=>v.displayName).join(", ")}))}function U6(e,t){if(e&&e[t]&&e[t].formKeysData&&e[t].formKeysData.input_keys&&e[t].formKeysData.input_keys.length){const n=e[t].formKeysData.input_keys.find(r=>r.type!=="file");return JSON.stringify(n)}return'{"input": "message"}'}function Xh(e){return e.data.nodes.reduce((t,n)=>(t[n.data.id]={},t),{})}function W6(e,t){var o,a;if(!((a=(o=e.data)==null?void 0:o.node)!=null&&a.template)||!Object.keys(e.data.node.template))return["我们注意到流程中的一个节点可能存在问题。请查看该问题,如有必要,请提交一份错误报告,并附上您导出的流程文件。感谢您的帮助!"];const{type:n,node:{template:r}}=e.data;return Object.keys(r).reduce((i,s)=>{var l;return i.concat(r[s].required&&r[s].show&&(r[s].value===void 0||r[s].value===null||r[s].value==="")&&!(((l=t==null?void 0:t.getEdges)==null?void 0:l.call(t))||t).some(c=>c.targetHandle.split("|")[1]===s&&c.targetHandle.split("|")[2]===e.id)?[`${n} ${In.language==="en"?"lost":"缺少参数"} ${r.display_name||X4(r[s].name)}.`]:[])},[])}function Iz(e){return e.getNodes().length===0?["流程中未发现节点。请在流程中至少添加一个节点。"]:e.getNodes().filter(t=>t.type!=="groupNode").map(t=>(delete t.parentNode,t)).flatMap(t=>W6(t,e))}function Mbe(){const e=new Date,t=String(e.getSeconds()).padStart(2,"0"),n=String(e.getMilliseconds()).padStart(3,"0");return t+n+Math.abs(Math.floor(Math.random()*10001))}const Lbe=[" ",",",".",":",";","!","?","/","\\","(",")","[","]",`
|
|||
|
|
`],Dbe=/\{([^}]+)\}/g,Ibe=({name:e})=>`<span class="font-semibold chat-message-highlight">{${e}}</span>`,ci=e=>{let t=new Date().getTime();return"".padStart(e,"x").replace(/[xy]/g,r=>{const o=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(r=="x"?o:o&7|8).toString(16)})},pj=e=>{const t=document.createRange();return t.selectNode(e),window.getSelection().removeAllRanges(),window.getSelection().addRange(t),new Promise(n=>{document.execCommand("copy"),window.getSelection().removeAllRanges(),n(e.innerText)})},Cy=e=>{if(typeof e!="string")return pj(e);if(navigator.clipboard&&navigator.clipboard.writeText)return navigator.clipboard.writeText(e);const t=document.createElement("textarea");return t.style.position="absolute",t.style.left="-9999px",t.value=e,document.body.appendChild(t),pj(t).then(n=>{document.body.removeChild(t)})},ru=C0e,ou=S0e,au=E0e,_l=p.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(k0e,{children:d.jsx(Ez,{ref:r,sideOffset:t,className:et("z-45 overflow-y-auto rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-50 data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1",e),...n})}));_l.displayName=Ez.displayName;const Fbe={dark:{},setDark:()=>{}},Am=p.createContext(Fbe);function Bbe({children:e}){const[t,n]=p.useState(JSON.parse(window.localStorage.getItem("isDark"))??!0);return p.useEffect(()=>{t?document.getElementById("body").classList.add("dark"):document.getElementById("body").classList.remove("dark"),window.localStorage.setItem("isDark",t.toString())},[t]),d.jsx(Am.Provider,{value:{dark:t,setDark:n},children:e})}const $be="/assets/login-4b6d0592.jpg",zbe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAAwCAYAAABNPhkJAAAAAXNSR0IArs4c6QAADXpJREFUaEPdmvlzXWUZx5/nPefkps3WhpYmLVh2tCAuqKMiKozKprjWX3SwLSFdnP4NmfwF/SHDMKRp6YjiYHSGzQWXsYwDKMoOkUVKS9oGEmiatpc29573fTyfy3s6EdNSWhwJ78yZdu69ec/zffZN5T04fX19bmxsrDlN09O892eEELpEZKGqzheRVERyMzukqvtDCAecczXnXBpCaDGzBaraLiIVMzNVPayqU977CREZy/N8rFqtHhweHvbvAamip3oJYEdHR1vSNF1oZmeo6vmqemYIAcDzVDU1s1xVq2Y2KSKTZjatqpmItKsqf9emqkcBm9kBwIrIKyGEHZVKZXx8fBzQtVOl9yhgCOey/v7+cKKXrlq1Cql2iwhAz1XVj4jIR0XkTBEppcu93FkXkaqI7BcRCAdwa3yaRSQRERMRJHlYRMZFZIeqPmNmzwM8y7JXb7nlFph2QgdM/f393MnTOLpmzZq25ubmllqtdnqSJKjYdAgBKaBWb1ar1frw8HDo6+vTkZGRtKurq9l7P9/MOsys23uPRM9DsmZ2gYich3oeh6JpVDwCbBKRBqNnOTDpNRF5QUSeN7MR5xwM2B1CeMN7f6i9vf3w7t27aytWrLCRkRGEl7S1tVWampowkYUwPc9zH7G8LiJH9KabbrpIRLpV9VMiskxE3hSRnWa2M0mSV7331SRJanmOVur8JEkWA1REPmRm54jI+fHvOkWkI0oO+pEkEoVwpAcTWkQEaZYH4LwPiaIBHJgAweXvDorIGyKy28xGnXPQtsvMXjGzcVU9aGZ199aZZ2bQAW3LRWRRA6Tqv8zs8RDCuPb29l5nZkjoqiidw2a2W1VHReRVEeGFSEVUFQ1YoqrLQghnqeqHRAQHxUFtUDeczV4R2QNoVUVFUV80AgahBadFkLsiMbwH4Jzm+I6z4t0wsQQ/xd2qCtid0Keq2HvdzBIzw2echg/Bn4gI4Ln3CTO7P0mSnUh4jap+WES+KSIQBIFI5lD8MWBnch8ptcVnXiQSKaJuz2FvgAghAGafc85CCEgNrfiCiMDYC6MGPCgifzKzp5MkORBCQIsqePnoD6ALEwE80uJAH0LggcYj8TO0CMZCU+kbeC/a87iq3hNCeAEJrzezj6gqgJHYiRykyQvh7oGoDU+LyHOq+lK9Xkf9Xtu6dSsE2cqVK5s6OzuXm9l1IvIDEflk1IbfiMidtVrtwW3btmEC0JM657C/s7z35+AMMRtVvRDJz2D28fzETAxvqupTZnavqjYA9xYvxbt+W0TQew4SRrI4ArjEU6otHMUB7Ii2jl3tCCHgWMaccwe7u7ur/f392OfR09PTc4Zz7huFKq5S1U/DMFW9N4Rwe3Nz8/aBgYGG2ZSnt7d3fpqm7d571BLfgrTPjbYJnXyGuiNZNAwhoIk8OEIYginwHlT63oLZL6LSELAiAkZ9ePFIBITNALb1rZxAuRSbIGTgCHYlSbLHOTe2ePHi8WOFtJiYnG1mXy/U/YcigoPknt8WKvvTWq22PUp4Vu0CvPd+aZIkZ8YYj/8g9KEJqDGJTXDONZgWQjg9agZMQXiPmdl9mFoDsHPuIjNDwqgPHvEPqvrHEAKgElXtcM4plxK2nHP78ZBZlu2vVqvVbdu2IfVjnpUrVyadnZ3nRJUG8KXRtn5jZj8LITywZcuWfe90R1dXV0u9Xm8LISD1RSQsUcLYNQ6A+E78/1j0FZ8g5qvqP44CXrt27WozIzQBGKeFFxwOIfwMVYCIWq3WMm/ePPXehzRNfZ7n04ODg6Uje0eb7+vrS8fHx88NIRARShtuSFhV70jT9IGbb74ZRp/w2bhxIypbOXjwoGtrawvQVqlU/NTU1MIsy64sEpUbVPVLUfqPFGH3vuLdL+psgAsv+vMi5Gy99dZbUe1TPv8LwMciikQqy7Jri9DaIyJXRJt+GMANG54FMLHtTu/91qGhoadOGW3hTU4VcPQByeTkJE7UH6+Q6O3tRdWvKSLHjSLyRXySqj50PJUmnbszSvjJ/ydggO7YsWNelmUdeGzidAhhqqOjY3LTpk34jaM5cknnunXrTg8hXFMUHmuKGH/5CQE2s18UMXnr5s2bGzZ8qudkJbxhw4ZWMjp8jJmRIxB+XiKvJqceHBwss7OjJG7YsKGrXq9fraqr5xzg3t7ebjO7PKa9l8QI8XAI4f4QwmOzefY5DZhkJUmSq0II3ylSQ7IzMrvfm9ndaZo+OlupONcBL0mS
|
|||
|
|
.`.concat(Wye,` {
|
|||
|
|
overflow: hidden `).concat(r,`;
|
|||
|
|
padding-right: `).concat(s,"px ").concat(r,`;
|
|||
|
|
}
|
|||
|
|
body[`).concat($d,`] {
|
|||
|
|
overflow: hidden `).concat(r,`;
|
|||
|
|
overscroll-behavior: contain;
|
|||
|
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|||
|
|
padding-left: `.concat(o,`px;
|
|||
|
|
padding-top: `).concat(a,`px;
|
|||
|
|
padding-right: `).concat(i,`px;
|
|||
|
|
margin-left:0;
|
|||
|
|
margin-top:0;
|
|||
|
|
margin-right: `).concat(s,"px ").concat(r,`;
|
|||
|
|
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.`).concat(xh,` {
|
|||
|
|
right: `).concat(s,"px ").concat(r,`;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.`).concat(Ah,` {
|
|||
|
|
margin-right: `).concat(s,"px ").concat(r,`;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.`).concat(xh," .").concat(xh,` {
|
|||
|
|
right: 0 `).concat(r,`;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.`).concat(Ah," .").concat(Ah,` {
|
|||
|
|
margin-right: 0 `).concat(r,`;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
body[`).concat($d,`] {
|
|||
|
|
`).concat(Vye,": ").concat(s,`px;
|
|||
|
|
}
|
|||
|
|
`)},Sj=function(){var e=parseInt(document.body.getAttribute($d)||"0",10);return isFinite(e)?e:0},sxe=function(){p.useEffect(function(){return document.body.setAttribute($d,(Sj()+1).toString()),function(){var e=Sj()-1;e<=0?document.body.removeAttribute($d):document.body.setAttribute($d,e.toString())}},[])},d_=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;sxe();var a=p.useMemo(function(){return oxe(o)},[o]);return p.createElement(axe,{styles:ixe(a,!t,o,n?"":"!important")})},Q4=!1;if(typeof window<"u")try{var i0=Object.defineProperty({},"passive",{get:function(){return Q4=!0,!0}});window.addEventListener("test",i0,i0),window.removeEventListener("test",i0,i0)}catch{Q4=!1}var td=Q4?{passive:!1}:!1,lxe=function(e){return e.tagName==="TEXTAREA"},f_=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!lxe(e)&&n[t]==="visible")},cxe=function(e){return f_(e,"overflowY")},uxe=function(e){return f_(e,"overflowX")},Ej=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=p_(e,n);if(r){var o=h_(e,n),a=o[1],i=o[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},dxe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},fxe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},p_=function(e,t){return e==="v"?cxe(t):uxe(t)},h_=function(e,t){return e==="v"?dxe(t):fxe(t)},pxe=function(e,t){return e==="h"&&t==="rtl"?-1:1},hxe=function(e,t,n,r,o){var a=pxe(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,u=i>0,f=0,h=0;do{var v=h_(e,s),b=v[0],m=v[1],y=v[2],A=m-y-a*b;(b||A)&&p_(e,s)&&(f+=A,h+=b),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&f===0||!o&&i>f)||!u&&(o&&h===0||!o&&-i>h))&&(c=!0),c},s0=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},kj=function(e){return[e.deltaX,e.deltaY]},Oj=function(e){return e&&"current"in e?e.current:e},gxe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mxe=function(e){return`
|
|||
|
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|||
|
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|||
|
|
`)},vxe=0,nd=[];function bxe(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),o=p.useState(vxe++)[0],a=p.useState(function(){return Q6()})[0],i=p.useRef(e);p.useEffect(function(){i.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=oB([e.lockRef.current],(e.shards||[]).map(Oj),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=p.useCallback(function(m,y){if("touches"in m&&m.touches.length===2)return!i.current.allowPinchZoom;var A=s0(m),w=n.current,k="deltaX"in m?m.deltaX:w[0]-A[0],C="deltaY"in m?m.deltaY:w[1]-A[1],E,S=m.target,O=Math.abs(k)>Math.abs(C)?"h":"v";if("touches"in m&&O==="h"&&S.type==="range")return!1;var T=Ej(O,S);if(!T)return!0;if(T?E=O:(E=O==="v"?"h":"v",T=Ej(O,S)),!T)return!1;if(!r.current&&"changedTouches"in m&&(k||C)&&(r.current=E),!E)return!0;var P=r.current||E;return hxe(P,y,m,P==="h"?k:C,!0)},[]),l=p.useCallback(function(m){var y=m;if(!(!nd.length||nd[nd.length-1]!==a)){var A="deltaY"in y?kj(y):s0(y),w=t.current.filter(function(E){return E.name===y.type&&E.target===y.target&&gxe(E.delta,A)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var k=(i.current.shards||[]).map(Oj).filter(Boolean).filter(function(E){return E.contains(y.target)}),C=k.length>0?s(y,k[0]):!i.current.noIsolation;C&&y.cancelable&&y.preventDefault()}}},[]),c=p.useCallback(function(m,y,A,w){var k={name:m,delta:y,target:A,should:w};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(C){return C!==k})},1)},[]),u=p.useCallback(function(m){n.current=s0(m),r.current=void 0},[]),f=p.useCallback(function(m){c(m.type,kj(m),m.target,s(m,e.lockRef.current))},[]),h=p.useCallback(function(m){c(m.type,s0(m),m.target,s(m,e.lockRef.current))},[]);p.useEffect(function(){return nd.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,td),document.addEventListener("touchmove",l,td),document.addEventListener("touchstart",u,td),function(){nd=nd.filter(function(m){return m!==a}),document.removeEventListener("wheel",l,td),document.removeEventListener("touchmove",l,td),document.removeEventListener("touchstart",u,td)}},[]);var v=e.removeScrollBar,b=e.inert;return p.createElement(p.Fragment,null,b?p.createElement(a,{styles:mxe(o)}):null,v?p.createElement(d_,{gapMode:"margin"}):null)}const yxe=c_(u_,bxe);var g_=p.forwardRef(function(e,t){return p.createElement(jy,go({},e,{ref:t,sideCar:yxe}))});g_.classNames=jy.classNames;const Z6=g_,xxe=[" ","Enter","ArrowUp","ArrowDown"],Axe=[" ","Enter"],Ny="Select",[Py,e7,wxe]=V6(Ny),[Wf,BVt]=Yr(Ny,[wxe,Bf]),t7=Bf(),[Cxe,Ou]=Wf(Ny),[Sxe,Exe]=Wf(Ny),kxe=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:i,defaultValue:s,onValueChange:l,dir:c,name:u,autoComplete:f,disabled:h,required:v}=e,b=t7(t),[m,y]=p.useState(null),[A,w]=p.useState(null),[k,C]=p.useState(!1),E=zf(c),[S=!1,O]=Xr({prop:r,defaultProp:o,onChange:a}),[T,P]=Xr({prop:i,defaultProp:s,onChange:l}),N=p.useRef(null),L=m?!!m.closest("form"):!0,[I,M]=p.useState(new Set),B=Array.from(I).map(R=>R.props.value).join(";");return p.createElement(I6,b,p.createElement(Cxe,{required:v,scope:t,trigger:m,onTriggerChange:y,valueNode:A,onValueNodeChange:w,valueNodeHasChildren:k,onValueNodeHasChildrenChange:C,contentId:Ta(),value:T,onValueChange:P,open:S,onOpenChange:O,dir:E,triggerPointerDownPosRef:N,disabled:h},p.createElement(Py.Provider,{scope:t},p.createElement(Sxe,{scope:e.__scopeSelect,onNativeOptionAdd:p.useCallback(R=>{M(D=>new Set(D).add(R))},[]),onNativeOptionRemove:p.useCallback(R=>{M(D=>{const $=new Set(D);return $.delete(R),$})},[])},n)),L?p.createElement(y_,{key:B,"aria-hidden":!0,required:v,tabIndex:-1,name:u,autoComplete:f,value:T,onChange:R=>P(R.target.value),disabled:h},T===void 0?p.createElement("
|
|||
|
|
- a positive number
|
|||
|
|
- less than the value passed to \`max\` (or ${Fy} if no \`max\` prop is set)
|
|||
|
|
- \`null\` if the progress is indeterminate.
|
|||
|
|
|
|||
|
|
Defaulting to \`null\`.`}const P_=T_,y2e=g2e,r7=p.forwardRef(({className:e,value:t,error:n,...r},o)=>d.jsx(P_,{ref:o,className:et("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...r,children:d.jsx(y2e,{className:`h-full w-full flex-1 bg-primary transition-all ${n&&"bg-red-400"}`,style:{transform:`translateX(-${100-(t||0)}%)`}})}));r7.displayName=P_.displayName;const By=async(e,t)=>{try{const n=new FormData;n.append("file",e);const o=await Bhe(n,{headers:{"Content-Type":"multipart/form-data;charset=utf-8"},onUploadProgress:a=>{const{loaded:i,total:s}=a,l=Math.round(i*100/s);console.log(`Upload progress: ${e.name} ${l}%`),t(l)}});return console.log("Upload complete:",o),o}catch(n){return console.error("Error uploading file:",n),""}};let x2e=1;function A2e({id:e,accept:t,open:n,desc:r="",setOpen:o,onResult:a}){const{t:i}=ze(),{setErrorData:s}=p.useContext(wt),[l,c]=p.useState("1000"),[u,f]=p.useState("\\n\\n"),h=p.useRef("smart"),[v,b]=p.useState("100"),[m,y]=p.useState([]),A=p.useRef(0);p.useEffect(()=>{n||(y([]),A.current=0,C.current=[],w.current=[])},[n]);const w=p.useRef([]),k=M=>{const R=[],D=[];M.forEach($=>{$.size<52428800?D.push($):R.push($.name)}),R.length&&s({title:i("prompt"),list:R.map($=>`${i("code.file")}: ${$} ${i("code.sizeExceedsLimit")}`)}),D.length&&(y($=>[...$,...D.map(z=>({id:x2e++,file:z,await:!0,size:52428800,pros:0,error:!1}))]),A.current+=D.length)},C=p.useRef([]),[E,S]=p.useState(!1),O=()=>{const M=[];if(C.current.length||M.push(i("code.selectFileToUpload")),M.length)return s({title:i("prompt"),list:M});S(!0);const B={file_path:C.current,knowledge_id:Number(e),auto:!0};h.current==="chunk"&&(B.separator=u.split(/;|;/).map(R=>R.replace(/\\([nrtb])/g,function(D,$){return{n:`
|
|||
|
|
`,r:"\r",t:" ",b:"\b"}[$]})),B.chunck_size=Number(/^\d+$/.test(l)?l:"1000"),B.auto=!1,B.chunk_overlap=Number(/^\d+$/.test(v)?v:"100")),mt($he(B).then(R=>{o(!1),S(!1),a==null||a(m.length,w.current,R)}),()=>S(!1))},[T,P]=p.useState(!0);p.useEffect(()=>{let B=[],R=[];m.forEach(D=>{D.await?B.push(D):D.pros!==100&&!D.error&&R.push(D)}),(R.length||B.length)&&(P(!1),B.filter((D,$)=>$<3-R.length).forEach(D=>{y($=>$.map(z=>z.id!==D.id?z:{...z,await:!1,pros:1})),By(D.file,$=>{y(z=>z.map(_=>_.id!==D.id?_:{..._,pros:$}))}).then($=>{$?C.current.push($.file_path):(w.current.push(D.file.name),y(z=>z.map(_=>_.id!==D.id?_:{..._,error:!0}))),P(C.current.length+w.current.length===A.current)})}))},[m]);const{getRootProps:N,getInputProps:L,isDragActive:I}=aB({accept:{"application/*":t.map(M=>`.${M}`)},useFsAccessApi:!1,onDrop:k});return d.jsx("dialog",{className:`modal duiHuaPopM ${n?"modal-open":"modal-close"}`,onClick:()=>o(!1),children:d.jsxs("form",{method:"dialog",className:"max-w-[813px] flex flex-col modal-box bg-[#262626] shadow-lg overflow-visible",onClick:M=>M.stopPropagation(),children:[d.jsx("button",{className:"btn btn-sm btn-circle btn-ghost absolute right-2 top-2",style:{color:"#fff"},onClick:()=>o(!1),children:"✕"}),d.jsx("h3",{className:"font-bold text-[16px]",style:{color:"#fff"},children:i("code.uploadFile")}),d.jsx("p",{className:"py-4",style:{color:"#fff"},children:r}),d.jsx("div",{className:"flex flex-wrap justify-center overflow-y-auto no-scrollbar shangchuan",children:d.jsxs("div",{className:"w-[758px]",children:[d.jsxs("div",{...N(),className:"h-[135px] bg-[#1A1A1A] border border-dashed flex justify-center items-center cursor-pointer",style:{borderRadius:"14px"},children:[d.jsx("input",{...L()}),I?d.jsx("p",{className:"text-[14px]",style:{color:"#999999"},children:i("code.dropFileHere")}):d.jsx("p",{className:"text-[14px]",style:{color:"#999999"},children:i("code.clickOrDragHere")})]}),d.jsx("div",{className:" max-h-[300px] overflow-y-auto no-scrollbar mt-4",children:m.map(M=>d.jsxs("div",{children:[d.jsxs("p",{className:`max-w-[300px] overflow-hidden text-ellipsis whitespace-nowrap ${M.error&&"text-red-400"}`,children:[M.file.name,M.file.pros===1&&d.jsx("span",{children:i("code.complete")})]}),d.jsx(r7,{error:M.error,value:M.pros,className:"w-full"})]},M.id))}),d.jsxs(ql,{defaultValue:"smart",className:"w-full mt-4",onValueChange:M=>h.current=M,children:[d.jsxs(Hf,{className:"zichanTab",children:[d.jsx(ai,{value:"smart",className:"roundedrounded-xl",children:i("code.smartSplit")}),d.jsx(ai,{value:"chunk",children:i("code.manualSplit")})]}),d.jsx(Br,{value:"smart"}),d.jsxs(Br,{value:"chunk",className:"shangchuanInput",children:[d.jsxs("div",{className:"flex justify-center items-center mt-[14px]",children:[d.jsx(_n,{htmlFor:"name",className:"w-[130px] text-right",style:{color:"#fff"},children:i("code.delimiter")}),d.jsx(fn,{id:"name",value:u,style:{color:"#fff"},onChange:M=>f(M.target.value),placeholder:i("code.delimiterPlaceholder"),className:"col-span-3"})]}),d.jsxs("div",{className:"flex justify-center items-center",children:[d.jsx(_n,{htmlFor:"name",className:"w-[130px] text-right",style:{color:"#fff"},children:i("code.splitLength")}),d.jsx(fn,{id:"name",value:l,style:{color:"#fff"},onChange:M=>c(M.target.value),placeholder:i("code.splitSizePlaceholder"),className:"col-span-3"})]}),d.jsxs("div",{className:"flex justify-center items-center",children:[d.jsx(_n,{htmlFor:"name",className:"w-[130px] text-right",style:{color:"#fff"},children:i("code.chunkOverlap")}),d.jsx(fn,{id:"name",value:v,style:{color:"#fff"},onChange:M=>b(M.target.value),placeholder:i("code.chunkOverlap"),className:"col-span-3"})]})]})]}),d.jsxs("div",{className:"flex justify-end mt-[27px]",children:[d.jsx(_e,{variant:"outline",className:"w-[95px] h-[34px] bg-[#404040] shangchuanBtn",style:{color:"#fff"},onClick:()=>o(!1),children:i("cancel")}),d.jsxs(_e,{type:"submit",className:"w-[95px] h-[34px] bg-[#FFD025] ml-[27px] shangchuanBtn",disabled:E||!T,onClick:()=>!E&&O(),children:[E&&d.jsx("span",{className:"loading loading-spinner loading-xs"}),
|
|||
|
|
* @mui/styled-engine v5.15.14
|
|||
|
|
*
|
|||
|
|
* @license MIT
|
|||
|
|
* This source code is licensed under the MIT license found in the
|
|||
|
|
* LICENSE file in the root directory of this source tree.
|
|||
|
|
*/function u5e(e,t){return i3(e,t)}const d5e=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},f5e=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:c5e,StyledEngineProvider:s5e,ThemeContext:su,css:dH,default:u5e,internal_processStyles:d5e,keyframes:t5e},Symbol.toStringTag,{value:"Module"})),fH=qs(f5e),p5e=qs(CAe),h5e=qs(TAe),g5e=qs(OAe),m5e=["values","unit","step"],v5e=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>Z({},n,{[r.key]:r.val}),{})};function pH(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Eo(e,m5e),a=v5e(t),i=Object.keys(a);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,v){const b=i.indexOf(v);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(b!==-1&&typeof t[i[b]]=="number"?t[i[b]]:v)-r/100}${n})`}function u(h){return i.indexOf(h)+1<i.length?c(h,i[i.indexOf(h)+1]):s(h)}function f(h){const v=i.indexOf(h);return v===0?s(i[1]):v===i.length-1?l(i[v]):c(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return Z({keys:i,values:a,up:s,down:l,between:c,only:u,not:f,unit:n},o)}const b5e={borderRadius:4},y5e=b5e;function wh(e,t){return t?Ri(e,t,{clone:!1}):e}const g7={xs:0,sm:600,md:900,lg:1200,xl:1536},nN={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${g7[e]}px)`};function Bs(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||nN;return t.reduce((i,s,l)=>(i[a.up(a.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const a=r.breakpoints||nN;return Object.keys(t).reduce((i,s)=>{if(Object.keys(a.values||g7).indexOf(s)!==-1){const l=a.up(s);i[l]=n(t[s],s)}else{const l=s;i[l]=t[l]}return i},{})}return n(t)}function x5e(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function A5e(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Vy(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Hv(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Vy(e,n)||r,t&&(o=t(o,r,e)),o}function er(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],l=i.theme,c=Vy(l,r)||{};return Bs(i,s,f=>{let h=Hv(c,o,f);return f===h&&typeof f=="string"&&(h=Hv(c,o,`${t}${f==="default"?"":Em(f)}`,f)),n===!1?h:{[n]:h}})};return a.propTypes={},a.filterProps=[t],a}function w5e(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const C5e={m:"margin",p:"padding"},S5e={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},rN={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},E5e=w5e(e=>{if(e.length>2)if(rN[e])e=rN[e];else return[e];const[t,n]=e.split(""),r=C5e[t],o=S5e[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),m7=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],v7=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...m7,...v7];function Tm(e,t,n,r){var o;const a=(o=Vy(e,t,!1))!=null?o:n;return typeof a=="number"?i=>typeof i=="string"?i:a*i:Array.isArray(a)?i=>typeof i=="string"?i:a[i]:typeof a=="function"?a:()=>{}}function hH(e){return Tm(e,"spacing",8)}function jm(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function k5e(e,t){return n=>e.reduce((r,o)=>(r[o]=jm(t,n),r),{})}function O5e(e,t,n,r){if(t.i
|
|||
|
|
`+T+"$1"):P},CURRENT_LINE:function(S){return S.session.getLine(S.getCursorPosition().row)},PREV_LINE:function(S){return S.session.getLine(S.getCursorPosition().row-1)},LINE_INDEX:function(S){return S.getCursorPosition().row},LINE_NUMBER:function(S){return S.getCursorPosition().row+1},SOFT_TABS:function(S){return S.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(S){return S.session.getTabSize()},CLIPBOARD:function(S){return v.getText&&v.getText()},FILENAME:function(S){return/[^/\\]*$/.exec(this.FILEPATH(S))[0]},FILENAME_BASE:function(S){return/[^/\\]*$/.exec(this.FILEPATH(S))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(S){return this.FILEPATH(S).replace(/[^/\\]*$/,"")},FILEPATH:function(S){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(S){var O=S.session.$mode||{};return O.blockComment&&O.blockComment.start||""},BLOCK_COMMENT_END:function(S){var O=S.session.$mode||{};return O.blockComment&&O.blockComment.end||""},LINE_COMMENT:function(S){var O=S.session.$mode||{};return O.lineCommentStart||""},CURRENT_YEAR:m.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:m.bind(null,{year:"2-digit"}),CURRENT_MONTH:m.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:m.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:m.bind(null,{month:"short"}),CURRENT_DATE:m.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:m.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:m.bind(null,{weekday:"short"}),CURRENT_HOUR:m.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:m.bind(null,{minute:"2-digit"}),CURRENT_SECOND:m.bind(null,{second:"2-digit"})};b.SELECTED_TEXT=b.SELECTION;function m(S){var O=new Date().toLocaleString("en-us",S);return O.length==1?"0"+O:O}var y=function(){function S(){this.snippetMap={},this.snippetNameMap={},this.variables=b}return S.prototype.getTokenizer=function(){return S.$tokenizer||this.createTokenizer()},S.prototype.createTokenizer=function(){function O(N){return N=N.substr(1),/^\d+$/.test(N)?[{tabstopId:parseInt(N,10)}]:[{text:N}]}function T(N){return"(?:[^\\\\"+N+"]|\\\\.)"}var P={regex:"/("+T("/")+"+)/",onMatch:function(N,L,I){var M=I[0];return M.fmtString=!0,M.guard=N.slice(1,-1),M.flag="",""},next:"formatString"};return S.$tokenizer=new h({start:[{regex:/\\./,onMatch:function(N,L,I){var M=N[1];return(M=="}"&&I.length||"`$\\".indexOf(M)!=-1)&&(N=M),[N]}},{regex:/}/,onMatch:function(N,L,I){return[I.length?I.shift():N]}},{regex:/\$(?:\d+|\w+)/,onMatch:O},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(N,L,I){var M=O(N.substr(1));return I.unshift(M[0]),M},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+T("\\|")+"*\\|",onMatch:function(N,L,I){var M=N.slice(1,-1).replace(/\\[,|\\]|,/g,function(B){return B.length==2?B[1]:"\0"}).split("\0").map(function(B){return{value:B}});return I[0].choices=M,[M[0]]},next:"start"},P,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(N,L,I){return I.length&&I[0].expectElse?(I[0].expectElse=!1,I[0].ifEnd={elseEnd:I[0]},[I[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(N,L,I){var M=N[1];return M=="}"&&I.length||"`$\\".indexOf(M)!=-1?N=M:M=="n"?N=`
|
|||
|
|
`:M=="t"?N=" ":"ulULE".indexOf(M)!=-1&&(N={changeCase:M,local:M>"a"}),[N]}},{regex:"/\\w*}",onMatch:function(N,L,I){var M=I.shift();return M&&(M.flag=N.slice(1,-1)),this.next=M&&M.tabstopId?"start":"",[M||N]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(N,L,I){return[{text:N.slice(1)}]}},{regex:/\${\w+/,onMatch:function(N,L,I){var M={text:N.slice(2)};return I.unshift(M),[M]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(N,L,I){var M=I.shift();return this.next=M&&M.tabstopId?"start":"",[M||N]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(N,L,I){var M=I[0];return M.formatFunction=N.slice(2,-1),[I.shift()]},next:"formatString"},P,{regex:/:[\?\-+]?/,onMatch:function(N,L,I){N[1]=="+"&&(I[0].ifEnd=I[0]),N[1]=="?"&&(I[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),S.$tokenizer},S.prototype.tokenizeTmSnippet=function(O,T){return this.getTokenizer().getLineTokens(O,T).tokens.map(function(P){return P.value||P})},S.prototype.getVariableValue=function(O,T,P){if(/^\d+$/.test(T))return(this.variables.__||{})[T]||"";if(/^[A-Z]\d+$/.test(T))return(this.variables[T[0]+"__"]||{})[T.substr(1)]||"";if(T=T.replace(/^TM_/,""),!this.variables.hasOwnProperty(T))return"";var N=this.variables[T];return typeof N=="function"&&(N=this.variables[T](O,T,P)),N??""},S.prototype.tmStrFormat=function(O,T,P){if(!T.fmt)return O;var N=T.flag||"",L=T.guard;L=new RegExp(L,N.replace(/[^gim]/g,""));var I=typeof T.fmt=="string"?this.tokenizeTmSnippet(T.fmt,"formatString"):T.fmt,M=this,B=O.replace(L,function(){var R=M.variables.__;M.variables.__=[].slice.call(arguments);for(var D=M.resolveVariables(I,P),$="E",z=0;z<D.length;z++){var _=D[z];if(typeof _=="object")if(D[z]="",_.changeCase&&_.local){var V=D[z+1];V&&typeof V=="string"&&(_.changeCase=="u"?D[z]=V[0].toUpperCase():D[z]=V[0].toLowerCase(),D[z+1]=V.substr(1))}else _.changeCase&&($=_.changeCase);else $=="U"?D[z]=_.toUpperCase():$=="L"&&(D[z]=_.toLowerCase())}return M.variables.__=R,D.join("")});return B},S.prototype.tmFormatFunction=function(O,T,P){return T.formatFunction=="upcase"?O.toUpperCase():T.formatFunction=="downcase"?O.toLowerCase():O},S.prototype.resolveVariables=function(O,T){for(var P=[],N="",L=!0,I=0;I<O.length;I++){var M=O[I];if(typeof M=="string"){P.push(M),M==`
|
|||
|
|
`?(L=!0,N=""):L&&(N=/^\t*/.exec(M)[0],L=/\S/.test(M));continue}if(M){if(L=!1,M.fmtString){var B=O.indexOf(M,I+1);B==-1&&(B=O.length),M.fmt=O.slice(I+1,B),I=B}if(M.text){var R=this.getVariableValue(T,M.text,N)+"";M.fmtString&&(R=this.tmStrFormat(R,M,T)),M.formatFunction&&(R=this.tmFormatFunction(R,M,T)),R&&!M.ifEnd?(P.push(R),D(M)):!R&&M.ifEnd&&D(M.ifEnd)}else M.elseEnd?D(M.elseEnd):(M.tabstopId!=null||M.changeCase!=null)&&P.push(M)}}function D($){var z=O.indexOf($,I+1);z!=-1&&(I=z)}return P},S.prototype.getDisplayTextForSnippet=function(O,T){var P=A.call(this,O,T);return P.text},S.prototype.insertSnippetForSelection=function(O,T,P){P===void 0&&(P={});var N=A.call(this,O,T,P),L=O.getSelectionRange(),I=O.session.replace(L,N.text),M=new w(O),B=O.inVirtualSelectionMode&&O.selection.index;M.addTabstops(N.tabstops,L.start,I,B)},S.prototype.insertSnippet=function(O,T,P){P===void 0&&(P={});var N=this;if(O.inVirtualSelectionMode)return N.insertSnippetForSelection(O,T,P);O.forEachSelection(function(){N.insertSnippetForSelection(O,T,P)},null,{keepOrder:!0}),O.tabstopManager&&O.tabstopManager.tabNext()},S.prototype.$getScope=function(O){var T=O.session.$mode.$id||"";if(T=T.split("/").pop(),T==="html"||T==="php"){T==="php"&&!O.session.$mode.inlinePhp&&(T="html");var P=O.getCursorPosition(),N=O.session.getState(P.row);typeof N=="object"&&(N=N[0]),N.substring&&(N.substring(0,3)=="js-"?T="javascript":N.substring(0,4)=="css-"?T="css":N.substring(0,4)=="php-"&&(T="php"))}return T},S.prototype.getActiveScopes=function(O){var T=this.$getScope(O),P=[T],N=this.snippetMap;return N[T]&&N[T].includeScopes&&P.push.apply(P,N[T].includeScopes),P.push("_"),P},S.prototype.expandWithTab=function(O,T){var P=this,N=O.forEachSelection(function(){return P.expandSnippetForSelection(O,T)},null,{keepOrder:!0});return N&&O.tabstopManager&&O.tabstopManager.tabNext(),N},S.prototype.expandSnippetForSelection=function(O,T){var P=O.getCursorPosition(),N=O.session.getLine(P.row),L=N.substring(0,P.column),I=N.substr(P.column),M=this.snippetMap,B;return this.getActiveScopes(O).some(function(R){var D=M[R];return D&&(B=this.findMatchingSnippet(D,L,I)),!!B},this),B?(T&&T.dryRun||(O.session.doc.removeInLine(P.row,P.column-B.replaceBefore.length,P.column+B.replaceAfter.length),this.variables.M__=B.matchBefore,this.variables.T__=B.matchAfter,this.insertSnippetForSelection(O,B.content),this.variables.M__=this.variables.T__=null),!0):!1},S.prototype.findMatchingSnippet=function(O,T,P){for(var N=O.length;N--;){var L=O[N];if(!(L.startRe&&!L.startRe.test(T))&&!(L.endRe&&!L.endRe.test(P))&&!(!L.startRe&&!L.endRe))return L.matchBefore=L.startRe?L.startRe.exec(T):[""],L.matchAfter=L.endRe?L.endRe.exec(P):[""],L.replaceBefore=L.triggerRe?L.triggerRe.exec(T)[0]:"",L.replaceAfter=L.endTriggerRe?L.endTriggerRe.exec(P)[0]:"",L}},S.prototype.register=function(O,T){var P=this.snippetMap,N=this.snippetNameMap,L=this;O||(O=[]);function I(R){return R&&!/^\^?\(.*\)\$?$|^\\b$/.test(R)&&(R="(?:"+R+")"),R||""}function M(R,D,$){return R=I(R),D=I(D),$?(R=D+R,R&&R[R.length-1]!="$"&&(R=R+"$")):(R=R+D,R&&R[0]!="^"&&(R="^"+R)),new RegExp(R)}function B(R){R.scope||(R.scope=T||"_"),T=R.scope,P[T]||(P[T]=[],N[T]={});var D=N[T];if(R.name){var $=D[R.name];$&&L.unregister($),D[R.name]=R}P[T].push(R),R.prefix&&(R.tabTrigger=R.prefix),!R.content&&R.body&&(R.content=Array.isArray(R.body)?R.body.join(`
|
|||
|
|
`):R.body),R.tabTrigger&&!R.trigger&&(!R.guard&&/^\w/.test(R.tabTrigger)&&(R.guard="\\b"),R.trigger=l.escapeRegExp(R.tabTrigger)),!(!R.trigger&&!R.guard&&!R.endTrigger&&!R.endGuard)&&(R.startRe=M(R.trigger,R.guard,!0),R.triggerRe=new RegExp(R.trigger),R.endRe=M(R.endTrigger,R.endGuard,!0),R.endTriggerRe=new RegExp(R.endTrigger))}Array.isArray(O)?O.forEach(B):Object.keys(O).forEach(function(R){B(O[R])}),this._signal("registerSnippets",{scope:T})},S.prototype.unregister=function(O,T){var P=this.snippetMap,N=this.snippetNameMap;function L(I){var M=N[I.scope||T];if(M&&M[I.name]){delete M[I.name];var B=P[I.scope||T],R=B&&B.indexOf(I);R>=0&&B.splice(R,1)}}O.content?L(O):Array.isArray(O)&&O.forEach(L)},S.prototype.parseSnippetFile=function(O){O=O.replace(/\r/g,"");for(var T=[],P={},N=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,L;L=N.exec(O);){if(L[1])try{P=JSON.parse(L[1]),T.push(P)}catch{}if(L[4])P.content=L[4].replace(/^\t/gm,""),T.push(P),P={};else{var I=L[2],M=L[3];if(I=="regex"){var B=/\/((?:[^\/\\]|\\.)*)|$/g;P.guard=B.exec(M)[1],P.trigger=B.exec(M)[1],P.endTrigger=B.exec(M)[1],P.endGuard=B.exec(M)[1]}else I=="snippet"?(P.tabTrigger=M.match(/^\S*/)[0],P.name||(P.name=M)):I&&(P[I]=M)}}return T},S.prototype.getSnippetByName=function(O,T){var P=this.snippetNameMap,N;return this.getActiveScopes(T).some(function(L){var I=P[L];return I&&(N=I[O]),!!N},this),N},S}();i.implement(y.prototype,s);var A=function(S,O,T){T===void 0&&(T={});var P=S.getCursorPosition(),N=S.session.getLine(P.row),L=S.session.getTabString(),I=N.match(/^\s*/)[0];P.column<I.length&&(I=I.slice(0,P.column)),O=O.replace(/\r/g,"");var M=this.tokenizeTmSnippet(O);M=this.resolveVariables(M,S),M=M.map(function(ee){return ee==`
|
|||
|
|
`&&!T.excludeExtraIndent?ee+I:typeof ee=="string"?ee.replace(/\t/g,L):ee});var B=[];M.forEach(function(ee,re){if(typeof ee=="object"){var be=ee.tabstopId,ce=B[be];if(ce||(ce=B[be]=[],ce.index=be,ce.value="",ce.parents={}),ce.indexOf(ee)===-1){ee.choices&&!ce.choices&&(ce.choices=ee.choices),ce.push(ee);var le=M.indexOf(ee,re+1);if(le!==-1){var ge=M.slice(re+1,le),ie=ge.some(function(Pe){return typeof Pe=="object"});ie&&!ce.value?ce.value=ge:ge.length&&(!ce.value||typeof ce.value!="string")&&(ce.value=ge.join(""))}}}}),B.forEach(function(ee){ee.length=0});var R={};function D(ee){for(var re=[],be=0;be<ee.length;be++){var ce=ee[be];if(typeof ce=="object"){if(R[ce.tabstopId])continue;var le=ee.lastIndexOf(ce,be-1);ce=re[le]||{tabstopId:ce.tabstopId}}re[be]=ce}return re}for(var $=0;$<M.length;$++){var z=M[$];if(typeof z=="object"){var _=z.tabstopId,V=B[_],H=M.indexOf(z,$+1);if(R[_]){R[_]===z&&(delete R[_],Object.keys(R).forEach(function(ee){V.parents[ee]=!0}));continue}R[_]=z;var K=V.value;typeof K!="string"?K=D(K):z.fmt&&(K=this.tmStrFormat(K,z,S)),M.splice.apply(M,[$+1,Math.max(0,H-$)].concat(K,z)),V.indexOf(z)===-1&&V.push(z)}}var X=0,Y=0,ne="";return M.forEach(function(ee){if(typeof ee=="string"){var re=ee.split(`
|
|||
|
|
`);re.length>1?(Y=re[re.length-1].length,X+=re.length-1):Y+=ee.length,ne+=ee}else ee&&(ee.start?ee.end={row:X,column:Y}:ee.start={row:X,column:Y})}),{text:ne,tabstops:B,tokens:M}},w=function(){function S(O){if(this.index=0,this.ranges=[],this.tabstops=[],O.tabstopManager)return O.tabstopManager;O.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=l.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(O)}return S.prototype.attach=function(O){this.$openTabstops=null,this.selectedTabstop=null,this.editor=O,this.session=O.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},S.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},S.prototype.onChange=function(O){for(var T=O.action[0]=="r",P=this.selectedTabstop||{},N=P.parents||{},L=this.tabstops.slice(),I=0;I<L.length;I++){var M=L[I],B=M==P||N[M.index];if(M.rangeList.$bias=B?0:1,O.action=="remove"&&M!==P){var R=M.parents&&M.parents[P.index],D=M.rangeList.pointIndex(O.start,R);D=D<0?-D-1:D+1;var $=M.rangeList.pointIndex(O.end,R);$=$<0?-$-1:$-1;for(var z=M.rangeList.ranges.slice(D,$),_=0;_<z.length;_++)this.removeRange(z[_])}M.rangeList.$onChange(O)}var V=this.session;!this.$inChange&&T&&V.getLength()==1&&!V.getValue()&&this.detach()},S.prototype.updateLinkedFields=function(){var O=this.selectedTabstop;if(!(!O||!O.hasLinkedRanges||!O.firstNonLinked)){this.$inChange=!0;for(var T=this.session,P=T.getTextRange(O.firstNonLinked),N=0;N<O.length;N++){var L=O[N];if(L.linked){var I=L.original,M=r.snippetManager.tmStrFormat(P,I,this.editor);T.replace(L,M)}}this.$inChange=!1}},S.prototype.onAfterExec=function(O){O.command&&!O.command.readOnly&&this.updateLinkedFields()},S.prototype.onChangeSelection=function(){if(this.editor){for(var O=this.editor.selection.lead,T=this.editor.selection.anchor,P=this.editor.selection.isEmpty(),N=0;N<this.ranges.length;N++)if(!this.ranges[N].linked){var L=this.ranges[N].contains(O.row,O.column),I=P||this.ranges[N].contains(T.row,T.column);if(L&&I)return}this.detach()}},S.prototype.onChangeSession=function(){this.detach()},S.prototype.tabNext=function(O){var T=this.tabstops.length,P=this.index+(O||1);P=Math.min(Math.max(P,1),T),P==T&&(P=0),this.selectTabstop(P),this.updateTabstopMarkers(),P===0&&this.detach()},S.prototype.selectTabstop=function(O){this.$openTabstops=null;var T=this.tabstops[this.index];if(T&&this.addTabstopMarkers(T),this.index=O,T=this.tabstops[this.index],!(!T||!T.length)){this.selectedTabstop=T;var P=T.firstNonLinked||T;if(T.choices&&(P.cursor=P.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(P);else{var N=this.editor.multiSelect;N.toSingleRange(P);for(var L=0;L<T.length;L++)T.hasLinkedRanges&&T[L].linked||N.addRange(T[L].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},S.prototype.addTabstops=function(O,T,P){var N=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!O[0]){var L=c.fromPoints(P,P);C(L.start,T),C(L.end,T),O[0]=[L],O[0].index=0}var I=this.index,M=[I+1,0],B=this.ranges,R=this.snippetId=(this.snippetId||0)+1;O.forEach(function(D,$){var z=this.$openTabstops[$]||D;z.snippetId
|
|||
|
|
.ace_snippet-marker {
|
|||
|
|
-moz-box-sizing: border-box;
|
|||
|
|
box-sizing: border-box;
|
|||
|
|
background: rgba(194, 193, 208, 0.09);
|
|||
|
|
border: 1px dotted rgba(211, 208, 235, 0.62);
|
|||
|
|
position: absolute;
|
|||
|
|
}`,"snippets.css",!1),r.snippetManager=new y;var E=n("./editor").Editor;(function(){this.insertSnippet=function(S,O){return r.snippetManager.insertSnippet(this,S,O)},this.expandSnippet=function(S){return r.snippetManager.expandWithTab(this,S)}}).call(E.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config","ace/lib/useragent"],function(n,r,o){var a=n("../virtual_renderer").VirtualRenderer,i=n("../editor").Editor,s=n("../range").Range,l=n("../lib/event"),c=n("../lib/lang"),u=n("../lib/dom"),f=n("../config").nls,h=n("./../lib/useragent"),v=function(k){return"suggest-aria-id:".concat(k)},b=h.isSafari?"menu":"listbox",m=h.isSafari?"menuitem":"option",y=h.isSafari?"aria-current":"aria-selected",A=function(k){var C=new a(k);C.$maxLines=4;var E=new i(C);return E.setHighlightActiveLine(!1),E.setShowPrintMargin(!1),E.renderer.setShowGutter(!1),E.renderer.setHighlightGutterLine(!1),E.$mouseHandler.$focusTimeout=0,E.$highlightTagPending=!0,E},w=function(){function k(C){var E=u.createElement("div"),S=A(E);C&&C.appendChild(E),E.style.display="none",S.renderer.content.style.cursor="default",S.renderer.setStyle("ace_autocomplete"),S.renderer.$textLayer.element.setAttribute("role",b),S.renderer.$textLayer.element.setAttribute("aria-roledescription",f("autocomplete.popup.aria-roledescription","Autocomplete suggestions")),S.renderer.$textLayer.element.setAttribute("aria-label",f("autocomplete.popup.aria-label","Autocomplete suggestions")),S.renderer.textarea.setAttribute("aria-hidden","true"),S.setOption("displayIndentGuides",!1),S.setOption("dragDelay",150);var O=function(){};S.focus=O,S.$isFocused=!0,S.renderer.$cursorLayer.restartTimer=O,S.renderer.$cursorLayer.element.style.opacity="0",S.renderer.$maxLines=8,S.renderer.$keepTextAreaAtCursor=!1,S.setHighlightActiveLine(!1),S.session.highlight(""),S.session.$searchHighlight.clazz="ace_highlight-marker",S.on("mousedown",function(B){var R=B.getDocumentPosition();S.selection.moveToPosition(R),N.start.row=N.end.row=R.row,B.stop()});var T,P=new s(-1,0,-1,1/0),N=new s(-1,0,-1,1/0);N.id=S.session.addMarker(N,"ace_active-line","fullLine"),S.setSelectOnHover=function(B){B?P.id&&(S.session.removeMarker(P.id),P.id=null):P.id=S.session.addMarker(P,"ace_line-hover","fullLine")},S.setSelectOnHover(!1),S.on("mousemove",function(B){if(!T){T=B;return}if(!(T.x==B.x&&T.y==B.y)){T=B,T.scrollTop=S.renderer.scrollTop,S.isMouseOver=!0;var R=T.getDocumentPosition().row;P.start.row!=R&&(P.id||S.setRow(R),I(R))}}),S.renderer.on("beforeRender",function(){if(T&&P.start.row!=-1){T.$pos=null;var B=T.getDocumentPosition().row;P.id||S.setRow(B),I(B,!0)}}),S.renderer.on("afterRender",function(){var B=S.getRow(),R=S.renderer.$textLayer,D=R.element.childNodes[B-R.config.firstRow],$=document.activeElement;if(D!==S.selectedNode&&S.selectedNode&&(u.removeCssClass(S.selectedNode,"ace_selected"),$.removeAttribute("aria-activedescendant"),S.selectedNode.removeAttribute(y),S.selectedNode.removeAttribute("id")),S.selectedNode=D,D){u.addCssClass(D,"ace_selected");var z=v(B);D.id=z,R.element.setAttribute("aria-activedescendant",z),$.setAttribute("aria-activedescendant",z),D.setAttribute("role",m),D.setAttribute("aria-roledescription",f("autocomplete.popup.item.aria-roledescription","item")),D.setAttribute("aria-label",S.getData(B).caption||S.getData(B).value),D.setAttribute("aria-setsize",S.data.length),D.setAttribute("aria-posinset",B+1),D.setAttribute("aria-describedby","doc-tooltip"),D.setAttribute(y,"true")}});var L=function(){I(-1)},I=function(B,R){B!==P.start.row&&(P.start.row=P.end.row=B,R||S.session._emit("changeBackMarker"),S._emit("changeHoverMarker"))};S.getHoveredRow=function(){return P.start.row},l.addListener(S.container,"mouseout",function(){S.isMouseOver=!1,L()}),S.on("hide",L),S.on("changeSelection",L),S.session.doc.getLength=function(){return S.data.length},S.session.doc.getLine=function(B){var R=S.data[B];return typeof R=="string"?R:R&&R.value||""};var M=S.session.bgTokenizer;return
|
|||
|
|
`,B.length),-1),S.data=B||[],S.setRow(0)},S.getData=function(B){return S.data[B]},S.getRow=function(){return N.start.row},S.setRow=function(B){B=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,B)),N.start.row!=B&&(S.selection.clearSelection(),N.start.row=N.end.row=B||0,S.session._emit("changeBackMarker"),S.moveCursorTo(B||0,0),S.isOpen&&S._signal("select"))},S.on("changeSelection",function(){S.isOpen&&S.setRow(S.selection.lead.row),S.renderer.scrollCursorIntoView()}),S.hide=function(){this.container.style.display="none",S.anchorPos=null,S.anchor=null,S.isOpen&&(S.isOpen=!1,this._signal("hide"))},S.tryShow=function(B,R,D,$){if(!$&&S.isOpen&&S.anchorPos&&S.anchor&&S.anchorPos.top===B.top&&S.anchorPos.left===B.left&&S.anchor===D)return!0;var z=this.container,_=window.innerHeight,V=window.innerWidth,H=this.renderer,K=H.$maxLines*R*1.4,X={top:0,bottom:0,left:0},Y=_-B.top-3*this.$borderSize-R,ne=B.top-3*this.$borderSize;D||(ne<=Y||Y>=K?D="bottom":D="top"),D==="top"?(X.bottom=B.top-this.$borderSize,X.top=X.bottom-K):D==="bottom"&&(X.top=B.top+R+this.$borderSize,X.bottom=X.top+K);var ee=X.top>=0&&X.bottom<=_;if(!$&&!ee)return!1;ee?H.$maxPixelHeight=null:D==="top"?H.$maxPixelHeight=ne:H.$maxPixelHeight=Y,D==="top"?(z.style.top="",z.style.bottom=_-X.bottom+"px",S.isTopdown=!1):(z.style.top=X.top+"px",z.style.bottom="",S.isTopdown=!0),z.style.display="";var re=B.left;return re+z.offsetWidth>V&&(re=V-z.offsetWidth),z.style.left=re+"px",z.style.right="",S.isOpen||(S.isOpen=!0,this._signal("show"),T=null),S.anchorPos=B,S.anchor=D,!0},S.show=function(B,R,D){this.tryShow(B,R,D?"bottom":void 0,!0)},S.goTo=function(B){var R=this.getRow(),D=this.session.getLength()-1;switch(B){case"up":R=R<=0?D:R-1;break;case"down":R=R>=D?-1:R+1;break;case"start":R=0;break;case"end":R=D;break}this.setRow(R)},S.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},S.$imageSize=0,S.$borderSize=1,S}return k}();u.importCssString(`
|
|||
|
|
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
|||
|
|
background-color: #CAD6FA;
|
|||
|
|
z-index: 1;
|
|||
|
|
}
|
|||
|
|
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
|
|||
|
|
background-color: #3a674e;
|
|||
|
|
}
|
|||
|
|
.ace_editor.ace_autocomplete .ace_line-hover {
|
|||
|
|
border: 1px solid #abbffe;
|
|||
|
|
margin-top: -1px;
|
|||
|
|
background: rgba(233,233,253,0.4);
|
|||
|
|
position: absolute;
|
|||
|
|
z-index: 2;
|
|||
|
|
}
|
|||
|
|
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
|
|||
|
|
border: 1px solid rgba(109, 150, 13, 0.8);
|
|||
|
|
background: rgba(58, 103, 78, 0.62);
|
|||
|
|
}
|
|||
|
|
.ace_completion-meta {
|
|||
|
|
opacity: 0.5;
|
|||
|
|
margin-left: 0.9em;
|
|||
|
|
}
|
|||
|
|
.ace_completion-message {
|
|||
|
|
margin-left: 0.9em;
|
|||
|
|
color: blue;
|
|||
|
|
}
|
|||
|
|
.ace_editor.ace_autocomplete .ace_completion-highlight{
|
|||
|
|
color: #2d69c7;
|
|||
|
|
}
|
|||
|
|
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
|
|||
|
|
color: #93ca12;
|
|||
|
|
}
|
|||
|
|
.ace_editor.ace_autocomplete {
|
|||
|
|
width: 300px;
|
|||
|
|
z-index: 200000;
|
|||
|
|
border: 1px lightgray solid;
|
|||
|
|
position: fixed;
|
|||
|
|
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
|
|||
|
|
line-height: 1.4;
|
|||
|
|
background: #fefefe;
|
|||
|
|
color: #111;
|
|||
|
|
}
|
|||
|
|
.ace_dark.ace_editor.ace_autocomplete {
|
|||
|
|
border: 1px #484747 solid;
|
|||
|
|
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
|
|||
|
|
line-height: 1.4;
|
|||
|
|
background: #25282c;
|
|||
|
|
color: #c1c1c1;
|
|||
|
|
}
|
|||
|
|
.ace_autocomplete .ace_text-layer {
|
|||
|
|
width: calc(100% - 8px);
|
|||
|
|
}
|
|||
|
|
.ace_autocomplete .ace_line {
|
|||
|
|
display: flex;
|
|||
|
|
align-items: center;
|
|||
|
|
}
|
|||
|
|
.ace_autocomplete .ace_line > * {
|
|||
|
|
min-width: 0;
|
|||
|
|
flex: 0 0 auto;
|
|||
|
|
}
|
|||
|
|
.ace_autocomplete .ace_line .ace_ {
|
|||
|
|
flex: 0 1 auto;
|
|||
|
|
overflow: hidden;
|
|||
|
|
white-space: nowrap;
|
|||
|
|
text-overflow: ellipsis;
|
|||
|
|
}
|
|||
|
|
.ace_autocomplete .ace_completion-spacer {
|
|||
|
|
flex: 1;
|
|||
|
|
}
|
|||
|
|
.ace_autocomplete.ace_loading:after {
|
|||
|
|
content: "";
|
|||
|
|
position: absolute;
|
|||
|
|
top: 0px;
|
|||
|
|
height: 2px;
|
|||
|
|
width: 8%;
|
|||
|
|
background: blue;
|
|||
|
|
z-index: 100;
|
|||
|
|
animation: ace_progress 3s infinite linear;
|
|||
|
|
animation-delay: 300ms;
|
|||
|
|
transform: translateX(-100%) scaleX(1);
|
|||
|
|
}
|
|||
|
|
@keyframes ace_progress {
|
|||
|
|
0% { transform: translateX(-100%) scaleX(1) }
|
|||
|
|
50% { transform: translateX(625%) scaleX(2) }
|
|||
|
|
100% { transform: translateX(1500%) scaleX(3) }
|
|||
|
|
}
|
|||
|
|
@media (prefers-reduced-motion) {
|
|||
|
|
.ace_autocomplete.ace_loading:after {
|
|||
|
|
transform: translateX(625%) scaleX(2);
|
|||
|
|
animation: none;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
`,"autocompletion.css",!1),r.AcePopup=w,r.$singleLineEditor=A,r.getAriaId=v}),ace.define("ace/autocomplete/inline_screenreader",["require","exports","module"],function(n,r,o){var a=function(){function i(s){this.editor=s,this.screenReaderDiv=document.createElement("div"),this.screenReaderDiv.classList.add("ace_screenreader-only"),this.editor.container.appendChild(this.screenReaderDiv)}return i.prototype.setScreenReaderContent=function(s){for(!this.popup&&this.editor.completer&&this.editor.completer.popup&&(this.popup=this.editor.completer.popup,this.popup.renderer.on("afterRender",(function(){var c=this.popup.getRow(),u=this.popup.renderer.$textLayer,f=u.element.childNodes[c-u.config.firstRow];if(f){for(var h="doc-tooltip ",v=0;v<this._lines.length;v++)h+="ace-inline-screenreader-line-".concat(v," ");f.setAttribute("aria-describedby",h)}}).bind(this)));this.screenReaderDiv.firstChild;)this.screenReaderDiv.removeChild(this.screenReaderDiv.firstChild);this._lines=s.split(/\r\n|\r|\n/);var l=this.createCodeBlock();this.screenReaderDiv.appendChild(l)},i.prototype.destroy=function(){this.screenReaderDiv.remove()},i.prototype.createCodeBlock=function(){var s=document.createElement("pre");s.setAttribute("id","ace-inline-screenreader");for(var l=0;l<this._lines.length;l++){var c=document.createElement("code");c.setAttribute("id","ace-inline-screenreader-line-".concat(l));var u=document.createTextNode(this._lines[l]);c.appendChild(u),s.appendChild(c)}return s},i}();r.AceInlineScreenReader=a}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets","ace/autocomplete/inline_screenreader"],function(n,r,o){var a=n("../snippets").snippetManager,i=n("./inline_screenreader").AceInlineScreenReader,s=function(){function l(){this.editor=null}return l.prototype.show=function(c,u,f){if(f=f||"",c&&this.editor&&this.editor!==c&&(this.hide(),this.editor=null,this.inlineScreenReader=null),!c||!u)return!1;this.inlineScreenReader||(this.inlineScreenReader=new i(c));var h=u.snippet?a.getDisplayTextForSnippet(c,u.snippet):u.value;return u.hideInlinePreview||!h||!h.startsWith(f)?!1:(this.editor=c,this.inlineScreenReader.setScreenReaderContent(h),h=h.slice(f.length),h===""?c.removeGhostText():c.setGhostText(h),!0)},l.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},l.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},l.prototype.destroy=function(){this.hide(),this.editor=null,this.inlineScreenReader&&(this.inlineScreenReader.destroy(),this.inlineScreenReader=null)},l}();r.AceInline=s}),ace.define("ace/autocomplete/util",["require","exports","module"],function(n,r,o){r.parForEach=function(i,s,l){var c=0,u=i.length;u===0&&l();for(var f=0;f<u;f++)s(i[f],function(h,v){c++,c===u&&l(h,v)})};var a=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;r.retrievePrecedingIdentifier=function(i,s,l){l=l||a;for(var c=[],u=s-1;u>=0&&l.test(i[u]);u--)c.push(i[u]);return c.reverse().join("")},r.retrieveFollowingIdentifier=function(i,s,l){l=l||a;for(var c=[],u=s;u<i.length&&l.test(i[u]);u++)c.push(i[u]);return c},r.getCompletionPrefix=function(i){var s=i.getCursorPosition(),l=i.session.getLine(s.row),c;return i.completers.forEach((function(u){u.identifierRegexps&&u.identifierRegexps.forEach((function(f){!c&&f&&(c=this.retrievePrecedingIdentifier(l,s.column,f))}).bind(this))}).bind(this)),c||this.retrievePrecedingIdentifier(l,s.column)},r.triggerAutocomplete=function(i,l){var l=l??i.session.getPrecedingCharacter();return i.completers.some(function(c){if(c.triggerCharacters&&Array.isArray(c.triggerCharacters))return c.triggerCharacters.includes(l)})}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config","ace/lib/event","ace/lib/scroll"],function(n,r,o){var a=n("./keyboard/hash_handler").HashHandler,i=n("./autocomplete/popup").AcePopup,s=n("./autocomplete/inline").AceInline,l=n("./autocomplete/po
|
|||
|
|
`&&b!=="\r"&&b!==`
|
|||
|
|
`)return!1;var m=this.getTokenizer().getLineTokens(v.trim(),h).tokens;if(!m)return!1;do var y=m.pop();while(y&&(y.type=="comment"||y.type=="text"&&y.value.match(/^\s+$/)));return y?y.type=="keyword"&&f[y.value]:!1},this.autoOutdent=function(h,v,b){b+=1;var m=this.$getIndent(v.getLine(b)),y=v.getTabString();m.slice(-y.length)==y&&v.remove(new c(b,m.length-y.length,b,m.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(u.prototype),r.Mode=u}),function(){ace.require(["ace/mode/python"],function(n){e&&(e.exports=n)})}()})(LSe);var DSe={exports:{}};(function(e,t){ace.define("ace/theme/github-css",["require","exports","module"],function(n,r,o){o.exports=`/* CSS style content from github's default pygments highlighter template.
|
|||
|
|
Cursor and selection styles from textmate.css. */
|
|||
|
|
.ace-github .ace_gutter {
|
|||
|
|
background: #e8e8e8;
|
|||
|
|
color: #AAA;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github {
|
|||
|
|
background: #fff;
|
|||
|
|
color: #000;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_keyword {
|
|||
|
|
font-weight: bold;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_string {
|
|||
|
|
color: #D14;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_variable.ace_class {
|
|||
|
|
color: teal;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_constant.ace_numeric {
|
|||
|
|
color: #099;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_constant.ace_buildin {
|
|||
|
|
color: #0086B3;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_support.ace_function {
|
|||
|
|
color: #0086B3;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_comment {
|
|||
|
|
color: #998;
|
|||
|
|
font-style: italic;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_variable.ace_language {
|
|||
|
|
color: #0086B3;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_paren {
|
|||
|
|
font-weight: bold;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_boolean {
|
|||
|
|
font-weight: bold;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_string.ace_regexp {
|
|||
|
|
color: #009926;
|
|||
|
|
font-weight: normal;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_variable.ace_instance {
|
|||
|
|
color: teal;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_constant.ace_language {
|
|||
|
|
font-weight: bold;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_cursor {
|
|||
|
|
color: black;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github.ace_focus .ace_marker-layer .ace_active-line {
|
|||
|
|
background: rgb(255, 255, 204);
|
|||
|
|
}
|
|||
|
|
.ace-github .ace_marker-layer .ace_active-line {
|
|||
|
|
background: rgb(245, 245, 245);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_marker-layer .ace_selection {
|
|||
|
|
background: rgb(181, 213, 255);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github.ace_multiselect .ace_selection.ace_start {
|
|||
|
|
box-shadow: 0 0 3px 0px white;
|
|||
|
|
}
|
|||
|
|
/* bold keywords cause cursor issues for some fonts */
|
|||
|
|
/* this disables bold style for editor and keeps for static highlighter */
|
|||
|
|
.ace-github.ace_nobold .ace_line > span {
|
|||
|
|
font-weight: normal !important;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_marker-layer .ace_step {
|
|||
|
|
background: rgb(252, 255, 0);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_marker-layer .ace_stack {
|
|||
|
|
background: rgb(164, 229, 101);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_marker-layer .ace_bracket {
|
|||
|
|
margin: -1px 0 0 -1px;
|
|||
|
|
border: 1px solid rgb(192, 192, 192);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_gutter-active-line {
|
|||
|
|
background-color : rgba(0, 0, 0, 0.07);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_marker-layer .ace_selected-word {
|
|||
|
|
background: rgb(250, 250, 255);
|
|||
|
|
border: 1px solid rgb(200, 200, 250);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_invisible {
|
|||
|
|
color: #BFBFBF
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_print-margin {
|
|||
|
|
width: 1px;
|
|||
|
|
background: #e8e8e8;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_indent-guide {
|
|||
|
|
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-github .ace_indent-guide-active {
|
|||
|
|
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;
|
|||
|
|
}
|
|||
|
|
`}),ace.define("ace/theme/github",["require","exports","module","ace/theme/github-css","ace/lib/dom"],function(n,r,o){r.isDark=!1,r.cssClass="ace-github",r.cssText=n("./github-css");var a=n("../lib/dom");a.importCssString(r.cssText,r.cssClass,!1)}),function(){ace.require(["ace/theme/github"],function(n){e&&(e.exports=n)})}()})(DSe);var ISe={exports:{}};(function(e,t){ace.define("ace/theme/twilight-css",["require","exports","module"],function(n,r,o){o.exports=`.ace-twilight .ace_gutter {
|
|||
|
|
background: #232323;
|
|||
|
|
color: #E2E2E2
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_print-margin {
|
|||
|
|
width: 1px;
|
|||
|
|
background: #232323
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight {
|
|||
|
|
background-color: #141414;
|
|||
|
|
color: #F8F8F8
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_cursor {
|
|||
|
|
color: #A7A7A7
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_marker-layer .ace_selection {
|
|||
|
|
background: rgba(221, 240, 255, 0.20)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight.ace_multiselect .ace_selection.ace_start {
|
|||
|
|
box-shadow: 0 0 3px 0px #141414;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_marker-layer .ace_step {
|
|||
|
|
background: rgb(102, 82, 0)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_marker-layer .ace_bracket {
|
|||
|
|
margin: -1px 0 0 -1px;
|
|||
|
|
border: 1px solid rgba(255, 255, 255, 0.25)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_marker-layer .ace_active-line {
|
|||
|
|
background: rgba(255, 255, 255, 0.031)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_gutter-active-line {
|
|||
|
|
background-color: rgba(255, 255, 255, 0.031)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_marker-layer .ace_selected-word {
|
|||
|
|
border: 1px solid rgba(221, 240, 255, 0.20)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_invisible {
|
|||
|
|
color: rgba(255, 255, 255, 0.25)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_keyword,
|
|||
|
|
.ace-twilight .ace_meta {
|
|||
|
|
color: #CDA869
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_constant,
|
|||
|
|
.ace-twilight .ace_constant.ace_character,
|
|||
|
|
.ace-twilight .ace_constant.ace_character.ace_escape,
|
|||
|
|
.ace-twilight .ace_constant.ace_other,
|
|||
|
|
.ace-twilight .ace_heading,
|
|||
|
|
.ace-twilight .ace_markup.ace_heading,
|
|||
|
|
.ace-twilight .ace_support.ace_constant {
|
|||
|
|
color: #CF6A4C
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_invalid.ace_illegal {
|
|||
|
|
color: #F8F8F8;
|
|||
|
|
background-color: rgba(86, 45, 86, 0.75)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_invalid.ace_deprecated {
|
|||
|
|
text-decoration: underline;
|
|||
|
|
font-style: italic;
|
|||
|
|
color: #D2A8A1
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_support {
|
|||
|
|
color: #9B859D
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_fold {
|
|||
|
|
background-color: #AC885B;
|
|||
|
|
border-color: #F8F8F8
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_support.ace_function {
|
|||
|
|
color: #DAD085
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_list,
|
|||
|
|
.ace-twilight .ace_markup.ace_list,
|
|||
|
|
.ace-twilight .ace_storage {
|
|||
|
|
color: #F9EE98
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_entity.ace_name.ace_function,
|
|||
|
|
.ace-twilight .ace_meta.ace_tag {
|
|||
|
|
color: #AC885B
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_string {
|
|||
|
|
color: #8F9D6A
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_string.ace_regexp {
|
|||
|
|
color: #E9C062
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_comment {
|
|||
|
|
font-style: italic;
|
|||
|
|
color: #5F5A60
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_variable {
|
|||
|
|
color: #7587A6
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_xml-pe {
|
|||
|
|
color: #494949
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_indent-guide {
|
|||
|
|
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
.ace-twilight .ace_indent-guide-active {
|
|||
|
|
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
|
|||
|
|
}
|
|||
|
|
`}),ace.define("ace/theme/twilight",["require","exports","module","ace/theme/twilight-css","ace/lib/dom"],function(n,r,o){r.isDark=!0,r.cssClass="ace-twilight",r.cssText=n("./twilight-css");var a=n("../lib/dom");a.importCssString(r.cssText,r.cssClass,!1)}),function(){ace.require(["ace/theme/twilight"],function(n){e&&(e.exports=n)})}()})(ISe);const Kf=NSe,Xf=PSe,ZH=({className:e,children:t,...n})=>d.jsx(KH,{className:et(e),...n,children:d.jsx("div",{className:"fixed inset-0 z-50 flex items-start justify-center sm:items-center",children:t})});ZH.displayName=KH.displayName;const eU=p.forwardRef(({className:e,...t},n)=>d.jsx(XH,{ref:n,className:et("fixed inset-0 z-50 bg-blur-shared transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in",e),...t}));eU.displayName=XH.displayName;const Tu=p.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(ZH,{children:[d.jsx(eU,{}),d.jsxs(YH,{ref:r,className:et("fixed z-50 grid w-full gap-3 rounded-b-lg border bg-[#262626] p-6 shadow-lg animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-[80%] sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0",e),...n,children:[t,d.jsxs(RSe,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[d.jsx(Pi,{className:"h-4 w-4",style:{color:"#fff"}}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Tu.displayName=YH.displayName;const ju=({className:e,...t})=>d.jsx("div",{className:et("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ju.displayName="DialogHeader";const Qy=({className:e,...t})=>d.jsx("div",{className:et("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Qy.displayName="DialogFooter";const Kl=p.forwardRef(({className:e,...t},n)=>d.jsx(JH,{ref:n,className:et("text-lg font-semibold leading-none tracking-tight",e),...t}));Kl.displayName=JH.displayName;const Nu=p.forwardRef(({className:e,...t},n)=>d.jsx(QH,{ref:n,className:et("text-sm text-[#fff]",e),...t}));Nu.displayName=QH.displayName;const tU=({children:e})=>d.jsx("div",{className:"h-full w-full",children:e}),nU=({children:e,asChild:t,disable:n})=>d.jsx(Xf,{className:t?"":"w-full",hidden:!e,asChild:t,children:e}),rU=({children:e,description:t})=>d.jsxs(ju,{children:[d.jsx(Kl,{className:"flex items-center",children:e}),d.jsx(Nu,{children:t})]}),oU=({children:e})=>d.jsx(d.Fragment,{children:e});function vo({open:e,setOpen:t,children:n,size:r="large",onChangeOpenModal:o}){const a=W.Children.toArray(n).find(f=>f.type===rU),i=W.Children.toArray(n).find(f=>f.type===nU),s=W.Children.toArray(n).find(f=>f.type===tU),l=W.Children.toArray(n).find(f=>f.type===oU);let c,u;switch(r){case"x-small":c="min-w-[20vw]",u="h-[10vh]";break;case"smaller":c="min-w-[40vw]",u="h-[27vh]";break;case"small":c="min-w-[40vw]",u="h-[40vh]";break;case"small-h-full":c="min-w-[40vw]";break;case"medium":c="min-w-[60vw]",u="h-[60vh]";break;case"medium-h-full":c="min-w-[60vw]";break;case"large":c="min-w-[80vw]",u="h-[80vh]";break;case"large-h-full":c="min-w-[80vw]";break;default:c="min-w-[80vw]",u="h-[80vh]";break}return p.useEffect(()=>{o&&o(e)},[e]),d.jsxs(Kf,{open:e,onOpenChange:t,children:[i,d.jsxs(Tu,{className:c,children:[d.jsx("div",{className:"truncate-doubleline word-break-break-word text-[#fff]",children:a}),d.jsx("div",{className:`mt-2 flex flex-col ${u} w-full promptTextarea`,children:s}),l&&d.jsx("div",{className:"flex flex-row-reverse",children:l})]})]})}vo.Content=tU;vo.Header=rU;vo.Trigger=nU;vo.Footer=oU;function CN({value:e,setValue:t,nodeClass:n,setNodeClass:r}){const[o,a]=p.useState(e),{dark:i}=p.useContext(Am),{closePopUp:s,setCloseEdit:l}=p.useContext(Hn),{setErrorData:c,setSuccessData:u}=p.useContext(wt),{t:f}=ze();function h(b){b===!1&&(l("codearea"),s())}function v(){mt(Khe(o).then(b=>{if(b){let m=b.imports.
|
|||
|
|
flex flex-col gap-3 template-scrollbar pb-[14px]
|
|||
|
|
${r&&"max-h-[170px]"}`,children:a.map((c,u)=>d.jsxs("div",{className:"flex w-full gap-3 pl-[14px] pr-[14px]",children:[d.jsx("input",{type:"text",value:c,className:o?"input-edit-node mt-[3px]":"input-primary mt-[3px]"+(n?"input-disable":""),placeholder:"input...",onChange:f=>{i(h=>{let v=xt(h);return v[u]=f.target.value,t(v),v})}}),u===a.length-1&&d.jsx("button",{onClick:()=>{i(f=>{let h=xt(f);return h.push(""),t(h),h})},children:d.jsx("img",{src:FSe,className:"w-[14px]",alt:""})}),a.length!==1&&d.jsx("button",{onClick:()=>{i(f=>{let h=xt(f);return h.splice(u,1),t(h),h})},children:d.jsx("img",{src:BSe,className:"w-[11px]",alt:""})})]},u))})}function nx({value:e,onChange:t,disabled:n,editNode:r=!1}){const[o,a]=p.useState(e??""),i=0,{closePopUp:s}=p.useContext(Hn);return p.useEffect(()=>{n&&(a(""),t(""))},[n,t]),p.useEffect(()=>{a(e)},[s]),d.jsx("div",{className:"w-full "+(n?"pointer-events-none w-full cursor-not-allowed":""),children:d.jsx("input",{onKeyDown:l=>{l.key!=="Backspace"&&l.key!=="Enter"&&l.key!=="Delete"&&l.key!=="ArrowLeft"&&l.key!=="ArrowRight"&&l.key!=="Control"&&l.key!=="Meta"&&l.key!=="Shift"&&l.key!=="c"&&l.key!=="v"&&l.key!=="a"&&!/^[-]?\d*$/.test(l.key)&&l.preventDefault()},type:"number",step:"1",min:i,onInput:l=>{l.target.value<i.toString()&&(l.target.value=i.toString())},value:o,className:r?" input-edit-node ":" input-primary "+(n?" input-disable":""),placeholder:r?"integer":"Enter an integer",onChange:l=>{a(l.target.value),t(l.target.value)}})})}/*! @license DOMPurify 3.1.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.1/LICENSE */const{entries:aU,setPrototypeOf:SN,isFrozen:$Se,getPrototypeOf:zSe,getOwnPropertyDescriptor:_Se}=Object;let{freeze:io,seal:Fa,create:iU}=Object,{apply:g3,construct:m3}=typeof Reflect<"u"&&Reflect;io||(io=function(t){return t});Fa||(Fa=function(t){return t});g3||(g3=function(t,n,r){return t.apply(n,r)});m3||(m3=function(t,n){return new t(...n)});const g0=Qo(Array.prototype.forEach),EN=Qo(Array.prototype.pop),Vp=Qo(Array.prototype.push),lv=Qo(String.prototype.toLowerCase),pw=Qo(String.prototype.toString),kN=Qo(String.prototype.match),qp=Qo(String.prototype.replace),HSe=Qo(String.prototype.indexOf),USe=Qo(String.prototype.trim),Ja=Qo(Object.prototype.hasOwnProperty),ho=Qo(RegExp.prototype.test),Gp=WSe(TypeError);function Qo(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return g3(e,t,r)}}function WSe(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m3(e,n)}}function Lt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lv;SN&&SN(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const a=n(o);a!==o&&($Se(t)||(t[r]=a),o=a)}e[o]=!0}return e}function VSe(e){for(let t=0;t<e.length;t++)Ja(e,t)||(e[t]=null);return e}function Ac(e){const t=iU(null);for(const[n,r]of aU(e))Ja(e,n)&&(Array.isArray(r)?t[n]=VSe(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Ac(r):t[n]=r);return t}function m0(e,t){for(;e!==null;){const r=_Se(e,t);if(r){if(r.get)return Qo(r.get);if(typeof r.value=="function")return Qo(r.value)}e=zSe(e)}function n(){return null}return n}const ON=io(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textare
|
|||
|
|
`+Hr),ge&&g0([L,I,M],oa=>{Hr=qp(Hr,oa," ")}),k&&Ue?k.createHTML(Hr):Hr},t.setConfig=function(){let De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rt(De),Te=!0},t.clearConfig=function(){Ye=null,Te=!1},t.isValidAttribute=function(De,Q,ye){Ye||Rt({});const Xe=He(De),At=He(Q);return Ft(Xe,At,ye)},t.addHook=function(De,Q){typeof Q=="function"&&(N[De]=N[De]||[],Vp(N[De],Q))},t.removeHook=function(De){if(N[De])return EN(N[De])},t.removeHooks=function(De){N[De]&&(N[De]=[])},t.removeAllHooks=function(){N={}},t}var o6e=cU();const uU=({className:e,content:t,onClick:n,suppressWarning:r=!1})=>{const o=o6e.sanitize(t);return d.jsx("div",{className:e,dangerouslySetInnerHTML:{__html:o},suppressContentEditableWarning:r,onClick:n})},a6e=Sy("inline-flex items-center border rounded-full px-2.5 font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"bg-primary hover:bg-primary/80 border-transparent text-primary-foreground",gray:"bg-border hover:bg-border/80 text-secondary-foreground",secondary:"bg-secondary hover:bg-secondary/80 border-transparent text-secondary-foreground",destructive:"bg-destructive hover:bg-destructive/80 border-transparent text-destructive-foreground",outline:"text-foreground"},size:{sm:"h-4 text-xs",md:"h-5 text-sm",lg:"h-6 text-base"}},defaultVariants:{variant:"default"}});function cu({className:e,variant:t,size:n,...r}){return d.jsx("div",{className:et(a6e({variant:t,size:n}),e),...r})}const Hl=p.forwardRef(({className:e,...t},n)=>d.jsx("textarea",{className:et("flex min-h-[80px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Hl.displayName="Textarea";const i6e=79,s6e="不能打开聊天窗",l6e="这不是聊天技能。",c6e="技能没有被构建",dU=Kfe,u6e="请在聊天前构建技能。",RN=(e,t,n)=>{const r=e.id,o=Xh(e),a=U6(n,e.id);return`import requests
|
|||
|
|
from typing import Optional
|
|||
|
|
|
|||
|
|
BASE_API_URL = "${window.location.protocol}//${window.location.host}/api/v1/process"
|
|||
|
|
FLOW_ID = "${r}"
|
|||
|
|
# You can tweak the flow by adding a tweaks dictionary
|
|||
|
|
# e.g {"OpenAI-XXXXX": {"model_name": "gpt-4"}}
|
|||
|
|
TWEAKS = ${t&&t.length>0?R7(t):JSON.stringify(o,null,2)}
|
|||
|
|
|
|||
|
|
def run_flow(inputs: dict, flow_id: str, tweaks: Optional[dict] = None) -> dict:
|
|||
|
|
"""
|
|||
|
|
Run a flow with a given message and optional tweaks.
|
|||
|
|
|
|||
|
|
:param message: The message to send to the flow
|
|||
|
|
:param flow_id: The ID of the flow to run
|
|||
|
|
:param tweaks: Optional tweaks to customize the flow
|
|||
|
|
:return: The JSON response from the flow
|
|||
|
|
"""
|
|||
|
|
api_url = f"{BASE_API_URL}/{flow_id}"
|
|||
|
|
|
|||
|
|
payload = {"inputs": inputs}
|
|||
|
|
|
|||
|
|
if tweaks:
|
|||
|
|
payload["tweaks"] = tweaks
|
|||
|
|
|
|||
|
|
response = requests.post(api_url, json=payload)
|
|||
|
|
return response.json()
|
|||
|
|
|
|||
|
|
# Setup any tweaks you want to apply to the flow
|
|||
|
|
inputs = ${a}
|
|||
|
|
print(run_flow(inputs, flow_id=FLOW_ID, tweaks=TWEAKS))`},MN=(e,t,n)=>{const r=e.id,o=Xh(e),a=U6(n,e.id);return`curl -X POST \\
|
|||
|
|
${window.location.protocol}//${window.location.host}/api/v1/process/${r} \\
|
|||
|
|
-H 'Content-Type: application/json' \\
|
|||
|
|
-d '{"inputs": ${a}, "tweaks": ${t&&t.length>0?R7(t):JSON.stringify(o,null,2)}}'`},LN=(e,t,n)=>{const r=e.name,o=Xh(e),a=U6(n,e.id);return`from bisheng import load_flow_from_json
|
|||
|
|
TWEAKS = ${t&&t.length>0?R7(t):JSON.stringify(o,null,2)}
|
|||
|
|
flow = load_flow_from_json("${r}.json", tweaks=TWEAKS)
|
|||
|
|
# Now you can use it like any chain
|
|||
|
|
inputs = ${a}
|
|||
|
|
flow(inputs)`};function R7(e){return e.forEach(n=>{Object.keys(n).forEach(r=>{for(let o in n[r])try{n[r][o]=JSON.parse(n[r][o])}catch{}})}),JSON.stringify(e[0],null,2)}function v3({field_name:e="",value:t,setValue:n,buttonText:r,modalTitle:o,type:a,nodeClass:i,setNodeClass:s}){const[l]=p.useState(r),[c]=p.useState(o),[u]=p.useState(a),[f,h]=p.useState(t),[v,b]=p.useState(!0),[m,y]=p.useState([]);p.useContext(Am);const{setErrorData:A,setSuccessData:w,setNoticeData:k}=p.useContext(wt),{closePopUp:C,setCloseEdit:E}=p.useContext(Hn),S=p.useRef();function O(R){R===!1&&(E("generic"),C())}const T=p.useRef(null),P=p.useRef(null);function N(R){const D=/\{([^{}]+)\}/g,$=[];let z;for(;z=D.exec(R);)$.push(`{${z[1]}}`);let _=[],V=$;for(let K of V){let X=K;for(let Y of Lbe)K.includes(Y)&&_.push(X);if(X!==K){const Y=V.indexOf(K);Y!==-1&&V.splice(Y,1,X)}}const H=$.filter(K=>!_.includes(K));y(H)}p.useEffect(()=>{a===ps.PROMPT&&f&&f!=""&&N(f)},[f,a]);const L=(f||"").replace(/</g,"<").replace(/>/g,">").replace(Dbe,Ibe({name:"$1"})).replace(/\n/g,"<br />"),I=()=>d.jsx(uU,{className:M(),content:L,onClick:()=>{b(!0)},suppressWarning:!0});function M(){let R=0;return m.forEach(D=>{R=R+D.replace(/[{}]/g,"").length}),R>i6e?"code-highlight":"code-nohighlight"}function B(R){E6(e,f,i).then(D=>{if(D){s(D==null?void 0:D.frontend_node,f);let $=D.input_variables??[];$&&$.length===0?(b(!0),k({title:"Your template has no variables."})):(b(!1),w({title:"Prompt ready"}),O(R),n(f))}else b(!0),A({title:"An error occurred, please try again."})}).catch(D=>{var $,z;return console.log(D),b(!0),A({title:"This prompt has an issue, please review.",list:[(z=($=D==null?void 0:D.response)==null?void 0:$.data)==null?void 0:z.detail]})})}return d.jsxs(vo,{open:!0,setOpen:O,children:[d.jsx(vo.Header,{description:(()=>{switch(c){case"Edit Text":return"edit text";case"Edit Prompt":return"Create prompts. Prompts can help guide the behavior of the language model.";default:return null}})(),children:d.jsxs(Kl,{className:"flex items-center",children:[d.jsx("span",{className:"pr-2",children:c}),d.jsx(Mfe,{strokeWidth:1.5,className:"h-6 w-6 pl-1 text-primary ","aria-hidden":"true"})]})}),d.jsx(vo.Content,{children:d.jsxs("div",{className:"flex h-full flex-col",children:[d.jsx("div",{className:En(v?"":"rounded-lg border","flex h-full w-full"),children:a===ps.PROMPT&&v?d.jsx(Hl,{ref:P,className:"form-input h-full w-full rounded-lg custom-scroll focus-visible:ring-1",value:f,onBlur:()=>{b(!1)},autoFocus:!0,onChange:R=>{h(R.target.value),N(R.target.value)},placeholder:"Type message here."}):a===ps.PROMPT&&!v?d.jsx(I,{}):a!==ps.PROMPT?d.jsx(Hl,{ref:S,className:"form-input h-full w-full rounded-lg focus-visible:ring-1",value:f,onChange:R=>{h(R.target.value)},placeholder:"Type message here."}):d.jsx(d.Fragment,{})}),d.jsxs("div",{className:"mt-6 flex h-fit w-full items-end justify-between",children:[d.jsx("div",{className:"mb-auto flex-1",children:a===ps.PROMPT&&d.jsxs("div",{className:" mr-2",children:[d.jsx("div",{ref:T,className:"max-h-20 overflow-y-auto custom-scroll",children:d.jsxs("div",{className:"flex flex-wrap items-center",children:[d.jsx(C$,{className:" -ml-px mr-1 flex h-4 w-4 text-primary"}),d.jsx("span",{className:"text-md font-semibold text-primary",children:"Prompt word variable.:"}),m.map((R,D)=>d.jsx(gr,{content:R.replace(/[{}]/g,""),asChild:!1,children:d.jsx(cu,{variant:"gray",size:"md",className:"m-1 max-w-[40vw] cursor-default truncate p-2.5 text-sm",children:d.jsx("div",{className:"relative bottom-[1px]",children:d.jsx("span",{children:R.replace(/[{}]/g,"").length>59?R.replace(/[{}]/g,"").slice(0,56)+"...":R.replace(/[{}]/g,"")})})},D)},Mbe()+D))]})}),d.jsxs("span",{className:"mt-1 text-xs text-[#fff]",children:["The name of the prompt word can be freely chosen within curly braces, for example ","{variable_name}"]})]})}),d.jsxs(_e,{className:"bg-[#FFD54C] hover:bg-[#FFD54C]",onClick:()=>{switch(u){case 1:n(f),O(!1);break;case 2:!f||f===""?O(!1):B(!1);break}},type:"submit",children:[" ",l," "]})]})]})})]})}function rx({field_name:e,setNodeClass:t,nodeClass:n,
|
|||
|
|
* @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
|
|||
|
|
*/Wv.exports;(function(e,t){(function(){var n,r="4.17.21",o=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",f=1,h=2,v=4,b=1,m=2,y=1,A=2,w=4,k=8,C=16,E=32,S=64,O=128,T=256,P=512,N=30,L="...",I=800,M=16,B=1,R=2,D=3,$=1/0,z=9007199254740991,_=17976931348623157e292,V=0/0,H=4294967295,K=H-1,X=H>>>1,Y=[["ary",O],["bind",y],["bindKey",A],["curry",k],["curryRight",C],["flip",P],["partial",E],["partialRight",S],["rearg",T]],ne="[object Arguments]",ee="[object Array]",re="[object AsyncFunction]",be="[object Boolean]",ce="[object Date]",le="[object DOMException]",ge="[object Error]",ie="[object Function]",Pe="[object GeneratorFunction]",Te="[object Map]",Oe="[object Number]",Ie="[object Null]",Ne="[object Object]",Ue="[object Promise]",We="[object Proxy]",he="[object RegExp]",pe="[object Set]",je="[object String]",Le="[object Symbol]",nt="[object Undefined]",gt="[object WeakMap]",tn="[object WeakSet]",Xt="[object ArrayBuffer]",rn="[object DataView]",ur="[object Float32Array]",Un="[object Float64Array]",yr="[object Int8Array]",xr="[object Int16Array]",Nn="[object Int32Array]",jr="[object Uint8Array]",Nr="[object Uint8ClampedArray]",_r="[object Uint16Array]",se="[object Uint32Array]",ue=/\b__p \+= '';/g,Ae=/\b(__p \+=) '' \+/g,Be=/(__e\(.*?\)|\b__t\)) \+\n'';/g,He=/&(?:amp|lt|gt|quot|#39);/g,Ye=/[&<>"']/g,tt=RegExp(He.source),Ze=RegExp(Ye.source),Fe=/<%-([\s\S]+?)%>/g,Rt=/<%([\s\S]+?)%>/g,Vt=/<%=([\s\S]+?)%>/g,Je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,at=/^\w*$/,jt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yt=/[\\^$.*+?()[\]{}|]/g,tr=RegExp(Yt.source),_t=/^\s+/,Ar=/\s/,nr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Pn=/\{\n\/\* \[wrapped with (.+)\] \*/,lo=/,? & /,To=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,rr=/[()=,{}\[\]\/\s]/,Wn=/\\(\\)?/g,Ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dr=/\w*$/,Jr=/^[-+]0x[0-9a-f]+$/i,Yi=/^0b[01]+$/i,De=/^\[object .+?Constructor\]$/,Q=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,At=/($^)/,wr=/['\n\r\u2028\u2029\\]/g,Vn="\\ud800-\\udfff",Hr="\\u0300-\\u036f",oa="\\ufe20-\\ufe2f",oc="\\u20d0-\\u20ff",Pr=Hr+oa+oc,gp="\\u2700-\\u27bf",mp="a-z\\xdf-\\xf6\\xf8-\\xff",TJ="\\xac\\xb1\\xd7\\xf7",jJ="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",NJ="\\u2000-\\u206f",PJ=" \\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",q9="A-Z\\xc0-\\xd6\\xd8-\\xde",G9="\\ufe0e\\ufe0f",K9=TJ+jJ+NJ+PJ,x2="['’]",RJ="["+Vn+"]",X9="["+K9+"]",i1="["+Pr+"]",Y9="\\d+",MJ="["+gp+"]",J9="["+mp+"]",Q9="[^"+Vn+K9+Y9+gp+mp+q9+"]",A2="\\ud83c[\\udffb-\\udfff]",LJ="(?:"+i1+"|"+A2+")",Z9="[^"+Vn+"]",w2="(?:\\ud83c[\\udde6-\\uddff]){2}",C2="[\\ud800-\\udbff][\\udc00-\\udfff]",Iu="["+q9+"]",eE="\\u200d",tE="(?:"+J9+"|"+Q9+")",DJ="(?:"+Iu+"|"+Q9+")",nE="(?:"+x2+"(?:d|ll|m|re|s|t|ve))?",rE="(?:"+x2+"(?:D|LL|M|RE|S|T|VE))?",oE=LJ+"?",aE="["+G9+"]?",IJ="(?:"+eE+"(?:"+[Z9,w2,C2].join("|")+")"+aE+oE+")*",FJ="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",BJ="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",iE=aE+oE+IJ,$J="(?:"+[MJ,w2,C2].join("|")+")"+iE,zJ="(?:"+[Z9+i1+"?",i1,w2,C2,RJ].join("|")+")",_J=RegExp(x2,"g"),HJ=RegExp(i1,"g"),S2=RegExp(A2+"(?="+A2+")|"+zJ+iE,"g"),UJ=RegExp([Iu+"?"+J9+"+"+nE+"(?="+[X9,Iu,"$"].join("|")+")",DJ+"+"+rE+"(?="+[X9,Iu+tE,"$"].join("|")+")",Iu+"?"+tE+"+"+nE,Iu+"+"+rE,BJ,FJ,Y9,$J].join("|"),"g"),WJ=RegExp("["+eE+Vn+Pr+G9+"]"),VJ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qJ=["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"],GJ=-1,xn={};xn[
|
|||
|
|
/* [wrapped with `+x+`] */
|
|||
|
|
`)}function uee(g){return yt(g)||pc(g)||!!(jE&&g&&g[jE])}function ns(g,x){var j=typeof g;return x=x??z,!!x&&(j=="number"||j!="symbol"&&ye.test(g))&&g>-1&&g%1==0&&g<x}function Zr(g,x,j){if(!Rn(j))return!1;var F=typeof x;return(F=="number"?uo(j)&&ns(x,j.length):F=="string"&&x in j)?Ga(j[x],g):!1}function dA(g,x){if(yt(g))return!1;var j=typeof g;return j=="number"||j=="symbol"||j=="boolean"||g==null||Ro(g)?!0:at.test(g)||!Je.test(g)||x!=null&&g in hn(x)}function dee(g){var x=typeof g;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?g!=="__proto__":g===null}function fA(g){var x=D1(g),j=q[x];if(typeof j!="function"||!(x in Bt.prototype))return!1;if(g===j)return!0;var F=lA(j);return!!F&&g===F[0]}function fee(g){return!!EE&&EE in g}var pee=d1?rs:jA;function jp(g){var x=g&&g.constructor,j=typeof x=="function"&&x.prototype||_u;return g===j}function Ek(g){return g===g&&!Rn(g)}function kk(g,x){return function(j){return j==null?!1:j[g]===x&&(x!==n||g in hn(j))}}function hee(g){var x=_1(g,function(F){return j.size===c&&j.clear(),F}),j=x.cache;return x}function gee(g,x){var j=g[1],F=x[1],U=j|F,G=U<(y|A|O),J=F==O&&j==k||F==O&&j==T&&g[7].length<=x[8]||F==(O|T)&&x[7].length<=x[8]&&j==k;if(!(G||J))return g;F&y&&(g[2]=x[2],U|=j&y?0:w);var te=x[3];if(te){var ae=g[3];g[3]=ae?lk(ae,te,x[4]):te,g[4]=ae?il(g[3],u):x[4]}return te=x[5],te&&(ae=g[5],g[5]=ae?ck(ae,te,x[6]):te,g[6]=ae?il(g[5],u):x[6]),te=x[7],te&&(g[7]=te),F&O&&(g[8]=g[8]==null?x[8]:Ur(g[8],x[8])),g[9]==null&&(g[9]=x[9]),g[0]=x[0],g[1]=U,g}function mee(g){var x=[];if(g!=null)for(var j in hn(g))x.push(j);return x}function vee(g){return p1.call(g)}function Ok(g,x,j){return x=pr(x===n?g.length-1:x,0),function(){for(var F=arguments,U=-1,G=pr(F.length-x,0),J=fe(G);++U<G;)J[U]=F[x+U];U=-1;for(var te=fe(x+1);++U<x;)te[U]=F[U];return te[x]=j(J),jo(g,this,te)}}function Tk(g,x){return x.length<2?g:uc(g,ua(x,0,-1))}function bee(g,x){for(var j=g.length,F=Ur(x.length,j),U=co(g);F--;){var G=x[F];g[F]=ns(G,j)?U[G]:n}return g}function pA(g,x){if(!(x==="constructor"&&typeof g[x]=="function")&&x!="__proto__")return g[x]}var jk=Pk(QE),Np=MQ||function(g,x){return Rr.setTimeout(g,x)},hA=Pk(_Z);function Nk(g,x,j){var F=x+"";return hA(g,cee(F,yee(iee(F),j)))}function Pk(g){var x=0,j=0;return function(){var F=FQ(),U=M-(F-j);if(j=F,U>0){if(++x>=I)return arguments[0]}else x=0;return g.apply(n,arguments)}}function F1(g,x){var j=-1,F=g.length,U=F-1;for(x=x===n?F:x;++j<x;){var G=Y2(j,U),J=g[G];g[G]=g[j],g[j]=J}return g.length=x,g}var Rk=hee(function(g){var x=[];return g.charCodeAt(0)===46&&x.push(""),g.replace(jt,function(j,F,U,G){x.push(U?G.replace(Wn,"$1"):F||j)}),x});function vi(g){if(typeof g=="string"||Ro(g))return g;var x=g+"";return x=="0"&&1/g==-$?"-0":x}function fc(g){if(g!=null){try{return f1.call(g)}catch{}try{return g+""}catch{}}return""}function yee(g,x){return ia(Y,function(j){var F="_."+j[0];x&j[1]&&!s1(g,F)&&g.push(F)}),g.sort()}function Mk(g){if(g instanceof Bt)return g.clone();var x=new la(g.__wrapped__,g.__chain__);return x.__actions__=co(g.__actions__),x.__index__=g.__index__,x.__values__=g.__values__,x}function xee(g,x,j){(j?Zr(g,x,j):x===n)?x=1:x=pr(Ct(x),0);var F=g==null?0:g.length;if(!F||x<1)return[];for(var U=0,G=0,J=fe(y1(F/x));U<F;)J[G++]=ua(g,U,U+=x);return J}function Aee(g){for(var x=-1,j=g==null?0:g.length,F=0,U=[];++x<j;){var G=g[x];G&&(U[F++]=G)}return U}function wee(){var g=arguments.length;if(!g)return[];for(var x=fe(g-1),j=arguments[0],F=g;F--;)x[F-1]=arguments[F];return al(yt(j)?co(j):[j],Mr(x,1))}var Cee=Nt(function(g,x){return qn(g)?Sp(g,Mr(x,1,qn,!0)):[]}),See=Nt(function(g,x){var j=da(x);return qn(j)&&(j=n),qn(g)?Sp(g,Mr(x,1,qn,!0),it(j,2)):[]}),Eee=Nt(function(g,x){var j=da(x);return qn(j)&&(j=n),qn(g)?Sp(g,Mr(x,1,qn,!0),n,j):[]});function kee(g,x,j){var F=g==null?0:g.length;return F?(x=j||x===n?1:Ct(x),ua(g,x<0?0:x,F)):[]}function Oee(g,x,j){var F=g==null?0:g.length;return F?(x=j||x===n?1:Ct(x),x=F-x,ua(g,0,x<0?0:x)):[]}function Tee(g,x){return g&&g.length?j1(g,it(x,3),!0,!0):[]}function jee(g,x){return g&&g.length?j1(g,it(x,3),!0):[]}function Nee(g,x,j,F){va
|
|||
|
|
`;g.replace($e,function(ut,Mt,Ht,Mo,eo,Lo){return Ht||(Ht=Mo),ke+=g.slice(xe,Lo).replace(wr,pQ),Mt&&(te=!0,ke+=`' +
|
|||
|
|
__e(`+Mt+`) +
|
|||
|
|
'`),eo&&(ae=!0,ke+=`';
|
|||
|
|
`+eo+`;
|
|||
|
|
__p += '`),Ht&&(ke+=`' +
|
|||
|
|
((__t = (`+Ht+`)) == null ? '' : __t) +
|
|||
|
|
'`),xe=Lo+ut.length,ut}),ke+=`';
|
|||
|
|
`;var ct=on.call(x,"variable")&&x.variable;if(!ct)ke=`with (obj) {
|
|||
|
|
`+ke+`
|
|||
|
|
}
|
|||
|
|
`;else if(rr.test(ct))throw new vt(s);ke=(ae?ke.replace(ue,""):ke).replace(Ae,"$1").replace(Be,"$1;"),ke="function("+(ct||"obj")+`) {
|
|||
|
|
`+(ct?"":`obj || (obj = {});
|
|||
|
|
`)+"var __t, __p = ''"+(te?", __e = _.escape":"")+(ae?`, __j = Array.prototype.join;
|
|||
|
|
function print() { __p += __j.call(arguments, '') }
|
|||
|
|
`:`;
|
|||
|
|
`)+ke+`return __p
|
|||
|
|
}`;var kt=dO(function(){return Jt(G,Qe+"return "+ke).apply(n,J)});if(kt.source=ke,yA(kt))throw kt;return kt}function $re(g){return nn(g).toLowerCase()}function zre(g){return nn(g).toUpperCase()}function _re(g,x,j){if(g=nn(g),g&&(j||x===n))return xE(g);if(!g||!(x=Po(x)))return g;var F=Va(g),U=Va(x),G=AE(F,U),J=wE(F,U)+1;return dl(F,G,J).join("")}function Hre(g,x,j){if(g=nn(g),g&&(j||x===n))return g.slice(0,SE(g)+1);if(!g||!(x=Po(x)))return g;var F=Va(g),U=wE(F,Va(x))+1;return dl(F,0,U).join("")}function Ure(g,x,j){if(g=nn(g),g&&(j||x===n))return g.replace(_t,"");if(!g||!(x=Po(x)))return g;var F=Va(g),U=AE(F,Va(x));return dl(F,U).join("")}function Wre(g,x){var j=N,F=L;if(Rn(x)){var U="separator"in x?x.separator:U;j="length"in x?Ct(x.length):j,F="omission"in x?Po(x.omission):F}g=nn(g);var G=g.length;if(Bu(g)){var J=Va(g);G=J.length}if(j>=G)return g;var te=j-$u(F);if(te<1)return F;var ae=J?dl(J,0,te).join(""):g.slice(0,te);if(U===n)return ae+F;if(J&&(te+=ae.length-te),xA(U)){if(g.slice(te).search(U)){var xe,we=ae;for(U.global||(U=I2(U.source,nn(dr.exec(U))+"g")),U.lastIndex=0;xe=U.exec(we);)var ke=xe.index;ae=ae.slice(0,ke===n?te:ke)}}else if(g.indexOf(Po(U),te)!=te){var $e=ae.lastIndexOf(U);$e>-1&&(ae=ae.slice(0,$e))}return ae+F}function Vre(g){return g=nn(g),g&&tt.test(g)?g.replace(He,xQ):g}var qre=qu(function(g,x,j){return g+(j?" ":"")+x.toUpperCase()}),CA=fk("toUpperCase");function uO(g,x,j){return g=nn(g),x=j?n:x,x===n?gQ(g)?CQ(g):iQ(g):g.match(x)||[]}var dO=Nt(function(g,x){try{return jo(g,n,x)}catch(j){return yA(j)?j:new vt(j)}}),Gre=ts(function(g,x){return ia(x,function(j){j=vi(j),Zi(g,j,vA(g[j],g))}),g});function Kre(g){var x=g==null?0:g.length,j=it();return g=x?kn(g,function(F){if(typeof F[1]!="function")throw new sa(i);return[j(F[0]),F[1]]}):[],Nt(function(F){for(var U=-1;++U<x;){var G=g[U];if(jo(G[0],this,F))return jo(G[1],this,F)}})}function Xre(g){return xZ(ca(g,f))}function SA(g){return function(){return g}}function Yre(g,x){return g==null||g!==g?x:g}var Jre=hk(),Qre=hk(!0);function po(g){return g}function EA(g){return WE(typeof g=="function"?g:ca(g,f))}function Zre(g){return qE(ca(g,f))}function eoe(g,x){return GE(g,ca(x,f))}var toe=Nt(function(g,x){return function(j){return Ep(j,g,x)}}),noe=Nt(function(g,x){return function(j){return Ep(g,j,x)}});function kA(g,x,j){var F=Cr(x),U=k1(x,F);j==null&&!(Rn(x)&&(U.length||!F.length))&&(j=x,x=g,g=this,U=k1(x,Cr(x)));var G=!(Rn(j)&&"chain"in j)||!!j.chain,J=rs(g);return ia(U,function(te){var ae=x[te];g[te]=ae,J&&(g.prototype[te]=function(){var xe=this.__chain__;if(G||xe){var we=g(this.__wrapped__),ke=we.__actions__=co(this.__actions__);return ke.push({func:ae,args:arguments,thisArg:g}),we.__chain__=xe,we}return ae.apply(g,al([this.value()],arguments))})}),g}function roe(){return Rr._===this&&(Rr._=jQ),this}function OA(){}function ooe(g){return g=Ct(g),Nt(function(x){return KE(x,g)})}var aoe=oA(kn),ioe=oA(gE),soe=oA(j2);function fO(g){return dA(g)?N2(vi(g)):FZ(g)}function loe(g){return function(x){return g==null?n:uc(g,x)}}var coe=mk(),uoe=mk(!0);function TA(){return[]}function jA(){return!1}function doe(){return{}}function foe(){return""}function poe(){return!0}function hoe(g,x){if(g=Ct(g),g<1||g>z)return[];var j=H,F=Ur(g,H);x=it(x),g-=H;for(var U=M2(F,x);++j<g;)x(j);return U}function goe(g){return yt(g)?kn(g,vi):Ro(g)?[g]:co(Rk(nn(g)))}function moe(g){var x=++OQ;return nn(g)+x}var voe=R1(function(g,x){return g+x},0),boe=aA("ceil"),yoe=R1(function(g,x){return g/x},1),xoe=aA("floor");function Aoe(g){return g&&g.length?E1(g,po,W2):n}function woe(g,x){return g&&g.length?E1(g,it(x,2),W2):n}function Coe(g){return bE(g,po)}function Soe(g,x){return bE(g,it(x,2))}function Eoe(g){return g&&g.length?E1(g,po,K2):n}function koe(g,x){return g&&g.length?E1(g,it(x,2),K2):n}var Ooe=R1(function(g,x){return g*x},1),Toe=aA("round"),joe=R1(function(g,x){return g-x},0);function Noe(g){return g&&g.length?R2(g,po):0}function Poe(g,x){return g&&g.length?R2(g,it(x,2)):0}return q.after=Zte,q.ary=Uk,q.assign=zne,q.assignIn=rO,q.assignInWith=V1,q.assignWith=_ne,q.at=Hne,q.before=Wk,q.bind=vA,q.
|
|||
|
|
`).map((Y,ne)=>d.jsx("p",{className:"block",children:Y},ne))})},[u]);const[$,z]=p.useState(!1);p.useEffect(()=>{var ne;let Y=Rbe(I,r,e,((ne=S.data)==null?void 0:ne.nodes)||[]);T.current=Y,Y&&Y.length>0?m.current=Y.map((ee,re)=>{var ce;const be=Iv[ee.family]??Iv.unknown;return d.jsxs("div",{children:[re===0&&d.jsx("span",{children:e?"Avaliable input components:":"Avaliable output components:"}),d.jsxs("span",{className:En(re>0?"mt-2 flex items-center":"mt-3 flex items-center"),children:[d.jsx("div",{className:"h-5 w-5",style:{color:Tn[ee.family]},children:d.jsx("img",{src:be,className:"w-[14px]",alt:""})}),d.jsxs("span",{className:"ps-2 text-xs text-foreground w-[400px]",children:[Mz()[ee.family]??"Other"," ",ee!=null&&ee.display_name&&((ce=ee==null?void 0:ee.display_name)==null?void 0:ce.length)>0?d.jsxs("span",{className:"text-xs",children:[" ",ee.display_name===""?"":" - ",ee.display_name.split(", ").length>2?ee.display_name.split(", ").map((le,ge)=>d.jsx(W.Fragment,{children:d.jsx("span",{children:ge===ee.display_name.split(", ").length-1?le:le+=", "})},le+ge)):ee.display_name]}):d.jsxs("span",{className:"text-xs",children:[" ",ee.type===""?"":" - ",ee.type.split(", ").length>2?ee.type.split(", ").map((le,ge)=>d.jsx(W.Fragment,{children:d.jsx("span",{children:ge===ee.type.split(", ").length-1?le:le+=", "})},le+ge)):ee.type]})]})]},re)]},re)}):m.current=d.jsx("span",{children:"No compatible components found."})},[r]);const{takeSnapshot:_}=p.useContext(Im);p.useContext(ao);const V=p.useCallback(()=>{},[_]);return d.jsx("div",{ref:b,className:"flex w-full flex-wrap items-center justify-between bg-muted px-5 py-2",children:d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"w-full truncate text-sm"+(e?"":" text-end")+(u!==""?" flex items-center":""),children:[o,d.jsx("span",{className:"text-status-red",children:l?" *":""}),d.jsx("div",{className:"",children:u!==""&&d.jsx(gr,{content:y.current,children:d.jsx(h6,{className:"relative bottom-0.5 ml-2 h-3 w-3"})})})]}),e&&(i==="str"||i==="bool"||i==="float"||i==="code"||i==="prompt"||i==="file"||i==="int"||i==="variable"||i==="button"||i==="NestedDict"||i==="dict")&&!c?d.jsx(d.Fragment,{}):d.jsx(gr,{styleClasses:"tooltip-fixed-width custom-scroll nowheel",delayDuration:0,content:m.current,side:e?"left":"right",children:d.jsx(_oe,{type:e?"target":"source",position:e?gO.Left:gO.Right,id:t,isValidConnection:Y=>Dz(Y,P),onConnect:Y=>console.log("handle onConnect",Y),className:En(e?"-ml-0.5 ":"-mr-0.5 ","h-3 w-3 rounded-full border-2 bg-background"),onMouseDown:V,style:{borderColor:a,top:w}})}),n.node.template[s]?e===!0&&i==="str"&&!n.node.template[s].options?d.jsx("div",{className:"mt-2 w-full",children:n.node.template[s].list?d.jsx(tx,{isGroup:f,disabled:N,value:!n.node.template[s].value||n.node.template[s].value===""?[""]:n.node.template[s].value,onChange:B}):n.node.template[s].multiline?d.jsx(ox,{disabled:N,value:n.node.template[s].value??"",onChange:B}):["index_name","collection_name"].includes(s)?d.jsx(AU,{setNodeClass:Y=>{n.node=Y},nodeClass:n.node,disabled:N,id:n.node.template[s].collection_id??"",value:n.node.template[s].value??"",onSelect:(Y,ne)=>{R(Y,ne),Y&&L(n.id)},onChange:()=>{}}):d.jsx(Lm,{disabled:N,password:n.node.template[s].password??!1,value:n.node.template[s].value??"",onChange:B})}):e===!0&&i==="bool"?d.jsx("div",{className:"mt-2 w-full",children:d.jsx(uu,{disabled:N,enabled:n.node.template[s].value,setEnabled:Y=>{B(Y)},size:"large"})}):e===!0&&i==="float"?d.jsx("div",{className:"mt-2 w-full",children:d.jsx(ex,{disabled:N,value:n.node.template[s].value??"",onChange:B})}):e===!0&&i==="str"&&n.node.template[s].options?d.jsx("div",{className:"mt-2 w-full",children:d.jsx(Uf,{options:n.node.template[s].options,onSelect:B,value:n.node.template[s].value??"Choose an option"})}):e===!0&&i==="code"?d.jsx("div",{className:"mt-2 w-full",children:d.jsx(Zy,{setNodeClass:Y=>{n.node=Y},nodeClass:n.node,disabled:N,value:n.node.template[s].value??"",onChange:n.type==="Data"?D:B})}):e===!0&&i==="file"?d.jsx("div",{className:"mt-2 w-full",children:d.jsx(Dm,{disabled:N,value:n.n
|
|||
|
|
`).map((O,T)=>d.jsx("div",{children:O},T)):""}):d.jsxs("span",{className:"flex",children:["Build"," "," ",d.jsx(ape,{className:"mx-0.5 h-5 fill-build-trigger stroke-build-trigger stroke-1",strokeWidth:1.5})," "," flow to validate status."]}),children:d.jsxs("div",{className:"generic-node-status-position",children:[d.jsx("div",{className:En(m&&m.valid?"green-status":"status-build-animation","status-div")}),d.jsx("div",{className:En(m&&!m.valid?"red-status":"status-build-animation","status-div")}),d.jsx("div",{className:En(!m||w?"yellow-status":"status-build-animation","status-div")})]})})})}),d.jsx("div",{className:"generic-node-tooltip-div",children:d.jsx(gr,{content:e.node.display_name,children:d.jsx("div",{className:"generic-node-tooltip-div text-primary",children:E?d.jsx(M7,{rule:[{required:!0}],str:e.node.display_name,onChange:O=>{e.node.display_name=O,C(!k)},children:O=>d.jsx("div",{className:"max-w-[300px] overflow-hidden text-ellipsis",children:O})}):e.node.display_name})})})]})}),d.jsxs("div",{className:"generic-node-desc nodrag",onKeyDown:O=>O.stopPropagation(),children:[d.jsx("div",{className:"generic-node-desc-text",onClick:()=>e.node.description_url&&v(d.jsx(D7,{data:e.node.description_url})),children:e.node.description}),d.jsxs(d.Fragment,{children:[Object.keys(e.node.template).filter(O=>O.charAt(0)!=="_").map((O,T)=>{var P,N;return d.jsx("div",{children:e.node.template[O].show&&!e.node.template[O].advanced?d.jsx(IN,{data:e,isGroup:E,color:Tn[u[e.node.template[O].type]]??Tn[e.node.template[O].type]??Tn.unknown,title:e.node.template[O].display_name?e.node.template[O].display_name:e.node.template[O].name?X4(e.node.template[O].name):X4(O),info:e.node.template[O].info,name:O,tooltipTitle:((P=e.node.template[O].input_types)==null?void 0:P.join(`
|
|||
|
|
`))??e.node.template[O].type,required:e.node.template[O].required,id:(((N=e.node.template[O].input_types)==null?void 0:N.join(";"))??e.node.template[O].type)+"|"+O+"|"+e.id,left:!0,type:e.node.template[O].type,optionalHandle:e.node.template[O].input_types,onChange:()=>C(!k),nodeColorsP:Tn}):d.jsx(d.Fragment,{})},T)}),d.jsx("div",{className:En(Object.keys(e.node.template).length<1?"hidden":"","flex-max-width justify-center"),children:" "}),d.jsx(IN,{data:e,color:Tn[u[e.type]]??Tn.unknown,title:e.node.output_types&&e.node.output_types.length>0?e.node.output_types.join("|"):e.type,tooltipTitle:e.node.base_classes.join(`
|
|||
|
|
`),id:[e.type,e.id,...e.node.base_classes].join("|"),type:e.node.base_classes.join("|"),left:!1,nodeColorsP:Tn}),e.type==="Report"&&d.jsx("div",{className:"w-full bg-muted px-5 py-2",children:d.jsx(Ls,{to:`/report/${o}`,children:d.jsx(_e,{variant:"outline",className:"px-10",children:"Edit"})})})]})]})]})]})}const H6e=p.memo(e=>{const t=p.useRef(null);return p.useEffect(()=>{t.current.addEventListener("click",()=>{var n;(n=e==null?void 0:e.data)==null||n.createGroup()})},[]),d.jsx(d.Fragment,{children:d.jsx("div",{className:"selected-toolbar",children:d.jsx("button",{id:"frame-button",className:"group-icon frame-button",ref:t})})})}),U6e="_node_7wlue_1",W6e="_titleBox_7wlue_19",V6e="_deleteIcon_7wlue_29",q6e={node:U6e,titleBox:W6e,deleteIcon:V6e},G6e=({deleteNode:e})=>d.jsx(d.Fragment,{children:d.jsx("div",{className:"w-26 h-10",children:d.jsx("span",{className:"isolate inline-flex rounded-md shadow-sm selected-toolbar",children:d.jsx(gr,{content:"ungroup",side:"top",children:d.jsx("button",{className:"ungroup-icon rounded-l-md bg-background px-2 py-2 shadow-md ring-inset transition-all",onClick:()=>{e()}})})})})}),K6e={background:"transparent",border:"none"},X6e=({data:e,id:t})=>{const{deleteGroupNode:n}=p.useContext(ao);function r(){n(t)}return d.jsxs(d.Fragment,{children:[d.jsx(BS,{align:"end",children:d.jsx(G6e,{data:e,deleteNode:r})}),d.jsx("div",{className:q6e.node,children:d.jsx(Hoe,{style:K6e,minWidth:180,minHeight:150,children:d.jsx(Y6e,{})})})]})};function Y6e(){return d.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"#999999",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",style:{position:"absolute",right:10,bottom:10},children:[d.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),d.jsx("polyline",{points:"16 20 20 20 20 16"}),d.jsx("line",{x1:"14",y1:"14",x2:"20",y2:"20"}),d.jsx("polyline",{points:"8 4 4 4 4 8"}),d.jsx("line",{x1:"4",y1:"4",x2:"10",y2:"10"})]})}const J6e=p.memo(X6e),Q6e="_clearableButton_1so24_1",Z6e={clearableButton:Q6e};function e7e({id:e,sourceX:t,sourceY:n,targetX:r,targetY:o,sourcePosition:a,targetPosition:i,style:s={},markerEnd:l}){const{setEdges:c}=Jb(),[u,f,h]=Uoe({sourceX:t,sourceY:n,sourcePosition:a,targetX:r,targetY:o,targetPosition:i}),v=()=>{c(b=>b.filter(m=>m.id!==e))};return d.jsxs(d.Fragment,{children:[d.jsx(Woe,{path:u,markerEnd:l,style:s}),d.jsx(Voe,{children:d.jsx("div",{style:{position:"absolute",transform:`translate(-50%, -50%) translate(${f}px,${h}px)`,fontSize:12,pointerEvents:"all"},className:"nodrag nopan",children:d.jsx("button",{className:Z6e.clearableButton,onClick:v,children:"×"})})})]})}const t7e=e=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-circle",...e,children:d.jsxs("circle",{cx:12,cy:12,r:10,strokeDasharray:63,strokeDashoffset:21,children:[d.jsx("animateTransform",{attributeName:"transform",type:"rotate",from:"0 12 12",to:"360 12 12",dur:"2s",repeatCount:"indefinite"}),d.jsx("animate",{attributeName:"stroke-dashoffset",dur:"8s",repeatCount:"indefinite",keyTimes:"0; 0.5; 1",values:"-16; -47; -16",calcMode:"spline",keySplines:"0.4 0 0.2 1; 0.4 0 0.2 1"})]})});function n7e({value:e,color:t}){const n={"--value":e*100,"--size":"1.5rem","--thickness":"2px"};return d.jsx("div",{className:"radial-progress "+t,style:n,children:d.jsxs("strong",{className:"text-[8px]",children:[Math.trunc(e*100),"%"]})})}const r7e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAsNJREFUWEe1lk1IFGEYx///2ZUOFX0cLOvQl7PZQWYWgzoodE0kwrJUij5IuvRx6W6E0KmLXqWCqKzsEGEEHYyim7SzEqQ7KwahYhCBhiTt7lOrrrvrzufu+B5nnuf//73vO8/zDOFjycihGoRSA6DsBJjykbocShACAvxEPXFl+ZGPJYb6AUCTjxTbUOrmkrdnAIlFmkEZCsIcwGXq5gN/AIY6DaAmAIBVc88AEq/thvB2xeZkB7XEQKGO6xVI/EA1RJmt3Byd1Myna3U8AKhDEDRXBCBoYdS0/H4cAcSINALysSJzShu15KCdhguA+hVAXdkADjvPadoCSEztBPF4Pc1tq0CGj4WxbeoXgE2+AQSjWJQmHk3Oecm1PAExavsAXvMiUBrDtyBeApndyCh5fUoaCD2jPpZwLEOJ1e0F05Plmbt
|
|||
|
|
`,FHe="∄",BHe="∄",$He="𝔑",zHe="𝔫",_He="≧̸",HHe="≱",UHe="≱",WHe="≧̸",VHe="⩾̸",qHe="⩾̸",GHe="⋙̸",KHe="≵",XHe="≫⃒",YHe="≯",JHe="≯",QHe="≫̸",ZHe="↮",eUe="⇎",tUe="⫲",nUe="∋",rUe="⋼",oUe="⋺",aUe="∋",iUe="Њ",sUe="њ",lUe="↚",cUe="⇍",uUe="‥",dUe="≦̸",fUe="≰",pUe="↚",hUe="⇍",gUe="↮",mUe="⇎",vUe="≰",bUe="≦̸",yUe="⩽̸",xUe="⩽̸",AUe="≮",wUe="⋘̸",CUe="≴",SUe="≪⃒",EUe="≮",kUe="⋪",OUe="⋬",TUe="≪̸",jUe="∤",NUe="",PUe=" ",RUe="𝕟",MUe="ℕ",LUe="⫬",DUe="¬",IUe="≢",FUe="≭",BUe="∦",$Ue="∉",zUe="≠",_Ue="≂̸",HUe="∄",UUe="≯",WUe="≱",VUe="≧̸",qUe="≫̸",GUe="≹",KUe="⩾̸",XUe="≵",YUe="≎̸",JUe="≏̸",QUe="∉",ZUe="⋵̸",eWe="⋹̸",tWe="∉",nWe="⋷",rWe="⋶",oWe="⧏̸",aWe="⋪",iWe="⋬",sWe="≮",lWe="≰",cWe="≸",uWe="≪̸",dWe="⩽̸",fWe="≴",pWe="⪢̸",hWe="⪡̸",gWe="∌",mWe="∌",vWe="⋾",bWe="⋽",yWe="⊀",xWe="⪯̸",AWe="⋠",wWe="∌",CWe="⧐̸",SWe="⋫",EWe="⋭",kWe="⊏̸",OWe="⋢",TWe="⊐̸",jWe="⋣",NWe="⊂⃒",PWe="⊈",RWe="⊁",MWe="⪰̸",LWe="⋡",DWe="≿̸",IWe="⊃⃒",FWe="⊉",BWe="≁",$We="≄",zWe="≇",_We="≉",HWe="∤",UWe="∦",WWe="∦",VWe="⫽⃥",qWe="∂̸",GWe="⨔",KWe="⊀",XWe="⋠",YWe="⊀",JWe="⪯̸",QWe="⪯̸",ZWe="⤳̸",eVe="↛",tVe="⇏",nVe="↝̸",rVe="↛",oVe="⇏",aVe="⋫",iVe="⋭",sVe="⊁",lVe="⋡",cVe="⪰̸",uVe="𝒩",dVe="𝓃",fVe="∤",pVe="∦",hVe="≁",gVe="≄",mVe="≄",vVe="∤",bVe="∦",yVe="⋢",xVe="⋣",AVe="⊄",wVe="⫅̸",CVe="⊈",SVe="⊂⃒",EVe="⊈",kVe="⫅̸",OVe="⊁",TVe="⪰̸",jVe="⊅",NVe="⫆̸",PVe="⊉",RVe="⊃⃒",MVe="⊉",LVe="⫆̸",DVe="≹",IVe="Ñ",FVe="ñ",BVe="≸",$Ve="⋪",zVe="⋬",_Ve="⋫",HVe="⋭",UVe="Ν",WVe="ν",VVe="#",qVe="№",GVe=" ",KVe="≍⃒",XVe="⊬",YVe="⊭",JVe="⊮",QVe="⊯",ZVe="≥⃒",eqe=">⃒",tqe="⤄",nqe="⧞",rqe="⤂",oqe="≤⃒",aqe="<⃒",iqe="⊴⃒",sqe="⤃",lqe="⊵⃒",cqe="∼⃒",uqe="⤣",dqe="↖",fqe="⇖",pqe="↖",hqe="⤧",gqe="Ó",mqe="ó",vqe="⊛",bqe="Ô",yqe="ô",xqe="⊚",Aqe="О",wqe="о",Cqe="⊝",Sqe="Ő",Eqe="ő",kqe="⨸",Oqe="⊙",Tqe="⦼",jqe="Œ",Nqe="œ",Pqe="⦿",Rqe="𝔒",Mqe="𝔬",Lqe="˛",Dqe="Ò",Iqe="ò",Fqe="⧁",Bqe="⦵",$qe="Ω",zqe="∮",_qe="↺",Hqe="⦾",Uqe="⦻",Wqe="‾",Vqe="⧀",qqe="Ō",Gqe="ō",Kqe="Ω",Xqe="ω",Yqe="Ο",Jqe="ο",Qqe="⦶",Zqe="⊖",eGe="𝕆",tGe="𝕠",nGe="⦷",rGe="“",oGe="‘",aGe="⦹",iGe="⊕",sGe="↻",lGe="⩔",cGe="∨",uGe="⩝",dGe="ℴ",fGe="ℴ",pGe="ª",hGe="º",gGe="⊶",mGe="⩖",vGe="⩗",bGe="⩛",yGe="Ⓢ",xGe="𝒪",AGe="ℴ",wGe="Ø",CGe="ø",SGe="⊘",EGe="Õ",kGe="õ",OGe="⨶",TGe="⨷",jGe="⊗",NGe="Ö",PGe="ö",RGe="⌽",MGe="‾",LGe="⏞",DGe="⎴",IGe="⏜",FGe="¶",BGe="∥",$Ge="∥",zGe="⫳",_Ge="⫽",HGe="∂",UGe="∂",WGe="П",VGe="п",qGe="%",GGe=".",KGe="‰",XGe="⊥",YGe="‱",JGe="𝔓",QGe="𝔭",ZGe="Φ",eKe="φ",tKe="ϕ",nKe="ℳ",rKe="☎",oKe="Π",aKe="π",iKe="⋔",sKe="ϖ",lKe="ℏ",cKe="ℎ",uKe="ℏ",dKe="⨣",fKe="⊞",pKe="⨢",hKe="+",gKe="∔",mKe="⨥",vKe="⩲",bKe="±",yKe="±",xKe="⨦",AKe="⨧",wKe="±",CKe="ℌ",SKe="⨕",EKe="𝕡",kKe="ℙ",OKe="£",TKe="⪷",jKe="⪻",NKe="≺",PKe="≼",RKe="⪷",MKe="≺",LKe="≼",DKe="≺",IKe="⪯",FKe="≼",BKe="≾",$Ke="⪯",zKe="⪹",_Ke="⪵",HKe="⋨",UKe="⪯",WKe="⪳",VKe="≾",qKe="′",GKe="″",KKe="ℙ",XKe="⪹",YKe="⪵",JKe="⋨",QKe="∏",ZKe="∏",eXe="⌮",tXe="⌒",nXe="⌓",rXe="∝",oXe="∝",aXe="∷",iXe="∝",sXe="≾",lXe="⊰",cXe="𝒫",uXe="𝓅",dXe="Ψ",fXe="ψ",pXe=" ",hXe="𝔔",gXe="𝔮",mXe="⨌",vXe="𝕢",bXe="ℚ",yXe="⁗",xXe="𝒬",AXe="𝓆",wXe="ℍ",CXe="⨖",SXe="?",EXe="≟",kXe='"',OXe='"',TXe="⇛",jXe="∽̱",NXe="Ŕ",PXe="ŕ",RXe="√",MXe="⦳",LXe="⟩",DXe="⟫",IXe="⦒",FXe="⦥",BXe="⟩",$Xe="»",zXe="⥵",_Xe="⇥",HXe="⤠",UXe="⤳",WXe="→",VXe="↠",qXe="⇒",GXe="⤞",KXe="↪",XXe="↬",YXe="⥅",JXe="⥴",QXe="⤖",ZXe="↣",eYe="↝",tYe="⤚",nYe="⤜",rYe="∶",oYe="ℚ",aYe="⤍",iYe=
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,s;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){i=!0,s=c},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(i)throw s}}}}function Kct(e,t){if(e){if(typeof e=="string")return _N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _N(e,t)}}function _N(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Xct=wU,HN={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:Yct()};function Yct(){var e={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return b0(0,5).forEach(function(t){b0(0,5).forEach(function(n){b0(0,5).forEach(function(r){return Jct(t,n,r,e)})})}),b0(0,23).forEach(function(t){var n=t+232,r=IU(t*10+8);e[n]="#"+r+r+r}),e}function Jct(e,t,n,r){var o=16+e*36+t*6+n,a=e>0?e*40+55:0,i=t>0?t*40+55:0,s=n>0?n*40+55:0;r[o]=Qct([a,i,s])}function IU(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function Qct(e){var t=[],n=DU(e),r;try{for(n.s();!(r=n.n()).done;){var o=r.value;t.push(IU(o))}}catch(a){n.e(a)}finally{n.f()}return"#"+t.join("")}function UN(e,t,n,r){var o;return t==="text"?o=nut(n,r):t==="display"?o=eut(e,n,r):t==="xterm256Foreground"?o=uv(e,r.colors[n]):t==="xterm256Background"?o=dv(e,r.colors[n]):t==="rgb"&&(o=Zct(e,n)),o}function Zct(e,t){t=t.substring(2).slice(0,-1);var n=+t.substr(0,2),r=t.substring(5).split(";"),o=r.map(function(a){return("0"+Number(a).toString(16)).substr(-2)}).join("");return cv(e,(n===38?"color:#":"background-color:#")+o)}function eut(e,t,n){t=parseInt(t,10);var r={"-1":function(){return"<br/>"},0:function(){return e.length&&FU(e)},1:function(){return Cl(e,"b")},3:function(){return Cl(e,"i")},4:function(){return Cl(e,"u")},8:function(){return cv(e,"display:none")},9:function(){return Cl(e,"strike")},22:function(){return cv(e,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return VN(e,"i")},24:function(){return VN(e,"u")},39:function(){return uv(e,n.fg)},49:function(){return dv(e,n.bg)},53:function(){return cv(e,"text-decoration:overline")}},o;return r[t]?o=r[t]():4<t&&t<7?o=Cl(e,"blink"):29<t&&t<38?o=uv(e,n.colors[t-30]):39<t&&t<48?o=dv(e,n.colors[t-40]):89<t&&t<98?o=uv(e,n.colors[8+(t-90)]):99<t&&t<108&&(o=dv(e,n.colors[8+(t-100)])),o}function FU(e){var t=e.slice(0);return e.length=0,t.reverse().map(function(n){return"</"+n+">"}).join("")}function b0(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n}function tut(e){return function(t){return(e===null||t.category!==e)&&e!=="all"}}function WN(e){e=parseInt(e,10);var t=null;return e===0?t="all":e===1?t="bold":2<e&&e<5?t="underline":4<e&&e<7?t="blink":e===8?t="hide":e===9?t="strike":29<e&&e<38||e===39||89<e&&e<98?t="foreground-color":(39<e&&e<48||e===49||99<e&&e<108)&&(t="background-color"),t}function nut(e,t){return t.escapeXML?Xct.encodeXML(e):e}function Cl(e,t,n){return n||(n=""),e.push(t),"<".concat(t).concat(n?' style="'.concat(n,'"'):"",">")}function cv(e,t){return Cl(e,"span",t)}function uv(e,t){return Cl(e,"span","color:"+t)}function dv(e,t){return Cl(e,"span","background-color:"+t)}function VN(e,t){var n;if(e.slice(-1)[0]===t&&(n=e.pop()),n)return"</"+t+">"}function rut(e,t,n){var r=!1,o=3;function a(){return""}function i(E,S){return n("xterm256Foreground",S),""}function s(E,S){return n("xterm256Background",S),""}function l(E){return t.newline?n("display",-1):n("text",E),""}function c(E,S){r=!0,S.trim().length===0&&(S="0"),S=S.trimRight(";").split(";");var O=DU(S),T;try{for(O.s();!(T=O.n()).done;){var P=T.value;n("display",P)}}catch(N){O.e(N)}finally{O.f()}return""}function u(E){return n("text",E),""}function f(E){return n("rgb",E),""}var h=[{pattern:/^\x08+/,sub:a},{pattern:/^\x1b\[[012]?K/,sub:a},{pattern:/^\x1b
|
|||
|
|
`,after:`
|
|||
|
|
`,...a.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),s<o.length-1&&i.push(a.move(ydt(l,o[s+1],e,t)))}return r.pop(),i.join("")}function ydt(e,t,n,r){let o=r.join.length;for(;o--;){const a=r.join[o](e,t,n,r);if(a===!0||a===1)break;if(typeof a=="number")return`
|
|||
|
|
`.repeat(1+a);if(a===!1)return`
|
|||
|
|
|
|||
|
|
<!---->
|
|||
|
|
|
|||
|
|
`}return`
|
|||
|
|
|
|||
|
|
`}const xdt=/\r?\n|\r/g;function Adt(e,t){const n=[];let r=0,o=0,a;for(;a=xdt.exec(e);)i(e.slice(r,a.index)),n.push(a[0]),r=a.index+a[0].length,o++;return i(e.slice(r)),n.join("");function i(s){n.push(t(s,o,!s))}}function _7(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function wdt(e,t){return QN(e,t.inConstruct,!0)&&!QN(e,t.notInConstruct,!1)}function QN(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function H7(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),o=[],a=[],i={};let s=-1;for(;++s<e.unsafe.length;){const u=e.unsafe[s];if(!wdt(e.stack,u))continue;const f=_7(u);let h;for(;h=f.exec(r);){const v="before"in u||!!u.atBreak,b="after"in u,m=h.index+(v?h[1].length:0);o.includes(m)?(i[m].before&&!v&&(i[m].before=!1),i[m].after&&!b&&(i[m].after=!1)):(o.push(m),i[m]={before:v,after:b})}}o.sort(Cdt);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(s=-1;++s<o.length;){const u=o[s];u<l||u>=c||u+1<c&&o[s+1]===u+1&&i[u].after&&!i[u+1].before&&!i[u+1].after||o[s-1]===u-1&&i[u].before&&!i[u-1].before&&!i[u-1].after||(l!==u&&a.push(ZN(r.slice(l,u),"\\")),l=u,/[!-/:-@[-`{-~]/.test(r.charAt(u))&&(!n.encode||!n.encode.includes(r.charAt(u)))?a.push("\\"):(a.push("&#x"+r.charCodeAt(u).toString(16).toUpperCase()+";"),l++))}return a.push(ZN(r.slice(l,c),n.after)),a.join("")}function Cdt(e,t){return e-t}function ZN(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],o=[],a=e+t;let i=-1,s=0,l;for(;l=n.exec(a);)r.push(l.index);for(;++i<r.length;)s!==r[i]&&o.push(e.slice(s,r[i])),o.push("\\"),s=r[i];return o.push(e.slice(s)),o.join("")}function Fm(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,o=n.line||1,a=n.column||1;return{move:l,current:i,shift:s};function i(){return{now:{line:o,column:a},lineShift:r}}function s(c){r+=c}function l(c){const u=c||"",f=u.split(/\r?\n|\r/g),h=f[f.length-1];return o+=f.length-1,a=f.length===1?a+h.length:1+h.length+r,u}}YU.peek=Ldt;function Sdt(){return{enter:{gfmFootnoteDefinition:kdt,gfmFootnoteDefinitionLabelString:Odt,gfmFootnoteCall:Ndt,gfmFootnoteCallString:Pdt},exit:{gfmFootnoteDefinition:jdt,gfmFootnoteDefinitionLabelString:Tdt,gfmFootnoteCall:Mdt,gfmFootnoteCallString:Rdt}}}function Edt(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Ddt,footnoteReference:YU}}}function kdt(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Odt(){this.buffer()}function Tdt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=lm(this.sliceSerialize(e)).toLowerCase()}function jdt(e){this.exit(e)}function Ndt(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Pdt(){this.buffer()}function Rdt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=lm(this.sliceSerialize(e)).toLowerCase()}function Mdt(e){this.exit(e)}function YU(e,t,n,r){const o=Fm(r);let a=o.move("[^");const i=n.enter("footnoteReference"),s=n.enter("reference");return a+=o.move(H7(n,XU(e),{...o.current(),before:a,after:"]"})),s(),i(),a+=o.move("]"),a}function Ldt(){return"["}function Ddt(e,t,n,r){const o=Fm(r);let a=o.move("[^");const i=n.enter("footnoteDefinition"),s=n.enter("label");return a+=o.move(H7(n,XU(e),{...o.current(),before:a,after:"]"})),s(),a+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),a+=o.move(Adt(bdt(e,n,o.current()),Idt)),i(),a}function Idt(e,t,n){return t===0?e:(n?"":" ")+e}function JU(e,t,n){const r=t.indexStack,o=e.children||[],a=[];let i=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++i<o.length;){const c=o[i];let u;if(r[r.length-1]=i,i+1<o.length){let f=t.handle.handlers[o[i+1].type];f&&f.peek&&(f=f.peek),u=f?f(o[i+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else u=n.after;a.length>0&&(s==="\r"||s==
|
|||
|
|
`)&&c.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(a.join(""))),a.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=a[a.length-1].slice(-1)}return r.pop(),a.join("")}const Fdt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];QU.peek=Hdt;const Bdt={canContainEols:["delete"],enter:{strikethrough:zdt},exit:{strikethrough:_dt}},$dt={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Fdt}],handlers:{delete:QU}};function zdt(e){this.enter({type:"delete",children:[]},e)}function _dt(e){this.exit(e)}function QU(e,t,n,r){const o=Fm(r),a=n.enter("strikethrough");let i=o.move("~~");return i+=JU(e,n,{...o.current(),before:i,after:"~"}),i+=o.move("~~"),a(),i}function Hdt(){return"~"}ZU.peek=Udt;function ZU(e,t,n){let r=e.value||"",o="`",a=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const i=n.unsafe[a],s=_7(i);let l;if(i.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return o+r+o}function Udt(){return"`"}function Wdt(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||qdt,o=[],a=[],i=[],s=[];let l=0,c=-1;for(;++c<e.length;){const b=[],m=[];let y=-1;for(e[c].length>l&&(l=e[c].length);++y<e[c].length;){const A=Vdt(e[c][y]);if(t.alignDelimiters!==!1){const w=r(A);m[y]=w,(s[y]===void 0||w>s[y])&&(s[y]=w)}b.push(A)}a[c]=b,i[c]=m}let u=-1;if(typeof n=="object"&&"length"in n)for(;++u<l;)o[u]=eP(n[u]);else{const b=eP(n);for(;++u<l;)o[u]=b}u=-1;const f=[],h=[];for(;++u<l;){const b=o[u];let m="",y="";b===99?(m=":",y=":"):b===108?m=":":b===114&&(y=":");let A=t.alignDelimiters===!1?1:Math.max(1,s[u]-m.length-y.length);const w=m+"-".repeat(A)+y;t.alignDelimiters!==!1&&(A=m.length+A+y.length,A>s[u]&&(s[u]=A),h[u]=A),f[u]=w}a.splice(1,0,f),i.splice(1,0,h),c=-1;const v=[];for(;++c<a.length;){const b=a[c],m=i[c];u=-1;const y=[];for(;++u<l;){const A=b[u]||"";let w="",k="";if(t.alignDelimiters!==!1){const C=s[u]-(m[u]||0),E=o[u];E===114?w=" ".repeat(C):E===99?C%2?(w=" ".repeat(C/2+.5),k=" ".repeat(C/2-.5)):(w=" ".repeat(C/2),k=w):k=" ".repeat(C)}t.delimiterStart!==!1&&!u&&y.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&A==="")&&(t.delimiterStart!==!1||u)&&y.push(" "),t.alignDelimiters!==!1&&y.push(w),y.push(A),t.alignDelimiters!==!1&&y.push(k),t.padding!==!1&&y.push(" "),(t.delimiterEnd!==!1||u!==l-1)&&y.push("|")}v.push(t.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return v.join(`
|
|||
|
|
`)}function Vdt(e){return e==null?"":String(e)}function qdt(e){return e.length}function eP(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const Gdt={enter:{table:Kdt,tableData:tP,tableHeader:tP,tableRow:Ydt},exit:{codeText:Jdt,table:Xdt,tableData:Aw,tableHeader:Aw,tableRow:Aw}};function Kdt(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function Xdt(e){this.exit(e),this.setData("inTable")}function Ydt(e){this.enter({type:"tableRow",children:[]},e)}function Aw(e){this.exit(e)}function tP(e){this.enter({type:"tableCell",children:[]},e)}function Jdt(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,Qdt));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function Qdt(e,t){return t==="|"?t:e}function Zdt(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|||
|
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:i,tableRow:s,tableCell:l,inlineCode:h}};function i(v,b,m,y){return c(u(v,m,y),v.align)}function s(v,b,m,y){const A=f(v,m,y),w=c([A]);return w.slice(0,w.indexOf(`
|
|||
|
|
`))}function l(v,b,m,y){const A=m.enter("tableCell"),w=m.enter("phrasing"),k=JU(v,m,{...y,before:a,after:a});return w(),A(),k}function c(v,b){return Wdt(v,{align:b,alignDelimiters:r,padding:n,stringLength:o})}function u(v,b,m){const y=v.children;let A=-1;const w=[],k=b.enter("table");for(;++A<y.length;)w[A]=f(y[A],b,m);return k(),w}function f(v,b,m){const y=v.children;let A=-1;const w=[],k=b.enter("tableRow");for(;++A<y.length;)w[A]=l(y[A],v,b,m);return k(),w}function h(v,b,m){let y=ZU(v,b,m);return m.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function eft(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function tft(e){const t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function nft(e,t,n,r){const o=tft(n);let a=n.bulletCurrent||eft(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let i=a.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);const s=n.createTracker(r);s.move(a+" ".repeat(i-a.length)),s.shift(i);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),u);return l(),c;function u(f,h,v){return h?(v?"":" ".repeat(i))+f:(v?a:a+" ".repeat(i-a.length))+f}}const rft={exit:{taskListCheckValueChecked:nP,taskListCheckValueUnchecked:nP,paragraph:aft}},oft={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ift}};function nP(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function aft(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const o=t.children;let a=-1,i;for(;++a<o.length;){const s=o[a];if(s.type==="paragraph"){i=s;break}}i===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function ift(e,t,n,r){const o=e.children[0],a=typeof e.checked=="boolean"&&o&&o.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",s=Fm(r);a&&s.move(i);let l=nft(e,t,n,{...r,...s.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+i}}function sft(){return[idt,Sdt(),Bdt,Gdt,rft]}function lft(e){return{extensions:[sdt,Edt(),$dt,Zdt(e),oft]}}function U7(e={}){const t=this.data();n("micromarkExtensions",Wut(e)),n("fromMarkdownExtensions",sft()),n("toMarkdownExtensions",lft(e));function n(r,o){(t[r]?t[r]:t[r]=[]).push(o)}}function jc(e){return e!==null&&e<-2}const cft={tokenize:uft,concrete:!0},rP={tokenize:dft,partial:!0};function uft(e,t,n){const r=this,o=r.events[r.events.length-1],a=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0;let i=0;return s;function s(w){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),l(w)}function l(w){return w===36?(e.consume(w),i++,l):i<2?n(w):(e.exit("mathFlowFenceSequence"),Sa(e,c,"whitespace")(w))}function c(w){return w===null||jc(w)?f(w):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),u(w))}function u(w){return w===null||jc(w)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),f(w)):w===36?n(w):(e.consume(w),u)}function f(w){return e.exit("mathFlowFence"),r.interrupt?t(w):e.attempt(rP,h,y)(w)}function h(w){return e.attempt({tokenize:A,partial:!0},y,v)(w)}function v(w){return(a?Sa(e,b,"linePrefix",a+1):b)(w)}function b(w){return w===null?y(w):jc(w)?e.attempt(rP,h,y)(w):(e.enter("mathFlowValue"),m(w))}function m(w){return w===null||jc(w)?(e.exit("mathFlowValue"),b(w)):(e.consume(w),m)}function y(w){return e.exit("mathFlo
|
|||
|
|
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,i,s,l){const c=a.value||"",u=Fm(l),f="$".repeat(Math.max(mft(c,"$")+1,2)),h=s.enter("mathFlow");let v=u.move(f);if(a.meta){const b=s.enter("mathFlowMeta");v+=u.move(H7(s,a.meta,{before:v,after:`
|
|||
|
|
`,encode:["$"],...u.current()})),b()}return v+=u.move(`
|
|||
|
|
`),c&&(v+=u.move(c+`
|
|||
|
|
`)),v+=u.move(f),h(),v}function r(a,i,s){let l=a.value||"",c=1;for(t||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(l);)c++;const u="$".repeat(c);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let f=-1;for(;++f<s.unsafe.length;){const h=s.unsafe[f],v=_7(h);let b;if(h.atBreak)for(;b=v.exec(l);){let m=b.index;l.codePointAt(m)===10&&l.codePointAt(m-1)===13&&m--,l=l.slice(0,m)+" "+l.slice(b.index+1)}}return u+l+u}function o(){return"$"}}function W7(e={}){const t=this.data();n("micromarkExtensions",gft(e)),n("fromMarkdownExtensions",vft()),n("toMarkdownExtensions",bft(e));function n(r,o){(t[r]?t[r]:t[r]=[]).push(o)}}const yft="/assets/male-technologist-d2e7de57.png",zr="/assets/robot-ad00f191.png";var xft=Eft,va=[],Aft=typeof Uint8Array<"u"?Uint8Array:Array,oP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var A0=0,wft=oP.length;A0<wft;++A0)va[oP.charCodeAt(A0)]=A0;va["-".charCodeAt(0)]=62;va["_".charCodeAt(0)]=63;function Cft(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function Sft(e,t,n){return(t+n)*3/4-n}function Eft(e){var t,n=Cft(e),r=n[0],o=n[1],a=new Aft(Sft(e,r,o)),i=0,s=o>0?r-4:r,l;for(l=0;l<s;l+=4)t=va[e.charCodeAt(l)]<<18|va[e.charCodeAt(l+1)]<<12|va[e.charCodeAt(l+2)]<<6|va[e.charCodeAt(l+3)],a[i++]=t>>16&255,a[i++]=t>>8&255,a[i++]=t&255;return o===2&&(t=va[e.charCodeAt(l)]<<2|va[e.charCodeAt(l+1)]>>4,a[i++]=t&255),o===1&&(t=va[e.charCodeAt(l)]<<10|va[e.charCodeAt(l+1)]<<4|va[e.charCodeAt(l+2)]>>2,a[i++]=t>>8&255,a[i++]=t&255),a}function kft({fileName:e,content:t,fileType:n}){const r=()=>{const l=new Uint8Array(xft(t)),c=new Blob([l],{type:"application/octet-stream"}),u=URL.createObjectURL(c),f=document.createElement("a");f.href=u,f.download=e+".png",document.body.appendChild(f),f.click(),document.body.removeChild(f),URL.revokeObjectURL(u)},[o,a]=p.useState(!1);function i(){a(!0)}function s(){a(!1)}return n==="image"?d.jsxs("div",{className:"relative h-1/4 w-1/4",onMouseEnter:i,onMouseLeave:s,children:[d.jsx("img",{src:`data:image/png;base64,${t}`,alt:"generated image",className:"h-full w-full rounded-lg"}),o&&d.jsx("div",{className:"file-card-modal-image-div ",children:d.jsx("button",{className:"file-card-modal-image-button ",onClick:r,children:d.jsx(dT,{className:"h-5 w-5 text-current hover:scale-110"})})})]}):d.jsx("button",{onClick:r,className:"file-card-modal-button",children:d.jsxs("div",{className:"file-card-modal-div",children:[" ",n==="image"?d.jsx("img",{src:`data:image/png;base64,${t}`,alt:"",className:"h-8 w-8"}):d.jsx(p6,{className:"h-8 w-8"}),d.jsxs("div",{className:"file-card-modal-footer",children:[" ",d.jsx("div",{className:"file-card-modal-name",children:e}),d.jsx("div",{className:"file-card-modal-type",children:n})]}),d.jsx(dT,{className:"ml-auto h-6 w-6 text-current"})]})})}var Oft={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},Tft=Object.defineProperty,jft=Object.defineProperties,Nft=Object.getOwnPropertyDescriptors,qv=Object.getOwnPropertySymbols,eW=Object.prototype.hasOwnProperty,tW=Object.prototype.propertyIsEnumerable,aP=(e,t,n)=>t in e?Tft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iP=(e,t)=>{for(var n in t||(t={}))eW.call(t,n)&&aP(e,n,t[n]);if(qv)for(var n of qv(t))tW.call(t,n)&&aP(e,n,t[n]);return e},Pft=(e,t)=>jft(e,Nft(t)),Rft=(e,t)=>{var n={};for(var r in e)eW.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&qv)for(var r of qv(e))t.indexOf(r)<0&&tW.call(e,r)&&(n[r]=e[r]);return n},V7=(e,t,n)=>{const r=p.forwardRef((o,a)=>{var i=o,{color:s="currentColor",size:l=24,stroke:c=2,children:u}=i,f=Rft(i,["color","size","stroke","children"]);return p.createElement("svg",iP(Pft(iP({ref:a},Oft),{width:l,height:l,stroke:s,strokeWidth:c,className:`tabler-icon tabler-icon-${e}`}),f),[...n.map(([h,v])=>p.createElement(h,v)),...u||[]])});return r.propTypes={
|
|||
|
|
`))==null?void 0:c.map((u,f)=>{const h=/{([^}]+)}/g;let v,b=[],m=0;for(;(v=h.exec(u))!==null;)v.index!==m&&b.push(u.substring(m,v.index)),e.message[v[1]]&&b.push(d.jsx("span",{className:"chat-message-highlight",children:e.message[v[1]]})),m=h.lastIndex;return m!==u.length&&b.push(u.substring(m)),d.jsx("p",{children:b})}):e.message[e.chatKey]})]}):d.jsx("span",{children:e.message[e.chatKey]})}):d.jsx("div",{className:"form-modal-chat-text-position",children:d.jsxs("div",{className:"form-modal-chat-text",children:[o&&e.thought&&e.thought!==""&&d.jsx("div",{onClick:()=>a(u=>!u),className:"form-modal-chat-icon-div",children:d.jsx(dU,{className:"form-modal-chat-icon"})}),e.thought&&e.thought!==""&&!o&&d.jsx(uU,{className:" form-modal-chat-thought",content:r.toHtml(e.thought),onClick:()=>a(u=>!u)}),e.thought&&e.thought!==""&&!o&&d.jsx("br",{}),d.jsx("div",{className:"w-full",children:d.jsxs("div",{className:"w-full dark:text-white",children:[d.jsx("div",{className:"w-full",children:p.useMemo(()=>d.jsx(Ih,{remarkPlugins:[U7,W7],rehypePlugins:[IS],className:`markdown prose inline-block break-words text-primary
|
|||
|
|
dark:prose-invert sm:w-[30vw] sm:max-w-[30vw] lg:w-[40vw] lg:max-w-[40vw]`,components:{code:({node:u,inline:f,className:h,children:v,...b})=>{if(v.length){if(v[0]==="▍")return d.jsx("span",{className:"form-modal-markdown-span",children:"▍"});v[0]=v[0].replace("`▍`","▍")}const m=/language-(\w+)/.exec(h||"");return f?d.jsx("code",{className:h,...b,children:v}):d.jsx(cx,{language:m&&m[1]||"",value:String(v).replace(/\n$/,""),...b},Math.random())}},children:e.message.toString()}),[e.message,e.message.toString()])}),e.files&&d.jsx("div",{className:"my-2 w-full",children:e.files.map((u,f)=>d.jsx("div",{className:"my-2 w-full",children:d.jsx(kft,{fileName:"Generated File",fileType:u.data_type,content:u.data})},f))})]})})]})})]})}const nW="Collapsible",[Opt,rW]=Yr(nW),[Tpt,G7]=Opt(nW),jpt=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[l=!1,c]=Xr({prop:r,defaultProp:o,onChange:i});return p.createElement(Tpt,{scope:n,disabled:a,contentId:Ta(),open:l,onOpenToggle:p.useCallback(()=>c(u=>!u),[c])},p.createElement(ht.div,Z({"data-state":K7(l),"data-disabled":a?"":void 0},s,{ref:t})))}),Npt="CollapsibleTrigger",Ppt=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=G7(Npt,n);return p.createElement(ht.button,Z({type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":K7(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled},r,{ref:t,onClick:pt(e.onClick,o.onOpenToggle)}))}),oW="CollapsibleContent",Rpt=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=G7(oW,e.__scopeCollapsible);return p.createElement(Ha,{present:n||o.open},({present:a})=>p.createElement(Mpt,Z({},r,{ref:t,present:a})))}),Mpt=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,i=G7(oW,n),[s,l]=p.useState(r),c=p.useRef(null),u=sn(t,c),f=p.useRef(0),h=f.current,v=p.useRef(0),b=v.current,m=i.open||s,y=p.useRef(m),A=p.useRef();return p.useEffect(()=>{const w=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(w)},[]),Ra(()=>{const w=c.current;if(w){A.current=A.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const k=w.getBoundingClientRect();f.current=k.height,v.current=k.width,y.current||(w.style.transitionDuration=A.current.transitionDuration,w.style.animationName=A.current.animationName),l(r)}},[i.open,r]),p.createElement(ht.div,Z({"data-state":K7(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!m},a,{ref:u,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style}}),m&&o)});function K7(e){return e?"open":"closed"}const Lpt=jpt,Dpt=Ppt,Ipt=Rpt,Xl="Accordion",Fpt=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[X7,Bpt,$pt]=V6(Xl),[ux,HVt]=Yr(Xl,[$pt,rW]),Y7=rW(),aW=W.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return W.createElement(X7.Provider,{scope:e.__scopeAccordion},n==="multiple"?W.createElement(Upt,Z({},a,{ref:t})):W.createElement(Hpt,Z({},o,{ref:t})))});aW.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[iW,zpt]=ux(Xl),[sW,_pt]=ux(Xl,{collapsible:!1}),Hpt=W.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[s,l]=Xr({prop:n,defaultProp:r,onChange:o});return W.createElement(iW,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:W.useCallback(()=>a&&l(""),[a,l])},W.createElement(sW,{scope:e.__scopeAccordion,collapsible:a},W.createElement(lW,Z({},i
|
|||
|
|
[&>button]:border-b-border `}),d.jsx(oht,{isVisible:T,nodes:y==null?void 0:y.nodes,onClick:()=>{b();const he=j6e(y,R);if(he.length===0){const{newFlow:pe,removedEdges:je}=k6e(y,I,R,""),Le=L6e(pe,i),nt=O6e(Le,je);M(gt=>[...gt.filter(tn=>!(y!=null&&y.nodes.some(Xt=>Xt.id===tn.id))),Le]),D(gt=>[...gt.filter(tn=>!y.nodes.some(Xt=>Xt.id===tn.target||Xt.id===tn.source)),...nt])}else s({title:"Invalid selection",list:he})}})]}),d.jsx(nht,{flow:e,reactFlowInstance:f}),d.jsx("p",{className:"absolute top-0 left-[25%] w-[50%] text-[16px] mt-[14px]",style:{textAlign:"center",fontWeight:"600",color:"#fff"},children:e.name})]}):d.jsx(d.Fragment,{})})})}),d.jsx("dialog",{className:`modal ${Ie.state==="blocked"&&"modal-open"}`,children:d.jsxs("form",{method:"dialog",className:"modal-box w-[360px] bg-[#262626] shadow-lg",children:[d.jsx("h3",{className:"text-[16px] font-bold text-center",style:{color:"#FFFFFF"},children:Oe("prompt")}),d.jsx("p",{className:"text-[12px] text-center mt-[18px]",style:{color:"#FFFFFF"},children:Oe("flow.unsavedChangesConfirmation")}),d.jsxs("div",{className:"flex justify-center mt-[27px]",children:[d.jsx(_e,{className:"baogao-btn baogao-btn1",variant:"outline",onClick:()=>{var he;return(he=Ie.reset)==null?void 0:he.call(Ie)},children:Oe("cancel")}),d.jsx(_e,{className:"baogao-btn baogao-btn3 ml-[27px]",onClick:()=>{var he;return(he=Ie.proceed)==null?void 0:he.call(Ie)},children:Oe("flow.leave")}),d.jsx(_e,{className:"baogao-btn baogao-btn2 ml-[27px]",onClick:Ne,children:Oe("flow.leaveAndSave")})]})]})})]})})}const Bht=e=>{const t=p.useRef(null),n=p.useRef({x:0,y:0}),[r,o]=p.useState(null);let{lastCopiedSelection:a,paste:i,setLastCopiedSelection:s}=p.useContext(mn);return p.useEffect(()=>{const l=u=>{if(u.target.tagName!=="INPUT")if((u.ctrlKey||u.metaKey)&&u.key==="c"&&r)u.preventDefault(),s(xt(r));else if((u.ctrlKey||u.metaKey)&&u.key==="v"&&a){u.preventDefault();let f=e.current.getBoundingClientRect();i(a,{x:n.current.x-f.left,y:n.current.y-f.top})}else(u.ctrlKey||u.metaKey)&&u.key==="g"&&r&&u.preventDefault()},c=u=>{n.current={x:u.clientX,y:u.clientY}};return t.current.addEventListener("keydown",l),t.current.addEventListener("mousemove",c),()=>{var u,f;(u=t.current)==null||u.removeEventListener("keydown",l),(f=t.current)==null||f.removeEventListener("mousemove",c)}},[n,a,r]),{lastSelection:r,keyBoardPanneRef:t,setLastSelection:o}},$ht=(e,t)=>{const{t:n}=ze();p.useEffect(()=>{const o=a=>{var i=`${n("flow.unsavedChangesConfirmation")}`;return(a||window.event).returnValue=i,i};return window.addEventListener("beforeunload",o),()=>{window.removeEventListener("beforeunload",o)}},[]);const r=p.useMemo(()=>{if(!e.data)return!1;const o=JSON.parse(t);if(!o)return!0;const{edges:a,nodes:i}=e.data,{edges:s,nodes:l}=o;return!(Dj(a,s)&&Dj(i,l))},[t,e.data]);return Aue(r)};function bW(){const{flow:e,setFlow:t}=p.useContext(mn),{id:n}=Xs(),{t:r,i18n:o}=ze();p.useEffect(()=>{n&&(e==null?void 0:e.id)!==n&&ws(n).then(s=>{const l=["chains","agents","prompts","llms","memories","tools","toolkits","wrappers","embeddings","vectorstores","documentloaders","textsplitters","utilities","output_parsers","retrievers","input_output","autogen_roles"];s.data.nodes.map(c=>{l.map(u=>{const f=u+"."+c.data.type;if(`${r(f)}`.indexOf("returned an object instead of string")>=0){const h=u+"."+c.data.type+".display_name",v=u+"."+c.data.type+".description",b=u+"."+c.data.type+".output_types",m=u+"."+c.data.type+".description_url";c.data.node.display_name=`${r(h)}`,c.data.node.description=`${r(v)}`,c.data.node.description_url=`${r(m)}`,`${r(b)}`.indexOf("returned an object instead of string")>=0&&(c.data.node.output_types=[`${r(b,{returnObjects:!0})}`]),Object.keys(c.data.node.template).forEach(y=>{const A=u+"."+c.data.type+".template."+y+".display_name";`${r(A)}`.indexOf("template")<0&&(c.data.node.template[y]={...c.data.node.template[y],display_name:`${r(A)}`})})}})}),t("flow_init",s)})},[]);const[a,i]=p.useMemo(()=>{if((e==null?void 0:e.id)===n){const s=xt(e);return[s,JSON.stringify((s==null?void 0:s.data)||null)]}return[]},[e,n]
|
|||
|
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|||
|
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|||
|
|
`)},lmt=0,ud=[];function cmt(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),o=p.useState(lmt++)[0],a=p.useState(function(){return Q6()})[0],i=p.useRef(e);p.useEffect(function(){i.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=oB([e.lockRef.current],(e.shards||[]).map(cR),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=p.useCallback(function(m,y){if("touches"in m&&m.touches.length===2)return!i.current.allowPinchZoom;var A=S0(m),w=n.current,k="deltaX"in m?m.deltaX:w[0]-A[0],C="deltaY"in m?m.deltaY:w[1]-A[1],E,S=m.target,O=Math.abs(k)>Math.abs(C)?"h":"v";if("touches"in m&&O==="h"&&S.type==="range")return!1;var T=sR(O,S);if(!T)return!0;if(T?E=O:(E=O==="v"?"h":"v",T=sR(O,S)),!T)return!1;if(!r.current&&"changedTouches"in m&&(k||C)&&(r.current=E),!E)return!0;var P=r.current||E;return amt(P,y,m,P==="h"?k:C,!0)},[]),l=p.useCallback(function(m){var y=m;if(!(!ud.length||ud[ud.length-1]!==a)){var A="deltaY"in y?lR(y):S0(y),w=t.current.filter(function(E){return E.name===y.type&&E.target===y.target&&imt(E.delta,A)})[0];if(w&&w.should){y.preventDefault();return}if(!w){var k=(i.current.shards||[]).map(cR).filter(Boolean).filter(function(E){return E.contains(y.target)}),C=k.length>0?s(y,k[0]):!i.current.noIsolation;C&&y.preventDefault()}}},[]),c=p.useCallback(function(m,y,A,w){var k={name:m,delta:y,target:A,should:w};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(C){return C!==k})},1)},[]),u=p.useCallback(function(m){n.current=S0(m),r.current=void 0},[]),f=p.useCallback(function(m){c(m.type,lR(m),m.target,s(m,e.lockRef.current))},[]),h=p.useCallback(function(m){c(m.type,S0(m),m.target,s(m,e.lockRef.current))},[]);p.useEffect(function(){return ud.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,cd),document.addEventListener("touchmove",l,cd),document.addEventListener("touchstart",u,cd),function(){ud=ud.filter(function(m){return m!==a}),document.removeEventListener("wheel",l,cd),document.removeEventListener("touchmove",l,cd),document.removeEventListener("touchstart",u,cd)}},[]);var v=e.removeScrollBar,b=e.inert;return p.createElement(p.Fragment,null,b?p.createElement(a,{styles:smt(o)}):null,v?p.createElement(d_,{gapMode:"margin"}):null)}const umt=c_(MW,cmt);var IW=p.forwardRef(function(e,t){return p.createElement(mx,go({},e,{ref:t,sideCar:umt}))});IW.classNames=mx.classNames;const dmt=IW,FW="Dialog",[BW,VVt]=Egt(FW),[fmt,Pu]=BW(FW),pmt=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=p.useRef(null),l=p.useRef(null),[c=!1,u]=jgt({prop:r,defaultProp:o,onChange:a});return p.createElement(fmt,{scope:t,triggerRef:s,contentRef:l,contentId:h5(),titleId:h5(),descriptionId:h5(),open:c,onOpenChange:u,onOpenToggle:p.useCallback(()=>u(f=>!f),[u]),modal:i},n)},$W="DialogPortal",[hmt,zW]=BW($W,{forceMount:void 0}),gmt=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Pu($W,t);return p.createElement(hmt,{scope:t,forceMount:n},p.Children.map(r,i=>p.createElement(gx,{present:n||a.open},p.createElement(Ygt,{asChild:!0,container:o},i))))},T3="DialogOverlay",mmt=p.forwardRef((e,t)=>{const n=zW(T3,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Pu(T3,e.__scopeDialog);return a.modal?p.createElement(gx,{present:r||a.open},p.createElement(vmt,Z({},o,{ref:t}))):null}),vmt=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Pu(T3,n);return p.createElement(dmt,{as:Z7,allowPinchZoom:!0,shards:[o.contentRef]},p.createElement(hx.div,Z({"data-state":HW(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),ug="DialogContent",bmt=p.forwardRef((e,t)=>{const n=zW(ug,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Pu(ug,e.__scopeDialog);return p.createElement(g
|
|||
|
|
* 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 kr=typeof Symbol=="function"&&Symbol.for,d8=kr?Symbol.for("react.element"):60103,f8=kr?Symbol.for("react.portal"):60106,wx=kr?Symbol.for("react.fragment"):60107,Cx=kr?Symbol.for("react.strict_mode"):60108,Sx=kr?Symbol.for("react.profiler"):60114,Ex=kr?Symbol.for("react.provider"):60109,kx=kr?Symbol.for("react.context"):60110,p8=kr?Symbol.for("react.async_mode"):60111,Ox=kr?Symbol.for("react.concurrent_mode"):60111,Tx=kr?Symbol.for("react.forward_ref"):60112,jx=kr?Symbol.for("react.suspense"):60113,Dbt=kr?Symbol.for("react.suspense_list"):60120,Nx=kr?Symbol.for("react.memo"):60115,Px=kr?Symbol.for("react.lazy"):60116,Ibt=kr?Symbol.for("react.block"):60121,Fbt=kr?Symbol.for("react.fundamental"):60117,Bbt=kr?Symbol.for("react.responder"):60118,$bt=kr?Symbol.for("react.scope"):60119;function na(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case d8:switch(e=e.type,e){case p8:case Ox:case wx:case Sx:case Cx:case jx:return e;default:switch(e=e&&e.$$typeof,e){case kx:case Tx:case Px:case Nx:case Ex:return e;default:return t}}case f8:return t}}}function vV(e){return na(e)===Ox}ln.AsyncMode=p8;ln.ConcurrentMode=Ox;ln.ContextConsumer=kx;ln.ContextProvider=Ex;ln.Element=d8;ln.ForwardRef=Tx;ln.Fragment=wx;ln.Lazy=Px;ln.Memo=Nx;ln.Portal=f8;ln.Profiler=Sx;ln.StrictMode=Cx;ln.Suspense=jx;ln.isAsyncMode=function(e){return vV(e)||na(e)===p8};ln.isConcurrentMode=vV;ln.isContextConsumer=function(e){return na(e)===kx};ln.isContextProvider=function(e){return na(e)===Ex};ln.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===d8};ln.isForwardRef=function(e){return na(e)===Tx};ln.isFragment=function(e){return na(e)===wx};ln.isLazy=function(e){return na(e)===Px};ln.isMemo=function(e){return na(e)===Nx};ln.isPortal=function(e){return na(e)===f8};ln.isProfiler=function(e){return na(e)===Sx};ln.isStrictMode=function(e){return na(e)===Cx};ln.isSuspense=function(e){return na(e)===jx};ln.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wx||e===Ox||e===Sx||e===Cx||e===jx||e===Dbt||typeof e=="object"&&e!==null&&(e.$$typeof===Px||e.$$typeof===Nx||e.$$typeof===Ex||e.$$typeof===kx||e.$$typeof===Tx||e.$$typeof===Fbt||e.$$typeof===Bbt||e.$$typeof===$bt||e.$$typeof===Ibt)};ln.typeOf=na;mV.exports=ln;var N3=mV.exports,zbt=el,_bt=tl,Hbt="[object Number]";function Ubt(e){return typeof e=="number"||_bt(e)&&zbt(e)==Hbt}var bV=Ubt;const Wbt=pn(bV);var Vbt=bV;function qbt(e){return Vbt(e)&&e!=+e}var Gbt=qbt;const rp=pn(Gbt);var oi=function(t){return t===0?0:t>0?1:-1},Dc=function(t){return Hm(t)&&t.indexOf("%")===t.length-1},Me=function(t){return Wbt(t)&&!rp(t)},mr=function(t){return Me(t)||Hm(t)},Kbt=0,Um=function(t){var n=++Kbt;return"".concat(t||"").concat(n)},pu=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Me(t)&&!Hm(t))return r;var a;if(Dc(t)){var i=t.indexOf("%");a=n*parseFloat(t.slice(0,i))/100}else a=+t;return rp(a)&&(a=r),o&&a>n&&(a=n),a},Sl=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},Xbt=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},o=0;o<n;o++)if(!r[t[o]])r[t[o]]=!0;else return!0;return!1},wa=function(t,n){return Me(t)&&Me(n)?function(r){return t+r*(n-t)}:function(){return n}};function Gv(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Na(r,t))===n})}function Hd(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function P3(e){"@babel/helpers - typeof";return P3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P3(e)}var Ybt=["viewBox","children"],Jbt=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-con
|
|||
|
|
A`).concat(i,",").concat(i,",0,1,1,").concat(2*s,",").concat(a,`
|
|||
|
|
H`).concat(ga,"M").concat(2*s,",").concat(a,`
|
|||
|
|
A`).concat(i,",").concat(i,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(r.type==="rect")return W.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(ga/8,"h").concat(ga,"v").concat(ga*3/4,"h").concat(-ga,"z"),className:"recharts-legend-icon"});if(W.isValidElement(r.legendIcon)){var c=Gxt({},r);return delete c.legendIcon,W.cloneElement(r.legendIcon,c)}return W.createElement(y8,{fill:l,cx:a,cy:a,size:ga,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,a=o.payload,i=o.iconSize,s=o.layout,l=o.formatter,c=o.inactiveColor,u={x:0,y:0,width:ga,height:ga},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(v,b){var m=v.formatter||l,y=Tt(pg(pg({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",v.inactive));if(v.type==="none")return null;var A=Pt(v.value)?null:v.value;Os(!Pt(v.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var w=v.inactive?c:v.color;return W.createElement("li",W3({className:y,style:f,key:"legend-item-".concat(b)},Xv(r.props,v,b)),W.createElement(D3,{width:i,height:i,viewBox:u,style:h},r.renderIcon(v)),W.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},m?m(A,v,b):A))})}},{key:"render",value:function(){var r=this.props,o=r.payload,a=r.layout,i=r.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?i:"left"};return W.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}]),t}(p.PureComponent);pg(x8,"displayName","Legend");pg(x8,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var t2t=yx;function n2t(){this.__data__=new t2t,this.size=0}var r2t=n2t;function o2t(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var a2t=o2t;function i2t(e){return this.__data__.get(e)}var s2t=i2t;function l2t(e){return this.__data__.has(e)}var c2t=l2t,u2t=yx,d2t=i8,f2t=s8,p2t=200;function h2t(e,t){var n=this.__data__;if(n instanceof u2t){var r=n.__data__;if(!d2t||r.length<p2t-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new f2t(r)}return n.set(e,t),this.size=n.size,this}var g2t=h2t,m2t=yx,v2t=r2t,b2t=a2t,y2t=s2t,x2t=c2t,A2t=g2t;function op(e){var t=this.__data__=new m2t(e);this.size=t.size}op.prototype.clear=v2t;op.prototype.delete=b2t;op.prototype.get=y2t;op.prototype.has=x2t;op.prototype.set=A2t;var VV=op,w2t="__lodash_hash_undefined__";function C2t(e){return this.__data__.set(e,w2t),this}var S2t=C2t;function E2t(e){return this.__data__.has(e)}var k2t=E2t,O2t=s8,T2t=S2t,j2t=k2t;function nb(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new O2t;++t<n;)this.add(e[t])}nb.prototype.add=nb.prototype.push=T2t;nb.prototype.has=j2t;var qV=nb;function N2t(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var GV=N2t;function P2t(e,t){return e.has(t)}var KV=P2t,R2t=qV,M2t=GV,L2t=KV,D2t=1,I2t=2;function F2t(e,t,n,r,o,a){var i=n&D2t,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,h=!0,v=n&I2t?new R2t:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var b=e[f],m=t[f];if(r)var y=i?r(m,b,f,t,e,a):r(b,m,f,e,t,a);if(y!==void 0){if(y)continue;h=!1;break}if(v){if(!M2t(t,function(A,w){if(!L2t(v,w)&&(b===A||o(b,A,n,r,a)))return v.push(w)})){h=!1;break}}else if(!(b===m||o(b,m,n,r,a))){h=!1;break}}return a.delete(e),a.delete(t),h}var XV=F2t,B2t=Ki,$2t=B2t.Uint8Array,z2t=$2t;function _2t(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var H2t=_2t;function U2t(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var A8=U2t,DR=_m,IR=z2t,W2t=a8,V2t=XV,q2t=H2t,G2t=A8,K2t=1,X2t=2,Y2t="[object Boolean]",J2t="[object Date]",Q2t="[object Error]",Z2t="[object Map]",eAt="[object Number]",tAt="[object RegExp]",nAt="[object Set]",rAt="[object String]
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cSt(e,t){if(e){if(typeof e=="string")return dM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dM(e,t)}}function dM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uSt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function dSt(e){if(Array.isArray(e))return e}function fM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function j5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fM(Object(n),!0).forEach(function(r){fSt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fSt(e,t,n){return t=pSt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pSt(e){var t=hSt(e,"string");return gg(t)=="symbol"?t:String(t)}function hSt(e,t){if(gg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gSt(e){return Array.isArray(e)&&mr(e[0])&&mr(e[1])?e.join(" ~ "):e}var mSt=function(t){var n=t.separator,r=n===void 0?" : ":n,o=t.contentStyle,a=o===void 0?{}:o,i=t.itemStyle,s=i===void 0?{}:i,l=t.labelStyle,c=l===void 0?{}:l,u=t.payload,f=t.formatter,h=t.itemSorter,v=t.wrapperClassName,b=t.labelClassName,m=t.label,y=t.labelFormatter,A=t.accessibilityLayer,w=A===void 0?!1:A,k=function(){if(u&&u.length){var I={padding:0,margin:0},M=(h?O8(u,h):u).map(function(B,R){if(B.type==="none")return null;var D=j5({display:"block",paddingTop:4,paddingBottom:4,color:B.color||"#000"},s),$=B.formatter||f||gSt,z=B.value,_=B.name,V=z,H=_;if($&&V!=null&&H!=null){var K=$(z,_,B,R,u);if(Array.isArray(K)){var X=sSt(K,2);V=X[0],H=X[1]}else V=K}return W.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(R),style:D},mr(H)?W.createElement("span",{className:"recharts-tooltip-item-name"},H):null,mr(H)?W.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,W.createElement("span",{className:"recharts-tooltip-item-value"},V),W.createElement("span",{className:"recharts-tooltip-item-unit"},B.unit||""))});return W.createElement("ul",{className:"recharts-tooltip-item-list",style:I},M)}return null},C=j5({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),E=j5({margin:0},c),S=!Ut(m),O=S?m:"",T=Tt("recharts-default-tooltip",v),P=Tt("recharts-tooltip-label",b);S&&y&&u!==void 0&&u!==null&&(O=y(m,u));var N=w?{role:"status","aria-live":"assertive"}:{};return W.createElement("div",Q3({className:T,style:C},N),W.createElement("p",{className:P,style:E},W.isValidElement(O)?O:"".concat(O)),k())};function mg(e){"@babel/helpers - typeof";return mg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mg(e)}function O0(e,t,n){return t=vSt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vSt(e){var t=bSt(e,"string");return mg(t)=="symbol"?t:String(t)}
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y6t(e,t){if(e){if(typeof e=="string")return EM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EM(e,t)}}function EM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x6t(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function A6t(e){if(Array.isArray(e))return e}var w6t=p.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,o=r===void 0?{width:-1,height:-1}:r,a=e.width,i=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,c=e.minWidth,u=c===void 0?0:c,f=e.minHeight,h=e.maxHeight,v=e.children,b=e.debounce,m=b===void 0?0:b,y=e.id,A=e.className,w=e.onResize,k=e.style,C=k===void 0?{}:k,E=p.useRef(null),S=p.useRef();S.current=w,p.useImperativeHandle(t,function(){return Object.defineProperty(E.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),E.current},configurable:!0})});var O=p.useState({containerWidth:o.width,containerHeight:o.height}),T=v6t(O,2),P=T[0],N=T[1],L=p.useCallback(function(M,B){N(function(R){var D=Math.round(M),$=Math.round(B);return R.containerWidth===D&&R.containerHeight===$?R:{containerWidth:D,containerHeight:$}})},[]);p.useEffect(function(){var M=function(_){var V,H=_[0].contentRect,K=H.width,X=H.height;L(K,X),(V=S.current)===null||V===void 0||V.call(S,K,X)};m>0&&(M=wq(M,m,{trailing:!0,leading:!1}));var B=new ResizeObserver(M),R=E.current.getBoundingClientRect(),D=R.width,$=R.height;return L(D,$),B.observe(E.current),function(){B.disconnect()}},[L,m]);var I=p.useMemo(function(){var M=P.containerWidth,B=P.containerHeight;if(M<0||B<0)return null;Os(Dc(i)||Dc(l),`The width(%s) and height(%s) are both fixed numbers,
|
|||
|
|
maybe you don't need to use a ResponsiveContainer.`,i,l),Os(!n||n>0,"The aspect(%s) must be greater than zero.",n);var R=Dc(i)?M:i,D=Dc(l)?B:l;n&&n>0&&(R?D=R/n:D&&(R=D*n),h&&D>h&&(D=h)),Os(R>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|||
|
|
please check the style of container, or the props width(%s) and height(%s),
|
|||
|
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|||
|
|
height and width.`,R,D,i,l,u,f,n);var $=!Array.isArray(v)&&N3.isElement(v)&&ks(v.type).endsWith("Chart");return W.Children.map(v,function(z){return N3.isElement(z)?p.cloneElement(z,T0({width:R,height:D},$?{style:T0({height:"100%",width:"100%",maxHeight:D,maxWidth:R},z.props.style)}:{})):z})},[n,v,l,h,f,u,P,i]);return W.createElement("div",{id:y?"".concat(y):void 0,className:Tt("recharts-responsive-container",A),style:T0(T0({},C),{},{width:i,height:l,minWidth:u,minHeight:f,maxHeight:h}),ref:E},I)}),Cq=function(t){return null};Cq.displayName="Cell";function bg(e){"@babel/helpers - typeof";return bg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bg(e)}function kM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function rC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kM(Object(n),!0).forEach(function(r){C6t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C6t(e,t,n){return t=S6t(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S6t(e){var t=E6t(e,"string");return bg(t)=="symbol"?t:String(t)}function E6t(e,t){if(bg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dd={widthCache:{},cacheCount:0},k6t=2e3,O6t={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},OM="recharts_measurement_span";function T6t(e){var t=rC({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var kh=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ts.isSsr)return{width:0,height:0};var r=T6t(n),o=JSON.stringify({text:t,copyStyle:r});if(dd.widthCache[o])return dd.widthCache[o];try{var a=document.getElementById(OM);a||(a=document.createElement("span"),a.setAttribute("id",OM),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var i=rC(rC({},O6t),r);Object.assign(a.style,i),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return dd.widthCache[o]=l,++dd.cacheCount>k6t&&(dd.cacheCount=0,dd.widthCache={}),l}catch{return{width:0,height:0}}},j6t=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function yg(e){"@babel/helpers - typeof";return yg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yg(e)}function lb(e,t){return M6t(e)||R6t(e,t)||P6t(e,t)||N6t()}function N6t(){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 P6t(e,t){if(e){if(typeof e=="string")return TM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TM(e,t)}}function TM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function R6t(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function M6t(e){if(Array.isArray(e))return e}function L6t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,I6t(r.key),r)}}function D6t(e,t,n){return t&&jM(e.prototype,t),n&&jM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function I6t(e){var t=F6t(e,"string");return yg(t)=="symbol"?t:String(t)}function F6t(e,t){if(yg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var NM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,PM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,B6t=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,$6t=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Sq={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},z6t=Object.keys(Sq),Td="NaN";function _6t(e,t){return e*Sq[t]}var j0=function(){function e(t,n){L6t(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!B6t.test(n)&&(this.num=NaN,this.unit=""),z6t.includes(n)&&(this.num=_6t(t,n),this.unit="px")}return D6t(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,o=(r=$6t.exec(n))!==null&&r!==void 0?r:[],a=lb(o,3),i=a[1],s=a[2];return new e(parseFloat(i),s??"")}}]),e}();function Eq(e){if(e.includes(Td))return Td;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=NM.exec(t))!==null&&n!==void 0?n:[],o=lb(r,4),a=o[1],i=o[2],s=o[3],l=j0.parse(a??""),c=j0.parse(s??""),u=i==="*"?l.multiply(c):l.divide(c);if(u.isNaN())return Td;t=t.replace(NM,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=PM.exec(t))!==null&&f!==void 0?f:[],v=lb(h,4),b=v[1],m=v[2],y=v[3],A=j0.parse(b??""),w=j0.parse(y??""),k=m==="+"?A.add(w):A.subtract(w);if(k.isNaN())return Td;t=t.replace(PM,k.toString())}return t}var RM=/\(([^()]*)\)/;function H6t(e){for(var t=e;t.includes("(");){var n=RM.exec(t),r=lb(n,2),o=r[1];t=t.replace(RM,Eq(o))}return t}function U6t(e){var t=e.replace(/\s+/g,"");return t=H6t(t),t=Eq(t),t}function W6t(e){try{return U6t(e)}catch{return Td}}function P5(e){var t=W6t(e.slice(5,-1));return t===Td?"":t}var V6t=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],q6t=["dx","dy","angle","className","breakAll"];function oC(){return oC=Object.assign?Object.assign.bind():function(e
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X6t(e,t){if(e){if(typeof e=="string")return DM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DM(e,t)}}function DM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Y6t(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function J6t(e){if(Array.isArray(e))return e}var kq=/[ \f\n\r\t\v\u2028\u2029]+/,Oq=function(t){var n=t.children,r=t.breakAll,o=t.style;try{var a=[];Ut(n)||(r?a=n.toString().split(""):a=n.toString().split(kq));var i=a.map(function(l){return{word:l,width:kh(l,o).width}}),s=r?0:kh(" ",o).width;return{wordsWithComputedWidth:i,spaceWidth:s}}catch{return null}},Q6t=function(t,n,r,o,a){var i=t.maxLines,s=t.children,l=t.style,c=t.breakAll,u=Me(i),f=s,h=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return R.reduce(function(D,$){var z=$.word,_=$.width,V=D[D.length-1];if(V&&(o==null||a||V.width+_+r<Number(o)))V.words.push(z),V.width+=_+r;else{var H={words:[z],width:_};D.push(H)}return D},[])},v=h(n),b=function(R){return R.reduce(function(D,$){return D.width>$.width?D:$})};if(!u)return v;for(var m="…",y=function(R){var D=f.slice(0,R),$=Oq({breakAll:c,style:l,children:D+m}).wordsWithComputedWidth,z=h($),_=z.length>i||b(z).width>Number(o);return[_,z]},A=0,w=f.length-1,k=0,C;A<=w&&k<=f.length-1;){var E=Math.floor((A+w)/2),S=E-1,O=y(S),T=LM(O,2),P=T[0],N=T[1],L=y(E),I=LM(L,1),M=I[0];if(!P&&!M&&(A=E+1),P&&M&&(w=E-1),!P&&M){C=N;break}k++}return C||v},IM=function(t){var n=Ut(t)?[]:t.toString().split(kq);return[{words:n}]},Z6t=function(t){var n=t.width,r=t.scaleToFit,o=t.children,a=t.style,i=t.breakAll,s=t.maxLines;if((n||r)&&!Ts.isSsr){var l,c,u=Oq({breakAll:i,children:o,style:a});if(u){var f=u.wordsWithComputedWidth,h=u.spaceWidth;l=f,c=h}else return IM(o);return Q6t({breakAll:i,children:o,maxLines:s,style:a},l,c,n,r)}return IM(o)},FM="#808080",cb=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,a=o===void 0?0:o,i=t.lineHeight,s=i===void 0?"1em":i,l=t.capHeight,c=l===void 0?"0.71em":l,u=t.scaleToFit,f=u===void 0?!1:u,h=t.textAnchor,v=h===void 0?"start":h,b=t.verticalAnchor,m=b===void 0?"end":b,y=t.fill,A=y===void 0?FM:y,w=MM(t,V6t),k=p.useMemo(function(){return Z6t({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:f,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,f,w.style,w.width]),C=w.dx,E=w.dy,S=w.angle,O=w.className,T=w.breakAll,P=MM(w,q6t);if(!mr(r)||!mr(a))return null;var N=r+(Me(C)?C:0),L=a+(Me(E)?E:0),I;switch(m){case"start":I=P5("calc(".concat(c,")"));break;case"middle":I=P5("calc(".concat((k.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:I=P5("calc(".concat(k.length-1," * -").concat(s,")"));break}var M=[];if(f){var B=k[0].width,R=w.width;M.push("scale(".concat((Me(R)?R/B:1)/B,")"))}return S&&M.push("rotate(".concat(S,", ").concat(N,", ").concat(L,")")),M.length&&(P.transform=M.join(" ")),W.createElement("text",oC({},It(P,!0),{x:N,y:L,className:Tt("recharts-text",O),textAnchor:v,fill:A.includes("url")?FM:A}),k.map(function(D,$){var z=D.words.join(T?"":" ");return W.createElement("tspan",{x:N,dy:$===0?I:s,key:z},z)}))};function Ll(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function e7t(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function j8(e){let t,n,r;e.length!==2?(t=Ll,n=(s,l)=>Ll(e(s),l),r=(s,l)=>e(s)-l):(t=e===Ll||e===e7t?e:t7t,n=e,r=e);function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;n(s[f],l)<0?c=f+1:u=f}while(c<u
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $9t(e,t){if(e){if(typeof e=="string")return uC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uC(e,t)}}function z9t(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _9t(e){if(Array.isArray(e))return uC(e)}function uC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var H9t=function(t){return t},uG={"@@functional/placeholder":!0},dG=function(t){return t===uG},gL=function(t){return function n(){return arguments.length===0||arguments.length===1&&dG(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},U9t=function e(t,n){return t===1?n:gL(function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o.filter(function(s){return s!==uG}).length;return i>=t?n.apply(void 0,o):e(t-i,gL(function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var u=o.map(function(f){return dG(f)?l.shift():f});return n.apply(void 0,F9t(u).concat(l))}))})},qx=function(t){return U9t(t.length,t)},dC=function(t,n){for(var r=[],o=t;o<n;++o)r[o-t]=o;return r},W9t=qx(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),V9t=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return H9t;var o=n.reverse(),a=o[0],i=o.slice(1);return function(){return i.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},fC=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},fG=function(t){var n=null,r=null;return function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n&&a.every(function(s,l){return s===n[l]})||(n=a,r=t.apply(void 0,a)),r}};function q9t(e){var t;return e===0?t=1:t=Math.floor(new un(e).abs().log(10).toNumber())+1,t}function G9t(e,t,n){for(var r=new un(e),o=0,a=[];r.lt(t)&&o<1e5;)a.push(r.toNumber()),r=r.add(n),o++;return a}var K9t=qx(function(e,t,n){var r=+e,o=+t;return r+n*(o-r)}),X9t=qx(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Y9t=qx(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Gx={rangeStep:G9t,getDigitCount:q9t,interpolateNumber:K9t,uninterpolateNumber:X9t,uninterpolateTruncation:Y9t};function pC(e){return Z9t(e)||Q9t(e)||pG(e)||J9t()}function J9t(){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 Q9t(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Z9t(e){if(Array.isArray(e))return hC(e)}function Sg(e,t){return nEt(e)||tEt(e,t)||pG(e,t)||eEt()}function eEt(){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 pG(e,t){if(e){if(typeof e=="string")return hC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hC(e,t)}}function hC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tEt(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!1,a=void 0;try{for(var i=e[Symbol.iterator](),s;!(r=(s=i.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){o=!0,a=l}finally{try{!r&&i.return!=null&&i.return()}finally{if(o)throw a}}return n}}function nEt(e){if(Array.isArray(e))return e}function hG(e){var t=Sg(e,2),n=t[0],r=t[1],o=n,a=r;return n>r&&(o=r,a=n),[o,a]}function gG(e,t,n){if(e.lte(0))return new un(0);var r=Gx.getDigitCount(e.toNumber()),o=new un(10).pow(r),a=e.div(o),i=r!==1?.05:.1,s=new un(Math.ceil(a.div(i).toNumber())).add(n).mul(i),l=s.mul(o);return t?l:new un(Math.ceil(l))}function rEt(e,t,n){var r=1,o=new un(e);if(!o.isint()&&n){var a=Math.abs(e);a<1?(r=new un(10).pow(Gx.getDigitCount(e)-1),o=new un(Math.floor(o.div(r).toNumber())).mul(r)):a>1&&(o=new un(Math.floor(e)))}else e===0?o=new un(Math.floor((t-1)/2)):n||(o=new un(Math.floor(e)));var i=Math.floor((t-1)/2),s=V9t(W9t(function(l){return o.add(new un(l-i).mul(r)).toNumber()}),dC);return s(0,t)}function mG(e,t,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new un(0),tickMin:new un(0),tickMax:new un(0)};var a=gG(new un(t).sub(e).div(n-1),r,o),i;e<=0&&t>=0?i=new un(0):(i=new un(e).add(t).div(2),i=i.sub(new un(i).mod(a)));var s=Math.ceil(i.sub(e).div(a).toNumber()),l=Math.ceil(new un(t).sub(i).div(a).toNumber()),c=s+l+1;return c>n?mG(e,t,n,r,o+1):(c<n&&(l=t>0?l+(n-c):l,s=t>0?s:s+(n-c)),{step:a,tickMin:i.sub(new un(s).mul(a)),tickMax:i.add(new un(l).mul(a))})}function oEt(e){var t=Sg(e,2),n=t[0],r=t[1],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=Math.max(o,2),s=hG([n,r]),l=Sg(s,2),c=l[0],u=l[1];if(c===-1/0||u===1/0){var f=u===1/0?[c].concat(pC(dC(0,o-1).map(function(){return 1/0}))):[].concat(pC(dC(0,o-1).map(function(){return-1/0})),[u]);return n>r?fC(f):f}if(c===u)return rEt(c,o,a);var h=mG(c,u,i,a),v=h.step,b=h.tickMin,m=h.tickMax,y=Gx.rangeStep(b,m.add(new un(.1).mul(v)),v);return n>r?fC(y):y}function aEt(e,t){var n=Sg(e,2),r=n[0],o=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=hG([r,o]),s=Sg(i,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[r,o];if(l===c)return[l];var u=Math.max(t,2),f=gG(new un(c).sub(l).div(u-1),a,0),h=[].concat(pC(Gx.rangeStep(new un(l),new un(c).sub(new un(.99).mul(f)),f)),[c]);return r>o?fC(h):h}var iEt=fG(oEt),sEt=fG(aEt),lEt=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function bb(){return bb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bb.apply(this,arguments)}function cEt(e,t){return pEt(e)||fEt(e,t)||dEt(e,t)||uEt()}function uEt(){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 dEt(e,t){if(e){if(typeof e=="string")return mL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mL(e,t)}}function mL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fEt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function pEt(e){if(Array.isArray(e))return e}function hEt(e,t){if(e==null)return{};var n=gEt(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gEt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Kx(e){var t=e.offset,n=e.layout,r=e.width,o=e.dataKey,a=e.data,i=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,c=hEt(e,lEt),u=It(c,!1);e.direction==="x"&&s.type!=="number"&&Jc(!1);var f=a.map(function(h){var v=i(h,o),b=v.x,m=v.y,y=v.value,A=v.errorVal;if(!A)return null;var w=[],k,C;if(Array.isArray(A)){var E=cEt(A,2);k=E[0],C=E[1]}else k=C=A;if(n==="vertical"){var S=s.scale,O=m+t,T=O+r,P=O-r,N=S(y-k),L=S(y+C);w.push({x1:L,y1:T,x2:L,y2:P}),w.push({x1:N,y1:O,x2:L,y2:O}),w.push({x1:N,y1:T,x2:N,y2:P})}else if(n==="horizontal"){var I=l.scale,M=b+t,B=M-r,R=M+r,D=I(y-k),$=I(y+C);w.push({x1:B,y1:$,x2:R,y2:$}),w.push({x1:M,y1:D,x2:M,y2:$}),w.push({x1:B,y1:D,x2:R,y2:D})}return W.createElement(Dn,bb({className:"recharts-errorBar",key:"bar-".concat(w.map(function(z){return"".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))},u),w.map(function(z){return W.createElement("line",bb({},z,{key:"line-".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))}))});return W.createElement(Dn,{className:"recharts-errorBars"},f)}Kx.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};Kx.displayName="ErrorBar";function Eg(e){"@babel/helpers - typeof";return Eg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eg(e)}function vL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function B5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vL(Object(n),!0).forEach(function(r){mEt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mEt(e,t,n){return t=vEt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vEt(e){var t=bEt(e,"string");return Eg(t)=="symbol"?t:String(t)}function bEt(e,t){if(Eg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Eg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vG=function(t){var n=t.children,r=t.formattedGraphicalItems,o=t.legendWidth,a=t.legendContent,i=$o(n,hg);if(!i)return null;var s;return i.props&&i.props.payload?s=i.props&&i.props.payload:a==="children"?s=(r||[]).reduce(function(l,c){var u=c.item,f=c.props,h=f.sectors||f.data||[];return l.concat(h.map(function(v){return{t
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wEt(e,t){if(e){if(typeof e=="string")return gC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gC(e,t)}}function CEt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SEt(e){if(Array.isArray(e))return gC(e)}function gC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zo(e,t,n){return Ut(e)||Ut(t)?n:mr(t)?Na(e,t,n):Pt(t)?t(e):n}function Th(e,t,n,r){var o=N9t(e,function(s){return Zo(s,t)});if(n==="number"){var a=o.filter(function(s){return Me(s)||parseFloat(s)});return a.length?[Vx(a),jl(a)]:[1/0,-1/0]}var i=r?o.filter(function(s){return!Ut(s)}):o;return i.map(function(s){return mr(s)||s instanceof Date?s:""})}var EEt=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,i=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,c=0;c<s;c++){var u=c>0?o[c-1].coordinate:o[s-1].coordinate,f=o[c].coordinate,h=c>=s-1?o[0].coordinate:o[c+1].coordinate,v=void 0;if(oi(f-u)!==oi(h-f)){var b=[];if(oi(h-f)===oi(l[1]-l[0])){v=h;var m=f+l[1]-l[0];b[0]=Math.min(m,(m+u)/2),b[1]=Math.max(m,(m+u)/2)}else{v=u;var y=h+l[1]-l[0];b[0]=Math.min(f,(y+f)/2),b[1]=Math.max(f,(y+f)/2)}var A=[Math.min(f,(v+f)/2),Math.max(f,(v+f)/2)];if(t>A[0]&&t<=A[1]||t>=b[0]&&t<=b[1]){i=o[c].index;break}}else{var w=Math.min(u,h),k=Math.max(u,h);if(t>(w+f)/2&&t<=(k+f)/2){i=o[c].index;break}}}else for(var C=0;C<s;C++)if(C===0&&t<=(r[C].coordinate+r[C+1].coordinate)/2||C>0&&C<s-1&&t>(r[C].coordinate+r[C-1].coordinate)/2&&t<=(r[C].coordinate+r[C+1].coordinate)/2||C===s-1&&t>(r[C].coordinate+r[C-1].coordinate)/2){i=r[C].index;break}return i},Y8=function(t){var n=t,r=n.type.displayName,o=t.props,a=o.stroke,i=o.fill,s;switch(r){case"Line":s=a;break;case"Area":case"Radar":s=a&&a!=="none"?a:i;break;default:s=i;break}return s},kEt=function(t){var n=t.barSize,r=t.totalSize,o=t.stackGroups,a=o===void 0?{}:o;if(!a)return{};for(var i={},s=Object.keys(a),l=0,c=s.length;l<c;l++)for(var u=a[s[l]].stackGroups,f=Object.keys(u),h=0,v=f.length;h<v;h++){var b=u[f[h]],m=b.items,y=b.cateAxisId,A=m.filter(function(E){return ks(E.type).indexOf("Bar")>=0});if(A&&A.length){var w=A[0].props.barSize,k=A[0].props[y];i[k]||(i[k]=[]);var C=Ut(w)?n:w;i[k].push({item:A[0],stackList:A.slice(1),barSize:Ut(C)?void 0:pu(C,r,0)})}}return i},OEt=function(t){var n=t.barGap,r=t.barCategoryGap,o=t.bandSize,a=t.sizeList,i=a===void 0?[]:a,s=t.maxBarSize,l=i.length;if(l<1)return null;var c=pu(n,o,0,!0),u,f=[];if(i[0].barSize===+i[0].barSize){var h=!1,v=o/l,b=i.reduce(function(C,E){return C+E.barSize||0},0);b+=(l-1)*c,b>=o&&(b-=(l-1)*c,c=0),b>=o&&v>0&&(h=!0,v*=.9,b=l*v);var m=(o-b)/2>>0,y={offset:m-c,size:0};u=i.reduce(function(C,E){var S={item:E.item,position:{offset:y.offset+y.size+c,size:h?v:E.barSize}},O=[].concat(yL(C),[S]);return y=O[O.length-1].position,E.stackList&&E.stackList.length&&E.stackList.forEach(function(T){O.push({item:T,position:y})}),O},f)}else{var A=pu(r,o,0,!0);o-2*A-(l-1)*c<=0&&(c=0);var w=(o-2*A-(l-1)*c)/l;w>1&&(w>>=0);var k=s===+s?Math.min(w,s):w;u=i.reduce(function(C,E,S){var O=[].concat(yL(C),[{item:E.item,position:{offset:A+(w+c)*S+(w-k)/2,size:k}}]);return E.stackList&&E.stackList.length&&E.stackList.forEach(function(T){O.push({item:T,position:O[O.length-1].position})}),O},f)}return u},TEt=function(t,n,r,o){var a=r.children,i=r.width,s=r.margin,l=i-(s.left||0)-(s.right||0),c=vG({children:a,legendWidth:l});if(c){var u=o||{},f=u.width,h=u.height,v=c.align,b=c.verticalAlign,m=c.layout;if((m==="vertical"||m==="horizontal"&&b==="middle")&&v!=="center"&&Me(t[v]))return Ca(Ca({},t),{},Ud({}
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tkt(e,t){if(e){if(typeof e=="string")return vC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vC(e,t)}}function nkt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rkt(e){if(Array.isArray(e))return vC(e)}function vC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function okt(e,t){if(e==null)return{};var n=akt(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function akt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function jL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jL(Object(n),!0).forEach(function(r){ikt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ikt(e,t,n){return t=skt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function skt(e){var t=lkt(e,"string");return Tg(t)=="symbol"?t:String(t)}function lkt(e,t){if(Tg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Tg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jg(){return jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jg.apply(this,arguments)}var ckt=function(t){var n=t.value,r=t.formatter,o=Ut(t.children)?n:t.children;return Pt(r)?r(o):o},ukt=function(t,n){var r=oi(n-t),o=Math.min(Math.abs(n-t),360);return r*o},dkt=function(t,n,r){var o=t.position,a=t.viewBox,i=t.offset,s=t.className,l=a,c=l.cx,u=l.cy,f=l.innerRadius,h=l.outerRadius,v=l.startAngle,b=l.endAngle,m=l.clockWise,y=(f+h)/2,A=ukt(v,b),w=A>=0?1:-1,k,C;o==="insideStart"?(k=v+w*i,C=m):o==="insideEnd"?(k=b-w*i,C=!m):o==="end"&&(k=b+w*i,C=m),C=A<=0?C:!C;var E=Fr(c,u,y,k),S=Fr(c,u,y,k+(C?1:-1)*359),O="M".concat(E.x,",").concat(E.y,`
|
|||
|
|
A`).concat(y,",").concat(y,",0,1,").concat(C?0:1,`,
|
|||
|
|
`).concat(S.x,",").concat(S.y),T=Ut(t.id)?Um("recharts-radial-line-"):t.id;return W.createElement("text",jg({},r,{dominantBaseline:"central",className:Tt("recharts-radial-bar-label",s)}),W.createElement("defs",null,W.createElement("path",{id:T,d:O})),W.createElement("textPath",{xlinkHref:"#".concat(T)},n))},fkt=function(t){var n=t.viewBox,r=t.offset,o=t.position,a=n,i=a.cx,s=a.cy,l=a.innerRadius,c=a.outerRadius,u=a.startAngle,f=a.endAngle,h=(u+f)/2;if(o==="outside"){var v=Fr(i,s,c+r,h),b=v.x,m=v.y;return{x:b,y:m,textAnchor:b>=i?"start":"end",verticalAnchor:"middle"}}if(o==="center")return{x:i,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(o==="centerTop")return{x:i,y:s,textAnchor:"middle",verticalAnchor:"start"};if(o==="centerBottom")return{x:i,y:s,textAnchor:"middle",verticalAnchor:"end"};var y=(l+c)/2,A=Fr(i,s,y,h),w=A.x,k=A.y;return{x:w,y:k,textAnchor:"middle",verticalAnchor:"middle"}},pkt=function(t){var n=t.viewBox,r=t.parentViewBox,o=t.offset,a=t.position,i=n,s=i.x,l=i.y,c=i.width,u=i.height,f=u>=0?1:-1,h=f*o,v=f>0?"end":"start",b=f>0?"start":"end",m=c>=0?1:-1,y=m*o,A=m>0?"end":"start",w=m>0?"start":"end";if(a==="top"){var k={x:s+c/2,y:l-f*o,textAnchor:"middle",verticalAnchor:v};return hr(hr({},k),r?{height:Math.max(l-r.y,0),width:c}:{})}if(a==="bottom"){var C={x:s+c/2,y:l+u+h,textAnchor:"middle",verticalAnchor:b};return hr(hr({},C),r?{height:Math.max(r.y+r.height-(l+u),0),width:c}:{})}if(a==="left"){var E={x:s-y,y:l+u/2,textAnchor:A,verticalAnchor:"middle"};return hr(hr({},E),r?{width:Math.max(E.x-r.x,0),height:u}:{})}if(a==="right"){var S={x:s+c+y,y:l+u/2,textAnchor:w,verticalAnchor:"middle"};return hr(hr({},S),r?{width:Math.max(r.x+r.width-S.x,0),height:u}:{})}var O=r?{width:c,height:u}:{};return a==="insideLeft"?hr({x:s+y,y:l+u/2,textAnchor:w,verticalAnchor:"middle"},O):a==="insideRight"?hr({x:s+c-y,y:l+u/2,textAnchor:A,verticalAnchor:"middle"},O):a==="insideTop"?hr({x:s+c/2,y:l+h,textAnchor:"middle",verticalAnchor:b},O):a==="insideBottom"?hr({x:s+c/2,y:l+u-h,textAnchor:"middle",verticalAnchor:v},O):a==="insideTopLeft"?hr({x:s+y,y:l+h,textAnchor:w,verticalAnchor:b},O):a==="insideTopRight"?hr({x:s+c-y,y:l+h,textAnchor:A,verticalAnchor:b},O):a==="insideBottomLeft"?hr({x:s+y,y:l+u-h,textAnchor:w,verticalAnchor:v},O):a==="insideBottomRight"?hr({x:s+c-y,y:l+u-h,textAnchor:A,verticalAnchor:v},O):Zf(a)&&(Me(a.x)||Dc(a.x))&&(Me(a.y)||Dc(a.y))?hr({x:s+pu(a.x,c),y:l+pu(a.y,u),textAnchor:"end",verticalAnchor:"end"},O):hr({x:s+c/2,y:l+u/2,textAnchor:"middle",verticalAnchor:"middle"},O)},hkt=function(t){return"cx"in t&&Me(t.cx)};function Gr(e){var t=e.offset,n=t===void 0?5:t,r=okt(e,QEt),o=hr({offset:n},r),a=o.viewBox,i=o.position,s=o.value,l=o.children,c=o.content,u=o.className,f=u===void 0?"":u,h=o.textBreakAll;if(!a||Ut(s)&&Ut(l)&&!p.isValidElement(c)&&!Pt(c))return null;if(p.isValidElement(c))return p.cloneElement(c,o);var v;if(Pt(c)){if(v=p.createElement(c,o),p.isValidElement(v))return v}else v=ckt(o);var b=hkt(a),m=It(o,!0);if(b&&(i==="insideStart"||i==="insideEnd"||i==="end"))return dkt(o,v,m);var y=b?fkt(o):pkt(o);return W.createElement(cb,jg({className:Tt("recharts-label",f)},m,y,{breakAll:h}),v)}Gr.displayName="Label";var SG=function(t){var n=t.cx,r=t.cy,o=t.angle,a=t.startAngle,i=t.endAngle,s=t.r,l=t.radius,c=t.innerRadius,u=t.outerRadius,f=t.x,h=t.y,v=t.top,b=t.left,m=t.width,y=t.height,A=t.clockWise,w=t.labelViewBox;if(w)return w;if(Me(m)&&Me(y)){if(Me(f)&&Me(h))return{x:f,y:h,width:m,height:y};if(Me(v)&&Me(b))return{x:v,y:b,width:m,height:y}}return Me(f)&&Me(h)?{x:f,y:h,width:0,height:0}:Me(n)&&Me(r)?{cx:n,cy:r,startAngle:a||o||0,endAngle:i||o||0,innerRadius:c||0,outerRadius:u||l||s||0,clockWise:A}:t.viewBox?t.viewBox:{}},gkt=function(t,n){return t?t===!0?W.createElement(Gr,{key:"label-implicit",viewBox:n}):mr(t)?W.createElement(Gr,{key:"label-implicit",viewBox:n,value:t}):p.isValidElement(t)?t.type===Gr?p.cloneElement(t,{key:"label-implicit",viewBox:n}):W.createElement(Gr,{key:"label-implicit",content:t,viewBox:n}):Pt(t)?W.createElement(Gr,{key:"label-implicit",content:t,viewBox:n}):Zf(t)?W.createEl
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Skt(e,t){if(e){if(typeof e=="string")return bC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bC(e,t)}}function Ekt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kkt(e){if(Array.isArray(e))return bC(e)}function bC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ab(){return Ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ab.apply(this,arguments)}function NL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function PL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NL(Object(n),!0).forEach(function(r){Okt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Okt(e,t,n){return t=Tkt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tkt(e){var t=jkt(e,"string");return Ng(t)=="symbol"?t:String(t)}function jkt(e,t){if(Ng(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ng(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RL(e,t){if(e==null)return{};var n=Nkt(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nkt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Pkt=function(t){return Array.isArray(t.value)?ykt(t.value):t.value};function Dl(e){var t=e.valueAccessor,n=t===void 0?Pkt:t,r=RL(e,xkt),o=r.data,a=r.dataKey,i=r.clockWise,s=r.id,l=r.textBreakAll,c=RL(r,Akt);return!o||!o.length?null:W.createElement(Dn,{className:"recharts-label-list"},o.map(function(u,f){var h=Ut(a)?n(u,f):Zo(u&&u.payload,a),v=Ut(s)?{}:{id:"".concat(s,"-").concat(f)};return W.createElement(Gr,Ab({},It(u,!0),c,v,{parentViewBox:u.parentViewBox,value:h,textBreakAll:l,viewBox:Gr.parseViewBox(Ut(i)?u:PL(PL({},u),{},{clockWise:i})),key:"label-".concat(f),index:f}))}))}Dl.displayName="LabelList";function Rkt(e,t){return e?e===!0?W.createElement(Dl,{key:"labelList-implicit",data:t}):W.isValidElement(e)||Pt(e)?W.createElement(Dl,{key:"labelList-implicit",data:t,content:e}):Zf(e)?W.createElement(Dl,Ab({data:t},e,{key:"labelList-implicit"})):null:null}function Mkt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=si(r,Dl).map(function(i,s){return p.cloneElement(i,{data:t,key:"labelList-".concat(s)})});if(!n)return o;var a=Rkt(e.label,t);return[a].concat(wkt(o))}Dl.renderCallByParent=Mkt;function Pg(e){"@babel/helpers - typeof";return Pg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pg(e)}function yC(){return yC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yC.apply(this,arguments)}function ML(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(
|
|||
|
|
A `).concat(a,",").concat(a,`,0,
|
|||
|
|
`).concat(+(Math.abs(l)>180),",").concat(+(i>c),`,
|
|||
|
|
`).concat(f.x,",").concat(f.y,`
|
|||
|
|
`);if(o>0){var v=Fr(n,r,o,i),b=Fr(n,r,o,c);h+="L ".concat(b.x,",").concat(b.y,`
|
|||
|
|
A `).concat(o,",").concat(o,`,0,
|
|||
|
|
`).concat(+(Math.abs(l)>180),",").concat(+(i<=c),`,
|
|||
|
|
`).concat(v.x,",").concat(v.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},Bkt=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,a=t.outerRadius,i=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,u=t.endAngle,f=oi(u-c),h=R0({cx:n,cy:r,radius:a,angle:c,sign:f,cornerRadius:i,cornerIsExternal:l}),v=h.circleTangency,b=h.lineTangency,m=h.theta,y=R0({cx:n,cy:r,radius:a,angle:u,sign:-f,cornerRadius:i,cornerIsExternal:l}),A=y.circleTangency,w=y.lineTangency,k=y.theta,C=l?Math.abs(c-u):Math.abs(c-u)-m-k;if(C<0)return s?"M ".concat(b.x,",").concat(b.y,`
|
|||
|
|
a`).concat(i,",").concat(i,",0,0,1,").concat(i*2,`,0
|
|||
|
|
a`).concat(i,",").concat(i,",0,0,1,").concat(-i*2,`,0
|
|||
|
|
`):EG({cx:n,cy:r,innerRadius:o,outerRadius:a,startAngle:c,endAngle:u});var E="M ".concat(b.x,",").concat(b.y,`
|
|||
|
|
A`).concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(v.x,",").concat(v.y,`
|
|||
|
|
A`).concat(a,",").concat(a,",0,").concat(+(C>180),",").concat(+(f<0),",").concat(A.x,",").concat(A.y,`
|
|||
|
|
A`).concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(w.x,",").concat(w.y,`
|
|||
|
|
`);if(o>0){var S=R0({cx:n,cy:r,radius:o,angle:c,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),O=S.circleTangency,T=S.lineTangency,P=S.theta,N=R0({cx:n,cy:r,radius:o,angle:u,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),L=N.circleTangency,I=N.lineTangency,M=N.theta,B=l?Math.abs(c-u):Math.abs(c-u)-P-M;if(B<0&&i===0)return"".concat(E,"L").concat(n,",").concat(r,"Z");E+="L".concat(I.x,",").concat(I.y,`
|
|||
|
|
A`).concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(L.x,",").concat(L.y,`
|
|||
|
|
A`).concat(o,",").concat(o,",0,").concat(+(B>180),",").concat(+(f>0),",").concat(O.x,",").concat(O.y,`
|
|||
|
|
A`).concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(T.x,",").concat(T.y,"Z")}else E+="L".concat(n,",").concat(r,"Z");return E},$kt={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},kG=function(t){var n=LL(LL({},$kt),t),r=n.cx,o=n.cy,a=n.innerRadius,i=n.outerRadius,s=n.cornerRadius,l=n.forceCornerRadius,c=n.cornerIsExternal,u=n.startAngle,f=n.endAngle,h=n.className;if(i<a||u===f)return null;var v=Tt("recharts-sector",h),b=i-a,m=pu(s,b,0,!0),y;return m>0&&Math.abs(u-f)<360?y=Bkt({cx:r,cy:o,innerRadius:a,outerRadius:i,cornerRadius:Math.min(m,b/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:u,endAngle:f}):y=EG({cx:r,cy:o,innerRadius:a,outerRadius:i,startAngle:u,endAngle:f}),W.createElement("path",yC({},It(n,!0),{className:v,d:y,role:"img"}))};function Rg(e){"@babel/helpers - typeof";return Rg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rg(e)}function xC(){return xC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xC.apply(this,arguments)}function DL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function IL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DL(Object(n),!0).forEach(function(r){zkt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zkt(e,t,n){return t=_kt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _kt(e){var t=Hkt(e,"string");return Rg(t)=="symbol"?t:String(t)}function Hkt(e,t){if(Rg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var FL={curveBasisClosed:wxt,curveBasisOpen:Cxt,curveBasis:Axt,curveBumpX:sxt,curveBumpY:lxt,curveLinearClosed:Sxt,curveLinear:Lx,curveMonotoneX:Ext,curveMonotoneY:kxt,curveNatural:Oxt,curveStep:Txt,curveStepAfter:Nxt,curveStepBefore:jxt},M0=function(t){return t.x===+t.x&&t.y===+t.y},nh=function(t){return t.x},rh=function(t){return t.y},Ukt=function(t,n){if(Pt(t))return t;var r="curve".concat(Rx(t));return(r==="curveMonotone"||r==="curveBump")&&n?FL["".concat(r).concat(n==="vertical"?"Y":"X")]:FL[r]||Lx},Wkt=function(t){var n=t.type,r=n===void 0?"linear":n,o=t.points,a=o===void 0?[]:o,i=t.baseLine,s=t.layout,l=t.connectNulls,c=l===void 0?!1:l,u=Ukt(r,s),f=c?a.filter(function(m){return M0(m)}):a,h;if(Array.isArray(i)){var v=c?i.filter(function(m){return M0(m)}):i,b=f.map(function(m,y){return IL(IL({},m),{},{base:v[y]})});return s==="vertical"?h=E0().y(rh).x1(nh).x0(function(m){return m.base.x}):h=E0().x(nh).y1(rh).y0(function(m){return m.base.y}),h.defined(M0).curve(u),h(b)}return s==="vertical"&&Me(i)?h=E0().y(rh).x1(nh).x0(i):Me(i)?h=E0().x(nh).y1(rh).y0(i):h=PV().x(nh).y(rh),h.defined(M0).curve(u),h(f)},jh=function(t){var n=t.className,r=t.points,o=t.path,a=t.pathRef;if((!r||!r.length)&&!o)return null;var i=r&&r.length?Wkt(t):o;return W.createElement("path",xC({},It(t,!1),Kv(t),{className:Tt("recharts-curve",n),d:i,ref:a}))},Vkt=Object.getOwnPropertyNames,qkt=Object.getOwnPropertySymbols,Gkt=Object.prototype.hasOwnProperty;function BL(e,t){return function(r,o,a){return e(r,o,a)&&t(r,o,a)}}function L0(e){return function(n,r,o){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,o);var a=o.cache,i=a.get(n),s=a.get(r);if(i&&s)return i===r&&s===n;a.set(n,r),a.set(r,n);var l=e(n,r,o);return a
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yOt(e,t){if(e){if(typeof e=="string")return GL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GL(e,t)}}function GL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xOt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function AOt(e){if(Array.isArray(e))return e}function wOt(){var e={},t=function(){return null},n=!1,r=function o(a){if(!n){if(Array.isArray(a)){if(!a.length)return;var i=a,s=vOt(i),l=s[0],c=s.slice(1);if(typeof l=="number"){qL(o.bind(null,c),l);return}o(l),qL(o.bind(null,c));return}AC(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){n=!0},start:function(a){n=!1,r(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Mg(e){"@babel/helpers - typeof";return Mg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mg(e)}function KL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function XL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KL(Object(n),!0).forEach(function(r){jG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jG(e,t,n){return t=COt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function COt(e){var t=SOt(e,"string");return Mg(t)==="symbol"?t:String(t)}function SOt(e,t){if(Mg(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mg(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EOt=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,o){return r.filter(function(a){return o.includes(a)})})},kOt=function(t){return t},OOt=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Nh=function(t,n){return Object.keys(n).reduce(function(r,o){return XL(XL({},r),{},jG({},o,t(o,n[o])))},{})},YL=function(t,n,r){return t.map(function(o){return"".concat(OOt(o)," ").concat(n,"ms ").concat(r)}).join(",")};function TOt(e,t){return POt(e)||NOt(e,t)||NG(e,t)||jOt()}function jOt(){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 NOt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function POt(e){if(Array.isArray(e))return e}function ROt(e){return DOt(e)||LOt(e)||NG(e)||MOt()}function MOt(){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 NG(e,t){if(e){if(typeof e=="string")return wC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wC(e,t)}}function LOt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DOt(e){if(Array.isArray(e))return wC(e)}function wC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wb=1e-4,PG=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},RG=function(t,n){return t.map(function(r,o){return r*Math.pow(n,o)}).reduce(function(r,o){return r+o})},JL=function(t,n){return function(r){var o=PG(t,n);return RG(o,r)}},IOt=function(t,n){return function(r){var o=PG(t,n),a=[].concat(ROt(o.map(function(i,s){return i*s}).slice(1)),[0]);return RG(a,r)}},QL=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],a=n[1],i=n[2],s=n[3];if(n.length===1)switch(n[0]){case"linear":o=0,a=0,i=1,s=1;break;case"ease":o=.25,a=.1,i=.25,s=1;break;case"ease-in":o=.42,a=0,i=1,s=1;break;case"ease-out":o=.42,a=0,i=.58,s=1;break;case"ease-in-out":o=0,a=0,i=.58,s=1;break;default:{var l=n[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var c=l[1].split(")")[0].split(",").map(function(y){return parseFloat(y)}),u=TOt(c,4);o=u[0],a=u[1],i=u[2],s=u[3]}}}var f=JL(o,i),h=JL(a,s),v=IOt(o,i),b=function(A){return A>1?1:A<0?0:A},m=function(A){for(var w=A>1?1:A,k=w,C=0;C<8;++C){var E=f(k)-w,S=v(k);if(Math.abs(E-w)<wb||S<wb)return h(k);k=b(k-E/S)}return h(k)};return m.isStepper=!1,m},FOt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,o=t.damping,a=o===void 0?8:o,i=t.dt,s=i===void 0?17:i,l=function(u,f,h){var v=-(u-f)*r,b=h*a,m=h+(v-b)*s/1e3,y=h*s/1e3+u;return Math.abs(y-f)<wb&&Math.abs(m)<wb?[f,0]:[y,m]};return l.isStepper=!0,l.dt=s,l},BOt=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0];if(typeof o=="string")switch(o){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return QL(o);case"spring":return FOt();default:if(o.split("(")[0]==="cubic-bezier")return QL(o)}return typeof o=="function"?o:null};function Lg(e){"@babel/helpers - typeof";return Lg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lg(e)}function ZL(e){return _Ot(e)||zOt(e)||MG(e)||$Ot()}function $Ot(){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 zOt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _Ot(e){if(Array.isArray(e))return SC(e)}function eD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Lr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eD(Object(n),!0).forEach(function(r){CC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CC(e,t,n){return t=HOt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HOt(e){var t=UOt(e,"string");return Lg(t)==="symbol"?t:String(t)}function UOt(e,t){if(Lg(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lg(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WOt(e,t){return GOt(e)||qOt(e,t)||MG(e,t)||VOt()}function VOt(){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 MG(e,t){if(e){if(typeof e=="string")return SC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SC(e,t)}}function SC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qOt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function GOt(e){if(Array.isArray(e))return e}var Cb=function(t,n,r){return t+(n-t)*r},EC=function(t){var n=t.from,r=t.to;return n!==r},KOt=function e(t,n,r){var o=Nh(function(a,i){if(EC(i)){var s=t(i.from,i.to,i.velocity),l=WOt(s,2),c=l[0],u=l[1];return Lr(Lr({},i),{},{from:c,velocity:u})}return i},n);return r<1?Nh(function(a,i){return EC(i)?Lr(Lr({},i),{},{velocity:Cb(i.velocity,o[a].velocity,r),from:Cb(i.from,o[a].from,r)}):i},n):e(t,o,r-1)};const XOt=function(e,t,n,r,o){var a=EOt(e,t),i=a.reduce(function(y,A){return Lr(Lr({},y),{},CC({},A,[e[A],t[A]]))},{}),s=a.reduce(function(y,A){return Lr(Lr({},y),{},CC({},A,{from:e[A],velocity:0,to:t[A]}))},{}),l=-1,c,u,f=function(){return null},h=function(){return Nh(function(A,w){return w.from},s)},v=function(){return!Object.values(s).filter(EC).length},b=function(A){c||(c=A);var w=A-c,k=w/n.dt;s=KOt(n,s,k),o(Lr(Lr(Lr({},e),t),h())),c=A,v()||(l=requestAnimationFrame(f))},m=function(A){u||(u=A);var w=(A-u)/r,k=Nh(function(E,S){return Cb.apply(void 0,ZL(S).concat([n(w)]))},i);if(o(Lr(Lr(Lr({},e),t),k)),w<1)l=requestAnimationFrame(f);else{var C=Nh(function(E,S){return Cb.apply(void 0,ZL(S).concat([n(1)]))},i);o(Lr(Lr(Lr({},e),t),C))}};return f=n.isStepper?b:m,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}};function bf(e){"@babel/helpers - typeof";return bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bf(e)}var YOt=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function JOt(e,t){if(e==null)return{};var n=QOt(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QOt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function z5(e){return nTt(e)||tTt(e)||eTt(e)||ZOt()}function ZOt(){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 eTt(e,t){if(e){if(typeof e=="string")return kC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kC(e,t)}}function tTt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nTt(e){if(Array.isArray(e))return kC(e)}function kC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Xa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tD(Object(n),!0).forEach(function(r){fh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fh(e,t,n){return t=LG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rTt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,LG(r.key),r)}}function oTt(e,t,n){return t&&nD(e.prototype,t),n&&nD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function LG(e){var t=aTt(e,"string");return bf(t)==="symbol"?t:String(t)}function aTt(e,t){if(bf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iTt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&OC(e,t)}function OC(e,t){return OC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},OC(e,t)}function sTt(e){var t=lTt();return function(){var r=Sb(e),o;if(t){var a=Sb(this).constructor;o=Reflect.construct(r,arguments,a)}else o=r.apply(this,arguments);return TC(this,o)}}function TC(e,t){if(t&&(bf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jC(e)}function jC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lTt(){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(n){return n.__proto__||Object.getPrototypeOf(n)},Sb(e)}var Us=function(e){iTt(n,e);var t=sTt(n);function n(r,o){var a;rTt(this,n),a=t.call(this,r,o);var i=a.props,s=i.isActive,l=i.attributeName,c=i.from,u=i.to,f=i.steps,h=i.children,v=i.duration;if(a.handleStyleChange=a.handleStyleChange.bind(jC(a)),a.changeStyle=a.changeStyle.bind(jC(a)),!s||v<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:u}),TC(a);if(f&&f.length)a.state={style:f[0].style};else if(c){if(typeof h=="function")return a.state={style:c},TC(a);a.state={style:l?fh({},l,c):c}}else a.state={style:{}};return a}return oTt(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.isActive,i=o.canBegin;this.mounted=!0,!(!a||!i)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(o){var a=this.props,i=a.isActiv
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dTt(e,t){if(e){if(typeof e=="string")return rD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rD(e,t)}}function rD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fTt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function pTt(e){if(Array.isArray(e))return e}function oD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function aD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oD(Object(n),!0).forEach(function(r){hTt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hTt(e,t,n){return t=gTt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gTt(e){var t=mTt(e,"string");return Dg(t)=="symbol"?t:String(t)}function mTt(e,t){if(Dg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Dg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iD=function(t,n,r,o,a){var i=Math.min(Math.abs(r)/2,Math.abs(o)/2),s=o>=0?1:-1,l=r>=0?1:-1,c=o>=0&&r>=0||o<0&&r<0?1:0,u;if(i>0&&a instanceof Array){for(var f=[0,0,0,0],h=0,v=4;h<v;h++)f[h]=a[h]>i?i:a[h];u="M".concat(t,",").concat(n+s*f[0]),f[0]>0&&(u+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(c,",").concat(t+l*f[0],",").concat(n)),u+="L ".concat(t+r-l*f[1],",").concat(n),f[1]>0&&(u+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(c,`,
|
|||
|
|
`).concat(t+r,",").concat(n+s*f[1])),u+="L ".concat(t+r,",").concat(n+o-s*f[2]),f[2]>0&&(u+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(c,`,
|
|||
|
|
`).concat(t+r-l*f[2],",").concat(n+o)),u+="L ".concat(t+l*f[3],",").concat(n+o),f[3]>0&&(u+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(c,`,
|
|||
|
|
`).concat(t,",").concat(n+o-s*f[3])),u+="Z"}else if(i>0&&a===+a&&a>0){var b=Math.min(i,a);u="M ".concat(t,",").concat(n+s*b,`
|
|||
|
|
A `).concat(b,",").concat(b,",0,0,").concat(c,",").concat(t+l*b,",").concat(n,`
|
|||
|
|
L `).concat(t+r-l*b,",").concat(n,`
|
|||
|
|
A `).concat(b,",").concat(b,",0,0,").concat(c,",").concat(t+r,",").concat(n+s*b,`
|
|||
|
|
L `).concat(t+r,",").concat(n+o-s*b,`
|
|||
|
|
A `).concat(b,",").concat(b,",0,0,").concat(c,",").concat(t+r-l*b,",").concat(n+o,`
|
|||
|
|
L `).concat(t+l*b,",").concat(n+o,`
|
|||
|
|
A `).concat(b,",").concat(b,",0,0,").concat(c,",").concat(t,",").concat(n+o-s*b," Z")}else u="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(o," h ").concat(-r," Z");return u},vTt=function(t,n){if(!t||!n)return!1;var r=t.x,o=t.y,a=n.x,i=n.y,s=n.width,l=n.height;if(Math.abs(s)>0&&Math.abs(l)>0){var c=Math.min(a,a+s),u=Math.max(a,a+s),f=Math.min(i,i+l),h=Math.max(i,i+l);return r>=c&&r<=u&&o>=f&&o<=h}return!1},bTt={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},J8=function(t){var n=aD(aD({},bTt),t),r=p.useRef(),o=p.useState(-1),a=cTt(o,2),i=a[0],s=a[1];p.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var C=r.current.getTotalLength();C&&s(C)}catch{}},[]);var l=n.x,c=n.y,u=n.width,f=n.height,h=n.radius,v=n.className,b=n.animationEasing,m=n.animationDuration,y=n.animationBegin,A=n.isAnimationActive,w=n.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||f!==+f||u===0||f===0)return null;var k=Tt("recharts-rectangle",v);return w?W.createElement(Us,{canBegin:i>0,from:{width:u,height:f,x:l,y:c},to:{width:u,height:f,x:l,y:c},duration:m,animationEasing:b,isActive:w},function(C){var E=C.width,S=C.height,O=C.x,T=C.y;return W.createElement(Us,{canBegin:i>0,from:"0px ".concat(i===-1?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:m,isActive:A,easing:b},W.createElement("path",Eb({},It(n,!0),{className:k,d:iD(O,T,E,S,h),ref:r})))}):W.createElement("path",Eb({},It(n,!0),{className:k,d:iD(l,c,u,f,h)}))};function NC(){return NC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NC.apply(this,arguments)}var Q8=function(t){var n=t.cx,r=t.cy,o=t.r,a=t.className,i=Tt("recharts-dot",a);return n===+n&&r===+r&&o===+o?W.createElement("circle",NC({},It(t,!1),Kv(t),{className:i,cx:n,cy:r,r:o})):null};function Ig(e){"@babel/helpers - typeof";return Ig=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ig(e)}var yTt=["x","y","top","left","width","height","className"];function PC(){return PC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PC.apply(this,arguments)}function sD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xTt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sD(Object(n),!0).forEach(function(r){ATt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ATt(e,t,n){return t=wTt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wTt(e){var t=CTt(e,"string");return Ig(t)=="symbol"?t:String(t)}function CTt(e,t){if(Ig(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ig(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function STt(e,t){if(e==null)return{};var n=ETt(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ETt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var kTt=function(t,n,r,o,a,i){return"M".concat(t,",").concat(a,"v").concat(o,"M").concat(i,",").concat(n,"h").concat(r)
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YTt(e,t){if(e){if(typeof e=="string")return lD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lD(e,t)}}function lD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JTt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function QTt(e){if(Array.isArray(e))return e}function cD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function uD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cD(Object(n),!0).forEach(function(r){ZTt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZTt(e,t,n){return t=ejt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ejt(e){var t=tjt(e,"string");return Fg(t)=="symbol"?t:String(t)}function tjt(e,t){if(Fg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fg(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dD=function(t,n,r,o,a){var i=r-o,s;return s="M ".concat(t,",").concat(n),s+="L ".concat(t+r,",").concat(n),s+="L ".concat(t+r-i/2,",").concat(n+a),s+="L ".concat(t+r-i/2-o,",").concat(n+a),s+="L ".concat(t,",").concat(n," Z"),s},njt={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},rjt=function(t){var n=uD(uD({},njt),t),r=p.useRef(),o=p.useState(-1),a=KTt(o,2),i=a[0],s=a[1];p.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var k=r.current.getTotalLength();k&&s(k)}catch{}},[]);var l=n.x,c=n.y,u=n.upperWidth,f=n.lowerWidth,h=n.height,v=n.className,b=n.animationEasing,m=n.animationDuration,y=n.animationBegin,A=n.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||f!==+f||h!==+h||u===0&&f===0||h===0)return null;var w=Tt("recharts-trapezoid",v);return A?W.createElement(Us,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:c},to:{upperWidth:u,lowerWidth:f,height:h,x:l,y:c},duration:m,animationEasing:b,isActive:A},function(k){var C=k.upperWidth,E=k.lowerWidth,S=k.height,O=k.x,T=k.y;return W.createElement(Us,{canBegin:i>0,from:"0px ".concat(i===-1?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:m,easing:b},W.createElement("path",kb({},It(n,!0),{className:w,d:dD(O,T,C,E,S),ref:r})))}):W.createElement("g",null,W.createElement("path",kb({},It(n,!0),{className:w,d:dD(l,c,u,f,h)})))},ojt=["option","shapeType","propTransformer","activeClassName","isActive"];function Bg(e){"@babel/helpers - typeof";return Bg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bg(e)}function ajt(e,t){if(e==null)return{};var n=ijt(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ijt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CPt(e,t){if(e){if(typeof e=="string")return ND(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ND(e,t)}}function ND(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function SPt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function EPt(e){if(Array.isArray(e))return e}function DC(){return DC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DC.apply(this,arguments)}var kPt=function(t,n){var r;return W.isValidElement(t)?r=W.cloneElement(t,n):Pt(t)?r=t(n):r=W.createElement("line",DC({},n,{className:"recharts-reference-line-line"})),r},OPt=function(t,n,r,o,a,i,s,l,c){var u=a.x,f=a.y,h=a.width,v=a.height;if(r){var b=c.y,m=t.y.apply(b,{position:i});if(Di(c,"discard")&&!t.y.isInRange(m))return null;var y=[{x:u+h,y:m},{x:u,y:m}];return l==="left"?y.reverse():y}if(n){var A=c.x,w=t.x.apply(A,{position:i});if(Di(c,"discard")&&!t.x.isInRange(w))return null;var k=[{x:w,y:f+v},{x:w,y:f}];return s==="top"?k.reverse():k}if(o){var C=c.segment,E=C.map(function(S){return t.apply(S,{position:i})});return Di(c,"discard")&&nNt(E,function(S){return!t.isInRange(S)})?null:E}return null};function o9(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxisId,a=e.yAxisId,i=e.shape,s=e.className,l=e.alwaysShow,c=pPt(),u=QG(o),f=ZG(a),h=mPt();if(!c||!h)return null;Os(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=Z8({x:u.scale,y:f.scale}),b=mr(t),m=mr(n),y=r&&r.length===2,A=OPt(v,b,m,y,h,e.position,u.orientation,f.orientation,e);if(!A)return null;var w=APt(A,2),k=w[0],C=k.x,E=k.y,S=w[1],O=S.x,T=S.y,P=Di(e,"hidden")?"url(#".concat(c,")"):void 0,N=jD(jD({clipPath:P},It(e,!0)),{},{x1:C,y1:E,x2:O,y2:T});return W.createElement(Dn,{className:Tt("recharts-reference-line",s)},kPt(i,N),Gr.renderCallByParent(e,WNt({x1:C,y1:E,x2:O,y2:T})))}o9.displayName="ReferenceLine";o9.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function Wg(e){"@babel/helpers - typeof";return Wg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wg(e)}function IC(){return IC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IC.apply(this,arguments)}function PD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function RD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PD(Object(n),!0).forEach(function(r){TPt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TPt(e,t,n){return t=jPt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jPt(e){var t=NPt(e,"string");return Wg(t)=="symbol"?t:String(t)}function NPt(e,t){if(Wg(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ERt(e,t){if(e){if(typeof e=="string")return HC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HC(e,t)}}function kRt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ORt(e){if(Array.isArray(e))return HC(e)}function HC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var UC=function(t,n,r,o,a){var i=si(t,o9),s=si(t,Xm),l=[].concat(HD(i),HD(s)),c=si(t,Ym),u="".concat(o,"Id"),f=o[0],h=n;if(l.length&&(h=l.reduce(function(m,y){if(y.props[u]===r&&Di(y.props,"extendDomain")&&Me(y.props[f])){var A=y.props[f];return[Math.min(m[0],A),Math.max(m[1],A)]}return m},h)),c.length){var v="".concat(f,"1"),b="".concat(f,"2");h=c.reduce(function(m,y){if(y.props[u]===r&&Di(y.props,"extendDomain")&&Me(y.props[v])&&Me(y.props[b])){var A=y.props[v],w=y.props[b];return[Math.min(m[0],A,w),Math.max(m[1],A,w)]}return m},h)}return a&&a.length&&(h=a.reduce(function(m,y){return Me(y)?[Math.min(m[0],y),Math.max(m[1],y)]:m},h)),h},lK={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function a(l,c,u,f,h){if(typeof u!="function")throw new TypeError("The listener must be a function");var v=new o(u,f||l,h),b=n?n+c:c;return l._events[b]?l._events[b].fn?l._events[b]=[l._events[b],v]:l._events[b].push(v):(l._events[b]=v,l._eventsCount++),l}function i(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,f;if(this._eventsCount===0)return c;for(f in u=this._events)t.call(u,f)&&c.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=n?n+c:c,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,v=f.length,b=new Array(v);h<v;h++)b[h]=f[h].fn;return b},s.prototype.listenerCount=function(c){var u=n?n+c:c,f=this._events[u];return f?f.fn?1:f.length:0},s.prototype.emit=function(c,u,f,h,v,b){var m=n?n+c:c;if(!this._events[m])return!1;var y=this._events[m],A=arguments.length,w,k;if(y.fn){switch(y.once&&this.removeListener(c,y.fn,void 0,!0),A){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,u),!0;case 3:return y.fn.call(y.context,u,f),!0;case 4:return y.fn.call(y.context,u,f,h),!0;case 5:return y.fn.call(y.context,u,f,h,v),!0;case 6:return y.fn.call(y.context,u,f,h,v,b),!0}for(k=1,w=new Array(A-1);k<A;k++)w[k-1]=arguments[k];y.fn.apply(y.context,w)}else{var C=y.length,E;for(k=0;k<C;k++)switch(y[k].once&&this.removeListener(c,y[k].fn,void 0,!0),A){case 1:y[k].fn.call(y[k].context);break;case 2:y[k].fn.call(y[k].context,u);break;case 3:y[k].fn.call(y[k].context,u,f);break;case 4:y[k].fn.call(y[k].context,u,f,h);break;default:if(!w)for(E=1,w=new Array(A-1);E<A;E++)w[E-1]=arguments[E];y[k].fn.apply(y[k].context,w)}}return!0},s.prototype.on=function(c,u,f){return a(this,c,u,f,!1)},s.prototype.once=function(c,u,f){return a(this,c,u,f,!0)},s.prototype.removeListener=function(c,u,f,h){var v=n?n+c:c;if(!this._events[v])return this;if(!u)return i(this,v),this;var b=this._events[v];if(b.fn)b.fn===u&&(!h||b.once)&&(!f||b.context===f)&&i(this,v);else{for(var m=0,y=[],A=b.length;m<A;m++)(b[m].fn!==u||h&&!b[m].once||f&&b[m].context!==f)&&y.push(b[m]);y.length?this._events[v]=y.length===1?y[0]:y:i(this,v)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&i(this,u)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(lK);var TRt=lK.exports;const jRt=pn(TRt);var
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WRt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function VRt(e){if(Array.isArray(e))return e}function qD(e,t){if(e==null)return{};var n=qRt(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qRt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function GRt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pK(r.key),r)}}function KRt(e,t,n){return t&&GD(e.prototype,t),n&&GD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function XRt(e,t,n){return t=Ib(t),YRt(e,dK()?Reflect.construct(t,n||[],Ib(e).constructor):t.apply(e,n))}function YRt(e,t){if(t&&(Sf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qt(e)}function dK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dK=function(){return!!e})()}function Ib(e){return Ib=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ib(e)}function qt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JRt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WC(e,t)}function WC(e,t){return WC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},WC(e,t)}function Ef(e){return eMt(e)||ZRt(e)||fK(e)||QRt()}function QRt(){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 fK(e,t){if(e){if(typeof e=="string")return VC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VC(e,t)}}function ZRt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eMt(e){if(Array.isArray(e))return VC(e)}function VC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function KD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KD(Object(n),!0).forEach(function(r){dt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dt(e,t,n){return t=pK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pK(e){var t=tMt(e,"string");return Sf(t)=="symbol"?t:String(t)}function tMt(e,t){if(Sf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Sf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nMt={xAxis:["bottom","top"],yAxis:["left","right"]},rMt={width:"100%",height:"100%"},hK={x:0,y:0};function I0(e){return e}var oMt=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},aMt=function(t,n,r,o){var a=n.find(function(u){return u&&u.index===r});if(a){if(t==="horizontal")return{x:a.coordinate,y:o.y};if(t==="vertical")return{x:o.x,y:a.coordinate};if(t==="centric"){var i=a.coordinate,s=o.radius;return Se(Se(Se({},o),Fr(o.cx,o.cy,s,i)),{},{angle:i,radius:s})}var l=a.coordinate,c=o.angle;return Se(Se(Se({},o),Fr(o.cx,o.cy,l,c)),{},{angle:c,radius:l})}return hK},e2=function(t,n){var r=n.graphicalItems,o=n.dataStartIndex,a=n.dataEndIndex,i=(r??[]).reduce(function(s,l){var c=l.props.data;return c&&c.length?[].concat(Ef(s),Ef(c)):s},[]);return i.length>0?i:t&&t.length&&Me(o)&&Me(a)?t.slice(o,a+1):[]};function gK(e){return e==="number"?[0,"auto"]:void 0}var qC=function(t,n,r,o){var a=t.graphicalItems,i=t.tooltipAxis,s=e2(n,t);return r<0||!a||!a.length||r>=s.length?null:a.reduce(function(l,c){var u,f=(u=c.props.data)!==null&&u!==void 0?u:n;f&&t.dataStartIndex+t.dataEndIndex!==0&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(i.dataKey&&!i.allowDuplicatedCategory){var v=f===void 0?s:f;h=Gv(v,i.dataKey,o)}else h=f&&f[r]||s[r];return h?[].concat(Ef(l),[CG(c,h)]):l},[])},XD=function(t,n,r,o){var a=o||{x:t.chartX,y:t.chartY},i=oMt(a,r),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,u=EEt(i,s,c,l);if(u>=0&&c){var f=c[u]&&c[u].value,h=qC(t,n,u,f),v=aMt(r,s,u,a);return{activeTooltipIndex:u,activeLabel:f,activePayload:h,activeCoordinate:v}}return null},iMt=function(t,n){var r=n.axes,o=n.graphicalItems,a=n.axisType,i=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,u=t.layout,f=t.children,h=t.stackOffset,v=xG(u,a);return r.reduce(function(b,m){var y,A=m.props,w=A.type,k=A.dataKey,C=A.allowDataOverflow,E=A.allowDuplicatedCategory,S=A.scale,O=A.ticks,T=A.includeHidden,P=m.props[i];if(b[P])return b;var N=e2(t.data,{graphicalItems:o.filter(function(K){return K.props[i]===P}),dataStartIndex:l,dataEndIndex:c}),L=N.length,I,M,B;LRt(m.props.domain,C,w)&&(I=mC(m.props.domain,null,C),v&&(w==="number"||S!=="auto")&&(B=Th(N,k,"category")));var R=gK(w);if(!I||I.length===0){var D,$=(D=m.props.domain)!==null&&D!==void 0?D:R;if(k){if(I=Th(N,k,w),w==="category"&&v){var z=Xbt(I);E&&z?(M=I,I=Tb(0,L)):E||(I=EL($,I,m).reduce(function
|
|||
|
|
// 是否显示
|
|||
|
|
display: `,`;
|
|||
|
|
|
|||
|
|
flex: `,`;
|
|||
|
|
|
|||
|
|
flex-direction: `,`;
|
|||
|
|
flex-wrap: `,`;
|
|||
|
|
|
|||
|
|
justify-content: `,`;
|
|||
|
|
align-items: `,`;
|
|||
|
|
|
|||
|
|
width: `,`;
|
|||
|
|
height: `,`;
|
|||
|
|
|
|||
|
|
padding: `,`;
|
|||
|
|
|
|||
|
|
padding-inline: `,`;
|
|||
|
|
padding-block: `,`;
|
|||
|
|
|
|||
|
|
gap: `,`;
|
|||
|
|
`])),n===!1?"none":"flex",r,LK(a,i),k,E,s,S,hd(u),hd(h),hd(v),hd(b),hd(o)),A),children:w}))});const UMt=HMt;var WMt=["className","prefixCls","children"];function rI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function oI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rI(Object(n),!0).forEach(function(r){me(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var kf=p.forwardRef(function(e,t){var n=e.className,r=e.prefixCls,o=e.children,a=lr(e,WMt);return d.jsx(UMt,oI(oI({ref:t},a),{},{internalClassName:"".concat(MMt(r),"-flexbox"),className:n,children:o}))}),VMt=function(){function e(){ta(this,e),me(this,"_cacheList",[$Mt])}return ea(e,[{key:"add",value:function(n){var r=this.getCache(n.key);return r||(this._cacheList.push(n),n)}},{key:"delete",value:function(n){this._cacheList=this._cacheList.filter(function(r){return r.key!==n.key})}},{key:"hasCache",value:function(n){return this._cacheList.some(function(r){return r.key===n.key})}},{key:"getCache",value:function(n){return this._cacheList.find(function(r){return r.key===n})}},{key:"getCacheList",value:function(){return this._cacheList}}]),e}(),aI=typeof document<"u",DK=function(t,n){return"".concat(t,"-").concat(n)},qMt=function(t,n,r,o){var a=o.hashPriority||"high";p7(t,n,r);var i=".".concat(DK(t.key,n.name)),s=a==="low"?":where(".concat(i,")"):i;if(t.inserted[n.name]===void 0){var l="",c=n;do{var u=t.insert(n===c?s:"",c,t.sheet,!0);!aI&&u!==void 0&&(l+=u),c=c.next}while(c!==void 0);if(!aI&&l.length!==0)return l}},l9=function(t){return an(t)==="object"&&"styles"in t&&"name"in t&&"toString"in t},GMt=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!==null){var a=void 0;switch(an(o)){case"boolean":break;case"object":{if(Array.isArray(o))a=e(o);else{a="";for(var i in o)o[i]&&i&&(a&&(a+=" "),a+=i)}break}default:a=o}a&&(n&&(n+=" "),n+=a)}}return n},KMt=function(t,n,r){var o=[],a=Wy(t,o,r);return o.length<2?r:a+n(o)},XMt=function(t,n){return function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=Cs(o,t.registered,void 0);return qMt(t,i,!1,n),DK(t.key,i.name)}},YMt=function(t,n){return function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=o.map(function(s){return l9(s)?n(s):s});return KMt(t.registered,n,GMt(i))}},IK=function(t,n){var r=XMt(t,{hashPriority:n.hashPriority||"high",label:n.label}),o=YMt(t,r);return{css:r,cx:o}},Jm=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Cs(n)},JMt="acss",QMt=function(t){return p.createContext(t)},ZMt=function(t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return p.memo(function(a){var i=t();return d.jsx(uH,{styles:Cs(r,void 0,de(de({},a),{},{theme:i}))})})}},eLt=function(t){return function(n){var r=t(n);return function(o){var a=r(o),i=a.styles;return i}}};function FK(e){if(Array.isArray(e))return e}function tLt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function BK(){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 Ge(e,t){return FK(e)||tLt(e,t)||FS(e,t)||BK()}function Xg(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function So(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function KC(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var iI="data-rc-order",sI="data-rc-priority",nLt="rc-util-key",XC=new Map;function $K(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):nLt}function i2(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function rLt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function c9(e){return Array.from((XC.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function zK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!So())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,i=rLt(r),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(iI,i),s&&a&&l.setAttribute(sI,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=i2(t),u=c.firstChild;if(r){if(s){var f=(t.styles||c9(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(iI)))return!1;var v=Number(h.getAttribute(sI)||0);return a>=v});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function _K(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i2(t);return(t.styles||c9(n)).find(function(r){return r.getAttribute($K(t))===e})}function Yg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=_K(e,t);if(n){var r=i2(t);r.removeChild(n)}}function oLt(e,t){var n=XC.get(e);if(!n||!KC(document,n)){var r=zK("",t),o=r.parentNode;XC.set(e,o),e.removeChild(r)}}function Ns(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=i2(n),o=c9(r),a=de(de({},n),{},{styles:o});oLt(r,a);var i=_K(t,a);if(i){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;i.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var u=zK(e,a);return u.setAttribute($K(a),t),u}function s2(e,t,n){var r=p.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var YC={},aLt=function(t){};function iLt(e,t){}function sLt(e,t){}function lLt(){YC={}}function HK(e,t,n){!t&&!YC[n]&&(e(!1,n),YC[n]=!0)}function Xo(e,t){HK(iLt,e,t)}function cLt(e,t){HK(sLt,e,t)}Xo.preMessage=aLt;Xo.resetWarned=lLt;Xo.noteOnce=cLt;function Jg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(a);if(Xo(!l,"Warning: There may be circular references"),l)return!1;if(a===i)return!0;if(n&&s>1)return!1;r.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],c))return!1;return!0}if(a&&i&&an(a)==="object"&&an(i)==="object"){var f=Object.keys(a);return f.length!==Object.keys(i).length?!1:f.every(function(h){return o(a[h],i[h],c)})}return!1}return o(e,t)}var uLt="%";function JC(e){return e.join(uLt)}var dLt=function(){function e(t){ta(this,e),me(this,"instanceId",void 0),me(this,"cache",new Map),this.instanceId=t}return ea(e,[{key:"get",value:f
|
|||
|
|
`);else if(w._keyframe)b(w);else{var k=f.reduce(function(C,E){var S;return(E==null||(S=E.visit)===null||S===void 0?void 0:S.call(E,C))||C},w);Object.keys(k).forEach(function(C){var E=k[C];if(an(E)==="object"&&E&&(C!=="animationName"||!E._keyframe)&&!$Lt(E)){var S=!1,O=C.trim(),T=!1;(o||a)&&s?O.startsWith("@")?S=!0:O=zLt(C,s,c):o&&!s&&(O==="&"||O==="")&&(O="",T=!0);var P=e(E,n,{root:T,injectHash:S,parentSelectors:[].concat(ot(i),[O])}),N=Ge(P,2),L=N[0],I=N[1];v=de(de({},v),I),h+="".concat(O).concat(L)}else{let R=function(D,$){var z=D.replace(/[A-Z]/g,function(V){return"-".concat(V.toLowerCase())}),_=$;!LLt[D]&&typeof _=="number"&&_!==0&&(_="".concat(_,"px")),D==="animationName"&&$!==null&&$!==void 0&&$._keyframe&&(b($),_=$.getName(s)),h+="".concat(z,":").concat(_,";")};var M,B=(M=E==null?void 0:E.value)!==null&&M!==void 0?M:E;an(E)==="object"&&E!==null&&E!==void 0&&E[JK]&&Array.isArray(B)?B.forEach(function(D){R(C,D)}):R(C,B)}})}}),o?l&&(h="@layer ".concat(l.name," {").concat(h,"}"),l.dependencies&&(v["@layer ".concat(l.name)]=l.dependencies.map(function(A){return"@layer ".concat(A,", ").concat(l.name,";")}).join(`
|
|||
|
|
`))):h="{".concat(h,"}"),[h,v]};function QK(e,t){return Xg("".concat(e.join("%")).concat(t))}function HLt(){return null}var ZK="style";function ZC(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=p.useContext(Tf),f=u.autoClear;u.mock;var h=u.defaultCache,v=u.hashPriority,b=u.container,m=u.ssrInline,y=u.transformers,A=u.linters,w=u.cache,k=u.layer,C=n._tokenKey,E=[C];k&&E.push("layer"),E.push.apply(E,ot(r));var S=QC,O=d9(ZK,E,function(){var I=E.join("|");if(ILt(I)){var M=FLt(I),B=Ge(M,2),R=B[0],D=B[1];if(R)return[R,C,D,{},s,c]}var $=t(),z=_Lt($,{hashId:o,hashPriority:v,layer:k?a:void 0,path:r.join("-"),transformers:y,linters:A}),_=Ge(z,2),V=_[0],H=_[1],K=pv(V),X=QK(E,K);return[K,C,X,H,s,c]},function(I,M){var B=Ge(I,3),R=B[2];(M||f)&&QC&&Yg(R,{mark:li})},function(I){var M=Ge(I,4),B=M[0];M[1];var R=M[2],D=M[3];if(S&&B!==XK){var $={mark:li,prepend:k?!1:"queue",attachTo:b,priority:c},z=typeof i=="function"?i():i;z&&($.csp={nonce:z});var _=[],V=[];Object.keys(D).forEach(function(K){K.startsWith("@layer")?_.push(K):V.push(K)}),_.forEach(function(K){Ns(pv(D[K]),"_layer-".concat(K),de(de({},$),{},{prepend:!0}))});var H=Ns(B,R,$);H[Pl]=w.instanceId,H.setAttribute(Of,C),V.forEach(function(K){Ns(pv(D[K]),"_effect-".concat(K),$)})}}),T=Ge(O,3),P=T[0],N=T[1],L=T[2];return function(I){var M;if(!m||S||!h)M=p.createElement(HLt,null);else{var B;M=p.createElement("style",Z({},(B={},me(B,Of,N),me(B,li,L),B),{dangerouslySetInnerHTML:{__html:P}}))}return p.createElement(p.Fragment,null,M,I)}}var ULt=function(t,n,r){var o=Ge(t,6),a=o[0],i=o[1],s=o[2],l=o[3],c=o[4],u=o[5],f=r||{},h=f.plain;if(c)return null;var v=a,b={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return v=Bb(a,i,s,b,h),l&&Object.keys(l).forEach(function(m){if(!n[m]){n[m]=!0;var y=pv(l[m]),A=Bb(y,i,"_effect-".concat(m),b,h);m.startsWith("@layer")?v=A+v:v+=A}}),[u,s,v]},eX="cssVar",WLt=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,i=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=p.useContext(Tf),f=u.cache.instanceId,h=u.container,v=s._tokenKey,b=[].concat(ot(t.path),[r,c,v]),m=d9(eX,b,function(){var y=n(),A=qK(y,r,{prefix:o,unitless:a,ignore:i,scope:c}),w=Ge(A,2),k=w[0],C=w[1],E=QK(b,C);return[k,C,E,r]},function(y){var A=Ge(y,3),w=A[2];QC&&Yg(w,{mark:li})},function(y){var A=Ge(y,3),w=A[1],k=A[2];if(w){var C=Ns(w,k,{mark:li,prepend:"queue",attachTo:h,priority:-999});C[Pl]=f,C.setAttribute(Of,r)}});return m},VLt=function(t,n,r){var o=Ge(t,4),a=o[1],i=o[2],s=o[3],l=r||{},c=l.plain;if(!a)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},h=Bb(a,s,i,f,c);return[u,i,h]},ih;ih={},me(ih,ZK,ULt),me(ih,KK,MLt),me(ih,eX,VLt);var Jn=function(){function e(t,n){ta(this,e),me(this,"name",void 0),me(this,"style",void 0),me(this,"_keyframe",!0),this.name=t,this.style=n}return ea(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function gd(e){return e.notSplit=!0,e}gd(["borderTop","borderBottom"]),gd(["borderTop"]),gd(["borderBottom"]),gd(["borderLeft","borderRight"]),gd(["borderLeft"]),gd(["borderRight"]);var qLt=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"],GLt=function(t){return p.memo(function(n){var r=n.children,o=n.prefix,a=n.speedy,i=n.getStyleManager,s=n.container,l=n.nonce,c=n.insertionPoint,u=n.stylisPlugins,f=n.linters,h=lr(n,qLt),v=p.useContext(t),b=o??v.sheet.key,m=s??v.sheet.container,y=a??v.sheet.isSpeedy,A=p.useMemo(function(){var k=!1,C=s9({speedy:y??k,key:b,container:m,nonce:l,insertionPoint:c,stylisPlugins:u});if(typeof global<"u"){var E=global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;E&&(C.cache=E.add(C.cache))}return C},[b,y,m,l,c,u]);p.useEffect(function(){i==null||i(A)},[A]);var w=d.jsx(t.Provider,{value:A,children:r});return Object.keys(h).length||m?d.jsx(pLt,de(de({linters:f,container:m},h),{},{children:w})):w})},KLt=function(t){var n=t.css,r=t.token;return{buttonDefaultHover:n({backgro
|
|||
|
|
Copyright (c) 2018 Jed Watson.
|
|||
|
|
Licensed under the MIT License (MIT), see
|
|||
|
|
http://jedwatson.github.io/classnames
|
|||
|
|
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(a=o(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var s in a)t.call(a,s)&&a[s]&&(i=o(i,s));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(tX);var YLt=tX.exports;const bt=pn(YLt);function eS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return W.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(eS(r)):Dd.isFragment(r)&&r.props?n=n.concat(eS(r.props.children,t)):n.push(r))}),n}function JLt(e){return e instanceof HTMLElement||e instanceof SVGElement}function QLt(e){return JLt(e)?e:e instanceof W.Component?Pc.findDOMNode(e):null}function nX(e,t){typeof e=="function"?e(t):an(e)==="object"&&e&&"current"in e&&(e.current=t)}function f9(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(o){return o});return r.length<=1?r[0]:function(o){t.forEach(function(a){nX(a,o)})}}function rX(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s2(function(){return f9.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(a,i){return a!==o[i]})})}function p9(e){var t,n,r=Dd.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)&&r.$$typeof!==Dd.ForwardRef||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render)&&e.$$typeof!==Dd.ForwardRef)}function l2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l2=function(){return!!e})()}function h9(e){var t=l2();return function(){var r=Fh(e),o;if(t){var a=Fh(this).constructor;o=Reflect.construct(r,arguments,a)}else o=r.apply(this,arguments);return tB(this,o)}}function ZLt(e,t){var n=de({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}var oX=function(t){return+setTimeout(t,16)},aX=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(oX=function(t){return window.requestAnimationFrame(t)},aX=function(t){return window.cancelAnimationFrame(t)});var hI=0,g9=new Map;function iX(e){g9.delete(e)}var mu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;hI+=1;var r=hI;function o(a){if(a===0)iX(r),t();else{var i=oX(function(){o(a-1)});g9.set(r,i)}}return o(n),r};mu.cancel=function(e){var t=g9.get(e);return iX(e),aX(t)};var eDt=p.createContext({});const m9=eDt;function tDt(e){return FK(e)||Boe(e)||FS(e)||BK()}function Ti(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function sX(e,t,n,r){if(!t.length)return n;var o=tDt(t),a=o[0],i=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=ot(e):s=de({},e),r&&n===void 0&&i.length===1?delete s[a][i[0]]:s[a]=sX(s[a],i,n,r),s}function ti(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ti(e,t.slice(0,-1))?e:sX(e,t,n,r)}function nDt(e){return an(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function gI(e){return Array.isArray(e)?[]:{}}var rDt=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Pd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=gI(t[0]);return t.forEach(function(o){function a(i,s){var l=new Set(s),c=Ti(o,i),u=Array.isArray(c);if(u||nDt(c)){if(!l.has(c)){l.add(c);var f=Ti(r,i);u?r=ti(r,i,[]):(!f||an(f)!=="object")&&(r=ti(r,i,gI(c))),rDt(c).forEach(function(h){a([].concat(ot(i),[h]),l)})}}else r=ti(r,i,c)}a([])}),r}const oDt=p.createContext({}),aDt=p.createContext(void 0);var iDt={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:
|
|||
|
|
'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 pX(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),h=n(o),v=n(a),b=n(i),m=n(s),y=r(c,u),A=e.colorLink||e.colorInfo,w=n(A);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:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new oo("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const LDt=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},DDt=LDt;function IDt(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},DDt(r))}const FDt=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},hX=FDt;function vv(e){return(e+8)/e}function BDt(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(2.71828,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:vv(n)}))}const $Dt=e=>{const t=BDt(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],a=n[0],i=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},gX=$Dt;function zDt(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const ls=(e,t)=>new oo(e).setAlpha(t).toRgbString(),sh=(e,t)=>new oo(e).darken(t).toHe
|
|||
|
|
:root {
|
|||
|
|
${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
|
|||
|
|
`)}
|
|||
|
|
}
|
|||
|
|
`.trim()}function qDt(e,t){const n=VDt(e,t);So()&&Ns(n,`${WDt}-dynamic-theme`)}const oS=p.createContext(!1),bX=e=>{let{children:t,disabled:n}=e;const r=p.useContext(oS);return p.createElement(oS.Provider,{value:n??r},t)},yX=oS,aS=p.createContext(void 0),GDt=e=>{let{children:t,size:n}=e;const r=p.useContext(aS);return p.createElement(aS.Provider,{value:n||r},t)},c2=aS;function KDt(){const e=p.useContext(yX),t=p.useContext(c2);return{componentDisabled:e,componentSize:t}}const XDt="5.16.4";function e4(e){return e>=0&&e<=255}function _0(e,t){const{r:n,g:r,b:o,a}=new oo(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new oo(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-i*(1-c))/c),f=Math.round((r-s*(1-c))/c),h=Math.round((o-l*(1-c))/c);if(e4(u)&&e4(f)&&e4(h))return new oo({r:u,g:f,b:h,a:Math.round(c*100)/100}).toRgbString()}return new oo({r:n,g:r,b:o,a:1}).toRgbString()}var YDt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function A9(e){const{override:t}=e,n=YDt(e,["override"]),r=Object.assign({},t);Object.keys(jf).forEach(h=>{delete r[h]});const o=Object.assign(Object.assign({},n),r),a=480,i=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){const h="0s";o.motionDurationFast=h,o.motionDurationMid=h,o.motionDurationSlow=h}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(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(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:_0(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,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(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:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|||
|
|
0 1px 2px -2px ${new oo("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|||
|
|
0 3px 6px 0 ${new oo("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|||
|
|
0 5px 12px 4px ${new oo("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|||
|
|
`,boxShadowDrawerRight:`
|
|||
|
|
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|||
|
|
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|||
|
|
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|||
|
|
`,boxShadowDrawerLeft:`
|
|||
|
|
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|||
|
|
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|||
|
|
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|||
|
|
`,boxShadowDrawerUp:`
|
|||
|
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|||
|
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|||
|
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|||
|
|
`,boxShadowDrawerDown:`
|
|||
|
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|||
|
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|||
|
|
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|||
|
|
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var EI=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xX={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},AX={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},JDt={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},wX=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=EI(t,["override"]);let i=Object.assign(Object.assign({},r),{override:o});return i=A9(i),a&&Object.entries(a).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=EI(c,["theme"]);let h=f;u&&(h=wX(Object.assign(Object.assign({},i),f),{override:f},u)),i[l]=h}),i};function $a(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=W.useContext(vX),a=`${XDt}-${t||""}`,i=n||mX,[s,l,c]=RLt(i,[jf,e],{salt:a,override:r,getComputedToken:wX,formatToken:A9,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:xX,ignore:AX,preserve:JDt}});return[i,c,t?l:"",s,o]}function CX(e,t,n){return t=Fh(t),tB(e,l2()?Reflect.construct(t,n||[],Fh(e).constructor):t.apply(e,n))}let QDt=ea(function e(){ta(this,e)});const SX=QDt,EX="CALC_UNIT",ZDt=new RegExp(EX,"g");function t4(e){return typeof e=="number"?`${e}${EX}`:e}let eIt=function(e){function t(n){var r;return ta(this,t),r=CX(this,t),r.result="",n instanceof t?r.result=`(${n.result})`:typeof n=="number"?r.result=t4(n):typeof n=="string"&&(r.result=n),r}return cm(t,e),ea(t,[{key:"add",value:function(r){return r instanceof t?this.result=`${this.result} + ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} + ${t4(r)}`),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof t?this.result=`${this.result} - ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} - ${t4(r)}`),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} * ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} * ${r}`),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} / ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} / ${r}`),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?`(${this.result})`:this.result}},{key:"equal",value:function(r){const{unit:o=!0}=r||{};return this.result=this.result.replace(ZDt,o?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}])}(SX),tIt=function(e){function t(n){var r;return ta(this,t),r=CX(this,t),r.result=0,n instanceof t?r.result=n.result:typeof n=="number"&&(r.result=n),r}return cm(t,e),ea(t,[{key:"add",value:function(r){return r instanceof t?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof t?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof t?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:
|
|||
|
|
.anticon {
|
|||
|
|
display: inline-flex;
|
|||
|
|
alignItems: 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);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
`,rFt=function(t){var n=p.useContext(m9),r=n.csp,o=n.prefixCls,a=nFt;o&&(a=a.replace(/anticon/g,o)),p.useEffect(function(){var i=t.current,s=ZIt(i);Ns(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},oFt=["icon","className","onClick","style","primaryColor","secondaryColor"],Lh={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function aFt(e){var t=e.primaryColor,n=e.secondaryColor;Lh.primaryColor=t,Lh.secondaryColor=n||VX(t),Lh.calculated=!!n}function iFt(){return de({},Lh)}var d2=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,l=lr(t,oFt),c=p.useRef(),u=Lh;if(i&&(u={primaryColor:i,secondaryColor:s||VX(i)}),rFt(c),tFt(MI(n),"icon should be icon definiton, but got ".concat(n)),!MI(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=de(de({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),dS(f.icon,"svg-".concat(f.name),de(de({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};d2.displayName="IconReact";d2.getTwoToneColors=iFt;d2.setTwoToneColors=aFt;const T9=d2;function GX(e){var t=qX(e),n=Ge(t,2),r=n[0],o=n[1];return T9.setTwoToneColors({primaryColor:r,secondaryColor:o})}function sFt(){var e=T9.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var lFt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];GX(MDt.primary);var f2=p.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=lr(e,lFt),u=p.useContext(m9),f=u.prefixCls,h=f===void 0?"anticon":f,v=u.rootClassName,b=bt(v,h,me(me({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!o||r.name==="loading"),n),m=i;m===void 0&&s&&(m=-1);var y=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,A=qX(l),w=Ge(A,2),k=w[0],C=w[1];return p.createElement("span",Z({role:"img","aria-label":r.name},c,{ref:t,tabIndex:m,onClick:s,className:b}),p.createElement(T9,{icon:r,primaryColor:k,secondaryColor:C,style:y}))});f2.displayName="AntdIcon";f2.getTwoToneColor=sFt;f2.setTwoToneColor=GX;const fp=f2;var cFt=function(t,n){return p.createElement(fp,Z({},t,{ref:n,icon:JIt}))},uFt=p.forwardRef(cFt);const j9=uFt;var dFt={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"};const fFt=dFt;var pFt=function(t,n){return p.createElement(fp,Z({},t,{ref:n,icon:fFt}))},hFt=p.forwardRef(pFt);const N9=hFt;var gFt={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
|
|||
|
|
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`,TFt=`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`,jFt="".concat(OFt," ").concat(TFt).split(/[\s\n]+/),NFt="aria-",PFt="data-";function DI(e,t){return e.indexOf(t)===0}function p2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=de({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||DI(o,NFt))||n.data&&DI(o,PFt)||n.attr&&jFt.includes(o))&&(r[o]=e[o])}),r}function RFt(e){return e&&W.isValidElement(e)&&e.type===W.Fragment}const MFt=(e,t,n)=>W.isValidElement(e)?W.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function KX(e,t){return MFt(e,e,t)}const LFt=e=>{const[,,,,t]=$a();return t?`${e}-css-var`:""},pp=LFt;var st={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=st.F1&&n<=st.F12)return!1;switch(n){case st.ALT:case st.CAPS_LOCK:case st.CONTEXT_MENU:case st.CTRL:case st.DOWN:case st.END:case st.ESC:case st.HOME:case st.INSERT:case st.LEFT:case st.MAC_FF_META:case st.META:case st.NUMLOCK:case st.NUM_CENTER:case st.PAGE_DOWN:case st.PAGE_UP:case st.PAUSE:case st.PRINT_SCREEN:case st.RIGHT:case st.SHIFT:case st.UP:case st.WIN_KEY:case st.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=st.ZERO&&t<=st.NINE||t>=st.NUM_ZERO&&t<=st.NUM_MULTIPLY||t>=st.A&&t<=st.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case st.SPACE:case st.QUESTION_MARK:case st.NUM_PLUS:case st.NUM_MINUS:case st.NUM_PERIOD:case st.NUM_DIVISION:case st.SEMICOLON:case st.DASH:case st.EQUALS:case st.COMMA:case st.PERIOD:case st.SLASH:case st.APOSTROPHE:case st.SINGLE_QUOTE:case st.OPEN_SQUARE_BRACKET:case st.BACKSLASH:case st.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},M9=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,i=a===void 0?4.5:a,s=e.eventKey,l=e.content,c=e.closable,u=e.closeIcon,f=u===void 0?"x":u,h=e.props,v=e.onClick,b=e.onNoticeClose,m=e.times,y=e.hovering,A=p.useState(!1),w=Ge(A,2),k=w[0],C=w[1],E=y||k,S=function(){b(s)},O=function(I){(I.key==="Enter"||I.code==="Enter"||I.keyCode===st.ENTER)&&S()};p.useEffect(function(){if(!E&&i>0){var L=setTimeout(function(){S()},i*1e3);return function(){clearTimeout(L)}}},[i,E,m]);var T=p.useMemo(function(){return an(c)==="object"&&c!==null?c:c?{closeIcon:f}:{}},[c,f]),P=p2(T,!0),N="".concat(n,"-notice");return p.createElement("div",Z({},h,{ref:t,className:bt(N,o,me({},"".concat(N,"-closable"),c)),style:r,onMouseEnter:function(I){var M;C(!0),h==null||(M=h.onMouseEnter)===null||M===void 0||M.call(h,I)},onMouseLeave:function(I){var M;C(!1),h==null||(M=h.onMouseLeave)===null||M===void 0||M.call(h,I)},onClick:v}),p.createElement("div",{className:"".concat(N,"-content")},l),c&&p.createElement("a",Z({tabIndex:0,className:"".concat(N,"-close"),onKeyDown:O,"aria-label":"Close"},P,{onClick:function(I){I.preventDefault(),I.stopPropagation(),S()}}),T.closeIcon))}),XX=W.createContext({}),YX=function(
|
|||
|
|
${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},w9(e)),{color:o,position:"fixed",top:h,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|||
|
|
${t}-move-up-appear,
|
|||
|
|
${t}-move-up-enter
|
|||
|
|
`]:{animationName:k,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`
|
|||
|
|
${t}-move-up-appear${t}-move-up-appear-active,
|
|||
|
|
${t}-move-up-enter${t}-move-up-enter-active
|
|||
|
|
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${w}-wrapper`]:Object.assign({},E)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},E),{padding:0,textAlign:"start"})}]},QFt=e=>({zIndexPopup:e.zIndexPopupBase+h2+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),tY=u2("Message",e=>{const t=rl(e,{height:150});return[JFt(t)]},QFt);var ZFt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const eBt={info:p.createElement(R9,null),success:p.createElement(j9,null),error:p.createElement(N9,null),warning:p.createElement(P9,null),loading:p.createElement(QX,null)},nY=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return p.createElement("div",{className:bt(`${t}-custom-content`,`${t}-${n}`)},r||eBt[n],p.createElement("span",null,o))},tBt=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,i=ZFt(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=p.useContext(Tr),l=t||s("message"),c=pp(l),[u,f,h]=tY(l,c);return u(p.createElement(M9,Object.assign({},i,{prefixCls:l,className:bt(n,f,`${l}-notice-pure-panel`,h,c),eventKey:"pure",duration:null,content:p.createElement(nY,{prefixCls:l,type:r,icon:o},a)})))},nBt=tBt;function rBt(e,t){return{motionName:t??`${e}-move-up`}}function L9(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var oBt=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const aBt=8,iBt=3,sBt=e=>{let{children:t,prefixCls:n}=e;const r=pp(n),[o,a,i]=tY(n,r);return o(p.createElement(YX,{classNames:{list:bt(a,i,r)}},t))},lBt=(e,t)=>{let{prefixCls:n,key:r}=t;return p.createElement(sBt,{prefixCls:n,key:r},e)},cBt=p.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:i=iBt,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:h,direction:v}=p.useContext(Tr),b=r||u("message"),m=()=>({left:"50%",transform:"translateX(-50%)",top:n??aBt}),y=()=>bt({[`${b}-rtl`]:s??v==="rtl"}),A=()=>rBt(b,l),w=p.createElement("span",{className:`${b}-close-x`},p.createElement(e1,{className:`${b}-close-icon`})),[k,C]=JX({prefixCls:b,style:m,className:y,motion:A,closable:!1,closeIcon:w,duration:i,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:c,renderNotifications:lBt});return p.useImperativeHandle(t,()=>Object.assign(Object.assign({},k),{prefixCls:b,message:h})),C});let zI=0;function rY(e){const t=p.useRef(null);return[p.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},o=l=>{if(!t.current){const S=()=>{};return S.then=()=>{},S}const{open:c,prefixCls:u,message:f}=t.current,h=`${u}-notice`,{content:v,icon:b,type:m,key:y,className:A,style:w,onClose:k}=l,C=oBt(l,["content","icon","type","key","className","style","onClose"]);let E=y;return E==null&&(zI+=1,E=`antd-message-${zI}`),L9(S=>(c(Object.assign(Object.assign({},C),{key:E,content:p.createElement(nY,{prefixCls:u,type:m,icon:b},v),placement:"top",className:bt(m&&`${h}-${m}`,A,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),w),onClose:()=>{k==null||k(),S()}})),()=>{r(E)}))},i={open:o,destroy:l=>{var c;l!==voi
|
|||
|
|
#`.concat(t,`::-webkit-scrollbar {
|
|||
|
|
`).concat(u,`
|
|||
|
|
`).concat(f,`
|
|||
|
|
}`),t)}catch(b){console.error(b),o=l,a=c}}document.body.appendChild(n);var h=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,v=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Yg(t),{width:h,height:v}}function w$t(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:A$t(e)}function C$t(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var S$t="rc-util-locker-".concat(Date.now()),YI=0;function E$t(e){var t=!!e,n=p.useState(function(){return YI+=1,"".concat(S$t,"_").concat(YI)}),r=Ge(n,1),o=r[0];$b(function(){if(t){var a=w$t(document.body).width,i=C$t();Ns(`
|
|||
|
|
html body {
|
|||
|
|
overflow-y: hidden;
|
|||
|
|
`.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
|
|||
|
|
}`),o)}else Yg(o);return function(){Yg(o)}},[t,o])}var JI=!1;function k$t(e){return typeof e=="boolean"&&(JI=e),JI}var QI=function(t){return t===!1?!1:!So()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},O$t=p.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,i=a===void 0?!0:a,s=e.children,l=p.useState(n),c=Ge(l,2),u=c[0],f=c[1],h=u||n;p.useEffect(function(){(i||n)&&f(n)},[n,i]);var v=p.useState(function(){return QI(o)}),b=Ge(v,2),m=b[0],y=b[1];p.useEffect(function(){var L=QI(o);y(L??null)});var A=x$t(h&&!m),w=Ge(A,2),k=w[0],C=w[1],E=m??k;E$t(r&&n&&So()&&(E===k||E===document.body));var S=null;if(s&&p9(s)&&t){var O=s;S=O.ref}var T=rX(S,t);if(!h||!So()||m===void 0)return null;var P=E===!1||k$t(),N=s;return t&&(N=p.cloneElement(s,{ref:T})),p.createElement(mY.Provider,{value:C},P?N:ui.createPortal(N,E))}),vY=p.createContext({});function T$t(){var e=de({},Pa);return e.useId}var ZI=0,eF=T$t();const j$t=eF?function(t){var n=eF();return t||n}:function(t){var n=p.useState("ssr-id"),r=Ge(n,2),o=r[0],a=r[1];return p.useEffect(function(){var i=ZI;ZI+=1,a("rc_unique_".concat(i))},[]),t||o};function tF(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function nF(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function N$t(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=nF(o),n.top+=nF(o,!0),n}const P$t=p.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var rF={width:0,height:0,overflow:"hidden",outline:"none"},R$t={outline:"none"},bY=W.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.title,i=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,h=e.bodyStyle,v=e.bodyProps,b=e.modalRender,m=e.onMouseDown,y=e.onMouseUp,A=e.holderRef,w=e.visible,k=e.forceRender,C=e.width,E=e.height,S=e.classNames,O=e.styles,T=W.useContext(vY),P=T.panel,N=rX(A,P),L=p.useRef(),I=p.useRef(),M=p.useRef();W.useImperativeHandle(t,function(){return{focus:function(){var K;(K=M.current)===null||K===void 0||K.focus()},changeActive:function(K){var X=document,Y=X.activeElement;K&&Y===I.current?L.current.focus():!K&&Y===L.current&&I.current.focus()}}});var B={};C!==void 0&&(B.width=C),E!==void 0&&(B.height=E);var R;s&&(R=W.createElement("div",{className:bt("".concat(n,"-footer"),S==null?void 0:S.footer),style:de({},O==null?void 0:O.footer)},s));var D;a&&(D=W.createElement("div",{className:bt("".concat(n,"-header"),S==null?void 0:S.header),style:de({},O==null?void 0:O.header)},W.createElement("div",{className:"".concat(n,"-title"),id:i},a)));var $=p.useMemo(function(){return an(l)==="object"&&l!==null?l:l?{closeIcon:c??W.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c]),z=p2($,!0),_;l&&(_=W.createElement("button",Z({type:"button",onClick:u,"aria-label":"Close"},z,{className:"".concat(n,"-close")}),$.closeIcon));var V=W.createElement("div",{className:bt("".concat(n,"-content"),S==null?void 0:S.content),style:O==null?void 0:O.content},_,D,W.createElement("div",Z({className:bt("".concat(n,"-body"),S==null?void 0:S.body),style:de(de({},h),O==null?void 0:O.body)},v),f),R);return W.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?i:null,"aria-modal":"true",ref:N,style:de(de({},o),B),className:bt(n,r),onMouseDown:m,onMouseUp:y},W.createElement("div",{tabIndex:0,ref:L,style:rF,"aria-hidden":"true"}),W.createElement("div",{ref:M,tabIndex:-1,style:R$t},W.createElement(P$t,{shouldUpdate:w||k},b?b(V):V)),W.createElement("div",{tabIndex:0,ref:I,style:rF,"aria-hidden":"true"}))}),yY=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,a=e.className,i=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,h=e.mousePosition,v=p.useRef(),b=p.useState(),m=Ge(b,2),y=m[0],A=m[1],w={};y&&(w.transformOrigin=y)
|
|||
|
|
(?:
|
|||
|
|
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|||
|
|
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
|||
|
|
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
|||
|
|
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
|||
|
|
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
|||
|
|
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
|||
|
|
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
|||
|
|
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
|||
|
|
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
|||
|
|
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(C){return C&&C.exact?a:new RegExp("(?:"+t(C)+n+t(C)+")|(?:"+t(C)+o+t(C)+")","g")};l.v4=function(k){return k&&k.exact?i:new RegExp(""+t(k)+n+t(k),"g")},l.v6=function(k){return k&&k.exact?s:new RegExp(""+t(k)+o+t(k),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,h=l.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",A='(?:[/?#][^\\s"]*)?',w="(?:"+c+"|www\\.)"+u+"(?:localhost|"+f+"|"+h+"|"+v+b+m+")"+y+A;return q0=new RegExp("(?:^"+w+"$)","i"),q0},dF={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},mh={integer:function(t){return mh.number(t)&&parseInt(t,10)===t},float:function(t){return mh.number(t)&&!mh.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!mh.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(dF.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(J$t())},hex:function(t){return typeof t=="string"&&!!t.match(dF.hex)}},Q$t=function(t,n,r,o,a){if(t.required&&n===void 0){AY(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?mh[s](n)||o.push(Wo(a.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(Wo(a.messages.types[s],t.fullField,t.type))},Z$t=function(t,n,r,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,f=null,h=typeof n=="number",v=typeof n=="string",b=Array.isArray(n);if(h?f="number":v?f="string":b&&(f="array"),!f)return!1;b&&(u=n.length),v&&(u=n.replace(c,"_").length),i?u!==t.len&&o.push(Wo(a.messages[f].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(Wo(a.messages[f].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(Wo(a.messages[f].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(Wo(a.messages[f].range,t.fullField,t.min,t.max))},md="enum",ezt=function(t,n,r,o,a){t[md]=Array.isArray(t[md])?t[md]:[],t[md].indexOf(n)===-1&&o.push(Wo(a.messages[md],t.fullField,t[md].join(", ")))},tzt=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Wo(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(Wo(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},zt={required:AY,whitespace:Y$t,type:Q$t,range:Z$t,enum:ezt,pattern:tzt},nzt=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(vr(n,"string")&&!t.required)return r();zt.required(t,n,o,i,a,"string"),vr(n,"string")||(zt.type(t,n,o,i,a),zt.range(t,n,o,i,a),zt.pattern(t,n,o,i,a),t.whitespace===!0&&zt.whitespace(t,n,o,i,a))}r(i)},rzt=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(vr(n)&&!t.required)return r();zt.required(t,n,o,i,a),n!==void 0&&zt.type(t,n,o,i,a)}r(i)},ozt=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),vr(n)&&!t.required)return r();zt.required(t,n,o,i,a),n!==void 0&&(zt.type(t,n,o,i,a),zt.range(t,n,o,i,a))}r(i)},azt=function(t,n,r,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(vr
|
|||
|
|
${a}${e}-enter,
|
|||
|
|
${a}${e}-appear
|
|||
|
|
`]:Object.assign(Object.assign({},Bzt(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},$zt(r)),{animationPlayState:"paused"}),[`
|
|||
|
|
${a}${e}-enter${e}-enter-active,
|
|||
|
|
${a}${e}-appear${e}-appear-active
|
|||
|
|
`]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},zzt=new Jn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),_zt=new Jn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Hzt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[jY(r,zzt,_zt,e.motionDurationMid,t),{[`
|
|||
|
|
${o}${r}-enter,
|
|||
|
|
${o}${r}-appear
|
|||
|
|
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},Uzt=new Jn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Wzt=new Jn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),wF=new Jn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),CF=new Jn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Vzt=new Jn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),qzt=new Jn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Gzt=new Jn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Kzt=new Jn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Xzt=new Jn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Yzt=new Jn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Jzt=new Jn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Qzt=new Jn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Zzt={zoom:{inKeyframes:Uzt,outKeyframes:Wzt},"zoom-big":{inKeyframes:wF,outKeyframes:CF},"zoom-big-fast":{inKeyframes:wF,outKeyframes:CF},"zoom-left":{inKeyframes:Gzt,outKeyframes:Kzt},"zoom-right":{inKeyframes:Xzt,outKeyframes:Yzt},"zoom-up":{inKeyframes:Vzt,outKeyframes:qzt},"zoom-down":{inKeyframes:Jzt,outKeyframes:Qzt}},e_t=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=Zzt[t];return[jY(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|||
|
|
${r}-enter,
|
|||
|
|
${r}-appear
|
|||
|
|
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function SF(e){return{position:e,inset:0}}const t_t=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},SF("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},SF("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Hzt(e)}]},n_t=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${en(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},w9(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${en(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${en(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},C9(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${en(e.borderRadiusLG)} ${en(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
|
|||
|
|
${t}-body,
|
|||
|
|
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},r_t=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},NY=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return rl(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},PY=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${en(e.paddingMD)} ${en(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${en(e.padding)} ${en(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${en(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${en(e.paddingXS)} ${en(e.padding)}`:0,footerBorderTop:e.wireframe?`${en(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${en(e.borderRadiusLG)} ${en(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${en(e.padding*2)} ${en(e.padding*2)} ${en(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),RY=u2("Modal",e=>{const t=NY(e);return[n_t(t),r_t(t),t_t(t),e_t(t,"zoom")]},PY,{unitless:{titleLineHeight:!0}});var o_t=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let kS;const a_t=e=>{kS={x:e.pageX,y:e.pageY},setTimeout(()=>{kS=null},100)};F$t()&&document.documentElement.addEventListener("click",a_t,!0);const i_t=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:a}=p.useContext(Tr),i=V=>{const{onCancel:H}=e;H==null||H(V)},s=V=>{const{onOk:H}=e;H==null||H(V)},{prefixCls:l,className:c,rootClassName:u,open:f,wrapClassName:h,centered:v,getContainer:b,focusTriggerAfterClose:m=!0,style:y,visible:A,width:w=520,footer:k,classNames:C,styles:E}=e,S=o_t(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),O=r("modal",l),T=r(),P=pp(O),[N,L,I]=RY(O,P),M=bt(h,{[`${O}-centered`]:!!v,[`${O}-wrap-rtl`]:o==="rtl"}),B=k!==null&&p.createElement(TY,Object.assign({},e,{onOk:s,onCancel:i})),[R,D]=I$t(oF(e),oF(a),{closable:!0,closeIcon:p.createElement(e1,{className:`${O}-close-icon`}),closeIconRender:V=>OY(O,V)}),$=Dzt(`.${O}-content`),[z,_]=YFt("Modal",S.zIndex);return N(p.createElement(DBt,null,p.createElement(Mzt,{status:!0,override:!0},p.createElement(ZX.Provider,{value:_},p.createElement(xY,Object.assign({width:w},S,{zIndex:z,getContainer:b===void 0?n:b,prefixCls:O,rootClassName:bt(L,u,I,P),footer:B,visible:f??A,mousePosition:(t=S.mousePosition)!==null&&t!==void 0?t:kS,onClose:i,closable:R,closeIcon:D,focusTriggerAfterClose:m,transitionName:Hb(T,"zoom",e.transitionName),maskTransitionName:Hb(T,"fade",e.maskTransitionName),className:bt(L,c,a==null?void 0:a.className),style:Object.assign(Object.assign({},a==null?void 0:a.style),y),classNames:Object.assign(Object.assign(Object.assign({},a==null?void 0:a.classNames),C),{wrapper:bt(M,C==null?void 0:C.wrapper)}),styles:Object.assign(Object.assign({},a==null?void 0:a.styles),E),panelRef:$}))))))},MY=i_t,s_t=e=>{co
|
|||
|
|
${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},l_t=E9(["Modal","confirm"],e=>{const t=NY(e);return[s_t(t)]},PY,{order:-1e3});var c_t=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function LY(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:a,type:i,okCancel:s,footer:l,locale:c}=e,u=c_t(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&n!==null)switch(i){case"info":f=p.createElement(R9,null);break;case"success":f=p.createElement(j9,null);break;case"error":f=p.createElement(N9,null);break;default:f=p.createElement(P9,null)}const h=s??i==="confirm",v=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[b]=b9("Modal"),m=c||b,y=r||(h?m==null?void 0:m.okText:m==null?void 0:m.justOkText),A=o||(m==null?void 0:m.cancelText),w=Object.assign({autoFocusButton:v,cancelTextLocale:A,okTextLocale:y,mergedOkCancel:h},u),k=p.useMemo(()=>w,ot(Object.values(w))),C=p.createElement(p.Fragment,null,p.createElement(GI,null),p.createElement(KI,null)),E=e.title!==void 0&&e.title!==null,S=`${a}-body`;return p.createElement("div",{className:`${a}-body-wrapper`},p.createElement("div",{className:bt(S,{[`${S}-has-title`]:E})},f,p.createElement("div",{className:`${a}-paragraph`},E&&p.createElement("span",{className:`${a}-title`},e.title),p.createElement("div",{className:`${a}-content`},e.content))),l===void 0||typeof l=="function"?p.createElement(gY,{value:k},p.createElement("div",{className:`${a}-btns`},typeof l=="function"?l(C,{OkBtn:KI,CancelBtn:GI}):C)):l,p.createElement(l_t,{prefixCls:t}))}const u_t=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:a,centered:i,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:f,rootPrefixCls:h,bodyStyle:v,closable:b=!1,closeIcon:m,modalRender:y,focusTriggerAfterClose:A,onConfirm:w,styles:k}=e,C=`${u}-confirm`,E=e.width||416,S=e.style||{},O=e.mask===void 0?!0:e.mask,T=e.maskClosable===void 0?!1:e.maskClosable,P=bt(C,`${C}-${e.type}`,{[`${C}-rtl`]:c==="rtl"},e.className),[,N]=$a(),L=p.useMemo(()=>n!==void 0?n:N.zIndexPopupBase+h2,[n,N]);return p.createElement(MY,{prefixCls:u,className:P,wrapClassName:bt({[`${C}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),w==null||w(!1)},open:o,title:"",footer:null,transitionName:Hb(h||"","zoom",e.transitionName),maskTransitionName:Hb(h||"","fade",e.maskTransitionName),mask:O,maskClosable:T,style:S,styles:Object.assign({body:v,mask:l},k),width:E,zIndex:L,afterClose:r,keyboard:a,centered:i,getContainer:s,closable:b,closeIcon:m,modalRender:y,focusTriggerAfterClose:A},p.createElement(LY,Object.assign({},e,{confirmPrefixCls:C})))},DY=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return p.createElement(Du,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},p.createElement(u_t,Object.assign({},e)))},d_t=[],Hc=d_t;let IY="";function FY(){return IY}const f_t=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:a}=e,i=cX(),s=p.useContext(Tr),l=FY()||s.getPrefixCls(),c=r||`${l}-modal`;let u=o;return u===!1&&(u=void 0),W.createElement(DY,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:a??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:u}))};function a1(e){const t=O9(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:s,open:!0}),o;function a(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];const h=u.some(v=>v&&v.triggerCancel);e.onCancel&&h&&e.onCancel.apply(e,[()=>{}].concat(ot(u.slice(1))));for(let v=0;v<Hc.length;v++)
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PF(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,i=n.postState,s=W.useState(function(){return o!==void 0?o:r!==void 0?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=NHt(s,2),c=l[0],u=l[1],f=o!==void 0?o:c;i&&(f=i(f));function h(v){u(v),f!==v&&a&&a(v,f)}return[f,h]}var d4=function(t){typeof p.startTransition=="function"?p.startTransition(t):t()},vl,LHt=function(t){var n=t.themeMode,r=t.setAppearance,o=t.setBrowserPrefers,a=function(){d4(function(){Ld("dark").matches?r("dark"):r("light")})},i=function(){d4(function(){Ld("dark").matches?o("dark"):o("light")})};return p.useLayoutEffect(function(){if(n!=="auto"){d4(function(){r(n)});return}return setTimeout(a,1),vl||(vl=Ld("dark")),vl.addEventListener("change",a),function(){vl.removeEventListener("change",a)}},[n]),p.useLayoutEffect(function(){return vl||(vl=Ld("dark")),vl.addEventListener("change",i),function(){vl.removeEventListener("change",i)}},[]),null},oJ=p.memo(function(e){var t,n=e.children,r=e.appearance,o=e.defaultAppearance,a=e.onAppearanceChange,i=e.themeMode,s=e.defaultThemeMode,l=e.onThemeModeChange,c=e.useTheme,u=c(),f=u.appearance,h=u.themeMode,v=PF("light",{value:i,defaultValue:s??h,onChange:function(N){return l==null?void 0:l(N)}}),b=Ge(v,2),m=b[0],y=b[1],A=PF("light",{value:r,defaultValue:o??f,onChange:function(N){return a==null?void 0:a(N)}}),w=Ge(A,2),k=w[0],C=w[1],E=p.useState((t=Ld("dark"))!==null&&t!==void 0&&t.matches?"dark":"light"),S=Ge(E,2),O=S[0],T=S[1];return d.jsxs(eJ.Provider,{value:{themeMode:m,setThemeMode:y,appearance:k,setAppearance:C,isDarkMode:k==="dark",browserPrefers:O},children:[typeof window<"u"&&d.jsx(LHt,{themeMode:m,setAppearance:C,setBrowserPrefers:T}),n]})});oJ.displayName="ThemeSwitcher";const DHt=oJ;var IHt=["stylish"],FHt=function(t){var n=t.children,r=t.customToken,o=t.defaultCustomToken,a=t.customStylish,i=t.prefixCls,s=t.StyledThemeProvider,l=b2(),c=l.appearance,u=l.isDarkMode,f=tJ(),h=f.stylish,v=lr(f,IHt),b=p.useMemo(function(){return o?o instanceof Function?o({token:v,appearance:c,isDarkMode:u}):o:{}},[o,v,c]),m=p.useMemo(function(){return r instanceof Function?de(de({},b),r({token:v,appearance:c,isDarkMode:u})):de(de({},b),r)},[b,r,v,c]),y=p.useMemo(function(){return a?a({token:de(de({},v),m),stylish:h,appearance:c,isDarkMode:u,css:Jm}):{}},[a,v,m,h,c]),A=p.useMemo(function(){return de(de({},y),h)},[y,h]),w=de(de(de(de({},v),m),{},{stylish:A},l),{},{prefixCls:i});return d.jsx(s,{theme:w,children:n})};const BHt=FHt;var $Ht=function(t){var n=t.styledConfig?jF(t.styledConfig):void 0,r=t.StyleEngineContext;return p.memo(function(o){var a=o.children,i=o.customToken,s=o.customStylish,l=o.theme,c=o.getStaticInstance,u=o.prefixCls,f=o.staticInstanceConfig,h=o.appearance,v=o.defaultAppearance,b=o.onAppearanceChange,m=o.themeMode,y=o.defaultThemeMode,A=o.onThemeModeChange,w=o.styled,k=p.useContext(r),C=k.prefixCls,E=k.StyledThemeContext,S=k.CustomThemeContext,O=p.useContext(S),T=w?jF(w):n||OHt,P=u||C;return d.jsx(r.Provider,{value:{prefixCls:P,StyledThemeContext:(w==null?void 0:w.ThemeContext)||E||nJ,CustomThemeContext:S},children:d.jsx(DHt,{themeMode:m,defaultThemeMode:y,onThemeModeChange:A,defaultAppearance:v,appearance:h,onAppearanceChange:b,useTheme:t.useTheme,children:d.jsx(THt,{prefixCls:P,staticInstanceConfig:f,theme:l,getStaticInstance:c,children:d.jsx(BHt,{prefixCls:P,customToken:i,defaultCustomToken:O,customStylish:s,StyledThemeProvider:T,children:a})})})})})},zHt=function(t){return function(){var n=t.StyleEngineContext,r=p.useContext(n),o=r.StyledThemeContext,a=r.CustomThemeContext,i=r.prefixCls,s=tJ(),l=b2(),c=p.useContext(a),u=p.useContext(o??nJ)||{},f=p.useContext(Du.ConfigContext),h=f.iconPrefixCls,v=f.getPrefixCls,b=v(),m=i&&i!=="ant"?i:b,y=p.useMemo(function(){return de(de(de(de({},s),l),c),{},{prefixCls:m,iconPrefixCls:h})},[s,l,c,m,h]);return!u||Object.keys(u).length===0?y:de(de({},u),{},{prefixCls:m,iconPrefixCls:h})}},aJ=new VMt;typeof global<"u"&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=aJ
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,s;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){i=!0,s=c},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(i)throw s}}}}var EUt=["className","gap","rows","children","maxItemWidth"],LF,kUt=iJ(function(e,t){var n=e.css,r=t.rows,o=t.maxItemWidth,a=t.gap;return{container:n(LF||(LF=Nd([`
|
|||
|
|
--rows: `,`;
|
|||
|
|
--max-item-width: `,`;
|
|||
|
|
--gap: `,`;
|
|||
|
|
|
|||
|
|
display: grid !important;
|
|||
|
|
grid-template-columns: repeat(
|
|||
|
|
auto-fill,
|
|||
|
|
minmax(
|
|||
|
|
max(var(--max-item-width), calc((100% - var(--gap) * (var(--rows) - 1)) / var(--rows))),
|
|||
|
|
1fr
|
|||
|
|
)
|
|||
|
|
);
|
|||
|
|
`])),r,RF(o)?o:"".concat(o,"px"),RF(a)?a:"".concat(a,"px"))}}),OUt=p.forwardRef(function(e,t){var n=e.className,r=e.gap,o=r===void 0?"1em":r,a=e.rows,i=a===void 0?3:a,s=e.children,l=e.maxItemWidth,c=l===void 0?240:l,u=lr(e,EUt),f=kUt({gap:o,maxItemWidth:c,rows:i}),h=f.cx,v=f.styles;return d.jsx(kf,de(de({className:h(v.container,n),gap:o,ref:t},u),{},{children:s}))});const TUt=OUt;var DF,IF,FF,BF,PS="hover-card",cJ=iJ(function(e,t){var n=e.css,r=e.responsive,o=e.token,a=e.isDarkMode,i=t.size,s=t.borderRadius;return{container:n(DF||(DF=Nd([`
|
|||
|
|
&:hover > .`,`::after {
|
|||
|
|
opacity: 1;
|
|||
|
|
}
|
|||
|
|
`])),PS),content:n(IF||(IF=Nd([`
|
|||
|
|
z-index: 2;
|
|||
|
|
|
|||
|
|
flex-grow: 1;
|
|||
|
|
|
|||
|
|
height: 100%;
|
|||
|
|
margin: 1px;
|
|||
|
|
|
|||
|
|
background: `,`;
|
|||
|
|
border-radius: `,`px;
|
|||
|
|
`])),o.colorBgContainer,s-1),grid:n(FF||(FF=Nd([`
|
|||
|
|
display: grid;
|
|||
|
|
|
|||
|
|
`,` {
|
|||
|
|
display: flex;
|
|||
|
|
flex-direction: column;
|
|||
|
|
}
|
|||
|
|
`])),r.mobile),itemContainer:n(BF||(BF=Nd([`
|
|||
|
|
cursor: pointer;
|
|||
|
|
|
|||
|
|
position: relative;
|
|||
|
|
|
|||
|
|
overflow: hidden;
|
|||
|
|
|
|||
|
|
width: 100%;
|
|||
|
|
|
|||
|
|
background: `,`;
|
|||
|
|
border-radius: `,`px;
|
|||
|
|
|
|||
|
|
&::before,
|
|||
|
|
&::after {
|
|||
|
|
content: '';
|
|||
|
|
|
|||
|
|
position: absolute;
|
|||
|
|
inset-block-start: 0;
|
|||
|
|
inset-inline-start: 0;
|
|||
|
|
|
|||
|
|
width: 100%;
|
|||
|
|
height: 100%;
|
|||
|
|
|
|||
|
|
opacity: 0;
|
|||
|
|
border-radius: inherit;
|
|||
|
|
|
|||
|
|
transition: opacity 500ms;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
&::before {
|
|||
|
|
pointer-events: none;
|
|||
|
|
user-select: none;
|
|||
|
|
z-index: 3;
|
|||
|
|
background: radial-gradient(
|
|||
|
|
`,`px circle at var(--mouse-x) var(--mouse-y),
|
|||
|
|
`,`,
|
|||
|
|
transparent 40%
|
|||
|
|
);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
&::after {
|
|||
|
|
z-index: 1;
|
|||
|
|
background: radial-gradient(
|
|||
|
|
`,`px circle at var(--mouse-x) var(--mouse-y),
|
|||
|
|
`,`,
|
|||
|
|
transparent 40%
|
|||
|
|
);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
:hover::before {
|
|||
|
|
opacity: 1;
|
|||
|
|
}
|
|||
|
|
`])),Yc(o.colorBorderSecondary,.75),s,i,Yc(o.colorTextBase,a?.06:.02),i*.75,Yc(o.colorTextBase,a?.4:.2))}}),jUt=["children","className","style","borderRadius","size"],NUt=p.memo(function(e){var t=e.children,n=e.className,r=e.style,o=e.borderRadius,a=e.size,i=lr(e,jUt),s=cJ({borderRadius:o,size:a}),l=s.styles,c=s.cx;return d.jsx(kf,de(de({className:c(l.itemContainer,n),style:de({borderRadius:o},r)},i),{},{children:d.jsx(kf,{className:l.content,children:t})}))});const PUt=NUt;var RUt=["items","renderItem","maxItemWidth","className","columns","gap","style","size","borderRadius","spotlight"],MUt=p.memo(function(e){var t=e.items,n=e.renderItem,r=e.maxItemWidth,o=e.className,a=e.columns,i=a===void 0?3:a,s=e.gap,l=s===void 0?"1em":s,c=e.style,u=e.size,f=u===void 0?800:u,h=e.borderRadius,v=h===void 0?12:h,b=e.spotlight,m=b===void 0?!0:b,y=lr(e,RUt),A=cJ({borderRadius:v,size:f}),w=A.styles,k=A.cx,C=p.useRef(null);return p.useEffect(function(){if(C.current&&m){var E=function(O){var T=SUt(document.querySelectorAll(".".concat(PS))),P;try{for(T.s();!(P=T.n()).done;){var N=P.value,L=N.getBoundingClientRect(),I=O.clientX-L.left,M=O.clientY-L.top;N.style.setProperty("--mouse-x","".concat(I,"px")),N.style.setProperty("--mouse-y","".concat(M,"px"))}}catch(B){T.e(B)}finally{T.f()}};return C.current.addEventListener("mousemove",E),function(){var S;(S=C.current)===null||S===void 0||S.removeEventListener("mousemove",E)}}},[]),d.jsx(TUt,de(de({className:k(w.container,w.grid,o),gap:l,maxItemWidth:r,ref:C,rows:i,style:c},y),{},{children:t.map(function(E,S){return d.jsx(PUt,{borderRadius:v,className:PS,size:f,children:d.jsx(n,de({},E))},S)})}))});const U9=MUt,Ul="/assets/robot2-46b57b7c.png",Wl="/assets/robot3-c98a458b.png",LUt="/assets/zidingyi1-1abae3dd.png",DUt="/assets/zidingyi2-3ae50e09.png";function W9({flows:e,isTemp:t=!1,title:n="skills.skillTemplate",desc:r="skills.skillTemplateChoose",open:o,setOpen:a,onSelect:i}){const{t:s}=ze(),l=Ms(),[c,u]=p.useState({}),f=h=>d.jsxs(kf,{align:"flex-start",onClick:()=>u(h),className:`selectNpcFlexbox ${c.id===h.id&&"active"}`,children:[d.jsx("div",{className:"npcInfoItemBg",children:d.jsx("span",{children:d.jsx("span",{children:d.jsxs("div",{children:[(h.id=="06b1d374-ba97-46e6-8782-c56dec8dcc17"||h.id=="ed8e21f6-9757-43d0-b076-8c6e81bb0580")&&d.jsx("img",{src:Ul,className:"w-[160px]",alt:""}),h.id=="ca214b41-2b73-4585-b172-bf1e546cf6ec"&&d.jsx("img",{src:Wl,className:"w-[160px]",alt:""}),h.id!="06b1d374-ba97-46e6-8782-c56dec8dcc17"&&h.id!="ed8e21f6-9757-43d0-b076-8c6e81bb0580"&&h.id!="ca214b41-2b73-4585-b172-bf1e546cf6ec"&&d.jsx("img",{src:zr,className:"w-[160px]",alt:""})]})})})}),d.jsxs("div",{children:[(h.id=="06b1d374-ba97-46e6-8782-c56dec8dcc17"||h.id=="ed8e21f6-9757-43d0-b076-8c6e81bb0580")&&d.jsx("img",{src:Ul,className:"w-[42px]",alt:""}),h.id=="ca214b41-2b73-4585-b172-bf1e546cf6ec"&&d.jsx("img",{src:Wl,className:"w-[42px]",alt:""}),h.id!="06b1d374-ba97-46e6-8782-c56dec8dcc17"&&h.id!="ed8e21f6-9757-43d0-b076-8c6e81bb0580"&&h.id!="ca214b41-2b73-4585-b172-bf1e546cf6ec"&&d.jsx("img",{src:zr,className:"w-[42px]",alt:""}),d.jsxs("div",{children:[d.jsx("p",{children:h.name}),d.jsx("div",{})]})]}),d.jsx("p",{className:"mt-[10px] test-[13px]",children:h.description})]});return d.jsx("dialog",{className:`modal selectNpc ${o?"modal-open":"modal-close"}`,onClick:()=>a(!1),children:d.jsxs("form",{method:"dialog",className:"w-[1100px] bg-[#262626] relative pl-[35px] pt-[35px] pr-[35px] pb-[20px] border-radius-14",onClick:h=>h.stopPropagation(),children:[d.jsx("button",{className:"btn btn-sm btn-circle btn-ghost absolute right-2 top-2",onClick:()=>a(!1),children:"✕"}),d.jsx("h3",{className:"font-bold text-[17px] selectNpcH3",children:s(n)}),d.jsx("p",{className:"mt-[6px] text-[13px] selectNpcP",children:s(r)}),d.jsxs("div",{className:"overflow-y-scroll no-scrollbar h-[60vh]",children:[d.jsx(U9,{items:e,renderItem:f,className:"mt-[14px] selectNpcSpotlightCard"}),t&&d.jsxs("div",{className:"zidingyi",onClick:()=>l("/skill"),children:[d.jsxs("div",{children:[d.jsx("img",{src:DUt,className:"w-[23px] ml-
|
|||
|
|
`).join("");t(u,f)};return d.jsxs("div",{className:"absolute right-20 bottom-32 w-[90%] max-w-[680px] flex flex-col gap-6 rounded-xl p-4 md:p-6 bg-[#1A1A1A]",children:[d.jsx("div",{className:"max-h-[520px] overflow-y-auto",children:o.map((c,u)=>{var f;return d.jsxs("div",{className:"w-full text-sm",style:{color:"#fff"},children:[c.name,d.jsx("span",{className:"text-status-red",children:c.required?" *":""}),d.jsx("div",{className:"mt-2",children:c.type===hs.Text?d.jsx(Lm,{password:!1,value:c.value,onChange:h=>i(u,h)}):c.type===hs.Select?d.jsx(Uf,{options:c.options.map(h=>h.value),onSelect:h=>i(u,h),value:c.value}):c.type===hs.File?d.jsx(Dm,{isSSO:!0,disabled:!1,placeholder:r("report.fileRequired"),value:"",onChange:h=>s.current[u]=h,fileTypes:["pdf"],suffixes:((f=e.data.nodes.find(h=>h.id===c.nodeId))==null?void 0:f.data.node.template.file_path.suffixes)||["xxx"],onFileChange:h=>i(u,h)}):d.jsx(d.Fragment,{})})]},c.id)})}),d.jsx(_e,{size:"sm",className:"shengcheng-btn",onClick:l,children:r("report.start")})]})}const UUt=({id:e,msg:t,onInit:n,onAdd:r})=>{const[o,a]=p.useState(""),i=p.useRef(null);return p.useEffect(()=>{n([]),t&&nge(t,e).then(s=>{const l=new RegExp(`(${s.join("|")})`,"g");a(t.replace(l,"<span>$1</span>")),n(s)})},[]),p.useEffect(()=>{const s=l=>{l.target.tagName==="SPAN"&&r(l.target.innerText)};return i.current.addEventListener("click",s),()=>{var l;return(l=i.current)==null?void 0:l.removeEventListener("click",s)}},[]),d.jsx("div",{className:"bg-gray-100 rounded-md py-4 px-2 max-h-24 overflow-y-auto",children:d.jsx("p",{ref:i,className:"anwser-souce",dangerouslySetInnerHTML:{__html:o}})})};let zF=null;const WUt=({chatId:e,words:t,data:n,onClose:r,onAdd:o,children:a})=>{const{t:i}=ze(),[s,l]=p.useState(!1),c=p.useRef(null),u=A=>{l(!1),A&&(c.current&&(c.current.value=""),o(A))},[f,h]=p.useState([]),[v,b]=p.useState(null),m=()=>{clearTimeout(zF),zF=setTimeout(()=>{rge(e,n.id,t.join(";")).then(A=>{h(A),A&&b(A[0])})},200)};p.useEffect(()=>{m()},[t]);const y=()=>{l(!0),setTimeout(()=>{var A;return(A=document.getElementById("taginput"))==null?void 0:A.focus()},0)};return d.jsxs("div",{className:"flex gap-4 mt-4",style:{height:"calc(100vh - 10rem)"},children:[d.jsxs("div",{className:"w-[300px] bg-gray-100 rounded-md py-4 px-2 h-full overflow-y-auto no-scrollbar",children:[d.jsxs("div",{className:"mb-4 text-sm font-bold",children:[i("chat.filterLabel"),d.jsx("div",{className:"tooltip fixed","data-tip":i("chat.tooltipText"),children:d.jsx("span",{"data-theme":"light",className:"badge cursor-pointer",children:"?"})})]}),d.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.map((A,w)=>d.jsxs("div",{className:"badge badge-info h-[auto] gap-2 text-gray-600 bg-[rgba(53,126,249,.15)]",children:[A,d.jsx("span",{className:"cursor-pointer",onClick:()=>r(w),children:"x"})]},A)),s?d.jsx("div",{className:"badge badge-info gap-2 cursor-pointer bg-[rgba(53,126,249,.15)]",children:d.jsx("input",{ref:c,id:"taginput",className:"w-20 h-4 py-0 border-none outline-none bg-gray-50",onKeyDown:A=>{A.key==="Enter"&&!A.shiftKey&&u(c.current.value)},onBlur:()=>{u(c.current.value)}})}):d.jsx("div",{className:"badge badge-info gap-2 cursor-pointer bg-[rgba(53,126,249,.86)] text-gray-50",onClick:y,children:d.jsx("span",{children:i("chat.addCustomLabel")})})]}),d.jsxs("div",{className:"mt-4",children:[d.jsx("p",{className:"mb-4 text-sm font-bold",children:i("chat.sourceDocumentsLabel")}),f.map(A=>A.right?d.jsxs("div",{onClick:()=>b(A),className:`group rounded-xl bg-[#fff] hover-bg-gray-200 flex items-center px-4 mb-2 relative min-h-16 cursor-pointer ${(v==null?void 0:v.id)===A.id&&"bg-gray-200"}`,children:[d.jsx("p",{className:"text-sm break-all",children:A.fileName}),d.jsxs("div",{className:"absolute right-1 top-1 gap-2 hidden group-hover:flex",children:[A.fileUrl&&d.jsx("div",{className:"tooltip","data-tip":i("chat.downloadPDFTooltip"),children:d.jsx("a",{href:"javascript:;",onClick:w=>{Jh(cf(A.fileUrl),A.fileName.replace(/\.[\w\d]+$/,".pdf")),w.stopPropagation()},children:d.jsx(zfe,{color:"rgba(53,126,249,1)",size:22,strokeWidth:1.5})})
|
|||
|
|
`:""),files:L,category:I,source:B,noAccess:R,end:N};return z[_-1]=K,N&&!(K.files.length||K.thought||K.message)&&z.pop(),z})}async function C(T){try{a.current&&(JSON.stringify(T.inputs)!=="{}"&&(v.current=!1),a.current.send(JSON.stringify(T)))}catch(P){l({title:"There was an error sending the message",list:[P.message]})}}function E({event:T,setIsStop:P,setInputState:N}){console.error("链接手动断开 event :>> ",T),P(!0),s(!1),[1005,1008].includes(T.code)?(console.warn("即将废弃 :>> "),N({lock:!0,errorMsg:T.reason})):(T.reason&&l({title:T.reason}),N({lock:!1,errorMsg:""}))}return p.useEffect(()=>()=>{if(a.current){switch(a.current.readyState){case WebSocket.OPEN:console.warn("前端主动关闭1"),a.current.close();break;case WebSocket.CONNECTING:a.current.onopen=()=>{console.warn("前端主动关闭2"),a.current.close()}}a.current=null}},[]),{begin:i,stop:()=>{try{a&&a.current.send(JSON.stringify({action:"stop"}))}catch(T){l({title:"There was an error stop the message",list:[T.message]})}},checkReLinkWs:async T=>{if(a.current)return!0;n(P=>{let N=[...P];return N[N.length-1].category="loading",N}),await T(),n(P=>{let N=[...P];return N[N.length-1].category="",N})},sendAll:C,connectWS:y}},dWt=(e,t)=>{const{setErrorData:n}=p.useContext(wt),{setTabsState:r}=p.useContext(mn),{t:o}=ze();async function a(l,c){const{flowId:u}=await T6(l,c);let f=[],h=!1,v=!1;const b=`/api/v1/build/stream/${u}?chat_id=${c}`,m=new EventSource(b);for(m.onmessage=y=>{if(!y.data)return;const A=JSON.parse(y.data);if(A.end_of_stream){m.close(),v=!0;return}else A.log||(A.input_keys?r(w=>({...w,[u]:{...w[u],formKeysData:A}})):f.push(A.valid))},m.onerror=y=>{if(console.error("EventSource failed:",y),m.close(),y.data){const A=JSON.parse(y.data);n({title:A.error})}};!h;)await new Promise(y=>setTimeout(y,100)),h=v;return f.every(y=>y)}async function i(l,c){const u=Date.now()-l,f=c-u;if(f>0)return new Promise(h=>setTimeout(h,f))}async function s(){try{const l=e.data.nodes.flatMap(f=>W6(f,e.data.edges));if(l.length>0){n({title:o("chat.buildError"),list:l});return}const c=200,u=Date.now();await a(e,t),await i(u,c)}catch(l){console.error("Error:",l)}finally{}}return s},fWt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAbhJREFUSEullktPwzAQhGfggMRT4lFOPIR4CP7/zwEOTS9tKaLXgrRoIydyHdu7bXNppNj+PNvxrAkAInIK4ErfAXyRXIb3nX5E5AjANYB9AN8kFxSREwDPycpjkvNdaEHEU7JGo8AXAMeZxbeGFmCK+K0BdcDGUBE5A/BYqE4LrA3QeQ3Jmae8FWXd9AmDadQwt5VFTagDNiPZtEAntFheR5VamHJ6oBM6UOpQNiU56YStAQN0BOCmUt5eqQM2JzmO1xoAndB3tTiA18rGBrBBSePJInIJ4M7jzsyYtTKaCiMjWeXN7ac3SO5jtqSJUuvIxMOrsGpJE6iGwwOAvUqJJySn1l9gKgwmOgDwZgA/SP7sDHRYP2aY2VtVuCGsA1ehRaAjrmrVK0JLB19vAGnzjAEaVatgpBI4G/i5aLNgvfVFxDoyA2ga3lZvHJwzB3StvHF7spQV48oB7ZV2DdiCZYN4w0RqleoV43Cb1M85RUSs7P1UoLpRFeaeYhlL1jS6zEqB2tNUZfqYQVyBlpT+KfACwH0yeWtY1NpyR2bWmUZ3pA1Xn4Un9a2QDqF/Hq762mWWerf5B0gG4xiNqba4AAAAAElFTkSuQmCC";function Gb(){const[e,t]=p.useState(!1),[n,r]=p.useState(!0),{t:o}=ze(),{flow:a}=p.useContext(mn),[i,s]=p.useState(null),[l,c]=p.useState([]);p.useEffect(()=>{o7().then(c)},[]);const{chatList:u,chatId:f,chatsRef:h,setChatId:v,addChat:b,deleteChat:m}=pWt(),y=p.useRef(""),A=async C=>{y.current=ci(32),t(!1),b({flow_name:C.name,flow_description:C.description,flow_id:C.id,chat_id:y.current,create_time:"-",update_time:"-"});const E=await ws(C.id);s(E),v(y.current),r(!1)},w=Js(async C=>{if(C.chat_id===f)return;y.current=C.chat_id;const E=(a==null?void 0:a.id)===C.flow_id?a:await ws(C.flow_id);s(E),v(C.chat_id),r(!1)},100,!1),k=(C,E)=>{C.stopPropagation(),ii({desc:o("chat.confirmDeleteChat"),onOk(S){m(E),r(!0),S()}})};return d.jsxs("div",{className:"flex",children:[d.jsxs("div",{className:"h-screen w-[288px] border-r xinDuiHua-box relative",children:[d.jsx("div",{className:"xinDuiHua absolute",children:d.jsx("div",{className:"xinDuiHua-btn cursor-pointer",onClick:()=>t(!0),children:o("chat.newChat")})}),d.jsx("div",{ref:h,className:"absolute w-[100%] scroll p-[10px] h-full overflow-y-scroll no-scrollbar pt-[63px]",children:u.map((C,E)=>d.jsxs("div",{className:` group item xinDuiHua-list-item relative ho
|
|||
|
|
${b?"bg-[#404040] text-[#fff]":"text-[#fff] bg-[#333]"}
|
|||
|
|
${h.role_id===2?"cursor-not-allowed text-gray-300":"cursor-default"}`,value:h,disabled:h.role_id===2,children:({selected:b})=>d.jsxs(d.Fragment,{children:[d.jsx("span",{className:`block truncate ${b?"font-medium":"font-normal"}`,children:h.role_name}),b?d.jsx("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3 text-[#FFD54C]",children:d.jsx(gm,{className:"h-5 w-5","aria-hidden":"true"})}):null]})},h.role_id))})]})}),d.jsxs("div",{className:"mt-12 flex justify-center gap-4",children:[d.jsx(_e,{variant:"outline",className:"px-16 rounded-full",onClick:t,children:r("cancel")}),d.jsx(_e,{className:"px-16 rounded-full bg-[#FFD54C] hover:bg-[#FFD54C]",onClick:f,children:r("save")})]})]})})}function FWt(e){const{user:t}=p.useContext(qi),{t:n}=ze(),{page:r,pageSize:o,data:a,total:i,loading:s,setPage:l,search:c,reload:u}=ky(C=>dge(C.keyword,C.page,C.pageSize)),{delShow:f,idRef:h,close:v,delConfim:b}=BWt(),m=()=>{mt(ST(h.current.user_id,1).then(C=>{u(),v()}))},y=C=>{mt(ST(C.user_id,0).then(E=>{u(),v()}))},[A,w]=p.useState(null),k=()=>{w(null),u()};return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"flex justify-end",children:d.jsxs("div",{className:"w-[180px] relative",children:[d.jsx(fn,{placeholder:n("system.username"),onChange:C=>c(C.target.value)}),d.jsx(mm,{className:"absolute right-4 top-2 text-gray-300 pointer-events-none"})]})}),d.jsxs(xo,{children:[d.jsx(Ao,{children:d.jsxs(dn,{children:[d.jsx(lt,{className:"w-[200px] dialogueLog-header",children:n("system.username")}),d.jsx(lt,{className:"dialogueLog-header",children:n("createTime")}),d.jsx(lt,{className:"text-right dialogueLog-header",children:n("operations")})]})}),d.jsx(wo,{children:a.map(C=>d.jsxs(dn,{children:[d.jsx(rt,{className:"font-medium max-w-md truncate dialogueLog-body",children:C.user_name}),d.jsx(rt,{className:"dialogueLog-body",children:C.update_time.replace("T"," ")}),d.jsxs(rt,{className:"text-right dialogueLog-body",children:[t.user_id===C.user_id?d.jsx("a",{href:"javascript:;",className:" ml-4 text-gray-400",children:n("edit")}):d.jsx("a",{href:"javascript:;",onClick:()=>w(C.user_id),className:"underline ml-4",children:n("edit")}),C.delete===1?d.jsx("a",{href:"javascript:;",onClick:()=>y(C),className:"underline ml-4",children:n("enable")}):t.user_id===C.user_id?d.jsx("a",{href:"javascript:;",className:" ml-4 text-gray-400",children:n("disable")}):d.jsx("a",{href:"javascript:;",onClick:()=>b(C),className:"underline ml-4 text-red-500",children:n("disable")})]})]},C.id))})]}),d.jsx("div",{className:"flex justify-center",children:d.jsx(Ey,{page:r,pageSize:o,total:i,onChange:C=>l(C)})}),d.jsx("dialog",{className:`modal ${f&&"modal-open"}`,children:d.jsxs("form",{method:"dialog",className:"modal-box w-[360px] bg-[#fff] shadow-lg dark:bg-background",children:[d.jsxs("h3",{className:"font-bold text-lg",children:[n("prompt"),"!"]}),d.jsx("p",{className:"py-4",children:n("system.confirmDisable")}),d.jsxs("div",{className:"modal-action",children:[d.jsx(_e,{className:"h-8 rounded-full",variant:"outline",onClick:v,children:n("cancel")}),d.jsx(_e,{className:"h-8 rounded-full",variant:"destructive",onClick:m,children:n("disable")})]})]})}),d.jsx(IWt,{id:A,onClose:()=>w(null),onChange:k})]})}const BWt=()=>{const[e,t]=p.useState(!1),n=p.useRef(null);return{delShow:e,idRef:n,close:()=>{t(!1)},delConfim:r=>{n.current=r,t(!0)}}};function AJ(){const{t:e}=ze();return d.jsx("div",{className:"w-full h-screen p-6 overflow-y-auto zhanghao",children:d.jsxs(ql,{defaultValue:"user",className:"w-full",children:[d.jsxs(Hf,{className:"zhanghaoTab",children:[d.jsx(ai,{value:"user",className:"roundedrounded-xl",children:e("system.userManagement")}),d.jsx(ai,{value:"role",children:e("system.roleManagement")}),d.jsx(ai,{value:"system",children:e("system.systemConfiguration")})]}),d.jsx(Br,{value:"user",children:d.jsx(FWt,{})}),d.jsx(Br,{value:"role",children:d.jsx(LWt,{})}),d.jsx(Br,{value:"system",children:d.jsx(DWt,{})})]})})}const $Wt=QB([{path:"/",element:d.jsx(Fz,{}),children:[{path:"",element:d.jsx(Gb,{})},{path:"skill",e
|
|||
|
|
`:""),files:L,category:I,source:B,noAccess:R,end:N};return z[_-1]=K,N&&!(K.files.length||K.thought||K.message)&&z.pop(),z})}async function C(T){try{a.current&&(JSON.stringify(T.inputs)!=="{}"&&(v.current=!1),a.current.send(JSON.stringify(T)))}catch(P){l({title:"There was an error sending the message",list:[P.message]})}}function E({event:T,setIsStop:P,setInputState:N}){console.error("链接手动断开 event :>> ",T),P(!0),s(!1),[1005,1008].includes(T.code)?(console.warn("即将废弃 :>> "),N({lock:!0,errorMsg:T.reason})):(T.reason&&l({title:T.reason}),N({lock:!1,errorMsg:""}))}return p.useEffect(()=>()=>{if(a.current){switch(a.current.readyState){case WebSocket.OPEN:console.warn("前端主动关闭1"),a.current.close();break;case WebSocket.CONNECTING:a.current.onopen=()=>{console.warn("前端主动关闭2"),a.current.close()}}a.current=null}},[]),{begin:i,stop:()=>{try{a&&a.current.send(JSON.stringify({action:"stop"}))}catch(T){l({title:"There was an error stop the message",list:[T.message]})}},checkReLinkWs:async T=>{if(a.current)return!0;n(P=>{let N=[...P];return N[N.length-1].category="loading",N}),await T(),n(P=>{let N=[...P];return N[N.length-1].category="",N})},sendAll:C,connectWS:y}},oVt=(e,t)=>{const{setErrorData:n}=p.useContext(wt),{setTabsState:r}=p.useContext(mn),{t:o}=ze();async function a(l,c){const{flowId:u}=await T6(l,c);let f=[],h=!1,v=!1;const b=`/api/v1/build/stream/${u}?chat_id=${c}`,m=new EventSource(b);for(m.onmessage=y=>{if(!y.data)return;const A=JSON.parse(y.data);if(A.end_of_stream){m.close(),v=!0;return}else A.log||(A.input_keys?r(w=>({...w,[u]:{...w[u],formKeysData:A}})):f.push(A.valid))},m.onerror=y=>{if(console.error("EventSource failed:",y),m.close(),y.data){const A=JSON.parse(y.data);n({title:A.error})}};!h;)await new Promise(y=>setTimeout(y,100)),h=v;return f.every(y=>y)}async function i(l,c){const u=Date.now()-l,f=c-u;if(f>0)return new Promise(h=>setTimeout(h,f))}async function s(){try{const l=e.data.nodes.flatMap(f=>W6(f,e.data.edges));if(l.length>0){n({title:o("chat.buildError"),list:l});return}const c=200,u=Date.now();await a(e,t),await i(u,c)}catch(l){console.error("Error:",l)}finally{}}return s};function aVt(){const{id:e}=Xs(),t=Vl(),n=new URLSearchParams(t.search),r=n.get("lib"),o=n.get("tweak"),{t:a}=ze();p.useState(!1),iVt();const i=p.useMemo(()=>{const b=[];return r&&b.push(`knowledge_id=${r}`),o&&b.push(`tweak=${o}`),b.length>0?`&${b.join("&")}`:""},[r,o]);p.useRef("");const{flow:s}=p.useContext(mn),[l,c]=p.useState(null),[u,f]=p.useState([]);p.useEffect(()=>{o7().then(f)},[]);const[h,v]=p.useState("");return console.log(e,r,o),p.useEffect(()=>{e&&ws(e).then(b=>{c(b),v(ci(32))})},[e]),Js(async b=>{if(b.chat_id===h)return;const m=(s==null?void 0:s.id)===b.flow_id?s:await ws(b.flow_id);c(m),v(b.chat_id)},100,!1),e?d.jsx("div",{className:"chatShareM",children:l?d.jsx("div",{className:"flex-1 chat-box h-screen relative",children:l&&d.jsx(ZWt,{version:"v2",queryString:i,chatId:h,flow:l})}):d.jsx("div",{className:"flex-1 chat-box h-screen overflow-hidden relative",children:d.jsx("p",{className:"text-center mt-[100px] text-sm text-gray-600",children:a("chat.selectChat")})})}):d.jsx("div",{children:"请选择技能"})}const iVt=()=>{const[e,t]=p.useState([]),n=p.useRef(null);return p.useEffect(()=>{k6().then(t)},[]),{chatList:e,chatsRef:n,addChat:r=>{const o=[r,...e];t(o),setTimeout(()=>{n.current.scrollTop=1},0)},deleteChat:r=>{mt(O6(r).then(o=>{t(a=>a.filter(i=>i.chat_id!==r))}))}}},sVt=QB([{path:"/",element:d.jsx(Fz,{}),children:[{path:"",element:d.jsx(Gb,{})},{path:"skill",element:d.jsx(Kb,{})},{path:"skill/:id",element:d.jsx(Kb,{})},{path:"filelib",element:d.jsx(n_,{})},{path:"filelib/:id",element:d.jsx(R_,{})},{path:"skills",element:d.jsx(yJ,{})},{path:"model",element:d.jsx(PK,{})},{path:"sys",element:d.jsx(AJ,{})}]},{path:"model/doc",element:d.jsx(RK,{})},{path:"/flow/:id/",children:[{path:"",element:d.jsx(bW,{})}]},{path:"/chat",element:d.jsx(Gb,{})},{path:"/chat/:id/",element:d.jsx(aVt,{})},{path:"/report/:id/",element:d.jsx(MK,{})},{path:"*",element:d.jsx(YB,{to:"/",replace:
|
|||
|
|
`)===0?z.substr(1,z.length):z}).forEach(function(z){var _=z.split(":"),V=_.shift().trim();if(V){var H=_.join(":").trim();D.append(V,H)}}),D}S.call(P.prototype);function I(R,D){if(!(this instanceof I))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');D||(D={}),this.type="default",this.status=D.status===void 0?200:D.status,this.ok=this.status>=200&&this.status<300,this.statusText=D.statusText===void 0?"":""+D.statusText,this.headers=new m(D.headers),this.url=D.url||"",this._initBody(R)}S.call(I.prototype),I.prototype.clone=function(){return new I(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},I.error=function(){var R=new I(null,{status:0,statusText:""});return R.type="error",R};var M=[301,302,303,307,308];I.redirect=function(R,D){if(M.indexOf(D)===-1)throw new RangeError("Invalid status code");return new I(null,{status:D,headers:{location:R}})},i.DOMException=s.DOMException;try{new i.DOMException}catch{i.DOMException=function(D,$){this.message=D,this.name=$;var z=Error(D);this.stack=z.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function B(R,D){return new Promise(function($,z){var _=new P(R,D);if(_.signal&&_.signal.aborted)return z(new i.DOMException("Aborted","AbortError"));var V=new XMLHttpRequest;function H(){V.abort()}V.onload=function(){var X={status:V.status,statusText:V.statusText,headers:L(V.getAllResponseHeaders()||"")};X.url="responseURL"in V?V.responseURL:X.headers.get("X-Request-URL");var Y="response"in V?V.response:V.responseText;setTimeout(function(){$(new I(Y,X))},0)},V.onerror=function(){setTimeout(function(){z(new TypeError("Network request failed"))},0)},V.ontimeout=function(){setTimeout(function(){z(new TypeError("Network request failed"))},0)},V.onabort=function(){setTimeout(function(){z(new i.DOMException("Aborted","AbortError"))},0)};function K(X){try{return X===""&&s.location.href?s.location.href:X}catch{return X}}V.open(_.method,K(_.url),!0),_.credentials==="include"?V.withCredentials=!0:_.credentials==="omit"&&(V.withCredentials=!1),"responseType"in V&&(l.blob?V.responseType="blob":l.arrayBuffer&&_.headers.get("Content-Type")&&_.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(V.responseType="arraybuffer")),D&&typeof D.headers=="object"&&!(D.headers instanceof m)?Object.getOwnPropertyNames(D.headers).forEach(function(X){V.setRequestHeader(X,v(D.headers[X]))}):_.headers.forEach(function(X,Y){V.setRequestHeader(Y,X)}),_.signal&&(_.signal.addEventListener("abort",H),V.onreadystatechange=function(){V.readyState===4&&_.signal.removeEventListener("abort",H)}),V.send(typeof _._bodyInit>"u"?null:_._bodyInit)})}return B.polyfill=!0,s.fetch||(s.fetch=B,s.Headers=m,s.Request=P,s.Response=I),i.Headers=m,i.Request=P,i.Response=I,i.fetch=B,i})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=n.fetch?n:r;t=o.fetch,t.default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t}(K0,K0.exports)),K0.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof ar<"u"&&ar.fetch?n=ar.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof iae<"u"&&typeof window>"u"){var r=n||hVt();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(LS,LS.exports);var CJ=LS.exports;const SJ=pn(CJ),qF=sae({__proto__:null,default:SJ},[CJ]);function GF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function KF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GF(Object(n),!0).forEach(function(r){gVt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gVt(e,t,n){return t=mVt(t),t in e?Ob
|