"use strict";(()=>{var Mie=Object.create;var AM=Object.defineProperty;var Cie=Object.getOwnPropertyDescriptor;var zie=Object.getOwnPropertyNames;var Tie=Object.getPrototypeOf,Aie=Object.prototype.hasOwnProperty;var qa=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Fs=(e,t)=>{for(var n in t)AM(e,n,{get:t[n],enumerable:!0})},Iie=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of zie(t))!Aie.call(e,r)&&r!==n&&AM(e,r,{get:()=>t[r],enumerable:!(i=Cie(t,r))||i.enumerable});return e};var Ln=(e,t,n)=>(n=e!=null?Mie(Tie(e)):{},Iie(t||!e||!e.__esModule?AM(n,"default",{value:e,enumerable:!0}):n,e));var O6=qa(Lt=>{"use strict";var LM=Symbol.for("react.transitional.element"),Rie=Symbol.for("react.portal"),Lie=Symbol.for("react.fragment"),Eie=Symbol.for("react.strict_mode"),Die=Symbol.for("react.profiler"),Oie=Symbol.for("react.consumer"),Nie=Symbol.for("react.context"),Pie=Symbol.for("react.forward_ref"),jie=Symbol.for("react.suspense"),Uie=Symbol.for("react.memo"),A6=Symbol.for("react.lazy"),Bie=Symbol.for("react.activity"),M6=Symbol.iterator;function Fie(e){return e===null||typeof e!="object"?null:(e=M6&&e[M6]||e["@@iterator"],typeof e=="function"?e:null)}var I6={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R6=Object.assign,L6={};function Zh(e,t,n){this.props=e,this.context=t,this.refs=L6,this.updater=n||I6}Zh.prototype.isReactComponent={};Zh.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Zh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function E6(){}E6.prototype=Zh.prototype;function EM(e,t,n){this.props=e,this.context=t,this.refs=L6,this.updater=n||I6}var DM=EM.prototype=new E6;DM.constructor=EM;R6(DM,Zh.prototype);DM.isPureReactComponent=!0;var C6=Array.isArray;function RM(){}var En={H:null,A:null,T:null,S:null},D6=Object.prototype.hasOwnProperty;function OM(e,t,n){var i=n.ref;return{$$typeof:LM,type:e,key:t,ref:i!==void 0?i:null,props:n}}function qie(e,t){return OM(e.type,t,e.props)}function NM(e){return typeof e=="object"&&e!==null&&e.$$typeof===LM}function Vie(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var z6=/\/+/g;function IM(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Vie(""+e.key):t.toString(36)}function Hie(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(RM,RM):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Hh(e,t,n,i,r){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case LM:case Rie:a=!0;break;case A6:return a=e._init,Hh(a(e._payload),t,n,i,r)}}if(a)return r=r(e),a=i===""?"."+IM(e,0):i,C6(r)?(n="",a!=null&&(n=a.replace(z6,"$&/")+"/"),Hh(r,t,n,"",function(c){return c})):r!=null&&(NM(r)&&(r=qie(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(z6,"$&/")+"/")+a)),t.push(r)),1;a=0;var s=i===""?".":i+":";if(C6(e))for(var l=0;l<e.length;l++)i=e[l],o=s+IM(i,l),a+=Hh(i,t,n,o,r);else if(l=Fie(e),typeof l=="function")for(e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,o=s+IM(i,l++),a+=Hh(i,t,n,o,r);else if(o==="object"){if(typeof e.then=="function")return Hh(Hie(e),t,n,i,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function Vx(e,t,n){if(e==null)return e;var i=[],r=0;return Hh(e,i,"","",function(o){return t.call(n,o,r++)}),i}function Zie(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var T6=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Gie={map:Vx,forEach:function(e,t,n){Vx(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Vx(e,function(){t++}),t},toArray:function(e){return Vx(e,function(t){return t})||[]},only:function(e){if(!NM(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Lt.Activity=Bie;Lt.Children=Gie;Lt.Component=Zh;Lt.Fragment=Lie;Lt.Profiler=Die;Lt.PureComponent=EM;Lt.StrictMode=Eie;Lt.Suspense=jie;Lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=En;Lt.__COMPILER_RUNTIME={__proto__:null,c:function(e){return En.H.useMemoCache(e)}};Lt.cache=function(e){return function(){return e.apply(null,arguments)}};Lt.cacheSignal=function(){return null};Lt.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=R6({},e.props),r=e.key;if(t!=null)for(o in t.key!==void 0&&(r=""+t.key),t)!D6.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(i[o]=t[o]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var a=Array(o),s=0;s<o;s++)a[s]=arguments[s+2];i.children=a}return OM(e.type,r,i)};Lt.createContext=function(e){return e={$$typeof:Nie,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Oie,_context:e},e};Lt.createElement=function(e,t,n){var i,r={},o=null;if(t!=null)for(i in t.key!==void 0&&(o=""+t.key),t)D6.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(r[i]=t[i]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];r.children=s}if(e&&e.defaultProps)for(i in a=e.defaultProps,a)r[i]===void 0&&(r[i]=a[i]);return OM(e,o,r)};Lt.createRef=function(){return{current:null}};Lt.forwardRef=function(e){return{$$typeof:Pie,render:e}};Lt.isValidElement=NM;Lt.lazy=function(e){return{$$typeof:A6,_payload:{_status:-1,_result:e},_init:Zie}};Lt.memo=function(e,t){return{$$typeof:Uie,type:e,compare:t===void 0?null:t}};Lt.startTransition=function(e){var t=En.T,n={};En.T=n;try{var i=e(),r=En.S;r!==null&&r(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(RM,T6)}catch(o){T6(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),En.T=t}};Lt.unstable_useCacheRefresh=function(){return En.H.useCacheRefresh()};Lt.use=function(e){return En.H.use(e)};Lt.useActionState=function(e,t,n){return En.H.useActionState(e,t,n)};Lt.useCallback=function(e,t){return En.H.useCallback(e,t)};Lt.useContext=function(e){return En.H.useContext(e)};Lt.useDebugValue=function(){};Lt.useDeferredValue=function(e,t){return En.H.useDeferredValue(e,t)};Lt.useEffect=function(e,t){return En.H.useEffect(e,t)};Lt.useEffectEvent=function(e){return En.H.useEffectEvent(e)};Lt.useId=function(){return En.H.useId()};Lt.useImperativeHandle=function(e,t,n){return En.H.useImperativeHandle(e,t,n)};Lt.useInsertionEffect=function(e,t){return En.H.useInsertionEffect(e,t)};Lt.useLayoutEffect=function(e,t){return En.H.useLayoutEffect(e,t)};Lt.useMemo=function(e,t){return En.H.useMemo(e,t)};Lt.useOptimistic=function(e,t){return En.H.useOptimistic(e,t)};Lt.useReducer=function(e,t,n){return En.H.useReducer(e,t,n)};Lt.useRef=function(e){return En.H.useRef(e)};Lt.useState=function(e){return En.H.useState(e)};Lt.useSyncExternalStore=function(e,t,n){return En.H.useSyncExternalStore(e,t,n)};Lt.useTransition=function(){return En.H.useTransition()};Lt.version="19.2.7"});var oo=qa((jIe,N6)=>{"use strict";N6.exports=O6()});var G6=qa(jn=>{"use strict";function BM(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,r=e[i];if(0<Hx(r,t))e[i]=t,e[n]=r,n=i;else break e}}function Va(e){return e.length===0?null:e[0]}function Gx(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,r=e.length,o=r>>>1;i<o;){var a=2*(i+1)-1,s=e[a],l=a+1,c=e[l];if(0>Hx(s,n))l<r&&0>Hx(c,s)?(e[i]=c,e[l]=n,i=l):(e[i]=s,e[a]=n,i=a);else if(l<r&&0>Hx(c,n))e[i]=c,e[l]=n,i=l;else break e}}return t}function Hx(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}jn.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(P6=performance,jn.unstable_now=function(){return P6.now()}):(PM=Date,j6=PM.now(),jn.unstable_now=function(){return PM.now()-j6});var P6,PM,j6,qs=[],ic=[],Wie=1,To=null,lr=3,FM=!1,ag=!1,sg=!1,qM=!1,F6=typeof setTimeout=="function"?setTimeout:null,q6=typeof clearTimeout=="function"?clearTimeout:null,U6=typeof setImmediate<"u"?setImmediate:null;function Zx(e){for(var t=Va(ic);t!==null;){if(t.callback===null)Gx(ic);else if(t.startTime<=e)Gx(ic),t.sortIndex=t.expirationTime,BM(qs,t);else break;t=Va(ic)}}function VM(e){if(sg=!1,Zx(e),!ag)if(Va(qs)!==null)ag=!0,Wh||(Wh=!0,Gh());else{var t=Va(ic);t!==null&&HM(VM,t.startTime-e)}}var Wh=!1,lg=-1,V6=5,H6=-1;function Z6(){return qM?!0:!(jn.unstable_now()-H6<V6)}function jM(){if(qM=!1,Wh){var e=jn.unstable_now();H6=e;var t=!0;try{e:{ag=!1,sg&&(sg=!1,q6(lg),lg=-1),FM=!0;var n=lr;try{t:{for(Zx(e),To=Va(qs);To!==null&&!(To.expirationTime>e&&Z6());){var i=To.callback;if(typeof i=="function"){To.callback=null,lr=To.priorityLevel;var r=i(To.expirationTime<=e);if(e=jn.unstable_now(),typeof r=="function"){To.callback=r,Zx(e),t=!0;break t}To===Va(qs)&&Gx(qs),Zx(e)}else Gx(qs);To=Va(qs)}if(To!==null)t=!0;else{var o=Va(ic);o!==null&&HM(VM,o.startTime-e),t=!1}}break e}finally{To=null,lr=n,FM=!1}t=void 0}}finally{t?Gh():Wh=!1}}}var Gh;typeof U6=="function"?Gh=function(){U6(jM)}:typeof MessageChannel<"u"?(UM=new MessageChannel,B6=UM.port2,UM.port1.onmessage=jM,Gh=function(){B6.postMessage(null)}):Gh=function(){F6(jM,0)};var UM,B6;function HM(e,t){lg=F6(function(){e(jn.unstable_now())},t)}jn.unstable_IdlePriority=5;jn.unstable_ImmediatePriority=1;jn.unstable_LowPriority=4;jn.unstable_NormalPriority=3;jn.unstable_Profiling=null;jn.unstable_UserBlockingPriority=2;jn.unstable_cancelCallback=function(e){e.callback=null};jn.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V6=0<e?Math.floor(1e3/e):5};jn.unstable_getCurrentPriorityLevel=function(){return lr};jn.unstable_next=function(e){switch(lr){case 1:case 2:case 3:var t=3;break;default:t=lr}var n=lr;lr=t;try{return e()}finally{lr=n}};jn.unstable_requestPaint=function(){qM=!0};jn.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=lr;lr=e;try{return t()}finally{lr=n}};jn.unstable_scheduleCallback=function(e,t,n){var i=jn.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?i+n:i):n=i,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=n+r,e={id:Wie++,callback:t,priorityLevel:e,startTime:n,expirationTime:r,sortIndex:-1},n>i?(e.sortIndex=n,BM(ic,e),Va(qs)===null&&e===Va(ic)&&(sg?(q6(lg),lg=-1):sg=!0,HM(VM,n-i))):(e.sortIndex=r,BM(qs,e),ag||FM||(ag=!0,Wh||(Wh=!0,Gh()))),e};jn.unstable_shouldYield=Z6;jn.unstable_wrapCallback=function(e){var t=lr;return function(){var n=lr;lr=t;try{return e.apply(this,arguments)}finally{lr=n}}}});var Y6=qa((BIe,W6)=>{"use strict";W6.exports=G6()});var K6=qa(_r=>{"use strict";var Yie=oo();function X6(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function rc(){}var xr={d:{f:rc,r:function(){throw Error(X6(522))},D:rc,C:rc,L:rc,m:rc,X:rc,S:rc,M:rc},p:0,findDOMNode:null},Xie=Symbol.for("react.portal");function Kie(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xie,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}var cg=Yie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Wx(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}_r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=xr;_r.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(X6(299));return Kie(e,t,null,n)};_r.flushSync=function(e){var t=cg.T,n=xr.p;try{if(cg.T=null,xr.p=2,e)return e()}finally{cg.T=t,xr.p=n,xr.d.f()}};_r.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,xr.d.C(e,t))};_r.prefetchDNS=function(e){typeof e=="string"&&xr.d.D(e)};_r.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=Wx(n,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?xr.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:r,fetchPriority:o}):n==="script"&&xr.d.X(e,{crossOrigin:i,integrity:r,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};_r.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Wx(t.as,t.crossOrigin);xr.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&xr.d.M(e)};_r.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=Wx(n,t.crossOrigin);xr.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};_r.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Wx(t.as,t.crossOrigin);xr.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else xr.d.m(e)};_r.requestFormReset=function(e){xr.d.r(e)};_r.unstable_batchedUpdates=function(e,t){return e(t)};_r.useFormState=function(e,t,n){return cg.H.useFormState(e,t,n)};_r.useFormStatus=function(){return cg.H.useHostTransitionStatus()};_r.version="19.2.7"});var e3=qa((qIe,Q6)=>{"use strict";function J6(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(J6)}catch(e){console.error(e)}}J6(),Q6.exports=K6()});var hF=qa(b1=>{"use strict";var wi=Y6(),Mj=oo(),Jie=e3();function be(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Cj(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Yg(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function zj(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Tj(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function t3(e){if(Yg(e)!==e)throw Error(be(188))}function Qie(e){var t=e.alternate;if(!t){if(t=Yg(e),t===null)throw Error(be(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return t3(r),e;if(o===i)return t3(r),t;o=o.sibling}throw Error(be(188))}if(n.return!==i.return)n=r,i=o;else{for(var a=!1,s=r.child;s;){if(s===n){a=!0,n=r,i=o;break}if(s===i){a=!0,i=r,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,i=r;break}if(s===i){a=!0,i=o,n=r;break}s=s.sibling}if(!a)throw Error(be(189))}}if(n.alternate!==i)throw Error(be(190))}if(n.tag!==3)throw Error(be(188));return n.stateNode.current===n?e:t}function Aj(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Aj(e),t!==null)return t;e=e.sibling}return null}var Nn=Object.assign,ere=Symbol.for("react.element"),Yx=Symbol.for("react.transitional.element"),vg=Symbol.for("react.portal"),ef=Symbol.for("react.fragment"),Ij=Symbol.for("react.strict_mode"),kC=Symbol.for("react.profiler"),Rj=Symbol.for("react.consumer"),Ks=Symbol.for("react.context"),xz=Symbol.for("react.forward_ref"),MC=Symbol.for("react.suspense"),CC=Symbol.for("react.suspense_list"),_z=Symbol.for("react.memo"),oc=Symbol.for("react.lazy");Symbol.for("react.scope");var zC=Symbol.for("react.activity");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var tre=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var n3=Symbol.iterator;function ug(e){return e===null||typeof e!="object"?null:(e=n3&&e[n3]||e["@@iterator"],typeof e=="function"?e:null)}var nre=Symbol.for("react.client.reference");function TC(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===nre?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ef:return"Fragment";case kC:return"Profiler";case Ij:return"StrictMode";case MC:return"Suspense";case CC:return"SuspenseList";case zC:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case vg:return"Portal";case Ks:return e.displayName||"Context";case Rj:return(e._context.displayName||"Context")+".Consumer";case xz:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _z:return t=e.displayName||null,t!==null?t:TC(e.type)||"Memo";case oc:t=e._payload,e=e._init;try{return TC(e(t))}catch{}}return null}var yg=Array.isArray,St=Mj.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,un=Jie.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Bu={pending:!1,data:null,method:null,action:null},AC=[],tf=-1;function Ya(e){return{current:e}}function Ii(e){0>tf||(e.current=AC[tf],AC[tf]=null,tf--)}function In(e,t){tf++,AC[tf]=e.current,e.current=t}var Wa=Ya(null),Dg=Ya(null),gc=Ya(null),z_=Ya(null);function T_(e,t){switch(In(gc,t),In(Dg,e),In(Wa,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?cj(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=cj(t),e=JB(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ii(Wa),In(Wa,e)}function xf(){Ii(Wa),Ii(Dg),Ii(gc)}function IC(e){e.memoizedState!==null&&In(z_,e);var t=Wa.current,n=JB(t,e.type);t!==n&&(In(Dg,e),In(Wa,n))}function A_(e){Dg.current===e&&(Ii(Wa),Ii(Dg)),z_.current===e&&(Ii(z_),Zg._currentValue=Bu)}var ZM,i3;function Nu(e){if(ZM===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ZM=t&&t[1]||"",i3=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ZM+e+i3}var GM=!1;function WM(e,t){if(!e||GM)return"";GM=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(h){var f=h}Reflect.construct(e,[],d)}else{try{d.call()}catch(h){f=h}e.call(d.prototype)}}else{try{throw Error()}catch(h){f=h}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(h){if(h&&f&&typeof h.stack=="string")return[h.stack,f.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=i.DetermineComponentFrameRoot(),a=o[0],s=o[1];if(a&&s){var l=a.split(`
`),c=s.split(`
`);for(r=i=0;i<l.length&&!l[i].includes("DetermineComponentFrameRoot");)i++;for(;r<c.length&&!c[r].includes("DetermineComponentFrameRoot");)r++;if(i===l.length||r===c.length)for(i=l.length-1,r=c.length-1;1<=i&&0<=r&&l[i]!==c[r];)r--;for(;1<=i&&0<=r;i--,r--)if(l[i]!==c[r]){if(i!==1||r!==1)do if(i--,r--,0>r||l[i]!==c[r]){var u=`
`+l[i].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=i&&0<=r);break}}}finally{GM=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Nu(n):""}function ire(e,t){switch(e.tag){case 26:case 27:case 5:return Nu(e.type);case 16:return Nu("Lazy");case 13:return e.child!==t&&t!==null?Nu("Suspense Fallback"):Nu("Suspense");case 19:return Nu("SuspenseList");case 0:case 15:return WM(e.type,!1);case 11:return WM(e.type.render,!1);case 1:return WM(e.type,!0);case 31:return Nu("Activity");default:return""}}function r3(e){try{var t="",n=null;do t+=ire(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
Error generating stack: `+i.message+`
`+i.stack}}var RC=Object.prototype.hasOwnProperty,Sz=wi.unstable_scheduleCallback,YM=wi.unstable_cancelCallback,rre=wi.unstable_shouldYield,ore=wi.unstable_requestPaint,uo=wi.unstable_now,are=wi.unstable_getCurrentPriorityLevel,Lj=wi.unstable_ImmediatePriority,Ej=wi.unstable_UserBlockingPriority,I_=wi.unstable_NormalPriority,sre=wi.unstable_LowPriority,Dj=wi.unstable_IdlePriority,lre=wi.log,cre=wi.unstable_setDisableYieldValue,Xg=null,ho=null;function dc(e){if(typeof lre=="function"&&cre(e),ho&&typeof ho.setStrictMode=="function")try{ho.setStrictMode(Xg,e)}catch{}}var fo=Math.clz32?Math.clz32:hre,ure=Math.log,dre=Math.LN2;function hre(e){return e>>>=0,e===0?32:31-(ure(e)/dre|0)|0}var Xx=256,Kx=262144,Jx=4194304;function Pu(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function i1(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=i&134217727;return s!==0?(i=s&~o,i!==0?r=Pu(i):(a&=s,a!==0?r=Pu(a):n||(n=s&~e,n!==0&&(r=Pu(n))))):(s=i&~o,s!==0?r=Pu(s):a!==0?r=Pu(a):n||(n=i&~e,n!==0&&(r=Pu(n)))),r===0?0:t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:r}function Kg(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function fre(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Oj(){var e=Jx;return Jx<<=1,(Jx&62914560)===0&&(Jx=4194304),e}function XM(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Jg(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function pre(e,t,n,i,r,o){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=a&~n;0<n;){var u=31-fo(n),d=1<<u;s[u]=0,l[u]=-1;var f=c[u];if(f!==null)for(c[u]=null,u=0;u<f.length;u++){var h=f[u];h!==null&&(h.lane&=-536870913)}n&=~d}i!==0&&Nj(e,i,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(a&~t))}function Nj(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-fo(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function Pj(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-fo(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}function jj(e,t){var n=t&-t;return n=(n&42)!==0?1:$z(n),(n&(e.suspendedLanes|t))!==0?0:n}function $z(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function wz(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Uj(){var e=un.p;return e!==0?e:(e=window.event,e===void 0?32:cF(e.type))}function o3(e,t){var n=un.p;try{return un.p=e,t()}finally{un.p=n}}var Tc=Math.random().toString(36).slice(2),Zi="__reactFiber$"+Tc,Fr="__reactProps$"+Tc,If="__reactContainer$"+Tc,LC="__reactEvents$"+Tc,mre="__reactListeners$"+Tc,gre="__reactHandles$"+Tc,a3="__reactResources$"+Tc,Qg="__reactMarker$"+Tc;function kz(e){delete e[Zi],delete e[Fr],delete e[LC],delete e[mre],delete e[gre]}function nf(e){var t=e[Zi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[If]||n[Zi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pj(e);e!==null;){if(n=e[Zi])return n;e=pj(e)}return t}e=n,n=e.parentNode}return null}function Rf(e){if(e=e[Zi]||e[If]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function bg(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(be(33))}function ff(e){var t=e[a3];return t||(t=e[a3]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ai(e){e[Qg]=!0}var Bj=new Set,Fj={};function Ku(e,t){_f(e,t),_f(e+"Capture",t)}function _f(e,t){for(Fj[e]=t,e=0;e<t.length;e++)Bj.add(t[e])}var vre=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),s3={},l3={};function yre(e){return RC.call(l3,e)?!0:RC.call(s3,e)?!1:vre.test(e)?l3[e]=!0:(s3[e]=!0,!1)}function f_(e,t,n){if(yre(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Qx(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Vs(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function Io(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qj(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bre(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var r=i.get,o=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function EC(e){if(!e._valueTracker){var t=qj(e)?"checked":"value";e._valueTracker=bre(e,t,""+e[t])}}function Vj(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=qj(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function R_(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var xre=/[\n"\\]/g;function Eo(e){return e.replace(xre,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function DC(e,t,n,i,r,o,a,s){e.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?e.type=a:e.removeAttribute("type"),t!=null?a==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Io(t)):e.value!==""+Io(t)&&(e.value=""+Io(t)):a!=="submit"&&a!=="reset"||e.removeAttribute("value"),t!=null?OC(e,a,Io(t)):n!=null?OC(e,a,Io(n)):i!=null&&e.removeAttribute("value"),r==null&&o!=null&&(e.defaultChecked=!!o),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+Io(s):e.removeAttribute("name")}function Hj(e,t,n,i,r,o,a,s){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){EC(e);return}n=n!=null?""+Io(n):"",t=t!=null?""+Io(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}i=i??r,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=s?e.checked:!!i,e.defaultChecked=!!i,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.name=a),EC(e)}function OC(e,t,n){t==="number"&&R_(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function pf(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Io(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,i&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Zj(e,t,n){if(t!=null&&(t=""+Io(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Io(n):""}function Gj(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(be(92));if(yg(i)){if(1<i.length)throw Error(be(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Io(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),EC(e)}function Sf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var _re=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function c3(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||_re.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Wj(e,t,n){if(t!=null&&typeof t!="object")throw Error(be(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var r in t)i=t[r],t.hasOwnProperty(r)&&n[r]!==i&&c3(e,r,i)}else for(var o in t)t.hasOwnProperty(o)&&c3(e,o,t[o])}function Mz(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Sre=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$re=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function p_(e){return $re.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Js(){}var NC=null;function Cz(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rf=null,mf=null;function u3(e){var t=Rf(e);if(t&&(e=t.stateNode)){var n=e[Fr]||null;e:switch(e=t.stateNode,t.type){case"input":if(DC(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Eo(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=i[Fr]||null;if(!r)throw Error(be(90));DC(i,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&Vj(i)}break e;case"textarea":Zj(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&pf(e,!!n.multiple,t,!1)}}}var KM=!1;function Yj(e,t,n){if(KM)return e(t,n);KM=!0;try{var i=e(t);return i}finally{if(KM=!1,(rf!==null||mf!==null)&&(m1(),rf&&(t=rf,e=mf,mf=rf=null,u3(t),e)))for(t=0;t<e.length;t++)u3(e[t])}}function Og(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Fr]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(be(231,t,typeof n));return n}var il=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),PC=!1;if(il)try{Yh={},Object.defineProperty(Yh,"passive",{get:function(){PC=!0}}),window.addEventListener("test",Yh,Yh),window.removeEventListener("test",Yh,Yh)}catch{PC=!1}var Yh,hc=null,zz=null,m_=null;function Xj(){if(m_)return m_;var e,t=zz,n=t.length,i,r="value"in hc?hc.value:hc.textContent,o=r.length;for(e=0;e<n&&t[e]===r[e];e++);var a=n-e;for(i=1;i<=a&&t[n-i]===r[o-i];i++);return m_=r.slice(e,1<i?1-i:void 0)}function g_(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function e_(){return!0}function d3(){return!1}function qr(e){function t(n,i,r,o,a){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?e_:d3,this.isPropagationStopped=d3,this}return Nn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=e_)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=e_)},persist:function(){},isPersistent:e_}),t}var Ju={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},r1=qr(Ju),ev=Nn({},Ju,{view:0,detail:0}),wre=qr(ev),JM,QM,dg,o1=Nn({},ev,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tz,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==dg&&(dg&&e.type==="mousemove"?(JM=e.screenX-dg.screenX,QM=e.screenY-dg.screenY):QM=JM=0,dg=e),JM)},movementY:function(e){return"movementY"in e?e.movementY:QM}}),h3=qr(o1),kre=Nn({},o1,{dataTransfer:0}),Mre=qr(kre),Cre=Nn({},ev,{relatedTarget:0}),eC=qr(Cre),zre=Nn({},Ju,{animationName:0,elapsedTime:0,pseudoElement:0}),Tre=qr(zre),Are=Nn({},Ju,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ire=qr(Are),Rre=Nn({},Ju,{data:0}),f3=qr(Rre),Lre={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ere={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Dre={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ore(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Dre[e])?!!t[e]:!1}function Tz(){return Ore}var Nre=Nn({},ev,{key:function(e){if(e.key){var t=Lre[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=g_(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ere[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tz,charCode:function(e){return e.type==="keypress"?g_(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?g_(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Pre=qr(Nre),jre=Nn({},o1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),p3=qr(jre),Ure=Nn({},ev,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tz}),Bre=qr(Ure),Fre=Nn({},Ju,{propertyName:0,elapsedTime:0,pseudoElement:0}),qre=qr(Fre),Vre=Nn({},o1,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Hre=qr(Vre),Zre=Nn({},Ju,{newState:0,oldState:0}),Gre=qr(Zre),Wre=[9,13,27,32],Az=il&&"CompositionEvent"in window,Sg=null;il&&"documentMode"in document&&(Sg=document.documentMode);var Yre=il&&"TextEvent"in window&&!Sg,Kj=il&&(!Az||Sg&&8<Sg&&11>=Sg),m3=" ",g3=!1;function Jj(e,t){switch(e){case"keyup":return Wre.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qj(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var of=!1;function Xre(e,t){switch(e){case"compositionend":return Qj(t);case"keypress":return t.which!==32?null:(g3=!0,m3);case"textInput":return e=t.data,e===m3&&g3?null:e;default:return null}}function Kre(e,t){if(of)return e==="compositionend"||!Az&&Jj(e,t)?(e=Xj(),m_=zz=hc=null,of=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Kj&&t.locale!=="ko"?null:t.data;default:return null}}var Jre={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function v3(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Jre[e.type]:t==="textarea"}function eU(e,t,n,i){rf?mf?mf.push(i):mf=[i]:rf=i,t=X_(t,"onChange"),0<t.length&&(n=new r1("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var $g=null,Ng=null;function Qre(e){YB(e,0)}function a1(e){var t=bg(e);if(Vj(t))return e}function y3(e,t){if(e==="change")return t}var tU=!1;il&&(il?(n_="oninput"in document,n_||(tC=document.createElement("div"),tC.setAttribute("oninput","return;"),n_=typeof tC.oninput=="function"),t_=n_):t_=!1,tU=t_&&(!document.documentMode||9<document.documentMode));var t_,n_,tC;function b3(){$g&&($g.detachEvent("onpropertychange",nU),Ng=$g=null)}function nU(e){if(e.propertyName==="value"&&a1(Ng)){var t=[];eU(t,Ng,e,Cz(e)),Yj(Qre,t)}}function eoe(e,t,n){e==="focusin"?(b3(),$g=t,Ng=n,$g.attachEvent("onpropertychange",nU)):e==="focusout"&&b3()}function toe(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return a1(Ng)}function noe(e,t){if(e==="click")return a1(t)}function ioe(e,t){if(e==="input"||e==="change")return a1(t)}function roe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mo=typeof Object.is=="function"?Object.is:roe;function Pg(e,t){if(mo(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!RC.call(t,r)||!mo(e[r],t[r]))return!1}return!0}function x3(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _3(e,t){var n=x3(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=x3(n)}}function iU(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?iU(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rU(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=R_(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=R_(e.document)}return t}function Iz(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ooe=il&&"documentMode"in document&&11>=document.documentMode,af=null,jC=null,wg=null,UC=!1;function S3(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;UC||af==null||af!==R_(i)||(i=af,"selectionStart"in i&&Iz(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),wg&&Pg(wg,i)||(wg=i,i=X_(jC,"onSelect"),0<i.length&&(t=new r1("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=af)))}function Ou(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sf={animationend:Ou("Animation","AnimationEnd"),animationiteration:Ou("Animation","AnimationIteration"),animationstart:Ou("Animation","AnimationStart"),transitionrun:Ou("Transition","TransitionRun"),transitionstart:Ou("Transition","TransitionStart"),transitioncancel:Ou("Transition","TransitionCancel"),transitionend:Ou("Transition","TransitionEnd")},nC={},oU={};il&&(oU=document.createElement("div").style,"AnimationEvent"in window||(delete sf.animationend.animation,delete sf.animationiteration.animation,delete sf.animationstart.animation),"TransitionEvent"in window||delete sf.transitionend.transition);function Qu(e){if(nC[e])return nC[e];if(!sf[e])return e;var t=sf[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in oU)return nC[e]=t[n];return e}var aU=Qu("animationend"),sU=Qu("animationiteration"),lU=Qu("animationstart"),aoe=Qu("transitionrun"),soe=Qu("transitionstart"),loe=Qu("transitioncancel"),cU=Qu("transitionend"),uU=new Map,BC="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");BC.push("scrollEnd");function ba(e,t){uU.set(e,t),Ku(t,[e])}var L_=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ao=[],lf=0,Rz=0;function s1(){for(var e=lf,t=Rz=lf=0;t<e;){var n=Ao[t];Ao[t++]=null;var i=Ao[t];Ao[t++]=null;var r=Ao[t];Ao[t++]=null;var o=Ao[t];if(Ao[t++]=null,i!==null&&r!==null){var a=i.pending;a===null?r.next=r:(r.next=a.next,a.next=r),i.pending=r}o!==0&&dU(n,r,o)}}function l1(e,t,n,i){Ao[lf++]=e,Ao[lf++]=t,Ao[lf++]=n,Ao[lf++]=i,Rz|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Lz(e,t,n,i){return l1(e,t,n,i),E_(e)}function ed(e,t){return l1(e,null,null,t),E_(e)}function dU(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var r=!1,o=e.return;o!==null;)o.childLanes|=n,i=o.alternate,i!==null&&(i.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(r=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,r&&t!==null&&(r=31-fo(n),e=o.hiddenUpdates,i=e[r],i===null?e[r]=[t]:i.push(t),t.lane=n|536870912),o):null}function E_(e){if(50<Lg)throw Lg=0,lz=null,Error(be(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var cf={};function coe(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lo(e,t,n,i){return new coe(e,t,n,i)}function Ez(e){return e=e.prototype,!(!e||!e.isReactComponent)}function el(e,t){var n=e.alternate;return n===null?(n=lo(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function hU(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function v_(e,t,n,i,r,o){var a=0;if(i=e,typeof e=="function")Ez(e)&&(a=1);else if(typeof e=="string")a=hae(e,n,Wa.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case zC:return e=lo(31,n,t,r),e.elementType=zC,e.lanes=o,e;case ef:return Fu(n.children,r,o,t);case Ij:a=8,r|=24;break;case kC:return e=lo(12,n,t,r|2),e.elementType=kC,e.lanes=o,e;case MC:return e=lo(13,n,t,r),e.elementType=MC,e.lanes=o,e;case CC:return e=lo(19,n,t,r),e.elementType=CC,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ks:a=10;break e;case Rj:a=9;break e;case xz:a=11;break e;case _z:a=14;break e;case oc:a=16,i=null;break e}a=29,n=Error(be(130,e===null?"null":typeof e,"")),i=null}return t=lo(a,n,t,r),t.elementType=e,t.type=i,t.lanes=o,t}function Fu(e,t,n,i){return e=lo(7,e,i,t),e.lanes=n,e}function iC(e,t,n){return e=lo(6,e,null,t),e.lanes=n,e}function fU(e){var t=lo(18,null,null,0);return t.stateNode=e,t}function rC(e,t,n){return t=lo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var $3=new WeakMap;function Do(e,t){if(typeof e=="object"&&e!==null){var n=$3.get(e);return n!==void 0?n:(t={value:e,source:t,stack:r3(t)},$3.set(e,t),t)}return{value:e,source:t,stack:r3(t)}}var uf=[],df=0,D_=null,jg=0,Ro=[],Lo=0,kc=null,Ha=1,Za="";function Ys(e,t){uf[df++]=jg,uf[df++]=D_,D_=e,jg=t}function pU(e,t,n){Ro[Lo++]=Ha,Ro[Lo++]=Za,Ro[Lo++]=kc,kc=e;var i=Ha;e=Za;var r=32-fo(i)-1;i&=~(1<<r),n+=1;var o=32-fo(t)+r;if(30<o){var a=r-r%5;o=(i&(1<<a)-1).toString(32),i>>=a,r-=a,Ha=1<<32-fo(t)+r|n<<r|i,Za=o+e}else Ha=1<<o|n<<r|i,Za=e}function Dz(e){e.return!==null&&(Ys(e,1),pU(e,1,0))}function Oz(e){for(;e===D_;)D_=uf[--df],uf[df]=null,jg=uf[--df],uf[df]=null;for(;e===kc;)kc=Ro[--Lo],Ro[Lo]=null,Za=Ro[--Lo],Ro[Lo]=null,Ha=Ro[--Lo],Ro[Lo]=null}function mU(e,t){Ro[Lo++]=Ha,Ro[Lo++]=Za,Ro[Lo++]=kc,Ha=t.id,Za=t.overflow,kc=e}var Gi=null,On=null,en=!1,vc=null,Oo=!1,FC=Error(be(519));function Mc(e){var t=Error(be(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ug(Do(t,e)),FC}function w3(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[Zi]=e,t[Fr]=i,n){case"dialog":Yt("cancel",t),Yt("close",t);break;case"iframe":case"object":case"embed":Yt("load",t);break;case"video":case"audio":for(n=0;n<Vg.length;n++)Yt(Vg[n],t);break;case"source":Yt("error",t);break;case"img":case"image":case"link":Yt("error",t),Yt("load",t);break;case"details":Yt("toggle",t);break;case"input":Yt("invalid",t),Hj(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Yt("invalid",t);break;case"textarea":Yt("invalid",t),Gj(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||KB(t.textContent,n)?(i.popover!=null&&(Yt("beforetoggle",t),Yt("toggle",t)),i.onScroll!=null&&Yt("scroll",t),i.onScrollEnd!=null&&Yt("scrollend",t),i.onClick!=null&&(t.onclick=Js),t=!0):t=!1,t||Mc(e,!0)}function k3(e){for(Gi=e.return;Gi;)switch(Gi.tag){case 5:case 31:case 13:Oo=!1;return;case 27:case 3:Oo=!0;return;default:Gi=Gi.return}}function Xh(e){if(e!==Gi)return!1;if(!en)return k3(e),en=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||fz(e.type,e.memoizedProps)),n=!n),n&&On&&Mc(e),k3(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(be(317));On=fj(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(be(317));On=fj(e)}else t===27?(t=On,Ac(e.type)?(e=vz,vz=null,On=e):On=t):On=Gi?Po(e.stateNode.nextSibling):null;return!0}function Zu(){On=Gi=null,en=!1}function oC(){var e=vc;return e!==null&&(Ur===null?Ur=e:Ur.push.apply(Ur,e),vc=null),e}function Ug(e){vc===null?vc=[e]:vc.push(e)}var qC=Ya(null),td=null,Qs=null;function sc(e,t,n){In(qC,t._currentValue),t._currentValue=n}function tl(e){e._currentValue=qC.current,Ii(qC)}function VC(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function HC(e,t,n,i){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var a=r.child;o=o.firstContext;e:for(;o!==null;){var s=o;o=r;for(var l=0;l<t.length;l++)if(s.context===t[l]){o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),VC(o.return,n,e),i||(a=null);break e}o=s.next}}else if(r.tag===18){if(a=r.return,a===null)throw Error(be(341));a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),VC(a,n,e),a=null}else a=r.child;if(a!==null)a.return=r;else for(a=r;a!==null;){if(a===e){a=null;break}if(r=a.sibling,r!==null){r.return=a.return,a=r;break}a=a.return}r=a}}function Lf(e,t,n,i){e=null;for(var r=t,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var a=r.alternate;if(a===null)throw Error(be(387));if(a=a.memoizedProps,a!==null){var s=r.type;mo(r.pendingProps.value,a.value)||(e!==null?e.push(s):e=[s])}}else if(r===z_.current){if(a=r.alternate,a===null)throw Error(be(387));a.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Zg):e=[Zg])}r=r.return}e!==null&&HC(t,e,n,i),t.flags|=262144}function O_(e){for(e=e.firstContext;e!==null;){if(!mo(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Gu(e){td=e,Qs=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Wi(e){return gU(td,e)}function i_(e,t){return td===null&&Gu(e),gU(e,t)}function gU(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Qs===null){if(e===null)throw Error(be(308));Qs=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Qs=Qs.next=t;return n}var uoe=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},doe=wi.unstable_scheduleCallback,hoe=wi.unstable_NormalPriority,vi={$$typeof:Ks,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Nz(){return{controller:new uoe,data:new Map,refCount:0}}function tv(e){e.refCount--,e.refCount===0&&doe(hoe,function(){e.controller.abort()})}var kg=null,ZC=0,$f=0,gf=null;function foe(e,t){if(kg===null){var n=kg=[];ZC=0,$f=lT(),gf={status:"pending",value:void 0,then:function(i){n.push(i)}}}return ZC++,t.then(M3,M3),t}function M3(){if(--ZC===0&&kg!==null){gf!==null&&(gf.status="fulfilled");var e=kg;kg=null,$f=0,gf=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function poe(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(i.status="rejected",i.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),i}var C3=St.S;St.S=function(e,t){AB=uo(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&foe(e,t),C3!==null&&C3(e,t)};var qu=Ya(null);function Pz(){var e=qu.current;return e!==null?e:An.pooledCache}function y_(e,t){t===null?In(qu,qu.current):In(qu,t.pool)}function vU(){var e=Pz();return e===null?null:{parent:vi._currentValue,pool:e}}var Ef=Error(be(460)),jz=Error(be(474)),c1=Error(be(542)),N_={then:function(){}};function z3(e){return e=e.status,e==="fulfilled"||e==="rejected"}function yU(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Js,Js),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,A3(e),e;default:if(typeof t.status=="string")t.then(Js,Js);else{if(e=An,e!==null&&100<e.shellSuspendCounter)throw Error(be(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=i}},function(i){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,A3(e),e}throw Vu=t,Ef}}function ju(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Vu=n,Ef):n}}var Vu=null;function T3(){if(Vu===null)throw Error(be(459));var e=Vu;return Vu=null,e}function A3(e){if(e===Ef||e===c1)throw Error(be(483))}var vf=null,Bg=0;function r_(e){var t=Bg;return Bg+=1,vf===null&&(vf=[]),yU(vf,e,t)}function hg(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function o_(e,t){throw t.$$typeof===ere?Error(be(525)):(e=Object.prototype.toString.call(t),Error(be(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function bU(e){function t(m,y){if(e){var b=m.deletions;b===null?(m.deletions=[y],m.flags|=16):b.push(y)}}function n(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function i(m){for(var y=new Map;m!==null;)m.key!==null?y.set(m.key,m):y.set(m.index,m),m=m.sibling;return y}function r(m,y){return m=el(m,y),m.index=0,m.sibling=null,m}function o(m,y,b){return m.index=b,e?(b=m.alternate,b!==null?(b=b.index,b<y?(m.flags|=67108866,y):b):(m.flags|=67108866,y)):(m.flags|=1048576,y)}function a(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function s(m,y,b,x){return y===null||y.tag!==6?(y=iC(b,m.mode,x),y.return=m,y):(y=r(y,b),y.return=m,y)}function l(m,y,b,x){var _=b.type;return _===ef?u(m,y,b.props.children,x,b.key):y!==null&&(y.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===oc&&ju(_)===y.type)?(y=r(y,b.props),hg(y,b),y.return=m,y):(y=v_(b.type,b.key,b.props,null,m.mode,x),hg(y,b),y.return=m,y)}function c(m,y,b,x){return y===null||y.tag!==4||y.stateNode.containerInfo!==b.containerInfo||y.stateNode.implementation!==b.implementation?(y=rC(b,m.mode,x),y.return=m,y):(y=r(y,b.children||[]),y.return=m,y)}function u(m,y,b,x,_){return y===null||y.tag!==7?(y=Fu(b,m.mode,x,_),y.return=m,y):(y=r(y,b),y.return=m,y)}function d(m,y,b){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=iC(""+y,m.mode,b),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Yx:return b=v_(y.type,y.key,y.props,null,m.mode,b),hg(b,y),b.return=m,b;case vg:return y=rC(y,m.mode,b),y.return=m,y;case oc:return y=ju(y),d(m,y,b)}if(yg(y)||ug(y))return y=Fu(y,m.mode,b,null),y.return=m,y;if(typeof y.then=="function")return d(m,r_(y),b);if(y.$$typeof===Ks)return d(m,i_(m,y),b);o_(m,y)}return null}function f(m,y,b,x){var _=y!==null?y.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return _!==null?null:s(m,y,""+b,x);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Yx:return b.key===_?l(m,y,b,x):null;case vg:return b.key===_?c(m,y,b,x):null;case oc:return b=ju(b),f(m,y,b,x)}if(yg(b)||ug(b))return _!==null?null:u(m,y,b,x,null);if(typeof b.then=="function")return f(m,y,r_(b),x);if(b.$$typeof===Ks)return f(m,y,i_(m,b),x);o_(m,b)}return null}function h(m,y,b,x,_){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return m=m.get(b)||null,s(y,m,""+x,_);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Yx:return m=m.get(x.key===null?b:x.key)||null,l(y,m,x,_);case vg:return m=m.get(x.key===null?b:x.key)||null,c(y,m,x,_);case oc:return x=ju(x),h(m,y,b,x,_)}if(yg(x)||ug(x))return m=m.get(b)||null,u(y,m,x,_,null);if(typeof x.then=="function")return h(m,y,b,r_(x),_);if(x.$$typeof===Ks)return h(m,y,b,i_(y,x),_);o_(y,x)}return null}function p(m,y,b,x){for(var _=null,S=null,$=y,C=y=0,w=null;$!==null&&C<b.length;C++){$.index>C?(w=$,$=null):w=$.sibling;var z=f(m,$,b[C],x);if(z===null){$===null&&($=w);break}e&&$&&z.alternate===null&&t(m,$),y=o(z,y,C),S===null?_=z:S.sibling=z,S=z,$=w}if(C===b.length)return n(m,$),en&&Ys(m,C),_;if($===null){for(;C<b.length;C++)$=d(m,b[C],x),$!==null&&(y=o($,y,C),S===null?_=$:S.sibling=$,S=$);return en&&Ys(m,C),_}for($=i($);C<b.length;C++)w=h($,m,C,b[C],x),w!==null&&(e&&w.alternate!==null&&$.delete(w.key===null?C:w.key),y=o(w,y,C),S===null?_=w:S.sibling=w,S=w);return e&&$.forEach(function(A){return t(m,A)}),en&&Ys(m,C),_}function g(m,y,b,x){if(b==null)throw Error(be(151));for(var _=null,S=null,$=y,C=y=0,w=null,z=b.next();$!==null&&!z.done;C++,z=b.next()){$.index>C?(w=$,$=null):w=$.sibling;var A=f(m,$,z.value,x);if(A===null){$===null&&($=w);break}e&&$&&A.alternate===null&&t(m,$),y=o(A,y,C),S===null?_=A:S.sibling=A,S=A,$=w}if(z.done)return n(m,$),en&&Ys(m,C),_;if($===null){for(;!z.done;C++,z=b.next())z=d(m,z.value,x),z!==null&&(y=o(z,y,C),S===null?_=z:S.sibling=z,S=z);return en&&Ys(m,C),_}for($=i($);!z.done;C++,z=b.next())z=h($,m,C,z.value,x),z!==null&&(e&&z.alternate!==null&&$.delete(z.key===null?C:z.key),y=o(z,y,C),S===null?_=z:S.sibling=z,S=z);return e&&$.forEach(function(M){return t(m,M)}),en&&Ys(m,C),_}function v(m,y,b,x){if(typeof b=="object"&&b!==null&&b.type===ef&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Yx:e:{for(var _=b.key;y!==null;){if(y.key===_){if(_=b.type,_===ef){if(y.tag===7){n(m,y.sibling),x=r(y,b.props.children),x.return=m,m=x;break e}}else if(y.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===oc&&ju(_)===y.type){n(m,y.sibling),x=r(y,b.props),hg(x,b),x.return=m,m=x;break e}n(m,y);break}else t(m,y);y=y.sibling}b.type===ef?(x=Fu(b.props.children,m.mode,x,b.key),x.return=m,m=x):(x=v_(b.type,b.key,b.props,null,m.mode,x),hg(x,b),x.return=m,m=x)}return a(m);case vg:e:{for(_=b.key;y!==null;){if(y.key===_)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(m,y.sibling),x=r(y,b.children||[]),x.return=m,m=x;break e}else{n(m,y);break}else t(m,y);y=y.sibling}x=rC(b,m.mode,x),x.return=m,m=x}return a(m);case oc:return b=ju(b),v(m,y,b,x)}if(yg(b))return p(m,y,b,x);if(ug(b)){if(_=ug(b),typeof _!="function")throw Error(be(150));return b=_.call(b),g(m,y,b,x)}if(typeof b.then=="function")return v(m,y,r_(b),x);if(b.$$typeof===Ks)return v(m,y,i_(m,b),x);o_(m,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,y!==null&&y.tag===6?(n(m,y.sibling),x=r(y,b),x.return=m,m=x):(n(m,y),x=iC(b,m.mode,x),x.return=m,m=x),a(m)):n(m,y)}return function(m,y,b,x){try{Bg=0;var _=v(m,y,b,x);return vf=null,_}catch($){if($===Ef||$===c1)throw $;var S=lo(29,$,null,m.mode);return S.lanes=x,S.return=m,S}finally{}}}var Wu=bU(!0),xU=bU(!1),ac=!1;function Uz(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function GC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function yc(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function bc(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(cn&2)!==0){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,t=E_(e),dU(e,null,n),t}return l1(e,i,t,n),E_(e)}function Mg(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Pj(e,n)}}function aC(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?r=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var WC=!1;function Cg(){if(WC){var e=gf;if(e!==null)throw e}}function zg(e,t,n,i){WC=!1;var r=e.updateQueue;ac=!1;var o=r.firstBaseUpdate,a=r.lastBaseUpdate,s=r.shared.pending;if(s!==null){r.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(o!==null){var d=r.baseState;a=0,u=c=l=null,s=o;do{var f=s.lane&-536870913,h=f!==s.lane;if(h?(Jt&f)===f:(i&f)===f){f!==0&&f===$f&&(WC=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var p=e,g=s;f=t;var v=n;switch(g.tag){case 1:if(p=g.payload,typeof p=="function"){d=p.call(v,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=g.payload,f=typeof p=="function"?p.call(v,d,f):p,f==null)break e;d=Nn({},d,f);break e;case 2:ac=!0}}f=s.callback,f!==null&&(e.flags|=64,h&&(e.flags|=8192),h=r.callbacks,h===null?r.callbacks=[f]:h.push(f))}else h={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=h,l=d):u=u.next=h,a|=f;if(s=s.next,s===null){if(s=r.shared.pending,s===null)break;h=s,s=h.next,h.next=null,r.lastBaseUpdate=h,r.shared.pending=null}}while(!0);u===null&&(l=d),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=u,o===null&&(r.shared.lanes=0),zc|=a,e.lanes=a,e.memoizedState=d}}function _U(e,t){if(typeof e!="function")throw Error(be(191,e));e.call(t)}function SU(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)_U(n[e],t)}var wf=Ya(null),P_=Ya(0);function I3(e,t){e=sl,In(P_,e),In(wf,t),sl=e|t.baseLanes}function YC(){In(P_,sl),In(wf,wf.current)}function Bz(){sl=P_.current,Ii(wf),Ii(P_)}var go=Ya(null),No=null;function lc(e){var t=e.alternate;In(di,di.current&1),In(go,e),No===null&&(t===null||wf.current!==null||t.memoizedState!==null)&&(No=e)}function XC(e){In(di,di.current),In(go,e),No===null&&(No=e)}function $U(e){e.tag===22?(In(di,di.current),In(go,e),No===null&&(No=e)):cc(e)}function cc(){In(di,di.current),In(go,go.current)}function so(e){Ii(go),No===e&&(No=null),Ii(di)}var di=Ya(0);function j_(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||mz(n)||gz(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rl=0,Et=null,Mn=null,mi=null,U_=!1,yf=!1,Yu=!1,B_=0,Fg=0,bf=null,moe=0;function ei(){throw Error(be(321))}function Fz(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!mo(e[n],t[n]))return!1;return!0}function qz(e,t,n,i,r,o){return rl=o,Et=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,St.H=e===null||e.memoizedState===null?eB:eT,Yu=!1,o=n(i,r),Yu=!1,yf&&(o=kU(t,n,i,r)),wU(e),o}function wU(e){St.H=qg;var t=Mn!==null&&Mn.next!==null;if(rl=0,mi=Mn=Et=null,U_=!1,Fg=0,bf=null,t)throw Error(be(300));e===null||yi||(e=e.dependencies,e!==null&&O_(e)&&(yi=!0))}function kU(e,t,n,i){Et=e;var r=0;do{if(yf&&(bf=null),Fg=0,yf=!1,25<=r)throw Error(be(301));if(r+=1,mi=Mn=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}St.H=tB,o=t(n,i)}while(yf);return o}function goe(){var e=St.H,t=e.useState()[0];return t=typeof t.then=="function"?nv(t):t,e=e.useState()[0],(Mn!==null?Mn.memoizedState:null)!==e&&(Et.flags|=1024),t}function Vz(){var e=B_!==0;return B_=0,e}function Hz(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Zz(e){if(U_){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}U_=!1}rl=0,mi=Mn=Et=null,yf=!1,Fg=B_=0,bf=null}function Sr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mi===null?Et.memoizedState=mi=e:mi=mi.next=e,mi}function hi(){if(Mn===null){var e=Et.alternate;e=e!==null?e.memoizedState:null}else e=Mn.next;var t=mi===null?Et.memoizedState:mi.next;if(t!==null)mi=t,Mn=e;else{if(e===null)throw Et.alternate===null?Error(be(467)):Error(be(310));Mn=e,e={memoizedState:Mn.memoizedState,baseState:Mn.baseState,baseQueue:Mn.baseQueue,queue:Mn.queue,next:null},mi===null?Et.memoizedState=mi=e:mi=mi.next=e}return mi}function u1(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nv(e){var t=Fg;return Fg+=1,bf===null&&(bf=[]),e=yU(bf,e,t),t=Et,(mi===null?t.memoizedState:mi.next)===null&&(t=t.alternate,St.H=t===null||t.memoizedState===null?eB:eT),e}function d1(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return nv(e);if(e.$$typeof===Ks)return Wi(e)}throw Error(be(438,String(e)))}function Gz(e){var t=null,n=Et.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Et.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=u1(),Et.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=tre;return t.index++,n}function ol(e,t){return typeof t=="function"?t(e):t}function b_(e){var t=hi();return Wz(t,Mn,e)}function Wz(e,t,n){var i=e.queue;if(i===null)throw Error(be(311));i.lastRenderedReducer=n;var r=e.baseQueue,o=i.pending;if(o!==null){if(r!==null){var a=r.next;r.next=o.next,o.next=a}t.baseQueue=r=o,i.pending=null}if(o=e.baseState,r===null)e.memoizedState=o;else{t=r.next;var s=a=null,l=null,c=t,u=!1;do{var d=c.lane&-536870913;if(d!==c.lane?(Jt&d)===d:(rl&d)===d){var f=c.revertLane;if(f===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===$f&&(u=!0);else if((rl&f)===f){c=c.next,f===$f&&(u=!0);continue}else d={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(s=l=d,a=o):l=l.next=d,Et.lanes|=f,zc|=f;d=c.action,Yu&&n(o,d),o=c.hasEagerState?c.eagerState:n(o,d)}else f={lane:d,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(s=l=f,a=o):l=l.next=f,Et.lanes|=d,zc|=d;c=c.next}while(c!==null&&c!==t);if(l===null?a=o:l.next=s,!mo(o,e.memoizedState)&&(yi=!0,u&&(n=gf,n!==null)))throw n;e.memoizedState=o,e.baseState=a,e.baseQueue=l,i.lastRenderedState=o}return r===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function sC(e){var t=hi(),n=t.queue;if(n===null)throw Error(be(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,o=t.memoizedState;if(r!==null){n.pending=null;var a=r=r.next;do o=e(o,a.action),a=a.next;while(a!==r);mo(o,t.memoizedState)||(yi=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function MU(e,t,n){var i=Et,r=hi(),o=en;if(o){if(n===void 0)throw Error(be(407));n=n()}else n=t();var a=!mo((Mn||r).memoizedState,n);if(a&&(r.memoizedState=n,yi=!0),r=r.queue,Yz(TU.bind(null,i,r,e),[e]),r.getSnapshot!==t||a||mi!==null&&mi.memoizedState.tag&1){if(i.flags|=2048,kf(9,{destroy:void 0},zU.bind(null,i,r,n,t),null),An===null)throw Error(be(349));o||(rl&127)!==0||CU(i,t,n)}return n}function CU(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Et.updateQueue,t===null?(t=u1(),Et.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function zU(e,t,n,i){t.value=n,t.getSnapshot=i,AU(t)&&IU(e)}function TU(e,t,n){return n(function(){AU(t)&&IU(e)})}function AU(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mo(e,n)}catch{return!0}}function IU(e){var t=ed(e,2);t!==null&&Br(t,e,2)}function KC(e){var t=Sr();if(typeof e=="function"){var n=e;if(e=n(),Yu){dc(!0);try{n()}finally{dc(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ol,lastRenderedState:e},t}function RU(e,t,n,i){return e.baseState=n,Wz(e,Mn,typeof i=="function"?i:ol)}function voe(e,t,n,i,r){if(f1(e))throw Error(be(485));if(e=t.action,e!==null){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(a){o.listeners.push(a)}};St.T!==null?n(!0):o.isTransition=!1,i(o),n=t.pending,n===null?(o.next=t.pending=o,LU(t,o)):(o.next=n.next,t.pending=n.next=o)}}function LU(e,t){var n=t.action,i=t.payload,r=e.state;if(t.isTransition){var o=St.T,a={};St.T=a;try{var s=n(r,i),l=St.S;l!==null&&l(a,s),R3(e,t,s)}catch(c){JC(e,t,c)}finally{o!==null&&a.types!==null&&(o.types=a.types),St.T=o}}else try{o=n(r,i),R3(e,t,o)}catch(c){JC(e,t,c)}}function R3(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){L3(e,t,i)},function(i){return JC(e,t,i)}):L3(e,t,n)}function L3(e,t,n){t.status="fulfilled",t.value=n,EU(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,LU(e,n)))}function JC(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,EU(t),t=t.next;while(t!==i)}e.action=null}function EU(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function DU(e,t){return t}function E3(e,t){if(en){var n=An.formState;if(n!==null){e:{var i=Et;if(en){if(On){t:{for(var r=On,o=Oo;r.nodeType!==8;){if(!o){r=null;break t}if(r=Po(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){On=Po(r.nextSibling),i=r.data==="F!";break e}}Mc(i)}i=!1}i&&(t=n[0])}}return n=Sr(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:DU,lastRenderedState:t},n.queue=i,n=KU.bind(null,Et,i),i.dispatch=n,i=KC(!1),o=Qz.bind(null,Et,!1,i.queue),i=Sr(),r={state:t,dispatch:null,action:e,pending:null},i.queue=r,n=voe.bind(null,Et,r,o,n),r.dispatch=n,i.memoizedState=e,[t,n,!1]}function D3(e){var t=hi();return OU(t,Mn,e)}function OU(e,t,n){if(t=Wz(e,t,DU)[0],e=b_(ol)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=nv(t)}catch(a){throw a===Ef?c1:a}else i=t;t=hi();var r=t.queue,o=r.dispatch;return n!==t.memoizedState&&(Et.flags|=2048,kf(9,{destroy:void 0},yoe.bind(null,r,n),null)),[i,o,e]}function yoe(e,t){e.action=t}function O3(e){var t=hi(),n=Mn;if(n!==null)return OU(t,n,e);hi(),t=t.memoizedState,n=hi();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function kf(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Et.updateQueue,t===null&&(t=u1(),Et.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function NU(){return hi().memoizedState}function x_(e,t,n,i){var r=Sr();Et.flags|=e,r.memoizedState=kf(1|t,{destroy:void 0},n,i===void 0?null:i)}function h1(e,t,n,i){var r=hi();i=i===void 0?null:i;var o=r.memoizedState.inst;Mn!==null&&i!==null&&Fz(i,Mn.memoizedState.deps)?r.memoizedState=kf(t,o,n,i):(Et.flags|=e,r.memoizedState=kf(1|t,o,n,i))}function N3(e,t){x_(8390656,8,e,t)}function Yz(e,t){h1(2048,8,e,t)}function boe(e){Et.flags|=4;var t=Et.updateQueue;if(t===null)t=u1(),Et.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function PU(e){var t=hi().memoizedState;return boe({ref:t,nextImpl:e}),function(){if((cn&2)!==0)throw Error(be(440));return t.impl.apply(void 0,arguments)}}function jU(e,t){return h1(4,2,e,t)}function UU(e,t){return h1(4,4,e,t)}function BU(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function FU(e,t,n){n=n!=null?n.concat([e]):null,h1(4,4,BU.bind(null,t,e),n)}function Xz(){}function qU(e,t){var n=hi();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Fz(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function VU(e,t){var n=hi();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Fz(t,i[1]))return i[0];if(i=e(),Yu){dc(!0);try{e()}finally{dc(!1)}}return n.memoizedState=[i,t],i}function Kz(e,t,n){return n===void 0||(rl&1073741824)!==0&&(Jt&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=RB(),Et.lanes|=e,zc|=e,n)}function HU(e,t,n,i){return mo(n,t)?n:wf.current!==null?(e=Kz(e,n,i),mo(e,t)||(yi=!0),e):(rl&42)===0||(rl&1073741824)!==0&&(Jt&261930)===0?(yi=!0,e.memoizedState=n):(e=RB(),Et.lanes|=e,zc|=e,t)}function ZU(e,t,n,i,r){var o=un.p;un.p=o!==0&&8>o?o:8;var a=St.T,s={};St.T=s,Qz(e,!1,t,n);try{var l=r(),c=St.S;if(c!==null&&c(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=poe(l,i);Tg(e,t,u,po(e))}else Tg(e,t,i,po(e))}catch(d){Tg(e,t,{then:function(){},status:"rejected",reason:d},po())}finally{un.p=o,a!==null&&s.types!==null&&(a.types=s.types),St.T=a}}function xoe(){}function QC(e,t,n,i){if(e.tag!==5)throw Error(be(476));var r=GU(e).queue;ZU(e,r,t,Bu,n===null?xoe:function(){return WU(e),n(i)})}function GU(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Bu,baseState:Bu,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ol,lastRenderedState:Bu},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ol,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function WU(e){var t=GU(e);t.next===null&&(t=e.alternate.memoizedState),Tg(e,t.next.queue,{},po())}function Jz(){return Wi(Zg)}function YU(){return hi().memoizedState}function XU(){return hi().memoizedState}function _oe(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=po();e=yc(n);var i=bc(t,e,n);i!==null&&(Br(i,t,n),Mg(i,t,n)),t={cache:Nz()},e.payload=t;return}t=t.return}}function Soe(e,t,n){var i=po();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},f1(e)?JU(t,n):(n=Lz(e,t,n,i),n!==null&&(Br(n,e,i),QU(n,t,i)))}function KU(e,t,n){var i=po();Tg(e,t,n,i)}function Tg(e,t,n,i){var r={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(f1(e))JU(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(r.hasEagerState=!0,r.eagerState=s,mo(s,a))return l1(e,t,r,0),An===null&&s1(),!1}catch{}finally{}if(n=Lz(e,t,r,i),n!==null)return Br(n,e,i),QU(n,t,i),!0}return!1}function Qz(e,t,n,i){if(i={lane:2,revertLane:lT(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},f1(e)){if(t)throw Error(be(479))}else t=Lz(e,n,i,2),t!==null&&Br(t,e,2)}function f1(e){var t=e.alternate;return e===Et||t!==null&&t===Et}function JU(e,t){yf=U_=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function QU(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Pj(e,n)}}var qg={readContext:Wi,use:d1,useCallback:ei,useContext:ei,useEffect:ei,useImperativeHandle:ei,useLayoutEffect:ei,useInsertionEffect:ei,useMemo:ei,useReducer:ei,useRef:ei,useState:ei,useDebugValue:ei,useDeferredValue:ei,useTransition:ei,useSyncExternalStore:ei,useId:ei,useHostTransitionStatus:ei,useFormState:ei,useActionState:ei,useOptimistic:ei,useMemoCache:ei,useCacheRefresh:ei};qg.useEffectEvent=ei;var eB={readContext:Wi,use:d1,useCallback:function(e,t){return Sr().memoizedState=[e,t===void 0?null:t],e},useContext:Wi,useEffect:N3,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,x_(4194308,4,BU.bind(null,t,e),n)},useLayoutEffect:function(e,t){return x_(4194308,4,e,t)},useInsertionEffect:function(e,t){x_(4,2,e,t)},useMemo:function(e,t){var n=Sr();t=t===void 0?null:t;var i=e();if(Yu){dc(!0);try{e()}finally{dc(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=Sr();if(n!==void 0){var r=n(t);if(Yu){dc(!0);try{n(t)}finally{dc(!1)}}}else r=t;return i.memoizedState=i.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},i.queue=e,e=e.dispatch=Soe.bind(null,Et,e),[i.memoizedState,e]},useRef:function(e){var t=Sr();return e={current:e},t.memoizedState=e},useState:function(e){e=KC(e);var t=e.queue,n=KU.bind(null,Et,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Xz,useDeferredValue:function(e,t){var n=Sr();return Kz(n,e,t)},useTransition:function(){var e=KC(!1);return e=ZU.bind(null,Et,e.queue,!0,!1),Sr().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Et,r=Sr();if(en){if(n===void 0)throw Error(be(407));n=n()}else{if(n=t(),An===null)throw Error(be(349));(Jt&127)!==0||CU(i,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,N3(TU.bind(null,i,o,e),[e]),i.flags|=2048,kf(9,{destroy:void 0},zU.bind(null,i,o,n,t),null),n},useId:function(){var e=Sr(),t=An.identifierPrefix;if(en){var n=Za,i=Ha;n=(i&~(1<<32-fo(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=B_++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=moe++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Jz,useFormState:E3,useActionState:E3,useOptimistic:function(e){var t=Sr();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Qz.bind(null,Et,!0,n),n.dispatch=t,[e,t]},useMemoCache:Gz,useCacheRefresh:function(){return Sr().memoizedState=_oe.bind(null,Et)},useEffectEvent:function(e){var t=Sr(),n={impl:e};return t.memoizedState=n,function(){if((cn&2)!==0)throw Error(be(440));return n.impl.apply(void 0,arguments)}}},eT={readContext:Wi,use:d1,useCallback:qU,useContext:Wi,useEffect:Yz,useImperativeHandle:FU,useInsertionEffect:jU,useLayoutEffect:UU,useMemo:VU,useReducer:b_,useRef:NU,useState:function(){return b_(ol)},useDebugValue:Xz,useDeferredValue:function(e,t){var n=hi();return HU(n,Mn.memoizedState,e,t)},useTransition:function(){var e=b_(ol)[0],t=hi().memoizedState;return[typeof e=="boolean"?e:nv(e),t]},useSyncExternalStore:MU,useId:YU,useHostTransitionStatus:Jz,useFormState:D3,useActionState:D3,useOptimistic:function(e,t){var n=hi();return RU(n,Mn,e,t)},useMemoCache:Gz,useCacheRefresh:XU};eT.useEffectEvent=PU;var tB={readContext:Wi,use:d1,useCallback:qU,useContext:Wi,useEffect:Yz,useImperativeHandle:FU,useInsertionEffect:jU,useLayoutEffect:UU,useMemo:VU,useReducer:sC,useRef:NU,useState:function(){return sC(ol)},useDebugValue:Xz,useDeferredValue:function(e,t){var n=hi();return Mn===null?Kz(n,e,t):HU(n,Mn.memoizedState,e,t)},useTransition:function(){var e=sC(ol)[0],t=hi().memoizedState;return[typeof e=="boolean"?e:nv(e),t]},useSyncExternalStore:MU,useId:YU,useHostTransitionStatus:Jz,useFormState:O3,useActionState:O3,useOptimistic:function(e,t){var n=hi();return Mn!==null?RU(n,Mn,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Gz,useCacheRefresh:XU};tB.useEffectEvent=PU;function lC(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:Nn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ez={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=po(),r=yc(i);r.payload=t,n!=null&&(r.callback=n),t=bc(e,r,i),t!==null&&(Br(t,e,i),Mg(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=po(),r=yc(i);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=bc(e,r,i),t!==null&&(Br(t,e,i),Mg(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=po(),i=yc(n);i.tag=2,t!=null&&(i.callback=t),t=bc(e,i,n),t!==null&&(Br(t,e,n),Mg(t,e,n))}};function P3(e,t,n,i,r,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,a):t.prototype&&t.prototype.isPureReactComponent?!Pg(n,i)||!Pg(r,o):!0}function j3(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&ez.enqueueReplaceState(t,t.state,null)}function Xu(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=Nn({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function nB(e){L_(e)}function iB(e){console.error(e)}function rB(e){L_(e)}function F_(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function U3(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function tz(e,t,n){return n=yc(n),n.tag=3,n.payload={element:null},n.callback=function(){F_(e,t)},n}function oB(e){return e=yc(e),e.tag=3,e}function aB(e,t,n,i){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var o=i.value;e.payload=function(){return r(o)},e.callback=function(){U3(t,n,i)}}var a=n.stateNode;a!==null&&typeof a.componentDidCatch=="function"&&(e.callback=function(){U3(t,n,i),typeof r!="function"&&(xc===null?xc=new Set([this]):xc.add(this));var s=i.stack;this.componentDidCatch(i.value,{componentStack:s!==null?s:""})})}function $oe(e,t,n,i,r){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Lf(t,n,r,!0),n=go.current,n!==null){switch(n.tag){case 31:case 13:return No===null?G_():n.alternate===null&&ti===0&&(ti=3),n.flags&=-257,n.flags|=65536,n.lanes=r,i===N_?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),bC(e,i,r)),!1;case 22:return n.flags|=65536,i===N_?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),bC(e,i,r)),!1}throw Error(be(435,n.tag))}return bC(e,i,r),G_(),!1}if(en)return t=go.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,i!==FC&&(e=Error(be(422),{cause:i}),Ug(Do(e,n)))):(i!==FC&&(t=Error(be(423),{cause:i}),Ug(Do(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,i=Do(i,n),r=tz(e.stateNode,i,r),aC(e,r),ti!==4&&(ti=2)),!1;var o=Error(be(520),{cause:i});if(o=Do(o,n),Rg===null?Rg=[o]:Rg.push(o),ti!==4&&(ti=2),t===null)return!0;i=Do(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=tz(n.stateNode,i,e),aC(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(xc===null||!xc.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=oB(r),aB(r,e,n,i),aC(n,r),!1}n=n.return}while(n!==null);return!1}var tT=Error(be(461)),yi=!1;function Hi(e,t,n,i){t.child=e===null?xU(t,null,n,i):Wu(t,e.child,n,i)}function B3(e,t,n,i,r){n=n.render;var o=t.ref;if("ref"in i){var a={};for(var s in i)s!=="ref"&&(a[s]=i[s])}else a=i;return Gu(t),i=qz(e,t,n,a,o,r),s=Vz(),e!==null&&!yi?(Hz(e,t,r),al(e,t,r)):(en&&s&&Dz(t),t.flags|=1,Hi(e,t,i,r),t.child)}function F3(e,t,n,i,r){if(e===null){var o=n.type;return typeof o=="function"&&!Ez(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,sB(e,t,o,i,r)):(e=v_(n.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!nT(e,r)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Pg,n(a,i)&&e.ref===t.ref)return al(e,t,r)}return t.flags|=1,e=el(o,i),e.ref=t.ref,e.return=t,t.child=e}function sB(e,t,n,i,r){if(e!==null){var o=e.memoizedProps;if(Pg(o,i)&&e.ref===t.ref)if(yi=!1,t.pendingProps=i=o,nT(e,r))(e.flags&131072)!==0&&(yi=!0);else return t.lanes=e.lanes,al(e,t,r)}return nz(e,t,n,i,r)}function lB(e,t,n,i){var r=i.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(i=t.child=e.child,r=0;i!==null;)r=r|i.lanes|i.childLanes,i=i.sibling;i=r&~o}else i=0,t.child=null;return q3(e,t,o,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&y_(t,o!==null?o.cachePool:null),o!==null?I3(t,o):YC(),$U(t);else return i=t.lanes=536870912,q3(e,t,o!==null?o.baseLanes|n:n,n,i)}else o!==null?(y_(t,o.cachePool),I3(t,o),cc(t),t.memoizedState=null):(e!==null&&y_(t,null),YC(),cc(t));return Hi(e,t,r,n),t.child}function xg(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function q3(e,t,n,i,r){var o=Pz();return o=o===null?null:{parent:vi._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&y_(t,null),YC(),$U(t),e!==null&&Lf(e,t,i,!0),t.childLanes=r,null}function __(e,t){return t=q_({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function V3(e,t,n){return Wu(t,e.child,null,n),e=__(t,t.pendingProps),e.flags|=2,so(t),t.memoizedState=null,e}function woe(e,t,n){var i=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(en){if(i.mode==="hidden")return e=__(t,i),t.lanes=536870912,xg(null,e);if(XC(t),(e=On)?(e=eF(e,Oo),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:kc!==null?{id:Ha,overflow:Za}:null,retryLane:536870912,hydrationErrors:null},n=fU(e),n.return=t,t.child=n,Gi=t,On=null)):e=null,e===null)throw Mc(t);return t.lanes=536870912,null}return __(t,i)}var o=e.memoizedState;if(o!==null){var a=o.dehydrated;if(XC(t),r)if(t.flags&256)t.flags&=-257,t=V3(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(be(558));else if(yi||Lf(e,t,n,!1),r=(n&e.childLanes)!==0,yi||r){if(i=An,i!==null&&(a=jj(i,n),a!==0&&a!==o.retryLane))throw o.retryLane=a,ed(e,a),Br(i,e,a),tT;G_(),t=V3(e,t,n)}else e=o.treeContext,On=Po(a.nextSibling),Gi=t,en=!0,vc=null,Oo=!1,e!==null&&mU(t,e),t=__(t,i),t.flags|=4096;return t}return e=el(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function S_(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(be(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function nz(e,t,n,i,r){return Gu(t),n=qz(e,t,n,i,void 0,r),i=Vz(),e!==null&&!yi?(Hz(e,t,r),al(e,t,r)):(en&&i&&Dz(t),t.flags|=1,Hi(e,t,n,r),t.child)}function H3(e,t,n,i,r,o){return Gu(t),t.updateQueue=null,n=kU(t,i,n,r),wU(e),i=Vz(),e!==null&&!yi?(Hz(e,t,o),al(e,t,o)):(en&&i&&Dz(t),t.flags|=1,Hi(e,t,n,o),t.child)}function Z3(e,t,n,i,r){if(Gu(t),t.stateNode===null){var o=cf,a=n.contextType;typeof a=="object"&&a!==null&&(o=Wi(a)),o=new n(i,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=ez,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=i,o.state=t.memoizedState,o.refs={},Uz(t),a=n.contextType,o.context=typeof a=="object"&&a!==null?Wi(a):cf,o.state=t.memoizedState,a=n.getDerivedStateFromProps,typeof a=="function"&&(lC(t,n,a,i),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(a=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),a!==o.state&&ez.enqueueReplaceState(o,o.state,null),zg(t,i,o,r),Cg(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){o=t.stateNode;var s=t.memoizedProps,l=Xu(n,s);o.props=l;var c=o.context,u=n.contextType;a=cf,typeof u=="object"&&u!==null&&(a=Wi(u));var d=n.getDerivedStateFromProps;u=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,u||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s||c!==a)&&j3(t,o,i,a),ac=!1;var f=t.memoizedState;o.state=f,zg(t,i,o,r),Cg(),c=t.memoizedState,s||f!==c||ac?(typeof d=="function"&&(lC(t,n,d,i),c=t.memoizedState),(l=ac||P3(t,n,l,i,f,c,a))?(u||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=c),o.props=i,o.state=c,o.context=a,i=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,GC(e,t),a=t.memoizedProps,u=Xu(n,a),o.props=u,d=t.pendingProps,f=o.context,c=n.contextType,l=cf,typeof c=="object"&&c!==null&&(l=Wi(c)),s=n.getDerivedStateFromProps,(c=typeof s=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||f!==l)&&j3(t,o,i,l),ac=!1,f=t.memoizedState,o.state=f,zg(t,i,o,r),Cg();var h=t.memoizedState;a!==d||f!==h||ac||e!==null&&e.dependencies!==null&&O_(e.dependencies)?(typeof s=="function"&&(lC(t,n,s,i),h=t.memoizedState),(u=ac||P3(t,n,u,i,f,h,l)||e!==null&&e.dependencies!==null&&O_(e.dependencies))?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,h,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,h,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=h),o.props=i,o.state=h,o.context=l,i=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),i=!1)}return o=i,S_(e,t),i=(t.flags&128)!==0,o||i?(o=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&i?(t.child=Wu(t,e.child,null,r),t.child=Wu(t,null,n,r)):Hi(e,t,n,r),t.memoizedState=o.state,e=t.child):e=al(e,t,r),e}function G3(e,t,n,i){return Zu(),t.flags|=256,Hi(e,t,n,i),t.child}var cC={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function uC(e){return{baseLanes:e,cachePool:vU()}}function dC(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=co),e}function cB(e,t,n){var i=t.pendingProps,r=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(di.current&2)!==0),a&&(r=!0,t.flags&=-129),a=(t.flags&32)!==0,t.flags&=-33,e===null){if(en){if(r?lc(t):cc(t),(e=On)?(e=eF(e,Oo),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:kc!==null?{id:Ha,overflow:Za}:null,retryLane:536870912,hydrationErrors:null},n=fU(e),n.return=t,t.child=n,Gi=t,On=null)):e=null,e===null)throw Mc(t);return gz(e)?t.lanes=32:t.lanes=536870912,null}var s=i.children;return i=i.fallback,r?(cc(t),r=t.mode,s=q_({mode:"hidden",children:s},r),i=Fu(i,r,n,null),s.return=t,i.return=t,s.sibling=i,t.child=s,i=t.child,i.memoizedState=uC(n),i.childLanes=dC(e,a,n),t.memoizedState=cC,xg(null,i)):(lc(t),iz(t,s))}var l=e.memoizedState;if(l!==null&&(s=l.dehydrated,s!==null)){if(o)t.flags&256?(lc(t),t.flags&=-257,t=hC(e,t,n)):t.memoizedState!==null?(cc(t),t.child=e.child,t.flags|=128,t=null):(cc(t),s=i.fallback,r=t.mode,i=q_({mode:"visible",children:i.children},r),s=Fu(s,r,n,null),s.flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,Wu(t,e.child,null,n),i=t.child,i.memoizedState=uC(n),i.childLanes=dC(e,a,n),t.memoizedState=cC,t=xg(null,i));else if(lc(t),gz(s)){if(a=s.nextSibling&&s.nextSibling.dataset,a)var c=a.dgst;a=c,i=Error(be(419)),i.stack="",i.digest=a,Ug({value:i,source:null,stack:null}),t=hC(e,t,n)}else if(yi||Lf(e,t,n,!1),a=(n&e.childLanes)!==0,yi||a){if(a=An,a!==null&&(i=jj(a,n),i!==0&&i!==l.retryLane))throw l.retryLane=i,ed(e,i),Br(a,e,i),tT;mz(s)||G_(),t=hC(e,t,n)}else mz(s)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,On=Po(s.nextSibling),Gi=t,en=!0,vc=null,Oo=!1,e!==null&&mU(t,e),t=iz(t,i.children),t.flags|=4096);return t}return r?(cc(t),s=i.fallback,r=t.mode,l=e.child,c=l.sibling,i=el(l,{mode:"hidden",children:i.children}),i.subtreeFlags=l.subtreeFlags&65011712,c!==null?s=el(c,s):(s=Fu(s,r,n,null),s.flags|=2),s.return=t,i.return=t,i.sibling=s,t.child=i,xg(null,i),i=t.child,s=e.child.memoizedState,s===null?s=uC(n):(r=s.cachePool,r!==null?(l=vi._currentValue,r=r.parent!==l?{parent:l,pool:l}:r):r=vU(),s={baseLanes:s.baseLanes|n,cachePool:r}),i.memoizedState=s,i.childLanes=dC(e,a,n),t.memoizedState=cC,xg(e.child,i)):(lc(t),n=e.child,e=n.sibling,n=el(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function iz(e,t){return t=q_({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function q_(e,t){return e=lo(22,e,null,t),e.lanes=0,e}function hC(e,t,n){return Wu(t,e.child,null,n),e=iz(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function W3(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),VC(e.return,t,n)}function fC(e,t,n,i,r,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r,treeForkCount:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=n,a.tailMode=r,a.treeForkCount=o)}function uB(e,t,n){var i=t.pendingProps,r=i.revealOrder,o=i.tail;i=i.children;var a=di.current,s=(a&2)!==0;if(s?(a=a&1|2,t.flags|=128):a&=1,In(di,a),Hi(e,t,i,n),i=en?jg:0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&W3(e,n,t);else if(e.tag===19)W3(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&j_(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),fC(t,!1,r,n,o,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&j_(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}fC(t,!0,n,null,o,i);break;case"together":fC(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function al(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),zc|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Lf(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(be(153));if(t.child!==null){for(e=t.child,n=el(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=el(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nT(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&O_(e)))}function koe(e,t,n){switch(t.tag){case 3:T_(t,t.stateNode.containerInfo),sc(t,vi,e.memoizedState.cache),Zu();break;case 27:case 5:IC(t);break;case 4:T_(t,t.stateNode.containerInfo);break;case 10:sc(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,XC(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(lc(t),t.flags|=128,null):(n&t.child.childLanes)!==0?cB(e,t,n):(lc(t),e=al(e,t,n),e!==null?e.sibling:null);lc(t);break;case 19:var r=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(Lf(e,t,n,!1),i=(n&t.childLanes)!==0),r){if(i)return uB(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),In(di,di.current),i)break;return null;case 22:return t.lanes=0,lB(e,t,n,t.pendingProps);case 24:sc(t,vi,e.memoizedState.cache)}return al(e,t,n)}function dB(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)yi=!0;else{if(!nT(e,n)&&(t.flags&128)===0)return yi=!1,koe(e,t,n);yi=(e.flags&131072)!==0}else yi=!1,en&&(t.flags&1048576)!==0&&pU(t,jg,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=ju(t.elementType),t.type=e,typeof e=="function")Ez(e)?(i=Xu(e,i),t.tag=1,t=Z3(null,t,e,i,n)):(t.tag=0,t=nz(null,t,e,i,n));else{if(e!=null){var r=e.$$typeof;if(r===xz){t.tag=11,t=B3(null,t,e,i,n);break e}else if(r===_z){t.tag=14,t=F3(null,t,e,i,n);break e}}throw t=TC(e)||e,Error(be(306,t,""))}}return t;case 0:return nz(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,r=Xu(i,t.pendingProps),Z3(e,t,i,r,n);case 3:e:{if(T_(t,t.stateNode.containerInfo),e===null)throw Error(be(387));i=t.pendingProps;var o=t.memoizedState;r=o.element,GC(e,t),zg(t,i,null,n);var a=t.memoizedState;if(i=a.cache,sc(t,vi,i),i!==o.cache&&HC(t,[vi],n,!0),Cg(),i=a.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=G3(e,t,i,n);break e}else if(i!==r){r=Do(Error(be(424)),t),Ug(r),t=G3(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(On=Po(e.firstChild),Gi=t,en=!0,vc=null,Oo=!0,n=xU(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Zu(),i===r){t=al(e,t,n);break e}Hi(e,t,i,n)}t=t.child}return t;case 26:return S_(e,t),e===null?(n=gj(t.type,null,t.pendingProps,null))?t.memoizedState=n:en||(n=t.type,e=t.pendingProps,i=K_(gc.current).createElement(n),i[Zi]=t,i[Fr]=e,Yi(i,n,e),Ai(i),t.stateNode=i):t.memoizedState=gj(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return IC(t),e===null&&en&&(i=t.stateNode=tF(t.type,t.pendingProps,gc.current),Gi=t,Oo=!0,r=On,Ac(t.type)?(vz=r,On=Po(i.firstChild)):On=r),Hi(e,t,t.pendingProps.children,n),S_(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&en&&((r=i=On)&&(i=Qoe(i,t.type,t.pendingProps,Oo),i!==null?(t.stateNode=i,Gi=t,On=Po(i.firstChild),Oo=!1,r=!0):r=!1),r||Mc(t)),IC(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,fz(r,o)?i=null:a!==null&&fz(r,a)&&(t.flags|=32),t.memoizedState!==null&&(r=qz(e,t,goe,null,null,n),Zg._currentValue=r),S_(e,t),Hi(e,t,i,n),t.child;case 6:return e===null&&en&&((e=n=On)&&(n=eae(n,t.pendingProps,Oo),n!==null?(t.stateNode=n,Gi=t,On=null,e=!0):e=!1),e||Mc(t)),null;case 13:return cB(e,t,n);case 4:return T_(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Wu(t,null,i,n):Hi(e,t,i,n),t.child;case 11:return B3(e,t,t.type,t.pendingProps,n);case 7:return Hi(e,t,t.pendingProps,n),t.child;case 8:return Hi(e,t,t.pendingProps.children,n),t.child;case 12:return Hi(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,sc(t,t.type,i.value),Hi(e,t,i.children,n),t.child;case 9:return r=t.type._context,i=t.pendingProps.children,Gu(t),r=Wi(r),i=i(r),t.flags|=1,Hi(e,t,i,n),t.child;case 14:return F3(e,t,t.type,t.pendingProps,n);case 15:return sB(e,t,t.type,t.pendingProps,n);case 19:return uB(e,t,n);case 31:return woe(e,t,n);case 22:return lB(e,t,n,t.pendingProps);case 24:return Gu(t),i=Wi(vi),e===null?(r=Pz(),r===null&&(r=An,o=Nz(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=n),r=o),t.memoizedState={parent:i,cache:r},Uz(t),sc(t,vi,r)):((e.lanes&n)!==0&&(GC(e,t),zg(t,null,null,n),Cg()),r=e.memoizedState,o=t.memoizedState,r.parent!==i?(r={parent:i,cache:i},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),sc(t,vi,i)):(i=o.cache,sc(t,vi,i),i!==r.cache&&HC(t,[vi],n,!0))),Hi(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(be(156,t.tag))}function Hs(e){e.flags|=4}function pC(e,t,n,i,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(DB())e.flags|=8192;else throw Vu=N_,jz}else e.flags&=-16777217}function Y3(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!rF(t))if(DB())e.flags|=8192;else throw Vu=N_,jz}function a_(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Oj():536870912,e.lanes|=t,Mf|=t)}function fg(e,t){if(!en)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Dn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&65011712,i|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Moe(e,t,n){var i=t.pendingProps;switch(Oz(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dn(t),null;case 1:return Dn(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),tl(vi),xf(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Xh(t)?Hs(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,oC())),Dn(t),null;case 26:var r=t.type,o=t.memoizedState;return e===null?(Hs(t),o!==null?(Dn(t),Y3(t,o)):(Dn(t),pC(t,r,null,i,n))):o?o!==e.memoizedState?(Hs(t),Dn(t),Y3(t,o)):(Dn(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Hs(t),Dn(t),pC(t,r,e,i,n)),null;case 27:if(A_(t),n=gc.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Hs(t);else{if(!i){if(t.stateNode===null)throw Error(be(166));return Dn(t),null}e=Wa.current,Xh(t)?w3(t,e):(e=tF(r,i,n),t.stateNode=e,Hs(t))}return Dn(t),null;case 5:if(A_(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Hs(t);else{if(!i){if(t.stateNode===null)throw Error(be(166));return Dn(t),null}if(o=Wa.current,Xh(t))w3(t,o);else{var a=K_(gc.current);switch(o){case 1:o=a.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=a.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=a.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=a.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":o=a.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof i.is=="string"?a.createElement("select",{is:i.is}):a.createElement("select"),i.multiple?o.multiple=!0:i.size&&(o.size=i.size);break;default:o=typeof i.is=="string"?a.createElement(r,{is:i.is}):a.createElement(r)}}o[Zi]=t,o[Fr]=i;e:for(a=t.child;a!==null;){if(a.tag===5||a.tag===6)o.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=o;e:switch(Yi(o,r,i),r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Hs(t)}}return Dn(t),pC(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Hs(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(be(166));if(e=gc.current,Xh(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,r=Gi,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}e[Zi]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||KB(e.nodeValue,n)),e||Mc(t,!0)}else e=K_(e).createTextNode(i),e[Zi]=t,t.stateNode=e}return Dn(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Xh(t),n!==null){if(e===null){if(!i)throw Error(be(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(be(557));e[Zi]=t}else Zu(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Dn(t),e=!1}else n=oC(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(so(t),t):(so(t),null);if((t.flags&128)!==0)throw Error(be(558))}return Dn(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Xh(t),i!==null&&i.dehydrated!==null){if(e===null){if(!r)throw Error(be(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(be(317));r[Zi]=t}else Zu(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Dn(t),r=!1}else r=oC(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(so(t),t):(so(t),null)}return so(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,r=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(r=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==r&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),a_(t,t.updateQueue),Dn(t),null);case 4:return xf(),e===null&&cT(t.stateNode.containerInfo),Dn(t),null;case 10:return tl(t.type),Dn(t),null;case 19:if(Ii(di),i=t.memoizedState,i===null)return Dn(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)fg(i,!1);else{if(ti!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=j_(e),o!==null){for(t.flags|=128,fg(i,!1),e=o.updateQueue,t.updateQueue=e,a_(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)hU(n,e),n=n.sibling;return In(di,di.current&1|2),en&&Ys(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&uo()>H_&&(t.flags|=128,r=!0,fg(i,!1),t.lanes=4194304)}else{if(!r)if(e=j_(o),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,a_(t,e),fg(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!en)return Dn(t),null}else 2*uo()-i.renderingStartTime>H_&&n!==536870912&&(t.flags|=128,r=!0,fg(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e!==null?e.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=uo(),e.sibling=null,n=di.current,In(di,r?n&1|2:n&1),en&&Ys(t,i.treeForkCount),e):(Dn(t),null);case 22:case 23:return so(t),Bz(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Dn(t),t.subtreeFlags&6&&(t.flags|=8192)):Dn(t),n=t.updateQueue,n!==null&&a_(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&Ii(qu),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),tl(vi),Dn(t),null;case 25:return null;case 30:return null}throw Error(be(156,t.tag))}function Coe(e,t){switch(Oz(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tl(vi),xf(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return A_(t),null;case 31:if(t.memoizedState!==null){if(so(t),t.alternate===null)throw Error(be(340));Zu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(so(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(be(340));Zu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ii(di),null;case 4:return xf(),null;case 10:return tl(t.type),null;case 22:case 23:return so(t),Bz(),e!==null&&Ii(qu),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return tl(vi),null;case 25:return null;default:return null}}function hB(e,t){switch(Oz(t),t.tag){case 3:tl(vi),xf();break;case 26:case 27:case 5:A_(t);break;case 4:xf();break;case 31:t.memoizedState!==null&&so(t);break;case 13:so(t);break;case 19:Ii(di);break;case 10:tl(t.type);break;case 22:case 23:so(t),Bz(),e!==null&&Ii(qu);break;case 24:tl(vi)}}function iv(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var r=i.next;n=r;do{if((n.tag&e)===e){i=void 0;var o=n.create,a=n.inst;i=o(),a.destroy=i}n=n.next}while(n!==r)}}catch(s){_n(t,t.return,s)}}function Cc(e,t,n){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var o=r.next;i=o;do{if((i.tag&e)===e){var a=i.inst,s=a.destroy;if(s!==void 0){a.destroy=void 0,r=t;var l=n,c=s;try{c()}catch(u){_n(r,l,u)}}}i=i.next}while(i!==o)}}catch(u){_n(t,t.return,u)}}function fB(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{SU(t,n)}catch(i){_n(e,e.return,i)}}}function pB(e,t,n){n.props=Xu(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){_n(e,t,i)}}function Ag(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){_n(e,t,r)}}function Ga(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(r){_n(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){_n(e,t,r)}else n.current=null}function mB(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(r){_n(e,e.return,r)}}function mC(e,t,n){try{var i=e.stateNode;Goe(i,e.type,n,t),i[Fr]=t}catch(r){_n(e,e.return,r)}}function gB(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ac(e.type)||e.tag===4}function gC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gB(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ac(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function rz(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Js));else if(i!==4&&(i===27&&Ac(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(rz(e,t,n),e=e.sibling;e!==null;)rz(e,t,n),e=e.sibling}function V_(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&Ac(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(V_(e,t,n),e=e.sibling;e!==null;)V_(e,t,n),e=e.sibling}function vB(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Yi(t,i,n),t[Zi]=e,t[Fr]=n}catch(o){_n(e,e.return,o)}}var Xs=!1,gi=!1,vC=!1,X3=typeof WeakSet=="function"?WeakSet:Set,Ti=null;function zoe(e,t){if(e=e.containerInfo,dz=t1,e=rU(e),Iz(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||r!==0&&d.nodeType!==3||(s=a+r),d!==o||i!==0&&d.nodeType!==3||(l=a+i),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===r&&(s=a),f===o&&++u===i&&(l=a),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(hz={focusedElem:e,selectionRange:n},t1=!1,Ti=t;Ti!==null;)if(t=Ti,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ti=e;else for(;Ti!==null;){switch(t=Ti,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)r=e[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,r=o.memoizedProps,o=o.memoizedState,i=n.stateNode;try{var p=Xu(n.type,r);e=i.getSnapshotBeforeUpdate(p,o),i.__reactInternalSnapshotBeforeUpdate=e}catch(g){_n(n,n.return,g)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)pz(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":pz(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(be(163))}if(e=t.sibling,e!==null){e.return=t.return,Ti=e;break}Ti=t.return}}function yB(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Gs(e,n),i&4&&iv(5,n);break;case 1:if(Gs(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(a){_n(n,n.return,a)}else{var r=Xu(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(a){_n(n,n.return,a)}}i&64&&fB(n),i&512&&Ag(n,n.return);break;case 3:if(Gs(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{SU(e,t)}catch(a){_n(n,n.return,a)}}break;case 27:t===null&&i&4&&vB(n);case 26:case 5:Gs(e,n),t===null&&i&4&&mB(n),i&512&&Ag(n,n.return);break;case 12:Gs(e,n);break;case 31:Gs(e,n),i&4&&_B(e,n);break;case 13:Gs(e,n),i&4&&SB(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Noe.bind(null,n),tae(e,n))));break;case 22:if(i=n.memoizedState!==null||Xs,!i){t=t!==null&&t.memoizedState!==null||gi,r=Xs;var o=gi;Xs=i,(gi=t)&&!o?Ws(e,n,(n.subtreeFlags&8772)!==0):Gs(e,n),Xs=r,gi=o}break;case 30:break;default:Gs(e,n)}}function bB(e){var t=e.alternate;t!==null&&(e.alternate=null,bB(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&kz(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Un=null,jr=!1;function Zs(e,t,n){for(n=n.child;n!==null;)xB(e,t,n),n=n.sibling}function xB(e,t,n){if(ho&&typeof ho.onCommitFiberUnmount=="function")try{ho.onCommitFiberUnmount(Xg,n)}catch{}switch(n.tag){case 26:gi||Ga(n,t),Zs(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:gi||Ga(n,t);var i=Un,r=jr;Ac(n.type)&&(Un=n.stateNode,jr=!1),Zs(e,t,n),Eg(n.stateNode),Un=i,jr=r;break;case 5:gi||Ga(n,t);case 6:if(i=Un,r=jr,Un=null,Zs(e,t,n),Un=i,jr=r,Un!==null)if(jr)try{(Un.nodeType===9?Un.body:Un.nodeName==="HTML"?Un.ownerDocument.body:Un).removeChild(n.stateNode)}catch(o){_n(n,t,o)}else try{Un.removeChild(n.stateNode)}catch(o){_n(n,t,o)}break;case 18:Un!==null&&(jr?(e=Un,dj(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Af(e)):dj(Un,n.stateNode));break;case 4:i=Un,r=jr,Un=n.stateNode.containerInfo,jr=!0,Zs(e,t,n),Un=i,jr=r;break;case 0:case 11:case 14:case 15:Cc(2,n,t),gi||Cc(4,n,t),Zs(e,t,n);break;case 1:gi||(Ga(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&pB(n,t,i)),Zs(e,t,n);break;case 21:Zs(e,t,n);break;case 22:gi=(i=gi)||n.memoizedState!==null,Zs(e,t,n),gi=i;break;default:Zs(e,t,n)}}function _B(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Af(e)}catch(n){_n(t,t.return,n)}}}function SB(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Af(e)}catch(n){_n(t,t.return,n)}}function Toe(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new X3),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new X3),t;default:throw Error(be(435,e.tag))}}function s_(e,t){var n=Toe(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var r=Poe.bind(null,e,i);i.then(r,r)}})}function Nr(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i],o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 27:if(Ac(s.type)){Un=s.stateNode,jr=!1;break e}break;case 5:Un=s.stateNode,jr=!1;break e;case 3:case 4:Un=s.stateNode.containerInfo,jr=!0;break e}s=s.return}if(Un===null)throw Error(be(160));xB(o,a,r),Un=null,jr=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)$B(t,e),t=t.sibling}var ya=null;function $B(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Nr(t,e),Pr(e),i&4&&(Cc(3,e,e.return),iv(3,e),Cc(5,e,e.return));break;case 1:Nr(t,e),Pr(e),i&512&&(gi||n===null||Ga(n,n.return)),i&64&&Xs&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var r=ya;if(Nr(t,e),Pr(e),i&512&&(gi||n===null||Ga(n,n.return)),i&4){var o=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(i){case"title":o=r.getElementsByTagName("title")[0],(!o||o[Qg]||o[Zi]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(i),r.head.insertBefore(o,r.querySelector("head > title"))),Yi(o,i,n),o[Zi]=e,Ai(o),i=o;break e;case"link":var a=yj("link","href",r).get(i+(n.href||""));if(a){for(var s=0;s<a.length;s++)if(o=a[s],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(s,1);break t}}o=r.createElement(i),Yi(o,i,n),r.head.appendChild(o);break;case"meta":if(a=yj("meta","content",r).get(i+(n.content||""))){for(s=0;s<a.length;s++)if(o=a[s],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(s,1);break t}}o=r.createElement(i),Yi(o,i,n),r.head.appendChild(o);break;default:throw Error(be(468,i))}o[Zi]=e,Ai(o),i=o}e.stateNode=i}else bj(r,e.type,e.stateNode);else e.stateNode=vj(r,i,e.memoizedProps);else o!==i?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,i===null?bj(r,e.type,e.stateNode):vj(r,i,e.memoizedProps)):i===null&&e.stateNode!==null&&mC(e,e.memoizedProps,n.memoizedProps)}break;case 27:Nr(t,e),Pr(e),i&512&&(gi||n===null||Ga(n,n.return)),n!==null&&i&4&&mC(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Nr(t,e),Pr(e),i&512&&(gi||n===null||Ga(n,n.return)),e.flags&32){r=e.stateNode;try{Sf(r,"")}catch(p){_n(e,e.return,p)}}i&4&&e.stateNode!=null&&(r=e.memoizedProps,mC(e,r,n!==null?n.memoizedProps:r)),i&1024&&(vC=!0);break;case 6:if(Nr(t,e),Pr(e),i&4){if(e.stateNode===null)throw Error(be(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(p){_n(e,e.return,p)}}break;case 3:if(k_=null,r=ya,ya=J_(t.containerInfo),Nr(t,e),ya=r,Pr(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Af(t.containerInfo)}catch(p){_n(e,e.return,p)}vC&&(vC=!1,wB(e));break;case 4:i=ya,ya=J_(e.stateNode.containerInfo),Nr(t,e),Pr(e),ya=i;break;case 12:Nr(t,e),Pr(e);break;case 31:Nr(t,e),Pr(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,s_(e,i)));break;case 13:Nr(t,e),Pr(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(p1=uo()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,s_(e,i)));break;case 22:r=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,c=Xs,u=gi;if(Xs=c||r,gi=u||l,Nr(t,e),gi=u,Xs=c,Pr(e),i&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||l||Xs||gi||Uu(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,r)a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{s=l.stateNode;var d=l.memoizedProps.style,f=d!=null&&d.hasOwnProperty("display")?d.display:null;s.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(p){_n(l,l.return,p)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=r?"":l.memoizedProps}catch(p){_n(l,l.return,p)}}}else if(t.tag===18){if(n===null){l=t;try{var h=l.stateNode;r?hj(h,!0):hj(l.stateNode,!1)}catch(p){_n(l,l.return,p)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,s_(e,n))));break;case 19:Nr(t,e),Pr(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,s_(e,i)));break;case 30:break;case 21:break;default:Nr(t,e),Pr(e)}}function Pr(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(gB(i)){n=i;break}i=i.return}if(n==null)throw Error(be(160));switch(n.tag){case 27:var r=n.stateNode,o=gC(e);V_(e,o,r);break;case 5:var a=n.stateNode;n.flags&32&&(Sf(a,""),n.flags&=-33);var s=gC(e);V_(e,s,a);break;case 3:case 4:var l=n.stateNode.containerInfo,c=gC(e);rz(e,c,l);break;default:throw Error(be(161))}}catch(u){_n(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wB(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;wB(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Gs(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)yB(e,t.alternate,t),t=t.sibling}function Uu(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Cc(4,t,t.return),Uu(t);break;case 1:Ga(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&pB(t,t.return,n),Uu(t);break;case 27:Eg(t.stateNode);case 26:case 5:Ga(t,t.return),Uu(t);break;case 22:t.memoizedState===null&&Uu(t);break;case 30:Uu(t);break;default:Uu(t)}e=e.sibling}}function Ws(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,r=e,o=t,a=o.flags;switch(o.tag){case 0:case 11:case 15:Ws(r,o,n),iv(4,o);break;case 1:if(Ws(r,o,n),i=o,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(c){_n(i,i.return,c)}if(i=o,r=i.updateQueue,r!==null){var s=i.stateNode;try{var l=r.shared.hiddenCallbacks;if(l!==null)for(r.shared.hiddenCallbacks=null,r=0;r<l.length;r++)_U(l[r],s)}catch(c){_n(i,i.return,c)}}n&&a&64&&fB(o),Ag(o,o.return);break;case 27:vB(o);case 26:case 5:Ws(r,o,n),n&&i===null&&a&4&&mB(o),Ag(o,o.return);break;case 12:Ws(r,o,n);break;case 31:Ws(r,o,n),n&&a&4&&_B(r,o);break;case 13:Ws(r,o,n),n&&a&4&&SB(r,o);break;case 22:o.memoizedState===null&&Ws(r,o,n),Ag(o,o.return);break;case 30:break;default:Ws(r,o,n)}t=t.sibling}}function iT(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&tv(n))}function rT(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&tv(e))}function va(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kB(e,t,n,i),t=t.sibling}function kB(e,t,n,i){var r=t.flags;switch(t.tag){case 0:case 11:case 15:va(e,t,n,i),r&2048&&iv(9,t);break;case 1:va(e,t,n,i);break;case 3:va(e,t,n,i),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&tv(e)));break;case 12:if(r&2048){va(e,t,n,i),e=t.stateNode;try{var o=t.memoizedProps,a=o.id,s=o.onPostCommit;typeof s=="function"&&s(a,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(l){_n(t,t.return,l)}}else va(e,t,n,i);break;case 31:va(e,t,n,i);break;case 13:va(e,t,n,i);break;case 23:break;case 22:o=t.stateNode,a=t.alternate,t.memoizedState!==null?o._visibility&2?va(e,t,n,i):Ig(e,t):o._visibility&2?va(e,t,n,i):(o._visibility|=2,Jh(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),r&2048&&iT(a,t);break;case 24:va(e,t,n,i),r&2048&&rT(t.alternate,t);break;default:va(e,t,n,i)}}function Jh(e,t,n,i,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,a=t,s=n,l=i,c=a.flags;switch(a.tag){case 0:case 11:case 15:Jh(o,a,s,l,r),iv(8,a);break;case 23:break;case 22:var u=a.stateNode;a.memoizedState!==null?u._visibility&2?Jh(o,a,s,l,r):Ig(o,a):(u._visibility|=2,Jh(o,a,s,l,r)),r&&c&2048&&iT(a.alternate,a);break;case 24:Jh(o,a,s,l,r),r&&c&2048&&rT(a.alternate,a);break;default:Jh(o,a,s,l,r)}t=t.sibling}}function Ig(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,r=i.flags;switch(i.tag){case 22:Ig(n,i),r&2048&&iT(i.alternate,i);break;case 24:Ig(n,i),r&2048&&rT(i.alternate,i);break;default:Ig(n,i)}t=t.sibling}}var _g=8192;function Kh(e,t,n){if(e.subtreeFlags&_g)for(e=e.child;e!==null;)MB(e,t,n),e=e.sibling}function MB(e,t,n){switch(e.tag){case 26:Kh(e,t,n),e.flags&_g&&e.memoizedState!==null&&fae(n,ya,e.memoizedState,e.memoizedProps);break;case 5:Kh(e,t,n);break;case 3:case 4:var i=ya;ya=J_(e.stateNode.containerInfo),Kh(e,t,n),ya=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=_g,_g=16777216,Kh(e,t,n),_g=i):Kh(e,t,n));break;default:Kh(e,t,n)}}function CB(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function pg(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Ti=i,TB(i,e)}CB(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zB(e),e=e.sibling}function zB(e){switch(e.tag){case 0:case 11:case 15:pg(e),e.flags&2048&&Cc(9,e,e.return);break;case 3:pg(e);break;case 12:pg(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,$_(e)):pg(e);break;default:pg(e)}}function $_(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Ti=i,TB(i,e)}CB(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Cc(8,t,t.return),$_(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,$_(t));break;default:$_(t)}e=e.sibling}}function TB(e,t){for(;Ti!==null;){var n=Ti;switch(n.tag){case 0:case 11:case 15:Cc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:tv(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Ti=i;else e:for(n=e;Ti!==null;){i=Ti;var r=i.sibling,o=i.return;if(bB(i),i===n){Ti=null;break e}if(r!==null){r.return=o,Ti=r;break e}Ti=o}}}var Aoe={getCacheForType:function(e){var t=Wi(vi),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Wi(vi).controller.signal}},Ioe=typeof WeakMap=="function"?WeakMap:Map,cn=0,An=null,Xt=null,Jt=0,xn=0,ao=null,fc=!1,Df=!1,oT=!1,sl=0,ti=0,zc=0,Hu=0,aT=0,co=0,Mf=0,Rg=null,Ur=null,oz=!1,p1=0,AB=0,H_=1/0,Z_=null,xc=null,$i=0,_c=null,Cf=null,nl=0,az=0,sz=null,IB=null,Lg=0,lz=null;function po(){return(cn&2)!==0&&Jt!==0?Jt&-Jt:St.T!==null?lT():Uj()}function RB(){if(co===0)if((Jt&536870912)===0||en){var e=Kx;Kx<<=1,(Kx&3932160)===0&&(Kx=262144),co=e}else co=536870912;return e=go.current,e!==null&&(e.flags|=32),co}function Br(e,t,n){(e===An&&(xn===2||xn===9)||e.cancelPendingCommit!==null)&&(zf(e,0),pc(e,Jt,co,!1)),Jg(e,n),((cn&2)===0||e!==An)&&(e===An&&((cn&2)===0&&(Hu|=n),ti===4&&pc(e,Jt,co,!1)),Xa(e))}function LB(e,t,n){if((cn&6)!==0)throw Error(be(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Kg(e,t),r=i?Eoe(e,t):yC(e,t,!0),o=i;do{if(r===0){Df&&!i&&pc(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Roe(n)){r=yC(e,t,!1),o=!1;continue}if(r===2){if(o=t,e.errorRecoveryDisabledLanes&o)var a=0;else a=e.pendingLanes&-536870913,a=a!==0?a:a&536870912?536870912:0;if(a!==0){t=a;e:{var s=e;r=Rg;var l=s.current.memoizedState.isDehydrated;if(l&&(zf(s,a).flags|=256),a=yC(s,a,!1),a!==2){if(oT&&!l){s.errorRecoveryDisabledLanes|=o,Hu|=o,r=4;break e}o=Ur,Ur=r,o!==null&&(Ur===null?Ur=o:Ur.push.apply(Ur,o))}r=a}if(o=!1,r!==2)continue}}if(r===1){zf(e,0),pc(e,t,0,!0);break}e:{switch(i=e,o=r,o){case 0:case 1:throw Error(be(345));case 4:if((t&4194048)!==t)break;case 6:pc(i,t,co,!fc);break e;case 2:Ur=null;break;case 3:case 5:break;default:throw Error(be(329))}if((t&62914560)===t&&(r=p1+300-uo(),10<r)){if(pc(i,t,co,!fc),i1(i,0,!0)!==0)break e;nl=t,i.timeoutHandle=QB(K3.bind(null,i,n,Ur,Z_,oz,t,co,Hu,Mf,fc,o,"Throttled",-0,0),r);break e}K3(i,n,Ur,Z_,oz,t,co,Hu,Mf,fc,o,null,-0,0)}}break}while(!0);Xa(e)}function K3(e,t,n,i,r,o,a,s,l,c,u,d,f,h){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)===16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Js},MB(t,o,d);var p=(o&62914560)===o?p1-uo():(o&4194048)===o?AB-uo():0;if(p=pae(d,p),p!==null){nl=o,e.cancelPendingCommit=p(Q3.bind(null,e,t,o,n,i,r,a,s,l,u,d,null,f,h)),pc(e,o,a,!c);return}}Q3(e,t,o,n,i,r,a,s,l)}function Roe(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var r=n[i],o=r.getSnapshot;r=r.value;try{if(!mo(o(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function pc(e,t,n,i){t&=~aT,t&=~Hu,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var r=t;0<r;){var o=31-fo(r),a=1<<o;i[o]=-1,r&=~a}n!==0&&Nj(e,n,t)}function m1(){return(cn&6)===0?(rv(0,!1),!1):!0}function sT(){if(Xt!==null){if(xn===0)var e=Xt.return;else e=Xt,Qs=td=null,Zz(e),vf=null,Bg=0,e=Xt;for(;e!==null;)hB(e.alternate,e),e=e.return;Xt=null}}function zf(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Xoe(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),nl=0,sT(),An=e,Xt=n=el(e.current,null),Jt=t,xn=0,ao=null,fc=!1,Df=Kg(e,t),oT=!1,Mf=co=aT=Hu=zc=ti=0,Ur=Rg=null,oz=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var r=31-fo(i),o=1<<r;t|=e[r],i&=~o}return sl=t,s1(),n}function EB(e,t){Et=null,St.H=qg,t===Ef||t===c1?(t=T3(),xn=3):t===jz?(t=T3(),xn=4):xn=t===tT?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ao=t,Xt===null&&(ti=1,F_(e,Do(t,e.current)))}function DB(){var e=go.current;return e===null?!0:(Jt&4194048)===Jt?No===null:(Jt&62914560)===Jt||(Jt&536870912)!==0?e===No:!1}function OB(){var e=St.H;return St.H=qg,e===null?qg:e}function NB(){var e=St.A;return St.A=Aoe,e}function G_(){ti=4,fc||(Jt&4194048)!==Jt&&go.current!==null||(Df=!0),(zc&134217727)===0&&(Hu&134217727)===0||An===null||pc(An,Jt,co,!1)}function yC(e,t,n){var i=cn;cn|=2;var r=OB(),o=NB();(An!==e||Jt!==t)&&(Z_=null,zf(e,t)),t=!1;var a=ti;e:do try{if(xn!==0&&Xt!==null){var s=Xt,l=ao;switch(xn){case 8:sT(),a=6;break e;case 3:case 2:case 9:case 6:go.current===null&&(t=!0);var c=xn;if(xn=0,ao=null,hf(e,s,l,c),n&&Df){a=0;break e}break;default:c=xn,xn=0,ao=null,hf(e,s,l,c)}}Loe(),a=ti;break}catch(u){EB(e,u)}while(!0);return t&&e.shellSuspendCounter++,Qs=td=null,cn=i,St.H=r,St.A=o,Xt===null&&(An=null,Jt=0,s1()),a}function Loe(){for(;Xt!==null;)PB(Xt)}function Eoe(e,t){var n=cn;cn|=2;var i=OB(),r=NB();An!==e||Jt!==t?(Z_=null,H_=uo()+500,zf(e,t)):Df=Kg(e,t);e:do try{if(xn!==0&&Xt!==null){t=Xt;var o=ao;t:switch(xn){case 1:xn=0,ao=null,hf(e,t,o,1);break;case 2:case 9:if(z3(o)){xn=0,ao=null,J3(t);break}t=function(){xn!==2&&xn!==9||An!==e||(xn=7),Xa(e)},o.then(t,t);break e;case 3:xn=7;break e;case 4:xn=5;break e;case 7:z3(o)?(xn=0,ao=null,J3(t)):(xn=0,ao=null,hf(e,t,o,7));break;case 5:var a=null;switch(Xt.tag){case 26:a=Xt.memoizedState;case 5:case 27:var s=Xt;if(a?rF(a):s.stateNode.complete){xn=0,ao=null;var l=s.sibling;if(l!==null)Xt=l;else{var c=s.return;c!==null?(Xt=c,g1(c)):Xt=null}break t}}xn=0,ao=null,hf(e,t,o,5);break;case 6:xn=0,ao=null,hf(e,t,o,6);break;case 8:sT(),ti=6;break e;default:throw Error(be(462))}}Doe();break}catch(u){EB(e,u)}while(!0);return Qs=td=null,St.H=i,St.A=r,cn=n,Xt!==null?0:(An=null,Jt=0,s1(),ti)}function Doe(){for(;Xt!==null&&!rre();)PB(Xt)}function PB(e){var t=dB(e.alternate,e,sl);e.memoizedProps=e.pendingProps,t===null?g1(e):Xt=t}function J3(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=H3(n,t,t.pendingProps,t.type,void 0,Jt);break;case 11:t=H3(n,t,t.pendingProps,t.type.render,t.ref,Jt);break;case 5:Zz(t);default:hB(n,t),t=Xt=hU(t,sl),t=dB(n,t,sl)}e.memoizedProps=e.pendingProps,t===null?g1(e):Xt=t}function hf(e,t,n,i){Qs=td=null,Zz(t),vf=null,Bg=0;var r=t.return;try{if($oe(e,r,t,n,Jt)){ti=1,F_(e,Do(n,e.current)),Xt=null;return}}catch(o){if(r!==null)throw Xt=r,o;ti=1,F_(e,Do(n,e.current)),Xt=null;return}t.flags&32768?(en||i===1?e=!0:Df||(Jt&536870912)!==0?e=!1:(fc=e=!0,(i===2||i===9||i===3||i===6)&&(i=go.current,i!==null&&i.tag===13&&(i.flags|=16384))),jB(t,e)):g1(t)}function g1(e){var t=e;do{if((t.flags&32768)!==0){jB(t,fc);return}e=t.return;var n=Moe(t.alternate,t,sl);if(n!==null){Xt=n;return}if(t=t.sibling,t!==null){Xt=t;return}Xt=t=e}while(t!==null);ti===0&&(ti=5)}function jB(e,t){do{var n=Coe(e.alternate,e);if(n!==null){n.flags&=32767,Xt=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Xt=e;return}Xt=e=n}while(e!==null);ti=6,Xt=null}function Q3(e,t,n,i,r,o,a,s,l){e.cancelPendingCommit=null;do v1();while($i!==0);if((cn&6)!==0)throw Error(be(327));if(t!==null){if(t===e.current)throw Error(be(177));if(o=t.lanes|t.childLanes,o|=Rz,pre(e,n,o,a,s,l),e===An&&(Xt=An=null,Jt=0),Cf=t,_c=e,nl=n,az=o,sz=r,IB=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,joe(I_,function(){return VB(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=St.T,St.T=null,r=un.p,un.p=2,a=cn,cn|=4;try{zoe(e,t,n)}finally{cn=a,un.p=r,St.T=i}}$i=1,UB(),BB(),FB()}}function UB(){if($i===1){$i=0;var e=_c,t=Cf,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=St.T,St.T=null;var i=un.p;un.p=2;var r=cn;cn|=4;try{$B(t,e);var o=hz,a=rU(e.containerInfo),s=o.focusedElem,l=o.selectionRange;if(a!==s&&s&&s.ownerDocument&&iU(s.ownerDocument.documentElement,s)){if(l!==null&&Iz(s)){var c=l.start,u=l.end;if(u===void 0&&(u=c),"selectionStart"in s)s.selectionStart=c,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var h=f.getSelection(),p=s.textContent.length,g=Math.min(l.start,p),v=l.end===void 0?g:Math.min(l.end,p);!h.extend&&g>v&&(a=v,v=g,g=a);var m=_3(s,g),y=_3(s,v);if(m&&y&&(h.rangeCount!==1||h.anchorNode!==m.node||h.anchorOffset!==m.offset||h.focusNode!==y.node||h.focusOffset!==y.offset)){var b=d.createRange();b.setStart(m.node,m.offset),h.removeAllRanges(),g>v?(h.addRange(b),h.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),h.addRange(b))}}}}for(d=[],h=s;h=h.parentNode;)h.nodeType===1&&d.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<d.length;s++){var x=d[s];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}t1=!!dz,hz=dz=null}finally{cn=r,un.p=i,St.T=n}}e.current=t,$i=2}}function BB(){if($i===2){$i=0;var e=_c,t=Cf,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=St.T,St.T=null;var i=un.p;un.p=2;var r=cn;cn|=4;try{yB(e,t.alternate,t)}finally{cn=r,un.p=i,St.T=n}}$i=3}}function FB(){if($i===4||$i===3){$i=0,ore();var e=_c,t=Cf,n=nl,i=IB;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?$i=5:($i=0,Cf=_c=null,qB(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(xc=null),wz(n),t=t.stateNode,ho&&typeof ho.onCommitFiberRoot=="function")try{ho.onCommitFiberRoot(Xg,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=St.T,r=un.p,un.p=2,St.T=null;try{for(var o=e.onRecoverableError,a=0;a<i.length;a++){var s=i[a];o(s.value,{componentStack:s.stack})}}finally{St.T=t,un.p=r}}(nl&3)!==0&&v1(),Xa(e),r=e.pendingLanes,(n&261930)!==0&&(r&42)!==0?e===lz?Lg++:(Lg=0,lz=e):Lg=0,rv(0,!1)}}function qB(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,tv(t)))}function v1(){return UB(),BB(),FB(),VB()}function VB(){if($i!==5)return!1;var e=_c,t=az;az=0;var n=wz(nl),i=St.T,r=un.p;try{un.p=32>n?32:n,St.T=null,n=sz,sz=null;var o=_c,a=nl;if($i=0,Cf=_c=null,nl=0,(cn&6)!==0)throw Error(be(331));var s=cn;if(cn|=4,zB(o.current),kB(o,o.current,a,n),cn=s,rv(0,!1),ho&&typeof ho.onPostCommitFiberRoot=="function")try{ho.onPostCommitFiberRoot(Xg,o)}catch{}return!0}finally{un.p=r,St.T=i,qB(e,t)}}function ej(e,t,n){t=Do(n,t),t=tz(e.stateNode,t,2),e=bc(e,t,2),e!==null&&(Jg(e,2),Xa(e))}function _n(e,t,n){if(e.tag===3)ej(e,e,n);else for(;t!==null;){if(t.tag===3){ej(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(xc===null||!xc.has(i))){e=Do(n,e),n=oB(2),i=bc(t,n,2),i!==null&&(aB(n,i,t,e),Jg(i,2),Xa(i));break}}t=t.return}}function bC(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Ioe;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&&(r=new Set,i.set(t,r));r.has(n)||(oT=!0,r.add(n),e=Ooe.bind(null,e,t,n),t.then(e,e))}function Ooe(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,An===e&&(Jt&n)===n&&(ti===4||ti===3&&(Jt&62914560)===Jt&&300>uo()-p1?(cn&2)===0&&zf(e,0):aT|=n,Mf===Jt&&(Mf=0)),Xa(e)}function HB(e,t){t===0&&(t=Oj()),e=ed(e,t),e!==null&&(Jg(e,t),Xa(e))}function Noe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),HB(e,n)}function Poe(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(be(314))}i!==null&&i.delete(t),HB(e,n)}function joe(e,t){return Sz(e,t)}var W_=null,Qh=null,cz=!1,Y_=!1,xC=!1,mc=0;function Xa(e){e!==Qh&&e.next===null&&(Qh===null?W_=Qh=e:Qh=Qh.next=e),Y_=!0,cz||(cz=!0,Boe())}function rv(e,t){if(!xC&&Y_){xC=!0;do for(var n=!1,i=W_;i!==null;){if(!t)if(e!==0){var r=i.pendingLanes;if(r===0)var o=0;else{var a=i.suspendedLanes,s=i.pingedLanes;o=(1<<31-fo(42|e)+1)-1,o&=r&~(a&~s),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,tj(i,o))}else o=Jt,o=i1(i,i===An?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||Kg(i,o)||(n=!0,tj(i,o));i=i.next}while(n);xC=!1}}function Uoe(){ZB()}function ZB(){Y_=cz=!1;var e=0;mc!==0&&Yoe()&&(e=mc);for(var t=uo(),n=null,i=W_;i!==null;){var r=i.next,o=GB(i,t);o===0?(i.next=null,n===null?W_=r:n.next=r,r===null&&(Qh=n)):(n=i,(e!==0||(o&3)!==0)&&(Y_=!0)),i=r}$i!==0&&$i!==5||rv(e,!1),mc!==0&&(mc=0)}function GB(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var a=31-fo(o),s=1<<a,l=r[a];l===-1?((s&n)===0||(s&i)!==0)&&(r[a]=fre(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}if(t=An,n=Jt,n=i1(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(xn===2||xn===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&YM(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Kg(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&YM(i),wz(n)){case 2:case 8:n=Ej;break;case 32:n=I_;break;case 268435456:n=Dj;break;default:n=I_}return i=WB.bind(null,e),n=Sz(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&YM(i),e.callbackPriority=2,e.callbackNode=null,2}function WB(e,t){if($i!==0&&$i!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(v1()&&e.callbackNode!==n)return null;var i=Jt;return i=i1(e,e===An?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(LB(e,i,t),GB(e,uo()),e.callbackNode!=null&&e.callbackNode===n?WB.bind(null,e):null)}function tj(e,t){if(v1())return null;LB(e,t,!0)}function Boe(){Koe(function(){(cn&6)!==0?Sz(Lj,Uoe):ZB()})}function lT(){if(mc===0){var e=$f;e===0&&(e=Xx,Xx<<=1,(Xx&261888)===0&&(Xx=256)),mc=e}return mc}function nj(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:p_(""+e)}function ij(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Foe(e,t,n,i,r){if(t==="submit"&&n&&n.stateNode===r){var o=nj((r[Fr]||null).action),a=i.submitter;a&&(t=(t=a[Fr]||null)?nj(t.formAction):a.getAttribute("formAction"),t!==null&&(o=t,a=null));var s=new r1("action","action",null,i,r);e.push({event:s,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(mc!==0){var l=a?ij(r,a):new FormData(r);QC(n,{pending:!0,data:l,method:r.method,action:o},null,l)}}else typeof o=="function"&&(s.preventDefault(),l=a?ij(r,a):new FormData(r),QC(n,{pending:!0,data:l,method:r.method,action:o},o,l))},currentTarget:r}]})}}for(l_=0;l_<BC.length;l_++)c_=BC[l_],rj=c_.toLowerCase(),oj=c_[0].toUpperCase()+c_.slice(1),ba(rj,"on"+oj);var c_,rj,oj,l_;ba(aU,"onAnimationEnd");ba(sU,"onAnimationIteration");ba(lU,"onAnimationStart");ba("dblclick","onDoubleClick");ba("focusin","onFocus");ba("focusout","onBlur");ba(aoe,"onTransitionRun");ba(soe,"onTransitionStart");ba(loe,"onTransitionCancel");ba(cU,"onTransitionEnd");_f("onMouseEnter",["mouseout","mouseover"]);_f("onMouseLeave",["mouseout","mouseover"]);_f("onPointerEnter",["pointerout","pointerover"]);_f("onPointerLeave",["pointerout","pointerover"]);Ku("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ku("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ku("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ku("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ku("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ku("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vg="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),qoe=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vg));function YB(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var a=i.length-1;0<=a;a--){var s=i[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&r.isPropagationStopped())break e;o=s,r.currentTarget=c;try{o(r)}catch(u){L_(u)}r.currentTarget=null,o=l}else for(a=0;a<i.length;a++){if(s=i[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&r.isPropagationStopped())break e;o=s,r.currentTarget=c;try{o(r)}catch(u){L_(u)}r.currentTarget=null,o=l}}}}function Yt(e,t){var n=t[LC];n===void 0&&(n=t[LC]=new Set);var i=e+"__bubble";n.has(i)||(XB(t,e,2,!1),n.add(i))}function _C(e,t,n){var i=0;t&&(i|=4),XB(n,e,i,t)}var u_="_reactListening"+Math.random().toString(36).slice(2);function cT(e){if(!e[u_]){e[u_]=!0,Bj.forEach(function(n){n!=="selectionchange"&&(qoe.has(n)||_C(n,!1,e),_C(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[u_]||(t[u_]=!0,_C("selectionchange",!1,t))}}function XB(e,t,n,i){switch(cF(t)){case 2:var r=vae;break;case 8:r=yae;break;default:r=fT}n=r.bind(null,t,n,e),r=void 0,!PC||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),i?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function SC(e,t,n,i,r){var o=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var a=i.tag;if(a===3||a===4){var s=i.stateNode.containerInfo;if(s===r)break;if(a===4)for(a=i.return;a!==null;){var l=a.tag;if((l===3||l===4)&&a.stateNode.containerInfo===r)return;a=a.return}for(;s!==null;){if(a=nf(s),a===null)return;if(l=a.tag,l===5||l===6||l===26||l===27){i=o=a;continue e}s=s.parentNode}}i=i.return}Yj(function(){var c=o,u=Cz(n),d=[];e:{var f=uU.get(e);if(f!==void 0){var h=r1,p=e;switch(e){case"keypress":if(g_(n)===0)break e;case"keydown":case"keyup":h=Pre;break;case"focusin":p="focus",h=eC;break;case"focusout":p="blur",h=eC;break;case"beforeblur":case"afterblur":h=eC;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=h3;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Mre;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Bre;break;case aU:case sU:case lU:h=Tre;break;case cU:h=qre;break;case"scroll":case"scrollend":h=wre;break;case"wheel":h=Hre;break;case"copy":case"cut":case"paste":h=Ire;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=p3;break;case"toggle":case"beforetoggle":h=Gre}var g=(t&4)!==0,v=!g&&(e==="scroll"||e==="scrollend"),m=g?f!==null?f+"Capture":null:f;g=[];for(var y=c,b;y!==null;){var x=y;if(b=x.stateNode,x=x.tag,x!==5&&x!==26&&x!==27||b===null||m===null||(x=Og(y,m),x!=null&&g.push(Hg(y,x,b))),v)break;y=y.return}0<g.length&&(f=new h(f,p,null,n,u),d.push({event:f,listeners:g}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==NC&&(p=n.relatedTarget||n.fromElement)&&(nf(p)||p[If]))break e;if((h||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,h?(p=n.relatedTarget||n.toElement,h=c,p=p?nf(p):null,p!==null&&(v=Yg(p),g=p.tag,p!==v||g!==5&&g!==27&&g!==6)&&(p=null)):(h=null,p=c),h!==p)){if(g=h3,x="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(g=p3,x="onPointerLeave",m="onPointerEnter",y="pointer"),v=h==null?f:bg(h),b=p==null?f:bg(p),f=new g(x,y+"leave",h,n,u),f.target=v,f.relatedTarget=b,x=null,nf(u)===c&&(g=new g(m,y+"enter",p,n,u),g.target=b,g.relatedTarget=v,x=g),v=x,h&&p)t:{for(g=Voe,m=h,y=p,b=0,x=m;x;x=g(x))b++;x=0;for(var _=y;_;_=g(_))x++;for(;0<b-x;)m=g(m),b--;for(;0<x-b;)y=g(y),x--;for(;b--;){if(m===y||y!==null&&m===y.alternate){g=m;break t}m=g(m),y=g(y)}g=null}else g=null;h!==null&&aj(d,f,h,g,!1),p!==null&&v!==null&&aj(d,v,p,g,!0)}}e:{if(f=c?bg(c):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var S=y3;else if(v3(f))if(tU)S=ioe;else{S=toe;var $=eoe}else h=f.nodeName,!h||h.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?c&&Mz(c.elementType)&&(S=y3):S=noe;if(S&&(S=S(e,c))){eU(d,S,n,u);break e}$&&$(e,f,c),e==="focusout"&&c&&f.type==="number"&&c.memoizedProps.value!=null&&OC(f,"number",f.value)}switch($=c?bg(c):window,e){case"focusin":(v3($)||$.contentEditable==="true")&&(af=$,jC=c,wg=null);break;case"focusout":wg=jC=af=null;break;case"mousedown":UC=!0;break;case"contextmenu":case"mouseup":case"dragend":UC=!1,S3(d,n,u);break;case"selectionchange":if(ooe)break;case"keydown":case"keyup":S3(d,n,u)}var C;if(Az)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else of?Jj(e,n)&&(w="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(w="onCompositionStart");w&&(Kj&&n.locale!=="ko"&&(of||w!=="onCompositionStart"?w==="onCompositionEnd"&&of&&(C=Xj()):(hc=u,zz="value"in hc?hc.value:hc.textContent,of=!0)),$=X_(c,w),0<$.length&&(w=new f3(w,e,null,n,u),d.push({event:w,listeners:$}),C?w.data=C:(C=Qj(n),C!==null&&(w.data=C)))),(C=Yre?Xre(e,n):Kre(e,n))&&(w=X_(c,"onBeforeInput"),0<w.length&&($=new f3("onBeforeInput","beforeinput",null,n,u),d.push({event:$,listeners:w}),$.data=C)),Foe(d,e,c,n,u)}YB(d,t)})}function Hg(e,t,n){return{instance:e,listener:t,currentTarget:n}}function X_(e,t){for(var n=t+"Capture",i=[];e!==null;){var r=e,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=Og(e,n),r!=null&&i.unshift(Hg(e,r,o)),r=Og(e,t),r!=null&&i.push(Hg(e,r,o))),e.tag===3)return i;e=e.return}return[]}function Voe(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function aj(e,t,n,i,r){for(var o=t._reactName,a=[];n!==null&&n!==i;){var s=n,l=s.alternate,c=s.stateNode;if(s=s.tag,l!==null&&l===i)break;s!==5&&s!==26&&s!==27||c===null||(l=c,r?(c=Og(n,o),c!=null&&a.unshift(Hg(n,c,l))):r||(c=Og(n,o),c!=null&&a.push(Hg(n,c,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Hoe=/\r\n?/g,Zoe=/\u0000|\uFFFD/g;function sj(e){return(typeof e=="string"?e:""+e).replace(Hoe,`
`).replace(Zoe,"")}function KB(e,t){return t=sj(t),sj(e)===t}function kn(e,t,n,i,r,o){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Sf(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Sf(e,""+i);break;case"className":Qx(e,"class",i);break;case"tabIndex":Qx(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Qx(e,n,i);break;case"style":Wj(e,i,o);break;case"data":if(t!=="object"){Qx(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=p_(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"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 o=="function"&&(n==="formAction"?(t!=="input"&&kn(e,t,"name",r.name,r,null),kn(e,t,"formEncType",r.formEncType,r,null),kn(e,t,"formMethod",r.formMethod,r,null),kn(e,t,"formTarget",r.formTarget,r,null)):(kn(e,t,"encType",r.encType,r,null),kn(e,t,"method",r.method,r,null),kn(e,t,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=p_(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Js);break;case"onScroll":i!=null&&Yt("scroll",e);break;case"onScrollEnd":i!=null&&Yt("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(be(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(be(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=p_(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":Yt("beforetoggle",e),Yt("toggle",e),f_(e,"popover",i);break;case"xlinkActuate":Vs(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Vs(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Vs(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Vs(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Vs(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Vs(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Vs(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Vs(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Vs(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":f_(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Sre.get(n)||n,f_(e,n,i))}}function uz(e,t,n,i,r,o){switch(n){case"style":Wj(e,i,o);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(be(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(be(60));e.innerHTML=n}}break;case"children":typeof i=="string"?Sf(e,i):(typeof i=="number"||typeof i=="bigint")&&Sf(e,""+i);break;case"onScroll":i!=null&&Yt("scroll",e);break;case"onScrollEnd":i!=null&&Yt("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Js);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fj.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),o=e[Fr]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,r),typeof i=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,r);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):f_(e,n,i)}}}function Yi(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Yt("error",e),Yt("load",e);var i=!1,r=!1,o;for(o in n)if(n.hasOwnProperty(o)){var a=n[o];if(a!=null)switch(o){case"src":i=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(be(137,t));default:kn(e,t,o,a,n,null)}}r&&kn(e,t,"srcSet",n.srcSet,n,null),i&&kn(e,t,"src",n.src,n,null);return;case"input":Yt("invalid",e);var s=o=a=r=null,l=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var u=n[i];if(u!=null)switch(i){case"name":r=u;break;case"type":a=u;break;case"checked":l=u;break;case"defaultChecked":c=u;break;case"value":o=u;break;case"defaultValue":s=u;break;case"children":case"dangerouslySetInnerHTML":if(u!=null)throw Error(be(137,t));break;default:kn(e,t,i,u,n,null)}}Hj(e,o,s,l,c,a,r,!1);return;case"select":Yt("invalid",e),i=a=o=null;for(r in n)if(n.hasOwnProperty(r)&&(s=n[r],s!=null))switch(r){case"value":o=s;break;case"defaultValue":a=s;break;case"multiple":i=s;default:kn(e,t,r,s,n,null)}t=o,n=a,e.multiple=!!i,t!=null?pf(e,!!i,t,!1):n!=null&&pf(e,!!i,n,!0);return;case"textarea":Yt("invalid",e),o=r=i=null;for(a in n)if(n.hasOwnProperty(a)&&(s=n[a],s!=null))switch(a){case"value":i=s;break;case"defaultValue":r=s;break;case"children":o=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(be(91));break;default:kn(e,t,a,s,n,null)}Gj(e,i,r,o);return;case"option":for(l in n)if(n.hasOwnProperty(l)&&(i=n[l],i!=null))switch(l){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:kn(e,t,l,i,n,null)}return;case"dialog":Yt("beforetoggle",e),Yt("toggle",e),Yt("cancel",e),Yt("close",e);break;case"iframe":case"object":Yt("load",e);break;case"video":case"audio":for(i=0;i<Vg.length;i++)Yt(Vg[i],e);break;case"image":Yt("error",e),Yt("load",e);break;case"details":Yt("toggle",e);break;case"embed":case"source":case"link":Yt("error",e),Yt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(i=n[c],i!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(be(137,t));default:kn(e,t,c,i,n,null)}return;default:if(Mz(t)){for(u in n)n.hasOwnProperty(u)&&(i=n[u],i!==void 0&&uz(e,t,u,i,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(i=n[s],i!=null&&kn(e,t,s,i,n,null))}function Goe(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,a=null,s=null,l=null,c=null,u=null;for(h in n){var d=n[h];if(n.hasOwnProperty(h)&&d!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":l=d;default:i.hasOwnProperty(h)||kn(e,t,h,null,i,d)}}for(var f in i){var h=i[f];if(d=n[f],i.hasOwnProperty(f)&&(h!=null||d!=null))switch(f){case"type":o=h;break;case"name":r=h;break;case"checked":c=h;break;case"defaultChecked":u=h;break;case"value":a=h;break;case"defaultValue":s=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(be(137,t));break;default:h!==d&&kn(e,t,f,h,i,d)}}DC(e,a,s,l,c,u,o,r);return;case"select":h=a=s=f=null;for(o in n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case"value":break;case"multiple":h=l;default:i.hasOwnProperty(o)||kn(e,t,o,null,i,l)}for(r in i)if(o=i[r],l=n[r],i.hasOwnProperty(r)&&(o!=null||l!=null))switch(r){case"value":f=o;break;case"defaultValue":s=o;break;case"multiple":a=o;default:o!==l&&kn(e,t,r,o,i,l)}t=s,n=a,i=h,f!=null?pf(e,!!n,f,!1):!!i!=!!n&&(t!=null?pf(e,!!n,t,!0):pf(e,!!n,n?[]:"",!1));return;case"textarea":h=f=null;for(s in n)if(r=n[s],n.hasOwnProperty(s)&&r!=null&&!i.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:kn(e,t,s,null,i,r)}for(a in i)if(r=i[a],o=n[a],i.hasOwnProperty(a)&&(r!=null||o!=null))switch(a){case"value":f=r;break;case"defaultValue":h=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(be(91));break;default:r!==o&&kn(e,t,a,r,i,o)}Zj(e,f,h);return;case"option":for(var p in n)if(f=n[p],n.hasOwnProperty(p)&&f!=null&&!i.hasOwnProperty(p))switch(p){case"selected":e.selected=!1;break;default:kn(e,t,p,null,i,f)}for(l in i)if(f=i[l],h=n[l],i.hasOwnProperty(l)&&f!==h&&(f!=null||h!=null))switch(l){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:kn(e,t,l,f,i,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)f=n[g],n.hasOwnProperty(g)&&f!=null&&!i.hasOwnProperty(g)&&kn(e,t,g,null,i,f);for(c in i)if(f=i[c],h=n[c],i.hasOwnProperty(c)&&f!==h&&(f!=null||h!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(be(137,t));break;default:kn(e,t,c,f,i,h)}return;default:if(Mz(t)){for(var v in n)f=n[v],n.hasOwnProperty(v)&&f!==void 0&&!i.hasOwnProperty(v)&&uz(e,t,v,void 0,i,f);for(u in i)f=i[u],h=n[u],!i.hasOwnProperty(u)||f===h||f===void 0&&h===void 0||uz(e,t,u,f,i,h);return}}for(var m in n)f=n[m],n.hasOwnProperty(m)&&f!=null&&!i.hasOwnProperty(m)&&kn(e,t,m,null,i,f);for(d in i)f=i[d],h=n[d],!i.hasOwnProperty(d)||f===h||f==null&&h==null||kn(e,t,d,f,i,h)}function lj(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Woe(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var r=n[i],o=r.transferSize,a=r.initiatorType,s=r.duration;if(o&&s&&lj(a)){for(a=0,s=r.responseEnd,i+=1;i<n.length;i++){var l=n[i],c=l.startTime;if(c>s)break;var u=l.transferSize,d=l.initiatorType;u&&lj(d)&&(l=l.responseEnd,a+=u*(l<s?1:(s-c)/(l-c)))}if(--i,t+=8*(o+a)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var dz=null,hz=null;function K_(e){return e.nodeType===9?e:e.ownerDocument}function cj(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function JB(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function fz(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var $C=null;function Yoe(){var e=window.event;return e&&e.type==="popstate"?e===$C?!1:($C=e,!0):($C=null,!1)}var QB=typeof setTimeout=="function"?setTimeout:void 0,Xoe=typeof clearTimeout=="function"?clearTimeout:void 0,uj=typeof Promise=="function"?Promise:void 0,Koe=typeof queueMicrotask=="function"?queueMicrotask:typeof uj<"u"?function(e){return uj.resolve(null).then(e).catch(Joe)}:QB;function Joe(e){setTimeout(function(){throw e})}function Ac(e){return e==="head"}function dj(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(r),Af(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Eg(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Eg(n);for(var o=n.firstChild;o;){var a=o.nextSibling,s=o.nodeName;o[Qg]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=a}}else n==="body"&&Eg(e.ownerDocument.body);n=r}while(n);Af(t)}function hj(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function pz(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":pz(n),kz(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Qoe(e,t,n,i){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Qg])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Po(e.nextSibling),e===null)break}return null}function eae(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Po(e.nextSibling),e===null))return null;return e}function eF(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Po(e.nextSibling),e===null))return null;return e}function mz(e){return e.data==="$?"||e.data==="$~"}function gz(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function tae(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Po(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var vz=null;function fj(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Po(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function pj(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function tF(e,t,n){switch(t=K_(n),e){case"html":if(e=t.documentElement,!e)throw Error(be(452));return e;case"head":if(e=t.head,!e)throw Error(be(453));return e;case"body":if(e=t.body,!e)throw Error(be(454));return e;default:throw Error(be(451))}}function Eg(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);kz(e)}var jo=new Map,mj=new Set;function J_(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ll=un.d;un.d={f:nae,r:iae,D:rae,C:oae,L:aae,m:sae,X:cae,S:lae,M:uae};function nae(){var e=ll.f(),t=m1();return e||t}function iae(e){var t=Rf(e);t!==null&&t.tag===5&&t.type==="form"?WU(t):ll.r(e)}var Of=typeof document>"u"?null:document;function nF(e,t,n){var i=Of;if(i&&typeof t=="string"&&t){var r=Eo(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),mj.has(r)||(mj.add(r),e={rel:e,crossOrigin:n,href:t},i.querySelector(r)===null&&(t=i.createElement("link"),Yi(t,"link",e),Ai(t),i.head.appendChild(t)))}}function rae(e){ll.D(e),nF("dns-prefetch",e,null)}function oae(e,t){ll.C(e,t),nF("preconnect",e,t)}function aae(e,t,n){ll.L(e,t,n);var i=Of;if(i&&e&&t){var r='link[rel="preload"][as="'+Eo(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Eo(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Eo(n.imageSizes)+'"]')):r+='[href="'+Eo(e)+'"]';var o=r;switch(t){case"style":o=Tf(e);break;case"script":o=Nf(e)}jo.has(o)||(e=Nn({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),jo.set(o,e),i.querySelector(r)!==null||t==="style"&&i.querySelector(ov(o))||t==="script"&&i.querySelector(av(o))||(t=i.createElement("link"),Yi(t,"link",e),Ai(t),i.head.appendChild(t)))}}function sae(e,t){ll.m(e,t);var n=Of;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Eo(i)+'"][href="'+Eo(e)+'"]',o=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Nf(e)}if(!jo.has(o)&&(e=Nn({rel:"modulepreload",href:e},t),jo.set(o,e),n.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(av(o)))return}i=n.createElement("link"),Yi(i,"link",e),Ai(i),n.head.appendChild(i)}}}function lae(e,t,n){ll.S(e,t,n);var i=Of;if(i&&e){var r=ff(i).hoistableStyles,o=Tf(e);t=t||"default";var a=r.get(o);if(!a){var s={loading:0,preload:null};if(a=i.querySelector(ov(o)))s.loading=5;else{e=Nn({rel:"stylesheet",href:e,"data-precedence":t},n),(n=jo.get(o))&&uT(e,n);var l=a=i.createElement("link");Ai(l),Yi(l,"link",e),l._p=new Promise(function(c,u){l.onload=c,l.onerror=u}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,w_(a,t,i)}a={type:"stylesheet",instance:a,count:1,state:s},r.set(o,a)}}}function cae(e,t){ll.X(e,t);var n=Of;if(n&&e){var i=ff(n).hoistableScripts,r=Nf(e),o=i.get(r);o||(o=n.querySelector(av(r)),o||(e=Nn({src:e,async:!0},t),(t=jo.get(r))&&dT(e,t),o=n.createElement("script"),Ai(o),Yi(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(r,o))}}function uae(e,t){ll.M(e,t);var n=Of;if(n&&e){var i=ff(n).hoistableScripts,r=Nf(e),o=i.get(r);o||(o=n.querySelector(av(r)),o||(e=Nn({src:e,async:!0,type:"module"},t),(t=jo.get(r))&&dT(e,t),o=n.createElement("script"),Ai(o),Yi(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(r,o))}}function gj(e,t,n,i){var r=(r=gc.current)?J_(r):null;if(!r)throw Error(be(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Tf(n.href),n=ff(r).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Tf(n.href);var o=ff(r).hoistableStyles,a=o.get(e);if(a||(r=r.ownerDocument||r,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,a),(o=r.querySelector(ov(e)))&&!o._p&&(a.instance=o,a.state.loading=5),jo.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},jo.set(e,n),o||dae(r,e,n,a.state))),t&&i===null)throw Error(be(528,""));return a}if(t&&i!==null)throw Error(be(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Nf(n),n=ff(r).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(be(444,e))}}function Tf(e){return'href="'+Eo(e)+'"'}function ov(e){return'link[rel="stylesheet"]['+e+"]"}function iF(e){return Nn({},e,{"data-precedence":e.precedence,precedence:null})}function dae(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Yi(t,"link",n),Ai(t),e.head.appendChild(t))}function Nf(e){return'[src="'+Eo(e)+'"]'}function av(e){return"script[async]"+e}function vj(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Eo(n.href)+'"]');if(i)return t.instance=i,Ai(i),i;var r=Nn({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Ai(i),Yi(i,"style",r),w_(i,n.precedence,e),t.instance=i;case"stylesheet":r=Tf(n.href);var o=e.querySelector(ov(r));if(o)return t.state.loading|=4,t.instance=o,Ai(o),o;i=iF(n),(r=jo.get(r))&&uT(i,r),o=(e.ownerDocument||e).createElement("link"),Ai(o);var a=o;return a._p=new Promise(function(s,l){a.onload=s,a.onerror=l}),Yi(o,"link",i),t.state.loading|=4,w_(o,n.precedence,e),t.instance=o;case"script":return o=Nf(n.src),(r=e.querySelector(av(o)))?(t.instance=r,Ai(r),r):(i=n,(r=jo.get(o))&&(i=Nn({},n),dT(i,r)),e=e.ownerDocument||e,r=e.createElement("script"),Ai(r),Yi(r,"link",i),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(be(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,w_(i,n.precedence,e));return t.instance}function w_(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=i.length?i[i.length-1]:null,o=r,a=0;a<i.length;a++){var s=i[a];if(s.dataset.precedence===t)o=s;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function uT(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function dT(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var k_=null;function yj(e,t,n){if(k_===null){var i=new Map,r=k_=new Map;r.set(n,i)}else r=k_,i=r.get(n),i||(i=new Map,r.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var o=n[r];if(!(o[Qg]||o[Zi]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var a=o.getAttribute(t)||"";a=e+a;var s=i.get(a);s?s.push(o):i.set(a,[o])}}return i}function bj(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function hae(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function rF(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function fae(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=Tf(i.href),o=t.querySelector(ov(r));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Q_.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,Ai(o);return}o=t.ownerDocument||t,i=iF(i),(r=jo.get(r))&&uT(i,r),o=o.createElement("link"),Ai(o);var a=o;a._p=new Promise(function(s,l){a.onload=s,a.onerror=l}),Yi(o,"link",i),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Q_.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var wC=0;function pae(e,t){return e.stylesheets&&e.count===0&&M_(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&M_(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&wC===0&&(wC=62500*Woe());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&M_(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>wC?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(r)}}:null}function Q_(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)M_(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var e1=null;function M_(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,e1=new Map,t.forEach(mae,e),e1=null,Q_.call(e))}function mae(e,t){if(!(t.state.loading&4)){var n=e1.get(e);if(n)var i=n.get(null);else{n=new Map,e1.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var a=r[o];(a.nodeName==="LINK"||a.getAttribute("media")!=="not all")&&(n.set(a.dataset.precedence,a),i=a)}i&&n.set(null,i)}r=t.instance,a=r.getAttribute("data-precedence"),o=n.get(a)||i,o===i&&n.set(null,r),n.set(a,r),this.count++,i=Q_.bind(this),r.addEventListener("load",i),r.addEventListener("error",i),o?o.parentNode.insertBefore(r,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Zg={$$typeof:Ks,Provider:null,Consumer:null,_currentValue:Bu,_currentValue2:Bu,_threadCount:0};function gae(e,t,n,i,r,o,a,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=XM(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=XM(0),this.hiddenUpdates=XM(null),this.identifierPrefix=i,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function oF(e,t,n,i,r,o,a,s,l,c,u,d){return e=new gae(e,t,n,a,l,c,u,d,s),t=1,o===!0&&(t|=24),o=lo(3,null,null,t),e.current=o,o.stateNode=e,t=Nz(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:i,isDehydrated:n,cache:t},Uz(o),e}function aF(e){return e?(e=cf,e):cf}function sF(e,t,n,i,r,o){r=aF(r),i.context===null?i.context=r:i.pendingContext=r,i=yc(t),i.payload={element:n},o=o===void 0?null:o,o!==null&&(i.callback=o),n=bc(e,i,t),n!==null&&(Br(n,e,t),Mg(n,e,t))}function xj(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hT(e,t){xj(e,t),(e=e.alternate)&&xj(e,t)}function lF(e){if(e.tag===13||e.tag===31){var t=ed(e,67108864);t!==null&&Br(t,e,67108864),hT(e,67108864)}}function _j(e){if(e.tag===13||e.tag===31){var t=po();t=$z(t);var n=ed(e,t);n!==null&&Br(n,e,t),hT(e,t)}}var t1=!0;function vae(e,t,n,i){var r=St.T;St.T=null;var o=un.p;try{un.p=2,fT(e,t,n,i)}finally{un.p=o,St.T=r}}function yae(e,t,n,i){var r=St.T;St.T=null;var o=un.p;try{un.p=8,fT(e,t,n,i)}finally{un.p=o,St.T=r}}function fT(e,t,n,i){if(t1){var r=yz(i);if(r===null)SC(e,t,i,n1,n),Sj(e,i);else if(xae(r,e,t,n,i))i.stopPropagation();else if(Sj(e,i),t&4&&-1<bae.indexOf(e)){for(;r!==null;){var o=Rf(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var a=Pu(o.pendingLanes);if(a!==0){var s=o;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-fo(a);s.entanglements[1]|=l,a&=~l}Xa(o),(cn&6)===0&&(H_=uo()+500,rv(0,!1))}}break;case 31:case 13:s=ed(o,2),s!==null&&Br(s,o,2),m1(),hT(o,2)}if(o=yz(i),o===null&&SC(e,t,i,n1,n),o===r)break;r=o}r!==null&&i.stopPropagation()}else SC(e,t,i,null,n)}}function yz(e){return e=Cz(e),pT(e)}var n1=null;function pT(e){if(n1=null,e=nf(e),e!==null){var t=Yg(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=zj(t),e!==null)return e;e=null}else if(n===31){if(e=Tj(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return n1=e,null}function cF(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(are()){case Lj:return 2;case Ej:return 8;case I_:case sre:return 32;case Dj:return 268435456;default:return 32}default:return 32}}var bz=!1,Sc=null,$c=null,wc=null,Gg=new Map,Wg=new Map,uc=[],bae="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Sj(e,t){switch(e){case"focusin":case"focusout":Sc=null;break;case"dragenter":case"dragleave":$c=null;break;case"mouseover":case"mouseout":wc=null;break;case"pointerover":case"pointerout":Gg.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wg.delete(t.pointerId)}}function mg(e,t,n,i,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[r]},t!==null&&(t=Rf(t),t!==null&&lF(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function xae(e,t,n,i,r){switch(t){case"focusin":return Sc=mg(Sc,e,t,n,i,r),!0;case"dragenter":return $c=mg($c,e,t,n,i,r),!0;case"mouseover":return wc=mg(wc,e,t,n,i,r),!0;case"pointerover":var o=r.pointerId;return Gg.set(o,mg(Gg.get(o)||null,e,t,n,i,r)),!0;case"gotpointercapture":return o=r.pointerId,Wg.set(o,mg(Wg.get(o)||null,e,t,n,i,r)),!0}return!1}function uF(e){var t=nf(e.target);if(t!==null){var n=Yg(t);if(n!==null){if(t=n.tag,t===13){if(t=zj(n),t!==null){e.blockedOn=t,o3(e.priority,function(){_j(n)});return}}else if(t===31){if(t=Tj(n),t!==null){e.blockedOn=t,o3(e.priority,function(){_j(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function C_(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yz(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);NC=i,n.target.dispatchEvent(i),NC=null}else return t=Rf(n),t!==null&&lF(t),e.blockedOn=n,!1;t.shift()}return!0}function $j(e,t,n){C_(e)&&n.delete(t)}function _ae(){bz=!1,Sc!==null&&C_(Sc)&&(Sc=null),$c!==null&&C_($c)&&($c=null),wc!==null&&C_(wc)&&(wc=null),Gg.forEach($j),Wg.forEach($j)}function d_(e,t){e.blockedOn===t&&(e.blockedOn=null,bz||(bz=!0,wi.unstable_scheduleCallback(wi.unstable_NormalPriority,_ae)))}var h_=null;function wj(e){h_!==e&&(h_=e,wi.unstable_scheduleCallback(wi.unstable_NormalPriority,function(){h_===e&&(h_=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],r=e[t+2];if(typeof i!="function"){if(pT(i||n)===null)continue;break}var o=Rf(n);o!==null&&(e.splice(t,3),t-=3,QC(o,{pending:!0,data:r,method:n.method,action:i},i,r))}}))}function Af(e){function t(l){return d_(l,e)}Sc!==null&&d_(Sc,e),$c!==null&&d_($c,e),wc!==null&&d_(wc,e),Gg.forEach(t),Wg.forEach(t);for(var n=0;n<uc.length;n++){var i=uc[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<uc.length&&(n=uc[0],n.blockedOn===null);)uF(n),n.blockedOn===null&&uc.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var r=n[i],o=n[i+1],a=r[Fr]||null;if(typeof o=="function")a||wj(n);else if(a){var s=null;if(o&&o.hasAttribute("formAction")){if(r=o,a=o[Fr]||null)s=a.formAction;else if(pT(r)!==null)continue}else s=a.action;typeof s=="function"?n[i+1]=s:(n.splice(i,3),i-=3),wj(n)}}}function dF(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(a){return r=a})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function mT(e){this._internalRoot=e}y1.prototype.render=mT.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(be(409));var n=t.current,i=po();sF(n,i,e,t,null,null)};y1.prototype.unmount=mT.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sF(e.current,2,null,e,null,null),m1(),t[If]=null}};function y1(e){this._internalRoot=e}y1.prototype.unstable_scheduleHydration=function(e){if(e){var t=Uj();e={blockedOn:null,target:e,priority:t};for(var n=0;n<uc.length&&t!==0&&t<uc[n].priority;n++);uc.splice(n,0,e),n===0&&uF(e)}};var kj=Mj.version;if(kj!=="19.2.7")throw Error(be(527,kj,"19.2.7"));un.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(be(188)):(e=Object.keys(e).join(","),Error(be(268,e)));return e=Qie(t),e=e!==null?Aj(e):null,e=e===null?null:e.stateNode,e};var Sae={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:St,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(gg=__REACT_DEVTOOLS_GLOBAL_HOOK__,!gg.isDisabled&&gg.supportsFiber))try{Xg=gg.inject(Sae),ho=gg}catch{}var gg;b1.createRoot=function(e,t){if(!Cj(e))throw Error(be(299));var n=!1,i="",r=nB,o=iB,a=rB;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=oF(e,1,!1,null,null,n,i,null,r,o,a,dF),e[If]=t.current,cT(e),new mT(t)};b1.hydrateRoot=function(e,t,n){if(!Cj(e))throw Error(be(299));var i=!1,r="",o=nB,a=iB,s=rB,l=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(a=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(l=n.formState)),t=oF(e,1,!0,t,n??null,i,r,l,o,a,s,dF),t.context=aF(null),n=t.current,i=po(),i=$z(i),r=yc(i),r.callback=null,bc(n,r,i),n=i,t.current.lanes=n,Jg(t,n),Xa(t),e[If]=t.current,cT(e),new y1(t)};b1.version="19.2.7"});var mF=qa((HIe,pF)=>{"use strict";function fF(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fF)}catch(e){console.error(e)}}fF(),pF.exports=hF()});var UH=qa(fw=>{"use strict";var Ffe=Symbol.for("react.transitional.element"),qfe=Symbol.for("react.fragment");function jH(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:Ffe,type:e,key:i,ref:t!==void 0?t:null,props:n}}fw.Fragment=qfe;fw.jsx=jH;fw.jsxs=jH});var zr=qa((z5e,BH)=>{"use strict";BH.exports=UH()});var Ke=Ln(oo(),1),uie=Ln(mF(),1);var $ae=Object.create,x1=Object.defineProperty,wae=Object.getOwnPropertyDescriptor,kae=Object.getOwnPropertyNames,Mae=Object.getPrototypeOf,Cae=Object.prototype.hasOwnProperty,gF=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vF=(e,t)=>{let n={};for(var i in e)x1(n,i,{get:e[i],enumerable:!0});return t&&x1(n,Symbol.toStringTag,{value:"Module"}),n},zae=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=kae(t),o=0,a=r.length,s;o<a;o++)s=r[o],!Cae.call(e,s)&&s!==n&&x1(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(i=wae(t,s))||i.enumerable});return e},yF=(e,t,n)=>(n=e!=null?$ae(Mae(e)):{},zae(t||!e||!e.__esModule?x1(n,"default",{value:e,enumerable:!0}):n,e));var Tae=new Set(["https://json-schema.org/draft/2019-09/schema","http://json-schema.org/draft/2019-09/schema"]);function bF(e){return typeof e=="string"&&Tae.has(e.replace(/#$/,""))}var q={};Fs(q,{$brand:()=>zT,$input:()=>QI,$output:()=>JI,INVALID:()=>kr,NEVER:()=>gv,TimePrecision:()=>uR,ZodAny:()=>GL,ZodArray:()=>KL,ZodBase64:()=>v$,ZodBase64URL:()=>y$,ZodBigInt:()=>_p,ZodBigIntFormat:()=>_$,ZodBoolean:()=>xp,ZodCIDRv4:()=>m$,ZodCIDRv6:()=>g$,ZodCUID:()=>l$,ZodCUID2:()=>c$,ZodCatch:()=>gE,ZodCodec:()=>e0,ZodCompileAsyncError:()=>_a,ZodCompileUnsupportedError:()=>Ft,ZodCreditCard:()=>FL,ZodCustom:()=>t0,ZodCustomStringFormat:()=>yd,ZodDate:()=>Yv,ZodDefault:()=>uE,ZodDiscriminatedUnion:()=>QL,ZodE164:()=>b$,ZodEmail:()=>i$,ZodEmoji:()=>a$,ZodEnum:()=>gp,ZodError:()=>Hue,ZodExactOptional:()=>k$,ZodFile:()=>aE,ZodFirstPartyTypeKind:()=>TE,ZodFunction:()=>kE,ZodGUID:()=>o$,ZodIBAN:()=>qL,ZodIPv4:()=>f$,ZodIPv6:()=>p$,ZodISODate:()=>Uc,ZodISODateTime:()=>jc,ZodISODuration:()=>Fc,ZodISOTime:()=>Bc,ZodInstanceOf:()=>zE,ZodIntersection:()=>eE,ZodIssueCode:()=>AE,ZodJWT:()=>x$,ZodKSUID:()=>h$,ZodLazy:()=>$E,ZodLiteral:()=>oE,ZodMAC:()=>BL,ZodMap:()=>iE,ZodNaN:()=>yE,ZodNanoID:()=>s$,ZodNever:()=>YL,ZodNonOptional:()=>M$,ZodNull:()=>ZL,ZodNullable:()=>cE,ZodNumber:()=>bp,ZodNumberFormat:()=>bd,ZodObject:()=>Xv,ZodOptional:()=>Jv,ZodPipe:()=>Qv,ZodPrefault:()=>hE,ZodPreprocess:()=>bE,ZodPromise:()=>wE,ZodReadonly:()=>xE,ZodRealError:()=>Wr,ZodRecord:()=>mp,ZodSet:()=>rE,ZodString:()=>vp,ZodStringFormat:()=>Sn,ZodSuccess:()=>mE,ZodSymbol:()=>VL,ZodTemplateLiteral:()=>SE,ZodTransform:()=>sE,ZodTuple:()=>tE,ZodType:()=>Dt,ZodULID:()=>u$,ZodURL:()=>Wv,ZodUUID:()=>es,ZodUndefined:()=>HL,ZodUnion:()=>Kv,ZodUnknown:()=>WL,ZodVoid:()=>XL,ZodXID:()=>d$,ZodXor:()=>JL,_ZodString:()=>n$,_default:()=>dE,_function:()=>Zq,any:()=>S$,array:()=>re,base64:()=>lq,base64url:()=>cq,bigint:()=>$q,boolean:()=>Fe,catch:()=>vE,check:()=>Gq,cidrv4:()=>aq,cidrv6:()=>sq,clone:()=>mn,codec:()=>Fq,coerce:()=>r0,compile:()=>iR,config:()=>ni,core:()=>fl,creditCard:()=>dq,cuid:()=>J9,cuid2:()=>Q9,currencyCode:()=>vq,custom:()=>Wq,date:()=>Tq,decode:()=>EL,decodeAsync:()=>OL,deepPartial:()=>aV,describe:()=>Yq,discriminatedUnion:()=>qc,e164:()=>uq,email:()=>r$,emoji:()=>X9,encode:()=>LL,encodeAsync:()=>DL,endsWith:()=>rp,enum:()=>yt,exactOptional:()=>lE,file:()=>Pq,flattenError:()=>vv,float32:()=>bq,float64:()=>xq,formatError:()=>yv,fromJSONSchema:()=>rV,function:()=>Zq,getDiscriminatedOption:()=>MI,getErrorMap:()=>Yue,globalRegistry:()=>Ki,gt:()=>Ja,gte:()=>yo,guid:()=>V9,hash:()=>yq,hex:()=>gq,hostname:()=>mq,httpUrl:()=>Y9,iban:()=>hq,includes:()=>np,input:()=>lV,instanceof:()=>Kq,int:()=>e$,int32:()=>_q,int64:()=>wq,intersection:()=>$a,invertCodec:()=>qq,ipv4:()=>iq,ipv6:()=>oq,iso:()=>qo,json:()=>Qq,jwt:()=>fq,keyof:()=>Aq,ksuid:()=>nq,lazy:()=>Vc,length:()=>pd,literal:()=>ce,locales:()=>Pv,looseObject:()=>at,looseRecord:()=>Eq,lowercase:()=>ep,lt:()=>Ka,lte:()=>vo,mac:()=>rq,map:()=>Dq,maxLength:()=>fd,maxSize:()=>Dc,memoizer:()=>Ov,meta:()=>Xq,mime:()=>ap,minLength:()=>hl,minSize:()=>Qa,multipleOf:()=>Ec,nan:()=>Bq,nanoid:()=>K9,nativeEnum:()=>Nq,negative:()=>VS,never:()=>$$,nonnegative:()=>ZS,nonoptional:()=>pE,nonpositive:()=>HS,normalize:()=>sp,null:()=>ts,nullable:()=>Gv,nullish:()=>jq,number:()=>_e,object:()=>Y,optional:()=>We,output:()=>cV,overwrite:()=>Sa,parse:()=>AL,parseAsync:()=>IL,partialRecord:()=>Lq,pipe:()=>t$,positive:()=>qS,prefault:()=>fE,preprocess:()=>pl,prettifyError:()=>LT,promise:()=>Hq,properties:()=>op,property:()=>GS,readonly:()=>_E,record:()=>Ee,refine:()=>ME,regex:()=>Qf,regexes:()=>Fo,registry:()=>yS,safeDecode:()=>PL,safeDecodeAsync:()=>UL,safeEncode:()=>NL,safeEncodeAsync:()=>jL,safeParse:()=>Zv,safeParseAsync:()=>RL,set:()=>Oq,setErrorMap:()=>Wue,size:()=>hd,slugify:()=>dp,startsWith:()=>ip,strictObject:()=>Iq,string:()=>L,stringFormat:()=>pq,stringbool:()=>Jq,success:()=>Uq,superRefine:()=>CE,symbol:()=>Mq,templateLiteral:()=>Vq,toJSONSchema:()=>gd,toLowerCase:()=>cp,toUpperCase:()=>up,toZod:()=>sv,transform:()=>w$,treeifyError:()=>RT,trim:()=>lp,tuple:()=>nE,uint32:()=>Sq,uint64:()=>kq,ulid:()=>eq,undefined:()=>Cq,union:()=>Ue,unknown:()=>Je,uppercase:()=>tp,url:()=>yp,util:()=>fe,uuid:()=>H9,uuidv4:()=>Z9,uuidv6:()=>G9,uuidv7:()=>W9,validate:()=>bv,validateAsync:()=>xv,void:()=>zq,withParser:()=>bS,xid:()=>tq,xor:()=>Rq});var fl={};Fs(fl,{$ZodAny:()=>yI,$ZodArray:()=>$I,$ZodAsyncError:()=>Zr,$ZodBase64:()=>aI,$ZodBase64URL:()=>sI,$ZodBigInt:()=>rS,$ZodBigIntFormat:()=>pI,$ZodBoolean:()=>Av,$ZodCIDRv4:()=>rI,$ZodCIDRv6:()=>oI,$ZodCUID:()=>ZA,$ZodCUID2:()=>GA,$ZodCatch:()=>FI,$ZodCheck:()=>Cn,$ZodCheckBigIntFormat:()=>bA,$ZodCheckEndsWith:()=>IA,$ZodCheckGreaterThan:()=>F1,$ZodCheckIncludes:()=>TA,$ZodCheckLengthEquals:()=>kA,$ZodCheckLessThan:()=>B1,$ZodCheckLowerCase:()=>CA,$ZodCheckMaxLength:()=>$A,$ZodCheckMaxSize:()=>xA,$ZodCheckMimeType:()=>EA,$ZodCheckMinLength:()=>wA,$ZodCheckMinSize:()=>_A,$ZodCheckMultipleOf:()=>vA,$ZodCheckNumberFormat:()=>yA,$ZodCheckOverwrite:()=>DA,$ZodCheckProperties:()=>LA,$ZodCheckProperty:()=>RA,$ZodCheckRegex:()=>MA,$ZodCheckSizeEquals:()=>SA,$ZodCheckStartsWith:()=>AA,$ZodCheckStringFormat:()=>Wf,$ZodCheckUpperCase:()=>zA,$ZodCodec:()=>Rv,$ZodCreditCard:()=>cI,$ZodCustom:()=>YI,$ZodCustomStringFormat:()=>hI,$ZodCyclicError:()=>dS,$ZodDate:()=>SI,$ZodDefault:()=>PI,$ZodDiscriminatedUnion:()=>CI,$ZodE164:()=>lI,$ZodEmail:()=>UA,$ZodEmoji:()=>VA,$ZodEncodeError:()=>Lc,$ZodEnum:()=>RI,$ZodError:()=>IT,$ZodExactOptional:()=>OI,$ZodFile:()=>EI,$ZodFunction:()=>GI,$ZodGUID:()=>PA,$ZodIBAN:()=>uI,$ZodIPv4:()=>tI,$ZodIPv6:()=>nI,$ZodISODate:()=>JA,$ZodISODateTime:()=>KA,$ZodISODuration:()=>eI,$ZodISOTime:()=>QA,$ZodIntersection:()=>zI,$ZodJWT:()=>dI,$ZodKSUID:()=>XA,$ZodLazy:()=>Lv,$ZodLiteral:()=>LI,$ZodMAC:()=>iI,$ZodMap:()=>AI,$ZodNaN:()=>qI,$ZodNanoID:()=>HA,$ZodNever:()=>xI,$ZodNonOptional:()=>UI,$ZodNull:()=>vI,$ZodNullable:()=>NI,$ZodNumber:()=>iS,$ZodNumberFormat:()=>fI,$ZodObject:()=>e8,$ZodObjectJIT:()=>wI,$ZodOptional:()=>aS,$ZodPipe:()=>sS,$ZodPrefault:()=>jI,$ZodPreprocess:()=>VI,$ZodPromise:()=>WI,$ZodReadonly:()=>HI,$ZodRealError:()=>Gr,$ZodRecord:()=>TI,$ZodRegistry:()=>vS,$ZodSet:()=>II,$ZodString:()=>sd,$ZodStringFormat:()=>gn,$ZodSuccess:()=>BI,$ZodSymbol:()=>mI,$ZodTemplateLiteral:()=>ZI,$ZodTransform:()=>DI,$ZodTuple:()=>oS,$ZodType:()=>Ct,$ZodULID:()=>WA,$ZodURL:()=>qA,$ZodUUID:()=>jA,$ZodUndefined:()=>gI,$ZodUnion:()=>Iv,$ZodUnknown:()=>bI,$ZodVoid:()=>_I,$ZodXID:()=>YA,$ZodXor:()=>kI,$brand:()=>zT,$constructor:()=>ee,$input:()=>QI,$output:()=>JI,Doc:()=>ad,INVALID:()=>kr,JSONSchema:()=>B9,JSONSchemaGenerator:()=>KS,NEVER:()=>gv,TimePrecision:()=>uR,URL_BAD_FORMAT:()=>BA,URL_UNPARSEABLE:()=>kv,ZodCompileAsyncError:()=>_a,ZodCompileUnsupportedError:()=>Ft,_any:()=>CR,_array:()=>ER,_base64:()=>jS,_base64url:()=>US,_bigint:()=>xR,_boolean:()=>yR,_catch:()=>Lue,_check:()=>k9,_cidrv4:()=>NS,_cidrv6:()=>PS,_coercedBigint:()=>_R,_coercedBoolean:()=>bR,_coercedDate:()=>RR,_coercedNumber:()=>hR,_coercedString:()=>aR,_creditCard:()=>lR,_cuid:()=>AS,_cuid2:()=>IS,_custom:()=>OR,_date:()=>IR,_decode:()=>A1,_decodeAsync:()=>R1,_default:()=>Aue,_discriminatedUnion:()=>yue,_e164:()=>BS,_email:()=>SS,_emoji:()=>zS,_encode:()=>T1,_encodeAsync:()=>I1,_endsWith:()=>rp,_enum:()=>wue,_file:()=>DR,_float32:()=>pR,_float64:()=>mR,_gt:()=>Ja,_gte:()=>yo,_guid:()=>$S,_iban:()=>cR,_includes:()=>np,_int:()=>fR,_int32:()=>gR,_int64:()=>SR,_intersection:()=>bue,_ipv4:()=>DS,_ipv6:()=>OS,_isoDate:()=>Bv,_isoDateTime:()=>Uv,_isoDuration:()=>qv,_isoTime:()=>Fv,_jwt:()=>FS,_ksuid:()=>ES,_lazy:()=>Nue,_length:()=>pd,_literal:()=>Mue,_lowercase:()=>ep,_lt:()=>Ka,_lte:()=>vo,_mac:()=>sR,_map:()=>Sue,_max:()=>vo,_maxLength:()=>fd,_maxSize:()=>Dc,_mime:()=>ap,_min:()=>yo,_minLength:()=>hl,_minSize:()=>Qa,_multipleOf:()=>Ec,_nan:()=>LR,_nanoid:()=>TS,_nativeEnum:()=>kue,_negative:()=>VS,_never:()=>TR,_nonnegative:()=>ZS,_nonoptional:()=>Iue,_nonpositive:()=>HS,_normalize:()=>sp,_null:()=>MR,_nullable:()=>Tue,_number:()=>dR,_optional:()=>zue,_overwrite:()=>Sa,_parse:()=>Vf,_parseAsync:()=>Hf,_pipe:()=>Eue,_positive:()=>qS,_promise:()=>Pue,_properties:()=>op,_property:()=>GS,_readonly:()=>Due,_record:()=>_ue,_refine:()=>NR,_regex:()=>Qf,_safeDecode:()=>E1,_safeDecodeAsync:()=>O1,_safeEncode:()=>L1,_safeEncodeAsync:()=>D1,_safeParse:()=>Zf,_safeParseAsync:()=>Gf,_set:()=>$ue,_size:()=>hd,_slugify:()=>dp,_startsWith:()=>ip,_string:()=>oR,_stringFormat:()=>md,_stringbool:()=>BR,_success:()=>Rue,_superRefine:()=>PR,_symbol:()=>wR,_templateLiteral:()=>Oue,_toLowerCase:()=>cp,_toUpperCase:()=>up,_transform:()=>Cue,_trim:()=>lp,_tuple:()=>xue,_uint32:()=>vR,_uint64:()=>$R,_ulid:()=>RS,_undefined:()=>kR,_union:()=>gue,_unknown:()=>zR,_uppercase:()=>tp,_url:()=>jv,_uuid:()=>wS,_uuidv4:()=>kS,_uuidv6:()=>MS,_uuidv7:()=>CS,_void:()=>AR,_xid:()=>LS,_xor:()=>vue,base64Charset:()=>J1,base64urlCharset:()=>Tv,canParseURL:()=>FA,clone:()=>mn,compile:()=>iR,compileFn:()=>xS,config:()=>ni,createStandardJSONSchemaMethod:()=>hp,createToJSONSchemaMethod:()=>qR,decode:()=>xse,decodeAsync:()=>Sse,describe:()=>jR,encode:()=>bse,encodeAsync:()=>_se,extractDefs:()=>Nc,finalize:()=>Pc,flattenError:()=>vv,formatError:()=>yv,getDiscriminatedOption:()=>MI,globalConfig:()=>Ri,globalRegistry:()=>Ki,handleUnrepresentable:()=>ki,initializeContext:()=>Oc,isBackEdge:()=>fS,isRecursiveSchema:()=>hS,isValidBase64:()=>zv,isValidBase64URL:()=>Q1,isValidCIDRv6:()=>K1,isValidCreditCard:()=>eS,isValidIBAN:()=>tS,isValidIPv6:()=>Cv,isValidJWT:()=>nS,locales:()=>Pv,memoizer:()=>Ov,mergeValues:()=>Yf,meta:()=>UR,parse:()=>C1,parseAsync:()=>z1,parseURLObject:()=>KF,prettifyError:()=>LT,process:()=>vn,processSchema:()=>vn,regexes:()=>Fo,registry:()=>yS,safeDecode:()=>wse,safeDecodeAsync:()=>Mse,safeEncode:()=>$se,safeEncodeAsync:()=>kse,safeParse:()=>pse,safeParseAsync:()=>mse,standardProps:()=>G1,stripTabAndNewline:()=>Mv,toDotPath:()=>AF,toJSONSchema:()=>gd,toZod:()=>sv,treeifyError:()=>RT,urlHostnameOk:()=>Y1,urlProtocolOk:()=>X1,util:()=>fe,validate:()=>bv,validateAsync:()=>xv,validateURL:()=>W1,version:()=>OA,withParser:()=>bS});var fe={};Fs(fe,{BIGINT_FORMAT_RANGES:()=>hv,CONSTANT_CATCH:()=>k1,Class:()=>yT,NUMBER_FORMAT_RANGES:()=>dv,aborted:()=>wr,allowsEval:()=>_T,assert:()=>Eae,assertEqual:()=>Aae,assertIs:()=>Rae,assertNever:()=>Lae,assertNotEqual:()=>Iae,assignProp:()=>Xi,attachSchema:()=>w1,base64ToUint8Array:()=>wF,base64urlToUint8Array:()=>Qae,cached:()=>Bf,captureStackTrace:()=>S1,cleanEnum:()=>Jae,cleanRegex:()=>ul,clone:()=>mn,cloneDef:()=>Nae,codePointLength:()=>rd,constantCatch:()=>MT,createTransparentProxy:()=>qae,defineLazy:()=>bT,defineLazyInternal:()=>Ot,derived:()=>ise,esc:()=>$r,escapeRegex:()=>Bo,explicitlyAborted:()=>wT,extend:()=>Zae,finalizeIssue:()=>Hr,floatSafeRemainder:()=>lv,getElementAtPath:()=>Pae,getEnumValues:()=>jf,getLengthableOrigin:()=>pv,getParsedType:()=>Fae,getSizableOrigin:()=>fv,hexToUint8Array:()=>tse,hide:()=>mv,installLazyProp:()=>sse,isObject:()=>id,isPlainObject:()=>Uo,issue:()=>qf,joinValues:()=>ne,jsonStringifyReplacer:()=>Uf,members:()=>kT,merge:()=>Wae,mergeDefs:()=>xa,normalizeParams:()=>Me,nullish:()=>_1,numKeys:()=>Bae,objectClone:()=>Dae,omit:()=>Hae,optionalKeys:()=>$T,own:()=>Rc,parsedType:()=>me,partial:()=>Yae,pick:()=>Vae,prefixIssues:()=>Vr,primitiveTypes:()=>ST,promiseAllObject:()=>jae,propertyKeyTypes:()=>uv,randomString:()=>Uae,rawShape:()=>Ff,required:()=>Xae,safeExtend:()=>Gae,shallowClone:()=>cv,slugify:()=>xT,stringifyPrimitive:()=>pe,toZod:()=>sv,uint8ArrayToBase64:()=>kF,uint8ArrayToBase64url:()=>ese,uint8ArrayToHex:()=>nse,unwrapMessage:()=>Pf});function Aae(e){return e}function Iae(e){return e}function sv(){return e=>e}function Rae(e){}function Lae(e){throw new Error("Unexpected value in exhaustive check")}function Eae(e){}function jf(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}function ne(e,t="|"){return e.map(n=>pe(n)).join(t)}function Uf(e,t){return typeof t=="bigint"?t.toString():t}var vT=class{constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}};function Bf(e){return new vT(e)}function _1(e){return e==null}function ul(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function lv(e,t){let n=e/t,i=Math.round(n),r=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-i)<r?0:n-i}var xF=Symbol("evaluating");function bT(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==xF)return i===void 0&&(i=xF,i=n()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function Dae(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Xi(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ff(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function cl(e){return Ff(e._zod.def)??e._zod.def.shape}function _F(e,t,n){Object.defineProperty(e,t,{get(){let i=n();return Xi(this,t,i),i},enumerable:!0,configurable:!0})}function SF(e,t,n){t in e?Xi(e,t,n):e[t]=n}function nd(e,t,n,i){let r=cl(t);for(let o of n){let a=Object.getOwnPropertyDescriptor(r,o);a.enumerable&&(a.get?_F(e,o,()=>{let s=t._zod.def.shape[o];return i?i(s,o):s}):SF(e,o,i?i(a.value,o):a.value))}}function Oae(e,t){for(let n of Reflect.ownKeys(t)){let i=Object.getOwnPropertyDescriptor(t,n);i.enumerable&&(i.get?_F(e,n,()=>t[n]):SF(e,n,i.value))}}function xa(...e){let t={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function Nae(e){return xa(e._zod.def)}function Pae(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function jae(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let r={};for(let o=0;o<t.length;o++)r[t[o]]=i[o];return r})}function Uae(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function $r(e){return JSON.stringify(e)}function xT(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var S1="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function id(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var _T=Bf(()=>{if(Ri.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Uo(e){if(id(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(id(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function cv(e){return Uo(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Bae(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var Fae=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},uv=new Set(["string","number","symbol"]),ST=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Bo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function mn(e,t,n){let i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function Me(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function qae(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function pe(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function $T(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var dv={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},hv={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Vae(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o={};return nd(o,e,$1(e,t)),mn(e,xa(n,{shape:o,checks:[]}))}function $1(e,t){let n=cl(e),i=[];for(let r of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,r)?.enumerable)throw new Error(`Unrecognized key: "${String(r)}"`);t[r]&&i.push(r)}return i}function Hae(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=new Set($1(e,t)),a={};return nd(a,e,Reflect.ownKeys(cl(e)).filter(s=>!o.has(s))),mn(e,xa(n,{shape:a,checks:[]}))}function Zae(e,t){if(!Uo(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let r=cl(e);for(let o of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(r,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return mn(e,xa(e._zod.def,{shape:$F(e,t)}))}function $F(e,t){let n={};return nd(n,e,Reflect.ownKeys(cl(e))),Oae(n,t),n}function Gae(e,t){if(!Uo(t))throw new Error("Invalid input to safeExtend: expected a plain object");return mn(e,xa(e._zod.def,{shape:$F(e,t)}))}function Wae(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n={};nd(n,e,Reflect.ownKeys(cl(e))),nd(n,t,Reflect.ownKeys(cl(t)));let i=xa(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return mn(e,i)}function Yae(e,t,n,i="partial"){let o=t._zod.def.checks;if(o&&o.length>0)throw new Error(`.${i}() cannot be used on object schemas containing refinements`);let s=n?new Set($1(t,n)):void 0,l={};return nd(l,t,Reflect.ownKeys(cl(t)),e&&((c,u)=>s&&!s.has(u)?c:new e({type:"optional",innerType:c}))),mn(t,xa(t._zod.def,{shape:l,checks:[]}))}function Xae(e,t,n){let i=n?new Set($1(t,n)):void 0,r={};return nd(r,t,Reflect.ownKeys(cl(t)),(o,a)=>i&&!i.has(a)?o:new e({type:"nonoptional",innerType:o})),mn(t,xa(t._zod.def,{shape:r}))}function wr(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function wT(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Vr(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Pf(e){return typeof e=="string"?e:e?.message}function w1(e,t,n){var i;for(let r=t;r<e.length;r++)(i=e[r]).schema??(i.schema=n)}function Hr(e,t,n){var i;let r=e.inst?._zod?.traits;r?.has("$ZodType")&&(r.has("$ZodCheck")?(i=e).schema??(i.schema=e.inst):e.schema=e.inst);let o=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,a=e.message?e.message:Pf(e.inst?._zod.def?.error?.(e))??Pf(o?.(e))??Pf(t?.error?.(e))??Pf(n.customError?.(e))??Pf(n.localeError?.(e))??"Invalid input",s={};for(let l of Object.keys(e))l==="inst"||l==="schema"||l==="continue"||l==="input"||l==="__proto__"||(s[l]=e[l]);return s.path??(s.path=[]),s.message=a,t?.reportInput&&(s.input=e.input),s}function fv(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var Kae=/[\uD800-\uDBFF]/;function rd(e){let t=e.length;if(!Kae.test(e))return t;let n=t;for(let i=0;i<t-1;i++)(e.charCodeAt(i)&64512)===55296&&(e.charCodeAt(i+1)&64512)===56320&&(n--,i++);return n}function pv(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function me(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function qf(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function Jae(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function wF(e){let t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}function kF(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Qae(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return wF(t+n)}function ese(e){return kF(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function tse(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}function nse(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var yT=class{constructor(...t){}};function kT(e,t){for(let n in t){let i=Object.getOwnPropertyDescriptor(t,n);i.get?Object.defineProperty(e,n,{...i,enumerable:!1}):rse(e,n,i.value)}}function Rc(e,t,n,i=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:i,value:n}),n}function mv(e,t,n){return Rc(e,t,n,!1)}function ise(e,t){for(let n in e){let i=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return Rc(this,n,i(this))},set(r){Rc(this,n,r)}})}return t}function rse(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:Rc(this,t,n.bind(this))},set(i){Rc(this,t,i)}})}function ose(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var gT,Ic=!1,ase={configurable:!0,get(){Ic=!0}};function Ot(e,t,n){let i=Object.getPrototypeOf(e._zod);if(t in i&&gT!==e._zod){gT=void 0;return}gT=e._zod,Object.defineProperty(i,t,{configurable:!0,get(){Object.defineProperty(this,t,ase);let r=Ic;Ic=!1;try{let o=n(this);return Ic?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o}),Ic=Ic||r,o}catch(o){throw delete this[t],Ic=Ic||r,o}},set(r){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r})}})}function sse(e,t,n,i){let r=ose(e,t);r&&Object.defineProperty(r,t,{configurable:!0,get(){let o={configurable:!0,writable:!0,enumerable:i,value:void 0};return Object.defineProperty(this,t,o),o.value=n(this),Object.defineProperty(this,t,o),o.value},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:i,value:o})}})}var k1="~constantCatch";function MT(e){let t=()=>e;return t[k1]=!0,t}var MF,gv=Object.freeze({status:"aborted"}),CT={value:void 0,enumerable:!1},CF="captureStackTrace"in Error?Error:null;function lse(e){let t=CF;if(t){let n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return CF=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function ee(e,t,n,i){let r={};function o(f){this.def=f,this.constr=d,this.traits=new Set}o.prototype=r;let a=n,s=a&&new WeakSet;function l(f,h){if(f._zod){if(f._zod.traits.has(e))return}else{CT.value=new o(h);try{Object.defineProperty(f,"_zod",CT)}finally{CT.value=void 0}}if(f._zod.traits.add(e),t(f,h),s){let g=Object.getPrototypeOf(f),v=f._zod.constr.prototype,m=g;for(;m&&m!==v;)m=Object.getPrototypeOf(m);let y=m??g;s.has(y)||(s.add(y),kT(y,a))}let p=d.prototype;for(let g in p)Object.prototype.hasOwnProperty.call(p,g)&&(g in f||(f[g]=p[g].bind(f)))}let c=i?.Parent??Object;class u extends c{}Object.defineProperty(u,"name",{value:e});function d(f){let h=i?.Parent?lse(u):this;l(h,f);let p=h._zod.deferred;if(p){for(let v of p)v();h._zod.deferred=void 0}let g=globalThis.__zod_globalConfig?.postProcessor;return g&&g(h),h}return Object.defineProperty(d,"init",{value:l}),Object.defineProperty(d,Symbol.hasInstance,{value:f=>i?.Parent&&f instanceof i.Parent?!0:f?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var zT=Symbol("zod_brand"),Zr=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Lc=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(MF=globalThis).__zod_globalConfig??(MF.__zod_globalConfig={});var Ri=globalThis.__zod_globalConfig;function ni(e){return e&&Object.assign(Ri,e),Ri}function cse(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Uf,2)),e.message}function use(e){this._zod.message=e}var dse={get:cse,set:use,enumerable:!0,configurable:!0},AT={value:void 0,enumerable:!1},zF=new WeakSet([Object.prototype,Error.prototype]),TF=(e,t)=>{e.name="$ZodError",AT.value=t,Object.defineProperty(e,"issues",AT),AT.value=void 0,Object.defineProperty(e,"message",dse);let n=Object.getPrototypeOf(e);zF.has(n)||(zF.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let i=()=>this.message;return Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0})}}))},IT=ee("$ZodError",TF),Gr=ee("$ZodError",TF,void 0,{Parent:Error});function hse(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function vv(e,t=n=>n.message){let n={},i=[];for(let r of e.issues)r.path.length>0?hse(n,r.path[0],()=>[]).push(t(r)):i.push(t(r));return{formErrors:i,fieldErrors:n}}function yv(e,t=n=>n.message){let n={_errors:[]},i=(r,o=[])=>{for(let a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>i({issues:s},[...o,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...o,...a.path]);else{let s=[...o,...a.path];if(s.length===0)n._errors.push(t(a));else{let l=n,c=0;for(;c<s.length;){let u=s[c],d=c===s.length-1;if(u==="_errors"){d&&l._errors.push(t(a)),c++;continue}Object.prototype.hasOwnProperty.call(l,u)||Object.defineProperty(l,u,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let f=l[u];d&&f._errors.push(t(a)),l=f,c++}}}};return i(e),n}function RT(e,t=n=>n.message){let n={errors:[]},i=(r,o=[])=>{var a;for(let s of r.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(l=>i({issues:l},[...o,...s.path]));else if(s.code==="invalid_key")i({issues:s.issues},[...o,...s.path]);else if(s.code==="invalid_element")i({issues:s.issues},[...o,...s.path]);else{let l=[...o,...s.path];if(l.length===0){n.errors.push(t(s));continue}let c=n,u=0;for(;u<l.length;){let d=l[u],f=u===l.length-1;typeof d=="string"?(c.properties??(c.properties={}),Object.prototype.hasOwnProperty.call(c.properties,d)||Object.defineProperty(c.properties,d,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),c=c.properties[d]):(c.items??(c.items=[]),(a=c.items)[d]??(a[d]={errors:[]}),c=c.items[d]),f&&c.errors.push(t(s)),u++}}};return i(e),n}function AF(e){let t=[],n=e.map(i=>typeof i=="object"?i.key:i);for(let i of n)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function LT(e){let t=[],n=[...e.issues].sort((i,r)=>(i.path??[]).length-(r.path??[]).length);for(let i of n)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(`  \u2192 at ${AF(i.path)}`);return t.join(`
`)}function M1(e,t){return{callee:t?.callee??e,Err:t?.Err}}var Vf=e=>{let t=(n,i,r,o)=>{let a=r?{...r,async:!1}:{async:!1},s=n._zod.run({value:i,issues:[]},a);if(s instanceof Promise)throw new Zr;if(s.issues.length){let l=new(o?.Err??e)(s.issues.map(c=>Hr(c,a,ni())));throw S1(l,o?.callee??t),l}return s.value};return t},C1=Vf(Gr),Hf=e=>{let t=async(n,i,r,o)=>{let a=r?{...r,async:!0}:{async:!0},s=n._zod.run({value:i,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let l=new(o?.Err??e)(s.issues.map(c=>Hr(c,a,ni())));throw S1(l,o?.callee??t),l}return s.value};return t},z1=Hf(Gr),Zf=e=>(t,n,i)=>{let r=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new Zr;return o.issues.length?IF(e,o.issues,r):{success:!0,data:o.value}},pse=Zf(Gr);function IF(e,t,n){let i;return{success:!1,get error(){return i||(i=new e(t.map(r=>Hr(r,n,ni()))),t=void 0,n=void 0),i},set error(r){i=r,t=void 0,n=void 0}}}var Gf=e=>async(t,n,i)=>{let r=i?{...i,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?IF(e,o.issues,r):{success:!0,data:o.value}},mse=Gf(Gr),gse=Symbol.for("zod.compile.invalid"),vse=Symbol.for("zod.compile.fallback"),bv=((e,t,n)=>{let i=e._zod.bag.validator;if(i!==void 0){if(i(t)!==gse)return!0;if(i.definite===!0&&n===void 0)return!1}return yse(e,t,n)});function yse(e,t,n){let i=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},r=e._zod.bag.fallbackRun,o;if(r?(i[vse]=!0,o=r({value:t,issues:[]},i)):o=e._zod.run({value:t,issues:[]},i),o instanceof Promise)throw new Zr;return o.issues.length===0}var xv=async(e,t,n)=>{let i=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},r=e._zod.run({value:t,issues:[]},i);return r instanceof Promise&&(r=await r),r.issues.length===0},T1=e=>{let t=Vf(e),n=(i,r,o,a)=>{let s=o?{...o,direction:"backward"}:{direction:"backward"};return t(i,r,s,M1(n,a))};return n},bse=T1(Gr),A1=e=>{let t=Vf(e),n=(i,r,o,a)=>t(i,r,o,M1(n,a));return n},xse=A1(Gr),I1=e=>{let t=Hf(e),n=async(i,r,o,a)=>{let s=o?{...o,direction:"backward"}:{direction:"backward"};return await t(i,r,s,M1(n,a))};return n},_se=I1(Gr),R1=e=>{let t=Hf(e),n=async(i,r,o,a)=>await t(i,r,o,M1(n,a));return n},Sse=R1(Gr),L1=e=>(t,n,i)=>{let r=i?{...i,direction:"backward"}:{direction:"backward"};return Zf(e)(t,n,r)},$se=L1(Gr),E1=e=>(t,n,i)=>Zf(e)(t,n,i),wse=E1(Gr),D1=e=>async(t,n,i)=>{let r=i?{...i,direction:"backward"}:{direction:"backward"};return Gf(e)(t,n,r)},kse=D1(Gr),O1=e=>async(t,n,i)=>Gf(e)(t,n,i),Mse=O1(Gr);var Fo={};Fs(Fo,{anyString:()=>aA,base64:()=>KT,base64url:()=>JT,bigint:()=>lA,boolean:()=>cA,browserEmail:()=>Ese,cidrv4:()=>YT,cidrv6:()=>XT,creditCard:()=>N1,cuid:()=>DT,cuid2:()=>OT,currencyCode:()=>nA,date:()=>iA,datetime:()=>oA,domain:()=>eA,duration:()=>FT,e164:()=>tA,email:()=>VT,emoji:()=>HT,extendedDuration:()=>Cse,guid:()=>qT,hex:()=>pA,hostname:()=>QT,html5Email:()=>Ise,httpProtocol:()=>_v,iban:()=>P1,idnEmail:()=>Lse,integer:()=>Sv,ipv4:()=>ZT,ipv6:()=>GT,ksuid:()=>jT,lowercase:()=>hA,mac:()=>WT,md5_base64:()=>Pse,md5_base64url:()=>jse,md5_hex:()=>Nse,nanoid:()=>UT,nanoidOfLength:()=>BT,null:()=>uA,number:()=>dl,rfc5322Email:()=>Rse,sha1_base64:()=>Bse,sha1_base64url:()=>Fse,sha1_hex:()=>Use,sha256_base64:()=>Vse,sha256_base64url:()=>Hse,sha256_hex:()=>qse,sha384_base64:()=>Gse,sha384_base64url:()=>Wse,sha384_hex:()=>Zse,sha512_base64:()=>Xse,sha512_base64url:()=>Kse,sha512_hex:()=>Yse,string:()=>sA,time:()=>rA,ulid:()=>NT,undefined:()=>dA,unicodeEmail:()=>RF,uppercase:()=>fA,uuid:()=>od,uuid4:()=>zse,uuid6:()=>Tse,uuid7:()=>Ase,xid:()=>PT});var DT=/^[cC][0-9a-z]{6,}$/,OT=/^[0-9a-z]+$/,NT=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,PT=/^[0-9a-vA-V]{20}$/,jT=/^[A-Za-z0-9]{27}$/,UT=/^[a-zA-Z0-9_-]{21}$/;function BT(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var FT=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Cse=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,qT=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,od=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,zse=od(4),Tse=od(6),Ase=od(7),VT=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ise=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Rse=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,RF=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Lse=RF,Ese=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Dse="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function HT(){return new RegExp(Dse,"u")}var ZT=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,GT=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,WT=e=>{let t=Bo(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},YT=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,XT=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,KT=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,JT=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,QT=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,eA=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,_v=/^https?$/,tA=/^\+[1-9]\d{6,14}$/,N1=/^\d(?:[ -]?\d){11,18}$/,nA=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,P1=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,LF="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function Ose(e){return new RegExp(`^${e}$`)}var iA=Ose(LF);function ET(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function rA(e){return new RegExp(`^${ET(e)}$`)}function oA(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${ET({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,i=e.local?`${n}|${ET({precision:e.precision})}`:n;return new RegExp(`^${LF}T(?:${i})$`)}var aA=/^[\s\S]{0,}$/,sA=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},lA=/^-?\d+n?$/,Sv=/^-?\d+$/,dl=/^-?\d+(?:\.\d+)?$/,cA=/^(?:true|false)$/i,uA=/^null$/i;var dA=/^undefined$/i;var hA=/^[^A-Z]*$/,fA=/^[^a-z]*$/,pA=/^[0-9a-fA-F]*$/;function $v(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function wv(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Nse=/^[0-9a-fA-F]{32}$/,Pse=$v(22,"=="),jse=wv(22),Use=/^[0-9a-fA-F]{40}$/,Bse=$v(27,"="),Fse=wv(27),qse=/^[0-9a-fA-F]{64}$/,Vse=$v(43,"="),Hse=wv(43),Zse=/^[0-9a-fA-F]{96}$/,Gse=$v(64,""),Wse=wv(64),Yse=/^[0-9a-fA-F]{128}$/,Xse=$v(86,"=="),Kse=wv(86);var Cn=ee("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),mA=e=>{let t=e.value;return!_1(t)&&t.size!==void 0},gA=e=>{let t=e.value;return!_1(t)&&t.length!==void 0},j1={number:"number",bigint:"bigint",object:"date"},B1=ee("$ZodCheckLessThan",(e,t)=>{Cn.init(e,t);let n=j1[typeof t.value];e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:j1[typeof i.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),F1=ee("$ZodCheckGreaterThan",(e,t)=>{Cn.init(e,t);let n=j1[typeof t.value];e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:j1[typeof i.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),vA=ee("$ZodCheckMultipleOf",(e,t)=>{Cn.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):lv(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),yA=ee("$ZodCheckNumberFormat",(e,t)=>{Cn.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),i=n?"int":"number",[r,o]=dv[t.format];e._zod.check=a=>{let s=a.value;if(n){if(!Number.isInteger(s)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}s<r&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),bA=ee("$ZodCheckBigIntFormat",(e,t)=>{Cn.init(e,t);let[n,i]=hv[t.format];e._zod.check=r=>{let o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),xA=ee("$ZodCheckMaxSize",(e,t)=>{var n;Cn.init(e,t),(n=e._zod.def).when??(n.when=mA),e._zod.check=i=>{let r=i.value;r.size<=t.maximum||i.issues.push({origin:fv(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),_A=ee("$ZodCheckMinSize",(e,t)=>{var n;Cn.init(e,t),(n=e._zod.def).when??(n.when=mA),e._zod.check=i=>{let r=i.value;r.size>=t.minimum||i.issues.push({origin:fv(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),SA=ee("$ZodCheckSizeEquals",(e,t)=>{var n;Cn.init(e,t),(n=e._zod.def).when??(n.when=mA),e._zod.check=i=>{let r=i.value,o=r.size;if(o===t.size)return;let a=o>t.size;i.issues.push({origin:fv(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),$A=ee("$ZodCheckMaxLength",(e,t)=>{var n;Cn.init(e,t),(n=e._zod.def).when??(n.when=gA),e._zod.check=i=>{let r=i.value,o=r.length;if((typeof r=="string"&&o>t.maximum?rd(r):o)<=t.maximum)return;let s=pv(r);i.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),wA=ee("$ZodCheckMinLength",(e,t)=>{var n;Cn.init(e,t),(n=e._zod.def).when??(n.when=gA),e._zod.check=i=>{let r=i.value,o=r.length;if((typeof r=="string"&&o>=t.minimum&&o<t.minimum*2?rd(r):o)>=t.minimum)return;let s=pv(r);i.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),kA=ee("$ZodCheckLengthEquals",(e,t)=>{var n;Cn.init(e,t),(n=e._zod.def).when??(n.when=gA),e._zod.check=i=>{let r=i.value,o=r.length,a=typeof r=="string"&&o>=t.length&&o<=t.length*2?rd(r):o;if(a===t.length)return;let s=pv(r),l=a>t.length;i.issues.push({origin:s,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Wf=ee("$ZodCheckStringFormat",(e,t)=>{var n,i;Cn.init(e,t),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),MA=ee("$ZodCheckRegex",(e,t)=>{Wf.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),CA=ee("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=hA),Wf.init(e,t)}),zA=ee("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=fA),Wf.init(e,t)}),TA=ee("$ZodCheckIncludes",(e,t)=>{Cn.init(e,t);let n=Bo(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=i,e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),AA=ee("$ZodCheckStartsWith",(e,t)=>{Cn.init(e,t);let n=new RegExp(`^${Bo(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),IA=ee("$ZodCheckEndsWith",(e,t)=>{Cn.init(e,t);let n=new RegExp(`.*${Bo(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function U1(e,t,n){e.issues.length&&t.issues.push(...Vr(n,e.issues))}var RA=ee("$ZodCheckProperty",(e,t)=>{Cn.init(e,t),e._zod.check=n=>{let i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>U1(r,n,t.property));U1(i,n,t.property)}}),LA=ee("$ZodCheckProperties",(e,t)=>{Cn.init(e,t),mv(e,Symbol.iterator,function*(){yield e});let n;e._zod.check=i=>{if(i.value==null){i.issues.push({expected:"object",code:"invalid_type",input:i.value,inst:e});return}n??(n=Reflect.ownKeys(t.shape).map(a=>[a,t.shape[a]]));let r=i.value,o;for(let[a,s]of n){let l=s._zod.run({value:r[a],issues:[]},{});l instanceof Promise?(o??(o=[]),o.push(l.then(c=>U1(c,i,a)))):U1(l,i,a)}if(o)return Promise.all(o).then(()=>{})}}),EA=ee("$ZodCheckMimeType",(e,t)=>{Cn.init(e,t);let n=new Set(t.mime);e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),DA=ee("$ZodCheckOverwrite",(e,t)=>{Cn.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var ad=class{constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`
`).filter(a=>a),r=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let t=Function,n=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
${n.join(`
`)}
};`)(...Object.values(this.closed))}};var OA={major:4,minor:6,patch:5};var Ct=ee("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=OA;let i=e._zod.def.checks,r=e._zod.traits.has("$ZodCheck")?[e,...i??[]]:i?.length?[...i]:[];for(let o of r)for(let a of o._zod.onattach)a(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let o=(s,l,c)=>{if(s.memo)return s;let u=wr(s),d;for(let f of l){if(f._zod.def.when){if(wT(s)||!f._zod.def.when(s))continue}else if(u)continue;let h=s.issues.length,p=f._zod.check(s);if(p instanceof Promise&&c?.async===!1)throw new Zr;if(d||p instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await p,s.issues.length!==h&&(w1(s.issues,h,e),u||(u=wr(s,h)))});else{if(s.issues.length===h)continue;w1(s.issues,h,e),u||(u=wr(s,h))}}return d?d.then(()=>s):s},a=(s,l,c)=>{if(wr(s))return s.aborted=!0,s;let u=o(l,r,c);if(u instanceof Promise){if(c.async===!1)throw new Zr;return u.then(d=>e._zod.parse(d,c))}return e._zod.parse(u,c)};e._zod.run=(s,l)=>{if(l.skipChecks)return e._zod.parse(s,l);if(l.direction==="backward"){let u=e._zod.parse({value:s.value,issues:[]},{...l,skipChecks:!0});return u instanceof Promise?u.then(d=>a(d,s,l)):a(u,s,l)}let c=e._zod.parse(s,l);if(c instanceof Promise){if(l.async===!1)throw new Zr;return c.then(u=>o(u,r,l))}return o(c,r,l)}}},{get"~standard"(){return mv(this,"~standard",G1(this))},set"~standard"(e){Rc(this,"~standard",e)}}),XF=(e,t)=>e.issues.length?{issues:e.issues.map(n=>Hr(n,t,ni()))}:{value:e.value};async function Jse(e,t){let n={async:!0};return XF(await e._zod.run({value:t,issues:[]},n),n)}function G1(e){return{validate:t=>{let n={async:!1};try{let i=e._zod.run({value:t,issues:[]},n);if(!(i instanceof Promise))return XF(i,n)}catch{}return Jse(e,t)},vendor:"zod",version:1}}var sd=ee("$ZodString",(e,t)=>{Ct.init(e,t),e._zod.pattern=t.pattern??aA,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),gn=ee("$ZodStringFormat",(e,t)=>{Wf.init(e,t),sd.init(e,t)}),PA=ee("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=qT),gn.init(e,t)}),jA=ee("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=od(i))}else t.pattern??(t.pattern=od());gn.init(e,t)}),UA=ee("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=VT),gn.init(e,t)}),BA=1,kv=2;function FA(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function W1(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?FA(e)||kv:KF(e,t)}function KF(e,t){if(!t.normalize&&t.protocol?.source===_v.source&&!/^https?:\/\//i.test(e))return BA;try{if(typeof URL<"u"){let n=URL;if(typeof n.parse=="function")return n.parse(e)??kv}return new URL(e)}catch{return kv}}var Qse=/[\t\n\r]/g;function Mv(e){return e.replace(Qse,"")}function Y1(e,t){return t.lastIndex=0,t.test(e.hostname)}function X1(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var qA=ee("$ZodURL",(e,t)=>{gn.init(e,t),e._zod.check=n=>{try{let i=n.value.trim(),r=W1(i,t);if(r===BA){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(r===kv){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}if(r===!0){n.value=Mv(i);return}t.hostname&&!Y1(r,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!X1(r,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?r.href:Mv(i);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),VA=ee("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=HT()),gn.init(e,t)}),HA=ee("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?UT:BT(t.length)),gn.init(e,t)}),ZA=ee("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=DT),gn.init(e,t)}),GA=ee("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=OT),gn.init(e,t)}),WA=ee("$ZodULID",(e,t)=>{t.pattern??(t.pattern=NT),gn.init(e,t)}),YA=ee("$ZodXID",(e,t)=>{t.pattern??(t.pattern=PT),gn.init(e,t)}),XA=ee("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=jT),gn.init(e,t)}),KA=ee("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=oA(t)),gn.init(e,t)}),JA=ee("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=iA),gn.init(e,t)}),QA=ee("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=rA(t)),gn.init(e,t)}),eI=ee("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=FT),gn.init(e,t)}),tI=ee("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=ZT),gn.init(e,t)}),ele=/^[0-9a-fA-F:.]+$/;function Cv(e){return ele.test(e)?FA(`http://[${e}]`):!1}var nI=ee("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=GT),gn.init(e,t),e._zod.check=n=>{Cv(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),iI=ee("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=WT(t.delimiter)),gn.init(e,t)}),rI=ee("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=YT),gn.init(e,t)});function K1(e){let t=e.split("/");if(t.length!==2)return!1;let[n,i]=t;if(!i)return!1;let r=Number(i);return`${r}`!==i||r<0||r>128?!1:Cv(n)}var oI=ee("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=XT),gn.init(e,t),e._zod.check=n=>{K1(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function zv(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var J1=/^[0-9a-zA-Z+/]*={0,2}$/,aI=ee("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=J1),gn.init(e,t),e._zod.check=n=>{zv(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),Tv=/^[A-Za-z0-9_-]*$/;function Q1(e){if(!Tv.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return zv(n)}var sI=ee("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Tv),gn.init(e,t),e._zod.check=n=>{Q1(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),lI=ee("$ZodE164",(e,t)=>{t.pattern??(t.pattern=tA),gn.init(e,t)}),tle=/[- ]/g;function nle(e){let t=e.length,n=1,i=0;for(;t;){let r=e.charCodeAt(--t)-48;n^=1,i+=n?[0,2,4,6,8,1,3,5,7,9][r]:r}return i%10===0}function eS(e){return N1.test(e)?nle(e.replace(tle,"")):!1}var cI=ee("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=N1),gn.init(e,t),e._zod.check=n=>{eS(n.value)||n.issues.push({code:"invalid_format",format:"credit_card",input:n.value,inst:e,continue:!t.abort})}});function ile(e){let t=0,n=e.length;for(let i=4;i<n;i++){let r=e.charCodeAt(i);t=(r>=65?t*100+(r-55):t*10+(r-48))%97}for(let i=0;i<4;i++){let r=e.charCodeAt(i);t=(r>=65?t*100+(r-55):t*10+(r-48))%97}return t===1}function tS(e){return P1.test(e)?ile(e):!1}var uI=ee("$ZodIBAN",(e,t)=>{t.pattern??(t.pattern=P1),gn.init(e,t),e._zod.check=n=>{tS(n.value)||n.issues.push({code:"invalid_format",format:"iban",input:n.value,inst:e,continue:!t.abort})}});function nS(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[i]=n;if(!i)return!1;let r=JSON.parse(atob(i));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}var dI=ee("$ZodJWT",(e,t)=>{gn.init(e,t),e._zod.check=n=>{nS(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),hI=ee("$ZodCustomStringFormat",(e,t)=>{gn.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),iS=ee("$ZodNumber",(e,t)=>{Ct.init(e,t),e._zod.pattern=dl,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;let o=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:String(r):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),n}}),fI=ee("$ZodNumberFormat",(e,t)=>{yA.init(e,t),iS.init(e,t)}),Av=ee("$ZodBoolean",(e,t)=>{Ct.init(e,t),e._zod.pattern=cA,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}let r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),rS=ee("$ZodBigInt",(e,t)=>{Ct.init(e,t),e._zod.pattern=lA,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),pI=ee("$ZodBigIntFormat",(e,t)=>{bA.init(e,t),rS.init(e,t)}),mI=ee("$ZodSymbol",(e,t)=>{Ct.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),gI=ee("$ZodUndefined",(e,t)=>{Ct.init(e,t),e._zod.pattern=dA,e._zod.values=new Set([void 0]),e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),vI=ee("$ZodNull",(e,t)=>{Ct.init(e,t),e._zod.pattern=uA,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{let r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),yI=ee("$ZodAny",(e,t)=>{Ct.init(e,t),e._zod.parse=n=>n}),bI=ee("$ZodUnknown",(e,t)=>{Ct.init(e,t),e._zod.parse=n=>n}),xI=ee("$ZodNever",(e,t)=>{Ct.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),_I=ee("$ZodVoid",(e,t)=>{Ct.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),SI=ee("$ZodDate",(e,t)=>{Ct.init(e,t),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let r=n.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),n}});function DF(e,t,n){e.issues.length&&t.issues.push(...Vr(n,e.issues)),t.value[n]=e.value}var $I=ee("$ZodArray",(e,t)=>{Ct.init(e,t);let n=Ri.memoizer;n?.attach(e),e._zod.parse=(i,r)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),i;i.value=n?n.alloc(e,i,Array(o.length),r):Array(o.length);let a=[],s=r?.abortEarly;for(let l=0;l<o.length;l++){let c=o[l],u=t.element._zod.run({value:c,issues:[]},r);if(u instanceof Promise)a.push(u.then(d=>DF(d,i,l)));else if(DF(u,i,l),s&&u.issues.length!==0&&wr(u))break}return a.length?Promise.all(a).then(()=>i):i}});function Z1(e,t,n,i,r,o){let a=n in i,s=o==="optional";if(!(!a&&s&&r==="optional")){if(e.issues.length){if(r!==void 0&&s&&!a)return;t.issues.push(...Vr(n,e.issues))}if(!a&&r===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?(a||r==="defaulted"&&!s)&&(t.value[n]=void 0):t.value[n]=e.value}}var rle=[];function JF(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),i=n.length?n:rle,r=i.length?[...t,...i]:t;for(let a of r)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(a)}": expected a Zod schema`);let o=$T(e.shape);return{...e,allKeys:r,symbolKeys:i,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}function QF(e,t,n,i,r,o,a){let s=[],l=r.keySet,c=r.catchall._zod,u=c.def.type,d=c.optin,f=c.optout,h=0;for(let p in t){if(a&&n.issues.length!==h){if(wr(n,h))break;h=n.issues.length}if(l.has(p))continue;if(p==="__proto__"){u==="never"&&s.push(p);continue}if(u==="never"){s.push(p);continue}let g=c.run({value:t[p],issues:[]},i);g instanceof Promise?e.push(g.then(v=>Z1(v,n,p,t,d,f))):Z1(g,n,p,t,d,f)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:o,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var e8=ee("$ZodObject",(e,t)=>{Ct.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape"),i=n?.get?n.get.raw:t.shape??{};if(i){let c=()=>{let u={...i};return Object.defineProperty(t,"shape",{value:u}),c.raw=u,u};c.raw=i,Object.defineProperty(t,"shape",{get:c})}let r=Bf(()=>JF(t));Ot(e,"propValues",c=>{let u=c.def.shape,d={};for(let f in u){let h=u[f]._zod;if(h.values){Object.prototype.hasOwnProperty.call(d,f)||Xi(d,f,new Set);for(let p of h.values)d[f].add(p);h.optin!==void 0&&d[f].add(void 0)}}return d});let o=id,a=t.catchall,s,l=Ri.memoizer;l?.attach(e),e._zod.parse=(c,u)=>{s??(s=r.value);let d=c.value;if(!o(d))return c.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),c;c.value=l?l.alloc(e,c,{},u):{};let f=[],h=s.shape,p=u?.abortEarly,g=c.issues.length;for(let v of s.allKeys){if(p&&c.issues.length!==g){if(wr(c,g))break;g=c.issues.length}if(v==="__proto__")continue;let m=h[v],y=m._zod.optin,b=m._zod.optout,x=m._zod.run({value:d[v],issues:[]},u);x instanceof Promise?f.push(x.then(_=>Z1(_,c,v,d,y,b))):Z1(x,c,v,d,y,b)}return a?QF(f,d,c,u,r.value,e,p===!0):f.length?Promise.all(f).then(()=>c):c}}),wI=ee("$ZodObjectJIT",(e,t)=>{e8.init(e,t);let n=e._zod.parse,i=Bf(()=>JF(t)),r=Ri.memoizer,o=h=>{let p=i.value,g=p.symbolKeys,v=new ad(["payload","ctx"],{shape:h,inst:e,memo:r,syms:g}),m=_=>`shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`,y=(_,S)=>`
          let ${_}_ab = false;
          for (let i = 0; i < ${_}.issues.length; i++) {
            const iss = ${_}.issues[i];
            iss.path = iss.path ? [${S}, ...iss.path] : [${S}];
            payload.issues.push(iss);
            if (iss.continue !== true) ${_}_ab = true;
          }
          if (${_}_ab && ctx && ctx.abortEarly) {
            payload.value = newResult;
            return payload;
          }`;v.write("const input = payload.value;");let b=Object.create(null),x=0;for(let _ of p.allKeys)b[_]=`key_${x++}`;v.write(r?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let _ of p.allKeys){if(_==="__proto__")continue;let S=b[_],$=typeof _=="symbol"?`syms[${g.indexOf(_)}]`:$r(_),C=`${$} in input`,w=h[_],z=w?._zod?.optin,A=z!==void 0,M=w?._zod?.optout==="optional";if(v.write(`const ${S} = ${m($)};`),A&&M){let T=z==="optional"?`${S}_present`:`${S}.value !== undefined || ${S}_present`;v.write(`
        const ${S}_present = ${C};
        if (!${S}.issues.length || ${S}_present) {
          if (${S}.issues.length) {${y(S,$)}
          }

          if (${T}) {
            newResult[${$}] = ${S}.value;
          }
        }

      `)}else A?(v.write(`
        if (${S}.issues.length) {${y(S,$)}
        }
      `),z==="defaulted"?v.write(`newResult[${$}] = ${S}.value;`):v.write(`
        if (${S}.value !== undefined || ${C}) {
          newResult[${$}] = ${S}.value;
        }
      `)):v.write(`
        const ${S}_present = ${C};
        if (${S}.issues.length) {${y(S,$)}
        }
        if (!${S}_present && !${S}.issues.length) {
          payload.issues.push({
            code: "invalid_type",
            expected: "nonoptional",
            input: undefined,
            path: [${$}]
          });
          if (ctx && ctx.abortEarly) {
            payload.value = newResult;
            return payload;
          }
        }

        if (${S}_present) {
          newResult[${$}] = ${S}.value;
        }

      `)}return v.write("payload.value = newResult;"),v.write("return payload;"),v.compile()},a,s=id,l=!Ri.jitless,u=l&&_T.value,d=t.catchall,f;e._zod.parse=(h,p)=>{f??(f=i.value);let g=h.value;return s(g)?l&&u&&p?.async===!1&&p.jitless!==!0?(a||(a=o(t.shape)),h=a(h,p),d?QF([],g,h,p,f,e,p?.abortEarly===!0):h):n(h,p):(h.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),h)}});function OF(e,t,n,i){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let r=e.filter(o=>!wr(o));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>Hr(a,i,ni())))}),t)}var Iv=ee("$ZodUnion",(e,t)=>{Ct.init(e,t),Ot(e,"optin",i=>i.def.options.some(r=>r._zod.optin==="defaulted")?"defaulted":i.def.options.some(r=>r._zod.optin!==void 0)?"optional":void 0),Ot(e,"optout",i=>i.def.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Ot(e,"values",i=>{if(i.def.options.every(r=>r._zod.values))return new Set(i.def.options.flatMap(r=>Array.from(r._zod.values)))}),Ot(e,"pattern",i=>{if(i.def.options.every(r=>r._zod.pattern)){let r=i.def.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>ul(o.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,r)=>{if(n)return n(i,r);let o=!1,a=[];for(let s of t.options){let l=s._zod.run({value:i.value,issues:[]},r);if(l instanceof Promise)a.push(l),o=!0;else{if(l.issues.length===0)return l;a.push(l)}}return o?Promise.all(a).then(s=>OF(s,i,e,r)):OF(a,i,e,r)}});function NF(e,t,n,i){let r=[];for(let o=0;o<e.length;o++)e[o].issues.length===0&&r.push(o);return r.length===1?(t.value=e[r[0]].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>Hr(a,i,ni())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1,matches:r}),t)}var kI=ee("$ZodXor",(e,t)=>{Iv.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,r)=>{if(n)return n(i,r);let o=!1,a=[];for(let s of t.options){let l=s._zod.run({value:i.value,issues:[]},r);l instanceof Promise?(a.push(l),o=!0):a.push(l)}return o?Promise.all(a).then(s=>NF(s,i,e,r)):NF(a,i,e,r)}});function MI(e,t){let n=e._zod,i=n.bag.optionsMap;i||(i=t8(n.def),n.bag.optionsMap=i);let r=i.get(t);if(r===null)throw new Error(`Ambiguous discriminator value "${String(t)}"`);return r}function t8(e){let t=new Map;for(let n of e.options){let i=n._zod.propValues?.[e.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let r of i)if(t.has(r)){if(r!==void 0)throw new Error(`Duplicate discriminator value "${String(r)}"`);t.set(r,null)}else t.set(r,n)}return t}var CI=ee("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Iv.init(e,t);let n=e._zod.parse;Ot(e,"propValues",r=>{let o={},a=0;for(let s of r.def.options){let l=s._zod.propValues;if(!l||Object.keys(l).length===0)throw new Error(`Invalid discriminated union option at index "${r.def.options.indexOf(s)}"`);l[r.def.discriminator]?.has(void 0)&&a++;for(let[c,u]of Object.entries(l)){Object.prototype.hasOwnProperty.call(o,c)||Xi(o,c,new Set);for(let d of u)o[c].add(d)}}return!r.def.unionFallback&&a>1&&o[r.def.discriminator]?.delete(void 0),o}),t.options.forEach((r,o)=>{let a=Ff(r._zod.def);if(a&&!Object.prototype.hasOwnProperty.call(a,t.discriminator))throw new Error(`Invalid discriminated union option at index "${o}"`)});let i=Bf(()=>t8(t));e._zod.parse=(r,o)=>{let a=r.value;if(!id(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let s=a?.[t.discriminator],l=i.value.get(s);return l&&(s!==void 0||o.direction!=="backward")?l._zod.run(r,o):t.unionFallback||o.direction==="backward"?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(i.value.keys()).filter(c=>i.value.get(c)!==null),input:a,path:[t.discriminator],inst:e}),r)}}),zI=ee("$ZodIntersection",(e,t)=>{Ct.init(e,t),e._zod.parse=(n,i)=>{let r=n.value,o=t.left._zod.run({value:r,issues:[]},i),a=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([l,c])=>PF(n,l,c)):PF(n,o,a)}});function Yf(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Uo(e)&&Uo(t)){let n=Object.keys(t),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),r={...e,...t};Object.prototype.hasOwnProperty.call(r,"__proto__")&&delete r.__proto__;for(let o of i){if(o==="__proto__")continue;let a=Yf(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r[o]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<e.length;i++){let r=e[i],o=t[i],a=Yf(r,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function PF(e,t,n){let i=new Map,r,o=new Map,a=(c,u)=>{let d;if(c.code==="unrecognized_keys"&&!c.path?.length)r??(r=c),d=c.keys;else if(c.code==="invalid_key"&&c.origin==="record"&&c.path?.length===1){let f=String(c.path[0]);o.has(f)||o.set(f,c),d=[f]}else return!1;for(let f of d)i.has(f)||i.set(f,{}),i.get(f)[u]=!0;return!0};for(let c of t.issues)a(c,"l")||e.issues.push(c);for(let c of n.issues)a(c,"r")||e.issues.push(c);let s=[...i].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(s.length){let c=r?s.filter(u=>r.keys.includes(u)):[];c.length&&e.issues.push({...r,keys:c});for(let u of s)!c.includes(u)&&o.has(u)&&e.issues.push(o.get(u))}let l=Yf(t.value,n.value);if(!l.valid){if(wr(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`)}return e.value=l.data,e}var oS=ee("$ZodTuple",(e,t)=>{Ct.init(e,t);let n=t.items,i=Ri.memoizer;i?.attach(e),e._zod.parse=(r,o)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=i?i.alloc(e,r,[],o):[];let s=[],l=jF(n,"optin"),c=jF(n,"optout");if(!t.rest){if(a.length<l)return r.issues.push({code:"too_small",minimum:l,inclusive:!0,input:a,inst:e,origin:"array"}),r;a.length>n.length&&r.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:a,inst:e,origin:"array"})}let u=new Array(n.length),d=t.rest?o?.abortEarly:void 0,f=!1;for(let h=0;h<n.length;h++){let p=n[h]._zod.run({value:a[h],issues:[]},o);p instanceof Promise?s.push(p.then(g=>{u[h]=g})):(u[h]=p,d&&!f&&p.issues.length&&(f=wr(p)))}if(t.rest&&!f){let h=n.length-1,p=a.slice(n.length),g=r.issues.length;for(let v of p){if(d&&r.issues.length!==g){if(wr(r,g))break;g=r.issues.length}h++;let m=t.rest._zod.run({value:v,issues:[]},o);m instanceof Promise?s.push(m.then(y=>UF(y,r,h))):UF(m,r,h)}}return s.length?Promise.all(s).then(()=>BF(u,r,n,a,c)):BF(u,r,n,a,c)}});function jF(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function UF(e,t,n){e.issues.length&&t.issues.push(...Vr(n,e.issues)),t.value[n]=e.value}function BF(e,t,n,i,r){for(let o=0;o<n.length;o++){let a=e[o],s=o<i.length;if(!s&&o>=r&&n[o]._zod.optin==="optional"){t.value.length=o;break}if(a.issues.length){if(!s&&o>=r){t.value.length=o;break}t.issues.push(...Vr(o,a.issues))}t.value[o]=a.value}for(let o=t.value.length-1;o>=i.length&&(n[o]._zod.optout==="optional"&&t.value[o]===void 0);o--)t.value.length=o;return t}var TI=ee("$ZodRecord",(e,t)=>{Ct.init(e,t);let n=Ri.memoizer;n?.attach(e),e._zod.parse=(i,r)=>{let o=i.value;if(!Uo(o))return i.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),i;let a=[],s=t.keyType._zod.values;if(s&&!t.partial){i.value=n?n.alloc(e,i,{},r):{};let l=new Set;for(let u of s)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){if(l.add(typeof u=="number"?u.toString():u),u==="__proto__")continue;let d=t.keyType._zod.run({value:u,issues:[]},r);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(p=>Hr(p,r,ni())),input:u,path:[u],inst:e});continue}let f=d.value;if(f==="__proto__")continue;let h=t.valueType._zod.run({value:o[u],issues:[]},r);h instanceof Promise?a.push(h.then(p=>{p.issues.length&&i.issues.push(...Vr(u,p.issues)),i.value[f]=p.value})):(h.issues.length&&i.issues.push(...Vr(u,h.issues)),i.value[f]=h.value)}let c;for(let u in o)if(!l.has(u))if(t.mode==="loose"){if(u==="__proto__")continue;i.value[u]=o[u]}else c=c??[],c.push(u);c&&c.length>0&&i.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:c,continue:!0})}else{i.value=n?n.alloc(e,i,{},r):{};let l;for(let c of Reflect.ownKeys(o)){if(c==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,c))continue;let u=t.keyType._zod.run({value:c,issues:[]},r);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&dl.test(c)&&u.issues.length){let p=t.keyType._zod.run({value:Number(c),issues:[]},r);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(u=p)}if(u.issues.length){t.mode==="loose"?i.value[c]=o[c]:s?(l=l??[],l.push(c)):i.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(p=>Hr(p,r,ni())),input:c,path:[c],inst:e});continue}let f=u.value;if(f==="__proto__")continue;let h=t.valueType._zod.run({value:o[c],issues:[]},r);h instanceof Promise?a.push(h.then(p=>{p.issues.length&&i.issues.push(...Vr(c,p.issues)),i.value[f]=p.value})):(h.issues.length&&i.issues.push(...Vr(c,h.issues)),i.value[f]=h.value)}l&&l.length>0&&i.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:l,continue:!0})}return a.length?Promise.all(a).then(()=>i):i}}),AI=ee("$ZodMap",(e,t)=>{Ct.init(e,t);let n=Ri.memoizer;n?.attach(e),e._zod.parse=(i,r)=>{let o=i.value;if(!(o instanceof Map))return i.issues.push({expected:"map",code:"invalid_type",input:o,inst:e}),i;let a=[];i.value=n?n.alloc(e,i,new Map,r):new Map;let s=r?.abortEarly,l=i.issues.length;for(let[c,u]of o){if(s&&i.issues.length!==l){if(wr(i,l))break;l=i.issues.length}let d=t.keyType._zod.run({value:c,issues:[]},r),f=t.valueType._zod.run({value:u,issues:[]},r);d instanceof Promise||f instanceof Promise?a.push(Promise.all([d,f]).then(([h,p])=>{FF(h,p,i,c,o,e,r)})):FF(d,f,i,c,o,e,r)}return a.length?Promise.all(a).then(()=>i):i}});function FF(e,t,n,i,r,o,a){e.issues.length&&(uv.has(typeof i)?n.issues.push(...Vr(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:e.issues.map(s=>Hr(s,a,ni()))})),t.issues.length&&(uv.has(typeof i)?n.issues.push(...Vr(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:t.issues.map(s=>Hr(s,a,ni()))})),n.value.set(e.value,t.value)}var II=ee("$ZodSet",(e,t)=>{Ct.init(e,t);let n=Ri.memoizer;n?.attach(e),e._zod.parse=(i,r)=>{let o=i.value;if(!(o instanceof Set))return i.issues.push({input:o,inst:e,expected:"set",code:"invalid_type"}),i;let a=[];i.value=n?n.alloc(e,i,new Set,r):new Set;let s=r?.abortEarly,l=i.issues.length;for(let c of o){if(s&&i.issues.length!==l){if(wr(i,l))break;l=i.issues.length}let u=t.valueType._zod.run({value:c,issues:[]},r);u instanceof Promise?a.push(u.then(d=>qF(d,i))):qF(u,i)}return a.length?Promise.all(a).then(()=>i):i}});function qF(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var RI=ee("$ZodEnum",(e,t)=>{Ct.init(e,t);let n=jf(t.entries),i=new Set(n);e._zod.values=i,Ot(e,"pattern",r=>{let o=jf(r.def.entries).filter(a=>uv.has(typeof a));return new RegExp(o.length?`^(${o.map(a=>Bo(a.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(r,o)=>{let a=r.value;return i.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),LI=ee("$ZodLiteral",(e,t)=>{Ct.init(e,t);let n=new Set(t.values);e._zod.values=n,Ot(e,"pattern",i=>{let r=i.def.values;return new RegExp(r.length?`^(${r.map(o=>typeof o=="string"?Bo(o):o?Bo(o.toString()):String(o)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(i,r)=>{let o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i}}),EI=ee("$ZodFile",(e,t)=>{Ct.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),DI=ee("$ZodTransform",(e,t)=>{Ct.init(e,t),e._zod.optin="optional",Ri.memoizer?.guard(e),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Lc(e.constructor.name);let r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new Zr;return n.value=r,n}});function VF(e,t){return e.value=t.issues.length?void 0:t.value,e}var aS=ee("$ZodOptional",(e,t)=>{Ct.init(e,t),Ot(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",Ot(e,"values",n=>{let i=n.def.innerType._zod.values;return i?new Set([...i,void 0]):void 0}),Ot(e,"pattern",n=>{let i=n.def.innerType._zod.pattern;return i?new RegExp(`^(${ul(i.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;let r=t.innerType._zod.run({value:n.value,issues:[]},i);return r instanceof Promise?r.then(o=>VF(n,o)):VF(n,r)}return t.innerType._zod.run(n,i)}}),OI=ee("$ZodExactOptional",(e,t)=>{aS.init(e,t),Ot(e,"values",n=>n.def.innerType._zod.values),Ot(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,i)=>t.innerType._zod.run(n,i)}),NI=ee("$ZodNullable",(e,t)=>{Ct.init(e,t),Ot(e,"optin",n=>n.def.innerType._zod.optin),Ot(e,"optout",n=>n.def.innerType._zod.optout),Ot(e,"pattern",n=>{let i=n.def.innerType._zod.pattern;return i?new RegExp(`^(${ul(i.source)}|null)$`):void 0}),Ot(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),PI=ee("$ZodDefault",(e,t)=>{Ct.init(e,t),e._zod.optin="defaulted",Ot(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>HF(o,t)):HF(r,t)}});function HF(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var jI=ee("$ZodPrefault",(e,t)=>{Ct.init(e,t),e._zod.optin="defaulted",Ot(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),UI=ee("$ZodNonOptional",(e,t)=>{Ct.init(e,t),Ot(e,"values",n=>{let i=n.def.innerType._zod.values;return i?new Set([...i].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>ZF(o,e)):ZF(r,e)}});function ZF(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var BI=ee("$ZodSuccess",(e,t)=>{Ct.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Lc("ZodSuccess");let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.issues.length===0,n)):(n.value=r.issues.length===0,n)}});function GF(e,t,n,i){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(r=>Hr(r,i,ni()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var FI=ee("$ZodCatch",(e,t)=>{Ct.init(e,t),Ot(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),Ot(e,"optout",n=>n.def.innerType._zod.optout),Ot(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run({value:n.value,issues:[]},i);return r instanceof Promise?r.then(o=>GF(n,o,t,i)):GF(n,r,t,i)}}),qI=ee("$ZodNaN",(e,t)=>{Ct.init(e,t),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),sS=ee("$ZodPipe",(e,t)=>{Ct.init(e,t),Ot(e,"values",n=>n.def.in._zod.values),Ot(e,"optin",n=>n.def.in._zod.optin),Ot(e,"optout",n=>n.def.out._zod.optout),Ot(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>q1(a,t.in,i)):q1(o,t.in,i)}let r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=>q1(o,t.out,i)):q1(r,t.out,i)}});function q1(e,t,n){return e.issues.some(i=>i.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Rv=ee("$ZodCodec",(e,t)=>{Ct.init(e,t),Ot(e,"values",n=>n.def.in._zod.values),Ot(e,"optin",n=>n.def.in._zod.optin),Ot(e,"optout",n=>n.def.out._zod.optout),Ot(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,i)=>{if((i.direction||"forward")==="forward"){let o=t.in._zod.run(n,i);return o instanceof Promise?o.then(a=>V1(a,t,i)):V1(o,t,i)}else{let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>V1(a,t,i)):V1(o,t,i)}}});function V1(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(o=>H1(e,o,t.out,n)):H1(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(o=>H1(e,o,t.in,n)):H1(e,r,t.in,n)}}function H1(e,t,n,i){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},i)}var VI=ee("$ZodPreprocess",(e,t)=>{sS.init(e,t)}),HI=ee("$ZodReadonly",(e,t)=>{Ct.init(e,t),Ot(e,"propValues",n=>n.def.innerType._zod.propValues),Ot(e,"values",n=>n.def.innerType._zod.values),Ot(e,"optin",n=>n.def.innerType?._zod?.optin),Ot(e,"optout",n=>n.def.innerType?._zod?.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(WF):WF(r)}});function WF(e){return e.memo||(e.value=Object.freeze(e.value)),e}function ole(e){let t=e._zod.def,n=t.pattern,i=!!t.format?.includes("int"),r,o;for(let s of t.checks??[]){let l=s._zod.def;l.pattern&&(n=l.pattern),i||(i=!!l.format?.includes("int"));let c=l.minimum??l.length,u=l.maximum??l.length;c!==void 0&&(r===void 0||c>r)&&(r=c),u!==void 0&&(o===void 0||u<o)&&(o=u)}if(n)return n.source;if(r!==void 0&&o!==void 0&&r>o)return"(?!)";if(r!==void 0||o!==void 0)return sA({minimum:r,maximum:o}).source;let a=e._zod.pattern;return(i&&a===dl?Sv:a)?.source}function NA(e){let t=e._zod.def,n=e._zod.pattern?.source,i=t.innerType??e._zod.innerType;if(i){let r=i._zod.pattern?.source,o=NA(i);return n&&r&&o&&o!==r?n.replace(ul(r),()=>ul(o)):n}if(t.options){let r=t.options.map(NA);if(r.every(Boolean))return`^(${r.map(o=>ul(o)).join("|")})$`}return ole(e)}var ZI=ee("$ZodTemplateLiteral",(e,t)=>{Ct.init(e,t);let n=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){let r=NA(i);if(!r)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);n.push(ul(r))}else if(i===null||ST.has(typeof i))n.push(Bo(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(i,r)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),GI=ee("$ZodFunction",(e,t)=>(Ct.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return Object.defineProperty(function(...i){let r=e._def.input?C1(e._def.input,i):i,o=Reflect.apply(n,this,r);return e._def.output?C1(e._def.output,o):o},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...i){let r=e._def.input?await z1(e._def.input,i):i,o=await Reflect.apply(n,this,r);return e._def.output?await z1(e._def.output,o):o},"_zod",{value:e._zod,enumerable:!1})},e._zod.parse=(n,i)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let i=e.constructor;return Array.isArray(n[0])?new i({type:"function",input:new oS({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new i({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:n})},e)),WI=ee("$ZodPromise",(e,t)=>{Ct.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i))}),Lv=ee("$ZodLazy",(e,t)=>{Ct.init(e,t),bT(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),Ot(e,"pattern",n=>n.innerType?._zod?.pattern),Ot(e,"propValues",n=>n.innerType?._zod?.propValues),Ot(e,"optin",n=>n.innerType?._zod?.optin??void 0),Ot(e,"optout",n=>n.innerType?._zod?.optout??void 0),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),YI=ee("$ZodCustom",(e,t)=>{Cn.init(e,t),Ct.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(o=>YF(o,n,i,e));YF(r,n,i,e)}});function YF(e,t,n,i){if(!e){let r={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(r.params=i._zod.def.params),t.issues.push(qf(r))}}var dS=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},KI="~memo",i8=[];function r8(e){return e!==null&&typeof e=="object"}function XI(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var o8=new WeakMap,Xf=0,uS=1,Ev=2;function Dv(e,t,n){let i=o8.get(e);if(i!==void 0)return i?Ev:Xf;if(t.has(e))return Ev;t.add(e);let r=Xf,o=u=>{if(r!==Ev&&u?._zod){let d=Dv(u,t,n);d>r&&(r=d)}},a=(u,d)=>{let f=Xf;for(let h of Reflect.ownKeys(u)){let p=Object.getOwnPropertyDescriptor(u,h);if(d&&!p.enumerable)continue;let g=p.get?uS:p.value?._zod?Dv(p.value,t,n):Xf;g>f&&(f=g)}return f},s=u=>{u>r&&(r=u)},l=e._zod.def,c=l.type;switch(c){case"object":{let u=Ff(l);s(u?a(u,!0):uS),o(l.catchall);break}case"array":o(l.element);break;case"tuple":for(let u of l.items)o(u);o(l.rest);break;case"record":case"map":o(l.keyType),o(l.valueType);break;case"set":o(l.valueType);break;case"union":for(let u of l.options)o(u);break;case"intersection":o(l.left),o(l.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":o(l.innerType);break;case"pipe":o(l.in),o(l.out);break;case"function":o(l.input),o(l.output);break;case"lazy":{let u=l._cachedInner??(n?e._zod.innerType:void 0);s(u?Dv(u,t,!1):uS);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let u in l){let d=Object.getOwnPropertyDescriptor(l,u);if(!d||d.get)continue;let f=d.value;if(!(!f||typeof f!="object")){if(f._zod)o(f);else if(Array.isArray(f))for(let h of f)o(h)}}}return t.delete(e),ale(e,r)}function ale(e,t){return t!==uS&&o8.set(e,t===Ev),t}function hS(e){return Dv(e,new Set,!0)!==Xf}function sle(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var lS,cS=[],lle={alloc(e,t,n){let i=lS;if(!i)return n;lS=void 0;let r={value:n,issues:null};return i.set(t.value,r),cS.push(r),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let n=e._zod.parse,i=(r,o)=>{if(o.direction!=="backward"&&fS(o,r.value))throw new dS;return n(r,o)};e._zod.parse=i,e._zod.run===n&&(e._zod.run=i)})},attach(e){var t;let n,i=!1,r,o;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let a=e._zod.parse,s=(l,c)=>{if(n===void 0){let m=Dv(e,new Set,!1);if(m===Xf)return e._zod.parse=a,e._zod.run===s&&(e._zod.run=a),a(l,c);m===Ev||i?n=!0:i=!0}let u=l.value;if(!r8(u))return a(l,c);let d=c[KI];d||(d={buckets:new WeakMap,backEdges:void 0},c[KI]=d);let f;r===c?f=o:(f=sle(d,e),r=c,o=f);let h=f.get(u);if(h)return l.value=h.value,h.issues?h.issues.length&&l.issues.push(...XI(h.issues)):(l.memo=!0,d.backEdges??(d.backEdges=new WeakSet),d.backEdges.add(h.value)),l;lS=f;let p=cS.length,g=a(l,c);lS=void 0;let v=cS.length>p?cS.pop():void 0;return g instanceof Promise?g.then(m=>(v&&(v.issues=m.issues.length?XI(m.issues):i8),m)):(v&&(v.issues=g.issues.length?XI(g.issues):i8),g)};e._zod.parse=s,e._zod.run===a&&(e._zod.run=s)})}};function Ov(){return lle}function fS(e,t){let n=e[KI]?.backEdges;return n!==void 0&&r8(t)&&n.has(t)}var Pv={};Fs(Pv,{ar:()=>a8,az:()=>s8,be:()=>c8,bg:()=>u8,bn:()=>d8,ca:()=>h8,ckb:()=>f8,cs:()=>p8,da:()=>m8,de:()=>g8,el:()=>v8,en:()=>pS,eo:()=>y8,es:()=>b8,fa:()=>x8,fi:()=>_8,fr:()=>S8,frCA:()=>$8,gu:()=>w8,he:()=>k8,hi:()=>M8,hr:()=>C8,hu:()=>z8,hy:()=>A8,id:()=>I8,is:()=>R8,it:()=>L8,ja:()=>E8,ka:()=>D8,kh:()=>O8,km:()=>mS,kn:()=>N8,ko:()=>P8,lt:()=>U8,mk:()=>B8,ms:()=>F8,ne:()=>q8,nl:()=>V8,nn:()=>H8,no:()=>Z8,ota:()=>G8,pl:()=>Y8,ps:()=>W8,pt:()=>X8,ptBR:()=>K8,ro:()=>J8,ru:()=>e9,sk:()=>t9,sl:()=>n9,sv:()=>i9,ta:()=>r9,tg:()=>o9,th:()=>a9,tk:()=>s9,tr:()=>l9,ua:()=>c9,uk:()=>gS,ur:()=>u9,uz:()=>d9,vi:()=>h9,yo:()=>m9,zhCN:()=>f9,zhTW:()=>p9});var cle=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},map:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(r){return e[r]??null}let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",mac:"\u0639\u0646\u0648\u0627\u0646 MAC",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",credit_card:"\u0631\u0642\u0645 \u0628\u0637\u0627\u0642\u0629 \u0627\u0644\u0627\u0626\u062A\u0645\u0627\u0646",currency_code:"\u0631\u0645\u0632 \u0627\u0644\u0639\u0645\u0644\u0629",iban:"IBAN",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return r.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${pe(r.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${r.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${n[o.format]??r.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${ne(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function a8(){return{localeError:cle()}}var ule=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"},map:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"kredit kart\u0131 n\xF6mr\u0259si",currency_code:"valyuta kodu",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${s}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${pe(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[o.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function s8(){return{localeError:ule()}}function l8(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var dle=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},map:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(r){return e[r]??null}let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",mac:"MAC \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",credit_card:"\u043D\u0443\u043C\u0430\u0440 \u043A\u0440\u044D\u0434\u044B\u0442\u043D\u0430\u0439 \u043A\u0430\u0440\u0442\u044B",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",iban:"IBAN",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return r.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${pe(r.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),l=l8(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),l=l8(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${ne(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function c8(){return{localeError:dle()}}var hle=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},map:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(r){return e[r]??null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",mac:"MAC \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0430",currency_code:"\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${pe(r.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;if(o.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${o.prefix}"`;if(o.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${o.suffix}"`;if(o.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${o.includes}"`;if(o.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${o.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${r.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u043E\u0432\u0435":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function u8(){return{localeError:hle()}}var fle=()=>{let e={string:{unit:"\u0985\u0995\u09CD\u09B7\u09B0",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},file:{unit:"\u09AC\u09BE\u0987\u099F",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},array:{unit:"\u0986\u0987\u099F\u09C7\u09AE",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},set:{unit:"\u0986\u0987\u099F\u09C7\u09AE",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},map:{unit:"\u098F\u09A8\u09CD\u099F\u09CD\u09B0\u09BF",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"}};function t(r){return e[r]??null}let n={regex:"\u0987\u09A8\u09AA\u09C1\u099F",email:"\u0987\u09AE\u09C7\u0987\u09B2 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",url:"URL",emoji:"\u0987\u09AE\u09CB\u099C\u09BF",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u09A4\u09BE\u09B0\u09BF\u0996 \u0993 \u09B8\u09AE\u09AF\u09BC",date:"ISO \u09A4\u09BE\u09B0\u09BF\u0996",time:"ISO \u09B8\u09AE\u09AF\u09BC",duration:"ISO \u09B8\u09AE\u09AF\u09BC\u0995\u09BE\u09B2",ipv4:"IPv4 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",ipv6:"IPv6 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",mac:"MAC \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",cidrv4:"IPv4 \u09B0\u09C7\u099E\u09CD\u099C",cidrv6:"IPv6 \u09B0\u09C7\u099E\u09CD\u099C",base64:"base64-\u098F\u09A8\u0995\u09CB\u09A1\u09C7\u09A1 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",base64url:"base64url-\u098F\u09A8\u0995\u09CB\u09A1\u09C7\u09A1 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",json_string:"JSON \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",e164:"E.164 \u09A8\u09AE\u09CD\u09AC\u09B0",credit_card:"\u0995\u09CD\u09B0\u09C7\u09A1\u09BF\u099F \u0995\u09BE\u09B0\u09CD\u09A1 \u09A8\u09AE\u09CD\u09AC\u09B0",currency_code:"\u09AE\u09C1\u09A6\u09CD\u09B0\u09BE \u0995\u09CB\u09A1",iban:"IBAN",jwt:"JWT",template_literal:"\u0987\u09A8\u09AA\u09C1\u099F"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return`\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F: \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${o}, \u09AA\u09CD\u09B0\u09BE\u09AA\u09CD\u09A4 ${s}`}case"invalid_value":return r.values.length===1?`\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F: \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${pe(r.values[0])}`:`\u0985\u09AC\u09C8\u09A7 \u0985\u09AA\u09B6\u09A8: ${ne(r.values," | ")} \u098F\u09B0 \u09AE\u09A7\u09CD\u09AF\u09C7 \u098F\u0995\u099F\u09BF \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0985\u09A8\u09C7\u0995 \u09AC\u09A1\u09BC: ${r.origin??"\u09AE\u09BE\u09A8"} ${o}${r.maximum.toString()} ${a.unit??"\u098F\u09B2\u09BF\u09AE\u09C7\u09A8\u09CD\u099F"} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09A8\u09C7\u0995 \u09AC\u09A1\u09BC: ${r.origin??"\u09AE\u09BE\u09A8"} ${o}${r.maximum.toString()} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0985\u09A8\u09C7\u0995 \u099B\u09CB\u099F: ${r.origin} ${o}${r.minimum.toString()} ${a.unit} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09A8\u09C7\u0995 \u099B\u09CB\u099F: ${r.origin} ${o}${r.minimum.toString()} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${o.prefix}" \u09A6\u09BF\u09AF\u09BC\u09C7 \u09B6\u09C1\u09B0\u09C1 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:o.format==="ends_with"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${o.suffix}" \u09A6\u09BF\u09AF\u09BC\u09C7 \u09B6\u09C7\u09B7 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:o.format==="includes"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${o.includes}" \u0985\u09A8\u09CD\u09A4\u09B0\u09CD\u09AD\u09C1\u0995\u09CD\u09A4 \u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7`:o.format==="regex"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: ${o.pattern} \u09AA\u09CD\u09AF\u09BE\u099F\u09BE\u09B0\u09CD\u09A8 \u09AE\u09BF\u09B2\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09AC\u09C8\u09A7 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0985\u09AC\u09C8\u09A7 \u09A8\u09AE\u09CD\u09AC\u09B0: ${r.divisor} \u098F\u09B0 \u0997\u09C1\u09A3\u09BF\u09A4\u0995 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`;case"unrecognized_keys":return`\u0985\u099A\u09C7\u09A8\u09BE \u0995\u09C0${r.keys.length>1?"\u0997\u09C1\u09B2\u09CB":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u098F \u0985\u09AC\u09C8\u09A7 \u0995\u09C0`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\u0985\u09AC\u09C8\u09A7 \u09A1\u09BF\u09B8\u0995\u09CD\u09B0\u09BF\u09AE\u09BF\u09A8\u09C7\u099F\u09B0 \u09AE\u09BE\u09A8\u0964 \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${r.options.map(a=>`'${a}'`).join(" | ")}`:"\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F";case"invalid_element":return`${r.origin} \u098F \u0985\u09AC\u09C8\u09A7 \u09AE\u09BE\u09A8`;default:return"\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F"}}};function d8(){return{localeError:fle()}}var ple=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"},map:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",mac:"adre\xE7a MAC",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",credit_card:"n\xFAmero de targeta de cr\xE8dit",currency_code:"codi de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${s}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${pe(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${ne(r.values," o ")}`;case"too_big":{let o=r.inclusive?"com a m\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${o} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${o} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${n[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}};function h8(){return{localeError:ple()}}var mle=()=>{let e={string:{unit:"\u067E\u06CC\u062A",verb:"\u0628\u06CE\u062A"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u0628\u06CE\u062A"},array:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"},set:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"},map:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"}};function t(r){return e[r]??null}let n={regex:"regex",email:"\u0626\u06CC\u0645\u06D5\u06CC\u06B5",url:"\u0628\u06D5\u0633\u062A\u06D5\u0631 (URL)",emoji:"\u0626\u06CC\u0645\u06C6\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0695\u06CE\u06A9\u06D5\u0648\u062A \u0648 \u06A9\u0627\u062A",date:"\u0695\u06CE\u06A9\u06D5\u0648\u062A",time:"\u06A9\u0627\u062A",duration:"\u0645\u0627\u0648\u06D5",ipv4:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC IPv4",ipv6:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC IPv6",mac:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC MAC",cidrv4:"\u0645\u06D5\u0648\u062F\u0627\u06CC IPv4",cidrv6:"\u0645\u06D5\u0648\u062F\u0627\u06CC IPv6",base64:"\u062F\u06D5\u0642\u06CC base64",base64url:"\u062F\u06D5\u0642\u06CC base64url",json_string:"\u062F\u06D5\u0642\u06CC JSON",e164:"\u0698\u0645\u0627\u0631\u06D5\u06CC E.164",credit_card:"\u0698\u0645\u0627\u0631\u06D5\u06CC \u06A9\u0627\u0631\u062A\u06CC \u06A9\u0631\u06CE\u062F\u06CC\u062A",currency_code:"\u06A9\u06C6\u062F\u06CC \u062F\u0631\u0627\u0648",iban:"IBAN",jwt:"JWT",template_literal:"\u062A\u06CE\u06A9\u0631\u062F\u06D5"},i={nan:"NaN",string:"\u0646\u0648\u0648\u0633\u06CC\u0646",number:"\u0698\u0645\u0627\u0631\u06D5",boolean:"boolean",array:"array",object:"object",date:"\u0695\u06CE\u06A9\u06D5\u0648\u062A",integer:"\u0698\u0645\u0627\u0631\u06D5",float:"\u0698\u0645\u0627\u0631\u06D5",null:"null",undefined:"undefined",function:"function",symbol:"symbol",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a,l=["\u0627","\u0648","\u06C6","\u0648\u0648","\u06D5","\u06CC","\u06CE"].some(u=>s.endsWith(u))?"\u06CC\u06D5":"\u06D5",c=/^[a-zA-Z]+$/.test(s);return a==="null"||a==="undefined"?"\u062F\u0627\u0648\u0627\u06A9\u0631\u0627\u0648\u06D5":`\u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 ${o} \u0628\u06CE\u062A\u060C \u0628\u06D5\u06B5\u0627\u0645 ${s}${c?"":l}`}case"invalid_value":return r.values.length===1?`\u0628\u06D5\u0647\u0627\u06A9\u06D5 \u0646\u0627\u062F\u0631\u0648\u0648\u0633\u062A\u06D5: \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 ${pe(r.values[0])} \u0628\u06CE\u062A`:`\u0647\u06D5\u06B5\u0628\u0698\u0627\u0631\u062F\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 \u06CC\u06D5\u06A9\u06CE\u06A9 \u0628\u06CE\u062A \u0644\u06D5 ${ne(r.values,"|")}`;case"too_big":{let o=t(r.origin);return o?`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u0632\u06C6\u0631\u06D5\u0648\u06D5 ${r.maximum.toString()} ${o.unit} ${o.verb}`:`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u0632\u06C6\u0631\u06D5\u0648\u06D5 ${r.maximum.toString()} \u0628\u06CE\u062A`}case"too_small":{let o=t(r.origin);return o?`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u06A9\u06D5\u0645\u06D5\u0648\u06D5 ${r.minimum.toString()} ${o.unit} ${o.verb}`:`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u06A9\u06D5\u0645\u06D5\u0648\u06D5 ${r.minimum.toString()} \u0628\u06CE\u062A`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u062F\u06D5\u0633\u062A\u067E\u06CE\u0628\u06A9\u0627\u062A \u0628\u06D5 "${o.prefix}"`:o.format==="ends_with"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u06A9\u06C6\u062A\u0627\u06CC\u06CC\u0628\u06CE\u062A \u0628\u06D5 "${o.suffix}"`:o.format==="includes"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 "${o.includes}" \u0644\u06D5\u062E\u06C6\u0628\u06AF\u0631\u06CE\u062A`:o.format==="regex"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0644\u06D5\u06AF\u06D5\u06B5 \u067E\u0627\u062A\u06CE\u0631\u0646\u06CC ${o.pattern} \u0628\u06AF\u0648\u0646\u062C\u06CE\u062A`:`\u0628\u06D5\u0647\u0627\u06CC ${n[o.format]??r.format} \u0646\u0627\u062F\u0631\u0648\u0633\u062A\u06D5`}case"not_multiple_of":return`\u0698\u0645\u0627\u0631\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u062F\u06D5\u0628\u06CE\u062A \u0686\u06D5\u0646\u062F \u0647\u06CE\u0646\u062F\u06D5 \u0628\u06CE\u062A \u0628\u06C6 ${r.divisor}`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u0644\u06CC \u0646\u06D5\u0646\u0627\u0633\u0631\u0627\u0648: ${ne(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u0644\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A \u0644\u06D5 ${r.origin}`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\u0628\u06D5\u0647\u0627\u06CC \u0646\u06D5\u0646\u0627\u0633\u0631\u0627\u0648 \u0647\u06D5\u06CC\u06D5. \u0628\u06D5\u0647\u0627\u06CC \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648: ${r.options.map(a=>`'${a}'`).join(" | ")}`:"\u06CC\u06D5\u06A9\u06AF\u0631\u062A\u0646\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A";case"invalid_element":return`${r.origin} \u0628\u06D5\u0647\u0627\u06A9\u06D5 \u0646\u0627\u062F\u0631\u0648\u0633\u062A\u06D5`;default:return"\u062A\u06CE\u06A9\u0631\u062F\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A"}}};function f8(){return{localeError:mle()}}var gle=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"},map:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(r){return e[r]??null}let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",credit_card:"\u010D\xEDslo kreditn\xED karty",currency_code:"k\xF3d m\u011Bny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${s}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${pe(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${n[o.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${ne(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}};function p8(){return{localeError:gle()}}var vle=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"},map:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}let n={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kreditkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${pe(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=i[r.origin]??r.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${o} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=i[r.origin]??r.origin;return a?`For lille: forventede ${s} ${a.verb} ${o} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??r.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${ne(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${r.origin}`;default:return"Ugyldigt input"}}};function m8(){return{localeError:vle()}}var yle=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"},map:{unit:"Elemente",verb:"zu haben"}};function t(r){return e[r]??null}let n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",mac:"MAC-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",credit_card:"Kreditkartennummer",currency_code:"W\xE4hrungscode",iban:"IBAN",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${pe(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${n[o.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${ne(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}};function g8(){return{localeError:yle()}}var ble=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function t(r){return e[r]??null}let n={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",credit_card:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03C0\u03B9\u03C3\u03C4\u03C9\u03C4\u03B9\u03BA\u03AE\u03C2 \u03BA\u03AC\u03C1\u03C4\u03B1\u03C2",currency_code:"\u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03BD\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03BF\u03C2",iban:"IBAN",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return typeof r.expected=="string"&&/^[A-Z]/.test(r.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${r.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${s}`}case"invalid_value":return r.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${pe(r.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${r.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${r.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${o.prefix}"`:o.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${o.suffix}"`:o.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${o.includes}"`:o.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${o.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[o.format]??r.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${r.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${r.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${r.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${ne(r.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${r.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${r.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function v8(){return{localeError:ble()}}var xle=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(o){return e[o]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};function r(o,a){return o==="number"&&typeof a=="number"&&!Number.isFinite(a)?String(a):i[o]??o}return o=>{switch(o.code){case"invalid_type":{let a=r(o.expected),s=me(o.input),l=r(s,o.input);return`Invalid input: expected ${a}, received ${l}`}case"invalid_value":return o.values.length===1?`Invalid input: expected ${pe(o.values[0])}`:`Invalid option: expected one of ${ne(o.values,"|")}`;case"too_big":{let a=o.exact?"exactly ":o.inclusive?"<=":"<",s=t(o.origin);return s?`Too big: expected ${o.origin??"value"} to have ${a}${o.maximum.toString()} ${s.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${a}${o.maximum.toString()}`}case"too_small":{let a=o.exact?"exactly ":o.inclusive?">=":">",s=t(o.origin);return s?`Too small: expected ${o.origin} to have ${a}${o.minimum.toString()} ${s.unit}`:`Too small: expected ${o.origin} to be ${a}${o.minimum.toString()}`}case"invalid_format":{let a=o;return a.format==="starts_with"?`Invalid string: must start with "${a.prefix}"`:a.format==="ends_with"?`Invalid string: must end with "${a.suffix}"`:a.format==="includes"?`Invalid string: must include "${a.includes}"`:a.format==="regex"?`Invalid string: must match pattern ${a.pattern}`:`Invalid ${n[a.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${ne(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`Invalid discriminator value. Expected ${o.options.map(s=>`'${s}'`).join(" | ")}`:o.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function pS(){return{localeError:xle()}}var _le=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"},map:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",mac:"MAC-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",credit_card:"kreditkarta numero",currency_code:"valuta kodo",iban:"IBAN",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${s}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${pe(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${o}${r.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${n[o.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}};function y8(){return{localeError:_le()}}var Sle=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",mac:"direcci\xF3n MAC",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",credit_card:"n\xFAmero de tarjeta de cr\xE9dito",currency_code:"c\xF3digo de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${pe(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${o}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${n[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}};function b8(){return{localeError:Sle()}}var $le=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},map:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(r){return e[r]??null}let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",mac:"MAC \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",credit_card:"\u0634\u0645\u0627\u0631\u0647 \u06A9\u0627\u0631\u062A \u0627\u0639\u062A\u0628\u0627\u0631\u06CC",currency_code:"\u06A9\u062F \u0627\u0631\u0632",iban:"IBAN",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${pe(r.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${ne(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[o.format]??r.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${ne(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function x8(){return{localeError:$le()}}var wle=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},map:{unit:"alkiota",subject:"kuvauksen"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(r){return e[r]??null}let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",mac:"MAC-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",credit_card:"luottokortin numero",currency_code:"valuuttakoodi",iban:"IBAN",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${pe(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${n[o.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${ne(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function _8(){return{localeError:wle()}}var kle=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n={regex:"expression r\xE9guli\xE8re",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne de caract\xE8res encod\xE9e en base64",base64url:"cha\xEEne de caract\xE8res encod\xE9e en base64url",json_string:"cha\xEEne de caract\xE8res JSON",e164:"num\xE9ro au format E.164",credit_card:"num\xE9ro de carte de cr\xE9dit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entr\xE9e"},i={string:"cha\xEEne de caract\xE8res",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"record",map:"map",set:"ensemble",file:"fichier",nonoptional:"non optionnel",nan:"NaN",function:"fonction"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instance de ${r.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${s} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${pe(r.values[0])} attendu`:`Option invalide : une valeur parmi ${ne(r.values,"|")} attendue`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${i[r.origin]??"valeur"} doit ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i[r.origin]??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${i[r.origin]??"valeur"} doit ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${i[r.origin]??"valeur"} doit \xEAtre ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne de caract\xE8res invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne de caract\xE8res invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne de caract\xE8res invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne de caract\xE8res invalide : doit correspondre au motif ${o.pattern}`:`${n[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${ne(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function S8(){return{localeError:kle()}}var Mle=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"},map:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",credit_card:"num\xE9ro de carte de cr\xE9dit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${s}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${pe(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${n[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${ne(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function $8(){return{localeError:Mle()}}var Cle=()=>{let e={string:{unit:"\u0A85\u0A95\u0ACD\u0AB7\u0AB0",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},file:{unit:"\u0AAC\u0ABE\u0AAF\u0A9F",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},array:{unit:"\u0A86\u0A87\u0A9F\u0AAE",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},set:{unit:"\u0A86\u0A87\u0A9F\u0AAE",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},map:{unit:"\u0A8F\u0AA8\u0ACD\u0A9F\u0ACD\u0AB0\u0AC0",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"}};function t(r){return e[r]??null}let n={regex:"\u0A87\u0AA8\u0AAA\u0AC1\u0A9F",email:"\u0A88\u0AAE\u0AC7\u0A87\u0AB2 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",url:"URL",emoji:"\u0A87\u0AAE\u0ACB\u0A9C\u0AC0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0AA4\u0ABE\u0AB0\u0AC0\u0A96 \u0A85\u0AA8\u0AC7 \u0AB8\u0AAE\u0AAF",date:"ISO \u0AA4\u0ABE\u0AB0\u0AC0\u0A96",time:"ISO \u0AB8\u0AAE\u0AAF",duration:"ISO \u0A85\u0AB5\u0AA7\u0ABF",ipv4:"IPv4 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",ipv6:"IPv6 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",mac:"MAC \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",cidrv4:"IPv4 \u0AB6\u0ACD\u0AB0\u0AC7\u0AA3\u0AC0",cidrv6:"IPv6 \u0AB6\u0ACD\u0AB0\u0AC7\u0AA3\u0AC0",base64:"base64-\u0A8F\u0AA8\u0ACD\u0A95\u0ACB\u0AA1\u0AC7\u0AA1 \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",base64url:"base64url-\u0A8F\u0AA8\u0ACD\u0A95\u0ACB\u0AA1\u0AC7\u0AA1 \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",json_string:"JSON \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",e164:"E.164 \u0AA8\u0A82\u0AAC\u0AB0",credit_card:"\u0A95\u0ACD\u0AB0\u0AC7\u0AA1\u0ABF\u0A9F \u0A95\u0ABE\u0AB0\u0ACD\u0AA1 \u0AA8\u0A82\u0AAC\u0AB0",currency_code:"\u0A9A\u0AB2\u0AA3 \u0A95\u0ACB\u0AA1",iban:"IBAN",jwt:"JWT",template_literal:"\u0A87\u0AA8\u0AAA\u0AC1\u0A9F"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F: \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${o}, \u0AAA\u0ACD\u0AB0\u0ABE\u0AAA\u0ACD\u0AA4 ${s}`}case"invalid_value":return r.values.length===1?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F: \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${pe(r.values[0])}`:`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB5\u0ABF\u0A95\u0AB2\u0ACD\u0AAA: ${ne(r.values," | ")} \u0AAE\u0ABE\u0AA7\u0ACD\u0AAF\u0AAE\u0AA5\u0AC0 \u0A8F\u0A95 \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0A96\u0AC2\u0AAC \u0AAE\u0ACB\u0A9F\u0AC1\u0A82: ${r.origin??"\u0AAE\u0AC2\u0AB2\u0ACD\u0AAF"} ${o}${r.maximum.toString()} ${a.unit??"\u0A8F\u0AB2\u0ABF\u0AAE\u0AC7\u0AA8\u0ACD\u0A9F"} \u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A96\u0AC2\u0AAC \u0AAE\u0ACB\u0A9F\u0AC1\u0A82: ${r.origin??"\u0AAE\u0AC2\u0AB2\u0ACD\u0AAF"} ${o}${r.maximum.toString()} \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0A96\u0AC2\u0AAC \u0AA8\u0ABE\u0AA8\u0AC1\u0A82: ${r.origin} ${o}${r.minimum.toString()} ${a.unit} \u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A96\u0AC2\u0AAC \u0AA8\u0ABE\u0AA8\u0AC1\u0A82: ${r.origin} ${o}${r.minimum.toString()} \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${o.prefix}" \u0AA5\u0AC0 \u0AB6\u0AB0\u0AC2 \u0AA5\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:o.format==="ends_with"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${o.suffix}" \u0AAA\u0AB0 \u0AB8\u0AAE\u0ABE\u0AAA\u0ACD\u0AA4 \u0AA5\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:o.format==="includes"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${o.includes}" \u0AB6\u0ABE\u0AAE\u0AC7\u0AB2 \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:o.format==="regex"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: \u0AAA\u0AC7\u0A9F\u0AB0\u0ACD\u0AA8 ${o.pattern} \u0AB8\u0ABE\u0AA5\u0AC7 \u0AAE\u0AC7\u0AB3 \u0A96\u0ABE\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AA8\u0A82\u0AAC\u0AB0: ${r.divisor} \u0AA8\u0ACB \u0A97\u0AC1\u0AA3\u0ABE\u0A82\u0A95 \u0AB9\u0ACB\u0AB5\u0ACB \u0A9C\u0ACB\u0A88\u0A8F`;case"unrecognized_keys":return`\u0A93\u0AB3\u0A96\u0AC0 \u0AB6\u0A95\u0ABE\u0AA4\u0ABE \u0AA8\u0AB9\u0AC0\u0A82 \u0AA4\u0AC7 \u0A95\u0AC0${r.keys.length>1?"\u0A93":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u0AAE\u0ABE\u0A82 \u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A95\u0AC0`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AA1\u0ABF\u0AB8\u0ACD\u0A95\u0ACD\u0AB0\u0ABF\u0AAE\u0ABF\u0AA8\u0AC7\u0A9F\u0AB0 \u0AAE\u0AC2\u0AB2\u0ACD\u0AAF. \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${r.options.map(a=>`'${a}'`).join(" | ")}`:"\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F";case"invalid_element":return`${r.origin} \u0AAE\u0ABE\u0A82 \u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AAE\u0AC2\u0AB2\u0ACD\u0AAF`;default:return"\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F"}}};function w8(){return{localeError:Cle()}}var zle=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=c=>c?e[c]:void 0,i=c=>{let u=n(c);return u?u.label:c??e.unknown.label},r=c=>`\u05D4${i(c)}`,o=c=>(n(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=c=>c?t[c]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},uuidv4:{label:"UUIDv4",gender:"m"},uuidv6:{label:"UUIDv6",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},mac:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA MAC",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},credit_card:{label:"\u05DE\u05E1\u05E4\u05E8 \u05DB\u05E8\u05D8\u05D9\u05E1 \u05D0\u05E9\u05E8\u05D0\u05D9",gender:"m"},currency_code:{label:"\u05E7\u05D5\u05D3 \u05DE\u05D8\u05D1\u05E2",gender:"m"},iban:{label:"IBAN",gender:"m"},jwt:{label:"JWT",gender:"m"},template_literal:{label:"\u05E7\u05DC\u05D8",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},l={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let u=c.expected,d=l[u??""]??i(u),f=me(c.input),h=l[f]??e[f]?.label??f;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`}case"invalid_value":{if(c.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${pe(c.values[0])}`;let u=c.values.map(h=>pe(h));if(c.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${u[0]} \u05D0\u05D5 ${u[1]}`;let d=u[u.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${u.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let u=a(c.origin),d=r(c.origin??"value");if(c.origin==="string")return`${u?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${u?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let p=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}`}if(c.origin==="array"||c.origin==="set"){let p=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",g=c.inclusive?`${c.maximum} ${u?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${u?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${p} \u05DC\u05D4\u05DB\u05D9\u05DC ${g}`.trim()}let f=c.inclusive?"<=":"<",h=o(c.origin??"value");return u?.unit?`${u.longLabel} \u05DE\u05D3\u05D9: ${d} ${h} ${f}${c.maximum.toString()} ${u.unit}`:`${u?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${h} ${f}${c.maximum.toString()}`}case"too_small":{let u=a(c.origin),d=r(c.origin??"value");if(c.origin==="string")return`${u?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${u?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let p=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}`}if(c.origin==="array"||c.origin==="set"){let p=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let v=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${p} \u05DC\u05D4\u05DB\u05D9\u05DC ${v}`}let g=c.inclusive?`${c.minimum} ${u?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${u?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${p} \u05DC\u05D4\u05DB\u05D9\u05DC ${g}`.trim()}let f=c.inclusive?">=":">",h=o(c.origin??"value");return u?.unit?`${u.shortLabel} \u05DE\u05D3\u05D9: ${d} ${h} ${f}${c.minimum.toString()} ${u.unit}`:`${u?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${h} ${f}${c.minimum.toString()}`}case"invalid_format":{let u=c;if(u.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${u.prefix}"`;if(u.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${u.suffix}"`;if(u.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${u.includes}"`;if(u.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${u.pattern}`;let d=s[u.format],f=d?.label??u.format,p=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${p}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${ne(c.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function k8(){return{localeError:zle()}}var Tle=()=>{let e={string:{unit:"\u0905\u0915\u094D\u0937\u0930",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},file:{unit:"\u092C\u093E\u0907\u091F\u094D\u0938",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},array:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},set:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},map:{unit:"\u092A\u094D\u0930\u0935\u093F\u0937\u094D\u091F\u093F\u092F\u093E\u0901",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"}};function t(r){return e[r]??null}let n={regex:"\u0907\u0928\u092A\u0941\u091F",email:"\u0908\u092E\u0947\u0932 \u092A\u0924\u093E",url:"URL",emoji:"\u0907\u092E\u094B\u091C\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0924\u093F\u0925\u093F \u0914\u0930 \u0938\u092E\u092F",date:"ISO \u0924\u093F\u0925\u093F",time:"ISO \u0938\u092E\u092F",duration:"ISO \u0905\u0935\u0927\u093F",ipv4:"IPv4 \u092A\u0924\u093E",ipv6:"IPv6 \u092A\u0924\u093E",mac:"MAC \u092A\u0924\u093E",cidrv4:"IPv4 \u0936\u094D\u0930\u0947\u0923\u0940",cidrv6:"IPv6 \u0936\u094D\u0930\u0947\u0923\u0940",base64:"Base64-\u090F\u0928\u094D\u0915\u094B\u0921\u0947\u0921 \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",base64url:"Base64URL-\u090F\u0928\u094D\u0915\u094B\u0921\u0947\u0921 \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",json_string:"JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",e164:"E.164 \u0938\u0902\u0916\u094D\u092F\u093E",credit_card:"\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0938\u0902\u0916\u094D\u092F\u093E",currency_code:"\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",iban:"IBAN",jwt:"JWT",template_literal:"\u0907\u0928\u092A\u0941\u091F"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${o}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${s}`}case"invalid_value":return r.values.length===1?`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${pe(r.values[0])}`:`\u0905\u092E\u093E\u0928\u094D\u092F \u0935\u093F\u0915\u0932\u094D\u092A: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092E\u093E\u0928\u094B\u0902 \u092E\u0947\u0902 \u0938\u0947 \u090F\u0915 ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u092C\u0939\u0941\u0924 \u092C\u0921\u093C\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${r.origin??"\u092E\u093E\u0928"} \u092E\u0947\u0902 ${o}${r.maximum} ${a.unit} \u0939\u094B\u0902`:`\u092C\u0939\u0941\u0924 \u092C\u0921\u093C\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${r.origin??"\u092E\u093E\u0928"} ${o}${r.maximum} \u0939\u094B`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u092C\u0939\u0941\u0924 \u091B\u094B\u091F\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${r.origin} \u092E\u0947\u0902 ${o}${r.minimum} ${a.unit} \u0939\u094B\u0902`:`\u092C\u0939\u0941\u0924 \u091B\u094B\u091F\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${r.origin} ${o}${r.minimum} \u0939\u094B`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: "${o.prefix}" \u0938\u0947 \u0936\u0941\u0930\u0942 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:o.format==="ends_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: "${o.suffix}" \u092A\u0930 \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:o.format==="includes"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: \u0907\u0938\u092E\u0947\u0902 "${o.includes}" \u0936\u093E\u092E\u093F\u0932 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:o.format==="regex"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: \u092A\u0948\u091F\u0930\u094D\u0928 ${o.pattern} \u0938\u0947 \u092E\u0947\u0932 \u0916\u093E\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:`\u0905\u092E\u093E\u0928\u094D\u092F ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u0902\u0916\u094D\u092F\u093E: \u092F\u0939 ${r.divisor} \u0915\u093E \u0917\u0941\u0923\u091C \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`;case"unrecognized_keys":return`\u0905\u092A\u0930\u093F\u091A\u093F\u0924 \u0915\u0941\u0902\u091C\u0940${r.keys.length>1?"\u092F\u093E\u0901":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0915\u0941\u0902\u091C\u0940: ${r.origin} \u092E\u0947\u0902`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\u0905\u092E\u093E\u0928\u094D\u092F \u0921\u093F\u0938\u094D\u0915\u094D\u0930\u093F\u092E\u093F\u0928\u0947\u091F\u0930 \u092E\u093E\u0928: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${r.options.map(a=>`'${a}'`).join(" | ")}`:"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F";case"invalid_element":return`\u0905\u092E\u093E\u0928\u094D\u092F \u092E\u093E\u0928: ${r.origin} \u092E\u0947\u0902`;default:return"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F"}}};function M8(){return{localeError:Tle()}}var Ale=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(r){return e[r]??null}let n={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",credit_card:"broj kreditne kartice",currency_code:"kod valute",iban:"IBAN",jwt:"JWT",template_literal:"unos"},i={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${r.expected}, a primljeno je ${s}`:`Neispravan unos: o\u010Dekuje se ${o}, a primljeno je ${s}`}case"invalid_value":return r.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${pe(r.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Preveliko: o\u010Dekivano da ${s??"vrijednost"} ima ${o}${r.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${s??"vrijednost"} bude ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=i[r.origin]??r.origin;return a?`Premalo: o\u010Dekivano da ${s} ima ${o}${r.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${s} bude ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${n[o.format]??r.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${r.divisor}`;case"unrecognized_keys":return`Neprepoznat${r.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${ne(r.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${i[r.origin]??r.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[r.origin]??r.origin}`;default:return"Neispravan unos"}}};function C8(){return{localeError:Ale()}}var Ile=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"},map:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let n={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",mac:"MAC c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",credit_card:"hitelk\xE1rtyasz\xE1m",currency_code:"p\xE9nznemk\xF3d",iban:"IBAN",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${pe(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${r.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${o}${r.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[o.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function z8(){return{localeError:Ile()}}function T8(e,t,n){return Math.abs(e)===1?t:n}function Kf(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}var Rle=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},map:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(r){return e[r]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",mac:"MAC \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",credit_card:"\u056F\u0580\u0565\u0564\u056B\u057F \u0584\u0561\u0580\u057F\u056B \u0570\u0561\u0574\u0561\u0580",currency_code:"\u0561\u0580\u056A\u0578\u0582\u0575\u0569\u056B \u056F\u0578\u0564",iban:"IBAN",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${r.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return r.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${pe(r.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),l=T8(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Kf(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.maximum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Kf(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),l=T8(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Kf(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.minimum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Kf(r.origin)} \u056C\u056B\u0576\u056B ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[o.format]??r.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${r.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${r.keys.length>1?"\u0576\u0565\u0580":""}. ${ne(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Kf(r.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Kf(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function A8(){return{localeError:Rle()}}var Lle=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"},map:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",credit_card:"nomor kartu kredit",currency_code:"kode mata uang",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${pe(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${n[o.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function I8(){return{localeError:Lle()}}var Ele=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"},map:{unit:"hluti",verb:"a\xF0 hafa"}};function t(r){return e[r]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",credit_card:"kreditkortan\xFAmer",currency_code:"gjaldmi\xF0ilsk\xF3\xF0i",iban:"IBAN",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${pe(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${o}${r.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${o}${r.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${n[o.format]??r.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${r.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${ne(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${r.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${r.origin}`;default:return"Rangt gildi"}}};function R8(){return{localeError:Ele()}}var Dle=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"},map:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",mac:"indirizzo MAC",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",credit_card:"numero di carta di credito",currency_code:"codice valuta",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${pe(r.values[0])}`:`Opzione non valida: atteso uno tra ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Input non valido: ${n[o.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${ne(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function L8(){return{localeError:Dle()}}var Ole=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},map:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(r){return e[r]??null}let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",mac:"MAC\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",credit_card:"\u30AF\u30EC\u30B8\u30C3\u30C8\u30AB\u30FC\u30C9\u756A\u53F7",currency_code:"\u901A\u8CA8\u30B3\u30FC\u30C9",iban:"IBAN",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${pe(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${ne(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${r.keys.length>1?"\u7FA4":""}: ${ne(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function E8(){return{localeError:Ole()}}var Nle=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},map:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(r){return e[r]??null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",mac:"MAC \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",credit_card:"\u10E1\u10D0\u10D9\u10E0\u10D4\u10D3\u10D8\u10E2\u10DD \u10D1\u10D0\u10E0\u10D0\u10D7\u10D8\u10E1 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",currency_code:"\u10D5\u10D0\u10DA\u10E3\u10E2\u10D8\u10E1 \u10D9\u10DD\u10D3\u10D8",iban:"IBAN",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},i={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${r.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return r.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${pe(r.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${ne(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.prefix}"-\u10D8\u10D7`:o.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.suffix}"-\u10D8\u10D7`:o.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${o.includes}"-\u10E1`:o.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${r.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${r.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${ne(r.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${r.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${r.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function D8(){return{localeError:Nle()}}var Ple=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},map:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(r){return e[r]??null}let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",mac:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 MAC",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",credit_card:"\u179B\u17C1\u1781\u1794\u17D0\u178E\u17D2\u178E\u17A5\u178E\u1791\u17B6\u1793",currency_code:"\u1780\u17BC\u178A\u179A\u17BC\u1794\u17B7\u1799\u1794\u17D0\u178E\u17D2\u178E",iban:"IBAN",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},i={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return r.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${pe(r.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${ne(r.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function mS(){return{localeError:Ple()}}function O8(){return mS()}var jle=()=>{let e={string:{unit:"\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},file:{unit:"\u0CAC\u0CC8\u0C9F\u0CCD\u200C\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},array:{unit:"\u0CB5\u0CB8\u0CCD\u0CA4\u0CC1\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},set:{unit:"\u0CB5\u0CB8\u0CCD\u0CA4\u0CC1\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},map:{unit:"entries",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"}};function t(r){return e[r]??null}let n={regex:"\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD",email:"email \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0CA6\u0CBF\u0CA8\u0CBE\u0C82\u0C95\u0CA6 \u0CB8\u0CAE\u0CAF",date:"ISO \u0CA6\u0CBF\u0CA8\u0CBE\u0C82\u0C95",time:"ISO \u0CB8\u0CAE\u0CAF",duration:"ISO \u0C85\u0CB5\u0CA7\u0CBF",ipv4:"IPv4 \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",ipv6:"IPv6 \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",mac:"MAC \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",cidrv4:"IPv4 \u0CB5\u0CCD\u0CAF\u0CBE\u0CAA\u0CCD\u0CA4\u0CBF\u0CAF",cidrv6:"IPv6 \u0CB5\u0CCD\u0CAF\u0CBE\u0CAA\u0CCD\u0CA4\u0CBF\u0CAF",base64:"base64-encoded\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",base64url:"base64url-encoded\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",json_string:"JSON\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",e164:"E.164 \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",credit_card:"\u0C95\u0CCD\u0CB0\u0CC6\u0CA1\u0CBF\u0C9F\u0CCD \u0C95\u0CBE\u0CB0\u0CCD\u0CA1\u0CCD \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",currency_code:"\u0C95\u0CB0\u0CC6\u0CA8\u0CCD\u0CB8\u0CBF \u0C95\u0CCB\u0CA1\u0CCD",iban:"IBAN",jwt:"JWT",template_literal:"\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${o}, \u0CB8\u0CCD\u0CB5\u0CC0\u0C95\u0CB0\u0CBF\u0CB8\u0CBF\u0CA6\u0CA8\u0CC1 ${s}`}case"invalid_value":return r.values.length===1?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${pe(r.values[0])}`:`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C86\u0CAF\u0CCD\u0C95\u0CC6: \u0C87\u0CB5\u0CC1\u0C97\u0CB3\u0CB2\u0CCD\u0CB2\u0CBF \u0C92\u0C82\u0CA6\u0CA8\u0CCD\u0CA8\u0CC1 \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0CA6\u0CCA\u0CA1\u0CCD\u0CA1\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${r.origin??"value"} \u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1 ${o}${r.maximum.toString()} ${a.unit??"\u0C85\u0C82\u0CB6\u0C97\u0CB3\u0CC1"}`:`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0CA6\u0CCA\u0CA1\u0CCD\u0CA1\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${r.origin??"value"} \u0C8E\u0C82\u0CA6\u0CC1 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0C9A\u0CBF\u0C95\u0CCD\u0C95\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${r.origin} \u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1 ${o}${r.minimum.toString()} ${a.unit}`:`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0C9A\u0CBF\u0C95\u0CCD\u0C95\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${r.origin} \u0C8E\u0C82\u0CA6\u0CC1 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C87\u0CA6\u0CB0\u0CCA\u0C82\u0CA6\u0CBF\u0C97\u0CC6 \u0CAA\u0CCD\u0CB0\u0CBE\u0CB0\u0C82\u0CAD\u0CBF\u0CB8\u0CAC\u0CC7\u0C95\u0CC1 "${o.prefix}"`:o.format==="ends_with"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C87\u0CA6\u0CB0\u0CCA\u0C82\u0CA6\u0CBF\u0C97\u0CC6 \u0C95\u0CCA\u0CA8\u0CC6\u0C97\u0CCA\u0CB3\u0CCD\u0CB3\u0CAC\u0CC7\u0C95\u0CC1 "${o.suffix}"`:o.format==="includes"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C92\u0CB3\u0C97\u0CCA\u0C82\u0CA1\u0CBF\u0CB0\u0CAC\u0CC7\u0C95\u0CC1 "${o.includes}"`:o.format==="regex"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0CAE\u0CBE\u0CA6\u0CB0\u0CBF\u0C97\u0CC6 \u0CB9\u0CCA\u0C82\u0CA6\u0CBF\u0C95\u0CC6\u0CAF\u0CBE\u0C97\u0CAC\u0CC7\u0C95\u0CC1 ${o.pattern}`:`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6: \u0CAC\u0CB9\u0CC1\u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6\u0CAF\u0CBE\u0C97\u0CBF\u0CB0\u0CAC\u0CC7\u0C95\u0CC1 ${r.divisor}`;case"unrecognized_keys":return`\u0C97\u0CC1\u0CB0\u0CC1\u0CA4\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CA6 \u0C95\u0CC0 ${r.keys.length>1?"s":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0C95\u0CC0 \u0C87\u0CA8\u0CCD ${r.origin}`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CA4\u0CBE\u0CB0\u0CA4\u0CAE\u0CCD\u0CAF \u0CAE\u0CCC\u0CB2\u0CCD\u0CAF. \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${r.options.map(a=>`'${a}'`).join(" | ")}`:"\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD";case"invalid_element":return`\u0CB0\u0CB2\u0CCD\u0CB2\u0CBF \u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CAE\u0CCC\u0CB2\u0CCD\u0CAF ${r.origin}`;default:return"\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD"}}};function N8(){return{localeError:jle()}}var Ule=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"},map:{unit:"\uAC1C",verb:"to have"}};function t(r){return e[r]??null}let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",mac:"MAC \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",credit_card:"\uC2E0\uC6A9\uCE74\uB4DC \uBC88\uD638",currency_code:"\uD1B5\uD654 \uCF54\uB4DC",iban:"IBAN",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${pe(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${ne(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),l=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${l} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${o}${a}`}case"too_small":{let o=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(r.origin),l=s?.unit??"\uC694\uC18C";return s?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${l} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[o.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${ne(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function P8(){return{localeError:Ule()}}var Nv=e=>e.charAt(0).toUpperCase()+e.slice(1);function j8(e){let t=Math.abs(e),n=t%10,i=t%100;return i>=11&&i<=19||n===0?"many":n===1?"one":"few"}var Ble=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(r,o,a,s){let l=e[r]??null;return l===null?l:{unit:l.unit[o],verb:l.verb[s][a?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",mac:"MAC adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",credit_card:"kredito kortel\u0117s numeris",currency_code:"valiutos kodas",iban:"IBAN",jwt:"JWT",template_literal:"\u012Fvestis"},i={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${o}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${pe(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${ne(r.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[r.origin]??r.origin,a=t(r.origin,j8(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${Nv(o??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\u0173"}`;let s=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Nv(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.maximum.toString()} ${a?.unit}`}case"too_small":{let o=i[r.origin]??r.origin,a=t(r.origin,j8(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${Nv(o??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\u0173"}`;let s=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Nv(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${r.minimum.toString()} ${a?.unit}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${n[o.format]??r.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${r.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${ne(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=i[r.origin]??r.origin;return`${Nv(o??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function U8(){return{localeError:Ble()}}var Fle=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},map:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(r){return e[r]??null}let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",mac:"MAC \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",credit_card:"\u0431\u0440\u043E\u0458 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0438\u0447\u043A\u0430",currency_code:"\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${pe(r.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${ne(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function B8(){return{localeError:Fle()}}var qle=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"},map:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",credit_card:"nombor kad kredit",currency_code:"kod mata wang",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${pe(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${n[o.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${ne(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function F8(){return{localeError:qle()}}var Vle=()=>{let e={string:{unit:"\u0905\u0915\u094D\u0937\u0930",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},file:{unit:"\u092C\u093E\u0907\u091F",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},array:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},set:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},map:{unit:"\u092A\u094D\u0930\u0935\u093F\u0937\u094D\u091F\u093F",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"}};function t(r){return e[r]??null}let n={regex:"\u0907\u0928\u092A\u0941\u091F",email:"\u0907\u092E\u0947\u0932 \u0920\u0947\u0917\u093E\u0928\u093E",url:"URL",emoji:"\u0907\u092E\u094B\u091C\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u092E\u093F\u0924\u093F \u0930 \u0938\u092E\u092F",date:"ISO \u092E\u093F\u0924\u093F",time:"ISO \u0938\u092E\u092F",duration:"ISO \u0905\u0935\u0927\u093F",ipv4:"IPv4 \u0920\u0947\u0917\u093E\u0928\u093E",ipv6:"IPv6 \u0920\u0947\u0917\u093E\u0928\u093E",mac:"MAC \u0920\u0947\u0917\u093E\u0928\u093E",cidrv4:"IPv4 \u0926\u093E\u092F\u0930\u093E",cidrv6:"IPv6 \u0926\u093E\u092F\u0930\u093E",base64:"base64-\u0907\u0928\u094D\u0915\u094B\u0921 \u0917\u0930\u093F\u090F\u0915\u094B \u0938\u094D\u091F\u094D\u0930\u093F\u0919",base64url:"base64url-\u0907\u0928\u094D\u0915\u094B\u0921 \u0917\u0930\u093F\u090F\u0915\u094B \u0938\u094D\u091F\u094D\u0930\u093F\u0919",json_string:"JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0919",e164:"E.164 \u0928\u092E\u094D\u092C\u0930",credit_card:"\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0928\u092E\u094D\u092C\u0930",currency_code:"\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",iban:"IBAN",jwt:"JWT",template_literal:"\u0907\u0928\u092A\u0941\u091F"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${o}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${s}`}case"invalid_value":return r.values.length===1?`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${pe(r.values[0])}`:`\u0905\u092E\u093E\u0928\u094D\u092F \u0935\u093F\u0915\u0932\u094D\u092A: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092E\u093E\u0928\u0939\u0930\u0942 \u092E\u0927\u094D\u092F\u0947 \u090F\u0915 ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0927\u0947\u0930\u0948 \u0920\u0942\u0932\u094B: ${r.origin??"\u092E\u093E\u0928"} \u092E\u093E ${o}${r.maximum.toString()} ${a.unit} ${a.verb}`:`\u0927\u0947\u0930\u0948 \u0920\u0942\u0932\u094B: ${r.origin??"\u092E\u093E\u0928"} ${o}${r.maximum.toString()} \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0927\u0947\u0930\u0948 \u0938\u093E\u0928\u094B: ${r.origin} \u092E\u093E ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`\u0927\u0947\u0930\u0948 \u0938\u093E\u0928\u094B: ${r.origin} ${o}${r.minimum.toString()} \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${o.prefix}" \u092C\u093E\u091F \u0938\u0941\u0930\u0941 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:o.format==="ends_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${o.suffix}" \u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:o.format==="includes"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${o.includes}" \u0938\u092E\u093E\u0935\u0947\u0936 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:o.format==="regex"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: \u0922\u093E\u0901\u091A\u093E ${o.pattern} \u0938\u0901\u0917 \u092E\u0947\u0932 \u0916\u093E\u0928\u0941\u092A\u0930\u094D\u091B`:`\u0905\u092E\u093E\u0928\u094D\u092F ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u0902\u0916\u094D\u092F\u093E: ${r.divisor} \u0915\u094B \u0917\u0941\u0923\u091C \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`;case"unrecognized_keys":return`\u0905\u092A\u0930\u093F\u091A\u093F\u0924 \u0915\u0941\u091E\u094D\u091C\u0940${r.keys.length>1?"\u0939\u0930\u0942":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0915\u0941\u091E\u094D\u091C\u0940: ${r.origin} \u092E\u093E`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\u0905\u092E\u093E\u0928\u094D\u092F \u0921\u093F\u0938\u094D\u0915\u094D\u0930\u093F\u092E\u093F\u0928\u0947\u091F\u0930 \u092E\u093E\u0928: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${r.options.map(a=>`'${a}'`).join(" | ")}`:"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F";case"invalid_element":return`\u0905\u092E\u093E\u0928\u094D\u092F \u092E\u093E\u0928: ${r.origin} \u092E\u093E`;default:return"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F"}}};function q8(){return{localeError:Vle()}}var Hle=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"},map:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}let n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",mac:"MAC-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",credit_card:"creditcardnummer",currency_code:"valutacode",iban:"IBAN",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${pe(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),s=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),s=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${n[o.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function V8(){return{localeError:Hle()}}var Zle=()=>{let e={string:{unit:"teikn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"element",verb:"\xE5 innehalde"},set:{unit:"element",verb:"\xE5 innehalde"},map:{unit:"element",verb:"\xE5 innehalde"}};function t(r){return e[r]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varigheit",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkoda streng",base64url:"base64url-enkoda streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tal",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventa instanceof ${r.expected}, fekk ${s}`:`Ugyldig input: forventa ${o}, fekk ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventa ${pe(r.values[0])}`:`Ugyldig val: forventa eitt av ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventa ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${a.unit??"element"}`:`For stor(t): forventa ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventa ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventa ${r.origin} til \xE5 ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 slutte med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 innehalde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??r.format}`}case"not_multiple_of":return`Ugyldig tal: m\xE5 vere eit multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjende n\xF8klar":"Ukjend n\xF8kkel"}: ${ne(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function H8(){return{localeError:Zle()}}var Gle=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"},map:{unit:"elementer",verb:"\xE5 inneholde"}};function t(r){return e[r]??null}let n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${pe(r.values[0])}`:`Ugyldig valg: forventet en av ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${ne(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function Z8(){return{localeError:Gle()}}var Wle=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"},map:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let n={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",mac:"MAC ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",credit_card:"i'tib\xE2r kart\u0131 numaras\u0131",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${s}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${pe(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=r;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[o.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function G8(){return{localeError:Wle()}}var Yle=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},map:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(r){return e[r]??null}let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",mac:"\u062F MAC \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",credit_card:"\u062F \u06A9\u0631\u06CC\u0689\u06CC\u067C \u06A9\u0627\u0631\u062A \u0634\u0645\u06CC\u0631\u0647",currency_code:"\u062F \u0627\u0633\u0639\u0627\u0631\u0648 \u06A9\u0648\u0689",iban:"IBAN",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${r.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${pe(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${ne(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[o.format]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${ne(r.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${r.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function W8(){return{localeError:Yle()}}var Xle=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"},map:{unit:"element\xF3w",verb:"mie\u0107"}};function t(r){return e[r]??null}let n={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",mac:"adres MAC",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",credit_card:"numer karty kredytowej",currency_code:"kod waluty",iban:"IBAN",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${pe(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[o.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Y8(){return{localeError:Xle()}}var Kle=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(a){return e[a]??null}let n={regex:"a entrada",email:"o endere\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\xE7\xE3o ISO",ipv4:"o endere\xE7o IPv4",ipv6:"o endere\xE7o IPv6",mac:"o endere\xE7o MAC",cidrv4:"o intervalo de endere\xE7os IPv4",cidrv6:"o intervalo de endere\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\xFAmero E.164",credit_card:"o n\xFAmero de cart\xE3o de cr\xE9dito",currency_code:"o c\xF3digo de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},i={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},r={string:{name:"texto",articles:i.masculine},number:{name:"n\xFAmero",articles:i.masculine},int:{name:"n\xFAmero inteiro",articles:i.masculine},boolean:{name:"valor booleano",articles:i.masculine},bigint:{name:"n\xFAmero bigint",articles:i.masculine},symbol:{name:"s\xEDmbolo",articles:i.masculine},undefined:{name:'valor "undefined"',articles:i.masculine},null:{name:'valor "nulo"',articles:i.masculine},never:{name:'valor "never"',articles:i.masculine},void:{name:'valor "void"',articles:i.masculine},date:{name:"data",articles:i.feminine},array:{name:"vetor",articles:i.masculine},object:{name:"objeto",articles:i.masculine},tuple:{name:"tuplo",articles:i.masculine},record:{name:"registo",articles:i.masculine},map:{name:"mapa",articles:i.masculine},set:{name:"conjunto",articles:i.masculine},file:{name:"ficheiro",articles:i.masculine},nonoptional:{name:"valor n\xE3o opcional",articles:i.masculine},nan:{name:'valor "NaN"',articles:i.masculine},function:{name:"fun\xE7\xE3o",articles:i.feminine}};function o(a,s){let l=r[a]??{name:`valor "${a}"`,articles:i.masculine};return`${l.articles[s]} ${l.name}`}return a=>{switch(a.code){case"invalid_type":{let s=o(a.expected,"indefinite"),l=me(a.input),c=o(l,"indefinite");return`Entrada inv\xE1lida: esperava ${s}, recebeu ${c}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: esperava ${pe(a.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperava uma das seguintes op\xE7\xF5es: ${ne(a.values,"|")}`;case"too_big":{let s=a.inclusive?"<=":"<",l=t(a.origin);return l?`Demasiado grande: esperava que ${o(a.origin,"definite")} tivesse ${s} ${a.maximum.toString()} ${l.unit??"elementos"}`:`Demasiado grande: esperava que ${o(a.origin,"definite")} fosse ${s} ${a.maximum.toString()}`}case"too_small":{let s=a.inclusive?">=":">",l=t(a.origin);return l?`Demasiado pequeno: esperava que ${o(a.origin,"definite")} tivesse ${s} ${a.minimum.toString()} ${l.unit??"elementos"}`:`Demasiado pequeno: esperava que ${o(a.origin,"definite")} fosse ${s} ${a.minimum.toString()}`}case"invalid_format":{let s=a;return s.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar por "${s.prefix}"`:s.format==="ends_with"?`Texto inv\xE1lido: deve terminar em "${s.suffix}"`:s.format==="includes"?`Texto inv\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${s.pattern}`:`Formato d${n[s.format]??a.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":{let s=a.keys.length>1?"s":"";return`Chave${s} inv\xE1lida${s}: ${ne(a.keys,", ")}`}case"invalid_key":return`Entrada inv\xE1lida n${o(a.origin,"definite")}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Valor de discrimina\xE7\xE3o inv\xE1lido. Esperava ${a.options.map(l=>`'${l}'`).join(" | ")}`:"Entrada inv\xE1lida";case"invalid_element":return`Entrada inv\xE1lida n${o(a.origin,"definite")}`;default:return"Entrada inv\xE1lida"}}};function X8(){return{localeError:Kle()}}var Jle=()=>{let e={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function t(a){return e[a]??null}let n={regex:"a entrada",email:"o endere\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\xE7\xE3o ISO",ipv4:"o endere\xE7o IPv4",ipv6:"o endere\xE7o IPv6",mac:"o endere\xE7o MAC",cidrv4:"a faixa de endere\xE7os IPv4",cidrv6:"a faixa de endere\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\xFAmero E.164",credit_card:"o n\xFAmero de cart\xE3o de cr\xE9dito",currency_code:"o c\xF3digo de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},i={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},r={string:{name:"texto",articles:i.masculine},number:{name:"n\xFAmero",articles:i.masculine},int:{name:"n\xFAmero inteiro",articles:i.masculine},boolean:{name:"valor booleano",articles:i.masculine},bigint:{name:"n\xFAmero bigint",articles:i.masculine},symbol:{name:"s\xEDmbolo",articles:i.masculine},undefined:{name:'valor "undefined"',articles:i.masculine},null:{name:'valor "nulo"',articles:i.masculine},never:{name:'valor "never"',articles:i.masculine},void:{name:'valor "void"',articles:i.masculine},date:{name:"data",articles:i.feminine},array:{name:"vetor",articles:i.masculine},object:{name:"objeto",articles:i.masculine},tuple:{name:"tupla",articles:i.feminine},record:{name:"registro",articles:i.masculine},map:{name:"mapa",articles:i.masculine},set:{name:"conjunto",articles:i.masculine},file:{name:"arquivo",articles:i.masculine},nonoptional:{name:"valor n\xE3o opcional",articles:i.masculine},nan:{name:'valor "NaN"',articles:i.masculine},function:{name:"fun\xE7\xE3o",articles:i.feminine}};function o(a,s){let l=r[a]??{name:`valor "${a}"`,articles:i.masculine};return`${l.articles[s]} ${l.name}`}return a=>{switch(a.code){case"invalid_type":{let s=o(a.expected,"indefinite"),l=me(a.input),c=o(l,"indefinite");return`Entrada inv\xE1lida: esperava ${s}, recebeu ${c}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: esperava ${pe(a.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperava uma das seguintes op\xE7\xF5es: ${ne(a.values,"|")}`;case"too_big":{let s=a.inclusive?"<=":"<",l=t(a.origin);return l?`Grande demais: esperava que ${o(a.origin,"definite")} tivesse ${s} ${a.maximum.toString()} ${l.unit??"elementos"}`:`Grande demais: esperava que ${o(a.origin,"definite")} fosse ${s} ${a.maximum.toString()}`}case"too_small":{let s=a.inclusive?">=":">",l=t(a.origin);return l?`Pequeno demais: esperava que ${o(a.origin,"definite")} tivesse ${s} ${a.minimum.toString()} ${l.unit??"elementos"}`:`Pequeno demais: esperava que ${o(a.origin,"definite")} fosse ${s} ${a.minimum.toString()}`}case"invalid_format":{let s=a;return s.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${s.prefix}"`:s.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${s.suffix}"`:s.format==="includes"?`Texto inv\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${s.pattern}`:`Formato d${n[s.format]??a.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":{let s=a.keys.length>1?"s":"";return`Chave${s} inv\xE1lida${s}: ${ne(a.keys,", ")}`}case"invalid_key":return`Entrada inv\xE1lida n${o(a.origin,"definite")}`;case"invalid_union":return a.options&&Array.isArray(a.options)&&a.options.length>0?`Valor de discrimina\xE7\xE3o inv\xE1lido. Esperava ${a.options.map(l=>`'${l}'`).join(" | ")}`:"Entrada inv\xE1lida";case"invalid_element":return`Entrada inv\xE1lida n${o(a.origin,"definite")}`;default:return"Entrada inv\xE1lida"}}};function K8(){return{localeError:Jle()}}var Qle=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function t(r){return e[r]??null}let n={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",credit_card:"num\u0103r de card de credit",currency_code:"cod valutar",iban:"IBAN",jwt:"JWT",template_literal:"intrare"},i={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${o}, primit ${s}`}case"invalid_value":return r.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${pe(r.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Prea mare: a\u0219teptat ca ${r.origin??"valoarea"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${r.origin??"valoarea"} s\u0103 fie ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Prea mic: a\u0219teptat ca ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${r.origin} s\u0103 fie ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${o.prefix}"`:o.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${o.suffix}"`:o.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${o.includes}"`:o.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${o.pattern}`:`Format invalid: ${n[o.format]??r.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${r.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${ne(r.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${r.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${r.origin}`;default:return"Intrare invalid\u0103"}}};function J8(){return{localeError:Qle()}}function Q8(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var ece=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},map:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(r){return e[r]??null}let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",mac:"MAC \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0439 \u043A\u0430\u0440\u0442\u044B",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${pe(r.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let s=Number(r.maximum),l=Q8(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let s=Number(r.minimum),l=Q8(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function e9(){return{localeError:ece()}}var tce=()=>{let e={string:{unit:"znakov",verb:"ma\u0165"},file:{unit:"bajtov",verb:"ma\u0165"},array:{unit:"prvkov",verb:"ma\u0165"},set:{unit:"prvkov",verb:"ma\u0165"},map:{unit:"polo\u017Eiek",verb:"ma\u0165"}};function t(r){return e[r]??null}let n={regex:"regul\xE1rny v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"d\xE1tum a \u010Das vo form\xE1te ISO",date:"d\xE1tum vo form\xE1te ISO",time:"\u010Das vo form\xE1te ISO",duration:"doba trvania ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"re\u0165azec zak\xF3dovan\xFD vo form\xE1te base64",base64url:"re\u0165azec zak\xF3dovan\xFD vo form\xE1te base64url",json_string:"re\u0165azec vo form\xE1te JSON",e164:"\u010D\xEDslo E.164",credit_card:"\u010D\xEDslo kreditnej karty",currency_code:"k\xF3d meny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"re\u0165azec",function:"funkcia",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 instanceof ${r.expected}, obdr\u017Ean\xE9 ${s}`:`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${o}, obdr\u017Ean\xE9 ${s}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${pe(r.values[0])}`:`Neplatn\xFD vstup: o\u010Dak\xE1van\xE1 jedna z hodn\xF4t ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je pr\xEDli\u0161 ve\u013Ek\xE1: ${r.origin??"hodnota"} mus\xED ma\u0165 ${o}${r.maximum.toString()} ${a.unit??"prvkov"}`:`Hodnota je pr\xEDli\u0161 ve\u013Ek\xE1: ${r.origin??"hodnota"} mus\xED by\u0165 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je pr\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED ma\u0165 ${o}${r.minimum.toString()} ${a.unit??"prvkov"}`:`Hodnota je pr\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED by\u0165 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neplatn\xFD re\u0165azec: mus\xED za\u010D\xEDna\u0165 na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD re\u0165azec: mus\xED kon\u010Di\u0165 na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD re\u0165azec: mus\xED obsahova\u0165 "${o.includes}"`:o.format==="regex"?`Neplatn\xFD re\u0165azec: mus\xED zodpoveda\u0165 vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${n[o.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED by\u0165 n\xE1sobkom ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1me kl\xFA\u010De: ${ne(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xFA\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}};function t9(){return{localeError:tce()}}var nce=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"},map:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let n={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",mac:"MAC naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",credit_card:"\u0161tevilka kreditne kartice",currency_code:"koda valute",iban:"IBAN",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${s}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${pe(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${n[o.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${ne(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function n9(){return{localeError:nce()}}var ice=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"},map:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(r){return e[r]??null}let n={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-adress",ipv6:"IPv6-adress",mac:"MAC-adress",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",credit_card:"kreditkortsnummer",currency_code:"valutakod",iban:"IBAN",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${s}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${pe(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${n[o.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${ne(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function i9(){return{localeError:ice()}}var rce=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},map:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(r){return e[r]??null}let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",mac:"MAC \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",credit_card:"\u0B95\u0B9F\u0BA9\u0BCD \u0B85\u0B9F\u0BCD\u0B9F\u0BC8 \u0B8E\u0BA3\u0BCD",currency_code:"\u0BA8\u0BBE\u0BA3\u0BAF\u0B95\u0BCD \u0B95\u0BC1\u0BB1\u0BBF\u0BAF\u0BC0\u0B9F\u0BC1",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return r.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${pe(r.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${ne(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function r9(){return{localeError:rce()}}var oce=()=>{let e={string:{unit:"\u0430\u043B\u043E\u043C\u0430\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},file:{unit:"\u0431\u0430\u0439\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},array:{unit:"\u0443\u043D\u0441\u0443\u0440",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},set:{unit:"\u0443\u043D\u0441\u0443\u0440",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},map:{unit:"\u0441\u0430\u0431\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"}};function t(r){return e[r]??null}let n={regex:"\u0432\u0443\u0440\u0443\u0434",email:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 email",url:"URL",emoji:"\u044D\u043C\u043E\u04B7\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0441\u0430\u043D\u0430\u0432\u0443 \u0432\u0430\u049B\u0442\u0438 ISO",date:"\u0441\u0430\u043D\u0430\u0438 ISO",time:"\u0432\u0430\u049B\u0442\u0438 ISO",duration:"\u0434\u0430\u0432\u043E\u043C\u043D\u043E\u043A\u0438\u0438 ISO",ipv4:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv4",ipv6:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv6",mac:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 MAC",cidrv4:"\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv4",cidrv6:"\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv6",base64:"\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64",base64url:"\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64url",json_string:"\u0441\u0430\u0442\u0440\u0438 JSON",e164:"\u0440\u0430\u049B\u0430\u043C\u0438 E.164",credit_card:"\u0440\u0430\u049B\u0430\u043C\u0438 \u043A\u043E\u0440\u0442\u0438 \u043A\u0440\u0435\u0434\u0438\u0442\u04E3",currency_code:"\u0440\u0430\u043C\u0437\u0438 \u0430\u0441\u044A\u043E\u0440",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0443\u0440\u0443\u0434"},i={nan:"NaN",number:"\u0440\u0430\u049B\u0430\u043C",string:"\u0441\u0430\u0442\u0440",array:"\u043C\u0430\u0441\u0441\u0438\u0432",object:"\u043E\u0431\u044A\u0435\u043A\u0442",date:"\u0441\u0430\u043D\u0430"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return`\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${o} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442, ${s} \u0433\u0438\u0440\u0438\u0444\u0442\u0430 \u0448\u0443\u0434`}case"invalid_value":return r.values.length===1?`\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${pe(r.values[0])} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`:`\u0418\u043D\u0442\u0438\u0445\u043E\u0431\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u044F\u043A\u0435 \u0430\u0437 ${ne(r.values,"|")} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${r.origin??"\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${o}${r.maximum.toString()} ${a.unit} ${a.verb}`:`\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${r.origin??"\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${o}${r.maximum.toString()} \u0431\u043E\u0448\u0430\u0434`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${r.origin} \u0431\u043E\u044F\u0434 ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${r.origin} \u0431\u043E\u044F\u0434 ${o}${r.minimum.toString()} \u0431\u043E\u0448\u0430\u0434`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${o.prefix}" \u043E\u0493\u043E\u0437 \u0448\u0430\u0432\u0430\u0434`:o.format==="ends_with"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${o.suffix}" \u0430\u043D\u04B7\u043E\u043C \u0451\u0431\u0430\u0434`:o.format==="includes"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 "${o.includes}"-\u0440\u043E \u0434\u0430\u0440 \u0431\u0430\u0440 \u0433\u0438\u0440\u0430\u0434`:o.format==="regex"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 \u043D\u0430\u043C\u0443\u043D\u0430\u0438 ${o.pattern} \u043C\u0443\u0432\u043E\u0444\u0438\u049B\u0430\u0442 \u043A\u0443\u043D\u0430\u0434`:`${n[o.format]??r.format}-\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442`}case"not_multiple_of":return`\u0420\u0430\u049B\u0430\u043C\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 ${r.divisor} \u0431\u0435 \u0431\u0430\u049B\u0438\u044F \u0442\u0430\u049B\u0441\u0438\u043C \u0448\u0430\u0432\u0430\u0434`;case"unrecognized_keys":return`\u041A\u0430\u043B\u0438\u0434${r.keys.length>1?"\u04B3\u043E\u0438":"\u0438"} \u043D\u043E\u043C\u0430\u044A\u043B\u0443\u043C: ${ne(r.keys,", ")}`;case"invalid_key":return`\u041A\u0430\u043B\u0438\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${r.origin}`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442\u0438 \u0434\u0438\u0441\u043A\u0440\u0438\u043C\u0438\u043D\u0430\u0442\u043E\u0440: ${r.options.map(a=>`'${a}'`).join(" | ")} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`:"\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442";case"invalid_element":return`\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${r.origin}`;default:return"\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442"}}};function o9(){return{localeError:oce()}}var ace=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},map:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(r){return e[r]??null}let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",mac:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 MAC",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",credit_card:"\u0E2B\u0E21\u0E32\u0E22\u0E40\u0E25\u0E02\u0E1A\u0E31\u0E15\u0E23\u0E40\u0E04\u0E23\u0E14\u0E34\u0E15",currency_code:"\u0E23\u0E2B\u0E31\u0E2A\u0E2A\u0E01\u0E38\u0E25\u0E40\u0E07\u0E34\u0E19",iban:"IBAN",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},i={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${pe(r.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${r.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${ne(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function a9(){return{localeError:ace()}}var sce=()=>{let e={string:{unit:"simwol",verb:"bolmaly"},file:{unit:"ba\xFDt",verb:"bolmaly"},array:{unit:"elementler",verb:"bolmaly"},set:{unit:"elementler",verb:"bolmaly"},map:{unit:"elementler",verb:"bolmaly"}};function t(r){return e[r]??null}let n={regex:"giri\u015F",email:"e-po\xE7ta salgysy",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sene we wagt",date:"ISO sene",time:"ISO wagt",duration:"ISO wagt aralygy",ipv4:"IPv4 salgysy",ipv6:"IPv6 salgysy",mac:"MAC salgysy",cidrv4:"IPv4 aralygy",cidrv6:"IPv6 aralygy",base64:"base64 bilen \u015Fifrlenen setir",base64url:"base64url bilen \u015Fifrlenen setir",json_string:"JSON setiri",e164:"E.164 nomeri",credit_card:"kredit kartyny\u0148 nomeri",currency_code:"wal\xFDuta kody",iban:"IBAN",jwt:"JWT",template_literal:"\u015Fablon"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return`N\xE4dogry baha: gara\u015Fylan ${o} \xFDerine ${s} alyndy`}case"invalid_value":return r.values.length===1?`N\xE4dogry baha: ${pe(r.values[0])} bolmaly`:`N\xE4dogry sa\xFDlaw: a\u015Fakdakylardan biri bolmaly: ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Has uly: gara\u015Fyl\xFDan ${r.origin??"baha"} ${o} ${r.maximum.toString()} ${a.unit??"element"}`:`Has uly: gara\u015Fyl\xFDan ${r.origin??"baha"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Has ki\xE7i: gara\u015Fyl\xFDan ${r.origin} ${o} ${r.minimum.toString()} ${a.unit}`:`Has ki\xE7i: gara\u015Fyl\xFDan ${r.origin} ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`N\xE4dogry setir: "${o.prefix}" bilen ba\u015Flamaly`:o.format==="ends_with"?`N\xE4dogry setir: "${o.suffix}" bilen gutarmaly`:o.format==="includes"?`N\xE4dogry setir: "${o.includes}" saklamaly`:o.format==="regex"?`N\xE4dogry setir: ${o.pattern} nusga la\xFDyk bolmaly`:`N\xE4dogry ${n[o.format]??r.format}`}case"not_multiple_of":return`N\xE4dogry san: ${r.divisor} bilen galyndysyz b\xF6l\xFCnmeli`;case"unrecognized_keys":return`Tanalma\xFDan a\xE7ar${r.keys.length>1?"lar":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde n\xE4dogry a\xE7ar`;case"invalid_union":return"N\xE4dogry baha";case"invalid_element":return`${r.origin} i\xE7inde n\xE4dogry baha`;default:return"N\xE4dogry baha"}}};function s9(){return{localeError:sce()}}var lce=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},map:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(r){return e[r]??null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",mac:"MAC adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",credit_card:"kredi kart\u0131 numaras\u0131",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${s}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${pe(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[o.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function l9(){return{localeError:lce()}}var cce=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},map:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(r){return e[r]??null}let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",mac:"\u0430\u0434\u0440\u0435\u0441\u0430 MAC",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0457 \u043A\u0430\u0440\u0442\u043A\u0438",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u0438",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${pe(r.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${r.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function gS(){return{localeError:cce()}}function c9(){return gS()}var uce=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},map:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(r){return e[r]??null}let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",mac:"\u0627\u06CC\u0645 \u0627\u06D2 \u0633\u06CC \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",credit_card:"\u06A9\u0631\u06CC\u0688\u0679 \u06A9\u0627\u0631\u0688 \u0646\u0645\u0628\u0631",currency_code:"\u06A9\u0631\u0646\u0633\u06CC \u06A9\u0648\u0688",iban:"IBAN",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${pe(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${ne(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${o}${r.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${o}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${r.keys.length>1?"\u0632":""}: ${ne(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function u9(){return{localeError:uce()}}var dce=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function t(r){return e[r]??null}let n={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",credit_card:"kredit karta raqami",currency_code:"valyuta kodi",iban:"IBAN",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${pe(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[o.format]??r.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${r.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${r.keys.length>1?"lar":""}: ${ne(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${r.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function d9(){return{localeError:dce()}}var hce=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},map:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(r){return e[r]??null}let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",mac:"\u0111\u1ECBa ch\u1EC9 MAC",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",credit_card:"s\u1ED1 th\u1EBB t\xEDn d\u1EE5ng",currency_code:"m\xE3 ti\u1EC1n t\u1EC7",iban:"IBAN",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${pe(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${n[o.format]??r.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${ne(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function h9(){return{localeError:hce()}}var fce=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"},map:{unit:"\u9879",verb:"\u5305\u542B"}};function t(r){return e[r]??null}let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",mac:"MAC\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",credit_card:"\u4FE1\u7528\u5361\u53F7",currency_code:"\u8D27\u5E01\u4EE3\u7801",iban:"IBAN",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${pe(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${n[o.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${ne(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function f9(){return{localeError:fce()}}var pce=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},map:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(r){return e[r]??null}let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",mac:"MAC \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",credit_card:"\u4FE1\u7528\u5361\u865F",currency_code:"\u8CA8\u5E63\u4EE3\u78BC",iban:"IBAN",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${pe(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${ne(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function p9(){return{localeError:pce()}}var mce=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"},map:{unit:"nkan",verb:"n\xED"}};function t(r){return e[r]??null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",mac:"\xE0d\xEDr\u1EB9\u0301s\xEC MAC",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",credit_card:"n\u1ECDmba kaadi gbese",currency_code:"koodu ow\xF3",iban:"IBAN",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=me(r.input),s=i[a]??a;return/^[A-Z]/.test(r.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${r.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${pe(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${ne(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${a.verb} ${o}${r.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.maximum}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${a.verb} ${o}${r.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.minimum}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${n[o.format]??r.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${r.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${ne(r.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function m9(){return{localeError:mce()}}var g9,JI=Symbol("ZodOutput"),QI=Symbol("ZodInput"),vS=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let i=n[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let i={...this.get(n)??{}};delete i.id;let r={...i,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function yS(){return new vS}(g9=globalThis).__zod_globalRegistry??(g9.__zod_globalRegistry=yS());var Ki=globalThis.__zod_globalRegistry;var kr=Symbol.for("zod.compile.invalid"),v9=Symbol.for("zod.compile.fallback"),_a=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},Ft=class extends Error{constructor(t,n=!0){super(`z.compile does not support ${t}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=n}};function vce(e,t){try{return xS(e,{assertOnly:!0})}catch{return t}}function iR(e,t){try{let n=xS(e),i=bS(e,n);return i._zod.bag.validator=vce(e,n),i}catch(n){if(t?.strict)throw n;return e}}function bS(e,t){if(hS(e))throw new Ft("a schema whose subtree contains a reference cycle");let n=mn(e),i=e._zod.run,r=i.__originalRun??i,o=(a,s)=>{if(s?.async||s?.direction==="backward"||s?.skipChecks||s?.[v9]||s&&fS(s,a.value))return r(a,s);let l=t(a.value);return l!==kr?(a.value=l,a):(s&&(s[v9]=!0),r(a,s))};return o.__originalRun=r,n._zod.bag.fallbackRun=r,n._zod.bag.validator=t,n._zod.run=o,i.__originalRun||yce(n,e,t),n}function yce(e,t,n){let i=e,r=t;if(typeof r.safeParse=="function"){let o=r.safeParse;i.safeParse=(a,s)=>{let l=n(a);return l!==kr?{success:!0,data:l}:o(a,s)}}if(typeof r.parse=="function"){let o=r.parse;i.parse=(a,s)=>{let l=n(a);return l!==kr?l:o(a,s)}}}function xS(e,t){let n=!0;try{n=hS(e)}catch{}if(n)throw new Ft("a schema whose subtree contains a reference cycle");let i={constants:new Map,constantCounter:0,varCounter:0,definite:!0},r=new ad(["input"]),o=Bn(r,i,e,"input",!t?.assertOnly);r.write(o===null?"return true;":`return ${o};`);let a=["INVALID",...i.constants.keys()],s=[kr,...i.constants.values()],l=r.content.join(`
`),c=t?.debug?a.length>0?`// Constants: ${a.join(", ")}
${l}`:l:"",u=Function,d=`return (input) => {
${l}
}`,f;try{f=new u(...a,d)(...s)}catch(h){throw new Ft(`this schema (generated code failed to evaluate: ${h.message})`)}return t?.debug&&(f.code=c),f.definite=i.definite,f}function xt(e,t){for(let[i,r]of e.constants)if(r===t)return i;let n=`c${e.constantCounter++}`;return e.constants.set(n,t),n}function ud(e,t){return e.definite=!1,xt(e,t)}function ft(e){return`v${e.varCounter++}`}function bce(e,t){let n=e._zod.run({value:t,issues:[]},{});if(n&&typeof n.then=="function")return kr;let i=n;return i.issues.length===0?i.value:kr}function cr(e,t,n,i,r=!0){let o=e.content.length,a=t.constants.size,s=t.constantCounter,l=t.varCounter;try{return Bn(e,t,n,i,r)}catch(c){if(!(c instanceof Ft)||!c.islandable)throw c;if(e.content.length=o,t.constants.size>a){let u=Array.from(t.constants.keys()).slice(a);for(let d of u)t.constants.delete(d)}return t.constantCounter=s,t.varCounter=l,xce(e,t,n,i)}}function xce(e,t,n,i){t.definite=!1;let r=xt(t,n),o=xt(t,bce),a=ft(t);return e.write(`const ${a} = ${o}(${r}, ${i});`),e.write(`if (${a} === INVALID) return INVALID;`),a}var _ce=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function Sce(e,t,n,i){let r=n._zod.def.checks;if(!r||r.length===0)return i;let o=i;for(let a of r){let s=a._zod.def;if(s.when&&!_ce.has(s.check))throw new Ft('check with a custom "when" condition');switch(s.check){case"greater_than":$ce(e,t,s,o);break;case"less_than":wce(e,t,s,o);break;case"multiple_of":kce(e,t,s,o);break;case"number_format":$9(e,s,o);break;case"min_length":{let l=ld(s.minimum,"min_length"),c=eR(e,t,o,`${o}.length >= ${l} && ${o}.length < ${s.minimum*2}`);e.write(`if (${c} < ${l}) return INVALID;`);break}case"max_length":{let l=ld(s.maximum,"max_length"),c=eR(e,t,o,`${o}.length > ${l}`);e.write(`if (${c} > ${l}) return INVALID;`);break}case"length_equals":{let l=ld(s.length,"length_equals"),c=eR(e,t,o,`${o}.length >= ${l} && ${o}.length <= ${s.length*2}`);e.write(`if (${c} !== ${l}) return INVALID;`);break}case"min_size":e.write(`if (${o}.size < ${ld(s.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${o}.size > ${ld(s.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${o}.size !== ${ld(s.size,"size_equals")}) return INVALID;`);break;case"string_format":o=w9(e,t,s,o);break;case"custom":o=Ice(e,t,a,o);break;case"bigint_format":Mce(e,s,o);break;case"mime_type":Cce(e,t,s,o);break;case"property":Tce(e,t,s,o);break;case"properties":zce(e,t,s,o);break;case"overwrite":{let l=ft(t);Ace(e,t,a,o,l),o=l;break}default:throw new Ft(`check type ${s.check}`)}}return o}function eR(e,t,n,i){let r=xt(t,rd),o=ft(t);return e.write(`const ${o} = typeof ${n} === "string" && ${i} ? ${r}(${n}) : ${n}.length;`),o}function ld(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new Ft(`${t} bound of type ${typeof e}`);return`${e}`}function S9(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new Ft("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new Ft("comparison check with Invalid Date bound");return xt(e,t)}throw new Ft(`comparison check bound of type ${typeof t}`)}function $ce(e,t,n,i){let r=n.inclusive?"<":"<=";e.write(`if (${i} ${r} ${S9(t,n.value)}) return INVALID;`)}function wce(e,t,n,i){let r=n.inclusive?">":">=";e.write(`if (${i} ${r} ${S9(t,n.value)}) return INVALID;`)}function kce(e,t,n,i){if(typeof n.value=="bigint"){if(n.value===BigInt(0))throw new Ft("multiple_of check with a zero divisor");e.write(`if (${i} % ${n.value}n !== 0n) return INVALID;`)}else{let r=xt(t,lv);e.write(`if (${r}(${i}, ${ld(n.value,"multiple_of")}) !== 0) return INVALID;`)}}function $9(e,t,n){let i=t.format;switch(i){case"safeint":e.write(`if (!Number.isSafeInteger(${n})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${n}) || ${n} < -2147483648 || ${n} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${n}) || ${n} < 0 || ${n} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${n}) || ${n} < -3.4028234663852886e38 || ${n} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${n})) return INVALID;`);break;default:throw new Ft(`number format ${i}`)}}function Mce(e,t,n){let i=t.format;if(i)switch(i){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break;default:throw new Ft(`bigint format ${i}`)}}function Cce(e,t,n,i){let r=n.mime;if(r&&r.length>0){let o=xt(t,new Set(r));e.write(`if (!${o}.has(${i}.type)) return INVALID;`)}}function zce(e,t,n,i){if(n.when)throw new Ft('check with a custom "when" condition');e.write(`if (${i} == null) return INVALID;`);let r=n.shape;for(let o of Reflect.ownKeys(r)){let a=typeof o=="symbol"?xt(t,o):$r(o),s=ft(t);e.write(`const ${s} = ${i}[${a}];`),cr(e,t,r[o],s,!1)}}function Tce(e,t,n,i){let r=`${i}[${JSON.stringify(n.property)}]`;Bn(e,t,n.schema,r)}function Ace(e,t,n,i,r){let o=n._zod.def.tx;if(!o)throw new Ft("overwrite check without a transform function");if(dd(o))throw new _a("z.compile: async overwrite transforms are not supported");let a=xt(t,o);e.write(`const ${r} = ${a}(${i});`)}function tR(){throw new Zr}function rR(e){this.issues.push(e)}function Ice(e,t,n,i){let r=n._zod.def;if(r.fn){if(dd(r.fn))throw new _a("z.compile: async .refine() predicates are not supported");let o=ud(t,r.fn),a=xt(t,tR),s=ft(t);return e.write(`const ${s} = ${o}(${i});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`),i}if(n._zod.check){if(dd(n._zod.check))throw new _a("z.compile: async .superRefine() / check functions are not supported");let o=n._zod.check,s=ud(t,c=>{let u={value:c,issues:[],addIssue:rR};return o(u)instanceof Promise&&tR(),u.issues.length===0?u.value:kr}),l=ft(t);return e.write(`const ${l} = ${s}(${i});`),e.write(`if (${l} === INVALID) return INVALID;`),l}throw new Ft("custom check without a predicate or check function")}var Rce=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function w9(e,t,n,i,r=!0){let o=n.format;if(o==="base64"){let c=xt(t,zv);return e.write(`if (!${c}(${i})) return INVALID;`),i}if(o==="base64url"){let c=xt(t,Q1);return e.write(`if (!${c}(${i})) return INVALID;`),i}if(o==="jwt"){let c=xt(t,nS),u=xt(t,n.alg??null);return e.write(`if (!${c}(${i}, ${u})) return INVALID;`),i}if(o==="ipv6"){let c=xt(t,Cv);return e.write(`if (!${c}(${i})) return INVALID;`),i}if(o==="cidrv6"){let c=xt(t,K1);return e.write(`if (!${c}(${i})) return INVALID;`),i}if(o==="credit_card"){let c=xt(t,eS);return e.write(`if (!${c}(${i})) return INVALID;`),i}if(o==="iban"){let c=xt(t,tS);return e.write(`if (!${c}(${i})) return INVALID;`),i}let a=n;if(o==="url"||o==="httpurl"||a.normalize||a.hostname!==void 0||a.protocol!==void 0){let c=xt(t,W1),u=xt(t,n),d=ft(t),f=ft(t);if(e.write(`const ${d} = ${i}.trim();`),e.write(`const ${f} = ${c}(${d}, ${u});`),e.write(`if (typeof ${f} === "number") return INVALID;`),a.hostname!==void 0){let g=xt(t,Y1);e.write(`if (!${g}(${f}, ${u}.hostname)) return INVALID;`)}if(a.protocol!==void 0){let g=xt(t,X1);e.write(`if (!${g}(${f}, ${u}.protocol)) return INVALID;`)}if(!r)return null;let h=ft(t),p=a.normalize?`${f}.href`:`${xt(t,Mv)}(${d})`;return e.write(`const ${h} = ${p};`),h}let s=n.fn;if(s){if(dd(s))throw new Ft(`async string format ${o}`);let c=xt(t,s);return e.write(`if (!${c}(${i})) return INVALID;`),i}if(Rce.has(o)&&n.pattern){let c=xt(t,n.pattern);return e.write(`${c}.lastIndex = 0;`),e.write(`if (!${c}.test(${i})) return INVALID;`),i}let l=n.format;switch(l){case"regex":throw new Ft("regex format without a pattern");case"lowercase":e.write(`if (${i} !== ${i}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${i} !== ${i}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${i}.includes(${$r(n.includes)})) return INVALID;`);break;case"starts_with":{let c=n.prefix;e.write(`if (${i}.slice(0, ${c.length}) !== ${$r(c)}) return INVALID;`);break}case"ends_with":{let c=n.suffix;e.write(`if (${i}.slice(-${c.length}) !== ${$r(c)}) return INVALID;`);break}default:throw new Ft(`string format ${l}`)}return i}function Bn(e,t,n,i,r=!0){let o=n._zod.def,a=o.type;if(o.coerce)throw new Ft(`coercion (z.coerce.${a}())`);let s=r||!!o.checks?.length,l;switch(a){case"string":l=Lce(e,t,n,i,s);break;case"number":l=Ece(e,n,i);break;case"boolean":l=Dce(e,i);break;case"bigint":l=Oce(e,n,i);break;case"symbol":l=Nce(e,i);break;case"undefined":l=Pce(e,i);break;case"null":l=jce(e,i);break;case"any":case"unknown":l=i;break;case"never":e.write("return INVALID;"),l=i;break;case"void":l=Uce(e,i);break;case"nan":l=Bce(e,i);break;case"date":l=Fce(e,i);break;case"object":l=qce(e,t,n,i,s);break;case"optional":l=Vce(e,t,n,i,s);break;case"nullable":l=Gce(e,t,n,i,s);break;case"array":l=Wce(e,t,n,i,s);break;case"literal":l=Yce(e,t,n,i);break;case"enum":l=Xce(e,t,n,i);break;case"readonly":{let c=b9(e,t,n,i),u=ft(t);e.write(`const ${u} = Object.freeze(${c});`),l=u;break}case"success":b9(e,t,n,i),l="true";break;case"default":case"prefault":l=Kce(e,t,n,i);break;case"nonoptional":l=Jce(e,t,n,i);break;case"tuple":l=Qce(e,t,n,i);break;case"union":l=eue(e,t,n,i);break;case"intersection":l=iue(e,t,n,i);break;case"record":l=rue(e,t,n,i);break;case"map":l=aue(e,t,n,i);break;case"set":l=sue(e,t,n,i);break;case"file":l=lue(e,i);break;case"template_literal":l=cue(e,t,n,i);break;case"lazy":l=uue(e,t,n,i);break;case"pipe":l=due(e,t,n,i);break;case"custom":l=hue(e,t,n,i);break;case"transform":l=mue(e,t,n,i);break;case"catch":l=pue(e,t,n,i);break;default:throw new Ft(`schema type ${a}`)}return l===null?null:Sce(e,t,n,l)}function Lce(e,t,n,i,r=!0){e.write(`if (typeof ${i} !== "string") return INVALID;`);let o=n._zod.def;return o.format===void 0?i:w9(e,t,o,i,r)}function Ece(e,t,n){e.write(`if (typeof ${n} !== "number" || !Number.isFinite(${n})) return INVALID;`);let i=t._zod.def;return i.check==="number_format"&&i.format&&$9(e,{format:i.format},n),n}function Dce(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function Oce(e,t,n){e.write(`if (typeof ${n} !== "bigint") return INVALID;`);let i=t._zod.def;if(i.format)switch(i.format){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break}return n}function Nce(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function Pce(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function jce(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function Uce(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function Bce(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function Fce(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function qce(e,t,n,i,r=!0){let o=n._zod.def;e.write(`if (typeof ${i} !== "object" || ${i} === null || Array.isArray(${i})) return INVALID;`);let a=o.shape,s=Object.keys(a),l=Object.getOwnPropertySymbols(a),c=l.length?[...s,...l]:s,u=y=>typeof y=="symbol"?xt(t,y):$r(y),d=y=>typeof y=="symbol"?`[${u(y)}]`:$r(y),f=a;if(s.includes("__proto__"))throw new Ft('object shape key "__proto__"');let h=new Map;for(let y of c){let b=f[y],x=u(y),_=ft(t);if(e.write(`const ${_} = ${i}[${x}];`),b._zod.optin!==void 0){let S=ft(t);e.write(`let ${S} = (() => {`),e.indented($=>{let C=cr($,t,b,_);$.write(`return ${C};`)}),e.write("})();"),b._zod.optout==="optional"?(e.write(`if (${S} === INVALID) {`),e.indented($=>{$.write(`if (${x} in ${i}) return INVALID;`),$.write(`${S} = undefined;`)}),e.write("}")):e.write(`if (${S} === INVALID) return INVALID;`),h.set(y,S)}else{Zce(b)&&e.write(`if (!(${x} in ${i})) return INVALID;`);let S=cr(e,t,b,_,r);S!==null&&h.set(y,S)}}let p=o.catchall,g="none";if(p){let y=p._zod.def.type;if(y==="never"){let b=s.map(x=>`k !== ${$r(x)}`).join(" && ")||"true";e.write(`for (const k in ${i}) {`),e.indented(x=>{x.write(`if (${b}) return INVALID;`)}),e.write("}")}else(y==="unknown"||y==="any")&&!p._zod.def.checks?.length?g="passthrough":g="schema"}let v=ft(t),m=c.some(y=>y9(f[y])||nR(f[y]));if(!r){if(g==="schema"){let y=s.length>0?xt(t,new Set(s)):null;e.write(`for (const k in ${i}) {`),e.indented(b=>{b.write('if (k === "__proto__") continue;'),y&&b.write(`if (${y}.has(k)) continue;`);let x=ft(t);b.write(`const ${x} = ${i}[k];`),cr(b,t,p,x,!1)}),e.write("}")}return null}if(m){e.write(`const ${v} = {};`);for(let y of c){let b=u(y),x=h.get(y);nR(f[y])?e.write(`if (${b} in ${i}) ${v}[${b}] = ${x};`):y9(f[y])?e.write(`if (${x} !== undefined || ${b} in ${i}) ${v}[${b}] = ${x};`):e.write(`${v}[${b}] = ${x};`)}}else{let y=c.map(b=>`${d(b)}: ${h.get(b)}`).join(", ");e.write(`const ${v} = { ${y} };`)}if(g!=="none"){let y=s.length>0?xt(t,new Set(s)):null;e.write(`for (const k in ${i}) {`),e.indented(b=>{if(b.write('if (k === "__proto__") continue;'),y&&b.write(`if (${y}.has(k)) continue;`),g==="passthrough")b.write(`${v}[k] = ${i}[k];`);else{let x=ft(t);b.write(`const ${x} = ${i}[k];`);let _=cr(b,t,p,x);b.write(`${v}[k] = ${_};`)}}),e.write("}")}return v}function Vce(e,t,n,i,r=!0){let o=n._zod.def;if(Hce(n))return Bn(e,t,o.innerType,i,r);if(o.innerType._zod.optin==="defaulted"){let s=ft(t),l=ft(t);return e.write(`let ${s};`),e.write(`if (${i} === undefined) {`),e.indented(c=>{c.write(`const ${l} = (() => {`),c.indented(u=>{let d=Bn(u,t,o.innerType,i);u.write(`return ${d};`)}),c.write("})();"),c.write(`if (${l} !== INVALID) ${s} = ${l};`)}),e.write("} else {"),e.indented(c=>{let u=Bn(c,t,o.innerType,i);c.write(`${s} = ${u};`)}),e.write("}"),s}let a=r?ft(t):null;return a&&e.write(`let ${a};`),e.write(`if (${i} !== undefined) {`),e.indented(s=>{let l=Bn(s,t,o.innerType,i,r);a&&l!==null&&s.write(`${a} = ${l};`)}),e.write("}"),a}function Hce(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function Zce(e){return e._zod.optin===void 0&&cd(e)}function cd(e){if(e._zod.def.coerce)return!0;let t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return t.innerType?cd(t.innerType):!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return t.innerType?cd(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some(cd):!0;case"intersection":return!t.left||!t.right?!0:cd(t.left)&&cd(t.right);case"pipe":return t.in?cd(t.in):!0;default:return!0}}function nR(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function y9(e){return(e._zod.optin!=="defaulted"||e._zod.optout==="optional")&&Jf(e)}function Jf(e){let t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return t.innerType?Jf(t.innerType):!0;case"union":return t.options?t.options.some(Jf):!0;case"intersection":return!t.left||!t.right||Jf(t.left)||Jf(t.right);case"pipe":return t.out?Jf(t.out):!0;default:return!0}}function Gce(e,t,n,i,r=!0){let o=n._zod.def,a=r?ft(t):null;return a&&e.write(`let ${a} = null;`),e.write(`if (${i} !== null) {`),e.indented(s=>{let l=Bn(s,t,o.innerType,i,r);a&&l!==null&&s.write(`${a} = ${l};`)}),e.write("}"),a}function Wce(e,t,n,i,r=!0){let o=n._zod.def;e.write(`if (!Array.isArray(${i})) return INVALID;`);let a=r?ft(t):null,s=ft(t),l=ft(t);return a&&e.write(`const ${a} = new Array(${i}.length);`),e.write(`for (let ${s} = 0; ${s} < ${i}.length; ${s}++) {`),e.indented(c=>{c.write(`const ${l} = ${i}[${s}];`);let u=cr(c,t,o.element,l,r);a&&u!==null&&c.write(`${a}[${s}] = ${u};`)}),e.write("}"),a}function Yce(e,t,n,i){let o=n._zod.def.values;if(o.length!==1){let s=xt(t,new Set(o));return e.write(`if (!${s}.has(${i})) return INVALID;`),i}let a=o[0];if(typeof a=="number"&&Number.isNaN(a)){let s=xt(t,new Set(o));return e.write(`if (!${s}.has(${i})) return INVALID;`),i}if(typeof a=="string")e.write(`if (${i} !== ${$r(a)}) return INVALID;`);else if(typeof a=="number"||typeof a=="boolean")e.write(`if (${i} !== ${a}) return INVALID;`);else if(a===null)e.write(`if (${i} !== null) return INVALID;`);else if(a===void 0)e.write(`if (${i} !== undefined) return INVALID;`);else if(typeof a=="bigint")e.write(`if (${i} !== ${a}n) return INVALID;`);else throw new Ft(`literal type ${typeof a}`);return i}function Xce(e,t,n,i){let r=n._zod.values;if(!r)throw new Ft("enum schema without enumerated values");let o=xt(t,r);return e.write(`if (!${o}.has(${i})) return INVALID;`),i}function b9(e,t,n,i){let r=n._zod.def;return Bn(e,t,r.innerType,i)}function Kce(e,t,n,i){let r=n._zod.def,a=Object.getOwnPropertyDescriptor(n._zod.def,"defaultValue")?()=>n._zod.def.defaultValue:void 0;if(n._zod.def.type==="prefault"){if(!a)return Bn(e,t,r.innerType,i);let l=xt(t,a),c=ft(t);return e.write(`let ${c} = ${i};`),e.write(`if (${i} === undefined) ${c} = ${l}();`),Bn(e,t,r.innerType,c)}let s=ft(t);if(a){let l=xt(t,a),c=xt(t,cv);e.write(`let ${s};`),e.write(`if (${i} === undefined) {`),e.indented(u=>{u.write(`${s} = ${c}(${l}());`)}),e.write("} else {"),e.indented(u=>{let d=Bn(u,t,r.innerType,i);u.write(`${s} = ${d} === undefined ? ${c}(${l}()) : ${d};`)}),e.write("}")}else e.write(`let ${s};`),e.write(`if (${i} !== undefined) {`),e.indented(l=>{let c=Bn(l,t,r.innerType,i);l.write(`${s} = ${c};`)}),e.write("}");return s}function Jce(e,t,n,i){let r=n._zod.def,o=Bn(e,t,r.innerType,i),a=ft(t);return e.write(`const ${a} = ${o};`),e.write(`if (${a} === undefined) return INVALID;`),a}function Qce(e,t,n,i){let r=n._zod.def,o=r.items,a=r.rest;e.write(`if (!Array.isArray(${i})) return INVALID;`);let s=x9(o,"optin"),l=x9(o,"optout");a?e.write(`if (${i}.length < ${s}) return INVALID;`):e.write(`if (${i}.length < ${s} || ${i}.length > ${o.length}) return INVALID;`);let c=ft(t);e.write(`const ${c} = [];`);for(let u=0;u<o.length;u++){let d=o[u];if(u>=l)e.write(`if (${c}.length === ${u}) {`),e.indented(f=>{f.write(`if (${u} < ${i}.length) {`),f.indented(h=>{let p=ft(t);h.write(`const ${p} = ${i}[${u}];`);let g=cr(h,t,d,p);h.write(`${c}[${u}] = ${g};`)}),f.write("} else {"),f.indented(h=>{if(nR(d)){h.write(`${c}.length = ${u};`);return}let p=ft(t),g=ft(t);h.write(`const ${p} = undefined;`),h.write(`const ${g} = (() => {`),h.indented(v=>{let m=cr(v,t,d,p);v.write(`return ${m};`)}),h.write("})();"),h.write(`if (${g} === INVALID || ${g} === undefined) ${c}.length = ${u};`),h.write(`else ${c}[${u}] = ${g};`)}),f.write("}")}),e.write("}");else{let f=ft(t);e.write(`const ${f} = ${i}[${u}];`);let h=cr(e,t,d,f);e.write(`${c}[${u}] = ${h};`)}}if(a){let u=ft(t),d=ft(t);e.write(`for (let ${u} = ${o.length}; ${u} < ${i}.length; ${u}++) {`),e.indented(f=>{f.write(`const ${d} = ${i}[${u}];`);let h=cr(f,t,a,d);f.write(`${c}[${u}] = ${h};`)}),e.write("}")}return c}function x9(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function eue(e,t,n,i){let r=n._zod.def,o=r.options;if(r.discriminator)return tue(e,t,r,i);if(r.inclusive===!1)throw new Ft("exclusive unions (z.xor)");if(o.length===0)return e.write("return INVALID;"),i;if(o.length===1)return Bn(e,t,o[0],i);if(o.every(l=>l._zod.def.type==="literal"&&!l._zod.def.checks?.length)){let l=new Set(o.flatMap(u=>u._zod.def.values)),c=xt(t,l);return e.write(`if (!${c}.has(${i})) return INVALID;`),i}let s=ft(t);e.write(`let ${s};`);for(let l=0;l<o.length;l++){let c=o[l];l===0?e.write(`${s} = (() => {`):e.write(`if (${s} === INVALID) ${s} = (() => {`),e.indented(u=>{let d=Bn(u,t,c,i);u.write(`return ${d};`)}),e.write("})();")}return e.write(`if (${s} === INVALID) return INVALID;`),s}function tue(e,t,n,i){if(n.unionFallback)throw new Ft("discriminated union with unionFallback");if(n.options.length===0)return e.write("return INVALID;"),i;let r=ft(t),o=ft(t);e.write(`const ${r} = ${i}?.[${$r(n.discriminator)}];`),e.write(`let ${o};`);let a=!0,s=new Set;for(let l of n.options){let c=l._zod.propValues?.[n.discriminator];if(!c||c.size===0)throw new Ft("discriminated union option without static discriminator values");for(let f of c){if(s.has(f))throw new Ft(`duplicate discriminator value ${String(f)}`);s.add(f)}let u=Array.from(c,f=>nue(t,r,f)),d=a?"if":"else if";e.write(`${d} (${u.join(" || ")}) {`),e.indented(f=>{let h=Bn(f,t,l,i);f.write(`${o} = ${h};`)}),e.write("}"),a=!1}return e.write("else { return INVALID; }"),o}function nue(e,t,n){if(typeof n=="string")return`${t} === ${$r(n)}`;if(typeof n=="number")return Number.isNaN(n)?`Number.isNaN(${t})`:`${t} === ${n}`;if(typeof n=="boolean")return`${t} === ${n}`;if(n===null)return`${t} === null`;if(n===void 0)return`${t} === undefined`;if(typeof n=="bigint")return`${t} === ${n}n`;if(typeof n=="symbol"){let i=xt(e,n);return`${t} === ${i}`}throw new Ft(`literal discriminator value ${String(n)}`)}function iue(e,t,n,i){let r=n._zod.def;t.definite=!1;let o=cr(e,t,r.left,i),a=cr(e,t,r.right,i),s=xt(t,Yf),l=ft(t);return e.write(`const ${l} = ${s}(${o}, ${a});`),e.write(`if (!${l}.valid) return INVALID;`),`${l}.data`}function rue(e,t,n,i){let r=n._zod.def,o=xt(t,Uo);e.write(`if (!${o}(${i})) return INVALID;`);let a=ft(t),s=ft(t),l=ft(t);e.write(`const ${a} = {};`);let c=r,u=c.partial?void 0:r.keyType._zod.values;if(u){let h=[];for(let g of u){if(!(typeof g=="string"||typeof g=="number"||typeof g=="symbol"))throw new Ft(`record key value ${String(g)}`);let v=typeof g=="number"?g.toString():g;if(v==="__proto__")throw new Ft('record key "__proto__"');h.push(v);let m=xt(t,g),y=Bn(e,t,r.keyType,m),b=ft(t);e.write(`const ${b} = ${i}[${oue(t,v)}];`);let x=cr(e,t,r.valueType,b);e.write(`${a}[${y}] = ${x};`)}let p=xt(t,new Set(h));return e.write(`for (const ${s} in ${i}) {`),e.indented(g=>{g.write(`if (${p}.has(${s})) continue;`),c.mode==="loose"?g.write(`if (${s} !== "__proto__") ${a}[${s}] = ${i}[${s}];`):g.write("return INVALID;")}),e.write("}"),a}let d=r.keyType._zod.def;if(!(d.type==="string"&&d.format===void 0&&!d.coerce&&(d.checks?.length??0)===0)){let h=r.mode==="loose",p=xS(r.keyType);p.definite===!1&&(t.definite=!1);let g=xt(t,p),v=xt(t,dl),m=ft(t);return _9(e,t,i,s,y=>{y.write(`let ${m} = ${g}(${s});`),y.write(`if (${m} === INVALID && typeof ${s} === "string" && ${v}.test(${s})) ${m} = ${g}(Number(${s}));`),h?y.write(`if (${m} === INVALID) { ${a}[${s}] = ${i}[${s}]; continue; }`):y.write(`if (${m} === INVALID) return INVALID;`),y.write(`if (${m} === "__proto__") continue;`);let b=ft(t);y.write(`const ${b} = ${i}[${s}];`);let x=cr(y,t,r.valueType,b);y.write(`${a}[${m}] = ${x};`)}),a}return _9(e,t,i,s,h=>{h.write(`const ${l} = ${i}[${s}];`);let p=cr(h,t,r.valueType,l);h.write(`${a}[${s}] = ${p};`)},"return INVALID;"),a}function _9(e,t,n,i,r,o){let a=xt(t,Object.prototype.propertyIsEnumerable),s=ft(t),l=ft(t),c=ft(t);e.write(`const ${s} = Object.getOwnPropertySymbols(${n});`),e.write(`const ${l} = Object.getOwnPropertyNames(${n});`),e.write(`for (let ${c} = 0; ${c} < ${l}.length; ${c}++) {`),e.indented(u=>{u.write(`const ${i} = ${l}[${c}];`),u.write(`if (${i} === "__proto__" || !${a}.call(${n}, ${i})) continue;`),r(u)}),e.write("}"),e.write(`for (let ${c} = 0; ${c} < ${s}.length; ${c}++) {`),e.indented(u=>{u.write(`const ${i} = ${s}[${c}];`),u.write(`if (!${a}.call(${n}, ${i})) continue;`),o?u.write(o):r(u)}),e.write("}")}function oue(e,t){return typeof t=="string"?$r(t):xt(e,t)}function aue(e,t,n,i){let r=n._zod.def;e.write(`if (!(${i} instanceof Map)) return INVALID;`);let o=ft(t),a=ft(t),s=ft(t);return e.write(`const ${o} = new Map();`),e.write(`for (const [${a}, ${s}] of ${i}) {`),e.indented(l=>{let c=Bn(l,t,r.keyType,a),u=Bn(l,t,r.valueType,s);l.write(`${o}.set(${c}, ${u});`)}),e.write("}"),o}function sue(e,t,n,i){let r=n._zod.def;e.write(`if (!(${i} instanceof Set)) return INVALID;`);let o=ft(t),a=ft(t);return e.write(`const ${o} = new Set();`),e.write(`for (const ${a} of ${i}) {`),e.indented(s=>{let l=Bn(s,t,r.valueType,a);s.write(`${o}.add(${l});`)}),e.write("}"),o}function lue(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function cue(e,t,n,i){e.write(`if (typeof ${i} !== "string") return INVALID;`);let r=n._zod.pattern;if(r){let o=xt(t,r);e.write(`${o}.lastIndex = 0;`),e.write(`if (!${o}.test(${i})) return INVALID;`)}return i}function uue(e,t,n,i){let r=n._zod.def,o=ud(t,r.getter),a=xt(t,{parser:null});e.write(`if (!${a}.parser) {`),e.indented(l=>{l.write(`const inner = ${o}();`),l.write(`${a}.parser = function(input) {`),l.indented(c=>{c.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),c.write("return result.issues.length === 0 ? result.value : INVALID;")}),l.write("};")}),e.write("}");let s=ft(t);return e.write(`const ${s} = ${a}.parser(${i});`),e.write(`if (${s} === INVALID) return INVALID;`),s}function due(e,t,n,i){let r=n._zod.def,o=Bn(e,t,r.in,i);if(r.transform){if(dd(r.transform))throw new _a("z.compile: async transforms in pipes are not supported");let a=r.transform,l=ud(t,u=>{let d={value:u,issues:[],addIssue:rR},f=a(u,d);return f instanceof Promise?kr:d.issues.length===0?f:kr}),c=ft(t);return e.write(`const ${c} = ${l}(${o});`),e.write(`if (${c} === INVALID) return INVALID;`),Bn(e,t,r.out,c)}else return Bn(e,t,r.out,o)}function dd(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function hue(e,t,n,i){let r=n._zod.def;if(r.fn){if(dd(r.fn))throw new _a("z.compile: async custom predicates are not supported");let o=ud(t,r.fn),a=xt(t,tR),s=ft(t);e.write(`const ${s} = ${o}(${i});`),e.write(`if (${s} instanceof Promise) ${a}();`),e.write(`if (!${s}) return INVALID;`)}else throw new Ft("custom schema without a predicate function");return i}function fue(e,t,n){let i=e._zod.run({value:n,issues:[]},{});if(i&&typeof i.then=="function")return kr;let r=i;return r.issues.length===0?r.value:t()}function pue(e,t,n,i){let r=n._zod.def;if(!r.catchValue[k1])throw new Ft("catch with a callback (only a constant catch value compiles)",!1);let o=ft(t);e.write(`let ${o} = (() => {`),e.indented(c=>{let u=cr(c,t,r.innerType,i);c.write(`return ${u};`)}),e.write("})();");let a=xt(t,r.innerType),s=ud(t,r.catchValue),l=xt(t,fue);return e.write(`if (${o} === INVALID) {`),e.indented(c=>{c.write(`${o} = ${l}(${a}, ${s}, ${i});`),c.write(`if (${o} === INVALID) return INVALID;`)}),e.write("}"),o}function mue(e,t,n,i){let r=n._zod.def;if(r.transform){if(dd(r.transform))throw new _a("z.compile: async transforms are not supported");let o=r.transform,s=ud(t,c=>{let u={value:c,issues:[],addIssue:rR},d=o(c,u);return d instanceof Promise?kr:u.issues.length===0?d:kr}),l=ft(t);return e.write(`const ${l} = ${s}(${i});`),e.write(`if (${l} === INVALID) return INVALID;`),l}return i}function _S(e){return e.checks&&(e.checks=[...e.checks]),e}function oR(e,t){return new e(_S({type:"string",...Me(t)}))}function aR(e,t){return new e(_S({type:"string",coerce:!0,...Me(t)}))}function SS(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Me(t)})}function $S(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Me(t)})}function wS(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Me(t)})}function kS(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Me(t)})}function MS(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Me(t)})}function CS(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Me(t)})}function jv(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Me(t)})}function zS(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Me(t)})}function TS(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Me(t)})}function AS(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Me(t)})}function IS(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Me(t)})}function RS(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Me(t)})}function LS(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Me(t)})}function ES(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Me(t)})}function DS(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Me(t)})}function OS(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Me(t)})}function sR(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...Me(t)})}function NS(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Me(t)})}function PS(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Me(t)})}function jS(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Me(t)})}function US(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Me(t)})}function BS(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Me(t)})}function lR(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...Me(t)})}function cR(e,t){return new e({type:"string",format:"iban",check:"string_format",abort:!1,...Me(t)})}function FS(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Me(t)})}var uR={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Uv(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Me(t)})}function Bv(e,t){return new e({type:"string",format:"date",check:"string_format",...Me(t)})}function Fv(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Me(t)})}function qv(e,t){return new e({type:"string",format:"duration",check:"string_format",...Me(t)})}function dR(e,t){return new e(_S({type:"number",checks:[],...Me(t)}))}function hR(e,t){return new e(_S({type:"number",coerce:!0,checks:[],...Me(t)}))}function fR(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Me(t)})}function pR(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...Me(t)})}function mR(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...Me(t)})}function gR(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...Me(t)})}function vR(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...Me(t)})}function yR(e,t){return new e({type:"boolean",...Me(t)})}function bR(e,t){return new e({type:"boolean",coerce:!0,...Me(t)})}function xR(e,t){return new e({type:"bigint",...Me(t)})}function _R(e,t){return new e({type:"bigint",coerce:!0,...Me(t)})}function SR(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...Me(t)})}function $R(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...Me(t)})}function wR(e,t){return new e({type:"symbol",...Me(t)})}function kR(e,t){return new e({type:"undefined",...Me(t)})}function MR(e,t){return new e({type:"null",...Me(t)})}function CR(e){return new e({type:"any"})}function zR(e){return new e({type:"unknown"})}function TR(e,t){return new e({type:"never",...Me(t)})}function AR(e,t){return new e({type:"void",...Me(t)})}function IR(e,t){return new e({type:"date",...Me(t)})}function RR(e,t){return new e({type:"date",coerce:!0,...Me(t)})}function LR(e,t){return new e({type:"nan",...Me(t)})}function Ka(e,t){return new B1({check:"less_than",...Me(t),value:e,inclusive:!1})}function vo(e,t){return new B1({check:"less_than",...Me(t),value:e,inclusive:!0})}function Ja(e,t){return new F1({check:"greater_than",...Me(t),value:e,inclusive:!1})}function yo(e,t){return new F1({check:"greater_than",...Me(t),value:e,inclusive:!0})}function qS(e){return Ja(0,e)}function VS(e){return Ka(0,e)}function HS(e){return vo(0,e)}function ZS(e){return yo(0,e)}function Ec(e,t){return new vA({check:"multiple_of",...Me(t),value:e})}function Dc(e,t){return new xA({check:"max_size",...Me(t),maximum:e})}function Qa(e,t){return new _A({check:"min_size",...Me(t),minimum:e})}function hd(e,t){return new SA({check:"size_equals",...Me(t),size:e})}function fd(e,t){return new $A({check:"max_length",...Me(t),maximum:e})}function hl(e,t){return new wA({check:"min_length",...Me(t),minimum:e})}function pd(e,t){return new kA({check:"length_equals",...Me(t),length:e})}function Qf(e,t){return new MA({check:"string_format",format:"regex",...Me(t),pattern:e})}function ep(e){return new CA({check:"string_format",format:"lowercase",...Me(e)})}function tp(e){return new zA({check:"string_format",format:"uppercase",...Me(e)})}function np(e,t){return new TA({check:"string_format",format:"includes",...Me(t),includes:e})}function ip(e,t){return new AA({check:"string_format",format:"starts_with",...Me(t),prefix:e})}function rp(e,t){return new IA({check:"string_format",format:"ends_with",...Me(t),suffix:e})}function GS(e,t,n){return new RA({check:"property",property:e,schema:t,...Me(n)})}function op(e,t){return new LA({check:"properties",shape:e,...Me(t)})}function ap(e,t){return new EA({check:"mime_type",mime:e,...Me(t)})}function Sa(e){return new DA({check:"overwrite",tx:e})}function sp(e){return Sa(t=>t.normalize(e))}function lp(){return Sa(e=>e.trim())}function cp(){return Sa(e=>e.toLowerCase())}function up(){return Sa(e=>e.toUpperCase())}function dp(){return Sa(e=>xT(e))}function ER(e,t,n){return new e({type:"array",element:t,...Me(n)})}function gue(e,t,n){return new e({type:"union",options:t,...Me(n)})}function vue(e,t,n){return new e({type:"union",options:t,inclusive:!1,...Me(n)})}function yue(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...Me(i)})}function bue(e,t,n){return new e({type:"intersection",left:t,right:n})}function xue(e,t,n,i){let r=n instanceof Ct,o=r?i:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...Me(o)})}function _ue(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...Me(i)})}function Sue(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...Me(i)})}function $ue(e,t,n){return new e({type:"set",valueType:t,...Me(n)})}function wue(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...Me(n)})}function kue(e,t,n){return new e({type:"enum",entries:t,...Me(n)})}function Mue(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...Me(n)})}function DR(e,t){return new e({type:"file",...Me(t)})}function Cue(e,t){return new e({type:"transform",transform:t})}function zue(e,t){return new e({type:"optional",innerType:t})}function Tue(e,t){return new e({type:"nullable",innerType:t})}function Aue(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():cv(n)}})}function Iue(e,t,n){return new e({type:"nonoptional",innerType:t,...Me(n)})}function Rue(e,t){return new e({type:"success",innerType:t})}function Lue(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:MT(n)})}function Eue(e,t,n){return new e({type:"pipe",in:t,out:n})}function Due(e,t){return new e({type:"readonly",innerType:t})}function Oue(e,t,n){return new e({type:"template_literal",parts:t,...Me(n)})}function Nue(e,t){return new e({type:"lazy",getter:t})}function Pue(e,t){return new e({type:"promise",innerType:t})}function OR(e,t,n){let i=Me(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function NR(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Me(n)})}function PR(e,t){let n=k9(i=>(i.addIssue=r=>{if(typeof r=="string")i.issues.push(qf(r,i.value,n._zod.def));else{let o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),"input"in o||(o.input=i.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),i.issues.push(qf(o))}},e(i.value,i)),t);return n}function k9(e,t){let n=new Cn({check:"custom",...Me(t)});return n._zod.check=e,n}function jR(e){let t=new Cn({check:"describe"});return t._zod.onattach=[n=>{let i=Ki.get(n)??{};Ki.add(n,{...i,description:e})}],t._zod.check=()=>{},t}function UR(e){let t=new Cn({check:"meta"});return t._zod.onattach=[n=>{let i=Ki.get(n)??{};Ki.add(n,{...i,...e})}],t._zod.check=()=>{},t}function BR(e,t){let n=Me(t),i=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(h=>typeof h=="string"?h.toLowerCase():h),r=r.map(h=>typeof h=="string"?h.toLowerCase():h));let o=new Set(i),a=new Set(r),s=e.Codec??Rv,l=e.Boolean??Av,c=e.String??sd,u=new c({type:"string",error:n.error}),d=new l({type:"boolean",error:n.error}),f=new s({type:"pipe",in:u,out:d,transform:((h,p)=>{let g=h;return n.case!=="sensitive"&&(g=g.toLowerCase()),o.has(g)?!0:a.has(g)?!1:(p.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:p.value,inst:f,continue:!1}),{})}),reverseTransform:((h,p)=>h===!0?i[0]||"true":r[0]||"false"),error:n.error});return f._zod.bag.truthy=i,f._zod.bag.falsy=r,f._zod.bag.case=n.case??"insensitive",f}function md(e,t,n,i={}){let r=Me(i),o={check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:s=>n.test(s),...r};return n instanceof RegExp&&(o.pattern=n),new e(o)}function Vv(e,...t){for(let n of t)for(let i of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,i)&&Xi(e,i,n[i]);return e}function Oc(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Ki,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function ki(e,t,n,i,r){let o=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:i.path,message:r}):t.unrepresentable;if(o==="any")return!1;if(o===void 0||o==="throw")throw new Error(r);return Object.assign(n,o),!0}function vn(e,t,n={path:[],schemaPath:[]}){var i;let r=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let u={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,u);else{let f=a.schema,h=t.processors[r.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);h(e,t,f,u)}let d=e._zod.parent;d&&(a.ref||(a.ref=d),vn(d,t,u),t.seen.get(d).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Vv(a.schema,l),t.io==="input"&&Mr(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function M9(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Nc(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let i=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let l=i.get(s);if(l&&l!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(s,a[0])}}let r=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(a[0])?.id,f=e.external.uri??(p=>p);if(d)return{ref:f(d)};let h=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=h,{defId:h,ref:`${f("__shared")}#/${s}/${M9(h)}`}}let l="#",c=`${l}/${s}/`;if(a[1]===n&&!a[1].schema.id)return{ref:l};let u=a[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:c+M9(u)}},o=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:l,defId:c}=r(a);s.def={...s.schema},c&&(s.defId=c);let u=s.schema;for(let d in u)delete u[d];u.$ref=l};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>

Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){o(a);continue}if(e.external){let c=e.external.registry.get(a[0])?.id;if(t!==a[0]&&c){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(s.cycle){o(a);continue}s.count>1&&e.reused==="ref"&&o(a)}e.external&&(e.sharedDefsExtractedFor=e.external)}function T9(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let i of t){if(!i||typeof i!="object")return;T9(i);let r=Object.keys(i);if(r.length!==1||r[0]!=="type")return;let o=i.type;for(let a of Array.isArray(o)?o:[o]){if(typeof a!="string")return;n.includes(a)||n.push(a)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var A9=new Set(["type","properties","required","additionalProperties"]),C9=["oneOf","anyOf"];function z9(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function FR(e){let t=[];for(let o of e){if(typeof o!="object"||o.type!=="object")return null;for(let a in o)if(!A9.has(a))return null;t.push(o)}let n={},i=new Set;for(let o of t){for(let a in o.properties){if(Object.prototype.hasOwnProperty.call(n,a))continue;let s=[];for(let c of t){let u=c.properties?.[a]??z9(c);u!=null&&(s.some(d=>JSON.stringify(d)===JSON.stringify(u))||s.push(u))}let l=s.length===1?s[0]:FR(s)??{allOf:s};Xi(n,a,l)}for(let a of o.required??[])i.add(a)}let r={type:"object",properties:n};if(i.size&&(r.required=[...i]),t.every(o=>o.additionalProperties===!1))r.additionalProperties=!1;else{let o=[];for(let a of t){let s=z9(a);s&&!o.some(l=>JSON.stringify(l)===JSON.stringify(s))&&o.push(s)}o.length===1?r.additionalProperties=o[0]:o.length>1&&(r.additionalProperties={allOf:o})}return r}function jue(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let r of A9)if(r in e)return;let n=t.filter(r=>C9.some(o=>Array.isArray(r[o]))),i=null;if(!n.length)i=FR(t);else{let r=n[0],o=C9.find(l=>Array.isArray(r[l]));if(Object.keys(r).length!==1)return;let a=t.filter(l=>l!==r),s=r[o].map(l=>FR([...a,l]));if(s.some(l=>!l))return;i={[o]:s}}i&&(delete e.allOf,Vv(e,i))}function Pc(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=s=>{let l=e.seen.get(s);if(l.ref===null)return;let c=l.def??l.schema,u={...c},d=l.ref;if(l.ref=null,d){i(d);let h=e.seen.get(d),p=h.schema;if(p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(p)):Vv(c,p),Vv(c,u),s._zod.parent===d)for(let v in c)v==="$ref"||v==="allOf"||v in u||delete c[v];if(p.$ref&&h.def)for(let v in c)v==="$ref"||v==="allOf"||v in h.def&&JSON.stringify(c[v])===JSON.stringify(h.def[v])&&delete c[v]}let f=s._zod.parent;if(f&&f!==d){i(f);let h=e.seen.get(f);if(h?.schema.$ref&&(c.$ref=h.schema.$ref,h.def))for(let p in c)p==="$ref"||p==="allOf"||p in h.def&&JSON.stringify(c[p])===JSON.stringify(h.def[p])&&delete c[p]}e.override({zodSchema:s,jsonSchema:c,path:l.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let s of[...e.seen.entries()].reverse())i(s[0]);if(e.target!=="openapi-3.0")for(let s of e.seen.entries())T9(s[1].def??s[1].schema);for(let s of e.deferred)s();if(e.intersections.length){let s=new Map;for(let l of e.seen.values())for(let c of[l.schema,l.def]){let u=c?.allOf;if(!Array.isArray(u))continue;let d=s.get(u);d?d.push(c):s.set(u,[c])}for(let l of e.intersections)for(let c of s.get(l)??[])jue(c)}}let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let s=e.external.registry.get(t)?.id;if(!s)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(s)}Vv(r,n.defId?n.schema:n.def??n.schema);let o=e.metadataRegistry.get(t)?.id;o!==void 0&&r.id===o&&delete r.id;let a=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let s of e.seen.entries()){let l=s[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,Xi(a,l.defId,l.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?r.$defs=a:r.definitions=a);try{let s=JSON.parse(JSON.stringify(r));return Object.defineProperty(s,"~standard",{value:{...t["~standard"],jsonSchema:{input:hp(t,"input",e.processors),output:hp(t,"output",e.processors)}},enumerable:!1,writable:!1}),s}catch{throw new Error("Error converting schema to JSON.")}}function Mr(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return Mr(i.element,n);if(i.type==="set")return Mr(i.valueType,n);if(i.type==="lazy")return Mr(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault"||i.type==="catch")return Mr(i.innerType,n);if(i.type==="intersection")return Mr(i.left,n)||Mr(i.right,n);if(i.type==="record"||i.type==="map")return Mr(i.keyType,n)||Mr(i.valueType,n);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Mr(i.in,n)||Mr(i.out,n);if(i.type==="object"){for(let r in i.shape)if(Mr(i.shape[r],n))return!0;return!1}if(i.type==="union"){for(let r of i.options)if(Mr(r,n))return!0;return!1}if(i.type==="tuple"){for(let r of i.items)if(Mr(r,n))return!0;return!!(i.rest&&Mr(i.rest,n))}return!1}var qR=(e,t={})=>n=>{let i=Oc({...n,processors:t});return vn(e,i),Nc(i,e),Pc(i,e)},hp=(e,t,n={})=>i=>{let{libraryOptions:r,target:o}=i??{},a=Oc({...r??{},target:o,io:t,processors:n});return vn(e,a),Nc(a,e),Pc(a,e)};var fp=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},pp=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},I9=(e,t)=>{fp(e,"minimum",t),pp(e,"maximum",t)},D9=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},O9=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},N9=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},P9=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},R9=(e,t)=>fp(e,"minimum",t.minimum),L9=(e,t)=>pp(e,"maximum",t.maximum),E9=e=>(t,n)=>{P9(t,n.format);let[i,r]=e[n.format];fp(t,"minimum",i),pp(t,"maximum",r)},Uue={greater_than:(e,t)=>fp(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>pp(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>D9(e,t.value),number_format:E9(dv),bigint_format:E9(hv),min_length:R9,max_length:L9,length_equals:(e,t)=>I9(e,t.length),min_size:R9,max_size:L9,size_equals:(e,t)=>I9(e,t.size),string_format:(e,t)=>{P9(e,t.format),t.pattern&&O9(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>N9(e,t.mime)};function Mi(e){let t={},n=e._zod.def,i=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(let o of i)Uue[o._zod.def.check]?.(t,o._zod.def);let r=e._zod.bag;r.minimum!==void 0&&fp(t,"minimum",r.minimum),r.exclusiveMinimum!==void 0&&fp(t,"exclusiveMinimum",r.exclusiveMinimum),r.maximum!==void 0&&pp(t,"maximum",r.maximum),r.exclusiveMaximum!==void 0&&pp(t,"exclusiveMaximum",r.exclusiveMaximum),r.multipleOf!==void 0&&D9(t,r.multipleOf),r.format!==void 0&&(t.format??(t.format=r.format),r.format.includes("int")&&(t.isInt=!0)),r.mime&&N9(t,r.mime);for(let o of r.patterns??[])O9(t,o);return t}var Bue={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Fue=new Map([[J1,KT],[Tv,JT]]),j9=e=>Fue.get(e)??e,ZR=(e,t,n,i)=>{let r=n;r.type="string";let{minimum:o,maximum:a,format:s,patterns:l,contentEncoding:c,laxFormat:u}=Mi(e);if(typeof o=="number"&&(r.minLength=o),typeof a=="number"&&(r.maxLength=a),s&&(r.format=Bue[s]??s,r.format===""&&delete r.format,(s==="time"||u)&&delete r.format),c&&(r.contentEncoding=c),l&&l.size>0){let d=[...l].map(j9);d.length===1?r.pattern=d[0].source:d.length>1&&(r.allOf=[...d.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},GR=(e,t,n,i)=>{let r=n,{minimum:o,maximum:a,multipleOf:s,exclusiveMaximum:l,exclusiveMinimum:c,isInt:u}=Mi(e);r.type=u?"integer":"number";let d=typeof c=="number"&&c>=(o??Number.NEGATIVE_INFINITY),f=typeof l=="number"&&l<=(a??Number.POSITIVE_INFINITY),h=t.target==="draft-04"||t.target==="openapi-3.0";if(d?h?(r.minimum=c,r.exclusiveMinimum=!0):r.exclusiveMinimum=c:typeof o=="number"&&(r.minimum=o),f?h?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l:typeof a=="number"&&(r.maximum=a),s){let p=new Set;for(let m of s)Number.isFinite(m)&&m!==0?p.add(Math.abs(m)):ki(e,t,r,i,`A multipleOf divisor of ${m} cannot be represented in JSON Schema`);let[g,...v]=p;g!==void 0&&(r.multipleOf=g),v.length&&(r.allOf=[...r.allOf??[],...v.map(m=>({multipleOf:m}))])}},WR=(e,t,n,i)=>{n.type="boolean"},YR=(e,t,n,i)=>{ki(e,t,n,i,"BigInt cannot be represented in JSON Schema")},XR=(e,t,n,i)=>{ki(e,t,n,i,"Symbols cannot be represented in JSON Schema")},KR=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},JR=(e,t,n,i)=>{ki(e,t,n,i,"Undefined cannot be represented in JSON Schema")},QR=(e,t,n,i)=>{ki(e,t,n,i,"Void cannot be represented in JSON Schema")},eL=(e,t,n,i)=>{n.not={}},tL=(e,t,n,i)=>{},nL=(e,t,n,i)=>{},iL=(e,t,n,i)=>{ki(e,t,n,i,"Date cannot be represented in JSON Schema")},rL=(e,t,n,i)=>{let r=e._zod.def,o=jf(r.entries);if(o.length===0){n.not={};return}o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o},oL=(e,t,n,i)=>{let r=e._zod.def;if(r.values.length===0){n.not={};return}let o=[];for(let a of r.values)if(a===void 0){if(ki(e,t,n,i,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof a=="bigint"){if(ki(e,t,n,i,"BigInt literals cannot be represented in JSON Schema"))return;o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),o.every(a=>typeof a=="boolean")&&(n.type="boolean"),o.every(a=>a===null)&&(n.type="null"),n.enum=o},aL=(e,t,n,i)=>{ki(e,t,n,i,"NaN cannot be represented in JSON Schema")},sL=(e,t,n,i)=>{let r=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source},lL=(e,t,n,i)=>{let r=n;r.type="string",r.format="binary",r.contentEncoding="binary";let{minimum:o,maximum:a,mime:s}=Mi(e);o!==void 0&&(r.minLength=o),a!==void 0&&(r.maxLength=a),s&&(s.length===0?r.not={}:s.length===1?r.contentMediaType=s[0]:r.anyOf=s.map(l=>({contentMediaType:l})))},cL=(e,t,n,i)=>{n.type="boolean"},uL=(e,t,n,i)=>{ki(e,t,n,i,"Custom types cannot be represented in JSON Schema")},dL=(e,t,n,i)=>{ki(e,t,n,i,"Function types cannot be represented in JSON Schema")},hL=(e,t,n,i)=>{ki(e,t,n,i,"Transforms cannot be represented in JSON Schema")},fL=(e,t,n,i)=>{ki(e,t,n,i,"Map cannot be represented in JSON Schema")},pL=(e,t,n,i)=>{ki(e,t,n,i,"Set cannot be represented in JSON Schema")},mL=(e,t,n,i)=>{let r=n,o=e._zod.def,{minimum:a,maximum:s}=Mi(e);typeof a=="number"&&(r.minItems=a),typeof s=="number"&&(r.maxItems=s),r.type="array",r.items=vn(o.element,t,{...i,path:[...i.path,"items"]})};function Hv(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?Hv(t.out):t.type==="catch"?Hv(t.innerType):e._zod.optin}var gL=(e,t,n,i)=>{let r=n,o=e._zod.def,a=o.shape;if(Object.getOwnPropertySymbols(a).length&&ki(e,t,r,i,"Symbol keys cannot be represented in JSON Schema"))return;r.type="object",r.properties={};for(let c in a)Xi(r.properties,c,vn(a[c],t,{...i,path:[...i.path,"properties",c]}));let l=[];for(let c of Object.keys(a)){let u=o.shape[c];(t.io==="input"?Hv(u)===void 0:u._zod.optout===void 0)&&l.push(c)}l.length>0&&(r.required=l),o.catchall?._zod.def.type==="never"?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=vn(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},YS=(e,t,n,i)=>{let r=e._zod.def,o=r.inclusive===!1,a=r.options.map((s,l)=>vn(s,t,{...i,path:[...i.path,o?"oneOf":"anyOf",l]}));o?n.oneOf=a:n.anyOf=a},vL=(e,t,n,i)=>{let r=e._zod.def,o=vn(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=vn(r.right,t,{...i,path:[...i.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1,l=[...s(o)?o.allOf:[o],...s(a)?a.allOf:[a]];n.allOf=l,t.intersections.push(l)},yL=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=o.items.map((g,v)=>vn(g,t,{...i,path:[...i.path,a,v]})),c=o.rest?vn(o.rest,t,{...i,path:[...i.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null,u=o.items.length;for(;u>0;){let g=o.items[u-1];if(!(t.io==="input"?Hv(g)!==void 0:g._zod.optout==="optional"))break;u--}let d=o.items.length,f=!o.rest;t.target==="draft-2020-12"?(r.prefixItems=l,f?r.items=!1:c&&(r.items=c),u>0&&(r.minItems=u),f&&(r.maxItems=d)):t.target==="openapi-3.0"?(r.items={anyOf:l},c&&r.items.anyOf.push(c),u>0&&(r.minItems=u),f&&(r.maxItems=d)):(r.items=l,f?r.additionalItems=!1:c&&(r.additionalItems=c),u>0&&(r.minItems=u),f&&(r.maxItems=d));let{minimum:h,maximum:p}=Mi(e);typeof h=="number"&&(r.minItems=h),typeof p=="number"&&(r.maxItems=p)};function VR(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let p=e.get(t)?.def;if(!p)return t;let g=VR(e,p,n);return g===p?t:g}for(let p of["anyOf","oneOf"]){let g=t[p];if(!Array.isArray(g))continue;let v=g.map(m=>VR(e,m,n));v.some((m,y)=>m!==g[y])&&(t={...t,[p]:v})}let i=Array.isArray(t.type)?t.type:[t.type],r=!i.includes("string")&&i.some(p=>p==="number"||p==="integer"),o=t.enum??(t.const!==void 0?[t.const]:void 0);if(!r&&!o?.some(p=>typeof p=="number"))return t;let{minimum:a,maximum:s,exclusiveMinimum:l,exclusiveMaximum:c,multipleOf:u,format:d,id:f,...h}=t;return h.enum?h.enum=h.enum.map(p=>typeof p=="number"?String(p):p):typeof h.const=="number"&&(h.const=String(h.const)),r&&(h.type="string",o||(h.pattern=(i.includes("number")?dl:Sv).source)),h}var HR=new WeakMap;function que(e){let t=new Map;for(let i of e.seen.values())i.def&&!t.has(i.schema)&&t.set(i.schema,i);let n=new Map;for(let i of HR.get(e)??[]){let r=e.seen.get(i),o=(r?.def??r?.schema)?.propertyNames;if(!o||o===!0||n.has(o))continue;let a=VR(t,o,new Set);a!==o&&n.set(o,a)}if(n.size)for(let i of e.seen.values())for(let r of[i.schema,i.def]){let o=r&&n.get(r.propertyNames);o&&(r.propertyNames=o)}}var bL=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object";let a=o.keyType,s=Mi(a).patterns;if(o.mode==="loose"&&s&&s.size>0){let u=vn(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(let d of s)Xi(r.patternProperties,j9(d).source,u)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){r.propertyNames=vn(o.keyType,t,{...i,path:[...i.path,"propertyNames"]});let u=HR.get(t);u||(u=[],HR.set(t,u),t.deferred.push(()=>que(t))),u.push(e)}r.additionalProperties=vn(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]})}let l=a._zod.values,c=t.io==="input"&&Hv(o.valueType)!==void 0;if(l&&!o.partial&&!c){let u=[...l].filter(d=>typeof d=="string"||typeof d=="number");u.length>0&&(r.required=u.map(String))}},xL=(e,t,n,i)=>{let r=e._zod.def,o=vn(r.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},_L=(e,t,n,i)=>{let r=e._zod.def;vn(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},SL=Symbol();function U9(e,t,n,i,r){let o=!1,a=JSON.stringify(e,(s,l)=>typeof l!="bigint"?l:(o=!0,null));return o?(ki(t,n,i,r,"BigInt defaults cannot be represented in JSON Schema"),SL):JSON.parse(a)}var $L=(e,t,n,i)=>{let r=e._zod.def;vn(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;let a=U9(r.defaultValue,e,t,n,i);a!==SL&&(n.default=a)},wL=(e,t,n,i)=>{let r=e._zod.def;vn(r.innerType,t,i);let o=t.seen.get(e);if(o.ref=r.innerType,t.io!=="input")return;let a=U9(r.defaultValue,e,t,n,i);a!==SL&&(n._prefault=a)},kL=(e,t,n,i)=>{let r=e._zod.def;vn(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{ki(e,t,n,i,"Dynamic catch values are not supported in JSON Schema");return}n.default=a},ML=(e,t,n,i)=>{let r=e._zod.def,o=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?r.out:r.in:r.out;vn(a,t,i);let s=t.seen.get(e);s.ref=a},CL=(e,t,n,i)=>{let r=e._zod.def;vn(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.readOnly=!0},zL=(e,t,n,i)=>{let r=e._zod.def;vn(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},XS=(e,t,n,i)=>{let r=e._zod.def;vn(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},TL=(e,t,n,i)=>{let r=e._zod.innerType;vn(r,t,i);let o=t.seen.get(e);o.ref=r},WS={string:ZR,number:GR,boolean:WR,bigint:YR,symbol:XR,null:KR,undefined:JR,void:QR,never:eL,any:tL,unknown:nL,date:iL,enum:rL,literal:oL,nan:aL,template_literal:sL,file:lL,success:cL,custom:uL,function:dL,transform:hL,map:fL,set:pL,array:mL,object:gL,union:YS,intersection:vL,tuple:yL,record:bL,nullable:xL,nonoptional:_L,default:$L,prefault:wL,catch:kL,pipe:ML,readonly:CL,promise:zL,optional:XS,lazy:TL};function gd(e,t){if("_idmap"in e){let i=e,r=Oc({...t,processors:WS}),o={};for(let l of i._idmap.entries()){let[c,u]=l;vn(u,r)}let a={},s={registry:i,uri:t?.uri,defs:o};r.external=s;for(let l of i._idmap.entries()){let[c,u]=l;Nc(r,u),Xi(a,c,Pc(r,u))}if(Object.keys(o).length>0){let l=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[l]:o}}return{schemas:a}}let n=Oc({...t,processors:WS});return vn(e,n),Nc(n,e),Pc(n,e)}var KS=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Oc({processors:WS,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return vn(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,Nc(this.ctx,t);let i=Pc(this.ctx,t),{"~standard":r,...o}=i;return o}};var B9={};var Sp={};Fs(Sp,{ZodAny:()=>GL,ZodArray:()=>KL,ZodBase64:()=>v$,ZodBase64URL:()=>y$,ZodBigInt:()=>_p,ZodBigIntFormat:()=>_$,ZodBoolean:()=>xp,ZodCIDRv4:()=>m$,ZodCIDRv6:()=>g$,ZodCUID:()=>l$,ZodCUID2:()=>c$,ZodCatch:()=>gE,ZodCodec:()=>e0,ZodCreditCard:()=>FL,ZodCustom:()=>t0,ZodCustomStringFormat:()=>yd,ZodDate:()=>Yv,ZodDefault:()=>uE,ZodDiscriminatedUnion:()=>QL,ZodE164:()=>b$,ZodEmail:()=>i$,ZodEmoji:()=>a$,ZodEnum:()=>gp,ZodExactOptional:()=>k$,ZodFile:()=>aE,ZodFunction:()=>kE,ZodGUID:()=>o$,ZodIBAN:()=>qL,ZodIPv4:()=>f$,ZodIPv6:()=>p$,ZodISODate:()=>Uc,ZodISODateTime:()=>jc,ZodISODuration:()=>Fc,ZodISOTime:()=>Bc,ZodInstanceOf:()=>zE,ZodIntersection:()=>eE,ZodJWT:()=>x$,ZodKSUID:()=>h$,ZodLazy:()=>$E,ZodLiteral:()=>oE,ZodMAC:()=>BL,ZodMap:()=>iE,ZodNaN:()=>yE,ZodNanoID:()=>s$,ZodNever:()=>YL,ZodNonOptional:()=>M$,ZodNull:()=>ZL,ZodNullable:()=>cE,ZodNumber:()=>bp,ZodNumberFormat:()=>bd,ZodObject:()=>Xv,ZodOptional:()=>Jv,ZodPipe:()=>Qv,ZodPrefault:()=>hE,ZodPreprocess:()=>bE,ZodPromise:()=>wE,ZodReadonly:()=>xE,ZodRecord:()=>mp,ZodSet:()=>rE,ZodString:()=>vp,ZodStringFormat:()=>Sn,ZodSuccess:()=>mE,ZodSymbol:()=>VL,ZodTemplateLiteral:()=>SE,ZodTransform:()=>sE,ZodTuple:()=>tE,ZodType:()=>Dt,ZodULID:()=>u$,ZodURL:()=>Wv,ZodUUID:()=>es,ZodUndefined:()=>HL,ZodUnion:()=>Kv,ZodUnknown:()=>WL,ZodVoid:()=>XL,ZodXID:()=>d$,ZodXor:()=>JL,_ZodString:()=>n$,_default:()=>dE,_function:()=>Zq,any:()=>S$,array:()=>re,base64:()=>lq,base64url:()=>cq,bigint:()=>$q,boolean:()=>Fe,catch:()=>vE,check:()=>Gq,cidrv4:()=>aq,cidrv6:()=>sq,codec:()=>Fq,creditCard:()=>dq,cuid:()=>J9,cuid2:()=>Q9,currencyCode:()=>vq,custom:()=>Wq,date:()=>Tq,describe:()=>Yq,discriminatedUnion:()=>qc,e164:()=>uq,email:()=>r$,emoji:()=>X9,enum:()=>yt,exactOptional:()=>lE,file:()=>Pq,float32:()=>bq,float64:()=>xq,function:()=>Zq,guid:()=>V9,hash:()=>yq,hex:()=>gq,hostname:()=>mq,httpUrl:()=>Y9,iban:()=>hq,instanceof:()=>Kq,int:()=>e$,int32:()=>_q,int64:()=>wq,intersection:()=>$a,invertCodec:()=>qq,ipv4:()=>iq,ipv6:()=>oq,json:()=>Qq,jwt:()=>fq,keyof:()=>Aq,ksuid:()=>nq,lazy:()=>Vc,literal:()=>ce,looseObject:()=>at,looseRecord:()=>Eq,mac:()=>rq,map:()=>Dq,meta:()=>Xq,nan:()=>Bq,nanoid:()=>K9,nativeEnum:()=>Nq,never:()=>$$,nonoptional:()=>pE,null:()=>ts,nullable:()=>Gv,nullish:()=>jq,number:()=>_e,object:()=>Y,optional:()=>We,partialRecord:()=>Lq,pipe:()=>t$,prefault:()=>fE,preprocess:()=>pl,promise:()=>Hq,readonly:()=>_E,record:()=>Ee,refine:()=>ME,set:()=>Oq,strictObject:()=>Iq,string:()=>L,stringFormat:()=>pq,stringbool:()=>Jq,success:()=>Uq,superRefine:()=>CE,symbol:()=>Mq,templateLiteral:()=>Vq,transform:()=>w$,tuple:()=>nE,uint32:()=>Sq,uint64:()=>kq,ulid:()=>eq,undefined:()=>Cq,union:()=>Ue,unknown:()=>Je,url:()=>yp,uuid:()=>H9,uuidv4:()=>Z9,uuidv6:()=>G9,uuidv7:()=>W9,void:()=>zq,xid:()=>tq,xor:()=>Rq});var JS={};Fs(JS,{endsWith:()=>rp,gt:()=>Ja,gte:()=>yo,includes:()=>np,length:()=>pd,lowercase:()=>ep,lt:()=>Ka,lte:()=>vo,maxLength:()=>fd,maxSize:()=>Dc,mime:()=>ap,minLength:()=>hl,minSize:()=>Qa,multipleOf:()=>Ec,negative:()=>VS,nonnegative:()=>ZS,nonpositive:()=>HS,normalize:()=>sp,overwrite:()=>Sa,positive:()=>qS,properties:()=>op,property:()=>GS,regex:()=>Qf,size:()=>hd,slugify:()=>dp,startsWith:()=>ip,toLowerCase:()=>cp,toUpperCase:()=>up,trim:()=>lp,uppercase:()=>tp});var F9=new WeakSet([Object.prototype,Error.prototype]);function QS(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let i=n(this);return Object.defineProperty(this,t,{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,t,{value:i,configurable:!0,writable:!0})}})}var q9=(e,t)=>{IT.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);F9.has(n)||(F9.add(n),QS(n,"format",i=>r=>yv(i,r)),QS(n,"flatten",i=>r=>vv(i,r)),QS(n,"addIssue",i=>r=>{i.issues.push(r),i.message=JSON.stringify(i.issues,Uf,2)}),QS(n,"addIssues",i=>r=>{i.issues.push(...r),i.message=JSON.stringify(i.issues,Uf,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},Hue=ee("ZodError",q9),Wr=ee("ZodError",q9,void 0,{Parent:Error});var AL=Vf(Wr),IL=Hf(Wr),Zv=Zf(Wr),RL=Gf(Wr),LL=T1(Wr),EL=A1(Wr),DL=I1(Wr),OL=R1(Wr),NL=L1(Wr),PL=E1(Wr),jL=D1(Wr),UL=O1(Wr);function Gue(){Ri.localeError||ni(pS())}function vd(){Ri.memoizer||ni({memoizer:Ov()})}var Dt=ee("ZodType",(e,t)=>(Gue(),Ct.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(fe.mergeDefs(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return mn(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(ME(e,t))},superRefine(e,t){return this.check(CE(e,t))},overwrite(e){return this.check(Sa(e))},optional(){return We(this)},exactOptional(){return lE(this)},nullable(){return Gv(this)},nullish(){return We(Gv(this))},nonoptional(e){return pE(this,e)},array(){return re(this)},or(e){return Ue([this,e])},and(e){return $a(this,e)},transform(e){return t$(this,w$(e))},default(e){return dE(this,e)},prefault(e){return fE(this,e)},catch(e){return vE(this,e)},pipe(e){return t$(this,e)},readonly(){return _E(this)},describe(e){let t=this.clone();return Ki.add(t,{description:e}),t},meta(...e){if(e.length===0)return Ki.get(this);let t=this.clone();return Ki.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return fe.hide(this,"~standard",{...G1(this),jsonSchema:{input:hp(this,"input"),output:hp(this,"output")}})},set"~standard"(e){fe.own(this,"~standard",e)},parse:function e(t,n){return AL(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await IL(this,t,n,{callee:e})},safeParse(e,t){return Zv(this,e,t)},async safeParseAsync(e,t){return RL(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){fe.own(this,"spa",e)},validate(e,t){return bv(this,e,t)},validateAsync(e,t){return xv(this,e,t)},encode:function e(t,n){return LL(this,t,n,{callee:e})},decode:function e(t,n){return EL(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await DL(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await OL(this,t,n,{callee:e})},safeEncode(e,t){return NL(this,e,t)},safeDecode(e,t){return PL(this,e,t)},async safeEncodeAsync(e,t){return jL(this,e,t)},async safeDecodeAsync(e,t){return UL(this,e,t)},toJSONSchema(e){return qR(this,{})(e)},get description(){return Ki.get(this)?.description},get _def(){return this._zod.def}}),n$=ee("_ZodString",(e,t)=>{sd.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ZR(e,n,i,r)},fe.derived({format:e=>Mi(e).format??null,minLength:e=>Mi(e).minimum??null,maxLength:e=>Mi(e).maximum??null},{regex(...e){return this.check(Qf(...e))},includes(...e){return this.check(np(...e))},startsWith(...e){return this.check(ip(...e))},endsWith(...e){return this.check(rp(...e))},min(...e){return this.check(hl(...e))},max(...e){return this.check(fd(...e))},length(...e){return this.check(pd(...e))},nonempty(...e){return this.check(hl(1,...e))},lowercase(e){return this.check(ep(e))},uppercase(e){return this.check(tp(e))},trim(){return this.check(lp())},normalize(...e){return this.check(sp(...e))},toLowerCase(){return this.check(cp())},toUpperCase(){return this.check(up())},slugify(){return this.check(dp())}})),vp=ee("ZodString",(e,t)=>{sd.init(e,t),n$.init(e,t)},{email(e){return this.check(SS(i$,e))},url(e){return this.check(jv(Wv,e))},jwt(e){return this.check(FS(x$,e))},emoji(e){return this.check(zS(a$,e))},guid(e){return this.check($S(o$,e))},uuid(e){return this.check(wS(es,e))},uuidv4(e){return this.check(kS(es,e))},uuidv6(e){return this.check(MS(es,e))},uuidv7(e){return this.check(CS(es,e))},nanoid(e){return this.check(TS(s$,e))},cuid(e){return this.check(AS(l$,e))},cuid2(e){return this.check(IS(c$,e))},ulid(e){return this.check(RS(u$,e))},base64(e){return this.check(jS(v$,e))},base64url(e){return this.check(US(y$,e))},xid(e){return this.check(LS(d$,e))},ksuid(e){return this.check(ES(h$,e))},ipv4(e){return this.check(DS(f$,e))},ipv6(e){return this.check(OS(p$,e))},cidrv4(e){return this.check(NS(m$,e))},cidrv6(e){return this.check(PS(g$,e))},e164(e){return this.check(BS(b$,e))},datetime(e){return this.check(Uv(jc,e))},date(e){return this.check(Bv(Uc,e))},time(e){return this.check(Fv(Bc,e))},duration(e){return this.check(qv(Fc,e))}});function L(e){return oR(vp,e)}var Sn=ee("ZodStringFormat",(e,t)=>{gn.init(e,t),n$.init(e,t)}),jc=ee("ZodISODateTime",(e,t)=>{KA.init(e,t),Sn.init(e,t)}),Uc=ee("ZodISODate",(e,t)=>{JA.init(e,t),Sn.init(e,t)}),Bc=ee("ZodISOTime",(e,t)=>{QA.init(e,t),Sn.init(e,t)}),Fc=ee("ZodISODuration",(e,t)=>{eI.init(e,t),Sn.init(e,t)}),i$=ee("ZodEmail",(e,t)=>{UA.init(e,t),Sn.init(e,t)});function r$(e){return SS(i$,e)}var o$=ee("ZodGUID",(e,t)=>{PA.init(e,t),Sn.init(e,t)});function V9(e){return $S(o$,e)}var es=ee("ZodUUID",(e,t)=>{jA.init(e,t),Sn.init(e,t)});function H9(e){return wS(es,e)}function Z9(e){return kS(es,e)}function G9(e){return MS(es,e)}function W9(e){return CS(es,e)}var Wv=ee("ZodURL",(e,t)=>{qA.init(e,t),Sn.init(e,t)});function yp(e){return jv(Wv,e)}function Y9(e){return jv(Wv,{protocol:_v,hostname:eA,...fe.normalizeParams(e)})}var a$=ee("ZodEmoji",(e,t)=>{VA.init(e,t),Sn.init(e,t)});function X9(e){return zS(a$,e)}var s$=ee("ZodNanoID",(e,t)=>{HA.init(e,t),Sn.init(e,t)});function K9(e){return TS(s$,e)}var l$=ee("ZodCUID",(e,t)=>{ZA.init(e,t),Sn.init(e,t)});function J9(e){return AS(l$,e)}var c$=ee("ZodCUID2",(e,t)=>{GA.init(e,t),Sn.init(e,t)});function Q9(e){return IS(c$,e)}var u$=ee("ZodULID",(e,t)=>{WA.init(e,t),Sn.init(e,t)});function eq(e){return RS(u$,e)}var d$=ee("ZodXID",(e,t)=>{YA.init(e,t),Sn.init(e,t)});function tq(e){return LS(d$,e)}var h$=ee("ZodKSUID",(e,t)=>{XA.init(e,t),Sn.init(e,t)});function nq(e){return ES(h$,e)}var f$=ee("ZodIPv4",(e,t)=>{tI.init(e,t),Sn.init(e,t)});function iq(e){return DS(f$,e)}var BL=ee("ZodMAC",(e,t)=>{iI.init(e,t),Sn.init(e,t)});function rq(e){return sR(BL,e)}var p$=ee("ZodIPv6",(e,t)=>{nI.init(e,t),Sn.init(e,t)});function oq(e){return OS(p$,e)}var m$=ee("ZodCIDRv4",(e,t)=>{rI.init(e,t),Sn.init(e,t)});function aq(e){return NS(m$,e)}var g$=ee("ZodCIDRv6",(e,t)=>{oI.init(e,t),Sn.init(e,t)});function sq(e){return PS(g$,e)}var v$=ee("ZodBase64",(e,t)=>{aI.init(e,t),Sn.init(e,t)});function lq(e){return jS(v$,e)}var y$=ee("ZodBase64URL",(e,t)=>{sI.init(e,t),Sn.init(e,t)});function cq(e){return US(y$,e)}var b$=ee("ZodE164",(e,t)=>{lI.init(e,t),Sn.init(e,t)});function uq(e){return BS(b$,e)}var FL=ee("ZodCreditCard",(e,t)=>{cI.init(e,t),Sn.init(e,t)});function dq(e){return lR(FL,e)}var qL=ee("ZodIBAN",(e,t)=>{uI.init(e,t),Sn.init(e,t)});function hq(e){return cR(qL,e)}var x$=ee("ZodJWT",(e,t)=>{dI.init(e,t),Sn.init(e,t)});function fq(e){return FS(x$,e)}var yd=ee("ZodCustomStringFormat",(e,t)=>{hI.init(e,t),Sn.init(e,t)});function pq(e,t,n={}){return md(yd,e,t,n)}function mq(e){return md(yd,"hostname",QT,e)}function gq(e){return md(yd,"hex",pA,e)}function vq(e){return md(yd,"currency_code",nA,e)}function yq(e,t){let n=t?.enc??"hex",i=`${e}_${n}`,r=Fo[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return md(yd,i,r,t)}var bp=ee("ZodNumber",(e,t)=>{iS.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>GR(e,n,i,r),e.isFinite=!0},fe.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=Mi(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=Mi(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:n}=Mi(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>Mi(e).format??null},{gt(e,t){return this.check(Ja(e,t))},gte(e,t){return this.check(yo(e,t))},min(e,t){return this.check(yo(e,t))},lt(e,t){return this.check(Ka(e,t))},lte(e,t){return this.check(vo(e,t))},max(e,t){return this.check(vo(e,t))},int(e){return this.check(e$(e))},safe(e){return this.check(e$(e))},positive(e){return this.check(Ja(0,e))},nonnegative(e){return this.check(yo(0,e))},negative(e){return this.check(Ka(0,e))},nonpositive(e){return this.check(vo(0,e))},multipleOf(e,t){return this.check(Ec(e,t))},step(e,t){return this.check(Ec(e,t))},finite(){return this}}));function _e(e){return dR(bp,e)}var bd=ee("ZodNumberFormat",(e,t)=>{fI.init(e,t),bp.init(e,t)});function e$(e){return fR(bd,e)}function bq(e){return pR(bd,e)}function xq(e){return mR(bd,e)}function _q(e){return gR(bd,e)}function Sq(e){return vR(bd,e)}var xp=ee("ZodBoolean",(e,t)=>{Av.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>WR(e,n,i,r)});function Fe(e){return yR(xp,e)}var _p=ee("ZodBigInt",(e,t)=>{rS.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>YR(e,n,i,r)},fe.derived({minValue:e=>Mi(e).minimum??null,maxValue:e=>Mi(e).maximum??null,format:e=>Mi(e).format??null},{gte(e,t){return this.check(yo(e,t))},min(e,t){return this.check(yo(e,t))},gt(e,t){return this.check(Ja(e,t))},lt(e,t){return this.check(Ka(e,t))},lte(e,t){return this.check(vo(e,t))},max(e,t){return this.check(vo(e,t))},positive(e){return this.check(Ja(BigInt(0),e))},negative(e){return this.check(Ka(BigInt(0),e))},nonpositive(e){return this.check(vo(BigInt(0),e))},nonnegative(e){return this.check(yo(BigInt(0),e))},multipleOf(e,t){return this.check(Ec(e,t))}}));function $q(e){return xR(_p,e)}var _$=ee("ZodBigIntFormat",(e,t)=>{pI.init(e,t),_p.init(e,t)});function wq(e){return SR(_$,e)}function kq(e){return $R(_$,e)}var VL=ee("ZodSymbol",(e,t)=>{mI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>XR(e,n,i,r)});function Mq(e){return wR(VL,e)}var HL=ee("ZodUndefined",(e,t)=>{gI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>JR(e,n,i,r)});function Cq(e){return kR(HL,e)}var ZL=ee("ZodNull",(e,t)=>{vI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>KR(e,n,i,r)});function ts(e){return MR(ZL,e)}var GL=ee("ZodAny",(e,t)=>{yI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>tL(e,n,i,r)});function S$(){return CR(GL)}var WL=ee("ZodUnknown",(e,t)=>{bI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>nL(e,n,i,r)});function Je(){return zR(WL)}var YL=ee("ZodNever",(e,t)=>{xI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>eL(e,n,i,r)});function $$(e){return TR(YL,e)}var XL=ee("ZodVoid",(e,t)=>{_I.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>QR(e,n,i,r)});function zq(e){return AR(XL,e)}var Yv=ee("ZodDate",(e,t)=>{SI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>iL(e,n,i,r),e.min=(n,i)=>e.check(yo(n,i)),e.max=(n,i)=>e.check(vo(n,i))},fe.derived({minDate:e=>{let{minimum:t}=Mi(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=Mi(e);return t?new Date(t):null}},{}));function Tq(e){return IR(Yv,e)}var KL=ee("ZodArray",(e,t)=>{vd(),$I.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>mL(e,n,i,r),e.element=t.element},{min(e,t){return this.check(hl(e,t))},nonempty(e){return this.check(hl(1,e))},max(e,t){return this.check(fd(e,t))},length(e,t){return this.check(pd(e,t))},unwrap(){return this.element}});function re(e,t){return ER(KL,e,t)}function Aq(e){let t=e._zod.def.shape;return yt(Object.keys(t))}var Xv=ee("ZodObject",(e,t)=>{vd(),wI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>gL(e,n,i,r),fe.installLazyProp(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return yt(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(fe.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(fe.mergeDefs(this._zod.def,{catchall:Je()}))},loose(){return this.clone(fe.mergeDefs(this._zod.def,{catchall:Je()}))},strict(){return this.clone(fe.mergeDefs(this._zod.def,{catchall:$$()}))},strip(){return this.clone(fe.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return fe.extend(this,e)},safeExtend(e){return fe.safeExtend(this,e)},merge(e){return fe.merge(this,e)},pick(e){return fe.pick(this,e)},omit(e){return fe.omit(this,e)},partial(...e){return fe.partial(Jv,this,e[0])},exactPartial(...e){return fe.partial(k$,this,e[0],"exactPartial")},required(...e){return fe.required(M$,this,e[0])}});function Y(e,t){let n={type:"object",shape:e??{},...fe.normalizeParams(t)};return new Xv(n)}function Iq(e,t){return new Xv({type:"object",shape:e,catchall:$$(),...fe.normalizeParams(t)})}function at(e,t){return new Xv({type:"object",shape:e,catchall:Je(),...fe.normalizeParams(t)})}var Kv=ee("ZodUnion",(e,t)=>{Iv.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>YS(e,n,i,r),e.options=t.options});function Ue(e,t){return new Kv({type:"union",options:e,...fe.normalizeParams(t)})}var JL=ee("ZodXor",(e,t)=>{Kv.init(e,t),kI.init(e,t),e._zod.processJSONSchema=(n,i,r)=>YS(e,n,i,r),e.options=t.options});function Rq(e,t){return new JL({type:"union",options:e,inclusive:!1,...fe.normalizeParams(t)})}var QL=ee("ZodDiscriminatedUnion",(e,t)=>{Kv.init(e,t),CI.init(e,t)});function qc(e,t,n){return new QL({type:"union",options:t,discriminator:e,...fe.normalizeParams(n)})}var eE=ee("ZodIntersection",(e,t)=>{zI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>vL(e,n,i,r)});function $a(e,t){return new eE({type:"intersection",left:e,right:t})}var tE=ee("ZodTuple",(e,t)=>{vd(),oS.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>yL(e,n,i,r)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new Jv({type:"optional",innerType:t}))})}});function nE(e,t,n){let i=t instanceof Ct,r=i?n:t,o=i?t:null;return new tE({type:"tuple",items:e,rest:o,...fe.normalizeParams(r)})}var mp=ee("ZodRecord",(e,t)=>{vd(),TI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>bL(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType});function Ee(e,t,n){return!t||!t._zod?new mp({type:"record",keyType:L(),valueType:e,...fe.normalizeParams(t)}):new mp({type:"record",keyType:e,valueType:t,...fe.normalizeParams(n)})}function Lq(e,t,n){return new mp({type:"record",keyType:e,valueType:t,...fe.normalizeParams(n),partial:!0})}function Eq(e,t,n){return new mp({type:"record",keyType:e,valueType:t,mode:"loose",...fe.normalizeParams(n)})}var iE=ee("ZodMap",(e,t)=>{vd(),AI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>fL(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Qa(...n)),e.nonempty=n=>e.check(Qa(1,n)),e.max=(...n)=>e.check(Dc(...n)),e.size=(...n)=>e.check(hd(...n))});function Dq(e,t,n){return new iE({type:"map",keyType:e,valueType:t,...fe.normalizeParams(n)})}var rE=ee("ZodSet",(e,t)=>{vd(),II.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>pL(e,n,i,r),e.min=(...n)=>e.check(Qa(...n)),e.nonempty=n=>e.check(Qa(1,n)),e.max=(...n)=>e.check(Dc(...n)),e.size=(...n)=>e.check(hd(...n))});function Oq(e,t){return new rE({type:"set",valueType:e,...fe.normalizeParams(t)})}var gp=ee("ZodEnum",(e,t)=>{RI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(i,r,o)=>rL(e,i,r,o),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{let o={};for(let a of i)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new gp({...t,checks:[],...fe.normalizeParams(r),entries:o})},e.exclude=(i,r)=>{let o={...t.entries};for(let a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new gp({...t,checks:[],...fe.normalizeParams(r),entries:o})}});function yt(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new gp({type:"enum",entries:n,...fe.normalizeParams(t)})}function Nq(e,t){return new gp({type:"enum",entries:e,...fe.normalizeParams(t)})}var oE=ee("ZodLiteral",(e,t)=>{LI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>oL(e,n,i,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function ce(e,t){return new oE({type:"literal",values:Array.isArray(e)?e:[e],...fe.normalizeParams(t)})}var aE=ee("ZodFile",(e,t)=>{EI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>lL(e,n,i,r),e.min=(n,i)=>e.check(Qa(n,i)),e.max=(n,i)=>e.check(Dc(n,i)),e.mime=(n,i)=>e.check(ap(Array.isArray(n)?n:[n],i))});function Pq(e){return DR(aE,e)}var sE=ee("ZodTransform",(e,t)=>{vd(),DI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>hL(e,n,i,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Lc(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(fe.issue(o,n.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),"input"in a||(a.input=n.value),a.inst??(a.inst=e),n.issues.push(fe.issue(a))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n)):(n.value=r,n)}});function w$(e){return new sE({type:"transform",transform:e})}var Jv=ee("ZodOptional",(e,t)=>{aS.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>XS(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function We(e){return new Jv({type:"optional",innerType:e})}var k$=ee("ZodExactOptional",(e,t)=>{OI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>XS(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function lE(e){return new k$({type:"optional",innerType:e})}var cE=ee("ZodNullable",(e,t)=>{NI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>xL(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Gv(e){return new cE({type:"nullable",innerType:e})}function jq(e){return We(Gv(e))}var uE=ee("ZodDefault",(e,t)=>{PI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>$L(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function dE(e,t){return new uE({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():fe.shallowClone(t)}})}var hE=ee("ZodPrefault",(e,t)=>{jI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>wL(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function fE(e,t){return new hE({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():fe.shallowClone(t)}})}var M$=ee("ZodNonOptional",(e,t)=>{UI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>_L(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function pE(e,t){return new M$({type:"nonoptional",innerType:e,...fe.normalizeParams(t)})}var mE=ee("ZodSuccess",(e,t)=>{BI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>cL(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Uq(e){return new mE({type:"success",innerType:e})}var gE=ee("ZodCatch",(e,t)=>{FI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>kL(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function vE(e,t){return new gE({type:"catch",innerType:e,catchValue:typeof t=="function"?t:fe.constantCatch(t)})}var yE=ee("ZodNaN",(e,t)=>{qI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>aL(e,n,i,r)});function Bq(e){return LR(yE,e)}var Qv=ee("ZodPipe",(e,t)=>{sS.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ML(e,n,i,r),e.in=t.in,e.out=t.out});function t$(e,t){return new Qv({type:"pipe",in:e,out:t})}var e0=ee("ZodCodec",(e,t)=>{Qv.init(e,t),Rv.init(e,t)});function Fq(e,t,n){return new e0({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function qq(e){let t=e._zod.def;return new e0({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var bE=ee("ZodPreprocess",(e,t)=>{Qv.init(e,t),VI.init(e,t)}),xE=ee("ZodReadonly",(e,t)=>{HI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>CL(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function _E(e){return new xE({type:"readonly",innerType:e})}var SE=ee("ZodTemplateLiteral",(e,t)=>{ZI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>sL(e,n,i,r)});function Vq(e,t){return new SE({type:"template_literal",parts:e,...fe.normalizeParams(t)})}var $E=ee("ZodLazy",(e,t)=>{Lv.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>TL(e,n,i,r),e.unwrap=()=>e._zod.def.getter()});function Vc(e){return new $E({type:"lazy",getter:e})}var wE=ee("ZodPromise",(e,t)=>{WI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>zL(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Hq(e){return new wE({type:"promise",innerType:e})}var kE=ee("ZodFunction",(e,t)=>{GI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>dL(e,n,i,r)});function Zq(e){return new kE({type:"function",input:Array.isArray(e?.input)?nE(e?.input):e?.input??re(Je()),output:e?.output??Je()})}var t0=ee("ZodCustom",(e,t)=>{YI.init(e,t),Dt.init(e,t),e._zod.processJSONSchema=(n,i,r)=>uL(e,n,i,r)});function Gq(e){let t=new Cn({check:"custom"});return t._zod.check=e,t}function Wq(e,t){return OR(t0,e??(()=>!0),t)}function ME(e,t={}){return NR(t0,e,t)}function CE(e,t){return PR(e,t)}var Yq=jR,Xq=UR,zE=ee("ZodInstanceOf",(e,t)=>{t0.init(e,t)},{properties(e,t){return this.check(op(e,t))}});function Kq(e,t={}){let n=new zE({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...fe.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:n,path:[...n._zod.def.path??[]]})},n}var Jq=(...e)=>BR({Codec:e0,Boolean:xp,String:vp},...e);function Qq(e){let t=Vc(()=>Ue([L(e),_e(),Fe(),ts(),re(t),Ee(L(),t)]));return t}function pl(e,t){return new bE({type:"pipe",in:w$(e),out:t})}var AE={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function Wue(e){ni({customError:e})}function Yue(){return ni().customError}var TE;TE||(TE={});var qo={};Fs(qo,{ZodISODate:()=>Uc,ZodISODateTime:()=>jc,ZodISODuration:()=>Fc,ZodISOTime:()=>Bc,date:()=>Kue,datetime:()=>Xue,duration:()=>Que,time:()=>Jue});function Xue(e){return Uv(jc,e)}function Kue(e){return Bv(Uc,e)}function Jue(e){return Fv(Bc,e)}function Que(e){return qv(Fc,e)}var Ve={...Sp,...JS,iso:qo},ede=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function tde(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function eV(e,t){return e.map((n,i)=>i<t?n:n.optional())}function nde(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function ide(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===i){let r=n[1]===void 0?void 0:nde(n[1]);if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function rde(e,t){return Ve.transform(i=>i).check(i=>{let r=i.value;if(typeof r!="object"||r===null||Array.isArray(r))return;let o=Object.getOwnPropertyNames(r);if(t.minProperties!==void 0&&o.length<t.minProperties&&i.issues.push({origin:"object",code:"too_small",minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:r,inst:e,continue:!0}),t.maxProperties!==void 0&&o.length>t.maxProperties&&i.issues.push({origin:"object",code:"too_big",maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:r,inst:e,continue:!0}),t.keySchema)for(let a of o){let s=t.keySchema.safeParse(a);s.success||i.issues.push({code:"invalid_key",origin:"record",issues:s.error.issues,input:a,path:[a],continue:!0})}}).pipe(e)}function IE(e,t){if(e===null)return"z";let n=typeof e;if(n!=="object"){if(n==="number"&&Number.isNaN(e))return null;let i=String(e);return`${n[0]}${i.length}:${i}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let o=[];for(let a of e){let s=IE(a,t);if(s===null)return null;o.push(s)}return`a${o.length}:[${o.join(",")}]`}let i=Object.keys(e).sort(),r=[];for(let o of i){let a=IE(e[o],t);if(a===null)return null;r.push(`${o.length}:${o}=${a}`)}return`o${r.length}:{${r.join(",")}}`}finally{t.delete(e)}}var ode=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),ade=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function n0(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(n0):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,n])=>ode.has(t)?n0(n):!ade.has(t)||typeof n!="object"||n===null?!1:Object.values(n).some(n0))}function tV(e){return e===1?"element":"elements"}function sde(e,t){return Ve.transform(i=>i).check(i=>{let r=i.value;if(Array.isArray(r)){if(t.uniqueItems===!0){let o=new Map;for(let a=0;a<r.length;a++){let s=IE(r[a],new Set);if(s===null)continue;let l=o.get(s);if(l===void 0){o.set(s,a);continue}i.issues.push({code:"custom",message:`Array items must be unique: element at index ${a} duplicates the one at index ${l}`,input:r,path:[a],continue:!0})}}if(t.containsSchema){let o=t.minContains??1,a=t.maxContains!==void 0?t.maxContains+1:Number.POSITIVE_INFINITY,s=0;for(let l of r)if(t.containsSchema.safeParse(l).success&&++s>=a)break;s<o&&i.issues.push({code:"custom",message:`Array must contain at least ${o} matching ${tV(o)}; found ${s}`,input:r,continue:!0}),t.maxContains!==void 0&&s>t.maxContains&&i.issues.push({code:"custom",message:`Array must contain at most ${t.maxContains} matching ${tV(t.maxContains)}`,input:r,continue:!0})}}}).pipe(e)}function nV(e,t){if(e!==!1)return e===void 0||e===!0?Ve.any():Cr(e,t)}var lde=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function iV(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return Ve.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return Ve.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let o=ide(r,t),a=Cr(o,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return Ve.null();if(r.length===0)return Ve.never();if(r.length===1)return Ve.literal(r[0]);if(r.every(a=>typeof a=="string"))return Ve.enum(r);let o=r.map(a=>Ve.literal(a));return o.length<2?o[0]:Ve.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return Ve.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(o=>{let a={...e,type:o};return iV(a,t)});return r.length===0?Ve.never():r.length===1?r[0]:Ve.union(r)}if(!n)return Ve.any();let i;switch(n){case"string":{let r=Ve.string();if(e.format){let o=e.format;o==="email"?r=r.check(Ve.email()):o==="uri"||o==="uri-reference"?r=r.check(Ve.url()):o==="uuid"||o==="guid"?r=r.check(Ve.uuid()):o==="date-time"?r=r.check(Ve.iso.datetime({offset:!0})):o==="date"?r=r.check(Ve.iso.date()):o==="time"?r=r.check(Ve.regex(lde)):o==="duration"?r=r.check(Ve.iso.duration()):o==="hostname"?r=r.check(Ve.hostname()):o==="ipv4"?r=r.check(Ve.ipv4()):o==="ipv6"?r=r.check(Ve.ipv6()):o==="mac"?r=r.check(Ve.mac()):o==="cidr"?r=r.check(Ve.cidrv4()):o==="cidr-v6"?r=r.check(Ve.cidrv6()):o==="base64"?r=r.check(Ve.base64()):o==="base64url"?r=r.check(Ve.base64url()):o==="e164"?r=r.check(Ve.e164()):o==="credit_card"?r=r.check(Ve.creditCard()):o==="iban"?r=r.check(Ve.iban()):o==="jwt"?r=r.check(Ve.jwt()):o==="emoji"?r=r.check(Ve.emoji()):o==="nanoid"?r=r.check(Ve.nanoid()):o==="cuid"?r=r.check(Ve.cuid()):o==="cuid2"?r=r.check(Ve.cuid2()):o==="ulid"?r=r.check(Ve.ulid()):o==="xid"?r=r.check(Ve.xid()):o==="ksuid"&&(r=r.check(Ve.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),i=r;break}case"number":case"integer":{let r=n==="integer"?Ve.number().int():Ve.number();typeof e.minimum=="number"&&e.exclusiveMinimum!==!0&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&e.exclusiveMaximum!==!0&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),i=r;break}case"boolean":{i=Ve.boolean();break}case"null":{i=Ve.null();break}case"object":{let r={},o=e.properties||{},a=new Set(e.required||[]),s=typeof e.additionalProperties=="object"?Cr(e.additionalProperties,t):void 0;for(let[d,f]of Object.entries(o)){let h=Cr(f,t);Xi(r,d,a.has(d)?h:h.optional())}if(e.patternProperties){let d=e.patternProperties,f=Object.keys(d),h=[];for(let g of f){let v=Cr(d[g],t),m=Ve.string().regex(new RegExp(g));h.push(Ve.looseRecord(m,v))}let p=[];if(Object.keys(r).length>0&&p.push(Ve.object(r).passthrough()),p.push(...h),p.length===0)i=Ve.object({}).passthrough();else if(p.length===1)i=p[0];else{let g=Ve.intersection(p[0],p[1]);for(let v=2;v<p.length;v++)g=Ve.intersection(g,p[v]);i=g}if(e.additionalProperties===!1){let g=Object.keys(r),v=f.map(y=>new RegExp(y)),m=i;i=i.check(y=>{if(!Uo(y.value))return;let b=[];for(let x of Object.keys(y.value))g.includes(x)||v.some(_=>_.test(x))||b.push(x);b.length&&y.issues.push({code:"unrecognized_keys",keys:b,input:y.value,inst:m})})}}else{let d=Ve.object(r);e.additionalProperties===!1?i=d.strict():s?i=d.catchall(s):i=d.passthrough()}let l=e.propertyNames!==void 0&&e.propertyNames!==!0,c=typeof e.minProperties=="number"?e.minProperties:void 0,u=typeof e.maxProperties=="number"?e.maxProperties:void 0;if(l||c!==void 0||u!==void 0){let d;if(l){let f=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;d=Cr(f,t)}i=rde(i,{keySchema:d,minProperties:c,maxProperties:u})}break}case"array":{let r=e.prefixItems,o=e.items;if(r&&Array.isArray(r)){let a=typeof e.minItems=="number"?e.minItems:0,s=r.map(d=>Cr(d,t)),l=eV(s,a),c=Array.isArray(o)?void 0:nV(o,t),u=Ve.tuple(l);i=c?u.rest(c):u,typeof e.minItems=="number"&&(i=i.check(Ve.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(Ve.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=typeof e.minItems=="number"?e.minItems:0,s=o.map(d=>Cr(d,t)),l=eV(s,a),c=nV(e.additionalItems,t),u=Ve.tuple(l);i=c?u.rest(c):u,typeof e.minItems=="number"&&(i=i.check(Ve.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(Ve.maxLength(e.maxItems)))}else if(o!==void 0){let a=Cr(o,t),s=Ve.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),i=s}else i=Ve.array(Ve.any());(e.uniqueItems===!0||e.contains!==void 0)&&(i=sde(i,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains!==void 0?Cr(e.contains,t):void 0,minContains:typeof e.minContains=="number"?e.minContains:void 0,maxContains:typeof e.maxContains=="number"?e.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${n}`)}return i}function Cr(e,t){if(typeof e=="boolean")return e?Ve.any():Ve.never();let n=iV(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(c=>Cr(c,t)),l=Ve.union(s);n=i?Ve.intersection(n,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(c=>Cr(c,t)),l=Ve.xor(s);n=i?Ve.intersection(n,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:Ve.any();else{let s=i?n:Cr(e.allOf[0],t),l=i?0:1;for(let c=l;c<e.allOf.length;c++)s=Ve.intersection(s,Cr(e.allOf[c],t));n=s}e.nullable===!0&&t.version==="openapi-3.0"&&(n=Ve.nullable(n)),e.readOnly===!0&&(n=Ve.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let r={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(r[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(r[s]=e[s]);if(e.type==="object"&&e.$ref===void 0){e.propertyNames!==void 0&&!n0(e.propertyNames)&&(r.propertyNames=e.propertyNames);for(let s of["minProperties","maxProperties"])e[s]!==void 0&&(r[s]=e[s])}if(e.type==="array"&&e.$ref===void 0){e.contains!==void 0&&!n0(e.contains)&&(r.contains=e.contains);for(let s of["uniqueItems","minContains","maxContains"])e[s]!==void 0&&(r[s]=e[s])}for(let s of Object.keys(e))ede.has(s)||Xi(r,s,e[s]);return Object.keys(r).length>0&&t.registry.add(n,r),e.description&&(n=n.describe(e.description)),n}function rV(e,t){if(typeof e=="boolean")return e?Ve.any():Ve.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=tde(n,t?.defaultTarget),r=n.$defs||n.definitions||{},o={version:i,defs:r,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Ki};return Cr(n,o)}var oV=Symbol("z.visit/resolving");function i0(e,t){let n=typeof t=="function"?t:(a,s)=>{let l=t[a._zod.def.type];return l?l(a,s):a},i=new Map;function r(a){let s=i.get(a);if(s===oV)return new Lv({type:"lazy",getter:()=>i.get(a)});if(s!==void 0)return s;i.set(a,oV);let l=o(a),c=n(l,l!==a);return i.set(a,c),c}function o(a){let s=a._zod.def,l=s.type;switch(l){case"object":{let c=s.shape,u=Object.keys(c),d=!1,f={};for(let p of u){let g=r(c[p]);g!==c[p]&&(d=!0),f[p]=g}let h=s.catchall;return s.catchall&&(h=r(s.catchall),h!==s.catchall&&(d=!0)),d?mn(a,{...s,shape:f,catchall:h}):a}case"array":{let c=r(s.element);return c===s.element?a:mn(a,{...s,element:c})}case"tuple":{let c=s.items,u=!1,d=[];for(let h of c){let p=r(h);p!==h&&(u=!0),d.push(p)}let f=s.rest;return s.rest&&(f=r(s.rest),f!==s.rest&&(u=!0)),u?mn(a,{...s,items:d,rest:f}):a}case"record":case"map":{let c=r(s.keyType),u=r(s.valueType);return c===s.keyType&&u===s.valueType?a:mn(a,{...s,keyType:c,valueType:u})}case"set":{let c=r(s.valueType);return c===s.valueType?a:mn(a,{...s,valueType:c})}case"union":{let c=s.options,u=!1,d=[];for(let f of c){let h=r(f);h!==f&&(u=!0),d.push(h)}return u?mn(a,{...s,options:d}):a}case"intersection":{let c=r(s.left),u=r(s.right);return c===s.left&&u===s.right?a:mn(a,{...s,left:c,right:u})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let c=r(s.innerType);return c===s.innerType?a:mn(a,{...s,innerType:c})}case"pipe":{let c=r(s.in),u=r(s.out);return c===s.in&&u===s.out?a:mn(a,{...s,in:c,out:u})}case"function":{let c=r(s.input),u=r(s.output);return c===s.input&&u===s.output?a:mn(a,{...s,input:c,output:u})}case"lazy":{let c=s.getter,{_cachedInner:u,...d}=s;return mn(a,{...d,getter:()=>r(c())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return a;default:return a}}return r(e)}function aV(e){return i0(e,{object:t=>t.partial(),union:t=>{let n=t._zod.def;return n.discriminator===void 0?t:Ue(n.options)}})}function cde(e,t){if(!t?.length)return e;let n=e._zod.def;return mn(e,xa(n,{checks:[...n.checks??[],...t]}),{parent:!0})}function sV(e){return cde(e.out,e.checks)}function ude(e){return e.in._zod.traits.has("$ZodTransform")?sV(e):e.in}function lV(e){return i0(e,{pipe:t=>ude(t._zod.def),default:(t,n)=>n?We(t._zod.def.innerType):t,catch:(t,n)=>n?t._zod.def.innerType:t})}function cV(e){return i0(e,{pipe:t=>sV(t._zod.def),prefault:(t,n)=>n?t._zod.def.innerType:t})}var r0={};Fs(r0,{bigint:()=>pde,boolean:()=>fde,date:()=>mde,number:()=>hde,string:()=>dde});function dde(e){return aR(vp,e)}function hde(e){return hR(bp,e)}function fde(e){return bR(xp,e)}function pde(e){return _R(_p,e)}function mde(e){return RR(Yv,e)}var C$="2025-11-25";var z$=[C$,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],T$="io.modelcontextprotocol/related-task",xd="io.modelcontextprotocol/protocolVersion",$p="io.modelcontextprotocol/clientInfo",Zc="io.modelcontextprotocol/serverInfo",_d="io.modelcontextprotocol/clientCapabilities",A$="io.modelcontextprotocol/subscriptionId",wp="io.modelcontextprotocol/logLevel";var Sd="2.0";var ml=Vc(()=>Ue([L(),_e(),Fe(),ts(),Ee(L(),ml),re(ml)])),Wn=Ee(L(),ml),I$=re(ml),kp=Ue([L(),_e().int()]),Mp=L(),o0=Y({ttl:_e().optional()}),a0=Y({taskId:L()}),Cp=at({progressToken:kp.optional(),[T$]:a0.optional()}),Ei=Y({_meta:Cp.optional()}),Gc=Ei.extend({task:o0.optional()}),Yn=Y({method:L(),params:Ei.loose().optional()}),ur=Y({_meta:Cp.optional()}),Ji=Y({method:L(),params:ur.loose().optional()}),zp=at({get[Zc](){return is.optional().catch(void 0)}}),Xn=at({_meta:zp.optional()}),wa=Ue([L(),_e().int()]),Tp=Y({jsonrpc:ce(Sd),id:wa,...Yn.shape}).strict(),Ap=Y({jsonrpc:ce(Sd),...Ji.shape}).strict(),$d=Y({jsonrpc:ce(Sd),id:wa,result:Xn}).strict(),wd=Y({jsonrpc:ce(Sd),id:wa.optional(),error:Y({code:_e().int(),message:L(),data:Je().optional()})}).strict(),kd=Ue([Tp,Ap,$d,wd]),R$=Ue([$d,wd]),Wc=Xn.strict(),s0=ur.extend({requestId:wa.optional(),reason:L().optional()}),Ip=Ji.extend({method:ce("notifications/cancelled"),params:s0}),l0=Y({src:L(),mimeType:L().optional(),sizes:re(L()).optional(),theme:yt(["light","dark"]).optional()}),gl=Y({icons:re(l0).optional()}),ns=Y({name:L(),title:L().optional()}),is=ns.extend({...ns.shape,...gl.shape,version:L(),websiteUrl:L().optional(),description:L().optional()}),vde=$a(Y({applyDefaults:Fe().optional()}),Wn),yde=pl(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,$a(Y({form:vde.optional(),url:Wn.optional()}),Wn.optional())),L$=at({list:Wn.optional(),cancel:Wn.optional(),requests:at({sampling:at({createMessage:Wn.optional()}).optional(),elicitation:at({create:Wn.optional()}).optional()}).optional()}),E$=at({list:Wn.optional(),cancel:Wn.optional(),requests:at({tools:at({call:Wn.optional()}).optional()}).optional()}),c0=Y({experimental:Ee(L(),Wn).optional(),sampling:Y({context:Wn.optional(),tools:Wn.optional()}).optional(),elicitation:yde.optional(),roots:Y({listChanged:Fe().optional()}).optional(),tasks:L$.optional(),extensions:Ee(L(),Wn).optional()}),u0=Ei.extend({protocolVersion:L(),capabilities:c0,clientInfo:is}),d0=Yn.extend({method:ce("initialize"),params:u0}),Rp=Y({experimental:Ee(L(),Wn).optional(),logging:Wn.optional(),completions:Wn.optional(),prompts:Y({listChanged:Fe().optional()}).optional(),resources:Y({subscribe:Fe().optional(),listChanged:Fe().optional()}).optional(),tools:Y({listChanged:Fe().optional()}).optional(),tasks:E$.optional(),extensions:Ee(L(),Wn).optional()}),h0=Xn.extend({protocolVersion:L(),capabilities:Rp,serverInfo:is,instructions:L().optional()}),f0=Ji.extend({method:ce("notifications/initialized"),params:ur.optional()}),p0=Yn.extend({method:ce("server/discover"),params:Ei.optional()}),Lp=Xn.extend({supportedVersions:re(L()),capabilities:Rp,instructions:L().optional()}),Ep=Yn.extend({method:ce("ping"),params:Ei.optional()}),m0=Y({progress:_e(),total:We(_e()),message:We(L())}),g0=Y({...ur.shape,...m0.shape,progressToken:kp}),Dp=Ji.extend({method:ce("notifications/progress"),params:g0}),v0=Ei.extend({cursor:Mp.optional()}),vl=Yn.extend({params:v0.optional()}),yl=Xn.extend({nextCursor:Mp.optional()}),Op=Y({uri:L(),mimeType:We(L()),_meta:Ee(L(),Je()).optional()}),Np=Op.extend({text:L()}),LE=L().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),Pp=Op.extend({blob:LE}),bl=yt(["user","assistant"]),rs=Y({audience:re(bl).optional(),priority:_e().min(0).max(1).optional(),lastModified:qo.datetime({offset:!0}).optional()}),jp=Y({...ns.shape,...gl.shape,uri:L(),description:We(L()),mimeType:We(L()),size:We(_e()),annotations:rs.optional(),_meta:We(at({}))}),y0=Y({...ns.shape,...gl.shape,uriTemplate:L(),description:We(L()),mimeType:We(L()),annotations:rs.optional(),_meta:We(at({}))}),b0=vl.extend({method:ce("resources/list")}),x0=yl.extend({resources:re(jp)}),_0=vl.extend({method:ce("resources/templates/list")}),S0=yl.extend({resourceTemplates:re(y0)}),Md=Ei.extend({uri:L()}),$0=Md,w0=Yn.extend({method:ce("resources/read"),params:$0}),k0=Xn.extend({contents:re(Ue([Np,Pp]))}),M0=Ji.extend({method:ce("notifications/resources/list_changed"),params:ur.optional()}),C0=Md,z0=Yn.extend({method:ce("resources/subscribe"),params:C0}),T0=Md,A0=Yn.extend({method:ce("resources/unsubscribe"),params:T0}),Up=Y({toolsListChanged:Fe().optional(),promptsListChanged:Fe().optional(),resourcesListChanged:Fe().optional(),resourceSubscriptions:re(L()).optional()}),I0=Ei.extend({notifications:Up}),R0=Yn.extend({method:ce("subscriptions/listen"),params:I0}),L0=ur.extend({notifications:Up}),E0=Ji.extend({method:ce("notifications/subscriptions/acknowledged"),params:L0}),D0=zp.extend({[A$]:wa}),O0=Xn.extend({_meta:D0}),N0=ur.extend({uri:L()}),P0=Ji.extend({method:ce("notifications/resources/updated"),params:N0}),j0=Y({name:L(),description:We(L()),required:We(Fe())}),U0=Y({...ns.shape,...gl.shape,description:We(L()),arguments:We(re(j0)),_meta:We(at({}))}),B0=vl.extend({method:ce("prompts/list")}),F0=yl.extend({prompts:re(U0)}),q0=Ei.extend({name:L(),arguments:Ee(L(),L()).optional()}),V0=Yn.extend({method:ce("prompts/get"),params:q0}),Cd=Y({type:ce("text"),text:L(),annotations:rs.optional(),_meta:Ee(L(),Je()).optional()}),zd=Y({type:ce("image"),data:LE,mimeType:L(),annotations:rs.optional(),_meta:Ee(L(),Je()).optional()}),Td=Y({type:ce("audio"),data:LE,mimeType:L(),annotations:rs.optional(),_meta:Ee(L(),Je()).optional()}),H0=Y({type:ce("tool_use"),name:L(),id:L(),input:Ee(L(),Je()),_meta:Ee(L(),Je()).optional()}),Ad=Y({type:ce("resource"),resource:Ue([Np,Pp]),annotations:rs.optional(),_meta:Ee(L(),Je()).optional()}),Id=jp.extend({type:ce("resource_link")}),os=Ue([Cd,zd,Td,Id,Ad]),Z0=Y({role:bl,content:os}),G0=Xn.extend({description:L().optional(),messages:re(Z0)}),W0=Ji.extend({method:ce("notifications/prompts/list_changed"),params:ur.optional()}),Y0=Y({title:L().optional(),readOnlyHint:Fe().optional(),destructiveHint:Fe().optional(),idempotentHint:Fe().optional(),openWorldHint:Fe().optional()}),X0=Y({taskSupport:yt(["required","optional","forbidden"]).optional()}),Yc=Y({...ns.shape,...gl.shape,description:L().optional(),inputSchema:Y({type:ce("object"),properties:Ee(L(),ml).optional(),required:re(L()).optional()}).catchall(Je()),outputSchema:at({$schema:L().optional()}).optional(),annotations:Y0.optional(),execution:X0.optional(),_meta:Ee(L(),Je()).optional()}),K0=vl.extend({method:ce("tools/list")}),J0=yl.extend({tools:re(Yc)}),Xc=Xn.extend({content:re(os).default([]),structuredContent:Je().optional(),isError:Fe().optional()}),D$=Xc.or(Xn.extend({toolResult:Je()})),Q0=Gc.extend({name:L(),arguments:Ee(L(),Je()).optional()}),ey=Yn.extend({method:ce("tools/call"),params:Q0}),ty=Ji.extend({method:ce("notifications/tools/list_changed"),params:ur.optional()}),O$=Y({autoRefresh:Fe().default(!0),debounceMs:_e().int().nonnegative().default(300)}),Bp=yt(["debug","info","notice","warning","error","critical","alert","emergency"]),ny=Ei.extend({level:Bp}),iy=Yn.extend({method:ce("logging/setLevel"),params:ny}),ry=ur.extend({level:Bp,logger:L().optional(),data:Je()}),oy=Ji.extend({method:ce("notifications/message"),params:ry}),ay=Y({name:L().optional()}),sy=Y({hints:re(ay).optional(),costPriority:_e().min(0).max(1).optional(),speedPriority:_e().min(0).max(1).optional(),intelligencePriority:_e().min(0).max(1).optional()}),ly=Y({mode:yt(["auto","required","none"]).optional()}),cy=Y({type:ce("tool_result"),toolUseId:L().describe("The unique identifier for the corresponding tool call."),content:re(os),structuredContent:Je().optional(),isError:Fe().optional(),_meta:Ee(L(),Je()).optional()}),uy=qc("type",[Cd,zd,Td]),Hc=qc("type",[Cd,zd,Td,H0,cy]),dy=Y({role:bl,content:Ue([Hc,re(Hc)]),_meta:Ee(L(),Je()).optional()}),hy=Gc.extend({messages:re(dy),modelPreferences:sy.optional(),systemPrompt:L().optional(),includeContext:yt(["none","thisServer","allServers"]).optional(),temperature:_e().optional(),maxTokens:_e().int(),stopSequences:re(L()).optional(),metadata:Wn.optional(),tools:re(Yc).optional(),toolChoice:ly.optional()}),fy=Yn.extend({method:ce("sampling/createMessage"),params:hy}),py=Xn.extend({model:L(),stopReason:We(yt(["endTurn","stopSequence","maxTokens"]).or(L())),role:bl,content:uy}),my=Xn.extend({model:L(),stopReason:We(yt(["endTurn","stopSequence","maxTokens","toolUse"]).or(L())),role:bl,content:Ue([Hc,re(Hc)])}),Fp=Y({type:ce("boolean"),title:L().optional(),description:L().optional(),default:Fe().optional()}),Rd=Y({type:ce("string"),title:L().optional(),description:L().optional(),minLength:_e().optional(),maxLength:_e().optional(),format:yt(["email","uri","date","date-time"]).optional(),default:L().optional()}),Ld=Y({type:yt(["number","integer"]),title:L().optional(),description:L().optional(),minimum:_e().optional(),maximum:_e().optional(),default:_e().optional()}),qp=Y({type:ce("string"),title:L().optional(),description:L().optional(),enum:re(L()),default:L().optional()}),Vp=Y({type:ce("string"),title:L().optional(),description:L().optional(),oneOf:re(Y({const:L(),title:L()})),default:L().optional()}),Hp=Y({type:ce("string"),title:L().optional(),description:L().optional(),enum:re(L()),enumNames:re(L()).optional(),default:L().optional()}),gy=Ue([qp,Vp]),Zp=Y({type:ce("array"),title:L().optional(),description:L().optional(),minItems:_e().optional(),maxItems:_e().optional(),items:Y({type:ce("string"),enum:re(L())}),default:re(L()).optional()}),Gp=Y({type:ce("array"),title:L().optional(),description:L().optional(),minItems:_e().optional(),maxItems:_e().optional(),items:Y({anyOf:re(Y({const:L(),title:L()}))}),default:re(L()).optional()}),vy=Ue([Zp,Gp]),yy=Ue([Hp,gy,vy]),Wp=Ue([yy,Fp,Rd,Ld]),Ed=Gc.extend({mode:ce("form").optional(),message:L(),requestedSchema:Y({type:ce("object"),properties:Ee(L(),Wp),required:re(L()).optional()}).catchall(Je())}),by=Gc.extend({mode:ce("url"),message:L(),elicitationId:L(),url:L().url()}),xy=Ue([Ed,by]),_y=Yn.extend({method:ce("elicitation/create"),params:xy}),Sy=ur.extend({elicitationId:L()}),$y=Ji.extend({method:ce("notifications/elicitation/complete"),params:Sy}),wy=Xn.extend({action:yt(["accept","decline","cancel"]),content:pl(e=>e===null?void 0:e,Ee(L(),Ue([L(),_e(),Fe(),re(L())])).optional())}),ky=Y({type:ce("ref/resource"),uri:L()}),My=Y({type:ce("ref/prompt"),name:L()}),Cy=Ei.extend({ref:Ue([My,ky]),argument:Y({name:L(),value:L()}),context:Y({arguments:Ee(L(),L()).optional()}).optional()}),zy=Yn.extend({method:ce("completion/complete"),params:Cy}),Ty=Xn.extend({completion:at({values:re(L()).max(100),total:We(_e().int()),hasMore:We(Fe())})}),Ay=Y({uri:L().startsWith("file://"),name:L().optional(),_meta:Ee(L(),Je()).optional()}),Iy=Yn.extend({method:ce("roots/list"),params:Ei.optional()}),Ry=Xn.extend({roots:re(Ay)}),Ly=Ji.extend({method:ce("notifications/roots/list_changed"),params:ur.optional()}),N$=at({ttl:_e().optional(),pollInterval:_e().optional()}),Ey=yt(["working","input_required","completed","failed","cancelled"]),xl=Y({taskId:L(),status:Ey,ttl:Ue([_e(),ts()]),createdAt:L(),lastUpdatedAt:L(),pollInterval:We(_e()),statusMessage:We(L())}),P$=Xn.extend({task:xl}),Dy=ur.merge(xl),j$=Ji.extend({method:ce("notifications/tasks/status"),params:Dy}),U$=Yn.extend({method:ce("tasks/get"),params:Ei.extend({taskId:L()})}),B$=Xn.merge(xl),F$=Yn.extend({method:ce("tasks/result"),params:Ei.extend({taskId:L()})}),q$=Xn.loose(),V$=vl.extend({method:ce("tasks/list")}),H$=yl.extend({tasks:re(xl)}),Z$=Yn.extend({method:ce("tasks/cancel"),params:Ei.extend({taskId:L()})}),G$=Xn.merge(xl),W$=Ue([Ep,d0,p0,zy,iy,V0,B0,b0,_0,w0,z0,A0,R0,ey,K0]),Y$=Ue([Ip,Dp,f0,Ly]),X$=Ue([Wc,py,my,wy,Ry]),K$=Ue([Ep,fy,_y,Iy]),J$=Ue([Ip,Dp,oy,P0,M0,ty,W0,E0,$y]),Q$=Ue([Wc,h0,Lp,Ty,G0,F0,x0,S0,k0,Xc,J0,O0]),Li=yp().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:AE.custom,message:"URL must be parseable",fatal:!0}),gv}).refine(e=>{let t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),Oy=at({resource:L().url(),authorization_servers:re(Li).optional(),jwks_uri:L().url().optional(),scopes_supported:re(L()).optional(),bearer_methods_supported:re(L()).optional(),resource_signing_alg_values_supported:re(L()).optional(),resource_name:L().optional(),resource_documentation:L().optional(),resource_policy_uri:L().url().optional(),resource_tos_uri:L().url().optional(),tls_client_certificate_bound_access_tokens:Fe().optional(),authorization_details_types_supported:re(L()).optional(),dpop_signing_alg_values_supported:re(L()).optional(),dpop_bound_access_tokens_required:Fe().optional()}),Yp=at({issuer:L(),authorization_endpoint:Li,token_endpoint:Li,registration_endpoint:Li.optional(),scopes_supported:re(L()).optional(),response_types_supported:re(L()),response_modes_supported:re(L()).optional(),grant_types_supported:re(L()).optional(),token_endpoint_auth_methods_supported:re(L()).optional(),token_endpoint_auth_signing_alg_values_supported:re(L()).optional(),service_documentation:Li.optional(),revocation_endpoint:Li.optional(),revocation_endpoint_auth_methods_supported:re(L()).optional(),revocation_endpoint_auth_signing_alg_values_supported:re(L()).optional(),introspection_endpoint:L().optional(),introspection_endpoint_auth_methods_supported:re(L()).optional(),introspection_endpoint_auth_signing_alg_values_supported:re(L()).optional(),code_challenge_methods_supported:re(L()).optional(),client_id_metadata_document_supported:Fe().optional(),authorization_response_iss_parameter_supported:Fe().optional().catch(void 0)}),Ny=at({issuer:L(),authorization_endpoint:Li,token_endpoint:Li,userinfo_endpoint:Li.optional(),jwks_uri:Li,registration_endpoint:Li.optional(),scopes_supported:re(L()).optional(),response_types_supported:re(L()),response_modes_supported:re(L()).optional(),grant_types_supported:re(L()).optional(),acr_values_supported:re(L()).optional(),subject_types_supported:re(L()),id_token_signing_alg_values_supported:re(L()),id_token_encryption_alg_values_supported:re(L()).optional(),id_token_encryption_enc_values_supported:re(L()).optional(),userinfo_signing_alg_values_supported:re(L()).optional(),userinfo_encryption_alg_values_supported:re(L()).optional(),userinfo_encryption_enc_values_supported:re(L()).optional(),request_object_signing_alg_values_supported:re(L()).optional(),request_object_encryption_alg_values_supported:re(L()).optional(),request_object_encryption_enc_values_supported:re(L()).optional(),token_endpoint_auth_methods_supported:re(L()).optional(),token_endpoint_auth_signing_alg_values_supported:re(L()).optional(),display_values_supported:re(L()).optional(),claim_types_supported:re(L()).optional(),claims_supported:re(L()).optional(),service_documentation:L().optional(),claims_locales_supported:re(L()).optional(),ui_locales_supported:re(L()).optional(),claims_parameter_supported:Fe().optional(),request_parameter_supported:Fe().optional(),request_uri_parameter_supported:Fe().optional(),require_request_uri_registration:Fe().optional(),op_policy_uri:Li.optional(),op_tos_uri:Li.optional(),client_id_metadata_document_supported:Fe().optional(),authorization_response_iss_parameter_supported:Fe().optional().catch(void 0)}),Py=Y({...Ny.shape,...Yp.pick({code_challenge_methods_supported:!0}).shape}),jy=Y({access_token:L(),id_token:L().optional(),token_type:L(),expires_in:r0.number().optional(),scope:L().optional(),refresh_token:L().optional()}).strip(),Uy=Y({issued_token_type:ce("urn:ietf:params:oauth:token-type:id-jag"),access_token:L(),token_type:L().optional(),expires_in:_e().optional(),scope:L().optional()}).strip(),By=Y({error:L(),error_description:L().optional(),error_uri:L().optional()}),RE=Li.optional().or(ce("").transform(()=>{})),Fy=Y({redirect_uris:re(Li),token_endpoint_auth_method:L().optional(),grant_types:re(L()).optional(),response_types:re(L()).optional(),application_type:L().optional(),client_name:L().optional(),client_uri:Li.optional(),logo_uri:RE,scope:L().optional(),contacts:re(L()).optional(),tos_uri:RE,policy_uri:L().optional(),jwks_uri:Li.optional(),jwks:S$().optional(),software_id:L().optional(),software_version:L().optional(),software_statement:L().optional()}).strip(),qy=Y({client_id:L(),client_secret:L().optional(),client_id_issued_at:_e().optional(),client_secret_expires_at:_e().optional()}).strip(),Vy=Fy.merge(qy),ew=Y({error:L(),error_description:L().optional()}).strip(),tw=Y({token:L(),token_type_hint:L().optional()}).strip();var jE=Symbol.for("mcp.sdk.errorBrands");function Od(e,t){let n=new Set,i=t;for(;typeof i=="function";){let r=i.mcpBrand;Object.prototype.hasOwnProperty.call(i,"mcpBrand")&&typeof r=="string"&&n.add(r),i=Object.getPrototypeOf(i)}n.size!==0&&Object.defineProperty(e,jE,{value:n,enumerable:!1,configurable:!0})}function bo(e,t){try{if(typeof t=="object"&&t!==null&&Object.prototype.hasOwnProperty.call(e,"mcpBrand")&&typeof e.mcpBrand=="string"&&Object.prototype.hasOwnProperty.call(t,jE)){let n=t[jE];if(n&&typeof n.has=="function"&&n.has(e.mcpBrand))return!0}}catch{}return Function.prototype[Symbol.hasInstance].call(e,t)}var bde=class zV extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.OAuthError"})}static[Symbol.hasInstance](t){return bo(this,t)}static isInstance(t){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return bo(this,t)}constructor(t,n,i){super(n),this.code=t,this.errorUri=i,this.name="OAuthError",Od(this,new.target)}toResponseObject(){let t={error:this.code,error_description:this.message};return this.errorUri&&(t.error_uri=this.errorUri),t}static fromResponse(t){return new zV(t.error,t.error_description??t.error,t.error_uri)}},Qi=(function(e){return e.NotConnected="NOT_CONNECTED",e.AlreadyConnected="ALREADY_CONNECTED",e.NotInitialized="NOT_INITIALIZED",e.CapabilityNotSupported="CAPABILITY_NOT_SUPPORTED",e.RequestTimeout="REQUEST_TIMEOUT",e.ConnectionClosed="CONNECTION_CLOSED",e.SendFailed="SEND_FAILED",e.InvalidResult="INVALID_RESULT",e.UnsupportedResultType="UNSUPPORTED_RESULT_TYPE",e.InputRequiredRoundsExceeded="INPUT_REQUIRED_ROUNDS_EXCEEDED",e.ListPaginationExceeded="LIST_PAGINATION_EXCEEDED",e.MethodNotSupportedByProtocolVersion="METHOD_NOT_SUPPORTED_BY_PROTOCOL_VERSION",e.EraNegotiationFailed="ERA_NEGOTIATION_FAILED",e.ClientHttpNotImplemented="CLIENT_HTTP_NOT_IMPLEMENTED",e.ClientHttpAuthentication="CLIENT_HTTP_AUTHENTICATION",e.ClientHttpForbidden="CLIENT_HTTP_FORBIDDEN",e.ClientHttpUnexpectedContent="CLIENT_HTTP_UNEXPECTED_CONTENT",e.ClientHttpFailedToOpenStream="CLIENT_HTTP_FAILED_TO_OPEN_STREAM",e.ClientHttpFailedToTerminateSession="CLIENT_HTTP_FAILED_TO_TERMINATE_SESSION",e})({}),bi=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SdkError"})}static[Symbol.hasInstance](e){return bo(this,e)}static isInstance(e){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return bo(this,e)}constructor(e,t,n){super(t),this.code=e,this.data=n,this.name="SdkError",Od(this,new.target)}},xde=class extends bi{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SdkHttpError"})}constructor(e,t,n){super(e,t,n),this.name="SdkHttpError"}get status(){return this.data.status}get statusText(){return this.data.statusText}};var _de="2026-07-28";function TV(e){return e>=_de}function AV(e){let t=e.structuredContent;return t===void 0||!(typeof t!="object"||t===null||Array.isArray(t))||(e.content?.some(n=>n.type==="text")??!1)?e:{...e,content:[...e.content??[],{type:"text",text:JSON.stringify(t)}]}}var IV=["task","inputRequests","requestState"];function Sde(e){return e===null||typeof e!="object"||Array.isArray(e)||e.content!==void 0||IV.some(t=>t in e)?e:{...e,content:[]}}function $de(){let e=Vc(()=>Ue([L(),_e(),Fe(),ts(),Ee(L(),e),re(e)])),t=Ee(L(),e),n=Ue([L(),_e().int()]),i=L(),r=Y({ttl:_e().optional()}),o=Y({taskId:L()}),a=at({progressToken:n.optional(),"io.modelcontextprotocol/related-task":o.optional()}),s=Y({_meta:a.optional()}),l=s.extend({task:r.optional()}),c=Y({method:L(),params:s.loose().optional()}),u=Y({_meta:a.optional()}),d=Y({method:L(),params:u.loose().optional()}),f=at({_meta:a.optional()}),h=Ue([L(),_e().int()]),p=f.strict(),g=u.extend({requestId:h.optional(),reason:L().optional()}),v=d.extend({method:ce("notifications/cancelled"),params:g}),m=Y({src:L(),mimeType:L().optional(),sizes:re(L()).optional(),theme:yt(["light","dark"]).optional()}),y=Y({icons:re(m).optional()}),b=Y({name:L(),title:L().optional()}),x=b.extend({...b.shape,...y.shape,version:L(),websiteUrl:L().optional(),description:L().optional()}),_=$a(Y({applyDefaults:Fe().optional()}),t),S=pl(zi=>zi&&typeof zi=="object"&&!Array.isArray(zi)&&Object.keys(zi).length===0?{form:{}}:zi,$a(Y({form:_.optional(),url:t.optional()}),t.optional())),$=at({list:t.optional(),cancel:t.optional(),requests:at({sampling:at({createMessage:t.optional()}).optional(),elicitation:at({create:t.optional()}).optional()}).optional()}),C=at({list:t.optional(),cancel:t.optional(),requests:at({tools:at({call:t.optional()}).optional()}).optional()}),w=Y({experimental:Ee(L(),t).optional(),sampling:Y({context:t.optional(),tools:t.optional()}).optional(),elicitation:S.optional(),roots:Y({listChanged:Fe().optional()}).optional(),tasks:$.optional(),extensions:Ee(L(),t).optional()}),z=s.extend({protocolVersion:L(),capabilities:w,clientInfo:x}),A=c.extend({method:ce("initialize"),params:z}),M=Y({experimental:Ee(L(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:Y({listChanged:Fe().optional()}).optional(),resources:Y({subscribe:Fe().optional(),listChanged:Fe().optional()}).optional(),tools:Y({listChanged:Fe().optional()}).optional(),tasks:C.optional(),extensions:Ee(L(),t).optional()}),T=f.extend({protocolVersion:L(),capabilities:M,serverInfo:x,instructions:L().optional()}),k=d.extend({method:ce("notifications/initialized"),params:u.optional()}),I=c.extend({method:ce("ping"),params:s.optional()}),D=Y({progress:_e(),total:We(_e()),message:We(L())}),E=Y({...u.shape,...D.shape,progressToken:n}),N=d.extend({method:ce("notifications/progress"),params:E}),F=s.extend({cursor:i.optional()}),G=c.extend({params:F.optional()}),P=f.extend({nextCursor:i.optional()}),O=Y({uri:L(),mimeType:We(L()),_meta:Ee(L(),Je()).optional()}),V=O.extend({text:L()}),j=L().refine(zi=>{try{return atob(zi),!0}catch{return!1}},{message:"Invalid Base64 string"}),H=O.extend({blob:j}),Q=yt(["user","assistant"]),le=Y({audience:re(Q).optional(),priority:_e().min(0).max(1).optional(),lastModified:qo.datetime({offset:!0}).optional()}),se=Y({...b.shape,...y.shape,uri:L(),description:We(L()),mimeType:We(L()),size:We(_e()),annotations:le.optional(),_meta:We(at({}))}),ae=Y({...b.shape,...y.shape,uriTemplate:L(),description:We(L()),mimeType:We(L()),annotations:le.optional(),_meta:We(at({}))}),Se=G.extend({method:ce("resources/list")}),ve=P.extend({resources:re(se)}),$e=G.extend({method:ce("resources/templates/list")}),je=P.extend({resourceTemplates:re(ae)}),R=s.extend({uri:L()}),ie=R,te=c.extend({method:ce("resources/read"),params:ie}),B=f.extend({contents:re(Ue([V,H]))}),U=d.extend({method:ce("notifications/resources/list_changed"),params:u.optional()}),W=R,ue=c.extend({method:ce("resources/subscribe"),params:W}),de=R,J=c.extend({method:ce("resources/unsubscribe"),params:de}),ge=u.extend({uri:L()}),we=d.extend({method:ce("notifications/resources/updated"),params:ge}),X=Y({name:L(),description:We(L()),required:We(Fe())}),K=Y({...b.shape,...y.shape,description:We(L()),arguments:We(re(X)),_meta:We(at({}))}),Ce=G.extend({method:ce("prompts/list")}),ye=P.extend({prompts:re(K)}),Qe=s.extend({name:L(),arguments:Ee(L(),L()).optional()}),mt=c.extend({method:ce("prompts/get"),params:Qe}),et=Y({type:ce("text"),text:L(),annotations:le.optional(),_meta:Ee(L(),Je()).optional()}),Le=Y({type:ce("image"),data:j,mimeType:L(),annotations:le.optional(),_meta:Ee(L(),Je()).optional()}),Oe=Y({type:ce("audio"),data:j,mimeType:L(),annotations:le.optional(),_meta:Ee(L(),Je()).optional()}),ot=Y({type:ce("tool_use"),name:L(),id:L(),input:Ee(L(),Je()),_meta:Ee(L(),Je()).optional()}),$t=Y({type:ce("resource"),resource:Ue([V,H]),annotations:le.optional(),_meta:Ee(L(),Je()).optional()}),Bt=se.extend({type:ce("resource_link")}),sn=Ue([et,Le,Oe,Bt,$t]),ct=Y({role:Q,content:sn}),pn=f.extend({description:L().optional(),messages:re(ct)}),zn=d.extend({method:ce("notifications/prompts/list_changed"),params:u.optional()}),Ge=Y({title:L().optional(),readOnlyHint:Fe().optional(),destructiveHint:Fe().optional(),idempotentHint:Fe().optional(),openWorldHint:Fe().optional()}),Xe=Y({taskSupport:yt(["required","optional","forbidden"]).optional()}),ht=Y({...b.shape,...y.shape,description:L().optional(),inputSchema:Y({type:ce("object"),properties:Ee(L(),e).optional(),required:re(L()).optional()}).catchall(Je()),outputSchema:Y({type:ce("object"),properties:Ee(L(),e).optional(),required:re(L()).optional()}).catchall(Je()).optional(),annotations:Ge.optional(),execution:Xe.optional(),_meta:Ee(L(),Je()).optional()}),Re=G.extend({method:ce("tools/list")}),vt=P.extend({tools:re(ht)}),Mt=f.extend({content:re(sn),structuredContent:Ee(L(),Je()).optional(),isError:Fe().optional()}),Ze=l.extend({name:L(),arguments:Ee(L(),Je()).optional()}),lt=c.extend({method:ce("tools/call"),params:Ze}),bt=d.extend({method:ce("notifications/tools/list_changed"),params:u.optional()}),it=yt(["debug","info","notice","warning","error","critical","alert","emergency"]),Kt=s.extend({level:it}),wt=c.extend({method:ce("logging/setLevel"),params:Kt}),ut=u.extend({level:it,logger:L().optional(),data:Je()}),he=d.extend({method:ce("notifications/message"),params:ut}),xe=Y({name:L().optional()}),tt=Y({hints:re(xe).optional(),costPriority:_e().min(0).max(1).optional(),speedPriority:_e().min(0).max(1).optional(),intelligencePriority:_e().min(0).max(1).optional()}),qe=Y({mode:yt(["auto","required","none"]).optional()}),dt=Y({type:ce("tool_result"),toolUseId:L().describe("The unique identifier for the corresponding tool call."),content:re(sn),structuredContent:Y({}).loose().optional(),isError:Fe().optional(),_meta:Ee(L(),Je()).optional()}),zt=qc("type",[et,Le,Oe]),Pn=qc("type",[et,Le,Oe,ot,dt]),Qn=Y({role:Q,content:Ue([Pn,re(Pn)]),_meta:Ee(L(),Je()).optional()}),ui=l.extend({messages:re(Qn),modelPreferences:tt.optional(),systemPrompt:L().optional(),includeContext:yt(["none","thisServer","allServers"]).optional(),temperature:_e().optional(),maxTokens:_e().int(),stopSequences:re(L()).optional(),metadata:t.optional(),tools:re(ht).optional(),toolChoice:qe.optional()}),Zn=c.extend({method:ce("sampling/createMessage"),params:ui}),Gn=f.extend({model:L(),stopReason:We(yt(["endTurn","stopSequence","maxTokens"]).or(L())),role:Q,content:zt}),Wt=f.extend({model:L(),stopReason:We(yt(["endTurn","stopSequence","maxTokens","toolUse"]).or(L())),role:Q,content:Ue([Pn,re(Pn)])}),Ui=Y({type:ce("boolean"),title:L().optional(),description:L().optional(),default:Fe().optional()}),Ua=Y({type:ce("string"),title:L().optional(),description:L().optional(),minLength:_e().optional(),maxLength:_e().optional(),format:yt(["email","uri","date","date-time"]).optional(),default:L().optional()}),Mo=Y({type:yt(["number","integer"]),title:L().optional(),description:L().optional(),minimum:_e().optional(),maximum:_e().optional(),default:_e().optional()}),Dr=Y({type:ce("string"),title:L().optional(),description:L().optional(),enum:re(L()),default:L().optional()}),Or=Y({type:ce("string"),title:L().optional(),description:L().optional(),oneOf:re(Y({const:L(),title:L()})),default:L().optional()}),Ba=Y({type:ce("string"),title:L().optional(),description:L().optional(),enum:re(L()),enumNames:re(L()).optional(),default:L().optional()}),Bi=Ue([Dr,Or]),Co=Y({type:ce("array"),title:L().optional(),description:L().optional(),minItems:_e().optional(),maxItems:_e().optional(),items:Y({type:ce("string"),enum:re(L())}),default:re(L()).optional()}),zo=Y({type:ce("array"),title:L().optional(),description:L().optional(),minItems:_e().optional(),maxItems:_e().optional(),items:Y({anyOf:re(Y({const:L(),title:L()}))}),default:re(L()).optional()}),Yl=Ue([Co,zo]),Ds=Ue([Ba,Bi,Yl]),Si=Ue([Ds,Ui,Ua,Mo]),wn=l.extend({mode:ce("form").optional(),message:L(),requestedSchema:Y({type:ce("object"),properties:Ee(L(),Si),required:re(L()).optional()}).catchall(Je())}),fa=l.extend({mode:ce("url"),message:L(),elicitationId:L(),url:L().url()}),Fi=Ue([wn,fa]),pa=c.extend({method:ce("elicitation/create"),params:Fi}),Fa=u.extend({elicitationId:L()}),Xl=d.extend({method:ce("notifications/elicitation/complete"),params:Fa}),jh=f.extend({action:yt(["accept","decline","cancel"]),content:pl(zi=>zi===null?void 0:zi,Ee(L(),Ue([L(),_e(),Fe(),re(L())])).optional())}),Uh=Y({type:ce("ref/resource"),uri:L()}),Bh=Y({type:ce("ref/prompt"),name:L()}),Lu=s.extend({ref:Ue([Bh,Uh]),argument:Y({name:L(),value:L()}),context:Y({arguments:Ee(L(),L()).optional()}).optional()}),Eu=c.extend({method:ce("completion/complete"),params:Lu}),Fh=f.extend({completion:at({values:re(L()).max(100),total:We(_e().int()),hasMore:We(Fe())})}),Du=Y({uri:L().startsWith("file://"),name:L().optional(),_meta:Ee(L(),Je()).optional()}),Os=c.extend({method:ce("roots/list"),params:s.optional()}),Ns=f.extend({roots:re(Du)}),Kl=d.extend({method:ce("notifications/roots/list_changed"),params:u.optional()}),Ps=at({ttl:_e().optional(),pollInterval:_e().optional()}),js=yt(["working","input_required","completed","failed","cancelled"]),ma=Y({taskId:L(),status:js,ttl:Ue([_e(),ts()]),createdAt:L(),lastUpdatedAt:L(),pollInterval:We(_e()),statusMessage:We(L())}),qi=f.extend({task:ma}),Jl=u.merge(ma),ga=d.extend({method:ce("notifications/tasks/status"),params:Jl}),Us=c.extend({method:ce("tasks/get"),params:s.extend({taskId:L()})}),Ql=f.merge(ma),ec=c.extend({method:ce("tasks/result"),params:s.extend({taskId:L()})}),tc=f.loose(),sr=G.extend({method:ce("tasks/list")}),ln=P.extend({tasks:re(ma)}),Bs=c.extend({method:ce("tasks/cancel"),params:s.extend({taskId:L()})});return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:n,CursorSchema:i,TaskMetadataSchema:r,RelatedTaskMetadataSchema:o,RequestMetaSchema:a,BaseRequestParamsSchema:s,TaskAugmentedRequestParamsSchema:l,RequestSchema:c,NotificationsParamsSchema:u,NotificationSchema:d,ResultSchema:f,RequestIdSchema:h,EmptyResultSchema:p,CancelledNotificationParamsSchema:g,CancelledNotificationSchema:v,IconSchema:m,IconsSchema:y,BaseMetadataSchema:b,ImplementationSchema:x,ClientTasksCapabilitySchema:$,ServerTasksCapabilitySchema:C,ClientCapabilitiesSchema:w,InitializeRequestParamsSchema:z,InitializeRequestSchema:A,ServerCapabilitiesSchema:M,InitializeResultSchema:T,InitializedNotificationSchema:k,PingRequestSchema:I,ProgressSchema:D,ProgressNotificationParamsSchema:E,ProgressNotificationSchema:N,PaginatedRequestParamsSchema:F,PaginatedRequestSchema:G,PaginatedResultSchema:P,ResourceContentsSchema:O,TextResourceContentsSchema:V,BlobResourceContentsSchema:H,RoleSchema:Q,AnnotationsSchema:le,ResourceSchema:se,ResourceTemplateSchema:ae,ListResourcesRequestSchema:Se,ListResourcesResultSchema:ve,ListResourceTemplatesRequestSchema:$e,ListResourceTemplatesResultSchema:je,ResourceRequestParamsSchema:R,ReadResourceRequestParamsSchema:ie,ReadResourceRequestSchema:te,ReadResourceResultSchema:B,ResourceListChangedNotificationSchema:U,SubscribeRequestParamsSchema:W,SubscribeRequestSchema:ue,UnsubscribeRequestParamsSchema:de,UnsubscribeRequestSchema:J,ResourceUpdatedNotificationParamsSchema:ge,ResourceUpdatedNotificationSchema:we,PromptArgumentSchema:X,PromptSchema:K,ListPromptsRequestSchema:Ce,ListPromptsResultSchema:ye,GetPromptRequestParamsSchema:Qe,GetPromptRequestSchema:mt,TextContentSchema:et,ImageContentSchema:Le,AudioContentSchema:Oe,ToolUseContentSchema:ot,EmbeddedResourceSchema:$t,ResourceLinkSchema:Bt,ContentBlockSchema:sn,PromptMessageSchema:ct,GetPromptResultSchema:pn,PromptListChangedNotificationSchema:zn,ToolAnnotationsSchema:Ge,ToolExecutionSchema:Xe,ToolSchema:ht,ListToolsRequestSchema:Re,ListToolsResultSchema:vt,CallToolResultSchema:Mt,CallToolRequestParamsSchema:Ze,CallToolRequestSchema:lt,ToolListChangedNotificationSchema:bt,LoggingLevelSchema:it,SetLevelRequestParamsSchema:Kt,SetLevelRequestSchema:wt,LoggingMessageNotificationParamsSchema:ut,LoggingMessageNotificationSchema:he,ModelHintSchema:xe,ModelPreferencesSchema:tt,ToolChoiceSchema:qe,ToolResultContentSchema:dt,SamplingContentSchema:zt,SamplingMessageContentBlockSchema:Pn,SamplingMessageSchema:Qn,CreateMessageRequestParamsSchema:ui,CreateMessageRequestSchema:Zn,CreateMessageResultSchema:Gn,CreateMessageResultWithToolsSchema:Wt,BooleanSchemaSchema:Ui,StringSchemaSchema:Ua,NumberSchemaSchema:Mo,UntitledSingleSelectEnumSchemaSchema:Dr,TitledSingleSelectEnumSchemaSchema:Or,LegacyTitledEnumSchemaSchema:Ba,SingleSelectEnumSchemaSchema:Bi,UntitledMultiSelectEnumSchemaSchema:Co,TitledMultiSelectEnumSchemaSchema:zo,MultiSelectEnumSchemaSchema:Yl,EnumSchemaSchema:Ds,PrimitiveSchemaDefinitionSchema:Si,ElicitRequestFormParamsSchema:wn,ElicitRequestURLParamsSchema:fa,ElicitRequestParamsSchema:Fi,ElicitRequestSchema:pa,ElicitationCompleteNotificationParamsSchema:Fa,ElicitationCompleteNotificationSchema:Xl,ElicitResultSchema:jh,ResourceTemplateReferenceSchema:Uh,PromptReferenceSchema:Bh,CompleteRequestParamsSchema:Lu,CompleteRequestSchema:Eu,CompleteResultSchema:Fh,RootSchema:Du,ListRootsRequestSchema:Os,ListRootsResultSchema:Ns,RootsListChangedNotificationSchema:Kl,TaskCreationParamsSchema:Ps,TaskStatusSchema:js,TaskSchema:ma,CreateTaskResultSchema:qi,TaskStatusNotificationParamsSchema:Jl,TaskStatusNotificationSchema:ga,GetTaskRequestSchema:Us,GetTaskResultSchema:Ql,GetTaskPayloadRequestSchema:ec,GetTaskPayloadResultSchema:tc,ListTasksRequestSchema:sr,ListTasksResultSchema:ln,CancelTaskRequestSchema:Bs,CancelTaskResultSchema:f.merge(ma),ClientRequestSchema:Ue([I,A,Eu,wt,mt,Ce,Se,$e,te,ue,J,lt,Re,Us,ec,sr,Bs]),ClientNotificationSchema:Ue([v,N,k,Kl,ga]),ClientResultSchema:Ue([p,Gn,Wt,jh,Ns,Ql,ln,qi]),ServerRequestSchema:Ue([I,Zn,pa,Os,Us,ec,sr,Bs]),ServerNotificationSchema:Ue([v,N,he,we,U,bt,zn,ga,Xl]),ServerResultSchema:Ue([p,T,Fh,pn,ye,ve,je,B,Mt,vt,Ql,ln,qi]),CallToolResultWireSchema:Je().superRefine((zi,SM)=>{if(!(typeof zi!="object"||zi===null||Array.isArray(zi)||zi.content!==void 0)){for(let Fx of IV)if(Fx in zi){SM.addIssue({code:"custom",message:`content is required when the body carries '${Fx}' \u2014 another result family cannot default into an empty tools/call success`});return}}}).transform(Sde).pipe(Mt)}}var wde;function RV(){return wde??=$de()}function LV(e){return e.type!=="object"}var kde=new Set(["const","enum","default","examples"]),Mde=new Set(["properties","patternProperties","$defs","definitions","dependentSchemas","dependencies"]);function bV(e){return e!==void 0&&!(typeof e=="string"&&e.startsWith("#"))}function Cde(e){let t=typeof e.$schema=="string"?e.$schema:void 0;if(bV(e.$id))return{...t!==void 0&&{$schema:t},type:"object",properties:{result:e},required:["result"]};let n=bF(e.$schema)&&e.$recursiveAnchor!==!0,i=(r,o)=>{if(Array.isArray(r))return r.map(l=>i(l,!1));if(r===null||typeof r!="object"||!o&&bV(r.$id))return r;let a={},s=!1;for(let[l,c]of Object.entries(r))o?a[l]=i(c,!1):(l==="$ref"||l==="$dynamicRef")&&typeof c=="string"?a[l]=c==="#"?"#/properties/result":c.startsWith("#/")?`#/properties/result${c.slice(1)}`:c:l==="$recursiveRef"&&c==="#"&&n?s=!0:kde.has(l)?a[l]=c:Mde.has(l)?a[l]=i(c,!0):a[l]=i(c,!1);return s&&("$ref"in a?a.allOf=[...Array.isArray(a.allOf)?a.allOf:[],{$ref:"#/properties/result"}]:a.$ref="#/properties/result"),a};return{...t!==void 0&&{$schema:t},type:"object",properties:{result:i(e,!1)},required:["result"]}}var EV={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"tasks/get":null,"tasks/result":null,"tasks/list":null,"tasks/cancel":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},DV={"notifications/cancelled":null,"notifications/progress":null,"notifications/initialized":null,"notifications/roots/list_changed":null,"notifications/tasks/status":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/elicitation/complete":null},zde={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},nw;function HE(){if(nw)return nw;let e=RV();return nw={requestSchemas:{ping:e.PingRequestSchema,initialize:e.InitializeRequestSchema,"completion/complete":e.CompleteRequestSchema,"logging/setLevel":e.SetLevelRequestSchema,"prompts/get":e.GetPromptRequestSchema,"prompts/list":e.ListPromptsRequestSchema,"resources/list":e.ListResourcesRequestSchema,"resources/templates/list":e.ListResourceTemplatesRequestSchema,"resources/read":e.ReadResourceRequestSchema,"resources/subscribe":e.SubscribeRequestSchema,"resources/unsubscribe":e.UnsubscribeRequestSchema,"tools/call":e.CallToolRequestSchema,"tools/list":e.ListToolsRequestSchema,"tasks/get":e.GetTaskRequestSchema,"tasks/result":e.GetTaskPayloadRequestSchema,"tasks/list":e.ListTasksRequestSchema,"tasks/cancel":e.CancelTaskRequestSchema,"sampling/createMessage":e.CreateMessageRequestSchema,"elicitation/create":e.ElicitRequestSchema,"roots/list":e.ListRootsRequestSchema},notificationSchemas:{"notifications/cancelled":e.CancelledNotificationSchema,"notifications/progress":e.ProgressNotificationSchema,"notifications/initialized":e.InitializedNotificationSchema,"notifications/roots/list_changed":e.RootsListChangedNotificationSchema,"notifications/tasks/status":e.TaskStatusNotificationSchema,"notifications/message":e.LoggingMessageNotificationSchema,"notifications/resources/updated":e.ResourceUpdatedNotificationSchema,"notifications/resources/list_changed":e.ResourceListChangedNotificationSchema,"notifications/tools/list_changed":e.ToolListChangedNotificationSchema,"notifications/prompts/list_changed":e.PromptListChangedNotificationSchema,"notifications/elicitation/complete":e.ElicitationCompleteNotificationSchema},resultSchemas:{ping:e.EmptyResultSchema,initialize:e.InitializeResultSchema,"completion/complete":e.CompleteResultSchema,"logging/setLevel":e.EmptyResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"resources/subscribe":e.EmptyResultSchema,"resources/unsubscribe":e.EmptyResultSchema,"tools/call":e.CallToolResultWireSchema,"tools/list":e.ListToolsResultSchema,"sampling/createMessage":e.CreateMessageResultWithToolsSchema,"elicitation/create":e.ElicitResultSchema,"roots/list":e.ListRootsResultSchema}},nw}function OV(e){return Object.prototype.hasOwnProperty.call(EV,e)}function NV(e){return Object.prototype.hasOwnProperty.call(DV,e)}function Tde(e){return Object.prototype.hasOwnProperty.call(zde,e)}function Ade(e){return Tde(e)?HE().resultSchemas[e]:void 0}function Ide(e){return OV(e)?HE().requestSchemas[e]:void 0}function Rde(e){return NV(e)?HE().notificationSchemas[e]:void 0}var BDe=Object.keys(EV),FDe=Object.keys(DV);function UE(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function iw(e,t){if(e===void 0)return{ok:!1,reason:"not-in-era"};let n=e.safeParse(t);return n.success?{ok:!0,value:n.data}:{ok:!1,reason:"invalid",message:String(n.error)}}var xV={ok:!1,reason:"not-in-era"};function _V(e){return UE(e)&&UE(e.outputSchema)&&LV(e.outputSchema)}var ZE={era:"2025-11-25",hasRequestMethod:OV,hasNotificationMethod:NV,validateRequest:(e,t)=>iw(Ide(e),t),validateResult:(e,t)=>iw(Ade(e),t),validateNotification:(e,t)=>iw(Rde(e),t),hasInputRequestMethod:()=>!1,validateInputRequest:()=>xV,validateInputResponse:()=>xV,samplingResultVariant:((e,t)=>{let n=RV();return iw(e?n.CreateMessageResultWithToolsSchema:n.CreateMessageResultSchema,t)}),outboundEnvelope:e=>{},validateEnvelopeMeta:e=>[],projectCallToolResult(e,t){let n=AV(e),i=n.structuredContent;if(i===void 0)return n;let r=typeof i!="object"||i===null||Array.isArray(i),o=t!==void 0&&LV(t);return!r&&!o?n:{...n,structuredContent:{result:i}}},decodeResult(e,t){if(UE(t)&&"resultType"in t){let n={...t};return delete n.resultType,{kind:"complete",result:n}}return{kind:"complete",result:t}},encodeResult(e,t){if(e!=="tools/list")return t;let n=t.tools;return!Array.isArray(n)||!n.some(i=>_V(i))?t:{...t,tools:n.map(i=>_V(i)?{...i,outputSchema:Cde(i.outputSchema)}:i)}},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope:e=>{}};function Lde(){let e=Vc(()=>Ue([L(),_e(),Fe(),ts(),Ee(L(),e),re(e)])),t=Ee(L(),e),n=Ue([L(),_e().int()]),i=L(),r=Ue([L(),_e().int()]),o=yt(["user","assistant"]),a=yt(["debug","info","notice","warning","error","critical","alert","emergency"]),s=L().refine(ln=>{try{return atob(ln),!0}catch{return!1}},{message:"Invalid Base64 string"}),l=Y({ttl:_e().optional()}),c=Y({taskId:L()}),u=at({progressToken:n.optional(),"io.modelcontextprotocol/related-task":c.optional()}),d=Y({_meta:u.optional()}),f=d.extend({task:l.optional()}),h=Y({_meta:u.optional()}),p=Y({method:L(),params:h.loose().optional()}),g=Y({src:L(),mimeType:L().optional(),sizes:re(L()).optional(),theme:yt(["light","dark"]).optional()}),v=Y({icons:re(g).optional()}),m=Y({name:L(),title:L().optional()}),y=m.extend({...m.shape,...v.shape,version:L(),websiteUrl:L().optional(),description:L().optional()}),b=$a(Y({applyDefaults:Fe().optional()}),t),x=pl(ln=>ln&&typeof ln=="object"&&!Array.isArray(ln)&&Object.keys(ln).length===0?{form:{}}:ln,$a(Y({form:b.optional(),url:t.optional()}),t.optional())),_=at({list:t.optional(),cancel:t.optional(),requests:at({sampling:at({createMessage:t.optional()}).optional(),elicitation:at({create:t.optional()}).optional()}).optional()}),S=at({list:t.optional(),cancel:t.optional(),requests:at({tools:at({call:t.optional()}).optional()}).optional()}),$=Y({experimental:Ee(L(),t).optional(),sampling:Y({context:t.optional(),tools:t.optional()}).optional(),elicitation:x.optional(),roots:Y({listChanged:Fe().optional()}).optional(),tasks:_.optional(),extensions:Ee(L(),t).optional()}),C=Y({experimental:Ee(L(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:Y({listChanged:Fe().optional()}).optional(),resources:Y({subscribe:Fe().optional(),listChanged:Fe().optional()}).optional(),tools:Y({listChanged:Fe().optional()}).optional(),tasks:S.optional(),extensions:Ee(L(),t).optional()}),w=Y({progress:_e(),total:We(_e()),message:We(L())}),z=Y({...h.shape,...w.shape,progressToken:n}),A=p.extend({method:ce("notifications/progress"),params:z}),M=h.extend({level:a,logger:L().optional(),data:Je()}),T=p.extend({method:ce("notifications/message"),params:M}),k=Y({uri:L(),mimeType:We(L()),_meta:Ee(L(),Je()).optional()}),I=k.extend({text:L()}),D=k.extend({blob:s}),E=Y({audience:re(o).optional(),priority:_e().min(0).max(1).optional(),lastModified:qo.datetime({offset:!0}).optional()}),N=Y({...m.shape,...v.shape,uri:L(),description:We(L()),mimeType:We(L()),size:We(_e()),annotations:E.optional(),_meta:We(at({}))}),F=Y({...m.shape,...v.shape,uriTemplate:L(),description:We(L()),mimeType:We(L()),annotations:E.optional(),_meta:We(at({}))}),G=p.extend({method:ce("notifications/resources/list_changed"),params:h.optional()}),P=h.extend({uri:L()}),O=p.extend({method:ce("notifications/resources/updated"),params:P}),V=Y({name:L(),description:We(L()),required:We(Fe())}),j=Y({...m.shape,...v.shape,description:We(L()),arguments:We(re(V)),_meta:We(at({}))}),H=p.extend({method:ce("notifications/prompts/list_changed"),params:h.optional()}),Q=Y({type:ce("text"),text:L(),annotations:E.optional(),_meta:Ee(L(),Je()).optional()}),le=Y({type:ce("image"),data:s,mimeType:L(),annotations:E.optional(),_meta:Ee(L(),Je()).optional()}),se=Y({type:ce("audio"),data:s,mimeType:L(),annotations:E.optional(),_meta:Ee(L(),Je()).optional()}),ae=Y({type:ce("tool_use"),name:L(),id:L(),input:Ee(L(),Je()),_meta:Ee(L(),Je()).optional()}),Se=Y({type:ce("resource"),resource:Ue([I,D]),annotations:E.optional(),_meta:Ee(L(),Je()).optional()}),ve=N.extend({type:ce("resource_link")}),$e=Ue([Q,le,se,ve,Se]),je=Y({role:o,content:$e}),R=Y({title:L().optional(),readOnlyHint:Fe().optional(),destructiveHint:Fe().optional(),idempotentHint:Fe().optional(),openWorldHint:Fe().optional()}),ie=p.extend({method:ce("notifications/tools/list_changed"),params:h.optional()}),te=Y({name:L().optional()}),B=Y({hints:re(te).optional(),costPriority:_e().min(0).max(1).optional(),speedPriority:_e().min(0).max(1).optional(),intelligencePriority:_e().min(0).max(1).optional()}),U=Y({mode:yt(["auto","required","none"]).optional()}),W=Y({type:ce("boolean"),title:L().optional(),description:L().optional(),default:Fe().optional()}),ue=Y({type:ce("string"),title:L().optional(),description:L().optional(),minLength:_e().optional(),maxLength:_e().optional(),format:yt(["email","uri","date","date-time"]).optional(),default:L().optional()}),de=Y({type:yt(["number","integer"]),title:L().optional(),description:L().optional(),minimum:_e().optional(),maximum:_e().optional(),default:_e().optional()}),J=Y({type:ce("string"),title:L().optional(),description:L().optional(),enum:re(L()),default:L().optional()}),ge=Y({type:ce("string"),title:L().optional(),description:L().optional(),oneOf:re(Y({const:L(),title:L()})),default:L().optional()}),we=Y({type:ce("string"),title:L().optional(),description:L().optional(),enum:re(L()),enumNames:re(L()).optional(),default:L().optional()}),X=Ue([J,ge]),K=Y({type:ce("array"),title:L().optional(),description:L().optional(),minItems:_e().optional(),maxItems:_e().optional(),items:Y({type:ce("string"),enum:re(L())}),default:re(L()).optional()}),Ce=Y({type:ce("array"),title:L().optional(),description:L().optional(),minItems:_e().optional(),maxItems:_e().optional(),items:Y({anyOf:re(Y({const:L(),title:L()}))}),default:re(L()).optional()}),ye=Ue([K,Ce]),Qe=Ue([we,X,ye]),mt=Ue([Qe,W,ue,de]),et=f.extend({mode:ce("form").optional(),message:L(),requestedSchema:Y({type:ce("object"),properties:Ee(L(),mt),required:re(L()).optional()}).catchall(Je())}),Le=Y({type:ce("ref/resource"),uri:L()}),Oe=Y({type:ce("ref/prompt"),name:L()}),ot=Y({uri:L().startsWith("file://"),name:L().optional(),_meta:Ee(L(),Je()).optional()}),$t=$.shape,Bt=Y({experimental:$t.experimental,sampling:$t.sampling,elicitation:$t.elicitation,roots:$t.roots,extensions:$t.extensions}),sn=C.shape,ct=Y({experimental:sn.experimental,logging:sn.logging,completions:sn.completions,prompts:sn.prompts,resources:sn.resources,tools:sn.tools,extensions:sn.extensions}),pn=at({progressToken:n.optional(),[xd]:L(),[$p]:y.optional(),[_d]:Bt,[wp]:a.optional()}),zn=Y({...m.shape,...v.shape,description:L().optional(),inputSchema:at({$schema:L().optional(),type:ce("object")}),outputSchema:at({$schema:L().optional()}).optional(),annotations:R.optional(),_meta:Ee(L(),Je()).optional()}),Ge=Y({type:ce("tool_result"),toolUseId:L(),content:re($e),structuredContent:Je().optional(),isError:Fe().optional(),_meta:Ee(L(),Je()).optional()}),Xe=Ue([Q,le,se,ae,Ge]),ht=Y({role:o,content:Ue([Xe,re(Xe)]),_meta:Ee(L(),Je()).optional()}),Re=L(),vt=at({[Zc]:y.optional().catch(void 0)}),Mt=vt.optional();function Ze(ln){return at({_meta:Mt,resultType:Re.default("complete"),...ln})}let lt=Ze({}),bt=Ze({nextCursor:i.optional()}),it=Ze({content:re($e),structuredContent:Je().optional(),isError:Fe().optional()}),Kt=Ze({ttlMs:_e().int().min(0),cacheScope:yt(["public","private"]),tools:re(zn),nextCursor:i.optional()}),wt=Ze({ttlMs:_e().int().min(0),cacheScope:yt(["public","private"]),prompts:re(j),nextCursor:i.optional()}),ut=Ze({description:L().optional(),messages:re(je)}),he=Ze({ttlMs:_e().int().min(0),cacheScope:yt(["public","private"]),resources:re(N),nextCursor:i.optional()}),xe=Ze({ttlMs:_e().int().min(0),cacheScope:yt(["public","private"]),resourceTemplates:re(F),nextCursor:i.optional()}),tt=Ze({ttlMs:_e().int().min(0),cacheScope:yt(["public","private"]),contents:re(Ue([I,D]))}),qe=Ze({completion:Y({values:re(L()).max(100),total:_e().int().optional(),hasMore:Fe().optional()}).loose()}),dt=Ze({ttlMs:_e().int().min(0),cacheScope:yt(["public","private"])}),zt=Ze({ttlMs:_e().int().min(0).catch(0),cacheScope:yt(["public","private"]).catch("private"),supportedVersions:re(L()),capabilities:ct,instructions:L().optional()}),Pn=Y({messages:re(ht),modelPreferences:B.optional(),systemPrompt:L().optional(),includeContext:yt(["none","thisServer","allServers"]).optional(),temperature:_e().optional(),maxTokens:_e().int(),stopSequences:re(L()).optional(),metadata:t.optional(),tools:re(zn).optional(),toolChoice:U.optional()}),Qn=Y({method:ce("sampling/createMessage"),params:Pn}),ui=Y({method:ce("roots/list"),params:Y({_meta:Ee(L(),Je()).optional()}).optional()}),Zn=Y({...ht.shape,model:L(),stopReason:L().optional()}),Gn=Y({roots:re(ot)}),Wt=Y({action:yt(["accept","decline","cancel"]),content:Ee(L(),Ue([L(),_e(),Fe(),re(L())])).optional()}),Ui=Y({mode:ce("url"),message:L(),url:L().url()}),Ua=Ue([et,Ui]),Mo=Y({method:ce("elicitation/create"),params:Ua}),Dr=Ue([Qn,ui,Mo]),Or=Ue([Zn,Gn,Wt]),Ba=Ee(L(),Dr),Bi=Ee(L(),Or),Co=Ze({inputRequests:Ba.optional(),requestState:L().optional()}),zo={inputResponses:Bi.optional(),requestState:L().optional()},Yl=Y({_meta:pn,...zo}),Ds=at({progressToken:n.optional()});function Si(ln,Bs){return Y({method:ce(ln),params:Y({_meta:pn,...Bs})})}function wn(ln,Bs){return Y({method:ce(ln),params:Y({_meta:Ds.optional(),...Bs}).optional()})}let fa={name:L(),arguments:Ee(L(),Je()).optional(),...zo},Fi={cursor:i.optional()},pa=Si("tools/call",fa),Fa=Si("tools/list",Fi),Xl=Si("prompts/list",Fi),jh=Si("prompts/get",{name:L(),arguments:Ee(L(),L()).optional(),...zo}),Uh=Si("resources/list",Fi),Bh=Si("resources/templates/list",Fi),Lu=Si("resources/read",{uri:L(),...zo}),Eu={ref:Ue([Oe,Le]),argument:Y({name:L(),value:L()}),context:Y({arguments:Ee(L(),L()).optional()}).optional()},Fh=Si("completion/complete",Eu),Du=Si("server/discover",{}),Os=Y({toolsListChanged:Fe().optional(),promptsListChanged:Fe().optional(),resourcesListChanged:Fe().optional(),resourceSubscriptions:re(L()).optional()}),Ns={notifications:Os},Kl=Si("subscriptions/listen",Ns),Ps=vt.extend({"io.modelcontextprotocol/subscriptionId":r}),js=at({_meta:Ps,resultType:Re.default("complete")}),ma={"tools/call":wn("tools/call",fa),"tools/list":wn("tools/list",Fi),"prompts/get":wn("prompts/get",{name:L(),arguments:Ee(L(),L()).optional()}),"prompts/list":wn("prompts/list",Fi),"resources/list":wn("resources/list",Fi),"resources/templates/list":wn("resources/templates/list",Fi),"resources/read":wn("resources/read",{uri:L()}),"completion/complete":wn("completion/complete",Eu),"server/discover":wn("server/discover",{}),"subscriptions/listen":wn("subscriptions/listen",Ns)};function qi(ln){return at({_meta:Mt,...ln})}let Jl={"tools/call":qi({content:re($e),structuredContent:Je().optional(),isError:Fe().optional()}),"tools/list":qi({ttlMs:_e().int().min(0),cacheScope:yt(["public","private"]),tools:re(zn),nextCursor:i.optional()}),"prompts/get":qi({description:L().optional(),messages:re(je)}),"prompts/list":qi({ttlMs:_e().int().min(0),cacheScope:yt(["public","private"]),prompts:re(j),nextCursor:i.optional()}),"resources/list":qi({ttlMs:_e().int().min(0),cacheScope:yt(["public","private"]),resources:re(N),nextCursor:i.optional()}),"resources/templates/list":qi({ttlMs:_e().int().min(0),cacheScope:yt(["public","private"]),resourceTemplates:re(F),nextCursor:i.optional()}),"resources/read":qi({ttlMs:_e().int().min(0),cacheScope:yt(["public","private"]),contents:re(Ue([I,D]))}),"completion/complete":qi({completion:Y({values:re(L()).max(100),total:_e().int().optional(),hasMore:Fe().optional()}).loose()}),"server/discover":qi({ttlMs:_e().int().min(0).catch(0),cacheScope:yt(["public","private"]).catch("private"),supportedVersions:re(L()),capabilities:ct,instructions:L().optional()}),"subscriptions/listen":qi({})},ga=at({"io.modelcontextprotocol/subscriptionId":r.optional()}),Us=Y({method:ce("notifications/subscriptions/acknowledged"),params:Y({_meta:ga.optional(),notifications:Os})}),Ql=Y({_meta:ga.optional(),requestId:r,reason:L().optional()}),ec=Y({method:ce("notifications/cancelled"),params:Ql}),tc={"notifications/cancelled":ec,"notifications/progress":A,"notifications/message":T,"notifications/resources/updated":O,"notifications/resources/list_changed":G,"notifications/tools/list_changed":ie,"notifications/prompts/list_changed":H,"notifications/subscriptions/acknowledged":Us},sr=ln=>Y({jsonrpc:ce("2.0"),id:Ue([L(),_e().int()]),result:ln}).strict();return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:n,CursorSchema:i,RequestIdSchema:r,RoleSchema:o,LoggingLevelSchema:a,TaskMetadataSchema:l,RelatedTaskMetadataSchema:c,RequestMetaSchema:u,BaseRequestParamsSchema:d,TaskAugmentedRequestParamsSchema:f,NotificationsParamsSchema:h,NotificationSchema:p,IconSchema:g,IconsSchema:v,BaseMetadataSchema:m,ImplementationSchema:y,ClientTasksCapabilitySchema:_,ServerTasksCapabilitySchema:S,ClientCapabilitiesSchema:$,ServerCapabilitiesSchema:C,ProgressSchema:w,ProgressNotificationParamsSchema:z,ProgressNotificationSchema:A,LoggingMessageNotificationParamsSchema:M,LoggingMessageNotificationSchema:T,ResourceContentsSchema:k,TextResourceContentsSchema:I,BlobResourceContentsSchema:D,AnnotationsSchema:E,ResourceSchema:N,ResourceTemplateSchema:F,ResourceListChangedNotificationSchema:G,ResourceUpdatedNotificationParamsSchema:P,ResourceUpdatedNotificationSchema:O,PromptArgumentSchema:V,PromptSchema:j,PromptListChangedNotificationSchema:H,TextContentSchema:Q,ImageContentSchema:le,AudioContentSchema:se,ToolUseContentSchema:ae,EmbeddedResourceSchema:Se,ResourceLinkSchema:ve,ContentBlockSchema:$e,PromptMessageSchema:je,ToolAnnotationsSchema:R,ToolListChangedNotificationSchema:ie,ModelHintSchema:te,ModelPreferencesSchema:B,ToolChoiceSchema:U,BooleanSchemaSchema:W,StringSchemaSchema:ue,NumberSchemaSchema:de,UntitledSingleSelectEnumSchemaSchema:J,TitledSingleSelectEnumSchemaSchema:ge,LegacyTitledEnumSchemaSchema:we,SingleSelectEnumSchemaSchema:X,UntitledMultiSelectEnumSchemaSchema:K,TitledMultiSelectEnumSchemaSchema:Ce,MultiSelectEnumSchemaSchema:ye,EnumSchemaSchema:Qe,PrimitiveSchemaDefinitionSchema:mt,ElicitRequestFormParamsSchema:et,ResourceTemplateReferenceSchema:Le,PromptReferenceSchema:Oe,RootSchema:ot,ClientCapabilities2026Schema:Bt,ServerCapabilities2026Schema:ct,RequestMetaEnvelopeSchema:pn,ToolSchema:zn,ToolResultContentSchema:Ge,SamplingMessageContentBlockSchema:Xe,SamplingMessageSchema:ht,ResultTypeSchema:Re,ResultMetaSchema:vt,ResultSchema:lt,PaginatedResultSchema:bt,CallToolResultSchema:it,ListToolsResultSchema:Kt,ListPromptsResultSchema:wt,GetPromptResultSchema:ut,ListResourcesResultSchema:he,ListResourceTemplatesResultSchema:xe,ReadResourceResultSchema:tt,CompleteResultSchema:qe,CacheableResultSchema:dt,DiscoverResultSchema:zt,CreateMessageRequestParamsSchema:Pn,CreateMessageRequestSchema:Qn,ListRootsRequestSchema:ui,CreateMessageResultSchema:Zn,ListRootsResultSchema:Gn,ElicitResultSchema:Wt,ElicitRequestURLParamsSchema:Ui,ElicitRequestParamsSchema:Ua,ElicitRequestSchema:Mo,InputRequestSchema:Dr,InputResponseSchema:Or,InputRequestsSchema:Ba,InputResponsesSchema:Bi,InputRequiredResultSchema:Co,InputResponseRequestParamsSchema:Yl,CallToolRequestSchema:pa,ListToolsRequestSchema:Fa,ListPromptsRequestSchema:Xl,GetPromptRequestSchema:jh,ListResourcesRequestSchema:Uh,ListResourceTemplatesRequestSchema:Bh,ReadResourceRequestSchema:Lu,CompleteRequestSchema:Fh,DiscoverRequestSchema:Du,SubscriptionFilterSchema:Os,SubscriptionsListenRequestSchema:Kl,SubscriptionsListenResultMetaSchema:Ps,SubscriptionsListenResultSchema:js,dispatchRequestSchemas:ma,dispatchResultSchemas:Jl,NotificationMetaSchema:ga,SubscriptionsAcknowledgedNotificationSchema:Us,CancelledNotificationParamsSchema:Ql,CancelledNotificationSchema:ec,notificationSchemas2026:tc,JSONRPCResultResponseSchema:sr(lt),CallToolResultResponseSchema:sr(Ue([it,Co])),ListToolsResultResponseSchema:sr(Kt),ListPromptsResultResponseSchema:sr(wt),GetPromptResultResponseSchema:sr(Ue([ut,Co])),ListResourcesResultResponseSchema:sr(he),ListResourceTemplatesResultResponseSchema:sr(xe),ReadResourceResultResponseSchema:sr(Ue([tt,Co])),CompleteResultResponseSchema:sr(qe),DiscoverResultResponseSchema:sr(zt)}}var Ede;function Dd(){return Ede??=Lde()}var Dde=["tools/list","prompts/list","resources/list","resources/templates/list","resources/read","server/discover"];function Ode(e){return Dde.includes(e)}var GE=Symbol("modelcontextprotocol.resultCacheHintFallback");function Nde(e){return e[GE]}function PV(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0}function jV(e){return e==="public"||e==="private"}var qt=(function(e){return e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.ResourceNotFound=-32002]="ResourceNotFound",e[e.MissingRequiredClientCapability=-32021]="MissingRequiredClientCapability",e[e.UnsupportedProtocolVersion=-32022]="UnsupportedProtocolVersion",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired",e})({}),er=class UV extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.ProtocolError"})}static[Symbol.hasInstance](t){return bo(this,t)}static isInstance(t){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return bo(this,t)}constructor(t,n,i){super(n),this.code=t,this.data=i,this.name="ProtocolError",Od(this,new.target)}static fromError(t,n,i){if(t===qt.UrlElicitationRequired&&i){let r=i;if(r.elicitations)return new FV(r.elicitations,n)}if(t===qt.UnsupportedProtocolVersion&&i){let r=i;if(Array.isArray(r.supported)&&typeof r.requested=="string")return new qV({supported:r.supported,requested:r.requested},n)}if(t===qt.InvalidParams||t===qt.ResourceNotFound){let r=i;if(typeof r?.uri=="string"&&(t===qt.ResourceNotFound||Object.keys(r).length===1))return new BV(r.uri,n)}if(t===qt.MissingRequiredClientCapability&&i){let r=i;if(r.requiredCapabilities!==null&&typeof r.requiredCapabilities=="object"&&!Array.isArray(r.requiredCapabilities))return new VV({requiredCapabilities:r.requiredCapabilities},n)}return new UV(t,n,i)}},BV=class extends er{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.ResourceNotFoundError"})}constructor(e,t=`Resource not found: ${e}`){super(qt.InvalidParams,t,{uri:e})}get uri(){return this.data.uri}},FV=class extends er{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.UrlElicitationRequiredError"})}constructor(e,t=`URL elicitation${e.length>1?"s":""} required`){super(qt.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}},qV=class extends er{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.UnsupportedProtocolVersionError"})}constructor(e,t=`Unsupported protocol version: ${e.requested}`){super(qt.UnsupportedProtocolVersion,t,e)}get supported(){return this.data.supported}get requested(){return this.data.requested}},VV=class extends er{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.MissingRequiredClientCapabilityError"})}constructor(e,t=`Missing required client capabilities: ${Object.keys(e.requiredCapabilities).join(", ")}`){super(qt.MissingRequiredClientCapability,t,e)}get requiredCapabilities(){return this.data.requiredCapabilities}},Pde=0,jde="private",Ude=["tools/call","prompts/get","resources/read"];function Bde(e,t){let n=t.resultType;if(n===void 0)return{...t,resultType:"complete"};if(n==="complete"||Ude.includes(e))return t;throw new er(qt.InternalError,`Handler for ${e} returned resultType '${String(n)}', but results of ${e} only support 'complete' on protocol revision 2026-07-28`)}function Fde(e,t){let n=Nde(t);if(t.resultType!=="complete"||!Ode(e))return n===void 0?t:Gde(t);let i=t,r=PV(i.ttlMs)?i.ttlMs:Hde(n),o=jV(i.cacheScope)?i.cacheScope:Zde(n),a={...i,ttlMs:r,cacheScope:o};return delete a[GE],a}function qde(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Vde(e,t){if(t===void 0)return e;let n=e._meta;return n===void 0?{...e,_meta:{[Zc]:t}}:!qde(n)||n[Zc]!==void 0?e:{...e,_meta:{...n,[Zc]:t}}}function Hde(e){return e!==void 0&&PV(e.ttlMs)?e.ttlMs:Pde}function Zde(e){return e!==void 0&&jV(e.cacheScope)?e.cacheScope:jde}function Gde(e){let t={...e};return delete t[GE],t}var Wde=["elicitation/create","sampling/createMessage","roots/list"],rw;function HV(){if(rw)return rw;let e=Dd();return rw={request:{"elicitation/create":Y({method:ce("elicitation/create"),params:e.ElicitRequestParamsSchema}),"sampling/createMessage":Y({method:ce("sampling/createMessage"),params:e.CreateMessageRequestParamsSchema}),"roots/list":Y({method:ce("roots/list"),params:at({}).optional()})},response:{"elicitation/create":e.ElicitResultSchema,"sampling/createMessage":e.CreateMessageResultSchema,"roots/list":e.ListRootsResultSchema}},rw}function ZV(e){return Wde.includes(e)}function EE(e){return ZV(e)?HV().request[e]:void 0}function Yde(e){return ZV(e)?HV().response[e]:void 0}var WE={"tools/call":null,"tools/list":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"completion/complete":null,"server/discover":null,"subscriptions/listen":null},GV={"notifications/cancelled":null,"notifications/progress":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/subscriptions/acknowledged":null};function WV(e){return Object.prototype.hasOwnProperty.call(WE,e)}function YV(e){return Object.prototype.hasOwnProperty.call(GV,e)}function Xde(e){return Object.prototype.hasOwnProperty.call(WE,e)}function Kde(e){return WV(e)?Dd().dispatchRequestSchemas[e]:void 0}function Jde(e){return Xde(e)?Dd().dispatchResultSchemas[e]:void 0}function Qde(e){return YV(e)?Dd().notificationSchemas2026[e]:void 0}var qDe=Object.keys(WE),VDe=Object.keys(GV);function Gy(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Hy(e,t){if(e===void 0)return{ok:!1,reason:"not-in-era"};let n=e.safeParse(t);return n.success?{ok:!0,value:n.data}:{ok:!1,reason:"invalid",message:String(n.error)}}var ehe={ok:!1,reason:"not-in-era"},the=[xd,_d];function nhe(e,t){let n=t,i=!1,r=()=>(i||(n={...n},i=!0),n),o=t.tools;e==="tools/list"&&Array.isArray(o)&&o.some(s=>Gy(s)&&"execution"in s)&&(r().tools=o.map(s=>{if(!Gy(s)||!("execution"in s))return s;let l={...s};return delete l.execution,l}));let a=t.capabilities;if(Gy(a)&&"tasks"in a){let s={...a};delete s.tasks,r().capabilities=s}return n}var YE={era:"2026-07-28",hasRequestMethod:WV,hasNotificationMethod:YV,hasInputRequestMethod:e=>EE(e)!==void 0,validateRequest:(e,t)=>Hy(Kde(e),t),validateResult:(e,t)=>Hy(Jde(e),t),validateNotification:(e,t)=>Hy(Qde(e),t),validateInputRequest:(e,t)=>Hy(EE(e),t),validateInputResponse:(e,t)=>Hy(Yde(e),t),samplingResultVariant:()=>ehe,outboundEnvelope(e){return{[xd]:e.protocolVersion,[$p]:e.clientInfo,[_d]:e.clientCapabilities,...e.logLevel!==void 0&&{[wp]:e.logLevel}}},validateEnvelopeMeta(e){let t=[];for(let i of the)i in e||t.push({key:i,problem:"missing"});let n=Dd().RequestMetaEnvelopeSchema.safeParse(e);if(!n.success)for(let i of n.error.issues){let r=i.path.map(String),o=r.length>0?r.join("."):"_meta";r.length===1&&t.some(a=>a.key===o&&a.problem==="missing")||t.push({key:o,problem:i.message})}return t},projectCallToolResult:e=>AV(e),inputRequestSchema:EE,decodeResult(e,t){if(!Gy(t))return{kind:"invalid",error:new bi(Qi.InvalidResult,`Invalid result for ${e}: not an object`,{method:e})};let n=t.resultType;if(n===void 0)return{kind:"invalid",error:new bi(Qi.InvalidResult,`Invalid result for ${e}: missing required resultType \u2014 servers implementing protocol revision 2026-07-28 MUST include it (the absent-means-complete bridge applies only to earlier-revision servers)`,{method:e,violation:"missing-resultType"})};if(typeof n!="string")return{kind:"invalid",error:new bi(Qi.InvalidResult,`Invalid result for ${e}: non-string resultType`,{method:e,resultType:n})};if(n==="input_required"){let a=t.inputRequests,s=Gy(a)?a:{},l=t.requestState;return Object.keys(s).length===0&&typeof l!="string"?{kind:"invalid",error:new bi(Qi.InvalidResult,`Invalid result for ${e}: input_required carries neither inputRequests nor requestState (every input_required result must include at least one of the two)`,{method:e,violation:"input-required-missing-both"})}:{kind:"input_required",inputRequests:s,...typeof l=="string"&&{requestState:l}}}if(n!=="complete")return{kind:"invalid",error:new bi(Qi.UnsupportedResultType,`Unsupported result type '${n}' for ${e}`,{resultType:n,method:e})};let i=ihe(),r=Object.hasOwn(i,e)?i[e]:void 0;if(r!==void 0){let a=r.safeParse(t);if(!a.success)return{kind:"invalid",error:new bi(Qi.InvalidResult,`Invalid result for ${e}: ${a.error}`,{method:e})}}let o={...t};return delete o.resultType,{kind:"complete",result:o}},encodeResult(e,t,n){return Vde(Fde(e,Bde(e,nhe(e,t))),n)},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope(e){if(e.envelope===void 0)return"Request is missing the required _meta envelope for protocol revision 2026-07-28 (io.modelcontextprotocol/protocolVersion, io.modelcontextprotocol/clientCapabilities)";let t=Dd().RequestMetaEnvelopeSchema.safeParse(e.envelope);if(!t.success)return`Invalid _meta envelope for protocol revision 2026-07-28: ${t.error.issues.map(n=>n.message).join("; ")}`}},ow;function ihe(){if(ow)return ow;let e=Dd();return ow={"tools/call":e.CallToolResultSchema,"tools/list":e.ListToolsResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"completion/complete":e.CompleteResultSchema,"server/discover":e.DiscoverResultSchema},ow}var XE="2026-07-28";function Yy(e){return e!==void 0&&TV(e)?YE:ZE}function SV(e){return e.revision!==void 0?Yy(e.revision).era:e.era==="modern"?YE.era:ZE.era}function DE(e){return XV.some(t=>t.hasRequestMethod(e))}function OE(e){return XV.some(t=>t.hasNotificationMethod(e))}var XV=[ZE,YE],rhe=vF({AnnotationsSchema:()=>rs,AudioContentSchema:()=>Td,BaseMetadataSchema:()=>ns,BaseRequestParamsSchema:()=>Ei,BlobResourceContentsSchema:()=>Pp,BooleanSchemaSchema:()=>Fp,CallToolRequestParamsSchema:()=>Q0,CallToolRequestSchema:()=>ey,CallToolResultSchema:()=>Xc,CancelTaskRequestSchema:()=>Z$,CancelTaskResultSchema:()=>G$,CancelledNotificationParamsSchema:()=>s0,CancelledNotificationSchema:()=>Ip,ClientCapabilitiesSchema:()=>c0,ClientNotificationSchema:()=>Y$,ClientRequestSchema:()=>W$,ClientResultSchema:()=>X$,ClientTasksCapabilitySchema:()=>L$,CompatibilityCallToolResultSchema:()=>D$,CompleteRequestParamsSchema:()=>Cy,CompleteRequestSchema:()=>zy,CompleteResultSchema:()=>Ty,ContentBlockSchema:()=>os,CreateMessageRequestParamsSchema:()=>hy,CreateMessageRequestSchema:()=>fy,CreateMessageResultSchema:()=>py,CreateMessageResultWithToolsSchema:()=>my,CreateTaskResultSchema:()=>P$,CursorSchema:()=>Mp,DiscoverRequestSchema:()=>p0,DiscoverResultSchema:()=>Lp,ElicitRequestFormParamsSchema:()=>Ed,ElicitRequestParamsSchema:()=>xy,ElicitRequestSchema:()=>_y,ElicitRequestURLParamsSchema:()=>by,ElicitResultSchema:()=>wy,ElicitationCompleteNotificationParamsSchema:()=>Sy,ElicitationCompleteNotificationSchema:()=>$y,EmbeddedResourceSchema:()=>Ad,EmptyResultSchema:()=>Wc,EnumSchemaSchema:()=>yy,GetPromptRequestParamsSchema:()=>q0,GetPromptRequestSchema:()=>V0,GetPromptResultSchema:()=>G0,GetTaskPayloadRequestSchema:()=>F$,GetTaskPayloadResultSchema:()=>q$,GetTaskRequestSchema:()=>U$,GetTaskResultSchema:()=>B$,IconSchema:()=>l0,IconsSchema:()=>gl,ImageContentSchema:()=>zd,ImplementationSchema:()=>is,InitializeRequestParamsSchema:()=>u0,InitializeRequestSchema:()=>d0,InitializeResultSchema:()=>h0,InitializedNotificationSchema:()=>f0,JSONArraySchema:()=>I$,JSONObjectSchema:()=>Wn,JSONRPCErrorResponseSchema:()=>wd,JSONRPCMessageSchema:()=>kd,JSONRPCNotificationSchema:()=>Ap,JSONRPCRequestSchema:()=>Tp,JSONRPCResponseSchema:()=>R$,JSONRPCResultResponseSchema:()=>$d,JSONValueSchema:()=>ml,LegacyTitledEnumSchemaSchema:()=>Hp,ListChangedOptionsBaseSchema:()=>O$,ListPromptsRequestSchema:()=>B0,ListPromptsResultSchema:()=>F0,ListResourceTemplatesRequestSchema:()=>_0,ListResourceTemplatesResultSchema:()=>S0,ListResourcesRequestSchema:()=>b0,ListResourcesResultSchema:()=>x0,ListRootsRequestSchema:()=>Iy,ListRootsResultSchema:()=>Ry,ListTasksRequestSchema:()=>V$,ListTasksResultSchema:()=>H$,ListToolsRequestSchema:()=>K0,ListToolsResultSchema:()=>J0,LoggingLevelSchema:()=>Bp,LoggingMessageNotificationParamsSchema:()=>ry,LoggingMessageNotificationSchema:()=>oy,ModelHintSchema:()=>ay,ModelPreferencesSchema:()=>sy,MultiSelectEnumSchemaSchema:()=>vy,NotificationSchema:()=>Ji,NotificationsParamsSchema:()=>ur,NumberSchemaSchema:()=>Ld,PaginatedRequestParamsSchema:()=>v0,PaginatedRequestSchema:()=>vl,PaginatedResultSchema:()=>yl,PingRequestSchema:()=>Ep,PrimitiveSchemaDefinitionSchema:()=>Wp,ProgressNotificationParamsSchema:()=>g0,ProgressNotificationSchema:()=>Dp,ProgressSchema:()=>m0,ProgressTokenSchema:()=>kp,PromptArgumentSchema:()=>j0,PromptListChangedNotificationSchema:()=>W0,PromptMessageSchema:()=>Z0,PromptReferenceSchema:()=>My,PromptSchema:()=>U0,ReadResourceRequestParamsSchema:()=>$0,ReadResourceRequestSchema:()=>w0,ReadResourceResultSchema:()=>k0,RelatedTaskMetadataSchema:()=>a0,RequestIdSchema:()=>wa,RequestMetaSchema:()=>Cp,RequestSchema:()=>Yn,ResourceContentsSchema:()=>Op,ResourceLinkSchema:()=>Id,ResourceListChangedNotificationSchema:()=>M0,ResourceRequestParamsSchema:()=>Md,ResourceSchema:()=>jp,ResourceTemplateReferenceSchema:()=>ky,ResourceTemplateSchema:()=>y0,ResourceUpdatedNotificationParamsSchema:()=>N0,ResourceUpdatedNotificationSchema:()=>P0,ResultMetaObjectSchema:()=>zp,ResultSchema:()=>Xn,RoleSchema:()=>bl,RootSchema:()=>Ay,RootsListChangedNotificationSchema:()=>Ly,SamplingContentSchema:()=>uy,SamplingMessageContentBlockSchema:()=>Hc,SamplingMessageSchema:()=>dy,ServerCapabilitiesSchema:()=>Rp,ServerNotificationSchema:()=>J$,ServerRequestSchema:()=>K$,ServerResultSchema:()=>Q$,ServerTasksCapabilitySchema:()=>E$,SetLevelRequestParamsSchema:()=>ny,SetLevelRequestSchema:()=>iy,SingleSelectEnumSchemaSchema:()=>gy,StringSchemaSchema:()=>Rd,SubscribeRequestParamsSchema:()=>C0,SubscribeRequestSchema:()=>z0,SubscriptionFilterSchema:()=>Up,SubscriptionsAcknowledgedNotificationParamsSchema:()=>L0,SubscriptionsAcknowledgedNotificationSchema:()=>E0,SubscriptionsListenRequestParamsSchema:()=>I0,SubscriptionsListenRequestSchema:()=>R0,SubscriptionsListenResultMetaSchema:()=>D0,SubscriptionsListenResultSchema:()=>O0,TaskAugmentedRequestParamsSchema:()=>Gc,TaskCreationParamsSchema:()=>N$,TaskMetadataSchema:()=>o0,TaskSchema:()=>xl,TaskStatusNotificationParamsSchema:()=>Dy,TaskStatusNotificationSchema:()=>j$,TaskStatusSchema:()=>Ey,TextContentSchema:()=>Cd,TextResourceContentsSchema:()=>Np,TitledMultiSelectEnumSchemaSchema:()=>Gp,TitledSingleSelectEnumSchemaSchema:()=>Vp,ToolAnnotationsSchema:()=>Y0,ToolChoiceSchema:()=>ly,ToolExecutionSchema:()=>X0,ToolListChangedNotificationSchema:()=>ty,ToolResultContentSchema:()=>cy,ToolSchema:()=>Yc,ToolUseContentSchema:()=>H0,UnsubscribeRequestParamsSchema:()=>T0,UnsubscribeRequestSchema:()=>A0,UntitledMultiSelectEnumSchemaSchema:()=>Zp,UntitledSingleSelectEnumSchemaSchema:()=>qp});var KV=e=>Tp.safeParse(e).success,JV=e=>Ap.safeParse(e).success,BE=e=>$d.safeParse(e).success,QV=e=>wd.safeParse(e).success;var Wy=-32020,HDe=[{rung:"http-method",order:1,evaluatedAt:"edge",codes:[-32e3],conformance:[],rationale:"The modern era is POST-only; GET/DELETE are body-less 2025-era session operations and are method-routed to legacy serving (405 when legacy serving is not configured), before any body is read."},{rung:"jsonrpc-shape",order:2,evaluatedAt:"edge",codes:[qt.InvalidRequest],conformance:["server-stateless"],rationale:"The body must be a JSON-RPC request or notification: posted responses and batch arrays containing a modern or invalid element are rejected before classification (element-wise batch rule); all-legacy arrays stay legacy traffic."},{rung:"era-classification",order:3,evaluatedAt:"edge",codes:[Wy,qt.UnsupportedProtocolVersion],conformance:["server-stateless","http-header-validation","http-custom-header-server-validation"],rationale:"Body-primary era classification with the protocol-version header as a cross-check; a header/body disagreement is rejected with -32020 (HeaderMismatch), and an envelope-less request on a modern-only endpoint is answered with the unsupported-protocol-version error naming the supported revisions."},{rung:"envelope",order:4,evaluatedAt:"edge",codes:[qt.InvalidParams],conformance:["server-stateless"],rationale:"A present envelope claim with a malformed envelope \u2014 and a missing envelope on a request whose protocol-version header names a modern revision \u2014 is an invalid-params rejection naming the offending or missing key(s); never a silent fall back to legacy handling. This is the only place an invalid-params rejection maps to HTTP 400."},{rung:"method-registry",order:5,evaluatedAt:"dispatch",codes:[qt.MethodNotFound],conformance:["server-stateless"],rationale:"Method existence outranks parameter validity: a method absent from the negotiated revision\u2019s registry (or with no handler installed) answers method-not-found before params or capabilities are looked at."},{rung:"request-params",order:6,evaluatedAt:"dispatch",codes:[qt.InvalidParams],conformance:[],rationale:"Per-method params validation; emitted in-band by the dispatch layer (HTTP 200), never via the ladder status table."},{rung:"standard-header-validation",order:7,evaluatedAt:"pre-dispatch",codes:[Wy],conformance:["http-header-validation"],rationale:"SEP-2243 standard `Mcp-Method` / `Mcp-Name` headers \u2014 presence, sentinel decoding, and `Mcp-Name` \u2194 body cross-check \u2014 are validated by the HTTP entry on a modern-classified request after the supported-revision gate and before dispatch. The classifier\u2019s own header-mismatch cells (protocol-version, `Mcp-Method` mismatch) stay on the edge `era-classification` rung; this rung carries the entry-layer presence/`Mcp-Name` half. Evaluated before the capability gate, the factory call, and the `Mcp-Param-*` rung so a request that fails several rungs is answered by the standard-header rung first. The documented order (after method-registry 5 and request-params 6) is NOT the observed precedence: serveModern evaluates this rung immediately after the supported-revision gate, so a request that also fails a dispatch rung is answered here before the dispatch rungs (5\u20136) are consulted."},{rung:"client-capabilities",order:8,evaluatedAt:"pre-dispatch",codes:[qt.MissingRequiredClientCapability],conformance:["server-stateless"],rationale:"The capability requirement is checked by the HTTP entry, pre-dispatch, against the validated envelope the classifier produced \u2014 pinning the spec-mandated HTTP 400 independently of how dispatch- and handler-produced errors are mapped. The documented order (after method resolution and params validation) is preserved observably only while the requirement table is empty: once a served method gains a requirement entry, a request that is missing the capability and would also fail a dispatch rung is answered by this gate first, so the entry must consult the method registry before the gate if the documented precedence is to stay observable."},{rung:"param-header-validation",order:9,evaluatedAt:"pre-dispatch",codes:[Wy],conformance:["http-custom-header-server-validation"],rationale:"SEP-2243 `Mcp-Param-*` headers are validated against the named tool\u2019s `x-mcp-header` declarations and the body `arguments` after the tool registry is known and before dispatch reaches the handler; a missing/disagreeing/malformed header is rejected 400 / -32020 with the same shape as the standard-header cross-checks. The documented order (after method resolution and params validation) is preserved observably only when the body `arguments` would otherwise validate: the check runs pre-dispatch, so a `tools/call` that fails BOTH this rung and a dispatch-time rung (e.g. order-6 `request-params`, -32602) is answered by this gate first with 400 / -32020, not by the earlier-ordered rung."}],ZDe={[qt.ParseError]:400,[qt.InvalidRequest]:400,[qt.MethodNotFound]:404,[qt.UnsupportedProtocolVersion]:400,[qt.MissingRequiredClientCapability]:400,[Wy]:400};function KE(e,t){return Zv(e,t)}function Zy(e){return new Set(e.flatMap(t=>Object.keys(t.shape)))}function FE(e){if(e==null)return!1;let t=typeof e;return t!=="object"&&t!=="function"||!("~standard"in e)?!1:typeof e["~standard"]?.validate=="function"}var $V=!1,qE="draft-2020-12";function ohe(e,t="input"){let n=e["~standard"],i;if(n.jsonSchema)i=n.jsonSchema[t]({target:qE});else if(n.vendor==="zod"){if(!("_zod"in e))throw new Error("Schema appears to be from zod 3, which the SDK cannot convert to JSON Schema. Upgrade to zod >=4.2.0, or wrap your JSON Schema with fromJsonSchema().");$V||($V=!0,console.warn("[mcp-sdk] Your zod version does not implement `~standard.jsonSchema` (added in zod 4.2.0). Falling back to z.toJSONSchema(). Upgrade to zod >=4.2.0 to silence this warning.")),i=gd(e,{target:qE,io:t})}else throw new Error(`Schema library "${n.vendor}" does not implement StandardJSONSchemaV1 (\`~standard.jsonSchema\`). Upgrade to a version that does, or wrap your JSON Schema with fromJsonSchema().`);if(t==="output")return i.type!==void 0?i:eH(i)?{type:"object",...i}:i;if(i.type!==void 0&&i.type!=="object")throw new Error(`MCP tool and prompt schemas must describe objects (got type: ${JSON.stringify(i.type)}). Wrap your schema in z.object({...}) or equivalent.`);return{type:"object",...i}}function eH(e){if("properties"in e||"patternProperties"in e||"additionalProperties"in e||"required"in e)return!0;for(let t of["oneOf","anyOf","allOf"]){let n=e[t];if(Array.isArray(n)&&n.length>0)return n.every(i=>i!==null&&typeof i=="object"&&(i.type==="object"||eH(i)))}return!1}function ahe(e){return e.path?.length?`${e.path.map(t=>String(typeof t=="object"?t.key:t)).join(".")}: ${e.message}`:e.message}async function NE(e,t){let n=await e["~standard"].validate(t);return n.issues&&n.issues.length>0?{success:!1,error:n.issues.map(i=>ahe(i)).join(", ")}:{success:!0,data:n.value}}function she(e){let t=gd(e,{target:qE,io:"input"});return typeof t.pattern=="string"?t.pattern:void 0}var lhe=/\\\.\\d\{(\d+)\}/;function che(e){let t=lhe.exec(e),n=[void 0,-1,0];return t&&n.push(Number(t[1])),[!1,!0].flatMap(i=>[!1,!0].flatMap(r=>n.map(o=>qo.datetime({local:i,offset:r,precision:o}))))}function uhe(e,t){let n;switch(e){case"email":n=[r$()];break;case"uri":n=[yp()];break;case"date":n=[qo.date()];break;case"date-time":n=che(t);break}return new Set(n.map(i=>she(i)).filter(i=>i!==void 0))}function dhe(e,t,n){return n!=="zod"?!0:uhe(e,t).has(t)}function Xy(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function hhe(e){try{return ohe(e,"input")}catch(t){let n=t instanceof Error?t.message:String(t);throw new er(qt.InvalidParams,`Elicitation requestedSchema must describe an object with flat primitive properties: ${n}`)}}var fhe=new Set(["$comment","deprecated","description","examples","readOnly","title","writeOnly"]);function JE(e){return fhe.has(e)||e.startsWith("x-")}var phe=new Set(["$schema",...Object.keys(Ed.shape.requestedSchema.shape)]),wV={string:Zy([Rd,qp,Vp,Hp]),number:Zy([Ld]),integer:Zy([Ld]),boolean:Zy([Fp]),array:Zy([Zp,Gp])},mhe=new Set(Rd.shape.format.unwrap().options);function ghe(e,t,n,i){if(!Xy(e))return e;let r=typeof e.type=="string"&&Object.hasOwn(wV,e.type)?wV[e.type]:void 0;if(r===void 0)return e;let o={};for(let[a,s]of Object.entries(e))r.has(a)||JE(a)?o[a]=s:a==="pattern"&&e.type==="string"&&typeof e.format=="string"?mhe.has(e.format)?(typeof s!="string"||!dhe(e.format,s,n))&&i.push(`${t}.${a}`):o[a]=s:i.push(`${t}.${a}`);return o}function vhe(e,t){let n={},i=[];for(let[r,o]of Object.entries(e))r==="properties"&&Xy(o)?n[r]=Object.fromEntries(Object.entries(o).map(([a,s])=>[a,ghe(s,`properties.${a}`,t,i)])):phe.has(r)?n[r]=o:JE(r)||i.push(r);if(i.length>0)throw new er(qt.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${i.join(", ")}`);return n}function yhe(e,t){if(!Xy(e.properties))return t;let n=Object.entries(e.properties).filter(([,i])=>!KE(Wp,i).success).map(([i])=>`properties.${i}`);return n.length>0?n.join(", "):t}function VE(e,t,n=""){return Array.isArray(e)&&Array.isArray(t)?e.flatMap((i,r)=>VE(i,t[r],`${n}[${r}]`)):!Xy(e)||!Xy(t)?[]:Object.entries(e).flatMap(([i,r])=>{let o=n?`${n}.${i}`:i;return Object.prototype.hasOwnProperty.call(t,i)?VE(r,t[i],o):JE(i)?[]:[o]})}function bhe(e){if(!FE(e.requestedSchema))return{...e,mode:"form",requestedSchema:e.requestedSchema};let t=e.requestedSchema["~standard"].vendor,n=vhe(hhe(e.requestedSchema),t),i=KE(Ed.shape.requestedSchema,n);if(!i.success)throw new er(qt.InvalidParams,`Elicitation requestedSchema only supports flat primitive properties (string, number, integer, boolean, and string enums): ${yhe(n,i.error.message)}`);let r=VE(n,i.data);if(r.length>0)throw new er(qt.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${r.join(", ")}`);let o=(i.data.required??[]).filter(a=>!Object.prototype.hasOwnProperty.call(i.data.properties,a));if(o.length>0)throw new er(qt.InvalidParams,`Elicitation requestedSchema lists required properties that are not defined in properties: ${o.join(", ")}`);return{...e,mode:"form",requestedSchema:i.data}}function xhe(e){let t=e.inputRequests!==void 0&&Object.keys(e.inputRequests).length>0,n=typeof e.requestState=="string";if(!t&&!n)throw new TypeError("inputRequired() requires at least one of inputRequests (with at least one entry) or requestState (spec: every InputRequiredResult MUST include at least one of the two)");return{resultType:"input_required",...e.inputRequests!==void 0&&{inputRequests:e.inputRequests},...e.requestState!==void 0&&{requestState:e.requestState}}}var GDe=Object.assign(xhe,{elicit(e){try{return{method:"elicitation/create",params:bhe(e)}}catch(t){throw t instanceof er?new TypeError(t.message,{cause:t}):t}},elicitUrl(e){return{method:"elicitation/create",params:{...e,mode:"url"}}},createMessage(e){return{method:"sampling/createMessage",params:e}},listRoots(){return{method:"roots/list"}}});var _he=["AnnotationsSchema","AudioContentSchema","BaseMetadataSchema","BlobResourceContentsSchema","BooleanSchemaSchema","CallToolRequestSchema","CallToolRequestParamsSchema","CallToolResultSchema","CancelledNotificationSchema","CancelledNotificationParamsSchema","CancelTaskRequestSchema","CancelTaskResultSchema","ClientCapabilitiesSchema","ClientNotificationSchema","ClientRequestSchema","ClientResultSchema","CompatibilityCallToolResultSchema","CompleteRequestSchema","CompleteRequestParamsSchema","CompleteResultSchema","ContentBlockSchema","CreateMessageRequestSchema","CreateMessageRequestParamsSchema","CreateMessageResultSchema","CreateMessageResultWithToolsSchema","CreateTaskResultSchema","CursorSchema","DiscoverRequestSchema","DiscoverResultSchema","ElicitationCompleteNotificationSchema","ElicitationCompleteNotificationParamsSchema","ElicitRequestSchema","ElicitRequestFormParamsSchema","ElicitRequestParamsSchema","ElicitRequestURLParamsSchema","ElicitResultSchema","EmbeddedResourceSchema","EmptyResultSchema","EnumSchemaSchema","GetPromptRequestSchema","GetPromptRequestParamsSchema","GetPromptResultSchema","GetTaskPayloadRequestSchema","GetTaskPayloadResultSchema","GetTaskRequestSchema","GetTaskResultSchema","IconSchema","IconsSchema","ImageContentSchema","ImplementationSchema","InitializedNotificationSchema","InitializeRequestSchema","InitializeRequestParamsSchema","InitializeResultSchema","JSONArraySchema","JSONObjectSchema","JSONRPCErrorResponseSchema","JSONRPCMessageSchema","JSONRPCNotificationSchema","JSONRPCRequestSchema","JSONRPCResponseSchema","JSONRPCResultResponseSchema","JSONValueSchema","LegacyTitledEnumSchemaSchema","ListPromptsRequestSchema","ListPromptsResultSchema","ListResourcesRequestSchema","ListResourcesResultSchema","ListResourceTemplatesRequestSchema","ListResourceTemplatesResultSchema","ListRootsRequestSchema","ListRootsResultSchema","ListTasksRequestSchema","ListTasksResultSchema","ListToolsRequestSchema","ListToolsResultSchema","LoggingLevelSchema","LoggingMessageNotificationSchema","LoggingMessageNotificationParamsSchema","ModelHintSchema","ModelPreferencesSchema","MultiSelectEnumSchemaSchema","NotificationSchema","NumberSchemaSchema","PaginatedRequestSchema","PaginatedRequestParamsSchema","PaginatedResultSchema","PingRequestSchema","PrimitiveSchemaDefinitionSchema","ProgressSchema","ProgressNotificationSchema","ProgressNotificationParamsSchema","ProgressTokenSchema","PromptSchema","PromptArgumentSchema","PromptListChangedNotificationSchema","PromptMessageSchema","PromptReferenceSchema","ReadResourceRequestSchema","ReadResourceRequestParamsSchema","ReadResourceResultSchema","RelatedTaskMetadataSchema","RequestSchema","RequestIdSchema","RequestMetaSchema","ResourceSchema","ResourceContentsSchema","ResourceLinkSchema","ResourceListChangedNotificationSchema","ResourceRequestParamsSchema","ResourceTemplateSchema","ResourceTemplateReferenceSchema","ResourceUpdatedNotificationSchema","ResourceUpdatedNotificationParamsSchema","ResultMetaObjectSchema","ResultSchema","RoleSchema","RootSchema","RootsListChangedNotificationSchema","SamplingContentSchema","SamplingMessageSchema","SamplingMessageContentBlockSchema","ServerCapabilitiesSchema","ServerNotificationSchema","ServerRequestSchema","ServerResultSchema","SetLevelRequestSchema","SetLevelRequestParamsSchema","SingleSelectEnumSchemaSchema","StringSchemaSchema","SubscribeRequestSchema","SubscribeRequestParamsSchema","SubscriptionFilterSchema","SubscriptionsAcknowledgedNotificationSchema","SubscriptionsAcknowledgedNotificationParamsSchema","SubscriptionsListenRequestSchema","SubscriptionsListenRequestParamsSchema","SubscriptionsListenResultSchema","SubscriptionsListenResultMetaSchema","TaskAugmentedRequestParamsSchema","TaskCreationParamsSchema","TaskMetadataSchema","TaskSchema","TaskStatusSchema","TaskStatusNotificationSchema","TaskStatusNotificationParamsSchema","TextContentSchema","TextResourceContentsSchema","TitledMultiSelectEnumSchemaSchema","TitledSingleSelectEnumSchemaSchema","ToolSchema","ToolAnnotationsSchema","ToolChoiceSchema","ToolExecutionSchema","ToolListChangedNotificationSchema","ToolResultContentSchema","ToolUseContentSchema","UnsubscribeRequestSchema","UnsubscribeRequestParamsSchema","UntitledMultiSelectEnumSchemaSchema","UntitledSingleSelectEnumSchemaSchema"],She={IdJagTokenExchangeResponseSchema:Uy,OAuthClientInformationFullSchema:Vy,OAuthClientInformationSchema:qy,OAuthClientMetadataSchema:Fy,OAuthClientRegistrationErrorSchema:ew,OAuthErrorResponseSchema:By,OAuthMetadataSchema:Yp,OAuthProtectedResourceMetadataSchema:Oy,OAuthTokenRevocationRequestSchema:tw,OAuthTokensSchema:jy,OpenIdProviderDiscoveryMetadataSchema:Py,OpenIdProviderMetadataSchema:Ny},tH={},nH={};function iH(e,t){let n=e.slice(0,-6);tH[n]=t,nH[n]=i=>t.safeParse(i).success}for(let e of _he)iH(e,rhe[e]);for(let[e,t]of Object.entries(She))iH(e,t);var $he=Object.freeze(tH),whe=Object.freeze(nH);function khe(e){switch(e){case"initialize":case"notifications/initialized":return Yy(void 0);case"server/discover":return Yy(XE);default:return}}var rH=6e4,Mhe=[xd,$p,_d,wp],Che=["inputResponses","requestState"];function kV(e,t){let n=e.params;if(!PE(n))return{message:e,lifted:{}};let i=n._meta,r=PE(i)?Mhe.filter(l=>l in i):[],o=t==="request"?Che.filter(l=>l in n):[];if(r.length===0&&o.length===0)return{message:e,lifted:{}};let a={},s={...n};if(r.length>0&&PE(i)){let l={},c={...i};for(let u of r)l[u]=i[u],delete c[u];a.envelope=l,Object.keys(c).length>0?s._meta=c:delete s._meta}for(let l of o)l==="inputResponses"&&(a.inputResponses=s[l]),l==="requestState"&&(a.requestState=s[l]),delete s[l];return{message:{...e,params:s},lifted:a}}function MV(e,t){let n=e.validateResult(t,void 0);if(!(!n.ok&&n.reason==="not-in-era"))return{"~standard":{version:1,vendor:"mcp-wire-codec",validate(i){let r=e.validateResult(t,i);return r.ok?{value:r.value}:{issues:[{message:r.reason==="invalid"?r.message:`not-in-era: ${t}`}]}}}}}function oH(e){return()=>e}var zhe=oH(void 0),The,QE=class{_transport;_requestMessageId=0;_requestHandlers=new Map;_requestHandlerAbortControllers=new Map;_notificationHandlers=new Map;_responseHandlers=new Map;_progressHandlers=new Map;_timeoutInfo=new Map;_pendingDebouncedNotifications=new Set;_negotiatedProtocolVersion;static{The=(e,t)=>{e._negotiatedProtocolVersion=t}}_supportedProtocolVersions;onclose;onerror;fallbackRequestHandler;fallbackNotificationHandler;constructor(e){this._options=e,this._supportedProtocolVersions=e?.supportedProtocolVersions??z$,this.setNotificationHandler("notifications/cancelled",t=>{this._oncancel(t)}),this.setNotificationHandler("notifications/progress",t=>{this._onprogress(t)}),this.setRequestHandler("ping",t=>({}))}_shouldDropInbound(e){}_outboundMetaEnvelope(){}_envelopeOutbound(e){let t=this._outboundMetaEnvelope();if(t===void 0)return e;let n=e.params??{};return{...e,params:{...n,_meta:{...t,...n._meta}}}}_resolveNonCompleteResult(e,t){return Promise.reject(new bi(Qi.UnsupportedResultType,`Unsupported result type '${e.kind}' for ${t.request.method}`,{resultType:e.kind,method:t.request.method}))}_getRequestHandler(e){return this._requestHandlers.get(e)}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,i,r=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(i,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:r,onTimeout:i})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),new bi(Qi.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{try{t?.()}finally{this._onclose()}};let n=this.transport?.onerror;this._transport.onerror=r=>{n?.(r),this._onerror(r)};let i=this._transport?.onmessage;this._transport.onmessage=(r,o)=>{i?.(r,o),BE(r)||QV(r)?this._onresponse(r):KV(r)?this._onrequest(r,o):JV(r)?this._onnotification(r,o):this._onerror(new Error(`Unknown message type: ${JSON.stringify(r)}`))},e.setSupportedProtocolVersions?.(this._supportedProtocolVersions),await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._pendingDebouncedNotifications.clear();for(let i of this._timeoutInfo.values())clearTimeout(i.timeoutId);this._timeoutInfo.clear();let t=this._requestHandlerAbortControllers;this._requestHandlerAbortControllers=new Map;let n=new bi(Qi.ConnectionClosed,"Connection closed");this._transport=void 0;try{this.onclose?.()}finally{for(let i of e.values())i(n);for(let i of t.values())i.abort(n)}}_onerror(e){this.onerror?.(e)}_onnotification(e,t){let{message:n}=kV(e,"notification"),i=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)==="drop")return;if(t?.classification!==void 0){let a=SV(t.classification);if(a!==i.era){this._onerror(new Error(`Era mismatch on inbound notification '${n.method}': classified as ${a} but this instance serves ${i.era}`));return}}if(OE(n.method)&&!i.hasNotificationMethod(n.method))return;let r=this._notificationHandlers.get(n.method),o=this.fallbackNotificationHandler;r===void 0&&o===void 0||Promise.resolve().then(()=>r===void 0?o(n):r(n,i)).catch(a=>this._onerror(new Error(`Uncaught error in notification handler: ${a}`)))}_onrequest(e,t){let{message:n,lifted:i}=kV(e,"request"),r=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)==="drop"){this._onerror(new Error(`Dropped inbound request '${e.method}': not servable on this connection's protocol era`));return}let o=this._transport,a=(g,v,m)=>{let y={jsonrpc:"2.0",id:n.id,error:{code:g,message:v,...m!==void 0&&{data:m}}};o?.send(y).catch(b=>this._onerror(new Error(`Failed to send an error response: ${b}`)))};if(t?.classification!==void 0){let g=SV(t.classification);if(g!==r.era){this._onerror(new Error(`Era mismatch on inbound request '${n.method}': classified as ${g} but this instance serves ${r.era}`));let v=t.classification.revision??g;a(qt.UnsupportedProtocolVersion,`Unsupported protocol version: ${v}`,{supported:this._supportedProtocolVersions,requested:v});return}}if(DE(n.method)&&!r.hasRequestMethod(n.method)){a(qt.MethodNotFound,"Method not found");return}let s=this._requestHandlers.get(n.method)??this.fallbackRequestHandler;if(s===void 0){a(qt.MethodNotFound,"Method not found");return}let l=r.checkInboundEnvelope(i);if(l!==void 0){a(qt.InvalidParams,l);return}let c=(g,v)=>this._notificationViaCodec(this._resolveOutboundCodec(g.method),g,{...v,relatedRequestId:n.id}),u=(g,v,m)=>this._requestWithSchemaViaCodec(this._resolveOutboundCodec(g.method),g,v,{...m,relatedRequestId:n.id}),d=new AbortController;this._requestHandlerAbortControllers.set(n.id,d);let f=i.inputResponses===void 0?void 0:Ahe(i.inputResponses),h={sessionId:o?.sessionId,mcpReq:{id:n.id,method:n.method,_meta:n.params?._meta,...i.envelope!==void 0&&{envelope:i.envelope},...f!==void 0&&{inputResponses:f.accepted},...f!==void 0&&f.droppedKeys.length>0&&{droppedInputResponseKeys:f.droppedKeys},requestState:i.requestState===void 0?zhe:oH(i.requestState),signal:d.signal,send:((g,v,m)=>{let y=this._resolveOutboundCodec(g.method);if(this._assertOutboundRequestInEra(y,g.method),FE(v))return u(g,v,m);let b=MV(y,g.method);if(b===void 0)throw new TypeError(`'${g.method}' is not a spec method; pass a result schema as the second argument to ctx.mcpReq.send().`);return u(g,b,v)}),notify:c},http:t?.authInfo?{authInfo:t.authInfo}:void 0},p=this.buildContext(h,t);Promise.resolve().then(()=>s(n,p)).then(async g=>{if(d.signal.aborted)return;let v;try{v=r.encodeResult(n.method,g,this._outboundServerInfo())}catch(y){this._onerror(new Error(`Failed to encode result for ${n.method}: ${y}`)),a(qt.InternalError,"Internal error");return}let m={result:v,jsonrpc:"2.0",id:n.id};await o?.send(m)},async g=>{if(d.signal.aborted)return;let v=Number.isSafeInteger(g.code)?g.code:qt.InternalError,m={jsonrpc:"2.0",id:n.id,error:{code:r.encodeErrorCode(v),message:g.message??"Internal error",...g.data!==void 0&&{data:g.data}}};await o?.send(m)}).catch(g=>this._onerror(new Error(`Failed to send response: ${g}`))).finally(()=>{this._requestHandlerAbortControllers.get(n.id)===d&&this._requestHandlerAbortControllers.delete(n.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,i=Number(t),r=this._progressHandlers.get(i);if(!r){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let o=this._responseHandlers.get(i),a=this._timeoutInfo.get(i);if(a&&o&&a.resetTimeoutOnProgress)try{this._resetTimeout(i)}catch(s){this._responseHandlers.delete(i),this._progressHandlers.delete(i),this._cleanupTimeout(i),o(s);return}r(n)}_onresponse(e){let t=Number(e.id),n=this._responseHandlers.get(t);if(n===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t),this._progressHandlers.delete(t),BE(e)?n(e):n(er.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}request(e,t,n){let i=this._resolveOutboundCodec(e.method);if(this._assertOutboundRequestInEra(i,e.method),FE(t))return this._requestWithSchemaViaCodec(i,e,t,n);let r=MV(i,e.method);if(r===void 0)throw new TypeError(`'${e.method}' is not a spec method; pass a result schema as the second argument to request().`);return this._requestWithSchemaViaCodec(i,e,r,t)}_negotiatedWireCodec(){return Yy(this._negotiatedProtocolVersion)}_wireCodec(){return this._negotiatedWireCodec()}_resolveOutboundCodec(e){if(this._negotiatedProtocolVersion===void 0){let t=khe(e);if(t)return t}return this._negotiatedWireCodec()}_assertOutboundRequestInEra(e,t){if(DE(t)&&!e.hasRequestMethod(t))throw new bi(Qi.MethodNotSupportedByProtocolVersion,`Method '${t}' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t,era:e.era})}_requestWithSchema(e,t,n){let i=this._resolveOutboundCodec(e.method);return this._assertOutboundRequestInEra(i,e.method),this._requestWithSchemaViaCodec(i,e,t,n)}_requestWithSchemaViaCodec(e,t,n,i){let{relatedRequestId:r,resumptionToken:o,onresumptiontoken:a,headers:s}=i??{},l=Date.now(),c,u;return new Promise((d,f)=>{let h=S=>{f(S)};if(!this._transport){h(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method)}catch(S){h(S);return}if(i?.signal?.aborted){let S=i.signal.reason;throw S instanceof bi?S:new bi(Qi.RequestTimeout,String(S))}let p=e.era===XE&&this._transport.hasPerRequestStream===!0?new AbortController:void 0,g=this._requestMessageId++;u=g;let v={...t,jsonrpc:"2.0",id:g};i?.onprogress&&(this._progressHandlers.set(g,i.onprogress),v.params={...t.params,_meta:{...t.params?._meta,progressToken:g}});let m=this._envelopeOutbound(v),y=!1,b=S=>{y||(this._progressHandlers.delete(g),p===void 0?this._transport?.send(this._envelopeOutbound({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:g,reason:String(S)}}),{relatedRequestId:r,resumptionToken:o,onresumptiontoken:a}).catch($=>this._onerror(new Error(`Failed to send cancellation: ${$}`))):p.abort(),f(S instanceof bi?S:new bi(Qi.RequestTimeout,String(S))))};this._responseHandlers.set(g,S=>{if(i?.signal?.aborted)return;if(y=!0,S instanceof Error)return f(S);let $;try{$=e.decodeResult(t.method,S.result)}catch(w){return f(w instanceof Error?w:new Error(String(w)))}if($.kind==="invalid")return f($.error);if($.kind==="input_required"){if(i?.allowInputRequired===!0)return d(Ihe($));let w={codec:e,request:t,resultSchema:n,options:i,flowStartedAt:l,retry:(z,A)=>this._requestWithSchemaViaCodec(e,z===void 0?{method:t.method}:{method:t.method,params:z},n,A)};return d(this._resolveNonCompleteResult($,w))}let C=$.result;NE(n,C).then(w=>{w.success?d(w.data):f(new bi(Qi.InvalidResult,`Invalid result for ${t.method}: ${w.error}`))},f)}),c=()=>b(i?.signal?.reason),i?.signal?.addEventListener("abort",c,{once:!0});let x=i?.timeout??rH,_=()=>b(new bi(Qi.RequestTimeout,"Request timed out",{timeout:x}));this._setupTimeout(g,x,i?.maxTotalTimeout,_,i?.resetTimeoutOnProgress??!1),this._transport.send(m,{relatedRequestId:r,resumptionToken:o,onresumptiontoken:a,headers:s,requestSignal:p?.signal}).catch(S=>{this._progressHandlers.delete(g),f(S)})}).finally(()=>{c&&i?.signal?.removeEventListener("abort",c),u!==void 0&&(this._responseHandlers.delete(u),this._cleanupTimeout(u))})}async notification(e,t){return this._notificationViaCodec(this._resolveOutboundCodec(e.method),e,t)}async _notificationViaCodec(e,t,n){if(!this._transport)throw new bi(Qi.NotConnected,"Not connected");if(OE(t.method)&&!e.hasNotificationMethod(t.method))throw new bi(Qi.MethodNotSupportedByProtocolVersion,`Notification '${t.method}' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t.method,era:e.era});this.assertNotificationCapability(t.method);let i=this._envelopeOutbound({jsonrpc:"2.0",...t});if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&!n?.relatedRequestId){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{this._pendingDebouncedNotifications.delete(t.method),this._transport&&this._transport?.send(i,n).catch(r=>this._onerror(r))});return}await this._transport.send(i,n)}setRequestHandler(e,t,n){this.assertRequestHandlerCapability(e);let i;if(typeof t=="function"){if(!DE(e))throw new TypeError(`'${e}' is not a spec request method; pass schemas as the second argument to setRequestHandler().`);i=(r,o)=>{let a=this._negotiatedWireCodec(),s=a.validateRequest(e,r);if(!s.ok&&s.reason==="not-in-era"&&(s=a.validateInputRequest(e,r)),!s.ok)throw s.reason==="not-in-era"?new er(qt.InternalError,`No wire schema for ${e} in the resolved era`):new Error(s.message);return Promise.resolve(t(s.value,o))}}else if(n)i=async(r,o)=>{let a=await NE(t.params,{...r.params});if(!a.success)throw new er(qt.InvalidParams,`Invalid params for ${e}: ${a.error}`);return n(a.data,o)};else throw new TypeError("setRequestHandler: handler is required");this._requestHandlers.set(e,this._wrapHandler(e,i))}_wrapHandler(e,t){return t}_outboundServerInfo(){}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t,n){if(typeof t=="function"){if(!OE(e))throw new TypeError(`'${e}' is not a spec notification method; pass schemas as the second argument to setNotificationHandler().`);this._notificationHandlers.set(e,(i,r)=>{let o=r.validateNotification(e,i);if(!o.ok)throw o.reason==="not-in-era"?new er(qt.InternalError,`No wire schema for ${e} in the resolved era`):new Error(o.message);return Promise.resolve(t(o.value))});return}if(!n)throw new TypeError("setNotificationHandler: handler is required");this._notificationHandlers.set(e,async i=>{let r=await NE(t.params,{...i.params});if(!r.success)throw new er(qt.InvalidParams,`Invalid params for notification ${e}: ${r.error}`);await n(r.data,i)})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}};function PE(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function CV(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Ahe(e){let t={},n=[];if(!CV(e))return{accepted:t,droppedKeys:n};for(let[i,r]of Object.entries(e)){if(!CV(r)||"method"in r||"result"in r){n.push(i);continue}t[i]=r}return{accepted:t,droppedKeys:n}}function Ihe(e){return{resultType:"input_required",inputRequests:e.inputRequests,...e.requestState!==void 0&&{requestState:e.requestState}}}var Rhe=gF((e=>{var t=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,n=/\\([\u000b\u0020-\u00ff])/g,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;e.parse=r;function r(s){if(!s)throw new TypeError("argument string is required");var l=typeof s=="object"?o(s):s;if(typeof l!="string")throw new TypeError("argument string is required to be a string");var c=l.indexOf(";"),u=c!==-1?l.slice(0,c).trim():l.trim();if(!i.test(u))throw new TypeError("invalid media type");var d=new a(u.toLowerCase());if(c!==-1){var f,h,p;for(t.lastIndex=c;h=t.exec(l);){if(h.index!==c)throw new TypeError("invalid parameter format");c+=h[0].length,f=h[1].toLowerCase(),p=h[2],p.charCodeAt(0)===34&&(p=p.slice(1,-1),p.indexOf("\\")!==-1&&(p=p.replace(n,"$1"))),d.parameters[f]=p}if(c!==l.length)throw new TypeError("invalid parameter format")}return d}function o(s){var l;if(typeof s.getHeader=="function"?l=s.getHeader("content-type"):typeof s.headers=="object"&&(l=s.headers&&s.headers["content-type"]),typeof l!="string")throw new TypeError("content-type header is missing from object");return l}function a(s){this.parameters=Object.create(null),this.type=s}})),WDe=yF(Rhe(),1);var Lhe=10*1024*1024;var oOe=typeof self<"u"&&self.location&&self.location.origin!=="null"?new URL(self.location.origin+self.location.pathname+location.search):new URL("https://github.com/cfworker");var Ehe=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Dhe=[0,31,28,31,30,31,30,31,31,30,31,30,31],Ohe=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Nhe=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,Phe=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,jhe=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,Uhe=/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,Bhe=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Fhe=/^(?:\/(?:[^~/]|~0|~1)*)*$/,qhe=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Vhe=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,Hhe=e=>{if(e[0]==='"')return!1;let[t,n,...i]=e.split("@");return!t||!n||i.length!==0||t.length>64||n.length>253||t[0]==="."||t.endsWith(".")||t.includes("..")||!/^[a-z0-9.-]+$/i.test(n)||!/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(t)?!1:n.split(".").every(r=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(r))},Zhe=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,Ghe=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,Whe=e=>e.length>1&&e.length<80&&(/^P\d+([.,]\d+)?W$/.test(e)||/^P[\dYMDTHS]*(\d[.,]\d+)?[YMDHS]$/.test(e)&&/^P([.,\d]+Y)?([.,\d]+M)?([.,\d]+D)?(T([.,\d]+H)?([.,\d]+M)?([.,\d]+S)?)?$/.test(e));function as(e){return e.test.bind(e)}var aOe={date:aH,time:sH.bind(void 0,!1),"date-time":Khe,duration:Whe,uri:efe,"uri-reference":as(Phe),"uri-template":as(jhe),url:as(Uhe),email:Hhe,hostname:as(Nhe),ipv4:as(Zhe),ipv6:as(Ghe),regex:nfe,uuid:as(Bhe),"json-pointer":as(Fhe),"json-pointer-uri-fragment":as(qhe),"relative-json-pointer":as(Vhe)};function Yhe(e){return e%4===0&&(e%100!==0||e%400===0)}function aH(e){let t=e.match(Ehe);if(!t)return!1;let n=+t[1],i=+t[2],r=+t[3];return i>=1&&i<=12&&r>=1&&r<=(i==2&&Yhe(n)?29:Dhe[i])}function sH(e,t){let n=t.match(Ohe);if(!n)return!1;let i=+n[1],r=+n[2],o=+n[3],a=!!n[5];return(i<=23&&r<=59&&o<=59||i==23&&r==59&&o==60)&&(!e||a)}var Xhe=/t|\s/i;function Khe(e){let t=e.split(Xhe);return t.length==2&&aH(t[0])&&sH(!0,t[1])}var Jhe=/\/|:/,Qhe=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function efe(e){return Jhe.test(e)&&Qhe.test(e)}var tfe=/[^\\]\\Z/;function nfe(e){if(tfe.test(e))return!1;try{return new RegExp(e,"u"),!0}catch{return!1}}var rfe;rfe=globalThis.crypto;var Ky=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.OAuthClientFlowError"})}static[Symbol.hasInstance](e){return bo(this,e)}static isInstance(e){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return bo(this,e)}constructor(e){super(e),this.name=new.target.name,Od(this,new.target)}},XOe=class extends Ky{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.IssuerMismatchError"})}kind;expected;received;constructor(e,t,n){super(`Issuer mismatch in ${e==="metadata"?"authorization server metadata (RFC 8414 \xA73.3)":"authorization response (RFC 9207)"}: expected ${JSON.stringify(t)}, received ${JSON.stringify(n)}`),this.kind=e,this.expected=t,this.received=n}},KOe=class extends Ky{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.RegistrationRejectedError"})}status;body;submittedMetadata;constructor(e){super(`Dynamic Client Registration rejected (HTTP ${e.status}): ${e.body}`),this.status=e.status,this.body=e.body,this.submittedMetadata=e.submittedMetadata}},JOe=class extends Ky{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.InsecureTokenEndpointError"})}tokenEndpoint;constructor(e){super(`Refusing to send credentials to non-https token endpoint '${e}'. OAuth token requests MUST use TLS (localhost / 127.0.0.1 / ::1 are exempt).`),this.tokenEndpoint=e}},QOe=class extends Ky{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.AuthorizationServerMismatchError"})}constructor(e,t){super(`Authorization server changed between redirect and callback (redirected to ${JSON.stringify(e)}, callback resolved ${JSON.stringify(t)}); refusing to send authorization_code/code_verifier to a different token endpoint`),this.recordedIssuer=e,this.currentIssuer=t}},eNe=class extends Ky{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.InsufficientScopeError"})}requiredScope;resourceMetadataUrl;errorDescription;constructor(e){super(`Insufficient scope${e.requiredScope?`: required "${e.requiredScope}"`:""}`),this.requiredScope=e.requiredScope,this.resourceMetadataUrl=e.resourceMetadataUrl,this.errorDescription=e.errorDescription}};var tNe=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.UnauthorizedError"})}static[Symbol.hasInstance](e){return bo(this,e)}static isInstance(e){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return bo(this,e)}constructor(e){super(e??"Unauthorized"),this.name="UnauthorizedError",Od(this,new.target)}};var nNe=Symbol.for("mcp.authSeamEscape");var iNe=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:"mcp.SseError"})}static[Symbol.hasInstance](e){return bo(this,e)}static isInstance(e){if(typeof this!="function")throw new TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return bo(this,e)}constructor(e,t,n){super(`SSE error: ${t}`),this.code=e,this.event=n,Od(this,new.target)}};var eD=class{_eventSlots=new Map;setHandler(t,n){let i=this._ensureEventSlot(t);i.onHandler&&n&&console.warn(`[MCP Apps] on${String(t)} handler replaced. Use addEventListener("${String(t)}", \u2026) to add multiple listeners without replacing.`),i.onHandler=n}getHandler(t){return this._eventSlots.get(t)?.onHandler}addEventListener(t,n){this._ensureEventSlot(t).listeners.push(n)}removeEventListener(t,n){let i=this._eventSlots.get(t);if(!i)return;let r=i.listeners.indexOf(n);r!==-1&&i.listeners.splice(r,1)}dispatch(t,n){let i=this._eventSlots.get(t);if(i){i.onHandler?.(n);for(let r of[...i.listeners])r(n)}}_ensureEventSlot(t){let n=this._eventSlots.get(t);return n||(n={listeners:[]},this._eventSlots.set(t,n)),n}},tD=class{_methods=new Set;claim(t,n){if(this._methods.has(t))throw Error(`Handler for "${t}" already registered (via ${n}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._methods.add(t)}replace(t){this._methods.add(t)}release(t){this._methods.delete(t)}has(t){return this._methods.has(t)}},lH=new Set;function cH(e,t){let[n,i]=t,r=n?.shape;if(typeof r?.method?.value!="string")return;let o=r.method.value,a=e==="request"?"setRequestHandler":"setNotificationHandler";lH.has(a)||(lH.add(a),console.warn(`[ext-apps] ${a}(Schema, handler) is deprecated; use ${a}("${o}", { params: Schema.shape.params }, handler).`));let s=i;return[o,{params:r.params},e==="request"?(l,c)=>s({method:o,params:l},ofe(c)):l=>s({method:o,params:l})]}function ofe(e){return{signal:e.mcpReq.signal,requestId:e.mcpReq.id,sessionId:e.sessionId,_meta:e.mcpReq._meta,sendRequest:e.mcpReq.send,sendNotification:e.mcpReq.notify,authInfo:e.http?.authInfo}}var afe="2026-01-26";var sfe="ui/notifications/tool-input-partial";var Jy=class{eventTarget;eventSource;messageListener;constructor(t=window.parent,n){this.eventTarget=t,this.eventSource=n,this.messageListener=i=>{if(n&&i.source!==this.eventSource){console.debug("Ignoring message from unknown source",i);return}let r=kd.safeParse(i.data);r.success?(console.debug("Parsed message",r.data),this.onmessage?.(r.data)):i.data?.jsonrpc!=="2.0"?console.debug("Ignoring non-JSON-RPC message",r.error.message,i):(console.error("Failed to parse message",r.error.message,i),this.onerror?.(Error("Invalid JSON-RPC message received: "+r.error.message)))}}async start(){window.addEventListener("message",this.messageListener)}async send(t,n){t.method!==sfe&&console.debug("Sending message",t),this.eventTarget.postMessage(t,"*")}async close(){window.removeEventListener("message",this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},lfe=q.union([q.literal("light"),q.literal("dark")]).describe("Color theme preference for the host environment."),Qy=q.union([q.literal("inline"),q.literal("fullscreen"),q.literal("pip")]).describe("Display mode for UI presentation."),cfe=q.union([q.literal("--color-background-primary"),q.literal("--color-background-secondary"),q.literal("--color-background-tertiary"),q.literal("--color-background-inverse"),q.literal("--color-background-ghost"),q.literal("--color-background-info"),q.literal("--color-background-danger"),q.literal("--color-background-success"),q.literal("--color-background-warning"),q.literal("--color-background-disabled"),q.literal("--color-text-primary"),q.literal("--color-text-secondary"),q.literal("--color-text-tertiary"),q.literal("--color-text-inverse"),q.literal("--color-text-ghost"),q.literal("--color-text-info"),q.literal("--color-text-danger"),q.literal("--color-text-success"),q.literal("--color-text-warning"),q.literal("--color-text-disabled"),q.literal("--color-border-primary"),q.literal("--color-border-secondary"),q.literal("--color-border-tertiary"),q.literal("--color-border-inverse"),q.literal("--color-border-ghost"),q.literal("--color-border-info"),q.literal("--color-border-danger"),q.literal("--color-border-success"),q.literal("--color-border-warning"),q.literal("--color-border-disabled"),q.literal("--color-ring-primary"),q.literal("--color-ring-secondary"),q.literal("--color-ring-inverse"),q.literal("--color-ring-info"),q.literal("--color-ring-danger"),q.literal("--color-ring-success"),q.literal("--color-ring-warning"),q.literal("--font-sans"),q.literal("--font-mono"),q.literal("--font-weight-normal"),q.literal("--font-weight-medium"),q.literal("--font-weight-semibold"),q.literal("--font-weight-bold"),q.literal("--font-text-xs-size"),q.literal("--font-text-sm-size"),q.literal("--font-text-md-size"),q.literal("--font-text-lg-size"),q.literal("--font-heading-xs-size"),q.literal("--font-heading-sm-size"),q.literal("--font-heading-md-size"),q.literal("--font-heading-lg-size"),q.literal("--font-heading-xl-size"),q.literal("--font-heading-2xl-size"),q.literal("--font-heading-3xl-size"),q.literal("--font-text-xs-line-height"),q.literal("--font-text-sm-line-height"),q.literal("--font-text-md-line-height"),q.literal("--font-text-lg-line-height"),q.literal("--font-heading-xs-line-height"),q.literal("--font-heading-sm-line-height"),q.literal("--font-heading-md-line-height"),q.literal("--font-heading-lg-line-height"),q.literal("--font-heading-xl-line-height"),q.literal("--font-heading-2xl-line-height"),q.literal("--font-heading-3xl-line-height"),q.literal("--border-radius-xs"),q.literal("--border-radius-sm"),q.literal("--border-radius-md"),q.literal("--border-radius-lg"),q.literal("--border-radius-xl"),q.literal("--border-radius-full"),q.literal("--border-width-regular"),q.literal("--shadow-hairline"),q.literal("--shadow-sm"),q.literal("--shadow-md"),q.literal("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),ufe=q.record(cfe.describe(`Style variables for theming MCP apps.

Individual style keys are optional - hosts may provide any subset of these values.
Values are strings containing CSS values (colors, sizes, font stacks, etc.).

Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),q.union([q.string(),q.undefined()]).describe(`Style variables for theming MCP apps.

Individual style keys are optional - hosts may provide any subset of these values.
Values are strings containing CSS values (colors, sizes, font stacks, etc.).

Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps.

Individual style keys are optional - hosts may provide any subset of these values.
Values are strings containing CSS values (colors, sizes, font stacks, etc.).

Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),xNe=q.object({method:q.literal("ui/open-link"),params:q.object({url:q.string().describe("URL to open in the host's browser")})}),dfe=q.object({isError:q.boolean().optional().describe("True if the host failed to open the URL (e.g., due to security policy).")}).passthrough(),hfe=q.object({isError:q.boolean().optional().describe("True if the download failed (e.g., user cancelled or host denied).")}).passthrough(),ffe=q.object({isError:q.boolean().optional().describe("True if the host rejected or failed to deliver the message.")}).passthrough(),_Ne=q.object({method:q.literal("ui/notifications/sandbox-proxy-ready"),params:q.object({})}),nD=q.object({connectDomains:q.array(q.string()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).

- Maps to CSP \`connect-src\` directive
- Empty or omitted \u2192 no network connections (secure default)`),resourceDomains:q.array(q.string()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted \u2192 no network resources (secure default)"),frameDomains:q.array(q.string()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted \u2192 no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:q.array(q.string()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted \u2192 only same origin allowed (`base-uri 'self'`)")}),iD=q.object({camera:q.object({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),microphone:q.object({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),geolocation:q.object({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),clipboardWrite:q.object({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")}),SNe=q.object({method:q.literal("ui/notifications/size-changed"),params:q.object({width:q.number().optional().describe("New width in pixels."),height:q.number().optional().describe("New height in pixels.")})}),pfe=q.object({method:q.literal("ui/notifications/tool-input"),params:q.object({arguments:q.record(q.string(),q.unknown().describe("Complete tool call arguments as key-value pairs.")).optional().describe("Complete tool call arguments as key-value pairs.")})}),mfe=q.object({method:q.literal("ui/notifications/tool-input-partial"),params:q.object({arguments:q.record(q.string(),q.unknown().describe("Partial tool call arguments (incomplete, may change).")).optional().describe("Partial tool call arguments (incomplete, may change).")})}),gfe=q.object({method:q.literal("ui/notifications/tool-cancelled"),params:q.object({reason:q.string().optional().describe('Optional reason for the cancellation (e.g., "user action", "timeout").')})}),vfe=q.object({fonts:q.string().optional()}),yfe=q.object({variables:ufe.optional().describe("CSS variables for theming the app."),css:vfe.optional().describe("CSS blocks that apps can inject.")}),bfe=q.object({method:q.literal("ui/resource-teardown"),params:q.object({})}),xfe=q.record(q.string(),q.unknown()),uH=q.object({text:q.object({}).optional().describe("Host supports text content blocks."),image:q.object({}).optional().describe("Host supports image content blocks."),audio:q.object({}).optional().describe("Host supports audio content blocks."),resource:q.object({}).optional().describe("Host supports resource content blocks."),resourceLink:q.object({}).optional().describe("Host supports resource link content blocks."),structuredContent:q.object({}).optional().describe("Host supports structured content.")}),$Ne=q.object({method:q.literal("ui/notifications/request-teardown"),params:q.object({}).optional()}),_fe=q.object({experimental:q.record(q.string(),q.record(q.string(),q.any()).describe("Experimental features keyed by identifier.")).optional().describe("Experimental features keyed by identifier."),openLinks:q.object({}).optional().describe("Host supports opening external URLs."),downloadFile:q.object({}).optional().describe("Host supports file downloads via ui/download-file."),serverTools:q.object({listChanged:q.boolean().optional().describe("Host supports tools/list_changed notifications.")}).optional().describe("Host can proxy tool calls to the MCP server."),serverResources:q.object({listChanged:q.boolean().optional().describe("Host supports resources/list_changed notifications.")}).optional().describe("Host can proxy resource reads to the MCP server."),logging:q.object({}).optional().describe("Host accepts log messages."),sandbox:q.object({permissions:iD.optional().describe("Permissions granted by the host (camera, microphone, geolocation)."),csp:nD.optional().describe("CSP domains approved by the host.")}).optional().describe("Sandbox configuration applied by the host."),updateModelContext:uH.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),message:uH.optional().describe("Host supports receiving content messages (ui/message) from the view."),sampling:q.object({tools:q.object({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),Sfe=q.object({experimental:q.record(q.string(),q.record(q.string(),q.any()).describe("Experimental features keyed by identifier.")).optional().describe("Experimental features keyed by identifier."),tools:q.object({listChanged:q.boolean().optional().describe("App supports tools/list_changed notifications.")}).optional().describe("App exposes MCP-style tools that the host can call."),availableDisplayModes:q.array(Qy).optional().describe("Display modes the app supports.")}),wNe=q.object({method:q.literal("ui/notifications/initialized"),params:q.object({}).optional()}),kNe=q.object({csp:nD.optional().describe("Content Security Policy configuration for UI resources."),permissions:iD.optional().describe("Sandbox permissions requested by the UI resource."),domain:q.string().optional().describe(`Dedicated origin for view sandbox.

Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.

**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include:
- Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`)
- URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`)

If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:q.boolean().optional().describe(`Visual boundary preference - true if view prefers a visible border.

Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.

- \`true\`: request visible border + background
- \`false\`: request no visible border + background
- omitted: host decides border`)}),MNe=q.object({method:q.literal("ui/request-display-mode"),params:q.object({mode:Qy.describe("The display mode being requested.")})}),$fe=q.object({mode:Qy.describe("The display mode that was actually set. May differ from requested if not supported.")}).passthrough(),wfe=q.union([q.literal("model"),q.literal("app")]).describe("Tool visibility scope - who can access the tool."),CNe=q.object({resourceUri:q.string().optional(),visibility:q.array(wfe).optional().describe(`Who can access this tool. Default: ["model", "app"]
- "model": Tool visible to and callable by the agent
- "app": Tool callable by the app from this server only`),csp:q.never().optional(),permissions:q.never().optional()}),zNe=q.object({mimeTypes:q.array(q.string()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),TNe=q.object({method:q.literal("ui/download-file"),params:q.object({contents:q.array(q.union([Ad,Id])).describe("Resource contents to download \u2014 embedded (inline data) or linked (host fetches). Uses standard MCP resource types.")})}),ANe=q.object({method:q.literal("ui/message"),params:q.object({role:q.literal("user").describe('Message role, currently only "user" is supported.'),content:q.array(os).describe("Message content blocks (text, image, etc.).")})}),INe=q.object({method:q.literal("ui/notifications/sandbox-resource-ready"),params:q.object({html:q.string().describe("HTML content to load into the inner iframe."),sandbox:q.string().optional().describe("Optional override for the inner iframe's sandbox attribute."),csp:nD.optional().describe("CSP configuration from resource metadata."),permissions:iD.optional().describe("Sandbox permissions from resource metadata.")})}),kfe=q.object({method:q.literal("ui/notifications/tool-result"),params:Xc.describe("Standard MCP tool execution result.")}),fH=q.object({toolInfo:q.object({id:wa.optional().describe("JSON-RPC id of the tools/call request."),tool:Yc.describe("Tool definition including name, inputSchema, etc.")}).optional().describe("Metadata of the tool call that instantiated this App."),theme:lfe.optional().describe("Current color theme preference."),styles:yfe.optional().describe("Style configuration for theming the app."),displayMode:Qy.optional().describe("How the UI is currently displayed."),availableDisplayModes:q.array(Qy).optional().describe("Display modes the host supports."),containerDimensions:q.union([q.object({height:q.number().describe("Fixed container height in pixels.")}),q.object({maxHeight:q.union([q.number(),q.undefined()]).optional().describe("Maximum container height in pixels.")})]).and(q.union([q.object({width:q.number().describe("Fixed container width in pixels.")}),q.object({maxWidth:q.union([q.number(),q.undefined()]).optional().describe("Maximum container width in pixels.")})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:q.string().optional().describe("User's language and region preference in BCP 47 format."),timeZone:q.string().optional().describe("User's timezone in IANA format."),userAgent:q.string().optional().describe("Host application identifier."),platform:q.union([q.literal("web"),q.literal("desktop"),q.literal("mobile")]).optional().describe("Platform type for responsive design decisions."),deviceCapabilities:q.object({touch:q.boolean().optional().describe("Whether the device supports touch input."),hover:q.boolean().optional().describe("Whether the device supports hover interactions.")}).optional().describe("Device input capabilities."),safeAreaInsets:q.object({top:q.number().describe("Top safe area inset in pixels."),right:q.number().describe("Right safe area inset in pixels."),bottom:q.number().describe("Bottom safe area inset in pixels."),left:q.number().describe("Left safe area inset in pixels.")}).optional().describe("Mobile safe area boundaries in pixels.")}).passthrough(),Mfe=q.object({method:q.literal("ui/notifications/host-context-changed"),params:fH.describe("Partial context update containing only changed fields.")}),RNe=q.object({method:q.literal("ui/update-model-context"),params:q.object({content:q.array(os).optional().describe("Context content blocks (text, image, etc.)."),structuredContent:q.record(q.string(),q.unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")})}),LNe=q.object({method:q.literal("ui/initialize"),params:q.object({appInfo:is.describe("App identification (name and version)."),appCapabilities:Sfe.describe("Features and capabilities this app provides."),protocolVersion:q.string().describe("Protocol version this app supports.")})}),Cfe=q.object({protocolVersion:q.string().describe('Negotiated protocol version string (e.g., "2025-11-21").'),hostInfo:is.describe("Host application identification and version."),hostCapabilities:_fe.describe("Features and capabilities provided by the host."),hostContext:fH.describe("Rich context about the host environment.")}).passthrough(),zfe={target:"draft-2020-12"};async function dH(e,t){let n=e["~standard"];if(n.jsonSchema)return n.jsonSchema[t](zfe);throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function hH(e,t,n=""){let i=await e["~standard"].validate(t);if(i.issues){let r=i.issues.map(o=>{let a=o.path?.map(s=>typeof s=="object"?s.key:s).join(".");return a?`${a}: ${o.message}`:o.message}).join("; ");throw Error(n+r)}return i.value}function pH(e,t=document.documentElement){for(let[n,i]of Object.entries(e))i!==void 0&&t.style.setProperty(n,i)}function Tfe(e,t){let n={...e,...t};return t.experimental!==void 0&&(n.experimental={...e.experimental,...t.experimental}),t.tools!==void 0&&(n.tools={...e.tools,...t.tools}),n}var aw=class e extends QE{_appInfo;_appCapabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_registeredEvents=new Set;_events=new eD;_methods=new tD;setRequestHandler=(...t)=>{let[n,...i]=cH("request",t)??t;this._methods.claim(n,"setRequestHandler"),super.setRequestHandler.call(this,n,...i)};setNotificationHandler=(...t)=>{let[n,...i]=cH("notification",t)??t;this._methods.claim(n,"setNotificationHandler"),super.setNotificationHandler.call(this,n,...i)};removeRequestHandler=t=>{this._methods.release(t),super.removeRequestHandler(t)};removeNotificationHandler=t=>{this._methods.release(t),super.removeNotificationHandler(t)};replaceRequestHandler=(t,...n)=>{this._methods.replace(t),super.setRequestHandler.call(this,t,...n)};_assertInitialized(t){if(this._initializedSent)return;let n=`[ext-apps] App.${t}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(n);console.warn(`${n}. This will throw in a future release.`)}eventSchemas={toolinput:pfe,toolinputpartial:mfe,toolresult:kfe,toolcancelled:gfe,hostcontextchanged:Mfe};static ONE_SHOT_EVENTS=new Set(["toolinput","toolinputpartial","toolresult","toolcancelled"]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(n);console.warn(n)}setEventHandler(t,n){n&&this._assertHandlerTiming(t),this._ensureEventSlot(t),this._events.setHandler(t,n)}addEventListener(t,n){this._assertHandlerTiming(t),this._ensureEventSlot(t),this._events.addEventListener(t,n)}removeEventListener(t,n){this._events.removeEventListener(t,n)}_ensureEventSlot(t){if(this._registeredEvents.has(t))return;let n=this.eventSchemas[t];if(!n)throw Error(`Unknown event: ${String(t)}`);this.setNotificationHandler(n.shape.method.value,{params:n.shape.params},i=>{let r=i;t==="hostcontextchanged"&&(this._hostContext={...this._hostContext,...r}),this._events.dispatch(t,r)}),this._registeredEvents.add(t)}getEventHandler(t){return this._events.getHandler(t)}warnIfRequestHandlerReplaced(t,n,i){n&&i&&console.warn(`[MCP Apps] ${t} handler replaced. Previous handler will no longer be called.`)}constructor(t,n={},i={autoResize:!0}){super(i),this._appInfo=t,this._appCapabilities=n,this.options=i,this._methods.replace("notifications/cancelled"),this._methods.replace("notifications/progress"),!i.allowUnsafeEval&&q.config({jitless:!0}),this.replaceRequestHandler("ping",r=>(console.log("Received ping:",r.params),{})),this.setEventHandler("hostcontextchanged",void 0)}buildContext(t){return t}registerAppCapabilities(t){if(this.transport)throw Error("Cannot register capabilities after transport is established");this._appCapabilities=Tfe(this._appCapabilities,t)}registerTool(t,n,i){if(this._registeredTools[t])throw Error(`Tool ${t} is already registered`);let r=this,o=()=>{r._initializedSent&&r._appCapabilities.tools?.listChanged&&r.sendToolListChanged()},a=n.inputSchema!==void 0,s={title:n.title,description:n.description,inputSchema:n.inputSchema,outputSchema:n.outputSchema,annotations:n.annotations,_meta:n._meta,enabled:!0,enable(){this.enabled=!0,o()},disable(){this.enabled=!1,o()},update(l){Object.assign(this,l),o()},remove(){r._registeredTools[t]===s&&(delete r._registeredTools[t],o())},handler:async(l,c)=>{if(!s.enabled)throw Error(`Tool ${t} is disabled`);let u;if(a){let d=s.inputSchema,f=d?await hH(d,l??{},`Invalid input for tool ${t}: `):l??{};u=await i(f,c)}else u=await i(c);return s.outputSchema&&!u.isError&&(u.structuredContent=await hH(s.outputSchema,u.structuredContent,`Invalid output for tool ${t}: `)),u}};return this._registeredTools[t]=s,!this._appCapabilities.tools&&!this.transport&&this.registerAppCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),o(),s}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(t,n)=>{let i=this._registeredTools[t.name];if(!i)throw Error(`Tool ${t.name} not found`);return i.handler(t.arguments,n)},this.onlisttools=async(t,n)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([i,r])=>r.enabled).map(async([i,r])=>{let o={name:i,title:r.title,description:r.description,inputSchema:r.inputSchema?await dH(r.inputSchema,"input"):{type:"object",properties:{}}};return r.outputSchema&&(o.outputSchema=await dH(r.outputSchema,"output")),r.annotations&&(o.annotations=r.annotations),r._meta&&(o._meta=r._meta),o}))}))}async sendToolListChanged(t={}){this._assertInitialized("sendToolListChanged"),await this.notification({method:"notifications/tools/list_changed",params:t})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler("toolinput")}set ontoolinput(t){this.setEventHandler("toolinput",t)}get ontoolinputpartial(){return this.getEventHandler("toolinputpartial")}set ontoolinputpartial(t){this.setEventHandler("toolinputpartial",t)}get ontoolresult(){return this.getEventHandler("toolresult")}set ontoolresult(t){this.setEventHandler("toolresult",t)}get ontoolcancelled(){return this.getEventHandler("toolcancelled")}set ontoolcancelled(t){this.setEventHandler("toolcancelled",t)}get onhostcontextchanged(){return this.getEventHandler("hostcontextchanged")}set onhostcontextchanged(t){this.setEventHandler("hostcontextchanged",t)}_onteardown;get onteardown(){return this._onteardown}set onteardown(t){this.warnIfRequestHandlerReplaced("onteardown",this._onteardown,t),this._onteardown=t,this.replaceRequestHandler("ui/resource-teardown",{params:bfe.shape.params,result:xfe},(n,i)=>{if(!this._onteardown)throw Error("No onteardown handler set");return this._onteardown(n,i)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(t){this.warnIfRequestHandlerReplaced("oncalltool",this._oncalltool,t),this._oncalltool=t,this.replaceRequestHandler("tools/call",(n,i)=>{if(!this._oncalltool)throw Error("No oncalltool handler set");return this._oncalltool(n.params,i)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(t){this.warnIfRequestHandlerReplaced("onlisttools",this._onlisttools,t),this._onlisttools=t,this.replaceRequestHandler("tools/list",(n,i)=>{if(!this._onlisttools)throw Error("No onlisttools handler set");return this._onlisttools(n.params,i)})}assertCapabilityForMethod(t){switch(t){case"sampling/createMessage":if(!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${t})`);break}}assertRequestHandlerCapability(t){switch(t){case"tools/call":case"tools/list":if(!this._appCapabilities.tools)throw Error(`Client does not support tool capability (required for ${t})`);return;default:return}}assertNotificationCapability(t){}async callServerTool(t,n){if(this._assertInitialized("callServerTool"),typeof t=="string")throw Error(`callServerTool() expects an object as its first argument, but received a string ("${t}"). Did you mean: callServerTool({ name: "${t}", arguments: { ... } })?`);return await this.request({method:"tools/call",params:t},{onprogress:()=>{},resetTimeoutOnProgress:!0,...n})}async readServerResource(t,n){return this._assertInitialized("readServerResource"),await this.request({method:"resources/read",params:t},n)}async listServerResources(t,n){return this._assertInitialized("listServerResources"),await this.request({method:"resources/list",params:t},n)}async createSamplingMessage(t,n){return this._assertInitialized("createSamplingMessage"),await this.request({method:"sampling/createMessage",params:t},n)}sendMessage(t,n){return this._assertInitialized("sendMessage"),this.request({method:"ui/message",params:t},ffe,n)}sendLog(t){return this.notification({method:"notifications/message",params:t})}updateModelContext(t,n){return this._assertInitialized("updateModelContext"),this.request({method:"ui/update-model-context",params:t},Wc,n)}openLink(t,n){return this._assertInitialized("openLink"),this.request({method:"ui/open-link",params:t},dfe,n)}sendOpenLink=this.openLink;downloadFile(t,n){return this._assertInitialized("downloadFile"),this.request({method:"ui/download-file",params:t},hfe,n)}requestTeardown(t={}){return this.notification({method:"ui/notifications/request-teardown",params:t})}requestDisplayMode(t,n){return this._assertInitialized("requestDisplayMode"),this.request({method:"ui/request-display-mode",params:t},$fe,n)}sendSizeChanged(t){return this.notification({method:"ui/notifications/size-changed",params:t})}setupSizeChangedNotifications(){let t=!1,n=0,i=0,r=()=>{t||(t=!0,requestAnimationFrame(()=>{t=!1;let a=document.documentElement,s=a.style.height;a.style.height="max-content";let l=Math.ceil(a.getBoundingClientRect().height);a.style.height=s;let c=Math.ceil(window.innerWidth);(c!==n||l!==i)&&(n=c,i=l,this.sendSizeChanged({width:c,height:l}))}))};r();let o=new ResizeObserver(r);return o.observe(document.documentElement),o.observe(document.body),()=>o.disconnect()}async connect(t=new Jy(window.parent,window.parent),n){if(this.transport)throw Error("App is already connected. Call close() before connecting again.");this._initializedSent=!1;try{await super.connect(t);let i=await this.request({method:"ui/initialize",params:{appCapabilities:this._appCapabilities,appInfo:this._appInfo,protocolVersion:afe}},Cfe,n);if(i===void 0)throw Error(`Server sent invalid initialize result: ${i}`);this._hostCapabilities=i.hostCapabilities,this._hostInfo=i.hostInfo,this._hostContext=i.hostContext,await this.notification({method:"ui/notifications/initialized"}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(i){throw this.close(),i}}};var Fn={name:"presentations",version:"0.2.0",title:{en:"Presentations","zh-CN":"\u6F14\u793A\u6587\u7A3F"},kinds:["pptx"]};var mH=Fn.version,gH=Fn.name,BNe=Fn.name,FNe=`ui://${Fn.name}/panel.html`,Afe=`ui://${Fn.name}/assets/`,vH=`ui://${Fn.name}/file/`;var ka=Fn.kinds,tb=100*1024*1024,qNe=512*1024*1024,rD=4*1024*1024,VNe=24*1024,eb=class extends Error{constructor(n,i){super(i);this.code=n;this.name="OfficeError"}};function nb(e){let t=e.toLowerCase().match(/\.([a-z]+)$/)?.[1];return ka.includes(t??"")?t:null}var Ife={en:{sep:", ",and:" and ",or:" or "},"zh-CN":{sep:"\u3001",and:"\u548C",or:"\u6216"}};function Vo(e,t="en",n="and"){let i=Ife[t];if(e.length<2)return e.join("");let r=e[e.length-1],o=t==="zh-CN"&&/^[\x20-\x7e]/.test(r)?` ${i[n]} `:i[n];return`${e.slice(0,-1).join(i.sep)}${o}${r}`}function Nd(e="en",t="and"){return Vo(ka.map(n=>`.${n}`),e,t)}var ss=(e,t)=>new eb("invalid_anchor",`Cannot read location "${e}". ${t}`),ls={docx:"Use p:N, p:N-M, t:N or t:N/rRcC.",pptx:"Use slide:N, slide:N-M or slide:N/shape:ID.",pdf:"Use page:N or page:N-M.",xlsx:"Use Sheet, Sheet!A1 or Sheet!A1:C9 (quote names with spaces: 'My sheet'!A1)."};function oD(e,t,n){if(!t)throw ss(e,ls[n]);let i=Number(t[1]),r=t[2]===void 0?i:Number(t[2]);if(!(i>=1)||!(r>=i)||r>1e6)throw ss(e,ls[n]);return{from:i,to:r}}function yH(e){let t=/^\$?([A-Za-z]{1,3})\$?(\d{1,7})$/.exec(e);if(!t)return null;let n=0;for(let r of t[1].toUpperCase())n=n*26+(r.charCodeAt(0)-64);let i=Number(t[2]);return i<1||i>1048576||n>16384?null:{row:i,col:n}}function Rfe(e){let t,n;if(e.startsWith("'")){let s=1;for(t="";s<e.length;s++)if(e[s]==="'")if(e[s+1]==="'")t+="'",s++;else break;else t+=e[s];if(s>=e.length||(n=e.slice(s+1),n&&!n.startsWith("!")))throw ss(e,ls.xlsx);n=n.slice(1)}else{let s=e.lastIndexOf("!");t=s<0?e:e.slice(0,s),n=s<0?"":e.slice(s+1)}if(!t||t.length>64)throw ss(e,ls.xlsx);if(!n)return{kind:"xlsx",sheet:t};let[i,r=i]=n.split(":"),o=yH(i),a=yH(r);if(!o||!a)throw ss(e,ls.xlsx);return{kind:"xlsx",sheet:t,range:{start:{row:Math.min(o.row,a.row),col:Math.min(o.col,a.col)},end:{row:Math.max(o.row,a.row),col:Math.max(o.col,a.col)}}}}function bH(e,t){let n=t.trim();if(!n||n.length>300)throw ss(t,ls[e]);switch(e){case"docx":{let i=/^t:(\d+)(?:\/r(\d+)c(\d+))?$/i.exec(n);if(i){let r=Number(i[1]);if(r<1)throw ss(n,ls.docx);if(i[2]===void 0)return{kind:e,type:"table",table:r};let o={row:Number(i[2]),col:Number(i[3])};if(o.row<1||o.col<1)throw ss(n,ls.docx);return{kind:e,type:"table",table:r,cell:o}}return{kind:e,type:"paragraph",...oD(n,/^p:(\d+)(?:-(?:p:)?(\d+))?$/i.exec(n),e)}}case"pptx":{let i=/^slide:(\d+)\/shape:([\w-]{1,32})$/i.exec(n);if(i){let r=Number(i[1]);if(r<1)throw ss(n,ls.pptx);return{kind:e,from:r,to:r,shape:i[2]}}return{kind:e,...oD(n,/^slide:(\d+)(?:-(?:slide:)?(\d+))?$/i.exec(n),e)}}case"pdf":return{kind:e,...oD(n,/^page:(\d+)(?:-(?:page:)?(\d+))?$/i.exec(n),e)};case"xlsx":return Rfe(n)}}function xH(e){let t=/^(.*?\.(?:docx|xlsx|pptx|pdf))(?:#(.*))?$/i.exec(e.trim());if(!t)throw new eb("invalid_anchor",`"${e}" is not a document anchor. Use <path>.docx|.xlsx|.pptx|.pdf optionally followed by #<location>.`);return{path:t[1],at:t[2]?.trim()?t[2].trim():null}}function ib(e,t){return t?`${e}#${t}`:e}var _H=e=>e>=55296&&e<=56319,SH=e=>e>=56320&&e<=57343;function lw(e,t,n=e.length){let i=Math.max(0,Math.min(t,e.length)),r=Math.max(i,Math.min(n,e.length));return i>0&&SH(e.charCodeAt(i))&&_H(e.charCodeAt(i-1))&&i--,r<e.length&&SH(e.charCodeAt(r))&&_H(e.charCodeAt(r-1))&&r--,e.slice(i,r)}var Lfe=/[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/g,cw=e=>e.replace(Lfe,"\uFFFD");function sw(e){return typeof e=="string"?cw(e):Array.isArray(e)?e.map(t=>sw(t)):e&&typeof e=="object"&&Object.getPrototypeOf(e)===Object.prototype?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,sw(n)])):e}var $H=`${Fn.name}:windows:v1`,Efe=128;function wH(e){try{let t=JSON.parse(e.getItem($H)??"{}");return t&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{return{}}}function aD(e,t){let n=wH(e)[t];return!n||typeof n!="object"?{}:{...typeof n.path=="string"?{path:n.path}:{},...Array.isArray(n.recent)?{recent:n.recent.filter(i=>typeof i?.path=="string"&&nb(i.path)===i.kind)}:{}}}function kH(e,t,n){try{let i=wH(e),r={...aD(e,t),...n};delete i[t],i[t]=r;for(let o of Object.keys(i).slice(0,-Efe))delete i[o];e.setItem($H,JSON.stringify(i))}catch{}}var Xp=e=>e.filter(([t])=>ka.includes(t)).map(([,t])=>t),Dfe={docx:"Word",xlsx:"Excel",pptx:"PowerPoint",pdf:"PDF"},MH=ka.filter(e=>e!=="pdf"),CH=[...MH.length===3?["Office"]:MH.map(e=>Dfe[e]),...ka.includes("pdf")?["PDF"]:[]],rb=Fn.title.en,e5e=(()=>{let e=Vo(CH,"en","or");return`${/^[AEIOU]/.test(e)?"an":"a"} ${e} file`})(),t5e=`${Vo(CH)} files`,n5e=Nd("en","or"),i5e=Xp([["docx","report.docx#p:12"],["xlsx","model.xlsx#Revenue!B2:F9"],["pptx","deck.pptx#slide:3"],["pdf","paper.pdf#page:5"]]).join(", "),r5e=Xp([["docx","p:12"],["pptx","slide:3"],["pdf","page:5"],["xlsx","Revenue!B2:F9"]]).join(", "),o5e=Xp([["docx","Word paragraphs and tables (markdown)"],["xlsx","spreadsheet cells as a grid with formulas"],["pptx","slides with their shapes and speaker notes"],["pdf","PDF page text"]]).join(", "),a5e=Vo(Xp([["docx","paragraph"],["xlsx","cell range"],["pptx","slide"],["pptx","shape"],["pdf","page"]]),"en","or"),s5e=Vo(Xp([["pdf","PDF pages"],["docx","long paragraphs"]]))||"long passages",zH=Vo(Xp([["pptx","deck.pptx#slide:3"],["pdf","paper.pdf#page:2"],["docx","report.docx#p:12"],["xlsx","model.xlsx#Revenue!A1:H30"]]),"en","or");var TH=[{name:"capture_view",title:`Capture ${rb} view`,description:`Take a picture of a rendered document location in the ${rb} panel so you can see layout, charts, images and formatting that text extraction misses. Pass an anchor such as ${zH} (the document must be open in the panel; call open_document first), or omit it to capture what the user currently sees.`,inputSchema:{type:"object",properties:{anchor:{type:"string",maxLength:1200,description:"Location to capture; defaults to the visible view."},maxWidth:{type:"integer",minimum:320,maximum:2e3,description:"Maximum image width in pixels (default 1600)."}},additionalProperties:!1},annotations:{readOnlyHint:!0,idempotentHint:!0}}];function Ofe(){let e=crypto.randomUUID(),t=()=>n.getHostCapabilities()?.experimental?.["zcode/surface"]?.stateKey??e,n=new aw({name:gH,version:mH},{tools:{listChanged:!0},availableDisplayModes:["inline","fullscreen"]},{autoResize:!1}),i=[],r=new Map,o=new Set,a,s=c=>void window.dispatchEvent(new Event(`office:${c}`));return n.ontoolresult=c=>{i.push(c),i.length>20&&i.shift(),s("toolresult")},n.onhostcontextchanged=()=>s("hostchange"),n.onlisttools=async()=>({tools:TH}),n.oncalltool=async(c,u)=>{if(!TH.some(d=>d.name===c.name))return{isError:!0,content:[{type:"text",text:`The ${rb} page has no tool ${c.name}.`}]};try{let d=Date.now()+2e4;for(;!r.has(c.name)&&Date.now()<d;)await new Promise(p=>{let g=()=>(o.delete(g),p());o.add(g),setTimeout(g,500)});let f=r.get(c.name);if(!f)throw new Error(`The ${rb} panel is still loading; try again in a moment.`);let h=u;return await f(c.arguments??{},h.mcpReq?.signal??h.signal)}catch(d){return{isError:!0,content:[{type:"text",text:d instanceof Error?d.message:String(d)}]}}},window.addEventListener("pagehide",()=>{n.callServerTool({name:"release_view",arguments:{viewId:t()}}).catch(()=>{})}),{app:n,get viewId(){return t()},ready:()=>a??=n.connect(new Jy(window.parent,window.parent)).then(()=>s("hostchange")),readWindow(){let c=n.getHostCapabilities()?.experimental?.["zcode/surface"];if(!c?.stateKey)return{};try{return aD(localStorage,c.stateKey)}catch{return{}}},saveWindow(c){let u=n.getHostCapabilities()?.experimental?.["zcode/surface"];if(u?.stateKey)try{kH(localStorage,u.stateKey,c)}catch{}},readDocument(){return this.readWindow().path??null},saveDocument(c){this.saveWindow({path:c})},takeResults:()=>i.splice(0,i.length),handleTool(c,u){r.set(c,u);for(let d of o)d()},get context(){return n.getHostContext()},get capabilities(){return n.getHostCapabilities()}}}function Ho(){return window.__officeHost??=Ofe()}async function Nfe(e){let t=Ho();await t.ready();let i=(await t.app.readServerResource({uri:e})).contents[0];if(!i)throw new Error(`Empty resource ${e}`);return i}function Pfe(e){let t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}async function AH(e,t){let n=new Uint8Array(e.bytes),i=0;for(let r=0;r<e.chunks;r++){t?.throwIfAborted();let o=await Nfe(`${vH}${e.token}/${r}`);if(typeof o.blob!="string")throw new Error("File chunk is not binary");let a=Pfe(o.blob);n.set(a,i),i+=a.byteLength}if(i!==e.bytes)throw new Error("The file changed while it was loading; reload it.");return n.buffer}var uw=Ln(oo(),1);var ob=class extends Error{constructor(n,i){super(n);this.code=i;this.name="CallError"}};async function cs(e,t={}){let n=Ho();await n.ready();let i=await n.app.callServerTool({name:e,arguments:t}),r=i.structuredContent,o=r?.error;if(i.isError||o){let a=i.content?.[0]?.text;throw new ob(o?.message??a??`${e} failed`,o?.code)}return r}var Pd=e=>e.slice(e.lastIndexOf("/")+1),IH=e=>{let t=e.lastIndexOf("/");return t>0?e.slice(0,t):""};async function RH(e){let{id:t}=await cs("begin_file_import",{name:e.name,size:e.size});try{for(let i=0;i<e.size;i+=rD){let r=await new Promise((o,a)=>{let s=new FileReader;s.onload=()=>o(String(s.result).split(",")[1]),s.onerror=()=>a(s.error),s.readAsDataURL(e.slice(i,i+rD))});await cs("write_file_import",{id:t,offset:i,data:r})}return(await cs("finish_file_import",{id:t})).path}catch(n){throw await cs("cancel_file_import",{id:t}).catch(()=>{}),n}}var dw=(e,t)=>e.length>t?`${lw(e,0,t-1)}\u2026`:e;function sD(){return Ho().readWindow().recent??[]}function LH(e){Ho().saveWindow({recent:e})}function ab(e,t,n){let i=t instanceof ob?t.code:t?.name==="PasswordException"?"password":void 0,[r,o]=i&&e.errors[i]||e.errors.generic,a=t instanceof Error?t.message:String(t);return{path:n,title:r,detail:o||a}}function EH(){let[,e]=(0,uw.useState)(0);return(0,uw.useEffect)(()=>{let t=()=>e(n=>n+1);return window.addEventListener("office:hostchange",t),()=>window.removeEventListener("office:hostchange",t)},[]),Ho().context}var jfe={docx:"Word",xlsx:"Excel",pptx:"PowerPoint",pdf:"PDF"},OH=ka.map(e=>jfe[e]),Kp=e=>ka.includes(e),DH=Kp("docx")||Kp("pdf"),NH={en:`any ${Vo([...DH?["passage"]:[],...Kp("xlsx")?["cell"]:[],...Kp("pptx")?["slide"]:[]],"en","or")}`,zh:Vo([...DH?["\u6BB5\u843D"]:[],...Kp("xlsx")?["\u5355\u5143\u683C"]:[],...Kp("pptx")?["\u5E7B\u706F\u7247"]:[]],"zh-CN","or")},lD=Fn.title["zh-CN"].replace(/[\x20-\x7e]$/,"$& "),Ufe={title:Fn.title.en,openTitle:"Open a document",openFile:"Open file",emptyTitle:`Open your ${Vo(OH)} file`,emptyDescription:`Read alongside your conversation and discuss ${NH.en}.`,emptyCaption:`Choose a local file \xB7 ${Nd("en","or")}`,importing:"Importing\u2026",importTooLarge:`Choose a file no larger than ${tb/1024/1024} MiB.`,recent:"Recent",switchDocument:"Switch document",pagesAndOutline:"Pages and outline",outlineOnly:"Outline",pages:"Pages",slides:"Slides",outline:"Outline",find:"Find",findPlaceholder:"Find in document",findCount:(e,t)=>`${e} of ${t}`,noResults:"No results",previousMatch:"Previous match (\u21E7Enter)",nextMatch:"Next match (Enter)",closeFind:"Close (Esc)",more:"More",fitWidth:"Fit width",fitPage:"Fit page",actualSize:"Actual size",reload:"Reload from disk",previousPage:"Previous page",nextPage:"Next page",pageNumber:"Page number",ofPages:e=>`of ${e}`,zoomIn:"Zoom in (\u2318+)",zoomOut:"Zoom out (\u2318\u2212)",fit:"Fit",addToChat:"Add to chat",addShort:"Add",addToChatHint:"Attach this to your next message (\u2318/Ctrl+Enter)",added:"Added to chat",ask:"Ask",askPlaceholder:"Ask about this\u2026",send:"Send",cancel:"Cancel",sendKey:"send",cancelKey:"cancel",copy:"Copy",copied:"Copied",agent:"Agent",agentOf:(e,t)=>`Agent \xB7 ${e} of ${t}`,nextTarget:"Next",moreOn:(e,t)=>e===1?`1 more on ${t}`:`${e} more`,close:"Close",changed:"This file changed on disk.",reloadShort:"Reload",dismiss:"Dismiss",openAnother:"Open another file",sidePanel:"Open in side panel",meta:{pdf:e=>e===1?"1 page":`${e} pages`,pptx:e=>e===1?"1 slide":`${e} slides`,xlsx:e=>e===1?"1 sheet":`${e} sheets`,docx:e=>""},errors:{generic:["Couldn\u2019t open this document",""],password:["This PDF is password protected",`${Fn.title.en} can\u2019t open encrypted files yet.`],not_found:["This file no longer exists","It may have been moved or deleted."],file_too_large:["This file is too large to open",""],corrupt_file:["This file appears to be damaged",`${Fn.title.en} couldn\u2019t read its contents.`],unsupported_type:["This kind of file isn\u2019t supported",`${Fn.title.en} opens ${Nd()} files.`],path_outside_workspace:["This file is outside the workspace",""]},sendFailed:"The message was not sent.",contextFailed:"ZCode did not accept the reference.",where:{page:e=>`Page ${e}`,pages:(e,t)=>`Pages ${e}\u2013${t}`,pageLower:e=>`page ${e}`,slide:e=>`Slide ${e}`,slides:(e,t)=>`Slides ${e}\u2013${t}`,slideLower:e=>`slide ${e}`,shape:e=>`Slide ${e} \xB7 Shape`,paragraph:e=>`Paragraph ${e}`,paragraphs:(e,t)=>`Paragraphs ${e}\u2013${t}`,paragraphLower:e=>`paragraph ${e}`,table:e=>`Table ${e}`,cell:(e,t,n)=>`Table ${e} \xB7 R${t}C${n}`}},Bfe={title:Fn.title["zh-CN"],openTitle:"\u6253\u5F00\u6587\u6863",openFile:"\u6253\u5F00\u6587\u4EF6",emptyTitle:`\u6253\u5F00\u4F60\u7684 ${Vo(OH,"zh-CN")} \u6587\u4EF6`,emptyDescription:`\u8FB9\u770B\u8FB9\u804A\uFF0C\u9009\u4E2D${NH.zh}\u5373\u53EF\u5E26\u5165\u5BF9\u8BDD\u3002`,emptyCaption:`\u9009\u62E9\u672C\u5730\u6587\u4EF6 \xB7 ${Nd("zh-CN","or")}`,importing:"\u6B63\u5728\u5BFC\u5165\u2026",importTooLarge:`\u8BF7\u9009\u62E9\u4E0D\u8D85\u8FC7 ${tb/1024/1024} MiB \u7684\u6587\u4EF6\u3002`,recent:"\u6700\u8FD1",switchDocument:"\u5207\u6362\u6587\u6863",pagesAndOutline:"\u9875\u9762\u4E0E\u76EE\u5F55",outlineOnly:"\u76EE\u5F55",pages:"\u9875\u9762",slides:"\u5E7B\u706F\u7247",outline:"\u76EE\u5F55",find:"\u67E5\u627E",findPlaceholder:"\u5728\u6587\u6863\u4E2D\u67E5\u627E",findCount:(e,t)=>`${e} / ${t}`,noResults:"\u65E0\u7ED3\u679C",previousMatch:"\u4E0A\u4E00\u4E2A\uFF08\u21E7Enter\uFF09",nextMatch:"\u4E0B\u4E00\u4E2A\uFF08Enter\uFF09",closeFind:"\u5173\u95ED\uFF08Esc\uFF09",more:"\u66F4\u591A",fitWidth:"\u9002\u5E94\u5BBD\u5EA6",fitPage:"\u9002\u5E94\u9875\u9762",actualSize:"\u5B9E\u9645\u5927\u5C0F",reload:"\u4ECE\u78C1\u76D8\u91CD\u65B0\u52A0\u8F7D",previousPage:"\u4E0A\u4E00\u9875",nextPage:"\u4E0B\u4E00\u9875",pageNumber:"\u9875\u7801",ofPages:e=>`/ ${e}`,zoomIn:"\u653E\u5927\uFF08\u2318+\uFF09",zoomOut:"\u7F29\u5C0F\uFF08\u2318\u2212\uFF09",fit:"\u9002\u5E94",addToChat:"\u6DFB\u52A0\u5230\u5BF9\u8BDD",addShort:"\u6DFB\u52A0",addToChatHint:"\u9644\u52A0\u5230\u4E0B\u4E00\u6761\u6D88\u606F\uFF08\u2318/Ctrl+Enter\uFF09",added:"\u5DF2\u6DFB\u52A0\u5230\u5BF9\u8BDD",ask:"\u63D0\u95EE",askPlaceholder:"\u5C31\u8FD9\u91CC\u63D0\u95EE\u2026",send:"\u53D1\u9001",cancel:"\u53D6\u6D88",sendKey:"\u53D1\u9001",cancelKey:"\u53D6\u6D88",copy:"\u590D\u5236",copied:"\u5DF2\u590D\u5236",agent:"Agent",agentOf:(e,t)=>`Agent \xB7 \u7B2C ${e} \u5904\uFF0C\u5171 ${t} \u5904`,nextTarget:"\u4E0B\u4E00\u5904",moreOn:(e,t)=>e===1?`${t}\u8FD8\u6709 1 \u5904`:`\u8FD8\u6709 ${e} \u5904`,close:"\u5173\u95ED",changed:"\u6587\u4EF6\u5DF2\u5728\u78C1\u76D8\u4E0A\u66F4\u6539\u3002",reloadShort:"\u91CD\u65B0\u52A0\u8F7D",dismiss:"\u5FFD\u7565",openAnother:"\u6253\u5F00\u5176\u4ED6\u6587\u4EF6",sidePanel:"\u5728\u4FA7\u680F\u6253\u5F00",meta:{pdf:e=>`${e} \u9875`,pptx:e=>`${e} \u5F20\u5E7B\u706F\u7247`,xlsx:e=>`${e} \u4E2A\u5DE5\u4F5C\u8868`,docx:()=>""},errors:{generic:["\u65E0\u6CD5\u6253\u5F00\u8BE5\u6587\u6863",""],password:["\u8BE5 PDF \u53D7\u5BC6\u7801\u4FDD\u62A4",`${lD}\u6682\u4E0D\u652F\u6301\u6253\u5F00\u52A0\u5BC6\u6587\u4EF6\u3002`],not_found:["\u8BE5\u6587\u4EF6\u5DF2\u4E0D\u5B58\u5728","\u5B83\u53EF\u80FD\u5DF2\u88AB\u79FB\u52A8\u6216\u5220\u9664\u3002"],file_too_large:["\u6587\u4EF6\u592A\u5927\uFF0C\u65E0\u6CD5\u6253\u5F00",""],corrupt_file:["\u8BE5\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F",`${lD}\u65E0\u6CD5\u8BFB\u53D6\u5176\u5185\u5BB9\u3002`],unsupported_type:["\u4E0D\u652F\u6301\u8FD9\u79CD\u6587\u4EF6",`${lD}\u53EF\u4EE5\u6253\u5F00 ${Nd("zh-CN")} \u6587\u4EF6\u3002`],path_outside_workspace:["\u8BE5\u6587\u4EF6\u4E0D\u5728\u5DE5\u4F5C\u533A\u5185",""]},sendFailed:"\u6D88\u606F\u672A\u53D1\u9001\u3002",contextFailed:"ZCode \u672A\u63A5\u53D7\u8BE5\u5F15\u7528\u3002",where:{page:e=>`\u7B2C ${e} \u9875`,pages:(e,t)=>`\u7B2C ${e}\u2013${t} \u9875`,pageLower:e=>`\u7B2C ${e} \u9875`,slide:e=>`\u7B2C ${e} \u5F20\u5E7B\u706F\u7247`,slides:(e,t)=>`\u7B2C ${e}\u2013${t} \u5F20\u5E7B\u706F\u7247`,slideLower:e=>`\u7B2C ${e} \u5F20\u5E7B\u706F\u7247`,shape:e=>`\u7B2C ${e} \u5F20\u5E7B\u706F\u7247 \xB7 \u5F62\u72B6`,paragraph:e=>`\u7B2C ${e} \u6BB5`,paragraphs:(e,t)=>`\u7B2C ${e}\u2013${t} \u6BB5`,paragraphLower:e=>`\u7B2C ${e} \u6BB5`,table:e=>`\u8868\u683C ${e}`,cell:(e,t,n)=>`\u8868\u683C ${e} \xB7 R${t}C${n}`}},PH=e=>e?.toLowerCase().startsWith("zh")?Bfe:Ufe;function hw(e,t,n=!1){let i=t.where,r;if(r=/^page:(\d+)(?:-(\d+))?$/.exec(e))return r[2]?i.pages(r[1],r[2]):n?i.pageLower(r[1]):i.page(r[1]);if(r=/^slide:(\d+)\/shape:/.exec(e))return i.shape(r[1]);if(r=/^slide:(\d+)(?:-(\d+))?$/.exec(e))return r[2]?i.slides(r[1],r[2]):n?i.slideLower(r[1]):i.slide(r[1]);if(r=/^p:(\d+)(?:-(\d+))?$/.exec(e))return r[2]?i.paragraphs(r[1],r[2]):n?i.paragraphLower(r[1]):i.paragraph(r[1]);if(r=/^t:(\d+)\/r(\d+)c(\d+)$/.exec(e))return i.cell(r[1],r[2],r[3]);if(r=/^t:(\d+)$/.exec(e))return i.table(r[1]);let o=e.lastIndexOf("!");return o>0?`${e.slice(0,o).replace(/^'(.*)'$/,"$1").replace(/''/g,"'")} \xB7 ${e.slice(o+1)}`:e.replace(/^'(.*)'$/,"$1")}var cD=Ln(zr(),1),Vfe={search:'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>',x:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',"chevron-up":'<path d="m18 15-6-6-6 6"/>',"chevron-down":'<path d="m6 9 6 6 6-6"/>',minus:'<path d="M5 12h14"/>',plus:'<path d="M5 12h14"/><path d="M12 5v14"/>',ellipsis:'<circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/>',"panel-left":'<rect width="18" height="18" x="3" y="3" rx="2"/><path d="M9 3v18"/>',"file-text":'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/>',copy:'<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',"message-square-plus":'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/><path d="M12 7v6"/><path d="M9 10h6"/>',"message-circle-question":'<path d="M7.9 20A9 9 0 1 0 4 16.1L2 22Z"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><path d="M12 17h.01"/>',check:'<path d="M20 6 9 17l-5-5"/>',"rotate-cw":'<path d="M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/>',"arrow-down":'<path d="M12 5v14"/><path d="m19 12-7 7-7-7"/>',"arrow-up":'<path d="m5 12 7-7 7 7"/><path d="M12 19V5"/>',"folder-open":'<path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"/>',"maximize-2":'<polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/>'};function rn({name:e,size:t=14,className:n}){return(0,cD.jsx)("svg",{className:`icon${n?` ${n}`:""}`,width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",dangerouslySetInnerHTML:{__html:Vfe[e]}})}var Hfe={pdf:"PDF",docx:"W",xlsx:"X",pptx:"P"};function FH({kind:e}){return(0,cD.jsx)("span",{className:`filetype ${e}`,"aria-hidden":"true",children:Hfe[e]})}var _l=Ln(oo(),1);var Tt=Ln(zr(),1);function Zfe({handle:e,page:t,width:n,ratio:i,current:r,onPick:o,root:a}){let s=(0,_l.useRef)(null);return(0,_l.useEffect)(()=>{let l=s.current;if(!l||!e.thumbnail)return;let c=!1,u=new IntersectionObserver(d=>{c||!d.some(f=>f.isIntersecting)||(c=!0,u.disconnect(),e.thumbnail(t,n).then(f=>{l.replaceChildren(f),l.style.height=""},()=>{}))},{root:a.current,rootMargin:"300px 0px"});return u.observe(l),()=>u.disconnect()},[e,t,n,a]),(0,Tt.jsxs)("button",{type:"button",className:`thumb${r?" on":""}`,"aria-current":r?"page":void 0,onClick:()=>o(t),"data-page":t,children:[(0,Tt.jsx)("div",{ref:s,className:"mini",style:{width:n,height:Math.round(n*i)}}),(0,Tt.jsx)("span",{children:t})]})}var qH=e=>/^(?:page|slide):(\d+)/.exec(e)?.[1]??"";function VH({t:e,info:t,handle:n,page:i,tab:r,docked:o,onTab:a,onPage:s,onOutline:l}){let c=(0,_l.useRef)(null),u=!!(n?.thumbnail&&i),d=t.outline.length>0,f=u&&(r==="pages"||!d)?"pages":"outline",h=t.kind==="pptx"?9/16:1.294;(0,_l.useEffect)(()=>{let g=c.current?.querySelector("[aria-current=page]");g&&c.current&&(c.current.scrollTop=g.offsetTop-c.current.clientHeight/3)},[f]);let p=(()=>{if(!i)return-1;let g=-1;return t.outline.forEach((v,m)=>{let y=Number(qH(v.at));y&&y<=i.current&&(g=m)}),g})();return(0,Tt.jsxs)("nav",{className:`drawer${o?" docked":""}`,"aria-label":e.pagesAndOutline,children:[u&&d?(0,Tt.jsxs)("div",{className:"seg",role:"tablist",children:[(0,Tt.jsx)("button",{type:"button",role:"tab","aria-selected":f==="pages",className:f==="pages"?"on":"",onClick:()=>a("pages"),children:t.kind==="pptx"?e.slides:e.pages}),(0,Tt.jsx)("button",{type:"button",role:"tab","aria-selected":f==="outline",className:f==="outline"?"on":"",onClick:()=>a("outline"),children:e.outline})]}):null,(0,Tt.jsx)("div",{ref:c,className:f==="pages"?"thumbs":"outline",children:f==="pages"&&n&&i?Array.from({length:i.count},(g,v)=>(0,Tt.jsx)(Zfe,{handle:n,page:v+1,width:136,ratio:h,current:i.current===v+1,onPick:s,root:c},v)):t.outline.map((g,v)=>(0,Tt.jsxs)("button",{type:"button",className:`oi level-${Math.min(3,Math.max(1,g.level))}${v===p?" on":""}`,"aria-current":v===p?"page":void 0,title:g.label,onClick:()=>l(g.at),children:[(0,Tt.jsx)("span",{className:"label",children:g.label}),(0,Tt.jsx)("span",{className:"n",children:qH(g.at)})]},`${g.at}-${v}`))})]})}function HH({t:e,onBrowse:t,importing:n}){return(0,Tt.jsx)("div",{className:"empty",children:(0,Tt.jsxs)("div",{className:"empty-content",children:[(0,Tt.jsx)("h3",{children:e.emptyTitle}),(0,Tt.jsx)("p",{className:"empty-description",children:e.emptyDescription}),(0,Tt.jsxs)("button",{type:"button",className:"btn empty-open",onClick:t,disabled:n,children:[(0,Tt.jsx)(rn,{name:"folder-open",size:16}),n?e.importing:e.openFile]}),(0,Tt.jsx)("p",{className:"empty-caption",children:e.emptyCaption})]})})}var Gfe=["title","subtitle","line","line","short","heading","line","line","line","mid","figure"];function pw({kind:e}){if(e==="xlsx")return(0,Tt.jsx)("div",{className:"skeleton sheet","aria-busy":"true",children:Array.from({length:18},(n,i)=>(0,Tt.jsx)("div",{className:"skel-row"},i))});let t=e==="pptx";return(0,Tt.jsx)("div",{className:"skeleton","aria-busy":"true",children:[0,1].map(n=>(0,Tt.jsxs)("div",{className:`skelpage${t?" slide":""}`,children:[n===0&&!t?Gfe.map((i,r)=>(0,Tt.jsx)("div",{className:`skel ${i}`},r)):null,n===0&&t?(0,Tt.jsxs)(Tt.Fragment,{children:[(0,Tt.jsx)("div",{className:"skel title left"}),(0,Tt.jsx)("div",{className:"skel line"}),(0,Tt.jsx)("div",{className:"skel mid"})]}):null]},n))})}function mw({t:e,title:t,detail:n,onOpenAnother:i}){return(0,Tt.jsxs)("div",{className:"failed",role:"alert",children:[(0,Tt.jsx)(rn,{name:"file-text",size:28,className:"subtlest"}),(0,Tt.jsxs)("div",{children:[(0,Tt.jsx)("h3",{children:t}),n?(0,Tt.jsx)("p",{children:n}):null]}),(0,Tt.jsx)("button",{type:"button",className:"btn secondary",onClick:i,children:e.openAnother})]})}function ZH({t:e,onReload:t,onDismiss:n}){return(0,Tt.jsxs)("div",{className:"banner",role:"status",children:[(0,Tt.jsx)("span",{children:e.changed}),(0,Tt.jsx)("button",{type:"button",className:"btn sm primary",onClick:t,children:e.reloadShort}),(0,Tt.jsx)("button",{type:"button",className:"btn icon sm dim",title:e.dismiss,"aria-label":e.dismiss,onClick:n,children:(0,Tt.jsx)(rn,{name:"x"})})]})}function Wfe({inputRef:e,t,importing:n,onImporting:i,onOpen:r,onError:o}){return(0,Tt.jsx)("input",{ref:e,type:"file",hidden:!0,accept:ka.map(a=>`.${a}`).join(","),disabled:n,onChange:async a=>{let s=a.currentTarget.files?.[0];if(a.currentTarget.value="",!!s){i(!0);try{if(s.size>tb)throw new Error(t.importTooLarge);r(await RH(s))}catch(l){o(l,s.name)}finally{i(!1)}}}})}function GH(e,t,n){let i=(0,_l.useRef)(null),[r,o]=(0,_l.useState)(!1);return{importing:r,browse:()=>i.current?.click(),input:(0,Tt.jsx)(Wfe,{inputRef:i,t:e,importing:r,onImporting:o,onOpen:t,onError:n})}}var dr=Ln(zr(),1);function WH({appRef:e,canvasRef:t,t:n,path:i,info:r,kind:o,showSkeleton:a,failure:s,nothing:l,onExpand:c,children:u}){return(0,dr.jsxs)("div",{ref:e,className:"app inline",children:[(0,dr.jsxs)("header",{className:"docbar",children:[(0,dr.jsxs)("div",{className:"doctitle static",title:i??void 0,children:[(0,dr.jsx)("span",{className:"name",children:i?Pd(i):n.title}),r&&n.meta[r.kind](r.units)?(0,dr.jsx)("span",{className:"meta",children:n.meta[r.kind](r.units)}):null]}),(0,dr.jsx)("span",{className:"spacer"}),(0,dr.jsxs)("button",{type:"button",className:"btn sm",title:n.sidePanel,onClick:c,children:[(0,dr.jsx)(rn,{name:"maximize-2",size:12}),n.sidePanel]})]}),(0,dr.jsx)("div",{className:"stage",children:(0,dr.jsxs)("div",{ref:t,className:"canvas",children:[u,a?(0,dr.jsx)(pw,{kind:o}):null,s?(0,dr.jsx)(mw,{t:n,title:s.title,detail:s.detail,onOpenAnother:c}):null,l?(0,dr.jsx)("div",{className:"failed muted",children:n.openTitle}):null,(0,dr.jsx)("button",{type:"button",className:"glance-cover","aria-label":n.sidePanel,onClick:c})]})})]})}var Yr=Ln(oo(),1);var gw=Ln(oo(),1),jd=8;function uD(e,t,n){let i=(0,gw.useRef)(null),{side:r,offset:o=8,dock:a=!1}=n;return(0,gw.useLayoutEffect)(()=>{let s=i.current,l=e.current;if(!s||!l)return;let c=0,u=()=>{c=0;let p=l.getBoundingClientRect(),g=s.offsetWidth,v=s.offsetHeight,m=t?.()??null,y=(w,z,A,M)=>{s.style.visibility="",s.style.left=`${Math.round(w)}px`,s.style.top=`${Math.round(z)}px`,s.dataset.side=A,s.style.setProperty("--tip",`${Math.round(Math.max(14,Math.min(g-14,M-w)))}px`)};if(!m){a?y((p.width-g)/2,jd,"none",p.width/2):s.style.visibility="hidden";return}if(m.bottom<p.top+4||m.top>p.bottom-4){s.style.visibility="hidden";return}let b=(m.left+m.right)/2-p.left,x=Math.max(jd,Math.min(p.width-g-jd,b-g/2)),_=m.top-p.top-v-o,S=m.bottom-p.top+o,$=_>=jd,C=S+v<=p.height-jd;(r==="top"||!C)&&$?y(x,_,"top",b):C?y(x,S,"bottom",b):y(x,r==="top"?jd:p.height-v-jd,"none",b)},d=()=>{c||(c=requestAnimationFrame(u))};u(),l.addEventListener("scroll",d,{capture:!0,passive:!0});let f=new ResizeObserver(d);f.observe(l),f.observe(s);let h=setInterval(d,250);return()=>{l.removeEventListener("scroll",d,{capture:!0}),f.disconnect(),clearInterval(h),c&&cancelAnimationFrame(c)}},[e,t,r,o,a]),i}var Pe=Ln(zr(),1);function dD({className:e,onClose:t,children:n,label:i}){let r=(0,Yr.useRef)(null);(0,Yr.useEffect)(()=>{let a=l=>{let c=l.target;!r.current?.contains(c)&&!c.closest?.("[data-menu-trigger]")&&t()},s=l=>{l.key==="Escape"&&(l.stopPropagation(),t())};return document.addEventListener("pointerdown",a,!0),document.addEventListener("keydown",s,!0),r.current?.querySelector("[role^=menuitem]")?.focus(),()=>{document.removeEventListener("pointerdown",a,!0),document.removeEventListener("keydown",s,!0)}},[t]);let o=a=>{if(a.key!=="ArrowDown"&&a.key!=="ArrowUp")return;a.preventDefault();let s=[...r.current?.querySelectorAll("[role^=menuitem]")??[]],l=s.indexOf(document.activeElement);s[(l+(a.key==="ArrowDown"?1:-1)+s.length)%s.length]?.focus()};return(0,Pe.jsx)("div",{ref:r,className:`menu ${e}`,role:"menu","aria-label":i,onKeyDown:o,children:n})}function Kc({icon:e,checked:t,children:n,hint:i,onSelect:r}){return(0,Pe.jsxs)("button",{type:"button",role:t===void 0?"menuitem":"menuitemradio","aria-checked":t,className:"mi",onClick:r,children:[(0,Pe.jsx)("span",{className:"mi-icon",children:t?(0,Pe.jsx)(rn,{name:"check",size:16}):e}),(0,Pe.jsx)("span",{className:"mi-label",children:n}),i?(0,Pe.jsx)("span",{className:"mi-hint",children:i}):null]})}function XH({t:e,query:t,total:n,index:i,onQuery:r,onStep:o,onClose:a}){let s=(0,Yr.useRef)(null);(0,Yr.useEffect)(()=>{s.current?.focus(),s.current?.select()},[]);let l=!t.trim()||n===null?"":n?e.findCount(i+1,n):e.noResults;return(0,Pe.jsxs)("div",{className:"docbar findbar",role:"search",children:[(0,Pe.jsxs)("label",{className:"findfield",children:[(0,Pe.jsx)(rn,{name:"search",className:"muted"}),(0,Pe.jsx)("input",{ref:s,className:"find-input",type:"text","aria-label":e.find,placeholder:e.findPlaceholder,value:t,onChange:c=>r(c.target.value),onKeyDown:c=>{c.key==="Enter"?(c.preventDefault(),o(c.shiftKey?-1:1)):c.key==="Escape"&&(c.preventDefault(),c.stopPropagation(),a())}}),(0,Pe.jsx)("span",{className:"count","aria-live":"polite",children:l})]}),(0,Pe.jsx)("button",{type:"button",className:"btn icon dim",title:e.previousMatch,"aria-label":e.previousMatch,disabled:!n,onClick:()=>o(-1),children:(0,Pe.jsx)(rn,{name:"chevron-up"})}),(0,Pe.jsx)("button",{type:"button",className:"btn icon dim",title:e.nextMatch,"aria-label":e.nextMatch,disabled:!n,onClick:()=>o(1),children:(0,Pe.jsx)(rn,{name:"chevron-down"})}),(0,Pe.jsx)("button",{type:"button",className:"btn icon dim",title:e.closeFind,"aria-label":e.closeFind,onClick:a,children:(0,Pe.jsx)(rn,{name:"x"})})]})}var Yfe=1500;function KH({t:e,frame:t,page:n,zoom:i,onPage:r,onZoom:o,onFit:a}){let s=(0,Yr.useRef)(null),[l,c]=(0,Yr.useState)(!0),[u,d]=(0,Yr.useState)(null),f=(0,Yr.useRef)(!1);(0,Yr.useEffect)(()=>{let p=t.current;if(!p)return;let g=0,v=()=>{clearTimeout(g),g=window.setTimeout(()=>{!f.current&&!s.current?.contains(document.activeElement)&&c(!1)},Yfe)},m=()=>{c(!0),v()},y=b=>{let x=p.getBoundingClientRect();b.clientY>x.bottom-80&&m()};return p.addEventListener("scroll",m,{capture:!0,passive:!0}),p.addEventListener("pointermove",y,{passive:!0}),v(),()=>{clearTimeout(g),p.removeEventListener("scroll",m,{capture:!0}),p.removeEventListener("pointermove",y)}},[t]);let h=()=>{let p=Number(u);d(null),Number.isInteger(p)&&p>=1&&r(Math.min(p,n.count))};return(0,Pe.jsxs)("div",{ref:s,className:`pill${l?"":" faded"}`,onPointerEnter:()=>{f.current=!0,c(!0)},onPointerLeave:()=>{f.current=!1},onFocus:()=>c(!0),children:[(0,Pe.jsx)("button",{type:"button",className:"btn icon sm dim",title:e.previousPage,"aria-label":e.previousPage,disabled:n.current<=1,onClick:()=>r(n.current-1),children:(0,Pe.jsx)(rn,{name:"chevron-up"})}),(0,Pe.jsxs)("span",{className:"pg",children:[(0,Pe.jsx)("input",{className:"pgin","aria-label":e.pageNumber,inputMode:"numeric",style:{width:`${Math.max(2,String(n.count).length)+1.6}ch`},value:u??String(n.current),onFocus:p=>{d(String(n.current)),p.target.select()},onChange:p=>d(p.target.value.replace(/\D/g,"")),onBlur:()=>d(null),onKeyDown:p=>{p.key==="Enter"?(h(),p.currentTarget.blur()):p.key==="Escape"&&(p.stopPropagation(),d(null),p.currentTarget.blur())}}),(0,Pe.jsx)("span",{children:e.ofPages(n.count)})]}),(0,Pe.jsx)("button",{type:"button",className:"btn icon sm dim",title:e.nextPage,"aria-label":e.nextPage,disabled:n.current>=n.count,onClick:()=>r(n.current+1),children:(0,Pe.jsx)(rn,{name:"chevron-down"})}),i?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("span",{className:"vsep"}),(0,Pe.jsx)("button",{type:"button",className:"btn icon sm dim",title:e.zoomOut,"aria-label":e.zoomOut,disabled:i.mode!=="width"&&i.percent<=25,onClick:()=>o(-1),children:(0,Pe.jsx)(rn,{name:"minus"})}),(0,Pe.jsx)("button",{type:"button",className:"zoom",title:e.fitWidth,onClick:a,children:i.mode==="width"?e.fit:`${i.percent}%`}),(0,Pe.jsx)("button",{type:"button",className:"btn icon sm dim",title:e.zoomIn,"aria-label":e.zoomIn,disabled:i.mode!=="width"&&i.percent>=400,onClick:()=>o(1),children:(0,Pe.jsx)(rn,{name:"plus"})})]}):null]})}var YH=e=>{e.target.closest("textarea")||e.preventDefault()};function JH({t:e,frame:t,locate:n,text:i,label:r,quote:o,short:a,mode:s,canAsk:l,copied:c,onAdd:u,onAsk:d,onCopy:f,onCancelAsk:h,onSend:p}){let g=s==="ask",v=uD(t,n,{side:g?"bottom":"top",dock:!0}),[m,y]=(0,Yr.useState)(""),[b,x]=(0,Yr.useState)(!1),_=async()=>{if(!m.trim()||b)return;x(!0);let S=await p(m.trim());x(!1),S&&y("")};return g?(0,Pe.jsxs)("div",{ref:v,className:"pop ask",role:"dialog","aria-label":e.ask,onMouseDown:YH,children:[(0,Pe.jsxs)("div",{className:"ctx",children:[(0,Pe.jsx)("span",{className:"where",children:r}),o?(0,Pe.jsxs)("span",{className:"q",children:["\u201C",o,"\u201D"]}):null]}),(0,Pe.jsx)("textarea",{autoFocus:!0,className:"textarea",rows:2,"aria-label":e.askPlaceholder,placeholder:e.askPlaceholder,value:m,onChange:S=>y(S.target.value),onKeyDown:S=>{S.key==="Enter"&&!S.shiftKey&&!S.nativeEvent.isComposing?(S.preventDefault(),_()):S.key==="Escape"&&(S.preventDefault(),S.stopPropagation(),h())}}),(0,Pe.jsxs)("div",{className:"row",children:[(0,Pe.jsxs)("span",{className:"hint",children:[(0,Pe.jsx)("kbd",{children:"\u21B5"})," ",e.sendKey]}),(0,Pe.jsx)("button",{type:"button",className:"btn sm",onClick:h,children:e.cancel}),(0,Pe.jsx)("button",{type:"button",className:"btn sm primary",disabled:!m.trim()||b,onClick:()=>void _(),children:e.send})]})]}):(0,Pe.jsxs)("div",{ref:v,className:"pop bar",role:"toolbar","aria-label":r,onMouseDown:YH,children:[i?null:(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("span",{className:"where",children:r}),(0,Pe.jsx)("span",{className:"vsep"})]}),(0,Pe.jsx)("button",{type:"button",className:"btn lg",title:e.addToChatHint,onClick:u,disabled:s==="added",children:s==="added"?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(rn,{name:"check",size:16,className:"ok"}),e.added]}):(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(rn,{name:"message-square-plus",size:16}),a?e.addShort:e.addToChat]})}),l?(0,Pe.jsxs)("button",{type:"button",className:"btn lg",onClick:d,children:[(0,Pe.jsx)(rn,{name:"message-circle-question",size:16}),e.ask]}):null,i?(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("span",{className:"vsep"}),(0,Pe.jsx)("button",{type:"button",className:"btn icon lg dim",title:c?e.copied:e.copy,"aria-label":c?e.copied:e.copy,onClick:f,children:(0,Pe.jsx)(rn,{name:c?"check":"copy"})})]}):null]})}function QH({t:e,frame:t,locate:n,note:i,index:r,total:o,onNext:a,onClose:s}){let l=uD(t,n,{side:"bottom",offset:6,dock:!0});return(0,Pe.jsxs)("div",{ref:l,className:"callout",role:"note",children:[(0,Pe.jsxs)("div",{className:"body",children:[(0,Pe.jsxs)("div",{className:"who",children:[(0,Pe.jsx)("span",{className:"dot"}),o>1?e.agentOf(r+1,o):e.agent]}),i?(0,Pe.jsx)("div",{className:"text",children:i}):null]}),o>1?(0,Pe.jsx)("button",{type:"button",className:"btn icon sm dim",title:e.nextTarget,"aria-label":e.nextTarget,onClick:a,children:(0,Pe.jsx)(rn,{name:"chevron-down"})}):null,(0,Pe.jsx)("button",{type:"button",className:"btn icon sm dim",title:e.close,"aria-label":e.close,onClick:s,children:(0,Pe.jsx)(rn,{name:"x"})})]})}function eZ({text:e,down:t,raised:n,onClick:i}){return(0,Pe.jsxs)("button",{type:"button",className:`chip offscreen${n?" raised":""}`,onClick:i,children:[(0,Pe.jsx)("span",{className:"dot"}),e,(0,Pe.jsx)(rn,{name:t?"arrow-down":"arrow-up",size:12})]})}function tZ(e,t){return e.moreOn(t.length,hw(t[0],e,!0))}var ii=Ln(zr(),1);function nZ({t:e,recent:t,currentPath:n,onOpen:i,onBrowse:r,onClose:o}){return(0,ii.jsxs)(dD,{className:"switcher",label:e.switchDocument,onClose:o,children:[t.length?(0,ii.jsx)("div",{className:"mlabel",children:e.recent}):null,t.map(a=>(0,ii.jsx)(Kc,{icon:(0,ii.jsx)(FH,{kind:a.kind}),hint:a.path===n?(0,ii.jsx)(rn,{name:"check",size:16}):Pd(IH(a.path)),onSelect:()=>a.path===n?o():i(a.path),children:Pd(a.path)},a.path)),t.length?(0,ii.jsx)("div",{className:"msep"}):null,(0,ii.jsx)(Kc,{icon:(0,ii.jsx)(rn,{name:"folder-open",size:16}),onSelect:r,children:e.openFile})]})}function iZ({t:e,zoomable:t,zoomMode:n,onFit:i,onFind:r,onReload:o,onClose:a}){return(0,ii.jsxs)(dD,{className:"more",label:e.more,onClose:a,children:[t?(0,ii.jsxs)(ii.Fragment,{children:[(0,ii.jsx)(Kc,{checked:n==="width",onSelect:()=>i("width"),children:e.fitWidth}),(0,ii.jsx)(Kc,{checked:n==="page",onSelect:()=>i("page"),children:e.fitPage}),(0,ii.jsx)(Kc,{checked:n==="actual",hint:"100%",onSelect:()=>i("actual"),children:e.actualSize}),(0,ii.jsx)("div",{className:"msep"})]}):null,(0,ii.jsx)(Kc,{icon:(0,ii.jsx)(rn,{name:"search",size:16}),hint:"\u2318F",onSelect:r,children:e.find}),(0,ii.jsx)(Kc,{icon:(0,ii.jsx)(rn,{name:"rotate-cw",size:16}),onSelect:o,children:e.reload})]})}var Ma=Ln(oo(),1),sb={open:!1,query:"",total:null,index:-1};function rZ({viewer:e,docRef:t,ready:n,onOpen:i}){let[r,o]=(0,Ma.useState)(sb),a=(0,Ma.useRef)(0),s=(0,Ma.useCallback)(()=>{t.current&&(i(),o(d=>({...d,open:!0})),requestAnimationFrame(()=>{let d=document.querySelector(".findbar .find-input");d?.focus(),d?.select()}))},[t,i]),l=(0,Ma.useCallback)(()=>{a.current++,e.current?.clearFind(),o(sb)},[e]),c=(0,Ma.useCallback)(d=>{o(f=>({...f,query:d,total:d.trim()?f.total:null}))},[]);(0,Ma.useEffect)(()=>{if(!r.open||!n)return;let d=++a.current,f=setTimeout(async()=>{let h=e.current;if(!h)return;let p=await h.find(r.query).catch(()=>0);d===a.current&&(o(g=>({...g,total:p,index:p?0:-1})),p&&h.findGo(0))},200);return()=>clearTimeout(f)},[r.open,r.query,n,e]);let u=(0,Ma.useCallback)(d=>{if(!r.total)return;let f=(r.index+d+r.total)%r.total;o(h=>({...h,index:f})),e.current?.findGo(f)},[r.total,r.index,e]);return{find:r,setFind:o,openFind:s,closeFind:l,queryFind:c,stepFind:u}}var oZ=Ln(oo(),1);function aZ(e,t){(0,oZ.useEffect)(()=>{Ho().handleTool("capture_view",async i=>{let r=e.current;if(!r||!t.current)throw new Error(`No document is open in the ${Fn.title.en} panel. Call open_document first.`);let o=null;if(typeof i.anchor=="string"&&i.anchor.trim()){let l=xH(i.anchor);if(l.path.replace(/^\.\//,"")!==r.info.path)throw new Error(`The panel shows ${r.info.path}, not ${l.path}. Call open_document with that path first.`);o=l.at}let a=typeof i.maxWidth=="number"?Math.min(2e3,Math.max(320,i.maxWidth)):1600,s=await t.current.capture(o,a);return{content:[{type:"image",data:s.data,mimeType:"image/png"},{type:"text",text:`Captured ${ib(r.info.path,s.at)} (${s.width}\xD7${s.height} px).`}]}})},[e,t])}var vw=Ln(oo(),1);function sZ(e,t){let[n,i]=(0,vw.useState)(null);return(0,vw.useEffect)(()=>{let r=e.current;if(!r||!t||t.targets.length<2){i(null);return}let o=0,a=()=>{o=0;let c=r.getBoundingClientRect(),u=[],d=[];t.targets.forEach((h,p)=>{if(p===t.index)return;let g=h.locate();g&&(g.top>c.bottom-8?u.push(p):g.bottom<c.top+8&&d.push(p))});let f=u.length?{indexes:u,down:!0}:d.length?{indexes:d,down:!1}:null;i(h=>JSON.stringify(h)===JSON.stringify(f)?h:f)},s=()=>{o||(o=requestAnimationFrame(a))};a(),r.addEventListener("scroll",s,{capture:!0,passive:!0});let l=setInterval(s,500);return()=>{r.removeEventListener("scroll",s,{capture:!0}),clearInterval(l),o&&cancelAnimationFrame(o)}},[t,e]),[n,i]}var lZ=Ln(oo(),1);function cZ({docRef:e,viewer:t,picked:n,addReference:i,openFind:r,closeFind:o,clearSelection:a,paged:s,page:l,goToPage:c,drawer:u,setDrawer:d,docked:f,find:h,agent:p,setAgent:g}){(0,lZ.useEffect)(()=>{let v=m=>{if(m.defaultPrevented)return;let y=m.metaKey||m.ctrlKey,b=m.target?.closest?.("input, textarea, [contenteditable]"),x=m.key.toLowerCase();if(y&&x==="f"&&e.current)m.preventDefault(),r();else if(y&&m.key==="Enter"&&n)m.preventDefault(),i();else if(y&&(m.key==="="||m.key==="+"))m.preventDefault(),t.current?.zoom(1);else if(y&&m.key==="-")m.preventDefault(),t.current?.zoom(-1);else if(y&&m.key==="0")m.preventDefault(),t.current?.fit("width");else if(!y&&!b&&s&&l&&["ArrowLeft","ArrowRight","PageUp","PageDown"].includes(m.key)){m.preventDefault();let _=m.key==="ArrowLeft"||m.key==="PageUp";c(l.current+(_?-1:1))}else if(m.key==="Escape"&&!b){if(n)a();else if(u.open&&!f)d(_=>({..._,open:!1}));else if(h.open)o();else if(p?.visible)g({...p,visible:!1});else return;m.preventDefault()}};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[n,i,r,o,a,s,l,c,u.open,f,h.open,p,e,t,d,g])}var Hn=Ln(oo(),1);var kIe={},yw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xfe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function bw(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var uZ={exports:{}};var dZ;function Kfe(){return dZ||(dZ=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(i,r,o){function a(c,u){if(!r[c]){if(!i[c]){var d=typeof bw=="function"&&bw;if(!u&&d)return d(c,!0);if(s)return s(c,!0);var f=new Error("Cannot find module '"+c+"'");throw f.code="MODULE_NOT_FOUND",f}var h=r[c]={exports:{}};i[c][0].call(h.exports,function(p){var g=i[c][1][p];return a(g||p)},h,h.exports,n,i,r,o)}return r[c].exports}for(var s=typeof bw=="function"&&bw,l=0;l<o.length;l++)a(o[l]);return a})({1:[function(n,i,r){var o=n("./utils"),a=n("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(l){for(var c,u,d,f,h,p,g,v=[],m=0,y=l.length,b=y,x=o.getTypeOf(l)!=="string";m<l.length;)b=y-m,d=x?(c=l[m++],u=m<y?l[m++]:0,m<y?l[m++]:0):(c=l.charCodeAt(m++),u=m<y?l.charCodeAt(m++):0,m<y?l.charCodeAt(m++):0),f=c>>2,h=(3&c)<<4|u>>4,p=1<b?(15&u)<<2|d>>6:64,g=2<b?63&d:64,v.push(s.charAt(f)+s.charAt(h)+s.charAt(p)+s.charAt(g));return v.join("")},r.decode=function(l){var c,u,d,f,h,p,g=0,v=0,m="data:";if(l.substr(0,m.length)===m)throw new Error("Invalid base64 input, it looks like a data url.");var y,b=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===s.charAt(64)&&b--,l.charAt(l.length-2)===s.charAt(64)&&b--,b%1!=0)throw new Error("Invalid base64 input, bad content length.");for(y=a.uint8array?new Uint8Array(0|b):new Array(0|b);g<l.length;)c=s.indexOf(l.charAt(g++))<<2|(f=s.indexOf(l.charAt(g++)))>>4,u=(15&f)<<4|(h=s.indexOf(l.charAt(g++)))>>2,d=(3&h)<<6|(p=s.indexOf(l.charAt(g++))),y[v++]=c,h!==64&&(y[v++]=u),p!==64&&(y[v++]=d);return y}},{"./support":30,"./utils":32}],2:[function(n,i,r){var o=n("./external"),a=n("./stream/DataWorker"),s=n("./stream/Crc32Probe"),l=n("./stream/DataLengthProbe");function c(u,d,f,h,p){this.compressedSize=u,this.uncompressedSize=d,this.crc32=f,this.compression=h,this.compressedContent=p}c.prototype={getContentWorker:function(){var u=new a(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),d=this;return u.on("end",function(){if(this.streamInfo.data_length!==d.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),u},getCompressedWorker:function(){return new a(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(u,d,f){return u.pipe(new s).pipe(new l("uncompressedSize")).pipe(d.compressWorker(f)).pipe(new l("compressedSize")).withStreamInfo("compression",d)},i.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,i,r){var o=n("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},r.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,i,r){var o=n("./utils"),a=(function(){for(var s,l=[],c=0;c<256;c++){s=c;for(var u=0;u<8;u++)s=1&s?3988292384^s>>>1:s>>>1;l[c]=s}return l})();i.exports=function(s,l){return s!==void 0&&s.length?o.getTypeOf(s)!=="string"?(function(c,u,d,f){var h=a,p=f+d;c^=-1;for(var g=f;g<p;g++)c=c>>>8^h[255&(c^u[g])];return-1^c})(0|l,s,s.length,0):(function(c,u,d,f){var h=a,p=f+d;c^=-1;for(var g=f;g<p;g++)c=c>>>8^h[255&(c^u.charCodeAt(g))];return-1^c})(0|l,s,s.length,0):0}},{"./utils":32}],5:[function(n,i,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(n,i,r){var o=null;o=typeof Promise<"u"?Promise:n("lie"),i.exports={Promise:o}},{lie:37}],7:[function(n,i,r){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=n("pako"),s=n("./utils"),l=n("./stream/GenericWorker"),c=o?"uint8array":"array";function u(d,f){l.call(this,"FlateWorker/"+d),this._pako=null,this._pakoAction=d,this._pakoOptions=f,this.meta={}}r.magic="\b\0",s.inherits(u,l),u.prototype.processChunk=function(d){this.meta=d.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(c,d.data),!1)},u.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var d=this;this._pako.onData=function(f){d.push({data:f,meta:d.meta})}},r.compressWorker=function(d){return new u("Deflate",d)},r.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,i,r){function o(h,p){var g,v="";for(g=0;g<p;g++)v+=String.fromCharCode(255&h),h>>>=8;return v}function a(h,p,g,v,m,y){var b,x,_=h.file,S=h.compression,$=y!==c.utf8encode,C=s.transformTo("string",y(_.name)),w=s.transformTo("string",c.utf8encode(_.name)),z=_.comment,A=s.transformTo("string",y(z)),M=s.transformTo("string",c.utf8encode(z)),T=w.length!==_.name.length,k=M.length!==z.length,I="",D="",E="",N=_.dir,F=_.date,G={crc32:0,compressedSize:0,uncompressedSize:0};p&&!g||(G.crc32=h.crc32,G.compressedSize=h.compressedSize,G.uncompressedSize=h.uncompressedSize);var P=0;p&&(P|=8),$||!T&&!k||(P|=2048);var O=0,V=0;N&&(O|=16),m==="UNIX"?(V=798,O|=(function(H,Q){var le=H;return H||(le=Q?16893:33204),(65535&le)<<16})(_.unixPermissions,N)):(V=20,O|=(function(H){return 63&(H||0)})(_.dosPermissions)),b=F.getUTCHours(),b<<=6,b|=F.getUTCMinutes(),b<<=5,b|=F.getUTCSeconds()/2,x=F.getUTCFullYear()-1980,x<<=4,x|=F.getUTCMonth()+1,x<<=5,x|=F.getUTCDate(),T&&(D=o(1,1)+o(u(C),4)+w,I+="up"+o(D.length,2)+D),k&&(E=o(1,1)+o(u(A),4)+M,I+="uc"+o(E.length,2)+E);var j="";return j+=`
\0`,j+=o(P,2),j+=S.magic,j+=o(b,2),j+=o(x,2),j+=o(G.crc32,4),j+=o(G.compressedSize,4),j+=o(G.uncompressedSize,4),j+=o(C.length,2),j+=o(I.length,2),{fileRecord:d.LOCAL_FILE_HEADER+j+C+I,dirRecord:d.CENTRAL_FILE_HEADER+o(V,2)+j+o(A.length,2)+"\0\0\0\0"+o(O,4)+o(v,4)+C+I+A}}var s=n("../utils"),l=n("../stream/GenericWorker"),c=n("../utf8"),u=n("../crc32"),d=n("../signature");function f(h,p,g,v){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=g,this.encodeFileName=v,this.streamFiles=h,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(f,l),f.prototype.push=function(h){var p=h.meta.percent||0,g=this.entriesCount,v=this._sources.length;this.accumulate?this.contentBuffer.push(h):(this.bytesWritten+=h.data.length,l.prototype.push.call(this,{data:h.data,meta:{currentFile:this.currentFile,percent:g?(p+100*(g-v-1))/g:100}}))},f.prototype.openedSource=function(h){this.currentSourceOffset=this.bytesWritten,this.currentFile=h.file.name;var p=this.streamFiles&&!h.file.dir;if(p){var g=a(h,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(h){this.accumulate=!1;var p=this.streamFiles&&!h.file.dir,g=a(h,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),p)this.push({data:(function(v){return d.DATA_DESCRIPTOR+o(v.crc32,4)+o(v.compressedSize,4)+o(v.uncompressedSize,4)})(h),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var h=this.bytesWritten,p=0;p<this.dirRecords.length;p++)this.push({data:this.dirRecords[p],meta:{percent:100}});var g=this.bytesWritten-h,v=(function(m,y,b,x,_){var S=s.transformTo("string",_(x));return d.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(m,2)+o(m,2)+o(y,4)+o(b,4)+o(S.length,2)+S})(this.dirRecords.length,g,h,this.zipComment,this.encodeFileName);this.push({data:v,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(h){this._sources.push(h);var p=this;return h.on("data",function(g){p.processChunk(g)}),h.on("end",function(){p.closedSource(p.previous.streamInfo),p._sources.length?p.prepareNextSource():p.end()}),h.on("error",function(g){p.error(g)}),this},f.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(h){var p=this._sources;if(!l.prototype.error.call(this,h))return!1;for(var g=0;g<p.length;g++)try{p[g].error(h)}catch{}return!0},f.prototype.lock=function(){l.prototype.lock.call(this);for(var h=this._sources,p=0;p<h.length;p++)h[p].lock()},i.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,i,r){var o=n("../compressions"),a=n("./ZipFileWorker");r.generateWorker=function(s,l,c){var u=new a(l.streamFiles,c,l.platform,l.encodeFileName),d=0;try{s.forEach(function(f,h){d++;var p=(function(y,b){var x=y||b,_=o[x];if(!_)throw new Error(x+" is not a valid compression method !");return _})(h.options.compression,l.compression),g=h.options.compressionOptions||l.compressionOptions||{},v=h.dir,m=h.date;h._compressWorker(p,g).withStreamInfo("file",{name:f,dir:v,date:m,comment:h.comment||"",unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions}).pipe(u)}),u.entriesCount=d}catch(f){u.error(f)}return u}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,i,r){function o(){if(!(this instanceof o))return new o;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new o;for(var s in this)typeof this[s]!="function"&&(a[s]=this[s]);return a}}(o.prototype=n("./object")).loadAsync=n("./load"),o.support=n("./support"),o.defaults=n("./defaults"),o.version="3.10.1",o.loadAsync=function(a,s){return new o().loadAsync(a,s)},o.external=n("./external"),i.exports=o},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,i,r){var o=n("./utils"),a=n("./external"),s=n("./utf8"),l=n("./zipEntries"),c=n("./stream/Crc32Probe"),u=n("./nodejsUtils");function d(f){return new a.Promise(function(h,p){var g=f.decompressed.getContentWorker().pipe(new c);g.on("error",function(v){p(v)}).on("end",function(){g.streamInfo.crc32!==f.decompressed.crc32?p(new Error("Corrupted zip : CRC32 mismatch")):h()}).resume()})}i.exports=function(f,h){var p=this;return h=o.extend(h||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),u.isNode&&u.isStream(f)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):o.prepareContent("the loaded zip file",f,!0,h.optimizedBinaryString,h.base64).then(function(g){var v=new l(h);return v.load(g),v}).then(function(g){var v=[a.Promise.resolve(g)],m=g.files;if(h.checkCRC32)for(var y=0;y<m.length;y++)v.push(d(m[y]));return a.Promise.all(v)}).then(function(g){for(var v=g.shift(),m=v.files,y=0;y<m.length;y++){var b=m[y],x=b.fileNameStr,_=o.resolve(b.fileNameStr);p.file(_,b.decompressed,{binary:!0,optimizedBinaryString:!0,date:b.date,dir:b.dir,comment:b.fileCommentStr.length?b.fileCommentStr:null,unixPermissions:b.unixPermissions,dosPermissions:b.dosPermissions,createFolders:h.createFolders}),b.dir||(p.file(_).unsafeOriginalName=x)}return v.zipComment.length&&(p.comment=v.zipComment),p})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,i,r){var o=n("../utils"),a=n("../stream/GenericWorker");function s(l,c){a.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(c)}o.inherits(s,a),s.prototype._bindStream=function(l){var c=this;(this._stream=l).pause(),l.on("data",function(u){c.push({data:u,meta:{percent:0}})}).on("error",function(u){c.isPaused?this.generatedError=u:c.error(u)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},s.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},i.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,i,r){var o=n("readable-stream").Readable;function a(s,l,c){o.call(this,l),this._helper=s;var u=this;s.on("data",function(d,f){u.push(d)||u._helper.pause(),c&&c(f)}).on("error",function(d){u.emit("error",d)}).on("end",function(){u.push(null)})}n("../utils").inherits(a,o),a.prototype._read=function(){this._helper.resume()},i.exports=a},{"../utils":32,"readable-stream":16}],14:[function(n,i,r){i.exports={isNode:typeof Buffer<"u",newBufferFrom:function(o,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(o,a);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new Buffer(o,a)},allocBuffer:function(o){if(Buffer.alloc)return Buffer.alloc(o);var a=new Buffer(o);return a.fill(0),a},isBuffer:function(o){return Buffer.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(n,i,r){function o(_,S,$){var C,w=s.getTypeOf(S),z=s.extend($||{},u);z.date=z.date||new Date,z.compression!==null&&(z.compression=z.compression.toUpperCase()),typeof z.unixPermissions=="string"&&(z.unixPermissions=parseInt(z.unixPermissions,8)),z.unixPermissions&&16384&z.unixPermissions&&(z.dir=!0),z.dosPermissions&&16&z.dosPermissions&&(z.dir=!0),z.dir&&(_=m(_)),z.createFolders&&(C=v(_))&&y.call(this,C,!0);var A=w==="string"&&z.binary===!1&&z.base64===!1;$&&$.binary!==void 0||(z.binary=!A),(S instanceof d&&S.uncompressedSize===0||z.dir||!S||S.length===0)&&(z.base64=!1,z.binary=!0,S="",z.compression="STORE",w="string");var M=null;M=S instanceof d||S instanceof l?S:p.isNode&&p.isStream(S)?new g(_,S):s.prepareContent(_,S,z.binary,z.optimizedBinaryString,z.base64);var T=new f(_,M,z);this.files[_]=T}var a=n("./utf8"),s=n("./utils"),l=n("./stream/GenericWorker"),c=n("./stream/StreamHelper"),u=n("./defaults"),d=n("./compressedObject"),f=n("./zipObject"),h=n("./generate"),p=n("./nodejsUtils"),g=n("./nodejs/NodejsStreamInputAdapter"),v=function(_){_.slice(-1)==="/"&&(_=_.substring(0,_.length-1));var S=_.lastIndexOf("/");return 0<S?_.substring(0,S):""},m=function(_){return _.slice(-1)!=="/"&&(_+="/"),_},y=function(_,S){return S=S!==void 0?S:u.createFolders,_=m(_),this.files[_]||o.call(this,_,null,{dir:!0,createFolders:S}),this.files[_]};function b(_){return Object.prototype.toString.call(_)==="[object RegExp]"}var x={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(_){var S,$,C;for(S in this.files)C=this.files[S],($=S.slice(this.root.length,S.length))&&S.slice(0,this.root.length)===this.root&&_($,C)},filter:function(_){var S=[];return this.forEach(function($,C){_($,C)&&S.push(C)}),S},file:function(_,S,$){if(arguments.length!==1)return _=this.root+_,o.call(this,_,S,$),this;if(b(_)){var C=_;return this.filter(function(z,A){return!A.dir&&C.test(z)})}var w=this.files[this.root+_];return w&&!w.dir?w:null},folder:function(_){if(!_)return this;if(b(_))return this.filter(function(w,z){return z.dir&&_.test(w)});var S=this.root+_,$=y.call(this,S),C=this.clone();return C.root=$.name,C},remove:function(_){_=this.root+_;var S=this.files[_];if(S||(_.slice(-1)!=="/"&&(_+="/"),S=this.files[_]),S&&!S.dir)delete this.files[_];else for(var $=this.filter(function(w,z){return z.name.slice(0,_.length)===_}),C=0;C<$.length;C++)delete this.files[$[C].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(_){var S,$={};try{if(($=s.extend(_||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=$.type.toLowerCase(),$.compression=$.compression.toUpperCase(),$.type==="binarystring"&&($.type="string"),!$.type)throw new Error("No output type specified.");s.checkSupport($.type),$.platform!=="darwin"&&$.platform!=="freebsd"&&$.platform!=="linux"&&$.platform!=="sunos"||($.platform="UNIX"),$.platform==="win32"&&($.platform="DOS");var C=$.comment||this.comment||"";S=h.generateWorker(this,$,C)}catch(w){(S=new l("error")).error(w)}return new c(S,$.type||"string",$.mimeType)},generateAsync:function(_,S){return this.generateInternalStream(_).accumulate(S)},generateNodeStream:function(_,S){return(_=_||{}).type||(_.type="nodebuffer"),this.generateInternalStream(_).toNodejsStream(S)}};i.exports=x},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,i,r){i.exports=n("stream")},{stream:void 0}],17:[function(n,i,r){var o=n("./DataReader");function a(s){o.call(this,s);for(var l=0;l<this.data.length;l++)s[l]=255&s[l]}n("../utils").inherits(a,o),a.prototype.byteAt=function(s){return this.data[this.zero+s]},a.prototype.lastIndexOfSignature=function(s){for(var l=s.charCodeAt(0),c=s.charCodeAt(1),u=s.charCodeAt(2),d=s.charCodeAt(3),f=this.length-4;0<=f;--f)if(this.data[f]===l&&this.data[f+1]===c&&this.data[f+2]===u&&this.data[f+3]===d)return f-this.zero;return-1},a.prototype.readAndCheckSignature=function(s){var l=s.charCodeAt(0),c=s.charCodeAt(1),u=s.charCodeAt(2),d=s.charCodeAt(3),f=this.readData(4);return l===f[0]&&c===f[1]&&u===f[2]&&d===f[3]},a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},i.exports=a},{"../utils":32,"./DataReader":18}],18:[function(n,i,r){var o=n("../utils");function a(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var l,c=0;for(this.checkOffset(s),l=this.index+s-1;l>=this.index;l--)c=(c<<8)+this.byteAt(l);return this.index+=s,c},readString:function(s){return o.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},i.exports=a},{"../utils":32}],19:[function(n,i,r){var o=n("./Uint8ArrayReader");function a(s){o.call(this,s)}n("../utils").inherits(a,o),a.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},i.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,i,r){var o=n("./DataReader");function a(s){o.call(this,s)}n("../utils").inherits(a,o),a.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},a.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},a.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},a.prototype.readData=function(s){this.checkOffset(s);var l=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},i.exports=a},{"../utils":32,"./DataReader":18}],21:[function(n,i,r){var o=n("./ArrayReader");function a(s){o.call(this,s)}n("../utils").inherits(a,o),a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,l},i.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(n,i,r){var o=n("../utils"),a=n("../support"),s=n("./ArrayReader"),l=n("./StringReader"),c=n("./NodeBufferReader"),u=n("./Uint8ArrayReader");i.exports=function(d){var f=o.getTypeOf(d);return o.checkSupport(f),f!=="string"||a.uint8array?f==="nodebuffer"?new c(d):a.uint8array?new u(o.transformTo("uint8array",d)):new s(o.transformTo("array",d)):new l(d)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,i,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,i,r){var o=n("./GenericWorker"),a=n("../utils");function s(l){o.call(this,"ConvertWorker to "+l),this.destType=l}a.inherits(s,o),s.prototype.processChunk=function(l){this.push({data:a.transformTo(this.destType,l.data),meta:l.meta})},i.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(n,i,r){var o=n("./GenericWorker"),a=n("../crc32");function s(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(s,o),s.prototype.processChunk=function(l){this.streamInfo.crc32=a(l.data,this.streamInfo.crc32||0),this.push(l)},i.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,i,r){var o=n("../utils"),a=n("./GenericWorker");function s(l){a.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}o.inherits(s,a),s.prototype.processChunk=function(l){if(l){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+l.data.length}a.prototype.processChunk.call(this,l)},i.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(n,i,r){var o=n("../utils"),a=n("./GenericWorker");function s(l){a.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(u){c.dataIsReady=!0,c.data=u,c.max=u&&u.length||0,c.type=o.getTypeOf(u),c.isPaused||c._tickAndRepeat()},function(u){c.error(u)})}o.inherits(s,a),s.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,c);break;case"uint8array":l=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":l=this.data.slice(this.index,c)}return this.index=c,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(n,i,r){function o(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}o.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,s){return this._listeners[a].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,s){if(this._listeners[a])for(var l=0;l<this._listeners[a].length;l++)this._listeners[a][l].call(this,s)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var s=this;return a.on("data",function(l){s.processChunk(l)}),a.on("end",function(){s.end()}),a.on("error",function(l){s.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,s){return this.extraStreamInfo[a]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},i.exports=o},{}],29:[function(n,i,r){var o=n("../utils"),a=n("./ConvertWorker"),s=n("./GenericWorker"),l=n("../base64"),c=n("../support"),u=n("../external"),d=null;if(c.nodestream)try{d=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(p,g){return new u.Promise(function(v,m){var y=[],b=p._internalType,x=p._outputType,_=p._mimeType;p.on("data",function(S,$){y.push(S),g&&g($)}).on("error",function(S){y=[],m(S)}).on("end",function(){try{var S=(function($,C,w){switch($){case"blob":return o.newBlob(o.transformTo("arraybuffer",C),w);case"base64":return l.encode(C);default:return o.transformTo($,C)}})(x,(function($,C){var w,z=0,A=null,M=0;for(w=0;w<C.length;w++)M+=C[w].length;switch($){case"string":return C.join("");case"array":return Array.prototype.concat.apply([],C);case"uint8array":for(A=new Uint8Array(M),w=0;w<C.length;w++)A.set(C[w],z),z+=C[w].length;return A;case"nodebuffer":return Buffer.concat(C);default:throw new Error("concat : unsupported type '"+$+"'")}})(b,y),_);v(S)}catch($){m($)}y=[]}).resume()})}function h(p,g,v){var m=g;switch(g){case"blob":case"arraybuffer":m="uint8array";break;case"base64":m="string"}try{this._internalType=m,this._outputType=g,this._mimeType=v,o.checkSupport(m),this._worker=p.pipe(new a(m)),p.lock()}catch(y){this._worker=new s("error"),this._worker.error(y)}}h.prototype={accumulate:function(p){return f(this,p)},on:function(p,g){var v=this;return p==="data"?this._worker.on(p,function(m){g.call(v,m.data,m.meta)}):this._worker.on(p,function(){o.delay(g,arguments,v)}),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(p){if(o.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new d(this,{objectMode:this._outputType!=="nodebuffer"},p)}},i.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,i,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",r.nodebuffer=typeof Buffer<"u",r.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")r.blob=!1;else{var o=new ArrayBuffer(0);try{r.blob=new Blob([o],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(o),r.blob=a.getBlob("application/zip").size===0}catch{r.blob=!1}}}try{r.nodestream=!!n("readable-stream").Readable}catch{r.nodestream=!1}},{"readable-stream":16}],31:[function(n,i,r){for(var o=n("./utils"),a=n("./support"),s=n("./nodejsUtils"),l=n("./stream/GenericWorker"),c=new Array(256),u=0;u<256;u++)c[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;c[254]=c[254]=1;function d(){l.call(this,"utf-8 decode"),this.leftOver=null}function f(){l.call(this,"utf-8 encode")}r.utf8encode=function(h){return a.nodebuffer?s.newBufferFrom(h,"utf-8"):(function(p){var g,v,m,y,b,x=p.length,_=0;for(y=0;y<x;y++)(64512&(v=p.charCodeAt(y)))==55296&&y+1<x&&(64512&(m=p.charCodeAt(y+1)))==56320&&(v=65536+(v-55296<<10)+(m-56320),y++),_+=v<128?1:v<2048?2:v<65536?3:4;for(g=a.uint8array?new Uint8Array(_):new Array(_),y=b=0;b<_;y++)(64512&(v=p.charCodeAt(y)))==55296&&y+1<x&&(64512&(m=p.charCodeAt(y+1)))==56320&&(v=65536+(v-55296<<10)+(m-56320),y++),v<128?g[b++]=v:(v<2048?g[b++]=192|v>>>6:(v<65536?g[b++]=224|v>>>12:(g[b++]=240|v>>>18,g[b++]=128|v>>>12&63),g[b++]=128|v>>>6&63),g[b++]=128|63&v);return g})(h)},r.utf8decode=function(h){return a.nodebuffer?o.transformTo("nodebuffer",h).toString("utf-8"):(function(p){var g,v,m,y,b=p.length,x=new Array(2*b);for(g=v=0;g<b;)if((m=p[g++])<128)x[v++]=m;else if(4<(y=c[m]))x[v++]=65533,g+=y-1;else{for(m&=y===2?31:y===3?15:7;1<y&&g<b;)m=m<<6|63&p[g++],y--;1<y?x[v++]=65533:m<65536?x[v++]=m:(m-=65536,x[v++]=55296|m>>10&1023,x[v++]=56320|1023&m)}return x.length!==v&&(x.subarray?x=x.subarray(0,v):x.length=v),o.applyFromCharCode(x)})(h=o.transformTo(a.uint8array?"uint8array":"array",h))},o.inherits(d,l),d.prototype.processChunk=function(h){var p=o.transformTo(a.uint8array?"uint8array":"array",h.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var g=p;(p=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),p.set(g,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var v=(function(y,b){var x;for((b=b||y.length)>y.length&&(b=y.length),x=b-1;0<=x&&(192&y[x])==128;)x--;return x<0||x===0?b:x+c[y[x]]>b?x:b})(p),m=p;v!==p.length&&(a.uint8array?(m=p.subarray(0,v),this.leftOver=p.subarray(v,p.length)):(m=p.slice(0,v),this.leftOver=p.slice(v,p.length))),this.push({data:r.utf8decode(m),meta:h.meta})},d.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=d,o.inherits(f,l),f.prototype.processChunk=function(h){this.push({data:r.utf8encode(h.data),meta:h.meta})},r.Utf8EncodeWorker=f},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,i,r){var o=n("./support"),a=n("./base64"),s=n("./nodejsUtils"),l=n("./external");function c(g){return g}function u(g,v){for(var m=0;m<g.length;++m)v[m]=255&g.charCodeAt(m);return v}n("setimmediate"),r.newBlob=function(g,v){r.checkSupport("blob");try{return new Blob([g],{type:v})}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return m.append(g),m.getBlob(v)}catch{throw new Error("Bug : can't construct the Blob.")}}};var d={stringifyByChunk:function(g,v,m){var y=[],b=0,x=g.length;if(x<=m)return String.fromCharCode.apply(null,g);for(;b<x;)v==="array"||v==="nodebuffer"?y.push(String.fromCharCode.apply(null,g.slice(b,Math.min(b+m,x)))):y.push(String.fromCharCode.apply(null,g.subarray(b,Math.min(b+m,x)))),b+=m;return y.join("")},stringifyByChar:function(g){for(var v="",m=0;m<g.length;m++)v+=String.fromCharCode(g[m]);return v},applyCanBeUsed:{uint8array:(function(){try{return o.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return o.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}})()}};function f(g){var v=65536,m=r.getTypeOf(g),y=!0;if(m==="uint8array"?y=d.applyCanBeUsed.uint8array:m==="nodebuffer"&&(y=d.applyCanBeUsed.nodebuffer),y)for(;1<v;)try{return d.stringifyByChunk(g,m,v)}catch{v=Math.floor(v/2)}return d.stringifyByChar(g)}function h(g,v){for(var m=0;m<g.length;m++)v[m]=g[m];return v}r.applyFromCharCode=f;var p={};p.string={string:c,array:function(g){return u(g,new Array(g.length))},arraybuffer:function(g){return p.string.uint8array(g).buffer},uint8array:function(g){return u(g,new Uint8Array(g.length))},nodebuffer:function(g){return u(g,s.allocBuffer(g.length))}},p.array={string:f,array:c,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return s.newBufferFrom(g)}},p.arraybuffer={string:function(g){return f(new Uint8Array(g))},array:function(g){return h(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:c,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return s.newBufferFrom(new Uint8Array(g))}},p.uint8array={string:f,array:function(g){return h(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:c,nodebuffer:function(g){return s.newBufferFrom(g)}},p.nodebuffer={string:f,array:function(g){return h(g,new Array(g.length))},arraybuffer:function(g){return p.nodebuffer.uint8array(g).buffer},uint8array:function(g){return h(g,new Uint8Array(g.length))},nodebuffer:c},r.transformTo=function(g,v){if(v=v||"",!g)return v;r.checkSupport(g);var m=r.getTypeOf(v);return p[m][g](v)},r.resolve=function(g){for(var v=g.split("/"),m=[],y=0;y<v.length;y++){var b=v[y];b==="."||b===""&&y!==0&&y!==v.length-1||(b===".."?m.pop():m.push(b))}return m.join("/")},r.getTypeOf=function(g){return typeof g=="string"?"string":Object.prototype.toString.call(g)==="[object Array]"?"array":o.nodebuffer&&s.isBuffer(g)?"nodebuffer":o.uint8array&&g instanceof Uint8Array?"uint8array":o.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(g){if(!o[g.toLowerCase()])throw new Error(g+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(g){var v,m,y="";for(m=0;m<(g||"").length;m++)y+="\\x"+((v=g.charCodeAt(m))<16?"0":"")+v.toString(16).toUpperCase();return y},r.delay=function(g,v,m){setImmediate(function(){g.apply(m||null,v||[])})},r.inherits=function(g,v){function m(){}m.prototype=v.prototype,g.prototype=new m},r.extend=function(){var g,v,m={};for(g=0;g<arguments.length;g++)for(v in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],v)&&m[v]===void 0&&(m[v]=arguments[g][v]);return m},r.prepareContent=function(g,v,m,y,b){return l.Promise.resolve(v).then(function(x){return o.blob&&(x instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(x))!==-1)&&typeof FileReader<"u"?new l.Promise(function(_,S){var $=new FileReader;$.onload=function(C){_(C.target.result)},$.onerror=function(C){S(C.target.error)},$.readAsArrayBuffer(x)}):x}).then(function(x){var _=r.getTypeOf(x);return _?(_==="arraybuffer"?x=r.transformTo("uint8array",x):_==="string"&&(b?x=a.decode(x):m&&y!==!0&&(x=(function(S){return u(S,o.uint8array?new Uint8Array(S.length):new Array(S.length))})(x))),x):l.Promise.reject(new Error("Can't read the data of '"+g+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,i,r){var o=n("./reader/readerFor"),a=n("./utils"),s=n("./signature"),l=n("./zipEntry"),c=n("./support");function u(d){this.files=[],this.loadOptions=d}u.prototype={checkSignature:function(d){if(!this.reader.readAndCheckSignature(d)){this.reader.index-=4;var f=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(f)+", expected "+a.pretty(d)+")")}},isSignature:function(d,f){var h=this.reader.index;this.reader.setIndex(d);var p=this.reader.readString(4)===f;return this.reader.setIndex(h),p},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var d=this.reader.readData(this.zipCommentLength),f=c.uint8array?"uint8array":"array",h=a.transformTo(f,d);this.zipComment=this.loadOptions.decodeFileName(h)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var d,f,h,p=this.zip64EndOfCentralSize-44;0<p;)d=this.reader.readInt(2),f=this.reader.readInt(4),h=this.reader.readData(f),this.zip64ExtensibleData[d]={id:d,length:f,value:h}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var d,f;for(d=0;d<this.files.length;d++)f=this.files[d],this.reader.setIndex(f.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),f.readLocalPart(this.reader),f.handleUTF8(),f.processAttributes()},readCentralDir:function(){var d;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(d=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(d);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var d=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(d<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(d);var f=d;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(d=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(d),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var h=this.centralDirOffset+this.centralDirSize;this.zip64&&(h+=20,h+=12+this.zip64EndOfCentralSize);var p=f-h;if(0<p)this.isSignature(f,s.CENTRAL_FILE_HEADER)||(this.reader.zero=p);else if(p<0)throw new Error("Corrupted zip: missing "+Math.abs(p)+" bytes.")},prepareReader:function(d){this.reader=o(d)},load:function(d){this.prepareReader(d),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,i,r){var o=n("./reader/readerFor"),a=n("./utils"),s=n("./compressedObject"),l=n("./crc32"),c=n("./utf8"),u=n("./compressions"),d=n("./support");function f(h,p){this.options=h,this.loadOptions=p}f.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(h){var p,g;if(h.skip(22),this.fileNameLength=h.readInt(2),g=h.readInt(2),this.fileName=h.readData(this.fileNameLength),h.skip(g),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((p=(function(v){for(var m in u)if(Object.prototype.hasOwnProperty.call(u,m)&&u[m].magic===v)return u[m];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,p,h.readData(this.compressedSize))},readCentralPart:function(h){this.versionMadeBy=h.readInt(2),h.skip(2),this.bitFlag=h.readInt(2),this.compressionMethod=h.readString(2),this.date=h.readDate(),this.crc32=h.readInt(4),this.compressedSize=h.readInt(4),this.uncompressedSize=h.readInt(4);var p=h.readInt(2);if(this.extraFieldsLength=h.readInt(2),this.fileCommentLength=h.readInt(2),this.diskNumberStart=h.readInt(2),this.internalFileAttributes=h.readInt(2),this.externalFileAttributes=h.readInt(4),this.localHeaderOffset=h.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");h.skip(p),this.readExtraFields(h),this.parseZIP64ExtraField(h),this.fileComment=h.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var h=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),h==0&&(this.dosPermissions=63&this.externalFileAttributes),h==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var h=o(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=h.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=h.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=h.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=h.readInt(4))}},readExtraFields:function(h){var p,g,v,m=h.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});h.index+4<m;)p=h.readInt(2),g=h.readInt(2),v=h.readData(g),this.extraFields[p]={id:p,length:g,value:v};h.setIndex(m)},handleUTF8:function(){var h=d.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var p=this.findExtraFieldUnicodePath();if(p!==null)this.fileNameStr=p;else{var g=a.transformTo(h,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var v=this.findExtraFieldUnicodeComment();if(v!==null)this.fileCommentStr=v;else{var m=a.transformTo(h,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(m)}}},findExtraFieldUnicodePath:function(){var h=this.extraFields[28789];if(h){var p=o(h.value);return p.readInt(1)!==1||l(this.fileName)!==p.readInt(4)?null:c.utf8decode(p.readData(h.length-5))}return null},findExtraFieldUnicodeComment:function(){var h=this.extraFields[25461];if(h){var p=o(h.value);return p.readInt(1)!==1||l(this.fileComment)!==p.readInt(4)?null:c.utf8decode(p.readData(h.length-5))}return null}},i.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,i,r){function o(p,g,v){this.name=p,this.dir=v.dir,this.date=v.date,this.comment=v.comment,this.unixPermissions=v.unixPermissions,this.dosPermissions=v.dosPermissions,this._data=g,this._dataBinary=v.binary,this.options={compression:v.compression,compressionOptions:v.compressionOptions}}var a=n("./stream/StreamHelper"),s=n("./stream/DataWorker"),l=n("./utf8"),c=n("./compressedObject"),u=n("./stream/GenericWorker");o.prototype={internalStream:function(p){var g=null,v="string";try{if(!p)throw new Error("No output type specified.");var m=(v=p.toLowerCase())==="string"||v==="text";v!=="binarystring"&&v!=="text"||(v="string"),g=this._decompressWorker();var y=!this._dataBinary;y&&!m&&(g=g.pipe(new l.Utf8EncodeWorker)),!y&&m&&(g=g.pipe(new l.Utf8DecodeWorker))}catch(b){(g=new u("error")).error(b)}return new a(g,v,"")},async:function(p,g){return this.internalStream(p).accumulate(g)},nodeStream:function(p,g){return this.internalStream(p||"nodebuffer").toNodejsStream(g)},_compressWorker:function(p,g){if(this._data instanceof c&&this._data.compression.magic===p.magic)return this._data.getCompressedWorker();var v=this._decompressWorker();return this._dataBinary||(v=v.pipe(new l.Utf8EncodeWorker)),c.createWorkerFrom(v,p,g)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof u?this._data:new s(this._data)}};for(var d=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<d.length;h++)o.prototype[d[h]]=f;i.exports=o},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,i,r){(function(o){var a,s,l=o.MutationObserver||o.WebKitMutationObserver;if(l){var c=0,u=new l(p),d=o.document.createTextNode("");u.observe(d,{characterData:!0}),a=function(){d.data=c=++c%2}}else if(o.setImmediate||o.MessageChannel===void 0)a="document"in o&&"onreadystatechange"in o.document.createElement("script")?function(){var g=o.document.createElement("script");g.onreadystatechange=function(){p(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},o.document.documentElement.appendChild(g)}:function(){setTimeout(p,0)};else{var f=new o.MessageChannel;f.port1.onmessage=p,a=function(){f.port2.postMessage(0)}}var h=[];function p(){var g,v;s=!0;for(var m=h.length;m;){for(v=h,h=[],g=-1;++g<m;)v[g]();m=h.length}s=!1}i.exports=function(g){h.push(g)!==1||s||a()}}).call(this,typeof yw<"u"?yw:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,i,r){var o=n("immediate");function a(){}var s={},l=["REJECTED"],c=["FULFILLED"],u=["PENDING"];function d(m){if(typeof m!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,m!==a&&g(this,m)}function f(m,y,b){this.promise=m,typeof y=="function"&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}function h(m,y,b){o(function(){var x;try{x=y(b)}catch(_){return s.reject(m,_)}x===m?s.reject(m,new TypeError("Cannot resolve promise with itself")):s.resolve(m,x)})}function p(m){var y=m&&m.then;if(m&&(typeof m=="object"||typeof m=="function")&&typeof y=="function")return function(){y.apply(m,arguments)}}function g(m,y){var b=!1;function x($){b||(b=!0,s.reject(m,$))}function _($){b||(b=!0,s.resolve(m,$))}var S=v(function(){y(_,x)});S.status==="error"&&x(S.value)}function v(m,y){var b={};try{b.value=m(y),b.status="success"}catch(x){b.status="error",b.value=x}return b}(i.exports=d).prototype.finally=function(m){if(typeof m!="function")return this;var y=this.constructor;return this.then(function(b){return y.resolve(m()).then(function(){return b})},function(b){return y.resolve(m()).then(function(){throw b})})},d.prototype.catch=function(m){return this.then(null,m)},d.prototype.then=function(m,y){if(typeof m!="function"&&this.state===c||typeof y!="function"&&this.state===l)return this;var b=new this.constructor(a);return this.state!==u?h(b,this.state===c?m:y,this.outcome):this.queue.push(new f(b,m,y)),b},f.prototype.callFulfilled=function(m){s.resolve(this.promise,m)},f.prototype.otherCallFulfilled=function(m){h(this.promise,this.onFulfilled,m)},f.prototype.callRejected=function(m){s.reject(this.promise,m)},f.prototype.otherCallRejected=function(m){h(this.promise,this.onRejected,m)},s.resolve=function(m,y){var b=v(p,y);if(b.status==="error")return s.reject(m,b.value);var x=b.value;if(x)g(m,x);else{m.state=c,m.outcome=y;for(var _=-1,S=m.queue.length;++_<S;)m.queue[_].callFulfilled(y)}return m},s.reject=function(m,y){m.state=l,m.outcome=y;for(var b=-1,x=m.queue.length;++b<x;)m.queue[b].callRejected(y);return m},d.resolve=function(m){return m instanceof this?m:s.resolve(new this(a),m)},d.reject=function(m){var y=new this(a);return s.reject(y,m)},d.all=function(m){var y=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=m.length,x=!1;if(!b)return this.resolve([]);for(var _=new Array(b),S=0,$=-1,C=new this(a);++$<b;)w(m[$],$);return C;function w(z,A){y.resolve(z).then(function(M){_[A]=M,++S!==b||x||(x=!0,s.resolve(C,_))},function(M){x||(x=!0,s.reject(C,M))})}},d.race=function(m){var y=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=m.length,x=!1;if(!b)return this.resolve([]);for(var _=-1,S=new this(a);++_<b;)$=m[_],y.resolve($).then(function(C){x||(x=!0,s.resolve(S,C))},function(C){x||(x=!0,s.reject(S,C))});var $;return S}},{immediate:36}],38:[function(n,i,r){var o={};(0,n("./lib/utils/common").assign)(o,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),i.exports=o},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,i,r){var o=n("./zlib/deflate"),a=n("./utils/common"),s=n("./utils/strings"),l=n("./zlib/messages"),c=n("./zlib/zstream"),u=Object.prototype.toString,d=0,f=-1,h=0,p=8;function g(m){if(!(this instanceof g))return new g(m);this.options=a.assign({level:f,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},m||{});var y=this.options;y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var b=o.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(b!==d)throw new Error(l[b]);if(y.header&&o.deflateSetHeader(this.strm,y.header),y.dictionary){var x;if(x=typeof y.dictionary=="string"?s.string2buf(y.dictionary):u.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(b=o.deflateSetDictionary(this.strm,x))!==d)throw new Error(l[b]);this._dict_set=!0}}function v(m,y){var b=new g(y);if(b.push(m,!0),b.err)throw b.msg||l[b.err];return b.result}g.prototype.push=function(m,y){var b,x,_=this.strm,S=this.options.chunkSize;if(this.ended)return!1;x=y===~~y?y:y===!0?4:0,typeof m=="string"?_.input=s.string2buf(m):u.call(m)==="[object ArrayBuffer]"?_.input=new Uint8Array(m):_.input=m,_.next_in=0,_.avail_in=_.input.length;do{if(_.avail_out===0&&(_.output=new a.Buf8(S),_.next_out=0,_.avail_out=S),(b=o.deflate(_,x))!==1&&b!==d)return this.onEnd(b),!(this.ended=!0);_.avail_out!==0&&(_.avail_in!==0||x!==4&&x!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(a.shrinkBuf(_.output,_.next_out))):this.onData(a.shrinkBuf(_.output,_.next_out)))}while((0<_.avail_in||_.avail_out===0)&&b!==1);return x===4?(b=o.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===d):x!==2||(this.onEnd(d),!(_.avail_out=0))},g.prototype.onData=function(m){this.chunks.push(m)},g.prototype.onEnd=function(m){m===d&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},r.Deflate=g,r.deflate=v,r.deflateRaw=function(m,y){return(y=y||{}).raw=!0,v(m,y)},r.gzip=function(m,y){return(y=y||{}).gzip=!0,v(m,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,i,r){var o=n("./zlib/inflate"),a=n("./utils/common"),s=n("./utils/strings"),l=n("./zlib/constants"),c=n("./zlib/messages"),u=n("./zlib/zstream"),d=n("./zlib/gzheader"),f=Object.prototype.toString;function h(g){if(!(this instanceof h))return new h(g);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},g||{});var v=this.options;v.raw&&0<=v.windowBits&&v.windowBits<16&&(v.windowBits=-v.windowBits,v.windowBits===0&&(v.windowBits=-15)),!(0<=v.windowBits&&v.windowBits<16)||g&&g.windowBits||(v.windowBits+=32),15<v.windowBits&&v.windowBits<48&&(15&v.windowBits)==0&&(v.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var m=o.inflateInit2(this.strm,v.windowBits);if(m!==l.Z_OK)throw new Error(c[m]);this.header=new d,o.inflateGetHeader(this.strm,this.header)}function p(g,v){var m=new h(v);if(m.push(g,!0),m.err)throw m.msg||c[m.err];return m.result}h.prototype.push=function(g,v){var m,y,b,x,_,S,$=this.strm,C=this.options.chunkSize,w=this.options.dictionary,z=!1;if(this.ended)return!1;y=v===~~v?v:v===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof g=="string"?$.input=s.binstring2buf(g):f.call(g)==="[object ArrayBuffer]"?$.input=new Uint8Array(g):$.input=g,$.next_in=0,$.avail_in=$.input.length;do{if($.avail_out===0&&($.output=new a.Buf8(C),$.next_out=0,$.avail_out=C),(m=o.inflate($,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&w&&(S=typeof w=="string"?s.string2buf(w):f.call(w)==="[object ArrayBuffer]"?new Uint8Array(w):w,m=o.inflateSetDictionary(this.strm,S)),m===l.Z_BUF_ERROR&&z===!0&&(m=l.Z_OK,z=!1),m!==l.Z_STREAM_END&&m!==l.Z_OK)return this.onEnd(m),!(this.ended=!0);$.next_out&&($.avail_out!==0&&m!==l.Z_STREAM_END&&($.avail_in!==0||y!==l.Z_FINISH&&y!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(b=s.utf8border($.output,$.next_out),x=$.next_out-b,_=s.buf2string($.output,b),$.next_out=x,$.avail_out=C-x,x&&a.arraySet($.output,$.output,b,x,0),this.onData(_)):this.onData(a.shrinkBuf($.output,$.next_out)))),$.avail_in===0&&$.avail_out===0&&(z=!0)}while((0<$.avail_in||$.avail_out===0)&&m!==l.Z_STREAM_END);return m===l.Z_STREAM_END&&(y=l.Z_FINISH),y===l.Z_FINISH?(m=o.inflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===l.Z_OK):y!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!($.avail_out=0))},h.prototype.onData=function(g){this.chunks.push(g)},h.prototype.onEnd=function(g){g===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},r.Inflate=h,r.inflate=p,r.inflateRaw=function(g,v){return(v=v||{}).raw=!0,p(g,v)},r.ungzip=p},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,i,r){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";r.assign=function(l){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var u=c.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var d in u)u.hasOwnProperty(d)&&(l[d]=u[d])}}return l},r.shrinkBuf=function(l,c){return l.length===c?l:l.subarray?l.subarray(0,c):(l.length=c,l)};var a={arraySet:function(l,c,u,d,f){if(c.subarray&&l.subarray)l.set(c.subarray(u,u+d),f);else for(var h=0;h<d;h++)l[f+h]=c[u+h]},flattenChunks:function(l){var c,u,d,f,h,p;for(c=d=0,u=l.length;c<u;c++)d+=l[c].length;for(p=new Uint8Array(d),c=f=0,u=l.length;c<u;c++)h=l[c],p.set(h,f),f+=h.length;return p}},s={arraySet:function(l,c,u,d,f){for(var h=0;h<d;h++)l[f+h]=c[u+h]},flattenChunks:function(l){return[].concat.apply([],l)}};r.setTyped=function(l){l?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,a)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,s))},r.setTyped(o)},{}],42:[function(n,i,r){var o=n("./common"),a=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var l=new o.Buf8(256),c=0;c<256;c++)l[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(d,f){if(f<65537&&(d.subarray&&s||!d.subarray&&a))return String.fromCharCode.apply(null,o.shrinkBuf(d,f));for(var h="",p=0;p<f;p++)h+=String.fromCharCode(d[p]);return h}l[254]=l[254]=1,r.string2buf=function(d){var f,h,p,g,v,m=d.length,y=0;for(g=0;g<m;g++)(64512&(h=d.charCodeAt(g)))==55296&&g+1<m&&(64512&(p=d.charCodeAt(g+1)))==56320&&(h=65536+(h-55296<<10)+(p-56320),g++),y+=h<128?1:h<2048?2:h<65536?3:4;for(f=new o.Buf8(y),g=v=0;v<y;g++)(64512&(h=d.charCodeAt(g)))==55296&&g+1<m&&(64512&(p=d.charCodeAt(g+1)))==56320&&(h=65536+(h-55296<<10)+(p-56320),g++),h<128?f[v++]=h:(h<2048?f[v++]=192|h>>>6:(h<65536?f[v++]=224|h>>>12:(f[v++]=240|h>>>18,f[v++]=128|h>>>12&63),f[v++]=128|h>>>6&63),f[v++]=128|63&h);return f},r.buf2binstring=function(d){return u(d,d.length)},r.binstring2buf=function(d){for(var f=new o.Buf8(d.length),h=0,p=f.length;h<p;h++)f[h]=d.charCodeAt(h);return f},r.buf2string=function(d,f){var h,p,g,v,m=f||d.length,y=new Array(2*m);for(h=p=0;h<m;)if((g=d[h++])<128)y[p++]=g;else if(4<(v=l[g]))y[p++]=65533,h+=v-1;else{for(g&=v===2?31:v===3?15:7;1<v&&h<m;)g=g<<6|63&d[h++],v--;1<v?y[p++]=65533:g<65536?y[p++]=g:(g-=65536,y[p++]=55296|g>>10&1023,y[p++]=56320|1023&g)}return u(y,p)},r.utf8border=function(d,f){var h;for((f=f||d.length)>d.length&&(f=d.length),h=f-1;0<=h&&(192&d[h])==128;)h--;return h<0||h===0?f:h+l[d[h]]>f?h:f}},{"./common":41}],43:[function(n,i,r){i.exports=function(o,a,s,l){for(var c=65535&o|0,u=o>>>16&65535|0,d=0;s!==0;){for(s-=d=2e3<s?2e3:s;u=u+(c=c+a[l++]|0)|0,--d;);c%=65521,u%=65521}return c|u<<16|0}},{}],44:[function(n,i,r){i.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,i,r){var o=(function(){for(var a,s=[],l=0;l<256;l++){a=l;for(var c=0;c<8;c++)a=1&a?3988292384^a>>>1:a>>>1;s[l]=a}return s})();i.exports=function(a,s,l,c){var u=o,d=c+l;a^=-1;for(var f=c;f<d;f++)a=a>>>8^u[255&(a^s[f])];return-1^a}},{}],46:[function(n,i,r){var o,a=n("../utils/common"),s=n("./trees"),l=n("./adler32"),c=n("./crc32"),u=n("./messages"),d=0,f=4,h=0,p=-2,g=-1,v=4,m=2,y=8,b=9,x=286,_=30,S=19,$=2*x+1,C=15,w=3,z=258,A=z+w+1,M=42,T=113,k=1,I=2,D=3,E=4;function N(R,ie){return R.msg=u[ie],ie}function F(R){return(R<<1)-(4<R?9:0)}function G(R){for(var ie=R.length;0<=--ie;)R[ie]=0}function P(R){var ie=R.state,te=ie.pending;te>R.avail_out&&(te=R.avail_out),te!==0&&(a.arraySet(R.output,ie.pending_buf,ie.pending_out,te,R.next_out),R.next_out+=te,ie.pending_out+=te,R.total_out+=te,R.avail_out-=te,ie.pending-=te,ie.pending===0&&(ie.pending_out=0))}function O(R,ie){s._tr_flush_block(R,0<=R.block_start?R.block_start:-1,R.strstart-R.block_start,ie),R.block_start=R.strstart,P(R.strm)}function V(R,ie){R.pending_buf[R.pending++]=ie}function j(R,ie){R.pending_buf[R.pending++]=ie>>>8&255,R.pending_buf[R.pending++]=255&ie}function H(R,ie){var te,B,U=R.max_chain_length,W=R.strstart,ue=R.prev_length,de=R.nice_match,J=R.strstart>R.w_size-A?R.strstart-(R.w_size-A):0,ge=R.window,we=R.w_mask,X=R.prev,K=R.strstart+z,Ce=ge[W+ue-1],ye=ge[W+ue];R.prev_length>=R.good_match&&(U>>=2),de>R.lookahead&&(de=R.lookahead);do if(ge[(te=ie)+ue]===ye&&ge[te+ue-1]===Ce&&ge[te]===ge[W]&&ge[++te]===ge[W+1]){W+=2,te++;do;while(ge[++W]===ge[++te]&&ge[++W]===ge[++te]&&ge[++W]===ge[++te]&&ge[++W]===ge[++te]&&ge[++W]===ge[++te]&&ge[++W]===ge[++te]&&ge[++W]===ge[++te]&&ge[++W]===ge[++te]&&W<K);if(B=z-(K-W),W=K-z,ue<B){if(R.match_start=ie,de<=(ue=B))break;Ce=ge[W+ue-1],ye=ge[W+ue]}}while((ie=X[ie&we])>J&&--U!=0);return ue<=R.lookahead?ue:R.lookahead}function Q(R){var ie,te,B,U,W,ue,de,J,ge,we,X=R.w_size;do{if(U=R.window_size-R.lookahead-R.strstart,R.strstart>=X+(X-A)){for(a.arraySet(R.window,R.window,X,X,0),R.match_start-=X,R.strstart-=X,R.block_start-=X,ie=te=R.hash_size;B=R.head[--ie],R.head[ie]=X<=B?B-X:0,--te;);for(ie=te=X;B=R.prev[--ie],R.prev[ie]=X<=B?B-X:0,--te;);U+=X}if(R.strm.avail_in===0)break;if(ue=R.strm,de=R.window,J=R.strstart+R.lookahead,ge=U,we=void 0,we=ue.avail_in,ge<we&&(we=ge),te=we===0?0:(ue.avail_in-=we,a.arraySet(de,ue.input,ue.next_in,we,J),ue.state.wrap===1?ue.adler=l(ue.adler,de,we,J):ue.state.wrap===2&&(ue.adler=c(ue.adler,de,we,J)),ue.next_in+=we,ue.total_in+=we,we),R.lookahead+=te,R.lookahead+R.insert>=w)for(W=R.strstart-R.insert,R.ins_h=R.window[W],R.ins_h=(R.ins_h<<R.hash_shift^R.window[W+1])&R.hash_mask;R.insert&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[W+w-1])&R.hash_mask,R.prev[W&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=W,W++,R.insert--,!(R.lookahead+R.insert<w)););}while(R.lookahead<A&&R.strm.avail_in!==0)}function le(R,ie){for(var te,B;;){if(R.lookahead<A){if(Q(R),R.lookahead<A&&ie===d)return k;if(R.lookahead===0)break}if(te=0,R.lookahead>=w&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+w-1])&R.hash_mask,te=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart),te!==0&&R.strstart-te<=R.w_size-A&&(R.match_length=H(R,te)),R.match_length>=w)if(B=s._tr_tally(R,R.strstart-R.match_start,R.match_length-w),R.lookahead-=R.match_length,R.match_length<=R.max_lazy_match&&R.lookahead>=w){for(R.match_length--;R.strstart++,R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+w-1])&R.hash_mask,te=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart,--R.match_length!=0;);R.strstart++}else R.strstart+=R.match_length,R.match_length=0,R.ins_h=R.window[R.strstart],R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+1])&R.hash_mask;else B=s._tr_tally(R,0,R.window[R.strstart]),R.lookahead--,R.strstart++;if(B&&(O(R,!1),R.strm.avail_out===0))return k}return R.insert=R.strstart<w-1?R.strstart:w-1,ie===f?(O(R,!0),R.strm.avail_out===0?D:E):R.last_lit&&(O(R,!1),R.strm.avail_out===0)?k:I}function se(R,ie){for(var te,B,U;;){if(R.lookahead<A){if(Q(R),R.lookahead<A&&ie===d)return k;if(R.lookahead===0)break}if(te=0,R.lookahead>=w&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+w-1])&R.hash_mask,te=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart),R.prev_length=R.match_length,R.prev_match=R.match_start,R.match_length=w-1,te!==0&&R.prev_length<R.max_lazy_match&&R.strstart-te<=R.w_size-A&&(R.match_length=H(R,te),R.match_length<=5&&(R.strategy===1||R.match_length===w&&4096<R.strstart-R.match_start)&&(R.match_length=w-1)),R.prev_length>=w&&R.match_length<=R.prev_length){for(U=R.strstart+R.lookahead-w,B=s._tr_tally(R,R.strstart-1-R.prev_match,R.prev_length-w),R.lookahead-=R.prev_length-1,R.prev_length-=2;++R.strstart<=U&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+w-1])&R.hash_mask,te=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart),--R.prev_length!=0;);if(R.match_available=0,R.match_length=w-1,R.strstart++,B&&(O(R,!1),R.strm.avail_out===0))return k}else if(R.match_available){if((B=s._tr_tally(R,0,R.window[R.strstart-1]))&&O(R,!1),R.strstart++,R.lookahead--,R.strm.avail_out===0)return k}else R.match_available=1,R.strstart++,R.lookahead--}return R.match_available&&(B=s._tr_tally(R,0,R.window[R.strstart-1]),R.match_available=0),R.insert=R.strstart<w-1?R.strstart:w-1,ie===f?(O(R,!0),R.strm.avail_out===0?D:E):R.last_lit&&(O(R,!1),R.strm.avail_out===0)?k:I}function ae(R,ie,te,B,U){this.good_length=R,this.max_lazy=ie,this.nice_length=te,this.max_chain=B,this.func=U}function Se(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*$),this.dyn_dtree=new a.Buf16(2*(2*_+1)),this.bl_tree=new a.Buf16(2*(2*S+1)),G(this.dyn_ltree),G(this.dyn_dtree),G(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(C+1),this.heap=new a.Buf16(2*x+1),G(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*x+1),G(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ve(R){var ie;return R&&R.state?(R.total_in=R.total_out=0,R.data_type=m,(ie=R.state).pending=0,ie.pending_out=0,ie.wrap<0&&(ie.wrap=-ie.wrap),ie.status=ie.wrap?M:T,R.adler=ie.wrap===2?0:1,ie.last_flush=d,s._tr_init(ie),h):N(R,p)}function $e(R){var ie=ve(R);return ie===h&&(function(te){te.window_size=2*te.w_size,G(te.head),te.max_lazy_match=o[te.level].max_lazy,te.good_match=o[te.level].good_length,te.nice_match=o[te.level].nice_length,te.max_chain_length=o[te.level].max_chain,te.strstart=0,te.block_start=0,te.lookahead=0,te.insert=0,te.match_length=te.prev_length=w-1,te.match_available=0,te.ins_h=0})(R.state),ie}function je(R,ie,te,B,U,W){if(!R)return p;var ue=1;if(ie===g&&(ie=6),B<0?(ue=0,B=-B):15<B&&(ue=2,B-=16),U<1||b<U||te!==y||B<8||15<B||ie<0||9<ie||W<0||v<W)return N(R,p);B===8&&(B=9);var de=new Se;return(R.state=de).strm=R,de.wrap=ue,de.gzhead=null,de.w_bits=B,de.w_size=1<<de.w_bits,de.w_mask=de.w_size-1,de.hash_bits=U+7,de.hash_size=1<<de.hash_bits,de.hash_mask=de.hash_size-1,de.hash_shift=~~((de.hash_bits+w-1)/w),de.window=new a.Buf8(2*de.w_size),de.head=new a.Buf16(de.hash_size),de.prev=new a.Buf16(de.w_size),de.lit_bufsize=1<<U+6,de.pending_buf_size=4*de.lit_bufsize,de.pending_buf=new a.Buf8(de.pending_buf_size),de.d_buf=1*de.lit_bufsize,de.l_buf=3*de.lit_bufsize,de.level=ie,de.strategy=W,de.method=te,$e(R)}o=[new ae(0,0,0,0,function(R,ie){var te=65535;for(te>R.pending_buf_size-5&&(te=R.pending_buf_size-5);;){if(R.lookahead<=1){if(Q(R),R.lookahead===0&&ie===d)return k;if(R.lookahead===0)break}R.strstart+=R.lookahead,R.lookahead=0;var B=R.block_start+te;if((R.strstart===0||R.strstart>=B)&&(R.lookahead=R.strstart-B,R.strstart=B,O(R,!1),R.strm.avail_out===0)||R.strstart-R.block_start>=R.w_size-A&&(O(R,!1),R.strm.avail_out===0))return k}return R.insert=0,ie===f?(O(R,!0),R.strm.avail_out===0?D:E):(R.strstart>R.block_start&&(O(R,!1),R.strm.avail_out),k)}),new ae(4,4,8,4,le),new ae(4,5,16,8,le),new ae(4,6,32,32,le),new ae(4,4,16,16,se),new ae(8,16,32,32,se),new ae(8,16,128,128,se),new ae(8,32,128,256,se),new ae(32,128,258,1024,se),new ae(32,258,258,4096,se)],r.deflateInit=function(R,ie){return je(R,ie,y,15,8,0)},r.deflateInit2=je,r.deflateReset=$e,r.deflateResetKeep=ve,r.deflateSetHeader=function(R,ie){return R&&R.state?R.state.wrap!==2?p:(R.state.gzhead=ie,h):p},r.deflate=function(R,ie){var te,B,U,W;if(!R||!R.state||5<ie||ie<0)return R?N(R,p):p;if(B=R.state,!R.output||!R.input&&R.avail_in!==0||B.status===666&&ie!==f)return N(R,R.avail_out===0?-5:p);if(B.strm=R,te=B.last_flush,B.last_flush=ie,B.status===M)if(B.wrap===2)R.adler=0,V(B,31),V(B,139),V(B,8),B.gzhead?(V(B,(B.gzhead.text?1:0)+(B.gzhead.hcrc?2:0)+(B.gzhead.extra?4:0)+(B.gzhead.name?8:0)+(B.gzhead.comment?16:0)),V(B,255&B.gzhead.time),V(B,B.gzhead.time>>8&255),V(B,B.gzhead.time>>16&255),V(B,B.gzhead.time>>24&255),V(B,B.level===9?2:2<=B.strategy||B.level<2?4:0),V(B,255&B.gzhead.os),B.gzhead.extra&&B.gzhead.extra.length&&(V(B,255&B.gzhead.extra.length),V(B,B.gzhead.extra.length>>8&255)),B.gzhead.hcrc&&(R.adler=c(R.adler,B.pending_buf,B.pending,0)),B.gzindex=0,B.status=69):(V(B,0),V(B,0),V(B,0),V(B,0),V(B,0),V(B,B.level===9?2:2<=B.strategy||B.level<2?4:0),V(B,3),B.status=T);else{var ue=y+(B.w_bits-8<<4)<<8;ue|=(2<=B.strategy||B.level<2?0:B.level<6?1:B.level===6?2:3)<<6,B.strstart!==0&&(ue|=32),ue+=31-ue%31,B.status=T,j(B,ue),B.strstart!==0&&(j(B,R.adler>>>16),j(B,65535&R.adler)),R.adler=1}if(B.status===69)if(B.gzhead.extra){for(U=B.pending;B.gzindex<(65535&B.gzhead.extra.length)&&(B.pending!==B.pending_buf_size||(B.gzhead.hcrc&&B.pending>U&&(R.adler=c(R.adler,B.pending_buf,B.pending-U,U)),P(R),U=B.pending,B.pending!==B.pending_buf_size));)V(B,255&B.gzhead.extra[B.gzindex]),B.gzindex++;B.gzhead.hcrc&&B.pending>U&&(R.adler=c(R.adler,B.pending_buf,B.pending-U,U)),B.gzindex===B.gzhead.extra.length&&(B.gzindex=0,B.status=73)}else B.status=73;if(B.status===73)if(B.gzhead.name){U=B.pending;do{if(B.pending===B.pending_buf_size&&(B.gzhead.hcrc&&B.pending>U&&(R.adler=c(R.adler,B.pending_buf,B.pending-U,U)),P(R),U=B.pending,B.pending===B.pending_buf_size)){W=1;break}W=B.gzindex<B.gzhead.name.length?255&B.gzhead.name.charCodeAt(B.gzindex++):0,V(B,W)}while(W!==0);B.gzhead.hcrc&&B.pending>U&&(R.adler=c(R.adler,B.pending_buf,B.pending-U,U)),W===0&&(B.gzindex=0,B.status=91)}else B.status=91;if(B.status===91)if(B.gzhead.comment){U=B.pending;do{if(B.pending===B.pending_buf_size&&(B.gzhead.hcrc&&B.pending>U&&(R.adler=c(R.adler,B.pending_buf,B.pending-U,U)),P(R),U=B.pending,B.pending===B.pending_buf_size)){W=1;break}W=B.gzindex<B.gzhead.comment.length?255&B.gzhead.comment.charCodeAt(B.gzindex++):0,V(B,W)}while(W!==0);B.gzhead.hcrc&&B.pending>U&&(R.adler=c(R.adler,B.pending_buf,B.pending-U,U)),W===0&&(B.status=103)}else B.status=103;if(B.status===103&&(B.gzhead.hcrc?(B.pending+2>B.pending_buf_size&&P(R),B.pending+2<=B.pending_buf_size&&(V(B,255&R.adler),V(B,R.adler>>8&255),R.adler=0,B.status=T)):B.status=T),B.pending!==0){if(P(R),R.avail_out===0)return B.last_flush=-1,h}else if(R.avail_in===0&&F(ie)<=F(te)&&ie!==f)return N(R,-5);if(B.status===666&&R.avail_in!==0)return N(R,-5);if(R.avail_in!==0||B.lookahead!==0||ie!==d&&B.status!==666){var de=B.strategy===2?(function(J,ge){for(var we;;){if(J.lookahead===0&&(Q(J),J.lookahead===0)){if(ge===d)return k;break}if(J.match_length=0,we=s._tr_tally(J,0,J.window[J.strstart]),J.lookahead--,J.strstart++,we&&(O(J,!1),J.strm.avail_out===0))return k}return J.insert=0,ge===f?(O(J,!0),J.strm.avail_out===0?D:E):J.last_lit&&(O(J,!1),J.strm.avail_out===0)?k:I})(B,ie):B.strategy===3?(function(J,ge){for(var we,X,K,Ce,ye=J.window;;){if(J.lookahead<=z){if(Q(J),J.lookahead<=z&&ge===d)return k;if(J.lookahead===0)break}if(J.match_length=0,J.lookahead>=w&&0<J.strstart&&(X=ye[K=J.strstart-1])===ye[++K]&&X===ye[++K]&&X===ye[++K]){Ce=J.strstart+z;do;while(X===ye[++K]&&X===ye[++K]&&X===ye[++K]&&X===ye[++K]&&X===ye[++K]&&X===ye[++K]&&X===ye[++K]&&X===ye[++K]&&K<Ce);J.match_length=z-(Ce-K),J.match_length>J.lookahead&&(J.match_length=J.lookahead)}if(J.match_length>=w?(we=s._tr_tally(J,1,J.match_length-w),J.lookahead-=J.match_length,J.strstart+=J.match_length,J.match_length=0):(we=s._tr_tally(J,0,J.window[J.strstart]),J.lookahead--,J.strstart++),we&&(O(J,!1),J.strm.avail_out===0))return k}return J.insert=0,ge===f?(O(J,!0),J.strm.avail_out===0?D:E):J.last_lit&&(O(J,!1),J.strm.avail_out===0)?k:I})(B,ie):o[B.level].func(B,ie);if(de!==D&&de!==E||(B.status=666),de===k||de===D)return R.avail_out===0&&(B.last_flush=-1),h;if(de===I&&(ie===1?s._tr_align(B):ie!==5&&(s._tr_stored_block(B,0,0,!1),ie===3&&(G(B.head),B.lookahead===0&&(B.strstart=0,B.block_start=0,B.insert=0))),P(R),R.avail_out===0))return B.last_flush=-1,h}return ie!==f?h:B.wrap<=0?1:(B.wrap===2?(V(B,255&R.adler),V(B,R.adler>>8&255),V(B,R.adler>>16&255),V(B,R.adler>>24&255),V(B,255&R.total_in),V(B,R.total_in>>8&255),V(B,R.total_in>>16&255),V(B,R.total_in>>24&255)):(j(B,R.adler>>>16),j(B,65535&R.adler)),P(R),0<B.wrap&&(B.wrap=-B.wrap),B.pending!==0?h:1)},r.deflateEnd=function(R){var ie;return R&&R.state?(ie=R.state.status)!==M&&ie!==69&&ie!==73&&ie!==91&&ie!==103&&ie!==T&&ie!==666?N(R,p):(R.state=null,ie===T?N(R,-3):h):p},r.deflateSetDictionary=function(R,ie){var te,B,U,W,ue,de,J,ge,we=ie.length;if(!R||!R.state||(W=(te=R.state).wrap)===2||W===1&&te.status!==M||te.lookahead)return p;for(W===1&&(R.adler=l(R.adler,ie,we,0)),te.wrap=0,we>=te.w_size&&(W===0&&(G(te.head),te.strstart=0,te.block_start=0,te.insert=0),ge=new a.Buf8(te.w_size),a.arraySet(ge,ie,we-te.w_size,te.w_size,0),ie=ge,we=te.w_size),ue=R.avail_in,de=R.next_in,J=R.input,R.avail_in=we,R.next_in=0,R.input=ie,Q(te);te.lookahead>=w;){for(B=te.strstart,U=te.lookahead-(w-1);te.ins_h=(te.ins_h<<te.hash_shift^te.window[B+w-1])&te.hash_mask,te.prev[B&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=B,B++,--U;);te.strstart=B,te.lookahead=w-1,Q(te)}return te.strstart+=te.lookahead,te.block_start=te.strstart,te.insert=te.lookahead,te.lookahead=0,te.match_length=te.prev_length=w-1,te.match_available=0,R.next_in=de,R.input=J,R.avail_in=ue,te.wrap=W,h},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,i,r){i.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,i,r){i.exports=function(o,a){var s,l,c,u,d,f,h,p,g,v,m,y,b,x,_,S,$,C,w,z,A,M,T,k,I;s=o.state,l=o.next_in,k=o.input,c=l+(o.avail_in-5),u=o.next_out,I=o.output,d=u-(a-o.avail_out),f=u+(o.avail_out-257),h=s.dmax,p=s.wsize,g=s.whave,v=s.wnext,m=s.window,y=s.hold,b=s.bits,x=s.lencode,_=s.distcode,S=(1<<s.lenbits)-1,$=(1<<s.distbits)-1;e:do{b<15&&(y+=k[l++]<<b,b+=8,y+=k[l++]<<b,b+=8),C=x[y&S];t:for(;;){if(y>>>=w=C>>>24,b-=w,(w=C>>>16&255)===0)I[u++]=65535&C;else{if(!(16&w)){if((64&w)==0){C=x[(65535&C)+(y&(1<<w)-1)];continue t}if(32&w){s.mode=12;break e}o.msg="invalid literal/length code",s.mode=30;break e}z=65535&C,(w&=15)&&(b<w&&(y+=k[l++]<<b,b+=8),z+=y&(1<<w)-1,y>>>=w,b-=w),b<15&&(y+=k[l++]<<b,b+=8,y+=k[l++]<<b,b+=8),C=_[y&$];n:for(;;){if(y>>>=w=C>>>24,b-=w,!(16&(w=C>>>16&255))){if((64&w)==0){C=_[(65535&C)+(y&(1<<w)-1)];continue n}o.msg="invalid distance code",s.mode=30;break e}if(A=65535&C,b<(w&=15)&&(y+=k[l++]<<b,(b+=8)<w&&(y+=k[l++]<<b,b+=8)),h<(A+=y&(1<<w)-1)){o.msg="invalid distance too far back",s.mode=30;break e}if(y>>>=w,b-=w,(w=u-d)<A){if(g<(w=A-w)&&s.sane){o.msg="invalid distance too far back",s.mode=30;break e}if(T=m,(M=0)===v){if(M+=p-w,w<z){for(z-=w;I[u++]=m[M++],--w;);M=u-A,T=I}}else if(v<w){if(M+=p+v-w,(w-=v)<z){for(z-=w;I[u++]=m[M++],--w;);if(M=0,v<z){for(z-=w=v;I[u++]=m[M++],--w;);M=u-A,T=I}}}else if(M+=v-w,w<z){for(z-=w;I[u++]=m[M++],--w;);M=u-A,T=I}for(;2<z;)I[u++]=T[M++],I[u++]=T[M++],I[u++]=T[M++],z-=3;z&&(I[u++]=T[M++],1<z&&(I[u++]=T[M++]))}else{for(M=u-A;I[u++]=I[M++],I[u++]=I[M++],I[u++]=I[M++],2<(z-=3););z&&(I[u++]=I[M++],1<z&&(I[u++]=I[M++]))}break}}break}}while(l<c&&u<f);l-=z=b>>3,y&=(1<<(b-=z<<3))-1,o.next_in=l,o.next_out=u,o.avail_in=l<c?c-l+5:5-(l-c),o.avail_out=u<f?f-u+257:257-(u-f),s.hold=y,s.bits=b}},{}],49:[function(n,i,r){var o=n("../utils/common"),a=n("./adler32"),s=n("./crc32"),l=n("./inffast"),c=n("./inftrees"),u=1,d=2,f=0,h=-2,p=1,g=852,v=592;function m(M){return(M>>>24&255)+(M>>>8&65280)+((65280&M)<<8)+((255&M)<<24)}function y(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(M){var T;return M&&M.state?(T=M.state,M.total_in=M.total_out=T.total=0,M.msg="",T.wrap&&(M.adler=1&T.wrap),T.mode=p,T.last=0,T.havedict=0,T.dmax=32768,T.head=null,T.hold=0,T.bits=0,T.lencode=T.lendyn=new o.Buf32(g),T.distcode=T.distdyn=new o.Buf32(v),T.sane=1,T.back=-1,f):h}function x(M){var T;return M&&M.state?((T=M.state).wsize=0,T.whave=0,T.wnext=0,b(M)):h}function _(M,T){var k,I;return M&&M.state?(I=M.state,T<0?(k=0,T=-T):(k=1+(T>>4),T<48&&(T&=15)),T&&(T<8||15<T)?h:(I.window!==null&&I.wbits!==T&&(I.window=null),I.wrap=k,I.wbits=T,x(M))):h}function S(M,T){var k,I;return M?(I=new y,(M.state=I).window=null,(k=_(M,T))!==f&&(M.state=null),k):h}var $,C,w=!0;function z(M){if(w){var T;for($=new o.Buf32(512),C=new o.Buf32(32),T=0;T<144;)M.lens[T++]=8;for(;T<256;)M.lens[T++]=9;for(;T<280;)M.lens[T++]=7;for(;T<288;)M.lens[T++]=8;for(c(u,M.lens,0,288,$,0,M.work,{bits:9}),T=0;T<32;)M.lens[T++]=5;c(d,M.lens,0,32,C,0,M.work,{bits:5}),w=!1}M.lencode=$,M.lenbits=9,M.distcode=C,M.distbits=5}function A(M,T,k,I){var D,E=M.state;return E.window===null&&(E.wsize=1<<E.wbits,E.wnext=0,E.whave=0,E.window=new o.Buf8(E.wsize)),I>=E.wsize?(o.arraySet(E.window,T,k-E.wsize,E.wsize,0),E.wnext=0,E.whave=E.wsize):(I<(D=E.wsize-E.wnext)&&(D=I),o.arraySet(E.window,T,k-I,D,E.wnext),(I-=D)?(o.arraySet(E.window,T,k-I,I,0),E.wnext=I,E.whave=E.wsize):(E.wnext+=D,E.wnext===E.wsize&&(E.wnext=0),E.whave<E.wsize&&(E.whave+=D))),0}r.inflateReset=x,r.inflateReset2=_,r.inflateResetKeep=b,r.inflateInit=function(M){return S(M,15)},r.inflateInit2=S,r.inflate=function(M,T){var k,I,D,E,N,F,G,P,O,V,j,H,Q,le,se,ae,Se,ve,$e,je,R,ie,te,B,U=0,W=new o.Buf8(4),ue=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!M||!M.state||!M.output||!M.input&&M.avail_in!==0)return h;(k=M.state).mode===12&&(k.mode=13),N=M.next_out,D=M.output,G=M.avail_out,E=M.next_in,I=M.input,F=M.avail_in,P=k.hold,O=k.bits,V=F,j=G,ie=f;e:for(;;)switch(k.mode){case p:if(k.wrap===0){k.mode=13;break}for(;O<16;){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}if(2&k.wrap&&P===35615){W[k.check=0]=255&P,W[1]=P>>>8&255,k.check=s(k.check,W,2,0),O=P=0,k.mode=2;break}if(k.flags=0,k.head&&(k.head.done=!1),!(1&k.wrap)||(((255&P)<<8)+(P>>8))%31){M.msg="incorrect header check",k.mode=30;break}if((15&P)!=8){M.msg="unknown compression method",k.mode=30;break}if(O-=4,R=8+(15&(P>>>=4)),k.wbits===0)k.wbits=R;else if(R>k.wbits){M.msg="invalid window size",k.mode=30;break}k.dmax=1<<R,M.adler=k.check=1,k.mode=512&P?10:12,O=P=0;break;case 2:for(;O<16;){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}if(k.flags=P,(255&k.flags)!=8){M.msg="unknown compression method",k.mode=30;break}if(57344&k.flags){M.msg="unknown header flags set",k.mode=30;break}k.head&&(k.head.text=P>>8&1),512&k.flags&&(W[0]=255&P,W[1]=P>>>8&255,k.check=s(k.check,W,2,0)),O=P=0,k.mode=3;case 3:for(;O<32;){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}k.head&&(k.head.time=P),512&k.flags&&(W[0]=255&P,W[1]=P>>>8&255,W[2]=P>>>16&255,W[3]=P>>>24&255,k.check=s(k.check,W,4,0)),O=P=0,k.mode=4;case 4:for(;O<16;){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}k.head&&(k.head.xflags=255&P,k.head.os=P>>8),512&k.flags&&(W[0]=255&P,W[1]=P>>>8&255,k.check=s(k.check,W,2,0)),O=P=0,k.mode=5;case 5:if(1024&k.flags){for(;O<16;){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}k.length=P,k.head&&(k.head.extra_len=P),512&k.flags&&(W[0]=255&P,W[1]=P>>>8&255,k.check=s(k.check,W,2,0)),O=P=0}else k.head&&(k.head.extra=null);k.mode=6;case 6:if(1024&k.flags&&(F<(H=k.length)&&(H=F),H&&(k.head&&(R=k.head.extra_len-k.length,k.head.extra||(k.head.extra=new Array(k.head.extra_len)),o.arraySet(k.head.extra,I,E,H,R)),512&k.flags&&(k.check=s(k.check,I,H,E)),F-=H,E+=H,k.length-=H),k.length))break e;k.length=0,k.mode=7;case 7:if(2048&k.flags){if(F===0)break e;for(H=0;R=I[E+H++],k.head&&R&&k.length<65536&&(k.head.name+=String.fromCharCode(R)),R&&H<F;);if(512&k.flags&&(k.check=s(k.check,I,H,E)),F-=H,E+=H,R)break e}else k.head&&(k.head.name=null);k.length=0,k.mode=8;case 8:if(4096&k.flags){if(F===0)break e;for(H=0;R=I[E+H++],k.head&&R&&k.length<65536&&(k.head.comment+=String.fromCharCode(R)),R&&H<F;);if(512&k.flags&&(k.check=s(k.check,I,H,E)),F-=H,E+=H,R)break e}else k.head&&(k.head.comment=null);k.mode=9;case 9:if(512&k.flags){for(;O<16;){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}if(P!==(65535&k.check)){M.msg="header crc mismatch",k.mode=30;break}O=P=0}k.head&&(k.head.hcrc=k.flags>>9&1,k.head.done=!0),M.adler=k.check=0,k.mode=12;break;case 10:for(;O<32;){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}M.adler=k.check=m(P),O=P=0,k.mode=11;case 11:if(k.havedict===0)return M.next_out=N,M.avail_out=G,M.next_in=E,M.avail_in=F,k.hold=P,k.bits=O,2;M.adler=k.check=1,k.mode=12;case 12:if(T===5||T===6)break e;case 13:if(k.last){P>>>=7&O,O-=7&O,k.mode=27;break}for(;O<3;){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}switch(k.last=1&P,O-=1,3&(P>>>=1)){case 0:k.mode=14;break;case 1:if(z(k),k.mode=20,T!==6)break;P>>>=2,O-=2;break e;case 2:k.mode=17;break;case 3:M.msg="invalid block type",k.mode=30}P>>>=2,O-=2;break;case 14:for(P>>>=7&O,O-=7&O;O<32;){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}if((65535&P)!=(P>>>16^65535)){M.msg="invalid stored block lengths",k.mode=30;break}if(k.length=65535&P,O=P=0,k.mode=15,T===6)break e;case 15:k.mode=16;case 16:if(H=k.length){if(F<H&&(H=F),G<H&&(H=G),H===0)break e;o.arraySet(D,I,E,H,N),F-=H,E+=H,G-=H,N+=H,k.length-=H;break}k.mode=12;break;case 17:for(;O<14;){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}if(k.nlen=257+(31&P),P>>>=5,O-=5,k.ndist=1+(31&P),P>>>=5,O-=5,k.ncode=4+(15&P),P>>>=4,O-=4,286<k.nlen||30<k.ndist){M.msg="too many length or distance symbols",k.mode=30;break}k.have=0,k.mode=18;case 18:for(;k.have<k.ncode;){for(;O<3;){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}k.lens[ue[k.have++]]=7&P,P>>>=3,O-=3}for(;k.have<19;)k.lens[ue[k.have++]]=0;if(k.lencode=k.lendyn,k.lenbits=7,te={bits:k.lenbits},ie=c(0,k.lens,0,19,k.lencode,0,k.work,te),k.lenbits=te.bits,ie){M.msg="invalid code lengths set",k.mode=30;break}k.have=0,k.mode=19;case 19:for(;k.have<k.nlen+k.ndist;){for(;ae=(U=k.lencode[P&(1<<k.lenbits)-1])>>>16&255,Se=65535&U,!((se=U>>>24)<=O);){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}if(Se<16)P>>>=se,O-=se,k.lens[k.have++]=Se;else{if(Se===16){for(B=se+2;O<B;){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}if(P>>>=se,O-=se,k.have===0){M.msg="invalid bit length repeat",k.mode=30;break}R=k.lens[k.have-1],H=3+(3&P),P>>>=2,O-=2}else if(Se===17){for(B=se+3;O<B;){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}O-=se,R=0,H=3+(7&(P>>>=se)),P>>>=3,O-=3}else{for(B=se+7;O<B;){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}O-=se,R=0,H=11+(127&(P>>>=se)),P>>>=7,O-=7}if(k.have+H>k.nlen+k.ndist){M.msg="invalid bit length repeat",k.mode=30;break}for(;H--;)k.lens[k.have++]=R}}if(k.mode===30)break;if(k.lens[256]===0){M.msg="invalid code -- missing end-of-block",k.mode=30;break}if(k.lenbits=9,te={bits:k.lenbits},ie=c(u,k.lens,0,k.nlen,k.lencode,0,k.work,te),k.lenbits=te.bits,ie){M.msg="invalid literal/lengths set",k.mode=30;break}if(k.distbits=6,k.distcode=k.distdyn,te={bits:k.distbits},ie=c(d,k.lens,k.nlen,k.ndist,k.distcode,0,k.work,te),k.distbits=te.bits,ie){M.msg="invalid distances set",k.mode=30;break}if(k.mode=20,T===6)break e;case 20:k.mode=21;case 21:if(6<=F&&258<=G){M.next_out=N,M.avail_out=G,M.next_in=E,M.avail_in=F,k.hold=P,k.bits=O,l(M,j),N=M.next_out,D=M.output,G=M.avail_out,E=M.next_in,I=M.input,F=M.avail_in,P=k.hold,O=k.bits,k.mode===12&&(k.back=-1);break}for(k.back=0;ae=(U=k.lencode[P&(1<<k.lenbits)-1])>>>16&255,Se=65535&U,!((se=U>>>24)<=O);){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}if(ae&&(240&ae)==0){for(ve=se,$e=ae,je=Se;ae=(U=k.lencode[je+((P&(1<<ve+$e)-1)>>ve)])>>>16&255,Se=65535&U,!(ve+(se=U>>>24)<=O);){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}P>>>=ve,O-=ve,k.back+=ve}if(P>>>=se,O-=se,k.back+=se,k.length=Se,ae===0){k.mode=26;break}if(32&ae){k.back=-1,k.mode=12;break}if(64&ae){M.msg="invalid literal/length code",k.mode=30;break}k.extra=15&ae,k.mode=22;case 22:if(k.extra){for(B=k.extra;O<B;){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}k.length+=P&(1<<k.extra)-1,P>>>=k.extra,O-=k.extra,k.back+=k.extra}k.was=k.length,k.mode=23;case 23:for(;ae=(U=k.distcode[P&(1<<k.distbits)-1])>>>16&255,Se=65535&U,!((se=U>>>24)<=O);){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}if((240&ae)==0){for(ve=se,$e=ae,je=Se;ae=(U=k.distcode[je+((P&(1<<ve+$e)-1)>>ve)])>>>16&255,Se=65535&U,!(ve+(se=U>>>24)<=O);){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}P>>>=ve,O-=ve,k.back+=ve}if(P>>>=se,O-=se,k.back+=se,64&ae){M.msg="invalid distance code",k.mode=30;break}k.offset=Se,k.extra=15&ae,k.mode=24;case 24:if(k.extra){for(B=k.extra;O<B;){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}k.offset+=P&(1<<k.extra)-1,P>>>=k.extra,O-=k.extra,k.back+=k.extra}if(k.offset>k.dmax){M.msg="invalid distance too far back",k.mode=30;break}k.mode=25;case 25:if(G===0)break e;if(H=j-G,k.offset>H){if((H=k.offset-H)>k.whave&&k.sane){M.msg="invalid distance too far back",k.mode=30;break}Q=H>k.wnext?(H-=k.wnext,k.wsize-H):k.wnext-H,H>k.length&&(H=k.length),le=k.window}else le=D,Q=N-k.offset,H=k.length;for(G<H&&(H=G),G-=H,k.length-=H;D[N++]=le[Q++],--H;);k.length===0&&(k.mode=21);break;case 26:if(G===0)break e;D[N++]=k.length,G--,k.mode=21;break;case 27:if(k.wrap){for(;O<32;){if(F===0)break e;F--,P|=I[E++]<<O,O+=8}if(j-=G,M.total_out+=j,k.total+=j,j&&(M.adler=k.check=k.flags?s(k.check,D,j,N-j):a(k.check,D,j,N-j)),j=G,(k.flags?P:m(P))!==k.check){M.msg="incorrect data check",k.mode=30;break}O=P=0}k.mode=28;case 28:if(k.wrap&&k.flags){for(;O<32;){if(F===0)break e;F--,P+=I[E++]<<O,O+=8}if(P!==(4294967295&k.total)){M.msg="incorrect length check",k.mode=30;break}O=P=0}k.mode=29;case 29:ie=1;break e;case 30:ie=-3;break e;case 31:return-4;case 32:default:return h}return M.next_out=N,M.avail_out=G,M.next_in=E,M.avail_in=F,k.hold=P,k.bits=O,(k.wsize||j!==M.avail_out&&k.mode<30&&(k.mode<27||T!==4))&&A(M,M.output,M.next_out,j-M.avail_out)?(k.mode=31,-4):(V-=M.avail_in,j-=M.avail_out,M.total_in+=V,M.total_out+=j,k.total+=j,k.wrap&&j&&(M.adler=k.check=k.flags?s(k.check,D,j,M.next_out-j):a(k.check,D,j,M.next_out-j)),M.data_type=k.bits+(k.last?64:0)+(k.mode===12?128:0)+(k.mode===20||k.mode===15?256:0),(V==0&&j===0||T===4)&&ie===f&&(ie=-5),ie)},r.inflateEnd=function(M){if(!M||!M.state)return h;var T=M.state;return T.window&&(T.window=null),M.state=null,f},r.inflateGetHeader=function(M,T){var k;return M&&M.state?(2&(k=M.state).wrap)==0?h:((k.head=T).done=!1,f):h},r.inflateSetDictionary=function(M,T){var k,I=T.length;return M&&M.state?(k=M.state).wrap!==0&&k.mode!==11?h:k.mode===11&&a(1,T,I,0)!==k.check?-3:A(M,T,I,I)?(k.mode=31,-4):(k.havedict=1,f):h},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,i,r){var o=n("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];i.exports=function(u,d,f,h,p,g,v,m){var y,b,x,_,S,$,C,w,z,A=m.bits,M=0,T=0,k=0,I=0,D=0,E=0,N=0,F=0,G=0,P=0,O=null,V=0,j=new o.Buf16(16),H=new o.Buf16(16),Q=null,le=0;for(M=0;M<=15;M++)j[M]=0;for(T=0;T<h;T++)j[d[f+T]]++;for(D=A,I=15;1<=I&&j[I]===0;I--);if(I<D&&(D=I),I===0)return p[g++]=20971520,p[g++]=20971520,m.bits=1,0;for(k=1;k<I&&j[k]===0;k++);for(D<k&&(D=k),M=F=1;M<=15;M++)if(F<<=1,(F-=j[M])<0)return-1;if(0<F&&(u===0||I!==1))return-1;for(H[1]=0,M=1;M<15;M++)H[M+1]=H[M]+j[M];for(T=0;T<h;T++)d[f+T]!==0&&(v[H[d[f+T]]++]=T);if($=u===0?(O=Q=v,19):u===1?(O=a,V-=257,Q=s,le-=257,256):(O=l,Q=c,-1),M=k,S=g,N=T=P=0,x=-1,_=(G=1<<(E=D))-1,u===1&&852<G||u===2&&592<G)return 1;for(;;){for(C=M-N,z=v[T]<$?(w=0,v[T]):v[T]>$?(w=Q[le+v[T]],O[V+v[T]]):(w=96,0),y=1<<M-N,k=b=1<<E;p[S+(P>>N)+(b-=y)]=C<<24|w<<16|z|0,b!==0;);for(y=1<<M-1;P&y;)y>>=1;if(y!==0?(P&=y-1,P+=y):P=0,T++,--j[M]==0){if(M===I)break;M=d[f+v[T]]}if(D<M&&(P&_)!==x){for(N===0&&(N=D),S+=k,F=1<<(E=M-N);E+N<I&&!((F-=j[E+N])<=0);)E++,F<<=1;if(G+=1<<E,u===1&&852<G||u===2&&592<G)return 1;p[x=P&_]=D<<24|E<<16|S-g|0}}return P!==0&&(p[S+P]=M-N<<24|64<<16|0),m.bits=D,0}},{"../utils/common":41}],51:[function(n,i,r){i.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,i,r){var o=n("../utils/common"),a=0,s=1;function l(U){for(var W=U.length;0<=--W;)U[W]=0}var c=0,u=29,d=256,f=d+1+u,h=30,p=19,g=2*f+1,v=15,m=16,y=7,b=256,x=16,_=17,S=18,$=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A=new Array(2*(f+2));l(A);var M=new Array(2*h);l(M);var T=new Array(512);l(T);var k=new Array(256);l(k);var I=new Array(u);l(I);var D,E,N,F=new Array(h);function G(U,W,ue,de,J){this.static_tree=U,this.extra_bits=W,this.extra_base=ue,this.elems=de,this.max_length=J,this.has_stree=U&&U.length}function P(U,W){this.dyn_tree=U,this.max_code=0,this.stat_desc=W}function O(U){return U<256?T[U]:T[256+(U>>>7)]}function V(U,W){U.pending_buf[U.pending++]=255&W,U.pending_buf[U.pending++]=W>>>8&255}function j(U,W,ue){U.bi_valid>m-ue?(U.bi_buf|=W<<U.bi_valid&65535,V(U,U.bi_buf),U.bi_buf=W>>m-U.bi_valid,U.bi_valid+=ue-m):(U.bi_buf|=W<<U.bi_valid&65535,U.bi_valid+=ue)}function H(U,W,ue){j(U,ue[2*W],ue[2*W+1])}function Q(U,W){for(var ue=0;ue|=1&U,U>>>=1,ue<<=1,0<--W;);return ue>>>1}function le(U,W,ue){var de,J,ge=new Array(v+1),we=0;for(de=1;de<=v;de++)ge[de]=we=we+ue[de-1]<<1;for(J=0;J<=W;J++){var X=U[2*J+1];X!==0&&(U[2*J]=Q(ge[X]++,X))}}function se(U){var W;for(W=0;W<f;W++)U.dyn_ltree[2*W]=0;for(W=0;W<h;W++)U.dyn_dtree[2*W]=0;for(W=0;W<p;W++)U.bl_tree[2*W]=0;U.dyn_ltree[2*b]=1,U.opt_len=U.static_len=0,U.last_lit=U.matches=0}function ae(U){8<U.bi_valid?V(U,U.bi_buf):0<U.bi_valid&&(U.pending_buf[U.pending++]=U.bi_buf),U.bi_buf=0,U.bi_valid=0}function Se(U,W,ue,de){var J=2*W,ge=2*ue;return U[J]<U[ge]||U[J]===U[ge]&&de[W]<=de[ue]}function ve(U,W,ue){for(var de=U.heap[ue],J=ue<<1;J<=U.heap_len&&(J<U.heap_len&&Se(W,U.heap[J+1],U.heap[J],U.depth)&&J++,!Se(W,de,U.heap[J],U.depth));)U.heap[ue]=U.heap[J],ue=J,J<<=1;U.heap[ue]=de}function $e(U,W,ue){var de,J,ge,we,X=0;if(U.last_lit!==0)for(;de=U.pending_buf[U.d_buf+2*X]<<8|U.pending_buf[U.d_buf+2*X+1],J=U.pending_buf[U.l_buf+X],X++,de===0?H(U,J,W):(H(U,(ge=k[J])+d+1,W),(we=$[ge])!==0&&j(U,J-=I[ge],we),H(U,ge=O(--de),ue),(we=C[ge])!==0&&j(U,de-=F[ge],we)),X<U.last_lit;);H(U,b,W)}function je(U,W){var ue,de,J,ge=W.dyn_tree,we=W.stat_desc.static_tree,X=W.stat_desc.has_stree,K=W.stat_desc.elems,Ce=-1;for(U.heap_len=0,U.heap_max=g,ue=0;ue<K;ue++)ge[2*ue]!==0?(U.heap[++U.heap_len]=Ce=ue,U.depth[ue]=0):ge[2*ue+1]=0;for(;U.heap_len<2;)ge[2*(J=U.heap[++U.heap_len]=Ce<2?++Ce:0)]=1,U.depth[J]=0,U.opt_len--,X&&(U.static_len-=we[2*J+1]);for(W.max_code=Ce,ue=U.heap_len>>1;1<=ue;ue--)ve(U,ge,ue);for(J=K;ue=U.heap[1],U.heap[1]=U.heap[U.heap_len--],ve(U,ge,1),de=U.heap[1],U.heap[--U.heap_max]=ue,U.heap[--U.heap_max]=de,ge[2*J]=ge[2*ue]+ge[2*de],U.depth[J]=(U.depth[ue]>=U.depth[de]?U.depth[ue]:U.depth[de])+1,ge[2*ue+1]=ge[2*de+1]=J,U.heap[1]=J++,ve(U,ge,1),2<=U.heap_len;);U.heap[--U.heap_max]=U.heap[1],(function(ye,Qe){var mt,et,Le,Oe,ot,$t,Bt=Qe.dyn_tree,sn=Qe.max_code,ct=Qe.stat_desc.static_tree,pn=Qe.stat_desc.has_stree,zn=Qe.stat_desc.extra_bits,Ge=Qe.stat_desc.extra_base,Xe=Qe.stat_desc.max_length,ht=0;for(Oe=0;Oe<=v;Oe++)ye.bl_count[Oe]=0;for(Bt[2*ye.heap[ye.heap_max]+1]=0,mt=ye.heap_max+1;mt<g;mt++)Xe<(Oe=Bt[2*Bt[2*(et=ye.heap[mt])+1]+1]+1)&&(Oe=Xe,ht++),Bt[2*et+1]=Oe,sn<et||(ye.bl_count[Oe]++,ot=0,Ge<=et&&(ot=zn[et-Ge]),$t=Bt[2*et],ye.opt_len+=$t*(Oe+ot),pn&&(ye.static_len+=$t*(ct[2*et+1]+ot)));if(ht!==0){do{for(Oe=Xe-1;ye.bl_count[Oe]===0;)Oe--;ye.bl_count[Oe]--,ye.bl_count[Oe+1]+=2,ye.bl_count[Xe]--,ht-=2}while(0<ht);for(Oe=Xe;Oe!==0;Oe--)for(et=ye.bl_count[Oe];et!==0;)sn<(Le=ye.heap[--mt])||(Bt[2*Le+1]!==Oe&&(ye.opt_len+=(Oe-Bt[2*Le+1])*Bt[2*Le],Bt[2*Le+1]=Oe),et--)}})(U,W),le(ge,Ce,U.bl_count)}function R(U,W,ue){var de,J,ge=-1,we=W[1],X=0,K=7,Ce=4;for(we===0&&(K=138,Ce=3),W[2*(ue+1)+1]=65535,de=0;de<=ue;de++)J=we,we=W[2*(de+1)+1],++X<K&&J===we||(X<Ce?U.bl_tree[2*J]+=X:J!==0?(J!==ge&&U.bl_tree[2*J]++,U.bl_tree[2*x]++):X<=10?U.bl_tree[2*_]++:U.bl_tree[2*S]++,ge=J,Ce=(X=0)===we?(K=138,3):J===we?(K=6,3):(K=7,4))}function ie(U,W,ue){var de,J,ge=-1,we=W[1],X=0,K=7,Ce=4;for(we===0&&(K=138,Ce=3),de=0;de<=ue;de++)if(J=we,we=W[2*(de+1)+1],!(++X<K&&J===we)){if(X<Ce)for(;H(U,J,U.bl_tree),--X!=0;);else J!==0?(J!==ge&&(H(U,J,U.bl_tree),X--),H(U,x,U.bl_tree),j(U,X-3,2)):X<=10?(H(U,_,U.bl_tree),j(U,X-3,3)):(H(U,S,U.bl_tree),j(U,X-11,7));ge=J,Ce=(X=0)===we?(K=138,3):J===we?(K=6,3):(K=7,4)}}l(F);var te=!1;function B(U,W,ue,de){j(U,(c<<1)+(de?1:0),3),(function(J,ge,we,X){ae(J),V(J,we),V(J,~we),o.arraySet(J.pending_buf,J.window,ge,we,J.pending),J.pending+=we})(U,W,ue)}r._tr_init=function(U){te||((function(){var W,ue,de,J,ge,we=new Array(v+1);for(J=de=0;J<u-1;J++)for(I[J]=de,W=0;W<1<<$[J];W++)k[de++]=J;for(k[de-1]=J,J=ge=0;J<16;J++)for(F[J]=ge,W=0;W<1<<C[J];W++)T[ge++]=J;for(ge>>=7;J<h;J++)for(F[J]=ge<<7,W=0;W<1<<C[J]-7;W++)T[256+ge++]=J;for(ue=0;ue<=v;ue++)we[ue]=0;for(W=0;W<=143;)A[2*W+1]=8,W++,we[8]++;for(;W<=255;)A[2*W+1]=9,W++,we[9]++;for(;W<=279;)A[2*W+1]=7,W++,we[7]++;for(;W<=287;)A[2*W+1]=8,W++,we[8]++;for(le(A,f+1,we),W=0;W<h;W++)M[2*W+1]=5,M[2*W]=Q(W,5);D=new G(A,$,d+1,f,v),E=new G(M,C,0,h,v),N=new G(new Array(0),w,0,p,y)})(),te=!0),U.l_desc=new P(U.dyn_ltree,D),U.d_desc=new P(U.dyn_dtree,E),U.bl_desc=new P(U.bl_tree,N),U.bi_buf=0,U.bi_valid=0,se(U)},r._tr_stored_block=B,r._tr_flush_block=function(U,W,ue,de){var J,ge,we=0;0<U.level?(U.strm.data_type===2&&(U.strm.data_type=(function(X){var K,Ce=4093624447;for(K=0;K<=31;K++,Ce>>>=1)if(1&Ce&&X.dyn_ltree[2*K]!==0)return a;if(X.dyn_ltree[18]!==0||X.dyn_ltree[20]!==0||X.dyn_ltree[26]!==0)return s;for(K=32;K<d;K++)if(X.dyn_ltree[2*K]!==0)return s;return a})(U)),je(U,U.l_desc),je(U,U.d_desc),we=(function(X){var K;for(R(X,X.dyn_ltree,X.l_desc.max_code),R(X,X.dyn_dtree,X.d_desc.max_code),je(X,X.bl_desc),K=p-1;3<=K&&X.bl_tree[2*z[K]+1]===0;K--);return X.opt_len+=3*(K+1)+5+5+4,K})(U),J=U.opt_len+3+7>>>3,(ge=U.static_len+3+7>>>3)<=J&&(J=ge)):J=ge=ue+5,ue+4<=J&&W!==-1?B(U,W,ue,de):U.strategy===4||ge===J?(j(U,2+(de?1:0),3),$e(U,A,M)):(j(U,4+(de?1:0),3),(function(X,K,Ce,ye){var Qe;for(j(X,K-257,5),j(X,Ce-1,5),j(X,ye-4,4),Qe=0;Qe<ye;Qe++)j(X,X.bl_tree[2*z[Qe]+1],3);ie(X,X.dyn_ltree,K-1),ie(X,X.dyn_dtree,Ce-1)})(U,U.l_desc.max_code+1,U.d_desc.max_code+1,we+1),$e(U,U.dyn_ltree,U.dyn_dtree)),se(U),de&&ae(U)},r._tr_tally=function(U,W,ue){return U.pending_buf[U.d_buf+2*U.last_lit]=W>>>8&255,U.pending_buf[U.d_buf+2*U.last_lit+1]=255&W,U.pending_buf[U.l_buf+U.last_lit]=255&ue,U.last_lit++,W===0?U.dyn_ltree[2*ue]++:(U.matches++,W--,U.dyn_ltree[2*(k[ue]+d+1)]++,U.dyn_dtree[2*O(W)]++),U.last_lit===U.lit_bufsize-1},r._tr_align=function(U){j(U,2,3),H(U,b,A),(function(W){W.bi_valid===16?(V(W,W.bi_buf),W.bi_buf=0,W.bi_valid=0):8<=W.bi_valid&&(W.pending_buf[W.pending++]=255&W.bi_buf,W.bi_buf>>=8,W.bi_valid-=8)})(U)}},{"../utils/common":41}],53:[function(n,i,r){i.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,i,r){(function(o){(function(a,s){if(!a.setImmediate){var l,c,u,d,f=1,h={},p=!1,g=a.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(a);v=v&&v.setTimeout?v:a,l={}.toString.call(a.process)==="[object process]"?function(x){process.nextTick(function(){y(x)})}:(function(){if(a.postMessage&&!a.importScripts){var x=!0,_=a.onmessage;return a.onmessage=function(){x=!1},a.postMessage("","*"),a.onmessage=_,x}})()?(d="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",b,!1):a.attachEvent("onmessage",b),function(x){a.postMessage(d+x,"*")}):a.MessageChannel?((u=new MessageChannel).port1.onmessage=function(x){y(x.data)},function(x){u.port2.postMessage(x)}):g&&"onreadystatechange"in g.createElement("script")?(c=g.documentElement,function(x){var _=g.createElement("script");_.onreadystatechange=function(){y(x),_.onreadystatechange=null,c.removeChild(_),_=null},c.appendChild(_)}):function(x){setTimeout(y,0,x)},v.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var _=new Array(arguments.length-1),S=0;S<_.length;S++)_[S]=arguments[S+1];var $={callback:x,args:_};return h[f]=$,l(f),f++},v.clearImmediate=m}function m(x){delete h[x]}function y(x){if(p)setTimeout(y,0,x);else{var _=h[x];if(_){p=!0;try{(function(S){var $=S.callback,C=S.args;switch(C.length){case 0:$();break;case 1:$(C[0]);break;case 2:$(C[0],C[1]);break;case 3:$(C[0],C[1],C[2]);break;default:$.apply(s,C)}})(_)}finally{m(x),p=!1}}}}function b(x){x.source===a&&typeof x.data=="string"&&x.data.indexOf(d)===0&&y(+x.data.slice(d.length))}})(typeof self>"u"?o===void 0?this:o:self)}).call(this,typeof yw<"u"?yw:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(uZ)),uZ.exports}var Jfe=Kfe(),Qfe=Xfe(Jfe);function epe(e){var t;let n=((t=e.split(".").pop())==null?void 0:t.toLowerCase())||"";return{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",bmp:"image/bmp",tiff:"image/tiff",tif:"image/tiff",emf:"image/x-emf",wmf:"image/x-wmf",webp:"image/webp",mp4:"video/mp4",m4v:"video/mp4",webm:"video/webm",avi:"video/x-msvideo",mp3:"audio/mpeg",wav:"audio/wav",m4a:"audio/mp4",ogg:"audio/ogg"}[n]||"application/octet-stream"}function tpe(e){let t=e.search(/[?#]/);return t>=0?e.slice(0,t):e}function npe(e){let t=[];for(let n of e.replace(/\\/g,"/").split("/"))if(!(!n||n===".")){if(n===".."){t.pop();continue}t.push(n)}return t}function ipe(e){try{return decodeURIComponent(e)}catch{return e}}function LX(e){let t=npe(tpe(e)),n=t.lastIndexOf("media");return(n>=0&&n<t.length-1?t.slice(n+1):t.slice(-1)).join("/")}function EX(e){return`ppt/media/${LX(e).split("/").map(ipe).join("/")}`}function rN(e){let t=LX(e),n=EX(e),i=`ppt/media/${t}`;return n===i?[n]:[n,i]}function Hm(e,t){for(let n of rN(e)){let i=t.get(n);if(i)return{mediaPath:n,data:i}}}async function W5(e,t,n){return Hm(e,t)||n?.resolve(e)}function kh(e,t,n){let i=n.get(e);if(!i){let r=epe(e),o=new Blob([t],{type:r});i=URL.createObjectURL(o),n.set(e,i)}return i}var DX=Object.freeze({maxEntries:4e3,maxEntryUncompressedBytes:32*1024*1024,maxTotalUncompressedBytes:256*1024*1024,maxMediaBytes:192*1024*1024,maxConcurrency:8});function du(e){throw new Error(`PPTX zip limit exceeded: ${e}`)}function oN(e){return e.startsWith("ppt/media/")}function rpe(e){return e.split("/").map(t=>{try{return decodeURIComponent(t)}catch{return t}}).join("/")}function fr(e,t,n){e.set(t,n);let i=rpe(t);i!==t&&!e.has(i)&&e.set(i,n)}function ope(e){let t=e._data,n=t?.uncompressedSize;return typeof n=="number"&&Number.isFinite(n)?n:void 0}function ape(e){return new TextEncoder().encode(e).byteLength}var aN=class{constructor(t,n,i,r){this.entries=t,this.media=n,this.state=i,this.totalBytes=r,this.inflight=new Map,this.loadedPaths=new Set,this.totalCount=new Set(Array.from(t.values(),o=>o.path)).size}get loadedBytes(){var t;let n=0;for(let i of this.loadedPaths)n+=((t=this.media.get(i))==null?void 0:t.byteLength)??0;return n}get loadedCount(){return this.loadedPaths.size}async resolve(t){for(let n of rN(t)){let i=this.media.get(n);if(i)return{mediaPath:n,data:i}}for(let n of rN(t)){let i=this.entries.get(n);if(!i)continue;let r=await this.readEntry(i);return{mediaPath:n,data:r}}}async readEntry(t){let n=this.inflight.get(t.path);n||(n=OX(t.path,t.file,this.state).then(i=>(fr(this.media,t.path,i),this.loadedPaths.add(t.path),i)),this.inflight.set(t.path,n));try{return await n}finally{this.inflight.delete(t.path)}}};function Y5(e,t,n){if(n.limits.maxEntryUncompressedBytes!==void 0&&t>n.limits.maxEntryUncompressedBytes&&du(`${e} is ${t} bytes > maxEntryUncompressedBytes ${n.limits.maxEntryUncompressedBytes}`),n.knownSizeByPath.has(e))return;n.unknownTotalBytes+=t;let i=n.knownTotalBytes+n.unknownTotalBytes;if(n.limits.maxTotalUncompressedBytes!==void 0&&i>n.limits.maxTotalUncompressedBytes&&du(`total uncompressed bytes ${i} > maxTotalUncompressedBytes ${n.limits.maxTotalUncompressedBytes}`),oN(e)){n.unknownMediaBytes+=t;let r=n.knownMediaBytes+n.unknownMediaBytes;n.limits.maxMediaBytes!==void 0&&r>n.limits.maxMediaBytes&&du(`media bytes ${r} > maxMediaBytes ${n.limits.maxMediaBytes}`)}}async function tr(e,t,n){let i=await t.async("string");return Y5(e,ape(i),n),i}async function OX(e,t,n){let i=await t.async("uint8array");return Y5(e,i.byteLength,n),i}async function spe(e,t,n){if(n.knownSizeByPath.has(e)||n.limits.maxEntryUncompressedBytes===void 0&&n.limits.maxTotalUncompressedBytes===void 0)return;let i=await t.async("uint8array");Y5(e,i.byteLength,n)}async function lpe(e,t,n){if(e.length===0)return;let i=Math.min(t,e.length),r=0,o=Array.from({length:i},async()=>{for(;;){let a=r++;if(a>=e.length)return;await n(e[a])}});await Promise.all(o)}async function NX(e,t={}){return cpe(e,t,{lazyMedia:!0})}async function cpe(e,t,n){let i=t.maxConcurrency??8;(!Number.isInteger(i)||i<1)&&du(`maxConcurrency ${t.maxConcurrency} must be an integer >= 1`);let r=await Qfe.loadAsync(e),o=Object.entries(r.files).filter(([,f])=>!f.dir);t.maxEntries!==void 0&&o.length>t.maxEntries&&du(`entries ${o.length} > maxEntries ${t.maxEntries}`);let a=new Map,s=0,l=0;for(let[f,h]of o){let p=f.replace(/\\/g,"/"),g=ope(h);g!==void 0&&(a.set(p,g),t.maxEntryUncompressedBytes!==void 0&&g>t.maxEntryUncompressedBytes&&du(`${p} is ${g} bytes > maxEntryUncompressedBytes ${t.maxEntryUncompressedBytes}`),s+=g,t.maxTotalUncompressedBytes!==void 0&&s>t.maxTotalUncompressedBytes&&du(`total uncompressed bytes ${s} > maxTotalUncompressedBytes ${t.maxTotalUncompressedBytes}`),oN(p)&&(l+=g,t.maxMediaBytes!==void 0&&l>t.maxMediaBytes&&du(`media bytes ${l} > maxMediaBytes ${t.maxMediaBytes}`)))}let c={contentTypes:"",presentation:"",presentationRels:"",slides:new Map,slideRels:new Map,slideLayouts:new Map,slideLayoutRels:new Map,slideMasters:new Map,slideMasterRels:new Map,themes:new Map,themeOverrides:new Map,media:new Map,charts:new Map,chartRels:new Map,chartStyles:new Map,chartColors:new Map,diagramDrawings:new Map},u={limits:t,knownSizeByPath:a,knownTotalBytes:s,knownMediaBytes:l,unknownTotalBytes:0,unknownMediaBytes:0},d=new Map;return await lpe(o,i,async([f,h])=>{let p=f.replace(/\\/g,"/");if(p==="[Content_Types].xml"){c.contentTypes=await tr(p,h,u);return}if(p==="ppt/presentation.xml"){c.presentation=await tr(p,h,u);return}if(p==="ppt/_rels/presentation.xml.rels"){c.presentationRels=await tr(p,h,u);return}if(p==="ppt/tableStyles.xml"){c.tableStyles=await tr(p,h,u);return}if(oN(p)){if(n.lazyMedia){fr(d,p,{path:p,file:h});return}let g=await OX(p,h,u);fr(c.media,p,g);return}if(/^ppt\/slides\/_rels\/[^/]+\.xml\.rels$/.test(p)){fr(c.slideRels,p,await tr(p,h,u));return}if(/^ppt\/slides\/[^/]+\.xml$/.test(p)){fr(c.slides,p,await tr(p,h,u));return}if(/^ppt\/slideLayouts\/_rels\/[^/]+\.xml\.rels$/.test(p)){fr(c.slideLayoutRels,p,await tr(p,h,u));return}if(/^ppt\/slideLayouts\/[^/]+\.xml$/.test(p)){fr(c.slideLayouts,p,await tr(p,h,u));return}if(/^ppt\/slideMasters\/_rels\/[^/]+\.xml\.rels$/.test(p)){fr(c.slideMasterRels,p,await tr(p,h,u));return}if(/^ppt\/slideMasters\/[^/]+\.xml$/.test(p)){fr(c.slideMasters,p,await tr(p,h,u));return}if(/^ppt\/theme\/(?!themeOverride[^/]*\.xml$)[^/]+\.xml$/.test(p)){fr(c.themes,p,await tr(p,h,u));return}if(/^ppt\/theme\/themeOverride[^/]*\.xml$/.test(p)){c.themeOverrides&&fr(c.themeOverrides,p,await tr(p,h,u));return}if(/^ppt\/charts\/_rels\/[^/]+\.xml\.rels$/.test(p)){c.chartRels&&fr(c.chartRels,p,await tr(p,h,u));return}if(/^ppt\/charts\/(?!style[^/]*\.xml$)(?!colors[^/]*\.xml$)[^/]+\.xml$/.test(p)){fr(c.charts,p,await tr(p,h,u));return}if(/^ppt\/charts\/style[^/]*\.xml$/.test(p)){fr(c.chartStyles,p,await tr(p,h,u));return}if(/^ppt\/charts\/colors[^/]*\.xml$/.test(p)){fr(c.chartColors,p,await tr(p,h,u));return}if(/^ppt\/diagrams\/[^/]+\.xml$/.test(p)){fr(c.diagramDrawings,p,await tr(p,h,u));return}await spe(p,h,u)}),n.lazyMedia&&(c.mediaResolver=new aN(d,c.media,u,l)),c}var jl=class e{constructor(t){this.el=t}attr(t){if(!this.el)return;if(this.el.hasAttribute(t))return this.el.getAttribute(t);let n=t.indexOf(":"),i=n>=0?t.slice(n+1):t,r=n>=0?this.resolveAttributeNamespace(t.slice(0,n)):void 0;for(let o=0;o<this.el.attributes.length;o++){let a=this.el.attributes[o];if(a.localName===i&&(n<0||(r?a.namespaceURI===r:a.namespaceURI!==null)))return a.value}}resolveAttributeNamespace(t){var n;return((n=this.el)==null?void 0:n.lookupNamespaceURI(t))??(t==="r"?"http://schemas.openxmlformats.org/officeDocument/2006/relationships":void 0)}numAttr(t){let n=this.attr(t);if(n===void 0)return;let i=Number(n);return Number.isNaN(i)?void 0:i}child(t){if(!this.el)return new e(null);let n=this.el.children;for(let i=0;i<n.length;i++)if(n[i].localName===t)return new e(n[i]);return new e(null)}children(t){if(!this.el)return[];let n=[],i=this.el.children;for(let r=0;r<i.length;r++)(t===void 0||i[r].localName===t)&&n.push(new e(i[r]));return n}text(){return this.el?this.el.textContent??"":""}exists(){return this.el!==null}allChildren(){return this.children()}get localName(){var t;return((t=this.el)==null?void 0:t.localName)??""}get element(){return this.el}};function Kr(e){let t=new DOMParser().parseFromString(e,"application/xml"),n=t.querySelector("parsererror");return n?(console.warn("XML parse error:",n.textContent),new jl(null)):new jl(t.documentElement)}function Rs(e){return e?.trim().toLowerCase()==="external"}function upe(e){let t=e.search(/[?#]/);return t>=0?e.slice(0,t):e}function hZ(e){try{return decodeURIComponent(e)}catch{return e}}function lb(e){let t=new Map;if(!e)return t;let n=Kr(e);if(!n.exists())return t;let i=n.children("Relationship");for(let r of i){let o=r.attr("Id"),a=r.attr("Type"),s=r.attr("Target"),l=r.attr("TargetMode");o&&a!==void 0&&s!==void 0&&t.set(o,{type:a,target:s,targetMode:l})}return t}function Ia(e,t){let n=upe(t);if(n.startsWith("/"))return n.slice(1).replace(/\\/g,"/").split("/").map(hZ).join("/");let i=e.replace(/\\/g,"/").split("/").filter(Boolean),r=n.replace(/\\/g,"/").split("/").filter(Boolean).map(hZ),o=[...i];for(let a of r)a===".."?o.pop():a!=="."&&o.push(a);return o.join("/")}function De(e){return e/914400*96}function Zm(e){return e/6e4}function W2(e){return e/1e5}function dpe(e){return e*96/72}var hpe=["dk1","dk2","lt1","lt2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"];function fpe(e){let t=e.child("srgbClr");if(t.exists())return t.attr("val");let n=e.child("sysClr");if(n.exists())return n.attr("lastClr")??n.attr("val")}function fZ(e){let t={};for(let i of e.children("font")){let r=i.attr("script"),o=i.attr("typeface");r&&o&&(t[r]=o)}let n={latin:e.child("latin").attr("typeface")??"",ea:e.child("ea").attr("typeface")??"",cs:e.child("cs").attr("typeface")??""};return Object.keys(t).length>0&&(n.scripts=t),n}function pZ(e){let t=e.child("themeElements"),n=t.exists()?t:e,i=n.child("clrScheme"),r=new Map;for(let h of hpe){let p=i.child(h);if(p.exists()){let g=fpe(p);g!==void 0&&r.set(h,g)}}let o=n.child("fontScheme"),a=fZ(o.child("majorFont")),s=fZ(o.child("minorFont")),l=n.child("fmtScheme"),c=l.child("fillStyleLst").allChildren(),u=l.child("bgFillStyleLst").allChildren(),d=l.child("lnStyleLst").allChildren(),f=l.child("effectStyleLst").allChildren();return{colorScheme:r,majorFont:a,minorFont:s,fillStyles:c,bgFillStyles:u,lineStyles:d,effectStyles:f}}function ppe(e){for(let t of["nvSpPr","nvPicPr","nvGraphicFramePr","nvCxnSpPr"]){let n=e.child(t);if(n.exists()&&n.child("nvPr").child("ph").exists())return!0}return!1}function mpe(e){let t=e.child("spPr").child("xfrm"),n=t.exists()?t:e.child("xfrm");if(!n.exists())return null;let i=n.child("off"),r=n.child("ext"),o=i.numAttr("x")??0,a=i.numAttr("y")??0,s=r.numAttr("cx")??0,l=r.numAttr("cy")??0;return{offX:o,offY:a,cx:s,cy:l}}function gpe(e){let t=e.child("grpSpPr");if(!t.exists())return null;let n=t.child("xfrm");if(!n.exists())return null;let i=n.child("off"),r=n.child("ext"),o=n.child("chOff"),a=n.child("chExt"),s=i.numAttr("x")??0,l=i.numAttr("y")??0,c=r.numAttr("cx")??0,u=r.numAttr("cy")??0,d=o.exists()?o.numAttr("x")??0:0,f=o.exists()?o.numAttr("y")??0:0,h=a.exists()?a.numAttr("cx")??c:c,p=a.exists()?a.numAttr("cy")??u:u;return{offX:s,offY:l,cx:c,cy:u,chOffX:d,chOffY:f,chExtCx:h>0?h:1,chExtCy:p>0?p:1}}function sN(e,t){let n=[];for(let i of e.allChildren()){if(i.localName==="grpSp"){let o=gpe(i);if(o&&o.chExtCx>0&&o.chExtCy>0){let a=o.cx/o.chExtCx,s=o.cy/o.chExtCy,l=o.offX-o.chOffX*a,c=o.offY-o.chOffY*s,u=t?{offX:t.offX+l*t.scaleX,offY:t.offY+c*t.scaleY,scaleX:t.scaleX*a,scaleY:t.scaleY*s}:{offX:l,offY:c,scaleX:a,scaleY:s};n.push(...sN(i,u))}else n.push(...sN(i,t));continue}if(!ppe(i))continue;let r=mpe(i);if(!r){n.push({node:i});continue}if(t){let o=t.offX+r.offX*t.scaleX,a=t.offY+r.offY*t.scaleY,s=r.cx*t.scaleX,l=r.cy*t.scaleY;n.push({node:i,absoluteXfrm:{position:{x:De(o),y:De(a)},size:{w:De(s),h:De(l)}}})}else n.push({node:i,absoluteXfrm:{position:{x:De(r.offX),y:De(r.offY)},size:{w:De(r.cx),h:De(r.cy)}}})}return n}function vpe(e){let t=new Map,n=e.element;if(!n)return t;let i=n.attributes;for(let r=0;r<i.length;r++){let o=i[r];t.set(o.localName,o.value)}return t}function ype(e){let t=e.child("cSld"),n=t.child("bg"),i=n.exists()?n:void 0,r=t.child("spTree"),o=e.child("clrMap"),a=vpe(o),s=e.child("txStyles"),l=s.child("titleStyle"),c=s.child("bodyStyle"),u=s.child("otherStyle"),d=e.child("defaultTextStyle"),f=sN(r,null),h=f.map(p=>p.node);return{colorMap:a,background:i,textStyles:{titleStyle:l.exists()?l:void 0,bodyStyle:c.exists()?c:void 0,otherStyle:u.exists()?u:void 0},defaultTextStyle:d.exists()?d:void 0,placeholders:h,placeholderEntries:f,spTree:r,rels:new Map}}var bpe=new Set(["1","true","t","on"]),xpe=new Set(["0","false","f","off"]);function yr(e,t=!1){if(e===void 0)return t;let n=e.trim().toLowerCase();return bpe.has(n)?!0:xpe.has(n)?!1:t}function _pe(e){return yr(e,!0)}function Spe(e){for(let t of["nvSpPr","nvPicPr","nvGraphicFramePr","nvCxnSpPr"]){let n=e.child(t);if(n.exists()&&n.child("nvPr").child("ph").exists())return!0}return!1}function $pe(e){let t=e.child("spPr").child("xfrm"),n=t.exists()?t:e.child("xfrm");if(!n.exists())return null;let i=n.child("off"),r=n.child("ext"),o=i.numAttr("x")??0,a=i.numAttr("y")??0,s=r.numAttr("cx")??0,l=r.numAttr("cy")??0;return{offX:o,offY:a,cx:s,cy:l}}function wpe(e){let t=e.child("grpSpPr");if(!t.exists())return null;let n=t.child("xfrm");if(!n.exists())return null;let i=n.child("off"),r=n.child("ext"),o=n.child("chOff"),a=n.child("chExt"),s=i.numAttr("x")??0,l=i.numAttr("y")??0,c=r.numAttr("cx")??0,u=r.numAttr("cy")??0,d=o.exists()?o.numAttr("x")??0:0,f=o.exists()?o.numAttr("y")??0:0,h=a.exists()?a.numAttr("cx")??c:c,p=a.exists()?a.numAttr("cy")??u:u;return{offX:s,offY:l,cx:c,cy:u,chOffX:d,chOffY:f,chExtCx:h>0?h:1,chExtCy:p>0?p:1}}function lN(e,t){let n=[];for(let i of e.allChildren()){if(i.localName==="grpSp"){let o=wpe(i);if(o&&o.chExtCx>0&&o.chExtCy>0){let a=o.cx/o.chExtCx,s=o.cy/o.chExtCy,l=o.offX-o.chOffX*a,c=o.offY-o.chOffY*s,u=t?{offX:t.offX+l*t.scaleX,offY:t.offY+c*t.scaleY,scaleX:t.scaleX*a,scaleY:t.scaleY*s}:{offX:l,offY:c,scaleX:a,scaleY:s},d=lN(i,u);n.push(...d)}else n.push(...lN(i,t));continue}if(!Spe(i))continue;let r=$pe(i);if(!r){n.push({node:i});continue}if(t){let o=t.offX+r.offX*t.scaleX,a=t.offY+r.offY*t.scaleY,s=r.cx*t.scaleX,l=r.cy*t.scaleY;n.push({node:i,absoluteXfrm:{position:{x:De(o),y:De(a)},size:{w:De(s),h:De(l)}}})}else n.push({node:i,absoluteXfrm:{position:{x:De(r.offX),y:De(r.offY)},size:{w:De(r.cx),h:De(r.cy)}}})}return n}function kpe(e){let t=new Map,n=e.element;if(!n)return t;let i=n.attributes;for(let r=0;r<i.length;r++){let o=i[r];t.set(o.localName,o.value)}return t}function Mpe(e){let t=e.child("cSld"),n=t.child("bg"),i=n.exists()?n:void 0,r=t.child("spTree"),o,a=e.child("clrMapOvr");if(a.exists()){let c=a.child("overrideClrMapping");c.exists()&&(o=kpe(c))}let s=lN(r,null),l=_pe(e.attr("showMasterSp"));return{colorMapOverride:o,background:i,placeholders:s,spTree:r,rels:new Map,showMasterSp:l}}function Cpe(e){let t=["nvSpPr","nvPicPr","nvGrpSpPr","nvGraphicFramePr","nvCxnSpPr"];for(let n of t){let i=e.child(n);if(i.exists())return{cNvPr:i.child("cNvPr"),nvPr:i.child("nvPr")}}return{cNvPr:e.child("cNvPr"),nvPr:e.child("nvPr")}}function zpe(e){let t=e.child("spPr");if(t.exists()){let r=t.child("xfrm");if(r.exists())return r}let n=e.child("grpSpPr");if(n.exists()){let r=n.child("xfrm");if(r.exists())return r}let i=e.child("xfrm");return i.exists()?i:e.child("__nonexistent__")}function Tpe(e){let t=e.child("ph");if(!t.exists())return;let n=t.attr("type"),i=t.numAttr("idx");return{type:n,idx:i}}function Ah(e){let{cNvPr:t,nvPr:n}=Cpe(e),i=t.attr("id")??"",r=t.attr("name")??"",o=zpe(e),a=o.child("off"),s=o.child("ext"),l={x:De(a.numAttr("x")??0),y:De(a.numAttr("y")??0)},c={w:De(s.numAttr("cx")??0),h:De(s.numAttr("cy")??0)},u=Zm(o.numAttr("rot")??0),d=yr(o.attr("flipH")),f=yr(o.attr("flipV")),h=Tpe(n),p,g=t.child("hlinkClick");return g.exists()&&(p={action:g.attr("action")??void 0,rId:g.attr("id")??g.attr("r:id")??void 0,tooltip:g.attr("tooltip")??void 0}),{id:i,name:r,position:l,size:c,rotation:u,flipH:d,flipV:f,placeholder:h,hlinkClick:p,source:e}}function Ape(e){let t=e.child("pPr"),n=t.numAttr("lvl")??0,i=[];for(let a of e.children("r")){let s=a.child("rPr"),l=a.child("t");i.push({text:l.text(),properties:s.exists()?s:void 0})}for(let a of e.allChildren())a.localName;let r=[];for(let a of e.allChildren()){let s=a.localName;if(s==="r"){let l=a.child("rPr"),c=a.child("t");r.push({text:c.text(),properties:l.exists()?l:void 0})}else if(s==="br"){let l=a.child("rPr");r.push({text:`
`,properties:l.exists()?l:void 0})}else if(s==="tab")r.push({text:"	"});else if(s==="fld"){let l=a.child("rPr"),c=a.child("t");r.push({text:c.text(),properties:l.exists()?l:void 0})}}let o=e.child("endParaRPr");return{properties:t.exists()?t:void 0,runs:r.length>0?r:i,level:n,endParaRPr:o.exists()?o:void 0}}function PX(e){if(!e.exists())return;let t=e.child("bodyPr"),n=e.child("lstStyle"),i=[];for(let r of e.children("p"))i.push(Ape(r));return{bodyProperties:t.exists()?t:void 0,listStyle:n.exists()?n:void 0,paragraphs:i}}var Ipe=["solidFill","gradFill","blipFill","pattFill","grpFill","noFill"];function Rpe(e){for(let t of Ipe){let n=e.child(t);if(n.exists())return n}}function Lpe(e){let t=new Map;for(let n of e.children("gd")){let i=n.attr("name"),r=n.attr("fmla")??"";if(!i)continue;let o=r.match(/val\s+(-?\d+)/);if(o)t.set(i,Number(o[1]));else{let a=Number(r);Number.isNaN(a)||t.set(i,a)}}return t}function Epe(e){let t=Ah(e),n=e.child("spPr"),i=n.child("prstGeom"),r=i.attr("prst"),o=i.child("avLst"),a=Lpe(o),s=n.child("custGeom"),l=s.exists()?s:void 0,c=Rpe(n),u=n.child("ln"),d=u.exists()?u:void 0,f,h;if(u.exists()){let y=u.child("headEnd");if(y.exists()){let x=y.attr("type");x&&x!=="none"&&(f={type:x,w:y.attr("w"),len:y.attr("len")})}let b=u.child("tailEnd");if(b.exists()){let x=b.attr("type");x&&x!=="none"&&(h={type:x,w:b.attr("w"),len:b.attr("len")})}}let p=e.child("txBody"),g=PX(p),v,m=e.child("txXfrm");if(m.exists()){let y=m.child("off"),b=m.child("ext"),x=n.child("xfrm"),_=x.child("off"),S=x.child("ext"),$=_.numAttr("x")??0,C=_.numAttr("y")??0,w=S.numAttr("cx")??0,z=S.numAttr("cy")??0,A=y.numAttr("x")??0,M=y.numAttr("y")??0,T=b.numAttr("cx")??0,k=b.numAttr("cy")??0;if(w>0&&z>0){let I=Zm(m.numAttr("rot")??0),D=A-$,E=M-C,N=Math.abs(Math.round(I))%360===180,F=N?w-(D+T):D,G=N?z-(E+k):E;v={x:De(F),y:De(G),w:De(T),h:De(k),rotation:I}}}return{...t,nodeType:"shape",presetGeometry:r,adjustments:a,customGeometry:l,fill:c,line:d,headEnd:f,tailEnd:h,textBody:g,textBoxBounds:v}}var xw=1e5;function jX(e){let t=Ah(e),n=e.child("blipFill"),i=n.child("blip"),r=i.attr("embed")??i.attr("r:embed"),o=i.attr("link")??i.attr("r:link"),a=n.child("srcRect"),s;if(a.exists()){let C=a.numAttr("t"),w=a.numAttr("b"),z=a.numAttr("l"),A=a.numAttr("r");(C!==void 0||w!==void 0||z!==void 0||A!==void 0)&&(s={top:(C??0)/xw,bottom:(w??0)/xw,left:(z??0)/xw,right:(A??0)/xw})}let l=e.child("spPr"),c=l.child("solidFill"),u=l.child("gradFill"),d=c.exists()?c:u.exists()?u:void 0,f=l.child("ln"),h=f.exists()?f:void 0,p=l.child("prstGeom"),g=p.exists()?p.attr("prst"):void 0,v=l.child("custGeom"),m=v.exists()?v:void 0,y=e.child("nvPicPr").child("nvPr"),b=y.child("videoFile"),x=y.child("audioFile"),_=b.exists(),S=x.exists(),$;return _?$=b.attr("link")??b.attr("r:link"):S&&($=x.attr("link")??x.attr("r:link")),{...t,nodeType:"picture",blipEmbed:r,blipLink:o,crop:s,fill:d,line:h,presetGeometry:g,customGeometry:m,isVideo:_||void 0,isAudio:S||void 0,mediaRId:$}}function Dpe(e){let t=e.numAttr("gridSpan")??1,n=e.numAttr("rowSpan")??1,i=yr(e.attr("hMerge")),r=yr(e.attr("vMerge")),o=e.child("txBody"),a=PX(o),s=e.child("tcPr");return{gridSpan:t,rowSpan:n,hMerge:i,vMerge:r,textBody:a,properties:s.exists()?s:void 0}}function Ope(e){let t=De(e.numAttr("h")??0),n=[];for(let i of e.children("tc"))n.push(Dpe(i));return{height:t,cells:n}}function Npe(e){return e.child("graphic").child("graphicData").child("tbl")}function Ppe(e){let t=e.child("tableStyleId");if(t.exists())return t.text()||t.attr("val")||void 0;let n=e.child("tblStyle");return n.exists()?n.attr("val")??(n.text()||void 0):e.attr("tblStyle")??void 0}function jpe(e){let t=Ah(e),n=Npe(e),i=n.child("tblGrid"),r=[];for(let l of i.children("gridCol"))r.push(De(l.numAttr("w")??0));let o=[];for(let l of n.children("tr"))o.push(Ope(l));let a=n.child("tblPr"),s=Ppe(a);return{...t,nodeType:"table",columns:r,rows:o,properties:a.exists()?a:void 0,tableStyleId:s}}var Upe=new Set(["sp","pic","grpSp","graphicFrame","cxnSp"]);function Bpe(e){let t=Ah(e),n=e.child("grpSpPr").child("xfrm"),i=n.child("chOff"),r=n.child("chExt"),o=i.exists()?{x:De(i.numAttr("x")??0),y:De(i.numAttr("y")??0)}:{x:0,y:0},a=(()=>{if(!r.exists())return{w:t.size.w,h:t.size.h};let l=r.numAttr("cx"),c=r.numAttr("cy");return{w:l!==void 0&&l>0?De(l):t.size.w,h:c!==void 0&&c>0?De(c):t.size.h}})(),s=[];for(let l of e.allChildren())Upe.has(l.localName)&&s.push(l);return{...t,nodeType:"group",childOffset:o,childExtent:a,children:s}}function Fpe(e,t,n){let i=Ah(e),r=e.child("graphic").child("graphicData"),o;for(let c of r.allChildren())if(c.localName==="chart"){o=c.attr("r:id")||c.attr("id");break}if(!o)return;let a=t.get(o);if(!a)return;let s=n.substring(0,n.lastIndexOf("/")),l=Ia(s,a.target);return{...i,nodeType:"chart",chartPath:l}}var qpe=new Set(["sp","pic","grpSp","graphicFrame","cxnSp"]),Vpe=["nvSpPr","nvPicPr","nvGrpSpPr","nvGraphicFramePr","nvCxnSpPr"];function UX(e){for(let t of Vpe){let n=e.child(t);if(n.exists()&&n.child("nvPr").child("ph").exists())return!0}return!1}function Hpe(e){return e.child("graphic").child("graphicData").child("tbl").exists()}function Zpe(e){return(e.child("graphic").child("graphicData").attr("uri")||"").includes("chart")}function Gpe(e){return(e.child("graphic").child("graphicData").attr("uri")||"").includes("diagram")}function Wpe(e){if(!e)return"";let t=e.lastIndexOf("/");return t>=0?e.substring(0,t):""}function Ype(e){let t=e.child("graphic").child("graphicData");if(!(t.attr("uri")||"").includes("ole"))return null;let n=o=>{let a=o.child("blipFill").child("blip");return!!(a.attr("embed")??a.attr("r:embed")??a.attr("link")??a.attr("r:link"))},i=t.child("oleObj");if(i.exists()){let o=i.child("pic");if(o.exists()&&n(o))return o}let r=t.child("AlternateContent");if(!r.exists())return null;for(let o of["Fallback","Choice"]){let a=r.child(o).child("oleObj");if(!a.exists())continue;let s=a.child("pic");if(s.exists()&&n(s))return s}return null}function Xpe(e){let t=Ype(e);if(!t)return;let n=Ah(e),i=jX(t);if(!(!i.blipEmbed&&!i.blipLink))return{...i,...n,nodeType:"picture",source:t}}function Kpe(e,t){let n=Kr(t).child("spTree"),i=[];if(n.exists())for(let r of n.allChildren())qpe.has(r.localName)&&i.push(r);return{...e,nodeType:"group",childOffset:{x:0,y:0},childExtent:{w:Math.max(1,e.size.w),h:Math.max(1,e.size.h)},children:i}}function Jpe(e,t){var n;if(!t.diagramDrawings)return;let i=Ah(e),r=Wpe(t.partPath),o=Array.from(t.rels.values()).filter(s=>s.type.includes("diagramDrawing")||s.target.includes("diagrams/drawing")).map(s=>{let l=s.target.match(/drawing(\d+)/);return{target:s.target,num:l?Number.parseInt(l[1],10):void 0}}),a=e.child("graphic").child("graphicData").child("relIds");if(a.exists()){let s=a.attr("r:dm")??a.attr("dm"),l=s?t.rels.get(s):void 0,c=(n=l?.target.match(/data(\d+)/))==null?void 0:n[1];if(c){let u=Number.parseInt(c,10);o.sort((d,f)=>{let h=d.num===void 0?Number.POSITIVE_INFINITY:Math.abs(d.num-u),p=f.num===void 0?Number.POSITIVE_INFINITY:Math.abs(f.num-u);return h-p})}}for(let s of o){let l=Ia(r,s.target),c=t.diagramDrawings.get(l);if(c)return Kpe(i,c)}}function X5(e,t){if(!(t.skipPlaceholders&&UX(e)))switch(e.localName){case"sp":case"cxnSp":return Epe(e);case"pic":return jX(e);case"grpSp":return Bpe(e);case"graphicFrame":return Hpe(e)?jpe(e):Zpe(e)?Fpe(e,t.rels,t.partPath??""):Gpe(e)?Jpe(e,t):Xpe(e);default:return}}function mZ(e){return yr(e,!0)}function BX(e){for(let[,t]of e)if(t.type.includes("slideLayout"))return t.target;return""}function FX(e,t,n,i="",r){let o=e.child("cSld"),a=o.child("bg"),s=a.exists()?a:void 0,l=o.child("spTree"),c=[];for(let h of l.allChildren()){let p=X5(h,{rels:n,partPath:i,diagramDrawings:r});p&&c.push(p)}let u=BX(n),d=mZ(e.attr("showMasterSp")),f=!mZ(e.attr("show"));return{index:t,hidden:f,nodes:c,background:s,layoutIndex:u,rels:n,slidePath:i,showMasterSp:d,nodesMaterialized:!0}}function Qpe(e,t,n,i=""){return{index:t,nodes:[],layoutIndex:BX(n),rels:n,slidePath:i,showMasterSp:!0,sourceXml:e,nodesMaterialized:!1}}function eme(e,t){if(e.nodesMaterialized)return;if(!e.sourceXml){e.nodesMaterialized=!0;return}let n=e.layoutIndex,i=FX(Kr(e.sourceXml),e.index,e.rels,e.slidePath,t);e.hidden=i.hidden,e.nodes=i.nodes,e.background=i.background,e.layoutIndex=n||i.layoutIndex,e.showMasterSp=i.showMasterSp,e.nodesMaterialized=!0,e.sourceXml=void 0}function hh(e){let t=e.lastIndexOf("/");return t>=0?e.substring(0,t):""}function _w(e){let t=hh(e),n=e.substring(e.lastIndexOf("/")+1);return`${t}/_rels/${n}.rels`}function tme(e){return e.includes("wps")||e.includes("kso")||e.includes("Kingsoft")||e.includes("WPS")}function cb(e,t){for(let[,n]of e)if(n.type.includes(t))return n}function nme(e,t){let n=[];for(let[i,r]of e)r.type.includes(t)&&n.push([i,r]);return n}function qX(e,t={}){var n,i,r,o;let a=Kr(e.presentation),s=lb(e.presentationRels),l=a.child("sldSz"),c=De(l.numAttr("cx")??9144e3),u=De(l.numAttr("cy")??6858e3),d=tme(e.presentation),f=a.child("defaultTextStyle"),h=new Map;for(let[M,T]of e.themes){let k=Kr(T);h.set(M,pZ(k))}let p=new Map,g=new Map;for(let[M,T]of e.slideMasters){let k=Kr(T),I=ype(k),D=_w(M),E=e.slideMasterRels.get(D);if(E){let N=lb(E);I.rels=N;let F=cb(N,"theme");if(F){let G=Ia(hh(M),F.target);g.set(M,G)}}p.set(M,I)}let v=new Map,m=new Map;for(let[M,T]of e.slideLayouts){let k=Kr(T),I=Mpe(k),D=_w(M),E=e.slideLayoutRels.get(D);if(E){let N=lb(E);I.rels=N;let F=cb(N,"slideMaster");if(F){let G=Ia(hh(M),F.target);m.set(M,G)}}v.set(M,I)}let y=new Map,b=new Map,x=new Map,_=new Map;for(let[M,T]of e.charts){let k=Kr(T);k.exists()&&y.set(M,k);let I=_w(M),D=(n=e.chartRels)==null?void 0:n.get(I);if(!D)continue;let E=lb(D),N=cb(E,"chartStyle");if(N){let j=Ia(hh(M),N.target),H=(i=e.chartStyles)==null?void 0:i.get(j);if(H){let Q=Kr(H);Q.exists()&&x.set(M,Q)}}let F=cb(E,"chartColorStyle");if(F){let j=Ia(hh(M),F.target),H=(r=e.chartColors)==null?void 0:r.get(j);if(H){let Q=Kr(H);Q.exists()&&_.set(M,Q)}}let G=cb(E,"themeOverride");if(!G)continue;let P=Ia(hh(M),G.target),O=((o=e.themeOverrides)==null?void 0:o.get(P))??e.themes.get(P);if(!O)continue;let V=Kr(O);V.exists()&&b.set(M,pZ(V))}let S=a.child("sldIdLst"),$=[];for(let M of S.children("sldId")){let T=M.attr("r:id")??M.attr("id");if(T){let k=s.get(T);if(k){let I=Ia("ppt",k.target);$.push(I)}}}if($.length===0){let M=nme(s,"slide");M.sort((T,k)=>{let I=parseInt(T[0].replace(/\D/g,""),10)||0,D=parseInt(k[0].replace(/\D/g,""),10)||0;return I-D});for(let[,T]of M)if(T.type.includes("/slide")&&!T.type.includes("slideLayout")&&!T.type.includes("slideMaster")){let k=Ia("ppt",T.target);$.push(k)}}let C=[],w=new Map;for(let M=0;M<$.length;M++){let T=$[M],k=e.slides.get(T);if(!k)continue;let I=_w(T),D=e.slideRels.get(I),E=D?lb(D):new Map,N=t.lazySlides?Qpe(k,M,E,T):FX(Kr(k),M,E,T,e.diagramDrawings);if(N.layoutIndex){let F=Ia(hh(T),N.layoutIndex);N.layoutIndex=F,w.set(M,F)}C.push(N)}let z;if(e.tableStyles){let M=Kr(e.tableStyles);M.exists()&&(z=M)}let A={width:c,height:u,slides:C,layouts:v,masters:p,themes:h,slideToLayout:w,layoutToMaster:m,masterToTheme:g,media:e.media,mediaResolver:e.mediaResolver,tableStyles:z,defaultTextStyle:f.exists()?f:void 0,charts:y,diagramDrawings:e.diagramDrawings,chartThemes:b,chartStyles:x,chartColorStyles:_,isWps:d};return t.lazySlides||rme(A),A}function cN(e){for(let t of["nvSpPr","nvPicPr","nvGrpSpPr","nvGraphicFramePr","nvCxnSpPr"]){let n=e.child(t);if(n.exists()){let i=n.child("nvPr").child("ph");if(i.exists()){let r=i.attr("type"),o=i.attr("idx"),a=o!==void 0?Number(o):void 0;return{type:r,idx:a!==void 0&&!isNaN(a)?a:void 0}}}}return{}}function gZ(e){let t=e.child("spPr").child("xfrm"),n=t.exists()?t:e.child("xfrm");if(n.exists()){let i=n.child("off"),r=n.child("ext"),o=i.numAttr("x"),a=r.numAttr("cx");if(o!==void 0&&a!==void 0)return{position:{x:De(i.numAttr("x")??0),y:De(i.numAttr("y")??0)},size:{w:De(r.numAttr("cx")??0),h:De(r.numAttr("cy")??0)}}}}function vZ(e,t,n){let i;for(let r of e){let o=cN(r.node);if(t!==void 0&&o.type===t&&n!==void 0&&o.idx===n||(t!==void 0&&o.type===t&&!i&&(i=r),n!==void 0&&o.idx===n&&t===void 0&&o.type===void 0))return r}if(t===void 0&&n!==void 0){for(let r of e)if(cN(r.node).idx===n)return r}return i}function ime(e){return e.placeholderEntries??e.placeholders.map(t=>({node:t}))}function rme(e){for(let t=0;t<e.slides.length;t++)VX(e,e.slides[t])}function VX(e,t){if(t.placeholderInheritanceResolved)return;let n=e.slideToLayout.get(t.index)||t.layoutIndex,i=n?e.layouts.get(n):void 0,r=n?e.layoutToMaster.get(n):void 0,o=r?e.masters.get(r):void 0;ame(t.nodes,i,o),t.placeholderInheritanceResolved=!0}function Gm(e,t){eme(t,e.diagramDrawings),VX(e,t)}function hD(e){let t=e.child("txBody");if(!t.exists())return;let n=t.child("bodyPr");return n.exists()?n:void 0}function fD(e,t){if(e.type)return;let n=cN(t);n.type&&(e.type=n.type)}function ome(e,t){let n=t.childExtent.w>0?t.size.w/t.childExtent.w:1,i=t.childExtent.h>0?t.size.h/t.childExtent.h:1;return n===0||i===0?e:{position:{x:t.childOffset.x+(e.position.x-t.position.x)/n,y:t.childOffset.y+(e.position.y-t.position.y)/i},size:{w:e.size.w/n,h:e.size.h/i}}}function yZ(e,t){return t.parentGroup?ome(e,t.parentGroup):e}function HX(e,t,n,i={}){if(!e.placeholder)return;let{type:r,idx:o}=e.placeholder,a=()=>{var u;return n?vZ(ime(n),((u=e.placeholder)==null?void 0:u.type)??r,o):void 0},s=e.size.w===0&&e.size.h===0,l=e.position.y<5;if(t){let u=vZ(t.placeholders,r,o);if(u){fD(e.placeholder,u.node);let d=u.absoluteXfrm??gZ(u.node);if(d){let f=yZ(d,i);s?(e.position=f.position,e.size=f.size):l&&(e.position=f.position)}if("textBody"in e&&e.textBody){let f=hD(u.node);f&&(e.textBody.layoutBodyProperties=f)}if(d){let f=a();if(f&&(fD(e.placeholder,f.node),"textBody"in e&&e.textBody&&!e.textBody.layoutBodyProperties)){let h=hD(f.node);h&&(e.textBody.layoutBodyProperties=h)}return}}}let c=a();if(c){fD(e.placeholder,c.node);let u=c.absoluteXfrm??gZ(c.node);if(u){let d=yZ(u,i);s?(e.position=d.position,e.size=d.size):l&&(e.position=d.position)}if("textBody"in e&&e.textBody&&!e.textBody.layoutBodyProperties){let d=hD(c.node);d&&(e.textBody.layoutBodyProperties=d)}}}function ame(e,t,n){for(let i of e)i.nodeType==="group"&&"children"in i,HX(i,t,n)}function sme(e,t,n,i,r,o){let a=e.slideToLayout.get(t.index)||"",s=e.layoutToMaster.get(a)||"",l=e.masterToTheme.get(s)||"",c=e.layouts.get(a)||{placeholders:[],spTree:{},rels:new Map,showMasterSp:!0},u=e.masters.get(s)||{colorMap:new Map,textStyles:{},placeholders:[],spTree:{},rels:new Map},d=e.themes.get(l)||{colorScheme:new Map,majorFont:{latin:"Calibri",ea:"",cs:""},minorFont:{latin:"Calibri",ea:"",cs:""},fillStyles:[],bgFillStyles:[],lineStyles:[],effectStyles:[]};return{presentation:e,slide:t,theme:d,master:u,layout:c,partPath:t.slidePath,layoutPath:a,masterPath:s,mediaUrlCache:n??new Map,colorCache:new Map,pdfjs:r,signal:o,chartInstances:i}}function Gt(e){let t=e.replace(/^#/,"");if(t.length!==6&&t.length!==3)return{r:0,g:0,b:0};let n=t.length===3?t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:t,i=parseInt(n,16);return{r:i>>16&255,g:i>>8&255,b:i&255}}function qn(e,t,n){let i=r=>Math.max(0,Math.min(255,Math.round(r)));return"#"+[i(e),i(t),i(n)].map(r=>r.toString(16).padStart(2,"0")).join("")}function Oa(e,t,n){let i=e/255,r=t/255,o=n/255,a=Math.max(i,r,o),s=Math.min(i,r,o),l=(a+s)/2,c=0,u=0;if(a!==s){let d=a-s;switch(u=l>.5?d/(2-a-s):d/(a+s),a){case i:c=((r-o)/d+(r<o?6:0))*60;break;case r:c=((o-i)/d+2)*60;break;case o:c=((i-r)/d+4)*60;break}}return{h:c,s:u,l}}function $o(e,t,n){if(e=(e%360+360)%360,t=Math.max(0,Math.min(1,t)),n=Math.max(0,Math.min(1,n)),t===0){let s=Math.round(n*255);return{r:s,g:s,b:s}}let i=(s,l,c)=>(c<0&&(c+=1),c>1&&(c-=1),c<1/6?s+(l-s)*6*c:c<1/2?l:c<2/3?s+(l-s)*(2/3-c)*6:s),r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=e/360;return{r:Math.round(i(o,r,a+1/3)*255),g:Math.round(i(o,r,a)*255),b:Math.round(i(o,r,a-1/3)*255)}}function Ll(e){let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function El(e){let t=e<=.0031308?e*12.92:1.055*e**.4166666666666667-.055;return Math.max(0,Math.min(255,Math.round(t*255)))}function ZX(e,t){let{r:n,g:i,b:r}=Gt(e),o=t/1e5,a=Ll(n),s=Ll(i),l=Ll(r);return qn(El(a*o+1*(1-o)),El(s*o+1*(1-o)),El(l*o+1*(1-o)))}function lme(e,t){let{r:n,g:i,b:r}=Gt(e),o=t/1e5;return qn(El(Ll(n)*o),El(Ll(i)*o),El(Ll(r)*o))}function cme(e,t){let{r:n,g:i,b:r}=Gt(e),{h:o,s:a,l:s}=Oa(n,i,r),l=Math.max(0,Math.min(1,s*(t/1e5))),c=$o(o,a,l);return qn(c.r,c.g,c.b)}function ume(e,t){let{r:n,g:i,b:r}=Gt(e),{h:o,s:a,l:s}=Oa(n,i,r),l=Math.max(0,Math.min(1,s+t/1e5)),c=$o(o,a,l);return qn(c.r,c.g,c.b)}function dme(e,t){let{r:n,g:i,b:r}=Gt(e),{h:o,s:a,l:s}=Oa(n,i,r),l=Math.max(0,Math.min(1,a*(t/1e5))),c=$o(o,l,s);return qn(c.r,c.g,c.b)}function hme(e,t){let{r:n,g:i,b:r}=Gt(e),{h:o,s:a,l:s}=Oa(n,i,r),l=o*(t/1e5)%360,c=$o(l,a,s);return qn(c.r,c.g,c.b)}function fme(e,t){let{r:n,g:i,b:r}=Gt(e),{h:o,s:a,l:s}=Oa(n,i,r),l=t/6e4,c=((o+l)%360+360)%360,u=$o(c,a,s);return qn(u.r,u.g,u.b)}function pme(e,t){let{r:n,g:i,b:r}=Gt(e),{h:o,s:a,l:s}=Oa(n,i,r),l=Math.max(0,Math.min(1,a+t/1e5)),c=$o(o,l,s);return qn(c.r,c.g,c.b)}function GX(e){return e/1e5*255}function K5(e,t,n){let i=Gt(e);return i[t]=n(i[t]),qn(i.r,i.g,i.b)}function pD(e,t,n){return K5(e,t,i=>i*(n/1e5))}function mD(e,t,n){return K5(e,t,i=>i+GX(n))}function gD(e,t,n){return K5(e,t,()=>GX(n))}function mme(e,t){let{r:n,g:i,b:r}=Gt(e),{h:o,s:a}=Oa(n,i,r),s=$o(o,a,t/1e5);return qn(s.r,s.g,s.b)}function gme(e,t){let{r:n,g:i,b:r}=Gt(e),{h:o,l:a}=Oa(n,i,r),s=$o(o,t/1e5,a);return qn(s.r,s.g,s.b)}function vme(e,t){let{r:n,g:i,b:r}=Gt(e),{s:o,l:a}=Oa(n,i,r),s=$o(t/6e4,o,a);return qn(s.r,s.g,s.b)}function yme(e){let{r:t,g:n,b:i}=Gt(e);return qn(255-t,255-n,255-i)}function bme(e){let{r:t,g:n,b:i}=Gt(e),r=.2126*t+.7152*n+.0722*i;return qn(r,r,r)}function xme(e){let{r:t,g:n,b:i}=Gt(e),{h:r,s:o,l:a}=Oa(t,n,i),s=$o(r+180,o,a);return qn(s.r,s.g,s.b)}function _me(e){let{r:t,g:n,b:i}=Gt(e);return qn(Ll(t)*255,Ll(n)*255,Ll(i)*255)}function Sme(e){let{r:t,g:n,b:i}=Gt(e);return qn(El(t/255),El(n/255),El(i/255))}function $me(e){return Math.max(0,Math.min(1,e/1e5))}function Ar(e,t){let n=e,i=1;for(let r of t)switch(r.name.startsWith("a:")?r.name.slice(2):r.name){case"tint":n=ZX(n,r.val);break;case"shade":n=lme(n,r.val);break;case"red":n=gD(n,"r",r.val);break;case"green":n=gD(n,"g",r.val);break;case"blue":n=gD(n,"b",r.val);break;case"redMod":n=pD(n,"r",r.val);break;case"greenMod":n=pD(n,"g",r.val);break;case"blueMod":n=pD(n,"b",r.val);break;case"redOff":n=mD(n,"r",r.val);break;case"greenOff":n=mD(n,"g",r.val);break;case"blueOff":n=mD(n,"b",r.val);break;case"lum":n=mme(n,r.val);break;case"lumMod":n=cme(n,r.val);break;case"lumOff":n=ume(n,r.val);break;case"sat":n=gme(n,r.val);break;case"satMod":n=dme(n,r.val);break;case"hue":n=vme(n,r.val);break;case"hueMod":n=hme(n,r.val);break;case"hueOff":n=fme(n,r.val);break;case"satOff":n=pme(n,r.val);break;case"inv":n=yme(n);break;case"gray":n=bme(n);break;case"comp":n=xme(n);break;case"gamma":n=_me(n);break;case"invGamma":n=Sme(n);break;case"alpha":i=$me(r.val);break;case"alphaMod":case"alphaModFix":i=Math.max(0,Math.min(1,i*(r.val/1e5)));break;case"alphaOff":i=Math.max(0,Math.min(1,i+r.val/1e5));break}return{color:n,alpha:i}}var vD={black:"#000000",white:"#FFFFFF",red:"#FF0000",green:"#008000",blue:"#0000FF",yellow:"#FFFF00",cyan:"#00FFFF",magenta:"#FF00FF",orange:"#FFA500",purple:"#800080",brown:"#A52A2A",pink:"#FFC0CB",gray:"#808080",grey:"#808080",lime:"#00FF00",navy:"#000080",teal:"#008080",maroon:"#800000",olive:"#808000",silver:"#C0C0C0",aqua:"#00FFFF",fuchsia:"#FF00FF",aliceBlue:"#F0F8FF",antiqueWhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",blanchedAlmond:"#FFEBCD",blueViolet:"#8A2BE2",burlyWood:"#DEB887",cadetBlue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerBlue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",darkBlue:"#00008B",darkCyan:"#008B8B",darkGoldenrod:"#B8860B",darkGray:"#A9A9A9",darkGrey:"#A9A9A9",darkGreen:"#006400",darkKhaki:"#BDB76B",darkMagenta:"#8B008B",darkOliveGreen:"#556B2F",darkOrange:"#FF8C00",darkOrchid:"#9932CC",darkRed:"#8B0000",darkSalmon:"#E9967A",darkSeaGreen:"#8FBC8F",darkSlateBlue:"#483D8B",darkSlateGray:"#2F4F4F",darkSlateGrey:"#2F4F4F",darkTurquoise:"#00CED1",darkViolet:"#9400D3",deepPink:"#FF1493",deepSkyBlue:"#00BFFF",dimGray:"#696969",dimGrey:"#696969",dodgerBlue:"#1E90FF",firebrick:"#B22222",floralWhite:"#FFFAF0",forestGreen:"#228B22",gainsboro:"#DCDCDC",ghostWhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",greenYellow:"#ADFF2F",honeydew:"#F0FFF0",hotPink:"#FF69B4",indianRed:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderBlush:"#FFF0F5",lawnGreen:"#7CFC00",lemonChiffon:"#FFFACD",lightBlue:"#ADD8E6",lightCoral:"#F08080",lightCyan:"#E0FFFF",lightGoldenrodYellow:"#FAFAD2",lightGray:"#D3D3D3",lightGrey:"#D3D3D3",lightGreen:"#90EE90",lightPink:"#FFB6C1",lightSalmon:"#FFA07A",lightSeaGreen:"#20B2AA",lightSkyBlue:"#87CEFA",lightSlateGray:"#778899",lightSlateGrey:"#778899",lightSteelBlue:"#B0C4DE",lightYellow:"#FFFFE0",limeGreen:"#32CD32",linen:"#FAF0E6",mediumAquamarine:"#66CDAA",mediumBlue:"#0000CD",mediumOrchid:"#BA55D3",mediumPurple:"#9370DB",mediumSeaGreen:"#3CB371",mediumSlateBlue:"#7B68EE",mediumSpringGreen:"#00FA9A",mediumTurquoise:"#48D1CC",mediumVioletRed:"#C71585",midnightBlue:"#191970",mintCream:"#F5FFFA",mistyRose:"#FFE4E1",moccasin:"#FFE4B5",navajoWhite:"#FFDEAD",oldLace:"#FDF5E6",oliveDrab:"#6B8E23",orangeRed:"#FF4500",orchid:"#DA70D6",paleGoldenrod:"#EEE8AA",paleGreen:"#98FB98",paleTurquoise:"#AFEEEE",paleVioletRed:"#DB7093",papayaWhip:"#FFEFD5",peachPuff:"#FFDAB9",peru:"#CD853F",plum:"#DDA0DD",powderBlue:"#B0E0E6",rosyBrown:"#BC8F8F",royalBlue:"#4169E1",saddleBrown:"#8B4513",salmon:"#FA8072",sandyBrown:"#F4A460",seaGreen:"#2E8B57",seaShell:"#FFF5EE",sienna:"#A0522D",skyBlue:"#87CEEB",slateBlue:"#6A5ACD",slateGray:"#708090",slateGrey:"#708090",snow:"#FFFAFA",springGreen:"#00FF7F",steelBlue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whiteSmoke:"#F5F5F5",yellowGreen:"#9ACD32"};function bZ(e){if(vD[e]!==void 0)return vD[e];let t=e.toLowerCase();for(let[n,i]of Object.entries(vD))if(n.toLowerCase()===t)return i}function wme(e){let t=[e.localName,e.attr("val")??""];for(let n of e.allChildren()){let i=n.localName,r=n.attr("val")??n.attr("amt");i&&t.push(`${i}:${r??""}`);for(let o of n.allChildren()){let a=o.localName,s=o.attr("val")??o.attr("amt");a&&t.push(`${a}:${s??""}`)}}return t.join("|")}function Ml(e){let t=[];for(let n of e.allChildren()){let i=n.localName,r=n.numAttr("val")??n.numAttr("amt");r!==void 0&&i?t.push({name:i,val:r}):(i==="inv"||i==="gray"||i==="comp"||i==="gamma"||i==="invGamma")&&t.push({name:i,val:0})}return t}function xZ(e,t){let n=e;if(t.layout.colorMapOverride){let r=t.layout.colorMapOverride.get(e);r&&(n=r)}if(n===e){let r=t.master.colorMap.get(e);r&&(n=r)}return t.theme.colorScheme.get(n)||t.theme.colorScheme.get(e)||"000000"}function on(e,t){let n=wme(e),i=t.colorCache.get(n);if(i)return i;let r=WX(e,t);return t.colorCache.set(n,r),r}function WX(e,t,n){for(let r of e.allChildren()){let o=r.localName,a=Ml(r);switch(o){case"srgbClr":{let s=r.attr("val")||"000000";return Ar(s,a)}case"schemeClr":{let s=r.attr("val")||"tx1";if(s.toLowerCase()==="phclr"&&n!=null&&n.exists()){let c=on(n,t),u=c.color.startsWith("#")?c.color.slice(1):c.color,d=Ar(u,a);return{color:d.color,alpha:d.alpha*c.alpha}}let l=xZ(s,t);return Ar(l,a)}case"sysClr":{let s=r.attr("lastClr")||r.attr("val")||"000000";return Ar(s,a)}case"prstClr":{let s=r.attr("val")||"black",l=bZ(s)||"#000000";return Ar(l.replace("#",""),a)}case"hslClr":{let s=(r.numAttr("hue")??0)/6e4,l=(r.numAttr("sat")??0)/1e5,c=(r.numAttr("lum")??0)/1e5,u=$o(s,l,c),d=qn(u.r,u.g,u.b).replace("#","");return Ar(d,a)}case"scrgbClr":{let s=Math.round((r.numAttr("r")??0)/1e5*255),l=Math.round((r.numAttr("g")??0)/1e5*255),c=Math.round((r.numAttr("b")??0)/1e5*255),u=qn(s,l,c).replace("#","");return Ar(u,a)}}}let i=e.localName;if(i==="srgbClr"){let r=e.attr("val")||"000000";return Ar(r,Ml(e))}if(i==="schemeClr"){let r=e.attr("val")||"tx1";if(r.toLowerCase()==="phclr"&&n!=null&&n.exists()){let a=on(n,t),s=a.color.startsWith("#")?a.color.slice(1):a.color,l=Ar(s,Ml(e));return{color:l.color,alpha:l.alpha*a.alpha}}let o=xZ(r,t);return Ar(o,Ml(e))}if(i==="sysClr"){let r=e.attr("lastClr")||e.attr("val")||"000000";return Ar(r,Ml(e))}if(i==="prstClr"){let r=e.attr("val")||"black",o=bZ(r)||"#000000";return Ar(o.replace("#",""),Ml(e))}if(i==="hslClr"){let r=(e.numAttr("hue")??0)/6e4,o=(e.numAttr("sat")??0)/1e5,a=(e.numAttr("lum")??0)/1e5,s=$o(r,o,a),l=qn(s.r,s.g,s.b).replace("#","");return Ar(l,Ml(e))}if(i==="scrgbClr"){let r=Math.round((e.numAttr("r")??0)/1e5*255),o=Math.round((e.numAttr("g")??0)/1e5*255),a=Math.round((e.numAttr("b")??0)/1e5*255),s=qn(r,o,a).replace("#","");return Ar(s,Ml(e))}return{color:"#000000",alpha:1}}function gr(e,t){let{color:n,alpha:i}=on(e,t);return oa(n,i)}function oa(e,t){let n=e.startsWith("#")?e:`#${e}`,{r:i,g:r,b:o}=Gt(n);return t>=1?n:`rgba(${i},${r},${o},${t.toFixed(3)})`}function tx(e,t,n){return n!=null&&n.exists()?WX(e,t,n):on(e,t)}function Ul(e,t){let n=e.child("solidFill");if(n.exists()){let{color:o,alpha:a}=on(n,t);return oa(o,a)}let i=e.child("gradFill");if(i.exists())return XX(i,t);if(e.child("blipFill").exists())return"";let r=e.child("pattFill");return r.exists()?YX(r,t):e.child("grpFill").exists()?t.groupFillNode?Ul(t.groupFillNode,t):"":e.child("noFill").exists()?"transparent":""}function YX(e,t,n){let i=e.attr("prst")??"solid",r="#000000",o="#ffffff",a=e.child("fgClr");if(a.exists()){let{color:d,alpha:f}=tx(a,t,n);r=oa(d,f)}let s=e.child("bgClr");if(s.exists()){let{color:d,alpha:f}=tx(s,t,n);o=oa(d,f)}let l=8,c=d=>`${d} 0 0 / ${l}px ${l}px, ${o}`,u=(d,f)=>`${d} 0 0 / ${l}px ${l}px, ${f} 0 0 / ${l}px ${l}px, ${o}`;switch(i){case"solid":case"solidDmnd":return r;case"pct5":case"pct10":case"pct20":case"pct25":return c(`radial-gradient(${r} 1px, transparent 1px)`);case"pct30":case"pct40":case"pct50":return c(`radial-gradient(${r} 1.5px, transparent 1.5px)`);case"pct60":case"pct70":case"pct75":case"pct80":case"pct90":return c(`radial-gradient(${r} 2.5px, transparent 2.5px)`);case"horz":case"ltHorz":case"narHorz":case"dkHorz":return c(`repeating-linear-gradient(0deg, ${r} 0px, ${r} 1px, transparent 1px, transparent ${l}px)`);case"vert":case"ltVert":case"narVert":case"dkVert":return c(`repeating-linear-gradient(90deg, ${r} 0px, ${r} 1px, transparent 1px, transparent ${l}px)`);case"dnDiag":case"ltDnDiag":case"narDnDiag":case"dkDnDiag":case"wdDnDiag":return c(`repeating-linear-gradient(45deg, ${r} 0px, ${r} 1px, transparent 1px, transparent ${l}px)`);case"upDiag":case"ltUpDiag":case"narUpDiag":case"dkUpDiag":case"wdUpDiag":return c(`repeating-linear-gradient(-45deg, ${r} 0px, ${r} 1px, transparent 1px, transparent ${l}px)`);case"smGrid":case"lgGrid":case"cross":return u(`repeating-linear-gradient(0deg, ${r} 0px, ${r} 1px, transparent 1px, transparent ${l}px)`,`repeating-linear-gradient(90deg, ${r} 0px, ${r} 1px, transparent 1px, transparent ${l}px)`);case"smCheck":case"lgCheck":case"diagCross":case"openDmnd":return u(`repeating-linear-gradient(45deg, ${r} 0px, ${r} 1px, transparent 1px, transparent ${l}px)`,`repeating-linear-gradient(-45deg, ${r} 0px, ${r} 1px, transparent 1px, transparent ${l}px)`);case"dotGrid":case"dotDmnd":return c(`radial-gradient(${r} 1px, transparent 1px)`);case"trellis":case"weave":return u(`repeating-linear-gradient(45deg, ${r} 0px, ${r} 2px, transparent 2px, transparent ${l}px)`,`repeating-linear-gradient(-45deg, ${r} 0px, ${r} 2px, transparent 2px, transparent ${l}px)`);case"dashDnDiag":case"dashUpDiag":case"dashHorz":case"dashVert":{let d=i.includes("Dn")?"45deg":i.includes("Up")?"-45deg":i.includes("Horz")?"0deg":"90deg";return c(`repeating-linear-gradient(${d}, ${r} 0px, ${r} 3px, transparent 3px, transparent ${l}px)`)}case"sphere":case"shingle":case"plaid":case"divot":case"zigZag":return c(`radial-gradient(${r} 2px, transparent 2px)`);default:return o}}function XX(e,t,n){let i=e.child("gsLst"),r=[];for(let l of i.children("gs")){let c=l.numAttr("pos")??0,u=W2(c)*100,{color:d,alpha:f}=tx(l,t,n);r.push({position:u,color:oa(d,f)})}if(r.length===0)return"";r.sort((l,c)=>l.position-c.position);let o=SZ(r),a=e.child("lin");if(a.exists())return`linear-gradient(${((Zm(a.numAttr("ang")??0)+90)%360).toFixed(1)}deg, ${o})`;let s=e.child("path");if(s.exists()){let l=s.attr("path");if(l==="circle"||l==="shape"||l==="rect"){let c=KX(s),{cx:u,cy:d}=JX(c),f=SZ(nx({stops:r,cx:u,cy:d,fillToRect:c}));return l==="rect"?`radial-gradient(closest-side at ${(u*100).toFixed(1)}% ${(d*100).toFixed(1)}%, ${f})`:`radial-gradient(ellipse at ${(u*100).toFixed(1)}% ${(d*100).toFixed(1)}%, ${f})`}}return`linear-gradient(180deg, ${o})`}function _x(e,t,n){let i=e.numAttr("w")??0,r=De(i),o="transparent",a=e.child("solidFill");if(a.exists()){let u=a.child("schemeClr");if(u.exists()&&(u.attr("val")??"").toLowerCase()==="phclr"&&n&&n.exists()){let d=on(n,t),f=d.color.startsWith("#")?d.color.slice(1):d.color,h=Ar(f,Ml(u));o=oa(h.color,h.alpha*d.alpha)}else{let d=on(a,t);o=oa(d.color,d.alpha)}}else if(n&&n.exists()&&(n.numAttr("idx")??0)>0){let u=n.numAttr("idx")??0;if(u>0&&t.theme.lineStyles&&t.theme.lineStyles.length>=u){let d=t.theme.lineStyles[u-1];if(r===0){let h=d.numAttr("w")??0;r=De(h)}let f=on(n,t);o=oa(f.color,f.alpha)}else{let d=on(n,t);o=oa(d.color,d.alpha),r===0&&u>0&&(r=u*.75)}}if(r===0&&n&&n.exists()){let u=n.numAttr("idx")??0;if(u>0&&t.theme.lineStyles&&t.theme.lineStyles.length>=u){let d=t.theme.lineStyles[u-1].numAttr("w")??0;r=De(d)}else u>0&&(r=u*.75)}r===0&&o!=="transparent"&&!e.child("noFill").exists()&&(r=1);let s="solid",l="solid",c=e.child("prstDash");if(c.exists()){let u=c.attr("val")||"solid";l=u,s=_Z(u)}if(s==="solid"&&n&&n.exists()){let u=n.numAttr("idx")??0;if(u>0&&t.theme.lineStyles&&t.theme.lineStyles.length>=u){let d=t.theme.lineStyles[u-1].child("prstDash");d.exists()&&(l=d.attr("val")||"solid",s=_Z(l))}}return{width:r,color:o,dash:s,dashKind:l}}function _Z(e){switch(e){case"solid":return"solid";case"dot":case"sysDot":return"dotted";case"dash":case"sysDash":case"lgDash":return"dashed";case"dashDot":case"lgDashDot":case"lgDashDotDot":case"sysDashDot":case"sysDashDotDot":return"dashed";default:return"solid"}}function KX(e){let t=e.child("fillToRect");if(t.exists())return{l:(t.numAttr("l")??0)/1e5,t:(t.numAttr("t")??0)/1e5,r:(t.numAttr("r")??0)/1e5,b:(t.numAttr("b")??0)/1e5}}function JX(e){return e?{cx:(e.l+(1-e.r))/2,cy:(e.t+(1-e.b))/2}:{cx:.5,cy:.5}}function yD(e){return Math.max(0,Math.min(1,e))}function kme(e,t={}){let n=e.fillToRect;if(!n)return 0;let i=Math.max(0,1-n.l-n.r),r=Math.max(0,1-n.t-n.b);if(i<=0&&r<=0)return 0;let o=e.cx??.5,a=e.cy??.5,s=Math.max(Math.abs(o),Math.abs(1-o)),l=Math.max(Math.abs(a),Math.abs(1-a));if(t.axis==="x")return s>0?yD(i/2/s):0;if(t.axis==="y")return l>0?yD(r/2/l):0;let c=t.width??1,u=t.height??1,d=Math.hypot(i/2*c,r/2*u),f=Math.hypot(s*c,l*u);return f>0?yD(d/f):0}function nx(e,t={}){let n=kme(e,t);return n<=0?e.stops:e.stops.map(i=>({...i,position:n*100+i.position*(1-n)}))}function SZ(e){return e.map(t=>`${t.color} ${t.position.toFixed(1)}%`).join(", ")}function QX(e,t,n){let i=e.child("gsLst"),r=[];for(let s of i.children("gs")){let l=s.numAttr("pos")??0,c=W2(l)*100,{color:u,alpha:d}=tx(s,t,n);r.push({position:c,color:oa(u,d)})}if(r.length===0)return null;r.sort((s,l)=>s.position-l.position);let o=e.child("lin");if(o.exists()){let s=Zm(o.numAttr("ang")??0);return{type:"linear",stops:r,angle:s,colorInterpolation:"linearRGB"}}let a=e.child("path");if(a.exists()){let s=a.attr("path");if(s==="circle"||s==="shape"||s==="rect"){let l=KX(a),{cx:c,cy:u}=JX(l);return{type:"radial",stops:r,angle:0,cx:c,cy:u,pathType:s,fillToRect:l,colorInterpolation:"linearRGB"}}}return{type:"linear",stops:r,angle:0,colorInterpolation:"linearRGB"}}function eK(e,t){let n=e.child("gradFill");return!n.exists()&&e.child("grpFill").exists()&&t.groupFillNode&&(n=t.groupFillNode.child("gradFill")),n.exists()?QX(n,t):null}function J5(e,t){let n=e.numAttr("idx")??0;return uN(e,t,t.theme.fillStyles,n)}function Mme(e,t){let n=e.numAttr("idx")??0;return n>=1001?uN(e,t,t.theme.bgFillStyles??[],n-1e3):uN(e,t,t.theme.fillStyles,n)}function uN(e,t,n,i){if(i<=0||(n?.length??0)<i)return{fillCss:gr(e,t),gradientFillData:null};let r=n?.[i-1];if(!(r!=null&&r.exists()))return{fillCss:gr(e,t),gradientFillData:null};if(r.localName==="solidFill"){let o=tx(r,t,e);return{fillCss:oa(o.color,o.alpha),gradientFillData:null}}return r.localName==="gradFill"?{fillCss:XX(r,t,e),gradientFillData:QX(r,t,e)}:r.localName==="pattFill"?{fillCss:YX(r,t,e),gradientFillData:null}:r.localName==="noFill"?{fillCss:"transparent",gradientFillData:null}:{fillCss:gr(e,t),gradientFillData:null}}function Cme(e,t){let n=e.child("gradFill");if(!n.exists())return null;let i=n.child("gsLst"),r=[];for(let c of i.children("gs")){let u=c.numAttr("pos")??0,d=W2(u)*100,{color:f,alpha:h}=on(c,t),p=oa(f,h);r.push({position:d,color:p})}if(r.length===0)return null;r.sort((c,u)=>c.position-u.position);let o=n.child("lin"),a=0;o.exists()&&(a=Zm(o.numAttr("ang")??0));let s=e.numAttr("w")??0,l=De(s);return l<=0&&(l=1),{stops:r,angle:a,width:l,colorInterpolation:"linearRGB"}}var zme=new Set(["http:","https:","mailto:"]),Tme=new Set(["http:","https:"]);function tK(e){try{return new URL(e).protocol.toLowerCase()}catch{return}}function Q5(e){let t=tK(e);return t!==void 0&&zme.has(t)}function Wm(e){let t=tK(e);return t!==void 0&&Tme.has(t)}var Ame=128;function Ime(e,t){if(!(t>0))return e;let n=e.trim();if(!n)return`${100/t}%`;if(n.length>Ame)return e;let i=Rme(n);return i?`${i.value/t}${i.unit||"%"}`:e}function Rme(e){let t=0;(e[t]==="-"||e[t]==="+")&&t++;let n=0;for(;Mk(e.charCodeAt(t));)t++,n++;if(e[t]===".")for(t++;Mk(e.charCodeAt(t));)t++,n++;if(n===0)return null;if(e[t]==="e"||e[t]==="E"){let o=t;t++,(e[t]==="-"||e[t]==="+")&&t++;let a=0;for(;Mk(e.charCodeAt(t));)t++,a++;a===0&&(t=o)}let i=Number(e.slice(0,t));if(!Number.isFinite(i))return null;let r=e.slice(t);return Ome(r)?{value:i,unit:r}:null}function e4(e){let t=Lme(e);if(t<0)return null;let n=e.slice(t+1).trim();return Dme(n)?{imageLayers:Eme(e.slice(0,t)),color:n}:null}function Lme(e){let t=0;for(let n=e.length-1;n>=0;n--){let i=e[n];if(i===")")t++;else if(i==="(")t>0&&t--;else if(i===","&&t===0)return n}return-1}function Eme(e){return e.split("0 0 / 8px 8px").join("").trimEnd()}function Dme(e){if(!e)return!1;if(e[0]==="#"){let n=e.length-1;if(![3,4,6,8].includes(n))return!1;for(let i=1;i<e.length;i++)if(!Nme(e.charCodeAt(i)))return!1;return!0}let t=e.toLowerCase();if(t.startsWith("rgb(")||t.startsWith("rgba("))return e.endsWith(")")&&!e.slice(0,-1).includes(")");for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);if(!nK(i))return!1}return!0}function Ome(e){if(!e||e==="%")return!0;for(let t=0;t<e.length;t++)if(!nK(e.charCodeAt(t)))return!1;return!0}function Mk(e){return e>=48&&e<=57}function nK(e){return e>=65&&e<=90||e>=97&&e<=122}function Nme(e){return Mk(e)||e>=65&&e<=70||e>=97&&e<=102}var Pme=0;function iK(e,t,n,i){let r=Math.round(e*i+255*(1-i)),o=Math.round(t*i+255*(1-i)),a=Math.round(n*i+255*(1-i));return`rgb(${r},${o},${a})`}function rK(e,t){if(t.includes("gradient")&&t.includes(" 0 0 / ")){let n=e4(t);if(n){e.style.backgroundImage=n.imageLayers,e.style.backgroundSize="8px 8px",e.style.backgroundRepeat="repeat",e.style.backgroundColor=n.color;return}}t.includes("gradient")||t.startsWith("url(")||t.includes("repeating-")?e.style.background=t:e.style.backgroundColor=t}function jme(e){let t=e*Math.PI/180;return{x1:50-50*Math.cos(t),y1:50-50*Math.sin(t),x2:50+50*Math.cos(t),y2:50+50*Math.sin(t)}}function $Z(e,t){let n="http://www.w3.org/2000/svg";for(let i of t){let r=document.createElementNS(n,"stop");r.setAttribute("offset",`${i.position}%`),r.setAttribute("stop-color",i.color),e.appendChild(r)}}function Ume(e,t,n,i){let r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg");o.setAttribute("data-pptx-background-gradient","true"),o.setAttribute("viewBox",`0 0 ${n} ${i}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.style.position="absolute",o.style.left="0",o.style.top="0",o.style.width="100%",o.style.height="100%",o.style.pointerEvents="none",o.style.display="block";let a=document.createElementNS(r,"defs");o.appendChild(a);let s=`bg-grad-${++Pme}`;if(t.type==="radial"&&t.pathType==="rect"){let l=t.cx??.5,c=t.cy??.5,u=(m,y)=>{let b=nx(t,{axis:y}),x=[];for(let _ of b){let S=_.position/100;x.push({offset:m-S*m,color:_.color}),x.push({offset:m+S*(1-m),color:_.color})}return x.sort((_,S)=>_.offset-S.offset)},d=`${s}-h`,f=document.createElementNS(r,"linearGradient");f.setAttribute("id",d),f.setAttribute("color-interpolation",t.colorInterpolation??"linearRGB"),f.setAttribute("x1","0%"),f.setAttribute("y1","0%"),f.setAttribute("x2","100%"),f.setAttribute("y2","0%");for(let m of u(l,"x")){let y=document.createElementNS(r,"stop");y.setAttribute("offset",`${(m.offset*100).toFixed(2)}%`),y.setAttribute("stop-color",m.color),f.appendChild(y)}a.appendChild(f);let h=`${s}-v`,p=document.createElementNS(r,"linearGradient");p.setAttribute("id",h),p.setAttribute("color-interpolation",t.colorInterpolation??"linearRGB"),p.setAttribute("x1","0%"),p.setAttribute("y1","0%"),p.setAttribute("x2","0%"),p.setAttribute("y2","100%");for(let m of u(c,"y")){let y=document.createElementNS(r,"stop");y.setAttribute("offset",`${(m.offset*100).toFixed(2)}%`),y.setAttribute("stop-color",m.color),p.appendChild(y)}a.appendChild(p);let g=document.createElementNS(r,"g");g.setAttribute("style","isolation: isolate");let v=document.createElementNS(r,"rect");v.setAttribute("width",String(n)),v.setAttribute("height",String(i)),v.setAttribute("fill","black"),g.appendChild(v);for(let m of[d,h]){let y=document.createElementNS(r,"rect");y.setAttribute("width",String(n)),y.setAttribute("height",String(i)),y.setAttribute("fill",`url(#${m})`),y.setAttribute("style","mix-blend-mode: lighten"),g.appendChild(y)}o.appendChild(g)}else if(t.type==="radial"){let l=document.createElementNS(r,"radialGradient");l.setAttribute("id",s),l.setAttribute("color-interpolation",t.colorInterpolation??"linearRGB"),l.setAttribute("gradientUnits","userSpaceOnUse");let c=t.cx??.5,u=t.cy??.5;l.setAttribute("cx",String(c*n)),l.setAttribute("cy",String(u*i));let d=Math.max(c,1-c),f=Math.max(u,1-u);l.setAttribute("r",String(Math.hypot(d*n,f*i))),$Z(l,nx(t,{width:n,height:i})),a.appendChild(l);let h=document.createElementNS(r,"rect");h.setAttribute("width",String(n)),h.setAttribute("height",String(i)),h.setAttribute("fill",`url(#${s})`),o.appendChild(h)}else{let l=document.createElementNS(r,"linearGradient");l.setAttribute("id",s),l.setAttribute("color-interpolation",t.colorInterpolation??"linearRGB"),l.setAttribute("gradientUnits","userSpaceOnUse");let c=jme(t.angle);l.setAttribute("x1",String(c.x1/100*n)),l.setAttribute("y1",String(c.y1/100*i)),l.setAttribute("x2",String(c.x2/100*n)),l.setAttribute("y2",String(c.y2/100*i)),$Z(l,t.stops),a.appendChild(l);let u=document.createElementNS(r,"rect");u.setAttribute("width",String(n)),u.setAttribute("height",String(i)),u.setAttribute("fill",`url(#${s})`),o.appendChild(u)}e.style.position||(e.style.position="relative"),e.style.background="",e.querySelectorAll('svg[data-pptx-background-gradient="true"]').forEach(l=>{l.remove()}),e.insertBefore(o,e.firstChild)}function Bme(e,t,n){return oK(eK(e,t),t,n)}function oK(e,t,n){return e!=null&&e.pathType?(Ume(n,e,t.presentation.width,t.presentation.height),!0):!1}function Fme(e,t){let n,i=e.slide.rels;if(e.slide.background?(n=e.slide.background,i=e.slide.rels):e.layout.background?(n=e.layout.background,i=e.layout.rels):e.master.background&&(n=e.master.background,i=e.master.rels),!n){t.style.backgroundColor="#FFFFFF";return}let r=n.child("bgPr");if(r.exists()){qme(r,e,t,i);return}let o=n.child("bgRef");if(o.exists()){Vme(o,e,t);return}t.style.backgroundColor="#FFFFFF"}function qme(e,t,n,i){let r=e.child("solidFill");if(r.exists()){let{color:a,alpha:s}=on(r,t),l=a.startsWith("#")?a:`#${a}`;if(s<1){let{r:c,g:u,b:d}=Gt(l);n.style.backgroundColor=iK(c,u,d,s)}else n.style.backgroundColor=l;return}if(e.child("gradFill").exists()){if(Bme(e,t,n))return;let a=Ul(e,t);a&&(n.style.background=a);return}if(e.child("pattFill").exists()){let a=Ul(e,t);a&&rK(n,a);return}let o=e.child("blipFill");if(o.exists()){Hme(o,t,n,i);return}if(e.child("noFill").exists()){n.style.backgroundColor="#FFFFFF";return}}function Vme(e,t,n){var i,r;let o=e.numAttr("idx")??0;if(o>=1001&&o-1e3<=(((i=t.theme.bgFillStyles)==null?void 0:i.length)??0)||o>0&&o<=(((r=t.theme.fillStyles)==null?void 0:r.length)??0)){let{fillCss:l,gradientFillData:c}=Mme(e,t);if(oK(c,t,n))return;rK(n,l);return}let{color:a,alpha:s}=on(e,t);if(a&&a!=="#000000"){let l=a.startsWith("#")?a:`#${a}`;if(s<1){let{r:c,g:u,b:d}=Gt(l);n.style.backgroundColor=iK(c,u,d,s)}else n.style.backgroundColor=l}else n.style.backgroundColor="#FFFFFF"}function Hme(e,t,n,i){var r;let o=e.child("blip"),a=o.attr("embed")??o.attr("r:embed"),s=o.attr("link")??o.attr("r:link"),l=a??s;if(!l)return;let c=(i??t.slide.rels).get(l);if(!c)return;let u;if(Rs(c.targetMode)){if(!Wm(c.target))return;u=c.target}else{let d=Hm(c.target,t.presentation.media);if(!d){if(t.presentation.mediaResolver){let p=W5(c.target,t.presentation.media,t.presentation.mediaResolver).then(g=>{if(!g)return;let v=kh(g.mediaPath,g.data,t.mediaUrlCache);wZ(e,n,v)}).catch(()=>{});(r=t.asyncTasks)==null||r.push(p),t.asyncTasks}return}let{mediaPath:f,data:h}=d;u=kh(f,h,t.mediaUrlCache)}wZ(e,n,u)}function wZ(e,t,n){let i=Xme(e.child("blip"));if(i<1||e.child("srcRect").exists()){Zme(e,t,n,i);return}t.style.backgroundImage=`url("${n}")`;let r=e.child("stretch");r.exists()&&(Kme(t,r.child("fillRect")),t.style.backgroundRepeat="no-repeat"),e.child("tile").exists()&&(t.style.backgroundRepeat="repeat",t.style.backgroundSize="auto")}function Zme(e,t,n,i){t.style.position||(t.style.position="relative"),t.style.backgroundImage="",t.querySelectorAll('[data-pptx-background-image="true"]').forEach(l=>{l.remove()});let r=document.createElement("div");r.setAttribute("data-pptx-background-image","true"),r.style.position="absolute",r.style.pointerEvents="none",r.style.opacity=`${Number(i.toFixed(4))}`;let o=e.child("stretch"),a=o.exists()?o.child("fillRect"):new jl(null);Wme(r,a);let s=e.child("srcRect");if(s.exists()){r.style.overflow="hidden";let l=document.createElement("div");l.setAttribute("data-pptx-background-crop","true"),l.style.position="absolute",l.style.backgroundImage=`url("${n}")`,l.style.backgroundSize="100% 100%",l.style.backgroundRepeat="no-repeat",Yme(l,s),r.appendChild(l),t.insertBefore(r,t.firstChild);return}r.style.backgroundImage=`url("${n}")`,o.exists()&&(r.style.backgroundSize="100% 100%",r.style.backgroundRepeat="no-repeat"),e.child("tile").exists()&&(r.style.backgroundRepeat="repeat",r.style.backgroundSize="auto"),t.insertBefore(r,t.firstChild)}function Gme(e){if(!e.exists())return{left:0,top:0,width:100,height:100};let t=aa(e,"l"),n=aa(e,"t"),i=aa(e,"r"),r=aa(e,"b");return{left:t,top:n,width:100-t-i,height:100-n-r}}function Wme(e,t){let n=Gme(t);e.style.left=`${n.left}%`,e.style.top=`${n.top}%`,e.style.width=`${n.width}%`,e.style.height=`${n.height}%`}function Yme(e,t){let n=aa(t,"l")/100,i=aa(t,"t")/100,r=aa(t,"r")/100,o=aa(t,"b")/100,a=1-n-r,s=1-i-o;if(a<=.001||s<=.001){e.style.left="0%",e.style.top="0%",e.style.width="100%",e.style.height="100%";return}let l=1/a,c=1/s;e.style.left=`${-n*l*100}%`,e.style.top=`${-i*c*100}%`,e.style.width=`${l*100}%`,e.style.height=`${c*100}%`}function Xme(e){let t=1,n=e.child("alphaModFix");n.exists()&&(t*=(n.numAttr("amt")??1e5)/1e5);let i=e.child("alphaMod");i.exists()&&(t*=(i.numAttr("val")??1e5)/1e5);let r=e.child("alphaOff");return r.exists()&&(t+=(r.numAttr("val")??0)/1e5),Math.max(0,Math.min(1,t))}function aa(e,t){return(e.numAttr(t)??0)/1e3}function kZ(e,t){let n=e+t;return Math.abs(n)<1e-4?0:e/n*100}function Kme(e,t){if(!t.exists()){e.style.backgroundSize="100% 100%",e.style.backgroundPosition="";return}let n=aa(t,"l"),i=aa(t,"t"),r=aa(t,"r"),o=aa(t,"b"),a=100-n-r,s=100-i-o;e.style.backgroundSize=`${a}% ${s}%`,e.style.backgroundPosition=`${kZ(n,r)}% ${kZ(i,o)}%`}function Ck(e,t){var n,i;let r=(n=e?.bodyProperties)==null?void 0:n.child(t);if(r!=null&&r.exists())return r;let o=(i=e?.layoutBodyProperties)==null?void 0:i.child(t);if(o!=null&&o.exists())return o}var Jme=/^\+(mj|mn)-(lt|ea|cs)$/,Qme={lt:"latin",ea:"ea",cs:"cs"},ege=["Hans","Hant","Jpan","Hang"];function tge(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"&&t.length>0):typeof e=="string"&&e.length>0?[e]:[]}function nge(e){let t=e.toLowerCase();if(t.startsWith("zh"))return/-(tw|hk|mo)\b/.test(t)?"Hant":"Hans";if(t.startsWith("ja"))return"Jpan";if(t.startsWith("ko"))return"Hang";if(t.startsWith("ar"))return"Arab";if(t.startsWith("he"))return"Hebr";if(t.startsWith("th"))return"Thai";if(t.startsWith("hi")||t.startsWith("mr")||t.startsWith("ne"))return"Deva"}function ige(e,t){if(e){for(let n of tge(t)){let i=nge(n);if(i&&e[i])return e[i]}for(let n of ege)if(e[n])return e[n]}}function jb(e,t,n){let i=e.match(Jme);if(!i)return e;let r=i[1],o=i[2],a=r==="mj"?t.theme.majorFont:t.theme.minorFont,s=Qme[o],l=a[s];if(l)return l;if(o==="ea"){let c=ige(a.scripts,n);if(c)return c}return a.latin||a.ea||a.cs||e}function Tm(e,t,n){let i=new Set,r=[];for(let o of e){if(!o)continue;let a=jb(o,t,n).trim();if(!a)continue;let s=a.toLowerCase();i.has(s)||(i.add(s),r.push(a))}return r}var rge=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","emoji","math","fangsong"]),oge=["PingFang SC","Hiragino Sans GB","Noto Sans CJK SC","Source Han Sans SC","Arial Unicode MS","sans-serif"],age=new Set(["microsoft yahei","microsoft yahei ui","\u5FAE\u8F6F\u96C5\u9ED1","dengxian","\u7B49\u7EBF","simhei","\u9ED1\u4F53","heiti sc"]),sge={calibri:["Calibri","Aptos","Carlito","system-ui","Arial","Helvetica","sans-serif"],"calibri light":["Calibri Light","Aptos Display","Aptos","Carlito","system-ui","Arial","Helvetica","sans-serif"],aptos:["Aptos","system-ui","Arial","Helvetica","sans-serif"],"aptos display":["Aptos Display","Aptos","system-ui","Arial","Helvetica","sans-serif"],"microsoft yahei":["Microsoft YaHei","\u5FAE\u8F6F\u96C5\u9ED1"],"microsoft yahei ui":["Microsoft YaHei UI","Microsoft YaHei","\u5FAE\u8F6F\u96C5\u9ED1"],\u5FAE\u8F6F\u96C5\u9ED1:["\u5FAE\u8F6F\u96C5\u9ED1","Microsoft YaHei"],dengxian:["DengXian","\u7B49\u7EBF"],\u7B49\u7EBF:["\u7B49\u7EBF","DengXian"],simhei:["SimHei","\u9ED1\u4F53"],\u9ED1\u4F53:["\u9ED1\u4F53","SimHei"],"heiti sc":["Heiti SC","\u9ED1\u4F53","SimHei"]};function Yk(e){return e.trim().replace(/^['"]|['"]$/g,"").toLowerCase()}function lge(e){let t=Yk(e);return rge.has(t)?t:`"${e.trim().replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function MZ(e){let t=Yk(e);return sge[t]??[e.trim()]}function Am(e){let t=Array.isArray(e)?e.flatMap(MZ):MZ(e),n=t.some(r=>age.has(Yk(r)))?[...t,...oge]:t,i=new Set;return n.filter(r=>{let o=Yk(r);return i.has(o)?!1:(i.add(o),!0)}).map(lge).join(", ")}function cge(e){let t=e.replace(/\\/g,"/"),n=t.lastIndexOf("/");return n>=0?t.slice(0,n):""}function aK(e){let t=e.search(/[?#]/);return t>=0?e.slice(0,t):e}function Xk(e){return aK(e).replace(/\\/g,"/").replace(/^\/+/,"")}function uge(e,t){if(Rs(t.targetMode))return;let n=cge(e.slide.slidePath||"ppt/slides/slide1.xml"),i=Xk(Ia(n,t.target)),r=e.presentation.slides.findIndex(a=>Xk(a.slidePath||"")===i);if(r>=0)return r;let o=aK(t.target).match(/(?:^|[\\/])slide(\d+)\.xml$/i);if(o)return parseInt(o[1],10)-1}function CZ(e){let t=e.slide.index;if(t>=0&&t<e.presentation.slides.length)return t;let n=Xk(e.slide.slidePath||""),i=e.presentation.slides.findIndex(r=>Xk(r.slidePath||"")===n);return i>=0?i:0}function zZ(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return e}}function dge(e,t){let n=t.toLowerCase();for(let i of e.split("&")){let[r,...o]=i.split("=");if(zZ(r).toLowerCase()===n)return zZ(o.join("="))}}function hge(e,t){var n;let i=t.match(/^ppaction:\/\/hlinkshowjump\?(.+)$/i);if(!i)return;let r=(n=dge(i[1],"jump"))==null?void 0:n.toLowerCase(),o=e.presentation.slides.length;if(o!==0)switch(r){case"firstslide":return 0;case"lastslide":return o-1;case"nextslide":{let a=CZ(e)+1;return a<o?a:void 0}case"previousslide":{let a=CZ(e)-1;return a>=0?a:void 0}default:return}}function t4(e,t,n){if(t?.toLowerCase()==="ppaction://hlinksldjump"&&n)return uge(e,n);if(t)return hge(e,t)}function n4(e){return`Go to slide ${e+1}`}function sK(e){if(!e)return;let t=e.trim();if(!(t.length===0||t.length>32))return/^[+-]?(?:\d+(?:[.,]\d+)?|\d{1,3}(?:,\d{3})+(?:\.\d+)?)\s*(?:%|[A-Za-z]{1,4})?$/.test(t)?t:void 0}function fge(e){return sK(e)!==void 0}function TZ(e,t){t&&e.appendChild(document.createTextNode(t.replace(/ {2}/g," \xA0")))}function pge(e){let t=new Map,n=1;for(let i=0;i<e.length;i++){if(t.has(i))continue;let r="",o=-1;for(let a=i;a<e.length&&a<i+4;a++){let s=e[a].text;if(s===void 0||s===`
`||s.includes("	")||(r+=s,r.trim().length>32))break;a>i&&fge(r)&&(o=a)}if(o>i){let a=n++;for(let s=i;s<=o;s++)t.set(s,a);i=o}}return t}function Jc(e,t){if(!e||!e.exists())return new jl(null);let n=e.child(`lvl${t+1}pPr`);return n.exists()?n:e.child("defPPr")}function mge(e){if(!e||!e.type)return"other";let t=e.type;return t==="title"||t==="ctrTitle"?"title":t==="body"||t==="subTitle"||t==="obj"||t==="dt"||t==="ftr"||t==="sldNum"?"body":"other"}function AZ(e,t){for(let n of e){let i,r=n.child("nvSpPr");if(r.exists()&&(i=r.child("nvPr").child("ph")),!i||!i.exists()){let s=n.child("nvPicPr");s.exists()&&(i=s.child("nvPr").child("ph"))}if(!i||!i.exists())continue;let o=i.attr("type"),a=i.numAttr("idx");if(t.idx!==void 0&&a===t.idx||t.type&&o===t.type)return n}}function IZ(e){let t=e.child("txBody");if(!t.exists())return;let n=t.child("lstStyle");return n.exists()?n:void 0}function Ud(e,t){if(!t.exists())return;let n=t.attr("algn");n&&(e.align=n);let i=t.attr("rtl");i!==void 0&&(e.rtl=yr(i));let r=t.numAttr("marL");r!==void 0&&(e.marginLeft=De(r));let o=t.numAttr("indent");o!==void 0&&(e.textIndent=De(o));let a=t.numAttr("defTabSz");a!==void 0&&(e.defaultTabSize=De(a));let s=t.child("lnSpc");if(s.exists()){let m=s.child("spcPct");if(m.exists()){let b=m.numAttr("val");b!==void 0&&(e.lineHeight=`${(b/1e5).toFixed(3)}`)}let y=s.child("spcPts");if(y.exists()){let b=y.numAttr("val");b!==void 0&&(e.lineHeight=`${b/100}pt`,e.lineHeightAbsolute=!0)}}let l=t.child("spcBef");if(l.exists()){let m=l.child("spcPts");if(m.exists()){let b=m.numAttr("val");b!==void 0&&(e.spaceBefore=b/100)}let y=l.child("spcPct");if(y.exists()){let b=y.numAttr("val");b!==void 0&&(e.spaceBeforePct=b/1e5)}}let c=t.child("spcAft");if(c.exists()){let m=c.child("spcPts");if(m.exists()){let b=m.numAttr("val");b!==void 0&&(e.spaceAfter=b/100)}let y=c.child("spcPct");if(y.exists()){let b=y.numAttr("val");b!==void 0&&(e.spaceAfterPct=b/1e5)}}let u=t.child("buChar");u.exists()&&(e.bulletChar=u.attr("char")||"",e.bulletNone=!1);let d=t.child("buAutoNum");if(d.exists()){e.bulletAutoNum=d.attr("type")||"arabicPeriod";let m=d.numAttr("startAt");m!==void 0&&(e.bulletAutoNumStartAt=m),e.bulletNone=!1}t.child("buNone").exists()&&(e.bulletNone=!0,e.bulletChar=void 0,e.bulletAutoNum=void 0);let f=t.child("buFont");f.exists()&&(e.bulletFont=f.attr("typeface"));let h=t.child("buSzPct");if(h.exists()){let m=h.numAttr("val");m!==void 0&&(e.bulletSizePct=m/1e5,e.bulletSizePt=void 0)}let p=t.child("buSzPts");if(p.exists()){let m=p.numAttr("val");m!==void 0&&(e.bulletSizePt=m/100,e.bulletSizePct=void 0)}t.child("buSzTx").exists()&&(e.bulletSizePct=void 0,e.bulletSizePt=void 0),t.child("buClrTx").exists()&&(e.bulletColorFollowsText=!0,e.bulletColorNode=void 0);let g=t.child("buClr");g.exists()&&(e.bulletColorNode=g,e.bulletColorFollowsText=!1);let v=t.child("defRPr");v.exists()&&(e.defRPr=v,e.defRPrs??(e.defRPrs=[]),e.defRPrs.push(v))}function gge(e){if(!(e!=null&&e.exists()))return"none";if(e.child("gradFill").exists())return"explicit";let t=e.child("solidFill");if(!t.exists())return"none";let n=t.child("schemeClr").attr("val");return n==="tx1"||n==="tx2"?"defaultTextScheme":"explicit"}function _m(e,t,n){if(!t.exists())return;let i=t.numAttr("sz");i!==void 0&&(e.fontSize=i/100);let r=t.attr("b");r!==void 0&&(e.bold=yr(r));let o=t.attr("i");o!==void 0&&(e.italic=yr(o));let a=t.attr("u");a!==void 0&&a!=="none"&&(e.underline=!0),a==="none"&&(e.underline=!1);let s=t.attr("strike");s!==void 0&&s!=="noStrike"&&(e.strikethrough=!0),s==="noStrike"&&(e.strikethrough=!1);let l=t.child("highlight");l.exists()&&(e.highlightColor=gr(l,n));let c=t.child("uFill");if(c.exists()){let $=c.child("solidFill");$.exists()&&(e.underlineColor=gr($,n),e.underlineFollowsText=!1)}t.child("uFillTx").exists()&&(e.underlineFollowsText=!0,e.underlineColor=void 0);let u=t.child("solidFill");if(u.exists()){delete e.textGradientCss,delete e.textPatternCss,delete e.textNoFill;let{color:$,alpha:C}=on(u,n),w=$.startsWith("#")?$:`#${$}`;if(C<1){let{r:z,g:A,b:M}=i4(w);e.color=`rgba(${z},${A},${M},${C.toFixed(3)})`}else e.color=w}let d=t.child("gradFill");if(d.exists()){delete e.color,delete e.textPatternCss,delete e.textNoFill;let $=NZ(d,n);$&&(e.textGradientCss=$)}if(t.child("pattFill").exists()){delete e.color,delete e.textGradientCss,delete e.textNoFill;let $=Ul(t,n);$&&(e.textPatternCss=$)}let f=[],h=[t.attr("lang"),t.attr("altLang")];for(let $ of["latin","ea","cs"]){let C=t.child($);if(!C.exists())continue;let w=C.attr("typeface");w&&f.push(jb(w,n,h))}f.length>0&&(e.fontFamily=f[0],e.fontFamilyStack=f);let p=t.child("hlinkClick");if(p.exists()){let $=p.attr("id")??p.attr("r:id"),C=$?n.slide.rels.get($):void 0,w=p.attr("action"),z=t4(n,w,C);z!==void 0&&n.onNavigate?(e.hlinkSlideIndex=z,e.hlinkTooltip=p.attr("tooltip"),e.underline===void 0&&(e.underline=!0)):C&&Rs(C.targetMode)&&Q5(C.target)&&(e.hlinkClick=C.target,e.underline===void 0&&(e.underline=!0))}let g=t.numAttr("spc");g!==void 0&&(e.letterSpacingPt=g/100);let v=t.numAttr("kern");v!==void 0&&(e.kern=v/100);let m=t.attr("cap");m!==void 0&&(e.cap=m);let y=t.numAttr("baseline");y!==void 0&&(e.baseline=y);let b=t.child("effectLst"),x=b.child("outerShdw");if(x.exists()){let $=yge(x,n);$&&LZ(e,$)}let _=b.child("glow");if(_.exists()){let $=vge(_,n);$&&LZ(e,$)}t.child("noFill").exists()&&(delete e.color,delete e.textGradientCss,delete e.textPatternCss,e.textNoFill=!0);let S=t.child("ln");if(S.exists()&&!S.child("noFill").exists()){let $=S.numAttr("w");e.textOutlineWidth=$?De($):.75;let C=S.child("solidFill");if(C.exists()){let{color:z,alpha:A}=on(C,n);e.textOutlineColor=Y2(z,A)}let w=S.child("gradFill");w.exists()&&(e.textOutlineGradientCss=NZ(w,n))}}function lK(e,t,n){for(let i of t.defRPrs??[])_m(e,i,n)}function RZ(e,t){let n={};return lK(n,e,t),n}function i4(e){let t=e.replace(/^#/,""),n=parseInt(t.length===3?t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:t,16);return{r:n>>16&255,g:n>>8&255,b:n&255}}function Y2(e,t){let n=e.startsWith("#")?e:`#${e}`;if(t>=1)return n;let{r:i,g:r,b:o}=i4(n);return`rgba(${i},${r},${o},${t.toFixed(3)})`}function vge(e,t){let n=De(e.numAttr("rad")??0);if(!(n>0))return;let{color:i,alpha:r}=on(e,t);if(!(!i||r<=0))return`0px 0px ${n.toFixed(1)}px ${Y2(i,r)}`}function yge(e,t){let n=De(e.numAttr("dist")??0),i=De(e.numAttr("blurRad")??0),r=(e.numAttr("dir")??0)/6e4,o=n*Math.cos(r*Math.PI/180),a=n*Math.sin(r*Math.PI/180),{color:s,alpha:l}=on(e,t);if(!(!s||l<=0))return`${o.toFixed(1)}px ${a.toFixed(1)}px ${i.toFixed(1)}px ${Y2(s,l)}`}function LZ(e,t){e.textShadow=e.textShadow?`${e.textShadow}, ${t}`:t}function EZ(e,t){if(!(e!=null&&e.exists()))return;let n={};return _m(n,e,t),n.color}function DZ(e){if(!e)return;let t=e.trim().toLowerCase();if(t.startsWith("#")){let{r:l,g:c,b:u}=i4(t);return`${l},${c},${u},1`}let n=t.match(/^rgba?\(([^)]+)\)$/);if(!n)return t;let i=n[1].split(",").map(l=>l.trim());if(i.length<3)return t;let[r,o,a]=i,s=i[3]??"1";return`${Number(r)},${Number(o)},${Number(a)},${Number(s)}`}function OZ(e,t){let n=DZ(e),i=DZ(t);return n!==void 0&&n===i}function bge(e){return e?.child("solidFill").child("srgbClr").exists()??!1}function xge(e){return e?.child("hlinkClick").exists()??!1}function _ge(e){return!!e.hlinkClick||e.hlinkSlideIndex!==void 0}function Sge(e,t,n,i){if(!n)return!1;for(let o of t.runs){if(o===e||xge(o.properties))continue;let a=EZ(o.properties,i);if(OZ(n,a))return!0}let r=EZ(t.endParaRPr,i);return OZ(n,r)}function $ge(e,t,n,i,r,o){return _ge(n)?!r||i==="defaultTextScheme"?!0:i!=="explicit"||!bge(e.properties)?!1:Sge(e,t,n.color,o):!1}function NZ(e,t){let n=e.child("gsLst"),i=[];for(let a of n.children("gs")){let s=a.numAttr("pos")??0,l=W2(s)*100,{color:c,alpha:u}=on(a,t);i.push({position:l,color:Y2(c,u)})}if(i.length===0)return"";i.sort((a,s)=>a.position-s.position);let r=i.map(a=>`${a.color} ${a.position.toFixed(1)}%`).join(", "),o=e.child("lin");return o.exists()?`linear-gradient(${((Zm(o.numAttr("ang")??0)+90)%360).toFixed(1)}deg, ${r})`:`linear-gradient(180deg, ${r})`}function PZ(e,t){var n;if(e.style.background=t,!e.style.background&&t.includes(" 0 0 / 8px 8px, ")){let i=t.split(" 0 0 / 8px 8px, "),r=(n=i[i.length-1])==null?void 0:n.trim(),o=i.slice(0,-1).map(a=>a.trim());o.length>0&&(e.style.backgroundImage=o.join(", "),e.style.backgroundSize=o.map(()=>"8px 8px").join(", ")),r&&(e.style.backgroundColor=r)}e.style.webkitBackgroundClip="text",e.style.backgroundClip="text",e.style.color="transparent"}function wge(e,t){switch(e){case"arabicPeriod":return`${t}.`;case"arabicParenR":return`${t})`;case"arabicParenBoth":return`(${t})`;case"arabicPlain":return`${t}`;case"romanUcPeriod":return`${jZ(t)}.`;case"romanLcPeriod":return`${jZ(t).toLowerCase()}.`;case"alphaUcPeriod":return`${String.fromCharCode(64+((t-1)%26+1))}.`;case"alphaLcPeriod":return`${String.fromCharCode(96+((t-1)%26+1))}.`;case"alphaUcParenR":return`${String.fromCharCode(64+((t-1)%26+1))})`;case"alphaLcParenR":return`${String.fromCharCode(96+((t-1)%26+1))})`;default:return`${t}.`}}function jZ(e){let t=[1e3,900,500,400,100,90,50,40,10,9,5,4,1],n=["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"],i="",r=e;for(let o=0;o<t.length;o++)for(;r>=t[o];)i+=n[o],r-=t[o];return i}function cK(e,t,n,i,r){var o,a,s,l,c;let u=mge(t),d=1,f=0,h=Ck(e,"normAutofit");if(h!=null&&h.exists()){let b=h.numAttr("fontScale");b!==void 0&&(d=b/1e5);let x=h.numAttr("lnSpcReduction");x!==void 0&&(f=x/1e5)}let p=new Map,g=e.paragraphs.map((b,x)=>({index:x,visible:b.runs.some(_=>_.text!=null&&_.text.length>0)})).filter(b=>b.visible).map(b=>b.index),v=g[0],m=g[g.length-1],y=g.length===1?g[0]:void 0;for(let[b,x]of e.paragraphs.entries()){let _=document.createElement("div");_.style.width="100%",_.style.minWidth="0px",_.style.maxWidth="100%",_.style.boxSizing="border-box",_.style.overflowWrap="anywhere";let S=x.level;r!=null&&r.isVerticalText&&(_.style.wordBreak="keep-all");let $=x.runs.some(O=>O.text===`
`),C=r?.compactSingleLineSpacing&&b===y&&!$,w={};Ud(w,Jc(n.presentation.defaultTextStyle,S)),Ud(w,Jc(n.master.defaultTextStyle,S));let z=u==="title"?n.master.textStyles.titleStyle:u==="body"?n.master.textStyles.bodyStyle:n.master.textStyles.otherStyle;if(Ud(w,Jc(z,S)),t){let O=AZ(n.master.placeholders,t);if(O){let V=IZ(O);Ud(w,Jc(V,S))}}if(t){let O=AZ(n.layout.placeholders.map(V=>V.node),t);if(O){let V=IZ(O);Ud(w,Jc(V,S))}}if(Ud(w,Jc(e.listStyle,S)),x.properties&&Ud(w,x.properties),w.align){let O={l:"left",ctr:"center",r:"right",just:"justify",justLow:"justify",dist:"justify",thaiDist:"justify"};_.style.textAlign=O[w.align]||"left"}w.rtl!==void 0&&(_.style.direction=w.rtl?"rtl":"ltr"),w.marginLeft!==void 0&&(_.style.paddingLeft=`${w.marginLeft}px`),w.textIndent!==void 0&&(_.style.textIndent=`${w.textIndent}px`);let A=w.lineHeight??r?.defaultLineHeight;if(A){if(f>0){let O=parseFloat(A);isNaN(O)||(A.includes("pt")?A=`${(O*(1-f)).toFixed(2)}pt`:A=`${(O*(1-f)).toFixed(3)}`)}r!=null&&r.isVerticalText&&!w.lineHeightAbsolute?A="1":C&&w.lineHeightAbsolute&&(A="normal"),_.style.lineHeight=A}let M=12,T=RZ(w,n);if(T.fontSize!==void 0&&(M=T.fontSize),x.runs.length>0&&x.runs[0].properties){let O=x.runs[0].properties.numAttr("sz");O!==void 0&&(M=O/100)}else if(x.runs.length===0&&x.endParaRPr){let O=x.endParaRPr.numAttr("sz");O!==void 0&&(M=O/100)}_.style.fontSize=`${M*d}pt`;let k=r?.trimOuterParagraphSpacing&&b===v,I=r?.trimOuterParagraphSpacing&&b===m;k?_.style.marginTop="0px":w.spaceBefore!==void 0?_.style.marginTop=`${w.spaceBefore}pt`:w.spaceBeforePct!==void 0&&(_.style.marginTop=`${w.spaceBeforePct*M}pt`),I?_.style.marginBottom="0px":w.spaceAfter!==void 0?_.style.marginBottom=`${w.spaceAfter}pt`:w.spaceAfterPct!==void 0&&(_.style.marginBottom=`${w.spaceAfterPct*M}pt`);let D=!x.runs.some(O=>O.text!=null&&O.text.length>0)||t?.type==="sldNum"||t?.type==="dt"||t?.type==="ftr"||t?.type==="title"||t?.type==="ctrTitle"||t?.type==="subTitle",E="";if(!D&&w.bulletNone!==!0){if(w.bulletChar)E=w.bulletChar;else if(w.bulletAutoNum){let O=`${S}:${w.bulletAutoNum}`,V=w.bulletAutoNumStartAt??p.get(O)??1;E=wge(w.bulletAutoNum,V),p.set(O,V+1)}}if(E){let O=document.createElement("span");O.textContent=E+" ";let V=w.marginLeft,j=w.textIndent;if(V!==void 0&&V>0&&j!==void 0&&j<0){let se=Math.max(0,V+j),ae=Math.max(0,V-se);_.style.textIndent="0px",w.align==="ctr"||w.align==="r"?(_.style.paddingLeft="0px",O.style.display="inline-block",O.style.width=`${ae}px`,O.style.whiteSpace="pre"):(_.style.position="relative",O.style.position="absolute",O.style.left=`${se}px`,O.style.top="0px",O.style.width=`${ae}px`,O.style.whiteSpace="pre")}w.bulletFont&&(O.style.fontFamily=Am(jb(w.bulletFont,n)));let H=w.bulletSizePt??M*(w.bulletSizePct??1);O.style.fontSize=`${H*d}pt`;let Q,le=()=>{let se=x.runs.find(Se=>Se.text!=null&&Se.text.length>0);if(!se)return;let ae=RZ(w,n);return se.properties&&_m(ae,se.properties,n),ae.color??r?.fontRefColor??r?.cellTextColor??(ae.textNoFill?"transparent":void 0)};if(w.bulletColorNode&&w.bulletColorNode.exists()&&(Q=gr(w.bulletColorNode,n)),Q===void 0&&(Q=le()),Q===void 0&&e.listStyle){let se=Jc(e.listStyle,S);if(se.exists()){let ae=se.child("defRPr");if(ae.exists()){let Se={};_m(Se,ae,n),Se.color!==void 0&&(Q=Se.color)}}}O.style.color=Q??r?.fontRefColor??r?.cellTextColor??"#000000",_.appendChild(O)}let N=pge(x.runs),F=new Map;if(x.runs.length===0&&_.appendChild(document.createElement("br")),x.runs.some(O=>{var V;return(V=O.text)==null?void 0:V.includes("	")})){let O=w.defaultTabSize??96;_.style.tabSize=`${O}px`}let G=w.lineHeightAbsolute&&$&&A,P=null;G&&(P=document.createElement("div"),P.style.height=A,P.style.overflow="visible",_.appendChild(P));for(let[O,V]of x.runs.entries()){if(V.text===`
`){G?(P=document.createElement("div"),P.style.height=A,P.style.overflow="visible",_.appendChild(P)):_.appendChild(document.createElement("br"));continue}let j={};if(lK(j,w,n),V.properties&&_m(j,V.properties,n),j.color===void 0&&e.listStyle){let B=Jc(e.listStyle,S);if(B.exists()){let U=B.child("defRPr");if(U.exists()){let W={};_m(W,U,n),W.color!==void 0&&(j.color=W.color)}}}let H;if(j.hlinkSlideIndex!==void 0){let B=document.createElement("span"),U=j.hlinkSlideIndex;B.setAttribute("role","link"),B.tabIndex=0,B.title=j.hlinkTooltip||n4(U),B.style.cursor="pointer",B.addEventListener("click",W=>{var ue;W.stopPropagation(),(ue=n.onNavigate)==null||ue.call(n,{slideIndex:U})}),B.addEventListener("keydown",W=>{var ue;W.key!=="Enter"&&W.key!==" "||(W.preventDefault(),W.stopPropagation(),(ue=n.onNavigate)==null||ue.call(n,{slideIndex:U}))}),H=B}else if(j.hlinkClick){let B=document.createElement("a");B.href=j.hlinkClick,B.target="_blank",B.rel="noopener noreferrer",H=B}else H=document.createElement("span");let Q=sK(V.text),le=!!j.textGradientCss||!!j.textPatternCss||!!j.textNoFill||j.textOutlineWidth!==void 0||!!j.textOutlineColor||!!j.textOutlineGradientCss,se=!!V.text&&!!Q&&V.text!==Q&&!le;if(V.text&&V.text.includes("	"))H.textContent=V.text,H.style.whiteSpace="pre";else if(se){let B=V.text.indexOf(Q),U=B+Q.length;TZ(H,V.text.slice(0,B));let W=document.createElement("span");W.textContent=Q,W.style.whiteSpace="nowrap",H.appendChild(W),TZ(H,V.text.slice(U))}else if(V.text&&/ {2}/.test(V.text)){let B=V.text.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/ {2}/g," \xA0");H.innerHTML=B}else H.textContent=V.text;Q&&(V.text===Q||V.text&&V.text!==Q&&le)&&(H.style.whiteSpace="nowrap");let ae=j.fontSize||12;H.style.fontSize=`${ae*d}pt`,(((o=V.properties)==null?void 0:o.attr("b"))!==void 0?j.bold:r?.cellTextBold??j.bold)&&(H.style.fontWeight="bold"),(((a=V.properties)==null?void 0:a.attr("i"))!==void 0?j.italic:r?.cellTextItalic??j.italic)&&(H.style.fontStyle="italic");let Se=[];j.underline&&Se.push("underline"),j.strikethrough&&Se.push("line-through"),Se.length>0&&(H.style.textDecoration=Se.join(" ")),j.highlightColor&&(H.style.backgroundColor=j.highlightColor);let ve=gge(V.properties),$e=ve!=="none",je;if(r!=null&&r.fontRefColor?je=$e?j.color:r.fontRefColor:r!=null&&r.cellTextColor&&!$e?je=r.cellTextColor:je=j.color,$ge(V,x,j,ve,$e,n)){let B=n.theme.colorScheme.get("hlink");B&&(je=B.startsWith("#")?B:`#${B}`)}if(je?H.style.color=je:H.style.color="#000000",j.underlineFollowsText&&je&&(H.style.textDecorationColor=je),j.underlineColor&&(H.style.textDecorationColor=j.underlineColor),j.textShadow&&(H.style.textShadow=j.textShadow),j.textGradientCss&&PZ(H,j.textGradientCss),j.textPatternCss&&PZ(H,j.textPatternCss),j.textNoFill||j.textOutlineWidth){let B=j.textOutlineWidth??.75;if(j.textNoFill&&j.textOutlineGradientCss){let U="#ffffff";H.style.color="transparent",H.style.webkitTextStrokeWidth=`${B}px`,H.style.webkitTextStrokeColor=U,H.style.paintOrder="stroke fill";let W=j.textOutlineGradientCss;H.style.maskImage=W,H.style.webkitMaskImage=W}else j.textNoFill&&j.textOutlineColor?(H.style.color="transparent",H.style.webkitTextStrokeWidth=`${B}px`,H.style.webkitTextStrokeColor=j.textOutlineColor,H.style.paintOrder="stroke fill"):j.textNoFill?H.style.color="transparent":j.textOutlineColor&&(H.style.webkitTextStrokeWidth=`${B}px`,H.style.webkitTextStrokeColor=j.textOutlineColor,H.style.paintOrder="stroke fill")}let R=(s=V.properties)!=null&&s.child("latin").exists()||(l=V.properties)!=null&&l.child("ea").exists()||(c=V.properties)!=null&&c.child("cs").exists()?j.fontFamilyStack??j.fontFamily:r?.cellTextFontFamily??j.fontFamilyStack??j.fontFamily;if(R){let B=Array.isArray(R)?R.map(U=>jb(U,n)):jb(R,n);H.style.fontFamily=Am(B)}else{let B=n.theme.minorFont.latin||n.theme.minorFont.ea;B&&(H.style.fontFamily=Am(B))}if(j.letterSpacingPt!==void 0&&(H.style.letterSpacing=`${j.letterSpacingPt}pt`),j.kern!==void 0){let B=(j.fontSize||12)*d;H.style.fontKerning=B>=j.kern?"normal":"none"}if(j.cap==="all"?H.style.textTransform="uppercase":j.cap==="small"&&(H.style.fontVariant="small-caps"),j.baseline!==void 0&&j.baseline!==0){let B=j.baseline/1e3;H.style.verticalAlign=`${B}%`,Math.abs(B)>=20&&(H.style.fontSize=`${ae*d*.65}pt`)}let ie=P??_,te=N.get(O);if(te!==void 0){let B=F.get(te);B||(B=document.createElement("span"),B.style.whiteSpace="nowrap",F.set(te,B),ie.appendChild(B)),B.appendChild(H)}else ie.appendChild(H)}if(x.endParaRPr){let O=x.runs[x.runs.length-1];if(O?.text===`
`){let V=x.endParaRPr.numAttr("sz");if(V!==void 0){let j=document.createElement("span");j.textContent="\u200B",j.style.fontSize=`${V/100*d}pt`,(P??_).appendChild(j)}}}i.appendChild(_)}}function kge(e){let t=0,n=0;for(let i of e.allChildren()){if(i.localName==="moveTo"||i.localName==="lnTo"){let r=i.child("pt");t=Math.max(t,r.numAttr("x")??0),n=Math.max(n,r.numAttr("y")??0);continue}if(i.localName==="cubicBezTo"||i.localName==="quadBezTo"){for(let r of i.children("pt"))t=Math.max(t,r.numAttr("x")??0),n=Math.max(n,r.numAttr("y")??0);continue}i.localName==="arcTo"&&(t=Math.max(t,i.numAttr("wR")??0),n=Math.max(n,i.numAttr("hR")??0))}return{w:Math.max(1,t),h:Math.max(1,n)}}function uK(e,t,n,i){let r=e.child("pathLst");if(!r.exists())return"";let o=r.children("path"),a=[];for(let s of o){let l=kge(s),c=s.numAttr("w")??i?.w??l.w,u=s.numAttr("h")??i?.h??l.h,d=c>0?t/c:1,f=u>0?n/u:1,h=0,p=0,g=s.allChildren();for(let v of g)switch(v.localName){case"moveTo":{let m=v.child("pt"),y=(m.numAttr("x")??0)*d,b=(m.numAttr("y")??0)*f;a.push(`M${y},${b}`),h=y,p=b;break}case"lnTo":{let m=v.child("pt"),y=(m.numAttr("x")??0)*d,b=(m.numAttr("y")??0)*f;a.push(`L${y},${b}`),h=y,p=b;break}case"cubicBezTo":{let m=v.children("pt");if(m.length>=3){let y=(m[0].numAttr("x")??0)*d,b=(m[0].numAttr("y")??0)*f,x=(m[1].numAttr("x")??0)*d,_=(m[1].numAttr("y")??0)*f,S=(m[2].numAttr("x")??0)*d,$=(m[2].numAttr("y")??0)*f;a.push(`C${y},${b} ${x},${_} ${S},${$}`),h=S,p=$}break}case"quadBezTo":{let m=v.children("pt");if(m.length>=2){let y=(m[0].numAttr("x")??0)*d,b=(m[0].numAttr("y")??0)*f,x=(m[1].numAttr("x")??0)*d,_=(m[1].numAttr("y")??0)*f;a.push(`Q${y},${b} ${x},${_}`),h=x,p=_}break}case"arcTo":{let m=v.numAttr("wR")??0,y=v.numAttr("hR")??0,b=m*d,x=y*f,_=v.numAttr("stAng")??0,S=v.numAttr("swAng")??0,$=_/6e4,C=S/6e4;if(b===0||x===0||C===0)break;let w=$*Math.PI/180,z=Math.atan2(m*Math.sin(w),y*Math.cos(w)),A=($+C)*Math.PI/180,M=Math.atan2(m*Math.sin(A),y*Math.cos(A)),T=h/d,k=p/f,I=T-m*Math.cos(z),D=k-y*Math.sin(z),E=(I+m*Math.cos(M))*d,N=(D+y*Math.sin(M))*f,F=Math.abs(C)>180?1:0,G=C>0?1:0;a.push(`A${b},${x} 0 ${F},${G} ${E},${N}`),h=E,p=N;break}case"close":{a.push("Z");break}}}return a.join(" ")}function Mge(e,t,n,i,r,o,a){let s=r*Math.PI/180,l=o*Math.PI/180,c=e+n*Math.cos(s),u=t+i*Math.sin(s),d=e+n*Math.cos(l),f=t+i*Math.sin(l),h=((o-r)%360+360)%360;h===0&&r!==o&&(h=360);let p=h>180?1:0;return`M${c},${u} A${n},${i} 0 ${p},1 ${d},${f}`}function st(e,t,n){return(e?.get(t)??n)/1e5}function _i(e,t,n){return e?.get(t)??n}function Ym(e,t,n,i=.4){let r=e/2,o=t/2,a=e/2,s=t/2,l=a*i,c=s*i,u=n*2,d=[];for(let f=0;f<u;f++){let h=2*Math.PI*f/u-Math.PI/2,p=f%2===0,g=p?a:l,v=p?s:c,m=r+g*Math.cos(h),y=o+v*Math.sin(h);d.push(f===0?`M${m},${y}`:`L${m},${y}`)}return d.push("Z"),d.join(" ")}function Cge(e,t){let n=e.match(/[MLAZ]|-?\d*\.?\d+(?:e[-+]?\d+)?/gi);if(!n)return e;let i=[],r=0;for(;r<n.length;){let o=n[r++];if(!o)break;if(i.push(o),o!=="Z"){if(o==="M"||o==="L"){let a=Number(n[r++]),s=Number(n[r++]);i.push(String(t-a),String(s));continue}if(o==="A"){let a=n[r++],s=n[r++],l=n[r++],c=n[r++],u=Number(n[r++]),d=Number(n[r++]),f=Number(n[r++]);i.push(a,s,l,c,String(u?0:1),String(t-d),String(f));continue}return e}}return i.join(" ")}function zge(e,t){let n=e.match(/[MLAZ]|-?\d*\.?\d+(?:e[-+]?\d+)?/gi);if(!n)return e;let i=[],r=0;for(;r<n.length;){let o=n[r++];if(!o)break;if(i.push(o),o!=="Z"){if(o==="M"||o==="L"){let a=Number(n[r++]),s=Number(n[r++]);i.push(String(a),String(t-s));continue}if(o==="A"){let a=n[r++],s=n[r++],l=n[r++],c=n[r++],u=Number(n[r++]),d=Number(n[r++]),f=Number(n[r++]);i.push(a,s,l,c,String(u?0:1),String(d),String(t-f))}}}return i.join(" ")}var oe=new Map;oe.set("rect",(e,t)=>`M0,0 L${e},0 L${e},${t} L0,${t} Z`);oe.set("roundRect",(e,t,n)=>{let i=st(n,"adj",16667),r=Math.min(e,t)*i;return[`M${r},0`,`L${e-r},0`,`A${r},${r} 0 0,1 ${e},${r}`,`L${e},${t-r}`,`A${r},${r} 0 0,1 ${e-r},${t}`,`L${r},${t}`,`A${r},${r} 0 0,1 0,${t-r}`,`L0,${r}`,`A${r},${r} 0 0,1 ${r},0`,"Z"].join(" ")});oe.set("plaque",(e,t,n)=>{let i=Math.min(Math.max(_i(n,"adj",16667),0),5e4),r=Math.min(e,t)*i/1e5,o=e-r,a=t-r,s=Be(0,r,r,r,90,-90),l=Be(o,0,r,r,180,-90),c=Be(e,a,r,r,270,-90),u=Be(r,t,r,r,0,-90);return[`M0,${r}`,s.svg,`L${o},0`,l.svg,`L${e},${a}`,c.svg,`L${r},${t}`,u.svg,"Z"].join(" ")});oe.set("cornerTabs",(e,t)=>{let n=Math.sqrt(e*e+t*t)/20;return[`M0,0 L${n},0 L0,${n} Z`,`M${e},0 L${e-n},0 L${e},${n} Z`,`M${e},${t} L${e-n},${t} L${e},${t-n} Z`,`M0,${t} L${n},${t} L0,${t-n} Z`].join(" ")});oe.set("squareTabs",(e,t)=>{let n=Math.sqrt(e*e+t*t)/20;return[`M0,0 L${n},0 L${n},${n} L0,${n} Z`,`M${e-n},0 L${e},0 L${e},${n} L${e-n},${n} Z`,`M0,${t-n} L${n},${t-n} L${n},${t} L0,${t} Z`,`M${e-n},${t-n} L${e},${t-n} L${e},${t} L${e-n},${t} Z`].join(" ")});oe.set("plaqueTabs",(e,t)=>{let n=Math.sqrt(e*e+t*t)/20;return[`M0,0 L${n},0 A${n},${n} 0 0,1 0,${n} Z`,`M${e},0 L${e-n},0 A${n},${n} 0 0,0 ${e},${n} Z`,`M0,${t} L0,${t-n} A${n},${n} 0 0,1 ${n},${t} Z`,`M${e},${t} L${e-n},${t} A${n},${n} 0 0,1 ${e},${t-n} Z`].join(" ")});oe.set("ellipse",(e,t)=>{let n=e/2,i=t/2;return[`M${e},${i}`,`A${n},${i} 0 1,1 0,${i}`,`A${n},${i} 0 1,1 ${e},${i}`,"Z"].join(" ")});oe.set("triangle",(e,t,n)=>{let i=st(n,"adj",5e4);return`M${e*i},0 L${e},${t} L0,${t} Z`});oe.set("isosTriangle",(e,t,n)=>{let i=st(n,"adj",5e4);return`M${e*i},0 L${e},${t} L0,${t} Z`});oe.set("rtTriangle",(e,t)=>`M0,0 L${e},${t} L0,${t} Z`);oe.set("diamond",(e,t)=>{let n=e/2,i=t/2;return`M${n},0 L${e},${i} L${n},${t} L0,${i} Z`});oe.set("pentagon",(e,t)=>{let n=e/2,i=n*105146/1e5,r=t/2*110557/1e5,o=r,a=i*Math.cos(18*Math.PI/180),s=i*Math.cos(54*Math.PI/180),l=r*Math.sin(18*Math.PI/180),c=r*Math.sin(54*Math.PI/180);return[`M${n-a},${o-l}`,`L${n},0`,`L${n+a},${o-l}`,`L${n+s},${o+c}`,`L${n-s},${o+c}`,"Z"].join(" ")});oe.set("hexagon",(e,t,n)=>{let i=Math.min(e,t),r=Math.min(Math.max(_i(n,"adj",25e3),0),i>0?5e4*e/i:5e4),o=t/2*115470/1e5,a=i*r/1e5,s=e-a,l=t/2,c=o*Math.sin(60*Math.PI/180),u=l-c,d=l+c;return[`M0,${l}`,`L${a},${u}`,`L${s},${u}`,`L${e},${l}`,`L${s},${d}`,`L${a},${d}`,"Z"].join(" ")});oe.set("octagon",(e,t,n)=>{let i=Math.min(e,t),r=Math.min(Math.max(_i(n,"adj",29289),0),5e4),o=i*r/1e5,a=e-o,s=t-o;return[`M0,${o}`,`L${o},0`,`L${a},0`,`L${e},${o}`,`L${e},${s}`,`L${a},${t}`,`L${o},${t}`,`L0,${s}`,"Z"].join(" ")});oe.set("heptagon",(e,t)=>{let n=e/2,i=n*102572/1e5,r=t/2*105210/1e5,o=t/2*105210/1e5,a=i*97493/1e5,s=i*78183/1e5,l=i*43388/1e5,c=r*62349/1e5,u=r*22252/1e5,d=r*90097/1e5;return[`M${n-a},${o+u}`,`L${n-s},${o-c}`,`L${n},0`,`L${n+s},${o-c}`,`L${n+a},${o+u}`,`L${n+l},${o+d}`,`L${n-l},${o+d}`,"Z"].join(" ")});oe.set("decagon",(e,t)=>{let n=e/2,i=t/2,r=i*105146/1e5,o=n*Math.cos(36*Math.PI/180),a=n*Math.cos(72*Math.PI/180),s=r*Math.sin(72*Math.PI/180),l=r*Math.sin(36*Math.PI/180);return[`M0,${i}`,`L${n-o},${i-l}`,`L${n-a},${i-s}`,`L${n+a},${i-s}`,`L${n+o},${i-l}`,`L${e},${i}`,`L${n+o},${i+l}`,`L${n+a},${i+s}`,`L${n-a},${i+s}`,`L${n-o},${i+l}`,"Z"].join(" ")});oe.set("dodecagon",(e,t)=>{let n=e*2894/21600,i=e*7906/21600,r=e*13694/21600,o=e*18706/21600,a=t*2894/21600,s=t*7906/21600,l=t*13694/21600,c=t*18706/21600;return[`M0,${s}`,`L${n},${a}`,`L${i},0`,`L${r},0`,`L${o},${a}`,`L${e},${s}`,`L${e},${l}`,`L${o},${c}`,`L${r},${t}`,`L${i},${t}`,`L${n},${c}`,`L0,${l}`,"Z"].join(" ")});oe.set("parallelogram",(e,t,n)=>{let i=Math.min(e,t),r=i>0?1e5*e/i:1e5,o=Math.min(Math.max(_i(n,"adj",25e3),0),r),a=i*o/1e5,s=e-a;return`M0,${t} L${a},0 L${e},0 L${s},${t} Z`});oe.set("trapezoid",(e,t,n)=>{let i=Math.min(e,t),r=i>0?5e4*e/i:5e4,o=Math.min(Math.max(_i(n,"adj",25e3),0),r),a=i*o/1e5,s=e-a;return`M0,${t} L${a},0 L${s},0 L${e},${t} Z`});oe.set("nonIsoscelesTrapezoid",(e,t,n)=>{let i=Math.min(e,t),r=i>0?5e4*e/i:5e4,o=Math.min(Math.max(_i(n,"adj1",25e3),0),r),a=Math.min(Math.max(_i(n,"adj2",25e3),0),r),s=i*o/1e5,l=i*a/1e5,c=e-l;return`M0,${t} L${s},0 L${c},0 L${e},${t} Z`});oe.set("corner",(e,t,n)=>{let i=Math.min(e,t),r=Math.min(Math.max(st(n,"adj1",5e4),0),1),o=Math.min(Math.max(st(n,"adj2",5e4),0),1),a=i*o,s=i*r,l=t-s;return["M0,0",`L${a},0`,`L${a},${l}`,`L${e},${l}`,`L${e},${t}`,`L0,${t}`,"Z"].join(" ")});oe.set("diagStripe",(e,t,n)=>{let i=Math.min(Math.max(st(n,"adj",5e4),0),1),r=e*i;return[`M0,${t*i}`,`L${r},0`,`L${e},0`,`L0,${t}`,"Z"].join(" ")});oe.set("star4",(e,t,n)=>{let i=st(n,"adj",12500)*2;return Ym(e,t,4,Math.min(Math.max(i,0),1))});oe.set("star5",(e,t,n)=>{let i=n?.get("adj")??19098,r=Math.min(Math.max(i,0),5e4),o=105146,a=110557,s=e/2*o/1e5,l=t/2*a/1e5,c=t/2*a/1e5,u=s*r/5e4,d=l*r/5e4,f=e/2,h=2*Math.PI/5,p=h/2,g=-Math.PI/2,v=[];for(let m=0;m<5;m++){let y=g+h*m,b=y+p,x=f+s*Math.cos(y),_=c+l*Math.sin(y),S=f+u*Math.cos(b),$=c+d*Math.sin(b);v.push(m===0?`M${x},${_}`:`L${x},${_}`),v.push(`L${S},${$}`)}return v.push("Z"),v.join(" ")});oe.set("star6",(e,t,n)=>{let i=n?.get("adj")??28868,r=Math.min(Math.max(i,0),5e4),o=e/2*115470/1e5,a=t/2,s=o*r/5e4,l=a*r/5e4,c=e/2,u=t/2,d=2*Math.PI/6,f=d/2,h=-Math.PI/2,p=[];for(let g=0;g<6;g++){let v=h+d*g,m=v+f,y=c+o*Math.cos(v),b=u+a*Math.sin(v),x=c+s*Math.cos(m),_=u+l*Math.sin(m);p.push(g===0?`M${y},${b}`:`L${y},${b}`),p.push(`L${x},${_}`)}return p.push("Z"),p.join(" ")});oe.set("star7",(e,t,n)=>{let i=n?.get("adj")??34601,r=Math.min(Math.max(i,0),5e4),o=e/2*102572/1e5,a=t/2*105210/1e5,s=a,l=o*r/5e4,c=a*r/5e4,u=e/2,d=2*Math.PI/7,f=d/2,h=-Math.PI/2,p=[];for(let g=0;g<7;g++){let v=h+d*g,m=v+f,y=u+o*Math.cos(v),b=s+a*Math.sin(v),x=u+l*Math.cos(m),_=s+c*Math.sin(m);p.push(g===0?`M${y},${b}`:`L${y},${b}`),p.push(`L${x},${_}`)}return p.push("Z"),p.join(" ")});oe.set("star8",(e,t,n)=>{let i=st(n,"adj",37500)*2;return Ym(e,t,8,Math.min(Math.max(i,0),1))});oe.set("star10",(e,t,n)=>{let i=n?.get("adj")??42533,r=Math.min(Math.max(i,0),5e4),o=e/2*105146/1e5,a=t/2,s=o*r/5e4,l=a*r/5e4,c=e/2,u=t/2,d=2*Math.PI/10,f=d/2,h=-Math.PI/2,p=[];for(let g=0;g<10;g++){let v=h+d*g,m=v+f,y=c+o*Math.cos(v),b=u+a*Math.sin(v),x=c+s*Math.cos(m),_=u+l*Math.sin(m);p.push(g===0?`M${y},${b}`:`L${y},${b}`),p.push(`L${x},${_}`)}return p.push("Z"),p.join(" ")});oe.set("star12",(e,t,n)=>{let i=st(n,"adj",37500)*2;return Ym(e,t,12,Math.min(Math.max(i,0),1))});oe.set("star16",(e,t,n)=>{let i=st(n,"adj",37500)*2;return Ym(e,t,16,Math.min(Math.max(i,0),1))});oe.set("star24",(e,t,n)=>{let i=st(n,"adj",37500)*2;return Ym(e,t,24,Math.min(Math.max(i,0),1))});oe.set("star32",(e,t,n)=>{let i=st(n,"adj",37500)*2;return Ym(e,t,32,Math.min(Math.max(i,0),1))});oe.set("line",(e,t)=>e===0?`M0.5,0 L0.5,${t||1}`:t===0?`M0,0.5 L${e||1},0.5`:`M0,0 L${e},${t}`);oe.set("lineInv",(e,t)=>e===0?`M0.5,0 L0.5,${t||1}`:t===0?`M0,0.5 L${e||1},0.5`:`M${e},0 L0,${t}`);oe.set("straightConnector1",(e,t)=>e===0?`M0.5,0 L0.5,${t||1}`:t===0?`M0,0.5 L${e||1},0.5`:`M0,0 L${e},${t}`);oe.set("bentConnector2",(e,t)=>`M0,0 L${e},0 L${e},${t}`);oe.set("bentConnector3",(e,t,n)=>{let i=st(n,"adj1",5e4),r=e*i;return`M0,0 L${r},0 L${r},${t} L${e},${t}`});oe.set("bentConnector4",(e,t,n)=>{let i=st(n,"adj1",5e4),r=st(n,"adj2",5e4),o=e*i,a=t*r;return`M0,0 L${o},0 L${o},${a} L${e},${a} L${e},${t}`});oe.set("curvedConnector2",(e,t)=>`M0,0 C${e/2},0 ${e},${t/2} ${e},${t}`);oe.set("curvedConnector3",(e,t,n)=>{let i=e*st(n,"adj1",5e4),r=i/2,o=(e+i)/2,a=t/2,s=t/4,l=t*3/4;return`M0,0 C${r},0 ${i},${s} ${i},${a} C${i},${l} ${o},${t} ${e},${t}`});oe.set("curvedConnector4",(e,t,n)=>{let i=e*st(n,"adj1",5e4),r=t*st(n,"adj2",5e4),o=i/2,a=(e+i)/2,s=(i+a)/2,l=(a+e)/2,c=r/2,u=c/2,d=(c+r)/2,f=(t+r)/2;return["M0,0",`C${o},0 ${i},${u} ${i},${c}`,`C${i},${d} ${s},${r} ${a},${r}`,`C${l},${r} ${e},${f} ${e},${t}`].join(" ")});oe.set("curvedConnector5",(e,t,n)=>{let i=e*st(n,"adj1",5e4),r=t*st(n,"adj2",5e4),o=e*st(n,"adj3",5e4),a=(i+o)/2,s=i/2,l=(i+a)/2,c=(o+a)/2,u=(o+e)/2,d=r/2,f=d/2,h=(d+r)/2,p=(t+r)/2,g=(p+r)/2,v=(p+t)/2;return["M0,0",`C${s},0 ${i},${f} ${i},${d}`,`C${i},${h} ${l},${r} ${a},${r}`,`C${c},${r} ${o},${g} ${o},${p}`,`C${o},${v} ${u},${t} ${e},${t}`].join(" ")});oe.set("bentConnector5",(e,t,n)=>{let i=st(n,"adj1",5e4),r=st(n,"adj2",5e4),o=st(n,"adj3",5e4),a=e*i,s=t*r,l=e*o;return`M0,0 L${a},0 L${a},${s} L${l},${s} L${l},${t} L${e},${t}`});oe.set("rightArrow",(e,t,n)=>{let i=st(n,"adj1",5e4),r=st(n,"adj2",5e4),o=Math.min(e,t),a=t*i/2,s=o*r,l=t/2,c=e-s;return[`M0,${l-a}`,`L${c},${l-a}`,`L${c},0`,`L${e},${l}`,`L${c},${t}`,`L${c},${l+a}`,`L0,${l+a}`,"Z"].join(" ")});oe.set("leftArrow",(e,t,n)=>{let i=st(n,"adj1",5e4),r=st(n,"adj2",5e4),o=Math.min(e,t),a=t*i/2,s=o*r,l=t/2;return[`M${e},${l-a}`,`L${s},${l-a}`,`L${s},0`,`L0,${l}`,`L${s},${t}`,`L${s},${l+a}`,`L${e},${l+a}`,"Z"].join(" ")});oe.set("upArrow",(e,t,n)=>{let i=st(n,"adj1",5e4),r=st(n,"adj2",5e4),o=e*i/2,a=t*r,s=e/2;return[`M${s-o},${t}`,`L${s-o},${a}`,`L0,${a}`,`L${s},0`,`L${e},${a}`,`L${s+o},${a}`,`L${s+o},${t}`,"Z"].join(" ")});oe.set("downArrow",(e,t,n)=>{let i=st(n,"adj1",5e4),r=st(n,"adj2",5e4),o=e*i/2,a=t*r,s=e/2,l=t-a;return[`M${s-o},0`,`L${s+o},0`,`L${s+o},${l}`,`L${e},${l}`,`L${s},${t}`,`L0,${l}`,`L${s-o},${l}`,"Z"].join(" ")});oe.set("downArrowCallout",(e,t,n)=>{let i=n?.get("adj1")??25e3,r=n?.get("adj2")??25e3,o=n?.get("adj3")??25e3,a=n?.get("adj4")??64977,s=Math.min(e,t),l=Math.max(0,Math.min(r,5e4*e/Math.max(s,1))),c=Math.max(0,Math.min(i,l*2)),u=Math.max(0,Math.min(o,1e5*t/Math.max(s,1))),d=u*s/Math.max(t,1),f=Math.max(0,Math.min(a,1e5-d)),h=e/2,p=s*l/1e5,g=s*c/2e5,v=h-p,m=h-g,y=h+g,b=h+p,x=t-s*u/1e5,_=t*f/1e5;return["M0,0",`L${e},0`,`L${e},${_}`,`L${y},${_}`,`L${y},${x}`,`L${b},${x}`,`L${h},${t}`,`L${v},${x}`,`L${m},${x}`,`L${m},${_}`,`L0,${_}`,"Z"].join(" ")});oe.set("rightArrowCallout",(e,t,n)=>{let i=Math.min(e,t),r=5e4*t/Math.max(i,1),o=Math.max(0,Math.min(n?.get("adj2")??25e3,r)),a=Math.max(0,Math.min(n?.get("adj1")??25e3,o*2)),s=1e5*e/Math.max(i,1),l=Math.max(0,Math.min(n?.get("adj3")??25e3,s)),c=l*i/Math.max(e,1),u=Math.max(0,Math.min(n?.get("adj4")??64977,1e5-c)),d=t/2,f=i*o/1e5,h=i*a/2e5,p=d-f,g=d-h,v=d+h,m=d+f,y=i*l/1e5,b=e-y,x=e*u/1e5;return["M0,0",`L${x},0`,`L${x},${g}`,`L${b},${g}`,`L${b},${p}`,`L${e},${d}`,`L${b},${m}`,`L${b},${v}`,`L${x},${v}`,`L${x},${t}`,`L0,${t}`,"Z"].join(" ")});oe.set("leftArrowCallout",(e,t,n)=>{let i=Math.min(e,t),r=5e4*t/Math.max(i,1),o=Math.max(0,Math.min(n?.get("adj2")??25e3,r)),a=Math.max(0,Math.min(n?.get("adj1")??25e3,o*2)),s=1e5*e/Math.max(i,1),l=Math.max(0,Math.min(n?.get("adj3")??25e3,s)),c=l*i/Math.max(e,1),u=Math.max(0,Math.min(n?.get("adj4")??64977,1e5-c)),d=t/2,f=i*o/1e5,h=i*a/2e5,p=d-f,g=d-h,v=d+h,m=d+f,y=i*l/1e5,b=e*u/1e5,x=e-b;return[`M0,${d}`,`L${y},${p}`,`L${y},${g}`,`L${x},${g}`,`L${x},0`,`L${e},0`,`L${e},${t}`,`L${x},${t}`,`L${x},${v}`,`L${y},${v}`,`L${y},${m}`,"Z"].join(" ")});oe.set("upArrowCallout",(e,t,n)=>{let i=Math.min(e,t),r=5e4*e/Math.max(i,1),o=Math.max(0,Math.min(n?.get("adj2")??25e3,r)),a=Math.max(0,Math.min(n?.get("adj1")??25e3,o*2)),s=1e5*t/Math.max(i,1),l=Math.max(0,Math.min(n?.get("adj3")??25e3,s)),c=l*i/Math.max(t,1),u=Math.max(0,Math.min(n?.get("adj4")??64977,1e5-c)),d=e/2,f=i*o/1e5,h=i*a/2e5,p=d-f,g=d-h,v=d+h,m=d+f,y=i*l/1e5,b=t*u/1e5,x=t-b;return[`M0,${x}`,`L${g},${x}`,`L${g},${y}`,`L${p},${y}`,`L${d},0`,`L${m},${y}`,`L${v},${y}`,`L${v},${x}`,`L${e},${x}`,`L${e},${t}`,`L0,${t}`,"Z"].join(" ")});oe.set("upDownArrowCallout",(e,t,n)=>{let i=n?.get("adj1")??25e3,r=n?.get("adj2")??25e3,o=n?.get("adj3")??25e3,a=n?.get("adj4")??48123,s=Math.min(e,t),l=Math.max(0,Math.min(r,5e4*e/Math.max(s,1))),c=Math.max(0,Math.min(i,l*2)),u=Math.max(0,Math.min(o,5e4*t/Math.max(s,1))),d=u*s/Math.max(t,1),f=Math.max(0,Math.min(a,1e5-d-d)),h=s*l/1e5,p=s*c/2e5,g=e/2,v=g-h,m=g-p,y=g+p,b=g+h,x=s*u/1e5,_=t*f/2e5,S=t/2-_,$=t/2+_,C=t-x;return[`M${g},0`,`L${b},${x}`,`L${y},${x}`,`L${y},${S}`,`L${e},${S}`,`L${e},${$}`,`L${y},${$}`,`L${y},${C}`,`L${b},${C}`,`L${g},${t}`,`L${v},${C}`,`L${m},${C}`,`L${m},${$}`,`L0,${$}`,`L0,${S}`,`L${m},${S}`,`L${m},${x}`,`L${v},${x}`,"Z"].join(" ")});oe.set("leftRightArrowCallout",(e,t,n)=>{let i=n?.get("adj1")??25e3,r=n?.get("adj2")??25e3,o=n?.get("adj3")??25e3,a=n?.get("adj4")??48123,s=Math.min(e,t),l=Math.max(0,Math.min(r,5e4*t/Math.max(s,1))),c=Math.max(0,Math.min(i,l*2)),u=Math.max(0,Math.min(o,5e4*e/Math.max(s,1))),d=u*s/Math.max(e,1),f=Math.max(0,Math.min(a,1e5-d-d)),h=s*l/1e5,p=s*c/2e5,g=t/2,v=g-h,m=g-p,y=g+p,b=g+h,x=s*u/1e5,_=e*f/2e5,S=e/2-_,$=e/2+_,C=e-x;return[`M0,${g}`,`L${x},${v}`,`L${x},${m}`,`L${S},${m}`,`L${S},0`,`L${$},0`,`L${$},${m}`,`L${C},${m}`,`L${C},${v}`,`L${e},${g}`,`L${C},${b}`,`L${C},${y}`,`L${$},${y}`,`L${$},${t}`,`L${S},${t}`,`L${S},${y}`,`L${x},${y}`,`L${x},${b}`,"Z"].join(" ")});oe.set("uturnArrow",(e,t,n)=>{let i=n?.get("adj1")??25e3,r=n?.get("adj2")??25e3,o=n?.get("adj3")??25e3,a=n?.get("adj4")??43750,s=n?.get("adj5")??75e3,l=Math.min(e,t),c=Math.max(0,Math.min(r,25e3)),u=Math.max(0,Math.min(i,c*2)),d=1e5-u*l/Math.max(t,1),f=Math.max(0,Math.min(o,d*t/Math.max(l,1))),h=(f+u)*l/Math.max(t,1),p=Math.max(h,Math.min(s,1e5)),g=l*u/1e5,v=l*c/1e5,m=g/2,y=v-m,b=t*p/1e5,x=l*f/1e5,_=b-x,S=e-y,$=Math.min(S/2,_),C=Math.max(0,Math.min(a,1e5*$/Math.max(l,1))),w=l*C/1e5,z=Math.max(w-g,0),A=g+z,M=e-v,T=M-v,k=T+y,I=S-w,D=k-z;return[`M0,${t}`,`L0,${w}`,w>.1?`A${w},${w} 0 0,1 ${w},0`:"L0,0",`L${I},0`,w>.1?`A${w},${w} 0 0,1 ${S},${w}`:`L${S},0`,`L${S},${_}`,`L${e},${_}`,`L${M},${b}`,`L${T},${_}`,`L${k},${_}`,`L${k},${A}`,z>.1?`A${z},${z} 0 0,0 ${D},${g}`:`L${D},${g}`,`L${A},${g}`,z>.1?`A${z},${z} 0 0,0 ${g},${A}`:`L${g},${A}`,`L${g},${t}`,"Z"].join(" ")});oe.set("leftRightArrow",(e,t,n)=>{let i=Math.min(e,t),r=t/2,o=i>0?5e4*e/i:0,a=Math.min(Math.max(n?.get("adj1")??5e4,0),1e5),s=Math.min(Math.max(n?.get("adj2")??5e4,0),o),l=i*s/1e5,c=e-l,u=t*a/2e5,d=r,f=d-u,h=d+u;return[`M0,${d}`,`L${l},0`,`L${l},${f}`,`L${c},${f}`,`L${c},0`,`L${e},${d}`,`L${c},${t}`,`L${c},${h}`,`L${l},${h}`,`L${l},${t}`,"Z"].join(" ")});oe.set("leftUpArrow",(e,t,n)=>{let i=Math.max(0,Math.min(n?.get("adj2")??25e3,5e4)),r=i*2,o=Math.max(0,Math.min(n?.get("adj1")??25e3,r)),a=1e5-r,s=Math.max(0,Math.min(n?.get("adj3")??25e3,a)),l=Math.min(e,t),c=l*s/1e5,u=l*i/5e4,d=e-u,f=t-u,h=l*i/1e5,p=e-h,g=t-h,v=l*o/2e5,m=p-v,y=p+v,b=g-v,x=g+v;return[`M0,${g}`,`L${c},${f}`,`L${c},${b}`,`L${m},${b}`,`L${m},${c}`,`L${d},${c}`,`L${p},0`,`L${e},${c}`,`L${y},${c}`,`L${y},${x}`,`L${c},${x}`,`L${c},${t}`,"Z"].join(" ")});oe.set("upDownArrow",(e,t,n)=>{let i=n?.get("adj1")??5e4,r=n?.get("adj2")??5e4,o=Math.min(e,t),a=5e4*t/Math.max(o,1),s=Math.max(0,Math.min(r,a)),l=Math.max(0,Math.min(i,1e5)),c=o*l/2e5,u=o*s/1e5,d=e/2;return[`M${d},0`,`L${e},${u}`,`L${d+c},${u}`,`L${d+c},${t-u}`,`L${e},${t-u}`,`L${d},${t}`,`L0,${t-u}`,`L${d-c},${t-u}`,`L${d-c},${u}`,`L0,${u}`,"Z"].join(" ")});oe.set("notchedRightArrow",(e,t,n)=>{let i=st(n,"adj1",5e4),r=st(n,"adj2",5e4),o=Math.min(e,t),a=t*i/2,s=o*r,l=t/2,c=e-s,u=l>0?a*s/l:0;return[`M0,${l-a}`,`L${c},${l-a}`,`L${c},0`,`L${e},${l}`,`L${c},${t}`,`L${c},${l+a}`,`L0,${l+a}`,`L${u},${l}`,"Z"].join(" ")});oe.set("chevron",(e,t,n)=>{let i=st(n,"adj",5e4),r=Math.min(e,t)*i;return["M0,0",`L${e-r},0`,`L${e},${t/2}`,`L${e-r},${t}`,`L0,${t}`,`L${r},${t/2}`,"Z"].join(" ")});oe.set("homePlate",(e,t,n)=>{let i=st(n,"adj",5e4),r=Math.min(e,t)*i,o=e-r;return["M0,0",`L${o},0`,`L${e},${t/2}`,`L${o},${t}`,`L0,${t}`,"Z"].join(" ")});oe.set("stripedRightArrow",(e,t,n)=>{let i=Math.min(e,t),r=i>0?84375*e/i:84375,o=Math.min(Math.max(_i(n,"adj1",5e4),0),1e5),a=Math.min(Math.max(_i(n,"adj2",5e4),0),r),s=t*o/2e5,l=i*a/1e5,c=e-l,u=t/2,d=u-s,f=u+s,h=i/32,p=i/16,g=i/8,v=i*5/32;return[`M0,${d} L${h},${d} L${h},${f} L0,${f} Z`,`M${p},${d} L${g},${d} L${g},${f} L${p},${f} Z`,`M${v},${d}`,`L${c},${d}`,`L${c},0`,`L${e},${u}`,`L${c},${t}`,`L${c},${f}`,`L${v},${f}`,"Z"].join(" ")});oe.set("bentArrow",(e,t,n)=>{let i=Math.min(e,t),r=Math.max(0,Math.min(n?.get("adj2")??25e3,5e4)),o=r*2,a=Math.max(0,Math.min(n?.get("adj1")??25e3,o)),s=Math.max(0,Math.min(n?.get("adj3")??25e3,5e4)),l=i*a/1e5,c=i*r/1e5,u=l/2,d=c-u,f=i*s/1e5,h=e-f,p=t-d,g=Math.min(h,p),v=g>0?1e5*g/i:0,m=Math.max(0,Math.min(n?.get("adj4")??43750,v)),y=i*m/1e5,b=Math.max(y-l,0),x=l+b,_=e-f,S=d+l,$=S+d,C=d+y,w=S+b,z=[`M0,${t}`,`L0,${C}`];return y>.1?z.push(`A${y},${y} 0 0,1 ${y},${d}`):z.push(`L0,${d}`),z.push(`L${_},${d}`,`L${_},0`,`L${e},${c}`,`L${_},${$}`,`L${_},${S}`,`L${x},${S}`),b>.1?z.push(`A${b},${b} 0 0,0 ${l},${w}`):z.push(`L${l},${S}`),z.push(`L${l},${t}`,"Z"),z.join(" ")});oe.set("bentUpArrow",(e,t,n)=>{let i=Math.max(0,Math.min(n?.get("adj1")??25e3,5e4)),r=Math.max(0,Math.min(n?.get("adj2")??25e3,5e4)),o=Math.max(0,Math.min(n?.get("adj3")??25e3,5e4)),a=Math.min(e,t),s=a*o/1e5,l=a*r/5e4,c=e-l,u=a*r/1e5,d=e-u,f=a*i/2e5,h=d-f,p=d+f,g=a*i/1e5,v=t-g;return[`M0,${v}`,`L${h},${v}`,`L${h},${s}`,`L${c},${s}`,`L${d},0`,`L${e},${s}`,`L${p},${s}`,`L${p},${t}`,`L0,${t}`,"Z"].join(" ")});oe.set("curvedRightArrow",(e,t,n)=>{let i=n?.get("adj1")??25e3,r=n?.get("adj2")??5e4,o=n?.get("adj3")??25e3,a=5e4,s=1e5,l=t/2,c=e,u=t,d=0,f=270,h=180,p=90,g=Math.max(Math.min(e,t),1),v=a*t/g,m=Math.max(0,Math.min(r,v)),y=Math.max(0,Math.min(i,m)),b=g*y/s,x=g*m/s,_=(b+x)/4,S=l-_,$=S*2,C=$*$,w=b*b,z=Math.max(C-w,0),A=Math.sqrt(z)*e/Math.max($,1e-6),M=s*A/g,T=Math.max(0,Math.min(o,M)),k=g*T/s,I=S+b,D=e*e,E=k*k,N=Math.max(D-E,0),F=Math.sqrt(N)*S/Math.max(e,1e-6),G=S+F,P=I+F,O=(x-b)/2,V=G-O,j=P+O,H=x/2,Q=u-H,le=c-k,se=Math.atan(F/Math.max(k,1e-6)),ae=Math.PI-se,Se=-se,ve=b/2,$e=Math.atan2(ve,Math.max(A,1e-6))-Math.PI/2,je=ae*180/Math.PI,R=Se*180/Math.PI,ie=se*180/Math.PI,te=$e*180/Math.PI,B=(U,W,ue,de,J,ge)=>{let we=J*Math.PI/180,X=ge*Math.PI/180,K=U+ue*Math.cos(we),Ce=W+de*Math.sin(we),ye=U+ue*Math.cos(X),Qe=W+de*Math.sin(X),mt=ge-J,et=Math.abs(mt)>180?1:0,Le=mt>=0?1:0;return`M${K},${Ce} A${ue},${de} 0 ${et},${Le} ${ye},${Qe}`};return[`M${d},${S}`,B(e,S,e,S,h,h+R).replace("M","L"),`L${le},${G}`,`L${le},${V}`,`L${c},${Q}`,`L${le},${j}`,`L${le},${P}`,B(e,I,e,S,je,je+ie).replace("M","L"),"Z",B(e,S,e,S,h,h+p),`L${c},${b}`,B(e,I,e,S,f,f+te).replace("M","L"),"Z"].join(" ")});oe.set("curvedLeftArrow",(e,t,n)=>Cge(oe.get("curvedRightArrow")(e,t,n),e));function dK(e){let t=e.indexOf("Z");if(t===-1)return{outer:e,remainder:""};let n=e.slice(0,t+1).trim(),i=e.slice(t+1).trim();return{outer:n,remainder:i}}function hK(e,t,n,i){let r=oe.get(e)(t,n,i),{outer:o,remainder:a}=dK(r);return a?e==="curvedRightArrow"?[{d:a,fill:"norm",stroke:!0},{d:o,fill:"norm",stroke:!0}]:[{d:o,fill:"norm",stroke:!0},{d:a,fill:"norm",stroke:!0}]:[{d:r,fill:"norm",stroke:!0}]}function fK(e,t,n,i){let r=oe.get("curvedDownArrow")(t,n,i),{outer:o,remainder:a}=dK(r),s=a?[{d:a,fill:"norm",stroke:!0},{d:o,fill:"norm",stroke:!0}]:[{d:r,fill:"norm",stroke:!0}];return e==="curvedDownArrow"?s:s.map(l=>({...l,d:zge(l.d,n)})).reverse()}oe.set("curvedUpArrow",(e,t,n)=>{let i=(V,j,H,Q,le,se)=>{let ae=le*Math.PI/180,Se=se*Math.PI/180,ve=V+H*Math.cos(ae),$e=j+Q*Math.sin(ae),je=V+H*Math.cos(Se),R=j+Q*Math.sin(Se),ie=se-le,te=Math.abs(ie)>180?1:0,B=ie>=0?1:0;return`M${ve},${$e} A${H},${Q} 0 ${te},${B} ${je},${R}`},r=Math.min(e,t),o=e/2,a=n?.get("adj1")??25e3,s=n?.get("adj2")??5e4,l=n?.get("adj3")??25e3,c=5e4*e/Math.max(r,1),u=Math.max(0,Math.min(s,c)),d=Math.max(0,Math.min(a,1e5)),f=r*d/1e5,h=r*u/1e5,p=(f+h)/4,g=o-p,v=g*2,m=Math.sqrt(Math.max(v*v-f*f,0))*t/Math.max(v,1),y=1e5*m/Math.max(r,1),b=Math.max(0,Math.min(l,y)),x=r*b/1e5,_=g+f,S=Math.sqrt(Math.max(t*t-x*x,0))*g/Math.max(t,1),$=g+S,C=_+S,w=(h-f)/2,z=$-w,A=C+w,M=e-h/2,T=x,k=Math.atan2(S,x),I=Math.atan2(f/2,m),D=Math.PI/2-I,E=I-k,N=Math.PI/2-k,F=D*180/Math.PI,G=E*180/Math.PI,P=N*180/Math.PI,O=k*180/Math.PI;return[i(g,0,g,t,F,F+G),`L${$},${T}`,`L${z},${T}`,`L${M},0`,`L${A},${T}`,`L${C},${T}`,i(_,0,g,t,P,P+O).replace("M","L"),`L${g},${t}`,i(g,0,g,t,90,180).replace("M","L"),`L${f},0`,i(_,0,g,t,180,90).replace("M","L"),"Z"].join(" ")});oe.set("curvedDownArrow",(e,t,n)=>{let i=(G,P,O,V,j,H)=>{let Q=j*Math.PI/180,le=H*Math.PI/180,se=G+O*Math.cos(Q),ae=P+V*Math.sin(Q),Se=G+O*Math.cos(le),ve=P+V*Math.sin(le),$e=H-j,je=Math.abs($e)>180?1:0,R=$e>=0?1:0;return`M${se},${ae} A${O},${V} 0 ${je},${R} ${Se},${ve}`},r=Math.min(e,t),o=e/2,a=n?.get("adj1")??25e3,s=n?.get("adj2")??5e4,l=n?.get("adj3")??25e3,c=5e4*e/Math.max(r,1),u=Math.max(0,Math.min(s,c)),d=Math.max(0,Math.min(a,1e5)),f=r*d/1e5,h=r*u/1e5,p=(f+h)/4,g=o-p,v=g*2,m=Math.sqrt(Math.max(v*v-f*f,0))*t/Math.max(v,1),y=1e5*m/Math.max(r,1),b=Math.max(0,Math.min(l,y)),x=r*b/1e5,_=g+f,S=Math.sqrt(Math.max(t*t-x*x,0))*g/Math.max(t,1),$=g+S,C=_+S,w=(h-f)/2,z=$-w,A=C+w,M=e-h/2,T=t-x,k=Math.atan2(S,x)*180/Math.PI,I=Math.atan2(f/2,m)*180/Math.PI,D=270+k,E=270-I,N=I-90,F=90+I;return[`M${M},${t}`,`L${z},${T}`,`L${$},${T}`,i(g,t,g,t,D,D-k).replace("M","L"),`L${_},0`,i(_,t,g,t,270,270+k).replace("M","L"),`L${$+f},${T}`,`L${A},${T}`,"Z",`M${_},0`,i(_,t,g,t,E,E+N).replace("M","L"),i(g,t,g,t,180,180+F).replace("M","L"),"Z"].join(" ")});function pK(e,t,n,i=!1,r="circularArrow"){let o=e/2,a=t/2,s=e/2,l=t/2,c=Math.min(e,t),u=108e5,d=Tn=>Tn/6e4*Math.PI/180,f=(Tn,Vi)=>Tn*Math.sin(d(Vi)),h=(Tn,Vi)=>Tn*Math.cos(d(Vi)),p=(Tn,Vi,nc)=>Tn*Math.cos(Math.atan2(nc,Vi)),g=(Tn,Vi,nc)=>Tn*Math.sin(Math.atan2(nc,Vi)),v=(Tn,Vi)=>Math.atan2(Vi,Tn)*180/Math.PI*6e4,m=(Tn,Vi,nc)=>Math.sqrt(Tn*Tn+Vi*Vi+nc*nc),y=r==="leftCircularArrow",b=n?.get("adj1")??12500,x=n?.get("adj2")??(y?-1142319:1142319),_=n?.get("adj3")??(y?1142319:20457681),S=n?.get("adj4")??108e5,$=n?.get("adj5")??12500,C=Math.max(0,Math.min($,25e3)),w=C*2,z=Math.max(0,Math.min(b,w)),A=Math.max(1,Math.min(_,21599999)),M=Math.max(0,Math.min(S,21599999)),T=c*z/1e5,k=c*C/1e5,I=T/2,D=s+I-k,E=l+I-k,N=D-T,F=E-T,G=N+I,P=F+I,O=f(G,A),V=h(P,A),j=p(G,V,O),H=g(P,V,O),Q=o+j,le=a+H,se=Math.min(N,F),ae=j*j,Se=H*H,ve=se*se,$e=ae-ve,je=Se-ve,R=Se!==0?$e*je/ae:0,ie=1-(Se!==0?R/Se:0),te=Math.sqrt(Math.max(0,ie)),B=j!==0?$e/j:0,U=H!==0?B/H:0,W=U!==0?(1+te)/U:0,ue=v(1,W),de=ue+216e5,J=(ue>=0?ue:de)-A,ge=J+216e5,we=J>=0?J:ge,X=we-u,K=we-216e5,Ce=X>=0?K:we,ye=Math.abs(Ce),Qe;if(y){let Tn=-ye,Vi=-Math.abs(x);Qe=Math.max(Tn,Math.min(Vi,0))}else Qe=Math.max(0,Math.min(x,ye));let mt=A+Qe,et=f(G,mt),Le=h(P,mt),Oe=p(G,Le,et),ot=g(P,Le,et),$t=o+Oe,Bt=a+ot,sn=f(D,M),ct=h(E,M),pn=p(D,ct,sn),zn=g(E,ct,sn),Ge=o+pn,Xe=a+zn,ht=h(k,mt),Re=f(k,mt),vt=Q+ht,Mt=le+Re,Ze=Q-ht,lt=le-Re,bt=Ze-o,it=lt-a,Kt=vt-o,wt=Mt-a,ut=Math.min(D,E),he=D!==0?bt*ut/D:0,xe=E!==0?it*ut/E:0,tt=D!==0?Kt*ut/D:0,qe=E!==0?wt*ut/E:0,dt=tt-he,zt=qe-xe,Pn=m(dt,zt,0),Qn=he*qe,ui=tt*xe,Zn=Qn-ui,Gn=ut*ut,Wt=Pn*Pn,Ui=Gn*Wt,Ua=Zn*Zn,Mo=Ui-Ua,Dr=Math.max(Mo,0),Or=Math.sqrt(Dr),Ba=zt*-1>=0?-1:1,Bi=Ba*dt*Or,Co=Zn*zt,zo=Wt!==0?(Co+Bi)/Wt:0,Yl=Co-Bi,Ds=Wt!==0?Yl/Wt:0,Si=Math.abs(zt)*Or,wn=Zn*dt*-1,fa=Wt!==0?(wn+Si)/Wt:0,Fi=wn-Si,pa=Wt!==0?Fi/Wt:0,Fa=tt-zo,Xl=tt-Ds,jh=qe-fa,Uh=qe-pa,Bh=m(Fa,jh,0),Lu=m(Xl,Uh,0)-Bh,Eu=Lu>=0?zo:Ds,Fh=Lu>=0?fa:pa,Du=ut!==0?Eu*D/ut:0,Os=ut!==0?Fh*E/ut:0,Ns=o+Du,Kl=a+Os,Ps=N!==0?bt*se/N:0,js=F!==0?it*se/F:0,ma=N!==0?Kt*se/N:0,qi=F!==0?wt*se/F:0,Jl=ma-Ps,ga=qi-js,Us=m(Jl,ga,0),Ql=Ps*qi,ec=ma*js,tc=Ql-ec,sr=se*se,ln=Us*Us,Bs=sr*ln,zi=tc*tc,SM=Bs-zi,Fx=Math.max(SM,0),XP=Math.sqrt(Fx),KP=Ba*Jl*XP,JP=tc*ga,QP=ln!==0?(JP+KP)/ln:0,hie=JP-KP,e6=ln!==0?hie/ln:0,t6=Math.abs(ga)*XP,n6=tc*Jl*-1,i6=ln!==0?(n6+t6)/ln:0,fie=n6-t6,r6=ln!==0?fie/ln:0,pie=Ps-QP,mie=Ps-e6,gie=js-i6,vie=js-r6,yie=m(pie,gie,0),o6=m(mie,vie,0)-yie,bie=o6>=0?QP:e6,xie=o6>=0?i6:r6,a6=se!==0?bie*N/se:0,s6=se!==0?xie*F/se:0,$M=o+a6,wM=a+s6,kM=v(a6,s6),_ie=kM+216e5,MM=kM>=0?kM:_ie,qh=M-MM,CM,rg;if(y){let Tn=qh>=0?qh:qh+216e5;CM=MM+Tn,rg=-Tn}else CM=MM,rg=qh>=0?qh-216e5:qh;let Sie=Ns-$M,$ie=Kl-wM,qx=m(Sie,$ie,0)/2-k,l6=qx>=0?Ns:vt,c6=qx>=0?Kl:Mt,u6=qx>=0?$M:Ze,d6=qx>=0?wM:lt,zM=v(Du,Os),wie=zM+216e5,Vh=(zM>=0?zM:wie)-M,TM,og;if(y){let Tn=Vh>=0?Vh-216e5:Vh;TM=M+Tn,og=-Tn}else{let Tn=Vh>=0?Vh:Vh+216e5;TM=M,og=Tn}let h6=TM+og,f6=f(D,h6),p6=h(E,h6),m6=o+p(D,p6,f6),g6=a+g(E,p6,f6),v6=CM+rg,y6=f(N,v6),b6=h(F,v6),x6=o+p(N,b6,y6),_6=a+g(F,b6,y6),S6=Math.abs(og/6e4)>180?1:0,$6=og>0?1:0,w6=Math.abs(rg/6e4)>180?1:0,k6=rg>0?1:0;if(y){let Tn=f(N,M),Vi=h(F,M),nc=o+p(N,Vi,Tn),kie=a+g(F,Vi,Tn);return[`M${Ge},${Xe}`,`L${nc},${kie}`,`A${N},${F} 0 ${w6},${k6} ${x6},${_6}`,`L${u6},${d6}`,`L${$t},${Bt}`,`L${l6},${c6}`,`L${Ns},${Kl}`,`A${D},${E} 0 ${S6},${$6} ${m6},${g6}`,"Z"].join(" ")}return[`M${Ge},${Xe}`,`A${D},${E} 0 ${S6},${$6} ${m6},${g6}`,`L${l6},${c6}`,`L${$t},${Bt}`,`L${u6},${d6}`,`L${$M},${wM}`,`A${N},${F} 0 ${w6},${k6} ${x6},${_6}`,"Z"].join(" ")}oe.set("circularArrow",(e,t,n)=>pK(e,t,n,!1,"circularArrow"));oe.set("leftCircularArrow",(e,t,n)=>pK(e,t,n,!1,"leftCircularArrow"));oe.set("leftRightCircularArrow",(e,t,n)=>{let i=e/400,r=t/280,o=(z,A)=>({x:z*i,y:A*r}),a=o(35,140),s=o(19.9536,89.9471),l=o(33.4296,89.9471),c=o(74.6127,28.1974),u=o(182.5744,.5489),d=o(274.5688,28.1924),f=o(315.4978,40.4912),h=o(348.2481,62.4743),p=o(366.5707,89.9471),g=o(380.0463,89.9471),v=o(365,140),m=o(310.0463,89.9471),y=o(320.9838,89.9471),b=o(274.3848,50.3095),x=o(182.4425,40.5864),_=o(115.6249,68.2298),S=o(101.3589,74.1319),$=o(88.9651,81.4842),C=o(79.0159,89.947),w=o(89.9536,89.9471);return[`M${a.x},${a.y}`,`L${s.x},${s.y}`,`L${l.x},${l.y}`,`C${c.x},${c.y} ${u.x},${u.y} ${d.x},${d.y}`,`C${f.x},${f.y} ${h.x},${h.y} ${p.x},${p.y}`,`L${g.x},${g.y}`,`L${v.x},${v.y}`,`L${m.x},${m.y}`,`L${y.x},${y.y}`,`C${b.x},${b.y} ${x.x},${x.y} ${_.x},${_.y}`,`C${S.x},${S.y} ${$.x},${$.y} ${C.x},${C.y}`,`L${w.x},${w.y}`,"Z"].join(" ")});oe.set("quadArrow",(e,t,n)=>{let i=n?.get("adj1")??22500,r=n?.get("adj2")??22500,o=n?.get("adj3")??22500,a=t/2,s=e/2,l=Math.min(e,t),c=Math.max(0,Math.min(r,5e4)),u=Math.max(0,Math.min(i,2*c)),d=Math.max(0,Math.min(o,(1e5-2*c)/2)),f=l*d/1e5,h=l*c/1e5,p=s-h,g=s+h,v=l*u/2e5,m=s-v,y=s+v,b=e-f,x=a-h,_=a+h,S=a-v,$=a+v,C=t-f;return[`M0,${a}`,`L${f},${x}`,`L${f},${S}`,`L${m},${S}`,`L${m},${f}`,`L${p},${f}`,`L${s},0`,`L${g},${f}`,`L${y},${f}`,`L${y},${S}`,`L${b},${S}`,`L${b},${x}`,`L${e},${a}`,`L${b},${_}`,`L${b},${$}`,`L${y},${$}`,`L${y},${C}`,`L${g},${C}`,`L${s},${t}`,`L${p},${C}`,`L${m},${C}`,`L${m},${$}`,`L${f},${$}`,`L${f},${_}`,"Z"].join(" ")});oe.set("quadArrowCallout",(e,t,n)=>{let i=Math.min(e,t),r=e/2,o=t/2,a=Math.max(0,Math.min(n?.get("adj2")??18515,5e4)),s=Math.max(0,Math.min(n?.get("adj1")??18515,a*2)),l=5e4-a,c=Math.max(0,Math.min(n?.get("adj3")??18515,l)),u=c*2,d=Math.max(s,Math.min(n?.get("adj4")??48123,1e5-u)),f=i*a/1e5,h=i*s/2e5,p=i*c/1e5,g=e*d/2e5,v=t*d/2e5,m=e-p,y=r-g,b=r+g,x=r-f,_=r+f,S=r-h,$=r+h,C=t-p,w=o-v,z=o+v,A=o-f,M=o+f,T=o-h,k=o+h;return[`M0,${o}`,`L${p},${A}`,`L${p},${T}`,`L${y},${T}`,`L${y},${w}`,`L${S},${w}`,`L${S},${p}`,`L${x},${p}`,`L${r},0`,`L${_},${p}`,`L${$},${p}`,`L${$},${w}`,`L${b},${w}`,`L${b},${T}`,`L${m},${T}`,`L${m},${A}`,`L${e},${o}`,`L${m},${M}`,`L${m},${k}`,`L${b},${k}`,`L${b},${z}`,`L${$},${z}`,`L${$},${C}`,`L${_},${C}`,`L${r},${t}`,`L${x},${C}`,`L${S},${C}`,`L${S},${z}`,`L${y},${z}`,`L${y},${k}`,`L${p},${k}`,`L${p},${M}`,"Z"].join(" ")});oe.set("leftRightUpArrow",(e,t,n)=>{let i=Math.max(0,Math.min(n?.get("adj2")??25e3,5e4)),r=i*2,o=Math.max(0,Math.min(n?.get("adj1")??25e3,r)),a=(1e5-r)/2,s=Math.max(0,Math.min(n?.get("adj3")??25e3,a)),l=Math.min(e,t),c=e/2,u=l*s/1e5,d=l*i/1e5,f=c-d,h=c+d,p=l*o/2e5,g=c-p,v=c+p,m=e-u,y=l*i/5e4,b=t-y,x=t-d,_=x-p,S=x+p;return[`M0,${x}`,`L${u},${b}`,`L${u},${_}`,`L${g},${_}`,`L${g},${u}`,`L${f},${u}`,`L${c},0`,`L${h},${u}`,`L${v},${u}`,`L${v},${_}`,`L${m},${_}`,`L${m},${b}`,`L${e},${x}`,`L${m},${t}`,`L${m},${S}`,`L${u},${S}`,`L${u},${t}`,"Z"].join(" ")});oe.set("swooshArrow",(e,t,n)=>{let i=Math.min(e,t),r=n?.get("adj1")??25e3,o=n?.get("adj2")??16667,a=Math.max(1,Math.min(r,75e3)),s=7e4*e/i,l=Math.max(0,Math.min(o,s)),c=t*a/1e5,u=i*l/1e5,d=i/8,f=t/6,h=Math.PI/2/14,p=Math.tan(h),g=e-u,v=d,m=d*p,y=g-m,b=c*p,x=v+c,_=g+b,S=_+m,$=x+d,C=$/2,w=t/20,z=C+w,A=e/6,M=f+f,T=f/2,k=x+T,I=e/4;return[`M0,${t}`,`Q${A},${M} ${g},${v}`,`L${y},0`,`L${e},${z}`,`L${S},${$}`,`L${_},${x}`,`Q${I},${k} 0,${t}`,"Z"].join(" ")});oe.set("flowChartProcess",(e,t)=>`M0,0 L${e},0 L${e},${t} L0,${t} Z`);oe.set("flowChartDecision",(e,t)=>{let n=e/2,i=t/2;return`M${n},0 L${e},${i} L${n},${t} L0,${i} Z`});oe.set("flowChartTerminator",(e,t)=>{let n=e*3475/21600,i=e*18125/21600,r=n,o=t/2;return[`M${n},0`,`L${i},0`,`A${r},${o} 0 0,1 ${i},${t}`,`L${n},${t}`,`A${r},${o} 0 0,1 ${n},0`,"Z"].join(" ")});oe.set("flowChartDocument",(e,t)=>{let n=t*17322/21600,i=n,r=t*23922/21600,o=t*20172/21600;return["M0,0",`L${e},0`,`L${e},${n}`,`C${e/2},${i} ${e/2},${r} 0,${o}`,"Z"].join(" ")});oe.set("flowChartInputOutput",(e,t)=>{let n=e/5;return`M${n},0 L${e},0 L${e-n},${t} L0,${t} Z`});oe.set("flowChartPredefinedProcess",(e,t)=>{let n=e/8;return[`M0,0 L${e},0 L${e},${t} L0,${t} Z`,`M${n},0 L${n},${t}`,`M${e-n},0 L${e-n},${t}`].join(" ")});oe.set("flowChartAlternateProcess",(e,t)=>{let n=Math.min(e,t)/6;return[`M${n},0`,`L${e-n},0`,`A${n},${n} 0 0,1 ${e},${n}`,`L${e},${t-n}`,`A${n},${n} 0 0,1 ${e-n},${t}`,`L${n},${t}`,`A${n},${n} 0 0,1 0,${t-n}`,`L0,${n}`,`A${n},${n} 0 0,1 ${n},0`,"Z"].join(" ")});oe.set("flowChartManualInput",(e,t)=>`M0,${t*.2} L${e},0 L${e},${t} L0,${t} Z`);oe.set("flowChartManualOperation",(e,t)=>`M0,0 L${e},0 L${e*4/5},${t} L${e/5},${t} Z`);oe.set("flowChartPreparation",(e,t)=>{let n=e*.2,i=t/2;return`M${n},0 L${e-n},0 L${e},${i} L${e-n},${t} L${n},${t} L0,${i} Z`});oe.set("flowChartData",(e,t)=>{let n=e*.15;return`M${n},0 L${e},0 L${e-n},${t} L0,${t} Z`});oe.set("flowChartInternalStorage",(e,t)=>{let n=e/8,i=t/8;return[`M0,0 L${e},0 L${e},${t} L0,${t} Z`,`M${n},0 L${n},${t}`,`M0,${i} L${e},${i}`].join(" ")});oe.set("flowChartMagneticDisk",(e,t)=>{let n=t/6,i=n,r=t-n;return[`M0,${i}`,`A${e/2},${n} 0 1,1 ${e},${i}`,`L${e},${r}`,`A${e/2},${n} 0 1,1 0,${r}`,`L0,${i}`,"Z",`M${e},${i}`,`A${e/2},${n} 0 1,1 0,${i}`].join(" ")});oe.set("flowChartDelay",(e,t)=>{let n=e/2,i=Be(n,0,n,t/2,270,180);return["M0,0",`L${n},0`,i.svg,`L0,${t}`,"Z"].join(" ")});oe.set("flowChartDisplay",(e,t)=>{let n=e/6,i=t/6,r=n,o=i*3,a=Be(5*n,0,r,o,270,180);return[`M0,${3*i}`,`L${n},0`,`L${5*n},0`,a.svg,`L${n},${t}`,"Z"].join(" ")});oe.set("flowChartExtract",(e,t)=>`M${e/2},0 L${e},${t} L0,${t} Z`);oe.set("flowChartMerge",(e,t)=>`M0,0 L${e},0 L${e/2},${t} Z`);oe.set("flowChartOffpageConnector",(e,t)=>{let n=t*.2;return["M0,0",`L${e},0`,`L${e},${t-n}`,`L${e/2},${t}`,`L0,${t-n}`,"Z"].join(" ")});oe.set("flowChartConnector",(e,t)=>{let n=e/2,i=t/2;return[`M${e},${i}`,`A${n},${i} 0 1,1 0,${i}`,`A${n},${i} 0 1,1 ${e},${i}`,"Z"].join(" ")});oe.set("flowChartSort",(e,t)=>{let n=e/2,i=t/2;return[`M${n},0 L${e},${i} L${n},${t} L0,${i} Z`,`M0,${i} L${e},${i}`].join(" ")});oe.set("flowChartCollate",(e,t)=>{let n=e/2,i=t/2;return[`M0,0 L${e},0 L${n},${i} Z`,`M0,${t} L${e},${t} L${n},${i} Z`].join(" ")});oe.set("flowChartPunchedTape",(e,t)=>{let n=e/20,i=t/20,r=(h,p,g,v,m,y)=>{let b=m/6e4,x=y/6e4,_=b*Math.PI/180,S=(b+x)*Math.PI/180,$=h-g*Math.cos(_),C=p-v*Math.sin(_),w=$+g*Math.cos(S),z=C+v*Math.sin(S),A=Math.abs(x)>180?1:0,M=x>0?1:0;return{endX:w,endY:z,svg:`A${g},${v} 0 ${A},${M} ${w},${z}`}},o=5*n,a=2*i,s=0,l=2*i,c=[`M${s},${l}`],u=r(s,l,o,a,108e5,-108e5);c.push(u.svg),s=u.endX,l=u.endY,u=r(s,l,o,a,108e5,108e5),c.push(u.svg),s=u.endX,l=u.endY;let d=20*n,f=18*i;return c.push(`L${d},${f}`),s=d,l=f,u=r(s,l,o,a,0,-108e5),c.push(u.svg),s=u.endX,l=u.endY,u=r(s,l,o,a,0,108e5),c.push(u.svg),c.push("Z"),c.join(" ")});oe.set("flowChartPunchedCard",(e,t)=>{let n=e/5;return`M0,${t/5} L${n},0 L${e},0 L${e},${t} L0,${t} Z`});oe.set("flowChartSummingJunction",(e,t)=>{let n=e/2,i=t/2,r=n*Math.cos(Math.PI/4),o=i*Math.sin(Math.PI/4),a=n-r,s=n+r,l=i-o,c=i+o;return[`M0,${i}`,`A${n},${i} 0 1,1 ${e},${i}`,`A${n},${i} 0 1,1 0,${i}`,"Z",`M${a},${l} L${s},${c}`,`M${s},${l} L${a},${c}`].join(" ")});oe.set("flowChartOr",(e,t)=>{let n=e/2,i=t/2;return[`M0,${i}`,`A${n},${i} 0 1,1 ${e},${i}`,`A${n},${i} 0 1,1 0,${i}`,"Z",`M${n},0 L${n},${t}`,`M0,${i} L${e},${i}`].join(" ")});oe.set("flowChartOnlineStorage",(e,t)=>{let n=e/6;return[`M${n},0`,`L${e},0`,`A${n},${t/2} 0 0,0 ${e},${t}`,`L${n},${t}`,`A${n},${t/2} 0 0,1 ${n},0`,"Z"].join(" ")});oe.set("flowChartMagneticDrum",(e,t)=>{let n=e/6,i=e*5/6,r=t/2;return[`M${n},0`,`L${i},0`,`A${n},${r} 0 0,1 ${i},${t}`,`L${n},${t}`,`A${n},${r} 0 0,1 ${n},0`,"Z",`M${i},${t}`,`A${n},${r} 0 0,1 ${i},0`].join(" ")});oe.set("flowChartMagneticTape",(e,t)=>{let n=e/2,i=t/2,r=n,o=i,a=Math.atan2(t,e),s=o+i*Math.sin(Math.PI/4),l=(v,m,y,b,x,_)=>{let S=x*Math.PI/180,$=(x+_)*Math.PI/180,C=v-y*Math.cos(S),w=m-b*Math.sin(S),z=C+y*Math.cos($),A=w+b*Math.sin($),M=Math.abs(_)>180?1:0,T=_>0?1:0;return{endX:z,endY:A,svg:`A${y},${b} 0 ${M},${T} ${z},${A}`}},c=r,u=t,d=l(c,u,n,i,90,90);c=d.endX,u=d.endY;let f=l(c,u,n,i,180,90);c=f.endX,u=f.endY;let h=l(c,u,n,i,270,90);c=h.endX,u=h.endY;let p=a*180/Math.PI,g=l(c,u,n,i,0,p);return[`M${r},${t}`,d.svg,f.svg,h.svg,g.svg,`L${e},${s}`,`L${e},${t}`,"Z"].join(" ")});oe.set("flowChartMultidocument",(e,t)=>{let n=r=>e*r/21600,i=r=>t*r/21600;return[`M0,${i(20782)}`,`C${n(9298)},${i(23542)} ${n(9298)},${i(18022)} ${n(18595)},${i(18022)}`,`L${n(18595)},${i(3675)} L0,${i(3675)} Z`,`M${n(1532)},${i(3675)} L${n(1532)},${i(1815)} L${n(2e4)},${i(1815)}`,`L${n(2e4)},${i(16252)}`,`C${n(19298)},${i(16252)} ${n(18595)},${i(16352)} ${n(18595)},${i(16352)}`,`L${n(18595)},${i(3675)} Z`,`M${n(2972)},${i(1815)} L${n(2972)},0 L${e},0`,`L${e},${i(14392)}`,`C${n(20800)},${i(14392)} ${n(2e4)},${i(14467)} ${n(2e4)},${i(14467)}`,`L${n(2e4)},${i(1815)} Z`].join(" ")});oe.set("wedgeRectCallout",(e,t,n)=>{let i=e/2,r=t/2,o=e*(n?.get("adj1")??-20833)/1e5,a=t*(n?.get("adj2")??62500)/1e5,s=i+o,l=r+a,c=o*t/e,u=Math.abs(a),d=Math.abs(c),f=u-d,h=e*(o>=0?7:2)/12,p=e*(o>=0?10:5)/12,g=t*(a>=0?7:2)/12,v=t*(a>=0?10:5)/12,m=f>0||o>=0?0:s,y=f>0?a>=0?h:s:h,b=f>0?e:o>=0?s:e,x=f>0&&a>=0?s:h,_=f>0||o>=0?g:l,S=f>0?a>=0?0:l:0,$=f>0?g:o>=0?l:g,C=f>0&&a>=0?l:t;return["M0,0",`L${h},0`,`L${y},${S}`,`L${p},0`,`L${e},0`,`L${e},${g}`,`L${b},${$}`,`L${e},${v}`,`L${e},${t}`,`L${p},${t}`,`L${x},${C}`,`L${h},${t}`,`L0,${t}`,`L0,${v}`,`L${m},${_}`,`L0,${g}`,"Z"].join(" ")});oe.set("wedgeRoundRectCallout",(e,t,n)=>{let i=e/2,r=t/2,o=Math.min(e,t),a=e*(n?.get("adj1")??-20833)/1e5,s=t*(n?.get("adj2")??62500)/1e5,l=o*(n?.get("adj3")??16667)/1e5,c=i+a,u=r+s,d=a*t/e,f=Math.abs(s),h=Math.abs(d),p=f-h,g=e-l,v=t-l,m=e*(a>=0?7:2)/12,y=e*(a>=0?10:5)/12,b=t*(s>=0?7:2)/12,x=t*(s>=0?10:5)/12,_=p>0||a>=0?0:c,S=p>0?s>=0?m:c:m,$=p>0?e:a>=0?c:e,C=p>0&&s>=0?c:m,w=p>0||a>=0?b:u,z=p>0?s>=0?0:u:0,A=p>0?b:a>=0?u:b,M=p>0&&s>=0?u:t;return[`M0,${l}`,`A${l},${l} 0 0,1 ${l},0`,`L${m},0`,`L${S},${z}`,`L${y},0`,`L${g},0`,`A${l},${l} 0 0,1 ${e},${l}`,`L${e},${b}`,`L${$},${A}`,`L${e},${x}`,`L${e},${v}`,`A${l},${l} 0 0,1 ${g},${t}`,`L${y},${t}`,`L${C},${M}`,`L${m},${t}`,`L${l},${t}`,`A${l},${l} 0 0,1 0,${v}`,`L0,${x}`,`L${_},${w}`,`L0,${b}`,"Z"].join(" ")});oe.set("wedgeEllipseCallout",(e,t,n)=>{let i=st(n,"adj1",-20833),r=st(n,"adj2",62500),o=e/2,a=t/2,s=o+e*i,l=a+t*r,c=Math.atan2(l-a,s-o),u=.15;return[Mge(o,a,o,a,(c+u)*180/Math.PI,(c-u+2*Math.PI)*180/Math.PI),`L${s},${l}`,"Z"].join(" ")});oe.set("cloudCallout",(e,t,n)=>{let i=st(n,"adj1",-20833),r=st(n,"adj2",62500),o=e/2+e*i,a=t/2+t*r,s=oe.get("cloud")(e,t),l=e/2,c=t/2,u=o-l,d=a-c,f=Math.min(e,t)*.04,h=Math.min(e,t)*.025,p=l+u*.5,g=c+d*.5,v=l+u*.75,m=c+d*.75;return[s,`M${p+f},${g} A${f},${f} 0 1,1 ${p-f},${g} A${f},${f} 0 1,1 ${p+f},${g} Z`,`M${v+h},${m} A${h},${h} 0 1,1 ${v-h},${m} A${h},${h} 0 1,1 ${v+h},${m} Z`].join(" ")});oe.set("borderCallout1",(e,t,n)=>{let i=t*(n?.get("adj1")??18750)/1e5,r=e*(n?.get("adj2")??-8333)/1e5,o=t*(n?.get("adj3")??112500)/1e5,a=e*(n?.get("adj4")??-38333)/1e5;return`M0,0 L${e},0 L${e},${t} L0,${t} Z M${r},${i} L${a},${o}`});oe.set("cube",(e,t,n)=>{let i=st(n,"adj",25e3),r=Math.min(e,t)*i;return[`M0,${r} L${e-r},${r} L${e-r},${t} L0,${t} Z`,`M0,${r} L${r},0 L${e},0 L${e-r},${r} Z`,`M${e-r},${r} L${e},0 L${e},${t-r} L${e-r},${t} Z`].join(" ")});oe.set("plus",(e,t,n)=>{let i=Math.min(e,t),r=Math.min(Math.max(_i(n,"adj",25e3),0),5e4),o=i*r/1e5,a=e-o,s=t-o;return[`M0,${o}`,`L${o},${o}`,`L${o},0`,`L${a},0`,`L${a},${o}`,`L${e},${o}`,`L${e},${s}`,`L${a},${s}`,`L${a},${t}`,`L${o},${t}`,`L${o},${s}`,`L0,${s}`,"Z"].join(" ")});oe.set("heart",(e,t)=>{let n=e/2,i=t/4,r=t/3,o=e*49/48,a=e*10/48,s=n-o,l=n-a,c=n+a,u=n+o,d=-r;return[`M${n},${i}`,`C${c},${d} ${u},${i} ${n},${t}`,`C${s},${i} ${l},${d} ${n},${i}`,"Z"].join(" ")});oe.set("cloud",(e,t)=>{let n=e/43200,i=t/43200,r=[[6753,9190,-11429249,7426832],[5333,7267,-8646143,5396714],[4365,5945,-8748475,5983381],[4857,6595,-7859164,7034504],[5333,7273,-4722533,6541615],[6775,9220,-2776035,7816140],[5785,7867,37501,6842e3],[6752,9215,1347096,6910353],[7720,10543,3974558,4542661],[4360,5918,-16496525,8804134],[4345,5945,-14809710,9151131]],o=3900*n,a=14370*i,s=[`M${o},${a}`],l=3900,c=14370;for(let[u,d,f,h]of r){let p=f/6e4,g=h/6e4,v=p*Math.PI/180,m=Math.atan2(u*Math.sin(v),d*Math.cos(v)),y=(p+g)*Math.PI/180,b=Math.atan2(u*Math.sin(y),d*Math.cos(y)),x=l-u*Math.cos(m),_=c-d*Math.sin(m),S=x+u*Math.cos(b),$=_+d*Math.sin(b),C=S*n,w=$*i,z=u*n,A=d*i,M=Math.abs(g)>180?1:0,T=g>0?1:0;s.push(`A${z},${A} 0 ${M},${T} ${C},${w}`),l=S,c=$,o=C,a=w}return s.push("Z"),s.join(" ")});oe.set("frame",(e,t,n)=>{let i=st(n,"adj1",12500),r=Math.min(e,t)*i;return[`M0,0 L${e},0 L${e},${t} L0,${t} Z`,`M${r},${r} L${r},${t-r} L${e-r},${t-r} L${e-r},${r} Z`].join(" ")});oe.set("halfFrame",(e,t,n)=>{let i=n?.get("adj1")??33333,r=n?.get("adj2")??33333,o=Math.min(e,t),a=Math.max(0,Math.min(r,1e5*e/Math.max(o,1))),s=o*a/1e5,l=t*s/Math.max(e,1),c=t-l,u=Math.max(0,Math.min(i,1e5*c/Math.max(o,1))),d=o*u/1e5,f=e-d*e/Math.max(t,1),h=t-s*t/Math.max(e,1);return["M0,0",`L${e},0`,`L${f},${d}`,`L${s},${d}`,`L${s},${h}`,`L0,${t}`,"Z"].join(" ")});oe.set("donut",(e,t,n)=>{let i=Math.min(e,t),r=Math.min(Math.max(_i(n,"adj",25e3),0),5e4),o=i*r/1e5,a=e/2,s=t/2,l=Math.max(0,a-o),c=Math.max(0,s-o);return[`M0,${s}`,`A${a},${s} 0 1,1 ${e},${s}`,`A${a},${s} 0 1,1 0,${s}`,"Z",`M${o},${s}`,`A${l},${c} 0 1,0 ${e-o},${s}`,`A${l},${c} 0 1,0 ${o},${s}`,"Z"].join(" ")});oe.set("noSmoking",(e,t,n)=>{let i=Math.min(e,t),r=Math.min(Math.max(_i(n,"adj",18750),0),5e4),o=i*r/1e5,a=e/2,s=t/2,l=e/2,c=t/2,u=a-o,d=s-o,f=Math.atan2(t,e),h=d*Math.cos(f),p=u*Math.sin(f),g=Math.sqrt(h*h+p*p)||1,v=u*d/g,m=o/2,y=Math.atan2(m,v),b=y*2,x=-(Math.PI-b),_=f-y,S=_-Math.PI,$=D=>{let E=d*Math.cos(D),N=u*Math.sin(D),F=Math.sqrt(E*E+N*N)||1,G=u*d/F;return{x:l+G*Math.cos(D),y:c+G*Math.sin(D)}},C=$(_),w=$(S),z=_+x,A=S+x,M=$(z),T=$(A),k=Math.abs(x)>Math.PI?1:0,I=x>0?1:0;return[`M0,${c}`,`A${a},${s} 0 1,1 ${e},${c}`,`A${a},${s} 0 1,1 0,${c}`,"Z",`M${C.x},${C.y}`,`A${u},${d} 0 ${k},${I} ${M.x},${M.y}`,"Z",`M${w.x},${w.y}`,`A${u},${d} 0 ${k},${I} ${T.x},${T.y}`,"Z"].join(" ")});oe.set("blockArc",(e,t,n)=>{let i=n?.get("adj1")??108e5,r=n?.get("adj2")??0,o=n?.get("adj3")??25e3,a=Math.min(Math.max(i/6e4,0),360),s=Math.min(Math.max(r/6e4,0),360),l=(s-a+360)%360||360,c=a+l,u=s-l,d=e/2,f=t/2,h=Math.min(e,t)*Math.max(0,Math.min(o,5e4))/1e5,p=Math.max(1,d-h),g=Math.max(1,f-h),v=(S,$,C,w,z)=>{let A=z*Math.PI/180;return{x:S+C*Math.cos(A),y:$+w*Math.sin(A)}},m=v(d,f,d,f,a),y=v(d,f,d,f,c),b=v(d,f,p,g,s),x=v(d,f,p,g,u),_=l>180?1:0;return[`M${m.x},${m.y}`,`A${d},${f} 0 ${_},1 ${y.x},${y.y}`,`L${b.x},${b.y}`,`A${p},${g} 0 ${_},0 ${x.x},${x.y}`,"Z"].join(" ")});oe.set("gear6",(e,t,n)=>{let i=n?.get("adj1")??15e3,r=n?.get("adj2")??3526;return mK(e,t,6,i,r)});oe.set("gear9",(e,t,n)=>{let i=n?.get("adj1")??1e4,r=n?.get("adj2")??1763;return mK(e,t,9,i,r)});function mK(e,t,n,i,r){let o=e/2,a=t/2,s=Math.min(e,t),l=n===6?5358:2679,c=Math.min(Math.max(i,0),2e4),u=Math.min(Math.max(r,0),l),d=s*c/1e5,f=s*u/1e5,h=e/2-d,p=t/2-d;if(h<=0||p<=0)return`M0,0 L${e},0 L${e},${t} L0,${t} Z`;let g=d/2+f/2,v=Math.min(h,p),m=Math.atan2(g,v),y=n===6?[330,30,90,150,210,270]:[310,350,30,70,110,150,190,230,270],b=[];for(let x=0;x<y.length;x++){let _=y[x]*Math.PI/180,S=_-m,$=_+m,C=o+h*Math.cos(S),w=a+p*Math.sin(S),z=o+h*Math.cos($),A=a+p*Math.sin($),M=z-C,T=A-w,k=Math.sqrt(M*M+T*T),I=Math.cos(_),D=Math.sin(_),E=I,N=D;k>0&&(E=-T/k,N=M/k),E*I+N*D<0&&(E=-E,N=-N);let F=k>0?M/k:0,G=k>0?T/k:0,P=C+F*f,O=w+G*f,V=z-F*f,j=A-G*f,H=P+E*d,Q=O+N*d,le=V+E*d,se=j+N*d;if(x===0){let ae=y[y.length-1]*Math.PI/180+m,Se=o+h*Math.cos(ae),ve=a+p*Math.sin(ae);b.push(`M${Se},${ve}`),b.push(`A${h},${p} 0 0,1 ${C},${w}`)}if(b.push(`L${H},${Q}`),b.push(`L${le},${se}`),b.push(`L${z},${A}`),x<y.length-1){let ae=y[x+1]*Math.PI/180-m,Se=o+h*Math.cos(ae),ve=a+p*Math.sin(ae);b.push(`A${h},${p} 0 0,1 ${Se},${ve}`)}}return b.push("Z"),b.join(" ")}oe.set("mathPlus",(e,t,n)=>{let i=Math.min(e,t),r=Math.min(Math.max(_i(n,"adj",23520),0),73490),o=e*73490/2e5,a=t*73490/2e5,s=i*r/2e5,l=e/2,c=t/2,u=l-o,d=l-s,f=l+s,h=l+o,p=c-a,g=c-s,v=c+s,m=c+a;return[`M${u},${g}`,`L${d},${g}`,`L${d},${p}`,`L${f},${p}`,`L${f},${g}`,`L${h},${g}`,`L${h},${v}`,`L${f},${v}`,`L${f},${m}`,`L${d},${m}`,`L${d},${v}`,`L${u},${v}`,"Z"].join(" ")});oe.set("mathMinus",(e,t,n)=>{let i=Math.min(Math.max(_i(n,"adj1",23520),0),1e5),r=t*i/2e5,o=e*73490/2e5,a=e/2,s=t/2,l=a-o,c=a+o,u=s-r,d=s+r;return`M${l},${u} L${c},${u} L${c},${d} L${l},${d} Z`});oe.set("mathMultiply",(e,t,n)=>{let i=Math.min(e,t),r=e/2,o=t/2,a=Math.min(Math.max(_i(n,"adj1",23520),0),51965),s=i*a/1e5,l=Math.atan2(t,e),c=Math.sin(l),u=Math.cos(l),d=c/u,f=Math.sqrt(e*e+t*t),h=f*51965/1e5,p=f-h,g=u*p/2,v=c*p/2,m=c*s/2,y=u*s/2,b=g-m,x=v+y,_=g+m,S=v-y,$=(r-_)*d+S,C=e-_,w=e-b,z=(o-x)/d,A=w-z,M=b+z,T=t-x,k=t-S,I=t-$;return[`M${b},${x}`,`L${_},${S}`,`L${r},${$}`,`L${C},${S}`,`L${w},${x}`,`L${A},${o}`,`L${w},${T}`,`L${C},${k}`,`L${r},${I}`,`L${_},${k}`,`L${b},${T}`,`L${M},${o}`,"Z"].join(" ")});oe.set("mathDivide",(e,t,n)=>{let i=n?.get("adj1")??23520,r=n?.get("adj2")??5880,o=n?.get("adj3")??11760,a=Math.min(Math.max(i,1e3),36745),s=Math.min((73490-a)/4,36745*e/Math.max(t,1)),l=Math.min(Math.max(o,1e3),s),c=73490-4*l-a,u=Math.min(Math.max(r,0),c),d=e/2,f=t/2,h=t*a/2e5,p=t*u/1e5,g=t*l/1e5,v=e*73490/2e5,m=f-h,y=f+h,b=m-(p+g)-g,x=t-b,_=d-v,S=d+v;return[`M${d+g},${b+g} A${g},${g} 0 1,1 ${d-g},${b+g} A${g},${g} 0 1,1 ${d+g},${b+g} Z`,`M${d+g},${x-g} A${g},${g} 0 1,1 ${d-g},${x-g} A${g},${g} 0 1,1 ${d+g},${x-g} Z`,`M${_},${m} L${S},${m} L${S},${y} L${_},${y} Z`].join(" ")});oe.set("mathEqual",(e,t,n)=>{let i=n?.get("adj1")??23520,r=n?.get("adj2")??11760,o=Math.min(Math.max(i,0),36745),a=1e5-o*2,s=Math.min(Math.max(r,0),Math.max(a,0)),l=t*o/1e5,c=t*s/2e5,u=e*73490/2e5,d=e/2,f=t/2,h=f-c,p=f+c,g=h-l,v=p+l,m=d-u,y=d+u;return[`M${m},${g} L${y},${g} L${y},${h} L${m},${h} Z`,`M${m},${p} L${y},${p} L${y},${v} L${m},${v} Z`].join(" ")});oe.set("mathNotEqual",(e,t,n)=>{let i=n?.get("adj1")??23520,r=n?.get("adj2"),o=n?.get("adj3")??11760,a=e/2,s=t/2,l=t/2,c=Math.min(Math.max(i,0),5e4),u=(()=>{if(r===void 0)return 110*Math.PI/180;let ve=r/6e4*Math.PI/180,$e=70*Math.PI/180,je=110*Math.PI/180;return Math.min(Math.max(ve,$e),je)})(),d=1e5-c*2,f=Math.min(Math.max(o,0),d),h=t*c/1e5,p=t*f/2e5,g=e*73490/2e5,v=a-g,m=a+g,y=s-p,b=s+p,x=y-h,_=b+h,S=u-Math.PI/2,$=l*Math.tan(S),C=Math.hypot($,l)||1,w=C*h/l,z=w/2,A=a+$-z,M=A-$*x/l,T=A-$*y/l,k=A-$*b/l,I=A-$*_/l,D=A+w,E=M+w,N=T+w,F=k+w,G=I+w,P=h*l/C,O=S>0?A+P:D,V=S>0?A:D-P,j=h*$/C,H=S>0?j:0,Q=S>0?0:-j,le=e-O,se=e-V,ae=t-H,Se=t-Q;return[`M${v},${x}`,`L${M},${x}`,`L${V},${Q}`,`L${O},${H}`,`L${E},${x}`,`L${m},${x}`,`L${m},${y}`,`L${N},${y}`,`L${F},${b}`,`L${m},${b}`,`L${m},${_}`,`L${G},${_}`,`L${se},${Se}`,`L${le},${ae}`,`L${I},${_}`,`L${v},${_}`,`L${v},${b}`,`L${k},${b}`,`L${T},${y}`,`L${v},${y}`,"Z"].join(" ")});oe.set("round1Rect",(e,t,n)=>{let i=st(n,"adj",16667),r=Math.min(e,t)*i;return["M0,0",`L${e-r},0`,`A${r},${r} 0 0,1 ${e},${r}`,`L${e},${t}`,`L0,${t}`,"Z"].join(" ")});oe.set("round2SameRect",(e,t,n)=>{let i=st(n,"adj1",16667),r=st(n,"adj2",0),o=Math.min(e,t)*i,a=Math.min(e,t)*r;return[`M${o},0`,`L${e-o},0`,`A${o},${o} 0 0,1 ${e},${o}`,`L${e},${t-a}`,`A${a},${a} 0 0,1 ${e-a},${t}`,`L${a},${t}`,`A${a},${a} 0 0,1 0,${t-a}`,`L0,${o}`,`A${o},${o} 0 0,1 ${o},0`,"Z"].join(" ")});oe.set("round2DiagRect",(e,t,n)=>{let i=st(n,"adj1",16667),r=st(n,"adj2",0),o=Math.min(e,t)*i,a=Math.min(e,t)*r;return[`M${o},0`,`L${e},0`,`L${e},${t-a}`,`A${a},${a} 0 0,1 ${e-a},${t}`,`L0,${t}`,`L0,${o}`,`A${o},${o} 0 0,1 ${o},0`,"Z"].join(" ")});oe.set("snip1Rect",(e,t,n)=>{let i=st(n,"adj",16667),r=Math.min(e,t)*i;return`M0,0 L${e-r},0 L${e},${r} L${e},${t} L0,${t} Z`});oe.set("snip2SameRect",(e,t,n)=>{let i=st(n,"adj1",16667),r=st(n,"adj2",0),o=Math.min(e,t)*i,a=Math.min(e,t)*r;return`M${o},0 L${e-o},0 L${e},${o} L${e},${t-a} L${e-a},${t} L${a},${t} L0,${t-a} L0,${o} Z`});oe.set("snip2DiagRect",(e,t,n)=>{let i=Math.min(e,t),r=Math.min(Math.max(n?.get("adj1")??0,0),5e4),o=Math.min(Math.max(n?.get("adj2")??16667,0),5e4),a=i*r/1e5,s=e-a,l=t-a,c=i*o/1e5,u=e-c,d=t-c;return`M${a},0 L${u},0 L${e},${c} L${e},${l} L${s},${t} L${c},${t} L0,${d} L0,${a} Z`});oe.set("snipRoundRect",(e,t,n)=>{let i=st(n,"adj1",16667),r=st(n,"adj2",16667),o=Math.min(e,t)*i,a=Math.min(e,t)*r;return[`M${o},0`,`L${e-a},0`,`L${e},${a}`,`L${e},${t}`,`L0,${t}`,`L0,${o}`,`A${o},${o} 0 0,1 ${o},0`,"Z"].join(" ")});oe.set("bevel",(e,t,n)=>{let i=st(n,"adj",12500),r=Math.min(e,t)*i;return[`M0,0 L${e},0 L${e},${t} L0,${t} Z`,`M${r},${r} L${r},${t-r} L${e-r},${t-r} L${e-r},${r} Z`,`M0,0 L${e},0 L${e-r},${r} L${r},${r} Z`,`M${e},0 L${e},${t} L${e-r},${t-r} L${e-r},${r} Z`,`M${e},${t} L0,${t} L${r},${t-r} L${e-r},${t-r} Z`,`M0,${t} L0,0 L${r},${r} L${r},${t-r} Z`].join(" ")});oe.set("foldedCorner",(e,t,n)=>{let i=st(n,"adj",16667),r=Math.min(e,t)*i*.7;return[`M0,0 L${e},0 L${e},${t} L0,${t} Z`,`M${e-r},${t} L${e},${t} L${e},${t-r}`].join(" ")});oe.set("sun",(e,t,n)=>{let i=n?.get("adj")??25e3,r=Math.min(Math.max(i,12500),46875),o=5e4-r,a=o*30274/32768,s=o*12540/32768,l=5e4-a,c=5e4-s,u=l*3/4,d=c*3/4,f=u+3662,h=d+3662,p=d+12500,g=1e5-u,v=1e5-f,m=1e5-h,y=1e5-p,b=e/2,x=t/2,_=e*18436/21600,S=t*3163/21600,$=e*3163/21600,C=t*18436/21600,w=(ae,Se)=>Se*ae/1e5,z=w(u,e),A=w(f,e),M=w(h,e),T=w(p,e),k=w(g,e),I=w(v,e),D=w(m,e),E=w(y,e),N=w(o,e),F=w(o,t),G=w(u,t),P=w(f,t),O=w(h,t),V=w(p,t),j=w(g,t),H=w(v,t),Q=w(m,t),le=w(y,t),se=w(r,e);return[`M${e},${x} L${k},${le} L${k},${V} Z`,`M${_},${S} L${I},${O} L${D},${P} Z`,`M${b},0 L${E},${G} L${T},${G} Z`,`M${$},${S} L${M},${P} L${A},${O} Z`,`M0,${x} L${z},${V} L${z},${le} Z`,`M${$},${C} L${A},${Q} L${M},${H} Z`,`M${b},${t} L${T},${j} L${E},${j} Z`,`M${_},${C} L${D},${H} L${I},${Q} Z`,`M${se},${x}`,`A${N},${F} 0 1,1 ${se+2*N},${x}`,`A${N},${F} 0 1,1 ${se},${x}`,"Z"].join(" ")});oe.set("moon",(e,t,n)=>{if(e<=0||t<=0)return`M0,0 L${e},0 L${e},${t} L0,${t} Z`;let i=Math.min(e,t),r=t/2,o=Math.min(Math.max(n?.get("adj")??5e4,0),87500),a=i*o/1e5,s=i-a;if(s<=0)return`M0,0 L${e},0 L${e},${t} L0,${t} Z`;let l=a*e/i,c=(2*i*i-a*a)/s,u=(c-a)*e/i,d=(c/2-a)*r/i,f=(u-l)/2;return[`M${e},${t}`,`A${e},${r} 0 0,1 ${e},0`,`A${f},${d} 0 0,0 ${e},${t}`,"Z"].join(" ")});oe.set("lightningBolt",(e,t)=>[`M${e*.3895},${t*0}`,`L${e*0},${t*.1821}`,`L${e*.3425},${t*.3845}`,`L${e*.2265},${t*.4452}`,`L${e*.5497},${t*.6391}`,`L${e*.453},${t*.683}`,`L${e*.9972},${t*.9983}`,`L${e*.6796},${t*.5919}`,`L${e*.7624},${t*.5514}`,`L${e*.5138},${t*.3153}`,`L${e*.5939},${t*.2816}`,"Z"].join(" "));oe.set("bracketPair",(e,t,n)=>{let i=Math.min(e,t),r=Math.min(Math.max(_i(n,"adj",16667),0),5e4),o=i*r/1e5,a=e-o,s=t-o;return[`M${o},${t}`,`A${o},${o} 0 0,1 0,${s}`,`L0,${o}`,`A${o},${o} 0 0,1 ${o},0`,`M${a},0`,`A${o},${o} 0 0,1 ${e},${o}`,`L${e},${s}`,`A${o},${o} 0 0,1 ${a},${t}`].join(" ")});oe.set("bracePair",(e,t,n)=>{let i=st(n,"adj",8333),r=Math.min(e,t)*i,o=t/2;return[`M${r*2},0`,`A${r},${r} 0 0,0 ${r},${r}`,`L${r},${o-r}`,`A${r},${r} 0 0,1 0,${o}`,`A${r},${r} 0 0,1 ${r},${o+r}`,`L${r},${t-r}`,`A${r},${r} 0 0,0 ${r*2},${t}`,`M${e-r*2},0`,`A${r},${r} 0 0,1 ${e-r},${r}`,`L${e-r},${o-r}`,`A${r},${r} 0 0,0 ${e},${o}`,`A${r},${r} 0 0,0 ${e-r},${o+r}`,`L${e-r},${t-r}`,`A${r},${r} 0 0,1 ${e-r*2},${t}`].join(" ")});oe.set("leftBracket",(e,t,n)=>{let i=Math.min(e,t),r=i>0?5e4*t/i:0,o=Math.max(0,Math.min(n?.get("adj")??8333,r)),a=i*o/1e5,s=d=>d/6e4,l=(d,f,h,p,g,v)=>{let m=s(g)*Math.PI/180,y=s(v)*Math.PI/180,b=d-h*Math.cos(m),x=f-p*Math.sin(m),_=b+h*Math.cos(m+y),S=x+p*Math.sin(m+y),$=Math.abs(s(v))>180?1:0;return{cmd:`A${h},${p} 0 ${$},1 ${_},${S}`,x:_,y:S}},c=l(e,t,e,a,54e5,54e5),u=l(0,a,e,a,108e5,54e5);return[`M${e},${t}`,c.cmd,`L0,${a}`,u.cmd].join(" ")});oe.set("rightBracket",(e,t,n)=>{let i=Math.min(e,t),r=i>0?5e4*t/i:0,o=Math.max(0,Math.min(n?.get("adj")??8333,r)),a=i*o/1e5,s=t-a,l=f=>f/6e4,c=(f,h,p,g,v,m)=>{let y=l(v)*Math.PI/180,b=l(m)*Math.PI/180,x=f-p*Math.cos(y),_=h-g*Math.sin(y),S=x+p*Math.cos(y+b),$=_+g*Math.sin(y+b),C=Math.abs(l(m))>180?1:0;return{cmd:`A${p},${g} 0 ${C},1 ${S},${$}`,x:S,y:$}},u=c(0,0,e,a,162e5,54e5),d=c(e,s,e,a,0,54e5);return["M0,0",u.cmd,`L${e},${s}`,d.cmd].join(" ")});oe.set("leftBrace",(e,t,n)=>{let i=Math.min(e,t),r=Math.max(0,Math.min(n?.get("adj2")??5e4,1e5)),o=1e5-r,a=Math.min(o,r)/2,s=i>0?a*t/i:0,l=Math.max(0,Math.min(n?.get("adj1")??8333,s)),c=i*l/1e5,u=t*r/1e5+c,d=e/2,f=e/2,h=_=>_/6e4,p=(_,S,$,C,w,z)=>{let A=h(w)*Math.PI/180,M=h(z)*Math.PI/180,T=_-$*Math.cos(A),k=S-C*Math.sin(A),I=T+$*Math.cos(A+M),D=k+C*Math.sin(A+M),E=Math.abs(h(z))>180?1:0,N=z>=0?1:0;return{cmd:`A${$},${C} 0 ${E},${N} ${I},${D}`,x:I,y:D}},g=e,v=t,m=p(g,v,d,c,54e5,54e5);g=m.x,v=m.y;let y=p(f,u,d,c,0,-54e5),b=p(y.x,y.y,d,c,54e5,-54e5),x=p(f,c,d,c,108e5,54e5);return[`M${e},${t}`,m.cmd,`L${f},${u}`,y.cmd,b.cmd,`L${f},${c}`,x.cmd].join(" ")});oe.set("rightBrace",(e,t,n)=>{let i=Math.min(e,t),r=Math.max(0,Math.min(n?.get("adj2")??5e4,1e5)),o=1e5-r,a=Math.min(o,r)/2,s=i>0?a*t/i:0,l=Math.max(0,Math.min(n?.get("adj1")??8333,s)),c=i*l/1e5,u=t*r/1e5-c,d=t-c,f=e/2,h=e/2,p=x=>x/6e4,g=(x,_,S,$,C,w)=>{let z=p(C)*Math.PI/180,A=p(w)*Math.PI/180,M=x-S*Math.cos(z),T=_-$*Math.sin(z),k=M+S*Math.cos(z+A),I=T+$*Math.sin(z+A),D=Math.abs(p(w))>180?1:0,E=w>=0?1:0;return{cmd:`A${S},${$} 0 ${D},${E} ${k},${I}`,x:k,y:I}},v=g(0,0,f,c,162e5,54e5),m=g(h,u,f,c,108e5,-54e5),y=g(m.x,m.y,f,c,162e5,-54e5),b=g(h,d,f,c,0,54e5);return["M0,0",v.cmd,`L${h},${u}`,m.cmd,y.cmd,`L${h},${d}`,b.cmd].join(" ")});oe.set("actionButtonBlank",(e,t)=>`M0,0 L${e},0 L${e},${t} L0,${t} Z`);var Bl=new Map;Bl.set("actionButtonForwardNext",(e,t)=>{let n=e/2,i=t/2,r=Math.min(e,t)*.3;return`M${n-r*.5},${i-r} L${n+r},${i} L${n-r*.5},${i+r} Z`});Bl.set("actionButtonBackPrevious",(e,t)=>{let n=e/2,i=t/2,r=Math.min(e,t)*.3;return`M${n+r*.5},${i-r} L${n-r},${i} L${n+r*.5},${i+r} Z`});Bl.set("actionButtonReturn",(e,t)=>{let n=e/2,i=t/2,r=Math.min(e,t)*.28,o=r*.22,a=i+r*.4,s=i-r*.4,l=n-r*.6,c=n+r*.6,u=(a-s)/2;return[`M${l},${a}`,`L${c},${a}`,`A${u},${u} 0 0,1 ${c},${s}`,`L${l+r*.15},${s}`,`L${l+r*.15},${s+o}`,`L${c-o*.3},${s+o}`,`A${u-o},${u-o} 0 0,0 ${c-o*.3},${a-o}`,`L${l},${a-o}`,"Z",`M${l-r*.3},${s+o/2}`,`L${l+r*.15},${s-r*.2}`,`L${l+r*.15},${s+o+r*.2}`,"Z"].join(" ")});Bl.set("actionButtonBeginning",(e,t)=>{let n=e/2,i=t/2,r=Math.min(e,t)*.28;return[`M${n-r},${i-r} L${n-r+r*.2},${i-r} L${n-r+r*.2},${i+r} L${n-r},${i+r} Z`,`M${n+r},${i-r} L${n-r+r*.35},${i} L${n+r},${i+r} Z`].join(" ")});Bl.set("actionButtonEnd",(e,t)=>{let n=e/2,i=t/2,r=Math.min(e,t)*.28;return[`M${n+r-r*.2},${i-r} L${n+r},${i-r} L${n+r},${i+r} L${n+r-r*.2},${i+r} Z`,`M${n-r},${i-r} L${n+r-r*.35},${i} L${n-r},${i+r} Z`].join(" ")});Bl.set("actionButtonInformation",(e,t)=>{let n=e/2,i=t/2,r=Math.min(e,t)*.28;return[`M${n-r*.1},${i-r*.65} L${n+r*.1},${i-r*.65} L${n+r*.1},${i-r*.4} L${n-r*.1},${i-r*.4} Z`,`M${n-r*.12},${i-r*.2} L${n+r*.12},${i-r*.2} L${n+r*.12},${i+r*.65} L${n-r*.12},${i+r*.65} Z`].join(" ")});Bl.set("actionButtonDocument",(e,t)=>{let n=e/2,i=t/2,r=Math.min(e,t)*.28,o=r*.7,a=r,s=r*.3;return[`M${n-o},${i-a}`,`L${n+o-s},${i-a} L${n+o},${i-a+s}`,`L${n+o},${i+a} L${n-o},${i+a} Z`,`M${n+o-s},${i-a} L${n+o-s},${i-a+s} L${n+o},${i-a+s}`].join(" ")});function Tge(e,t,n){let i=e.toLowerCase(),r=Bl.get(i)??Bl.get(e);return r?.(t,n)}oe.set("wave",(e,t,n)=>{let i=Math.min(Math.max(_i(n,"adj1",12500),0),2e4),r=Math.min(Math.max(_i(n,"adj2",0),-1e4),1e4),o=t*i/1e5,a=o*10/3,s=o-a,l=o+a,c=t-o,u=c-a,d=c+a,f=e*r/5e4,h=f<0?0:f,p=f<0?f:0,g=-h,v=e-p,m=(v-g)/3,y=g+m,b=(y+v)/2,x=p,_=e+h,S=x+(_-x)/3,$=(S+_)/2;return[`M${g},${o}`,`C${y},${s} ${b},${l} ${v},${o}`,`L${_},${c}`,`C${$},${d} ${S},${u} ${x},${c}`,"Z"].join(" ")});oe.set("doubleWave",(e,t,n)=>{let i=Math.min(Math.max(_i(n,"adj1",6250),0),12500),r=Math.min(Math.max(_i(n,"adj2",0),-1e4),1e4),o=t*i/1e5,a=o*10/3,s=o-a,l=o+a,c=t-o,u=c-a,d=c+a,f=e*r/5e4,h=f<0?0:f,p=f<0?f:0,g=-h,v=e-p,m=(v-g)/6,y=g+m,b=(v-g)/3,x=g+b,_=(g+v)/2,S=_+m,$=(S+v)/2,C=p,w=e+h,z=(w-C)/6,A=C+z,M=C+(w-C)/3,T=(C+w)/2,k=T+z,I=(k+w)/2;return[`M${g},${o}`,`C${y},${s} ${x},${l} ${_},${o}`,`C${S},${s} ${$},${l} ${v},${o}`,`L${w},${c}`,`C${I},${d} ${k},${u} ${T},${c}`,`C${M},${d} ${A},${u} ${C},${c}`,"Z"].join(" ")});oe.set("irregularSeal1",(e,t)=>{let n=r=>e*r/21600,i=r=>t*r/21600;return[`M${n(10800)},${i(5800)}`,`L${n(14522)},0`,`L${n(14155)},${i(5325)}`,`L${n(18380)},${i(4457)}`,`L${n(16702)},${i(7315)}`,`L${n(21097)},${i(8137)}`,`L${n(17607)},${i(10475)}`,`L${n(21600)},${i(13290)}`,`L${n(16837)},${i(12942)}`,`L${n(18145)},${i(18095)}`,`L${n(14020)},${i(14457)}`,`L${n(13247)},${i(19737)}`,`L${n(10532)},${i(14935)}`,`L${n(8485)},${i(21600)}`,`L${n(7715)},${i(15627)}`,`L${n(4762)},${i(17617)}`,`L${n(5667)},${i(13937)}`,`L${n(135)},${i(14587)}`,`L${n(3722)},${i(11775)}`,`L0,${i(8615)}`,`L${n(4627)},${i(7617)}`,`L${n(370)},${i(2295)}`,`L${n(7312)},${i(6320)}`,`L${n(8352)},${i(2295)}`,"Z"].join(" ")});oe.set("irregularSeal2",(e,t)=>[`M${e*11462/21600},${t*4342/21600}`,`L${e*14790/21600},0`,`L${e*14525/21600},${t*5777/21600}`,`L${e*18007/21600},${t*3172/21600}`,`L${e*16380/21600},${t*6532/21600}`,`L${e},${t*6645/21600}`,`L${e*16985/21600},${t*9402/21600}`,`L${e*18270/21600},${t*11290/21600}`,`L${e*16380/21600},${t*12310/21600}`,`L${e*18877/21600},${t*15632/21600}`,`L${e*14640/21600},${t*14350/21600}`,`L${e*14942/21600},${t*17370/21600}`,`L${e*12180/21600},${t*15935/21600}`,`L${e*11612/21600},${t*18842/21600}`,`L${e*9872/21600},${t*17370/21600}`,`L${e*8700/21600},${t*19712/21600}`,`L${e*7527/21600},${t*18125/21600}`,`L${e*4917/21600},${t}`,`L${e*4805/21600},${t*18240/21600}`,`L${e*1285/21600},${t*17825/21600}`,`L${e*3330/21600},${t*15370/21600}`,`L0,${t*12877/21600}`,`L${e*3935/21600},${t*11592/21600}`,`L${e*1172/21600},${t*8270/21600}`,`L${e*5372/21600},${t*7817/21600}`,`L${e*4502/21600},${t*3625/21600}`,`L${e*8550/21600},${t*6382/21600}`,`L${e*9722/21600},${t*1887/21600}`,"Z"].join(" "));oe.set("teardrop",(e,t)=>{let n=e/2,i=t/2;return[`M${e},${i}`,`A${n},${i} 0 1,1 ${n},0`,`L${e},0`,`L${e},${i}`,"Z"].join(" ")});oe.set("pie",(e,t,n)=>{let i=n?.get("adj1")??0,r=n?.get("adj2")??162e5,o=i/6e4%360,a=r/6e4%360,s=((a-o)%360+360)%360;s===0&&o!==a&&(s=360);let l=e/2,c=t/2,u=b=>b*Math.PI/180,d=b=>Math.atan2(Math.sin(u(b))/c,Math.cos(u(b))/l),f=d(o),h=d(a),p=l+l*Math.cos(f),g=c+c*Math.sin(f),v=l+l*Math.cos(h),m=c+c*Math.sin(h),y=s>180?1:0;return[`M${l},${c}`,`L${p},${g}`,`A${l},${c} 0 ${y},1 ${v},${m}`,"Z"].join(" ")});oe.set("pieWedge",(e,t)=>[`M0,${t}`,`A${e},${t} 0 0,1 ${e},0`,`L${e},${t}`,"Z"].join(" "));oe.set("arc",(e,t,n)=>{let i=n?.get("adj1")??162e5,r=n?.get("adj2")??0,o=i/6e4,a=r/6e4,s=e/2,l=t/2,c=b=>b*Math.PI/180,u=b=>Math.atan2(Math.sin(c(b))/l,Math.cos(c(b))/s),d=u(o),f=u(a),h=s+s*Math.cos(d),p=l+l*Math.sin(d),g=s+s*Math.cos(f),v=l+l*Math.sin(f),m=((a-o)%360+360)%360;m===0&&o!==a&&(m=360);let y=m>180?1:0;return`M${h},${p} A${s},${l} 0 ${y},1 ${g},${v}`});oe.set("chord",(e,t,n)=>{let i=n?.get("adj1")??27e5,r=n?.get("adj2")??162e5,o=i/6e4,a=r/6e4,s=e/2,l=t/2,c=e/2,u=t/2,d=_=>_*Math.PI/180,f=_=>Math.atan2(Math.sin(d(_))/u,Math.cos(d(_))/c),h=f(o),p=f(a),g=s+c*Math.cos(h),v=l+u*Math.sin(h),m=s+c*Math.cos(p),y=l+u*Math.sin(p),b=((a-o)%360+360)%360;if(b===0&&o!==a&&(b=360),b===0)return`M${s-c},${l} A${c},${u} 0 1,1 ${s+c},${l} A${c},${u} 0 1,1 ${s-c},${l} Z`;let x=b>180?1:0;return`M${g},${v} A${c},${u} 0 ${x},1 ${m},${y} Z`});oe.set("funnel",(e,t)=>{let n=Math.min(e,t),i=e/2,r=t/4,o=e/2,a=t,s=n/20,l=i-s,c=r-s,u=8*Math.PI/180,d=i*Math.cos(u),f=r*Math.sin(u),h=Math.atan2(f,d),p=Math.PI-h,g=Math.PI+2*h,v=Math.PI-2*h,m=i/4,y=r/4,b=r*Math.cos(p),x=i*Math.sin(p),_=Math.sqrt(b*b+x*x),S=i*r/_,$=S*Math.cos(p),C=S*Math.sin(p),w=o+$,z=r+C,A=p+g,M=r*Math.cos(A),T=i*Math.sin(A),k=Math.sqrt(M*M+T*T),I=i*r/k,D=I*Math.cos(A),E=I*Math.sin(A),N=o+D,F=r+E,G=a-y,P=y*Math.cos(h),O=m*Math.sin(h),V=Math.sqrt(P*P+O*O),j=m*y/V,H=j*Math.cos(h),Q=j*Math.sin(h),le=o+H,se=G+Q,ae=h+v,Se=y*Math.cos(ae),ve=m*Math.sin(ae),$e=Math.sqrt(Se*Se+ve*ve),je=m*y/$e,R=je*Math.cos(ae),ie=je*Math.sin(ae),te=o+R,B=G+ie,U=g*180/Math.PI,W=Math.abs(U)>180?1:0,ue=g>0?1:0,de=v*180/Math.PI,J=Math.abs(de)>180?1:0,ge=v>0?1:0,we=[`M${w},${z}`,`A${i},${r} 0 ${W},${ue} ${N},${F}`,`L${le},${se}`,`A${m},${y} 0 ${J},${ge} ${te},${B}`,"Z"].join(" "),X=i-l,K=i+l,Ce=[`M${X},${r}`,`A${l},${c} 0 1,0 ${K},${r}`,`A${l},${c} 0 1,0 ${X},${r}`,"Z"].join(" ");return`${we} ${Ce}`});var Age=new Map;Age.set("can",(e,t)=>{let n=t*.1,i=e/2;return[{path:[`M0,${n}`,`A${i},${n} 0 0,1 ${e},${n}`,`A${i},${n} 0 0,1 0,${n}`,"Z"].join(" "),fillModifier:"lighten"}]});var kt=new Map;function Ls(e,t){let n=Math.min(e,t),i=e/2,r=t/2,o=n*3/8;return{ss:n,hc:i,vc:r,dx2:o,g9:r-o,g10:r+o,g11:i-o,g12:i+o,g13:n*3/4}}var li=(e,t)=>`M0,0 L${e},0 L${e},${t} L0,${t} Z`;kt.set("actionButtonForwardNext",(e,t)=>{let{g9:n,g10:i,g11:r,g12:o,vc:a}=Ls(e,t),s=`M${o},${a} L${r},${n} L${r},${i} Z`;return[{d:`${li(e,t)} ${s}`,fill:"norm",stroke:!1},{d:s,fill:"darken",stroke:!1},{d:s,fill:"none",stroke:!0},{d:li(e,t),fill:"none",stroke:!0}]});kt.set("actionButtonForward",(e,t)=>{let n=kt.get("actionButtonForwardNext");return n?n(e,t):[]});kt.set("actionButtonBackPrevious",(e,t)=>{let{g9:n,g10:i,g11:r,g12:o,vc:a}=Ls(e,t),s=`M${r},${a} L${o},${n} L${o},${i} Z`;return[{d:`${li(e,t)} ${s}`,fill:"norm",stroke:!1},{d:s,fill:"darken",stroke:!1},{d:s,fill:"none",stroke:!0},{d:li(e,t),fill:"none",stroke:!0}]});kt.set("actionButtonBeginning",(e,t)=>{let{g9:n,g10:i,g11:r,g12:o,g13:a,vc:s}=Ls(e,t),l=a/8,c=a/4,u=r+l,d=`M${r+c},${s} L${o},${n} L${o},${i} Z`,f=`M${u},${n} L${r},${n} L${r},${i} L${u},${i} Z`,h=`${d} ${f}`;return[{d:`${li(e,t)} ${h}`,fill:"norm",stroke:!1},{d:h,fill:"darken",stroke:!1},{d:h,fill:"none",stroke:!0},{d:li(e,t),fill:"none",stroke:!0}]});kt.set("actionButtonEnd",(e,t)=>{let{g9:n,g10:i,g11:r,g12:o,g13:a,vc:s}=Ls(e,t),l=a*3/4,c=a*7/8,u=r+l,d=r+c,f=`M${u},${s} L${r},${n} L${r},${i} Z`,h=`M${d},${n} L${o},${n} L${o},${i} L${d},${i} Z`,p=`${f} ${h}`;return[{d:`${li(e,t)} ${p}`,fill:"norm",stroke:!1},{d:p,fill:"darken",stroke:!1},{d:p,fill:"none",stroke:!0},{d:li(e,t),fill:"none",stroke:!0}]});kt.set("actionButtonReturn",(e,t)=>{let{g9:n,g10:i,g11:r,g12:o,g13:a,hc:s}=Ls(e,t),l=a*7/8,c=a*3/4,u=a*5/8,d=a*3/8,f=a/4,h=a/8,p=n+c,g=n+u,v=n+f,m=r+l,y=r+c,b=r+u,x=r+d,_=r+f,S=[`M${o},${v}`,`L${y},${n}`,`L${s},${v}`,`L${b},${v}`,`L${b},${g}`,`A${h},${h} 0 0,1 ${b-h},${p}`,`L${x},${p}`,`A${h},${h} 0 0,1 ${_},${g}`,`L${_},${v}`,`L${r},${v}`,`L${r},${g}`,`A${d},${d} 0 0,0 ${x},${i}`,`L${s},${i}`,`A${d},${d} 0 0,0 ${s+d},${i-d}`,`L${m},${v}`,"Z"].join(" "),$=[`M${o},${v}`,`L${m},${v}`,`L${m},${g}`,`A${d},${d} 0 0,1 ${r+a/2},${i}`,`L${x},${i}`,`A${d},${d} 0 0,1 ${r},${g}`,`L${r},${v}`,`L${_},${v}`,`L${_},${g}`,`A${h},${h} 0 0,0 ${x},${p}`,`L${s},${p}`,`A${h},${h} 0 0,0 ${b},${g}`,`L${b},${v}`,`L${s},${v}`,`L${y},${n}`,"Z"].join(" ");return[{d:`${li(e,t)} ${S}`,fill:"norm",stroke:!1},{d:S,fill:"darken",stroke:!1},{d:$,fill:"none",stroke:!0},{d:li(e,t),fill:"none",stroke:!0}]});kt.set("actionButtonSound",(e,t)=>{let{g9:n,g10:i,g11:r,g12:o,g13:a,vc:s}=Ls(e,t),l=a/8,c=a*5/16,u=a*5/8,d=a*11/16,f=a*3/4,h=a*7/8,p=n+l,g=n+c,v=n+d,m=n+h,y=r+c,b=r+u,x=r+f,_=`M${r},${g} L${r},${v} L${y},${v} L${b},${i} L${b},${n} L${y},${g} Z`,S=`M${r},${g} L${y},${g} L${b},${n} L${b},${i} L${y},${v} L${r},${v} Z`,$=`M${x},${g} L${o},${p}`,C=`M${x},${s} L${o},${s}`,w=`M${x},${v} L${o},${m}`,z=`${S} ${$} ${C} ${w}`;return[{d:`${li(e,t)} ${_}`,fill:"norm",stroke:!1},{d:_,fill:"darken",stroke:!1},{d:z,fill:"none",stroke:!0},{d:li(e,t),fill:"none",stroke:!0}]});kt.set("actionButtonInformation",(e,t)=>{let{g9:n,g10:i,g11:r,g13:o,hc:a,dx2:s}=Ls(e,t),l=o/32,c=o*5/16,u=o*3/8,d=o*13/32,f=o*19/32,h=o*11/16,p=o*13/16,g=o*7/8,v=o*3/32,m=n+l,y=n+c,b=n+u,x=n+p,_=n+g,S=r+c,$=r+d,C=r+f,w=r+h,z=`M${a},${n} A${s},${s} 0 1,1 ${a},${i} A${s},${s} 0 1,1 ${a},${n} Z`,A=`M${a},${m} A${v},${v} 0 1,1 ${a},${m+v*2} A${v},${v} 0 1,1 ${a},${m} Z`,M=`M${S},${y} L${w},${y} L${w},${b} L${C},${b} L${C},${x} L${w},${x} L${w},${_} L${S},${_} L${S},${x} L${$},${x} L${$},${b} L${S},${b} Z`,T=`${A} ${M}`;return[{d:`${li(e,t)} ${z}`,fill:"norm",stroke:!1},{d:`${z} ${T}`,fill:"darken",stroke:!1},{d:T,fill:"lighten",stroke:!1},{d:`${z} ${T}`,fill:"none",stroke:!0},{d:li(e,t),fill:"none",stroke:!0}]});kt.set("actionButtonHome",(e,t)=>{let{g9:n,g10:i,g11:r,g12:o,g13:a,hc:s,vc:l}=Ls(e,t),c=a/16,u=a/8,d=a*3/16,f=a*5/16,h=a*7/16,p=a*9/16,g=a*11/16,v=a*3/4,m=a*13/16,y=a*7/8,b=n+c,x=n+d,_=n+f,S=n+v,$=r+u,C=r+h,w=r+p,z=r+g,A=r+m,M=r+y,T=`M${s},${n} L${r},${l} L${$},${l} L${$},${i} L${M},${i} L${M},${l} L${o},${l} L${A},${_} L${A},${b} L${z},${b} L${z},${x} Z`,k=`M${A},${_} L${A},${b} L${z},${b} L${z},${x} Z`,I=`M${$},${l} L${$},${i} L${C},${i} L${C},${S} L${w},${S} L${w},${i} L${M},${i} L${M},${l} Z`,D=`M${s},${n} L${r},${l} L${o},${l} Z`,E=`M${C},${S} L${w},${S} L${w},${i} L${C},${i} Z`,N=`M${s},${n} L${z},${x} L${z},${b} L${A},${b} L${A},${_} L${o},${l} L${M},${l} L${M},${i} L${$},${i} L${$},${l} L${r},${l} Z M${z},${x} L${A},${_} M${M},${l} L${$},${l} M${C},${i} L${C},${S} L${w},${S} L${w},${i}`;return[{d:`${li(e,t)} ${T}`,fill:"norm",stroke:!1},{d:`${k} ${I}`,fill:"darkenLess",stroke:!1},{d:`${D} ${E}`,fill:"darken",stroke:!1},{d:N,fill:"none",stroke:!0},{d:li(e,t),fill:"none",stroke:!0}]});kt.set("actionButtonHelp",(e,t)=>{let{g9:n,g11:i,g13:r,hc:o}=Ls(e,t),a=r/7,s=r*3/14,l=r*2/7,c=r*3/7,u=r*4/7,d=r*17/28,f=r*21/28,h=r*11/14,p=r/14,g=r*3/28,v=n+l,m=n+d,y=n+f,b=n+h,x=i+s,_=i+c,S=i+u,$=(N,F,G,P,O,V)=>{let j=O*Math.PI/180,H=(O+V)*Math.PI/180,Q=N-G*Math.cos(j),le=F-P*Math.sin(j),se=Q+G*Math.cos(H),ae=le+P*Math.sin(H),Se=Math.abs(V)>180?1:0,ve=V>0?1:0;return{endX:se,endY:ae,svg:`A${G},${P} 0 ${Se},${ve} ${se},${ae}`}},C=x,w=v,z=$(C,w,l,l,180,180);C=z.endX,w=z.endY;let A=$(C,w,a,s,0,90);C=A.endX,w=A.endY;let M=$(C,w,p,g,270,-90),T=$(_,m,a,s,180,90),k=$(T.endX,T.endY,p,g,90,-90),I=$(k.endX,k.endY,a,a,0,-180),D=`M${o},${b} A${g},${g} 0 1,1 ${o},${b+g*2} A${g},${g} 0 1,1 ${o},${b} Z`,E=`${`M${x},${v} ${z.svg} ${A.svg} ${M.svg} L${S},${y} L${_},${y} L${_},${m} ${T.svg} ${k.svg} ${I.svg} Z`} ${D}`;return[{d:`${li(e,t)} ${E}`,fill:"norm",stroke:!1},{d:E,fill:"darken",stroke:!1},{d:E,fill:"none",stroke:!0},{d:li(e,t),fill:"none",stroke:!0}]});kt.set("actionButtonDocument",(e,t)=>{let n=Math.min(e,t),i=e/2,r=t/2,o=n*3/8,a=n*9/32,s=r-o,l=r+o,c=i-a,u=i+a,d=n*3/16,f=u-d,h=s+d,p=`M${c},${s} L${f},${s} L${u},${h} L${u},${l} L${c},${l} Z`,g=`M${f},${s} L${f},${h} L${u},${h} Z`,v=`${p} M${u},${h} L${f},${h} L${f},${s}`;return[{d:`${li(e,t)} ${p}`,fill:"norm",stroke:!1},{d:p,fill:"darkenLess",stroke:!1},{d:g,fill:"darken",stroke:!1},{d:v,fill:"none",stroke:!0},{d:li(e,t),fill:"none",stroke:!0}]});kt.set("actionButtonMovie",(e,t)=>{let{g9:n,g11:i,g12:r,g13:o}=Ls(e,t),a=o*1455/21600,s=o*1905/21600,l=o*2325/21600,c=o*16155/21600,u=o*17010/21600,d=o*19335/21600,f=o*19725/21600,h=o*20595/21600,p=o*5280/21600,g=o*5730/21600,v=o*6630/21600,m=o*7492/21600,y=o*9067/21600,b=o*9555/21600,x=o*13342/21600,_=o*14580/21600,S=o*15592/21600,$=i+a,C=i+s,w=i+l,z=i+c,A=i+u,M=i+d,T=i+f,k=i+h,I=n+p,D=n+g,E=n+v,N=n+m,F=n+y,G=n+b,P=n+x,O=n+_,V=n+S,j=[`M${i},${I}`,`L${i},${G}`,`L${$},${G}`,`L${C},${F}`,`L${w},${F}`,`L${w},${V}`,`L${A},${V}`,`L${A},${P}`,`L${M},${P}`,`L${k},${O}`,`L${r},${O}`,`L${r},${E}`,`L${k},${E}`,`L${T},${N}`,`L${A},${N}`,`L${A},${E}`,`L${z},${D}`,`L${C},${D}`,`L${$},${I}`,"Z"].join(" ");return[{d:`${li(e,t)} ${j}`,fill:"norm",stroke:!1},{d:j,fill:"darken",stroke:!1},{d:j,fill:"none",stroke:!0},{d:li(e,t),fill:"none",stroke:!0}]});kt.set("flowChartOfflineStorage",(e,t)=>{let n=`M0,0 L${e},0 L${e/2},${t} Z`,i=t*4/5,r=`M${e*2/5},${i} L${e*3/5},${i}`;return[{d:n,fill:"norm",stroke:!1},{d:r,fill:"none",stroke:!0},{d:n,fill:"none",stroke:!0}]});kt.set("cube",(e,t,n)=>{let i=Math.min(Math.max(st(n,"adj",25e3),0),.45),r=Math.min(e,t)*i,o=[`M0,${r}`,`L${e-r},${r}`,`L${e-r},${t}`,`L0,${t}`,"Z"].join(" "),a=[`M0,${r}`,`L${r},0`,`L${e},0`,`L${e-r},${r}`,"Z"].join(" "),s=[`M${e-r},${r}`,`L${e},0`,`L${e},${t-r}`,`L${e-r},${t}`,"Z"].join(" ");return[{d:o,fill:"norm",stroke:!0},{d:a,fill:"lightenLess",stroke:!0},{d:s,fill:"darkenLess",stroke:!0}]});kt.set("bevel",(e,t,n)=>{let i=Math.min(Math.max(st(n,"adj",12500),0),.45),r=Math.min(e,t)*i,o=`M${r},${r} L${e-r},${r} L${e-r},${t-r} L${r},${t-r} Z`,a=`M0,0 L${e},0 L${e-r},${r} L${r},${r} Z`,s=`M0,${t} L${r},${t-r} L${e-r},${t-r} L${e},${t} Z`,l=`M0,0 L${r},${r} L${r},${t-r} L0,${t} Z`,c=`M${e},0 L${e},${t} L${e-r},${t-r} L${e-r},${r} Z`;return[{d:o,fill:"norm",stroke:!0},{d:a,fill:"lightenLess",stroke:!0},{d:c,fill:"darken",stroke:!0},{d:s,fill:"darken",stroke:!0},{d:l,fill:"lighten",stroke:!0}]});kt.set("leftRightRibbon",(e,t,n)=>{let i=Math.min(e,t),r=e/2,o=e/32,a=e/2,s=t/2,l=Math.min(Math.max((n?.get("adj3")??16667)/1e5,0),.33333),c=1-l,u=Math.min(Math.max((n?.get("adj1")??5e4)/1e5,0),c),d=(r-o)/i,f=Math.min(Math.max((n?.get("adj2")??5e4)/1e5,0),d),h=i*f,p=e-h,g=t*u/2,v=-t*l/2,m=s+v-g,y=s+g-v,b=m+g,x=t-b,_=b*2,S=t-_,$=_-m,C=t-$,w=l*i/4,z=a-o,A=a+o,M=m+w,T=C-w,k=(V,j,H,Q,le,se)=>{let ae=le*Math.PI/180,Se=(le+se)*Math.PI/180,ve=V-H*Math.cos(ae),$e=j-Q*Math.sin(ae),je=ve+H*Math.cos(Se),R=$e+Q*Math.sin(Se),ie=Math.abs(se)>180?1:0,te=se>0?1:0;return{endX:je,endY:R,svg:`A${H},${Q} 0 ${ie},${te} ${je},${R}`}},I=k(a,m,o,w,270,180),D=k(I.endX,I.endY,o,w,270,-180),E=k(a,y,o,w,90,90),N=[`M0,${b}`,`L${h},0`,`L${h},${m}`,`L${a},${m}`,I.svg,D.svg,`L${p},${C}`,`L${p},${S}`,`L${e},${x}`,`L${p},${t}`,`L${p},${y}`,`L${a},${y}`,E.svg,`L${z},${$}`,`L${h},${$}`,`L${h},${_}`,"Z"].join(" "),F=k(A,M,o,w,0,90),G=k(F.endX,F.endY,o,w,270,-180),P=[`M${A},${M}`,F.svg,G.svg,`L${A},${C}`,"Z"].join(" "),O=[N,`M${A},${M} L${A},${C}`,`M${z},${T} L${z},${$}`].join(" ");return[{d:N,fill:"norm",stroke:!1},{d:P,fill:"darkenLess",stroke:!1},{d:O,fill:"none",stroke:!0}]});kt.set("ellipseRibbon",(e,t,n)=>{let i=n?.get("adj1")??25e3,r=n?.get("adj2")??5e4,o=n?.get("adj3")??12500,a=Math.max(0,Math.min(i,1e5)),s=Math.max(25e3,Math.min(r,75e3)),l=(1e5-a)/2,c=a-l,u=Math.max(0,c),d=Math.max(u,Math.min(o,a)),f=e*s/2e5,h=e/2-f,p=h+e/8,g=e-p,v=e-h,m=e-e/8,y=t*d/1e5,b=e>0?4*y/e:0,x=ae=>b*(ae-ae*ae/e),_=x(p),S=p/2,$=b*S,C=e-S,w=t*a/1e5,z=w-y,A=x(h),M=A+z,T=y+z-M+y+z,k=t-w,I=(y*14/16+k)/2,D=A+k,E=M+k,N=h/2,F=b*N+k,G=e-N,P=T+k,O=_+z,V=w+w-O,j=e/2,H=e/8,Q=["M0,0",`Q${S},${$} ${p},${_}`,`L${h},${M}`,`Q${j},${T} ${v},${M}`,`L${g},${_}`,`Q${C},${$} ${e},0`,`L${m},${I}`,`L${e},${k}`,`Q${G},${F} ${v},${D}`,`L${v},${E}`,`Q${j},${P} ${h},${E}`,`L${h},${D}`,`Q${N},${F} 0,${k}`,`L${H},${I}`,"Z"].join(" "),le=[`M${p},${O}`,`L${p},${_}`,`L${h},${M}`,`Q${j},${T} ${v},${M}`,`L${g},${_}`,`L${g},${O}`,`Q${j},${V} ${p},${O}`,"Z"].join(" "),se=["M0,0",`Q${S},${$} ${p},${_}`,`L${h},${M}`,`Q${j},${T} ${v},${M}`,`L${g},${_}`,`Q${C},${$} ${e},0`,`L${m},${I}`,`L${e},${k}`,`Q${G},${F} ${v},${D}`,`L${v},${E}`,`Q${j},${P} ${h},${E}`,`L${h},${D}`,`Q${N},${F} 0,${k}`,`L${H},${I}`,"Z",`M${h},${D} L${h},${M}`,`M${v},${M} L${v},${D}`,`M${p},${_} L${p},${O}`,`M${g},${O} L${g},${_}`].join(" ");return[{d:Q,fill:"norm",stroke:!1},{d:le,fill:"darkenLess",stroke:!1},{d:se,fill:"none",stroke:!0}]});kt.set("ellipseRibbon2",(e,t,n)=>{let i=n?.get("adj1")??25e3,r=n?.get("adj2")??5e4,o=n?.get("adj3")??12500,a=Math.max(0,Math.min(i,1e5)),s=Math.max(25e3,Math.min(r,75e3)),l=(1e5-a)/2,c=a-l,u=Math.max(0,c),d=Math.max(u,Math.min(o,a)),f=t,h=e*s/2e5,p=e/2-h,g=p+e/8,v=e-g,m=e-p,y=e-e/8,b=t*d/1e5,x=e>0?4*b/e:0,_=x*(g-g*g/e),S=f-_,$=g/2,C=x*$,w=f-C,z=e-$,A=t*a/1e5,M=A-b,T=x*(p-p*p/e),k=T+M,I=f-k,D=b+M-k+b+M,E=f-D,N=f-A,F=(b*14/16+N)/2,G=f-F,P=T+N,O=f-P,V=k+N,j=f-V,H=p/2,Q=x*H+N,le=f-Q,se=e-H,ae=D+N,Se=f-ae,ve=_+M,$e=f-ve,je=A+A-ve,R=f-je,ie=e/2,te=e/8,B=[`M0,${f}`,`Q${$},${w} ${g},${S}`,`L${p},${I}`,`Q${ie},${E} ${m},${I}`,`L${v},${S}`,`Q${z},${w} ${e},${f}`,`L${y},${G}`,`L${e},${A}`,`Q${se},${le} ${m},${O}`,`L${m},${j}`,`Q${ie},${Se} ${p},${j}`,`L${p},${O}`,`Q${H},${le} 0,${A}`,`L${te},${G}`,"Z"].join(" "),U=[`M${g},${$e}`,`L${g},${S}`,`L${p},${I}`,`Q${ie},${E} ${m},${I}`,`L${v},${S}`,`L${v},${$e}`,`Q${ie},${R} ${g},${$e}`,"Z"].join(" "),W=[`M0,${f}`,`L${te},${G}`,`L0,${A}`,`Q${H},${le} ${p},${O}`,`L${p},${j}`,`Q${ie},${Se} ${m},${j}`,`L${m},${O}`,`Q${se},${le} ${e},${A}`,`L${y},${G}`,`L${e},${f}`,`Q${z},${w} ${v},${S}`,`L${m},${I}`,`Q${ie},${E} ${p},${I}`,`L${g},${S}`,`Q${$},${w} 0,${f}`,"Z",`M${p},${I} L${p},${O}`,`M${m},${O} L${m},${I}`,`M${g},${$e} L${g},${S}`,`M${v},${S} L${v},${$e}`].join(" ");return[{d:B,fill:"norm",stroke:!1},{d:U,fill:"darkenLess",stroke:!1},{d:W,fill:"none",stroke:!0}]});kt.set("smileyFace",(e,t,n)=>{let i=e/2,r=t/2,o=e/2,a=t/2,s=n?.get("adj")??4653,l=Math.max(-4653,Math.min(s,4653)),c=e*6215/21600,u=e*13135/21600,d=t*7570/21600,f=e*1125/21600,h=t*1125/21600,p=e*4969/21699,g=e*16640/21600,v=t*16515/21600,m=t*l/1e5,y=v-m,b=v+m,x=t*l/5e4,_=b+x,S=`M${e},${a} A${i},${r} 0 1,1 0,${a} A${i},${r} 0 1,1 ${e},${a} Z`,$=`M${(c+f).toFixed(2)},${d.toFixed(2)} A${f.toFixed(2)},${h.toFixed(2)} 0 1,1 ${(c-f).toFixed(2)},${d.toFixed(2)} A${f.toFixed(2)},${h.toFixed(2)} 0 1,1 ${(c+f).toFixed(2)},${d.toFixed(2)} Z`,C=`M${(u+f).toFixed(2)},${d.toFixed(2)} A${f.toFixed(2)},${h.toFixed(2)} 0 1,1 ${(u-f).toFixed(2)},${d.toFixed(2)} A${f.toFixed(2)},${h.toFixed(2)} 0 1,1 ${(u+f).toFixed(2)},${d.toFixed(2)} Z`,w=`M${p.toFixed(2)},${y.toFixed(2)} Q${o.toFixed(2)},${_.toFixed(2)} ${g.toFixed(2)},${y.toFixed(2)}`,z=`M${e},${a} A${i},${r} 0 1,1 0,${a} A${i},${r} 0 1,1 ${e},${a} Z`;return[{d:S,fill:"norm",stroke:!1},{d:`${$} ${C}`,fill:"darkenLess",stroke:!1},{d:w,fill:"none",stroke:!0},{d:z,fill:"none",stroke:!0}]});kt.set("foldedCorner",(e,t,n)=>{let i=st(n,"adj",16667),r=Math.min(e,t)*i*.7,o=`M0,0 L${e},0 L${e},${t-r} L${e-r},${t} L0,${t} Z`,a=`M${e-r},${t} L${e-r},${t-r} L${e},${t-r} Z`,s=`M${e-r},${t} L${e-r},${t-r}`;return[{d:o,fill:"norm",stroke:!0},{d:a,fill:"darkenLess",stroke:!1},{d:s,fill:"none",stroke:!0}]});kt.set("can",(e,t,n)=>{let i=Math.min(e,t),r=5e4*t/i,o=Math.min(Math.max(n?.get("adj")??25e3,0),r),a=i*o/2e5,s=t-a,l=e/2,c=(x,_,S,$,C,w)=>{let z=C*Math.PI/180,A=(C+w)*Math.PI/180,M=x-S*Math.cos(z),T=_-$*Math.sin(z),k=M+S*Math.cos(A),I=T+$*Math.sin(A),D=Math.abs(w)>180?1:0,E=w>0?1:0;return{endX:k,endY:I,svg:`A${S},${$} 0 ${D},${E} ${k},${I}`}},u=c(0,a,l,a,180,-180),d=c(e,s,l,a,0,180),f=`M0,${a} ${u.svg} L${e},${s} ${d.svg} Z`,h=c(0,a,l,a,180,180),p=c(h.endX,h.endY,l,a,0,180),g=`M0,${a} ${h.svg} ${p.svg} Z`,v=c(e,a,l,a,0,180),m=c(v.endX,v.endY,l,a,180,180),y=c(e,s,l,a,0,180),b=`M${e},${a} ${v.svg} ${m.svg} L${e},${s} ${y.svg} L0,${a}`;return[{d:f,fill:"norm",stroke:!1},{d:g,fill:"lighten",stroke:!1},{d:b,fill:"none",stroke:!0}]});kt.set("curvedrightarrow",(e,t,n)=>hK("curvedRightArrow",e,t,n));kt.set("curvedleftarrow",(e,t,n)=>hK("curvedLeftArrow",e,t,n));kt.set("curveduparrow",(e,t,n)=>fK("curvedUpArrow",e,t,n));kt.set("curveddownarrow",(e,t,n)=>fK("curvedDownArrow",e,t,n));kt.set("bordercallout1",(e,t,n)=>{let i=t*(n?.get("adj1")??18750)/1e5,r=e*(n?.get("adj2")??-8333)/1e5,o=t*(n?.get("adj3")??112500)/1e5,a=e*(n?.get("adj4")??-38333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:"norm",stroke:!0},{d:`M${r},${i} L${a},${o}`,fill:"none",stroke:!0}]});kt.set("accentcallout1",(e,t,n)=>{let i=t*(n?.get("adj1")??18750)/1e5,r=e*(n?.get("adj2")??-8333)/1e5,o=t*(n?.get("adj3")??112500)/1e5,a=e*(n?.get("adj4")??-38333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:"norm",stroke:!1},{d:`M${r},0 L${r},${t}`,fill:"none",stroke:!0},{d:`M${r},${i} L${a},${o}`,fill:"none",stroke:!0}]});kt.set("accentcallout2",(e,t,n)=>{let i=t*(n?.get("adj1")??18750)/1e5,r=e*(n?.get("adj2")??-8333)/1e5,o=t*(n?.get("adj3")??18750)/1e5,a=e*(n?.get("adj4")??-16667)/1e5,s=t*(n?.get("adj5")??112500)/1e5,l=e*(n?.get("adj6")??-46667)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:"norm",stroke:!1},{d:`M${r},0 L${r},${t}`,fill:"none",stroke:!0},{d:`M${r},${i} L${a},${o} L${l},${s}`,fill:"none",stroke:!0}]});kt.set("accentcallout3",(e,t,n)=>{let i=t*(n?.get("adj1")??18750)/1e5,r=e*(n?.get("adj2")??-8333)/1e5,o=t*(n?.get("adj3")??18750)/1e5,a=e*(n?.get("adj4")??-16667)/1e5,s=t*(n?.get("adj5")??1e5)/1e5,l=e*(n?.get("adj6")??-16667)/1e5,c=t*(n?.get("adj7")??112963)/1e5,u=e*(n?.get("adj8")??-8333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:"norm",stroke:!1},{d:`M${r},0 L${r},${t}`,fill:"none",stroke:!0},{d:`M${r},${i} L${a},${o} L${l},${s} L${u},${c}`,fill:"none",stroke:!0}]});kt.set("callout1",(e,t,n)=>{let i=t*(n?.get("adj1")??18750)/1e5,r=e*(n?.get("adj2")??-8333)/1e5,o=t*(n?.get("adj3")??112500)/1e5,a=e*(n?.get("adj4")??-38333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:"norm",stroke:!1},{d:`M${r},${i} L${a},${o}`,fill:"none",stroke:!0}]});kt.set("callout2",(e,t,n)=>{let i=t*(n?.get("adj1")??18750)/1e5,r=e*(n?.get("adj2")??-8333)/1e5,o=t*(n?.get("adj3")??18750)/1e5,a=e*(n?.get("adj4")??-16667)/1e5,s=t*(n?.get("adj5")??112500)/1e5,l=e*(n?.get("adj6")??-46667)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:"norm",stroke:!1},{d:`M${r},${i} L${a},${o} L${l},${s}`,fill:"none",stroke:!0}]});kt.set("callout3",(e,t,n)=>{let i=t*(n?.get("adj1")??18750)/1e5,r=e*(n?.get("adj2")??-8333)/1e5,o=t*(n?.get("adj3")??18750)/1e5,a=e*(n?.get("adj4")??-16667)/1e5,s=t*(n?.get("adj5")??1e5)/1e5,l=e*(n?.get("adj6")??-16667)/1e5,c=t*(n?.get("adj7")??112963)/1e5,u=e*(n?.get("adj8")??-8333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:"norm",stroke:!1},{d:`M${r},${i} L${a},${o} L${l},${s} L${u},${c}`,fill:"none",stroke:!0}]});kt.set("bordercallout2",(e,t,n)=>{let i=t*(n?.get("adj1")??18750)/1e5,r=e*(n?.get("adj2")??-8333)/1e5,o=t*(n?.get("adj3")??18750)/1e5,a=e*(n?.get("adj4")??-16667)/1e5,s=t*(n?.get("adj5")??112500)/1e5,l=e*(n?.get("adj6")??-46667)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:"norm",stroke:!0},{d:`M${r},${i} L${a},${o} L${l},${s}`,fill:"none",stroke:!0}]});kt.set("bordercallout3",(e,t,n)=>{let i=t*(n?.get("adj1")??18750)/1e5,r=e*(n?.get("adj2")??-8333)/1e5,o=t*(n?.get("adj3")??18750)/1e5,a=e*(n?.get("adj4")??-16667)/1e5,s=t*(n?.get("adj5")??1e5)/1e5,l=e*(n?.get("adj6")??-16667)/1e5,c=t*(n?.get("adj7")??112963)/1e5,u=e*(n?.get("adj8")??-8333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:"norm",stroke:!0},{d:`M${r},${i} L${a},${o} L${l},${s} L${u},${c}`,fill:"none",stroke:!0}]});kt.set("accentbordercallout1",(e,t,n)=>{let i=t*(n?.get("adj1")??18750)/1e5,r=e*(n?.get("adj2")??-8333)/1e5,o=t*(n?.get("adj3")??112500)/1e5,a=e*(n?.get("adj4")??-38333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:"norm",stroke:!0},{d:`M${r},0 L${r},${t}`,fill:"none",stroke:!0},{d:`M${r},${i} L${a},${o}`,fill:"none",stroke:!0}]});kt.set("accentbordercallout2",(e,t,n)=>{let i=t*(n?.get("adj1")??18750)/1e5,r=e*(n?.get("adj2")??-8333)/1e5,o=t*(n?.get("adj3")??18750)/1e5,a=e*(n?.get("adj4")??-16667)/1e5,s=t*(n?.get("adj5")??112500)/1e5,l=e*(n?.get("adj6")??-46667)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:"norm",stroke:!0},{d:`M${r},0 L${r},${t}`,fill:"none",stroke:!0},{d:`M${r},${i} L${a},${o} L${l},${s}`,fill:"none",stroke:!0}]});kt.set("accentbordercallout3",(e,t,n)=>{let i=t*(n?.get("adj1")??18750)/1e5,r=e*(n?.get("adj2")??-8333)/1e5,o=t*(n?.get("adj3")??18750)/1e5,a=e*(n?.get("adj4")??-16667)/1e5,s=t*(n?.get("adj5")??1e5)/1e5,l=e*(n?.get("adj6")??-16667)/1e5,c=t*(n?.get("adj7")??112963)/1e5,u=e*(n?.get("adj8")??-8333)/1e5;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:"norm",stroke:!0},{d:`M${r},0 L${r},${t}`,fill:"none",stroke:!0},{d:`M${r},${i} L${a},${o} L${l},${s} L${u},${c}`,fill:"none",stroke:!0}]});kt.set("chartx",(e,t)=>[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:"norm",stroke:!1},{d:`M0,0 L${e},${t} M${e},0 L0,${t}`,fill:"none",stroke:!0}]);kt.set("chartplus",(e,t)=>{let n=e/2,i=t/2;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:"norm",stroke:!1},{d:`M${n},0 L${n},${t} M0,${i} L${e},${i}`,fill:"none",stroke:!0}]});kt.set("chartstar",(e,t)=>{let n=e/2;return[{d:`M0,0 L${e},0 L${e},${t} L0,${t} Z`,fill:"norm",stroke:!1},{d:`M0,0 L${e},${t} M${e},0 L0,${t} M${n},0 L${n},${t}`,fill:"none",stroke:!0}]});function Be(e,t,n,i,r,o){let a=r*Math.PI/180,s=e-n*Math.cos(a),l=t-i*Math.sin(a),c=(r+o)*Math.PI/180,u=s+n*Math.cos(c),d=l+i*Math.sin(c),f=Math.abs(o)>180?1:0,h=o>=0?1:0;return{svg:`A${n},${i} 0 ${f},${h} ${u},${d}`,x:u,y:d}}kt.set("ribbon",(e,t,n)=>{let i=n?.get("adj1")??16667,r=n?.get("adj2")??5e4,o=Math.min(Math.max(i,0),33333),a=Math.min(Math.max(r,25e3),75e3),s=e/2,l=e/8,c=e/32,u=e-l,d=e*a/2e5,f=s-d,h=s+d,p=f+c,g=h-c,v=f+l,m=h-l,y=v-c,b=m+c,x=t*o/2e5,_=t*o/1e5,S=t-_,$=S/2,C=t*o/4e5,w=t-C,z=_-C,A,M,T,k=[];A=0,M=0,k.push("M0,0"),k.push(`L${y},0`),A=y,M=0,T=Be(A,M,c,C,270,180),k.push(T.svg),A=T.x,M=T.y,k.push(`L${p},${x}`),A=p,M=x,T=Be(A,M,c,C,270,-180),k.push(T.svg),A=T.x,M=T.y,k.push(`L${g},${_}`),A=g,M=_,T=Be(A,M,c,C,90,-180),k.push(T.svg),A=T.x,M=T.y,k.push(`L${b},${x}`),A=b,M=x,T=Be(A,M,c,C,90,180),k.push(T.svg),A=T.x,M=T.y,k.push(`L${e},0`),k.push(`L${u},${$}`),k.push(`L${e},${S}`),k.push(`L${h},${S}`),k.push(`L${h},${w}`),A=h,M=w,T=Be(A,M,c,C,0,90),k.push(T.svg),A=T.x,M=T.y,k.push(`L${p},${t}`),A=p,M=t,T=Be(A,M,c,C,90,90),k.push(T.svg),A=T.x,M=T.y,k.push(`L${f},${S}`),k.push(`L0,${S}`),k.push(`L${l},${$}`),k.push("Z");let I=[];A=v,M=C,I.push(`M${A},${M}`),T=Be(A,M,c,C,0,90),I.push(T.svg),A=T.x,M=T.y,I.push(`L${p},${x}`),A=p,M=x,T=Be(A,M,c,C,270,-180),I.push(T.svg),A=T.x,M=T.y,I.push(`L${v},${_}`),I.push("Z"),A=m,M=C,I.push(`M${A},${M}`),T=Be(A,M,c,C,180,-90),I.push(T.svg),A=T.x,M=T.y,I.push(`L${g},${x}`),A=g,M=x,T=Be(A,M,c,C,270,180),I.push(T.svg),A=T.x,M=T.y,I.push(`L${m},${_}`),I.push("Z");let D=[];return A=0,M=0,D.push("M0,0"),D.push(`L${y},0`),A=y,M=0,T=Be(A,M,c,C,270,180),D.push(T.svg),A=T.x,M=T.y,D.push(`L${p},${x}`),A=p,M=x,T=Be(A,M,c,C,270,-180),D.push(T.svg),A=T.x,M=T.y,D.push(`L${g},${_}`),A=g,M=_,T=Be(A,M,c,C,90,-180),D.push(T.svg),A=T.x,M=T.y,D.push(`L${b},${x}`),A=b,M=x,T=Be(A,M,c,C,90,180),D.push(T.svg),A=T.x,M=T.y,D.push(`L${e},0`),D.push(`L${u},${$}`),D.push(`L${e},${S}`),D.push(`L${h},${S}`),D.push(`L${h},${w}`),A=h,M=w,T=Be(A,M,c,C,0,90),D.push(T.svg),A=T.x,M=T.y,D.push(`L${p},${t}`),A=p,M=t,T=Be(A,M,c,C,90,90),D.push(T.svg),A=T.x,M=T.y,D.push(`L${f},${S}`),D.push(`L0,${S}`),D.push(`L${l},${$}`),D.push("Z"),D.push(`M${v},${C} L${v},${_}`),D.push(`M${m},${_} L${m},${C}`),D.push(`M${f},${S} L${f},${z}`),D.push(`M${h},${z} L${h},${S}`),[{d:k.join(" "),fill:"norm",stroke:!1},{d:I.join(" "),fill:"darkenLess",stroke:!1},{d:D.join(" "),fill:"none",stroke:!0}]});kt.set("ribbon2",(e,t,n)=>{let i=n?.get("adj1")??16667,r=n?.get("adj2")??5e4,o=Math.min(Math.max(i,0),33333),a=Math.min(Math.max(r,25e3),75e3),s=e/2,l=e/8,c=e/32,u=e-l,d=e*a/2e5,f=s-d,h=s+d,p=f+c,g=h-c,v=f+l,m=h-l,y=v-c,b=m+c,x=t*o/2e5,_=t-x,S=t*o/1e5,$=t-S,C=S,w=(C+t)/2,z=t*o/4e5,A=t-z,M=_-z,T,k,I,D=[];D.push(`M0,${t}`),D.push(`L${y},${t}`),T=y,k=t,I=Be(T,k,c,z,90,-180),D.push(I.svg),T=I.x,k=I.y,D.push(`L${p},${_}`),T=p,k=_,I=Be(T,k,c,z,90,180),D.push(I.svg),T=I.x,k=I.y,D.push(`L${g},${$}`),T=g,k=$,I=Be(T,k,c,z,270,180),D.push(I.svg),T=I.x,k=I.y,D.push(`L${b},${_}`),T=b,k=_,I=Be(T,k,c,z,270,-180),D.push(I.svg),T=I.x,k=I.y,D.push(`L${e},${t}`),D.push(`L${u},${w}`),D.push(`L${e},${C}`),D.push(`L${h},${C}`),D.push(`L${h},${z}`),T=h,k=z,I=Be(T,k,c,z,0,-90),D.push(I.svg),T=I.x,k=I.y,D.push(`L${p},0`),T=p,k=0,I=Be(T,k,c,z,270,-90),D.push(I.svg),T=I.x,k=I.y,D.push(`L${f},${C}`),D.push(`L0,${C}`),D.push(`L${l},${w}`),D.push("Z");let E=[];T=v,k=A,E.push(`M${T},${k}`),I=Be(T,k,c,z,0,-90),E.push(I.svg),T=I.x,k=I.y,E.push(`L${p},${_}`),T=p,k=_,I=Be(T,k,c,z,90,180),E.push(I.svg),T=I.x,k=I.y,E.push(`L${v},${$}`),E.push("Z"),T=m,k=A,E.push(`M${T},${k}`),I=Be(T,k,c,z,180,90),E.push(I.svg),T=I.x,k=I.y,E.push(`L${g},${_}`),T=g,k=_,I=Be(T,k,c,z,90,-180),E.push(I.svg),T=I.x,k=I.y,E.push(`L${m},${$}`),E.push("Z");let N=[];return N.push(`M0,${t}`),N.push(`L${l},${w}`),N.push(`L0,${C}`),N.push(`L${f},${C}`),N.push(`L${f},${z}`),T=f,k=z,I=Be(T,k,c,z,180,90),N.push(I.svg),T=I.x,k=I.y,N.push(`L${g},0`),T=g,k=0,I=Be(T,k,c,z,270,90),N.push(I.svg),T=I.x,k=I.y,N.push(`L${h},${C}`),N.push(`L${e},${C}`),N.push(`L${u},${w}`),N.push(`L${e},${t}`),N.push(`L${b},${t}`),T=b,k=t,I=Be(T,k,c,z,90,180),N.push(I.svg),T=I.x,k=I.y,N.push(`L${g},${_}`),T=g,k=_,I=Be(T,k,c,z,90,-180),N.push(I.svg),T=I.x,k=I.y,N.push(`L${p},${$}`),T=p,k=$,I=Be(T,k,c,z,270,-180),N.push(I.svg),T=I.x,k=I.y,N.push(`L${y},${_}`),T=y,k=_,I=Be(T,k,c,z,270,180),N.push(I.svg),T=I.x,k=I.y,N.push("Z"),N.push(`M${v},${$} L${v},${A}`),N.push(`M${m},${A} L${m},${$}`),N.push(`M${f},${M} L${f},${C}`),N.push(`M${h},${C} L${h},${M}`),[{d:D.join(" "),fill:"norm",stroke:!1},{d:E.join(" "),fill:"darkenLess",stroke:!1},{d:N.join(" "),fill:"none",stroke:!0}]});kt.set("horizontalscroll",(e,t,n)=>{let i=n?.get("adj")??12500,r=Math.min(Math.max(i,0),25e3),o=Math.min(e,t)*r/1e5,a=o/2,s=o/4,l=o+a,c=o+o,u=t-o,d=t-a,f=u-a,h=e-o,p=e-a,g=[],v,m;v=e,m=a,g.push(`M${v},${m}`);let y=Be(v,m,a,a,0,90);g.push(y.svg),v=y.x,m=y.y,g.push(`L${p},${a}`),y=Be(p,a,s,s,0,180),g.push(y.svg),v=y.x,m=y.y,g.push(`L${h},${o}`),g.push(`L${a},${o}`),v=a,m=o,y=Be(v,m,a,a,270,-90),g.push(y.svg),v=y.x,m=y.y,g.push(`L0,${d}`),v=0,m=d,y=Be(v,m,a,a,180,-180),g.push(y.svg),v=y.x,m=y.y,g.push(`L${o},${u}`),g.push(`L${p},${u}`),v=p,m=u,y=Be(v,m,a,a,90,-90),g.push(y.svg),g.push("Z"),v=a,m=c,g.push(`M${v},${m}`),y=Be(v,m,a,a,90,-90),g.push(y.svg),v=y.x,m=y.y,y=Be(v,m,s,s,0,-180),g.push(y.svg),g.push("Z");let b=[];v=a,m=c,b.push(`M${v},${m}`),y=Be(v,m,a,a,90,-90),b.push(y.svg),v=y.x,m=y.y,y=Be(v,m,s,s,0,-180),b.push(y.svg),b.push("Z"),v=p,m=o,b.push(`M${v},${m}`),y=Be(v,m,a,a,90,-270),b.push(y.svg),v=y.x,m=y.y,y=Be(v,m,s,s,180,-180),b.push(y.svg),b.push("Z");let x=[];return v=0,m=l,x.push(`M${v},${m}`),y=Be(v,m,a,a,180,90),x.push(y.svg),v=y.x,m=y.y,x.push(`L${h},${o}`),x.push(`L${h},${a}`),v=h,m=a,y=Be(v,m,a,a,180,180),x.push(y.svg),v=y.x,m=y.y,x.push(`L${e},${f}`),v=e,m=f,y=Be(v,m,a,a,0,90),x.push(y.svg),v=y.x,m=y.y,x.push(`L${o},${u}`),x.push(`L${o},${d}`),v=o,m=d,y=Be(v,m,a,a,0,180),x.push(y.svg),x.push("Z"),x.push(`M${h},${o}`),x.push(`L${p},${o}`),v=p,m=o,y=Be(v,m,a,a,90,-90),x.push(y.svg),x.push(`M${p},${o}`),x.push(`L${p},${a}`),v=p,m=a,y=Be(v,m,s,s,0,180),x.push(y.svg),x.push(`M${a},${c}`),x.push(`L${a},${l}`),v=a,m=l,y=Be(v,m,s,s,180,180),x.push(y.svg),v=y.x,m=y.y,y=Be(v,m,a,a,0,180),x.push(y.svg),x.push(`M${o},${l}`),x.push(`L${o},${u}`),[{d:g.join(" "),fill:"norm",stroke:!1},{d:b.join(" "),fill:"darkenLess",stroke:!1},{d:x.join(" "),fill:"none",stroke:!0}]});kt.set("verticalscroll",(e,t,n)=>{let i=n?.get("adj")??12500,r=Math.min(Math.max(i,0),25e3),o=Math.min(e,t)*r/1e5,a=o/2,s=o/4,l=o+a,c=o+o,u=e-o,d=e-a,f=t-o,h=t-a,p=[],g,v;g=a,v=t,p.push(`M${g},${v}`);let m=Be(g,v,a,a,90,-90);p.push(m.svg),g=m.x,v=m.y,p.push(`L${a},${h}`),g=a,v=h,m=Be(g,v,s,s,90,-180),p.push(m.svg),g=m.x,v=m.y,p.push(`L${o},${f}`),p.push(`L${o},${a}`),g=o,v=a,m=Be(g,v,a,a,180,90),p.push(m.svg),g=m.x,v=m.y,p.push(`L${d},0`),g=d,v=0,m=Be(g,v,a,a,270,180),p.push(m.svg),g=m.x,v=m.y,p.push(`L${u},${o}`),p.push(`L${u},${h}`),g=u,v=h,m=Be(g,v,a,a,0,90),p.push(m.svg),p.push("Z"),g=c,v=a,p.push(`M${g},${v}`),m=Be(g,v,a,a,0,90),p.push(m.svg),g=m.x,v=m.y,m=Be(g,v,s,s,90,180),p.push(m.svg),p.push("Z");let y=[];g=c,v=a,y.push(`M${g},${v}`),m=Be(g,v,a,a,0,90),y.push(m.svg),g=m.x,v=m.y,m=Be(g,v,s,s,90,180),y.push(m.svg),y.push("Z"),g=o,v=h,y.push(`M${g},${v}`),m=Be(g,v,a,a,0,270),y.push(m.svg),g=m.x,v=m.y,m=Be(g,v,s,s,270,180),y.push(m.svg),y.push("Z");let b=[];return g=o,v=f,b.push(`M${g},${v}`),b.push(`L${o},${a}`),g=o,v=a,m=Be(g,v,a,a,180,90),b.push(m.svg),g=m.x,v=m.y,b.push(`L${d},0`),g=d,v=0,m=Be(g,v,a,a,270,180),b.push(m.svg),g=m.x,v=m.y,b.push(`L${u},${o}`),b.push(`L${u},${h}`),g=u,v=h,m=Be(g,v,a,a,0,90),b.push(m.svg),g=m.x,v=m.y,b.push(`L${a},${t}`),g=a,v=t,m=Be(g,v,a,a,90,180),b.push(m.svg),b.push("Z"),b.push(`M${l},0`),g=l,v=0,m=Be(g,v,a,a,270,180),b.push(m.svg),g=m.x,v=m.y,m=Be(g,v,s,s,90,180),b.push(m.svg),g=m.x,v=m.y,b.push(`L${c},${a}`),b.push(`M${u},${o}`),b.push(`L${l},${o}`),b.push(`M${a},${f}`),g=a,v=f,m=Be(g,v,s,s,270,180),b.push(m.svg),g=m.x,v=m.y,b.push(`L${o},${h}`),b.push(`M${a},${t}`),g=a,v=t,m=Be(g,v,a,a,90,-90),b.push(m.svg),g=m.x,v=m.y,b.push(`L${o},${f}`),[{d:p.join(" "),fill:"norm",stroke:!1},{d:y.join(" "),fill:"darkenLess",stroke:!1},{d:b.join(" "),fill:"none",stroke:!0}]});function Ige(e,t,n,i){let r=e.toLowerCase(),o=kt.get(r)??kt.get(e);return o?o(t,n,i):null}function r4(e,t,n,i){if(e==="textNoShape"||e.toLowerCase()==="textnoshape")return"";let r=e.toLowerCase(),o=oe.get(r)??oe.get(e);return o?o(t,n,i):(console.warn(`Unknown preset shape: "${e}", falling back to rectangle`),`M0,0 L${t},0 L${t},${n} L0,${n} Z`)}var Rge=1e5;function Lge(e,t,n,i,r){if(!e||!i&&!r)return e;let o=Sx(e);if(!o)return e;let a=[],s=0,l=u=>{if(s+u>o.length)return null;let d=o.slice(s,s+u).map(Number);return d.some(f=>!Number.isFinite(f))?null:(s+=u,d)},c=(u,d)=>{let f=i?t-u:u,h=r?n-d:d;return`${Bd(f)},${Bd(h)}`};for(;s<o.length;){let u=o[s++];if(u==="Z"||u==="z"){a.push("Z");continue}let d=u==="C"?6:u==="Q"?4:u==="A"?7:2;if(u!=="M"&&u!=="L"&&u!=="C"&&u!=="Q"&&u!=="A")return e;let f=l(d);if(!f)return e;if(u==="M"||u==="L")a.push(`${u}${c(f[0],f[1])}`);else if(u==="C")a.push(`C${c(f[0],f[1])} ${c(f[2],f[3])} ${c(f[4],f[5])}`);else if(u==="Q")a.push(`Q${c(f[0],f[1])} ${c(f[2],f[3])}`);else{let[h,p,g,v,m,y,b]=f,x=i!==r?m?0:1:m,_=i?t-y:y,S=r?n-b:b;a.push(`A${Bd(h)},${Bd(p)} ${Bd(i!==r?-g:g)} ${v},${x} ${Bd(_)},${Bd(S)}`)}}return a.join(" ")}function Sx(e,t=Rge){if(!e||e.length>t)return null;let n=[],i=0;for(;i<e.length;){let r=e.charCodeAt(i);if(Pge(r)){i++;continue}if(jge(r)){n.push(e[i++]);continue}let o=Nge(e,i);if(o>i){n.push(e.slice(i,o)),i=o;continue}i++}return n}function gK(e){let t=Sx(e);if(!t||t.length!==6||t[0]!=="M"||t[3]!=="L")return null;let n=ys(t,1),i=ys(t,4);return n&&i?{start:n,end:i}:null}function Ege(e){let t=Sx(e);if(!t||t.length<3||t[0]!=="M")return null;let n=[],i=1,r=ys(t,i);if(!r)return null;for(n.push(r),i+=2;i<t.length;){if(t[i++]!=="L")return null;let o=ys(t,i);if(!o)return null;n.push(o),i+=2}return n.length>=2?n:null}function Dge(e){let t=Sx(e);if(!t||t.length<8||t[0]!=="M")return null;let n=ys(t,1);if(!n)return null;let i=[],r=3;for(;r<t.length;){if(t[r++]!=="C")return null;let o=ys(t,r),a=ys(t,r+2),s=ys(t,r+4);if(!o||!a||!s)return null;i.push({c1:o,c2:a,end:s}),r+=6}return i.length>0?{start:n,segments:i}:null}function Oge(e){let t=Sx(e);if(!t||t.length!==11||t[0]!=="M"||t[3]!=="A")return null;let n=ys(t,1),i=Number(t[4]),r=Number(t[5]),o=Number(t[6]),a=Number(t[7])?1:0,s=Number(t[8])?1:0,l=ys(t,9);return!n||!l||!Number.isFinite(i)||!Number.isFinite(r)||!Number.isFinite(o)?null:{start:n,arc:{rx:i,ry:r,xAxisRotation:o,largeArc:a,sweep:s,end:l}}}function ys(e,t){if(t+1>=e.length)return null;let n=Number(e[t]),i=Number(e[t+1]);return!Number.isFinite(n)||!Number.isFinite(i)?null:{x:n,y:i}}function Bd(e){return Number.isInteger(e)?String(e):String(Number(e.toFixed(6)))}function Nge(e,t){let n=t;(e[n]==="-"||e[n]==="+")&&n++;let i=0;for(;bD(e.charCodeAt(n));)n++,i++;if(e[n]===".")for(n++;bD(e.charCodeAt(n));)n++,i++;if(i===0)return t;if(e[n]==="e"||e[n]==="E"){let r=n;n++,(e[n]==="-"||e[n]==="+")&&n++;let o=0;for(;bD(e.charCodeAt(n));)n++,o++;if(o===0)return r}return n}function Pge(e){return e===44||e===32||e===9||e===10||e===13||e===12}function bD(e){return e>=48&&e<=57}function jge(e){return e>=65&&e<=90||e>=97&&e<=122}function Uge(e){for(let t of e.paragraphs)for(let n of t.runs)if(n.text!=null&&n.text.trim().length>0)return!0;return!1}function xD(e){let t=0;for(let n of e.paragraphs)if(n.runs.some(i=>i.text!=null&&i.text.length>0)&&(t++,t>1||n.runs.some(i=>i.text===`
`)))return!1;return t===1}function Bge(e){let t=e.paragraphs.filter(n=>n.runs.some(i=>i.text!=null&&i.text.length>0));return t.length===0?!1:t.every(n=>{var i;return((i=n.properties)==null?void 0:i.attr("algn"))==="ctr"})}var vK=36;function yK(e){let t=e.paragraphs.flatMap(n=>n.runs.map(i=>i.text??"")).join("").replace(/\s+/g,"");return Array.from(t).length}function Fge(e){let t=yK(e);return t>0&&t<=vK}function qge(e){return e.paragraphs.filter(t=>t.runs.some(n=>n.text!=null&&n.text.length>0)).length}function Vge(e){return e.paragraphs.some(t=>{let n=t.properties;return n?.child("lnSpc").exists()||n?.child("spcBef").exists()||n?.child("spcAft").exists()})}function Hge(e,t){var n,i;let r=[t.properties,(n=e.listStyle)==null?void 0:n.child(`lvl${t.level+1}pPr`),(i=e.listStyle)==null?void 0:i.child("defPPr")];for(let o of r)if(o!=null&&o.exists()){if(o.child("buNone").exists())return!1;if(o.child("buChar").exists()||o.child("buAutoNum").exists()||o.child("buBlip").exists())return!0}return!1}function Zge(e){return e.paragraphs.some(t=>t.runs.some(n=>n.text!=null&&n.text.length>0)&&Hge(e,t))}function Gge(e){return e?.type==="title"||e?.type==="ctrTitle"}function _D(e,t){e.style.transform=`${e.style.transform||""} ${t}`.trim()}function bK(e,t){let n=e.style.filter.trim();e.style.filter=n?`${n} ${t}`:t}function ir(e){return Number.isInteger(e)?String(e):String(Number(e.toFixed(6)))}function Wge(e,t){let n=De(e.numAttr("rad")??0);if(!(n>0))return;let{color:i,alpha:r}=on(e,t);if(!i||r<=0)return;let o=i.startsWith("#")?i:`#${i}`,{r:a,g:s,b:l}=Gt(o);return`drop-shadow(0px 0px ${n.toFixed(1)}px rgba(${a},${s},${l},${r.toFixed(3)}))`}function Yge(e,t,n){let i=Wge(t,n);i&&bK(e,i)}function UZ(e,t){return Ime(e,t)}function Sw(e,t,n=!1,i="vertical-rl"){e.style.writingMode=i,e.style.justifyContent="center",e.style.alignItems=t==="b"?"flex-end":t==="ctr"?"center":"flex-start",n&&(e.style.textOrientation="upright",e.style.whiteSpace="normal")}var Xge=1.1,Kge=1.25,SD=1,Jge=.9,Qge=.9;function eve(e){var t;let n=(t=e.bodyProperties)==null?void 0:t.child("prstTxWarp"),i=n?.attr("prst");return i==="textArchDown"||i==="textArchUp"?i:null}function tve(e){let t="",n=0;for(let i of e.paragraphs){let r=i.runs.filter(o=>o.text!=null&&o.text.length>0);if(r.length!==0){if(n++,n>1||r.some(o=>o.text===`
`))return null;t+=r.map(o=>o.text).join("")}}return t.length>0?t:null}function nve(e){for(let t of e.paragraphs)for(let n of t.runs)if(n.text!=null&&n.text.length>0)return n.properties}function ive(e,t,n){let i=Math.min(Math.max(t*.04,4),18),r=i,o=Math.max(r,t-i);if(e==="textArchDown"){let s=n*.36;return`M${r},${s} Q${t/2},${n*.9} ${o},${s}`}let a=n*.66;return`M${r},${a} Q${t/2},${n*.08} ${o},${a}`}function rve(e,t){if(!e.textBody)return null;let n=eve(e.textBody);if(!n)return null;let i=tve(e.textBody);if(!i)return null;let r=nve(e.textBody),o=r?.numAttr("sz")!==void 0?r.numAttr("sz")/100:12,a=Tm([r?.child("latin").attr("typeface"),r?.child("ea").attr("typeface"),r?.child("cs").attr("typeface")],t,[r?.attr("lang"),r?.attr("altLang")]),s=yr(r?.attr("b"))?"bold":void 0,l=r?.child("solidFill"),c=l!=null&&l.exists()?gr(l,t):"#000000",u="http://www.w3.org/2000/svg",d=document.createElementNS(u,"svg");d.setAttribute("viewBox",`0 0 ${e.size.w} ${e.size.h}`),d.setAttribute("width",String(e.size.w)),d.setAttribute("height",String(e.size.h)),d.style.position="absolute",d.style.left="0",d.style.top="0",d.style.overflow="visible";let f=document.createElementNS(u,"defs"),h=document.createElementNS(u,"path"),p=`text-warp-${++Qo}`;h.setAttribute("id",p),h.setAttribute("d",ive(n,e.size.w,e.size.h)),h.setAttribute("fill","none"),f.appendChild(h),d.appendChild(f);let g=document.createElementNS(u,"text");g.setAttribute("font-size",`${o}pt`),a.length>0&&g.setAttribute("font-family",Am(a)),s&&g.setAttribute("font-weight",s),g.setAttribute("fill",c),g.setAttribute("dominant-baseline","middle");let v=document.createElementNS(u,"textPath");return v.setAttribute("href",`#${p}`),v.setAttribute("startOffset","50%"),v.setAttribute("text-anchor","middle"),v.setAttribute("xml:space","preserve"),v.textContent=i,g.appendChild(v),d.appendChild(g),d}function ove(e,t){let n=e.child("blip"),i=n.attr("embed")??n.attr("r:embed"),r=n.attr("link")??n.attr("r:link"),o=i??r;if(!o)return null;let a=t.slide.rels.get(o);if(!a)return null;if(Rs(a.targetMode))return Wm(a.target)?a.target:null;let s=Hm(a.target,t.presentation.media);if(!s)return null;let{mediaPath:l,data:c}=s;return kh(l,c,t.mediaUrlCache)}async function ave(e,t){let n=e.child("blip"),i=n.attr("embed")??n.attr("r:embed"),r=n.attr("link")??n.attr("r:link"),o=i??r;if(!o)return null;let a=t.slide.rels.get(o);if(!a)return null;if(Rs(a.targetMode))return Wm(a.target)?a.target:null;let s=await W5(a.target,t.presentation.media,t.presentation.mediaResolver);if(!s)return null;let{mediaPath:l,data:c}=s;return kh(l,c,t.mediaUrlCache)}function $w(e,t){return(e.numAttr(t)??0)/1e3}function sve(e,t){let n=e.child("stretch");if(!n.exists())return{x:0,y:0,w:t.w,h:t.h,preserveAspectRatio:"xMidYMid slice"};let i=n.child("fillRect"),r=i.exists()?$w(i,"l"):0,o=i.exists()?$w(i,"t"):0,a=i.exists()?$w(i,"r"):0,s=i.exists()?$w(i,"b"):0;return{x:t.w*(r/100),y:t.h*(o/100),w:t.w*((100-r-a)/100),h:t.h*((100-o-s)/100),preserveAspectRatio:"none"}}function BZ(e,t,n,i,r,o,a,s){let l=`shape-clip-${++Qo}`,c=document.createElementNS(e,"clipPath");c.setAttribute("id",l);let u=document.createElementNS(e,"path");u.setAttribute("d",r),c.appendChild(u),n.appendChild(c);let d=document.createElementNS(e,"image"),f=sve(i,o);d.setAttributeNS("http://www.w3.org/1999/xlink","href",a),d.setAttribute("x",String(f.x)),d.setAttribute("y",String(f.y)),d.setAttribute("width",String(f.w)),d.setAttribute("height",String(f.h)),d.setAttribute("clip-path",`url(#${l})`),d.setAttribute("preserveAspectRatio",f.preserveAspectRatio),n.parentNode||t.appendChild(n),s?.parentNode===t?t.insertBefore(d,s):t.appendChild(d)}var lve=0,Qo=0;function FZ(e,t,n,i,r){let o=`shape-shadow-${++Qo}`,a=document.createElementNS(e,"filter"),s=Math.max(Math.abs(r.dx),Math.abs(r.dy))+r.blur*4+4;a.setAttribute("id",o),a.setAttribute("filterUnits","userSpaceOnUse"),a.setAttribute("x",String(-s)),a.setAttribute("y",String(-s)),a.setAttribute("width",String(i.w+s*2)),a.setAttribute("height",String(i.h+s*2));let l=document.createElementNS(e,"feDropShadow");l.setAttribute("dx",r.dx.toFixed(1)),l.setAttribute("dy",r.dy.toFixed(1)),l.setAttribute("stdDeviation",Math.max(0,r.blur/2).toFixed(2)),l.setAttribute("flood-color",`rgb(${r.color.r},${r.color.g},${r.color.b})`),l.setAttribute("flood-opacity",r.opacity.toFixed(4)),a.appendChild(l),t.appendChild(a),!t.parentNode&&n.ownerSVGElement&&n.ownerSVGElement.insertBefore(t,n.ownerSVGElement.firstChild),n.setAttribute("filter",`url(#${o})`)}function cve(e,t,n,i,r){let o=`shape-inner-shadow-${++Qo}`,a=document.createElementNS(e,"filter"),s=Math.max(Math.abs(r.dx),Math.abs(r.dy))+r.blur*4+4;a.setAttribute("id",o),a.setAttribute("filterUnits","userSpaceOnUse"),a.setAttribute("x",String(-s)),a.setAttribute("y",String(-s)),a.setAttribute("width",String(i.w+s*2)),a.setAttribute("height",String(i.h+s*2));let l=document.createElementNS(e,"feOffset");l.setAttribute("in","SourceAlpha"),l.setAttribute("dx",r.dx.toFixed(1)),l.setAttribute("dy",r.dy.toFixed(1)),l.setAttribute("result","innerOffset"),a.appendChild(l);let c=document.createElementNS(e,"feGaussianBlur");c.setAttribute("in","innerOffset"),c.setAttribute("stdDeviation",Math.max(0,r.blur/2).toFixed(2)),c.setAttribute("result","innerBlur"),a.appendChild(c);let u=document.createElementNS(e,"feComposite");u.setAttribute("in","innerBlur"),u.setAttribute("in2","SourceAlpha"),u.setAttribute("operator","in"),u.setAttribute("result","innerMask"),a.appendChild(u);let d=document.createElementNS(e,"feFlood");d.setAttribute("flood-color",`rgb(${r.color.r},${r.color.g},${r.color.b})`),d.setAttribute("flood-opacity",r.opacity.toFixed(4)),d.setAttribute("result","innerColor"),a.appendChild(d);let f=document.createElementNS(e,"feComposite");f.setAttribute("in","innerColor"),f.setAttribute("in2","innerMask"),f.setAttribute("operator","in"),f.setAttribute("result","innerShadow"),a.appendChild(f);let h=document.createElementNS(e,"feMerge"),p=document.createElementNS(e,"feMergeNode");p.setAttribute("in","SourceGraphic");let g=document.createElementNS(e,"feMergeNode");g.setAttribute("in","innerShadow"),h.appendChild(p),h.appendChild(g),a.appendChild(h),t.appendChild(a),!t.parentNode&&n.ownerSVGElement&&n.ownerSVGElement.insertBefore(t,n.ownerSVGElement.firstChild),n.setAttribute("filter",`url(#${o})`)}function uve(e,t,n,i,r){let o=`shape-soft-edge-${++Qo}`,a=document.createElementNS(e,"filter"),s=Math.max(r*4+4,i.w,i.h);a.setAttribute("id",o),a.setAttribute("filterUnits","userSpaceOnUse"),a.setAttribute("x",String(-s)),a.setAttribute("y",String(-s)),a.setAttribute("width",String(i.w+s*2)),a.setAttribute("height",String(i.h+s*2));let l=document.createElementNS(e,"feGaussianBlur");l.setAttribute("in","SourceGraphic"),l.setAttribute("stdDeviation",Math.max(0,r/2).toFixed(2)),a.appendChild(l),t.appendChild(a),!t.parentNode&&n.ownerSVGElement&&n.ownerSVGElement.insertBefore(t,n.ownerSVGElement.firstChild);let c=n.parentNode;if(!c)return;let u=document.createElementNS(e,"g");u.setAttribute("filter",`url(#${o})`),c.insertBefore(u,n),u.appendChild(n)}function qZ(e,t){let n=Math.max(t,1);switch(e){case"dot":case"sysDot":return`${n},${n*2}`;case"dash":case"sysDash":return`${n*4},${n*2}`;case"lgDash":return`${n*8},${n*3}`;case"dashDot":case"sysDashDot":return`${n*4},${n*2},${n},${n*2}`;case"lgDashDot":return`${n*8},${n*3},${n},${n*3}`;case"lgDashDotDot":case"sysDashDotDot":return`${n*8},${n*3},${n},${n*2},${n},${n*2}`;default:return null}}function dve(e,t,n,i){if(!n.exists())return null;let r=n.attr("prst")??"solid";if(r==="solid"||r==="solidDmnd")return null;let o=8,a=1,s=n.child("fgClr"),l=n.child("bgClr"),c=s.exists()?gr(s,i):"#000000",u=l.exists()?gr(l,i):"#ffffff",d=`shape-pattern-${++Qo}`,f=document.createElementNS(e,"pattern");f.setAttribute("id",d),f.setAttribute("patternUnits","userSpaceOnUse"),f.setAttribute("width",String(o)),f.setAttribute("height",String(o));let h=document.createElementNS(e,"rect");h.setAttribute("width",String(o)),h.setAttribute("height",String(o)),h.setAttribute("fill",u),f.appendChild(h);let p=!1,g=(_,S,$,C,w)=>{let z=document.createElementNS(e,"line");z.setAttribute("x1",String(_)),z.setAttribute("y1",String(S)),z.setAttribute("x2",String($)),z.setAttribute("y2",String(C)),z.setAttribute("stroke",c),z.setAttribute("stroke-width",String(a)),w&&z.setAttribute("stroke-dasharray",w),f.appendChild(z),p=!0},v=(_,S,$)=>{let C=document.createElementNS(e,"circle");C.setAttribute("cx",String(_)),C.setAttribute("cy",String(S)),C.setAttribute("r",String($)),C.setAttribute("fill",c),f.appendChild(C),p=!0},m=a/2,y=a,b=`${a*3},${a*2}`,x=0;switch(r){case"pct5":case"pct10":case"pct20":case"pct25":v(o/2,o/2,y*.75);break;case"pct30":case"pct40":case"pct50":case"dotGrid":case"dotDmnd":v(o/2,o/2,y);break;case"pct60":case"pct70":case"pct75":case"pct80":case"pct90":case"sphere":case"shingle":case"plaid":case"divot":case"zigZag":v(o/2,o/2,y*1.5);break;case"horz":case"ltHorz":case"narHorz":case"dkHorz":g(0,m,o,m);break;case"vert":case"ltVert":case"narVert":case"dkVert":g(m,0,m,o);break;case"dnDiag":case"ltDnDiag":case"narDnDiag":case"dkDnDiag":case"wdDnDiag":g(0,o,o,0);break;case"upDiag":case"ltUpDiag":case"narUpDiag":case"dkUpDiag":case"wdUpDiag":g(0,0,o,o);break;case"smGrid":case"lgGrid":case"cross":x=-3,g(0,m,o,m),g(m,0,m,o);break;case"smCheck":case"lgCheck":case"diagCross":case"openDmnd":case"trellis":case"weave":g(0,o,o,0),g(0,0,o,o);break;case"dashHorz":g(0,m,o,m,b);break;case"dashVert":g(m,0,m,o,b);break;case"dashDnDiag":g(0,o,o,0,b);break;case"dashUpDiag":g(0,0,o,o,b);break;default:return null}return p?(x!==0&&f.setAttribute("y",String(x)),t.appendChild(f),d):null}function VZ(e){if(!e)return null;let t=e.trim();if(t.startsWith("#"))return Gt(t);let n=t.match(/rgba?\(([^)]+)\)/i);if(!n)return null;let i=n[1].split(",").map(r=>Number.parseFloat(r.trim()));return i.length<3||i.some(r=>Number.isNaN(r))?null:{r:Math.max(0,Math.min(255,i[0])),g:Math.max(0,Math.min(255,i[1])),b:Math.max(0,Math.min(255,i[2]))}}function Jp(e,t,n){let i=Math.max(0,Math.min(1,n));return qn(e.r+(t.r-e.r)*i,e.g+(t.g-e.g)*i,e.b+(t.b-e.b)*i)}function ww(e){let t=e*Math.PI/180,n=Math.round(50+50*Math.cos(t)),i=Math.round(50+50*Math.sin(t)),r=Math.round(50-50*Math.cos(t)),o=Math.round(50-50*Math.sin(t));return{x1:`${r}%`,y1:`${o}%`,x2:`${n}%`,y2:`${i}%`}}function HZ(e){switch(e){case"sm":return .5;case"lg":return 1.5;default:return 1}}function o4(e,t){let n=HZ(e.w),i=HZ(e.len),r=Math.max(t*3,10),o=Math.max(t*2.5,7.5);return{markerW:r*i,markerH:o*n}}function hve(e,t){return e.type!=="triangle"&&e.type!=="arrow"&&e.type!=="stealth"?0:o4(e,t).markerW}function fve(e,t){return e.type!=="triangle"&&e.type!=="arrow"&&e.type!=="stealth"?0:o4(e,t).markerW}function ZZ(e){if(!e)return!0;let t=e.trim().toLowerCase();if(t==="transparent")return!0;let n=t.match(/^rgba\([^,]+,[^,]+,[^,]+,\s*([0-9.]+)\)$/);return n?Number(n[1])<=.001:!1}function GZ(e,t,n){var i,r;if(e.length===0)return n;let o=t==="start"?0:e.length-1,a=t==="start"?1:-1,s=(i=e[o])==null?void 0:i.color;if(s&&!ZZ(s))return s;for(let l=o;l>=0&&l<e.length;l+=a){let c=(r=e[l])==null?void 0:r.color;if(c&&!ZZ(c))return c}return s||n}function Ni(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function pve(e,t,n,i,r){let o=Ni(e,t,r),a=Ni(t,n,r),s=Ni(n,i,r),l=Ni(o,a,r),c=Ni(a,s,r);return Ni(l,c,r)}function Kk(e,t,n,i,r){let o=0,a=e;for(let s=1;s<=24;s++){let l=pve(e,t,n,i,r*s/24);o+=Math.hypot(l.x-a.x,l.y-a.y),a=l}return o}function xK(e){return Dge(e)}function _K(e,t){let n=[`M${ir(e.x)},${ir(e.y)}`];for(let i of t)n.push([`C${ir(i.c1.x)},${ir(i.c1.y)}`,`${ir(i.c2.x)},${ir(i.c2.y)}`,`${ir(i.end.x)},${ir(i.end.y)}`].join(" "));return n.join(" ")}function SK(e){return Oge(e)}function mve(e,t,n,i){let r=e*n+t*i,o=Math.hypot(e,t)*Math.hypot(n,i),a=Math.acos(Math.min(1,Math.max(-1,o>0?r/o:1)));return e*i-t*n<0?-a:a}function $K(e,t){if(t.xAxisRotation!==0)return null;let n=Math.abs(t.rx),i=Math.abs(t.ry);if(!(n>0)||!(i>0))return null;let r=(e.x-t.end.x)/2,o=(e.y-t.end.y)/2,a=r*r/(n*n)+o*o/(i*i);if(a>1){let S=Math.sqrt(a);n*=S,i*=S}let s=n*n,l=i*i,c=r*r,u=o*o,d=s*u+l*c;if(!(d>0))return null;let f=(t.largeArc===t.sweep?-1:1)*Math.sqrt(Math.max(0,(s*l-s*u-l*c)/d)),h=f*n*o/i,p=-f*i*r/n,g={x:(e.x+t.end.x)/2+h,y:(e.y+t.end.y)/2+p},v=(r-h)/n,m=(o-p)/i,y=(-r-h)/n,b=(-o-p)/i,x=Math.atan2(m,v),_=mve(v,m,y,b);return t.sweep===0&&_>0&&(_-=Math.PI*2),t.sweep===1&&_<0&&(_+=Math.PI*2),{center:g,rx:n,ry:i,startAngle:x,deltaAngle:_,xAxisRotation:t.xAxisRotation,sweep:t.sweep}}function Jk(e,t){let n=e.startAngle+e.deltaAngle*t;return{x:e.center.x+e.rx*Math.cos(n),y:e.center.y+e.ry*Math.sin(n)}}function Qk(e,t){let n=0,i=Jk(e,0);for(let r=1;r<=24;r++){let o=Jk(e,t*r/24);n+=Math.hypot(o.x-i.x,o.y-i.y),i=o}return n}function wK(e,t,n,i){let r=Math.abs(t.deltaAngle*n)>Math.PI?1:0;return[`M${ir(e.x)},${ir(e.y)}`,`A${ir(t.rx)},${ir(t.ry)}`,ir(t.xAxisRotation),`${r},${t.sweep}`,`${ir(i.x)},${ir(i.y)}`].join(" ")}function gve(e,t){let n=xK(e);if(!n)return e;let i=n.start,r=n.segments[0],o=r.c1,a=r.c2,s=r.end,l=Kk(i,o,a,s,1);if(!(l>0))return e;let c=Math.min(t,l*.95),u=0,d=1;for(let x=0;x<24;x++){let _=(u+d)/2;Kk(i,o,a,s,_)<c?u=_:d=_}let f=d,h=Ni(i,o,f),p=Ni(o,a,f),g=Ni(a,s,f),v=Ni(h,p,f),m=Ni(p,g,f),y=Ni(v,m,f),b=n.segments.slice();return b[0]={c1:m,c2:g,end:s},_K(y,b)}function vve(e,t){let n=SK(e);if(!n)return null;let i=$K(n.start,n.arc);if(!i)return null;let r=Qk(i,1);if(!(r>0))return null;let o=Math.min(t,r*.95),a=0,s=1;for(let c=0;c<24;c++){let u=(a+s)/2;Qk(i,u)<o?a=u:s=u}let l=s;return wK(Jk(i,l),i,1-l,n.arc.end)}function yve(e,t){let n=xK(e);if(!n)return null;let i=n.segments.length-1,r=i===0?n.start:n.segments[i-1].end,o=n.segments[i],a=Kk(r,o.c1,o.c2,o.end,1);if(!(a>0))return null;let s=a-Math.min(t,a*.95),l=0,c=1;for(let m=0;m<24;m++){let y=(l+c)/2;Kk(r,o.c1,o.c2,o.end,y)<s?l=y:c=y}let u=c,d=Ni(r,o.c1,u),f=Ni(o.c1,o.c2,u),h=Ni(o.c2,o.end,u),p=Ni(d,f,u),g=Ni(p,Ni(f,h,u),u),v=n.segments.slice();return v[i]={c1:d,c2:p,end:g},_K(n.start,v)}function bve(e,t){let n=SK(e);if(!n)return null;let i=$K(n.start,n.arc);if(!i)return null;let r=Qk(i,1);if(!(r>0))return null;let o=r-Math.min(t,r*.95),a=0,s=1;for(let c=0;c<24;c++){let u=(a+s)/2;Qk(i,u)<o?a=u:s=u}let l=s;return wK(n.start,i,l,Jk(i,l))}function xve(e,t){if(!(t>0))return e;let n=gK(e);if(!n)return Sve(e,t)??vve(e,t)??gve(e,t);let i=n.start.x,r=n.start.y,o=n.end.x,a=n.end.y,s=o-i,l=a-r,c=Math.hypot(s,l);if(!(c>0))return e;let u=Math.min(t,c*.95),d=i+s/c*u,f=r+l/c*u;return`M${d},${f} L${o},${a}`}function _ve(e,t){if(!(t>0))return e;let n=gK(e);if(!n)return $ve(e,t)??yve(e,t)??bve(e,t)??e;let i=n.start.x,r=n.start.y,o=n.end.x,a=n.end.y,s=o-i,l=a-r,c=Math.hypot(s,l);if(!(c>0))return e;let u=Math.min(t,c*.95),d=o-s/c*u,f=a-l/c*u;return`M${i},${r} L${d},${f}`}function a4(e){return Ege(e)}function s4(e){return e.map((t,n)=>`${n===0?"M":"L"}${ir(t.x)},${ir(t.y)}`).join(" ")}function kw(e,t){return Math.hypot(t.x-e.x,t.y-e.y)}function Sve(e,t){let n=a4(e);if(!n||n.length<3)return null;let i=n[0],r=n[1],o=r.x-i.x,a=r.y-i.y,s=Math.hypot(o,a);if(!(s>t))return null;let l={x:i.x+o/s*t,y:i.y+a/s*t};return s4([l,...n.slice(1)])}function $ve(e,t){let n=a4(e);if(!n||n.length<3)return null;let i=n[n.length-1],r=n[n.length-2],o=i.x-r.x,a=i.y-r.y,s=Math.hypot(o,a);if(!(s>t))return null;let l={x:i.x-o/s*t,y:i.y-a/s*t};return s4([...n.slice(0,-1),l])}var wve=2,kve=4;function Mve(e,t,n,i){if(!n&&!i)return e;let r=a4(e);if(!r||r.length<3)return e;let o=Math.min(Math.max(wve,t*1.5),kve),a=r.slice();if(n&&a.length>=3){let s=kw(a[0],a[1]),l=kw(a[1],a[2]);s<=o&&l>o&&(a=a.slice(1))}if(i&&a.length>=3){let s=a.length-1,l=kw(a[s-1],a[s]),c=kw(a[s-2],a[s-1]);l<=o&&c>o&&(a=a.slice(0,-1))}return a.length===r.length?e:s4(a)}function WZ(e,t,n,i,r){let o=document.createElementNS(e,"marker"),a=`arrow-marker-${++lve}`;o.setAttribute("id",a),o.setAttribute("markerUnits","userSpaceOnUse"),o.setAttribute("orient","auto");let{markerW:s,markerH:l}=o4(t,i);switch(t.type){case"triangle":case"arrow":{o.setAttribute("viewBox","0 0 10 10"),o.setAttribute("refX",r?"10":"0"),o.setAttribute("refY","5"),o.setAttribute("markerWidth",String(s)),o.setAttribute("markerHeight",String(l));let c=document.createElementNS(e,"polygon");r?c.setAttribute("points","0,5 10,0 10,10"):c.setAttribute("points","10,5 0,0 0,10"),c.setAttribute("fill",n),o.appendChild(c);break}case"stealth":{o.setAttribute("viewBox","0 0 10 10"),o.setAttribute("refX",r?"10":"0"),o.setAttribute("refY","5"),o.setAttribute("markerWidth",String(s)),o.setAttribute("markerHeight",String(l));let c=document.createElementNS(e,"path");r?c.setAttribute("d","M0,5 L10,0 L7,5 L10,10 Z"):c.setAttribute("d","M10,5 L0,0 L3,5 L0,10 Z"),c.setAttribute("fill",n),o.appendChild(c);break}case"diamond":{o.setAttribute("viewBox","0 0 10 10"),o.setAttribute("refX","5"),o.setAttribute("refY","5"),o.setAttribute("markerWidth",String(s)),o.setAttribute("markerHeight",String(l));let c=document.createElementNS(e,"polygon");c.setAttribute("points","5,0 10,5 5,10 0,5"),c.setAttribute("fill",n),o.appendChild(c);break}case"oval":{o.setAttribute("viewBox","0 0 10 10"),o.setAttribute("refX","5"),o.setAttribute("refY","5"),o.setAttribute("markerWidth",String(s)),o.setAttribute("markerHeight",String(l));let c=document.createElementNS(e,"circle");c.setAttribute("cx","5"),c.setAttribute("cy","5"),c.setAttribute("r","4"),c.setAttribute("fill",n),o.appendChild(c);break}default:return null}return o._markerId=a,o}function Cve(e){let t={},n=e.child("headEnd");if(n.exists()){let r=n.attr("type");r&&r!=="none"&&(t.headEnd={type:r,w:n.attr("w"),len:n.attr("len")})}let i=e.child("tailEnd");if(i.exists()){let r=i.attr("type");r&&r!=="none"&&(t.tailEnd={type:r,w:i.attr("w"),len:i.attr("len")})}return t}var YZ=new WeakMap;function zve(e){return!e||e.size===0?"":Array.from(e.entries()).sort(([t],[n])=>t.localeCompare(n)).map(([t,n])=>`${t}:${n}`).join("|")}function Tve(e,t,n,i){var r;let o=zve(e.adjustments),a=YZ.get(e);if(a&&a.effectivePreset===t&&a.w===n&&a.h===i&&a.adjustmentKey===o)return{pathD:a.pathD,multiPaths:a.multiPaths};let s=Ige(t,n,i,e.adjustments),l=s?((r=s[0])==null?void 0:r.d)??"":r4(t,n,i,e.adjustments);return YZ.set(e,{effectivePreset:t,w:n,h:i,adjustmentKey:o,pathD:l,multiPaths:s}),{pathD:l,multiPaths:s}}function Ave(e,t){var n,i,r,o,a,s,l,c,u,d,f,h,p,g,v,m,y,b,x,_;let S=document.createElement("div");S.style.position="absolute",S.style.left=`${e.position.x}px`,S.style.top=`${e.position.y}px`,S.style.width=`${e.size.w}px`;let $=((n=e.presetGeometry)==null?void 0:n.toLowerCase())??"",C=new Set(["arc"]),w=!!$&&($==="line"||$==="lineinv"||$.startsWith("straightconnector")||$.startsWith("bentconnector")||$.startsWith("curvedconnector")||C.has($)),z=e.source.localName==="cxnSp",A=e.size.w>0&&e.size.h<1||e.size.w<1&&e.size.h>0,M=w||z||A,T=M&&e.size.h<1?1:e.size.h,k=M&&e.size.w<1?1:e.size.w;S.style.height=`${T}px`,e.size.w===0&&(S.style.width=`${k}px`),S.style.overflow="visible";let I=[];e.rotation!==0&&I.push(`rotate(${e.rotation}deg)`),e.flipH&&!M&&I.push("scaleX(-1)"),e.flipV&&!M&&I.push("scaleY(-1)"),I.length>0&&(S.style.transform=I.join(" "));let D=e.size.w,E=e.size.h,N=D,F=E,G=e.source.child("style"),P=G.exists()?G.child("lnRef"):void 0,O=G.exists()?G.child("fillRef"):void 0,V="",j=null;if(e.presetGeometry){let X=e.presetGeometry;z&&X==="line"&&(X="straightConnector1");let K=Tve(e,X,N,F);V=K.pathD,j=K.multiPaths}else if(e.customGeometry){let X=e.source.child("spPr").child("xfrm").child("ext"),K={w:X.numAttr("cx")??0,h:X.numAttr("cy")??0};V=uK(e.customGeometry,N,F,K)}!V&&M&&((i=e.line)!=null&&i.exists()||P!=null&&P.exists()&&(P.numAttr("idx")??0)>0&&(((r=t.theme.lineStyles)==null?void 0:r.length)??0)>=(P.numAttr("idx")??0))&&(V=r4(z?"straightConnector1":"line",N,F,void 0)),V&&M&&(e.flipH||e.flipV)&&(V=Lge(V,N,F,e.flipH,e.flipV));let H=e.source.child("spPr"),Q="",le=e.fill?eK(H,t):null;if(e.fill&&e.fill.exists()){if(e.fill.localName==="solidFill"){let X=e.fill.child("srgbClr").exists()?e.fill.child("srgbClr"):e.fill.child("schemeClr").exists()?e.fill.child("schemeClr"):e.fill.child("scrgbClr").exists()?e.fill.child("scrgbClr"):e.fill.child("sysClr").exists()?e.fill.child("sysClr"):void 0;X!=null&&X.exists()&&(Q=gr(X,t))}Q||(Q=Ul(H,t))}if(!Q){let X=H.child("solidFill");if(X.exists()){let K=X.child("srgbClr").exists()?X.child("srgbClr"):X.child("schemeClr").exists()?X.child("schemeClr"):X.child("scrgbClr").exists()?X.child("scrgbClr"):X.child("sysClr").exists()?X.child("sysClr"):void 0;K!=null&&K.exists()&&(Q=gr(K,t))}}if(!Q&&O&&O.exists()&&(O.numAttr("idx")??0)>0){let X=J5(O,t);Q=X.fillCss,le||(le=X.gradientFillData)}M&&(Q="",le=null);let se="none",ae=0,Se="",ve="solid",$e="",je="",R=null,ie=e.line&&e.line.child("noFill").exists(),te=e.line&&!ie,B=!te&&!ie&&P!=null&&P.exists()&&(P.numAttr("idx")??0)>0&&(((o=t.theme.lineStyles)==null?void 0:o.length)??0)>=(P.numAttr("idx")??0)?t.theme.lineStyles[(P.numAttr("idx")??1)-1]:void 0,U=te?e.line:B;if(ie&&(U=void 0),U!=null&&U.exists()){if(R=Cme(U,t),!R){let K=_x(U,t,P);se=K.color,ae=K.width,Se=K.dash,ve=K.dashKind}let X=U.attr("cap");X==="rnd"?$e="round":X==="sq"?$e="square":X==="flat"&&($e="butt"),U.child("round").exists()?je="round":U.child("bevel").exists()?je="bevel":U.child("miter").exists()&&(je="miter")}ie&&(se="none",ae=0,R=null);let W=((a=e.presetGeometry)==null?void 0:a.toLowerCase())==="circulararrow";if(W&&(se="none",ae=0,R=null,!Q)){let X=H.child("solidFill");if(X.exists()){let K=X.child("srgbClr").exists()?X.child("srgbClr"):X.child("schemeClr").exists()?X.child("schemeClr"):X.child("scrgbClr").exists()?X.child("scrgbClr"):X.child("sysClr").exists()?X.child("sysClr"):void 0;K!=null&&K.exists()&&(Q=gr(K,t))}}let ue=null,de=null,J=null,ge=null;if(V){let X="http://www.w3.org/2000/svg",K=document.createElementNS(X,"svg"),Ce=M?k:D,ye=M?T:E;K.setAttribute("viewBox",`0 0 ${Ce} ${ye}`),K.setAttribute("width",String(Ce)),K.setAttribute("height",String(ye)),K.style.position="absolute",K.style.left="0",K.style.top="0",K.style.overflow="visible";let Qe=H.child("blipFill"),mt=Qe.exists()?ove(Qe,t):null;if(mt){let et=document.createElementNS(X,"defs");BZ(X,K,et,Qe,V,{w:Ce,h:ye},mt);let Le=j&&((s=j[0])==null?void 0:s.stroke)===!1;if(!W&&!Le&&!R&&ae>0&&se!=="none"&&se!=="transparent"){let Oe=document.createElementNS(X,"path");Oe.setAttribute("d",V),Oe.setAttribute("fill","none"),Oe.setAttribute("stroke",se),Oe.setAttribute("stroke-width",String(ae)),$e&&Oe.setAttribute("stroke-linecap",$e),je&&Oe.setAttribute("stroke-linejoin",je);let ot=qZ(ve,ae);ot?Oe.setAttribute("stroke-dasharray",ot):Se==="dashed"?Oe.setAttribute("stroke-dasharray",`${ae*4},${ae*2}`):Se==="dotted"&&Oe.setAttribute("stroke-dasharray",`${ae},${ae*2}`),K.appendChild(Oe)}S.appendChild(K)}else{let et=document.createElementNS(X,"defs"),Le=document.createElementNS(X,"path");Le.setAttribute("d",V),ue=X,de=et,J=Le,ge={w:Ce,h:ye};let Oe=(l=e.presetGeometry)==null?void 0:l.toLowerCase();if(Oe==="curveduparrow"||Oe==="curveddownarrow"?(Le.setAttribute("fill-rule","evenodd"),Le.setAttribute("stroke-linejoin","round")):Oe==="funnel"&&Le.setAttribute("fill-rule","evenodd"),Q){let Ge=H.child("pattFill"),Xe=Ge.exists()?dve(X,et,Ge,t):null;if(Xe)Le.setAttribute("fill",`url(#${Xe})`);else if(le&&le.stops.length>0){let ht=`grad-fill-${++Qo}`;if(le.type==="radial"&&le.pathType==="rect"){let Re=le.cx??.5,vt=le.cy??.5,Mt=(dt,zt)=>{let Pn=nx(le,{axis:zt}),Qn=[];for(let ui of Pn){let Zn=ui.position/100,Gn=dt-Zn*dt,Wt=dt+Zn*(1-dt);Qn.push({offset:Gn,color:ui.color}),Qn.push({offset:Wt,color:ui.color})}return Qn.sort((ui,Zn)=>ui.offset-Zn.offset),Qn},Ze=`${ht}-h`,lt=document.createElementNS(X,"linearGradient");lt.setAttribute("id",Ze),lt.setAttribute("color-interpolation",le.colorInterpolation??"linearRGB"),lt.setAttribute("x1","0%"),lt.setAttribute("y1","0%"),lt.setAttribute("x2","100%"),lt.setAttribute("y2","0%");for(let dt of Mt(Re,"x")){let zt=document.createElementNS(X,"stop");zt.setAttribute("offset",`${(dt.offset*100).toFixed(2)}%`),zt.setAttribute("stop-color",dt.color),lt.appendChild(zt)}et.appendChild(lt);let bt=`${ht}-v`,it=document.createElementNS(X,"linearGradient");it.setAttribute("id",bt),it.setAttribute("color-interpolation",le.colorInterpolation??"linearRGB"),it.setAttribute("x1","0%"),it.setAttribute("y1","0%"),it.setAttribute("x2","0%"),it.setAttribute("y2","100%");for(let dt of Mt(vt,"y")){let zt=document.createElementNS(X,"stop");zt.setAttribute("offset",`${(dt.offset*100).toFixed(2)}%`),zt.setAttribute("stop-color",dt.color),it.appendChild(zt)}et.appendChild(it);let Kt=`${ht}-clip`,wt=document.createElementNS(X,"clipPath");wt.setAttribute("id",Kt);let ut=document.createElementNS(X,"path");ut.setAttribute("d",V),wt.appendChild(ut),et.appendChild(wt);let he=document.createElementNS(X,"g");he.setAttribute("clip-path",`url(#${Kt})`),he.setAttribute("style","isolation: isolate");let xe=document.createElementNS(X,"rect");xe.setAttribute("width","100%"),xe.setAttribute("height","100%"),xe.setAttribute("fill","black"),he.appendChild(xe);let tt=document.createElementNS(X,"path");tt.setAttribute("d",V),tt.setAttribute("fill",`url(#${Ze})`),tt.setAttribute("style","mix-blend-mode: lighten"),he.appendChild(tt);let qe=document.createElementNS(X,"path");qe.setAttribute("d",V),qe.setAttribute("fill",`url(#${bt})`),qe.setAttribute("style","mix-blend-mode: lighten"),he.appendChild(qe),Le.setAttribute("fill","none"),Le.__rectBlendGroup=he}else if(le.type==="radial"){let Re=document.createElementNS(X,"radialGradient");Re.setAttribute("id",ht),Re.setAttribute("color-interpolation",le.colorInterpolation??"linearRGB"),Re.setAttribute("gradientUnits","userSpaceOnUse");let vt=le.cx??.5,Mt=le.cy??.5;Re.setAttribute("cx",String(vt*Ce)),Re.setAttribute("cy",String(Mt*ye));let Ze=Math.max(vt,1-vt),lt=Math.max(Mt,1-Mt);Re.setAttribute("r",String(Math.hypot(Ze*Ce,lt*ye)));for(let bt of nx(le,{width:Ce,height:ye})){let it=document.createElementNS(X,"stop");it.setAttribute("offset",`${bt.position}%`),it.setAttribute("stop-color",bt.color),Re.appendChild(it)}et.appendChild(Re)}else{let Re=document.createElementNS(X,"linearGradient");Re.setAttribute("id",ht),Re.setAttribute("color-interpolation",le.colorInterpolation??"linearRGB"),Re.setAttribute("gradientUnits","userSpaceOnUse");let vt=ww(le.angle);Re.setAttribute("x1",String(parseFloat(vt.x1)/100*Ce)),Re.setAttribute("y1",String(parseFloat(vt.y1)/100*ye)),Re.setAttribute("x2",String(parseFloat(vt.x2)/100*Ce)),Re.setAttribute("y2",String(parseFloat(vt.y2)/100*ye));for(let Mt of le.stops){let Ze=document.createElementNS(X,"stop");Ze.setAttribute("offset",`${Mt.position}%`),Ze.setAttribute("stop-color",Mt.color),Re.appendChild(Ze)}et.appendChild(Re)}le.type==="radial"&&le.pathType==="rect"||Le.setAttribute("fill",`url(#${ht})`)}else Q==="transparent"?Le.setAttribute("fill","none"):Q.includes("gradient")?(S.style.background=Q,Le.setAttribute("fill","transparent")):Le.setAttribute("fill",Q)}else Le.setAttribute("fill","none");if(W){if(!Q||Q==="none"||Q==="transparent"){let Ge=["srgbClr","schemeClr","scrgbClr","sysClr","hslClr","prstClr"],Xe="",ht=H.child("solidFill");if(ht.exists()){for(let Re of ht.allChildren())if(Ge.includes(Re.localName)){Xe=gr(Re,t);break}}if(!Xe&&(c=e.fill)!=null&&c.exists()){for(let Re of e.fill.allChildren())if(Ge.includes(Re.localName)){Xe=gr(Re,t);break}}Xe&&Le.setAttribute("fill",Xe)}Le.setAttribute("stroke","none")}let ot=e.headEnd,$t=e.tailEnd;if((!ot||!$t)&&U!=null&&U.exists()){let Ge=Cve(U);!ot&&Ge.headEnd&&(ot=Ge.headEnd),!$t&&Ge.tailEnd&&($t=Ge.tailEnd)}let Bt=R?GZ(R.stops,"start","black"):se,sn=R?GZ(R.stops,"end",Bt):se,ct=R?R.width:ae;M&&(ot||$t)&&ct<=0&&(ct=1);let pn=M&&(ot||$t)?"butt":$e;if(M&&(ot||$t)&&ct>0&&(V=Mve(V,ct,!!ot,!!$t),Le.setAttribute("d",V)),M&&ot&&ct>0){let Ge=hve(ot,ct);Ge>0&&(V=xve(V,Ge),Le.setAttribute("d",V))}if(M&&$t&&ct>0){let Ge=fve($t,ct);Ge>0&&(V=_ve(V,Ge),Le.setAttribute("d",V))}let zn=j&&((u=j[0])==null?void 0:u.stroke)===!1;if(!W&&!zn&&R&&R.stops.length>0){let Ge=`grad-stroke-${++Qo}`,Xe=document.createElementNS(X,"linearGradient");if(Xe.setAttribute("id",Ge),Xe.setAttribute("color-interpolation",R.colorInterpolation??"linearRGB"),Xe.setAttribute("gradientUnits","userSpaceOnUse"),M||Ce<=1||ye<=1){let Re=R.angle*Math.PI/180,vt=Math.cos(Re),Mt=Math.sin(Re),Ze=Ce/2,lt=ye/2,bt=Math.max(Ce,ye)/2;Xe.setAttribute("x1",String(Ze-bt*vt)),Xe.setAttribute("y1",String(lt-bt*Mt)),Xe.setAttribute("x2",String(Ze+bt*vt)),Xe.setAttribute("y2",String(lt+bt*Mt))}else{let Re=ww(R.angle);Xe.setAttribute("x1",String(parseFloat(Re.x1)/100*Ce)),Xe.setAttribute("y1",String(parseFloat(Re.y1)/100*ye)),Xe.setAttribute("x2",String(parseFloat(Re.x2)/100*Ce)),Xe.setAttribute("y2",String(parseFloat(Re.y2)/100*ye))}for(let Re of R.stops){let vt=document.createElementNS(X,"stop");vt.setAttribute("offset",`${Re.position}%`),vt.setAttribute("stop-color",Re.color),Xe.appendChild(vt)}et.appendChild(Xe);let ht=M||Ce<=1||ye<=1?Math.max(R.width,1):R.width;Le.setAttribute("stroke",`url(#${Ge})`),Le.setAttribute("stroke-width",String(ht)),pn&&Le.setAttribute("stroke-linecap",pn),je&&Le.setAttribute("stroke-linejoin",je)}else if(!W&&!zn&&ct>0&&se!=="transparent"){Le.setAttribute("stroke",se),Le.setAttribute("stroke-width",String(ct)),pn&&Le.setAttribute("stroke-linecap",pn),je&&Le.setAttribute("stroke-linejoin",je);let Ge=qZ(ve,ct);Ge?Le.setAttribute("stroke-dasharray",Ge):Se==="dashed"?Le.setAttribute("stroke-dasharray",`${ct*4},${ct*2}`):Se==="dotted"&&Le.setAttribute("stroke-dasharray",`${ct},${ct*2}`)}else Le.setAttribute("stroke","none");if(ct>0&&(ot||$t)){if(ot){let Ge=WZ(X,ot,Bt,ct,!0);Ge&&(et.appendChild(Ge),Le.setAttribute("marker-start",`url(#${Ge._markerId})`))}if($t){let Ge=WZ(X,$t,sn,ct,!1);Ge&&(et.appendChild(Ge),Le.setAttribute("marker-end",`url(#${Ge._markerId})`))}}if(Le.__rectBlendGroup&&(K.appendChild(Le.__rectBlendGroup),delete Le.__rectBlendGroup),K.appendChild(Le),Qe.exists()&&t.presentation.mediaResolver){let Ge=ave(Qe,t).then(Xe=>{Xe&&BZ(X,K,et,Qe,V,{w:Ce,h:ye},Xe,Le)}).catch(()=>{});(d=t.asyncTasks)==null||d.push(Ge),t.asyncTasks}if(j&&j.length>1){let Ge=Le.getAttribute("fill")??"",Xe=((f=e.presetGeometry)==null?void 0:f.toLowerCase())??"",ht=Ge&&!Ge.startsWith("url(")?Ge:O!=null&&O.exists()?gr(O,t):((h=le?.stops[0])==null?void 0:h.color)??Q,Re=VZ(ht),vt=(Mt,Ze)=>{if(le?.type!=="linear"||le.stops.length===0)return;let lt=`grad-fill-detail-${++Qo}`,bt=document.createElementNS(X,"linearGradient");bt.setAttribute("id",lt),bt.setAttribute("gradientUnits","userSpaceOnUse"),bt.setAttribute("color-interpolation",le.colorInterpolation??"sRGB");let it=ww(le.angle);bt.setAttribute("x1",String(parseFloat(it.x1)/100*Ce)),bt.setAttribute("y1",String(parseFloat(it.y1)/100*ye)),bt.setAttribute("x2",String(parseFloat(it.x2)/100*Ce)),bt.setAttribute("y2",String(parseFloat(it.y2)/100*ye));for(let Kt of le.stops){let wt=document.createElementNS(X,"stop");wt.setAttribute("offset",`${Kt.position}%`);let ut=VZ(Kt.color);wt.setAttribute("stop-color",ut?Jp(ut,Ze,Mt):Kt.color),bt.appendChild(wt)}return et.appendChild(bt),`url(#${lt})`};for(let Mt=1;Mt<j.length;Mt++){let Ze=j[Mt],lt=document.createElementNS(X,"path");if(lt.setAttribute("d",Ze.d),Ze.fill==="none")lt.setAttribute("fill","none");else if(Ze.fill==="darkenLess")lt.setAttribute("fill",vt(.15,{r:0,g:0,b:0})||(Re?Jp(Re,{r:0,g:0,b:0},.15):"rgba(0,0,0,0.15)"));else if(Ze.fill==="darken")lt.setAttribute("fill",vt(.3,{r:0,g:0,b:0})||(Re?Jp(Re,{r:0,g:0,b:0},.3):"rgba(0,0,0,0.3)"));else if(Ze.fill==="lightenLess")lt.setAttribute("fill",vt(.18,{r:255,g:255,b:255})||(Re?Jp(Re,{r:255,g:255,b:255},.18):"rgba(255,255,255,0.15)"));else if(Ze.fill==="lighten"){let bt;if(Xe==="can"&&le?.type==="linear"&&le.stops.length>0){let Kt=`grad-fill-face-${++Qo}`,wt=document.createElementNS(X,"linearGradient");wt.setAttribute("id",Kt),wt.setAttribute("gradientUnits","userSpaceOnUse"),wt.setAttribute("color-interpolation","sRGB");let ut=ww(le.angle);wt.setAttribute("x1",String(parseFloat(ut.x1)/100*Ce)),wt.setAttribute("y1",String(parseFloat(ut.y1)/100*ye)),wt.setAttribute("x2",String(parseFloat(ut.x2)/100*Ce)),wt.setAttribute("y2",String(parseFloat(ut.y2)/100*ye));for(let he of le.stops){let xe=document.createElementNS(X,"stop");xe.setAttribute("offset",`${he.position}%`),xe.setAttribute("stop-color",ZX(he.color,65e3)),wt.appendChild(xe)}et.appendChild(wt),bt=`url(#${Kt})`}else Xe==="can"&&Ge.startsWith("url(")&&(bt=Ge);let it=Xe==="can"?void 0:vt(.3,{r:255,g:255,b:255});lt.setAttribute("fill",bt||it||(Re?Jp(Re,{r:255,g:255,b:255},.3):"rgba(255,255,255,0.3)"))}else lt.setAttribute("fill",Ge||"none");if(Ze.stroke&&ct>0&&se!=="transparent"){lt.setAttribute("stroke",se);let bt=((p=e.presetGeometry)==null?void 0:p.toLowerCase())==="bordercallout1"&&Ze.fill==="none",it=Ze.strokeWidthScale&&Number.isFinite(Ze.strokeWidthScale)&&Ze.strokeWidthScale>0?ct*Ze.strokeWidthScale:ct,Kt=bt?Math.max(it,2.4):it;if(lt.setAttribute("stroke-width",String(Kt)),bt&&lt.setAttribute("stroke-linecap","round"),Ze.maskToMainOutlineBandScale&&Ze.maskToMainOutlineBandScale>0&&Ze.maskToMainOutlineBandScale<1){let wt=`shape-detail-band-mask-${++Qo}`,ut=document.createElementNS(X,"mask");ut.setAttribute("id",wt),ut.setAttribute("maskUnits","userSpaceOnUse"),ut.setAttribute("maskContentUnits","userSpaceOnUse");let he=document.createElementNS(X,"rect");he.setAttribute("x","0"),he.setAttribute("y","0"),he.setAttribute("width",String(Ce)),he.setAttribute("height",String(ye)),he.setAttribute("fill","black"),ut.appendChild(he);let xe=document.createElementNS(X,"path");xe.setAttribute("d",V),xe.setAttribute("fill","white"),xe.setAttribute("stroke","none"),ut.appendChild(xe);let tt=Ze.maskToMainOutlineBandScale,qe=document.createElementNS(X,"path");qe.setAttribute("d",V),qe.setAttribute("fill","black"),qe.setAttribute("stroke","none");let dt=Ce*(1-tt)/2,zt=ye*(1-tt)/2;qe.setAttribute("transform",`translate(${dt} ${zt}) scale(${tt})`),ut.appendChild(qe),et.appendChild(ut),lt.setAttribute("mask",`url(#${wt})`)}else if(Ze.maskToMainOutline){let wt=`shape-detail-mask-${++Qo}`,ut=document.createElementNS(X,"mask");ut.setAttribute("id",wt),ut.setAttribute("maskUnits","userSpaceOnUse"),ut.setAttribute("maskContentUnits","userSpaceOnUse");let he=document.createElementNS(X,"rect");he.setAttribute("x","0"),he.setAttribute("y","0"),he.setAttribute("width",String(Ce)),he.setAttribute("height",String(ye)),he.setAttribute("fill","black"),ut.appendChild(he);let xe=document.createElementNS(X,"path");xe.setAttribute("d",V),xe.setAttribute("fill","none"),xe.setAttribute("stroke","white");let tt=Math.max(Kt*(Ze.maskStrokeScale&&Ze.maskStrokeScale>0?Ze.maskStrokeScale:3),Kt);xe.setAttribute("stroke-width",String(tt)),xe.setAttribute("stroke-linecap","round"),xe.setAttribute("stroke-linejoin","round"),ut.appendChild(xe),et.appendChild(ut),lt.setAttribute("mask",`url(#${wt})`)}}else if(Ze.stroke&&!ie){let bt=Re?Jp(Re,{r:0,g:0,b:0},.55):"#666666";lt.setAttribute("stroke",bt),lt.setAttribute("stroke-width","1")}else lt.setAttribute("stroke","none");K.appendChild(lt)}}if(et.children.length>0&&!et.parentNode&&K.insertBefore(et,K.firstChild),W&&(Le.setAttribute("stroke","none"),Le.removeAttribute("stroke-width"),Le.removeAttribute("marker-start"),Le.removeAttribute("marker-end")),e.presetGeometry&&!j){let Ge=Tge(e.presetGeometry,N,F);if(Ge){let Xe=document.createElementNS(X,"path");Xe.setAttribute("d",Ge);let ht="#333333";if(Q&&Q!=="transparent"&&Q!=="none"){let Re=Q.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i);if(Re){let vt=parseInt(Re[1],16),Mt=parseInt(Re[2],16),Ze=parseInt(Re[3],16);ht=qn(Math.round(vt*.5),Math.round(Mt*.5),Math.round(Ze*.5))}}Xe.setAttribute("fill",ht),Xe.setAttribute("stroke","none"),K.appendChild(Xe)}}S.appendChild(K)}}else Q&&Q!=="transparent"&&(Q.includes("gradient")?S.style.background=Q:S.style.backgroundColor=Q);if(e.textBody&&e.textBody.paragraphs.length>0&&Uge(e.textBody)){let X=rve(e,t);if(X)S.appendChild(X);else{let K=document.createElement("div");K.style.position="absolute",e.textBoxBounds?(K.style.left=`${e.textBoxBounds.x}px`,K.style.top=`${e.textBoxBounds.y}px`,K.style.width=`${e.textBoxBounds.w}px`,K.style.height=`${e.textBoxBounds.h}px`):(K.style.left="0",K.style.top="0",K.style.width="100%",K.style.height="100%"),K.style.display="flex",K.style.flexDirection="column",K.style.boxSizing="border-box";let Ce=Ck(e.textBody,"spAutoFit"),ye=Ce?.exists(),Qe=Ck(e.textBody,"normAutofit"),mt=Qe?.exists(),et=Ck(e.textBody,"noAutofit"),Le=et?.exists(),Oe=e.textBody.bodyProperties,ot=e.textBody.layoutBodyProperties,$t=(Oe?Oe.attr("wrap"):void 0)??(ot?ot.attr("wrap"):void 0),Bt=(Oe?Oe.attr("horzOverflow"):void 0)??(ot?ot.attr("horzOverflow"):void 0),sn=(Oe?Oe.attr("vertOverflow"):void 0)??(ot?ot.attr("vertOverflow"):void 0),ct=ye&&!mt&&Bt==="overflow",pn=ye&&!mt&&sn==="overflow",zn=!ye&&!mt&&!Le&&xD(e.textBody)&&!Zge(e.textBody)&&($t==="none"||$t===void 0&&Fge(e.textBody)),Ge=Le&&Gge(e.placeholder)&&xD(e.textBody);K.style.overflowX="visible",K.style.overflowY="visible";let Xe=!1;if(mt&&Qe){K.style.overflowX="hidden",K.style.overflowY="hidden";let it=Qe.numAttr("lnSpcReduction")??0;if(Xe=!0,it>0){let Kt=1-it/1e5;K.style.lineHeight=`${Kt}`}}if(ye&&!mt){if(ct===pn){let it=ct?"visible":"hidden";K.style.overflowX=it,K.style.overflowY=it}else K.style.overflowX=ct?"visible":"clip",K.style.overflowY=pn?"visible":"clip";Xe=!ct||!pn}zn&&(K.style.overflowX="hidden",K.style.overflowY="hidden",Xe=!0),Ge&&(Xe=!0);let ht=!1,Re,vt=!!ye&&!mt&&xD(e.textBody),Mt=Bge(e.textBody);{Oe&&$t==="none"&&(K.style.whiteSpace="nowrap");let it=Oe?Oe.attr("anchor"):void 0,Kt=ot?ot.attr("anchor"):void 0,wt=it||Kt,ut=it!==void 0||Kt!==void 0;Re=wt;let he=(Oe?Oe.attr("vert"):null)||(ot?ot.attr("vert"):null);wt==="t"?K.style.justifyContent="flex-start":wt==="ctr"?K.style.justifyContent="center":wt==="b"?K.style.justifyContent="flex-end":K.style.justifyContent="flex-start";let xe=(Oe?Oe.numAttr("lIns"):void 0)??(ot?ot.numAttr("lIns"):void 0),tt=(Oe?Oe.numAttr("tIns"):void 0)??(ot?ot.numAttr("tIns"):void 0),qe=(Oe?Oe.numAttr("rIns"):void 0)??(ot?ot.numAttr("rIns"):void 0),dt=(Oe?Oe.numAttr("bIns"):void 0)??(ot?ot.numAttr("bIns"):void 0),zt=De(xe!==void 0?xe:91440),Pn=De(tt!==void 0?tt:45720),Qn=De(qe!==void 0?qe:91440),ui=De(dt!==void 0?dt:45720),Zn=((g=e.textBoxBounds)==null?void 0:g.h)??e.size.h,Gn=zn&&!he&&wt==="ctr"&&Zn>0&&Pn+ui>=Zn,Wt=Gn?0:Pn,Ui=Gn?0:ui;K.style.paddingLeft=`${zt}px`,K.style.paddingTop=`${Wt}px`,K.style.paddingRight=`${Qn}px`,K.style.paddingBottom=`${Ui}px`,he==="eaVert"?(Sw(K,Re),ht=!0):he==="wordArtVert"?(Sw(K,Re,!0,"vertical-lr"),ht=!0):he==="vert"?(Sw(K,Re),ht=!0):he==="vert270"&&(Sw(K,Re),_D(K,"rotate(180deg)"),ht=!0),vt&&!ut&&!ht&&Mt&&(K.style.justifyContent="center")}if((v=e.textBoxBounds)!=null&&v.rotation&&e.textBoxBounds.rotation!==0&&(_D(K,`rotate(${e.textBoxBounds.rotation}deg)`),K.style.transformOrigin="center center"),e.flipH||e.flipV){let it=K.style.transform||"";K.style.transform=`${it} scaleX(-1)`.trim()}let Ze,lt=e.source.child("style");if(lt.exists()){let it=lt.child("fontRef");it.exists()&&it.allChildren().length>0&&(Ze=gr(it,t))}let bt=Ze||ht||ye&&!mt?{...Ze?{fontRefColor:Ze}:{},...ht?{isVerticalText:ht}:{},...ye&&!mt?(()=>{let it=qge(e.textBody),Kt=!Vge(e.textBody)&&$t!=="none"&&(it>1||yK(e.textBody)>vK);return{trimOuterParagraphSpacing:!0,...vt&&!ht&&($t==="none"||Mt)?{compactSingleLineSpacing:!0,defaultLineHeight:"1"}:Kt?{defaultLineHeight:"1.1"}:{}}})():{}}:void 0;if(cK(e.textBody,e.placeholder,t,K,bt),S.appendChild(K),Xe){let it=K.style.transform,Kt=K.style.transformOrigin,wt=K.style.width,ut=K.style.height,he=K.style.whiteSpace,xe=K.style.overflowY,tt=()=>{var dt;K.style.transform=it,K.style.transformOrigin=Kt,K.style.width=wt,K.style.height=ut,K.style.whiteSpace=he,K.style.overflowY=xe;let zt=S.isConnected,Pn=S.style.visibility,Qn=(dt=t.measurementRoot)!=null&&dt.isConnected?t.measurementRoot:document.body;zt||(S.style.visibility="hidden",Qn.appendChild(S));let ui=K.style.justifyContent,Zn=K.style.whiteSpace;K.style.justifyContent="flex-start";let Gn=K.clientWidth,Wt=K.clientHeight,Ui=K.scrollHeight,Ua=K.scrollWidth,Mo=Ua,Dr=Ui,Or=Gn>0&&Ua<=Gn+SD,Ba=vt?Kge:Xge,Bi=Wt>0&&(Ui<=Wt||!pn&&Or&&Ui<=Wt*Ba),Co=Gn>0&&Wt>0&&Or&&Bi,zo=ye&&!mt&&!pn&&Or&&Bi&&Ui>Wt&&Wt>0,Yl=zn&&Or&&Ui>Wt&&Wt>0,Ds=!ht&&!ct&&!Co&&(!Or||!Bi||vt||zn||Ge),Si=!1;Ds&&(K.style.whiteSpace="nowrap",Mo=K.scrollWidth,Dr=K.scrollHeight,Si=!0,K.style.whiteSpace=Zn),K.style.justifyContent=ui,zt||(S.parentNode===Qn&&Qn.removeChild(S),S.style.visibility=Pn);let wn=1,fa=Ge||zn,Fi=ye&&!mt&&$t!=="none"&&Si&&!Bi&&Mo<=Gn+SD&&Dr<=Wt;if(Fi&&(K.style.whiteSpace="nowrap"),!ct&&Mo>Gn+SD&&Gn>0){let Fa=Gn/Mo,Xl=ye&&!mt&&!Bi&&Dr<=Wt&&Fa>=Qge;(!ye||mt||Xl||ye&&!mt&&vt&&($t===void 0||$t==="none"||Mt)||zn||Ge)&&(!Ge||Fa>=Jge)&&(wn=Math.min(wn,Fa))}let pa=ye&&!mt&&wn<1&&Dr<=Wt&&!Bi;pa&&(K.style.whiteSpace="nowrap"),!fa&&!Fi&&!pa&&!pn&&!Bi&&Dr>Wt&&Wt>0&&(wn=Math.min(wn,Wt/Dr)),!fa&&!Fi&&!pa&&!pn&&wn===1&&!Bi&&Ui>Wt&&Wt>0&&(wn=Wt/Ui),wn<1?(K.style.transform||(K.style.transformOrigin="top left"),_D(K,`scale(${wn})`),K.style.width=UZ(wt,wn),K.style.height=UZ(ut,wn)):(zo||Yl)&&(K.style.overflowY="visible")},qe=()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>requestAnimationFrame(tt)):setTimeout(tt,0)};tt(),qe(),((m=document.fonts)==null?void 0:m.status)==="loading"&&document.fonts.ready&&document.fonts.ready.then(()=>qe()).catch(()=>{})}}}let we=H.child("effectLst");if(!we.exists()){let X=e.source.child("style").child("effectRef").numAttr("idx")??0;if(X>0&&(((y=t.theme.effectStyles)==null?void 0:y.length)??0)>=X){let K=t.theme.effectStyles[X-1];if(K.exists()){let Ce=K.child("effectLst");Ce.exists()&&(we=Ce)}}}if(we.exists()){let X=we.child("outerShdw");if(X.exists()){let mt=X.numAttr("dir")??0,et=X.numAttr("dist")??0,Le=X.numAttr("blurRad")??0,Oe=X.numAttr("sx"),ot=X.numAttr("sy"),$t=X.attr("algn"),Bt=mt/6e4,sn=De(et),ct=De(Le),pn=sn*Math.cos(Bt*Math.PI/180),zn=sn*Math.sin(Bt*Math.PI/180),Ge="rgba(0,0,0,0.4)",Xe={r:0,g:0,b:0},{color:ht,alpha:Re}=on(X,t);if(ht){let vt=ht.startsWith("#")?ht:`#${ht}`,{r:Mt,g:Ze,b:lt}=Gt(vt);Xe={r:Mt,g:Ze,b:lt},Ge=`rgba(${Mt},${Ze},${lt},${Re.toFixed(3)})`}if(Oe!=null&&ot!=null&&Oe>0&&ot>0){let vt=Oe/1e5,Mt=ot/1e5,Ze=((b=e.size)==null?void 0:b.w)??100,lt=((x=e.size)==null?void 0:x.h)??100,bt=Ze,it=lt;if(M||Ze<=1||lt<=1){let dt=((_=e.line)==null?void 0:_.numAttr("w"))??12700,zt=Math.max(1,De(dt));bt=zt,it=zt}let Kt=bt*(vt-1)/2,wt=it*(Mt-1)/2,ut=Math.max(0,(Kt+wt)/2),he=0,xe=0;if($t){let dt=$t.toLowerCase();(dt==="t"||dt==="tl"||dt==="tr")&&(xe=it*(Mt-1)/2),(dt==="b"||dt==="bl"||dt==="br")&&(xe=-it*(Mt-1)/2),(dt==="l"||dt==="tl"||dt==="bl")&&(he=bt*(vt-1)/2),(dt==="r"||dt==="tr"||dt==="br")&&(he=-bt*(vt-1)/2)}let tt=ut>0?Math.min(ct,ut*3):ct,qe=Re;if(ut>0&&ct>0&&ut<ct&&(qe=Re*(ut/ct)),qe>=.01){let dt=pn+he,zt=zn+xe,Pn=Ge;if(ht){let Qn=ht.startsWith("#")?ht:`#${ht}`,{r:ui,g:Zn,b:Gn}=Gt(Qn);Xe={r:ui,g:Zn,b:Gn},Pn=`rgba(${ui},${Zn},${Gn},${qe.toFixed(4)})`}!M&&ue&&de&&J&&ge?FZ(ue,de,J,ge,{dx:dt,dy:zt,blur:tt,color:Xe,opacity:qe}):S.style.boxShadow=`${dt.toFixed(1)}px ${zt.toFixed(1)}px ${tt.toFixed(1)}px ${ut.toFixed(1)}px ${Pn}`}}else!M&&ue&&de&&J&&ge?FZ(ue,de,J,ge,{dx:pn,dy:zn,blur:ct,color:Xe,opacity:Re}):bK(S,`drop-shadow(${pn.toFixed(1)}px ${zn.toFixed(1)}px ${ct.toFixed(1)}px ${Ge})`)}let K=we.child("glow");K.exists()&&Yge(S,K,t);let Ce=we.child("softEdge");if(Ce.exists()&&!M&&ue&&de&&J&&ge){let mt=De(Ce.numAttr("rad")??0);mt>0&&uve(ue,de,J,ge,mt)}let ye=we.child("innerShdw");if(ye.exists()&&!M&&ue&&de&&J&&ge){let mt=ye.numAttr("dir")??0,et=De(ye.numAttr("dist")??0),Le=De(ye.numAttr("blurRad")??0),Oe=mt/6e4,ot=et*Math.cos(Oe*Math.PI/180),$t=et*Math.sin(Oe*Math.PI/180),{color:Bt,alpha:sn}=on(ye,t);if(Bt&&sn>0){let ct=Bt.startsWith("#")?Bt:`#${Bt}`;cve(ue,de,J,ge,{dx:ot,dy:$t,blur:Le,color:Gt(ct),opacity:sn})}}let Qe=we.child("reflection");if(Qe.exists()){let mt=De(Qe.numAttr("dist")??0),et=(Qe.numAttr("stA")??5e4)/1e5,Le=(Qe.numAttr("endA")??0)/1e5,Oe=Math.max(0,Math.min(100,(Qe.numAttr("stPos")??0)/1e3)),ot=Math.max(0,Math.min(100,(Qe.numAttr("endPos")??1e5)/1e3)),$t=`linear-gradient(to bottom, rgba(255,255,255,${et.toFixed(3)}) ${Oe.toFixed(1)}%, rgba(255,255,255,${Le.toFixed(3)}) ${ot.toFixed(1)}%)`,Bt=`below ${mt.toFixed(1)}px ${$t}`;S.style.setProperty("-webkit-box-reflect",Bt),S.style.webkitBoxReflect=Bt}}if(e.hlinkClick&&t.onNavigate){let{action:X,rId:K}=e.hlinkClick,Ce=K?t.slide.rels.get(K):void 0,ye=t4(t,X,Ce);ye!==void 0?(S.style.cursor="pointer",S.title=e.hlinkClick.tooltip||n4(ye),S.addEventListener("click",Qe=>{Qe.stopPropagation(),t.onNavigate({slideIndex:ye})})):K&&Ce&&Rs(Ce.targetMode)&&Q5(Ce.target)&&(S.style.cursor="pointer",S.title=e.hlinkClick.tooltip||Ce.target,S.addEventListener("click",Qe=>{Qe.stopPropagation(),t.onNavigate({url:Ce.target})}))}return S}var Ive=14,Rve=70,Lve=81,Eve=1128875079,Dve=2,Ove=1073741828,Nve=1179469088,Pve=[37,80,68,70],$D=[37,37,69,79,70],jve=0,Uve=16777216;function Bve(e){if(e.length<44)return{type:"unsupported"};let t=new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.getUint32(40,!0)!==Nve)return{type:"unsupported"};let n=0,i=0;for(;n+8<=e.length;){let r=t.getUint32(n,!0),o=t.getUint32(n+4,!0);if(o<8||n+o>e.length||(i++,r===Ive))break;if(r===Rve&&o>16){let a=Fve(e,t,n,o);if(a)return a}if(r===Lve&&o>80){let a=Vve(e,t,n);if(a)return a}n+=o}return i<=2?{type:"empty"}:{type:"unsupported"}}function Fve(e,t,n,i){if(n+16>e.length)return null;if(t.getUint32(n+12,!0)===Eve&&n+20<=e.length){let r=t.getUint32(n+16,!0);if(r===Dve){let o=e.subarray(n+8,n+i),a=dN(o);if(a)return{type:"pdf",data:a}}if(r===Ove&&n+24<=e.length){let o=qve(e,t,n);if(o)return o}}if(i>100){let r=e.subarray(n+8,n+i),o=dN(r);if(o)return{type:"pdf",data:o}}return null}function qve(e,t,n,i){if(n+40>e.length)return null;let r=t.getUint32(n+36,!0),o=n+40;for(let a=0;a<r&&a<10;a++){let s=o+a*16;if(s+16>e.length)break;let l=t.getUint32(s+8,!0),c=t.getUint32(s+12,!0),u=n+c;if(u+l>e.length||l===0)continue;let d=e.subarray(u,u+l),f=dN(d);if(f)return{type:"pdf",data:f}}return null}function dN(e){let t=Hve(e,Pve);if(t===-1)return null;let n=-1;for(let i=e.length-$D.length;i>=t;i--)if(kK(e,i,$D)){n=i+$D.length;break}return n===-1&&(n=e.length),e.slice(t,n)}function Vve(e,t,n,i){if(n+80>e.length)return null;let r=t.getUint32(n+48,!0),o=t.getUint32(n+52,!0),a=t.getUint32(n+56,!0),s=t.getUint32(n+60,!0);if(o===0||s===0)return null;let l=n+r;if(l+40>e.length)return null;let c=t.getInt32(l+4,!0),u=t.getInt32(l+8,!0),d=t.getUint16(l+14,!0);if(t.getUint32(l+16,!0)!==jve||d!==24&&d!==32)return null;let f=Math.abs(c),h=Math.abs(u);if(f===0||h===0||f>8192||h>8192||f*h>Uve)return null;let p=n+a;if(p+s>e.length)return null;let g=d/8,v=Math.ceil(f*g/4)*4,m=v*h;if(s<m)return null;let y=e.subarray(p,p+m),b=u<0,x=new ImageData(f,h);for(let _=0;_<h;_++){let S=(b?_:h-1-_)*v,$=_*f*4;for(let C=0;C<f;C++){let w=S+C*g;if(w+g>y.length)break;x.data[$+C*4+0]=y[w+2],x.data[$+C*4+1]=y[w+1],x.data[$+C*4+2]=y[w+0],x.data[$+C*4+3]=d===32?y[w+3]:255}}return{type:"bitmap",imageData:x}}function Hve(e,t){let n=e.length-t.length;for(let i=0;i<=n;i++)if(kK(e,i,t))return i;return-1}function kK(e,t,n){for(let i=0;i<n.length;i++)if(e[t+i]!==n[i])return!1;return!0}var Zve="pdfjs-dist/build/pdf.min.mjs",Gve="pdfjs-dist/build/pdf.worker.min.mjs",Mw=null,Cw=null;function MK(e){try{let t=kIe.resolve;if(typeof t=="function")return t(e)}catch{}return null}function CK(e,t){if(!e||typeof e!="object")return null;let n=e[t];return typeof n!="string"?null:n.trim()||null}function Wve(){return Mw!==null?Mw:(Mw=MK(Zve)??"",Mw||null)}function Yve(){return Cw!==null?Cw:(Cw=MK(Gve)??"",Cw||null)}function Xve(e){return e===!1?null:CK(e,"moduleUrl")??Wve()}function Kve(e){return e===!1?null:CK(e,"workerUrl")??Yve()}var Jve=`
let pdfjsLib = null;

// PDF.js resolves its nested worker through browser window APIs. Aliasing
// this isolated worker global keeps it on the real-worker path; otherwise its
// fake-worker fallback would bind to this worker's message port.
globalThis.window = globalThis;

self.onmessage = async (e) => {
  const { id, pdfData, width, height, pdfjsUrl, pdfWorkerUrl } = e.data;
  try {
    if (!pdfjsLib) {
      pdfjsLib = await import(pdfjsUrl);
      pdfjsLib.GlobalWorkerOptions.workerSrc = pdfWorkerUrl;
    }

    const loadingTask = pdfjsLib.getDocument({ data: pdfData });
    let doc = null;
    try {
      doc = await loadingTask.promise;
      if (doc.numPages < 1) {
        self.postMessage({ id, error: 'no pages' });
        return;
      }
      const page = await doc.getPage(1);
      const vp = page.getViewport({ scale: 1 });
      const scale = Math.max(width / vp.width, height / vp.height);
      const svp = page.getViewport({ scale });

      const canvas = new OffscreenCanvas(Math.ceil(svp.width), Math.ceil(svp.height));
      const ctx = canvas.getContext('2d', { alpha: true });
      await page.render({ canvasContext: ctx, viewport: svp, background: 'rgba(0,0,0,0)' }).promise;

      const blob = await canvas.convertToBlob({ type: 'image/png' });
      self.postMessage({ id, blob });
    } finally {
      if (typeof loadingTask.destroy === 'function') {
        await loadingTask.destroy();
      } else if (doc && typeof doc.destroy === 'function') {
        await doc.destroy();
      }
    }
  } catch (err) {
    self.postMessage({ id, error: String(err) });
  }
};
`,Qve=15e3,e0e=4,hN=0,zk=[];function XZ(){for(;hN<e0e;){let e=zk.shift();if(!e)return;e.start()}}function t0e(e,t){return t!=null&&t.aborted?Promise.resolve(null):new Promise(n=>{let i=!1,r=!1,o=s=>{r||(r=!0,n(s))},a={start:()=>{r||(i=!0,t?.removeEventListener("abort",a.cancel),hN+=1,Promise.resolve().then(e).then(o,()=>o(null)).finally(()=>{hN-=1,XZ()}))},cancel:()=>{if(i||r)return;let s=zk.indexOf(a);s>=0&&zk.splice(s,1),t?.removeEventListener("abort",a.cancel),o(null)}};t?.addEventListener("abort",a.cancel,{once:!0}),zk.push(a),XZ()})}function n0e(e,t,n,i,r,o){return o!=null&&o.aborted?Promise.resolve(null):new Promise(a=>{let s=null,l,c=!1,u=f=>{c||(c=!0,l!==void 0&&clearTimeout(l),o?.removeEventListener("abort",d),s&&(s.onmessage=null,s.onerror=null,s.terminate(),s=null),a(f))},d=()=>u(null);try{let f=new Blob([Jve],{type:"text/javascript"}),h=URL.createObjectURL(f);try{s=new Worker(h,{type:"module"})}finally{URL.revokeObjectURL(h)}s.onmessage=g=>{let{blob:v,error:m}=g.data;u(m?null:v??null)},s.onerror=()=>u(null),o?.addEventListener("abort",d,{once:!0});let p=e.slice();s.postMessage({id:1,pdfData:p,width:t,height:n,pdfjsUrl:i,pdfWorkerUrl:r},[p.buffer]),l=setTimeout(()=>u(null),Qve)}catch{u(null)}})}async function i0e(e,t,n,i,r){if(r!=null&&r.aborted)return null;let o=Xve(i),a=Kve(i);if(!o||!a||typeof OffscreenCanvas>"u"||typeof Worker>"u")return null;try{let s=await t0e(()=>n0e(e,t,n,o,a,r),r);if(s&&!(r!=null&&r.aborted))return URL.createObjectURL(s)}catch{}return null}function zK(e){var t;return(((t=e.split(".").pop())==null?void 0:t.toLowerCase())||"")==="wmf"}function r0e(e){var t;return(((t=e.split(".").pop())==null?void 0:t.toLowerCase())||"")==="emf"}var o0e=0;function TK(e,t){if(Rs(e.targetMode))return Wm(e.target)?e.target:void 0;let n=Hm(e.target,t.presentation.media);if(!n)return;let{mediaPath:i,data:r}=n;if(!zK(i))return kh(i,r,t.mediaUrlCache)}function a0e(e,t){var n;let i=document.createElement("div");i.style.position="absolute",i.style.left=`${e.position.x}px`,i.style.top=`${e.position.y}px`,i.style.width=`${e.size.w}px`,i.style.height=`${e.size.h}px`,i.style.overflow="hidden";let r=IK(e),o=[];if(e.rotation!==0&&o.push(`rotate(${e.rotation}deg)`),e.flipH&&!r&&o.push("scaleX(-1)"),e.flipV&&!r&&o.push("scaleY(-1)"),o.length>0&&(i.style.transform=o.join(" ")),d0e(i,e,t),e.isVideo)return w0e(e,t,i),i;if(e.isAudio)return k0e(e,t,i),i;let a=e.blipEmbed,s;if(a){let l=t.slide.rels.get(a);if(!l)return Cl(i,"Missing image reference"),i;if(Rs(l.targetMode)){if(s=Wm(l.target)?l.target:void 0,!s)return Cl(i,"Image not found"),i}else{let c=EX(l.target);if(zK(c))return M0e(i,c),i;let u=Hm(l.target,t.presentation.media);if(!u){if(t.presentation.mediaResolver){let d=W5(l.target,t.presentation.media,t.presentation.mediaResolver).then(f=>{if(!f){Cl(i,"Image not found");return}KZ(e,t,i,f.mediaPath,f.data)}).catch(()=>{Cl(i,"Image not found")});return(n=t.asyncTasks)==null||n.push(d),t.asyncTasks,i}return Cl(i,"Image not found"),i}return KZ(e,t,i,u.mediaPath,u.data),i}}else if(e.blipLink){if(s=c4(e.blipLink,t),!s)return Cl(i,"Image not found"),i}else return Cl(i,"No image data"),i;return AK(e,t,i,s),i}function KZ(e,t,n,i,r){if(r0e(i)){let a=r instanceof Uint8Array?r:new Uint8Array(r);C0e(a,e,t,n,i);return}let o=kh(i,r,t.mediaUrlCache);AK(e,t,n,o)}function AK(e,t,n,i){let r=e.source.child("blipFill"),o=r.child("blip"),a=$0e(o);if(r.child("tile").exists()){n.style.backgroundImage=`url("${i}")`,n.style.backgroundRepeat="repeat",n.style.backgroundSize="auto",a<1&&(n.style.opacity=`${Number(a.toFixed(4))}`);return}let s=document.createElement("img");s.src=i,s.style.width="100%",s.style.height="100%",s.style.objectFit="fill",s.style.display="block",s.draggable=!1;let l=e.source.child("blipFill").child("stretch").child("fillRect"),c=l.exists()?s0e(l):void 0,u=IK(e);if(u){u0e(e,n,i,u,c),a<1&&(n.style.opacity=`${Number(a.toFixed(4))}`);return}if(c&&l0e(s,c),e.crop){let{top:p,right:g,bottom:v,left:m}=e.crop,y=1-m-g,b=1-p-v;if(y>.001&&b>.001){let x=1/y,_=1/b,S=e.size.w*((c?.width??100)/100),$=e.size.h*((c?.height??100)/100);s.style.width=`${(x*S).toFixed(4)}px`,s.style.height=`${(_*$).toFixed(4)}px`,s.style.marginLeft=`${(-m*x*S).toFixed(4)}px`,s.style.marginTop=`${(-p*_*$).toFixed(4)}px`}}a<1&&(n.style.opacity=`${Number(a.toFixed(4))}`),o.child("grayscl").exists()&&l4(s,"grayscale(1)");let d=o.child("duotone");d.exists()&&A0e(d,t,s);let f=o.child("lum");f.exists()&&I0e(f,s);let h=o.child("biLevel");h.exists()&&R0e(h,s),n.appendChild(s)}function zw(e,t){return(e.numAttr(t)??0)/1e3}function s0e(e){let t=zw(e,"l"),n=zw(e,"t"),i=zw(e,"r"),r=zw(e,"b");return{left:t,top:n,width:100-t-i,height:100-n-r}}function l0e(e,t){e.style.position="absolute",e.style.left=`${t.left}%`,e.style.top=`${t.top}%`,e.style.width=`${t.width}%`,e.style.height=`${t.height}%`}function IK(e){let t=e.source.child("spPr").child("custGeom"),n=e.customGeometry??(t.exists()?t:void 0);if(n!=null&&n.exists()){let o=e.source.child("spPr").child("xfrm").child("ext"),a={w:o.numAttr("cx")??0,h:o.numAttr("cy")??0};return uK(n,e.size.w,e.size.h,a)||void 0}let i=e.source.child("spPr").child("prstGeom").attr("prst"),r=e.presetGeometry??i;return!r||r==="rect"?void 0:r4(r,e.size.w,e.size.h)||void 0}function c0e(e){if(e.flipH&&e.flipV)return`translate(${e.size.w} ${e.size.h}) scale(-1 -1)`;if(e.flipH)return`translate(${e.size.w} 0) scale(-1 1)`;if(e.flipV)return`translate(0 ${e.size.h}) scale(1 -1)`}function u0e(e,t,n,i,r){let o="http://www.w3.org/2000/svg",a=document.createElementNS(o,"svg");a.setAttribute("viewBox",`0 0 ${e.size.w} ${e.size.h}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.style.display="block",a.style.overflow="hidden";let s=`picture-clip-${o0e++}`,l=document.createElementNS(o,"defs"),c=document.createElementNS(o,"clipPath");c.setAttribute("id",s),c.setAttribute("clipPathUnits","userSpaceOnUse");let u=document.createElementNS(o,"path");u.setAttribute("d",i);let d=c0e(e);d&&u.setAttribute("transform",d),c.appendChild(u),l.appendChild(c),a.appendChild(l);let f=document.createElementNS(o,"image");f.setAttribute("href",n),f.setAttribute("preserveAspectRatio","none"),d&&f.setAttribute("transform",d);let h=document.createElementNS(o,"g");h.setAttribute("clip-path",`url(#${s})`);let p=(r?.left??0)/100*e.size.w,g=(r?.top??0)/100*e.size.h,v=(r?.width??100)/100*e.size.w,m=(r?.height??100)/100*e.size.h;if(e.crop){let{top:y,right:b,bottom:x,left:_}=e.crop,S=1-_-b,$=1-y-x;if(S>.001&&$>.001){let C=1/S,w=1/$;v*=C,m*=w,p+=-_*C*((r?.width??100)/100)*e.size.w,g+=-y*w*((r?.height??100)/100)*e.size.h}}f.setAttribute("x",String(p)),f.setAttribute("y",String(g)),f.setAttribute("width",String(v)),f.setAttribute("height",String(m)),t.appendChild(a),a.appendChild(h),h.appendChild(f)}function d0e(e,t,n){h0e(e,t,n),m0e(e,t,n),g0e(e,t,n),S0e(e,t,n)}function h0e(e,t,n){let i=t.source.child("spPr"),r=Ul(i,n);r&&f0e(e,r)}function f0e(e,t){if(p0e(e),t.includes("gradient")&&t.includes(" 0 0 / ")){let n=e4(t);if(n){e.style.backgroundImage=n.imageLayers,e.style.backgroundSize="8px 8px",e.style.backgroundRepeat="repeat",e.style.backgroundColor=n.color;return}}t.includes("gradient")||t.startsWith("url(")||t.includes("repeating-")?e.style.background=t:e.style.backgroundColor=t}function p0e(e){e.style.background="",e.style.backgroundColor="",e.style.backgroundImage="",e.style.backgroundRepeat="",e.style.backgroundSize=""}function m0e(e,t,n){var i,r,o;let a=t.source.child("style").child("lnRef");if(((i=t.line)==null?void 0:i.child("noFill").exists())??!1)return;let s=((r=t.line)==null?void 0:r.exists())??!1,l=!s&&a.exists()&&(a.numAttr("idx")??0)>0&&(((o=n.theme.lineStyles)==null?void 0:o.length)??0)>=(a.numAttr("idx")??0)?n.theme.lineStyles[(a.numAttr("idx")??1)-1]:void 0,c=s?t.line:l;if(!(c!=null&&c.exists()))return;let u=_x(c,n,a);u.width<=0||u.color==="transparent"||(e.style.boxSizing="border-box",e.style.border=`${u.width}px ${u.dash} ${u.color}`)}function g0e(e,t,n){let i=t.source.child("spPr").child("effectLst");if(!i.exists())return;let r=i.child("outerShdw");r.exists()&&v0e(e,t,r,n);let o=i.child("glow");o.exists()&&b0e(e,o,n);let a=i.child("softEdge");a.exists()&&x0e(e,t,a);let s=i.child("reflection");s.exists()&&_0e(e,s)}function v0e(e,t,n,i){let r=n.numAttr("dir")??0,o=De(n.numAttr("dist")??0),a=De(n.numAttr("blurRad")??0),s=r/6e4,l=o*Math.cos(s*Math.PI/180),c=o*Math.sin(s*Math.PI/180),u=y0e(n,i,"rgba(0,0,0,0.4)"),d=n.numAttr("sx"),f=n.numAttr("sy");if(d!=null&&f!=null&&d>0&&f>0){let h=d/1e5,p=f/1e5,g=t.size.w*(h-1)/2,v=t.size.h*(p-1)/2,m=Math.max(0,(g+v)/2);e.style.boxShadow=`${l.toFixed(1)}px ${c.toFixed(1)}px ${a.toFixed(1)}px ${m.toFixed(1)}px ${u}`;return}l4(e,`drop-shadow(${l.toFixed(1)}px ${c.toFixed(1)}px ${a.toFixed(1)}px ${u})`)}function y0e(e,t,n){let{color:i,alpha:r}=on(e,t);if(!i)return n;let o=i.startsWith("#")?i:`#${i}`,{r:a,g:s,b:l}=Gt(o);return`rgba(${a},${s},${l},${r.toFixed(3)})`}function l4(e,t){let n=e.style.filter.trim();e.style.filter=n?`${n} ${t}`:t}function b0e(e,t,n){let i=De(t.numAttr("rad")??0);if(!(i>0))return;let{color:r,alpha:o}=on(t,n);if(!r||o<=0)return;let a=r.startsWith("#")?r:`#${r}`,{r:s,g:l,b:c}=Gt(a);l4(e,`drop-shadow(0px 0px ${i.toFixed(1)}px rgba(${s},${l},${c},${o.toFixed(3)}))`)}function x0e(e,t,n){let i=De(n.numAttr("rad")??0);if(!(i>0))return;let r=Math.max(0,Math.min(t.size.w,t.size.h)/2),o=r>0?Math.min(i,r):i,a=`${Number(o.toFixed(4))}px`,s="var(--pptx-soft-edge-radius)",l=[`linear-gradient(to right, transparent 0, black ${s}, black calc(100% - ${s}), transparent 100%)`,`linear-gradient(to bottom, transparent 0, black ${s}, black calc(100% - ${s}), transparent 100%)`].join(", ");e.style.setProperty("--pptx-soft-edge-radius",a),e.style.setProperty("-webkit-mask-image",l),e.style.setProperty("mask-image",l),e.style.setProperty("-webkit-mask-size","100% 100%"),e.style.setProperty("mask-size","100% 100%"),e.style.setProperty("-webkit-mask-repeat","no-repeat"),e.style.setProperty("mask-repeat","no-repeat"),e.style.setProperty("-webkit-mask-composite","source-in"),e.style.setProperty("mask-composite","intersect");let c=e.style;c.webkitMaskImage=l,c.maskImage=l,c.webkitMaskComposite="source-in",c.maskComposite="intersect"}function _0e(e,t){let n=De(t.numAttr("dist")??0),i=(t.numAttr("stA")??5e4)/1e5,r=(t.numAttr("endA")??0)/1e5,o=Math.max(0,Math.min(100,(t.numAttr("stPos")??0)/1e3)),a=Math.max(0,Math.min(100,(t.numAttr("endPos")??1e5)/1e3)),s=`linear-gradient(to bottom, rgba(255,255,255,${i.toFixed(3)}) ${o.toFixed(1)}%, rgba(255,255,255,${r.toFixed(3)}) ${a.toFixed(1)}%)`,l=`below ${n.toFixed(1)}px ${s}`;e.style.setProperty("-webkit-box-reflect",l),e.style.webkitBoxReflect=l}function S0e(e,t,n){if(!t.hlinkClick||!n.onNavigate)return;let{action:i,rId:r}=t.hlinkClick,o=r?n.slide.rels.get(r):void 0,a=t4(n,i,o);if(a!==void 0){e.style.cursor="pointer",e.title=t.hlinkClick.tooltip||n4(a),e.addEventListener("click",s=>{s.stopPropagation(),n.onNavigate({slideIndex:a})});return}r&&(!o||!Rs(o.targetMode)||!Q5(o.target)||(e.style.cursor="pointer",e.title=t.hlinkClick.tooltip||o.target,e.addEventListener("click",s=>{s.stopPropagation(),n.onNavigate({url:o.target})})))}function $0e(e){let t=1,n=e.child("alphaModFix");n.exists()&&(t*=(n.numAttr("amt")??1e5)/1e5);let i=e.child("alphaMod");i.exists()&&(t*=(i.numAttr("val")??1e5)/1e5);let r=e.child("alphaOff");return r.exists()&&(t+=(r.numAttr("val")??0)/1e5),Math.max(0,Math.min(1,t))}function w0e(e,t,n){let i=c4(e.mediaRId,t),r;if(e.blipEmbed){let o=t.slide.rels.get(e.blipEmbed);o&&(r=TK(o,t))}if(i){let o=document.createElement("video");o.src=i,o.preload="none",o.controls=!0,o.style.width="100%",o.style.height="100%",o.style.objectFit="contain",o.style.backgroundColor="#000",r&&(o.poster=r),n.appendChild(o)}else if(r){let o=document.createElement("img");o.src=r,o.style.width="100%",o.style.height="100%",o.style.objectFit="fill",n.appendChild(o);let a=document.createElement("div");a.style.position="absolute",a.style.inset="0",a.style.display="flex",a.style.alignItems="center",a.style.justifyContent="center",a.style.backgroundColor="rgba(0,0,0,0.3)",a.style.color="#fff",a.style.fontSize="24px",a.textContent="\u25B6",n.appendChild(a)}else Cl(n,"Video")}function k0e(e,t,n){let i=c4(e.mediaRId,t);if(i){if(e.blipEmbed){let o=t.slide.rels.get(e.blipEmbed);if(o){let a=TK(o,t);if(a){let s=document.createElement("img");s.src=a,s.style.width="100%",s.style.height="calc(100% - 32px)",s.style.objectFit="contain",n.appendChild(s)}}}let r=document.createElement("audio");r.src=i,r.preload="none",r.controls=!0,r.style.width="100%",r.style.position="absolute",r.style.bottom="0",r.style.left="0",n.appendChild(r)}else Cl(n,"Audio")}function c4(e,t){if(!e)return;let n=t.slide.rels.get(e);if(!n)return;if(Rs(n.targetMode))return Wm(n.target)?n.target:void 0;let i=Hm(n.target,t.presentation.media);if(!i)return;let{mediaPath:r,data:o}=i;return kh(r,o,t.mediaUrlCache)}function Cl(e,t){let n=document.createElement("div");n.style.width="100%",n.style.height="100%",n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.backgroundColor="#f0f0f0",n.style.color="#888",n.style.fontSize="12px",n.style.border="1px dashed #ccc",n.textContent=t,e.appendChild(n)}function M0e(e,t){var n;let i=((n=t.split(".").pop())==null?void 0:n.toUpperCase())||"Unknown",r=document.createElement("div");r.style.width="100%",r.style.height="100%",r.style.display="flex",r.style.flexDirection="column",r.style.alignItems="center",r.style.justifyContent="center",r.style.backgroundColor="#f5f5f5",r.style.color="#999",r.style.fontSize="11px",r.style.border="1px dashed #ddd";let o=document.createElement("div");o.style.fontSize="24px",o.style.marginBottom="4px",o.textContent="\u{1F5BC}";let a=document.createElement("div");a.textContent=`Unsupported format: ${i}`,r.appendChild(o),r.appendChild(a),e.appendChild(r)}function C0e(e,t,n,i,r){let o=Bve(e);switch(o.type){case"pdf":z0e(o.data,i,t,n,r);break;case"bitmap":T0e(o.imageData,i,n,r);break}}function z0e(e,t,n,i,r){var o;let a=`${r}:emf-pdf`,s=i.mediaUrlCache.get(a);if(s){t.appendChild(e2(s));return}let l=i0e(e,n.size.w,n.size.h,i.pdfjs,i.signal).then(c=>{var u;if(c){if((u=i.signal)!=null&&u.aborted){URL.revokeObjectURL(c);return}i.mediaUrlCache.set(a,c),t.appendChild(e2(c))}}).catch(()=>{});(o=i.asyncTasks)==null||o.push(l)}function T0e(e,t,n,i){var r;let o=`${i}:emf-bitmap`,a=n.mediaUrlCache.get(o);if(a){t.appendChild(e2(a));return}let s=document.createElement("canvas");s.width=e.width,s.height=e.height;let l=s.getContext("2d");if(!l)return;l.putImageData(e,0,0);let c=new Promise(u=>{s.toBlob(d=>{if(d){let f=URL.createObjectURL(d);n.mediaUrlCache.set(o,f),t.appendChild(e2(f))}u()},"image/png")});(r=n.asyncTasks)==null||r.push(c)}function e2(e){let t=document.createElement("img");return t.src=e,t.style.width="100%",t.style.height="100%",t.style.objectFit="fill",t.style.display="block",t.draggable=!1,t}function A0e(e,t,n,i){let r=e.allChildren();if(r.length<2)return;let{color:o}=on(r[0],t),{color:a}=on(r[1],t);if(!o||!a)return;let s=o.startsWith("#")?o:`#${o}`,l=a.startsWith("#")?a:`#${a}`,c=Gt(s),u=Gt(l),d=()=>{let f=n.naturalWidth,h=n.naturalHeight;if(!f||!h)return;let p=document.createElement("canvas");p.width=f,p.height=h;let g=p.getContext("2d");if(!g)return;g.drawImage(n,0,0);let v=g.getImageData(0,0,f,h),m=v.data;for(let y=0;y<m.length;y+=4){let b=(.2126*m[y]+.7152*m[y+1]+.0722*m[y+2])/255;m[y]=Math.round(c.r+(u.r-c.r)*b),m[y+1]=Math.round(c.g+(u.g-c.g)*b),m[y+2]=Math.round(c.b+(u.b-c.b)*b)}g.putImageData(v,0,0),n.src=p.toDataURL()};n.complete&&n.naturalWidth?d():n.addEventListener("load",d,{once:!0})}function I0e(e,t){let n=(e.numAttr("bright")??0)/1e5,i=(e.numAttr("contrast")??0)/1e5;if(n===0&&i===0)return;let r=()=>{let o=t.naturalWidth,a=t.naturalHeight;if(!o||!a)return;let s=document.createElement("canvas");s.width=o,s.height=a;let l=s.getContext("2d");if(!l)return;l.drawImage(t,0,0);let c=l.getImageData(0,0,o,a),u=c.data;for(let d=0;d<u.length;d+=4)for(let f=0;f<3;f++){let h=u[d+f]/255;i!==0&&(h=.5+(h-.5)*(1+i)),h+=n,u[d+f]=Math.round(Math.max(0,Math.min(255,h*255)))}l.putImageData(c,0,0),t.src=s.toDataURL()};t.complete&&t.naturalWidth?r():t.addEventListener("load",r,{once:!0})}function R0e(e,t){let n=(e.numAttr("thresh")??5e4)/1e5,i=()=>{let r=t.naturalWidth,o=t.naturalHeight;if(!r||!o)return;let a=document.createElement("canvas");a.width=r,a.height=o;let s=a.getContext("2d");if(!s)return;s.drawImage(t,0,0);let l=s.getImageData(0,0,r,o),c=l.data;for(let u=0;u<c.length;u+=4){let d=(.2126*c[u]+.7152*c[u+1]+.0722*c[u+2])/255>=n?255:0;c[u]=d,c[u+1]=d,c[u+2]=d}s.putImageData(l,0,0),t.src=a.toDataURL()};t.complete&&t.naturalWidth?i():t.addEventListener("load",i,{once:!0})}var RK=new Map([["{2D5ABB26-0587-4C30-8999-92F81FD0307C}",["Themed-Style-1",""]],["{3C2FFA5D-87B4-456A-9821-1D502468CF0F}",["Themed-Style-1","accent1"]],["{284E427A-3D55-4303-BF80-6455036E1DE7}",["Themed-Style-1","accent2"]],["{69C7853C-536D-4A76-A0AE-DD22124D55A5}",["Themed-Style-1","accent3"]],["{775DCB02-9BB8-47FD-8907-85C794F793BA}",["Themed-Style-1","accent4"]],["{35758FB7-9AC5-4552-8A53-C91805E547FA}",["Themed-Style-1","accent5"]],["{08FB837D-C827-4EFA-A057-4D05807E0F7C}",["Themed-Style-1","accent6"]],["{5940675A-B579-460E-94D1-54222C63F5DA}",["Themed-Style-2",""]],["{D113A9D2-9D6B-4929-AA2D-F23B5EE8CBE7}",["Themed-Style-2","accent1"]],["{18603FDC-E32A-4AB5-989C-0864C3EAD2B8}",["Themed-Style-2","accent2"]],["{306799F8-075E-4A3A-A7F6-7FBC6576F1A4}",["Themed-Style-2","accent3"]],["{E269D01E-BC32-4049-B463-5C60D7B0CCD2}",["Themed-Style-2","accent4"]],["{327F97BB-C833-4FB7-BDE5-3F7075034690}",["Themed-Style-2","accent5"]],["{638B1855-1B75-4FBE-930C-398BA8C253C6}",["Themed-Style-2","accent6"]],["{9D7B26C5-4107-4FEC-AEDC-1716B250A1EF}",["Light-Style-1",""]],["{3B4B98B0-60AC-42C2-AFA5-B58CD77FA1E5}",["Light-Style-1","accent1"]],["{0E3FDE45-AF77-4B5C-9715-49D594BDF05E}",["Light-Style-1","accent2"]],["{C083E6E3-FA7D-4D7B-A595-EF9225AFEA82}",["Light-Style-1","accent3"]],["{D27102A9-8310-4765-A935-A1911B00CA55}",["Light-Style-1","accent4"]],["{5FD0F851-EC5A-4D38-B0AD-8093EC10F338}",["Light-Style-1","accent5"]],["{68D230F3-CF80-4859-8CE7-A43EE81993B5}",["Light-Style-1","accent6"]],["{7E9639D4-E3E2-4D34-9284-5A2195B3D0D7}",["Light-Style-2",""]],["{69012ECD-51FC-41F1-AA8D-1B2483CD663E}",["Light-Style-2","accent1"]],["{72833802-FEF1-4C79-8D5D-14CF1EAF98D9}",["Light-Style-2","accent2"]],["{F2DE63D5-997A-4646-A377-4702673A728D}",["Light-Style-2","accent3"]],["{17292A2E-F333-43FB-9621-5CBBE7FDCDCB}",["Light-Style-2","accent4"]],["{5A111915-BE36-4E01-A7E5-04B1672EAD32}",["Light-Style-2","accent5"]],["{912C8C85-51F0-491E-9774-3900AFEF0FD7}",["Light-Style-2","accent6"]],["{616DA210-FB5B-4158-B5E0-FEB733F419BA}",["Light-Style-3",""]],["{BC89EF96-8CEA-46FF-86C4-4CE0E7609802}",["Light-Style-3","accent1"]],["{5DA37D80-6434-44D0-A028-1B22A696006F}",["Light-Style-3","accent2"]],["{8799B23B-EC83-4686-B30A-512413B5E67A}",["Light-Style-3","accent3"]],["{ED083AE6-46FA-4A59-8FB0-9F97EB10719F}",["Light-Style-3","accent4"]],["{BDBED569-4797-4DF1-A0F4-6AAB3CD982D8}",["Light-Style-3","accent5"]],["{E8B1032C-EA38-4F05-BA0D-38AFFFC7BED3}",["Light-Style-3","accent6"]],["{793D81CF-94F2-401A-BA57-92F5A7B2D0C5}",["Medium-Style-1",""]],["{B301B821-A1FF-4177-AEE7-76D212191A09}",["Medium-Style-1","accent1"]],["{9DCAF9ED-07DC-4A11-8D7F-57B35C25682E}",["Medium-Style-1","accent2"]],["{1FECB4D8-DB02-4DC6-A0A2-4F2EBAE1DC90}",["Medium-Style-1","accent3"]],["{1E171933-4619-4E11-9A3F-F7608DF75F80}",["Medium-Style-1","accent4"]],["{FABFCF23-3B69-468F-B69F-88F6DE6A72F2}",["Medium-Style-1","accent5"]],["{10A1B5D5-9B99-4C35-A422-299274C87663}",["Medium-Style-1","accent6"]],["{073A0DAA-6AF3-43AB-8588-CEC1D06C72B9}",["Medium-Style-2",""]],["{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}",["Medium-Style-2","accent1"]],["{21E4AEA4-8DFA-4A89-87EB-49C32662AFE0}",["Medium-Style-2","accent2"]],["{F5AB1C69-6EDB-4FF4-983F-18BD219EF322}",["Medium-Style-2","accent3"]],["{00A15C55-8517-42AA-B614-E9B94910E393}",["Medium-Style-2","accent4"]],["{7DF18680-E054-41AD-8BC1-D1AEF772440D}",["Medium-Style-2","accent5"]],["{93296810-A885-4BE3-A3E7-6D5BEEA58F35}",["Medium-Style-2","accent6"]],["{8EC20E35-A176-4012-BC5E-935CFFF8708E}",["Medium-Style-3",""]],["{6E25E649-3F16-4E02-A733-19D2CDBF48F0}",["Medium-Style-3","accent1"]],["{85BE263C-DBD7-4A20-BB59-AAB30ACAA65A}",["Medium-Style-3","accent2"]],["{EB344D84-9AFB-497E-A393-DC336BA19D2E}",["Medium-Style-3","accent3"]],["{EB9631B5-78F2-41C9-869B-9F39066F8104}",["Medium-Style-3","accent4"]],["{74C1A8A3-306A-4EB7-A6B1-4F7E0EB9C5D6}",["Medium-Style-3","accent5"]],["{2A488322-F2BA-4B5B-9748-0D474271808F}",["Medium-Style-3","accent6"]],["{D7AC3CCA-C797-4891-BE02-D94E43425B78}",["Medium-Style-4",""]],["{69CF1AB2-1976-4502-BF36-3FF5EA218861}",["Medium-Style-4","accent1"]],["{8A107856-5554-42FB-B03E-39F5DBC370BA}",["Medium-Style-4","accent2"]],["{0505E3EF-67EA-436B-97B2-0124C06EBD24}",["Medium-Style-4","accent3"]],["{C4B1156A-380E-4F78-BDF5-A606A8083BF9}",["Medium-Style-4","accent4"]],["{22838BEF-8BB2-4498-84A7-C5851F593DF1}",["Medium-Style-4","accent5"]],["{16D9F66E-5EB9-4882-86FB-DCBF35E3C3E4}",["Medium-Style-4","accent6"]],["{E8034E78-7F5D-4C2E-B375-FC64B27BC917}",["Dark-Style-1",""]],["{125E5076-3810-47DD-B79F-674D7AD40C01}",["Dark-Style-1","accent1"]],["{37CE84F3-28C3-443E-9E96-99CF82512B78}",["Dark-Style-1","accent2"]],["{D03447BB-5D67-496B-8E87-E561075AD55C}",["Dark-Style-1","accent3"]],["{E929F9F4-4A8F-4326-A1B4-22849713DDAB}",["Dark-Style-1","accent4"]],["{8FD4443E-F989-4FC4-A0C8-D5A2AF1F390B}",["Dark-Style-1","accent5"]],["{AF606853-7671-496A-8E4F-DF71F8EC918B}",["Dark-Style-1","accent6"]],["{5202B0CA-FC54-4496-8BCA-5EF66A818D29}",["Dark-Style-2",""]],["{0660B408-B3CF-4A94-85FC-2B1E0A45F4A2}",["Dark-Style-2","accent1"]],["{91EBBBCC-DAD2-459C-BE2E-F6DE35CF9A28}",["Dark-Style-2","accent3"]],["{46F890A9-2807-4EBB-B81D-B2AA78EC7F39}",["Dark-Style-2","accent5"]]]),L0e='xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"';function Vt(e,t){let n=t?`<a:${t}/>`:"";return`<a:fill><a:solidFill><a:schemeClr val="${e}">${n}</a:schemeClr></a:solidFill></a:fill>`}function Te(e,t){let n=t?`<a:${t}/>`:"";return`<a:ln w="12700"><a:solidFill><a:schemeClr val="${e}">${n}</a:schemeClr></a:solidFill></a:ln>`}function E0e(e,t){let n=t?' b="on"':"",i=e?`<a:schemeClr val="${e}"/>`:"";return`<a:tcTxStyle${n}>${i}</a:tcTxStyle>`}function Ae(e,t){if(!t.textColor&&!t.bold&&!t.fill&&!t.borders)return"";let n=[`<a:${e}>`];if((t.textColor||t.bold)&&n.push(E0e(t.textColor??"",t.bold)),n.push("<a:tcStyle>"),t.fill&&n.push(t.fill),t.borders){n.push("<a:tcBdr>");for(let[i,r]of Object.entries(t.borders))n.push(`<a:${i}>${r}</a:${i}>`);n.push("</a:tcBdr>")}return n.push("</a:tcStyle>"),n.push(`</a:${e}>`),n.join("")}function D0e(e,t){let n=e!=="",i=n?e:"tx1",r=[];if(n){let o={left:Te(i),right:Te(i),top:Te(i),bottom:Te(i),insideH:Te(i),insideV:Te(i)};r.push(Ae("wholeTbl",{textColor:"dk1",borders:o}));let a=Vt(i,'alpha val="40000"');r.push(Ae("band1H",{fill:a})),r.push(Ae("band1V",{fill:a})),r.push(Ae("firstRow",{textColor:"lt1",bold:!0,fill:Vt(i),borders:{left:Te(i),right:Te(i),top:Te(i),bottom:Te("lt1")}})),r.push(Ae("lastRow",{bold:!0,borders:{left:Te(i),right:Te(i),top:Te(i),bottom:Te(i)}}));let s={left:Te(i),right:Te(i),top:Te(i),bottom:Te(i),insideH:Te(i)};r.push(Ae("firstCol",{bold:!0,borders:s})),r.push(Ae("lastCol",{bold:!0,borders:s}))}else{r.push(Ae("wholeTbl",{textColor:"tx1"}));let o=Vt("tx1",'alpha val="40000"');r.push(Ae("band1H",{fill:o})),r.push(Ae("band1V",{fill:o}))}return la(t,"Themed-Style-1",r.join(""))}function O0e(e,t){let n=e!=="",i=[];if(n){let r=e,o=`<a:tblBg><a:fillRef idx="1"><a:schemeClr val="${r}"/></a:fillRef></a:tblBg>`,a={left:Te(r,'tint val="50000"'),right:Te(r,'tint val="50000"'),top:Te(r,'tint val="50000"'),bottom:Te(r,'tint val="50000"')};i.push(Ae("wholeTbl",{textColor:"lt1",borders:a}));let s=Vt("lt1",'alpha val="20000"');return i.push(Ae("band1H",{fill:s})),i.push(Ae("band1V",{fill:s})),i.push(Ae("firstRow",{textColor:"lt1",bold:!0,borders:{bottom:Te("lt1")}})),i.push(Ae("lastRow",{bold:!0,borders:{top:Te("lt1")}})),i.push(Ae("firstCol",{bold:!0,borders:{right:Te("lt1")}})),i.push(Ae("lastCol",{bold:!0,borders:{left:Te("lt1")}})),la(t,"Themed-Style-2",o+i.join(""))}else{let r={left:Te("tx1",'tint val="50000"'),right:Te("tx1",'tint val="50000"'),top:Te("tx1",'tint val="50000"'),bottom:Te("tx1",'tint val="50000"'),insideH:Te("tx1"),insideV:Te("tx1")};i.push(Ae("wholeTbl",{borders:r}));let o=Vt("tx1",'alpha val="20000"');return i.push(Ae("band1H",{fill:o})),i.push(Ae("band1V",{fill:o})),la(t,"Themed-Style-2",i.join(""))}}function N0e(e,t){let n=e||"tx1",i=[];i.push(Ae("wholeTbl",{textColor:"tx1",borders:{top:Te(n),bottom:Te(n)}}));let r=Vt(n,'alpha val="20000"');return i.push(Ae("band1H",{fill:r})),i.push(Ae("band1V",{fill:r})),i.push(Ae("firstRow",{textColor:"tx1",bold:!0,borders:{bottom:Te(n)}})),i.push(Ae("lastRow",{bold:!0,borders:{top:Te(n)}})),i.push(Ae("firstCol",{textColor:"tx1",bold:!0})),i.push(Ae("lastCol",{textColor:"tx1",bold:!0})),la(t,"Light-Style-1",i.join(""))}function P0e(e,t){let n=e||"tx1",i=[];return i.push(Ae("wholeTbl",{textColor:"tx1",borders:{left:Te(n),right:Te(n),top:Te(n),bottom:Te(n)}})),i.push(Ae("band1H",{borders:{top:Te(n),bottom:Te(n)}})),i.push(Ae("band1V",{borders:{left:Te(n),right:Te(n)}})),i.push(Ae("band2V",{borders:{left:Te(n),right:Te(n)}})),i.push(Ae("firstRow",{textColor:"bg1",bold:!0,fill:Vt(n)})),i.push(Ae("lastRow",{bold:!0,borders:{top:Te(n)}})),i.push(Ae("firstCol",{bold:!0})),i.push(Ae("lastCol",{bold:!0})),la(t,"Light-Style-2",i.join(""))}function j0e(e,t){let n=e||"tx1",i=[];i.push(Ae("wholeTbl",{textColor:"tx1",borders:{left:Te(n),right:Te(n),top:Te(n),bottom:Te(n),insideH:Te(n),insideV:Te(n)}}));let r=Vt(n,'alpha val="20000"');return i.push(Ae("band1H",{fill:r})),i.push(Ae("band1V",{fill:r})),i.push(Ae("firstRow",{textColor:n,bold:!0,borders:{bottom:Te(n)}})),i.push(Ae("lastRow",{bold:!0,borders:{top:Te(n)}})),i.push(Ae("firstCol",{bold:!0})),i.push(Ae("lastCol",{bold:!0})),la(t,"Light-Style-3",i.join(""))}function U0e(e,t){let n=e||"dk1",i=[];i.push(Ae("wholeTbl",{textColor:"dk1",fill:Vt("lt1"),borders:{left:Te(n),right:Te(n),top:Te(n),bottom:Te(n),insideH:Te(n)}}));let r=Vt(n,'tint val="20000"');return i.push(Ae("band1H",{fill:r})),i.push(Ae("band1V",{fill:r})),i.push(Ae("firstRow",{textColor:"lt1",bold:!0,fill:Vt(n)})),i.push(Ae("lastRow",{bold:!0,fill:Vt("lt1"),borders:{top:Te(n)}})),i.push(Ae("firstCol",{bold:!0})),i.push(Ae("lastCol",{bold:!0})),la(t,"Medium-Style-1",i.join(""))}function B0e(e,t){let n=e||"dk1",i=[];i.push(Ae("wholeTbl",{textColor:"dk1",fill:Vt(n,'tint val="20000"'),borders:{left:Te("lt1"),right:Te("lt1"),top:Te("lt1"),bottom:Te("lt1"),insideH:Te("lt1"),insideV:Te("lt1")}}));let r=Vt(n,'tint val="40000"');return i.push(Ae("band1H",{fill:r})),i.push(Ae("band1V",{fill:r})),i.push(Ae("firstRow",{textColor:"lt1",bold:!0,fill:Vt(n),borders:{bottom:Te("lt1")}})),i.push(Ae("lastRow",{textColor:"lt1",bold:!0,fill:Vt(n),borders:{top:Te("lt1")}})),i.push(Ae("firstCol",{textColor:"lt1",bold:!0,fill:Vt(n)})),i.push(Ae("lastCol",{textColor:"lt1",bold:!0,fill:Vt(n)})),la(t,"Medium-Style-2",i.join(""))}function F0e(e,t){let n=e||"dk1",i=[];i.push(Ae("wholeTbl",{textColor:"dk1",fill:Vt("lt1"),borders:{top:Te("dk1"),bottom:Te("dk1")}}));let r=Vt("dk1",'tint val="20000"');return i.push(Ae("band1H",{fill:r})),i.push(Ae("band1V",{fill:r})),i.push(Ae("firstRow",{textColor:"lt1",bold:!0,fill:Vt(n),borders:{bottom:Te("dk1")}})),i.push(Ae("lastRow",{bold:!0,fill:Vt("lt1"),borders:{top:Te("dk1")}})),i.push(Ae("firstCol",{textColor:"lt1",bold:!0,fill:Vt(n)})),i.push(Ae("lastCol",{textColor:"lt1",bold:!0,fill:Vt(n)})),la(t,"Medium-Style-3",i.join(""))}function q0e(e,t){let n=e||"dk1",i=[];i.push(Ae("wholeTbl",{textColor:"dk1",fill:Vt(n,'tint val="20000"'),borders:{left:Te(n),right:Te(n),top:Te(n),bottom:Te(n),insideH:Te(n),insideV:Te(n)}}));let r=Vt(n,'tint val="40000"');return i.push(Ae("band1H",{fill:r})),i.push(Ae("band1V",{fill:r})),i.push(Ae("firstRow",{textColor:n,bold:!0,fill:Vt(n,'tint val="20000"')})),i.push(Ae("lastRow",{bold:!0,fill:Vt("dk1",'tint val="20000"'),borders:{top:Te("dk1")}})),i.push(Ae("firstCol",{bold:!0})),i.push(Ae("lastCol",{bold:!0})),la(t,"Medium-Style-4",i.join(""))}function V0e(e,t){let n=e!=="",i=n?e:"dk1",r=n?"shade":"tint",o=[];o.push(Ae("wholeTbl",{textColor:"dk1",fill:Vt(i,`${r} val="20000"`)}));let a=Vt(i,`${r} val="40000"`);return o.push(Ae("band1H",{fill:a})),o.push(Ae("band1V",{fill:a})),o.push(Ae("firstRow",{textColor:"lt1",bold:!0,fill:Vt("dk1"),borders:{bottom:Te("lt1")}})),o.push(Ae("lastRow",{bold:!0,fill:Vt(i),borders:{top:Te("lt1")}})),o.push(Ae("firstCol",{bold:!0,fill:Vt(i,`${r} val="60000"`),borders:{right:Te("lt1")}})),o.push(Ae("lastCol",{bold:!0,fill:Vt(i,`${r} val="60000"`),borders:{left:Te("lt1")}})),la(t,"Dark-Style-1",o.join(""))}function H0e(e,t){let n=e||"dk1",i=[],r;e===""?r="dk1":e==="accent1"?r="accent2":e==="accent3"?r="accent4":e==="accent5"?r="accent6":r=n,i.push(Ae("wholeTbl",{textColor:"dk1",fill:Vt(n,'tint val="20000"')}));let o=Vt(n,'tint val="40000"');return i.push(Ae("band1H",{fill:o})),i.push(Ae("band1V",{fill:o})),i.push(Ae("firstRow",{textColor:"lt1",bold:!0,fill:Vt(r)})),i.push(Ae("lastRow",{bold:!0,fill:Vt(n,'tint val="20000"'),borders:{top:Te("dk1")}})),i.push(Ae("firstCol",{bold:!0})),i.push(Ae("lastCol",{bold:!0})),la(t,"Dark-Style-2",i.join(""))}function la(e,t,n){return`<a:tblStyle ${L0e} styleId="${e}" styleName="${t}">${n}</a:tblStyle>`}var Z0e={"Themed-Style-1":D0e,"Themed-Style-2":O0e,"Light-Style-1":N0e,"Light-Style-2":P0e,"Light-Style-3":j0e,"Medium-Style-1":U0e,"Medium-Style-2":B0e,"Medium-Style-3":F0e,"Medium-Style-4":q0e,"Dark-Style-1":V0e,"Dark-Style-2":H0e},JZ=new Map;function G0e(e){let t=JZ.get(e);if(t)return t;let n=RK.get(e);if(!n)return;let[i,r]=n,o=Z0e[i];if(!o)return;let a=o(r,e),s=Kr(a);if(s.exists())return JZ.set(e,s),s}RK.size;function ix(e,t){if(Dm(e),t.includes("gradient")&&t.includes(" 0 0 / ")){let n=e4(t);if(n){e.style.backgroundImage=n.imageLayers,e.style.backgroundSize="8px 8px",e.style.backgroundRepeat="repeat",e.style.backgroundColor=n.color;return}}t.includes("gradient")||t.startsWith("url(")||t.includes("repeating-")?e.style.background=t:e.style.backgroundColor=t}function Dm(e){e.style.background="",e.style.backgroundColor="",e.style.backgroundImage="",e.style.backgroundRepeat="",e.style.backgroundSize=""}function W0e(e,t){if(!e||!t.presentation.tableStyles)return;let n=t.presentation.tableStyles;for(let i of n.children("tblStyle"))if(i.attr("styleId")===e)return i;for(let i of n.children())if(i.localName==="tblStyle"&&i.attr("styleId")===e)return i;return G0e(e)}function Y0e(e,t,n,i,r,o){let a=[],s=(g,v)=>{if(!o)return!1;let m=o.attr(g);if(m!==void 0)return yr(m);let y=o.child(v);return y.exists()?yr(y.attr("val"),!0):!1},l=s("bandRow","bandRow"),c=s("bandCol","bandCol"),u=s("firstRow","firstRow"),d=s("lastRow","lastRow"),f=s("firstCol","firstCol"),h=s("lastCol","lastCol"),p=e.child("wholeTbl");if(p.exists()&&a.push(p),l){let g=u?t-1:t;if(g>=0&&g%2===1){let v=e.child("band2H");v.exists()&&a.push(v)}else if(g>=0&&g%2===0){let v=e.child("band1H");v.exists()&&a.push(v)}}if(c)if(n%2===1){let g=e.child("band2V");g.exists()&&a.push(g)}else{let g=e.child("band1V");g.exists()&&a.push(g)}if(u&&t===0){let g=e.child("firstRow");g.exists()&&a.push(g)}if(d&&t===i-1){let g=e.child("lastRow");g.exists()&&a.push(g)}if(f&&n===0){let g=e.child("firstCol");g.exists()&&a.push(g)}if(h&&n===r-1){let g=e.child("lastCol");g.exists()&&a.push(g)}return a}function X0e(e,t){for(let n=e.length-1;n>=0;n--){let i=e[n].child("tcTxStyle");if(!i.exists())continue;let r={},o=i.attr("b");o!==void 0&&(r.bold=yr(o));let a=i.attr("i");a!==void 0&&(r.italic=yr(a));for(let l of i.allChildren()){let c=l.localName;if(c==="schemeClr"||c==="solidFill"||c==="srgbClr"||c==="scrgbClr"||c==="prstClr"||c==="sysClr"){let{color:u,alpha:d}=on(l,t),f=u.startsWith("#")?u:`#${u}`;if(d<1){let{r:h,g:p,b:g}=Gt(f);r.color=`rgba(${h},${p},${g},${d.toFixed(3)})`}else r.color=f;break}}let s=i.child("font");if(s.exists()){let l=s.child("latin").attr("typeface"),c=s.child("ea").attr("typeface"),u=s.child("cs").attr("typeface"),d=Tm([l,c,u],t);d.length>0&&(r.fontFamily=d)}if(!r.fontFamily){let l=i.child("fontRef");if(l.exists()){let c=l.attr("idx");if(c==="major"){let u=Tm(["+mj-lt","+mj-ea","+mj-cs"],t);u.length>0&&(r.fontFamily=u)}else if(c==="minor"){let u=Tm(["+mn-lt","+mn-ea","+mn-cs"],t);u.length>0&&(r.fontFamily=u)}}}return r}}function K0e(e,t,n){let i=t.child("fill");if(!i.exists())return!1;if(i.child("noFill").exists())return Dm(e),e.style.background="transparent",!0;let r=i.child("solidFill");if(r.exists()){Dm(e);let{color:s,alpha:l}=on(r,n),c=s.startsWith("#")?s:`#${s}`;if(l<1){let{r:u,g:d,b:f}=Gt(c);e.style.backgroundColor=`rgba(${u},${d},${f},${l.toFixed(3)})`}else e.style.backgroundColor=c;return!0}let o=Ul(i,n);if(o)return ix(e,o),!0;let a=i.child("fillRef");if(a.exists()){let{fillCss:s}=J5(a,n);return ix(e,s),!0}return!1}function J0e(e,t,n,i,r,o,a){let s=t.child("tcBdr");if(!s.exists())return;let l=[["top","borderTop"],["bottom","borderBottom"],["left","borderLeft"],["right","borderRight"]];s.child("insideH").exists()&&i!==void 0&&o!==void 0&&(i<o-1&&l.push(["insideH","borderBottom"]),i>0&&l.push(["insideH","borderTop"])),s.child("insideV").exists()&&r!==void 0&&a!==void 0&&(r<a-1&&l.push(["insideV","borderRight"]),r>0&&l.push(["insideV","borderLeft"]));for(let[c,u]of l){let d=s.child(c);if(!d.exists())continue;let f=d.child("ln");if(f.exists()){if(f.child("noFill").exists())continue;let p=_x(f,n);p.width>0&&p.color!=="transparent"&&(e.style[u]=`${Math.max(p.width,.5)}px ${p.dash} ${p.color}`);continue}let h=d.child("lnRef");if(h.exists()){let p=h.numAttr("idx")??0;if(p===0)continue;let{color:g,alpha:v}=on(h,n),m=g.startsWith("#")?g:`#${g}`,y=1;if(n.theme.lineStyles&&n.theme.lineStyles.length>=p){let x=n.theme.lineStyles[p-1].numAttr("w")??12700;y=De(x)}let b=v<1?`rgba(${Gt(m).r},${Gt(m).g},${Gt(m).b},${v.toFixed(3)})`:m;y>0&&(e.style[u]=`${Math.max(y,.5)}px solid ${b}`)}}}function Q0e(e,t,n){let i=t.child("tblBg");if(!i.exists())return;let r=i.child("fillRef");if(r.exists()){let{fillCss:s}=J5(r,n);ix(e,s);return}let o=i.child("solidFill");if(o.exists()){Dm(e);let{color:s,alpha:l}=on(o,n),c=s.startsWith("#")?s:`#${s}`;if(l<1){let{r:u,g:d,b:f}=Gt(c);e.style.backgroundColor=`rgba(${u},${d},${f},${l.toFixed(3)})`}else e.style.backgroundColor=c;return}let a=Ul(i,n);a&&ix(e,a)}function QZ(e){let t=[];return e.flipH&&t.push("scaleX(-1)"),e.flipV&&t.push("scaleY(-1)"),t.join(" ")}function eye(e,t){let n=document.createElement("div");n.style.position="absolute",n.style.left=`${e.position.x}px`,n.style.top=`${e.position.y}px`,n.style.width=`${e.size.w}px`,n.style.height=`${e.size.h}px`,n.style.overflow="hidden";let i=[];e.rotation!==0&&i.push(`rotate(${e.rotation}deg)`),e.flipH&&i.push("scaleX(-1)"),e.flipV&&i.push("scaleY(-1)"),i.length>0&&(n.style.transform=i.join(" "));let r=W0e(e.tableStyleId,t),o=e.properties,a=e.rows.length,s=e.columns.length,l=document.createElement("table");l.style.borderCollapse="collapse",l.style.width="100%",l.style.height="100%",l.style.tableLayout="fixed",r&&Q0e(l,r,t);let c=e.columns.reduce((h,p)=>h+p,0);if(c>0&&e.columns.length>0){let h=document.createElement("colgroup");for(let p of e.columns){let g=document.createElement("col");g.style.width=`${p/c*100}%`,h.appendChild(g)}l.appendChild(h)}let u=e.rows.reduce((h,p)=>h+p.height,0),d=document.createElement("tbody"),f=0;for(let h=0;h<e.rows.length;h++){let p=e.rows[h],g=document.createElement("tr");p.height>0&&u>0&&(g.style.height=`${p.height/u*100}%`),f=0;for(let v of p.cells){if(v.hMerge||v.vMerge){v.vMerge&&!v.hMerge&&(f+=v.gridSpan);continue}let m=document.createElement("td");m.style.overflow="hidden",v.gridSpan>1&&(m.colSpan=v.gridSpan),v.rowSpan>1&&(m.rowSpan=v.rowSpan);let y=[];if(r){y=Y0e(r,h,f,a,s,o);for(let x of y){let _=x.child("tcStyle");_.exists()&&(K0e(m,_,t),J0e(m,_,t,h,f,a,s))}}tye(m,v,t);let b=y.length>0?X0e(y,t):void 0;if(v.textBody){let x=QZ(e)?document.createElement("div"):m,_=QZ(e);_&&x!==m&&(x.style.width="100%",x.style.height="100%",x.style.transform=_,x.style.transformOrigin="center center");let S={defaultLineHeight:"1",trimOuterParagraphSpacing:!0,...b?{cellTextColor:b.color,cellTextBold:b.bold,cellTextItalic:b.italic,cellTextFontFamily:b.fontFamily}:{}};cK(v.textBody,void 0,t,x,S),x!==m&&m.appendChild(x)}g.appendChild(m),f+=v.gridSpan}d.appendChild(g)}return l.appendChild(d),n.appendChild(l),n}function tye(e,t,n){let i=t.properties;if(i?.attr("horzOverflow")==="overflow"&&(e.style.overflow="visible"),i){if(i.child("noFill").exists())Dm(e),e.style.background="transparent";else if(i.child("solidFill").exists()){let d=i.child("solidFill");Dm(e);let{color:f,alpha:h}=on(d,n),p=f.startsWith("#")?f:`#${f}`;if(h<1){let{r:g,g:v,b:m}=Gt(p);e.style.backgroundColor=`rgba(${g},${v},${m},${h.toFixed(3)})`}else e.style.backgroundColor=p}else{let d=Ul(i,n);d&&ix(e,d)}Tw(e,i,"lnT","borderTop",n),Tw(e,i,"lnB","borderBottom",n),Tw(e,i,"lnL","borderLeft",n),Tw(e,i,"lnR","borderRight",n)}let r=i?.numAttr("marL"),o=i?.numAttr("marR"),a=i?.numAttr("marT"),s=i?.numAttr("marB"),l=91440;e.style.paddingLeft=`${De(r??l)}px`,e.style.paddingRight=`${De(o??l)}px`,e.style.paddingTop=`${De(a??45720)}px`,e.style.paddingBottom=`${De(s??45720)}px`;let c=i?.attr("anchor"),u={t:"top",ctr:"middle",b:"bottom"};e.style.verticalAlign=u[c||"t"]||"top"}function Tw(e,t,n,i,r){let o=t.child(n);if(!o.exists())return;if(o.child("noFill").exists()){e.style[i]="none";return}let a=_x(o,r);a.width>0&&a.color!=="transparent"&&(e.style[i]=`${Math.max(a.width,.5)}px ${a.dash} ${a.color}`)}function e7(e){return e.nodeType!=="table"&&e.nodeType!=="chart"}function nye(e){let t=(e%360+360)%360;return Math.abs(t-90)<1e-4||Math.abs(t-270)<1e-4}function iye(e,t,n,i){if(e.nodeType!=="shape")return;let r=e;if(!r.textBoxBounds)return;let o=i?n:t,a=i?t:n,s=r.textBoxBounds;r.textBoxBounds={...s,x:s.x*o,y:s.y*a,w:s.w*o,h:s.h*a}}function rye(e,t,n){let{color:i,alpha:r}=on(e,t);if(!i)return n;let o=i.startsWith("#")?i:`#${i}`,{r:a,g:s,b:l}=Gt(o);return`rgba(${a},${s},${l},${r.toFixed(3)})`}function oye(e,t,n,i){let r=n.numAttr("dir")??0,o=De(n.numAttr("dist")??0),a=De(n.numAttr("blurRad")??0),s=r/6e4,l=o*Math.cos(s*Math.PI/180),c=o*Math.sin(s*Math.PI/180),u=rye(n,i,"rgba(0,0,0,0.4)"),d=n.numAttr("sx"),f=n.numAttr("sy");if(d!=null&&f!=null&&d>0&&f>0){let h=d/1e5,p=f/1e5,g=t.size.w*(h-1)/2,v=t.size.h*(p-1)/2,m=Math.max(0,(g+v)/2);e.style.boxShadow=`${l.toFixed(1)}px ${c.toFixed(1)}px ${a.toFixed(1)}px ${m.toFixed(1)}px ${u}`;return}e.style.filter=`drop-shadow(${l.toFixed(1)}px ${c.toFixed(1)}px ${a.toFixed(1)}px ${u})`}function aye(e,t){let n=De(t.numAttr("dist")??0),i=(t.numAttr("stA")??5e4)/1e5,r=(t.numAttr("endA")??0)/1e5,o=Math.max(0,Math.min(100,(t.numAttr("stPos")??0)/1e3)),a=Math.max(0,Math.min(100,(t.numAttr("endPos")??1e5)/1e3)),s=`linear-gradient(to bottom, rgba(255,255,255,${i.toFixed(3)}) ${o.toFixed(1)}%, rgba(255,255,255,${r.toFixed(3)}) ${a.toFixed(1)}%)`,l=`below ${n.toFixed(1)}px ${s}`;e.style.setProperty("-webkit-box-reflect",l),e.style.webkitBoxReflect=l}function sye(e,t,n,i){let r=i.child("effectLst");if(!r.exists())return;let o=r.child("outerShdw");o.exists()&&oye(e,t,o,n);let a=r.child("reflection");a.exists()&&aye(e,a)}function lye(e,t,n){let i=document.createElement("div");i.style.position="absolute",i.style.left=`${e.position.x}px`,i.style.top=`${e.position.y}px`,i.style.width=`${e.size.w}px`,i.style.height=`${e.size.h}px`;let r=[];e.rotation!==0&&r.push(`rotate(${e.rotation}deg)`),r.length>0&&(i.style.transform=r.join(" "),i.style.transformOrigin="center center");let o=e.childOffset,a=e.childExtent,s=e.size.w,l=e.size.h,c=e.source.child("grpSpPr"),u={...t};if(c.exists()){sye(i,e,t,c);let v=["solidFill","gradFill","blipFill","pattFill"];for(let m of v)if(c.child(m).exists()){u.groupFillNode=c;break}!u.groupFillNode&&c.child("grpFill").exists()&&t.groupFillNode&&(u.groupFillNode=t.groupFillNode)}let d=new Map,f=v=>(d.has(v)||d.set(v,cye(e.children[v],t,e)),d.get(v)),h=null,p=null;if(e.children.length===6&&a.w>0&&a.h>0){let v=b=>b.child("spPr").child("prstGeom").attr("prst"),m=e.children.slice(0,3).every(b=>v(b)==="pie"),y=e.children.slice(3,6).every(b=>v(b)==="circularArrow");if(m&&y){let b=[0,1,2].map(x=>f(x)).filter(Boolean);if(b.length===3){let x=Math.max(...b.map(M=>M.size.w)),_=Math.max(...b.map(M=>M.size.h)),S=Math.min(x,_,a.w,a.h),$=o.x+a.w/2,C=o.y+a.h/2,w=$-S/2,z=C-S/2;h={x:(w-o.x)/a.w*s,y:(z-o.y)/a.h*l,w:S/a.w*s,h:S/a.h*l};let A=b[0].size;b.every(M=>Math.abs(M.size.w-A.w)<.01&&Math.abs(M.size.h-A.h)<.01)&&(p=new Map(b.map((M,T)=>[T,{x:(M.position.x+M.size.w/2-$)/a.w*s,y:(M.position.y+M.size.h/2-C)/a.h*l}])))}}}let g=(h?[3,4,5,0,1,2]:void 0)??e.children.map((v,m)=>m);for(let v of g)try{let m=f(v);if(!m)continue;if(a.w>0&&a.h>0){let b=s/a.w,x=l/a.h,_=nye(m.rotation),S=m.position,$=m.size;if(_){let C=S.x+($.w-$.h)/2,w=S.y+($.h-$.w)/2,z={w:$.w*x,h:$.h*b};m.position={x:(C-o.x)*b-(z.w-z.h)/2,y:(w-o.y)*x-(z.h-z.w)/2},m.size=z}else m.position={x:(S.x-o.x)*b,y:(S.y-o.y)*x},m.size={w:$.w*b,h:$.h*x};iye(m,b,x,_)}if(e.flipH&&(m.position={...m.position,x:s-m.position.x-m.size.w},e7(m)&&(m.flipH=!m.flipH)),e.flipV&&(m.position={...m.position,y:l-m.position.y-m.size.h},e7(m)&&(m.flipV=!m.flipV)),h&&v<3&&m.nodeType==="shape"){let b=m.size.w,x=m.size.h,_=p?.get(v)??{x:0,y:0};m.position={x:h.x+_.x,y:h.y+_.y},m.size={w:h.w,h:h.h};let S=m;if(b>0&&x>0&&S.textBoxBounds){let $=S.textBoxBounds;S.textBoxBounds={x:$.x/b*h.w,y:$.y/x*h.h,w:$.w/b*h.w,h:$.h/x*h.h}}}let y=n(m,u);i.appendChild(y)}catch{let m=document.createElement("div");m.style.position="absolute",m.style.border="1px dashed #ff6b6b",m.style.backgroundColor="rgba(255,107,107,0.1)",m.style.fontSize="10px",m.style.color="#cc0000",m.style.display="flex",m.style.alignItems="center",m.style.justifyContent="center",m.style.padding="2px",m.textContent="Group child error",i.appendChild(m)}return i}function cye(e,t,n){let i=X5(e,{rels:t.slide.rels,partPath:t.partPath??t.slide.slidePath,diagramDrawings:t.presentation.diagramDrawings,skipPlaceholders:t.skipPlaceholderChildren});return i&&HX(i,t.layout,t.master,{parentGroup:n}),i}var Tk=1e4;function u4(e){let t=e.child("ptCount").numAttr("val"),n=-1;for(let o of e.children("pt")){let a=o.numAttr("idx");a!==void 0&&Number.isInteger(a)&&a>=0&&a<Tk&&(n=Math.max(n,a))}let i=n+1;if(t===void 0||!Number.isFinite(t)||t<0)return i;let r=Math.floor(t);return r>Tk?i:Math.min(Math.max(r,i),Tk)}function d4(e,t){return e!==void 0&&Number.isInteger(e)&&e>=0&&e<t&&e<Tk}function t7(e){let t=e.child("strRef").exists()?e.child("strRef").child("strCache"):e.child("strCache");if(!t.exists()){let r=e.child("numRef").exists()?e.child("numRef").child("numCache"):e.child("numCache");return r.exists()?pye(r):[]}let n=u4(t),i=new Array(n).fill("");for(let r of t.children("pt")){let o=r.numAttr("idx");if(d4(o,n)){let a=r.child("v").text();i[o]=a}}return i}function uye(e){let t=e.child("numRef").exists()?e.child("numRef").child("numCache"):e.child("numCache");if(!t.exists())return;let n=t.child("formatCode");return n.exists()&&n.text()||void 0}function dye(e){let t=[],n="",i=!1;for(let r=0;r<e.length;r++){let o=e[r];if(o==='"'){i=!i,n+=o;continue}if(o===";"&&!i){t.push(n),n="";continue}n+=o}return t.push(n),t}function hye(e){let t=e.replace(/\[[^\]]+\]/g,""),n="";for(let i=0;i<t.length;i++){let r=t[i];if(r==='"'){for(i++;i<t.length&&t[i]!=='"';)i++;continue}if(r==="\\"){i+1<t.length&&(n+=t[++i]);continue}if(r==="_"||r==="*"){i++;continue}n+=r}return n.trim()}function fye(e,t){let n=dye(t),i=e<0&&n.length>1,r=i?n[1]:n[0],o=hye(r);if(!/[#0]/.test(o)||!o.includes(",")&&n.length===1)return;let a=o.match(/\.(0+|#+)/),s=a?a[1].length:0,l=o.includes(","),c=(i?Math.abs(e):e).toLocaleString("en-US",{useGrouping:l,minimumFractionDigits:a!=null&&a[1].includes("0")?s:0,maximumFractionDigits:s});return i?o.includes("(")&&o.includes(")")?`(${c})`:o.includes("-")?`-${c}`:c:c}function eo(e,t){if(!t||t==="General")return Number.isInteger(e)?String(e):parseFloat(e.toFixed(2)).toString();if(t.includes("%")){let r=t.match(/0\.(0+)%/),o=r?r[1].length:0;return`${(e*100).toFixed(o)}%`}let n=fye(e,t);if(n!==void 0)return n;let i=t.match(/\.(0+|#+)/);if(i){let r=i[1].length;return parseFloat(e.toFixed(r)).toString()}return/^[#0,]+$/.test(t.replace(/[[\]"\\]/g,""))?Math.round(e).toString():Number.isInteger(e)?String(e):parseFloat(e.toFixed(2)).toString()}function n7(e){return fN(e).values}function fN(e){let t=e.child("numRef").exists()?e.child("numRef").child("numCache"):e.child("numCache");if(!t.exists())return{values:[],blankIndices:new Set};let n=u4(t),i=new Array(n).fill(0),r=new Set;for(let o=0;o<n;o++)r.add(o);for(let o of t.children("pt")){let a=o.numAttr("idx");if(d4(a,n)){let s=o.child("v").text().trim(),l=parseFloat(s);s!==""&&!isNaN(l)&&(i[a]=l,r.delete(a))}}return{values:i,blankIndices:r}}function pye(e){let t=u4(e),n=new Array(t).fill(""),i=e.child("formatCode").text(),r=i&&/[yYmMdD]/.test(i)&&!/[#0]/.test(i);for(let o of e.children("pt")){let a=o.numAttr("idx");if(d4(a,t)){let s=o.child("v").text();r&&s?n[a]=mye(parseFloat(s)):n[a]=s}}return n}function mye(e){if(!Number.isFinite(e)||e<1)return String(e);let t=e>59?e-1:e,n=Date.UTC(1899,11,31),i=new Date(n+t*864e5);return`${i.getUTCFullYear()}/${i.getUTCMonth()+1}/${i.getUTCDate()}`}function Ea(e){return e.exists()?LK(e.attr("val"),!0):!1}function LK(e,t){return yr(e,t)}var pN=function(e,t){return pN=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},pN(e,t)};function ze(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");pN(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var gye=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),vye=(function(){function e(){this.browser=new gye,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 e})(),Rt=new vye;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Rt.wxa=!0,Rt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Rt.worker=!0:!Rt.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Rt.node=!0,Rt.svgSupported=!0):yye(navigator.userAgent,Rt);function yye(e,t){var n=t.browser,i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var h4=12,bye="sans-serif",_u=h4+"px "+bye,xye=20,_ye=100,Sye="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function $ye(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n<e.length;n++){var i=String.fromCharCode(n+32),r=(e.charCodeAt(n)-xye)/_ye;t[i]=r}return t}var wye=$ye(Sye),Fl={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(n,i){if(!e){var r=Fl.createCanvas();e=r&&r.getContext("2d")}if(e)return t!==i&&(t=e.font=i||_u),e.measureText(n);n=n||"",i=i||_u;var o=/((?:\d+)?\.?\d*)px/.exec(i),a=o&&+o[1]||h4,s=0;if(i.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var c=wye[n[l]];s+=c==null?a:c*a}return{width:s}}})(),loadImage:function(e,t,n){var i=new Image;return i.onload=t,i.onerror=n,i.src=e,i}},EK=ql(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),DK=ql(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),$x=Object.prototype.toString,X2=Array.prototype,kye=X2.forEach,Mye=X2.filter,f4=X2.slice,Cye=X2.map,i7=(function(){}).constructor,Aw=i7?i7.prototype:null,p4="__proto__",zye=2311;function OK(){return zye++}function m4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Ht(e){if(e==null||typeof e!="object")return e;var t=e,n=$x.call(e);if(n==="[object Array]"){if(!Ub(e)){t=[];for(var i=0,r=e.length;i<r;i++)t[i]=Ht(e[i])}}else if(DK[n]){if(!Ub(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(var i=0,r=e.length;i<r;i++)t[i]=e[i]}}}else if(!EK[n]&&!Ub(e)&&!rx(e)){t={};for(var a in e)e.hasOwnProperty(a)&&a!==p4&&(t[a]=Ht(e[a]))}return t}function an(e,t,n){if(!gt(t)||!gt(e))return n?Ht(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==p4){var r=e[i],o=t[i];gt(o)&&gt(r)&&!Ne(o)&&!Ne(r)&&!rx(o)&&!rx(r)&&!r7(o)&&!r7(r)&&!Ub(o)&&!Ub(r)?an(r,o,n):(n||!(i in e))&&(e[i]=Ht(t[i]))}return e}function ke(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==p4&&(e[n]=t[n]);return e}function Pt(e,t,n){for(var i=hn(t),r=0,o=i.length;r<o;r++){var a=i[r];(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}function Zt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1}function Tye(e,t){var n=e.prototype;function i(){}i.prototype=t.prototype,e.prototype=new i;for(var r in n)n.hasOwnProperty(r)&&(e.prototype[r]=n[r]);e.prototype.constructor=e,e.superClass=t}function da(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),r=0;r<i.length;r++){var o=i[r];o!=="constructor"&&(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}else Pt(e,t,n)}function Lr(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function Z(e,t,n){if(e&&t)if(e.forEach&&e.forEach===kye)e.forEach(t,n);else if(e.length===+e.length)for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function Ye(e,t,n){if(!e)return[];if(!t)return g4(e);if(e.map&&e.map===Cye)return e.map(t,n);for(var i=[],r=0,o=e.length;r<o;r++)i.push(t.call(n,e[r],r,e));return i}function ql(e,t,n,i){if(e&&t){for(var r=0,o=e.length;r<o;r++)n=t.call(i,n,e[r],r,e);return n}}function Kn(e,t,n){if(!e)return[];if(!t)return g4(e);if(e.filter&&e.filter===Mye)return e.filter(t,n);for(var i=[],r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)&&i.push(e[r]);return i}function NK(e,t,n){if(e&&t){for(var i=0,r=e.length;i<r;i++)if(t.call(n,e[i],i,e))return e[i]}}function hn(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Aye(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return e.apply(t,n.concat(f4.call(arguments)))}}var Qt=Aw&&_t(Aw.bind)?Aw.call.bind(Aw.bind):Aye;function ai(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(f4.call(arguments)))}}function Ne(e){return Array.isArray?Array.isArray(e):$x.call(e)==="[object Array]"}function _t(e){return typeof e=="function"}function rt(e){return typeof e=="string"}function mN(e){return $x.call(e)==="[object String]"}function bn(e){return typeof e=="number"}function gt(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function r7(e){return!!EK[$x.call(e)]}function io(e){return!!DK[$x.call(e)]}function rx(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function K2(e){return e.colorStops!=null}function Iye(e){return e.image!=null}function ox(e){return e!==e}function t2(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e.length;n<i;n++)if(e[n]!=null)return e[n]}function pt(e,t){return e??t}function gu(e,t,n){return e??t??n}function g4(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return f4.apply(e,t)}function v4(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Vl(e,t){if(!e)throw new Error(t)}function bs(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var PK="__ec_primitive__";function gN(e){e[PK]=!0}function Ub(e){return e[PK]}var Rye=(function(){function e(){this.data={}}return e.prototype.delete=function(t){var n=this.has(t);return n&&delete this.data[t],n},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,n){return this.data[t]=n,this},e.prototype.keys=function(){return hn(this.data)},e.prototype.forEach=function(t){var n=this.data;for(var i in n)n.hasOwnProperty(i)&&t(n[i],i)},e})(),jK=typeof Map=="function";function Lye(){return jK?new Map:new Rye}var Eye=(function(){function e(t){var n=Ne(t);this.data=Lye();var i=this;t instanceof e?t.each(r):t&&Z(t,r);function r(o,a){n?i.set(o,a):i.set(a,o)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,n){return this.data.set(t,n),n},e.prototype.each=function(t,n){this.data.forEach(function(i,r){t.call(n,i,r)})},e.prototype.keys=function(){var t=this.data.keys();return jK?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function Nt(e){return new Eye(e)}function Dye(e,t){for(var n=new e.constructor(e.length+t.length),i=0;i<e.length;i++)n[i]=e[i];for(var r=e.length,i=0;i<t.length;i++)n[i+r]=t[i];return n}function J2(e,t){var n;if(Object.create)n=Object.create(e);else{var i=function(){};i.prototype=e,n=new i}return t&&ke(n,t),n}function UK(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Ie(e,t){return e.hasOwnProperty(t)}function no(){}var Oye=180/Math.PI;function Xm(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Nye(e){return[e[0],e[1]]}function o7(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Pye(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function jye(e){return Math.sqrt(Uye(e))}function Uye(e){return e[0]*e[0]+e[1]*e[1]}function wD(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Bye(e,t){var n=jye(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function vN(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var yN=vN;function Fye(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Im=Fye;function kD(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function sa(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[2]*r+n[4],e[1]=n[1]*i+n[3]*r+n[5],e}function Sm(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function $m(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Qp=(function(){function e(t,n){this.target=t,this.topTarget=n&&n.topTarget}return e})(),qye=(function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var n=t.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Qp(n,t),"dragstart",t.event))},e.prototype._drag=function(t){var n=this._draggingTarget;if(n){var i=t.offsetX,r=t.offsetY,o=i-this._x,a=r-this._y;this._x=i,this._y=r,n.drift(o,a,t),this.handler.dispatchToElement(new Qp(n,t),"drag",t.event);var s=this.handler.findHover(i,r,n).target,l=this._dropTarget;this._dropTarget=s,n!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Qp(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Qp(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Qp(n,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Qp(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),Es=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,n,i,r){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof n=="function"&&(r=i,i=n,n=null),!i||!t)return this;var a=this._$eventProcessor;n!=null&&a&&a.normalizeQuery&&(n=a.normalizeQuery(n)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===i)return this;var l={h:i,query:n,ctx:r||this,callAtLast:i.zrEventfulCallAtLast},c=o[t].length-1,u=o[t][c];return u&&u.callAtLast?o[t].splice(c,0,l):o[t].push(l),this},e.prototype.isSilent=function(t){var n=this._$handlers;return!n||!n[t]||!n[t].length},e.prototype.off=function(t,n){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(n){if(i[t]){for(var r=[],o=0,a=i[t].length;o<a;o++)i[t][o].h!==n&&r.push(i[t][o]);i[t]=r}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},e.prototype.trigger=function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(!this._$handlers)return this;var r=this._$handlers[t],o=this._$eventProcessor;if(r)for(var a=n.length,s=r.length,l=0;l<s;l++){var c=r[l];if(!(o&&o.filter&&c.query!=null&&!o.filter(t,c.query)))switch(a){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,n[0]);break;case 2:c.h.call(c.ctx,n[0],n[1]);break;default:c.h.apply(c.ctx,n);break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(!this._$handlers)return this;var r=this._$handlers[t],o=this._$eventProcessor;if(r)for(var a=n.length,s=n[a-1],l=r.length,c=0;c<l;c++){var u=r[c];if(!(o&&o.filter&&u.query!=null&&!o.filter(t,u.query)))switch(a){case 0:u.h.call(s);break;case 1:u.h.call(s,n[0]);break;case 2:u.h.call(s,n[0],n[1]);break;default:u.h.apply(s,n.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e})(),Vye=Math.log(2);function bN(e,t,n,i,r,o){var a=i+"-"+r,s=e.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<<s)-1&~r)/Vye);return e[n][l]}for(var c=i|1<<n,u=n+1;i&1<<u;)u++;for(var d=0,f=0,h=0;f<s;f++){var p=1<<f;p&r||(d+=(h%2?-1:1)*e[n][f]*bN(e,t-1,u,c,r|p,o),h++)}return o[a]=d,d}function a7(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},r=bN(n,8,0,0,0,i);if(r!==0){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*bN(n,7,a===0?1:0,1<<a,1<<s,i)/r*t[a];return function(l,c,u){var d=c*o[6]+u*o[7]+1;l[0]=(c*o[0]+u*o[1]+o[2])/d,l[1]=(c*o[3]+u*o[4]+o[5])/d}}}var n2="___zrEVENTSAVED",MD=[];function Hye(e,t,n,i,r){return xN(MD,t,i,r,!0)&&xN(e,n,MD[0],MD[1])}function Zye(e,t){e&&n(e),t&&n(t);function n(i){var r=i[n2];r&&(r.clearMarkers&&r.clearMarkers(),delete i[n2])}}function xN(e,t,n,i,r){if(t.getBoundingClientRect&&Rt.domSupported&&!BK(t)){var o=t[n2]||(t[n2]={}),a=Gye(t,o),s=Wye(a,o,r);if(s)return s(e,n,i),!0}return!1}function Gye(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,c=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[c]+":0",i[1-l]+":auto",r[1-c]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return t.clearMarkers=function(){Z(n,function(u){u.parentNode&&u.parentNode.removeChild(u)})},n}function Wye(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],o=t.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var u=e[c].getBoundingClientRect(),d=2*c,f=u.left,h=u.top;a.push(f,h),l=l&&o&&f===o[d]&&h===o[d+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return l&&r?r:(t.srcCoords=a,t[i]=n?a7(s,a):a7(a,s))}function BK(e){return e.nodeName.toUpperCase()==="CANVAS"}var Yye=/([&<>"'])/g,Xye={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Jr(e){return e==null?"":(e+"").replace(Yye,function(t,n){return Xye[n]})}var Kye=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,CD=[],Jye=Rt.browser.firefox&&+Rt.browser.version.split(".")[0]<39;function _N(e,t,n,i){return n=n||{},i?s7(e,t,n):Jye&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):s7(e,t,n),n}function s7(e,t,n){if(Rt.domSupported&&e.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(BK(e)){var o=e.getBoundingClientRect();n.zrX=i-o.left,n.zrY=r-o.top;return}else if(xN(CD,e,i,r)){n.zrX=CD[0],n.zrY=CD[1];return}}n.zrX=n.zrY=0}function y4(e){return e||window.event}function Yo(e,t,n){if(t=y4(t),t.zrX!=null)return t;var i=t.type,r=i&&i.indexOf("touch")>=0;if(r){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&_N(e,o,t,n)}else{_N(e,t,t,n);var a=Qye(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Kye.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Qye(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,i=e.deltaY;if(n==null||i==null)return t;var r=Math.abs(i!==0?i:n),o=i>0?-1:i<0?1:n>0?-1:1;return 3*r*o}function ebe(e,t,n,i){e.addEventListener(t,n,i)}function tbe(e,t,n,i){e.removeEventListener(t,n,i)}var FK=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},nbe=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,i){return this._doTrack(t,n,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,i){var r=t.touches;if(r){for(var o={points:[],touches:[],target:n,event:t},a=0,s=r.length;a<s;a++){var l=r[a],c=_N(i,l,{});o.points.push([c.zrX,c.zrY]),o.touches.push(l)}this._track.push(o)}},e.prototype._recognize=function(t){for(var n in zD)if(zD.hasOwnProperty(n)){var i=zD[n](this._track,t);if(i)return i}},e})();function l7(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function ibe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var zD={pinch:function(e,t){var n=e.length;if(n){var i=(e[n-1]||{}).points,r=(e[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=l7(i)/l7(r);!isFinite(o)&&(o=1),t.pinchScale=o;var a=ibe(i);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}};function Dl(){return[1,0,0,1,0,0]}function b4(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function qK(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Bb(e,t,n){var i=t[0]*n[0]+t[2]*n[1],r=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=r,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function SN(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function x4(e,t,n,i){i===void 0&&(i=[0,0]);var r=t[0],o=t[2],a=t[4],s=t[1],l=t[3],c=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=r*d+s*u,e[1]=-r*u+s*d,e[2]=o*d+l*u,e[3]=-o*u+d*l,e[4]=d*(a-i[0])+u*(c-i[1])+i[0],e[5]=d*(c-i[1])-u*(a-i[0])+i[1],e}function rbe(e,t,n){var i=n[0],r=n[1];return e[0]=t[0]*i,e[1]=t[1]*r,e[2]=t[2]*i,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*r,e}function Km(e,t){var n=t[0],i=t[2],r=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*i;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-a*r)*l,e[5]=(o*r-n*s)*l,e):null}var At=(function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,i=this.y-t.y;return Math.sqrt(n*n+i*i)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,i=this.y-t.y;return n*n+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,i=this.y;return this.x=t[0]*n+t[2]*i+t[4],this.y=t[1]*n+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,i){t.x=n,t.y=i},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,i){t.x=n.x+i.x,t.y=n.y+i.y},e.sub=function(t,n,i){t.x=n.x-i.x,t.y=n.y-i.y},e.scale=function(t,n,i){t.x=n.x*i,t.y=n.y*i},e.scaleAndAdd=function(t,n,i,r){t.x=n.x+i.x*r,t.y=n.y+i.y*r},e.lerp=function(t,n,i,r){var o=1-r;t.x=o*n.x+r*i.x,t.y=o*n.y+r*i.y},e})(),ph=Math.min,wm=Math.max,$N=Math.abs,c7=["x","y"],obe=["width","height"],Fd=new At,qd=new At,Vd=new At,Hd=new At,xo=VK(),Ib=xo.minTv,wN=xo.maxTv,Fb=[0,0],It=(function(){function e(t,n,i,r){e.set(this,t,n,i,r)}return e.set=function(t,n,i,r,o){return r<0&&(n=n+r,r=-r),o<0&&(i=i+o,o=-o),t.x=n,t.y=i,t.width=r,t.height=o,t},e.prototype.union=function(t){var n=ph(t.x,this.x),i=ph(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=wm(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=wm(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=n,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,i=t.width/n.width,r=t.height/n.height,o=Dl();return SN(o,o,[-n.x,-n.y]),rbe(o,o,[i,r]),SN(o,o,[t.x,t.y]),o},e.prototype.intersect=function(t,n,i){return e.intersect(this,t,n,i)},e.intersect=function(t,n,i,r){i&&At.set(i,0,0);var o=r&&r.outIntersectRect||null,a=r&&r.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!t||!n)return!1;t instanceof e||(t=e.set(abe,t.x,t.y,t.width,t.height)),n instanceof e||(n=e.set(sbe,n.x,n.y,n.width,n.height));var s=!!i;xo.reset(r,s);var l=xo.touchThreshold,c=t.x+l,u=t.x+t.width-l,d=t.y+l,f=t.y+t.height-l,h=n.x+l,p=n.x+n.width-l,g=n.y+l,v=n.y+n.height-l;if(c>u||d>f||h>p||g>v)return!1;var m=!(u<h||p<c||f<g||v<d);return(s||o)&&(Fb[0]=1/0,Fb[1]=0,u7(c,u,h,p,0,s,o,a),u7(d,f,g,v,1,s,o,a),s&&At.copy(i,m?xo.useDir?xo.dirMinTv:Ib:wN)),m},e.contain=function(t,n,i){return n>=t.x&&n<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,n){return t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height,t},e.applyTransform=function(t,n,i){if(!i){t!==n&&e.copy(t,n);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];t.x=n.x*r+a,t.y=n.y*o+s,t.width=n.width*r,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Fd.x=Vd.x=n.x,Fd.y=Hd.y=n.y,qd.x=Hd.x=n.x+n.width,qd.y=Vd.y=n.y+n.height,Fd.transform(i),Hd.transform(i),qd.transform(i),Vd.transform(i),t.x=ph(Fd.x,qd.x,Vd.x,Hd.x),t.y=ph(Fd.y,qd.y,Vd.y,Hd.y);var l=wm(Fd.x,qd.x,Vd.x,Hd.x),c=wm(Fd.y,qd.y,Vd.y,Hd.y);t.width=l-t.x,t.height=c-t.y},e})(),abe=new It(0,0,0,0),sbe=new It(0,0,0,0);function u7(e,t,n,i,r,o,a,s){var l=$N(t-n),c=$N(i-e),u=ph(l,c),d=c7[r],f=c7[1-r],h=obe[r];t<n||i<e?l<c?(o&&(wN[d]=-l),s&&(a[d]=t,a[h]=0)):(o&&(wN[d]=c),s&&(a[d]=e,a[h]=0)):(a&&(a[d]=wm(e,n),a[h]=ph(t,i)-a[d]),o&&(u<Fb[0]||xo.useDir)&&(Fb[0]=ph(u,Fb[0]),(l<c||!xo.bidirectional)&&(Ib[d]=l,Ib[f]=0,xo.useDir&&xo.calcDirMTV()),(l>=c||!xo.bidirectional)&&(Ib[d]=-c,Ib[f]=0,xo.useDir&&xo.calcDirMTV())))}function VK(){var e=0,t=new At,n=new At,i={minTv:new At,maxTv:new At,useDir:!1,dirMinTv:new At,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(o,a){i.touchThreshold=0,o&&o.touchThreshold!=null&&(i.touchThreshold=wm(0,o.touchThreshold)),i.negativeSize=!1,a&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,o&&o.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),n.copy(i.minTv),e=o.direction,i.bidirectional=o.bidirectional==null||!!o.bidirectional,i.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var o=i.minTv,a=i.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(e),c=Math.cos(e),u=l*o.y+c*o.x;if(r(u)){r(o.x)&&r(o.y)&&a.set(0,0);return}if(n.x=s*c/u,n.y=s*l/u,r(n.x)&&r(n.y)){a.set(0,0);return}(i.bidirectional||t.dot(n)>0)&&n.len()<a.len()&&a.copy(n)}};function r(o){return $N(o)<1e-10}return i}var HK="silent";function lbe(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:cbe}}function cbe(){FK(this.event)}var ube=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Es),ub=(function(){function e(t,n){this.x=t,this.y=n}return e})(),dbe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],TD=new It(0,0,0,0),ZK=(function(e){ze(t,e);function t(n,i,r,o,a){var s=e.call(this)||this;return s._hovered=new ub(0,0),s.storage=n,s.painter=i,s.painterRoot=o,s._pointerSize=a,r=r||new ube,s.proxy=null,s.setHandlerProxy(r),s._draggingMgr=new qye(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(Z(dbe,function(i){n.on&&n.on(i,this[i],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var i=n.zrX,r=n.zrY,o=GK(this,i,r),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=o?new ub(i,r):this.findHover(i,r),c=l.target,u=this.proxy;u.setCursor&&u.setCursor(c?c.cursor:"default"),s&&c!==s&&this.dispatchToElement(a,"mouseout",n),this.dispatchToElement(l,"mousemove",n),c&&c!==s&&this.dispatchToElement(l,"mouseover",n)},t.prototype.mouseout=function(n){var i=n.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new ub(0,0)},t.prototype.dispatch=function(n,i){var r=this[n];r&&r.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var i=this.proxy;i.setCursor&&i.setCursor(n)},t.prototype.dispatchToElement=function(n,i,r){n=n||{};var o=n.target;if(!(o&&o.silent)){for(var a="on"+i,s=lbe(i,n,r);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(i,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(n,i,r){var o=this.storage.getDisplayList(),a=new ub(n,i);if(d7(o,a,n,i,r),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,c=l/2,u=new It(n-c,i-c,l,l),d=o.length-1;d>=0;d--){var f=o[d];f!==r&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(TD.copy(f.getBoundingRect()),f.transform&&TD.applyTransform(f.transform),TD.intersect(u)&&s.push(f))}if(s.length)for(var h=4,p=Math.PI/12,g=Math.PI*2,v=0;v<c;v+=h)for(var m=0;m<g;m+=p){var y=n+v*Math.cos(m),b=i+v*Math.sin(m);if(d7(s,a,y,b,r),a.target)return a}}return a},t.prototype.processGesture=function(n,i){this._gestureMgr||(this._gestureMgr=new nbe);var r=this._gestureMgr;i==="start"&&r.clear();var o=r.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(i==="end"&&r.clear(),o){var a=o.type;n.gestureEvent=a;var s=new ub;s.target=o.target,this.dispatchToElement(s,a,o.event)}},t})(Es);Z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){ZK.prototype[e]=function(t){var n=t.zrX,i=t.zrY,r=GK(this,n,i),o,a;if((e!=="mouseup"||!r)&&(o=this.findHover(n,i),a=o.target),e==="mousedown")this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if(e==="mouseup")this._upEl=a;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||yN(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function hbe(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var i=e,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(t,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return r?HK:!0}return!1}function d7(e,t,n,i,r){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==r&&!a.ignore&&(s=hbe(a,n,i))&&(!t.topTarget&&(t.topTarget=a),s!==HK)){t.target=a;break}}}function GK(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}var WK=32,db=7;function fbe(e){for(var t=0;e>=WK;)t|=e&1,e>>=1;return e+t}function h7(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){for(;r<n&&i(e[r],e[r-1])<0;)r++;pbe(e,t,r)}else for(;r<n&&i(e[r],e[r-1])>=0;)r++;return r-t}function pbe(e,t,n){for(n--;t<n;){var i=e[t];e[t++]=e[n],e[n--]=i}}function f7(e,t,n,i,r){for(i===t&&i++;i<n;i++){for(var o=e[i],a=t,s=i,l;a<s;)l=a+s>>>1,r(o,e[l])<0?s=l:a=l+1;var c=i-a;switch(c){case 3:e[a+3]=e[a+2];case 2:e[a+2]=e[a+1];case 1:e[a+1]=e[a];break;default:for(;c>0;)e[a+c]=e[a+c-1],c--}e[a]=o}}function AD(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])>0){for(s=i-r;l<s&&o(e,t[n+r+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(e,t[n+r-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=a;a=r-l,l=r-c}for(a++;a<l;){var u=a+(l-a>>>1);o(e,t[n+u])>0?a=u+1:l=u}return l}function ID(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])<0){for(s=r+1;l<s&&o(e,t[n+r-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=a;a=r-l,l=r-c}else{for(s=i-r;l<s&&o(e,t[n+r+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var u=a+(l-a>>>1);o(e,t[n+u])<0?l=u:a=u+1}return l}function mbe(e,t){var n=db,i,r,o=0,a=[];i=[],r=[];function s(h,p){i[o]=h,r[o]=p,o+=1}function l(){for(;o>1;){var h=o-2;if(h>=1&&r[h-1]<=r[h]+r[h+1]||h>=2&&r[h-2]<=r[h]+r[h-1])r[h-1]<r[h+1]&&h--;else if(r[h]>r[h+1])break;u(h)}}function c(){for(;o>1;){var h=o-2;h>0&&r[h-1]<r[h+1]&&h--,u(h)}}function u(h){var p=i[h],g=r[h],v=i[h+1],m=r[h+1];r[h]=g+m,h===o-3&&(i[h+1]=i[h+2],r[h+1]=r[h+2]),o--;var y=ID(e[v],e,p,g,0,t);p+=y,g-=y,g!==0&&(m=AD(e[p+g-1],e,v,m,m-1,t),m!==0&&(g<=m?d(p,g,v,m):f(p,g,v,m)))}function d(h,p,g,v){var m=0;for(m=0;m<p;m++)a[m]=e[h+m];var y=0,b=g,x=h;if(e[x++]=e[b++],--v===0){for(m=0;m<p;m++)e[x+m]=a[y+m];return}if(p===1){for(m=0;m<v;m++)e[x+m]=e[b+m];e[x+v]=a[y];return}for(var _=n,S,$,C;;){S=0,$=0,C=!1;do if(t(e[b],a[y])<0){if(e[x++]=e[b++],$++,S=0,--v===0){C=!0;break}}else if(e[x++]=a[y++],S++,$=0,--p===1){C=!0;break}while((S|$)<_);if(C)break;do{if(S=ID(e[b],a,y,p,0,t),S!==0){for(m=0;m<S;m++)e[x+m]=a[y+m];if(x+=S,y+=S,p-=S,p<=1){C=!0;break}}if(e[x++]=e[b++],--v===0){C=!0;break}if($=AD(a[y],e,b,v,0,t),$!==0){for(m=0;m<$;m++)e[x+m]=e[b+m];if(x+=$,b+=$,v-=$,v===0){C=!0;break}}if(e[x++]=a[y++],--p===1){C=!0;break}_--}while(S>=db||$>=db);if(C)break;_<0&&(_=0),_+=2}if(n=_,n<1&&(n=1),p===1){for(m=0;m<v;m++)e[x+m]=e[b+m];e[x+v]=a[y]}else{if(p===0)throw new Error;for(m=0;m<p;m++)e[x+m]=a[y+m]}}function f(h,p,g,v){var m=0;for(m=0;m<v;m++)a[m]=e[g+m];var y=h+p-1,b=v-1,x=g+v-1,_=0,S=0;if(e[x--]=e[y--],--p===0){for(_=x-(v-1),m=0;m<v;m++)e[_+m]=a[m];return}if(v===1){for(x-=p,y-=p,S=x+1,_=y+1,m=p-1;m>=0;m--)e[S+m]=e[_+m];e[x]=a[b];return}for(var $=n;;){var C=0,w=0,z=!1;do if(t(a[b],e[y])<0){if(e[x--]=e[y--],C++,w=0,--p===0){z=!0;break}}else if(e[x--]=a[b--],w++,C=0,--v===1){z=!0;break}while((C|w)<$);if(z)break;do{if(C=p-ID(a[b],e,h,p,p-1,t),C!==0){for(x-=C,y-=C,p-=C,S=x+1,_=y+1,m=C-1;m>=0;m--)e[S+m]=e[_+m];if(p===0){z=!0;break}}if(e[x--]=a[b--],--v===1){z=!0;break}if(w=v-AD(e[y],a,0,v,v-1,t),w!==0){for(x-=w,b-=w,v-=w,S=x+1,_=b+1,m=0;m<w;m++)e[S+m]=a[_+m];if(v<=1){z=!0;break}}if(e[x--]=e[y--],--p===0){z=!0;break}$--}while(C>=db||w>=db);if(z)break;$<0&&($=0),$+=2}if(n=$,n<1&&(n=1),v===1){for(x-=p,y-=p,S=x+1,_=y+1,m=p-1;m>=0;m--)e[S+m]=e[_+m];e[x]=a[b]}else{if(v===0)throw new Error;for(_=x-(v-1),m=0;m<v;m++)e[_+m]=a[m]}}return{mergeRuns:l,forceMergeRuns:c,pushRun:s}}function Ak(e,t,n,i){n||(n=0),i||(i=e.length);var r=i-n;if(!(r<2)){var o=0;if(r<WK){o=h7(e,n,i,t),f7(e,n,i,n+o,t);return}var a=mbe(e,t),s=fbe(r);do{if(o=h7(e,n,i,t),o<s){var l=r;l>s&&(l=s),f7(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(r!==0);a.forceMergeRuns()}}var _o=1,Rb=2,bm=4,p7=!1;function RD(){p7||(p7=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function m7(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var gbe=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=m7}return e.prototype.traverse=function(t,n){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,n)},e.prototype.getDisplayList=function(t,n){n=n||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(n),i},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var n=this._roots,i=this._displayList,r=0,o=n.length;r<o;r++)this._updateAndAddDisplayable(n[r],null,t);i.length=this._displayListLen,Ak(i,m7)},e.prototype._updateAndAddDisplayable=function(t,n,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath(),o=n&&n.length,a=0,s=t.__clipPaths;if(!t.ignoreClip&&(o||r)){if(s||(s=t.__clipPaths=[]),o)for(var l=0;l<n.length;l++)s[a++]=n[l];for(var c=r,u=t;c;)c.parent=u,c.updateTransform(),s[a++]=c,u=c,c=c.getClipPath()}if(s&&(s.length=a),t.childrenRef){for(var d=t.childrenRef(),f=0;f<d.length;f++){var h=d[f];t.__dirty&&(h.__dirty|=_o),this._updateAndAddDisplayable(h,s,i)}t.__dirty=0}else{var p=t;isNaN(p.z)&&(RD(),p.z=0),isNaN(p.z2)&&(RD(),p.z2=0),isNaN(p.zlevel)&&(RD(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var g=t.getDecalElement&&t.getDecalElement();g&&this._updateAndAddDisplayable(g,s,i);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,s,i);var m=t.getTextContent();m&&this._updateAndAddDisplayable(m,s,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,i=t.length;n<i;n++)this.delRoot(t[n]);return}var r=Zt(this._roots,t);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),i2;i2=Rt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var qb={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,i=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,n=.1,i=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,n=.1,i=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-qb.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?qb.bounceIn(e*2)*.5:qb.bounceOut(e*2-1)*.5+.5}},Iw=Math.pow,vu=Math.sqrt,r2=1e-8,YK=1e-4,g7=vu(3),Rw=1/3,gs=Xm(),ea=Xm(),Rm=Xm();function fu(e){return e>-r2&&e<r2}function XK(e){return e>r2||e<-r2}function Ci(e,t,n,i,r){var o=1-r;return o*o*(o*e+3*r*t)+r*r*(r*i+3*o*n)}function v7(e,t,n,i,r){var o=1-r;return 3*(((t-e)*o+2*(n-t)*r)*o+(i-n)*r*r)}function o2(e,t,n,i,r,o){var a=i+3*(t-n)-e,s=3*(n-t*2+e),l=3*(t-e),c=e-r,u=s*s-3*a*l,d=s*l-9*a*c,f=l*l-3*s*c,h=0;if(fu(u)&&fu(d))if(fu(s))o[0]=0;else{var p=-l/s;p>=0&&p<=1&&(o[h++]=p)}else{var g=d*d-4*u*f;if(fu(g)){var v=d/u,p=-s/a+v,m=-v/2;p>=0&&p<=1&&(o[h++]=p),m>=0&&m<=1&&(o[h++]=m)}else if(g>0){var y=vu(g),b=u*s+1.5*a*(-d+y),x=u*s+1.5*a*(-d-y);b<0?b=-Iw(-b,Rw):b=Iw(b,Rw),x<0?x=-Iw(-x,Rw):x=Iw(x,Rw);var p=(-s-(b+x))/(3*a);p>=0&&p<=1&&(o[h++]=p)}else{var _=(2*u*s-3*a*d)/(2*vu(u*u*u)),S=Math.acos(_)/3,$=vu(u),C=Math.cos(S),p=(-s-2*$*C)/(3*a),m=(-s+$*(C+g7*Math.sin(S)))/(3*a),w=(-s+$*(C-g7*Math.sin(S)))/(3*a);p>=0&&p<=1&&(o[h++]=p),m>=0&&m<=1&&(o[h++]=m),w>=0&&w<=1&&(o[h++]=w)}}return h}function KK(e,t,n,i,r){var o=6*n-12*t+6*e,a=9*t+3*i-3*e-9*n,s=3*t-3*e,l=0;if(fu(a)){if(XK(o)){var c=-s/o;c>=0&&c<=1&&(r[l++]=c)}}else{var u=o*o-4*a*s;if(fu(u))r[0]=-o/(2*a);else if(u>0){var d=vu(u),c=(-o+d)/(2*a),f=(-o-d)/(2*a);c>=0&&c<=1&&(r[l++]=c),f>=0&&f<=1&&(r[l++]=f)}}return l}function a2(e,t,n,i,r,o){var a=(t-e)*r+e,s=(n-t)*r+t,l=(i-n)*r+n,c=(s-a)*r+a,u=(l-s)*r+s,d=(u-c)*r+c;o[0]=e,o[1]=a,o[2]=c,o[3]=d,o[4]=d,o[5]=u,o[6]=l,o[7]=i}function JK(e,t,n,i,r,o,a,s,l,c,u){var d,f=.005,h=1/0,p,g,v,m;gs[0]=l,gs[1]=c;for(var y=0;y<1;y+=.05)ea[0]=Ci(e,n,r,a,y),ea[1]=Ci(t,i,o,s,y),v=Im(gs,ea),v<h&&(d=y,h=v);h=1/0;for(var b=0;b<32&&!(f<YK);b++)p=d-f,g=d+f,ea[0]=Ci(e,n,r,a,p),ea[1]=Ci(t,i,o,s,p),v=Im(ea,gs),p>=0&&v<h?(d=p,h=v):(Rm[0]=Ci(e,n,r,a,g),Rm[1]=Ci(t,i,o,s,g),m=Im(Rm,gs),g<=1&&m<h?(d=g,h=m):f*=.5);return u&&(u[0]=Ci(e,n,r,a,d),u[1]=Ci(t,i,o,s,d)),vu(h)}function vbe(e,t,n,i,r,o,a,s,l){for(var c=e,u=t,d=0,f=1/l,h=1;h<=l;h++){var p=h*f,g=Ci(e,n,r,a,p),v=Ci(t,i,o,s,p),m=g-c,y=v-u;d+=Math.sqrt(m*m+y*y),c=g,u=v}return d}function pr(e,t,n,i){var r=1-i;return r*(r*e+2*i*t)+i*i*n}function y7(e,t,n,i){return 2*((1-i)*(t-e)+i*(n-t))}function ybe(e,t,n,i,r){var o=e-2*t+n,a=2*(t-e),s=e-i,l=0;if(fu(o)){if(XK(a)){var c=-s/a;c>=0&&c<=1&&(r[l++]=c)}}else{var u=a*a-4*o*s;if(fu(u)){var c=-a/(2*o);c>=0&&c<=1&&(r[l++]=c)}else if(u>0){var d=vu(u),c=(-a+d)/(2*o),f=(-a-d)/(2*o);c>=0&&c<=1&&(r[l++]=c),f>=0&&f<=1&&(r[l++]=f)}}return l}function QK(e,t,n){var i=e+n-2*t;return i===0?.5:(e-t)/i}function s2(e,t,n,i,r){var o=(t-e)*i+e,a=(n-t)*i+t,s=(a-o)*i+o;r[0]=e,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function eJ(e,t,n,i,r,o,a,s,l){var c,u=.005,d=1/0;gs[0]=a,gs[1]=s;for(var f=0;f<1;f+=.05){ea[0]=pr(e,n,r,f),ea[1]=pr(t,i,o,f);var h=Im(gs,ea);h<d&&(c=f,d=h)}d=1/0;for(var p=0;p<32&&!(u<YK);p++){var g=c-u,v=c+u;ea[0]=pr(e,n,r,g),ea[1]=pr(t,i,o,g);var h=Im(ea,gs);if(g>=0&&h<d)c=g,d=h;else{Rm[0]=pr(e,n,r,v),Rm[1]=pr(t,i,o,v);var m=Im(Rm,gs);v<=1&&m<d?(c=v,d=m):u*=.5}}return l&&(l[0]=pr(e,n,r,c),l[1]=pr(t,i,o,c)),vu(d)}function bbe(e,t,n,i,r,o,a){for(var s=e,l=t,c=0,u=1/a,d=1;d<=a;d++){var f=d*u,h=pr(e,n,r,f),p=pr(t,i,o,f),g=h-s,v=p-l;c+=Math.sqrt(g*g+v*v),s=h,l=p}return c}var xbe=/cubic-bezier\(([0-9,\.e ]+)\)/;function tJ(e){var t=e&&xbe.exec(e);if(t){var n=t[1].split(","),i=+bs(n[0]),r=+bs(n[1]),o=+bs(n[2]),a=+bs(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:o2(0,i,o,1,l,s)&&Ci(0,r,a,1,s[0])}}}var _be=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||no,this.ondestroy=t.ondestroy||no,this.onrestart=t.onrestart||no,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var i=this._life,r=t-this._startTime-this._pausedTime,o=r/i;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1)if(this.loop){var l=r%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=_t(t)?t:qb[t]||tJ(t)},e})(),nJ=(function(){function e(t){this.value=t}return e})(),Sbe=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new nJ(t);return this.insertEntry(n),n},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var n=t.prev,i=t.next;n?n.next=i:this.head=i,i?i.prev=n:this.tail=n,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),Om=(function(){function e(t){this._list=new Sbe,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var i=this._list,r=this._map,o=null;if(r[t]==null){var a=i.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=i.head;i.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new nJ(n),s.key=t,i.insertEntry(s),r[t]=s}return o},e.prototype.get=function(t){var n=this._map[t],i=this._list;if(n!=null)return n!==i.tail&&(i.remove(n),i.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),b7={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function yu(e){return e=Math.round(e),e<0?0:e>255?255:e}function kN(e){return e<0?0:e>1?1:e}function LD(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?yu(parseFloat(t)/100*255):yu(parseInt(t,10))}function yh(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?kN(parseFloat(t)/100):kN(parseFloat(t))}function ED(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Lw(e,t,n){return e+(t-e)*n}function Wo(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function MN(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var iJ=new Om(20),Ew=null;function em(e,t){Ew&&MN(Ew,t),Ew=iJ.put(e,Ew||t.slice())}function ws(e,t){if(e){t=t||[];var n=iJ.get(e);if(n)return MN(t,n);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in b7)return MN(t,b7[i]),em(e,t),t;var r=i.length;if(i.charAt(0)==="#"){if(r===4||r===5){var o=parseInt(i.slice(1,4),16);if(!(o>=0&&o<=4095)){Wo(t,0,0,0,1);return}return Wo(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,r===5?parseInt(i.slice(4),16)/15:1),em(e,t),t}else if(r===7||r===9){var o=parseInt(i.slice(1,7),16);if(!(o>=0&&o<=16777215)){Wo(t,0,0,0,1);return}return Wo(t,(o&16711680)>>16,(o&65280)>>8,o&255,r===9?parseInt(i.slice(7),16)/255:1),em(e,t),t}return}var a=i.indexOf("("),s=i.indexOf(")");if(a!==-1&&s+1===r){var l=i.substr(0,a),c=i.substr(a+1,s-(a+1)).split(","),u=1;switch(l){case"rgba":if(c.length!==4)return c.length===3?Wo(t,+c[0],+c[1],+c[2],1):Wo(t,0,0,0,1);u=yh(c.pop());case"rgb":if(c.length>=3)return Wo(t,LD(c[0]),LD(c[1]),LD(c[2]),c.length===3?u:yh(c[3])),em(e,t),t;Wo(t,0,0,0,1);return;case"hsla":if(c.length!==4){Wo(t,0,0,0,1);return}return c[3]=yh(c[3]),CN(c,t),em(e,t),t;case"hsl":if(c.length!==3){Wo(t,0,0,0,1);return}return CN(c,t),em(e,t),t;default:return}}Wo(t,0,0,0,1)}}function CN(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=yh(e[1]),r=yh(e[2]),o=r<=.5?r*(i+1):r+i-r*i,a=r*2-o;return t=t||[],Wo(t,yu(ED(a,o,n+1/3)*255),yu(ED(a,o,n)*255),yu(ED(a,o,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function $be(e){if(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255,r=Math.min(t,n,i),o=Math.max(t,n,i),a=o-r,s=(o+r)/2,l,c;if(a===0)l=0,c=0;else{s<.5?c=a/(o+r):c=a/(2-o-r);var u=((o-t)/6+a/2)/a,d=((o-n)/6+a/2)/a,f=((o-i)/6+a/2)/a;t===o?l=f-d:n===o?l=1/3+u-f:i===o&&(l=2/3+d-u),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,c,s];return e[3]!=null&&h.push(e[3]),h}}function x7(e,t){var n=ws(e);if(n){for(var i=0;i<3;i++)n[i]=n[i]*(1-t)|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return kx(n,n.length===4?"rgba":"rgb")}}function wbe(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=ws(t[r]),s=ws(t[o]),l=i-r,c=kx([yu(Lw(a[0],s[0],l)),yu(Lw(a[1],s[1],l)),yu(Lw(a[2],s[2],l)),kN(Lw(a[3],s[3],l))],"rgba");return n?{color:c,leftIndex:r,rightIndex:o,value:i}:c}}function zN(e,t,n,i){var r=ws(e);if(e)return r=$be(r),n!=null&&(r[1]=yh(_t(n)?n(r[1]):n)),i!=null&&(r[2]=yh(_t(i)?i(r[2]):i)),kx(CN(r),"rgba")}function kx(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function l2(e,t){var n=ws(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var _7=new Om(100);function S7(e){if(rt(e)){var t=_7.get(e);return t||(t=x7(e,-.1),_7.put(e,t)),t}else if(K2(e)){var n=ke({},e);return n.colorStops=Ye(e.colorStops,function(i){return{offset:i.offset,color:x7(i.color,-.1)}}),n}return e}function kbe(e){return e.type==="linear"}function Mbe(e){return e.type==="radial"}(function(){return Rt.hasGlobalWindow&&_t(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var TN=Array.prototype.slice;function zl(e,t,n){return(t-e)*n+e}function DD(e,t,n,i){for(var r=t.length,o=0;o<r;o++)e[o]=zl(t[o],n[o],i);return e}function Cbe(e,t,n,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=zl(t[a][s],n[a][s],i)}return e}function Dw(e,t,n,i){for(var r=t.length,o=0;o<r;o++)e[o]=t[o]+n[o]*i;return e}function $7(e,t,n,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*i}return e}function zbe(e,t){for(var n=e.length,i=t.length,r=n>i?t:e,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function Tbe(e,t,n){var i=e,r=t;if(!(!i.push||!r.push)){var o=i.length,a=r.length;if(o!==a){var s=o>a;if(s)i.length=a;else for(var l=o;l<a;l++)i.push(n===1?r[l]:TN.call(r[l]))}for(var c=i[0]&&i[0].length,l=0;l<i.length;l++)if(n===1)isNaN(i[l])&&(i[l]=r[l]);else for(var u=0;u<c;u++)isNaN(i[l][u])&&(i[l][u]=r[l][u])}}function Vb(e){if(Lr(e)){var t=e.length;if(Lr(e[0])){for(var n=[],i=0;i<t;i++)n.push(TN.call(e[i]));return n}return TN.call(e)}return e}function Ik(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function Abe(e){return Lr(e&&e[0])?2:1}var Ow=0,Rk=1,rJ=2,Lb=3,AN=4,IN=5,w7=6;function k7(e){return e===AN||e===IN}function Nw(e){return e===Rk||e===rJ}var hb=[0,0,0,0],Ibe=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,i){this._needsSort=!0;var r=this.keyframes,o=r.length,a=!1,s=w7,l=n;if(Lr(n)){var c=Abe(n);s=c,(c===1&&!bn(n[0])||c===2&&!bn(n[0][0]))&&(a=!0)}else if(bn(n)&&!ox(n))s=Ow;else if(rt(n))if(!isNaN(+n))s=Ow;else{var u=ws(n);u&&(l=u,s=Lb)}else if(K2(n)){var d=ke({},l);d.colorStops=Ye(n.colorStops,function(h){return{offset:h.offset,color:ws(h.color)}}),kbe(n)?s=AN:Mbe(n)&&(s=IN),l=d}o===0?this.valType=s:(s!==this.valType||s===w7)&&(a=!0),this.discrete=this.discrete||a;var f={time:t,value:l,rawValue:n,percent:0};return i&&(f.easing=i,f.easingFunc=_t(i)?i:qb[i]||tJ(i)),r.push(f),f},e.prototype.prepare=function(t,n){var i=this.keyframes;this._needsSort&&i.sort(function(g,v){return g.time-v.time});for(var r=this.valType,o=i.length,a=i[o-1],s=this.discrete,l=Nw(r),c=k7(r),u=0;u<o;u++){var d=i[u],f=d.value,h=a.value;d.percent=d.time/t,s||(l&&u!==o-1?Tbe(f,h,r):c&&zbe(f.colorStops,h.colorStops))}if(!s&&r!==IN&&n&&this.needsAnimate()&&n.needsAnimate()&&r===n.valType&&!n._finished){this._additiveTrack=n;for(var p=i[0].value,u=0;u<o;u++)r===Ow?i[u].additiveValue=i[u].value-p:r===Lb?i[u].additiveValue=Dw([],i[u].value,p,-1):Nw(r)&&(i[u].additiveValue=r===Rk?Dw([],i[u].value,p,-1):$7([],i[u].value,p,-1))}},e.prototype.step=function(t,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,r=i?"additiveValue":"value",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,c=o===Lb,u,d=this._lastFr,f=Math.min,h,p;if(s===1)h=p=a[0];else{if(n<0)u=0;else if(n<this._lastFrP){var g=f(d+1,s-1);for(u=g;u>=0&&!(a[u].percent<=n);u--);u=f(u,s-2)}else{for(u=d;u<s&&!(a[u].percent>n);u++);u=f(u-1,s-2)}p=a[u+1],h=a[u]}if(h&&p){this._lastFr=u,this._lastFrP=n;var v=p.percent-h.percent,m=v===0?1:f((n-h.percent)/v,1);p.easingFunc&&(m=p.easingFunc(m));var y=i?this._additiveValue:c?hb:t[l];if((Nw(o)||c)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:p.rawValue;else if(Nw(o))o===Rk?DD(y,h[r],p[r],m):Cbe(y,h[r],p[r],m);else if(k7(o)){var b=h[r],x=p[r],_=o===AN;t[l]={type:_?"linear":"radial",x:zl(b.x,x.x,m),y:zl(b.y,x.y,m),colorStops:Ye(b.colorStops,function($,C){var w=x.colorStops[C];return{offset:zl($.offset,w.offset,m),color:Ik(DD([],$.color,w.color,m))}}),global:x.global},_?(t[l].x2=zl(b.x2,x.x2,m),t[l].y2=zl(b.y2,x.y2,m)):t[l].r=zl(b.r,x.r,m)}else if(c)DD(y,h[r],p[r],m),i||(t[l]=Ik(y));else{var S=zl(h[r],p[r],m);i?this._additiveValue=S:t[l]=S}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,i=this.propName,r=this._additiveValue;n===Ow?t[i]=t[i]+r:n===Lb?(ws(t[i],hb),Dw(hb,hb,r,1),t[i]=Ik(hb)):n===Rk?Dw(t[i],t[i],r,1):n===rJ&&$7(t[i],t[i],r,1)},e})(),_4=(function(){function e(t,n,i,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&r){m4("Can' use additive animation on looped animation.");return}this._additiveAnimators=r,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,n,i){return this.whenWithKeys(t,n,hn(n),i)},e.prototype.whenWithKeys=function(t,n,i,r){for(var o=this._tracks,a=0;a<i.length;a++){var s=i[a],l=o[s];if(!l){l=o[s]=new Ibe(s);var c=void 0,u=this._getAdditiveTrack(s);if(u){var d=u.keyframes,f=d[d.length-1];c=f&&f.value,u.valType===Lb&&c&&(c=Ik(c))}else c=this._target[s];if(c==null)continue;t>0&&l.addKeyframe(0,Vb(c),r),this._trackKeys.push(s)}l.addKeyframe(t,Vb(n[s]),r)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,i=0;i<n;i++)t[i].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,n=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,n)for(var i=0;i<n.length;i++)n[i].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,n=this._trackKeys,i=0;i<n.length;i++)t[n[i]].setFinished()},e.prototype._getAdditiveTrack=function(t){var n,i=this._additiveAnimators;if(i)for(var r=0;r<i.length;r++){var o=i[r].getTrack(t);o&&(n=o)}return n},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var n=this,i=[],r=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),c=s.keyframes,u=c.length;if(s.prepare(r,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var d=c[u-1];d&&(n._target[s.propName]=d.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var f=new _be({life:r,loop:this._loop,delay:this._delay||0,onframe:function(h){n._started=2;var p=n._additiveAnimators;if(p){for(var g=!1,v=0;v<p.length;v++)if(p[v]._clip){g=!0;break}g||(n._additiveAnimators=null)}for(var v=0;v<i.length;v++)i[v].step(n._target,h);var m=n._onframeCbs;if(m)for(var v=0;v<m.length;v++)m[v](n._target,h)},ondestroy:function(){n._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),t&&f.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var n=this._clip;t&&n.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Ye(this._trackKeys,function(n){return t._tracks[n]})},e.prototype.stopTracks=function(t,n){if(!t.length||!this._clip)return!0;for(var i=this._tracks,r=this._trackKeys,o=0;o<t.length;o++){var a=i[t[o]];a&&!a.isFinished()&&(n?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,o=0;o<r.length;o++)if(!i[r[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,n,i){if(t){n=n||this._trackKeys;for(var r=0;r<n.length;r++){var o=n[r],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[i?0:s.length-1];l&&(t[o]=Vb(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,n){n=n||hn(t);for(var i=0;i<n.length;i++){var r=n[i],o=this._tracks[r];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,t[r]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e})();function km(){return new Date().getTime()}var Rbe=(function(e){ze(t,e);function t(n){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,n=n||{},i.stage=n.stage||{},i}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var i=n.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(n){if(n.animation){var i=n.prev,r=n.next;i?i.next=r:this._head=r,r?r.prev=i:this._tail=i,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var i=n.getClip();i&&this.removeClip(i),n.animation=null},t.prototype.update=function(n){for(var i=km()-this._pausedTime,r=i-this._time,o=this._head;o;){var a=o.next,s=o.step(i,r);s&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=i,n||(this.trigger("frame",r),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function i(){n._running&&(i2(i),!n._paused&&n.update())}i2(i)},t.prototype.start=function(){this._running||(this._time=km(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=km(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=km()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var i=n.next;n.prev=n.next=n.animation=null,n=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,i){i=i||{},this.start();var r=new _4(n,i.loop);return this.addAnimator(r),r},t})(Es),Lbe=300,OD=Rt.domSupported,ND=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=Ye(e,function(r){var o=r.replace("mouse","pointer");return n.hasOwnProperty(o)?o:r});return{mouse:e,touch:t,pointer:i}})(),M7={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},C7=!1;function RN(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Ebe(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function PD(e){e&&(e.zrByTouch=!0)}function Dbe(e,t){return Yo(e.dom,new Obe(e,t),!0)}function oJ(e,t){for(var n=t,i=!1;n&&n.nodeType!==9&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return i}var Obe=(function(){function e(t,n){this.stopPropagation=no,this.stopImmediatePropagation=no,this.preventDefault=no,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e})(),Ta={mousedown:function(e){e=Yo(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Yo(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Yo(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Yo(this.dom,e);var t=e.toElement||e.relatedTarget;oJ(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){C7=!0,e=Yo(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){C7||(e=Yo(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Yo(this.dom,e),PD(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ta.mousemove.call(this,e),Ta.mousedown.call(this,e)},touchmove:function(e){e=Yo(this.dom,e),PD(e),this.handler.processGesture(e,"change"),Ta.mousemove.call(this,e)},touchend:function(e){e=Yo(this.dom,e),PD(e),this.handler.processGesture(e,"end"),Ta.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Lbe&&Ta.click.call(this,e)},pointerdown:function(e){Ta.mousedown.call(this,e)},pointermove:function(e){RN(e)||Ta.mousemove.call(this,e)},pointerup:function(e){Ta.mouseup.call(this,e)},pointerout:function(e){RN(e)||Ta.mouseout.call(this,e)}};Z(["click","dblclick","contextmenu"],function(e){Ta[e]=function(t){t=Yo(this.dom,t),this.trigger(e,t)}});var LN={pointermove:function(e){RN(e)||LN.mousemove.call(this,e)},pointerup:function(e){LN.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function Nbe(e,t){var n=t.domHandlers;Rt.pointerEventsSupported?Z(ND.pointer,function(i){Lk(t,i,function(r){n[i].call(e,r)})}):(Rt.touchEventsSupported&&Z(ND.touch,function(i){Lk(t,i,function(r){n[i].call(e,r),Ebe(t)})}),Z(ND.mouse,function(i){Lk(t,i,function(r){r=y4(r),t.touching||n[i].call(e,r)})}))}function Pbe(e,t){Rt.pointerEventsSupported?Z(M7.pointer,n):Rt.touchEventsSupported||Z(M7.mouse,n);function n(i){function r(o){o=y4(o),oJ(e,o.target)||(o=Dbe(e,o),t.domHandlers[i].call(e,o))}Lk(t,i,r,{capture:!0})}}function Lk(e,t,n,i){e.mounted[t]=n,e.listenerOpts[t]=i,ebe(e.domTarget,t,n,i)}function jD(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&tbe(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var z7=(function(){function e(t,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=n}return e})(),jbe=(function(e){ze(t,e);function t(n,i){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=n,r.painterRoot=i,r._localHandlerScope=new z7(n,Ta),OD&&(r._globalHandlerScope=new z7(document,LN)),Nbe(r,r._localHandlerScope),r}return t.prototype.dispose=function(){jD(this._localHandlerScope),OD&&jD(this._globalHandlerScope)},t.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},t.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,OD&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var i=this._globalHandlerScope;n?Pbe(this,i):jD(i)}},t})(Es),aJ=1;Rt.hasGlobalWindow&&(aJ=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var c2=aJ,EN=.4,DN="#333",ON="#ccc",Ube="#eee",T7=b4,A7=5e-5;function Zd(e){return e>A7||e<-A7}var Gd=[],tm=[],UD=Dl(),BD=Math.abs,Q2=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Zd(this.rotation)||Zd(this.x)||Zd(this.y)||Zd(this.scaleX-1)||Zd(this.scaleY-1)||Zd(this.skewX)||Zd(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),i=this.transform;if(!(n||t)){i&&(T7(i),this.invTransform=null);return}i=i||Dl(),n?this.getLocalTransform(i):T7(i),t&&(n?Bb(i,t,i):qK(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Gd);var i=Gd[0]<0?-1:1,r=Gd[1]<0?-1:1,o=((Gd[0]-i)*n+i)/Gd[0]||0,a=((Gd[1]-r)*n+r)/Gd[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||Dl(),Km(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),o=Math.PI/2+r-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(o),n=Math.sqrt(n),this.skewX=o,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Dl(),Bb(tm,t.invTransform,n),n=tm);var i=this.originX,r=this.originY;(i||r)&&(UD[4]=i,UD[5]=r,Bb(tm,n,UD),tm[4]-=i,tm[5]-=r,n=tm),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var i=[t,n],r=this.invTransform;return r&&sa(i,i,r),i},e.prototype.transformCoordToGlobal=function(t,n){var i=[t,n],r=this.transform;return r&&sa(i,i,r),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&BD(t[0]-1)>1e-10&&BD(t[3]-1)>1e-10?Math.sqrt(BD(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){NN(this,t)},e.getLocalTransform=function(t,n){n=n||[];var i=t.originX||0,r=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,c=t.rotation||0,u=t.x,d=t.y,f=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(i||r||s||l){var p=i+s,g=r+l;n[4]=-p*o-f*g*a,n[5]=-g*a-h*p*o}else n[4]=n[5]=0;return n[0]=o,n[3]=a,n[1]=h*o,n[2]=f*a,c&&x4(n,n,c),n[4]+=i+u,n[5]+=r+d,n},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),zs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function NN(e,t){for(var n=0;n<zs.length;n++){var i=zs[n];e[i]=t[i]}}function ks(e){Pw||(Pw=new Om(100)),e=e||_u;var t=Pw.get(e);return t||(t={font:e,strWidthCache:new Om(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Fl.measureText("\u56FD",e).width,asciiCharWidth:Fl.measureText("a",e).width},Pw.put(e,t)),t}var Pw;function Bbe(e){if(!(FD>=I7)){e=e||_u;for(var t=[],n=+new Date,i=0;i<=127;i++)t[i]=Fl.measureText(String.fromCharCode(i),e).width;var r=+new Date-n;return r>16?FD=I7:r>2&&FD++,t}}var FD=0,I7=5;function sJ(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=Bbe(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function Ms(e,t){var n=e.strWidthCache,i=n.get(t);return i==null&&(i=Fl.measureText(t,e.font).width,n.put(t,i)),i}function R7(e,t,n,i){var r=Ms(ks(t),e),o=eM(t),a=Nm(0,r,n),s=bh(0,o,i),l=new It(a,s,r,o);return l}function lJ(e,t,n,i){var r=((e||"")+"").split(`
`),o=r.length;if(o===1)return R7(r[0],t,n,i);for(var a=new It(0,0,0,0),s=0;s<r.length;s++){var l=R7(r[s],t,n,i);s===0?a.copy(l):a.union(l)}return a}function Nm(e,t,n,i){return n==="right"?i?e+=t:e-=t:n==="center"&&(i?e+=t/2:e-=t/2),e}function bh(e,t,n,i){return n==="middle"?i?e+=t/2:e-=t/2:n==="bottom"&&(i?e+=t:e-=t),e}function eM(e){return ks(e).stWideCharWidth}function Su(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function u2(e,t,n){var i=t.position||"inside",r=t.distance!=null?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,c=n.y,u="left",d="top";if(i instanceof Array)l+=Su(i[0],n.width),c+=Su(i[1],n.height),u=null,d=null;else switch(i){case"left":l-=r,c+=s,u="right",d="middle";break;case"right":l+=r+a,c+=s,d="middle";break;case"top":l+=a/2,c-=r,u="center",d="bottom";break;case"bottom":l+=a/2,c+=o+r,u="center";break;case"inside":l+=a/2,c+=s,u="center",d="middle";break;case"insideLeft":l+=r,c+=s,d="middle";break;case"insideRight":l+=a-r,c+=s,u="right",d="middle";break;case"insideTop":l+=a/2,c+=r,u="center";break;case"insideBottom":l+=a/2,c+=o-r,u="center",d="bottom";break;case"insideTopLeft":l+=r,c+=r;break;case"insideTopRight":l+=a-r,c+=r,u="right";break;case"insideBottomLeft":l+=r,c+=o-r,d="bottom";break;case"insideBottomRight":l+=a-r,c+=o-r,u="right",d="bottom";break}return e=e||{},e.x=l,e.y=c,e.align=u,e.verticalAlign=d,e}var qD="__zr_normal__",VD=zs.concat(["ignore"]),Fbe=ql(zs,function(e,t){return e[t]=!0,e},{ignore:!1}),nm={},qbe=new It(0,0,0,0),jw=[],tM=(function(){function e(t){this.id=OK(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,i){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,r=i.local,o=n.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=r?this:null;var c=!1;o.copyTransform(n);var u=i.position!=null,d=i.autoOverflowArea,f=void 0;if((d||u)&&(f=qbe,i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),r||f.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(nm,i,f):u2(nm,i,f),o.x=nm.x,o.y=nm.y,a=nm.align,s=nm.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var p=void 0,g=void 0;h==="center"?(p=f.width*.5,g=f.height*.5):(p=Su(h[0],f.width),g=Su(h[1],f.height)),c=!0,o.originX=-o.x+p+(r?0:f.x),o.originY=-o.y+g+(r?0:f.y)}}i.rotation!=null&&(o.rotation=i.rotation);var v=i.offset;v&&(o.x+=v[0],o.y+=v[1],c||(o.originX=-v[0],o.originY=-v[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(d){var y=m.overflowRect=m.overflowRect||new It(0,0,0,0);o.getLocalTransform(jw),Km(jw,jw),It.copy(y,f),y.applyTransform(jw)}else m.overflowRect=null;var b=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,x=void 0,_=void 0,S=void 0;b&&this.canBeInsideText()?(x=i.insideFill,_=i.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(_==null||_==="auto")&&(_=this.getInsideTextStroke(x),S=!0)):(x=i.outsideFill,_=i.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(_==null||_==="auto")&&(_=this.getOutsideStroke(x),S=!0)),x=x||"#000",(x!==m.fill||_!==m.stroke||S!==m.autoStroke||a!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=x,m.stroke=_,m.autoStroke=S,m.align=a,m.verticalAlign=s,n.setDefaultTextStyle(m)),n.__dirty|=_o,l&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ON:DN},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),i=typeof n=="string"&&ws(n);i||(i=[255,255,255,1]);for(var r=i[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)i[a]=i[a]*r+(o?0:255)*(1-r);return i[3]=1,kx(i,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},ke(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(gt(t))for(var i=t,r=hn(i),o=0;o<r.length;o++){var a=r[o];this.attrKV(a,t[a])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var n=this._normalState,i=0;i<this.animators.length;i++){var r=this.animators[i],o=r.__fromStateTransition;if(!(r.getLoop()||o&&o!==qD)){var a=r.targetName,s=a?n[a]:n;r.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var n=this._normalState;n||(n=this._normalState={}),t.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(t,n,VD)},e.prototype._savePrimaryToNormal=function(t,n,i){for(var r=0;r<i.length;r++){var o=i[r];t[o]!=null&&!(o in n)&&(n[o]=this[o])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(qD,!1,t)},e.prototype.useState=function(t,n,i,r){var o=t===qD,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(Zt(s,t)>=0&&(n||s.length===1))){var c;if(this.stateProxy&&!o&&(c=this.stateProxy(t)),c||(c=this.states&&this.states[t]),!c&&!o){m4("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(c);var u=!!(c&&c.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,c,this._normalState,n,!i&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(t,n,i,u),f&&f.useState(t,n,i,u),o?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_o),c}}},e.prototype.useStates=function(t,n,i){if(!t.length)this.clearStates();else{var r=[],o=this.currentStates,a=t.length,s=a===o.length;if(s){for(var l=0;l<a;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var c=t[l],u=void 0;this.stateProxy&&(u=this.stateProxy(c,t)),u||(u=this.states[c]),u&&r.push(u)}var d=r[a-1],f=!!(d&&d.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!n&&!this.__inHover&&p&&p.duration>0,p);var g=this._textContent,v=this._textGuide;g&&g.useStates(t,n,f),v&&v.useStates(t,n,f),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_o)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var n=t.__hostTarget;t=n?t.ignoreHostSilent?null:n:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var n=this.animators[t];n.targetName&&n.changeTarget(this[n.targetName])}},e.prototype.removeState=function(t){var n=Zt(this.currentStates,t);if(n>=0){var i=this.currentStates.slice();i.splice(n,1),this.useStates(i)}},e.prototype.replaceState=function(t,n,i){var r=this.currentStates.slice(),o=Zt(r,t),a=Zt(r,n)>=0;o>=0?a?r.splice(o,1):r[o]=n:i&&!a&&r.push(n),this.useStates(r)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},i,r=0;r<t.length;r++){var o=t[r];ke(n,o),o.textConfig&&(i=i||{},ke(i,o.textConfig))}return i&&(n.textConfig=i),n},e.prototype._applyStateObj=function(t,n,i,r,o,a){var s=!(n&&r);n&&n.textConfig?(this.textConfig=ke({},r?this.textConfig:i.textConfig),ke(this.textConfig,n.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},c=!1,u=0;u<VD.length;u++){var d=VD[u],f=o&&Fbe[d];n&&n[d]!=null?f?(c=!0,l[d]=n[d]):this[d]=n[d]:s&&i[d]!=null&&(f?(c=!0,l[d]=i[d]):this[d]=i[d])}if(!o)for(var u=0;u<this.animators.length;u++){var h=this.animators[u],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(n||i)[p]:n||i)}c&&this._transitionState(t,l,a)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var n=this.__zr;n&&t.addSelfToZr(n),t.__zr=n,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var n=this._textContent;n!==t&&(n&&n!==t&&this.removeTextContent(),t.innerTransformable=new Q2,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),ke(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=_o;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var n=this._textContent,i=this._textGuide;n&&(n.__inHover=t),i&&(i.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var n=this.animators;if(n)for(var i=0;i<n.length;i++)t.animation.addAnimator(n[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var i=0;i<n.length;i++)t.animation.removeAnimator(n[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,n,i){var r=t?this[t]:this,o=new _4(r,n,i);return t&&(o.targetName=t),this.addAnimator(o,t),o},e.prototype.addAnimator=function(t,n){var i=this.__zr,r=this;t.during(function(){r.updateDuringAnimation(n)}).done(function(){var o=r.animators,a=Zt(o,t);a>=0&&o.splice(a,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var i=this.animators,r=i.length,o=[],a=0;a<r;a++){var s=i[a];!t||t===s.scope?s.stop(n):o.push(s)}return this.animators=o,this},e.prototype.animateTo=function(t,n,i){HD(this,t,n,i)},e.prototype.animateFrom=function(t,n,i){HD(this,t,n,i,!0)},e.prototype._transitionState=function(t,n,i,r){for(var o=HD(this,n,i,r),a=0;a<o.length;a++)o[a].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=_o;function n(i,r,o,a){Object.defineProperty(t,i,{get:function(){if(!this[r]){var l=this[r]=[];s(this,l)}return this[r]},set:function(l){this[o]=l[0],this[a]=l[1],this[r]=l,s(this,l)}});function s(l,c){Object.defineProperty(c,0,{get:function(){return l[o]},set:function(u){l[o]=u}}),Object.defineProperty(c,1,{get:function(){return l[a]},set:function(u){l[a]=u}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),e})();da(tM,Es);da(tM,Q2);function HD(e,t,n,i,r){n=n||{};var o=[];cJ(e,"",e,t,n,i,o,r);var a=o.length,s=!1,l=n.done,c=n.aborted,u=function(){s=!0,a--,a<=0&&(s?l&&l():c&&c())},d=function(){a--,a<=0&&(s?l&&l():c&&c())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(p,g){n.during(g)});for(var f=0;f<o.length;f++){var h=o[f];u&&h.done(u),d&&h.aborted(d),n.force&&h.duration(n.duration),h.start(n.easing)}return o}function ZD(e,t,n){for(var i=0;i<n;i++)e[i]=t[i]}function Vbe(e){return Lr(e[0])}function Hbe(e,t,n){if(Lr(t[n]))if(Lr(e[n])||(e[n]=[]),io(t[n])){var i=t[n].length;e[n].length!==i&&(e[n]=new t[n].constructor(i),ZD(e[n],t[n],i))}else{var r=t[n],o=e[n],a=r.length;if(Vbe(r))for(var s=r[0].length,l=0;l<a;l++)o[l]?ZD(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else ZD(o,r,a);o.length=r.length}else e[n]=t[n]}function Zbe(e,t){return e===t||Lr(e)&&Lr(t)&&Gbe(e,t)}function Gbe(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function cJ(e,t,n,i,r,o,a,s){for(var l=hn(i),c=r.duration,u=r.delay,d=r.additive,f=r.setToFinal,h=!gt(o),p=e.animators,g=[],v=0;v<l.length;v++){var m=l[v],y=i[m];if(y!=null&&n[m]!=null&&(h||o[m]))if(gt(y)&&!Lr(y)&&!K2(y)){if(t){s||(n[m]=y,e.updateDuringAnimation(t));continue}cJ(e,m,n[m],y,r,o&&o[m],a,s)}else g.push(m);else s||(n[m]=y,e.updateDuringAnimation(t),g.push(m))}var b=g.length;if(!d&&b)for(var x=0;x<p.length;x++){var _=p[x];if(_.targetName===t){var S=_.stopTracks(g);if(S){var $=Zt(p,_);p.splice($,1)}}}if(r.force||(g=Kn(g,function(A){return!Zbe(i[A],n[A])}),b=g.length),b>0||r.force&&!a.length){var C=void 0,w=void 0,z=void 0;if(s){w={},f&&(C={});for(var x=0;x<b;x++){var m=g[x];w[m]=n[m],f?C[m]=i[m]:n[m]=i[m]}}else if(f){z={};for(var x=0;x<b;x++){var m=g[x];z[m]=Vb(n[m]),Hbe(n,i,m)}}var _=new _4(n,!1,!1,d?Kn(p,function(M){return M.targetName===t}):null);_.targetName=t,r.scope&&(_.scope=r.scope),f&&C&&_.whenWithKeys(0,C,g),z&&_.whenWithKeys(0,z,g),_.whenWithKeys(c??500,s?w:i,g).delay(u||0),e.addAnimator(_,t),a.push(_)}}var Jn=(function(e){ze(t,e);function t(n){var i=e.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(n),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(n){return this._children[n]},t.prototype.childOfName=function(n){for(var i=this._children,r=0;r<i.length;r++)if(i[r].name===n)return i[r]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},t.prototype.addBefore=function(n,i){if(n&&n!==this&&n.parent!==this&&i&&i.parent===this){var r=this._children,o=r.indexOf(i);o>=0&&(r.splice(o,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,i){var r=Zt(this._children,n);return r>=0&&this.replaceAt(i,r),this},t.prototype.replaceAt=function(n,i){var r=this._children,o=r[i];if(n&&n!==this&&n.parent!==this&&n!==o){r[i]=n,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var i=this.__zr;i&&i!==n.__zr&&n.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(n){var i=this.__zr,r=this._children,o=Zt(r,n);return o<0?this:(r.splice(o,1),n.parent=null,i&&n.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,i=this.__zr,r=0;r<n.length;r++){var o=n[r];i&&o.removeSelfFromZr(i),o.parent=null}return n.length=0,this},t.prototype.eachChild=function(n,i){for(var r=this._children,o=0;o<r.length;o++){var a=r[o];n.call(i,a,o)}return this},t.prototype.traverse=function(n,i){for(var r=0;r<this._children.length;r++){var o=this._children[r],a=n.call(i,o);o.isGroup&&!a&&o.traverse(n,i)}return this},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var i=0;i<this._children.length;i++){var r=this._children[i];r.addSelfToZr(n)}},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var i=0;i<this._children.length;i++){var r=this._children[i];r.removeSelfFromZr(n)}},t.prototype.getBoundingRect=function(n){for(var i=new It(0,0,0,0),r=n||this._children,o=[],a=null,s=0;s<r.length;s++){var l=r[s];if(!(l.ignore||l.invisible)){var c=l.getBoundingRect(),u=l.getLocalTransform(o);u?(It.applyTransform(i,c,u),a=a||i.clone(),a.union(i)):(a=a||c.clone(),a.union(c))}}return a||i},t})(tM);Jn.prototype.type="group";var Ek={},uJ={};function Wbe(e){delete uJ[e]}function Ybe(e){if(!e)return!1;if(typeof e=="string")return l2(e,1)<EN;if(e.colorStops){for(var t=e.colorStops,n=0,i=t.length,r=0;r<i;r++)n+=l2(t[r].color,1);return n/=i,n<EN}return!1}var Xbe=(function(){function e(t,n,i){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=n,this.id=t;var o=new gbe,a=i.renderer||"canvas";Ek[a]||(a=hn(Ek)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Ek[a](n,o,i,t),l=i.ssr||s.ssrOnly;this.storage=o,this.painter=s;var c=!Rt.node&&!Rt.worker&&!l?new jbe(s.getViewportRoot(),s.root):null,u=i.useCoarsePointer,d=u==null||u==="auto"?Rt.touchEventsSupported:!!u,f=44,h;d&&(h=pt(i.pointerSize,f)),this.handler=new ZK(o,s,c,s.root,h),this.animation=new Rbe({stage:{update:l?null:function(){return r._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,n),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Ybe(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var n,i=km();this._needsRefresh&&(n=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var r=km();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,i){return this._disposed||this.handler.on(t,n,i),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n<t.length;n++)t[n]instanceof Jn&&t[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.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,Wbe(this.id))},e})();function L7(e,t){var n=new Xbe(OK(),e,t);return uJ[n.id]=n,n}function Kbe(e,t){Ek[e]=t}var E7=1e-4,dJ=20;function Jbe(e){return e.replace(/^\s+|\s+$/g,"")}var ax=Math.min,So=Math.max,xs=Math.abs;function PN(e,t,n,i){var r=t[0],o=t[1],a=n[0],s=n[1],l=o-r,c=s-a;if(l===0)return c===0?a:(a+s)/2;if(i)if(l>0){if(e<=r)return a;if(e>=o)return s}else{if(e>=r)return a;if(e<=o)return s}else{if(e===r)return a;if(e===o)return s}return(e-r)/l*c+a}var tn=Qbe;function Qbe(e,t,n){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return jN(e,t,n)}function jN(e,t,n){return rt(e)?Jbe(e).match(/%$/)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function or(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),dJ),e=(+e).toFixed(t),n?e:+e}function Al(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return exe(e)}function exe(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),i=n>0?+t.slice(n+1):0,r=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function txe(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),o=Math.round(n(xs(t[1]-t[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function nxe(e,t){var n=ql(e,function(h,p){return h+(isNaN(p)?0:p)},0);if(n===0)return[];for(var i=Math.pow(10,t),r=Ye(e,function(h){return(isNaN(h)?0:h)/n*i*100}),o=i*100,a=Ye(r,function(h){return Math.floor(h)}),s=ql(a,function(h,p){return h+p},0),l=Ye(r,function(h,p){return h-a[p]});s<o;){for(var c=Number.NEGATIVE_INFINITY,u=null,d=0,f=l.length;d<f;++d)l[d]>c&&(c=l[d],u=d);++a[u],l[u]=0,++s}return Ye(a,function(h){return h/i})}function ixe(e,t){var n=Math.max(Al(e),Al(t)),i=e+t;return n>dJ?i:or(i,n)}function hJ(e){var t=Math.PI*2;return(e%t+t)%t}function d2(e){return e>-E7&&e<E7}var rxe=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Jm(e){if(e instanceof Date)return e;if(rt(e)){var t=rxe.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function oxe(e){return Math.pow(10,S4(e))}function S4(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function fJ(e,t){var n=S4(e),i=Math.pow(10,n),r=e/i,o;return r<1.5?o=1:r<2.5?o=2:r<4?o=3:r<7?o=5:o=10,e=o*i,n>=-20?+e.toFixed(n<0?-n:0):e}function h2(e){var t=parseFloat(e);return t==e&&(t!==0||!rt(e)||e.indexOf("x")<=0)?t:NaN}function axe(e){return!isNaN(h2(e))}function pJ(){return Math.round(Math.random()*9)}function mJ(e,t){return t===0?e:mJ(t,e%t)}function D7(e,t){return e==null?t:t==null?e:e*t/mJ(e,t)}var sxe="[ECharts] ",lxe=typeof console<"u"&&console.warn&&console.log;function cxe(e,t,n){lxe&&console[e](sxe+t)}function gJ(e,t){cxe("error",e)}function rr(e){throw new Error(e)}function O7(e,t,n){return(t-e)*n+e}var vJ="series\0",uxe="\0_ec_\0";function Pi(e){return e instanceof Array?e:e==null?[]:[e]}function UN(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var N7=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Mx(e){return gt(e)&&!Ne(e)&&!(e instanceof Date)?e.value:e}function dxe(e){return gt(e)&&!(e instanceof Array)}function yJ(e,t,n){var i=n==="normalMerge",r=n==="replaceMerge",o=n==="replaceAll";e=e||[],t=(t||[]).slice();var a=Nt();Z(t,function(l,c){if(!gt(l)){t[c]=null;return}});var s=hxe(e,a,n);return(i||r)&&fxe(s,e,a,t),i&&pxe(s,t),i||r?mxe(s,t,r):o&&gxe(s,t),vxe(s),s}function hxe(e,t,n){var i=[];if(n==="replaceAll")return i;for(var r=0;r<e.length;r++){var o=e[r];o&&o.id!=null&&t.set(o.id,r),i.push({existing:n==="replaceMerge"||sx(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function fxe(e,t,n,i){Z(i,function(r,o){if(!(!r||r.id==null)){var a=Hb(r.id),s=n.get(a);if(s!=null){var l=e[s];Vl(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=t[s],i[o]=null}}})}function pxe(e,t){Z(t,function(n,i){if(!(!n||n.name==null))for(var r=0;r<e.length;r++){var o=e[r].existing;if(!e[r].newOption&&o&&(o.id==null||n.id==null)&&!sx(n)&&!sx(o)&&bJ("name",o,n)){e[r].newOption=n,t[i]=null;return}}})}function mxe(e,t,n){Z(t,function(i){if(i){for(var r,o=0;(r=e[o])&&(r.newOption||sx(r.existing)||r.existing&&i.id!=null&&!bJ("id",i,r.existing));)o++;r?(r.newOption=i,r.brandNew=n):e.push({newOption:i,brandNew:n,existing:null,keyInfo:null}),o++}})}function gxe(e,t){Z(t,function(n){e.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function vxe(e){var t=Nt();Z(e,function(n){var i=n.existing;i&&t.set(i.id,n)}),Z(e,function(n){var i=n.newOption;Vl(!i||i.id==null||!t.get(i.id)||t.get(i.id)===n,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,n),!n.keyInfo&&(n.keyInfo={})}),Z(e,function(n,i){var r=n.existing,o=n.newOption,a=n.keyInfo;if(gt(o)){if(a.name=o.name!=null?Hb(o.name):r?r.name:vJ+i,r)a.id=Hb(r.id);else if(o.id!=null)a.id=Hb(o.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(t.get(a.id))}t.set(a.id,n)}})}function bJ(e,t,n){var i=to(t[e],null),r=to(n[e],null);return i!=null&&r!=null&&i===r}function Hb(e){return to(e,"")}function to(e,t){return e==null?t:rt(e)?e:bn(e)||mN(e)?e+"":t}function $4(e){var t=e.name;return!!(t&&t.indexOf(vJ))}function sx(e){return e&&e.id!=null&&Hb(e.id).indexOf(uxe)===0}function yxe(e,t,n){Z(e,function(i){var r=i.newOption;gt(r)&&(i.keyInfo.mainType=t,i.keyInfo.subType=bxe(t,r,i.existing,n))})}function bxe(e,t,n,i){var r=t.type?t.type:n?n.subType:i.determineSubType(e,t);return r}function Mh(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Ne(t.dataIndex)?Ye(t.dataIndex,function(n){return e.indexOfRawIndex(n)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Ne(t.name)?Ye(t.name,function(n){return e.indexOfName(n)}):e.indexOfName(t.name)}function fn(){var e="__ec_inner_"+xxe++;return function(t){return t[e]||(t[e]={})}}var xxe=pJ();function GD(e,t,n){var i=w4(t,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=a,l=n?n.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each(function(c,u){var d=Cx(e,u,c,{useDefault:l===u,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});s[u+"Models"]=d.models,s[u+"Model"]=d.models[0]}),s}function w4(e,t){var n;if(rt(e)){var i={};i[e+"Index"]=0,n=i}else n=e;var r=Nt(),o={},a=!1;return Z(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var c=l.match(/^(\w+)(Index|Id|Name)$/)||[],u=c[1],d=(c[2]||"").toLowerCase();if(!(!u||!d||t&&t.includeMainTypes&&Zt(t.includeMainTypes,u)<0)){a=a||!!u;var f=r.get(u)||r.set(u,{});f[d]=s}}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var ia={useDefault:!0,enableAll:!1,enableNone:!1};function Cx(e,t,n,i){i=i||ia;var r=n.index,o=n.id,a=n.name,s={models:null,specified:r!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=e.getComponent(t))?[l]:[],s}if(r==="none"||r===!1){if(i.enableNone)return s.models=[],s;r=-1}return r==="all"&&(i.enableAll?r=o=a=null:r=-1),s.models=e.queryComponents({mainType:t,index:r,id:o,name:a}),s}function xJ(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function _xe(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Sxe(e){return e==="auto"?Rt.domSupported?"html":"richText":e||"html"}function _J(e,t,n,i,r){var o=t==null||t==="auto";if(i==null)return i;if(bn(i)){var a=O7(n||0,i,r);return or(a,o?Math.max(Al(n||0),Al(i)):t)}else{if(rt(i))return r<1?n:i;for(var s=[],l=n,c=i,u=Math.max(l?l.length:0,c.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type==="ordinal")s[d]=(r<1&&l?l:c)[d];else{var h=l&&l[d]?l[d]:0,p=c[d],a=O7(h,p,r);s[d]=or(a,o?Math.max(Al(h),Al(p)):t)}}return s}}var $xe=".",Wd="___EC__COMPONENT__CONTAINER___",SJ="___EC__EXTENDED_CLASS___";function _s(e){var t={main:"",sub:""};if(e){var n=e.split($xe);t.main=n[0]||"",t.sub=n[1]||""}return t}function wxe(e){Vl(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function kxe(e){return!!(e&&e[SJ])}function k4(e,t){e.$constructor=e,e.extend=function(n){var i=this,r;return Mxe(i)?r=(function(o){ze(a,o);function a(){return o.apply(this,arguments)||this}return a})(i):(r=function(){(n.$constructor||i).apply(this,arguments)},Tye(r,this)),ke(r.prototype,n),r[SJ]=!0,r.extend=this.extend,r.superCall=Txe,r.superApply=Axe,r.superClass=i,r}}function Mxe(e){return _t(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function $J(e,t){e.extend=t.extend}var Cxe=Math.round(Math.random()*10);function zxe(e){var t=["__\0is_clz",Cxe++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function Txe(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,n)}function Axe(e,t,n){return this.superClass.prototype[t].apply(e,n)}function nM(e){var t={};e.registerClass=function(i){var r=i.type||i.prototype.type;if(r){wxe(r),i.prototype.type=r;var o=_s(r);if(!o.sub)t[o.main]=i;else if(o.sub!==Wd){var a=n(o);a[o.sub]=i}}return i},e.getClass=function(i,r,o){var a=t[i];if(a&&a[Wd]&&(a=r?a[r]:null),o&&!a)throw new Error(r?"Component "+i+"."+(r||"")+" is used but not imported.":i+".type should be specified.");return a},e.getClassesByMainType=function(i){var r=_s(i),o=[],a=t[r.main];return a&&a[Wd]?Z(a,function(s,l){l!==Wd&&o.push(s)}):o.push(a),o},e.hasClass=function(i){var r=_s(i);return!!t[r.main]},e.getAllClassMainTypes=function(){var i=[];return Z(t,function(r,o){i.push(o)}),i},e.hasSubTypes=function(i){var r=_s(i),o=t[r.main];return o&&o[Wd]};function n(i){var r=t[i.main];return(!r||!r[Wd])&&(r=t[i.main]={},r[Wd]=!0),r}}function lx(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(i,r,o){for(var a={},s=0;s<e.length;s++){var l=e[s][1];if(!(r&&Zt(r,l)>=0||o&&Zt(o,l)<0)){var c=i.getShallow(l,t);c!=null&&(a[e[s][0]]=c)}}return a}}var Ixe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Rxe=lx(Ixe),Lxe=(function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return Rxe(this,t,n)},e})(),BN=new Om(50);function Exe(e){if(typeof e=="string"){var t=BN.get(e);return t&&t.image}else return e}function wJ(e,t,n,i,r){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var o=BN.get(e),a={hostEl:n,cb:i,cbPayload:r};return o?(t=o.image,!iM(t)&&o.pending.push(a)):(t=Fl.loadImage(e,P7,P7),t.__zrImageSrc=e,BN.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function P7(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function iM(e){return e&&e.width&&e.height}var WD=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Dxe(e,t,n,i,r,o){if(!n){e.text="",e.isTruncated=!1;return}var a=(t+"").split(`
`);o=kJ(n,i,r,o);for(var s=!1,l={},c=0,u=a.length;c<u;c++)MJ(l,a[c],o),a[c]=l.textLine,s=s||l.isTruncated;e.text=a.join(`
`),e.isTruncated=s}function kJ(e,t,n,i){i=i||{};var r=ke({},i);n=pt(n,"..."),r.maxIterations=pt(i.maxIterations,2);var o=r.minChar=pt(i.minChar,0),a=r.fontMeasureInfo=ks(t),s=a.asciiCharWidth;r.placeholder=pt(i.placeholder,"");for(var l=e=Math.max(0,e-1),c=0;c<o&&l>=s;c++)l-=s;var u=Ms(a,n);return u>l&&(n="",u=0),l=e-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=l,r.containerWidth=e,r}function MJ(e,t,n){var i=n.containerWidth,r=n.contentWidth,o=n.fontMeasureInfo;if(!i){e.textLine="",e.isTruncated=!1;return}var a=Ms(o,t);if(a<=i){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(a<=r||s>=n.maxIterations){t+=n.ellipsis;break}var l=s===0?Oxe(t,r,o):a>0?Math.floor(t.length*r/a):0;t=t.substr(0,l),a=Ms(o,t)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Oxe(e,t,n){for(var i=0,r=0,o=e.length;r<o&&i<t;r++)i+=sJ(n,e.charCodeAt(r));return r}function Nxe(e,t,n,i){var r=M4(e),o=t.overflow,a=t.padding,s=a?a[1]+a[3]:0,l=a?a[0]+a[2]:0,c=t.font,u=o==="truncate",d=eM(c),f=pt(t.lineHeight,d),h=t.lineOverflow==="truncate",p=!1,g=t.width;g==null&&n!=null&&(g=n-s);var v=t.height;v==null&&i!=null&&(v=i-l);var m;g!=null&&(o==="break"||o==="breakAll")?m=r?CJ(r,t.font,g,o==="breakAll",0).lines:[]:m=r?r.split(`
`):[];var y=m.length*f;if(v==null&&(v=y),y>v&&h){var b=Math.floor(v/f);p=p||m.length>b,m=m.slice(0,b),y=m.length*f}if(r&&u&&g!=null)for(var x=kJ(g,c,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),_={},S=0;S<m.length;S++)MJ(_,m[S],x),m[S]=_.textLine,p=p||_.isTruncated;for(var $=v,C=0,w=ks(c),S=0;S<m.length;S++)C=Math.max(Ms(w,m[S]),C);g==null&&(g=C);var z=g;return $+=l,z+=s,{lines:m,height:v,outerWidth:z,outerHeight:$,lineHeight:f,calculatedLineHeight:d,contentWidth:C,contentHeight:y,width:g,isTruncated:p}}var Pxe=(function(){function e(){}return e})(),j7=(function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e})(),jxe=(function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e})();function Uxe(e,t,n,i,r){var o=new jxe,a=M4(e);if(!a)return o;var s=t.padding,l=s?s[1]+s[3]:0,c=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-l);var d=t.height;d==null&&i!=null&&(d=i-c);for(var f=t.overflow,h=(f==="break"||f==="breakAll")&&u!=null?{width:u,accumWidth:0,breakAll:f==="breakAll"}:null,p=WD.lastIndex=0,g;(g=WD.exec(a))!=null;){var v=g.index;v>p&&YD(o,a.substring(p,v),t,h),YD(o,g[2],t,h,g[1]),p=WD.lastIndex}p<a.length&&YD(o,a.substring(p,a.length),t,h);var m=[],y=0,b=0,x=f==="truncate",_=t.lineOverflow==="truncate",S={};function $(Q,le,se){Q.width=le,Q.lineHeight=se,y+=se,b=Math.max(b,le)}e:for(var C=0;C<o.lines.length;C++){for(var w=o.lines[C],z=0,A=0,M=0;M<w.tokens.length;M++){var T=w.tokens[M],k=T.styleName&&t.rich[T.styleName]||{},I=T.textPadding=k.padding,D=I?I[1]+I[3]:0,E=T.font=k.font||t.font;T.contentHeight=eM(E);var N=pt(k.height,T.contentHeight);if(T.innerHeight=N,I&&(N+=I[0]+I[2]),T.height=N,T.lineHeight=gu(k.lineHeight,t.lineHeight,N),T.align=k&&k.align||r,T.verticalAlign=k&&k.verticalAlign||"middle",_&&d!=null&&y+T.lineHeight>d){var F=o.lines.length;M>0?(w.tokens=w.tokens.slice(0,M),$(w,A,z),o.lines=o.lines.slice(0,C+1)):o.lines=o.lines.slice(0,C),o.isTruncated=o.isTruncated||o.lines.length<F;break e}var G=k.width,P=G==null||G==="auto";if(typeof G=="string"&&G.charAt(G.length-1)==="%")T.percentWidth=G,m.push(T),T.contentWidth=Ms(ks(E),T.text);else{if(P){var O=k.backgroundColor,V=O&&O.image;V&&(V=Exe(V),iM(V)&&(T.width=Math.max(T.width,V.width*N/V.height)))}var j=x&&u!=null?u-A:null;j!=null&&j<T.width?!P||j<D?(T.text="",T.width=T.contentWidth=0):(Dxe(S,T.text,j-D,E,t.ellipsis,{minChar:t.truncateMinChar}),T.text=S.text,o.isTruncated=o.isTruncated||S.isTruncated,T.width=T.contentWidth=Ms(ks(E),T.text)):T.contentWidth=Ms(ks(E),T.text)}T.width+=D,A+=T.width,k&&(z=Math.max(z,T.lineHeight))}$(w,A,z)}o.outerWidth=o.width=pt(u,b),o.outerHeight=o.height=pt(d,y),o.contentHeight=y,o.contentWidth=b,o.outerWidth+=l,o.outerHeight+=c;for(var C=0;C<m.length;C++){var T=m[C],H=T.percentWidth;T.width=parseInt(H,10)/100*o.width}return o}function YD(e,t,n,i,r){var o=t==="",a=r&&n.rich[r]||{},s=e.lines,l=a.font||n.font,c=!1,u,d;if(i){var f=a.padding,h=f?f[1]+f[3]:0;if(a.width!=null&&a.width!=="auto"){var p=Su(a.width,i.width)+h;s.length>0&&p+i.accumWidth>i.width&&(u=t.split(`
`),c=!0),i.accumWidth=p}else{var g=CJ(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+h,d=g.linesWidths,u=g.lines}}u||(u=t.split(`
`));for(var v=ks(l),m=0;m<u.length;m++){var y=u[m],b=new Pxe;if(b.styleName=r,b.text=y,b.isLineHolder=!y&&!o,typeof a.width=="number"?b.width=a.width:b.width=d?d[m]:Ms(v,y),!m&&!c){var x=(s[s.length-1]||(s[0]=new j7)).tokens,_=x.length;_===1&&x[0].isLineHolder?x[0]=b:(y||!_||o)&&x.push(b)}else s.push(new j7([b]))}}function Bxe(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Fxe=ql(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function qxe(e){return Bxe(e)?!!Fxe[e]:!0}function CJ(e,t,n,i,r){for(var o=[],a=[],s="",l="",c=0,u=0,d=ks(t),f=0;f<e.length;f++){var h=e.charAt(f);if(h===`
`){l&&(s+=l,u+=c),o.push(s),a.push(u),s="",l="",c=0,u=0;continue}var p=sJ(d,h.charCodeAt(0)),g=i?!1:!qxe(h);if(o.length?u+p>n:r+u+p>n){u?(s||l)&&(g?(s||(s=l,l="",c=0,u=c),o.push(s),a.push(u-c),l+=h,c+=p,s="",u=c):(l&&(s+=l,l="",c=0),o.push(s),a.push(u),s=h,u=p)):g?(o.push(l),a.push(c),l=h,c=p):(o.push(h),a.push(p));continue}u+=p,g?(l+=h,c+=p):(l&&(s+=l,l="",c=0),s+=h)}return l&&(s+=l),s&&(o.push(s),a.push(u)),o.length===1&&(u+=r),{accumWidth:u,lines:o,linesWidths:a}}function U7(e,t,n,i,r,o){if(e.baseX=n,e.baseY=i,e.outerWidth=e.outerHeight=null,!!t){var a=t.width*2,s=t.height*2;It.set(B7,Nm(n,a,r),bh(i,s,o),a,s),It.intersect(t,B7,null,F7);var l=F7.outIntersectRect;e.outerWidth=l.width,e.outerHeight=l.height,e.baseX=Nm(l.x,l.width,r,!0),e.baseY=bh(l.y,l.height,o,!0)}}var B7=new It(0,0,0,0),F7={outIntersectRect:{},clamp:!0};function M4(e){return e!=null?e+="":e=""}function Vxe(e){var t=M4(e.text),n=e.font,i=Ms(ks(n),t),r=eM(n);return FN(e,i,r,null)}function FN(e,t,n,i){var r=new It(Nm(e.x||0,t,e.textAlign),bh(e.y||0,n,e.textBaseline),t,n),o=i??(zJ(e)?e.lineWidth:0);return o>0&&(r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o),r}function zJ(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}var qN="__zr_style_"+Math.round(Math.random()*10),xh={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},rM={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};xh[qN]=!0;var q7=["z","z2","invisible"],Hxe=["invisible"],Au=(function(e){ze(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var i=hn(n),r=0;r<i.length;r++){var o=i[r];o==="style"?this.useStyle(n[o]):e.prototype.attrKV.call(this,o,n[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(n,i,r,o){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Zxe(this,n,i)||a&&!a[0]&&!a[3])return!1;if(r&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(n,i){return this.rectContain(n,i)},t.prototype.traverse=function(n,i){n.call(i,this)},t.prototype.rectContain=function(n,i){var r=this.transformCoordToLocal(n,i),o=this.getBoundingRect();return o.contain(r[0],r[1])},t.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,r=this.getBoundingRect(),o=this.style,a=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new It(0,0,0,0)),i?It.applyTransform(n,r,i):n.copy(r),(a||s||l)&&(n.width+=a*2+Math.abs(s),n.height+=a*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-a),n.y=Math.min(n.y,n.y+l-a));var c=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-c),n.y=Math.floor(n.y-c),n.width=Math.ceil(n.width+1+c*2),n.height=Math.ceil(n.height+1+c*2))}return n},t.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new It(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(n){return this.animate("style",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(n,i){n!=="style"?e.prototype.attrKV.call(this,n,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(n,i){return typeof n=="string"?this.style[n]=i:ke(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=Rb,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Rb)},t.prototype.styleUpdated=function(){this.__dirty&=~Rb},t.prototype.createStyle=function(n){return J2(xh,n)},t.prototype.useStyle=function(n){n[qN]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[qN]},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var i=this._normalState;n.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,i,q7)},t.prototype._applyStateObj=function(n,i,r,o,a,s){e.prototype._applyStateObj.call(this,n,i,r,o,a,s);var l=!(i&&o),c;if(i&&i.style?a?o?c=i.style:(c=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(c,i.style)):(c=this._mergeStyle(this.createStyle(),o?this.style:r.style),this._mergeStyle(c,i.style)):l&&(c=r.style),c)if(a){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var d=hn(u),f=0;f<d.length;f++){var h=d[f];h in c&&(c[h]=c[h],this.style[h]=u[h])}for(var p=hn(c),f=0;f<p.length;f++){var h=p[f];this.style[h]=this.style[h]}this._transitionState(n,{style:c},s,this.getAnimationStyleProps())}else this.useStyle(c);for(var g=this.__inHover?Hxe:q7,f=0;f<g.length;f++){var h=g[f];i&&i[h]!=null?this[h]=i[h]:l&&r[h]!=null&&(this[h]=r[h])}},t.prototype._mergeStates=function(n){for(var i=e.prototype._mergeStates.call(this,n),r,o=0;o<n.length;o++){var a=n[o];a.style&&(r=r||{},this._mergeStyle(r,a.style))}return r&&(i.style=r),i},t.prototype._mergeStyle=function(n,i){return ke(n,i),n},t.prototype.getAnimationStyleProps=function(){return rM},t.initDefaultProps=(function(){var n=t.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=_o|Rb})(),t})(tM),XD=new It(0,0,0,0),KD=new It(0,0,0,0);function Zxe(e,t,n){return XD.copy(e.getBoundingRect()),e.transform&&XD.applyTransform(e.transform),KD.width=t,KD.height=n,!XD.intersect(KD)}var ta=Math.min,na=Math.max,JD=Math.sin,QD=Math.cos,Yd=Math.PI*2,Uw=Xm(),Bw=Xm(),Fw=Xm();function V7(e,t,n,i,r,o){r[0]=ta(e,n),r[1]=ta(t,i),o[0]=na(e,n),o[1]=na(t,i)}var H7=[],Z7=[];function Gxe(e,t,n,i,r,o,a,s,l,c){var u=KK,d=Ci,f=u(e,n,r,a,H7);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var h=0;h<f;h++){var p=d(e,n,r,a,H7[h]);l[0]=ta(p,l[0]),c[0]=na(p,c[0])}f=u(t,i,o,s,Z7);for(var h=0;h<f;h++){var g=d(t,i,o,s,Z7[h]);l[1]=ta(g,l[1]),c[1]=na(g,c[1])}l[0]=ta(e,l[0]),c[0]=na(e,c[0]),l[0]=ta(a,l[0]),c[0]=na(a,c[0]),l[1]=ta(t,l[1]),c[1]=na(t,c[1]),l[1]=ta(s,l[1]),c[1]=na(s,c[1])}function Wxe(e,t,n,i,r,o,a,s){var l=QK,c=pr,u=na(ta(l(e,n,r),1),0),d=na(ta(l(t,i,o),1),0),f=c(e,n,r,u),h=c(t,i,o,d);a[0]=ta(e,r,f),a[1]=ta(t,o,h),s[0]=na(e,r,f),s[1]=na(t,o,h)}function Yxe(e,t,n,i,r,o,a,s,l){var c=Sm,u=$m,d=Math.abs(r-o);if(d%Yd<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-i,l[0]=e+n,l[1]=t+i;return}if(Uw[0]=QD(r)*n+e,Uw[1]=JD(r)*i+t,Bw[0]=QD(o)*n+e,Bw[1]=JD(o)*i+t,c(s,Uw,Bw),u(l,Uw,Bw),r=r%Yd,r<0&&(r=r+Yd),o=o%Yd,o<0&&(o=o+Yd),r>o&&!a?o+=Yd:r<o&&a&&(r+=Yd),a){var f=o;o=r,r=f}for(var h=0;h<o;h+=Math.PI/2)h>r&&(Fw[0]=QD(h)*n+e,Fw[1]=JD(h)*i+t,c(s,Fw,s),u(l,Fw,l))}var yn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Xd=[],Kd=[],us=[],Qc=[],ds=[],hs=[],eO=Math.min,tO=Math.max,Jd=Math.cos,Qd=Math.sin,Sl=Math.abs,VN=Math.PI,cu=VN*2,nO=typeof Float32Array<"u",fb=[];function iO(e){var t=Math.round(e/VN*1e8)/1e8;return t%2*VN}function TJ(e,t){var n=iO(e[0]);n<0&&(n+=cu);var i=n-e[0],r=e[1];r+=i,!t&&r-n>=cu?r=n+cu:t&&n-r>=cu?r=n-cu:!t&&n>r?r=n+(cu-iO(n-r)):t&&n<r&&(r=n-(cu-iO(r-n))),e[0]=n,e[1]=r}var $u=(function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,n,i){i=i||0,i>0&&(this._ux=Sl(i/c2/t)||0,this._uy=Sl(i/c2/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData(yn.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var i=Sl(t-this._xi),r=Sl(n-this._yi),o=i>this._ux||r>this._uy;if(this.addData(yn.L,t,n),this._ctx&&o&&this._ctx.lineTo(t,n),o)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var a=i*i+r*r;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(t,n,i,r,o,a){return this._drawPendingPt(),this.addData(yn.C,t,n,i,r,o,a),this._ctx&&this._ctx.bezierCurveTo(t,n,i,r,o,a),this._xi=o,this._yi=a,this},e.prototype.quadraticCurveTo=function(t,n,i,r){return this._drawPendingPt(),this.addData(yn.Q,t,n,i,r),this._ctx&&this._ctx.quadraticCurveTo(t,n,i,r),this._xi=i,this._yi=r,this},e.prototype.arc=function(t,n,i,r,o,a){this._drawPendingPt(),fb[0]=r,fb[1]=o,TJ(fb,a),r=fb[0],o=fb[1];var s=o-r;return this.addData(yn.A,t,n,i,i,r,s,0,a?0:1),this._ctx&&this._ctx.arc(t,n,i,r,o,a),this._xi=Jd(o)*i+t,this._yi=Qd(o)*i+n,this},e.prototype.arcTo=function(t,n,i,r,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,i,r,o),this},e.prototype.rect=function(t,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,i,r),this.addData(yn.R,t,n,i,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(yn.Z);var t=this._ctx,n=this._x0,i=this._y0;return t&&t.closePath(),this._xi=n,this._yi=i,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var n=t.length;!(this.data&&this.data.length===n)&&nO&&(this.data=new Float32Array(n));for(var i=0;i<n;i++)this.data[i]=t[i];this._len=n}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var n=t.length,i=0,r=this._len,o=0;o<n;o++)i+=t[o].len();var a=this.data;if(nO&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+i),r>0&&a))for(var s=0;s<r;s++)this.data[s]=a[s];for(var o=0;o<n;o++)for(var l=t[o].data,s=0;s<l.length;s++)this.data[r++]=l[s];this._len=r}},e.prototype.addData=function(t,n,i,r,o,a,s,l,c){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var d=0;d<arguments.length;d++)u[this._len++]=arguments[d]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n<this._len;n++)t[n]=this.data[n];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,nO&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){us[0]=us[1]=ds[0]=ds[1]=Number.MAX_VALUE,Qc[0]=Qc[1]=hs[0]=hs[1]=-Number.MAX_VALUE;var t=this.data,n=0,i=0,r=0,o=0,a;for(a=0;a<this._len;){var s=t[a++],l=a===1;switch(l&&(n=t[a],i=t[a+1],r=n,o=i),s){case yn.M:n=r=t[a++],i=o=t[a++],ds[0]=r,ds[1]=o,hs[0]=r,hs[1]=o;break;case yn.L:V7(n,i,t[a],t[a+1],ds,hs),n=t[a++],i=t[a++];break;case yn.C:Gxe(n,i,t[a++],t[a++],t[a++],t[a++],t[a],t[a+1],ds,hs),n=t[a++],i=t[a++];break;case yn.Q:Wxe(n,i,t[a++],t[a++],t[a],t[a+1],ds,hs),n=t[a++],i=t[a++];break;case yn.A:var c=t[a++],u=t[a++],d=t[a++],f=t[a++],h=t[a++],p=t[a++]+h;a+=1;var g=!t[a++];l&&(r=Jd(h)*d+c,o=Qd(h)*f+u),Yxe(c,u,d,f,h,p,g,ds,hs),n=Jd(p)*d+c,i=Qd(p)*f+u;break;case yn.R:r=n=t[a++],o=i=t[a++];var v=t[a++],m=t[a++];V7(r,o,r+v,o+m,ds,hs);break;case yn.Z:n=r,i=o;break}Sm(us,us,ds),$m(Qc,Qc,hs)}return a===0&&(us[0]=us[1]=Qc[0]=Qc[1]=0),new It(us[0],us[1],Qc[0]-us[0],Qc[1]-us[1])},e.prototype._calculateLength=function(){var t=this.data,n=this._len,i=this._ux,r=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,u=0,d=0,f=0;f<n;){var h=t[f++],p=f===1;p&&(o=t[f],a=t[f+1],s=o,l=a);var g=-1;switch(h){case yn.M:o=s=t[f++],a=l=t[f++];break;case yn.L:{var v=t[f++],m=t[f++],y=v-o,b=m-a;(Sl(y)>i||Sl(b)>r||f===n-1)&&(g=Math.sqrt(y*y+b*b),o=v,a=m);break}case yn.C:{var x=t[f++],_=t[f++],v=t[f++],m=t[f++],S=t[f++],$=t[f++];g=vbe(o,a,x,_,v,m,S,$,10),o=S,a=$;break}case yn.Q:{var x=t[f++],_=t[f++],v=t[f++],m=t[f++];g=bbe(o,a,x,_,v,m,10),o=v,a=m;break}case yn.A:var C=t[f++],w=t[f++],z=t[f++],A=t[f++],M=t[f++],T=t[f++],k=T+M;f+=1,p&&(s=Jd(M)*z+C,l=Qd(M)*A+w),g=tO(z,A)*eO(cu,Math.abs(T)),o=Jd(k)*z+C,a=Qd(k)*A+w;break;case yn.R:{s=o=t[f++],l=a=t[f++];var I=t[f++],D=t[f++];g=I*2+D*2;break}case yn.Z:{var y=s-o,b=l-a;g=Math.sqrt(y*y+b*b),o=s,a=l;break}}g>=0&&(c[d++]=g,u+=g)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,n){var i=this.data,r=this._ux,o=this._uy,a=this._len,s,l,c,u,d,f,h=n<1,p,g,v=0,m=0,y,b=0,x,_;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,y=n*g,!y)))e:for(var S=0;S<a;){var $=i[S++],C=S===1;switch(C&&(c=i[S],u=i[S+1],s=c,l=u),$!==yn.L&&b>0&&(t.lineTo(x,_),b=0),$){case yn.M:s=c=i[S++],l=u=i[S++],t.moveTo(c,u);break;case yn.L:{d=i[S++],f=i[S++];var w=Sl(d-c),z=Sl(f-u);if(w>r||z>o){if(h){var A=p[m++];if(v+A>y){var M=(y-v)/A;t.lineTo(c*(1-M)+d*M,u*(1-M)+f*M);break e}v+=A}t.lineTo(d,f),c=d,u=f,b=0}else{var T=w*w+z*z;T>b&&(x=d,_=f,b=T)}break}case yn.C:{var k=i[S++],I=i[S++],D=i[S++],E=i[S++],N=i[S++],F=i[S++];if(h){var A=p[m++];if(v+A>y){var M=(y-v)/A;a2(c,k,D,N,M,Xd),a2(u,I,E,F,M,Kd),t.bezierCurveTo(Xd[1],Kd[1],Xd[2],Kd[2],Xd[3],Kd[3]);break e}v+=A}t.bezierCurveTo(k,I,D,E,N,F),c=N,u=F;break}case yn.Q:{var k=i[S++],I=i[S++],D=i[S++],E=i[S++];if(h){var A=p[m++];if(v+A>y){var M=(y-v)/A;s2(c,k,D,M,Xd),s2(u,I,E,M,Kd),t.quadraticCurveTo(Xd[1],Kd[1],Xd[2],Kd[2]);break e}v+=A}t.quadraticCurveTo(k,I,D,E),c=D,u=E;break}case yn.A:var G=i[S++],P=i[S++],O=i[S++],V=i[S++],j=i[S++],H=i[S++],Q=i[S++],le=!i[S++],se=O>V?O:V,ae=Sl(O-V)>.001,Se=j+H,ve=!1;if(h){var A=p[m++];v+A>y&&(Se=j+H*(y-v)/A,ve=!0),v+=A}if(ae&&t.ellipse?t.ellipse(G,P,O,V,Q,j,Se,le):t.arc(G,P,se,j,Se,le),ve)break e;C&&(s=Jd(j)*O+G,l=Qd(j)*V+P),c=Jd(Se)*O+G,u=Qd(Se)*V+P;break;case yn.R:s=c=i[S],l=u=i[S+1],d=i[S++],f=i[S++];var $e=i[S++],je=i[S++];if(h){var A=p[m++];if(v+A>y){var R=y-v;t.moveTo(d,f),t.lineTo(d+eO(R,$e),f),R-=$e,R>0&&t.lineTo(d+$e,f+eO(R,je)),R-=je,R>0&&t.lineTo(d+tO($e-R,0),f+je),R-=$e,R>0&&t.lineTo(d,f+tO(je-R,0));break e}v+=A}t.rect(d,f,$e,je);break;case yn.Z:if(h){var A=p[m++];if(v+A>y){var M=(y-v)/A;t.lineTo(c*(1-M)+s*M,u*(1-M)+l*M);break e}v+=A}t.closePath(),c=s,u=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=yn,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function im(e,t,n,i,r,o,a){if(r===0)return!1;var s=r,l=0,c=e;if(a>t+s&&a>i+s||a<t-s&&a<i-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e!==n)l=(t-i)/(e-n),c=(e*i-n*t)/(e-n);else return Math.abs(o-e)<=s/2;var u=l*o-a+c,d=u*u/(l*l+1);return d<=s/2*s/2}function Xxe(e,t,n,i,r,o,a,s,l,c,u){if(l===0)return!1;var d=l;if(u>t+d&&u>i+d&&u>o+d&&u>s+d||u<t-d&&u<i-d&&u<o-d&&u<s-d||c>e+d&&c>n+d&&c>r+d&&c>a+d||c<e-d&&c<n-d&&c<r-d&&c<a-d)return!1;var f=JK(e,t,n,i,r,o,a,s,c,u,null);return f<=d/2}function Kxe(e,t,n,i,r,o,a,s,l){if(a===0)return!1;var c=a;if(l>t+c&&l>i+c&&l>o+c||l<t-c&&l<i-c&&l<o-c||s>e+c&&s>n+c&&s>r+c||s<e-c&&s<n-c&&s<r-c)return!1;var u=eJ(e,t,n,i,r,o,s,l,null);return u<=c/2}var G7=Math.PI*2;function Il(e){return e%=G7,e<0&&(e+=G7),e}var pb=Math.PI*2;function Jxe(e,t,n,i,r,o,a,s,l){if(a===0)return!1;var c=a;s-=e,l-=t;var u=Math.sqrt(s*s+l*l);if(u-c>n||u+c<n)return!1;if(Math.abs(i-r)%pb<1e-4)return!0;if(o){var d=i;i=Il(r),r=Il(d)}else i=Il(i),r=Il(r);i>r&&(r+=pb);var f=Math.atan2(l,s);return f<0&&(f+=pb),f>=i&&f<=r||f+pb>=i&&f+pb<=r}function eh(e,t,n,i,r,o){if(o>t&&o>i||o<t&&o<i||i===t)return 0;var a=(o-t)/(i-t),s=i<t?1:-1;(a===1||a===0)&&(s=i<t?.5:-.5);var l=a*(n-e)+e;return l===r?1/0:l>r?s:0}var eu=$u.CMD,th=Math.PI*2,Qxe=1e-4;function e_e(e,t){return Math.abs(e-t)<Qxe}var Ir=[-1,-1,-1],Ko=[-1,-1];function t_e(){var e=Ko[0];Ko[0]=Ko[1],Ko[1]=e}function n_e(e,t,n,i,r,o,a,s,l,c){if(c>t&&c>i&&c>o&&c>s||c<t&&c<i&&c<o&&c<s)return 0;var u=o2(t,i,o,s,c,Ir);if(u===0)return 0;for(var d=0,f=-1,h=void 0,p=void 0,g=0;g<u;g++){var v=Ir[g],m=v===0||v===1?.5:1,y=Ci(e,n,r,a,v);y<l||(f<0&&(f=KK(t,i,o,s,Ko),Ko[1]<Ko[0]&&f>1&&t_e(),h=Ci(t,i,o,s,Ko[0]),f>1&&(p=Ci(t,i,o,s,Ko[1]))),f===2?v<Ko[0]?d+=h<t?m:-m:v<Ko[1]?d+=p<h?m:-m:d+=s<p?m:-m:v<Ko[0]?d+=h<t?m:-m:d+=s<h?m:-m)}return d}function i_e(e,t,n,i,r,o,a,s){if(s>t&&s>i&&s>o||s<t&&s<i&&s<o)return 0;var l=ybe(t,i,o,s,Ir);if(l===0)return 0;var c=QK(t,i,o);if(c>=0&&c<=1){for(var u=0,d=pr(t,i,o,c),f=0;f<l;f++){var h=Ir[f]===0||Ir[f]===1?.5:1,p=pr(e,n,r,Ir[f]);p<a||(Ir[f]<c?u+=d<t?h:-h:u+=o<d?h:-h)}return u}else{var h=Ir[0]===0||Ir[0]===1?.5:1,p=pr(e,n,r,Ir[0]);return p<a?0:o<t?h:-h}}function r_e(e,t,n,i,r,o,a,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ir[0]=-l,Ir[1]=l;var c=Math.abs(i-r);if(c<1e-4)return 0;if(c>=th-1e-4){i=0,r=th;var u=o?1:-1;return a>=Ir[0]+e&&a<=Ir[1]+e?u:0}if(i>r){var d=i;i=r,r=d}i<0&&(i+=th,r+=th);for(var f=0,h=0;h<2;h++){var p=Ir[h];if(p+e>a){var g=Math.atan2(s,p),u=o?1:-1;g<0&&(g=th+g),(g>=i&&g<=r||g+th>=i&&g+th<=r)&&(g>Math.PI/2&&g<Math.PI*1.5&&(u=-u),f+=u)}}return f}function AJ(e,t,n,i,r){for(var o=e.data,a=e.len(),s=0,l=0,c=0,u=0,d=0,f,h,p=0;p<a;){var g=o[p++],v=p===1;switch(g===eu.M&&p>1&&(n||(s+=eh(l,c,u,d,i,r))),v&&(l=o[p],c=o[p+1],u=l,d=c),g){case eu.M:u=o[p++],d=o[p++],l=u,c=d;break;case eu.L:if(n){if(im(l,c,o[p],o[p+1],t,i,r))return!0}else s+=eh(l,c,o[p],o[p+1],i,r)||0;l=o[p++],c=o[p++];break;case eu.C:if(n){if(Xxe(l,c,o[p++],o[p++],o[p++],o[p++],o[p],o[p+1],t,i,r))return!0}else s+=n_e(l,c,o[p++],o[p++],o[p++],o[p++],o[p],o[p+1],i,r)||0;l=o[p++],c=o[p++];break;case eu.Q:if(n){if(Kxe(l,c,o[p++],o[p++],o[p],o[p+1],t,i,r))return!0}else s+=i_e(l,c,o[p++],o[p++],o[p],o[p+1],i,r)||0;l=o[p++],c=o[p++];break;case eu.A:var m=o[p++],y=o[p++],b=o[p++],x=o[p++],_=o[p++],S=o[p++];p+=1;var $=!!(1-o[p++]);f=Math.cos(_)*b+m,h=Math.sin(_)*x+y,v?(u=f,d=h):s+=eh(l,c,f,h,i,r);var C=(i-m)*x/b+m;if(n){if(Jxe(m,y,x,_,_+S,$,t,C,r))return!0}else s+=r_e(m,y,x,_,_+S,$,C,r);l=Math.cos(_+S)*b+m,c=Math.sin(_+S)*x+y;break;case eu.R:u=l=o[p++],d=c=o[p++];var w=o[p++],z=o[p++];if(f=u+w,h=d+z,n){if(im(u,d,f,d,t,i,r)||im(f,d,f,h,t,i,r)||im(f,h,u,h,t,i,r)||im(u,h,u,d,t,i,r))return!0}else s+=eh(f,d,f,h,i,r),s+=eh(u,h,u,d,i,r);break;case eu.Z:if(n){if(im(l,c,u,d,t,i,r))return!0}else s+=eh(l,c,u,d,i,r);l=u,c=d;break}}return!n&&!e_e(c,d)&&(s+=eh(l,c,u,d,i,r)||0),s!==0}function o_e(e,t,n){return AJ(e,0,!1,t,n)}function a_e(e,t,n,i){return AJ(e,t,!0,n,i)}var IJ=Pt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},xh),s_e={style:Pt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},rM.style)},rO=zs.concat(["invisible","culling","z","z2","zlevel","parent"]),nn=(function(e){ze(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new t;r.buildPath===t.prototype.buildPath&&(r.buildPath=function(l){n.buildPath(l,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<rO.length;++s)r[rO[s]]=this[rO[s]];r.__dirty|=_o}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(n){var i=hn(n);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var o=0;o<i.length;o++){var a=i[o],s=n[a];a==="style"?this.style?ke(this.style,s):this.useStyle(s):a==="shape"?ke(this.shape,s):e.prototype.attrKV.call(this,a,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(rt(n)){var i=l2(n,0);return i>.5?DN:i>.2?Ube:ON}else if(n)return ON}return DN},t.prototype.getInsideTextStroke=function(n){var i=this.style.fill;if(rt(i)){var r=this.__zr,o=!!(r&&r.isDarkMode()),a=l2(n,0)<EN;if(o===a)return i}},t.prototype.buildPath=function(n,i,r){},t.prototype.pathUpdated=function(){this.__dirty&=~bm},t.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},t.prototype.createPathProxy=function(){this.path=new $u(!1)},t.prototype.hasStroke=function(){var n=this.style,i=n.stroke;return!(i==null||i==="none"||!(n.lineWidth>0))},t.prototype.hasFill=function(){var n=this.style,i=n.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,i=this.style,r=!n;if(r){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&bm)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),n=a.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||r){s.copy(n);var l=i.strokeNoScale?this.getLineScale():1,c=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;c=Math.max(c,u??4)}l>1e-10&&(s.width+=c/l,s.height+=c/l,s.x-=c/l/2,s.y-=c/l/2)}return s}return n},t.prototype.contain=function(n,i){var r=this.transformCoordToLocal(n,i),o=this.getBoundingRect(),a=this.style;if(n=r[0],i=r[1],o.contain(n,i)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,c=a.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),a_e(s,l/c,n,i)))return!0}if(this.hasFill())return o_e(s,n,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=bm,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,i){n==="shape"?this.setShape(i):e.prototype.attrKV.call(this,n,i)},t.prototype.setShape=function(n,i){var r=this.shape;return r||(r=this.shape={}),typeof n=="string"?r[n]=i:ke(r,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&bm)},t.prototype.createStyle=function(n){return J2(IJ,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var i=this._normalState;n.shape&&!i.shape&&(i.shape=ke({},this.shape))},t.prototype._applyStateObj=function(n,i,r,o,a,s){e.prototype._applyStateObj.call(this,n,i,r,o,a,s);var l=!(i&&o),c;if(i&&i.shape?a?o?c=i.shape:(c=ke({},r.shape),ke(c,i.shape)):(c=ke({},o?this.shape:r.shape),ke(c,i.shape)):l&&(c=r.shape),c)if(a){this.shape=ke({},this.shape);for(var u={},d=hn(c),f=0;f<d.length;f++){var h=d[f];typeof c[h]=="object"?this.shape[h]=c[h]:u[h]=c[h]}this._transitionState(n,{shape:u},s)}else this.shape=c,this.dirtyShape()},t.prototype._mergeStates=function(n){for(var i=e.prototype._mergeStates.call(this,n),r,o=0;o<n.length;o++){var a=n[o];a.shape&&(r=r||{},this._mergeStyle(r,a.shape))}return r&&(i.shape=r),i},t.prototype.getAnimationStyleProps=function(){return s_e},t.prototype.isZeroArea=function(){return!1},t.extend=function(n){var i=(function(o){ze(a,o);function a(s){var l=o.call(this,s)||this;return n.init&&n.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return Ht(n.style)},a.prototype.getDefaultShape=function(){return Ht(n.shape)},a})(t);for(var r in n)typeof n[r]=="function"&&(i.prototype[r]=n[r]);return i},t.initDefaultProps=(function(){var n=t.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=_o|Rb|bm})(),t})(Au),l_e=Pt({strokeFirst:!0,font:_u,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},IJ),f2=(function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return zJ(this.style)},t.prototype.hasFill=function(){var n=this.style,i=n.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(n){return J2(l_e,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=Vxe(this.style)),this._rect},t.initDefaultProps=(function(){var n=t.prototype;n.dirtyRectTolerance=10})(),t})(Au);f2.prototype.type="tspan";var c_e=Pt({x:0,y:0},xh),u_e={style:Pt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},rM.style)};function d_e(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Na=(function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return J2(c_e,n)},t.prototype._getSize=function(n){var i=this.style,r=i[n];if(r!=null)return r;var o=d_e(i.image)?i.image:this.__image;if(!o)return 0;var a=n==="width"?"height":"width",s=i[a];return s==null?o[n]:o[n]/o[a]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return u_e},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new It(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Au);Na.prototype.type="image";function h_e(e,t){var n=t.x,i=t.y,r=t.width,o=t.height,a=t.r,s,l,c,u;r<0&&(n=n+r,r=-r),o<0&&(i=i+o,o=-o),typeof a=="number"?s=l=c=u=a:a instanceof Array?a.length===1?s=l=c=u=a[0]:a.length===2?(s=c=a[0],l=u=a[1]):a.length===3?(s=a[0],l=u=a[1],c=a[2]):(s=a[0],l=a[1],c=a[2],u=a[3]):s=l=c=u=0;var d;s+l>r&&(d=s+l,s*=r/d,l*=r/d),c+u>r&&(d=c+u,c*=r/d,u*=r/d),l+c>o&&(d=l+c,l*=o/d,c*=o/d),s+u>o&&(d=s+u,s*=o/d,u*=o/d),e.moveTo(n+s,i),e.lineTo(n+r-l,i),l!==0&&e.arc(n+r-l,i+l,l,-Math.PI/2,0),e.lineTo(n+r,i+o-c),c!==0&&e.arc(n+r-c,i+o-c,c,0,Math.PI/2),e.lineTo(n+u,i+o),u!==0&&e.arc(n+u,i+o-u,u,Math.PI/2,Math.PI),e.lineTo(n,i+s),s!==0&&e.arc(n+s,i+s,s,Math.PI,Math.PI*1.5)}var Mm=Math.round;function RJ(e,t,n){if(t){var i=t.x1,r=t.x2,o=t.y1,a=t.y2;e.x1=i,e.x2=r,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s&&(Mm(i*2)===Mm(r*2)&&(e.x1=e.x2=mh(i,s,!0)),Mm(o*2)===Mm(a*2)&&(e.y1=e.y2=mh(o,s,!0))),e}}function LJ(e,t,n){if(t){var i=t.x,r=t.y,o=t.width,a=t.height;e.x=i,e.y=r,e.width=o,e.height=a;var s=n&&n.lineWidth;return s&&(e.x=mh(i,s,!0),e.y=mh(r,s,!0),e.width=Math.max(mh(i+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(mh(r+a,s,!1)-e.y,a===0?0:1)),e}}function mh(e,t,n){if(!t)return e;var i=Mm(e*2);return(i+Mm(t))%2===0?i/2:(i+(n?1:-1))/2}var f_e=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),p_e={},si=(function(e){ze(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new f_e},t.prototype.buildPath=function(n,i){var r,o,a,s;if(this.subPixelOptimize){var l=LJ(p_e,i,this.style);r=l.x,o=l.y,a=l.width,s=l.height,l.r=i.r,i=l}else r=i.x,o=i.y,a=i.width,s=i.height;i.r?h_e(n,i):n.rect(r,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(nn);si.prototype.type="rect";var W7={fill:"#000"},Y7=2,fs={},m_e={style:Pt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},rM.style)},pi=(function(e){ze(t,e);function t(n){var i=e.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=W7,i.attr(n),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var i=this._children[n];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(n){var i=this.innerTransformable;return i?i.getLocalTransform(n):e.prototype.getLocalTransform.call(this,n)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,x_e(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var i=0;i<this._children.length;i++)this._children[i].__zr=n},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new It(0,0,0,0),i=this._children,r=[],o=null,a=0;a<i.length;a++){var s=i[a],l=s.getBoundingRect(),c=s.getLocalTransform(r);c?(n.copy(l),n.applyTransform(c),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}this._rect=o||n}return this._rect},t.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||W7},t.prototype.setTextContent=function(n){},t.prototype._mergeStyle=function(n,i){if(!i)return n;var r=i.rich,o=n.rich||r&&{};return ke(n,i),r&&o?(this._mergeRich(o,r),n.rich=o):o&&(n.rich=o),n},t.prototype._mergeRich=function(n,i){for(var r=hn(i),o=0;o<r.length;o++){var a=r[o];n[a]=n[a]||{},ke(n[a],i[a])}},t.prototype.getAnimationStyleProps=function(){return m_e},t.prototype._getOrCreateChild=function(n){var i=this._children[this._childCursor];return(!i||!(i instanceof n))&&(i=new n),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var n=this.style,i=n.font||_u,r=n.padding,o=this._defaultStyle,a=n.x||0,s=n.y||0,l=n.align||o.align||"left",c=n.verticalAlign||o.verticalAlign||"top";U7(fs,o.overflowRect,a,s,l,c),a=fs.baseX,s=fs.baseY;var u=nG(n),d=Nxe(u,n,fs.outerWidth,fs.outerHeight),f=oO(n),h=!!n.backgroundColor,p=d.outerHeight,g=d.outerWidth,v=d.lines,m=d.lineHeight;this.isTruncated=!!d.isTruncated;var y=a,b=bh(s,d.contentHeight,c);if(f||r){var x=Nm(a,g,l),_=bh(s,p,c);f&&this._renderBackground(n,n,x,_,g,p)}b+=m/2,r&&(y=tG(a,l,r),c==="top"?b+=r[0]:c==="bottom"&&(b-=r[2]));for(var S=0,$=!1,C=!1,w=eG("fill"in n?n.fill:(C=!0,o.fill)),z=Q7("stroke"in n?n.stroke:!h&&(!o.autoStroke||C)?(S=Y7,$=!0,o.stroke):null),A=n.textShadowBlur>0,M=0;M<v.length;M++){var T=this._getOrCreateChild(f2),k=T.createStyle();T.useStyle(k),k.text=v[M],k.x=y,k.y=b,k.textAlign=l,k.textBaseline="middle",k.opacity=n.opacity,k.strokeFirst=!0,A&&(k.shadowBlur=n.textShadowBlur||0,k.shadowColor=n.textShadowColor||"transparent",k.shadowOffsetX=n.textShadowOffsetX||0,k.shadowOffsetY=n.textShadowOffsetY||0),k.stroke=z,k.fill=w,z&&(k.lineWidth=n.lineWidth||S,k.lineDash=n.lineDash,k.lineDashOffset=n.lineDashOffset||0),k.font=i,K7(k,n),b+=m,T.setBoundingRect(FN(k,d.contentWidth,d.calculatedLineHeight,$?0:null))}},t.prototype._updateRichTexts=function(){var n=this.style,i=this._defaultStyle,r=n.align||i.align,o=n.verticalAlign||i.verticalAlign,a=n.x||0,s=n.y||0;U7(fs,i.overflowRect,a,s,r,o),a=fs.baseX,s=fs.baseY;var l=nG(n),c=Uxe(l,n,fs.outerWidth,fs.outerHeight,r),u=c.width,d=c.outerWidth,f=c.outerHeight,h=n.padding;this.isTruncated=!!c.isTruncated;var p=Nm(a,d,r),g=bh(s,f,o),v=p,m=g;h&&(v+=h[3],m+=h[0]);var y=v+u;oO(n)&&this._renderBackground(n,n,p,g,d,f);for(var b=!!n.backgroundColor,x=0;x<c.lines.length;x++){for(var _=c.lines[x],S=_.tokens,$=S.length,C=_.lineHeight,w=_.width,z=0,A=v,M=y,T=$-1,k=void 0;z<$&&(k=S[z],!k.align||k.align==="left");)this._placeToken(k,n,C,m,A,"left",b),w-=k.width,A+=k.width,z++;for(;T>=0&&(k=S[T],k.align==="right");)this._placeToken(k,n,C,m,M,"right",b),w-=k.width,M-=k.width,T--;for(A+=(u-(A-v)-(y-M)-w)/2;z<=T;)k=S[z],this._placeToken(k,n,C,m,A+k.width/2,"center",b),A+=k.width,z++;m+=C}},t.prototype._placeToken=function(n,i,r,o,a,s,l){var c=i.rich[n.styleName]||{};c.text=n.text;var u=n.verticalAlign,d=o+r/2;u==="top"?d=o+n.height/2:u==="bottom"&&(d=o+r-n.height/2);var f=!n.isLineHolder&&oO(c);f&&this._renderBackground(c,i,s==="right"?a-n.width:s==="center"?a-n.width/2:a,d-n.height/2,n.width,n.height);var h=!!c.backgroundColor,p=n.textPadding;p&&(a=tG(a,s,p),d-=n.height/2-p[0]-n.innerHeight/2);var g=this._getOrCreateChild(f2),v=g.createStyle();g.useStyle(v);var m=this._defaultStyle,y=!1,b=0,x=!1,_=eG("fill"in c?c.fill:"fill"in i?i.fill:(y=!0,m.fill)),S=Q7("stroke"in c?c.stroke:"stroke"in i?i.stroke:!h&&!l&&(!m.autoStroke||y)?(b=Y7,x=!0,m.stroke):null),$=c.textShadowBlur>0||i.textShadowBlur>0;v.text=n.text,v.x=a,v.y=d,$&&(v.shadowBlur=c.textShadowBlur||i.textShadowBlur||0,v.shadowColor=c.textShadowColor||i.textShadowColor||"transparent",v.shadowOffsetX=c.textShadowOffsetX||i.textShadowOffsetX||0,v.shadowOffsetY=c.textShadowOffsetY||i.textShadowOffsetY||0),v.textAlign=s,v.textBaseline="middle",v.font=n.font||_u,v.opacity=gu(c.opacity,i.opacity,1),K7(v,c),S&&(v.lineWidth=gu(c.lineWidth,i.lineWidth,b),v.lineDash=pt(c.lineDash,i.lineDash),v.lineDashOffset=i.lineDashOffset||0,v.stroke=S),_&&(v.fill=_),g.setBoundingRect(FN(v,n.contentWidth,n.contentHeight,x?0:null))},t.prototype._renderBackground=function(n,i,r,o,a,s){var l=n.backgroundColor,c=n.borderWidth,u=n.borderColor,d=l&&l.image,f=l&&!d,h=n.borderRadius,p=this,g,v;if(f||n.lineHeight||c&&u){g=this._getOrCreateChild(si),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=r,m.y=o,m.width=a,m.height=s,m.r=h,g.dirtyShape()}if(f){var y=g.style;y.fill=l||null,y.fillOpacity=pt(n.fillOpacity,1)}else if(d){v=this._getOrCreateChild(Na),v.onload=function(){p.dirtyStyle()};var b=v.style;b.image=l.image,b.x=r,b.y=o,b.width=a,b.height=s}if(c&&u){var y=g.style;y.lineWidth=c,y.stroke=u,y.strokeOpacity=pt(n.strokeOpacity,1),y.lineDash=n.borderDash,y.lineDashOffset=n.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(g||v).style;x.shadowBlur=n.shadowBlur||0,x.shadowColor=n.shadowColor||"transparent",x.shadowOffsetX=n.shadowOffsetX||0,x.shadowOffsetY=n.shadowOffsetY||0,x.opacity=gu(n.opacity,i.opacity,1)},t.makeFont=function(n){var i="";return b_e(n)&&(i=[n.fontStyle,n.fontWeight,y_e(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),i&&bs(i)||n.textFont||n.font},t})(Au),g_e={left:!0,right:1,center:1},v_e={top:1,bottom:1,middle:1},X7=["fontStyle","fontWeight","fontSize","fontFamily"];function y_e(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?h4+"px":e+"px"}function K7(e,t){for(var n=0;n<X7.length;n++){var i=X7[n],r=t[i];r!=null&&(e[i]=r)}}function b_e(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function x_e(e){return J7(e),Z(e.rich,J7),e}function J7(e){if(e){e.font=pi.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||g_e[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||v_e[n]?n:"top";var i=e.padding;i&&(e.padding=v4(e.padding))}}function Q7(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function eG(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function tG(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function nG(e){var t=e.text;return t!=null&&(t+=""),t}function oO(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Ut=fn(),__e=function(e,t,n,i){if(i){var r=Ut(i);r.dataIndex=n,r.dataType=t,r.seriesIndex=e,r.ssrType="chart",i.type==="group"&&i.traverse(function(o){var a=Ut(o);a.seriesIndex=e,a.dataIndex=n,a.dataType=t,a.ssrType="chart"})}},iG=1,rG={},EJ=fn(),C4=fn(),z4=0,oM=1,aM=2,ca=["emphasis","blur","select"],p2=["normal","emphasis","blur","select"],S_e=10,$_e=9,_h="highlight",Dk="downplay",m2="select",HN="unselect",g2="toggleSelect",T4="selectchanged";function rm(e){return e!=null&&e!=="none"}function sM(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function DJ(e){sM(e,"emphasis",aM)}function OJ(e){e.hoverState===aM&&sM(e,"normal",z4)}function A4(e){sM(e,"blur",oM)}function NJ(e){e.hoverState===oM&&sM(e,"normal",z4)}function w_e(e){e.selected=!0}function k_e(e){e.selected=!1}function oG(e,t,n){t(e,n)}function Wl(e,t,n){oG(e,t,n),e.isGroup&&e.traverse(function(i){oG(i,t,n)})}function aG(e,t){switch(t){case"emphasis":e.hoverState=aM;break;case"normal":e.hoverState=z4;break;case"blur":e.hoverState=oM;break;case"select":e.selected=!0}}function M_e(e,t,n,i){for(var r=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=r[s];o[s]=l??(i&&i[s])}for(var a=0;a<e.animators.length;a++){var c=e.animators[a];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName==="style"&&c.saveTo(o,t)}return o}function C_e(e,t,n,i){var r=n&&Zt(n,"select")>=0,o=!1;if(e instanceof nn){var a=EJ(e),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(rm(s)||rm(l)){i=i||{};var c=i.style||{};c.fill==="inherit"?(o=!0,i=ke({},i),c=ke({},c),c.fill=s):!rm(c.fill)&&rm(s)?(o=!0,i=ke({},i),c=ke({},c),c.fill=S7(s)):!rm(c.stroke)&&rm(l)&&(o||(i=ke({},i),c=ke({},c)),c.stroke=S7(l)),i.style=c}}if(i&&i.z2==null){o||(i=ke({},i));var u=e.z2EmphasisLift;i.z2=e.z2+(u??S_e)}return i}function z_e(e,t,n){if(n&&n.z2==null){n=ke({},n);var i=e.z2SelectLift;n.z2=e.z2+(i??$_e)}return n}function T_e(e,t,n){var i=Zt(e.currentStates,t)>=0,r=e.style.opacity,o=i?null:M_e(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=ke({},n),a=ke({opacity:i?r:o.opacity*.1},a),n.style=a),n}function aO(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return C_e(this,e,t,n);if(e==="blur")return T_e(this,e,n);if(e==="select")return z_e(this,e,n)}return n}function PJ(e){e.stateProxy=aO;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=aO),n&&(n.stateProxy=aO)}function sG(e,t){!FJ(e,t)&&!e.__highByOuter&&Wl(e,DJ)}function lG(e,t){!FJ(e,t)&&!e.__highByOuter&&Wl(e,OJ)}function v2(e,t){e.__highByOuter|=1<<(t||0),Wl(e,DJ)}function y2(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Wl(e,OJ)}function A_e(e){Wl(e,A4)}function jJ(e){Wl(e,NJ)}function UJ(e){Wl(e,w_e)}function BJ(e){Wl(e,k_e)}function FJ(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function qJ(e){var t=e.getModel(),n=[],i=[];t.eachComponent(function(r,o){var a=C4(o),s=r==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&i.push(l),a.isBlured&&(l.group.traverse(function(c){NJ(c)}),s&&n.push(o)),a.isBlured=!1}),Z(i,function(r){r&&r.toggleBlurSeries&&r.toggleBlurSeries(n,!1,t)})}function ZN(e,t,n,i){var r=i.getModel();n=n||"coordinateSystem";function o(c,u){for(var d=0;d<u.length;d++){var f=c.getItemGraphicEl(u[d]);f&&jJ(f)}}if(e!=null&&!(!t||t==="none")){var a=r.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(c){var u=a===c,d=c.coordinateSystem;d&&d.master&&(d=d.master);var f=d&&s?d===s:u;if(!(n==="series"&&!u||n==="coordinateSystem"&&!f||t==="series"&&u)){var h=i.getViewOfSeriesModel(c);if(h.group.traverse(function(v){v.__highByOuter&&u&&t==="self"||A4(v)}),Lr(t))o(c.getData(),t);else if(gt(t))for(var p=hn(t),g=0;g<p.length;g++)o(c.getData(p[g]),t[p[g]]);l.push(c),C4(c).isBlured=!0}}),r.eachComponent(function(c,u){if(c!=="series"){var d=i.getViewOfComponentModel(u);d&&d.toggleBlurSeries&&d.toggleBlurSeries(l,!0,r)}})}}function GN(e,t,n){if(!(e==null||t==null)){var i=n.getModel().getComponent(e,t);if(i){C4(i).isBlured=!0;var r=n.getViewOfComponentModel(i);!r||!r.focusBlurEnabled||r.group.traverse(function(o){A4(o)})}}}function I_e(e,t,n){var i=e.seriesIndex,r=e.getData(t.dataType);if(r){var o=Mh(r,t);o=(Ne(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var c=Ut(a);ZN(i,c.focus,c.blurScope,n)}else{var u=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);u!=null&&ZN(i,u,d,n)}}}function I4(e,t,n,i){var r={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||n==null)return r;var o=i.getModel().getComponent(e,t);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s=a.findHighDownDispatchers(n),l,c=0;c<s.length;c++)if(Ut(s[c]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function R_e(e,t,n){var i=Ut(e),r=I4(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&GN(i.componentMainType,i.componentIndex,n),Z(o,function(s){return sG(s,t)})):(ZN(i.seriesIndex,i.focus,i.blurScope,n),i.focus==="self"&&GN(i.componentMainType,i.componentIndex,n),sG(e,t))}function L_e(e,t,n){qJ(n);var i=Ut(e),r=I4(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?Z(r,function(o){return lG(o,t)}):lG(e,t)}function E_e(e,t,n){if(XN(t)){var i=t.dataType,r=e.getData(i),o=Mh(r,t);Ne(o)||(o=[o]),e[t.type===g2?"toggleSelect":t.type===m2?"select":"unselect"](o,i)}}function cG(e){var t=e.getAllData();Z(t,function(n){var i=n.data,r=n.type;i.eachItemGraphicEl(function(o,a){e.isSelected(a,r)?UJ(o):BJ(o)})})}function D_e(e){var t=[];return e.eachSeries(function(n){var i=n.getAllData();Z(i,function(r){r.data;var o=r.type,a=n.getSelectedDataIndices();if(a.length>0){var s={dataIndex:a,seriesIndex:n.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function WN(e,t,n){VJ(e,!0),Wl(e,PJ),N_e(e,t,n)}function O_e(e){VJ(e,!1)}function wu(e,t,n,i){i?O_e(e):WN(e,t,n)}function N_e(e,t,n){var i=Ut(e);t!=null?(i.focus=t,i.blurScope=n):i.focus&&(i.focus=null)}var uG=["emphasis","blur","select"],P_e={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ch(e,t,n,i){n=n||"itemStyle";for(var r=0;r<uG.length;r++){var o=uG[r],a=t.getModel([o,n]),s=e.ensureState(o);s.style=a[P_e[n]]()}}function VJ(e,t){var n=t===!1,i=e;e.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function YN(e){return!!(e&&e.__highDownDispatcher)}function j_e(e){var t=rG[e];return t==null&&iG<=32&&(t=rG[e]=iG++),t}function XN(e){var t=e.type;return t===m2||t===HN||t===g2}function dG(e){var t=e.type;return t===_h||t===Dk}function U_e(e){var t=EJ(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var om=$u.CMD,B_e=[[],[],[]],hG=Math.sqrt,F_e=Math.atan2;function q_e(e,t){if(t){var n=e.data,i=e.len(),r,o,a,s,l,c,u=om.M,d=om.C,f=om.L,h=om.R,p=om.A,g=om.Q;for(a=0,s=0;a<i;){switch(r=n[a++],s=a,o=0,r){case u:o=1;break;case f:o=1;break;case d:o=3;break;case g:o=2;break;case p:var v=t[4],m=t[5],y=hG(t[0]*t[0]+t[1]*t[1]),b=hG(t[2]*t[2]+t[3]*t[3]),x=F_e(-t[1]/b,t[0]/y);n[a]*=y,n[a++]+=v,n[a]*=b,n[a++]+=m,n[a++]*=y,n[a++]*=b,n[a++]+=x,n[a++]+=x,a+=2,s=a;break;case h:c[0]=n[a++],c[1]=n[a++],sa(c,c,t),n[s++]=c[0],n[s++]=c[1],c[0]+=n[a++],c[1]+=n[a++],sa(c,c,t),n[s++]=c[0],n[s++]=c[1]}for(l=0;l<o;l++){var _=B_e[l];_[0]=n[a++],_[1]=n[a++],sa(_,_,t),n[s++]=_[0],n[s++]=_[1]}}e.increaseVersion()}}var sO=Math.sqrt,qw=Math.sin,Vw=Math.cos,mb=Math.PI;function fG(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function KN(e,t){return(e[0]*t[0]+e[1]*t[1])/(fG(e)*fG(t))}function pG(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(KN(e,t))}function mG(e,t,n,i,r,o,a,s,l,c,u){var d=l*(mb/180),f=Vw(d)*(e-n)/2+qw(d)*(t-i)/2,h=-1*qw(d)*(e-n)/2+Vw(d)*(t-i)/2,p=f*f/(a*a)+h*h/(s*s);p>1&&(a*=sO(p),s*=sO(p));var g=(r===o?-1:1)*sO((a*a*(s*s)-a*a*(h*h)-s*s*(f*f))/(a*a*(h*h)+s*s*(f*f)))||0,v=g*a*h/s,m=g*-s*f/a,y=(e+n)/2+Vw(d)*v-qw(d)*m,b=(t+i)/2+qw(d)*v+Vw(d)*m,x=pG([1,0],[(f-v)/a,(h-m)/s]),_=[(f-v)/a,(h-m)/s],S=[(-1*f-v)/a,(-1*h-m)/s],$=pG(_,S);if(KN(_,S)<=-1&&($=mb),KN(_,S)>=1&&($=0),$<0){var C=Math.round($/mb*1e6)/1e6;$=mb*2+C%2*mb}u.addData(c,y,b,a,s,x,$,d,o)}var V_e=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,H_e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Z_e(e){var t=new $u;if(!e)return t;var n=0,i=0,r=n,o=i,a,s=$u.CMD,l=e.match(V_e);if(!l)return t;for(var c=0;c<l.length;c++){for(var u=l[c],d=u.charAt(0),f=void 0,h=u.match(H_e)||[],p=h.length,g=0;g<p;g++)h[g]=parseFloat(h[g]);for(var v=0;v<p;){var m=void 0,y=void 0,b=void 0,x=void 0,_=void 0,S=void 0,$=void 0,C=n,w=i,z=void 0,A=void 0;switch(d){case"l":n+=h[v++],i+=h[v++],f=s.L,t.addData(f,n,i);break;case"L":n=h[v++],i=h[v++],f=s.L,t.addData(f,n,i);break;case"m":n+=h[v++],i+=h[v++],f=s.M,t.addData(f,n,i),r=n,o=i,d="l";break;case"M":n=h[v++],i=h[v++],f=s.M,t.addData(f,n,i),r=n,o=i,d="L";break;case"h":n+=h[v++],f=s.L,t.addData(f,n,i);break;case"H":n=h[v++],f=s.L,t.addData(f,n,i);break;case"v":i+=h[v++],f=s.L,t.addData(f,n,i);break;case"V":i=h[v++],f=s.L,t.addData(f,n,i);break;case"C":f=s.C,t.addData(f,h[v++],h[v++],h[v++],h[v++],h[v++],h[v++]),n=h[v-2],i=h[v-1];break;case"c":f=s.C,t.addData(f,h[v++]+n,h[v++]+i,h[v++]+n,h[v++]+i,h[v++]+n,h[v++]+i),n+=h[v-2],i+=h[v-1];break;case"S":m=n,y=i,z=t.len(),A=t.data,a===s.C&&(m+=n-A[z-4],y+=i-A[z-3]),f=s.C,C=h[v++],w=h[v++],n=h[v++],i=h[v++],t.addData(f,m,y,C,w,n,i);break;case"s":m=n,y=i,z=t.len(),A=t.data,a===s.C&&(m+=n-A[z-4],y+=i-A[z-3]),f=s.C,C=n+h[v++],w=i+h[v++],n+=h[v++],i+=h[v++],t.addData(f,m,y,C,w,n,i);break;case"Q":C=h[v++],w=h[v++],n=h[v++],i=h[v++],f=s.Q,t.addData(f,C,w,n,i);break;case"q":C=h[v++]+n,w=h[v++]+i,n+=h[v++],i+=h[v++],f=s.Q,t.addData(f,C,w,n,i);break;case"T":m=n,y=i,z=t.len(),A=t.data,a===s.Q&&(m+=n-A[z-4],y+=i-A[z-3]),n=h[v++],i=h[v++],f=s.Q,t.addData(f,m,y,n,i);break;case"t":m=n,y=i,z=t.len(),A=t.data,a===s.Q&&(m+=n-A[z-4],y+=i-A[z-3]),n+=h[v++],i+=h[v++],f=s.Q,t.addData(f,m,y,n,i);break;case"A":b=h[v++],x=h[v++],_=h[v++],S=h[v++],$=h[v++],C=n,w=i,n=h[v++],i=h[v++],f=s.A,mG(C,w,n,i,S,$,b,x,_,f,t);break;case"a":b=h[v++],x=h[v++],_=h[v++],S=h[v++],$=h[v++],C=n,w=i,n+=h[v++],i+=h[v++],f=s.A,mG(C,w,n,i,S,$,b,x,_,f,t);break}}(d==="z"||d==="Z")&&(f=s.Z,t.addData(f),n=r,i=o),a=f}return t.toStatic(),t}var HJ=(function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(n){},t})(nn);function ZJ(e){return e.setData!=null}function GJ(e,t){var n=Z_e(e),i=ke({},t);return i.buildPath=function(r){var o=ZJ(r);if(o&&r.canSave()){r.appendPath(n);var a=r.getContext();a&&r.rebuildPath(a,1)}else{var a=o?r.getContext():r;a&&n.rebuildPath(a,1)}},i.applyTransform=function(r){q_e(n,r),this.dirtyShape()},i}function G_e(e,t){return new HJ(GJ(e,t))}function W_e(e,t){var n=GJ(e,t),i=(function(r){ze(o,r);function o(a){var s=r.call(this,a)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return o})(HJ);return i}function Y_e(e,t){for(var n=[],i=e.length,r=0;r<i;r++){var o=e[r];n.push(o.getUpdatedPathProxy(!0))}var a=new nn(t);return a.createPathProxy(),a.buildPath=function(s){if(ZJ(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}var X_e=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})(),zx=(function(e){ze(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new X_e},t.prototype.buildPath=function(n,i){n.moveTo(i.cx+i.r,i.cy),n.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t})(nn);zx.prototype.type="circle";var K_e=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})(),R4=(function(e){ze(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new K_e},t.prototype.buildPath=function(n,i){var r=.5522848,o=i.cx,a=i.cy,s=i.rx,l=i.ry,c=s*r,u=l*r;n.moveTo(o-s,a),n.bezierCurveTo(o-s,a-u,o-c,a-l,o,a-l),n.bezierCurveTo(o+c,a-l,o+s,a-u,o+s,a),n.bezierCurveTo(o+s,a+u,o+c,a+l,o,a+l),n.bezierCurveTo(o-c,a+l,o-s,a+u,o-s,a),n.closePath()},t})(nn);R4.prototype.type="ellipse";var WJ=Math.PI,lO=WJ*2,nh=Math.sin,am=Math.cos,J_e=Math.acos,hr=Math.atan2,gG=Math.abs,Zb=Math.sqrt,Eb=Math.max,ps=Math.min,za=1e-4;function Q_e(e,t,n,i,r,o,a,s){var l=n-e,c=i-t,u=a-r,d=s-o,f=d*l-u*c;if(!(f*f<za))return f=(u*(t-o)-d*(e-r))/f,[e+f*l,t+f*c]}function Hw(e,t,n,i,r,o,a){var s=e-n,l=t-i,c=(a?o:-o)/Zb(s*s+l*l),u=c*l,d=-c*s,f=e+u,h=t+d,p=n+u,g=i+d,v=(f+p)/2,m=(h+g)/2,y=p-f,b=g-h,x=y*y+b*b,_=r-o,S=f*g-p*h,$=(b<0?-1:1)*Zb(Eb(0,_*_*x-S*S)),C=(S*b-y*$)/x,w=(-S*y-b*$)/x,z=(S*b+y*$)/x,A=(-S*y+b*$)/x,M=C-v,T=w-m,k=z-v,I=A-m;return M*M+T*T>k*k+I*I&&(C=z,w=A),{cx:C,cy:w,x0:-u,y0:-d,x1:C*(r/_-1),y1:w*(r/_-1)}}function e1e(e){var t;if(Ne(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function t1e(e,t){var n,i=Eb(t.r,0),r=Eb(t.r0||0,0),o=i>0,a=r>0;if(!(!o&&!a)){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=t.startAngle,c=t.endAngle;if(!(isNaN(l)||isNaN(c))){var u=t.cx,d=t.cy,f=!!t.clockwise,h=gG(c-l),p=h>lO&&h%lO;if(p>za&&(h=p),!(i>za))e.moveTo(u,d);else if(h>lO-za)e.moveTo(u+i*am(l),d+i*nh(l)),e.arc(u,d,i,l,c,!f),r>za&&(e.moveTo(u+r*am(c),d+r*nh(c)),e.arc(u,d,r,c,l,f));else{var g=void 0,v=void 0,m=void 0,y=void 0,b=void 0,x=void 0,_=void 0,S=void 0,$=void 0,C=void 0,w=void 0,z=void 0,A=void 0,M=void 0,T=void 0,k=void 0,I=i*am(l),D=i*nh(l),E=r*am(c),N=r*nh(c),F=h>za;if(F){var G=t.cornerRadius;G&&(n=e1e(G),g=n[0],v=n[1],m=n[2],y=n[3]);var P=gG(i-r)/2;if(b=ps(P,m),x=ps(P,y),_=ps(P,g),S=ps(P,v),w=$=Eb(b,x),z=C=Eb(_,S),($>za||C>za)&&(A=i*am(c),M=i*nh(c),T=r*am(l),k=r*nh(l),h<WJ)){var O=Q_e(I,D,T,k,A,M,E,N);if(O){var V=I-O[0],j=D-O[1],H=A-O[0],Q=M-O[1],le=1/nh(J_e((V*H+j*Q)/(Zb(V*V+j*j)*Zb(H*H+Q*Q)))/2),se=Zb(O[0]*O[0]+O[1]*O[1]);w=ps($,(i-se)/(le+1)),z=ps(C,(r-se)/(le-1))}}}if(!F)e.moveTo(u+I,d+D);else if(w>za){var ae=ps(m,w),Se=ps(y,w),ve=Hw(T,k,I,D,i,ae,f),$e=Hw(A,M,E,N,i,Se,f);e.moveTo(u+ve.cx+ve.x0,d+ve.cy+ve.y0),w<$&&ae===Se?e.arc(u+ve.cx,d+ve.cy,w,hr(ve.y0,ve.x0),hr($e.y0,$e.x0),!f):(ae>0&&e.arc(u+ve.cx,d+ve.cy,ae,hr(ve.y0,ve.x0),hr(ve.y1,ve.x1),!f),e.arc(u,d,i,hr(ve.cy+ve.y1,ve.cx+ve.x1),hr($e.cy+$e.y1,$e.cx+$e.x1),!f),Se>0&&e.arc(u+$e.cx,d+$e.cy,Se,hr($e.y1,$e.x1),hr($e.y0,$e.x0),!f))}else e.moveTo(u+I,d+D),e.arc(u,d,i,l,c,!f);if(!(r>za)||!F)e.lineTo(u+E,d+N);else if(z>za){var ae=ps(g,z),Se=ps(v,z),ve=Hw(E,N,A,M,r,-Se,f),$e=Hw(I,D,T,k,r,-ae,f);e.lineTo(u+ve.cx+ve.x0,d+ve.cy+ve.y0),z<C&&ae===Se?e.arc(u+ve.cx,d+ve.cy,z,hr(ve.y0,ve.x0),hr($e.y0,$e.x0),!f):(Se>0&&e.arc(u+ve.cx,d+ve.cy,Se,hr(ve.y0,ve.x0),hr(ve.y1,ve.x1),!f),e.arc(u,d,r,hr(ve.cy+ve.y1,ve.cx+ve.x1),hr($e.cy+$e.y1,$e.cx+$e.x1),f),ae>0&&e.arc(u+$e.cx,d+$e.cy,ae,hr($e.y1,$e.x1),hr($e.y0,$e.x0),!f))}else e.lineTo(u+E,d+N),e.arc(u,d,r,c,l,f)}e.closePath()}}}var n1e=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e})(),Iu=(function(e){ze(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new n1e},t.prototype.buildPath=function(n,i){t1e(n,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(nn);Iu.prototype.type="sector";var i1e=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),lM=(function(e){ze(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new i1e},t.prototype.buildPath=function(n,i){var r=i.cx,o=i.cy,a=Math.PI*2;n.moveTo(r+i.r,o),n.arc(r,o,i.r,0,a,!1),n.moveTo(r+i.r0,o),n.arc(r,o,i.r0,0,a,!0)},t})(nn);lM.prototype.type="ring";function r1e(e,t,n,i){var r=[],o=[],a=[],s=[],l,c,u,d;if(i){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,h=e.length;f<h;f++)Sm(u,u,e[f]),$m(d,d,e[f]);Sm(u,u,i[0]),$m(d,d,i[1])}for(var f=0,h=e.length;f<h;f++){var p=e[f];if(n)l=e[f?f-1:h-1],c=e[(f+1)%h];else if(f===0||f===h-1){r.push(Nye(e[f]));continue}else l=e[f-1],c=e[f+1];Pye(o,c,l),wD(o,o,t);var g=vN(p,l),v=vN(p,c),m=g+v;m!==0&&(g/=m,v/=m),wD(a,o,-g),wD(s,o,v);var y=o7([],p,a),b=o7([],p,s);i&&($m(y,y,u),Sm(y,y,d),$m(b,b,u),Sm(b,b,d)),r.push(y),r.push(b)}return n&&r.push(r.shift()),r}function YJ(e,t,n){var i=t.smooth,r=t.points;if(r&&r.length>=2){if(i){var o=r1e(r,i,n,t.smoothConstraint);e.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[s*2],c=o[s*2+1],u=r[(s+1)%a];e.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{e.moveTo(r[0][0],r[0][1]);for(var s=1,d=r.length;s<d;s++)e.lineTo(r[s][0],r[s][1])}n&&e.closePath()}}var o1e=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})(),Tx=(function(e){ze(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new o1e},t.prototype.buildPath=function(n,i){YJ(n,i,!0)},t})(nn);Tx.prototype.type="polygon";var a1e=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})(),Ih=(function(e){ze(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new a1e},t.prototype.buildPath=function(n,i){YJ(n,i,!1)},t})(nn);Ih.prototype.type="polyline";var s1e={},l1e=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),ku=(function(e){ze(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new l1e},t.prototype.buildPath=function(n,i){var r,o,a,s;if(this.subPixelOptimize){var l=RJ(s1e,i,this.style);r=l.x1,o=l.y1,a=l.x2,s=l.y2}else r=i.x1,o=i.y1,a=i.x2,s=i.y2;var c=i.percent;c!==0&&(n.moveTo(r,o),c<1&&(a=r*(1-c)+a*c,s=o*(1-c)+s*c),n.lineTo(a,s))},t.prototype.pointAt=function(n){var i=this.shape;return[i.x1*(1-n)+i.x2*n,i.y1*(1-n)+i.y2*n]},t})(nn);ku.prototype.type="line";var Xr=[],c1e=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e})();function vG(e,t,n){var i=e.cpx2,r=e.cpy2;return i!=null||r!=null?[(n?v7:Ci)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?v7:Ci)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?y7:pr)(e.x1,e.cpx1,e.x2,t),(n?y7:pr)(e.y1,e.cpy1,e.y2,t)]}var L4=(function(e){ze(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new c1e},t.prototype.buildPath=function(n,i){var r=i.x1,o=i.y1,a=i.x2,s=i.y2,l=i.cpx1,c=i.cpy1,u=i.cpx2,d=i.cpy2,f=i.percent;f!==0&&(n.moveTo(r,o),u==null||d==null?(f<1&&(s2(r,l,a,f,Xr),l=Xr[1],a=Xr[2],s2(o,c,s,f,Xr),c=Xr[1],s=Xr[2]),n.quadraticCurveTo(l,c,a,s)):(f<1&&(a2(r,l,u,a,f,Xr),l=Xr[1],u=Xr[2],a=Xr[3],a2(o,c,d,s,f,Xr),c=Xr[1],d=Xr[2],s=Xr[3]),n.bezierCurveTo(l,c,u,d,a,s)))},t.prototype.pointAt=function(n){return vG(this.shape,n,!1)},t.prototype.tangentAt=function(n){var i=vG(this.shape,n,!0);return Bye(i,i)},t})(nn);L4.prototype.type="bezier-curve";var u1e=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),cM=(function(e){ze(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new u1e},t.prototype.buildPath=function(n,i){var r=i.cx,o=i.cy,a=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,c=i.clockwise,u=Math.cos(s),d=Math.sin(s);n.moveTo(u*a+r,d*a+o),n.arc(r,o,a,s,l,!c)},t})(nn);cM.prototype.type="arc";var XJ=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="compound",n}return t.prototype._updatePathDirty=function(){for(var n=this.shape.paths,i=this.shapeChanged(),r=0;r<n.length;r++)i=i||n[r].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],i=this.getGlobalScale(),r=0;r<n.length;r++)n[r].path||n[r].createPathProxy(),n[r].path.setScale(i[0],i[1],n[r].segmentIgnoreThreshold)},t.prototype.buildPath=function(n,i){for(var r=i.paths||[],o=0;o<r.length;o++)r[o].buildPath(n,r[o].shape,!0)},t.prototype.afterBrush=function(){for(var n=this.shape.paths||[],i=0;i<n.length;i++)n[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),nn.prototype.getBoundingRect.call(this)},t})(nn),KJ=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,n){this.colorStops.push({offset:t,color:n})},e})(),uM=(function(e){ze(t,e);function t(n,i,r,o,a,s){var l=e.call(this,a)||this;return l.x=n??0,l.y=i??0,l.x2=r??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return t})(KJ),d1e=(function(e){ze(t,e);function t(n,i,r,o,a){var s=e.call(this,o)||this;return s.x=n??.5,s.y=i??.5,s.r=r??.5,s.type="radial",s.global=a||!1,s}return t})(KJ),cO=Math.min,h1e=Math.max,Zw=Math.abs,ih=[0,0],rh=[0,0],Oi=VK(),Gw=Oi.minTv,Ww=Oi.maxTv,JJ=(function(){function e(t,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new At;for(var i=0;i<2;i++)this._axes[i]=new At;t&&this.fromBoundingRect(t,n)}return e.prototype.fromBoundingRect=function(t,n){var i=this._corners,r=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(i[0].set(o,a),i[1].set(s,a),i[2].set(s,l),i[3].set(o,l),n)for(var c=0;c<4;c++)i[c].transform(n);At.sub(r[0],i[1],i[0]),At.sub(r[1],i[3],i[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(i[0])},e.prototype.intersect=function(t,n,i){var r=!0,o=!n;return n&&At.set(n,0,0),Oi.reset(i,!o),!this._intersectCheckOneSide(this,t,o,1)&&(r=!1,o)||!this._intersectCheckOneSide(t,this,o,-1)&&(r=!1,o)||!o&&!Oi.negativeSize&&At.copy(n,r?Oi.useDir?Oi.dirMinTv:Gw:Ww),r},e.prototype._intersectCheckOneSide=function(t,n,i,r){for(var o=!0,a=0;a<2;a++){var s=t._axes[a];if(t._getProjMinMaxOnAxis(a,t._corners,ih),t._getProjMinMaxOnAxis(a,n._corners,rh),Oi.negativeSize||ih[1]<rh[0]||ih[0]>rh[1]){if(o=!1,Oi.negativeSize||i)return o;var l=Zw(rh[0]-ih[1]),c=Zw(ih[0]-rh[1]);cO(l,c)>Ww.len()&&(l<c?At.scale(Ww,s,-l*r):At.scale(Ww,s,c*r))}else if(!i){var l=Zw(rh[0]-ih[1]),c=Zw(ih[0]-rh[1]);(Oi.useDir||cO(l,c)<Gw.len())&&((l<c||!Oi.bidirectional)&&(At.scale(Gw,s,l*r),Oi.useDir&&Oi.calcDirMTV()),(l>=c||!Oi.bidirectional)&&(At.scale(Gw,s,-c*r),Oi.useDir&&Oi.calcDirMTV()))}}return o},e.prototype._getProjMinMaxOnAxis=function(t,n,i){for(var r=this._axes[t],o=this._origin,a=n[0].dot(r)+o[t],s=a,l=a,c=1;c<n.length;c++){var u=n[c].dot(r)+o[t];s=cO(u,s),l=h1e(u,l)}i[0]=s+Oi.touchThreshold,i[1]=l-Oi.touchThreshold,Oi.negativeSize=i[1]<i[0]},e})(),f1e=[],p1e=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return t.prototype.traverse=function(n,i){n.call(i,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(n,i){i?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},t.prototype.addDisplayables=function(n,i){i=i||!1;for(var r=0;r<n.length;r++)this.addDisplayable(n[r],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(n){for(var i=this._cursor;i<this._displayables.length;i++)n&&n(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)n&&n(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var i=this._displayables[n];i.parent=this,i.update(),i.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var i=this._temporaryDisplayables[n];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new It(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var r=this._displayables[i],o=r.getBoundingRect().clone();r.needLocalTransform()&&o.applyTransform(r.getLocalTransform(f1e)),n.union(o)}this._rect=n}return this._rect},t.prototype.contain=function(n,i){var r=this.transformCoordToLocal(n,i),o=this.getBoundingRect();if(o.contain(r[0],r[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(n,i))return!0}return!1},t})(Au),m1e=fn();function E4(e,t,n,i,r){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var c=void 0,u=void 0,d=void 0;i?(c=pt(i.duration,200),u=pt(i.easing,"cubicOut"),d=0):(c=t.getShallow(l?"animationDurationUpdate":"animationDuration"),u=t.getShallow(l?"animationEasingUpdate":"animationEasing"),d=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(c=o.duration),o.easing!=null&&(u=o.easing),o.delay!=null&&(d=o.delay)),_t(d)&&(d=d(n,r)),_t(c)&&(c=c(n));var f={duration:c||0,delay:d,easing:u};return f}else return null}function D4(e,t,n,i,r,o,a){var s=!1,l;_t(r)?(a=o,o=r,r=null):gt(r)&&(o=r.cb,a=r.during,s=r.isFrom,l=r.removeOpt,r=r.dataIndex);var c=e==="leave";c||t.stopAnimation("leave");var u=E4(e,i,r,c?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,h=u.easing,p={duration:d,delay:f||0,easing:h,done:o,force:!!o||!!a,setToFinal:!c,scope:e,during:a};s?t.animateFrom(n,p):t.animateTo(n,p)}else t.stopAnimation(),!s&&t.attr(n),a&&a(1),o&&o()}function ci(e,t,n,i,r,o){D4("update",e,t,n,i,r,o)}function ji(e,t,n,i,r,o){D4("enter",e,t,n,i,r,o)}function Lm(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if(n.scope==="leave")return!0}return!1}function b2(e,t,n,i,r,o){Lm(e)||D4("leave",e,t,n,i,r,o)}function yG(e,t,n,i){e.removeTextContent(),e.removeTextGuideLine(),b2(e,{style:{opacity:0}},t,n,i)}function Gb(e,t,n){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(r){r.isGroup||yG(r,t,n,i)}):yG(e,t,n,i)}function Pm(e){m1e(e).oldStyle=e.style}var JN={},hu=["x","y"],jm=["width","height"];function g1e(e){return nn.extend(e)}var v1e=W_e;function y1e(e,t){return v1e(e,t)}function Pa(e,t){JN[e]=t}function x2(e){if(JN.hasOwnProperty(e))return JN[e]}function cx(e,t,n,i){var r=G_e(e,t);return n&&(i==="center"&&(n=eQ(n,r.getBoundingRect())),tQ(r,n)),r}function QJ(e,t,n){var i=new Na({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(r){if(n==="center"){var o={width:r.width,height:r.height};i.setStyle(eQ(t,o))}}});return i}function eQ(e,t){var n=t.width/t.height,i=e.height*n,r;i<=e.width?r=e.height:(i=e.width,r=i/n);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-i/2,y:a-r/2,width:i,height:r}}var QN=Y_e;function tQ(e,t){if(e.applyTransform){var n=e.getBoundingRect(),i=n.calculateTransform(t);e.applyTransform(i)}}function ux(e,t){return RJ(e,e,{lineWidth:t}),e}function b1e(e,t){return LJ(e,e,t),e}var Ok=mh;function x1e(e,t){for(var n=b4([]);e&&e!==t;)Bb(n,e.getLocalTransform(),n),e=e.parent;return n}function O4(e,t,n){return t&&!Lr(t)&&(t=Q2.getLocalTransform(t)),n&&(t=Km([],t)),sa([],e,t)}function _1e(e,t,n){var i=t[4]===0||t[5]===0||t[0]===0?1:xs(2*t[4]/t[0]),r=t[4]===0||t[5]===0||t[2]===0?1:xs(2*t[4]/t[2]),o=[e==="left"?-i:e==="right"?i:0,e==="top"?-r:e==="bottom"?r:0];return o=O4(o,t,n),xs(o[0])>xs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function bG(e){return!e.isGroup}function S1e(e){return e.shape!=null}function nQ(e,t,n){if(!e||!t)return;function i(a){var s={};return a.traverse(function(l){bG(l)&&l.anid&&(s[l.anid]=l)}),s}function r(a){var s={x:a.x,y:a.y,rotation:a.rotation};return S1e(a)&&(s.shape=Ht(a.shape)),s}var o=i(e);t.traverse(function(a){if(bG(a)&&a.anid){var s=o[a.anid];if(s){var l=r(a);a.attr(r(s)),ci(a,l,n,Ut(a).dataIndex)}}})}function $1e(e,t){return Ye(e,function(n){var i=n[0];i=So(i,t.x),i=ax(i,t.x+t.width);var r=n[1];return r=So(r,t.y),r=ax(r,t.y+t.height),[i,r]})}function w1e(e,t){var n=So(e.x,t.x),i=ax(e.x+e.width,t.x+t.width),r=So(e.y,t.y),o=ax(e.y+e.height,t.y+t.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function N4(e,t,n){var i=ke({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(r.image=e.slice(8),Pt(r,n),new Na(i)):cx(e.replace("path://",""),i,n,"center")}function k1e(e,t,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(iQ(e,t,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function iQ(e,t,n,i,r,o,a,s){var l=n-e,c=i-t,u=a-r,d=s-o,f=uO(u,d,l,c);if(M1e(f))return!1;var h=e-r,p=t-o,g=uO(h,p,l,c)/f;if(g<0||g>1)return!1;var v=uO(h,p,u,d)/f;return!(v<0||v>1)}function uO(e,t,n,i){return e*i-n*t}function M1e(e){return e<=1e-6&&e>=-1e-6}function _2(e,t,n,i,r){return t==null||(bn(t)?Rn[0]=Rn[1]=Rn[2]=Rn[3]=t:(Rn[0]=t[0],Rn[1]=t[1],Rn[2]=t[2],Rn[3]=t[3]),i&&(Rn[0]=So(0,Rn[0]),Rn[1]=So(0,Rn[1]),Rn[2]=So(0,Rn[2]),Rn[3]=So(0,Rn[3])),n&&(Rn[0]=-Rn[0],Rn[1]=-Rn[1],Rn[2]=-Rn[2],Rn[3]=-Rn[3]),xG(e,Rn,"x","width",3,1,r&&r[0]||0),xG(e,Rn,"y","height",0,2,r&&r[1]||0)),e}var Rn=[0,0,0,0];function xG(e,t,n,i,r,o,a){var s=t[o]+t[r],l=e[i];e[i]+=s,a=So(0,ax(a,l)),e[i]<a?(e[i]=a,e[n]+=t[r]>=0?-t[r]:t[o]>=0?l+t[o]:xs(s)>1e-8?(l-a)*t[r]/s:0):e[n]-=t[r]}function Ax(e){var t=e.itemTooltipOption,n=e.componentModel,i=e.itemName,r=rt(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&Z(hn(l),function(u){Ie(s,u)||(s[u]=l[u],s.$vars.push(u))});var c=Ut(e.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:i,option:Pt({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function e5(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Qm(e,t){if(e)if(Ne(e))for(var n=0;n<e.length;n++)e5(e[n],t);else e5(e,t)}function P4(e){return!e||xs(e[1])<Yw&&xs(e[2])<Yw||xs(e[0])<Yw&&xs(e[3])<Yw}var Yw=1e-5;function dx(e,t){return e?It.copy(e,t):t.clone()}function j4(e,t){return t?qK(e||Dl(),t):void 0}function rQ(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function C1e(e){var t=-1/0,n=1/0;e5(e,function(o){i(o),i(o.getTextContent()),i(o.getTextGuideLine())});function i(o){if(!(!o||o.isGroup)){var a=o.currentStates;if(a.length)for(var s=0;s<a.length;s++)r(o.states[a[s]]);r(o)}}function r(o){if(o){var a=o.z2;a>t&&(t=a),a<n&&(n=a)}}return n>t&&(n=t=0),{min:n,max:t}}function oQ(e,t,n){aQ(e,t,n,-1/0)}function aQ(e,t,n,i){if(e.ignoreModelZ)return i;var r=e.getTextContent(),o=e.getTextGuideLine(),a=e.isGroup;if(a)for(var s=e.childrenRef(),l=0;l<s.length;l++)i=So(aQ(s[l],t,n,i),i);else e.z=t,e.zlevel=n,i=So(e.z2||0,i);if(r&&(r.z=t,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),o){var c=e.textGuideLineConfig;o.z=t,o.zlevel=n,isFinite(i)&&(o.z2=i+(c&&c.showAbove?1:-1))}return i}Pa("circle",zx);Pa("ellipse",R4);Pa("sector",Iu);Pa("ring",lM);Pa("polygon",Tx);Pa("polyline",Ih);Pa("rect",si);Pa("line",ku);Pa("bezierCurve",L4);Pa("arc",cM);var sQ=Object.freeze(Object.defineProperty({__proto__:null,Arc:cM,BezierCurve:L4,BoundingRect:It,Circle:zx,CompoundPath:XJ,Ellipse:R4,Group:Jn,Image:Na,IncrementalDisplayable:p1e,Line:ku,LinearGradient:uM,OrientedBoundingRect:JJ,Path:nn,Point:At,Polygon:Tx,Polyline:Ih,RadialGradient:d1e,Rect:si,Ring:lM,Sector:Iu,Text:pi,WH:jm,XY:hu,applyTransform:O4,calcZ2Range:C1e,clipPointsByRect:$1e,clipRectByRect:w1e,createIcon:N4,ensureCopyRect:dx,ensureCopyTransform:j4,expandOrShrinkRect:_2,extendPath:y1e,extendShape:g1e,getShapeClass:x2,getTransform:x1e,groupTransition:nQ,initProps:ji,isBoundingRectAxisAligned:P4,isElementRemoved:Lm,lineLineIntersect:iQ,linePolygonIntersect:k1e,makeImage:QJ,makePath:cx,mergePath:QN,registerShape:Pa,removeElement:b2,removeElementWithFadeOut:Gb,resizePath:tQ,retrieveZInfo:rQ,setTooltipConfig:Ax,subPixelOptimize:Ok,subPixelOptimizeLine:ux,subPixelOptimizeRect:b1e,transformDirection:_1e,traverseElements:Qm,traverseUpdateZ:oQ,updateProps:ci},Symbol.toStringTag,{value:"Module"})),dM={};function lQ(e,t){for(var n=0;n<ca.length;n++){var i=ca[n],r=t[i],o=e.ensureState(i);o.style=o.style||{},o.style.text=r}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function t5(e,t,n){var i=e.labelFetcher,r=e.labelDataIndex,o=e.labelDimIndex,a=t.normal,s;i&&(s=i.getFormattedLabel(r,"normal",null,o,a&&a.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=_t(e.defaultText)?e.defaultText(r,e,n):e.defaultText);for(var l={normal:s},c=0;c<ca.length;c++){var u=ca[c],d=t[u];l[u]=pt(i?i.getFormattedLabel(r,u,null,o,d&&d.get("formatter")):null,s)}return l}function eg(e,t,n,i){n=n||dM;for(var r=e instanceof pi,o=!1,a=0;a<p2.length;a++){var s=t[p2[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?e:e.getTextContent();if(o){r||(l||(l=new pi,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var c=t5(n,t),u=t.normal,d=!!u.getShallow("show"),f=Ts(u,i&&i.normal,n,!1,!r);f.text=c.normal,r||e.setTextConfig(S2(u,n,!1));for(var a=0;a<ca.length;a++){var h=ca[a],s=t[h];if(s){var p=l.ensureState(h),g=!!pt(s.getShallow("show"),d);if(g!==d&&(p.ignore=!g),p.style=Ts(s,i&&i[h],n,!0,!r),p.style.text=c[h],!r){var v=e.ensureState(h);v.textConfig=S2(s,n,!0)}}}l.silent=!!u.getShallow("silent"),l.style.x!=null&&(f.x=l.style.x),l.style.y!=null&&(f.y=l.style.y),l.ignore=!d,l.useStyle(f),l.dirty(),n.enableTextSetter&&(ng(l).setLabelText=function(m){var y=t5(n,t,m);lQ(l,y)})}else l&&(l.ignore=!0);e.dirty()}function tg(e,t){t=t||"label";for(var n={normal:e.getModel(t)},i=0;i<ca.length;i++){var r=ca[i];n[r]=e.getModel([r,t])}return n}function Ts(e,t,n,i,r){var o={};return z1e(o,e,n,i,r),t&&ke(o,t),o}function S2(e,t,n){t=t||{};var i={},r,o=e.getShallow("rotate"),a=pt(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return r=e.getShallow("position")||(n?null:"inside"),r==="outside"&&(r=t.defaultOutsidePosition||"top"),r!=null&&(i.position=r),s!=null&&(i.offset=s),o!=null&&(o*=Math.PI/180,i.rotation=o),a!=null&&(i.distance=a),i.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(i.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(i.layoutRect=t.layoutRect),i}function z1e(e,t,n,i,r){n=n||dM;var o=t.ecModel,a=o&&o.option.textStyle,s=T1e(t),l;if(s){l={};var c="richInheritPlainLabel",u=pt(t.get(c),o?o.get(c):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel(["rich",d]);wG(l[d]={},f,a,t,u,n,i,r,!1,!0)}}l&&(e.rich=l);var h=t.get("overflow");h&&(e.overflow=h);var p=t.get("lineOverflow");p&&(e.lineOverflow=p);var g=e,v=t.get("minMargin");if(v!=null)v=bn(v)?v/2:0,g.margin=[v,v,v,v],g.__marginType=Cm.minMargin;else{var m=t.get("textMargin");m!=null&&(g.margin=v4(m),g.__marginType=Cm.textMargin)}wG(e,t,a,null,null,n,i,r,!0,!1)}function T1e(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||dM).rich;if(n){t=t||{};for(var i=hn(n),r=0;r<i.length;r++){var o=i[r];t[o]=1}}e=e.parentModel}return t}var _G=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],SG=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],$G=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function wG(e,t,n,i,r,o,a,s,l,c){n=!a&&n||dM;var u=o&&o.inheritColor,d=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=pt(t.getShallow("opacity"),n.opacity);(d==="inherit"||d==="auto")&&(u?d=u:d=null),(f==="inherit"||f==="auto")&&(u?f=u:f=null),s||(d=d||n.color,f=f||n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var p=pt(t.getShallow("textBorderWidth"),n.textBorderWidth);p!=null&&(e.lineWidth=p);var g=pt(t.getShallow("textBorderType"),n.textBorderType);g!=null&&(e.lineDash=g);var v=pt(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!a&&h==null&&!c&&(h=o&&o.defaultOpacity),h!=null&&(e.opacity=h),!a&&!s&&e.fill==null&&o.inheritColor&&(e.fill=o.inheritColor);for(var m=0;m<_G.length;m++){var y=_G[m],b=r!==!1&&i?gu(t.getShallow(y),i.getShallow(y),n[y]):pt(t.getShallow(y),n[y]);b!=null&&(e[y]=b)}for(var m=0;m<SG.length;m++){var y=SG[m],b=t.getShallow(y);b!=null&&(e[y]=b)}if(e.verticalAlign==null){var x=t.getShallow("baseline");x!=null&&(e.verticalAlign=x)}if(!l||!o.disableBox){for(var m=0;m<$G.length;m++){var y=$G[m],b=t.getShallow(y);b!=null&&(e[y]=b)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&u&&(e.backgroundColor=u),(e.borderColor==="auto"||e.borderColor==="inherit")&&u&&(e.borderColor=u)}}function cQ(e,t){var n=t&&t.getModel("textStyle");return bs([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var ng=fn();function A1e(e,t,n,i){if(e){var r=ng(e);r.prevValue=r.value,r.value=n;var o=t.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=t)}}function I1e(e,t,n,i,r){var o=ng(e);if(!o.valueAnimation||o.prevValue===o.value)return;var a=o.defaultInterpolatedText,s=pt(o.interpolatedValue,o.prevValue),l=o.value;function c(u){var d=_J(n,o.precision,s,l,u);o.interpolatedValue=u===1?null:d;var f=t5({labelDataIndex:t,labelFetcher:r,defaultText:a?a(d):d+""},o.statesModels,d);lQ(e,f)}e.percent=0,(o.prevValue==null?ji:ci)(e,{percent:1},i,t,null,c)}var Cm={minMargin:1,textMargin:2},R1e=["textStyle","color"],dO=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],hO=new pi,L1e=(function(){function e(){}return e.prototype.getTextColor=function(t){var n=this.ecModel;return this.getShallow("color")||(!t&&n?n.get(R1e):null)},e.prototype.getFont=function(){return cQ({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var n={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<dO.length;i++)n[dO[i]]=this.getShallow(dO[i]);return hO.useStyle(n),hO.update(),hO.getBoundingRect()},e})(),uQ=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],E1e=lx(uQ),D1e=(function(){function e(){}return e.prototype.getLineStyle=function(t){return E1e(this,t)},e})(),dQ=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],O1e=lx(dQ),N1e=(function(){function e(){}return e.prototype.getItemStyle=function(t,n){return O1e(this,t,n)},e})(),Vn=(function(){function e(t,n,i){this.parentModel=n,this.ecModel=i,this.option=t}return e.prototype.init=function(t,n,i){},e.prototype.mergeOption=function(t,n){an(this.option,t,!0)},e.prototype.get=function(t,n){return t==null?this.option:this._doGet(this.parsePath(t),!n&&this.parentModel)},e.prototype.getShallow=function(t,n){var i=this.option,r=i==null?i:i[t];if(r==null&&!n){var o=this.parentModel;o&&(r=o.getShallow(t))}return r},e.prototype.getModel=function(t,n){var i=t!=null,r=i?this.parsePath(t):null,o=i?this._doGet(r):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new e(o,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(Ht(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!Rt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,n){var i=this.option;if(!t)return i;for(var r=0;r<t.length&&!(t[r]&&(i=i&&typeof i=="object"?i[t[r]]:null,i==null));r++);return i==null&&n&&(i=n._doGet(this.resolveParentPath(t),n.parentModel)),i},e})();k4(Vn);zxe(Vn);da(Vn,D1e);da(Vn,N1e);da(Vn,Lxe);da(Vn,L1e);var P1e=Math.round(Math.random()*10);function hM(e){return[e||"",P1e++].join("_")}function j1e(e){var t={};e.registerSubTypeDefaulter=function(n,i){var r=_s(n);t[r.main]=i},e.determineSubType=function(n,i){var r=i.type;if(!r){var o=_s(n).main;e.hasSubTypes(n)&&t[o]&&(r=t[o](i))}return r}}function U1e(e,t){e.topologicalTravel=function(o,a,s,l){if(!o.length)return;var c=n(a),u=c.graph,d=c.noEntryList,f={};for(Z(o,function(y){f[y]=!0});d.length;){var h=d.pop(),p=u[h],g=!!f[h];g&&(s.call(l,h,p.originalDeps.slice()),delete f[h]),Z(p.successor,g?m:v)}Z(f,function(){var y="";throw new Error(y)});function v(y){u[y].entryCount--,u[y].entryCount===0&&d.push(y)}function m(y){f[y]=!0,v(y)}};function n(o){var a={},s=[];return Z(o,function(l){var c=i(a,l),u=c.originalDeps=t(l),d=r(u,o);c.entryCount=d.length,c.entryCount===0&&s.push(l),Z(d,function(f){Zt(c.predecessor,f)<0&&c.predecessor.push(f);var h=i(a,f);Zt(h.successor,f)<0&&h.successor.push(l)})}),{graph:a,noEntryList:s}}function i(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}function r(o,a){var s=[];return Z(o,function(l){Zt(a,l)>=0&&s.push(l)}),s}}function hQ(e,t){return an(an({},e,!0),t,!0)}var B1e={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},F1e={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}},$2="ZH",U4="EN",Em=U4,Nk={},B4={},fQ=Rt.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Em).toUpperCase();return e.indexOf($2)>-1?$2:Em})():Em;function pQ(e,t){e=e.toUpperCase(),B4[e]=new Vn(t),Nk[e]=t}function q1e(e){if(rt(e)){var t=Nk[e.toUpperCase()]||{};return e===$2||e===U4?Ht(t):an(Ht(t),Ht(Nk[Em]),!1)}else return an(Ht(e),Ht(Nk[Em]),!1)}function V1e(e){return B4[e]}function H1e(){return B4[Em]}pQ(U4,B1e);pQ($2,F1e);var Z1e=null;function w2(){return Z1e}var F4=1e3,q4=F4*60,Wb=q4*60,ra=Wb*24,kG=ra*365,G1e={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Pk={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},W1e="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Xw="{yyyy}-{MM}-{dd}",MG={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xw,hour:Xw+" "+Pk.hour,minute:Xw+" "+Pk.minute,second:Xw+" "+Pk.second,millisecond:W1e},Sh=["year","month","day","hour","minute","second","millisecond"],Y1e=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function X1e(e){return!rt(e)&&!_t(e)?K1e(e):e}function K1e(e){e=e||{};var t={},n=!0;return Z(Sh,function(i){n&&(n=e[i]==null)}),Z(Sh,function(i,r){var o=e[i];t[i]={};for(var a=null,s=r;s>=0;s--){var l=Sh[s],c=gt(o)&&!Ne(o)?o[l]:o,u=void 0;Ne(c)?(u=c.slice(),a=u[0]||""):rt(c)?(a=c,u=[a]):(a==null?a=Pk[i]:G1e[l].test(a)||(a=t[l][l][0]+" "+a),u=[a],n&&(u[1]="{primary|"+a+"}")),t[i][l]=u}}),t}function tu(e,t){return e+="","0000".substr(0,t-e.length)+e}function Yb(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function J1e(e){return e===Yb(e)}function Q1e(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function fM(e,t,n,i){var r=Jm(e),o=r[mQ(n)](),a=r[V4(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[H4(n)](),c=r["get"+(n?"UTC":"")+"Day"](),u=r[Z4(n)](),d=(u-1)%12+1,f=r[G4(n)](),h=r[W4(n)](),p=r[Y4(n)](),g=u>=12?"pm":"am",v=g.toUpperCase(),m=i instanceof Vn?i:V1e(i||fQ)||H1e(),y=m.getModel("time"),b=y.get("month"),x=y.get("monthAbbr"),_=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,tu(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,tu(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,tu(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[c]).replace(/{ee}/g,S[c]).replace(/{e}/g,c+"").replace(/{HH}/g,tu(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,tu(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,tu(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,tu(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,tu(p,3)).replace(/{S}/g,p+"")}function eSe(e,t,n,i,r){var o=null;if(rt(n))o=n;else if(_t(n)){var a={time:e.time,level:e.time.level},s=w2();s&&s.makeAxisLabelFormatterParamBreak(a,e.break),o=n(e.value,t,a)}else{var l=e.time;if(l){var c=n[l.lowerTimeUnit][l.upperTimeUnit];o=c[Math.min(l.level,c.length-1)]||""}else{var u=k2(e.value,r);o=n[u][u][0]}}return fM(new Date(e.value),o,r,i)}function k2(e,t){var n=Jm(e),i=n[V4(t)]()+1,r=n[H4(t)](),o=n[Z4(t)](),a=n[G4(t)](),s=n[W4(t)](),l=n[Y4(t)](),c=l===0,u=c&&s===0,d=u&&a===0,f=d&&o===0,h=f&&r===1,p=h&&i===1;return p?"year":h?"month":f?"day":d?"hour":u?"minute":c?"second":"millisecond"}function n5(e,t,n){switch(t){case"year":e[gQ(n)](0);case"month":e[vQ(n)](1);case"day":e[yQ(n)](0);case"hour":e[bQ(n)](0);case"minute":e[xQ(n)](0);case"second":e[_Q(n)](0)}return e}function mQ(e){return e?"getUTCFullYear":"getFullYear"}function V4(e){return e?"getUTCMonth":"getMonth"}function H4(e){return e?"getUTCDate":"getDate"}function Z4(e){return e?"getUTCHours":"getHours"}function G4(e){return e?"getUTCMinutes":"getMinutes"}function W4(e){return e?"getUTCSeconds":"getSeconds"}function Y4(e){return e?"getUTCMilliseconds":"getMilliseconds"}function tSe(e){return e?"setUTCFullYear":"setFullYear"}function gQ(e){return e?"setUTCMonth":"setMonth"}function vQ(e){return e?"setUTCDate":"setDate"}function yQ(e){return e?"setUTCHours":"setHours"}function bQ(e){return e?"setUTCMinutes":"setMinutes"}function xQ(e){return e?"setUTCSeconds":"setSeconds"}function _Q(e){return e?"setUTCMilliseconds":"setMilliseconds"}function SQ(e){if(!axe(e))return rt(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function $Q(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,i){return i.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var pM=v4;function i5(e,t,n){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function r(u){return u&&bs(u)?u:"-"}function o(u){return!!(u!=null&&!isNaN(u)&&isFinite(u))}var a=t==="time",s=e instanceof Date;if(a||s){var l=a?Jm(e):e;if(isNaN(+l)){if(s)return"-"}else return fM(l,i,n)}if(t==="ordinal")return mN(e)?r(e):bn(e)&&o(e)?e+"":"-";var c=h2(e);return o(c)?SQ(c):mN(e)?r(e):typeof e=="boolean"?e+"":"-"}var CG=["a","b","c","d","e","f","g"],fO=function(e,t){return"{"+e+(t??"")+"}"};function wQ(e,t,n){Ne(t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],o=0;o<r.length;o++){var a=CG[o];e=e.replace(fO(a),fO(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var c=t[s][r[l]];e=e.replace(fO(CG[l],s),n?Jr(c):c)}return e}function nSe(e,t){var n=rt(e)?{color:e,extraCssText:t}:e||{},i=n.color,r=n.type;t=n.extraCssText;var o=n.renderMode||"html";if(!i)return"";if(o==="html")return r==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Jr(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Jr(i)+";"+(t||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|}  ",style:r==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function zh(e,t){return t=t||"transparent",rt(e)?e:gt(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function zG(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var jk={},pO={},X4=(function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,n){this._nonSeriesBoxMasterList=i(jk),this._normalMasterList=i(pO);function i(r,o){var a=[];return Z(r,function(s,l){var c=s.create(t,n);a=a.concat(c||[])}),a}},e.prototype.update=function(t,n){Z(this._normalMasterList,function(i){i.update&&i.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,n){if(t==="matrix"||t==="calendar"){jk[t]=n;return}pO[t]=n},e.get=function(t){return pO[t]||jk[t]},e})();function iSe(e){return!!jk[e]}var r5={coord:1,coord2:2};function rSe(e){kQ.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var kQ=Nt();function oSe(e){var t=e.getShallow("coord",!0),n=r5.coord;if(t==null){var i=kQ.get(e.type);i&&i.getCoord2&&(n=r5.coord2,t=i.getCoord2(e))}return{coord:t,from:n}}var Tl={none:0,dataCoordSys:1,boxCoordSys:2};function aSe(e,t){var n=e.getShallow("coordinateSystem"),i=e.getShallow("coordinateSystemUsage",!0),r=Tl.none;if(n){var o=e.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(r=Tl.dataCoordSys,o||(r=Tl.none)):i==="box"&&(r=Tl.boxCoordSys,!o&&!iSe(n)&&(r=Tl.none))}return{coordSysType:n,kind:r}}function sSe(e){var t=e.targetModel,n=e.coordSysType,i=e.coordSysProvider,r=e.isDefaultDataCoordSys,o=aSe(t),a=o.kind,s=o.coordSysType;if(r&&a!==Tl.dataCoordSys&&(a=Tl.dataCoordSys,s=n),a===Tl.none||s!==n)return!1;var l=i(n,t);return l?(a===Tl.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var Uk=Z,MQ=["left","right","top","bottom","width","height"],Kw=[["width","left","right"],["height","top","bottom"]];function K4(e,t,n,i,r){var o=0,a=0;i==null&&(i=1/0),r==null&&(r=1/0);var s=0;t.eachChild(function(l,c){var u=l.getBoundingRect(),d=t.childAt(c+1),f=d&&d.getBoundingRect(),h,p;if(e==="horizontal"){var g=u.width+(f?-f.x+u.x:0);h=o+g,h>i||l.newline?(o=0,h=g,a+=s+n,s=u.height):s=Math.max(s,u.height)}else{var v=u.height+(f?-f.y+u.y:0);p=a+v,p>r||l.newline?(o+=s+n,a=0,p=v,s=u.width):s=Math.max(s,u.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),e==="horizontal"?o=h+n:a=p+n)})}var Xb=K4;ai(K4,"vertical");ai(K4,"horizontal");function lSe(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function cSe(e,t){var n=Ix(e,t,{enableLayoutOnlyByCenter:!0}),i=e.getBoxLayoutParams(),r,o;if(n.type===Db.point)o=n.refPoint,r=Hl(i,{width:t.getWidth(),height:t.getHeight()});else{var a=e.get("center"),s=Ne(a)?a:[a,a];r=Hl(i,n.refContainer),o=n.boxCoordFrom===r5.coord2?n.refPoint:[tn(s[0],r.width)+r.x,tn(s[1],r.height)+r.y]}return{viewRect:r,center:o}}function uSe(e,t){var n=cSe(e,t),i=n.viewRect,r=n.center,o=e.get("radius");Ne(o)||(o=[0,o]);var a=tn(i.width,t.getWidth()),s=tn(i.height,t.getHeight()),l=Math.min(a,s),c=tn(o[0],l/2),u=tn(o[1],l/2);return{cx:r[0],cy:r[1],r0:c,r:u,viewRect:i}}function Hl(e,t,n){n=pM(n||0);var i=t.width,r=t.height,o=tn(e.left,i),a=tn(e.top,r),s=tn(e.right,i),l=tn(e.bottom,r),c=tn(e.width,i),u=tn(e.height,r),d=n[2]+n[0],f=n[1]+n[3],h=e.aspect;switch(isNaN(c)&&(c=i-s-f-o),isNaN(u)&&(u=r-l-d-a),h!=null&&(isNaN(c)&&isNaN(u)&&(h>i/r?c=i*.8:u=r*.8),isNaN(c)&&(c=h*u),isNaN(u)&&(u=c/h)),isNaN(o)&&(o=i-s-c-f),isNaN(a)&&(a=r-l-u-d),e.left||e.right){case"center":o=i/2-c/2-n[3];break;case"right":o=i-c-f;break}switch(e.top||e.bottom){case"middle":case"center":a=r/2-u/2-n[0];break;case"bottom":a=r-u-d;break}o=o||0,a=a||0,isNaN(c)&&(c=i-f-o-(s||0)),isNaN(u)&&(u=r-d-a-(l||0));var p=new It((t.x||0)+o+n[3],(t.y||0)+a+n[0],c,u);return p.margin=n,p}var Db={rect:1,point:2};function Ix(e,t,n){var i,r,o,a=e.boxCoordinateSystem,s;if(a){var l=oSe(e),c=l.coord,u=l.from;if(a.dataToLayout){o=Db.rect,s=u;var d=a.dataToLayout(c);i=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&a.dataToPoint&&(o=Db.point,s=u,r=a.dataToPoint(c))}return o==null&&(o=Db.rect),o===Db.rect&&(i||(i={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),r=[i.x+i.width/2,i.y+i.height/2]),{type:o,refContainer:i,refPoint:r,boxCoordFrom:s}}function dSe(e,t,n,i,r,o){var a=!r||!r.hv||r.hv[0],s=!r||!r.hv||r.hv[1],l=r&&r.boundingMode||"all";if(o=o||e,o.x=e.x,o.y=e.y,!a&&!s)return!1;var c;if(l==="raw")c=e.type==="group"?new It(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(c=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();c=c.clone(),c.applyTransform(u)}var d=Hl(Pt({width:c.width,height:c.height},t),n,i),f=a?d.x-c.x:0,h=s?d.y-c.y:0;return l==="raw"?(o.x=f,o.y=h):(o.x+=f,o.y+=h),o===e&&e.markRedraw(),!0}function hx(e){var t=e.layoutMode||e.constructor.layoutMode;return gt(t)?t:t?{type:t}:null}function Zl(e,t,n){var i=n&&n.ignoreSize;!Ne(i)&&(i=[i,i]);var r=a(Kw[0],0),o=a(Kw[1],1);l(Kw[0],e,r),l(Kw[1],e,o);function a(c,u){var d={},f=0,h={},p=0,g=2;if(Uk(c,function(y){h[y]=e[y]}),Uk(c,function(y){Ie(t,y)&&(d[y]=h[y]=t[y]),s(d,y)&&f++,s(h,y)&&p++}),i[u])return s(t,c[1])?h[c[2]]=null:s(t,c[2])&&(h[c[1]]=null),h;if(p===g||!f)return h;if(f>=g)return d;for(var v=0;v<c.length;v++){var m=c[v];if(!Ie(d,m)&&Ie(e,m)){d[m]=e[m];break}}return d}function s(c,u){return c[u]!=null&&c[u]!=="auto"}function l(c,u,d){Uk(c,function(f){u[f]=d[f]})}}function Rx(e){return CQ({},e)}function CQ(e,t){return t&&e&&Uk(MQ,function(n){Ie(t,n)&&(e[n]=t[n])}),e}var hSe=fn(),dn=(function(e){ze(t,e);function t(n,i,r){var o=e.call(this,n,i,r)||this;return o.uid=hM("ec_cpt_model"),o}return t.prototype.init=function(n,i,r){this.mergeDefaultAndTheme(n,r)},t.prototype.mergeDefaultAndTheme=function(n,i){var r=hx(this),o=r?Rx(n):{},a=i.getTheme();an(n,a.get(this.mainType)),an(n,this.getDefaultOption()),r&&Zl(n,o,r)},t.prototype.mergeOption=function(n,i){an(this.option,n,!0);var r=hx(this);r&&Zl(this.option,n,r)},t.prototype.optionUpdated=function(n,i){},t.prototype.getDefaultOption=function(){var n=this.constructor;if(!kxe(n))return n.defaultOption;var i=hSe(this);if(!i.defaultOption){for(var r=[],o=n;o;){var a=o.prototype.defaultOption;a&&r.push(a),o=o.superClass}for(var s={},l=r.length-1;l>=0;l--)s=an(s,r[l],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(n,i){var r=n+"Index",o=n+"Id";return Cx(this.ecModel,n,{index:this.get(r,!0),id:this.get(o,!0)},i)},t.prototype.getBoxLayoutParams=function(){return lSe(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=(function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0})(),t})(Vn);$J(dn,Vn);nM(dn);j1e(dn);U1e(dn,fSe);function fSe(e){var t=[];return Z(dn.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Ye(t,function(n){return _s(n).main}),e!=="dataset"&&Zt(t,"dataset")<=0&&t.unshift("dataset"),t}var nt={color:{},darkColor:{},size:{}},ri=nt.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};ke(ri,{primary:ri.neutral80,secondary:ri.neutral70,tertiary:ri.neutral60,quaternary:ri.neutral50,disabled:ri.neutral20,border:ri.neutral30,borderTint:ri.neutral20,borderShade:ri.neutral40,background:ri.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:ri.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:ri.neutral70,axisLineTint:ri.neutral40,axisTick:ri.neutral70,axisTickMinor:ri.neutral60,axisLabel:ri.neutral70,axisSplitLine:ri.neutral15,axisMinorSplitLine:ri.neutral05});for(nu in ri)ri.hasOwnProperty(nu)&&(mO=ri[nu],nu==="theme"?nt.darkColor.theme=ri.theme.slice():nu==="highlight"?nt.darkColor.highlight="rgba(255,231,130,0.4)":nu.indexOf("accent")===0?nt.darkColor[nu]=zN(mO,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):nt.darkColor[nu]=zN(mO,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)}));var mO,nu;nt.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var zQ="";typeof navigator<"u"&&(zQ=navigator.platform||"");var sm="rgba(0, 0, 0, 0.2)",TQ=nt.color.theme[0],pSe=zN(TQ,null,null,.9),mSe={darkMode:"auto",colorBy:"series",color:nt.color.theme,gradientColor:[pSe,TQ],aria:{decal:{decals:[{color:sm,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:sm,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:sm,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:sm,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:sm,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:sm,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:zQ.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},AQ=Nt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ko="original",br="arrayRows",ha="objectRows",ja="keyedColumns",bu="typedArray",IQ="unknown",Cs="column",Rh="row",nr={Must:1,Might:2,Not:3},RQ=fn();function gSe(e){RQ(e).datasetMap=Nt()}function LQ(e,t,n){var i={},r=J4(t);if(!r||!e)return i;var o=[],a=[],s=t.ecModel,l=RQ(s).datasetMap,c=r.uid+"_"+n.seriesLayoutBy,u,d;e=e.slice(),Z(e,function(g,v){var m=gt(g)?g:e[v]={name:g};m.type==="ordinal"&&u==null&&(u=v,d=p(m)),i[m.name]=[]});var f=l.get(c)||l.set(c,{categoryWayDim:d,valueWayDim:0});Z(e,function(g,v){var m=g.name,y=p(g);if(u==null){var b=f.valueWayDim;h(i[m],b,y),h(a,b,y),f.valueWayDim+=y}else if(u===v)h(i[m],0,y),h(o,0,y);else{var b=f.categoryWayDim;h(i[m],b,y),h(a,b,y),f.categoryWayDim+=y}});function h(g,v,m){for(var y=0;y<m;y++)g.push(v+y)}function p(g){var v=g.dimsDef;return v?v.length:1}return o.length&&(i.itemName=o),a.length&&(i.seriesName=a),i}function vSe(e,t,n){var i={},r=J4(e);if(!r)return i;var o=t.sourceFormat,a=t.dimensionsDefine,s;(o===ha||o===ja)&&Z(a,function(u,d){(gt(u)?u.name:u)==="name"&&(s=d)});var l=(function(){for(var u={},d={},f=[],h=0,p=Math.min(5,n);h<p;h++){var g=DQ(t.data,o,t.seriesLayoutBy,a,t.startIndex,h);f.push(g);var v=g===nr.Not;if(v&&u.v==null&&h!==s&&(u.v=h),(u.n==null||u.n===u.v||!v&&f[u.n]===nr.Not)&&(u.n=h),m(u)&&f[u.n]!==nr.Not)return u;v||(g===nr.Might&&d.v==null&&h!==s&&(d.v=h),(d.n==null||d.n===d.v)&&(d.n=h))}function m(y){return y.v!=null&&y.n!=null}return m(u)?u:m(d)?d:null})();if(l){i.value=[l.v];var c=s??l.n;i.itemName=[c],i.seriesName=[c]}return i}function J4(e){var t=e.get("data",!0);if(!t)return Cx(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},ia).models[0]}function ySe(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Cx(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},ia).models}function EQ(e,t){return DQ(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function DQ(e,t,n,i,r,o){var a,s=5;if(io(e))return nr.Not;var l,c;if(i){var u=i[o];gt(u)?(l=u.name,c=u.type):rt(u)&&(l=u)}if(c!=null)return c==="ordinal"?nr.Must:nr.Not;if(t===br){var d=e;if(n===Rh){for(var f=d[o],h=0;h<(f||[]).length&&h<s;h++)if((a=x(f[r+h]))!=null)return a}else for(var h=0;h<d.length&&h<s;h++){var p=d[r+h];if(p&&(a=x(p[o]))!=null)return a}}else if(t===ha){var g=e;if(!l)return nr.Not;for(var h=0;h<g.length&&h<s;h++){var v=g[h];if(v&&(a=x(v[l]))!=null)return a}}else if(t===ja){var m=e;if(!l)return nr.Not;var f=m[l];if(!f||io(f))return nr.Not;for(var h=0;h<f.length&&h<s;h++)if((a=x(f[h]))!=null)return a}else if(t===ko)for(var y=e,h=0;h<y.length&&h<s;h++){var v=y[h],b=Mx(v);if(!Ne(b))return nr.Not;if((a=x(b[o]))!=null)return a}function x(_){var S=rt(_);if(_!=null&&Number.isFinite(Number(_))&&_!=="")return S?nr.Might:nr.Not;if(S&&_!=="-")return nr.Must}return nr.Not}var bSe=Nt();function xSe(e,t,n){var i=bSe.get(t);if(!i)return n;var r=i(e);return r?n.concat(r):n}var TG=fn();fn();var Q4=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,i){var r=Pi(this.get("color",!0)),o=this.get("colorLayer",!0);return SSe(this,TG,r,o,t,n,i)},e.prototype.clearColorPalette=function(){$Se(this,TG)},e})();function _Se(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i].length>t)return e[i];return e[n-1]}function SSe(e,t,n,i,r,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(r))return c[r];var u=a==null||!i?n:_Se(i,a);if(u=u||n,!(!u||!u.length)){var d=u[l];return r&&(c[r]=d),s.paletteIdx=(l+1)%u.length,d}}function $Se(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Jw,gb,AG,IG="\0_ec_inner",wSe=1,eP=(function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,i,r,o,a,s){o=o||{},this.option=null,this._theme=new Vn(o),this._locale=new Vn(a),this._optionManager=s},t.prototype.setOption=function(n,i,r){var o=EG(i);this._optionManager.setOption(n,r,o),this._resetOption(null,o)},t.prototype.resetOption=function(n,i){return this._resetOption(n,EG(i))},t.prototype._resetOption=function(n,i){var r=!1,o=this._optionManager;if(!n||n==="recreate"){var a=o.mountOption(n==="recreate");!this.option||n==="recreate"?AG(this,a):(this.restoreData(),this._mergeOption(a,i)),r=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=o.getTimelineOption(this);s&&(r=!0,this._mergeOption(s,i))}if(!n||n==="recreate"||n==="media"){var l=o.getMediaOption(this);l.length&&Z(l,function(c){r=!0,this._mergeOption(c,i)},this)}return r},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,i){var r=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=Nt(),c=i&&i.replaceMergeMainTypeMap;gSe(this),Z(n,function(d,f){d!=null&&(dn.hasClass(f)?f&&(s.push(f),l.set(f,!0)):r[f]=r[f]==null?Ht(d):an(r[f],d,!0))}),c&&c.each(function(d,f){dn.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),dn.topologicalTravel(s,dn.getAllClassMainTypes(),u,this);function u(d){var f=xSe(this,d,Pi(n[d])),h=o.get(d),p=h?c&&c.get(d)?"replaceMerge":"normalMerge":"replaceAll",g=yJ(h,f,p);yxe(g,d,dn),r[d]=null,o.set(d,null),a.set(d,0);var v=[],m=[],y=0,b;Z(g,function(x,_){var S=x.existing,$=x.newOption;if(!$)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var C=d==="series",w=dn.getClass(d,x.keyInfo.subType,!C);if(!w)return;if(d==="tooltip"){if(b)return;b=!0}if(S&&S.constructor===w)S.name=x.keyInfo.name,S.mergeOption($,this),S.optionUpdated($,!1);else{var z=ke({componentIndex:_},x.keyInfo);S=new w($,this,this,z),ke(S,z),x.brandNew&&(S.__requireNewView=!0),S.init($,this,this),S.optionUpdated(null,!0)}}S?(v.push(S.option),m.push(S),y++):(v.push(void 0),m.push(void 0))},this),r[d]=v,o.set(d,m),a.set(d,y),d==="series"&&Jw(this)}this._seriesIndices||Jw(this)},t.prototype.getOption=function(){var n=Ht(this.option);return Z(n,function(i,r){if(dn.hasClass(r)){for(var o=Pi(i),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!sx(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[r]=o}}),delete n[IG],n},t.prototype.setTheme=function(n){this._theme=new Vn(n),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,i){var r=this._componentsMap.get(n);if(r){var o=r[i||0];if(o)return o;if(i==null){for(var a=0;a<r.length;a++)if(r[a])return r[a]}}},t.prototype.queryComponents=function(n){var i=n.mainType;if(!i)return[];var r=n.index,o=n.id,a=n.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return r!=null?(l=[],Z(Pi(r),function(c){s[c]&&l.push(s[c])})):o!=null?l=RG("id",o,s):a!=null?l=RG("name",a,s):l=Kn(s,function(c){return!!c}),LG(l,n)},t.prototype.findComponents=function(n){var i=n.query,r=n.mainType,o=s(i),a=o?this.queryComponents(o):Kn(this._componentsMap.get(r),function(c){return!!c});return l(LG(a,n));function s(c){var u=r+"Index",d=r+"Id",f=r+"Name";return c&&(c[u]!=null||c[d]!=null||c[f]!=null)?{mainType:r,index:c[u],id:c[d],name:c[f]}:null}function l(c){return n.filter?Kn(c,n.filter):c}},t.prototype.eachComponent=function(n,i,r){var o=this._componentsMap;if(_t(n)){var a=i,s=n;o.each(function(d,f){for(var h=0;d&&h<d.length;h++){var p=d[h];p&&s.call(a,f,p,p.componentIndex)}})}else for(var l=rt(n)?o.get(n):gt(n)?this.findComponents(n):null,c=0;l&&c<l.length;c++){var u=l[c];u&&i.call(r,u,u.componentIndex)}},t.prototype.getSeriesByName=function(n){var i=to(n,null);return Kn(this._componentsMap.get("series"),function(r){return!!r&&i!=null&&r.name===i})},t.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},t.prototype.getSeriesByType=function(n){return Kn(this._componentsMap.get("series"),function(i){return!!i&&i.subType===n})},t.prototype.getSeries=function(){return Kn(this._componentsMap.get("series"),function(n){return!!n})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(n,i){gb(this),Z(this._seriesIndices,function(r){var o=this._componentsMap.get("series")[r];n.call(i,o,r)},this)},t.prototype.eachRawSeries=function(n,i){Z(this._componentsMap.get("series"),function(r){r&&n.call(i,r,r.componentIndex)})},t.prototype.eachSeriesByType=function(n,i,r){gb(this),Z(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===n&&i.call(r,a,o)},this)},t.prototype.eachRawSeriesByType=function(n,i,r){return Z(this.getSeriesByType(n),i,r)},t.prototype.isSeriesFiltered=function(n){return gb(this),this._seriesIndicesMap.get(n.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(n,i){gb(this);var r=[];Z(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];n.call(i,a,o)&&r.push(o)},this),this._seriesIndices=r,this._seriesIndicesMap=Nt(r)},t.prototype.restoreData=function(n){Jw(this);var i=this._componentsMap,r=[];i.each(function(o,a){dn.hasClass(a)&&r.push(a)}),dn.topologicalTravel(r,dn.getAllClassMainTypes(),function(o){Z(i.get(o),function(a){a&&(o!=="series"||!kSe(a,n))&&a.restoreData()})})},t.internalField=(function(){Jw=function(n){var i=n._seriesIndices=[];Z(n._componentsMap.get("series"),function(r){r&&i.push(r.componentIndex)}),n._seriesIndicesMap=Nt(i)},gb=function(n){},AG=function(n,i){n.option={},n.option[IG]=wSe,n._componentsMap=Nt({series:[]}),n._componentsCount=Nt();var r=i.aria;gt(r)&&r.enabled==null&&(r.enabled=!0),MSe(i,n._theme.option),an(i,mSe,!1),n._mergeOption(i,null)}})(),t})(Vn);function kSe(e,t){if(t){var n=t.seriesIndex,i=t.seriesId,r=t.seriesName;return n!=null&&e.componentIndex!==n||i!=null&&e.id!==i||r!=null&&e.name!==r}}function MSe(e,t){var n=e.color&&!e.colorLayer;Z(t,function(i,r){r==="colorLayer"&&n||r==="color"&&e.color||dn.hasClass(r)||(typeof i=="object"?e[r]=e[r]?an(e[r],i,!1):Ht(i):e[r]==null&&(e[r]=i))})}function RG(e,t,n){if(Ne(t)){var i=Nt();return Z(t,function(o){if(o!=null){var a=to(o,null);a!=null&&i.set(o,!0)}}),Kn(n,function(o){return o&&i.get(o[e])})}else{var r=to(t,null);return Kn(n,function(o){return o&&r!=null&&o[e]===r})}}function LG(e,t){return t.hasOwnProperty("subType")?Kn(e,function(n){return n&&n.subType===t.subType}):e}function EG(e){var t=Nt();return e&&Z(Pi(e.replaceMerge),function(n){t.set(n,!0)}),{replaceMergeMainTypeMap:t}}da(eP,Q4);var CSe=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],OQ=(function(){function e(t){Z(CSe,function(n){this[n]=Qt(t[n],t)},this)}return e})(),zSe=/^(min|max)?(.+)$/,TSe=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,n,i){t&&(Z(Pi(t.series),function(a){a&&a.data&&io(a.data)&&gN(a.data)}),Z(Pi(t.dataset),function(a){a&&a.source&&io(a.source)&&gN(a.source)})),t=Ht(t);var r=this._optionBackup,o=ASe(t,n,!r);this._newBaseOption=o.baseOption,r?(o.timelineOptions.length&&(r.timelineOptions=o.timelineOptions),o.mediaList.length&&(r.mediaList=o.mediaList),o.mediaDefault&&(r.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(t){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],Ht(t?n.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var n,i=this._timelineOptions;if(i.length){var r=t.getComponent("timeline");r&&(n=Ht(i[r.getCurrentIndex()]))}return n},e.prototype.getMediaOption=function(t){var n=this._api.getWidth(),i=this._api.getHeight(),r=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!r.length&&!o)return s;for(var l=0,c=r.length;l<c;l++)ISe(r[l].query,n,i)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!LSe(a,this._currentMediaIndices)&&(s=Ye(a,function(u){return Ht(u===-1?o.option:r[u].option)})),this._currentMediaIndices=a,s},e})();function ASe(e,t,n){var i=[],r,o,a=e.baseOption,s=e.timeline,l=e.options,c=e.media,u=!!e.media,d=!!(l||s||a&&a.timeline);a?(o=a,o.timeline||(o.timeline=s)):((d||u)&&(e.options=e.media=null),o=e),u&&Ne(c)&&Z(c,function(h){h&&h.option&&(h.query?i.push(h):r||(r=h))}),f(o),Z(l,function(h){return f(h)}),Z(i,function(h){return f(h.option)});function f(h){Z(t,function(p){p(h,n)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:r,mediaList:i}}function ISe(e,t,n){var i={width:t,height:n,aspectratio:t/n},r=!0;return Z(e,function(o,a){var s=a.match(zSe);if(!(!s||!s[1]||!s[2])){var l=s[1],c=s[2].toLowerCase();RSe(i[c],o,l)||(r=!1)}}),r}function RSe(e,t,n){return n==="min"?e>=t:n==="max"?e<=t:e===t}function LSe(e,t){return e.join(",")===t.join(",")}var Ca=Z,fx=gt,DG=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function gO(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=DG.length;n<i;n++){var r=DG[n],o=t.normal,a=t.emphasis;o&&o[r]&&(e[r]=e[r]||{},e[r].normal?an(e[r].normal,o[r]):e[r].normal=o[r],o[r]=null),a&&a[r]&&(e[r]=e[r]||{},e[r].emphasis?an(e[r].emphasis,a[r]):e[r].emphasis=a[r],a[r]=null)}}function mr(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,r=e[t].emphasis;i&&(n?(e[t].normal=e[t].emphasis=null,Pt(e[t],i)):e[t]=i),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r,r.focus&&(e.emphasis.focus=r.focus),r.blurScope&&(e.emphasis.blurScope=r.blurScope))}}function Ob(e){mr(e,"itemStyle"),mr(e,"lineStyle"),mr(e,"areaStyle"),mr(e,"label"),mr(e,"labelLine"),mr(e,"upperLabel"),mr(e,"edgeLabel")}function fi(e,t){var n=fx(e)&&e[t],i=fx(n)&&n.textStyle;if(i)for(var r=0,o=N7.length;r<o;r++){var a=N7[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function Xo(e){e&&(Ob(e),fi(e,"label"),e.emphasis&&fi(e.emphasis,"label"))}function ESe(e){if(fx(e)){gO(e),Ob(e),fi(e,"label"),fi(e,"upperLabel"),fi(e,"edgeLabel"),e.emphasis&&(fi(e.emphasis,"label"),fi(e.emphasis,"upperLabel"),fi(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(gO(t),Xo(t));var n=e.markLine;n&&(gO(n),Xo(n));var i=e.markArea;i&&Xo(i);var r=e.data;if(e.type==="graph"){r=r||e.nodes;var o=e.links||e.edges;if(o&&!io(o))for(var a=0;a<o.length;a++)Xo(o[a]);Z(e.categories,function(c){Ob(c)})}if(r&&!io(r))for(var a=0;a<r.length;a++)Xo(r[a]);if(t=e.markPoint,t&&t.data)for(var s=t.data,a=0;a<s.length;a++)Xo(s[a]);if(n=e.markLine,n&&n.data)for(var l=n.data,a=0;a<l.length;a++)Ne(l[a])?(Xo(l[a][0]),Xo(l[a][1])):Xo(l[a]);e.type==="gauge"?(fi(e,"axisLabel"),fi(e,"title"),fi(e,"detail")):e.type==="treemap"?(mr(e.breadcrumb,"itemStyle"),Z(e.levels,function(c){Ob(c)})):e.type==="tree"&&Ob(e.leaves)}}function $l(e){return Ne(e)?e:e?[e]:[]}function OG(e){return(Ne(e)?e[0]:e)||{}}function DSe(e,t){Ca($l(e.series),function(i){fx(i)&&ESe(i)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ca(n,function(i){Ca($l(e[i]),function(r){r&&(fi(r,"axisLabel"),fi(r.axisPointer,"label"))})}),Ca($l(e.parallel),function(i){var r=i&&i.parallelAxisDefault;fi(r,"axisLabel"),fi(r&&r.axisPointer,"label")}),Ca($l(e.calendar),function(i){mr(i,"itemStyle"),fi(i,"dayLabel"),fi(i,"monthLabel"),fi(i,"yearLabel")}),Ca($l(e.radar),function(i){fi(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),Ca($l(e.geo),function(i){fx(i)&&(Xo(i),Ca($l(i.regions),function(r){Xo(r)}))}),Ca($l(e.timeline),function(i){Xo(i),mr(i,"label"),mr(i,"itemStyle"),mr(i,"controlStyle",!0);var r=i.data;Ne(r)&&Z(r,function(o){gt(o)&&(mr(o,"label"),mr(o,"itemStyle"))})}),Ca($l(e.toolbox),function(i){mr(i,"iconStyle"),Ca(i.feature,function(r){mr(r,"iconStyle")})}),fi(OG(e.axisPointer),"label"),fi(OG(e.tooltip).axisPointer,"label")}function OSe(e,t){for(var n=t.split(","),i=e,r=0;r<n.length&&(i=i&&i[n[r]],i!=null);r++);return i}function NSe(e,t,n,i){for(var r=t.split(","),o=e,a,s=0;s<r.length-1;s++)a=r[s],o[a]==null&&(o[a]={}),o=o[a];o[r[s]]==null&&(o[r[s]]=n)}function NG(e){e&&Z(PSe,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var PSe=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],jSe=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],vO=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function vb(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<vO.length;n++){var i=vO[n][1],r=vO[n][0];t[i]!=null&&(t[r]=t[i])}}function PG(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function jG(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function USe(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function NQ(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&NQ(e[n].children,t)}function PQ(e,t){DSe(e,t),e.series=Pi(e.series),Z(e.series,function(n){if(gt(n)){var i=n.type;if(i==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(i==="pie"||i==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),PG(n.label);var r=n.data;if(r&&!io(r))for(var o=0;o<r.length;o++)PG(r[o]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(i==="gauge"){var a=OSe(n,"pointer.color");a!=null&&NSe(n,"itemStyle.color",a)}else if(i==="bar"){vb(n),vb(n.backgroundStyle),vb(n.emphasis);var r=n.data;if(r&&!io(r))for(var o=0;o<r.length;o++)typeof r[o]=="object"&&(vb(r[o]),vb(r[o]&&r[o].emphasis))}else if(i==="sunburst"){var s=n.highlightPolicy;s&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=s)),jG(n),NQ(n.data,jG)}else i==="graph"||i==="sankey"?USe(n):i==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&Pt(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),NG(n)}}),e.dataRange&&(e.visualMap=e.dataRange),Z(jSe,function(n){var i=e[n];i&&(Ne(i)||(i=[i]),Z(i,function(r){NG(r)}))})}function BSe(e){var t=Nt();e.eachSeries(function(n){var i=n.get("stack");if(i){var r=t.get(i)||t.set(i,[]),o=n.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:n};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(n){if(n.length!==0){var i=n[0].seriesModel,r=i.get("stackOrder")||"seriesAsc";r==="seriesDesc"&&n.reverse(),Z(n,function(o,a){o.data.setCalculationInfo("stackedOnSeries",a>0?n[a-1].seriesModel:null)}),FSe(n)}})}function FSe(e){Z(e,function(t,n){var i=[],r=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(c,u,d){var f=a.get(t.stackedDimension,d);if(isNaN(f))return r;var h,p;s?p=a.getRawIndex(d):h=a.get(t.stackedByDimension,d);for(var g=NaN,v=n-1;v>=0;v--){var m=e[v];if(s||(p=m.data.rawIndexOf(m.stackedByDimension,h)),p>=0){var y=m.data.getByRawIndex(m.stackResultDimension,p);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&f>=0&&y>0||l==="samesign"&&f<=0&&y<0){f=ixe(f,y),g=y;break}}}return i[0]=f,i[1]=g,i})})}var mM=(function(){function e(t){this.data=t.data||(t.sourceFormat===ja?{}:[]),this.sourceFormat=t.sourceFormat||IQ,this.seriesLayoutBy=t.seriesLayoutBy||Cs,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var i=0;i<n.length;i++){var r=n[i];r.type==null&&EQ(this,i)===nr.Must&&(r.type="ordinal")}}return e})();function tP(e){return e instanceof mM}function o5(e,t,n){n=n||UQ(e);var i=t.seriesLayoutBy,r=VSe(e,n,i,t.sourceHeader,t.dimensions),o=new mM({data:e,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:Ht(t)});return o}function jQ(e){return new mM({data:e,sourceFormat:io(e)?bu:ko})}function qSe(e){return new mM({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Ht(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function UQ(e){var t=IQ;if(io(e))t=bu;else if(Ne(e)){e.length===0&&(t=br);for(var n=0,i=e.length;n<i;n++){var r=e[n];if(r!=null){if(Ne(r)||io(r)){t=br;break}else if(gt(r)){t=ha;break}}}}else if(gt(e)){for(var o in e)if(Ie(e,o)&&Lr(e[o])){t=ja;break}}return t}function VSe(e,t,n,i,r){var o,a;if(!e)return{dimensionsDefine:UG(r),startIndex:a,dimensionsDetectedCount:o};if(t===br){var s=e;i==="auto"||i==null?BG(function(c){c!=null&&c!=="-"&&(rt(c)?a==null&&(a=1):a=0)},n,s,10):a=bn(i)?i:i?1:0,!r&&a===1&&(r=[],BG(function(c,u){r[u]=c!=null?c+"":""},n,s,1/0)),o=r?r.length:n===Rh?s.length:s[0]?s[0].length:null}else if(t===ha)r||(r=HSe(e));else if(t===ja)r||(r=[],Z(e,function(c,u){r.push(u)}));else if(t===ko){var l=Mx(e[0]);o=Ne(l)&&l.length||1}return{startIndex:a,dimensionsDefine:UG(r),dimensionsDetectedCount:o}}function HSe(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return hn(n)}function UG(e){if(e){var t=Nt();return Ye(e,function(n,i){n=gt(n)?n:{name:n};var r={name:n.name,displayName:n.displayName,type:n.type};if(r.name==null)return r;r.name+="",r.displayName==null&&(r.displayName=r.name);var o=t.get(r.name);return o?r.name+="-"+o.count++:t.set(r.name,{count:1}),r})}}function BG(e,t,n,i){if(t===Rh)for(var r=0;r<n.length&&r<i;r++)e(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&r<i;r++)e(o[r],r)}function BQ(e){var t=e.sourceFormat;return t===ha||t===ja}var lm,oh,ah,sh,FG,qG,FQ=(function(){function e(t,n){var i=tP(t)?t:jQ(t);this._source=i;var r=this._data=i.data,o=i.sourceFormat;i.seriesLayoutBy,o===bu&&(this._offset=0,this._dimSize=n,this._data=r),qG(this,r,i)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,n){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=(function(){var t=e.prototype;t.pure=!1,t.persistent=!0})(),e.internalField=(function(){var t;qG=function(a,s,l){var c=l.sourceFormat,u=l.seriesLayoutBy,d=l.startIndex,f=l.dimensionsDefine,h=FG[nP(c,u)];if(ke(a,h),c===bu)a.getItem=n,a.count=r,a.fillStorage=i;else{var p=qQ(c,u);a.getItem=Qt(p,null,s,d,f);var g=VQ(c,u);a.count=Qt(g,null,s,d,f)}};var n=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,c=this._dimSize,u=c*a,d=0;d<c;d++)s[d]=l[u+d];return s},i=function(a,s,l,c){for(var u=this._data,d=this._dimSize,f=0;f<d;f++){for(var h=c[f],p=h[0]==null?1/0:h[0],g=h[1]==null?-1/0:h[1],v=s-a,m=l[f],y=0;y<v;y++){var b=u[y*d+f];m[a+y]=b,b<p&&(p=b),b>g&&(g=b)}h[0]=p,h[1]=g}},r=function(){return this._data?this._data.length/this._dimSize:0};FG=(t={},t[br+"_"+Cs]={pure:!0,appendData:o},t[br+"_"+Rh]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ha]={pure:!0,appendData:o},t[ja]={pure:!0,appendData:function(a){var s=this._data;Z(a,function(l,c){for(var u=s[c]||(s[c]=[]),d=0;d<(l||[]).length;d++)u.push(l[d])})}},t[ko]={appendData:o},t[bu]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}})(),e})(),Qw=function(e){Ne(e)||gJ("series.data or dataset.source must be an array.")};lm={},lm[br+"_"+Cs]=Qw,lm[br+"_"+Rh]=Qw,lm[ha]=Qw,lm[ja]=function(e,t){for(var n=0;n<t.length;n++){var i=t[n].name;i==null&&gJ("dimension name must not be null/undefined.")}},lm[ko]=Qw;var VG=function(e,t,n,i){return e[i]},ZSe=(oh={},oh[br+"_"+Cs]=function(e,t,n,i){return e[i+t]},oh[br+"_"+Rh]=function(e,t,n,i,r){i+=t;for(var o=r||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},oh[ha]=VG,oh[ja]=function(e,t,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name,l=s!=null?e[s]:null;o[a]=l?l[i]:null}return o},oh[ko]=VG,oh);function qQ(e,t){var n=ZSe[nP(e,t)];return n}var HG=function(e,t,n){return e.length},GSe=(ah={},ah[br+"_"+Cs]=function(e,t,n){return Math.max(0,e.length-t)},ah[br+"_"+Rh]=function(e,t,n){var i=e[0];return i?Math.max(0,i.length-t):0},ah[ha]=HG,ah[ja]=function(e,t,n){var i=n[0].name,r=i!=null?e[i]:null;return r?r.length:0},ah[ko]=HG,ah);function VQ(e,t){var n=GSe[nP(e,t)];return n}var yO=function(e,t,n){return e[t]},WSe=(sh={},sh[br]=yO,sh[ha]=function(e,t,n){return e[n]},sh[ja]=yO,sh[ko]=function(e,t,n){var i=Mx(e);return i instanceof Array?i[t]:i},sh[bu]=yO,sh);function HQ(e){var t=WSe[e];return t}function nP(e,t){return e===br?e+"_"+t:e}function Um(e,t,n){if(e){var i=e.getRawDataItem(t);if(i!=null){var r=e.getStore(),o=r.getSource().sourceFormat;if(n!=null){var a=e.getDimensionIndex(n),s=r.getDimensionProperty(a);return HQ(o)(i,a,s)}else{var l=i;return o===ko&&(l=Mx(i)),l}}}}var YSe=/\{@(.+?)\}/g,XSe=(function(){function e(){}return e.prototype.getDataParams=function(t,n){var i=this.getData(n),r=this.getRawValue(t,n),o=i.getRawIndex(t),a=i.getName(t),s=i.getRawDataItem(t),l=i.getItemVisual(t,"style"),c=l&&l[i.getItemVisual(t,"drawType")||"fill"],u=l&&l.stroke,d=this.mainType,f=d==="series",h=i.userOutput&&i.userOutput.get();return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:a,dataIndex:o,data:s,dataType:n,value:r,color:c,borderColor:u,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,n,i,r,o,a){n=n||"normal";var s=this.getData(i),l=this.getDataParams(t,i);if(a&&(l.value=a.interpolatedValue),r!=null&&Ne(l.value)&&(l.value=l.value[r]),!o){var c=s.getItemModel(t);o=c.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(_t(o))return l.status=n,l.dimensionIndex=r,o(l);if(rt(o)){var u=wQ(o,l);return u.replace(YSe,function(d,f){var h=f.length,p=f;p.charAt(0)==="["&&p.charAt(h-1)==="]"&&(p=+p.slice(1,h-1));var g=Um(s,t,p);if(a&&Ne(a.interpolatedValue)){var v=s.getDimensionIndex(p);v>=0&&(g=a.interpolatedValue[v])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,n){return Um(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,i){},e})();function ZG(e){var t,n;return gt(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Kb(e){return new KSe(e)}var KSe=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!i&&(o=this._plan(this.context));var a=u(this._modBy),s=this._modDataCount||0,l=u(t&&t.modBy),c=t&&t.modDataCount||0;(a!==l||s!==c)&&(o="reset");function u(y){return!(y>=1)&&(y=1),y}var d;(this._dirty||o==="reset")&&(this._dirty=!1,d=this._doReset(i)),this._modBy=l,this._modDataCount=c;var f=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!i&&(d||h<p)){var g=this._progress;if(Ne(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],h,p,l,c);else this._doProgress(g,h,p,l,c)}this._dueIndex=p;var m=this._settedOutputEnd!=null?this._settedOutputEnd:p;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,n,i,r,o){GG.reset(n,i,r,o),this._callingProgress=t,this._callingProgress({start:n,end:i,count:i-n,next:GG.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,i;!t&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(i=n.forceFirstProgress,n=n.progress),Ne(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),i},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e})(),GG=(function(){var e,t,n,i,r,o={reset:function(l,c,u,d){t=l,e=c,n=u,i=d,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var l=t%r*n+Math.ceil(t/r),c=t>=e?null:l<i?l:t;return t++,c}})();function Bk(e,t){var n=t&&t.type;return n==="ordinal"?e:(n==="time"&&!bn(e)&&e!=null&&e!=="-"&&(e=+Jm(e)),e==null||e===""?NaN:Number(e))}Nt({number:function(e){return parseFloat(e)},time:function(e){return+Jm(e)},trim:function(e){return rt(e)?bs(e):e}});var JSe=(function(){function e(t,n){var i=t==="desc";this._resultLT=i?1:-1,n==null&&(n=i?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,n){var i=bn(t)?t:h2(t),r=bn(n)?n:h2(n),o=isNaN(i),a=isNaN(r);if(o&&(i=this._incomparable),a&&(r=this._incomparable),o&&a){var s=rt(t),l=rt(n);s&&(i=l?t:0),l&&(r=s?n:0)}return i<r?this._resultLT:i>r?-this._resultLT:0},e})(),QSe=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return Bk(t,n)},e})();function e$e(e,t){var n=new QSe,i=e.data,r=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==Cs&&rr(a);var s=[],l={},c=e.dimensionsDefine;if(c)Z(c,function(g,v){var m=g.name,y={index:v,name:m,displayName:g.displayName};if(s.push(y),m!=null){var b="";Ie(l,m)&&rr(b),l[m]=y}});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var d=qQ(r,Cs);t.__isBuiltIn&&(n.getRawDataItem=function(g){return d(i,o,s,g)},n.getRawData=Qt(t$e,null,e)),n.cloneRawData=Qt(n$e,null,e);var f=VQ(r,Cs);n.count=Qt(f,null,i,o,s);var h=HQ(r);n.retrieveValue=function(g,v){var m=d(i,o,s,g);return p(m,v)};var p=n.retrieveValueFromItem=function(g,v){if(g!=null){var m=s[v];if(m)return h(g,v,m.name)}};return n.getDimensionInfo=Qt(i$e,null,s,l),n.cloneAllDimensionInfo=Qt(r$e,null,s),n}function t$e(e){var t=e.sourceFormat;if(!iP(t)){var n="";rr(n)}return e.data}function n$e(e){var t=e.sourceFormat,n=e.data;if(!iP(t)){var i="";rr(i)}if(t===br){for(var r=[],o=0,a=n.length;o<a;o++)r.push(n[o].slice());return r}else if(t===ha){for(var r=[],o=0,a=n.length;o<a;o++)r.push(ke({},n[o]));return r}}function i$e(e,t,n){if(n!=null){if(bn(n)||!isNaN(n)&&!Ie(t,n))return e[n];if(Ie(t,n))return t[n]}}function r$e(e){return Ht(e)}var ZQ=Nt();function o$e(e){e=Ht(e);var t=e.type,n="";t||rr(n);var i=t.split(":");i.length!==2&&rr(n);var r=!1;i[0]==="echarts"&&(t=i[1],r=!0),e.__isBuiltIn=r,ZQ.set(t,e)}function a$e(e,t,n){var i=Pi(e),r=i.length,o="";r||rr(o);for(var a=0,s=r;a<s;a++){var l=i[a];t=s$e(l,t),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function s$e(e,t,n,i){var r="";t.length||rr(r),gt(e)||rr(r);var o=e.type,a=ZQ.get(o);a||rr(r);var s=Ye(t,function(c){return e$e(c,a)}),l=Pi(a.transform({upstream:s[0],upstreamList:s,config:Ht(e.config)}));return Ye(l,function(c,u){var d="";gt(c)||rr(d),c.data||rr(d);var f=UQ(c.data);iP(f)||rr(d);var h,p=t[0];if(p&&u===0&&!c.dimensions){var g=p.startIndex;g&&(c.data=p.data.slice(0,g).concat(c.data)),h={seriesLayoutBy:Cs,sourceHeader:g,dimensions:p.metaRawOption.dimensions}}else h={seriesLayoutBy:Cs,sourceHeader:0,dimensions:c.dimensions};return o5(c.data,h,null)})}function iP(e){return e===br||e===ha}var gM="undefined",l$e=typeof Uint32Array===gM?Array:Uint32Array,c$e=typeof Uint16Array===gM?Array:Uint16Array,GQ=typeof Int32Array===gM?Array:Int32Array,WG=typeof Float64Array===gM?Array:Float64Array,WQ={float:WG,int:GQ,ordinal:Array,number:Array,time:WG},bO;function cm(e){return e>65535?l$e:c$e}function um(){return[1/0,-1/0]}function u$e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function YG(e,t,n,i,r){var o=WQ[n||"float"];if(r){var a=e[t],s=a&&a.length;if(s!==i){for(var l=new o(i),c=0;c<s;c++)l[c]=a[c];e[t]=l}}else e[t]=new o(i)}var a5=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Nt()}return e.prototype.initData=function(t,n,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),o=this.defaultDimValueGetter=bO[r.sourceFormat];this._dimValueGetter=i||o,this._rawExtent=[],BQ(r),this._dimensions=Ye(n,function(a){return{type:a.type,property:a.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,n){var i=this._calcDimNameToIdx,r=this._dimensions,o=i.get(t);if(o!=null){if(r[o].type===n)return o}else o=r.length;return r[o]={type:n},i.set(t,o),this._chunks[o]=new WQ[n||"float"](this._rawCount),this._rawExtent[o]=um(),o},e.prototype.collectOrdinalMeta=function(t,n){var i=this._chunks[t],r=this._dimensions[t],o=this._rawExtent,a=r.ordinalOffset||0,s=i.length;a===0&&(o[t]=um());for(var l=o[t],c=a;c<s;c++){var u=i[c]=n.parseAndCollect(i[c]);isNaN(u)||(l[0]=Math.min(u,l[0]),l[1]=Math.max(u,l[1]))}r.ordinalMeta=n,r.ordinalOffset=s,r.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var n=this._dimensions[t],i=n.ordinalMeta;return i},e.prototype.getDimensionProperty=function(t){var n=this._dimensions[t];return n&&n.property},e.prototype.appendData=function(t){var n=this._provider,i=this.count();n.appendData(t);var r=n.count();return n.persistent||(r+=i),i<r&&this._initDataFromProvider(i,r,!0),[i,r]},e.prototype.appendValues=function(t,n){for(var i=this._chunks,r=this._dimensions,o=r.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,n||0),c=0;c<o;c++){var u=r[c];YG(i,c,u.type,l,!0)}for(var d=[],f=s;f<l;f++)for(var h=f-s,p=0;p<o;p++){var u=r[p],g=bO.arrayRows.call(this,t[h]||d,u.property,h,p);i[p][f]=g;var v=a[p];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,i){for(var r=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,c=Ye(a,function(y){return y.property}),u=0;u<s;u++){var d=a[u];l[u]||(l[u]=um()),YG(o,u,d.type,n,i)}if(r.fillStorage)r.fillStorage(t,n,o,l);else for(var f=[],h=t;h<n;h++){f=r.getItem(h,f);for(var p=0;p<s;p++){var g=o[p],v=this._dimValueGetter(f,c[p],h,p);g[h]=v;var m=l[p];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(n)]:NaN},e.prototype.getValues=function(t,n){var i=[],r=[];if(n==null){n=t,t=[];for(var o=0;o<this._dimensions.length;o++)r.push(o)}else r=t;for(var o=0,a=r.length;o<a;o++)i.push(this.get(r[o],n));return i},e.prototype.getByRawIndex=function(t,n){if(!(n>=0&&n<this._rawCount))return NaN;var i=this._chunks[t];return i?i[n]:NaN},e.prototype.getSum=function(t){var n=this._chunks[t],i=0;if(n)for(var r=0,o=this.count();r<o;r++){var a=this.get(t,r);isNaN(a)||(i+=a)}return i},e.prototype.getMedian=function(t){var n=[];this.each([t],function(o){isNaN(o)||n.push(o)});var i=n.sort(function(o,a){return o-a}),r=this.count();return r===0?0:r%2===1?i[(r-1)/2]:(i[r/2]+i[r/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,i=n[t];if(i!=null&&i<this._count&&i===t)return t;for(var r=0,o=this._count-1;r<=o;){var a=(r+o)/2|0;if(n[a]<t)r=a+1;else if(n[a]>t)o=a-1;else return a}return-1},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var i=n.constructor,r=this._count;if(i===Array){t=new i(r);for(var o=0;o<r;o++)t[o]=n[o]}else t=new i(n.buffer,0,r)}else{var i=cm(this._rawCount);t=new i(this.count());for(var o=0;o<t.length;o++)t[o]=o}return t},e.prototype.filter=function(t,n){if(!this._count)return this;for(var i=this.clone(),r=i.count(),o=cm(i._rawCount),a=new o(r),s=[],l=t.length,c=0,u=t[0],d=i._chunks,f=0;f<r;f++){var h=void 0,p=i.getRawIndex(f);if(l===0)h=n(f);else if(l===1){var g=d[u][p];h=n(g,f)}else{for(var v=0;v<l;v++)s[v]=d[t[v]][p];s[v]=f,h=n.apply(null,s)}h&&(a[c++]=p)}return c<r&&(i._indices=a),i._count=c,i._extent=[],i._updateGetRawIdx(),i},e.prototype.selectRange=function(t){var n=this.clone(),i=n._count;if(!i)return this;var r=hn(t),o=r.length;if(!o)return this;var a=n.count(),s=cm(n._rawCount),l=new s(a),c=0,u=r[0],d=t[u][0],f=t[u][1],h=n._chunks,p=!1;if(!n._indices){var g=0;if(o===1){for(var v=h[r[0]],m=0;m<i;m++){var y=v[m];(y>=d&&y<=f||isNaN(y))&&(l[c++]=g),g++}p=!0}else if(o===2){for(var v=h[r[0]],b=h[r[1]],x=t[r[1]][0],_=t[r[1]][1],m=0;m<i;m++){var y=v[m],S=b[m];(y>=d&&y<=f||isNaN(y))&&(S>=x&&S<=_||isNaN(S))&&(l[c++]=g),g++}p=!0}}if(!p)if(o===1)for(var m=0;m<a;m++){var $=n.getRawIndex(m),y=h[r[0]][$];(y>=d&&y<=f||isNaN(y))&&(l[c++]=$)}else for(var m=0;m<a;m++){for(var C=!0,$=n.getRawIndex(m),w=0;w<o;w++){var z=r[w],y=h[z][$];(y<t[z][0]||y>t[z][1])&&(C=!1)}C&&(l[c++]=n.getRawIndex(m))}return c<a&&(n._indices=l),n._count=c,n._extent=[],n._updateGetRawIdx(),n},e.prototype.map=function(t,n){var i=this.clone(t);return this._updateDims(i,t,n),i},e.prototype.modify=function(t,n){this._updateDims(this,t,n)},e.prototype._updateDims=function(t,n,i){for(var r=t._chunks,o=[],a=n.length,s=t.count(),l=[],c=t._rawExtent,u=0;u<n.length;u++)c[n[u]]=um();for(var d=0;d<s;d++){for(var f=t.getRawIndex(d),h=0;h<a;h++)l[h]=r[n[h]][f];l[a]=d;var p=i&&i.apply(null,l);if(p!=null){typeof p!="object"&&(o[0]=p,p=o);for(var u=0;u<p.length;u++){var g=n[u],v=p[u],m=c[g],y=r[g];y&&(y[f]=v),v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}}}},e.prototype.lttbDownSample=function(t,n){var i=this.clone([t],!0),r=i._chunks,o=r[t],a=this.count(),s=0,l=Math.floor(1/n),c=this.getRawIndex(0),u,d,f,h=new(cm(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));h[s++]=c;for(var p=1;p<a-1;p+=l){for(var g=Math.min(p+l,a-1),v=Math.min(p+l*2,a),m=(v+g)/2,y=0,b=g;b<v;b++){var x=this.getRawIndex(b),_=o[x];isNaN(_)||(y+=_)}y/=v-g;var S=p,$=Math.min(p+l,a),C=p-1,w=o[c];u=-1,f=S;for(var z=-1,A=0,b=S;b<$;b++){var x=this.getRawIndex(b),_=o[x];if(isNaN(_)){A++,z<0&&(z=x);continue}d=Math.abs((C-m)*(_-w)-(C-b)*(y-w)),d>u&&(u=d,f=x)}A>0&&A<$-S&&(h[s++]=Math.min(z,f),f=Math.max(z,f)),h[s++]=f,c=f}return h[s++]=this.getRawIndex(a-1),i._count=s,i._indices=h,i.getRawIndex=this._getRawIdx,i},e.prototype.minmaxDownSample=function(t,n){for(var i=this.clone([t],!0),r=i._chunks,o=Math.floor(1/n),a=r[t],s=this.count(),l=new(cm(this._rawCount))(Math.ceil(s/o)*2),c=0,u=0;u<s;u+=o){var d=u,f=a[this.getRawIndex(d)],h=u,p=a[this.getRawIndex(h)],g=o;u+o>s&&(g=s-u);for(var v=0;v<g;v++){var m=this.getRawIndex(u+v),y=a[m];y<f&&(f=y,d=u+v),y>p&&(p=y,h=u+v)}var b=this.getRawIndex(d),x=this.getRawIndex(h);d<h?(l[c++]=b,l[c++]=x):(l[c++]=x,l[c++]=b)}return i._count=c,i._indices=l,i._updateGetRawIdx(),i},e.prototype.downSample=function(t,n,i,r){for(var o=this.clone([t],!0),a=o._chunks,s=[],l=Math.floor(1/n),c=a[t],u=this.count(),d=o._rawExtent[t]=um(),f=new(cm(this._rawCount))(Math.ceil(u/l)),h=0,p=0;p<u;p+=l){l>u-p&&(l=u-p,s.length=l);for(var g=0;g<l;g++){var v=this.getRawIndex(p+g);s[g]=c[v]}var m=i(s),y=this.getRawIndex(Math.min(p+r(s,m)||0,u-1));c[y]=m,m<d[0]&&(d[0]=m),m>d[1]&&(d[1]=m),f[h++]=y}return o._count=h,o._indices=f,o._updateGetRawIdx(),o},e.prototype.each=function(t,n){if(this._count)for(var i=t.length,r=this._chunks,o=0,a=this.count();o<a;o++){var s=this.getRawIndex(o);switch(i){case 0:n(o);break;case 1:n(r[t[0]][s],o);break;case 2:n(r[t[0]][s],r[t[1]][s],o);break;default:for(var l=0,c=[];l<i;l++)c[l]=r[t[l]][s];c[l]=o,n.apply(null,c)}}},e.prototype.getDataExtent=function(t){var n=this._chunks[t],i=um();if(!n)return i;var r=this.count(),o=!this._indices,a;if(o)return this._rawExtent[t].slice();if(a=this._extent[t],a)return a.slice();a=i;for(var s=a[0],l=a[1],c=0;c<r;c++){var u=this.getRawIndex(c),d=n[u];d<s&&(s=d),d>l&&(l=d)}return a=[s,l],this._extent[t]=a,a},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var i=[],r=this._chunks,o=0;o<r.length;o++)i.push(r[o][n]);return i},e.prototype.clone=function(t,n){var i=new e,r=this._chunks,o=t&&ql(t,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<r.length;a++)i._chunks[a]=o[a]?u$e(r[a]):r[a];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Ht(this._extent),t._rawExtent=Ht(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,n=void 0;if(t===Array){var i=this._indices.length;n=new t(i);for(var r=0;r<i;r++)n[r]=this._indices[r]}else n=new t(this._indices);return n}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(n,i,r,o){return Bk(n[o],this._dimensions[o])}bO={arrayRows:t,objectRows:function(n,i,r,o){return Bk(n[i],this._dimensions[o])},keyedColumns:t,original:function(n,i,r,o){var a=n&&(n.value==null?n:n.value);return Bk(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,i,r,o){return n[o]}}})(),e})(),d$e=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),i=!!n.length,r,o;if(ek(t)){var a=t,s=void 0,l=void 0,c=void 0;if(i){var u=n[0];u.prepareSource(),c=u.getSource(),s=c.data,l=c.sourceFormat,o=[u._getVersionSign()]}else s=a.get("data",!0),l=io(s)?bu:ko,o=[];var d=this._getSourceMetaRawOption()||{},f=c&&c.metaRawOption||{},h=pt(d.seriesLayoutBy,f.seriesLayoutBy)||null,p=pt(d.sourceHeader,f.sourceHeader),g=pt(d.dimensions,f.dimensions),v=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||g;r=v?[o5(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:g},l)]:[]}else{var m=t;if(i){var y=this._applyTransform(n);r=y.sourceList,o=y.upstreamSignList}else{var b=m.get("source",!0);r=[o5(b,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(r,o)},e.prototype._applyTransform=function(t){var n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(r!=null){var o="";t.length!==1&&XG(o)}var a,s=[],l=[];return Z(t,function(c){c.prepareSource();var u=c.getSource(r||0),d="";r!=null&&!u&&XG(d),s.push(u),l.push(c._getVersionSign())}),i?a=a$e(i,s,{datasetIndex:n.componentIndex}):r!=null&&(a=[qSe(s[0])]),{sourceList:a,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n<t.length;n++){var i=t[n];if(i._isDirty()||this._upstreamSignList[n]!==i._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var n=this._sourceList[t];if(!n){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return n},e.prototype.getSharedDataStore=function(t){var n=t.makeStoreSchema();return this._innerGetDataStore(n.dimensions,t.source,n.hash)},e.prototype._innerGetDataStore=function(t,n,i){var r=0,o=this._storeList,a=o[r];a||(a=o[r]={});var s=a[i];if(!s){var l=this._getUpstreamSourceManagers()[0];ek(this._sourceHost)&&l?s=l._innerGetDataStore(t,n,i):(s=new a5,s.initData(new FQ(n,t.length),t)),a[i]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(ek(t)){var n=J4(t);return n?[n.getSourceManager()]:[]}else return Ye(ySe(t),function(i){return i.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,n,i,r;if(ek(t))n=t.get("seriesLayoutBy",!0),i=t.get("sourceHeader",!0),r=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=t;n=o.get("seriesLayoutBy",!0),i=o.get("sourceHeader",!0),r=o.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:i,dimensions:r}},e})();function ek(e){return e.mainType==="series"}function XG(e){throw new Error(e)}var h$e="line-height:1";function YQ(e){var t=e.lineHeight;return t==null?h$e:"line-height:"+Jr(t+"")+"px"}function XQ(e,t){var n=e.color||nt.color.tertiary,i=e.fontSize||12,r=e.fontWeight||"400",o=e.color||nt.color.secondary,a=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Jr(i+"")+"px;color:"+Jr(n)+";font-weight:"+Jr(r+""),valueStyle:"font-size:"+Jr(a+"")+"px;color:"+Jr(o)+";font-weight:"+Jr(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var f$e=[0,10,20,30],p$e=["",`
`,`

`,`


`];function Th(e,t){return t.type=e,t}function s5(e){return e.type==="section"}function KQ(e){return s5(e)?m$e:g$e}function JQ(e){if(s5(e)){var t=0,n=e.blocks.length,i=n>1||n>0&&!e.noHeader;return Z(e.blocks,function(r){var o=JQ(r);o>=t&&(t=o+ +(i&&(!o||s5(r)&&!r.noHeader)))}),t}return 0}function m$e(e,t,n,i){var r=t.noHeader,o=v$e(JQ(t)),a=[],s=t.blocks||[];Vl(!s||Ne(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Ie(c,l)){var u=new JSe(c[l],null);s.sort(function(g,v){return u.evaluate(g.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}Z(s,function(g,v){var m=t.valueFormatter,y=KQ(g)(m?ke(ke({},e),{valueFormatter:m}):e,g,v>0?o.html:0,i);y!=null&&a.push(y)});var d=e.renderMode==="richText"?a.join(o.richText):l5(i,a.join(""),r?n:o.html);if(r)return d;var f=i5(t.header,"ordinal",e.useUTC),h=XQ(i,e.renderMode).nameStyle,p=YQ(i);return e.renderMode==="richText"?QQ(e,f,h)+o.richText+d:l5(i,'<div style="'+h+";"+p+';">'+Jr(f)+"</div>"+d,n)}function g$e(e,t,n,i){var r=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,c=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(x){return x=Ne(x)?x:[x],Ye(x,function(_,S){return i5(_,Ne(h)?h[S]:h,c)})};if(!(o&&a)){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||nt.color.secondary,r),f=o?"":i5(l,"ordinal",c),h=t.valueType,p=a?[]:u(t.value,t.dataIndex),g=!s||!o,v=!s&&o,m=XQ(i,r),y=m.nameStyle,b=m.valueStyle;return r==="richText"?(s?"":d)+(o?"":QQ(e,f,y))+(a?"":x$e(e,p,g,v,b)):l5(i,(s?"":d)+(o?"":y$e(f,!s,y))+(a?"":b$e(p,g,v,b)),n)}}function KG(e,t,n,i,r,o){if(e){var a=KQ(e),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function v$e(e){return{html:f$e[e],richText:p$e[e]}}function l5(e,t,n){var i='<div style="clear:both"></div>',r="margin: "+n+"px 0 0",o=YQ(e);return'<div style="'+r+";"+o+';">'+t+i+"</div>"}function y$e(e,t,n){var i=t?"margin-left:2px":"";return'<span style="'+n+";"+i+'">'+Jr(e)+"</span>"}function b$e(e,t,n,i){var r=n?"10px":"20px",o=t?"float:right;margin-left:"+r:"";return e=Ne(e)?e:[e],'<span style="'+o+";"+i+'">'+Ye(e,function(a){return Jr(a)}).join("&nbsp;&nbsp;")+"</span>"}function QQ(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function x$e(e,t,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Ne(t)?t.join("  "):t,o)}function eee(e,t){var n=e.getData().getItemVisual(t,"style"),i=n[e.visualDrawType];return zh(i)}function tee(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var xO=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=pJ()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,i){var r=i==="richText"?this._generateStyleName():null,o=nSe({color:n,type:t,renderMode:i,markerId:r});return rt(o)?o:(this.richTextStyles[r]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,n){var i={};Ne(n)?Z(n,function(o){return ke(i,o)}):ke(i,n);var r=this._generateStyleName();return this.richTextStyles[r]=i,"{"+r+"|"+t+"}"},e})();function _$e(e){var t=e.series,n=e.dataIndex,i=e.multipleSeries,r=t.getData(),o=r.mapDimensionsAll("defaultedTooltip"),a=o.length,s=t.getRawValue(n),l=Ne(s),c=eee(t,n),u,d,f,h;if(a>1||l&&!a){var p=S$e(s,t,n,o,c);u=p.inlineValues,d=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(a){var g=r.getDimensionInfo(o[0]);h=u=Um(r,n,o[0]),d=g.type}else h=u=l?s[0]:s;var v=$4(t),m=v&&t.name||"",y=r.getName(n),b=i?m:y;return Th("section",{header:m,noHeader:i||!v,sortParam:h,blocks:[Th("nameValue",{markerType:"item",markerColor:c,name:b,noName:!bs(b),value:u,valueType:d,dataIndex:n})].concat(f||[])})}function S$e(e,t,n,i,r){var o=t.getData(),a=ql(e,function(d,f,h){var p=o.getDimensionInfo(h);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],c=[];i.length?Z(i,function(d){u(Um(o,n,d),d)}):Z(e,u);function u(d,f){var h=o.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(a?c.push(Th("nameValue",{markerType:"subItem",markerColor:r,name:h.displayName,value:d,valueType:h.type})):(s.push(d),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:c}}var iu=fn();function tk(e,t){return e.getName(t)||e.getId(t)}var $$e="__universalTransitionEnabled",Er=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,i,r){this.seriesIndex=this.componentIndex,this.dataTask=Kb({count:k$e,reset:M$e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,r);var o=iu(this).sourceManager=new d$e(this);o.prepareSource();var a=this.getInitialData(n,r);QG(a,this),this.dataTask.context.data=a,iu(this).dataBeforeProcessed=a,JG(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(n,i){var r=hx(this),o=r?Rx(n):{},a=this.subType;dn.hasClass(a)&&(a+="Series"),an(n,i.getTheme().get(this.subType)),an(n,this.getDefaultOption()),UN(n,"label",["show"]),this.fillDataTextStyle(n.data),r&&Zl(n,o,r)},t.prototype.mergeOption=function(n,i){n=an(this.option,n,!0),this.fillDataTextStyle(n.data);var r=hx(this);r&&Zl(this.option,n,r);var o=iu(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,i);QG(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,iu(this).dataBeforeProcessed=a,JG(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(n){if(n&&!io(n))for(var i=["show"],r=0;r<n.length;r++)n[r]&&n[r].label&&UN(n[r],"label",i)},t.prototype.getInitialData=function(n,i){},t.prototype.appendData=function(n){var i=this.getRawData();i.appendData(n.data)},t.prototype.getData=function(n){var i=c5(this);if(i){var r=i.context.data;return n==null||!r.getLinkedData?r:r.getLinkedData(n)}else return iu(this).data},t.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},t.prototype.setData=function(n){var i=c5(this);if(i){var r=i.context;r.outputData=n,i!==this.dataTask&&(r.data=n)}iu(this).data=n},t.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return Nt(n)},t.prototype.getSourceManager=function(){return iu(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return iu(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},t.prototype.indicesOfNearest=function(n,i,r,o){var a=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(n);if(!s||!l)return[];var c=l.dataToCoord(r);o==null&&(o=1/0);var u=[],d=1/0,f=-1,h=0;return a.each(i,function(p,g){var v=l.dataToCoord(p),m=c-v,y=Math.abs(m);y<=o&&((y<d||y===d&&m>=0&&f<0)&&(d=y,f=m,h=0),m===f&&(u[h++]=g))}),u.length=h,u},t.prototype.formatTooltip=function(n,i,r){return _$e({series:this,dataIndex:n,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Rt.node&&!(n&&n.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,i,r){var o=this.ecModel,a=Q4.prototype.getColorFromPalette.call(this,n,i,r);return a||(a=o.getColorFromPalette(n,i,r)),a},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,i){this._innerSelect(this.getData(i),n)},t.prototype.unselect=function(n,i){var r=this.option.selectedMap;if(r){var o=this.option.selectedMode,a=this.getData(i);if(o==="series"||r==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<n.length;s++){var l=n[s],c=tk(a,l);r[c]=!1,this._selectedDataIndicesMap[c]=-1}}},t.prototype.toggleSelect=function(n,i){for(var r=[],o=0;o<n.length;o++)r[0]=n[o],this.isSelected(n[o],i)?this.unselect(r,i):this.select(r,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,i=hn(n),r=[],o=0;o<i.length;o++){var a=n[i[o]];a>=0&&r.push(a)}return r},t.prototype.isSelected=function(n,i){var r=this.option.selectedMap;if(!r)return!1;var o=this.getData(i);return(r==="all"||r[tk(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[$$e])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,i){var r,o,a=this.option,s=a.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){gt(a.selectedMap)||(a.selectedMap={});for(var c=a.selectedMap,u=0;u<l;u++){var d=i[u],f=tk(n,d);c[f]=!0,this._selectedDataIndicesMap[f]=n.getRawIndex(d)}}else if(s==="single"||s===!0){var h=i[l-1],f=tk(n,h);a.selectedMap=(r={},r[f]=!0,r),this._selectedDataIndicesMap=(o={},o[f]=n.getRawIndex(h),o)}}},t.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var i=[];n.hasItemOption&&n.each(function(r){var o=n.getRawDataItem(r);o&&o.selected&&i.push(r)}),i.length>0&&this._innerSelect(n,i)}},t.registerClass=function(n){return dn.registerClass(n)},t.protoInitialize=(function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"})(),t})(dn);da(Er,XSe);da(Er,Q4);$J(Er,dn);function JG(e){var t=e.name;$4(e)||(e.name=w$e(e)||t)}function w$e(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),i=[];return Z(n,function(r){var o=t.getDimensionInfo(r);o.displayName&&i.push(o.displayName)}),i.join(" ")}function k$e(e){return e.model.getRawData().count()}function M$e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),C$e}function C$e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function QG(e,t){Z(Dye(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,ai(z$e,t))})}function z$e(e,t){var n=c5(e);return n&&n.setOutputEnd((t||this).count()),t}function c5(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}var wo=(function(){function e(){this.group=new Jn,this.uid=hM("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,i,r){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,i,r){},e.prototype.updateLayout=function(t,n,i,r){},e.prototype.updateVisual=function(t,n,i,r){},e.prototype.toggleBlurSeries=function(t,n,i){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e})();k4(wo);nM(wo);function Lx(){var e=fn();return function(t){var n=e(t),i=t.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!!(i&&i.large),s=n.progressiveRender=!!(i&&i.progressiveRender);return(r!==a||o!==s)&&"reset"}}var nee=fn(),T$e=Lx(),vr=(function(){function e(){this.group=new Jn,this.uid=hM("viewChart"),this.renderTask=Kb({plan:A$e,reset:I$e}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,i,r){},e.prototype.highlight=function(t,n,i,r){var o=t.getData(r&&r.dataType);o&&tW(o,r,"emphasis")},e.prototype.downplay=function(t,n,i,r){var o=t.getData(r&&r.dataType);o&&tW(o,r,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,i,r){this.render(t,n,i,r)},e.prototype.updateLayout=function(t,n,i,r){this.render(t,n,i,r)},e.prototype.updateVisual=function(t,n,i,r){this.render(t,n,i,r)},e.prototype.eachRendered=function(t){Qm(this.group,t)},e.markUpdateMethod=function(t,n){nee(t).updateMethod=n},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function eW(e,t,n){e&&YN(e)&&(t==="emphasis"?v2:y2)(e,n)}function tW(e,t,n){var i=Mh(e,t),r=t&&t.highlightKey!=null?j_e(t.highlightKey):null;i!=null?Z(Pi(i),function(o){eW(e.getItemGraphicEl(o),n,r)}):e.eachItemGraphicEl(function(o){eW(o,n,r)})}k4(vr);nM(vr);function A$e(e){return T$e(e.model)}function I$e(e){var t=e.model,n=e.ecModel,i=e.api,r=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=r&&nee(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,n,i,r),R$e[l]}var R$e={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},M2="\0__throttleOriginMethod",nW="\0__throttleRate",iW="\0__throttleType";function rP(e,t,n){var i,r=0,o=0,a=null,s,l,c,u;t=t||0;function d(){o=new Date().getTime(),a=null,e.apply(l,c||[])}var f=function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];i=new Date().getTime(),l=this,c=h;var g=u||t,v=u||n;u=null,s=i-(v?r:o)-g,clearTimeout(a),v?a=setTimeout(d,g):s>=0?d():a=setTimeout(d,-s),r=i};return f.clear=function(){a&&(clearTimeout(a),a=null)},f.debounceNextCall=function(h){u=h},f}function iee(e,t,n,i){var r=e[t];if(r){var o=r[M2]||r,a=r[iW],s=r[nW];if(s!==n||a!==i){if(n==null||!i)return e[t]=o;r=e[t]=rP(o,n,i==="debounce"),r[M2]=o,r[iW]=i,r[nW]=n}return r}}function u5(e,t){var n=e[t];n&&n[M2]&&(n.clear&&n.clear(),e[t]=n[M2])}var rW=fn(),oW={itemStyle:lx(dQ,!0),lineStyle:lx(uQ,!0)},L$e={lineStyle:"stroke",itemStyle:"fill"};function ree(e,t){var n=e.visualStyleMapper||oW[t];return n||(console.warn("Unknown style type '"+t+"'."),oW.itemStyle)}function oee(e,t){var n=e.visualDrawType||L$e[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var E$e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=e.getModel(i),o=ree(e,i),a=o(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=oee(e,i),c=a[l],u=_t(c)?c:null,d=a.fill==="auto"||a.stroke==="auto";if(!a[l]||u||d){var f=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=f,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||_t(a.fill)?f:a.fill,a.stroke=a.stroke==="auto"||_t(a.stroke)?f:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var g=e.getDataParams(p),v=ke({},a);v[l]=u(g),h.setItemVisual(p,"style",v)}}}},yb=new Vn,D$e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=ree(e,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[i]){yb.option=l[i];var c=r(yb),u=a.ensureUniqueItemVisual(s,"style");ke(u,c),yb.option.decal&&(a.setItemVisual(s,"decal",yb.option.decal),yb.option.decal.dirty=!0),o in c&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},O$e={performRawSeries:!0,overallReset:function(e){var t=Nt();e.eachSeries(function(n){var i=n.getColorBy();if(!n.isColorBySeries()){var r=n.type+"-"+i,o=t.get(r);o||(o={},t.set(r,o)),rW(n).scope=o}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var i=n.getRawData(),r={},o=n.getData(),a=rW(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=oee(n,s);o.each(function(c){var u=o.getRawIndex(c);r[u]=c}),i.each(function(c){var u=r[c],d=o.getItemVisual(u,"colorFromPalette");if(d){var f=o.ensureUniqueItemVisual(u,"style"),h=i.getName(c)||c+"",p=i.count();f[l]=n.getColorFromPalette(h,a,p)}})}})}},nk=Math.PI;function N$e(e,t){t=t||{},Pt(t,{text:"loading",textColor:nt.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:nt.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Jn,i=new si({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var r=new pi({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new si({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(o);var a;return t.showSpinner&&(a=new cM({shape:{startAngle:-nk/2,endAngle:-nk/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:nk*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:nk*3/2}).delay(300).start("circularInOut"),n.add(a)),n.resize=function(){var s=r.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),u=e.getHeight()/2;t.showSpinner&&a.setShape({cx:c,cy:u}),o.setShape({x:c-l,y:u-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var aee=(function(){function e(t,n,i,r){this._stageTaskMap=Nt(),this.ecInstance=t,this.api=n,i=this._dataProcessorHandlers=i.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=i.concat(r)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(i){var r=i.overallTask;r&&r.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),r=i.context,o=!n&&i.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>i.blockIndex,a=o?i.step:null,s=r&&r.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var i=this._pipelineMap.get(t.uid),r=t.getData(),o=r.count(),a=i.progressiveEnabled&&n.incrementalPrepareRender&&o>=i.threshold,s=t.get("large")&&o>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?o:null;t.pipelineContext=i.context={progressiveRender:a,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var n=this,i=n._pipelineMap=Nt();t.eachSeries(function(r){var o=r.getProgressive(),a=r.uid;i.set(a,{id:a,head:null,tail:null,threshold:r.getProgressiveThreshold(),progressiveEnabled:o&&!(r.preventIncremental&&r.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(r,r.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),i=this.api;Z(this._allHandlers,function(r){var o=t.get(r.uid)||t.set(r.uid,{}),a="";Vl(!(r.reset&&r.overallReset),a),r.reset&&this._createSeriesStageTask(r,o,n,i),r.overallReset&&this._createOverallStageTask(r,o,n,i)},this)},e.prototype.prepareView=function(t,n,i,r){var o=t.renderTask,a=o.context;a.model=n,a.ecModel=i,a.api=r,o.__block=!t.incrementalPrepareRender,this._pipe(n,o)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,i){this._performStageTasks(this._visualHandlers,t,n,i)},e.prototype._performStageTasks=function(t,n,i,r){r=r||{};var o=!1,a=this;Z(t,function(l,c){if(!(r.visualType&&r.visualType!==l.visualType)){var u=a._stageTaskMap.get(l.uid),d=u.seriesTaskMap,f=u.overallTask;if(f){var h,p=f.agentStubMap;p.each(function(v){s(r,v)&&(v.dirty(),h=!0)}),h&&f.dirty(),a.updatePayload(f,i);var g=a.getPerformArgs(f,r.block);p.each(function(v){v.perform(g)}),f.perform(g)&&(o=!0)}else d&&d.each(function(v,m){s(r,v)&&v.dirty();var y=a.getPerformArgs(v,r.block);y.skip=!l.performRawSeries&&n.isSeriesFiltered(v.context.model),a.updatePayload(v,i),v.perform(y)&&(o=!0)})}});function s(l,c){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(c.__pipeline.id))}this.unfinished=o||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(i){n=i.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,i,r){var o=this,a=n.seriesTaskMap,s=n.seriesTaskMap=Nt(),l=t.seriesType,c=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(u):l?i.eachRawSeriesByType(l,u):c&&c(i,r).each(u);function u(d){var f=d.uid,h=s.set(f,a&&a.get(f)||Kb({plan:F$e,reset:q$e,count:H$e}));h.context={model:d,ecModel:i,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(d,h)}},e.prototype._createOverallStageTask=function(t,n,i,r){var o=this,a=n.overallTask=n.overallTask||Kb({reset:P$e});a.context={ecModel:i,api:r,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Nt(),c=t.seriesType,u=t.getTargetSeries,d=!0,f=!1,h="";Vl(!t.createOnAllSeries,h),c?i.eachRawSeriesByType(c,p):u?u(i,r).each(p):(d=!1,Z(i.getSeries(),p));function p(g){var v=g.uid,m=l.set(v,s&&s.get(v)||(f=!0,Kb({reset:j$e,onDirty:B$e})));m.context={model:g,overallProgress:d},m.agent=a,m.__block=d,o._pipe(g,m)}f&&a.dirty()},e.prototype._pipe=function(t,n){var i=t.uid,r=this._pipelineMap.get(i);!r.head&&(r.head=n),r.tail&&r.tail.pipe(n),r.tail=n,n.__idxInPipeline=r.count++,n.__pipeline=r},e.wrapStageHandler=function(t,n){return _t(t)&&(t={overallReset:t,seriesType:Z$e(t)}),t.uid=hM("stageHandler"),n&&(t.visualType=n),t},e})();function P$e(e){e.overallReset(e.ecModel,e.api,e.payload)}function j$e(e){return e.overallProgress&&U$e}function U$e(){this.agent.dirty(),this.getDownstream().dirty()}function B$e(){this.agent&&this.agent.dirty()}function F$e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function q$e(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Pi(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Ye(t,function(n,i){return see(i)}):V$e}var V$e=see(0);function see(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var o=t.start;o<t.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(t,i)}}function H$e(e){return e.data.count()}function Z$e(e){C2=null;try{e(px,lee)}catch{}return C2}var px={},lee={},C2;cee(px,eP);cee(lee,OQ);px.eachSeriesByType=px.eachRawSeriesByType=function(e){C2=e};px.eachComponent=function(e){e.mainType==="series"&&e.subType&&(C2=e.subType)};function cee(e,t){for(var n in t.prototype)e[n]=no}var He=nt.darkColor,G$e=He.background,bb=function(){return{axisLine:{lineStyle:{color:He.axisLine}},splitLine:{lineStyle:{color:He.axisSplitLine}},splitArea:{areaStyle:{color:[He.backgroundTint,He.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:He.axisMinorSplitLine}},axisLabel:{color:He.axisLabel},axisName:{}}},aW={label:{color:He.secondary},itemStyle:{borderColor:He.borderTint},dividerLineStyle:{color:He.border}},uee={darkMode:!0,color:He.theme,backgroundColor:G$e,axisPointer:{lineStyle:{color:He.border},crossStyle:{color:He.borderShade},label:{color:He.tertiary}},legend:{textStyle:{color:He.secondary},pageTextStyle:{color:He.tertiary}},textStyle:{color:He.secondary},title:{textStyle:{color:He.primary},subtextStyle:{color:He.quaternary}},toolbox:{iconStyle:{borderColor:He.accent50}},tooltip:{backgroundColor:He.neutral20,defaultBorderColor:He.border,textStyle:{color:He.tertiary}},dataZoom:{borderColor:He.accent10,textStyle:{color:He.tertiary},brushStyle:{color:He.backgroundTint},handleStyle:{color:He.neutral00,borderColor:He.accent20},moveHandleStyle:{color:He.accent40},emphasis:{handleStyle:{borderColor:He.accent50}},dataBackground:{lineStyle:{color:He.accent30},areaStyle:{color:He.accent20}},selectedDataBackground:{lineStyle:{color:He.accent50},areaStyle:{color:He.accent30}}},visualMap:{textStyle:{color:He.secondary},handleStyle:{borderColor:He.neutral30}},timeline:{lineStyle:{color:He.accent10},label:{color:He.tertiary},controlStyle:{color:He.accent30,borderColor:He.accent30}},calendar:{itemStyle:{color:He.neutral00,borderColor:He.neutral20},dayLabel:{color:He.tertiary},monthLabel:{color:He.secondary},yearLabel:{color:He.secondary}},matrix:{x:aW,y:aW,backgroundColor:{borderColor:He.axisLine},body:{itemStyle:{borderColor:He.borderTint}}},timeAxis:bb(),logAxis:bb(),valueAxis:bb(),categoryAxis:bb(),line:{symbol:"circle"},graph:{color:He.theme},gauge:{title:{color:He.secondary},axisLine:{lineStyle:{color:[[1,He.neutral05]]}},axisLabel:{color:He.axisLabel},detail:{color:He.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:He.background}},radar:(function(){var e=bb();return e.axisName={color:He.axisLabel},e.axisLine.lineStyle.color=He.neutral20,e})(),treemap:{breadcrumb:{itemStyle:{color:He.neutral20,textStyle:{color:He.secondary}},emphasis:{itemStyle:{color:He.neutral30}}}},sunburst:{itemStyle:{borderColor:He.background}},map:{itemStyle:{borderColor:He.border,areaColor:He.neutral10},label:{color:He.tertiary},emphasis:{label:{color:He.primary},itemStyle:{areaColor:He.highlight}},select:{label:{color:He.primary},itemStyle:{areaColor:He.highlight}}},geo:{itemStyle:{borderColor:He.border,areaColor:He.neutral10},emphasis:{label:{color:He.primary},itemStyle:{areaColor:He.highlight}},select:{label:{color:He.primary},itemStyle:{color:He.highlight}}}};uee.categoryAxis.splitLine.show=!1;var W$e=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var n={},i={},r={};if(rt(t)){var o=_s(t);n.mainType=o.main||null,n.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};Z(t,function(l,c){for(var u=!1,d=0;d<a.length;d++){var f=a[d],h=c.lastIndexOf(f);if(h>0&&h===c.length-f.length){var p=c.slice(0,h);p!=="data"&&(n.mainType=p,n[f.toLowerCase()]=l,u=!0)}}s.hasOwnProperty(c)&&(i[c]=l,u=!0),u||(r[c]=l)})}return{cptQuery:n,dataQuery:i,otherQuery:r}},e.prototype.filter=function(t,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=n.cptQuery,c=n.dataQuery;return u(l,a,"mainType")&&u(l,a,"subType")&&u(l,a,"index","componentIndex")&&u(l,a,"name")&&u(l,a,"id")&&u(c,o,"name")&&u(c,o,"dataIndex")&&u(c,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,r,o));function u(d,f,h,p){return d[h]==null||f[p||h]===d[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),d5=["symbol","symbolSize","symbolRotate","symbolOffset"],sW=d5.concat(["symbolKeepAspect"]),Y$e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var i={},r={},o=!1,a=0;a<d5.length;a++){var s=d5[a],l=e.get(s);_t(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||e.defaultSymbol,n.setVisual(ke({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),t.isSeriesFiltered(e))return;var c=hn(r);function u(d,f){for(var h=e.getRawValue(f),p=e.getDataParams(f),g=0;g<c.length;g++){var v=c[g];d.setItemVisual(f,v,r[v](h,p))}}return{dataEach:o?u:null}}},X$e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function i(r,o){for(var a=r.getItemModel(o),s=0;s<sW.length;s++){var l=sW[s],c=a.getShallow(l,!0);c!=null&&r.setItemVisual(o,l,c)}}return{dataEach:n.hasItemOption?i:null}}};function K$e(e,t,n){switch(n){case"color":var i=e.getItemVisual(t,"style");return i[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}function J$e(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function Q$e(e,t){function n(i,r){var o=[];return i.eachComponent({mainType:"series",subType:e,query:r},function(a){o.push(a.seriesIndex)}),o}Z([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(i){t(i[0],function(r,o,a){r=ke({},r),a.dispatchAction(ke(r,{type:i[1],seriesIndex:n(o,r)}))})})}function dm(e,t,n,i,r){var o=e+t;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,c=r.selected,u=0;u<c.length;u++)if(c[u].seriesIndex===s){var d=a.getData(),f=Mh(d,r.fromActionPayload);n.trigger(o,{type:o,seriesId:a.id,name:Ne(f)?d.getName(f[0]):d.getName(f),selected:rt(l)?l:ke({},l)})}})}function ewe(e,t,n){e.on("selectchanged",function(i){var r=n.getModel();i.isFromClick?(dm("map","selectchanged",t,r,i),dm("pie","selectchanged",t,r,i)):i.fromAction==="select"?(dm("map","selected",t,r,i),dm("pie","selected",t,r,i)):i.fromAction==="unselect"&&(dm("map","unselected",t,r,i),dm("pie","unselected",t,r,i))})}function Nb(e,t,n){for(var i;e&&!(t(e)&&(i=e,n));)e=e.__hostTarget||e.parent;return i}var twe=Math.round(Math.random()*9),nwe=typeof Object.defineProperty=="function",iwe=(function(){function e(){this._id="__ec_inner_"+twe++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,n){var i=this._guard(t);return nwe?Object.defineProperty(i,this._id,{value:n,enumerable:!1,configurable:!0}):i[this._id]=n,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e})(),rwe=nn.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i+o),e.lineTo(n-r,i+o),e.closePath()}}),owe=nn.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i),e.lineTo(n,i+o),e.lineTo(n-r,i),e.closePath()}}),awe=nn.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width/5*3,o=Math.max(r,t.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,c=Math.asin(s/a),u=Math.cos(c)*a,d=Math.sin(c),f=Math.cos(c),h=a*.6,p=a*.7;e.moveTo(n-u,l+s),e.arc(n,l,a,Math.PI-c,Math.PI*2+c),e.bezierCurveTo(n+u-d*h,l+s+f*h,n,i-p,n,i),e.bezierCurveTo(n,i-p,n-u+d*h,l+s+f*h,n-u,l+s),e.closePath()}}),swe=nn.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,r=t.x,o=t.y,a=i/3*2;e.moveTo(r,o),e.lineTo(r+a,o+n),e.lineTo(r,o+n/4*3),e.lineTo(r-a,o+n),e.lineTo(r,o),e.closePath()}}),lwe={line:ku,rect:si,roundRect:si,square:si,circle:zx,diamond:owe,pin:awe,arrow:swe,triangle:rwe},cwe={line:function(e,t,n,i,r){r.x1=e,r.y1=t+i/2,r.x2=e+n,r.y2=t+i/2},rect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i},roundRect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(e,t,n,i,r){var o=Math.min(n,i);r.x=e,r.y=t,r.width=o,r.height=o},circle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.r=Math.min(n,i)/2},diamond:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i},pin:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},arrow:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},triangle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i}},h5={};Z(lwe,function(e,t){h5[t]=new e});var uwe=nn.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=u2(e,t,n),r=this.shape;return r&&r.symbolType==="pin"&&t.position==="inside"&&(i.y=n.y+n.height*.4),i},buildPath:function(e,t,n){var i=t.symbolType;if(i!=="none"){var r=h5[i];r||(i="rect",r=h5[i]),cwe[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,n)}}});function dwe(e,t){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||nt.color.neutral00,n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=e:n.fill=e,this.markRedraw()}}function Mu(e,t,n,i,r,o,a){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=QJ(e.slice(8),new It(t,n,i,r),a?"center":"cover"):e.indexOf("path://")===0?l=cx(e.slice(7),{},new It(t,n,i,r),a?"center":"cover"):l=new uwe({shape:{symbolType:e,x:t,y:n,width:i,height:r}}),l.__isEmptyBrush=s,l.setColor=dwe,o&&l.setColor(o),l}function dee(e){return Ne(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function hee(e,t){if(e!=null)return Ne(e)||(e=[e,e]),[tn(e[0],t[0])||0,tn(pt(e[1],e[0]),t[1])||0]}function gh(e){return isFinite(e)}function hwe(e,t,n){var i=t.x==null?0:t.x,r=t.x2==null?1:t.x2,o=t.y==null?0:t.y,a=t.y2==null?0:t.y2;t.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=gh(i)?i:0,r=gh(r)?r:1,o=gh(o)?o:0,a=gh(a)?a:0;var s=e.createLinearGradient(i,o,r,a);return s}function fwe(e,t,n){var i=n.width,r=n.height,o=Math.min(i,r),a=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(a=a*i+n.x,s=s*r+n.y,l=l*o),a=gh(a)?a:.5,s=gh(s)?s:.5,l=l>=0&&gh(l)?l:.5;var c=e.createRadialGradient(a,s,0,a,s,l);return c}function f5(e,t,n){for(var i=t.type==="radial"?fwe(e,t,n):hwe(e,t,n),r=t.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function pwe(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function ik(e){return parseInt(e,10)}function rk(e,t,n){var i=["width","height"][t],r=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(n[i]!=null&&n[i]!=="auto")return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(e);return(e[r]||ik(s[i])||ik(e.style[i]))-(ik(s[o])||0)-(ik(s[a])||0)|0}function mwe(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:bn(e)?[e]:Ne(e)?e:null}function fee(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&mwe(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(n){var r=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;r&&r!==1&&(n=Ye(n,function(o){return o/r}),i/=r)}return[n,i]}var gwe=new $u(!0);function z2(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function lW(e){return typeof e=="string"&&e!=="none"}function T2(e){var t=e.fill;return t!=null&&t!=="none"}function cW(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function uW(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function p5(e,t,n){var i=wJ(t.image,t.__image,n);if(iM(i)){var r=e.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*Oye),o.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(o)}return r}}function vwe(e,t,n,i){var r,o=z2(n),a=T2(n),s=n.strokePercent,l=s<1,c=!t.path;(!t.silent||l)&&c&&t.createPathProxy();var u=t.path||gwe,d=t.__dirty;if(!i){var f=n.fill,h=n.stroke,p=a&&!!f.colorStops,g=o&&!!h.colorStops,v=a&&!!f.image,m=o&&!!h.image,y=void 0,b=void 0,x=void 0,_=void 0,S=void 0;(p||g)&&(S=t.getBoundingRect()),p&&(y=d?f5(e,f,S):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=d?f5(e,h,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),v&&(x=d||!t.__canvasFillPattern?p5(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=x),m&&(_=d||!t.__canvasStrokePattern?p5(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),p?e.fillStyle=y:v&&(x?e.fillStyle=x:a=!1),g?e.strokeStyle=b:m&&(_?e.strokeStyle=_:o=!1)}var $=t.getGlobalScale();u.setScale($[0],$[1],t.segmentIgnoreThreshold);var C,w;e.setLineDash&&n.lineDash&&(r=fee(t),C=r[0],w=r[1]);var z=!0;(c||d&bm)&&(u.setDPR(e.dpr),l?u.setContext(null):(u.setContext(e),z=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),z&&u.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=w),i||(n.strokeFirst?(o&&uW(e,n),a&&cW(e,n)):(a&&cW(e,n),o&&uW(e,n))),C&&e.setLineDash([])}function ywe(e,t,n){var i=t.__image=wJ(n.image,t.__image,t,t.onload);if(!(!i||!iM(i))){var r=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var c=n.sx||0,u=n.sy||0;e.drawImage(i,c,u,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var c=n.sx,u=n.sy,d=a-c,f=s-u;e.drawImage(i,c,u,d,f,r,o,a,s)}else e.drawImage(i,r,o,a,s)}}function bwe(e,t,n){var i,r=n.text;if(r!=null&&(r+=""),r){e.font=n.font||_u,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(i=fee(t),o=i[0],a=i[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(z2(n)&&e.strokeText(r,n.x,n.y),T2(n)&&e.fillText(r,n.x,n.y)):(T2(n)&&e.fillText(r,n.x,n.y),z2(n)&&e.strokeText(r,n.x,n.y)),o&&e.setLineDash([])}}var dW=["shadowBlur","shadowOffsetX","shadowOffsetY"],hW=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function pee(e,t,n,i,r){var o=!1;if(!i&&(n=n||{},t===n))return!1;if(i||t.opacity!==n.opacity){Qr(e,r),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?xh.opacity:a}(i||t.blend!==n.blend)&&(o||(Qr(e,r),o=!0),e.globalCompositeOperation=t.blend||xh.blend);for(var s=0;s<dW.length;s++){var l=dW[s];(i||t[l]!==n[l])&&(o||(Qr(e,r),o=!0),e[l]=e.dpr*(t[l]||0))}return(i||t.shadowColor!==n.shadowColor)&&(o||(Qr(e,r),o=!0),e.shadowColor=t.shadowColor||xh.shadowColor),o}function fW(e,t,n,i,r){var o=mx(t,r.inHover),a=i?null:n&&mx(n,r.inHover)||{};if(o===a)return!1;var s=pee(e,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(Qr(e,r),s=!0),lW(o.fill)&&(e.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(Qr(e,r),s=!0),lW(o.stroke)&&(e.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(Qr(e,r),s=!0),e.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth,c=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||(Qr(e,r),s=!0),e.lineWidth=c)}for(var u=0;u<hW.length;u++){var d=hW[u],f=d[0];(i||o[f]!==a[f])&&(s||(Qr(e,r),s=!0),e[f]=o[f]||d[1])}return s}function xwe(e,t,n,i,r){return pee(e,mx(t,r.inHover),n&&mx(n,r.inHover),i,r)}function mee(e,t){var n=t.transform,i=e.dpr||1;n?e.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):e.setTransform(i,0,0,i,0,0)}function _we(e,t,n){for(var i=!1,r=0;r<e.length;r++){var o=e[r];i=i||o.isZeroArea(),mee(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=i}function Swe(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var pW=1,mW=2,gW=3,vW=4;function $we(e){var t=T2(e),n=z2(e);return!(e.lineDash||!(+t^+n)||t&&typeof e.fill!="string"||n&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Qr(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function mx(e,t){return t&&e.__hoverStyle||e.style}function gee(e,t){vh(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function vh(e,t,n,i){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=~_o,t.__isRendered=!1;return}var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if((!a||pwe(o,a))&&(a&&a.length&&(Qr(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Qr(e,n),e.save(),_we(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var c=n.prevEl;c||(l=s=!0);var u=t instanceof nn&&t.autoBatch&&$we(t.style);s||Swe(r,c.transform)?(Qr(e,n),mee(e,t)):u||Qr(e,n);var d=mx(t,n.inHover);t instanceof nn?(n.lastDrawType!==pW&&(l=!0,n.lastDrawType=pW),fW(e,t,c,l,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),vwe(e,t,d,u),u&&(n.batchFill=d.fill||"",n.batchStroke=d.stroke||"")):t instanceof f2?(n.lastDrawType!==gW&&(l=!0,n.lastDrawType=gW),fW(e,t,c,l,n),bwe(e,t,d)):t instanceof Na?(n.lastDrawType!==mW&&(l=!0,n.lastDrawType=mW),xwe(e,t,c,l,n),ywe(e,t,d)):t.getTemporalDisplayables&&(n.lastDrawType!==vW&&(l=!0,n.lastDrawType=vW),wwe(e,t,n)),u&&i&&Qr(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function wwe(e,t,n){var i=t.getDisplayables(),r=t.getTemporalDisplayables();e.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},a,s;for(a=t.getCursor(),s=i.length;a<s;a++){var l=i[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),vh(e,l,o,a===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var c=0,u=r.length;c<u;c++){var l=r[c];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),vh(e,l,o,c===u-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var _O=new iwe,yW=new Om(100),bW=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function A2(e,t){if(e==="none")return null;var n=t.getDevicePixelRatio(),i=t.getZr(),r=i.painter.type==="svg";e.dirty&&_O.delete(e);var o=_O.get(e);if(o)return o;var a=Pt(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,_O.set(e,s),e.dirty=!1,s;function l(c){for(var u=[n],d=!0,f=0;f<bW.length;++f){var h=a[bW[f]];if(h!=null&&!Ne(h)&&!rt(h)&&!bn(h)&&typeof h!="boolean"){d=!1;break}u.push(h)}var p;if(d){p=u.join(",")+(r?"-svg":"");var g=yW.get(p);g&&(r?c.svgElement=g:c.image=g)}var v=yee(a.dashArrayX),m=kwe(a.dashArrayY),y=vee(a.symbol),b=Mwe(v),x=bee(m),_=!r&&Fl.createCanvas(),S=r&&{tag:"g",attrs:{},key:"dcl",children:[]},$=w(),C;_&&(_.width=$.width*n,_.height=$.height*n,C=_.getContext("2d")),z(),d&&yW.put(p,_||S),c.image=_,c.svgElement=S,c.svgWidth=$.width,c.svgHeight=$.height;function w(){for(var A=1,M=0,T=b.length;M<T;++M)A=D7(A,b[M]);for(var k=1,M=0,T=y.length;M<T;++M)k=D7(k,y[M].length);A*=k;var I=x*b.length*y.length;return{width:Math.max(1,Math.min(A,a.maxTileWidth)),height:Math.max(1,Math.min(I,a.maxTileHeight))}}function z(){C&&(C.clearRect(0,0,_.width,_.height),a.backgroundColor&&(C.fillStyle=a.backgroundColor,C.fillRect(0,0,_.width,_.height)));for(var A=0,M=0;M<m.length;++M)A+=m[M];if(A<=0)return;for(var T=-x,k=0,I=0,D=0;T<$.height;){if(k%2===0){for(var E=I/2%y.length,N=0,F=0,G=0;N<$.width*2;){for(var P=0,M=0;M<v[D].length;++M)P+=v[D][M];if(P<=0)break;if(F%2===0){var O=(1-a.symbolSize)*.5,V=N+v[D][F]*O,j=T+m[k]*O,H=v[D][F]*a.symbolSize,Q=m[k]*a.symbolSize,le=G/2%y[E].length;se(V,j,H,Q,y[E][le])}N+=v[D][F],++G,++F,F===v[D].length&&(F=0)}++D,D===v.length&&(D=0)}T+=m[k],++I,++k,k===m.length&&(k=0)}function se(ae,Se,ve,$e,je){var R=r?1:n,ie=Mu(je,ae*R,Se*R,ve*R,$e*R,a.color,a.symbolKeepAspect);if(r){var te=i.painter.renderOneToVNode(ie);te&&S.children.push(te)}else gee(C,ie)}}}}function vee(e){if(!e||e.length===0)return[["rect"]];if(rt(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!rt(e[n])){t=!1;break}if(t)return vee([e]);for(var i=[],n=0;n<e.length;++n)rt(e[n])?i.push([e[n]]):i.push(e[n]);return i}function yee(e){if(!e||e.length===0)return[[0,0]];if(bn(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,i=0;i<e.length;++i)if(!bn(e[i])){n=!1;break}if(n)return yee([e]);for(var r=[],i=0;i<e.length;++i)if(bn(e[i])){var t=Math.ceil(e[i]);r.push([t,t])}else{var t=Ye(e[i],function(s){return Math.ceil(s)});t.length%2===1?r.push(t.concat(t)):r.push(t)}return r}function kwe(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(bn(e)){var t=Math.ceil(e);return[t,t]}var n=Ye(e,function(i){return Math.ceil(i)});return e.length%2?n.concat(n):n}function Mwe(e){return Ye(e,function(t){return bee(t)})}function bee(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?t*2:t}function Cwe(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(a){var s=i.getItemVisual(a,"decal");if(s){var l=i.ensureUniqueItemVisual(a,"style");l.decal=A2(s,t)}});var r=i.getVisual("decal");if(r){var o=i.getVisual("style");o.decal=A2(r,t)}}})}var Aa=new Es,xee={};function zwe(e,t){xee[e]=t}function Twe(e){return xee[e]}var _ee={};function Awe(e,t){_ee[e]=t}function Iwe(e){return _ee[e]}var Rwe=1,Lwe=800,Ewe=900,Dwe=1e3,Owe=2e3,Nwe=5e3,See=1e3,Pwe=1100,oP=2e3,$ee=3e3,jwe=4e3,vM=4500,Uwe=4600,Bwe=5e3,Fwe=6e3,wee=7e3,qwe={PROCESSOR:{FILTER:Dwe,SERIES_FILTER:Lwe,STATISTIC:Nwe},VISUAL:{LAYOUT:See,PROGRESSIVE_LAYOUT:Pwe,GLOBAL:oP,CHART:$ee,POST_CHART_LAYOUT:Uwe,COMPONENT:jwe,BRUSH:Bwe,CHART_ITEM:vM,ARIA:Fwe,DECAL:wee}},xi="__flagInMainProcess",ok="__mainProcessVersion",Di="__pendingUpdate",SO="__needsUpdateStatus",xW=/^[a-zA-Z0-9_]+$/,$O="__connectUpdateStatus",_W=0,Vwe=1,Hwe=2;function kee(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return Cee(this,e,t)}}function Mee(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Cee(this,e,t)}}function Cee(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Es.prototype[t].apply(e,n)}var zee=(function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Es),Tee=zee.prototype;Tee.on=Mee("on");Tee.off=Mee("off");var lh,wO,ak,wl,sk,kO,MO,hm,fm,SW,$W,CO,wW,lk,kW,Aee,Zo,MW,pm,Iee=(function(e){ze(t,e);function t(n,i,r){var o=e.call(this,new W$e)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],r=r||{},o._dom=n;var a="canvas",s="auto",l=!1;o[ok]=1,r.ssr;var c=o._zr=L7(n,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:pt(r.useDirtyRect,l),useCoarsePointer:pt(r.useCoarsePointer,s),pointerSize:r.pointerSize});o._ssr=r.ssr,o._throttledZrFlush=rP(Qt(c.flush,c),17),o._updateTheme(i),o._locale=q1e(r.locale||fQ),o._coordSysMgr=new X4;var u=o._api=kW(o);function d(f,h){return f.__prio-h.__prio}return Ak(R2,d),Ak(v5,d),o._scheduler=new aee(o,u,v5,R2),o._messageCenter=new zee,o._initEvents(),o.resize=Qt(o.resize,o),c.animation.on("frame",o._onframe,o),SW(c,o),$W(c,o),gN(o),o}return t.prototype._onframe=function(){if(!this._disposed){MW(this);var n=this._scheduler;if(this[Di]){var i=this[Di].silent;this[xi]=!0,pm(this);try{lh(this),wl.update.call(this,null,this[Di].updateParams)}catch(l){throw this[xi]=!1,this[Di]=null,l}this._zr.flush(),this[xi]=!1,this[Di]=null,hm.call(this,i),fm.call(this,i)}else if(n.unfinished){var r=Rwe,o=this._model,a=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(o),n.performDataProcessorTasks(o),kO(this,o),n.performVisualTasks(o),lk(this,this._model,a,"remain",{}),r-=+new Date-s}while(r>0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,i,r){if(!this[xi]){if(this._disposed){this.id;return}var o,a,s;if(gt(i)&&(r=i.lazyUpdate,o=i.silent,a=i.replaceMerge,s=i.transition,i=i.notMerge),this[xi]=!0,pm(this),!this._model||i){var l=new TSe(this._api),c=this._theme,u=this._model=new eP;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,c,this._locale,l)}this._model.setOption(n,{replaceMerge:a},y5);var d={seriesTransition:s,optionChanged:!0};if(r)this[Di]={silent:o,updateParams:d},this[xi]=!1,this.getZr().wakeUp();else{try{lh(this),wl.update.call(this,null,d)}catch(f){throw this[Di]=null,this[xi]=!1,f}this._ssr||this._zr.flush(),this[Di]=null,this[xi]=!1,hm.call(this,o),fm.call(this,o)}}},t.prototype.setTheme=function(n,i){if(!this[xi]){if(this._disposed){this.id;return}var r=this._model;if(r){var o=i&&i.silent,a=null;this[Di]&&(o==null&&(o=this[Di].silent),a=this[Di].updateParams,this[Di]=null),this[xi]=!0,pm(this);try{this._updateTheme(n),r.setTheme(this._theme),lh(this),wl.update.call(this,{type:"setTheme"},a)}catch(s){throw this[xi]=!1,s}this[xi]=!1,hm.call(this,o),fm.call(this,o)}}},t.prototype._updateTheme=function(n){rt(n)&&(n=Ree[n]),n&&(n=Ht(n),n&&PQ(n,!0),this._theme=n)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Rt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var i=this._zr.painter;return i.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){var n=this._zr,i=n.storage.getDisplayList();return Z(i,function(r){r.stopAnimation(null,!0)}),n.painter.toDataURL()},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var i=n.excludeComponents,r=this._model,o=[],a=this;Z(i,function(l){r.eachComponent({mainType:l},function(c){var u=a._componentsMap[c.__viewId];u.group.ignore||(o.push(u),u.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return Z(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var i=n.type==="svg",r=this.group,o=Math.min,a=Math.max,s=1/0;if(CW[r]){var l=s,c=s,u=-s,d=-s,f=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();Z(Jb,function(b,x){if(b.group===r){var _=i?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(Ht(n)),S=b.getDom().getBoundingClientRect();l=o(S.left,l),c=o(S.top,c),u=a(S.right,u),d=a(S.bottom,d),f.push({dom:_,left:S.left,top:S.top})}}),l*=h,c*=h,u*=h,d*=h;var p=u-l,g=d-c,v=Fl.createCanvas(),m=L7(v,{renderer:i?"svg":"canvas"});if(m.resize({width:p,height:g}),i){var y="";return Z(f,function(b){var x=b.left-l,_=b.top-c;y+='<g transform="translate('+x+","+_+')">'+b.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,n.connectedBackgroundColor&&m.painter.setBackgroundColor(n.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return n.connectedBackgroundColor&&m.add(new si({shape:{x:0,y:0,width:p,height:g},style:{fill:n.connectedBackgroundColor}})),Z(f,function(b){var x=new Na({style:{x:b.left*h-l,y:b.top*h-c,image:b.dom}});m.add(x)}),m.refreshImmediately(),v.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,i,r){return sk(this,"convertToPixel",n,i,r)},t.prototype.convertToLayout=function(n,i,r){return sk(this,"convertToLayout",n,i,r)},t.prototype.convertFromPixel=function(n,i,r){return sk(this,"convertFromPixel",n,i,r)},t.prototype.containPixel=function(n,i){if(this._disposed){this.id;return}var r=this._model,o,a=GD(r,n);return Z(a,function(s,l){l.indexOf("Models")>=0&&Z(s,function(c){var u=c.coordinateSystem;if(u&&u.containPoint)o=o||!!u.containPoint(i);else if(l==="seriesModels"){var d=this._chartsMap[c.__viewId];d&&d.containPoint&&(o=o||d.containPoint(i,c))}},this)},this),!!o},t.prototype.getVisual=function(n,i){var r=this._model,o=GD(r,n,{defaultMainType:"series"}),a=o.seriesModel,s=a.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?K$e(s,l,i):J$e(s,i)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;Z(Zwe,function(r){var o=function(a){var s=n.getModel(),l=a.target,c,u=r==="globalout";if(u?c={}:l&&Nb(l,function(g){var v=Ut(g);if(v&&v.dataIndex!=null){var m=v.dataModel||s.getSeriesByIndex(v.seriesIndex);return c=m&&m.getDataParams(v.dataIndex,v.dataType,l)||{},!0}else if(v.eventData)return c=ke({},v.eventData),!0},!0),c){var d=c.componentType,f=c.componentIndex;(d==="markLine"||d==="markPoint"||d==="markArea")&&(d="series",f=c.seriesIndex);var h=d&&f!=null&&s.getComponent(d,f),p=h&&n[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];c.event=a,c.type=r,n._$eventProcessor.eventInfo={targetEl:l,packedEvent:c,model:h,view:p},n.trigger(r,c)}};o.zrEventfulCallAtLast=!0,n._zr.on(r,o,n)});var i=this._messageCenter;Z(g5,function(r,o){i.on(o,function(a){n.trigger(o,a)})}),ewe(i,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&xJ(this.getDom(),sP,"");var i=this,r=i._api,o=i._model;Z(i._componentsViews,function(a){a.dispose(o,r)}),Z(i._chartsViews,function(a){a.dispose(o,r)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Jb[i.id]},t.prototype.resize=function(n){if(!this[xi]){if(this._disposed){this.id;return}this._zr.resize(n);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var r=i.resetOption("media"),o=n&&n.silent;this[Di]&&(o==null&&(o=this[Di].silent),r=!0,this[Di]=null),this[xi]=!0,pm(this);try{r&&lh(this),wl.update.call(this,{type:"resize",animation:ke({duration:0},n&&n.animation)})}catch(a){throw this[xi]=!1,a}this[xi]=!1,hm.call(this,o),fm.call(this,o)}}},t.prototype.showLoading=function(n,i){if(this._disposed){this.id;return}if(gt(n)&&(i=n,n=""),n=n||"default",this.hideLoading(),!!b5[n]){var r=b5[n](this._api,i),o=this._zr;this._loadingFX=r,o.add(r)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var i=ke({},n);return i.type=m5[n.type],i},t.prototype.dispatchAction=function(n,i){if(this._disposed){this.id;return}if(gt(i)||(i={silent:!!i}),!!I2[n.type]&&this._model){if(this[xi]){this._pendingActions.push(n);return}var r=i.silent;MO.call(this,n,r);var o=i.flush;o?this._zr.flush():o!==!1&&Rt.browser.weChat&&this._throttledZrFlush(),hm.call(this,r),fm.call(this,r)}},t.prototype.updateLabelLayout=function(){Aa.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var i=n.seriesIndex,r=this.getModel(),o=r.getSeriesByIndex(i);o.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){lh=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),wO(d,!0),wO(d,!1),f.plan()},wO=function(d,f){for(var h=d._model,p=d._scheduler,g=f?d._componentsViews:d._chartsViews,v=f?d._componentsMap:d._chartsMap,m=d._zr,y=d._api,b=0;b<g.length;b++)g[b].__alive=!1;f?h.eachComponent(function(S,$){S!=="series"&&x($)}):h.eachSeries(x);function x(S){var $=S.__requireNewView;S.__requireNewView=!1;var C="_ec_"+S.id+"_"+S.type,w=!$&&v[C];if(!w){var z=_s(S.type),A=f?wo.getClass(z.main,z.sub):vr.getClass(z.sub);w=new A,w.init(h,y),v[C]=w,g.push(w),m.add(w.group)}S.__viewId=w.__id=C,w.__alive=!0,w.__model=S,w.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!f&&p.prepareView(w,S,h,y)}for(var b=0;b<g.length;){var _=g[b];_.__alive?b++:(!f&&_.renderTask.dispose(),m.remove(_.group),_.dispose(h,y),g.splice(b,1),v[_.__id]===_&&delete v[_.__id],_.__id=_.group.__ecComponentInfo=null)}},ak=function(d,f,h,p,g){var v=d._model;if(v.setUpdatePayload(h),!p){Z([].concat(d._componentsViews).concat(d._chartsViews),_);return}var m={};m[p+"Id"]=h[p+"Id"],m[p+"Index"]=h[p+"Index"],m[p+"Name"]=h[p+"Name"];var y={mainType:p,query:m};g&&(y.subType=g);var b=h.excludeSeriesId,x;b!=null&&(x=Nt(),Z(Pi(b),function(S){var $=to(S,null);$!=null&&x.set($,!0)})),v&&v.eachComponent(y,function(S){var $=x&&x.get(S.id)!=null;if(!$)if(dG(h))if(S instanceof Er)h.type===_h&&!h.notBlur&&!S.get(["emphasis","disabled"])&&I_e(S,h,d._api);else{var C=I4(S.mainType,S.componentIndex,h.name,d._api),w=C.focusSelf,z=C.dispatchers;h.type===_h&&w&&!h.notBlur&&GN(S.mainType,S.componentIndex,d._api),z&&Z(z,function(A){h.type===_h?v2(A):y2(A)})}else XN(h)&&S instanceof Er&&(E_e(S,h,d._api),cG(S),Zo(d))},d),v&&v.eachComponent(y,function(S){var $=x&&x.get(S.id)!=null;$||_(d[p==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},d);function _(S){S&&S.__alive&&S[f]&&S[f](S.__model,v,d._api,h)}},wl={prepareAndUpdate:function(d){lh(this),wl.update.call(this,d,d&&{optionChanged:d.newOption!=null})},update:function(d,f){var h=this._model,p=this._api,g=this._zr,v=this._coordSysMgr,m=this._scheduler;if(h){h.setUpdatePayload(d),m.restoreData(h,d),m.performSeriesTasks(h),v.create(h,p),m.performDataProcessorTasks(h,d),kO(this,h),v.update(h,p),i(h),m.performVisualTasks(h,d);var y=h.get("backgroundColor")||"transparent";g.setBackgroundColor(y);var b=h.get("darkMode");b!=null&&b!=="auto"&&g.setDarkMode(b),CO(this,h,p,d,f),Aa.trigger("afterupdate",h,p)}},updateTransform:function(d){var f=this,h=this._model,p=this._api;if(h){h.setUpdatePayload(d);var g=[];h.eachComponent(function(m,y){if(m!=="series"){var b=f.getViewOfComponentModel(y);if(b&&b.__alive)if(b.updateTransform){var x=b.updateTransform(y,h,p,d);x&&x.update&&g.push(b)}else g.push(b)}});var v=Nt();h.eachSeries(function(m){var y=f._chartsMap[m.__viewId];if(y.updateTransform){var b=y.updateTransform(m,h,p,d);b&&b.update&&v.set(m.uid,1)}else v.set(m.uid,1)}),i(h),this._scheduler.performVisualTasks(h,d,{setDirty:!0,dirtyMap:v}),lk(this,h,p,d,{},v),Aa.trigger("afterupdate",h,p)}},updateView:function(d){var f=this._model;f&&(f.setUpdatePayload(d),vr.markUpdateMethod(d,"updateView"),i(f),this._scheduler.performVisualTasks(f,d,{setDirty:!0}),CO(this,f,this._api,d,{}),Aa.trigger("afterupdate",f,this._api))},updateVisual:function(d){var f=this,h=this._model;h&&(h.setUpdatePayload(d),h.eachSeries(function(p){p.getData().clearAllVisual()}),vr.markUpdateMethod(d,"updateVisual"),i(h),this._scheduler.performVisualTasks(h,d,{visualType:"visual",setDirty:!0}),h.eachComponent(function(p,g){if(p!=="series"){var v=f.getViewOfComponentModel(g);v&&v.__alive&&v.updateVisual(g,h,f._api,d)}}),h.eachSeries(function(p){var g=f._chartsMap[p.__viewId];g.updateVisual(p,h,f._api,d)}),Aa.trigger("afterupdate",h,this._api))},updateLayout:function(d){wl.update.call(this,d)}};function n(d,f,h,p,g){if(d._disposed){d.id;return}for(var v=d._model,m=d._coordSysMgr.getCoordinateSystems(),y,b=GD(v,h),x=0;x<m.length;x++){var _=m[x];if(_[f]&&(y=_[f](v,b,p,g))!=null)return y}}sk=n,kO=function(d,f){var h=d._chartsMap,p=d._scheduler;f.eachSeries(function(g){p.updateStreamModes(g,h[g.__viewId])})},MO=function(d,f){var h=this,p=this.getModel(),g=d.type,v=d.escapeConnect,m=I2[g],y=(m.update||"update").split(":"),b=y.pop(),x=y[0]!=null&&_s(y[0]);this[xi]=!0,pm(this);var _=[d],S=!1;d.batch&&(S=!0,_=Ye(d.batch,function(D){return D=Pt(ke({},D),d),D.batch=null,D}));var $=[],C,w=[],z=m.nonRefinedEventType,A=XN(d),M=dG(d);if(M&&qJ(this._api),Z(_,function(D){var E=m.action(D,p,h._api);if(m.refineEvent?w.push(E):C=E,C=C||ke({},D),C.type=z,$.push(C),M){var N=w4(d),F=N.queryOptionMap,G=N.mainTypeSpecified,P=G?F.keys()[0]:"series";ak(h,b,D,P),Zo(h)}else A?(ak(h,b,D,"series"),Zo(h)):x&&ak(h,b,D,x.main,x.sub)}),b!=="none"&&!M&&!A&&!x)try{this[Di]?(lh(this),wl.update.call(this,d),this[Di]=null):wl[b].call(this,d)}catch(D){throw this[xi]=!1,D}if(S?C={type:z,escapeConnect:v,batch:$}:C=$[0],this[xi]=!1,!f){var T=void 0;if(m.refineEvent){var k=m.refineEvent(w,d,p,this._api).eventContent;Vl(gt(k)),T=Pt({type:m.refinedEventType},k),T.fromAction=d.type,T.fromActionPayload=d,T.escapeConnect=!0}var I=this._messageCenter;I.trigger(C.type,C),T&&I.trigger(T.type,T)}},hm=function(d){for(var f=this._pendingActions;f.length;){var h=f.shift();MO.call(this,h,d)}},fm=function(d){!d&&this.trigger("updated")},SW=function(d,f){d.on("rendered",function(h){f.trigger("rendered",h),d.animation.isFinished()&&!f[Di]&&!f._scheduler.unfinished&&!f._pendingActions.length&&f.trigger("finished")})},$W=function(d,f){d.on("mouseover",function(h){var p=h.target,g=Nb(p,YN);g&&(R_e(g,h,f._api),Zo(f))}).on("mouseout",function(h){var p=h.target,g=Nb(p,YN);g&&(L_e(g,h,f._api),Zo(f))}).on("click",function(h){var p=h.target,g=Nb(p,function(y){return Ut(y).dataIndex!=null},!0);if(g){var v=g.selected?"unselect":"select",m=Ut(g);f._api.dispatchAction({type:v,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function i(d){d.clearColorPalette(),d.eachSeries(function(f){f.clearColorPalette()})}function r(d){var f=[],h=[],p=!1;if(d.eachComponent(function(y,b){var x=b.get("zlevel")||0,_=b.get("z")||0,S=b.getZLevelKey();p=p||!!S,(y==="series"?h:f).push({zlevel:x,z:_,idx:b.componentIndex,type:y,key:S})}),p){var g=f.concat(h),v,m;Ak(g,function(y,b){return y.zlevel===b.zlevel?y.z-b.z:y.zlevel-b.zlevel}),Z(g,function(y){var b=d.getComponent(y.type,y.idx),x=y.zlevel,_=y.key;v!=null&&(x=Math.max(v,x)),_?(x===v&&_!==m&&x++,m=_):m&&(x===v&&x++,m=""),v=x,b.setZLevel(x)})}}CO=function(d,f,h,p,g){r(f),wW(d,f,h,p,g),Z(d._chartsViews,function(v){v.__alive=!1}),lk(d,f,h,p,g),Z(d._chartsViews,function(v){v.__alive||v.remove(f,h)})},wW=function(d,f,h,p,g,v){Z(v||d._componentsViews,function(m){var y=m.__model;c(y,m),m.render(y,f,h,p),l(y,m),u(y,m)})},lk=function(d,f,h,p,g,v){var m=d._scheduler;g=ke(g||{},{updatedSeries:f.getSeries()}),Aa.trigger("series:beforeupdate",f,h,g);var y=!1;f.eachSeries(function(b){var x=d._chartsMap[b.__viewId];x.__alive=!0;var _=x.renderTask;m.updatePayload(_,p),c(b,x),v&&v.get(b.uid)&&_.dirty(),_.perform(m.getPerformArgs(_))&&(y=!0),x.group.silent=!!b.get("silent"),s(b,x),cG(b)}),m.unfinished=y||m.unfinished,Aa.trigger("series:layoutlabels",f,h,g),Aa.trigger("series:transition",f,h,g),f.eachSeries(function(b){var x=d._chartsMap[b.__viewId];l(b,x),u(b,x)}),a(d,f),Aa.trigger("series:afterupdate",f,h,g)},Zo=function(d){d[SO]=!0,d.getZr().wakeUp()},pm=function(d){d[ok]=(d[ok]+1)%1e3},MW=function(d){d[SO]&&(d.getZr().storage.traverse(function(f){Lm(f)||o(f)}),d[SO]=!1)};function o(d){for(var f=[],h=d.currentStates,p=0;p<h.length;p++){var g=h[p];g==="emphasis"||g==="blur"||g==="select"||f.push(g)}d.selected&&d.states.select&&f.push("select"),d.hoverState===aM&&d.states.emphasis?f.push("emphasis"):d.hoverState===oM&&d.states.blur&&f.push("blur"),d.useStates(f)}function a(d,f){var h=d._zr,p=h.storage,g=0;p.traverse(function(v){v.isGroup||g++}),g>f.get("hoverLayerThreshold")&&!Rt.node&&!Rt.worker&&f.eachSeries(function(v){if(!v.preventUsingHoverLayer){var m=d._chartsMap[v.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(d,f){var h=d.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function l(d,f){if(!d.preventAutoZ){var h=rQ(d);f.eachRendered(function(p){return oQ(p,h.z,h.zlevel),!0})}}function c(d,f){f.eachRendered(function(h){if(!Lm(h)){var p=h.getTextContent(),g=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function u(d,f){var h=d.getModel("stateAnimation"),p=d.isAnimationEnabled(),g=h.get("duration"),v=g>0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Lm(m))return;if(m instanceof nn&&U_e(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(p){m.stateTransition=v;var b=m.getTextContent(),x=m.getTextGuideLine();b&&(b.stateTransition=v),x&&(x.stateTransition=v)}m.__dirty&&o(m)}})}kW=function(d){return new((function(f){ze(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return d._model.getComponent(g.mainType,g.index);p=p.parent}},h.prototype.enterEmphasis=function(p,g){v2(p,g),Zo(d)},h.prototype.leaveEmphasis=function(p,g){y2(p,g),Zo(d)},h.prototype.enterBlur=function(p){A_e(p),Zo(d)},h.prototype.leaveBlur=function(p){jJ(p),Zo(d)},h.prototype.enterSelect=function(p){UJ(p),Zo(d)},h.prototype.leaveSelect=function(p){BJ(p),Zo(d)},h.prototype.getModel=function(){return d.getModel()},h.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},h.prototype.getMainProcessVersion=function(){return d[ok]},h})(OQ))(d)},Aee=function(d){function f(h,p){for(var g=0;g<h.length;g++){var v=h[g];v[$O]=p}}Z(m5,function(h,p){d._messageCenter.on(p,function(g){if(CW[d.group]&&d[$O]!==_W){if(g&&g.escapeConnect)return;var v=d.makeActionFromEvent(g),m=[];Z(Jb,function(y){y!==d&&y.group===d.group&&m.push(y)}),f(m,_W),Z(m,function(y){y[$O]!==Vwe&&y.dispatchAction(v)}),f(m,Hwe)}})})}})(),t})(Es),aP=Iee.prototype;aP.on=kee("on");aP.off=kee("off");aP.one=function(e,t,n){var i=this;function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];t&&t.apply&&t.apply(this,o),i.off(e,r)}this.on.call(this,e,r,n)};var Zwe=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],I2={},m5={},g5={},v5=[],y5=[],R2=[],Ree={},b5={},Jb={},CW={},Gwe=+new Date-0,sP="_echarts_instance_";function Wwe(e,t,n){{var i=Ywe(e);if(i)return i}var r=new Iee(e,t,n);return r.id="ec_"+Gwe++,Jb[r.id]=r,xJ(e,sP,r.id),Aee(r),Aa.trigger("afterinit",r),r}function Ywe(e){return Jb[_xe(e,sP)]}function Lee(e,t){Ree[e]=t}function Eee(e){Zt(y5,e)<0&&y5.push(e)}function Dee(e,t){cP(v5,e,t,Owe)}function Xwe(e){lP("afterinit",e)}function Kwe(e){lP("afterupdate",e)}function lP(e,t){Aa.on(e,t)}function ig(e,t,n){var i,r,o,a,s;_t(t)&&(n=t,t=""),gt(e)?(i=e.type,r=e.event,a=e.update,s=e.publishNonRefinedEvent,n||(n=e.action),o=e.refineEvent):(i=e,r=t);function l(u){return u.toLowerCase()}r=l(r||i);var c=o?l(i):r;I2[i]||(Vl(xW.test(i)&&xW.test(r)),o&&Vl(r!==i),I2[i]={actionType:i,refinedEventType:r,nonRefinedEventType:c,update:a,action:n,refineEvent:o},g5[r]=1,o&&s&&(g5[c]=1),m5[c]=i)}function Jwe(e,t){X4.register(e,t)}function Qwe(e,t){cP(R2,e,t,See,"layout")}function Lh(e,t){cP(R2,e,t,$ee,"visual")}var zW=[];function cP(e,t,n,i,r){if((_t(t)||gt(t))&&(n=t,t=i),!(Zt(zW,n)>=0)){zW.push(n);var o=aee.wrapStageHandler(n,r);o.__prio=t,o.__raw=n,e.push(o)}}function Oee(e,t){b5[e]=t}function eke(e,t,n){var i=Twe("registerMap");i&&i(e,t,n)}var tke=o$e;Lh(oP,E$e);Lh(vM,D$e);Lh(vM,O$e);Lh(oP,Y$e);Lh(vM,X$e);Lh(wee,Cwe);Eee(PQ);Dee(Ewe,BSe);Oee("default",N$e);ig({type:_h,event:_h,update:_h},no);ig({type:Dk,event:Dk,update:Dk},no);ig({type:m2,event:T4,update:m2,action:no,refineEvent:uP,publishNonRefinedEvent:!0});ig({type:HN,event:T4,update:HN,action:no,refineEvent:uP,publishNonRefinedEvent:!0});ig({type:g2,event:T4,update:g2,action:no,refineEvent:uP,publishNonRefinedEvent:!0});function uP(e,t,n,i){return{eventContent:{selected:D_e(n),isFromClick:t.isFromClick||!1}}}Lee("default",{});Lee("dark",uee);function xb(e){return e==null?0:e.length||1}function TW(e){return e}var Nee=(function(){function e(t,n,i,r,o,a){this._old=t,this._new=n,this._oldKeyGetter=i||TW,this._newKeyGetter=r||TW,this.context=o,this._diffModeMultiple=a==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,i={},r=new Array(t.length),o=new Array(n.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(n,i,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=r[a],l=i[s],c=xb(l);if(c>1){var u=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(u,a)}else c===1?(i[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,i)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,i={},r={},o=[],a=[];this._initIndexMap(t,i,o,"_oldKeyGetter"),this._initIndexMap(n,r,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],c=i[l],u=r[l],d=xb(c),f=xb(u);if(d>1&&f===1)this._updateManyToOne&&this._updateManyToOne(u,c),r[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(u,c),r[l]=null;else if(d===1&&f===1)this._update&&this._update(u,c),r[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(u,c),r[l]=null;else if(d>1)for(var h=0;h<d;h++)this._remove&&this._remove(c[h]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(t,n){for(var i=0;i<t.length;i++){var r=t[i],o=n[r],a=xb(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else a===1&&this._add&&this._add(o);n[r]=null}},e.prototype._initIndexMap=function(t,n,i,r){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[r](t[a],a);if(o||(i[a]=s),!!n){var l=n[s],c=xb(l);c===0?(n[s]=a,o&&i.push(s)):c===1?n[s]=[l,a]:l.push(a)}}},e})(),nke=(function(){function e(t,n){this._encode=t,this._schema=n}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e})();function ike(e,t){var n={},i=n.encode={},r=Nt(),o=[],a=[],s={};Z(e.dimensions,function(f){var h=e.getDimensionInfo(f),p=h.coordDim;if(p){var g=h.coordDimIndex;zO(i,p)[g]=f,h.isExtraCoord||(r.set(p,1),rke(h.type)&&(o[0]=f),zO(s,p)[g]=e.getDimensionIndex(h.name)),h.defaultTooltip&&a.push(f)}AQ.each(function(v,m){var y=zO(i,m),b=h.otherDims[m];b!=null&&b!==!1&&(y[b]=h.name)})});var l=[],c={};r.each(function(f,h){var p=i[h];c[h]=p[0],l=l.concat(p)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Ye(l,function(f){return e.getDimensionInfo(f).storeDimIndex}),n.encodeFirstDimNotExtra=c;var u=i.label;u&&u.length&&(o=u.slice());var d=i.tooltip;return d&&d.length?a=d.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new nke(s,t),n}function zO(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function x5(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function rke(e){return!(e==="ordinal"||e==="time")}var Fk=(function(){function e(t){this.otherDims={},t!=null&&ke(this,t)}return e})(),oke=fn(),ake={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Pee=(function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Bee(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return pt(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var n=this.source.dimensionsDefine;if(n)return n[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,n=BQ(this.source),i=!Fee(t),r="",o=[],a=0,s=0;a<t;a++){var l=void 0,c=void 0,u=void 0,d=this.dimensions[s];if(d&&d.storeDimIndex===a)l=n?d.name:null,c=d.type,u=d.ordinalMeta,s++;else{var f=this.getSourceDimension(a);f&&(l=n?f.name:null,c=f.type)}o.push({property:l,type:c,ordinalMeta:u}),n&&l!=null&&(!d||!d.isCalculationCoord)&&(r+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),r+="$",r+=ake[c]||"f",u&&(r+=u.uid),r+="$"}var h=this.source,p=[h.seriesLayoutBy,h.startIndex,r].join("$$");return{dimensions:o,hash:p}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],n=0,i=0;n<this._fullDimCount;n++){var r=void 0,o=this.dimensions[i];if(o&&o.storeDimIndex===n)o.isCalculationCoord||(r=o.name),i++;else{var a=this.getSourceDimension(n);a&&(r=a.name)}t.push(r)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})();function jee(e){return e instanceof Pee}function Uee(e){for(var t=Nt(),n=0;n<(e||[]).length;n++){var i=e[n],r=gt(i)?i.name:i;r!=null&&t.get(r)==null&&t.set(r,n)}return t}function Bee(e){var t=oke(e);return t.dimNameMap||(t.dimNameMap=Uee(e.dimensionsDefine))}function Fee(e){return e>30}var _b=gt,ru=Ye,ske=typeof Int32Array>"u"?Array:Int32Array,lke="e\0\0",AW=-1,cke=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],uke=["_approximateExtent"],IW,ck,Sb,$b,TO,wb,AO,qee=(function(){function e(t,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,r=!1;jee(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,i=t),i=i||["x","y"];for(var o={},a=[],s={},l=!1,c={},u=0;u<i.length;u++){var d=i[u],f=rt(d)?new Fk({name:d}):d instanceof Fk?d:new Fk(d),h=f.name;f.type=f.type||"float",f.coordDim||(f.coordDim=h,f.coordDimIndex=0);var p=f.otherDims=f.otherDims||{};a.push(h),o[h]=f,c[h]!=null&&(l=!0),f.createInvertedIndices&&(s[h]=[]);var g=u;bn(f.storeDimIndex)&&(g=f.storeDimIndex),p.itemName===0&&(this._nameDimIdx=g),p.itemId===0&&(this._idDimIdx=g),r&&(f.storeDimIndex=u)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=Nt();Z(a,function(m){v.set(o[m].storeDimIndex,m)})}}return e.prototype.getDimension=function(t){var n=this._recognizeDimIndex(t);if(n==null)return t;if(n=t,!this._dimOmitted)return this.dimensions[n];var i=this._dimIdxToName.get(n);if(i!=null)return i;var r=this._schema.getSourceDimension(n);if(r)return r.name},e.prototype.getDimensionIndex=function(t){var n=this._recognizeDimIndex(t);if(n!=null)return n;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(bn(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var n=this.getDimensionIndex(t);return n},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var n=this._dimInfos;this._getDimInfo=t?function(i){return n.hasOwnProperty(i)?n[i]:void 0}:function(i){return n[i]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,n){var i=this._dimSummary;if(n==null)return i.encodeFirstDimNotExtra[t];var r=i.encode[t];return r?r[n]:null},e.prototype.mapDimensionsAll=function(t){var n=this._dimSummary,i=n.encode[t];return(i||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,n,i){var r=this,o;if(t instanceof a5&&(o=t),!o){var a=this.dimensions,s=tP(t)||Lr(t)?new FQ(t,a.length):t;o=new a5;var l=ru(a,function(c){return{type:r._dimInfos[c].type,property:c}});o.initData(s,l,i)}this._store=o,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=ike(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var n=this._store.appendData(t);this._doInit(n[0],n[1])},e.prototype.appendValues=function(t,n){var i=this._store.appendValues(t,n&&n.length),r=i.start,o=i.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=r;s<o;s++){var l=s-r;this._nameList[s]=n[l],a&&AO(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,n=this.dimensions,i=0;i<n.length;i++){var r=this._dimInfos[n[i]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==bu&&!t.fillStorage},e.prototype._doInit=function(t,n){if(!(t>=n)){var i=this._store,r=i.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=r.getSource().sourceFormat,l=s===ko;if(l&&!r.pure)for(var c=[],u=t;u<n;u++){var d=r.getItem(u,c);if(!this.hasItemOption&&dxe(d)&&(this.hasItemOption=!0),d){var f=d.name;o[u]==null&&f!=null&&(o[u]=to(f,null));var h=d.id;a[u]==null&&h!=null&&(a[u]=to(h,null))}}if(this._shouldMakeIdFromName())for(var u=t;u<n;u++)AO(this,u);IW(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,n){n=this.getDimension(n),this._approximateExtent[n]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,n){_b(t)?ke(this._calculationInfo,t):this._calculationInfo[t]=n},e.prototype.getName=function(t){var n=this.getRawIndex(t),i=this._nameList[n];return i==null&&this._nameDimIdx!=null&&(i=Sb(this,this._nameDimIdx,n)),i==null&&(i=""),i},e.prototype._getCategory=function(t,n){var i=this._store.get(t,n),r=this._store.getOrdinalMeta(t);return r?r.categories[i]:i},e.prototype.getId=function(t){return ck(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,n){var i=this._store,r=this._dimInfos[t];if(r)return i.get(r.storeDimIndex,n)},e.prototype.getByRawIndex=function(t,n){var i=this._store,r=this._dimInfos[t];if(r)return i.getByRawIndex(r.storeDimIndex,n)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,n){var i=this,r=this._store;return Ne(t)?r.getValues(ru(t,function(o){return i._getStoreDimIndex(o)}),n):r.getValues(t)},e.prototype.hasValue=function(t){for(var n=this._dimSummary.dataDimIndicesOnCoord,i=0,r=n.length;i<r;i++)if(isNaN(this._store.get(n[i],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var n=0,i=this._store.count();n<i;n++)if(this.getName(n)===t)return n;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,n){var i=t&&this._invertedIndicesMap[t],r=i&&i[n];return r==null||isNaN(r)?AW:r},e.prototype.each=function(t,n,i){_t(t)&&(i=n,n=t,t=[]);var r=i||this,o=ru($b(t),this._getStoreDimIndex,this);this._store.each(o,r?Qt(n,r):n)},e.prototype.filterSelf=function(t,n,i){_t(t)&&(i=n,n=t,t=[]);var r=i||this,o=ru($b(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,r?Qt(n,r):n),this},e.prototype.selectRange=function(t){var n=this,i={},r=hn(t);return Z(r,function(o){var a=n._getStoreDimIndex(o);i[a]=t[o]}),this._store=this._store.selectRange(i),this},e.prototype.mapArray=function(t,n,i){_t(t)&&(i=n,n=t,t=[]),i=i||this;var r=[];return this.each(t,function(){r.push(n&&n.apply(this,arguments))},i),r},e.prototype.map=function(t,n,i,r){var o=i||r||this,a=ru($b(t),this._getStoreDimIndex,this),s=wb(this);return s._store=this._store.map(a,o?Qt(n,o):n),s},e.prototype.modify=function(t,n,i,r){var o=i||r||this,a=ru($b(t),this._getStoreDimIndex,this);this._store.modify(a,o?Qt(n,o):n)},e.prototype.downSample=function(t,n,i,r){var o=wb(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),n,i,r),o},e.prototype.minmaxDownSample=function(t,n){var i=wb(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),n),i},e.prototype.lttbDownSample=function(t,n){var i=wb(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),n),i},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var n=this.hostModel,i=this.getRawDataItem(t);return new Vn(i,n,n&&n.ecModel)},e.prototype.diff=function(t){var n=this;return new Nee(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return ck(t,i)},function(i){return ck(n,i)})},e.prototype.getVisual=function(t){var n=this._visual;return n&&n[t]},e.prototype.setVisual=function(t,n){this._visual=this._visual||{},_b(t)?ke(this._visual,t):this._visual[t]=n},e.prototype.getItemVisual=function(t,n){var i=this._itemVisuals[t],r=i&&i[n];return r??this.getVisual(n)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,n){var i=this._itemVisuals,r=i[t];r||(r=i[t]={});var o=r[n];return o==null&&(o=this.getVisual(n),Ne(o)?o=o.slice():_b(o)&&(o=ke({},o)),r[n]=o),o},e.prototype.setItemVisual=function(t,n,i){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,_b(n)?ke(r,n):r[n]=i},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){_b(t)?ke(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,i){this._itemLayouts[t]=i?ke(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var i=this.hostModel&&this.hostModel.seriesIndex;__e(i,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){Z(this._graphicEls,function(i,r){i&&t&&t.call(n,i,r)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:ru(this.dimensions,this._getDimInfo,this),this.hostModel)),TO(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var i=this[t];_t(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var r=i.apply(this,arguments);return n.apply(this,[r].concat(g4(arguments)))})},e.internalField=(function(){IW=function(t){var n=t._invertedIndicesMap;Z(n,function(i,r){var o=t._dimInfos[r],a=o.ordinalMeta,s=t._store;if(a){i=n[r]=new ske(a.categories.length);for(var l=0;l<i.length;l++)i[l]=AW;for(var l=0;l<s.count();l++)i[s.get(o.storeDimIndex,l)]=l}})},Sb=function(t,n,i){return to(t._getCategory(n,i),null)},ck=function(t,n){var i=t._idList[n];return i==null&&t._idDimIdx!=null&&(i=Sb(t,t._idDimIdx,n)),i==null&&(i=lke+n),i},$b=function(t){return Ne(t)||(t=t!=null?[t]:[]),t},wb=function(t){var n=new e(t._schema?t._schema:ru(t.dimensions,t._getDimInfo,t),t.hostModel);return TO(n,t),n},TO=function(t,n){Z(cke.concat(n.__wrappedMethods||[]),function(i){n.hasOwnProperty(i)&&(t[i]=n[i])}),t.__wrappedMethods=n.__wrappedMethods,Z(uke,function(i){t[i]=Ht(n[i])}),t._calculationInfo=ke({},n._calculationInfo)},AO=function(t,n){var i=t._nameList,r=t._idList,o=t._nameDimIdx,a=t._idDimIdx,s=i[n],l=r[n];if(s==null&&o!=null&&(i[n]=s=Sb(t,o,n)),l==null&&a!=null&&(r[n]=l=Sb(t,a,n)),l==null&&s!=null){var c=t._nameRepeatCount,u=c[s]=(c[s]||0)+1;l=s,u>1&&(l+="__ec__"+u),r[n]=l}}})(),e})();function Vee(e,t){tP(e)||(e=jQ(e)),t=t||{};var n=t.coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],r=Nt(),o=[],a=hke(e,n,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Fee(a),l=i===e.dimensionsDefine,c=l?Bee(e):Uee(i),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,a));for(var d=Nt(u),f=new GQ(a),h=0;h<f.length;h++)f[h]=-1;function p(w){var z=f[w];if(z<0){var A=i[w],M=gt(A)?A:{name:A},T=new Fk,k=M.name;k!=null&&c.get(k)!=null&&(T.name=T.displayName=k),M.type!=null&&(T.type=M.type),M.displayName!=null&&(T.displayName=M.displayName);var I=o.length;return f[w]=I,T.storeDimIndex=w,o.push(T),T}return o[z]}if(!s)for(var h=0;h<a;h++)p(h);d.each(function(w,z){var A=Pi(w).slice();if(A.length===1&&!rt(A[0])&&A[0]<0){d.set(z,!1);return}var M=d.set(z,[]);Z(A,function(T,k){var I=rt(T)?c.get(T):T;I!=null&&I<a&&(M[k]=I,v(p(I),z,k))})});var g=0;Z(n,function(w){var z,A,M,T;if(rt(w))z=w,T={};else{T=w,z=T.name;var k=T.ordinalMeta;T.ordinalMeta=null,T=ke({},T),T.ordinalMeta=k,A=T.dimsDef,M=T.otherDims,T.name=T.coordDim=T.coordDimIndex=T.dimsDef=T.otherDims=null}var I=d.get(z);if(I!==!1){if(I=Pi(I),!I.length)for(var D=0;D<(A&&A.length||1);D++){for(;g<a&&p(g).coordDim!=null;)g++;g<a&&I.push(g++)}Z(I,function(E,N){var F=p(E);if(l&&T.type!=null&&(F.type=T.type),v(Pt(F,T),z,N),F.name==null&&A){var G=A[N];!gt(G)&&(G={name:G}),F.name=F.displayName=G.name,F.defaultTooltip=G.defaultTooltip}M&&Pt(F.otherDims,M)})}});function v(w,z,A){AQ.get(z)!=null?w.otherDims[z]=A:(w.coordDim=z,w.coordDimIndex=A,r.set(z,!0))}var m=t.generateCoord,y=t.generateCoordCount,b=y!=null;y=m?y||1:0;var x=m||"value";function _(w){w.name==null&&(w.name=w.coordDim)}if(s)Z(o,function(w){_(w)}),o.sort(function(w,z){return w.storeDimIndex-z.storeDimIndex});else for(var S=0;S<a;S++){var $=p(S),C=$.coordDim;C==null&&($.coordDim=fke(x,r,b),$.coordDimIndex=0,(!m||y<=0)&&($.isExtraCoord=!0),y--),_($),$.type==null&&(EQ(e,S)===nr.Must||$.isExtraCoord&&($.otherDims.itemName!=null||$.otherDims.seriesName!=null))&&($.type="ordinal")}return dke(o),new Pee({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function dke(e){for(var t=Nt(),n=0;n<e.length;n++){var i=e[n],r=i.name,o=t.get(r)||0;o>0&&(i.name=r+(o-1)),o++,t.set(r,o)}}function hke(e,t,n,i){var r=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,i||0);return Z(t,function(o){var a;gt(o)&&(a=o.dimsDef)&&(r=Math.max(r,a.length))}),r}function fke(e,t,n){if(n||t.hasKey(e)){for(var i=0;t.hasKey(e+i);)i++;e+=i}return t.set(e,!0),e}var pke=(function(){function e(t){this.coordSysDims=[],this.axisMap=Nt(),this.categoryAxisMap=Nt(),this.coordSysName=t}return e})();function mke(e){var t=e.get("coordinateSystem"),n=new pke(t),i=gke[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}var gke={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis",ia).models[0],o=e.getReferringComponents("yAxis",ia).models[0];t.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),mm(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),mm(o)&&(i.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,i){var r=e.getReferringComponents("singleAxis",ia).models[0];t.coordSysDims=["single"],n.set("single",r),mm(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar",ia).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),mm(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),mm(a)&&(i.set("angle",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var r=e.ecModel,o=r.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();Z(o.parallelAxisIndex,function(s,l){var c=r.getComponent("parallelAxis",s),u=a[l];n.set(u,c),mm(c)&&(i.set(u,c),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(e,t,n,i){var r=e.getReferringComponents("matrix",ia).models[0];t.coordSysDims=["x","y"];var o=r.getDimensionModel("x"),a=r.getDimensionModel("y");n.set("x",o),n.set("y",a),i.set("x",o),i.set("y",a)}};function mm(e){return e.get("type")==="category"}function vke(e,t,n){n=n||{};var i=n.byIndex,r=n.stackedCoordDimension,o,a,s;yke(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(e&&e.get("stack")),c,u,d,f;if(Z(o,function(y,b){rt(y)&&(o[b]=y={name:y}),l&&!y.isExtraCoord&&(!i&&!c&&y.ordinalMeta&&(c=y),!u&&y.type!=="ordinal"&&y.type!=="time"&&(!r||r===y.coordDim)&&(u=y))}),u&&!i&&!c&&(i=!0),u){d="__\0ecstackresult_"+e.id,f="__\0ecstackedover_"+e.id,c&&(c.createInvertedIndices=!0);var h=u.coordDim,p=u.type,g=0;Z(o,function(y){y.coordDim===h&&g++});var v={name:d,coordDim:h,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},m={name:f,coordDim:f,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,p),m.storeDimIndex=s.ensureCalculationDimension(d,p)),a.appendCalculationDimension(v),a.appendCalculationDimension(m)):(o.push(v),o.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:c&&c.name,isStackedByIndex:i,stackedOverDimension:f,stackResultDimension:d}}function yke(e){return!jee(e.schema)}function Bm(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function bke(e,t){return Bm(e,t)?e.getCalculationInfo("stackResultDimension"):t}function xke(e,t){var n=e.get("coordinateSystem"),i=X4.get(n),r;return t&&t.coordSysDims&&(r=Ye(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=x5(l)}return a})),r||(r=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),r}function _ke(e,t,n){var i,r;return n&&Z(e,function(o,a){var s=o.coordDim,l=n.categoryAxisMap.get(s);l&&(i==null&&(i=a),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(r=!0)}),!r&&i!=null&&(e[i].otherDims.itemName=0),i}function Ex(e,t,n){n=n||{};var i=t.getSourceManager(),r,o=!1;r=i.getSource(),o=r.sourceFormat===ko;var a=mke(t),s=xke(t,a),l=n.useEncodeDefaulter,c=_t(l)?l:l?ai(LQ,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o},d=Vee(r,u),f=_ke(d.dimensions,n.createInvertedIndices,a),h=o?null:i.getSharedDataStore(d),p=vke(t,{schema:d,store:h}),g=new qee(d,t);g.setCalculationInfo(p);var v=f!=null&&Ske(r)?function(m,y,b,x){return x===f?b:this.defaultDimValueGetter(m,y,b,x)}:null;return g.hasItemOption=!1,g.initData(o?r:h,null,v),g}function Ske(e){if(e.sourceFormat===ko){var t=$ke(e.data||[]);return!Ne(Mx(t))}}function $ke(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}function _5(e){return e.type==="interval"||e.type==="log"}function wke(e,t,n,i,r){var o={},a=o.interval=fJ(t/n);i!=null&&a<i&&(a=o.interval=i),r!=null&&a>r&&(a=o.interval=r);var s=o.intervalPrecision=gx(a),l=o.niceTickExtent=[or(Math.ceil(e[0]/a)*a,s),or(Math.floor(e[1]/a)*a,s)];return kke(l,e),o}function IO(e){var t=Math.pow(10,S4(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,or(n*t)}function gx(e){return Al(e)+2}function RW(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function kke(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),RW(e,0,t),RW(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function dP(e,t){return e>=t[0]&&e<=t[1]}var Mke=(function(){function e(){this.normalize=LW,this.scale=EW}return e.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=Qt(t.normalize,t),this.scale=Qt(t.scale,t)):(this.normalize=LW,this.scale=EW)},e})();function LW(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function EW(e,t){return e*(t[1]-t[0])+t[0]}function S5(e,t,n){var i=Math.log(e);return[Math.log(n?t[0]:Math.max(0,t[0]))/i,Math.log(n?t[1]:Math.max(0,t[1]))/i]}var Ru=(function(){function e(t){this._calculator=new Mke,this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype._innerUnionExtent=function(t){var n=this._extent;this._innerSetExtent(t[0]<n[0]?t[0]:n[0],t[1]>n[1]?t[1]:n[1])},e.prototype.unionExtentFromData=function(t,n){this._innerUnionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){this._innerSetExtent(t,n)},e.prototype._innerSetExtent=function(t,n){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(n)||(i[1]=n),this._brkCtx&&this._brkCtx.update(i)},e.prototype.setBreaksFromOption=function(t){},e.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();nM(Ru);var Cke=0,$5=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Cke,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var n=t.option,i=n.data,r=i&&Ye(i,zke);return new e({categories:r,needCollect:!r,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,i=this._needCollect;if(!rt(t)&&!i)return t;if(i&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,this._onCollect&&this._onCollect(t,n),n;var r=this._getOrCreateMap();return n=r.get(t),n==null&&(i?(n=this.categories.length,this.categories[n]=t,r.set(t,n),this._onCollect&&this._onCollect(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Nt(this.categories))},e})();function zke(e){return gt(e)&&e.value!=null?e.value:e+""}var Hee=(function(e){ze(t,e);function t(n){var i=e.call(this,n)||this;i.type="ordinal";var r=i.getSetting("ordinalMeta");return r||(r=new $5({})),Ne(r)&&(r=new $5({categories:Ye(r,function(o){return gt(o)?o.value:o})})),i._ordinalMeta=r,i._extent=i.getSetting("extent")||[0,r.categories.length-1],i}return t.prototype.parse=function(n){return n==null?NaN:rt(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return dP(n,this._extent)&&n>=0&&n<this._ordinalMeta.categories.length},t.prototype.normalize=function(n){return n=this._getTickNumber(n),this._calculator.normalize(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(this._calculator.scale(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],i=this._extent,r=i[0];r<=i[1];)n.push({value:r}),r++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=n.ordinalNumbers,r=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);a<l;++a){var c=i[a];r[a]=c,o[c]=a}for(var u=0;a<s;++a){for(;o[u]!=null;)u++;r.push(u),o[u]=a}},t.prototype._getTickNumber=function(n){var i=this._ticksByOrdinalNumber;return i&&n>=0&&n<i.length?i[n]:n},t.prototype.getRawOrdinalNumber=function(n){var i=this._ordinalNumbersByTick;return i&&n>=0&&n<i.length?i[n]:n},t.prototype.getLabel=function(n){if(!this.isBlank()){var i=this.getRawOrdinalNumber(n.value),r=this._ordinalMeta.categories[i];return r==null?"":r+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(Ru);Ru.registerClass(Hee);var ou=or,Cu=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n==null||n===""?NaN:Number(n)},t.prototype.contain=function(n){return dP(n,this._extent)},t.prototype.normalize=function(n){return this._calculator.normalize(n,this._extent)},t.prototype.scale=function(n){return this._calculator.scale(n,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=gx(n)},t.prototype.getTicks=function(n){n=n||{};var i=this._interval,r=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=w2(),l=[];if(!i)return l;n.breakTicks;var c=1e4;r[0]<o[0]&&(n.expandToNicedExtent?l.push({value:ou(o[0]-i,a)}):l.push({value:r[0]}));for(var u=function(p,g){return Math.round((g-p)/i)},d=o[0];d<=o[1];){if(l.push({value:d}),d=ou(d+i,a),this._brkCtx){var f=this._brkCtx.calcNiceTickMultiple(d,u);f>=0&&(d=ou(d+f*i,a))}if(l.length>0&&d===l[l.length-1].value)break;if(l.length>c)return[]}var h=l.length?l[l.length-1].value:o[1];return r[1]>h&&(n.expandToNicedExtent?l.push({value:ou(h+i,a)}):l.push({value:r[1]})),n.breakTicks,l},t.prototype.getMinorTicks=function(n){for(var i=this.getTicks({expandToNicedExtent:!0}),r=[],o=this.getExtent(),a=1;a<i.length;a++){var s=i[a],l=i[a-1];if(!(l.break||s.break)){for(var c=0,u=[],d=s.value-l.value,f=d/n,h=gx(f);c<n-1;){var p=ou(l.value+(c+1)*f,h);p>o[0]&&p<o[1]&&u.push(p),c++}var g=w2();g&&g.pruneTicksByBreak("auto",u,this._getNonTransBreaks(),function(v){return v},this._interval,o),r.push(u)}}return r},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(n,i){if(n==null)return"";var r=i&&i.precision;r==null?r=Al(n.value)||0:r==="auto"&&(r=this._intervalPrecision);var o=ou(n.value,r,!0);return SQ(o)},t.prototype.calcNiceTicks=function(n,i,r){n=n||5;var o=this._extent.slice(),a=this._getExtentSpanWithBreaks();if(isFinite(a)){a<0&&(a=-a,o.reverse(),this._innerSetExtent(o[0],o[1]),o=this._extent.slice());var s=wke(o,a,n,i,r);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(n){var i=this._extent.slice();if(i[0]===i[1])if(i[0]!==0){var r=Math.abs(i[0]);n.fixMax||(i[1]+=r/2),i[0]-=r/2}else i[1]=1;var o=i[1]-i[0];isFinite(o)||(i[0]=0,i[1]=1),this._innerSetExtent(i[0],i[1]),i=this._extent.slice(),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var a=this._interval,s=this._intervalPrecision;n.fixMin||(i[0]=ou(Math.floor(i[0]/a)*a,s)),n.fixMax||(i[1]=ou(Math.ceil(i[1]/a)*a,s)),this._innerSetExtent(i[0],i[1])},t.prototype.setNiceExtent=function(n,i){this._niceExtent=[n,i]},t.type="interval",t})(Ru);Ru.registerClass(Cu);var Zee=typeof Float32Array<"u",Tke=Zee?Float32Array:Array;function Ss(e){return Ne(e)?Zee?new Float32Array(e):e:new Tke(e)}var w5="__ec_stack_";function Gee(e){return e.get("stack")||w5+e.seriesIndex}function hP(e){return e.dim+e.index}function Ake(e){var t=[],n=e.axis,i="axis0";if(n.type==="category"){for(var r=n.getBandWidth(),o=0;o<e.count;o++)t.push(Pt({bandWidth:r,axisKey:i,stackId:w5+o},e));for(var a=Xee(t),s=[],o=0;o<e.count;o++){var l=a[i][w5+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Wee(e,t){var n=[];return t.eachSeriesByType(e,function(i){Kee(i)&&n.push(i)}),n}function Ike(e){var t={};Z(e,function(l){var c=l.coordinateSystem,u=c.getBaseAxis();if(!(u.type!=="time"&&u.type!=="value"))for(var d=l.getData(),f=u.dim+"_"+u.index,h=d.getDimensionIndex(d.mapDimension(u.dim)),p=d.getStore(),g=0,v=p.count();g<v;++g){var m=p.get(h,g);t[f]?t[f].push(m):t[f]=[m]}});var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];if(r){r.sort(function(l,c){return l-c});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=o===null?s:Math.min(o,s))}n[i]=o}}return n}function Yee(e){var t=Ike(e),n=[];return Z(e,function(i){var r=i.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent(),s;if(o.type==="category")s=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var l=o.dim+"_"+o.index,c=t[l],u=Math.abs(a[1]-a[0]),d=o.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=c?u/f*c:u}else{var h=i.getData();s=Math.abs(a[1]-a[0])/h.count()}var p=tn(i.get("barWidth"),s),g=tn(i.get("barMaxWidth"),s),v=tn(i.get("barMinWidth")||(Jee(i)?.5:1),s),m=i.get("barGap"),y=i.get("barCategoryGap"),b=i.get("defaultBarGap");n.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:v,barGap:m,barCategoryGap:y,defaultBarGap:b,axisKey:hP(o),stackId:Gee(i)})}),Xee(n)}function Xee(e){var t={};Z(e,function(i,r){var o=i.axisKey,a=i.bandWidth,s=t[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:i.defaultBarGap||0,stacks:{}},l=s.stacks;t[o]=s;var c=i.stackId;l[c]||s.autoWidthCount++,l[c]=l[c]||{width:0,maxWidth:0};var u=i.barWidth;u&&!l[c].width&&(l[c].width=u,u=Math.min(s.remainedWidth,u),s.remainedWidth-=u);var d=i.barMaxWidth;d&&(l[c].maxWidth=d);var f=i.barMinWidth;f&&(l[c].minWidth=f);var h=i.barGap;h!=null&&(s.gap=h);var p=i.barCategoryGap;p!=null&&(s.categoryGap=p)});var n={};return Z(t,function(i,r){n[r]={};var o=i.stacks,a=i.bandWidth,s=i.categoryGap;if(s==null){var l=hn(o).length;s=Math.max(35-l*4,15)+"%"}var c=tn(s,a),u=tn(i.gap,1),d=i.remainedWidth,f=i.autoWidthCount,h=(d-c)/(f+(f-1)*u);h=Math.max(h,0),Z(o,function(m){var y=m.maxWidth,b=m.minWidth;if(m.width){var x=m.width;y&&(x=Math.min(x,y)),b&&(x=Math.max(x,b)),m.width=x,d-=x+u*x,f--}else{var x=h;y&&y<x&&(x=Math.min(y,d)),b&&b>x&&(x=b),x!==h&&(m.width=x,d-=x+u*x,f--)}}),h=(d-c)/(f+(f-1)*u),h=Math.max(h,0);var p=0,g;Z(o,function(m,y){m.width||(m.width=h),g=m,p+=m.width*(1+u)}),g&&(p-=g.width*u);var v=-p/2;Z(o,function(m,y){n[r][y]=n[r][y]||{bandWidth:a,offset:v,width:m.width},v+=m.width*(1+u)})}),n}function Rke(e,t,n){if(e&&t){var i=e[hP(t)];return i}}function Lke(e,t){var n=Wee(e,t),i=Yee(n);Z(n,function(r){var o=r.getData(),a=r.coordinateSystem,s=a.getBaseAxis(),l=Gee(r),c=i[hP(s)][l],u=c.offset,d=c.width;o.setLayout({bandWidth:c.bandWidth,offset:u,size:d})})}function Eke(e){return{seriesType:e,plan:Lx(),reset:function(t){if(Kee(t)){var n=t.getData(),i=t.coordinateSystem,r=i.getBaseAxis(),o=i.getOtherAxis(r),a=n.getDimensionIndex(n.mapDimension(o.dim)),s=n.getDimensionIndex(n.mapDimension(r.dim)),l=t.get("showBackground",!0),c=n.mapDimension(o.dim),u=n.getCalculationInfo("stackResultDimension"),d=Bm(n,c)&&!!n.getCalculationInfo("stackedOnSeries"),f=o.isHorizontal(),h=Dke(r,o),p=Jee(t),g=t.get("barMinHeight")||0,v=u&&n.getDimensionIndex(u),m=n.getLayout("size"),y=n.getLayout("offset");return{progress:function(b,x){for(var _=b.count,S=p&&Ss(_*3),$=p&&l&&Ss(_*3),C=p&&Ss(_),w=i.master.getRect(),z=f?w.width:w.height,A,M=x.getStore(),T=0;(A=b.next())!=null;){var k=M.get(d?v:a,A),I=M.get(s,A),D=h,E=void 0;d&&(E=+k-M.get(a,A));var N=void 0,F=void 0,G=void 0,P=void 0;if(f){var O=i.dataToPoint([k,I]);if(d){var V=i.dataToPoint([E,I]);D=V[0]}N=D,F=O[1]+y,G=O[0]-D,P=m,Math.abs(G)<g&&(G=(G<0?-1:1)*g)}else{var O=i.dataToPoint([I,k]);if(d){var V=i.dataToPoint([I,E]);D=V[1]}N=O[0]+y,F=D,G=m,P=O[1]-D,Math.abs(P)<g&&(P=(P<=0?-1:1)*g)}p?(S[T]=N,S[T+1]=F,S[T+2]=f?G:P,$&&($[T]=f?w.x:N,$[T+1]=f?F:w.y,$[T+2]=z),C[A]=A):x.setItemLayout(A,{x:N,y:F,width:G,height:P}),T+=3}p&&x.setLayout({largePoints:S,largeDataIndices:C,largeBackgroundPoints:$,valueAxisHorizontal:f})}}}}}}function Kee(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Jee(e){return e.pipelineContext&&e.pipelineContext.large}function Dke(e,t){var n=t.model.get("startValue");return n||(n=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?n>0?n:1:n))}var Oke=function(e,t,n,i){for(;n<i;){var r=n+i>>>1;e[r][1]<t?n=r+1:i=r}return n},Qee=(function(e){ze(t,e);function t(n){var i=e.call(this,n)||this;return i.type="time",i}return t.prototype.getLabel=function(n){var i=this.getSetting("useUTC");return fM(n.value,MG[Q1e(Yb(this._minLevelUnit))]||MG.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(n,i,r){var o=this.getSetting("useUTC"),a=this.getSetting("locale");return eSe(n,i,r,a,o)},t.prototype.getTicks=function(n){var i=this._interval,r=this._extent,o=[];if(!i)return o;var a=this.getSetting("useUTC"),s=k2(r[1],a);o.push({value:r[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=Vke(this._minLevelUnit,this._approxInterval,a,r,this._getExtentSpanWithBreaks(),this._brkCtx);o=o.concat(l);var c=k2(r[1],a);o.push({value:r[1],time:{level:0,upperTimeUnit:c,lowerTimeUnit:c}}),this.getSetting("useUTC");var u=Sh.length-1,d=0;return Z(o,function(f){u=Math.min(u,Zt(Sh,f.time.upperTimeUnit)),d=Math.max(d,f.time.level)}),o},t.prototype.calcNiceExtent=function(n){var i=this.getExtent();if(i[0]===i[1]&&(i[0]-=ra,i[1]+=ra),i[1]===-1/0&&i[0]===1/0){var r=new Date;i[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),i[0]=i[1]-ra}this._innerSetExtent(i[0],i[1]),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},t.prototype.calcNiceTicks=function(n,i,r){n=n||10;var o=this._getExtentSpanWithBreaks();this._approxInterval=o/n,i!=null&&this._approxInterval<i&&(this._approxInterval=i),r!=null&&this._approxInterval>r&&(this._approxInterval=r);var a=uk.length,s=Math.min(Oke(uk,this._approxInterval,0,a),a-1);this._interval=uk[s][1],this._intervalPrecision=gx(this._interval),this._minLevelUnit=uk[Math.max(s-1,0)][0]},t.prototype.parse=function(n){return bn(n)?n:+Jm(n)},t.prototype.contain=function(n){return dP(n,this._extent)},t.prototype.normalize=function(n){return this._calculator.normalize(n,this._extent)},t.prototype.scale=function(n){return this._calculator.scale(n,this._extent)},t.type="time",t})(Cu),uk=[["second",F4],["minute",q4],["hour",Wb],["quarter-day",Wb*6],["half-day",Wb*12],["day",ra*1.2],["half-week",ra*3.5],["week",ra*7],["month",ra*31],["quarter",ra*95],["half-year",kG/2],["year",kG]];function Nke(e,t,n,i){return n5(new Date(t),e,i).getTime()===n5(new Date(n),e,i).getTime()}function Pke(e,t){return e/=ra,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function jke(e){var t=30*ra;return e/=t,e>6?6:e>3?3:e>2?2:1}function Uke(e){return e/=Wb,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function DW(e,t){return e/=t?q4:F4,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Bke(e){return fJ(e)}function Fke(e,t,n){var i=Math.max(0,Zt(Sh,t)-1);return n5(new Date(e),Sh[i],n).getTime()}function qke(e,t){var n=new Date(0);n[e](1);var i=n.getTime();n[e](1+t);var r=n.getTime()-i;return function(o,a){return Math.max(0,Math.round((a-o)/r))}}function Vke(e,t,n,i,r,o){var a=1e4,s=Y1e,l=0;function c(T,k,I,D,E,N,F){for(var G=qke(E,T),P=k,O=new Date(P);P<I&&P<=i[1]&&(F.push({value:P}),!(l++>a));)if(O[E](O[D]()+T),P=O.getTime(),o){var V=o.calcNiceTickMultiple(P,G);V>0&&(O[E](O[D]()+V*T),P=O.getTime())}F.push({value:P,notAdd:!0})}function u(T,k,I){var D=[],E=!k.length;if(!Nke(Yb(T),i[0],i[1],n)){E&&(k=[{value:Fke(i[0],T,n)},{value:i[1]}]);for(var N=0;N<k.length-1;N++){var F=k[N].value,G=k[N+1].value;if(F!==G){var P=void 0,O=void 0,V=void 0,j=!1;switch(T){case"year":P=Math.max(1,Math.round(t/ra/365)),O=mQ(n),V=tSe(n);break;case"half-year":case"quarter":case"month":P=jke(t),O=V4(n),V=gQ(n);break;case"week":case"half-week":case"day":P=Pke(t),O=H4(n),V=vQ(n),j=!0;break;case"half-day":case"quarter-day":case"hour":P=Uke(t),O=Z4(n),V=yQ(n);break;case"minute":P=DW(t,!0),O=G4(n),V=bQ(n);break;case"second":P=DW(t,!1),O=W4(n),V=xQ(n);break;case"millisecond":P=Bke(t),O=Y4(n),V=_Q(n);break}G>=i[0]&&F<=i[1]&&c(P,F,G,O,V,j,D),T==="year"&&I.length>1&&N===0&&I.unshift({value:I[0].value-P})}}for(var N=0;N<D.length;N++)I.push(D[N])}}for(var d=[],f=[],h=0,p=0,g=0;g<s.length;++g){var v=Yb(s[g]);if(J1e(s[g])){u(s[g],d[d.length-1]||[],f);var m=s[g+1]?Yb(s[g+1]):null;if(v!==m){if(f.length){p=h,f.sort(function(T,k){return T.value-k.value});for(var y=[],b=0;b<f.length;++b){var x=f[b].value;(b===0||f[b-1].value!==x)&&(y.push(f[b]),x>=i[0]&&x<=i[1]&&h++)}var _=r/t;if(h>_*1.5&&p>_/1.5||(d.push(y),h>_||e===s[g]))break}f=[]}}}for(var S=Kn(Ye(d,function(k){return Kn(k,function(I){return I.value>=i[0]&&I.value<=i[1]&&!I.notAdd})}),function(k){return k.length>0}),$=[],C=S.length-1,g=0;g<S.length;++g)for(var w=S[g],z=0;z<w.length;++z){var A=k2(w[z].value,n);$.push({value:w[z].value,time:{level:C-g,upperTimeUnit:A,lowerTimeUnit:A}})}$.sort(function(T,k){return T.value-k.value});for(var M=[],g=0;g<$.length;++g)(g===0||$[g].value!==$[g-1].value)&&M.push($[g]);return M}Ru.registerClass(Qee);var k5=or,Hke=Math.floor,Zke=Math.ceil,dk=Math.pow,hk=Math.log,ete=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new Cu,n}return t.prototype.getTicks=function(n){n=n||{};var i=this._extent.slice(),r=this._originalScale.getExtent(),o=e.prototype.getTicks.call(this,n),a=this.base;return this._originalScale._innerGetBreaks(),Ye(o,function(s){var l=s.value,c=null,u=dk(a,l);l===i[0]&&this._fixMin?c=r[0]:l===i[1]&&this._fixMax&&(c=r[1]);var d;return c!=null&&(u=RO(u,c)),{value:u,break:d}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(n,i){this._originalScale.setExtent(n,i);var r=S5(this.base,[n,i]);e.prototype.setExtent.call(this,r[0],r[1])},t.prototype.getExtent=function(){var n=this.base,i=e.prototype.getExtent.call(this);i[0]=dk(n,i[0]),i[1]=dk(n,i[1]);var r=this._originalScale.getExtent();return this._fixMin&&(i[0]=RO(i[0],r[0])),this._fixMax&&(i[1]=RO(i[1],r[1])),i},t.prototype.unionExtentFromData=function(n,i){this._originalScale.unionExtentFromData(n,i);var r=S5(this.base,n.getApproximateExtent(i),!0);this._innerUnionExtent(r)},t.prototype.calcNiceTicks=function(n){n=n||10;var i=this._extent.slice(),r=this._getExtentSpanWithBreaks();if(!(!isFinite(r)||r<=0)){var o=oxe(r),a=n/r*o;for(a<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[k5(Zke(i[0]/o)*o),k5(Hke(i[1]/o)*o)];this._interval=o,this._intervalPrecision=gx(o),this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){e.prototype.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.contain=function(n){return n=hk(n)/hk(this.base),e.prototype.contain.call(this,n)},t.prototype.normalize=function(n){return n=hk(n)/hk(this.base),e.prototype.normalize.call(this,n)},t.prototype.scale=function(n){return n=e.prototype.scale.call(this,n),dk(this.base,n)},t.prototype.setBreaksFromOption=function(n){},t.type="log",t})(Cu);function RO(e,t){return k5(e,Al(t))}Ru.registerClass(ete);var Gke=(function(){function e(t,n,i){this._prepareParams(t,n,i)}return e.prototype._prepareParams=function(t,n,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var r=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var o=n.get("min",!0);o==null&&(o=n.get("startValue",!0));var a=this._modelMinRaw=o;_t(a)?this._modelMinNum=fk(t,a({min:i[0],max:i[1]})):a!=="dataMin"&&(this._modelMinNum=fk(t,a));var s=this._modelMaxRaw=n.get("max",!0);if(_t(s)?this._modelMaxNum=fk(t,s({min:i[0],max:i[1]})):s!=="dataMax"&&(this._modelMaxNum=fk(t,s)),r)this._axisDataLen=n.getCategories().length;else{var l=n.get("boundaryGap"),c=Ne(l)?l:[l||0,l||0];typeof c[0]=="boolean"||typeof c[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Su(c[0],1),Su(c[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,n=this._dataMin,i=this._dataMax,r=this._axisDataLen,o=this._boundaryGapInner,a=t?null:i-n||Math.abs(n),s=this._modelMinRaw==="dataMin"?n:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,c=s!=null,u=l!=null;s==null&&(s=t?r?0:NaN:n-o[0]*a),l==null&&(l=t?r?r-1:NaN:i+o[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var d=ox(s)||ox(l)||t&&!r;this._needCrossZero&&(s>0&&l>0&&!c&&(s=0),s<0&&l<0&&!u&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,c=!0),h!=null&&(l=h,u=!0),{min:s,max:l,minFixed:c,maxFixed:u,isBlank:d}},e.prototype.modifyDataMinMax=function(t,n){this[Yke[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var i=Wke[t];this[i]=n},e.prototype.freeze=function(){this.frozen=!0},e})(),Wke={min:"_determinedMin",max:"_determinedMax"},Yke={min:"_dataMin",max:"_dataMax"};function Xke(e,t,n){var i=e.rawExtentInfo;return i||(i=new Gke(e,t,n),e.rawExtentInfo=i,i)}function fk(e,t){return t==null?null:ox(t)?NaN:e.parse(t)}function tte(e,t){var n=e.type,i=Xke(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var r=i.min,o=i.max,a=t.ecModel;if(a&&n==="time"){var s=Wee("bar",a),l=!1;if(Z(s,function(d){l=l||d.getBaseAxis()===t.axis}),l){var c=Yee(s),u=Kke(r,o,t,c);r=u.min,o=u.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function Kke(e,t,n,i){var r=n.axis.getExtent(),o=Math.abs(r[1]-r[0]),a=Rke(i,n.axis);if(a===void 0)return{min:e,max:t};var s=1/0;Z(a,function(h){s=Math.min(h.offset,s)});var l=-1/0;Z(a,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=t-e,d=1-(s+l)/o,f=u/d-u;return t+=f*(l/c),e-=f*(s/c),{min:e,max:t}}function OW(e,t){var n=t,i=tte(e,n),r=i.extent,o=n.get("splitNumber");e instanceof ete&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l=a==="interval"||a==="time";e.setBreaksFromOption(ite(n)),e.setExtent(r[0],r[1]),e.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function Jke(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Hee({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Qee({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Ru.getClass(t)||Cu)}}function Qke(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}function Dx(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var n=X1e(t);return function(r,o){return e.scale.getFormattedLabel(r,o,n)}}else{if(rt(t))return function(r){var o=e.scale.getLabel(r),a=t.replace("{value}",o??"");return a};if(_t(t)){if(e.type==="category")return function(r,o){return t(L2(e,r),r.value-e.scale.getExtent()[0],null)};var i=w2();return function(r,o){var a=null;return i&&(a=i.makeAxisLabelFormatterParamBreak(a,r.break)),t(L2(e,r),o,a)}}else return function(r){return e.scale.getLabel(r)}}}function L2(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function fP(e){var t=e.get("interval");return t??"auto"}function nte(e){return e.type==="category"&&fP(e.getLabelModel())===0}function e2e(e,t){var n={};return Z(e.mapDimensionsAll(t),function(i){n[bke(e,i)]=!0}),hn(n)}function Fm(e){return e==="middle"||e==="center"}function vx(e){return e.getShallow("show")}function ite(e){var t=e.get("breaks",!0);t==null}var rte=(function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e})(),NW=[],t2e={registerPreprocessor:Eee,registerProcessor:Dee,registerPostInit:Xwe,registerPostUpdate:Kwe,registerUpdateLifecycle:lP,registerAction:ig,registerCoordinateSystem:Jwe,registerLayout:Qwe,registerVisual:Lh,registerTransform:tke,registerLoading:Oee,registerMap:eke,registerImpl:zwe,PRIORITY:qwe,ComponentModel:dn,ComponentView:wo,SeriesModel:Er,ChartView:vr,registerComponentModel:function(e){dn.registerClass(e)},registerComponentView:function(e){wo.registerClass(e)},registerSeriesModel:function(e){Er.registerClass(e)},registerChartView:function(e){vr.registerClass(e)},registerCustomSeries:function(e,t){Awe(e,t)},registerSubTypeDefaulter:function(e,t){dn.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Kbe(e,t)}};function As(e){if(Ne(e)){Z(e,function(t){As(t)});return}Zt(NW,e)>=0||(NW.push(e),_t(e)&&(e={install:e}),e.install(t2e))}var n2e=fn(),Qb=fn(),Da={estimate:1,determine:2};function E2(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function ote(e,t){var n=Ye(t,function(i){return e.scale.parse(i)});return e.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function i2e(e,t){var n=e.getLabelModel().get("customValues");if(n){var i=Dx(e),r=e.scale.getExtent(),o=ote(e,n),a=Kn(o,function(s){return s>=r[0]&&s<=r[1]});return{labels:Ye(a,function(s){var l={value:s};return{formattedLabel:i(l),rawLabel:e.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return e.type==="category"?o2e(e,t):s2e(e)}function r2e(e,t,n){var i=e.getTickModel().get("customValues");if(i){var r=e.scale.getExtent(),o=ote(e,i);return{ticks:Kn(o,function(a){return a>=r[0]&&a<=r[1]})}}return e.type==="category"?a2e(e,t):{ticks:Ye(e.scale.getTicks(n),function(a){return a.value})}}function o2e(e,t){var n=e.getLabelModel(),i=ate(e,n,t);return!n.get("show")||e.scale.isBlank()?{labels:[]}:i}function ate(e,t,n){var i=c2e(e),r=fP(t),o=n.kind===Da.estimate;if(!o){var a=lte(i,r);if(a)return a}var s,l;_t(r)?s=dte(e,r):(l=r==="auto"?u2e(e,n):r,s=ute(e,l));var c={labels:s,labelCategoryInterval:l};return o?n.out.noPxChangeTryDetermine.push(function(){return M5(i,r,c),!0}):M5(i,r,c),c}function a2e(e,t){var n=l2e(e),i=fP(t),r=lte(n,i);if(r)return r;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),_t(i))o=dte(e,i,!0);else if(i==="auto"){var s=ate(e,e.getLabelModel(),E2(Da.determine));a=s.labelCategoryInterval,o=Ye(s.labels,function(l){return l.tickValue})}else a=i,o=ute(e,a,!0);return M5(n,i,{ticks:o,tickCategoryInterval:a})}function s2e(e){var t=e.scale.getTicks(),n=Dx(e);return{labels:Ye(t,function(i,r){return{formattedLabel:n(i,r),rawLabel:e.scale.getLabel(i),tickValue:i.value,time:i.time,break:i.break}})}}var l2e=ste("axisTick"),c2e=ste("axisLabel");function ste(e){return function(t){return Qb(t)[e]||(Qb(t)[e]={list:[]})}}function lte(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function M5(e,t,n){return e.list.push({key:t,value:n}),n}function u2e(e,t){if(t.kind===Da.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Qb(e).autoInterval=n,!0}),n}var i=Qb(e).autoInterval;return i??(Qb(e).autoInterval=e.calculateCategoryInterval(t))}function d2e(e,t){var n=t.kind,i=f2e(e),r=Dx(e),o=(i.axisRotate-i.labelRotate)/180*Math.PI,a=e.scale,s=a.getExtent(),l=a.count();if(s[1]-s[0]<1)return 0;var c=1,u=40;l>u&&(c=Math.max(1,Math.floor(l/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),h=Math.abs(f*Math.cos(o)),p=Math.abs(f*Math.sin(o)),g=0,v=0;d<=s[1];d+=c){var m=0,y=0,b=lJ(r({value:d}),i.font,"center","top");m=b.width*1.3,y=b.height*1.3,g=Math.max(g,m,7),v=Math.max(v,y,7)}var x=g/h,_=v/p;isNaN(x)&&(x=1/0),isNaN(_)&&(_=1/0);var S=Math.max(0,Math.floor(Math.min(x,_)));if(n===Da.estimate)return t.out.noPxChangeTryDetermine.push(Qt(h2e,null,e,S,l)),S;var $=cte(e,S,l);return $??S}function h2e(e,t,n){return cte(e,t,n)==null}function cte(e,t,n){var i=n2e(e.model),r=e.getExtent(),o=i.lastAutoInterval,a=i.lastTickCount;if(o!=null&&a!=null&&Math.abs(o-t)<=1&&Math.abs(a-n)<=1&&o>t&&i.axisExtent0===r[0]&&i.axisExtent1===r[1])return o;i.lastTickCount=n,i.lastAutoInterval=t,i.axisExtent0=r[0],i.axisExtent1=r[1]}function f2e(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function ute(e,t,n){var i=Dx(e),r=e.scale,o=r.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=o[0],u=r.count();c!==0&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var d=nte(e),f=a.get("showMinLabel")||d,h=a.get("showMaxLabel")||d;f&&c!==o[0]&&g(o[0]);for(var p=c;p<=o[1];p+=l)g(p);h&&p-l!==o[1]&&g(o[1]);function g(v){var m={value:v};s.push(n?v:{formattedLabel:i(m),rawLabel:r.getLabel(m),tickValue:v,time:void 0,break:void 0})}return s}function dte(e,t,n){var i=e.scale,r=Dx(e),o=[];return Z(i.getTicks(),function(a){var s=i.getLabel(a),l=a.value;t(a.value,s)&&o.push(n?l:{formattedLabel:r(a),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),o}var PW=[0,1],hte=(function(){function e(t,n,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=i||[0,0]}return e.prototype.contain=function(t){var n=this._extent,i=Math.min(n[0],n[1]),r=Math.max(n[0],n[1]);return t>=i&&t<=r},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return txe(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var i=this._extent;i[0]=t,i[1]=n},e.prototype.dataToCoord=function(t,n){var i=this._extent,r=this.scale;return t=r.normalize(r.parse(t)),this.onBand&&r.type==="ordinal"&&(i=i.slice(),jW(i,r.count())),PN(t,PW,i,n)},e.prototype.coordToData=function(t,n){var i=this._extent,r=this.scale;this.onBand&&r.type==="ordinal"&&(i=i.slice(),jW(i,r.count()));var o=PN(t,i,PW,n);return this.scale.scale(o)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),i=r2e(this,n,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),r=i.ticks,o=Ye(r,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=n.get("alignWithLabel");return p2e(this,o,a,t.clamp),o},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var i=this.scale.getMinorTicks(n),r=Ye(i,function(o){return Ye(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return r},e.prototype.getViewLabels=function(t){return t=t||E2(Da.determine),i2e(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,n=this.scale.getExtent(),i=n[1]-n[0]+(this.onBand?1:0);i===0&&(i=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/i},e.prototype.calculateCategoryInterval=function(t){return t=t||E2(Da.determine),d2e(this,t)},e})();function jW(e,t){var n=e[1]-e[0],i=t,r=n/i/2;e[0]+=r,e[1]-=r}function p2e(e,t,n,i){var r=t.length;if(!e.onBand||n||!r)return;var o=e.getExtent(),a,s;if(r===1)t[0].coord=o[0],t[0].onBand=!0,a=t[1]={coord:o[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[r-1].tickValue-t[0].tickValue,c=(t[r-1].coord-t[0].coord)/l;Z(t,function(h){h.coord-=c/2,h.onBand=!0});var u=e.scale.getExtent();s=1+u[1]-t[r-1].tickValue,a={coord:t[r-1].coord+c*s,tickValue:u[1]+1,onBand:!0},t.push(a)}var d=o[0]>o[1];f(t[0].coord,o[0])&&(i?t[0].coord=o[0]:t.shift()),i&&f(o[0],t[0].coord)&&t.unshift({coord:o[0],onBand:!0}),f(o[1],a.coord)&&(i?a.coord=o[1]:t.pop()),i&&f(a.coord,o[1])&&t.push({coord:o[1],onBand:!0});function f(h,p){return h=or(h),p=or(p),d?h>p:h<p}}var kb=Math.PI*2,ch=$u.CMD,m2e=["top","right","bottom","left"];function g2e(e,t,n,i,r){var o=n.width,a=n.height;switch(e){case"top":i.set(n.x+o/2,n.y-t),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+t),r.set(0,1);break;case"left":i.set(n.x-t,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+t,n.y+a/2),r.set(1,0);break}}function v2e(e,t,n,i,r,o,a,s,l){a-=e,s-=t;var c=Math.sqrt(a*a+s*s);a/=c,s/=c;var u=a*n+e,d=s*n+t;if(Math.abs(i-r)%kb<1e-4)return l[0]=u,l[1]=d,c-n;if(o){var f=i;i=Il(r),r=Il(f)}else i=Il(i),r=Il(r);i>r&&(r+=kb);var h=Math.atan2(s,a);if(h<0&&(h+=kb),h>=i&&h<=r||h+kb>=i&&h+kb<=r)return l[0]=u,l[1]=d,c-n;var p=n*Math.cos(i)+e,g=n*Math.sin(i)+t,v=n*Math.cos(r)+e,m=n*Math.sin(r)+t,y=(p-a)*(p-a)+(g-s)*(g-s),b=(v-a)*(v-a)+(m-s)*(m-s);return y<b?(l[0]=p,l[1]=g,Math.sqrt(y)):(l[0]=v,l[1]=m,Math.sqrt(b))}function D2(e,t,n,i,r,o,a,s){var l=r-e,c=o-t,u=n-e,d=i-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var h=l*u+c*d,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var g=a[0]=e+p*u,v=a[1]=t+p*d;return Math.sqrt((g-r)*(g-r)+(v-o)*(v-o))}function fte(e,t,n,i,r,o,a){n<0&&(e=e+n,n=-n),i<0&&(t=t+i,i=-i);var s=e+n,l=t+i,c=a[0]=Math.min(Math.max(r,e),s),u=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((c-r)*(c-r)+(u-o)*(u-o))}var Ra=[];function y2e(e,t,n){var i=fte(t.x,t.y,t.width,t.height,e.x,e.y,Ra);return n.set(Ra[0],Ra[1]),i}function b2e(e,t,n){for(var i=0,r=0,o=0,a=0,s,l,c=1/0,u=t.data,d=e.x,f=e.y,h=0;h<u.length;){var p=u[h++];h===1&&(i=u[h],r=u[h+1],o=i,a=r);var g=c;switch(p){case ch.M:o=u[h++],a=u[h++],i=o,r=a;break;case ch.L:g=D2(i,r,u[h],u[h+1],d,f,Ra,!0),i=u[h++],r=u[h++];break;case ch.C:g=JK(i,r,u[h++],u[h++],u[h++],u[h++],u[h],u[h+1],d,f,Ra),i=u[h++],r=u[h++];break;case ch.Q:g=eJ(i,r,u[h++],u[h++],u[h],u[h+1],d,f,Ra),i=u[h++],r=u[h++];break;case ch.A:var v=u[h++],m=u[h++],y=u[h++],b=u[h++],x=u[h++],_=u[h++];h+=1;var S=!!(1-u[h++]);s=Math.cos(x)*y+v,l=Math.sin(x)*b+m,h<=1&&(o=s,a=l);var $=(d-v)*b/y+v;g=v2e(v,m,b,x,x+_,S,$,f,Ra),i=Math.cos(x+_)*y+v,r=Math.sin(x+_)*b+m;break;case ch.R:o=i=u[h++],a=r=u[h++];var C=u[h++],w=u[h++];g=fte(o,a,C,w,d,f,Ra);break;case ch.Z:g=D2(i,r,o,a,d,f,Ra,!0),i=o,r=a;break}g<c&&(c=g,n.set(Ra[0],Ra[1]))}return c}var La=new At,$n=new At,oi=new At,$s=new At,vs=new At;function UW(e,t){if(e){var n=e.getTextGuideLine(),i=e.getTextContent();if(i&&n){var r=e.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||m2e,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,c=r.anchor,u=e.getComputedTransform(),d=u&&Km([],u),f=t.get("length2")||0;c&&oi.copy(c);for(var h=0;h<a.length;h++){var p=a[h];g2e(p,0,s,La,$s),At.scaleAndAdd($n,La,$s,f),$n.transform(d);var g=e.getBoundingRect(),v=c?c.distance($n):e instanceof nn?b2e($n,e.path,oi):y2e($n,g,oi);v<l&&(l=v,$n.transform(u),oi.transform(u),oi.toArray(o[0]),$n.toArray(o[1]),La.toArray(o[2]))}pte(o,t.get("minTurnAngle")),n.setShape({points:o})}}}var O2=[],Rr=new At;function pte(e,t){if(t<=180&&t>0){t=t/180*Math.PI,La.fromArray(e[0]),$n.fromArray(e[1]),oi.fromArray(e[2]),At.sub($s,La,$n),At.sub(vs,oi,$n);var n=$s.len(),i=vs.len();if(!(n<.001||i<.001)){$s.scale(1/n),vs.scale(1/i);var r=$s.dot(vs),o=Math.cos(t);if(o<r){var a=D2($n.x,$n.y,oi.x,oi.y,La.x,La.y,O2,!1);Rr.fromArray(O2),Rr.scaleAndAdd(vs,a/Math.tan(Math.PI-t));var s=oi.x!==$n.x?(Rr.x-$n.x)/(oi.x-$n.x):(Rr.y-$n.y)/(oi.y-$n.y);if(isNaN(s))return;s<0?At.copy(Rr,$n):s>1&&At.copy(Rr,oi),Rr.toArray(e[1])}}}}function x2e(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,La.fromArray(e[0]),$n.fromArray(e[1]),oi.fromArray(e[2]),At.sub($s,$n,La),At.sub(vs,oi,$n);var i=$s.len(),r=vs.len();if(!(i<.001||r<.001)){$s.scale(1/i),vs.scale(1/r);var o=$s.dot(t),a=Math.cos(n);if(o<a){var s=D2($n.x,$n.y,oi.x,oi.y,La.x,La.y,O2,!1);Rr.fromArray(O2);var l=Math.PI/2,c=Math.acos(vs.dot(t)),u=l+c-n;if(u>=l)At.copy(Rr,oi);else{Rr.scaleAndAdd(vs,s/Math.tan(Math.PI/2-u));var d=oi.x!==$n.x?(Rr.x-$n.x)/(oi.x-$n.x):(Rr.y-$n.y)/(oi.y-$n.y);if(isNaN(d))return;d<0?At.copy(Rr,$n):d>1&&At.copy(Rr,oi)}Rr.toArray(e[1])}}}}function LO(e,t,n,i){var r=n==="normal",o=r?e:e.ensureState(n);o.ignore=t;var a=i.get("smooth");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?e.useStyle(s):o.style=s}function _2e(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=yN(i[0],i[1]),o=yN(i[1],i[2]);if(!r||!o){e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]);return}var a=Math.min(r,o)*n,s=kD([],i[1],i[0],a/r),l=kD([],i[1],i[2],a/o),c=kD([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var u=1;u<i.length;u++)e.lineTo(i[u][0],i[u][1])}function mte(e,t,n){var i=e.getTextGuideLine(),r=e.getTextContent();if(!r){i&&e.removeTextGuideLine();return}for(var o=t.normal,a=o.get("show"),s=r.ignore,l=0;l<p2.length;l++){var c=p2[l],u=t[c],d=c==="normal";if(u){var f=u.get("show"),h=d?s:pt(r.states[c]&&r.states[c].ignore,s);if(h||!pt(f,a)){var p=d?i:i&&i.states[c];p&&(p.ignore=!0),i&&LO(i,!0,c,u);continue}i||(i=new Ih,e.setTextGuideLine(i),!d&&(s||!a)&&LO(i,!0,"normal",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),LO(i,!1,c,u)}}if(i){Pt(i.style,n),i.style.fill=null;var g=o.get("showAbove"),v=e.textGuideLineConfig=e.textGuideLineConfig||{};v.showAbove=g||!1,i.buildPath=_2e}}function gte(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},i=0;i<ca.length;i++){var r=ca[i];n[r]=e.getModel([r,t])}return n}var BW=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],S2e=1,N2=2,vte=S2e|N2;function P2(e,t,n){n=n||vte,t?e.dirty|=n:e.dirty&=~n}function yte(e,t){return t=t||vte,e.dirty==null||!!(e.dirty&t)}function zu(e){if(e)return yte(e)&&bte(e,e.label,e),e}function bte(e,t,n){var i=t.getComputedTransform();e.transform=j4(e.transform,i);var r=e.localRect=dx(e.localRect,t.getBoundingRect()),o=t.style,a=o.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,c=n&&n.marginDefault,u=o.__marginType;u==null&&c&&(a=c,u=Cm.textMargin);for(var d=0;d<4;d++)EO[d]=u===Cm.minMargin&&l&&l[d]!=null?l[d]:s&&s[d]!=null?s[d]:a?a[d]:0;u===Cm.textMargin&&_2(r,EO,!1,!1);var f=e.rect=dx(e.rect,r);return i&&f.applyTransform(i),u===Cm.minMargin&&_2(f,EO,!1,!1),e.axisAligned=P4(i),(e.label=e.label||{}).ignore=t.ignore,P2(e,!1),P2(e,!0,N2),e}var EO=[0,0,0,0];function $2e(e,t,n){return e.transform=j4(e.transform,n),e.localRect=dx(e.localRect,t),e.rect=dx(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=P4(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function w2e(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var i=e.rect;i&&(i.x+=t.x,i.y+=t.y);var r=e.obb;r&&r.fromBoundingRect(e.localRect,n)}}function C5(e,t){for(var n=0;n<BW.length;n++){var i=BW[n];e[i]==null&&(e[i]=t[i])}return zu(e)}function FW(e){var t=e.obb;return(!t||yte(e,N2))&&(e.obb=t=t||new JJ,t.fromBoundingRect(e.localRect,e.transform),P2(e,!1,N2)),t}function z5(e,t,n,i,r){var o=e.length,a=hu[t],s=jm[t];if(o<2)return!1;e.sort(function($,C){return $.rect[a]-C.rect[a]});for(var l=0,c,u=!1,d=0;d<o;d++){var f=e[d],h=f.rect;c=h[a]-l,c<0&&(h[a]-=c,f.label[a]-=c,u=!0),l=h[a]+h[s]}var p=e[0],g=e[o-1],v,m;y(),v<0&&_(-v,.8),m<0&&_(m,.8),y(),b(v,m,1),b(m,v,-1),y(),v<0&&S(-v),m<0&&S(m);function y(){v=p.rect[a]-n,m=i-g.rect[a]-g.rect[s]}function b($,C,w){if($<0){var z=Math.min(C,-$);if(z>0){x(z*w,0,o);var A=z+$;A<0&&_(-A*w,1)}else _(-$*w,1)}}function x($,C,w){$!==0&&(u=!0);for(var z=C;z<w;z++){var A=e[z],M=A.rect;M[a]+=$,A.label[a]+=$}}function _($,C){for(var w=[],z=0,A=1;A<o;A++){var M=e[A-1].rect,T=Math.max(e[A].rect[a]-M[a]-M[s],0);w.push(T),z+=T}if(z){var k=Math.min(Math.abs($)/z,C);if($>0)for(var A=0;A<o-1;A++){var I=w[A]*k;x(I,0,A+1)}else for(var A=o-1;A>0;A--){var I=w[A-1]*k;x(-I,A,o)}}}function S($){var C=$<0?-1:1;$=Math.abs($);for(var w=Math.ceil($/(o-1)),z=0;z<o-1;z++)if(C>0?x(w,0,z+1):x(-w,o-z-1,o),$-=w,$<=0)return}return u}function k2e(e){for(var t=0;t<e.length;t++){var n=e[t],i=n.defaultAttr,r=n.labelLine;n.label.attr("ignore",i.ignore),r&&r.attr("ignore",i.labelGuideIgnore)}}function xte(e){var t=[];e.sort(function(c,u){return(u.suggestIgnore?1:0)-(c.suggestIgnore?1:0)||u.priority-c.priority});function n(c){if(!c.ignore){var u=c.ensureState("emphasis");u.ignore==null&&(u.ignore=!1)}c.ignore=!0}for(var i=0;i<e.length;i++){var r=zu(e[i]);if(!r.label.ignore){for(var o=r.label,a=r.labelLine,s=!1,l=0;l<t.length;l++)if(pP(r,t[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):t.push(r)}}}function pP(e,t,n,i){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,i)?!1:e.axisAligned&&t.axisAligned?!0:FW(e).intersect(FW(t),n,i)}function M2e(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function C2e(e,t){var n=e.label,i=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:M2e(i&&i.shape.points)}}var qW=["align","verticalAlign","width","height","fontSize"],Tr=new Q2,DO=fn(),z2e=fn();function pk(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];t[r]!=null&&(e[r]=t[r])}}var mk=["x","y","rotation"],T2e=(function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,n,i,r,o){var a=r.style,s=r.__hostTarget,l=s.textConfig||{},c=r.getComputedTransform(),u=r.getBoundingRect().plain();It.applyTransform(u,u,c),c?Tr.setLocalTransform(c):(Tr.x=Tr.y=Tr.rotation=Tr.originX=Tr.originY=0,Tr.scaleX=Tr.scaleY=1),Tr.rotation=Il(Tr.rotation);var d=r.__hostTarget,f;if(d){f=d.getBoundingRect().plain();var h=d.getComputedTransform();It.applyTransform(f,f,h)}var p=f&&d.getTextGuideLine();this._labelList.push({label:r,labelLine:p,seriesModel:i,dataIndex:t,dataType:n,layoutOptionOrCb:o,layoutOption:null,rect:u,hostRect:f,priority:f?f.width*f.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:p&&p.ignore,x:Tr.x,y:Tr.y,scaleX:Tr.scaleX,scaleY:Tr.scaleY,rotation:Tr.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var n=this;this._chartViewList.push(t);var i=t.__model,r=i.get("labelLayout");(_t(r)||hn(r).length)&&t.group.traverse(function(o){if(o.ignore)return!0;var a=o.getTextContent(),s=Ut(o);a&&!a.disableLabelLayout&&n._addLabel(s.dataIndex,s.dataType,i,a,r)})},e.prototype.updateLayoutConfig=function(t){var n=t.getWidth(),i=t.getHeight();function r(b,x){return function(){UW(b,x)}}for(var o=0;o<this._labelList.length;o++){var a=this._labelList[o],s=a.label,l=s.__hostTarget,c=a.defaultAttr,u=void 0;_t(a.layoutOptionOrCb)?u=a.layoutOptionOrCb(C2e(a,l)):u=a.layoutOptionOrCb,u=u||{},a.layoutOption=u;var d=Math.PI/180;l&&l.setTextConfig({local:!1,position:u.x!=null||u.y!=null?null:c.attachedPos,rotation:u.rotate!=null?u.rotate*d:c.attachedRot,offset:[u.dx||0,u.dy||0]});var f=!1;if(u.x!=null?(s.x=tn(u.x,n),s.setStyle("x",0),f=!0):(s.x=c.x,s.setStyle("x",c.style.x)),u.y!=null?(s.y=tn(u.y,i),s.setStyle("y",0),f=!0):(s.y=c.y,s.setStyle("y",c.style.y)),u.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:u.labelLinePoints}),f=!1)}var p=DO(s);p.needsUpdateLabelLine=f,s.rotation=u.rotate!=null?u.rotate*d:c.rotation,s.scaleX=c.scaleX,s.scaleY=c.scaleY;for(var g=0;g<qW.length;g++){var v=qW[g];s.setStyle(v,u[v]!=null?u[v]:c.style[v])}if(u.draggable){if(s.draggable=!0,s.cursor="move",l){var m=a.seriesModel;if(a.dataIndex!=null){var y=a.seriesModel.getData(a.dataType);m=y.getItemModel(a.dataIndex)}s.on("drag",r(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=c.cursor}},e.prototype.layout=function(t){var n=t.getWidth(),i=t.getHeight(),r=[];Z(this._labelList,function(l){l.defaultAttr.ignore||r.push(C5({},l))});var o=Kn(r,function(l){return l.layoutOption.moveOverlap==="shiftX"}),a=Kn(r,function(l){return l.layoutOption.moveOverlap==="shiftY"});z5(o,0,0,n),z5(a,1,0,i);var s=Kn(r,function(l){return l.layoutOption.hideOverlap});k2e(s),xte(s)},e.prototype.processLabelsOverall=function(){var t=this;Z(this._chartViewList,function(n){var i=n.__model,r=n.ignoreLabelLineUpdate,o=i.isAnimationEnabled();n.group.traverse(function(a){if(a.ignore&&!a.forceLabelAnimation)return!0;var s=!r,l=a.getTextContent();!s&&l&&(s=DO(l).needsUpdateLabelLine),s&&t._updateLabelLine(a,i),o&&t._animateLabels(a,i)})})},e.prototype._updateLabelLine=function(t,n){var i=t.getTextContent(),r=Ut(t),o=r.dataIndex;if(i&&o!=null){var a=n.getData(r.dataType),s=a.getItemModel(o),l={},c=a.getItemVisual(o,"style");if(c){var u=a.getVisual("drawType");l.stroke=c[u]}var d=s.getModel("labelLine");mte(t,gte(s),l),UW(t,d)}},e.prototype._animateLabels=function(t,n){var i=t.getTextContent(),r=t.getTextGuideLine();if(i&&(t.forceLabelAnimation||!i.ignore&&!i.invisible&&!t.disableLabelAnimation&&!Lm(t))){var o=DO(i),a=o.oldLayout,s=Ut(t),l=s.dataIndex,c={x:i.x,y:i.y,rotation:i.rotation},u=n.getData(s.dataType);if(a){i.attr(a);var d=t.prevStates;d&&(Zt(d,"select")>=0&&i.attr(o.oldLayoutSelect),Zt(d,"emphasis")>=0&&i.attr(o.oldLayoutEmphasis)),ci(i,c,n,l)}else if(i.attr(c),!ng(i).valueAnimation){var f=pt(i.style.opacity,1);i.style.opacity=0,ji(i,{style:{opacity:f}},n,l)}if(o.oldLayout=c,i.states.select){var h=o.oldLayoutSelect={};pk(h,c,mk),pk(h,i.states.select,mk)}if(i.states.emphasis){var p=o.oldLayoutEmphasis={};pk(p,c,mk),pk(p,i.states.emphasis,mk)}I1e(i,l,u,n,n)}if(r&&!r.ignore&&!r.invisible){var o=z2e(r),a=o.oldLayout,g={points:r.shape.points};a?(r.attr({shape:a}),ci(r,{shape:g},n)):(r.setShape(g),r.style.strokePercent=0,ji(r,{style:{strokePercent:1}},n)),o.oldLayout=g}},e})(),OO=fn();function A2e(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,i){var r=OO(n).labelManager;r||(r=OO(n).labelManager=new T2e),r.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,n,i){var r=OO(n).labelManager;i.updatedSeries.forEach(function(o){r.addLabelsOfSeries(n.getViewOfSeriesModel(o))}),r.updateLayoutConfig(n),r.layout(n),r.processLabelsOverall()})}var I2e=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n){return Ex(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var i=new Jn,r=Mu("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);i.add(r),r.setStyle(n.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=n.itemHeight*.8,c=Mu(s,(n.itemWidth-l)/2,(n.itemHeight-l)/2,l,l,n.itemStyle.fill);i.add(c),c.setStyle(n.itemStyle);var u=n.iconRotate==="inherit"?a:n.iconRotate||0;return c.rotation=u*Math.PI/180,c.setOrigin([n.itemWidth/2,n.itemHeight/2]),s.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill=nt.color.neutral00,c.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(Er);function yx(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(i===1){var r=Um(e,t,n[0]);return r!=null?r+"":null}else if(i){for(var o=[],a=0;a<n.length;a++)o.push(Um(e,t,n[a]));return o.join(" ")}}function _te(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Ne(t))return t+"";for(var i=[],r=0;r<n.length;r++){var o=e.getDimensionIndex(n[r]);o>=0&&i.push(t[o])}return i.join(" ")}var mP=(function(e){ze(t,e);function t(n,i,r,o){var a=e.call(this)||this;return a.updateData(n,i,r,o),a}return t.prototype._createSymbol=function(n,i,r,o,a,s){this.removeAll();var l=Mu(n,-1,-1,2,2,null,s);l.attr({z2:pt(a,100),culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),l.drift=R2e,this._symbolType=n,this.add(l)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){v2(this.childAt(0))},t.prototype.downplay=function(){y2(this.childAt(0))},t.prototype.setZ=function(n,i){var r=this.childAt(0);r.zlevel=n,r.z=i},t.prototype.setDraggable=function(n,i){var r=this.childAt(0);r.draggable=n,r.cursor=!i&&n?"move":r.cursor},t.prototype.updateData=function(n,i,r,o){this.silent=!1;var a=n.getItemVisual(i,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,i),c=t.getSymbolZ2(n,i),u=a!==this._symbolType,d=o&&o.disableAnimation;if(u){var f=n.getItemVisual(i,"symbolKeepAspect");this._createSymbol(a,n,i,l,c,f)}else{var h=this.childAt(0);h.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};d?h.attr(p):ci(h,p,s,i),Pm(h)}if(this._updateCommon(n,i,l,r,o),u){var h=this.childAt(0);if(!d){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,ji(h,p,s,i)}}d&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,i,r,o,a){var s=this.childAt(0),l=n.hostModel,c,u,d,f,h,p,g,v,m;if(o&&(c=o.emphasisItemStyle,u=o.blurItemStyle,d=o.selectItemStyle,f=o.focus,h=o.blurScope,g=o.labelStatesModels,v=o.hoverScale,m=o.cursorStyle,p=o.emphasisDisabled),!o||n.hasItemOption){var y=o&&o.itemModel?o.itemModel:n.getItemModel(i),b=y.getModel("emphasis");c=b.getModel("itemStyle").getItemStyle(),d=y.getModel(["select","itemStyle"]).getItemStyle(),u=y.getModel(["blur","itemStyle"]).getItemStyle(),f=b.get("focus"),h=b.get("blurScope"),p=b.get("disabled"),g=tg(y),v=b.getShallow("scale"),m=y.getShallow("cursor")}var x=n.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var _=hee(n.getItemVisual(i,"symbolOffset"),r);_&&(s.x=_[0],s.y=_[1]),m&&s.attr("cursor",m);var S=n.getItemVisual(i,"style"),$=S.fill;if(s instanceof Na){var C=s.style;s.useStyle(ke({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},S))}else s.__isEmptyBrush?s.useStyle(ke({},S)):s.useStyle(S),s.style.decal=null,s.setColor($,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var w=n.getItemVisual(i,"liftZ"),z=this._z2;w!=null?z==null&&(this._z2=s.z2,s.z2+=w):z!=null&&(s.z2=z,this._z2=null);var A=a&&a.useNameLabel;eg(s,g,{labelFetcher:l,labelDataIndex:i,defaultText:M,inheritColor:$,defaultOpacity:S.opacity});function M(I){return A?n.getName(I):yx(n,I)}this._sizeX=r[0]/2,this._sizeY=r[1]/2;var T=s.ensureState("emphasis");T.style=c,s.ensureState("select").style=d,s.ensureState("blur").style=u;var k=v==null||v===!0?Math.max(1.1,3/this._sizeY):isFinite(v)&&v>0?+v:1;T.scaleX=this._sizeX*k,T.scaleY=this._sizeY*k,this.setSymbolScale(1),wu(this,f,h,p)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,i,r){var o=this.childAt(0),a=Ut(this).dataIndex,s=r&&r.animation;if(this.silent=o.silent=!0,r&&r.fadeLabel){var l=o.getTextContent();l&&b2(l,{style:{opacity:0}},i,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();b2(o,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:a,cb:n,removeOpt:s})},t.getSymbolSize=function(n,i){return dee(n.getItemVisual(i,"symbolSize"))},t.getSymbolZ2=function(n,i){return n.getItemVisual(i,"z2")},t})(Jn);function R2e(e,t){this.parent.drift(e,t)}function NO(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function VW(e){return e!=null&&!gt(e)&&(e={isIgnore:e}),e||{}}function HW(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:tg(t),cursorStyle:t.get("cursor")}}var Ste=(function(){function e(t){this.group=new Jn,this._SymbolCtor=t||mP}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=VW(n);var i=this.group,r=t.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=HW(t),c={disableAnimation:s},u=n.getSymbolPoint||function(d){return t.getItemLayout(d)};o||i.removeAll(),t.diff(o).add(function(d){var f=u(d);if(NO(t,f,d,n)){var h=new a(t,d,l,c);h.setPosition(f),t.setItemGraphicEl(d,h),i.add(h)}}).update(function(d,f){var h=o.getItemGraphicEl(f),p=u(d);if(!NO(t,p,d,n)){i.remove(h);return}var g=t.getItemVisual(d,"symbol")||"circle",v=h&&h.getSymbolType&&h.getSymbolType();if(!h||v&&v!==g)i.remove(h),h=new a(t,d,l,c),h.setPosition(p);else{h.updateData(t,d,l,c);var m={x:p[0],y:p[1]};s?h.attr(m):ci(h,m,r)}i.add(h),t.setItemGraphicEl(d,h)}).remove(function(d){var f=o.getItemGraphicEl(d);f&&f.fadeOut(function(){i.remove(f)},r)}).execute(),this._getSymbolPoint=u,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(i,r){var o=t._getSymbolPoint(r);i.setPosition(o),i.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=HW(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,i){this._progressiveEls=[],i=VW(i);function r(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o<t.end;o++){var a=n.getItemLayout(o);if(NO(n,a,o,i)){var s=new this._SymbolCtor(n,o,this._seriesScope);s.traverse(r),s.setPosition(a),this.group.add(s),n.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){Qm(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var n=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(r){r.fadeOut(function(){n.remove(r)},i.hostModel)}):n.removeAll()},e})();function $te(e,t,n){var i=e.getBaseAxis(),r=e.getOtherAxis(i),o=L2e(r,n),a=i.dim,s=r.dim,l=t.mapDimension(s),c=t.mapDimension(a),u=s==="x"||s==="radius"?1:0,d=Ye(e.dimensions,function(p){return t.mapDimension(p)}),f=!1,h=t.getCalculationInfo("stackResultDimension");return Bm(t,d[0])&&(f=!0,d[0]=h),Bm(t,d[1])&&(f=!0,d[1]=h),{dataDimsForPoint:d,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!f,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function L2e(e,t){var n=0,i=e.scale.getExtent();return t==="start"?n=i[0]:t==="end"?n=i[1]:bn(t)&&!isNaN(t)?n=t:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function wte(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,i),a[1-o]=r,t.dataToPoint(a)}function E2e(e,t){var n=[];return t.diff(e).add(function(i){n.push({cmd:"+",idx:i})}).update(function(i,r){n.push({cmd:"=",idx:r,idx1:i})}).remove(function(i){n.push({cmd:"-",idx:i})}).execute(),n}function D2e(e,t,n,i,r,o,a,s){for(var l=E2e(e,t),c=[],u=[],d=[],f=[],h=[],p=[],g=[],v=$te(r,t,a),m=e.getLayout("points")||[],y=t.getLayout("points")||[],b=0;b<l.length;b++){var x=l[b],_=!0,S=void 0,$=void 0;switch(x.cmd){case"=":S=x.idx*2,$=x.idx1*2;var C=m[S],w=m[S+1],z=y[$],A=y[$+1];(isNaN(C)||isNaN(w))&&(C=z,w=A),c.push(C,w),u.push(z,A),d.push(n[S],n[S+1]),f.push(i[$],i[$+1]),g.push(t.getRawIndex(x.idx1));break;case"+":var M=x.idx,T=v.dataDimsForPoint,k=r.dataToPoint([t.get(T[0],M),t.get(T[1],M)]);$=M*2,c.push(k[0],k[1]),u.push(y[$],y[$+1]);var I=wte(v,r,t,M);d.push(I[0],I[1]),f.push(i[$],i[$+1]),g.push(t.getRawIndex(M));break;case"-":_=!1}_&&(h.push(x),p.push(p.length))}p.sort(function(H,Q){return g[H]-g[Q]});for(var D=c.length,E=Ss(D),N=Ss(D),F=Ss(D),G=Ss(D),P=[],b=0;b<p.length;b++){var O=p[b],V=b*2,j=O*2;E[V]=c[j],E[V+1]=c[j+1],N[V]=u[j],N[V+1]=u[j+1],F[V]=d[j],F[V+1]=d[j+1],G[V]=f[j],G[V+1]=f[j+1],P[b]=h[O]}return{current:E,next:N,stackedOnCurrent:F,stackedOnNext:G,status:P}}var au=Math.min,su=Math.max;function $h(e,t){return isNaN(e)||isNaN(t)}function T5(e,t,n,i,r,o,a,s,l){for(var c,u,d,f,h,p,g=n,v=0;v<i;v++){var m=t[g*2],y=t[g*2+1];if(g>=r||g<0)break;if($h(m,y)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](m,y),d=m,f=y;else{var b=m-c,x=y-u;if(b*b+x*x<.5){g+=o;continue}if(a>0){for(var _=g+o,S=t[_*2],$=t[_*2+1];S===m&&$===y&&v<i;)v++,_+=o,g+=o,S=t[_*2],$=t[_*2+1],m=t[g*2],y=t[g*2+1],b=m-c,x=y-u;var C=v+1;if(l)for(;$h(S,$)&&C<i;)C++,_+=o,S=t[_*2],$=t[_*2+1];var w=.5,z=0,A=0,M=void 0,T=void 0;if(C>=i||$h(S,$))h=m,p=y;else{z=S-c,A=$-u;var k=m-c,I=S-m,D=y-u,E=$-y,N=void 0,F=void 0;if(s==="x"){N=Math.abs(k),F=Math.abs(I);var G=z>0?1:-1;h=m-G*N*a,p=y,M=m+G*F*a,T=y}else if(s==="y"){N=Math.abs(D),F=Math.abs(E);var P=A>0?1:-1;h=m,p=y-P*N*a,M=m,T=y+P*F*a}else N=Math.sqrt(k*k+D*D),F=Math.sqrt(I*I+E*E),w=F/(F+N),h=m-z*a*(1-w),p=y-A*a*(1-w),M=m+z*a*w,T=y+A*a*w,M=au(M,su(S,m)),T=au(T,su($,y)),M=su(M,au(S,m)),T=su(T,au($,y)),z=M-m,A=T-y,h=m-z*N/F,p=y-A*N/F,h=au(h,su(c,m)),p=au(p,su(u,y)),h=su(h,au(c,m)),p=su(p,au(u,y)),z=m-h,A=y-p,M=m+z*F/N,T=y+A*F/N}e.bezierCurveTo(d,f,h,p,m,y),d=M,f=T}else e.lineTo(m,y)}c=m,u=y,g+=o}return v}var kte=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),O2e=(function(e){ze(t,e);function t(n){var i=e.call(this,n)||this;return i.type="ec-polyline",i}return t.prototype.getDefaultStyle=function(){return{stroke:nt.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new kte},t.prototype.buildPath=function(n,i){var r=i.points,o=0,a=r.length/2;if(i.connectNulls){for(;a>0&&$h(r[a*2-2],r[a*2-1]);a--);for(;o<a&&$h(r[o*2],r[o*2+1]);o++);}for(;o<a;)o+=T5(n,r,o,a,a,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},t.prototype.getPointOn=function(n,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var r=this.path,o=r.data,a=$u.CMD,s,l,c=i==="x",u=[],d=0;d<o.length;){var f=o[d++],h=void 0,p=void 0,g=void 0,v=void 0,m=void 0,y=void 0,b=void 0;switch(f){case a.M:s=o[d++],l=o[d++];break;case a.L:if(h=o[d++],p=o[d++],b=c?(n-s)/(h-s):(n-l)/(p-l),b<=1&&b>=0){var x=c?(p-l)*b+l:(h-s)*b+s;return c?[n,x]:[x,n]}s=h,l=p;break;case a.C:h=o[d++],p=o[d++],g=o[d++],v=o[d++],m=o[d++],y=o[d++];var _=c?o2(s,h,g,m,n,u):o2(l,p,v,y,n,u);if(_>0)for(var S=0;S<_;S++){var $=u[S];if($<=1&&$>=0){var x=c?Ci(l,p,v,y,$):Ci(s,h,g,m,$);return c?[n,x]:[x,n]}}s=m,l=y;break}}},t})(nn),N2e=(function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(kte),P2e=(function(e){ze(t,e);function t(n){var i=e.call(this,n)||this;return i.type="ec-polygon",i}return t.prototype.getDefaultShape=function(){return new N2e},t.prototype.buildPath=function(n,i){var r=i.points,o=i.stackedOnPoints,a=0,s=r.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&$h(r[s*2-2],r[s*2-1]);s--);for(;a<s&&$h(r[a*2],r[a*2+1]);a++);}for(;a<s;){var c=T5(n,r,a,s,s,1,i.smooth,l,i.connectNulls);T5(n,o,a+c-1,c,s,-1,i.stackedOnSmooth,l,i.connectNulls),a+=c+1,n.closePath()}},t})(nn);function Mte(e,t,n,i,r){var o=e.getArea(),a=o.x,s=o.y,l=o.width,c=o.height,u=n.get(["lineStyle","width"])||0;a-=u/2,s-=u/2,l+=u,c+=u,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var d=new si({shape:{x:a,y:s,width:l,height:c}});if(t){var f=e.getBaseAxis(),h=f.isHorizontal(),p=f.inverse;h?(p&&(d.shape.x+=l),d.shape.width=0):(p||(d.shape.y+=c),d.shape.height=0);var g=_t(r)?function(v){r(v,d)}:null;ji(d,{shape:{width:l,height:c,x:a,y:s}},n,null,i,g)}return d}function Cte(e,t,n){var i=e.getArea(),r=or(i.r0,1),o=or(i.r,1),a=new Iu({shape:{cx:or(e.cx,1),cy:or(e.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?a.shape.endAngle=i.startAngle:a.shape.r=r,ji(a,{shape:{endAngle:i.endAngle,r:o}},n)}return a}function gP(e,t,n,i,r){if(e){if(e.type==="polar")return Cte(e,t,n);if(e.type==="cartesian2d")return Mte(e,t,n,i,r)}else return null;return null}function vP(e,t){return e.type===t}function ZW(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function GW(e){for(var t=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[t,n],[i,r]]}function WW(e,t){var n=GW(e),i=n[0],r=n[1],o=GW(t),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function YW(e){return bn(e)?e:e?.5:0}function j2e(e,t,n){if(!n.valueDim)return[];for(var i=t.count(),r=Ss(i*2),o=0;o<i;o++){var a=wte(n,e,t,o);r[o*2]=a[0],r[o*2+1]=a[1]}return r}function lu(e,t,n,i,r){var o=n.getBaseAxis(),a=o.dim==="x"||o.dim==="radius"?0:1,s=[],l=0,c=[],u=[],d=[],f=[];if(r){for(l=0;l<e.length;l+=2){var h=t||e;!isNaN(h[l])&&!isNaN(h[l+1])&&f.push(e[l],e[l+1])}e=f}for(l=0;l<e.length-2;l+=2)switch(d[0]=e[l+2],d[1]=e[l+3],u[0]=e[l],u[1]=e[l+1],s.push(u[0],u[1]),i){case"end":c[a]=d[a],c[1-a]=u[1-a],s.push(c[0],c[1]);break;case"middle":var p=(u[a]+d[a])/2,g=[];c[a]=g[a]=p,c[1-a]=u[1-a],g[1-a]=d[1-a],s.push(c[0],c[1]),s.push(g[0],g[1]);break;default:c[a]=u[a],c[1-a]=d[1-a],s.push(c[0],c[1])}return s.push(e[l++],e[l++]),s}function U2e(e,t){var n=[],i=e.length,r,o;function a(u,d,f){var h=u.coord,p=(f-h)/(d.coord-h),g=wbe(p,[u.color,d.color]);return{coord:f,color:g}}for(var s=0;s<i;s++){var l=e[s],c=l.coord;if(c<0)r=l;else if(c>t){o?n.push(a(o,l,t)):r&&n.push(a(r,l,0),a(r,l,t));break}else r&&(n.push(a(r,l,0)),r=null),n.push(l),o=l}return n}function B2e(e,t,n){var i=e.getVisual("visualMeta");if(!(!i||!i.length||!e.count())&&t.type==="cartesian2d"){for(var r,o,a=i.length-1;a>=0;a--){var s=e.getDimensionInfo(i[a].dimension);if(r=s&&s.coordDim,r==="x"||r==="y"){o=i[a];break}}if(o){var l=t.getAxis(r),c=Ye(o.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),u=c.length,d=o.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),d.reverse());var f=U2e(c,r==="x"?n.getWidth():n.getHeight()),h=f.length;if(!h&&u)return c[0].coord<0?d[1]?d[1]:c[u-1].color:d[0]?d[0]:c[0].color;var p=10,g=f[0].coord-p,v=f[h-1].coord+p,m=v-g;if(m<.001)return"transparent";Z(f,function(b){b.offset=(b.coord-g)/m}),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var y=new uM(0,0,0,0,f,!0);return y[r]=g,y[r+"2"]=v,y}}}function F2e(e,t,n){var i=e.get("showAllSymbol"),r=i==="auto";if(!(i&&!r)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(r&&q2e(o,t))){var a=t.mapDimension(o.dim),s={};return Z(o.getViewLabels(),function(l){var c=o.scale.getRawOrdinalNumber(l.tickValue);s[c]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function q2e(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(mP.getSymbolSize(t,a)[e.isHorizontal()?1:0]*1.5>i)return!1;return!0}function V2e(e,t){return isNaN(e)||isNaN(t)}function H2e(e){for(var t=e.length/2;t>0&&V2e(e[t*2-2],e[t*2-1]);t--);return t-1}function XW(e,t){return[e[t*2],e[t*2+1]]}function Z2e(e,t,n){for(var i=e.length/2,r=n==="x"?0:1,o,a,s=0,l=-1,c=0;c<i;c++)if(a=e[c*2+r],!(isNaN(a)||isNaN(e[c*2+1-r]))){if(c===0){o=a;continue}if(o<=t&&a>=t||o>=t&&a<=t){l=c;break}s=c,o=a}return{range:[s,l],t:(t-o)/(a-o)}}function zte(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<ca.length;t++)if(e.get([ca[t],"endLabel","show"]))return!0;return!1}function PO(e,t,n,i){if(vP(t,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=zte(i)?function(h,p){e._endLabelOnDuring(h,p,a,s,o,r,t)}:null,c=t.getBaseAxis().isHorizontal(),u=Mte(t,n,i,function(){var h=e._endLabel;h&&n&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var d=u.shape,f=Math.max(d.width,d.height);c?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return l&&l(1,u),u}else return Cte(t,n,i)}function G2e(e,t){var n=t.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}var W2e=(function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=new Jn,i=new Ste;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=n,this._changePolyState=Qt(this._changePolyState,this)},t.prototype.render=function(n,i,r){var o=n.coordinateSystem,a=this.group,s=n.getData(),l=n.getModel("lineStyle"),c=n.getModel("areaStyle"),u=s.getLayout("points")||[],d=o.type==="polar",f=this._coordSys,h=this._symbolDraw,p=this._polyline,g=this._polygon,v=this._lineGroup,m=!i.ssr&&n.get("animation"),y=!c.isEmpty(),b=c.get("origin"),x=$te(o,s,b),_=y&&j2e(o,s,x),S=n.get("showSymbol"),$=n.get("connectNulls"),C=S&&!d&&F2e(n,s,o),w=this._data;w&&w.eachItemGraphicEl(function(H,Q){H.__temp&&(a.remove(H),w.setItemGraphicEl(Q,null))}),S||h.remove(),a.add(v);var z=d?!1:n.get("step"),A;o&&o.getArea&&n.get("clip",!0)&&(A=o.getArea(),A.width!=null?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var M=B2e(s,o,r)||s.getVisual("style")[s.getVisual("drawType")];if(!(p&&f.type===o.type&&z===this._step))S&&h.updateData(s,{isIgnore:C,clipShape:A,disableAnimation:!0,getSymbolPoint:function(H){return[u[H*2],u[H*2+1]]}}),m&&this._initSymbolLabelAnimation(s,o,A),z&&(_&&(_=lu(_,u,o,z,$)),u=lu(u,null,o,z,$)),p=this._newPolyline(u),y?g=this._newPolygon(u,_):g&&(v.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,zh(M)),v.setClipPath(PO(this,o,!0,n));else{y&&!g?g=this._newPolygon(u,_):g&&!y&&(v.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,zh(M));var T=v.getClipPath();if(T){var k=PO(this,o,!1,n);ji(T,{shape:k.shape},n)}else v.setClipPath(PO(this,o,!0,n));S&&h.updateData(s,{isIgnore:C,clipShape:A,disableAnimation:!0,getSymbolPoint:function(H){return[u[H*2],u[H*2+1]]}}),(!ZW(this._stackedOnPoints,_)||!ZW(this._points,u))&&(m?this._doUpdateAnimation(s,_,o,r,z,b,$):(z&&(_&&(_=lu(_,u,o,z,$)),u=lu(u,null,o,z,$)),p.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:_})))}var I=n.getModel("emphasis"),D=I.get("focus"),E=I.get("blurScope"),N=I.get("disabled");if(p.useStyle(Pt(l.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"})),Ch(p,n,"lineStyle"),p.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var F=p.getState("emphasis").style;F.lineWidth=+p.style.lineWidth+1}Ut(p).seriesIndex=n.seriesIndex,wu(p,D,E,N);var G=YW(n.get("smooth")),P=n.get("smoothMonotone");if(p.setShape({smooth:G,smoothMonotone:P,connectNulls:$}),g){var O=s.getCalculationInfo("stackedOnSeries"),V=0;g.useStyle(Pt(c.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),O&&(V=YW(O.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:V,smoothMonotone:P,connectNulls:$}),Ch(g,n,"areaStyle"),Ut(g).seriesIndex=n.seriesIndex,wu(g,D,E,N)}var j=this._changePolyState;s.eachItemGraphicEl(function(H){H&&(H.onHoverStateChange=j)}),this._polyline.onHoverStateChange=j,this._data=s,this._coordSys=o,this._stackedOnPoints=_,this._points=u,this._step=z,this._valueOrigin=b,n.get("triggerLineEvent")&&(this.packEventData(n,p),g&&this.packEventData(n,g))},t.prototype.packEventData=function(n,i){Ut(i).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,i,r,o){var a=n.getData(),s=Mh(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),c=a.getItemGraphicEl(s);if(!c){var u=l[s*2],d=l[s*2+1];if(isNaN(u)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,d))return;var f=n.get("zlevel")||0,h=n.get("z")||0;c=new mP(a,s),c.x=u,c.y=d,c.setZ(f,h);var p=c.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=h,p.z2=this._polyline.z2+1),c.__temp=!0,a.setItemGraphicEl(s,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else vr.prototype.highlight.call(this,n,i,r,o)},t.prototype.downplay=function(n,i,r,o){var a=n.getData(),s=Mh(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else vr.prototype.downplay.call(this,n,i,r,o)},t.prototype._changePolyState=function(n){var i=this._polygon;aG(this._polyline,n),i&&aG(i,n)},t.prototype._newPolyline=function(n){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new O2e({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(n,i){var r=this._polygon;return r&&this._lineGroup.remove(r),r=new P2e({shape:{points:n,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(r),this._polygon=r,r},t.prototype._initSymbolLabelAnimation=function(n,i,r){var o,a,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):i.type==="polar"&&(o=s.dim==="angle",a=!0);var c=n.hostModel,u=c.get("animationDuration");_t(u)&&(u=u(null));var d=c.get("animationDelay")||0,f=_t(d)?d(null):d;n.eachItemGraphicEl(function(h,p){var g=h;if(g){var v=[h.x,h.y],m=void 0,y=void 0,b=void 0;if(r)if(a){var x=r,_=i.pointToCoord(v);o?(m=x.startAngle,y=x.endAngle,b=-_[1]/180*Math.PI):(m=x.r0,y=x.r,b=_[0])}else{var S=r;o?(m=S.x,y=S.x+S.width,b=h.x):(m=S.y+S.height,y=S.y,b=h.y)}var $=y===m?0:(b-m)/(y-m);l&&($=1-$);var C=_t(d)?d(p):u*$+f,w=g.getSymbolPath(),z=w.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),z&&z.animateFrom({style:{opacity:0}},{duration:300,delay:C}),w.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,i,r){var o=n.getModel("endLabel");if(zte(n)){var a=n.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new pi({z2:200}),c.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var u=H2e(l);u>=0&&(eg(s,tg(n,"endLabel"),{inheritColor:r,labelFetcher:n,labelDataIndex:u,defaultText:function(d,f,h){return h!=null?_te(a,h):yx(a,d)},enableTextSetter:!0},G2e(o,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,i,r,o,a,s,l){var c=this._endLabel,u=this._polyline;if(c){n<1&&o.originalX==null&&(o.originalX=c.x,o.originalY=c.y);var d=r.getLayout("points"),f=r.hostModel,h=f.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,v=l.getBaseAxis(),m=v.isHorizontal(),y=v.inverse,b=i.shape,x=y?m?b.x:b.y+b.height:m?b.x+b.width:b.y,_=(m?g:0)*(y?-1:1),S=(m?0:-g)*(y?-1:1),$=m?"x":"y",C=Z2e(d,x,$),w=C.range,z=w[1]-w[0],A=void 0;if(z>=1){if(z>1&&!h){var M=XW(d,w[0]);c.attr({x:M[0]+_,y:M[1]+S}),a&&(A=f.getRawValue(w[0]))}else{var M=u.getPointOn(x,$);M&&c.attr({x:M[0]+_,y:M[1]+S});var T=f.getRawValue(w[0]),k=f.getRawValue(w[1]);a&&(A=_J(r,p,T,k,C.t))}o.lastFrameIndex=w[0]}else{var I=n===1||o.lastFrameIndex>0?w[0]:0,M=XW(d,I);a&&(A=f.getRawValue(I)),c.attr({x:M[0]+_,y:M[1]+S})}if(a){var D=ng(c);typeof D.setLabelText=="function"&&D.setLabelText(A)}}},t.prototype._doUpdateAnimation=function(n,i,r,o,a,s,l){var c=this._polyline,u=this._polygon,d=n.hostModel,f=D2e(this._data,n,this._stackedOnPoints,i,this._coordSys,r,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,g=f.next,v=f.stackedOnNext;if(a&&(p=lu(f.stackedOnCurrent,f.current,r,a,l),h=lu(f.current,null,r,a,l),v=lu(f.stackedOnNext,f.next,r,a,l),g=lu(f.next,null,r,a,l)),WW(h,g)>3e3||u&&WW(p,v)>3e3){c.stopAnimation(),c.setShape({points:g}),u&&(u.stopAnimation(),u.setShape({points:g,stackedOnPoints:v}));return}c.shape.__points=f.current,c.shape.points=h;var m={shape:{points:g}};f.current!==h&&(m.shape.__points=f.next),c.stopAnimation(),ci(c,m,d),u&&(u.setShape({points:h,stackedOnPoints:p}),u.stopAnimation(),ci(u,{shape:{stackedOnPoints:v}},d),c.shape.points!==u.shape.points&&(u.shape.points=c.shape.points));for(var y=[],b=f.status,x=0;x<b.length;x++){var _=b[x].cmd;if(_==="="){var S=n.getItemGraphicEl(b[x].idx1);S&&y.push({el:S,ptIdx:x})}}c.animators&&c.animators.length&&c.animators[0].during(function(){u&&u.dirtyShape();for(var $=c.shape.__points,C=0;C<y.length;C++){var w=y[C].el,z=y[C].ptIdx*2;w.x=$[z],w.y=$[z+1],w.markRedraw()}})},t.prototype.remove=function(n){var i=this.group,r=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),r&&r.eachItemGraphicEl(function(o,a){o.__temp&&(i.remove(o),r.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(vr);function yP(e,t){return{seriesType:e,plan:Lx(),reset:function(n){var i=n.getData(),r=n.coordinateSystem,o=n.pipelineContext,a=t||o.large;if(r){var s=Ye(r.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),l=s.length,c=i.getCalculationInfo("stackResultDimension");Bm(i,s[0])&&(s[0]=c),Bm(i,s[1])&&(s[1]=c);var u=i.getStore(),d=i.getDimensionIndex(s[0]),f=i.getDimensionIndex(s[1]);return l&&{progress:function(h,p){for(var g=h.end-h.start,v=a&&Ss(g*l),m=[],y=[],b=h.start,x=0;b<h.end;b++){var _=void 0;if(l===1){var S=u.get(d,b);_=r.dataToPoint(S,null,y)}else m[0]=u.get(d,b),m[1]=u.get(f,b),_=r.dataToPoint(m,null,y);a?(v[x++]=_[0],v[x++]=_[1]):p.setItemLayout(b,_.slice())}a&&p.setLayout("points",v)}}}}}}var Y2e={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},X2e=function(e){return Math.round(e.length/2)};function Tte(e){return{seriesType:e,reset:function(t,n,i){var r=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=r.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),c=a.getOtherAxis(l),u=l.getExtent(),d=i.getDevicePixelRatio(),f=Math.abs(u[1]-u[0])*(d||1),h=Math.round(s/f);if(isFinite(h)&&h>1){o==="lttb"?t.setData(r.lttbDownSample(r.mapDimension(c.dim),1/h)):o==="minmax"&&t.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/h));var p=void 0;rt(o)?p=Y2e[o]:_t(o)&&(p=o),p&&t.setData(r.downSample(r.mapDimension(c.dim),1/h,p,X2e))}}}}}function K2e(e){e.registerChartView(W2e),e.registerSeriesModel(I2e),e.registerLayout(yP("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",i)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Tte("line"))}var A5=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,i){return Ex(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,i,r){var o=this.coordinateSystem;if(o&&o.clampData){var a=o.clampData(n),s=o.dataToPoint(a);if(r)Z(o.getAxes(),function(f,h){if(f.type==="category"&&i!=null){var p=f.getTicksCoords(),g=f.getTickModel().get("alignWithLabel"),v=a[h],m=i[h]==="x1"||i[h]==="y1";if(m&&!g&&(v+=1),p.length<2)return;if(p.length===2){s[h]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var y=void 0,b=void 0,x=1,_=0;_<p.length;_++){var S=p[_].coord,$=_===p.length-1?p[_-1].tickValue+x:p[_].tickValue;if($===v){b=S;break}else if($<v)y=S;else if(y!=null&&$>v){b=(S+y)/2;break}_===1&&(x=$-p[0].tickValue)}b==null&&(y?y&&(b=p[p.length-1].coord):b=p[0].coord),s[h]=f.toGlobalCoord(b)}});else{var l=this.getData(),c=l.getLayout("offset"),u=l.getLayout("size"),d=o.getBaseAxis().isHorizontal()?0:1;s[d]+=c+u/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t})(Er);Er.registerClass(A5);var J2e=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return Ex(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>n&&(n=i),n},t.prototype.brushSelector=function(n,i,r){return r.rect(i.getItemLayout(n))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=hQ(A5.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:nt.color.primary,borderWidth:2}},realtimeSort:!1}),t})(A5),Q2e=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),KW=(function(e){ze(t,e);function t(n){var i=e.call(this,n)||this;return i.type="sausage",i}return t.prototype.getDefaultShape=function(){return new Q2e},t.prototype.buildPath=function(n,i){var r=i.cx,o=i.cy,a=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-a)*.5,c=a+l,u=i.startAngle,d=i.endAngle,f=i.clockwise,h=Math.PI*2,p=f?d-u<h:u-d<h;p||(u=d-(f?h:-h));var g=Math.cos(u),v=Math.sin(u),m=Math.cos(d),y=Math.sin(d);p?(n.moveTo(g*a+r,v*a+o),n.arc(g*c+r,v*c+o,l,-Math.PI+u,u,!f)):n.moveTo(g*s+r,v*s+o),n.arc(r,o,s,u,d,!f),n.arc(m*c+r,y*c+o,l,d-Math.PI*2,d-Math.PI,!f),a!==0&&n.arc(r,o,a,d,u,f)},t})(nn);function eMe(e,t){t=t||{};var n=t.isRoundCap;return function(i,r,o){var a=r.position;if(!a||a instanceof Array)return u2(i,r,o);var s=e(a),l=r.distance!=null?r.distance:5,c=this.shape,u=c.cx,d=c.cy,f=c.r,h=c.r0,p=(f+h)/2,g=c.startAngle,v=c.endAngle,m=(g+v)/2,y=n?Math.abs(f-h)/2:0,b=Math.cos,x=Math.sin,_=u+f*b(g),S=d+f*x(g),$="left",C="top";switch(s){case"startArc":_=u+(h-l)*b(m),S=d+(h-l)*x(m),$="center",C="top";break;case"insideStartArc":_=u+(h+l)*b(m),S=d+(h+l)*x(m),$="center",C="bottom";break;case"startAngle":_=u+p*b(g)+gk(g,l+y,!1),S=d+p*x(g)+vk(g,l+y,!1),$="right",C="middle";break;case"insideStartAngle":_=u+p*b(g)+gk(g,-l+y,!1),S=d+p*x(g)+vk(g,-l+y,!1),$="left",C="middle";break;case"middle":_=u+p*b(m),S=d+p*x(m),$="center",C="middle";break;case"endArc":_=u+(f+l)*b(m),S=d+(f+l)*x(m),$="center",C="bottom";break;case"insideEndArc":_=u+(f-l)*b(m),S=d+(f-l)*x(m),$="center",C="top";break;case"endAngle":_=u+p*b(v)+gk(v,l+y,!0),S=d+p*x(v)+vk(v,l+y,!0),$="left",C="middle";break;case"insideEndAngle":_=u+p*b(v)+gk(v,-l+y,!0),S=d+p*x(v)+vk(v,-l+y,!0),$="right",C="middle";break;default:return u2(i,r,o)}return i=i||{},i.x=_,i.y=S,i.align=$,i.verticalAlign=C,i}}function tMe(e,t,n,i){if(bn(i)){e.setTextConfig({rotation:i});return}else if(Ne(t)){e.setTextConfig({rotation:0});return}var r=e.shape,o=r.clockwise?r.startAngle:r.endAngle,a=r.clockwise?r.endAngle:r.startAngle,s=(o+a)/2,l,c=n(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=o;break;case"endAngle":case"insideEndAngle":l=a;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-l;c==="middle"&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function gk(e,t,n){return t*Math.sin(e)*(n?-1:1)}function vk(e,t,n){return t*Math.cos(e)*(n?1:-1)}function Pb(e,t,n){var i=e.get("borderRadius");if(i==null)return n?{cornerRadius:0}:null;Ne(i)||(i=[i,i,i,i]);var r=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Ye(i,function(o){return Su(o,r)})}}var jO=Math.max,UO=Math.min;function nMe(e,t){var n=e.getArea&&e.getArea();if(vP(e,"cartesian2d")){var i=e.getBaseAxis();if(i.type!=="category"||!i.onBand){var r=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=r*2):(n.y-=r,n.height+=r*2)}}return n}var iMe=(function(e){ze(t,e);function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return t.prototype.render=function(n,i,r,o){this._model=n,this._removeOnRenderedListener(r),this._updateDrawMode(n);var a=n.get("coordinateSystem");(a==="cartesian2d"||a==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,i,r):this._renderNormal(n,i,r,o))},t.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},t.prototype.incrementalRender=function(n,i){this._progressiveEls=[],this._incrementalRenderLarge(n,i)},t.prototype.eachRendered=function(n){Qm(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var i=n.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(n,i,r,o){var a=this.group,s=n.getData(),l=this._data,c=n.coordinateSystem,u=c.getBaseAxis(),d;c.type==="cartesian2d"?d=u.isHorizontal():c.type==="polar"&&(d=u.dim==="angle");var f=n.isAnimationEnabled()?n:null,h=rMe(n,c);h&&this._enableRealtimeSort(h,s,r);var p=n.get("clip",!0)||h,g=nMe(c,s);a.removeClipPath();var v=n.get("roundCap",!0),m=n.get("showBackground",!0),y=n.getModel("backgroundStyle"),b=y.get("borderRadius")||0,x=[],_=this._backgroundEls,S=o&&o.isInitSort,$=o&&o.type==="changeAxisOrder";function C(A){var M=yk[c.type](s,A);if(!M)return null;var T=dMe(c,d,M);return T.useStyle(y.getItemStyle()),c.type==="cartesian2d"?T.setShape("r",b):T.setShape("cornerRadius",b),x[A]=T,T}s.diff(l).add(function(A){var M=s.getItemModel(A),T=yk[c.type](s,A,M);if(T&&(m&&C(A),!(!s.hasValue(A)||!nY[c.type](T)))){var k=!1;p&&(k=JW[c.type](g,T));var I=QW[c.type](n,s,A,T,d,f,u.model,!1,v);h&&(I.forceLabelAnimation=!0),iY(I,s,A,M,T,n,d,c.type==="polar"),S?I.attr({shape:T}):h?eY(h,f,I,T,A,d,!1,!1):ji(I,{shape:T},n,A),s.setItemGraphicEl(A,I),a.add(I),I.ignore=k}}).update(function(A,M){var T=s.getItemModel(A),k=yk[c.type](s,A,T);if(k){if(m){var I=void 0;_.length===0?I=C(M):(I=_[M],I.useStyle(y.getItemStyle()),c.type==="cartesian2d"?I.setShape("r",b):I.setShape("cornerRadius",b),x[A]=I);var D=yk[c.type](s,A),E=Ite(d,D,c);ci(I,{shape:E},f,A)}var N=l.getItemGraphicEl(M);if(!s.hasValue(A)||!nY[c.type](k)){a.remove(N);return}var F=!1;p&&(F=JW[c.type](g,k),F&&a.remove(N));var G=N&&(N.type==="sector"&&v||N.type==="sausage"&&!v);if(G&&(N&&Gb(N,n,M),N=null),N?Pm(N):N=QW[c.type](n,s,A,k,d,f,u.model,!0,v),h&&(N.forceLabelAnimation=!0),$){var P=N.getTextContent();if(P){var O=ng(P);O.prevValue!=null&&(O.prevValue=O.value)}}else iY(N,s,A,T,k,n,d,c.type==="polar");S?N.attr({shape:k}):h?eY(h,f,N,k,A,d,!0,$):ci(N,{shape:k},n,A,null),s.setItemGraphicEl(A,N),N.ignore=F,a.add(N)}}).remove(function(A){var M=l.getItemGraphicEl(A);M&&Gb(M,n,A)}).execute();var w=this._backgroundGroup||(this._backgroundGroup=new Jn);w.removeAll();for(var z=0;z<x.length;++z)w.add(x[z]);a.add(w),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(n,i,r){this._clear(),oY(n,this.group),this._updateLargeClip(n)},t.prototype._incrementalRenderLarge=function(n,i){this._removeBackground(),oY(i,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(n){var i=n.get("clip",!0)&&gP(n.coordinateSystem,!1,n),r=this.group;i?r.setClipPath(i):r.removeClipPath()},t.prototype._enableRealtimeSort=function(n,i,r){var o=this;if(i.count()){var a=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,n,r),this._isFirstFrame=!1;else{var s=function(l){var c=i.getItemGraphicEl(l),u=c&&c.shape;return u&&Math.abs(a.isHorizontal()?u.height:u.width)||0};this._onRendered=function(){o._updateSortWithinSameData(i,s,a,r)},r.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(n,i,r){var o=[];return n.each(n.mapDimension(i.dim),function(a,s){var l=r(s);l=l??NaN,o.push({dataIndex:s,mappedValue:l,ordinalNumber:a})}),o.sort(function(a,s){return s.mappedValue-a.mappedValue}),{ordinalNumbers:Ye(o,function(a){return a.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(n,i,r){for(var o=r.scale,a=n.mapDimension(r.dim),s=Number.MAX_VALUE,l=0,c=o.getOrdinalMeta().categories.length;l<c;++l){var u=n.rawIndexOf(a,o.getRawOrdinalNumber(l)),d=u<0?Number.MIN_VALUE:i(n.indexOfRawIndex(u));if(d>s)return!0;s=d}return!1},t.prototype._isOrderDifferentInView=function(n,i){for(var r=i.scale,o=r.getExtent(),a=Math.max(0,o[0]),s=Math.min(o[1],r.getOrdinalMeta().categories.length-1);a<=s;++a)if(n.ordinalNumbers[a]!==r.getRawOrdinalNumber(a))return!0},t.prototype._updateSortWithinSameData=function(n,i,r,o){if(this._isOrderChangedWithinSameData(n,i,r)){var a=this._dataSort(n,r,i);this._isOrderDifferentInView(a,r)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",axisId:r.index,sortInfo:a}))}},t.prototype._dispatchInitSort=function(n,i,r){var o=i.baseAxis,a=this._dataSort(n,o,function(s){return n.get(n.mapDimension(i.otherAxis.dim),s)});r.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:a})},t.prototype.remove=function(n,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(n,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var i=this.group,r=this._data;n&&n.isAnimationEnabled()&&r&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],r.eachItemGraphicEl(function(o){Gb(o,n,Ut(o).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(vr),JW={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=e.x+e.width,o=e.y+e.height,a=jO(t.x,e.x),s=UO(t.x+t.width,r),l=jO(t.y,e.y),c=UO(t.y+t.height,o),u=s<a,d=c<l;return t.x=u&&a>r?s:a,t.y=d&&l>o?c:l,t.width=u?0:s-a,t.height=d?0:c-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var r=UO(t.r,e.r),o=jO(t.r0,e.r0);t.r=r,t.r0=o;var a=r-o<0;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}return a}},QW={cartesian2d:function(e,t,n,i,r,o,a,s,l){var c=new si({shape:ke({},i),z2:1});if(c.__dataIndex=n,c.name="item",o){var u=c.shape,d=r?"height":"width";u[d]=0}return c},polar:function(e,t,n,i,r,o,a,s,l){var c=!r&&l?KW:Iu,u=new c({shape:i,z2:1});u.name="item";var d=Ate(r);if(u.calculateTextPosition=eMe(d,{isRoundCap:c===KW}),o){var f=u.shape,h=r?"r":"endAngle",p={};f[h]=r?i.r0:i.startAngle,p[h]=i[h],(s?ci:ji)(u,{shape:p},o)}return u}};function rMe(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();if(n&&i.type==="category"&&t.type==="cartesian2d")return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function eY(e,t,n,i,r,o,a,s){var l,c;o?(c={x:i.x,width:i.width},l={y:i.y,height:i.height}):(c={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?ci:ji)(n,{shape:l},t,r,null);var u=t?e.baseAxis.model:null;(a?ci:ji)(n,{shape:c},u,r)}function tY(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var oMe=["x","y","width","height"],aMe=["cx","cy","r","startAngle","endAngle"],nY={cartesian2d:function(e){return!tY(e,oMe)},polar:function(e){return!tY(e,aMe)}},yk={cartesian2d:function(e,t,n){var i=e.getItemLayout(t);if(!i)return null;var r=n?lMe(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function sMe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Ate(e){return(function(t){var n=t?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+n;default:return i}}})(e)}function iY(e,t,n,i,r,o,a,s){var l=t.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var c=e.shape,u=Pb(i.getModel("itemStyle"),c,!0);ke(c,u),e.setShape(c)}}else{var d=i.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(l);var f=i.getShallow("cursor");f&&e.attr("cursor",f);var h=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",p=tg(i);eg(e,p,{labelFetcher:o,labelDataIndex:n,defaultText:yx(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=e.getTextContent();if(s&&g){var v=i.get(["label","position"]);e.textConfig.inside=v==="middle"?!0:null,tMe(e,v==="outside"?h:v,Ate(a),i.get(["label","rotate"]))}A1e(g,p,o.getRawValue(n),function(y){return _te(t,y)});var m=i.getModel(["emphasis"]);wu(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),Ch(e,i),sMe(r)&&(e.style.fill="none",e.style.stroke="none",Z(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function lMe(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var i=e.get(["itemStyle","borderWidth"])||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,r,o)}var cMe=(function(){function e(){}return e})(),rY=(function(e){ze(t,e);function t(n){var i=e.call(this,n)||this;return i.type="largeBar",i}return t.prototype.getDefaultShape=function(){return new cMe},t.prototype.buildPath=function(n,i){for(var r=i.points,o=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],c=this.barWidth,u=0;u<r.length;u+=3)l[o]=c,l[a]=r[u+2],s[o]=r[u+o],s[a]=r[u+a],n.rect(s[0],s[1],l[0],l[1])},t})(nn);function oY(e,t,n,i){var r=e.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=e.getModel("backgroundStyle"),c=r.getLayout("largeBackgroundPoints");if(c){var u=new rY({shape:{points:c},incremental:!!i,silent:!0,z2:0});u.baseDimIdx=o,u.largeDataIndices=a,u.barWidth=s,u.useStyle(l.getItemStyle()),t.add(u),n&&n.push(u)}var d=new rY({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=o,d.largeDataIndices=a,d.barWidth=s,t.add(d),d.useStyle(r.getVisual("style")),d.style.stroke=null,Ut(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",aY),d.on("mousemove",aY)),n&&n.push(d)}var aY=rP(function(e){var t=this,n=uMe(t,e.offsetX,e.offsetY);Ut(t).dataIndex=n>=0?n:null},30,!1);function uMe(e,t,n){for(var i=e.baseDimIdx,r=1-i,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],c=e.barWidth,u=0,d=o.length/3;u<d;u++){var f=u*3;if(l[i]=c,l[r]=o[f+2],s[i]=o[f+i],s[r]=o[f+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[u]}return-1}function Ite(e,t,n){if(vP(n,"cartesian2d")){var i=t,r=n.getArea();return{x:e?i.x:r.x,y:e?r.y:i.y,width:e?i.width:r.width,height:e?r.height:i.height}}else{var r=n.getArea(),o=t;return{cx:r.cx,cy:r.cy,r0:e?r.r0:o.r0,r:e?r.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:Math.PI*2}}}function dMe(e,t,n){var i=e.type==="polar"?Iu:si;return new i({shape:Ite(t,n,e),silent:!0,z2:0})}function hMe(e){e.registerChartView(iMe),e.registerSeriesModel(J2e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,ai(Lke,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Eke("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Tte("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,n){var i=t.componentType||"series";n.eachComponent({mainType:i,query:t},function(r){t.sortInfo&&r.axis.setCategorySortInfo(t.sortInfo)})})}var sY=Math.PI*2,bk=Math.PI/180;function fMe(e,t,n){t.eachSeriesByType(e,function(i){var r=i.getData(),o=r.mapDimension("value"),a=uSe(i,n),s=a.cx,l=a.cy,c=a.r,u=a.r0,d=a.viewRect,f=-i.get("startAngle")*bk,h=i.get("endAngle"),p=i.get("padAngle")*bk;h=h==="auto"?f-sY:-h*bk;var g=i.get("minAngle")*bk,v=g+p,m=0;r.each(o,function(E){!isNaN(E)&&m++});var y=r.getSum(o),b=Math.PI/(y||m)*2,x=i.get("clockwise"),_=i.get("roseType"),S=i.get("stillShowZeroSum"),$=r.getDataExtent(o);$[0]=0;var C=x?1:-1,w=[f,h],z=C*p/2;TJ(w,!x),f=w[0],h=w[1];var A=Rte(i);A.startAngle=f,A.endAngle=h,A.clockwise=x,A.cx=s,A.cy=l,A.r=c,A.r0=u;var M=Math.abs(h-f),T=M,k=0,I=f;if(r.setLayout({viewRect:d,r:c}),r.each(o,function(E,N){var F;if(isNaN(E)){r.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:s,cy:l,r0:u,r:_?NaN:c});return}_!=="area"?F=y===0&&S?b:E*b:F=M/m,F<v?(F=v,T-=v):k+=E;var G=I+C*F,P=0,O=0;p>F?(P=I+C*F/2,O=P):(P=I+z,O=G-z),r.setItemLayout(N,{angle:F,startAngle:P,endAngle:O,clockwise:x,cx:s,cy:l,r0:u,r:_?PN(E,$,[u,c]):c}),I=G}),T<sY&&m)if(T<=.001){var D=M/m;r.each(o,function(E,N){if(!isNaN(E)){var F=r.getItemLayout(N);F.angle=D;var G=0,P=0;D<p?(G=f+C*(N+1/2)*D,P=G):(G=f+C*N*D+z,P=f+C*(N+1)*D-z),F.startAngle=G,F.endAngle=P}})}else b=T/k,I=f,r.each(o,function(E,N){if(!isNaN(E)){var F=r.getItemLayout(N),G=F.angle===v?v:E*b,P=0,O=0;G<p?(P=I+C*G/2,O=P):(P=I+z,O=I+C*G-z),F.startAngle=P,F.endAngle=O,I+=C*G}})})}var Rte=fn();function Lte(e){return{seriesType:e,reset:function(t,n){var i=n.findComponents({mainType:"legend"});if(!(!i||!i.length)){var r=t.getData();r.filterSelf(function(o){for(var a=r.getName(o),s=0;s<i.length;s++)if(!i[s].isSelected(a))return!1;return!0})}}}}var pMe=Math.PI/180;function lY(e,t,n,i,r,o,a,s,l,c){if(e.length<2)return;function u(g){for(var v=g.rB,m=v*v,y=0;y<g.list.length;y++){var b=g.list[y],x=Math.abs(b.label.y-n),_=i+b.len,S=_*_,$=Math.sqrt(Math.abs((1-x*x/m)*S)),C=t+($+b.len2)*r,w=C-b.label.x,z=b.targetTextWidth-w*r;Ete(b,z,!0),b.label.x=C}}function d(g){for(var v={list:[],maxY:0},m={list:[],maxY:0},y=0;y<g.length;y++)if(g[y].labelAlignTo==="none"){var b=g[y],x=b.label.y>n?m:v,_=Math.abs(b.label.y-n);if(_>=x.maxY){var S=b.label.x-t-b.len2*r,$=i+b.len,C=Math.abs(S)<$?Math.sqrt(_*_/(1-S*S/$/$)):$;x.rB=C,x.maxY=_}x.list.push(b)}u(v),u(m)}for(var f=e.length,h=0;h<f;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var p=e[h].label.x-c;e[h].linePoints[1][0]+=p,e[h].label.x=c}z5(e,1,l,l+a)&&d(e)}function mMe(e,t,n,i,r,o,a,s){for(var l=[],c=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var h=e[f].label;BO(e[f])||(h.x<t?(u=Math.min(u,h.x),l.push(e[f])):(d=Math.max(d,h.x),c.push(e[f])))}for(var f=0;f<e.length;f++){var p=e[f];if(!BO(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var h=p.label,g=p.linePoints,v=void 0;p.labelAlignTo==="edge"?h.x<t?v=g[2][0]-p.labelDistance-a-p.edgeDistance:v=a+r-p.edgeDistance-g[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?h.x<t?v=u-a-p.bleedMargin:v=a+r-d-p.bleedMargin:h.x<t?v=h.x-a-p.bleedMargin:v=a+r-h.x-p.bleedMargin,p.targetTextWidth=v,Ete(p,v,!1)}}lY(c,t,n,i,1,r,o,a,s,d),lY(l,t,n,i,-1,r,o,a,s,u);for(var f=0;f<e.length;f++){var p=e[f];if(!BO(p)&&p.linePoints){var h=p.label,g=p.linePoints,m=p.labelAlignTo==="edge",y=h.style.padding,b=y?y[1]+y[3]:0,x=h.style.backgroundColor?0:b,_=p.rect.width+x,S=g[1][0]-g[2][0];m?h.x<t?g[2][0]=a+p.edgeDistance+_+p.labelDistance:g[2][0]=a+r-p.edgeDistance-_-p.labelDistance:(h.x<t?g[2][0]=h.x+p.labelDistance:g[2][0]=h.x-p.labelDistance,g[1][0]=g[2][0]+S),g[1][1]=g[2][1]=h.y}}}function Ete(e,t,n){if(e.labelStyleWidth==null){var i=e.label,r=i.style,o=e.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,c=r.overflow,u=o.width+(a?0:l);if(t<u||n){if(c&&c.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var d=i.getBoundingRect();i.setStyle("width",Math.ceil(d.width)),i.setStyle("backgroundColor",a)}else{var f=t-l,h=t<u?f:n?f>e.unconstrainedWidth?null:f:null;i.setStyle("width",h)}Dte(o,i)}}}function Dte(e,t){cY.rect=e,bte(cY,t,gMe)}var gMe={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},cY={};function BO(e){return e.position==="center"}function vMe(e){var t=e.getData(),n=[],i,r,o=!1,a=(e.get("minShowLabelAngle")||0)*pMe,s=t.getLayout("viewRect"),l=t.getLayout("r"),c=s.width,u=s.x,d=s.y,f=s.height;function h(S){S.ignore=!0}function p(S){if(!S.ignore)return!0;for(var $ in S.states)if(S.states[$].ignore===!1)return!0;return!1}t.each(function(S){var $=t.getItemGraphicEl(S),C=$.shape,w=$.getTextContent(),z=$.getTextGuideLine(),A=t.getItemModel(S),M=A.getModel("label"),T=M.get("position")||A.get(["emphasis","label","position"]),k=M.get("distanceToLabelLine"),I=M.get("alignTo"),D=tn(M.get("edgeDistance"),c),E=M.get("bleedMargin");E==null&&(E=Math.min(c,f)>200?10:2);var N=A.getModel("labelLine"),F=N.get("length");F=tn(F,c);var G=N.get("length2");if(G=tn(G,c),Math.abs(C.endAngle-C.startAngle)<a){Z(w.states,h),w.ignore=!0,z&&(Z(z.states,h),z.ignore=!0);return}if(p(w)){var P=(C.startAngle+C.endAngle)/2,O=Math.cos(P),V=Math.sin(P),j,H,Q,le;i=C.cx,r=C.cy;var se=T==="inside"||T==="inner";if(T==="center")j=C.cx,H=C.cy,le="center";else{var ae=(se?(C.r+C.r0)/2*O:C.r*O)+i,Se=(se?(C.r+C.r0)/2*V:C.r*V)+r;if(j=ae+O*3,H=Se+V*3,!se){var ve=ae+O*(F+l-C.r),$e=Se+V*(F+l-C.r),je=ve+(O<0?-1:1)*G,R=$e;I==="edge"?j=O<0?u+D:u+c-D:j=je+(O<0?-k:k),H=R,Q=[[ae,Se],[ve,$e],[je,R]]}le=se?"center":I==="edge"?O>0?"right":"left":O>0?"left":"right"}var ie=Math.PI,te=0,B=M.get("rotate");if(bn(B))te=B*(ie/180);else if(T==="center")te=0;else if(B==="radial"||B===!0){var U=O<0?-P+ie:-P;te=U}else if(B==="tangential"&&T!=="outside"&&T!=="outer"){var W=Math.atan2(O,V);W<0&&(W=ie*2+W);var ue=V>0;ue&&(W=ie+W),te=W-ie}if(o=!!te,w.x=j,w.y=H,w.rotation=te,w.setStyle({verticalAlign:"middle"}),se){w.setStyle({align:le});var de=w.states.select;de&&(de.x+=w.x,de.y+=w.y)}else{var J=new It(0,0,0,0);Dte(J,w),n.push({label:w,labelLine:z,position:T,len:F,len2:G,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new At(O,V),linePoints:Q,textAlign:le,labelDistance:k,labelAlignTo:I,edgeDistance:D,bleedMargin:E,rect:J,unconstrainedWidth:J.width,labelStyleWidth:w.style.width})}$.setTextConfig({inside:se})}}),!o&&e.get("avoidLabelOverlap")&&mMe(n,i,r,l,c,f,u,d);for(var g=0;g<n.length;g++){var v=n[g],m=v.label,y=v.labelLine,b=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:v.textAlign}),b&&(Z(m.states,h),m.ignore=!0);var x=m.states.select;x&&(x.x+=m.x,x.y+=m.y)}if(y){var _=v.linePoints;b||!_?(Z(y.states,h),y.ignore=!0):(pte(_,v.minTurnAngle),x2e(_,v.surfaceNormal,v.maxSurfaceAngle),y.setShape({points:_}),m.__hostTarget.textGuideLineConfig={anchor:new At(_[0][0],_[0][1])})}}}var yMe=(function(e){ze(t,e);function t(n,i,r){var o=e.call(this)||this;o.z2=2;var a=new pi;return o.setTextContent(a),o.updateData(n,i,r,!0),o}return t.prototype.updateData=function(n,i,r,o){var a=this,s=n.hostModel,l=n.getItemModel(i),c=l.getModel("emphasis"),u=n.getItemLayout(i),d=ke(Pb(l.getModel("itemStyle"),u,!0),u);if(isNaN(d.startAngle)){a.setShape(d);return}if(o){a.setShape(d);var f=s.getShallow("animationType");s.ecModel.ssr?(ji(a,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),a.originX=d.cx,a.originY=d.cy):f==="scale"?(a.shape.r=u.r0,ji(a,{shape:{r:u.r}},s,i)):r!=null?(a.setShape({startAngle:r,endAngle:r}),ji(a,{shape:{startAngle:u.startAngle,endAngle:u.endAngle}},s,i)):(a.shape.endAngle=u.startAngle,ci(a,{shape:{endAngle:u.endAngle}},s,i))}else Pm(a),ci(a,{shape:d},s,i);a.useStyle(n.getItemVisual(i,"style")),Ch(a,l);var h=(u.startAngle+u.endAngle)/2,p=s.get("selectedOffset"),g=Math.cos(h)*p,v=Math.sin(h)*p,m=l.getShallow("cursor");m&&a.attr("cursor",m),this._updateLabel(s,n,i),a.ensureState("emphasis").shape=ke({r:u.r+(c.get("scale")&&c.get("scaleSize")||0)},Pb(c.getModel("itemStyle"),u)),ke(a.ensureState("select"),{x:g,y:v,shape:Pb(l.getModel(["select","itemStyle"]),u)}),ke(a.ensureState("blur"),{shape:Pb(l.getModel(["blur","itemStyle"]),u)});var y=a.getTextGuideLine(),b=a.getTextContent();y&&ke(y.ensureState("select"),{x:g,y:v}),ke(b.ensureState("select"),{x:g,y:v}),wu(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype._updateLabel=function(n,i,r){var o=this,a=i.getItemModel(r),s=a.getModel("labelLine"),l=i.getItemVisual(r,"style"),c=l&&l.fill,u=l&&l.opacity;eg(o,tg(a),{labelFetcher:i.hostModel,labelDataIndex:r,inheritColor:c,defaultOpacity:u,defaultText:n.getFormattedLabel(r,"normal")||i.getName(r)});var d=o.getTextContent();o.setTextConfig({position:null,rotation:null}),d.attr({z2:10});var f=a.get(["label","position"]);if(f!=="outside"&&f!=="outer")o.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Ih,this.setTextGuideLine(h)),mte(this,gte(a),{stroke:c,opacity:gu(s.get(["lineStyle","opacity"]),u,1)})}},t})(Iu),bMe=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(n,i,r,o){var a=n.getData(),s=this._data,l=this.group,c;if(!s&&a.count()>0){for(var u=a.getItemLayout(0),d=1;isNaN(u&&u.startAngle)&&d<a.count();++d)u=a.getItemLayout(d);u&&(c=u.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),a.count()===0&&n.get("showEmptyCircle")){var f=Rte(n),h=new Iu({shape:Ht(f)});h.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}a.diff(s).add(function(p){var g=new yMe(a,p,c);a.setItemGraphicEl(p,g),l.add(g)}).update(function(p,g){var v=s.getItemGraphicEl(g);v.updateData(a,p,c),v.off("click"),l.add(v),a.setItemGraphicEl(p,v)}).remove(function(p){var g=s.getItemGraphicEl(p);Gb(g,n,p)}).execute(),vMe(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=a)},t.prototype.dispose=function(){},t.prototype.containPoint=function(n,i){var r=i.getData(),o=r.getItemLayout(0);if(o){var a=n[0]-o.cx,s=n[1]-o.cy,l=Math.sqrt(a*a+s*s);return l<=o.r&&l>=o.r0}},t.type="pie",t})(vr);function bP(e,t,n){t=Ne(t)&&{coordDimensions:t}||ke({encodeDefine:e.getEncode()},t);var i=e.getSource(),r=Vee(i,t).dimensions,o=new qee(r,e);return o.initData(i,n),o}var Ote=(function(){function e(t,n){this._getDataWithEncodedVisual=t,this._getRawData=n}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var n=this._getRawData();return n.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var n=this._getDataWithEncodedVisual();return n.indexOfName(t)},e.prototype.getItemVisual=function(t,n){var i=this._getDataWithEncodedVisual();return i.getItemVisual(t,n)},e})(),xMe=fn(),Nte=(function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ote(Qt(this.getData,this),Qt(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return bP(this,{coordDimensions:["value"],encodeDefaulter:ai(vSe,this)})},t.prototype.getDataParams=function(n){var i=this.getData(),r=xMe(i),o=r.seats;if(!o){var a=[];i.each(i.mapDimension("value"),function(l){a.push(l)}),o=r.seats=nxe(a,i.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,n);return s.percent=o[n]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(n){UN(n,"labelLine",["show"]);var i=n.labelLine,r=n.emphasis.labelLine;i.show=i.show&&n.label.show,r.show=r.show&&n.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(Er);rSe({fullType:Nte.type,getCoord2:function(e){return e.getShallow("center")}});function _Me(e){return{seriesType:e,reset:function(t,n){var i=t.getData();i.filterSelf(function(r){var o=i.mapDimension("value"),a=i.get(o,r);return!(bn(a)&&!isNaN(a)&&a<0)})}}}function SMe(e){e.registerChartView(bMe),e.registerSeriesModel(Nte),Q$e("pie",e.registerAction),e.registerLayout(ai(fMe,"pie")),e.registerProcessor(Lte("pie")),e.registerProcessor(_Me("pie"))}var $Me=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n,i){return Ex(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(n,i,r){return r.point(i.getItemLayout(n))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:nt.color.primary}},universalTransition:{divideShape:"clone"}},t})(Er),Pte=4,wMe=(function(){function e(){}return e})(),kMe=(function(e){ze(t,e);function t(n){var i=e.call(this,n)||this;return i._off=0,i.hoverDataIdx=-1,i}return t.prototype.getDefaultShape=function(){return new wMe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(n,i){var r=i.points,o=i.size,a=this.symbolProxy,s=a.shape,l=n.getContext?n.getContext():n,c=l&&o[0]<Pte,u=this.softClipShape,d;if(c){this._ctx=l;return}for(this._ctx=null,d=this._off;d<r.length;){var f=r[d++],h=r[d++];isNaN(f)||isNaN(h)||u&&!u.contain(f,h)||(s.x=f-o[0]/2,s.y=h-o[1]/2,s.width=o[0],s.height=o[1],a.buildPath(n,s,!0))}this.incremental&&(this._off=d,this.notClear=!0)},t.prototype.afterBrush=function(){var n=this.shape,i=n.points,r=n.size,o=this._ctx,a=this.softClipShape,s;if(o){for(s=this._off;s<i.length;){var l=i[s++],c=i[s++];isNaN(l)||isNaN(c)||a&&!a.contain(l,c)||o.fillRect(l-r[0]/2,c-r[1]/2,r[0],r[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(n,i){for(var r=this.shape,o=r.points,a=r.size,s=Math.max(a[0],4),l=Math.max(a[1],4),c=o.length/2-1;c>=0;c--){var u=c*2,d=o[u]-s/2,f=o[u+1]-l/2;if(n>=d&&i>=f&&n<=d+s&&i<=f+l)return c}return-1},t.prototype.contain=function(n,i){var r=this.transformCoordToLocal(n,i),o=this.getBoundingRect();if(n=r[0],i=r[1],o.contain(n,i)){var a=this.hoverDataIdx=this.findDataIndex(n,i);return a>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var i=this.shape,r=i.points,o=i.size,a=o[0],s=o[1],l=1/0,c=1/0,u=-1/0,d=-1/0,f=0;f<r.length;){var h=r[f++],p=r[f++];l=Math.min(h,l),u=Math.max(h,u),c=Math.min(p,c),d=Math.max(p,d)}n=this._rect=new It(l-a/2,c-s/2,u-l+a,d-c+s)}return n},t})(nn),MMe=(function(){function e(){this.group=new Jn}return e.prototype.updateData=function(t,n){this._clear();var i=this._create();i.setShape({points:t.getLayout("points")}),this._setCommon(i,t,n)},e.prototype.updateLayout=function(t){var n=t.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var r=(i.endIndex-i.startIndex)*2,o=i.startIndex*4*2;n=new Float32Array(n.buffer,o,r)}i.setShape("points",n),i.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,n,i){var r=this._newAdded[0],o=n.getLayout("points"),a=r&&r.shape.points;if(a&&a.length<2e4){var s=a.length,l=new Float32Array(s+o.length);l.set(a),l.set(o,s),r.endIndex=t.end,r.setShape({points:l})}else{this._newAdded=[];var c=this._create();c.startIndex=t.start,c.endIndex=t.end,c.incremental=!0,c.setShape({points:o}),this._setCommon(c,n,i)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new kMe({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,n,i){var r=n.hostModel;i=i||{};var o=n.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=i.clipShape||null,t.symbolProxy=Mu(n.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var a=t.shape.size[0]<Pte;t.useStyle(r.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=n.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var c=Ut(t);c.seriesIndex=r.seriesIndex,t.on("mousemove",function(u){c.dataIndex=null;var d=t.hoverDataIdx;d>=0&&(c.dataIndex=d+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e})(),CMe=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,i,r){var o=n.getData(),a=this._updateSymbolDraw(o,n);a.updateData(o,{clipShape:this._getClipShape(n)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(n,i,r){var o=n.getData(),a=this._updateSymbolDraw(o,n);a.incrementalPrepareUpdate(o),this._finished=!1},t.prototype.incrementalRender=function(n,i,r){this._symbolDraw.incrementalUpdate(n,i.getData(),{clipShape:this._getClipShape(i)}),this._finished=n.end===i.getData().count()},t.prototype.updateTransform=function(n,i,r){var o=n.getData();if(this.group.dirty(),!this._finished||o.count()>1e4)return{update:!0};var a=yP("").reset(n,i,r);a.progress&&a.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout(o)},t.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},t.prototype._getClipShape=function(n){if(n.get("clip",!0)){var i=n.coordinateSystem;return i&&i.getArea&&i.getArea(.1)}},t.prototype._updateSymbolDraw=function(n,i){var r=this._symbolDraw,o=i.pipelineContext,a=o.large;return(!r||a!==this._isLargeDraw)&&(r&&r.remove(),r=this._symbolDraw=a?new MMe:new Ste,this._isLargeDraw=a,this.group.removeAll()),this.group.add(r.group),r},t.prototype.remove=function(n,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t})(vr),jte={left:0,right:0,top:0,bottom:0},j2=["25%","25%"],zMe=(function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(n,i){var r=Rx(n.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&n.outerBounds&&Zl(n.outerBounds,r)},t.prototype.mergeOption=function(n,i){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&n.outerBounds&&Zl(this.option.outerBounds,n.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:jte,outerBoundsContain:"all",outerBoundsClampWidth:j2[0],outerBoundsClampHeight:j2[1],backgroundColor:nt.color.transparent,borderWidth:1,borderColor:nt.color.neutral30},t})(dn),I5=(function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ia).models[0]},t.type="cartesian2dAxis",t})(dn);da(I5,rte);var Ute={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:nt.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:nt.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:nt.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[nt.color.backgroundTint,nt.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:nt.color.neutral00,borderColor:nt.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},TMe=an({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Ute),xP=an({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:nt.color.axisMinorSplitLine,width:1}}},Ute),AMe=an({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},xP),IMe=Pt({logBase:10},xP),Bte={category:TMe,value:xP,time:AMe,log:IMe},RMe={value:1,category:1,time:1,log:1},LMe=null;function EMe(){return LMe}function uY(e,t,n,i){Z(RMe,function(r,o){var a=an(an({},Bte[o],!0),i,!0),s=(function(l){ze(c,l);function c(){var u=l!==null&&l.apply(this,arguments)||this;return u.type=t+"Axis."+o,u}return c.prototype.mergeDefaultAndTheme=function(u,d){var f=hx(this),h=f?Rx(u):{},p=d.getTheme();an(u,p.get(o+"Axis")),an(u,this.getDefaultOption()),u.type=dY(u),f&&Zl(u,h,f)},c.prototype.optionUpdated=function(){var u=this.option;u.type==="category"&&(this.__ordinalMeta=$5.createByAxisModel(this))},c.prototype.getCategories=function(u){var d=this.option;if(d.type==="category")return u?d.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.prototype.updateAxisBreaks=function(u){return{breaks:[]}},c.type=t+"Axis."+o,c.defaultOption=a,c})(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",dY)}function dY(e){return e.type||(e.data?"category":"value")}var DMe=(function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Ye(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Kn(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e})(),R5=["x","y"];function hY(e){return(e.type==="interval"||e.type==="time")&&!e.hasBreaks()}var OMe=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=R5,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!hY(n)||!hY(i))){var r=n.getExtent(),o=i.getExtent(),a=this.dataToPoint([r[0],o[0]]),s=this.dataToPoint([r[1],o[1]]),l=r[1]-r[0],c=o[1]-o[0];if(!(!l||!c)){var u=(s[0]-a[0])/l,d=(s[1]-a[1])/c,f=a[0]-r[0]*u,h=a[1]-o[0]*d,p=this._transform=[u,0,0,d,f,h];this._invTransform=Km([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var i=this.getAxis("x"),r=this.getAxis("y");return i.contain(i.toLocalCoord(n[0]))&&r.contain(r.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,i){var r=this.dataToPoint(n),o=this.dataToPoint(i),a=this.getArea(),s=new It(r[0],r[1],o[0]-r[0],o[1]-r[1]);return a.intersect(s)},t.prototype.dataToPoint=function(n,i,r){r=r||[];var o=n[0],a=n[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return sa(r,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return r[0]=s.toGlobalCoord(s.dataToCoord(o,i)),r[1]=l.toGlobalCoord(l.dataToCoord(a,i)),r},t.prototype.clampData=function(n,i){var r=this.getAxis("x").scale,o=this.getAxis("y").scale,a=r.getExtent(),s=o.getExtent(),l=r.parse(n[0]),c=o.parse(n[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(n,i,r){if(r=r||[],this._invTransform)return sa(r,n,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return r[0]=o.coordToData(o.toLocalCoord(n[0]),i),r[1]=a.coordToData(a.toLocalCoord(n[1]),i),r},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var i=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),o=Math.min(i[0],i[1])-n,a=Math.min(r[0],r[1])-n,s=Math.max(i[0],i[1])-o+n,l=Math.max(r[0],r[1])-a+n;return new It(o,a,s,l)},t})(DMe),NMe=(function(e){ze(t,e);function t(n,i,r,o,a){var s=e.call(this,n,i,r)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),n&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(n,i){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t})(hte),PMe="expandAxisBreak",pu=Math.PI,jMe=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],UMe=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],bx=fn(),Fte=fn(),qte=(function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var n=t.axis.dim,i=t.componentIndex,r=this.recordMap,o=r[n]||(r[n]=[]);return o[i]||(o[i]={ready:{}})},e})();function BMe(e,t,n,i){var r=n.axis,o=t.ensureRecord(n),a=[],s,l=_P(e.axisName)&&Fm(e.nameLocation);Z(i,function(p){var g=zu(p);if(!(!g||g.label.ignore)){a.push(g);var v=o.transGroup;l&&(v.transform?Km(Mb,v.transform):b4(Mb),g.transform&&Bb(Mb,Mb,g.transform),It.copy(xk,g.localRect),xk.applyTransform(Mb),s?s.union(xk):It.copy(s=new It(0,0,0,0),xk))}});var c=Math.abs(o.dirVec.x)>.1?"x":"y",u=o.transGroup[c];if(a.sort(function(p,g){return Math.abs(p.label[c]-u)-Math.abs(g.label[c]-u)}),l&&s){var d=r.getExtent(),f=Math.min(d[0],d[1]),h=Math.max(d[0],d[1])-f;s.union(new It(f,0,h,1))}o.stOccupiedRect=s,o.labelInfoList=a}var Mb=Dl(),xk=new It(0,0,0,0),Vte=function(e,t,n,i,r,o){if(Fm(e.nameLocation)){var a=o.stOccupiedRect;a&&Hte($2e({},a,o.transGroup.transform),i,r)}else Zte(o.labelInfoList,o.dirVec,i,r)};function Hte(e,t,n){var i=new At;pP(e,t,i,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&w2e(t,i)}function Zte(e,t,n,i){for(var r=At.dot(i,t)>=0,o=0,a=e.length;o<a;o++){var s=e[r?o:a-1-o];s.label.ignore||Hte(s,n,i)}}var Ol=(function(){function e(t,n,i,r){this.group=new Jn,this._axisModel=t,this._api=n,this._local={},this._shared=r||new qte(Vte),this._resetCfgDetermined(i)}return e.prototype.updateCfg=function(t){var n=this._cfg.raw;n.position=t.position,n.labelOffset=t.labelOffset,this._resetCfgDetermined(n)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var n=this._axisModel,i=n.getDefaultOption?n.getDefaultOption():{},r=pt(t.axisName,n.get("name")),o=n.get("nameMoveOverlap");(o==null||o==="auto")&&(o=pt(t.defaultNameMoveOverlap,!0));var a={raw:t,position:t.position,rotation:t.rotation,nameDirection:pt(t.nameDirection,1),tickDirection:pt(t.tickDirection,1),labelDirection:pt(t.labelDirection,1),labelOffset:pt(t.labelOffset,0),silent:pt(t.silent,!0),axisName:r,nameLocation:gu(n.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:_P(r)&&o,optionHideOverlap:n.get(["axisLabel","hideOverlap"]),showMinorTicks:n.get(["minorTick","show"])};this._cfg=a;var s=new Jn({x:a.position[0],y:a.position[1],rotation:a.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(n);l.transGroup=this._transformGroup,l.dirVec=new At(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(t,n){var i=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),Z(FMe,function(r){t[r]&&qMe[r](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,n||{})}),this},e.innerTextLayout=function(t,n,i){var r=hJ(n-t),o,a;return d2(r)?(a=i>0?"top":"bottom",o="center"):d2(r-pu)?(a=i>0?"bottom":"top",o="center"):(a="middle",r>0&&r<pu?o=i>0?"right":"left":o=i>0?"left":"right"),{rotation:r,textAlign:o,textVerticalAlign:a}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e})(),FMe=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],qMe={axisLine:function(e,t,n,i,r,o,a){var s=i.get(["axisLine","show"]);if(s==="auto"&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),!!s){var l=i.axis.getExtent(),c=o.transform,u=[l[0],0],d=[l[1],0],f=u[0]>d[0];c&&(sa(u,u,c),sa(d,d,c));var h=ke({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),p={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(i.get(["axisLine","breakLine"])&&i.axis.scale.hasBreaks())EMe().buildAxisBreakLine(i,r,o,p);else{var g=new ku(ke({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},p));ux(g.shape,g.style.lineWidth),g.anid="line",r.add(g)}var v=i.get(["axisLine","symbol"]);if(v!=null){var m=i.get(["axisLine","symbolSize"]);rt(v)&&(v=[v,v]),(rt(m)||bn(m))&&(m=[m,m]);var y=hee(i.get(["axisLine","symbolOffset"])||0,m),b=m[0],x=m[1];Z([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(_,S){if(v[S]!=="none"&&v[S]!=null){var $=Mu(v[S],-b/2,-x/2,b,x,h.stroke,!0),C=_.r+_.offset,w=f?d:u;$.attr({rotation:_.rotate,x:w[0]+C*Math.cos(e.rotation),y:w[1]-C*Math.sin(e.rotation),silent:!0,z2:11}),r.add($)}})}}},axisTickLabelEstimate:function(e,t,n,i,r,o,a,s){var l=pY(t,r,s);l&&fY(e,t,n,i,r,o,a,Da.estimate)},axisTickLabelDetermine:function(e,t,n,i,r,o,a,s){var l=pY(t,r,s);l&&fY(e,t,n,i,r,o,a,Da.determine);var c=GMe(e,r,o,i);ZMe(e,t.labelLayoutList,c),WMe(e,r,o,i,e.tickDirection)},axisName:function(e,t,n,i,r,o,a,s){var l=n.ensureRecord(i);t.nameEl&&(r.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var c=e.axisName;if(_P(c)){var u=e.nameLocation,d=e.nameDirection,f=i.getModel("nameTextStyle"),h=i.get("nameGap")||0,p=i.axis.getExtent(),g=i.axis.inverse?-1:1,v=new At(0,0),m=new At(0,0);u==="start"?(v.x=p[0]-g*h,m.x=-g):u==="end"?(v.x=p[1]+g*h,m.x=g):(v.x=(p[0]+p[1])/2,v.y=e.labelOffset+d*h,m.y=d);var y=Dl();m.transform(x4(y,y,e.rotation));var b=i.get("nameRotate");b!=null&&(b=b*pu/180);var x,_;Fm(u)?x=Ol.innerTextLayout(e.rotation,b??e.rotation,d):(x=VMe(e.rotation,u,b||0,p),_=e.raw.axisNameAvailableWidth,_!=null&&(_=Math.abs(_/Math.sin(x.rotation)),!isFinite(_)&&(_=null)));var S=f.getFont(),$=i.get("nameTruncate",!0)||{},C=$.ellipsis,w=t2(e.raw.nameTruncateMaxWidth,$.maxWidth,_),z=s.nameMarginLevel||0,A=new pi({x:v.x,y:v.y,rotation:x.rotation,silent:Ol.isLabelSilent(i),style:Ts(f,{text:c,font:S,overflow:"truncate",width:w,ellipsis:C,fill:f.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:f.get("align")||x.textAlign,verticalAlign:f.get("verticalAlign")||x.textVerticalAlign}),z2:1});if(Ax({el:A,componentModel:i,itemName:c}),A.__fullText=c,A.anid="name",i.get("triggerEvent")){var M=Ol.makeAxisEventDataBase(i);M.targetType="axisName",M.name=c,Ut(A).eventData=M}o.add(A),A.updateTransform(),t.nameEl=A;var T=l.nameLayout=zu({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:Fm(u)?jMe[z]:UMe[z]});if(l.nameLocation=u,r.add(A),A.decomposeTransform(),e.shouldNameMoveOverlap&&T){var k=n.ensureRecord(i);n.resolveAxisNameOverlap(e,n,i,T,m,k)}}}};function fY(e,t,n,i,r,o,a,s){Wte(t)||YMe(e,t,r,s,i,a);var l=t.labelLayoutList;XMe(e,i,l,o),e.rotation;var c=e.optionHideOverlap;HMe(i,l,c),c&&xte(Kn(l,function(u){return u&&!u.label.ignore})),BMe(e,n,i,l)}function VMe(e,t,n,i){var r=hJ(n-e),o,a,s=i[0]>i[1],l=t==="start"&&!s||t!=="start"&&s;return d2(r-pu/2)?(a=l?"bottom":"top",o="center"):d2(r-pu*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",r<pu*1.5&&r>pu/2?o=l?"left":"right":o=l?"right":"left"),{rotation:r,textAlign:o,textVerticalAlign:a}}function HMe(e,t,n){if(nte(e.axis))return;function i(s,l,c){var u=zu(t[l]),d=zu(t[c]);if(!(!u||!d)){if(s===!1||u.suggestIgnore){qk(u.label);return}if(d.suggestIgnore){qk(d.label);return}var f=.1;if(!n){var h=[0,0,0,0];u=C5({marginForce:h},u),d=C5({marginForce:h},d)}pP(u,d,null,{touchThreshold:f})&&qk(s?d.label:u.label)}}var r=e.get(["axisLabel","showMinLabel"]),o=e.get(["axisLabel","showMaxLabel"]),a=t.length;i(r,0,1),i(o,a-1,a-2)}function ZMe(e,t,n){e.showMinorTicks||Z(t,function(i){if(i&&i.label.ignore)for(var r=0;r<n.length;r++){var o=n[r],a=Fte(o),s=bx(i.label);if(a.tickValue!=null&&!a.onBand&&a.tickValue===s.tickValue){qk(o);return}}})}function qk(e){e&&(e.ignore=!0)}function Gte(e,t,n,i,r){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var c=e[l].coord;a[0]=c,a[1]=0,s[0]=c,s[1]=n,t&&(sa(a,a,t),sa(s,s,t));var u=new ku({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});ux(u.shape,u.style.lineWidth),u.anid=r+"_"+e[l].tickValue,o.push(u);var d=Fte(u);d.onBand=!!e[l].onBand,d.tickValue=e[l].tickValue}return o}function GMe(e,t,n,i){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");if(a==="auto"&&(a=!0,e.raw.axisTickAutoShow!=null&&(a=!!e.raw.axisTickAutoShow)),!a||r.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=e.tickDirection*o.get("length"),c=r.getTicksCoords(),u=Gte(c,n.transform,l,Pt(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<u.length;d++)t.add(u[d]);return u}function WMe(e,t,n,i,r){var o=i.axis,a=i.getModel("minorTick");if(!(!e.showMinorTicks||o.scale.isBlank())){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),c=r*a.get("length"),u=Pt(l.getLineStyle(),Pt(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),d=0;d<s.length;d++)for(var f=Gte(s[d],n.transform,c,u,"minorticks_"+d),h=0;h<f.length;h++)t.add(f[h])}}function pY(e,t,n){if(Wte(e)){var i=e.axisLabelsCreationContext,r=i.out.noPxChangeTryDetermine;if(n.noPxChange){for(var o=!0,a=0;a<r.length;a++)o=o&&r[a]();if(o)return!1}r.length&&(t.remove(e.labelGroup),L5(e,null,null,null))}return!0}function YMe(e,t,n,i,r,o){var a=r.axis,s=t2(e.raw.axisLabelShow,r.get(["axisLabel","show"])),l=new Jn;n.add(l);var c=E2(i);if(!s||a.scale.isBlank()){L5(t,[],l,c);return}var u=r.getModel("axisLabel"),d=a.getViewLabels(c),f=(t2(e.raw.labelRotate,u.get("rotate"))||0)*pu/180,h=Ol.innerTextLayout(e.rotation,f,e.labelDirection),p=r.getCategories&&r.getCategories(!0),g=[],v=r.get("triggerEvent"),m=1/0,y=-1/0;Z(d,function(x,_){var S,$=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(x.tickValue):x.tickValue,C=x.formattedLabel,w=x.rawLabel,z=u;if(p&&p[$]){var A=p[$];gt(A)&&A.textStyle&&(z=new Vn(A.textStyle,u,r.ecModel))}var M=z.getTextColor()||r.get(["axisLine","lineStyle","color"]),T=z.getShallow("align",!0)||h.textAlign,k=pt(z.getShallow("alignMinLabel",!0),T),I=pt(z.getShallow("alignMaxLabel",!0),T),D=z.getShallow("verticalAlign",!0)||z.getShallow("baseline",!0)||h.textVerticalAlign,E=pt(z.getShallow("verticalAlignMinLabel",!0),D),N=pt(z.getShallow("verticalAlignMaxLabel",!0),D),F=10+(((S=x.time)===null||S===void 0?void 0:S.level)||0);m=Math.min(m,F),y=Math.max(y,F);var G=new pi({x:0,y:0,rotation:0,silent:Ol.isLabelSilent(r),z2:F,style:Ts(z,{text:C,align:_===0?k:_===d.length-1?I:T,verticalAlign:_===0?E:_===d.length-1?N:D,fill:_t(M)?M(a.type==="category"?w:a.type==="value"?$+"":$,_):M})});G.anid="label_"+$;var P=bx(G);if(P.break=x.break,P.tickValue=$,P.layoutRotation=h.rotation,Ax({el:G,componentModel:r,itemName:C,formatterParamsExtra:{isTruncated:function(){return G.isTruncated},value:w,tickIndex:_}}),v){var O=Ol.makeAxisEventDataBase(r);O.targetType="axisLabel",O.value=w,O.tickIndex=_,x.break&&(O.break={start:x.break.parsedBreak.vmin,end:x.break.parsedBreak.vmax}),a.type==="category"&&(O.dataIndex=$),Ut(G).eventData=O,x.break&&JMe(r,o,G,x.break)}g.push(G),l.add(G)});var b=Ye(g,function(x){return{label:x,priority:bx(x).break?x.z2+(y-m+1):x.z2,defaultAttr:{ignore:x.ignore}}});L5(t,b,l,c)}function Wte(e){return!!e.labelLayoutList}function L5(e,t,n,i){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=i}function XMe(e,t,n,i){var r=t.get(["axisLabel","margin"]);Z(n,function(o,a){var s=zu(o);if(s){var l=s.label,c=bx(l);s.suggestIgnore=l.ignore,l.ignore=!1,NN(kl,KMe),kl.x=t.axis.dataToCoord(c.tickValue),kl.y=e.labelOffset+e.labelDirection*r,kl.rotation=c.layoutRotation,i.add(kl),kl.updateTransform(),i.remove(kl),kl.decomposeTransform(),NN(l,kl),l.markRedraw(),P2(s,!0),zu(s)}})}var kl=new si,KMe=new si;function _P(e){return!!e}function JMe(e,t,n,i){n.on("click",function(r){var o={type:PMe,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};o[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(o)})}function U2(e,t,n){n=n||{};var i=t.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,l=i.dim,c=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,f=l==="x"?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(o){var h=o.toGlobalCoord(o.dataToCoord(0));f[u.onZero]=Math.max(Math.min(h,f[1]),f[0])}r.position=[l==="y"?f[u[s]]:c[0],l==="x"?f[u[s]]:c[3]],r.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};r.labelDirection=r.tickDirection=r.nameDirection=p[a],r.labelOffset=o?f[u[a]]-f[u.onZero]:0,t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),t2(n.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var g=t.get(["axisLabel","rotate"]);return r.labelRotate=s==="top"?-g:g,r.z2=1,r}function QMe(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function mY(e){var t={xAxisModel:null,yAxisModel:null};return Z(t,function(n,i){var r=i.replace(/Model$/,""),o=e.getReferringComponents(r,ia).models[0];t[i]=o}),t}function eCe(e,t,n,i,r,o){for(var a=U2(e,n),s=!1,l=!1,c=0;c<t.length;c++)_5(t[c].getOtherAxis(n.axis).scale)&&(s=l=!0,n.axis.type==="category"&&n.axis.onBand&&(l=!1));return a.axisLineAutoShow=s,a.axisTickAutoShow=l,a.defaultNameMoveOverlap=o,new Ol(n,i,a,r)}function tCe(e,t,n){var i=U2(t,n);e.updateCfg(i)}function Yte(e,t,n){var i=Cu.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,{expandToNicedExtent:!0}),a=r.length-1,s=i.getInterval.call(n),l=tte(e,t),c=l.extent,u=l.fixMin,d=l.fixMax;e.type==="log"&&(c=S5(e.base,c,!0)),e.setBreaksFromOption(ite(t)),e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:a,fixMin:u,fixMax:d});var f=i.getExtent.call(e);u&&(c[0]=f[0]),d&&(c[1]=f[1]);var h=i.getInterval.call(e),p=c[0],g=c[1];if(u&&d)h=(g-p)/a;else if(u)for(g=c[0]+h*a;g<c[1]&&isFinite(g)&&isFinite(c[1]);)h=IO(h),g=c[0]+h*a;else if(d)for(p=c[1]-h*a;p>c[0]&&isFinite(p)&&isFinite(c[0]);)h=IO(h),p=c[1]-h*a;else{var v=e.getTicks().length-1;v>a&&(h=IO(h));var m=h*a;g=Math.ceil(c[1]/h)*h,p=or(g-m),p<0&&c[0]>=0?(p=0,g=or(m)):g>0&&c[1]<=0&&(g=0,p=-or(m))}var y=(r[0].value-o[0].value)/s,b=(r[a].value-o[a].value)/s;i.setExtent.call(e,p+h*y,g+h*b),i.setInterval.call(e,h),(y||b)&&i.setNiceExtent.call(e,p+h,g-h)}var gY=[[3,1],[0,2]],nCe=(function(){function e(t,n,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=R5,this._initCartesian(t,n,i),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var i=this._axesMap;this._updateScale(t,this.model);function r(a){var s,l=hn(a),c=l.length;if(c){for(var u=[],d=c-1;d>=0;d--){var f=+l[d],h=a[f],p=h.model,g=h.scale;_5(g)&&p.get("alignTicks")&&p.get("interval")==null?u.push(h):(OW(g,p),_5(g)&&(s=h))}u.length&&(s||(s=u.pop(),OW(s.scale,s.model)),Z(u,function(v){Yte(v.scale,v.model,s.scale)}))}}r(i.x),r(i.y);var o={};Z(i.x,function(a){vY(i,"y",a,o)}),Z(i.y,function(a){vY(i,"x",a,o)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,i){var r=Ix(t,n),o=this._rect=Hl(t.getBoxLayoutParams(),r.refContainer),a=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(Xte(a,o),!i){var c=rCe(o,s,a,l,n),u=void 0;if(l)u=xY(o.clone(),"axisLabel",null,o,a,c,r);else{var d=oCe(t,o,r),f=d.outerBoundsRect,h=d.parsedOuterBoundsContain,p=d.outerBoundsClamp;f&&(u=xY(f,h,p,o,a,c,r))}Kte(o,a,Da.determine,null,u,r)}Z(this._coordsList,function(g){g.calcAffineTransform()})},e.prototype.getAxis=function(t,n){var i=this._axesMap[t];if(i!=null)return i[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var i="x"+t+"y"+n;return this._coordsMap[i]}gt(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,o=this._coordsList;r<o.length;r++)if(o[r].getAxis("x").index===t||o[r].getAxis("y").index===n)return o[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,n,i){var r=this._findConvertTarget(n);return r.cartesian?r.cartesian.dataToPoint(i):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(i)):null},e.prototype.convertFromPixel=function(t,n,i){var r=this._findConvertTarget(n);return r.cartesian?r.cartesian.pointToData(i):r.axis?r.axis.coordToData(r.axis.toLocalCoord(i)):null},e.prototype._findConvertTarget=function(t){var n=t.seriesModel,i=t.xAxisModel||n&&n.getReferringComponents("xAxis",ia).models[0],r=t.yAxisModel||n&&n.getReferringComponents("yAxis",ia).models[0],o=t.gridModel,a=this._coordsList,s,l;if(n)s=n.coordinateSystem,Zt(a,s)<0&&(s=null);else if(i&&r)s=this.getCartesian(i.componentIndex,r.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(r)l=this.getAxis("y",r.componentIndex);else if(o){var c=o.coordinateSystem;c===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var n=this._coordsList[0];if(n)return n.containPoint(t)},e.prototype._initCartesian=function(t,n,i){var r=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",c("x"),this),n.eachComponent("yAxis",c("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,Z(s.x,function(u,d){Z(s.y,function(f,h){var p="x"+d+"y"+h,g=new OMe(p);g.master=r,g.model=t,r._coordsMap[p]=g,r._coordsList.push(g),g.addAxis(u),g.addAxis(f)})});function c(u){return function(d,f){if(FO(d,t)){var h=d.get("position");u==="x"?h!=="top"&&h!=="bottom"&&(h=a.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=a.left?"right":"left"),a[h]=!0;var p=new NMe(u,Jke(d),[0,0],d.get("type"),h),g=p.type==="category";p.onBand=g&&d.get("boundaryGap"),p.inverse=d.get("inverse"),d.axis=p,p.model=d,p.grid=o,p.index=f,o._axesList.push(p),s[u][f]=p,l[u]++}}}},e.prototype._updateScale=function(t,n){Z(this._axesList,function(r){if(r.scale.setExtent(1/0,-1/0),r.type==="category"){var o=r.model.get("categorySortInfo");r.scale.setSortInfo(o)}}),t.eachSeries(function(r){if(QMe(r)){var o=mY(r),a=o.xAxisModel,s=o.yAxisModel;if(!FO(a,n)||!FO(s,n))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),c=r.getData(),u=l.getAxis("x"),d=l.getAxis("y");i(c,u),i(c,d)}},this);function i(r,o){Z(e2e(r,o.dim),function(a){o.scale.unionExtentFromData(r,a)})}},e.prototype.getTooltipAxes=function(t){var n=[],i=[];return Z(this.getCartesians(),function(r){var o=t!=null&&t!=="auto"?r.getAxis(t):r.getBaseAxis(),a=r.getOtherAxis(o);Zt(n,o)<0&&n.push(o),Zt(i,a)<0&&i.push(a)}),{baseAxes:n,otherAxes:i}},e.create=function(t,n){var i=[];return t.eachComponent("grid",function(r,o){var a=new e(r,t,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)}),t.eachSeries(function(r){sSe({targetModel:r,coordSysType:"cartesian2d",coordSysProvider:o});function o(){var a=mY(r),s=a.xAxisModel,l=a.yAxisModel,c=s.getCoordSysModel(),u=c.coordinateSystem;return u.getCartesian(s.componentIndex,l.componentIndex)}}),i},e.dimensions=R5,e})();function FO(e,t){return e.getCoordSysModel()===t}function vY(e,t,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var r=e[t],o,a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)yY(r[l])&&(o=r[l]);else for(var c in r)if(r.hasOwnProperty(c)&&yY(r[c])&&!i[u(r[c])]){o=r[c];break}o&&(i[u(o)]=!0);function u(d){return d.dim+"_"+d.index}}function yY(e){return e&&e.type!=="category"&&e.type!=="time"&&Qke(e)}function iCe(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord=e.dim==="x"?function(r){return r+t}:function(r){return i-r+t},e.toLocalCoord=e.dim==="x"?function(r){return r-t}:function(r){return i-r+t}}function Xte(e,t){Z(e.x,function(n){return bY(n,t.x,t.width)}),Z(e.y,function(n){return bY(n,t.y,t.height)})}function bY(e,t,n){var i=[0,n],r=e.inverse?1:0;e.setExtent(i[r],i[1-r]),iCe(e,t)}function xY(e,t,n,i,r,o,a){Kte(i,r,Da.estimate,t,!1,a);var s=[0,0,0,0];c(0),c(1),u(i,0,NaN),u(i,1,NaN);var l=NK(s,function(f){return f>0})==null;return _2(i,s,!0,!0,n),Xte(r,i),l;function c(f){Z(r[hu[f]],function(h){if(vx(h.model)){var p=o.ensureRecord(h.model),g=p.labelInfoList;if(g)for(var v=0;v<g.length;v++){var m=g[v],y=h.scale.normalize(bx(m.label).tickValue);y=f===1?1-y:y,u(m.rect,f,y),u(m.rect,1-f,NaN)}var b=p.nameLayout;if(b){var y=Fm(p.nameLocation)?.5:NaN;u(b.rect,f,y),u(b.rect,1-f,NaN)}}})}function u(f,h,p){var g=e[hu[h]]-f[hu[h]],v=f[jm[h]]+f[hu[h]]-(e[jm[h]]+e[hu[h]]);g=d(g,1-p),v=d(v,p);var m=gY[h][0],y=gY[h][1];s[m]=So(s[m],g),s[y]=So(s[y],v)}function d(f,h){return f>0&&!ox(h)&&h>1e-4&&(f/=h),f}}function rCe(e,t,n,i,r){var o=new qte(aCe);return Z(n,function(a){return Z(a,function(s){if(vx(s.model)){var l=!i;s.axisBuilder=eCe(e,t,s.model,r,o,l)}})}),o}function Kte(e,t,n,i,r,o){var a=n===Da.determine;Z(t,function(c){return Z(c,function(u){vx(u.model)&&(tCe(u.axisBuilder,e,u.model),u.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:r}))})});var s={x:0,y:0};l(0),l(1);function l(c){s[hu[1-c]]=e[jm[c]]<=o.refContainer[jm[c]]*.5?0:1-c===1?2:1}Z(t,function(c,u){return Z(c,function(d){vx(d.model)&&((i==="all"||a)&&d.axisBuilder.build({axisName:!0},{nameMarginLevel:s[u]}),a&&d.axisBuilder.build({axisLine:!0}))})})}function oCe(e,t,n){var i,r=e.get("outerBoundsMode",!0);r==="same"?i=t.clone():(r==null||r==="auto")&&(i=Hl(e.get("outerBounds",!0)||jte,n.refContainer));var o=e.get("outerBoundsContain",!0),a;o==null||o==="auto"||Zt(["all","axisLabel"],o)<0?a="all":a=o;var s=[jN(pt(e.get("outerBoundsClampWidth",!0),j2[0]),t.width),jN(pt(e.get("outerBoundsClampHeight",!0),j2[1]),t.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:a,outerBoundsClamp:s}}var aCe=function(e,t,n,i,r,o){var a=n.axis.dim==="x"?"y":"x";Vte(e,t,n,i,r,o),Fm(e.nameLocation)||Z(t.recordMap[a],function(s){s&&s.labelInfoList&&s.dirVec&&Zte(s.labelInfoList,s.dirVec,i,r)})};function sCe(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return lCe(n,e,t),n.seriesInvolved&&uCe(n,e),n}function lCe(e,t,n){var i=t.getComponent("tooltip"),r=t.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];Z(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=xx(s.model),c=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var u=s.model,d=u.getModel("tooltip",i);if(Z(s.getAxes(),ai(g,!1,null)),s.getTooltipAxes&&i&&d.get("show")){var f=d.get("trigger")==="axis",h=d.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(d.get(["axisPointer","axis"]));(f||h)&&Z(p.baseAxes,ai(g,h?"cross":!0,f)),h&&Z(p.otherAxes,ai(g,"cross",!1))}function g(v,m,y){var b=y.model.getModel("axisPointer",r),x=b.get("show");if(!(!x||x==="auto"&&!v&&!E5(b))){m==null&&(m=b.get("triggerTooltip")),b=v?cCe(y,d,r,t,v,m):b;var _=b.get("snap"),S=b.get("triggerEmphasis"),$=xx(y.model),C=m||_||y.type==="category",w=e.axesInfo[$]={key:$,axis:y,coordSys:s,axisPointerModel:b,triggerTooltip:m,triggerEmphasis:S,involveSeries:C,snap:_,useHandle:E5(b),seriesModels:[],linkGroup:null};c[$]=w,e.seriesInvolved=e.seriesInvolved||C;var z=dCe(o,y);if(z!=null){var A=a[z]||(a[z]={axesInfo:{}});A.axesInfo[$]=w,A.mapper=o[z].mapper,w.linkGroup=A}}}})}function cCe(e,t,n,i,r,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Z(s,function(f){l[f]=Ht(a.get(f))}),l.snap=e.type!=="category"&&!!o,a.get("type")==="cross"&&(l.type="line");var c=l.label||(l.label={});if(c.show==null&&(c.show=!1),r==="cross"){var u=a.get(["label","show"]);if(c.show=u??!0,!o){var d=l.lineStyle=a.get("crossStyle");d&&Pt(c,d.textStyle)}}return e.model.getModel("axisPointer",new Vn(l,n,i))}function uCe(e,t){t.eachSeries(function(n){var i=n.coordinateSystem,r=n.get(["tooltip","trigger"],!0),o=n.get(["tooltip","show"],!0);!i||!i.model||r==="none"||r===!1||r==="item"||o===!1||n.get(["axisPointer","show"],!0)===!1||Z(e.coordSysAxesInfo[xx(i.model)],function(a){var s=a.axis;i.getAxis(s.dim)===s&&(a.seriesModels.push(n),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=n.getData().count())})})}function dCe(e,t){for(var n=t.model,i=t.dim,r=0;r<e.length;r++){var o=e[r]||{};if(qO(o[i+"AxisId"],n.id)||qO(o[i+"AxisIndex"],n.componentIndex)||qO(o[i+"AxisName"],n.name))return r}}function qO(e,t){return e==="all"||Ne(e)&&Zt(e,t)>=0||e===t}function hCe(e){var t=SP(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");a!=null&&(a=i.parse(a));var s=E5(n);o==null&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=t.axis.scale.isBlank()?"hide":"show")}}function SP(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[xx(e)]}function fCe(e){var t=SP(e);return t&&t.axisPointerModel}function E5(e){return!!e.get(["handle","show"])}function xx(e){return e.type+"||"+e.id}var _Y={},Jte=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,i,r,o){this.axisPointerClass&&hCe(n),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,r,!0)},t.prototype.updateAxisPointer=function(n,i,r,o){this._doUpdateAxisPointerClass(n,r,!1)},t.prototype.remove=function(n,i){var r=this._axisPointer;r&&r.remove(i)},t.prototype.dispose=function(n,i){this._disposeAxisPointer(i),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(n,i,r){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=fCe(n);a?(this._axisPointer||(this._axisPointer=new o)).render(n,a,i,r):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},t.registerAxisPointerClass=function(n,i){_Y[n]=i},t.getAxisPointerClass=function(n){return n&&_Y[n]},t.type="axis",t})(wo),D5=fn();function pCe(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),c=r.getTicksCoords({tickModel:o,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(c.length){var u=s.length,d=D5(e).splitAreaColors,f=Nt(),h=0;if(d)for(var p=0;p<c.length;p++){var g=d.get(c[p].tickValue);if(g!=null){h=(g+(u-1)*p)%u;break}}var v=r.toGlobalCoord(c[0].coord),m=a.getAreaStyle();s=Ne(s)?s:[s];for(var p=1;p<c.length;p++){var y=r.toGlobalCoord(c[p].coord),b=void 0,x=void 0,_=void 0,S=void 0;r.isHorizontal()?(b=v,x=l.y,_=y-b,S=l.height,v=b+_):(b=l.x,x=v,_=l.width,S=y-x,v=x+S);var $=c[p-1].tickValue;$!=null&&f.set($,h),t.add(new si({anid:$!=null?"area_"+$:null,shape:{x:b,y:x,width:_,height:S},style:Pt({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%u}D5(e).splitAreaColors=f}}}function mCe(e){D5(e).splitAreaColors=null}var gCe=["splitArea","splitLine","minorSplitLine","breakArea"],Qte=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return t.prototype.render=function(n,i,r,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new Jn,this.group.add(this._axisGroup),!!vx(n)){this._axisGroup.add(n.axis.axisBuilder.group),Z(gCe,function(l){n.get([l,"show"])&&vCe[l](this,this._axisGroup,n,n.getCoordSysModel(),r)},this);var s=o&&o.type==="changeAxisOrder"&&o.isInitSort;s||nQ(a,this._axisGroup,n),e.prototype.render.call(this,n,i,r,o)}},t.prototype.remove=function(){mCe(this)},t.type="cartesianAxis",t})(Jte),vCe={splitLine:function(e,t,n,i,r){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),c=a.get("showMinLine")!==!1,u=a.get("showMaxLine")!==!1;l=Ne(l)?l:[l];for(var d=i.coordinateSystem.getRect(),f=o.isHorizontal(),h=0,p=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],v=[],m=s.getLineStyle(),y=0;y<p.length;y++){var b=o.toGlobalCoord(p[y].coord);if(!(y===0&&!c||y===p.length-1&&!u)){var x=p[y].tickValue;f?(g[0]=b,g[1]=d.y,v[0]=b,v[1]=d.y+d.height):(g[0]=d.x,g[1]=b,v[0]=d.x+d.width,v[1]=b);var _=h++%l.length,S=new ku({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},style:Pt({stroke:l[_]},m),silent:!0});ux(S.shape,m.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,i,r){var o=n.axis,a=n.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=i.coordinateSystem.getRect(),c=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var d=[],f=[],h=s.getLineStyle(),p=0;p<u.length;p++)for(var g=0;g<u[p].length;g++){var v=o.toGlobalCoord(u[p][g].coord);c?(d[0]=v,d[1]=l.y,f[0]=v,f[1]=l.y+l.height):(d[0]=l.x,d[1]=v,f[0]=l.x+l.width,f[1]=v);var m=new ku({anid:"minor_line_"+u[p][g].tickValue,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},style:h,silent:!0});ux(m.shape,h.lineWidth),t.add(m)}},splitArea:function(e,t,n,i,r){pCe(e,t,n,i)},breakArea:function(e,t,n,i,r){n.axis.scale}},ene=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="xAxis",t})(Qte),yCe=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=ene.type,n}return t.type="yAxis",t})(Qte),bCe=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="grid",n}return t.prototype.render=function(n,i){this.group.removeAll(),n.get("show")&&this.group.add(new si({shape:n.coordinateSystem.getRect(),style:Pt({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(wo),SY={offset:0};function tne(e){e.registerComponentView(bCe),e.registerComponentModel(zMe),e.registerCoordinateSystem("cartesian2d",nCe),uY(e,"x",I5,SY),uY(e,"y",I5,SY),e.registerComponentView(ene),e.registerComponentView(yCe),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function xCe(e){As(tne),e.registerSeriesModel($Me),e.registerChartView(CMe),e.registerLayout(yP("scatter"))}function _Ce(e){e.eachSeriesByType("radar",function(t){var n=t.getData(),i=[],r=t.coordinateSystem;if(r){var o=r.getIndicatorAxes();Z(o,function(a,s){n.each(n.mapDimension(o[s].dim),function(l,c){i[c]=i[c]||[];var u=r.dataToPoint(l,s);i[c][s]=$Y(u)?u:wY(r)})}),n.each(function(a){var s=NK(i[a],function(l){return $Y(l)})||wY(r);i[a].push(s.slice()),n.setItemLayout(a,i[a])})}})}function $Y(e){return!isNaN(e[0])&&!isNaN(e[1])}function wY(e){return[e.cx,e.cy]}function SCe(e){var t=e.polar;if(t){Ne(t)||(t=[t]);var n=[];Z(t,function(i,r){i.indicator?(i.type&&!i.shape&&(i.shape=i.type),e.radar=e.radar||[],Ne(e.radar)||(e.radar=[e.radar]),e.radar.push(i)):n.push(i)}),e.polar=n}Z(e.series,function(i){i&&i.type==="radar"&&i.polarIndex&&(i.radarIndex=i.polarIndex)})}var $Ce=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,i,r){var o=n.coordinateSystem,a=this.group,s=n.getData(),l=this._data;function c(f,h){var p=f.getItemVisual(h,"symbol")||"circle";if(p!=="none"){var g=dee(f.getItemVisual(h,"symbolSize")),v=Mu(p,-1,-1,2,2),m=f.getItemVisual(h,"symbolRotate")||0;return v.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:m*Math.PI/180||0}),v}}function u(f,h,p,g,v,m){p.removeAll();for(var y=0;y<h.length-1;y++){var b=c(g,v);b&&(b.__dimIdx=y,f[y]?(b.setPosition(f[y]),sQ[m?"initProps":"updateProps"](b,{x:h[y][0],y:h[y][1]},n,v)):b.setPosition(h[y]),p.add(b))}}function d(f){return Ye(f,function(h){return[o.cx,o.cy]})}s.diff(l).add(function(f){var h=s.getItemLayout(f);if(h){var p=new Tx,g=new Ih,v={shape:{points:h}};p.shape.points=d(h),g.shape.points=d(h),ji(p,v,n,f),ji(g,v,n,f);var m=new Jn,y=new Jn;m.add(g),m.add(p),m.add(y),u(g.shape.points,h,y,s,f,!0),s.setItemGraphicEl(f,m)}}).update(function(f,h){var p=l.getItemGraphicEl(h),g=p.childAt(0),v=p.childAt(1),m=p.childAt(2),y={shape:{points:s.getItemLayout(f)}};y.shape.points&&(u(g.shape.points,y.shape.points,m,s,f,!1),Pm(v),Pm(g),ci(g,y,n),ci(v,y,n),s.setItemGraphicEl(f,p))}).remove(function(f){a.remove(l.getItemGraphicEl(f))}).execute(),s.eachItemGraphicEl(function(f,h){var p=s.getItemModel(h),g=f.childAt(0),v=f.childAt(1),m=f.childAt(2),y=s.getItemVisual(h,"style"),b=y.fill;a.add(f),g.useStyle(Pt(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:b})),Ch(g,p,"lineStyle"),Ch(v,p,"areaStyle");var x=p.getModel("areaStyle"),_=x.isEmpty()&&x.parentModel.isEmpty();v.ignore=_,Z(["emphasis","select","blur"],function($){var C=p.getModel([$,"areaStyle"]),w=C.isEmpty()&&C.parentModel.isEmpty();v.ensureState($).ignore=w&&_;var z=p.getModel([$,"lineStyle"]).getLineStyle();g.ensureState($).style=z;var A=C.getAreaStyle();v.ensureState($).style=A;var M=p.getModel([$,"itemStyle"]).getItemStyle();m.eachChild(function(T){T.ensureState($).style=Ht(M)})}),v.useStyle(Pt(p.getModel("areaStyle").getAreaStyle(),{fill:b,opacity:.7,decal:y.decal}));var S=p.getModel("emphasis");m.eachChild(function($){if($ instanceof Na){var C=$.style;$.useStyle(ke({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},y))}else $.useStyle(y),$.setColor(b),$.style.strokeNoScale=!0;var w=s.getStore().get(s.getDimensionIndex($.__dimIdx),h);(w==null||isNaN(w))&&(w=""),eg($,tg(p),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:$.__dimIdx,defaultText:w,inheritColor:b,defaultOpacity:y.opacity})}),wu(f,S.get("focus"),S.get("blurScope"),S.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t})(vr),wCe=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ote(Qt(this.getData,this),Qt(this.getRawData,this))},t.prototype.getInitialData=function(n,i){return bP(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(n,i,r){var o=this.getData(),a=this.coordinateSystem,s=a.getIndicatorAxes(),l=this.getData().getName(n),c=l===""?this.name:l,u=eee(this,n);return Th("section",{header:c,sortBlocks:!0,blocks:Ye(s,function(d){var f=o.get(o.mapDimension(d.dim),n);return Th("nameValue",{markerType:"subItem",markerColor:u,name:d.name,value:f,sortParam:f})})})},t.prototype.getTooltipPosition=function(n){if(n!=null){for(var i=this.getData(),r=this.coordinateSystem,o=i.getValues(Ye(r.dimensions,function(c){return i.mapDimension(c)}),n),a=0,s=o.length;a<s;a++)if(!isNaN(o[a])){var l=r.getIndicatorAxes();return r.coordToPoint(l[a].dataToCoord(o[a]),a)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t})(Er),Cb=Bte.value;function _k(e,t){return Pt({show:t},e)}var kCe=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var n=this.get("boundaryGap"),i=this.get("splitNumber"),r=this.get("scale"),o=this.get("axisLine"),a=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),c=this.get(["axisName","show"]),u=this.get(["axisName","formatter"]),d=this.get("axisNameGap"),f=this.get("triggerEvent"),h=Ye(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=l;p.color!=null&&(g=Pt({color:p.color},l));var v=an(Ht(p),{boundaryGap:n,splitNumber:i,scale:r,axisLine:o,axisTick:a,axisLabel:s,name:p.text,showName:c,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:f},!1);if(rt(u)){var m=v.name;v.name=u.replace("{value}",m??"")}else _t(u)&&(v.name=u(v.name,v));var y=new Vn(v,null,this.ecModel);return da(y,rte.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:nt.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:an({lineStyle:{color:nt.color.neutral20}},Cb.axisLine),axisLabel:_k(Cb.axisLabel,!1),axisTick:_k(Cb.axisTick,!1),splitLine:_k(Cb.splitLine,!0),splitArea:_k(Cb.splitArea,!0),indicator:[]},t})(dn),MCe=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,i,r){var o=this.group;o.removeAll(),this._buildAxes(n,r),this._buildSplitLineAndArea(n)},t.prototype._buildAxes=function(n,i){var r=n.coordinateSystem,o=r.getIndicatorAxes(),a=Ye(o,function(s){var l=s.model.get("showName")?s.name:"",c=new Ol(s.model,i,{axisName:l,position:[r.cx,r.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return c});Z(a,function(s){s.build(),this.group.add(s.group)},this)},t.prototype._buildSplitLineAndArea=function(n){var i=n.coordinateSystem,r=i.getIndicatorAxes();if(!r.length)return;var o=n.get("shape"),a=n.getModel("splitLine"),s=n.getModel("splitArea"),l=a.getModel("lineStyle"),c=s.getModel("areaStyle"),u=a.get("show"),d=s.get("show"),f=l.get("color"),h=c.get("color"),p=Ne(f)?f:[f],g=Ne(h)?h:[h],v=[],m=[];function y(I,D,E){var N=E%D.length;return I[N]=I[N]||[],N}if(o==="circle")for(var b=r[0].getTicksCoords(),x=i.cx,_=i.cy,S=0;S<b.length;S++){if(u){var $=y(v,p,S);v[$].push(new zx({shape:{cx:x,cy:_,r:b[S].coord}}))}if(d&&S<b.length-1){var $=y(m,g,S);m[$].push(new lM({shape:{cx:x,cy:_,r0:b[S].coord,r:b[S+1].coord}}))}}else for(var C,w=Ye(r,function(D,E){var N=D.getTicksCoords();return C=C==null?N.length-1:Math.min(N.length-1,C),Ye(N,function(F){return i.coordToPoint(F.coord,E)})}),z=[],S=0;S<=C;S++){for(var A=[],M=0;M<r.length;M++)A.push(w[M][S]);if(A[0]&&A.push(A[0].slice()),u){var $=y(v,p,S);v[$].push(new Ih({shape:{points:A}}))}if(d&&z){var $=y(m,g,S-1);m[$].push(new Tx({shape:{points:A.concat(z)}}))}z=A.slice().reverse()}var T=l.getLineStyle(),k=c.getAreaStyle();Z(m,function(I,D){this.group.add(QN(I,{style:Pt({stroke:"none",fill:g[D%g.length]},k),silent:!0}))},this),Z(v,function(I,D){this.group.add(QN(I,{style:Pt({fill:"none",stroke:p[D%p.length]},T),silent:!0}))},this)},t.type="radar",t})(wo),CCe=(function(e){ze(t,e);function t(n,i,r){var o=e.call(this,n,i,r)||this;return o.type="value",o.angle=0,o.name="",o}return t})(hte),zCe=(function(){function e(t,n,i){this.dimensions=[],this._model=t,this._indicatorAxes=Ye(t.getIndicatorModels(),function(r,o){var a="indicator_"+o,s=new CCe(a,new Cu);return s.name=r.get("name"),s.model=r,r.axis=s,this.dimensions.push(a),s},this),this.resize(t,i)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,n){var i=this._indicatorAxes[n];return this.coordToPoint(i.dataToCoord(t),n)},e.prototype.coordToPoint=function(t,n){var i=this._indicatorAxes[n],r=i.angle,o=this.cx+t*Math.cos(r),a=this.cy-t*Math.sin(r);return[o,a]},e.prototype.pointToData=function(t){var n=t[0]-this.cx,i=t[1]-this.cy,r=Math.sqrt(n*n+i*i);n/=r,i/=r;for(var o=Math.atan2(-i,n),a=1/0,s,l=-1,c=0;c<this._indicatorAxes.length;c++){var u=this._indicatorAxes[c],d=Math.abs(o-u.angle);d<a&&(s=u,l=c,a=d)}return[l,+(s&&s.coordToData(r))]},e.prototype.resize=function(t,n){var i=Ix(t,n).refContainer,r=t.get("center"),o=Math.min(i.width,i.height)/2;this.cx=tn(r[0],i.width)+i.x,this.cy=tn(r[1],i.height)+i.y,this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");(rt(a)||bn(a))&&(a=[0,a]),this.r0=tn(a[0],o),this.r=tn(a[1],o),Z(this._indicatorAxes,function(s,l){s.setExtent(this.r0,this.r);var c=this.startAngle+l*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),s.angle=c},this)},e.prototype.update=function(t,n){var i=this._indicatorAxes,r=this._model;Z(i,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==r)){var c=s.getData();Z(i,function(u){u.scale.unionExtentFromData(c,c.mapDimension(u.dim))})}},this);var o=r.get("splitNumber"),a=new Cu;a.setExtent(0,o),a.setInterval(1),Z(i,function(s,l){Yte(s.scale,s.model,a)})},e.prototype.convertToPixel=function(t,n,i){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,n,i){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,n){var i=[];return t.eachComponent("radar",function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o}),t.eachSeriesByType("radar",function(r){r.get("coordinateSystem")==="radar"&&(r.coordinateSystem=i[r.get("radarIndex")||0])}),i},e.dimensions=[],e})();function nne(e){e.registerCoordinateSystem("radar",zCe),e.registerComponentModel(kCe),e.registerComponentView(MCe),e.registerVisual({seriesType:"radar",reset:function(t){var n=t.getData();n.each(function(i){n.setItemVisual(i,"legendIcon","roundRect")}),n.setVisual("legendIcon","roundRect")}})}function TCe(e){As(nne),e.registerChartView($Ce),e.registerSeriesModel(wCe),e.registerLayout(_Ce),e.registerProcessor(Lte("radar")),e.registerPreprocessor(SCe)}var ACe=(function(){function e(){}return e.prototype._hasEncodeRule=function(t){var n=this.getEncode();return n&&n.get(t)!=null},e.prototype.getInitialData=function(t,n){var i,r=n.getComponent("xAxis",this.get("xAxisIndex")),o=n.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type"),l;a==="category"?(t.layout="horizontal",i=r.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",i=o.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var c=["x","y"],u=t.layout==="horizontal"?0:1,d=this._baseAxisDim=c[u],f=c[1-u],h=[r,o],p=h[u].get("type"),g=h[1-u].get("type"),v=t.data;if(v&&l){var m=[];Z(v,function(x,_){var S;Ne(x)?(S=x.slice(),x.unshift(_)):Ne(x.value)?(S=ke({},x),S.value=S.value.slice(),x.value.unshift(_)):S=x,m.push(S)}),t.data=m}var y=this.defaultValueDimensions,b=[{name:d,type:x5(p),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:x5(g),dimsDef:y.slice()}];return bP(this,{coordDimensions:b,dimensionsCount:y.length+1,encodeDefaulter:ai(LQ,b,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e})(),ICe=["itemStyle","borderColor"],RCe=["itemStyle","borderColor0"],LCe=["itemStyle","borderColorDoji"],ECe=["itemStyle","color"],DCe=["itemStyle","color0"];function $P(e,t){return t.get(e>0?ECe:DCe)}function wP(e,t){return t.get(e===0?LCe:e>0?ICe:RCe)}var OCe={seriesType:"candlestick",plan:Lx(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e)){var n=e.pipelineContext.large;return!n&&{progress:function(i,r){for(var o;(o=i.next())!=null;){var a=r.getItemModel(o),s=r.getItemLayout(o).sign,l=a.getItemStyle();l.fill=$P(s,a),l.stroke=wP(s,a)||l.fill;var c=r.ensureUniqueItemVisual(o,"style");ke(c,l)}}}}}},NCe=["color","borderColor"],PCe=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,i,r){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},t.prototype.incrementalPrepareRender=function(n,i,r){this._clear(),this._updateDrawMode(n)},t.prototype.incrementalRender=function(n,i,r,o){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,i):this._incrementalRenderNormal(n,i)},t.prototype.eachRendered=function(n){Qm(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var i=n.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(n){var i=n.getData(),r=this._data,o=this.group,a=i.getLayout("isSimpleBox"),s=n.get("clip",!0),l=n.coordinateSystem,c=l.getArea&&l.getArea();this._data||o.removeAll(),i.diff(r).add(function(u){if(i.hasValue(u)){var d=i.getItemLayout(u);if(s&&kY(c,d))return;var f=VO(d,u,!0);ji(f,{shape:{points:d.ends}},n,u),HO(f,i,u,a),o.add(f),i.setItemGraphicEl(u,f)}}).update(function(u,d){var f=r.getItemGraphicEl(d);if(!i.hasValue(u)){o.remove(f);return}var h=i.getItemLayout(u);if(s&&kY(c,h)){o.remove(f);return}f?(ci(f,{shape:{points:h.ends}},n,u),Pm(f)):f=VO(h),HO(f,i,u,a),o.add(f),i.setItemGraphicEl(u,f)}).remove(function(u){var d=r.getItemGraphicEl(u);d&&o.remove(d)}).execute(),this._data=i},t.prototype._renderLarge=function(n){this._clear(),MY(n,this.group);var i=n.get("clip",!0)?gP(n.coordinateSystem,!1,n):null;i?this.group.setClipPath(i):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(n,i){for(var r=i.getData(),o=r.getLayout("isSimpleBox"),a;(a=n.next())!=null;){var s=r.getItemLayout(a),l=VO(s);HO(l,r,a,o),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(n,i){MY(i,this.group,this._progressiveEls,!0)},t.prototype.remove=function(n){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t})(vr),jCe=(function(){function e(){}return e})(),UCe=(function(e){ze(t,e);function t(n){var i=e.call(this,n)||this;return i.type="normalCandlestickBox",i}return t.prototype.getDefaultShape=function(){return new jCe},t.prototype.buildPath=function(n,i){var r=i.points;this.__simpleBox?(n.moveTo(r[4][0],r[4][1]),n.lineTo(r[6][0],r[6][1])):(n.moveTo(r[0][0],r[0][1]),n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]),n.lineTo(r[3][0],r[3][1]),n.closePath(),n.moveTo(r[4][0],r[4][1]),n.lineTo(r[5][0],r[5][1]),n.moveTo(r[6][0],r[6][1]),n.lineTo(r[7][0],r[7][1]))},t})(nn);function VO(e,t,n){var i=e.ends;return new UCe({shape:{points:n?BCe(i,e):i},z2:100})}function kY(e,t){for(var n=!0,i=0;i<t.ends.length;i++)if(e.contain(t.ends[i][0],t.ends[i][1])){n=!1;break}return n}function HO(e,t,n,i){var r=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=i,Ch(e,r);var o=t.getItemLayout(n).sign;Z(e.states,function(s,l){var c=r.getModel(l),u=$P(o,c),d=wP(o,c)||u,f=s.style||(s.style={});u&&(f.fill=u),d&&(f.stroke=d)});var a=r.getModel("emphasis");wu(e,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function BCe(e,t){return Ye(e,function(n){return n=n.slice(),n[1]=t.initBaseline,n})}var FCe=(function(){function e(){}return e})(),ZO=(function(e){ze(t,e);function t(n){var i=e.call(this,n)||this;return i.type="largeCandlestickBox",i}return t.prototype.getDefaultShape=function(){return new FCe},t.prototype.buildPath=function(n,i){for(var r=i.points,o=0;o<r.length;)if(this.__sign===r[o++]){var a=r[o++];n.moveTo(a,r[o++]),n.lineTo(a,r[o++])}else o+=3},t})(nn);function MY(e,t,n,i){var r=e.getData(),o=r.getLayout("largePoints"),a=new ZO({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});t.add(a);var s=new ZO({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new ZO({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});t.add(l),GO(1,a,e),GO(-1,s,e),GO(0,l,e),i&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function GO(e,t,n,i){var r=wP(e,n)||$P(e,n),o=n.getModel("itemStyle").getItemStyle(NCe);t.useStyle(o),t.style.fill=null,t.style.stroke=r}var ine=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(n,i,r){var o=i.getItemLayout(n);return o&&r.rect(o.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t})(Er);da(ine,ACe,!0);function qCe(e){!e||!Ne(e.series)||Z(e.series,function(t){gt(t)&&t.type==="k"&&(t.type="candlestick")})}var VCe={seriesType:"candlestick",plan:Lx(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=HCe(e,n),r=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[r])),l=Ye(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),c=l[0],u=l[1],d=l[2],f=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?p:h};function h(g,v){for(var m,y=v.getStore();(m=g.next())!=null;){var b=y.get(s,m),x=y.get(c,m),_=y.get(u,m),S=y.get(d,m),$=y.get(f,m),C=Math.min(x,_),w=Math.max(x,_),z=E(C,b),A=E(w,b),M=E(S,b),T=E($,b),k=[];N(k,A,0),N(k,z,1),k.push(G(T),G(A),G(M),G(z));var I=v.getItemModel(m),D=!!I.get(["itemStyle","borderColorDoji"]);v.setItemLayout(m,{sign:CY(y,m,x,_,u,D),initBaseline:x>_?A[o]:z[o],ends:k,brushRect:F(S,$,b)})}function E(P,O){var V=[];return V[r]=O,V[o]=P,isNaN(O)||isNaN(P)?[NaN,NaN]:t.dataToPoint(V)}function N(P,O,V){var j=O.slice(),H=O.slice();j[r]=Ok(j[r]+i/2,1,!1),H[r]=Ok(H[r]-i/2,1,!0),V?P.push(j,H):P.push(H,j)}function F(P,O,V){var j=E(P,V),H=E(O,V);return j[r]-=i/2,H[r]-=i/2,{x:j[0],y:j[1],width:i,height:H[1]-j[1]}}function G(P){return P[r]=Ok(P[r],1),P}}function p(g,v){for(var m=Ss(g.count*4),y=0,b,x=[],_=[],S,$=v.getStore(),C=!!e.get(["itemStyle","borderColorDoji"]);(S=g.next())!=null;){var w=$.get(s,S),z=$.get(c,S),A=$.get(u,S),M=$.get(d,S),T=$.get(f,S);if(isNaN(w)||isNaN(M)||isNaN(T)){m[y++]=NaN,y+=3;continue}m[y++]=CY($,S,z,A,u,C),x[r]=w,x[o]=M,b=t.dataToPoint(x,null,_),m[y++]=b?b[0]:NaN,m[y++]=b?b[1]:NaN,x[o]=T,b=t.dataToPoint(x,null,_),m[y++]=b?b[1]:NaN}v.setLayout("largePoints",m)}}};function CY(e,t,n,i,r,o){var a;return n>i?a=-1:n<i?a=1:a=o?0:t>0?e.get(r,t-1)<=i?1:-1:1,a}function HCe(e,t){var n=e.getBaseAxis(),i,r=n.type==="category"?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/t.count()),o=tn(pt(e.get("barMaxWidth"),r),r),a=tn(pt(e.get("barMinWidth"),1),r),s=e.get("barWidth");return s!=null?tn(s,r):Math.max(Math.min(r/2,o),a)}function ZCe(e){e.registerChartView(PCe),e.registerSeriesModel(ine),e.registerPreprocessor(qCe),e.registerVisual(OCe),e.registerLayout(VCe)}var zY={color:"fill",borderColor:"stroke"},GCe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Nl=fn(),WCe=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(n,i){return Ex(null,this)},t.prototype.getDataParams=function(n,i,r){var o=e.prototype.getDataParams.call(this,n,i);return r&&(o.info=Nl(r).info),o},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t})(Er);function YCe(e,t){return t=t||[0,0],Ye(["x","y"],function(n,i){var r=this.getAxis(n),o=t[i],a=e[i]/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function XCe(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:Qt(YCe,e)}}}function KCe(e,t){return t=t||[0,0],Ye([0,1],function(n){var i=t[n],r=e[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function JCe(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(n){return e.dataToPoint(n)},size:Qt(KCe,e)}}}function QCe(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function eze(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:Qt(QCe,e)}}}function tze(e,t){return t=t||[0,0],Ye(["Radius","Angle"],function(n,i){var r="get"+n+"Axis",o=this[r](),a=t[i],s=e[i]/2,l=o.type==="category"?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return n==="Angle"&&(l=l*Math.PI/180),l},this)}function nze(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(r){var o=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),s=e.coordToPoint([o,a]);return s.push(o,a*Math.PI/180),s},size:Qt(tze,e)}}}function ize(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(i,r){return e.dataToPoint(i,r)},layout:function(i,r){return e.dataToLayout(i,r)}}}}function rze(e){var t=e.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n,i){return e.dataToPoint(n,i)},layout:function(n,i){return e.dataToLayout(n,i)}}}}function rne(e,t,n,i){return e&&(e.legacy||e.legacy!==!1&&!n&&!i&&t!=="tspan"&&(t==="text"||Ie(e,"text")))}function one(e,t,n){var i=e,r,o,a;if(t==="text")a=i;else{a={},Ie(i,"text")&&(a.text=i.text),Ie(i,"rich")&&(a.rich=i.rich),Ie(i,"textFill")&&(a.fill=i.textFill),Ie(i,"textStroke")&&(a.stroke=i.textStroke),Ie(i,"fontFamily")&&(a.fontFamily=i.fontFamily),Ie(i,"fontSize")&&(a.fontSize=i.fontSize),Ie(i,"fontStyle")&&(a.fontStyle=i.fontStyle),Ie(i,"fontWeight")&&(a.fontWeight=i.fontWeight),o={type:"text",style:a,silent:!0},r={};var s=Ie(i,"textPosition");n?r.position=s?i.textPosition:"inside":s&&(r.position=i.textPosition),Ie(i,"textPosition")&&(r.position=i.textPosition),Ie(i,"textOffset")&&(r.offset=i.textOffset),Ie(i,"textRotation")&&(r.rotation=i.textRotation),Ie(i,"textDistance")&&(r.distance=i.textDistance)}return TY(a,e),Z(a.rich,function(l){TY(l,l)}),{textConfig:r,textContent:o}}function TY(e,t){t&&(t.font=t.textFont||t.font,Ie(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Ie(t,"textAlign")&&(e.align=t.textAlign),Ie(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Ie(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Ie(t,"textWidth")&&(e.width=t.textWidth),Ie(t,"textHeight")&&(e.height=t.textHeight),Ie(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Ie(t,"textPadding")&&(e.padding=t.textPadding),Ie(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Ie(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Ie(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Ie(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Ie(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Ie(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Ie(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function AY(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",n.offset!=null&&(i.textOffset=n.offset),n.rotation!=null&&(i.textRotation=n.rotation),n.distance!=null&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=e.fill||nt.color.neutral99;IY(i,t);var a=i.textFill==null;return r?a&&(i.textFill=n.insideFill||nt.color.neutral00,!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),i.textStrokeWidth==null&&(i.textStrokeWidth=2)):(a&&(i.textFill=e.fill||n.outsideFill||nt.color.neutral00),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,Z(t.rich,function(s){IY(s,s)}),i}function IY(e,t){t&&(Ie(t,"fill")&&(e.textFill=t.fill),Ie(t,"stroke")&&(e.textStroke=t.fill),Ie(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Ie(t,"font")&&(e.font=t.font),Ie(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Ie(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Ie(t,"fontSize")&&(e.fontSize=t.fontSize),Ie(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Ie(t,"align")&&(e.textAlign=t.align),Ie(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Ie(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Ie(t,"width")&&(e.textWidth=t.width),Ie(t,"height")&&(e.textHeight=t.height),Ie(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Ie(t,"padding")&&(e.textPadding=t.padding),Ie(t,"borderColor")&&(e.textBorderColor=t.borderColor),Ie(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Ie(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Ie(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Ie(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Ie(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Ie(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Ie(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Ie(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Ie(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Ie(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var ane={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},RY=hn(ane);ql(zs,function(e,t){return e[t]=1,e},{});zs.join(", ");var B2=["","style","shape","extra"],qm=fn();function kP(e,t,n,i,r){var o=e+"Animation",a=E4(e,i,r)||{},s=qm(t).userDuring;return a.duration>0&&(a.during=s?Qt(cze,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),ke(a,n[o]),a}function Vk(e,t,n,i){i=i||{};var r=i.dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=qm(e),c=t.style;l.userDuring=t.during;var u={},d={};if(dze(e,t,d),e.type==="compound")for(var f=e.shape.paths,h=t.shape.paths,p=0;p<h.length;p++){var g=h[p];WO("shape",g,f[p])}else WO("shape",t,d),WO("extra",t,d);if(!o&&s&&(uze(e,t,u),LY("shape",e,t,u),LY("extra",e,t,u),hze(e,t,c,u)),d.style=c,oze(e,d,a),sze(e,t),s)if(o){var v={};Z(B2,function(y){var b=y?t[y]:t;b&&b.enterFrom&&(y&&(v[y]=v[y]||{}),ke(y?v[y]:v,b.enterFrom))});var m=kP("enter",e,t,n,r);m.duration>0&&e.animateFrom(v,m)}else aze(e,t,r||0,n,u);sne(e,t),c?e.dirty():e.markRedraw()}function sne(e,t){for(var n=qm(e).leaveToProps,i=0;i<B2.length;i++){var r=B2[i],o=r?t[r]:t;o&&o.leaveTo&&(n||(n=qm(e).leaveToProps={}),r&&(n[r]=n[r]||{}),ke(r?n[r]:n,o.leaveTo))}}function yM(e,t,n,i){if(e){var r=e.parent,o=qm(e).leaveToProps;if(o){var a=kP("update",e,t,n,0);a.done=function(){r&&r.remove(e)},e.animateTo(o,a)}else r&&r.remove(e)}}function wh(e){return e==="all"}function oze(e,t,n){var i=t.style;if(!e.isGroup&&i){if(n){e.useStyle({});for(var r=e.animators,o=0;o<r.length;o++){var a=r[o];a.targetName==="style"&&a.changeTarget(e.style)}}e.setStyle(i)}t&&(t.style=null,t&&e.attr(t),t.style=i)}function aze(e,t,n,i,r){if(r){var o=kP("update",e,t,i,n);o.duration>0&&e.animateFrom(r,o)}}function sze(e,t){Ie(t,"silent")&&(e.silent=t.silent),Ie(t,"ignore")&&(e.ignore=t.ignore),e instanceof Au&&Ie(t,"invisible")&&(e.invisible=t.invisible),e instanceof nn&&Ie(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var ms={},lze={setTransform:function(e,t){return ms.el[e]=t,this},getTransform:function(e){return ms.el[e]},setShape:function(e,t){var n=ms.el,i=n.shape||(n.shape={});return i[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=ms.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=ms.el,i=n.style;return i&&(i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=ms.el.style;if(t)return t[e]},setExtra:function(e,t){var n=ms.el.extra||(ms.el.extra={});return n[e]=t,this},getExtra:function(e){var t=ms.el.extra;if(t)return t[e]}};function cze(){var e=this,t=e.el;if(t){var n=qm(t).userDuring,i=e.userDuring;if(n!==i){e.el=e.userDuring=null;return}ms.el=t,i(lze)}}function LY(e,t,n,i){var r=n[e];if(r){var o=t[e],a;if(o){var s=n.transition,l=r.transition;if(l)if(!a&&(a=i[e]={}),wh(l))ke(a,o);else for(var c=Pi(l),u=0;u<c.length;u++){var d=c[u],f=o[d];a[d]=f}else if(wh(s)||Zt(s,e)>=0){!a&&(a=i[e]={});for(var h=hn(o),u=0;u<h.length;u++){var d=h[u],f=o[d];fze(r[d],f)&&(a[d]=f)}}}}}function WO(e,t,n){var i=t[e];if(i)for(var r=n[e]={},o=hn(i),a=0;a<o.length;a++){var s=o[a];r[s]=Vb(i[s])}}function uze(e,t,n){for(var i=t.transition,r=wh(i)?zs:Pi(i||[]),o=0;o<r.length;o++){var a=r[o];if(!(a==="style"||a==="shape"||a==="extra")){var s=e[a];n[a]=s}}}function dze(e,t,n){for(var i=0;i<RY.length;i++){var r=RY[i],o=ane[r],a=t[r];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(var i=0;i<zs.length;i++){var s=zs[i];t[s]!=null&&(n[s]=t[s])}}function hze(e,t,n,i){if(n){var r=e.style,o;if(r){var a=n.transition,s=t.transition;if(a&&!wh(a)){var l=Pi(a);!o&&(o=i.style={});for(var c=0;c<l.length;c++){var u=l[c],d=r[u];o[u]=d}}else if(e.getAnimationStyleProps&&(wh(s)||wh(a)||Zt(s,"style")>=0)){var f=e.getAnimationStyleProps(),h=f?f.style:null;if(h){!o&&(o=i.style={});for(var p=hn(n),c=0;c<p.length;c++){var u=p[c];if(h[u]){var d=r[u];o[u]=d}}}}}}}function fze(e,t){return Lr(e)?e!==t:e!=null&&isFinite(e)}var lne=fn(),pze=["percent","easing","shape","style","extra"];function cne(e){e.stopAnimation("keyframe"),e.attr(lne(e))}function F2(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(Ne(t)){Z(t,function(s){F2(e,s,n)});return}var i=t.keyframes,r=t.duration;if(n&&r==null){var o=E4("enter",n,0);r=o&&o.duration}if(!(!i||!r)){var a=lne(e);Z(B2,function(s){if(!(s&&!e[s])){var l;i.sort(function(c,u){return c.percent-u.percent}),Z(i,function(c){var u=e.animators,d=s?c[s]:c;if(d){var f=hn(d);if(s||(f=Kn(f,function(g){return Zt(pze,g)<0})),!!f.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<u.length;h++)u[h]!==l&&u[h].targetName===l.targetName&&u[h].stopTracks(f);s&&(a[s]=a[s]||{});var p=s?a[s]:a;Z(f,function(g){p[g]=((s?e[s]:e)||{})[g]}),l.whenWithKeys(r*c.percent,d,f,c.easing)}}}),l&&l.delay(t.delay||0).duration(r).start(t.easing)}})}}}var Pl="emphasis",mu="normal",MP="blur",CP="select",Tu=[mu,Pl,MP,CP],YO={normal:["itemStyle"],emphasis:[Pl,"itemStyle"],blur:[MP,"itemStyle"],select:[CP,"itemStyle"]},XO={normal:["label"],emphasis:[Pl,"label"],blur:[MP,"label"],select:[CP,"label"]},mze=["x","y"],gze="e\0\0",Go={normal:{},emphasis:{},blur:{},select:{}},vze={cartesian2d:XCe,geo:JCe,single:eze,polar:nze,calendar:ize,matrix:rze};function O5(e){return e instanceof nn}function N5(e){return e instanceof Au}function yze(e,t){t.copyTransform(e),N5(t)&&N5(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,O5(t)&&O5(e)&&t.setShape(e.shape))}var bze=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,i,r,o){this._progressiveEls=null;var a=this._data,s=n.getData(),l=this.group,c=EY(n,s,i,r);a||l.removeAll(),s.diff(a).add(function(d){KO(r,null,d,c(d,o),n,l,s)}).remove(function(d){var f=a.getItemGraphicEl(d);f&&yM(f,Nl(f).option,n)}).update(function(d,f){var h=a.getItemGraphicEl(f);KO(r,h,d,c(d,o),n,l,s)}).execute();var u=n.get("clip",!0)?gP(n.coordinateSystem,!1,n):null;u?l.setClipPath(u):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(n,i,r){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(n,i,r,o,a){var s=i.getData(),l=EY(i,s,r,o),c=this._progressiveEls=[];function u(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var d=n.start;d<n.end;d++){var f=KO(null,null,d,l(d,a),i,this.group,s);f&&(f.traverse(u),c.push(f))}},t.prototype.eachRendered=function(n){Qm(this._progressiveEls||this.group,n)},t.prototype.filterForExposedEvent=function(n,i,r,o){var a=i.element;if(a==null||r.name===a)return!0;for(;(r=r.__hostTarget||r.parent)&&r!==this.group;)if(r.name===a)return!0;return!1},t.type="custom",t})(vr);function zP(e){var t=e.type,n;if(t==="path"){var i=e.shape,r=i.width!=null&&i.height!=null?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=hne(i);n=cx(o,null,r,i.layout||"center"),Nl(n).customPathData=o}else if(t==="image")n=new Na({}),Nl(n).customImagePath=e.style.image;else if(t==="text")n=new pi({});else if(t==="group")n=new Jn;else if(t==="compoundPath"){var i=e.shape;if(!i||!i.paths){var a="";rr(a)}var s=Ye(i.paths,function(u){if(u.type==="path")return cx(u.shape.pathData,u,null);var d=x2(u.type);if(!d){var f="";rr(f)}return new d});n=new XJ({shape:{paths:s}})}else{var l=x2(t);if(!l){var a="";rr(a)}n=new l}return Nl(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function TP(e,t,n,i,r,o,a){cne(t);var s=r&&r.normal.cfg;s&&t.setTextConfig(s),i&&i.transition==null&&(i.transition=mze);var l=i&&i.style;if(l){if(t.type==="text"){var c=l;Ie(c,"textFill")&&(c.fill=c.textFill),Ie(c,"textStroke")&&(c.stroke=c.textStroke)}var u=void 0,d=O5(t)?l.decal:null;e&&d&&(d.dirty=!0,u=A2(d,e)),l.__decalPattern=u}if(N5(t)&&l){var u=l.__decalPattern;u&&(l.decal=u)}Vk(t,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),F2(t,i.keyframeAnimation,o)}function une(e,t,n,i,r){var o=t.isGroup?null:t,a=r&&r[e].cfg;if(o){var s=o.ensureState(e);if(i===!1){var l=o.getState(e);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),PJ(o)}}function xze(e,t,n){if(!e.isGroup){var i=e,r=n.currentZ,o=n.currentZLevel;i.z=r,i.zlevel=o;var a=t.z2;a!=null&&(i.z2=a||0);for(var s=0;s<Tu.length;s++)_ze(i,t,Tu[s])}}function _ze(e,t,n){var i=n===mu,r=i?t:q2(t,n),o=r?r.z2:null,a;o!=null&&(a=i?e:e.ensureState(n),a.z2=o||0)}function EY(e,t,n,i){var r=e.get("renderItem");if(typeof r=="string"){var o=Iwe(r);o&&(r=o)}var a=e.coordinateSystem,s={};a&&(s=a.prepareCustoms?a.prepareCustoms(a):vze[a.type](a));for(var l=Pt({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:_,style:$,ordinalRawValue:S,styleEmphasis:C,visual:A,barLayout:M,currentSeriesIndices:T,font:k},s.api||{}),c={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:Sze(e.getData()),itemPayload:e.get("itemPayload")||{}},u,d,f={},h={},p={},g={},v=0;v<Tu.length;v++){var m=Tu[v];p[m]=e.getModel(YO[m]),g[m]=e.getModel(XO[m])}function y(I){return I===u?d||(d=t.getItemModel(I)):t.getItemModel(I)}function b(I,D){return t.hasItemOption?I===u?f[D]||(f[D]=y(I).getModel(YO[D])):y(I).getModel(YO[D]):p[D]}function x(I,D){return t.hasItemOption?I===u?h[D]||(h[D]=y(I).getModel(XO[D])):y(I).getModel(XO[D]):g[D]}return function(I,D){return u=I,d=null,f={},h={},r&&r(Pt({dataIndexInside:I,dataIndex:t.getRawIndex(I),actionType:D?D.type:null},c),l)};function _(I,D){return D==null&&(D=u),t.getStore().get(t.getDimensionIndex(I||0),D)}function S(I,D){D==null&&(D=u),I=I||0;var E=t.getDimensionInfo(I);if(!E){var N=t.getDimensionIndex(I);return N>=0?t.getStore().get(N,D):void 0}var F=t.get(E.name,D),G=E&&E.ordinalMeta;return G?G.categories[F]:F}function $(I,D){D==null&&(D=u);var E=t.getItemVisual(D,"style"),N=E&&E.fill,F=E&&E.opacity,G=b(D,mu).getItemStyle();N!=null&&(G.fill=N),F!=null&&(G.opacity=F);var P={inheritColor:rt(N)?N:nt.color.neutral99},O=x(D,mu),V=Ts(O,null,P,!1,!0);V.text=O.getShallow("show")?pt(e.getFormattedLabel(D,mu),yx(t,D)):null;var j=S2(O,P,!1);return z(I,G),G=AY(G,V,j),I&&w(G,I),G.legacy=!0,G}function C(I,D){D==null&&(D=u);var E=b(D,Pl).getItemStyle(),N=x(D,Pl),F=Ts(N,null,null,!0,!0);F.text=N.getShallow("show")?gu(e.getFormattedLabel(D,Pl),e.getFormattedLabel(D,mu),yx(t,D)):null;var G=S2(N,null,!0);return z(I,E),E=AY(E,F,G),I&&w(E,I),E.legacy=!0,E}function w(I,D){for(var E in D)Ie(D,E)&&(I[E]=D[E])}function z(I,D){I&&(I.textFill&&(D.textFill=I.textFill),I.textPosition&&(D.textPosition=I.textPosition))}function A(I,D){if(D==null&&(D=u),Ie(zY,I)){var E=t.getItemVisual(D,"style");return E?E[zY[I]]:null}if(Ie(GCe,I))return t.getItemVisual(D,I)}function M(I){if(a.type==="cartesian2d"){var D=a.getBaseAxis();return Ake(Pt({axis:D},I))}}function T(){return n.getCurrentSeriesIndices()}function k(I){return cQ(I,n)}}function Sze(e){var t={};return Z(e.dimensions,function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim,o=t[r]=t[r]||[];o[i.coordDimIndex]=e.getDimensionIndex(n)}}),t}function KO(e,t,n,i,r,o,a){if(!i){o.remove(t);return}var s=AP(e,t,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&wu(s,i.focus,i.blurScope,i.emphasisDisabled),s}function AP(e,t,n,i,r,o){var a=-1,s=t;t&&dne(t,i,r)&&(a=Zt(o.childrenRef(),t),t=null);var l=!t,c=t;c?c.clearStates():(c=zP(i),s&&yze(s,c)),i.morph===!1?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),i.tooltipDisabled&&(c.tooltipDisabled=!0),Go.normal.cfg=Go.normal.conOpt=Go.emphasis.cfg=Go.emphasis.conOpt=Go.blur.cfg=Go.blur.conOpt=Go.select.cfg=Go.select.conOpt=null,Go.isLegacy=!1,wze(c,n,i,r,l,Go),$ze(c,n,i,r,l),TP(e,c,n,i,Go,r,l),Ie(i,"info")&&(Nl(c).info=i.info);for(var u=0;u<Tu.length;u++){var d=Tu[u];if(d!==mu){var f=q2(i,d),h=IP(i,f,d);une(d,c,f,h,Go)}}return xze(c,i,r),i.type==="group"&&kze(e,c,n,i,r),a>=0?o.replaceAt(c,a):o.add(c),c}function dne(e,t,n){var i=Nl(e),r=t.type,o=t.shape,a=t.style;return n.isUniversalTransitionEnabled()||r!=null&&r!==i.customGraphicType||r==="path"&&Tze(o)&&hne(o)!==i.customPathData||r==="image"&&Ie(a,"image")&&a.image!==i.customImagePath}function $ze(e,t,n,i,r){var o=n.clipPath;if(o===!1)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&dne(a,o,i)&&(a=null),a||(a=zP(o),e.setClipPath(a)),TP(null,a,t,o,null,i,r)}}function wze(e,t,n,i,r,o){if(!(e.isGroup||e.type==="compoundPath")){DY(n,null,o),DY(n,Pl,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,c=o.select.conOpt;if(a!=null||s!=null||c!=null||l!=null){var u=e.getTextContent();if(a===!1)u&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},u?u.clearStates():(u=zP(a),e.setTextContent(u)),TP(null,u,t,a,null,i,r);for(var d=a&&a.style,f=0;f<Tu.length;f++){var h=Tu[f];if(h!==mu){var p=o[h].conOpt;une(h,u,p,IP(a,p,h),null)}}d?u.dirty():u.markRedraw()}}}}function DY(e,t,n){var i=t?q2(e,t):e,r=t?IP(e,i,Pl):e.style,o=e.type,a=i?i.textConfig:null,s=e.textContent,l=s?t?q2(s,t):s:null;if(r&&(n.isLegacy||rne(r,o,!!a,!!l))){n.isLegacy=!0;var c=one(r,o,!t);!a&&c.textConfig&&(a=c.textConfig),!l&&c.textContent&&(l=c.textContent)}if(!t&&l){var u=l;!u.type&&(u.type="text")}var d=t?n[t]:n.normal;d.cfg=a,d.conOpt=l}function q2(e,t){return t?e?e[t]:null:e}function IP(e,t,n){var i=t&&t.style;return i==null&&n===Pl&&e&&(i=e.styleEmphasis),i}function kze(e,t,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l=s==="byName"||i.diffChildrenByName,c=s===!1;if(!(!a&&!l&&!c)){if(l){Cze({api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:t});return}c&&t.removeAll();for(var u=0;u<a;u++){var d=o[u],f=t.childAt(u);d?(d.ignore==null&&(d.ignore=!1),AP(e,f,n,d,r,t)):f.ignore=!0}for(var h=t.childCount()-1;h>=u;h--){var p=t.childAt(h);Mze(t,p,r)}}}function Mze(e,t,n){t&&yM(t,Nl(e).option,n)}function Cze(e){new Nee(e.oldChildren,e.newChildren,OY,OY,e).add(NY).update(NY).remove(zze).execute()}function OY(e,t){var n=e&&e.name;return n??gze+t}function NY(e,t){var n=this.context,i=e!=null?n.newChildren[e]:null,r=t!=null?n.oldChildren[t]:null;AP(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function zze(e){var t=this.context,n=t.oldChildren[e];n&&yM(n,Nl(n).option,t.seriesModel)}function hne(e){return e&&(e.pathData||e.d)}function Tze(e){return e&&(Ie(e,"pathData")||Ie(e,"d"))}function Aze(e){e.registerChartView(bze),e.registerSeriesModel(WCe)}var fh=fn(),PY=Ht,JO=Qt,Ize=(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,i,r){var o=n.get("value"),a=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=i,!(!r&&this._lastValue===o&&this._lastStatus===a)){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var c={};this.makeElOption(c,o,t,n,i);var u=c.graphicKey;u!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=u;var d=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new Jn,this.createPointerEl(s,c,t,n),this.createLabelEl(s,c,t,n),i.getZr().add(s);else{var f=ai(jY,n,d);this.updatePointerEl(s,c,f),this.updateLabelEl(s,c,f,n)}BY(s,n,!0),this._renderHandle(o)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,n){var i=n.get("animation"),r=t.axis,o=r.type==="category",a=n.get("snap");if(!a&&!o)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(o&&r.getBandWidth()>s)return!0;if(a){var l=SP(t).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return i===!0},e.prototype.makeElOption=function(t,n,i,r,o){},e.prototype.createPointerEl=function(t,n,i,r){var o=n.pointer;if(o){var a=fh(t).pointerEl=new sQ[o.type](PY(n.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,n,i,r){if(n.label){var o=fh(t).labelEl=new pi(PY(n.label));t.add(o),UY(o,r)}},e.prototype.updatePointerEl=function(t,n,i){var r=fh(t).pointerEl;r&&n.pointer&&(r.setStyle(n.pointer.style),i(r,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,i,r){var o=fh(t).labelEl;o&&(o.setStyle(n.label.style),i(o,{x:n.label.x,y:n.label.y}),UY(o,r))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||a==="hide"){r&&i.remove(r),this._handle=null;return}var s;this._handle||(s=!0,r=this._handle=N4(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){FK(c.event)},onmousedown:JO(this._onHandleDragMove,this,0,0),drift:JO(this._onHandleDragMove,this),ondragend:JO(this._onHandleDragEnd,this)}),i.add(r)),BY(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");Ne(l)||(l=[l,l]),r.scaleX=l[0]/2,r.scaleY=l[1]/2,iee(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){jY(this._axisPointerModel,!n&&this._moveAnimation,this._handle,QO(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var i=this._handle;if(i){this._dragging=!0;var r=this.updateHandleTransform(QO(i),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=r,i.stopAnimation(),i.attr(QO(r)),fh(i).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),i=this._group,r=this._handle;n&&i&&(this._lastGraphicKey=null,i&&n.remove(i),r&&n.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),u5(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,i){return i=i||0,{x:t[i],y:t[1-i],width:n[i],height:n[1-i]}},e})();function jY(e,t,n,i){fne(fh(n).lastProp,i)||(fh(n).lastProp=i,t?ci(n,i,e):(n.stopAnimation(),n.attr(i)))}function fne(e,t){if(gt(e)&&gt(t)){var n=!0;return Z(t,function(i,r){n=n&&fne(e[r],i)}),!!n}else return e===t}function UY(e,t){e[t.get(["label","show"])?"show":"hide"]()}function QO(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function BY(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse(function(o){o.type!=="group"&&(i!=null&&(o.z=i),r!=null&&(o.zlevel=r),o.silent=n)})}function Rze(e){var t=e.get("type"),n=e.getModel(t+"Style"),i;return t==="line"?(i=n.getLineStyle(),i.fill=null):t==="shadow"&&(i=n.getAreaStyle(),i.stroke=null),i}function Lze(e,t,n,i,r){var o=n.get("value"),a=pne(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=pM(s.get("padding")||0),c=s.getFont(),u=lJ(a,c),d=r.position,f=u.width+l[1]+l[3],h=u.height+l[0]+l[2],p=r.align;p==="right"&&(d[0]-=f),p==="center"&&(d[0]-=f/2);var g=r.verticalAlign;g==="bottom"&&(d[1]-=h),g==="middle"&&(d[1]-=h/2),Eze(d,f,h,i);var v=s.get("backgroundColor");(!v||v==="auto")&&(v=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:Ts(s,{text:a,font:c,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function Eze(e,t,n,i){var r=i.getWidth(),o=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function pne(e,t,n,i,r){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:r.precision}),a=r.formatter;if(a){var s={value:L2(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Z(i,function(l){var c=n.getSeriesByIndex(l.seriesIndex),u=l.dataIndexInside,d=c&&c.getDataParams(u);d&&s.seriesData.push(d)}),rt(a)?o=a.replace("{value}",o):_t(a)&&(o=a(s))}return o}function mne(e,t,n){var i=Dl();return x4(i,i,n.rotation),SN(i,i,n.position),O4([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function Dze(e,t,n,i,r,o){var a=Ol.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),Lze(t,i,r,o,{position:mne(i.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function Oze(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function Nze(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var Pze=(function(e){ze(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,i,r,o,a){var s=r.axis,l=s.grid,c=o.get("type"),u=FY(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(i,!0));if(c&&c!=="none"){var f=Rze(o),h=jze[c](s,d,u);h.style=f,n.graphicKey=h.type,n.pointer=h}var p=U2(l.getRect(),r);Dze(i,n,p,r,o,a)},t.prototype.getHandleTransform=function(n,i,r){var o=U2(i.axis.grid.getRect(),i,{labelInside:!1});o.labelMargin=r.get(["handle","margin"]);var a=mne(i.axis,n,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,i,r,o){var a=r.axis,s=a.grid,l=a.getGlobalExtent(!0),c=FY(s,a).getOtherAxis(a).getGlobalExtent(),u=a.dim==="x"?0:1,d=[n.x,n.y];d[u]+=i[u],d[u]=Math.min(l[1],d[u]),d[u]=Math.max(l[0],d[u]);var f=(c[1]+c[0])/2,h=[f,f];h[u]=d[u];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:n.rotation,cursorPoint:h,tooltipOption:p[u]}},t})(Ize);function FY(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var jze={line:function(e,t,n){var i=Oze([t,n[0]],[t,n[1]],qY(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:Nze([t-i/2,n[0]],[i,r],qY(e))}}};function qY(e){return e.dim==="x"?0:1}var Uze=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:nt.color.border,width:1,type:"dashed"},shadowStyle:{color:nt.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:nt.color.neutral00,padding:[5,7,5,7],backgroundColor:nt.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:nt.color.accent40,throttle:40}},t})(dn),Rl=fn(),Bze=Z;function gne(e,t,n){if(!Rt.node){var i=t.getZr();Rl(i).records||(Rl(i).records={}),Fze(i,t);var r=Rl(i).records[e]||(Rl(i).records[e]={});r.handler=n}}function Fze(e,t){if(Rl(e).initialized)return;Rl(e).initialized=!0,n("click",ai(VY,"click")),n("mousemove",ai(VY,"mousemove")),n("globalout",Vze);function n(i,r){e.on(i,function(o){var a=Hze(t);Bze(Rl(e).records,function(s){s&&r(s,o,a.dispatchAction)}),qze(a.pendings,t)})}}function qze(e,t){var n=e.showTip.length,i=e.hideTip.length,r;n?r=e.showTip[n-1]:i&&(r=e.hideTip[i-1]),r&&(r.dispatchAction=null,t.dispatchAction(r))}function Vze(e,t,n){e.handler("leave",null,n)}function VY(e,t,n,i){t.handler(e,n,i)}function Hze(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}function P5(e,t){if(!Rt.node){var n=t.getZr(),i=(Rl(n).records||{})[e];i&&(Rl(n).records[e]=null)}}var Zze=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,i,r){var o=i.getComponent("tooltip"),a=n.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";gne("axisPointer",r,function(s,l,c){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&c({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(n,i){P5("axisPointer",i)},t.prototype.dispose=function(n,i){P5("axisPointer",i)},t.type="axisPointer",t})(wo);function vne(e,t){var n=[],i=e.seriesIndex,r;if(i==null||!(r=t.getSeriesByIndex(i)))return{point:[]};var o=r.getData(),a=Mh(o,e);if(a==null||a<0||Ne(a))return{point:[]};var s=o.getItemGraphicEl(a),l=r.coordinateSystem;if(r.getTooltipPosition)n=r.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c),d=u.dim,f=c.dim,h=d==="x"||d==="radius"?1:0,p=o.mapDimension(f),g=[];g[h]=o.get(p,a),g[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(g)||[]}else n=l.dataToPoint(o.getValues(Ye(l.dimensions,function(m){return o.mapDimension(m)}),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),n=[v.x+v.width/2,v.y+v.height/2]}return{point:n,el:s}}var HY=fn();function Gze(e,t,n){var i=e.currTrigger,r=[e.x,e.y],o=e,a=e.dispatchAction||Qt(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Hk(r)&&(r=vne({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=Hk(r),c=o.axesInfo,u=s.axesInfo,d=i==="leave"||Hk(r),f={},h={},p={list:[],map:{}},g={showPointer:ai(Yze,h),showTooltip:ai(Xze,p)};Z(s.coordSysMap,function(m,y){var b=l||m.containPoint(r);Z(s.coordSysAxesInfo[y],function(x,_){var S=x.axis,$=eTe(c,x);if(!d&&b&&(!c||$)){var C=$&&$.value;C==null&&!l&&(C=S.pointToData(r)),C!=null&&ZY(x,C,g,!1,f)}})});var v={};return Z(u,function(m,y){var b=m.linkGroup;b&&!h[y]&&Z(b.axesInfo,function(x,_){var S=h[_];if(x!==m&&S){var $=S.value;b.mapper&&($=m.axis.scale.parse(b.mapper($,GY(x),GY(m)))),v[m.key]=$}})}),Z(v,function(m,y){ZY(u[y],m,g,!0,f)}),Kze(h,u,f),Jze(p,r,e,a),Qze(u,a,n),f}}function ZY(e,t,n,i,r){var o=e.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var a=Wze(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&r.seriesIndex==null&&ke(r,s[0]),!i&&e.snap&&o.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}}function Wze(e,t){var n=t.axis,i=n.dim,r=e,o=[],a=Number.MAX_VALUE,s=-1;return Z(t.seriesModels,function(l,c){var u=l.getData().mapDimensionsAll(i),d,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(u,e,n);f=h.dataIndices,d=h.nestestValue}else{if(f=l.indicesOfNearest(i,u[0],e,n.type==="category"?.5:null),!f.length)return;d=l.getData().get(u[0],f[0])}if(!(d==null||!isFinite(d))){var p=e-d,g=Math.abs(p);g<=a&&((g<a||p>=0&&s<0)&&(a=g,s=p,r=d,o.length=0),Z(f,function(v){o.push({seriesIndex:l.seriesIndex,dataIndexInside:v,dataIndex:l.getData().getRawIndex(v)})}))}}),{payloadBatch:o,snapToValue:r}}function Yze(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function Xze(e,t,n,i){var r=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!r.length)){var l=t.coordSys.model,c=xx(l),u=e.map[c];u||(u=e.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function Kze(e,t,n){var i=n.axesInfo=[];Z(t,function(r,o){var a=r.axisPointerModel.option,s=e[o];s?(!r.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!r.useHandle&&(a.status="hide"),a.status==="show"&&i.push({axisDim:r.axis.dim,axisIndex:r.axis.model.componentIndex,value:a.value})})}function Jze(e,t,n,i){if(Hk(t)||!e.list.length){i({type:"hideTip"});return}var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}function Qze(e,t,n){var i=n.getZr(),r="axisPointerLastHighlights",o=HY(i)[r]||{},a=HY(i)[r]={};Z(e,function(c,u){var d=c.axisPointerModel.option;d.status==="show"&&c.triggerEmphasis&&Z(d.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;a[h]=f})});var s=[],l=[];Z(o,function(c,u){!a[u]&&l.push(c)}),Z(a,function(c,u){!o[u]&&s.push(c)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function eTe(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function GY(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function Hk(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function RP(e){Jte.registerAxisPointerClass("CartesianAxisPointer",Pze),e.registerComponentModel(Uze),e.registerComponentView(Zze),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!Ne(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=sCe(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Gze)}function tTe(e){As(tne),As(RP)}function nTe(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function WY(e,t){var n;return Z(t,function(i){e[i]!=null&&e[i]!=="auto"&&(n=!0)}),n}function iTe(e,t,n){var i=ke({},n),r=e[t],o=n.$action||"merge";o==="merge"?r?(an(r,i,!0),Zl(r,i,{ignoreSize:!0}),CQ(n,r),Sk(n,r),Sk(n,r,"shape"),Sk(n,r,"style"),Sk(n,r,"extra"),n.clipPath=r.clipPath):e[t]=i:o==="replace"?e[t]=i:o==="remove"&&r&&(e[t]=null)}var yne=["transition","enterFrom","leaveTo"],rTe=yne.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Sk(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var i=n?yne:rTe,r=0;r<i.length;r++){var o=i[r];e[o]==null&&t[o]!=null&&(e[o]=t[o])}}function oTe(e,t){if(e&&(e.hv=t.hv=[WY(t,["left","right"]),WY(t,["top","bottom"])],e.type==="group")){var n=e,i=t;n.width==null&&(n.width=i.width=0),n.height==null&&(n.height=i.height=0)}}var aTe=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(n,i){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,n,i),this.option.elements=r},t.prototype.optionUpdated=function(n,i){var r=this.option,o=(i?r:n).elements,a=r.elements=i?[]:r.elements,s=[];this._flatten(o,s,null);var l=yJ(a,s,"normalMerge"),c=this._elOptionsToUpdate=[];Z(l,function(u,d){var f=u.newOption;f&&(c.push(f),nTe(u,f),iTe(a,d,f),oTe(a[d],f))},this),r.elements=Kn(a,function(u){return u&&delete u.$action,u!=null})},t.prototype._flatten=function(n,i,r){Z(n,function(o){if(o){r&&(o.parentOption=r),i.push(o);var a=o.children;a&&a.length&&this._flatten(a,i,o),delete o.children}},this)},t.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},t.type="graphic",t.defaultOption={elements:[]},t})(dn),YY={path:null,compoundPath:null,group:Jn,image:Na,text:pi},Jo=fn(),sTe=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=Nt()},t.prototype.render=function(n,i,r){n!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=n,this._updateElements(n),this._relocate(n,r)},t.prototype._updateElements=function(n){var i=n.useElOptionsToUpdate();if(i){var r=this._elMap,o=this.group,a=n.get("z"),s=n.get("zlevel");Z(i,function(l){var c=to(l.id,null),u=c!=null?r.get(c):null,d=to(l.parentId,null),f=d!=null?r.get(d):o,h=l.type,p=l.style;h==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var g=l.textContent,v=l.textConfig;if(p&&rne(p,h,!!v,!!g)){var m=one(p,h,!0);!v&&m.textConfig&&(v=l.textConfig=m.textConfig),!g&&m.textContent&&(g=m.textContent)}var y=lTe(l),b=l.$action||"merge",x=b==="merge",_=b==="replace";if(x){var S=!u,$=u;S?$=XY(c,f,l.type,r):($&&(Jo($).isNew=!1),cne($)),$&&(Vk($,y,n,{isInit:S}),KY($,l,a,s))}else if(_){Zk(u,l,r,n);var C=XY(c,f,l.type,r);C&&(Vk(C,y,n,{isInit:!0}),KY(C,l,a,s))}else b==="remove"&&(sne(u,l),Zk(u,l,r,n));var w=r.get(c);if(w&&g)if(x){var z=w.getTextContent();z?z.attr(g):w.setTextContent(new pi(g))}else _&&w.setTextContent(new pi(g));if(w){var A=l.clipPath;if(A){var M=A.type,T=void 0,S=!1;if(x){var k=w.getClipPath();S=!k||Jo(k).type!==M,T=S?j5(M):k}else _&&(S=!0,T=j5(M));w.setClipPath(T),Vk(T,A,n,{isInit:S}),F2(T,A.keyframeAnimation,n)}var I=Jo(w);w.setTextConfig(v),I.option=l,cTe(w,n,l),Ax({el:w,componentModel:n,itemName:w.name,itemTooltipOption:l.tooltip}),F2(w,l.keyframeAnimation,n)}})}},t.prototype._relocate=function(n,i){for(var r=n.option.elements,o=this.group,a=this._elMap,s=i.getWidth(),l=i.getHeight(),c=["x","y"],u=0;u<r.length;u++){var d=r[u],f=to(d.id,null),h=f!=null?a.get(f):null;if(!(!h||!h.isGroup)){var p=h.parent,g=p===o,v=Jo(h),m=Jo(p);v.width=tn(v.option.width,g?s:m.width)||0,v.height=tn(v.option.height,g?l:m.height)||0}}for(var u=r.length-1;u>=0;u--){var d=r[u],f=to(d.id,null),h=f!=null?a.get(f):null;if(h){var p=h.parent,m=Jo(p),y=p===o?{width:s,height:l}:{width:m.width,height:m.height},b={},x=dSe(h,d,y,null,{hv:d.hv,boundingMode:d.bounding},b);if(!Jo(h).isNew&&x){for(var _=d.transition,S={},$=0;$<c.length;$++){var C=c[$],w=b[C];_&&(wh(_)||Zt(_,C)>=0)?S[C]=w:h[C]=w}ci(h,S,n,0)}else h.attr(b)}}},t.prototype._clear=function(){var n=this,i=this._elMap;i.each(function(r){Zk(r,Jo(r).option,i,n._lastGraphicModel)}),this._elMap=Nt()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t})(wo);function j5(e){var t=Ie(YY,e)?YY[e]:x2(e),n=new t({});return Jo(n).type=e,n}function XY(e,t,n,i){var r=j5(n);return t.add(r),i.set(e,r),Jo(r).id=e,Jo(r).isNew=!0,r}function Zk(e,t,n,i){var r=e&&e.parent;r&&(e.type==="group"&&e.traverse(function(o){Zk(o,t,n,i)}),yM(e,t,i),n.removeKey(Jo(e).id))}function KY(e,t,n,i){e.isGroup||Z([["cursor",Au.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],function(r){var o=r[0];Ie(t,o)?e[o]=pt(t[o],r[1]):e[o]==null&&(e[o]=r[1])}),Z(hn(t),function(r){if(r.indexOf("on")===0){var o=t[r];e[r]=_t(o)?o:null}}),Ie(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function lTe(e){return e=ke({},e),Z(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(MQ),function(t){delete e[t]}),e}function cTe(e,t,n){var i=Ut(e).eventData;!e.silent&&!e.ignore&&!i&&(i=Ut(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=n.info)}function uTe(e){e.registerComponentModel(aTe),e.registerComponentView(sTe),e.registerPreprocessor(function(t){var n=t.graphic;Ne(n)?!n[0]||!n[0].elements?t.graphic=[{elements:n}]:t.graphic=[t.graphic[0]]:n&&!n.elements&&(t.graphic=[{elements:[n]}])})}function dTe(e,t){var n=pM(t.get("padding")),i=t.getItemStyle(["color","opacity"]);i.fill=t.get("backgroundColor");var r=new si({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1});return r}var hTe=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:nt.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:nt.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:nt.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:nt.color.tertiary,fontSize:14}},t})(dn);function bne(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function xne(e){if(Rt.domSupported){for(var t=document.documentElement.style,n=0,i=e.length;n<i;n++)if(e[n]in t)return e[n]}}var _ne=xne(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),fTe=xne(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Sne(e,t){if(!e)return t;t=$Q(t,!0);var n=e.indexOf(t);return e=n===-1?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function pTe(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?n[t]:null}var mTe=Sne(fTe,"transition"),LP=Sne(_ne,"transform"),gTe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Rt.transform3dSupported?"will-change:transform;":"");function vTe(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function yTe(e,t,n){if(!rt(n)||n==="inside")return"";var i=e.get("backgroundColor"),r=e.get("borderWidth");t=zh(t);var o=vTe(n),a=Math.max(Math.round(r)*1.5,6),s="",l=LP+":",c;Zt(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(c=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c=o==="top"?225:45)+"deg)");var u=c*Math.PI/180,d=a+r,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),h=Math.round(((f-Math.SQRT2*r)/2+Math.SQRT2*r-(f-d)/2)*100)/100;s+=";"+o+":-"+h+"px";var p=t+" solid "+r+"px;",g=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+i+";"];return'<div style="'+g.join("")+'"></div>'}function bTe(e,t,n){var i="cubic-bezier(0.23,1,0.32,1)",r="",o="";return n&&(r=" "+e/2+"s "+i,o="opacity"+r+",visibility"+r),t||(r=" "+e+"s "+i,o+=(o.length?",":"")+(Rt.transformSupported?""+LP+r:",left"+r+",top"+r)),mTe+":"+o}function JY(e,t,n){var i=e.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!Rt.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=Rt.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+LP+":"+a+";":[["top",0],["left",0],[_ne,a]]}function xTe(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont());var r=pt(e.get("lineHeight"),Math.round(n*3/2));n&&t.push("line-height:"+r+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return o&&a&&t.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),Z(["decoration","align"],function(c){var u=e.get(c);u&&t.push("text-"+c+":"+u)}),t.join(";")}function _Te(e,t,n,i){var r=[],o=e.get("transitionDuration"),a=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),c=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),d=e.getModel("textStyle"),f=tee(e,"html"),h=c+"px "+u+"px "+s+"px "+l;return r.push("box-shadow:"+h),t&&o>0&&r.push(bTe(o,n,i)),a&&r.push("background-color:"+a),Z(["width","color","radius"],function(p){var g="border-"+p,v=$Q(g),m=e.get(v);m!=null&&r.push(g+":"+m+(p==="color"?"":"px"))}),r.push(xTe(d)),f!=null&&r.push("padding:"+pM(f).join("px ")+"px"),r.join(";")+";"}function QY(e,t,n,i,r){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&Hye(e,a,n,i,r)}else{e[0]=i,e[1]=r;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var STe=(function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Rt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=t.getZr(),o=n.appendTo,a=o&&(rt(o)?document.querySelector(o):rx(o)?o:_t(o)&&o(t.getDom()));QY(this._styleCoord,r,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(i),this._api=t,this._container=a;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var c=r.handler,u=r.painter.getViewportRoot();Yo(u,l,!0),c.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),i=pTe(n,"position"),r=n.style;r.position!=="absolute"&&i!=="absolute"&&(r.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,r=i.style,o=this._styleCoord;i.innerHTML?r.cssText=gTe+_Te(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+JY(o[0],o[1],!0)+("border-color:"+zh(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,i,r,o){var a=this.el;if(t==null){a.innerHTML="";return}var s="";if(rt(o)&&i.get("trigger")==="item"&&!bne(i)&&(s=yTe(i,r,o)),rt(t))a.innerHTML=t+s;else if(t){a.innerHTML="",Ne(t)||(t=[t]);for(var l=0;l<t.length;l++)rx(t[l])&&t[l].parentNode!==a&&a.appendChild(t[l]);if(s&&a.childNodes.length){var c=document.createElement("div");c.innerHTML=s,a.appendChild(c)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,n){if(this.el){var i=this._styleCoord;if(QY(i,this._zr,this._container,t,n),i[0]!=null&&i[1]!=null){var r=this.el.style,o=JY(i[0],i[1]);Z(o,function(a){r[a[0]]=a[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){var t=this,n=this.el.style;this._enableDisplayTransition?(n.visibility="hidden",n.opacity="0"):n.display="none",Rt.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Qt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;Zye(t&&t.painter&&t.painter.getViewportRoot(),this._container);var n=this.el;if(n){n.onmouseenter=n.onmousemove=n.onmouseleave=null;var i=n.parentNode;i&&i.removeChild(n)}this.el=this._container=null},e})(),$Te=(function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),tX(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,n,i,r,o){var a=this;gt(t)&&rr(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new pi({style:{rich:n.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:tee(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),Z(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(c){a.el.style[c]=i.get(c)}),Z(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(c){a.el.style[c]=s.get(c)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,n=this.el.getBoundingRect(),i=eX(t.style);return[n.width+i.left+i.right,n.height+i.top+i.bottom]},e.prototype.moveTo=function(t,n){var i=this.el;if(i){var r=this._styleCoord;tX(r,this._zr,t,n),t=r[0],n=r[1];var o=i.style,a=uu(o.borderWidth||0),s=eX(o);i.x=t+a+s.left,i.y=n+a+s.top,i.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Qt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e})();function uu(e){return Math.max(0,e)}function eX(e){var t=uu(e.shadowBlur||0),n=uu(e.shadowOffsetX||0),i=uu(e.shadowOffsetY||0);return{left:uu(t-n),right:uu(t+n),top:uu(t-i),bottom:uu(t+i)}}function tX(e,t,n,i){e[0]=n,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var wTe=new si({shape:{x:-1,y:-1,width:2,height:2}}),kTe=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,i){if(!(Rt.node||!i.getDom())){var r=n.getComponent("tooltip"),o=this._renderMode=Sxe(r.get("renderMode"));this._tooltipContent=o==="richText"?new $Te(i):new STe(i,{appendTo:r.get("appendToBody",!0)?"body":r.get("appendTo",!0)})}},t.prototype.render=function(n,i,r){if(!(Rt.node||!r.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=i,this._api=r;var o=this._tooltipContent;o.update(n),o.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?iee(this,"_updatePosition",50,"fixRate"):u5(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var n=this._tooltipModel,i=n.get("triggerOn");gne("itemTooltip",this._api,Qt(function(r,o,a){i!=="none"&&(i.indexOf(r)>=0?this._tryShow(o,a):r==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,i=this._ecModel,r=this._api,o=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!r.isDisposed()&&a.manuallyShowTip(n,i,r,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,i,r,o){if(!(o.from===this.uid||Rt.node||!r.getDom())){var a=nX(o,r);this._ticket="";var s=o.dataByCoordSys,l=TTe(o,i,r);if(l){var c=l.el.getBoundingRect().clone();c.applyTransform(l.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:l.el,position:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var u=wTe;u.x=o.x,u.y=o.y,u.update(),Ut(u).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:u},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(n,i,r,o))return;var d=vne(o,i),f=d.point[0],h=d.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:d.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(r.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:r.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(n,i,r,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(nX(o,r))},t.prototype._manuallyAxisShowTip=function(n,i,r,o){var a=o.seriesIndex,s=o.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var c=i.getSeriesByIndex(a);if(c){var u=c.getData(),d=zb([u.getItemModel(s),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return r.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(n,i){var r=n.target,o=this._tooltipModel;if(o){this._lastX=n.offsetX,this._lastY=n.offsetY;var a=n.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,n);else if(r){var s=Ut(r);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,c;Nb(r,function(u){if(u.tooltipDisabled)return l=c=null,!0;l||c||(Ut(u).dataIndex!=null?l=u:Ut(u).tooltipConfig!=null&&(c=u))},!0),l?this._showSeriesItemTooltip(n,l,i):c?this._showComponentItemTooltip(n,c,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(n,i){var r=n.get("showDelay");i=Qt(i,this),clearTimeout(this._showTimout),r>0?this._showTimout=setTimeout(i,r):i()},t.prototype._showAxisTooltip=function(n,i){var r=this._ecModel,o=this._tooltipModel,a=[i.offsetX,i.offsetY],s=zb([i.tooltipOption],o),l=this._renderMode,c=[],u=Th("section",{blocks:[],noHeader:!0}),d=[],f=new xO;Z(n,function(y){Z(y.dataByAxis,function(b){var x=r.getComponent(b.axisDim+"Axis",b.axisIndex),_=b.value;if(!(!x||_==null)){var S=pne(_,x.axis,r,b.seriesDataIndices,b.valueLabelOpt),$=Th("section",{header:S,noHeader:!bs(S),sortBlocks:!0,blocks:[]});u.blocks.push($),Z(b.seriesDataIndices,function(C){var w=r.getSeriesByIndex(C.seriesIndex),z=C.dataIndexInside,A=w.getDataParams(z);if(!(A.dataIndex<0)){A.axisDim=b.axisDim,A.axisIndex=b.axisIndex,A.axisType=b.axisType,A.axisId=b.axisId,A.axisValue=L2(x.axis,{value:_}),A.axisValueLabel=S,A.marker=f.makeTooltipMarker("item",zh(A.color),l);var M=ZG(w.formatTooltip(z,!0,null)),T=M.frag;if(T){var k=zb([w],o).get("valueFormatter");$.blocks.push(k?ke({valueFormatter:k},T):T)}M.text&&d.push(M.text),c.push(A)}})}})}),u.blocks.reverse(),d.reverse();var h=i.position,p=s.get("order"),g=KG(u,f,l,p,r.get("useUTC"),s.get("textStyle"));g&&d.unshift(g);var v=l==="richText"?`

`:"<br/>",m=d.join(v);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,c)?this._updatePosition(s,h,a[0],a[1],this._tooltipContent,c):this._showTooltipContent(s,m,c,Math.random()+"",a[0],a[1],h,null,f)})},t.prototype._showSeriesItemTooltip=function(n,i,r){var o=this._ecModel,a=Ut(i),s=a.seriesIndex,l=o.getSeriesByIndex(s),c=a.dataModel||l,u=a.dataIndex,d=a.dataType,f=c.getData(d),h=this._renderMode,p=n.positionDefault,g=zb([f.getItemModel(u),c,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),v=g.get("trigger");if(!(v!=null&&v!=="item")){var m=c.getDataParams(u,d),y=new xO;m.marker=y.makeTooltipMarker("item",zh(m.color),h);var b=ZG(c.formatTooltip(u,!1,d)),x=g.get("order"),_=g.get("valueFormatter"),S=b.frag,$=S?KG(_?ke({valueFormatter:_},S):S,y,h,x,o.get("useUTC"),g.get("textStyle")):b.text,C="item_"+c.name+"_"+u;this._showOrMove(g,function(){this._showTooltipContent(g,$,m,C,n.offsetX,n.offsetY,n.position,n.target,y)}),r({type:"showTip",dataIndexInside:u,dataIndex:f.getRawIndex(u),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,i,r){var o=this._renderMode==="html",a=Ut(i),s=a.tooltipConfig,l=s.option||{},c=l.encodeHTMLContent;if(rt(l)){var u=l;l={content:u,formatter:u},c=!0}c&&o&&l.content&&(l=Ht(l),l.content=Jr(l.content));var d=[l],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&d.push(f),d.push({formatter:l.content});var h=n.positionDefault,p=zb(d,this._tooltipModel,h?{position:h}:null),g=p.get("content"),v=Math.random()+"",m=new xO;this._showOrMove(p,function(){var y=Ht(p.get("formatterParams")||{});this._showTooltipContent(p,g,y,v,n.offsetX,n.offsetY,n.position,i,m)}),r({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,i,r,o,a,s,l,c,u){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var d=this._tooltipContent;d.setEnterable(n.get("enterable"));var f=n.get("formatter");l=l||n.get("position");var h=i,p=this._getNearestPoint([a,s],r,n.get("trigger"),n.get("borderColor"),n.get("defaultBorderColor",!0)),g=p.color;if(f)if(rt(f)){var v=n.ecModel.get("useUTC"),m=Ne(r)?r[0]:r,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=f,y&&(h=fM(m.axisValue,h,v)),h=wQ(h,r,!0)}else if(_t(f)){var b=Qt(function(x,_){x===this._ticket&&(d.setContent(_,u,n,g,l),this._updatePosition(n,l,a,s,d,r,c))},this);this._ticket=o,h=f(r,o,b)}else h=f;d.setContent(h,u,n,g,l),d.show(n,g),this._updatePosition(n,l,a,s,d,r,c)}},t.prototype._getNearestPoint=function(n,i,r,o,a){if(r==="axis"||Ne(i))return{color:o||a};if(!Ne(i))return{color:o||i.color||i.borderColor}},t.prototype._updatePosition=function(n,i,r,o,a,s,l){var c=this._api.getWidth(),u=this._api.getHeight();i=i||n.get("position");var d=a.getSize(),f=n.get("align"),h=n.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),_t(i)&&(i=i([r,o],s,a.el,p,{viewSize:[c,u],contentSize:d.slice()})),Ne(i))r=tn(i[0],c),o=tn(i[1],u);else if(gt(i)){var g=i;g.width=d[0],g.height=d[1];var v=Hl(g,{width:c,height:u});r=v.x,o=v.y,f=null,h=null}else if(rt(i)&&l){var m=zTe(i,p,d,n.get("borderWidth"));r=m[0],o=m[1]}else{var m=MTe(r,o,a,c,u,f?null:20,h?null:20);r=m[0],o=m[1]}if(f&&(r-=iX(f)?d[0]/2:f==="right"?d[0]:0),h&&(o-=iX(h)?d[1]/2:h==="bottom"?d[1]:0),bne(n)){var m=CTe(r,o,a,c,u);r=m[0],o=m[1]}a.moveTo(r,o)},t.prototype._updateContentNotChangedOnAxis=function(n,i){var r=this._lastDataByCoordSys,o=this._cbParamsList,a=!!r&&r.length===n.length;return a&&Z(r,function(s,l){var c=s.dataByAxis||[],u=n[l]||{},d=u.dataByAxis||[];a=a&&c.length===d.length,a&&Z(c,function(f,h){var p=d[h]||{},g=f.seriesDataIndices||[],v=p.seriesDataIndices||[];a=a&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&g.length===v.length,a&&Z(g,function(m,y){var b=v[y];a=a&&m.seriesIndex===b.seriesIndex&&m.dataIndex===b.dataIndex}),o&&Z(f.seriesDataIndices,function(m){var y=m.seriesIndex,b=i[y],x=o[y];b&&x&&x.data!==b.data&&(a=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=i,!!a},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,i){Rt.node||!i.getDom()||(u5(this,"_updatePosition"),this._tooltipContent.dispose(),P5("itemTooltip",i))},t.type="tooltip",t})(wo);function zb(e,t,n){var i=t.ecModel,r;n?(r=new Vn(n,i,i),r=new Vn(t.option,r,i)):r=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof Vn&&(a=a.get("tooltip",!0)),rt(a)&&(a={formatter:a}),a&&(r=new Vn(a,r,i)))}return r}function nX(e,t){return e.dispatchAction||Qt(t.dispatchAction,t)}function MTe(e,t,n,i,r,o,a){var s=n.getSize(),l=s[0],c=s[1];return o!=null&&(e+l+o+2>i?e-=l+o:e+=o),a!=null&&(t+c+a>r?t-=c+a:t+=a),[e,t]}function CTe(e,t,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,i)-a,t=Math.min(t+s,r)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function zTe(e,t,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,c=t.width,u=t.height;switch(e){case"inside":s=t.x+c/2-r/2,l=t.y+u/2-o/2;break;case"top":s=t.x+c/2-r/2,l=t.y-o-a;break;case"bottom":s=t.x+c/2-r/2,l=t.y+u+a;break;case"left":s=t.x-r-a,l=t.y+u/2-o/2;break;case"right":s=t.x+c+a,l=t.y+u/2-o/2}return[s,l]}function iX(e){return e==="center"||e==="middle"}function TTe(e,t,n){var i=w4(e).queryOptionMap,r=i.keys()[0];if(!(!r||r==="series")){var o=Cx(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=n.getViewOfComponentModel(a),l;if(s.group.traverse(function(c){var u=Ut(c).tooltipConfig;if(u&&u.name===e.name)return l=c,!0}),l)return{componentMainType:r,componentIndex:a.componentIndex,el:l}}}}function ATe(e){As(RP),e.registerComponentModel(hTe),e.registerComponentView(kTe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},no),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},no)}var ITe=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:nt.size.m,backgroundColor:nt.color.transparent,borderColor:nt.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:nt.color.primary},subtextStyle:{fontSize:12,color:nt.color.quaternary}},t})(dn),RTe=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,i,r){if(this.group.removeAll(),!!n.get("show")){var o=this.group,a=n.getModel("textStyle"),s=n.getModel("subtextStyle"),l=n.get("textAlign"),c=pt(n.get("textBaseline"),n.get("textVerticalAlign")),u=new pi({style:Ts(a,{text:n.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),d=u.getBoundingRect(),f=n.get("subtext"),h=new pi({style:Ts(s,{text:f,fill:s.getTextColor(),y:d.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=n.get("link"),g=n.get("sublink"),v=n.get("triggerEvent",!0);u.silent=!p&&!v,h.silent=!g&&!v,p&&u.on("click",function(){zG(p,"_"+n.get("target"))}),g&&h.on("click",function(){zG(g,"_"+n.get("subtarget"))}),Ut(u).eventData=Ut(h).eventData=v?{componentType:"title",componentIndex:n.componentIndex}:null,o.add(u),f&&o.add(h);var m=o.getBoundingRect(),y=n.getBoxLayoutParams();y.width=m.width,y.height=m.height;var b=Ix(n,r),x=Hl(y,b.refContainer,n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),c||(c=n.get("top")||n.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?x.y+=x.height:c==="middle"&&(x.y+=x.height/2),c=c||"top"),o.x=x.x,o.y=x.y,o.markRedraw();var _={align:l,verticalAlign:c};u.setStyle(_),h.setStyle(_),m=o.getBoundingRect();var S=x.margin,$=n.getItemStyle(["color","opacity"]);$.fill=n.get("backgroundColor");var C=new si({shape:{x:m.x-S[3],y:m.y-S[0],width:m.width+S[1]+S[3],height:m.height+S[0]+S[2],r:n.get("borderRadius")},style:$,subPixelOptimize:!0,silent:!0});o.add(C)}},t.type="title",t})(wo);function LTe(e){e.registerComponentModel(ITe),e.registerComponentView(RTe)}var ETe=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},U5=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,i,r){this.mergeDefaultAndTheme(n,r),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,i){e.prototype.mergeOption.call(this,n,i),this._updateSelector(n)},t.prototype._updateSelector=function(n){var i=n.selector,r=this.ecModel;i===!0&&(i=n.selector=["all","inverse"]),Ne(i)&&Z(i,function(o,a){rt(o)&&(o={type:o}),i[a]=an(o,ETe(r,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var i=!1,r=0;r<n.length;r++){var o=n[r].get("name");if(this.isSelected(o)){this.select(o),i=!0;break}}!i&&this.select(n[0].get("name"))}},t.prototype._updateData=function(n){var i=[],r=[];n.eachRawSeries(function(l){var c=l.name;r.push(c);var u;if(l.legendVisualProvider){var d=l.legendVisualProvider,f=d.getAllNames();n.isSeriesFiltered(l)||(r=r.concat(f)),f.length?i=i.concat(f):u=!0}else u=!0;u&&$4(l)&&i.push(l.name)}),this._availableNames=r;var o=this.get("data")||i,a=Nt(),s=Ye(o,function(l){return(rt(l)||bn(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new Vn(l,this,this.ecModel))},this);this._data=Kn(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(n){var i=this.option.selected,r=this.get("selectedMode");if(r==="single"){var o=this._data;Z(o,function(a){i[a.get("name")]=!1})}i[n]=!0},t.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},t.prototype.toggleSelected=function(n){var i=this.option.selected;i.hasOwnProperty(n)||(i[n]=!0),this[i[n]?"unSelect":"select"](n)},t.prototype.allSelect=function(){var n=this._data,i=this.option.selected;Z(n,function(r){i[r.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var n=this._data,i=this.option.selected;Z(n,function(r){var o=r.get("name",!0);i.hasOwnProperty(o)||(i[o]=!0),i[o]=!i[o]})},t.prototype.isSelected=function(n){var i=this.option.selected;return!(i.hasOwnProperty(n)&&!i[n])&&Zt(this._availableNames,n)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:nt.size.m,align:"auto",backgroundColor:nt.color.transparent,borderColor:nt.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:nt.color.disabled,inactiveBorderColor:nt.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:nt.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:nt.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:nt.color.tertiary,borderWidth:1,borderColor:nt.color.border},emphasis:{selectorLabel:{show:!0,color:nt.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(dn),gm=ai,B5=Z,$k=Jn,$ne=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new $k),this.group.add(this._selectorGroup=new $k),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,i,r){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var a=n.get("align"),s=n.get("orient");(!a||a==="auto")&&(a=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),c=n.get("selectorPosition",!0);l&&(!c||c==="auto")&&(c=s==="horizontal"?"end":"start"),this.renderInner(a,n,i,r,l,s,c);var u=Ix(n,r).refContainer,d=n.getBoxLayoutParams(),f=n.get("padding"),h=Hl(d,u,f),p=this.layoutInner(n,a,h,o,l,c),g=Hl(Pt({width:p.width,height:p.height},d),u,f);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=dTe(p,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,i,r,o,a,s,l){var c=this.getContentGroup(),u=Nt(),d=i.get("selectedMode"),f=i.get("triggerEvent"),h=[];r.eachRawSeries(function(p){!p.get("legendHoverLink")&&h.push(p.id)}),B5(i.getData(),function(p,g){var v=this,m=p.get("name");if(!this.newlineDisabled&&(m===""||m===`
`)){var y=new $k;y.newline=!0,c.add(y);return}var b=r.getSeriesByName(m)[0];if(!u.get(m))if(b){var x=b.getData(),_=x.getVisual("legendLineStyle")||{},S=x.getVisual("legendIcon"),$=x.getVisual("style"),C=this._createItem(b,m,g,p,i,n,_,$,S,d,o);C.on("click",gm(rX,m,null,o,h)).on("mouseover",gm(F5,b.name,null,o,h)).on("mouseout",gm(q5,b.name,null,o,h)),r.ssr&&C.eachChild(function(w){var z=Ut(w);z.seriesIndex=b.seriesIndex,z.dataIndex=g,z.ssrType="legend"}),f&&C.eachChild(function(w){v.packEventData(w,i,b,g,m)}),u.set(m,!0)}else r.eachRawSeries(function(w){var z=this;if(!u.get(m)&&w.legendVisualProvider){var A=w.legendVisualProvider;if(!A.containName(m))return;var M=A.indexOfName(m),T=A.getItemVisual(M,"style"),k=A.getItemVisual(M,"legendIcon"),I=ws(T.fill);I&&I[3]===0&&(I[3]=.2,T=ke(ke({},T),{fill:kx(I,"rgba")}));var D=this._createItem(w,m,g,p,i,n,{},T,k,d,o);D.on("click",gm(rX,null,m,o,h)).on("mouseover",gm(F5,null,m,o,h)).on("mouseout",gm(q5,null,m,o,h)),r.ssr&&D.eachChild(function(E){var N=Ut(E);N.seriesIndex=w.seriesIndex,N.dataIndex=g,N.ssrType="legend"}),f&&D.eachChild(function(E){z.packEventData(E,i,w,g,m)}),u.set(m,!0)}},this)},this),a&&this._createSelector(a,i,o,s,l)},t.prototype.packEventData=function(n,i,r,o,a){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:o,value:a,seriesIndex:r.seriesIndex};Ut(n).eventData=s},t.prototype._createSelector=function(n,i,r,o,a){var s=this.getSelectorGroup();B5(n,function(l){var c=l.type,u=new pi({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){r.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(u);var d=i.getModel("selectorLabel"),f=i.getModel(["emphasis","selectorLabel"]);eg(u,{normal:d,emphasis:f},{defaultText:l.title}),WN(u)})},t.prototype._createItem=function(n,i,r,o,a,s,l,c,u,d,f){var h=n.visualDrawType,p=a.get("itemWidth"),g=a.get("itemHeight"),v=a.isSelected(i),m=o.get("symbolRotate"),y=o.get("symbolKeepAspect"),b=o.get("icon");u=b||u||"roundRect";var x=DTe(u,o,l,c,h,v,f),_=new $k,S=o.getModel("textStyle");if(_t(n.getLegendIcon)&&(!b||b==="inherit"))_.add(n.getLegendIcon({itemWidth:p,itemHeight:g,icon:u,iconRotate:m,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var $=b==="inherit"&&n.getData().getVisual("symbol")?m==="inherit"?n.getData().getVisual("symbolRotate"):m:0;_.add(OTe({itemWidth:p,itemHeight:g,icon:u,iconRotate:$,itemStyle:x.itemStyle,symbolKeepAspect:y}))}var C=s==="left"?p+5:-5,w=s,z=a.get("formatter"),A=i;rt(z)&&z?A=z.replace("{name}",i??""):_t(z)&&(A=z(i));var M=v?S.getTextColor():o.get("inactiveColor");_.add(new pi({style:Ts(S,{text:A,x:C,y:g/2,fill:M,align:w,verticalAlign:"middle"},{inheritColor:M})}));var T=new si({shape:_.getBoundingRect(),style:{fill:"transparent"}}),k=o.getModel("tooltip");return k.get("show")&&Ax({el:T,componentModel:a,itemName:i,itemTooltipOption:k.option}),_.add(T),_.eachChild(function(I){I.silent=!0}),T.silent=!d,this.getContentGroup().add(_),WN(_),_.__legendDataIndex=r,_},t.prototype.layoutInner=function(n,i,r,o,a,s){var l=this.getContentGroup(),c=this.getSelectorGroup();Xb(n.get("orient"),l,n.get("itemGap"),r.width,r.height);var u=l.getBoundingRect(),d=[-u.x,-u.y];if(c.markRedraw(),l.markRedraw(),a){Xb("horizontal",c,n.get("selectorItemGap",!0));var f=c.getBoundingRect(),h=[-f.x,-f.y],p=n.get("selectorButtonGap",!0),g=n.getOrient().index,v=g===0?"width":"height",m=g===0?"height":"width",y=g===0?"y":"x";s==="end"?h[g]+=u[v]+p:d[g]+=f[v]+p,h[1-g]+=u[m]/2-f[m]/2,c.x=h[0],c.y=h[1],l.x=d[0],l.y=d[1];var b={x:0,y:0};return b[v]=u[v]+p+f[v],b[m]=Math.max(u[m],f[m]),b[y]=Math.min(0,f[y]+h[1-g]),b}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(wo);function DTe(e,t,n,i,r,o,a){function s(v,m){v.lineWidth==="auto"&&(v.lineWidth=m.lineWidth>0?2:0),B5(v,function(y,b){v[b]==="inherit"&&(v[b]=m[b])})}var l=t.getModel("itemStyle"),c=l.getItemStyle(),u=e.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");c.decal=!d||d==="inherit"?i.decal:A2(d,a),c.fill==="inherit"&&(c.fill=i[r]),c.stroke==="inherit"&&(c.stroke=i[u]),c.opacity==="inherit"&&(c.opacity=(r==="fill"?i:n).opacity),s(c,i);var f=t.getModel("lineStyle"),h=f.getLineStyle();if(s(h,n),c.fill==="auto"&&(c.fill=i.fill),c.stroke==="auto"&&(c.stroke=i.fill),h.stroke==="auto"&&(h.stroke=i.fill),!o){var p=t.get("inactiveBorderWidth"),g=c[u];c.lineWidth=p==="auto"?i.lineWidth>0&&g?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:c,lineStyle:h}}function OTe(e){var t=e.icon||"roundRect",n=Mu(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill=nt.color.neutral00,n.style.lineWidth=2),n}function rX(e,t,n,i){q5(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:e??t}),F5(e,t,n,i)}function wne(e){for(var t=e.getZr().storage.getDisplayList(),n,i=0,r=t.length;i<r&&!(n=t[i].states.emphasis);)i++;return n&&n.hoverLayer}function F5(e,t,n,i){wne(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function q5(e,t,n,i){wne(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}function NTe(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(n){for(var i=0;i<t.length;i++)if(!t[i].isSelected(n.name))return!1;return!0})}function Tb(e,t,n){var i=e==="allSelect"||e==="inverseSelect",r={},o=[];n.eachComponent({mainType:"legend",query:t},function(s){i?s[e]():s[e](t.name),oX(s,r),o.push(s.componentIndex)});var a={};return n.eachComponent("legend",function(s){Z(r,function(l,c){s[l?"select":"unSelect"](c)}),oX(s,a)}),i?{selected:a,legendIndex:o}:{name:t.name,selected:a}}function oX(e,t){var n=t||{};return Z(e.getData(),function(i){var r=i.get("name");if(!(r===`
`||r==="")){var o=e.isSelected(r);Ie(n,r)?n[r]=n[r]&&o:n[r]=o}}),n}function PTe(e){e.registerAction("legendToggleSelect","legendselectchanged",ai(Tb,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",ai(Tb,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",ai(Tb,"inverseSelect")),e.registerAction("legendSelect","legendselected",ai(Tb,"select")),e.registerAction("legendUnSelect","legendunselected",ai(Tb,"unSelect"))}function kne(e){e.registerComponentModel(U5),e.registerComponentView($ne),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,NTe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),PTe(e)}var jTe=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(n,i,r){var o=Rx(n);e.prototype.init.call(this,n,i,r),aX(this,n,o)},t.prototype.mergeOption=function(n,i){e.prototype.mergeOption.call(this,n,i),aX(this,this.option,n)},t.type="legend.scroll",t.defaultOption=hQ(U5.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:nt.color.accent50,pageIconInactiveColor:nt.color.accent10,pageIconSize:15,pageTextStyle:{color:nt.color.tertiary},animationDurationUpdate:800}),t})(U5);function aX(e,t,n){var i=e.getOrient(),r=[1,1];r[i.index]=0,Zl(t,n,{type:"box",ignoreSize:!!r})}var sX=Jn,eN=["width","height"],tN=["x","y"],UTe=(function(e){ze(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new sX),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new sX)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(n,i,r,o,a,s,l){var c=this;e.prototype.renderInner.call(this,n,i,r,o,a,s,l);var u=this._controllerGroup,d=i.get("pageIconSize",!0),f=Ne(d)?d:[d,d];p("pagePrev",0);var h=i.getModel("pageTextStyle");u.add(new pi({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(g,v){var m=g+"DataIndex",y=N4(i.get("pageIcons",!0)[i.getOrient().name][v],{onclick:Qt(c._pageGo,c,m,i,o)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});y.name=g,u.add(y)}},t.prototype.layoutInner=function(n,i,r,o,a,s){var l=this.getSelectorGroup(),c=n.getOrient().index,u=eN[c],d=tN[c],f=eN[1-c],h=tN[1-c];a&&Xb("horizontal",l,n.get("selectorItemGap",!0));var p=n.get("selectorButtonGap",!0),g=l.getBoundingRect(),v=[-g.x,-g.y],m=Ht(r);a&&(m[u]=r[u]-g[u]-p);var y=this._layoutContentAndController(n,o,m,c,u,f,h,d);if(a){if(s==="end")v[c]+=y[u]+p;else{var b=g[u]+p;v[c]-=b,y[d]-=b}y[u]+=g[u]+p,v[1-c]+=y[h]+y[f]/2-g[f]/2,y[f]=Math.max(y[f],g[f]),y[h]=Math.min(y[h],g[h]+v[1-c]),l.x=v[0],l.y=v[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(n,i,r,o,a,s,l,c){var u=this.getContentGroup(),d=this._containerGroup,f=this._controllerGroup;Xb(n.get("orient"),u,n.get("itemGap"),o?r.width:null,o?null:r.height),Xb("horizontal",f,n.get("pageButtonItemGap",!0));var h=u.getBoundingRect(),p=f.getBoundingRect(),g=this._showController=h[a]>r[a],v=[-h.x,-h.y];i||(v[o]=u[c]);var m=[0,0],y=[-p.x,-p.y],b=pt(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(g){var x=n.get("pageButtonPosition",!0);x==="end"?y[o]+=r[a]-p[a]:m[o]+=p[a]+b}y[1-o]+=h[s]/2-p[s]/2,u.setPosition(v),d.setPosition(m),f.setPosition(y);var _={x:0,y:0};if(_[a]=g?r[a]:h[a],_[s]=Math.max(h[s],p[s]),_[l]=Math.min(0,p[l]+y[1-o]),d.__rectSize=r[a],g){var S={x:0,y:0};S[a]=Math.max(r[a]-p[a]-b,0),S[s]=_[s],d.setClipPath(new si({shape:S})),d.__rectSize=S[a]}else f.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var $=this._getPageInfo(n);return $.pageIndex!=null&&ci(u,{x:$.contentPosition[0],y:$.contentPosition[1]},g?n:null),this._updatePageInfoView(n,$),_},t.prototype._pageGo=function(n,i,r){var o=this._getPageInfo(i)[n];o!=null&&r.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:i.id})},t.prototype._updatePageInfoView=function(n,i){var r=this._controllerGroup;Z(["pagePrev","pageNext"],function(u){var d=u+"DataIndex",f=i[d]!=null,h=r.childOfName(u);h&&(h.setStyle("fill",f?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var o=r.childOfName("pageText"),a=n.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,c=i.pageCount;o&&a&&o.setStyle("text",rt(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",c==null?"":c+""):a({current:l,total:c}))},t.prototype._getPageInfo=function(n){var i=n.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=n.getOrient().index,s=eN[a],l=tN[a],c=this._findTargetItemIndex(i),u=r.children(),d=u[c],f=u.length,h=f?1:0,p={contentPosition:[r.x,r.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=x(d);p.contentPosition[a]=-g.s;for(var v=c+1,m=g,y=g,b=null;v<=f;++v)b=x(u[v]),(!b&&y.e>m.s+o||b&&!_(b,m.s))&&(y.i>m.i?m=y:m=b,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=b;for(var v=c-1,m=g,y=g,b=null;v>=-1;--v)b=x(u[v]),(!b||!_(y,b.s))&&m.i<y.i&&(y=m,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=m.i),++p.pageCount,++p.pageIndex),m=b;return p;function x(S){if(S){var $=S.getBoundingRect(),C=$[l]+S[l];return{s:C,e:C+$[s],i:S.__legendDataIndex}}}function _(S,$){return S.e>=$&&S.s<=$+o}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var i,r=this.getContentGroup(),o;return r.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===n&&(i=s)}),i??o},t.type="legend.scroll",t})($ne);function BTe(e){e.registerAction("legendScroll","legendscroll",function(t,n){var i=t.scrollDataIndex;i!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(r){r.setScrollDataIndex(i)})})}function FTe(e){As(kne),e.registerComponentModel(jTe),e.registerComponentView(UTe),BTe(e)}function qTe(e){As(kne),As(FTe)}function lX(e,t,n){var i=Fl.createCanvas(),r=t.getWidth(),o=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",e)),i.width=r*n,i.height=o*n,i}var nN=(function(e){ze(t,e);function t(n,i,r){var o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var a;r=r||c2,typeof n=="string"?a=lX(n,i,r):gt(n)&&(a=n,n=a.id),o.id=n,o.dom=a;var s=a.style;return s&&(UK(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=i,o.dpr=r,o}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=lX("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},t.prototype.createRepaintRects=function(n,i,r,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,c=new It(0,0,0,0);function u(y){if(!(!y.isFinite()||y.isZero()))if(a.length===0){var b=new It(0,0,0,0);b.copy(y),a.push(b)}else{for(var x=!1,_=1/0,S=0,$=0;$<a.length;++$){var C=a[$];if(C.intersect(y)){var w=new It(0,0,0,0);w.copy(C),w.union(y),a[$]=w,x=!0;break}else if(l){c.copy(y),c.union(C);var z=y.width*y.height,A=C.width*C.height,M=c.width*c.height,T=M-z-A;T<_&&(_=T,S=$)}}if(l&&(a[S].union(y),x=!0),!x){var b=new It(0,0,0,0);b.copy(y),a.push(b)}l||(l=a.length>=s)}}for(var d=this.__startIndex;d<this.__endIndex;++d){var f=n[d];if(f){var h=f.shouldBePainted(r,o,!0,!0),p=f.__isRendered&&(f.__dirty&_o||!h)?f.getPrevPaintRect():null;p&&u(p);var g=h&&(f.__dirty&_o||!f.__isRendered)?f.getPaintRect():null;g&&u(g)}}for(var d=this.__prevStartIndex;d<this.__prevEndIndex;++d){var f=i[d],h=f&&f.shouldBePainted(r,o,!0,!0);if(f&&(!h||!f.__zr)&&f.__isRendered){var p=f.getPrevPaintRect();p&&u(p)}}var v;do{v=!1;for(var d=0;d<a.length;){if(a[d].isZero()){a.splice(d,1);continue}for(var m=d+1;m<a.length;)a[d].intersect(a[m])?(v=!0,a[d].union(a[m]),a.splice(m,1)):m++;d++}}while(v);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(n,i){var r=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=n+"px",a.height=i+"px"),o.width=n*r,o.height=i*r,s&&(s.width=n*r,s.height=i*r,r!==1&&this.ctxBack.scale(r,r))},t.prototype.clear=function(n,i,r){var o=this.dom,a=this.ctx,s=o.width,l=o.height;i=i||this.clearColor;var c=this.motionBlur&&!n,u=this.lastFrameAlpha,d=this.dpr,f=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/d,l/d));var h=this.domBack;function p(g,v,m,y){if(a.clearRect(g,v,m,y),i&&i!=="transparent"){var b=void 0;if(K2(i)){var x=i.global||i.__width===m&&i.__height===y;b=x&&i.__canvasGradient||f5(a,i,{x:0,y:0,width:m,height:y}),i.__canvasGradient=b,i.__width=m,i.__height=y}else Iye(i)&&(i.scaleX=i.scaleX||d,i.scaleY=i.scaleY||d,b=p5(a,i,{dirty:function(){f.setUnpainted(),f.painter.refresh()}}));a.save(),a.fillStyle=b||i,a.fillRect(g,v,m,y),a.restore()}c&&(a.save(),a.globalAlpha=u,a.drawImage(h,g,v,m,y),a.restore())}!r||c?p(0,0,s,l):r.length&&Z(r,function(g){p(g.x*d,g.y*d,g.width*d,g.height*d)})},t})(Es),cX=1e5,uh=314159,wk=.01,VTe=.001;function HTe(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function ZTe(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var GTe=(function(){function e(t,n,i,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=ke({},i||{}),this.dpr=i.devicePixelRatio||c2,this._singleCanvas=o,this.root=t;var a=t.style;a&&(UK(t),t.innerHTML=""),this.storage=n;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var c=t,u=c.width,d=c.height;i.width!=null&&(u=i.width),i.height!=null&&(d=i.height),this.dpr=i.devicePixelRatio||1,c.width=u*this.dpr,c.height=d*this.dpr,this._width=u,this._height=d;var f=new nN(c,this,this.dpr);f.__builtin__=!0,f.initContext(),l[uh]=f,f.zlevel=uh,s.push(uh),this._domRoot=t}else{this._width=rk(t,0,i),this._height=rk(t,1,i);var h=this._domRoot=ZTe(this._width,this._height);t.appendChild(h)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var n=this.storage.getDisplayList(!0),i=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,i,t,this._redrawId);for(var o=0;o<r.length;o++){var a=r[o],s=this._layers[a];if(!s.__builtin__&&s.refresh){var l=o===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var n=t.length,i=this._hoverlayer;if(i&&i.clear(),!!n){for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,a=0;a<n;a++){var s=t[a];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(cX)),o||(o=i.ctx,o.save()),vh(o,s,r,a===n-1))}o&&o.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(cX)},e.prototype.paintOne=function(t,n){gee(t,n)},e.prototype._paintList=function(t,n,i,r){if(this._redrawId===r){i=i||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,n,i),a=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),a)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var l=this;i2(function(){l._paintList(t,n,i,r)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(uh).ctx,n=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,n,i),this.eachBuiltinLayer(function(r){r.virtual&&t.drawImage(r.dom,0,0,n,i)})},e.prototype._doPaintList=function(t,n,i){for(var r=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],c=this._layers[l];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||i)&&o.push(c)}for(var u=!0,d=!1,f=function(g){var v=o[g],m=v.ctx,y=a&&v.createRepaintRects(t,n,h._width,h._height),b=i?v.__startIndex:v.__drawIndex,x=!i&&v.incremental&&Date.now,_=x&&Date.now(),S=v.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(v.__startIndex===v.__endIndex)v.clear(!1,S,y);else if(b===v.__startIndex){var $=t[b];(!$.incremental||!$.notClear||i)&&v.clear(!1,S,y)}b===-1&&(console.error("For some unknown reason. drawIndex is -1"),b=v.__startIndex);var C,w=function(T){var k={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(C=b;C<v.__endIndex;C++){var I=t[C];if(I.__inHover&&(d=!0),r._doPaintEl(I,v,a,T,k,C===v.__endIndex-1),x){var D=Date.now()-_;if(D>15)break}}k.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=v.__endIndex;else for(var z=h.dpr,A=0;A<y.length;++A){var M=y[A];m.save(),m.beginPath(),m.rect(M.x*z,M.y*z,M.width*z,M.height*z),m.clip(),w(M),m.restore()}else m.save(),w(),m.restore();v.__drawIndex=C,v.__drawIndex<v.__endIndex&&(u=!1)},h=this,p=0;p<o.length;p++)f(p);return Rt.wxa&&Z(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:u,needsRefreshHover:d}},e.prototype._doPaintEl=function(t,n,i,r,o,a){var s=n.ctx;if(i){var l=t.getPaintRect();(!r||l&&l.intersect(r))&&(vh(s,t,o,a),t.setPrevPaintRect(l))}else vh(s,t,o,a)},e.prototype.getLayer=function(t,n){this._singleCanvas&&!this._needsManuallyCompositing&&(t=uh);var i=this._layers[t];return i||(i=new nN("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?an(i,this._layerConfig[t],!0):this._layerConfig[t-wk]&&an(i,this._layerConfig[t-wk],!0),n&&(i.virtual=n),this.insertLayer(t,i),i.initContext()),i},e.prototype.insertLayer=function(t,n){var i=this._layers,r=this._zlevelList,o=r.length,a=this._domRoot,s=null,l=-1;if(!i[t]&&HTe(n)){if(o>0&&t>r[0]){for(l=0;l<o-1&&!(r[l]<t&&r[l+1]>t);l++);s=i[r[l]]}if(r.splice(l+1,0,t),i[t]=n,!n.virtual)if(s){var c=s.dom;c.nextSibling?a.insertBefore(n.dom,c.nextSibling):a.appendChild(n.dom)}else a.firstChild?a.insertBefore(n.dom,a.firstChild):a.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var i=this._zlevelList,r=0;r<i.length;r++){var o=i[r];t.call(n,this._layers[o],o)}},e.prototype.eachBuiltinLayer=function(t,n){for(var i=this._zlevelList,r=0;r<i.length;r++){var o=i[r],a=this._layers[o];a.__builtin__&&t.call(n,a,o)}},e.prototype.eachOtherLayer=function(t,n){for(var i=this._zlevelList,r=0;r<i.length;r++){var o=i[r],a=this._layers[o];a.__builtin__||t.call(n,a,o)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(d,f){d.__dirty=d.__used=!1});function n(d){o&&(o.__endIndex!==d&&(o.__dirty=!0),o.__endIndex=d)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var r=t[i];if(r.zlevel!==t[i-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var o=null,a=0,s,l;for(l=0;l<t.length;l++){var r=t[l],c=r.zlevel,u=void 0;s!==c&&(s=c,a=0),r.incremental?(u=this.getLayer(c+VTe,this._needsManuallyCompositing),u.incremental=!0,a=1):u=this.getLayer(c+(a>0?wk:0),this._needsManuallyCompositing),u.__builtin__||m4("ZLevel "+c+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==l&&(u.__dirty=!0),u.__startIndex=l,u.incremental?u.__drawIndex=-1:u.__drawIndex=l,n(l),o=u),r.__dirty&_o&&!r.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Z(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var i=this._layerConfig;i[t]?an(i[t],n,!0):i[t]=n;for(var r=0;r<this._zlevelList.length;r++){var o=this._zlevelList[r];if(o===t||o===t+wk){var a=this._layers[o];an(a,i[t],!0)}}}},e.prototype.delLayer=function(t){var n=this._layers,i=this._zlevelList,r=n[t];r&&(r.dom.parentNode.removeChild(r.dom),delete n[t],i.splice(Zt(i,t),1))},e.prototype.resize=function(t,n){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var r=this._opts,o=this.root;if(t!=null&&(r.width=t),n!=null&&(r.height=n),t=rk(o,0,r),n=rk(o,1,r),i.style.display="",this._width!==t||n!==this._height){i.style.width=t+"px",i.style.height=n+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,n);this.refresh(!0)}this._width=t,this._height=n}else{if(t==null||n==null)return;this._width=t,this._height=n,this.getLayer(uh).resize(t,n)}return this},e.prototype.clearLayer=function(t){var n=this._layers[t];n&&n.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[uh].dom;var n=new nN("image",this,t.pixelRatio||this.dpr);n.initContext(),n.clear(!1,t.backgroundColor||this._backgroundColor);var i=n.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=n.dom.width,o=n.dom.height;this.eachLayer(function(d){d.__builtin__?i.drawImage(d.dom,0,0,r,o):d.renderToCanvas&&(i.save(),d.renderToCanvas(i),i.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,c=s.length;l<c;l++){var u=s[l];vh(i,u,a,l===c-1)}return n.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e})();function WTe(e){e.registerPainter("canvas",GTe)}As([hMe,ZCe,Aze,K2e,SMe,TCe,xCe,RP,uTe,tTe,qTe,nne,LTe,ATe,A2e,WTe]);function ua(e,t){try{let{color:n}=on(e,t);return n.startsWith("#")?n:`#${n}`}catch{return}}function YTe(e,t){let n=e.numAttr("pos");if(n!==void 0)for(let i of e.allChildren()){let r=i.localName;if(r==="srgbClr"||r==="schemeClr"||r==="sysClr"||r==="prstClr")try{let o=on(e,t);return{color:o.color.startsWith("#")?o.color:`#${o.color}`,alpha:o.alpha,pos:n/1e5}}catch{if(r==="sysClr"){let o=i.attr("lastClr");if(o){let a=i.child("alpha"),s=a.exists()?(a.numAttr("val")??1e5)/1e5:1;return{color:`#${o}`,alpha:s,pos:n/1e5}}}return}}}function XTe(e,t){let n=e.child("spPr");if(!n.exists())return;let i=n.child("solidFill");if(i.exists()){let a=ua(i,t);if(a)return a}let r=n.child("gradFill");if(r.exists()){let a=eAe(r,t);if(a)return a}let o=n.child("ln");if(o.exists()){let a=o.child("solidFill");if(a.exists()){let s=ua(a,t);if(s)return s}}}function KTe(e){let t=e.child("spPr").child("ln").numAttr("w");if(!(t===void 0||t<=0))return Math.max(1,Number((t/12700).toFixed(3)))}function Mne(e){return Number(dpe(e).toFixed(3))}function JTe(e){return e.child("spPr").child("ln").child("noFill").exists()}function QTe(e){return e==="dotted"?"dotted":e==="dashed"?"dashed":"solid"}function EP(e,t){if(!e.exists()||e.child("noFill").exists())return;let n=_x(e,t);if(!(n.width<=0||n.color==="transparent"))return{color:n.color,width:Math.max(n.width,.5),type:QTe(n.dash)}}function eAe(e,t){let n=e.child("gsLst");if(!n.exists())return;let i=[];for(let u of n.children("gs")){let d=YTe(u,t);if(d){let f=d.color.replace("#",""),h=parseInt(f.substring(0,2),16),p=parseInt(f.substring(2,4),16),g=parseInt(f.substring(4,6),16);i.push({offset:d.pos,color:`rgba(${h},${p},${g},${d.alpha})`})}}if(i.length<2)return;i.sort((u,d)=>u.offset-d.offset);let r=e.child("lin"),o=(r.exists()?r.numAttr("ang")??54e5:54e5)/6e4*Math.PI/180,a=.5-.5*Math.cos(o),s=.5-.5*Math.sin(o),l=.5+.5*Math.cos(o),c=.5+.5*Math.sin(o);return new uM(a,s,l,c,i)}function tAe(e,t){let n=e.children("dPt");if(n.length===0)return;let i=[];for(let r of n){let o=r.child("idx").numAttr("val");if(o===void 0)continue;let a=r.child("spPr");if(!a.exists())continue;let s={},l=a.child("solidFill");if(l.exists()){let u=ua(l,t);u&&(s.color=u)}let c=EP(a.child("ln"),t);if(c&&(s.borderColor=c.color,s.borderWidth=c.width,s.borderType=c.type),Object.keys(s).length>0){for(;i.length<=o;)i.push(void 0);i[o]=s}}return i.length>0?i:void 0}var bM=Symbol("pptxExplicitFontSize"),xm="#000000",nAe=10,V5="#898989",Cne={color:V5,width:1,type:"solid"},iN={color:"#868686",width:1,type:"solid"},iAe=["accent1","accent2","accent3","accent4","accent5","accent6"];function DP(e){return e[bM]=!0,e}function H5(e){return!!(e&&typeof e=="object"&&e[bM])}var rAe=["barChart","bar3DChart","lineChart","line3DChart","areaChart","area3DChart","pieChart","pie3DChart","doughnutChart","radarChart","scatterChart","bubbleChart","stockChart","surface3DChart"];function zne(e){let t=e.child("tx");if(!t.exists())return;let n=t.child("rich");if(n.exists()){let r=[];for(let o of n.children("p")){let a=[];for(let l of o.allChildren()){if(l.localName==="br"){a.push(`
`);continue}if(l.localName!=="r"&&l.localName!=="fld")continue;let c=l.child("t").text();c&&a.push(c)}let s=a.join("");s&&r.push(s)}if(r.length>0)return r.join(`
`)}let i=t.child("strRef");if(i.exists()){let r=i.child("strCache").children("pt");if(r.length>0)return r[0].child("v").text()}}function uX(e){return e.replace(/\\/g,"\\\\").replace(/\{/g,"\\{").replace(/\}/g,"\\}").replace(/\|/g,"\\|")}function Tne(e){if(!e)return;let t={...e.color?{color:e.color}:{},...e.fontSize!==void 0?{fontSize:e.fontSize}:{},...e.fontFamily?{fontFamily:e.fontFamily}:{},...e.textShadowColor?{textShadowColor:e.textShadowColor}:{},...e.textShadowBlur!==void 0?{textShadowBlur:e.textShadowBlur}:{},...e.textShadowOffsetX!==void 0?{textShadowOffsetX:e.textShadowOffsetX}:{},...e.textShadowOffsetY!==void 0?{textShadowOffsetY:e.textShadowOffsetY}:{}};return e.bold!==void 0&&(t.fontWeight=e.bold?"bold":"normal"),Object.keys(t).length>0?t:void 0}function Ane(e,t){let n=e.child("txPr");if(n.exists())for(let i of n.children("p")){let r=i.child("pPr");if(!r.exists())continue;let o=r.child("defRPr");if(!o.exists())continue;let a=o.child("solidFill");if(a.exists())return ua(a,t)}}function oAe(e){let t=e.replace(/^#/,""),n=t.length===3?t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:t,i=parseInt(n,16);return{r:i>>16&255,g:i>>8&255,b:i&255}}function aAe(e,t){let n=e.startsWith("#")?e:`#${e}`;if(t>=1)return n;let{r:i,g:r,b:o}=oAe(n);return`rgba(${i},${r},${o},${t.toFixed(3)})`}function sAe(e,t){let n=e.child("effectLst").child("outerShdw");if(n.exists())try{let{color:i,alpha:r}=on(n,t);if(!i||r<=0)return;let o=De(n.numAttr("dist")??0),a=De(n.numAttr("blurRad")??0),s=(n.numAttr("dir")??0)/6e4,l=o*Math.cos(s*Math.PI/180),c=o*Math.sin(s*Math.PI/180);return{textShadowColor:aAe(i,r),textShadowBlur:a,textShadowOffsetX:l,textShadowOffsetY:c}}catch{return}}function Ine(e,t){if(!e.exists())return;let n={},i=e.child("solidFill");if(i.exists()){let d=ua(i,t);d&&(n.color=d)}let r=e.numAttr("sz");r!==void 0&&r>0&&(n.fontSize=Math.round(r/100),n[bM]=!0);let o=e.attr("b");o!==void 0&&(n.bold=yr(o));let a=e.child("latin").attr("typeface"),s=e.child("ea").attr("typeface"),l=e.child("cs").attr("typeface"),c=Tm([a,s,l],t,[e.attr("lang"),e.attr("altLang")]);c.length>0&&(n.fontFamily=Am(c));let u=sAe(e,t);return u&&Object.assign(n,u),n.color||n.fontSize!==void 0||n.bold!==void 0||n.fontFamily!==void 0||n.textShadowColor!==void 0?n:void 0}function Rne(e,t){for(let n of e.children("p")){let i=n.child("pPr");if(!i.exists())continue;let r=i.child("defRPr"),o=Ine(r,t);if(o)return o}}function Ox(e,t){let n=e.child("txPr");if(n.exists())return Rne(n,t)}function Lne(e,t){return Ox(e,t)??Rne(e.child("tx").child("rich"),t)}function lAe(e,t){let n=e.child("tx").child("rich");if(!n.exists())return;let i=[],r={},o=0;for(let a of n.children("p")){let s=[];for(let c of a.allChildren()){if(c.localName==="br"){s.push(`
`);continue}if(c.localName!=="r"&&c.localName!=="fld")continue;let u=c.child("t").text();if(!u)continue;let d=Tne(Ine(c.child("rPr"),t));if(!d){s.push(uX(u));continue}let f=`r${o++}`;r[f]=d,s.push(`{${f}|${uX(u)}}`)}let l=s.join("");l&&i.push(l)}if(Object.keys(r).length!==0)return{text:i.join(`
`),rich:r}}function cAe(e){let t=Tm(["+mn-lt","+mn-ea","+mj-lt","+mj-ea"],e);return t.length>0?Am(t):void 0}var Z5={deleted:!1,tickLblPos:"nextTo",hasMajorGridlines:!1,orientation:"minMax"};function dX(e,t){let n=e.theme.colorScheme.get(t);return n?.replace("#","").toUpperCase()}function uAe(e){if(dX(e,"accent1")==="4F81BD"&&dX(e,"accent2")==="C0504D")return"#000000"}function dAe(e,t){let n=e.child("txPr");if(n.exists())for(let i of n.children("p")){let r=i.child("pPr");if(!r.exists())continue;let o=r.child("defRPr");if(!o.exists())continue;let a=o.child("solidFill");if(a.exists())return ua(a,t)}}function hAe(e,t){let n=e.child("spPr").child("ln");if(!n.exists())return;let i=n.child("solidFill");if(i.exists())return ua(i,t)}function fAe(e,t){let n=e.child("majorGridlines").child("spPr").child("ln");return EP(n,t)}function pAe(e){let t=(e.child("tx").child("rich").child("bodyPr").exists()?e.child("tx").child("rich").child("bodyPr"):e.child("txPr").child("bodyPr")).numAttr("rot");if(t===void 0)return;let n=t/6e4;return Number(n.toFixed(3))}function mAe(e,t){let n=e.child("title");if(!n.exists())return{};let i=zne(n);return i?{title:i,titleStyle:Lne(n,t),titleRotation:pAe(n)}:{}}function V2(e,t){if(!e.exists())return{...Z5};let n=Ea(e.child("delete")),i=e.child("tickLblPos").attr("val")||"nextTo",r=e.child("crosses").attr("val"),o=e.child("numFmt"),a=o.exists()&&o.attr("formatCode")||void 0,s=e.child("scaling"),l=s.child("min"),c=s.child("max"),u=l.exists()?parseFloat(l.attr("val")||""):void 0,d=c.exists()?parseFloat(c.attr("val")||""):void 0,f=e.child("majorGridlines").exists(),h=e.child("majorTickMark").attr("val"),p=s.child("orientation").attr("val")||"minMax",g=Ox(e,t),v=g?.color??dAe(e,t),m=g?.fontSize,y=uAe(t),b=hAe(e,t)??y,x=f?fAe(e,t)??(y?{...Cne,color:y}:void 0):void 0,_=mAe(e,t);return{deleted:n,tickLblPos:i,crosses:r,numFmt:a&&a!=="General"?a:void 0,min:u!==void 0&&!isNaN(u)?u:void 0,max:d!==void 0&&!isNaN(d)?d:void 0,hasMajorGridlines:f,majorTickMark:h,orientation:p,..._,labelColor:v,labelFontSize:m,lineColor:b,majorGridlineStyle:x}}function Ene(e){return e!=null&&e.exists()?e.children("axId").map(t=>t.attr("val")).filter(t=>t!==void 0&&t!==""):[]}function hX(e,t,n){var i;if(n){for(let r of t){let o=e.children(r).find(a=>a.child("axId").attr("val")===n);if(o)return o}return new jl(null)}for(let r of t){let o=e.children(r);if((i=o[0])!=null&&i.exists())return o[0]}return new jl(null)}function xM(e,t,n){let i=Ene(n),r=i[0],o=i[1],a=hX(e,["valAx"],o),s=hX(e,["catAx","dateAx"],r);return{valueAxis:V2(a,t),categoryAxis:V2(s,t)}}function Dne(e,t){let n=e.children("valAx"),i={...Z5},r={...Z5};for(let o of n){let a=o.child("axPos").attr("val")??"",s=V2(o,t);a==="b"||a==="t"?i=s:(a==="l"||a==="r")&&(r=s)}return n.length===1&&(r=V2(n[0],t)),{xAxis:i,yAxis:r}}function Is(e,t,n){var i,r,o,a;if(t.deleted){e.axisLabel={...e.axisLabel||{},show:!1},e.axisLine={show:!1},e.axisTick={show:!1},n==="value"&&(e.splitLine={show:!1});return}if(t.orientation==="maxMin"&&(e.inverse=!0),t.crosses==="autoZero"){let s=e.axisLine||{};e.axisLine={...s,onZero:!0}}if(t.title){e.name=t.title,e.nameLocation="middle",e.nameGap=n==="value"?42:28,t.titleRotation!==void 0&&(e.nameRotate=t.titleRotation);let s={};(i=t.titleStyle)!=null&&i.color&&(s.color=t.titleStyle.color),((r=t.titleStyle)==null?void 0:r.fontSize)!==void 0&&(s.fontSize=t.titleStyle.fontSize),(o=t.titleStyle)!=null&&o.fontFamily&&(s.fontFamily=t.titleStyle.fontFamily),((a=t.titleStyle)==null?void 0:a.bold)!==void 0&&(s.fontWeight=t.titleStyle.bold?"bold":"normal"),Object.keys(s).length>0&&(e.nameTextStyle=s)}if(t.tickLblPos==="none"&&(e.axisLabel={...e.axisLabel||{},show:!1}),t.majorTickMark==="none"){let s=e.axisTick||{};e.axisTick={...s,show:!1}}else if(!t.deleted){let s=e.axisTick||{},l=s.lineStyle||{};l.color===void 0&&(e.axisTick={...s,lineStyle:{...l,color:t.lineColor??V5}})}if(n==="value"&&(t.min!==void 0&&(e.min=t.min),t.max!==void 0&&(e.max=t.max)),n==="value"&&!t.deleted&&t.tickLblPos!=="none"){let s=e.axisLabel||{};if(!s.formatter){let l=t.numFmt;e.axisLabel={...s,formatter:c=>eo(c,l)}}}if(!t.deleted&&t.tickLblPos!=="none"){let s=e.axisLabel||{};s.fontSize===void 0&&(e.axisLabel={...s,fontSize:nAe})}if(n==="value")if(!t.hasMajorGridlines)e.splitLine={show:!1};else if(t.majorGridlineStyle){let s=e.splitLine||{},l=s.lineStyle||{};e.splitLine={...s,show:!0,lineStyle:{...l,...t.majorGridlineStyle}}}else{let s=e.splitLine||{},l=s.lineStyle||{};e.splitLine={...s,show:!0,lineStyle:{...Cne,...l}}}if(t.labelColor||!t.deleted){let s=e.axisLabel||{},l=t.labelColor??(s.color===void 0?xm:void 0);l&&(e.axisLabel={...s,color:l})}if(t.labelFontSize!==void 0){let s=e.axisLabel||{};e.axisLabel={...s,fontSize:t.labelFontSize}}if(t.lineColor||!t.deleted){let s=e.axisLine||{},l=s.lineStyle||{},c=t.lineColor??(l.color===void 0?V5:void 0);c&&(e.axisLine={...s,show:s.show??!0,lineStyle:{...l,color:c}})}}function Ab(e,t){return Ea(e.child(t))}function One(e){let t=e.child("layout").child("manualLayout");if(!t.exists())return;let n={},i=t.child("x").numAttr("val"),r=t.child("y").numAttr("val"),o=t.child("w").numAttr("val"),a=t.child("h").numAttr("val");return i!==void 0&&(n.x=i),r!==void 0&&(n.y=r),o!==void 0&&(n.width=o),a!==void 0&&(n.height=a),Object.keys(n).length>0?n:void 0}function xu(e,t){let n=e.child("dLbls");if(!n.exists())return;let i=Ab(n,"showVal"),r=Ab(n,"showCatName"),o=Ab(n,"showSerName"),a=Ab(n,"showPercent"),s=Ab(n,"showLeaderLines"),l=n.child("dLblPos"),c=l.exists()&&l.attr("val")||void 0,u=One(n),d=Ox(n,t),f=d?.color??Ane(n,t),h=d?.fontSize,p=d?.bold,g=Nne(n,t);if(!(!i&&!r&&!o&&!a))return{showVal:i,showCatName:r,showSerName:o,showPercent:a,position:c,showLeaderLines:s,manualLayout:u,color:f,fontSize:h,bold:p,...g}}function vm(e,t){let n=e.child(t);if(n.exists())return Ea(n)}function Nne(e,t){let n={},i=e.child("spPr");if(i.exists()){let o=i.child("solidFill");if(o.exists()){let s=ua(o,t);s&&(n.backgroundColor=s)}let a=i.child("ln");if(a.exists()&&!a.child("noFill").exists()){let s=a.child("solidFill");if(s.exists()){let c=ua(s,t);c&&(n.borderColor=c)}let l=a.numAttr("w");l!==void 0&&l>0?n.borderWidth=Math.max(1,De(l)):n.borderColor&&(n.borderWidth=1)}}let r=e.child("txPr").child("bodyPr");if(r.exists()){let o=De(r.numAttr("tIns")??0),a=De(r.numAttr("rIns")??0),s=De(r.numAttr("bIns")??0),l=De(r.numAttr("lIns")??0);(o||a||s||l)&&(n.padding=[o,a,s,l])}return n}function OP(e,t){let n=new Map;if(!e.exists())return n;for(let i of e.children("dLbl")){let r=i.child("idx").numAttr("val");if(r===void 0)continue;let o=Ox(i,t),a=i.child("dLblPos"),s={},l=vm(i,"delete"),c=vm(i,"showVal"),u=vm(i,"showCatName"),d=vm(i,"showSerName"),f=vm(i,"showPercent"),h=vm(i,"showLeaderLines"),p=One(i);if(c!==void 0&&(s.showVal=c),u!==void 0&&(s.showCatName=u),d!==void 0&&(s.showSerName=d),f!==void 0&&(s.showPercent=f),l===!0&&(s.deleted=!0,s.showVal=!1,s.showCatName=!1,s.showSerName=!1,s.showPercent=!1),h!==void 0&&(s.showLeaderLines=h),p&&(s.manualLayout=p),a.exists()&&(s.position=a.attr("val")||void 0),o!=null&&o.color)s.color=o.color;else{let g=Ane(i,t);g&&(s.color=g)}o?.fontSize!==void 0&&(s.fontSize=o.fontSize),o?.bold!==void 0&&(s.bold=o.bold),Object.assign(s,Nne(i,t)),Object.keys(s).length>0&&n.set(r,s)}return n}function gAe(e){let t=e.child("strRef");if(t.exists()){let i=t.child("strCache").children("pt");if(i.length>0)return i[0].child("v").text()}let n=e.child("v");return n.exists()?n.text():""}function vAe(e,t){let n=new Array(t).fill(0),i=!1,r=e.child("explosion").numAttr("val")??0;r>0&&(n.fill(r),i=!0);let o=e.children("dPt");for(let a of o){let s=a.child("idx").numAttr("val");if(s===void 0)continue;let l=a.child("explosion").numAttr("val");l!==void 0&&l>0&&(n[s]=l,i=!0)}return i?n:void 0}function yAe(e,t){let n=[];for(let i of e.children("ser")){let r=i.child("tx"),o=gAe(r),a=i.child("order").numAttr("val")??n.length,s=i.child("cat"),l=t7(s),c=i.child("val"),u=fN(c),d=u.values,f=u.blankIndices,h=uye(c),p=i.child("xVal"),g=i.child("yVal"),v;if(g.exists()){let D=fN(g);D.values.length>0&&(d.length=0,d.push(...D.values),f=D.blankIndices)}if(p.exists()&&(v=n7(p),l.length===0)){let D=t7(p);D.length>0&&l.push(...D)}let m=i.child("bubbleSize"),y=m.exists()?n7(m):void 0,b=XTe(i,t),x=KTe(i),_=JTe(i),S=tAe(i,t),$=S?.map(D=>D?.color),C=i.child("invertIfNegative"),w=C.exists()?Ea(C):void 0,z=i.child("marker"),A=z.child("symbol").attr("val"),M=z.child("size").numAttr("val"),T=M!==void 0?Mne(M):void 0,k=i.child("smooth"),I=k.exists()?Ea(k):void 0;n.push({name:o,order:a,categories:l,values:d,xValues:v,bubbleSizes:y,colorHex:b,dataPointColors:$,dataPointStyles:S,formatCode:h,blankIndices:f,invertIfNegative:w,markerSymbol:A,markerSize:T,smooth:I,lineWidth:x,lineNoFill:_})}return n.sort((i,r)=>i.order-r.order),n}function bAe(e){let t=e.child("dTable");return t.exists()?{showKeys:LK(t.child("showKeys").attr("val"),!0)}:void 0}function xAe(e,t){var n,i;let r=document.createElement("table");r.style.width="100%",r.style.borderCollapse="collapse",r.style.fontSize="10px",r.style.marginTop="8px";let{seriesArr:o,showKeys:a,formatCode:s}=e,l=((n=o.find(p=>p.categories.length>0))==null?void 0:n.categories)||[],c=s,u=document.createElement("thead"),d=document.createElement("tr"),f=document.createElement("th");f.style.border="1px solid #ccc",f.style.padding="2px 6px",f.style.textAlign="left",f.style.fontWeight="bold",d.appendChild(f);for(let p=0;p<l.length;p++){let g=document.createElement("th");g.style.border="1px solid #ccc",g.style.padding="2px 6px",g.style.textAlign="right",g.style.fontWeight="bold",g.textContent=l[p]??"",d.appendChild(g)}u.appendChild(d),r.appendChild(u);let h=document.createElement("tbody");for(let p=0;p<o.length;p++){let g=o[p],v=document.createElement("tr"),m=document.createElement("td");if(m.style.border="1px solid #ccc",m.style.padding="2px 6px",m.style.textAlign="left",m.style.fontWeight="bold",a&&t&&t[p]){let y=document.createElement("span");y.style.display="inline-block",y.style.width="8px",y.style.height="8px",y.style.marginRight="4px",y.style.verticalAlign="middle",y.style.backgroundColor=t[p],m.appendChild(y)}m.appendChild(document.createTextNode(g.name||"")),v.appendChild(m);for(let y=0;y<l.length;y++){let b=document.createElement("td");b.style.border="1px solid #ccc",b.style.padding="2px 6px",b.style.textAlign="right";let x=g.values[y];b.textContent=x!==void 0&&!((i=g.blankIndices)!=null&&i.has(y))?eo(x,c??g.formatCode):"",v.appendChild(b)}h.appendChild(v)}return r.appendChild(h),r}function _Ae(e){let t=e.child("clrMapOvr");if(!t.exists())return;let n=t.element,i=t.child("overrideClrMapping");if(i.exists()&&i.element)n=i.element;else if(t.child("masterClrMapping").exists())return;if(!n)return;let r=n.attributes,o=new Map;for(let a=0;a<r.length;a++){let s=r[a];o.set(s.localName,s.value)}return o.size>0?o:void 0}function SAe(e,t){let n=_Ae(e);return n?{...t,layout:{...t.layout,colorMapOverride:n},colorCache:new Map}:t}function $Ae(e){let t=e.child("style").numAttr("val");if(t!==void 0)return t;let n=e.child("AlternateContent");if(n.exists())for(let i of n.allChildren()){let r=i.child("style").numAttr("val");if(r!==void 0)return r}}var wAe=new Set(["srgbClr","schemeClr","sysClr","prstClr","hslClr","scrgbClr"]);function kAe(e,t){if(!e.element||!wAe.has(e.localName))return;let n=e.element.ownerDocument.createElementNS(e.element.namespaceURI,"solidFill");return n.appendChild(e.element.cloneNode(!0)),ua(new jl(n),t)}function MAe(e,t){if(!(e!=null&&e.exists()))return[];let n=[];for(let i of e.allChildren()){let r=kAe(i,t);r&&n.push(r)}return n}function Pne(e){return iAe.map(t=>e.theme.colorScheme.get(t)).filter(t=>!!t).map(t=>t.startsWith("#")?t:`#${t}`)}function CAe(e,t){let n=e.replace("#","");if(!/^[0-9a-fA-F]{6}$/.test(n))return e;let i=r=>Math.max(0,Math.min(255,Math.round(parseInt(n.slice(r,r+2),16)*t)));return`#${[i(0),i(2),i(4)].map(r=>r.toString(16).padStart(2,"0")).join("")}`}function zAe(e,t={}){let n=Pne(e);return t.darken===!1?n:n.map(i=>CAe(i,.88))}function TAe(e,t,n){var i;if(n){let o=MAe((i=t.presentation.chartColorStyles)==null?void 0:i.get(n),t);if(o.length>0)return o}let r=Pne(t);return r.length===0?void 0:($Ae(e),r)}function ar(e){let t=Math.round(e*1e4)/100;return`${Number.isInteger(t)?t.toFixed(0):t}%`.replace(/\.0%$/,"%")}function Eh(e,t){let n=e.child("legend");if(!n.exists())return;let i=n.child("legendPos"),r=i.exists()&&i.attr("val")||"r",o=["b","t","l","r","tr"].includes(r)?r:"r",a=Ea(n.child("overlay")),s={confine:!0},l="14%",c;switch(o){case"b":c={...s,bottom:"5%",orient:"horizontal"};break;case"t":c={...s,top:l,orient:"horizontal"};break;case"l":c={...s,left:"2%",top:"middle",orient:"vertical"};break;case"r":c={...s,right:"2%",top:"middle",orient:"vertical"};break;case"tr":c={...s,top:l,right:"2%",orient:"vertical"};break;default:c={...s,right:"2%",top:"middle",orient:"vertical"};break}return{option:c,position:o,overlay:a,textStyle:(()=>{let u=Ox(n,t);if(!u)return;let d={...u.color?{color:u.color}:{},...u.fontSize!==void 0?{fontSize:u.fontSize}:{},...u.bold===!0?{fontWeight:"bold"}:{},...u.fontFamily?{fontFamily:u.fontFamily}:{},...u.textShadowColor?{textShadowColor:u.textShadowColor}:{},...u.textShadowBlur!==void 0?{textShadowBlur:u.textShadowBlur}:{},...u.textShadowOffsetX!==void 0?{textShadowOffsetX:u.textShadowOffsetX}:{},...u.textShadowOffsetY!==void 0?{textShadowOffsetY:u.textShadowOffsetY}:{}};return H5(u)&&(d[bM]=!0),d})(),manualLayout:AAe(n)}}function AAe(e){let t=e.child("layout").child("manualLayout");if(!t.exists())return{};let n={},i=t.child("x").numAttr("val"),r=t.child("y").numAttr("val"),o=t.child("w").numAttr("val"),a=t.child("h").numAttr("val");return i!==void 0&&(n.left=ar(i)),r!==void 0&&(n.top=ar(r)),o!==void 0&&(n.width=ar(o)),a!==void 0&&(n.height=ar(a)),n}function NP(e){return e?.position==="t"||e?.position==="tr"}function Nx(e,t){let n=NP(t),i=t?.overlay??!1;return e?n&&!i?52:68:n&&!i?32:20}function Dh(e,t){if(NP(t))return e?26:6}function IAe(e){if(!e||e.overlay||!e.option||typeof e.option!="object")return"none";let t=e.option;return t.bottom!==void 0?"bottom":t.top!==void 0&&t.left===void 0&&t.right===void 0?"top":t.left!==void 0?"left":t.right!==void 0?"right":"none"}function Px(e){if(e){let t=e.option;if(t&&t.bottom!==void 0)return 35}return 20}function Oh(e,t,n,i,r){if(!e)return{show:!1};let o=t?.manualLayout??{},a=o.top!==void 0?o.top:n!==void 0?n:void 0,s=r.fontSize??10,l=i.some(h=>typeof h=="object"&&h.icon),c=l&&i.every(h=>typeof h=="object"&&typeof h.icon=="string"&&h.icon===i[0].icon)?i[0].icon:void 0,u=c!==void 0&&!c.startsWith("path://"),d=u?i.map(h=>typeof h=="string"?h:h.name):i,f=i.some(h=>typeof h=="object"&&typeof h.icon=="string"&&h.icon.startsWith("path://"));return{...e,...o,...a!==void 0?{top:a}:{},...u?{icon:c}:l?{}:{icon:"rect"},itemWidth:f?Math.max(24,Math.round(s*2.2)):s,itemHeight:f?Math.max(8,Math.round(s*.9)):s,data:d,textStyle:r}}function H2(e){return e?Array.isArray(e)?e[0]??null:e:null}function ym(e,t){return typeof e=="string"?e:t}function RAe(e,t){let n=e?.lineStyle??{},i=e?.itemStyle??{};return(typeof n.color=="string"?n.color:void 0)??(typeof i.color=="string"?i.color:void 0)??t}function Z2(){return"path://M2 4.5 L22 4.5"}function PP(e){let t=e;return(Array.isArray(t.radar)?t.radar:t.radar?[t.radar]:[]).filter(n=>typeof n=="object"&&n!==null).map(n=>{let i=n.name??(n.name={});return i.textStyle??(i.textStyle={})})}function jP(e){let t=e;return(Array.isArray(t.radar)?t.radar:t.radar?[t.radar]:[]).filter(n=>typeof n=="object"&&n!==null).flatMap(n=>n.indicator??[]).map(n=>n.axisLabel).filter(n=>!!n)}function LAe(e,t){var n,i,r,o;let a=e;(i=(n=a.title)==null?void 0:n.textStyle)!=null&&i.fontSize&&a.title.textStyle.fontSize<=14&&(a.title.textStyle.fontSize=t);for(let d of PP(e)){let f=d.fontSize;(typeof f!="number"||f<=10)&&(d.fontSize=t)}for(let d of jP(e)){let f=d.fontSize;(typeof f!="number"||f<=10)&&(d.fontSize=t)}let s=Array.isArray(a.series)?a.series:a.series?[a.series]:[];for(let d of s)(r=d?.label)!=null&&r.fontSize&&d.label.fontSize<=10&&!H5(d.label)&&(d.label.fontSize=t);let l=d=>{if(!(d!=null&&d.axisLabel))return;let f=d.axisLabel.fontSize;(f===void 0||f<=10)&&(d.axisLabel.fontSize=t)},c=Array.isArray(a.xAxis)?a.xAxis:a.xAxis?[a.xAxis]:[],u=Array.isArray(a.yAxis)?a.yAxis:a.yAxis?[a.yAxis]:[];for(let d of[...c,...u])l(d);if((o=a.legend)!=null&&o.textStyle){let d=a.legend.textStyle.fontSize;(d===void 0||d<=10)&&!H5(a.legend.textStyle)&&(a.legend.textStyle.fontSize=t)}}function EAe(e,t){var n,i,r;let o=e;(n=o.title)!=null&&n.textStyle&&!o.title.textStyle.fontFamily&&(o.title.textStyle.fontFamily=t),(i=o.title)!=null&&i.textStyle&&!o.title.textStyle.fontWeight&&(o.title.textStyle.fontWeight="bold");let a=c=>{if(!c)return;let u=c.axisLabel??(c.axisLabel={});u.fontFamily||(u.fontFamily=t)},s=Array.isArray(o.xAxis)?o.xAxis:o.xAxis?[o.xAxis]:[],l=Array.isArray(o.yAxis)?o.yAxis:o.yAxis?[o.yAxis]:[];for(let c of[...s,...l])a(c);(r=o.legend)!=null&&r.textStyle&&!o.legend.textStyle.fontFamily&&(o.legend.textStyle.fontFamily=t);for(let c of PP(e))c.fontFamily||(c.fontFamily=t);for(let c of jP(e))c.fontFamily||(c.fontFamily=t)}function DAe(e){var t;let n=e;(t=n.title)!=null&&t.textStyle&&n.title.textStyle.color===void 0&&(n.title.textStyle.color=xm);let i=Array.isArray(n.legend)?n.legend:n.legend?[n.legend]:[];for(let a of i){if(!a||a.show===!1)continue;let s=a.textStyle??(a.textStyle={});s.color===void 0&&(s.color=xm)}let r=Array.isArray(n.xAxis)?n.xAxis:n.xAxis?[n.xAxis]:[],o=Array.isArray(n.yAxis)?n.yAxis:n.yAxis?[n.yAxis]:[];for(let a of[...r,...o]){if(!(a!=null&&a.name))continue;let s=a.nameTextStyle??(a.nameTextStyle={});s.color===void 0&&(s.color=xm)}for(let a of PP(e))a.color===void 0&&(a.color=xm);for(let a of jP(e))a.color===void 0&&(a.color=xm)}function OAe(e,t,n){var i,r,o;let a=e;if(!a.grid||!a.legend||a.legend.show===!1)return;let s=t.child("legend");if(!s.exists()||Ea(s.child("overlay")))return;let l=s.child("legendPos").attr("val")||"r";if(l==="r"||l==="l"){let c=a.legend.data;if(!c||c.length===0)return;let u=c.map(_=>typeof _=="string"?_:_.name),d=((r=(i=a.legend)==null?void 0:i.textStyle)==null?void 0:r.fontSize)??n??12,f=Number((o=a.legend)==null?void 0:o.itemWidth)||d,h=0;for(let _ of u){let S=0;for(let $ of _)S+=$.charCodeAt(0)>11904?d:d*.55;S>h&&(h=S)}let p=f+8+h+14,g=t.child("plotArea").child("lineChart").exists(),v=Array.isArray(a.series)?a.series.length:a.series?1:0,m=Array.isArray(a.xAxis)?a.xAxis[0]:a.xAxis,y=Array.isArray(m?.data)?m.data.length:0,b=l==="r"&&g&&v===1&&y>=20,x=Math.max(84,Math.round(p+(g?b?-10:0:18)));if(typeof a.grid.left=="string"&&a.grid.left.includes("%")||typeof a.grid.right=="string"&&a.grid.right.includes("%"))return;l==="r"?a.grid.right=x:a.grid.left=x}}function fX(e,t,n){if(typeof e=="number"&&Number.isFinite(e))return e;if(typeof e=="string"){let i=e.trim();if(i.endsWith("%"))return t*parseFloat(i)/100;let r=parseFloat(i);if(Number.isFinite(r))return r}return n}function NAe(e,t,n){if(!t)return;let i=n==="x"?t.w:t.h,r=Array.isArray(e)?e[0]:e;if(!r)return i;let o=n==="x"?"left":"top",a=n==="x"?"right":"bottom",s=fX(r[o],i,0),l=fX(r[a],i,0);return Math.max(0,i-s-l)}function PAe(e,t,n,i,r,o=2.6){let a=NAe(r,i,n);if(a===void 0||a<=0)return t;let s=e.axisLabel??{},l=typeof s.fontSize=="number"?s.fontSize:12,c=Math.max(28,l*o),u=Math.max(2,Math.floor(a/c)+1);return Math.max(1,Math.min(t,u-1))}function jAe(e,t){var n,i;let r=e;if(!r.xAxis&&!r.yAxis)return;let o=[],a=[],s=[],l=Array.isArray(r.series)?r.series:r.series?[r.series]:[],c=new Map,u=[],d=new Map,f=(S,$)=>{d.has(S)||d.set(S,[]),d.get(S).push(...$)};for(let S of l){if(!S.data)continue;let $=[];for(let w of S.data)if(typeof w=="number")$.push(w);else if(w&&typeof w=="object"&&"value"in w&&typeof w.value=="number")$.push(w.value);else if(Array.isArray(w)){w.length>=2&&typeof w[0]=="number"&&typeof w[1]=="number"&&(a.push(w[0]),s.push(w[1]));for(let z of w)typeof z=="number"&&$.push(z)}else $.push(0);let C=typeof S.yAxisIndex=="number"&&Number.isFinite(S.yAxisIndex)?S.yAxisIndex:0;if(S.stack){let w=`${C}:${String(S.stack)}`;c.has(w)||c.set(w,{axisIndex:C,values:[]}),c.get(w).values.push($)}else u.push(...$),f(C,$)}for(let S of c.values()){let $=[],C=Math.max(...S.values.map(w=>w.length));for(let w=0;w<C;w++){let z=0;for(let A of S.values)z+=A[w]??0;$.push(z),o.push(z)}f(S.axisIndex,$)}o.push(...u);let h=l.some(S=>S.type==="bar"),p=l.some(S=>S.type&&S.type!=="bar"),g=h&&!p,v=g?10:8,m=g?2.6:2;if(o.length===0)return;let y=a.length>0&&s.length>0&&((n=Array.isArray(r.xAxis)?r.xAxis[0]:r.xAxis)==null?void 0:n.type)==="value"&&((i=Array.isArray(r.yAxis)?r.yAxis[0]:r.yAxis)==null?void 0:i.type)==="value",b=(S,$,C)=>{if(!S||S.type!=="value"||$.length===0||S.min!==void 0&&S.max!==void 0)return;let w=Math.min(...$),z=Math.max(...$),A=Gl(z,w,C);if(S.max===void 0){let M=G2(z,w,C);M>z&&M-z<A*.25&&(M+=A),S.max=M}S.min===void 0&&w>=0&&(S.min=0),S.interval===void 0&&(S.interval=A)},x=S=>{if(S.length===0)return 8;let $=Math.min(...S);return Math.max(...S)-Math.min(0,$)<=3?3:8};if(y){let S=Array.isArray(r.xAxis)?r.xAxis:[r.xAxis],$=Array.isArray(r.yAxis)?r.yAxis:[r.yAxis];S.forEach(C=>b(C,a,x(a))),$.forEach(C=>b(C,s,x(s)));return}let _=(S,$,C)=>{S&&(Array.isArray(S)?S:[S]).forEach((w,z)=>{if(!w||w.type!=="value"||w.min!==void 0&&w.max!==void 0)return;let A=C?.get(z)??o;if(A.length===0)return;let M=Math.min(...A),T=Math.max(...A),k=PAe(w,v,$,t,r.grid,m),I=Gl(T,M,k);if(w.max===void 0){let D=G2(T,M,k);k>1&&D>T&&D-T<I*.25&&(D+=I),w.max=D}w.min===void 0&&M>=0?w.min=0:w.min===void 0&&M<0&&(w.min=UAe(T,M,k)),w.interval===void 0&&(w.interval=I)})};_(r.xAxis,"x"),_(r.yAxis,"y",d)}function G2(e,t,n=5){let i=Gl(e,t,n),r=Math.ceil(e/i)*i;return r<=e?r+i:r}function UAe(e,t,n=5){let i=Gl(e,t,n),r=Math.floor(t/i)*i;return r>=t?r-i:r}function Gl(e,t,n=5){if(e===0&&t===0)return 1;let i=e-Math.min(0,t);if(i===0)return e>0?e*1.2:1;let r=i/n,o=Math.pow(10,Math.floor(Math.log10(r))),a=r/o,s;return a<=1?s=o:a<=2?s=2*o:a<=5?s=5*o:s=10*o,s}function BAe(e){let t=e.child("txPr");if(t.exists())for(let n of t.children("p")){let i=n.child("pPr");if(!i.exists())continue;let r=i.child("defRPr");if(!r.exists())continue;let o=r.numAttr("sz");if(o!==void 0&&o>0)return Math.round(o/100*(96/72))}}function FAe(e,t,n){let i,r,o=e.child("spPr");if(o.exists()&&!o.child("noFill").exists()){let s=o.child("solidFill");s.exists()?i=ua(s,n):i="#ffffff"}let a=t.child("plotArea");if(a.exists()){let s=a.child("spPr");if(s.exists()&&!s.child("noFill").exists()){let l=s.child("solidFill");l.exists()&&(r=ua(l,n))}}return{chartBg:i,plotAreaBg:r}}function pX(e,t){let n=EP(e.child("spPr").child("ln"),t);if(n)return{borderColor:n.color,borderWidth:n.width,borderStyle:n.type}}function qAe(e,t,n,i,r=2,o,a){if(e==="none")return null;let s="http://www.w3.org/2000/svg",l=document.createElementNS(s,"svg");l.setAttribute("width",String(n)),l.setAttribute("height",String(i)),l.setAttribute("viewBox",`0 0 ${n} ${i}`),l.style.display="block";let c=e??"rect";if(c.startsWith("path://")){let d=document.createElementNS(s,"path");if(d.setAttribute("d",c.slice(7)),d.setAttribute("fill","none"),d.setAttribute("stroke",t),d.setAttribute("stroke-width",String(r)),d.setAttribute("stroke-linecap","round"),l.appendChild(d),o&&o!=="none"){let f=n/2,h=i/2,p=Math.min(n,i,a!==void 0?Math.max(3,a):Math.max(3,i*.55));if(o==="diamond"){let g=document.createElementNS(s,"path");g.setAttribute("d",`M${f} ${h-p/2} L${f+p/2} ${h} L${f} ${h+p/2} L${f-p/2} ${h} Z`),g.setAttribute("fill",t),l.appendChild(g)}else if(o==="rect"){let g=document.createElementNS(s,"rect");g.setAttribute("x",String(f-p/2)),g.setAttribute("y",String(h-p/2)),g.setAttribute("width",String(p)),g.setAttribute("height",String(p)),g.setAttribute("fill",t),l.appendChild(g)}else if(o==="triangle"){let g=document.createElementNS(s,"path");g.setAttribute("d",`M${f} ${h-p/2} L${f+p/2} ${h+p/2} L${f-p/2} ${h+p/2} Z`),g.setAttribute("fill",t),l.appendChild(g)}else{let g=document.createElementNS(s,"circle");g.setAttribute("cx",String(f)),g.setAttribute("cy",String(h)),g.setAttribute("r",String(p/2)),g.setAttribute("fill",t),l.appendChild(g)}}return l}if(c==="diamond"){let d=document.createElementNS(s,"path");return d.setAttribute("d",`M${n/2} 1 L${n-1} ${i/2} L${n/2} ${i-1} L1 ${i/2} Z`),d.setAttribute("fill",t),l.appendChild(d),l}if(c==="circle"){let d=document.createElementNS(s,"circle");return d.setAttribute("cx",String(n/2)),d.setAttribute("cy",String(i/2)),d.setAttribute("r",String(Math.max(2,Math.min(n,i)/2-1))),d.setAttribute("fill",t),l.appendChild(d),l}let u=document.createElementNS(s,"rect");return u.setAttribute("x","1"),u.setAttribute("y","1"),u.setAttribute("width",String(Math.max(2,n-2))),u.setAttribute("height",String(Math.max(2,i-2))),u.setAttribute("fill",t),l.appendChild(u),l}function dh(e,t){if(typeof e=="number")return`${e}px`;let n=e.trim();if(n.endsWith("%")){let i=Number.parseFloat(n.slice(0,-1));if(!Number.isNaN(i))return`${i/100*t}px`}return n}function VAe(e,t){var n,i,r,o,a;let s=H2(e.legend);if(!s||s.show===!1)return null;let l=s.orient==="vertical",c=s.orient==="horizontal"||s.orient===void 0,u=s.top!==void 0||s.bottom!==void 0||s.left!==void 0||s.right!==void 0;if(l&&s.left===void 0&&s.right===void 0||c&&!u)return null;let d=Array.isArray(e.color)?e.color.filter(_=>typeof _=="string"):[],f=s.data??[],h=Array.isArray(e.series)?e.series:e.series?[e.series]:[],p=h.length===1&&((n=h[0])==null?void 0:n.type)==="radar"?h[0]:void 0,g=Array.isArray(p?.data)?p.data:void 0,v=f.map((_,S)=>{let $=typeof _=="string"?_:_.name,C=typeof _=="string"?void 0:_.icon,w=typeof _=="string"?void 0:_.marker,z=typeof _=="string"?void 0:_;if(!$)return null;let A=h.findIndex(j=>j?.name===$),M=g?.findIndex(j=>j.name===$)??-1,T=A>=0?h[A]:h[S],k=g&&M>=0?g[M]:g?.[S]??void 0,I=g?k??z??T:z??T,D=k??T,E=k??T??z,N={...D?.lineStyle??{},...z?.lineStyle??{}},F=A>=0?A:S,G=RAe(I,d[F]??"#2f6f8f"),P=typeof N.width=="number"&&Number.isFinite(N.width)?Math.max(1,N.width):2,O=E?.symbolSize,V=typeof O=="number"&&Number.isFinite(O)?Math.max(3,O):void 0;return{name:$,icon:C??s.icon,marker:w,markerSize:V,color:G,lineWidth:P}}).filter(_=>_!==null);if(v.length===0)return null;let m=document.createElement("div");m.className="pptx-chart-custom-legend",m.style.position="absolute",m.style.display="flex",m.style.flexDirection=l?"column":"row",m.style.gap=l?"6px":"12px",m.style.pointerEvents="none",m.style.zIndex="1",m.style.whiteSpace="nowrap",s.left!==void 0&&(m.style.left=dh(s.left,t.w)),s.right!==void 0&&(m.style.right=dh(s.right,t.w)),s.width!==void 0&&(m.style.width=dh(s.width,t.w)),s.height!==void 0&&(m.style.height=dh(s.height,t.h)),(s.width!==void 0||s.height!==void 0)&&(m.style.boxSizing="border-box",c?(m.style.alignItems="center",s.width!==void 0&&(m.style.justifyContent="center")):(s.width!==void 0&&(m.style.alignItems="center"),s.height!==void 0&&(m.style.justifyContent="center"))),s.orient==="vertical"&&(s.left!==void 0||s.right!==void 0)?s.top==="middle"?(m.style.top=`${t.h/2}px`,m.style.transform="translateY(-50%)"):s.top!==void 0?m.style.top=dh(s.top,t.h):s.bottom===void 0&&(m.style.top=`${t.h/2}px`,m.style.transform="translateY(-50%)"):s.top!==void 0&&(m.style.top=dh(s.top,t.h)),s.bottom!==void 0&&(m.style.bottom=dh(s.bottom,t.h)),c&&s.left===void 0&&s.right===void 0&&(m.style.left="50%",m.style.transform="translateX(-50%)");let y=((i=s.textStyle)==null?void 0:i.fontSize)??10,b=s.itemWidth??y,x=s.itemHeight??y;for(let _ of v){let S=document.createElement("div");S.style.display="flex",S.style.alignItems="center",S.style.gap="6px";let $=_.marker&&_.marker!=="none"?_.markerSize:void 0,C=$!==void 0?Math.max(b,Math.ceil($)):b,w=$!==void 0?Math.max(x,Math.ceil($)):x,z=qAe(_.icon,_.color,C,w,_.lineWidth,_.marker,$);z&&S.appendChild(z);let A=document.createElement("span");A.textContent=_.name,A.style.color=((r=s.textStyle)==null?void 0:r.color)??"#000000",A.style.fontSize=`${y}px`,(o=s.textStyle)!=null&&o.fontFamily&&(A.style.fontFamily=s.textStyle.fontFamily),((a=s.textStyle)==null?void 0:a.fontWeight)!==void 0&&(A.style.fontWeight=String(s.textStyle.fontWeight)),S.appendChild(A),m.appendChild(S)}return m}function HAe(e,t){let n=e.child("autoTitleDeleted");if(Ea(n))return;let i=e.child("title");return i.exists()?zne(i):n.exists()&&!Ea(n)&&t&&t.length===1&&t[0].name?t[0].name:void 0}function Nh(e,t,n,i){let r=HAe(e,t);if(!r)return;let o=e.child("title"),a=lAe(o,n),s=Lne(o,n),l=Tne(s),c=ZAe(e);return{text:a?.text??r,left:"center",...c,textStyle:{fontSize:i,...l??{},...a?{rich:a.rich}:{}}}}function ZAe(e){let t=e.child("title").child("layout").child("manualLayout");if(!t.exists())return{};let n={},i=t.child("x").numAttr("val"),r=t.child("y").numAttr("val");return i!==void 0&&(n.left=ar(i)),r!==void 0&&(n.top=ar(r)),n}function GAe(e,t,n,i=50,r=!1){let o=IAe(e),a=["50%","55%"],s=n?78:82;if(o==="right"?t&&r?(a=["45%","55%"],s=76):t?(a=["39%","54%"],s=87):(a=["38%","55%"],s=82):o==="left"?(a=["62%","55%"],s=82):o==="top"?a=["50%","60%"]:o==="bottom"&&(a=["50%","45%"]),(o==="top"||o==="bottom")&&(s-=4),!t)return{center:a,radius:`${s}%`};let l=Math.round(s*(Math.min(Math.max(i,10),90)/100));return{center:a,radius:[`${l}%`,`${s}%`]}}function mX(e,t=!1){return t?e:Math.round(e*.5)}function WAe(e){if(!(e===void 0||!Number.isFinite(e)))return((90-e)%360+360)%360}var YAe={circle:"circle",square:"rect",diamond:"diamond",triangle:"triangle",none:"none",star:"circle",dash:"circle",dot:"circle",plus:"circle",x:"circle"};function Vm(e){if(e)return YAe[e]??"circle"}var gX=["diamond","rect","triangle","circle"],vX=["diamond","square","triangle","circle"],jne=Mne(9),yX=jne,XAe=120;function bX(e,t){return e==="lineMarker"||e==="smoothMarker"?gX[t%gX.length]:"circle"}function xX(e){return vX[e%vX.length]}function KAe(e,t=24){if(e.length<3)return e;for(let l=1;l<e.length;l++)if(e[l][0]<=e[l-1][0])return e;let n=.3,i=1.2,r=e.length,o=new Array(r-1);for(let l=0;l<r-1;l++)o[l]=(e[l+1][1]-e[l][1])/(e[l+1][0]-e[l][0]);let a=new Array(r);a[0]=o[0],a[r-1]=o[r-2]*i;for(let l=1;l<r-1;l++)a[l]=(o[l-1]+o[l])/2*n;let s=[[e[0][0],e[0][1]]];for(let l=0;l<r-1;l++){let[c,u]=e[l],[d,f]=e[l+1],h=d-c,p=a[l],g=a[l+1];for(let v=1;v<=t;v++){let m=v/t,y=2*m**3-3*m**2+1,b=m**3-2*m**2+m,x=-2*m**3+3*m**2,_=m**3-m**2,S=c+h*m,$=y*u+b*h*p+x*f+_*h*g;s.push([Number(S.toFixed(4)),Number($.toFixed(4))])}}return s}function jx(e){return e.left!==void 0||e.top!==void 0||e.width!==void 0||e.height!==void 0}function JAe(e,t){switch(e){case"outEnd":return"top";case"inEnd":return"insideTop";case"ctr":return"inside";case"inBase":return"insideBottom";default:return t?"inside":"top"}}function QAe(e){switch(e){case"l":return"left";case"r":return"right";case"b":return"bottom";case"ctr":return"top";case"t":case"bestFit":default:return"top"}}function UP(e){return{...e.backgroundColor?{backgroundColor:e.backgroundColor}:{},...e.borderColor?{borderColor:e.borderColor}:{},...e.borderWidth!==void 0?{borderWidth:e.borderWidth}:{},...e.padding?{padding:e.padding}:{}}}function Une(e){let t=e?.fontSize;if(t===void 0)return;let n=Math.max(t+5,Math.round(t*1.45));return`font-size: ${t}px; line-height: ${n}px;`}function Bne(e,t="clustered"){let n=e.child("grouping");return n.exists()&&n.attr("val")||t}function Fne(e){return e==="stacked"||e==="percentStacked"}function qne(e){return e==="percentStacked"}function Vne(e){let t=Math.max(0,...e.map(i=>i.values.length)),n=new Array(t).fill(0);for(let i of e)for(let r=0;r<t;r++)n[r]+=Math.max(i.values[r]??0,0);return e.map(i=>i.values.map((r,o)=>{let a=n[o]??0;return a===0?0:Number((Math.max(r,0)/a).toFixed(6))}))}function Hne(e){e.min=0,e.max=1,e.interval=.1,e.axisLabel={...e.axisLabel||{},formatter:t=>eo(t,"0%")}}function _X(e,t){let{r:n,g:i,b:r}=Gt(e),{h:o,s:a,l:s}=Oa(n,i,r),l=$o(o+(t.hueOffset??0),Math.min(1,a*t.saturationScale),Math.max(0,Math.min(1,s+t.lightnessOffset)));return qn(l.r,l.g,l.b)}function eIe(e){return new uM(0,0,0,1,[{offset:0,color:_X(e,{saturationScale:1.95,lightnessOffset:.217})},{offset:1,color:_X(e,{hueOffset:-5,saturationScale:1.7,lightnessOffset:-.128})}])}function tIe(e,t){var n;if(!t)return e.flatMap(o=>o.values.filter((a,s)=>{var l;return!((l=o.blankIndices)!=null&&l.has(s))}));let i=Math.max(0,...e.map(o=>o.values.length)),r=[];for(let o=0;o<i;o++){let a=0,s=!1;for(let l of e)(n=l.blankIndices)!=null&&n.has(o)||(a+=l.values[o]??0,s=!0);s&&r.push(a)}return r}function nIe(e,t,n){let i=tIe(t,n).filter(s=>Number.isFinite(s));if(i.length===0)return;let r=Math.min(...i),o=Math.max(...i),a=Gl(o,r,8);if(e.min===void 0&&r>=0&&(e.min=0),e.interval===void 0&&(e.interval=a),e.max===void 0)if(n)e.max=Math.ceil(o/a)*a+a;else{let s=G2(o,r,8);s>o&&s-o<a*.25&&(s+=a),e.max=s}}function iIe(e){switch(e){case"ctr":case"inEnd":case"inBase":return"inside";case"outEnd":case"bestFit":default:return"outside"}}function Gk(e,t){if(!(!e&&!t))return{showVal:e?.showVal??!1,showCatName:e?.showCatName??!1,showSerName:e?.showSerName??!1,showPercent:e?.showPercent??!1,position:e?.position,showLeaderLines:e?.showLeaderLines,manualLayout:e?.manualLayout,color:e?.color,fontSize:e?.fontSize,bold:e?.bold,backgroundColor:e?.backgroundColor,borderColor:e?.borderColor,borderWidth:e?.borderWidth,padding:e?.padding,...t}}function BP(e,t){let n=e?.child("dLbls");return n!=null&&n.exists()?n:t.child("dLbls")}function zm(e){return!!(e&&!e.deleted&&(e.showVal||e.showCatName||e.showSerName||e.showPercent))}function Zne(e){let t=e.child("dispBlanksAs").attr("val");return t==="zero"||t==="span"?t:"gap"}function Gne(e,t,n,i){var r;return(r=e.blankIndices)!=null&&r.has(t)?i==="zero"?0:null:n}function FP(e){var t;let n=(t=e[0])==null?void 0:t.formatCode;if(n)return e.every(i=>i.formatCode===n)?n:void 0}function SX(e,t,n){if(!e||!zm(e))return;let i=e,r={show:!0,formatter:o=>{let a=[];return i.showSerName&&n&&a.push(n),i.showCatName&&a.push(o.name),i.showVal&&a.push(eo(o.value,t)),i.showPercent&&a.push(`${o.percent}%`),a.join(" ")},fontSize:i.fontSize??10,...i.bold===!0?{fontWeight:"bold"}:{},...i.color?{color:i.color}:{},position:iIe(i.position),...UP(i)};return i.fontSize!==void 0?DP(r):r}function Wne(e){return e.size===0?void 0:t=>{if(t.dataIndex===void 0)return;let n=e.get(t.dataIndex);if(!n)return;let i=t.rect,r={};return n.x!==void 0&&(r.x=i?i.x+i.width*n.x:ar(n.x)),n.y!==void 0&&(r.y=i?i.y+i.height*n.y:ar(n.y)),n.width!==void 0&&(r.width=i?i.width*n.width:ar(n.width)),n.height!==void 0&&(r.height=i?i.height*n.height:ar(n.height)),r}}function rIe(e){let t=new Set,n=[];for(let i of e)for(let r of i.categories)t.has(r)||(t.add(r),n.push(r));return n}function oIe(e,t,n){if(!Array.isArray(e)||n<=1)return e;let i=Number.parseFloat(e[0]),r=Number.parseFloat(e[1]);if(!Number.isFinite(i)||!Number.isFinite(r)||r<=i)return e;let o=1,a=(r-i-o*(n-1))/n,s=Math.round(i+t*(a+o)),l=Math.round(s+a);return[`${s}%`,`${l}%`]}function aIe(e,t,n,i){var r;let o=e.child("barDir").attr("val")||e.attr("barDir")||"col",a=Bne(e),s=o==="bar",l=e.child("gapWidth").numAttr("val")??150,c=e.child("overlap").numAttr("val"),u=((r=n.find(Q=>Q.categories.length>0))==null?void 0:r.categories)||[],d=Nh(t,n,i,12),f=Eh(t,i),h=f?.option,p={fontSize:10,...f?.textStyle??{}},g=Fne(a),v=qne(a),m=v?Vne(n):void 0,y=Zne(t),b=e.child("varyColors"),x=n.length===1&&n[0].values.length>1&&!g&&!v&&!n[0].colorHex,_=b.exists()?Ea(b):x,S=zAe(i,{darken:!s}),$=xu(e,i);if(!$){let Q=e.children("ser")[0];Q!=null&&Q.exists()&&($=xu(Q,i))}let C=e.children("ser").map((Q,le)=>({ser:Q,order:Q.child("order").numAttr("val")??le})).sort((Q,le)=>Q.order-le.order).map(Q=>Q.ser),w=n.map((Q,le)=>{let se=Q.formatCode,ae=xu(C[le]??e,i)??$,Se=ie=>{if(!(ie!=null&&ie.showVal))return;let te={show:!0,position:JAe(ie.position,g),fontSize:ie.fontSize??9,...ie.color?{color:ie.color}:{},...ie.bold===!0?{fontWeight:"bold"}:{},...UP(ie),formatter:B=>{let U=B?.value,W=U&&typeof U=="object"&&"value"in U?U.value:U;return W===0||W===null?"":eo(W,v?"0%":se)}};return ie.fontSize!==void 0?DP(te):te},ve=Se(ae),$e=BP(C[le],e),je=OP($e,i),R=(m?.[le]??Q.values).map((ie,te)=>{var B;let U=je.get(te),W=Q.values[te]??ie,ue=Gne(Q,te,ie,y),de=(B=Q.dataPointStyles)==null?void 0:B[te],J;de?J={...de.color?{color:de.color}:{},...de.borderColor?{borderColor:de.borderColor}:{},...de.borderWidth!==void 0?{borderWidth:de.borderWidth}:{},...de.borderType?{borderType:de.borderType}:{}}:Q.invertIfNegative!==!1&&W<0?J={color:"#FFFFFF",borderColor:"#000000",borderWidth:1}:_&&!Q.colorHex&&S.length>0&&(J={color:S[te%S.length]});let ge;if(U!=null&&U.deleted)ge={show:!1};else if(U){let we={showVal:ae?.showVal??!1,showCatName:ae?.showCatName??!1,showSerName:ae?.showSerName??!1,showPercent:ae?.showPercent??!1,position:ae?.position,showLeaderLines:ae?.showLeaderLines,manualLayout:ae?.manualLayout,color:ae?.color,fontSize:ae?.fontSize,bold:ae?.bold,backgroundColor:ae?.backgroundColor,borderColor:ae?.borderColor,borderWidth:ae?.borderWidth,padding:ae?.padding,...U};ge=Se(we)}return!J&&!ge?ue:{value:ue,...J?{itemStyle:J}:{},...ge?{label:ge}:{}}});return{type:"bar",name:Q.name,data:R,stack:g?"total":void 0,itemStyle:Q.colorHex?{color:Q.colorHex}:void 0,label:ve,...Q.formatCode?{tooltip:{valueFormatter:ie=>eo(ie,v?"0%":Q.formatCode)}}:{},barGap:c!==void 0?`${-c}%`:"0%",barCategoryGap:l!==void 0?`${Math.round(l*100/(100*(g?1:n.length)+l))}%`:void 0}}),z=t.child("plotArea"),{valueAxis:A,categoryAxis:M}=xM(z,i,e),T={type:"category",data:u,axisLabel:{interval:0,rotate:0,fontSize:10}};Is(T,M,"category");let k=FP(n),I=(v?"0%":void 0)||A.numFmt||(k!=null&&k.includes("%")?k:void 0),D={type:"value",...I?{axisLabel:{formatter:Q=>eo(Q,I)}}:{}};v&&Hne(D),Is(D,A,"value");let E=!!d,N=s&&E?60:Nx(E,f),F=Dh(E,f),G=s?15:A.deleted?4:18,P=s?28:10,O=I||k,V=Px(f),j=Ux(t),H=!jx(j);return{title:d,tooltip:{trigger:"axis",textStyle:p,extraCssText:Une(p),...O?{valueFormatter:Q=>eo(Array.isArray(Q)?Q[0]:Q,O)}:{}},legend:Oh(h,f,F,n.map(Q=>Q.name),p),grid:{containLabel:H,left:G,right:P,top:N,bottom:V,...j},xAxis:s?D:T,yAxis:s?T:D,series:w}}function $X(e,t,n,i,r,o){var a;let s=((a=n.find(j=>j.categories.length>0))==null?void 0:a.categories)||[],l=Nh(t,n,i,14),c=Eh(t,i),u=c?.option,d={fontSize:10,...c?.textStyle??{}},f=Bne(e,"standard"),h=Fne(f),p=qne(f),g=p?Vne(n):void 0,v=Zne(t),m=xu(e,i);if(!m){let j=e.children("ser")[0];j!=null&&j.exists()&&(m=xu(j,i))}let y=e.children("ser").map((j,H)=>({ser:j,order:j.child("order").numAttr("val")??H})).sort((j,H)=>j.order-H.order).map(j=>j.ser),b=e.child("marker"),x=b.exists()?Ea(b):void 0,_=(j,H)=>j.colorHex??o?.[H%o.length],S=(j,H)=>{let Q=_(j,H);return typeof Q=="string"?Q:void 0},$=n.map((j,H)=>{let Q=_(j,H),le=j.markerSymbol??(x===!0?xX(H):x===!1?"none":void 0),se=Vm(le),ae=se!==void 0?se!=="none":void 0,Se=j.lineWidth??3,ve={...Q?{color:Q}:{},width:Se,cap:"round",join:"round",...j.lineNoFill?{opacity:0}:{}},$e=j.formatCode,je=xu(y[H]??e,i)??m,R=X=>{if(!X||!zm(X))return;let K=X,Ce={show:!0,position:QAe(K.position),fontSize:K.fontSize??9,...K.color?{color:K.color}:{},...K.bold===!0?{fontWeight:"bold"}:{},...UP(K),formatter:ye=>{let Qe=ye?.value,mt=Qe&&typeof Qe=="object"&&"value"in Qe?Qe.value:Qe,et=[];return K.showSerName&&ye!=null&&ye.seriesName&&et.push(ye.seriesName),K.showCatName&&ye!=null&&ye.name&&et.push(ye.name),K.showVal&&typeof mt=="number"&&et.push(eo(mt,p?"0%":$e)),K.showPercent&&typeof ye?.percent=="number"&&et.push(`${ye.percent}%`),et.join(" ")}};return K.fontSize!==void 0?DP(Ce):Ce},ie=R(je),te=BP(y[H],e),B=OP(te,i),U=new Map,W=(g?.[H]??j.values).map((X,K)=>{let Ce=Gne(j,K,X,v),ye=B.get(K);if(!ye)return Ce;ye.manualLayout&&U.set(K,ye.manualLayout);let Qe=ye.deleted?{show:!1}:R(Gk(je,ye));return Qe?{value:Ce,label:Qe}:Ce}),ue=!!(ie!=null&&ie.show&&se==="none"),de=ue?"circle":se&&se!=="none"?se:void 0,J=ue?0:j.markerSize??(j.markerSymbol===void 0&&x===!0?jne:void 0),ge=ue?!0:r&&se===void 0?!1:ae,we=ge===!0&&de!==void 0&&de!=="none"&&J!==0;return{type:"line",name:j.name,data:W,stack:h?"total":void 0,areaStyle:r?{...Q?{color:Q}:{},opacity:1}:void 0,itemStyle:Q?{color:Q}:void 0,lineStyle:ve,label:ie,labelLayout:Wne(U),connectNulls:v==="span",...j.smooth?{smooth:!0}:{},...j.formatCode?{tooltip:{valueFormatter:X=>eo(X,p?"0%":j.formatCode)}}:{},endLabel:{show:!1},...de?{symbol:de}:{},...J!==void 0?{symbolSize:J}:{},...ge!==void 0?{showSymbol:ge}:{},...we?{showAllSymbol:!0}:{},z:3}}),C=t.child("plotArea"),{valueAxis:w,categoryAxis:z}=xM(C,i,e),A=FP(n),M=(p?"0%":void 0)||w.numFmt||(A!=null&&A.includes("%")?A:void 0),T={type:"value",...M?{axisLabel:{formatter:j=>eo(j,M)}}:{}};p&&Hne(T),Is(T,w,"value"),!p&&r&&nIe(T,n,h);let k={type:"category",data:s,...r?{boundaryGap:!1}:{},axisLabel:{interval:0,rotate:0}};Is(k,z,"category");let I=Nx(!!l,c),D=Dh(!!l,c),E=w.deleted?4:18,N=M||A,F=Px(c),G=Ux(t),P=!jx(G),O=n.map((j,H)=>({series:j,idx:H})),V=h||p?[...O].reverse():O;return{title:l,tooltip:{trigger:"axis",textStyle:d,extraCssText:Une(d),...N?{valueFormatter:j=>eo(Array.isArray(j)?j[0]:j,N)}:{}},legend:Oh(u,c,D,r?V.map(({series:j,idx:H})=>{let Q=S(j,H);return Q?{name:j.name,itemStyle:{color:Q}}:j.name}):V.map(({series:j,idx:H})=>{let Q=j.markerSymbol??(x===!0?xX(H):x===!1?"none":void 0),le=Vm(Q),se=S(j,H),ae=se?{lineStyle:{color:se},itemStyle:{color:se}}:{};return le&&le!=="none"?{name:j.name,icon:Z2(),marker:le,...ae}:{name:j.name,icon:Z2(),...ae}}),d),grid:{containLabel:P,left:E,right:10,top:I,bottom:F,...G},xAxis:k,yAxis:T,series:$}}function wX(e,t,n,i,r){let o=Nh(t,n,r,12),a=Eh(t,r),s=a?.option,l={fontSize:10,...a?.textStyle??{}},c=i?n:n.slice(0,1);if(c.length===0)return{title:o};let u=e.children("ser").map((_,S)=>({ser:_,order:_.child("order").numAttr("val")??S})).sort((_,S)=>_.order-S.order).map(_=>_.ser),d=c.map((_,S)=>{let $=u[S],C=($!=null&&$.exists()?xu($,r):void 0)??xu(e,r),w=BP($,e),z=$?.exists()&&$.child("dLbls").exists()||e.child("dLbls").exists(),A=OP(w,r),M=[...A.values()].some(T=>zm(Gk(C,T)));return{series:_,serNode:$,sharedLabels:C,pointOverrides:A,labelsExplicitlyOff:z&&!C&&!M,explosions:$?vAe($,_.categories.length):void 0}}),f=d.some(_=>!_.labelsExplicitlyOff&&(zm(_.sharedLabels)||[..._.pointOverrides.values()].some(S=>zm(Gk(_.sharedLabels,S))))),h=i?e.child("holeSize").numAttr("val")??50:50,p=d.some(_=>{var S;return(S=_.explosions)==null?void 0:S.some($=>$>0)}),g=GAe(a,i,f,h,p),v=WAe(e.child("firstSliceAng").numAttr("val")),m=d.map((_,S)=>{var $;let C=new Map,w=_.series.categories.map((T,k)=>{var I,D,E;let N=_.pointOverrides.get(k),F=Gk(_.sharedLabels,N);F!=null&&F.manualLayout&&C.set(k,F.manualLayout);let G={name:T||`Item ${k+1}`,value:_.series.values[k]??0},P=(I=_.series.dataPointStyles)==null?void 0:I[k];return P?G.itemStyle={...P.color?{color:P.color}:{},...P.borderColor?{borderColor:P.borderColor}:{},...P.borderWidth!==void 0?{borderWidth:P.borderWidth}:{},...P.borderType?{borderType:P.borderType}:{}}:(D=_.series.dataPointColors)!=null&&D[k]&&(G.itemStyle={color:_.series.dataPointColors[k]}),(E=_.explosions)!=null&&E[k]&&_.explosions[k]>0&&(G.selected=!0,G.selectedOffset=mX(_.explosions[k],i)),N!=null&&N.deleted?G.label={show:!1}:N&&zm(F)&&(G.label=SX(F,_.series.formatCode,_.series.name)),G}),z=SX(_.sharedLabels,_.series.formatCode,_.series.name),A=!!(($=_.sharedLabels)!=null&&$.showLeaderLines)||[..._.pointOverrides.values()].some(T=>T.showLeaderLines===!0),M=_.explosions&&Math.max(..._.explosions.map(T=>mX(T,i)));return{type:"pie",name:_.series.name,radius:i?oIe(g.radius,S,d.length):g.radius,center:g.center,data:w,selectedMode:_.explosions?"multiple":!1,...M?{selectedOffset:M}:{},...v!==void 0?{startAngle:v,clockwise:!0}:{},label:z??{show:!1},labelLine:{show:A},labelLayout:Wne(C)}}),y=Dh(!!o,a),b=FP(c),x=i?rIe(c):c[0].categories;return{title:o,tooltip:{trigger:"item",...b?{valueFormatter:_=>eo(Array.isArray(_)?_[0]:_,b)}:{}},legend:Oh(s,a,y,x,l),series:m}}function sIe(e,t,n,i,r,o){var a,s;let l=Nh(t,n,i,12),c=Eh(t,i),u=c?.option,d={fontSize:10,...c?.textStyle??{}},f=((a=n.find(E=>E.categories.length>0))==null?void 0:a.categories)||[],h=t.child("plotArea"),{valueAxis:p}=xM(h,i),g;if(p.max!==void 0)g=p.max;else{let E=0,N=0;for(let G of n)for(let P of G.values)P>E&&(E=P),P<N&&(N=P);let F=Gl(E,N,5);g=Math.ceil(E/F)*F||100}let v=!p.deleted&&p.tickLblPos!=="none",m=e.child("radarStyle").attr("val"),y=v?{show:!0,formatter:E=>eo(E,p.numFmt),color:p.labelColor??"#000000",...p.labelFontSize!==void 0?{fontSize:p.labelFontSize}:{}}:void 0,b=m==="filled"?{radarZ:4,seriesZ:2}:{radarZ:void 0,seriesZ:void 0},x=(s=e.children("axId")[1])==null?void 0:s.attr("val"),_=h.children("valAx").find(E=>E.child("axId").attr("val")===x)??h.child("valAx"),S=_.child("majorGridlines").child("spPr").exists(),$=_.child("spPr").child("ln").exists(),C=p.hasMajorGridlines&&(m!=="filled"||S)?{show:!0,lineStyle:{...iN,...S?p.majorGridlineStyle??{}:{}}}:{show:!1},w=p.deleted?{show:!1}:{show:!0,lineStyle:{color:$?p.lineColor??iN.color:iN.color}},z=(f.length>1?[f[0],...f.slice(1).reverse()]:f).map((E,N)=>({name:E,max:g,...p.min!==void 0?{min:p.min}:{},...N===0&&y?{axisLabel:y}:{}})),A=NP(c)&&!(c!=null&&c.overlay),M=fIe(t,o),T=M?.center??(A?["50%","66%"]:m==="filled"?["50%","55%"]:["50%","50%"]),k=M?.radius??(A?"58%":m==="filled"?"76%":"86%"),I=n.map((E,N)=>{let F=E.values.length>1?[E.values[0],...E.values.slice(1).reverse()]:E.values,G=Vm(E.markerSymbol),P=m==="marker"||G!==void 0&&G!=="none",O=m==="filled",V=E.colorHex??r?.[N%r.length],j=typeof V=="string"?eIe(V):V,H=O?{...j?{color:j}:{},opacity:.75}:void 0;return{name:E.name,value:F,...V?{lineStyle:{color:V,width:E.lineWidth??3,cap:"round",join:"round",...E.lineNoFill?{opacity:0}:{}},itemStyle:{color:V}}:{lineStyle:{width:E.lineWidth??3,cap:"round",join:"round",...E.lineNoFill?{opacity:0}:{}}},...H?{areaStyle:H}:{},...G&&G!=="none"?{symbol:G}:{},...P?{}:{symbol:"none"},...E.markerSize?{symbolSize:E.markerSize}:{},...P?{symbolSize:E.markerSize??6}:{}}}),D=Dh(!!l,c);return{title:l,tooltip:{},legend:Oh(u,c,D,n.map(E=>{let N=Vm(E.markerSymbol);return E.lineNoFill&&N&&N!=="none"?{name:E.name,icon:N}:{name:E.name,icon:Z2(),...N&&N!=="none"?{marker:N}:{}}}),d),radar:{...b.radarZ!==void 0?{z:b.radarZ}:{},indicator:z,radius:k,center:T,splitNumber:5,splitLine:C,axisLine:w,splitArea:{show:!1}},series:[{type:"radar",...b.seriesZ!==void 0?{z:b.seriesZ}:{},data:I}]}}function lIe(e,t,n,i){let r=Nh(t,n,i,14),o=Eh(t,i),a=o?.option,s={fontSize:10,...o?.textStyle??{}},l=e.child("scatterStyle").attr("val")??"lineMarker",c=l==="lineMarker"||l==="line"||l==="smoothMarker"||l==="smooth",u=l==="smoothMarker"||l==="smooth",d=l==="line"||l==="smooth",f=n.map((z,A)=>{let M=z.values.map((I,D)=>[z.xValues&&D<z.xValues.length?z.xValues[D]:D,I]),T=Vm(z.markerSymbol)??bX(l,A),k=!d&&T!=="none";if((c||z.smooth)&&!z.lineNoFill){let I=z.smooth??u?KAe(M):M,D=z.lineWidth??3;return{type:"line",name:z.name,data:I,smooth:!1,showSymbol:k,...k?{symbol:T,symbolSize:z.markerSize??yX}:{},...z.colorHex?{lineStyle:{color:z.colorHex,width:D,cap:"round",join:"round"},itemStyle:{color:z.colorHex}}:{lineStyle:{width:D,cap:"round",join:"round"}}}}return{type:"scatter",name:z.name,data:M,symbol:k?T:"none",symbolSize:k?z.markerSize??yX:0,itemStyle:z.colorHex?{color:z.colorHex}:void 0}}),h=n.map((z,A)=>{let M=Vm(z.markerSymbol)??bX(l,A),T=!d&&M!=="none";return(c||z.smooth)&&!z.lineNoFill?T&&M?{name:z.name,icon:M}:{name:z.name,icon:Z2()}:M&&M!=="none"?{name:z.name,icon:M}:z.name}),p=t.child("plotArea"),{xAxis:g,yAxis:v}=Dne(p,i),m=Nx(!!r,o),y=Dh(!!r,o),b=Ux(t),x=!jx(b),_=v.deleted?4:18,S=m,$=Math.max(Px(o),20),C={type:"value"},w={type:"value"};return Is(C,g,"value"),Is(w,v,"value"),{title:r,tooltip:{trigger:"item"},legend:Oh(a,o,y,h,s),grid:{containLabel:x,left:_,right:10,top:S,bottom:$,...b},xAxis:C,yAxis:w,series:f}}function kX(e,t,n){if(e.max!==void 0||t.length===0)return;let i=t.map((d,f)=>({value:d,bubbleSize:n[f]??0})).filter(({value:d})=>Number.isFinite(d));if(i.length===0)return;let r=Math.min(...i.map(({value:d})=>d)),o=Math.max(...i.map(({value:d})=>d)),a=o-Math.min(0,r)<=3?3:8,s=Gl(o,r,a),l=G2(o,r,a);l>o&&l-o<s*.25&&(l+=s);let c=Math.max(...i.map(({bubbleSize:d})=>d)),u=Math.max(...i.filter(({value:d})=>Math.abs(d-o)<1e-9).map(({bubbleSize:d})=>d),0);c>0&&u/c>=.75&&(l+=s),e.max=l,e.min===void 0&&r>=0&&(e.min=0),e.interval===void 0&&(e.interval=s)}function cIe(e,t,n,i){let r=Nh(t,n,i,14),o=Eh(t,i),a=o?.option,s={fontSize:10,...o?.textStyle??{}},l=Math.max(e.child("bubbleScale").numAttr("val")??100,0),c=XAe*(l/100),u=-1/0;for(let z of n)if(z.bubbleSizes)for(let A of z.bubbleSizes)A>u&&(u=A);let d=u>0?u:1,f=n.map(z=>{let A=z.values.map((M,T)=>{let k=z.xValues&&T<z.xValues.length?z.xValues[T]:T,I=z.bubbleSizes&&T<z.bubbleSizes.length?z.bubbleSizes[T]:0;return[k,M,I]});return{type:"scatter",name:z.name,data:A,symbolSize:M=>{let T=Math.max(Number(M[2])||0,0);return Math.sqrt(T/d)*c},itemStyle:z.colorHex?{color:z.colorHex}:void 0}}),h=t.child("plotArea"),{xAxis:p,yAxis:g}=Dne(h,i),v=Nx(!!r,o),m=Dh(!!r,o),y=Ux(t),b=!jx(y),x=g.deleted?4:18,_=v,S=Math.max(Px(o),20),$={type:"value"},C={type:"value"};Is($,p,"value"),Is(C,g,"value");let w=n.flatMap(z=>z.values.map((A,M)=>({x:z.xValues&&M<z.xValues.length?z.xValues[M]:M,y:A,bubbleSize:z.bubbleSizes&&M<z.bubbleSizes.length?z.bubbleSizes[M]:0})));return kX($,w.map(z=>z.x),w.map(z=>z.bubbleSize)),kX(C,w.map(z=>z.y),w.map(z=>z.bubbleSize)),{title:r,tooltip:{trigger:"item",formatter:z=>{let A=z;return`${A.seriesName}<br/>x: ${A.value[0]}, y: ${A.value[1]}, size: ${A.value[2]}`}},legend:Oh(a,o,m,n.map(z=>({name:z.name,icon:"circle"})),s),grid:{containLabel:b,left:x,right:10,top:_,bottom:S,...y},xAxis:$,yAxis:C,series:f}}function uIe(e){return/^\d{4}[/-]\d{1,2}[/-]\d{1,2}$/.test(e.trim())}function dIe(e){switch(e){case"dot":case"circle":return"circle";case"square":return"rect";case"diamond":case"triangle":return e;case"none":case void 0:return"none";default:return"circle"}}function hIe(e,t,n,i){var r,o,a,s,l,c,u;let d=Nh(t,n,i,14),f=Eh(t,i),h=((r=n.find(E=>E.categories.length>0))==null?void 0:r.categories)||[],p=h.length||Math.max(...n.map(E=>E.values.length),0),g=[];if(n.length>=4)for(let E=0;E<p;E++)g.push([n[0].values[E]??0,n[3].values[E]??0,n[2].values[E]??0,n[1].values[E]??0]);else if(n.length>=3)for(let E=0;E<p;E++){let N=n[2].values[E]??0;g.push([N,N,n[1].values[E]??0,n[0].values[E]??0])}else for(let E=0;E<p;E++){let N=((o=n[0])==null?void 0:o.values[E])??0;g.push([0,N,0,N])}let v=t.child("plotArea"),{valueAxis:m,categoryAxis:y}=xM(v,i,e),b=Nx(!!d,f),x=Ux(t),_=!jx(x),S={type:"category",data:h,axisLabel:{interval:0,rotate:0,fontSize:10},splitLine:{show:!1}};Is(S,y,"category");let $=h.length>=3&&h.every(E=>uIe(E))&&!y.deleted&&y.tickLblPos!=="none";if($){let E=S.axisLabel||{};S.axisLabel={...E,rotate:45,margin:Math.max(Number(E.margin)||0,10)}}let C={type:"value"};Is(C,m,"value");let w=g.flatMap(E=>[E[2],E[3]]).filter(E=>Number.isFinite(E));if(w.length>0){let E=Math.min(...w),N=Math.max(...w);if(C.min===void 0&&E>=0&&(C.min=0),C.interval===void 0&&(C.interval=Gl(N,E,7)),C.max===void 0){let F=Number(C.interval)||Gl(N,E,7);C.max=Math.ceil(N/F)*F+F}}let z=f?.option,A={fontSize:10,...f?.textStyle??{}},M=Dh(!!d,f),T=Math.max(Px(f),$?56:0),k=n.length>=3&&n.length<4,I=k?n.slice(0,3).map((E,N)=>({name:E.name,icon:N===2?dIe(E.markerSymbol):"none"})):n.map(E=>E.name),D=k?[{type:"custom",name:n[2].name,coordinateSystem:"cartesian2d",data:Array.from({length:p},(E,N)=>[N,n[0].values[N]??0,n[1].values[N]??0,n[2].values[N]??0]),renderItem:(E,N)=>{let F=N.value(0),G=N.value(1),P=N.value(2),O=N.value(3),V=N.coord([F,G]),j=N.coord([F,P]),H=N.coord([F,O]),Q=Math.max(8,N.size([1,0])[0]||12),le=Math.min(4,Math.max(2,Math.round(Q*.04))),se=ym(n[0].colorHex,"#000000"),ae=ym(n[2].colorHex,"#00B050");return{type:"group",children:[{type:"line",shape:{x1:V[0],y1:V[1],x2:j[0],y2:j[1]},style:{stroke:se,lineWidth:1}},{type:"line",shape:{x1:H[0],y1:H[1],x2:H[0]+le,y2:H[1]},style:{stroke:ae,lineWidth:1}}]}},silent:!0}]:[{type:"candlestick",name:n.length>=3?n[2].name:(a=n[0])==null?void 0:a.name,data:g,itemStyle:{color:ym((s=n[n.length>=4?3:2])==null?void 0:s.colorHex,"#ec0000"),color0:ym((l=n[0])==null?void 0:l.colorHex,"#00da3c"),borderColor:ym((c=n[n.length>=4?3:2])==null?void 0:c.colorHex,"#ec0000"),borderColor0:ym((u=n[0])==null?void 0:u.colorHex,"#00da3c")}}];return{title:d,tooltip:{trigger:"axis",axisPointer:{type:"cross"}},legend:Oh(z,f,M,I,A),grid:{containLabel:_,left:24,right:10,top:b,bottom:T,...x},xAxis:S,yAxis:C,series:D}}function qP(e){let t=e.child("plotArea").child("layout").child("manualLayout");return t.exists()?{x:t.child("x").numAttr("val"),y:t.child("y").numAttr("val"),w:t.child("w").numAttr("val"),h:t.child("h").numAttr("val")}:{}}function Ux(e){let t=qP(e),n={};return t.x!==void 0&&(n.left=ar(t.x)),t.y!==void 0&&(n.top=ar(t.y)),t.w!==void 0&&(n.width=ar(t.w)),t.h!==void 0&&(n.height=ar(t.h)),n}function fIe(e,t){let{x:n,y:i,w:r,h:o}=qP(e);if(n===void 0||i===void 0||r===void 0||o===void 0)return;let a=n+r/2,s=i+o/2;return t?{center:[a*t.w,s*t.h],radius:Math.min(r*t.w,o*t.h)/2}:{center:[ar(a),ar(s)],radius:ar(Math.min(r,o)/2)}}function pIe(e,t,n){if(!n)return;let{x:i=0,y:r=0,w:o=1,h:a=1}=qP(e);return{type:"rect",silent:!0,z:-10,left:i*n.w,top:r*n.h,shape:{width:o*n.w,height:a*n.h},style:{fill:t,stroke:"none"}}}function mIe(e,t){let n=e.graphic;if(!n){e.graphic=t;return}e.graphic=Array.isArray(n)?[t,...n]:[t,n]}function MX(e,t,n,i,r,o,a){switch(e){case"barChart":case"bar3DChart":return aIe(t,n,i,r);case"lineChart":case"line3DChart":return $X(t,n,i,r,!1,o);case"areaChart":case"area3DChart":case"surface3DChart":return $X(t,n,i,r,!0,o);case"pieChart":case"pie3DChart":return wX(t,n,i,!1,r);case"doughnutChart":return wX(t,n,i,!0,r);case"radarChart":return sIe(t,n,i,r,o,a);case"scatterChart":return lIe(t,n,i,r);case"bubbleChart":return cIe(t,n,i,r);case"stockChart":return hIe(t,n,i,r);default:return}}function kk(e){return e==="barChart"||e==="bar3DChart"||e==="lineChart"||e==="line3DChart"||e==="areaChart"||e==="area3DChart"||e==="stockChart"||e==="surface3DChart"}function CX(e,t){let n=H2(e),i=H2(t);if(!n)return t;if(!i)return e;let r=[...n.data??[],...i.data??[]],o=new Set,a=r.filter(l=>{let c=typeof l=="string"?l:l.name;return o.has(c)?!1:(o.add(c),!0)}),s={...n,data:a};return a.some(l=>typeof l=="object"&&l.icon)&&delete s.icon,s}function ex(e){return e===void 0?[]:Array.isArray(e)?e:[e]}function G5(e,t,n){if(typeof e=="number"&&Number.isFinite(e))return e;if(typeof e=="string"){if(e.endsWith("%")){let r=parseFloat(e);return Number.isFinite(r)?t*r/100:n}let i=parseFloat(e);return Number.isFinite(i)?i:n}return n}function zX(e,t,n,i){if(typeof e?.width=="string"&&n==="left"&&e.width.endsWith("%"))return t*parseFloat(e.width)/100;if(typeof e?.height=="string"&&n==="top"&&e.height.endsWith("%"))return t*parseFloat(e.height)/100;if(typeof e?.width=="number"&&n==="left")return e.width;if(typeof e?.height=="number"&&n==="top")return e.height;let r=G5(e?.[n],t,0),o=G5(e?.[i],t,0);return Math.max(0,t-r-o)}function gIe(e){return typeof e.min=="number"&&typeof e.max=="number"&&e.min<0&&e.max>0}function TX(e,t,n){var i;if(!t||e.type!=="category"||t.type!=="value"||((i=e.axisLine)==null?void 0:i.onZero)!==!0||!gIe(t)||n<=0)return!1;let r=n*((0-t.min)/(t.max-t.min)),o=e.axisLabel??(e.axisLabel={}),a=Math.max(6,Math.round(o.fontSize??10));return o.margin=-Math.round(Math.max(0,r-a)),e.z=Math.max(e.z??0,20),!0}function vIe(e,t){let n=ex(e.grid)[0],i=ex(e.xAxis),r=ex(e.yAxis),o=zX(n,t.h,"top","bottom"),a=zX(n,t.w,"left","right"),s=!1;i.forEach((l,c)=>{s=TX(l,r[c]??r[0],o)||s}),r.forEach((l,c)=>{s=TX(l,i[c]??i[0],a)||s}),s&&n&&(n.containLabel=!1,n.left=Math.max(G5(n.left,t.w,0),48))}function AX(e){return Ene(e)[1]}function yIe(e,t,n,i){let r=Array.isArray(e.series)?e.series:[],o=Array.isArray(t.series)?t.series:[],a=AX(n),s=AX(i);if(a!==void 0&&s!==void 0&&a!==s){let l=ex(e.yAxis),c=ex(t.yAxis),u=l.length;return{...e,legend:CX(e.legend,t.legend),yAxis:[...l,...c],series:[...r,...o.map(d=>({...d,yAxisIndex:d.yAxisIndex!==void 0?d.yAxisIndex:u}))]}}return{...e,legend:CX(e.legend,t.legend),series:[...r,...o]}}function bIe(e,t,n,i){let r=SAe(e,t),o=TAe(e,r,n),a=e.child("chart"),s=a.child("plotArea");if(!s.exists())return{option:{title:{text:"Unsupported chart",left:"center"}},chartFrameStyle:pX(e,r)};let{chartBg:l,plotAreaBg:c}=FAe(e,a,r),u=pX(e,r),d=rAe.flatMap(f=>s.children(f).map(h=>{let p=yAe(h,r);return p.length===0?null:{typeName:f,chartTypeNode:h,seriesArr:p}})).filter(f=>f!==null);for(let[f,h]of d.entries()){let p=MX(h.typeName,h.chartTypeNode,a,h.seriesArr,r,o,i);if(!p)continue;if(f===0&&d.length>1&&kk(h.typeName))for(let x of d.slice(1)){if(!kk(x.typeName))continue;let _=MX(x.typeName,x.chartTypeNode,a,x.seriesArr,r,o,i);_&&(p=yIe(p,_,h.chartTypeNode,x.chartTypeNode))}let g=BAe(e);g&&LAe(p,g);let v=cAe(r);if(v&&EAe(p,v),DAe(p),OAe(p,a,g),jAe(p,i),l&&(p.backgroundColor=l),o&&o.length>0&&(p.color=o),c)if(p.grid)p.grid.backgroundColor=c,p.grid.show=!0;else{let x=pIe(a,c,i);x&&mIe(p,x)}let m=f===0&&d.length>1&&kk(h.typeName)?d.filter(x=>kk(x.typeName)).flatMap(x=>x.seriesArr).sort((x,_)=>x.order-_.order):h.seriesArr,y=bAe(s),b=y?{seriesArr:m,showKeys:y.showKeys}:void 0;return{option:p,dataTable:b,chartFrameStyle:u}}return{option:{title:{text:"Unsupported chart type",left:"center",textStyle:{fontSize:12}}},chartFrameStyle:u}}function xIe(e,t){var n,i,r;let o=document.createElement("div");o.style.position="absolute",o.style.left=`${e.position.x}px`,o.style.top=`${e.position.y}px`,o.style.width=`${e.size.w}px`,o.style.height=`${e.size.h}px`,o.style.overflow="hidden",o.style.display="flex",o.style.flexDirection="column";let a=(n=t.presentation.charts)==null?void 0:n.get(e.chartPath);if(!a)return o.style.border="1px dashed #ccc",o.style.display="flex",o.style.alignItems="center",o.style.justifyContent="center",o.style.color="#999",o.style.fontSize="12px",o.textContent="Chart not found",o;let s=document.createElement("div");s.style.width="100%",s.style.flex="1",s.style.minWidth="0",s.style.minHeight="0",s.style.overflow="hidden",o.appendChild(s);let l=(i=t.presentation.chartThemes)==null?void 0:i.get(e.chartPath),c=l?{...t,theme:l,colorCache:new Map}:t,{option:u,dataTable:d,chartFrameStyle:f}=bIe(a,c,e.chartPath,e.size);vIe(u,e.size),f&&(o.style.boxSizing="border-box",f.borderColor&&f.borderWidth&&f.borderStyle&&(o.style.border=`${f.borderWidth}px ${f.borderStyle} ${f.borderColor}`));let h=VAe(u,e.size),p=H2(u.legend);if(h&&p&&(p.show=!1,o.appendChild(h)),d){let m=d.seriesArr.map(b=>b.colorHex).filter(Boolean),y=xAe(d,m.length>0?m:void 0);o.appendChild(y)}let g=t.chartInstances,v=new Promise(m=>{let y=()=>{_Ie(s,u,g),m()};requestAnimationFrame(()=>{if(!s.isConnected){m();return}if(s.offsetWidth===0||s.offsetHeight===0){if(typeof ResizeObserver>"u"){y();return}let b=new ResizeObserver(x=>{var _;if(!s.isConnected){b.disconnect();return}let{width:S,height:$}=((_=x[0])==null?void 0:_.contentRect)??{width:0,height:0};S>0&&$>0&&(b.disconnect(),y())});b.observe(s),m();return}y()})});return(r=t.asyncTasks)==null||r.push(v),o}function _Ie(e,t,n){try{let i=Wwe(e);if(i.setOption(t),n?.add(i),typeof ResizeObserver>"u")return;let r=new ResizeObserver(()=>{e.isConnected?i.resize():(r.disconnect(),i.isDisposed()||i.dispose(),n?.delete(i))});r.observe(e)}catch(i){console.warn("Failed to initialize ECharts:",i),e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="center",e.style.color="#999",e.style.fontSize="12px",e.textContent="Chart render error"}}function Wk(e,t){switch(e.nodeType){case"shape":return Ave(e,t);case"picture":return a0e(e,t);case"table":return eye(e,t);case"group":return lye(e,t,Wk);case"chart":return xIe(e,t);default:{let n=document.createElement("div");return n.style.position="absolute",n.style.left=`${e.position.x}px`,n.style.top=`${e.position.y}px`,n.style.width=`${e.size.w}px`,n.style.height=`${e.size.h}px`,n}}}function SIe(e){let t=document.createElement("div");return t.style.position="absolute",t.style.left=`${e.position.x}px`,t.style.top=`${e.position.y}px`,t.style.width=`${e.size.w}px`,t.style.height=`${e.size.h}px`,t.style.border="2px dashed #ff4444",t.style.backgroundColor="rgba(255,68,68,0.08)",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.color="#cc0000",t.style.fontSize="11px",t.style.fontFamily="monospace",t.style.overflow="hidden",t.style.boxSizing="border-box",t.style.padding="4px",t.textContent="Render Error",t.title=`Failed to render node: ${e.id} (${e.name})`,t}var IX=new WeakMap;function $Ie(e,t,n,i){let r=[];if(!e||!e.exists||!e.exists())return r;let o={rels:t??new Map,partPath:n,diagramDrawings:i};for(let a of e.allChildren())if(!UX(a))try{let s=X5(a,o);s&&(s.size.w>0||s.size.h>0)&&r.push(s)}catch{}return r}function RX(e,t,n,i){let r=IX.get(e);if(r&&r.rels===t&&r.partPath===n&&r.diagramDrawings===i)return r.nodes;let o=$Ie(e,t,n,i);return IX.set(e,{nodes:o,rels:t,partPath:n,diagramDrawings:i}),o}function wIe(e){if(e.isConnected)return()=>{};let t={position:e.style.position,left:e.style.left,top:e.style.top,visibility:e.style.visibility,pointerEvents:e.style.pointerEvents,contain:e.style.contain};return e.style.position="fixed",e.style.left="-100000px",e.style.top="0",e.style.visibility="hidden",e.style.pointerEvents="none",e.style.contain="layout style paint",document.body.appendChild(e),()=>{e.parentNode===document.body&&document.body.removeChild(e),e.style.position=t.position,e.style.left=t.left,e.style.top=t.top,e.style.visibility=t.visibility,e.style.pointerEvents=t.pointerEvents,e.style.contain=t.contain}}function VP(e,t,n){var i,r;Gm(e,t);let o=!!(n!=null&&n.mediaUrlCache),a=n?.chartInstances??new Set,s=[],l=new AbortController,c=sme(e,t,n?.mediaUrlCache,a,n?.pdfjs,l.signal);c.asyncTasks=s,n!=null&&n.onNavigate&&(c.onNavigate=n.onNavigate);let u=document.createElement("div");u.style.position="relative",u.style.width=`${e.width}px`,u.style.height=`${e.height}px`,u.style.overflow="hidden",u.style.backgroundColor="#FFFFFF",c.measurementRoot=u;let d=wIe(u);try{try{Fme(c,u)}catch(v){(i=n?.onNodeError)==null||i.call(n,"__background__",v)}if(t.showMasterSp&&c.layout.showMasterSp){let v={...c,slide:{...c.slide,rels:c.master.rels},partPath:c.masterPath,skipPlaceholderChildren:!0},m=RX(c.master.spTree,c.master.rels,c.masterPath,e.diagramDrawings);for(let y of m)try{let b=Wk(y,v);u.appendChild(b)}catch{}}if(t.showMasterSp){let v={...c,slide:{...c.slide,rels:c.layout.rels},partPath:c.layoutPath,skipPlaceholderChildren:!0},m=RX(c.layout.spTree,c.layout.rels,c.layoutPath,e.diagramDrawings);for(let y of m)try{let b=Wk(y,v);u.appendChild(b)}catch{}}for(let v of t.nodes)try{let m=Wk(v,c);u.appendChild(m)}catch(m){(r=n?.onNodeError)==null||r.call(n,v.id,m),u.appendChild(SIe(v))}}finally{d()}let f=!1,h=c.mediaUrlCache,p=Promise.allSettled(s).then(()=>{}),g=()=>{if(!f){if(f=!0,l.abort(),a)for(let v of a)!v.isDisposed()&&u.contains(v.getDom())&&(v.dispose(),a.delete(v));if(!o){for(let v of h.values())URL.revokeObjectURL(v);h.clear()}}};return{element:u,ready:p,dispose:g,[Symbol.dispose](){g()}}}function HP(e){let t=document.getSelection();if(!t||t.isCollapsed||!t.rangeCount)return null;let n=t.getRangeAt(0);if(!e.contains(n.commonAncestorContainer))return null;let i=t.toString().replace(/\s+/g," ").trim();return i?{text:i,range:n}:null}var Yne=e=>e.replace(/\s+/g," ").trim().toLowerCase();function Xne(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(let a=n.nextNode();a;a=n.nextNode())t.push(a);let i="",r=[],o=!0;for(let a of t){let s=a.data;for(let l=0;l<s.length;l++){let c=s[l];if(/\s/.test(c)){if(o)continue;i+=" ",o=!0}else i+=c.toLowerCase(),o=!1;r.push({node:a,offset:l})}o||(i+=" ",o=!0,r.push({node:a,offset:s.length}))}return{text:i,map:r}}function Kne(e,t){let n=e.map[t[0]],i=e.map[Math.min(e.map.length-1,t[1])],r=document.createRange();return r.setStart(n.node,Math.min(n.node.data.length,n.offset)),r.setEnd(i.node,Math.min(i.node.data.length,i.offset+1)),r}function Jne(e,t){let n=Yne(t);if(!n)return null;let i=Xne(e),r=i.text.indexOf(n),o=r>=0?[r,r+n.length-1]:MIe(i.text,n);return o?Kne(i,o):null}function Qne(e,t,n=1e3){let i=Yne(t);if(!i)return[];let r=Xne(e),o=[];for(let a=r.text.indexOf(i);a>=0&&o.length<n;a=r.text.indexOf(i,a+i.length))o.push(Kne(r,[a,a+i.length-1]));return o}function Ph(e){if(!e||e instanceof Element&&!e.isConnected||e instanceof Range&&!e.startContainer.isConnected)return null;let t=e.getBoundingClientRect();return t.width||t.height?t:null}function eie(e,t,n,i=2){if(!e||(e instanceof Element?!e.isConnected:!e.startContainer.isConnected))return!1;for(let r of e.getClientRects())if(t>=r.left-i&&t<=r.right+i&&n>=r.top-i&&n<=r.bottom+i)return!0;return!1}function MIe(e,t){let n=t.replace(/ /g,""),i=[],r="";for(let a=0;a<e.length;a++)e[a]!==" "&&(r+=e[a],i.push(a));let o=n?r.indexOf(n):-1;return o<0?null:[i[o],i[o+n.length-1]]}var CIe=()=>globalThis.CSS?.highlights??null;function _M(e,t){let n=CIe(),i=globalThis.Highlight;!n||!i||(t.length?n.set(e,new i(...t)):n.delete(e))}function Bx(e,t="center"){let n=e.closest(".viewer-scroll");n&&tie(n,e.getBoundingClientRect(),t)}function ZP(e,t="upper"){let n=e.startContainer.parentElement?.closest(".viewer-scroll");n&&tie(n,e.getBoundingClientRect(),t)}function tie(e,t,n){let i=e.getBoundingClientRect(),r=e.scrollTop+t.top-i.top;r-=n==="center"?Math.max(12,(i.height-t.height)/2):n==="upper"?Math.max(12,i.height*.3):12;let o=e.scrollLeft;(t.right>i.right||t.left<i.left)&&(o+=t.left-i.left-12),e.scrollTo({top:Math.max(0,r),left:Math.max(0,o),behavior:"smooth"})}function nie(e,t,n,i,r=0){let o=null,a=0,s=()=>{a=0;let u=e.getBoundingClientRect().top,d=u+e.clientHeight*r,f=null,h=1/0;for(let g of t()){let v=g.getBoundingClientRect();if(r&&v.top<=d&&v.bottom>=d){f=g;break}if(v.bottom<u+8)continue;let m=Math.abs(v.top-u);if(m<h&&(h=m,f=g),v.top>u+e.clientHeight)break}let p=f?n(f):null;p&&p!==o&&(o=p,i(p))},l=()=>{a||(a=requestAnimationFrame(s))};e.addEventListener("scroll",l,{passive:!0});let c=new ResizeObserver(l);return c.observe(e),l(),()=>{e.removeEventListener("scroll",l),c.disconnect(),a&&cancelAnimationFrame(a)}}var iie=new Map;function rie(e){return new Promise((t,n)=>{let i=new Image;i.onload=()=>t(i),i.onerror=()=>n(new Error("image failed to load")),i.src=e})}function GP(e){if(e.startsWith("data:"))return Promise.resolve(e);let t=iie.get(e);return t||(t=rie(e).then(n=>{let i=document.createElement("canvas");return i.width=n.naturalWidth||1,i.height=n.naturalHeight||1,i.getContext("2d").drawImage(n,0,0),i.toDataURL("image/png")}).catch(()=>null),iie.set(e,t)),t}function zIe(){let e=[];for(let t of Array.from(document.styleSheets))try{for(let n of Array.from(t.cssRules))e.push(n.cssText)}catch{}return e.join(`
`)}var TIe=/url\((['"]?)(blob:[^'")]+)\1\)/g;async function AIe(e,t){let n=[],i=(r,o)=>{if(r instanceof HTMLCanvasElement){try{let c=document.createElement("img");c.src=r.toDataURL("image/png"),c.setAttribute("style",(r.getAttribute("style")??"")+`;width:${r.offsetWidth}px;height:${r.offsetHeight}px`),c.className=r.className,o.replaceWith(c)}catch{}return}if(r instanceof HTMLImageElement&&o instanceof HTMLImageElement){let c=r.currentSrc||r.src;n.push(GP(c).then(u=>{u&&(o.src=u),o.removeAttribute("srcset")}))}if(r instanceof SVGImageElement){let c=r.href.baseVal;n.push(GP(c).then(u=>{u&&(o.setAttribute("href",u),o.removeAttributeNS("http://www.w3.org/1999/xlink","href"))}))}let a=o.getAttribute("style");if(a?.includes("blob:")){let c=[...a.matchAll(TIe)].map(u=>u[2]);n.push(Promise.all(c.map(GP)).then(u=>{let d=a;c.forEach((f,h)=>{d=d.split(f).join(u[h]??"")}),o.setAttribute("style",d)}))}let s=r.children,l=Array.from(o.children);for(let c=0;c<s.length&&c<l.length;c++)i(s[c],l[c])};i(e,t),await Promise.all(n)}function IIe(e,t,n){let i=t;for(let r=e.parentElement;r&&r!==n?.parentElement&&r!==document.body;r=r.parentElement){let o=document.createElement(r.tagName.toLowerCase()==="body"?"div":r.tagName.toLowerCase());r.className&&typeof r.className=="string"&&(o.className=r.className);for(let a of r.getAttributeNames())a.startsWith("data-")&&o.setAttribute(a,r.getAttribute(a));o.setAttribute("style","display:block;margin:0;padding:0;border:0;background:none;width:auto;height:auto;transform:none;overflow:visible;position:static"),o.append(i),i=o}return i}async function oie(e,t){let n=Math.max(1,e.offsetWidth),i=Math.max(1,e.offsetHeight),r=e.cloneNode(!0);r.style.transform="none",r.style.margin="0",await AIe(e,r);let o=getComputedStyle(e),a=document.createElement("div");a.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),a.setAttribute("style",`width:${n}px;height:${i}px;overflow:hidden;font-family:${o.fontFamily};color:${o.color};background:${t.background??"#fff"}`);let s=document.createElement("style");s.textContent=zIe(),a.append(s,IIe(e,r,t.context??null));let l=new XMLSerializer().serializeToString(a),c=`<svg xmlns="http://www.w3.org/2000/svg" width="${n}" height="${i}"><foreignObject x="0" y="0" width="100%" height="100%">${l}</foreignObject></svg>`,u=await rie(`data:image/svg+xml;charset=utf-8,${encodeURIComponent(c)}`),d=Math.min(2,t.maxWidth/n),f=document.createElement("canvas");f.width=Math.max(1,Math.round(n*d)),f.height=Math.max(1,Math.round(i*d));let h=f.getContext("2d");return h.fillStyle=t.background??"#fff",h.fillRect(0,0,f.width,f.height),h.drawImage(u,0,0,f.width,f.height),{data:f.toDataURL("image/png").split(",")[1],width:f.width,height:f.height}}var WP=Ln(zr(),1);function aie(e){return(e?.paragraphs??[]).map(t=>(t.runs??[]).map(n=>n.text??"").join("")).join(`
`).trim()}function RIe(e){let t=e;return t.rows?t.rows.map(n=>n.cells.map(i=>aie(i.textBody)).join(" | ")).join(`
`):aie(t.textBody)}var sie=16,lie=(0,Hn.forwardRef)(function(t,n){let i=(0,Hn.useRef)(null),r=(0,Hn.useRef)(null),o=(0,Hn.useRef)(null),a=(0,Hn.useRef)([]),s=(0,Hn.useRef)(new Map),[l,c]=(0,Hn.useState)(0),[u,d]=(0,Hn.useState)(0),f=(0,Hn.useRef)(t);f.current=t;let h=u&&o.current?l/o.current.width:0,p=(0,Hn.useRef)(h);p.current=h;let g=(0,Hn.useRef)(new Map),v=(0,Hn.useRef)([]),m=(0,Hn.useRef)([]),y=(0,Hn.useRef)(null),b=!!t.glance;(0,Hn.useEffect)(()=>{let w=!1,z=r.current;return(async()=>{let A=await NX(t.bytes,DX);if(w)return;let M=qX(A,{lazySlides:!0});o.current=M,z.replaceChildren(),a.current=M.slides.map((T,k)=>{let I=document.createElement("div");I.className="slide-frame",I.dataset.at=`slide:${k+1}`;let D=document.createElement("div");D.className="slide-host",D.style.width=`${M.width}px`,D.style.height=`${M.height}px`;let E=document.createElement("div");return E.className="slide-overlay",D.append(E),I.append(D),z.append(I),{frame:I,host:D,overlay:E}}),c(Math.max(200,i.current.clientWidth-sie*2)),d(T=>T+1),f.current.onPage?.({current:1,count:M.slides.length}),f.current.onReady()})().catch(A=>!w&&f.current.onError(A)),()=>{w=!0;for(let A of a.current)A.handle?.dispose();a.current=[];for(let A of g.current.values())A.handle.dispose();g.current.clear();for(let A of s.current.values())URL.revokeObjectURL(A);s.current.clear()}},[t.bytes]),(0,Hn.useEffect)(()=>{let w=i.current,z=new ResizeObserver(()=>c(Math.max(200,w.clientWidth-sie*2)));return z.observe(w),()=>z.disconnect()},[]),(0,Hn.useEffect)(()=>{let w=o.current;if(!w||!h)return;for(let A of a.current)A.frame.style.width=`${w.width*h}px`,A.frame.style.height=`${w.height*h}px`,A.host.style.transform=`scale(${h})`,A.frame.style.setProperty("--slide-scale",String(h));let z=new IntersectionObserver(A=>{for(let M of A){if(!M.isIntersecting)continue;let T=a.current.findIndex(k=>k.frame===M.target);T>=0&&x(T)}},{root:i.current,rootMargin:"800px 0px"});for(let A of a.current)z.observe(A.frame);return()=>z.disconnect()},[h,u]);function x(w){let z=o.current,A=a.current[w];if(!z||!A)return Promise.resolve();if(A.ready)return A.ready;let M=z.slides[w];Gm(z,M);let T=VP(z,M,{mediaUrlCache:s.current,pdfjs:!1,onNavigate:I=>{if(I.url)f.current.onLink(I.url);else if(typeof I.slideIndex=="number"){let D=a.current[I.slideIndex]?.frame;D&&Bx(D,"start")}}});A.handle=T,A.host.insertBefore(T.element,A.overlay);let k=T.ready.catch(()=>{});return A.ready=k,k}function _(w,z,A){let M=o.current;if(!M)return null;let T=M.slides[w];Gm(M,T);for(let k=T.nodes.length-1;k>=0;k--){let I=T.nodes[k],{x:D,y:E}=I.position,{w:N,h:F}=I.size;if(N<=0&&F<=0)continue;let G=Math.min(N,F)<6?4:0;if(z>=D-G&&z<=D+N+G&&A>=E-G&&A<=E+F+G)return I}return null}function S(w,z,A){if(w.overlay.querySelectorAll(`.shape-${A}`).forEach(T=>T.remove()),!z)return;let M=document.createElement("div");M.className=`shape-${A}`,M.style.left=`${z.position.x}px`,M.style.top=`${z.position.y}px`,M.style.width=`${z.size.w}px`,M.style.height=`${z.size.h}px`,w.overlay.append(M)}(0,Hn.useEffect)(()=>{let w=i.current,z=nie(w,()=>a.current.map(T=>T.frame),T=>T.dataset.at??null,T=>{f.current.onLocation(T),f.current.onPage?.({current:Number(T.slice(6)),count:a.current.length})},1/3),A=T=>{let k=T.target.closest(".slide-frame"),I=a.current.findIndex(se=>se.frame===k);if(I<0){for(let se of a.current)S(se,null,"selected");f.current.onSelect(null);return}let D=a.current[I],E=HP(D.host),N=E?-1:m.current.findIndex(se=>eie(se,T.clientX,T.clientY));if(N>=0&&f.current.onRevealHit?.(N)){for(let se of a.current)S(se,null,"selected");f.current.onSelect(null);return}let F=D.host.getBoundingClientRect(),G=E?E.range.getBoundingClientRect():{left:T.clientX,top:T.clientY,width:0,height:0},P=(G.left+G.width/2-F.left)/p.current,O=(G.top+G.height/2-F.top)/p.current,V=_(I,P,O);for(let se of a.current)S(se,null,"selected");S(D,V,"selected");let j=V?`slide:${I+1}/shape:${V.id}`:`slide:${I+1}`,H=E?.text??(V?RIe(V):""),Q=E?.range.cloneRange(),le=D.overlay.querySelector(".shape-selected");f.current.onSelect({at:j,text:lw(H,0,2e3)},{text:!!Q,locate:()=>Q?Ph(Q):Ph(le)??Ph(D.frame),user:!0})},M=T=>setTimeout(()=>A(T),0);return w.addEventListener("mouseup",M),()=>{z(),w.removeEventListener("mouseup",M)}},[]);function $(w){let z=bH("pptx",w);return z.kind!=="pptx"?null:{locator:z,slot:a.current[z.from-1]??null}}function C(){_M("office-reveal",v.current);let w=y.current,z=w?w.ranges[w.current]:void 0;_M("office-find",w?w.ranges.filter(A=>A!==z):[]),_M("office-find-current",z?[z]:[])}return(0,Hn.useImperativeHandle)(n,()=>({async reveal(w){this.clearReveal();let z=[];for(let A of w){let M=$(A.at);if(!M?.slot)continue;let{locator:T,slot:k}=M;if(await x(T.from-1),T.shape){let E=o.current,N=E.slides[T.from-1];Gm(E,N),S(k,N.nodes.find(F=>F.id===T.shape)??null,"revealed")}else for(let E=T.from;E<=T.to;E++)a.current[E-1]?.frame.classList.add("revealed");let I=A.quote?Jne(k.host,A.quote):null;I&&v.current.push(I);let D=T.shape?k.overlay.querySelector(".shape-revealed"):null;m.current.push(I??D),z.push({at:A.at,locate:()=>Ph(I)??Ph(D)??Ph(k.frame),scrollTo:()=>I?ZP(I,"upper"):Bx(D??k.frame,D?"upper":"start")})}return C(),z[0]?.scrollTo(),z},goTo(w){let z=$(w);z?.slot&&Bx(z.slot.frame,"start")},clearReveal(){v.current=[],m.current=[];for(let w of a.current)w.frame.classList.remove("revealed"),S(w,null,"revealed");C()},async capture(w,z){let A=o.current;if(!A)throw new Error("The presentation is still loading.");let M;if(w){let I=$(w);if(!I?.slot)throw new Error(`${w} is not in this presentation (${A.slides.length} slides).`);M=I.locator.from-1}else{let I=i.current.getBoundingClientRect().top;M=Math.max(0,a.current.findIndex(D=>D.frame.getBoundingClientRect().bottom>I+8))}await x(M);let T=a.current[M];return{...await oie(T.handle.element,{maxWidth:z,context:T.host,background:"#fff"}),at:w??`slide:${M+1}`}},zoom(){},fit(){},async find(w){if(!w.trim())return this.clearFind(),0;await Promise.all(a.current.map((A,M)=>x(M)));let z=a.current.flatMap(A=>Qne(A.host,w));return y.current=z.length?{ranges:z,current:-1}:null,C(),z.length},findGo(w){let z=y.current;z?.ranges[w]&&(z.current=w,C(),ZP(z.ranges[w],"center"))},clearFind(){y.current=null,C()},clearSelection(){for(let w of a.current)S(w,null,"selected");i.current&&HP(i.current)&&document.getSelection()?.removeAllRanges()},goToPage(w){let z=a.current[Math.min(Math.max(1,w),a.current.length)-1];z&&Bx(z.frame,"start")},async thumbnail(w,z){let A=o.current;if(!A)throw new Error("The presentation is still loading.");let M=g.current.get(w);if(M)return M.element;let T=A.slides[w-1];Gm(A,T);let k=VP(A,T,{mediaUrlCache:s.current,pdfjs:!1}),I=z/A.width,D=document.createElement("div");D.className="slide-thumb",D.style.width=`${z}px`,D.style.height=`${A.height*I}px`;let E=document.createElement("div");return E.className="slide-host",E.style.width=`${A.width}px`,E.style.height=`${A.height}px`,E.style.transform=`scale(${I})`,E.append(k.element),D.append(E),g.current.set(w,{element:D,handle:k}),await k.ready.catch(()=>{}),D}}),[]),(0,WP.jsx)("div",{ref:i,className:`viewer-scroll pptx-scroll${b?" glance":""}`,children:(0,WP.jsx)("div",{ref:r,className:"slide-list"})})});var YP={pptx:{view:lie}};var jt=Ln(zr(),1),ro=Ho(),LIe=["pdf","docx","pptx"],cie=["pdf","docx"],EIe=720,DIe=380;function OIe(){let e=EH(),t=PH(e?.locale??navigator.language),n=e?.theme==="dark",i=e?.displayMode==="inline",[r,o]=(0,Ke.useState)(null),[a,s]=(0,Ke.useState)(null),[l,c]=(0,Ke.useState)(!1),[u,d]=(0,Ke.useState)(null),[f,h]=(0,Ke.useState)(null),[p,g]=(0,Ke.useState)({open:!1,tab:"pages"}),[v,m]=(0,Ke.useState)(null),[y,b]=(0,Ke.useState)(null),[x,_]=(0,Ke.useState)(null),[S,$]=(0,Ke.useState)(null),C=(0,Ke.useRef)(S);C.current=S;let[w,z]=(0,Ke.useState)("bar"),[A,M]=(0,Ke.useState)(!1),[T,k]=(0,Ke.useState)(null),[I,D]=(0,Ke.useState)(null),[E,N]=(0,Ke.useState)(null),[F,G]=(0,Ke.useState)(sD),[P,O]=(0,Ke.useState)(!1),V=(0,Ke.useRef)(null),j=(0,Ke.useRef)(null),[H,Q]=sZ(j,T),le=(0,Ke.useRef)(null),se=(0,Ke.useRef)(!1),ae=(0,Ke.useRef)(null),Se=(0,Ke.useRef)(0),ve=(0,Ke.useRef)(null);ve.current=r;let $e=(0,Ke.useRef)(0),je=(0,Ke.useRef)(null),R=(0,Ke.useRef)(0),ie=(0,Ke.useRef)([]),te=(0,Ke.useRef)(null),B=(0,Ke.useCallback)(()=>{le.current?.clearReveal(),le.current?.clearSelection(),$(null),k(null),h(null)},[]),{find:U,setFind:W,openFind:ue,closeFind:de,queryFind:J,stepFind:ge}=rZ({viewer:le,docRef:ve,ready:l,onOpen:B}),we=(0,Ke.useRef)(!1),X=r?.info.kind??(a?nb(a):null),K=a??u?.path??r?.info.path??null;(0,Ke.useEffect)(()=>{document.documentElement.dataset.theme=n?"dark":"light";let he=e?.styles?.variables;he&&pH(he)},[n,e?.styles?.variables]),(0,Ke.useEffect)(()=>{i&&ro.app.sendSizeChanged({height:DIe}).catch(()=>{})},[i]),(0,Ke.useEffect)(()=>{let he=V.current,xe=new ResizeObserver(()=>O(he.clientWidth>=EIe));return xe.observe(he),()=>xe.disconnect()},[]);let Ce=(0,Ke.useCallback)(he=>{N(he),setTimeout(()=>N(xe=>xe===he?null:xe),2500)},[]),ye=(0,Ke.useCallback)(()=>{se.current=!1,c(!1),$(null),z("bar"),k(null),Q(null),m(null),b(null),_(null),D(null),W(sb)},[]),Qe=(0,Ke.useCallback)(async(he,xe)=>{let tt=++$e.current;xe?ae.current=xe:je.current!==he&&(ae.current=null),je.current=he,s(he),d(null);try{let qe=await cs("load_document",{path:he}),[dt]=await Promise.all([AH(qe.file),YP[qe.info.kind]?.prepare?.()]);if(tt!==$e.current)return;ye(),te.current=null,o({info:qe.info,bytes:dt,blocks:qe.blocks,key:++R.current}),ro.saveDocument(qe.info.path),G(zt=>{let Pn=[{path:qe.info.path,kind:qe.info.kind},...zt.filter(Qn=>Qn.path!==qe.info.path)].slice(0,5);return LH(Pn),Pn})}catch(qe){if(tt!==$e.current)return;o(null),ye(),d(ab(t,qe,he))}finally{tt===$e.current&&(s(null),je.current=null)}},[ye,t]),mt=(0,Ke.useCallback)(async(he,xe)=>{let tt=le.current;if(!tt)return;tt.clearFind(),W(sb);let qe=await tt.reveal(he).catch(()=>[]);we.current=qe.length>0,k(qe.length?{note:xe,targets:qe,index:0,visible:!!xe||qe.length>1}:null)},[]),et=(0,Ke.useCallback)((he,xe)=>{le.current&&se.current?mt(he,xe):ae.current={targets:he,note:xe}},[mt]),Le=(0,Ke.useCallback)(he=>{if(!he?.document)return;let xe=he.reveal&&he.reveal.seq>Se.current?he.reveal:null;xe&&(Se.current=xe.seq);let tt=ve.current?.info,qe=xe?{targets:xe.targets,note:xe.note??null}:null;!tt||tt.path!==he.document.path||tt.revision!==he.document.revision?Qe(he.document.path,qe):qe&&et(qe.targets,qe.note)},[Qe,et]);(0,Ke.useEffect)(()=>{let he=()=>{for(let xe of ro.takeResults()){if(xe.isError)continue;xe._meta?.["zcode/truncated"]?cs("get_viewer").then(Le,()=>{}):Le(xe.structuredContent)}};return window.addEventListener("office:toolresult",he),ro.ready().then(async()=>{G(sD());let xe=ro.takeResults(),tt=ro.readDocument();if(tt)Qe(tt);else for(let qe of xe)qe.isError||Le(qe.structuredContent)}),()=>window.removeEventListener("office:toolresult",he)},[Le,Qe]);let Oe=S?.selection??null;(0,Ke.useEffect)(()=>{if(!r)return;let he=setTimeout(()=>{cs("report_view",{viewId:ro.viewId,path:r.info.path,at:v,selection:Oe}).catch(()=>{})},400);return()=>clearTimeout(he)},[r,v,Oe]),(0,Ke.useEffect)(()=>{if(!r||i)return;let he=setInterval(()=>{document.visibilityState==="visible"&&cs("check_document",{path:r.info.path}).then(({revision:xe})=>{ve.current===r&&xe!==r.info.revision&&xe!==te.current&&D(xe)},()=>{})},4e3);return()=>clearInterval(he)},[r,i]),aZ(ve,le);let ot=(0,Ke.useCallback)(()=>{se.current=!0,c(!0);let he=ae.current;ae.current=null,he?.targets.length&&setTimeout(()=>void mt(he.targets,he.note),50)},[mt]),$t=(0,Ke.useCallback)((he,xe)=>{z("bar"),M(!1),$(he&&xe?{selection:he,detail:xe}:null),he&&xe?.user&&k(tt=>tt&&{...tt,visible:!1})},[]),Bt=(0,Ke.useRef)(T);Bt.current=T,(0,Ke.useEffect)(()=>{let he=j.current;if(!he)return;let xe=0,tt=new ResizeObserver(()=>{we.current&&(clearTimeout(xe),xe=window.setTimeout(()=>{let dt=Bt.current;we.current&&dt&&dt.targets[dt.index]?.scrollTo()},200))});tt.observe(he);let qe=()=>{we.current=!1};return he.addEventListener("wheel",qe,{passive:!0}),he.addEventListener("pointerdown",qe,!0),he.addEventListener("keydown",qe,!0),()=>{clearTimeout(xe),tt.disconnect(),he.removeEventListener("wheel",qe),he.removeEventListener("pointerdown",qe,!0),he.removeEventListener("keydown",qe,!0)}},[r]);let sn=(0,Ke.useCallback)(he=>{let xe=Bt.current;return!xe?.targets[he]||!(xe.note||xe.targets.length>1)?!1:(k({...xe,index:he,visible:!0}),!0)},[]),ct=(0,Ke.useCallback)(()=>{le.current?.clearSelection(),$(null),z("bar")},[]),pn=(0,Ke.useCallback)(async()=>{let he=ve.current;if(!he||!S)return;let xe=ib(he.info.path,S.selection.at),tt=S.selection.text,qe=[...ie.current.filter(zt=>zt.anchor!==xe||zt.text!==tt),{anchor:xe,text:tt}].slice(-10),dt=qe.map(zt=>`- ${zt.anchor}${zt.text?`: "${dw(zt.text,600)}"`:""}`);try{await ro.ready(),await ro.app.updateModelContext({content:[{type:"text",text:cw(`The user referenced these locations in the ${Fn.title.en} viewer (use read_document / show_in_viewer with the anchors):
${dt.join(`
`)}`)}],structuredContent:sw({references:qe})}),ie.current=qe,z("added");let zt=S;setTimeout(()=>{C.current===zt&&ct()},1500)}catch{Ce(t.contextFailed)}},[S,ct,Ce,t]),zn=(0,Ke.useCallback)(async he=>{let xe=ve.current;if(!xe||!S)return!1;let tt=ib(xe.info.path,S.selection.at),qe=S.selection.text,dt=qe?`
> ${dw(qe,800).replace(/\n/g,`
> `)}`:"";try{if((await ro.app.sendMessage({role:"user",content:[{type:"text",text:cw(`${he}

(About ${tt} in the ${Fn.title.en} viewer${dt?":":"."})${dt}`)}]})).isError)throw new Error;return ct(),!0}catch{return Ce(t.sendFailed),!1}},[S,ct,Ce,t]),Ge=(0,Ke.useCallback)(async()=>{let he=S?.selection.text;if(he){try{await navigator.clipboard.writeText(he)}catch{document.execCommand("copy")}M(!0),setTimeout(()=>M(!1),1200)}},[S]),Xe=(0,Ke.useCallback)(he=>le.current?.goToPage?.(he),[]),ht=(0,Ke.useCallback)(he=>{k(xe=>{if(!xe)return xe;let tt=he??(xe.index+1)%xe.targets.length;return xe.targets[tt]?.scrollTo(),we.current=!0,{...xe,index:tt,visible:!0}})},[]);(0,Ke.useEffect)(()=>{let he=j.current;if(!he)return;let xe=tt=>{tt.target.closest(".callout, .chip, .pop, .pill")||k(qe=>qe?.visible?{...qe,visible:!1}:qe)};return he.addEventListener("pointerdown",xe,!0),()=>he.removeEventListener("pointerdown",xe,!0)},[r]);let Re=P&&!i,vt=!!(X&&LIe.includes(X)),Mt=!!(r&&l&&X!=="xlsx")&&!!(le.current?.thumbnail||r?.info.outline.length);cZ({docRef:ve,viewer:le,picked:S,addReference:pn,openFind:ue,closeFind:de,clearSelection:ct,paged:vt,page:y,goToPage:Xe,drawer:p,setDrawer:g,docked:Re,find:U,agent:T,setAgent:k});let Ze=(0,Ke.useCallback)(he=>{h(null),cs("open_document",{path:he}).then(Le,xe=>{$e.current++,o(null),ye(),d(ab(t,xe,he))})},[Le,ye,t]),lt=GH(t,Ze,(he,xe)=>d(ab(t,he,xe))),bt=r?YP[r.info.kind]?.view??null:null,it=(0,Ke.useMemo)(()=>r?{bytes:r.bytes,info:r.info,blocks:r.blocks,dark:n,glance:i,onLocation:m,onSelect:$t,onRevealHit:sn,onPage:b,onZoom:_,onLink:he=>void ro.app.openLink({url:he}).catch(()=>{}),onReady:ot,onError:he=>d(ab(t,he,ve.current?.info.path??null))}:null,[r,n,i,ot,$t,sn]),Kt=!u&&(!!a||!!(r&&!l)),wt=!r&&!a&&!u,ut=S?hw(S.selection.at,t):"";return i?(0,jt.jsx)(WH,{appRef:V,canvasRef:j,t,path:K,info:r?.info,kind:X,showSkeleton:Kt,failure:u,nothing:wt,onExpand:()=>void ro.app.requestDisplayMode({mode:"fullscreen"}).catch(()=>{}),children:bt&&it?(0,jt.jsx)(bt,{ref:le,...it},r.key):null}):(0,jt.jsxs)("div",{ref:V,className:"app",children:[wt?null:U.open?(0,jt.jsx)(XH,{t,query:U.query,total:U.total,index:U.index,onQuery:J,onStep:ge,onClose:de}):(0,jt.jsxs)("header",{className:"docbar",children:[r||a||u?(0,jt.jsx)("button",{type:"button",className:`btn icon ${p.open&&Mt?"secondary":"dim"}`,title:t.pagesAndOutline,"aria-label":t.pagesAndOutline,"aria-pressed":p.open&&Mt,disabled:!Mt,hidden:X==="xlsx",onClick:()=>g(he=>({...he,open:!he.open})),children:(0,jt.jsx)(rn,{name:"panel-left"})}):null,(0,jt.jsxs)("button",{type:"button",className:`doctitle${f==="switch"?" open":""}`,title:K??void 0,"aria-haspopup":"menu","aria-expanded":f==="switch","aria-label":`${t.switchDocument}: ${K??""}`,"data-menu-trigger":"",onClick:()=>h(he=>he==="switch"?null:"switch"),children:[(0,jt.jsx)("span",{className:"name",children:K?Pd(K):t.title}),(0,jt.jsx)(rn,{name:"chevron-down",size:12,className:"chev"})]}),(0,jt.jsx)("span",{className:"spacer"}),r&&!u?(0,jt.jsxs)(jt.Fragment,{children:[(0,jt.jsx)("button",{type:"button",className:"btn icon dim",title:`${t.find} (\u2318F)`,"aria-label":t.find,disabled:!l,onClick:ue,children:(0,jt.jsx)(rn,{name:"search"})}),(0,jt.jsx)("button",{type:"button",className:`btn icon dim${f==="more"?" active":""}`,title:t.more,"aria-label":t.more,"aria-haspopup":"menu","aria-expanded":f==="more","data-menu-trigger":"",onClick:()=>h(he=>he==="more"?null:"more"),children:(0,jt.jsx)(rn,{name:"ellipsis"})})]}):null]}),I?(0,jt.jsx)(ZH,{t,onReload:()=>r&&void Qe(r.info.path),onDismiss:()=>{te.current=I,D(null)}}):null,wt?(0,jt.jsx)(HH,{t,importing:lt.importing,onBrowse:lt.browse}):(0,jt.jsxs)("div",{className:"stage",children:[p.open&&Mt&&r?(0,jt.jsxs)(jt.Fragment,{children:[Re?null:(0,jt.jsx)("div",{className:"scrim",onClick:()=>g(he=>({...he,open:!1}))}),(0,jt.jsx)(VH,{t,info:r.info,handle:le.current,page:vt?y:null,tab:p.tab,docked:Re,onTab:he=>g(xe=>({...xe,tab:he})),onPage:he=>{Xe(he),Re||g(xe=>({...xe,open:!1}))},onOutline:he=>{le.current?.goTo(he),Re||g(xe=>({...xe,open:!1}))}})]}):null,(0,jt.jsxs)("div",{ref:j,className:"canvas",children:[bt&&it?(0,jt.jsx)(bt,{ref:le,...it},r.key):null,Kt?(0,jt.jsx)(pw,{kind:X}):null,u?(0,jt.jsx)(mw,{t,title:u.title,detail:u.detail,onOpenAnother:lt.browse}):null,r&&l&&!u&&S?.detail.user?(0,jt.jsx)(JH,{t,frame:j,locate:S.detail.locate,text:S.detail.text,label:ut,quote:dw(S.selection.text.replace(/\s+/g," "),60),short:r.info.kind==="xlsx",mode:w,canAsk:!!ro.capabilities?.message,copied:A,onAdd:()=>void pn(),onAsk:()=>z("ask"),onCopy:()=>void Ge(),onCancelAsk:()=>z("bar"),onSend:zn},`${S.selection.at}:${S.selection.text.length}`):null,T?.visible&&T.targets[T.index]&&!u?(0,jt.jsx)(QH,{t,frame:j,locate:T.targets[T.index].locate,note:T.note,index:T.index,total:T.targets.length,onNext:()=>ht(),onClose:()=>k({...T,visible:!1})}):null,T&&H?(0,jt.jsx)(eZ,{text:tZ(t,H.indexes.map(he=>T.targets[he].at)),down:H.down,raised:vt,onClick:()=>ht(H.indexes[0])}):null,r&&l&&!u&&vt&&y?(0,jt.jsx)(KH,{t,frame:j,page:y,zoom:X&&cie.includes(X)?x:null,onPage:Xe,onZoom:he=>le.current?.zoom(he),onFit:()=>le.current?.fit("width")}):null,E?(0,jt.jsx)("div",{className:"chip notice",children:E}):null]})]}),f==="switch"?(0,jt.jsx)(nZ,{t,recent:F,currentPath:r?.info.path,onOpen:Ze,onBrowse:()=>{h(null),lt.browse()},onClose:()=>h(null)}):null,f==="more"&&r?(0,jt.jsx)(iZ,{t,zoomable:cie.includes(r.info.kind),zoomMode:x?.mode,onFit:he=>{le.current?.fit(he),h(null)},onFind:ue,onReload:()=>{h(null),Qe(r.info.path)},onClose:()=>h(null)}):null,lt.input]})}var die=document.getElementById("root");die.textContent="";(0,uie.createRoot)(die).render((0,jt.jsx)(Ke.StrictMode,{children:(0,jt.jsx)(OIe,{})}));ro.ready();})();
