unis_crm/dist/assets/index-D1YmE68l.js

582 lines
2.0 MiB
JavaScript
Raw Normal View History

(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function r(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(n){if(n.ep)return;n.ep=!0;const i=r(n);fetch(n.href,i)}})();var iC={exports:{}},bg={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var yO;function Vee(){if(yO)return bg;yO=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function r(a,n,i){var o=null;if(i!==void 0&&(o=""+i),n.key!==void 0&&(o=""+n.key),"key"in n){i={};for(var s in n)s!=="key"&&(i[s]=n[s])}else i=n;return n=i.ref,{$$typeof:t,type:a,key:o,ref:n!==void 0?n:null,props:i}}return bg.Fragment=e,bg.jsx=r,bg.jsxs=r,bg}var xO;function Fee(){return xO||(xO=1,iC.exports=Vee()),iC.exports}var g=Fee(),oC={exports:{}},Yt={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var bO;function Gee(){if(bO)return Yt;bO=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),h=Symbol.iterator;function v(H){return H===null||typeof H!="object"?null:(H=h&&H[h]||H["@@iterator"],typeof H=="function"?H:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,b={};function w(H,Z,te){this.props=H,this.context=Z,this.refs=b,this.updater=te||m}w.prototype.isReactComponent={},w.prototype.setState=function(H,Z){if(typeof H!="object"&&typeof H!="function"&&H!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,H,Z,"setState")},w.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function _(){}_.prototype=w.prototype;function T(H,Z,te){this.props=H,this.context=Z,this.refs=b,this.updater=te||m}var C=T.prototype=new _;C.constructor=T,x(C,w.prototype),C.isPureReactComponent=!0;var k=Array.isArray;function A(){}var M={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function R(H,Z,te){var ie=te.ref;return{$$typeof:t,type:H,key:Z,ref:ie!==void 0?ie:null,props:te}}function P(H,Z){return R(H.type,Z,H.props)}function j(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function V(H){var Z={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(te){return Z[te]})}var I=/\/+/g;function F(H,Z){return typeof H=="object"&&H!==null&&H.key!=null?V(""+H.key):Z.toString(36)}function G(H){switch(H.status){case"fulfilled":return H.value;case"rejected":throw H.reason;default:switch(typeof H.status=="string"?H.then(A,A):(H.status="pending",H.then(function(Z){H.status==="pending"&&(H.status="fulfilled",H.value=Z)},function(Z){H.status==="pending"&&(H.status="rejected",H.reason=Z)})),H.status){case"fulfilled":return H.value;case"rejected":throw H.reason}}throw H}function O(H,Z,te,ie,ce){var me=typeof H;(me==="undefined"||me==="boolean")&&(H=null);var ze=!1;if(H===null)ze=!0;else switch(me){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(H.$$typeof){case t:case e:ze=!0;break;case c:return ze=H._init,O(ze(H._payload),Z,te,ie,ce)}}if(ze)return ce=ce(H),ze=ie===""?"."+F(H,0):ie,k(ce)?(te="",ze!=null&&(te=ze.replace(I,"$&/")+"/"),O(ce,Z,te,"",function(Be){return Be})):ce!=null&&(j(ce)&&(ce=P(ce,te+(ce.key==null||H&&H.key===ce.key?"":(""+ce.key).replace(I,"$&/")+"/")+ze)),Z.push(ce)),1;ze=0;var Ce=ie===""?".":ie+":";if(k(H))for(var ge=0;ge<H.length;ge++)ie=H[ge],me=Ce+F(ie,ge),ze+=O(ie,Z,te,me,ce);else if(ge=v(H),typeof ge=="function")for(H=ge.call(H),ge=0;!(ie=H.next()).done;)ie=ie.value,me=Ce+F(ie,ge++),ze+=O(ie,Z,te,me,ce);else if(me==="object"){if(typeof H.then=="function")return O(G(H),Z,te,ie,ce);throw Z=String(H),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return ze}function U(H,Z,te){if(H==null)return H;var ie=[],ce=0;return O(H,ie,"","",function(me){return Z.call(te,me,ce++)}),ie}function $(H){if(H._status===-1){var Z=H._result;Z=Z(),Z.then(function(te){(H._status===0||H._status===-1)&&(H._status=1,H._result=te)},function(te){(H._status===0||H._status===-1)&&(H._status=2,H._result=te)}),H._status===-1&&(H._status=0,H._result=Z)}if(H._status===1)return H._result.default;throw H._result}var K=typeof reportError=="function"?reportError:function(H){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof H=="object"&&H!==null&&typeof H.message=="string"?String(H.message):String(H),
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var SO;function Hee(){return SO||(SO=1,(function(t){function e(O,U){var $=O.length;O.push(U);e:for(;0<$;){var K=$-1>>>1,q=O[K];if(0<n(q,U))O[K]=U,O[$]=q,$=K;else break e}}function r(O){return O.length===0?null:O[0]}function a(O){if(O.length===0)return null;var U=O[0],$=O.pop();if($!==U){O[0]=$;e:for(var K=0,q=O.length,H=q>>>1;K<H;){var Z=2*(K+1)-1,te=O[Z],ie=Z+1,ce=O[ie];if(0>n(te,$))ie<q&&0>n(ce,te)?(O[K]=ce,O[ie]=$,K=ie):(O[K]=te,O[Z]=$,K=Z);else if(ie<q&&0>n(ce,$))O[K]=ce,O[ie]=$,K=ie;else break e}}return U}function n(O,U){var $=O.sortIndex-U.sortIndex;return $!==0?$:O.id-U.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();t.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,h=3,v=!1,m=!1,x=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function C(O){for(var U=r(u);U!==null;){if(U.callback===null)a(u);else if(U.startTime<=O)a(u),U.sortIndex=U.expirationTime,e(l,U);else break;U=r(u)}}function k(O){if(x=!1,C(O),!m)if(r(l)!==null)m=!0,A||(A=!0,V());else{var U=r(u);U!==null&&G(k,U.startTime-O)}}var A=!1,M=-1,L=5,R=-1;function P(){return b?!0:!(t.unstable_now()-R<L)}function j(){if(b=!1,A){var O=t.unstable_now();R=O;var U=!0;try{e:{m=!1,x&&(x=!1,_(M),M=-1),v=!0;var $=h;try{t:{for(C(O),d=r(l);d!==null&&!(d.expirationTime>O&&P());){var K=d.callback;if(typeof K=="function"){d.callback=null,h=d.priorityLevel;var q=K(d.expirationTime<=O);if(O=t.unstable_now(),typeof q=="function"){d.callback=q,C(O),U=!0;break t}d===r(l)&&a(l),C(O)}else a(l);d=r(l)}if(d!==null)U=!0;else{var H=r(u);H!==null&&G(k,H.startTime-O),U=!1}}break e}finally{d=null,h=$,v=!1}U=void 0}}finally{U?V():A=!1}}}var V;if(typeof T=="function")V=function(){T(j)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,F=I.port2;I.port1.onmessage=j,V=function(){F.postMessage(null)}}else V=function(){w(j,0)};function G(O,U){M=w(function(){O(t.unstable_now())},U)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(O){O.callback=null},t.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<O?Math.floor(1e3/O):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_next=function(O){switch(h){case 1:case 2:case 3:var U=3;break;default:U=h}var $=h;h=U;try{return O()}finally{h=$}},t.unstable_requestPaint=function(){b=!0},t.unstable_runWithPriority=function(O,U){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var $=h;h=O;try{return U()}finally{h=$}},t.unstable_scheduleCallback=function(O,U,$){var K=t.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?K+$:K):$=K,O){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=$+q,O={id:c++,callback:U,priorityLevel:O,startTime:$,expirationTime:q,sortIndex:-1},$>K?(O.sortIndex=$,e(u,O),r(l)===null&&O===r(u)&&(x?(_(M),M=-1):x=!0,G(k,$-K))):(O.sortIndex=q,e(l,O),m||v||(m=!0,A||(A=!0,V()))),O},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(O){var U=h;return function(){var $=h;h=U;try{return O.apply(this,arguments)}finally{h=$}}}})(uC)),uC}var _O;function Uee(){return _O||(_O=1,lC.exports=Hee()),lC.exports}var cC={exports:{}},Ai={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var TO;function $ee(){if(TO)return Ai;TO=1;var t=HL();function e(l){var u="https://react.dev/errors/"+l;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)u+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var a={d:{f:r,r:function(){throw Error(e(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},n=Symbol.for("react.portal");function i(l,u,c){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:d==null?null:""+d,children:l,containerInfo:u,implementation:c}}var o=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(l,u){if(l==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return Ai.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Ai.createPortal=function(l,u){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(e(299));return i(l,u,null,c)},Ai.flushSync=function(l){var u=o.T,c=a.p;try{if(o.T=null,a.p=2,l)return l()}finally{o.T=u,a.p=c,a.d.f()}},Ai.preconnect=function(l,u){typeof l=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,a.d.C(l,u))},Ai.prefetchDNS=function(l){typeof l=="string"&&a.d.D(l)},Ai.preinit=function(l,u){if(typeof l=="string"&&u&&typeof u.as=="string"){var c=u.as,d=s(c,u.crossOrigin),h=typeof u.integrity=="string"?u.integrity:void 0,v=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;c==="style"?a.d.S(l,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:d,integrity:h,fetchPriority:v}):c==="script"&&a.d.X(l,{crossOrigin:d,integrity:h,fetchPriority:v,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},Ai.preinitModule=function(l,u){if(typeof l=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var c=s(u.as,u.crossOrigin);a.d.M(l,{crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&a.d.M(l)},Ai.preload=function(l,u){if(typeof l=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var c=u.as,d=s(c,u.crossOrigin);a.d.L(l,c,{crossOrigin:d,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},Ai.preloadModule=function(l,u){if(typeof l=="string")if(u){var c=s(u.as,u.crossOrigin);a.d.m(l,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else a.d.m(l)},Ai.requestFormReset=function(l){a.d.r(l)},Ai.unstable_batchedUpdates=function(l,u){return l(u)},Ai.useFormState=function(l,u,c){return o.H.useFormState(l,u,c)},Ai.useFormStatus=function(){return o.H.useHostTransitionStatus()},Ai.version="19.2.4",Ai}var CO;function rG(){if(CO)return cC.exports;CO=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),cC.exports=$ee(),cC.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var kO;function Wee(){if(kO)return wg;kO=1;var t=Uee(),e=HL(),r=rG();function a(f){var p="https://react.dev/errors/"+f;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+f+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(f){return!(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)}function i(f){var p=f,y=f;if(f.alternate)for(;p.return;)p=p.return;else{f=p;do p=f,(p.flags&4098)!==0&&(y=p.return),f=p.return;while(f)}return p.tag===3?y:null}function o(f){if(f.tag===13){var p=f.memoizedState;if(p===null&&(f=f.alternate,f!==null&&(p=f.memoizedState)),p!==null)return p.dehydrated}return null}function s(f){if(f.tag===31){var p=f.memoizedState;if(p===null&&(f=f.alternate,f!==null&&(p=f.memoizedState)),p!==null)return p.dehydrated}return null}function l(f){if(i(f)!==f)throw Error(a(188))}function u(f){var p=f.alternate;if(!p){if(p=i(f),p===null)throw Error(a(188));return p!==f?null:f}for(var y=f,S=p;;){var N=y.return;if(N===null)break;var D=N.alternate;if(D===null){if(S=N.return,S!==null){y=S;continue}break}if(N.child===D.child){for(D=N.child;D;){if(D===y)return l(N),f;if(D===S)return l(N),p;D=D.sibling}throw Error(a(188))}if(y.return!==S.return)y=N,S=D;else{for(var B=!1,W=N.child;W;){if(W===y){B=!0,y=N,S=D;break}if(W===S){B=!0,S=N,y=D;break}W=W.sibling}if(!B){for(W=D.child;W;){if(W===y){B=!0,y=D,S=N;break}if(W===S){B=!0,S=D,y=N;break}W=W.sibling}if(!B)throw Error(a(189))}}if(y.alternate!==S)throw Error(a(190))}if(y.tag!==3)throw Error(a(188));return y.stateNode.current===y?f:p}function c(f){var p=f.tag;if(p===5||p===26||p===27||p===6)return f;for(f=f.child;f!==null;){if(p=c(f),p!==null)return p;f=f.sibling}return null}var d=Object.assign,h=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),T=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function V(f){return f===null||typeof f!="object"?null:(f=j&&f[j]||f["@@iterator"],typeof f=="function"?f:null)}var I=Symbol.for("react.client.reference");function F(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===I?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case x:return"Fragment";case w:return"Profiler";case b:return"StrictMode";case k:return"Suspense";case A:return"SuspenseList";case R:return"Activity"}if(typeof f=="object")switch(f.$$typeof){case m:return"Portal";case T:return f.displayName||"Context";case _:return(f._context.displayName||"Context")+".Consumer";case C:var p=f.render;return f=f.displayName,f||(f=p.displayName||p.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case M:return p=f.displayName||null,p!==null?p:F(f.type)||"Memo";case L:p=f._payload,f=f._init;try{return F(f(p))}catch{}}return null}var G=Array.isArray,O=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},K=[],q=-1;function H(f){return{current:f}}function Z(f){0>q||(f.current=K[q],K[q]=null,q--)}function te(f,p){q++,K[q]=f.current,f.current=p}var ie=H(null),ce=H(null),me=H(null),ze=H(null);function Ce(f,p){switch(te(me,p),te(ce,f),te(ie,null),p.nodeType){case 9:case 11:f=(f=p.documentElement)&&(f=f.namespaceURI)?Fj(f):0;break;default:if(f=p.tagName,p=p.namespaceURI)p=Fj(p),f=Gj(p,f);else switch(f){case"svg":f=1;break;case"math":f=2;break;default:f=0}}Z(ie),te(ie,f)}function ge(){Z(ie),Z(ce),Z(me)}function Be(f){f.memoizedState!==null&&te(ze,f);var p=ie.current,y=Gj(p,f.type);p!==y&&(te(ce,f),te(ie,y))}function _e(f){
at`)?" (<anonymous>)":-1<y.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Oe+f+xt}var st=!1;function We(f,p){if(!f||st)return"";st=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var S={DetermineComponentFrameRoot:function(){try{if(p){var Ee=function(){throw Error()};if(Object.defineProperty(Ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ee,[])}catch(we){var pe=we}Reflect.construct(f,[],Ee)}else{try{Ee.call()}catch(we){pe=we}f.call(Ee.prototype)}}else{try{throw Error()}catch(we){pe=we}(Ee=f())&&typeof Ee.catch=="function"&&Ee.catch(function(){})}}catch(we){if(we&&pe&&typeof we.stack=="string")return[we.stack,pe.stack]}return[null,null]}};S.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var N=Object.getOwnPropertyDescriptor(S.DetermineComponentFrameRoot,"name");N&&N.configurable&&Object.defineProperty(S.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var D=S.DetermineComponentFrameRoot(),B=D[0],W=D[1];if(B&&W){var Q=B.split(`
`),he=W.split(`
`);for(N=S=0;S<Q.length&&!Q[S].includes("DetermineComponentFrameRoot");)S++;for(;N<he.length&&!he[N].includes("DetermineComponentFrameRoot");)N++;if(S===Q.length||N===he.length)for(S=Q.length-1,N=he.length-1;1<=S&&0<=N&&Q[S]!==he[N];)N--;for(;1<=S&&0<=N;S--,N--)if(Q[S]!==he[N]){if(S!==1||N!==1)do if(S--,N--,0>N||Q[S]!==he[N]){var Ae=`
`+Q[S].replace(" at new "," at ");return f.displayName&&Ae.includes("<anonymous>")&&(Ae=Ae.replace("<anonymous>",f.displayName)),Ae}while(1<=S&&0<=N);break}}}finally{st=!1,Error.prepareStackTrace=y}return(y=f?f.displayName||f.name:"")?Ye(y):""}function At(f,p){switch(f.tag){case 26:case 27:case 5:return Ye(f.type);case 16:return Ye("Lazy");case 13:return f.child!==p&&p!==null?Ye("Suspense Fallback"):Ye("Suspense");case 19:return Ye("SuspenseList");case 0:case 15:return We(f.type,!1);case 11:return We(f.type.render,!1);case 1:return We(f.type,!0);case 31:return Ye("Activity");default:return""}}function kt(f){try{var p="",y=null;do p+=At(f,y),y=f,f=f.return;while(f);return p}catch(S){return`
Error generating stack: `+S.message+`
`+S.stack}}var Jt=Object.prototype.hasOwnProperty,Nr=t.unstable_scheduleCallback,rr=t.unstable_cancelCallback,Fe=t.unstable_shouldYield,Mt=t.unstable_requestPaint,dr=t.unstable_now,ar=t.unstable_getCurrentPriorityLevel,sa=t.unstable_ImmediatePriority,va=t.unstable_UserBlockingPriority,rn=t.unstable_NormalPriority,wa=t.unstable_LowPriority,En=t.unstable_IdlePriority,pa=t.log,an=t.unstable_setDisableYieldValue,gr=null,Ar=null;function Hr(f){if(typeof pa=="function"&&an(f),Ar&&typeof Ar.setStrictMode=="function")try{Ar.setStrictMode(gr,f)}catch{}}var ye=Math.clz32?Math.clz32:xe,Rt=Math.log,Te=Math.LN2;function xe(f){return f>>>=0,f===0?32:31-(Rt(f)/Te|0)|0}var Pt=256,bt=262144,Vt=4194304;function Zt(f){var p=f&42;if(p!==0)return p;switch(f&-f){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return f&261888;case 262144:case 524288:case 1048576:case 2097152:return f&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return f&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return f}}function nr(f,p,y){var S=f.pendingLanes;if(S===0)return 0;var N=0,D=f.suspendedLanes,B=f.pingedLanes;f=f.warmLanes;var W=S&134217727;return W!==0?(S=W&~D,S!==0?N=Zt(S):(B&=W,B!==0?N=Zt(B):y||(y=W&~f,y!==0&&(N=Zt(y))))):(W=S&~D,W!==0?N=Zt(W):B!==0?N=Zt(B):y||(y=S&~f,y!==0&&(N=Zt(y)))),N===0?0:p!==0&&p!==N&&(p&D)===0&&(D=N&-N,y=p&-p,D>=y||D===32&&(y&4194048)!==0)?p:N}function _r(f,p){return(f.pendingLanes&~(f.suspendedLanes&~f.pingedLanes)&p)===0}function ma(f,p){switch(f){case 1:case 2:case 4:case 8:case 64:return p+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return p+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Mr(){var f=Vt;return Vt<<=1,(Vt&62914560)===0&&(Vt=4194304),f}function Zr(f){for(var p=[],y=0;31>y;y++)p.push(f);return p}function za(f,p){f.pendingLanes|=p,p!==268435456&&(f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0)}function la(f,p,y,S,N,D){var B=f.pendingLanes;f.pendingLanes=y,f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0,f.expiredLanes&=y,f.entangledLanes&=y,f.errorRecoveryDisabledLanes&=y,f.shellSuspendCounter=0;var W=f.entanglements,Q=f.expirationTimes,he=f.hiddenUpdates;for(y=B&~y;0<y;){var Ae=31-ye(y),Ee=1<<Ae;W[Ae]=0,Q[Ae]=-1;var pe=he[Ae];if(pe!==null)for(he[Ae]=null,Ae=0;Ae<pe.length;Ae++){var we=pe[Ae];we!==null&&(we.lane&=-536870913)}y&=~Ee}S!==0&&ut(f,S,0),D!==0&&N===0&&f.tag!==0&&(f.suspendedLanes|=D&~(B&~p))}function ut(f,p,y){f.pendingLanes|=p,f.suspendedLanes&=~p;var S=31-ye(p);f.entangledLanes|=p,f.entanglements[S]=f.entanglements[S]|1073741824|y&261930}function Da(f,p){var y=f.entangledLanes|=p;for(f=f.entanglements;y;){var S=31-ye(y),N=1<<S;N&p|f[S]&p&&(f[S]|=p),y&=~N}}function Tr(f,p){var y=p&-p;return y=(y&42)!==0?1:lr(y),(y&(f.suspendedLanes|p))!==0?0:y}function lr(f){switch(f){case 2:f=1;break;case 8:f=4;break;case 32:f=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:f=128;break;case 268435456:f=134217728;break;default:f=0}return f}function Ba(f){return f&=-f,2<f?8<f?(f&134217727)!==0?32:268435456:8:2}function Dr(){var f=U.p;return f!==0?f:(f=window.event,f===void 0?32:dO(f.type))}function Va(f,p){var y=U.p;try{return U.p=f,p()}finally{U.p=y}}var ua=Math.random().toString(36).slice(2),Ze="__reactFiber$"+ua,wr="__reactProps$"+ua,le="__reactContainer$"+ua,tt="__reactEvents$"+ua,Ot="__reactListeners$"+ua,pt="__reactHandles$"+ua,nn="__reactResources$"+ua,Sa="__rea
`).replace(lee,"")}function Bj(f,p){return p=zj(p),zj(f)===p}function ra(f,p,y,S,N,D){switch(y){case"children":typeof S=="string"?p==="body"||p==="textarea"&&S===""||ct(f,S):(typeof S=="number"||typeof S=="bigint")&&p!=="body"&&ct(f,""+S);break;case"className":In(f,"class",S);break;case"tabIndex":In(f,"tabindex",S);break;case"dir":case"role":case"viewBox":case"width":case"height":In(f,y,S);break;case"style":Qn(f,S,D);break;case"data":if(p!=="object"){In(f,"data",S);break}case"src":case"href":if(S===""&&(p!=="a"||y!=="href")){f.removeAttribute(y);break}if(S==null||typeof S=="function"||typeof S=="symbol"||typeof S=="boolean"){f.removeAttribute(y);break}S=Ts(""+S),f.setAttribute(y,S);break;case"action":case"formAction":if(typeof S=="function"){f.setAttribute(y,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof D=="function"&&(y==="formAction"?(p!=="input"&&ra(f,p,"name",N.name,N,null),ra(f,p,"formEncType",N.formEncType,N,null),ra(f,p,"formMethod",N.formMethod,N,null),ra(f,p,"formTarget",N.formTarget,N,null)):(ra(f,p,"encType",N.encType,N,null),ra(f,p,"method",N.method,N,null),ra(f,p,"target",N.target,N,null)));if(S==null||typeof S=="symbol"||typeof S=="boolean"){f.removeAttribute(y);break}S=Ts(""+S),f.setAttribute(y,S);break;case"onClick":S!=null&&(f.onclick=Ya);break;case"onScroll":S!=null&&vr("scroll",f);break;case"onScrollEnd":S!=null&&vr("scrollend",f);break;case"dangerouslySetInnerHTML":if(S!=null){if(typeof S!="object"||!("__html"in S))throw Error(a(61));if(y=S.__html,y!=null){if(N.children!=null)throw Error(a(60));f.innerHTML=y}}break;case"multiple":f.multiple=S&&typeof S!="function"&&typeof S!="symbol";break;case"muted":f.muted=S&&typeof S!="function"&&typeof S!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(S==null||typeof S=="function"||typeof S=="boolean"||typeof S=="symbol"){f.removeAttribute("xlink:href");break}y=Ts(""+S),f.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",y);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":S!=null&&typeof S!="function"&&typeof S!="symbol"?f.setAttribute(y,""+S):f.removeAttribute(y);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":S&&typeof S!="function"&&typeof S!="symbol"?f.setAttribute(y,""):f.removeAttribute(y);break;case"capture":case"download":S===!0?f.setAttribute(y,""):S!==!1&&S!=null&&typeof S!="function"&&typeof S!="symbol"?f.setAttribute(y,S):f.removeAttribute(y);break;case"cols":case"rows":case"size":case"span":S!=null&&typeof S!="function"&&typeof S!="symbol"&&!isNaN(S)&&1<=S?f.setAttribute(y,S):f.removeAttribute(y);break;case"rowSpan":case"start":S==null||typeof S=="function"||typeof S=="symbol"||isNaN(S)?f.removeAttribute(y):f.setAttribute(y,S);break;case"popover":vr("beforetoggle",f),vr("toggle",f),yn(f,"popover",S);break;case"xlinkActuate":Wa(f,"http://www.w3.org/1999/xlink","xlink:actuate",S);break;case"xlinkArcrole":Wa(f,"http://www.w3.org/1999/xlink","xlink:arcrole",S);break;case"xlinkRole":Wa(f,"http://www.w3.org/1999/xlink","xlink:role",S);break;case"xlinkShow":Wa(f,"http://www.w3.org/1999/xlink","xlink:show",S);break;case"xlinkTitle":Wa(f,"http://www.w3.org/1999/xlink","xlink:title",S);break;case"xlinkType":Wa(f,"http://www.w3.org/1999/xlink","xlink:type",S);break;case"xmlBase":Wa(f,"http://www.w3.org/XML/1998/namespace","xml:b
* react-router v7.13.1
*
* 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
*/var AO="popstate";function MO(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function qee(t={}){function e(a,n){var u;let i=(u=n.state)==null?void 0:u.masked,{pathname:o,search:s,hash:l}=i||a.location;return EA("",{pathname:o,search:s,hash:l},n.state&&n.state.usr||null,n.state&&n.state.key||"default",i?{pathname:a.location.pathname,search:a.location.search,hash:a.location.hash}:void 0)}function r(a,n){return typeof n=="string"?n:Y0(n)}return Kee(e,r,null,t)}function ja(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function ys(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Zee(){return Math.random().toString(36).substring(2,10)}function DO(t,e){return{usr:t.state,key:t.key,idx:e,masked:t.unstable_mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function EA(t,e,r=null,a,n){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?om(e):e,state:r,key:e&&e.key||a||Zee(),unstable_mask:n}}function Y0({pathname:t="/",search:e="",hash:r=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function om(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substring(r),t=t.substring(0,r));let a=t.indexOf("?");a>=0&&(e.search=t.substring(a),t=t.substring(0,a)),t&&(e.pathname=t)}return e}function Kee(t,e,r,a={}){let{window:n=document.defaultView,v5Compat:i=!1}=a,o=n.history,s="POP",l=null,u=c();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function c(){return(o.state||{idx:null}).idx}function d(){s="POP";let b=c(),w=b==null?null:b-u;u=b,l&&l({action:s,location:x.location,delta:w})}function h(b,w){s="PUSH";let _=MO(b)?b:EA(x.location,b,w);u=c()+1;let T=DO(_,u),C=x.createHref(_.unstable_mask||_);try{o.pushState(T,"",C)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;n.location.assign(C)}i&&l&&l({action:s,location:x.location,delta:1})}function v(b,w){s="REPLACE";let _=MO(b)?b:EA(x.location,b,w);u=c();let T=DO(_,u),C=x.createHref(_.unstable_mask||_);o.replaceState(T,"",C),i&&l&&l({action:s,location:x.location,delta:0})}function m(b){return Qee(b)}let x={get action(){return s},get location(){return t(n,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return n.addEventListener(AO,d),l=b,()=>{n.removeEventListener(AO,d),l=null}},createHref(b){return e(n,b)},createURL:m,encodeLocation(b){let w=m(b);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:h,replace:v,go(b){return o.go(b)}};return x}function Qee(t,e=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),ja(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:Y0(t);return a=a.replace(/ $/,"%20"),!e&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function aG(t,e,r="/"){return Jee(t,e,r,!1)}function Jee(t,e,r,a){let n=typeof e=="string"?om(e):e,i=Ku(n.pathname||"/",r);if(i==null)return null;let o=nG(t);ete(o);let s=null;for(let l=0;s==null&&l<o.length;++l){let u=dte(i);s=ute(o[l],u,a)}return s}function nG(t,e=[],r=[],a="",n=!1){let i=(o,s,l=n,u)=>{let c={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(a)&&l)return;ja(c.relativePath.startsWith(a),`Absolute route path "${c.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(a.length)}let d=Gl([a,c.relativePath]),h=r.concat(c);o.children&&o.children.length>0&&(ja(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),nG(o.children,e,h,d,l)),!(o.path==null&&!o.index)&&e.push({path:d,score:ste(d,o.index),routesMeta:h})};return t.forEach((o,s)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,s);else for(let u of iG(o.path))i(o,s,!0,u)}),e}function iG(t){
Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let c=po(),d;if(e){let w=typeof e=="string"?om(e):e;ja(l==="/"||((b=w.pathname)==null?void 0:b.startsWith(l)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${w.pathname}" was given in the \`location\` prop.`),d=w}else d=c;let h=d.pathname||"/",v=h;if(l!=="/"){let w=l.replace(/^\//,"").split("/");v="/"+h.replace(/^\//,"").split("/").slice(w.length).join("/")}let m=aG(t,{pathname:v});ys(u||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),ys(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let x=zte(m&&m.map(w=>Object.assign({},w,{params:Object.assign({},o,w.params),pathname:Gl([l,a.encodeLocation?a.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Gl([l,a.encodeLocation?a.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),n,r);return e&&x?E.createElement(jy.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...d},navigationType:"POP"}},x):x}function Pte(){let t=Hte(),e=xte(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,a="rgba(200,200,200, 0.5)",n={padding:"0.5rem",backgroundColor:a},i={padding:"2px 4px",backgroundColor:a},o=null;return console.error("Error handled by React Router default ErrorBoundary:",t),o=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:i},"ErrorBoundary")," or"," ",E.createElement("code",{style:i},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},e),r?E.createElement("pre",{style:n},r):null,o)}var Ite=E.createElement(Pte,null),vG=class extends E.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,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const r=Ate(t.digest);r&&(t=r)}let e=t!==void 0?E.createElement(el.Provider,{value:this.props.routeContext},E.createElement($L.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?E.createElement(jte,{error:t},e):e}};vG.contextType=Ste;var fC=new WeakMap;function jte({children:t,error:e}){let{basename:r}=E.useContext(Oo);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let a=Nte(e.digest);if(a){let n=fC.get(e);if(n)throw n;let i=sG(a.location,r);if(oG&&!fC.get(e))if(i.isExternal||a.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:a.replace}));throw fC.set(e,o),o}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return t}function Ote({
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Are=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Mre=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,a)=>a?a.toUpperCase():r.toLowerCase()),jO=t=>{const e=Mre(t);return e.charAt(0).toUpperCase()+e.slice(1)},wG=(...t)=>t.filter((e,r,a)=>!!e&&e.trim()!==""&&a.indexOf(e)===r).join(" ").trim(),Dre=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Lre={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.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ere=E.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:n="",children:i,iconNode:o,...s},l)=>E.createElement("svg",{ref:l,...Lre,width:e,height:e,stroke:t,strokeWidth:a?Number(r)*24/Number(e):r,className:wG("lucide",n),...!i&&!Dre(s)&&{"aria-hidden":"true"},...s},[...o.map(([u,c])=>E.createElement(u,c)),...Array.isArray(i)?i:[i]]));/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Je=(t,e)=>{const r=E.forwardRef(({className:a,...n},i)=>E.createElement(Ere,{ref:i,iconNode:e,className:wG(`lucide-${Are(jO(t))}`,`lucide-${t}`,a),...n}));return r.displayName=jO(t),r};/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Rre=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],SG=Je("activity",Rre);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pre=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ire=Je("arrow-left",Pre);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jre=[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]],pb=Je("arrow-right-left",jre);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ore=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],zre=Je("arrow-up",Ore);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Bre=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]],Vre=Je("badge-dollar-sign",Bre);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fre=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],OO=Je("bell",Fre);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gre=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],g_=Je("briefcase-business",Gre);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Hre=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],Ure=Je("briefcase",Hre);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $re=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],q0=Je("building-2",$re);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Wre=[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],zO=Je("building",Wre);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yre=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]],Xre=Je("calendar-check",Yre);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qre=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],Zre=Je("calendar-days",qre);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Kre=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],_G=Je("calendar",Kre);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qre=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],BO=Je("camera",Qre);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jre=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],TG=Je("chart-column",Jre);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eae=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],tae=Je("chart-pie",eae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rae=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Fu=Je("check",rae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const aae=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],zy=Je("chevron-down",aae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nae=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],VO=Je("chevron-right",nae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iae=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ip=Je("circle-check",iae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oae=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]],sae=Je("circle-dollar-sign",oae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lae=[["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"}]],CG=Je("circle-question-mark",lae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uae=[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],cae=Je("circle-user-round",uae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dae=[["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"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],fae=Je("clipboard-list",dae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hae=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],kG=Je("clock",hae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vae=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],IA=Je("dollar-sign",vae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pae=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],By=Je("download",pae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mae=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],gae=Je("ellipsis-vertical",mae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yae=[["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"}]],xae=Je("external-link",yae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bae=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],vC=Je("eye-off",bae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wae=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],pC=Je("eye",wae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sae=[["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"}]],um=Je("file-text",Sae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _ae=[["path",{d:"M11 15h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 17",key:"geh8rc"}],["path",{d:"m7 21 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9",key:"1fto5m"}],["path",{d:"m2 16 6 6",key:"1pfhp9"}],["circle",{cx:"16",cy:"9",r:"2.9",key:"1n0dlu"}],["circle",{cx:"6",cy:"5",r:"3",key:"151irh"}]],Tae=Je("hand-coins",_ae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Cae=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],NG=Je("hash",Cae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kae=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Nae=Je("house",kae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Aae=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z",key:"1m329m"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]],Mae=Je("landmark",Aae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Dae=[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]],Lae=Je("list-filter",Dae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Eae=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],Rae=Je("list-todo",Eae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pae=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Iae=Je("log-out",Pae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jae=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Oae=Je("mail",jae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zae=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],KL=Je("map-pin",zae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Bae=[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]],Vae=Je("map-pinned",Bae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fae=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],Gae=Je("megaphone",Fae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Hae=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],Uae=Je("mic",Hae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $ae=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],jA=Je("moon",$ae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Wae=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],AG=Je("notebook-pen",Wae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yae=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 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.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Xae=Je("package",Yae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qae=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],y_=Je("paperclip",qae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zae=[["path",{d:"M13 2a9 9 0 0 1 9 9",key:"1itnx2"}],["path",{d:"M13 6a5 5 0 0 1 5 5",key:"11nki7"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Kae=Je("phone-call",Zae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qae=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],MG=Je("phone",Qae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jae=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Rw=Je("plus",Jae);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ene=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],C0=Je("refresh-cw",ene);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tne=[["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"}]],rne=Je("rocket",tne);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ane=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],nne=Je("rotate-ccw",ane);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ine=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Qu=Je("search",ine);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const one=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],sne=Je("send",one);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lne=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],une=Je("settings",lne);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cne=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],dne=Je("shield-alert",cne);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fne=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],DG=Je("shield",fne);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hne=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],vne=Je("shopping-cart",hne);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pne=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],mne=Je("square",pne);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gne=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]],yne=Je("store",gne);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xne=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],OA=Je("sun",xne);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bne=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],wne=Je("tag",bne);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sne=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],_ne=Je("target",Sne);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Tne=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],FO=Je("trash-2",Tne);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Cne=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],LG=Je("trending-up",Cne);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kne=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],EG=Je("triangle-alert",kne);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Nne=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],Ane=Je("trophy",Nne);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Mne=[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M19 16v6",key:"tddt3s"}],["path",{d:"M22 19h-6",key:"vcuq98"}]],Dne=Je("user-round-plus",Mne);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Lne=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Pw=Je("user",Lne);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ene=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],x_=Je("users",Ene);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Rne=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],Pne=Je("wallet",Rne);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ine=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Oa=Je("x",Ine);/**
* @license lucide-react v0.546.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jne=[["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"}]],One=Je("zap",jne);function RG(t){var e,r,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(r=RG(t[e]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}function zne(){for(var t,e,r=0,a="",n=arguments.length;r<n;r++)(t=arguments[r])&&(e=RG(t))&&(a&&(a+=" "),a+=e);return a}const Bne=(t,e)=>{const r=new Array(t.length+e.length);for(let a=0;a<t.length;a++)r[a]=t[a];for(let a=0;a<e.length;a++)r[t.length+a]=e[a];return r},Vne=(t,e)=>({classGroupId:t,validator:e}),PG=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),Iw="-",GO=[],Fne="arbitrary..",Gne=t=>{const e=Une(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return Hne(o);const s=o.split(Iw),l=s[0]===""&&s.length>1?1:0;return IG(s,l,e)},getConflictingClassGroupIds:(o,s)=>{if(s){const l=a[o],u=r[o];return l?u?Bne(u,l):l:u||GO}return r[o]||GO}}},IG=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const n=t[e],i=r.nextPart.get(n);if(i){const u=IG(t,e+1,i);if(u)return u}const o=r.validators;if(o===null)return;const s=e===0?t.join(Iw):t.slice(e).join(Iw),l=o.length;for(let u=0;u<l;u++){const c=o[u];if(c.validator(s))return c.classGroupId}},Hne=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),r=e.indexOf(":"),a=e.slice(0,r);return a?Fne+a:void 0})(),Une=t=>{const{theme:e,classGroups:r}=t;return $ne(r,e)},$ne=(t,e)=>{const r=PG();for(const a in t){const n=t[a];QL(n,r,a,e)}return r},QL=(t,e,r,a)=>{const n=t.length;for(let i=0;i<n;i++){const o=t[i];Wne(o,e,r,a)}},Wne=(t,e,r,a)=>{if(typeof t=="string"){Yne(t,e,r);return}if(typeof t=="function"){Xne(t,e,r,a);return}qne(t,e,r,a)},Yne=(t,e,r)=>{const a=t===""?e:jG(e,t);a.classGroupId=r},Xne=(t,e,r,a)=>{if(Zne(t)){QL(t(a),e,r,a);return}e.validators===null&&(e.validators=[]),e.validators.push(Vne(r,t))},qne=(t,e,r,a)=>{const n=Object.entries(t),i=n.length;for(let o=0;o<i;o++){const[s,l]=n[o];QL(l,jG(e,s),r,a)}},jG=(t,e)=>{let r=t;const a=e.split(Iw),n=a.length;for(let i=0;i<n;i++){const o=a[i];let s=r.nextPart.get(o);s||(s=PG(),r.nextPart.set(o,s)),r=s}return r},Zne=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Kne=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=Object.create(null),a=Object.create(null);const n=(i,o)=>{r[i]=o,e++,e>t&&(e=0,a=r,r=Object.create(null))};return{get(i){let o=r[i];if(o!==void 0)return o;if((o=a[i])!==void 0)return n(i,o),o},set(i,o){i in r?r[i]=o:n(i,o)}}},zA="!",HO=":",Qne=[],UO=(t,e,r,a,n)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:a,isExternal:n}),Jne=t=>{const{prefix:e,experimentalParseClassName:r}=t;let a=n=>{const i=[];let o=0,s=0,l=0,u;const c=n.length;for(let x=0;x<c;x++){const b=n[x];if(o===0&&s===0){if(b===HO){i.push(n.slice(l,x)),l=x+1;continue}if(b==="/"){u=x;continue}}b==="["?o++:b==="]"?o--:b==="("?s++:b===")"&&s--}const d=i.length===0?n:n.slice(l);let h=d,v=!1;d.endsWith(zA)?(h=d.slice(0,-1),v=!0):d.startsWith(zA)&&(h=d.slice(1),v=!0);const m=u&&u>l?u-l:void 0;return UO(i,v,h,m)};if(e){const n=e+HO,i=a;a=o=>o.startsWith(n)?i(o.slice(n.length)):UO(Qne,!1,o,void 0,!0)}if(r){const n=a;a=i=>r({className:i,parseClassName:n})}return a},eie=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((r,a)=>{e.set(r,1e6+a)}),r=>{const a=[];let n=[];for(let i=0;i<r.length;i++){const o=r[i],s=o[0]==="[",l=e.has(o);s||l?(n.length>0&&(n.sort(),a.push(...n),n=[]),a.push(o)):n.push(o)}return n.length>0&&(n.sort(),a.push(...n)),a}},tie=t=>({cache:Kne(t.cacheSize),parseClassName:Jne(t),sortModifiers:eie(t),...Gne(t)}),rie=/\s+/,aie=(t,e)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n,sortModifiers:i}=e,o=[],s=t.trim().split(rie);let l="";for(let u=s.length-1;u>=0;u-=1){const c=s[u],{isExternal:d,modifiers:h,hasImportantModi
[data-motion-pop-id="${o}"] {
position: absolute !important;
width: ${v}px !important;
height: ${m}px !important;
${T}px !important;
${C}px !important;
}
`),()=>{var M;(M=s.current)==null||M.removeAttribute("data-motion-pop-id"),A.contains(k)&&A.removeChild(k)}},[e]),g.jsx(pue,{isPresent:e,childRef:s,sizeRef:l,pop:i,children:i===!1?t:E.cloneElement(t,{ref:d})})}const gue=({children:t,initial:e,isPresent:r,onExitComplete:a,custom:n,presenceAffectsLayout:i,mode:o,anchorX:s,anchorY:l,root:u})=>{const c=tE(yue),d=E.useId();let h=!0,v=E.useMemo(()=>(h=!1,{id:d,initial:e,isPresent:r,custom:n,onExitComplete:m=>{c.set(m,!0);for(const x of c.values())if(!x)return;a&&a()},register:m=>(c.set(m,!1),()=>c.delete(m))}),[r,c,a]);return i&&h&&(v={...v}),E.useMemo(()=>{c.forEach((m,x)=>c.set(x,!1))},[r]),E.useEffect(()=>{!r&&!c.size&&a&&a()},[r]),t=g.jsx(mue,{pop:o==="popLayout",isPresent:r,anchorX:s,anchorY:l,root:u,children:t}),g.jsx(b_.Provider,{value:v,children:t})};function yue(){return new Map}function SU(t=!0){const e=E.useContext(b_);if(e===null)return[!0,null];const{isPresent:r,onExitComplete:a,register:n}=e,i=E.useId();E.useEffect(()=>{if(t)return n(i)},[t]);const o=E.useCallback(()=>t&&a&&a(i),[i,a,t]);return!r&&a?[!1,o]:[!0]}const bb=t=>t.key||"";function Z3(t){const e=[];return E.Children.forEach(t,r=>{E.isValidElement(r)&&e.push(r)}),e}const co=({children:t,custom:e,initial:r=!0,onExitComplete:a,presenceAffectsLayout:n=!0,mode:i="sync",propagate:o=!1,anchorX:s="left",anchorY:l="top",root:u})=>{const[c,d]=SU(o),h=E.useMemo(()=>Z3(t),[t]),v=o&&!c?[]:h.map(bb),m=E.useRef(!0),x=E.useRef(h),b=tE(()=>new Map),w=E.useRef(new Set),[_,T]=E.useState(h),[C,k]=E.useState(h);ZG(()=>{m.current=!1,x.current=h;for(let L=0;L<C.length;L++){const R=bb(C[L]);v.includes(R)?(b.delete(R),w.current.delete(R)):b.get(R)!==!0&&b.set(R,!1)}},[C,v.length,v.join("-")]);const A=[];if(h!==_){let L=[...h];for(let R=0;R<C.length;R++){const P=C[R],j=bb(P);v.includes(j)||(L.splice(R,0,P),A.push(P))}return i==="wait"&&A.length&&(L=A),k(Z3(L)),T(h),null}const{forceRender:M}=E.useContext(eE);return g.jsx(g.Fragment,{children:C.map(L=>{const R=bb(L),P=o&&!c?!1:h===C||v.includes(R),j=()=>{if(w.current.has(R))return;if(b.has(R))w.current.add(R),b.set(R,!0);else return;let V=!0;b.forEach(I=>{I||(V=!1)}),V&&(M==null||M(),k(x.current),o&&(d==null||d()),a&&a())};return g.jsx(gue,{isPresent:P,initial:!m.current||r?void 0:!1,custom:e,presenceAffectsLayout:n,mode:i,root:u,onExitComplete:P?void 0:j,anchorX:s,anchorY:l,children:L},R)})})},_U=E.createContext({strict:!1}),K3={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Q3=!1;function xue(){if(Q3)return;const t={};for(const e in K3)t[e]={isEnabled:r=>K3[e].some(a=>!!r[a])};QH(t),Q3=!0}function TU(){return xue(),ile()}function bue(t){const e=TU();for(const r in t)e[r]={...e[r],...t[r]};QH(e)}const wue=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Hw(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||wue.has(t)}let CU=t=>!Hw(t);function Sue(t){typeof t=="function"&&(CU=e=>e.startsWith("on")?!Hw(e):t(e))}try{Sue(require("@emotion/is-prop-valid").default)}catch{}function _ue(t,e,r){const a={};for(const n in t)n==="values"&&typeof t.values=="object"||gi(t[n])||(CU(n)||r===!0&&Hw(n)||!e&&!Hw(n)||t.draggable&&n.startsWith("onDrag"))&&(a[n]=t[n]);return a}const __=E.createContext({});function T
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var hM=function(t,e){return hM=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(r[n]=a[n])},hM(t,e)};function se(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");hM(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var mde=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})(),gde=(function(){function t(){this.browser=new mde,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t})(),Ut=new gde;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ut.wxa=!0,Ut.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ut.worker=!0:!Ut.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Ut.node=!0,Ut.svgSupported=!0):yde(navigator.userAgent,Ut);function yde(t,e){var r=e.browser,a=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);a&&(r.firefox=!0,r.version=a[1]),n&&(r.ie=!0,r.version=n[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var FE=12,n$="sans-serif",Ju=FE+"px "+n$,xde=20,bde=100,wde="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Sde(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var a=String.fromCharCode(r+32),n=(t.charCodeAt(r)-xde)/bde;e[a]=n}return e}var _de=Sde(wde),qs={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var t,e;return function(r,a){if(!t){var n=qs.createCanvas();t=n&&n.getContext("2d")}if(t)return e!==a&&(e=t.font=a||Ju),t.measureText(r);r=r||"",a=a||Ju;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||FE,s=0;if(a.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=_de[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var a=new Image;return a.onload=e,a.onerror=r,a.src=t,a}},i$=ql(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),o$=ql(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),hm=Object.prototype.toString,C_=Array.prototype,Tde=C_.forEach,Cde=C_.filter,GE=C_.slice,kde=C_.map,v4=(function(){}).constructor,Tb=v4?v4.prototype:null,HE="__proto__",Nde=2311;function s$(){return Nde++}function UE(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function et(t){if(t==null||typeof t!="object")return t;var e=t,r=hm.call(t);if(r==="[object Array]"){if(!L0(t)){e=[];for(var a=0,n=t.length;a<n;a++)e[a]=et(t[a])}}else if(o$[r]){if(!L0(t)){var i=t.constructor;if(i.from)e=i.from(t);else{e=new i(t.length);for(var a=0,n=t.length;a<n;a++)e[a]=t[a]}}}else if(!i$[r]&&!L0(t)&&!Bp(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==HE&&(e[o]=et(t[o]))}return e}function Ct(t,e,r){if(!it(e)||!it(t))return r?et(e):t;for(var a in e)if(e.
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var pM=function(t,e){return pM=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(r[n]=a[n])},pM(t,e)};function ia(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");pM(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Hh(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function Ui(t,e){return t[0]=e[0],t[1]=e[1],t}function Uu(t){return[t[0],t[1]]}function YE(t,e,r){return t[0]=e,t[1]=r,t}function m4(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function mM(t,e,r,a){return t[0]=e[0]+r[0]*a,t[1]=e[1]+r[1]*a,t}function ih(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function gM(t){return Math.sqrt(Ide(t))}function Ide(t){return t[0]*t[0]+t[1]*t[1]}function lw(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function vm(t,e){var r=gM(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function yM(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var cd=yM;function jde(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var gh=jde;function uw(t,e,r,a){return t[0]=e[0]+a*(r[0]-e[0]),t[1]=e[1]+a*(r[1]-e[1]),t}function tn(t,e,r){var a=e[0],n=e[1];return t[0]=r[0]*a+r[2]*n+r[4],t[1]=r[1]*a+r[3]*n+r[5],t}function dd(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function fd(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var Av=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),Ode=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Av(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,r.drift(i,o,e),this.handler.dispatchToElement(new Av(r,e),"drag",e.event);var s=this.handler.findHover(a,n,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Av(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Av(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Av(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Av(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),ws=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(n=a,a=r,r=null),!a||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:r,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,c=i[e][u];return c&&c.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(r){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==r&&n.push(a[e][i]);a[e]=n}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},t.prototype.trigger=function(e){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;cas
`),i=n.length;if(i===1)return G4(n[0],e,r,a);for(var o=new ot(0,0,0,0),s=0;s<n.length;s++){var l=G4(n[s],e,r,a);s===0?o.copy(l):o.union(l)}return o}function Fp(t,e,r,a){return r==="right"?a?t+=e:t-=e:r==="center"&&(a?t+=e/2:t-=e/2),t}function yh(t,e,r,a){return r==="middle"?a?t+=e/2:t-=e/2:r==="bottom"&&(a?t+=e:t-=e),t}function Uy(t){return Wl(t).stWideCharWidth}function Ks(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function nS(t,e,r){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,c="left",d="top";if(a instanceof Array)l+=Ks(a[0],r.width),u+=Ks(a[1],r.height),c=null,d=null;else switch(a){case"left":l-=n,u+=s,c="right",d="middle";break;case"right":l+=n+o,u+=s,d="middle";break;case"top":l+=o/2,u-=n,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+n,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=n,u+=s,d="middle";break;case"insideRight":l+=o-n,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=n,c="center";break;case"insideBottom":l+=o/2,u+=i-n,c="center",d="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,c="right";break;case"insideBottomLeft":l+=n,u+=i-n,d="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,c="right",d="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=d,t}var JC="__zr_normal__",ek=Kl.concat(["ignore"]),Ffe=ql(Kl,function(t,e){return t[e]=!0,t},{ignore:!1}),Lv={},Gfe=new ot(0,0,0,0),Rb=[],R_=(function(){function t(e){this.id=s$(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,a){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=r.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;i.copyTransform(r);var c=a.position!=null,d=a.autoOverflowArea,h=void 0;if((d||c)&&(h=Gfe,a.layoutRect?h.copy(a.layoutRect):h.copy(this.getBoundingRect()),n||h.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(Lv,a,h):nS(Lv,a,h),i.x=Lv.x,i.y=Lv.y,o=Lv.align,s=Lv.verticalAlign;var v=a.origin;if(v&&a.rotation!=null){var m=void 0,x=void 0;v==="center"?(m=h.width*.5,x=h.height*.5):(m=Ks(v[0],h.width),x=Ks(v[1],h.height)),u=!0,i.originX=-i.x+m+(n?0:h.x),i.originY=-i.y+x+(n?0:h.y)}}a.rotation!=null&&(i.rotation=a.rotation);var b=a.offset;b&&(i.x+=b[0],i.y+=b[1],u||(i.originX=-b[0],i.originY=-b[1]));var w=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(d){var _=w.overflowRect=w.overflowRect||new ot(0,0,0,0);i.getLocalTransform(Rb),Zs(Rb,Rb),ot.copy(_,h),_.applyTransform(Rb)}else w.overflowRect=null;var T=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,C=void 0,k=void 0,A=void 0;T&&this.canBeInsideText()?(C=a.insideFill,k=a.insideStroke,(C==null||C==="auto")&&(C=this.getInsideTextFill()),(k==null||k==="auto")&&(k=this.getInsideTextStroke(C),A=!0)):(C=a.outsideFill,k=a.outsideStroke,(C==null||C==="auto")&&(C=this.getOutsideFill()),(k==null||k==="auto")&&(k=this.getOutsideStroke(C),A=!0)),C=C||"#000",(C!==w.fill||k!==w.stroke||A!==w.autoStroke||o!==w.align||s!==w.verticalAlign)&&(l=!0,w.fill=C,w.stroke=k,w.autoStroke=A,w.align=o,w.verticalAlign=s,r.setDefaultTextStyle(w)),r.__dirty|=Lo,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?zM:OM},t.prototype.getOu
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var vw={},j$={};function Yfe(t){delete j$[t]}function Xfe(t){if(!t)return!1;if(typeof t=="string")return eS(t,1)<jM;if(t.colorStops){for(var e=t.colorStops,r=0,a=e.length,n=0;n<a;n++)r+=eS(e[n].color,1);return r/=a,r<jM}return!1}var qfe=(function(){function t(e,r,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=r,this.id=e;var i=new ufe,o=a.renderer||"canvas";vw[o]||(o=Wt(vw)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new vw[o](r,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Ut.node&&!Ut.worker&&!l?new zfe(s.getViewportRoot(),s.root):null,c=a.useCoarsePointer,d=c==null||c==="auto"?Ut.touchEventsSupported:!!c,h=44,v;d&&(v=$e(a.pointerSize,h)),this.handler=new v$(i,s,u,s.root,v),this.animation=new Lfe({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Xfe(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var r,a=yp();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var n=yp();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,a){return this._disposed||this.handler.on(e,r,a),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof Qe&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Yfe(this.id))},t})();function H4(t,e){var r=new qfe(s$(),t,e);return j$[r.id]=r,r}function Zfe(t,e){vw[t]=e}var BM;function Kfe(t){if(typeof
`);i=J$(r,a,n,i);for(var s=!1,l={},u=0,c=o.length;u<c;u++)eW(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
`),t.isTruncated=s}function J$(t,e,r,a){a=a||{};var n=ve({},a);r=$e(r,"..."),n.maxIterations=$e(a.maxIterations,2);var i=n.minChar=$e(a.minChar,0),o=n.fontMeasureInfo=Wl(e),s=o.asciiCharWidth;n.placeholder=$e(a.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<i&&l>=s;u++)l-=s;var c=Yl(o,r);return c>l&&(r="",c=0),l=t-c,n.ellipsis=r,n.ellipsisWidth=c,n.contentWidth=l,n.containerWidth=t,n}function eW(t,e,r){var a=r.containerWidth,n=r.contentWidth,i=r.fontMeasureInfo;if(!a){t.textLine="",t.isTruncated=!1;return}var o=Yl(i,e);if(o<=a){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?Ohe(e,n,i):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=Yl(i,e)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function Ohe(t,e,r){for(var a=0,n=0,i=t.length;n<i&&a<e;n++)a+=P$(r,t.charCodeAt(n));return n}function zhe(t,e,r,a){var n=n5(t),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,c=i==="truncate",d=Uy(u),h=$e(e.lineHeight,d),v=e.lineOverflow==="truncate",m=!1,x=e.width;x==null&&r!=null&&(x=r-s);var b=e.height;b==null&&a!=null&&(b=a-l);var w;x!=null&&(i==="break"||i==="breakAll")?w=n?tW(n,e.font,x,i==="breakAll",0).lines:[]:w=n?n.split(`
`):[];var _=w.length*h;if(b==null&&(b=_),_>b&&v){var T=Math.floor(b/h);m=m||w.length>T,w=w.slice(0,T),_=w.length*h}if(n&&c&&x!=null)for(var C=J$(x,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),k={},A=0;A<w.length;A++)eW(k,w[A],C),w[A]=k.textLine,m=m||k.isTruncated;for(var M=b,L=0,R=Wl(u),A=0;A<w.length;A++)L=Math.max(Yl(R,w[A]),L);x==null&&(x=L);var P=x;return M+=l,P+=s,{lines:w,height:b,outerWidth:P,outerHeight:M,lineHeight:h,calculatedLineHeight:d,contentWidth:L,contentHeight:_,width:x,isTruncated:m}}var Bhe=(function(){function t(){}return t})(),K4=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})(),Vhe=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function Fhe(t,e,r,a,n){var i=new Vhe,o=n5(t);if(!o)return i;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=e.width;c==null&&r!=null&&(c=r-l);var d=e.height;d==null&&a!=null&&(d=a-u);for(var h=e.overflow,v=(h==="break"||h==="breakAll")&&c!=null?{width:c,accumWidth:0,breakAll:h==="breakAll"}:null,m=ik.lastIndex=0,x;(x=ik.exec(o))!=null;){var b=x.index;b>m&&ok(i,o.substring(m,b),e,v),ok(i,x[2],e,v,x[1]),m=ik.lastIndex}m<o.length&&ok(i,o.substring(m,o.length),e,v);var w=[],_=0,T=0,C=h==="truncate",k=e.lineOverflow==="truncate",A={};function M(me,ze,Ce){me.width=ze,me.lineHeight=Ce,_+=Ce,T=Math.max(T,ze)}e:for(var L=0;L<i.lines.length;L++){for(var R=i.lines[L],P=0,j=0,V=0;V<R.tokens.length;V++){var I=R.tokens[V],F=I.styleName&&e.rich[I.styleName]||{},G=I.textPadding=F.padding,O=G?G[1]+G[3]:0,U=I.font=F.font||e.font;I.contentHeight=Uy(U);var $=$e(F.height,I.contentHeight);if(I.innerHeight=$,G&&($+=G[0]+G[2]),I.height=$,I.lineHeight=Io(F.lineHeight,e.lineHeight,$),I.align=F&&F.align||n,I.verticalAlign=F&&F.verticalAlign||"middle",k&&d!=null&&_+I.lineHeight>d){var K=i.lines.length;V>0?(R.tokens=R.tokens.slice(0,V),M(R,j,P),i.lines=i.lines.slice(0,L+1)):i.lines=i.lines.slice(0,L),i.isTruncated=i.isTruncated||i.lines.length<K;break e}var q=F.width,H=q==null||q==="auto";if(typeof q=="string"&&q.charAt(q.length-1)==="%")I.percentWidth=q,w.push(I),I.contentWidth=Yl(Wl(U),I.text);else{if(H){var Z=F.backgroundColor,te=Z&&Z.image;te&&(te=Ihe(te),I_(te)&&(I.width=Math.max(I.width,te.width*$/te.height)))}var ie=C&&c!=null?c-j:null;ie!=null&&ie<I.width?!H||ie<O?(I.text="",I.width=I.contentWidth=0):(jhe(A,I.text,ie-O,U,e.ellipsis,{minChar:e.truncateMinChar}),I.text=A.text,i.isTruncated=i.isTruncated||A.isTruncated,I.width=I.contentWidth=Yl(Wl(U),I.text)):I.contentWidth=Yl(Wl(U),I.text)}I.width+=O,j+=I.width,F&&(P=Math.max(P,I.lineHeight))}M(R,j,P)}i.outerWidth=i.width=$e(c,T),i.outerHeight=i.height=$e(d,_),i.contentHeight=_,i.contentWidth=T,i.outerWidth+=l,i.outerHeight+=u;for(var L=0;L<w.length;L++){var I=w[L],ce=I.percentWidth;I.width=parseInt(ce,10)/100*i.width}return i}function ok(t,e,r,a,n){var i=e==="",o=n&&r.rich[n]||{},s=t.lines,l=o.font||r.font,u=!1,c,d;if(a){var h=o.padding,v=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var m=Ks(o.width,a.width)+v;s.length>0&&m+a.accumWidth>a.width&&(c=e.split(`
`),u=!0),a.accumWidth=m}else{var x=tW(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=x.accumWidth+v,d=x.linesWidths,c=x.lines}}c||(c=e.split(`
`));for(var b=Wl(l),w=0;w<c.length;w++){var _=c[w],T=new Bhe;if(T.styleName=n,T.text=_,T.isLineHolder=!_&&!i,typeof o.width=="number"?T.width=o.width:T.width=d?d[w]:Yl(b,_),!w&&!u){var C=(s[s.length-1]||(s[0]=new K4)).tokens,k=C.length;k===1&&C[0].isLineHolder?C[0]=T:(_||!k||i)&&C.push(T)}else s.push(new K4([T]))}}function Ghe(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var Hhe=ql(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Uhe(t){return Ghe(t)?!!Hhe[t]:!0}function tW(t,e,r,a,n){for(var i=[],o=[],s="",l="",u=0,c=0,d=Wl(e),h=0;h<t.length;h++){var v=t.charAt(h);if(v===`
`){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var m=P$(d,v.charCodeAt(0)),x=a?!1:!Uhe(v);if(i.length?c+m>r:n+c+m>r){c?(s||l)&&(x?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=v,u+=m,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=v,c=m)):x?(i.push(l),o.push(u),l=v,u=m):(i.push(v),o.push(m));continue}c+=m,x?(l+=v,u+=m):(l&&(s+=l,l="",u=0),s+=v)}return l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=n),{accumWidth:c,lines:i,linesWidths:o}}function Q4(t,e,r,a,n,i){if(t.baseX=r,t.baseY=a,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;ot.set(J4,Fp(r,o,n),yh(a,s,i),o,s),ot.intersect(e,J4,null,ez);var l=ez.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Fp(l.x,l.width,n,!0),t.baseY=yh(l.y,l.height,i,!0)}}var J4=new ot(0,0,0,0),ez={outIntersectRect:{},clamp:!0};function n5(t){return t!=null?t+="":t=""}function $he(t){var e=n5(t.text),r=t.font,a=Yl(Wl(r),e),n=Uy(r);return GM(t,a,n,null)}function GM(t,e,r,a){var n=new ot(Fp(t.x||0,e,t.textAlign),yh(t.y||0,r,t.textBaseline),e,r),i=a??(rW(t)?t.lineWidth:0);return i>0&&(n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i),n}function rW(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var HM="__zr_style_"+Math.round(Math.random()*10),xh={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},j_={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};xh[HM]=!0;var tz=["z","z2","invisible"],Whe=["invisible"],xs=(function(t){ia(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var a=Wt(r),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(r[i]):t.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Yhe(this,r,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,a){return this.rectContain(r,a)},e.prototype.traverse=function(r,a){r.call(a,this)},e.prototype.rectContain=function(r,a){var n=this.transformCoordToLocal(r,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ot(0,0,0,0)),a?ot.applyTransform(r,n,a):r.copy(n),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ot(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,a){r!=="style"?t.prototype.attrKV.call(this,r,a):this.style?this.setStyle(a):this.useStyle(a)},e.prototype.setStyle=function(r,a){return typeof r=="string"?this.style[r]=a:ve(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=f0,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&f0)},e.prototype.styleUpdated=function(){this.__dirty&=~f0},e.prototype.createStyle=function(r){return A_(xh,r)},e.pr
`,`
`,`
`];function pn(t,e){return e.type=t,e}function cD(t){return t.type==="section"}function RY(t){return cD(t)?Zme:Kme}function PY(t){if(cD(t)){var e=0,r=t.blocks.length,a=r>1||r>0&&!t.noHeader;return z(t.blocks,function(n){var i=PY(n);i>=e&&(e=i+ +(a&&(!i||cD(n)&&!n.noHeader)))}),e}return 0}function Zme(t,e,r,a){var n=e.noHeader,i=Qme(PY(e)),o=[],s=e.blocks||[];Pi(!s||be(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ve(u,l)){var c=new kY(u[l],null);s.sort(function(x,b){return c.evaluate(x.sortParam,b.sortParam)})}else l==="seriesDesc"&&s.reverse()}z(s,function(x,b){var w=e.valueFormatter,_=RY(x)(w?ve(ve({},t),{valueFormatter:w}):t,x,b>0?i.html:0,a);_!=null&&o.push(_)});var d=t.renderMode==="richText"?o.join(i.richText):dD(a,o.join(""),n?r:i.html);if(n)return d;var h=nD(e.header,"ordinal",t.useUTC),v=EY(a,t.renderMode).nameStyle,m=LY(a);return t.renderMode==="richText"?IY(t,h,v)+i.richText+d:dD(a,'<div style="'+v+";"+m+';">'+Yi(h)+"</div>"+d,r)}function Kme(t,e,r,a){var n=t.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(C){return C=be(C)?C:[C],Se(C,function(k,A){return nD(k,be(v)?v[A]:v,u)})};if(!(i&&o)){var d=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||ne.color.secondary,n),h=i?"":nD(l,"ordinal",u),v=e.valueType,m=o?[]:c(e.value,e.dataIndex),x=!s||!i,b=!s&&i,w=EY(a,n),_=w.nameStyle,T=w.valueStyle;return n==="richText"?(s?"":d)+(i?"":IY(t,h,_))+(o?"":tge(t,m,x,b,T)):dD(a,(s?"":d)+(i?"":Jme(h,!s,_))+(o?"":ege(m,x,b,T)),r)}}function uB(t,e,r,a,n,i){if(t){var o=RY(t),s={useUTC:n,renderMode:r,orderMode:a,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,i)}}function Qme(t){return{html:Xme[t],richText:qme[t]}}function dD(t,e,r){var a='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",i=LY(t);return'<div style="'+n+";"+i+';">'+e+a+"</div>"}function Jme(t,e,r){var a=e?"margin-left:2px":"";return'<span style="'+r+";"+a+'">'+Yi(t)+"</span>"}function ege(t,e,r,a){var n=r?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return t=be(t)?t:[t],'<span style="'+i+";"+a+'">'+Se(t,function(o){return Yi(o)}).join("&nbsp;&nbsp;")+"</span>"}function IY(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function tge(t,e,r,a,n){var i=[n],o=a?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(be(e)?e.join(" "):e,i)}function jY(t,e){var r=t.getData().getItemVisual(e,"style"),a=r[t.visualDrawType];return Ih(a)}function OY(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var Dk=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=G$()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,a){var n=a==="richText"?this._generateStyleName():null,i=Fpe({color:r,type:e,renderMode:a,markerId:n});return Ie(i)?i:(this.richTextStyles[n]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,r){var a={};be(r)?z(r,function(i){return ve(a,i)}):ve(a,r);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},t})();function zY(t){var e=t.series,r=t.dataIndex,a=t.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(r),l=be(s),u=jY(e,r),c,d,h,v;if(o>1||l&&!o){var m=rge(s,e,r,i,u);c=m.inlineValues,d=m.inlineValueTypes,h=m.blocks,v=m.inlineValues[0]}else if(o){var x=n.getDimensionInfo(i[0]);v=c=Up(n,r,i[0]),d=x.type}else v=c=l?s[0]:s;var b=e5(e),w=b&&e.name||"",_=n.getName(r),T=a?w:_;return pn("section",{header:w,noHeader:a||!b,sortParam:v,blocks:[pn("nameValue",{markerType:"item",markerColor:u,name:T,noName:!vs(T),value:c,valueType:d,dataIndex:r})].concat(h||[])})}function rge(t,e,r,a,n){var i=e.getData(),o=ql(t,function(d,h,v){var m=i.getDimensionInfo(v);return d=d||m&&m.tooltip!==!1&&m.displayName!=null},!1),s=[],l=[],u=[];a.length?z(a,function(d){c(Up(i,r,d),d)}):z(t,c);function c(d,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u
`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return pxe(o,s)+(o!=="style"?Yi(l):l||"")+(i?""+r+Se(i,function(u){return a(u)}).join(r)+r:"")+mxe(o)}return a(t)}function gxe(t,e,r){r=r||{};var a=r.newline?`
`:"",n=" {"+a,i=a+"}",o=Se(Wt(t),function(l){return l+n+Se(Wt(t[l]),function(u){return u+":"+t[l][u]+";"}).join(a)+i}).join(a),s=Se(Wt(e),function(l){return"@keyframes "+l+n+Se(Wt(e[l]),function(u){return u+n+Se(Wt(e[l][u]),function(c){var d=e[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function DD(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function o8(t,e,r,a){return Yn("svg","root",{width:t,height:e,xmlns:aq,"xmlns:xlink":nq,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+t+" "+e:!1},r)}var yxe=0;function oq(){return yxe++}var s8={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},$f="transform-origin";function xxe(t,e,r){var a=ve({},t.shape);ve(a,e),t.buildPath(r,a);var n=new rq;return n.reset(M$(t)),r.rebuildPath(n,1),n.generateStr(),n.getStr()}function bxe(t,e){var r=e.originX,a=e.originY;(r||a)&&(t[$f]=r+"px "+a+"px")}var wxe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function sq(t,e){var r=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[r]=t,r}function Sxe(t,e,r){var a=t.shape.paths,n={},i,o;if(z(a,function(l){var u=DD(r.zrId);u.animation=!0,r2(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,h=Wt(c),v=h.length;if(v){o=h[v-1];var m=c[o];for(var x in m){var b=m[x];n[x]=n[x]||{d:""},n[x].d+=b.d||""}for(var w in d){var _=d[w].animation;_.indexOf(o)>=0&&(i=_)}}}),!!i){e.d=!1;var s=sq(n,r);return i.replace(o,s)}}function l8(t){return Ie(t)?s8[t]?"cubic-bezier("+s8[t]+")":ZE(t)?t:"":""}function r2(t,e,r,a){var n=t.animators,i=n.length,o=[];if(t instanceof U_){var s=Sxe(t,e,r);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var c=n[u],d=[c.getMaxTime()/1e3+"s"],h=l8(c.getClip().easing),v=c.getDelay();h?d.push(h):d.push("linear"),v&&d.push(v/1e3+"s"),c.getLoop()&&d.push("infinite");var m=d.join(" ");l[m]=l[m]||[m,[]],l[m][1].push(c)}function x(_){var T=_[1],C=T.length,k={},A={},M={},L="animation-timing-function";function R(Ce,ge,Be){for(var _e=Ce.getTracks(),Oe=Ce.getMaxTime(),xt=0;xt<_e.length;xt++){var Ye=_e[xt];if(Ye.needsAnimate()){var st=Ye.keyframes,We=Ye.propName;if(Be&&(We=Be(We)),We)for(var At=0;At<st.length;At++){var kt=st[At],Jt=Math.round(kt.time/Oe*100)+"%",Nr=l8(kt.easing),rr=kt.rawValue;(Ie(rr)||qt(rr))&&(ge[Jt]=ge[Jt]||{},ge[Jt][We]=kt.rawValue,Nr&&(ge[Jt][L]=Nr))}}}}for(var P=0;P<C;P++){var j=T[P],V=j.targetName;V?V==="shape"&&R(j,A):!a&&R(j,k)}for(var I in k){var F={};aS(F,t),ve(F,k[I]);var G=D$(F),O=k[I][L];M[I]=G?{transform:G}:{},bxe(M[I],F),O&&(M[I][L]=O)}var U,$=!0;for(var I in A){M[I]=M[I]||{};var K=!U,O=A[I][L];K&&(U=new Ql);var q=U.len();U.reset(),M[I].d=xxe(t,A[I],U);var H=U.len();if(!K&&q!==H){$=!1;break}O&&(M[I][L]=O)}if(!$)for(var I in M)delete M[I].d;if(!a)for(var P=0;P<C;P++){var j=T[P],V=j.targetName;V==="style"&&R(j,M,function(_e){return wxe[_e]})}for(var Z=Wt(M),te=!0,ie,P=1;P<Z.length;P++){var ce=Z[P-1],me=Z[P];if(M[ce][$f]!==M[me][$f]){te=!1;break}ie=M[ce][$f]}if(te&&ie){for(var I in M)M[I][$f]&&delete M[I][$f];e[$f]=ie}if(mr(Z,function(Ce){return Wt(M[Ce]).length>0}).length){var ze=sq(M,r);return ze+" "+_[0]+" both"}}for(var b in l){var s=x(l[b]);s&&o.push(s)}if(o.length){var w=r.zrId+"-cls-"+oq();r.cssNodes["."+w]={animation:o.join(",")},e.class=w}}function _xe(t,e,r){if(!t.ignore)if(t.isSilent()){var a={"pointer-events":"none"};u8(a,e,
`+b.message)}var n=new Qe;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=r.width,o=r.height,s=r.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,d=void 0,h=void 0;if(i!=null?(u=0,d=i):s&&(u=s.x,d=s.width),o!=null?(c=0,h=o):s&&(c=s.y,h=s.height),u==null||c==null){var v=a.getBoundingRect();u==null&&(u=v.x,d=v.width),c==null&&(c=v.y,h=v.height)}l=this._boundingRect=new ot(u,c,d,h)}if(s){var m=nZ(s,l);a.scaleX=a.scaleY=m.scale,a.x=m.x,a.y=m.y}n.setClipPath(new Et({shape:l.plain()}));var x=[];return z(r.named,function(b){fwe.get(b.svgNodeTagLower)!=null&&(x.push(b),vwe(b.el))}),{root:n,boundingRect:l,named:x}},t.prototype.useGraphic=function(e){var r=this._usedGraphicMap,a=r.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),r.set(e,a),a)},t.prototype.freeGraphic=function(e){var r=this._usedGraphicMap,a=r.get(e);a&&(r.removeKey(e),this._freedGraphics.push(a))},t})();function vwe(t){t.silent=!1,t.isGroup&&t.traverse(function(e){e.silent=!1})}function pwe(t){var e=[],r=He();return z(t,function(a){if(a.namedFrom==null){var n=new Dye(a.name,a.el);e.push(n),r.set(a.name,n)}}),{regions:e,regionsMap:r}}var FD=[126,25],hV="南海诸岛",Wf=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Hf=0;Hf<Wf.length;Hf++)for(var Hv=0;Hv<Wf[Hf].length;Hv++)Wf[Hf][Hv][0]/=10.5,Wf[Hf][Hv][1]/=-10.5/.75,Wf[Hf][Hv][0]+=FD[0],Wf[Hf][Hv][1]+=FD[1];function mwe(t,e){if(t==="china"){for(var r=0;r<e.length;r++)if(e[r].name===hV)return;e.push(new VX(hV,Se(Wf,function(a){return{type:"polygon",exterior:a}}),FD))}}var gwe={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function ywe(t,e){if(t==="china"){var r=gwe[e.name];if(r){var a=e.getCenter();a[0]+=r[0]/10.5,a[1]+=-r[1]/(10.5/.75),e.setCenter(a)}}}var xwe=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function bwe(t,e){t==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:xwe[0]})}var wwe="name",Swe=(function(){function t(e,r,a){this.type="geoJSON",this._parsedMap=He(),this._mapName=e,this._specialAreas=a,this._geoJSON=Twe(r)}return t.prototype.load=function(e,r){r=r||wwe;var a=this._parsedMap.get(r);if(!a){var n=this._parseToRegions(r);a=this._parsedMap.set(r,{regions:n,boundingRect:_we(n)})}var i=He(),o=[];return z(a.regions,function(s){var l=s.name;e&&Ve(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new ot(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(e){var r=this._mapName,a=this._geoJSON,n;try{n=a?Eye(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return mwe(r,n),z(n,function(i){var o=i.name;ywe(r,i),bwe(r,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t})();function _we(t){for(var e,r=0;r<t.length;r++){var a=t[r].getBoundingRect();e=e||a.clone(),e.union(a)}return e}function Twe(t){return Ie(t)?typeof JSON<"u"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var Yg=He();const oc={registerMap:function(t,e,r){if(e.svg){var a=new hwe(t,e.svg);Yg.set(t,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?r=e.specialAreas:n=e;var a=new Swe(t,n,r);Yg.set(t,a)}},getGeoResource:function(t){return Yg.get(t)},getMapForUser:function(t){var e=Yg.get(t);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(t,e,r){var a=Yg.get(t);if(a)return a.load(e,r)}};var dR=["rect","circle","line","ellipse","polygon","polyline","path"],Cwe=He(dR),kwe=He(dR.concat(["g"])),Nwe=He(dR.concat(["g"])),iZ=jt();function m1(t){var e=t.getItemStyle(),r=t.get("areaColor");return r!=null&&(e.fill=r),e}function vV(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var oZ=(function(){function t(e){var r=this.group=new Qe,a=this._transformGroup=new Qe;r.add(a),this.uid=wm("ec_map_draw"),this._controller=new Kh(e.getZr()),this._controllerHost={target:a},a.add(this._regionsGroup=new Qe),a.add(this._svgGroup=new Qe)}return t.prototype.draw=function(e,r,a,n,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&r.eachComponent({mainType:"series",subType:"map"},function(T){!s&&T.getHostGeoModel()===e&&(s=T.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this._transformGroup,d=l.getTransformInfo(),h=d.raw,v=d.roam,m=!u.childAt(0)||i,x=e.getShallow("clip",!0),b;x?(b=l.getViewRect().clone(),this.group.setClipPath(new Et({shape:b.clone()}))):this.group.removeClipPath(),m?(c.x=v.x,c.y=v.y,c.scaleX=v.scaleX,c.scaleY=v.scaleY,c.dirty()):tr(c,v,e);var w=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,_={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:w,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(_):l.resourceType==="geoSVG"&&this._buildSVG(_),this._updateController(e,b,r,a),this._updateMapSelectHandler(e,u,a,n)},t.prototype._buildGeoJSON=function(e){var r=this._regionsGroupByName=He(),a=He(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(v,m){return m&&(v=m(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function d(v){for(var m=[],x=!u&&l&&l.project,b=0;b<v.length;++b){var w=c(v[b],x);w&&m.push(w)}return m}function h(v){return{shape:{points:d(v)}}}n.removeAll(),z(e.geo.regions,function(v){var m=v.name,x=r.get(m),b=a.get(m)||{},w=b.dataIdx,_=b.regionModel;if(!x){x=r.set(m,new Qe),n.add(x),w=s?s.indexOfName(m):null,_=e.isGeo?o.getRegionModel(m):s?s.getItemModel(w):null;var T=_.get("silent",!0);T!=null&&(x.silent=T),a.set(m,{dataIdx:w,regionModel:_})}var C=[],k=[];z(v.geometries,function(L){if(L.type==="polygon"){var R=[L.exterior].concat(L.interiors||[]);u&&(R=bV(R,u)),z(R,function(j){C.push(new ji(h(j)))})}else{var P=L.points;u&&(P=bV(P,u,!0)),z(P,function(j){k.push(new xi(h(j)))})}});var A=c(v.getCenter(),l&&l.project);function M(L,R){if(L.length){var P=new U_({culling:!0,segmentIgnoreThreshold:1,shape:{paths:L}});x.add(P),pV(e,P,w,_),mV(e,P,m,_,o,w,A),R&&(vV(P),z(P.states,vV))}}M(C),M(k,!0)}),r.each(function(v,m){var x=a.get(m),b=x.dataIdx,w=x.regionModel;gV(e,v,m,w,o,b),yV(e,v,m,w,o),xV(e,v,m,w,o)},this)},t.prototype._buildSVG=function(e){var r=e.geo.map,a=e.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(r)&&(this._freeSVG(),this._useSVG(r));var n=this._svgDispatcherMap=He(),i=!1;z(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,c=o.svgNodeTagLower,d=o.el,h=u?u.indexOfName(s):null,v=l.getRegionModel(s);Cwe.get(c)!=null&&d instan
`))}),e.join(`
`+d2+`
`)}function iAe(t){return Se(t,function(e){var r=e.getRawData(),a=[e.name],n=[];return r.each(r.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=r.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+em:"")+n.join(em))}),a.join(`
`)}).join(`
`+d2+`
`)}function oAe(t){var e=aAe(t);return{value:mr([nAe(e.seriesGroupByCategoryAxis),iAe(e.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
`+d2+`
`),meta:e.meta}}function $S(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function sAe(t){var e=t.slice(0,t.indexOf(`
`));if(e.indexOf(em)>=0)return!0}var dL=new RegExp("["+em+"]+","g");function lAe(t){for(var e=t.split(/\n+/g),r=$S(e.shift()).split(dL),a=[],n=Se(r,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=$S(e[i]).split(dL);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function uAe(t){for(var e=t.split(/\n+/g),r=$S(e.shift()),a=[],n=0;n<e.length;n++){var i=$S(e[n]);if(i){var o=i.split(dL),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:r,data:a}}function cAe(t,e){var r=t.split(new RegExp(`
*`+d2+`
*`,"g")),a={series:[]};return z(r,function(n,i){if(sAe(n)){var o=lAe(n),s=e[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=uAe(n);a.series.push(o)}}),a}var dAe=(function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(r,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||ne.color.neutral00;var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var d=i.get("optionToContent"),h=i.get("contentToOption"),v=oAe(r);if(Ke(d)){var m=d(a.getOption());Ie(m)?u.innerHTML=m:Bp(m)&&u.appendChild(m)}else{c.readOnly=i.get("readOnly");var x=c.style;x.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",x.color=i.get("textColor"),x.borderColor=i.get("textareaBorderColor"),x.backgroundColor=i.get("textareaColor"),c.value=v.value,u.appendChild(c)}var b=v.meta,w=document.createElement("div");w.style.cssText="position:absolute;bottom:5px;left:0;right:0";var _="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",T=document.createElement("div"),C=document.createElement("div");_+=";background-color:"+i.get("buttonColor"),_+=";color:"+i.get("buttonTextColor");var k=this;function A(){n.removeChild(o),k._dom=null}SM(T,"click",A),SM(C,"click",function(){if(h==null&&d!=null||h!=null&&d==null){A();return}var M;try{Ke(h)?M=h(u,a.getOption()):M=cAe(c.value,b)}catch(L){throw A(),new Error("Data view format error "+L)}M&&a.dispatchAction({type:"changeDataView",newOption:M}),A()}),T.innerHTML=l[1],C.innerHTML=l[2],C.style.cssText=T.style.cssText=_,!i.get("readOnly")&&w.appendChild(C),w.appendChild(T),o.appendChild(s),o.appendChild(u),o.appendChild(w),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.remove=function(r,a){this._dom&&a.getDom().removeChild(this._dom)},e.prototype.dispose=function(r,a){this.remove(r,a)},e.getDefaultOption=function(r){var a={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:ne.color.background,textColor:ne.color.primary,textareaColor:ne.color.background,textareaBorderColor:ne.color.border,buttonColor:ne.color.accent50,buttonTextColor:ne.color.neutral00};return a},e})(us);function fAe(t,e){return Se(t,function(r,a){var n=e&&e[a];if(it(n)&&!be(n)){var i=it(r)&&!be(r);i||(r={value:r});var o=n.name!=null&&r.name==null;return r=nt(r,n),o&&delete r.name,r}else return r})}nu({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var r=[];z(t.newOption.series,function(a){var n=e.getSeriesByName(a.name)[0];if(!n)r.push(ve({type:"scatter"},a));else{var i=n.get("data");r.push({name:a.name,data:fAe(a.data,i)})}}),e.mergeOption(nt({series:r},t.newOption))});var VK=z,FK=jt();function hAe(t,e){var r=ZR(t);VK(e,function(a,n){for(var i=r.length-1;i>=0;i--){var o=r[i];if(o[n])break}if(i<0){var s=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();r[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),r.push(e)}function vAe(t){var e=ZR(t),r=e[e.length-1];e.length>1&&e.pop();var a={};return VK(r,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function pAe(t){FK(t).snapshots=null}function mAe(t){return ZR(t).length}function ZR(t){var e=FK(t
`:"<br/>",w=d.join(b);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,w,u,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(r,a,n){var i=this._ecModel,o=dt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,h=u.getData(d),v=this._renderMode,m=r.positionDefault,x=Jg([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,m?{position:m}:null),b=x.get("trigger");if(!(b!=null&&b!=="item")){var w=u.getDataParams(c,d),_=new Dk;w.marker=_.makeTooltipMarker("item",Ih(w.color),v);var T=aB(u.formatTooltip(c,!1,d)),C=x.get("order"),k=x.get("valueFormatter"),A=T.frag,M=A?uB(k?ve({valueFormatter:k},A):A,_,v,C,i.get("useUTC"),x.get("textStyle")):T.text,L="item_"+u.name+"_"+c;this._showOrMove(x,function(){this._showTooltipContent(x,M,w,L,r.offsetX,r.offsetY,r.position,r.target,_)}),n({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,a,n){var i=this._renderMode==="html",o=dt(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Ie(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=et(l),l.content=Yi(l.content));var d=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&d.push(h),d.push({formatter:l.content});var v=r.positionDefault,m=Jg(d,this._tooltipModel,v?{position:v}:null),x=m.get("content"),b=Math.random()+"",w=new Dk;this._showOrMove(m,function(){var _=et(m.get("formatterParams")||{});this._showTooltipContent(m,x,_,b,r.offsetX,r.offsetY,r.position,a,w)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,a,n,i,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var d=this._tooltipContent;d.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var v=a,m=this._getNearestPoint([o,s],n,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),x=m.color;if(h)if(Ie(h)){var b=r.ecModel.get("useUTC"),w=be(n)?n[0]:n,_=w&&w.axisType&&w.axisType.indexOf("time")>=0;v=h,_&&(v=X_(w.axisValue,v,b)),v=KW(v,n,!0)}else if(Ke(h)){var T=je(function(C,k){C===this._ticket&&(d.setContent(k,c,r,x,l),this._updatePosition(r,l,o,s,d,n,u))},this);this._ticket=i,v=h(n,i,T)}else v=h;d.setContent(v,c,r,x,l),d.show(r,x),this._updatePosition(r,l,o,s,d,n,u)}},e.prototype._getNearestPoint=function(r,a,n,i,o){if(n==="axis"||be(a))return{color:i||o};if(!be(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(r,a,n,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();a=a||r.get("position");var d=o.getSize(),h=r.get("align"),v=r.get("verticalAlign"),m=l&&l.getBoundingRect().clone();if(l&&m.applyTransform(l.transform),Ke(a)&&(a=a([n,i],s,o.el,m,{viewSize:[u,c],contentSize:d.slice()})),be(a))n=Pe(a[0],u),i=Pe(a[1],c);else if(it(a)){var x=a;x.width=d[0],x.height=d[1];var b=ha(x,{width:u,height:c});n=b.x,i=b.y,h=null,v=null}else if(Ie(a)&&l){var w=HAe(a,m,d,r.get("borderWidth"));n=w[0],i=w[1]}else{var w=FAe(n,i,o,u,c,h?null:20,v?null:20);n=w[0],i=w[1]}if(h&&(n-=H9(h)?d[0]/2:h==="right"?d[0]:0),v&&(i-=H9(v)?d[1]/2:v==="bottom"?d[1]:0),GK(r)){var w=GAe(n,i,o,u,c);n=w[0],i=w[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(r,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===r.length;return o&&z(n,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&z(u,function(h,v){var m=d[v]||{},x=h.seriesDataIndices||[],b=m.seriesDataIndices||[];o=o&&h.value===m.value&&h.axisType===m.axisType&&h.axisId===m.axisId&&x.length===b.length,o&&z(x,function(w,_){var T=b[_];o=o&&w.seriesIndex===T.seriesIndex&&w.dataIndex===T.dataIndex}),i&&z(h.seriesDataIndices,function(w){var _=w.seriesIndex,T=a[_],C=i[_];T&&C&&C.data!==T.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=a,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip"
`)){var _=new O1;_.newline=!0,u.add(_);return}var T=n.getSeriesByName(w)[0];if(!c.get(w))if(T){var C=T.getData(),k=C.getVisual("legendLineStyle")||{},A=C.getVisual("legendIcon"),M=C.getVisual("style"),L=this._createItem(T,w,x,m,a,r,k,M,A,d,i);L.on("click",Zv(l7,w,null,i,v)).on("mouseover",Zv(xL,T.name,null,i,v)).on("mouseout",Zv(bL,T.name,null,i,v)),n.ssr&&L.eachChild(function(R){var P=dt(R);P.seriesIndex=T.seriesIndex,P.dataIndex=x,P.ssrType="legend"}),h&&L.eachChild(function(R){b.packEventData(R,a,T,x,w)}),c.set(w,!0)}else n.eachRawSeries(function(R){var P=this;if(!c.get(w)&&R.legendVisualProvider){var j=R.legendVisualProvider;if(!j.containName(w))return;var V=j.indexOfName(w),I=j.getItemVisual(V,"style"),F=j.getItemVisual(V,"legendIcon"),G=ho(I.fill);G&&G[3]===0&&(G[3]=.2,I=ve(ve({},I),{fill:$l(G,"rgba")}));var O=this._createItem(R,w,x,m,a,r,{},I,F,d,i);O.on("click",Zv(l7,null,w,i,v)).on("mouseover",Zv(xL,null,w,i,v)).on("mouseout",Zv(bL,null,w,i,v)),n.ssr&&O.eachChild(function(U){var $=dt(U);$.seriesIndex=R.seriesIndex,$.dataIndex=x,$.ssrType="legend"}),h&&O.eachChild(function(U){P.packEventData(U,a,R,x,w)}),c.set(w,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype.packEventData=function(r,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};dt(r).eventData=s},e.prototype._createSelector=function(r,a,n,i,o){var s=this.getSelectorGroup();yL(r,function(u){var c=u.type,d=new Qt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(d);var h=a.getModel("selectorLabel"),v=a.getModel(["emphasis","selectorLabel"]);qn(d,{normal:h,emphasis:v},{defaultText:u.title}),wh(d)})},e.prototype._createItem=function(r,a,n,i,o,s,l,u,c,d,h){var v=r.visualDrawType,m=o.get("itemWidth"),x=o.get("itemHeight"),b=o.isSelected(a),w=i.get("symbolRotate"),_=i.get("symbolKeepAspect"),T=i.get("icon");c=T||c||"roundRect";var C=GMe(c,i,l,u,v,b,h),k=new O1,A=i.getModel("textStyle");if(Ke(r.getLegendIcon)&&(!T||T==="inherit"))k.add(r.getLegendIcon({itemWidth:m,itemHeight:x,icon:c,iconRotate:w,itemStyle:C.itemStyle,lineStyle:C.lineStyle,symbolKeepAspect:_}));else{var M=T==="inherit"&&r.getData().getVisual("symbol")?w==="inherit"?r.getData().getVisual("symbolRotate"):w:0;k.add(HMe({itemWidth:m,itemHeight:x,icon:c,iconRotate:M,itemStyle:C.itemStyle,symbolKeepAspect:_}))}var L=s==="left"?m+5:-5,R=s,P=o.get("formatter"),j=a;Ie(P)&&P?j=P.replace("{name}",a??""):Ke(P)&&(j=P(a));var V=b?A.getTextColor():i.get("inactiveColor");k.add(new Qt({style:Fr(A,{text:j,x:L,y:x/2,fill:V,align:R,verticalAlign:"middle"},{inheritColor:V})}));var I=new Et({shape:k.getBoundingRect(),style:{fill:"transparent"}}),F=i.getModel("tooltip");return F.get("show")&&uc({el:I,componentModel:o,itemName:a,itemTooltipOption:F.option}),k.add(I),k.eachChild(function(G){G.silent=!0}),I.silent=!d,this.getContentGroup().add(k),wh(k),k.__legendDataIndex=n,k},e.prototype.layoutInner=function(r,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();_h(r.get("orient"),l,r.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){_h("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],m=r.get("selectorButtonGap",!0),x=r.getOrient().index,b=x===0?"width":"height",w=x===0?"height":"width",_=x===0?"y":"x";s==="end"?v[x]+=c[b]+m:d[x]+=h[b]+m,v[1-x]+=c[w]/2-h[w]/2,u.x=v[0],u.y=v[1],l.x=d[0],l.y=d[1];var T={x:0,y:0};return T[b]=c[b]+m+h[b],T[w]=Math.max(c[w],h[w]),T[_]=Math.min(0,h[_]+v[1-x]),T}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(oa);function GMe(t,e,r,a,n,i,o){function s(b,w){b.lineWidth==="auto"&&(b.lineWidth=w.lineWidth>0?2:0),yL(b,function(_,T){b[T]==="inherit"&&(b[T]=w[T])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=t.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getS
`||n==="")){var i=t.isSelected(n);Ve(r,n)?r[n]=r[n]&&i:r[n]=i}}),r}function $Me(t){t.registerAction("legendToggleSelect","legendselectchanged",wt(t0,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",wt(t0,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",wt(t0,"inverseSelect")),t.registerAction("legendSelect","legendselected",wt(t0,"select")),t.registerAction("legendUnSelect","legendunselected",wt(t0,"unSelect"))}function JK(t){t.registerComponentModel(gL),t.registerComponentView(KK),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,UMe),t.registerSubTypeDefaulter("legend",function(){return"plain"}),$Me(t)}var WMe=(function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,a,n){var i=Wh(r);t.prototype.init.call(this,r,a,n),c7(this,r,i)},e.prototype.mergeOption=function(r,a){t.prototype.mergeOption.call(this,r,a),c7(this,this.option,r)},e.type="legend.scroll",e.defaultOption=$d(gL.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:ne.color.accent50,pageIconInactiveColor:ne.color.accent10,pageIconSize:15,pageTextStyle:{color:ne.color.tertiary},animationDurationUpdate:800}),e})(gL);function c7(t,e,r){var a=t.getOrient(),n=[1,1];n[a.index]=0,Jl(e,r,{type:"box",ignoreSize:!!n})}var d7=Qe,eA=["width","height"],tA=["x","y"],YMe=(function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new d7),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new d7)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,a,n,i,o,s,l){var u=this;t.prototype.renderInner.call(this,r,a,n,i,o,s,l);var c=this._controllerGroup,d=a.get("pageIconSize",!0),h=be(d)?d:[d,d];m("pagePrev",0);var v=a.getModel("pageTextStyle");c.add(new Qt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),m("pageNext",1);function m(x,b){var w=x+"DataIndex",_=qy(a.get("pageIcons",!0)[a.getOrient().name][b],{onclick:je(u._pageGo,u,w,a,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});_.name=x,c.add(_)}},e.prototype.layoutInner=function(r,a,n,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=eA[u],d=tA[u],h=eA[1-u],v=tA[1-u];o&&_h("horizontal",l,r.get("selectorItemGap",!0));var m=r.get("selectorButtonGap",!0),x=l.getBoundingRect(),b=[-x.x,-x.y],w=et(n);o&&(w[c]=n[c]-x[c]-m);var _=this._layoutContentAndController(r,i,w,u,c,h,v,d);if(o){if(s==="end")b[u]+=_[c]+m;else{var T=x[c]+m;b[u]-=T,_[d]-=T}_[c]+=x[c]+m,b[1-u]+=_[v]+_[h]/2-x[h]/2,_[h]=Math.max(_[h],x[h]),_[v]=Math.min(_[v],x[v]+b[1-u]),l.x=b[0],l.y=b[1],l.markRedraw()}return _},e.prototype._layoutContentAndController=function(r,a,n,i,o,s,l,u){var c=this.getContentGroup(),d=this._containerGroup,h=this._controllerGroup;_h(r.get("orient"),c,r.get("itemGap"),i?n.width:null,i?null:n.height),_h("horizontal",h,r.get("pageButtonItemGap",!0));var v=c.getBoundingRect(),m=h.getBoundingRect(),x=this._showController=v[o]>n[o],b=[-v.x,-v.y];a||(b[i]=c[u]);var w=[0,0],_=[-m.x,-m.y],T=$e(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(x){var C=r.get("pageButtonPosition",!0);C==="end"?_[i]+=n[o]-m[o]:w[i]+=m[o]+T}_[1-i]+=v[s]/2-m[s]/2,c.setPosition(b),d.setPosition(w),h.setPosition(_);var k={x:0,y:0};if(k[o]=x?n[o]:v[o],k[s]=Math.max(v[s],m[s]),k[l]=Math.min(0,m[l]+_[1-i]),d.__rectSize=n[o],x){var A={x:0,y:0};A[o]=Math.max(n[o]-m[o]-T,0),A[s]=k[s],d.setClipPath(new Et({shape
${Js(Number(_??0))}%`},labelLine:{show:!["inside","center"].includes(b),length:14,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{fontSize:15}},data:x}}),animationDuration:500}}const s=qu(e,e.showDataLabels?"inside":"right");return{color:t.map(l=>l.color),tooltip:{trigger:"item",formatter:t_("number")},legend:rm(e,r),series:[{name:"漏斗分析",type:"funnel",left:"10%",top:e.showLegend===!1?12:38,bottom:12,width:"80%",min:0,max:Math.max(...t.map(l=>l.value),0),minSize:"20%",maxSize:"100%",sort:i,gap:o,label:{show:!0,position:s,formatter:({name:l,percent:u})=>`${l||""}
${Js(Number(u??0))}%`},labelLine:{show:!["inside","center"].includes(s),length:16,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{fontSize:15}},data:t.map(l=>({value:Math.max(l.value,0),name:l.label,itemStyle:{color:l.color}}))}],animationDuration:500}}function AEe(t,e,r,a,n,i){const o=t.renderType;let s;o==="line"?s=_Ee(t,e,r,a,i):o==="bar"?s=CEe(e,t,r,a,n,i):o==="pie"||o==="ring"?s=kEe(t,e,o,r,a,i):s=NEe(e,r,i);const l=dEe(r.optionOverrides);return l?gQ(s,l):s}function MEe({text:t,height:e}){return g.jsx("div",{className:"flex items-center justify-center rounded-[24px] border border-dashed border-slate-200 bg-slate-50/60 px-6 text-center text-sm text-slate-400",style:{minHeight:e},children:t||"暂无图表数据"})}function DEe({card:t,expanded:e,heightOverride:r}){const a=E.useRef(null),n=E.useRef(null),i=au(),o=t.renderType||"bar",s=E.useMemo(()=>cEe(t.displayTextConfig,o),[t.displayTextConfig,o]),l=E.useMemo(()=>pEe(t.chartData??[]),[t.chartData]),u=E.useMemo(()=>mEe(l),[l]),[c,d]=E.useState(0),[h,v]=E.useState({});E.useEffect(()=>{d(0)},[t.cardKey,u.join("|"),s.chartPreset]),E.useEffect(()=>{v({})},[t.cardKey,s.chartPreset,u.join("|")]),E.useEffect(()=>{if(s.chartPreset!=="bar-race-timeline"||u.length<=1)return;const w=window.setInterval(()=>{d(_=>(_+1)%u.length)},2200);return()=>window.clearInterval(w)},[u,s.chartPreset]);const m=E.useMemo(()=>{if(s.chartPreset==="bar-race-timeline"&&u.length){const w=u[Math.min(c,u.length-1)];return l.filter(_=>_.frameName===w)}return l},[c,u,l,s.chartPreset]),x=E.useMemo(()=>vEe(o,s,m,i,e,r),[e,r,i,o,s,m]),b=E.useMemo(()=>AEe(t,m,s,i,s.chartPreset==="bar-race-timeline"?u[Math.min(c,Math.max(u.length-1,0))]:void 0,h),[c,t,u,i,h,s,m]);return E.useEffect(()=>{if(!a.current||!m.length)return;const w=T0e(a.current);n.current=w;const _=()=>{w.resize()},T=typeof ResizeObserver<"u"?new ResizeObserver(_):null;T?T.observe(a.current):typeof window<"u"&&window.addEventListener("resize",_);const C=k=>{v(k.selected||{})};return w.on("legendselectchanged",C),()=>{w.off("legendselectchanged",C),T?T.disconnect():typeof window<"u"&&window.removeEventListener("resize",_),w.dispose(),n.current=null}},[m.length]),E.useEffect(()=>{!n.current||!m.length||n.current.setOption(b,!0)},[b,m.length]),m.length?g.jsx("div",{ref:a,style:{width:"100%",height:x}}):g.jsx(MEe,{text:s.emptyText,height:x})}const LEe=new Set(["line","bar","pie","ring","funnel"]);function EEe(t){return t==="pie"||t==="ring"||t==="funnel"}function REe(t){if(typeof t=="boolean")return t;if(typeof t=="number"){if(t===1)return!0;if(t===0)return!1}if(typeof t!="string")return;const e=t.trim().toLowerCase();if(["true","1","yes","y","on","是"].includes(e))return!0;if(["false","0","no","n","off","否"].includes(e))return!1}function PEe(t,e){if(!t)return{};try{const r=JSON.parse(t);if(!r||typeof r!="object")return{};const a=r;return{emptyText:typeof a.emptyText=="string"?a.emptyText:void 0,showDataLabels:REe(a.showDataLabels)??EEe(e)??void 0,labelPosition:typeof a.labelPosition=="string"?a.labelPosition:void 0,pcLayout:a.pcLayout&&typeof a.pcLayout=="object"?a.pcLayout:void 0,mobileLayout:a.mobileLayout&&typeof a.mobileLayout=="object"?a.mobileLayout:void 0}}catch{return{}}}function K7({text:t}){return g.jsx("div",{className:"flex min-h-[220px] items-center justify-center rounded-[24px] border border-dashed border-slate-200 bg-slate-50/60 px-6 text-center text-sm text-slate-400",children:t||"暂无图表数据"})}function IEe(t){switch(t){case"left":case"right":case"top":case"bottom":case"center":return t;default:return"auto"}}function jEe(t){if(Number.isFinite(t))return Math.max(40,Math.min(100,t))}function OEe(t,e,r){var n;return r||t==="line"||t==="bar"||(t==="pie"||t==="ring")&&e.showDataLabels!==!1&&!["inside","center"].includes(((n=e.labelPosition)==null?void 0:n.trim())||"outside")?100:78}function zEe(t,e,r){const a=t.renderType,n=r?e.mobileLayout:e.pcLayout,i=IEe(n==null?void 0:n.preset),o=jEe(n==null?void 0:n.chartWidthPercent)??OEe(a,e,r),s=Number.isFinite(n==null?void 0:n.chartHeight
`).filter(n=>{const i=n.trim();return i&&!i.startsWith("#")&&!/^to\s*[:]/i.test(i)}).join(`
`).replace(/[;]?\s*附件:\s*\d+\s*个\s*$/u,"").trim():""}function l5e(t){var a;const e=new Set,r=((a=t==null?void 0:t.lineIndexes)==null?void 0:a.split(","))??[];for(const n of r){const i=Number(n);Number.isInteger(i)&&i>=0&&e.add(i)}return e}function nF({attachments:t,onPreview:e}){return t.length?g.jsx("div",{className:"flex flex-wrap gap-2",children:t.map(r=>g.jsxs("button",{type:"button",onClick:()=>e(r),className:"inline-flex max-w-full items-center gap-1.5 rounded-full border border-slate-200 bg-white px-2.5 py-1.5 text-xs font-medium text-slate-600 transition-colors hover:border-violet-200 hover:bg-violet-50 hover:text-violet-700",title:"预览附件",children:[g.jsx(y_,{className:"h-3.5 w-3.5 shrink-0"}),g.jsx("span",{className:"max-w-[180px] truncate",children:r.name||"附件"}),g.jsx("span",{className:"shrink-0 text-slate-400",children:ux(r.size)})]},r.url))}):null}const u5e="modulepreload",c5e=function(t){return"/"+t},iF={},f2=function(e,r,a){let n=Promise.resolve();if(r&&r.length>0){let o=function(u){return Promise.all(u.map(c=>Promise.resolve(c).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));n=o(r.map(u=>{if(u=c5e(u),u in iF)return;iF[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":u5e,c||(h.as="script"),h.crossOrigin="",h.href=u,l&&h.setAttribute("nonce",l),document.head.appendChild(h),c)return new Promise((v,m)=>{h.addEventListener("load",v),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return n.then(o=>{for(const s of o||[])s.status==="rejected"&&i(s.reason);return e().catch(i)})};function hA(t){const e=typeof t.label=="string"?t.label.trim():"";return e||t.value}function d5e(){const[t,e]=E.useState(()=>typeof window>"u"?!1:window.matchMedia("(max-width: 639px)").matches);return E.useEffect(()=>{if(typeof window>"u")return;const r=window.matchMedia("(max-width: 639px)"),a=()=>e(r.matches);return a(),typeof r.addEventListener=="function"?(r.addEventListener("change",a),()=>r.removeEventListener("change",a)):(r.addListener(a),()=>r.removeListener(a))},[]),t}function Tt({options:t,placeholder:e="请选择",sheetTitle:r,disabled:a=!1,className:n,searchable:i=!1,searchPlaceholder:o="请输入关键字搜索",value:s,multiple:l=!1,onChange:u}){const[c,d]=E.useState(!1),[h,v]=E.useState(""),m=E.useRef(null),x=E.useRef(null),b=d5e(),[w,_]=E.useState("bottom"),[T,C]=E.useState(288),[k,A]=E.useState(null),M=l?Array.isArray(s)?s:[]:typeof s=="string"&&s?[s]:[],L=M.length>0?M.map(F=>{const G=t.find(O=>O.value===F);return G?hA(G):F}).filter(F=>!!F).join("、"):e,R=h.trim().toLowerCase(),P=i&&R?t.filter(F=>{const G=hA(F).toLowerCase(),O=F.value.toLowerCase();return G.includes(R)||O.includes(R)}):t,j=E.useCallback(()=>{if(b||!c||!m.current)return;const F=m.current.getBoundingClientRect(),G=window.innerHeight,O=24,U=(i?72:16)+24,$=Math.max(180,G-F.bottom-O-U),K=Math.max(180,F.top-O-U),q=$<280&&K>$,H=Math.min(360,q?K:$);_(q?"top":"bottom"),C(H),A({left:F.left,width:F.width,top:q?Math.max(O,F.top-8-(H+U)):F.bottom+8})},[b,l,c,i]);E.useEffect(()=>{if(!c||b)return;const F=O=>{var $,K;const U=O.target;!(($=m.current)!=null&&$.contains(U))&&!((K=x.current)!=null&&K.contains(U))&&d(!1)},G=O=>{O.key==="Escape"&&d(!1)};return document.addEventListener("mousedown",F),document.addEventListener("keydown",G),()=>{document.removeEventListener("mousedown",F),document.removeEventListener("keydown",G)}},[b,c]),E.useEffect(()=>{if(!c||b){A(null);return}j();const F=()=>j();return window.addEventListener("resize",F),window.addEventListener("scroll",F,!0),()=>{window.removeEventListener("resize",F),window.removeEventListener("scroll",F,!0)
`)}).filter(Boolean).join(`
`):""}function _5e(t){return t?[Ft(t.opportunityCode)?`编码${Ft(t.opportunityCode)}`:"",Ft(t.opportunityName)?`项目名称${Ft(t.opportunityName)}`:"",t.amount===null||t.amount===void 0?"":`金额${RQ(Number(t.amount))}`].filter(Boolean).join(""):""}function LQ(t){return t!=null&&t.length?t.map(e=>_5e(e)||"").filter(Boolean).join(`
`):""}function T5e(t){return t?[Ft(t.name)?`姓名${Ft(t.name)}`:"",Ft(t.mobile)?`联系电话${Ft(t.mobile)}`:"",Ft(t.title)?`职位${Ft(t.title)}`:""].filter(Boolean).join(""):""}function C5e(t){return t!=null&&t.length?t.map(e=>T5e(e)||"").filter(Boolean).join(`
`):""}function AL(t){return t?Array.from(t).reduce((e,r)=>e+(/[\u4e00-\u9fff\u3400-\u4dbf\uff00-\uffef]/.test(r)?2:1),0):0}function k5e(t,e){if(!t)return 1;const r=Math.max(1,Math.floor(e));return t.split(`
`).reduce((a,n)=>{const i=Math.max(1,AL(n));return a+Math.max(1,Math.ceil(i/r))},0)}function N5e(t=new Date){const e=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0"),n=String(t.getHours()).padStart(2,"0"),i=String(t.getMinutes()).padStart(2,"0"),o=String(t.getSeconds()).padStart(2,"0");return`${e}${r}${a}_${n}${i}${o}`}function A5e(t,e){const r=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),a=window.URL.createObjectURL(r),n=document.createElement("a");n.href=a,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(a)}const ML=[{key:"employeeNo",label:"工号",value:t=>Ft(t.employeeNo)},{key:"name",label:"姓名",value:t=>Ft(t.name)},{key:"phone",label:"联系方式",value:t=>Ft(t.phone)},{key:"officeName",label:"代表处/办事处",value:t=>Ft(t.officeName)},{key:"dept",label:"所属部门",value:t=>Ft(t.dept)},{key:"title",label:"职务",value:t=>Ft(t.title)},{key:"industry",label:"所属行业",value:t=>Ft(t.industry)},{key:"intent",label:"合作意向",value:t=>Ft(t.intent)},{key:"active",label:"销售是否在职",value:t=>t.active===null||t.active===void 0?"":t.active?"是":"否"},{key:"hasExp",label:"销售以前是否做过云桌面项目",value:t=>MQ(t.hasExp)},{key:"relatedProjects",label:"跟进的云桌面项目",kind:"project",value:t=>LQ(t.relatedProjects)},{key:"relatedProjectAmount",label:"跟进项目金额",numFmt:"#,##0.00",value:t=>uP(t.relatedProjects)??""},{key:"owner",label:"创建人",value:t=>Ft(t.owner)},{key:"createdAt",label:"创建时间",value:t=>Ft(t.createdAt)},{key:"updatedAt",label:"更新修改时间",value:t=>Ft(t.updatedAt)},{key:"followUps",label:"跟进记录",kind:"followup",value:t=>DQ(t.followUps)}],sp=["employeeNo","name","phone","officeName","dept","title","industry","intent","active","hasExp","relatedProjects","followUps"],DL=[{key:"name",label:"渠道名称",value:t=>Ft(t.name)},{key:"province",label:"省份",value:t=>Ft(t.province)},{key:"officeAddress",label:"办公地址",kind:"longText",value:t=>Ft(t.officeAddress)},{key:"channelIndustry",label:"聚焦行业",value:t=>Ft(t.channelIndustry)},{key:"certificationLevel",label:"汇智内部认证级别",value:t=>Ft(t.certificationLevel)},{key:"channelAttribute",label:"渠道属性",value:t=>Ft(t.channelAttribute)},{key:"internalAttribute",label:"新华三内部属性",value:t=>Ft(t.internalAttribute)},{key:"intent",label:"合作意向",value:t=>Ft(t.intent)},{key:"establishedDate",label:"建立联系时间",value:t=>Ft(t.establishedDate)},{key:"revenue",label:"年度营业额",numFmt:"#,##0.00",value:t=>oF(t.revenue??t.annualRevenue)??""},{key:"size",label:"人员规模",numFmt:"#,##0",value:t=>oF(t.size)??""},{key:"hasDesktopExp",label:"以前是否做过云桌面项目",value:t=>MQ(t.hasDesktopExp)},{key:"relatedProjects",label:"跟进的云桌面项目",kind:"project",value:t=>LQ(t.relatedProjects)},{key:"contacts",label:"人员信息",kind:"contact",value:t=>C5e(t.contacts)},{key:"followUps",label:"跟进记录",kind:"followup",value:t=>DQ(t.followUps)},{key:"channelCode",label:"编码",value:t=>Ft(t.channelCode)},{key:"city",label:"市",value:t=>Ft(t.city)},{key:"relatedProjectAmount",label:"跟进项目金额",numFmt:"#,##0.00",value:t=>uP(t.relatedProjects)??""},{key:"notes",label:"备注说明",kind:"longText",value:t=>Ft(t.notes)},{key:"owner",label:"创建人",value:t=>Ft(t.owner)},{key:"createdAt",label:"创建时间",value:t=>Ft(t.createdAt)},{key:"updatedAt",label:"更新修改时间",value:t=>Ft(t.updatedAt)}],lp=["name","province","officeAddress","channelIndustry","certificationLevel","channelAttribute","internalAttribute","intent","establishedDate","revenue","size","hasDesktopExp","relatedProjects","contacts","followUps"];function sd(t,e){return t===void 0?e:t}function lF(t,e){return t.map(r=>e.map(a=>a.value(r)))}function uF(t){var r,a,n,i,o,s,l,u,c;const e={};return(r=t.employeeNo)!=null&&r.trim()||(e.employeeNo="请填写工号"),(a=t.officeName)!=null&&a.trim()||(e.of
`).reduce((ca,Fo)=>Math.max(ca,AL(Fo)),0);return Math.max(Ta,Jn+2)},0))):Dt.kind==="longText"?24:Dt.label.includes("渠道属性")||Dt.label.includes("内部属性")||Dt.label.includes("聚焦行业")?18:16});On.forEach((Dt,zn)=>{const bn=Ya.getColumn(zn+1);bn.width=xo[zn],Dt.numFmt&&(bn.numFmt=Dt.numFmt),bn.alignment={vertical:"top",horizontal:"left",wrapText:Dt.kind==="followup"||Dt.kind==="project"||Dt.kind==="contact"}}),Ya.eachRow((Dt,zn)=>{if(Dt.eachCell((bn,Ta)=>{var Bn,Jn,ca;bn.border={top:{style:"thin",color:{argb:"FFE2E8F0"}},left:{style:"thin",color:{argb:"FFE2E8F0"}},bottom:{style:"thin",color:{argb:"FFE2E8F0"}},right:{style:"thin",color:{argb:"FFE2E8F0"}}},bn.alignment={vertical:"top",horizontal:zn===1?"center":"left",wrapText:zn>1&&(((Bn=On[Ta-1])==null?void 0:Bn.kind)==="followup"||((Jn=On[Ta-1])==null?void 0:Jn.kind)==="project"||((ca=On[Ta-1])==null?void 0:ca.kind)==="contact")}}),zn>1){const bn=On.reduce((Ta,Bn,Jn)=>{if(Bn.kind!=="project"&&Bn.kind!=="contact"&&Bn.kind!=="followup")return Ta;const ca=Dt.getCell(Jn+1).value;return Math.max(Ta,k5e(typeof ca=="string"?ca:"",xo[Jn]))},1);Dt.height=Math.max(22,bn*16)}});const il=await Ts.xlsx.writeBuffer(),eo=`${Me?"销售人员拓展":"渠道拓展"}_${N5e()}.xlsx`;A5e(eo,il),st(!1)}catch(de){wa(de instanceof Error?de.message:"导出失败,请稍后重试")}finally{xt(!1)}},wi=(J,Me,re,de=!1)=>g.jsxs("div",{className:"crm-form-grid",children:[g.jsxs("label",{className:"space-y-2",children:[g.jsxs("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:["工号",g.jsx(Ha,{})]}),g.jsx("input",{value:J.employeeNo,onChange:ct=>Me("employeeNo",ct.target.value),className:js(!!(re!=null&&re.employeeNo))}),re!=null&&re.employeeNo?g.jsx("p",{className:"text-xs text-rose-500",children:re.employeeNo}):null,!(re!=null&&re.employeeNo)&&!de&&En?g.jsx("p",{className:"text-xs text-rose-500",children:En}):null]}),g.jsxs("label",{className:"space-y-2",children:[g.jsxs("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:["代表处 / 办事处",g.jsx(Ha,{})]}),g.jsx(Tt,{value:J.officeName||"",placeholder:"请选择",sheetTitle:"代表处 / 办事处",searchable:!0,searchPlaceholder:"搜索代表处 / 办事处",options:[{value:"",label:"请选择"},...T.map(ct=>({value:ct.value??"",label:ct.label||"无"}))],className:Ne(re!=null&&re.officeName?"border-rose-400 bg-rose-50/60 focus:border-rose-500 focus:ring-rose-500 dark:border-rose-500/70 dark:bg-rose-500/10":""),onChange:ct=>Me("officeName",ct||void 0)}),re!=null&&re.officeName?g.jsx("p",{className:"text-xs text-rose-500",children:re.officeName}):null]}),g.jsxs("label",{className:"space-y-2",children:[g.jsxs("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:["姓名",g.jsx(Ha,{})]}),g.jsx("input",{value:J.candidateName,onChange:ct=>Me("candidateName",ct.target.value),className:js(!!(re!=null&&re.candidateName))}),re!=null&&re.candidateName?g.jsx("p",{className:"text-xs text-rose-500",children:re.candidateName}):null]}),g.jsxs("label",{className:"space-y-2",children:[g.jsxs("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:["联系方式",g.jsx(Ha,{})]}),g.jsx("input",{value:J.mobile,onChange:ct=>Me("mobile",ct.target.value),className:js(!!(re!=null&&re.mobile))}),re!=null&&re.mobile?g.jsx("p",{className:"text-xs text-rose-500",children:re.mobile}):null]}),g.jsxs("label",{className:"space-y-2",children:[g.jsxs("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:["所属部门",g.jsx(Ha,{})]}),g.jsx("input",{value:J.targetDept||"",onChange:ct=>Me("targetDept",ct.target.value),placeholder:"办事处/地市",className:js(!!(re!=null&&re.targetDept))}),re!=null&&re.targetDept?g.jsx("p",{className:"text-xs text-rose-500",children:re.targetDept}):null]}),g.jsxs("label",{className:"space-y-2",children:[g.jsxs("span",{className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:["所属行业",g.jsx(Ha,{})]}),g.jsx(Tt,{value:J.industry||"",placeholder:"请选
`)}).filter(Boolean).join(`
`)}function H5e(t,e){const r=e.trim().toUpperCase();return(t.roleCodes??"").split(",").map(a=>a.trim().toUpperCase()).includes(r)}function RL(t){return Cr(t).toLowerCase()}function U5e(t,e){const r=RL(e);return!r||t.toLowerCase().includes(r)}function bA(t,e){const r=RL(e);return r?t.some(a=>RL(a).includes(r)):!0}function $5e(t,e,r){const a=Cr(t).slice(0,10);return a?!(e&&a<e||r&&a>r):!e&&!r}function mF(t,e){return e==="yes"?t:e==="no"?!t:!0}function Bh(t){return Array.from(new Set((t??[]).map(e=>e==null?void 0:e.trim()).filter(e=>!!e)))}function Ly(t){var e,r;return((e=t==null?void 0:t.value)==null?void 0:e.trim())||((r=t==null?void 0:t.label)==null?void 0:r.trim())||""}function cP(t){var e,r;return((e=t==null?void 0:t.label)==null?void 0:e.trim())||((r=t==null?void 0:t.value)==null?void 0:r.trim())||""}function W5e(t){const e=Ly(t).toLowerCase(),r=cP(t).toLowerCase();return e==="lost"||e.includes("丢单")||r.includes("丢单")||e.includes("放弃")||r.includes("放弃")}function $Q(t){const e=t.map(Ly).filter(Boolean),r=t.filter(a=>!W5e(a)).map(Ly).filter(Boolean);return Bh(r.length>0?r:e)}function Rp(t,e){var a;if(t.stageCodes!==void 0)return{...t,stage:void 0,stageCodes:Bh(t.stageCodes)};const r=(a=t.stage)==null?void 0:a.trim();return r?{...t,stage:void 0,stageCodes:[r]}:e.length<=0?{...t,stage:void 0}:{...t,stage:void 0,stageCodes:$Q(e)}}function Y5e(t,e){const r=Bh(t).sort(),a=Bh(e).sort();return r.length===a.length&&r.every((n,i)=>n===a[i])}function X5e(t,e,r){var n,i,o;const a=[t.code,t.name,t.client,t.owner,t.projectLocation,t.projectOwnershipLocationName,t.projectOwnershipLocation,t.operatorName,t.stage,t.type,t.salesExpansionName,t.channelExpansionName,t.preSalesName,t.competitorName,t.latestProgress,t.nextPlan,t.notes,(n=t.followUps)==null?void 0:n.map(s=>`${s.content??""} ${s.latestProgress??""} ${s.nextAction??""}`).join(" ")].map(Cr).filter(Boolean).join(" ");if(!U5e(a,e.keyword)||!$5e(t.date,e.expectedStartDate,e.expectedEndDate))return!1;if(e.stageCodes!==void 0){const s=new Set(Bh(e.stageCodes));if(s.size<=0)return!1;const l=(i=t.stageCode)==null?void 0:i.trim(),u=(o=t.stage)==null?void 0:o.trim();if(!(l&&s.has(l))&&!(u&&s.has(u)))return!1}return e.confidence&&bd(t.confidence,r)!==e.confidence||!bA([t.projectLocation],e.projectLocation)||!bA([t.type],e.opportunityType)||!bA([t.operatorCode,t.operatorName],e.operatorName)||!mF(!!(t.salesExpansionId||t.salesExpansionName),e.hasSalesExpansion)?!1:mF(!!(t.channelExpansionId||t.channelExpansionName),e.hasChannelExpansion)}function q5e(t,e){return{opportunityName:t.name||"",customerName:t.client||"",projectLocation:t.projectLocation||"",projectOwnershipLocation:t.projectOwnershipLocation||"",amount:t.amount||0,expectedCloseDate:t.date||"",confidencePct:bd(t.confidence,e),stage:t.stageCode||t.stage||"",opportunityType:t.type||"",productType:t.product||"VDI云桌面",source:t.source||"主动开发",salesExpansionId:t.salesExpansionId,channelExpansionId:t.channelExpansionId,operatorName:t.operatorCode||t.operatorName||"",competitorName:t.competitorName||"",latestProgress:t.latestProgress||"",nextPlan:t.nextPlan||"",description:t.notes||""}}function Z5e(t){if(t==null)return"";if(typeof t=="number")return t>=80?"A":t>=60?"B":"C";const e=t.trim().toUpperCase();return e==="A"||e==="B"||e==="C"?e:e==="80"?"A":e==="60"?"B":""}function am(t){return t.length>0?t:[...R5e]}function bd(t,e){const r=typeof t=="string"?t.trim():typeof t=="number"?String(t):"",a=am(e);if(!r)return"";const n=a.find(u=>(u.value||"").trim()===r);if(n!=null&&n.value)return n.value;const i=a.find(u=>(u.label||"").trim()===r);if(i!=null&&i.value)return i.value;const o=Z5e(t);if(!o)return r;const s=a.find(u=>(u.value||"").trim().toUpperCase()===o);if(s!=null&&s.value)return s.value;const l=a.find(u=>(u.label||"").trim().toUpperCase()===o);return l!=null&&l.value?l.value:o}function G1(t,e){const r=bd(t,e),a=am(e).find(n=>(n.value||"")===r);return(a==null?void 0:a.label)||(a==null?void 0:a.value)||r||"无"}function K5e(t,e){const r=am(e),a=bd(t,e),n=r.findIndex(i=>(i.value||"")===a);return n<0?"crm-
`).length:1)},1);Ht.height=Math.max(22,sn*16)}});const Om=await Fn.xlsx.writeBuffer(),zm=`商机储备_${i==="active"?"未签单":"已签单"}_${G5e()}.xlsx`;F5e(zm,Om),q(!1)}catch(Re){Ce(Re instanceof Error?Re.message:"导出失败,请稍后重试")}finally{$(!1)}},Ca=(X,Le)=>{Pt(Re=>({...Re,[X]:Le})),X in ut&&Da(Re=>{const Ge={...Re};return delete Ge[X],Ge})},uu=X=>{Nr(X?Zd.find(Le=>Le.value===X)??null:null),Ca("salesExpansionId",X)},sl=X=>{Fe(X?ks.find(Le=>Le.value===X)??null:null),Ca("channelExpansionId",X)},Qd=(X,Le)=>{pt(Re=>({...Re,[X]:Le})),X in Zn&&Ur(Re=>{const Ge={...Re};return delete Ge[X],Ge}),X==="employeeNo"&&xn("")},cu=(X,Le)=>{Sa(Re=>({...Re,[X]:Le})),X in Rn&&Kr(Re=>{const Ge={...Re};return delete Ge[X],Ge}),X==="channelName"&&Kn("")},Dm=(X,Le,Re)=>{Sa(Ge=>{const Br=[...Ge.contacts??[]];return Br[X]={...Br[X]??kh(),[Le]:Re},{...Ge,contacts:Br}}),$a.includes(X)&&fr(Ge=>Ge.filter(Br=>Br!==X)),Rn.contacts&&Kr(Ge=>{const Br={...Ge};return delete Br.contacts,Br})},Lm=()=>{Sa(X=>({...X,contacts:[...X.contacts??[],kh()]}))},ll=X=>{Sa(Le=>{const Ge=(Le.contacts??[]).filter((Br,or)=>or!==X);return{...Le,contacts:Ge.length>0?Ge:[kh()]}}),fr(Le=>Le.filter(Re=>Re!==X).map(Re=>Re>X?Re-1:Re))},fc=X=>{const Le=X||"";cu("province",Le||void 0),cu("city",void 0),Ya(Le)},du=async()=>{var X,Le,Re;if(!Ze){if(tt(""),xn(""),Kn(""),Va==="sales"){const Ge=IQ(Ot);if(Object.keys(Ge).length>0){Ur(Ge),tt("请先完整填写销售人员拓展必填字段");return}}else{const Ge=(X=Wa.find(i_))==null?void 0:X.value,{errors:Br,invalidContactRows:or}=jQ(nn,Ge);if(Object.keys(Br).length>0){Kr(Br),fr(or),tt("请先完整填写渠道拓展必填字段");return}}wr(!0);try{let Ge;if(Va==="sales"){const or=await Ww(Ot.employeeNo.trim());if(or.duplicated){const Fn=or.message||"工号重复,请确认该人员是否已存在!";xn(Fn),Ur(on=>({...on,employeeNo:Fn})),tt(Fn),wr(!1);return}Ge=await zE(OQ(Ot))}else{const or=await Yw(nn.channelName.trim());if(or.duplicated){const Fn=or.message||"渠道重复,请确认该渠道是否已存在!";Kn(Fn),Kr(on=>({...on,channelName:Fn})),tt(Fn),wr(!1);return}Ge=await BE(zQ(nn))}const Br=await jn();if(Va==="sales"){const or=(Br.salesItems??[]).find(on=>on.id===Ge),Fn=or?{value:or.id,label:H1(or),keywords:[or.employeeNo||"",or.officeName||"",or.phone||"",or.title||""]}:{value:Ge,label:((Le=Ot.candidateName)==null?void 0:Le.trim())||`拓展人员#${Ge}`,keywords:[]};Nr(Fn),Ca("salesExpansionId",(or==null?void 0:or.id)??Ge)}else{const or=(Br.channelItems??[]).find(on=>on.id===Ge),Fn=or?{value:or.id,label:or.name||`渠道#${or.id}`,keywords:[or.channelCode||"",or.province||"",or.primaryContactName||"",or.primaryContactMobile||""]}:{value:Ge,label:((Re=nn.channelName)==null?void 0:Re.trim())||`渠道#${Ge}`,keywords:[]};Fe(Fn),Ca("channelExpansionId",(or==null?void 0:or.id)??Ge)}Bi()}catch(Ge){tt(Ge instanceof Error?Ge.message:"新增失败"),wr(!1)}}},As=()=>{me(""),Da({}),Pt(Fo()),Nr(null),Fe(null),Zr([]),la(""),L(!0)},hc=()=>{L(!1),P(!1),F(!1),me(""),Da({}),Pt(Fo()),Nr(null),Fe(null),Zr([]),la("")},ul=async X=>{const Re=(await vp(d,s,!1)).items??[];Be(Re),X&&m(Re.find(Ge=>Ge.id===X)??null)},vc=async()=>{if(I)return;me("");const X=yF(xe,Mr,za,Uo);if(Object.keys(X).length>0){Da(X),me("请先完整填写商机必填字段");return}F(!0);try{await r$(gF(xe,Mr,za,Uo)),await ul(),hc()}catch(Le){me(Le instanceof Error?Le.message:"新增商机失败"),F(!1)}},fu=()=>{if(!v)return;const X=Ue??v;if(!ga){me("仅可编辑本人负责的商机");return}if(Fi){me("已签单商机不允许编辑");return}me(""),Da({}),Pt(q5e(X,ca)),Nr(X.salesExpansionId&&X.salesExpansionName?{value:X.salesExpansionId,label:X.salesExpansionName,keywords:[]}:null),Fe(X.channelExpansionId&&X.channelExpansionName?{value:X.channelExpansionId,label:X.channelExpansionName,keywords:[]}:null);const Le=Q5e(X.competitorName);Zr(Le.selections),la(Le.customName),P(!0)},Jd=async()=>{if(!v||I)return;if(!ga){me("仅可编辑本人负责的商机");return}if(Fi){me("已签单商机不允许编辑");return}me("");const X=yF(xe,Mr,za,Uo);if(Objec
`):r==null?void 0:r.trim()}function uRe(t){const e=t==null?void 0:t.trim();return e||"无"}const XQ=6048e5,cRe=864e5,bF=Symbol.for("constructDateFrom");function Bd(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&bF in t?t[bF](e):t instanceof Date?new t.constructor(e):new Date(e)}function nl(t,e){return Bd(e||t,t)}let dRe={};function v2(){return dRe}function Vh(t,e){var s,l,u,c;const r=v2(),a=(e==null?void 0:e.weekStartsOn)??((l=(s=e==null?void 0:e.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??r.weekStartsOn??((c=(u=r.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,n=nl(t,e==null?void 0:e.in),i=n.getDay(),o=(i<a?7:0)+i-a;return n.setDate(n.getDate()-o),n.setHours(0,0,0,0),n}function l_(t,e){return Vh(t,{...e,weekStartsOn:1})}function qQ(t,e){const r=nl(t,e==null?void 0:e.in),a=r.getFullYear(),n=Bd(r,0);n.setFullYear(a+1,0,4),n.setHours(0,0,0,0);const i=l_(n),o=Bd(r,0);o.setFullYear(a,0,4),o.setHours(0,0,0,0);const s=l_(o);return r.getTime()>=i.getTime()?a+1:r.getTime()>=s.getTime()?a:a-1}function wF(t){const e=nl(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}function ZQ(t,...e){const r=Bd.bind(null,t||e.find(a=>typeof a=="object"));return e.map(r)}function SF(t,e){const r=nl(t,e==null?void 0:e.in);return r.setHours(0,0,0,0),r}function fRe(t,e,r){const[a,n]=ZQ(r==null?void 0:r.in,t,e),i=SF(a),o=SF(n),s=+i-wF(i),l=+o-wF(o);return Math.round((s-l)/cRe)}function hRe(t,e){const r=qQ(t,e),a=Bd(t,0);return a.setFullYear(r,0,4),a.setHours(0,0,0,0),l_(a)}function vRe(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function pRe(t){return!(!vRe(t)&&typeof t!="number"||isNaN(+nl(t)))}function mRe(t,e){const r=nl(t,e==null?void 0:e.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}const gRe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},yRe=(t,e,r)=>{let a;const n=gRe[t];return typeof n=="string"?a=n:e===1?a=n.one:a=n.other.replace("{{count}}",e.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};function Pp(t){return(e={})=>{const r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}const xRe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},bRe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wRe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},SRe={date:Pp({formats:xRe,defaultWidth:"full"}),time:Pp({formats:bRe,defaultWidth:"full"}),dateTime:Pp({formats:wRe,defaultWidth:"full"})},_Re={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},TRe=(t,e,r,a)=>_Re[t];function Pl(t){return(e,r)=>{const a=r!=null&&r.context?String(r.context):"standalone";let n;if(a==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,s=r!=null&&r.width?String(r.width):o;n=t.formattingValues[s]||t.formattingValues[o]}else{const o=t.defaultWidth,s=r!=null&&r.width?String
`))||"",kr(o.remark),DIe(o.status)])}),Dw(a,n,["现场照片","备注","打卡地点"]);const i=await r.xlsx.writeBuffer();await fJ(`打卡记录_${dJ()}.xlsx`,i)}async function kIe(t){const e=await f2(()=>import("./exceljs.min-_FHOiBEn.js").then(c=>c.e),[]),r=new e.Workbook,a=r.addWorksheet("日报汇总"),n=r.addWorksheet("日报明细"),i=r.addWorksheet("附件清单"),o=["序号","日报日期","提交时间","提交人","所属部门","今日工作内容","明日工作计划","今日工作条数","明日计划条数","日报附件"],s=["序号","日报日期","提交时间","提交人","明细序号","工作日期","跟进对象类型","跟进对象名称","工作内容/项目进展",jF,"本条附件"],l=["序号","日报日期","提交时间","提交人","所属部门","附件来源","明细序号","跟进对象类型","跟进对象名称","附件名称","附件链接"];a.addRow(o),n.addRow(s),i.addRow(l),t.forEach((c,d)=>{var m,x,b;const h=a.addRow([d+1,kr(c.reportDate),kr(c.submitTime),kr(c.userName),kr(c.deptName),cJ(c.workContent),kr(c.tomorrowPlan),((m=c.lineItems)==null?void 0:m.length)??0,((x=c.planItems)==null?void 0:x.length)??0,""]);GF(h.getCell(o.length),c.attachments),HF(i,c,c.attachments,"日报附件"),((b=c.lineItems)!=null&&b.length?c.lineItems:[void 0]).forEach((w,_)=>{const T=n.addRow([n.rowCount,kr(c.reportDate),kr(c.submitTime),kr(c.userName),_+1,kr(w==null?void 0:w.workDate),pP(w==null?void 0:w.bizType),kr(w==null?void 0:w.bizName),AIe(w),xje(w),""]);GF(T.getCell(s.length),w==null?void 0:w.attachments),HF(i,c,w==null?void 0:w.attachments,"记录附件",_,w)})}),Dw(a,o,["今日工作内容","明日工作计划","日报附件"]),Dw(n,s,["工作内容/项目进展",jF,"本条附件"]),Dw(i,l,["附件链接"]);const u=await r.xlsx.writeBuffer();await fJ(`日报_${dJ()}.xlsx`,u)}function NIe(t){return t?t==="reviewed"||t==="已点评"?"已点评":"已提交":"待提交"}function kr(t){if(t==null)return"";const e=String(t).replace(/\r\n/g,`
`).trim();return!e||e==="无"?"":e}function cJ(t){return kr(t).replace(/[;]?\s*附件:\s*\d+\s*个/g,"").trim()}function AIe(t){return cJ((t==null?void 0:t.latestProgress)||Sd(t==null?void 0:t.content,"项目最新进展")||(t==null?void 0:t.evaluationContent)||Sd(t==null?void 0:t.content,"沟通内容")||(t==null?void 0:t.editorText)||(t==null?void 0:t.content))}function hP(t,e){return kr(t.name)||`附件${e+1}`}function vP(t){const e=kr(t.url);if(!e||typeof window>"u")return e;try{return new URL(e,window.location.origin).href}catch{return e}}function MIe(t){return(t??[]).map((e,r)=>{const a=hP(e,r),n=vP(e);return n?`${a}${n}`:a}).filter(Boolean).join(`
`)}function GF(t,e){const r=(e==null?void 0:e.filter(a=>kr(a.url)))??[];if(!r.length){t.value="";return}if(r.length===1){const[a]=r,n=hP(a,0),i=vP(a);t.value=i?{text:n,hyperlink:i}:n,t.font=i?{color:{argb:"FF2563EB"},underline:!0}:void 0;return}t.value=MIe(r)}function HF(t,e,r,a="日报附件",n,i){((r==null?void 0:r.filter(s=>kr(s.url)))??[]).forEach((s,l)=>{const u=hP(s,l),c=vP(s),h=t.addRow([t.rowCount,kr(e.reportDate),kr(e.submitTime),kr(e.userName),kr(e.deptName),a,n===void 0?"":n+1,i?pP(i.bizType):"",kr(i==null?void 0:i.bizName),u,""]).getCell(11);h.value=c?{text:c,hyperlink:c}:"",c&&(h.font={color:{argb:"FF2563EB"},underline:!0})})}function pP(t){return t==="sales"?"销售人员拓展":t==="channel"?"渠道拓展":t==="opportunity"?"商机":kr(t)}function DIe(t){return t==="normal"?"正常":t==="abnormal"?"异常":t==="reissue"?"补卡":t==="updated"?"已更新":kr(t)}function dJ(t=new Date){const e=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0"),n=String(t.getHours()).padStart(2,"0"),i=String(t.getMinutes()).padStart(2,"0");return`${e}${r}${a}_${n}${i}`}async function fJ(t,e){const r=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if(LIe()){const n=await EIe(r);UF(t,n);return}const a=window.URL.createObjectURL(r);UF(t,a),window.URL.revokeObjectURL(a)}function UF(t,e){const r=document.createElement("a");r.href=e,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)}function LIe(){if(typeof window>"u")return!1;const t=window.location.hostname,e=new Set(["localhost","127.0.0.1","::1","[::1]"]);return window.location.protocol==="http:"&&!e.has(t)}function EIe(t){return new Promise((e,r)=>{const a=new FileReader;a.onload=()=>{typeof a.result=="string"?e(a.result):r(new Error("导出文件生成失败,请稍后重试"))},a.onerror=()=>r(a.error??new Error("导出文件生成失败,请稍后重试")),a.readAsDataURL(t)})}function Dw(t,e,r){t.views=[{state:"frozen",ySplit:1}],t.getRow(1).height=24,t.getRow(1).font={bold:!0},t.getRow(1).alignment={vertical:"middle",horizontal:"center"},e.forEach((a,n)=>{const i=t.getColumn(n+1);r.includes(a)?i.width=32:a.includes("内容")||a.includes("计划")||a.includes("地点")?i.width=24:a.includes("时间")||a.includes("日期")?i.width=18:i.width=16}),t.eachRow((a,n)=>{if(a.eachCell((i,o)=>{i.border={top:{style:"thin",color:{argb:"FFE2E8F0"}},left:{style:"thin",color:{argb:"FFE2E8F0"}},bottom:{style:"thin",color:{argb:"FFE2E8F0"}},right:{style:"thin",color:{argb:"FFE2E8F0"}}},i.alignment={vertical:"top",horizontal:n===1?"center":"left",wrapText:r.includes(e[o-1])}}),n>1){const i=e.reduce((o,s,l)=>{if(!r.includes(s))return o;const u=kr(a.getCell(l+1).value);return Math.max(o,u?u.split(`
`).length:1)},1);a.height=Math.max(22,i*16)}})}function RIe(){var Fm,vl;const t=po(),e=au(),r=Gd(),a=e||r,n=lJ(),i=E.useRef(!1),o=E.useRef(null),s=E.useRef(null),l=E.useRef(null),u=E.useRef(null),c=E.useRef(null),d=E.useRef(new Map),h=E.useRef(null),[v,m]=E.useState(!0),[x,b]=E.useState(!1),[w,_]=E.useState(!1),[T,C]=E.useState(!1),[k,A]=E.useState(!1),[M,L]=E.useState(null),[R,P]=E.useState({}),[j,V]=E.useState({}),I=E.useRef({}),[F,G]=E.useState("entry"),[O,U]=E.useState(""),[$,K]=E.useState(!1),[q,H]=E.useState(null),[Z,te]=E.useState(),[ie,ce]=E.useState(!1),[me,ze]=E.useState(""),[Ce,ge]=E.useState(""),[Be,_e]=E.useState(""),[Oe,xt]=E.useState(""),[Ye,st]=E.useState(""),[We,At]=E.useState([]),[kt,Jt]=E.useState(!0),[Nr,rr]=E.useState(!1),[Fe,Mt]=E.useState(!1),[dr,ar]=E.useState(1),[sa,va]=E.useState(!1),[rn,wa]=E.useState(""),[En,pa]=E.useState({}),[an,gr]=E.useState(!1),[Ar,Hr]=E.useState(!1),[ye,Rt]=E.useState("all"),[Te,xe]=E.useState(""),[Pt,bt]=E.useState(!1),[Vt,Zt]=E.useState(null),[nr,_r]=E.useState(),[ma,Mr]=E.useState(!1),[Zr,za]=E.useState(!0),[la,ut]=E.useState(!1),[Da,Tr]=E.useState(!1),[lr,Ba]=E.useState(()=>lje()),[Dr,Va]=E.useState(null),[ua,Ze]=E.useState([]),[wr,le]=E.useState([]),[tt,Ot]=E.useState([]),[pt,nn]=E.useState([]),[Sa,Zn]=E.useState([]),[Ur,Rn]=E.useState([]),[Kr,$a]=E.useState(!1),[fr,Vo]=E.useState(!1),[bi,Pn]=E.useState(!1),[Qr,Ss]=E.useState("sales"),[Ji,Oi]=E.useState(!1),[mo,yn]=E.useState(""),[In,Wa]=E.useState(Lp),[La,wi]=E.useState(Ep),[jr,zi]=E.useState(W1),[xn,Or]=E.useState([]),[Kn,_a]=E.useState(""),[_s,Si]=E.useState({}),[J,Me]=E.useState({}),[re,de]=E.useState({}),[ct,ir]=E.useState([]),[zr,Qn]=E.useState([]),[Xe,jn]=E.useState([]),[Bi,Ts]=E.useState([]),[Ya,go]=E.useState([]),[Ue,On]=E.useState([]),[_i,yo]=E.useState([]),[xo,il]=E.useState([]),[eo,Dt]=E.useState([]),[zn,bn]=E.useState([]),[Ta,Bn]=E.useState([]),[Jn,ca]=E.useState([]),[Fo,dc]=E.useState([]),[iu,Jr]=E.useState([]),[Fa,Vi]=E.useState(""),[ou,ol]=E.useState(""),[ur,Go]=E.useState(BF),[Ti,Vn]=E.useState(mIe),[yr,Ho]=E.useState(null),[ga,Fi]=E.useState(null),[Cs,su]=E.useState([]),[Uo,Jh]=E.useState(!1),[Mm,Yd]=E.useState(""),[ui,Ci]=E.useState(null),[Xd,qd]=E.useState(null),[Zd,ks]=E.useState(null),Kd=ru(),Ns=sje(t.pathname),ei=Ns??"checkin",lu=Ns?sJ.find(Y=>Y.key===Ns):null,Ca=uje(lr),uu=!Ca,sl=E.useMemo(()=>{const Y=t.state,ee=Y==null?void 0:Y.openReportId;return typeof ee=="string"&&ee.trim()?ee.trim():typeof ee=="number"&&Number.isSafeInteger(ee)&&ee>0?ee:null},[t.state]),Qd=E.useMemo(()=>{if(!yr)return[];const Y=KF(yr.bizType,wr,tt,pt),ee=QF(yr.query).toLowerCase();return ee?Y.filter(oe=>oe.label.toLowerCase().includes(ee)):Y},[yr,wr,tt,pt]),cu=E.useMemo(()=>{var ee;if(!ga)return[];const Y=new Set((((ee=Ti.lineItems[ga.lineIndex])==null?void 0:ee.toUsers)??[]).map(oe=>oe.userId));return Cs.map(oe=>({...oe,selected:Y.has(oe.userId)}))},[Ti.lineItems,Cs,ga]),Dm=ga?Nh((Fm=Ti.lineItems[ga.lineIndex])==null?void 0:Fm.toUsers).length:0,Lm=E.useMemo(()=>{const Y=Sa.filter(ee=>m2(ee.id)).map(ee=>[ee.id,ee]);return new Map(Y)},[Sa]),ll=E.useMemo(()=>wIe(jr.operatorName,eo),[jr.operatorName,eo]),fc=E.useMemo(()=>{const Y=new Map;for(const ee of We){const oe=f_(ee.content),ke=oe.name.trim();if(!oe.label||!ke)continue;const qe=Y.get(ke);if(qe){qe.count+=1;continue}Y.set(ke,{label:`${oe.label}${ke}`,count:1})}return Array.from(Y.entries()).map(([ee,oe])=>({value:ee,label:oe.label,count:oe.count})).sort((ee,oe)=>oe.count-ee.count||ee.value.localeCompare(oe.value,"zh-CN"))},[We]),du=E.useMemo(()=>ye==="all"?We:We.filter(Y=>f_(Y.content).name.trim()===ye),[We,ye]),As=E.useMemo(()=>{const Y=[];for(const ee of du){const oe=ee.date||"未标注日期",ke=Y[Y.length-1];if(ke&&ke.date===oe){ke.items.push(ee);continue}const qe=ee.id!=null?`${ee.type}-${ee.id}`:`${ee.type}-${Y.length}`;Y.push({key:`${oe}-${qe}`,date:oe,items:[ee]})}return Y},[du]),hc=E.useCallback(async()=>{if(Kr||fr)return;Vo(!0);const[Y,ee,oe]=await Promise.allSettled([mp(""),vp(),pp()]);if(Y.status==="fulfilled"&&(le(XF(Y.value.salesItems??[])),Ot(qF(Y.
`)[0])==null?void 0:It.trim())||"")!==h_(ke.bizType,ke.bizName)?dje(ke):{...ke,editorText:Lw(ke.bizType,ke.bizName,ee,ke.toUsers)}})}))},Ht=(Y,ee)=>{Vn(oe=>({...oe,lineItems:oe.lineItems.map((ke,qe)=>{if(qe!==Y||ke.bizType!=="opportunity"||!ke.bizName)return ke;const lt=im(ee,Ur)||ee.trim();return{...ke,stage:lt,editorText:Lw(ke.bizType,ke.bizName,ke.editorText||Ah(ke.bizType,ke.bizName),ke.toUsers)}})}))},ki=()=>{Vn(Y=>({...Y,lineItems:[...Y.lineItems,fh()]}))},bo=Y=>{Vn(ee=>({...ee,lineItems:ee.lineItems.length===1?[fh()]:ee.lineItems.filter((oe,ke)=>ke!==Y)})),Ho(ee=>ee&&ee.mode==="report"&&ee.lineIndex===Y?null:ee)},sn=async(Y,ee)=>{var ke;const oe=(ke=ee.target.files)==null?void 0:ke[0];if(oe){if(oe.size>OF){const qe=`单个附件不能超过${ux(OF)}`;_e(qe),V(lt=>({...lt,[Y]:qe})),ee.target.value="";return}I.current[Y]=oe,_e(""),st(""),L(Y),V(qe=>{const lt={...qe};return delete lt[Y],lt}),P(qe=>({...qe,[Y]:0}));try{const qe=await ade(oe,{onProgress:lt=>{P(It=>({...It,[Y]:lt}))}});Vn(lt=>({...lt,lineItems:lt.lineItems.map((It,Ga)=>{if(Ga!==Y)return It;const Gn=It.attachments??[];return Gn.some(ka=>ka.url===qe.url)?It:{...It,attachments:[...Gn,qe]}})})),I.current[Y]=null}catch(qe){const lt=qe instanceof Error?qe.message:"附件上传失败";_e(lt),V(It=>({...It,[Y]:lt}))}finally{L(null),P(qe=>{const lt={...qe};return delete lt[Y],lt}),ee.target.value=""}}},hl=(Y,ee)=>{Vn(oe=>({...oe,lineItems:oe.lineItems.map((ke,qe)=>qe===Y?{...ke,attachments:(ke.attachments??[]).filter(lt=>lt.url!==ee)}:ke)}))},vu=Y=>{const ee=I.current[Y];if(!ee){_e("请重新选择附件后再试");return}sn(Y,{target:{files:[ee],value:""}})},pc=(Y,ee)=>{Vn(oe=>({...oe,planItems:oe.planItems.map((ke,qe)=>qe===Y?{...ke,content:ee}:ke)}))},y2=()=>{Vn(Y=>({...Y,planItems:[...Y.planItems,CA()]}))},mc=Y=>{Vn(ee=>({...ee,planItems:ee.planItems.length===1?[CA()]:ee.planItems.filter((oe,ke)=>ke!==Y)}))},Bm=async()=>{var Y,ee;if(!w){ge(""),xt(""),_(!0);try{if(Ca)throw new Error("当前角色仅可查看打卡历史记录");if(!ur.latitude||!ur.longitude||!ur.locationText.trim())throw new Error("请先完成定位后再提交打卡");if(Z&&Z>rh&&!ie)throw new Error(`当前定位精度约 ${Math.round(Z)} 超过 ${rh} 请先重新定位或完成位置确认后再打卡`);if(!ur.bizType||!ur.bizId)throw new Error("请先关联本次打卡对象");if(!ua.length)throw new Error("请先上传现场照片");if(!((Y=ur.remark)!=null&&Y.trim()))throw new Error("请填写打卡备注");await tde({locationText:ur.locationText.trim(),remark:((ee=ur.remark)==null?void 0:ee.trim())||void 0,longitude:ur.longitude,latitude:ur.latitude,photoUrls:ua,bizType:ur.bizType,bizId:ur.bizId,bizName:ur.bizName,userName:(lr==null?void 0:lr.displayName)||(Dr==null?void 0:Dr.realName)||(lr==null?void 0:lr.username)||"",deptName:(Dr==null?void 0:Dr.deptName)||""}),await Promise.all([vc(),fu(ei,1,!0)]),Ze([]),xt("打卡已记录。")}catch(oe){ge(oe instanceof Error?oe.message:"打卡提交失败")}finally{_(!1)}}},ef=async()=>{if(!T){_e(""),st(""),C(!0);try{if(!ma)throw new Error("日报功能配置加载中,请稍后重试");if(Ca)throw new Error("当前角色仅可查看日报历史记录");const Y=Ti.lineItems.map(oe=>vje(oe,n,Ur)).map(oe=>pje(oe,la,Da)),ee=Ti.planItems.map(oe=>({content:oe.content.trim()})).filter(oe=>oe.content);if(!Y.length)throw new Error("请至少填写一条今日工作内容");mje(Y,Ur,Zr),await ide({workContent:gje(Y),lineItems:Y,planItems:ee,tomorrowPlan:yje(ee),sourceType:Ti.sourceType||"manual"}),await Promise.all([vc(),fu(ei,1,!0)]),st("日报已保存,今日再次提交会覆盖当天内容。")}catch(Y){_e(Y instanceof Error?Y.message:"日报提交失败")}finally{C(!1)}}},Vm=async Y=>{if(!sa){va(!0),wa(""),pa(Y);try{if(ei==="checkin"){const ee=await Qce(Y);if(!ee.length)throw new Error("当前筛选条件下暂无可导出数据");await CIe(ee)}else{const ee=await Jce(Y);if(!ee.length)throw new Error("当前筛选条件下暂无可导出数据");await kIe(ee)}gr(!1)}catch(ee){wa(ee instanceof Error?ee.message:"导出失败请稍<E8AFB7>
`).slice(1).join(`
`):Ah(bt.bizType,bt.bizName).split(`
`).slice(1).join(`
`)):nr=nr||bt.editorText||"";const _r=KIe(nr,Vt,Pt),ma=bt.bizName?`${h_(bt.bizType,bt.bizName)}
${_r}`:_r,Mr=[...ge.current];Mr[Te]={...bt,editorText:ma},ge.current=Mr,c(Te,ma);const Zr=QIe(nr,Vt,Pt);ce.current[Te]={start:Zr,end:Zr},dr()},[dr,c]),gr=E.useCallback(async(Te,xe)=>{var Vt;const Pt=ge.current[Te];if(!Pt||!Pt.bizName&&b)return;dr(),va(Te,{focus:!1});const bt=YIe();if(!((Vt=navigator.mediaDevices)!=null&&Vt.getUserMedia)||!bt){H({lineIndex:Te,targetField:"",insertionStart:xe==null?void 0:xe.start,insertionEnd:xe==null?void 0:xe.end,status:"error",error:"当前浏览器不支持语音录音,请使用新版 Chrome、Edge 或企业微信内置浏览器。"});return}try{At.current=!1,En();const Zt=await navigator.mediaDevices.getUserMedia({audio:!0}),nr=new bt;nr.state==="suspended"&&await nr.resume();const _r=nr.createMediaStreamSource(Zt),ma=nr.createScriptProcessor(4096,1,1);ma.onaudioprocess=Mr=>{if(Mr.outputBuffer.getChannelData(0).fill(0),At.current)return;const Zr=Mr.inputBuffer.getChannelData(0);Ye.current.push(new Float32Array(Zr)),st.current+=Zr.length},_r.connect(ma),ma.connect(nr.destination),Be.current=Zt,_e.current=nr,Oe.current=_r,xt.current=ma,kt.current=Date.now(),te(0),We.current=window.setInterval(()=>{te(Mr=>Mr+1)},1e3),H({lineIndex:Te,targetField:"",insertionStart:xe==null?void 0:xe.start,insertionEnd:xe==null?void 0:xe.end,status:"recording",error:""})}catch(Zt){pa(),H({lineIndex:Te,targetField:"",insertionStart:xe==null?void 0:xe.start,insertionEnd:xe==null?void 0:xe.end,status:"error",error:Zt instanceof Error?Zt.message:"无法访问麦克风,请检查浏览器权限。"})}},[va,dr,b,En,pa]),Ar=E.useCallback(()=>{const Te=q;if(!Te||Te.status!=="recording")return;const xe=Date.now()-kt.current,Pt=_e.current,bt=(Pt==null?void 0:Pt.sampleRate)||16e3,Vt=st.current,Zt=Vt?XIe(Ye.current,Vt):null;if(pa(),En(),!Zt||Vt/bt*1e3<zF){H({lineIndex:Te.lineIndex,targetField:Te.targetField,status:"error",error:xe<zF?"录音时间太短,请至少录制 1 秒后再识别。":"没有录到声音,请检查麦克风后重试。"});return}H({lineIndex:Te.lineIndex,targetField:Te.targetField,status:"transcribing",error:""});const nr=qIe(Zt,bt);nde(nr).then(_r=>{var Mr;const ma=((Mr=_r.text)==null?void 0:Mr.trim())||"";if(!ma){H({lineIndex:Te.lineIndex,targetField:Te.targetField,status:"error",error:"语音识别结果为空,请重新录音。"});return}an(Te.lineIndex,ma,Te.insertionStart!==void 0?{start:Te.insertionStart,end:Te.insertionEnd??Te.insertionStart}:void 0),H(null),te(0)}).catch(_r=>{H({lineIndex:Te.lineIndex,targetField:Te.targetField,status:"error",error:_r instanceof Error?_r.message:"语音识别失败,请重试。"})})},[q,En,pa,an]),Hr=E.useCallback(Te=>{var bt;const xe=((bt=me.current)==null?void 0:bt.lineIndex)===Te?me.current:void 0;me.current=null;const Pt=xe??sa(Te);if(dr(),(q==null?void 0:q.lineIndex)===Te&&q.status==="recording"){Ar();return}(q==null?void 0:q.status)==="recording"||(q==null?void 0:q.status)==="transcribing"||gr(Te,Pt)},[dr,sa,q,gr,Ar]);E.useEffect(()=>()=>{At.current=!0,pa()},[pa]);const ye=E.useCallback(()=>{rr.current=a.lineItems.length,i()},[i,a.lineItems.length]),Rt=E.useCallback(()=>{Fe.current=a.planItems.length,M()},[M,a.planItems.length]);return E.useEffect(()=>{if(a.lineItems.length>Jt.current){if(rr.current!==null){const Te=Math.min(rr.current,a.lineItems.length-1);U(Te),K(null),rr.current=null}}else O!==null&&O>=a.lineItems.length&&U(a.lineItems.length?a.lineItems.length-1:null);Jt.current=a.lineItems.length},[O,a.lineItems.length]),E.useEffect(()=>{if(a.planItems.length>Nr.current){if(Fe.current!==null){const Te=Math.min(Fe.current,a.planItems.length-1);K(Te),U(null),Fe.current=null}}else $!==null&&$>=a.planItems.length&&K(a.planItems.length?a.planItems.length-1:null);Nr.current=a.planItems.length},[$,a.planItems.length]),E.useEffect(()=>{ie.current.forEach(X1)},[a.lineItems]),E.useEffect(()=>{O!==null&&requestAnimationFrame(()=>Mt(ie.current[O]))},[O,Mt]),E.useEffect(()=>{$!==null&&requestAnimationFrame(()=>Mt(Ce.current[$]))},[$,Mt]),g.jsxs(Xt.div,{initial:G?!1:{opacity:0,y:10},animate:{opacity:1,y:0},transition:G?{duration:0}:void 0,classN
`).slice(1).join(`
`):"",za=Te.attachments??[],la=h===xe,ut=v[xe]??0,Da=m[xe],Tr=(q==null?void 0:q.lineIndex)===xe?q:null,lr=b&&!Te.bizName,Ba=(Tr==null?void 0:Tr.status)==="recording",Dr=(Tr==null?void 0:Tr.status)==="transcribing",Va=!!q&&q.lineIndex!==xe&&(q.status==="recording"||q.status==="transcribing");return g.jsxs("div",{className:"relative rounded-2xl border border-slate-100/90 bg-slate-50/30 p-3 dark:border-slate-800/70 dark:bg-slate-900/20",children:[g.jsx("span",{className:"absolute -left-2 -top-2 z-10 inline-flex h-6 min-w-6 items-center justify-center rounded-full bg-violet-600 px-2 text-xs font-semibold leading-none text-white shadow-sm ring-2 ring-white dark:ring-slate-950","aria-label":` ${xe+1} `,children:xe+1}),g.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-start sm:gap-3",children:[Pt?g.jsxs("div",{className:"min-w-0 flex-1 space-y-2.5",children:[Te.bizName?g.jsxs("div",{className:"flex flex-wrap items-center gap-2 rounded-2xl border border-slate-200/80 bg-slate-50/80 px-3.5 py-2.5 dark:border-slate-800 dark:bg-slate-900/30",children:[g.jsx("p",{className:"min-w-0 flex-1 text-sm font-semibold leading-6 text-slate-900 dark:text-white",children:nr}),Te.bizType==="opportunity"?g.jsx("div",{className:"w-full sm:w-[180px]",children:g.jsx(Tt,{value:Vt,placeholder:"项目阶段",sheetTitle:"项目阶段",searchable:!0,searchPlaceholder:"搜索项目阶段",options:n.map(Ze=>({value:Ze.value||"",label:Ze.label||Ze.value||""})),className:Ne("min-h-9 rounded-full border-violet-200 bg-white px-3 py-2 text-sm font-medium text-violet-700 shadow-none hover:border-violet-300 dark:border-violet-500/30 dark:bg-slate-950/40 dark:text-violet-200 dark:hover:border-violet-400",Vt?"":"text-slate-400 dark:text-slate-500"),onChange:Ze=>d(xe,Ze)})}):null,Te.bizType!=="opportunity"&&Zt?g.jsx("span",{className:"inline-flex rounded-full bg-violet-100 px-2.5 py-1 text-xs font-medium text-violet-700 dark:bg-violet-500/15 dark:text-violet-300",children:Zt}):null]}):Te.bizType==="opportunity"?g.jsx("div",{className:"w-full sm:w-[180px]",children:g.jsx(Tt,{value:Vt,placeholder:"项目阶段",sheetTitle:"项目阶段",searchable:!0,searchPlaceholder:"搜索项目阶段",options:n.map(Ze=>({value:Ze.value||"",label:Ze.label||Ze.value||""})),className:Ne("min-h-9 rounded-full border-violet-200 bg-white px-3 py-2 text-sm font-medium text-violet-700 shadow-none hover:border-violet-300 dark:border-violet-500/30 dark:bg-slate-950/40 dark:text-violet-200 dark:hover:border-violet-400",Vt?"":"text-slate-400 dark:text-slate-500"),onChange:Ze=>d(xe,Ze)})}):null,g.jsxs("div",{className:"relative",children:[g.jsx("textarea",{rows:2,ref:Ze=>{ie.current[xe]=Ze,X1(Ze)},value:Te.bizName?Zr:Te.editorText||"",onKeyDown:Ze=>u(xe,Ze),onChange:Ze=>{X1(Ze.currentTarget),c(xe,Te.bizName?`${nr}
${Ze.target.value}`:Ze.target.value),ar(xe,Ze.currentTarget)},onSelect:Ze=>ar(xe,Ze.currentTarget),onClick:Ze=>ar(xe,Ze.currentTarget),onKeyUp:Ze=>ar(xe,Ze.currentTarget),placeholder:"输入工作内容,或输入 # 选择对象生成字段。",className:"crm-input-box crm-input-text min-h-[88px] w-full resize-none overflow-hidden rounded-2xl border border-slate-200 bg-white pb-11 pr-12 leading-7 text-slate-900 outline-none transition-colors focus:border-violet-500 focus:ring-1 focus:ring-violet-500 dark:border-slate-800 dark:bg-slate-900/60 dark:text-white"}),g.jsx("button",{type:"button",onPointerDown:Ze=>{Ze.preventDefault();const wr=sa(xe);wr&&(me.current={lineIndex:xe,...wr}),dr()},onClick:()=>Hr(xe),disabled:lr||Dr||Va,className:Ne("absolute bottom-2.5 right-2.5 inline-flex h-8 w-8 items-center justify-center rounded-full border shadow-sm transition-colors disabled:cursor-not-allowed disabled:opacity-45",Ba?"border-rose-200 bg-rose-50 text-rose-600 dark:border-rose-500/30 dark:bg-rose-500/10 dark:text-rose-300":"border-violet-200 bg-violet-50 text-violet-600 hover:bg-violet-100 dark:border-violet-500/30 dark:bg-violet-500/10 dark:text-violet-300 dark:hover:bg-violet-500/20"),title:lr?"请先选择关联对象":Dr?"语音识别中":Va?"其他行正在语音输入":Ba?"停止录音并识别":"语音输入到光标位置","aria-label":lr?"请先选择关联对象":"语音输入到光标位置",children:Dr?g.jsx(C0,{className:"h-4 w-4 animate-spin"}):Ba?g.jsx(mne,{className:"h-3.5 w-3.5 fill-current"}):g.jsx(Uae,{className:"h-4 w-4"})})]}),Ba||Dr||(Tr==null?void 0:Tr.status)==="error"?g.jsx("div",{className:Ne("flex items-center gap-2 rounded-xl px-3 py-2 text-xs font-medium",Ba?"bg-rose-50 text-rose-600 dark:bg-rose-500/10 dark:text-rose-300":Dr?"bg-violet-50 text-violet-600 dark:bg-violet-500/10 dark:text-violet-300":"bg-amber-50 text-amber-700 dark:bg-amber-500/10 dark:text-amber-200"),children:Ba?g.jsxs(g.Fragment,{children:[g.jsx("span",{className:"h-2 w-2 rounded-full bg-rose-500"}),g.jsxs("span",{children:["录音中 ",JIe(Z),",再次点击麦克风停止并识别"]})]}):Dr?g.jsxs(g.Fragment,{children:[g.jsx(C0,{className:"h-3.5 w-3.5 animate-spin"}),g.jsx("span",{children:"正在识别,完成后会自动写入光标位置"})]}):g.jsx("span",{children:(Tr==null?void 0:Tr.error)||"语音识别失败,请重新录音。"})}):null,_?g.jsx(Ey,{attachments:za,onPreview:A,onRemove:Ze=>k(xe,Ze.url),uploadProgress:la?ut:void 0,uploadError:Da,onRetryUpload:Da?()=>C(xe):void 0}):null]}):g.jsxs("div",{className:"min-w-0 flex-1 space-y-2",children:[g.jsx("button",{type:"button",onClick:()=>va(xe),className:"min-h-[68px] w-full rounded-2xl border border-slate-200 bg-slate-50/80 px-3.5 py-3 text-left transition-colors hover:border-violet-300 dark:border-slate-800 dark:bg-slate-900/50 dark:hover:border-violet-500",children:g.jsxs("div",{className:"space-y-1.5",children:[g.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[g.jsx("p",{className:Ne("min-w-0 flex-1 truncate text-sm font-semibold leading-6",Te.bizName||_r?"text-slate-900 dark:text-white":"text-slate-400 dark:text-slate-500"),children:Te.bizName?nr:ma||"输入工作内容,或输入 # 选择对象生成字段。"}),Te.bizType==="opportunity"&&Zt?g.jsx("span",{className:"inline-flex rounded-full bg-violet-100 px-2.5 py-1 text-xs font-medium text-violet-700 dark:bg-violet-500/15 dark:text-violet-300",children:Zt}):null]}),g.jsx("div",{className:"space-y-0.5",children:Mr.map((Ze,wr)=>g.jsx("p",{className:Ne("truncate text-sm leading-6",Te.editorText?"text-slate-900 dark:text-white":"text-slate-400 dark:text-slate-500"),children:Ze},`report-line-preview-${xe}-${wr}`))})]})}),_?g.jsx(Ey,{attachments:za,onPreview:A,onRemove:Ze=>k(xe,Ze.url),uploadProgress:la?ut:void 0,uploadError:Da,onRetryUpload:Da?()=>C(xe):void 0}):null]}),g.jsxs("div",{className:"flex w-full shrink-0 items-center justify-end gap-2 sm:w-auto sm:self-center lg:grid lg:w-[88px] lg:grid-cols-2 lg:self-start",children:[_?g.jsx("input",{ref:Ze=>{ze.current[xe]=Ze},type:"file",classN
`).filter(n=>!n.trim().startsWith("#")).join(`
`).trim():""}function YIe(){return window.AudioContext||window.webkitAudioContext||null}function XIe(t,e){const r=new Float32Array(e);let a=0;for(const n of t)r.set(n,a),a+=n.length;return r}function qIe(t,e){const r=ZIe(t,e);return new File([r],`report-speech-${Date.now()}.wav`,{type:"audio/wav"})}function ZIe(t,e){const n=new ArrayBuffer(44+t.length*2),i=new DataView(n);Y1(i,0,"RIFF"),i.setUint32(4,36+t.length*2,!0),Y1(i,8,"WAVE"),Y1(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,e,!0),i.setUint32(28,e*2,!0),i.setUint16(32,2,!0),i.setUint16(34,16,!0),Y1(i,36,"data"),i.setUint32(40,t.length*2,!0);let o=44;for(let s=0;s<t.length;s+=1){const l=Math.max(-1,Math.min(1,t[s]));i.setInt16(o,l<0?l*32768:l*32767,!0),o+=2}return new Blob([n],{type:"audio/wav"})}function Y1(t,e,r){for(let a=0;a<r.length;a+=1)t.setUint8(e+a,r.charCodeAt(a))}function KIe(t,e,r){const a=e.replace(/\s+/g," ").trim();if(!a)return t;const n=t.replace(/\r/g,"");if(!n.trim())return a;const{start:i,end:o}=hJ(r,n.length),s=n.slice(0,i),l=n.slice(o),u=s&&!d_(s,a)?" ":"",c=l&&!d_(a,l)?" ":"";return`${s}${u}${a}${c}${l}`}function QIe(t,e,r){const a=e.replace(/\s+/g," ").trim(),n=t.replace(/\r/g,""),{start:i,end:o}=hJ(r,n.length),s=n.slice(0,i),l=n.slice(o),u=s&&!d_(s,a)?" ":"",c=l&&!d_(a,l)?" ":"";return s.length+u.length+a.length+c.length}function hJ(t,e){if(!t)return{start:e,end:e};const r=Math.max(0,Math.min(e,t.start)),a=Math.max(r,Math.min(e,t.end));return{start:r,end:a}}function d_(t,e){const r=t.slice(-1),a=e.charAt(0);return!r||!a||/\s/.test(r)||/^[,。!?;:、,.!?;:)]/.test(a)||/[,。!?;:、]$/.test(r)?!0:/[\u4e00-\u9fff]/.test(r)&&/[\u4e00-\u9fff]/.test(a)}function JIe(t){const e=Math.floor(t/60),r=t%60;return`${String(e).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function eje({url:t,alt:e,onClose:r,disableMobileMotion:a}){return g.jsxs("div",{className:"fixed inset-0 z-[100]",children:[g.jsx("button",{type:"button",onClick:r,className:Ne("absolute inset-0 bg-slate-950/82",!a&&"backdrop-blur-sm"),"aria-label":"关闭照片预览"}),g.jsxs("div",{className:"absolute inset-0 flex items-center justify-center px-4 py-6",children:[g.jsx("button",{type:"button",onClick:r,className:"absolute right-4 top-4 inline-flex h-10 w-10 items-center justify-center rounded-full bg-white/10 text-white transition-colors hover:bg-white/20","aria-label":"关闭",children:g.jsx(Oa,{className:"h-5 w-5"})}),g.jsx(p2,{src:t,alt:e,className:"max-h-full max-w-full rounded-2xl object-contain shadow-2xl"})]})]})}function X1(t){if(!t)return;t.style.height="auto";const e=Number.parseFloat(window.getComputedStyle(t).minHeight||"0"),r=Number.isFinite(e)&&e>0?e:88;t.style.height=`${Math.max(t.scrollHeight,r)}px`}function tje(t,e){if(!(t!=null&&t.trim()))return[e];const r=t.replace(/\r/g,"").split(`
`).map(n=>n.trim()).filter(Boolean);if(!r.length)return[e];const a=r.slice(0,3);if(r.length>a.length){const n=a.length-1;a[n]=`${a[n]} `}return a}function f_(t){if(!(t!=null&&t.trim()))return{label:"",name:"",content:""};let e="",r="";const a=t.replace(/\r/g,"").split(`
`).filter(n=>{const o=n.trim().match(/^(提交人|打卡人)\s*(.+)$/);return!o||e?!0:(e=o[1],r=o[2].trim(),!1)});return{label:e,name:r,content:a.join(`
`).trim()}}function rje(t){if(!t||t==="未标注日期")return"未标注日期";const e=new Date(`${t}T00:00:00`);return Number.isNaN(e.getTime())?t:fP(e,"M月d日 EEEE",{locale:eJ})}function vJ(t){return[t.type||"unknown",t.id??"no-id",t.date||"no-date",t.time||"no-time",t.status||"no-status",t.content||""].join("::")}function BL(t){const e=new Map;for(const r of t)e.set(vJ(r),r);return Array.from(e.values())}function aje(t,e){return BL([...t,...e])}function WF({title:t,accent:e,compact:r=!1}){return g.jsxs("div",{className:`flex items-center gap-2 ${r?"mb-0":"mb-2"}`,children:[g.jsx("div",{className:`h-6 w-1 rounded-full ${e}`}),g.jsx("h2",{className:"text-base font-semibold text-slate-900 dark:text-white sm:text-lg",children:t})]})}function wd(t){return typeof t=="string"?t.trim():""}function nje(t){return/[-+]?\d+\.\d+\s*,\s*[-+]?\d+\.\d+/.test(t)}function nd(t){const e=wd(t);return!e||e.includes("坐标")||nje(e)?!1:e.length>=6}function kA(t){const e=wd(t);return e?/(街道|大道|路|街|巷|号|栋|座|室|园区|商务区|广场|大厦|中心|大楼|社区)/.test(e):!1}function ije(t,e){return`${t.toFixed(5)},${e.toFixed(5)}`}function oje(t){if(typeof window>"u")return"";try{const e=window.localStorage.getItem(c_);if(!e)return"";const r=JSON.parse(e),a=r==null?void 0:r[t];return!a||typeof a.expiresAt!="number"||a.expiresAt<=Date.now()?(a&&(delete r[t],window.localStorage.setItem(c_,JSON.stringify(r))),""):wd(a.value)}catch{return""}}function YF(t,e){if(!(typeof window>"u"||!e))try{const r=window.localStorage.getItem(c_),a=r?JSON.parse(r):{};a[t]={value:e,expiresAt:Date.now()+gIe},window.localStorage.setItem(c_,JSON.stringify(a))}catch{}}async function VL(t,e,r){const a=ije(t,e),n=wd(r);if(nd(n)&&kA(n))return $1.set(a,n),YF(a,n),n;const i=$1.get(a);if(nd(i)&&kA(i))return i;const o=oje(a);if(nd(o)&&kA(o))return $1.set(a,o),o;for(let s=0;s<2;s+=1)try{const l=await ede(t,e);if(nd(l)){const u=wd(l);return $1.set(a,u),YF(a,u),u}}catch{}return nd(o)?wd(o):nd(i)?wd(i):nd(n)?n:""}function W0(){return"当前位置待补充,请点击“刷新定位”重新解析地点名称"}function FL(t,e){const r=u=>u*Math.PI/180,n=r(e.latitude-t.latitude),i=r(e.longitude-t.longitude),o=r(t.latitude),s=r(e.latitude),l=Math.sin(n/2)**2+Math.cos(o)*Math.cos(s)*Math.sin(i/2)**2;return 2*6371e3*Math.asin(Math.sqrt(l))}function sje(t){return t==="/work"||t==="/work/"?null:t.startsWith("/work/checkin")?"checkin":t.startsWith("/work/report")?"report":null}function Ry(t){return t==="checkin"?"打卡":"日报"}function lje(){if(typeof window>"u")return null;try{const t=window.sessionStorage.getItem("userProfile");return t?JSON.parse(t):null}catch{return null}}function uje(t){return((t==null?void 0:t.roleCodes)??[]).some(e=>(e==null?void 0:e.trim().toLowerCase())==="only_see")}function XF(t){const e=new Set;return t.filter(r=>m2(r.id)).filter(r=>e.has(r.id)?!1:(e.add(r.id),!0)).map(r=>({id:r.id,label:OL(r)}))}function qF(t){const e=new Set;return t.filter(r=>m2(r.id)).filter(r=>e.has(r.id)?!1:(e.add(r.id),!0)).map(r=>({id:r.id,label:r.name||`拓展渠道#${r.id}`}))}function ZF(t){const e=new Set;return t.filter(r=>m2(r.id)).filter(r=>e.has(r.id)?!1:(e.add(r.id),!0)).map(r=>({id:r.id,label:r.name||`商机#${r.id}`}))}function m2(t){return typeof t=="string"?!!t.trim():typeof t=="number"&&Number.isSafeInteger(t)&&t>0}function nm(t){return t==="sales"?"人员拓展":t==="channel"?"渠道拓展":"商机"}function KF(t,e,r,a){return t==="sales"?e:t==="channel"?r:a}function QF(t){return t.replace(/[#@]+/g,"").trimStart()}function im(t,e){const r=(t==null?void 0:t.trim())||"";if(!r)return"";const a=e.find(i=>(i.value||"").trim()===r);if(a!=null&&a.value)return a.value;const n=e.find(i=>(i.label||"").trim()===r);return n!=null&&n.value?n.value:""}function g2(t,e){const r=(t==null?void 0:t.trim())||"";if(!r)return"";const a=e.find(i=>(i.value||"").trim()===r);if(a!=null&&a.label)return a.label;const n=e.find(i=>(i.label||"").trim()===r);return n!=null&&n.label?n.label:r}function pJ(t){return[...vIe[t]]}function cje(t,e){return t==="opportunity"&&e===Z
`).filter(a=>!gJ(a)).join(`
`);return e?r.trim():r}function Py(t,e,r=!0){const a=dx(t,r),n=mJ(e);return n?a.trim().length>0?`${a}${a.endsWith(`
`)?"":`
`}${n}`:n:a}function Ah(t,e,r,a){const n=[h_(t,e)];for(const o of pJ(t)){const s=(r==null?void 0:r[o])||"";n.push(`+ ${o}${s}`)}const i=mJ(a);return i&&n.push(i),n.join(`
`)}function dje(t){return{...fh(),bizType:t.bizType,workDate:t.workDate,attachments:t.attachments??[],toUsers:t.toUsers??[],editorText:Py("",t.toUsers)}}function Iy(t,e){const r={},a=pJ(t);let n=null;for(const i of e.replace(/\r/g,"").split(`
`)){const o=fje(i,t,a);if(o){n=o.field,o.field&&(r[o.field]=o.value);continue}if(gJ(i)){n=null;continue}if(i.startsWith("#")||i.startsWith("@")){n=null;continue}if(n){const s=i.trim();if(!s)continue;r[n]=r[n]?`${r[n]}
${s}`:s}}return r}function fje(t,e,r){const a=t.match(/^[+#]\s*(.*)$/);if(!a)return null;const n=a[1].trim();for(const i of r)for(const o of cje(e,i)){if(!n.startsWith(o))continue;const s=n.slice(o.length).trimStart();return s?s.startsWith("")||s.startsWith(":")?{field:i,value:s.slice(1).trim()}:{field:null,value:""}:{field:i,value:""}}return{field:null,value:""}}function Lw(t,e,r,a){return Ah(t,e,Iy(t,r),a)}function hje(t,e){const r={...fh(),...t};if(r.toUsers=Nh(r.toUsers),!r.bizId||!r.bizName){const i=dx(r.editorText||r.content||"");return{...r,editorText:Py(i,r.toUsers),content:i}}const a={};if(r.bizType==="sales"||r.bizType==="channel")a.沟通内容=r.evaluationContent||Sd(r.content,"沟通内容")||"",a[Xs]=r.nextPlan||Sd(r.content,Xs)||"";else{a.项目最新进展=r.latestProgress||Sd(r.content,"项目最新进展")||"";const i=r.stage||Sd(r.content,u_)||"";a[u_]=g2(i,e),a[Zu]=r.nextPlan||xJ(r.content,[Zu,Xs])||"",r.stage=im(i,e)||r.stage||""}const n=r.bizName||"未命名对象";return r.editorText=Lw(r.bizType,n,r.editorText||Ah(r.bizType,n,a),r.toUsers),r}function vje(t,e,r){var u,c;const a=((u=t.bizName)==null?void 0:u.trim())||"",n=Nh(t.toUsers);if(!t.bizId||!a)return xIe(e,t.editorText||t.content||"",t.attachments,n);const i=Iy(t.bizType,t.editorText||""),o=a?Ah(t.bizType,a,i,n):"",s=Iy(t.bizType,o),l=t.bizType==="opportunity"?im(t.stage,r)||((c=t.stage)==null?void 0:c.trim())||"":t.stage;return{...t,workDate:e,bizName:a,stage:l,attachments:t.attachments??[],toUsers:n,editorText:o,content:yJ(t.bizType,s,l,r)}}function pje(t,e,r){if(e&&r)return t;const a={...t};return e||(a.toUsers=[],a.editorText=dx(a.editorText)),r||(a.attachments=[]),a}function mje(t,e,r){var a,n,i,o,s;for(const l of t){if(!l.bizId||!l.bizName){if(r)throw new Error("请使用 # 选择日报关联对象");if(!((a=l.editorText)!=null&&a.trim())&&!((n=l.content)!=null&&n.trim()))throw new Error("请填写今日工作内容");continue}if(!l.editorText)throw new Error("请完整填写选择对象后的工作内容");const u=Iy(l.bizType,l.editorText);if(l.bizType==="opportunity"){if(!((i=u.项目最新进展)!=null&&i.trim()))throw new Error(`商机${l.bizName}请填写项目最新进展`);if(!((o=l.stage)!=null&&o.trim()))throw new Error(`商机${l.bizName}请选择项目阶段`);if(e.length>0&&!im(l.stage,e))throw new Error(`商机${l.bizName}的项目阶段无效请按字典选择`);continue}if(!((s=u.沟通内容)!=null&&s.trim()))throw new Error(`${nm(l.bizType)}${l.bizName}请填写沟通内容`)}}function yJ(t,e,r,a=[]){if(t==="opportunity"){const n=g2(r,a);return[e.项目最新进展?`项目最新进展${e.项目最新进展}`:"",n?`${u_}${n}`:"",e[Zu]?`${Zu}${e[Zu]}`:""].filter(Boolean).join(`
`)}return[e.沟通内容?`沟通内容${e.沟通内容}`:"",e[Xs]?`${Xs}${e[Xs]}`:""].filter(Boolean).join(`
`)}function gje(t){return t.map((e,r)=>{if(!e.bizId||!e.bizName)return`${r+1}. ${e.workDate} ${e.content||e.editorText||""}`;const a=Iy(e.bizType,e.editorText||""),n=yJ(e.bizType,a,e.stage).replace(/\n/g,"");return`${r+1}. ${e.workDate} 跟进${nm(e.bizType)}${e.bizName||""}${n}`}).join(`
`)}function yje(t){return t.map((e,r)=>`${r+1}. ${e.content.trim()}`).join(`
`)}function Sd(t,e){var a;if(!t)return"";const r=t.match(new RegExp(`${e}([^
]+)`));return((a=r==null?void 0:r[1])==null?void 0:a.trim())||""}function xJ(t,e){for(const r of e){const a=Sd(t,r);if(a)return a}return""}function xje(t){return t?t.bizType==="opportunity"?kr(t.nextPlan||xJ(t.content,[Zu,Xs])):kr(t.nextPlan||Sd(t.content,Xs)):""}async function bje(t,e){const r=URL.createObjectURL(t);try{const a=await _je(r),n=document.createElement("canvas");n.width=a.naturalWidth,n.height=a.naturalHeight;const i=n.getContext("2d");if(!i)throw new Error("图片处理失败");i.drawImage(a,0,0);const o=fP(new Date,"yyyy-MM-dd HH:mm:ss"),s=wje(e),l=[o,s],u=Math.max(28,Math.round(n.width/28));i.font=`${u}px sans-serif`,i.textBaseline="bottom";const c=n.width*.58,d=l.flatMap(k=>Sje(i,k,c)),h=Math.round(u*.6),v=Math.round(u*.45),m=Math.round(u*1.35),x=d.reduce((k,A)=>Math.max(k,i.measureText(A).width),0),b=Math.ceil(x+h*2),w=Math.ceil(m*d.length+v*2),_=n.width-b-h,T=n.height-v;i.fillStyle="rgba(15, 23, 42, 0.68)",i.fillRect(_-h,T-w+v,b,w),i.fillStyle="#ffffff",d.forEach((k,A)=>{const M=T-m*(d.length-1-A);i.fillText(k,_,M)});const C=await new Promise((k,A)=>{n.toBlob(M=>{if(!M){A(new Error("图片处理失败"));return}k(M)},"image/jpeg",.92)});return new File([C],t.name.replace(/\.[^.]+$/,"")+"-stamped.jpg",{type:"image/jpeg"})}finally{URL.revokeObjectURL(r)}}function wje(t){const e=t.replace(/\s+/g," ").trim();return e?e.length>48?`${e.slice(0,48)}...`:e:"位置待补充"}function Sje(t,e,r){if(!e)return[""];if(t.measureText(e).width<=r)return[e];const a=[];let n="";for(const i of e){const o=`${n}${i}`;n&&t.measureText(o).width>r?(a.push(n),n=i):n=o}return n&&a.push(n),a}function GL(){if(typeof navigator>"u")return!1;const t=navigator.userAgent||"";return/Android|iPhone|iPod|Mobile|HarmonyOS/i.test(t)}function _je(t){return new Promise((e,r)=>{const a=new Image;a.onload=()=>e(a),a.onerror=()=>r(new Error("图片读取失败")),a.src=t})}const Tje={violet:{halo:"from-violet-500/18 via-fuchsia-500/10 to-cyan-400/10 dark:from-violet-400/16 dark:via-fuchsia-400/10 dark:to-cyan-300/10",iconWrap:"bg-violet-100 text-violet-700 ring-violet-200 dark:bg-violet-500/15 dark:text-violet-200 dark:ring-violet-400/20",accentText:"text-violet-600 dark:text-violet-300",confirmButton:"bg-violet-600 text-white shadow-[0_14px_34px_rgba(124,58,237,0.28)] hover:bg-violet-700 dark:bg-violet-500 dark:hover:bg-violet-400"},amber:{halo:"from-amber-400/20 via-orange-400/12 to-rose-400/10 dark:from-amber-300/18 dark:via-orange-300/12 dark:to-rose-300/10",iconWrap:"bg-amber-100 text-amber-700 ring-amber-200 dark:bg-amber-500/15 dark:text-amber-100 dark:ring-amber-400/20",accentText:"text-amber-700 dark:text-amber-200",confirmButton:"bg-amber-500 text-slate-950 shadow-[0_14px_34px_rgba(245,158,11,0.28)] hover:bg-amber-400 dark:bg-amber-400 dark:hover:bg-amber-300"},emerald:{halo:"from-emerald-400/20 via-teal-400/12 to-cyan-400/10 dark:from-emerald-300/18 dark:via-teal-300/12 dark:to-cyan-300/10",iconWrap:"bg-emerald-100 text-emerald-700 ring-emerald-200 dark:bg-emerald-500/15 dark:text-emerald-100 dark:ring-emerald-400/20",accentText:"text-emerald-700 dark:text-emerald-200",confirmButton:"bg-emerald-600 text-white shadow-[0_14px_34px_rgba(5,150,105,0.28)] hover:bg-emerald-700 dark:bg-emerald-500 dark:hover:bg-emerald-400"},slate:{halo:"from-slate-400/18 via-slate-300/12 to-slate-200/8 dark:from-slate-500/18 dark:via-slate-400/12 dark:to-slate-300/8",iconWrap:"bg-slate-100 text-slate-700 ring-slate-200 dark:bg-slate-800 dark:text-slate-100 dark:ring-slate-700",accentText:"text-slate-700 dark:text-slate-200",confirmButton:"bg-slate-900 text-white shadow-[0_14px_34px_rgba(15,23,42,0.24)] hover:bg-slate-800 dark:bg-slate-100 dark:text-slate-950 dark:hover:bg-white"}};function bJ({title:t,description:e,icon:r,tone:a="violet",children:n,confirmText:i="确认",cancelText:o="取消",onConfirm:s,onClose:l,loading:u=!1,hideCancel:c=!1}){const d=E.useId(),h=E.useId(),v=Tje[a];return E.useEffect(()=>{const m=x=>{x.key==="Escape"&&!u&&l()};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[u,l]),g.jsxs(g.Fragme